@orangelogic/design-system 2.158.0 → 2.160.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/utils.js CHANGED
@@ -1,40 +1,40 @@
1
- import { b as k } from "./chunks/url.-WDYqplj.js";
2
- import { R as Ct, U as xt, e as Mt, d as yt, a as St, c as Et, i as At, t as Lt } from "./chunks/url.-WDYqplj.js";
3
- import { j as vt, f as bt, b as Rt, c as Vt, g as Ft, e as kt, i as Ot, a as Yt, h as Nt, m as Ut, d as Pt, r as _t, t as Xt } from "./chunks/toast.TDU3wVhq.js";
4
- import { e as Wt, a as Bt, f as $t, g as Gt, d as zt, b as qt, c as Qt, i as Zt, p as jt, s as Jt } from "./chunks/browser.BHOCIF_A.js";
5
- import { d as te, C as ee, e as re, H as ae, R as se, c as oe, h as ne, f as ie, g as le, l as ce, a as ue, p as me, b as fe } from "./chunks/color.LzSGBy7o.js";
6
- import { a as ge, g as de } from "./chunks/active-elements.jTVWtBDp.js";
7
- import { a as De, p as Te, c as we, b as Ce, s as xe, w as Me } from "./chunks/event.BeKOsirN.js";
8
- import { t as Se } from "./chunks/converters.DkDtLstb.js";
9
- import { c as Ae } from "./chunks/custom-element.L4WJXn1j.js";
10
- import { d as Ie } from "./chunks/debounce.DaHuiSGU.js";
11
- import { d as be } from "./chunks/default-value.COZopaet.js";
12
- import { d as Ve } from "./chunks/drag.DXEXVXPv.js";
13
- import { f as ke } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
- import { f as O } from "./chunks/form.CP9KLGjF.js";
15
- import { F as Ye, c as Ne, g as Ue, v as Pe, a as _e } from "./chunks/form.CP9KLGjF.js";
16
- import { L as He, r as We } from "./chunks/i18n.Bchq8v1d.js";
17
- import { c as $e, q as Ge } from "./chunks/math.DuKzLacZ.js";
18
- import { g as qe } from "./chunks/modal.jdGhujoh.js";
19
- import { g as Ze, l as je, s as Je, u as Ke } from "./chunks/scroll.xtO5yojm.js";
1
+ import { b as O } from "./chunks/url.Bd5rq4G0.js";
2
+ import { R as Ct, e as xt, f as Mt, g as yt, U as St, a as Et, d as At, c as It, i as Lt, t as vt } from "./chunks/url.Bd5rq4G0.js";
3
+ import { j as bt, f as Vt, b as Ft, c as Ot, g as kt, e as Yt, i as Nt, a as Ut, h as _t, m as Pt, d as Xt, r as Ht, t as Wt } from "./chunks/toast.TDU3wVhq.js";
4
+ import { e as $t, a as Gt, f as zt, g as qt, d as Qt, b as Zt, c as jt, i as Jt, p as Kt, s as te } from "./chunks/browser.BHOCIF_A.js";
5
+ import { d as re, C as ae, e as se, H as oe, R as ne, c as ie, h as le, f as ce, g as ue, l as me, a as fe, p as he, b as ge } from "./chunks/color.LzSGBy7o.js";
6
+ import { a as pe, g as De } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as we, p as Ce, c as xe, b as Me, s as ye, w as Se } from "./chunks/event.BeKOsirN.js";
8
+ import { t as Ae } from "./chunks/converters.DkDtLstb.js";
9
+ import { c as Le } from "./chunks/custom-element.L4WJXn1j.js";
10
+ import { d as Re } from "./chunks/debounce.DaHuiSGU.js";
11
+ import { d as Ve } from "./chunks/default-value.COZopaet.js";
12
+ import { d as Oe } from "./chunks/drag.DXEXVXPv.js";
13
+ import { f as Ye } from "./chunks/focus-when-visible.jWSw9ks0.js";
14
+ import { f as k } from "./chunks/form.CP9KLGjF.js";
15
+ import { F as Ue, c as _e, g as Pe, v as Xe, a as He } from "./chunks/form.CP9KLGjF.js";
16
+ import { L as Be, r as $e } from "./chunks/i18n.Bchq8v1d.js";
17
+ import { c as ze, q as qe } from "./chunks/math.DuKzLacZ.js";
18
+ import { g as Ze } from "./chunks/modal.jdGhujoh.js";
19
+ import { g as Je, l as Ke, s as tr, u as er } from "./chunks/scroll.xtO5yojm.js";
20
20
  import { k as y } from "./chunks/dom.C5aVLhKS.js";
