@gem-sdk/components 2.0.0-dev.413 → 2.0.0-dev.415

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.
Files changed (23) hide show
  1. package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +1 -1
  2. package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +4 -1
  3. package/dist/cjs/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
  4. package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +1 -1
  5. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
  6. package/dist/cjs/article/setting/configs/ArticleTitle/presets.js +1 -1
  7. package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +2 -2
  8. package/dist/cjs/dialog/setting/configs/settings.js +25 -15
  9. package/dist/cjs/dialog/setting/configs/uiV2.js +11 -2
  10. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +12 -10
  11. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +26 -15
  12. package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +1 -1
  13. package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +4 -1
  14. package/dist/esm/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
  15. package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +1 -1
  16. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
  17. package/dist/esm/article/setting/configs/ArticleTitle/presets.js +1 -1
  18. package/dist/esm/article/setting/configs/ArticleTitle/settings.js +2 -2
  19. package/dist/esm/dialog/setting/configs/settings.js +25 -15
  20. package/dist/esm/dialog/setting/configs/uiV2.js +11 -2
  21. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +12 -10
  22. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +26 -15
  23. package/package.json +2 -2
@@ -65,7 +65,7 @@ const uiV2 = [
65
65
  controls: [
66
66
  {
67
67
  label: {
68
- en: 'SEO tag'
68
+ en: 'HTML tag'
69
69
  },
70
70
  setting: {
71
71
  id: 'htmlTag'
@@ -49,7 +49,10 @@ const ArticleExcerptSettings = [
49
49
  id: 'typo',
50
50
  type: 'typography-v2',
51
51
  default: {
52
- type: 'subheading-3'
52
+ type: 'subheading-3',
53
+ attrs: {
54
+ color: '#212121'
55
+ }
53
56
  },
54
57
  ignoreReRender: true
55
58
  },
@@ -76,7 +76,7 @@ const uiV2 = [
76
76
  controls: [
77
77
  {
78
78
  label: {
79
- en: 'SEO tag'
79
+ en: 'HTML tag'
80
80
  },
81
81
  setting: {
82
82
  id: 'htmlTag'
@@ -9,7 +9,7 @@ const uiV2 = [
9
9
  controls: [
10
10
  {
11
11
  label: {
12
- en: 'Scale'
12
+ en: 'Image scale'
13
13
  },
14
14
  setting: {
15
15
  id: 'objectFit'
@@ -541,7 +541,7 @@ const uiV2 = [
541
541
  options: {
542
542
  labelVariant: 'primary',
543
543
  fullWidth: true,
544
- disableMessage: `This option is disabled because the width is set to 100%`
544
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
545
545
  }
546
546
  }
547
547
  ]
@@ -18,7 +18,7 @@ const ArticleTitlePresets = [
18
18
  tag: 'ArticleTitle',
19
19
  settings: {
20
20
  htmlTag: 'h1',
21
- linkArticle: true
21
+ linkArticle: 'go-to-article'
22
22
  },
23
23
  styles: {
24
24
  typo: {
@@ -38,7 +38,7 @@ const ArticleTitleSettings = [
38
38
  label: 'Div'
39
39
  }
40
40
  ],
41
- default: 'h1'
41
+ default: 'h2'
42
42
  },
43
43
  {
44
44
  id: 'enableLink',
@@ -56,7 +56,7 @@ const ArticleTitleSettings = [
56
56
  value: 'go-to-article'
57
57
  },
58
58
  {
59
- label: 'None',
59
+ label: 'Scroll to',
60
60
  value: 'scroll-to'
61
61
  }
62
62
  ],
@@ -130,18 +130,22 @@ const DialogSettings = [
130
130
  units: [
131
131
  '%'
132
132
  ],
133
- useOnlyUnitInit: true
133
+ useOnlyUnitInit: true,
134
+ showDefaultUnit: true,
135
+ isNumber: true
134
136
  },
135
137
  {
136
138
  id: 'triggerTime',
137
139
  type: 'input:slider',
138
140
  min: 0,
139
- default: 10,
141
+ default: 0,
140
142
  max: 100,
141
143
  units: [
142
144
  's'
143
145
  ],
144
- useOnlyUnitInit: true
146
+ useOnlyUnitInit: true,
147
+ showDefaultUnit: true,
148
+ isNumber: true
145
149
  },
146
150
  {
147
151
  id: 'triggerPercentage',
@@ -152,7 +156,9 @@ const DialogSettings = [
152
156
  min: 0,
153
157
  max: 100,
154
158
  default: 10,
155
- useOnlyUnitInit: true
159
+ useOnlyUnitInit: true,
160
+ showDefaultUnit: true,
161
+ isNumber: true
156
162
  },
157
163
  {
158
164
  id: 'frequency',
@@ -163,7 +169,9 @@ const DialogSettings = [
163
169
  units: [
164
170
  'days'
165
171
  ],
166
- useOnlyUnitInit: true
172
+ useOnlyUnitInit: true,
173
+ showDefaultUnit: true,
174
+ isNumber: true
167
175
  },
168
176
  {
169
177
  id: 'frequencyMode',
@@ -191,12 +199,16 @@ const DialogSettings = [
191
199
  },
192
200
  {
193
201
  id: 'iconSize',
194
- type: 'input:unit',
195
- units: [
196
- 'px'
197
- ],
198
- default: '12px'
202
+ type: 'input:stepper',
203
+ default: '12px',
204
+ includeUnit: 'px'
199
205
  },
206
+ // {
207
+ // id: 'iconSize',
208
+ // type: 'input:unit',
209
+ // units: ['px'],
210
+ // default: '12px',
211
+ // },
200
212
  {
201
213
  id: 'btnBg',
202
214
  type: 'color-picker-v2',
@@ -219,10 +231,6 @@ const DialogSettings = [
219
231
  label: 'After page loaded',
220
232
  value: 'show-on-page-load'
221
233
  },
222
- {
223
- label: 'After a time',
224
- value: 'show-after-time'
225
- },
226
234
  {
227
235
  label: 'Scroll partially',
228
236
  value: 'show-after-scroll'
@@ -258,7 +266,9 @@ const DialogSettings = [
258
266
  units: [
259
267
  's'
260
268
  ],
261
- useOnlyUnitInit: true
269
+ useOnlyUnitInit: true,
270
+ showDefaultUnit: true,
271
+ isNumber: true
262
272
  },
263
273
  {
264
274
  id: 'btnRounded',
@@ -148,10 +148,19 @@ const SettingUIV2 = [
148
148
  name: 'spacing-setting',
149
149
  field: 'padding'
150
150
  },
151
+ devices: {
152
+ desktop: {
153
+ default: {
154
+ top: '32px',
155
+ bottom: '32px',
156
+ left: '32px',
157
+ right: '32px'
158
+ }
159
+ }
160
+ },
151
161
  compoDefaultValue: {
152
162
  desktop: {
153
163
  default: {
154
- type: 'medium',
155
164
  top: '32px',
156
165
  bottom: '32px',
157
166
  left: '32px',
@@ -302,7 +311,7 @@ const SettingUIV2 = [
302
311
  {
303
312
  conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
304
313
  label: {
305
- en: 'Time'
314
+ en: 'Delay'
306
315
  },
307
316
  setting: {
308
317
  id: 'triggerTime'
@@ -181,25 +181,26 @@ const ProductImageSettingsV2 = [
181
181
  id: 'position',
182
182
  label: 'Layout',
183
183
  type: 'layout-selector',
184
- iconViewBox: '0 0 72 72',
184
+ iconViewBox: '0 0 50 50',
185
185
  enableItemBackground: true,
186
186
  itemPerRow: 3,
187
187
  itemSpacing: 'large',
188
+ enableItemOpacity: true,
188
189
  options: [
189
190
  {
190
- label: 'Gallery bottom',
191
+ label: 'Featured top',
191
192
  value: 'bottom-center',
192
193
  type: 'p-image-layout',
193
194
  iconName: 'gp-product-image-layout-bottom'
194
195
  },
195
196
  {
196
- label: 'Gallery left',
197
+ label: 'Featured right',
197
198
  value: 'left',
198
199
  type: 'p-image-layout',
199
200
  iconName: 'gp-product-image-layout-left'
200
201
  },
201
202
  {
202
- label: 'Gallery right',
203
+ label: 'Featured left',
203
204
  value: 'right',
204
205
  type: 'p-image-layout',
205
206
  iconName: 'gp-product-image-layout-right'
@@ -211,31 +212,32 @@ const ProductImageSettingsV2 = [
211
212
  iconName: 'gp-product-image-layout-featured-only'
212
213
  },
213
214
  {
214
- label: 'Gallery 2 col',
215
+ label: 'Image list 2 col',
215
216
  value: 'two-col',
216
217
  type: 'p-image-layout',
217
218
  iconName: 'gp-product-image-layout-two-col'
218
219
  },
219
220
  {
220
- label: 'Gallery 1 col',
221
+ label: 'Image list 1 col',
221
222
  value: 'one-col',
222
223
  type: 'p-image-layout',
223
- iconName: 'gp-product-image-layout-one-col'
224
+ iconName: 'gp-product-image-layout-one-col',
225
+ noPadding: 'y'
224
226
  },
225
227
  {
226
- label: 'Gallery inside bottom',
228
+ label: 'Image list inside bottom',
227
229
  value: 'inside-bottom',
228
230
  type: 'p-image-layout',
229
231
  iconName: 'gp-product-image-layout-bottom-inside'
230
232
  },
231
233
  {
232
- label: 'Gallery inside left',
234
+ label: 'Image list inside left',
233
235
  value: 'inside-left',
234
236
  type: 'p-image-layout',
235
237
  iconName: 'gp-product-image-layout-left-inside'
236
238
  },
237
239
  {
238
- label: 'Gallery inside right',
240
+ label: 'Image list inside right',
239
241
  value: 'inside-right',
240
242
  type: 'p-image-layout',
241
243
  iconName: 'gp-product-image-layout-right-inside'
@@ -14,23 +14,34 @@ const SettingUIV2 = [
14
14
  layout: 'vertical',
15
15
  setting: {
16
16
  id: 'position'
17
- }
18
- },
19
- {
20
- type: 'control',
21
- setting: {
22
- id: 'ratioLayout'
23
17
  },
24
- layout: 'vertical',
25
- conditionDisplay: 'position == "left"'
26
- },
27
- {
28
- type: 'control',
29
- setting: {
30
- id: 'ratioLayoutRight'
18
+ options: {
19
+ isComboLayout: true
31
20
  },
32
- layout: 'vertical',
33
- conditionDisplay: 'position == "right"'
21
+ controls: [
22
+ {
23
+ label: {
24
+ en: 'Ratio'
25
+ },
26
+ type: 'control',
27
+ setting: {
28
+ id: 'ratioLayout'
29
+ },
30
+ layout: 'vertical',
31
+ conditionDisplay: 'position == "left"'
32
+ },
33
+ {
34
+ label: {
35
+ en: 'Ratio'
36
+ },
37
+ type: 'control',
38
+ setting: {
39
+ id: 'ratioLayoutRight'
40
+ },
41
+ layout: 'vertical',
42
+ conditionDisplay: 'position == "right"'
43
+ }
44
+ ]
34
45
  }
35
46
  ]
36
47
  },
@@ -63,7 +63,7 @@ const uiV2 = [
63
63
  controls: [
64
64
  {
65
65
  label: {
66
- en: 'SEO tag'
66
+ en: 'HTML tag'
67
67
  },
68
68
  setting: {
69
69
  id: 'htmlTag'
@@ -47,7 +47,10 @@ const ArticleExcerptSettings = [
47
47
  id: 'typo',
48
48
  type: 'typography-v2',
49
49
  default: {
50
- type: 'subheading-3'
50
+ type: 'subheading-3',
51
+ attrs: {
52
+ color: '#212121'
53
+ }
51
54
  },
52
55
  ignoreReRender: true
53
56
  },
@@ -74,7 +74,7 @@ const uiV2 = [
74
74
  controls: [
75
75
  {
76
76
  label: {
77
- en: 'SEO tag'
77
+ en: 'HTML tag'
78
78
  },
79
79
  setting: {
80
80
  id: 'htmlTag'
@@ -7,7 +7,7 @@ const uiV2 = [
7
7
  controls: [
8
8
  {
9
9
  label: {
10
- en: 'Scale'
10
+ en: 'Image scale'
11
11
  },
12
12
  setting: {
13
13
  id: 'objectFit'
@@ -539,7 +539,7 @@ const uiV2 = [
539
539
  options: {
540
540
  labelVariant: 'primary',
541
541
  fullWidth: true,
542
- disableMessage: `This option is disabled because the width is set to 100%`
542
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
543
543
  }
544
544
  }
545
545
  ]
@@ -16,7 +16,7 @@ const ArticleTitlePresets = [
16
16
  tag: 'ArticleTitle',
17
17
  settings: {
18
18
  htmlTag: 'h1',
19
- linkArticle: true
19
+ linkArticle: 'go-to-article'
20
20
  },
21
21
  styles: {
22
22
  typo: {
@@ -36,7 +36,7 @@ const ArticleTitleSettings = [
36
36
  label: 'Div'
37
37
  }
38
38
  ],
39
- default: 'h1'
39
+ default: 'h2'
40
40
  },
41
41
  {
42
42
  id: 'enableLink',
@@ -54,7 +54,7 @@ const ArticleTitleSettings = [
54
54
  value: 'go-to-article'
55
55
  },
56
56
  {
57
- label: 'None',
57
+ label: 'Scroll to',
58
58
  value: 'scroll-to'
59
59
  }
60
60
  ],
@@ -128,18 +128,22 @@ const DialogSettings = [
128
128
  units: [
129
129
  '%'
130
130
  ],
131
- useOnlyUnitInit: true
131
+ useOnlyUnitInit: true,
132
+ showDefaultUnit: true,
133
+ isNumber: true
132
134
  },
133
135
  {
134
136
  id: 'triggerTime',
135
137
  type: 'input:slider',
136
138
  min: 0,
137
- default: 10,
139
+ default: 0,
138
140
  max: 100,
139
141
  units: [
140
142
  's'
141
143
  ],
142
- useOnlyUnitInit: true
144
+ useOnlyUnitInit: true,
145
+ showDefaultUnit: true,
146
+ isNumber: true
143
147
  },
144
148
  {
145
149
  id: 'triggerPercentage',
@@ -150,7 +154,9 @@ const DialogSettings = [
150
154
  min: 0,
151
155
  max: 100,
152
156
  default: 10,
153
- useOnlyUnitInit: true
157
+ useOnlyUnitInit: true,
158
+ showDefaultUnit: true,
159
+ isNumber: true
154
160
  },
155
161
  {
156
162
  id: 'frequency',
@@ -161,7 +167,9 @@ const DialogSettings = [
161
167
  units: [
162
168
  'days'
163
169
  ],
164
- useOnlyUnitInit: true
170
+ useOnlyUnitInit: true,
171
+ showDefaultUnit: true,
172
+ isNumber: true
165
173
  },
166
174
  {
167
175
  id: 'frequencyMode',
@@ -189,12 +197,16 @@ const DialogSettings = [
189
197
  },
190
198
  {
191
199
  id: 'iconSize',
192
- type: 'input:unit',
193
- units: [
194
- 'px'
195
- ],
196
- default: '12px'
200
+ type: 'input:stepper',
201
+ default: '12px',
202
+ includeUnit: 'px'
197
203
  },
204
+ // {
205
+ // id: 'iconSize',
206
+ // type: 'input:unit',
207
+ // units: ['px'],
208
+ // default: '12px',
209
+ // },
198
210
  {
199
211
  id: 'btnBg',
200
212
  type: 'color-picker-v2',
@@ -217,10 +229,6 @@ const DialogSettings = [
217
229
  label: 'After page loaded',
218
230
  value: 'show-on-page-load'
219
231
  },
220
- {
221
- label: 'After a time',
222
- value: 'show-after-time'
223
- },
224
232
  {
225
233
  label: 'Scroll partially',
226
234
  value: 'show-after-scroll'
@@ -256,7 +264,9 @@ const DialogSettings = [
256
264
  units: [
257
265
  's'
258
266
  ],
259
- useOnlyUnitInit: true
267
+ useOnlyUnitInit: true,
268
+ showDefaultUnit: true,
269
+ isNumber: true
260
270
  },
261
271
  {
262
272
  id: 'btnRounded',
@@ -146,10 +146,19 @@ const SettingUIV2 = [
146
146
  name: 'spacing-setting',
147
147
  field: 'padding'
148
148
  },
149
+ devices: {
150
+ desktop: {
151
+ default: {
152
+ top: '32px',
153
+ bottom: '32px',
154
+ left: '32px',
155
+ right: '32px'
156
+ }
157
+ }
158
+ },
149
159
  compoDefaultValue: {
150
160
  desktop: {
151
161
  default: {
152
- type: 'medium',
153
162
  top: '32px',
154
163
  bottom: '32px',
155
164
  left: '32px',
@@ -300,7 +309,7 @@ const SettingUIV2 = [
300
309
  {
301
310
  conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
302
311
  label: {
303
- en: 'Time'
312
+ en: 'Delay'
304
313
  },
305
314
  setting: {
306
315
  id: 'triggerTime'
@@ -179,25 +179,26 @@ const ProductImageSettingsV2 = [
179
179
  id: 'position',
180
180
  label: 'Layout',
181
181
  type: 'layout-selector',
182
- iconViewBox: '0 0 72 72',
182
+ iconViewBox: '0 0 50 50',
183
183
  enableItemBackground: true,
184
184
  itemPerRow: 3,
185
185
  itemSpacing: 'large',
186
+ enableItemOpacity: true,
186
187
  options: [
187
188
  {
188
- label: 'Gallery bottom',
189
+ label: 'Featured top',
189
190
  value: 'bottom-center',
190
191
  type: 'p-image-layout',
191
192
  iconName: 'gp-product-image-layout-bottom'
192
193
  },
193
194
  {
194
- label: 'Gallery left',
195
+ label: 'Featured right',
195
196
  value: 'left',
196
197
  type: 'p-image-layout',
197
198
  iconName: 'gp-product-image-layout-left'
198
199
  },
199
200
  {
200
- label: 'Gallery right',
201
+ label: 'Featured left',
201
202
  value: 'right',
202
203
  type: 'p-image-layout',
203
204
  iconName: 'gp-product-image-layout-right'
@@ -209,31 +210,32 @@ const ProductImageSettingsV2 = [
209
210
  iconName: 'gp-product-image-layout-featured-only'
210
211
  },
211
212
  {
212
- label: 'Gallery 2 col',
213
+ label: 'Image list 2 col',
213
214
  value: 'two-col',
214
215
  type: 'p-image-layout',
215
216
  iconName: 'gp-product-image-layout-two-col'
216
217
  },
217
218
  {
218
- label: 'Gallery 1 col',
219
+ label: 'Image list 1 col',
219
220
  value: 'one-col',
220
221
  type: 'p-image-layout',
221
- iconName: 'gp-product-image-layout-one-col'
222
+ iconName: 'gp-product-image-layout-one-col',
223
+ noPadding: 'y'
222
224
  },
223
225
  {
224
- label: 'Gallery inside bottom',
226
+ label: 'Image list inside bottom',
225
227
  value: 'inside-bottom',
226
228
  type: 'p-image-layout',
227
229
  iconName: 'gp-product-image-layout-bottom-inside'
228
230
  },
229
231
  {
230
- label: 'Gallery inside left',
232
+ label: 'Image list inside left',
231
233
  value: 'inside-left',
232
234
  type: 'p-image-layout',
233
235
  iconName: 'gp-product-image-layout-left-inside'
234
236
  },
235
237
  {
236
- label: 'Gallery inside right',
238
+ label: 'Image list inside right',
237
239
  value: 'inside-right',
238
240
  type: 'p-image-layout',
239
241
  iconName: 'gp-product-image-layout-right-inside'
@@ -12,23 +12,34 @@ const SettingUIV2 = [
12
12
  layout: 'vertical',
13
13
  setting: {
14
14
  id: 'position'
15
- }
16
- },
17
- {
18
- type: 'control',
19
- setting: {
20
- id: 'ratioLayout'
21
15
  },
22
- layout: 'vertical',
23
- conditionDisplay: 'position == "left"'
24
- },
25
- {
26
- type: 'control',
27
- setting: {
28
- id: 'ratioLayoutRight'
16
+ options: {
17
+ isComboLayout: true
29
18
  },
30
- layout: 'vertical',
31
- conditionDisplay: 'position == "right"'
19
+ controls: [
20
+ {
21
+ label: {
22
+ en: 'Ratio'
23
+ },
24
+ type: 'control',
25
+ setting: {
26
+ id: 'ratioLayout'
27
+ },
28
+ layout: 'vertical',
29
+ conditionDisplay: 'position == "left"'
30
+ },
31
+ {
32
+ label: {
33
+ en: 'Ratio'
34
+ },
35
+ type: 'control',
36
+ setting: {
37
+ id: 'ratioLayoutRight'
38
+ },
39
+ layout: 'vertical',
40
+ conditionDisplay: 'position == "right"'
41
+ }
42
+ ]
32
43
  }
33
44
  ]
34
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.413",
3
+ "version": "2.0.0-dev.415",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
24
24
  },
25
25
  "devDependencies": {
26
- "@gem-sdk/core": "2.0.0-dev.413",
26
+ "@gem-sdk/core": "2.0.0-dev.415",
27
27
  "@gem-sdk/styles": "2.0.0-dev.381",
28
28
  "@gem-sdk/system": "2.0.0-dev.371",
29
29
  "@types/react-transition-group": "^4.4.5"