@orangelogic/design-system 2.201.0 → 2.202.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.DrI99FKO.js → asset-link-format.CQu5-Ftq.js} +532 -525
- package/library/chunks/{color-swatch-group.DBwOBmmi.js → color-swatch-group.DSb2oDkj.js} +2 -2
- package/library/chunks/{document-viewer.CRuqeIIg.js → document-viewer.CwSM3a_i.js} +1 -1
- package/library/chunks/{toast.hZJztBTm.js → toast.Ci418pnA.js} +1 -1
- package/library/chunks/{transformation.DHEr6Kf3.js → transformation.DhMUTZnT.js} +23 -25
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +1 -1
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/document-viewer.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +13623 -13617
- package/library/package.json +1 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
- package/library/utils.js +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { C as Et } from "./button.BnkkUqiI.js";
|
|
|
7
7
|
import { C as xn, o as Rn, O as Sn } from "./dialog.B6hZ7fvn.js";
|
|
8
8
|
import { C as oi } from "./icon-button.CVrxJcZq.js";
|
|
9
9
|
import Pt from "../components/tooltip.js";
|
|
10
|
-
import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.
|
|
10
|
+
import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.Ci418pnA.js";
|
|
11
11
|
import { c as Ie } from "./custom-element.L4WJXn1j.js";
|
|
12
12
|
import { L as tt } from "./i18n.DbXTTLXx.js";
|
|
13
13
|
import { b as zn, S as _n, c as No, p as On, w as V, E as An } from "./watch.DJF5K-8U.js";
|
|
@@ -47,7 +47,7 @@ import "./browser.BHOCIF_A.js";
|
|
|
47
47
|
import "./form.DSsy3Fcy.js";
|
|
48
48
|
import "./purify.es.BIuh5IAZ.js";
|
|
49
49
|
import { D as Ur, a as sa, t as oa, b as Kr } from "./date-picker.BGHn6qg8.js";
|
|
50
|
-
import { D as Ti } from "./transformation.
|
|
50
|
+
import { D as Ti } from "./transformation.DhMUTZnT.js";
|
|
51
51
|
import { s as P, h as Bo, b as Ui, c as lo } from "./string.CfI2ejyR.js";
|
|
52
52
|
import { a as ra } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
53
53
|
import { d as na } from "./debounce.Bv1rtE8D.js";
|
|
@@ -23,7 +23,7 @@ import { L as LocalizeController } from "./i18n.DbXTTLXx.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.DhMUTZnT.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";
|
|
@@ -64,19 +64,19 @@ function H({
|
|
|
64
64
|
options: u,
|
|
65
65
|
parameters: c,
|
|
66
66
|
transformations: a,
|
|
67
|
-
useSession:
|
|
67
|
+
useSession: f = ""
|
|
68
68
|
}) {
|
|
69
69
|
if (i == null)
|
|
70
70
|
return "";
|
|
71
71
|
let r = i;
|
|
72
|
-
const
|
|
72
|
+
const h = a?.findLast(
|
|
73
73
|
(l) => l.key === R.Quality
|
|
74
74
|
);
|
|
75
|
-
if (
|
|
75
|
+
if (h && (a = [
|
|
76
76
|
...a?.filter(
|
|
77
77
|
(l) => l.key !== R.Quality
|
|
78
78
|
) || [],
|
|
79
|
-
|
|
79
|
+
h
|
|
80
80
|
]), a) {
|
|
81
81
|
const l = [];
|
|
82
82
|
for (let t = 0; t < a.length; t++) {
|
|
@@ -220,7 +220,7 @@ function H({
|
|
|
220
220
|
s.push(
|
|
221
221
|
`${encodeURIComponent(l.trim())}=${encodeURIComponent(t.trim())}`
|
|
222
222
|
);
|
|
223
|
-
}), i &&
|
|
223
|
+
}), i && f && s.push(`UseSession=${encodeURIComponent(f)}`), s.length > 0 && (r += `?${s.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
|
|
224
224
|
}
|
|
225
225
|
const E = ".auto";
|
|
226
226
|
function ce(e, i, n = {}) {
|
|
@@ -230,13 +230,13 @@ function ce(e, i, n = {}) {
|
|
|
230
230
|
const a = i?.length ? H({ baseUrl: "", transformations: i }).replace(/\/t\//g, "") : "";
|
|
231
231
|
if (!a && !c)
|
|
232
232
|
return e;
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
233
|
+
const f = e.indexOf(_);
|
|
234
|
+
if (f < 0)
|
|
235
235
|
return a ? `${e}${g}${a}` : e;
|
|
236
|
-
const r = e.slice(0,
|
|
237
|
-
if (!
|
|
236
|
+
const r = e.slice(0, f + _.length), h = e.slice(f + _.length);
|
|
237
|
+
if (!h)
|
|
238
238
|
return e;
|
|
239
|
-
const s =
|
|
239
|
+
const s = h.indexOf(g), l = s >= 0, t = h.indexOf("/"), d = l ? s : t, o = d >= 0 ? h.slice(0, d) : h, m = l ? h.slice(s + g.length) : t >= 0 ? h.slice(t + 1) : "", A = m.slice(m.lastIndexOf("/") + 1), C = A ? `${A.replace(/\.[^.]+$/, "")}${E}` : `${o.replace(/\.[^.]+$/, "")}${E}`, x = [a, c ? C : l ? "" : A].filter(
|
|
240
240
|
Boolean
|
|
241
241
|
);
|
|
242
242
|
return x.length === 0 ? e : `${r}${o}${g}${x.join("/")}`;
|
|
@@ -250,17 +250,17 @@ function q(e, i) {
|
|
|
250
250
|
const n = e.indexOf(_);
|
|
251
251
|
if (n < 0)
|
|
252
252
|
return e;
|
|
253
|
-
const u = Y(i), c = e.slice(0, n + _.length), a = e.slice(n + _.length),
|
|
254
|
-
if (
|
|
255
|
-
const
|
|
256
|
-
|
|
253
|
+
const u = Y(i), c = e.slice(0, n + _.length), a = e.slice(n + _.length), f = a.indexOf(g);
|
|
254
|
+
if (f >= 0) {
|
|
255
|
+
const h = a.slice(0, f), s = a.slice(
|
|
256
|
+
f + g.length
|
|
257
257
|
);
|
|
258
|
-
return `${c}${
|
|
258
|
+
return `${c}${h}${g}${u}/${s}`;
|
|
259
259
|
}
|
|
260
260
|
const r = a.indexOf("/");
|
|
261
261
|
if (r >= 0) {
|
|
262
|
-
const
|
|
263
|
-
return `${c}${
|
|
262
|
+
const h = a.slice(0, r), s = a.slice(r);
|
|
263
|
+
return `${c}${h}${g}${u}${s}`;
|
|
264
264
|
}
|
|
265
265
|
return `${c}${a}${g}${u}`;
|
|
266
266
|
}
|
|
@@ -284,8 +284,6 @@ const T = "TRX", N = "TR1", Z = /* @__PURE__ */ new Set([
|
|
|
284
284
|
"jpg",
|
|
285
285
|
"png",
|
|
286
286
|
"svg",
|
|
287
|
-
"tif",
|
|
288
|
-
"tiff",
|
|
289
287
|
"webp"
|
|
290
288
|
]);
|
|
291
289
|
function O(e) {
|
|
@@ -335,7 +333,7 @@ function ue(e, i) {
|
|
|
335
333
|
const n = ee(i);
|
|
336
334
|
return n !== void 0 && n > J ? N : T;
|
|
337
335
|
}
|
|
338
|
-
function
|
|
336
|
+
function he(e, i = {}) {
|
|
339
337
|
if (!e.includes(_) || Q(e) || i.format === T && S(i.extension))
|
|
340
338
|
return "";
|
|
341
339
|
const { maxWidth: n, widths: u = X } = i, c = [...u].filter((s) => Number.isFinite(s) && s > 0).sort((s, l) => s - l);
|
|
@@ -346,14 +344,14 @@ function fe(e, i = {}) {
|
|
|
346
344
|
const s = c.filter((l) => l <= n);
|
|
347
345
|
a = s.length > 0 ? s : [c[0]];
|
|
348
346
|
}
|
|
349
|
-
const
|
|
347
|
+
const f = n !== void 0 && Number.isFinite(n) && n > 0, h = (f ? a.filter(
|
|
350
348
|
(s) => n > s * (1 + z)
|
|
351
349
|
) : a).map(
|
|
352
350
|
(s) => `${q(e, s)} ${s}w`
|
|
353
351
|
);
|
|
354
|
-
return
|
|
352
|
+
return f && h.push(`${e} ${n}w`), h.join(", ");
|
|
355
353
|
}
|
|
356
|
-
function
|
|
354
|
+
function fe(e, i = 100) {
|
|
357
355
|
return !Number.isFinite(e) || e <= 0 ? "" : `${Math.ceil(e / i) * i}px`;
|
|
358
356
|
}
|
|
359
357
|
export {
|
|
@@ -365,10 +363,10 @@ export {
|
|
|
365
363
|
oe as S,
|
|
366
364
|
G as T,
|
|
367
365
|
ce as a,
|
|
368
|
-
|
|
366
|
+
he as b,
|
|
369
367
|
de as c,
|
|
370
368
|
H as d,
|
|
371
|
-
|
|
369
|
+
fe as e,
|
|
372
370
|
ae as f,
|
|
373
371
|
K as g,
|
|
374
372
|
j as h,
|
|
@@ -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.CQu5-Ftq.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.DhMUTZnT.js";
|
|
15
15
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
16
16
|
import "../chunks/state.CSDxrqLd.js";
|
|
17
17
|
import "../chunks/when.Dr1es41R.js";
|
|
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
|
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
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.CwSM3a_i.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";
|
|
@@ -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/transformation.
|
|
6
|
+
import { C as v } from "../chunks/color-swatch-group.DSb2oDkj.js";
|
|
7
|
+
import "../chunks/transformation.DhMUTZnT.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.Ci418pnA.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,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.CwSM3a_i.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as a } from "../chunks/asset-link-format.
|
|
2
|
-
import { C as t } from "../chunks/color-swatch-group.
|
|
1
|
+
import { C as a } from "../chunks/asset-link-format.CQu5-Ftq.js";
|
|
2
|
+
import { C as t } from "../chunks/color-swatch-group.DSb2oDkj.js";
|
|
3
3
|
import { default as C } from "./file-on-demand.js";
|
|
4
4
|
export {
|
|
5
5
|
a as CxAssetLinkFormat,
|