@orangelogic/design-system 4.21.0 → 4.22.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.
- package/library/chunks/{config-manager.utils.C_nIDsZ5.js → block-width.DfiJymuv.js} +17 -3
- package/library/chunks/{config-manager.CN_u-UFw.js → config-manager.h_NP4rMe.js} +135 -129
- package/library/chunks/{configs-controller.Dea3OymR.js → configs-controller.BoayLLeA.js} +4 -0
- package/library/components/types.js +11526 -11540
- package/library/package.json +1 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +3 -0
- package/library/packages/types/src/content-builder.d.ts +4 -0
- package/package.json +1 -1
|
@@ -79,7 +79,7 @@ import { t as Dt } from "./shadow-input-group.ClTseaRz.js";
|
|
|
79
79
|
import { t as Ot } from "./size-input-group.D9EWFcr7.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.B-wi80wk.js";
|
|
81
81
|
import { c as Zt, d as Qt, f as $t, n as en, u as tn } from "./color-swatch-group.WMinusvs.js";
|
|
82
|
-
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.
|
|
82
|
+
import { B as nn, C as rn, H as an, J as on, P as sn, Q as cn, R as ln, U as un, V as dn, X as fn, Y as I, Z as L, f as pn, g as mn, k as R, p as hn, y as gn, z as _n } from "./configs-controller.BoayLLeA.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) {
|
|
@@ -42394,7 +42394,7 @@ var Yr = class {
|
|
|
42394
42394
|
let r = t.currentTarget.value ?? "", i = t.target.value;
|
|
42395
42395
|
h = i;
|
|
42396
42396
|
for (let t of l.inputConfigs?.suffix?.options ?? []) if (t.value === h && t.dataId) {
|
|
42397
|
-
let n = e[t.dataId];
|
|
42397
|
+
let n = e[t.dataId] || t.resolveDefaultValue?.();
|
|
42398
42398
|
n && (r = n, i = "");
|
|
42399
42399
|
break;
|
|
42400
42400
|
}
|
|
@@ -43302,4 +43302,18 @@ function oi(e) {
|
|
|
43302
43302
|
}, {}) : {};
|
|
43303
43303
|
}
|
|
43304
43304
|
//#endregion
|
|
43305
|
-
|
|
43305
|
+
//#region ../../packages/organisms/src/content-builder/plugins/utils/block-width.ts
|
|
43306
|
+
var si = ".column__content";
|
|
43307
|
+
function ci(e, t, n) {
|
|
43308
|
+
let r = t.defaultSlot ?? t.containerEl.querySelector(si) ?? t.containerEl, i = n.getComputedStyle(r), a = Number.parseFloat(i.paddingLeft || "0"), o = Number.parseFloat(i.paddingRight || "0"), s = r.clientWidth - a - o;
|
|
43309
|
+
return e.hasAttribute("full-bleed") || t.closest("cx-column-group") ? s : li(t, n) ?? s;
|
|
43310
|
+
}
|
|
43311
|
+
function li(e, t) {
|
|
43312
|
+
if (!e.bandLayout) return;
|
|
43313
|
+
let n = e.containerEl?.querySelector(si);
|
|
43314
|
+
if (!n) return;
|
|
43315
|
+
let r = t.getComputedStyle(n).gridTemplateColumns.split(" ").map((e) => Number.parseFloat(e)).filter((e) => Number.isFinite(e))[1];
|
|
43316
|
+
if (!(!Number.isFinite(r) || r <= 0)) return r;
|
|
43317
|
+
}
|
|
43318
|
+
//#endregion
|
|
43319
|
+
export { yn as A, or as C, wn as D, jn as E, Sn as O, lr as S, er as T, Or as _, oi as a, fr as b, Xr as c, Vr as d, Lr as f, Ar as g, Br as h, ai as i, bn as k, Yr as l, Fr as m, ii as n, ni as o, Rr as p, ri as r, ei as s, ci as t, Jr as u, Sr as v, ir as w, ur as x, br 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.F15zfy2d.js";
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { C as
|
|
15
|
+
import { t as ee } from "./tooltip.EVa9qa8X.js";
|
|
16
|
+
import { t as te } from "./line-clamp.DUw4HDNG.js";
|
|
17
|
+
import { C as ne, D as re, E as ie, O as ae, S as oe, T as se, _ as ce, a as le, b as ue, c as de, g as fe, i as pe, l 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.DfiJymuv.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
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { n as
|
|
29
|
-
import { t as
|
|
30
|
-
import { t as
|
|
31
|
-
import { t as
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
24
|
+
import { t as _e } from "./dropdown.Yz1dFrzN.js";
|
|
25
|
+
import { t as ve } from "./input.HC75Gdv_.js";
|
|
26
|
+
import { t as ye } from "./menu.yAc9YFlN.js";
|
|
27
|
+
import { t as be } from "./menu-item.BXd8ZyH5.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.B9yDGHPh.js";
|
|
31
|
+
import { t as Te } from "./space.Dd8jezXK.js";
|
|
32
|
+
import { t as Ee } from "./select.jlSyzF3u.js";
|
|
33
|
+
import { t as De } from "./tab.DrD0Ii5J.js";
|
|
34
34
|
import { t as z } from "./tab-group.CPL6IRZr.js";
|
|
35
|
-
import { t as
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
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
|
|
40
|
-
import { n as
|
|
41
|
-
import { m as H, s as
|
|
42
|
-
import { isFormInteracted as
|
|
43
|
-
import { t as
|
|
44
|
-
import { t as
|
|
45
|
-
import { t as
|
|
46
|
-
import { t as
|
|
47
|
-
import { t as
|
|
48
|
-
import { t as
|
|
49
|
-
import { t as
|
|
50
|
-
import { t as
|
|
51
|
-
import { t as
|
|
52
|
-
import { n as
|
|
53
|
-
import { t as
|
|
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.DiC0-MMO.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.BHwn7qgI.js";
|
|
51
|
+
import { t as Ue } from "./border-input-group.DlxLP_Yi.js";
|
|
52
|
+
import { n as We, t as U } from "./confirm-popover.B60_VW9E.js";
|
|
53
|
+
import { t as Ge } from "./corner-position-input-group.BVPOtopa.js";
|
|
54
54
|
import { t as W } from "./_baseIteratee.DWc2-Bvm.js";
|
|
55
|
-
import { t as
|
|
55
|
+
import { t as Ke } from "./dynamic-select.C7bnEwn9.js";
|
|
56
56
|
import { r as G } from "./folder-select.DZ27acgw.js";
|
|
57
|
-
import { t as
|
|
58
|
-
import { t as
|
|
59
|
-
import { t as
|
|
60
|
-
import { t as
|
|
61
|
-
import { t as
|
|
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.ClTseaRz.js";
|
|
61
|
+
import { t as Ze } from "./size-input-group.D9EWFcr7.js";
|
|
62
62
|
import { T as K } from "./asset-link-format.B-wi80wk.js";
|
|
63
|
-
import { n as
|
|
64
|
-
import { n as
|
|
65
|
-
import { i as
|
|
66
|
-
import { C as
|
|
67
|
-
import { t as
|
|
68
|
-
import { i as
|
|
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.BoayLLeA.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
|
|
71
|
-
return q(e) ?
|
|
72
|
-
}),
|
|
73
|
-
function
|
|
74
|
-
if (typeof e != "function") throw TypeError(
|
|
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
|
|
88
|
+
function ut(e, t) {
|
|
89
89
|
if (e == null) return {};
|
|
90
|
-
var n =
|
|
90
|
+
var n = Me(tt(e), function(e) {
|
|
91
91
|
return [e];
|
|
92
92
|
});
|
|
93
|
-
return t = W(t),
|
|
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
|
|
100
|
-
return
|
|
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
|
|
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(
|
|
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
|
|
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 =
|
|
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: `${
|
|
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,
|
|
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
|
-
}),
|
|
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(ue(), 1), vt = class {
|
|
166
166
|
constructor(e) {
|
|
167
|
-
this.host = e, this.localize = new p(this.host), this.controlRenderer = new
|
|
167
|
+
this.host = e, this.localize = new p(this.host), this.controlRenderer = new me(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 =
|
|
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
|
|
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)} ${
|
|
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">${
|
|
332
|
-
let r = this.localize.languageName(n) ||
|
|
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
|
|
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
|
-
|
|
438
|
-
|
|
439
|
-
|
|
437
|
+
gt,
|
|
438
|
+
E,
|
|
439
|
+
de
|
|
440
440
|
];
|
|
441
441
|
static #t = this.dependencies = {
|
|
442
|
-
"cx-asset-format-picker":
|
|
443
|
-
"cx-asset-picker":
|
|
444
|
-
"cx-asset-transformation-dialog":
|
|
445
|
-
"cx-bicolor-picker":
|
|
446
|
-
"cx-border-input-group":
|
|
442
|
+
"cx-asset-format-picker": ne,
|
|
443
|
+
"cx-asset-picker": ae,
|
|
444
|
+
"cx-asset-transformation-dialog": oe,
|
|
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":
|
|
451
|
+
"cx-color-swatch-picker": D,
|
|
452
452
|
"cx-confirm-popover": U,
|
|
453
|
-
"cx-corner-position-input-group":
|
|
454
|
-
"cx-dam-custom-toolbar-buttons-editor":
|
|
453
|
+
"cx-corner-position-input-group": Ge,
|
|
454
|
+
"cx-dam-custom-toolbar-buttons-editor": ge,
|
|
455
455
|
"cx-dialog": V,
|
|
456
|
-
"cx-divider":
|
|
456
|
+
"cx-divider": je,
|
|
457
457
|
"cx-download-format-picker": re,
|
|
458
|
-
"cx-dropdown":
|
|
459
|
-
"cx-dynamic-select":
|
|
460
|
-
"cx-folder-picker":
|
|
461
|
-
"cx-font-picker":
|
|
462
|
-
"cx-gallery-picker":
|
|
463
|
-
"cx-grid":
|
|
464
|
-
"cx-grid-item":
|
|
458
|
+
"cx-dropdown": _e,
|
|
459
|
+
"cx-dynamic-select": Ke,
|
|
460
|
+
"cx-folder-picker": w,
|
|
461
|
+
"cx-font-picker": ie,
|
|
462
|
+
"cx-gallery-picker": ce,
|
|
463
|
+
"cx-grid": Ie,
|
|
464
|
+
"cx-grid-item": Le,
|
|
465
465
|
"cx-icon": y,
|
|
466
|
-
"cx-icon-picker":
|
|
467
|
-
"cx-input":
|
|
468
|
-
"cx-line-clamp":
|
|
469
|
-
"cx-list-editor":
|
|
470
|
-
"cx-menu":
|
|
471
|
-
"cx-menu-item":
|
|
472
|
-
"cx-option":
|
|
473
|
-
"cx-padding-input-group":
|
|
474
|
-
"cx-page-picker":
|
|
475
|
-
"cx-position-picker":
|
|
476
|
-
"cx-radio":
|
|
477
|
-
"cx-radio-card":
|
|
478
|
-
"cx-radio-group":
|
|
479
|
-
"cx-select":
|
|
480
|
-
"cx-shadow-input-group":
|
|
481
|
-
"cx-size-input-group":
|
|
482
|
-
"cx-space":
|
|
483
|
-
"cx-switch":
|
|
484
|
-
"cx-tab":
|
|
466
|
+
"cx-icon-picker": se,
|
|
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": fe,
|
|
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":
|
|
487
|
-
"cx-textarea":
|
|
488
|
-
"cx-tooltip":
|
|
489
|
-
"cx-type-subtype-select":
|
|
486
|
+
"cx-tab-panel": ke,
|
|
487
|
+
"cx-textarea": Ce,
|
|
488
|
+
"cx-tooltip": ee,
|
|
489
|
+
"cx-type-subtype-select": T,
|
|
490
490
|
"cx-typography": O,
|
|
491
|
-
"cx-visually-hidden":
|
|
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 =
|
|
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() :
|
|
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>${
|
|
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=${
|
|
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,
|
|
690
|
-
static #e = this.styles = [d,
|
|
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
|
|
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
|
-
...
|
|
727
|
-
...
|
|
728
|
-
}, this.blockProperties =
|
|
727
|
+
...he(this.component),
|
|
728
|
+
...dt(this.translatableControlValuesMap[this.defaultLanguage], (e) => e === void 0)
|
|
729
|
+
}, this.blockProperties = pe(this.component), this.blockStyles = le(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") ===
|
|
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
|
|
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
|
|
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
|
|
858
|
+
var bt = $;
|
|
853
859
|
//#endregion
|
|
854
|
-
export {
|
|
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 or = {
|
|
|
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 or = {
|
|
|
7070
7073
|
min: 0
|
|
7071
7074
|
} },
|
|
7072
7075
|
name: "%",
|
|
7076
|
+
resolveDefaultValue: () => t.resolveWidthUnitDefault?.("%"),
|
|
7073
7077
|
value: "%"
|
|
7074
7078
|
}],
|
|
7075
7079
|
type: "unit"
|