@useinsider/guido 3.0.0-beta.7d3a300 → 3.0.0-beta.952fc1f

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.
Files changed (58) hide show
  1. package/dist/config/i18n/en/tooltips.json.js +1 -2
  2. package/dist/extensions/Blocks/Recommendation/block.js +56 -38
  3. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +1 -1
  4. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +36 -34
  5. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +4 -4
  6. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +15 -15
  7. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +24 -24
  8. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +2 -2
  9. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +107 -78
  10. package/dist/extensions/Blocks/Recommendation/controls/{layout/index.js → main/layoutOrientation.js} +35 -27
  11. package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +2 -2
  12. package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +58 -0
  13. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +150 -64
  14. package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +2 -2
  15. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +198 -204
  16. package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +25 -8
  17. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +6 -5
  18. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +8 -8
  19. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +21 -21
  20. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +13 -13
  21. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +17 -17
  22. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +134 -142
  23. package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +65 -0
  24. package/dist/extensions/Blocks/Recommendation/extension.js +13 -13
  25. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +35 -0
  26. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +21 -15
  27. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -0
  28. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +27 -27
  29. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
  30. package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +17 -16
  31. package/dist/extensions/Blocks/common-control.js +90 -41
  32. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +218 -324
  33. package/dist/package.json.js +1 -1
  34. package/dist/src/extensions/Blocks/Recommendation/constants/controlIds.d.ts +2 -1
  35. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +2 -2
  36. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +5 -1
  37. package/dist/src/extensions/Blocks/Recommendation/controls/{layout/index.d.ts → main/layoutOrientation.d.ts} +3 -3
  38. package/dist/src/extensions/Blocks/Recommendation/controls/main/productCount.d.ts +28 -0
  39. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +38 -20
  40. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +4 -2
  41. package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +23 -1
  42. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +8 -18
  43. package/dist/src/extensions/Blocks/Recommendation/controls/syncInfoMessage.d.ts +34 -0
  44. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -0
  45. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +13 -0
  46. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
  47. package/dist/src/extensions/Blocks/common-control.d.ts +24 -2
  48. package/dist/static/styles/components/button.css.js +7 -13
  49. package/dist/static/styles/components/narrow-panel.css.js +0 -52
  50. package/dist/static/styles/components/wide-panel.css.js +1 -0
  51. package/dist/static/styles/customEditorStyle.css.js +9 -0
  52. package/package.json +3 -3
  53. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +0 -25
  54. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +0 -15
  55. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +0 -15
  56. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +0 -15
  57. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +0 -15
  58. package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +0 -60
@@ -1,8 +1,8 @@
1
- import { SettingsPanelRegistry as S, SettingsPanelTab as _, SettingsTab as O, ContainerControls as E, TextControls as C } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { BLOCK_ID as R } from "./block.js";
1
+ import { SettingsPanelRegistry as E, SettingsPanelTab as _, SettingsTab as O, ContainerControls as C, TextControls as R } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
+ import { BLOCK_ID as U } from "./block.js";
3
3
  import { RecommendationBlockId as N } from "./constants/blockIds.js";
4
4
  import { RecommendationControlId as T } from "./constants/controlIds.js";
5
- import { CONTROL_BLOCK_ID as U } from "./controls/main/index.js";
5
+ import { CONTROL_BLOCK_ID as A } from "./controls/main/index.js";
6
6
  import "./store/recommendation.js";
7
7
  import "./controls/name/index.js";
8
8
  import "./controls/price/index.js";
@@ -11,27 +11,26 @@ import "./controls/omnibusPrice/index.js";
11
11
  import "./controls/omnibusDiscount/index.js";
12
12
  import "./controls/button/index.js";
13
13
  import "./controls/image/index.js";
14
- import { SPACING_CONTROL_ID as A } from "./controls/spacing/index.js";
15
- import { CARD_BACKGROUND_COLOR_CONTROL_ID as L } from "./controls/cardBackground/index.js";
16
- import { LAYOUT_CONTROL_ID as D } from "./controls/layout/index.js";
14
+ import { SPACING_CONTROL_ID as L } from "./controls/spacing/index.js";
15
+ import { CARD_BACKGROUND_COLOR_CONTROL_ID as D } from "./controls/cardBackground/index.js";
17
16
  import { COMPOSITION_CONTROL_BLOCK_ID as B } from "./controls/cardComposition/index.js";