21
- import { c as er, d as rr, h as ar, m as sr, a as or, g as nr, j as ir, b as lr, f as cr, i as ur, e as mr, l as fr, s as hr } from "./chunks/dom.C5aVLhKS.js";
22
- import { H as dr, a as pr, g as Dr } from "./chunks/slot.j5oheLJC.js";
23
- import { a as wr, g as Cr } from "./chunks/tabbable.BwnZBHrm.js";
24
- import { i as Mr } from "./chunks/user-agent.D9aPuOyL.js";
25
- import { w as Sr } from "./chunks/watch.DOt4Mabe.js";
26
- import { C as Ar } from "./chunks/calendar-grid.BWjcZL5W.js";
27
- import { b as Ir, c as vr, f as br, h as Rr, g as Vr, a as Fr, i as kr, d as Or, n as Yr, e as Nr, p as Ur, t as Pr } from "./chunks/date.iWq_pkIk.js";
21
+ import { c as ar, d as sr, h as or, m as nr, a as ir, g as lr, j as cr, b as ur, f as mr, i as fr, e as hr, l as gr, s as dr } from "./chunks/dom.C5aVLhKS.js";
22
+ import { H as Dr, a as Tr, g as wr } from "./chunks/slot.j5oheLJC.js";
23
+ import { a as xr, g as Mr } from "./chunks/tabbable.BwnZBHrm.js";
24
+ import { i as Sr } from "./chunks/user-agent.D9aPuOyL.js";
25
+ import { w as Ar } from "./chunks/watch.DOt4Mabe.js";
26
+ import { C as Lr } from "./chunks/calendar-grid.BWjcZL5W.js";
27
+ import { b as Rr, c as br, f as Vr, h as Fr, g as Or, a as kr, i as Yr, d as Nr, n as Ur, e as _r, p as Pr, t as Xr } from "./chunks/date.iWq_pkIk.js";
28
28
  import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
