@useinsider/guido 2.0.0-beta.59a25d3 → 2.0.0-beta.5c09f2c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +3 -3
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +7 -6
- package/dist/components/organisms/header/EditorActions.vue.js +5 -4
- package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +5 -5
- package/dist/composables/useActionsApi.js +33 -30
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +13 -4
- package/dist/extensions/Blocks/Recommendation/block.js +40 -6
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +64 -0
- package/dist/extensions/Blocks/Recommendation/constants/layout.js +20 -0
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +19 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +80 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +232 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
- package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +96 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +110 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +204 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +54 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +201 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +74 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +118 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +71 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +286 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +76 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +222 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -43
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +19 -3
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +13 -4
- package/dist/extensions/Blocks/Recommendation/services/configService.js +239 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +128 -72
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +41 -36
- package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +233 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +251 -0
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +69 -0
- package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +174 -0
- package/dist/extensions/Blocks/Recommendation/templates/list/template.js +73 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +121 -0
- package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +6 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +36 -0
- package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +29 -0
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +46 -0
- package/dist/extensions/Blocks/controlFactories.js +155 -121
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +424 -297
- package/dist/package.json.js +1 -1
- package/dist/services/recommendationApi.js +10 -9
- package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
- package/dist/src/composables/useActionsApi.d.ts +1 -0
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +19 -11
- package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +49 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +37 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +29 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +45 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +56 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +42 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +23 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +214 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +83 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +151 -0
- package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +17 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +20 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → grid/migration.d.ts} +11 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +39 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/migration.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +18 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +54 -0
- package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +154 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +113 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +77 -0
- package/dist/src/stores/editor.d.ts +21 -0
- package/dist/static/styles/components/wide-panel.css.js +1 -5
- package/dist/static/styles/customEditorStyle.css.js +38 -2
- package/dist/stores/editor.js +1 -0
- package/dist/utils/templatePreparation.js +17 -17
- package/package.json +3 -3
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/control.js +0 -306
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var x = 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 (
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
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
|
+
if (i && i.length > 0)
|
|
12
12
|
throw new Error(
|
|
13
|
-
`${
|
|
14
|
-
${
|
|
13
|
+
`${a.name} has validation errors:
|
|
14
|
+
${i.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
|
|
26
|
-
|
|
27
|
-
if (typeof this[
|
|
28
|
-
|
|
23
|
+
validateImplementation(t, a) {
|
|
24
|
+
var M;
|
|
25
|
+
const i = [], o = a.name, Y = Object.getPrototypeOf(this);
|
|
26
|
+
t.forEach((u) => {
|
|
27
|
+
if (typeof this[u] != "function") {
|
|
28
|
+
i.push(`Method ${u}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}),
|
|
31
|
+
Y[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" && ((M = process.env) == null ? void 0 : M.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var
|
|
35
|
+
x.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
|
+
x.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
+
var s = x, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class T extends s {
|
|
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
|
/**
|
|
@@ -195,28 +195,28 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
|
|
|
195
195
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
var
|
|
198
|
+
v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
+
var Ge = v, W = class c extends s {
|
|
200
200
|
constructor() {
|
|
201
|
-
super(
|
|
201
|
+
super(c.REQUIRED_METHODS, c);
|
|
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 b extends s {
|
|
218
218
|
constructor() {
|
|
219
|
-
super(
|
|
219
|
+
super(b.REQUIRED_METHODS, b);
|
|
220
220
|
}
|
|
221
221
|
getId() {
|
|
222
222
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -227,93 +227,147 @@ 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
239
|
width: "width"
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
},
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}, U = "esd-block-button", p = "esd-block-text", K = "esd-block-image", it = "esd-structure", ot = "esd-block-video", Et = "esd-block-social", lt = "esd-block-banner", dt = "esd-block-timer", ut = "esd-block-menu", It = "esd-block-html", Ot = "esd-block-spacer", Tt = "esd-container-frame", ct = "esd-stripe", _t = "esd-amp-form", O = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${p}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${it}`, t.VIDEO = `.${ot}`, t.SOCIAL = `.${Et}`, t.BANNER = `.${lt}`, t.TIMER = `.${dt}`, t.MENU = `.${ut}`, t.HTML = `.${It}`, t.SPACER = `.${Ot}`, t.CONTAINER = `.${Tt}`, t.STRIPE = `.${ct}`, t.FORM = `.${_t}`, t))(O || {}), ht = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ht || {}), F = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(P || {}), H = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(H || {}), Rt = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(Rt || {}), n = {
|
|
246
|
-
BLOCK_BUTTON: w,
|
|
247
|
-
BLOCK_TEXT: P,
|
|
240
|
+
}, Ve = {
|
|
241
|
+
BLOCK_IMAGE: Z
|
|
242
|
+
}, 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", ae = "esd-block-html", ne = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", Ee = "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 = `.${ae}`, e.SPACER = `.${ne}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${Ee}`, e))(I || {}), le = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(le || {}), 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 || {}), n = {
|
|
243
|
+
BLOCK_BUTTON: K,
|
|
244
|
+
BLOCK_TEXT: F,
|
|
248
245
|
BLOCK_IMAGE: H,
|
|
249
|
-
GENERAL:
|
|
250
|
-
},
|
|
246
|
+
GENERAL: w
|
|
247
|
+
}, de = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(de || {}), r = {
|
|
251
248
|
name: "name",
|
|
252
249
|
disabled: "disabled"
|
|
253
|
-
},
|
|
254
|
-
...
|
|
250
|
+
}, ue = {
|
|
251
|
+
...r,
|
|
255
252
|
caption: "caption",
|
|
256
253
|
icon: "icon"
|
|
257
|
-
},
|
|
258
|
-
...
|
|
254
|
+
}, Ie = {
|
|
255
|
+
...r,
|
|
259
256
|
caption: "caption"
|
|
260
|
-
},
|
|
261
|
-
...
|
|
257
|
+
}, Te = {
|
|
258
|
+
...r,
|
|
262
259
|
minValue: "min-value",
|
|
263
260
|
maxValue: "max-value",
|
|
264
261
|
step: "step"
|
|
265
|
-
},
|
|
266
|
-
...
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
262
|
+
}, ce = {
|
|
263
|
+
...r,
|
|
264
|
+
placeholder: "placeholder",
|
|
265
|
+
minDate: "min-date"
|
|
266
|
+
}, be = {
|
|
267
|
+
...r,
|
|
268
|
+
text: "text",
|
|
269
|
+
hint: "hint"
|
|
270
|
+
}, Oe = {
|
|
271
|
+
...r,
|
|
272
|
+
type: "type"
|
|
273
|
+
}, he = {
|
|
274
|
+
...r,
|
|
275
|
+
buttons: "buttons"
|
|
270
276
|
}, X = {
|
|
271
|
-
...
|
|
277
|
+
...r,
|
|
272
278
|
searchable: "searchable",
|
|
273
279
|
multiSelect: "multi-select",
|
|
274
280
|
placeholder: "placeholder",
|
|
275
281
|
items: "items"
|
|
276
|
-
},
|
|
277
|
-
...X
|
|
278
|
-
|
|
282
|
+
}, me = {
|
|
283
|
+
...X,
|
|
284
|
+
addCustomFontOption: "add-custom-font-option"
|
|
285
|
+
}, ge = {
|
|
286
|
+
...r,
|
|
279
287
|
text: "text",
|
|
280
288
|
value: "value"
|
|
281
|
-
},
|
|
289
|
+
}, Re = {
|
|
290
|
+
...r,
|
|
282
291
|
text: "text",
|
|
292
|
+
hint: "hint",
|
|
283
293
|
icon: "icon",
|
|
284
294
|
value: "value"
|
|
285
|
-
},
|
|
286
|
-
...
|
|
287
|
-
|
|
295
|
+
}, _e = {
|
|
296
|
+
...r,
|
|
297
|
+
buttons: "buttons"
|
|
298
|
+
}, Le = {
|
|
299
|
+
...r,
|
|
300
|
+
text: "text",
|
|
301
|
+
hint: "hint",
|
|
302
|
+
icon: "icon",
|
|
303
|
+
value: "value"
|
|
304
|
+
}, Ce = {
|
|
305
|
+
...r,
|
|
306
|
+
placeholder: "placeholder"
|
|
307
|
+
}, Ae = {
|
|
308
|
+
...r,
|
|
309
|
+
resizable: "resizable",
|
|
310
|
+
placeholder: "placeholder"
|
|
311
|
+
}, Ne = {
|
|
312
|
+
...r,
|
|
313
|
+
img: "img",
|
|
314
|
+
src: "src",
|
|
315
|
+
title: "title",
|
|
316
|
+
imageClass: "image-class",
|
|
317
|
+
hint: "hint",
|
|
318
|
+
disabled: "disabled",
|
|
319
|
+
isActive: "is-active",
|
|
320
|
+
visibility: "visibility",
|
|
321
|
+
transform: "transform"
|
|
322
|
+
}, De = {
|
|
323
|
+
...r,
|
|
288
324
|
controlId: "control-id"
|
|
289
|
-
},
|
|
290
|
-
...
|
|
325
|
+
}, Se = {
|
|
326
|
+
...r,
|
|
327
|
+
expanded: "expanded"
|
|
328
|
+
}, xe = {
|
|
329
|
+
...r,
|
|
291
330
|
icon: "icon",
|
|
292
331
|
position: "position"
|
|
293
|
-
},
|
|
294
|
-
...
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
332
|
+
}, Be = {
|
|
333
|
+
...r
|
|
334
|
+
}, Me = {
|
|
335
|
+
...r,
|
|
336
|
+
icon: "icon"
|
|
337
|
+
}, ve = {
|
|
338
|
+
...r
|
|
339
|
+
}, Qe = {
|
|
340
|
+
DEFAULT: r,
|
|
341
|
+
BUTTON: ue,
|
|
342
|
+
CHECKBOX: Ie,
|
|
343
|
+
CHECK_BUTTONS: _e,
|
|
344
|
+
COLOR: r,
|
|
345
|
+
COUNTER: Te,
|
|
346
|
+
DATEPICKER: ce,
|
|
347
|
+
LABEL: be,
|
|
348
|
+
MESSAGE: Oe,
|
|
349
|
+
RADIO_BUTTONS: he,
|
|
302
350
|
SELECTPICKER: X,
|
|
303
|
-
FONT_FAMILY_SELECT:
|
|
304
|
-
SWITCHER:
|
|
305
|
-
TEXT:
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
351
|
+
FONT_FAMILY_SELECT: me,
|
|
352
|
+
SWITCHER: r,
|
|
353
|
+
TEXT: Ce,
|
|
354
|
+
TEXTAREA: Ae,
|
|
355
|
+
ICON: Ne,
|
|
356
|
+
CHECK_ITEM: Re,
|
|
357
|
+
SELECT_ITEM: ge,
|
|
358
|
+
RADIO_ITEM: Le,
|
|
359
|
+
NESTED_CONTROL: De,
|
|
360
|
+
EXPANDABLE: Se,
|
|
361
|
+
ORDERABLE: xe,
|
|
362
|
+
ORDERABLE_ITEM: Be,
|
|
363
|
+
ORDERABLE_ICON: Me,
|
|
364
|
+
REPEATABLE: ve
|
|
365
|
+
}, ye = /* @__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))(ye || {}), B = class {
|
|
312
366
|
/**
|
|
313
367
|
* @description returns map of nodes parent control operates on
|
|
314
368
|
*/
|
|
315
|
-
getTargetNodes(
|
|
316
|
-
return [
|
|
369
|
+
getTargetNodes(e) {
|
|
370
|
+
return [e];
|
|
317
371
|
}
|
|
318
372
|
/**
|
|
319
373
|
* @description returns map of labels used by parent control UI
|
|
@@ -328,7 +382,7 @@ var st = {
|
|
|
328
382
|
/**
|
|
329
383
|
* @description returns custom modifications to be included in the parent control patch
|
|
330
384
|
*/
|
|
331
|
-
getAdditionalModifications(
|
|
385
|
+
getAdditionalModifications(e) {
|
|
332
386
|
}
|
|
333
387
|
/**
|
|
334
388
|
* Determines whether the specified HTML node is visible.
|
|
@@ -336,77 +390,77 @@ var st = {
|
|
|
336
390
|
* @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
|
|
337
391
|
* @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
|
|
338
392
|
*/
|
|
339
|
-
isVisible(
|
|
393
|
+
isVisible(e) {
|
|
340
394
|
return !0;
|
|
341
395
|
}
|
|
342
|
-
},
|
|
343
|
-
getTargetNodes(
|
|
344
|
-
const
|
|
345
|
-
return
|
|
396
|
+
}, E = class extends B {
|
|
397
|
+
getTargetNodes(e) {
|
|
398
|
+
const t = e.querySelectorAll(I.BUTTON), a = e.asElement().hasClass(y) ? [e] : [];
|
|
399
|
+
return t.length ? t : a;
|
|
346
400
|
}
|
|
347
|
-
},
|
|
401
|
+
}, fe = class extends E {
|
|
348
402
|
getParentControlId() {
|
|
349
403
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
350
404
|
}
|
|
351
405
|
getLabels() {
|
|
352
406
|
}
|
|
353
|
-
},
|
|
407
|
+
}, Ye = class extends E {
|
|
354
408
|
getParentControlId() {
|
|
355
409
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
356
410
|
}
|
|
357
|
-
},
|
|
411
|
+
}, $e = class extends E {
|
|
358
412
|
getParentControlId() {
|
|
359
413
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
360
414
|
}
|
|
361
|
-
},
|
|
415
|
+
}, We = class extends E {
|
|
362
416
|
getParentControlId() {
|
|
363
417
|
return n.BLOCK_BUTTON.BORDER;
|
|
364
418
|
}
|
|
365
419
|
getLabels() {
|
|
366
420
|
}
|
|
367
|
-
},
|
|
421
|
+
}, ze = class extends E {
|
|
368
422
|
getParentControlId() {
|
|
369
423
|
return n.BLOCK_BUTTON.COLOR;
|
|
370
424
|
}
|
|
371
|
-
},
|
|
425
|
+
}, Ze = class extends E {
|
|
372
426
|
getParentControlId() {
|
|
373
427
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
374
428
|
}
|
|
375
|
-
},
|
|
429
|
+
}, je = class extends E {
|
|
376
430
|
getParentControlId() {
|
|
377
431
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
378
432
|
}
|
|
379
|
-
},
|
|
433
|
+
}, qe = class extends E {
|
|
380
434
|
getParentControlId() {
|
|
381
435
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
382
436
|
}
|
|
383
|
-
},
|
|
437
|
+
}, Je = class extends E {
|
|
384
438
|
getParentControlId() {
|
|
385
439
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
386
440
|
}
|
|
387
|
-
},
|
|
441
|
+
}, et = class extends E {
|
|
388
442
|
getParentControlId() {
|
|
389
443
|
return n.BLOCK_BUTTON.TEXT;
|
|
390
444
|
}
|
|
391
|
-
},
|
|
445
|
+
}, tt = class extends E {
|
|
392
446
|
getParentControlId() {
|
|
393
447
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
394
448
|
}
|
|
395
|
-
},
|
|
449
|
+
}, rt = class extends E {
|
|
396
450
|
getParentControlId() {
|
|
397
451
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
398
452
|
}
|
|
399
453
|
getLabels() {
|
|
400
454
|
}
|
|
401
|
-
}, k = class
|
|
455
|
+
}, k = class O extends s {
|
|
402
456
|
constructor() {
|
|
403
|
-
super(
|
|
457
|
+
super(O.REQUIRED_METHODS, O);
|
|
404
458
|
}
|
|
405
459
|
/**
|
|
406
460
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
407
461
|
* Called on every node modification.
|
|
408
462
|
*/
|
|
409
|
-
isVisible(
|
|
463
|
+
isVisible(t) {
|
|
410
464
|
return !0;
|
|
411
465
|
}
|
|
412
466
|
/**
|
|
@@ -443,42 +497,112 @@ var st = {
|
|
|
443
497
|
* Implement this to react to changes in the block/structure and update the control's UI elements accordingly.
|
|
444
498
|
* @param node - The updated immutable HTML node representing the control's context.
|
|
445
499
|
*/
|
|
446
|
-
onTemplateNodeUpdated(
|
|
500
|
+
onTemplateNodeUpdated(t) {
|
|
447
501
|
}
|
|
448
502
|
/**
|
|
449
503
|
* Lifecycle hook called when any part of the document template has changed.
|
|
450
504
|
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
451
505
|
* @param _node - The immutable HTML node representing current node instance
|
|
452
506
|
*/
|
|
453
|
-
onDocumentChanged(
|
|
507
|
+
onDocumentChanged(t) {
|
|
454
508
|
}
|
|
455
509
|
};
|
|
456
510
|
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
457
|
-
var
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
511
|
+
var at = k, Ue = class h extends s {
|
|
512
|
+
constructor() {
|
|
513
|
+
super(h.REQUIRED_METHODS, h);
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* Gets the unique identifier for this tab.
|
|
517
|
+
* This ID is used for registration.
|
|
518
|
+
* @returns A unique string ID.
|
|
519
|
+
*/
|
|
520
|
+
getId() {
|
|
521
|
+
throw new Error("Method getId() must be implemented by the subclass");
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Gets the icon key representing this tab in the header.
|
|
525
|
+
* @returns A string representing the icon key from the IconsRegistry
|
|
526
|
+
*/
|
|
527
|
+
getIcon() {
|
|
528
|
+
throw new Error("Method getIcon() must be implemented by the subclass");
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Retrieves the index of the tab associated with the panel.
|
|
532
|
+
* The index represents the position/order of the tab in the UI.
|
|
533
|
+
*
|
|
534
|
+
* @returns {number} The index of the tab.
|
|
535
|
+
*/
|
|
536
|
+
getTabIndex() {
|
|
537
|
+
throw new Error("Method getTabIndex() must be implemented by the subclass");
|
|
461
538
|
}
|
|
462
|
-
|
|
539
|
+
/**
|
|
540
|
+
* Gets the display name of the tab shown to the user in the header hint.
|
|
541
|
+
* Use `this.api.translate()` for localization.
|
|
542
|
+
* @returns The localized tab name string.
|
|
543
|
+
*/
|
|
544
|
+
getName() {
|
|
545
|
+
throw new Error("Method getName() must be implemented by the subclass");
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* Determines if the tab should be available for use in the editor.
|
|
549
|
+
* Override to provide custom logic based on the editor state or configuration.
|
|
550
|
+
* @returns True if the tab is enabled, false otherwise. Defaults to true.
|
|
551
|
+
*/
|
|
552
|
+
isEnabled() {
|
|
553
|
+
return !0;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Gets the HTML template string that defines the initial template of general tab.
|
|
557
|
+
* @returns An HTML string.
|
|
558
|
+
*/
|
|
559
|
+
getTemplate() {
|
|
560
|
+
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Lifecycle hook called when any part of the document template has changed.
|
|
564
|
+
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
565
|
+
*/
|
|
566
|
+
onDocumentChanged() {
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Optional hook called when the general panel tab is initially rendered.
|
|
570
|
+
* Use this for setup tasks like attaching event listeners to the panel's template elements.
|
|
571
|
+
*/
|
|
572
|
+
onRender() {
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Optional cleanup hook called when the general panel tab is being destroyed.
|
|
576
|
+
*/
|
|
577
|
+
onDestroy() {
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
Ue.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
581
|
+
var p = class extends B {
|
|
582
|
+
getTargetNodes(e) {
|
|
583
|
+
const t = e.querySelectorAll(I.IMAGE), a = e.asElement().hasClass(P) ? [e] : [];
|
|
584
|
+
return t.length ? t : a;
|
|
585
|
+
}
|
|
586
|
+
}, nt = class extends p {
|
|
463
587
|
getParentControlId() {
|
|
464
588
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
465
589
|
}
|
|
466
|
-
},
|
|
590
|
+
}, st = class extends p {
|
|
467
591
|
getParentControlId() {
|
|
468
592
|
return n.BLOCK_IMAGE.SIZE;
|
|
469
593
|
}
|
|
470
|
-
},
|
|
594
|
+
}, G = class m extends s {
|
|
471
595
|
constructor() {
|
|
472
|
-
super(
|
|
596
|
+
super(m.REQUIRED_METHODS, m);
|
|
473
597
|
}
|
|
474
|
-
registerBlockControls(
|
|
598
|
+
registerBlockControls(t) {
|
|
475
599
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
476
600
|
}
|
|
477
601
|
};
|
|
478
|
-
|
|
479
|
-
var
|
|
480
|
-
constructor(
|
|
481
|
-
this.tabId =
|
|
602
|
+
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
603
|
+
var it = G, Et = class {
|
|
604
|
+
constructor(e, t) {
|
|
605
|
+
this.tabId = e, this.controlsIds = t;
|
|
482
606
|
}
|
|
483
607
|
getTabId() {
|
|
484
608
|
return this.tabId;
|
|
@@ -489,56 +613,52 @@ var se = V, ae = class {
|
|
|
489
613
|
getControlsIds() {
|
|
490
614
|
return this.controlsIds;
|
|
491
615
|
}
|
|
492
|
-
withLabel(
|
|
493
|
-
return this.label =
|
|
616
|
+
withLabel(e) {
|
|
617
|
+
return this.label = e, this;
|
|
494
618
|
}
|
|
495
|
-
addControl(
|
|
496
|
-
return
|
|
619
|
+
addControl(e, t) {
|
|
620
|
+
return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
|
|
497
621
|
}
|
|
498
|
-
deleteControl(
|
|
499
|
-
const
|
|
500
|
-
|
|
622
|
+
deleteControl(e) {
|
|
623
|
+
const t = this.controlsIds.indexOf(e);
|
|
624
|
+
t !== -1 && this.controlsIds.splice(t, 1);
|
|
501
625
|
}
|
|
502
|
-
}, l = class extends
|
|
503
|
-
getTargetNodes(
|
|
504
|
-
const
|
|
505
|
-
return
|
|
626
|
+
}, l = class extends B {
|
|
627
|
+
getTargetNodes(e) {
|
|
628
|
+
const t = e.querySelectorAll(I.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
|
|
629
|
+
return t.length ? t : a;
|
|
506
630
|
}
|
|
507
|
-
},
|
|
631
|
+
}, lt = class extends l {
|
|
508
632
|
getParentControlId() {
|
|
509
633
|
return n.GENERAL.TEXT_ALIGN;
|
|
510
634
|
}
|
|
511
|
-
},
|
|
512
|
-
getParentControlId() {
|
|
513
|
-
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
514
|
-
}
|
|
515
|
-
}, Ee = class extends l {
|
|
635
|
+
}, ot = class extends l {
|
|
516
636
|
getParentControlId() {
|
|
517
637
|
return n.GENERAL.TEXT_COLOR;
|
|
518
638
|
}
|
|
519
|
-
},
|
|
639
|
+
}, dt = class extends l {
|
|
520
640
|
getParentControlId() {
|
|
521
641
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
522
642
|
}
|
|
523
|
-
},
|
|
643
|
+
}, ut = class extends l {
|
|
524
644
|
getParentControlId() {
|
|
525
645
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
526
646
|
}
|
|
527
|
-
},
|
|
647
|
+
}, It = class extends l {
|
|
528
648
|
getParentControlId() {
|
|
529
649
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
530
650
|
}
|
|
531
|
-
},
|
|
651
|
+
}, Tt = class extends l {
|
|
532
652
|
getParentControlId() {
|
|
533
653
|
return n.GENERAL.TEXT_SIZE;
|
|
534
654
|
}
|
|
535
|
-
},
|
|
655
|
+
}, ct = class extends l {
|
|
536
656
|
getParentControlId() {
|
|
537
657
|
return n.GENERAL.TEXT_STYLE;
|
|
538
658
|
}
|
|
539
|
-
},
|
|
540
|
-
constructor(
|
|
541
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n =
|
|
659
|
+
}, Pe = class {
|
|
660
|
+
constructor(e) {
|
|
661
|
+
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);
|
|
542
662
|
}
|
|
543
663
|
getI18n() {
|
|
544
664
|
return this.i18n;
|
|
@@ -594,104 +714,111 @@ var se = V, ae = class {
|
|
|
594
714
|
getIconsRegistry() {
|
|
595
715
|
return this.iconsRegistry;
|
|
596
716
|
}
|
|
597
|
-
|
|
717
|
+
getGeneralPanelTabs() {
|
|
718
|
+
return this.generalPanelTabs;
|
|
719
|
+
}
|
|
720
|
+
}, bt = class {
|
|
598
721
|
constructor() {
|
|
599
|
-
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
722
|
+
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
600
723
|
}
|
|
601
|
-
withLocalization(
|
|
602
|
-
return this.i18n =
|
|
724
|
+
withLocalization(e) {
|
|
725
|
+
return this.i18n = e, this;
|
|
603
726
|
}
|
|
604
727
|
/**
|
|
605
728
|
* @deprecated Use addStyles() instead. This method will be removed in a future version.
|
|
606
729
|
*/
|
|
607
|
-
withStyles(
|
|
608
|
-
return this.styles = [
|
|
730
|
+
withStyles(e) {
|
|
731
|
+
return this.styles = [e], this;
|
|
609
732
|
}
|
|
610
|
-
addStyles(
|
|
611
|
-
return this.styles.push(
|
|
733
|
+
addStyles(e) {
|
|
734
|
+
return this.styles.push(e), this;
|
|
612
735
|
}
|
|
613
736
|
/**
|
|
614
737
|
* @description defines custom developer styles to use inside the editor document preview
|
|
615
738
|
*/
|
|
616
|
-
withPreviewStyles(
|
|
617
|
-
return this.previewStyles =
|
|
739
|
+
withPreviewStyles(e) {
|
|
740
|
+
return this.previewStyles = e, this;
|
|
741
|
+
}
|
|
742
|
+
addContextAction(e) {
|
|
743
|
+
return this.contextActions.push(e), this;
|
|
618
744
|
}
|
|
619
|
-
|
|
620
|
-
return this.
|
|
745
|
+
addUiElement(e) {
|
|
746
|
+
return this.uiElements.push(e), this;
|
|
621
747
|
}
|
|
622
|
-
|
|
623
|
-
return this.
|
|
748
|
+
withUiElementTagRegistry(e) {
|
|
749
|
+
return this.uiElementTagRegistry = e, this;
|
|
624
750
|
}
|
|
625
|
-
|
|
626
|
-
return this.
|
|
751
|
+
addControl(e) {
|
|
752
|
+
return this.controls.push(e), this;
|
|
627
753
|
}
|
|
628
|
-
|
|
629
|
-
return this.
|
|
754
|
+
withSettingsPanelRegistry(e) {
|
|
755
|
+
return this.settingsPanelRegistry = e, this;
|
|
630
756
|
}
|
|
631
|
-
|
|
632
|
-
return this.
|
|
757
|
+
withExternalSmartElementsLibrary(e) {
|
|
758
|
+
return this.externalSmartElementsLibrary = e, this;
|
|
633
759
|
}
|
|
634
|
-
|
|
635
|
-
return this.
|
|
760
|
+
withExternalImageLibrary(e) {
|
|
761
|
+
return this.externalImageLibrary = e, this;
|
|
636
762
|
}
|
|
637
|
-
|
|
638
|
-
return this.
|
|
763
|
+
withExternalImageLibraryTab(e) {
|
|
764
|
+
return this.externalImageLibraryTab = e, this;
|
|
639
765
|
}
|
|
640
|
-
|
|
641
|
-
return this.
|
|
766
|
+
withExternalAiAssistant(e) {
|
|
767
|
+
return this.externalAiAssistant = e, this;
|
|
642
768
|
}
|
|
643
|
-
|
|
644
|
-
return this.
|
|
769
|
+
withExternalDisplayCondition(e) {
|
|
770
|
+
return this.externalDisplayConditionsLibrary = e, this;
|
|
645
771
|
}
|
|
646
|
-
|
|
647
|
-
return this.
|
|
772
|
+
withExternalVideosLibrary(e) {
|
|
773
|
+
return this.externalVideoLibrary = e, this;
|
|
648
774
|
}
|
|
649
|
-
|
|
650
|
-
return this.
|
|
775
|
+
withBlocksPanel(e) {
|
|
776
|
+
return this.blocksPanel = e, this;
|
|
651
777
|
}
|
|
652
|
-
|
|
653
|
-
return this.
|
|
778
|
+
addBlock(e) {
|
|
779
|
+
return this.blocks.push(e), this;
|
|
654
780
|
}
|
|
655
|
-
|
|
656
|
-
return this.
|
|
781
|
+
withIconsRegistry(e) {
|
|
782
|
+
return this.iconsRegistry = e, this;
|
|
657
783
|
}
|
|
658
|
-
|
|
659
|
-
return this.
|
|
784
|
+
addGeneralPanelTab(e) {
|
|
785
|
+
return this.generalPanelTabs.push(e), this;
|
|
660
786
|
}
|
|
661
787
|
build() {
|
|
662
|
-
return new
|
|
663
|
-
this.i18n,
|
|
664
|
-
|
|
788
|
+
return new Pe({
|
|
789
|
+
i18n: this.i18n,
|
|
790
|
+
styles: this.styles.map((e) => e.trim()).join(`
|
|
665
791
|
`),
|
|
666
|
-
this.uiElements,
|
|
667
|
-
this.uiElementTagRegistry,
|
|
668
|
-
this.controls,
|
|
669
|
-
this.settingsPanelRegistry,
|
|
670
|
-
this.contextActions,
|
|
671
|
-
this.blocks,
|
|
672
|
-
this.externalSmartElementsLibrary,
|
|
673
|
-
this.externalImageLibrary,
|
|
674
|
-
this.previewStyles,
|
|
675
|
-
this.externalAiAssistant,
|
|
676
|
-
this.externalDisplayConditionsLibrary,
|
|
677
|
-
this.externalVideoLibrary,
|
|
678
|
-
this.blocksPanel,
|
|
679
|
-
this.iconsRegistry,
|
|
680
|
-
this.externalImageLibraryTab
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
792
|
+
uiElements: this.uiElements,
|
|
793
|
+
uiElementTagRegistry: this.uiElementTagRegistry,
|
|
794
|
+
controls: this.controls,
|
|
795
|
+
settingsPanelRegistry: this.settingsPanelRegistry,
|
|
796
|
+
contextActions: this.contextActions,
|
|
797
|
+
blocks: this.blocks,
|
|
798
|
+
externalSmartElementsLibrary: this.externalSmartElementsLibrary,
|
|
799
|
+
externalImageLibrary: this.externalImageLibrary,
|
|
800
|
+
previewStyles: this.previewStyles,
|
|
801
|
+
externalAiAssistant: this.externalAiAssistant,
|
|
802
|
+
externalDisplayConditionsLibrary: this.externalDisplayConditionsLibrary,
|
|
803
|
+
externalVideoLibrary: this.externalVideoLibrary,
|
|
804
|
+
blocksPanel: this.blocksPanel,
|
|
805
|
+
iconsRegistry: this.iconsRegistry,
|
|
806
|
+
externalImageLibraryTab: this.externalImageLibraryTab,
|
|
807
|
+
generalPanelTabs: this.generalPanelTabs
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
}, we = class g extends s {
|
|
684
811
|
constructor() {
|
|
685
|
-
super(
|
|
812
|
+
super(g.REQUIRED_METHODS, g);
|
|
686
813
|
}
|
|
687
|
-
openAiAssistant(
|
|
814
|
+
openAiAssistant(t) {
|
|
688
815
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
689
816
|
}
|
|
690
817
|
};
|
|
691
|
-
|
|
692
|
-
var
|
|
818
|
+
we.REQUIRED_METHODS = ["openAiAssistant"];
|
|
819
|
+
var Ke = class R extends s {
|
|
693
820
|
constructor() {
|
|
694
|
-
super(
|
|
821
|
+
super(R.REQUIRED_METHODS, R);
|
|
695
822
|
}
|
|
696
823
|
/**
|
|
697
824
|
* Retrieves the name of the category.
|
|
@@ -704,11 +831,11 @@ var Kt = class g extends a {
|
|
|
704
831
|
/**
|
|
705
832
|
* Opens a popup dialog for creating or updating a display condition.
|
|
706
833
|
*
|
|
707
|
-
* @param {DisplayCondition}
|
|
708
|
-
* @param {ExternalDisplayConditionSelectedCB}
|
|
709
|
-
* @param {() => void}
|
|
834
|
+
* @param {DisplayCondition} _currentCondition - The currently selected display condition to edit.
|
|
835
|
+
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
836
|
+
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
710
837
|
*/
|
|
711
|
-
openExternalDisplayConditionsDialog(
|
|
838
|
+
openExternalDisplayConditionsDialog(t, a, i) {
|
|
712
839
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
713
840
|
}
|
|
714
841
|
/**
|
|
@@ -729,19 +856,19 @@ var Kt = class g extends a {
|
|
|
729
856
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
730
857
|
}
|
|
731
858
|
};
|
|
732
|
-
|
|
733
|
-
var
|
|
859
|
+
Ke.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
860
|
+
var Fe = class _ extends s {
|
|
734
861
|
constructor() {
|
|
735
|
-
super(
|
|
862
|
+
super(_.REQUIRED_METHODS, _);
|
|
736
863
|
}
|
|
737
|
-
openImageLibrary(
|
|
864
|
+
openImageLibrary(t, a, i) {
|
|
738
865
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
739
866
|
}
|
|
740
867
|
};
|
|
741
|
-
|
|
742
|
-
var
|
|
868
|
+
Fe.REQUIRED_METHODS = ["openImageLibrary"];
|
|
869
|
+
var He = class L extends s {
|
|
743
870
|
constructor() {
|
|
744
|
-
super(
|
|
871
|
+
super(L.REQUIRED_METHODS, L);
|
|
745
872
|
}
|
|
746
873
|
/**
|
|
747
874
|
* @description Returns the translated name/label for the tab
|
|
@@ -754,45 +881,46 @@ var wt = class b extends a {
|
|
|
754
881
|
* @description Opens the external image library tab and provides a container for rendering
|
|
755
882
|
* @param _container - DOM element container where the external library UI should be rendered
|
|
756
883
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
884
|
+
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
757
885
|
*/
|
|
758
|
-
openImageLibraryTab(
|
|
886
|
+
openImageLibraryTab(t, a, i) {
|
|
759
887
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
760
888
|
}
|
|
761
889
|
};
|
|
762
|
-
|
|
763
|
-
var
|
|
890
|
+
He.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
891
|
+
var Xe = class C extends s {
|
|
764
892
|
constructor() {
|
|
765
|
-
super(
|
|
893
|
+
super(C.REQUIRED_METHODS, C);
|
|
766
894
|
}
|
|
767
|
-
openSmartElementsLibrary(
|
|
895
|
+
openSmartElementsLibrary(t, a) {
|
|
768
896
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
769
897
|
}
|
|
770
898
|
};
|
|
771
|
-
|
|
772
|
-
var
|
|
899
|
+
Xe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
900
|
+
var ke = class A extends s {
|
|
773
901
|
constructor() {
|
|
774
902
|
super(A.REQUIRED_METHODS, A);
|
|
775
903
|
}
|
|
776
|
-
openExternalVideosLibraryDialog(
|
|
904
|
+
openExternalVideosLibraryDialog(t, a, i) {
|
|
777
905
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
778
906
|
}
|
|
779
907
|
};
|
|
780
|
-
|
|
781
|
-
var
|
|
908
|
+
ke.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
909
|
+
var V = class N extends s {
|
|
782
910
|
constructor() {
|
|
783
|
-
super(
|
|
911
|
+
super(N.REQUIRED_METHODS, N);
|
|
784
912
|
}
|
|
785
|
-
registerIconsSvg(
|
|
913
|
+
registerIconsSvg(t) {
|
|
786
914
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
787
915
|
}
|
|
788
916
|
};
|
|
789
|
-
|
|
790
|
-
var
|
|
791
|
-
constructor(
|
|
792
|
-
this.key =
|
|
917
|
+
V.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
918
|
+
var Ot = V, ht = class {
|
|
919
|
+
constructor(e) {
|
|
920
|
+
this.key = e;
|
|
793
921
|
}
|
|
794
|
-
withParams(
|
|
795
|
-
return this.params =
|
|
922
|
+
withParams(e) {
|
|
923
|
+
return this.params = e, this;
|
|
796
924
|
}
|
|
797
925
|
getValue() {
|
|
798
926
|
return {
|
|
@@ -800,15 +928,15 @@ var ce = Q, _e = class {
|
|
|
800
928
|
params: this.params
|
|
801
929
|
};
|
|
802
930
|
}
|
|
803
|
-
},
|
|
931
|
+
}, Q = class D extends s {
|
|
804
932
|
constructor() {
|
|
805
|
-
super(
|
|
933
|
+
super(D.REQUIRED_METHODS, D);
|
|
806
934
|
}
|
|
807
935
|
/**
|
|
808
936
|
* Called when the UI element should render its content into the provided container.
|
|
809
937
|
* @param container - The HTMLElement where the UI element should be rendered.
|
|
810
938
|
*/
|
|
811
|
-
onRender(
|
|
939
|
+
onRender(t) {
|
|
812
940
|
throw new Error("Method onRender() must be implemented by the subclass");
|
|
813
941
|
}
|
|
814
942
|
/**
|
|
@@ -829,7 +957,7 @@ var ce = Q, _e = class {
|
|
|
829
957
|
* Implement this if the element manages a state or value and needs to be updated externally.
|
|
830
958
|
* @param value - The new value to set.
|
|
831
959
|
*/
|
|
832
|
-
setValue(
|
|
960
|
+
setValue(t) {
|
|
833
961
|
}
|
|
834
962
|
/**
|
|
835
963
|
* @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
|
|
@@ -837,7 +965,7 @@ var ce = Q, _e = class {
|
|
|
837
965
|
* @param name - The name of the attribute that was updated.
|
|
838
966
|
* @param value - The new value of the attribute.
|
|
839
967
|
*/
|
|
840
|
-
onAttributeUpdated(
|
|
968
|
+
onAttributeUpdated(t, a) {
|
|
841
969
|
}
|
|
842
970
|
/**
|
|
843
971
|
* Gets the unique identifier for this UI element type.
|
|
@@ -855,62 +983,61 @@ var ce = Q, _e = class {
|
|
|
855
983
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
856
984
|
}
|
|
857
985
|
};
|
|
858
|
-
|
|
859
|
-
var
|
|
986
|
+
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
987
|
+
var mt = Q, f = class S extends s {
|
|
860
988
|
constructor() {
|
|
861
|
-
super(
|
|
989
|
+
super(S.REQUIRED_METHODS, S);
|
|
862
990
|
}
|
|
863
|
-
registerUiElements(
|
|
991
|
+
registerUiElements(t) {
|
|
864
992
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
865
993
|
}
|
|
866
994
|
};
|
|
867
|
-
|
|
868
|
-
var
|
|
995
|
+
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
996
|
+
var gt = f;
|
|
869
997
|
export {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
998
|
+
Ge as Block,
|
|
999
|
+
Ve as BlockAttr,
|
|
1000
|
+
$ as BlockCompositionType,
|
|
1001
|
+
I as BlockSelector,
|
|
1002
|
+
le as BlockType,
|
|
1003
|
+
B as BuiltInControl,
|
|
876
1004
|
n as BuiltInControlTypes,
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
1005
|
+
Ye as ButtonAlignBuiltInControl,
|
|
1006
|
+
$e as ButtonBackgroundColorBuiltInControl,
|
|
1007
|
+
We as ButtonBorderBuiltInControl,
|
|
1008
|
+
fe as ButtonBorderRadiusBuiltInControl,
|
|
1009
|
+
ze as ButtonColorBuiltInControl,
|
|
1010
|
+
K as ButtonControls,
|
|
1011
|
+
Ze as ButtonFitToContainerBuiltInControl,
|
|
1012
|
+
je as ButtonFontFamilyBuiltInControl,
|
|
1013
|
+
qe as ButtonMarginsBuiltInControl,
|
|
1014
|
+
Je as ButtonPaddingsBuiltInControl,
|
|
1015
|
+
et as ButtonTextBuiltInControl,
|
|
1016
|
+
tt as ButtonTextSizeBuiltInControl,
|
|
1017
|
+
rt as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1018
|
+
oe as ContainerControls,
|
|
1019
|
+
at as Control,
|
|
1020
|
+
Pe as Extension,
|
|
1021
|
+
bt as ExtensionBuilder,
|
|
1022
|
+
w as GeneralControls,
|
|
1023
|
+
Ot as IconsRegistry,
|
|
896
1024
|
H as ImageControls,
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
yt as UIElementType
|
|
1025
|
+
nt as ImageMarginsBuiltInControl,
|
|
1026
|
+
st as ImageSizeBuiltInControl,
|
|
1027
|
+
ht as ModificationDescription,
|
|
1028
|
+
it as SettingsPanelRegistry,
|
|
1029
|
+
Et as SettingsPanelTab,
|
|
1030
|
+
de as SettingsTab,
|
|
1031
|
+
lt as TextAlignBuiltInControl,
|
|
1032
|
+
ot as TextColorBuiltInControl,
|
|
1033
|
+
F as TextControls,
|
|
1034
|
+
dt as TextFontFamilyBuiltInControl,
|
|
1035
|
+
ut as TextLineSpacingBuiltInControl,
|
|
1036
|
+
It as TextPaddingsBuiltInControl,
|
|
1037
|
+
Tt as TextSizeBuiltInControl,
|
|
1038
|
+
ct as TextStyleBuiltInControl,
|
|
1039
|
+
Qe as UEAttr,
|
|
1040
|
+
mt as UIElement,
|
|
1041
|
+
gt as UIElementTagRegistry,
|
|
1042
|
+
ye as UIElementType
|
|
916
1043
|
};
|