@orangelogic/design-system 2.201.0 → 2.203.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.
@@ -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.hZJztBTm.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.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.DHEr6Kf3.js";
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.DHEr6Kf3.js";
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";
@@ -1,4 +1,4 @@
1
- import { D as f } from "./transformation.DHEr6Kf3.js";
1
+ import { D as f } from "./transformation.DhMUTZnT.js";
2
2
  function h(n, e) {
3
3
  return n.filter((r, t) => t !== e);
4
4
  }
@@ -64,19 +64,19 @@ function H({
64
64
  options: u,
65
65
  parameters: c,
66
66
  transformations: a,
67
- useSession: h = ""
67
+ useSession: f = ""
68
68
  }) {
69
69
  if (i == null)
70
70
  return "";
71
71
  let r = i;
72
- const f = a?.findLast(
72
+ const h = a?.findLast(
73
73
  (l) => l.key === R.Quality
74
74
  );
75
- if (f && (a = [
75
+ if (h && (a = [
76
76
  ...a?.filter(
77
77
  (l) => l.key !== R.Quality
78
78
  ) || [],
79
- f
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 && h && s.push(`UseSession=${encodeURIComponent(h)}`), s.length > 0 && (r += `?${s.join("&")}`), r.endsWith("/") && (r = r.slice(0, -1)), r;
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 h = e.indexOf(_);
234
- if (h < 0)
233
+ const f = e.indexOf(_);
234
+ if (f < 0)
235
235
  return a ? `${e}${g}${a}` : e;
236
- const r = e.slice(0, h + _.length), f = e.slice(h + _.length);
237
- if (!f)
236
+ const r = e.slice(0, f + _.length), h = e.slice(f + _.length);
237
+ if (!h)
238
238
  return e;
239
- const s = f.indexOf(g), l = s >= 0, t = f.indexOf("/"), d = l ? s : t, o = d >= 0 ? f.slice(0, d) : f, m = l ? f.slice(s + g.length) : t >= 0 ? f.slice(t + 1) : "", A = m.slice(m.lastIndexOf("/") + 1), C = A ? `${A.replace(/\.[^.]+$/, "")}${E}` : `${o.replace(/\.[^.]+$/, "")}${E}`, x = [a, c ? C : l ? "" : A].filter(
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), h = a.indexOf(g);
254
- if (h >= 0) {
255
- const f = a.slice(0, h), s = a.slice(
256
- h + g.length
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}${f}${g}${u}/${s}`;
258
+ return `${c}${h}${g}${u}/${s}`;
259
259
  }
260
260
  const r = a.indexOf("/");
261
261
  if (r >= 0) {
262
- const f = a.slice(0, r), s = a.slice(r);
263
- return `${c}${f}${g}${u}${s}`;
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 fe(e, i = {}) {
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 h = n !== void 0 && Number.isFinite(n) && n > 0, f = (h ? a.filter(
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 h && f.push(`${e} ${n}w`), f.join(", ");
352
+ return f && h.push(`${e} ${n}w`), h.join(", ");
355
353
  }
356
- function he(e, i = 100) {
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
- fe as b,
366
+ he as b,
369
367
  de as c,
370
368
  H as d,
371
- he as e,
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.DrI99FKO.js";
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.DHEr6Kf3.js";
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.CRuqeIIg.js";
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.DBwOBmmi.js";
7
- import "../chunks/transformation.DHEr6Kf3.js";
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.hZJztBTm.js";
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.CRuqeIIg.js";
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.DrI99FKO.js";
2
- import { C as t } from "../chunks/color-swatch-group.DBwOBmmi.js";
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,