@useinsider/guido 2.0.0-beta.a3f32aa → 2.0.0-beta.b46bbf6
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/@types/config/schemas.js +33 -45
- 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/RightSlot.vue2.js +10 -10
- package/dist/composables/useConfig.js +27 -29
- package/dist/composables/useSave.js +11 -13
- package/dist/composables/useStripo.js +54 -55
- package/dist/config/migrator/index.js +9 -8
- package/dist/config/migrator/itemsBlockMigrator.js +283 -0
- package/dist/extensions/Blocks/Items/block.js +39 -40
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +46 -49
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +28 -26
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +132 -127
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -2
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +58 -48
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +48 -58
- package/dist/extensions/Blocks/Items/store/items-block.js +2 -2
- package/dist/extensions/Blocks/Items/template.js +296 -123
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +172 -0
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +11 -20
- package/dist/extensions/Blocks/Recommendation/control.js +1 -1
- package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
- package/dist/extensions/Blocks/common-control.js +64 -53
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +366 -287
- package/dist/src/@types/config/index.d.ts +2 -2
- package/dist/src/@types/config/schemas.d.ts +4 -26
- package/dist/src/@types/config/types.d.ts +1 -7
- package/dist/src/composables/useConfig.d.ts +2 -6
- package/dist/src/config/migrator/itemsBlockMigrator.d.ts +6 -0
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +0 -4
- package/dist/src/extensions/Blocks/Items/template.d.ts +20 -1
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +71 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +13 -8
- package/dist/src/stores/config.d.ts +18 -145
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/dist/stores/config.js +0 -7
- package/package.json +3 -3
- package/dist/package.json.js +0 -7
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var B = class d {
|
|
2
2
|
/**
|
|
3
3
|
* Validates that all required methods are properly implemented in the subclass.
|
|
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(
|
|
8
|
-
if (r !==
|
|
9
|
-
|
|
10
|
-
const s =
|
|
7
|
+
constructor(t, r) {
|
|
8
|
+
if (r !== d) {
|
|
9
|
+
d.validatedClasses.has(r) || this.validateImplementation(t, r);
|
|
10
|
+
const s = d.validationErrors.get(r);
|
|
11
11
|
if (s && s.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
13
|
`${r.name} has validation errors:
|
|
14
|
-
${s.map((
|
|
14
|
+
${s.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
17
17
|
}
|
|
@@ -20,23 +20,23 @@ ${s.map((E) => ` - ${E}`).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(
|
|
24
|
-
var
|
|
25
|
-
const s = [],
|
|
26
|
-
|
|
27
|
-
if (typeof this[
|
|
28
|
-
s.push(`Method ${
|
|
23
|
+
validateImplementation(t, r) {
|
|
24
|
+
var x;
|
|
25
|
+
const s = [], o = r.name, Y = Object.getPrototypeOf(this);
|
|
26
|
+
t.forEach((u) => {
|
|
27
|
+
if (typeof this[u] != "function") {
|
|
28
|
+
s.push(`Method ${u}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}),
|
|
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" && ((x = process.env) == null ? void 0 : x.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var a =
|
|
35
|
+
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
|
+
B.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
+
var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), y = class T extends a {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(
|
|
39
|
+
super(T.REQUIRED_METHODS, T);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Determines if the block should be available for use in the editor.
|
|
@@ -86,28 +86,28 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
86
86
|
* @param node - The immutable HTML node representing the selected block instance.
|
|
87
87
|
*/
|
|
88
88
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
89
|
-
onSelect(
|
|
89
|
+
onSelect(t) {
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Lifecycle hook called when an instance of this block is copied.
|
|
93
93
|
* @param modifier - The HTML node modifier to apply changes to the copied block instance.
|
|
94
94
|
*/
|
|
95
95
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
96
|
-
onCopy(
|
|
96
|
+
onCopy(t) {
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Lifecycle hook called when an instance of this block is deleted.
|
|
100
100
|
* @param node - The immutable HTML node representing the block instance being deleted.
|
|
101
101
|
*/
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103
|
-
onDelete(
|
|
103
|
+
onDelete(t) {
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* Lifecycle hook called after a new instance of this block is created and added to the document (e.g., via drag-and-drop).
|
|
107
107
|
* @param node - The immutable HTML node representing the newly created block instance.
|
|
108
108
|
*/
|
|
109
109
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
110
|
-
onCreated(
|
|
110
|
+
onCreated(t) {
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* Lifecycle hook called when any part of the document template has changed.
|
|
@@ -115,7 +115,7 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
115
115
|
* @param node - The immutable HTML node representing current node instance
|
|
116
116
|
*/
|
|
117
117
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
118
|
-
onDocumentChanged(
|
|
118
|
+
onDocumentChanged(t) {
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
121
|
* @description Determines if block is atomic or composite.
|
|
@@ -183,7 +183,7 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
183
183
|
*
|
|
184
184
|
* @return {string} The name of the block panel.
|
|
185
185
|
*/
|
|
186
|
-
|
|
186
|
+
getSettingsPanelTitleHtml() {
|
|
187
187
|
return "";
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
@@ -196,27 +196,27 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
-
var
|
|
199
|
+
var we = y, W = class O extends a {
|
|
200
200
|
constructor() {
|
|
201
|
-
super(
|
|
201
|
+
super(O.REQUIRED_METHODS, O);
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
205
205
|
*/
|
|
206
206
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
207
|
-
getPreviewHtml(
|
|
207
|
+
getPreviewHtml(t) {
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* @description returns custom content to be displayed inside the {@link Block} root TD element
|
|
211
211
|
*/
|
|
212
|
-
getPreviewInnerHtml(
|
|
212
|
+
getPreviewInnerHtml(t) {
|
|
213
213
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
|
|
217
|
-
var
|
|
216
|
+
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
+
var z = class c extends a {
|
|
218
218
|
constructor() {
|
|
219
|
-
super(
|
|
219
|
+
super(c.REQUIRED_METHODS, c);
|
|
220
220
|
}
|
|
221
221
|
getId() {
|
|
222
222
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -227,93 +227,94 @@ var nt = class h extends a {
|
|
|
227
227
|
getLabel() {
|
|
228
228
|
throw new Error("Method getLabel() must be implemented by the subclass");
|
|
229
229
|
}
|
|
230
|
-
onClick(
|
|
230
|
+
onClick(t) {
|
|
231
231
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
|
|
235
|
-
var
|
|
234
|
+
z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
235
|
+
var Z = {
|
|
236
236
|
src: "src",
|
|
237
237
|
alt: "alt",
|
|
238
238
|
href: "href",
|
|
239
|
-
width: "width"
|
|
240
|
-
|
|
239
|
+
width: "width",
|
|
240
|
+
height: "height"
|
|
241
|
+
}, j = {
|
|
241
242
|
href: "href"
|
|
242
|
-
},
|
|
243
|
-
BLOCK_IMAGE:
|
|
244
|
-
BLOCK_BUTTON:
|
|
245
|
-
},
|
|
246
|
-
BLOCK_BUTTON:
|
|
247
|
-
BLOCK_TEXT:
|
|
243
|
+
}, Pe = {
|
|
244
|
+
BLOCK_IMAGE: Z,
|
|
245
|
+
BLOCK_BUTTON: j
|
|
246
|
+
}, v = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", ae = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", Ee = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${ae}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${Ee}`, e.FORM = `.${le}`, e))(I || {}), oe = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(oe || {}), P = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(P || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), de = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(de || {}), n = {
|
|
247
|
+
BLOCK_BUTTON: K,
|
|
248
|
+
BLOCK_TEXT: F,
|
|
248
249
|
BLOCK_IMAGE: H,
|
|
249
|
-
GENERAL:
|
|
250
|
-
},
|
|
250
|
+
GENERAL: P
|
|
251
|
+
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}), E = {
|
|
251
252
|
name: "name",
|
|
252
253
|
disabled: "disabled"
|
|
253
|
-
},
|
|
254
|
-
...
|
|
254
|
+
}, Ie = {
|
|
255
|
+
...E,
|
|
255
256
|
caption: "caption",
|
|
256
257
|
icon: "icon"
|
|
257
|
-
},
|
|
258
|
-
...
|
|
258
|
+
}, Te = {
|
|
259
|
+
...E,
|
|
259
260
|
caption: "caption"
|
|
260
|
-
},
|
|
261
|
-
...
|
|
261
|
+
}, Oe = {
|
|
262
|
+
...E,
|
|
262
263
|
minValue: "min-value",
|
|
263
264
|
maxValue: "max-value",
|
|
264
265
|
step: "step"
|
|
265
|
-
},
|
|
266
|
-
...
|
|
266
|
+
}, ce = {
|
|
267
|
+
...E,
|
|
267
268
|
text: "text"
|
|
268
|
-
},
|
|
269
|
-
...
|
|
269
|
+
}, he = {
|
|
270
|
+
...E
|
|
270
271
|
}, X = {
|
|
271
|
-
...
|
|
272
|
+
...E,
|
|
272
273
|
searchable: "searchable",
|
|
273
274
|
multiSelect: "multi-select",
|
|
274
275
|
placeholder: "placeholder",
|
|
275
276
|
items: "items"
|
|
276
|
-
},
|
|
277
|
+
}, ge = {
|
|
277
278
|
...X
|
|
278
|
-
},
|
|
279
|
+
}, be = {
|
|
279
280
|
text: "text",
|
|
280
281
|
value: "value"
|
|
281
|
-
},
|
|
282
|
+
}, me = {
|
|
282
283
|
text: "text",
|
|
283
284
|
icon: "icon",
|
|
284
285
|
value: "value"
|
|
285
|
-
},
|
|
286
|
-
...
|
|
287
|
-
},
|
|
286
|
+
}, Re = {
|
|
287
|
+
...E
|
|
288
|
+
}, _e = {
|
|
288
289
|
controlId: "control-id"
|
|
289
|
-
},
|
|
290
|
-
...
|
|
290
|
+
}, Le = {
|
|
291
|
+
...E,
|
|
291
292
|
icon: "icon",
|
|
292
293
|
position: "position"
|
|
293
|
-
},
|
|
294
|
-
...
|
|
295
|
-
},
|
|
296
|
-
BUTTON:
|
|
297
|
-
CHECKBOX:
|
|
298
|
-
COLOR:
|
|
299
|
-
COUNTER:
|
|
300
|
-
LABEL:
|
|
301
|
-
RADIO_BUTTONS:
|
|
294
|
+
}, Ce = {
|
|
295
|
+
...E
|
|
296
|
+
}, Ke = {
|
|
297
|
+
BUTTON: Ie,
|
|
298
|
+
CHECKBOX: Te,
|
|
299
|
+
COLOR: E,
|
|
300
|
+
COUNTER: Oe,
|
|
301
|
+
LABEL: ce,
|
|
302
|
+
RADIO_BUTTONS: he,
|
|
302
303
|
SELECTPICKER: X,
|
|
303
|
-
FONT_FAMILY_SELECT:
|
|
304
|
-
SWITCHER:
|
|
305
|
-
TEXT:
|
|
306
|
-
SELECT_ITEM:
|
|
307
|
-
RADIO_ITEM:
|
|
308
|
-
NESTED_CONTROL:
|
|
309
|
-
ORDERABLE:
|
|
310
|
-
ORDERABLE_ITEM:
|
|
311
|
-
},
|
|
304
|
+
FONT_FAMILY_SELECT: ge,
|
|
305
|
+
SWITCHER: E,
|
|
306
|
+
TEXT: Re,
|
|
307
|
+
SELECT_ITEM: be,
|
|
308
|
+
RADIO_ITEM: me,
|
|
309
|
+
NESTED_CONTROL: _e,
|
|
310
|
+
ORDERABLE: Le,
|
|
311
|
+
ORDERABLE_ITEM: Ce
|
|
312
|
+
}, Ae = /* @__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))(Ae || {}), M = class {
|
|
312
313
|
/**
|
|
313
314
|
* @description returns map of nodes parent control operates on
|
|
314
315
|
*/
|
|
315
|
-
getTargetNodes(
|
|
316
|
-
return [
|
|
316
|
+
getTargetNodes(e) {
|
|
317
|
+
return [e];
|
|
317
318
|
}
|
|
318
319
|
/**
|
|
319
320
|
* @description returns map of labels used by parent control UI
|
|
@@ -328,7 +329,7 @@ var st = {
|
|
|
328
329
|
/**
|
|
329
330
|
* @description returns custom modifications to be included in the parent control patch
|
|
330
331
|
*/
|
|
331
|
-
getAdditionalModifications(
|
|
332
|
+
getAdditionalModifications(e) {
|
|
332
333
|
}
|
|
333
334
|
/**
|
|
334
335
|
* Determines whether the specified HTML node is visible.
|
|
@@ -336,77 +337,77 @@ var st = {
|
|
|
336
337
|
* @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
|
|
337
338
|
* @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
|
|
338
339
|
*/
|
|
339
|
-
isVisible(
|
|
340
|
+
isVisible(e) {
|
|
340
341
|
return !0;
|
|
341
342
|
}
|
|
342
|
-
}, i = class extends
|
|
343
|
-
getTargetNodes(
|
|
344
|
-
const
|
|
345
|
-
return
|
|
343
|
+
}, i = class extends M {
|
|
344
|
+
getTargetNodes(e) {
|
|
345
|
+
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(v) ? [e] : [];
|
|
346
|
+
return t.length ? t : r;
|
|
346
347
|
}
|
|
347
|
-
},
|
|
348
|
+
}, Fe = class extends i {
|
|
348
349
|
getParentControlId() {
|
|
349
350
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
350
351
|
}
|
|
351
352
|
getLabels() {
|
|
352
353
|
}
|
|
353
|
-
},
|
|
354
|
+
}, He = class extends i {
|
|
354
355
|
getParentControlId() {
|
|
355
356
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
356
357
|
}
|
|
357
|
-
},
|
|
358
|
+
}, Xe = class extends i {
|
|
358
359
|
getParentControlId() {
|
|
359
360
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
360
361
|
}
|
|
361
|
-
},
|
|
362
|
+
}, ke = class extends i {
|
|
362
363
|
getParentControlId() {
|
|
363
364
|
return n.BLOCK_BUTTON.BORDER;
|
|
364
365
|
}
|
|
365
366
|
getLabels() {
|
|
366
367
|
}
|
|
367
|
-
},
|
|
368
|
+
}, Ge = class extends i {
|
|
368
369
|
getParentControlId() {
|
|
369
370
|
return n.BLOCK_BUTTON.COLOR;
|
|
370
371
|
}
|
|
371
|
-
},
|
|
372
|
+
}, Ve = class extends i {
|
|
372
373
|
getParentControlId() {
|
|
373
374
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
374
375
|
}
|
|
375
|
-
},
|
|
376
|
+
}, Qe = class extends i {
|
|
376
377
|
getParentControlId() {
|
|
377
378
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
378
379
|
}
|
|
379
|
-
},
|
|
380
|
+
}, pe = class extends i {
|
|
380
381
|
getParentControlId() {
|
|
381
382
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
382
383
|
}
|
|
383
|
-
},
|
|
384
|
+
}, fe = class extends i {
|
|
384
385
|
getParentControlId() {
|
|
385
386
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
386
387
|
}
|
|
387
|
-
},
|
|
388
|
+
}, Ye = class extends i {
|
|
388
389
|
getParentControlId() {
|
|
389
390
|
return n.BLOCK_BUTTON.TEXT;
|
|
390
391
|
}
|
|
391
|
-
},
|
|
392
|
+
}, $e = class extends i {
|
|
392
393
|
getParentControlId() {
|
|
393
394
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
394
395
|
}
|
|
395
|
-
},
|
|
396
|
+
}, We = class extends i {
|
|
396
397
|
getParentControlId() {
|
|
397
398
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
398
399
|
}
|
|
399
400
|
getLabels() {
|
|
400
401
|
}
|
|
401
|
-
}, k = class
|
|
402
|
+
}, k = class h extends a {
|
|
402
403
|
constructor() {
|
|
403
|
-
super(
|
|
404
|
+
super(h.REQUIRED_METHODS, h);
|
|
404
405
|
}
|
|
405
406
|
/**
|
|
406
407
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
407
408
|
* Called on every node modification.
|
|
408
409
|
*/
|
|
409
|
-
isVisible(
|
|
410
|
+
isVisible(t) {
|
|
410
411
|
return !0;
|
|
411
412
|
}
|
|
412
413
|
/**
|
|
@@ -443,42 +444,112 @@ var st = {
|
|
|
443
444
|
* Implement this to react to changes in the block/structure and update the control's UI elements accordingly.
|
|
444
445
|
* @param node - The updated immutable HTML node representing the control's context.
|
|
445
446
|
*/
|
|
446
|
-
onTemplateNodeUpdated(
|
|
447
|
+
onTemplateNodeUpdated(t) {
|
|
447
448
|
}
|
|
448
449
|
/**
|
|
449
450
|
* Lifecycle hook called when any part of the document template has changed.
|
|
450
451
|
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
451
452
|
* @param _node - The immutable HTML node representing current node instance
|
|
452
453
|
*/
|
|
453
|
-
onDocumentChanged(
|
|
454
|
+
onDocumentChanged(t) {
|
|
454
455
|
}
|
|
455
456
|
};
|
|
456
457
|
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
457
|
-
var
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
458
|
+
var ze = k, Ne = class g extends a {
|
|
459
|
+
constructor() {
|
|
460
|
+
super(g.REQUIRED_METHODS, g);
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Gets the unique identifier for this tab.
|
|
464
|
+
* This ID is used for registration.
|
|
465
|
+
* @returns A unique string ID.
|
|
466
|
+
*/
|
|
467
|
+
getId() {
|
|
468
|
+
throw new Error("Method getId() must be implemented by the subclass");
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Gets the icon key representing this tab in the header.
|
|
472
|
+
* @returns A string representing the icon key from the IconsRegistry
|
|
473
|
+
*/
|
|
474
|
+
getIcon() {
|
|
475
|
+
throw new Error("Method getIcon() must be implemented by the subclass");
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Retrieves the index of the tab associated with the panel.
|
|
479
|
+
* The index represents the position/order of the tab in the UI.
|
|
480
|
+
*
|
|
481
|
+
* @returns {number} The index of the tab.
|
|
482
|
+
*/
|
|
483
|
+
getTabIndex() {
|
|
484
|
+
throw new Error("Method getTabIndex() must be implemented by the subclass");
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* Gets the display name of the tab shown to the user in the header hint.
|
|
488
|
+
* Use `this.api.translate()` for localization.
|
|
489
|
+
* @returns The localized tab name string.
|
|
490
|
+
*/
|
|
491
|
+
getName() {
|
|
492
|
+
throw new Error("Method getName() must be implemented by the subclass");
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Determines if the tab should be available for use in the editor.
|
|
496
|
+
* Override to provide custom logic based on the editor state or configuration.
|
|
497
|
+
* @returns True if the tab is enabled, false otherwise. Defaults to true.
|
|
498
|
+
*/
|
|
499
|
+
isEnabled() {
|
|
500
|
+
return !0;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Gets the HTML template string that defines the initial template of general tab.
|
|
504
|
+
* @returns An HTML string.
|
|
505
|
+
*/
|
|
506
|
+
getTemplate() {
|
|
507
|
+
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Lifecycle hook called when any part of the document template has changed.
|
|
511
|
+
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
512
|
+
*/
|
|
513
|
+
onDocumentChanged() {
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Optional hook called when the general panel tab is initially rendered.
|
|
517
|
+
* Use this for setup tasks like attaching event listeners to the panel's template elements.
|
|
518
|
+
*/
|
|
519
|
+
onRender() {
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Optional cleanup hook called when the general panel tab is being destroyed.
|
|
523
|
+
*/
|
|
524
|
+
onDestroy() {
|
|
461
525
|
}
|
|
462
|
-
}
|
|
526
|
+
};
|
|
527
|
+
Ne.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
528
|
+
var G = class extends M {
|
|
529
|
+
getTargetNodes(e) {
|
|
530
|
+
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(w) ? [e] : [];
|
|
531
|
+
return t.length ? t : r;
|
|
532
|
+
}
|
|
533
|
+
}, Ze = class extends G {
|
|
463
534
|
getParentControlId() {
|
|
464
535
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
465
536
|
}
|
|
466
|
-
},
|
|
537
|
+
}, je = class extends G {
|
|
467
538
|
getParentControlId() {
|
|
468
539
|
return n.BLOCK_IMAGE.SIZE;
|
|
469
540
|
}
|
|
470
|
-
},
|
|
541
|
+
}, V = class b extends a {
|
|
471
542
|
constructor() {
|
|
472
|
-
super(
|
|
543
|
+
super(b.REQUIRED_METHODS, b);
|
|
473
544
|
}
|
|
474
|
-
registerBlockControls(
|
|
545
|
+
registerBlockControls(t) {
|
|
475
546
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
476
547
|
}
|
|
477
548
|
};
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
constructor(
|
|
481
|
-
this.tabId =
|
|
549
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
550
|
+
var qe = V, Je = class {
|
|
551
|
+
constructor(e, t) {
|
|
552
|
+
this.tabId = e, this.controlsIds = t;
|
|
482
553
|
}
|
|
483
554
|
getTabId() {
|
|
484
555
|
return this.tabId;
|
|
@@ -489,52 +560,52 @@ var se = G, ae = class {
|
|
|
489
560
|
getControlsIds() {
|
|
490
561
|
return this.controlsIds;
|
|
491
562
|
}
|
|
492
|
-
withLabel(
|
|
493
|
-
return this.label =
|
|
563
|
+
withLabel(e) {
|
|
564
|
+
return this.label = e, this;
|
|
494
565
|
}
|
|
495
|
-
addControl(
|
|
496
|
-
return
|
|
566
|
+
addControl(e, t) {
|
|
567
|
+
return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
|
|
497
568
|
}
|
|
498
|
-
deleteControl(
|
|
499
|
-
const
|
|
500
|
-
|
|
569
|
+
deleteControl(e) {
|
|
570
|
+
const t = this.controlsIds.indexOf(e);
|
|
571
|
+
t !== -1 && this.controlsIds.splice(t, 1);
|
|
501
572
|
}
|
|
502
|
-
},
|
|
503
|
-
getTargetNodes(
|
|
504
|
-
const
|
|
505
|
-
return
|
|
573
|
+
}, l = class extends M {
|
|
574
|
+
getTargetNodes(e) {
|
|
575
|
+
const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
|
|
576
|
+
return t.length ? t : r;
|
|
506
577
|
}
|
|
507
|
-
},
|
|
578
|
+
}, et = class extends l {
|
|
508
579
|
getParentControlId() {
|
|
509
580
|
return n.GENERAL.TEXT_ALIGN;
|
|
510
581
|
}
|
|
511
|
-
},
|
|
582
|
+
}, tt = class extends l {
|
|
512
583
|
getParentControlId() {
|
|
513
584
|
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
514
585
|
}
|
|
515
|
-
},
|
|
586
|
+
}, rt = class extends l {
|
|
516
587
|
getParentControlId() {
|
|
517
588
|
return n.GENERAL.TEXT_COLOR;
|
|
518
589
|
}
|
|
519
|
-
},
|
|
590
|
+
}, nt = class extends l {
|
|
520
591
|
getParentControlId() {
|
|
521
592
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
522
593
|
}
|
|
523
|
-
},
|
|
594
|
+
}, at = class extends l {
|
|
524
595
|
getParentControlId() {
|
|
525
596
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
526
597
|
}
|
|
527
|
-
},
|
|
598
|
+
}, st = class extends l {
|
|
528
599
|
getParentControlId() {
|
|
529
600
|
return n.GENERAL.TEXT_SIZE;
|
|
530
601
|
}
|
|
531
|
-
},
|
|
602
|
+
}, it = class extends l {
|
|
532
603
|
getParentControlId() {
|
|
533
604
|
return n.GENERAL.TEXT_STYLE;
|
|
534
605
|
}
|
|
535
|
-
},
|
|
536
|
-
constructor(
|
|
537
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n =
|
|
606
|
+
}, De = class {
|
|
607
|
+
constructor(e) {
|
|
608
|
+
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);
|
|
538
609
|
}
|
|
539
610
|
getI18n() {
|
|
540
611
|
return this.i18n;
|
|
@@ -590,104 +661,111 @@ var se = G, ae = class {
|
|
|
590
661
|
getIconsRegistry() {
|
|
591
662
|
return this.iconsRegistry;
|
|
592
663
|
}
|
|
593
|
-
|
|
664
|
+
getGeneralPanelTabs() {
|
|
665
|
+
return this.generalPanelTabs;
|
|
666
|
+
}
|
|
667
|
+
}, Et = class {
|
|
594
668
|
constructor() {
|
|
595
|
-
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
669
|
+
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
596
670
|
}
|
|
597
|
-
withLocalization(
|
|
598
|
-
return this.i18n =
|
|
671
|
+
withLocalization(e) {
|
|
672
|
+
return this.i18n = e, this;
|
|
599
673
|
}
|
|
600
674
|
/**
|
|
601
675
|
* @deprecated Use addStyles() instead. This method will be removed in a future version.
|
|
602
676
|
*/
|
|
603
|
-
withStyles(
|
|
604
|
-
return this.styles = [
|
|
677
|
+
withStyles(e) {
|
|
678
|
+
return this.styles = [e], this;
|
|
605
679
|
}
|
|
606
|
-
addStyles(
|
|
607
|
-
return this.styles.push(
|
|
680
|
+
addStyles(e) {
|
|
681
|
+
return this.styles.push(e), this;
|
|
608
682
|
}
|
|
609
683
|
/**
|
|
610
684
|
* @description defines custom developer styles to use inside the editor document preview
|
|
611
685
|
*/
|
|
612
|
-
withPreviewStyles(
|
|
613
|
-
return this.previewStyles =
|
|
686
|
+
withPreviewStyles(e) {
|
|
687
|
+
return this.previewStyles = e, this;
|
|
688
|
+
}
|
|
689
|
+
addContextAction(e) {
|
|
690
|
+
return this.contextActions.push(e), this;
|
|
614
691
|
}
|
|
615
|
-
|
|
616
|
-
return this.
|
|
692
|
+
addUiElement(e) {
|
|
693
|
+
return this.uiElements.push(e), this;
|
|
617
694
|
}
|
|
618
|
-
|
|
619
|
-
return this.
|
|
695
|
+
withUiElementTagRegistry(e) {
|
|
696
|
+
return this.uiElementTagRegistry = e, this;
|
|
620
697
|
}
|
|
621
|
-
|
|
622
|
-
return this.
|
|
698
|
+
addControl(e) {
|
|
699
|
+
return this.controls.push(e), this;
|
|
623
700
|
}
|
|
624
|
-
|
|
625
|
-
return this.
|
|
701
|
+
withSettingsPanelRegistry(e) {
|
|
702
|
+
return this.settingsPanelRegistry = e, this;
|
|
626
703
|
}
|
|
627
|
-
|
|
628
|
-
return this.
|
|
704
|
+
withExternalSmartElementsLibrary(e) {
|
|
705
|
+
return this.externalSmartElementsLibrary = e, this;
|
|
629
706
|
}
|
|
630
|
-
|
|
631
|
-
return this.
|
|
707
|
+
withExternalImageLibrary(e) {
|
|
708
|
+
return this.externalImageLibrary = e, this;
|
|
632
709
|
}
|
|
633
|
-
|
|
634
|
-
return this.
|
|
710
|
+
withExternalImageLibraryTab(e) {
|
|
711
|
+
return this.externalImageLibraryTab = e, this;
|
|
635
712
|
}
|
|
636
|
-
|
|
637
|
-
return this.
|
|
713
|
+
withExternalAiAssistant(e) {
|
|
714
|
+
return this.externalAiAssistant = e, this;
|
|
638
715
|
}
|
|
639
|
-
|
|
640
|
-
return this.
|
|
716
|
+
withExternalDisplayCondition(e) {
|
|
717
|
+
return this.externalDisplayConditionsLibrary = e, this;
|
|
641
718
|
}
|
|
642
|
-
|
|
643
|
-
return this.
|
|
719
|
+
withExternalVideosLibrary(e) {
|
|
720
|
+
return this.externalVideoLibrary = e, this;
|
|
644
721
|
}
|
|
645
|
-
|
|
646
|
-
return this.
|
|
722
|
+
withBlocksPanel(e) {
|
|
723
|
+
return this.blocksPanel = e, this;
|
|
647
724
|
}
|
|
648
|
-
|
|
649
|
-
return this.
|
|
725
|
+
addBlock(e) {
|
|
726
|
+
return this.blocks.push(e), this;
|
|
650
727
|
}
|
|
651
|
-
|
|
652
|
-
return this.
|
|
728
|
+
withIconsRegistry(e) {
|
|
729
|
+
return this.iconsRegistry = e, this;
|
|
653
730
|
}
|
|
654
|
-
|
|
655
|
-
return this.
|
|
731
|
+
addGeneralPanelTab(e) {
|
|
732
|
+
return this.generalPanelTabs.push(e), this;
|
|
656
733
|
}
|
|
657
734
|
build() {
|
|
658
|
-
return new
|
|
659
|
-
this.i18n,
|
|
660
|
-
|
|
735
|
+
return new De({
|
|
736
|
+
i18n: this.i18n,
|
|
737
|
+
styles: this.styles.map((e) => e.trim()).join(`
|
|
661
738
|
`),
|
|
662
|
-
this.uiElements,
|
|
663
|
-
this.uiElementTagRegistry,
|
|
664
|
-
this.controls,
|
|
665
|
-
this.settingsPanelRegistry,
|
|
666
|
-
this.contextActions,
|
|
667
|
-
this.blocks,
|
|
668
|
-
this.externalSmartElementsLibrary,
|
|
669
|
-
this.externalImageLibrary,
|
|
670
|
-
this.previewStyles,
|
|
671
|
-
this.externalAiAssistant,
|
|
672
|
-
this.externalDisplayConditionsLibrary,
|
|
673
|
-
this.externalVideoLibrary,
|
|
674
|
-
this.blocksPanel,
|
|
675
|
-
this.iconsRegistry,
|
|
676
|
-
this.externalImageLibraryTab
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
739
|
+
uiElements: this.uiElements,
|
|
740
|
+
uiElementTagRegistry: this.uiElementTagRegistry,
|
|
741
|
+
controls: this.controls,
|
|
742
|
+
settingsPanelRegistry: this.settingsPanelRegistry,
|
|
743
|
+
contextActions: this.contextActions,
|
|
744
|
+
blocks: this.blocks,
|
|
745
|
+
externalSmartElementsLibrary: this.externalSmartElementsLibrary,
|
|
746
|
+
externalImageLibrary: this.externalImageLibrary,
|
|
747
|
+
previewStyles: this.previewStyles,
|
|
748
|
+
externalAiAssistant: this.externalAiAssistant,
|
|
749
|
+
externalDisplayConditionsLibrary: this.externalDisplayConditionsLibrary,
|
|
750
|
+
externalVideoLibrary: this.externalVideoLibrary,
|
|
751
|
+
blocksPanel: this.blocksPanel,
|
|
752
|
+
iconsRegistry: this.iconsRegistry,
|
|
753
|
+
externalImageLibraryTab: this.externalImageLibraryTab,
|
|
754
|
+
generalPanelTabs: this.generalPanelTabs
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
}, Se = class m extends a {
|
|
680
758
|
constructor() {
|
|
681
|
-
super(
|
|
759
|
+
super(m.REQUIRED_METHODS, m);
|
|
682
760
|
}
|
|
683
|
-
openAiAssistant(
|
|
761
|
+
openAiAssistant(t) {
|
|
684
762
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
685
763
|
}
|
|
686
764
|
};
|
|
687
|
-
|
|
688
|
-
var
|
|
765
|
+
Se.REQUIRED_METHODS = ["openAiAssistant"];
|
|
766
|
+
var Be = class R extends a {
|
|
689
767
|
constructor() {
|
|
690
|
-
super(
|
|
768
|
+
super(R.REQUIRED_METHODS, R);
|
|
691
769
|
}
|
|
692
770
|
/**
|
|
693
771
|
* Retrieves the name of the category.
|
|
@@ -700,11 +778,11 @@ var Kt = class m extends a {
|
|
|
700
778
|
/**
|
|
701
779
|
* Opens a popup dialog for creating or updating a display condition.
|
|
702
780
|
*
|
|
703
|
-
* @param {DisplayCondition}
|
|
704
|
-
* @param {ExternalDisplayConditionSelectedCB}
|
|
705
|
-
* @param {() => void}
|
|
781
|
+
* @param {DisplayCondition} _currentCondition - The currently selected display condition to edit.
|
|
782
|
+
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
783
|
+
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
706
784
|
*/
|
|
707
|
-
openExternalDisplayConditionsDialog(
|
|
785
|
+
openExternalDisplayConditionsDialog(t, r, s) {
|
|
708
786
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
709
787
|
}
|
|
710
788
|
/**
|
|
@@ -725,19 +803,19 @@ var Kt = class m extends a {
|
|
|
725
803
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
726
804
|
}
|
|
727
805
|
};
|
|
728
|
-
|
|
729
|
-
var
|
|
806
|
+
Be.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
807
|
+
var Me = class _ extends a {
|
|
730
808
|
constructor() {
|
|
731
|
-
super(
|
|
809
|
+
super(_.REQUIRED_METHODS, _);
|
|
732
810
|
}
|
|
733
|
-
openImageLibrary(
|
|
811
|
+
openImageLibrary(t, r, s) {
|
|
734
812
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
735
813
|
}
|
|
736
814
|
};
|
|
737
|
-
|
|
738
|
-
var
|
|
815
|
+
Me.REQUIRED_METHODS = ["openImageLibrary"];
|
|
816
|
+
var xe = class L extends a {
|
|
739
817
|
constructor() {
|
|
740
|
-
super(
|
|
818
|
+
super(L.REQUIRED_METHODS, L);
|
|
741
819
|
}
|
|
742
820
|
/**
|
|
743
821
|
* @description Returns the translated name/label for the tab
|
|
@@ -750,45 +828,46 @@ var wt = class b extends a {
|
|
|
750
828
|
* @description Opens the external image library tab and provides a container for rendering
|
|
751
829
|
* @param _container - DOM element container where the external library UI should be rendered
|
|
752
830
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
831
|
+
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
753
832
|
*/
|
|
754
|
-
openImageLibraryTab(
|
|
833
|
+
openImageLibraryTab(t, r, s) {
|
|
755
834
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
756
835
|
}
|
|
757
836
|
};
|
|
758
|
-
|
|
759
|
-
var
|
|
837
|
+
xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
838
|
+
var ye = class C extends a {
|
|
760
839
|
constructor() {
|
|
761
|
-
super(
|
|
840
|
+
super(C.REQUIRED_METHODS, C);
|
|
762
841
|
}
|
|
763
|
-
openSmartElementsLibrary(
|
|
842
|
+
openSmartElementsLibrary(t, r) {
|
|
764
843
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
765
844
|
}
|
|
766
845
|
};
|
|
767
|
-
|
|
768
|
-
var
|
|
846
|
+
ye.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
847
|
+
var ve = class A extends a {
|
|
769
848
|
constructor() {
|
|
770
|
-
super(
|
|
849
|
+
super(A.REQUIRED_METHODS, A);
|
|
771
850
|
}
|
|
772
|
-
openExternalVideosLibraryDialog(
|
|
851
|
+
openExternalVideosLibraryDialog(t, r, s) {
|
|
773
852
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
774
853
|
}
|
|
775
854
|
};
|
|
776
|
-
|
|
777
|
-
var Q = class
|
|
855
|
+
ve.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
856
|
+
var Q = class N extends a {
|
|
778
857
|
constructor() {
|
|
779
|
-
super(
|
|
858
|
+
super(N.REQUIRED_METHODS, N);
|
|
780
859
|
}
|
|
781
|
-
registerIconsSvg(
|
|
860
|
+
registerIconsSvg(t) {
|
|
782
861
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
783
862
|
}
|
|
784
863
|
};
|
|
785
864
|
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
786
|
-
var
|
|
787
|
-
constructor(
|
|
788
|
-
this.key =
|
|
865
|
+
var lt = Q, ot = class {
|
|
866
|
+
constructor(e) {
|
|
867
|
+
this.key = e;
|
|
789
868
|
}
|
|
790
|
-
withParams(
|
|
791
|
-
return this.params =
|
|
869
|
+
withParams(e) {
|
|
870
|
+
return this.params = e, this;
|
|
792
871
|
}
|
|
793
872
|
getValue() {
|
|
794
873
|
return {
|
|
@@ -796,15 +875,15 @@ var Te = Q, ce = class {
|
|
|
796
875
|
params: this.params
|
|
797
876
|
};
|
|
798
877
|
}
|
|
799
|
-
},
|
|
878
|
+
}, p = class D extends a {
|
|
800
879
|
constructor() {
|
|
801
|
-
super(
|
|
880
|
+
super(D.REQUIRED_METHODS, D);
|
|
802
881
|
}
|
|
803
882
|
/**
|
|
804
883
|
* Called when the UI element should render its content into the provided container.
|
|
805
884
|
* @param container - The HTMLElement where the UI element should be rendered.
|
|
806
885
|
*/
|
|
807
|
-
onRender(
|
|
886
|
+
onRender(t) {
|
|
808
887
|
throw new Error("Method onRender() must be implemented by the subclass");
|
|
809
888
|
}
|
|
810
889
|
/**
|
|
@@ -825,7 +904,7 @@ var Te = Q, ce = class {
|
|
|
825
904
|
* Implement this if the element manages a state or value and needs to be updated externally.
|
|
826
905
|
* @param value - The new value to set.
|
|
827
906
|
*/
|
|
828
|
-
setValue(
|
|
907
|
+
setValue(t) {
|
|
829
908
|
}
|
|
830
909
|
/**
|
|
831
910
|
* @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
|
|
@@ -833,7 +912,7 @@ var Te = Q, ce = class {
|
|
|
833
912
|
* @param name - The name of the attribute that was updated.
|
|
834
913
|
* @param value - The new value of the attribute.
|
|
835
914
|
*/
|
|
836
|
-
onAttributeUpdated(
|
|
915
|
+
onAttributeUpdated(t, r) {
|
|
837
916
|
}
|
|
838
917
|
/**
|
|
839
918
|
* Gets the unique identifier for this UI element type.
|
|
@@ -851,61 +930,61 @@ var Te = Q, ce = class {
|
|
|
851
930
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
852
931
|
}
|
|
853
932
|
};
|
|
854
|
-
|
|
855
|
-
var
|
|
933
|
+
p.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
934
|
+
var dt = p, f = class S extends a {
|
|
856
935
|
constructor() {
|
|
857
|
-
super(
|
|
936
|
+
super(S.REQUIRED_METHODS, S);
|
|
858
937
|
}
|
|
859
|
-
registerUiElements(
|
|
938
|
+
registerUiElements(t) {
|
|
860
939
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
861
940
|
}
|
|
862
941
|
};
|
|
863
|
-
|
|
864
|
-
var
|
|
942
|
+
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
943
|
+
var ut = f;
|
|
865
944
|
export {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
945
|
+
we as Block,
|
|
946
|
+
Pe as BlockAttr,
|
|
947
|
+
$ as BlockCompositionType,
|
|
948
|
+
I as BlockSelector,
|
|
949
|
+
oe as BlockType,
|
|
950
|
+
M as BuiltInControl,
|
|
872
951
|
n as BuiltInControlTypes,
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
952
|
+
He as ButtonAlignBuiltInControl,
|
|
953
|
+
Xe as ButtonBackgroundColorBuiltInControl,
|
|
954
|
+
ke as ButtonBorderBuiltInControl,
|
|
955
|
+
Fe as ButtonBorderRadiusBuiltInControl,
|
|
956
|
+
Ge as ButtonColorBuiltInControl,
|
|
957
|
+
K as ButtonControls,
|
|
958
|
+
Ve as ButtonFitToContainerBuiltInControl,
|
|
959
|
+
Qe as ButtonFontFamilyBuiltInControl,
|
|
960
|
+
pe as ButtonMarginsBuiltInControl,
|
|
961
|
+
fe as ButtonPaddingsBuiltInControl,
|
|
962
|
+
Ye as ButtonTextBuiltInControl,
|
|
963
|
+
$e as ButtonTextSizeBuiltInControl,
|
|
964
|
+
We as ButtonTextStyleAndFontColorBuiltInControl,
|
|
965
|
+
de as ContainerControls,
|
|
966
|
+
ze as Control,
|
|
967
|
+
De as Extension,
|
|
968
|
+
Et as ExtensionBuilder,
|
|
969
|
+
P as GeneralControls,
|
|
970
|
+
lt as IconsRegistry,
|
|
892
971
|
H as ImageControls,
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
972
|
+
Ze as ImageMarginsBuiltInControl,
|
|
973
|
+
je as ImageSizeBuiltInControl,
|
|
974
|
+
ot as ModificationDescription,
|
|
975
|
+
qe as SettingsPanelRegistry,
|
|
976
|
+
Je as SettingsPanelTab,
|
|
977
|
+
ue as SettingsTab,
|
|
978
|
+
et as TextAlignBuiltInControl,
|
|
979
|
+
tt as TextBlockBackgroundBuiltInControl,
|
|
980
|
+
rt as TextColorBuiltInControl,
|
|
981
|
+
F as TextControls,
|
|
982
|
+
nt as TextFontFamilyBuiltInControl,
|
|
983
|
+
at as TextPaddingsBuiltInControl,
|
|
984
|
+
st as TextSizeBuiltInControl,
|
|
985
|
+
it as TextStyleBuiltInControl,
|
|
986
|
+
Ke as UEAttr,
|
|
987
|
+
dt as UIElement,
|
|
988
|
+
ut as UIElementTagRegistry,
|
|
989
|
+
Ae as UIElementType
|
|
911
990
|
};
|