@useinsider/guido 1.0.3-beta.2cf8046 → 1.0.3-beta.2df2106
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 +3 -32
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +13 -13
- package/dist/composables/useActionsApi.js +1 -1
- package/dist/composables/useHtmlCompiler.js +15 -13
- package/dist/composables/useHtmlValidator.js +36 -35
- package/dist/composables/useStripo.js +29 -25
- package/dist/config/compiler/itemsCompilerRules.js +14 -0
- package/dist/enums/unsubscribe.js +27 -26
- package/dist/extensions/Blocks/Checkbox/control.js +15 -14
- package/dist/extensions/Blocks/Checkbox/template.js +14 -9
- package/dist/extensions/Blocks/Items/block.js +26 -26
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +25 -25
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +92 -0
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +150 -114
- package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
- package/dist/extensions/Blocks/Items/enums/productEnums.js +77 -4
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +3 -2
- package/dist/extensions/Blocks/Items/extension.js +7 -6
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +57 -56
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +67 -56
- package/dist/extensions/Blocks/Items/settingsPanel.js +69 -43
- package/dist/extensions/Blocks/Items/store/items-block.js +8 -4
- package/dist/extensions/Blocks/Items/template.js +147 -62
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +35 -26
- package/dist/extensions/Blocks/Items/utils/updateAttributes.js +29 -27
- package/dist/extensions/Blocks/RadioButton/control.js +18 -17
- package/dist/extensions/Blocks/RadioButton/template.js +18 -9
- package/dist/extensions/Blocks/Unsubscribe/block.js +45 -41
- package/dist/guido.css +1 -1
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_SetCache.js +13 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +13 -12
- package/dist/node_modules/lodash-es/_arrayMap.js +8 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +8 -0
- package/dist/node_modules/lodash-es/_arraySome.js +9 -0
- package/dist/node_modules/lodash-es/_baseEach.js +6 -0
- package/dist/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/dist/node_modules/lodash-es/_baseGet.js +11 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/dist/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/dist/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +14 -0
- package/dist/node_modules/lodash-es/_baseMap.js +11 -0
- package/dist/node_modules/lodash-es/_baseMatches.js +12 -0
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/dist/node_modules/lodash-es/_baseProperty.js +8 -0
- package/dist/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/dist/node_modules/lodash-es/_baseRange.js +9 -0
- package/dist/node_modules/lodash-es/_baseToString.js +18 -0
- package/dist/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/dist/node_modules/lodash-es/_createRange.js +11 -0
- package/dist/node_modules/lodash-es/_equalArrays.js +40 -0
- package/dist/node_modules/lodash-es/_equalByTag.js +45 -0
- package/dist/node_modules/lodash-es/_equalObjects.js +36 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getMatchData.js +12 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/lodash-es/_getTag.js +28 -0
- package/dist/node_modules/lodash-es/_hasPath.js +19 -0
- package/dist/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/lodash-es/_isKey.js +12 -0
- package/dist/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/dist/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/lodash-es/flatMap.js +8 -0
- package/dist/node_modules/lodash-es/get.js +8 -0
- package/dist/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +3 -3
- package/dist/node_modules/lodash-es/map.js +11 -0
- package/dist/node_modules/lodash-es/property.js +10 -0
- package/dist/node_modules/lodash-es/range.js +5 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/toFinite.js +14 -0
- package/dist/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/src/config/compiler/itemsCompilerRules.d.ts +2 -0
- package/dist/src/extensions/Blocks/Checkbox/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/block.d.ts +14 -0
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +15 -0
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +8 -2
- package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
- package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +3 -0
- package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +1 -0
- package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +2 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +9 -1
- package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +6 -0
- package/dist/src/extensions/Blocks/RadioButton/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Unsubscribe/block.d.ts +3 -4
- package/dist/src/utils/environmentUtil.d.ts +5 -0
- package/dist/src/utils/pairProductVariables.d.ts +7 -0
- package/dist/utils/environmentUtil.js +4 -0
- package/dist/utils/pairProductVariables.js +136 -0
- package/package.json +5 -10
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { UEAttr as
|
|
5
|
-
import { CommonControl as
|
|
6
|
-
import { ItemsBlockId as
|
|
7
|
-
import { productPairs as
|
|
8
|
-
import { ItemTypeOptions as P, OrientationOptions as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useItemsBlockStore as
|
|
12
|
-
import { getDefaultTemplate as
|
|
13
|
-
import {
|
|
14
|
-
|
|
2
|
+
var D = (h, p, e) => p in h ? M(h, p, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[p] = e;
|
|
3
|
+
var b = (h, p, e) => D(h, typeof p != "symbol" ? p + "" : p, e);
|
|
4
|
+
import { UEAttr as A, ModificationDescription as d } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
|
+
import { CommonControl as x } from "../../common-control.js";
|
|
6
|
+
import { ItemsBlockId as l } from "../enums/controlEnums.js";
|
|
7
|
+
import { productPairs as T, templateFirstLine as R } from "../enums/productEnums.js";
|
|
8
|
+
import { ItemTypeOptions as P, OrientationOptions as L, ItemInCartOptions as N, SETTINGS_ENUMS as S, DefaultConfigValues as H } from "../enums/settingsEnums.js";
|
|
9
|
+
import U from "../layouts/horizontal.html.js";
|
|
10
|
+
import F from "../layouts/vertical.html.js";
|
|
11
|
+
import { useItemsBlockStore as $ } from "../store/items-block.js";
|
|
12
|
+
import { getDefaultTemplate as q } from "../template.js";
|
|
13
|
+
import { syncCurrencySymbolFromAttributes as k, syncCurrencyLocationFromAttributes as w, syncFormattedPriceFromAttributes as B } from "../utils/syncAttributesFromConfigBlock.js";
|
|
14
|
+
import { updateConfigBlockAttributes as f } from "../utils/updateAttributes.js";
|
|
15
|
+
const G = "ui-elements-items-block", s = {
|
|
15
16
|
ITEMS_TYPE: "itemsType",
|
|
16
17
|
ORIENTATION: "orientation",
|
|
17
18
|
ITEM_IDS: "itemIds"
|
|
18
19
|
};
|
|
19
|
-
class
|
|
20
|
+
class te extends x {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
22
|
-
|
|
23
|
+
b(this, "store", $());
|
|
23
24
|
}
|
|
24
25
|
getId() {
|
|
25
|
-
return
|
|
26
|
+
return G;
|
|
26
27
|
}
|
|
27
28
|
getTemplate() {
|
|
28
29
|
return `
|
|
@@ -41,11 +42,18 @@ class z extends b {
|
|
|
41
42
|
}), this._listenToFormUpdates();
|
|
42
43
|
}
|
|
43
44
|
onTemplateNodeUpdated(e) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
super.onTemplateNodeUpdated(e), this.handleBlockInstanceChange(
|
|
46
|
+
() => {
|
|
47
|
+
k(this.currentNode), w(this.currentNode), B(this.currentNode);
|
|
48
|
+
},
|
|
49
|
+
() => {
|
|
50
|
+
this.api.updateValues({
|
|
51
|
+
[s.ORIENTATION]: this.store.orientation,
|
|
52
|
+
[s.ITEMS_TYPE]: this.store.itemsType,
|
|
53
|
+
[s.ITEM_IDS]: this.store.itemIds
|
|
54
|
+
}), this._initializeSelectItems();
|
|
55
|
+
}
|
|
56
|
+
);
|
|
49
57
|
}
|
|
50
58
|
onDestroy() {
|
|
51
59
|
const e = this._getTemplateData();
|
|
@@ -70,7 +78,7 @@ class z extends b {
|
|
|
70
78
|
this._GuLabel({ text: "Orientation" }),
|
|
71
79
|
this._GuRadioButton({
|
|
72
80
|
name: s.ORIENTATION,
|
|
73
|
-
buttons:
|
|
81
|
+
buttons: L
|
|
74
82
|
})
|
|
75
83
|
])}
|
|
76
84
|
`;
|
|
@@ -89,38 +97,40 @@ class z extends b {
|
|
|
89
97
|
`;
|
|
90
98
|
}
|
|
91
99
|
_onOrientationChange(e) {
|
|
92
|
-
console.debug("Orientation changed to: ", e), this.store.setOrientation(e), this.api.updateValues({ [s.ORIENTATION]: e }),
|
|
100
|
+
console.debug("Orientation changed to: ", e), this.store.setOrientation(e), this.store.setPriceOrientation("horizontal"), this.api.updateValues({ [s.ORIENTATION]: e }), f(this.currentNode, this.api), this._reOrderTemplate(), setTimeout(() => {
|
|
101
|
+
this._recalculateTrimming();
|
|
102
|
+
}, 50);
|
|
93
103
|
}
|
|
94
|
-
_onItemsTypeChange(e
|
|
95
|
-
const
|
|
96
|
-
r
|
|
104
|
+
_onItemsTypeChange(e) {
|
|
105
|
+
const i = S.ITEMS_TYPE[e], t = N[e], r = t == null ? void 0 : t[0];
|
|
106
|
+
!i || !r || (this.store.setItemsType(i), this.store.setItemIds(r.value), f(this.currentNode, this.api), this._updateDataTypeAttributes(i), this._initializeSelectItems(), this._reFillTemplate());
|
|
97
107
|
}
|
|
98
108
|
_onItemIdsChange(e) {
|
|
99
|
-
console.debug("Item ids changed to: ", e), this.store.setItemIds(e), this.api.updateValues({ [s.ITEM_IDS]: e }),
|
|
109
|
+
console.debug("Item ids changed to: ", e), this.store.setItemIds(e), this.api.updateValues({ [s.ITEM_IDS]: e }), f(this.currentNode, this.api), this._updateDataNumberAttributes(e), this._reFillTemplate();
|
|
100
110
|
}
|
|
101
111
|
_initializeSelectItems() {
|
|
102
112
|
this.api.setUIEAttribute(
|
|
103
113
|
s.ITEMS_TYPE,
|
|
104
|
-
|
|
114
|
+
A.SELECTPICKER.items,
|
|
105
115
|
P
|
|
106
116
|
);
|
|
107
|
-
const { itemsType: e, itemIds:
|
|
117
|
+
const { itemsType: e, itemIds: i } = this.store;
|
|
108
118
|
this.api.updateValues({
|
|
109
119
|
[s.ITEMS_TYPE]: e
|
|
110
120
|
});
|
|
111
|
-
const
|
|
121
|
+
const t = N[e];
|
|
112
122
|
this.api.setUIEAttribute(
|
|
113
123
|
s.ITEM_IDS,
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
A.SELECTPICKER.items,
|
|
125
|
+
t
|
|
116
126
|
), this.api.updateValues({
|
|
117
|
-
[s.ITEM_IDS]:
|
|
127
|
+
[s.ITEM_IDS]: i
|
|
118
128
|
});
|
|
119
129
|
}
|
|
120
130
|
_listenToFormUpdates() {
|
|
121
131
|
this.api.onValueChanged(
|
|
122
132
|
s.ITEMS_TYPE,
|
|
123
|
-
(e
|
|
133
|
+
(e) => this._onItemsTypeChange(e)
|
|
124
134
|
), this.api.onValueChanged(
|
|
125
135
|
s.ORIENTATION,
|
|
126
136
|
(e) => this._onOrientationChange(e)
|
|
@@ -132,118 +142,144 @@ class z extends b {
|
|
|
132
142
|
_renderTemplate() {
|
|
133
143
|
const {
|
|
134
144
|
orientation: e,
|
|
135
|
-
itemsType:
|
|
136
|
-
itemIds:
|
|
145
|
+
itemsType: i,
|
|
146
|
+
itemIds: t,
|
|
137
147
|
currencySymbol: r,
|
|
138
148
|
currencyLocation: n,
|
|
139
149
|
formattedPrice: o
|
|
140
150
|
} = this.store;
|
|
141
|
-
this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(
|
|
151
|
+
this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(q({
|
|
142
152
|
orientation: e,
|
|
143
|
-
itemsType:
|
|
144
|
-
itemId:
|
|
153
|
+
itemsType: i,
|
|
154
|
+
itemId: t,
|
|
145
155
|
currencySymbol: r,
|
|
146
156
|
currencyLocation: n,
|
|
147
157
|
formattedPrice: o
|
|
148
|
-
})).apply(new
|
|
158
|
+
})).apply(new d("Updated template"));
|
|
149
159
|
}
|
|
150
160
|
_getTemplateData() {
|
|
151
|
-
const { itemsType: e, itemIds:
|
|
161
|
+
const { itemsType: e, itemIds: i, formattedPrice: t } = this.store, r = N[e].findIndex((o) => o.value === i), n = r > -1 ? r : 0;
|
|
152
162
|
return {
|
|
153
|
-
imageSrc:
|
|
154
|
-
name:
|
|
155
|
-
price:
|
|
156
|
-
originalPrice:
|
|
157
|
-
quantity:
|
|
158
|
-
button:
|
|
163
|
+
imageSrc: T.PAIRS_FOR_EXTENSION.imageSrc[e].DEFAULT[n],
|
|
164
|
+
name: T.PAIRS_FOR_EXTENSION.name[e].DEFAULT[n],
|
|
165
|
+
price: t ? T.PAIRS_FOR_EXTENSION.price[e].DEFAULT_PRICE_FORMATTED : T.PAIRS_FOR_EXTENSION.price[e].DEFAULT_PRICE,
|
|
166
|
+
originalPrice: t ? T.PAIRS_FOR_EXTENSION.originalPrice[e].DEFAULT_PRICE_FORMATTED : T.PAIRS_FOR_EXTENSION.originalPrice[e].DEFAULT_PRICE,
|
|
167
|
+
quantity: T.PAIRS_FOR_EXTENSION.quantity[e].DEFAULT,
|
|
168
|
+
button: T.PAIRS_FOR_EXTENSION.button[e].DEFAULT_LABEL
|
|
159
169
|
};
|
|
160
170
|
}
|
|
161
171
|
_updateImageSrc(e) {
|
|
162
|
-
var
|
|
163
|
-
const
|
|
164
|
-
|
|
172
|
+
var t;
|
|
173
|
+
const i = (t = this.currentNode) == null ? void 0 : t.querySelector(`[esd-extension-block-id="${l.IMAGE}"] img`);
|
|
174
|
+
i && this.api.getDocumentModifier().modifyHtml(i).setAttribute("src", e).apply(new d("Updated image src"));
|
|
165
175
|
}
|
|
166
176
|
_updateName(e) {
|
|
167
177
|
var n;
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
178
|
+
const i = (n = this.currentNode) == null ? void 0 : n.querySelector(`[esd-extension-block-id="${l.NAME}"]`);
|
|
179
|
+
if (!i)
|
|
170
180
|
return;
|
|
171
|
-
const
|
|
172
|
-
let r =
|
|
173
|
-
r = r.replace(
|
|
181
|
+
const t = i.getInnerText().trim();
|
|
182
|
+
let r = i.getInnerHTML();
|
|
183
|
+
r = r.replace(t, e), this.api.getDocumentModifier().modifyHtml(i).setInnerHtml(r).apply(new d("Updated name"));
|
|
174
184
|
}
|
|
175
185
|
_updatePrice(e) {
|
|
176
186
|
var g;
|
|
177
|
-
const
|
|
178
|
-
if (!t)
|
|
179
|
-
return;
|
|
180
|
-
const i = this._getParagraphFromBlock(t);
|
|
187
|
+
const i = (g = this.currentNode) == null ? void 0 : g.querySelector(`[esd-extension-block-id="${l.PRICE}"]`);
|
|
181
188
|
if (!i)
|
|
182
189
|
return;
|
|
183
|
-
const
|
|
184
|
-
|
|
190
|
+
const t = this._getParagraphFromBlock(i);
|
|
191
|
+
if (!t)
|
|
192
|
+
return;
|
|
193
|
+
const r = t.getInnerHTML() || "", n = t.getInnerText() || "", { currencySymbol: o, currencyLocation: a } = this.store, c = (o == null ? void 0 : o.trim()) || "", m = this._removeCurrencySymbol(n, c), u = this._replacePriceNumber(m, e), I = this._buildPriceContent(u, c, a), _ = r.replace(n, I);
|
|
194
|
+
this.api.getDocumentModifier().modifyHtml(t).setInnerHtml(_).apply(new d("Updated price"));
|
|
185
195
|
}
|
|
186
196
|
_updateOriginalPrice(e) {
|
|
187
|
-
var
|
|
188
|
-
const
|
|
189
|
-
`[esd-extension-block-id="${
|
|
197
|
+
var y;
|
|
198
|
+
const i = (y = this.currentNode) == null ? void 0 : y.querySelector(
|
|
199
|
+
`[esd-extension-block-id="${l.ORIGINAL_PRICE}"]`
|
|
190
200
|
);
|
|
191
|
-
if (!t)
|
|
192
|
-
return;
|
|
193
|
-
const i = this._getParagraphFromBlock(t);
|
|
194
201
|
if (!i)
|
|
195
202
|
return;
|
|
196
|
-
const
|
|
203
|
+
const t = this._getParagraphFromBlock(i);
|
|
204
|
+
if (!t)
|
|
205
|
+
return;
|
|
206
|
+
const r = t.querySelector("s");
|
|
197
207
|
if (!r)
|
|
198
208
|
return;
|
|
199
|
-
const n = r.getInnerHTML() || "", o = r.getInnerText() || "", { currencySymbol: a, currencyLocation:
|
|
200
|
-
this.api.getDocumentModifier().modifyHtml(
|
|
209
|
+
const n = r.getInnerHTML() || "", o = r.getInnerText() || "", { currencySymbol: a, currencyLocation: c } = this.store, m = (a == null ? void 0 : a.trim()) || "", u = this._removeCurrencySymbol(o, m), I = this._replacePriceNumber(u, e), _ = this._buildPriceContent(I, m, c), E = `<s>${n.replace(o, _)}</s>`;
|
|
210
|
+
this.api.getDocumentModifier().modifyHtml(t).setInnerHtml(E).apply(new d("Updated original price"));
|
|
201
211
|
}
|
|
202
212
|
_updateQuantity(e) {
|
|
203
213
|
var a;
|
|
204
|
-
const
|
|
205
|
-
if (!i)
|
|
206
|
-
return;
|
|
207
|
-
const r = i.getStyle("display") === "none", n = i.getInnerText().trim();
|
|
208
|
-
let o = i.getInnerHTML();
|
|
209
|
-
o = o.replace(n, e), this.api.getDocumentModifier().modifyHtml(i).setInnerHtml(o).setStyle("display", t && !r ? "table-cell" : "none").apply(new m("Updated quantity"));
|
|
210
|
-
}
|
|
211
|
-
_updateButton(e) {
|
|
212
|
-
var n;
|
|
213
|
-
const t = (n = this.currentNode) == null ? void 0 : n.querySelector(`[esd-extension-block-id="${c.BUTTON}"]`);
|
|
214
|
+
const i = this.store.itemsType !== S.ITEMS_TYPE.BROWSED_ITEMS, t = (a = this.currentNode) == null ? void 0 : a.querySelector(`[esd-extension-block-id="${l.QUANTITY}"]`);
|
|
214
215
|
if (!t)
|
|
215
216
|
return;
|
|
216
|
-
const
|
|
217
|
-
let
|
|
218
|
-
|
|
217
|
+
const r = t.getStyle("display") === "none", n = t.getInnerText().trim();
|
|
218
|
+
let o = t.getInnerHTML();
|
|
219
|
+
o = o.replace(n, e), this.api.getDocumentModifier().modifyHtml(t).setInnerHtml(o).setStyle("display", i && !r ? "table-cell" : "none").apply(new d("Updated quantity"));
|
|
219
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* @todo Optimize template reordering for performance.
|
|
223
|
+
* @description Reorders the template structure based on current orientation and visibility settings.
|
|
224
|
+
*/
|
|
220
225
|
_reOrderTemplate() {
|
|
221
|
-
var
|
|
222
|
-
const e = (
|
|
223
|
-
`[esd-extension-block-id="${
|
|
224
|
-
), n = (y = this.currentNode) == null ? void 0 : y.querySelector(`[esd-extension-block-id="${
|
|
225
|
-
if (!e || !
|
|
226
|
+
var I, _, g, E, y, O, C;
|
|
227
|
+
const e = (I = this.currentNode) == null ? void 0 : I.querySelector(`[esd-extension-block-id="${l.IMAGE}"]`), i = (_ = this.currentNode) == null ? void 0 : _.querySelector(`[esd-extension-block-id="${l.NAME}"]`), t = (g = this.currentNode) == null ? void 0 : g.querySelector(`[esd-extension-block-id="${l.PRICE}"]`), r = (E = this.currentNode) == null ? void 0 : E.querySelector(
|
|
228
|
+
`[esd-extension-block-id="${l.ORIGINAL_PRICE}"]`
|
|
229
|
+
), n = (y = this.currentNode) == null ? void 0 : y.querySelector(`[esd-extension-block-id="${l.QUANTITY}"]`), o = (O = this.currentNode) == null ? void 0 : O.querySelector(`[esd-extension-block-id="${l.BUTTON}"]`), a = (C = this.currentNode) == null ? void 0 : C.querySelector("esd-config-block");
|
|
230
|
+
if (!e || !i || !t || !r || !n || !o || !a)
|
|
231
|
+
return;
|
|
232
|
+
const { orientation: c } = this.store, m = c === S.ORIENTATION.VERTICAL;
|
|
233
|
+
let u = m ? F : U;
|
|
234
|
+
this.api.getDocumentModifier().modifyHtml(e.querySelector("img")).setAttribute("width", H.productImageWidth).apply(new d("Updated image width")), setTimeout(() => {
|
|
235
|
+
u = u.replace("{-{-TEMPLATE_FIRST_LINE-}-}", m ? R : "").replace("{-{-PRODUCT_IMAGE-}-}", e.getOuterHTML()).replace("{-{-PRODUCT_NAME-}-}", i.getOuterHTML()).replaceAll("{-{-PRODUCT_PRICE-}-}", t.getOuterHTML()).replaceAll("{-{-PRODUCT_ORIGINAL_PRICE-}-}", r.getOuterHTML()).replace("{-{-PRODUCT_QUANTITY-}-}", n.getOuterHTML()).replace("{-{-PRODUCT_BUTTON-}-}", o.getOuterHTML()).replace("{-{-CONFIG_BLOCK-}-}", a.getOuterHTML()), u = u.trim().replace(R, "").slice(0, -5), this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(u).apply(new d("Reordered template"));
|
|
236
|
+
}, 50);
|
|
237
|
+
}
|
|
238
|
+
_updateDataTypeAttributes(e) {
|
|
239
|
+
if (!this.currentNode)
|
|
226
240
|
return;
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
|
|
241
|
+
const i = this.currentNode.closest(".ins-product-td"), t = this.api.getDocumentModifier();
|
|
242
|
+
i && t.modifyHtml(i).setAttribute("data-type", e), this.currentNode.querySelectorAll("[data-type]").forEach((n) => {
|
|
243
|
+
const o = n;
|
|
244
|
+
t.modifyHtml(o).setAttribute("data-type", e);
|
|
245
|
+
}), t.apply(new d("Updated data-type attribute"));
|
|
246
|
+
}
|
|
247
|
+
_updateDataNumberAttributes(e) {
|
|
248
|
+
if (!this.currentNode)
|
|
249
|
+
return;
|
|
250
|
+
const { itemsType: i } = this.store, t = N[i].findIndex((c) => c.value === e);
|
|
251
|
+
let r = "1";
|
|
252
|
+
if (t >= 0)
|
|
253
|
+
r = String(t + 1);
|
|
254
|
+
else if (e) {
|
|
255
|
+
const c = e.match(/\((\d+)\)/);
|
|
256
|
+
if (c) {
|
|
257
|
+
const [, m] = c;
|
|
258
|
+
r = m;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const n = this.currentNode.closest(".ins-product-td"), o = this.api.getDocumentModifier();
|
|
262
|
+
n && o.modifyHtml(n).setAttribute("data-number", r), this.currentNode.querySelectorAll("[data-number]").forEach((c) => {
|
|
263
|
+
const m = c;
|
|
264
|
+
o.modifyHtml(m).setAttribute("data-number", r);
|
|
265
|
+
}), o.apply(new d("Updated data-number attribute"));
|
|
230
266
|
}
|
|
231
267
|
_reFillTemplate() {
|
|
232
268
|
const e = this._getTemplateData();
|
|
233
|
-
this._updateImageSrc(e.imageSrc), this._updateName(e.name), this._updatePrice(e.price), this._updateOriginalPrice(e.originalPrice), this._updateQuantity(e.quantity)
|
|
269
|
+
this._updateImageSrc(e.imageSrc), this._updateName(e.name), this._updatePrice(e.price), this._updateOriginalPrice(e.originalPrice), this._updateQuantity(e.quantity);
|
|
234
270
|
}
|
|
235
271
|
_recalculateTrimming() {
|
|
236
|
-
var
|
|
237
|
-
if (!this.
|
|
272
|
+
var n;
|
|
273
|
+
if (!this.currentNode)
|
|
238
274
|
return;
|
|
239
|
-
const e = (
|
|
275
|
+
const e = (n = this.currentNode) == null ? void 0 : n.querySelector(`[esd-extension-block-id="${l.NAME}"]`);
|
|
240
276
|
if (!e)
|
|
241
277
|
return;
|
|
242
|
-
const
|
|
243
|
-
if (!
|
|
278
|
+
const i = e.querySelector("p > a");
|
|
279
|
+
if (!i)
|
|
244
280
|
return;
|
|
245
|
-
const
|
|
246
|
-
this.api.getDocumentModifier().modifyHtml(
|
|
281
|
+
const t = this.store.orientation === S.ORIENTATION.VERTICAL, r = this.store.nameTrimming;
|
|
282
|
+
this.api.getDocumentModifier().modifyHtml(i).setStyle("overflow", "hidden").setStyle("white-space", r ? "nowrap" : "normal").setStyle("text-overflow", r ? "ellipsis" : "unset").setStyle("max-width", t ? "130px" : "520px").setStyle("width", t ? "130px" : "520px").apply(new d("Recalculated trimming after orientation change"));
|
|
247
283
|
}
|
|
248
284
|
_getParagraphFromBlock(e) {
|
|
249
285
|
return e.querySelector("p");
|
|
@@ -251,30 +287,30 @@ class z extends b {
|
|
|
251
287
|
_escapeRegex(e) {
|
|
252
288
|
return e.replace(/[-\\^$*+?().|[\]{}]/g, "\\$&");
|
|
253
289
|
}
|
|
254
|
-
_removeCurrencySymbol(e,
|
|
255
|
-
const
|
|
256
|
-
let r =
|
|
257
|
-
if (
|
|
258
|
-
const n = new RegExp(`\\s*${this._escapeRegex(
|
|
259
|
-
r =
|
|
290
|
+
_removeCurrencySymbol(e, i) {
|
|
291
|
+
const t = e || "";
|
|
292
|
+
let r = t;
|
|
293
|
+
if (i) {
|
|
294
|
+
const n = new RegExp(`\\s*${this._escapeRegex(i)}\\s*`);
|
|
295
|
+
r = t.replace(n, "").trim();
|
|
260
296
|
} else {
|
|
261
|
-
const n =
|
|
297
|
+
const n = t.match(/([^0-9.,\s]+)/);
|
|
262
298
|
if (n && n[1]) {
|
|
263
299
|
const o = n[1].trim(), a = new RegExp(`\\s*${this._escapeRegex(o)}\\s*`);
|
|
264
|
-
r =
|
|
300
|
+
r = t.replace(a, "").trim();
|
|
265
301
|
}
|
|
266
302
|
}
|
|
267
303
|
return r;
|
|
268
304
|
}
|
|
269
|
-
_replacePriceNumber(e,
|
|
270
|
-
const
|
|
271
|
-
return e.replace(
|
|
305
|
+
_replacePriceNumber(e, i) {
|
|
306
|
+
const t = /([0-9][0-9,.]*)/;
|
|
307
|
+
return e.replace(t, i).trim();
|
|
272
308
|
}
|
|
273
|
-
_buildPriceContent(e,
|
|
274
|
-
return
|
|
309
|
+
_buildPriceContent(e, i, t) {
|
|
310
|
+
return i ? t === "1" ? `${e} ${i} ` : `${i} ${e}` : e;
|
|
275
311
|
}
|
|
276
312
|
}
|
|
277
313
|
export {
|
|
278
|
-
|
|
279
|
-
|
|
314
|
+
G as CONTROL_BLOCK_ID,
|
|
315
|
+
te as ItemsBlockControl
|
|
280
316
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var c = /* @__PURE__ */ ((i) => (i.BUTTON = "items-block-button", i.IMAGE = "items-block-image", i.ORIGINAL_PRICE = "items-block-original-price", i.PRICE = "items-block-price", i.QUANTITY = "items-block-quantity", i.NAME = "items-block-name", i))(c || {}),
|
|
1
|
+
var c = /* @__PURE__ */ ((i) => (i.BUTTON = "items-block-button", i.IMAGE = "items-block-image", i.ORIGINAL_PRICE = "items-block-original-price", i.PRICE = "items-block-price", i.QUANTITY = "items-block-quantity", i.NAME = "items-block-name", i))(c || {}), t = /* @__PURE__ */ ((i) => (i.BUTTON_ALIGN = "items-block-button-align-control", i.BUTTON_BORDER = "items-block-button-border-control", i.BUTTON_BORDER_RADIUS = "items-block-button-border-radius-control", i.BUTTON_COLOR = "items-block-button-color-control", i.BUTTON_FIT_TO_CONTENT = "items-block-button-fit-to-content-control", i.BUTTON_FONT_FAMILY = "items-block-button-font-family-control", i.BUTTON_MARGINS = "items-block-button-margins-control", i.BUTTON_PADDINGS = "items-block-button-paddings-control", i.BUTTON_TEXT = "items-block-button-text-control", i.BUTTON_TEXT_SIZE = "items-block-button-text-size-control", i.BUTTON_TEXT_STYLE_AND_FONT_COLOR = "items-block-button-text-style-and-font-color-control", i.BUTTON_LINK = "items-block-button-link-control", i.IMAGE_SIZE = "items-block-image-size-control", i.IMAGE_MARGINS = "items-block-image-margins-control", i.IMAGE_LINK = "items-block-image-link-control", i.ORIGINAL_PRICE_ALIGN = "items-block-original-price-align-control", i.ORIGINAL_PRICE_COLOR = "items-block-original-price-color-control", i.ORIGINAL_PRICE_SIZE = "items-block-original-price-size-control", i.ORIGINAL_PRICE_STYLE = "items-block-original-price-style-control", i.ORIGINAL_PRICE_FONT_FAMILY = "items-block-original-price-font-family-control", i.ORIGINAL_PRICE_BACKGROUND = "items-block-original-price-background-control", i.ORIGINAL_PRICE_PADDINGS = "items-block-original-price-paddings-control", i.PRICE_ALIGN = "items-block-price-align-control", i.PRICE_COLOR = "items-block-price-color-control", i.PRICE_SIZE = "items-block-price-size-control", i.PRICE_STYLE = "items-block-price-style-control", i.PRICE_FONT_FAMILY = "items-block-price-font-family-control", i.PRICE_BACKGROUND = "items-block-price-background-control", i.PRICE_PADDINGS = "items-block-price-paddings-control", i.PRICE_HIDE_DISCOUNT = "items-block-price-hide-discount-control", i.PRICE_FORMATTED_PRICE = "items-block-price-formatted-price-control", i.PRICE_CURRENCY_SYMBOL = "items-block-price-currency-symbol-control", i.PRICE_CURRENCY_LOCATION = "items-block-price-currency-location-control", i.PRICE_ORIENTATION = "items-block-price-orientation-control", i.NAME_ALIGN = "items-block-name-align-control", i.NAME_COLOR = "items-block-name-color-control", i.NAME_SIZE = "items-block-name-size-control", i.NAME_STYLE = "items-block-name-style-control", i.NAME_FONT_FAMILY = "items-block-name-font-family-control", i.NAME_BACKGROUND = "items-block-name-background-control", i.NAME_TRIMMING = "items-block-name-trimming-control", i.NAME_PADDINGS = "items-block-name-paddings-control", i.QUANTITY_ALIGN = "items-block-quantity-align-control", i.QUANTITY_COLOR = "items-block-quantity-color-control", i.QUANTITY_FONT_FAMILY = "items-block-quantity-font-family-control", i.QUANTITY_PADDINGS = "items-block-quantity-paddings-control", i.QUANTITY_SIZE = "items-block-quantity-size-control", i.QUANTITY_STYLE = "items-block-quantity-style-control", i))(t || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as ItemsBlockControlId,
|
|
4
4
|
c as ItemsBlockId
|
|
5
5
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import _ from "../../../../node_modules/lodash-es/flatMap.js";
|
|
2
|
+
import i from "../../../../node_modules/lodash-es/range.js";
|
|
3
|
+
const o = '<td align="center" class="ins-product-td items-block items-block-v2">', R = {
|
|
2
4
|
TYPE: "data-type",
|
|
3
5
|
ITEMS_INDEX_SELECT_CONTROL_VALUE: "data-cart_items_select_control_value",
|
|
4
6
|
ORIENTATION: "data-card_orientation_control_value",
|
|
@@ -7,6 +9,7 @@ const e = {
|
|
|
7
9
|
PRODUCT_PRICE_FORMATTED: "data-product_price_formatted",
|
|
8
10
|
PRODUCT_PRICE_CURRENCY_SYMBOL: "data-product_price_currency_symbol",
|
|
9
11
|
PRODUCT_PRICE_CURRENCY_LOCATION: "data-product_price_currency_location",
|
|
12
|
+
PRODUCT_ORIGINAL_PRICE_CONTROL_ORIENTATION: "data-product_original_price_control_orientation",
|
|
10
13
|
PRODUCT_BUTTON_LINK: "data-product_button_link",
|
|
11
14
|
PRODUCT_IMAGE_LINK: "data-product_image_link",
|
|
12
15
|
PRODUCT_NAME_CONTROL_VALUE: "data-product_name_control_value",
|
|
@@ -22,7 +25,7 @@ const e = {
|
|
|
22
25
|
PRODUCT_PRICE_VISIBLE: "data-product_price_visible",
|
|
23
26
|
PRODUCT_ORIGINAL_PRICE_VISIBLE: "data-product_original_price_visible",
|
|
24
27
|
PRODUCT_BUTTON_VISIBLE: "data-product_button_visible"
|
|
25
|
-
},
|
|
28
|
+
}, t = { PAIRS_FOR_EXTENSION: {
|
|
26
29
|
imageSrc: {
|
|
27
30
|
CART_ITEMS: {
|
|
28
31
|
ATTR: "ins_apr_img",
|
|
@@ -193,9 +196,79 @@ const e = {
|
|
|
193
196
|
DEFAULT_HREF: "#!",
|
|
194
197
|
DEFAULT_LABEL: "Buy"
|
|
195
198
|
}
|
|
199
|
+
},
|
|
200
|
+
itemLink: {
|
|
201
|
+
CART_ITEMS: {
|
|
202
|
+
HREF: "ins_apr_url",
|
|
203
|
+
DEFAULT_HREF: "#!"
|
|
204
|
+
},
|
|
205
|
+
BROWSED_ITEMS: {
|
|
206
|
+
HREF: "browsed_item_url",
|
|
207
|
+
DEFAULT_HREF: "#!"
|
|
208
|
+
},
|
|
209
|
+
PURCHASED_ITEMS: {
|
|
210
|
+
HREF: "purchased_item_url",
|
|
211
|
+
DEFAULT_HREF: "#!"
|
|
212
|
+
}
|
|
196
213
|
}
|
|
197
214
|
} };
|
|
215
|
+
function m(e, a = 8) {
|
|
216
|
+
return i(1, a + 1).map((s) => `${e}_${s}`);
|
|
217
|
+
}
|
|
218
|
+
function r() {
|
|
219
|
+
const { PAIRS_FOR_EXTENSION: e } = t, a = [];
|
|
220
|
+
return a.push(
|
|
221
|
+
e.imageSrc.CART_ITEMS.ATTR,
|
|
222
|
+
e.imageSrc.BROWSED_ITEMS.ATTR,
|
|
223
|
+
e.imageSrc.PURCHASED_ITEMS.ATTR
|
|
224
|
+
), a.push(
|
|
225
|
+
e.name.CART_ITEMS.ATTR,
|
|
226
|
+
e.name.CART_ITEMS.HREF,
|
|
227
|
+
e.name.BROWSED_ITEMS.ATTR,
|
|
228
|
+
e.name.BROWSED_ITEMS.HREF,
|
|
229
|
+
e.name.PURCHASED_ITEMS.ATTR,
|
|
230
|
+
e.name.PURCHASED_ITEMS.HREF
|
|
231
|
+
), a.push(
|
|
232
|
+
e.quantity.CART_ITEMS.ATTR,
|
|
233
|
+
e.quantity.BROWSED_ITEMS.ATTR,
|
|
234
|
+
e.quantity.PURCHASED_ITEMS.ATTR
|
|
235
|
+
), a.push(
|
|
236
|
+
e.price.CART_ITEMS.PRICE,
|
|
237
|
+
e.price.CART_ITEMS.PRICE_FORMATTED,
|
|
238
|
+
e.price.CART_ITEMS.CURRENCY,
|
|
239
|
+
e.price.BROWSED_ITEMS.PRICE,
|
|
240
|
+
e.price.BROWSED_ITEMS.PRICE_FORMATTED,
|
|
241
|
+
e.price.BROWSED_ITEMS.CURRENCY,
|
|
242
|
+
e.price.PURCHASED_ITEMS.PRICE,
|
|
243
|
+
e.price.PURCHASED_ITEMS.PRICE_FORMATTED,
|
|
244
|
+
e.price.PURCHASED_ITEMS.CURRENCY
|
|
245
|
+
), a.push(
|
|
246
|
+
e.originalPrice.CART_ITEMS.PRICE,
|
|
247
|
+
e.originalPrice.CART_ITEMS.PRICE_FORMATTED,
|
|
248
|
+
e.originalPrice.CART_ITEMS.CURRENCY,
|
|
249
|
+
e.originalPrice.BROWSED_ITEMS.PRICE,
|
|
250
|
+
e.originalPrice.BROWSED_ITEMS.PRICE_FORMATTED,
|
|
251
|
+
e.originalPrice.BROWSED_ITEMS.CURRENCY,
|
|
252
|
+
e.originalPrice.PURCHASED_ITEMS.PRICE,
|
|
253
|
+
e.originalPrice.PURCHASED_ITEMS.PRICE_FORMATTED,
|
|
254
|
+
e.originalPrice.PURCHASED_ITEMS.CURRENCY
|
|
255
|
+
), a.push(
|
|
256
|
+
e.button.CART_ITEMS.HREF,
|
|
257
|
+
e.button.BROWSED_ITEMS.HREF,
|
|
258
|
+
e.button.PURCHASED_ITEMS.HREF
|
|
259
|
+
), a.push(
|
|
260
|
+
e.itemLink.CART_ITEMS.HREF,
|
|
261
|
+
e.itemLink.BROWSED_ITEMS.HREF,
|
|
262
|
+
e.itemLink.PURCHASED_ITEMS.HREF
|
|
263
|
+
), a;
|
|
264
|
+
}
|
|
265
|
+
const p = _(
|
|
266
|
+
r(),
|
|
267
|
+
(e) => m(e)
|
|
268
|
+
);
|
|
198
269
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
270
|
+
R as configAttributes,
|
|
271
|
+
p as itemsBlockDynamicVariables,
|
|
272
|
+
t as productPairs,
|
|
273
|
+
o as templateFirstLine
|
|
201
274
|
};
|
|
@@ -19,7 +19,7 @@ const e = {
|
|
|
19
19
|
itemsType: e.ITEMS_TYPE.CART_ITEMS,
|
|
20
20
|
cartItemsSelectControlValue: "{{Abandoned Cart Item (1) Url}}",
|
|
21
21
|
cardOrientationControlValue: e.ORIENTATION.HORIZONTAL,
|
|
22
|
-
productNameTrimmingControlValue: "
|
|
22
|
+
productNameTrimmingControlValue: "1",
|
|
23
23
|
productPriceHideDiscountControlValue: "0",
|
|
24
24
|
productPriceFormattedControlValue: "1",
|
|
25
25
|
productPriceCurrencySymbolControlValue: "USD",
|
|
@@ -34,7 +34,8 @@ const e = {
|
|
|
34
34
|
productQuantityVisible: "1",
|
|
35
35
|
productPriceVisible: "1",
|
|
36
36
|
productOriginalPriceVisible: "1",
|
|
37
|
-
productButtonVisible: "1"
|
|
37
|
+
productButtonVisible: "1",
|
|
38
|
+
productImageWidth: "70"
|
|
38
39
|
}, o = {
|
|
39
40
|
[e.ITEMS_TYPE.CART_ITEMS]: [
|
|
40
41
|
{ text: "Abandoned Cart Item (1)", value: "{{Abandoned Cart Item (1) Url}}" },
|
|
@@ -3,17 +3,18 @@ import { ItemsBlock as i } from "./block.js";
|
|
|
3
3
|
import { ButtonLinkControl as C } from "./controls/button/link.js";
|
|
4
4
|
import { ItemsBlockCardCompositionControl as e } from "./controls/cardComposition.js";
|
|
5
5
|
import { ImageLinkControl as m } from "./controls/image/link.js";
|
|
6
|
-
import { NameControls as
|
|
6
|
+
import { NameControls as r, QuantityControls as n, OriginalPriceControls as t, PriceControls as d, ImageControls as l, ButtonControls as o } from "./controls/index.js";
|
|
7
7
|
import { NameTrimmingControl as s } from "./controls/name/trimming.js";
|
|
8
8
|
import { PriceCurrencyLocationControl as c } from "./controls/price/currencyLocation.js";
|
|
9
9
|
import { PriceCurrencySymbolControl as g } from "./controls/price/currencySymbol.js";
|
|
10
10
|
import { PriceFormattedPriceControl as f } from "./controls/price/formattedPrice.js";
|
|
11
11
|
import { PriceHideDiscountControl as p } from "./controls/price/hideDiscount.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { PriceOrientationControl as y } from "./controls/price/priceOrientation.js";
|
|
13
|
+
import { ItemsBlockControl as u } from "./controls/settingsControl.js";
|
|
14
|
+
import { ItemsIconsRegistry as P } from "./iconsRegistry.js";
|
|
14
15
|
import k from "./items.css.js";
|
|
15
|
-
import { SettingsPanel as
|
|
16
|
-
const
|
|
16
|
+
import { SettingsPanel as I } from "./settingsPanel.js";
|
|
17
|
+
const H = new a().addBlock(i).withSettingsPanelRegistry(I).addControl(u).addControl(e).addControl(r.align).addControl(r.color).addControl(r.size).addControl(r.style).addControl(r.fontFamily).addControl(r.background).addControl(r.paddings).addControl(s).addControl(n.align).addControl(n.color).addControl(n.fontFamily).addControl(n.paddings).addControl(n.size).addControl(n.style).addControl(t.align).addControl(t.color).addControl(t.size).addControl(t.style).addControl(t.fontFamily).addControl(t.background).addControl(t.paddings).addControl(d.align).addControl(d.color).addControl(d.size).addControl(d.style).addControl(d.fontFamily).addControl(d.background).addControl(d.paddings).addControl(p).addControl(f).addControl(g).addControl(c).addControl(y).addControl(m).addControl(l.size).addControl(l.margins).addControl(C).addControl(o.align).addControl(o.border).addControl(o.borderRadius).addControl(o.color).addControl(o.fontFamily).addControl(o.margins).addControl(o.paddings).addControl(o.text).addControl(o.textSize).addControl(o.textStyleAndFontColor).addControl(o.fitToContent).addStyles(k).withIconsRegistry(P).build();
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
+
H as default
|
|
19
20
|
};
|