@orangelogic/design-system 3.42.0 → 3.43.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.
@@ -15,7 +15,7 @@ import { t as y } from "./when.BUskJLtZ.js";
15
15
  import { t as ie } from "./icon.CeQpEaQz.js";
16
16
  import { t as ae } from "./spinner.DXFJTymk.js";
17
17
  import { n as oe } from "./tslib.es6.DJNsMHqv.js";
18
- import { t as se } from "./src.3xfb7ora.js";
18
+ import { t as se } from "./src.CblQoZkB.js";
19
19
  import { t as ce } from "./style-map.DPGQIxip.js";
20
20
  import { t as b } from "./button.BE-fTtOZ.js";
21
21
  import { E as x, S as le, r as ue } from "./string.DamEXDH2.js";
@@ -79,7 +79,7 @@ import { t as Dt } from "./shadow-input-group.ByN6pEvN.js";
79
79
  import { t as Ot } from "./size-input-group.PcWfpR6-.js";
80
80
  import { C as kt, S as At, T as jt, _ as Mt, b as Nt, c as Pt, f as Ft, g as It, h as Lt, i as Rt, l as zt, n as Bt, o as Vt, p as Ht, r as Ut, s as Wt, t as Gt, u as Kt, v as qt, w as Jt, x as Yt, y as Xt } from "./asset-link-format.1oRTjzY2.js";
81
81
  import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.CWPweLjs.js";
82
- import { B as nn, C as rn, H as an, J as I, L as on, N as sn, O as L, R as cn, V as ln, X as R, Y as un, Z as dn, f as fn, g as pn, p as mn, q as hn, y as gn, z as _n } from "./configs-controller.CCJxfSjT.js";
82
+ import { B as nn, C as rn, H as an, J as I, L as on, N as sn, O as L, R as cn, V as ln, X as R, Y as un, Z as dn, f as fn, g as pn, p as mn, q as hn, y as gn, z as _n } from "./configs-controller.Cz3w_qEo.js";
83
83
  import { a as vn } from "./cloneDeep.C6x5LNv3.js";
84
84
  //#region ../../packages/types/src/icon-picker.ts
85
85
  var yn = /* @__PURE__ */ function(e) {
@@ -42387,7 +42387,7 @@ var Kr = class {
42387
42387
  let r = t.currentTarget.value ?? "", i = t.target.value;
42388
42388
  h = i;
42389
42389
  for (let t of l.inputConfigs?.suffix?.options ?? []) if (t.value === h && t.dataId) {
42390
- let n = e[t.dataId];
42390
+ let n = e[t.dataId] || t.resolveDefaultValue?.();
42391
42391
  n && (r = n, i = "");
42392
42392
  break;
42393
42393
  }
@@ -43295,4 +43295,18 @@ function ri(e) {
43295
43295
  }, {}) : {};
43296
43296
  }
43297
43297
  //#endregion
43298
- export { jn as C, yn as D, bn as E, er as S, Sn as T, fr as _, $r as a, or as b, Kr as c, Rr as d, Fr as f, br as g, Sr as h, ri as i, Gr as l, Or as m, ei as n, Zr as o, Ar as p, ni as r, qr as s, ti as t, Lr as u, ur as v, wn as w, ir as x, lr as y };
43298
+ //#region ../../packages/organisms/src/content-builder/plugins/utils/block-width.ts
43299
+ var ii = ".column__content";
43300
+ function ai(e, t, n) {
43301
+ let r = t.defaultSlot ?? t.containerEl.querySelector(ii) ?? t.containerEl, i = n.getComputedStyle(r), a = Number.parseFloat(i.paddingLeft || "0"), o = Number.parseFloat(i.paddingRight || "0"), s = r.clientWidth - a - o;
43302
+ return e.hasAttribute("full-bleed") || t.closest("cx-column-group") ? s : oi(t, n) ?? s;
43303
+ }
43304
+ function oi(e, t) {
43305
+ if (!e.bandLayout) return;
43306
+ let n = e.containerEl?.querySelector(ii);
43307
+ if (!n) return;
43308
+ let r = t.getComputedStyle(n).gridTemplateColumns.split(" ").map((e) => Number.parseFloat(e)).filter((e) => Number.isFinite(e))[1];
43309
+ if (!(!Number.isFinite(r) || r <= 0)) return r;
43310
+ }
43311
+ //#endregion
43312
+ export { er as C, bn as D, Sn as E, yn as O, ir as S, wn as T, br as _, ri as a, lr as b, qr as c, Lr as d, Rr as f, Sr as g, Or as h, ni as i, Kr as l, Ar as m, ti as n, $r as o, Fr as p, ei as r, Zr as s, ai as t, Gr as u, fr as v, jn as w, or as x, ur as y };
@@ -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.D0aVpqVS.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";
24
+ import { t as _e } from "./dropdown.jv7u3Wm8.js";
25
+ import { t as ve } from "./input.HC75Gdv_.js";
26
+ import { t as ye } from "./menu.BPTg0Ebu.js";
27
+ import { t as be } from "./menu-item.BpILLN4i.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
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";
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.BFLMj79r.js";
51
+ import { t as Ue } from "./border-input-group.DvjGBsxF.js";
52
+ import { n as We, t as U } from "./confirm-popover.Difhn86O.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";
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.ByN6pEvN.js";
61
+ import { t as Ze } from "./size-input-group.PcWfpR6-.js";
62
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";
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.Cz3w_qEo.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 };
@@ -2771,6 +2771,7 @@ var V = class {
2771
2771
  min: 0
2772
2772
  } },
