@useinsider/guido 2.0.0-beta.faa7c5d → 2.0.0-beta.fb0f99d
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/email-preview/amp/AmpToggle.vue.js +2 -2
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +2 -2
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
- package/dist/components/organisms/header/LeftSlot.vue.js +12 -12
- package/dist/components/organisms/header/LeftSlot.vue2.js +6 -6
- package/dist/config/migrator/index.js +8 -9
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- package/dist/extensions/Blocks/Items/block.js +40 -39
- package/dist/extensions/Blocks/Items/controls/button/link.js +29 -22
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +59 -70
- package/dist/extensions/Blocks/Items/controls/image/link.js +30 -23
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +17 -19
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +29 -31
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +36 -36
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +19 -21
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +27 -29
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +143 -152
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
- package/dist/extensions/Blocks/Items/enums/productEnums.js +45 -43
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +3 -4
- package/dist/extensions/Blocks/Items/extension.js +6 -7
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +49 -58
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +59 -48
- package/dist/extensions/Blocks/Items/settingsPanel.js +26 -27
- package/dist/extensions/Blocks/Items/store/items-block.js +7 -11
- package/dist/extensions/Blocks/Items/template.js +129 -366
- package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +17 -0
- package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +28 -0
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +76 -0
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +46 -0
- package/dist/extensions/Blocks/Recommendation/block.js +1 -1
- 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/layout.js +12 -0
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +11 -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 +104 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +86 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +134 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +54 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +134 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +124 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +60 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +114 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +76 -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/omnibusDiscount/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +204 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -43
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +5 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +128 -72
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +29 -26
- package/dist/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.js +157 -0
- package/dist/extensions/Blocks/Recommendation/templates/horizontal/template.js +72 -0
- package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +173 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.js +186 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/migration.js +251 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/template.js +62 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +36 -0
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +46 -0
- package/dist/extensions/Blocks/common-control.js +28 -28
- package/dist/extensions/Blocks/controlFactories.js +130 -106
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +116 -125
- package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +0 -9
- package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +4 -0
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +26 -24
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +0 -2
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -22
- package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +23 -0
- package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +32 -0
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +50 -0
- package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +8 -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} +19 -11
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +12 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +27 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +19 -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/controls/cardComposition/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +17 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +16 -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 +43 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +40 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +81 -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 +16 -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 +72 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +17 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/migration.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/template.d.ts +18 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +39 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +45 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → vertical/migration.d.ts} +11 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/vertical/template.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +77 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +11 -10
- package/dist/static/styles/components/wide-panel.css.js +0 -4
- package/dist/static/styles/customEditorStyle.css.js +38 -2
- package/dist/utils/pairProductVariables.js +58 -61
- package/package.json +1 -1
- package/dist/config/migrator/itemsBlockMigrator.js +0 -342
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +0 -93
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +0 -184
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/control.js +0 -306
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/src/config/migrator/itemsBlockMigrator.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/controls/price/singlePrice.d.ts +0 -18
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -73
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
|
@@ -21,7 +21,7 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(t, r) {
|
|
24
|
-
var
|
|
24
|
+
var x;
|
|
25
25
|
const s = [], o = r.name, Y = Object.getPrototypeOf(this);
|
|
26
26
|
t.forEach((u) => {
|
|
27
27
|
if (typeof this[u] != "function") {
|
|
@@ -29,7 +29,7 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
Y[u] === r.prototype[u] && s.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
-
}), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((
|
|
32
|
+
}), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : 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();
|
|
@@ -196,7 +196,7 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
-
var
|
|
199
|
+
var Ue = y, W = class c extends a {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(c.REQUIRED_METHODS, c);
|
|
202
202
|
}
|
|
@@ -236,37 +236,33 @@ var Z = {
|
|
|
236
236
|
src: "src",
|
|
237
237
|
alt: "alt",
|
|
238
238
|
href: "href",
|
|
239
|
-
width: "width"
|
|
240
|
-
height: "height"
|
|
241
|
-
}, j = {
|
|
242
|
-
href: "href"
|
|
239
|
+
width: "width"
|
|
243
240
|
}, we = {
|
|
244
|
-
BLOCK_IMAGE: Z
|
|
245
|
-
|
|
246
|
-
}, v = "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", Ee = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, 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 = `.${Ee}`, e.FORM = `.${le}`, e))(I || {}), oe = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(oe || {}), 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
|
+
BLOCK_IMAGE: Z
|
|
242
|
+
}, v = "esd-block-button", U = "esd-block-text", w = "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", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, 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 = `.${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 || {}), P = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(P || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), 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 = {
|
|
247
243
|
BLOCK_BUTTON: K,
|
|
248
244
|
BLOCK_TEXT: F,
|
|
249
245
|
BLOCK_IMAGE: H,
|
|
250
|
-
GENERAL:
|
|
251
|
-
},
|
|
246
|
+
GENERAL: P
|
|
247
|
+
}, de = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(de || {}), E = {
|
|
252
248
|
name: "name",
|
|
253
249
|
disabled: "disabled"
|
|
254
|
-
},
|
|
250
|
+
}, ue = {
|
|
255
251
|
...E,
|
|
256
252
|
caption: "caption",
|
|
257
253
|
icon: "icon"
|
|
258
|
-
},
|
|
254
|
+
}, Ie = {
|
|
259
255
|
...E,
|
|
260
256
|
caption: "caption"
|
|
261
|
-
},
|
|
257
|
+
}, Te = {
|
|
262
258
|
...E,
|
|
263
259
|
minValue: "min-value",
|
|
264
260
|
maxValue: "max-value",
|
|
265
261
|
step: "step"
|
|
266
|
-
},
|
|
262
|
+
}, ce = {
|
|
267
263
|
...E,
|
|
268
264
|
text: "text"
|
|
269
|
-
},
|
|
265
|
+
}, Oe = {
|
|
270
266
|
...E
|
|
271
267
|
}, X = {
|
|
272
268
|
...E,
|
|
@@ -274,42 +270,42 @@ var Z = {
|
|
|
274
270
|
multiSelect: "multi-select",
|
|
275
271
|
placeholder: "placeholder",
|
|
276
272
|
items: "items"
|
|
277
|
-
},
|
|
273
|
+
}, he = {
|
|
278
274
|
...X
|
|
279
|
-
},
|
|
275
|
+
}, ge = {
|
|
280
276
|
text: "text",
|
|
281
277
|
value: "value"
|
|
282
|
-
},
|
|
278
|
+
}, be = {
|
|
283
279
|
text: "text",
|
|
284
280
|
icon: "icon",
|
|
285
281
|
value: "value"
|
|
286
|
-
},
|
|
282
|
+
}, me = {
|
|
287
283
|
...E
|
|
288
|
-
},
|
|
284
|
+
}, Re = {
|
|
289
285
|
controlId: "control-id"
|
|
290
|
-
},
|
|
286
|
+
}, _e = {
|
|
291
287
|
...E,
|
|
292
288
|
icon: "icon",
|
|
293
289
|
position: "position"
|
|
294
|
-
},
|
|
290
|
+
}, Le = {
|
|
295
291
|
...E
|
|
296
|
-
},
|
|
297
|
-
BUTTON:
|
|
298
|
-
CHECKBOX:
|
|
292
|
+
}, Pe = {
|
|
293
|
+
BUTTON: ue,
|
|
294
|
+
CHECKBOX: Ie,
|
|
299
295
|
COLOR: E,
|
|
300
|
-
COUNTER:
|
|
301
|
-
LABEL:
|
|
302
|
-
RADIO_BUTTONS:
|
|
296
|
+
COUNTER: Te,
|
|
297
|
+
LABEL: ce,
|
|
298
|
+
RADIO_BUTTONS: Oe,
|
|
303
299
|
SELECTPICKER: X,
|
|
304
|
-
FONT_FAMILY_SELECT:
|
|
300
|
+
FONT_FAMILY_SELECT: he,
|
|
305
301
|
SWITCHER: E,
|
|
306
|
-
TEXT:
|
|
307
|
-
SELECT_ITEM:
|
|
308
|
-
RADIO_ITEM:
|
|
309
|
-
NESTED_CONTROL:
|
|
310
|
-
ORDERABLE:
|
|
311
|
-
ORDERABLE_ITEM:
|
|
312
|
-
},
|
|
302
|
+
TEXT: me,
|
|
303
|
+
SELECT_ITEM: ge,
|
|
304
|
+
RADIO_ITEM: be,
|
|
305
|
+
NESTED_CONTROL: Re,
|
|
306
|
+
ORDERABLE: _e,
|
|
307
|
+
ORDERABLE_ITEM: Le
|
|
308
|
+
}, Ce = /* @__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))(Ce || {}), M = class {
|
|
313
309
|
/**
|
|
314
310
|
* @description returns map of nodes parent control operates on
|
|
315
311
|
*/
|
|
@@ -340,60 +336,60 @@ var Z = {
|
|
|
340
336
|
isVisible(e) {
|
|
341
337
|
return !0;
|
|
342
338
|
}
|
|
343
|
-
}, i = class extends
|
|
339
|
+
}, i = class extends M {
|
|
344
340
|
getTargetNodes(e) {
|
|
345
341
|
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(v) ? [e] : [];
|
|
346
342
|
return t.length ? t : r;
|
|
347
343
|
}
|
|
348
|
-
},
|
|
344
|
+
}, Ke = class extends i {
|
|
349
345
|
getParentControlId() {
|
|
350
346
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
351
347
|
}
|
|
352
348
|
getLabels() {
|
|
353
349
|
}
|
|
354
|
-
},
|
|
350
|
+
}, Fe = class extends i {
|
|
355
351
|
getParentControlId() {
|
|
356
352
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
357
353
|
}
|
|
358
|
-
},
|
|
354
|
+
}, He = class extends i {
|
|
359
355
|
getParentControlId() {
|
|
360
356
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
361
357
|
}
|
|
362
|
-
},
|
|
358
|
+
}, Xe = class extends i {
|
|
363
359
|
getParentControlId() {
|
|
364
360
|
return n.BLOCK_BUTTON.BORDER;
|
|
365
361
|
}
|
|
366
362
|
getLabels() {
|
|
367
363
|
}
|
|
368
|
-
},
|
|
364
|
+
}, ke = class extends i {
|
|
369
365
|
getParentControlId() {
|
|
370
366
|
return n.BLOCK_BUTTON.COLOR;
|
|
371
367
|
}
|
|
372
|
-
},
|
|
368
|
+
}, Ge = class extends i {
|
|
373
369
|
getParentControlId() {
|
|
374
370
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
375
371
|
}
|
|
376
|
-
},
|
|
372
|
+
}, Ve = class extends i {
|
|
377
373
|
getParentControlId() {
|
|
378
374
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
379
375
|
}
|
|
380
|
-
},
|
|
376
|
+
}, pe = class extends i {
|
|
381
377
|
getParentControlId() {
|
|
382
378
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
383
379
|
}
|
|
384
|
-
},
|
|
380
|
+
}, Qe = class extends i {
|
|
385
381
|
getParentControlId() {
|
|
386
382
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
387
383
|
}
|
|
388
|
-
},
|
|
384
|
+
}, fe = class extends i {
|
|
389
385
|
getParentControlId() {
|
|
390
386
|
return n.BLOCK_BUTTON.TEXT;
|
|
391
387
|
}
|
|
392
|
-
},
|
|
388
|
+
}, Ye = class extends i {
|
|
393
389
|
getParentControlId() {
|
|
394
390
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
395
391
|
}
|
|
396
|
-
},
|
|
392
|
+
}, $e = class extends i {
|
|
397
393
|
getParentControlId() {
|
|
398
394
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
399
395
|
}
|
|
@@ -455,7 +451,7 @@ var Z = {
|
|
|
455
451
|
}
|
|
456
452
|
};
|
|
457
453
|
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
458
|
-
var
|
|
454
|
+
var We = k, Ae = class g extends a {
|
|
459
455
|
constructor() {
|
|
460
456
|
super(g.REQUIRED_METHODS, g);
|
|
461
457
|
}
|
|
@@ -524,17 +520,17 @@ var ze = k, Ne = class g extends a {
|
|
|
524
520
|
onDestroy() {
|
|
525
521
|
}
|
|
526
522
|
};
|
|
527
|
-
|
|
528
|
-
var G = class extends
|
|
523
|
+
Ae.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
524
|
+
var G = class extends M {
|
|
529
525
|
getTargetNodes(e) {
|
|
530
|
-
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(
|
|
526
|
+
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(w) ? [e] : [];
|
|
531
527
|
return t.length ? t : r;
|
|
532
528
|
}
|
|
533
|
-
},
|
|
529
|
+
}, ze = class extends G {
|
|
534
530
|
getParentControlId() {
|
|
535
531
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
536
532
|
}
|
|
537
|
-
},
|
|
533
|
+
}, Ze = class extends G {
|
|
538
534
|
getParentControlId() {
|
|
539
535
|
return n.BLOCK_IMAGE.SIZE;
|
|
540
536
|
}
|
|
@@ -547,7 +543,7 @@ var G = class extends x {
|
|
|
547
543
|
}
|
|
548
544
|
};
|
|
549
545
|
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
550
|
-
var
|
|
546
|
+
var je = V, qe = class {
|
|
551
547
|
constructor(e, t) {
|
|
552
548
|
this.tabId = e, this.controlsIds = t;
|
|
553
549
|
}
|
|
@@ -570,44 +566,40 @@ var qe = V, Je = class {
|
|
|
570
566
|
const t = this.controlsIds.indexOf(e);
|
|
571
567
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
572
568
|
}
|
|
573
|
-
}, l = class extends
|
|
569
|
+
}, l = class extends M {
|
|
574
570
|
getTargetNodes(e) {
|
|
575
571
|
const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
|
|
576
572
|
return t.length ? t : r;
|
|
577
573
|
}
|
|
578
|
-
},
|
|
574
|
+
}, Je = class extends l {
|
|
579
575
|
getParentControlId() {
|
|
580
576
|
return n.GENERAL.TEXT_ALIGN;
|
|
581
577
|
}
|
|
582
|
-
},
|
|
583
|
-
getParentControlId() {
|
|
584
|
-
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
585
|
-
}
|
|
586
|
-
}, rt = class extends l {
|
|
578
|
+
}, et = class extends l {
|
|
587
579
|
getParentControlId() {
|
|
588
580
|
return n.GENERAL.TEXT_COLOR;
|
|
589
581
|
}
|
|
590
|
-
},
|
|
582
|
+
}, tt = class extends l {
|
|
591
583
|
getParentControlId() {
|
|
592
584
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
593
585
|
}
|
|
594
|
-
},
|
|
586
|
+
}, rt = class extends l {
|
|
595
587
|
getParentControlId() {
|
|
596
588
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
597
589
|
}
|
|
598
|
-
},
|
|
590
|
+
}, nt = class extends l {
|
|
599
591
|
getParentControlId() {
|
|
600
592
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
601
593
|
}
|
|
602
|
-
},
|
|
594
|
+
}, at = class extends l {
|
|
603
595
|
getParentControlId() {
|
|
604
596
|
return n.GENERAL.TEXT_SIZE;
|
|
605
597
|
}
|
|
606
|
-
},
|
|
598
|
+
}, st = class extends l {
|
|
607
599
|
getParentControlId() {
|
|
608
600
|
return n.GENERAL.TEXT_STYLE;
|
|
609
601
|
}
|
|
610
|
-
},
|
|
602
|
+
}, Ne = class {
|
|
611
603
|
constructor(e) {
|
|
612
604
|
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);
|
|
613
605
|
}
|
|
@@ -668,7 +660,7 @@ var qe = V, Je = class {
|
|
|
668
660
|
getGeneralPanelTabs() {
|
|
669
661
|
return this.generalPanelTabs;
|
|
670
662
|
}
|
|
671
|
-
},
|
|
663
|
+
}, it = class {
|
|
672
664
|
constructor() {
|
|
673
665
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
674
666
|
}
|
|
@@ -736,7 +728,7 @@ var qe = V, Je = class {
|
|
|
736
728
|
return this.generalPanelTabs.push(e), this;
|
|
737
729
|
}
|
|
738
730
|
build() {
|
|
739
|
-
return new
|
|
731
|
+
return new Ne({
|
|
740
732
|
i18n: this.i18n,
|
|
741
733
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
742
734
|
`),
|
|
@@ -758,7 +750,7 @@ var qe = V, Je = class {
|
|
|
758
750
|
generalPanelTabs: this.generalPanelTabs
|
|
759
751
|
});
|
|
760
752
|
}
|
|
761
|
-
},
|
|
753
|
+
}, De = class m extends a {
|
|
762
754
|
constructor() {
|
|
763
755
|
super(m.REQUIRED_METHODS, m);
|
|
764
756
|
}
|
|
@@ -766,8 +758,8 @@ var qe = V, Je = class {
|
|
|
766
758
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
767
759
|
}
|
|
768
760
|
};
|
|
769
|
-
|
|
770
|
-
var
|
|
761
|
+
De.REQUIRED_METHODS = ["openAiAssistant"];
|
|
762
|
+
var Se = class R extends a {
|
|
771
763
|
constructor() {
|
|
772
764
|
super(R.REQUIRED_METHODS, R);
|
|
773
765
|
}
|
|
@@ -807,8 +799,8 @@ var Be = class R extends a {
|
|
|
807
799
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
808
800
|
}
|
|
809
801
|
};
|
|
810
|
-
|
|
811
|
-
var
|
|
802
|
+
Se.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
803
|
+
var Be = class _ extends a {
|
|
812
804
|
constructor() {
|
|
813
805
|
super(_.REQUIRED_METHODS, _);
|
|
814
806
|
}
|
|
@@ -816,7 +808,7 @@ var xe = class _ extends a {
|
|
|
816
808
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
817
809
|
}
|
|
818
810
|
};
|
|
819
|
-
|
|
811
|
+
Be.REQUIRED_METHODS = ["openImageLibrary"];
|
|
820
812
|
var Me = class L extends a {
|
|
821
813
|
constructor() {
|
|
822
814
|
super(L.REQUIRED_METHODS, L);
|
|
@@ -839,7 +831,7 @@ var Me = class L extends a {
|
|
|
839
831
|
}
|
|
840
832
|
};
|
|
841
833
|
Me.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
842
|
-
var
|
|
834
|
+
var xe = class C extends a {
|
|
843
835
|
constructor() {
|
|
844
836
|
super(C.REQUIRED_METHODS, C);
|
|
845
837
|
}
|
|
@@ -847,8 +839,8 @@ var ye = class C extends a {
|
|
|
847
839
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
848
840
|
}
|
|
849
841
|
};
|
|
850
|
-
|
|
851
|
-
var
|
|
842
|
+
xe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
843
|
+
var ye = class A extends a {
|
|
852
844
|
constructor() {
|
|
853
845
|
super(A.REQUIRED_METHODS, A);
|
|
854
846
|
}
|
|
@@ -856,7 +848,7 @@ var ve = class A extends a {
|
|
|
856
848
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
857
849
|
}
|
|
858
850
|
};
|
|
859
|
-
|
|
851
|
+
ye.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
860
852
|
var p = class N extends a {
|
|
861
853
|
constructor() {
|
|
862
854
|
super(N.REQUIRED_METHODS, N);
|
|
@@ -866,7 +858,7 @@ var p = class N extends a {
|
|
|
866
858
|
}
|
|
867
859
|
};
|
|
868
860
|
p.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
869
|
-
var
|
|
861
|
+
var Et = p, lt = class {
|
|
870
862
|
constructor(e) {
|
|
871
863
|
this.key = e;
|
|
872
864
|
}
|
|
@@ -935,7 +927,7 @@ var ot = p, dt = class {
|
|
|
935
927
|
}
|
|
936
928
|
};
|
|
937
929
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
938
|
-
var
|
|
930
|
+
var ot = Q, f = class S extends a {
|
|
939
931
|
constructor() {
|
|
940
932
|
super(S.REQUIRED_METHODS, S);
|
|
941
933
|
}
|
|
@@ -944,52 +936,51 @@ var ut = Q, f = class S extends a {
|
|
|
944
936
|
}
|
|
945
937
|
};
|
|
946
938
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
947
|
-
var
|
|
939
|
+
var dt = f;
|
|
948
940
|
export {
|
|
949
|
-
|
|
941
|
+
Ue as Block,
|
|
950
942
|
we as BlockAttr,
|
|
951
943
|
$ as BlockCompositionType,
|
|
952
944
|
I as BlockSelector,
|
|
953
|
-
|
|
954
|
-
|
|
945
|
+
le as BlockType,
|
|
946
|
+
M as BuiltInControl,
|
|
955
947
|
n as BuiltInControlTypes,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
948
|
+
Fe as ButtonAlignBuiltInControl,
|
|
949
|
+
He as ButtonBackgroundColorBuiltInControl,
|
|
950
|
+
Xe as ButtonBorderBuiltInControl,
|
|
951
|
+
Ke as ButtonBorderRadiusBuiltInControl,
|
|
952
|
+
ke as ButtonColorBuiltInControl,
|
|
961
953
|
K as ButtonControls,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
954
|
+
Ge as ButtonFitToContainerBuiltInControl,
|
|
955
|
+
Ve as ButtonFontFamilyBuiltInControl,
|
|
956
|
+
pe as ButtonMarginsBuiltInControl,
|
|
957
|
+
Qe as ButtonPaddingsBuiltInControl,
|
|
958
|
+
fe as ButtonTextBuiltInControl,
|
|
959
|
+
Ye as ButtonTextSizeBuiltInControl,
|
|
960
|
+
$e as ButtonTextStyleAndFontColorBuiltInControl,
|
|
961
|
+
oe as ContainerControls,
|
|
962
|
+
We as Control,
|
|
963
|
+
Ne as Extension,
|
|
964
|
+
it as ExtensionBuilder,
|
|
965
|
+
P as GeneralControls,
|
|
966
|
+
Et as IconsRegistry,
|
|
975
967
|
H as ImageControls,
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
rt as TextColorBuiltInControl,
|
|
968
|
+
ze as ImageMarginsBuiltInControl,
|
|
969
|
+
Ze as ImageSizeBuiltInControl,
|
|
970
|
+
lt as ModificationDescription,
|
|
971
|
+
je as SettingsPanelRegistry,
|
|
972
|
+
qe as SettingsPanelTab,
|
|
973
|
+
de as SettingsTab,
|
|
974
|
+
Je as TextAlignBuiltInControl,
|
|
975
|
+
et as TextColorBuiltInControl,
|
|
985
976
|
F as TextControls,
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
977
|
+
tt as TextFontFamilyBuiltInControl,
|
|
978
|
+
rt as TextLineSpacingBuiltInControl,
|
|
979
|
+
nt as TextPaddingsBuiltInControl,
|
|
980
|
+
at as TextSizeBuiltInControl,
|
|
981
|
+
st as TextStyleBuiltInControl,
|
|
982
|
+
Pe as UEAttr,
|
|
983
|
+
ot as UIElement,
|
|
984
|
+
dt as UIElementTagRegistry,
|
|
985
|
+
Ce as UIElementType
|
|
995
986
|
};
|
|
@@ -29,14 +29,5 @@ export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
|
29
29
|
_onProductQuantityChange(value: boolean): void;
|
|
30
30
|
_onProductPriceChange(value: boolean): void;
|
|
31
31
|
_onProductOriginalPriceChange(value: boolean): void;
|
|
32
|
-
/**
|
|
33
|
-
* Updates both price cell widths in vertical layout based on priceOrientation and visibility.
|
|
34
|
-
* - When priceOrientation is 'vertical': both cells are 100% (stacked layout)
|
|
35
|
-
* - When priceOrientation is 'horizontal':
|
|
36
|
-
* - When original price is hidden, price cell expands to 100%
|
|
37
|
-
* - When price is hidden, original price cell expands to 100%
|
|
38
|
-
* - When both are visible, they share 50% each
|
|
39
|
-
*/
|
|
40
|
-
_updatePriceCellWidthsForVerticalLayout(): void;
|
|
41
32
|
_onProductButtonChange(value: boolean): void;
|
|
42
33
|
}
|
|
@@ -9,7 +9,7 @@ export declare class PriceOrientationControl extends CommonControl {
|
|
|
9
9
|
onRender(): void;
|
|
10
10
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
11
11
|
_onPriceOrientationChange(value: string): void;
|
|
12
|
-
private _updateVerticalLayout;
|
|
13
12
|
private _updateHorizontalLayout;
|
|
13
|
+
private _updateVerticalLayout;
|
|
14
14
|
_getPriceOrientation(): string;
|
|
15
15
|
}
|
|
@@ -31,6 +31,10 @@ export declare class ItemsBlockControl extends CommonControl {
|
|
|
31
31
|
_updatePrice(price: string): void;
|
|
32
32
|
_updateOriginalPrice(originalPrice: string): void;
|
|
33
33
|
_updateQuantity(quantity: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* @todo Optimize template reordering for performance.
|
|
36
|
+
* @description Reorders the template structure based on current orientation and visibility settings.
|
|
37
|
+
*/
|
|
34
38
|
_reOrderTemplate(): void;
|
|
35
39
|
_updateDataTypeAttributes(itemsType: ProductType): void;
|
|
36
40
|
_updateDataNumberAttributes(itemId: string): void;
|
|
@@ -42,7 +42,6 @@ export declare enum ItemsBlockControlId {
|
|
|
42
42
|
PRICE_PADDINGS = "items-block-price-paddings-control",
|
|
43
43
|
PRICE_HIDE_DISCOUNT = "items-block-price-hide-discount-control",
|
|
44
44
|
PRICE_FORMATTED_PRICE = "items-block-price-formatted-price-control",
|
|
45
|
-
PRICE_SINGLE_PRICE = "items-block-price-single-price-control",
|
|
46
45
|
PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control",
|
|
47
46
|
PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control",
|
|
48
47
|
PRICE_ORIENTATION = "items-block-price-orientation-control",
|