@gem-sdk/components 2.0.0-dev.541 → 2.0.0-dev.542

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.
@@ -74,6 +74,31 @@ const ControlUIV2 = [
74
74
  },
75
75
  setting: {
76
76
  id: 'iconItemColor'
77
+ },
78
+ controlChangeTrigger: {
79
+ settings: [
80
+ {
81
+ action: {
82
+ controlId: 'iconColor',
83
+ valueFromField: 'iconItemColor',
84
+ groupType: 'setting',
85
+ controlType: 'setting',
86
+ state: 'normal'
87
+ }
88
+ }
89
+ ],
90
+ options: {
91
+ noRecordHistory: true
92
+ }
93
+ },
94
+ options: {
95
+ updateFields: [
96
+ {
97
+ field: 'iconItemColor',
98
+ settingId: 'iconColor',
99
+ state: 'normal'
100
+ }
101
+ ]
77
102
  }
78
103
  },
79
104
  {
@@ -98,334 +123,6 @@ const ControlUIV2 = [
98
123
  }
99
124
  ]
100
125
  },
101
- // {
102
- // label: {
103
- // en: 'Size',
104
- // },
105
- // controls: [
106
- // {
107
- // type: 'control',
108
- // setting: {
109
- // id: 'size',
110
- // },
111
- // },
112
- // ],
113
- // },
114
- {
115
- label: {
116
- en: 'Item states'
117
- },
118
- controls: [
119
- {
120
- type: 'tab',
121
- controls: [
122
- {
123
- type: 'group',
124
- label: {
125
- en: 'Default'
126
- },
127
- controls: [
128
- {
129
- type: 'control',
130
- label: {
131
- en: 'Icon'
132
- },
133
- setting: {
134
- id: 'iconColor',
135
- state: 'normal'
136
- }
137
- },
138
- {
139
- type: 'control',
140
- label: {
141
- en: 'Background'
142
- },
143
- setting: {
144
- id: 'backgroundColor',
145
- state: 'normal'
146
- }
147
- },
148
- {
149
- type: 'control',
150
- label: {
151
- en: 'Border'
152
- },
153
- setting: {
154
- id: 'borderBundle',
155
- state: 'normal'
156
- }
157
- },
158
- {
159
- type: 'control',
160
- label: {
161
- en: 'Corner'
162
- },
163
- setting: {
164
- id: 'roundedBundle',
165
- state: 'normal'
166
- }
167
- },
168
- {
169
- label: {
170
- en: 'Shadow'
171
- },
172
- setting: {
173
- id: 'boxShadowBundle',
174
- state: 'normal'
175
- },
176
- options: {
177
- updateFields: [
178
- {
179
- field: 'normal.enable',
180
- settingId: 'hasBoxShadowBundle',
181
- state: 'normal'
182
- }
183
- ]
184
- },
185
- controlChangeTrigger: {
186
- settings: [
187
- {
188
- condition: `boxShadowBundle.normal.enable === true`,
189
- source: [
190
- 'boxShadowBundle',
191
- 'hasBoxShadowBundle'
192
- ],
193
- action: {
194
- controlId: 'hasBoxShadowBundle',
195
- groupType: 'style',
196
- controlType: 'style',
197
- state: 'normal',
198
- newValue: true
199
- }
200
- },
201
- {
202
- condition: `boxShadowBundle.normal.enable === false`,
203
- source: [
204
- 'boxShadowBundle',
205
- 'hasBoxShadowBundle'
206
- ],
207
- action: {
208
- controlId: 'hasBoxShadowBundle',
209
- groupType: 'style',
210
- controlType: 'style',
211
- state: 'normal',
212
- newValue: false
213
- }
214
- }
215
- ],
216
- options: {
217
- noRecordHistory: true
218
- }
219
- }
220
- }
221
- ]
222
- },
223
- {
224
- type: 'group',
225
- label: {
226
- en: 'Hover'
227
- },
228
- controls: [
229
- {
230
- type: 'control',
231
- label: {
232
- en: 'Icon'
233
- },
234
- setting: {
235
- id: 'iconColor',
236
- state: 'hover'
237
- }
238
- },
239
- {
240
- type: 'control',
241
- label: {
242
- en: 'Background'
243
- },
244
- setting: {
245
- id: 'backgroundColor',
246
- state: 'hover'
247
- }
248
- },
249
- {
250
- type: 'control',
251
- label: {
252
- en: 'Border'
253
- },
254
- setting: {
255
- id: 'borderBundle',
256
- state: 'hover'
257
- }
258
- },
259
- {
260
- type: 'control',
261
- label: {
262
- en: 'Corner'
263
- },
264
- setting: {
265
- id: 'roundedBundle',
266
- state: 'hover'
267
- }
268
- },
269
- {
270
- label: {
271
- en: 'Shadow'
272
- },
273
- setting: {
274
- id: 'boxShadowBundle',
275
- state: 'hover'
276
- },
277
- options: {
278
- updateFields: [
279
- {
280
- field: 'hover.enable',
281
- settingId: 'hasBoxShadowBundle',
282
- state: 'hover'
283
- }
284
- ]
285
- },
286
- controlChangeTrigger: {
287
- settings: [
288
- {
289
- condition: `boxShadowBundle.hover.enable === true`,
290
- source: [
291
- 'boxShadowBundle',
292
- 'hasBoxShadowBundle'
293
- ],
294
- action: {
295
- controlId: 'hasBoxShadowBundle',
296
- groupType: 'style',
297
- controlType: 'style',
298
- state: 'hover',
299
- newValue: true
300
- }
301
- },
302
- {
303
- condition: `boxShadowBundle.hover.enable === false`,
304
- source: [
305
- 'boxShadowBundle',
306
- 'hasBoxShadowBundle'
307
- ],
308
- action: {
309
- controlId: 'hasBoxShadowBundle',
310
- groupType: 'style',
311
- controlType: 'style',
312
- state: 'hover',
313
- newValue: false
314
- }
315
- }
316
- ],
317
- options: {
318
- noRecordHistory: true
319
- }
320
- }
321
- }
322
- ]
323
- },
324
- {
325
- type: 'group',
326
- label: {
327
- en: 'Active'
328
- },
329
- controls: [
330
- {
331
- type: 'control',
332
- label: {
333
- en: 'Icon'
334
- },
335
- setting: {
336
- id: 'iconColor',
337
- state: 'active'
338
- }
339
- },
340
- {
341
- type: 'control',
342
- label: {
343
- en: 'Background'
344
- },
345
- setting: {
346
- id: 'backgroundColor',
347
- state: 'active'
348
- }
349
- },
350
- {
351
- type: 'control',
352
- label: {
353
- en: 'Border'
354
- },
355
- setting: {
356
- id: 'borderBundle',
357
- state: 'active'
358
- }
359
- },
360
- {
361
- type: 'control',
362
- label: {
363
- en: 'Corner'
364
- },
365
- setting: {
366
- id: 'roundedBundle',
367
- state: 'active'
368
- }
369
- },
370
- {
371
- label: {
372
- en: 'Shadow'
373
- },
374
- setting: {
375
- id: 'boxShadowBundle',
376
- state: 'active'
377
- },
378
- options: {
379
- updateFields: [
380
- {
381
- field: 'active.enable',
382
- settingId: 'hasBoxShadowBundle',
383
- state: 'active'
384
- }
385
- ]
386
- },
387
- controlChangeTrigger: {
388
- settings: [
389
- {
390
- condition: `boxShadowBundle.active.enable === true`,
391
- source: [
392
- 'boxShadowBundle',
393
- 'hasBoxShadowBundle'
394
- ],
395
- action: {
396
- controlId: 'hasBoxShadowBundle',
397
- groupType: 'style',
398
- controlType: 'style',
399
- state: 'active',
400
- newValue: true
401
- }
402
- },
403
- {
404
- condition: `boxShadowBundle.active.enable === false`,
405
- source: [
406
- 'boxShadowBundle',
407
- 'hasBoxShadowBundle'
408
- ],
409
- action: {
410
- controlId: 'hasBoxShadowBundle',
411
- groupType: 'style',
412
- controlType: 'style',
413
- state: 'active',
414
- newValue: false
415
- }
416
- }
417
- ],
418
- options: {
419
- noRecordHistory: true
420
- }
421
- }
422
- }
423
- ]
424
- }
425
- ]
426
- }
427
- ]
428
- },
429
126
  {
430
127
  label: {
431
128
  en: 'Item style'
@@ -70,6 +70,31 @@ const ControlUIV2 = [
70
70
  },
71
71
  setting: {
72
72
  id: 'iconItemColor'
73
+ },
74
+ controlChangeTrigger: {
75
+ settings: [
76
+ {
77
+ action: {
78
+ controlId: 'iconColor',
79
+ valueFromField: 'iconItemColor',
80
+ groupType: 'setting',
81
+ controlType: 'setting',
82
+ state: 'normal'
83
+ }
84
+ }
85
+ ],
86
+ options: {
87
+ noRecordHistory: true
88
+ }
89
+ },
90
+ options: {
91
+ updateFields: [
92
+ {
93
+ field: 'iconItemColor',
94
+ settingId: 'iconColor',
95
+ state: 'normal'
96
+ }
97
+ ]
73
98
  }
74
99
  },
75
100
  {
@@ -94,334 +119,6 @@ const ControlUIV2 = [
94
119
  }
95
120
  ]
96
121
  },
