@orangelogic/design-system 2.62.0 → 2.63.0-pr83530.6
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/{color-swatch-group.BaFFkIh8.js → color-swatch-group.gu6NbIB_.js} +3 -3
- package/library/chunks/content-builder.Bxi6k2LA.js +121 -0
- package/library/chunks/{file-on-demand.DJwg2Cpk.js → file-on-demand.BiC4cymk.js} +361 -324
- package/library/chunks/{hub-connection.BxT2b7Nq.js → hub-connection.CfARlehM.js} +333 -287
- package/library/chunks/{index.DlyaD23D.js → index.Bhnf0N8Q.js} +177 -177
- package/library/chunks/{list-editor.OXCgQphx.js → list-editor.Bp1jMvFz.js} +2 -2
- package/library/chunks/{responsive.CA6dcNiM.js → responsive.DgQTIrna.js} +1 -1
- package/library/chunks/{table.D34xVq4y.js → table.DUcvVqNw.js} +1396 -1384
- package/library/components/atoms.js +2 -2
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/file-on-demand.js +1 -1
- package/library/components/hub-connection.js +1 -1
- package/library/components/list-editor.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/table.js +1 -1
- package/library/components/types.js +317 -315
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/hub-connection/hub-connection.d.ts +17 -0
- package/library/packages/atoms/src/components/table/table.d.ts +13 -10
- package/library/packages/atoms/src/components/table/table.utils.d.ts +0 -4
- package/library/packages/atoms/src/components/table/tabulator-tables/core/types.d.ts +14 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Clipboard/Clipboard.d.ts +7 -6
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Export/ExportColumn.d.ts +2 -2
- package/library/packages/events/src/cx-hub-connection-disconnected.d.ts +8 -0
- package/library/packages/events/src/cx-hub-connection-reconnected.d.ts +8 -0
- package/library/packages/events/src/cx-hub-connection-reconnecting.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -3
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +18 -3
- package/library/packages/types/src/table.d.ts +28 -0
- package/library/react-web-component.d.ts +11 -3
- package/library/utils.js +19 -19
- package/package.json +1 -1
- package/library/chunks/array.DCtvHiLS.js +0 -81
- package/library/chunks/content-builder.Bf7kqzDI.js +0 -42
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import z from "../components/space.js";
|
|
2
|
-
import { C as $ } from "./table.
|
|
2
|
+
import { C as $ } from "./table.DUcvVqNw.js";
|
|
3
3
|
import { C as k } from "./typography.oDzoLbZS.js";
|
|
4
4
|
import { n as h, C as F } from "./lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { C, a as m } from "./color-swatch.B7XXHxx1.js";
|
|
6
6
|
import { c as A } from "./component.styles.DMSLciL5.js";
|
|
7
|
-
import { D as p } from "./content-builder.
|
|
7
|
+
import { D as p } from "./content-builder.Bxi6k2LA.js";
|
|
8
8
|
import { c as S } from "./custom-element.L4WJXn1j.js";
|
|
9
9
|
import { d as T } from "./debounce.DaHuiSGU.js";
|
|
10
10
|
import { L as E } from "./i18n.BMRLOAZR.js";
|
|
11
11
|
import { w as x } from "./watch.q1sEjPWL.js";
|
|
12
|
-
import { g as D, a as R } from "./responsive.
|
|
12
|
+
import { g as D, a as R } from "./responsive.DgQTIrna.js";
|
|
13
13
|
import { x as l, B as H, i as O } from "./lit-element.jLBm65_O.js";
|
|
14
14
|
import { r as d } from "./state.CSDxrqLd.js";
|
|
15
15
|
import { e as P } from "./query.BBf1UFkC.js";
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { c as s } from "./capitalize.WSkCXkNE.js";
|
|
2
|
+
function x(n, a) {
|
|
3
|
+
return n.filter((t, e) => e !== a);
|
|
4
|
+
}
|
|
5
|
+
function v(n, a) {
|
|
6
|
+
return n.filter((t, e) => !a.includes(e));
|
|
7
|
+
}
|
|
8
|
+
function b(n, a, t) {
|
|
9
|
+
return [...n.slice(0, a), t, ...n.slice(a)];
|
|
10
|
+
}
|
|
11
|
+
function R(n, a, t) {
|
|
12
|
+
return [...n.slice(0, a), ...t, ...n.slice(a)];
|
|
13
|
+
}
|
|
14
|
+
function T(n, a, t) {
|
|
15
|
+
return n.findIndex((e) => e[a] === t);
|
|
16
|
+
}
|
|
17
|
+
function G(n, a, t) {
|
|
18
|
+
const e = [...n], i = x(e, a);
|
|
19
|
+
let r = t;
|
|
20
|
+
return r >= n.length - 1 && (r = r + 1), b(i, r, n[a]);
|
|
21
|
+
}
|
|
22
|
+
function V(n, a, t) {
|
|
23
|
+
const e = [...n], i = v(e, a), r = t !== 0 ? a.reduce(
|
|
24
|
+
(o, u) => t > u ? o - 1 : o,
|
|
25
|
+
t
|
|
26
|
+
) : t;
|
|
27
|
+
return R(
|
|
28
|
+
i,
|
|
29
|
+
r,
|
|
30
|
+
a.map((o) => n[o])
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function p(n, a) {
|
|
34
|
+
return n.reduce(
|
|
35
|
+
(t, e) => {
|
|
36
|
+
const i = e[a];
|
|
37
|
+
return t[i] ??= [], t[i].push(e), t;
|
|
38
|
+
},
|
|
39
|
+
{}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
function _(n, a, t) {
|
|
43
|
+
if (!n.length)
|
|
44
|
+
return [a];
|
|
45
|
+
const e = t.findIndex(
|
|
46
|
+
(l) => l.id === a
|
|
47
|
+
), i = n[n.length - 1], r = t.findIndex(
|
|
48
|
+
(l) => l.id === i
|
|
49
|
+
);
|
|
50
|
+
if (e < 0 || r < 0)
|
|
51
|
+
return [a];
|
|
52
|
+
const d = t.reduce(
|
|
53
|
+
(l, c, g) => (l[c.id] = g, l),
|
|
54
|
+
{}
|
|
55
|
+
), o = e > r, u = o ? r : e, h = o ? e : r, C = t.slice(u, h + 1).filter((l) => !(!l || n.includes(l.id))).map((l) => l.id), f = o ? C : [...C].reverse(), A = n.includes(a) ? n.slice(0, n.indexOf(a) + 1) : [...n, ...f];
|
|
56
|
+
return A.sort((l, c) => d[l] - d[c]), A;
|
|
57
|
+
}
|
|
58
|
+
function j(n, a, t, e, i, r) {
|
|
59
|
+
const d = t + 1;
|
|
60
|
+
if (n.length < 2)
|
|
61
|
+
throw new Error("Values array must contain at least 2 elements");
|
|
62
|
+
if (t < 0 || d >= n.length)
|
|
63
|
+
throw new Error("Invalid index or not enough values to adjust");
|
|
64
|
+
if (e < 0)
|
|
65
|
+
throw new Error("Minimum value must be non-negative");
|
|
66
|
+
let o = i + a;
|
|
67
|
+
o < e && (a = e - i, o = e);
|
|
68
|
+
let u = r - a;
|
|
69
|
+
u < e && (a = r - e, o = i + a, u = e), n[t] = parseFloat(o.toFixed(2)), n[d] = parseFloat(u.toFixed(2));
|
|
70
|
+
}
|
|
71
|
+
var w = /* @__PURE__ */ ((n) => (n.Desktop = "desktop", n.Mobile = "mobile", n.Tablet = "tablet", n))(w || {});
|
|
72
|
+
const M = {
|
|
73
|
+
canvasWidth: "",
|
|
74
|
+
height: "",
|
|
75
|
+
id: "desktop",
|
|
76
|
+
maxWidth: "",
|
|
77
|
+
name: s(
|
|
78
|
+
"desktop"
|
|
79
|
+
/* Desktop */
|
|
80
|
+
)
|
|
81
|
+
}, E = {
|
|
82
|
+
canvasWidth: "770px",
|
|
83
|
+
height: "",
|
|
84
|
+
id: "tablet",
|
|
85
|
+
maxWidth: "1280px",
|
|
86
|
+
name: s(
|
|
87
|
+
"tablet"
|
|
88
|
+
/* Tablet */
|
|
89
|
+
)
|
|
90
|
+
}, B = {
|
|
91
|
+
canvasWidth: "320px",
|
|
92
|
+
height: "",
|
|
93
|
+
id: "mobile",
|
|
94
|
+
maxWidth: "480px",
|
|
95
|
+
name: s(
|
|
96
|
+
"mobile"
|
|
97
|
+
/* Mobile */
|
|
98
|
+
)
|
|
99
|
+
}, U = [M, E, B];
|
|
100
|
+
var L = /* @__PURE__ */ ((n) => (n.All = "ALL", n.CanDelete = "CanDelete", n.CanDownload = "CanDownload", n.CanFind = "CanFind", n.CanManageRights = "CanManageRights", n.CanMove = "CanMove", n.CanRead = "CanRead", n.CanReadAll = "CanReadAll", n.CanReadAndWrite = "CanReadAndWrite", n.CanReadLarge = "CanReadLarge", n.CanReadMedium = "CanReadMedium", n.CanReadOriginal = "CanReadOriginal", n.CanShare = "CanShare", n.CanUpload = "CanUpload", n.CanWrite = "CanWrite", n.None = "NONE", n))(L || {}), S = /* @__PURE__ */ ((n) => (n.All = "all", n.Audio = "audio", n.Image = "image", n.Other = "other", n.Video = "video", n))(S || {}), F = /* @__PURE__ */ ((n) => (n.Content = "content", n.Template = "template", n))(F || {}), k = /* @__PURE__ */ ((n) => (n.Administrator = "Administrator", n.Designer = "Designer", n.Editor = "Editor", n))(k || {}), D = /* @__PURE__ */ ((n) => (n.Accordion = "BlockAccordion", n.Analytics = "BlockAnalytics", n.Button = "BlockButton", n.Carousel = "BlockCarousel", n.ColorSwatches = "BlockColorSwatches", n.Column = "BlockCell", n.ColumnGroup = "BlockColumns", n.Divider = "BlockDivider", n.FontKit = "BlockFontKit", n.Gallery = "BlockGallery", n.Header = "BlockHeader", n.Image = "BlockImage", n.RichText = "BlockRichText", n.SearchBox = "BlockSearchBox", n.TabGroup = "BlockTabs", n.Text = "BlockText", n.Timeline = "BlockTimeline", n.Video = "BlockVideo", n))(D || {}), N = /* @__PURE__ */ ((n) => (n.Carousel = "carousel", n.Gallery = "gallery", n))(N || {}), O = /* @__PURE__ */ ((n) => (n.Templates = "TEMPLATES", n.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", n.TranslatableTexts = "TRANSLATABLE_TEXTS", n))(O || {});
|
|
101
|
+
export {
|
|
102
|
+
S as A,
|
|
103
|
+
D as B,
|
|
104
|
+
w as D,
|
|
105
|
+
F as E,
|
|
106
|
+
L as P,
|
|
107
|
+
k as T,
|
|
108
|
+
N as a,
|
|
109
|
+
O as b,
|
|
110
|
+
U as c,
|
|
111
|
+
V as d,
|
|
112
|
+
x as e,
|
|
113
|
+
T as f,
|
|
114
|
+
p as g,
|
|
115
|
+
b as h,
|
|
116
|
+
R as i,
|
|
117
|
+
G as j,
|
|
118
|
+
j as k,
|
|
119
|
+
_ as m,
|
|
120
|
+
v as r
|
|
121
|
+
};
|