@gem-sdk/components 2.0.0-dev.275 → 2.0.0-dev.278
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.
- package/dist/cjs/article/components/ArticleReadMore.js +2 -4
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +4 -4
- package/dist/cjs/builder.js +4 -8
- package/dist/cjs/button/components/Button.js +111 -184
- package/dist/cjs/button/components/Button.liquid.js +108 -171
- package/dist/cjs/button/components/ButtonIcon.js +17 -0
- package/dist/cjs/button/components/ButtonIcon.liquid.js +16 -0
- package/dist/cjs/button/components/ButtonLabel.js +18 -0
- package/dist/cjs/button/components/ButtonLabel.liquid.js +15 -0
- package/dist/cjs/button/components/ButtonLoadingIndicator.liquid.js +12 -0
- package/dist/cjs/button/components/common/attributes.js +15 -0
- package/dist/cjs/button/components/common/classes.js +55 -0
- package/dist/cjs/button/components/common/constants.js +26 -0
- package/dist/cjs/button/components/common/data.js +76 -0
- package/dist/cjs/button/components/common/helpers.js +131 -0
- package/dist/cjs/button/components/common/styles.js +157 -0
- package/dist/cjs/button/next.js +2 -6
- package/dist/cjs/button/setting/configs/settings.js +5 -1
- package/dist/cjs/cart/components/CheckoutNow.js +0 -2
- package/dist/cjs/coupon/components/Coupon.js +1 -3
- package/dist/cjs/dialog/setting/Dialog.js +7 -580
- package/dist/cjs/dialog/setting/configs/settings.js +325 -0
- package/dist/cjs/dialog/setting/configs/uiV1.js +288 -0
- package/dist/cjs/dialog/setting/configs/uiV2.js +258 -0
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/cjs/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/cjs/index.js +2 -4
- package/dist/cjs/index.liquid.js +1 -3
- package/dist/cjs/post-purchase/callout-banner/components/CalloutText.js +1 -2
- package/dist/cjs/post-purchase/callout-banner/components/common/getClasses.js +2 -5
- package/dist/cjs/post-purchase/callout-banner/components/common/getStyles.js +4 -2
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +11 -1
- package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
- package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +15 -2
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +3 -1
- package/dist/cjs/post-purchase/utils/constants.js +1 -1
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +2 -5
- package/dist/cjs/product/components/DynamicCheckout.js +2 -5
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/product/components/ProductButton.js +2 -3
- package/dist/cjs/product/components/ProductButton.liquid.js +3 -3
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +1 -2
- package/dist/cjs/product/components/ProductViewMore.js +2 -5
- package/dist/cjs/product/components/ProductViewMore.liquid.js +2 -2
- package/dist/cjs/setting.js +2 -2
- package/dist/cjs/text/components/common/getClasses.js +1 -1
- package/dist/cjs/third-party/components/PushOwl.js +0 -5
- package/dist/esm/article/components/ArticleReadMore.js +1 -3
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +4 -4
- package/dist/esm/builder.js +1 -5
- package/dist/esm/button/components/Button.js +113 -186
- package/dist/esm/button/components/Button.liquid.js +109 -172
- package/dist/esm/button/components/ButtonIcon.js +13 -0
- package/dist/esm/button/components/ButtonIcon.liquid.js +12 -0
- package/dist/esm/button/components/ButtonLabel.js +14 -0
- package/dist/esm/button/components/ButtonLabel.liquid.js +11 -0
- package/dist/esm/button/components/ButtonLoadingIndicator.liquid.js +8 -0
- package/dist/esm/button/components/common/attributes.js +13 -0
- package/dist/esm/button/components/common/classes.js +49 -0
- package/dist/esm/button/components/common/constants.js +24 -0
- package/dist/esm/button/components/common/data.js +74 -0
- package/dist/esm/button/components/common/helpers.js +118 -0
- package/dist/esm/button/components/common/styles.js +148 -0
- package/dist/esm/button/next.js +2 -6
- package/dist/esm/button/setting/configs/settings.js +5 -1
- package/dist/esm/cart/components/CheckoutNow.js +0 -2
- package/dist/esm/coupon/components/Coupon.js +1 -3
- package/dist/esm/dialog/setting/Dialog.js +7 -580
- package/dist/esm/dialog/setting/configs/settings.js +323 -0
- package/dist/esm/dialog/setting/configs/uiV1.js +286 -0
- package/dist/esm/dialog/setting/configs/uiV2.js +256 -0
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -3
- package/dist/esm/form/components/submit-button/SubmitButton.js +0 -4
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.liquid.js +1 -2
- package/dist/esm/post-purchase/callout-banner/components/CalloutText.js +1 -2
- package/dist/esm/post-purchase/callout-banner/components/common/getClasses.js +2 -5
- package/dist/esm/post-purchase/callout-banner/components/common/getStyles.js +4 -2
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +11 -1
- package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +1 -1
- package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +4 -1
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +15 -2
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +3 -1
- package/dist/esm/post-purchase/utils/constants.js +1 -1
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +1 -4
- package/dist/esm/product/components/DynamicCheckout.js +1 -4
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/product/components/ProductButton.js +1 -2
- package/dist/esm/product/components/ProductButton.liquid.js +1 -1
- package/dist/esm/product/components/ProductDescription/index.liquid.js +3 -4
- package/dist/esm/product/components/ProductViewMore.js +1 -4
- package/dist/esm/product/components/ProductViewMore.liquid.js +1 -1
- package/dist/esm/setting.js +2 -2
- package/dist/esm/text/components/common/getClasses.js +1 -1
- package/dist/esm/third-party/components/PushOwl.js +0 -5
- package/dist/types/index.d.ts +175 -267
- package/package.json +2 -2
- package/dist/cjs/button/components/v2/ButtonIcon.js +0 -18
- package/dist/cjs/button/components/v2/ButtonLabel.js +0 -25
- package/dist/cjs/button/components/v2/ButtonV2.js +0 -140
- package/dist/cjs/button/components/v2/ButtonV2.liquid.js +0 -181
- package/dist/cjs/button/hooks/useButtonCustomCss.js +0 -88
- package/dist/cjs/button/hooks/useButtonStyles.js +0 -93
- package/dist/esm/button/components/v2/ButtonIcon.js +0 -14
- package/dist/esm/button/components/v2/ButtonLabel.js +0 -21
- package/dist/esm/button/components/v2/ButtonV2.js +0 -136
- package/dist/esm/button/components/v2/ButtonV2.liquid.js +0 -177
- package/dist/esm/button/hooks/useButtonCustomCss.js +0 -84
- package/dist/esm/button/hooks/useButtonStyles.js +0 -91
- /package/dist/cjs/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
- /package/dist/esm/button/components/{v2/ButtonLoadingIndicator.js → ButtonLoadingIndicator.js} +0 -0
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var settings = require('./configs/settings.js');
|
|
6
|
+
var uiV1 = require('./configs/uiV1.js');
|
|
7
|
+
var uiV2 = require('./configs/uiV2.js');
|
|
8
|
+
|
|
5
9
|
const config = {
|
|
6
10
|
tag: 'Dialog',
|
|
7
11
|
label: 'Popup',
|
|
@@ -9,586 +13,9 @@ const config = {
|
|
|
9
13
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.33855 2C7.16052 2 5.39488 3.76561 5.39488 5.94361V22.6611C5.39488 24.8391 7.16052 26.6047 9.33855 26.6047H26.0563C28.2344 26.6047 30 24.8391 30 22.6611V5.94361C30 3.76562 28.2344 2 26.0563 2H9.33855ZM7.36672 5.94361C7.36672 4.85461 8.24954 3.97181 9.33855 3.97181H26.0563C27.1453 3.97181 28.0282 4.85461 28.0282 5.94361V22.6611C28.0282 23.7501 27.1453 24.6329 26.0563 24.6329H9.33855C8.24954 24.6329 7.36672 23.7501 7.36672 22.6611V5.94361ZM14.8586 18.7057C14.6808 18.7945 14.4833 18.8365 14.2848 18.8275C14.0863 18.8186 13.8933 18.7591 13.7243 18.6546C13.5552 18.5502 13.4157 18.4043 13.3188 18.2307C13.222 18.0572 13.1711 17.8618 13.171 17.6631V10.9411C13.1711 10.7424 13.222 10.547 13.3188 10.3735C13.4157 10.2 13.5552 10.0541 13.7243 9.94962C13.8933 9.84517 14.0863 9.78566 14.2848 9.77672C14.4833 9.76778 14.6808 9.80971 14.8586 9.89853L21.5807 13.2595C21.7741 13.3565 21.9368 13.5054 22.0505 13.6895C22.1641 13.8736 22.2243 14.0857 22.2243 14.3021C22.2243 14.5185 22.1641 14.7306 22.0505 14.9148C21.9368 15.0989 21.7741 15.2477 21.5807 15.3447L14.8586 18.7057ZM2.98592 9.92188C3.53043 9.92188 3.97184 10.3633 3.97184 10.9078V27.6213C3.97184 27.6933 4.00246 27.7827 4.09987 27.8693C4.19908 27.9575 4.35638 28.0282 4.55284 28.0282H23.3559C23.9004 28.0282 24.3418 28.4696 24.3418 29.0141C24.3418 29.5586 23.9004 30 23.3559 30H4.55284C3.25532 30 2 29.041 2 27.6213V10.9078C2 10.3633 2.44141 9.92188 2.98592 9.92188Z" fill="white"/>
|
|
10
14
|
</svg>
|
|
11
15
|
`,
|
|
12
|
-
settings:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
controls: [
|
|
16
|
-
{
|
|
17
|
-
id: 'closeButtonPosition',
|
|
18
|
-
type: 'segment',
|
|
19
|
-
options: [
|
|
20
|
-
{
|
|
21
|
-
label: 'Inside',
|
|
22
|
-
value: 'inside'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: 'Outside',
|
|
26
|
-
value: 'outside'
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
default: 'inside'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
id: 'position',
|
|
33
|
-
type: 'position:square',
|
|
34
|
-
default: 'center'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
id: 'effectType',
|
|
38
|
-
type: 'select',
|
|
39
|
-
options: [
|
|
40
|
-
{
|
|
41
|
-
label: 'Fade',
|
|
42
|
-
value: 'fade'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: 'Zoom',
|
|
46
|
-
value: 'zoom'
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: 'Zoom out',
|
|
50
|
-
value: 'zoom-out'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: 'Horizontal move',
|
|
54
|
-
value: 'horizontal'
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: 'Vertical move',
|
|
58
|
-
value: 'vertical'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
label: '3d Unfold',
|
|
62
|
-
value: 'unfold'
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
label: 'None',
|
|
66
|
-
value: 'none'
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
default: 'fade'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: 'closeOnClickOutside',
|
|
73
|
-
type: 'toggle',
|
|
74
|
-
default: true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
id: 'name',
|
|
78
|
-
type: 'input',
|
|
79
|
-
placeholder: 'E.g. New popup',
|
|
80
|
-
emptyOnClear: true
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 'width',
|
|
84
|
-
type: 'input:unit',
|
|
85
|
-
placeholder: 'Auto',
|
|
86
|
-
units: [
|
|
87
|
-
'px',
|
|
88
|
-
'%'
|
|
89
|
-
],
|
|
90
|
-
devices: {
|
|
91
|
-
desktop: {
|
|
92
|
-
default: '600px'
|
|
93
|
-
},
|
|
94
|
-
mobile: {
|
|
95
|
-
default: '100%'
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
id: 'height',
|
|
101
|
-
type: 'input:unit',
|
|
102
|
-
placeholder: 'Auto',
|
|
103
|
-
units: [
|
|
104
|
-
'px',
|
|
105
|
-
'%'
|
|
106
|
-
],
|
|
107
|
-
devices: {
|
|
108
|
-
desktop: {
|
|
109
|
-
default: undefined
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
id: 'fullScreen',
|
|
115
|
-
type: 'toggle',
|
|
116
|
-
devices: {
|
|
117
|
-
desktop: {
|
|
118
|
-
default: false
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: 'isOverlay',
|
|
124
|
-
type: 'toggle',
|
|
125
|
-
default: true
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
id: 'overlayColor',
|
|
129
|
-
type: 'colorpicker',
|
|
130
|
-
default: '#121212'
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: 'overlayOpacity',
|
|
134
|
-
type: 'range',
|
|
135
|
-
min: 0,
|
|
136
|
-
step: 1,
|
|
137
|
-
max: 100,
|
|
138
|
-
default: 70,
|
|
139
|
-
units: [
|
|
140
|
-
'%'
|
|
141
|
-
],
|
|
142
|
-
useOnlyUnitInit: true
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
id: 'triggerTime',
|
|
146
|
-
type: 'range',
|
|
147
|
-
min: 0,
|
|
148
|
-
default: 10,
|
|
149
|
-
max: 100,
|
|
150
|
-
units: [
|
|
151
|
-
's'
|
|
152
|
-
],
|
|
153
|
-
useOnlyUnitInit: true
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
id: 'triggerPercentage',
|
|
157
|
-
type: 'range',
|
|
158
|
-
units: [
|
|
159
|
-
'%'
|
|
160
|
-
],
|
|
161
|
-
min: 0,
|
|
162
|
-
max: 100,
|
|
163
|
-
default: 10,
|
|
164
|
-
useOnlyUnitInit: true
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: 'frequency',
|
|
168
|
-
type: 'range',
|
|
169
|
-
min: 1,
|
|
170
|
-
max: 30,
|
|
171
|
-
default: 3,
|
|
172
|
-
units: [
|
|
173
|
-
'days'
|
|
174
|
-
],
|
|
175
|
-
useOnlyUnitInit: true
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
id: 'frequencyMode',
|
|
179
|
-
type: 'select',
|
|
180
|
-
options: [
|
|
181
|
-
{
|
|
182
|
-
label: 'Once per user',
|
|
183
|
-
value: 'once'
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
label: 'Each visit time',
|
|
187
|
-
value: 'every'
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
label: 'After a time',
|
|
191
|
-
value: 'after-period-time'
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
default: 'once'
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
id: 'btnSize',
|
|
198
|
-
type: 'input:number',
|
|
199
|
-
default: 32
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
id: 'iconSize',
|
|
203
|
-
type: 'input:unit',
|
|
204
|
-
units: [
|
|
205
|
-
'px'
|
|
206
|
-
],
|
|
207
|
-
default: '12px'
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
id: 'btnBg',
|
|
211
|
-
type: 'colorpicker',
|
|
212
|
-
default: '#ffffff'
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
id: 'btnColor',
|
|
216
|
-
type: 'colorpicker',
|
|
217
|
-
default: 'line-3'
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
id: 'trigger',
|
|
221
|
-
type: 'select',
|
|
222
|
-
options: [
|
|
223
|
-
{
|
|
224
|
-
label: 'None',
|
|
225
|
-
value: 'none'
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: 'After loaded',
|
|
229
|
-
value: 'show-on-page-load'
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
label: 'After a time',
|
|
233
|
-
value: 'show-after-time'
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
label: 'Scroll partially',
|
|
237
|
-
value: 'show-after-scroll'
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
label: 'About to exit',
|
|
241
|
-
value: 'show-when-about-exit'
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
default: 'none'
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: 'mobileTrigger',
|
|
248
|
-
type: 'select',
|
|
249
|
-
options: [
|
|
250
|
-
{
|
|
251
|
-
label: 'None',
|
|
252
|
-
value: 'none'
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
label: 'Timer',
|
|
256
|
-
value: 'timer'
|
|
257
|
-
}
|
|
258
|
-
],
|
|
259
|
-
default: 'none'
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
id: 'mobileTriggerTime',
|
|
263
|
-
type: 'range',
|
|
264
|
-
min: 0,
|
|
265
|
-
default: 10,
|
|
266
|
-
max: 100,
|
|
267
|
-
units: [
|
|
268
|
-
's'
|
|
269
|
-
],
|
|
270
|
-
useOnlyUnitInit: true
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
id: 'btnRounded',
|
|
274
|
-
type: 'radius-preset',
|
|
275
|
-
default: {
|
|
276
|
-
radiusType: 'none'
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
id: 'background',
|
|
281
|
-
type: 'background',
|
|
282
|
-
ignoreReRender: true,
|
|
283
|
-
allowBackgroundImageAndVideo: false,
|
|
284
|
-
devices: {
|
|
285
|
-
desktop: {
|
|
286
|
-
default: {
|
|
287
|
-
type: 'color',
|
|
288
|
-
color: '#FFFFFF',
|
|
289
|
-
image: {
|
|
290
|
-
src: '',
|
|
291
|
-
width: 0,
|
|
292
|
-
height: 0
|
|
293
|
-
},
|
|
294
|
-
size: 'cover',
|
|
295
|
-
position: {
|
|
296
|
-
x: 50,
|
|
297
|
-
y: 50
|
|
298
|
-
},
|
|
299
|
-
repeat: 'no-repeat',
|
|
300
|
-
attachment: 'scroll'
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
ui: [
|
|
309
|
-
{
|
|
310
|
-
type: 'group',
|
|
311
|
-
label: {
|
|
312
|
-
en: 'Display'
|
|
313
|
-
},
|
|
314
|
-
controls: [
|
|
315
|
-
{
|
|
316
|
-
type: 'control',
|
|
317
|
-
label: {
|
|
318
|
-
en: 'Name'
|
|
319
|
-
},
|
|
320
|
-
setting: {
|
|
321
|
-
id: 'name'
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
type: 'control',
|
|
326
|
-
label: {
|
|
327
|
-
en: 'Show when'
|
|
328
|
-
},
|
|
329
|
-
setting: {
|
|
330
|
-
id: 'trigger'
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
type: 'control',
|
|
335
|
-
condition: `trigger === 'show-after-time'`,
|
|
336
|
-
label: {
|
|
337
|
-
en: 'Time'
|
|
338
|
-
},
|
|
339
|
-
setting: {
|
|
340
|
-
id: 'triggerTime'
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
type: 'control',
|
|
345
|
-
condition: `trigger === 'show-after-scroll'`,
|
|
346
|
-
label: {
|
|
347
|
-
en: 'Scroll'
|
|
348
|
-
},
|
|
349
|
-
setting: {
|
|
350
|
-
id: 'triggerPercentage'
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
type: 'control',
|
|
355
|
-
condition: `trigger === 'show-when-about-exit'`,
|
|
356
|
-
label: {
|
|
357
|
-
en: 'On mobile'
|
|
358
|
-
},
|
|
359
|
-
setting: {
|
|
360
|
-
id: 'mobileTrigger'
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
type: 'control',
|
|
365
|
-
condition: `trigger === 'show-when-about-exit' && mobileTrigger === 'timer'`,
|
|
366
|
-
label: {
|
|
367
|
-
en: 'After load'
|
|
368
|
-
},
|
|
369
|
-
setting: {
|
|
370
|
-
id: 'mobileTriggerTime'
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
]
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
type: 'group',
|
|
377
|
-
label: {
|
|
378
|
-
en: 'Show frequency'
|
|
379
|
-
},
|
|
380
|
-
controls: [
|
|
381
|
-
{
|
|
382
|
-
type: 'control',
|
|
383
|
-
label: {
|
|
384
|
-
en: 'Show mode'
|
|
385
|
-
},
|
|
386
|
-
setting: {
|
|
387
|
-
id: 'frequencyMode'
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
type: 'control',
|
|
392
|
-
condition: `frequencyMode === 'after-period-time'`,
|
|
393
|
-
label: {
|
|
394
|
-
en: 'Display time'
|
|
395
|
-
},
|
|
396
|
-
setting: {
|
|
397
|
-
id: 'frequency'
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
type: 'group',
|
|
404
|
-
label: {
|
|
405
|
-
en: 'Button close popup'
|
|
406
|
-
},
|
|
407
|
-
controls: [
|
|
408
|
-
{
|
|
409
|
-
type: 'control',
|
|
410
|
-
setting: {
|
|
411
|
-
id: 'closeButtonPosition'
|
|
412
|
-
},
|
|
413
|
-
label: {
|
|
414
|
-
en: 'Position'
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
type: 'control',
|
|
419
|
-
label: {
|
|
420
|
-
en: 'Background'
|
|
421
|
-
},
|
|
422
|
-
setting: {
|
|
423
|
-
id: 'btnBg'
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
type: 'control',
|
|
428
|
-
label: {
|
|
429
|
-
en: 'Color'
|
|
430
|
-
},
|
|
431
|
-
setting: {
|
|
432
|
-
id: 'btnColor'
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
type: 'control',
|
|
437
|
-
label: {
|
|
438
|
-
en: 'Corner'
|
|
439
|
-
},
|
|
440
|
-
setting: {
|
|
441
|
-
id: 'btnRounded'
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
type: 'control',
|
|
446
|
-
label: {
|
|
447
|
-
en: 'Button size'
|
|
448
|
-
},
|
|
449
|
-
setting: {
|
|
450
|
-
id: 'btnSize'
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
type: 'control',
|
|
455
|
-
label: {
|
|
456
|
-
en: 'Icon size'
|
|
457
|
-
},
|
|
458
|
-
setting: {
|
|
459
|
-
id: 'iconSize'
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
]
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
type: 'group',
|
|
466
|
-
label: {
|
|
467
|
-
en: 'Size'
|
|
468
|
-
},
|
|
469
|
-
controls: [
|
|
470
|
-
{
|
|
471
|
-
type: 'control',
|
|
472
|
-
label: {
|
|
473
|
-
en: 'Full screen'
|
|
474
|
-
},
|
|
475
|
-
setting: {
|
|
476
|
-
id: 'fullScreen'
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
type: 'control',
|
|
481
|
-
condition: `!fullScreen`,
|
|
482
|
-
label: {
|
|
483
|
-
en: 'Width'
|
|
484
|
-
},
|
|
485
|
-
setting: {
|
|
486
|
-
id: 'width'
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
type: 'control',
|
|
491
|
-
condition: `!fullScreen`,
|
|
492
|
-
label: {
|
|
493
|
-
en: 'Height'
|
|
494
|
-
},
|
|
495
|
-
setting: {
|
|
496
|
-
id: 'height'
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
]
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
type: 'control',
|
|
503
|
-
label: {
|
|
504
|
-
en: 'Background'
|
|
505
|
-
},
|
|
506
|
-
options: {
|
|
507
|
-
label: 'large',
|
|
508
|
-
styleLabel: {
|
|
509
|
-
marginBottom: '4px'
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
setting: {
|
|
513
|
-
id: 'background'
|
|
514
|
-
},
|
|
515
|
-
layout: 'vertical'
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
type: 'group',
|
|
519
|
-
controls: [
|
|
520
|
-
{
|
|
521
|
-
type: 'control',
|
|
522
|
-
label: {
|
|
523
|
-
en: 'Overlay'
|
|
524
|
-
},
|
|
525
|
-
options: {
|
|
526
|
-
label: 'large'
|
|
527
|
-
},
|
|
528
|
-
setting: {
|
|
529
|
-
id: 'isOverlay'
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
type: 'control',
|
|
534
|
-
condition: `isOverlay === true`,
|
|
535
|
-
label: {
|
|
536
|
-
en: 'Color'
|
|
537
|
-
},
|
|
538
|
-
setting: {
|
|
539
|
-
id: 'overlayColor'
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
type: 'control',
|
|
544
|
-
condition: `isOverlay === true`,
|
|
545
|
-
label: {
|
|
546
|
-
en: 'Opacity'
|
|
547
|
-
},
|
|
548
|
-
setting: {
|
|
549
|
-
id: 'overlayOpacity'
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
type: 'control',
|
|
554
|
-
condition: `isOverlay === true`,
|
|
555
|
-
label: {
|
|
556
|
-
en: 'Click overlay to close popup'
|
|
557
|
-
},
|
|
558
|
-
setting: {
|
|
559
|
-
id: 'closeOnClickOutside'
|
|
560
|
-
},
|
|
561
|
-
options: {
|
|
562
|
-
styleControl: {
|
|
563
|
-
width: 'auto'
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
]
|
|
568
|
-
},
|
|
569
|
-
{
|
|
570
|
-
type: 'control',
|
|
571
|
-
setting: {
|
|
572
|
-
id: 'position'
|
|
573
|
-
},
|
|
574
|
-
options: {
|
|
575
|
-
labelPosition: 'start'
|
|
576
|
-
},
|
|
577
|
-
label: {
|
|
578
|
-
en: 'Position'
|
|
579
|
-
},
|
|
580
|
-
condition: `!fullScreen`
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
type: 'control',
|
|
584
|
-
setting: {
|
|
585
|
-
id: 'effectType'
|
|
586
|
-
},
|
|
587
|
-
label: {
|
|
588
|
-
en: 'Effect'
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
],
|
|
16
|
+
settings: settings.DialogSettings,
|
|
17
|
+
ui: uiV1.SettingUIV1,
|
|
18
|
+
uiV2: uiV2.SettingUIV2,
|
|
592
19
|
presets: [
|
|
593
20
|
{
|
|
594
21
|
id: 'popup',
|