97
- // {
98
- // label: {
99
- // en: 'Size',
100
- // },
101
- // controls: [
102
- // {
103
- // type: 'control',
104
- // setting: {
105
- // id: 'size',
106
- // },
107
- // },
108
- // ],
109
- // },
110
- {
111
- label: {
112
- en: 'Item states'
113
- },
114
- controls: [
115
- {
116
- type: 'tab',
117
- controls: [
118
- {
119
- type: 'group',
120
- label: {
121
- en: 'Default'
122
- },
123
- controls: [
124
- {
125
- type: 'control',
126
- label: {
127
- en: 'Icon'
128
- },
129
- setting: {
130
- id: 'iconColor',
131
- state: 'normal'
132
- }
133
- },
134
- {
135
- type: 'control',
136
- label: {
137
- en: 'Background'
138
- },
139
- setting: {
140
- id: 'backgroundColor',
141
- state: 'normal'
142
- }
143
- },
144
- {
145
- type: 'control',
146
- label: {
147
- en: 'Border'
148
- },
149
- setting: {
150
- id: 'borderBundle',
151
- state: 'normal'
152
- }
153
- },
154
- {
155
- type: 'control',
156
- label: {
157
- en: 'Corner'
158
- },
159
- setting: {
160
- id: 'roundedBundle',
161
- state: 'normal'
162
- }
163
- },
164
- {
165
- label: {
166
- en: 'Shadow'
167
- },
168
- setting: {
169
- id: 'boxShadowBundle',
170
- state: 'normal'
171
- },
172
- options: {
173
- updateFields: [
174
- {
175
- field: 'normal.enable',
176
- settingId: 'hasBoxShadowBundle',
177
- state: 'normal'
178
- }
179
- ]
180
- },
181
- controlChangeTrigger: {
182
- settings: [
183
- {
184
- condition: `boxShadowBundle.normal.enable === true`,
185
- source: [
186
- 'boxShadowBundle',
187
- 'hasBoxShadowBundle'
188
- ],
189
- action: {
190
- controlId: 'hasBoxShadowBundle',
191
- groupType: 'style',
192
- controlType: 'style',
193
- state: 'normal',
194
- newValue: true
195
- }
196
- },
197
- {
198
- condition: `boxShadowBundle.normal.enable === false`,
199
- source: [
200
- 'boxShadowBundle',
201
- 'hasBoxShadowBundle'
202
- ],
203
- action: {
204
- controlId: 'hasBoxShadowBundle',
205
- groupType: 'style',
206
- controlType: 'style',
207
- state: 'normal',
208
- newValue: false
209
- }
210
- }
211
- ],
212
- options: {
213
- noRecordHistory: true
214
- }
215
- }
216
- }
217
- ]
218
- },
219
- {
220
- type: 'group',
221
- label: {
222
- en: 'Hover'
223
- },
224
- controls: [
225
- {
226
- type: 'control',
227
- label: {
228
- en: 'Icon'
229
- },
230
- setting: {
231
- id: 'iconColor',
232
- state: 'hover'
233
- }
234
- },
235
- {
236
- type: 'control',
237
- label: {
238
- en: 'Background'
239
- },
240
- setting: {
241
- id: 'backgroundColor',
242
- state: 'hover'
243
- }
244
- },
245
- {
246
- type: 'control',
247
- label: {
248
- en: 'Border'
249
- },
250
- setting: {
251
- id: 'borderBundle',
252
- state: 'hover'
253
- }
254
- },
255
- {
256
- type: 'control',
257
- label: {
258
- en: 'Corner'
259
- },
260
- setting: {
261
- id: 'roundedBundle',
262
- state: 'hover'
263
- }
264
- },
265
- {
266
- label: {
267
- en: 'Shadow'
268
- },
269
- setting: {
270
- id: 'boxShadowBundle',
271
- state: 'hover'
272
- },
273
- options: {
274
- updateFields: [
275
- {
276
- field: 'hover.enable',
277
- settingId: 'hasBoxShadowBundle',
278
- state: 'hover'
279
- }
280
- ]
281
- },
282
- controlChangeTrigger: {
283
- settings: [
284
- {
285
- condition: `boxShadowBundle.hover.enable === true`,
286
- source: [
287
- 'boxShadowBundle',
288
- 'hasBoxShadowBundle'
289
- ],
290
- action: {
291
- controlId: 'hasBoxShadowBundle',
292
- groupType: 'style',
293
- controlType: 'style',
294
- state: 'hover',
295
- newValue: true
296
- }
297
- },
298
- {
299
- condition: `boxShadowBundle.hover.enable === false`,
300
- source: [
301
- 'boxShadowBundle',
302
- 'hasBoxShadowBundle'
303
- ],
304
- action: {
305
- controlId: 'hasBoxShadowBundle',
306
- groupType: 'style',
307
- controlType: 'style',
308
- state: 'hover',
309
- newValue: false
310
- }
311
- }
312
- ],
313
- options: {
314
- noRecordHistory: true
315
- }
316
- }
317
- }
318
- ]
319
- },
320
- {
321
- type: 'group',
322
- label: {
323
- en: 'Active'
324
- },
325
- controls: [
326
- {
327
- type: 'control',
328
- label: {
329
- en: 'Icon'
330
- },
331
- setting: {
332
- id: 'iconColor',
333
- state: 'active'
334
- }
335
- },
336
- {
337
- type: 'control',
338
- label: {
339
- en: 'Background'
340
- },
341
- setting: {
342
- id: 'backgroundColor',
343
- state: 'active'
344
- }
345
- },
346
- {
347
- type: 'control',
348
- label: {
349
- en: 'Border'
350
- },
351
- setting: {
352
- id: 'borderBundle',
353
- state: 'active'
354
- }
355
- },
356
- {
357
- type: 'control',
358
- label: {
359
- en: 'Corner'
360
- },
361
- setting: {
362
- id: 'roundedBundle',
363
- state: 'active'
364
- }
365
- },
366
- {
367
- label: {
368
- en: 'Shadow'
369
- },
370
- setting: {
371
- id: 'boxShadowBundle',
372
- state: 'active'
373
- },
374
- options: {
375
- updateFields: [
376
- {
377
- field: 'active.enable',
378
- settingId: 'hasBoxShadowBundle',
379
- state: 'active'
380
- }
381
- ]
382
- },
383
- controlChangeTrigger: {
384
- settings: [
385
- {
386
- condition: `boxShadowBundle.active.enable === true`,
387
- source: [
388
- 'boxShadowBundle',
389
- 'hasBoxShadowBundle'
390
- ],
391
- action: {
392
- controlId: 'hasBoxShadowBundle',
393
- groupType: 'style',
394
- controlType: 'style',
395
- state: 'active',
396
- newValue: true
397
- }
398
- },
399
- {
400
- condition: `boxShadowBundle.active.enable === false`,
401
- source: [
402
- 'boxShadowBundle',
403
- 'hasBoxShadowBundle'
404
- ],
405
- action: {
406
- controlId: 'hasBoxShadowBundle',
407
- groupType: 'style',
408
- controlType: 'style',
409
- state: 'active',
410
- newValue: false
411
- }
412
- }
413
- ],
414
- options: {
415
- noRecordHistory: true
416
- }
417
- }
418
- }
419
- ]
420
- }
421
- ]
422
- }
423
- ]
424
- },
425
122
  {
426
123
  label: {
427
124
  en: 'Item style'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.541",
3
+ "version": "2.0.0-dev.542",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",