@orangelogic/design-system 2.113.0 → 2.115.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.CtPQLZOf.js +607 -0
- package/library/chunks/{button.DIvU_uFU.js → button.DwJEeW2t.js} +1 -1
- package/library/chunks/{color-swatch-group.DV5uB8OC.js → color-swatch-group.DjjSIHSV.js} +7 -7
- package/library/chunks/{color-swatch.BoUZGGs4.js → color-swatch.DVzEaNeL.js} +1 -1
- package/library/chunks/{confirm-popover.DS9HIy3c.js → confirm-popover.BifwpSuf.js} +3 -3
- package/library/chunks/{dialog.DyT-Nai2.js → dialog.BYCWepBc.js} +2 -2
- package/library/chunks/{document-viewer.AiKX3RO6.js → document-viewer.BIC9iYpZ.js} +1237 -1233
- package/library/chunks/{dot-pagination.CKbL6eN_.js → dot-pagination.C4l5vKor.js} +1 -1
- package/library/chunks/{endpoints.DBlquU2-.js → endpoints.CDX5PgQz.js} +251 -251
- package/library/chunks/{file-on-demand.h8tCgq51.js → file-on-demand.AwMj4AfO.js} +246 -227
- package/library/chunks/{folder-select.eoufobYO.js → folder-select.8xNjeJfp.js} +5 -5
- package/library/chunks/{header.BUp3_oeJ.js → header.Cf9ujCpg.js} +3 -3
- package/library/chunks/{i18n.C21qyGi6.js → i18n.CH-wak_P.js} +3 -1
- package/library/chunks/{icon-button.DxkJ-cp-.js → icon-button.CQiBjznj.js} +1 -1
- package/library/chunks/{iframe.CwxozWMt.js → iframe.BQPVygBJ.js} +1 -1
- package/library/chunks/{image.B-YcKRop.js → image.cT-FziNS.js} +1 -1
- package/library/chunks/{input.DdeXWD_F.js → input.CH4lKxPM.js} +1 -1
- package/library/chunks/{list-editor.Qx2ecTcL.js → list-editor.7zNWfBuW.js} +13 -13
- package/library/chunks/{option.CcGRV3jj.js → option.Bvh35v8S.js} +10 -10
- package/library/chunks/{pagination.CgAt4Keg.js → pagination.zQ2FFtxB.js} +5 -5
- package/library/chunks/{tab-group.hfUY7YE7.js → tab-group.DvMX02hY.js} +3 -3
- package/library/chunks/{table.CP3oGDY1.js → table.BvbReIZh.js} +46 -45
- package/library/chunks/{time.BiQnh9wt.js → time.BSmpFe2G.js} +2 -2
- package/library/chunks/{tree.YxFs3Tke.js → tree.Btf2Q4YZ.js} +10 -7
- package/library/chunks/waveform.1U9U_0rd.js +60 -0
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +6 -6
- package/library/components/atoms.js +129 -131
- package/library/components/audio.js +132 -183
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +3 -3
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/divider.js +15 -15
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +4 -4
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +10 -10
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +2 -2
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +1 -1
- package/library/components/list-editor.js +7 -7
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +3 -3
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/popup.js +1 -1
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +10 -10
- package/library/components/radio-card.js +6 -6
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.js +3 -3
- package/library/components/select.js +7 -7
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +10 -10
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +10 -10
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +33324 -32768
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +36 -28
- package/library/packages/atoms/src/components/divider/divider.d.ts +1 -1
- package/library/packages/atoms/src/components/option/option.d.ts +1 -1
- package/library/packages/atoms/src/components/radio/radio.d.ts +1 -1
- package/library/packages/atoms/src/components/radio-button/radio-button.d.ts +1 -1
- package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -1
- package/library/packages/atoms/src/components/tree/tree.d.ts +1 -0
- package/library/packages/atoms/src/index.d.ts +0 -1
- package/library/packages/events/src/cx-facet-change.d.ts +16 -0
- package/library/packages/events/src/cx-faceted-filter-change.d.ts +6 -1
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/{atoms/src/components → molecules/src}/faceted-filter/components/facet/facet.d.ts +9 -9
- package/library/packages/molecules/src/faceted-filter/components/facet/facet.styles.d.ts +2 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.d.ts +43 -0
- package/library/packages/molecules/src/faceted-filter/components/facet-date-range/facet-date-range.d.ts +51 -0
- package/library/packages/molecules/src/faceted-filter/facet-adapters.d.ts +12 -0
- package/library/packages/{atoms/src/components → molecules/src}/faceted-filter/faceted-filter.d.ts +25 -14
- package/library/packages/molecules/src/faceted-filter/faceted-filter.styles.d.ts +2 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +1 -1
- package/library/packages/molecules/src/index.d.ts +4 -0
- package/library/packages/molecules/src/share-option-list/share-option-list.d.ts +1 -1
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +1 -1
- package/library/packages/organisms/src/carousel/carousel.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/page-picker/page-picker.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -2
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +1 -0
- package/library/packages/services/src/api/asset/asset.d.ts +3 -1
- package/library/packages/services/src/api/endpoints.d.ts +2 -0
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +6 -0
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +11 -4
- package/library/packages/types/src/faceted-filter.d.ts +71 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +3 -1
- package/library/packages/utils/src/image/index.d.ts +1 -0
- package/library/packages/utils/src/image/waveform.d.ts +29 -0
- package/library/react-web-component.d.ts +440 -317
- package/library/utils.js +174 -171
- package/package.json +1 -1
- package/library/chunks/asset.HL1qMnhg.js +0 -458
- package/library/chunks/wavesurfer.esm.Cwi1pz64.js +0 -1276
- package/library/components/faceted-filter.d.ts +0 -3
- package/library/components/faceted-filter.js +0 -295
- /package/library/packages/{atoms/src/components/faceted-filter/components/facet/facet.styles.d.ts → molecules/src/faceted-filter/components/facet-date-picker/facet-date-picker.styles.d.ts} +0 -0
- /package/library/packages/{atoms/src/components/faceted-filter/faceted-filter.styles.d.ts → molecules/src/faceted-filter/components/facet-date-range/facet-date-range.styles.d.ts} +0 -0
package/library/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as V } from "./chunks/url.Cj9cIQXJ.js";
|
|
2
2
|
import { R as Dt, U as Tt, c as wt, b as Mt, i as xt, t as yt } from "./chunks/url.Cj9cIQXJ.js";
|
|
3
|
-
import { e as St, f as Et, g as At, c as It, i as Lt, a as Ft, d as Rt, m as vt, b as bt, r as
|
|
4
|
-
import { d as Yt, h as _t, a as
|
|
5
|
-
import { d as qt, C as Qt, e as Zt, H as jt, R as Jt, c as Kt, h as te, f as ee, g as re, l as
|
|
3
|
+
import { e as St, f as Et, g as At, c as It, i as Lt, a as Ft, d as Rt, m as vt, b as bt, r as kt, t as Vt } from "./chunks/toast.D3AW3RWv.js";
|
|
4
|
+
import { d as Yt, h as _t, a as Pt, f as Ht, g as Nt, e as Xt, b as Ut, c as Bt, i as Wt, p as Gt, s as $t } from "./chunks/debounce.CIEhztrj.js";
|
|
5
|
+
import { d as qt, C as Qt, e as Zt, H as jt, R as Jt, c as Kt, h as te, f as ee, g as re, l as ae, a as se, p as oe, b as ne } from "./chunks/color.LzSGBy7o.js";
|
|
6
6
|
import { a as le, b as ce, g as ue } from "./chunks/modal.U1QltQKe.js";
|
|
7
7
|
import { a as fe, p as he, c as ge, b as de, s as pe, w as De } from "./chunks/event.BeKOsirN.js";
|
|
8
8
|
import { t as we } from "./chunks/converters.DkDtLstb.js";
|
|
@@ -11,33 +11,34 @@ import { d as Ce } from "./chunks/default-value.COZopaet.js";
|
|
|
11
11
|
import { d as Ee } from "./chunks/drag.DXEXVXPv.js";
|
|
12
12
|
import { f as O } from "./chunks/form.B-5nQJva.js";
|
|
13
13
|
import { F as Ie, c as Le, g as Fe, v as Re, a as ve } from "./chunks/form.B-5nQJva.js";
|
|
14
|
-
import { L as
|
|
14
|
+
import { L as ke, r as Ve } from "./chunks/i18n.CH-wak_P.js";
|
|
15
15
|
import { c as Ye } from "./chunks/math.DqTA6ya4.js";
|
|
16
|
-
import { g as
|
|
16
|
+
import { g as Pe, l as He, s as Ne, u as Xe } from "./chunks/scroll.xtO5yojm.js";
|
|
17
17
|
import { j as C } from "./chunks/dom.0RpWet6y.js";
|
|
18
18
|
import { c as Be, d as We, k as Ge, a as $e, g as ze, h as qe, b as Qe, f as Ze, i as je, e as Je, l as Ke, s as tr } from "./chunks/dom.0RpWet6y.js";
|
|
19
|
-
import { H as rr, a as
|
|
19
|
+
import { H as rr, a as ar, g as sr } from "./chunks/slot.j5oheLJC.js";
|
|
20
20
|
import { g as nr, a as ir } from "./chunks/tabbable.CcMz3mIL.js";
|
|
21
21
|
import { i as cr } from "./chunks/user-agent.D9aPuOyL.js";
|
|
22
22
|
import { w as mr } from "./chunks/watch.CThbualB.js";
|
|
23
23
|
import { C as hr, a as gr, d as dr, f as pr, e as Dr, g as Tr, c as wr, i as Mr, b as xr, n as yr, p as Cr, t as Sr } from "./chunks/calendar-grid.CXYoS6VA.js";
|
|
24
24
|
import { e as c, b as u, D as m } from "./chunks/date-picker.D0SJADN6.js";
|
|
25
25
|
import { f as Ar } from "./chunks/content-builder.OsUmm8Wu.js";
|
|
26
|
-
import { c as Lr, f as Fr, e as Rr, b as vr, g as br, d as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { g as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
26
|
+
import { c as Lr, f as Fr, e as Rr, b as vr, g as br, d as kr, i as Vr, r as Or, a as Yr } from "./chunks/image.9qwbjGNb.js";
|
|
27
|
+
import { b as Pr, e as Hr } from "./chunks/waveform.1U9U_0rd.js";
|
|
28
|
+
import { a as Xr, b as Ur, c as Br, e as Wr, d as Gr, f as $r, g as zr, r as qr, s as Qr } from "./chunks/number.B4PQLJIg.js";
|
|
29
|
+
import { s as jr } from "./chunks/parse.Cu5nBDTb.js";
|
|
30
|
+
import { g as Kr, a as ta } from "./chunks/responsive.C8NCkfCG.js";
|
|
31
|
+
import { c as ra, b as aa, e as sa, f as oa, l as na, g as ia, j as la, p as ca, v as ua, r as ma, a as fa, d as ha, s as ga, k as da, o as pa, m as Da, n as Ta, q as wa, t as Ma, u as xa } from "./chunks/string.DUgD4c9f.js";
|
|
32
|
+
import { g as Ca, a as Sa } from "./chunks/template.ClovJacp.js";
|
|
33
|
+
import { c as Aa, f as Ia, a as La, g as Fa } from "./chunks/time.BSmpFe2G.js";
|
|
34
|
+
import { b as va } from "./chunks/transformation.BlQCWMfI.js";
|
|
34
35
|
function o(t) {
|
|
35
|
-
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"),
|
|
36
|
-
return `${e}-${r}-${
|
|
36
|
+
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
37
|
+
return `${e}-${r}-${s}`;
|
|
37
38
|
}
|
|
38
39
|
function S(t) {
|
|
39
|
-
const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"),
|
|
40
|
-
return `${e}:${r}:${
|
|
40
|
+
const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
|
|
41
|
+
return `${e}:${r}:${s}`;
|
|
41
42
|
}
|
|
42
43
|
function h(t, e) {
|
|
43
44
|
return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
|
|
@@ -77,30 +78,30 @@ class $ {
|
|
|
77
78
|
* @returns fromDate, toDate (YYYY-MM-DD) and fromTime, toTime (HH:mm:ss).
|
|
78
79
|
*/
|
|
79
80
|
static getRange(e, r) {
|
|
80
|
-
const
|
|
81
|
+
const s = o(r);
|
|
81
82
|
switch (e) {
|
|
82
83
|
case c.last30Minutes: {
|
|
83
|
-
const
|
|
84
|
+
const a = new Date(r.getTime() - 18e5);
|
|
84
85
|
return {
|
|
85
|
-
fromDate: o(
|
|
86
|
-
fromTime: S(
|
|
87
|
-
toDate:
|
|
86
|
+
fromDate: o(a),
|
|
87
|
+
fromTime: S(a),
|
|
88
|
+
toDate: s,
|
|
88
89
|
toTime: S(r)
|
|
89
90
|
};
|
|
90
91
|
}
|
|
91
92
|
case c.today:
|
|
92
93
|
return {
|
|
93
|
-
fromDate:
|
|
94
|
+
fromDate: s,
|
|
94
95
|
fromTime: m,
|
|
95
|
-
toDate:
|
|
96
|
+
toDate: s,
|
|
96
97
|
toTime: u
|
|
97
98
|
};
|
|
98
99
|
case c.lastDay: {
|
|
99
|
-
const
|
|
100
|
+
const a = o(h(r, -1));
|
|
100
101
|
return {
|
|
101
|
-
fromDate:
|
|
102
|
+
fromDate: a,
|
|
102
103
|
fromTime: m,
|
|
103
|
-
toDate:
|
|
104
|
+
toDate: a,
|
|
104
105
|
toTime: u
|
|
105
106
|
};
|
|
106
107
|
}
|
|
@@ -108,45 +109,45 @@ class $ {
|
|
|
108
109
|
return {
|
|
109
110
|
fromDate: o(h(r, -1)),
|
|
110
111
|
fromTime: m,
|
|
111
|
-
toDate:
|
|
112
|
+
toDate: s,
|
|
112
113
|
toTime: u
|
|
113
114
|
};
|
|
114
115
|
case c.last3Days:
|
|
115
116
|
return {
|
|
116
117
|
fromDate: o(h(r, -2)),
|
|
117
118
|
fromTime: m,
|
|
118
|
-
toDate:
|
|
119
|
+
toDate: s,
|
|
119
120
|
toTime: u
|
|
120
121
|
};
|
|
121
122
|
case c.last30Days:
|
|
122
123
|
return {
|
|
123
124
|
fromDate: o(h(r, -29)),
|
|
124
125
|
fromTime: m,
|
|
125
|
-
toDate:
|
|
126
|
+
toDate: s,
|
|
126
127
|
toTime: u
|
|
127
128
|
};
|
|
128
129
|
case c.next30Days:
|
|
129
130
|
return {
|
|
130
|
-
fromDate:
|
|
131
|
+
fromDate: s,
|
|
131
132
|
fromTime: m,
|
|
132
133
|
toDate: o(h(r, 30)),
|
|
133
134
|
toTime: u
|
|
134
135
|
};
|
|
135
136
|
case c.thisWeek: {
|
|
136
|
-
const
|
|
137
|
+
const a = E(r);
|
|
137
138
|
return {
|
|
138
|
-
fromDate: o(
|
|
139
|
+
fromDate: o(a),
|
|
139
140
|
fromTime: m,
|
|
140
|
-
toDate: o(h(
|
|
141
|
+
toDate: o(h(a, 6)),
|
|
141
142
|
toTime: u
|
|
142
143
|
};
|
|
143
144
|
}
|
|
144
145
|
case c.lastWeek: {
|
|
145
|
-
const
|
|
146
|
+
const a = h(E(r), -7);
|
|
146
147
|
return {
|
|
147
|
-
fromDate: o(
|
|
148
|
+
fromDate: o(a),
|
|
148
149
|
fromTime: m,
|
|
149
|
-
toDate: o(h(
|
|
150
|
+
toDate: o(h(a, 6)),
|
|
150
151
|
toTime: u
|
|
151
152
|
};
|
|
152
153
|
}
|
|
@@ -158,11 +159,11 @@ class $ {
|
|
|
158
159
|
toTime: u
|
|
159
160
|
};
|
|
160
161
|
case c.lastMonth: {
|
|
161
|
-
const
|
|
162
|
+
const a = new Date(r.getFullYear(), r.getMonth() - 1, 1);
|
|
162
163
|
return {
|
|
163
|
-
fromDate: o(A(
|
|
164
|
+
fromDate: o(A(a)),
|
|
164
165
|
fromTime: m,
|
|
165
|
-
toDate: o(I(
|
|
166
|
+
toDate: o(I(a)),
|
|
166
167
|
toTime: u
|
|
167
168
|
};
|
|
168
169
|
}
|
|
@@ -174,15 +175,15 @@ class $ {
|
|
|
174
175
|
toTime: u
|
|
175
176
|
};
|
|
176
177
|
case c.lastQuarter: {
|
|
177
|
-
const
|
|
178
|
+
const a = new Date(
|
|
178
179
|
r.getFullYear(),
|
|
179
180
|
r.getMonth() - 3,
|
|
180
181
|
1
|
|
181
182
|
);
|
|
182
183
|
return {
|
|
183
|
-
fromDate: o(L(
|
|
184
|
+
fromDate: o(L(a)),
|
|
184
185
|
fromTime: m,
|
|
185
|
-
toDate: o(F(
|
|
186
|
+
toDate: o(F(a)),
|
|
186
187
|
toTime: u
|
|
187
188
|
};
|
|
188
189
|
}
|
|
@@ -194,11 +195,11 @@ class $ {
|
|
|
194
195
|
toTime: u
|
|
195
196
|
};
|
|
196
197
|
case c.lastHalfYear: {
|
|
197
|
-
const
|
|
198
|
+
const a = new Date(r.getFullYear(), r.getMonth() - 6, 1);
|
|
198
199
|
return {
|
|
199
|
-
fromDate: o(R(
|
|
200
|
+
fromDate: o(R(a)),
|
|
200
201
|
fromTime: m,
|
|
201
|
-
toDate: o(v(
|
|
202
|
+
toDate: o(v(a)),
|
|
202
203
|
toTime: u
|
|
203
204
|
};
|
|
204
205
|
}
|
|
@@ -210,11 +211,11 @@ class $ {
|
|
|
210
211
|
toTime: u
|
|
211
212
|
};
|
|
212
213
|
case c.lastYear: {
|
|
213
|
-
const
|
|
214
|
+
const a = r.getFullYear() - 1;
|
|
214
215
|
return {
|
|
215
|
-
fromDate: `${
|
|
216
|
+
fromDate: `${a}-01-01`,
|
|
216
217
|
fromTime: m,
|
|
217
|
-
toDate: `${
|
|
218
|
+
toDate: `${a}-12-31`,
|
|
218
219
|
toTime: u
|
|
219
220
|
};
|
|
220
221
|
}
|
|
@@ -248,7 +249,7 @@ function q(t) {
|
|
|
248
249
|
}
|
|
249
250
|
function Q(t, e = void 0) {
|
|
250
251
|
!this.ownerDocument.defaultView?.Matrix3 || !t || this.ownerDocument.defaultView?.open(
|
|
251
|
-
|
|
252
|
+
V(t, "https://", !0),
|
|
252
253
|
e ?? "_blank"
|
|
253
254
|
);
|
|
254
255
|
}
|
|
@@ -301,8 +302,8 @@ class K {
|
|
|
301
302
|
onMouseMove(e) {
|
|
302
303
|
if (!this.isDragging)
|
|
303
304
|
return;
|
|
304
|
-
const r = e.clientX - this.lastClientX,
|
|
305
|
-
!this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -=
|
|
305
|
+
const r = e.clientX - this.lastClientX, s = e.clientY - this.lastClientY;
|
|
306
|
+
!this.hasDragged && (Math.abs(e.clientX - this.startX) > this.dragThreshold || Math.abs(e.clientY - this.startY) > this.dragThreshold) && (this.hasDragged = !0), this.element.scrollLeft -= r, this.element.scrollTop -= s, this.lastClientX = e.clientX, this.lastClientY = e.clientY;
|
|
306
307
|
}
|
|
307
308
|
onMouseUp() {
|
|
308
309
|
this.isDragging = !1;
|
|
@@ -315,62 +316,62 @@ const tt = (t) => t.ctrlKey || t.metaKey;
|
|
|
315
316
|
function b(t, e) {
|
|
316
317
|
if (!t?.document)
|
|
317
318
|
return !1;
|
|
318
|
-
const r = "mmmmmmmmmmwwwwwww",
|
|
319
|
+
const r = "mmmmmmmmmmwwwwwww", s = "32px", n = t.document.createElement("canvas").getContext("2d"), i = (f) => n ? (n.font = `${s} ${f}, monospace`, n.measureText(r).width) : 0, l = i("monospace");
|
|
319
320
|
return i(e) !== l;
|
|
320
321
|
}
|
|
321
322
|
function et(t, e) {
|
|
322
323
|
if (!t?.document.fonts)
|
|
323
324
|
return !1;
|
|
324
325
|
let r = !1;
|
|
325
|
-
return t.document.fonts.forEach((
|
|
326
|
-
|
|
326
|
+
return t.document.fonts.forEach((s) => {
|
|
327
|
+
s.family.replace(/['"]/g, "").toLowerCase() === e.toLowerCase() && (r = !0);
|
|
327
328
|
}), r ? !0 : b(t, e);
|
|
328
329
|
}
|
|
329
330
|
function Y(t) {
|
|
330
|
-
const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i,
|
|
331
|
-
const n =
|
|
331
|
+
const e = /\bitalic\b/i, r = /\b(semi[-\s]?condensed|condensed)\b/i, s = (a) => {
|
|
332
|
+
const n = a.fontFamily.toLowerCase(), i = a.fontStyle.toLowerCase(), l = e.test(i), p = r.test(n);
|
|
332
333
|
let f = 0;
|
|
333
334
|
return l && (f = 1), p && (f = l ? 3 : 2), {
|
|
334
|
-
family:
|
|
335
|
+
family: a.fontFamily,
|
|
335
336
|
styleRank: f,
|
|
336
|
-
weight: Number(
|
|
337
|
+
weight: Number(a.fontWeight)
|
|
337
338
|
};
|
|
338
339
|
};
|
|
339
|
-
return [...t].sort((
|
|
340
|
-
const i = a
|
|
340
|
+
return [...t].sort((a, n) => {
|
|
341
|
+
const i = s(a), l = s(n);
|
|
341
342
|
return i.weight !== l.weight ? i.weight - l.weight : i.styleRank !== l.styleRank ? i.styleRank - l.styleRank : i.family.localeCompare(l.family);
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
|
-
function rt(t, e, r = [300, 400, 500, 700, 900],
|
|
345
|
-
const
|
|
345
|
+
function rt(t, e, r = [300, 400, 500, 700, 900], s = ["normal", "italic"]) {
|
|
346
|
+
const a = [];
|
|
346
347
|
if (b(t, e))
|
|
347
348
|
for (const n of r)
|
|
348
|
-
for (const i of
|
|
349
|
-
|
|
349
|
+
for (const i of s)
|
|
350
|
+
a.push({
|
|
350
351
|
fontFamily: e,
|
|
351
352
|
fontStyle: i,
|
|
352
353
|
fontWeight: n.toString(),
|
|
353
354
|
src: ""
|
|
354
355
|
});
|
|
355
|
-
return Y(
|
|
356
|
+
return Y(a);
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function at(t) {
|
|
358
359
|
const e = new FormData(t), r = {};
|
|
359
|
-
return e.forEach((
|
|
360
|
-
if (Reflect.has(r,
|
|
361
|
-
const n = r[
|
|
362
|
-
Array.isArray(n) ? n.push(
|
|
360
|
+
return e.forEach((s, a) => {
|
|
361
|
+
if (Reflect.has(r, a)) {
|
|
362
|
+
const n = r[a];
|
|
363
|
+
Array.isArray(n) ? n.push(s) : r[a] = [r[a], s];
|
|
363
364
|
} else
|
|
364
|
-
r[
|
|
365
|
+
r[a] = s;
|
|
365
366
|
}), r;
|
|
366
367
|
}
|
|
367
368
|
function _(t) {
|
|
368
|
-
const r = [...t.getRootNode().querySelectorAll("*")],
|
|
369
|
-
return [...
|
|
369
|
+
const r = [...t.getRootNode().querySelectorAll("*")], s = [...t.elements], a = O.get(t), n = a ? Array.from(a) : [];
|
|
370
|
+
return [...s, ...n].sort(
|
|
370
371
|
(i, l) => r.indexOf(i) < r.indexOf(l) ? -1 : r.indexOf(i) > r.indexOf(l) ? 1 : 0
|
|
371
372
|
);
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
+
function st(t) {
|
|
374
375
|
return _(t).some(
|
|
375
376
|
(r) => r.hasAttribute("data-user-valid") || r.hasAttribute("data-user-invalid")
|
|
376
377
|
);
|
|
@@ -412,17 +413,17 @@ class ot {
|
|
|
412
413
|
return [...this.history];
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
|
-
var
|
|
416
|
+
var P = /* @__PURE__ */ ((t) => (t.ArrowDown = "ArrowDown", t.ArrowLeft = "ArrowLeft", t.ArrowRight = "ArrowRight", t.ArrowUp = "ArrowUp", t.Enter = "Enter", t.Escape = "Escape", t.Tab = "Tab", t))(P || {});
|
|
416
417
|
function nt(t, e) {
|
|
417
|
-
const r = {},
|
|
418
|
-
return Object.keys(t).forEach((
|
|
419
|
-
|
|
418
|
+
const r = {}, s = new Set(e);
|
|
419
|
+
return Object.keys(t).forEach((a) => {
|
|
420
|
+
s.has(a) || (r[a] = t[a]);
|
|
420
421
|
}), r;
|
|
421
422
|
}
|
|
422
423
|
function it(t, e) {
|
|
423
424
|
const r = {};
|
|
424
|
-
return e.forEach((
|
|
425
|
-
|
|
425
|
+
return e.forEach((s) => {
|
|
426
|
+
s in t && (r[s] = t[s]);
|
|
426
427
|
}), r;
|
|
427
428
|
}
|
|
428
429
|
function lt(t) {
|
|
@@ -445,7 +446,7 @@ function ct(t, e = !0) {
|
|
|
445
446
|
} catch {
|
|
446
447
|
return [];
|
|
447
448
|
}
|
|
448
|
-
return Array.isArray(r) ? e ? r.filter((
|
|
449
|
+
return Array.isArray(r) ? e ? r.filter((s) => typeof s == "string") : r : [];
|
|
449
450
|
}
|
|
450
451
|
function ut(t, e) {
|
|
451
452
|
return typeof Storage < "u" && localStorage.getItem(t) !== null ? localStorage.getItem(t) : e;
|
|
@@ -453,40 +454,40 @@ function ut(t, e) {
|
|
|
453
454
|
function mt(t, e) {
|
|
454
455
|
typeof Storage < "u" && localStorage.setItem(t, e.toString());
|
|
455
456
|
}
|
|
456
|
-
const
|
|
457
|
+
const H = 10;
|
|
457
458
|
function ft(t, e) {
|
|
458
|
-
let r = 0,
|
|
459
|
-
for (; r <
|
|
460
|
-
const
|
|
461
|
-
t[
|
|
459
|
+
let r = 0, s = t.length;
|
|
460
|
+
for (; r < s; ) {
|
|
461
|
+
const a = Math.floor((r + s) / 2);
|
|
462
|
+
t[a].time < e.time ? r = a + 1 : s = a;
|
|
462
463
|
}
|
|
463
464
|
t.splice(r, 0, e);
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function N(t, e, r) {
|
|
466
467
|
return t.find(
|
|
467
|
-
(
|
|
468
|
+
(s) => s.col === e && s.row === r
|
|
468
469
|
) ?? null;
|
|
469
470
|
}
|
|
470
471
|
function X(t, e, r) {
|
|
471
|
-
return new Promise((
|
|
472
|
+
return new Promise((s) => {
|
|
472
473
|
if (e > 0 && Math.abs(t.currentTime - e) < 1e-3) {
|
|
473
|
-
|
|
474
|
+
s();
|
|
474
475
|
return;
|
|
475
476
|
}
|
|
476
477
|
if (e === 0) {
|
|
477
|
-
const
|
|
478
|
-
t.removeEventListener("seeked",
|
|
478
|
+
const a = () => {
|
|
479
|
+
t.removeEventListener("seeked", a);
|
|
479
480
|
const n = () => {
|
|
480
|
-
t.removeEventListener("seeked", n),
|
|
481
|
+
t.removeEventListener("seeked", n), s();
|
|
481
482
|
};
|
|
482
483
|
t.addEventListener("seeked", n), t.currentTime = 0;
|
|
483
484
|
};
|
|
484
|
-
t.addEventListener("seeked",
|
|
485
|
+
t.addEventListener("seeked", a), t.currentTime = r;
|
|
485
486
|
} else {
|
|
486
|
-
const
|
|
487
|
-
t.removeEventListener("seeked",
|
|
487
|
+
const a = () => {
|
|
488
|
+
t.removeEventListener("seeked", a), s();
|
|
488
489
|
};
|
|
489
|
-
t.addEventListener("seeked",
|
|
490
|
+
t.addEventListener("seeked", a), t.currentTime = e;
|
|
490
491
|
}
|
|
491
492
|
});
|
|
492
493
|
}
|
|
@@ -494,23 +495,23 @@ async function* ht({
|
|
|
494
495
|
cache: t,
|
|
495
496
|
canvas: e,
|
|
496
497
|
duration: r,
|
|
497
|
-
maxInterval:
|
|
498
|
-
src:
|
|
498
|
+
maxInterval: s,
|
|
499
|
+
src: a,
|
|
499
500
|
video: n
|
|
500
501
|
}) {
|
|
501
502
|
if (!e)
|
|
502
503
|
throw new Error("Canvas is required");
|
|
503
504
|
if (!n)
|
|
504
505
|
throw new Error("Video is required");
|
|
505
|
-
const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx:
|
|
506
|
+
const { columns: i, frameHeight: l, frameWidth: p, rows: f, spriteCtx: k } = e;
|
|
506
507
|
try {
|
|
507
508
|
for (let g = 0; g < f; g++)
|
|
508
509
|
for (let d = 0; d < i; d++) {
|
|
509
|
-
const T = g * i + d, D = T *
|
|
510
|
+
const T = g * i + d, D = T * s;
|
|
510
511
|
if (D >= r)
|
|
511
512
|
continue;
|
|
512
|
-
const w = d * p, M = g * l, x =
|
|
513
|
-
x ? yield { ...x, isLastFrame: y } : (await X(n, D,
|
|
513
|
+
const w = d * p, M = g * l, x = N(t[a] ?? [], d, g), y = d === i - 1 && g === f - 1 || D + s >= r;
|
|
514
|
+
x ? yield { ...x, isLastFrame: y } : (await X(n, D, s), k.drawImage(
|
|
514
515
|
n,
|
|
515
516
|
w,
|
|
516
517
|
M,
|
|
@@ -525,7 +526,7 @@ async function* ht({
|
|
|
525
526
|
isLastFrame: y,
|
|
526
527
|
row: g,
|
|
527
528
|
rows: f,
|
|
528
|
-
time: Number(D.toFixed(
|
|
529
|
+
time: Number(D.toFixed(H)),
|
|
529
530
|
x: w,
|
|
530
531
|
y: M
|
|
531
532
|
}), await new Promise(requestAnimationFrame);
|
|
@@ -537,10 +538,10 @@ function gt({
|
|
|
537
538
|
duration: t,
|
|
538
539
|
frameWidth: e,
|
|
539
540
|
playbackSpeed: r,
|
|
540
|
-
scale:
|
|
541
|
+
scale: s
|
|
541
542
|
}) {
|
|
542
|
-
let
|
|
543
|
-
return
|
|
543
|
+
let a = e * r / s;
|
|
544
|
+
return a > t && (a = t / 2), a;
|
|
544
545
|
}
|
|
545
546
|
export {
|
|
546
547
|
qt as CMYK_VALIDATION_REGEX,
|
|
@@ -554,9 +555,9 @@ export {
|
|
|
554
555
|
jt as HEX_VALIDATION_REGEX,
|
|
555
556
|
rr as HasSlotController,
|
|
556
557
|
ot as HistoryManager,
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
558
|
+
P as KeyboardKey,
|
|
559
|
+
ke as LocalizeController,
|
|
560
|
+
H as PRECISION,
|
|
560
561
|
Dt as RELATIVE_URL_REGEX,
|
|
561
562
|
Jt as RGB_VALIDATION_REGEX,
|
|
562
563
|
Tt as URL_DOMAIN_VALIDATION_REGEX,
|
|
@@ -566,16 +567,17 @@ export {
|
|
|
566
567
|
gr as addMonths,
|
|
567
568
|
St as adjustRelativeValues,
|
|
568
569
|
fe as animateTo,
|
|
569
|
-
|
|
570
|
-
|
|
570
|
+
V as appendProtocol,
|
|
571
|
+
va as buildTransformationString,
|
|
572
|
+
Pr as buildWaveformPath,
|
|
571
573
|
Lr as calculateAspectRatioFit,
|
|
572
574
|
Ye as clamp,
|
|
573
575
|
Fr as cleanImageFileName,
|
|
574
|
-
|
|
576
|
+
Aa as clearZeroDurationParts,
|
|
575
577
|
Kt as convertColor,
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
578
|
+
Xr as convertDataUnits,
|
|
579
|
+
Ur as convertDurationToMilliseconds,
|
|
580
|
+
Br as convertPixelsToAspectRatio,
|
|
579
581
|
Rr as convertSrcToBlob,
|
|
580
582
|
vr as cropImage,
|
|
581
583
|
Be as cssValueToPx,
|
|
@@ -586,57 +588,58 @@ export {
|
|
|
586
588
|
dr as displayToIso,
|
|
587
589
|
j as downloadAsset,
|
|
588
590
|
Ee as drag,
|
|
589
|
-
|
|
591
|
+
ra as emptyToSpace,
|
|
590
592
|
te as extractColor,
|
|
591
|
-
|
|
593
|
+
aa as extractExtension,
|
|
592
594
|
ht as extractFrames,
|
|
593
|
-
|
|
594
|
-
|
|
595
|
+
sa as extractRootData,
|
|
596
|
+
Wr as extractValueAndUnit,
|
|
597
|
+
Hr as extractWaveformPeaks,
|
|
595
598
|
Ar as fetchCortexApi,
|
|
596
599
|
_t as findAncestorWithBuggyStyle,
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
+
Pt as findContainingBlock,
|
|
601
|
+
Ht as findCuttingAncestor,
|
|
602
|
+
N as findFrameByColAndRow,
|
|
600
603
|
Et as findIndexByProp,
|
|
601
604
|
O as formCollections,
|
|
602
|
-
|
|
603
|
-
|
|
605
|
+
Gr as formatAspectRatioString,
|
|
606
|
+
Ia as formatDurationPartsManually,
|
|
604
607
|
pr as formatMonthYearLabel,
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
$r as formatNumberWithGrouping,
|
|
609
|
+
oa as formatSecondsToTime,
|
|
610
|
+
na as formatTimeToSeconds,
|
|
611
|
+
La as formatWithIntlDurationFormat,
|
|
612
|
+
zr as gcd,
|
|
610
613
|
We as getActiveElement,
|
|
611
614
|
ce as getActiveModals,
|
|
612
615
|
Fe as getAssociatedForm,
|
|
613
|
-
|
|
616
|
+
Kr as getBreakpointsFromCSS,
|
|
614
617
|
rt as getBrowserFontVariants,
|
|
615
618
|
ee as getColorType,
|
|
616
619
|
br as getContainedImageSize,
|
|
617
620
|
Ge as getCortexPopupLayer,
|
|
618
621
|
C as getCurrentZIndex,
|
|
619
622
|
ue as getDeepestActiveElement,
|
|
620
|
-
|
|
621
|
-
|
|
623
|
+
ta as getDeviceType,
|
|
624
|
+
Fa as getDurationPartsByUnitsFormat,
|
|
622
625
|
$e as getElementFromHTMLString,
|
|
623
626
|
ze as getElementFromTemplate,
|
|
624
627
|
Dr as getFirstDayOfWeek,
|
|
625
628
|
_ as getFormControls,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
+
Ca as getHighlightedTitle,
|
|
630
|
+
Sa as getHighlightedTitleHtml,
|
|
631
|
+
ar as getInnerHTML,
|
|
629
632
|
gt as getInterval,
|
|
630
633
|
re as getLightDarkCssString,
|
|
631
|
-
|
|
634
|
+
kr as getNaturalWidthHeight,
|
|
632
635
|
qe as getNeededPaddingForBoxShadow,
|
|
633
|
-
|
|
634
|
-
|
|
636
|
+
Nt as getNextAncestor,
|
|
637
|
+
Pe as getOffset,
|
|
635
638
|
Qe as getRelativeClickPercentage,
|
|
636
|
-
|
|
639
|
+
ia as getRootIDString,
|
|
637
640
|
nr as getTabbableBoundary,
|
|
638
641
|
ir as getTabbableElements,
|
|
639
|
-
|
|
642
|
+
sr as getTextContent,
|
|
640
643
|
Tr as getTodayIsoDate,
|
|
641
644
|
At as groupBy,
|
|
642
645
|
It as insertAtIndex,
|
|
@@ -648,20 +651,20 @@ export {
|
|
|
648
651
|
je as isElementInHorizontalView,
|
|
649
652
|
Ut as isFirefox,
|
|
650
653
|
et as isFontFamilyAvailable,
|
|
651
|
-
|
|
652
|
-
|
|
654
|
+
st as isFormInteracted,
|
|
655
|
+
la as isGalleryItemCardType,
|
|
653
656
|
Bt as isIOS,
|
|
654
657
|
Je as isInElement,
|
|
655
658
|
tt as isModKey,
|
|
656
659
|
Wt as isSafari,
|
|
657
|
-
|
|
660
|
+
Vr as isSaveSrcValid,
|
|
658
661
|
wr as isValidIsoDate,
|
|
659
662
|
xt as isValidUrl,
|
|
660
663
|
Mr as isoToDate,
|
|
661
664
|
xr as isoToDisplay,
|
|
662
665
|
Ke as loadScript,
|
|
663
|
-
|
|
664
|
-
|
|
666
|
+
He as lockBodyScrolling,
|
|
667
|
+
ae as luminanceTextColor,
|
|
665
668
|
Ft as moveMultipleToIndex,
|
|
666
669
|
Rt as moveToIndex,
|
|
667
670
|
vt as multiSelectTo,
|
|
@@ -670,9 +673,9 @@ export {
|
|
|
670
673
|
z as openAssetOverview,
|
|
671
674
|
q as openFolderOverview,
|
|
672
675
|
Q as openLink,
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
+
ca as padPath,
|
|
677
|
+
ua as parseBooleanString,
|
|
678
|
+
se as parseBorder,
|
|
676
679
|
he as parseDuration,
|
|
677
680
|
Cr as parseIsoDate,
|
|
678
681
|
lt as parseJsonString,
|
|
@@ -683,39 +686,39 @@ export {
|
|
|
683
686
|
Gt as popoverSupported,
|
|
684
687
|
ge as prefersReducedMotion,
|
|
685
688
|
ut as readLocalStorageValue,
|
|
686
|
-
|
|
687
|
-
|
|
689
|
+
ma as reducePathToDirectChild,
|
|
690
|
+
Ve as registerTranslation,
|
|
688
691
|
bt as removeAtIndex,
|
|
689
|
-
|
|
692
|
+
kt as removeMultipleAtIndex,
|
|
690
693
|
Or as resizeImage,
|
|
691
|
-
|
|
694
|
+
qr as rotateBox,
|
|
692
695
|
Yr as rotateImage,
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
696
|
+
fa as safeExtension,
|
|
697
|
+
ha as safeString,
|
|
698
|
+
ga as sanitizeHTML,
|
|
699
|
+
Qr as sanitizeRotation,
|
|
700
|
+
Ne as scrollIntoView,
|
|
701
|
+
at as serialize,
|
|
699
702
|
Z as shareAsset,
|
|
700
703
|
de as shimKeyframesHeightAuto,
|
|
701
704
|
tr as sortByTopPosition,
|
|
702
705
|
Y as sortTypefaceVariants,
|
|
703
|
-
|
|
704
|
-
|
|
706
|
+
jr as splitBoxValues,
|
|
707
|
+
da as splitCamelCaseFormatted,
|
|
705
708
|
pe as stopAnimations,
|
|
706
709
|
$t as supportHLS,
|
|
707
710
|
b as testFontAvailability,
|
|
708
711
|
we as timecodeConverter,
|
|
709
|
-
|
|
712
|
+
pa as toCamelCase,
|
|
710
713
|
Sr as toIsoDate,
|
|
711
|
-
|
|
712
|
-
|
|
714
|
+
Da as toKebabCase,
|
|
715
|
+
Ta as toPascalCase,
|
|
713
716
|
yt as toRelativeUrl,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
+
wa as toTitleCase,
|
|
718
|
+
Vt as toast,
|
|
719
|
+
Ma as truncateTextMiddle,
|
|
717
720
|
Xe as unlockBodyScrolling,
|
|
718
|
-
|
|
721
|
+
xa as upperFirst,
|
|
719
722
|
Re as validValidityState,
|
|
720
723
|
ve as valueMissingValidityState,
|
|
721
724
|
De as waitForEvent,
|