@orangelogic/design-system 2.100.0 → 2.102.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.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
- package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
- package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
- package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
- package/library/chunks/debounce.CIEhztrj.js +97 -0
- package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
- package/library/chunks/event.BeKOsirN.js +46 -0
- package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
- package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
- package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
- package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.CMakbQyU.js} +182 -184
- package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
- package/library/chunks/transformation.Dir8s_wm.js +151 -0
- package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
- package/library/components/alert.js +7 -8
- package/library/components/asset-link-format.js +867 -672
- package/library/components/atoms.js +4 -4
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/details.js +1 -2
- package/library/components/dialog.js +3 -4
- package/library/components/drawer.js +83 -73
- package/library/components/dropdown.js +7 -8
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -2
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +2 -2
- package/library/components/line-clamp.js +4 -5
- package/library/components/list-editor.js +4 -4
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +73 -74
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +6 -6
- package/library/components/table.js +1 -1
- package/library/components/tag.js +44 -31
- package/library/components/tooltip.js +1 -2
- package/library/components/tree-item.js +4 -3
- package/library/components/tree.js +1 -1
- package/library/components/types.js +760 -765
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +8 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
- package/library/packages/atoms/src/components/tag/tag.d.ts +11 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +4 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -1
- package/library/packages/types/src/asset-link-format.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +5 -1
- package/library/packages/types/src/tag.d.ts +1 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +4 -1
- package/library/react-web-component.d.ts +19 -3
- package/library/utils.js +138 -140
- package/package.json +1 -1
- package/library/chunks/animate.El-MpOws.js +0 -37
- package/library/chunks/browser.BHOCIF_A.js +0 -84
- package/library/chunks/debounce.DaHuiSGU.js +0 -15
- package/library/chunks/event.mFzZi4sr.js +0 -11
- package/library/chunks/transformation.Cqz3hPaQ.js +0 -144
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.Cm-ynClk.js";
|
|
3
3
|
import { C as k } from "./typography.DJC_UXgs.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
|
-
import { C, a as g } from "./color-swatch.
|
|
5
|
+
import { C, a as g } from "./color-swatch.GsiCvj1n.js";
|
|
6
6
|
import { c as A } from "./component.styles.CRO4Odto.js";
|
|
7
7
|
import { D as p } from "./content-builder.CcgZciZN.js";
|
|
8
8
|
import { c as S } from "./custom-element.L4WJXn1j.js";
|
|
9
|
-
import { d as T } from "./debounce.
|
|
9
|
+
import { d as T } from "./debounce.CIEhztrj.js";
|
|
10
10
|
import { L as E } from "./i18n.DK1uYlJT.js";
|
|
11
11
|
import { w as x } from "./watch.BCJD77bD.js";
|
|
12
12
|
import { g as D, a as R } from "./responsive.Oz9HWjyQ.js";
|
|
@@ -7,7 +7,7 @@ import { n as a, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
|
7
7
|
import { c as F } from "./component.styles.CRO4Odto.js";
|
|
8
8
|
import { c as n, C as h, H as $, l as z } from "./color.vLD2sNTs.js";
|
|
9
9
|
import { c as O } from "./custom-element.L4WJXn1j.js";
|
|
10
|
-
import { d as W } from "./debounce.
|
|
10
|
+
import { d as W } from "./debounce.CIEhztrj.js";
|
|
11
11
|
import { L as A } from "./i18n.DK1uYlJT.js";
|
|
12
12
|
import { w as i } from "./watch.BCJD77bD.js";
|
|
13
13
|
import { i as G, x as u } from "./lit-element.jLBm65_O.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as _ } from "./button.DfRnA70F.js";
|
|
2
|
-
import { C as u, D as h } from "./dialog.
|
|
2
|
+
import { C as u, D as h } from "./dialog.BTU6B2_4.js";
|
|
3
3
|
import g from "../components/dropdown.js";
|
|
4
4
|
import { C as x } from "./typography.DJC_UXgs.js";
|
|
5
5
|
import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const S = () => {
|
|
2
|
+
const t = window.navigator && window.navigator.userAgent || "";
|
|
3
|
+
return /Firefox/i.test(t);
|
|
4
|
+
}, m = () => navigator.userAgent.indexOf("Chrome") > -1, g = () => {
|
|
5
|
+
const t = window.navigator && window.navigator.userAgent || "";
|
|
6
|
+
return m() ? !1 : t.indexOf("Safari") > -1;
|
|
7
|
+
}, b = !g() && "VideoEncoder" in window, C = "showPopover" in document.createElement("div");
|
|
8
|
+
function d(t) {
|
|
9
|
+
if (t.assignedSlot)
|
|
10
|
+
return t.assignedSlot;
|
|
11
|
+
if (t.parentElement)
|
|
12
|
+
return t.parentElement;
|
|
13
|
+
const o = t.getRootNode();
|
|
14
|
+
return o instanceof ShadowRoot ? o.host : null;
|
|
15
|
+
}
|
|
16
|
+
function p(t, o) {
|
|
17
|
+
if (!t)
|
|
18
|
+
return null;
|
|
19
|
+
let n = d(t);
|
|
20
|
+
if (!n)
|
|
21
|
+
return null;
|
|
22
|
+
for (; n; ) {
|
|
23
|
+
if (n === document.body)
|
|
24
|
+
return;
|
|
25
|
+
if (o(n))
|
|
26
|
+
return n;
|
|
27
|
+
n = d(n);
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
function A(t) {
|
|
32
|
+
return p(t, (o) => {
|
|
33
|
+
const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "", l = o.hasAttribute(
|
|
34
|
+
"data-overlayscrollbars-viewport"
|
|
35
|
+
), a = n.transform !== "none", r = ["auto", "scroll", "hidden"].includes(
|
|
36
|
+
n.overflow
|
|
37
|
+
);
|
|
38
|
+
return !!(e || l || a && r);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const w = [
|
|
42
|
+
"transform",
|
|
43
|
+
"translate",
|
|
44
|
+
"scale",
|
|
45
|
+
"rotate",
|
|
46
|
+
"perspective"
|
|
47
|
+
], y = [
|
|
48
|
+
"transform",
|
|
49
|
+
"translate",
|
|
50
|
+
"scale",
|
|
51
|
+
"rotate",
|
|
52
|
+
"perspective",
|
|
53
|
+
"filter"
|
|
54
|
+
], v = ["paint", "layout", "strict", "content"];
|
|
55
|
+
function E(t) {
|
|
56
|
+
return p(
|
|
57
|
+
t,
|
|
58
|
+
(n) => {
|
|
59
|
+
const e = window.getComputedStyle(n), l = w.some(
|
|
60
|
+
(i) => e[i] ? e[i] !== "none" : !1
|
|
61
|
+
), a = e.backdropFilter, r = !!a && a !== "none", c = e.filter !== "none", u = e.containerType !== "normal", s = y.some(
|
|
62
|
+
(i) => (e.willChange || "").includes(i)
|
|
63
|
+
), f = v.some(
|
|
64
|
+
(i) => (e.contain || "").includes(i)
|
|
65
|
+
), h = e.contentVisibility === "auto";
|
|
66
|
+
return g() && u ? !0 : l || s || f || r || h || c;
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
function P() {
|
|
71
|
+
return /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
72
|
+
}
|
|
73
|
+
const T = (t, o = !1) => {
|
|
74
|
+
const n = Symbol(), e = Symbol();
|
|
75
|
+
return (l, a, r) => {
|
|
76
|
+
const c = r.value;
|
|
77
|
+
r.value = function(...u) {
|
|
78
|
+
const s = this;
|
|
79
|
+
clearTimeout(s[n]), o && !s[e] && (c.apply(this, u), s[e] = !0), s[n] = window.setTimeout(() => {
|
|
80
|
+
o || c.apply(this, u), s[e] = !1;
|
|
81
|
+
}, t);
|
|
82
|
+
}, r.configurable === !1 && (r.configurable = !0);
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
E as a,
|
|
87
|
+
S as b,
|
|
88
|
+
P as c,
|
|
89
|
+
T as d,
|
|
90
|
+
m as e,
|
|
91
|
+
A as f,
|
|
92
|
+
d as g,
|
|
93
|
+
p as h,
|
|
94
|
+
g as i,
|
|
95
|
+
C as p,
|
|
96
|
+
b as s
|
|
97
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { n as r, C as k } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as S } from "./component.styles.CRO4Odto.js";
|
|
3
3
|
import { O, C as D, H, z as A, o as B } from "./overlayscrollbars.BMav4RQ4.js";
|
|
4
|
-
import { a as c, s as p } from "./
|
|
4
|
+
import { a as c, s as p, w as x } from "./event.BeKOsirN.js";
|
|
5
5
|
import { c as $ } from "./custom-element.L4WJXn1j.js";
|
|
6
|
-
import { w as x } from "./event.mFzZi4sr.js";
|
|
7
6
|
import { L } from "./i18n.DK1uYlJT.js";
|
|
8
7
|
import { M as P } from "./modal.U1QltQKe.js";
|
|
9
8
|
import { l as w, u as _ } from "./scroll.xtO5yojm.js";
|
|
10
9
|
import { H as E } from "./slot.j5oheLJC.js";
|
|
11
10
|
import { w as z } from "./watch.BCJD77bD.js";
|
|
12
11
|
import { i as R, x as y, E as W } from "./lit-element.jLBm65_O.js";
|
|
13
|
-
import { r as
|
|
14
|
-
import { e as
|
|
12
|
+
import { r as g } from "./state.CSDxrqLd.js";
|
|
13
|
+
import { e as m } from "./query.BBf1UFkC.js";
|
|
15
14
|
import { e as v } from "./class-map.BiVq-cVR.js";
|
|
16
15
|
import { o as C } from "./if-defined.BRoBj_Rp.js";
|
|
17
16
|
import { o as q } from "./style-map.llVFPd__.js";
|
|
@@ -269,13 +268,13 @@ t.dependencies = {
|
|
|
269
268
|
"cx-popup": U
|
|
270
269
|
};
|
|
271
270
|
i([
|
|
272
|
-
|
|
271
|
+
m(".popup")
|
|
273
272
|
], t.prototype, "popup", 2);
|
|
274
273
|
i([
|
|
275
|
-
|
|
274
|
+
m(".dialog__panel")
|
|
276
275
|
], t.prototype, "panel", 2);
|
|
277
276
|
i([
|
|
278
|
-
|
|
277
|
+
m(".dialog__body")
|
|
279
278
|
], t.prototype, "body", 2);
|
|
280
279
|
i([
|
|
281
280
|
r({ reflect: !0, type: Boolean })
|
|
@@ -331,13 +330,13 @@ i([
|
|
|
331
330
|
r({ reflect: !0 })
|
|
332
331
|
], t.prototype, "strategy", 2);
|
|
333
332
|
i([
|
|
334
|
-
|
|
333
|
+
g()
|
|
335
334
|
], t.prototype, "overlay", 2);
|
|
336
335
|
i([
|
|
337
|
-
|
|
336
|
+
g()
|
|
338
337
|
], t.prototype, "boundaryObserver", 2);
|
|
339
338
|
i([
|
|
340
|
-
|
|
339
|
+
g()
|
|
341
340
|
], t.prototype, "boundarySize", 2);
|
|
342
341
|
i([
|
|
343
342
|
z(["boundary"], { waitUntilFirstUpdate: !0 })
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function a(n, e, t) {
|
|
2
|
+
return new Promise((r) => {
|
|
3
|
+
if (t?.duration === 1 / 0)
|
|
4
|
+
throw new Error("Promise-based animations must be finite.");
|
|
5
|
+
const i = n.animate(e, {
|
|
6
|
+
...t,
|
|
7
|
+
duration: o() ? 0 : t.duration
|
|
8
|
+
});
|
|
9
|
+
i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function s(n) {
|
|
13
|
+
return n = n.toString().toLowerCase(), n.indexOf("ms") > -1 ? parseFloat(n) : n.indexOf("s") > -1 ? parseFloat(n) * 1e3 : parseFloat(n);
|
|
14
|
+
}
|
|
15
|
+
function o() {
|
|
16
|
+
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
17
|
+
}
|
|
18
|
+
function u(n) {
|
|
19
|
+
return Promise.all(
|
|
20
|
+
n.getAnimations().map((e) => new Promise((t) => {
|
|
21
|
+
e.cancel(), requestAnimationFrame(t);
|
|
22
|
+
}))
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function c(n, e) {
|
|
26
|
+
return n.map((t) => ({
|
|
27
|
+
...t,
|
|
28
|
+
height: t.height === "auto" ? `${e}px` : t.height
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
function m(n, e) {
|
|
32
|
+
return new Promise((t) => {
|
|
33
|
+
function r(i) {
|
|
34
|
+
i.target === n && (n.removeEventListener(e, r), t());
|
|
35
|
+
}
|
|
36
|
+
n.addEventListener(e, r);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
a,
|
|
41
|
+
c as b,
|
|
42
|
+
o as c,
|
|
43
|
+
s as p,
|
|
44
|
+
u as s,
|
|
45
|
+
m as w
|
|
46
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import J from "../components/icon.js";
|
|
2
2
|
import Q from "../components/line-clamp.js";
|
|
3
|
-
import { C as $t, s as St, a as It, b as dt } from "./tree.
|
|
3
|
+
import { C as $t, s as St, a as It, b as dt } from "./tree.DAiWVFiY.js";
|
|
4
4
|
import { n as d, C as H } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { c as tt } from "./component.styles.CRO4Odto.js";
|
|
6
6
|
import { c as W } from "./custom-element.L4WJXn1j.js";
|
|
@@ -16,7 +16,7 @@ import { n as p } from "./when.Dr1es41R.js";
|
|
|
16
16
|
import { a as Mt, i as At, c as Vt, b as ht } from "./_baseUniq.BUihBa8c.js";
|
|
17
17
|
import Ht from "../components/avatar.js";
|
|
18
18
|
import { C as Wt } from "./button.DfRnA70F.js";
|
|
19
|
-
import { C as qt } from "./dialog.
|
|
19
|
+
import { C as qt } from "./dialog.BTU6B2_4.js";
|
|
20
20
|
import Gt from "../components/divider.js";
|
|
21
21
|
import nt from "../components/format-bytes.js";
|
|
22
22
|
import { C as Dt } from "./icon-button.CN0NGNQx.js";
|
|
@@ -30,8 +30,8 @@ import { C as Qt } from "./tab-group.DpyBG0JQ.js";
|
|
|
30
30
|
import te from "../components/tab-panel.js";
|
|
31
31
|
import Pt from "../components/tooltip.js";
|
|
32
32
|
import { C as rt } from "./typography.DJC_UXgs.js";
|
|
33
|
-
import { C as ee } from "./confirm-popover.
|
|
34
|
-
import { d as se } from "./debounce.
|
|
33
|
+
import { C as ee } from "./confirm-popover.PiSCZY6-.js";
|
|
34
|
+
import { d as se } from "./debounce.CIEhztrj.js";
|
|
35
35
|
import { a as et } from "./number.B4PQLJIg.js";
|
|
36
36
|
import { i as K, a as pt } from "./url.Cj9cIQXJ.js";
|
|
37
37
|
import { a as ie } from "./toString.CL_lYXbK.js";
|
|
@@ -3,7 +3,7 @@ import oe from "../components/input.js";
|
|
|
3
3
|
import j from "../components/line-clamp.js";
|
|
4
4
|
import ce from "../components/select.js";
|
|
5
5
|
import ne from "../components/tag.js";
|
|
6
|
-
import { C as g, a as he } from "./tree.
|
|
6
|
+
import { C as g, a as he } from "./tree.DAiWVFiY.js";
|
|
7
7
|
import { n as r, C as R } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as V, F as de, M as B, c as pe } from "./asset.types.KXRZEtBr.js";
|
|
9
9
|
import { c as Z } from "./component.styles.CRO4Odto.js";
|
|
@@ -15,7 +15,7 @@ import { r as x } from "./state.CSDxrqLd.js";
|
|
|
15
15
|
import { e as J } from "./query.BBf1UFkC.js";
|
|
16
16
|
import { r as fe } from "./choose.BTbF6BAn.js";
|
|
17
17
|
import { C as K } from "./button.DfRnA70F.js";
|
|
18
|
-
import { d as me } from "./debounce.
|
|
18
|
+
import { d as me } from "./debounce.CIEhztrj.js";
|
|
19
19
|
import { g as X, p as W, e as ye } from "./string.DUgD4c9f.js";
|
|
20
20
|
import { o as y } from "./if-defined.BRoBj_Rp.js";
|
|
21
21
|
import { c as Y } from "./repeat.DbF2p5ae.js";
|
|
@@ -5,7 +5,7 @@ import { e as K } from "./query.BBf1UFkC.js";
|
|
|
5
5
|
import { E as De, b as ce, a as $e } from "./index.Cpamj0jB.js";
|
|
6
6
|
import { c as Te } from "./component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as We } from "./custom-element.L4WJXn1j.js";
|
|
8
|
-
import { d as Oe } from "./debounce.
|
|
8
|
+
import { d as Oe } from "./debounce.CIEhztrj.js";
|
|
9
9
|
import { L as Ae } from "./i18n.DK1uYlJT.js";
|
|
10
10
|
import { w as X } from "./watch.BCJD77bD.js";
|
|
11
11
|
import { e as j } from "./class-map.BiVq-cVR.js";
|