2773
2773
  name: "px",
2774
+ resolveDefaultValue: () => t.resolveWidthUnitDefault?.("px"),
2774
2775
  value: "px"
2775
2776
  }, {
2776
2777
  dataId: "data-width-percent",
@@ -2781,6 +2782,7 @@ var V = class {
2781
2782
  min: 0
2782
2783
  } },
2783
2784
  name: "%",
2785
+ resolveDefaultValue: () => t.resolveWidthUnitDefault?.("%"),
2784
2786
  value: "%"
2785
2787
  }],
2786
2788
  type: "unit"
@@ -7060,6 +7062,7 @@ var ar = {
7060
7062
  min: 0
7061
7063
  } },
7062
7064
  name: "px",
7065
+ resolveDefaultValue: () => t.resolveWidthUnitDefault?.("px"),
7063
7066
  value: "px"
7064
7067
  }, {
7065
7068
  dataId: "data-width-percent",
@@ -7070,6 +7073,7 @@ var ar = {
7070
7073
  min: 0
7071
7074
  } },
7072
7075
  name: "%",
7076
+ resolveDefaultValue: () => t.resolveWidthUnitDefault?.("%"),
7073
7077
  value: "%"
7074
7078
  }],
7075
7079
  type: "unit"
@@ -8,7 +8,7 @@ import { t as c } from "../chunks/alert.C-yzkTnx.js";
8
8
  import { t as l } from "../chunks/am-chart.COOKOvT1.js";
9
9
  import { t as u } from "../chunks/animated-image.w6VdagCh.js";
10
10
  import { t as d } from "../chunks/animation.CRLxJUWm.js";
11
- import { n as f, r as p, t as m } from "../chunks/src.3xfb7ora.js";
11
+ import { n as f, r as p, t as m } from "../chunks/src.CblQoZkB.js";
12
12
  import { t as h } from "../chunks/button.BE-fTtOZ.js";
13
13
  import { t as g } from "../chunks/tooltip.EVa9qa8X.js";
14
14
  import { t as _ } from "../chunks/resize-observer.D9EHlnZI.js";
@@ -44,12 +44,12 @@ import { t as K } from "../chunks/details.DRv08ocO.js";
44
44
  import { t as q } from "../chunks/dialog.DyVvpdaY.js";
45
45
  import { t as J } from "../chunks/divider.CqSNZCU8.js";
46
46
  import { t as Y } from "../chunks/diff.C5J0fzbu.js";
47
- import { t as X } from "../chunks/drawer.rdGcXxzU.js";
48
- import { t as Z } from "../chunks/progress-bar.Br8Zi53n.js";
49
- import { t as Q } from "../chunks/document-viewer.c03KTUv2.js";
50
- import { t as $ } from "../chunks/image.BjLoAnzR.js";
51
- import { t as ee } from "../chunks/skeleton.BtwugOTG.js";
52
- import { t as te } from "../chunks/dot-pagination.rTg08FAr.js";
47
+ import { t as X } from "../chunks/dot-pagination.rTg08FAr.js";
48
+ import { t as Z } from "../chunks/drawer.rdGcXxzU.js";
49
+ import { t as Q } from "../chunks/progress-bar.Br8Zi53n.js";
50
+ import { t as $ } from "../chunks/document-viewer.c03KTUv2.js";
51
+ import { t as ee } from "../chunks/image.BjLoAnzR.js";
52
+ import { t as te } from "../chunks/skeleton.BtwugOTG.js";
53
53
  import { t as ne } from "../chunks/dot-status.BATg_Fn-.js";
54
54
  import { t as re } from "../chunks/e-chart.JrYFPEVr.js";
55
55
  import { t as ie } from "../chunks/element-clamp.DO-eDDRj.js";
@@ -86,4 +86,4 @@ import { t as Pe } from "../chunks/switch.D6KXmWnC.js";
86
86
  import { t as Fe } from "../chunks/timecode.Bte9Ww5o.js";
