@useinsider/guido 3.2.0-beta.b277bd3 → 3.2.0-beta.bbb580a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +8 -10
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +71 -35
- package/dist/enums/date.js +3 -3
- package/dist/enums/extensions/recommendationBlock.js +28 -27
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +6 -5
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +235 -258
- package/dist/package.json.js +1 -1
- package/dist/src/enums/date.d.ts +1 -1
- package/dist/src/enums/extensions/recommendationBlock.d.ts +1 -0
- package/dist/static/templates/empty/style.css.js +1 -0
- package/package.json +3 -3
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "./FilterItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import r from "../../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var i = function() {
|
|
5
5
|
var a = this, e = a._self._c, t = a._self._setupProxy;
|
|
6
6
|
return e("div", { staticClass: "d-f f-d-c w-1 gap-16", attrs: { "data-filter-group": a.filter.filterGroup, "data-filter-number": a.filter.filterNumber } }, [e("div", { staticClass: "d-f a-i-c j-c-s-b pt-4", class: { "bor-t-s-s bor-t-w-1 bor-t-c-50": a.index === 0 } }, [e("p", [a._v(" " + a._s(t.trans("newsletter.filter")) + " " + a._s(a.index + 1) + " ")]), e(t.InButtonV2, { attrs: { id: "guido__delete-filter-group-button", "left-icon": "line-delete", styling: "text", type: "danger", "label-text-status": !1 }, on: { click: function(s) {
|
|
7
7
|
return t.emit("delete-filter", t.props.filter);
|
|
8
|
-
} } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [e(t.InSelect, { staticClass: "w-2", attrs: { "disabled-status": "", "search-status": "", "button-status": !1, "label-text": t.trans("action-builder.filter-type"), options: t.filterTypeOptions, value: [t.filterTypeOptions[0]] } }), e(t.InSelect, { staticClass: "w-2", attrs: { id: "filter-item-input--attribute-type", "search-status": "", "static-position": "bottom right", "button-status": !1, "label-text": t.trans("condition.attribute"), options: t.store.getFilterList, state: t.getFieldState("attribute"), value: [t.selectedAttributeType] }, on: { select: t.handleAttributeChange } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [t.isBooleanAttribute ? e(t.InSelect, { staticClass: "w-2", attrs: { "button-status": !1, "label-text": t.trans("condition.operator"), options: t.booleanValueOptions, state: t.getFieldState("value"), value: [t.selectedBooleanValue] }, on: { select: t.handleBooleanValueChange } }) : [e(t.InSelect, { staticClass: "w-2", attrs: { "button-status": !1, "label-text": t.trans("condition.operator"), options: t.getOperatorOptions(t.selectedAttributeType.type), state: t.getFieldState("operator"), value: [t.selectedOperatorType] }, on: { select: function(s) {
|
|
9
|
-
return t.updateFilter({ text: "operator", value: s.value });
|
|
10
|
-
} } }), e(t.InBasicTextInput, { staticClass: "w-2", attrs: { id: "filter-item-input--value", name: "imageUrl", "character-counter-status": !1, "label-text": t.trans("condition.value"), "max-character-length": 25, "placeholder-text": t.trans("condition.enter-value-placeholder"), "state-message": t.valueErrorMessage, states: t.getFieldState("value"), "tooltip-status": !1, type: t.valueInputType, value: decodeURIComponent(t.props.filter.value) }, on: { input: function(s) {
|
|
8
|
+
} } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [e(t.InSelect, { staticClass: "w-2", attrs: { "disabled-status": "", "search-status": "", "button-status": !1, "label-text": t.trans("action-builder.filter-type"), options: t.filterTypeOptions, value: [t.filterTypeOptions[0]] } }), e(t.InSelect, { staticClass: "w-2", attrs: { id: "filter-item-input--attribute-type", "search-status": "", "static-position": "bottom right", "button-status": !1, "label-text": t.trans("condition.attribute"), options: t.store.getFilterList, state: t.getFieldState("attribute"), value: [t.selectedAttributeType] }, on: { select: t.handleAttributeChange } })], 1), e("div", { staticClass: "w-1 d-f a-i-s j-c-s-b gap-16" }, [t.isBooleanAttribute ? e(t.InSelect, { staticClass: "w-2", attrs: { "button-status": !1, "label-text": t.trans("condition.operator"), options: t.booleanValueOptions, state: t.getFieldState("value"), value: [t.selectedBooleanValue] }, on: { select: t.handleBooleanValueChange } }) : [e(t.InSelect, { staticClass: "w-2", attrs: { "button-status": !1, "label-text": t.trans("condition.operator"), options: t.getOperatorOptions(t.selectedAttributeType.type), state: t.getFieldState("operator"), value: [t.selectedOperatorType] }, on: { select: t.handleOperatorChange } }), t.isAnyOfOperator ? e(t.InTags, { staticClass: "w-2", attrs: { "allow-bulk-paste": "", validate: "text", "allow-duplicates": !1, invalid: t.invalidFields.has("value"), "invalid-message": t.valueErrorMessage, label: t.trans("condition.value"), placeholder: t.trans("condition.enter-value-placeholder"), value: t.tagValues }, on: { input: t.onTagsInput } }) : t.isDateAttribute ? e(t.InDatePickerV2, { staticClass: "w-2", attrs: { id: "filter-item-input--value", "single-date-picker-status": "", name: "filter-item-input--value", "label-text": t.trans("condition.value"), locale: t.datePickerLocale, "placeholder-text": t.trans("condition.enter-value-placeholder"), state: t.getFieldState("value"), "state-message": t.valueErrorMessage, value: t.datePickerValue }, on: { apply: t.onDatePickerApply } }) : e(t.InBasicTextInput, { staticClass: "w-2", attrs: { id: "filter-item-input--value", name: "imageUrl", "character-counter-status": !1, "label-text": t.trans("condition.value"), "max-character-length": 25, "placeholder-text": t.trans("condition.enter-value-placeholder"), "state-message": t.valueErrorMessage, states: t.getFieldState("value"), "tooltip-status": !1, type: t.valueInputType, value: decodeURIComponent(t.props.filter.value) }, on: { input: function(s) {
|
|
11
9
|
t.updateFilter({ text: "value", value: encodeURIComponent(s) });
|
|
12
10
|
} } })]], 2), t.props.hasLogicAdapter ? e("div", { staticClass: "w-1 d-f a-i-c j-c-c p-r bor-b-s-s bor-b-w-1 bor-b-c-50 mt-4" }, [e(t.LogicAdapter, { staticClass: "p-a", attrs: { logic: t.props.filter.innerGroupOperator }, on: { change: function(s) {
|
|
13
11
|
return t.updateFilter({ text: "innerGroupOperator", value: s });
|
|
14
12
|
} } })], 1) : a._e()]);
|
|
15
|
-
},
|
|
16
|
-
|
|
13
|
+
}, n = [], o = /* @__PURE__ */ r(
|
|
14
|
+
l,
|
|
17
15
|
i,
|
|
18
|
-
|
|
16
|
+
n,
|
|
19
17
|
!1,
|
|
20
18
|
null,
|
|
21
|
-
"
|
|
19
|
+
"73d5d4a4"
|
|
22
20
|
);
|
|
23
|
-
const f =
|
|
21
|
+
const f = o.exports;
|
|
24
22
|
export {
|
|
25
23
|
f as default
|
|
26
24
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTranslations as
|
|
3
|
-
import { getOperatorOptions as
|
|
4
|
-
import { useRecommendationExtensionStore as
|
|
5
|
-
import { getInvalidFilterFields as
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
1
|
+
import { defineComponent as R, computed as r } from "vue";
|
|
2
|
+
import { useTranslations as U } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import { getOperatorOptions as d, OP_ANY_OF as f } from "../../../../enums/extensions/recommendationBlock.js";
|
|
4
|
+
import { useRecommendationExtensionStore as N } from "../../../../extensions/Blocks/Recommendation/store/recommendation.js";
|
|
5
|
+
import { getInvalidFilterFields as E } from "../../../../extensions/Blocks/Recommendation/validation/filterSchema.js";
|
|
6
|
+
import { locale as j } from "../../../../utils/dateUtil.js";
|
|
7
|
+
import { InTags as w, InButtonV2 as M, InSelect as Y, InDatePickerV2 as q, InBasicTextInput as z } from "@useinsider/design-system-vue";
|
|
8
|
+
import G from "./LogicAdapter.vue.js";
|
|
9
|
+
import { useDebounceFn as H } from "../../../../node_modules/@vueuse/shared/index.js";
|
|
10
|
+
const ne = /* @__PURE__ */ R({
|
|
10
11
|
__name: "FilterItem",
|
|
11
12
|
props: {
|
|
12
13
|
filter: null,
|
|
@@ -15,55 +16,90 @@ const K = /* @__PURE__ */ _({
|
|
|
15
16
|
submitted: { type: Boolean }
|
|
16
17
|
},
|
|
17
18
|
emits: ["delete-filter"],
|
|
18
|
-
setup(
|
|
19
|
-
const t =
|
|
19
|
+
setup(g, { emit: I }) {
|
|
20
|
+
const t = g, s = U(), n = N(), O = [
|
|
20
21
|
{
|
|
21
|
-
text:
|
|
22
|
+
text: s("email-editor.standard-filter"),
|
|
22
23
|
value: "standardFilter"
|
|
23
24
|
}
|
|
24
|
-
],
|
|
25
|
+
], u = [
|
|
25
26
|
{ text: "True", value: "true" },
|
|
26
27
|
{ text: "False", value: "false" }
|
|
27
|
-
],
|
|
28
|
+
], m = r(() => t.filter.attribute || ""), i = r(() => n.getFilterList.find((e) => e.value === m.value) || { text: "", value: "", type: "" }), h = r(
|
|
28
29
|
() => {
|
|
29
30
|
var e;
|
|
30
|
-
return ((e =
|
|
31
|
+
return ((e = i.value) == null ? void 0 : e.type) === "Boolean";
|
|
31
32
|
}
|
|
32
|
-
),
|
|
33
|
+
), T = r(() => {
|
|
33
34
|
var e;
|
|
34
|
-
return
|
|
35
|
-
}),
|
|
36
|
-
() =>
|
|
37
|
-
),
|
|
38
|
-
() =>
|
|
39
|
-
),
|
|
35
|
+
return d((e = i.value) == null ? void 0 : e.type).find((o) => o.value === t.filter.operator);
|
|
36
|
+
}), b = r(
|
|
37
|
+
() => u.find((e) => e.value === t.filter.value) || u[0]
|
|
38
|
+
), p = r(() => t.submitted ? E(t.filter) : /* @__PURE__ */ new Set()), A = (e) => p.value.has(e) ? "error" : "default", B = r(
|
|
39
|
+
() => p.value.has("value") ? s("action-builder.filter-empty-value-error") : ""
|
|
40
|
+
), v = r(
|
|
40
41
|
() => {
|
|
41
42
|
var e;
|
|
42
|
-
return ((e =
|
|
43
|
+
return ((e = i.value) == null ? void 0 : e.type) === "Number";
|
|
43
44
|
}
|
|
44
|
-
), x =
|
|
45
|
-
|
|
45
|
+
), x = r(() => v.value ? "number" : "text"), C = r(
|
|
46
|
+
() => {
|
|
47
|
+
var e;
|
|
48
|
+
return ((e = i.value) == null ? void 0 : e.type) === "Date";
|
|
49
|
+
}
|
|
50
|
+
), D = r(() => t.filter.operator === f), _ = r(
|
|
51
|
+
() => decodeURIComponent(t.filter.value).split(",").filter(Boolean)
|
|
52
|
+
), k = H((e) => {
|
|
53
|
+
n.updateFilter({
|
|
46
54
|
...t.filter,
|
|
47
55
|
[e.text]: e.value
|
|
48
56
|
});
|
|
49
|
-
}, 500)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
a.updateFilter({
|
|
57
|
+
}, 500), P = (e) => {
|
|
58
|
+
const o = n.getFilterList.find((c) => c.value === e.value), l = (o == null ? void 0 : o.type) === "Boolean", [a] = d(o == null ? void 0 : o.type);
|
|
59
|
+
n.updateFilter({
|
|
53
60
|
...t.filter,
|
|
54
61
|
attribute: e.value,
|
|
55
|
-
operator:
|
|
56
|
-
value:
|
|
62
|
+
operator: l ? "=" : (a == null ? void 0 : a.value) ?? "",
|
|
63
|
+
value: l ? "true" : ""
|
|
57
64
|
});
|
|
58
|
-
},
|
|
59
|
-
|
|
65
|
+
}, V = (e) => {
|
|
66
|
+
n.updateFilter({
|
|
60
67
|
...t.filter,
|
|
61
68
|
operator: "=",
|
|
62
69
|
value: e.value
|
|
63
70
|
});
|
|
64
|
-
},
|
|
71
|
+
}, S = (e) => {
|
|
72
|
+
const o = e.value;
|
|
73
|
+
if (o === t.filter.operator)
|
|
74
|
+
return;
|
|
75
|
+
const c = t.filter.operator === f !== (o === f);
|
|
76
|
+
n.updateFilter({
|
|
77
|
+
...t.filter,
|
|
78
|
+
operator: o,
|
|
79
|
+
value: c ? "" : t.filter.value
|
|
80
|
+
});
|
|
81
|
+
}, $ = j(), y = (e) => {
|
|
82
|
+
const [o, l, a] = e.split("-");
|
|
83
|
+
return !o || !l || !a ? "" : `${l}/${a}/${o}`;
|
|
84
|
+
}, F = (e) => {
|
|
85
|
+
const [o, l, a] = e.split("/");
|
|
86
|
+
return !a || !o || !l ? "" : `${a}-${o.padStart(2, "0")}-${l.padStart(2, "0")}`;
|
|
87
|
+
}, L = r(
|
|
88
|
+
() => y(decodeURIComponent(t.filter.value))
|
|
89
|
+
);
|
|
90
|
+
return { __sfc: !0, trans: s, store: n, props: t, filterTypeOptions: O, booleanValueOptions: u, attributeType: m, selectedAttributeType: i, isBooleanAttribute: h, selectedOperatorType: T, selectedBooleanValue: b, emit: I, invalidFields: p, getFieldState: A, valueErrorMessage: B, isNumericAttribute: v, valueInputType: x, isDateAttribute: C, isAnyOfOperator: D, tagValues: _, updateFilter: k, handleAttributeChange: P, handleBooleanValueChange: V, handleOperatorChange: S, datePickerLocale: $, isoToPickerDate: y, pickerDateToIso: F, datePickerValue: L, onDatePickerApply: (e) => {
|
|
91
|
+
n.updateFilter({
|
|
92
|
+
...t.filter,
|
|
93
|
+
value: encodeURIComponent(F(e))
|
|
94
|
+
});
|
|
95
|
+
}, onTagsInput: (e) => {
|
|
96
|
+
n.updateFilter({
|
|
97
|
+
...t.filter,
|
|
98
|
+
value: encodeURIComponent(e.join(","))
|
|
99
|
+
});
|
|
100
|
+
}, getOperatorOptions: d, InBasicTextInput: z, InDatePickerV2: q, InSelect: Y, InButtonV2: M, InTags: w, LogicAdapter: G };
|
|
65
101
|
}
|
|
66
102
|
});
|
|
67
103
|
export {
|
|
68
|
-
|
|
104
|
+
ne as default
|
|
69
105
|
};
|
package/dist/enums/date.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const i = {
|
|
2
2
|
RECOMMENDATION_API_URL: "https://recommendationv2.api.useinsider.com"
|
|
3
|
-
},
|
|
3
|
+
}, u = {
|
|
4
4
|
CLIENT_ID: "clientId"
|
|
5
|
-
},
|
|
5
|
+
}, l = [
|
|
6
6
|
{ id: 11, key: "similarViewed", name: "Viewed Together", path: "viewed-together" },
|
|
7
7
|
{ id: 12, key: "similarBought", name: "Purchased Together", path: "purchased-together" },
|
|
8
8
|
{ id: 13, key: "userBased", name: "User Based", path: "user-based" },
|
|
@@ -13,71 +13,72 @@ const s = {
|
|
|
13
13
|
{ id: 46, key: "mostValuableOfPartner", name: "Most Valuable Products", path: "most-valuable" },
|
|
14
14
|
{ id: 61, key: "mostPopular", name: "Most Popular Items", path: "most-popular" },
|
|
15
15
|
{ id: 62, key: "mostPurchased", name: "Top Sellers", path: "top-sellers" }
|
|
16
|
-
],
|
|
16
|
+
], c = ["discount", "omnibus_price", "omnibus_discount", "price", "original_price"], d = [
|
|
17
17
|
{ text: "before the amount", value: "0" },
|
|
18
18
|
{ text: "after the amount", value: "1" }
|
|
19
|
-
],
|
|
19
|
+
], p = [
|
|
20
20
|
{ text: "dot(.)", value: "." },
|
|
21
21
|
{ text: "comma(,)", value: "," }
|
|
22
|
-
],
|
|
22
|
+
], m = [
|
|
23
23
|
{ text: "0", value: "0" },
|
|
24
24
|
{ text: "1", value: "1" },
|
|
25
25
|
{ text: "2", value: "2" },
|
|
26
26
|
{ text: "3", value: "3" },
|
|
27
27
|
{ text: "4", value: "4" },
|
|
28
28
|
{ text: "5", value: "5" }
|
|
29
|
-
], e = [
|
|
29
|
+
], a = "||", e = [
|
|
30
30
|
{ text: "is exactly", value: "=" },
|
|
31
31
|
{ text: "contains", value: "~" },
|
|
32
32
|
{ text: "does not contain", value: "!~" },
|
|
33
|
-
{ text: "any of", value:
|
|
34
|
-
],
|
|
33
|
+
{ text: "any of", value: a }
|
|
34
|
+
], o = [
|
|
35
35
|
{ text: "is exactly", value: "=" },
|
|
36
36
|
{ text: "is not exactly", value: "!==" },
|
|
37
37
|
{ text: "contains", value: "~" },
|
|
38
38
|
{ text: "does not contain", value: "!~" },
|
|
39
|
-
{ text: "any of", value:
|
|
39
|
+
{ text: "any of", value: a }
|
|
40
40
|
], r = [
|
|
41
41
|
{ text: "is equal to", value: "=" },
|
|
42
42
|
{ text: "is greater than", value: ">" },
|
|
43
43
|
{ text: "is less than", value: "<" }
|
|
44
|
-
],
|
|
44
|
+
], n = [
|
|
45
45
|
{ text: "is equal to", value: "=" },
|
|
46
46
|
{ text: "after", value: ">" },
|
|
47
47
|
{ text: "before", value: "<" }
|
|
48
|
-
],
|
|
48
|
+
], s = [
|
|
49
49
|
{ text: "true", value: "==" },
|
|
50
50
|
{ text: "false", value: "!=" }
|
|
51
|
-
],
|
|
51
|
+
], v = (t) => {
|
|
52
52
|
if (!t)
|
|
53
53
|
return e;
|
|
54
54
|
switch (t) {
|
|
55
55
|
case "Boolean":
|
|
56
|
-
return
|
|
56
|
+
return s;
|
|
57
57
|
case "Date":
|
|
58
|
-
return
|
|
58
|
+
return n;
|
|
59
59
|
case "Number":
|
|
60
60
|
return r;
|
|
61
61
|
case "String":
|
|
62
62
|
return e;
|
|
63
63
|
case "Strings":
|
|
64
|
-
return
|
|
64
|
+
return o;
|
|
65
65
|
default:
|
|
66
66
|
return e;
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
u as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
d as
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
70
|
+
a as OP_ANY_OF,
|
|
71
|
+
c as PriceAttributes,
|
|
72
|
+
u as QUERY_PARAMS,
|
|
73
|
+
l as RecommendationFeedSourceMaps,
|
|
74
|
+
i as URLS,
|
|
75
|
+
m as currencyDecimalCounts,
|
|
76
|
+
d as currencyLocationMaps,
|
|
77
|
+
p as currencyOperators,
|
|
78
|
+
v as getOperatorOptions,
|
|
79
|
+
o as operatorOptionsForArrayOfStrings,
|
|
80
|
+
s as operatorOptionsForBooleans,
|
|
81
|
+
n as operatorOptionsForDates,
|
|
81
82
|
r as operatorOptionsForNumbers,
|
|
82
83
|
e as operatorOptionsForStrings
|
|
83
84
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { OP_ANY_OF as l } from "../../../../enums/extensions/recommendationBlock.js";
|
|
2
|
+
function m(t) {
|
|
2
3
|
if (t.length === 0)
|
|
3
4
|
return "";
|
|
4
5
|
const o = t.sort((r, e) => r.filterNumber - e.filterNumber), u = o.map((r) => {
|
|
5
|
-
const e = r.operator ===
|
|
6
|
+
const e = r.operator === l, a = e ? "=" : r.operator, c = e ? decodeURIComponent(r.value).split(",").join(l) : r.value;
|
|
6
7
|
return `[${r.attribute}][${a}][${c}]`;
|
|
7
8
|
}), [s, ...p] = u;
|
|
8
9
|
let n = s;
|
|
@@ -12,12 +13,12 @@ function l(t) {
|
|
|
12
13
|
}
|
|
13
14
|
return `(${n})`;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
+
function y(t) {
|
|
16
17
|
if (!t || t.length === 0)
|
|
17
18
|
return "";
|
|
18
19
|
const o = t.reduce((r, e) => (r[e.filterGroup] || (r[e.filterGroup] = []), r[e.filterGroup].push(e), r), {}), u = Object.keys(o).map(Number).sort((r, e) => r - e), s = u.map((r) => {
|
|
19
20
|
const e = o[r];
|
|
20
|
-
return
|
|
21
|
+
return m(e);
|
|
21
22
|
}), [p, ...n] = s;
|
|
22
23
|
let i = p;
|
|
23
24
|
for (let r = 0; r < n.length; r++) {
|
|
@@ -27,5 +28,5 @@ function G(t) {
|
|
|
27
28
|
return i.trim();
|
|
28
29
|
}
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
y as generateCompleteFilterQuery
|
|
31
32
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-
|
|
1
|
+
.gap-16[data-v-73d5d4a4],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-2cb418af] .in-progress-wrapper__progress p span:last-child{display:none!important}[data-v-2cb418af] .in-progress-description-status{display:none!important}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.editor-actions[data-v-4e2a4adb]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-25780af6]{--ribbon-offset: 0px;position:relative;width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__container[data-v-25780af6]{width:100%;height:calc(100vh - 128px - var(--ribbon-offset))}.guido-editor__no-header[data-v-25780af6]{height:calc(100vh - 75px - var(--ribbon-offset))}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-29b9af29] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-d073b1dc] .vueperslides__bullets{pointer-events:none!important}[data-v-d073b1dc] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -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(t,
|
|
8
|
-
if (
|
|
9
|
-
d.validatedClasses.has(
|
|
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,16 +20,16 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
20
20
|
* Validates that all required methods are properly implemented in the subclass.
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
|
-
validateImplementation(t,
|
|
24
|
-
var
|
|
25
|
-
const
|
|
23
|
+
validateImplementation(t, a) {
|
|
24
|
+
var v;
|
|
25
|
+
const i = [], o = a.name, $ = Object.getPrototypeOf(this);
|
|
26
26
|
t.forEach((u) => {
|
|
27
27
|
if (typeof this[u] != "function") {
|
|
28
|
-
|
|
28
|
+
i.push(`Method ${u}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}), d.validatedClasses.add(
|
|
31
|
+
$[u] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((v = process.env) == null ? void 0 : v.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Lifecycle method for cleaning up resources (e.g., removing DOM artifacts from document.body).
|
|
@@ -39,9 +39,9 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
39
39
|
destroy() {
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var
|
|
42
|
+
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
43
|
+
B.validationErrors = /* @__PURE__ */ new Map();
|
|
44
|
+
var s = B, W = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e))(W || {}), y = class T extends s {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(T.REQUIRED_METHODS, T);
|
|
47
47
|
}
|
|
@@ -160,9 +160,6 @@ var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
|
|
|
160
160
|
allowInnerBlocksDND() {
|
|
161
161
|
return !0;
|
|
162
162
|
}
|
|
163
|
-
allowInteractWithAMPWhenSelected() {
|
|
164
|
-
return !0;
|
|
165
|
-
}
|
|
166
163
|
/**
|
|
167
164
|
* Gets the unique identifier for this block type.
|
|
168
165
|
* This ID is used for registration and referencing the block.
|
|
@@ -221,14 +218,15 @@ var i = x, z = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.CONTAINER = "CONTAI
|
|
|
221
218
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
222
219
|
}
|
|
223
220
|
};
|
|
224
|
-
|
|
225
|
-
var
|
|
221
|
+
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
222
|
+
var $e = y, z = class I extends s {
|
|
226
223
|
constructor() {
|
|
227
224
|
super(I.REQUIRED_METHODS, I);
|
|
228
225
|
}
|
|
229
226
|
/**
|
|
230
227
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
231
228
|
*/
|
|
229
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
230
|
getPreviewHtml(t) {
|
|
233
231
|
}
|
|
234
232
|
/**
|
|
@@ -238,8 +236,8 @@ var Ze = P, Z = class I extends i {
|
|
|
238
236
|
throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
|
|
239
237
|
}
|
|
240
238
|
};
|
|
241
|
-
|
|
242
|
-
var
|
|
239
|
+
z.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
240
|
+
var We = class {
|
|
243
241
|
/**
|
|
244
242
|
* Generates HTML representation for a block item
|
|
245
243
|
* @param block - The block item to generate HTML for
|
|
@@ -313,7 +311,7 @@ var qe = class {
|
|
|
313
311
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
314
312
|
getModulesTabIconName(e) {
|
|
315
313
|
}
|
|
316
|
-
},
|
|
314
|
+
}, Z = class b extends s {
|
|
317
315
|
constructor() {
|
|
318
316
|
super(b.REQUIRED_METHODS, b);
|
|
319
317
|
}
|
|
@@ -330,86 +328,86 @@ var qe = class {
|
|
|
330
328
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
331
329
|
}
|
|
332
330
|
};
|
|
333
|
-
|
|
331
|
+
Z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
334
332
|
var j = {
|
|
335
333
|
src: "src",
|
|
336
334
|
alt: "alt",
|
|
337
335
|
href: "href",
|
|
338
336
|
width: "width",
|
|
339
337
|
height: "height"
|
|
340
|
-
},
|
|
338
|
+
}, ze = {
|
|
341
339
|
BLOCK_IMAGE: j
|
|
342
|
-
},
|
|
343
|
-
BLOCK_BUTTON:
|
|
344
|
-
BLOCK_TEXT:
|
|
345
|
-
BLOCK_IMAGE:
|
|
346
|
-
GENERAL:
|
|
347
|
-
},
|
|
340
|
+
}, P = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ae = "esd-block-menu", ne = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", le = "esd-stripe", Ee = "esd-amp-form", c = ((e) => (e.BUTTON = `.${P}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ae}`, e.HTML = `.${ne}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${le}`, e.FORM = `.${Ee}`, e))(c || {}), oe = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(H || {}), k = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(k || {}), de = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(de || {}), n = {
|
|
341
|
+
BLOCK_BUTTON: F,
|
|
342
|
+
BLOCK_TEXT: H,
|
|
343
|
+
BLOCK_IMAGE: k,
|
|
344
|
+
GENERAL: K
|
|
345
|
+
}, ue = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(ue || {}), ce = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ce || {}), Te = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Te || {}), r = {
|
|
348
346
|
name: "name",
|
|
349
347
|
disabled: "disabled"
|
|
350
|
-
},
|
|
351
|
-
...
|
|
348
|
+
}, Ie = {
|
|
349
|
+
...r,
|
|
352
350
|
caption: "caption",
|
|
353
351
|
icon: "icon"
|
|
354
|
-
},
|
|
355
|
-
...
|
|
352
|
+
}, be = {
|
|
353
|
+
...r,
|
|
356
354
|
caption: "caption"
|
|
357
|
-
},
|
|
358
|
-
...
|
|
355
|
+
}, he = {
|
|
356
|
+
...r,
|
|
359
357
|
minValue: "min-value",
|
|
360
358
|
maxValue: "max-value",
|
|
361
359
|
step: "step"
|
|
362
|
-
},
|
|
363
|
-
...
|
|
360
|
+
}, me = {
|
|
361
|
+
...r,
|
|
364
362
|
placeholder: "placeholder",
|
|
365
363
|
minDate: "min-date"
|
|
366
|
-
},
|
|
367
|
-
...
|
|
364
|
+
}, ge = {
|
|
365
|
+
...r,
|
|
368
366
|
text: "text",
|
|
369
367
|
hint: "hint"
|
|
370
|
-
},
|
|
371
|
-
...
|
|
368
|
+
}, Oe = {
|
|
369
|
+
...r,
|
|
372
370
|
type: "type"
|
|
373
|
-
},
|
|
374
|
-
...
|
|
371
|
+
}, Re = {
|
|
372
|
+
...r,
|
|
375
373
|
buttons: "buttons"
|
|
376
|
-
},
|
|
377
|
-
...
|
|
374
|
+
}, p = {
|
|
375
|
+
...r,
|
|
378
376
|
searchable: "searchable",
|
|
379
377
|
multiSelect: "multi-select",
|
|
380
378
|
placeholder: "placeholder",
|
|
381
379
|
items: "items"
|
|
382
|
-
},
|
|
383
|
-
...
|
|
380
|
+
}, Le = {
|
|
381
|
+
...p,
|
|
384
382
|
addCustomFontOption: "add-custom-font-option"
|
|
385
|
-
},
|
|
386
|
-
...
|
|
383
|
+
}, _e = {
|
|
384
|
+
...r,
|
|
387
385
|
text: "text",
|
|
388
386
|
value: "value"
|
|
389
|
-
},
|
|
390
|
-
...
|
|
387
|
+
}, Ce = {
|
|
388
|
+
...r,
|
|
391
389
|
text: "text",
|
|
392
390
|
hint: "hint",
|
|
393
391
|
icon: "icon",
|
|
394
392
|
value: "value"
|
|
395
|
-
},
|
|
396
|
-
...
|
|
393
|
+
}, Ae = {
|
|
394
|
+
...r,
|
|
397
395
|
buttons: "buttons"
|
|
398
|
-
},
|
|
399
|
-
...
|
|
396
|
+
}, Ne = {
|
|
397
|
+
...r,
|
|
400
398
|
text: "text",
|
|
401
399
|
hint: "hint",
|
|
402
400
|
icon: "icon",
|
|
403
401
|
value: "value"
|
|
404
|
-
},
|
|
405
|
-
...
|
|
402
|
+
}, De = {
|
|
403
|
+
...r,
|
|
406
404
|
placeholder: "placeholder"
|
|
407
|
-
},
|
|
408
|
-
...
|
|
405
|
+
}, Se = {
|
|
406
|
+
...r,
|
|
409
407
|
resizable: "resizable",
|
|
410
408
|
placeholder: "placeholder"
|
|
411
|
-
},
|
|
412
|
-
...
|
|
409
|
+
}, Me = {
|
|
410
|
+
...r,
|
|
413
411
|
img: "img",
|
|
414
412
|
src: "src",
|
|
415
413
|
title: "title",
|
|
@@ -419,61 +417,54 @@ var j = {
|
|
|
419
417
|
isActive: "is-active",
|
|
420
418
|
visibility: "visibility",
|
|
421
419
|
transform: "transform"
|
|
422
|
-
},
|
|
423
|
-
...
|
|
420
|
+
}, Be = {
|
|
421
|
+
...r,
|
|
424
422
|
controlId: "control-id"
|
|
425
|
-
},
|
|
426
|
-
...
|
|
423
|
+
}, xe = {
|
|
424
|
+
...r,
|
|
427
425
|
expanded: "expanded"
|
|
428
|
-
},
|
|
429
|
-
...
|
|
426
|
+
}, ve = {
|
|
427
|
+
...r,
|
|
430
428
|
icon: "icon",
|
|
431
429
|
position: "position"
|
|
430
|
+
}, ye = {
|
|
431
|
+
...r
|
|
432
432
|
}, Pe = {
|
|
433
|
-
...
|
|
434
|
-
}, Ue = {
|
|
435
|
-
...a,
|
|
433
|
+
...r,
|
|
436
434
|
icon: "icon"
|
|
435
|
+
}, Ue = {
|
|
436
|
+
...r
|
|
437
437
|
}, we = {
|
|
438
|
-
...
|
|
439
|
-
}, Ke = {
|
|
440
|
-
...a,
|
|
438
|
+
...r,
|
|
441
439
|
blockId: "block-id"
|
|
442
|
-
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
ORDERABLE_ITEM: Pe,
|
|
471
|
-
ORDERABLE_ICON: Ue,
|
|
472
|
-
REPEATABLE: we,
|
|
473
|
-
DRAGGABLE_BLOCK: Ke,
|
|
474
|
-
AMP_FORM_SERVICE_PICKER: Fe,
|
|
475
|
-
MULTIPLE_SELECT: He
|
|
476
|
-
}, ke = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e.AMP_FORM_SERVICE_PICKER = "UE-AMP-FORM-SERVICE-PICKER", e.MULTIPLE_SELECT = "UE-MULTIPLE_SELECT", e.SCROLLABLE = "UE-SCROLLABLE-CONTAINER", e))(ke || {}), v = class {
|
|
440
|
+
}, Ze = {
|
|
441
|
+
DEFAULT: r,
|
|
442
|
+
BUTTON: Ie,
|
|
443
|
+
CHECKBOX: be,
|
|
444
|
+
CHECK_BUTTONS: Ae,
|
|
445
|
+
COLOR: r,
|
|
446
|
+
COUNTER: he,
|
|
447
|
+
DATEPICKER: me,
|
|
448
|
+
LABEL: ge,
|
|
449
|
+
MESSAGE: Oe,
|
|
450
|
+
RADIO_BUTTONS: Re,
|
|
451
|
+
SELECTPICKER: p,
|
|
452
|
+
FONT_FAMILY_SELECT: Le,
|
|
453
|
+
SWITCHER: r,
|
|
454
|
+
TEXT: De,
|
|
455
|
+
TEXTAREA: Se,
|
|
456
|
+
ICON: Me,
|
|
457
|
+
CHECK_ITEM: Ce,
|
|
458
|
+
SELECT_ITEM: _e,
|
|
459
|
+
RADIO_ITEM: Ne,
|
|
460
|
+
NESTED_CONTROL: Be,
|
|
461
|
+
EXPANDABLE: xe,
|
|
462
|
+
ORDERABLE: ve,
|
|
463
|
+
ORDERABLE_ITEM: ye,
|
|
464
|
+
ORDERABLE_ICON: Pe,
|
|
465
|
+
REPEATABLE: Ue,
|
|
466
|
+
DRAGGABLE_BLOCK: we
|
|
467
|
+
}, Ke = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e.DRAGGABLE_BLOCK = "UE-DRAGGABLE-BLOCK", e))(Ke || {}), x = class {
|
|
477
468
|
/**
|
|
478
469
|
* @description returns map of nodes parent control operates on
|
|
479
470
|
*/
|
|
@@ -504,66 +495,66 @@ var j = {
|
|
|
504
495
|
isVisible(e) {
|
|
505
496
|
return !0;
|
|
506
497
|
}
|
|
507
|
-
}, l = class extends
|
|
498
|
+
}, l = class extends x {
|
|
508
499
|
getTargetNodes(e) {
|
|
509
|
-
const t = e.querySelectorAll(c.BUTTON),
|
|
510
|
-
return t.length ? t :
|
|
500
|
+
const t = e.querySelectorAll(c.BUTTON), a = e.asElement().hasClass(P) ? [e] : [];
|
|
501
|
+
return t.length ? t : a;
|
|
511
502
|
}
|
|
512
|
-
},
|
|
503
|
+
}, je = class extends l {
|
|
513
504
|
getParentControlId() {
|
|
514
505
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
515
506
|
}
|
|
516
507
|
getLabels() {
|
|
517
508
|
}
|
|
518
|
-
},
|
|
509
|
+
}, qe = class extends l {
|
|
519
510
|
getParentControlId() {
|
|
520
511
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
521
512
|
}
|
|
522
|
-
},
|
|
513
|
+
}, Je = class extends l {
|
|
523
514
|
getParentControlId() {
|
|
524
515
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
525
516
|
}
|
|
526
|
-
},
|
|
517
|
+
}, et = class extends l {
|
|
527
518
|
getParentControlId() {
|
|
528
519
|
return n.BLOCK_BUTTON.BORDER;
|
|
529
520
|
}
|
|
530
521
|
getLabels() {
|
|
531
522
|
}
|
|
532
|
-
},
|
|
523
|
+
}, tt = class extends l {
|
|
533
524
|
getParentControlId() {
|
|
534
525
|
return n.BLOCK_BUTTON.COLOR;
|
|
535
526
|
}
|
|
536
|
-
},
|
|
527
|
+
}, rt = class extends l {
|
|
537
528
|
getParentControlId() {
|
|
538
529
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
539
530
|
}
|
|
540
|
-
},
|
|
531
|
+
}, at = class extends l {
|
|
541
532
|
getParentControlId() {
|
|
542
533
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
543
534
|
}
|
|
544
|
-
},
|
|
535
|
+
}, nt = class extends l {
|
|
545
536
|
getParentControlId() {
|
|
546
537
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
547
538
|
}
|
|
548
|
-
},
|
|
539
|
+
}, st = class extends l {
|
|
549
540
|
getParentControlId() {
|
|
550
541
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
551
542
|
}
|
|
552
|
-
},
|
|
543
|
+
}, it = class extends l {
|
|
553
544
|
getParentControlId() {
|
|
554
545
|
return n.BLOCK_BUTTON.TEXT;
|
|
555
546
|
}
|
|
556
|
-
},
|
|
547
|
+
}, lt = class extends l {
|
|
557
548
|
getParentControlId() {
|
|
558
549
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
559
550
|
}
|
|
560
|
-
},
|
|
551
|
+
}, Et = class extends l {
|
|
561
552
|
getParentControlId() {
|
|
562
553
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
563
554
|
}
|
|
564
555
|
getLabels() {
|
|
565
556
|
}
|
|
566
|
-
},
|
|
557
|
+
}, X = class h extends s {
|
|
567
558
|
constructor() {
|
|
568
559
|
super(h.REQUIRED_METHODS, h);
|
|
569
560
|
}
|
|
@@ -618,8 +609,8 @@ var j = {
|
|
|
618
609
|
onDocumentChanged(t) {
|
|
619
610
|
}
|
|
620
611
|
};
|
|
621
|
-
|
|
622
|
-
var
|
|
612
|
+
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
613
|
+
var ot = X, Fe = class m extends s {
|
|
623
614
|
constructor() {
|
|
624
615
|
super(m.REQUIRED_METHODS, m);
|
|
625
616
|
}
|
|
@@ -688,21 +679,21 @@ var ct = G, pe = class m extends i {
|
|
|
688
679
|
onDestroy() {
|
|
689
680
|
}
|
|
690
681
|
};
|
|
691
|
-
|
|
692
|
-
var
|
|
682
|
+
Fe.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
683
|
+
var G = class extends x {
|
|
693
684
|
getTargetNodes(e) {
|
|
694
|
-
const t = e.querySelectorAll(c.IMAGE),
|
|
695
|
-
return t.length ? t :
|
|
685
|
+
const t = e.querySelectorAll(c.IMAGE), a = e.asElement().hasClass(w) ? [e] : [];
|
|
686
|
+
return t.length ? t : a;
|
|
696
687
|
}
|
|
697
|
-
},
|
|
688
|
+
}, dt = class extends G {
|
|
698
689
|
getParentControlId() {
|
|
699
690
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
700
691
|
}
|
|
701
|
-
},
|
|
692
|
+
}, ut = class extends G {
|
|
702
693
|
getParentControlId() {
|
|
703
694
|
return n.BLOCK_IMAGE.SIZE;
|
|
704
695
|
}
|
|
705
|
-
},
|
|
696
|
+
}, He = class g extends s {
|
|
706
697
|
constructor() {
|
|
707
698
|
super(g.REQUIRED_METHODS, g);
|
|
708
699
|
}
|
|
@@ -766,8 +757,8 @@ var V = class extends v {
|
|
|
766
757
|
onDocumentChanged() {
|
|
767
758
|
}
|
|
768
759
|
};
|
|
769
|
-
|
|
770
|
-
var
|
|
760
|
+
He.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
761
|
+
var V = class O extends s {
|
|
771
762
|
constructor() {
|
|
772
763
|
super(O.REQUIRED_METHODS, O);
|
|
773
764
|
}
|
|
@@ -775,10 +766,10 @@ var f = class O extends i {
|
|
|
775
766
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
776
767
|
}
|
|
777
768
|
};
|
|
778
|
-
|
|
779
|
-
var
|
|
780
|
-
constructor(
|
|
781
|
-
this.tabId =
|
|
769
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
770
|
+
var ct = V, Tt = class {
|
|
771
|
+
constructor(e, t) {
|
|
772
|
+
this.tabId = e, this.controlsIds = t;
|
|
782
773
|
}
|
|
783
774
|
getTabId() {
|
|
784
775
|
return this.tabId;
|
|
@@ -787,66 +778,52 @@ var bt = f, ht = class R {
|
|
|
787
778
|
return this.label;
|
|
788
779
|
}
|
|
789
780
|
getControlsIds() {
|
|
790
|
-
return this.
|
|
791
|
-
}
|
|
792
|
-
getControls() {
|
|
793
|
-
return this.controls;
|
|
781
|
+
return this.controlsIds;
|
|
794
782
|
}
|
|
795
|
-
withLabel(
|
|
796
|
-
return this.label =
|
|
783
|
+
withLabel(e) {
|
|
784
|
+
return this.label = e, this;
|
|
797
785
|
}
|
|
798
|
-
addControl(
|
|
799
|
-
|
|
800
|
-
return r < 0 ? this.controls.unshift(s) : r > this.controls.length ? this.controls.push(s) : this.controls.splice(r, 0, s), this;
|
|
786
|
+
addControl(e, t) {
|
|
787
|
+
return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
|
|
801
788
|
}
|
|
802
|
-
deleteControl(
|
|
803
|
-
const
|
|
804
|
-
|
|
789
|
+
deleteControl(e) {
|
|
790
|
+
const t = this.controlsIds.indexOf(e);
|
|
791
|
+
t !== -1 && this.controlsIds.splice(t, 1);
|
|
805
792
|
}
|
|
806
|
-
|
|
807
|
-
if (typeof t == "string")
|
|
808
|
-
return { id: t };
|
|
809
|
-
if (!t.id)
|
|
810
|
-
throw new Error("SettingsPanelTabControlConfig.id is required");
|
|
811
|
-
return {
|
|
812
|
-
...t,
|
|
813
|
-
id: t.id
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
}, E = class extends v {
|
|
793
|
+
}, E = class extends x {
|
|
817
794
|
getTargetNodes(e) {
|
|
818
|
-
const t = e.querySelectorAll(c.TEXT),
|
|
819
|
-
return t.length ? t :
|
|
795
|
+
const t = e.querySelectorAll(c.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
|
|
796
|
+
return t.length ? t : a;
|
|
820
797
|
}
|
|
821
|
-
},
|
|
798
|
+
}, It = class extends E {
|
|
822
799
|
getParentControlId() {
|
|
823
800
|
return n.GENERAL.TEXT_ALIGN;
|
|
824
801
|
}
|
|
825
|
-
},
|
|
802
|
+
}, bt = class extends E {
|
|
826
803
|
getParentControlId() {
|
|
827
804
|
return n.GENERAL.TEXT_COLOR;
|
|
828
805
|
}
|
|
829
|
-
},
|
|
806
|
+
}, ht = class extends E {
|
|
830
807
|
getParentControlId() {
|
|
831
808
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
832
809
|
}
|
|
833
|
-
},
|
|
810
|
+
}, mt = class extends E {
|
|
834
811
|
getParentControlId() {
|
|
835
812
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
836
813
|
}
|
|
837
|
-
},
|
|
814
|
+
}, gt = class extends E {
|
|
838
815
|
getParentControlId() {
|
|
839
816
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
840
817
|
}
|
|
841
|
-
},
|
|
818
|
+
}, Ot = class extends E {
|
|
842
819
|
getParentControlId() {
|
|
843
820
|
return n.GENERAL.TEXT_SIZE;
|
|
844
821
|
}
|
|
845
|
-
},
|
|
822
|
+
}, Rt = class extends E {
|
|
846
823
|
getParentControlId() {
|
|
847
824
|
return n.GENERAL.TEXT_STYLE;
|
|
848
825
|
}
|
|
849
|
-
},
|
|
826
|
+
}, ke = class {
|
|
850
827
|
constructor(e) {
|
|
851
828
|
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.modulesPanelTabs = (e == null ? void 0 : e.modulesPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
|
|
852
829
|
}
|
|
@@ -910,7 +887,7 @@ var bt = f, ht = class R {
|
|
|
910
887
|
getModulesPanelTabs() {
|
|
911
888
|
return this.modulesPanelTabs;
|
|
912
889
|
}
|
|
913
|
-
},
|
|
890
|
+
}, Lt = class {
|
|
914
891
|
constructor() {
|
|
915
892
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.modulesPanelTabs = [];
|
|
916
893
|
}
|
|
@@ -981,7 +958,7 @@ var bt = f, ht = class R {
|
|
|
981
958
|
return this.modulesPanelTabs.push(e), this;
|
|
982
959
|
}
|
|
983
960
|
build() {
|
|
984
|
-
return new
|
|
961
|
+
return new ke({
|
|
985
962
|
i18n: this.i18n,
|
|
986
963
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
987
964
|
`),
|
|
@@ -1004,18 +981,18 @@ var bt = f, ht = class R {
|
|
|
1004
981
|
modulesPanelTabs: this.modulesPanelTabs
|
|
1005
982
|
});
|
|
1006
983
|
}
|
|
1007
|
-
},
|
|
984
|
+
}, pe = class R extends s {
|
|
1008
985
|
constructor() {
|
|
1009
|
-
super(
|
|
986
|
+
super(R.REQUIRED_METHODS, R);
|
|
1010
987
|
}
|
|
1011
988
|
openAiAssistant(t) {
|
|
1012
989
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
1013
990
|
}
|
|
1014
991
|
};
|
|
1015
|
-
|
|
1016
|
-
var
|
|
992
|
+
pe.REQUIRED_METHODS = ["openAiAssistant"];
|
|
993
|
+
var Xe = class L extends s {
|
|
1017
994
|
constructor() {
|
|
1018
|
-
super(
|
|
995
|
+
super(L.REQUIRED_METHODS, L);
|
|
1019
996
|
}
|
|
1020
997
|
/**
|
|
1021
998
|
* Retrieves the name of the category.
|
|
@@ -1032,7 +1009,7 @@ var fe = class _ extends i {
|
|
|
1032
1009
|
* @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
|
|
1033
1010
|
* @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
|
|
1034
1011
|
*/
|
|
1035
|
-
openExternalDisplayConditionsDialog(t,
|
|
1012
|
+
openExternalDisplayConditionsDialog(t, a, i) {
|
|
1036
1013
|
throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
|
|
1037
1014
|
}
|
|
1038
1015
|
/**
|
|
@@ -1053,19 +1030,19 @@ var fe = class _ extends i {
|
|
|
1053
1030
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
1054
1031
|
}
|
|
1055
1032
|
};
|
|
1056
|
-
|
|
1057
|
-
var
|
|
1033
|
+
Xe.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
1034
|
+
var Ge = class _ extends s {
|
|
1058
1035
|
constructor() {
|
|
1059
|
-
super(
|
|
1036
|
+
super(_.REQUIRED_METHODS, _);
|
|
1060
1037
|
}
|
|
1061
|
-
openImageLibrary(t,
|
|
1038
|
+
openImageLibrary(t, a, i) {
|
|
1062
1039
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
1063
1040
|
}
|
|
1064
1041
|
};
|
|
1065
|
-
|
|
1066
|
-
var
|
|
1042
|
+
Ge.REQUIRED_METHODS = ["openImageLibrary"];
|
|
1043
|
+
var Ve = class C extends s {
|
|
1067
1044
|
constructor() {
|
|
1068
|
-
super(
|
|
1045
|
+
super(C.REQUIRED_METHODS, C);
|
|
1069
1046
|
}
|
|
1070
1047
|
/**
|
|
1071
1048
|
* @description Returns the translated name/label for the tab
|
|
@@ -1080,39 +1057,39 @@ var Ye = class A extends i {
|
|
|
1080
1057
|
* @param _onImageSelectCallback - Callback to invoke when an image is selected
|
|
1081
1058
|
* @param _selectedNode - (Optional) Selected node for which the gallery is being opened
|
|
1082
1059
|
*/
|
|
1083
|
-
openImageLibraryTab(t,
|
|
1060
|
+
openImageLibraryTab(t, a, i) {
|
|
1084
1061
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
1085
1062
|
}
|
|
1086
1063
|
};
|
|
1087
|
-
|
|
1088
|
-
var
|
|
1064
|
+
Ve.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
1065
|
+
var Qe = class A extends s {
|
|
1089
1066
|
constructor() {
|
|
1090
|
-
super(
|
|
1067
|
+
super(A.REQUIRED_METHODS, A);
|
|
1091
1068
|
}
|
|
1092
|
-
openSmartElementsLibrary(t,
|
|
1069
|
+
openSmartElementsLibrary(t, a) {
|
|
1093
1070
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
1094
1071
|
}
|
|
1095
1072
|
};
|
|
1096
|
-
|
|
1097
|
-
var
|
|
1073
|
+
Qe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
1074
|
+
var fe = class N extends s {
|
|
1098
1075
|
constructor() {
|
|
1099
|
-
super(
|
|
1076
|
+
super(N.REQUIRED_METHODS, N);
|
|
1100
1077
|
}
|
|
1101
|
-
openExternalVideosLibraryDialog(t,
|
|
1078
|
+
openExternalVideosLibraryDialog(t, a, i) {
|
|
1102
1079
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
1103
1080
|
}
|
|
1104
1081
|
};
|
|
1105
|
-
|
|
1106
|
-
var Q = class
|
|
1082
|
+
fe.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
1083
|
+
var Q = class D extends s {
|
|
1107
1084
|
constructor() {
|
|
1108
|
-
super(
|
|
1085
|
+
super(D.REQUIRED_METHODS, D);
|
|
1109
1086
|
}
|
|
1110
1087
|
registerIconsSvg(t) {
|
|
1111
1088
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
1112
1089
|
}
|
|
1113
1090
|
};
|
|
1114
1091
|
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
1115
|
-
var
|
|
1092
|
+
var _t = Q, Ct = class {
|
|
1116
1093
|
constructor(e) {
|
|
1117
1094
|
this.key = e;
|
|
1118
1095
|
}
|
|
@@ -1125,9 +1102,9 @@ var Nt = Q, Dt = class {
|
|
|
1125
1102
|
params: this.params
|
|
1126
1103
|
};
|
|
1127
1104
|
}
|
|
1128
|
-
},
|
|
1105
|
+
}, f = class S extends s {
|
|
1129
1106
|
constructor() {
|
|
1130
|
-
super(
|
|
1107
|
+
super(S.REQUIRED_METHODS, S);
|
|
1131
1108
|
}
|
|
1132
1109
|
/**
|
|
1133
1110
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -1162,7 +1139,7 @@ var Nt = Q, Dt = class {
|
|
|
1162
1139
|
* @param name - The name of the attribute that was updated.
|
|
1163
1140
|
* @param value - The new value of the attribute.
|
|
1164
1141
|
*/
|
|
1165
|
-
onAttributeUpdated(t,
|
|
1142
|
+
onAttributeUpdated(t, a) {
|
|
1166
1143
|
}
|
|
1167
1144
|
/**
|
|
1168
1145
|
* Gets the unique identifier for this UI element type.
|
|
@@ -1180,64 +1157,64 @@ var Nt = Q, Dt = class {
|
|
|
1180
1157
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
1181
1158
|
}
|
|
1182
1159
|
};
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1160
|
+
f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1161
|
+
var At = f, Y = class M extends s {
|
|
1185
1162
|
constructor() {
|
|
1186
|
-
super(
|
|
1163
|
+
super(M.REQUIRED_METHODS, M);
|
|
1187
1164
|
}
|
|
1188
1165
|
registerUiElements(t) {
|
|
1189
1166
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
1190
1167
|
}
|
|
1191
1168
|
};
|
|
1192
|
-
|
|
1193
|
-
var
|
|
1169
|
+
Y.REQUIRED_METHODS = ["registerUiElements"];
|
|
1170
|
+
var Nt = Y;
|
|
1194
1171
|
export {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1172
|
+
$e as Block,
|
|
1173
|
+
ze as BlockAttr,
|
|
1174
|
+
W as BlockCompositionType,
|
|
1198
1175
|
c as BlockSelector,
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1176
|
+
oe as BlockType,
|
|
1177
|
+
We as BlocksPanel,
|
|
1178
|
+
x as BuiltInControl,
|
|
1202
1179
|
n as BuiltInControlTypes,
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1180
|
+
qe as ButtonAlignBuiltInControl,
|
|
1181
|
+
Je as ButtonBackgroundColorBuiltInControl,
|
|
1182
|
+
et as ButtonBorderBuiltInControl,
|
|
1183
|
+
je as ButtonBorderRadiusBuiltInControl,
|
|
1184
|
+
tt as ButtonColorBuiltInControl,
|
|
1185
|
+
F as ButtonControls,
|
|
1186
|
+
rt as ButtonFitToContainerBuiltInControl,
|
|
1187
|
+
at as ButtonFontFamilyBuiltInControl,
|
|
1188
|
+
nt as ButtonMarginsBuiltInControl,
|
|
1189
|
+
st as ButtonPaddingsBuiltInControl,
|
|
1190
|
+
it as ButtonTextBuiltInControl,
|
|
1191
|
+
lt as ButtonTextSizeBuiltInControl,
|
|
1192
|
+
Et as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1193
|
+
de as ContainerControls,
|
|
1194
|
+
ot as Control,
|
|
1195
|
+
ue as EditorStatePropertyType,
|
|
1196
|
+
ke as Extension,
|
|
1197
|
+
Lt as ExtensionBuilder,
|
|
1198
|
+
K as GeneralControls,
|
|
1199
|
+
_t as IconsRegistry,
|
|
1200
|
+
k as ImageControls,
|
|
1201
|
+
dt as ImageMarginsBuiltInControl,
|
|
1202
|
+
ut as ImageSizeBuiltInControl,
|
|
1203
|
+
Ct as ModificationDescription,
|
|
1204
|
+
ce as PreviewDeviceMode,
|
|
1205
|
+
ct as SettingsPanelRegistry,
|
|
1206
|
+
Tt as SettingsPanelTab,
|
|
1207
|
+
Te as SettingsTab,
|
|
1208
|
+
It as TextAlignBuiltInControl,
|
|
1209
|
+
bt as TextColorBuiltInControl,
|
|
1210
|
+
H as TextControls,
|
|
1211
|
+
ht as TextFontFamilyBuiltInControl,
|
|
1212
|
+
mt as TextLineSpacingBuiltInControl,
|
|
1213
|
+
gt as TextPaddingsBuiltInControl,
|
|
1214
|
+
Ot as TextSizeBuiltInControl,
|
|
1215
|
+
Rt as TextStyleBuiltInControl,
|
|
1216
|
+
Ze as UEAttr,
|
|
1217
|
+
At as UIElement,
|
|
1218
|
+
Nt as UIElementTagRegistry,
|
|
1219
|
+
Ke as UIElementType
|
|
1243
1220
|
};
|
package/dist/package.json.js
CHANGED
package/dist/src/enums/date.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const PriceAttributes: string[];
|
|
|
11
11
|
export declare const currencyLocationMaps: TextValueObject[];
|
|
12
12
|
export declare const currencyOperators: TextValueObject[];
|
|
13
13
|
export declare const currencyDecimalCounts: TextValueObject[];
|
|
14
|
+
export declare const OP_ANY_OF = "||";
|
|
14
15
|
export declare const operatorOptionsForStrings: TextValueObject[];
|
|
15
16
|
export declare const operatorOptionsForArrayOfStrings: TextValueObject[];
|
|
16
17
|
export declare const operatorOptionsForNumbers: TextValueObject[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.2.0-beta.
|
|
3
|
+
"version": "3.2.0-beta.bbb580a",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "ISC",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@stripoinc/ui-editor-extensions": "3.
|
|
35
|
+
"@stripoinc/ui-editor-extensions": "3.7.0",
|
|
36
36
|
"@useinsider/design-system-vue": "1.1.0-beta.73ec2fa",
|
|
37
37
|
"@vueuse/core": "11.3.0",
|
|
38
38
|
"lodash-es": "4.17.21",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"guido": {
|
|
88
88
|
"stripo": {
|
|
89
|
-
"version": "2.
|
|
89
|
+
"version": "2.60.0"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|