@useinsider/guido 3.2.0-beta.6d12eec → 3.2.0-beta.738ec8a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +9 -11
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +70 -35
- package/dist/composables/useActionsApi.js +4 -4
- package/dist/composables/useFullStoryBridge.js +9 -29
- package/dist/composables/useSave.js +1 -1
- package/dist/composables/useStripo.js +23 -22
- package/dist/config/compiler/recommendationCompilerRules.js +72 -67
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +33 -30
- package/dist/config/migrator/recommendationMigrator.js +1 -1
- package/dist/enums/extensions/recommendationBlock.js +28 -27
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +38 -38
- package/dist/extensions/Blocks/Items/enums/productEnums.js +19 -7
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/index.js +21 -18
- package/dist/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.js +99 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +6 -6
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +3 -1
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +27 -57
- package/dist/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.js +14 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +18 -17
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +29 -25
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +11 -11
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +31 -15
- package/dist/extensions/Blocks/Unsubscribe/block.js +11 -11
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +324 -218
- package/dist/package.json.js +1 -1
- package/dist/src/composables/useActionsApi.d.ts +1 -1
- package/dist/src/composables/useFullStoryBridge.d.ts +6 -6
- package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/index.d.ts +3 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/customAttribute/textTrim.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +3 -20
- package/dist/src/extensions/Blocks/Recommendation/controls/shared/textTrimCssRules.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +2 -0
- package/dist/static/styles/components/button.css.js +16 -9
- package/dist/static/styles/components/loader.css.js +4 -0
- package/dist/static/styles/components/narrow-panel.css.js +52 -0
- package/package.json +3 -3
|
@@ -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, a) {
|
|
8
|
+
if (a !== d) {
|
|
9
|
+
d.validatedClasses.has(a) || this.validateImplementation(t, a);
|
|
10
|
+
const i = d.validationErrors.get(a);
|
|
11
11
|
if (i && i.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
13
|
+
`${a.name} has validation errors:
|
|
14
14
|
${i.map((o) => ` - ${o}`).join(`
|
|
15
15
|
`)}`
|
|
16
16
|
);
|
|
@@ -20,23 +20,30 @@ ${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, a) {
|
|
24
|
+
var v;
|
|
25
|
+
const i = [], o = a.name, $ = 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
|
-
|
|
32
|
-
}), d.validatedClasses.add(
|
|
31
|
+
$[u] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((v = process.env) == null ? void 0 : v.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
|
|
36
|
+
* Override this method in subclasses to implement custom cleanup logic.
|
|
37
|
+
* Called when the editor is reinitialized or the extension is uninstalled.
|
|
38
|
+
*/
|
|
39
|
+
destroy() {
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
42
|
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
43
|
B.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
-
var s = B,
|
|
44
|
+
var s = B, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(W || {}), y = class T extends s {
|
|
38
45
|
constructor() {
|
|
39
|
-
super(
|
|
46
|
+
super(T.REQUIRED_METHODS, T);
|
|
40
47
|
}
|
|
41
48
|
/**
|
|
42
49
|
* Determines if the block should be available for use in the editor.
|
|
@@ -133,6 +140,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
133
140
|
shouldDisplayQuickAddIcon() {
|
|
134
141
|
return !1;
|
|
135
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* Determines if the block should be shown in the blocks panel.
|
|
145
|
+
* Override to hide the block from the blocks panel while keeping it available elsewhere.
|
|
146
|
+
* @returns True if the block should appear in the blocks panel. Defaults to true.
|
|
147
|
+
*/
|
|
148
|
+
shouldDisplayInBlocksPanel() {
|
|
149
|
+
return !0;
|
|
150
|
+
}
|
|
136
151
|
/**
|
|
137
152
|
* @description Determines if nested blocks selection allowed in extension of type {@link BlockCompositionType.STRUCTURE}
|
|
138
153
|
*/
|
|
@@ -161,6 +176,14 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
161
176
|
getTemplate() {
|
|
162
177
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
163
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* Gets a CSS template string that contains the custom styles that apply to the block.
|
|
181
|
+
* This CSS will be used when a block is dragged into the editor and removed when the last block is deleted.
|
|
182
|
+
* @returns An CSS string.
|
|
183
|
+
*/
|
|
184
|
+
getTemplateStyles() {
|
|
185
|
+
return "";
|
|
186
|
+
}
|
|
164
187
|
/**
|
|
165
188
|
* Gets the URL or path to the icon representing this block in the editor's block panel.
|
|
166
189
|
* @returns A string representing the icon source (e.g., URL, data URI).
|
|
@@ -195,10 +218,10 @@ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
195
218
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
219
|
}
|
|
197
220
|
};
|
|
198
|
-
|
|
199
|
-
var
|
|
221
|
+
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
222
|
+
var $e = y, z = class I extends s {
|
|
200
223
|
constructor() {
|
|
201
|
-
super(
|
|
224
|
+
super(I.REQUIRED_METHODS, I);
|
|
202
225
|
}
|
|
203
226
|
/**
|
|
204
227
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -213,8 +236,8 @@ var Qe = v, W = class T extends s {
|
|
|
213
236
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
214
237
|
}
|
|
215
238
|
};
|
|
216
|
-
|
|
217
|
-
var
|
|
239
|
+
z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
240
|
+
var We = class {
|
|
218
241
|
/**
|
|
219
242
|
* Generates HTML representation for a block item
|
|
220
243
|
* @param block - The block item to generate HTML for
|
|
@@ -232,6 +255,13 @@ var fe = class {
|
|
|
232
255
|
isBlockHintVisible(e) {
|
|
233
256
|
return !0;
|
|
234
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Determines whether a draggable handle should be displayed in modules panel
|
|
260
|
+
* @returns True if the block panel should be reorderable
|
|
261
|
+
*/
|
|
262
|
+
isPanelPlacementChangeEnabled() {
|
|
263
|
+
return !0;
|
|
264
|
+
}
|
|
235
265
|
/**
|
|
236
266
|
* Gets the hint text for a block
|
|
237
267
|
* @param block - The block item to get hint for
|
|
@@ -281,7 +311,7 @@ var fe = class {
|
|
|
281
311
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
312
|
getModulesTabIconName(e) {
|
|
283
313
|
}
|
|
284
|
-
},
|
|
314
|
+
}, Z = class b extends s {
|
|
285
315
|
constructor() {
|
|
286
316
|
super(b.REQUIRED_METHODS, b);
|
|
287
317
|
}
|
|
@@ -298,85 +328,85 @@ var fe = class {
|
|
|
298
328
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
299
329
|
}
|
|
300
330
|
};
|
|
301
|
-
|
|
302
|
-
var
|
|
331
|
+
Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
332
|
+
var j = {
|
|
303
333
|
src: "src",
|
|
304
334
|
alt: "alt",
|
|
305
335
|
href: "href",
|
|
306
336
|
width: "width",
|
|
307
337
|
height: "height"
|
|
308
|
-
},
|
|
309
|
-
BLOCK_IMAGE:
|
|
310
|
-
},
|
|
311
|
-
BLOCK_BUTTON:
|
|
312
|
-
BLOCK_TEXT:
|
|
313
|
-
BLOCK_IMAGE:
|
|
314
|
-
GENERAL:
|
|
315
|
-
},
|
|
338
|
+
}, ze = {
|
|
339
|
+
BLOCK_IMAGE: j
|
|
340
|
+
}, P = "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", ae = "esd-block-menu", ne = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", le = "esd-stripe", Ee = "esd-amp-form", c = ((e) => (e.BUTTON = `.${P}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ae}`, e.HTML = `.${ne}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${le}`, e.FORM = `.${Ee}`, e))(c || {}), 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 || {}), K = /* @__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))(K || {}), F = /* @__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))(F || {}), H = /* @__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.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(H || {}), k = /* @__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))(k || {}), 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 = {
|
|
341
|
+
BLOCK_BUTTON: F,
|
|
342
|
+
BLOCK_TEXT: H,
|
|
343
|
+
BLOCK_IMAGE: k,
|
|
344
|
+
GENERAL: K
|
|
345
|
+
}, ue = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(ue || {}), ce = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Te || {}), r = {
|
|
316
346
|
name: "name",
|
|
317
347
|
disabled: "disabled"
|
|
318
|
-
},
|
|
348
|
+
}, Ie = {
|
|
319
349
|
...r,
|
|
320
350
|
caption: "caption",
|
|
321
351
|
icon: "icon"
|
|
322
|
-
},
|
|
352
|
+
}, be = {
|
|
323
353
|
...r,
|
|
324
354
|
caption: "caption"
|
|
325
|
-
},
|
|
355
|
+
}, he = {
|
|
326
356
|
...r,
|
|
327
357
|
minValue: "min-value",
|
|
328
358
|
maxValue: "max-value",
|
|
329
359
|
step: "step"
|
|
330
|
-
},
|
|
360
|
+
}, me = {
|
|
331
361
|
...r,
|
|
332
362
|
placeholder: "placeholder",
|
|
333
363
|
minDate: "min-date"
|
|
334
|
-
},
|
|
364
|
+
}, ge = {
|
|
335
365
|
...r,
|
|
336
366
|
text: "text",
|
|
337
367
|
hint: "hint"
|
|
338
|
-
},
|
|
368
|
+
}, Oe = {
|
|
339
369
|
...r,
|
|
340
370
|
type: "type"
|
|
341
|
-
},
|
|
371
|
+
}, Re = {
|
|
342
372
|
...r,
|
|
343
373
|
buttons: "buttons"
|
|
344
|
-
},
|
|
374
|
+
}, p = {
|
|
345
375
|
...r,
|
|
346
376
|
searchable: "searchable",
|
|
347
377
|
multiSelect: "multi-select",
|
|
348
378
|
placeholder: "placeholder",
|
|
349
379
|
items: "items"
|
|
350
|
-
}, Re = {
|
|
351
|
-
...k,
|
|
352
|
-
addCustomFontOption: "add-custom-font-option"
|
|
353
380
|
}, Le = {
|
|
381
|
+
...p,
|
|
382
|
+
addCustomFontOption: "add-custom-font-option"
|
|
383
|
+
}, _e = {
|
|
354
384
|
...r,
|
|
355
385
|
text: "text",
|
|
356
386
|
value: "value"
|
|
357
|
-
},
|
|
387
|
+
}, Ce = {
|
|
358
388
|
...r,
|
|
359
389
|
text: "text",
|
|
360
390
|
hint: "hint",
|
|
361
391
|
icon: "icon",
|
|
362
392
|
value: "value"
|
|
363
|
-
},
|
|
393
|
+
}, Ae = {
|
|
364
394
|
...r,
|
|
365
395
|
buttons: "buttons"
|
|
366
|
-
},
|
|
396
|
+
}, Ne = {
|
|
367
397
|
...r,
|
|
368
398
|
text: "text",
|
|
369
399
|
hint: "hint",
|
|
370
400
|
icon: "icon",
|
|
371
401
|
value: "value"
|
|
372
|
-
},
|
|
402
|
+
}, De = {
|
|
373
403
|
...r,
|
|
374
404
|
placeholder: "placeholder"
|
|
375
|
-
},
|
|
405
|
+
}, Se = {
|
|
376
406
|
...r,
|
|
377
407
|
resizable: "resizable",
|
|
378
408
|
placeholder: "placeholder"
|
|
379
|
-
},
|
|
409
|
+
}, Me = {
|
|
380
410
|
...r,
|
|
381
411
|
img: "img",
|
|
382
412
|
src: "src",
|
|
@@ -390,47 +420,51 @@ var Z = {
|
|
|
390
420
|
}, Be = {
|
|
391
421
|
...r,
|
|
392
422
|
controlId: "control-id"
|
|
393
|
-
},
|
|
423
|
+
}, xe = {
|
|
394
424
|
...r,
|
|
395
425
|
expanded: "expanded"
|
|
396
|
-
},
|
|
426
|
+
}, ve = {
|
|
397
427
|
...r,
|
|
398
428
|
icon: "icon",
|
|
399
429
|
position: "position"
|
|
400
|
-
}, ve = {
|
|
401
|
-
...r
|
|
402
430
|
}, ye = {
|
|
431
|
+
...r
|
|
432
|
+
}, Pe = {
|
|
403
433
|
...r,
|
|
404
434
|
icon: "icon"
|
|
405
435
|
}, Ue = {
|
|
406
436
|
...r
|
|
407
|
-
},
|
|
437
|
+
}, we = {
|
|
438
|
+
...r,
|
|
439
|
+
blockId: "block-id"
|
|
440
|
+
}, Ze = {
|
|
408
441
|
DEFAULT: r,
|
|
409
|
-
BUTTON:
|
|
410
|
-
CHECKBOX:
|
|
411
|
-
CHECK_BUTTONS:
|
|
442
|
+
BUTTON: Ie,
|
|
443
|
+
CHECKBOX: be,
|
|
444
|
+
CHECK_BUTTONS: Ae,
|
|
412
445
|
COLOR: r,
|
|
413
|
-
COUNTER:
|
|
414
|
-
DATEPICKER:
|
|
415
|
-
LABEL:
|
|
416
|
-
MESSAGE:
|
|
417
|
-
RADIO_BUTTONS:
|
|
418
|
-
SELECTPICKER:
|
|
419
|
-
FONT_FAMILY_SELECT:
|
|
446
|
+
COUNTER: he,
|
|
447
|
+
DATEPICKER: me,
|
|
448
|
+
LABEL: ge,
|
|
449
|
+
MESSAGE: Oe,
|
|
450
|
+
RADIO_BUTTONS: Re,
|
|
451
|
+
SELECTPICKER: p,
|
|
452
|
+
FONT_FAMILY_SELECT: Le,
|
|
420
453
|
SWITCHER: r,
|
|
421
|
-
TEXT:
|
|
422
|
-
TEXTAREA:
|
|
423
|
-
ICON:
|
|
424
|
-
CHECK_ITEM:
|
|
425
|
-
SELECT_ITEM:
|
|
426
|
-
RADIO_ITEM:
|
|
454
|
+
TEXT: De,
|
|
455
|
+
TEXTAREA: Se,
|
|
456
|
+
ICON: Me,
|
|
457
|
+
CHECK_ITEM: Ce,
|
|
458
|
+
SELECT_ITEM: _e,
|
|
459
|
+
RADIO_ITEM: Ne,
|
|
427
460
|
NESTED_CONTROL: Be,
|
|
428
|
-
EXPANDABLE:
|
|
429
|
-
ORDERABLE:
|
|
430
|
-
ORDERABLE_ITEM:
|
|
431
|
-
ORDERABLE_ICON:
|
|
432
|
-
REPEATABLE: Ue
|
|
433
|
-
|
|
461
|
+
EXPANDABLE: xe,
|
|
462
|
+
ORDERABLE: ve,
|
|
463
|
+
ORDERABLE_ITEM: ye,
|
|
464
|
+
ORDERABLE_ICON: Pe,
|
|
465
|
+
REPEATABLE: Ue,
|
|
466
|
+
DRAGGABLE_BLOCK: we
|
|
467
|
+
}, Ke = /* @__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.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e))(Ke || {}), x = class {
|
|
434
468
|
/**
|
|
435
469
|
* @description returns map of nodes parent control operates on
|
|
436
470
|
*/
|
|
@@ -461,68 +495,68 @@ var Z = {
|
|
|
461
495
|
isVisible(e) {
|
|
462
496
|
return !0;
|
|
463
497
|
}
|
|
464
|
-
}, l = class extends
|
|
498
|
+
}, l = class extends x {
|
|
465
499
|
getTargetNodes(e) {
|
|
466
|
-
const t = e.querySelectorAll(
|
|
467
|
-
return t.length ? t :
|
|
500
|
+
const t = e.querySelectorAll(c.BUTTON), a = e.asElement().hasClass(P) ? [e] : [];
|
|
501
|
+
return t.length ? t : a;
|
|
468
502
|
}
|
|
469
|
-
},
|
|
503
|
+
}, je = class extends l {
|
|
470
504
|
getParentControlId() {
|
|
471
|
-
return
|
|
505
|
+
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
472
506
|
}
|
|
473
507
|
getLabels() {
|
|
474
508
|
}
|
|
475
|
-
},
|
|
509
|
+
}, qe = class extends l {
|
|
476
510
|
getParentControlId() {
|
|
477
|
-
return
|
|
511
|
+
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
478
512
|
}
|
|
479
|
-
},
|
|
513
|
+
}, Je = class extends l {
|
|
480
514
|
getParentControlId() {
|
|
481
|
-
return
|
|
515
|
+
return n.GENERAL.BACKGROUND_COLOR;
|
|
482
516
|
}
|
|
483
|
-
},
|
|
517
|
+
}, et = class extends l {
|
|
484
518
|
getParentControlId() {
|
|
485
|
-
return
|
|
519
|
+
return n.BLOCK_BUTTON.BORDER;
|
|
486
520
|
}
|
|
487
521
|
getLabels() {
|
|
488
522
|
}
|
|
489
|
-
},
|
|
523
|
+
}, tt = class extends l {
|
|
490
524
|
getParentControlId() {
|
|
491
|
-
return
|
|
525
|
+
return n.BLOCK_BUTTON.COLOR;
|
|
492
526
|
}
|
|
493
|
-
},
|
|
527
|
+
}, rt = class extends l {
|
|
494
528
|
getParentControlId() {
|
|
495
|
-
return
|
|
529
|
+
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
496
530
|
}
|
|
497
|
-
},
|
|
531
|
+
}, at = class extends l {
|
|
498
532
|
getParentControlId() {
|
|
499
|
-
return
|
|
533
|
+
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
500
534
|
}
|
|
501
|
-
},
|
|
535
|
+
}, nt = class extends l {
|
|
502
536
|
getParentControlId() {
|
|
503
|
-
return
|
|
537
|
+
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
504
538
|
}
|
|
505
|
-
},
|
|
539
|
+
}, st = class extends l {
|
|
506
540
|
getParentControlId() {
|
|
507
|
-
return
|
|
541
|
+
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
508
542
|
}
|
|
509
|
-
},
|
|
543
|
+
}, it = class extends l {
|
|
510
544
|
getParentControlId() {
|
|
511
|
-
return
|
|
545
|
+
return n.BLOCK_BUTTON.TEXT;
|
|
512
546
|
}
|
|
513
|
-
},
|
|
547
|
+
}, lt = class extends l {
|
|
514
548
|
getParentControlId() {
|
|
515
|
-
return
|
|
549
|
+
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
516
550
|
}
|
|
517
|
-
},
|
|
551
|
+
}, Et = class extends l {
|
|
518
552
|
getParentControlId() {
|
|
519
|
-
return
|
|
553
|
+
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
520
554
|
}
|
|
521
555
|
getLabels() {
|
|
522
556
|
}
|
|
523
|
-
}, X = class
|
|
557
|
+
}, X = class h extends s {
|
|
524
558
|
constructor() {
|
|
525
|
-
super(
|
|
559
|
+
super(h.REQUIRED_METHODS, h);
|
|
526
560
|
}
|
|
527
561
|
/**
|
|
528
562
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -576,9 +610,9 @@ var Z = {
|
|
|
576
610
|
}
|
|
577
611
|
};
|
|
578
612
|
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
579
|
-
var
|
|
613
|
+
var ot = X, Fe = class m extends s {
|
|
580
614
|
constructor() {
|
|
581
|
-
super(
|
|
615
|
+
super(m.REQUIRED_METHODS, m);
|
|
582
616
|
}
|
|
583
617
|
/**
|
|
584
618
|
* Gets the unique identifier for this tab.
|
|
@@ -645,30 +679,95 @@ var it = X, we = class h extends s {
|
|
|
645
679
|
onDestroy() {
|
|
646
680
|
}
|
|
647
681
|
};
|
|
648
|
-
|
|
649
|
-
var
|
|
682
|
+
Fe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
683
|
+
var G = class extends x {
|
|
650
684
|
getTargetNodes(e) {
|
|
651
|
-
const t = e.querySelectorAll(
|
|
652
|
-
return t.length ? t :
|
|
685
|
+
const t = e.querySelectorAll(c.IMAGE), a = e.asElement().hasClass(w) ? [e] : [];
|
|
686
|
+
return t.length ? t : a;
|
|
653
687
|
}
|
|
654
|
-
},
|
|
688
|
+
}, dt = class extends G {
|
|
655
689
|
getParentControlId() {
|
|
656
|
-
return
|
|
690
|
+
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
657
691
|
}
|
|
658
|
-
},
|
|
692
|
+
}, ut = class extends G {
|
|
659
693
|
getParentControlId() {
|
|
660
|
-
return
|
|
694
|
+
return n.BLOCK_IMAGE.SIZE;
|
|
661
695
|
}
|
|
662
|
-
},
|
|
696
|
+
}, He = class g extends s {
|
|
663
697
|
constructor() {
|
|
664
698
|
super(g.REQUIRED_METHODS, g);
|
|
665
699
|
}
|
|
700
|
+
/**
|
|
701
|
+
* Gets the unique identifier for this tab.
|
|
702
|
+
* This ID is used for registration.
|
|
703
|
+
* @returns A unique string ID.
|
|
704
|
+
*/
|
|
705
|
+
getId() {
|
|
706
|
+
throw new Error("Method getId() must be implemented by the subclass");
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Gets the icon key representing this tab in the header.
|
|
710
|
+
* @returns A string representing the icon key from the IconsRegistry
|
|
711
|
+
*/
|
|
712
|
+
getIcon() {
|
|
713
|
+
throw new Error("Method getIcon() must be implemented by the subclass");
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Retrieves the index of the tab associated with the panel.
|
|
717
|
+
* The index represents the position/order of the tab in the UI.
|
|
718
|
+
*
|
|
719
|
+
* @returns {number} The index of the tab.
|
|
720
|
+
*/
|
|
721
|
+
getTabIndex() {
|
|
722
|
+
throw new Error("Method getTabIndex() must be implemented by the subclass");
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Gets the display name of the tab shown to the user in the header hint.
|
|
726
|
+
* Use `this.api.translate()` for localization.
|
|
727
|
+
* @returns The localized tab name string.
|
|
728
|
+
*/
|
|
729
|
+
getName() {
|
|
730
|
+
throw new Error("Method getName() must be implemented by the subclass");
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Determines if the tab should be available for use in the editor.
|
|
734
|
+
* Override to provide custom logic based on the editor state or configuration.
|
|
735
|
+
* @returns True if the tab is enabled, false otherwise. Defaults to true.
|
|
736
|
+
*/
|
|
737
|
+
isEnabled() {
|
|
738
|
+
return !0;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Gets the HTML template string that defines the initial structure of this tab.
|
|
742
|
+
* @returns An HTML string.
|
|
743
|
+
*/
|
|
744
|
+
getTemplate() {
|
|
745
|
+
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Optional hook called when the modules panel tab is initially rendered.
|
|
749
|
+
* Use this for setup tasks like attaching event listeners to the panel's template elements.
|
|
750
|
+
*/
|
|
751
|
+
onRender() {
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Lifecycle hook called when any part of the document template has changed.
|
|
755
|
+
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
756
|
+
*/
|
|
757
|
+
onDocumentChanged() {
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
761
|
+
var V = class O extends s {
|
|
762
|
+
constructor() {
|
|
763
|
+
super(O.REQUIRED_METHODS, O);
|
|
764
|
+
}
|
|
666
765
|
registerBlockControls(t) {
|
|
667
766
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
668
767
|
}
|
|
669
768
|
};
|
|
670
|
-
|
|
671
|
-
var
|
|
769
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
770
|
+
var ct = V, Tt = class {
|
|
672
771
|
constructor(e, t) {
|
|
673
772
|
this.tabId = e, this.controlsIds = t;
|
|
674
773
|
}
|
|
@@ -691,42 +790,42 @@ var ot = G, dt = class {
|
|
|
691
790
|
const t = this.controlsIds.indexOf(e);
|
|
692
791
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
693
792
|
}
|
|
694
|
-
}, E = class extends
|
|
793
|
+
}, E = class extends x {
|
|
695
794
|
getTargetNodes(e) {
|
|
696
|
-
const t = e.querySelectorAll(
|
|
697
|
-
return t.length ? t :
|
|
795
|
+
const t = e.querySelectorAll(c.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
|
|
796
|
+
return t.length ? t : a;
|
|
698
797
|
}
|
|
699
|
-
},
|
|
798
|
+
}, It = class extends E {
|
|
700
799
|
getParentControlId() {
|
|
701
|
-
return
|
|
800
|
+
return n.GENERAL.TEXT_ALIGN;
|
|
702
801
|
}
|
|
703
|
-
},
|
|
802
|
+
}, bt = class extends E {
|
|
704
803
|
getParentControlId() {
|
|
705
|
-
return
|
|
804
|
+
return n.GENERAL.TEXT_COLOR;
|
|
706
805
|
}
|
|
707
|
-
},
|
|
806
|
+
}, ht = class extends E {
|
|
708
807
|
getParentControlId() {
|
|
709
|
-
return
|
|
808
|
+
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
710
809
|
}
|
|
711
|
-
},
|
|
810
|
+
}, mt = class extends E {
|
|
712
811
|
getParentControlId() {
|
|
713
|
-
return
|
|
812
|
+
return n.GENERAL.TEXT_LINE_SPACING;
|
|
714
813
|
}
|
|
715
|
-
},
|
|
814
|
+
}, gt = class extends E {
|
|
716
815
|
getParentControlId() {
|
|
717
|
-
return
|
|
816
|
+
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
718
817
|
}
|
|
719
818
|
}, Ot = class extends E {
|
|
720
819
|
getParentControlId() {
|
|
721
|
-
return
|
|
820
|
+
return n.GENERAL.TEXT_SIZE;
|
|
722
821
|
}
|
|
723
|
-
},
|
|
822
|
+
}, Rt = class extends E {
|
|
724
823
|
getParentControlId() {
|
|
725
|
-
return
|
|
824
|
+
return n.GENERAL.TEXT_STYLE;
|
|
726
825
|
}
|
|
727
|
-
},
|
|
826
|
+
}, ke = class {
|
|
728
827
|
constructor(e) {
|
|
729
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
|
|
828
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], 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.modulesPanelTabs = (e == null ? void 0 : e.modulesPanelTabs) ?? [], 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);
|
|
730
829
|
}
|
|
731
830
|
getI18n() {
|
|
732
831
|
return this.i18n;
|
|
@@ -785,9 +884,12 @@ var ot = G, dt = class {
|
|
|
785
884
|
getGeneralPanelTabs() {
|
|
786
885
|
return this.generalPanelTabs;
|
|
787
886
|
}
|
|
788
|
-
|
|
887
|
+
getModulesPanelTabs() {
|
|
888
|
+
return this.modulesPanelTabs;
|
|
889
|
+
}
|
|
890
|
+
}, Lt = class {
|
|
789
891
|
constructor() {
|
|
790
|
-
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
892
|
+
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
|
|
791
893
|
}
|
|
792
894
|
withLocalization(e) {
|
|
793
895
|
return this.i18n = e, this;
|
|
@@ -852,8 +954,11 @@ var ot = G, dt = class {
|
|
|
852
954
|
addGeneralPanelTab(e) {
|
|
853
955
|
return this.generalPanelTabs.push(e), this;
|
|
854
956
|
}
|
|
957
|
+
addModulesPanelTab(e) {
|
|
958
|
+
return this.modulesPanelTabs.push(e), this;
|
|
959
|
+
}
|
|
855
960
|
build() {
|
|
856
|
-
return new
|
|
961
|
+
return new ke({
|
|
857
962
|
i18n: this.i18n,
|
|
858
963
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
859
964
|
`),
|
|
@@ -872,21 +977,22 @@ var ot = G, dt = class {
|
|
|
872
977
|
blocksPanel: this.blocksPanel,
|
|
873
978
|
iconsRegistry: this.iconsRegistry,
|
|
874
979
|
externalImageLibraryTab: this.externalImageLibraryTab,
|
|
875
|
-
generalPanelTabs: this.generalPanelTabs
|
|
980
|
+
generalPanelTabs: this.generalPanelTabs,
|
|
981
|
+
modulesPanelTabs: this.modulesPanelTabs
|
|
876
982
|
});
|
|
877
983
|
}
|
|
878
|
-
},
|
|
984
|
+
}, pe = class R extends s {
|
|
879
985
|
constructor() {
|
|
880
|
-
super(
|
|
986
|
+
super(R.REQUIRED_METHODS, R);
|
|
881
987
|
}
|
|
882
988
|
openAiAssistant(t) {
|
|
883
989
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
884
990
|
}
|
|
885
991
|
};
|
|
886
|
-
|
|
887
|
-
var
|
|
992
|
+
pe.REQUIRED_METHODS = ["openAiAssistant"];
|
|
993
|
+
var Xe = class L extends s {
|
|
888
994
|
constructor() {
|
|
889
|
-
super(
|
|
995
|
+
super(L.REQUIRED_METHODS, L);
|
|
890
996
|
}
|
|
891
997
|
/**
|
|
892
998
|
* Retrieves the name of the category.
|
|
@@ -903,7 +1009,7 @@ var He = class R extends s {
|
|
|
903
1009
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
904
1010
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
905
1011
|
*/
|
|
906
|
-
openExternalDisplayConditionsDialog(t,
|
|
1012
|
+
openExternalDisplayConditionsDialog(t, a, i) {
|
|
907
1013
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
908
1014
|
}
|
|
909
1015
|
/**
|
|
@@ -924,19 +1030,19 @@ var He = class R extends s {
|
|
|
924
1030
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
925
1031
|
}
|
|
926
1032
|
};
|
|
927
|
-
|
|
928
|
-
var
|
|
1033
|
+
Xe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
1034
|
+
var Ge = class _ extends s {
|
|
929
1035
|
constructor() {
|
|
930
|
-
super(
|
|
1036
|
+
super(_.REQUIRED_METHODS, _);
|
|
931
1037
|
}
|
|
932
|
-
openImageLibrary(t,
|
|
1038
|
+
openImageLibrary(t, a, i) {
|
|
933
1039
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
934
1040
|
}
|
|
935
1041
|
};
|
|
936
|
-
|
|
937
|
-
var
|
|
1042
|
+
Ge.REQUIRED_METHODS = ["openImageLibrary"];
|
|
1043
|
+
var Ve = class C extends s {
|
|
938
1044
|
constructor() {
|
|
939
|
-
super(
|
|
1045
|
+
super(C.REQUIRED_METHODS, C);
|
|
940
1046
|
}
|
|
941
1047
|
/**
|
|
942
1048
|
* @description Returns the translated name/label for the tab
|
|
@@ -951,39 +1057,39 @@ var Xe = class _ extends s {
|
|
|
951
1057
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
952
1058
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
953
1059
|
*/
|
|
954
|
-
openImageLibraryTab(t,
|
|
1060
|
+
openImageLibraryTab(t, a, i) {
|
|
955
1061
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
956
1062
|
}
|
|
957
1063
|
};
|
|
958
|
-
|
|
959
|
-
var
|
|
1064
|
+
Ve.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
1065
|
+
var Qe = class A extends s {
|
|
960
1066
|
constructor() {
|
|
961
|
-
super(
|
|
1067
|
+
super(A.REQUIRED_METHODS, A);
|
|
962
1068
|
}
|
|
963
|
-
openSmartElementsLibrary(t,
|
|
1069
|
+
openSmartElementsLibrary(t, a) {
|
|
964
1070
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
965
1071
|
}
|
|
966
1072
|
};
|
|
967
|
-
|
|
968
|
-
var
|
|
1073
|
+
Qe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
1074
|
+
var fe = class N extends s {
|
|
969
1075
|
constructor() {
|
|
970
|
-
super(
|
|
1076
|
+
super(N.REQUIRED_METHODS, N);
|
|
971
1077
|
}
|
|
972
|
-
openExternalVideosLibraryDialog(t,
|
|
1078
|
+
openExternalVideosLibraryDialog(t, a, i) {
|
|
973
1079
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
974
1080
|
}
|
|
975
1081
|
};
|
|
976
|
-
|
|
977
|
-
var
|
|
1082
|
+
fe.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
1083
|
+
var Q = class D extends s {
|
|
978
1084
|
constructor() {
|
|
979
|
-
super(
|
|
1085
|
+
super(D.REQUIRED_METHODS, D);
|
|
980
1086
|
}
|
|
981
1087
|
registerIconsSvg(t) {
|
|
982
1088
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
983
1089
|
}
|
|
984
1090
|
};
|
|
985
|
-
|
|
986
|
-
var
|
|
1091
|
+
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
1092
|
+
var _t = Q, Ct = class {
|
|
987
1093
|
constructor(e) {
|
|
988
1094
|
this.key = e;
|
|
989
1095
|
}
|
|
@@ -996,9 +1102,9 @@ var mt = V, Rt = class {
|
|
|
996
1102
|
params: this.params
|
|
997
1103
|
};
|
|
998
1104
|
}
|
|
999
|
-
},
|
|
1105
|
+
}, f = class S extends s {
|
|
1000
1106
|
constructor() {
|
|
1001
|
-
super(
|
|
1107
|
+
super(S.REQUIRED_METHODS, S);
|
|
1002
1108
|
}
|
|
1003
1109
|
/**
|
|
1004
1110
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -1033,7 +1139,7 @@ var mt = V, Rt = class {
|
|
|
1033
1139
|
* @param name - The name of the attribute that was updated.
|
|
1034
1140
|
* @param value - The new value of the attribute.
|
|
1035
1141
|
*/
|
|
1036
|
-
onAttributeUpdated(t,
|
|
1142
|
+
onAttributeUpdated(t, a) {
|
|
1037
1143
|
}
|
|
1038
1144
|
/**
|
|
1039
1145
|
* Gets the unique identifier for this UI element type.
|
|
@@ -1051,64 +1157,64 @@ var mt = V, Rt = class {
|
|
|
1051
1157
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
1052
1158
|
}
|
|
1053
1159
|
};
|
|
1054
|
-
|
|
1055
|
-
var
|
|
1160
|
+
f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1161
|
+
var At = f, Y = class M extends s {
|
|
1056
1162
|
constructor() {
|
|
1057
|
-
super(
|
|
1163
|
+
super(M.REQUIRED_METHODS, M);
|
|
1058
1164
|
}
|
|
1059
1165
|
registerUiElements(t) {
|
|
1060
1166
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
1061
1167
|
}
|
|
1062
1168
|
};
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1169
|
+
Y.REQUIRED_METHODS = ["registerUiElements"];
|
|
1170
|
+
var Nt = Y;
|
|
1065
1171
|
export {
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1172
|
+
$e as Block,
|
|
1173
|
+
ze as BlockAttr,
|
|
1174
|
+
W as BlockCompositionType,
|
|
1175
|
+
c as BlockSelector,
|
|
1176
|
+
oe as BlockType,
|
|
1177
|
+
We as BlocksPanel,
|
|
1178
|
+
x as BuiltInControl,
|
|
1179
|
+
n as BuiltInControlTypes,
|
|
1180
|
+
qe as ButtonAlignBuiltInControl,
|
|
1181
|
+
Je as ButtonBackgroundColorBuiltInControl,
|
|
1182
|
+
et as ButtonBorderBuiltInControl,
|
|
1183
|
+
je as ButtonBorderRadiusBuiltInControl,
|
|
1184
|
+
tt as ButtonColorBuiltInControl,
|
|
1185
|
+
F as ButtonControls,
|
|
1186
|
+
rt as ButtonFitToContainerBuiltInControl,
|
|
1187
|
+
at as ButtonFontFamilyBuiltInControl,
|
|
1188
|
+
nt as ButtonMarginsBuiltInControl,
|
|
1189
|
+
st as ButtonPaddingsBuiltInControl,
|
|
1190
|
+
it as ButtonTextBuiltInControl,
|
|
1191
|
+
lt as ButtonTextSizeBuiltInControl,
|
|
1192
|
+
Et as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1193
|
+
de as ContainerControls,
|
|
1194
|
+
ot as Control,
|
|
1195
|
+
ue as EditorStatePropertyType,
|
|
1196
|
+
ke as Extension,
|
|
1197
|
+
Lt as ExtensionBuilder,
|
|
1198
|
+
K as GeneralControls,
|
|
1199
|
+
_t as IconsRegistry,
|
|
1200
|
+
k as ImageControls,
|
|
1201
|
+
dt as ImageMarginsBuiltInControl,
|
|
1202
|
+
ut as ImageSizeBuiltInControl,
|
|
1203
|
+
Ct as ModificationDescription,
|
|
1204
|
+
ce as PreviewDeviceMode,
|
|
1205
|
+
ct as SettingsPanelRegistry,
|
|
1206
|
+
Tt as SettingsPanelTab,
|
|
1207
|
+
Te as SettingsTab,
|
|
1208
|
+
It as TextAlignBuiltInControl,
|
|
1209
|
+
bt as TextColorBuiltInControl,
|
|
1210
|
+
H as TextControls,
|
|
1211
|
+
ht as TextFontFamilyBuiltInControl,
|
|
1212
|
+
mt as TextLineSpacingBuiltInControl,
|
|
1213
|
+
gt as TextPaddingsBuiltInControl,
|
|
1108
1214
|
Ot as TextSizeBuiltInControl,
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1215
|
+
Rt as TextStyleBuiltInControl,
|
|
1216
|
+
Ze as UEAttr,
|
|
1217
|
+
At as UIElement,
|
|
1218
|
+
Nt as UIElementTagRegistry,
|
|
1219
|
+
Ke as UIElementType
|
|
1114
1220
|
};
|