@gem-sdk/components 2.0.0-dev.394 → 2.0.0-dev.395

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.
@@ -0,0 +1,404 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const ControlUIV1 = [
6
+ {
7
+ type: 'group',
8
+ label: {
9
+ en: 'Item management'
10
+ },
11
+ controls: [
12
+ {
13
+ type: 'control',
14
+ layout: 'vertical',
15
+ setting: {
16
+ id: 'childItem'
17
+ }
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ type: 'control',
23
+ label: {
24
+ en: 'Use product compare-at price'
25
+ },
26
+ setting: {
27
+ id: 'useProductCompareAtPrice'
28
+ }
29
+ },
30
+ {
31
+ type: 'control',
32
+ label: {
33
+ en: 'Hide no-discount items'
34
+ },
35
+ setting: {
36
+ id: 'hideNoDiscountItem'
37
+ }
38
+ },
39
+ {
40
+ type: 'group',
41
+ label: {
42
+ en: ''
43
+ },
44
+ controls: [
45
+ {
46
+ type: 'control',
47
+ label: {
48
+ en: 'Pre-selected item'
49
+ },
50
+ setting: {
51
+ id: 'hasPreSelectItem'
52
+ },
53
+ options: {
54
+ label: 'large',
55
+ styleControl: {
56
+ width: 'auto'
57
+ }
58
+ }
59
+ },
60
+ {
61
+ type: 'control',
62
+ condition: 'hasPreSelectItem == true',
63
+ layout: 'vertical',
64
+ setting: {
65
+ id: 'selectItemDefault'
66
+ },
67
+ options: {
68
+ styleControl: {
69
+ 'max-width': '100%'
70
+ }
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ type: 'group',
77
+ controls: [
78
+ {
79
+ type: 'control',
80
+ label: {
81
+ en: 'Icon'
82
+ },
83
+ options: {
84
+ label: 'large'
85
+ },
86
+ setting: {
87
+ id: 'enableIcon'
88
+ }
89
+ },
90
+ {
91
+ type: 'control',
92
+ condition: 'enableIcon == true && layout == "vertical-layout"',
93
+ label: {
94
+ en: 'Icon position'
95
+ },
96
+ setting: {
97
+ id: 'iconPosition'
98
+ }
99
+ },
100
+ {
101
+ type: 'control',
102
+ condition: 'enableIcon == true && layout == "horizontal-layout"',
103
+ label: {
104
+ en: 'Icon position'
105
+ },
106
+ setting: {
107
+ id: 'iconHorizontalPosition'
108
+ }
109
+ },
110
+ {
111
+ type: 'control',
112
+ condition: 'enableIcon == true',
113
+ label: {
114
+ en: 'Icon size'
115
+ },
116
+ setting: {
117
+ id: 'iconSize'
118
+ }
119
+ },
120
+ {
121
+ type: 'control',
122
+ condition: 'enableIcon == true',
123
+ label: {
124
+ en: 'Icon spacing'
125
+ },
126
+ setting: {
127
+ id: 'iconSpacing'
128
+ }
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ label: {
134
+ en: 'Size'
135
+ },
136
+ type: 'group',
137
+ controls: [
138
+ {
139
+ type: 'control',
140
+ setting: {
141
+ id: 'size'
142
+ },
143
+ options: {
144
+ noGap: true
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ type: 'group',
151
+ label: {
152
+ en: 'Item states'
153
+ },
154
+ options: {
155
+ labelSpacing: 'small'
156
+ },
157
+ controls: [
158
+ {
159
+ type: 'tab',
160
+ controls: [
161
+ {
162
+ type: 'group',
163
+ label: {
164
+ en: 'Default'
165
+ },
166
+ controls: [
167
+ {
168
+ type: 'control',
169
+ label: {
170
+ en: 'Icon'
171
+ },
172
+ setting: {
173
+ id: 'iconColor',
174
+ state: 'normal'
175
+ }
176
+ },
177
+ {
178
+ type: 'control',
179
+ label: {
180
+ en: 'Background'
181
+ },
182
+ setting: {
183
+ id: 'backgroundColor',
184
+ state: 'normal'
185
+ }
186
+ },
187
+ {
188
+ type: 'control',
189
+ options: {
190
+ labelPosition: 'start'
191
+ },
192
+ label: {
193
+ en: 'Border'
194
+ },
195
+ setting: {
196
+ id: 'borderBundle',
197
+ state: 'normal'
198
+ }
199
+ },
200
+ {
201
+ type: 'control',
202
+ label: {
203
+ en: 'Corner'
204
+ },
205
+ setting: {
206
+ id: 'roundedBundle',
207
+ state: 'normal'
208
+ }
209
+ },
210
+ {
211
+ type: 'control',
212
+ label: {
213
+ en: 'Shadow'
214
+ },
215
+ setting: {
216
+ id: 'hasBoxShadowBundle',
217
+ state: 'normal'
218
+ }
219
+ },
220
+ {
221
+ type: 'group',
222
+ condition: 'hasBoxShadowBundle.normal == true',
223
+ controls: [
224
+ {
225
+ type: 'control',
226
+ layout: 'vertical',
227
+ setting: {
228
+ id: 'boxShadowBundle',
229
+ state: 'normal'
230
+ }
231
+ }
232
+ ]
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ type: 'group',
238
+ label: {
239
+ en: 'Hover'
240
+ },
241
+ controls: [
242
+ {
243
+ type: 'control',
244
+ label: {
245
+ en: 'Icon'
246
+ },
247
+ setting: {
248
+ id: 'iconColor',
249
+ state: 'hover'
250
+ }
251
+ },
252
+ {
253
+ type: 'control',
254
+ label: {
255
+ en: 'Background'
256
+ },
257
+ setting: {
258
+ id: 'backgroundColor',
259
+ state: 'hover'
260
+ }
261
+ },
262
+ {
263
+ type: 'control',
264
+ options: {
265
+ labelPosition: 'start'
266
+ },
267
+ label: {
268
+ en: 'Border'
269
+ },
270
+ setting: {
271
+ id: 'borderBundle',
272
+ state: 'hover'
273
+ }
274
+ },
275
+ {
276
+ type: 'control',
277
+ label: {
278
+ en: 'Corner'
279
+ },
280
+ setting: {
281
+ id: 'roundedBundle',
282
+ state: 'hover'
283
+ }
284
+ },
285
+ {
286
+ type: 'control',
287
+ label: {
288
+ en: 'Shadow'
289
+ },
290
+ setting: {
291
+ id: 'hasBoxShadowBundle',
292
+ state: 'hover'
293
+ }
294
+ },
295
+ {
296
+ type: 'group',
297
+ condition: 'hasBoxShadowBundle.hover == true',
298
+ controls: [
299
+ {
300
+ type: 'control',
301
+ setting: {
302
+ id: 'boxShadowBundle',
303
+ state: 'hover'
304
+ },
305
+ layout: 'vertical'
306
+ }
307
+ ]
308
+ }
309
+ ]
310
+ },
311
+ {
312
+ type: 'group',
313
+ label: {
314
+ en: 'Active'
315
+ },
316
+ controls: [
317
+ {
318
+ type: 'control',
319
+ label: {
320
+ en: 'Icon'
321
+ },
322
+ setting: {
323
+ id: 'iconColor',
324
+ state: 'active'
325
+ }
326
+ },
327
+ {
328
+ type: 'control',
329
+ label: {
330
+ en: 'Background'
331
+ },
332
+ setting: {
333
+ id: 'backgroundColor',
334
+ state: 'active'
335
+ }
336
+ },
337
+ {
338
+ type: 'control',
339
+ options: {
340
+ labelPosition: 'start'
341
+ },
342
+ label: {
343
+ en: 'Border'
344
+ },
345
+ setting: {
346
+ id: 'borderBundle',
347
+ state: 'active'
348
+ }
349
+ },
350
+ {
351
+ type: 'control',
352
+ label: {
353
+ en: 'Corner'
354
+ },
355
+ setting: {
356
+ id: 'roundedBundle',
357
+ state: 'active'
358
+ }
359
+ },
360
+ {
361
+ type: 'control',
362
+ label: {
363
+ en: 'Shadow'
364
+ },
365
+ setting: {
366
+ id: 'hasBoxShadowBundle',
367
+ state: 'active'
368
+ }
369
+ },
370
+ {
371
+ type: 'group',
372
+ condition: 'hasBoxShadowBundle.active == true',
373
+ controls: [
374
+ {
375
+ type: 'control',
376
+ setting: {
377
+ id: 'boxShadowBundle',
378
+ state: 'active'
379
+ },
380
+ layout: 'vertical'
381
+ }
382
+ ]
383
+ }
384
+ ]
385
+ }
386
+ ]
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ type: 'control',
392
+ label: {
393
+ en: 'Align'
394
+ },
395
+ options: {
396
+ label: 'large'
397
+ },
398
+ setting: {
399
+ id: 'align'
400
+ }
401
+ }
402
+ ];
403
+
404
+ exports.default = ControlUIV1;