@orangelogic/design-system 3.17.0 → 3.18.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.FmSSysED.js → asset-link-format.Bk1qHIQA.js} +1 -1
- package/library/chunks/{color-swatch-group.CvApE9bf.js → color-swatch-group.BtVbKp-v.js} +2 -2
- package/library/chunks/{document-viewer.DY5s9zRW.js → document-viewer.B-jtpLuD.js} +1 -1
- package/library/chunks/{folder-select.CsuADJH9.js → folder-select.DWaC4EWa.js} +1 -1
- package/library/chunks/{index.CW7LXCxo.js → index.Byin4Jfx.js} +5 -5
- package/library/chunks/{toast.CGIDPKV8.js → toast.BxiewnAG.js} +1 -1
- package/library/chunks/{transformation.OaRYixzE.js → transformation.CjWnFhab.js} +12 -11
- package/library/chunks/{tree.DKofDMGu.js → tree.pId63hLe.js} +6 -3
- package/library/chunks/{types.BNc8NEZr.js → types.Fkwo_sYp.js} +14216 -13894
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +1 -1
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/document-viewer.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/mutation-observer.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/types.js +144 -143
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +1 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +2 -2
- package/library/packages/atoms/src/components/video/video.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
- package/library/packages/organisms/src/carousel/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +27 -4
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +150 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +11 -0
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +10 -2
- package/library/packages/utils/src/transformation/transformation.d.ts +2 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +85 -84
- package/package.json +1 -1
package/library/utils.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { b as k } from "./chunks/url.CGdWC06g.js";
|
|
2
|
-
import { R as
|
|
3
|
-
import { j as Ut, f as Yt, b as Nt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.
|
|
2
|
+
import { R as At, f as xt, g as Et, h as It, U as Lt, a as Ft, d as Rt, c as Ot, i as bt, r as Vt, t as vt, e as _t } from "./chunks/url.CGdWC06g.js";
|
|
3
|
+
import { j as Ut, f as Yt, b as Nt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.BxiewnAG.js";
|
|
4
4
|
import { e as jt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
|
|
5
5
|
import { d as le, C as ce, e as ue, H as me, R as fe, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as we, b as Me } from "./chunks/color.LzSGBy7o.js";
|
|
6
6
|
import { a as Ce, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as xe, p as Ee, c as Ie, b as Le, s as Fe, w as Re } from "./chunks/event.BeKOsirN.js";
|
|
8
8
|
import { t as be } from "./chunks/converters.DkDtLstb.js";
|
|
9
9
|
import { c as ve } from "./chunks/custom-element.L4WJXn1j.js";
|
|
10
10
|
import { d as ke } from "./chunks/debounce.DaHuiSGU.js";
|
|
@@ -19,33 +19,33 @@ import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
|
|
|
19
19
|
import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
|
|
20
20
|
import { k as y } from "./chunks/dom.DL-cNKsj.js";
|
|
21
21
|
import { c as cr, d as ur, h as mr, m as fr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as wr, l as Mr, r as Sr, s as Cr } from "./chunks/dom.DL-cNKsj.js";
|
|
22
|
-
import { H as
|
|
22
|
+
import { H as Ar, a as xr, g as Er } from "./chunks/slot.j5oheLJC.js";
|
|
23
23
|
import { a as Lr, g as Fr } from "./chunks/tabbable.BwnZBHrm.js";
|
|
24
24
|
import { i as Or } from "./chunks/user-agent.D9aPuOyL.js";
|
|
25
25
|
import { w as Vr } from "./chunks/watch.DJF5K-8U.js";
|
|
26
26
|
import { C as _r } from "./chunks/calendar-grid.BWjcZL5W.js";
|
|
27
27
|
import { b as Ur, c as Yr, f as Nr, h as Pr, g as Wr, a as Xr, i as Hr, d as Br, n as Gr, e as $r, p as zr, t as qr } 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 {
|
|
30
|
-
import { c as
|
|
31
|
-
import { b as
|
|
32
|
-
import { c as xa, b as
|
|
33
|
-
import { s as
|
|
34
|
-
import { b as
|
|
35
|
-
import { g as
|
|
36
|
-
import { c as
|
|
29
|
+
import { k as Zr, m as jr, p as Jr, O as Kr, l as ta, a as ea, n as ra, b as aa, g as sa, d as oa, f as na, o as ia, q as la, r as ca, c as ua } from "./chunks/transformation.CjWnFhab.js";
|
|
30
|
+
import { c as fa, f as ha, e as ga, b as da, g as pa, d as Da, i as Ta, r as wa, a as Ma } from "./chunks/image.Y5c_hFx8.js";
|
|
31
|
+
import { b as Ca, e as ya } from "./chunks/waveform.1U9U_0rd.js";
|
|
32
|
+
import { c as xa, b as Ea, a as Ia, e as La, d as Fa, f as Ra, g as Oa, r as ba, s as Va } from "./chunks/number.Cx2ncfJJ.js";
|
|
33
|
+
import { s as _a } from "./chunks/parse.Cu5nBDTb.js";
|
|
34
|
+
import { b as Ua, n as Ya, d as Na, e as Pa, f as Wa, y as Xa, o as Ha, g as Ba, h as Ga, l as $a, p as za, z as qa, x as Qa, a as Za, c as ja, s as Ja, w as Ka, r as ts, t as es, q as rs, v as as, i as ss, m as os, u as ns } from "./chunks/string.Demn8Xmk.js";
|
|
35
|
+
import { g as ls, a as cs } from "./chunks/template.ClovJacp.js";
|
|
36
|
+
import { c as ms, f as fs, a as hs, g as gs } from "./chunks/time.DYWuX2id.js";
|
|
37
37
|
function n(t) {
|
|
38
38
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
39
39
|
return `${e}-${r}-${s}`;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function A(t) {
|
|
42
42
|
const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
|
|
43
43
|
return `${e}:${r}:${s}`;
|
|
44
44
|
}
|
|
45
45
|
function h(t, e) {
|
|
46
46
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function x(t) {
|
|
49
49
|
const e = t.getDay(), r = e === 0 ? -6 : 1 - e;
|
|
50
50
|
return h(t, r);
|
|
51
51
|
}
|
|
@@ -86,9 +86,9 @@ class Q {
|
|
|
86
86
|
const a = new Date(r.getTime() - 18e5);
|
|
87
87
|
return {
|
|
88
88
|
fromDate: n(a),
|
|
89
|
-
fromTime:
|
|
89
|
+
fromTime: A(a),
|
|
90
90
|
toDate: s,
|
|
91
|
-
toTime:
|
|
91
|
+
toTime: A(r)
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
case c.today:
|
|
@@ -136,7 +136,7 @@ class Q {
|
|
|
136
136
|
toTime: u
|
|
137
137
|
};
|
|
138
138
|
case c.thisWeek: {
|
|
139
|
-
const a =
|
|
139
|
+
const a = x(r);
|
|
140
140
|
return {
|
|
141
141
|
fromDate: n(a),
|
|
142
142
|
fromTime: m,
|
|
@@ -145,7 +145,7 @@ class Q {
|
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
case c.lastWeek: {
|
|
148
|
-
const a = h(
|
|
148
|
+
const a = h(x(r), -7);
|
|
149
149
|
return {
|
|
150
150
|
fromDate: n(a),
|
|
151
151
|
fromTime: m,
|
|
@@ -592,40 +592,41 @@ export {
|
|
|
592
592
|
Be as FormControlController,
|
|
593
593
|
ue as HEX_ALPHA_VALIDATION_REGEX,
|
|
594
594
|
me as HEX_VALIDATION_REGEX,
|
|
595
|
-
|
|
595
|
+
Ar as HasSlotController,
|
|
596
596
|
ft as HistoryManager,
|
|
597
597
|
W as KeyboardKey,
|
|
598
598
|
Ze as LocalizeController,
|
|
599
|
+
Kr as ORIGINAL_FORMAT,
|
|
599
600
|
X as PRECISION,
|
|
600
|
-
|
|
601
|
+
At as RELATIVE_URL_REGEX,
|
|
601
602
|
fe as RGB_VALIDATION_REGEX,
|
|
602
|
-
|
|
603
|
-
|
|
603
|
+
ta as SRCSET_WIDTH_LADDER,
|
|
604
|
+
xt as URL_DOMAIN_VALIDATION_REGEX,
|
|
604
605
|
Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
|
|
605
606
|
It as URL_PROTOCOL_VALIDATION_REGEX,
|
|
606
607
|
Lt as URL_VALIDATION_REGEX,
|
|
607
608
|
Ce as activeElements,
|
|
608
609
|
Ur as addMonths,
|
|
609
610
|
Ut as adjustRelativeValues,
|
|
610
|
-
|
|
611
|
+
xe as animateTo,
|
|
611
612
|
k as appendProtocol,
|
|
612
613
|
Ft as appendQueryParam,
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
614
|
+
ea as applyTransformationsToUrl,
|
|
615
|
+
ra as applyWidthToAssetUrl,
|
|
616
|
+
aa as buildAssetSrcset,
|
|
617
|
+
sa as buildSizesFromDisplayWidth,
|
|
618
|
+
oa as buildTransformationString,
|
|
619
|
+
Ca as buildWaveformPath,
|
|
620
|
+
fa as calculateAspectRatioFit,
|
|
620
621
|
Ke as clamp,
|
|
621
|
-
|
|
622
|
-
|
|
622
|
+
ha as cleanImageFileName,
|
|
623
|
+
ms as clearZeroDurationParts,
|
|
623
624
|
he as convertColor,
|
|
624
625
|
xa as convertDataUnits,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
626
|
+
Ea as convertDurationToMilliseconds,
|
|
627
|
+
Ia as convertPixelsToAspectRatio,
|
|
628
|
+
ga as convertSrcToBlob,
|
|
629
|
+
da as cropImage,
|
|
629
630
|
cr as cssValueToPx,
|
|
630
631
|
ve as customElement,
|
|
631
632
|
Ge as customErrorValidityState,
|
|
@@ -633,15 +634,15 @@ export {
|
|
|
633
634
|
Ye as defaultValue,
|
|
634
635
|
et as downloadAsset,
|
|
635
636
|
Pe as drag,
|
|
636
|
-
|
|
637
|
-
|
|
637
|
+
Ua as emptyToSpace,
|
|
638
|
+
Ya as escapeXML,
|
|
638
639
|
ge as extractColor,
|
|
639
|
-
|
|
640
|
+
Na as extractExtension,
|
|
640
641
|
Mt as extractFrames,
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
642
|
+
Pa as extractRootData,
|
|
643
|
+
La as extractValueAndUnit,
|
|
644
|
+
ya as extractWaveformPeaks,
|
|
645
|
+
na as fetchCortexApi,
|
|
645
646
|
jt as findAncestorWithBuggyStyle,
|
|
646
647
|
Jt as findContainingBlock,
|
|
647
648
|
Kt as findCuttingAncestor,
|
|
@@ -649,54 +650,54 @@ export {
|
|
|
649
650
|
Yt as findIndexByProp,
|
|
650
651
|
Xe as focusWhenVisible,
|
|
651
652
|
U as formCollections,
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
Fa as formatAspectRatioString,
|
|
654
|
+
fs as formatDurationPartsManually,
|
|
654
655
|
Yr as formatIsoToDisplay,
|
|
655
656
|
Nr as formatMonthYearLabel,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
657
|
+
Ra as formatNumberWithGrouping,
|
|
658
|
+
Wa as formatSecondsToTime,
|
|
659
|
+
Xa as formatTimeToSeconds,
|
|
660
|
+
hs as formatWithIntlDurationFormat,
|
|
661
|
+
Oa as gcd,
|
|
661
662
|
ur as getActiveElement,
|
|
662
663
|
rr as getActiveModals,
|
|
663
664
|
$e as getAssociatedForm,
|
|
664
665
|
mr as getAttributes,
|
|
665
|
-
|
|
666
|
+
Ha as getAttributesString,
|
|
666
667
|
Nt as getBreakpointsFromCSS,
|
|
667
668
|
ct as getBrowserFontVariants,
|
|
668
669
|
de as getColorType,
|
|
669
|
-
|
|
670
|
+
pa as getContainedImageSize,
|
|
670
671
|
fr as getCortexPopupLayer,
|
|
671
672
|
y as getCurrentZIndex,
|
|
672
673
|
Pr as getDateMask,
|
|
673
674
|
ye as getDeepestActiveElement,
|
|
674
675
|
Pt as getDeviceType,
|
|
675
|
-
|
|
676
|
+
gs as getDurationPartsByUnitsFormat,
|
|
676
677
|
hr as getElementFromHTMLString,
|
|
677
678
|
gr as getElementFromTemplate,
|
|
678
679
|
Wr as getFirstDayOfWeek,
|
|
679
680
|
nt as getFontFamilyOptionValue,
|
|
680
681
|
P as getFormControls,
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
682
|
+
ls as getHighlightedTitle,
|
|
683
|
+
cs as getHighlightedTitleHtml,
|
|
684
|
+
xr as getInnerHTML,
|
|
684
685
|
St as getInterval,
|
|
685
686
|
pe as getLightDarkCssString,
|
|
686
|
-
|
|
687
|
+
Da as getNaturalWidthHeight,
|
|
687
688
|
dr as getNeededPaddingForBoxShadow,
|
|
688
689
|
te as getNextAncestor,
|
|
689
690
|
sr as getOffset,
|
|
690
691
|
pr as getRelativeClickPercentage,
|
|
691
|
-
|
|
692
|
+
Ba as getRootIDString,
|
|
692
693
|
Lr as getTabbableBoundary,
|
|
693
694
|
Fr as getTabbableElements,
|
|
694
695
|
Er as getTextContent,
|
|
695
696
|
Xr as getTodayIsoDate,
|
|
696
697
|
ot as getTypefaceOptionValue,
|
|
697
698
|
Wt as groupBy,
|
|
698
|
-
|
|
699
|
-
|
|
699
|
+
ia as hasTransformSegment,
|
|
700
|
+
Ga as htmlToPlainText,
|
|
700
701
|
Xt as insertAtIndex,
|
|
701
702
|
wt as insertFrameToCache,
|
|
702
703
|
Ht as insertMultipleAtIndex,
|
|
@@ -708,12 +709,12 @@ export {
|
|
|
708
709
|
re as isFirefox,
|
|
709
710
|
lt as isFontFamilyAvailable,
|
|
710
711
|
mt as isFormInteracted,
|
|
711
|
-
|
|
712
|
+
$a as isGalleryItemCardType,
|
|
712
713
|
ae as isIOS,
|
|
713
714
|
wr as isInElement,
|
|
714
715
|
st as isModKey,
|
|
715
716
|
se as isSafari,
|
|
716
|
-
|
|
717
|
+
Ta as isSaveSrcValid,
|
|
717
718
|
Ot as isValidDomainOrIntranetUrl,
|
|
718
719
|
Hr as isValidIsoDate,
|
|
719
720
|
bt as isValidUrl,
|
|
@@ -730,12 +731,12 @@ export {
|
|
|
730
731
|
j as openAssetOverview,
|
|
731
732
|
J as openFolderOverview,
|
|
732
733
|
K as openLink,
|
|
733
|
-
|
|
734
|
-
|
|
734
|
+
za as padPath,
|
|
735
|
+
qa as parseBooleanString,
|
|
735
736
|
Te as parseBorder,
|
|
736
737
|
$r as parseDisplayToIso,
|
|
737
738
|
Ee as parseDuration,
|
|
738
|
-
|
|
739
|
+
la as parseFileSizeToBytes,
|
|
739
740
|
zr as parseIsoDate,
|
|
740
741
|
dt as parseJsonString,
|
|
741
742
|
we as parseLightDark,
|
|
@@ -748,45 +749,45 @@ export {
|
|
|
748
749
|
Y as quoteFontFamily,
|
|
749
750
|
Dt as readLocalStorageValue,
|
|
750
751
|
Sr as readSearchConsistency,
|
|
751
|
-
|
|
752
|
+
Qa as reducePathToDirectChild,
|
|
752
753
|
je as registerTranslation,
|
|
753
754
|
zt as removeAtIndex,
|
|
754
755
|
qt as removeMultipleAtIndex,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
756
|
+
wa as resizeImage,
|
|
757
|
+
ca as resolveAutoFormat,
|
|
758
|
+
ua as resolveAutoMaxWidth,
|
|
758
759
|
Vt as resolveSpaceUrl,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
760
|
+
ba as rotateBox,
|
|
761
|
+
Ma as rotateImage,
|
|
762
|
+
Za as safeExtension,
|
|
763
|
+
ja as safeString,
|
|
764
|
+
Ja as sanitizeHTML,
|
|
765
|
+
Va as sanitizeRotation,
|
|
765
766
|
nr as scrollIntoView,
|
|
766
767
|
ut as serialize,
|
|
767
768
|
tt as shareAsset,
|
|
768
769
|
Le as shimKeyframesHeightAuto,
|
|
769
770
|
Cr as sortByTopPosition,
|
|
770
771
|
N as sortTypefaceVariants,
|
|
771
|
-
|
|
772
|
-
|
|
772
|
+
_a as splitBoxValues,
|
|
773
|
+
Ka as splitCamelCaseFormatted,
|
|
773
774
|
Fe as stopAnimations,
|
|
774
775
|
ne as supportHLS,
|
|
775
776
|
v as testFontAvailability,
|
|
776
777
|
be as timecodeConverter,
|
|
777
|
-
|
|
778
|
+
ts as toCamelCase,
|
|
778
779
|
qr as toIsoDate,
|
|
779
|
-
|
|
780
|
-
|
|
780
|
+
es as toKebabCase,
|
|
781
|
+
rs as toPascalCase,
|
|
781
782
|
vt as toRelativeUrl,
|
|
782
|
-
|
|
783
|
+
as as toTitleCase,
|
|
783
784
|
_t as toUrlPathKey,
|
|
784
785
|
Qt as toast,
|
|
785
|
-
|
|
786
|
-
|
|
786
|
+
ss as truncateTextMiddle,
|
|
787
|
+
os as unescapeXML,
|
|
787
788
|
ir as unlockBodyScrolling,
|
|
788
789
|
it as unquoteFontFamily,
|
|
789
|
-
|
|
790
|
+
ns as upperFirst,
|
|
790
791
|
ze as validValidityState,
|
|
791
792
|
qe as valueMissingValidityState,
|
|
792
793
|
Re as waitForEvent,
|