@useinsider/guido 3.13.1-beta.695671e → 3.13.1-beta.98d403f

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.
@@ -0,0 +1,9 @@
1
+ import { createBlockBackgroundColorControl as o } from "../../../controlFactories.js";
2
+ const c = "checkbox-block-background-color-control", r = ".checkbox-block-v2", k = o(
3
+ c,
4
+ r
5
+ );
6
+ export {
7
+ c as CHECKBOX_BLOCK_BACKGROUND_CONTROL_ID,
8
+ k as CheckboxBlockBackgroundControl
9
+ };
@@ -1,9 +1,10 @@
1
1
  import { ExtensionBuilder as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { CheckboxBlock as t } from "./block.js";
3
- import { CheckboxControl as e } from "./control.js";
4
- import { CheckboxIconsRegistry as r } from "./iconsRegistry.js";
5
- import { CheckboxBlockSettings as i } from "./settingsPanel.js";
6
- const d = new o().addBlock(t).withSettingsPanelRegistry(i).addControl(e).withIconsRegistry(r).build();
3
+ import { CheckboxControl as r } from "./control.js";
4
+ import { CheckboxBlockBackgroundControl as e } from "./controls/blockBackground/index.js";
5
+ import { CheckboxIconsRegistry as i } from "./iconsRegistry.js";
6
+ import { CheckboxBlockSettings as n } from "./settingsPanel.js";
7
+ const C = new o().addBlock(t).withSettingsPanelRegistry(n).addControl(r).addControl(e).withIconsRegistry(i).build();
7
8
  export {
8
- d as default
9
+ C as default
9
10
  };
@@ -1,25 +1,26 @@
1
- import { SettingsPanelRegistry as C, SettingsPanelTab as t, SettingsTab as e, ContainerControls as n, TextControls as r } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { CHECKBOX_BLOCK_ID as s } from "./block.js";
3
- import { CHECKBOX_CONTROL_BLOCK_ID as T } from "./control.js";
4
- class l extends C {
5
- registerBlockControls(o) {
6
- o[s] = [
1
+ import { SettingsPanelRegistry as C, SettingsPanelTab as t, SettingsTab as o, ContainerControls as r } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { CHECKBOX_BLOCK_ID as n } from "./block.js";
3
+ import { CHECKBOX_CONTROL_BLOCK_ID as i } from "./control.js";
4
+ import { CHECKBOX_BLOCK_BACKGROUND_CONTROL_ID as s } from "./controls/blockBackground/index.js";
5
+ class m extends C {
6
+ registerBlockControls(e) {
7
+ e[n] = [
7
8
  new t(
8
- e.SETTINGS,
9
+ o.SETTINGS,
9
10
  [
10
- T,
11
- n.EXTERNAL_INDENTS
11
+ i,
12
+ r.EXTERNAL_INDENTS
12
13
  ]
13
14
  ),
14
15
  new t(
15
- e.STYLES,
16
+ o.STYLES,
16
17
  [
17
- r.TEXT_BLOCK_BACKGROUND_COLOR
18
+ s
18
19
  ]
19
20
  )
20
21
  ];
21
22
  }
22
23
  }
23
24
  export {
24
- l as CheckboxBlockSettings
25
+ m as CheckboxBlockSettings
25
26
  };
@@ -1,31 +1,30 @@
1
- import { ModificationDescription as l, UIElementType as s, UEAttr as d } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { CommonControl as p } from "../../../common-control.js";
3
- import { ItemsBlockControlId as a } from "../../enums/controlEnums.js";
4
- import { findNameTextNode as T } from "../../utils/nameNode.js";
5
- import { getItemsBlockConfig as r, setItemsBlockConfig as c } from "../../utils/nodeConfigUtils.js";
6
- const g = a.NAME_TRIMMING, i = {
1
+ import { ModificationDescription as d, UIElementType as a, UEAttr as p } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { CommonControl as T } from "../../../common-control.js";
3
+ import { ItemsBlockControlId as l } from "../../enums/controlEnums.js";
4
+ import { getItemsBlockConfig as o, setItemsBlockConfig as c } from "../../utils/nodeConfigUtils.js";
5
+ const g = l.NAME_TRIMMING, i = {
7
6
  TRIMMING: "trimming"
8
7
  };
9
- class y extends p {
8
+ class y extends T {
10
9
  getId() {
11
10
  return g;
12
11
  }
13
12
  getTemplate() {
14
13
  return `
15
- <div class="container ${a.NAME_TRIMMING}">
14
+ <div class="container ${l.NAME_TRIMMING}">
16
15
  ${this._getTextTrimming()}
17
16
  </div>
18
17
  `;
19
18
  }
20
19
  onRender() {
21
- const e = r(this.currentNode);
20
+ const e = o(this.currentNode);
22
21
  this.api.updateValues({ [i.TRIMMING]: (e == null ? void 0 : e.nameTrimming) ?? !0 }), this.api.onValueChanged(i.TRIMMING, (t) => {
23
22
  this._onTrimmingChange(t);
24
23
  });
25
24
  }
26
25
  onTemplateNodeUpdated(e) {
27
26
  super.onTemplateNodeUpdated(e), this.handleBlockInstanceChange(() => {
28
- const t = r(this.currentNode);
27
+ const t = o(this.currentNode);
29
28
  this.api.updateValues({ [i.TRIMMING]: (t == null ? void 0 : t.nameTrimming) ?? !0 });
30
29
  });
31
30
  }
@@ -33,19 +32,20 @@ class y extends p {
33
32
  c(this.currentNode, this.api, { nameTrimming: e }), this.api.updateValues({ [i.TRIMMING]: e }), this._applyTrimmingStyles(e);
34
33
  }
35
34
  _applyTrimmingStyles(e) {
36
- const t = T(this.currentNode);
35
+ var m;
36
+ const t = (m = this.currentNode) == null ? void 0 : m.querySelector("p > a");
37
37
  if (!t)
38
38
  return;
39
- const n = r(this.currentNode), m = e !== void 0 ? e : (n == null ? void 0 : n.nameTrimming) ?? !0, o = this.api.getDocumentModifier().modifyHtml(t);
40
- m ? o.setStyle("white-space", "nowrap").setStyle("overflow", "hidden").setStyle("text-overflow", "ellipsis") : o.removeStyle("white-space").removeStyle("overflow").removeStyle("text-overflow"), o.setStyle("max-width", "100%").apply(new l(`Text Trimming ${m ? "Enabled" : "Disabled"}`));
39
+ const n = o(this.currentNode), s = e !== void 0 ? e : (n == null ? void 0 : n.nameTrimming) ?? !0, r = this.api.getDocumentModifier().modifyHtml(t);
40
+ s ? r.setStyle("white-space", "nowrap").setStyle("overflow", "hidden").setStyle("text-overflow", "ellipsis") : r.removeStyle("white-space").removeStyle("overflow").removeStyle("text-overflow"), r.setStyle("max-width", "100%").apply(new d(`Text Trimming ${s ? "Enabled" : "Disabled"}`));
41
41
  }
42
42
  _getTextTrimming() {
43
43
  return `
44
44
  <div class="display-flex align-items-center justify-content-between">
45
- <${s.LABEL}
46
- ${d.LABEL.text}="${this.api.translate("Text Trimming")}"
45
+ <${a.LABEL}
46
+ ${p.LABEL.text}="${this.api.translate("Text Trimming")}"
47
47
  >
48
- </${s.LABEL}>
48
+ </${a.LABEL}>
49
49
  ${this._GuToggle(i.TRIMMING)}
50
50
  </div>
51
51
  `;
@@ -1,21 +1,20 @@
1
- import { ModificationDescription as S, UEAttr as L } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
1
+ import { ModificationDescription as y, UEAttr as L } from "../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { CommonControl as k } from "../../common-control.js";
3
3
  import { ItemsBlockId as I } from "../enums/controlEnums.js";
4
- import { productPairs as y, templateFirstLine as D } from "../enums/productEnums.js";
4
+ import { productPairs as N, templateFirstLine as D } from "../enums/productEnums.js";
5
5
  import { SETTINGS_ENUMS as d, ItemTypeOptions as x, OrientationOptions as F, ItemInCartOptions as O, DefaultConfigValues as H } from "../enums/settingsEnums.js";
6
6
  import $ from "../layouts/horizontal.html.js";
7
- import w from "../layouts/vertical.html.js";
8
- import { getDefaultTemplate as q, wrapInTableRow as C } from "../template.js";
9
- import { findNameTextNode as V } from "../utils/nameNode.js";
10
- import { getItemsBlockConfig as _, setItemsBlockConfig as M, escapeReplacement as g, deriveItemNumber as B } from "../utils/nodeConfigUtils.js";
11
- const G = "ui-elements-items-block", m = {
7
+ import q from "../layouts/vertical.html.js";
8
+ import { getDefaultTemplate as w, wrapInTableRow as C } from "../template.js";
9
+ import { getItemsBlockConfig as _, setItemsBlockConfig as M, escapeReplacement as g, deriveItemNumber as V } from "../utils/nodeConfigUtils.js";
10
+ const B = "ui-elements-items-block", m = {
12
11
  ITEMS_TYPE: "itemsType",
13
12
  ORIENTATION: "orientation",
14
13
  ITEM_IDS: "itemIds"
15
14
  };
16
- class te extends k {
15
+ class Z extends k {
17
16
  getId() {
18
- return G;
17
+ return B;
19
18
  }
20
19
  getTemplate() {
21
20
  return `
@@ -87,7 +86,7 @@ class te extends k {
87
86
  M(this.currentNode, this.api, {
88
87
  orientation: e,
89
88
  priceOrientation: "horizontal"
90
- }, r), r.apply(new S("Changed orientation")), this._reOrderTemplate(), setTimeout(() => {
89
+ }, r), r.apply(new y("Changed orientation")), this._reOrderTemplate(), setTimeout(() => {
91
90
  this._recalculateTrimming();
92
91
  }, 50);
93
92
  }
@@ -104,7 +103,7 @@ class te extends k {
104
103
  buttonLink: n
105
104
  }, o), this._updateDataTypeAttributes(r, o), this._initializeSelectItems();
106
105
  const c = this._getTemplateData(r, i.value);
107
- this._updateImageSrc(c.imageSrc, o), this._updateName(c.name, o), this._updatePrice(c.price, o), this._updateOriginalPrice(c.originalPrice, o), this._updateQuantity(c.quantity, r, o), o.apply(new S("Updated items type"));
106
+ this._updateImageSrc(c.imageSrc, o), this._updateName(c.name, o), this._updatePrice(c.price, o), this._updateOriginalPrice(c.originalPrice, o), this._updateQuantity(c.quantity, r, o), o.apply(new y("Updated items type"));
108
107
  }
109
108
  _onItemIdsChange(e) {
110
109
  this.api.updateValues({ [m.ITEM_IDS]: e });
@@ -115,7 +114,7 @@ class te extends k {
115
114
  buttonLink: r
116
115
  }, i), this._updateDataNumberAttributes(e, i);
117
116
  const n = this._getTemplateData(void 0, e);
118
- this._updateImageSrc(n.imageSrc, i), this._updateName(n.name, i), this._updatePrice(n.price, i), this._updateOriginalPrice(n.originalPrice, i), this._updateQuantity(n.quantity, void 0, i), i.apply(new S("Updated item selection"));
117
+ this._updateImageSrc(n.imageSrc, i), this._updateName(n.name, i), this._updatePrice(n.price, i), this._updateOriginalPrice(n.originalPrice, i), this._updateQuantity(n.quantity, void 0, i), i.apply(new y("Updated item selection"));
119
118
  }
120
119
  _initializeSelectItems() {
121
120
  this.api.setUIEAttribute(
@@ -150,25 +149,25 @@ class te extends k {
150
149
  }
151
150
  _renderTemplate() {
152
151
  const e = _(this.currentNode), r = (e == null ? void 0 : e.orientation) ?? d.ORIENTATION.VERTICAL, t = (e == null ? void 0 : e.type) ?? d.ITEMS_TYPE.CART_ITEMS, i = (e == null ? void 0 : e.itemsSelectValue) ?? "", n = (e == null ? void 0 : e.priceCurrencySymbol) ?? "", s = (e == null ? void 0 : e.priceCurrencyLocation) ?? "0", o = (e == null ? void 0 : e.priceFormatted) ?? !1;
153
- this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(q({
152
+ this.api.getDocumentModifier().modifyHtml(this.currentNode).setInnerHtml(w({
154
153
  orientation: r,
155
154
  itemsType: t,
156
155
  itemId: i,
157
156
  currencySymbol: n,
158
157
  currencyLocation: s,
159
158
  formattedPrice: o
160
- })).apply(new S("Updated template"));
159
+ })).apply(new y("Updated template"));
161
160
  }
162
161
  _getTemplateData(e, r) {
163
- const t = _(this.currentNode), i = e ?? (t == null ? void 0 : t.type) ?? d.ITEMS_TYPE.CART_ITEMS, n = r ?? (t == null ? void 0 : t.itemsSelectValue) ?? "", s = (t == null ? void 0 : t.priceFormatted) ?? !1, o = (t == null ? void 0 : t.priceSinglePrice) ?? !1, c = O[i].findIndex((h) => h.value === n), a = c > -1 ? c : 0, l = y.PAIRS_FOR_EXTENSION.price[i], T = y.PAIRS_FOR_EXTENSION.originalPrice[i];
162
+ const t = _(this.currentNode), i = e ?? (t == null ? void 0 : t.type) ?? d.ITEMS_TYPE.CART_ITEMS, n = r ?? (t == null ? void 0 : t.itemsSelectValue) ?? "", s = (t == null ? void 0 : t.priceFormatted) ?? !1, o = (t == null ? void 0 : t.priceSinglePrice) ?? !1, c = O[i].findIndex((h) => h.value === n), a = c > -1 ? c : 0, l = N.PAIRS_FOR_EXTENSION.price[i], T = N.PAIRS_FOR_EXTENSION.originalPrice[i];
164
163
  let u, p;
165
164
  return o ? (u = s ? l.DEFAULT_SINGLE_PRICE_FORMATTED : l.DEFAULT_SINGLE_PRICE, p = s ? T.DEFAULT_SINGLE_PRICE_FORMATTED : T.DEFAULT_SINGLE_PRICE) : (u = s ? l.DEFAULT_PRICE_FORMATTED : l.DEFAULT_PRICE, p = s ? T.DEFAULT_PRICE_FORMATTED : T.DEFAULT_PRICE), {
166
- imageSrc: y.PAIRS_FOR_EXTENSION.imageSrc[i].DEFAULT[a],
167
- name: y.PAIRS_FOR_EXTENSION.name[i].DEFAULT[a],
165
+ imageSrc: N.PAIRS_FOR_EXTENSION.imageSrc[i].DEFAULT[a],
166
+ name: N.PAIRS_FOR_EXTENSION.name[i].DEFAULT[a],
168
167
  price: u,
169
168
  originalPrice: p,
170
- quantity: y.PAIRS_FOR_EXTENSION.quantity[i].DEFAULT,
171
- button: y.PAIRS_FOR_EXTENSION.button[i].DEFAULT_LABEL
169
+ quantity: N.PAIRS_FOR_EXTENSION.quantity[i].DEFAULT,
170
+ button: N.PAIRS_FOR_EXTENSION.button[i].DEFAULT_LABEL
172
171
  };
173
172
  }
174
173
  _updateImageSrc(e, r) {
@@ -194,8 +193,8 @@ class te extends k {
194
193
  const a = this._getParagraphFromBlock(c);
195
194
  if (!a)
196
195
  return;
197
- const l = a.getInnerHTML().trim() || "", T = a.getInnerText().trim() || "", u = (n == null ? void 0 : n.trim()) || "", p = this._removeCurrencySymbol(T, u), h = this._replacePriceNumber(p, e), E = this._buildPriceContent(h, u, s), N = l.replace(T, g(E));
198
- r.modifyHtml(a).setInnerHtml(N);
196
+ const l = a.getInnerHTML().trim() || "", T = a.getInnerText().trim() || "", u = (n == null ? void 0 : n.trim()) || "", p = this._removeCurrencySymbol(T, u), h = this._replacePriceNumber(p, e), E = this._buildPriceContent(h, u, s), S = l.replace(T, g(E));
197
+ r.modifyHtml(a).setInnerHtml(S);
199
198
  });
200
199
  }
201
200
  _updateOriginalPrice(e, r) {
@@ -210,7 +209,7 @@ class te extends k {
210
209
  const l = a.querySelector("s");
211
210
  if (!l)
212
211
  return;
213
- const T = l.getInnerHTML().trim() || "", u = l.getInnerText().trim() || "", p = (n == null ? void 0 : n.trim()) || "", h = this._removeCurrencySymbol(u, p), E = this._replacePriceNumber(h, e), N = this._buildPriceContent(E, p, s), R = `<s>${T.replace(u, g(N))}</s>`;
212
+ const T = l.getInnerHTML().trim() || "", u = l.getInnerText().trim() || "", p = (n == null ? void 0 : n.trim()) || "", h = this._removeCurrencySymbol(u, p), E = this._replacePriceNumber(h, e), S = this._buildPriceContent(E, p, s), R = `<s>${T.replace(u, g(S))}</s>`;
214
213
  r.modifyHtml(a).setInnerHtml(R);
215
214
  });
216
215
  }
@@ -224,17 +223,17 @@ class te extends k {
224
223
  return;
225
224
  const T = l.getInnerText().trim();
226
225
  let u = l.getInnerHTML().trim();
227
- function p(E, N, A) {
226
+ function p(E, S, A) {
228
227
  return E.replace(
229
- new RegExp(`(>\\s*)?${N}(\\s*<)?`, "g"),
228
+ new RegExp(`(>\\s*)?${S}(\\s*<)?`, "g"),
230
229
  `$1${A}$2`
231
230
  );
232
231
  }
233
232
  u = p(u, T, e), t.modifyHtml(l).setInnerHtml(u), t.modifyHtml(a).setStyle("display", c ? "table-cell" : "none");
234
233
  }
235
234
  _reOrderTemplate(e) {
236
- var h, E, N, A, R, b;
237
- const r = (h = this.currentNode) == null ? void 0 : h.querySelector(`[esd-extension-block-id="${I.IMAGE}"]`), t = (E = this.currentNode) == null ? void 0 : E.querySelector(`[esd-extension-block-id="${I.NAME}"]`), i = ((N = this.currentNode) == null ? void 0 : N.querySelectorAll(
235
+ var h, E, S, A, R, b;
236
+ const r = (h = this.currentNode) == null ? void 0 : h.querySelector(`[esd-extension-block-id="${I.IMAGE}"]`), t = (E = this.currentNode) == null ? void 0 : E.querySelector(`[esd-extension-block-id="${I.NAME}"]`), i = ((S = this.currentNode) == null ? void 0 : S.querySelectorAll(
238
237
  `[esd-extension-block-id="${I.PRICE}"]`
239
238
  )) || [], n = ((A = this.currentNode) == null ? void 0 : A.querySelectorAll(
240
239
  `[esd-extension-block-id="${I.ORIGINAL_PRICE}"]`
@@ -242,12 +241,12 @@ class te extends k {
242
241
  if (!r || !t || !s || !o || !c || !a)
243
242
  return;
244
243
  const l = _(this.currentNode), u = ((l == null ? void 0 : l.orientation) ?? d.ORIENTATION.VERTICAL) === d.ORIENTATION.VERTICAL;
245
- let p = u ? w : $;
244
+ let p = u ? q : $;
246
245
  setTimeout(() => {
247
- const f = g(s.getOuterHTML()), U = g(o.getOuterHTML());
248
- p = p.replace("{-{-TEMPLATE_FIRST_LINE-}-}", u ? D : "").replace("{-{-PRODUCT_IMAGE-}-}", C(r.getOuterHTML())).replace("{-{-PRODUCT_NAME-}-}", C(t.getOuterHTML())).replaceAll("{-{-PRODUCT_PRICE-}-}", C(f)).replaceAll("{-{-PRODUCT_ORIGINAL_PRICE-}-}", C(U)).replace("{-{-PRODUCT_QUANTITY-}-}", C(c.getOuterHTML())).replace("{-{-PRODUCT_BUTTON-}-}", C(a.getOuterHTML())), p = p.trim().replace(D, "").slice(0, -5);
246
+ const U = g(s.getOuterHTML()), f = g(o.getOuterHTML());
247
+ p = p.replace("{-{-TEMPLATE_FIRST_LINE-}-}", u ? D : "").replace("{-{-PRODUCT_IMAGE-}-}", C(r.getOuterHTML())).replace("{-{-PRODUCT_NAME-}-}", C(t.getOuterHTML())).replaceAll("{-{-PRODUCT_PRICE-}-}", C(U)).replaceAll("{-{-PRODUCT_ORIGINAL_PRICE-}-}", C(f)).replace("{-{-PRODUCT_QUANTITY-}-}", C(c.getOuterHTML())).replace("{-{-PRODUCT_BUTTON-}-}", C(a.getOuterHTML())), p = p.trim().replace(D, "").slice(0, -5);
249
248
  const P = e ?? this.api.getDocumentModifier();
250
- P.modifyHtml(r.querySelector("img")).setAttribute("width", H.productImageWidth).setAttribute("height", H.productImageWidth), P.modifyHtml(this.currentNode).setInnerHtml(p), e || P.apply(new S("Reordered template"));
249
+ P.modifyHtml(r.querySelector("img")).setAttribute("width", H.productImageWidth).setAttribute("height", H.productImageWidth), P.modifyHtml(this.currentNode).setInnerHtml(p), e || P.apply(new y("Reordered template"));
251
250
  }, 50);
252
251
  }
253
252
  _updateDataTypeAttributes(e, r) {
@@ -262,7 +261,7 @@ class te extends k {
262
261
  _updateDataNumberAttributes(e, r) {
263
262
  if (!this.currentNode)
264
263
  return;
265
- const t = _(this.currentNode), i = (t == null ? void 0 : t.type) ?? d.ITEMS_TYPE.CART_ITEMS, n = B(e, i), s = this.currentNode.closest(".ins-product-td");
264
+ const t = _(this.currentNode), i = (t == null ? void 0 : t.type) ?? d.ITEMS_TYPE.CART_ITEMS, n = V(e, i), s = this.currentNode.closest(".ins-product-td");
266
265
  s && r.modifyHtml(s).setAttribute("data-number", n), this.currentNode.querySelectorAll("[data-number]").forEach((c) => {
267
266
  const a = c;
268
267
  r.modifyHtml(a).setAttribute("data-number", n);
@@ -270,7 +269,7 @@ class te extends k {
270
269
  }
271
270
  _reFillTemplate(e) {
272
271
  const r = this._getTemplateData(e), t = this.api.getDocumentModifier();
273
- this._updateImageSrc(r.imageSrc, t), this._updateName(r.name, t), this._updatePrice(r.price, t), this._updateOriginalPrice(r.originalPrice, t), this._updateQuantity(r.quantity, e, t), t.apply(new S("Refilled template"));
272
+ this._updateImageSrc(r.imageSrc, t), this._updateName(r.name, t), this._updatePrice(r.price, t), this._updateOriginalPrice(r.originalPrice, t), this._updateQuantity(r.quantity, e, t), t.apply(new y("Refilled template"));
274
273
  }
275
274
  _recalculateTrimming() {
276
275
  var n;
@@ -279,11 +278,11 @@ class te extends k {
279
278
  const e = (n = this.currentNode) == null ? void 0 : n.querySelector(`[esd-extension-block-id="${I.NAME}"]`);
280
279
  if (!e)
281
280
  return;
282
- const r = V(e);
281
+ const r = e.querySelector("p > a");
283
282
  if (!r)
284
283
  return;
285
284
  const t = _(this.currentNode), i = (t == null ? void 0 : t.nameTrimming) ?? !0;
286
- this.api.getDocumentModifier().modifyHtml(r).setStyle("overflow", "hidden").setStyle("white-space", i ? "nowrap" : "normal").setStyle("text-overflow", i ? "ellipsis" : "unset").setStyle("max-width", "100%").setStyle("width", "100%").apply(new S("Recalculated trimming after orientation change"));
285
+ this.api.getDocumentModifier().modifyHtml(r).setStyle("overflow", "hidden").setStyle("white-space", i ? "nowrap" : "normal").setStyle("text-overflow", i ? "ellipsis" : "unset").setStyle("max-width", "100%").setStyle("width", "100%").apply(new y("Recalculated trimming after orientation change"));
287
286
  }
288
287
  _getParagraphFromBlock(e) {
289
288
  return e.querySelector("p");
@@ -315,6 +314,6 @@ class te extends k {
315
314
  }
316
315
  }
317
316
  export {
318
- G as CONTROL_BLOCK_ID,
319
- te as ItemsBlockControl
317
+ B as CONTROL_BLOCK_ID,
318
+ Z as ItemsBlockControl
320
319
  };