@orangelogic/design-system 3.16.0 → 3.18.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/{asset-link-format.GZb85GYh.js → asset-link-format.Bk1qHIQA.js} +890 -893
- package/library/chunks/{button.BQoebhw_.js → button.DCyoZrRj.js} +1 -1
- package/library/chunks/{color-swatch-group.D25fjSK-.js → color-swatch-group.BtVbKp-v.js} +7 -7
- package/library/chunks/{confirm-popover.C35rVtVI.js → confirm-popover.-_1n24v-.js} +1 -1
- package/library/chunks/{document-viewer.sz5uTo3c.js → document-viewer.B-jtpLuD.js} +4 -4
- package/library/chunks/{dom.DShN_5Jh.js → dom.DL-cNKsj.js} +40 -38
- package/library/chunks/{folder-select.CHY44KlA.js → folder-select.DWaC4EWa.js} +3 -3
- package/library/chunks/{form.C8LMdQB4.js → form.DN2v7-DH.js} +1 -1
- package/library/chunks/{index.RctUlply.js → index.Byin4Jfx.js} +10 -10
- package/library/chunks/{input.BRZzv6Zk.js → input.Csf-S2nB.js} +1 -1
- package/library/chunks/{pagination.DtdNeZZD.js → pagination.C9NblxKt.js} +2 -2
- package/library/chunks/{tab-group.BQh_hMDd.js → tab-group.B6Aej-jM.js} +2 -2
- package/library/chunks/{toast.CGIDPKV8.js → toast.BxiewnAG.js} +1 -1
- package/library/chunks/{transformation.OaRYixzE.js → transformation.CjWnFhab.js} +12 -11
- package/library/chunks/{tree.DKofDMGu.js → tree.pId63hLe.js} +6 -3
- package/library/chunks/{types.C7C66KUV.js → types.Fkwo_sYp.js} +14223 -13895
- package/library/components/asset-link-format.js +3 -3
- package/library/components/atoms.js +6 -6
- package/library/components/audio.js +1 -1
- package/library/components/border-input-group.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/checkbox.js +1 -1
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/confirm-popover.js +2 -2
- package/library/components/corner-position-input-group.js +1 -1
- package/library/components/document-viewer.js +1 -1
- package/library/components/dropdown.js +1 -1
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -1
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +3 -3
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/molecules.js +2 -2
- package/library/components/mutation-observer.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +3 -3
- package/library/components/radio-group.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -1
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +1 -1
- package/library/components/size-input-group.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +3 -3
- package/library/components/textarea.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/types.js +185 -183
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +1 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +2 -2
- package/library/packages/atoms/src/components/video/video.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
- package/library/packages/organisms/src/carousel/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +27 -4
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +150 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +11 -0
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +10 -2
- package/library/packages/services/src/api/asset/asset.d.ts +6 -25
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +4 -0
- package/library/packages/types/src/gallery-item.d.ts +1 -0
- package/library/packages/types/src/xml-editor.d.ts +1 -1
- package/library/packages/utils/src/dom/dom.d.ts +9 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +2 -0
- package/library/react-web-component.d.ts +6 -2
- package/library/utils.js +117 -115
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as i, C as g } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as C } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { c as x } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { F as w, v as $ } from "./form.
|
|
4
|
+
import { F as w, v as $ } from "./form.DN2v7-DH.js";
|
|
5
5
|
import { L as S } from "./i18n.CNnI4-0K.js";
|
|
6
6
|
import { H as L, g as O } from "./slot.j5oheLJC.js";
|
|
7
7
|
import { w as y } from "./watch.DJF5K-8U.js";
|
|
@@ -3,11 +3,11 @@ import { C as Br, T as Tn } from "./typography.T72DuoCa.js";
|
|
|
3
3
|
import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import { C as $r, a as es } from "./color-swatch.DxxOpJXT.js";
|
|
5
5
|
import { c as $e } from "./component.styles.CAS3c9pM.js";
|
|
6
|
-
import { C as Et } from "./button.
|
|
6
|
+
import { C as Et } from "./button.DCyoZrRj.js";
|
|
7
7
|
import { C as Dn, o as Mn, O as Fn } from "./dialog.Dl9aHLD4.js";
|
|
8
8
|
import { C as oi } from "./icon-button.5-oAlIkv.js";
|
|
9
9
|
import Pt from "../components/tooltip.js";
|
|
10
|
-
import { i as Wr, r as Ln, f as Jt, m as zn, a as _n, t as jr, g as On, b as An, c as Pn } from "./toast.
|
|
10
|
+
import { i as Wr, r as Ln, f as Jt, m as zn, a as _n, t as jr, g as On, b as An, c as Pn } from "./toast.BxiewnAG.js";
|
|
11
11
|
import { c as Ie } from "./custom-element.L4WJXn1j.js";
|
|
12
12
|
import { L as tt } from "./i18n.CNnI4-0K.js";
|
|
13
13
|
import { b as In, S as Hn, c as Vo, p as Nn, w as V, E as Vn } from "./watch.DJF5K-8U.js";
|
|
@@ -21,7 +21,7 @@ import { l as si, i as Un, f as Kn } from "./_flatRest.ZYRhuYq_.js";
|
|
|
21
21
|
import { a as ao } from "./toString.B1zKIiZc.js";
|
|
22
22
|
import { a as qn, b as Xn } from "./_baseUniq.lwMgmtt2.js";
|
|
23
23
|
import { C as gt } from "./icon.BLXWp6CU.js";
|
|
24
|
-
import { C as Kr } from "./input.
|
|
24
|
+
import { C as Kr } from "./input.Csf-S2nB.js";
|
|
25
25
|
import { d as qr } from "./debounce.DaHuiSGU.js";
|
|
26
26
|
import { e as Ze } from "./class-map.BiVq-cVR.js";
|
|
27
27
|
import { c as Ke } from "./repeat.CFjcER6_.js";
|
|
@@ -40,14 +40,14 @@ import { o as ft } from "./style-map.llVFPd__.js";
|
|
|
40
40
|
import ai from "../components/dropdown.js";
|
|
41
41
|
import ra from "../components/menu-section.js";
|
|
42
42
|
import Xr from "../components/checkbox.js";
|
|
43
|
-
import { C as na, P as aa } from "./pagination.
|
|
43
|
+
import { C as na, P as aa } from "./pagination.C9NblxKt.js";
|
|
44
44
|
import { H as Jr } from "./slot.j5oheLJC.js";
|
|
45
|
-
import { g as B, a as Bo } from "./dom.
|
|
45
|
+
import { g as B, a as Bo } from "./dom.DL-cNKsj.js";
|
|
46
46
|
import "./browser.BHOCIF_A.js";
|
|
47
|
-
import "./form.
|
|
47
|
+
import "./form.DN2v7-DH.js";
|
|
48
48
|
import "./purify.es.BIuh5IAZ.js";
|
|
49
49
|
import { D as Yr, a as la, t as ha, b as Zr } from "./date-picker.BGHn6qg8.js";
|
|
50
|
-
import { D as Ti } from "./transformation.
|
|
50
|
+
import { D as Ti } from "./transformation.CjWnFhab.js";
|
|
51
51
|
import { s as P, h as $o, b as Ui, c as lo } from "./string.Demn8Xmk.js";
|
|
52
52
|
import { a as ca } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
53
53
|
import { d as da } from "./debounce.Bv1rtE8D.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as resizableComponentStyles, R as ResizableElement, a as ResizeDirection, b as HeightMode } from "./resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as CxButton } from "./button.
|
|
2
|
+
import { C as CxButton } from "./button.DCyoZrRj.js";
|
|
3
3
|
import CxDrawer from "../components/drawer.js";
|
|
4
4
|
import CxDropdown from "../components/dropdown.js";
|
|
5
5
|
import { C as CxIcon } from "./icon.BLXWp6CU.js";
|
|
6
6
|
import { C as CxIconButton } from "./icon-button.5-oAlIkv.js";
|
|
7
|
-
import { C as CxInput } from "./input.
|
|
7
|
+
import { C as CxInput } from "./input.Csf-S2nB.js";
|
|
8
8
|
import CxMenu from "../components/menu.js";
|
|
9
9
|
import { C as CxMenuItem } from "./menu-item.HtTWOcq4.js";
|
|
10
10
|
import CxPopup from "../components/popup.js";
|
|
@@ -18,12 +18,12 @@ import { c as componentStyles } from "./component.styles.CAS3c9pM.js";
|
|
|
18
18
|
import "./browser.BHOCIF_A.js";
|
|
19
19
|
import { c as customElement } from "./custom-element.L4WJXn1j.js";
|
|
20
20
|
import { i, x, E } from "./lit-element.jLBm65_O.js";
|
|
21
|
-
import "./form.
|
|
21
|
+
import "./form.DN2v7-DH.js";
|
|
22
22
|
import { L as LocalizeController } from "./i18n.CNnI4-0K.js";
|
|
23
23
|
import "./purify.es.BIuh5IAZ.js";
|
|
24
24
|
import { w as watch } from "./watch.DJF5K-8U.js";
|
|
25
25
|
import "./date-picker.BGHn6qg8.js";
|
|
26
|
-
import { f as fetchCortexApi } from "./transformation.
|
|
26
|
+
import { f as fetchCortexApi } from "./transformation.CjWnFhab.js";
|
|
27
27
|
import "./unsafe-html.Dff7-rCx.js";
|
|
28
28
|
import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
|
|
29
29
|
import { a as getDefaultExportFromCjs, c as commonjsGlobal } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { B as
|
|
3
|
-
const
|
|
1
|
+
import { s as m } from "./string.Demn8Xmk.js";
|
|
2
|
+
import { B as p } from "./lit-element.jLBm65_O.js";
|
|
3
|
+
const E = (n) => n.nodeType === Node.ELEMENT_NODE, C = (n, t) => {
|
|
4
4
|
if (!n)
|
|
5
5
|
return !1;
|
|
6
6
|
let e = n;
|
|
@@ -10,10 +10,10 @@ const h = (n) => n.nodeType === Node.ELEMENT_NODE, E = (n, t) => {
|
|
|
10
10
|
e.parentNode.host ? e = e.parentNode.host : e = e.parentNode;
|
|
11
11
|
}
|
|
12
12
|
return !1;
|
|
13
|
-
},
|
|
13
|
+
}, g = (n = document) => {
|
|
14
14
|
const t = n.activeElement;
|
|
15
|
-
return t ? t.shadowRoot ?
|
|
16
|
-
},
|
|
15
|
+
return t ? t.shadowRoot ? g(t.shadowRoot) : t : null;
|
|
16
|
+
}, T = (n, t = document.body, e = "width") => {
|
|
17
17
|
const i = n?.trim();
|
|
18
18
|
if (!i)
|
|
19
19
|
return 0;
|
|
@@ -22,12 +22,12 @@ const h = (n) => n.nodeType === Node.ELEMENT_NODE, E = (n, t) => {
|
|
|
22
22
|
return parseFloat(o);
|
|
23
23
|
const s = o.startsWith("-"), r = document.createElement("div");
|
|
24
24
|
r.style[e] = s ? o.substring(1) : o, r.style.position = "absolute", r.style.visibility = "hidden", t.appendChild(r);
|
|
25
|
-
const a = r.getBoundingClientRect(),
|
|
26
|
-
return t.removeChild(r), s ? -
|
|
27
|
-
},
|
|
25
|
+
const a = r.getBoundingClientRect(), c = e === "width" ? a.width : a.height;
|
|
26
|
+
return t.removeChild(r), s ? -c : c;
|
|
27
|
+
}, y = (n, t) => {
|
|
28
28
|
const e = t.getBoundingClientRect(), o = (n.clientX - e.left) / e.width * 100;
|
|
29
29
|
return Math.max(0, Math.min(100, o));
|
|
30
|
-
},
|
|
30
|
+
}, R = (n, t) => new Promise((e, i) => {
|
|
31
31
|
const o = t ? t.document : document, s = o.querySelector(
|
|
32
32
|
`script[src="${n}"]`
|
|
33
33
|
);
|
|
@@ -42,58 +42,60 @@ const h = (n) => n.nodeType === Node.ELEMENT_NODE, E = (n, t) => {
|
|
|
42
42
|
r.setAttribute("data-loaded", "true"), e();
|
|
43
43
|
}, r.onerror = () => i(new Error(`Failed to load ${n}`)), o.head.appendChild(r);
|
|
44
44
|
});
|
|
45
|
-
function
|
|
46
|
-
const [e, i, o, s] = n.split(" ").map(parseFloat), r = t ? "px" : "", a = Math.max(0, o + s - i),
|
|
45
|
+
function x(n, t = !1) {
|
|
46
|
+
const [e, i, o, s] = n.split(" ").map(parseFloat), r = t ? "px" : "", a = Math.max(0, o + s - i), c = o + s + e, u = o + s + i, l = Math.max(0, o + s - e);
|
|
47
47
|
return {
|
|
48
|
-
paddingBottom:
|
|
49
|
-
paddingLeft:
|
|
50
|
-
paddingRight:
|
|
48
|
+
paddingBottom: u + r,
|
|
49
|
+
paddingLeft: l + r,
|
|
50
|
+
paddingRight: c + r,
|
|
51
51
|
paddingTop: a + r
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function B(n) {
|
|
55
55
|
return [...n].sort((t, e) => {
|
|
56
56
|
const i = t.getBoundingClientRect().top, o = e.getBoundingClientRect().top;
|
|
57
57
|
return i - o;
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function M() {
|
|
61
61
|
return window.StackMgr?.GetInstance()?.GetIndex() ?? 99999;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function N() {
|
|
64
64
|
return document.getElementById("PopupLayer") || document.body;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function b(n) {
|
|
67
67
|
const t = document.createElement("template");
|
|
68
|
-
return
|
|
68
|
+
return p(n, t.content), t.content.firstElementChild;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function w(n) {
|
|
71
71
|
const t = document.createElement("template");
|
|
72
|
-
return t.innerHTML =
|
|
72
|
+
return t.innerHTML = m(n), t.content.firstElementChild;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function L(n) {
|
|
75
75
|
const t = {};
|
|
76
76
|
return Array.from(n).forEach((e) => {
|
|
77
77
|
t[e.nodeName] = e.nodeValue ?? "";
|
|
78
78
|
}), t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function S(n, t, e = 0) {
|
|
81
81
|
const i = n.getBoundingClientRect(), o = t.getBoundingClientRect();
|
|
82
82
|
return Math.round(o.left) >= Math.round(i.left) - e && Math.round(o.right) <= Math.round(i.right) + e;
|
|
83
83
|
}
|
|
84
|
+
const d = "data-search-consistency", v = (n) => n.closest(`[${d}]`)?.getAttribute(d) || void 0;
|
|
84
85
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
w as a,
|
|
87
|
+
y as b,
|
|
88
|
+
T as c,
|
|
89
|
+
g as d,
|
|
90
|
+
C as e,
|
|
91
|
+
E as f,
|
|
92
|
+
b as g,
|
|
93
|
+
L as h,
|
|
94
|
+
S as i,
|
|
95
|
+
x as j,
|
|
96
|
+
M as k,
|
|
97
|
+
R as l,
|
|
98
|
+
N as m,
|
|
99
|
+
v as r,
|
|
100
|
+
B as s
|
|
99
101
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { C as re } from "./icon.BLXWp6CU.js";
|
|
2
|
-
import { C as me } from "./input.
|
|
2
|
+
import { C as me } from "./input.Csf-S2nB.js";
|
|
3
3
|
import se from "../components/line-clamp.js";
|
|
4
4
|
import ye from "../components/select.js";
|
|
5
5
|
import ge from "../components/tag.js";
|
|
6
|
-
import { C as F, a as xe } from "./tree.
|
|
6
|
+
import { C as F, a as xe } from "./tree.pId63hLe.js";
|
|
7
7
|
import { n as s, C as N } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as A, F as be, A as $e } from "./endpoints.mJ5S-tIs.js";
|
|
9
9
|
import { M as P } from "./asset-link-format.ClaYu_v8.js";
|
|
@@ -16,7 +16,7 @@ import { x as g, i as ve } from "./lit-element.jLBm65_O.js";
|
|
|
16
16
|
import { r as x } from "./state.CSDxrqLd.js";
|
|
17
17
|
import { e as H } from "./query.BBf1UFkC.js";
|
|
18
18
|
import { r as Ie } from "./choose.BTbF6BAn.js";
|
|
19
|
-
import { C as ae } from "./button.
|
|
19
|
+
import { C as ae } from "./button.DCyoZrRj.js";
|
|
20
20
|
import { d as Se } from "./debounce.DaHuiSGU.js";
|
|
21
21
|
import { o as p } from "./if-defined.BRoBj_Rp.js";
|
|
22
22
|
import { c as G } from "./repeat.CFjcER6_.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as m } from "./dom.
|
|
1
|
+
import { s as m } from "./dom.DL-cNKsj.js";
|
|
2
2
|
const n = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakSet(), f = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
class v {
|
|
4
4
|
constructor(e, o) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as Q } from "./typography.T72DuoCa.js";
|
|
2
2
|
import { n as y, C as ee } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import { c as ae } from "./component.styles.CAS3c9pM.js";
|
|
4
|
-
import { C as Ee, s as ve, F as Z, a as Ce } from "./folder-select.
|
|
5
|
-
import { e as U, r as n1, S as m1, E as le } from "./transformation.
|
|
4
|
+
import { C as Ee, s as ve, F as Z, a as Ce } from "./folder-select.DWaC4EWa.js";
|
|
5
|
+
import { e as U, r as n1, S as m1, E as le } from "./transformation.CjWnFhab.js";
|
|
6
6
|
import { c as ie } from "./custom-element.L4WJXn1j.js";
|
|
7
7
|
import { L as W } from "./i18n.CNnI4-0K.js";
|
|
8
8
|
import { w as O } from "./watch.DJF5K-8U.js";
|
|
@@ -13,8 +13,8 @@ import { b as Ke } from "./_baseIteratee.sC2wLi2m.js";
|
|
|
13
13
|
import { a as d1 } from "./toString.B1zKIiZc.js";
|
|
14
14
|
import { b as s1 } from "./cloneDeep.tKGbEwzn.js";
|
|
15
15
|
import { c as o1 } from "./_baseClone.ipmFlCAx.js";
|
|
16
|
-
import { I as je, C as Ve, a as h1, b as He, S as z, D as g1, c as l1, A as Ie, g as C1, i as y1, F as x1, d as b1, t as k1, e as p1, f as u1, h as f1, j as A1, k as B1, l as D1, m as F1, n as E1, o as v1, p as $1, q as w1, r as S1, O as _1 } from "./types.
|
|
17
|
-
import { C as ce } from "./button.
|
|
16
|
+
import { I as je, C as Ve, a as h1, b as He, S as z, D as g1, c as l1, A as Ie, g as C1, i as y1, F as x1, d as b1, t as k1, e as p1, f as u1, h as f1, j as A1, k as B1, l as D1, m as F1, n as E1, o as v1, p as $1, q as w1, r as S1, O as _1 } from "./types.Fkwo_sYp.js";
|
|
17
|
+
import { C as ce } from "./button.DCyoZrRj.js";
|
|
18
18
|
import I1 from "../components/button-group.js";
|
|
19
19
|
import P1 from "../components/card.js";
|
|
20
20
|
import Ue from "../components/checkbox.js";
|
|
@@ -24,7 +24,7 @@ import q1 from "../components/dropdown.js";
|
|
|
24
24
|
import $e from "../components/grid.js";
|
|
25
25
|
import we from "../components/grid-item.js";
|
|
26
26
|
import { C as O1 } from "./icon.BLXWp6CU.js";
|
|
27
|
-
import { C as oe } from "./input.
|
|
27
|
+
import { C as oe } from "./input.Csf-S2nB.js";
|
|
28
28
|
import M1 from "../components/line-clamp.js";
|
|
29
29
|
import N1 from "../components/menu.js";
|
|
30
30
|
import { C as G1 } from "./menu-item.HtTWOcq4.js";
|
|
@@ -36,14 +36,14 @@ import Se from "../components/select.js";
|
|
|
36
36
|
import de from "../components/space.js";
|
|
37
37
|
import V1 from "../components/switch.js";
|
|
38
38
|
import H1 from "../components/tab.js";
|
|
39
|
-
import { C as U1 } from "./tab-group.
|
|
39
|
+
import { C as U1 } from "./tab-group.B6Aej-jM.js";
|
|
40
40
|
import W1 from "../components/tab-panel.js";
|
|
41
41
|
import J1 from "../components/textarea.js";
|
|
42
42
|
import Y1 from "../components/tooltip.js";
|
|
43
43
|
import X1 from "../components/visually-hidden.js";
|
|
44
44
|
import Z1 from "../components/bicolor-picker.js";
|
|
45
45
|
import Q1 from "../components/border-input-group.js";
|
|
46
|
-
import { C as e0, a as a0 } from "./confirm-popover
|
|
46
|
+
import { C as e0, a as a0 } from "./confirm-popover.-_1n24v-.js";
|
|
47
47
|
import i0 from "../components/corner-position-input-group.js";
|
|
48
48
|
import Qe from "../components/dynamic-select.js";
|
|
49
49
|
import t0 from "../components/padding-input-group.js";
|
|
@@ -59,11 +59,11 @@ import { n as v } from "./when.Dr1es41R.js";
|
|
|
59
59
|
import { a as l0 } from "./_baseXor.DixEm6JQ.js";
|
|
60
60
|
import { a as C0, i as Le, b as y0 } from "./isArrayLikeObject.D7afXo-f.js";
|
|
61
61
|
import { i as x0 } from "./isEmpty.DtTJTUcf.js";
|
|
62
|
-
import { a as Ae, F as b0, b as k0, c as qe, d as Oe, e as p0, i as u0, f as Me, u as Be } from "./asset-link-format.
|
|
62
|
+
import { a as Ae, F as b0, b as k0, c as qe, d as Oe, e as p0, i as u0, f as Me, u as Be } from "./asset-link-format.Bk1qHIQA.js";
|
|
63
63
|
import f0 from "../components/color-picker.js";
|
|
64
64
|
import { C as _e } from "./icon-button.5-oAlIkv.js";
|
|
65
65
|
import A0 from "../components/spinner.js";
|
|
66
|
-
import { a as B0, d as D0 } from "./color-swatch-group.
|
|
66
|
+
import { a as B0, d as D0 } from "./color-swatch-group.BtVbKp-v.js";
|
|
67
67
|
import { c as ne, C as me, p as F0, a as E0, b as v0, g as ye } from "./color.LzSGBy7o.js";
|
|
68
68
|
import { o as e1 } from "./map.D8heArFD.js";
|
|
69
69
|
import { v as a1 } from "./v4.CKZ6klMF.js";
|
|
@@ -72,7 +72,7 @@ import $0 from "../components/masonry.js";
|
|
|
72
72
|
import { a as ge } from "./index.Cpamj0jB.js";
|
|
73
73
|
import { G as L } from "./string.Demn8Xmk.js";
|
|
74
74
|
import { d as w0 } from "./default-value.COZopaet.js";
|
|
75
|
-
import { F as S0 } from "./form.
|
|
75
|
+
import { F as S0 } from "./form.DN2v7-DH.js";
|
|
76
76
|
import { o as De } from "./style-map.llVFPd__.js";
|
|
77
77
|
import { r as Fe } from "./choose.BTbF6BAn.js";
|
|
78
78
|
import { o as P } from "./if-defined.BRoBj_Rp.js";
|
|
@@ -3,7 +3,7 @@ import { c as ut } from "./component.styles.CAS3c9pM.js";
|
|
|
3
3
|
import { f as ot } from "./form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as lt } from "./custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as ht } from "./default-value.COZopaet.js";
|
|
6
|
-
import { F as pt } from "./form.
|
|
6
|
+
import { F as pt } from "./form.DN2v7-DH.js";
|
|
7
7
|
import { L as ct } from "./i18n.CNnI4-0K.js";
|
|
8
8
|
import { H as dt } from "./slot.j5oheLJC.js";
|
|
9
9
|
import { w as V } from "./watch.DJF5K-8U.js";
|
|
@@ -10,8 +10,8 @@ import { r as S } from "./state.CSDxrqLd.js";
|
|
|
10
10
|
import { e as $ } from "./class-map.BiVq-cVR.js";
|
|
11
11
|
import { c as x } from "./repeat.CFjcER6_.js";
|
|
12
12
|
import { n as g } from "./when.Dr1es41R.js";
|
|
13
|
-
import { C as w } from "./button.
|
|
14
|
-
import { C as v } from "./input.
|
|
13
|
+
import { C as w } from "./button.DCyoZrRj.js";
|
|
14
|
+
import { C as v } from "./input.Csf-S2nB.js";
|
|
15
15
|
import { C as I } from "./option.DgxoCq1j.js";
|
|
16
16
|
import B from "../components/select.js";
|
|
17
17
|
import N from "../components/tooltip.js";
|
|
@@ -5,7 +5,7 @@ import { c as Nn } from "./custom-element.L4WJXn1j.js";
|
|
|
5
5
|
import { L as Ln } from "./i18n.CNnI4-0K.js";
|
|
6
6
|
import { s as Zi } from "./scroll.xtO5yojm.js";
|
|
7
7
|
import { w as ft } from "./watch.DJF5K-8U.js";
|
|
8
|
-
import { i as $n } from "./dom.
|
|
8
|
+
import { i as $n } from "./dom.DL-cNKsj.js";
|
|
9
9
|
import { s as Un } from "./parse.Cu5nBDTb.js";
|
|
10
10
|
import { i as Wn, x as Nt } from "./lit-element.jLBm65_O.js";
|
|
11
11
|
import { r as at } from "./state.CSDxrqLd.js";
|
|
@@ -17,7 +17,7 @@ import { i as Ji } from "./guard.D4axKaMo.js";
|
|
|
17
17
|
import { o as tr } from "./map.D8heArFD.js";
|
|
18
18
|
import { o as Ve } from "./style-map.llVFPd__.js";
|
|
19
19
|
import { n as Pe } from "./when.Dr1es41R.js";
|
|
20
|
-
import { C as Yn } from "./button.
|
|
20
|
+
import { C as Yn } from "./button.DCyoZrRj.js";
|
|
21
21
|
import Xn from "../components/dropdown.js";
|
|
22
22
|
import { C as qn } from "./icon-button.5-oAlIkv.js";
|
|
23
23
|
import Gn from "../components/menu.js";
|
|
@@ -40,8 +40,8 @@ const w = {
|
|
|
40
40
|
/* Mobile */
|
|
41
41
|
)
|
|
42
42
|
}, re = [w, F, W];
|
|
43
|
-
var B = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(D || {}), U = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(U || {}), G = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(G || {}),
|
|
44
|
-
const se = Object.values(
|
|
43
|
+
var B = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(D || {}), U = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(U || {}), G = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(G || {}), O = /* @__PURE__ */ ((e) => (e.Accordion = "BlockAccordion", e.Analytics = "BlockAnalytics", e.Audio = "BlockAudio", e.Button = "BlockButton", e.Carousel = "BlockCarousel", e.ColorSwatches = "BlockColorSwatches", e.Column = "BlockCell", e.ColumnGroup = "BlockColumns", e.DamView = "BlockDamView", e.Divider = "BlockDivider", e.DocumentViewer = "BlockDocumentViewer", e.FontKit = "BlockFontKit", e.Gallery = "BlockGallery", e.Header = "BlockHeader", e.Image = "BlockImage", e.RichText = "BlockRichText", e.SearchBox = "BlockSearchBox", e.TabGroup = "BlockTabs", e.Text = "BlockText", e.Timeline = "BlockTimeline", e.Video = "BlockVideo", e))(O || {});
|
|
44
|
+
const se = Object.values(O).filter(
|
|
45
45
|
(e) => e !== "BlockCell"
|
|
46
46
|
/* Column */
|
|
47
47
|
);
|
|
@@ -288,14 +288,14 @@ const T = "TRX", N = "TR1", Z = /* @__PURE__ */ new Set([
|
|
|
288
288
|
"tiff",
|
|
289
289
|
"webp"
|
|
290
290
|
]);
|
|
291
|
-
function
|
|
291
|
+
function I(e) {
|
|
292
292
|
if (!e)
|
|
293
293
|
return "";
|
|
294
294
|
const i = e.trim().toLowerCase();
|
|
295
295
|
return i.startsWith(".") ? i.slice(1) : i;
|
|
296
296
|
}
|
|
297
297
|
function S(e) {
|
|
298
|
-
return
|
|
298
|
+
return I(e) === "gif";
|
|
299
299
|
}
|
|
300
300
|
const J = 1e3 * 1024 * 1024, P = {
|
|
301
301
|
b: 1,
|
|
@@ -330,7 +330,7 @@ function de(e, i) {
|
|
|
330
330
|
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
331
331
|
}
|
|
332
332
|
function ue(e, i) {
|
|
333
|
-
if (!Z.has(
|
|
333
|
+
if (!Z.has(I(e)))
|
|
334
334
|
return N;
|
|
335
335
|
const n = ee(i);
|
|
336
336
|
return n !== void 0 && n > J ? N : T;
|
|
@@ -358,9 +358,10 @@ function he(e, i = 100) {
|
|
|
358
358
|
}
|
|
359
359
|
export {
|
|
360
360
|
D as A,
|
|
361
|
-
|
|
361
|
+
O as B,
|
|
362
362
|
L as D,
|
|
363
363
|
U as E,
|
|
364
|
+
T as O,
|
|
364
365
|
B as P,
|
|
365
366
|
oe as S,
|
|
366
367
|
G as T,
|
|
@@ -374,11 +375,11 @@ export {
|
|
|
374
375
|
j as h,
|
|
375
376
|
se as i,
|
|
376
377
|
re as j,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
N as k,
|
|
379
|
+
X as l,
|
|
380
|
+
E as m,
|
|
381
|
+
q as n,
|
|
382
|
+
le as o,
|
|
382
383
|
J as p,
|
|
383
384
|
ee as q,
|
|
384
385
|
ue as r
|
|
@@ -736,7 +736,7 @@ let c = class extends F {
|
|
|
736
736
|
this.removeAttribute("dragging");
|
|
737
737
|
}
|
|
738
738
|
initSortable() {
|
|
739
|
-
this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
|
|
739
|
+
this.destroySortable(), this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
|
|
740
740
|
...M({
|
|
741
741
|
group: this.getSortableGroup(),
|
|
742
742
|
onAdd: this.handleSortableUpdate,
|
|
@@ -761,8 +761,8 @@ let c = class extends F {
|
|
|
761
761
|
i.selected = !1, i.indeterminate = !1;
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
async handleSortableChange() {
|
|
765
|
+
this.sortable ? this.initSortable() : this.destroySortable();
|
|
766
766
|
}
|
|
767
767
|
/**
|
|
768
768
|
* Returns the list of tree items that are selected in the tree.
|
|
@@ -853,6 +853,9 @@ h([
|
|
|
853
853
|
h([
|
|
854
854
|
b("selection")
|
|
855
855
|
], c.prototype, "handleSelectionChange", 1);
|
|
856
|
+
h([
|
|
857
|
+
b("sortable")
|
|
858
|
+
], c.prototype, "handleSortableChange", 1);
|
|
856
859
|
c = h([
|
|
857
860
|
U("cx-tree")
|
|
858
861
|
], c);
|