18
- class d extends S {
17
+ import { SYNC_INFO_MESSAGE_CONTROL_ID as S } from "./controls/syncInfoMessage.js";
18
+ class Z extends E {
19
19
  registerBlockControls(I) {
20
- I[R] = [
20
+ I[U] = [
21
21
  new _(
22
22
  O.SETTINGS,
23
23
  [
24
- U,
25
- E.EXTERNAL_INDENTS
24
+ A,
25
+ C.EXTERNAL_INDENTS
26
26
  ]
27
27
  ),
28
28
  new _(
29
29
  O.STYLES,
30
30
  [
31
- C.TEXT_BLOCK_BACKGROUND_COLOR,
32
- L,
31
+ R.TEXT_BLOCK_BACKGROUND_COLOR,
33
32
  D,
34
- A
33
+ L
35
34
  ]
36
35
  ),
37
36
  new _(
@@ -39,11 +38,12 @@ class d extends S {
39
38
  [
40
39
  B
41
40
  ]
42
- ).withLabel("Card Composition")
41
+ ).withLabel(this.api.translate("Card Composition"))
43
42
  ], I[N.NAME] = [
44
43
  new _(
45
44
  O.SETTINGS,
46
45
  [
46
+ S,
47
47
  T.NAME_STYLE,
48
48
  T.NAME_ALIGN,
49
49
  T.NAME_TEXT_TRIM,
@@ -63,6 +63,7 @@ class d extends S {
63
63
  new _(
64
64
  O.SETTINGS,
65
65
  [
66
+ S,
66
67
  T.PRICE_STYLE,
67
68
  T.PRICE_ALIGN,
68
69
  T.PRICE_PADDINGS
@@ -81,6 +82,7 @@ class d extends S {
81
82
  new _(
82
83
  O.SETTINGS,
83
84
  [
85
+ S,
84
86
  T.OLD_PRICE_STYLE,
85
87
  T.OLD_PRICE_ALIGN,
86
88
  T.OLD_PRICE_PADDINGS
@@ -99,6 +101,7 @@ class d extends S {
99
101
  new _(
100
102
  O.SETTINGS,
101
103
  [
104
+ S,
102
105
  T.OMNIBUS_PRICE_TEXT_BEFORE,
103
106
  T.OMNIBUS_PRICE_TEXT_AFTER,
104
107
  T.OMNIBUS_PRICE_STYLE,
@@ -119,6 +122,7 @@ class d extends S {
119
122
  new _(
120
123
  O.SETTINGS,
121
124
  [
125
+ S,
122
126
  T.OMNIBUS_DISCOUNT_TEXT_BEFORE,
123
127
  T.OMNIBUS_DISCOUNT_TEXT_AFTER,
124
128
  T.OMNIBUS_DISCOUNT_STYLE,
@@ -139,6 +143,7 @@ class d extends S {
139
143
  new _(
140
144
  O.SETTINGS,
141
145
  [
146
+ S,
142
147
  T.BUTTON_TEXT,
143
148
  T.BUTTON_ALIGN,
144
149
  T.BUTTON_PADDINGS,
@@ -179,6 +184,7 @@ class d extends S {
179
184
  new _(
180
185
  O.SETTINGS,
181
186
  [
187
+ S,
182
188
  T.IMAGE_SIZE,
183
189
  T.IMAGE_MARGINS
184
190
  ]
@@ -187,5 +193,5 @@ class d extends S {
187
193
  }
188
194
  }
189
195
  export {
190
- d as SettingsPanel
196
+ Z as SettingsPanel
191
197
  };
@@ -25,6 +25,7 @@ function I() {
25
25
  productIds: [],
26
26
  id: 1,
27
27
  language: "en_US",
28
+ mobileLayoutEnabled: !1,
28
29
  orientation: "grid",
29
30
  recommendedProducts: [],
30
31
  sendProductRequestFlag: !1,
@@ -1,7 +1,7 @@
1
- import { DEFAULT_PRODUCTS_PER_ROW as m, DEFAULT_MOBILE_CARDS_IN_ROW as E } from "../../constants/layout.js";
2
- import { DEFAULT_CARD_COMPOSITION as I, spacer as _, getDefaultProducts as S, createBlockTemplate as b, DEFAULTS as A, buildElementRenderer as D, DEFAULT_CARD_VISIBILITY as w } from "../utils.js";
3
- import { gridElementRenderer as f, ATTRIBUTE_CELL_CLASS as C, DEFAULT_CELL_PADDING as O } from "./elementRenderer.js";
4
- const U = `
1
+ import { DEFAULT_PRODUCTS_PER_ROW as m } from "../../constants/layout.js";
2
+ import { DEFAULT_CARD_COMPOSITION as L, spacer as E, getDefaultProducts as I, createBlockTemplate as _, DEFAULTS as S, buildElementRenderer as b, DEFAULT_CARD_VISIBILITY as A } from "../utils.js";
3
+ import { gridElementRenderer as f, ATTRIBUTE_CELL_CLASS as w, DEFAULT_CELL_PADDING as D } from "./elementRenderer.js";
4
+ const C = `
5
5
  <tr class="recommendation-product-row">
6
6
  <td>
7
7
  <table
@@ -18,7 +18,7 @@ const U = `
18
18
  </table>
19
19
  </td>
20
20
  </tr>
21
- `, g = `
21
+ `, O = `
22
22
  <tr
23
23
  class="recommendation-attribute-row"
24
24
  data-attribute-type="{-{-ATTR_TYPE-}-}"
@@ -27,37 +27,37 @@ const U = `
27
27
  {-{-CELLS-}-}
28
28
  </tr>
29
29
  `;
30
- function P(t, e, l, o = I) {
31
- const n = (100 / e).toFixed(2), c = e - t.length, r = `<td class="${C}" style="padding: ${O};" width="${n}%"></td>`, i = c > 0 ? r.repeat(c) : "", a = D(l, o);
32
- return o.filter((s) => a[s]).map((s) => {
33
- const p = w[s] ?? !0, u = p ? "" : 'style="display: none;"', R = t.map((L) => a[s](L).replace("<td", `<td width="${n}%"`)).join("");
34
- return g.replace("{-{-ATTR_TYPE-}-}", s).replace("{-{-VISIBILITY-}-}", p ? "1" : "0").replace("{-{-DISPLAY_STYLE-}-}", u).replace("{-{-CELLS-}-}", R + i);
30
+ function g(t, e, l, n = L) {
31
+ const o = (100 / e).toFixed(2), a = e - t.length, r = `<td class="${w}" style="padding: ${D};" width="${o}%"></td>`, i = a > 0 ? r.repeat(a) : "", s = b(l, n);
32
+ return n.filter((c) => s[c]).map((c) => {
33
+ const p = A[c] ?? !0, T = p ? "" : 'style="display: none;"', u = t.map((R) => s[c](R).replace("<td", `<td width="${o}%"`)).join("");
34
+ return O.replace("{-{-ATTR_TYPE-}-}", c).replace("{-{-VISIBILITY-}-}", p ? "1" : "0").replace("{-{-DISPLAY_STYLE-}-}", T).replace("{-{-CELLS-}-}", u + i);
35
35
  }).join("");
36
36
  }
37
- function h(t, e, l, o) {
38
- const n = [];
37
+ function P(t, e, l, n) {
38
+ const o = [];
39
39
  for (let r = 0; r < t.length; r += e)
40
- n.push(t.slice(r, r + e));
41
- return n.map((r, i) => {
42
- const a = P(
40
+ o.push(t.slice(r, r + e));
41
+ return o.map((r, i) => {
42
+ const s = g(
43
43
  r,
44
44
  e,
45
45
  l,
46
- o
47
- ), d = U.replace("{-{-ATTRIBUTE_ROWS-}-}", a);
48
- return i > 0 ? _ + d : d;
46
+ n
47
+ ), d = C.replace("{-{-ATTRIBUTE_ROWS-}-}", s);
48
+ return i > 0 ? E + d : d;
49
49
  }).join("");
50
50
  }
51
- function T(t, e, l) {
52
- return h(t, e, f, l);
51
+ function U(t, e, l) {
52
+ return P(t, e, f, l);
53
53
  }
54
- function F(t) {
55
- const e = t ? `ins-recommendation-v3-block-${t}` : void 0, l = b("grid", e), o = S(), n = T(o, m), c = T(o, E);
56
- return l.replace("{-{-TITLE-}-}", A.TITLE).replace("{-{-PRODUCT_ROWS-}-}", n).replace("{-{-MOBILE_PRODUCT_ROWS-}-}", c);
54
+ function W(t) {
55
+ const e = t ? `ins-recommendation-v3-block-${t}` : void 0, l = _("grid", e), n = I(), o = U(n, m);
56
+ return l.replace("{-{-TITLE-}-}", S.TITLE).replace("{-{-PRODUCT_ROWS-}-}", o).replace("{-{-MOBILE_PRODUCT_ROWS-}-}", "");
57
57
  }
58
58
  export {
59
- F as getDefaultTemplate,
60
- P as prepareGridAttributeRows,
61
- h as prepareGridProductRows,
62
- T as prepareProductRows
59
+ W as getDefaultTemplate,
60
+ g as prepareGridAttributeRows,
61
+ P as prepareGridProductRows,
62
+ U as prepareProductRows
63
63
  };
@@ -1,10 +1,10 @@
1
1
  function a(t) {
2
2
  return typeof t == "object" && t !== null && "tagName" in t && typeof t.tagName == "string";
3
3
  }
4
- function n(t) {
4
+ function r(t) {
5
5
  return typeof t == "object" && t !== null && "getTagName" in t && typeof t.getTagName == "function";
6
6
  }
7
- function r(t) {
7
+ function n(t) {
8
8
  return typeof t == "object" && t !== null && "getStyle" in t && typeof t.getStyle == "function";
9
9
  }
10
10
  function u(t) {
@@ -14,13 +14,13 @@ function g(t) {
14
14
  return typeof t == "object" && t !== null && "tagName" in t && t.tagName === "TD";
15
15
  }
16
16
  function p(t, e) {
17
- return !t || !r(t) ? null : t.getStyle(e);
17
+ return !t || !n(t) ? null : t.getStyle(e);
18
18
  }
19
19
  function N(t) {
20
- return !t || !u(t) ? null : t.parent() ?? null;
20
+ return !t || !u(t) ? null : t.parent();
21
21
  }
22
22
  function l(t, e = "UNKNOWN") {
23
- return t ? a(t) ? t.tagName.toUpperCase() : n(t) ? t.getTagName().toUpperCase() : e : e;
23
+ return t ? a(t) ? t.tagName.toUpperCase() : r(t) ? t.getTagName().toUpperCase() : e : e;
24
24
  }
25
25
  const f = /* @__PURE__ */ new Set(["TD", "BLOCK_IMAGE", "BLOCK_BUTTON"]);
26
26
  function i(t) {
@@ -36,7 +36,7 @@ function s(t) {
36
36
  export {
37
37
  s as getTableDisplayValue,
38
38
  l as getTagName,
39
- r as hasGetStyle,
39
+ n as hasGetStyle,
40
40
  u as hasParent,
41
41
  c as isTableCellNode,
42
42
  i as isTableCellTag,
@@ -1,34 +1,35 @@
1
- import { SettingsPanelRegistry as e, SettingsPanelTab as O, SettingsTab as t, TextControls as N } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
1
+ import { SettingsPanelRegistry as e, SettingsPanelTab as N, SettingsTab as t, TextControls as O } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
2
  import { UNSUBSCRIBE_BLOCK_ID as I } from "./block.js";
3
3
  import { UNSUBSCRIBE_CONTROL_ID as _ } from "./control.js";
4
- class o extends e {
4
+ class R extends e {
5
5
  registerBlockControls(T) {
6
6
  T[I] = [
7
- new O(
7
+ new N(
8
8
  t.SETTINGS,
9
9
  [
10
10
  _,
11
- N.FORMAT,
12
- N.ALIGN,
13
- N.LINE_HEIGHT,
14
- N.DIRECTION,
15
- N.INTERNAL_INDENTS,
16
- N.HIDDEN_NODE
11
+ O.FORMAT,
12
+ O.ALIGN,
13
+ O.LINE_HEIGHT,
14
+ O.DIRECTION,
15
+ O.INTERNAL_INDENTS,
16
+ O.HIDDEN_NODE
17
17
  ]
18
18
  ),
19
- new O(
19
+ new N(
20
20
  t.STYLES,
21
21
  [
22
- N.TEXT_BLOCK_BACKGROUND_COLOR,
23
- N.FONT_FAMILY,
24
- N.FONT_SIZE,
25
- N.FONT_COLOR,
26
- N.FONT_BACKGROUND_COLOR
22
+ O.TEXT_BLOCK_BACKGROUND_COLOR,
23
+ O.FONT_FAMILY,
24
+ O.FONT_SIZE,
25
+ O.FONT_COLOR,
26
+ O.FONT_BACKGROUND_COLOR,
27
+ O.LINKS_COLOR
27
28
  ]
28
29
  )
29
30
  ];
30
31
  }
31
32
  }
32
33
  export {
33
- o as SettingsPanel
34
+ R as SettingsPanel
34
35
  };
@@ -1,8 +1,8 @@
1
- var l = Object.defineProperty;
2
- var O = (T, r, e) => r in T ? l(T, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : T[r] = e;
3
- var u = (T, r, e) => O(T, typeof r != "symbol" ? r + "" : r, e);
4
- import { Control as c, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
- class _ extends c {
1
+ var c = Object.defineProperty;
2
+ var i = (s, r, e) => r in s ? c(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
+ var u = (s, r, e) => i(s, typeof r != "symbol" ? r + "" : r, e);
4
+ import { Control as I, UIElementType as n, UEAttr as $ } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
5
+ class d extends I {
6
6
  constructor() {
7
7
  super(...arguments);
8
8
  u(this, "currentNode");
@@ -47,17 +47,66 @@ class _ extends c {
47
47
  const t = this.getBlockInstanceId();
48
48
  if (!t)
49
49
  return !1;
50
- const E = t !== this.lastBlockInstanceId;
51
- return e(), E && (this.lastBlockInstanceId = t), E;
50
+ const o = t !== this.lastBlockInstanceId;
51
+ return e(), o && (this.lastBlockInstanceId = t), o;
52
52
  }
53
- _GuLabel({ text: e, name: t = "" }) {
53
+ _GuLabel({ text: e, name: t = "", hint: o }) {
54
54
  return `
55
- <${n.LABEL}
56
- ${$.LABEL.text}="${e}"
57
- ${$.LABEL.name}="${t || `${e} Label`}">
55
+ <${n.LABEL}
56
+ ${$.LABEL.text}="${e}"
57
+ ${$.LABEL.name}="${t || `${e} Label`}"
58
+ ${o ? `${$.LABEL.hint}="${o}"` : ""}>
58
59
  </${n.LABEL}>
59
60
  `;
60
61
  }
62
+ _GuMessage({ name: e = "", type: t = "info" }) {
63
+ return `
64
+ <${n.MESSAGE}
65
+ ${$.MESSAGE.type}="${t}"
66
+ ${$.MESSAGE.name}="${e}"
67
+ >
68
+ </${n.MESSAGE}>
69
+ `;
70
+ }
71
+ /**
72
+ * Returns template HTML for an info message with an optional icon.
73
+ * Use in getTemplate() — the icon is registered in a hidden store so Stripo initializes it.
74
+ * Pair with _setInfoMessageValue() in onRender() to set the text content.
75
+ */
76
+ _GuOnPageMessage({ name: e, icon: t = "not-found", type: o = "info" }) {
77
+ return `
78
+ <div data-info-message="${e}" style="display: none; padding: 16px 16px 0;">
79
+ <div class="icon-store" style="display: none;">
80
+ <div data-icon-key="${e}">
81
+ ${this._GuIcon({ src: t, className: "icon" })}
82
+ </div>
83
+ </div>
84
+ ${this._GuMessage({ name: e, type: o })}
85
+ </div>
86
+ `;
87
+ }
88
+ /**
89
+ * Sets the info message value with the pre-registered icon.
90
+ * Use in onRender() — reads the icon's outerHTML from the hidden store
91
+ * and combines it with the text in Stripo's alert-message layout.
92
+ */
93
+ _setInfoMessageValue(e, t) {
94
+ const o = this.getContainer(), E = o.querySelector(`[data-icon-key="${e}"]`), a = E == null ? void 0 : E.querySelector("ue-icon-component"), l = (a == null ? void 0 : a.outerHTML) ?? "";
95
+ this.api.setUIEAttribute(
96
+ e,
97
+ "value",
98
+ `
99
+ <div class="service-element alert-message-main" style="align-items: start;">
100
+ ${l}
101
+ <div class="service-element alert-message-text">
102
+ ${t}
103
+ </div>
104
+ </div>
105
+ `
106
+ );
107
+ const T = o.querySelector(`[data-info-message="${e}"]`);
108
+ T && (T.style.display = "");
109
+ }
61
110
  _GuToggle(e) {
62
111
  return `
63
112
  <${n.SWITCHER}
@@ -72,59 +121,59 @@ class _ extends c {
72
121
  ${$.SELECT_ITEM.value}="${t}">
73
122
  </${n.SELECT_ITEM}>`;
74
123
  }
75
- _GuSelect({ name: e, placeholder: t, options: E, className: o = "es-180w" }) {
124
+ _GuSelect({ name: e, placeholder: t, options: o, className: E = "es-180w" }) {
76
125
  return `
77
126
  <${n.SELECTPICKER}
78
- class="${o}"
127
+ class="${E}"
79
128
  ${$.SELECTPICKER.name}="${e}"
80
129
  ${$.SELECTPICKER.placeholder}="${t}">
81
- ${E.map((a) => this._GuSelectItem(a)).join("")}
130
+ ${o.map((a) => this._GuSelectItem(a)).join("")}
82
131
  </${n.SELECTPICKER}>
83
132
  `;
84
133
  }
85
- _GuTextInput({ name: e, placeholder: t, className: E = "", disabled: o = !1 }) {
134
+ _GuTextInput({ name: e, placeholder: t, className: o = "", disabled: E = !1 }) {
86
135
  return `
87
136
  <${n.TEXT}
88
- class=${E}
137
+ class=${o}
89
138
  ${$.TEXT.name}="${e}"
90
139
  placeholder="${t || e}"
91
- ${o ? `${$.TEXT.disabled}="true"` : ""}>
140
+ ${E ? `${$.TEXT.disabled}="true"` : ""}>
92
141
  </${n.TEXT}>
93
142
  `;
94
143
  }
95
- _GuCounter({ name: e, maxValue: t, minValue: E = 1, step: o = 1 }) {
144
+ _GuCounter({ name: e, maxValue: t, minValue: o = 1, step: E = 1 }) {
96
145
  return `
97
146
  <${n.COUNTER}
98
147
  ${$.COUNTER.name}="${e}"
99
- ${$.COUNTER.minValue}="${E}"
148
+ ${$.COUNTER.minValue}="${o}"
100
149
  ${$.COUNTER.maxValue}="${t}"
101
- ${$.COUNTER.step}="${o}">
150
+ ${$.COUNTER.step}="${E}">
102
151
  </${n.COUNTER}>
103
152
  `;
104
153
  }
105
- _GuRadioButtonItem({ text: e, value: t, icon: E }) {
154
+ _GuRadioButtonItem({ text: e, value: t, icon: o }) {
106
155
  return `
107
156
  <${n.RADIO_ITEM}
108
157
  ${$.RADIO_ITEM.value}="${t}"
109
158
  ${e ? `${$.RADIO_ITEM.text}="${e}"` : ""}
110
- ${E ? `${$.RADIO_ITEM.icon}="${E}"` : ""}>
159
+ ${o ? `${$.RADIO_ITEM.icon}="${o}"` : ""}>
111
160
  </${n.RADIO_ITEM}>
112
161
  `;
113
162
  }
114
- _GuRadioButton({ name: e, buttons: t, id: E = "" }) {
163
+ _GuRadioButton({ name: e, buttons: t, id: o = "" }) {
115
164
  return `
116
165
  <${n.RADIO_BUTTONS}
117
- ${E ? `id="${E}"` : ""}
166
+ ${o ? `id="${o}"` : ""}
118
167
  ${$.RADIO_BUTTONS.name}="${e}">
119
- ${t.map((o) => this._GuRadioButtonItem(o)).join("")}
168
+ ${t.map((E) => this._GuRadioButtonItem(E)).join("")}
120
169
  </${n.RADIO_BUTTONS}>
121
170
  `;
122
171
  }
123
- _GuButton({ name: e, label: t, id: E = "" }) {
172
+ _GuButton({ name: e, label: t, id: o = "" }) {
124
173
  return `
125
174
  <${n.BUTTON}
126
175
  ${$.BUTTON.name}="${e}"
127
- ${E ? `id="${E}"` : ""}
176
+ ${o ? `id="${o}"` : ""}
128
177
  ${$.BUTTON.caption}="${t}"}>
129
178
  </${n.BUTTON}>
130
179
  `;
@@ -142,10 +191,10 @@ class _ extends c {
142
191
  * @param param0
143
192
  * @returns It returns a button with an icon.
144
193
  */
145
- _GuIconButton({ name: e, icon: t, className: E = "" }) {
194
+ _GuIconButton({ name: e, icon: t, className: o = "" }) {
146
195
  return `
147
196
  <${n.BUTTON}
148
- class="${E}"
197
+ class="${o}"
149
198
  ${$.BUTTON.name}="${e}"
150
199
  ${$.BUTTON.icon}="${t}">
151
200
  </${n.BUTTON}>
@@ -173,19 +222,19 @@ class _ extends c {
173
222
  * @returns HTML string for the orderable control
174
223
  */
175
224
  _GuOrderable(e, t) {
176
- let E = "";
225
+ let o = "";
177
226
  t.forEach((a) => {
178
- const I = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
179
- E += `
180
- <${n.ORDERABLE_ITEM} ${I}="${a.key}">
227
+ const l = $.ORDERABLE_ITEM && "name" in $.ORDERABLE_ITEM ? $.ORDERABLE_ITEM.name : "name";
228
+ o += `
229
+ <${n.ORDERABLE_ITEM} ${l}="${a.key}">
181
230
  ${a.content}
182
231
  </${n.ORDERABLE_ITEM}>
183
232
  `;
184
233
  });
185
- const o = $.ORDERABLE && "name" in $.ORDERABLE ? $.ORDERABLE.name : "name";
234
+ const E = $.ORDERABLE && "name" in $.ORDERABLE ? $.ORDERABLE.name : "name";
186
235
  return `
187
- <${n.ORDERABLE} ${o}="${e}">
188
- ${E}
236
+ <${n.ORDERABLE} ${E}="${e}">
237
+ ${o}
189
238
  </${n.ORDERABLE}>
190
239
  `;
191
240
  }
@@ -226,16 +275,16 @@ class _ extends c {
226
275
  `;
227
276
  }
228
277
  _GuRadioButtons(e, t) {
229
- const E = t.map((o) => `
278
+ const o = t.map((E) => `
230
279
  <${n.RADIO_ITEM}
231
- ${$.RADIO_ITEM.text}="${o.text}"
232
- ${$.RADIO_ITEM.value}="${o.value}">
280
+ ${$.RADIO_ITEM.text}="${E.text}"
281
+ ${$.RADIO_ITEM.value}="${E.value}">
233
282
  </${n.RADIO_ITEM}>
234
283
  `).join("");
235
284
  return `
236
285
  <${n.RADIO_BUTTONS}
237
286
  ${$.RADIO_BUTTONS.name}="${e}">
238
- ${E}
287
+ ${o}
239
288
  </${n.RADIO_BUTTONS}>
240
289
  `;
241
290
  }
@@ -249,5 +298,5 @@ class _ extends c {
249
298
  }
250
299
  }
251
300
  export {
252
- _ as CommonControl
301
+ d as CommonControl
253
302
  };