@useinsider/guido 2.1.0-beta.ff1bc98 → 2.1.0-beta.ff20f87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/@types/config/schemas.js +70 -65
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +69 -58
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +19 -19
- package/dist/composables/useBlocksConfig.js +26 -16
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +22 -17
- package/dist/config/migrator/itemsBlockMigrator.js +101 -97
- package/dist/enums/defaults.js +8 -4
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +25 -30
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +20 -25
- package/dist/extensions/Blocks/Unsubscribe/block.js +29 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +12 -9
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +13 -11
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +31 -1
- package/dist/extensions/ModulesTabIcons/extension.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +204 -136
- package/dist/services/stripoApi.js +20 -17
- package/dist/src/@types/config/schemas.d.ts +8 -0
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/enums/defaults.d.ts +4 -0
- package/dist/src/extensions/Blocks/Unsubscribe/control.d.ts +1 -0
- package/dist/src/extensions/ModulesTabIcons/extension.d.ts +2 -0
- package/dist/src/stores/config.d.ts +36 -0
- package/dist/static/templates/empty/index.html.js +74 -0
- package/dist/static/templates/empty/style.css.js +779 -0
- package/dist/stores/unsubscribe.js +37 -34
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ 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 i = d.validationErrors.get(
|
|
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
11
|
if (i && i.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
13
|
+
`${n.name} has validation errors:
|
|
14
14
|
${i.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
@@ -20,23 +20,23 @@ ${i.map((o) => ` - ${o}`).join(`
|
|
|
20
20
|
* Validates that all required methods are properly implemented in the subclass.
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
|
-
validateImplementation(t,
|
|
24
|
-
var
|
|
25
|
-
const i = [], o =
|
|
23
|
+
validateImplementation(t, n) {
|
|
24
|
+
var x;
|
|
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 s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class
|
|
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 s = 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 Qe = v, W = class
|
|
199
|
+
var Qe = v, W = class T extends s {
|
|
200
200
|
constructor() {
|
|
201
|
-
super(
|
|
201
|
+
super(T.REQUIRED_METHODS, T);
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -214,9 +214,76 @@ var Qe = v, W = class c extends s {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
217
|
+
var fe = class {
|
|
218
|
+
/**
|
|
219
|
+
* Generates HTML representation for a block item
|
|
220
|
+
* @param block - The block item to generate HTML for
|
|
221
|
+
* @returns HTML string representation of the block or undefined if default representation should be used
|
|
222
|
+
*/
|
|
223
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
224
|
+
getBlockItemHtml(e) {
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Determines whether a hint should be displayed for the block
|
|
228
|
+
* @param block - The block item to check hint visibility for
|
|
229
|
+
* @returns True if the hint should be visible, false otherwise
|
|
230
|
+
*/
|
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
|
+
isBlockHintVisible(e) {
|
|
233
|
+
return !0;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Gets the hint text for a block
|
|
237
|
+
* @param block - The block item to get hint for
|
|
238
|
+
* @returns The hint text for the block or undefined if default hint should be used
|
|
239
|
+
*/
|
|
240
|
+
getBlockHint(e) {
|
|
241
|
+
return {
|
|
242
|
+
title: e.title,
|
|
243
|
+
description: e.description
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Generates HTML representation for the blocks panel header
|
|
248
|
+
* @returns HTML string representation of the blocks panel header or undefined if header should not be shown
|
|
249
|
+
*/
|
|
250
|
+
getBlocksPanelHeaderHtml() {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Generates HTML representation for the modules panel in collapsed state
|
|
254
|
+
* @returns HTML string representation of the collapsed modules panel or undefined if default representation should be used
|
|
255
|
+
*/
|
|
256
|
+
getModulesPanelCollapsedHtml() {
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Determines whether a hint should be displayed for the collapsed modules panel
|
|
260
|
+
* @returns True if the hint should be visible, false otherwise
|
|
261
|
+
*/
|
|
262
|
+
isModulesPanelCollapsedHintVisible() {
|
|
263
|
+
return !0;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Gets the custom delay for showing hints
|
|
267
|
+
* @returns The delay in milliseconds or undefined to use the default delay
|
|
268
|
+
*/
|
|
269
|
+
getHintDelay() {
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Gets the hint text for a modules panel block
|
|
273
|
+
* @returns The hint text for the modules panel or undefined if default hint should be used
|
|
274
|
+
*/
|
|
275
|
+
getModulesPanelHint() {
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Gets the icon name for the modules tab
|
|
279
|
+
* @returns The icon name for the modules tab or undefined if default icon or text should be used
|
|
280
|
+
*/
|
|
281
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
|
+
getModulesTabIconName(e) {
|
|
283
|
+
}
|
|
284
|
+
}, z = class b extends s {
|
|
218
285
|
constructor() {
|
|
219
|
-
super(
|
|
286
|
+
super(b.REQUIRED_METHODS, b);
|
|
220
287
|
}
|
|
221
288
|
getId() {
|
|
222
289
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -238,9 +305,9 @@ var Z = {
|
|
|
238
305
|
href: "href",
|
|
239
306
|
width: "width",
|
|
240
307
|
height: "height"
|
|
241
|
-
},
|
|
308
|
+
}, Ye = {
|
|
242
309
|
BLOCK_IMAGE: Z
|
|
243
|
-
}, y = "esd-block-button", U = "esd-block-text", P = "esd-block-image", j = "esd-structure", q = "esd-block-video", J = "esd-block-social", ee = "esd-block-banner", te = "esd-block-timer", re = "esd-block-menu",
|
|
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 = {
|
|
244
311
|
BLOCK_BUTTON: K,
|
|
245
312
|
BLOCK_TEXT: F,
|
|
246
313
|
BLOCK_IMAGE: H,
|
|
@@ -248,23 +315,23 @@ var Z = {
|
|
|
248
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 = {
|
|
249
316
|
name: "name",
|
|
250
317
|
disabled: "disabled"
|
|
251
|
-
},
|
|
318
|
+
}, ce = {
|
|
252
319
|
...r,
|
|
253
320
|
caption: "caption",
|
|
254
321
|
icon: "icon"
|
|
255
|
-
},
|
|
322
|
+
}, Te = {
|
|
256
323
|
...r,
|
|
257
324
|
caption: "caption"
|
|
258
|
-
},
|
|
325
|
+
}, be = {
|
|
259
326
|
...r,
|
|
260
327
|
minValue: "min-value",
|
|
261
328
|
maxValue: "max-value",
|
|
262
329
|
step: "step"
|
|
263
|
-
},
|
|
330
|
+
}, Oe = {
|
|
264
331
|
...r,
|
|
265
332
|
placeholder: "placeholder",
|
|
266
333
|
minDate: "min-date"
|
|
267
|
-
},
|
|
334
|
+
}, he = {
|
|
268
335
|
...r,
|
|
269
336
|
text: "text",
|
|
270
337
|
hint: "hint"
|
|
@@ -274,14 +341,14 @@ var Z = {
|
|
|
274
341
|
}, me = {
|
|
275
342
|
...r,
|
|
276
343
|
buttons: "buttons"
|
|
277
|
-
},
|
|
344
|
+
}, k = {
|
|
278
345
|
...r,
|
|
279
346
|
searchable: "searchable",
|
|
280
347
|
multiSelect: "multi-select",
|
|
281
348
|
placeholder: "placeholder",
|
|
282
349
|
items: "items"
|
|
283
350
|
}, Re = {
|
|
284
|
-
...
|
|
351
|
+
...k,
|
|
285
352
|
addCustomFontOption: "add-custom-font-option"
|
|
286
353
|
}, Le = {
|
|
287
354
|
...r,
|
|
@@ -323,10 +390,10 @@ var Z = {
|
|
|
323
390
|
}, Be = {
|
|
324
391
|
...r,
|
|
325
392
|
controlId: "control-id"
|
|
326
|
-
},
|
|
393
|
+
}, Me = {
|
|
327
394
|
...r,
|
|
328
395
|
expanded: "expanded"
|
|
329
|
-
},
|
|
396
|
+
}, xe = {
|
|
330
397
|
...r,
|
|
331
398
|
icon: "icon",
|
|
332
399
|
position: "position"
|
|
@@ -337,18 +404,18 @@ var Z = {
|
|
|
337
404
|
icon: "icon"
|
|
338
405
|
}, Ue = {
|
|
339
406
|
...r
|
|
340
|
-
},
|
|
407
|
+
}, $e = {
|
|
341
408
|
DEFAULT: r,
|
|
342
|
-
BUTTON:
|
|
343
|
-
CHECKBOX:
|
|
409
|
+
BUTTON: ce,
|
|
410
|
+
CHECKBOX: Te,
|
|
344
411
|
CHECK_BUTTONS: Ce,
|
|
345
412
|
COLOR: r,
|
|
346
|
-
COUNTER:
|
|
347
|
-
DATEPICKER:
|
|
348
|
-
LABEL:
|
|
413
|
+
COUNTER: be,
|
|
414
|
+
DATEPICKER: Oe,
|
|
415
|
+
LABEL: he,
|
|
349
416
|
MESSAGE: ge,
|
|
350
417
|
RADIO_BUTTONS: me,
|
|
351
|
-
SELECTPICKER:
|
|
418
|
+
SELECTPICKER: k,
|
|
352
419
|
FONT_FAMILY_SELECT: Re,
|
|
353
420
|
SWITCHER: r,
|
|
354
421
|
TEXT: Ne,
|
|
@@ -358,12 +425,12 @@ var Z = {
|
|
|
358
425
|
SELECT_ITEM: Le,
|
|
359
426
|
RADIO_ITEM: Ae,
|
|
360
427
|
NESTED_CONTROL: Be,
|
|
361
|
-
EXPANDABLE:
|
|
362
|
-
ORDERABLE:
|
|
428
|
+
EXPANDABLE: Me,
|
|
429
|
+
ORDERABLE: xe,
|
|
363
430
|
ORDERABLE_ITEM: ve,
|
|
364
431
|
ORDERABLE_ICON: ye,
|
|
365
432
|
REPEATABLE: Ue
|
|
366
|
-
}, Pe = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(Pe || {}),
|
|
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 {
|
|
367
434
|
/**
|
|
368
435
|
* @description returns map of nodes parent control operates on
|
|
369
436
|
*/
|
|
@@ -394,68 +461,68 @@ var Z = {
|
|
|
394
461
|
isVisible(e) {
|
|
395
462
|
return !0;
|
|
396
463
|
}
|
|
397
|
-
},
|
|
464
|
+
}, l = class extends M {
|
|
398
465
|
getTargetNodes(e) {
|
|
399
|
-
const t = e.querySelectorAll(I.BUTTON),
|
|
400
|
-
return t.length ? t :
|
|
466
|
+
const t = e.querySelectorAll(I.BUTTON), n = e.asElement().hasClass(y) ? [e] : [];
|
|
467
|
+
return t.length ? t : n;
|
|
401
468
|
}
|
|
402
|
-
},
|
|
469
|
+
}, We = class extends l {
|
|
403
470
|
getParentControlId() {
|
|
404
|
-
return
|
|
471
|
+
return a.BLOCK_BUTTON.BORDER_RADIUS;
|
|
405
472
|
}
|
|
406
473
|
getLabels() {
|
|
407
474
|
}
|
|
408
|
-
},
|
|
475
|
+
}, ze = class extends l {
|
|
409
476
|
getParentControlId() {
|
|
410
|
-
return
|
|
477
|
+
return a.BLOCK_BUTTON.ALIGNMENT;
|
|
411
478
|
}
|
|
412
|
-
},
|
|
479
|
+
}, Ze = class extends l {
|
|
413
480
|
getParentControlId() {
|
|
414
|
-
return
|
|
481
|
+
return a.GENERAL.BACKGROUND_COLOR;
|
|
415
482
|
}
|
|
416
|
-
},
|
|
483
|
+
}, je = class extends l {
|
|
417
484
|
getParentControlId() {
|
|
418
|
-
return
|
|
485
|
+
return a.BLOCK_BUTTON.BORDER;
|
|
419
486
|
}
|
|
420
487
|
getLabels() {
|
|
421
488
|
}
|
|
422
|
-
},
|
|
489
|
+
}, qe = class extends l {
|
|
423
490
|
getParentControlId() {
|
|
424
|
-
return
|
|
491
|
+
return a.BLOCK_BUTTON.COLOR;
|
|
425
492
|
}
|
|
426
|
-
},
|
|
493
|
+
}, Je = class extends l {
|
|
427
494
|
getParentControlId() {
|
|
428
|
-
return
|
|
495
|
+
return a.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
429
496
|
}
|
|
430
|
-
},
|
|
497
|
+
}, et = class extends l {
|
|
431
498
|
getParentControlId() {
|
|
432
|
-
return
|
|
499
|
+
return a.BLOCK_BUTTON.FONT_FAMILY;
|
|
433
500
|
}
|
|
434
|
-
},
|
|
501
|
+
}, tt = class extends l {
|
|
435
502
|
getParentControlId() {
|
|
436
|
-
return
|
|
503
|
+
return a.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
437
504
|
}
|
|
438
|
-
},
|
|
505
|
+
}, rt = class extends l {
|
|
439
506
|
getParentControlId() {
|
|
440
|
-
return
|
|
507
|
+
return a.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
441
508
|
}
|
|
442
|
-
},
|
|
509
|
+
}, nt = class extends l {
|
|
443
510
|
getParentControlId() {
|
|
444
|
-
return
|
|
511
|
+
return a.BLOCK_BUTTON.TEXT;
|
|
445
512
|
}
|
|
446
|
-
}, at = class extends
|
|
513
|
+
}, at = class extends l {
|
|
447
514
|
getParentControlId() {
|
|
448
|
-
return
|
|
515
|
+
return a.BLOCK_BUTTON.FONT_SIZE;
|
|
449
516
|
}
|
|
450
|
-
},
|
|
517
|
+
}, st = class extends l {
|
|
451
518
|
getParentControlId() {
|
|
452
|
-
return
|
|
519
|
+
return a.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
453
520
|
}
|
|
454
521
|
getLabels() {
|
|
455
522
|
}
|
|
456
|
-
},
|
|
523
|
+
}, X = class O extends s {
|
|
457
524
|
constructor() {
|
|
458
|
-
super(
|
|
525
|
+
super(O.REQUIRED_METHODS, O);
|
|
459
526
|
}
|
|
460
527
|
/**
|
|
461
528
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -508,10 +575,10 @@ var Z = {
|
|
|
508
575
|
onDocumentChanged(t) {
|
|
509
576
|
}
|
|
510
577
|
};
|
|
511
|
-
|
|
512
|
-
var
|
|
578
|
+
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
579
|
+
var it = X, we = class h extends s {
|
|
513
580
|
constructor() {
|
|
514
|
-
super(
|
|
581
|
+
super(h.REQUIRED_METHODS, h);
|
|
515
582
|
}
|
|
516
583
|
/**
|
|
517
584
|
* Gets the unique identifier for this tab.
|
|
@@ -579,18 +646,18 @@ var st = k, we = class b extends s {
|
|
|
579
646
|
}
|
|
580
647
|
};
|
|
581
648
|
we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
582
|
-
var p = class extends
|
|
649
|
+
var p = class extends M {
|
|
583
650
|
getTargetNodes(e) {
|
|
584
|
-
const t = e.querySelectorAll(I.IMAGE),
|
|
585
|
-
return t.length ? t :
|
|
651
|
+
const t = e.querySelectorAll(I.IMAGE), n = e.asElement().hasClass(P) ? [e] : [];
|
|
652
|
+
return t.length ? t : n;
|
|
586
653
|
}
|
|
587
|
-
},
|
|
654
|
+
}, lt = class extends p {
|
|
588
655
|
getParentControlId() {
|
|
589
|
-
return
|
|
656
|
+
return a.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
590
657
|
}
|
|
591
658
|
}, Et = class extends p {
|
|
592
659
|
getParentControlId() {
|
|
593
|
-
return
|
|
660
|
+
return a.BLOCK_IMAGE.SIZE;
|
|
594
661
|
}
|
|
595
662
|
}, G = class g extends s {
|
|
596
663
|
constructor() {
|
|
@@ -601,7 +668,7 @@ var p = class extends x {
|
|
|
601
668
|
}
|
|
602
669
|
};
|
|
603
670
|
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
604
|
-
var
|
|
671
|
+
var ot = G, dt = class {
|
|
605
672
|
constructor(e, t) {
|
|
606
673
|
this.tabId = e, this.controlsIds = t;
|
|
607
674
|
}
|
|
@@ -624,38 +691,38 @@ var lt = G, ot = class {
|
|
|
624
691
|
const t = this.controlsIds.indexOf(e);
|
|
625
692
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
626
693
|
}
|
|
627
|
-
},
|
|
694
|
+
}, E = class extends M {
|
|
628
695
|
getTargetNodes(e) {
|
|
629
|
-
const t = e.querySelectorAll(I.TEXT),
|
|
630
|
-
return t.length ? t :
|
|
696
|
+
const t = e.querySelectorAll(I.TEXT), n = e.asElement().hasClass(U) ? [e] : [];
|
|
697
|
+
return t.length ? t : n;
|
|
631
698
|
}
|
|
632
|
-
},
|
|
699
|
+
}, ut = class extends E {
|
|
633
700
|
getParentControlId() {
|
|
634
|
-
return
|
|
701
|
+
return a.GENERAL.TEXT_ALIGN;
|
|
635
702
|
}
|
|
636
|
-
},
|
|
703
|
+
}, It = class extends E {
|
|
637
704
|
getParentControlId() {
|
|
638
|
-
return
|
|
705
|
+
return a.GENERAL.TEXT_COLOR;
|
|
639
706
|
}
|
|
640
|
-
},
|
|
707
|
+
}, ct = class extends E {
|
|
641
708
|
getParentControlId() {
|
|
642
|
-
return
|
|
709
|
+
return a.BLOCK_TEXT.FONT_FAMILY;
|
|
643
710
|
}
|
|
644
|
-
}, Tt = class extends
|
|
711
|
+
}, Tt = class extends E {
|
|
645
712
|
getParentControlId() {
|
|
646
|
-
return
|
|
713
|
+
return a.GENERAL.TEXT_LINE_SPACING;
|
|
647
714
|
}
|
|
648
|
-
},
|
|
715
|
+
}, bt = class extends E {
|
|
649
716
|
getParentControlId() {
|
|
650
|
-
return
|
|
717
|
+
return a.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
651
718
|
}
|
|
652
|
-
}, Ot = class extends
|
|
719
|
+
}, Ot = class extends E {
|
|
653
720
|
getParentControlId() {
|
|
654
|
-
return
|
|
721
|
+
return a.GENERAL.TEXT_SIZE;
|
|
655
722
|
}
|
|
656
|
-
}, ht = class extends
|
|
723
|
+
}, ht = class extends E {
|
|
657
724
|
getParentControlId() {
|
|
658
|
-
return
|
|
725
|
+
return a.GENERAL.TEXT_STYLE;
|
|
659
726
|
}
|
|
660
727
|
}, Ke = class {
|
|
661
728
|
constructor(e) {
|
|
@@ -718,7 +785,7 @@ var lt = G, ot = class {
|
|
|
718
785
|
getGeneralPanelTabs() {
|
|
719
786
|
return this.generalPanelTabs;
|
|
720
787
|
}
|
|
721
|
-
},
|
|
788
|
+
}, gt = class {
|
|
722
789
|
constructor() {
|
|
723
790
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
724
791
|
}
|
|
@@ -836,7 +903,7 @@ var He = class R extends s {
|
|
|
836
903
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
837
904
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
838
905
|
*/
|
|
839
|
-
openExternalDisplayConditionsDialog(t,
|
|
906
|
+
openExternalDisplayConditionsDialog(t, n, i) {
|
|
840
907
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
841
908
|
}
|
|
842
909
|
/**
|
|
@@ -858,16 +925,16 @@ var He = class R extends s {
|
|
|
858
925
|
}
|
|
859
926
|
};
|
|
860
927
|
He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
861
|
-
var
|
|
928
|
+
var ke = class L extends s {
|
|
862
929
|
constructor() {
|
|
863
930
|
super(L.REQUIRED_METHODS, L);
|
|
864
931
|
}
|
|
865
|
-
openImageLibrary(t,
|
|
932
|
+
openImageLibrary(t, n, i) {
|
|
866
933
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
867
934
|
}
|
|
868
935
|
};
|
|
869
|
-
|
|
870
|
-
var
|
|
936
|
+
ke.REQUIRED_METHODS = ["openImageLibrary"];
|
|
937
|
+
var Xe = class _ extends s {
|
|
871
938
|
constructor() {
|
|
872
939
|
super(_.REQUIRED_METHODS, _);
|
|
873
940
|
}
|
|
@@ -884,16 +951,16 @@ var ke = class _ extends s {
|
|
|
884
951
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
885
952
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
886
953
|
*/
|
|
887
|
-
openImageLibraryTab(t,
|
|
954
|
+
openImageLibraryTab(t, n, i) {
|
|
888
955
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
889
956
|
}
|
|
890
957
|
};
|
|
891
|
-
|
|
958
|
+
Xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
892
959
|
var pe = class C extends s {
|
|
893
960
|
constructor() {
|
|
894
961
|
super(C.REQUIRED_METHODS, C);
|
|
895
962
|
}
|
|
896
|
-
openSmartElementsLibrary(t,
|
|
963
|
+
openSmartElementsLibrary(t, n) {
|
|
897
964
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
898
965
|
}
|
|
899
966
|
};
|
|
@@ -902,7 +969,7 @@ var Ge = class A extends s {
|
|
|
902
969
|
constructor() {
|
|
903
970
|
super(A.REQUIRED_METHODS, A);
|
|
904
971
|
}
|
|
905
|
-
openExternalVideosLibraryDialog(t,
|
|
972
|
+
openExternalVideosLibraryDialog(t, n, i) {
|
|
906
973
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
907
974
|
}
|
|
908
975
|
};
|
|
@@ -916,7 +983,7 @@ var V = class N extends s {
|
|
|
916
983
|
}
|
|
917
984
|
};
|
|
918
985
|
V.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
919
|
-
var
|
|
986
|
+
var mt = V, Rt = class {
|
|
920
987
|
constructor(e) {
|
|
921
988
|
this.key = e;
|
|
922
989
|
}
|
|
@@ -966,7 +1033,7 @@ var gt = V, mt = class {
|
|
|
966
1033
|
* @param name - The name of the attribute that was updated.
|
|
967
1034
|
* @param value - The new value of the attribute.
|
|
968
1035
|
*/
|
|
969
|
-
onAttributeUpdated(t,
|
|
1036
|
+
onAttributeUpdated(t, n) {
|
|
970
1037
|
}
|
|
971
1038
|
/**
|
|
972
1039
|
* Gets the unique identifier for this UI element type.
|
|
@@ -985,7 +1052,7 @@ var gt = V, mt = class {
|
|
|
985
1052
|
}
|
|
986
1053
|
};
|
|
987
1054
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
988
|
-
var
|
|
1055
|
+
var Lt = Q, f = class S extends s {
|
|
989
1056
|
constructor() {
|
|
990
1057
|
super(S.REQUIRED_METHODS, S);
|
|
991
1058
|
}
|
|
@@ -994,53 +1061,54 @@ var Rt = Q, f = class S extends s {
|
|
|
994
1061
|
}
|
|
995
1062
|
};
|
|
996
1063
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
997
|
-
var
|
|
1064
|
+
var _t = f;
|
|
998
1065
|
export {
|
|
999
1066
|
Qe as Block,
|
|
1000
|
-
|
|
1067
|
+
Ye as BlockAttr,
|
|
1001
1068
|
$ as BlockCompositionType,
|
|
1002
1069
|
I as BlockSelector,
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
ze as
|
|
1008
|
-
Ze as
|
|
1009
|
-
|
|
1010
|
-
|
|
1070
|
+
Ee as BlockType,
|
|
1071
|
+
fe as BlocksPanel,
|
|
1072
|
+
M as BuiltInControl,
|
|
1073
|
+
a as BuiltInControlTypes,
|
|
1074
|
+
ze as ButtonAlignBuiltInControl,
|
|
1075
|
+
Ze as ButtonBackgroundColorBuiltInControl,
|
|
1076
|
+
je as ButtonBorderBuiltInControl,
|
|
1077
|
+
We as ButtonBorderRadiusBuiltInControl,
|
|
1078
|
+
qe as ButtonColorBuiltInControl,
|
|
1011
1079
|
K as ButtonControls,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1080
|
+
Je as ButtonFitToContainerBuiltInControl,
|
|
1081
|
+
et as ButtonFontFamilyBuiltInControl,
|
|
1082
|
+
tt as ButtonMarginsBuiltInControl,
|
|
1083
|
+
rt as ButtonPaddingsBuiltInControl,
|
|
1084
|
+
nt as ButtonTextBuiltInControl,
|
|
1017
1085
|
at as ButtonTextSizeBuiltInControl,
|
|
1018
|
-
|
|
1086
|
+
st as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1019
1087
|
oe as ContainerControls,
|
|
1020
|
-
|
|
1088
|
+
it as Control,
|
|
1021
1089
|
de as EditorStatePropertyType,
|
|
1022
1090
|
Ke as Extension,
|
|
1023
|
-
|
|
1091
|
+
gt as ExtensionBuilder,
|
|
1024
1092
|
w as GeneralControls,
|
|
1025
|
-
|
|
1093
|
+
mt as IconsRegistry,
|
|
1026
1094
|
H as ImageControls,
|
|
1027
|
-
|
|
1095
|
+
lt as ImageMarginsBuiltInControl,
|
|
1028
1096
|
Et as ImageSizeBuiltInControl,
|
|
1029
|
-
|
|
1097
|
+
Rt as ModificationDescription,
|
|
1030
1098
|
ue as PreviewDeviceMode,
|
|
1031
|
-
|
|
1032
|
-
|
|
1099
|
+
ot as SettingsPanelRegistry,
|
|
1100
|
+
dt as SettingsPanelTab,
|
|
1033
1101
|
Ie as SettingsTab,
|
|
1034
|
-
|
|
1035
|
-
|
|
1102
|
+
ut as TextAlignBuiltInControl,
|
|
1103
|
+
It as TextColorBuiltInControl,
|
|
1036
1104
|
F as TextControls,
|
|
1037
|
-
|
|
1105
|
+
ct as TextFontFamilyBuiltInControl,
|
|
1038
1106
|
Tt as TextLineSpacingBuiltInControl,
|
|
1039
|
-
|
|
1107
|
+
bt as TextPaddingsBuiltInControl,
|
|
1040
1108
|
Ot as TextSizeBuiltInControl,
|
|
1041
1109
|
ht as TextStyleBuiltInControl,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1110
|
+
$e as UEAttr,
|
|
1111
|
+
Lt as UIElement,
|
|
1112
|
+
_t as UIElementTagRegistry,
|
|
1045
1113
|
Pe as UIElementType
|
|
1046
1114
|
};
|