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