@orangelogic/design-system 2.191.0 → 2.193.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.CEDcHah6.js → asset-link-format.BX1hdLgZ.js} +1249 -1083
- package/library/chunks/{color-swatch-group.tnhiQ0jp.js → color-swatch-group.BpEQJM1b.js} +4 -3
- package/library/chunks/{confirm-popover.CrQKEChc.js → confirm-popover.jCP9CdcD.js} +1 -1
- package/library/chunks/content-builder.BX4pHujE.js +60 -0
- package/library/chunks/{dialog.CWGtufDA.js → dialog.B6hZ7fvn.js} +2 -2
- package/library/chunks/{document-viewer.C90j1Xrr.js → document-viewer.DZsbpf0x.js} +3 -2
- package/library/chunks/{image.CTMzUqCC.js → image.BSvc6eti.js} +194 -191
- package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
- package/library/chunks/transformation.CkwgrwKQ.js +312 -0
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +3 -3
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/confirm-popover.js +2 -2
- package/library/components/cropper.js +1 -1
- package/library/components/dialog.js +1 -1
- package/library/components/document-viewer.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/file-on-demand.js +2 -2
- package/library/components/image.js +2 -3
- package/library/components/masonry.js +110 -79
- package/library/components/molecules.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +100 -97
- package/library/components/select.js +16 -11
- package/library/components/types.js +22562 -22239
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/image/image.d.ts +38 -4
- package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
- package/library/packages/atoms/src/components/select/select.d.ts +8 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +0 -1
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +0 -1
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +24 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +46 -2
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +36 -1
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +20 -2
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +101 -0
- package/library/packages/organisms/src/carousel/carousel.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +67 -1
- package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -0
- package/library/packages/services/src/api/asset/asset.d.ts +10 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -5
- package/library/packages/types/src/asset-link-format.d.ts +0 -1
- package/library/packages/types/src/content-builder.d.ts +7 -0
- package/library/packages/types/src/gallery-item.d.ts +2 -0
- package/library/packages/types/src/masonry.d.ts +2 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +100 -0
- package/library/react-web-component.d.ts +63 -7
- package/library/utils.js +193 -182
- package/package.json +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +0 -264
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { C as $, T as m, U as p } from "./asset-link-format.ClaYu_v8.js";
|
|
2
|
+
import { P as y } from "./position-picker.DjnhxIKF.js";
|
|
3
|
+
const g = "/AssetLink/", N = {
|
|
4
|
+
[y.BottomCenter]: $.South,
|
|
5
|
+
[y.BottomLeft]: $.Southwest,
|
|
6
|
+
[y.BottomRight]: $.Southeast,
|
|
7
|
+
[y.CenterCenter]: $.Center,
|
|
8
|
+
[y.CenterLeft]: $.West,
|
|
9
|
+
[y.CenterRight]: $.East,
|
|
10
|
+
[y.TopCenter]: $.North,
|
|
11
|
+
[y.TopLeft]: $.Northwest,
|
|
12
|
+
[y.TopRight]: $.Northeast
|
|
13
|
+
}, R = "/t/", S = [400, 800, 1200, 1600, 2400], E = 0.15;
|
|
14
|
+
function O({
|
|
15
|
+
asset: t,
|
|
16
|
+
baseUrl: n,
|
|
17
|
+
extension: i,
|
|
18
|
+
options: d,
|
|
19
|
+
parameters: u,
|
|
20
|
+
transformations: r,
|
|
21
|
+
useSession: l = ""
|
|
22
|
+
}) {
|
|
23
|
+
if (n == null)
|
|
24
|
+
return "";
|
|
25
|
+
let s = n;
|
|
26
|
+
const h = r?.findLast(
|
|
27
|
+
(c) => c.key === m.Quality
|
|
28
|
+
);
|
|
29
|
+
if (h && (r = [
|
|
30
|
+
...r?.filter(
|
|
31
|
+
(c) => c.key !== m.Quality
|
|
32
|
+
) || [],
|
|
33
|
+
h
|
|
34
|
+
]), r) {
|
|
35
|
+
const c = [];
|
|
36
|
+
for (let e = 0; e < r.length; e++) {
|
|
37
|
+
const f = r[e];
|
|
38
|
+
if (f.key === m.Rotate) {
|
|
39
|
+
let o = f.value.rotation ?? 0;
|
|
40
|
+
for (; r[e + 1]?.key === m.Rotate; )
|
|
41
|
+
e++, o += r[e].value.rotation ?? 0;
|
|
42
|
+
o !== 0 && c.push({ key: m.Rotate, value: { rotation: o } });
|
|
43
|
+
} else
|
|
44
|
+
c.push(f);
|
|
45
|
+
}
|
|
46
|
+
r = c;
|
|
47
|
+
}
|
|
48
|
+
r && r.length > 0 && (s += "/t/"), r?.forEach(({ key: c, value: e }) => {
|
|
49
|
+
if (c === m.Resize) {
|
|
50
|
+
if (e.unit === p.AspectRatio && e.ratioWidth && e.ratioHeight) {
|
|
51
|
+
s += `re_ar_${e.ratioWidth}:${e.ratioHeight}/`;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const f = [
|
|
55
|
+
...[
|
|
56
|
+
{
|
|
57
|
+
key: "re_w_",
|
|
58
|
+
value: Math.round(e.width ?? 0)
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
key: "re_h_",
|
|
62
|
+
value: Math.round(e.height ?? 0)
|
|
63
|
+
}
|
|
64
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
65
|
+
key: o.key,
|
|
66
|
+
value: Math.round(Number(o.value))
|
|
67
|
+
})),
|
|
68
|
+
{
|
|
69
|
+
key: "re_rm_",
|
|
70
|
+
value: "stretch"
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
f.forEach(({ key: o, value: _ }, k) => {
|
|
74
|
+
s += `${o}${_}${k < f.length - 1 ? "," : ""}`;
|
|
75
|
+
}), s += "/";
|
|
76
|
+
}
|
|
77
|
+
if (c === m.Crop) {
|
|
78
|
+
const f = e.unit === p.AspectRatio && !!e.ratioWidth && !!e.ratioHeight, o = !e.disabledSize && !f, _ = o && (e.x !== void 0 || e.y !== void 0), k = [
|
|
79
|
+
...[
|
|
80
|
+
{
|
|
81
|
+
key: "c_",
|
|
82
|
+
value: e.mode
|
|
83
|
+
},
|
|
84
|
+
...f ? [
|
|
85
|
+
{
|
|
86
|
+
key: "ar_",
|
|
87
|
+
value: `${e.ratioWidth}:${e.ratioHeight}`
|
|
88
|
+
}
|
|
89
|
+
] : [],
|
|
90
|
+
...o ? [
|
|
91
|
+
{
|
|
92
|
+
key: "c_w_",
|
|
93
|
+
value: Math.round(e.width ?? 0)
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "c_h_",
|
|
97
|
+
value: Math.round(e.height ?? 0)
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "c_x_",
|
|
101
|
+
value: Math.round(e.x ?? 0) === 0 && d?.omitZeroXY ? void 0 : Math.round(e.x ?? 0)
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
key: "c_y_",
|
|
105
|
+
value: Math.round(e.y ?? 0) === 0 && d?.omitZeroXY ? void 0 : Math.round(e.y ?? 0)
|
|
106
|
+
}
|
|
107
|
+
] : [],
|
|
108
|
+
...!_ && e.focusMode && e.focusMode !== "manual" ? [
|
|
109
|
+
{
|
|
110
|
+
key: e.isFocusModeAuto ? "acm_" : "c_g_",
|
|
111
|
+
value: e.focusMode
|
|
112
|
+
}
|
|
113
|
+
] : [],
|
|
114
|
+
...!_ && e.focusMode === "manual" && e.position ? [
|
|
115
|
+
{
|
|
116
|
+
key: "c_g_",
|
|
117
|
+
value: N[e.position]
|
|
118
|
+
}
|
|
119
|
+
] : []
|
|
120
|
+
].filter((T) => T.value !== void 0 && T.value !== null).map((T) => ({
|
|
121
|
+
key: T.key,
|
|
122
|
+
value: T.value
|
|
123
|
+
})),
|
|
124
|
+
...f ? [] : [
|
|
125
|
+
{
|
|
126
|
+
key: "c_whu_",
|
|
127
|
+
value: "pixel"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
];
|
|
131
|
+
k.forEach(({ key: T, value: v }, x) => {
|
|
132
|
+
const I = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(T);
|
|
133
|
+
s += `${T}${I ? Math.round(Number(v)) : v}${x < k.length - 1 ? "," : ""}`;
|
|
134
|
+
}), s += "/";
|
|
135
|
+
}
|
|
136
|
+
if (c === m.Rotate && ([
|
|
137
|
+
{
|
|
138
|
+
key: "r_a_",
|
|
139
|
+
value: e.rotation
|
|
140
|
+
}
|
|
141
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
142
|
+
key: o.key,
|
|
143
|
+
value: Math.round(Number(o.value))
|
|
144
|
+
})).forEach(({ key: o, value: _ }) => {
|
|
145
|
+
s += `${o}${_}`;
|
|
146
|
+
}), s += "/"), c === m.Quality) {
|
|
147
|
+
const f = [
|
|
148
|
+
{
|
|
149
|
+
key: "q_level_",
|
|
150
|
+
value: e.quality
|
|
151
|
+
}
|
|
152
|
+
].filter((o) => o.value !== void 0).map((o) => ({
|
|
153
|
+
key: o.key,
|
|
154
|
+
value: Math.round(Number(o.value))
|
|
155
|
+
}));
|
|
156
|
+
f.forEach(({ key: o, value: _ }, k) => {
|
|
157
|
+
s += `${o}${_}${k < f.length - 1 ? "," : ""}`;
|
|
158
|
+
}), s += "/";
|
|
159
|
+
}
|
|
160
|
+
if (c === m.Metadata) {
|
|
161
|
+
const f = [
|
|
162
|
+
{
|
|
163
|
+
key: "fl_keep_metadata",
|
|
164
|
+
value: e.keepMetadata
|
|
165
|
+
}
|
|
166
|
+
].filter((o) => o.value !== void 0).map((o) => ({ key: o.key, value: o.value }));
|
|
167
|
+
f.forEach(({ key: o }, _) => {
|
|
168
|
+
s += `${o}${_ < f.length - 1 ? "," : ""}`;
|
|
169
|
+
}), s += "/";
|
|
170
|
+
}
|
|
171
|
+
}), i && (s += `${t?.identifier ?? crypto.randomUUID()}${i}`);
|
|
172
|
+
const a = [];
|
|
173
|
+
return u && u.length > 0 && u.forEach(({ key: c, value: e }) => {
|
|
174
|
+
a.push(
|
|
175
|
+
`${encodeURIComponent(c.trim())}=${encodeURIComponent(e.trim())}`
|
|
176
|
+
);
|
|
177
|
+
}), n && l && a.push(`UseSession=${encodeURIComponent(l)}`), a.length > 0 && (s += `?${a.join("&")}`), s.endsWith("/") && (s = s.slice(0, -1)), s;
|
|
178
|
+
}
|
|
179
|
+
function z(t, n) {
|
|
180
|
+
if (!t || !n?.length)
|
|
181
|
+
return t;
|
|
182
|
+
const i = O({ baseUrl: "", transformations: n }).replace(
|
|
183
|
+
/\/t\//g,
|
|
184
|
+
""
|
|
185
|
+
);
|
|
186
|
+
if (!i)
|
|
187
|
+
return t;
|
|
188
|
+
const d = t.indexOf(g);
|
|
189
|
+
if (d < 0)
|
|
190
|
+
return `${t}/t/${i}`;
|
|
191
|
+
const u = t.slice(0, d + g.length), r = t.slice(d + g.length), l = r.indexOf("/t/");
|
|
192
|
+
if (l >= 0) {
|
|
193
|
+
const h = r.slice(0, l);
|
|
194
|
+
return `${u}${h}/t/${i}`;
|
|
195
|
+
}
|
|
196
|
+
const s = r.indexOf("/");
|
|
197
|
+
if (s >= 0) {
|
|
198
|
+
const h = r.slice(0, s), a = r.slice(s);
|
|
199
|
+
return `${u}${h}/t/${i}${a}`;
|
|
200
|
+
}
|
|
201
|
+
return `${t}/t/${i}`;
|
|
202
|
+
}
|
|
203
|
+
function F(t) {
|
|
204
|
+
return `re_w_${Math.round(t)}`;
|
|
205
|
+
}
|
|
206
|
+
function C(t, n) {
|
|
207
|
+
if (!t || !Number.isFinite(n) || n <= 0)
|
|
208
|
+
return t;
|
|
209
|
+
const i = t.indexOf(g);
|
|
210
|
+
if (i < 0)
|
|
211
|
+
return t;
|
|
212
|
+
const d = F(n), u = t.slice(0, i + g.length), r = t.slice(i + g.length), l = r.indexOf(R);
|
|
213
|
+
if (l >= 0) {
|
|
214
|
+
const h = r.slice(0, l), a = r.slice(
|
|
215
|
+
l + R.length
|
|
216
|
+
);
|
|
217
|
+
return `${u}${h}${R}${d}/${a}`;
|
|
218
|
+
}
|
|
219
|
+
const s = r.indexOf("/");
|
|
220
|
+
if (s >= 0) {
|
|
221
|
+
const h = r.slice(0, s), a = r.slice(s);
|
|
222
|
+
return `${u}${h}${R}${d}${a}`;
|
|
223
|
+
}
|
|
224
|
+
return `${u}${r}${R}${d}`;
|
|
225
|
+
}
|
|
226
|
+
function W(t) {
|
|
227
|
+
const n = t.indexOf(g);
|
|
228
|
+
return n < 0 ? !1 : t.slice(n + g.length).includes(R);
|
|
229
|
+
}
|
|
230
|
+
const A = "TRX", M = "TR1", w = /* @__PURE__ */ new Set(["gif", "png", "tif", "tiff"]);
|
|
231
|
+
function b(t) {
|
|
232
|
+
if (!t)
|
|
233
|
+
return "";
|
|
234
|
+
const n = t.trim().toLowerCase();
|
|
235
|
+
return n.startsWith(".") ? n.slice(1) : n;
|
|
236
|
+
}
|
|
237
|
+
function L(t) {
|
|
238
|
+
return b(t) === "gif";
|
|
239
|
+
}
|
|
240
|
+
const U = 10 * 1024 * 1024, B = {
|
|
241
|
+
b: 1,
|
|
242
|
+
byte: 1,
|
|
243
|
+
bytes: 1,
|
|
244
|
+
gb: 1024 ** 3,
|
|
245
|
+
kb: 1024,
|
|
246
|
+
mb: 1024 ** 2,
|
|
247
|
+
tb: 1024 ** 4
|
|
248
|
+
};
|
|
249
|
+
function G(t) {
|
|
250
|
+
if (typeof t == "number")
|
|
251
|
+
return Number.isFinite(t) && t >= 0 ? t : void 0;
|
|
252
|
+
if (!t)
|
|
253
|
+
return;
|
|
254
|
+
const n = /^\s*([\d.,]+)\s*([a-z]*)\s*$/i.exec(t);
|
|
255
|
+
if (!n)
|
|
256
|
+
return;
|
|
257
|
+
const i = Number(n[1].replace(/,/g, ""));
|
|
258
|
+
if (!Number.isFinite(i) || i < 0)
|
|
259
|
+
return;
|
|
260
|
+
const d = n[2].toLowerCase();
|
|
261
|
+
if (!d)
|
|
262
|
+
return i;
|
|
263
|
+
const u = B[d];
|
|
264
|
+
return u === void 0 ? void 0 : i * u;
|
|
265
|
+
}
|
|
266
|
+
function D(t, n) {
|
|
267
|
+
if (t)
|
|
268
|
+
return;
|
|
269
|
+
const i = typeof n == "number" ? n : Number(n ?? "");
|
|
270
|
+
return Number.isFinite(i) && i > 0 ? i : void 0;
|
|
271
|
+
}
|
|
272
|
+
function X(t, n) {
|
|
273
|
+
if (!w.has(b(t)))
|
|
274
|
+
return M;
|
|
275
|
+
const i = G(n);
|
|
276
|
+
return i !== void 0 && i > U ? M : A;
|
|
277
|
+
}
|
|
278
|
+
function Y(t, n = {}) {
|
|
279
|
+
if (!t.includes(g) || W(t) || n.format === A && L(n.extension))
|
|
280
|
+
return "";
|
|
281
|
+
const { maxWidth: i, widths: d = S } = n, u = [...d].filter((a) => Number.isFinite(a) && a > 0).sort((a, c) => a - c);
|
|
282
|
+
if (u.length === 0)
|
|
283
|
+
return "";
|
|
284
|
+
let r = u;
|
|
285
|
+
if (i !== void 0 && Number.isFinite(i) && i > 0) {
|
|
286
|
+
const a = u.filter((c) => c <= i);
|
|
287
|
+
r = a.length > 0 ? a : [u[0]];
|
|
288
|
+
}
|
|
289
|
+
const l = i !== void 0 && Number.isFinite(i) && i > 0, h = (l ? r.filter(
|
|
290
|
+
(a) => i > a * (1 + E)
|
|
291
|
+
) : r).map(
|
|
292
|
+
(a) => `${C(t, a)} ${a}w`
|
|
293
|
+
);
|
|
294
|
+
return l && h.push(`${t} ${i}w`), h.join(", ");
|
|
295
|
+
}
|
|
296
|
+
function H(t, n = 100) {
|
|
297
|
+
return !Number.isFinite(t) || t <= 0 ? "" : `${Math.ceil(t / n) * n}px`;
|
|
298
|
+
}
|
|
299
|
+
export {
|
|
300
|
+
M as A,
|
|
301
|
+
S,
|
|
302
|
+
D as a,
|
|
303
|
+
Y as b,
|
|
304
|
+
z as c,
|
|
305
|
+
O as d,
|
|
306
|
+
H as e,
|
|
307
|
+
C as f,
|
|
308
|
+
U as g,
|
|
309
|
+
W as h,
|
|
310
|
+
G as p,
|
|
311
|
+
X as r
|
|
312
|
+
};
|
|
@@ -3,7 +3,7 @@ import "../chunks/button.BnkkUqiI.js";
|
|
|
3
3
|
import "./space.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
|
-
import { C as h } from "../chunks/asset-link-format.
|
|
6
|
+
import { C as h } from "../chunks/asset-link-format.BX1hdLgZ.js";
|
|
7
7
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
8
8
|
import "../chunks/asset-link-format.ClaYu_v8.js";
|
|
9
9
|
import "../chunks/position-picker.DjnhxIKF.js";
|
|
@@ -11,7 +11,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
11
11
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
12
12
|
import "../chunks/watch.DJF5K-8U.js";
|
|
13
13
|
import "../chunks/number.Cx2ncfJJ.js";
|
|
14
|
-
import "../chunks/transformation.
|
|
14
|
+
import "../chunks/transformation.CkwgrwKQ.js";
|
|
15
15
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
16
16
|
import "../chunks/state.CSDxrqLd.js";
|
|
17
17
|
import "../chunks/when.Dr1es41R.js";
|
|
@@ -18,9 +18,9 @@ import { default as q } from "./copy-button.js";
|
|
|
18
18
|
import { default as K } from "./date-calendar.js";
|
|
19
19
|
import { default as W } from "./details.js";
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
|
-
import { C as _ } from "../chunks/dialog.
|
|
21
|
+
import { C as _ } from "../chunks/dialog.B6hZ7fvn.js";
|
|
22
22
|
import { default as oe } from "./divider.js";
|
|
23
|
-
import { C as ae } from "../chunks/document-viewer.
|
|
23
|
+
import { C as ae } from "../chunks/document-viewer.DZsbpf0x.js";
|
|
24
24
|
import { C as xe } from "../chunks/dot-pagination.BqGFeFXK.js";
|
|
25
25
|
import { default as me } from "./dot-status.js";
|
|
26
26
|
import { default as pe } from "./drawer.js";
|
|
@@ -39,7 +39,7 @@ import { f } from "../chunks/icon.CpHbi8tH.js";
|
|
|
39
39
|
import { C as Fe } from "../chunks/icon.CpHbi8tH.js";
|
|
40
40
|
import { C as Oe } from "../chunks/icon-button.CVrxJcZq.js";
|
|
41
41
|
import { C as Ee } from "../chunks/iframe.-GCTFas1.js";
|
|
42
|
-
import { C as Le } from "../chunks/image.
|
|
42
|
+
import { C as Le } from "../chunks/image.BSvc6eti.js";
|
|
43
43
|
import { default as je } from "./image-comparer.js";
|
|
44
44
|
import { default as Qe } from "./include.js";
|
|
45
45
|
import { C as qe } from "../chunks/input.33UmFGqR.js";
|
|
@@ -3,13 +3,13 @@ import "../chunks/typography.IqHbnd3C.js";
|
|
|
3
3
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
4
4
|
import "../chunks/color-swatch.D6Gg5bpz.js";
|
|
5
5
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
6
|
-
import { C as v } from "../chunks/color-swatch-group.
|
|
7
|
-
import "../chunks/
|
|
6
|
+
import { C as v } from "../chunks/color-swatch-group.BpEQJM1b.js";
|
|
7
|
+
import "../chunks/content-builder.BX4pHujE.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
10
10
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
11
11
|
import "../chunks/watch.DJF5K-8U.js";
|
|
12
|
-
import "../chunks/toast.
|
|
12
|
+
import "../chunks/toast.C5Ir5yKA.js";
|
|
13
13
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
14
14
|
import "../chunks/state.CSDxrqLd.js";
|
|
15
15
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunks/button.BnkkUqiI.js";
|
|
2
|
-
import "../chunks/dialog.
|
|
2
|
+
import "../chunks/dialog.B6hZ7fvn.js";
|
|
3
3
|
import "./dropdown.js";
|
|
4
4
|
import "../chunks/typography.IqHbnd3C.js";
|
|
5
5
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
7
|
-
import { C as x } from "../chunks/confirm-popover.
|
|
7
|
+
import { C as x } from "../chunks/confirm-popover.jCP9CdcD.js";
|
|
8
8
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
9
9
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
10
10
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -648,7 +648,7 @@ const We = w.forwardRef(
|
|
|
648
648
|
w.useEffect(() => () => {
|
|
649
649
|
$.current && clearTimeout($.current);
|
|
650
650
|
}, []);
|
|
651
|
-
const R = w.useMemo(() => r, [r.url, r.width, r.height, r.rotation, r.extension, r.
|
|
651
|
+
const R = w.useMemo(() => r, [r.url, r.width, r.height, r.rotation, r.extension, r.x, r.y]), I = w.useMemo(() => l, [l.width, l.height, l.maxWidth, l.maxHeight]), J = w.useCallback(() => {
|
|
652
652
|
if (!M.current)
|
|
653
653
|
return { maxHeight: 0, maxWidth: 0 };
|
|
654
654
|
let m = 0, y = 0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
-
import { C as q } from "../chunks/dialog.
|
|
3
|
+
import { C as q } from "../chunks/dialog.B6hZ7fvn.js";
|
|
4
4
|
import "../chunks/event.BeKOsirN.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as b } from "../chunks/document-viewer.
|
|
2
|
+
import { C as b } from "../chunks/document-viewer.DZsbpf0x.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -10,7 +10,7 @@ import "../chunks/state.CSDxrqLd.js";
|
|
|
10
10
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import "../chunks/when.Dr1es41R.js";
|
|
12
12
|
import "../chunks/icon.CpHbi8tH.js";
|
|
13
|
-
import "../chunks/image.
|
|
13
|
+
import "../chunks/image.BSvc6eti.js";
|
|
14
14
|
import "../chunks/typography.IqHbnd3C.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
@@ -38,7 +38,7 @@ let t = class extends k {
|
|
|
38
38
|
this.drawer.hidden = !this.open, this.open && (this.addOpenListeners(), this.contained || (this.modal.activate(), w(this)));
|
|
39
39
|
}
|
|
40
40
|
disconnectedCallback() {
|
|
41
|
-
super.disconnectedCallback(), u(this), this.removeOpenListeners();
|
|
41
|
+
super.disconnectedCallback(), this.modal.deactivate(), this.originalTrigger = null, u(this), this.removeOpenListeners();
|
|
42
42
|
}
|
|
43
43
|
willUpdate(e) {
|
|
44
44
|
if (super.willUpdate(e), !e.has("open"))
|
|
@@ -131,7 +131,7 @@ let t = class extends k {
|
|
|
131
131
|
})
|
|
132
132
|
]), this.drawer.hidden = !0, this.isClosing = !1, this.overlay.hidden = !1, this.panel.hidden = !1;
|
|
133
133
|
const i = this.originalTrigger;
|
|
134
|
-
typeof i?.focus == "function" && setTimeout(() => i.focus()), this.resetMultipleMenus(), this.emit("cx-after-hide");
|
|
134
|
+
this.originalTrigger = null, typeof i?.focus == "function" && setTimeout(() => i.focus()), this.resetMultipleMenus(), this.emit("cx-after-hide");
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
handleNoModalChange() {
|
|
@@ -17,7 +17,7 @@ import { b as At } from "../chunks/_baseEach.DQk0As2f.js";
|
|
|
17
17
|
import { b as Dt } from "../chunks/_baseIteratee.sC2wLi2m.js";
|
|
18
18
|
import Tt from "./avatar.js";
|
|
19
19
|
import { C as zt } from "../chunks/button.BnkkUqiI.js";
|
|
20
|
-
import { C as Pt } from "../chunks/dialog.
|
|
20
|
+
import { C as Pt } from "../chunks/dialog.B6hZ7fvn.js";
|
|
21
21
|
import Et from "./divider.js";
|
|
22
22
|
import nt from "./format-bytes.js";
|
|
23
23
|
import { C as vt } from "../chunks/icon-button.CVrxJcZq.js";
|
|
@@ -31,7 +31,7 @@ import { C as Ot } from "../chunks/tab-group.uSHlsFu8.js";
|
|
|
31
31
|
import Nt from "./tab-panel.js";
|
|
32
32
|
import bt from "./tooltip.js";
|
|
33
33
|
import { C as rt } from "../chunks/typography.IqHbnd3C.js";
|
|
34
|
-
import { C as jt } from "../chunks/confirm-popover.
|
|
34
|
+
import { C as jt } from "../chunks/confirm-popover.jCP9CdcD.js";
|
|
35
35
|
import { d as Bt } from "../chunks/debounce.DaHuiSGU.js";
|
|
36
36
|
import { c as Z } from "../chunks/number.Cx2ncfJJ.js";
|
|
37
37
|
import { i as X, b as pt } from "../chunks/url.CGdWC06g.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
|
-
import { C as
|
|
4
|
+
import { C as w } from "../chunks/image.BSvc6eti.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
7
7
|
import "../chunks/i18n.DbXTTLXx.js";
|
|
@@ -21,7 +21,6 @@ import "./popup.js";
|
|
|
21
21
|
import "./resize-observer.js";
|
|
22
22
|
import "./skeleton.js";
|
|
23
23
|
import "./space.js";
|
|
24
|
-
import "./spinner.js";
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
w as default
|
|
27
26
|
};
|