@useinsider/guido 2.1.0-beta.fd71a10 → 2.1.0-beta.ff1bc98
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 +0 -36
- package/dist/@types/config/schemas.js +65 -70
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +58 -69
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +15 -14
- package/dist/composables/useBlocksConfig.js +16 -26
- package/dist/composables/useHtmlValidator.js +114 -104
- package/dist/composables/useRecommendation.js +54 -21
- package/dist/config/compiler/recommendationCompilerRules.js +45 -39
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +116 -0
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- package/dist/enums/defaults.js +4 -8
- 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 +233 -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 +174 -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/controlFactories.js +125 -93
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +225 -237
- package/dist/services/recommendationApi.js +11 -8
- package/dist/services/templateLibraryApi.js +16 -13
- package/dist/src/@types/config/schemas.d.ts +0 -8
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/composables/useConfig.d.ts +0 -4
- package/dist/src/composables/useRecommendation.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +17 -0
- package/dist/src/enums/defaults.d.ts +0 -4
- 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/stores/config.d.ts +0 -36
- package/dist/static/styles/customEditorStyle.css.js +35 -11
- 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/extensions/ModulesTabIcons/extension.js +0 -17
- 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
- package/dist/src/extensions/ModulesTabIcons/extension.d.ts +0 -2
|
@@ -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, a) {
|
|
8
|
+
if (a !== d) {
|
|
9
|
+
d.validatedClasses.has(a) || this.validateImplementation(t, a);
|
|
10
|
+
const i = d.validationErrors.get(a);
|
|
11
|
+
if (i && i.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
14
|
-
${
|
|
13
|
+
`${a.name} has validation errors:
|
|
14
|
+
${i.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -20,21 +20,21 @@ ${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,
|
|
24
|
-
var
|
|
25
|
-
const
|
|
23
|
+
validateImplementation(t, a) {
|
|
24
|
+
var M;
|
|
25
|
+
const i = [], o = a.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] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((M = process.env) == null ? void 0 : M.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 T extends s {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(T.REQUIRED_METHODS, T);
|
|
40
40
|
}
|
|
@@ -196,7 +196,7 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
-
var
|
|
199
|
+
var Qe = v, W = class c extends s {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(c.REQUIRED_METHODS, c);
|
|
202
202
|
}
|
|
@@ -214,74 +214,7 @@ var Pe = v, W = class c extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
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 O extends a {
|
|
217
|
+
var z = class O extends s {
|
|
285
218
|
constructor() {
|
|
286
219
|
super(O.REQUIRED_METHODS, O);
|
|
287
220
|
}
|
|
@@ -305,78 +238,132 @@ var Z = {
|
|
|
305
238
|
href: "href",
|
|
306
239
|
width: "width",
|
|
307
240
|
height: "height"
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
},
|
|
311
|
-
BLOCK_IMAGE: Z,
|
|
312
|
-
BLOCK_BUTTON: j
|
|
313
|
-
}, y = "esd-block-button", U = "esd-block-text", P = "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", le = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, 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 = `.${le}`, e.FORM = `.${Ee}`, 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 || {}), 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 || {}), 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 = {
|
|
241
|
+
}, fe = {
|
|
242
|
+
BLOCK_IMAGE: Z
|
|
243
|
+
}, 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", ae = "esd-block-html", ne = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", Ee = "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 = `.${ae}`, e.SPACER = `.${ne}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${Ee}`, e))(I || {}), le = /* @__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))(le || {}), 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 || {}), n = {
|
|
314
244
|
BLOCK_BUTTON: K,
|
|
315
245
|
BLOCK_TEXT: F,
|
|
316
246
|
BLOCK_IMAGE: H,
|
|
317
247
|
GENERAL: w
|
|
318
|
-
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(
|
|
248
|
+
}, 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 = {
|
|
319
249
|
name: "name",
|
|
320
250
|
disabled: "disabled"
|
|
321
|
-
},
|
|
322
|
-
...
|
|
251
|
+
}, Te = {
|
|
252
|
+
...r,
|
|
323
253
|
caption: "caption",
|
|
324
254
|
icon: "icon"
|
|
325
|
-
}, Te = {
|
|
326
|
-
...l,
|
|
327
|
-
caption: "caption"
|
|
328
255
|
}, ce = {
|
|
329
|
-
...
|
|
256
|
+
...r,
|
|
257
|
+
caption: "caption"
|
|
258
|
+
}, Oe = {
|
|
259
|
+
...r,
|
|
330
260
|
minValue: "min-value",
|
|
331
261
|
maxValue: "max-value",
|
|
332
262
|
step: "step"
|
|
333
|
-
},
|
|
334
|
-
...
|
|
335
|
-
|
|
263
|
+
}, he = {
|
|
264
|
+
...r,
|
|
265
|
+
placeholder: "placeholder",
|
|
266
|
+
minDate: "min-date"
|
|
267
|
+
}, be = {
|
|
268
|
+
...r,
|
|
269
|
+
text: "text",
|
|
270
|
+
hint: "hint"
|
|
336
271
|
}, ge = {
|
|
337
|
-
...
|
|
338
|
-
|
|
339
|
-
|
|
272
|
+
...r,
|
|
273
|
+
type: "type"
|
|
274
|
+
}, me = {
|
|
275
|
+
...r,
|
|
276
|
+
buttons: "buttons"
|
|
277
|
+
}, X = {
|
|
278
|
+
...r,
|
|
340
279
|
searchable: "searchable",
|
|
341
280
|
multiSelect: "multi-select",
|
|
342
281
|
placeholder: "placeholder",
|
|
343
282
|
items: "items"
|
|
344
|
-
},
|
|
345
|
-
...
|
|
346
|
-
|
|
283
|
+
}, Re = {
|
|
284
|
+
...X,
|
|
285
|
+
addCustomFontOption: "add-custom-font-option"
|
|
286
|
+
}, Le = {
|
|
287
|
+
...r,
|
|
347
288
|
text: "text",
|
|
348
289
|
value: "value"
|
|
349
|
-
},
|
|
290
|
+
}, _e = {
|
|
291
|
+
...r,
|
|
350
292
|
text: "text",
|
|
293
|
+
hint: "hint",
|
|
351
294
|
icon: "icon",
|
|
352
295
|
value: "value"
|
|
353
|
-
},
|
|
354
|
-
...
|
|
355
|
-
|
|
296
|
+
}, Ce = {
|
|
297
|
+
...r,
|
|
298
|
+
buttons: "buttons"
|
|
299
|
+
}, Ae = {
|
|
300
|
+
...r,
|
|
301
|
+
text: "text",
|
|
302
|
+
hint: "hint",
|
|
303
|
+
icon: "icon",
|
|
304
|
+
value: "value"
|
|
305
|
+
}, Ne = {
|
|
306
|
+
...r,
|
|
307
|
+
placeholder: "placeholder"
|
|
308
|
+
}, De = {
|
|
309
|
+
...r,
|
|
310
|
+
resizable: "resizable",
|
|
311
|
+
placeholder: "placeholder"
|
|
312
|
+
}, Se = {
|
|
313
|
+
...r,
|
|
314
|
+
img: "img",
|
|
315
|
+
src: "src",
|
|
316
|
+
title: "title",
|
|
317
|
+
imageClass: "image-class",
|
|
318
|
+
hint: "hint",
|
|
319
|
+
disabled: "disabled",
|
|
320
|
+
isActive: "is-active",
|
|
321
|
+
visibility: "visibility",
|
|
322
|
+
transform: "transform"
|
|
323
|
+
}, Be = {
|
|
324
|
+
...r,
|
|
356
325
|
controlId: "control-id"
|
|
357
|
-
},
|
|
358
|
-
...
|
|
326
|
+
}, xe = {
|
|
327
|
+
...r,
|
|
328
|
+
expanded: "expanded"
|
|
329
|
+
}, Me = {
|
|
330
|
+
...r,
|
|
359
331
|
icon: "icon",
|
|
360
332
|
position: "position"
|
|
361
|
-
},
|
|
362
|
-
...
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
333
|
+
}, ve = {
|
|
334
|
+
...r
|
|
335
|
+
}, ye = {
|
|
336
|
+
...r,
|
|
337
|
+
icon: "icon"
|
|
338
|
+
}, Ue = {
|
|
339
|
+
...r
|
|
340
|
+
}, Ye = {
|
|
341
|
+
DEFAULT: r,
|
|
342
|
+
BUTTON: Te,
|
|
343
|
+
CHECKBOX: ce,
|
|
344
|
+
CHECK_BUTTONS: Ce,
|
|
345
|
+
COLOR: r,
|
|
346
|
+
COUNTER: Oe,
|
|
347
|
+
DATEPICKER: he,
|
|
348
|
+
LABEL: be,
|
|
349
|
+
MESSAGE: ge,
|
|
350
|
+
RADIO_BUTTONS: me,
|
|
351
|
+
SELECTPICKER: X,
|
|
352
|
+
FONT_FAMILY_SELECT: Re,
|
|
353
|
+
SWITCHER: r,
|
|
354
|
+
TEXT: Ne,
|
|
355
|
+
TEXTAREA: De,
|
|
356
|
+
ICON: Se,
|
|
357
|
+
CHECK_ITEM: _e,
|
|
358
|
+
SELECT_ITEM: Le,
|
|
359
|
+
RADIO_ITEM: Ae,
|
|
360
|
+
NESTED_CONTROL: Be,
|
|
361
|
+
EXPANDABLE: xe,
|
|
362
|
+
ORDERABLE: Me,
|
|
363
|
+
ORDERABLE_ITEM: ve,
|
|
364
|
+
ORDERABLE_ICON: ye,
|
|
365
|
+
REPEATABLE: Ue
|
|
366
|
+
}, 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 || {}), x = class {
|
|
380
367
|
/**
|
|
381
368
|
* @description returns map of nodes parent control operates on
|
|
382
369
|
*/
|
|
@@ -407,68 +394,68 @@ var Z = {
|
|
|
407
394
|
isVisible(e) {
|
|
408
395
|
return !0;
|
|
409
396
|
}
|
|
410
|
-
},
|
|
397
|
+
}, E = class extends x {
|
|
411
398
|
getTargetNodes(e) {
|
|
412
|
-
const t = e.querySelectorAll(I.BUTTON),
|
|
413
|
-
return t.length ? t :
|
|
399
|
+
const t = e.querySelectorAll(I.BUTTON), a = e.asElement().hasClass(y) ? [e] : [];
|
|
400
|
+
return t.length ? t : a;
|
|
414
401
|
}
|
|
415
|
-
},
|
|
402
|
+
}, $e = class extends E {
|
|
416
403
|
getParentControlId() {
|
|
417
404
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
418
405
|
}
|
|
419
406
|
getLabels() {
|
|
420
407
|
}
|
|
421
|
-
},
|
|
408
|
+
}, We = class extends E {
|
|
422
409
|
getParentControlId() {
|
|
423
410
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
424
411
|
}
|
|
425
|
-
},
|
|
412
|
+
}, ze = class extends E {
|
|
426
413
|
getParentControlId() {
|
|
427
414
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
428
415
|
}
|
|
429
|
-
},
|
|
416
|
+
}, Ze = class extends E {
|
|
430
417
|
getParentControlId() {
|
|
431
418
|
return n.BLOCK_BUTTON.BORDER;
|
|
432
419
|
}
|
|
433
420
|
getLabels() {
|
|
434
421
|
}
|
|
435
|
-
},
|
|
422
|
+
}, je = class extends E {
|
|
436
423
|
getParentControlId() {
|
|
437
424
|
return n.BLOCK_BUTTON.COLOR;
|
|
438
425
|
}
|
|
439
|
-
},
|
|
426
|
+
}, qe = class extends E {
|
|
440
427
|
getParentControlId() {
|
|
441
428
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
442
429
|
}
|
|
443
|
-
},
|
|
430
|
+
}, Je = class extends E {
|
|
444
431
|
getParentControlId() {
|
|
445
432
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
446
433
|
}
|
|
447
|
-
},
|
|
434
|
+
}, et = class extends E {
|
|
448
435
|
getParentControlId() {
|
|
449
436
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
450
437
|
}
|
|
451
|
-
},
|
|
438
|
+
}, tt = class extends E {
|
|
452
439
|
getParentControlId() {
|
|
453
440
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
454
441
|
}
|
|
455
|
-
},
|
|
442
|
+
}, rt = class extends E {
|
|
456
443
|
getParentControlId() {
|
|
457
444
|
return n.BLOCK_BUTTON.TEXT;
|
|
458
445
|
}
|
|
459
|
-
},
|
|
446
|
+
}, at = class extends E {
|
|
460
447
|
getParentControlId() {
|
|
461
448
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
462
449
|
}
|
|
463
|
-
},
|
|
450
|
+
}, nt = class extends E {
|
|
464
451
|
getParentControlId() {
|
|
465
452
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
466
453
|
}
|
|
467
454
|
getLabels() {
|
|
468
455
|
}
|
|
469
|
-
},
|
|
456
|
+
}, k = class h extends s {
|
|
470
457
|
constructor() {
|
|
471
|
-
super(
|
|
458
|
+
super(h.REQUIRED_METHODS, h);
|
|
472
459
|
}
|
|
473
460
|
/**
|
|
474
461
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -521,10 +508,10 @@ var Z = {
|
|
|
521
508
|
onDocumentChanged(t) {
|
|
522
509
|
}
|
|
523
510
|
};
|
|
524
|
-
|
|
525
|
-
var
|
|
511
|
+
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
512
|
+
var st = k, we = class b extends s {
|
|
526
513
|
constructor() {
|
|
527
|
-
super(
|
|
514
|
+
super(b.REQUIRED_METHODS, b);
|
|
528
515
|
}
|
|
529
516
|
/**
|
|
530
517
|
* Gets the unique identifier for this tab.
|
|
@@ -591,30 +578,30 @@ var Ze = X, Ne = class h extends a {
|
|
|
591
578
|
onDestroy() {
|
|
592
579
|
}
|
|
593
580
|
};
|
|
594
|
-
|
|
595
|
-
var
|
|
581
|
+
we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
582
|
+
var p = class extends x {
|
|
596
583
|
getTargetNodes(e) {
|
|
597
|
-
const t = e.querySelectorAll(I.IMAGE),
|
|
598
|
-
return t.length ? t :
|
|
584
|
+
const t = e.querySelectorAll(I.IMAGE), a = e.asElement().hasClass(P) ? [e] : [];
|
|
585
|
+
return t.length ? t : a;
|
|
599
586
|
}
|
|
600
|
-
},
|
|
587
|
+
}, it = class extends p {
|
|
601
588
|
getParentControlId() {
|
|
602
589
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
603
590
|
}
|
|
604
|
-
},
|
|
591
|
+
}, Et = class extends p {
|
|
605
592
|
getParentControlId() {
|
|
606
593
|
return n.BLOCK_IMAGE.SIZE;
|
|
607
594
|
}
|
|
608
|
-
}, G = class
|
|
595
|
+
}, G = class g extends s {
|
|
609
596
|
constructor() {
|
|
610
|
-
super(
|
|
597
|
+
super(g.REQUIRED_METHODS, g);
|
|
611
598
|
}
|
|
612
599
|
registerBlockControls(t) {
|
|
613
600
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
614
601
|
}
|
|
615
602
|
};
|
|
616
603
|
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
617
|
-
var
|
|
604
|
+
var lt = G, ot = class {
|
|
618
605
|
constructor(e, t) {
|
|
619
606
|
this.tabId = e, this.controlsIds = t;
|
|
620
607
|
}
|
|
@@ -637,40 +624,40 @@ var Je = G, et = class {
|
|
|
637
624
|
const t = this.controlsIds.indexOf(e);
|
|
638
625
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
639
626
|
}
|
|
640
|
-
},
|
|
627
|
+
}, l = class extends x {
|
|
641
628
|
getTargetNodes(e) {
|
|
642
|
-
const t = e.querySelectorAll(I.TEXT),
|
|
643
|
-
return t.length ? t :
|
|
629
|
+
const t = e.querySelectorAll(I.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
|
|
630
|
+
return t.length ? t : a;
|
|
644
631
|
}
|
|
645
|
-
},
|
|
632
|
+
}, dt = class extends l {
|
|
646
633
|
getParentControlId() {
|
|
647
634
|
return n.GENERAL.TEXT_ALIGN;
|
|
648
635
|
}
|
|
649
|
-
},
|
|
636
|
+
}, ut = class extends l {
|
|
650
637
|
getParentControlId() {
|
|
651
638
|
return n.GENERAL.TEXT_COLOR;
|
|
652
639
|
}
|
|
653
|
-
},
|
|
640
|
+
}, It = class extends l {
|
|
654
641
|
getParentControlId() {
|
|
655
642
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
656
643
|
}
|
|
657
|
-
},
|
|
644
|
+
}, Tt = class extends l {
|
|
658
645
|
getParentControlId() {
|
|
659
646
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
660
647
|
}
|
|
661
|
-
},
|
|
648
|
+
}, ct = class extends l {
|
|
662
649
|
getParentControlId() {
|
|
663
650
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
664
651
|
}
|
|
665
|
-
},
|
|
652
|
+
}, Ot = class extends l {
|
|
666
653
|
getParentControlId() {
|
|
667
654
|
return n.GENERAL.TEXT_SIZE;
|
|
668
655
|
}
|
|
669
|
-
},
|
|
656
|
+
}, ht = class extends l {
|
|
670
657
|
getParentControlId() {
|
|
671
658
|
return n.GENERAL.TEXT_STYLE;
|
|
672
659
|
}
|
|
673
|
-
},
|
|
660
|
+
}, Ke = class {
|
|
674
661
|
constructor(e) {
|
|
675
662
|
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);
|
|
676
663
|
}
|
|
@@ -731,7 +718,7 @@ var Je = G, et = class {
|
|
|
731
718
|
getGeneralPanelTabs() {
|
|
732
719
|
return this.generalPanelTabs;
|
|
733
720
|
}
|
|
734
|
-
},
|
|
721
|
+
}, bt = class {
|
|
735
722
|
constructor() {
|
|
736
723
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
737
724
|
}
|
|
@@ -799,7 +786,7 @@ var Je = G, et = class {
|
|
|
799
786
|
return this.generalPanelTabs.push(e), this;
|
|
800
787
|
}
|
|
801
788
|
build() {
|
|
802
|
-
return new
|
|
789
|
+
return new Ke({
|
|
803
790
|
i18n: this.i18n,
|
|
804
791
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
805
792
|
`),
|
|
@@ -821,7 +808,7 @@ var Je = G, et = class {
|
|
|
821
808
|
generalPanelTabs: this.generalPanelTabs
|
|
822
809
|
});
|
|
823
810
|
}
|
|
824
|
-
},
|
|
811
|
+
}, Fe = class m extends s {
|
|
825
812
|
constructor() {
|
|
826
813
|
super(m.REQUIRED_METHODS, m);
|
|
827
814
|
}
|
|
@@ -829,8 +816,8 @@ var Je = G, et = class {
|
|
|
829
816
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
830
817
|
}
|
|
831
818
|
};
|
|
832
|
-
|
|
833
|
-
var
|
|
819
|
+
Fe.REQUIRED_METHODS = ["openAiAssistant"];
|
|
820
|
+
var He = class R extends s {
|
|
834
821
|
constructor() {
|
|
835
822
|
super(R.REQUIRED_METHODS, R);
|
|
836
823
|
}
|
|
@@ -849,7 +836,7 @@ var Be = class R extends a {
|
|
|
849
836
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
850
837
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
851
838
|
*/
|
|
852
|
-
openExternalDisplayConditionsDialog(t,
|
|
839
|
+
openExternalDisplayConditionsDialog(t, a, i) {
|
|
853
840
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
854
841
|
}
|
|
855
842
|
/**
|
|
@@ -870,19 +857,19 @@ var Be = class R extends a {
|
|
|
870
857
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
871
858
|
}
|
|
872
859
|
};
|
|
873
|
-
|
|
874
|
-
var
|
|
860
|
+
He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
861
|
+
var Xe = class L extends s {
|
|
875
862
|
constructor() {
|
|
876
|
-
super(
|
|
863
|
+
super(L.REQUIRED_METHODS, L);
|
|
877
864
|
}
|
|
878
|
-
openImageLibrary(t,
|
|
865
|
+
openImageLibrary(t, a, i) {
|
|
879
866
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
880
867
|
}
|
|
881
868
|
};
|
|
882
|
-
|
|
883
|
-
var
|
|
869
|
+
Xe.REQUIRED_METHODS = ["openImageLibrary"];
|
|
870
|
+
var ke = class _ extends s {
|
|
884
871
|
constructor() {
|
|
885
|
-
super(
|
|
872
|
+
super(_.REQUIRED_METHODS, _);
|
|
886
873
|
}
|
|
887
874
|
/**
|
|
888
875
|
* @description Returns the translated name/label for the tab
|
|
@@ -897,30 +884,30 @@ var xe = class L extends a {
|
|
|
897
884
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
898
885
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
899
886
|
*/
|
|
900
|
-
openImageLibraryTab(t,
|
|
887
|
+
openImageLibraryTab(t, a, i) {
|
|
901
888
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
902
889
|
}
|
|
903
890
|
};
|
|
904
|
-
|
|
905
|
-
var
|
|
891
|
+
ke.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
892
|
+
var pe = class C extends s {
|
|
906
893
|
constructor() {
|
|
907
894
|
super(C.REQUIRED_METHODS, C);
|
|
908
895
|
}
|
|
909
|
-
openSmartElementsLibrary(t,
|
|
896
|
+
openSmartElementsLibrary(t, a) {
|
|
910
897
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
911
898
|
}
|
|
912
899
|
};
|
|
913
|
-
|
|
914
|
-
var
|
|
900
|
+
pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
901
|
+
var Ge = class A extends s {
|
|
915
902
|
constructor() {
|
|
916
903
|
super(A.REQUIRED_METHODS, A);
|
|
917
904
|
}
|
|
918
|
-
openExternalVideosLibraryDialog(t,
|
|
905
|
+
openExternalVideosLibraryDialog(t, a, i) {
|
|
919
906
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
920
907
|
}
|
|
921
908
|
};
|
|
922
|
-
|
|
923
|
-
var
|
|
909
|
+
Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
910
|
+
var V = class N extends s {
|
|
924
911
|
constructor() {
|
|
925
912
|
super(N.REQUIRED_METHODS, N);
|
|
926
913
|
}
|
|
@@ -928,8 +915,8 @@ var p = class N extends a {
|
|
|
928
915
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
929
916
|
}
|
|
930
917
|
};
|
|
931
|
-
|
|
932
|
-
var
|
|
918
|
+
V.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
919
|
+
var gt = V, mt = class {
|
|
933
920
|
constructor(e) {
|
|
934
921
|
this.key = e;
|
|
935
922
|
}
|
|
@@ -942,7 +929,7 @@ var ot = p, dt = class {
|
|
|
942
929
|
params: this.params
|
|
943
930
|
};
|
|
944
931
|
}
|
|
945
|
-
}, Q = class D extends
|
|
932
|
+
}, Q = class D extends s {
|
|
946
933
|
constructor() {
|
|
947
934
|
super(D.REQUIRED_METHODS, D);
|
|
948
935
|
}
|
|
@@ -979,7 +966,7 @@ var ot = p, dt = class {
|
|
|
979
966
|
* @param name - The name of the attribute that was updated.
|
|
980
967
|
* @param value - The new value of the attribute.
|
|
981
968
|
*/
|
|
982
|
-
onAttributeUpdated(t,
|
|
969
|
+
onAttributeUpdated(t, a) {
|
|
983
970
|
}
|
|
984
971
|
/**
|
|
985
972
|
* Gets the unique identifier for this UI element type.
|
|
@@ -998,7 +985,7 @@ var ot = p, dt = class {
|
|
|
998
985
|
}
|
|
999
986
|
};
|
|
1000
987
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1001
|
-
var
|
|
988
|
+
var Rt = Q, f = class S extends s {
|
|
1002
989
|
constructor() {
|
|
1003
990
|
super(S.REQUIRED_METHODS, S);
|
|
1004
991
|
}
|
|
@@ -1007,52 +994,53 @@ var ut = Q, f = class S extends a {
|
|
|
1007
994
|
}
|
|
1008
995
|
};
|
|
1009
996
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
1010
|
-
var
|
|
997
|
+
var Lt = f;
|
|
1011
998
|
export {
|
|
1012
|
-
|
|
1013
|
-
|
|
999
|
+
Qe as Block,
|
|
1000
|
+
fe as BlockAttr,
|
|
1014
1001
|
$ as BlockCompositionType,
|
|
1015
1002
|
I as BlockSelector,
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
M as BuiltInControl,
|
|
1003
|
+
le as BlockType,
|
|
1004
|
+
x as BuiltInControl,
|
|
1019
1005
|
n as BuiltInControlTypes,
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1006
|
+
We as ButtonAlignBuiltInControl,
|
|
1007
|
+
ze as ButtonBackgroundColorBuiltInControl,
|
|
1008
|
+
Ze as ButtonBorderBuiltInControl,
|
|
1009
|
+
$e as ButtonBorderRadiusBuiltInControl,
|
|
1010
|
+
je as ButtonColorBuiltInControl,
|
|
1025
1011
|
K as ButtonControls,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1012
|
+
qe as ButtonFitToContainerBuiltInControl,
|
|
1013
|
+
Je as ButtonFontFamilyBuiltInControl,
|
|
1014
|
+
et as ButtonMarginsBuiltInControl,
|
|
1015
|
+
tt as ButtonPaddingsBuiltInControl,
|
|
1016
|
+
rt as ButtonTextBuiltInControl,
|
|
1017
|
+
at as ButtonTextSizeBuiltInControl,
|
|
1018
|
+
nt as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1019
|
+
oe as ContainerControls,
|
|
1020
|
+
st as Control,
|
|
1021
|
+
de as EditorStatePropertyType,
|
|
1022
|
+
Ke as Extension,
|
|
1023
|
+
bt as ExtensionBuilder,
|
|
1037
1024
|
w as GeneralControls,
|
|
1038
|
-
|
|
1025
|
+
gt as IconsRegistry,
|
|
1039
1026
|
H as ImageControls,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1027
|
+
it as ImageMarginsBuiltInControl,
|
|
1028
|
+
Et as ImageSizeBuiltInControl,
|
|
1029
|
+
mt as ModificationDescription,
|
|
1030
|
+
ue as PreviewDeviceMode,
|
|
1031
|
+
lt as SettingsPanelRegistry,
|
|
1032
|
+
ot as SettingsPanelTab,
|
|
1033
|
+
Ie as SettingsTab,
|
|
1034
|
+
dt as TextAlignBuiltInControl,
|
|
1035
|
+
ut as TextColorBuiltInControl,
|
|
1048
1036
|
F as TextControls,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1037
|
+
It as TextFontFamilyBuiltInControl,
|
|
1038
|
+
Tt as TextLineSpacingBuiltInControl,
|
|
1039
|
+
ct as TextPaddingsBuiltInControl,
|
|
1040
|
+
Ot as TextSizeBuiltInControl,
|
|
1041
|
+
ht as TextStyleBuiltInControl,
|
|
1042
|
+
Ye as UEAttr,
|
|
1043
|
+
Rt as UIElement,
|
|
1044
|
+
Lt as UIElementTagRegistry,
|
|
1045
|
+
Pe as UIElementType
|
|
1058
1046
|
};
|