87
87
  import { a as Ie, i as Le } from "../chunks/tree.0n9ApKdO.js";
88
88
  import { n as Re } from "../chunks/video.BVMZglAW.js";
89
- export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio, C as CxAvatar, w as CxBadge, T as CxBox, E as CxBreadcrumb, D as CxBreadcrumbItem, h as CxButton, O as CxButtonGroup, k as CxCard, A as CxCheckbox, U as CxColorPicker, W as CxCopyButton, G as CxDateCalendar, K as CxDetails, q as CxDialog, Y as CxDiff, J as CxDivider, Q as CxDocumentViewer, te as CxDotPagination, ne as CxDotStatus, X as CxDrawer, j as CxDropdown, re as CxEChart, ie as CxElementClamp, ae as CxFormatBytes, oe as CxFormatDate, se as CxFormatNumber, ce as CxFormatTime, le as CxGrid, ue as CxGridItem, de as CxHeader, fe as CxHubConnection, o as CxIcon, a as CxIconButton, pe as CxIframe, $ as CxImage, me as CxImageComparer, he as CxInclude, M as CxInput, ge as CxInputGroup, v as CxLineClamp, _e as CxMarkdown, N as CxMenu, P as CxMenuItem, ve as CxMenuLabel, ye as CxMenuSection, be as CxMutationObserver, I as CxOption, xe as CxPagination, e as CxPopup, Z as CxProgressBar, Se as CxProgressRing, Ce as CxQrCode, we as CxRadio, Te as CxRadioButton, Ee as CxRadioCard, De as CxRadioGroup, Oe as CxRange, ke as CxRating, Ae as CxRelativeTime, _ as CxResizeObserver, R as CxSelect, ee as CxSkeleton, L as CxSpace, s as CxSpinner, je as CxSplitPanel, Me as CxStep, Ne as CxStepper, Pe as CxSwitch, z as CxTab, B as CxTabGroup, V as CxTabPanel, y as CxTag, F as CxTextarea, Fe as CxTimecode, g as CxTooltip, Le as CxTree, Ie as CxTreeItem, x as CxTypography, Re as CxVideo, H as CxVisuallyHidden, t as componentStyles, m as fontAwesomeIconNames, i as getAnimation, f as getAnimationNames, p as getEasingNames, n as setAnimation, r as setDefaultAnimation };
89
+ export { c as CxAlert, l as CxAmChart, u as CxAnimatedImage, d as CxAnimation, b as CxArrayLineClamp, S as CxAudio, C as CxAvatar, w as CxBadge, T as CxBox, E as CxBreadcrumb, D as CxBreadcrumbItem, h as CxButton, O as CxButtonGroup, k as CxCard, A as CxCheckbox, U as CxColorPicker, W as CxCopyButton, G as CxDateCalendar, K as CxDetails, q as CxDialog, Y as CxDiff, J as CxDivider, $ as CxDocumentViewer, X as CxDotPagination, ne as CxDotStatus, Z as CxDrawer, j as CxDropdown, re as CxEChart, ie as CxElementClamp, ae as CxFormatBytes, oe as CxFormatDate, se as CxFormatNumber, ce as CxFormatTime, le as CxGrid, ue as CxGridItem, de as CxHeader, fe as CxHubConnection, o as CxIcon, a as CxIconButton, pe as CxIframe, ee as CxImage, me as CxImageComparer, he as CxInclude, M as CxInput, ge as CxInputGroup, v as CxLineClamp, _e as CxMarkdown, N as CxMenu, P as CxMenuItem, ve as CxMenuLabel, ye as CxMenuSection, be as CxMutationObserver, I as CxOption, xe as CxPagination, e as CxPopup, Q as CxProgressBar, Se as CxProgressRing, Ce as CxQrCode, we as CxRadio, Te as CxRadioButton, Ee as CxRadioCard, De as CxRadioGroup, Oe as CxRange, ke as CxRating, Ae as CxRelativeTime, _ as CxResizeObserver, R as CxSelect, te as CxSkeleton, L as CxSpace, s as CxSpinner, je as CxSplitPanel, Me as CxStep, Ne as CxStepper, Pe as CxSwitch, z as CxTab, B as CxTabGroup, V as CxTabPanel, y as CxTag, F as CxTextarea, Fe as CxTimecode, g as CxTooltip, Le as CxTree, Ie as CxTreeItem, x as CxTypography, Re as CxVideo, H as CxVisuallyHidden, t as componentStyles, m as fontAwesomeIconNames, i as getAnimation, f as getAnimationNames, p as getEasingNames, n as setAnimation, r as setDefaultAnimation };