@gem-sdk/components 2.0.0-dev.398 → 2.0.0-dev.399
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,27 @@ const SettingUIV2 = [
|
|
|
10
10
|
setting: {
|
|
11
11
|
id: 'type'
|
|
12
12
|
},
|
|
13
|
-
layout: 'vertical'
|
|
13
|
+
layout: 'vertical',
|
|
14
|
+
controlChangeTrigger: {
|
|
15
|
+
settings: [
|
|
16
|
+
{
|
|
17
|
+
action: {
|
|
18
|
+
controlId: 'required',
|
|
19
|
+
newValue: false,
|
|
20
|
+
groupType: 'setting',
|
|
21
|
+
controlType: 'style'
|
|
22
|
+
},
|
|
23
|
+
condition: `type === 'hidden'`,
|
|
24
|
+
source: [
|
|
25
|
+
'required',
|
|
26
|
+
'type'
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
options: {
|
|
31
|
+
noRecordHistory: true
|
|
32
|
+
}
|
|
33
|
+
}
|
|
14
34
|
}
|
|
15
35
|
]
|
|
16
36
|
},
|
|
@@ -751,6 +771,8 @@ const SettingUIV2 = [
|
|
|
751
771
|
type: 'combo',
|
|
752
772
|
isHideClear: true,
|
|
753
773
|
conditionDisplay: 'type === "hidden"',
|
|
774
|
+
iconName: 'polaris-text-block',
|
|
775
|
+
getValueFromSettingID: 'valueHidden',
|
|
754
776
|
controls: [
|
|
755
777
|
{
|
|
756
778
|
setting: {
|
|
@@ -766,7 +788,7 @@ const SettingUIV2 = [
|
|
|
766
788
|
label: {
|
|
767
789
|
en: 'Error message'
|
|
768
790
|
},
|
|
769
|
-
conditionDisplay: 'type
|
|
791
|
+
conditionDisplay: '["text", "textarea", "email"].includes(type) || (["checkbox", "radio", "dropdown"].includes(type) && required)',
|
|
770
792
|
controls: [
|
|
771
793
|
{
|
|
772
794
|
type: 'combo',
|
|
@@ -8,7 +8,27 @@ const SettingUIV2 = [
|
|
|
8
8
|
setting: {
|
|
9
9
|
id: 'type'
|
|
10
10
|
},
|
|
11
|
-
layout: 'vertical'
|
|
11
|
+
layout: 'vertical',
|
|
12
|
+
controlChangeTrigger: {
|
|
13
|
+
settings: [
|
|
14
|
+
{
|
|
15
|
+
action: {
|
|
16
|
+
controlId: 'required',
|
|
17
|
+
newValue: false,
|
|
18
|
+
groupType: 'setting',
|
|
19
|
+
controlType: 'style'
|
|
20
|
+
},
|
|
21
|
+
condition: `type === 'hidden'`,
|
|
22
|
+
source: [
|
|
23
|
+
'required',
|
|
24
|
+
'type'
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
options: {
|
|
29
|
+
noRecordHistory: true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
12
32
|
}
|
|
13
33
|
]
|
|
14
34
|
},
|
|
@@ -749,6 +769,8 @@ const SettingUIV2 = [
|
|
|
749
769
|
type: 'combo',
|
|
750
770
|
isHideClear: true,
|
|
751
771
|
conditionDisplay: 'type === "hidden"',
|
|
772
|
+
iconName: 'polaris-text-block',
|
|
773
|
+
getValueFromSettingID: 'valueHidden',
|
|
752
774
|
controls: [
|
|
753
775
|
{
|
|
754
776
|
setting: {
|
|
@@ -764,7 +786,7 @@ const SettingUIV2 = [
|
|
|
764
786
|
label: {
|
|
765
787
|
en: 'Error message'
|
|
766
788
|
},
|
|
767
|
-
conditionDisplay: 'type
|
|
789
|
+
conditionDisplay: '["text", "textarea", "email"].includes(type) || (["checkbox", "radio", "dropdown"].includes(type) && required)',
|
|
768
790
|
controls: [
|
|
769
791
|
{
|
|
770
792
|
type: 'combo',
|