@useinsider/guido 2.2.0-beta.953ff70 → 2.2.0-beta.a968345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +15 -14
- 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 +101 -97
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- 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/controlFactories.js +125 -93
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +242 -186
- package/dist/services/recommendationApi.js +11 -8
- package/dist/services/stripoApi.js +20 -17
- package/dist/services/templateLibraryApi.js +16 -13
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- 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/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/static/styles/components/notification.css.js +18 -0
- package/dist/static/styles/components/tools.css.js +6 -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/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.
|
|
@@ -196,9 +196,9 @@ 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 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,7 +214,7 @@ var Pe = v, W = class c extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
217
|
+
var fe = class {
|
|
218
218
|
/**
|
|
219
219
|
* Generates HTML representation for a block item
|
|
220
220
|
* @param block - The block item to generate HTML for
|
|
@@ -281,9 +281,9 @@ var we = class {
|
|
|
281
281
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
282
|
getModulesTabIconName(e) {
|
|
283
283
|
}
|
|
284
|
-
}, z = class
|
|
284
|
+
}, z = class b extends s {
|
|
285
285
|
constructor() {
|
|
286
|
-
super(
|
|
286
|
+
super(b.REQUIRED_METHODS, b);
|
|
287
287
|
}
|
|
288
288
|
getId() {
|
|
289
289
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -305,78 +305,132 @@ var Z = {
|
|
|
305
305
|
href: "href",
|
|
306
306
|
width: "width",
|
|
307
307
|
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 = {
|
|
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 = {
|
|
314
311
|
BLOCK_BUTTON: K,
|
|
315
312
|
BLOCK_TEXT: F,
|
|
316
313
|
BLOCK_IMAGE: H,
|
|
317
314
|
GENERAL: w
|
|
318
|
-
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(
|
|
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 = {
|
|
319
316
|
name: "name",
|
|
320
317
|
disabled: "disabled"
|
|
321
|
-
},
|
|
322
|
-
...
|
|
318
|
+
}, ce = {
|
|
319
|
+
...r,
|
|
323
320
|
caption: "caption",
|
|
324
321
|
icon: "icon"
|
|
325
322
|
}, Te = {
|
|
326
|
-
...
|
|
323
|
+
...r,
|
|
327
324
|
caption: "caption"
|
|
328
|
-
},
|
|
329
|
-
...
|
|
325
|
+
}, be = {
|
|
326
|
+
...r,
|
|
330
327
|
minValue: "min-value",
|
|
331
328
|
maxValue: "max-value",
|
|
332
329
|
step: "step"
|
|
333
330
|
}, Oe = {
|
|
334
|
-
...
|
|
335
|
-
|
|
331
|
+
...r,
|
|
332
|
+
placeholder: "placeholder",
|
|
333
|
+
minDate: "min-date"
|
|
334
|
+
}, he = {
|
|
335
|
+
...r,
|
|
336
|
+
text: "text",
|
|
337
|
+
hint: "hint"
|
|
336
338
|
}, ge = {
|
|
337
|
-
...
|
|
339
|
+
...r,
|
|
340
|
+
type: "type"
|
|
341
|
+
}, me = {
|
|
342
|
+
...r,
|
|
343
|
+
buttons: "buttons"
|
|
338
344
|
}, k = {
|
|
339
|
-
...
|
|
345
|
+
...r,
|
|
340
346
|
searchable: "searchable",
|
|
341
347
|
multiSelect: "multi-select",
|
|
342
348
|
placeholder: "placeholder",
|
|
343
349
|
items: "items"
|
|
344
|
-
},
|
|
345
|
-
...k
|
|
346
|
-
|
|
350
|
+
}, Re = {
|
|
351
|
+
...k,
|
|
352
|
+
addCustomFontOption: "add-custom-font-option"
|
|
353
|
+
}, Le = {
|
|
354
|
+
...r,
|
|
347
355
|
text: "text",
|
|
348
356
|
value: "value"
|
|
349
|
-
},
|
|
357
|
+
}, _e = {
|
|
358
|
+
...r,
|
|
350
359
|
text: "text",
|
|
360
|
+
hint: "hint",
|
|
351
361
|
icon: "icon",
|
|
352
362
|
value: "value"
|
|
353
|
-
},
|
|
354
|
-
...
|
|
355
|
-
|
|
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,
|
|
356
392
|
controlId: "control-id"
|
|
357
|
-
},
|
|
358
|
-
...
|
|
393
|
+
}, Me = {
|
|
394
|
+
...r,
|
|
395
|
+
expanded: "expanded"
|
|
396
|
+
}, xe = {
|
|
397
|
+
...r,
|
|
359
398
|
icon: "icon",
|
|
360
399
|
position: "position"
|
|
361
|
-
},
|
|
362
|
-
...
|
|
363
|
-
},
|
|
364
|
-
|
|
400
|
+
}, ve = {
|
|
401
|
+
...r
|
|
402
|
+
}, ye = {
|
|
403
|
+
...r,
|
|
404
|
+
icon: "icon"
|
|
405
|
+
}, Ue = {
|
|
406
|
+
...r
|
|
407
|
+
}, $e = {
|
|
408
|
+
DEFAULT: r,
|
|
409
|
+
BUTTON: ce,
|
|
365
410
|
CHECKBOX: Te,
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
411
|
+
CHECK_BUTTONS: Ce,
|
|
412
|
+
COLOR: r,
|
|
413
|
+
COUNTER: be,
|
|
414
|
+
DATEPICKER: Oe,
|
|
415
|
+
LABEL: he,
|
|
416
|
+
MESSAGE: ge,
|
|
417
|
+
RADIO_BUTTONS: me,
|
|
370
418
|
SELECTPICKER: k,
|
|
371
|
-
FONT_FAMILY_SELECT:
|
|
372
|
-
SWITCHER:
|
|
373
|
-
TEXT:
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
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 {
|
|
380
434
|
/**
|
|
381
435
|
* @description returns map of nodes parent control operates on
|
|
382
436
|
*/
|
|
@@ -407,68 +461,68 @@ var Z = {
|
|
|
407
461
|
isVisible(e) {
|
|
408
462
|
return !0;
|
|
409
463
|
}
|
|
410
|
-
},
|
|
464
|
+
}, l = class extends M {
|
|
411
465
|
getTargetNodes(e) {
|
|
412
|
-
const t = e.querySelectorAll(I.BUTTON),
|
|
413
|
-
return t.length ? t :
|
|
466
|
+
const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
|
|
467
|
+
return t.length ? t : n;
|
|
414
468
|
}
|
|
415
|
-
},
|
|
469
|
+
}, We = class extends l {
|
|
416
470
|
getParentControlId() {
|
|
417
|
-
return
|
|
471
|
+
return a.BLOCK_BUTTON.BORDER_RADIUS;
|
|
418
472
|
}
|
|
419
473
|
getLabels() {
|
|
420
474
|
}
|
|
421
|
-
},
|
|
475
|
+
}, ze = class extends l {
|
|
422
476
|
getParentControlId() {
|
|
423
|
-
return
|
|
477
|
+
return a.BLOCK_BUTTON.ALIGNMENT;
|
|
424
478
|
}
|
|
425
|
-
},
|
|
479
|
+
}, Ze = class extends l {
|
|
426
480
|
getParentControlId() {
|
|
427
|
-
return
|
|
481
|
+
return a.GENERAL.BACKGROUND_COLOR;
|
|
428
482
|
}
|
|
429
|
-
},
|
|
483
|
+
}, je = class extends l {
|
|
430
484
|
getParentControlId() {
|
|
431
|
-
return
|
|
485
|
+
return a.BLOCK_BUTTON.BORDER;
|
|
432
486
|
}
|
|
433
487
|
getLabels() {
|
|
434
488
|
}
|
|
435
|
-
},
|
|
489
|
+
}, qe = class extends l {
|
|
436
490
|
getParentControlId() {
|
|
437
|
-
return
|
|
491
|
+
return a.BLOCK_BUTTON.COLOR;
|
|
438
492
|
}
|
|
439
|
-
},
|
|
493
|
+
}, Je = class extends l {
|
|
440
494
|
getParentControlId() {
|
|
441
|
-
return
|
|
495
|
+
return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
442
496
|
}
|
|
443
|
-
},
|
|
497
|
+
}, et = class extends l {
|
|
444
498
|
getParentControlId() {
|
|
445
|
-
return
|
|
499
|
+
return a.BLOCK_BUTTON.FONT_FAMILY;
|
|
446
500
|
}
|
|
447
|
-
},
|
|
501
|
+
}, tt = class extends l {
|
|
448
502
|
getParentControlId() {
|
|
449
|
-
return
|
|
503
|
+
return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
450
504
|
}
|
|
451
|
-
},
|
|
505
|
+
}, rt = class extends l {
|
|
452
506
|
getParentControlId() {
|
|
453
|
-
return
|
|
507
|
+
return a.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
454
508
|
}
|
|
455
|
-
},
|
|
509
|
+
}, nt = class extends l {
|
|
456
510
|
getParentControlId() {
|
|
457
|
-
return
|
|
511
|
+
return a.BLOCK_BUTTON.TEXT;
|
|
458
512
|
}
|
|
459
|
-
},
|
|
513
|
+
}, at = class extends l {
|
|
460
514
|
getParentControlId() {
|
|
461
|
-
return
|
|
515
|
+
return a.BLOCK_BUTTON.FONT_SIZE;
|
|
462
516
|
}
|
|
463
|
-
},
|
|
517
|
+
}, st = class extends l {
|
|
464
518
|
getParentControlId() {
|
|
465
|
-
return
|
|
519
|
+
return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
466
520
|
}
|
|
467
521
|
getLabels() {
|
|
468
522
|
}
|
|
469
|
-
}, X = class
|
|
523
|
+
}, X = class O extends s {
|
|
470
524
|
constructor() {
|
|
471
|
-
super(
|
|
525
|
+
super(O.REQUIRED_METHODS, O);
|
|
472
526
|
}
|
|
473
527
|
/**
|
|
474
528
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -522,7 +576,7 @@ var Z = {
|
|
|
522
576
|
}
|
|
523
577
|
};
|
|
524
578
|
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
525
|
-
var
|
|
579
|
+
var it = X, we = class h extends s {
|
|
526
580
|
constructor() {
|
|
527
581
|
super(h.REQUIRED_METHODS, h);
|
|
528
582
|
}
|
|
@@ -591,30 +645,30 @@ var Ze = X, Ne = class h extends a {
|
|
|
591
645
|
onDestroy() {
|
|
592
646
|
}
|
|
593
647
|
};
|
|
594
|
-
|
|
595
|
-
var
|
|
648
|
+
we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
649
|
+
var p = class extends M {
|
|
596
650
|
getTargetNodes(e) {
|
|
597
|
-
const t = e.querySelectorAll(I.IMAGE),
|
|
598
|
-
return t.length ? t :
|
|
651
|
+
const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
|
|
652
|
+
return t.length ? t : n;
|
|
599
653
|
}
|
|
600
|
-
},
|
|
654
|
+
}, lt = class extends p {
|
|
601
655
|
getParentControlId() {
|
|
602
|
-
return
|
|
656
|
+
return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
603
657
|
}
|
|
604
|
-
},
|
|
658
|
+
}, Et = class extends p {
|
|
605
659
|
getParentControlId() {
|
|
606
|
-
return
|
|
660
|
+
return a.BLOCK_IMAGE.SIZE;
|
|
607
661
|
}
|
|
608
|
-
}, G = class
|
|
662
|
+
}, G = class g extends s {
|
|
609
663
|
constructor() {
|
|
610
|
-
super(
|
|
664
|
+
super(g.REQUIRED_METHODS, g);
|
|
611
665
|
}
|
|
612
666
|
registerBlockControls(t) {
|
|
613
667
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
614
668
|
}
|
|
615
669
|
};
|
|
616
670
|
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
617
|
-
var
|
|
671
|
+
var ot = G, dt = class {
|
|
618
672
|
constructor(e, t) {
|
|
619
673
|
this.tabId = e, this.controlsIds = t;
|
|
620
674
|
}
|
|
@@ -639,38 +693,38 @@ var Je = G, et = class {
|
|
|
639
693
|
}
|
|
640
694
|
}, E = class extends M {
|
|
641
695
|
getTargetNodes(e) {
|
|
642
|
-
const t = e.querySelectorAll(I.TEXT),
|
|
643
|
-
return t.length ? t :
|
|
696
|
+
const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
|
|
697
|
+
return t.length ? t : n;
|
|
644
698
|
}
|
|
645
|
-
},
|
|
699
|
+
}, ut = class extends E {
|
|
646
700
|
getParentControlId() {
|
|
647
|
-
return
|
|
701
|
+
return a.GENERAL.TEXT_ALIGN;
|
|
648
702
|
}
|
|
649
|
-
},
|
|
703
|
+
}, It = class extends E {
|
|
650
704
|
getParentControlId() {
|
|
651
|
-
return
|
|
705
|
+
return a.GENERAL.TEXT_COLOR;
|
|
652
706
|
}
|
|
653
|
-
},
|
|
707
|
+
}, ct = class extends E {
|
|
654
708
|
getParentControlId() {
|
|
655
|
-
return
|
|
709
|
+
return a.BLOCK_TEXT.FONT_FAMILY;
|
|
656
710
|
}
|
|
657
|
-
},
|
|
711
|
+
}, Tt = class extends E {
|
|
658
712
|
getParentControlId() {
|
|
659
|
-
return
|
|
713
|
+
return a.GENERAL.TEXT_LINE_SPACING;
|
|
660
714
|
}
|
|
661
|
-
},
|
|
715
|
+
}, bt = class extends E {
|
|
662
716
|
getParentControlId() {
|
|
663
|
-
return
|
|
717
|
+
return a.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
664
718
|
}
|
|
665
|
-
},
|
|
719
|
+
}, Ot = class extends E {
|
|
666
720
|
getParentControlId() {
|
|
667
|
-
return
|
|
721
|
+
return a.GENERAL.TEXT_SIZE;
|
|
668
722
|
}
|
|
669
|
-
},
|
|
723
|
+
}, ht = class extends E {
|
|
670
724
|
getParentControlId() {
|
|
671
|
-
return
|
|
725
|
+
return a.GENERAL.TEXT_STYLE;
|
|
672
726
|
}
|
|
673
|
-
},
|
|
727
|
+
}, Ke = class {
|
|
674
728
|
constructor(e) {
|
|
675
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);
|
|
676
730
|
}
|
|
@@ -731,7 +785,7 @@ var Je = G, et = class {
|
|
|
731
785
|
getGeneralPanelTabs() {
|
|
732
786
|
return this.generalPanelTabs;
|
|
733
787
|
}
|
|
734
|
-
},
|
|
788
|
+
}, gt = class {
|
|
735
789
|
constructor() {
|
|
736
790
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
737
791
|
}
|
|
@@ -799,7 +853,7 @@ var Je = G, et = class {
|
|
|
799
853
|
return this.generalPanelTabs.push(e), this;
|
|
800
854
|
}
|
|
801
855
|
build() {
|
|
802
|
-
return new
|
|
856
|
+
return new Ke({
|
|
803
857
|
i18n: this.i18n,
|
|
804
858
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
805
859
|
`),
|
|
@@ -821,7 +875,7 @@ var Je = G, et = class {
|
|
|
821
875
|
generalPanelTabs: this.generalPanelTabs
|
|
822
876
|
});
|
|
823
877
|
}
|
|
824
|
-
},
|
|
878
|
+
}, Fe = class m extends s {
|
|
825
879
|
constructor() {
|
|
826
880
|
super(m.REQUIRED_METHODS, m);
|
|
827
881
|
}
|
|
@@ -829,8 +883,8 @@ var Je = G, et = class {
|
|
|
829
883
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
830
884
|
}
|
|
831
885
|
};
|
|
832
|
-
|
|
833
|
-
var
|
|
886
|
+
Fe.REQUIRED_METHODS = ["openAiAssistant"];
|
|
887
|
+
var He = class R extends s {
|
|
834
888
|
constructor() {
|
|
835
889
|
super(R.REQUIRED_METHODS, R);
|
|
836
890
|
}
|
|
@@ -849,7 +903,7 @@ var Be = class R extends a {
|
|
|
849
903
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
850
904
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
851
905
|
*/
|
|
852
|
-
openExternalDisplayConditionsDialog(t,
|
|
906
|
+
openExternalDisplayConditionsDialog(t, n, i) {
|
|
853
907
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
854
908
|
}
|
|
855
909
|
/**
|
|
@@ -870,19 +924,19 @@ var Be = class R extends a {
|
|
|
870
924
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
871
925
|
}
|
|
872
926
|
};
|
|
873
|
-
|
|
874
|
-
var
|
|
927
|
+
He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
928
|
+
var ke = class L extends s {
|
|
875
929
|
constructor() {
|
|
876
|
-
super(
|
|
930
|
+
super(L.REQUIRED_METHODS, L);
|
|
877
931
|
}
|
|
878
|
-
openImageLibrary(t,
|
|
932
|
+
openImageLibrary(t, n, i) {
|
|
879
933
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
880
934
|
}
|
|
881
935
|
};
|
|
882
|
-
|
|
883
|
-
var
|
|
936
|
+
ke.REQUIRED_METHODS = ["openImageLibrary"];
|
|
937
|
+
var Xe = class _ extends s {
|
|
884
938
|
constructor() {
|
|
885
|
-
super(
|
|
939
|
+
super(_.REQUIRED_METHODS, _);
|
|
886
940
|
}
|
|
887
941
|
/**
|
|
888
942
|
* @description Returns the translated name/label for the tab
|
|
@@ -897,30 +951,30 @@ var xe = class L extends a {
|
|
|
897
951
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
898
952
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
899
953
|
*/
|
|
900
|
-
openImageLibraryTab(t,
|
|
954
|
+
openImageLibraryTab(t, n, i) {
|
|
901
955
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
902
956
|
}
|
|
903
957
|
};
|
|
904
|
-
|
|
905
|
-
var
|
|
958
|
+
Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
959
|
+
var pe = class C extends s {
|
|
906
960
|
constructor() {
|
|
907
961
|
super(C.REQUIRED_METHODS, C);
|
|
908
962
|
}
|
|
909
|
-
openSmartElementsLibrary(t,
|
|
963
|
+
openSmartElementsLibrary(t, n) {
|
|
910
964
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
911
965
|
}
|
|
912
966
|
};
|
|
913
|
-
|
|
914
|
-
var
|
|
967
|
+
pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
968
|
+
var Ge = class A extends s {
|
|
915
969
|
constructor() {
|
|
916
970
|
super(A.REQUIRED_METHODS, A);
|
|
917
971
|
}
|
|
918
|
-
openExternalVideosLibraryDialog(t,
|
|
972
|
+
openExternalVideosLibraryDialog(t, n, i) {
|
|
919
973
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
920
974
|
}
|
|
921
975
|
};
|
|
922
|
-
|
|
923
|
-
var
|
|
976
|
+
Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
977
|
+
var V = class N extends s {
|
|
924
978
|
constructor() {
|
|
925
979
|
super(N.REQUIRED_METHODS, N);
|
|
926
980
|
}
|
|
@@ -928,8 +982,8 @@ var p = class N extends a {
|
|
|
928
982
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
929
983
|
}
|
|
930
984
|
};
|
|
931
|
-
|
|
932
|
-
var
|
|
985
|
+
V.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
986
|
+
var mt = V, Rt = class {
|
|
933
987
|
constructor(e) {
|
|
934
988
|
this.key = e;
|
|
935
989
|
}
|
|
@@ -942,7 +996,7 @@ var ot = p, dt = class {
|
|
|
942
996
|
params: this.params
|
|
943
997
|
};
|
|
944
998
|
}
|
|
945
|
-
}, Q = class D extends
|
|
999
|
+
}, Q = class D extends s {
|
|
946
1000
|
constructor() {
|
|
947
1001
|
super(D.REQUIRED_METHODS, D);
|
|
948
1002
|
}
|
|
@@ -979,7 +1033,7 @@ var ot = p, dt = class {
|
|
|
979
1033
|
* @param name - The name of the attribute that was updated.
|
|
980
1034
|
* @param value - The new value of the attribute.
|
|
981
1035
|
*/
|
|
982
|
-
onAttributeUpdated(t,
|
|
1036
|
+
onAttributeUpdated(t, n) {
|
|
983
1037
|
}
|
|
984
1038
|
/**
|
|
985
1039
|
* Gets the unique identifier for this UI element type.
|
|
@@ -998,7 +1052,7 @@ var ot = p, dt = class {
|
|
|
998
1052
|
}
|
|
999
1053
|
};
|
|
1000
1054
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1001
|
-
var
|
|
1055
|
+
var Lt = Q, f = class S extends s {
|
|
1002
1056
|
constructor() {
|
|
1003
1057
|
super(S.REQUIRED_METHODS, S);
|
|
1004
1058
|
}
|
|
@@ -1007,52 +1061,54 @@ var ut = Q, f = class S extends a {
|
|
|
1007
1061
|
}
|
|
1008
1062
|
};
|
|
1009
1063
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
1010
|
-
var
|
|
1064
|
+
var _t = f;
|
|
1011
1065
|
export {
|
|
1012
|
-
|
|
1013
|
-
|
|
1066
|
+
Qe as Block,
|
|
1067
|
+
Ye as BlockAttr,
|
|
1014
1068
|
$ as BlockCompositionType,
|
|
1015
1069
|
I as BlockSelector,
|
|
1016
|
-
|
|
1017
|
-
|
|
1070
|
+
Ee as BlockType,
|
|
1071
|
+
fe as BlocksPanel,
|
|
1018
1072
|
M as BuiltInControl,
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1073
|
+
a as BuiltInControlTypes,
|
|
1074
|
+
ze as ButtonAlignBuiltInControl,
|
|
1075
|
+
Ze as ButtonBackgroundColorBuiltInControl,
|
|
1076
|
+
je as ButtonBorderBuiltInControl,
|
|
1077
|
+
We as ButtonBorderRadiusBuiltInControl,
|
|
1078
|
+
qe as ButtonColorBuiltInControl,
|
|
1025
1079
|
K as ButtonControls,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
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,
|
|
1037
1092
|
w as GeneralControls,
|
|
1038
|
-
|
|
1093
|
+
mt as IconsRegistry,
|
|
1039
1094
|
H as ImageControls,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
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,
|
|
1048
1104
|
F as TextControls,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
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
|
|
1058
1114
|
};
|