@orangelogic/design-system 3.42.0 → 3.44.0

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 (44) hide show
  1. package/library/chunks/{bicolor-picker.BFLMj79r.js → bicolor-picker.pEuB5d7x.js} +1 -1
  2. package/library/chunks/{config-manager.utils.BvTZWpSg.js → block-width.C1BPe6lP.js} +433 -404
  3. package/library/chunks/{border-input-group.DvjGBsxF.js → border-input-group.D0_n4dvI.js} +1 -1
  4. package/library/chunks/{color-picker.CJL_5JjX.js → color-picker.DwYmn7LF.js} +2 -2
  5. package/library/chunks/{color-swatch-group.CWPweLjs.js → color-swatch-group.Pm-mqCgt.js} +13 -13
  6. package/library/chunks/{config-manager.LNBg46oc.js → config-manager.B3oU6rhe.js} +135 -129
  7. package/library/chunks/{configs-controller.CCJxfSjT.js → configs-controller.D3ER8OhT.js} +7 -3
  8. package/library/chunks/{confirm-popover.Difhn86O.js → confirm-popover.DENzK8Zo.js} +1 -1
  9. package/library/chunks/{document-viewer.c03KTUv2.js → document-viewer.C5yuaeGH.js} +3 -3
  10. package/library/chunks/{dropdown.jv7u3Wm8.js → dropdown.Bap8f8gT.js} +1 -1
  11. package/library/chunks/{file-on-demand.7OPAGIG4.js → file-on-demand.DZEBSyi3.js} +2 -2
  12. package/library/chunks/{menu-item.BpILLN4i.js → menu-item.FZopoctH.js} +1 -1
  13. package/library/chunks/{menu.BPTg0Ebu.js → menu.C7zSpVh7.js} +1 -1
  14. package/library/chunks/{shadow-input-group.ByN6pEvN.js → shadow-input-group.Dp6ME7lP.js} +1 -1
  15. package/library/chunks/{src.3xfb7ora.js → src.E-9k1EYO.js} +7 -7
  16. package/library/chunks/{tab-group.n9Wud7bJ.js → tab-group.BgkjcwaU.js} +3 -3
  17. package/library/components/asset-link-format.js +1 -1
  18. package/library/components/atoms.js +11 -11
  19. package/library/components/bicolor-picker.js +1 -1
  20. package/library/components/border-input-group.js +1 -1
  21. package/library/components/color-picker.js +1 -1
  22. package/library/components/color-swatch-group.js +1 -1
  23. package/library/components/confirm-popover.js +1 -1
  24. package/library/components/document-viewer.js +1 -1
  25. package/library/components/dropdown.js +1 -1
  26. package/library/components/file-on-demand.js +1 -1
  27. package/library/components/menu-item.js +1 -1
  28. package/library/components/menu.js +1 -1
  29. package/library/components/molecules.js +4 -4
  30. package/library/components/organisms.js +3 -3
  31. package/library/components/shadow-input-group.js +1 -1
  32. package/library/components/tab-group.js +1 -1
  33. package/library/components/types.js +12120 -12137
  34. package/library/package.json +1 -1
  35. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +5 -1
  36. package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +5 -3
  37. package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +3 -0
  38. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +2 -0
  39. package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +3 -0
  40. package/library/packages/types/src/asset-picker.d.ts +5 -0
  41. package/library/packages/types/src/content-builder.d.ts +4 -0
  42. package/library/packages/types/src/font-kit.d.ts +2 -0
  43. package/package.json +1 -1
  44. package/library/chunks/{asset-link-format.1oRTjzY2.js → asset-link-format.BenfACwj.js} +1 -1
@@ -5,7 +5,7 @@ import { t as s } from "./custom-element.BEMYNDK1.js";
5
5
  import { t as c } from "./i18n.CpiuF-f4.js";
6
6
  import { t as l } from "./input.HC75Gdv_.js";
7
7
  import { t as u } from "./space.Dd8jezXK.js";
8
- import { t as d } from "./bicolor-picker.BFLMj79r.js";
8
+ import { t as d } from "./bicolor-picker.pEuB5d7x.js";
9
9
  //#region ../../packages/molecules/src/border-input-group/border-input-group.styles.ts
