@gem-sdk/components 2.0.0-dev.382 → 2.0.0-dev.383

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.
@@ -154,9 +154,49 @@ const SettingUIV2 = [
154
154
  id: 'boxShadowBtnV2',
155
155
  state: 'normal'
156
156
  },
157
- controlConfig: {
158
- id: 'boxShadowBtnV2',
159
- type: 'shadow-v2'
157
+ options: {
158
+ updateFields: [
159
+ {
160
+ field: 'enable',
161
+ settingId: 'hasBoxShadowBtn',
162
+ state: 'normal'
163
+ }
164
+ ]
165
+ },
166
+ controlChangeTrigger: {
167
+ settings: [
168
+ {
169
+ condition: `boxShadowBtnV2.normal.enable === true`,
170
+ source: [
171
+ 'boxShadowBtnV2',
172
+ 'hasBoxShadowBtn'
173
+ ],
174
+ action: {
175
+ controlId: 'hasBoxShadowBtn',
176
+ groupType: 'advanced',
177
+ controlType: 'advanced',
178
+ state: 'normal',
179
+ newValue: true
180
+ }
181
+ },
182
+ {
183
+ condition: `boxShadowBtnV2.normal.enable === false`,
184
+ source: [
185
+ 'boxShadowBtnV2',
186
+ 'hasBoxShadowBtn'
187
+ ],
188
+ action: {
189
+ controlId: 'hasBoxShadowBtn',
190
+ groupType: 'advanced',
191
+ controlType: 'advanced',
192
+ state: 'normal',
193
+ newValue: false
194
+ }
195
+ }
196
+ ],
197
+ options: {
198
+ noRecordHistory: true
199
+ }
160
200
  }
161
201
  }
162
202
  ]
@@ -363,9 +403,49 @@ const SettingUIV2 = [
363
403
  id: 'boxShadowBtnV2',
364
404
  state: 'hover'
365
405
  },
366
- controlConfig: {
367
- id: 'boxShadowBtnV2',
368
- type: 'shadow-v2'
406
+ options: {
407
+ updateFields: [
408
+ {
409
+ field: 'enable',
410
+ settingId: 'hasBoxShadowBtn',
411
+ state: 'hover'
412
+ }
413
+ ]
414
+ },
415
+ controlChangeTrigger: {
416
+ settings: [
417
+ {
418
+ condition: `boxShadowBtnV2.hover.enable === true`,
419
+ source: [
420
+ 'boxShadowBtnV2',
421
+ 'hasBoxShadowBtn'
422
+ ],
423
+ action: {
424
+ controlId: 'hasBoxShadowBtn',
425
+ groupType: 'advanced',
426
+ controlType: 'advanced',
427
+ state: 'hover',
428
+ newValue: true
429
+ }
430
+ },
431
+ {
432
+ condition: `boxShadowBtnV2.hover.enable === false`,
433
+ source: [
434
+ 'boxShadowBtnV2',
435
+ 'hasBoxShadowBtn'
436
+ ],
437
+ action: {
438
+ controlId: 'hasBoxShadowBtn',
439
+ groupType: 'advanced',
440
+ controlType: 'advanced',
441
+ state: 'hover',
442
+ newValue: false
443
+ }
444
+ }
445
+ ],
446
+ options: {
447
+ noRecordHistory: true
448
+ }
369
449
  }
370
450
  }
371
451
  ]
@@ -180,9 +180,49 @@ const SettingUIV2 = [
180
180
  id: 'boxShadowBtnV2',
181
181
  state: 'normal'
182
182
  },
