-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Configuração de dependência de campos
Criação da feature de dependência de campos, quando um campo assume um determinado valor o outro campo deve passar por uma segunda validação de preenchimento Escrita dos testes unitários
- Loading branch information
1 parent
10dc165
commit ab6b9e8
Showing
24 changed files
with
918 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.DependencyConfig = void 0; | ||
class DependencyConfig { | ||
constructor(dependencyConfig) { | ||
const { | ||
columnReference, | ||
hasMatch, | ||
matches, | ||
valuesReference, | ||
columnDestiny, | ||
} = dependencyConfig; | ||
this._columnReference = columnReference; | ||
this._hasMatch = hasMatch; | ||
this._matches = matches; | ||
this._valuesReference = valuesReference; | ||
this._columnDestiny = columnDestiny; | ||
} | ||
toJson() { | ||
return { | ||
columnReference: this._columnReference, | ||
valuesReference: this._valuesReference, | ||
hasMatch: this._hasMatch, | ||
columnDestiny: this._columnDestiny, | ||
matches: this._matches, | ||
}; | ||
} | ||
get columnDestiny() { | ||
return this._columnDestiny; | ||
} | ||
get matches() { | ||
return this._matches; | ||
} | ||
get hasMatch() { | ||
return this._hasMatch; | ||
} | ||
get columnReference() { | ||
return this._columnReference; | ||
} | ||
get valuesReference() { | ||
return this._valuesReference; | ||
} | ||
} | ||
exports.DependencyConfig = DependencyConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.