10
10
  var f = t`.border-width{width:72px}`, p = class extends a {
11
11
  constructor(...e) {
@@ -23,12 +23,12 @@ import { c as w, d as T, f as E, i as D, n as O, o as k, s as ne, u as A } from
23
23
  import { t as j } from "./drag.s0AcVpKh.js";
24
24
  import { t as M } from "./math.od1DVmRk.js";
25
25
  import { t as N } from "./repeat.CKv9FPlC.js";
26
- import { t as P } from "./dropdown.jv7u3Wm8.js";
26
+ import { t as P } from "./dropdown.Bap8f8gT.js";
27
27
  import { t as F } from "./input.HC75Gdv_.js";
28
28
  import { t as I } from "./option.CxsY_LQ-.js";
29
29
  import { t as L } from "./select.DLMCyAHm.js";
30
30
  import { t as R } from "./tab.B7cI6tex.js";
31
- import { t as z } from "./tab-group.n9Wud7bJ.js";
31
+ import { t as z } from "./tab-group.BgkjcwaU.js";
32
32
  import { t as B } from "./tab-panel.BxeoKuSv.js";
33
33
  import { t as V } from "./visually-hidden.Bv3SInZp.js";
34
34
  //#region ../../packages/atoms/src/components/color-picker/color-picker.styles.ts
@@ -27,18 +27,18 @@ import { n as le, t as ue } from "./typography.B0mkhqTB.js";
27
27
  import { t as de } from "./badge.H_UuxPXn.js";
28
28
  import { t as fe } from "./checkbox.C6vsHW9n.js";
29
29
  import { t as pe } from "./repeat.CKv9FPlC.js";
30
- import { t as me } from "./dropdown.jv7u3Wm8.js";
30
+ import { t as me } from "./dropdown.Bap8f8gT.js";
31
31
  import { t as he } from "./input.HC75Gdv_.js";
32
- import { t as ge } from "./menu.BPTg0Ebu.js";
33
- import { t as _e } from "./menu-item.BpILLN4i.js";
32
+ import { t as ge } from "./menu.C7zSpVh7.js";
33
+ import { t as _e } from "./menu-item.FZopoctH.js";
34
34
  import { t as ve } from "./space.Dd8jezXK.js";
35
35
  import { t as ye } from "./unsafe-html.Cb838aX7.js";
36
36
  import { t as be } from "./select.DLMCyAHm.js";
37
37
  import { t as xe } from "./guard.Cf17k6Vx.js";
38
38
  import { a as Se, f as Ce, l as we, r as Te } from "./date.BL4L64Hx.js";
39
- import { t as Ee } from "./details.DRv08ocO.js";
40
- import { i as De, s as Oe, t as ke } from "./dialog.DyVvpdaY.js";
41
- import { t as Ae } from "./divider.CqSNZCU8.js";
39
+ import { i as Ee, s as De, t as Oe } from "./dialog.DyVvpdaY.js";
40
+ import { t as ke } from "./divider.CqSNZCU8.js";
41
+ import { t as Ae } from "./details.DRv08ocO.js";
42
42
  import { n as je } from "./toString.r2ImdBrm.js";
43
43
  import { n as Me } from "./capitalize.BT_EavGy.js";
44
44
  import { _ as Ne, c as Pe, g as Fe, l as Ie, v as Le, y as Re } from "./color.CIOzHtLK.js";
@@ -153,7 +153,7 @@ var At = {
153
153
  static #n = this.dependencies = {
154
154
  "cx-badge": de,
155
155
  "cx-button": te,
156
- "cx-details": Ee,
156
+ "cx-details": Ae,
157
157
  "cx-dropdown": me,
158
158
  "cx-icon": O,
159
159
  "cx-icon-button": T,
@@ -497,7 +497,7 @@ var ln = /mac os x/i.test(navigator.userAgent) && !/iphone|ipad/i.test(navigator
497
497
  static #e = this.styles = [h, sn];
498
498
  static #t = this.dependencies = {
499
499
  "cx-board-list-item": on,
500
- "cx-divider": Ae,
500
+ "cx-divider": ke,
501
501
  "cx-icon": O,
502
502
  "cx-icon-button": T,
503
503
  "cx-input": he,
@@ -1225,7 +1225,7 @@ var Tn = B, En = /* @__PURE__ */ function(e) {
1225
1225
  static #e = this.styles = [h, Dn];
1226
1226
  static #t = this.dependencies = {
1227
1227
  "cx-button": te,
1228
- "cx-dialog": ke,
1228
+ "cx-dialog": Oe,
1229
1229
  "cx-multi-select": Tn
1230
1230
  };
1231
1231
  get canApply() {
@@ -1274,7 +1274,7 @@ var Tn = B, En = /* @__PURE__ */ function(e) {
1274
1274
  return r`<cx-dialog label=${this.localize.term("editColumns")} ?open=${this.open} @cx-request-close=${this.handleDialogRequestClose}><cx-multi-select .firstColumnData=${this.firstColumnData} .secondColumnData=${this.secondColumnData} @cx-multi-select-change=${this.handleMultiSelectChange}></cx-multi-select>${D(!this.canApply, () => r`<p class="table-column-editor__note">${this.localize.term("editColumnsMinVisibleNote")}</p>`)}<div slot="footer" class="table-column-editor__footer"><cx-button @click=${this.handleCancel}>${this.localize.term("cancel")}</cx-button><cx-button variant="primary" ?disabled=${!this.canApply} @click=${this.handleApply}>${this.localize.term("apply")}</cx-button></div></cx-dialog>`;
1275
1275
  }
1276
1276
  };
1277
- l([f("cx-dialog"), u("design:type", ke === void 0 ? Object : ke)], On.prototype, "dialogEl", void 0), l([s({
1277
+ l([f("cx-dialog"), u("design:type", Oe === void 0 ? Object : Oe)], On.prototype, "dialogEl", void 0), l([s({
1278
1278
  reflect: !0,
1279
1279
  type: Boolean
1280
1280
  }), u("design:type", Object)], On.prototype, "open", void 0), l([s({ attribute: !1 }), u("design:type", Array)], On.prototype, "entries", void 0), l([c(), u("design:type", Object)], On.prototype, "firstColumnData", void 0), l([c(), u("design:type", Object)], On.prototype, "secondColumnData", void 0), l([c(), u("design:type", Array)], On.prototype, "visibleFields", void 0), l([
@@ -16101,12 +16101,12 @@ var ed, Z = class extends d {
16101
16101
  static #t = this.styles = [
16102
16102
  h,
16103
16103
  xu,
16104
- Oe
16104
+ De
16105
16105
  ];
16106
16106
  static #n = this.dependencies = {
16107
16107
  "cx-button": te,
16108
16108
  "cx-checkbox": fe,
16109
- "cx-divider": Ae,
16109
+ "cx-divider": ke,
16110
16110
  "cx-faceted-filter": Nt,
16111
16111
  "cx-format-number": Xe,
16112
16112
  "cx-icon": O,
@@ -16395,7 +16395,7 @@ var ed, Z = class extends d {
16395
16395
  this.tabulatorInstance.redraw();
16396
16396
  return;
16397
16397
  }
16398
- this.osInstance = De({
16398
+ this.osInstance = Ee({
16399
16399
  elements: { viewport: this.tabulatorHolder },
16400
16400
  scrollbars: { slot: this.table },
16401
16401
  target: this.tabulatorHolder
@@ -12,66 +12,66 @@ import { t as v } from "./when.BUskJLtZ.js";
12
12
  import { t as y } from "./icon.CeQpEaQz.js";
13
13
  import { t as b } from "./style-map.DPGQIxip.js";
14
14
  import { t as x } from "./button.BE-fTtOZ.js";
15
- import { t as S } from "./tooltip.EVa9qa8X.js";
16
- import { t as ee } from "./line-clamp.CUDArhQk.js";
17
- import { C as te, S as ne, T as re, _ as ie, a as ae, b as oe, c as se, g as ce, h as le, i as ue, m as de, o as fe, p as pe, r as me, s as he, t as C, v as w, w as T, x as E, y as D } from "./config-manager.utils.BvTZWpSg.js";
15
+ import { t as ee } from "./tooltip.EVa9qa8X.js";
16
+ import { t as te } from "./line-clamp.CUDArhQk.js";
17
+ import { C as ne, E as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, g as ue, h as de, i as fe, l as pe, m as me, n as he, o as ge, s as S, t as C, v as w, w as T, x as E, y as D } from "./block-width.C1BPe6lP.js";
18
18
  import { t as O } from "./typography.B0mkhqTB.js";
19
19
  import { t as k } from "./button-group.CPfXrqyq.js";
20
20
  import { t as A } from "./card.3c-X4hqR.js";
21
21
  import { t as j } from "./checkbox.C6vsHW9n.js";
22
22
  import { a as M, c as N, i as P, n as F, o as I, s as L } from "./directive-helpers.BuvXXfwA.js";
23
23
  import { t as R } from "./repeat.CKv9FPlC.js";
24
- import { t as ge } from "./dropdown.jv7u3Wm8.js";
25
- import { t as _e } from "./input.HC75Gdv_.js";
26
- import { t as ve } from "./menu.BPTg0Ebu.js";
27
- import { t as ye } from "./menu-item.BpILLN4i.js";
28
- import { n as be, t as xe } from "./ref.CU1NC5AM.js";
29
- import { t as Se } from "./textarea.Bc4eCJgT.js";
30
- import { t as Ce } from "./option.CxsY_LQ-.js";
31
- import { t as we } from "./space.Dd8jezXK.js";
32
- import { t as Te } from "./select.DLMCyAHm.js";
33
- import { t as Ee } from "./tab.B7cI6tex.js";
34
- import { t as z } from "./tab-group.n9Wud7bJ.js";
35
- import { t as De } from "./map.ByDuLduF.js";
36
- import { t as Oe } from "./tab-panel.BxeoKuSv.js";
37
- import { t as ke } from "./visually-hidden.Bv3SInZp.js";
24
+ import { t as _e } from "./dropdown.Bap8f8gT.js";
25
+ import { t as ve } from "./input.HC75Gdv_.js";
26
+ import { t as ye } from "./menu.C7zSpVh7.js";
27
+ import { t as be } from "./menu-item.FZopoctH.js";
28
+ import { n as xe, t as Se } from "./ref.CU1NC5AM.js";
29
+ import { t as Ce } from "./textarea.Bc4eCJgT.js";
30
+ import { t as we } from "./option.CxsY_LQ-.js";
31
+ import { t as Te } from "./space.Dd8jezXK.js";
32
+ import { t as Ee } from "./select.DLMCyAHm.js";
33
+ import { t as De } from "./tab.B7cI6tex.js";
34
+ import { t as z } from "./tab-group.BgkjcwaU.js";
35
+ import { t as Oe } from "./map.ByDuLduF.js";
36
+ import { t as ke } from "./tab-panel.BxeoKuSv.js";
37
+ import { t as Ae } from "./visually-hidden.Bv3SInZp.js";
38
38
  import { o as B, t as V } from "./dialog.DyVvpdaY.js";
39
- import { t as Ae } from "./divider.CqSNZCU8.js";
40
- import { n as je } from "./toString.r2ImdBrm.js";
41
- import { m as H, s as Me } from "./responsive.L9Csz2w2.js";
42
- import { isFormInteracted as Ne } from "../utils.js";
43
- import { t as Pe } from "./keyed.zYwdaCfO.js";
44
- import { t as Fe } from "./grid.CK4PRwur.js";
45
- import { t as Ie } from "./grid-item.CSieaU5T.js";
46
- import { t as Le } from "./radio.DhPbmKbQ.js";
47
- import { t as Re } from "./radio-card.Cg5NyOUL.js";
48
- import { t as ze } from "./radio-group.DKOIr2PH.js";
49
- import { t as Be } from "./switch.D6KXmWnC.js";
50
- import { t as Ve } from "./bicolor-picker.BFLMj79r.js";
51
- import { t as He } from "./border-input-group.DvjGBsxF.js";
52
- import { n as Ue, t as U } from "./confirm-popover.Difhn86O.js";
53
- import { t as We } from "./corner-position-input-group.80bovr6F.js";
39
+ import { t as je } from "./divider.CqSNZCU8.js";
40
+ import { n as Me } from "./toString.r2ImdBrm.js";
41
+ import { m as H, s as Ne } from "./responsive.L9Csz2w2.js";
42
+ import { isFormInteracted as Pe } from "../utils.js";
43
+ import { t as Fe } from "./keyed.zYwdaCfO.js";
44
+ import { t as Ie } from "./grid.CK4PRwur.js";
45
+ import { t as Le } from "./grid-item.CSieaU5T.js";
46
+ import { t as Re } from "./radio.DhPbmKbQ.js";
47
+ import { t as ze } from "./radio-card.Cg5NyOUL.js";
48
+ import { t as Be } from "./radio-group.DKOIr2PH.js";
49
+ import { t as Ve } from "./switch.D6KXmWnC.js";
50
+ import { t as He } from "./bicolor-picker.pEuB5d7x.js";
51
+ import { t as Ue } from "./border-input-group.D0_n4dvI.js";
52
+ import { n as We, t as U } from "./confirm-popover.DENzK8Zo.js";
53
+ import { t as Ge } from "./corner-position-input-group.80bovr6F.js";
54
54
  import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
55
- import { t as Ge } from "./dynamic-select.CyzcAHU5.js";
55
+ import { t as Ke } from "./dynamic-select.CyzcAHU5.js";
56
56
  import { r as G } from "./folder-select.B1gyfanN.js";
57
- import { t as Ke } from "./choose.C2vpqhLc.js";
58
- import { t as qe } from "./padding-input-group.DYHH1M0o.js";
59
- import { t as Je } from "./position-picker.B3klGTsy.js";
60
- import { t as Ye } from "./shadow-input-group.ByN6pEvN.js";
61
- import { t as Xe } from "./size-input-group.PcWfpR6-.js";
62
- import { T as K } from "./asset-link-format.1oRTjzY2.js";
63
- import { n as Ze } from "./_baseXor.Ca5K0ORC.js";
64
- import { n as Qe, s as $e, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
65
- import { i as et } from "./_baseClone.CnI5Vpqn.js";
66
- import { C as tt, i as nt, o as J, t as rt } from "./configs-controller.CCJxfSjT.js";
67
- import { t as it } from "./isEmpty.D3QQduJ5.js";
68
- import { i as at } from "./cloneDeep.C6x5LNv3.js";
57
+ import { t as qe } from "./choose.C2vpqhLc.js";
58
+ import { t as Je } from "./padding-input-group.DYHH1M0o.js";
59
+ import { t as Ye } from "./position-picker.B3klGTsy.js";
60
+ import { t as Xe } from "./shadow-input-group.Dp6ME7lP.js";
61
+ import { t as Ze } from "./size-input-group.PcWfpR6-.js";
62
+ import { T as K } from "./asset-link-format.BenfACwj.js";
63
+ import { n as Qe } from "./_baseXor.Ca5K0ORC.js";
64
+ import { n as $e, s as et, t as q } from "./isArrayLikeObject.Da3IzQeH.js";
65
+ import { i as tt } from "./_baseClone.CnI5Vpqn.js";
66
+ import { C as nt, i as rt, o as J, t as it } from "./configs-controller.D3ER8OhT.js";
67
+ import { t as at } from "./isEmpty.D3QQduJ5.js";
68
+ import { i as ot } from "./cloneDeep.C6x5LNv3.js";
69
69
  //#region ../../node_modules/lodash-es/difference.js
70
- var ot = Qe(function(e, t) {
71
- return q(e) ? Ze(e, $e(t, 1, q, !0)) : [];
72
- }), st = "Expected a function";
73
- function ct(e) {
74
- if (typeof e != "function") throw TypeError(st);
70
+ var st = $e(function(e, t) {
71
+ return q(e) ? Qe(e, et(t, 1, q, !0)) : [];
72
+ }), ct = "Expected a function";
73
+ function lt(e) {
74
+ if (typeof e != "function") throw TypeError(ct);
75
75
  return function() {
76
76
  var t = arguments;
77
77
  switch (t.length) {
@@ -85,23 +85,23 @@ function ct(e) {
85
85
  }
86
86
  //#endregion
87
87
  //#region ../../node_modules/lodash-es/pickBy.js
88
- function lt(e, t) {
88
+ function ut(e, t) {
89
89
  if (e == null) return {};
90
- var n = je(et(e), function(e) {
90
+ var n = Me(tt(e), function(e) {
91
91
  return [e];
92
92
  });
93
- return t = W(t), at(e, n, function(e, n) {
93
+ return t = W(t), ot(e, n, function(e, n) {
94
94
  return t(e, n[0]);
95
95
  });
96
96
  }
97
97
  //#endregion
98
98
  //#region ../../node_modules/lodash-es/omitBy.js
99
- function ut(e, t) {
100
- return lt(e, ct(W(t)));
99
+ function dt(e, t) {
100
+ return ut(e, lt(W(t)));
101
101
  }
102
102
  //#endregion
103
103
  //#region ../../packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.ts
104
- var dt = /* @__PURE__ */ new Map([
104
+ var ft = /* @__PURE__ */ new Map([
105
105
  ["100", "Thin"],
106
106
  ["200", "Extra Light"],
107
107
  ["300", "Light"],
@@ -112,28 +112,28 @@ var dt = /* @__PURE__ */ new Map([
112
112
  ["800", "Extra Bold"],
113
113
  ["900", "Black"]
114
114
  ]);
115
- J.Cff, J.TrueType, new Set(Object.values(J)), RegExp(`\\$\\{(${Object.values(nt).join("|")})\\}`, "g");
116
- function ft(e) {
117
- return /italic/i.test(e) ? "italic" : "normal";
118
- }
115
+ J.Cff, J.TrueType, new Set(Object.values(J)), RegExp(`\\$\\{(${Object.values(rt).join("|")})\\}`, "g");
119
116
  function pt(e) {
120
- return dt.get(e.trim()) ?? e;
117
+ return /italic/i.test(e) ? "italic" : "normal";
121
118
  }
122
119
  function mt(e) {
120
+ return ft.get(e.trim()) ?? e;
121
+ }
122
+ function ht(e) {
123
123
  let t = /* @__PURE__ */ new Map();
124
124
  for (let n of e) {
125
- let e = ft(n.fontStyle), r = Number(n.fontWeight) || 400, i = `${r}:${e}`;
125
+ let e = pt(n.fontStyle), r = Number(n.fontWeight) || 400, i = `${r}:${e}`;
126
126
  t.has(i) || t.set(i, {
127
127
  fontStyle: e,
128
128
  fontWeight: r,
129
- name: `${pt(String(r))}${e === "italic" ? " Italic" : ""}`
129
+ name: `${mt(String(r))}${e === "italic" ? " Italic" : ""}`
130
130
  });
131
131
  }
132
132
  return [...t.values()].sort((e, t) => (e.fontWeight ?? 400) - (t.fontWeight ?? 400) || (e.fontStyle ?? "").localeCompare(t.fontStyle ?? ""));
133
133
  }
134
134
  //#endregion
135
135
  //#region ../../node_modules/lit-html/directives/cache.js
136
- var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
136
+ var Y = (e) => M(e) ? e._$litType$.h : e.strings, X = g(class extends h {
137
137
  constructor(e) {
138
138
  super(e), this.et = /* @__PURE__ */ new WeakMap();
139
139
  }
@@ -162,9 +162,9 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
162
162
  } else this.it = void 0;
163
163
  return this.render(t);
164
164
  }
165
- }), X = n`:host{display:block}.config-form{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:680px;--cx-input-required-content-display:none;color:var(--cx-color-neutral)}.config-form__dropdown{text-align:left}.config-form__checkbox-group-item{--item-padding:0;--selected-background-color:transparent}.config-form__radio-card{--radio-card-overflow:clip}.config-form__dropdown-menu{--checked-icon-display:none}.config-form__confirm-popover{--confirm-popover-dialog-width:fit-content;--confirm-button-background-color:var(--cx-color-danger-500);--cancel-button-background-color:var(--cx-color-neutral-100);--cancel-button-color:var(--cx-color-neutral-700)}.config-form__tab-group{--padding:0;--tab-group-nav-padding:0 var(--cx-spacing-large);--tab-group-top-gap:0}.config-form__tab-group::part(nav){background-color:var(--cx-color-neutral-0);z-index:1;position:sticky;top:0}`, gt = /* @__PURE__ */ e(ie(), 1), _t = class {
165
+ }), gt = n`:host{display:block}.config-form{--body-spacing:0;--header-spacing:var(--cx-spacing-small) var(--cx-spacing-large) 0;--width:680px;--cx-input-required-content-display:none;color:var(--cx-color-neutral)}.config-form__dropdown{text-align:left}.config-form__checkbox-group-item{--item-padding:0;--selected-background-color:transparent}.config-form__radio-card{--radio-card-overflow:clip}.config-form__dropdown-menu{--checked-icon-display:none}.config-form__confirm-popover{--confirm-popover-dialog-width:fit-content;--confirm-button-background-color:var(--cx-color-danger-500);--cancel-button-background-color:var(--cx-color-neutral-100);--cancel-button-color:var(--cx-color-neutral-700)}.config-form__tab-group{--padding:0;--tab-group-nav-padding:0 var(--cx-spacing-large);--tab-group-top-gap:0}.config-form__tab-group::part(nav){background-color:var(--cx-color-neutral-0);z-index:1;position:sticky;top:0}`, _t = /* @__PURE__ */ e(w(), 1), vt = class {
166
166
  constructor(e) {
167
- this.host = e, this.localize = new p(this.host), this.controlRenderer = new se(this.host, {
167
+ this.host = e, this.localize = new p(this.host), this.controlRenderer = new pe(this.host, {
168
168
  commit: async ({ callback: e, immediate: t, key: n, type: r, value: i }) => {
169
169
  if (t && r === "attribute") {
170
170
  this.handleAttributeChange(n, i, e);
@@ -270,7 +270,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
270
270
  ${v(c, () => t`<cx-typography variant="body3" class="config-form__help-text">${c}</cx-typography>`)}</cx-space>`;
271
271
  }
272
272
  renderBasicControls(e, n, r) {
273
- let i = xe(), a = t`
273
+ let i = Se(), a = t`
274
274
  ${R(e.filter((e) => {
275
275
  let t = !r || e.name && this.host.tabMap[e.name] === r || n?.name && this.host.tabMap[n.name] === r, i = !1;
276
276
  return e.controlType === "placeholder" ? i = !0 : (!this.host.skipShowCheck || !e.skipShowCheck) && (typeof e.show == "boolean" ? i = !e.show : typeof e.show == "function" ? i = !e.show(this.host.blockAttributes) : n && typeof n.show == "boolean" ? i = !n.show : n && typeof n.show == "function" && (i = !n.show(this.host.blockAttributes))), e.id && t && e.show !== !1 && !i;
@@ -287,7 +287,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
287
287
  break;
288
288
  case "property": this.host.blockProperties[r] !== void 0 && (c = this.host.blockProperties[r]);
289
289
  }
290
- if (o === "decorative") return Ke(e.controlType, [["group-heading", () => t`<cx-typography variant="h5">${a}</cx-typography>`], ["info-text", () => this.renderInfoText(e)]], () => t`<cx-typography variant="h5">${a}</cx-typography>`);
290
+ if (o === "decorative") return qe(e.controlType, [["group-heading", () => t`<cx-typography variant="h5">${a}</cx-typography>`], ["info-text", () => this.renderInfoText(e)]], () => t`<cx-typography variant="h5">${a}</cx-typography>`);
291
291
  if (n) {
292
292
  let a = this.renderBasicControl({
293
293
  container: i,
@@ -317,7 +317,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
317
317
  let { controlType: e, groupConfigs: r } = n;
318
318
  if (e === "group" && r?.direction === "horizontal") {
319
319
  let { columnGap: e, gap: n, rowGap: o, wrap: s } = r;
320
- return t`<cx-grid columns="100" use-flex-gap spacing=${_(n)} column-spacing=${_(e)} row-spacing=${_(o)} wrap=${_(s)} ${be(i)}>${a}</cx-grid>`;
320
+ return t`<cx-grid columns="100" use-flex-gap spacing=${_(n)} column-spacing=${_(e)} row-spacing=${_(o)} wrap=${_(s)} ${xe(i)}>${a}</cx-grid>`;
321
321
  }
322
322
  }
323
323
  return t`<cx-space direction="vertical" wrap="nowrap">${a}</cx-space>`;
@@ -328,8 +328,8 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
328
328
  let n = !1;
329
329
  return (!this.host.skipShowCheck || !t.skipShowCheck) && (typeof t.show == "boolean" ? n = !t.show : typeof t.show == "function" && (n = !t.show(this.host.blockAttributes))), t.translateGroup === e && !n;
330
330
  });
331
- return n.length === 0 ? i : t`<cx-typography variant="h5">${e}</cx-typography>${R(n, (e) => e.id, (e) => e.controlType === "info-text" ? this.renderInfoText(e) : t`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${e.label}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${De(this.host.sortedLanguages, (n) => {
332
- let r = this.localize.languageName(n) || gt.default.getName(n) || n, a = "";
331
+ return n.length === 0 ? i : t`<cx-typography variant="h5">${e}</cx-typography>${R(n, (e) => e.id, (e) => e.controlType === "info-text" ? this.renderInfoText(e) : t`<cx-grid columns="4" spacing="var(--cx-spacing-small)" column-spacing="0" use-flex-gap row-spacing="0" wrap="wrap"><cx-grid-item xs="4" sm="1"><cx-typography variant="body2">${e.label}</cx-typography></cx-grid-item><cx-grid-item xs="4" sm="3"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${Oe(this.host.sortedLanguages, (n) => {
332
+ let r = this.localize.languageName(n) || _t.default.getName(n) || n, a = "";
333
333
  e.id && (a = n === this.host.defaultLanguage ? this.host.blockAttributes[e.id] ?? "" : this.host.translatableControlValues[n]?.[e.id] ?? this.host.translatableControlValues[this.host.defaultLanguage]?.[e.id] ?? this.host.blockAttributes[e.id]);
334
334
  let o;
335
335
  switch (e.controlType) {
@@ -430,65 +430,65 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
430
430
  }
431
431
  }, Z = class extends l {
432
432
  constructor(...e) {
433
- super(...e), this.localize = new p(this), this.configFormController = new _t(this), this.loading = !1, this.mode = H.Template, this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en"], this.translatableControlValues = {}, this.defaultLanguage = "en", this.boundary = document.body, this.baseUrl = "", this.token = "", this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.translatableControls = [], this.blockName = "", this.name = "", this.description = "", this.showTemplateTab = !1, this.dialogTitle = "", this.skipShowCheck = !1, this.enableAssetFormatControls = !1, this.allowedFolders = [], this.isEditingTemplateSettings = !1, this.disableCloseConfigDialog = !1, this.isAfterShow = !1, this.sortedLanguages = [], this.formKey = 0;
433
+ super(...e), this.localize = new p(this), this.configFormController = new vt(this), this.loading = !1, this.mode = H.Template, this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en"], this.translatableControlValues = {}, this.defaultLanguage = "en", this.boundary = document.body, this.baseUrl = "", this.token = "", this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.translatableControls = [], this.blockName = "", this.name = "", this.description = "", this.showTemplateTab = !1, this.dialogTitle = "", this.skipShowCheck = !1, this.enableAssetFormatControls = !1, this.allowedFolders = [], this.isEditingTemplateSettings = !1, this.disableCloseConfigDialog = !1, this.isAfterShow = !1, this.sortedLanguages = [], this.formKey = 0;
434
434
  }
435
435
  static #e = this.styles = [
436
436
  d,
437
- X,
438
- w,
439
- he
437
+ gt,
438
+ D,
439
+ le
440
440
  ];
441
441
  static #t = this.dependencies = {
442
- "cx-asset-format-picker": oe,
442
+ "cx-asset-format-picker": E,
443
443
  "cx-asset-picker": re,
444
- "cx-asset-transformation-dialog": D,
445
- "cx-bicolor-picker": Ve,
446
- "cx-border-input-group": He,
444
+ "cx-asset-transformation-dialog": ce,
445
+ "cx-bicolor-picker": He,
446
+ "cx-border-input-group": Ue,
447
447
  "cx-button": x,
448
448
  "cx-button-group": k,
449
449
  "cx-card": A,
450
450
  "cx-checkbox": j,
451
- "cx-color-swatch-picker": ce,
451
+ "cx-color-swatch-picker": oe,
452
452
  "cx-confirm-popover": U,
453
- "cx-corner-position-input-group": We,
454
- "cx-dam-custom-toolbar-buttons-editor": ae,
453
+ "cx-corner-position-input-group": Ge,
454
+ "cx-dam-custom-toolbar-buttons-editor": ge,
455
455
  "cx-dialog": V,
456
- "cx-divider": Ae,
457
- "cx-download-format-picker": T,
458
- "cx-dropdown": ge,
459
- "cx-dynamic-select": Ge,
460
- "cx-folder-picker": le,
461
- "cx-font-picker": te,
456
+ "cx-divider": je,
457
+ "cx-download-format-picker": ae,
458
+ "cx-dropdown": _e,
459
+ "cx-dynamic-select": Ke,
460
+ "cx-folder-picker": ue,
461
+ "cx-font-picker": T,
462
462
  "cx-gallery-picker": de,
463
- "cx-grid": Fe,
464
- "cx-grid-item": Ie,
463
+ "cx-grid": Ie,
464
+ "cx-grid-item": Le,
465
465
  "cx-icon": y,
466
466
  "cx-icon-picker": ne,
467
- "cx-input": _e,
468
- "cx-line-clamp": ee,
469
- "cx-list-editor": fe,
470
- "cx-menu": ve,
471
- "cx-menu-item": ye,
472
- "cx-option": Ce,
473
- "cx-padding-input-group": qe,
474
- "cx-page-picker": pe,
475
- "cx-position-picker": Je,
476
- "cx-radio": Le,
477
- "cx-radio-card": Re,
478
- "cx-radio-group": ze,
479
- "cx-select": Te,
480
- "cx-shadow-input-group": Ye,
481
- "cx-size-input-group": Xe,
482
- "cx-space": we,
483
- "cx-switch": Be,
484
- "cx-tab": Ee,
467
+ "cx-input": ve,
468
+ "cx-line-clamp": te,
469
+ "cx-list-editor": S,
470
+ "cx-menu": ye,
471
+ "cx-menu-item": be,
472
+ "cx-option": we,
473
+ "cx-padding-input-group": Je,
474
+ "cx-page-picker": me,
475
+ "cx-position-picker": Ye,
476
+ "cx-radio": Re,
477
+ "cx-radio-card": ze,
478
+ "cx-radio-group": Be,
479
+ "cx-select": Ee,
480
+ "cx-shadow-input-group": Xe,
481
+ "cx-size-input-group": Ze,
482
+ "cx-space": Te,
483
+ "cx-switch": Ve,
484
+ "cx-tab": De,
485
485
  "cx-tab-group": z,
486
- "cx-tab-panel": Oe,
487
- "cx-textarea": Se,
488
- "cx-tooltip": S,
489
- "cx-type-subtype-select": E,
486
+ "cx-tab-panel": ke,
487
+ "cx-textarea": Ce,
488
+ "cx-tooltip": ee,
489
+ "cx-type-subtype-select": ie,
490
490
  "cx-typography": O,
491
- "cx-visually-hidden": ke
491
+ "cx-visually-hidden": Ae
492
492
  };
493
493
  get isTemplateEditable() {
494
494
  return this.mode === H.Template;
@@ -504,7 +504,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
504
504
  return this.isTemplateEditable ? t : t.filter((e) => e !== "styling");
505
505
  }
506
506
  get tabMap() {
507
- let e = this.traits.map((e) => e.name).filter(Boolean), t = ot(e, this.adhocProperties), n = this.traits.filter((e) => e.tab === "sidePanels").map((e) => e.name).filter(Boolean), r = this.traits.filter((e) => e.tab === "appearance").map((e) => e.name).filter(Boolean), i = this.traits.filter((e) => e.tab === "effects").map((e) => e.name).filter(Boolean), a = {};
507
+ let e = this.traits.map((e) => e.name).filter(Boolean), t = st(e, this.adhocProperties), n = this.traits.filter((e) => e.tab === "sidePanels").map((e) => e.name).filter(Boolean), r = this.traits.filter((e) => e.tab === "appearance").map((e) => e.name).filter(Boolean), i = this.traits.filter((e) => e.tab === "effects").map((e) => e.name).filter(Boolean), a = {};
508
508
  for (let t of e) a[t] = "content";
509
509
  for (let e of t) a[e] = "styling";
510
510
  for (let e of n) a[e] = "sidePanels";
@@ -525,7 +525,7 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
525
525
  e?.target === this.dialog && e.detail.source !== "overlay" && (this.handleClose(), this.isAfterShow = !1, this.disableCloseConfigDialog = !1);
526
526
  }
527
527
  handleRequestClose(e) {
528
- e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() : Ne(this.form) ? (e.preventDefault(), this.confirmPopover.show()) : this.hide());
528
+ e?.target === this.dialog && (this.disableCloseConfigDialog ? e.preventDefault() : Pe(this.form) ? (e.preventDefault(), this.confirmPopover.show()) : this.hide());
529
529
  }
530
530
  handleNameInputChange(e) {
531
531
  this.emit("cx-content-builder-form-field-change", { detail: {
@@ -575,9 +575,9 @@ var Y = (e) => M(e) ? e._$litType$.h : e.strings, ht = g(class extends h {
575
575
  return t`<cx-space direction="vertical" spacing="medium" wrap="nowrap"><cx-typography variant="body2">${this.localize.term("contentBuilderBlockSettingsHelpText")}</cx-typography><cx-grid columns="3" use-flex-gap spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("templateName")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-input name="name" value=${this.name ?? ""} can-show-length maxlength="200" required @cx-change=${this.handleNameInputChange} type="text"></cx-input></cx-grid-item></cx-grid><cx-grid columns="3" use-flex-gap spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("description")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-textarea name="description" value=${this.description ?? ""} can-show-length maxlength="200" resize="none" @cx-change=${this.handleDescriptionInputChange} type="text"></cx-textarea></cx-grid-item></cx-grid></cx-space>`;
576
576
  }
577
577
  render() {
578
- return t`<cx-dialog class="config-form" use-overlay-scrollbar divider-position=${B.Footer} .boundary=${this.boundary} @cx-after-show=${this.handleAfterShow} @cx-after-hide=${this.handleAfterHide} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${v(this.dialogTitle, () => t`<cx-line-clamp lines="1">${this.dialogTitle}</cx-line-clamp>`, () => t`${this.localize.term("settingsTitle", this.blockName)}`)}</cx-typography>${v(this.templateName, () => t`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.templateName}</cx-line-clamp></cx-typography>`)}</cx-space>${Pe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${ht(v(this.isEditingTemplateSettings, () => v(this.isTemplateEditable, () => t`<cx-tab-group class="config-form__tab-group" placement="top"><cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel></cx-tab-group>`), () => v(!it(this.traits) && this.tabs.length >= 1, () => t`<cx-tab-group class="config-form__tab-group" placement="top">${v(this.showTemplateTab, () => t`<cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel>`)}
578
+ return t`<cx-dialog class="config-form" use-overlay-scrollbar divider-position=${B.Footer} .boundary=${this.boundary} @cx-after-show=${this.handleAfterShow} @cx-after-hide=${this.handleAfterHide} @cx-request-close=${this.handleRequestClose} @cx-asset-request-status=${this.handleAssetRequestStatus}><cx-space slot="label" direction="vertical" spacing="2x-small"><cx-typography variant="h4">${v(this.dialogTitle, () => t`<cx-line-clamp lines="1">${this.dialogTitle}</cx-line-clamp>`, () => t`${this.localize.term("settingsTitle", this.blockName)}`)}</cx-typography>${v(this.templateName, () => t`<cx-typography variant="body3"><cx-line-clamp lines="1">${this.templateName}</cx-line-clamp></cx-typography>`)}</cx-space>${Fe(this.formKey, t`<form id="config-form" @submit=${this.handleFormSubmit}>${X(v(this.isEditingTemplateSettings, () => v(this.isTemplateEditable, () => t`<cx-tab-group class="config-form__tab-group" placement="top"><cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel></cx-tab-group>`), () => v(!at(this.traits) && this.tabs.length >= 1, () => t`<cx-tab-group class="config-form__tab-group" placement="top">${v(this.showTemplateTab, () => t`<cx-tab slot="nav" panel="template" active>${this.localize.term("template")}</cx-tab><cx-tab-panel name="template" active><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.renderTemplateForm()}</cx-space></cx-tab-panel>`)}
579
579
  ${R(this.tabs.filter((e) => !this.showTemplateTab || e === "appearance" || e === "effects" || e === "sidePanels" || e === "styling"), (e) => e, (e, n) => t`<cx-tab slot="nav" panel=${e} ?active=${!this.showTemplateTab && n === 0}>${this.localize.term(e)}</cx-tab><cx-tab-panel name=${e} ?active=${!this.showTemplateTab && n === 0}><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, e)}</cx-space></cx-tab-panel>`)}
580
- ${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${Ue.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
580
+ ${v(this.translatableControls.length > 0, () => t`<cx-tab slot="nav" panel="Translation">${this.localize.term("translation")}</cx-tab><cx-tab-panel name="Translation"><cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderTranslationControls()}</cx-space></cx-tab-panel>`)}</cx-tab-group>`, () => t`<cx-space direction="vertical" spacing="x-small" wrap="nowrap">${this.configFormController.renderBasicControls(this.traits, void 0, this.tabs[0])}</cx-space>`)))}</form>`)}<cx-space slot="footer" spacing="x-small" wrap="nowrap" justify-content="end"><cx-button variant="default" size="medium" @click=${this.handleCancelClick}>${this.localize.term("cancel")}</cx-button><cx-button-group><cx-button type="submit" variant="primary" size="medium" ?loading=${this.loading} @click=${this.handleSaveClick}>${this.localize.term("save")}</cx-button>${v(this.isTemplateEditable && !this.isEditingTemplateSettings && !this.showTemplateTab, () => t`<cx-dropdown class="config-form__dropdown" placement="bottom-end" hoist @cx-select=${this.handleDropdownSelect}><cx-button slot="trigger" type="submit" variant="primary" caret><cx-visually-hidden>${this.localize.term("moreOptions")}</cx-visually-hidden></cx-button><cx-menu class="config-form__dropdown-menu"><cx-menu-item value="save-as-new-template"><cx-button type="submit" variant="text">${this.localize.term("saveAsNewTemplate")}</cx-button></cx-menu-item>${v(this.templateId, () => t`<cx-menu-item value="detach-template"><cx-button type="submit" variant="text">${this.localize.term("detachTemplate")}</cx-button></cx-menu-item>`)}</cx-menu></cx-dropdown>`)}</cx-button-group></cx-space></cx-dialog><cx-confirm-popover class="config-form__confirm-popover" divider-position=${B.Both} buttons-direction=${We.HorizontalReverse} dialog-label=${this.localize.term("dismissChanges")} confirm-text=${this.localize.term("dismissChanges")} .boundary=${this.boundary} variant="dialog" @cx-confirm=${this.hide}><cx-typography variant="body2" slot="footer" class="confirm-popover__footer">${this.localize.term("doYouWantToCloseThisDialogChangesWillBeDismissed")}</cx-typography></cx-confirm-popover>`;
581
581
  }
582
582
  };
583
583
  s([u(".config-form"), c("design:type", V === void 0 ? Object : V)], Z.prototype, "dialog", void 0), s([u("#config-form"), c("design:type", typeof HTMLFormElement > "u" ? Object : HTMLFormElement)], Z.prototype, "form", void 0), s([u("cx-confirm-popover"), c("design:type", U === void 0 ? Object : U)], Z.prototype, "confirmPopover", void 0), s([u(".config-form__tab-group"), c("design:type", z === void 0 ? Object : z)], Z.prototype, "tabGroup", void 0), s([a({
@@ -686,8 +686,8 @@ s([u(".config-form"), c("design:type", V === void 0 ? Object : V)], Z.prototype,
686
686
  c("design:paramtypes", []),
687
687
  c("design:returntype", Promise)
688
688
  ], Z.prototype, "handleSupportedLanguagesChange", null), Z = s([f("cx-config-form")], Z);
689
- var Q = Z, vt = n`:host{display:block}.confirm-popover__footer{--color:var(--cx-color-danger)}.confirm-popover__footer::part(base){margin-top:var(--cx-spacing-small);display:block}`, $ = class extends l {
690
- static #e = this.styles = [d, vt];
689
+ var Q = Z, yt = n`:host{display:block}.confirm-popover__footer{--color:var(--cx-color-danger)}.confirm-popover__footer::part(base){margin-top:var(--cx-spacing-small);display:block}`, $ = class extends l {
690
+ static #e = this.styles = [d, yt];
691
691
  static #t = this.dependencies = {
692
692
  "cx-config-form": Q,
693
693
  "cx-typography": O
@@ -696,7 +696,7 @@ var Q = Z, vt = n`:host{display:block}.confirm-popover__footer{--color:var(--cx-
696
696
  return this.mode === H.Template;
697
697
  }
698
698
  constructor() {
699
- super(), this.localize = new p(this), this.configsController = new rt(this.localize), this.component = null, this.loading = !1, this.mode = H.Template, this.enableAssetFormatControls = !1, this.enableFontFamilyControls = !1, this.allowedFolders = [], this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en-us"], this.defaultLanguage = "en-us", this.translatableControlValues = [], this.boundary = document.body, this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.blockType = "", this.blockName = "", this.name = "", this.description = "", this.tab = "", this.isEditingTemplateSettings = !1, this.translatableControlValuesMap = {}, this.translatableControls = [], this.handleSave = this.handleSave.bind(this);
699
+ super(), this.localize = new p(this), this.configsController = new it(this.localize), this.component = null, this.loading = !1, this.mode = H.Template, this.enableAssetFormatControls = !1, this.enableFontFamilyControls = !1, this.allowedFolders = [], this.adhocProperties = [], this.templateName = "", this.templateId = "", this.supportedLanguages = ["en-us"], this.defaultLanguage = "en-us", this.translatableControlValues = [], this.boundary = document.body, this.onRequestAsset = void 0, this.onRequestDownloadFormat = void 0, this.onRequestAssetFormat = void 0, this.onConfigureWorkflow = void 0, this.blockAttributes = {}, this.blockProperties = {}, this.blockStyles = {}, this.traits = [], this.blockType = "", this.blockName = "", this.name = "", this.description = "", this.tab = "", this.isEditingTemplateSettings = !1, this.translatableControlValuesMap = {}, this.translatableControls = [], this.handleSave = this.handleSave.bind(this);
700
700
  }
701
701
  getFlattenTraits(e, t, n = !1) {
702
702
  return e.reduce((e, r) => (r.children && e.push(...this.getFlattenTraits(r.children, r, n)), n && r && (r.show === !1 || typeof r.show == "function" && !r.show(this.blockAttributes) || t && t.show === !1 || t && typeof t.show == "function" && !t.show(this.blockAttributes)) || e.push({
@@ -720,23 +720,29 @@ var Q = Z, vt = n`:host{display:block}.confirm-popover__footer{--color:var(--cx-
720
720
  let e = this.component.get("type"), t = this.configsController.getConfigs(e, {
721
721
  containerFontVariants: this.getContainerFontVariants(),
722
722
  enableAssetFormatControls: this.enableAssetFormatControls,
723
- enableFontFamilyControls: this.enableFontFamilyControls
723
+ enableFontFamilyControls: this.enableFontFamilyControls,
724
+ resolveWidthUnitDefault: (e) => this.resolveWidthUnitDefault(e)
724
725
  });
725
726
  this.blockType = e, this.blockName = this.component.getName(), this.blockAttributes = {
726
- ...C(this.component),
727
- ...ut(this.translatableControlValuesMap[this.defaultLanguage], (e) => e === void 0)
728
- }, this.blockProperties = me(this.component), this.blockStyles = ue(this.component), this.traits = Array.isArray(t) ? t : [];
727
+ ...he(this.component),
728
+ ...dt(this.translatableControlValuesMap[this.defaultLanguage], (e) => e === void 0)
729
+ }, this.blockProperties = fe(this.component), this.blockStyles = se(this.component), this.traits = Array.isArray(t) ? t : [];
730
+ }
731
+ resolveWidthUnitDefault(e) {
732
+ if (e === "%") return "100%";
733
+ let t = this.component?.getEl(), n = t?.parentElement, r = t?.ownerDocument.defaultView;
734
+ if (t && n?.tagName === "CX-COLUMN" && n.containerEl && r) return `${Number.parseInt(String(C(t, n, r)))}px`;
729
735
  }
730
736
  getContainerFontVariants() {
731
- for (let e = this.component?.parent(); e; e = e.parent()) if (e.get("type") === Me.FontKitAdvanced) {
737
+ for (let e = this.component?.parent(); e; e = e.parent()) if (e.get("type") === Ne.FontKitAdvanced) {
732
738
  let t = e.view?.el;
733
- return mt(t?.typefacesArray ?? []);
739
+ return ht(t?.typefacesArray ?? []);
734
740
  }
735
741
  }
736
742
  handleSave(e) {
737
743
  let t = this.getFlattenTraits(this.traits).reduce((e, t) => (e[t.id] = t, e), {}), n = Object.entries(this.blockAttributes).reduce((e, [n, r]) => {
738
744
  let i = t[n];
739
- return tt.includes(n) || (i ? e[n] = r : typeof r == "boolean" && (e[n] = !1)), e;
745
+ return nt.includes(n) || (i ? e[n] = r : typeof r == "boolean" && (e[n] = !1)), e;
740
746
  }, {});
741
747
  this.emit("cx-content-builder-configure", { detail: {
742
748
  description: this.description,
@@ -849,6 +855,6 @@ s([u("cx-config-form"), c("design:type", Q === void 0 ? Object : Q)], $.prototyp
849
855
  c("design:paramtypes", []),
850
856
  c("design:returntype", Promise)
851
857
  ], $.prototype, "handleComponentChange", null), $ = s([f("cx-config-manager"), c("design:paramtypes", [])], $);
852
- var yt = $;
858
+ var bt = $;
853
859
  //#endregion
854
- export { yt as CxConfigManager };
860
+ export { bt as CxConfigManager };