183
- controlConfig: {
184
- id: 'boxShadowBtnV2',
185
- type: 'shadow-v2'
183
+ options: {
184
+ updateFields: [
185
+ {
186
+ field: 'enable',
187
+ settingId: 'hasBoxShadowBtn',
188
+ state: 'normal'
189
+ }
190
+ ]
191
+ },
192
+ controlChangeTrigger: {
193
+ settings: [
194
+ {
195
+ condition: `boxShadowBtnV2.normal.enable === true`,
196
+ source: [
197
+ 'boxShadowBtnV2',
198
+ 'hasBoxShadowBtn'
199
+ ],
200
+ action: {
201
+ controlId: 'hasBoxShadowBtn',
202
+ groupType: 'advanced',
203
+ controlType: 'advanced',
204
+ state: 'normal',
205
+ newValue: true
206
+ }
207
+ },
208
+ {
209
+ condition: `boxShadowBtnV2.normal.enable === false`,
210
+ source: [
211
+ 'boxShadowBtnV2',
212
+ 'hasBoxShadowBtn'
213
+ ],
214
+ action: {
215
+ controlId: 'hasBoxShadowBtn',
216
+ groupType: 'advanced',
217
+ controlType: 'advanced',
218
+ state: 'normal',
219
+ newValue: false
220
+ }
221
+ }
222
+ ],
223
+ options: {
224
+ noRecordHistory: true
225
+ }
186
226
  }
187
227
  }
188
228
  ]
@@ -343,9 +383,49 @@ const SettingUIV2 = [
343
383
  id: 'boxShadowBtnV2',
344
384
  state: 'hover'
345
385
  },
346
- controlConfig: {
347
- id: 'boxShadowBtnV2',
348
- type: 'shadow-v2'
386
+ options: {
387
+ updateFields: [
388
+ {
389
+ field: 'enable',
390
+ settingId: 'hasBoxShadowBtn',
391
+ state: 'hover'
392
+ }
393
+ ]
394
+ },
395
+ controlChangeTrigger: {
396
+ settings: [
397
+ {
398
+ condition: `boxShadowBtnV2.hover.enable === true`,
399
+ source: [
400
+ 'boxShadowBtnV2',
401
+ 'hasBoxShadowBtn'
402
+ ],
403
+ action: {
404
+ controlId: 'hasBoxShadowBtn',
405
+ groupType: 'advanced',
406
+ controlType: 'advanced',
407
+ state: 'hover',
408
+ newValue: true
409
+ }
410
+ },
411
+ {
412
+ condition: `boxShadowBtnV2.normal.enable === false`,
413
+ source: [
414
+ 'boxShadowBtnV2',
415
+ 'hasBoxShadowBtn'
416
+ ],
417
+ action: {
418
+ controlId: 'hasBoxShadowBtn',
419
+ groupType: 'advanced',
420
+ controlType: 'advanced',
421
+ state: 'normal',
422
+ newValue: false
423
+ }
424
+ }
425
+ ],
426
+ options: {
427
+ noRecordHistory: true
428
+ }
349
429
  }
350
430
  }
351
431
  ]
@@ -95,9 +95,49 @@ const SettingUIV2 = [
95
95
  id: 'boxShadow',
96
96
  state: 'normal'
97
97
  },
98
- controlConfig: {
99
- id: 'boxShadow',
100
- type: 'shadow-v2'
98
+ options: {
99
+ updateFields: [
100
+ {
101
+ field: 'enable',
102
+ settingId: 'hasBoxShadow',
103
+ state: 'normal'
104
+ }
105
+ ]
106
+ },
107
+ controlChangeTrigger: {
108
+ settings: [
109
+ {
110
+ condition: `boxShadow.normal.enable === true`,
111
+ source: [
112
+ 'boxShadow',
113
+ 'hasBoxShadow'
114
+ ],
115
+ action: {
116
+ controlId: 'hasBoxShadow',
117
+ groupType: 'advanced',
118
+ controlType: 'advanced',
119
+ state: 'normal',
120
+ newValue: true
121
+ }
122
+ },
123
+ {
124
+ condition: `boxShadow.normal.enable === false`,
125
+ source: [
126
+ 'boxShadow',
127
+ 'hasBoxShadow'
128
+ ],
129
+ action: {
130
+ controlId: 'hasBoxShadow',
131
+ groupType: 'advanced',
132
+ controlType: 'advanced',
133
+ state: 'normal',
134
+ newValue: false
135
+ }
136
+ }
137
+ ],
138
+ options: {
139
+ noRecordHistory: true
140
+ }
101
141
  }
102
142
  }
103
143
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.382",
3
+ "version": "2.0.0-dev.383",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",