@useinsider/guido 2.2.0-beta.dc12458 → 2.2.0-beta.fa4cec8
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/README.md +36 -0
- package/dist/@types/config/schemas.js +70 -65
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +69 -58
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +15 -14
- package/dist/components/organisms/header/HeaderWrapper.vue.js +9 -9
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +19 -19
- package/dist/composables/useBlocksConfig.js +26 -16
- package/dist/composables/useHtmlValidator.js +114 -104
- package/dist/composables/useRecommendation.js +54 -21
- package/dist/composables/useStripo.js +25 -23
- package/dist/composables/useVersionHistoryApi.js +1 -1
- package/dist/config/compiler/recommendationCompilerRules.js +45 -39
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +121 -0
- package/dist/config/i18n/en/index.js +11 -0
- package/dist/config/i18n/en/labels.json.js +7 -0
- package/dist/config/i18n/en/toasters.json.js +56 -0
- package/dist/config/i18n/en/tooltips.json.js +82 -0
- package/dist/config/i18n/index.js +7 -0
- package/dist/config/migrator/itemsBlockMigrator.js +127 -122
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- package/dist/enums/defaults.js +8 -4
- package/dist/enums/extensions/recommendationBlock.js +1 -1
- package/dist/enums/recommendation.js +16 -15
- package/dist/extensions/Blocks/Recommendation/block.js +133 -9
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +66 -0
- package/dist/extensions/Blocks/Recommendation/constants/layout.js +22 -0
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +21 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +80 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +232 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
- package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +92 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +102 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +209 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +52 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +250 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +70 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +160 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +67 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +307 -0
- package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +21 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +108 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextAfterControl.js → omnibusDiscount/textAfter.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextBeforeControl.js → omnibusDiscount/textBefore.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextAfterControl.js → omnibusPrice/textAfter.js} +16 -14
- package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextBeforeControl.js → omnibusPrice/textBefore.js} +14 -12
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +222 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -17
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +19 -3
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +13 -4
- package/dist/extensions/Blocks/Recommendation/services/configService.js +240 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +21 -10
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +254 -207
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +228 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +251 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +66 -0
- package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +169 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +73 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +134 -0
- package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +6 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +26 -15
- package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +29 -0
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +46 -0
- package/dist/extensions/Blocks/Unsubscribe/block.js +29 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +12 -9
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +31 -1
- package/dist/extensions/Blocks/controlFactories.js +125 -93
- package/dist/extensions/ModulesTabIcons/extension.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +317 -193
- package/dist/services/recommendationApi.js +11 -8
- package/dist/services/stripoApi.js +20 -17
- package/dist/services/templateLibraryApi.js +16 -13
- package/dist/src/@types/config/schemas.d.ts +8 -0
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +17 -0
- package/dist/src/config/i18n/en/index.d.ts +1 -0
- package/dist/src/config/i18n/index.d.ts +16 -0
- package/dist/src/enums/defaults.d.ts +4 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +67 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +0 -24
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +49 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +41 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/{cardCompositionControl.d.ts → controls/cardComposition/index.d.ts} +23 -3
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +21 -589
- package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +37 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +52 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +79 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +60 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +23 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +221 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +83 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +151 -0
- package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +138 -468
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +20 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → grid/migration.d.ts} +11 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +41 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/migration.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +18 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +66 -0
- package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +166 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +113 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +77 -0
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +1 -0
- package/dist/src/extensions/ModulesTabIcons/extension.d.ts +2 -0
- package/dist/src/stores/config.d.ts +36 -0
- package/dist/static/styles/components/notification.css.js +19 -0
- package/dist/static/styles/components/tools.css.js +6 -2
- package/dist/static/styles/components/version-history.css.js +10 -2
- package/dist/static/styles/components/wide-panel.css.js +18 -2
- package/dist/static/styles/customEditorStyle.css.js +35 -11
- package/dist/static/styles/variables.css.js +2 -0
- package/dist/static/templates/empty/index.html.js +74 -0
- package/dist/static/templates/empty/style.css.js +779 -0
- package/dist/stores/unsubscribe.js +37 -34
- package/dist/utils/pairProductVariables.js +57 -56
- package/dist/utils/templatePreparation.js +15 -14
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -187
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -13
- package/dist/extensions/Blocks/Recommendation/control.js +0 -336
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
- package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -245
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -181
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -189
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -209
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -38
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -52
|
@@ -4,14 +4,14 @@ var B = class d {
|
|
|
4
4
|
* @param requiredMethods - Array of method names that must be implemented
|
|
5
5
|
* @param classRef - Reference to the class constructor for validation caching
|
|
6
6
|
*/
|
|
7
|
-
constructor(t,
|
|
8
|
-
if (
|
|
9
|
-
d.validatedClasses.has(
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
7
|
+
constructor(t, n) {
|
|
8
|
+
if (n !== d) {
|
|
9
|
+
d.validatedClasses.has(n) || this.validateImplementation(t, n);
|
|
10
|
+
const i = d.validationErrors.get(n);
|
|
11
|
+
if (i && i.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
14
|
-
${
|
|
13
|
+
`${n.name} has validation errors:
|
|
14
|
+
${i.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -20,23 +20,23 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
20
20
|
* Validates that all required methods are properly implemented in the subclass.
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
|
-
validateImplementation(t,
|
|
23
|
+
validateImplementation(t, n) {
|
|
24
24
|
var x;
|
|
25
|
-
const
|
|
25
|
+
const i = [], o = n.name, Y = Object.getPrototypeOf(this);
|
|
26
26
|
t.forEach((u) => {
|
|
27
27
|
if (typeof this[u] != "function") {
|
|
28
|
-
|
|
28
|
+
i.push(`Method ${u}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
Y[u] ===
|
|
32
|
-
}), d.validatedClasses.add(
|
|
31
|
+
Y[u] === n.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), d.validatedClasses.add(n), i.length > 0 ? (d.validationErrors.set(n, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((x = process.env) == null ? void 0 : x.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
36
|
B.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
-
var
|
|
37
|
+
var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class c extends s {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(
|
|
39
|
+
super(c.REQUIRED_METHODS, c);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Determines if the block should be available for use in the editor.
|
|
@@ -195,10 +195,10 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
195
195
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
var
|
|
198
|
+
v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
+
var Qe = v, W = class T extends s {
|
|
200
200
|
constructor() {
|
|
201
|
-
super(
|
|
201
|
+
super(T.REQUIRED_METHODS, T);
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -214,9 +214,76 @@ var we = y, W = class c extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
217
|
+
var fe = class {
|
|
218
|
+
/**
|
|
219
|
+
* Generates HTML representation for a block item
|
|
220
|
+
* @param block - The block item to generate HTML for
|
|
221
|
+
* @returns HTML string representation of the block or undefined if default representation should be used
|
|
222
|
+
*/
|
|
223
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
224
|
+
getBlockItemHtml(e) {
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Determines whether a hint should be displayed for the block
|
|
228
|
+
* @param block - The block item to check hint visibility for
|
|
229
|
+
* @returns True if the hint should be visible, false otherwise
|
|
230
|
+
*/
|
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
|
+
isBlockHintVisible(e) {
|
|
233
|
+
return !0;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Gets the hint text for a block
|
|
237
|
+
* @param block - The block item to get hint for
|
|
238
|
+
* @returns The hint text for the block or undefined if default hint should be used
|
|
239
|
+
*/
|
|
240
|
+
getBlockHint(e) {
|
|
241
|
+
return {
|
|
242
|
+
title: e.title,
|
|
243
|
+
description: e.description
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Generates HTML representation for the blocks panel header
|
|
248
|
+
* @returns HTML string representation of the blocks panel header or undefined if header should not be shown
|
|
249
|
+
*/
|
|
250
|
+
getBlocksPanelHeaderHtml() {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Generates HTML representation for the modules panel in collapsed state
|
|
254
|
+
* @returns HTML string representation of the collapsed modules panel or undefined if default representation should be used
|
|
255
|
+
*/
|
|
256
|
+
getModulesPanelCollapsedHtml() {
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Determines whether a hint should be displayed for the collapsed modules panel
|
|
260
|
+
* @returns True if the hint should be visible, false otherwise
|
|
261
|
+
*/
|
|
262
|
+
isModulesPanelCollapsedHintVisible() {
|
|
263
|
+
return !0;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Gets the custom delay for showing hints
|
|
267
|
+
* @returns The delay in milliseconds or undefined to use the default delay
|
|
268
|
+
*/
|
|
269
|
+
getHintDelay() {
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Gets the hint text for a modules panel block
|
|
273
|
+
* @returns The hint text for the modules panel or undefined if default hint should be used
|
|
274
|
+
*/
|
|
275
|
+
getModulesPanelHint() {
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Gets the icon name for the modules tab
|
|
279
|
+
* @returns The icon name for the modules tab or undefined if default icon or text should be used
|
|
280
|
+
*/
|
|
281
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
|
+
getModulesTabIconName(e) {
|
|
283
|
+
}
|
|
284
|
+
}, z = class b extends s {
|
|
218
285
|
constructor() {
|
|
219
|
-
super(
|
|
286
|
+
super(b.REQUIRED_METHODS, b);
|
|
220
287
|
}
|
|
221
288
|
getId() {
|
|
222
289
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -238,78 +305,132 @@ var Z = {
|
|
|
238
305
|
href: "href",
|
|
239
306
|
width: "width",
|
|
240
307
|
height: "height"
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
},
|
|
244
|
-
BLOCK_IMAGE: Z,
|
|
245
|
-
BLOCK_BUTTON: j
|
|
246
|
-
}, v = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", ae = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", Ee = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${ae}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${Ee}`, e.FORM = `.${le}`, e))(I || {}), oe = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(oe || {}), P = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(P || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), de = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(de || {}), n = {
|
|
308
|
+
}, Ye = {
|
|
309
|
+
BLOCK_IMAGE: Z
|
|
310
|
+
}, y = "esd-block-button", U = "esd-block-text", P = "esd-block-image", j = "esd-structure", q = "esd-block-video", J = "esd-block-social", ee = "esd-block-banner", te = "esd-block-timer", re = "esd-block-menu", ne = "esd-block-html", ae = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${q}`, e.SOCIAL = `.${J}`, e.BANNER = `.${ee}`, e.TIMER = `.${te}`, e.MENU = `.${re}`, e.HTML = `.${ne}`, e.SPACER = `.${ae}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${le}`, e))(I || {}), Ee = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(Ee || {}), w = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(w || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), oe = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(oe || {}), a = {
|
|
247
311
|
BLOCK_BUTTON: K,
|
|
248
312
|
BLOCK_TEXT: F,
|
|
249
313
|
BLOCK_IMAGE: H,
|
|
250
|
-
GENERAL:
|
|
251
|
-
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(
|
|
314
|
+
GENERAL: w
|
|
315
|
+
}, de = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(de || {}), ue = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ue || {}), Ie = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Ie || {}), r = {
|
|
252
316
|
name: "name",
|
|
253
317
|
disabled: "disabled"
|
|
254
|
-
},
|
|
255
|
-
...
|
|
318
|
+
}, ce = {
|
|
319
|
+
...r,
|
|
256
320
|
caption: "caption",
|
|
257
321
|
icon: "icon"
|
|
258
322
|
}, Te = {
|
|
259
|
-
...
|
|
323
|
+
...r,
|
|
260
324
|
caption: "caption"
|
|
261
|
-
},
|
|
262
|
-
...
|
|
325
|
+
}, be = {
|
|
326
|
+
...r,
|
|
263
327
|
minValue: "min-value",
|
|
264
328
|
maxValue: "max-value",
|
|
265
329
|
step: "step"
|
|
266
330
|
}, Oe = {
|
|
267
|
-
...
|
|
268
|
-
|
|
331
|
+
...r,
|
|
332
|
+
placeholder: "placeholder",
|
|
333
|
+
minDate: "min-date"
|
|
269
334
|
}, he = {
|
|
270
|
-
...
|
|
271
|
-
|
|
272
|
-
|
|
335
|
+
...r,
|
|
336
|
+
text: "text",
|
|
337
|
+
hint: "hint"
|
|
338
|
+
}, ge = {
|
|
339
|
+
...r,
|
|
340
|
+
type: "type"
|
|
341
|
+
}, me = {
|
|
342
|
+
...r,
|
|
343
|
+
buttons: "buttons"
|
|
344
|
+
}, k = {
|
|
345
|
+
...r,
|
|
273
346
|
searchable: "searchable",
|
|
274
347
|
multiSelect: "multi-select",
|
|
275
348
|
placeholder: "placeholder",
|
|
276
349
|
items: "items"
|
|
277
|
-
},
|
|
278
|
-
...
|
|
279
|
-
|
|
350
|
+
}, Re = {
|
|
351
|
+
...k,
|
|
352
|
+
addCustomFontOption: "add-custom-font-option"
|
|
353
|
+
}, Le = {
|
|
354
|
+
...r,
|
|
280
355
|
text: "text",
|
|
281
356
|
value: "value"
|
|
282
|
-
},
|
|
357
|
+
}, _e = {
|
|
358
|
+
...r,
|
|
283
359
|
text: "text",
|
|
360
|
+
hint: "hint",
|
|
284
361
|
icon: "icon",
|
|
285
362
|
value: "value"
|
|
286
|
-
},
|
|
287
|
-
...
|
|
288
|
-
|
|
363
|
+
}, Ce = {
|
|
364
|
+
...r,
|
|
365
|
+
buttons: "buttons"
|
|
366
|
+
}, Ae = {
|
|
367
|
+
...r,
|
|
368
|
+
text: "text",
|
|
369
|
+
hint: "hint",
|
|
370
|
+
icon: "icon",
|
|
371
|
+
value: "value"
|
|
372
|
+
}, Ne = {
|
|
373
|
+
...r,
|
|
374
|
+
placeholder: "placeholder"
|
|
375
|
+
}, De = {
|
|
376
|
+
...r,
|
|
377
|
+
resizable: "resizable",
|
|
378
|
+
placeholder: "placeholder"
|
|
379
|
+
}, Se = {
|
|
380
|
+
...r,
|
|
381
|
+
img: "img",
|
|
382
|
+
src: "src",
|
|
383
|
+
title: "title",
|
|
384
|
+
imageClass: "image-class",
|
|
385
|
+
hint: "hint",
|
|
386
|
+
disabled: "disabled",
|
|
387
|
+
isActive: "is-active",
|
|
388
|
+
visibility: "visibility",
|
|
389
|
+
transform: "transform"
|
|
390
|
+
}, Be = {
|
|
391
|
+
...r,
|
|
289
392
|
controlId: "control-id"
|
|
290
|
-
},
|
|
291
|
-
...
|
|
393
|
+
}, Me = {
|
|
394
|
+
...r,
|
|
395
|
+
expanded: "expanded"
|
|
396
|
+
}, xe = {
|
|
397
|
+
...r,
|
|
292
398
|
icon: "icon",
|
|
293
399
|
position: "position"
|
|
294
|
-
},
|
|
295
|
-
...
|
|
296
|
-
},
|
|
297
|
-
|
|
400
|
+
}, ve = {
|
|
401
|
+
...r
|
|
402
|
+
}, ye = {
|
|
403
|
+
...r,
|
|
404
|
+
icon: "icon"
|
|
405
|
+
}, Ue = {
|
|
406
|
+
...r
|
|
407
|
+
}, $e = {
|
|
408
|
+
DEFAULT: r,
|
|
409
|
+
BUTTON: ce,
|
|
298
410
|
CHECKBOX: Te,
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
411
|
+
CHECK_BUTTONS: Ce,
|
|
412
|
+
COLOR: r,
|
|
413
|
+
COUNTER: be,
|
|
414
|
+
DATEPICKER: Oe,
|
|
415
|
+
LABEL: he,
|
|
416
|
+
MESSAGE: ge,
|
|
417
|
+
RADIO_BUTTONS: me,
|
|
418
|
+
SELECTPICKER: k,
|
|
419
|
+
FONT_FAMILY_SELECT: Re,
|
|
420
|
+
SWITCHER: r,
|
|
421
|
+
TEXT: Ne,
|
|
422
|
+
TEXTAREA: De,
|
|
423
|
+
ICON: Se,
|
|
424
|
+
CHECK_ITEM: _e,
|
|
425
|
+
SELECT_ITEM: Le,
|
|
426
|
+
RADIO_ITEM: Ae,
|
|
427
|
+
NESTED_CONTROL: Be,
|
|
428
|
+
EXPANDABLE: Me,
|
|
429
|
+
ORDERABLE: xe,
|
|
430
|
+
ORDERABLE_ITEM: ve,
|
|
431
|
+
ORDERABLE_ICON: ye,
|
|
432
|
+
REPEATABLE: Ue
|
|
433
|
+
}, Pe = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(Pe || {}), M = class {
|
|
313
434
|
/**
|
|
314
435
|
* @description returns map of nodes parent control operates on
|
|
315
436
|
*/
|
|
@@ -340,68 +461,68 @@ var Z = {
|
|
|
340
461
|
isVisible(e) {
|
|
341
462
|
return !0;
|
|
342
463
|
}
|
|
343
|
-
},
|
|
464
|
+
}, l = class extends M {
|
|
344
465
|
getTargetNodes(e) {
|
|
345
|
-
const t = e.querySelectorAll(I.BUTTON),
|
|
346
|
-
return t.length ? t :
|
|
466
|
+
const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
|
|
467
|
+
return t.length ? t : n;
|
|
347
468
|
}
|
|
348
|
-
},
|
|
469
|
+
}, We = class extends l {
|
|
349
470
|
getParentControlId() {
|
|
350
|
-
return
|
|
471
|
+
return a.BLOCK_BUTTON.BORDER_RADIUS;
|
|
351
472
|
}
|
|
352
473
|
getLabels() {
|
|
353
474
|
}
|
|
354
|
-
},
|
|
475
|
+
}, ze = class extends l {
|
|
355
476
|
getParentControlId() {
|
|
356
|
-
return
|
|
477
|
+
return a.BLOCK_BUTTON.ALIGNMENT;
|
|
357
478
|
}
|
|
358
|
-
},
|
|
479
|
+
}, Ze = class extends l {
|
|
359
480
|
getParentControlId() {
|
|
360
|
-
return
|
|
481
|
+
return a.GENERAL.BACKGROUND_COLOR;
|
|
361
482
|
}
|
|
362
|
-
},
|
|
483
|
+
}, je = class extends l {
|
|
363
484
|
getParentControlId() {
|
|
364
|
-
return
|
|
485
|
+
return a.BLOCK_BUTTON.BORDER;
|
|
365
486
|
}
|
|
366
487
|
getLabels() {
|
|
367
488
|
}
|
|
368
|
-
},
|
|
489
|
+
}, qe = class extends l {
|
|
369
490
|
getParentControlId() {
|
|
370
|
-
return
|
|
491
|
+
return a.BLOCK_BUTTON.COLOR;
|
|
371
492
|
}
|
|
372
|
-
},
|
|
493
|
+
}, Je = class extends l {
|
|
373
494
|
getParentControlId() {
|
|
374
|
-
return
|
|
495
|
+
return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
375
496
|
}
|
|
376
|
-
},
|
|
497
|
+
}, et = class extends l {
|
|
377
498
|
getParentControlId() {
|
|
378
|
-
return
|
|
499
|
+
return a.BLOCK_BUTTON.FONT_FAMILY;
|
|
379
500
|
}
|
|
380
|
-
},
|
|
501
|
+
}, tt = class extends l {
|
|
381
502
|
getParentControlId() {
|
|
382
|
-
return
|
|
503
|
+
return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
383
504
|
}
|
|
384
|
-
},
|
|
505
|
+
}, rt = class extends l {
|
|
385
506
|
getParentControlId() {
|
|
386
|
-
return
|
|
507
|
+
return a.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
387
508
|
}
|
|
388
|
-
},
|
|
509
|
+
}, nt = class extends l {
|
|
389
510
|
getParentControlId() {
|
|
390
|
-
return
|
|
511
|
+
return a.BLOCK_BUTTON.TEXT;
|
|
391
512
|
}
|
|
392
|
-
},
|
|
513
|
+
}, at = class extends l {
|
|
393
514
|
getParentControlId() {
|
|
394
|
-
return
|
|
515
|
+
return a.BLOCK_BUTTON.FONT_SIZE;
|
|
395
516
|
}
|
|
396
|
-
},
|
|
517
|
+
}, st = class extends l {
|
|
397
518
|
getParentControlId() {
|
|
398
|
-
return
|
|
519
|
+
return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
399
520
|
}
|
|
400
521
|
getLabels() {
|
|
401
522
|
}
|
|
402
|
-
},
|
|
523
|
+
}, X = class O extends s {
|
|
403
524
|
constructor() {
|
|
404
|
-
super(
|
|
525
|
+
super(O.REQUIRED_METHODS, O);
|
|
405
526
|
}
|
|
406
527
|
/**
|
|
407
528
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -454,10 +575,10 @@ var Z = {
|
|
|
454
575
|
onDocumentChanged(t) {
|
|
455
576
|
}
|
|
456
577
|
};
|
|
457
|
-
|
|
458
|
-
var
|
|
578
|
+
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
579
|
+
var it = X, we = class h extends s {
|
|
459
580
|
constructor() {
|
|
460
|
-
super(
|
|
581
|
+
super(h.REQUIRED_METHODS, h);
|
|
461
582
|
}
|
|
462
583
|
/**
|
|
463
584
|
* Gets the unique identifier for this tab.
|
|
@@ -524,30 +645,30 @@ var ze = k, Ne = class g extends a {
|
|
|
524
645
|
onDestroy() {
|
|
525
646
|
}
|
|
526
647
|
};
|
|
527
|
-
|
|
528
|
-
var
|
|
648
|
+
we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
649
|
+
var p = class extends M {
|
|
529
650
|
getTargetNodes(e) {
|
|
530
|
-
const t = e.querySelectorAll(I.IMAGE),
|
|
531
|
-
return t.length ? t :
|
|
651
|
+
const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
|
|
652
|
+
return t.length ? t : n;
|
|
532
653
|
}
|
|
533
|
-
},
|
|
654
|
+
}, lt = class extends p {
|
|
534
655
|
getParentControlId() {
|
|
535
|
-
return
|
|
656
|
+
return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
536
657
|
}
|
|
537
|
-
},
|
|
658
|
+
}, Et = class extends p {
|
|
538
659
|
getParentControlId() {
|
|
539
|
-
return
|
|
660
|
+
return a.BLOCK_IMAGE.SIZE;
|
|
540
661
|
}
|
|
541
|
-
},
|
|
662
|
+
}, G = class g extends s {
|
|
542
663
|
constructor() {
|
|
543
|
-
super(
|
|
664
|
+
super(g.REQUIRED_METHODS, g);
|
|
544
665
|
}
|
|
545
666
|
registerBlockControls(t) {
|
|
546
667
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
547
668
|
}
|
|
548
669
|
};
|
|
549
|
-
|
|
550
|
-
var
|
|
670
|
+
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
671
|
+
var ot = G, dt = class {
|
|
551
672
|
constructor(e, t) {
|
|
552
673
|
this.tabId = e, this.controlsIds = t;
|
|
553
674
|
}
|
|
@@ -570,40 +691,40 @@ var qe = V, Je = class {
|
|
|
570
691
|
const t = this.controlsIds.indexOf(e);
|
|
571
692
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
572
693
|
}
|
|
573
|
-
},
|
|
694
|
+
}, E = class extends M {
|
|
574
695
|
getTargetNodes(e) {
|
|
575
|
-
const t = e.querySelectorAll(I.TEXT),
|
|
576
|
-
return t.length ? t :
|
|
696
|
+
const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
|
|
697
|
+
return t.length ? t : n;
|
|
577
698
|
}
|
|
578
|
-
},
|
|
699
|
+
}, ut = class extends E {
|
|
579
700
|
getParentControlId() {
|
|
580
|
-
return
|
|
701
|
+
return a.GENERAL.TEXT_ALIGN;
|
|
581
702
|
}
|
|
582
|
-
},
|
|
703
|
+
}, It = class extends E {
|
|
583
704
|
getParentControlId() {
|
|
584
|
-
return
|
|
705
|
+
return a.GENERAL.TEXT_COLOR;
|
|
585
706
|
}
|
|
586
|
-
},
|
|
707
|
+
}, ct = class extends E {
|
|
587
708
|
getParentControlId() {
|
|
588
|
-
return
|
|
709
|
+
return a.BLOCK_TEXT.FONT_FAMILY;
|
|
589
710
|
}
|
|
590
|
-
},
|
|
711
|
+
}, Tt = class extends E {
|
|
591
712
|
getParentControlId() {
|
|
592
|
-
return
|
|
713
|
+
return a.GENERAL.TEXT_LINE_SPACING;
|
|
593
714
|
}
|
|
594
|
-
},
|
|
715
|
+
}, bt = class extends E {
|
|
595
716
|
getParentControlId() {
|
|
596
|
-
return
|
|
717
|
+
return a.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
597
718
|
}
|
|
598
|
-
},
|
|
719
|
+
}, Ot = class extends E {
|
|
599
720
|
getParentControlId() {
|
|
600
|
-
return
|
|
721
|
+
return a.GENERAL.TEXT_SIZE;
|
|
601
722
|
}
|
|
602
|
-
},
|
|
723
|
+
}, ht = class extends E {
|
|
603
724
|
getParentControlId() {
|
|
604
|
-
return
|
|
725
|
+
return a.GENERAL.TEXT_STYLE;
|
|
605
726
|
}
|
|
606
|
-
},
|
|
727
|
+
}, Ke = class {
|
|
607
728
|
constructor(e) {
|
|
608
729
|
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
|
|
609
730
|
}
|
|
@@ -664,7 +785,7 @@ var qe = V, Je = class {
|
|
|
664
785
|
getGeneralPanelTabs() {
|
|
665
786
|
return this.generalPanelTabs;
|
|
666
787
|
}
|
|
667
|
-
},
|
|
788
|
+
}, gt = class {
|
|
668
789
|
constructor() {
|
|
669
790
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
670
791
|
}
|
|
@@ -732,7 +853,7 @@ var qe = V, Je = class {
|
|
|
732
853
|
return this.generalPanelTabs.push(e), this;
|
|
733
854
|
}
|
|
734
855
|
build() {
|
|
735
|
-
return new
|
|
856
|
+
return new Ke({
|
|
736
857
|
i18n: this.i18n,
|
|
737
858
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
738
859
|
`),
|
|
@@ -754,7 +875,7 @@ var qe = V, Je = class {
|
|
|
754
875
|
generalPanelTabs: this.generalPanelTabs
|
|
755
876
|
});
|
|
756
877
|
}
|
|
757
|
-
},
|
|
878
|
+
}, Fe = class m extends s {
|
|
758
879
|
constructor() {
|
|
759
880
|
super(m.REQUIRED_METHODS, m);
|
|
760
881
|
}
|
|
@@ -762,8 +883,8 @@ var qe = V, Je = class {
|
|
|
762
883
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
763
884
|
}
|
|
764
885
|
};
|
|
765
|
-
|
|
766
|
-
var
|
|
886
|
+
Fe.REQUIRED_METHODS = ["openAiAssistant"];
|
|
887
|
+
var He = class R extends s {
|
|
767
888
|
constructor() {
|
|
768
889
|
super(R.REQUIRED_METHODS, R);
|
|
769
890
|
}
|
|
@@ -782,7 +903,7 @@ var Be = class R extends a {
|
|
|
782
903
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
783
904
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
784
905
|
*/
|
|
785
|
-
openExternalDisplayConditionsDialog(t,
|
|
906
|
+
openExternalDisplayConditionsDialog(t, n, i) {
|
|
786
907
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
787
908
|
}
|
|
788
909
|
/**
|
|
@@ -803,19 +924,19 @@ var Be = class R extends a {
|
|
|
803
924
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
804
925
|
}
|
|
805
926
|
};
|
|
806
|
-
|
|
807
|
-
var
|
|
927
|
+
He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
928
|
+
var ke = class L extends s {
|
|
808
929
|
constructor() {
|
|
809
|
-
super(
|
|
930
|
+
super(L.REQUIRED_METHODS, L);
|
|
810
931
|
}
|
|
811
|
-
openImageLibrary(t,
|
|
932
|
+
openImageLibrary(t, n, i) {
|
|
812
933
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
813
934
|
}
|
|
814
935
|
};
|
|
815
|
-
|
|
816
|
-
var
|
|
936
|
+
ke.REQUIRED_METHODS = ["openImageLibrary"];
|
|
937
|
+
var Xe = class _ extends s {
|
|
817
938
|
constructor() {
|
|
818
|
-
super(
|
|
939
|
+
super(_.REQUIRED_METHODS, _);
|
|
819
940
|
}
|
|
820
941
|
/**
|
|
821
942
|
* @description Returns the translated name/label for the tab
|
|
@@ -830,30 +951,30 @@ var xe = class L extends a {
|
|
|
830
951
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
831
952
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
832
953
|
*/
|
|
833
|
-
openImageLibraryTab(t,
|
|
954
|
+
openImageLibraryTab(t, n, i) {
|
|
834
955
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
835
956
|
}
|
|
836
957
|
};
|
|
837
|
-
|
|
838
|
-
var
|
|
958
|
+
Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
959
|
+
var pe = class C extends s {
|
|
839
960
|
constructor() {
|
|
840
961
|
super(C.REQUIRED_METHODS, C);
|
|
841
962
|
}
|
|
842
|
-
openSmartElementsLibrary(t,
|
|
963
|
+
openSmartElementsLibrary(t, n) {
|
|
843
964
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
844
965
|
}
|
|
845
966
|
};
|
|
846
|
-
|
|
847
|
-
var
|
|
967
|
+
pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
968
|
+
var Ge = class A extends s {
|
|
848
969
|
constructor() {
|
|
849
970
|
super(A.REQUIRED_METHODS, A);
|
|
850
971
|
}
|
|
851
|
-
openExternalVideosLibraryDialog(t,
|
|
972
|
+
openExternalVideosLibraryDialog(t, n, i) {
|
|
852
973
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
853
974
|
}
|
|
854
975
|
};
|
|
855
|
-
|
|
856
|
-
var
|
|
976
|
+
Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
977
|
+
var V = class N extends s {
|
|
857
978
|
constructor() {
|
|
858
979
|
super(N.REQUIRED_METHODS, N);
|
|
859
980
|
}
|
|
@@ -861,8 +982,8 @@ var p = class N extends a {
|
|
|
861
982
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
862
983
|
}
|
|
863
984
|
};
|
|
864
|
-
|
|
865
|
-
var
|
|
985
|
+
V.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
986
|
+
var mt = V, Rt = class {
|
|
866
987
|
constructor(e) {
|
|
867
988
|
this.key = e;
|
|
868
989
|
}
|
|
@@ -875,7 +996,7 @@ var lt = p, ot = class {
|
|
|
875
996
|
params: this.params
|
|
876
997
|
};
|
|
877
998
|
}
|
|
878
|
-
}, Q = class D extends
|
|
999
|
+
}, Q = class D extends s {
|
|
879
1000
|
constructor() {
|
|
880
1001
|
super(D.REQUIRED_METHODS, D);
|
|
881
1002
|
}
|
|
@@ -912,7 +1033,7 @@ var lt = p, ot = class {
|
|
|
912
1033
|
* @param name - The name of the attribute that was updated.
|
|
913
1034
|
* @param value - The new value of the attribute.
|
|
914
1035
|
*/
|
|
915
|
-
onAttributeUpdated(t,
|
|
1036
|
+
onAttributeUpdated(t, n) {
|
|
916
1037
|
}
|
|
917
1038
|
/**
|
|
918
1039
|
* Gets the unique identifier for this UI element type.
|
|
@@ -931,7 +1052,7 @@ var lt = p, ot = class {
|
|
|
931
1052
|
}
|
|
932
1053
|
};
|
|
933
1054
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
934
|
-
var
|
|
1055
|
+
var Lt = Q, f = class S extends s {
|
|
935
1056
|
constructor() {
|
|
936
1057
|
super(S.REQUIRED_METHODS, S);
|
|
937
1058
|
}
|
|
@@ -940,51 +1061,54 @@ var dt = Q, f = class S extends a {
|
|
|
940
1061
|
}
|
|
941
1062
|
};
|
|
942
1063
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
943
|
-
var
|
|
1064
|
+
var _t = f;
|
|
944
1065
|
export {
|
|
945
|
-
|
|
946
|
-
|
|
1066
|
+
Qe as Block,
|
|
1067
|
+
Ye as BlockAttr,
|
|
947
1068
|
$ as BlockCompositionType,
|
|
948
1069
|
I as BlockSelector,
|
|
949
|
-
|
|
1070
|
+
Ee as BlockType,
|
|
1071
|
+
fe as BlocksPanel,
|
|
950
1072
|
M as BuiltInControl,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
1073
|
+
a as BuiltInControlTypes,
|
|
1074
|
+
ze as ButtonAlignBuiltInControl,
|
|
1075
|
+
Ze as ButtonBackgroundColorBuiltInControl,
|
|
1076
|
+
je as ButtonBorderBuiltInControl,
|
|
1077
|
+
We as ButtonBorderRadiusBuiltInControl,
|
|
1078
|
+
qe as ButtonColorBuiltInControl,
|
|
957
1079
|
K as ButtonControls,
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1080
|
+
Je as ButtonFitToContainerBuiltInControl,
|
|
1081
|
+
et as ButtonFontFamilyBuiltInControl,
|
|
1082
|
+
tt as ButtonMarginsBuiltInControl,
|
|
1083
|
+
rt as ButtonPaddingsBuiltInControl,
|
|
1084
|
+
nt as ButtonTextBuiltInControl,
|
|
1085
|
+
at as ButtonTextSizeBuiltInControl,
|
|
1086
|
+
st as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1087
|
+
oe as ContainerControls,
|
|
1088
|
+
it as Control,
|
|
1089
|
+
de as EditorStatePropertyType,
|
|
1090
|
+
Ke as Extension,
|
|
1091
|
+
gt as ExtensionBuilder,
|
|
1092
|
+
w as GeneralControls,
|
|
1093
|
+
mt as IconsRegistry,
|
|
971
1094
|
H as ImageControls,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1095
|
+
lt as ImageMarginsBuiltInControl,
|
|
1096
|
+
Et as ImageSizeBuiltInControl,
|
|
1097
|
+
Rt as ModificationDescription,
|
|
1098
|
+
ue as PreviewDeviceMode,
|
|
1099
|
+
ot as SettingsPanelRegistry,
|
|
1100
|
+
dt as SettingsPanelTab,
|
|
1101
|
+
Ie as SettingsTab,
|
|
1102
|
+
ut as TextAlignBuiltInControl,
|
|
1103
|
+
It as TextColorBuiltInControl,
|
|
980
1104
|
F as TextControls,
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1105
|
+
ct as TextFontFamilyBuiltInControl,
|
|
1106
|
+
Tt as TextLineSpacingBuiltInControl,
|
|
1107
|
+
bt as TextPaddingsBuiltInControl,
|
|
1108
|
+
Ot as TextSizeBuiltInControl,
|
|
1109
|
+
ht as TextStyleBuiltInControl,
|
|
1110
|
+
$e as UEAttr,
|
|
1111
|
+
Lt as UIElement,
|
|
1112
|
+
_t as UIElementTagRegistry,
|
|
1113
|
+
Pe as UIElementType
|
|
990
1114
|
};
|