29
- import { f as Xr } from "./chunks/content-builder.BU8X7I6V.js";
30
- import { c as Wr, f as Br, e as $r, b as Gr, g as zr, d as qr, i as Qr, r as Zr, a as jr } from "./chunks/image.QVlPFadX.js";
31
- import { b as Kr, e as ta } from "./chunks/waveform.1U9U_0rd.js";
32
- import { a as ra, b as aa, c as sa, e as oa, d as na, f as ia, g as la, r as ca, s as ua } from "./chunks/number.CtCaI0T_.js";
33
- import { s as fa } from "./chunks/parse.Cu5nBDTb.js";
34
- import { b as ga, o as da, d as pa, e as Da, f as Ta, m as wa, q as Ca, g as xa, h as Ma, l as ya, p as Sa, z as Ea, y as Aa, a as La, c as Ia, s as va, x as ba, v as Ra, t as Va, r as Fa, w as ka, i as Oa, n as Ya, u as Na } from "./chunks/string.BhJ0Zogu.js";
35
- import { g as Pa, a as _a } from "./chunks/template.ClovJacp.js";
36
- import { c as Ha, f as Wa, a as Ba, g as $a } from "./chunks/time.DWfbnPnM.js";
37
- import { b as za } from "./chunks/transformation.BDmd3kER.js";
29
+ import { f as Wr } from "./chunks/content-builder.BU8X7I6V.js";
30
+ import { c as $r, f as Gr, e as zr, b as qr, g as Qr, d as Zr, i as jr, r as Jr, a as Kr } from "./chunks/image.QVlPFadX.js";
31
+ import { b as ea, e as ra } from "./chunks/waveform.1U9U_0rd.js";
32
+ import { a as sa, b as oa, c as na, e as ia, d as la, f as ca, g as ua, r as ma, s as fa } from "./chunks/number.CtCaI0T_.js";
33
+ import { s as ga } from "./chunks/parse.Cu5nBDTb.js";
34
+ import { b as pa, o as Da, d as Ta, e as wa, f as Ca, m as xa, q as Ma, g as ya, h as Sa, l as Ea, p as Aa, z as Ia, y as La, a as va, c as Ra, s as ba, x as Va, v as Fa, t as Oa, r as ka, w as Ya, i as Na, n as Ua, u as _a } from "./chunks/string.BhJ0Zogu.js";
35
+ import { g as Xa, a as Ha } from "./chunks/template.ClovJacp.js";
36
+ import { c as Ba, f as $a, a as Ga, g as za } from "./chunks/time.DWfbnPnM.js";
37
+ import { b as Qa } from "./chunks/transformation.BDmd3kER.js";
38
38
  function n(t) {
39
39
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
40
40
  return `${e}-${r}-${s}`;
@@ -53,10 +53,10 @@ function E(t) {
53
53
  function A(t) {
54
54
  return new Date(t.getFullYear(), t.getMonth(), 1);
55
55
  }
56
- function L(t) {
56
+ function I(t) {
57
57
  return new Date(t.getFullYear(), t.getMonth() + 1, 0);
58
58
  }
59
- function I(t) {
59
+ function L(t) {
60
60
  const e = Math.floor(t.getMonth() / 3) * 3;
61
61
  return new Date(t.getFullYear(), e, 1);
62
62
  }
@@ -64,11 +64,11 @@ function v(t) {
64
64
  const e = Math.floor(t.getMonth() / 3) * 3;
65
65
  return new Date(t.getFullYear(), e + 3, 0);
66
66
  }
67
- function b(t) {
67
+ function R(t) {
68
68
  const e = t.getMonth() < 6 ? 0 : 6;
69
69
  return new Date(t.getFullYear(), e, 1);
70
70
  }
71
- function R(t) {
71
+ function b(t) {
72
72
  const e = t.getMonth() < 6 ? 0 : 6;
73
73
  return new Date(t.getFullYear(), e + 6, 0);
74
74
  }
@@ -158,7 +158,7 @@ class G {
158
158
  return {
159
159
  fromDate: n(A(r)),
160
160
  fromTime: m,
161
- toDate: n(L(r)),
161
+ toDate: n(I(r)),
162
162
  toTime: u
163
163
  };
164
164
  case c.lastMonth: {
@@ -166,13 +166,13 @@ class G {
166
166
  return {
167
167
  fromDate: n(A(a)),
168
168
  fromTime: m,
169
- toDate: n(L(a)),
169
+ toDate: n(I(a)),
170
170
  toTime: u
171
171
  };
172
172
  }
173
173
  case c.thisQuarter:
174
174
  return {
175
- fromDate: n(I(r)),
175
+ fromDate: n(L(r)),
176
176
  fromTime: m,
177
177
  toDate: n(v(r)),
178
178
  toTime: u
@@ -184,7 +184,7 @@ class G {
184
184
  1
185
185
  );
186
186
  return {
187
- fromDate: n(I(a)),
187
+ fromDate: n(L(a)),
188
188
  fromTime: m,
189
189
  toDate: n(v(a)),
190
190
  toTime: u
@@ -192,17 +192,17 @@ class G {
192
192
  }
193
193
  case c.thisHalfYear:
194
194
  return {
195
- fromDate: n(b(r)),
195
+ fromDate: n(R(r)),
196
196
  fromTime: m,
197
- toDate: n(R(r)),
197
+ toDate: n(b(r)),
198
198
  toTime: u
199
199
  };
200
200
  case c.lastHalfYear: {
201
201
  const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
202
202
  return {
203
- fromDate: n(b(a)),
203
+ fromDate: n(R(a)),
204
204
  fromTime: m,
205
- toDate: n(R(a)),
205
+ toDate: n(b(a)),
206
206
  toTime: u
207
207
  };
208
208
  }
@@ -263,7 +263,7 @@ function Q(t) {
263
263
  }
264
264
  function Z(t, e = void 0) {
265
265
  !this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
266
- k(t, "https://", !0),
266
+ O(t, "https://", !0),
267
267
  e ?? "_blank"
268
268
  );
269
269
  }
@@ -394,7 +394,7 @@ function nt(t) {
394
394
  }), r;
395
395
  }
396
396
  function N(t) {
397
- const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = O.get(t), o = a ? Array.from(a) : [];
397
+ const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = k.get(t), o = a ? Array.from(a) : [];
398
398
  return [...s, ...o].sort(
399
399
  (i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
400
400
  );
@@ -482,7 +482,7 @@ function ht(t, e) {
482
482
  function gt(t, e) {
483
483
  typeof Storage < "u" && localStorage.setItem(t, e.toString());
484
484
  }
485
- const P = 10;
485
+ const _ = 10;
486
486
  function dt(t, e) {
487
487
  let r = 0, s = t.length;
488
488
  for (; r < s; ) {
@@ -491,7 +491,7 @@ function dt(t, e) {
491
491
  }
492
492
  t.splice(r, 0, e);
493
493
  }
494
- function _(t, e, r) {
494
+ function P(t, e, r) {
495
495
  return t.find(
496
496
  (s) => s.col === e && s.row === r
497
497
  ) ?? null;
@@ -538,7 +538,7 @@ async function* pt({
538
538
  const T = g * i + d, D = T * s;
539
539
  if (D >= r)
540
540
  continue;
541
- const w = d * p, C = g * l, x = _(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
541
+ const w = d * p, C = g * l, x = P(t[a] ?? [], d, g), M = d === i - 1 && g === f - 1 || D + s >= r;
542
542
  x ? yield { ...x, isLastFrame: M } : (await X(o, D, s), F.drawImage(
543
543
  o,
544
544
  w,
@@ -554,7 +554,7 @@ async function* pt({
554
554
  isLastFrame: M,
555
555
  row: g,
556
556
  rows: f,
557
- time: Number(D.toFixed(P)),
557
+ time: Number(D.toFixed(_)),
558
558
  x: w,
559
559
  y: C
560
560
  }), await new Promise(requestAnimationFrame);
@@ -572,197 +572,199 @@ function Dt({
572
572
  return a > t && (a = t / 2), a;
573
573
  }
574
574
  export {
575
- te as CMYK_VALIDATION_REGEX,
576
- Ar as CalendarGrid,
577
- ee as ColorType,
575
+ re as CMYK_VALIDATION_REGEX,
576
+ Lr as CalendarGrid,
577
+ ae as ColorType,
578
578
  K as CortexPopupController,
579
579
  G as DateRangePresets,
580
580
  tt as DragScroll,
581
- Ye as FormControlController,
582
- re as HEX_ALPHA_VALIDATION_REGEX,
583
- ae as HEX_VALIDATION_REGEX,
584
- dr as HasSlotController,
581
+ Ue as FormControlController,
582
+ se as HEX_ALPHA_VALIDATION_REGEX,
583
+ oe as HEX_VALIDATION_REGEX,
584
+ Dr as HasSlotController,
585
585
  lt as HistoryManager,
586
586
  U as KeyboardKey,
587
- He as LocalizeController,
588
- P as PRECISION,
587
+ Be as LocalizeController,
588
+ _ as PRECISION,
589
589
  Ct as RELATIVE_URL_REGEX,
590
- se as RGB_VALIDATION_REGEX,
590
+ ne as RGB_VALIDATION_REGEX,
591
591
  xt as URL_DOMAIN_VALIDATION_REGEX,
592
- Mt as URL_PROTOCOL_VALIDATION_REGEX,
593
- yt as URL_VALIDATION_REGEX,
594
- ge as activeElements,
595
- Ir as addMonths,
596
- vt as adjustRelativeValues,
597
- De as animateTo,
598
- k as appendProtocol,
599
- St as appendQueryParam,
600
- za as buildTransformationString,
601
- Kr as buildWaveformPath,
602
- Wr as calculateAspectRatioFit,
603
- $e as clamp,
604
- Br as cleanImageFileName,
605
- Ha as clearZeroDurationParts,
606
- oe as convertColor,
607
- ra as convertDataUnits,
608
- aa as convertDurationToMilliseconds,
609
- sa as convertPixelsToAspectRatio,
610
- $r as convertSrcToBlob,
611
- Gr as cropImage,
612
- er as cssValueToPx,
613
- Ae as customElement,
614
- Ne as customErrorValidityState,
615
- Ie as debounce,
616
- be as defaultValue,
592
+ Mt as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
593
+ yt as URL_PROTOCOL_VALIDATION_REGEX,
594
+ St as URL_VALIDATION_REGEX,
595
+ pe as activeElements,
596
+ Rr as addMonths,
597
+ bt as adjustRelativeValues,
598
+ we as animateTo,
599
+ O as appendProtocol,
600
+ Et as appendQueryParam,
601
+ Qa as buildTransformationString,
602
+ ea as buildWaveformPath,
603
+ $r as calculateAspectRatioFit,
604
+ ze as clamp,
605
+ Gr as cleanImageFileName,
606
+ Ba as clearZeroDurationParts,
607
+ ie as convertColor,
608
+ sa as convertDataUnits,
609
+ oa as convertDurationToMilliseconds,
610
+ na as convertPixelsToAspectRatio,
611
+ zr as convertSrcToBlob,
612
+ qr as cropImage,
613
+ ar as cssValueToPx,
614
+ Le as customElement,
615
+ _e as customErrorValidityState,
616
+ Re as debounce,
617
+ Ve as defaultValue,
617
618
  J as downloadAsset,
618
- Ve as drag,
619
- ga as emptyToSpace,
620
- da as escapeXML,
621
- ne as extractColor,
622
- pa as extractExtension,
619
+ Oe as drag,
620
+ pa as emptyToSpace,
621
+ Da as escapeXML,
622
+ le as extractColor,
623
+ Ta as extractExtension,
623
624
  pt as extractFrames,
624
- Da as extractRootData,
625
- oa as extractValueAndUnit,
626
- ta as extractWaveformPeaks,
627
- Xr as fetchCortexApi,
628
- Wt as findAncestorWithBuggyStyle,
629
- Bt as findContainingBlock,
630
- $t as findCuttingAncestor,
631
- _ as findFrameByColAndRow,
632
- bt as findIndexByProp,
633
- ke as focusWhenVisible,
634
- O as formCollections,
635
- na as formatAspectRatioString,
636
- Wa as formatDurationPartsManually,
637
- vr as formatIsoToDisplay,
638
- br as formatMonthYearLabel,
639
- ia as formatNumberWithGrouping,
640
- Ta as formatSecondsToTime,
641
- wa as formatTimeToSeconds,
642
- Ba as formatWithIntlDurationFormat,
643
- la as gcd,
644
- rr as getActiveElement,
645
- qe as getActiveModals,
646
- Ue as getAssociatedForm,
647
- ar as getAttributes,
648
- Ca as getAttributesString,
649
- Rt as getBreakpointsFromCSS,
625
+ wa as extractRootData,
626
+ ia as extractValueAndUnit,
627
+ ra as extractWaveformPeaks,
628
+ Wr as fetchCortexApi,
629
+ $t as findAncestorWithBuggyStyle,
630
+ Gt as findContainingBlock,
631
+ zt as findCuttingAncestor,
632
+ P as findFrameByColAndRow,
633
+ Vt as findIndexByProp,
634
+ Ye as focusWhenVisible,
635
+ k as formCollections,
636
+ la as formatAspectRatioString,
637
+ $a as formatDurationPartsManually,
638
+ br as formatIsoToDisplay,
639
+ Vr as formatMonthYearLabel,
640
+ ca as formatNumberWithGrouping,
641
+ Ca as formatSecondsToTime,
642
+ xa as formatTimeToSeconds,
643
+ Ga as formatWithIntlDurationFormat,
644
+ ua as gcd,
645
+ sr as getActiveElement,
646
+ Ze as getActiveModals,
647
+ Pe as getAssociatedForm,
648
+ or as getAttributes,
649
+ Ma as getAttributesString,
650
+ Ft as getBreakpointsFromCSS,
650
651
  ot as getBrowserFontVariants,
651
- ie as getColorType,
652
- zr as getContainedImageSize,
653
- sr as getCortexPopupLayer,
652
+ ce as getColorType,
653
+ Qr as getContainedImageSize,
654
+ nr as getCortexPopupLayer,
654
655
  y as getCurrentZIndex,
655
- Rr as getDateMask,
656
- de as getDeepestActiveElement,
657
- Vt as getDeviceType,
658
- $a as getDurationPartsByUnitsFormat,
659
- or as getElementFromHTMLString,
660
- nr as getElementFromTemplate,
661
- Vr as getFirstDayOfWeek,
656
+ Fr as getDateMask,
657
+ De as getDeepestActiveElement,
658
+ Ot as getDeviceType,
659
+ za as getDurationPartsByUnitsFormat,
660
+ ir as getElementFromHTMLString,
661
+ lr as getElementFromTemplate,
662
+ Or as getFirstDayOfWeek,
662
663
  at as getFontFamilyOptionValue,
663
664
  N as getFormControls,
664
- Pa as getHighlightedTitle,
665
- _a as getHighlightedTitleHtml,
666
- pr as getInnerHTML,
665
+ Xa as getHighlightedTitle,
666
+ Ha as getHighlightedTitleHtml,
667
+ Tr as getInnerHTML,
667
668
  Dt as getInterval,
668
- le as getLightDarkCssString,
669
- qr as getNaturalWidthHeight,
670
- ir as getNeededPaddingForBoxShadow,
671
- Gt as getNextAncestor,
672
- Ze as getOffset,
673
- lr as getRelativeClickPercentage,
674
- xa as getRootIDString,
675
- wr as getTabbableBoundary,
676
- Cr as getTabbableElements,
677
- Dr as getTextContent,
678
- Fr as getTodayIsoDate,
669
+ ue as getLightDarkCssString,
670
+ Zr as getNaturalWidthHeight,
671
+ cr as getNeededPaddingForBoxShadow,
672
+ qt as getNextAncestor,
673
+ Je as getOffset,
674
+ ur as getRelativeClickPercentage,
675
+ ya as getRootIDString,
676
+ xr as getTabbableBoundary,
677
+ Mr as getTabbableElements,
678
+ wr as getTextContent,
679
+ kr as getTodayIsoDate,
679
680
  rt as getTypefaceOptionValue,
680
- Ft as groupBy,
681
- Ma as htmlToPlainText,
682
- kt as insertAtIndex,
681
+ kt as groupBy,
682
+ Sa as htmlToPlainText,
683
+ Yt as insertAtIndex,
683
684
  dt as insertFrameToCache,
684
- Ot as insertMultipleAtIndex,
685
- zt as isChrome,
686
- Mr as isCortexAdobePlugin,
687
- cr as isDomElement,
688
- ur as isElementInHorizontalView,
689
- Et as isExpiredAssetUrl,
690
- qt as isFirefox,
685
+ Nt as insertMultipleAtIndex,
686
+ Qt as isChrome,
687
+ Sr as isCortexAdobePlugin,
688
+ mr as isDomElement,
689
+ fr as isElementInHorizontalView,
690
+ At as isExpiredAssetUrl,
691
+ Zt as isFirefox,
691
692
  st as isFontFamilyAvailable,
692
693
  it as isFormInteracted,
693
- ya as isGalleryItemCardType,
694
- Qt as isIOS,
695
- mr as isInElement,
694
+ Ea as isGalleryItemCardType,
695
+ jt as isIOS,
696
+ hr as isInElement,
696
697
  et as isModKey,
697
- Zt as isSafari,
698
- Qr as isSaveSrcValid,
699
- kr as isValidIsoDate,
700
- At as isValidUrl,
701
- Or as isoToDate,
698
+ Jt as isSafari,
699
+ jr as isSaveSrcValid,
700
+ It as isValidDomainOrIntranetUrl,
701
+ Yr as isValidIsoDate,
702
+ Lt as isValidUrl,
703
+ Nr as isoToDate,
702
704
  z as isoWeekNumber,
703
- fr as loadScript,
704
- je as lockBodyScrolling,
705
- ce as luminanceTextColor,
706
- Yt as moveMultipleToIndex,
707
- Nt as moveToIndex,
708
- Ut as multiSelectTo,
709
- Yr as normalizeToIsoDate,
705
+ gr as loadScript,
706
+ Ke as lockBodyScrolling,
707
+ me as luminanceTextColor,
708
+ Ut as moveMultipleToIndex,
709
+ _t as moveToIndex,
710
+ Pt as multiSelectTo,
711
+ Ur as normalizeToIsoDate,
710
712
  ct as omit,
711
713
  q as openAssetOverview,
712
714
  Q as openFolderOverview,
713
715
  Z as openLink,
714
- Sa as padPath,
715
- Ea as parseBooleanString,
716
- ue as parseBorder,
717
- Nr as parseDisplayToIso,
718
- Te as parseDuration,
719
- Ur as parseIsoDate,
716
+ Aa as padPath,
717
+ Ia as parseBooleanString,
718
+ fe as parseBorder,
719
+ _r as parseDisplayToIso,
720
+ Ce as parseDuration,
721
+ Pr as parseIsoDate,
720
722
  mt as parseJsonString,
721
- me as parseLightDark,
723
+ he as parseLightDark,
722
724
  ft as parseListString,
723
- fe as parseShadow,
725
+ ge as parseShadow,
724
726
  ut as pick,
725
- jt as popoverSupported,
726
- we as prefersReducedMotion,
727
- Ge as quantizeLargestRemainder,
727
+ Kt as popoverSupported,
728
+ xe as prefersReducedMotion,
729
+ qe as quantizeLargestRemainder,
728
730
  ht as readLocalStorageValue,
729
- Aa as reducePathToDirectChild,
730
- We as registerTranslation,
731
- Pt as removeAtIndex,
732
- _t as removeMultipleAtIndex,
733
- Zr as resizeImage,
734
- ca as rotateBox,
735
- jr as rotateImage,
736
- La as safeExtension,
737
- Ia as safeString,
738
- va as sanitizeHTML,
739
- ua as sanitizeRotation,
740
- Je as scrollIntoView,
731
+ La as reducePathToDirectChild,
732
+ $e as registerTranslation,
733
+ Xt as removeAtIndex,
734
+ Ht as removeMultipleAtIndex,
735
+ Jr as resizeImage,
736
+ ma as rotateBox,
737
+ Kr as rotateImage,
738
+ va as safeExtension,
739
+ Ra as safeString,
740
+ ba as sanitizeHTML,
741
+ fa as sanitizeRotation,
742
+ tr as scrollIntoView,
741
743
  nt as serialize,
742
744
  j as shareAsset,
743
- Ce as shimKeyframesHeightAuto,
744
- hr as sortByTopPosition,
745
+ Me as shimKeyframesHeightAuto,
746
+ dr as sortByTopPosition,
745
747
  Y as sortTypefaceVariants,
746
- fa as splitBoxValues,
747
- ba as splitCamelCaseFormatted,
748
- xe as stopAnimations,
749
- Jt as supportHLS,
748
+ ga as splitBoxValues,
749
+ Va as splitCamelCaseFormatted,
750
+ ye as stopAnimations,
751
+ te as supportHLS,
750
752
  V as testFontAvailability,
751
- Se as timecodeConverter,
752
- Ra as toCamelCase,
753
- Pr as toIsoDate,
754
- Va as toKebabCase,
755
- Fa as toPascalCase,
756
- Lt as toRelativeUrl,
757
- ka as toTitleCase,
758
- Xt as toast,
759
- Oa as truncateTextMiddle,
760
- Ya as unescapeXML,
761
- Ke as unlockBodyScrolling,
762
- Na as upperFirst,
763
- Pe as validValidityState,
764
- _e as valueMissingValidityState,
765
- Me as waitForEvent,
766
- Sr as watch,
753
+ Ae as timecodeConverter,
754
+ Fa as toCamelCase,
755
+ Xr as toIsoDate,
756
+ Oa as toKebabCase,
757
+ ka as toPascalCase,
758
+ vt as toRelativeUrl,
759
+ Ya as toTitleCase,
760
+ Wt as toast,
761
+ Na as truncateTextMiddle,
762
+ Ua as unescapeXML,
763
+ er as unlockBodyScrolling,
764
+ _a as upperFirst,
765
+ Xe as validValidityState,
766
+ He as valueMissingValidityState,
767
+ Se as waitForEvent,
768
+ Ar as watch,
767
769
  gt as writeLocalStorageValue
768
770
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.158.0",
4
+ "version": "2.160.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {
@@ -1,42 +0,0 @@
1
- function i(a, e = globalThis.location.origin) {
2
- if (a) {
3
- try {
4
- const t = new URL(a);
5
- if (t.origin === e)
6
- return t.pathname + t.search + t.hash || "/";
7
- } catch {
8
- }
9
- return a;
10
- }
11
- }
12
- function z(a, e = "https://", t = !1) {
13
- return t && a.match(c) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${e}${a}`;
14
- }
15
- function h(a, e, t) {
16
- if (!a)
17
- return a;
18
- const s = a.indexOf("#"), n = s === -1 ? a : a.slice(0, s), o = s === -1 ? "" : a.slice(s), d = n.includes("?") ? "&" : "?";
19
- return `${n}${d}${encodeURIComponent(e)}=${encodeURIComponent(t)}${o}`;
20
- }
21
- function R(a) {
22
- return !!a && a.toLowerCase().includes("expire");
23
- }
24
- function _(a) {
25
- try {
26
- return new URL(a), new RegExp(r, "i").test(a);
27
- } catch {
28
- return !1;
29
- }
30
- }
31
- const c = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", r = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", p = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", A = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
32
- export {
33
- c as R,
34
- p as U,
35
- h as a,
36
- z as b,
37
- R as c,
38
- r as d,
39
- A as e,
40
- _ as i,
41
- i as t
42
- };