-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIO-6578: Fixes an issue with losing focus on Year field when Day com…
…ponent has advanced logic (#5301) * FIO-6578: Fixes an issue with losing focus on Year field when Day component has advanced logic * refactoring
- Loading branch information
1 parent
be88864
commit cc09452
Showing
7 changed files
with
190 additions
and
28 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
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,74 @@ | ||
export default { | ||
type: 'form', | ||
display: 'form', | ||
components: [ | ||
{ | ||
label: 'Text Field', | ||
applyMaskOn: 'change', | ||
tableView: true, | ||
key: 'textField', | ||
type: 'textfield', | ||
input: true, | ||
}, | ||
{ | ||
label: 'Day', | ||
hideInputLabels: false, | ||
inputsLabelPosition: 'top', | ||
useLocaleSettings: false, | ||
tableView: false, | ||
fields: { | ||
day: { | ||
hide: true, | ||
}, | ||
month: { | ||
hide: false, | ||
}, | ||
year: { | ||
hide: false, | ||
}, | ||
}, | ||
defaultValue: '00/00/0000', | ||
key: 'day', | ||
logic: [ | ||
{ | ||
name: 'Disable when Test is empty', | ||
trigger: { | ||
type: 'simple', | ||
simple: { | ||
show: true, | ||
conjunction: 'all', | ||
conditions: [ | ||
{ | ||
component: 'textField', | ||
operator: 'isEmpty', | ||
}, | ||
], | ||
}, | ||
}, | ||
actions: [ | ||
{ | ||
name: 'Disable', | ||
type: 'property', | ||
property: { | ||
label: 'Disabled', | ||
value: 'disabled', | ||
type: 'boolean', | ||
}, | ||
state: true, | ||
}, | ||
], | ||
}, | ||
], | ||
type: 'day', | ||
input: true, | ||
}, | ||
{ | ||
type: 'button', | ||
label: 'Submit', | ||
key: 'submit', | ||
disableOnInvalid: true, | ||
input: true, | ||
tableView: false, | ||
}, | ||
], | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
export comp1 from './comp1'; | ||
export comp2 from './comp2'; | ||
export comp3 from './comp3'; | ||
export comp4 from './comp4'; | ||
import comp1 from './comp1'; | ||
import comp2 from './comp2'; | ||
import comp3 from './comp3'; | ||
import comp4 from './comp4'; | ||
import comp5 from './comp5'; | ||
import comp6 from './comp6'; | ||
export { comp1, comp2, comp3, comp4, comp5, comp6 }; |