@orangelogic/design-system 2.99.0 → 2.101.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.CKtT9q4k.js → asset.CtL7ACp7.js} +1 -1
- package/library/chunks/{color-swatch-group.Cfn8EGfK.js → color-swatch-group.C6c53two.js} +3 -3
- package/library/chunks/{color-swatch.BUwHT5Cx.js → color-swatch.GsiCvj1n.js} +1 -1
- package/library/chunks/{confirm-popover.BMGnWZnC.js → confirm-popover.PiSCZY6-.js} +1 -1
- package/library/chunks/debounce.CIEhztrj.js +97 -0
- package/library/chunks/{dialog._xvAZqaE.js → dialog.BTU6B2_4.js} +9 -10
- package/library/chunks/event.BeKOsirN.js +46 -0
- package/library/chunks/{file-on-demand.CIjtKP0H.js → file-on-demand.DCxabV6T.js} +4 -4
- package/library/chunks/{folder-select.D4Ft0qRc.js → folder-select.BM7yeAsU.js} +2 -2
- package/library/chunks/{image.BnB-fJ8g.js → image.D207g003.js} +1 -1
- package/library/chunks/{list-editor.B_mnvgtZ.js → list-editor.DMjclCWz.js} +5 -5
- package/library/chunks/{table.D4HIzy47.js → table.Cm-ynClk.js} +977 -962
- package/library/chunks/{tree.Hh8WCK7l.js → tree.DAiWVFiY.js} +91 -80
- package/library/components/alert.js +7 -8
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +4 -4
- package/library/components/color-picker.js +1 -1
- package/library/components/color-swatch-group.js +4 -4
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +2 -2
- package/library/components/details.js +1 -2
- package/library/components/dialog.js +3 -4
- package/library/components/drawer.js +1 -2
- package/library/components/dropdown.js +7 -8
- package/library/components/dynamic-select.js +1 -1
- package/library/components/element-clamp.js +1 -2
- package/library/components/file-on-demand.js +5 -5
- package/library/components/folder-select.js +2 -2
- package/library/components/image.js +2 -2
- package/library/components/line-clamp.js +4 -5
- package/library/components/list-editor.js +4 -4
- package/library/components/masonry.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/organisms.js +2 -2
- package/library/components/popup.js +73 -74
- package/library/components/range.js +1 -1
- package/library/components/select.js +1 -2
- package/library/components/share-option-list.js +1 -1
- package/library/components/sidebar.js +6 -6
- package/library/components/table.js +1 -1
- package/library/components/tooltip.js +1 -2
- package/library/components/tree-item.js +4 -3
- package/library/components/tree.js +1 -1
- package/library/components/types.js +1738 -1742
- package/library/components/video.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +11 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +10 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +138 -140
- package/package.json +1 -1
- package/library/chunks/animate.El-MpOws.js +0 -37
- package/library/chunks/browser.BHOCIF_A.js +0 -84
- package/library/chunks/debounce.DaHuiSGU.js +0 -15
- package/library/chunks/event.mFzZi4sr.js +0 -11
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as ps, a as Fn } from "../chunks/_commonjsHelpers.DQNKXVTB.js";
|
|
2
2
|
import { r as wb } from "../chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
3
|
-
import { r as Sb, C as Cb, R as Mb } from "../chunks/image.
|
|
3
|
+
import { r as Sb, C as Cb, R as Mb } from "../chunks/image.D207g003.js";
|
|
4
4
|
import Db from "./resize-observer.js";
|
|
5
5
|
import { c as Pb } from "../chunks/component.styles.CRO4Odto.js";
|
|
6
|
-
import { b as Lb } from "../chunks/
|
|
6
|
+
import { b as Lb } from "../chunks/debounce.CIEhztrj.js";
|
|
7
7
|
import { c as Rb } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
8
|
import { L as Ib } from "../chunks/i18n.DK1uYlJT.js";
|
|
9
9
|
import { w as gn } from "../chunks/watch.BCJD77bD.js";
|
package/library/package.json
CHANGED
package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts
CHANGED
|
@@ -16,11 +16,21 @@ import { default as CxTableDropdownFilter } from './table-dropdown-filter';
|
|
|
16
16
|
import { default as CxTableSavedSearchDropdown } from './table-saved-search-dropdown';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @summary
|
|
19
|
+
* @summary Table toolbars display table controls such as labels, pagination, search, filters, saved searches, add actions, and export actions.
|
|
20
|
+
* @description Use the label property or label slot to render a heading, and the pagination slot to place pagination above the main toolbar actions.
|
|
21
|
+
*
|
|
22
|
+
* @slot label - Optional label content that replaces the label property fallback.
|
|
23
|
+
* @slot pagination - Optional pagination content displayed opposite the label.
|
|
24
|
+
*
|
|
25
|
+
* @event {{ value: string }} cx-search - Emitted when the search value is submitted or cleared.
|
|
26
|
+
* @event cx-table-advanced-search-click - Emitted when the advanced search action is clicked.
|
|
27
|
+
* @event cx-add - Emitted when the add action is clicked.
|
|
28
|
+
* @event {{ type: 'csv' | 'xml' | 'custom' | 'report' }} cx-table-export - Emitted when an export action is selected.
|
|
20
29
|
*/
|
|
21
30
|
export default class CxTableToolbar extends CortexElement {
|
|
22
31
|
static readonly styles: CSSResultGroup;
|
|
23
32
|
private readonly localize;
|
|
33
|
+
private readonly hasSlotController;
|
|
24
34
|
static readonly dependencies: {
|
|
25
35
|
'cx-button': typeof CxButton;
|
|
26
36
|
'cx-dropdown': typeof CxDropdown;
|
|
@@ -4,6 +4,7 @@ import { CSSResultGroup, PropertyValueMap, PropertyValues, TemplateResult } from
|
|
|
4
4
|
import { default as Sortable } from 'sortablejs';
|
|
5
5
|
import { default as CxCheckbox } from '../checkbox/checkbox';
|
|
6
6
|
import { default as CxIcon } from '../icon/icon';
|
|
7
|
+
import { default as CxLineClamp } from '../line-clamp/line-clamp';
|
|
7
8
|
import { default as CxSpinner } from '../spinner/spinner';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -46,12 +47,16 @@ import { default as CxSpinner } from '../spinner/spinner';
|
|
|
46
47
|
* @cssproperty [--hover-background-color=var(--cx-menu-item-background-color-hover)] - The background color of the hovered tree item.
|
|
47
48
|
* @cssproperty [--active-background-color=var(--cx-color-neutral-200)] - The background color of the active tree item.
|
|
48
49
|
* @cssproperty [--item-padding=var(--cx-spacing-x-small) var(--cx-spacing-small)] - The padding of the tree item.
|
|
50
|
+
*
|
|
51
|
+
* When `max-lines` is set, the label is wrapped in a `cx-line-clamp` and the text is clamped with an ellipsis
|
|
52
|
+
* after the given number of lines. A tooltip with the full text is shown automatically when clamping is active.
|
|
49
53
|
*/
|
|
50
54
|
export default class CxTreeItem extends CortexElement {
|
|
51
55
|
static readonly styles: CSSResultGroup;
|
|
52
56
|
static readonly dependencies: {
|
|
53
57
|
'cx-checkbox': typeof CxCheckbox;
|
|
54
58
|
'cx-icon': typeof CxIcon;
|
|
59
|
+
'cx-line-clamp': typeof CxLineClamp;
|
|
55
60
|
'cx-spinner': typeof CxSpinner;
|
|
56
61
|
};
|
|
57
62
|
static isTreeItem(node: Node): node is CxTreeItem;
|
|
@@ -152,6 +157,11 @@ export default class CxTreeItem extends CortexElement {
|
|
|
152
157
|
* If set to 'false', the tree item will not be focusable and will not receive focus when the user clicks on it.
|
|
153
158
|
*/
|
|
154
159
|
focusable: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum number of lines to display in the label before clamping with an ellipsis.
|
|
162
|
+
* Set to -1 (the default) to show all lines without clamping.
|
|
163
|
+
*/
|
|
164
|
+
maxLines: number;
|
|
155
165
|
indeterminate: boolean;
|
|
156
166
|
isLeaf: boolean;
|
|
157
167
|
loading: boolean;
|
|
@@ -4994,6 +4994,10 @@
|
|
|
4994
4994
|
* Indicates whether the tree item is focusable. If set to 'false', the tree item will not be focusable and will not receive focus when the user clicks on it.
|
|
4995
4995
|
*/
|
|
4996
4996
|
focusable?: boolean;
|
|
4997
|
+
/**
|
|
4998
|
+
* The maximum number of lines to display in the label before clamping with an ellipsis. Set to -1 (the default) to show all lines without clamping.
|
|
4999
|
+
*/
|
|
5000
|
+
maxLines?: number;
|
|
4997
5001
|
/**
|
|
4998
5002
|
* Make localization attributes reactive eslint-disable-next-line lit/no-native-attributes
|
|
4999
5003
|
*/
|
package/library/utils.js
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
import { a as D } from "./chunks/url.Cj9cIQXJ.js";
|
|
2
2
|
import { R as st, U as rt, c as ot, b as at, i as nt, t as it } from "./chunks/url.Cj9cIQXJ.js";
|
|
3
3
|
import { e as ct, f as ut, g as ft, c as ht, i as mt, a as dt, d as gt, m as pt, b as wt, r as xt, t as Ct } from "./chunks/toast.D3AW3RWv.js";
|
|
4
|
-
import {
|
|
5
|
-
import { d as
|
|
6
|
-
import { a as
|
|
7
|
-
import { a as
|
|
8
|
-
import { t as
|
|
9
|
-
import { c as
|
|
10
|
-
import { d as ne } from "./chunks/debounce.DaHuiSGU.js";
|
|
4
|
+
import { d as Dt, h as At, a as Tt, f as yt, g as St, e as Mt, b as Lt, c as It, i as vt, p as Rt, s as Vt } from "./chunks/debounce.CIEhztrj.js";
|
|
5
|
+
import { d as kt, C as Ft, e as Ot, H as Nt, R as Xt, c as Pt, h as _t, f as Bt, g as Ht, l as Ut, p as Gt, a as Yt, b as Wt } from "./chunks/color.vLD2sNTs.js";
|
|
6
|
+
import { a as qt, b as Zt, g as jt } from "./chunks/modal.U1QltQKe.js";
|
|
7
|
+
import { a as $t, p as Qt, c as Kt, b as te, s as ee, w as se } from "./chunks/event.BeKOsirN.js";
|
|
8
|
+
import { t as oe } from "./chunks/converters.DkDtLstb.js";
|
|
9
|
+
import { c as ne } from "./chunks/custom-element.L4WJXn1j.js";
|
|
11
10
|
import { d as le } from "./chunks/default-value.COZopaet.js";
|
|
12
11
|
import { d as ue } from "./chunks/drag.DXEXVXPv.js";
|
|
13
|
-
import { w as he } from "./chunks/event.mFzZi4sr.js";
|
|
14
12
|
import { f as A } from "./chunks/form.Ch1cwYzO.js";
|
|
15
|
-
import { F as
|
|
16
|
-
import { L as
|
|
17
|
-
import { c as
|
|
18
|
-
import { g as
|
|
13
|
+
import { F as he, c as me, v as de, a as ge } from "./chunks/form.Ch1cwYzO.js";
|
|
14
|
+
import { L as we, r as xe } from "./chunks/i18n.DK1uYlJT.js";
|
|
15
|
+
import { c as Ee } from "./chunks/math.DqTA6ya4.js";
|
|
16
|
+
import { g as Ae, l as Te, s as ye, u as Se } from "./chunks/scroll.xtO5yojm.js";
|
|
19
17
|
import { j as x } from "./chunks/dom.0RpWet6y.js";
|
|
20
|
-
import { c as
|
|
21
|
-
import { H as
|
|
22
|
-
import { g as
|
|
23
|
-
import { i as
|
|
24
|
-
import { w as
|
|
25
|
-
import { f as
|
|
26
|
-
import { c as
|
|
27
|
-
import { a as
|
|
28
|
-
import { s as
|
|
29
|
-
import { g as
|
|
30
|
-
import { c as
|
|
31
|
-
import { g as
|
|
32
|
-
import { c as
|
|
33
|
-
import { b as
|
|
18
|
+
import { c as Le, d as Ie, k as ve, a as Re, g as Ve, h as be, b as ke, f as Fe, i as Oe, e as Ne, l as Xe, s as Pe } from "./chunks/dom.0RpWet6y.js";
|
|
19
|
+
import { H as Be, a as He, g as Ue } from "./chunks/slot.j5oheLJC.js";
|
|
20
|
+
import { g as Ye, a as We } from "./chunks/tabbable.CcMz3mIL.js";
|
|
21
|
+
import { i as qe } from "./chunks/user-agent.D9aPuOyL.js";
|
|
22
|
+
import { w as je } from "./chunks/watch.BCJD77bD.js";
|
|
23
|
+
import { f as $e } from "./chunks/content-builder.CcgZciZN.js";
|
|
24
|
+
import { c as Ke, f as ts, e as es, b as ss, g as rs, d as os, i as as, r as ns, a as is } from "./chunks/image.9qwbjGNb.js";
|
|
25
|
+
import { a as cs, b as us, c as fs, e as hs, d as ms, f as ds, g as gs, r as ps, s as ws } from "./chunks/number.B4PQLJIg.js";
|
|
26
|
+
import { s as Cs } from "./chunks/parse.Cu5nBDTb.js";
|
|
27
|
+
import { g as Ds, a as As } from "./chunks/responsive.Oz9HWjyQ.js";
|
|
28
|
+
import { c as ys, b as Ss, e as Ms, f as Ls, l as Is, g as vs, j as Rs, p as Vs, v as bs, r as ks, a as Fs, d as Os, s as Ns, k as Xs, o as Ps, m as _s, n as Bs, q as Hs, t as Us, u as Gs } from "./chunks/string.DUgD4c9f.js";
|
|
29
|
+
import { g as Ws, a as zs } from "./chunks/template.ClovJacp.js";
|
|
30
|
+
import { c as Zs, a as js, f as Js, g as $s } from "./chunks/time.BiQnh9wt.js";
|
|
31
|
+
import { b as Ks } from "./chunks/transformation.Cqz3hPaQ.js";
|
|
34
32
|
function b(t) {
|
|
35
33
|
if (!this.ownerDocument.defaultView?.Matrix3 || !t)
|
|
36
34
|
return;
|
|
@@ -352,114 +350,114 @@ function K({
|
|
|
352
350
|
return o > t && (o = t / 2), o;
|
|
353
351
|
}
|
|
354
352
|
export {
|
|
355
|
-
|
|
356
|
-
|
|
353
|
+
kt as CMYK_VALIDATION_REGEX,
|
|
354
|
+
Ft as ColorType,
|
|
357
355
|
X as CortexPopupController,
|
|
358
356
|
P as DragScroll,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
357
|
+
he as FormControlController,
|
|
358
|
+
Ot as HEX_ALPHA_VALIDATION_REGEX,
|
|
359
|
+
Nt as HEX_VALIDATION_REGEX,
|
|
360
|
+
Be as HasSlotController,
|
|
363
361
|
Y as HistoryManager,
|
|
364
362
|
S as KeyboardKey,
|
|
365
|
-
|
|
363
|
+
we as LocalizeController,
|
|
366
364
|
M as PRECISION,
|
|
367
365
|
st as RELATIVE_URL_REGEX,
|
|
368
|
-
|
|
366
|
+
Xt as RGB_VALIDATION_REGEX,
|
|
369
367
|
rt as URL_DOMAIN_VALIDATION_REGEX,
|
|
370
368
|
ot as URL_PROTOCOL_VALIDATION_REGEX,
|
|
371
369
|
at as URL_VALIDATION_REGEX,
|
|
372
|
-
|
|
370
|
+
qt as activeElements,
|
|
373
371
|
ct as adjustRelativeValues,
|
|
374
|
-
|
|
372
|
+
$t as animateTo,
|
|
375
373
|
D as appendProtocol,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
374
|
+
Ks as buildTransformationString,
|
|
375
|
+
Ke as calculateAspectRatioFit,
|
|
376
|
+
Ee as clamp,
|
|
377
|
+
ts as cleanImageFileName,
|
|
378
|
+
Zs as clearZeroDurationParts,
|
|
379
|
+
Pt as convertColor,
|
|
380
|
+
cs as convertDataUnits,
|
|
381
|
+
us as convertDurationToMilliseconds,
|
|
382
|
+
fs as convertPixelsToAspectRatio,
|
|
383
|
+
es as convertSrcToBlob,
|
|
384
|
+
ss as cropImage,
|
|
385
|
+
Le as cssValueToPx,
|
|
386
|
+
ne as customElement,
|
|
387
|
+
me as customErrorValidityState,
|
|
388
|
+
Dt as debounce,
|
|
391
389
|
le as defaultValue,
|
|
392
390
|
N as downloadAsset,
|
|
393
391
|
ue as drag,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
392
|
+
ys as emptyToSpace,
|
|
393
|
+
_t as extractColor,
|
|
394
|
+
Ss as extractExtension,
|
|
397
395
|
Q as extractFrames,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
396
|
+
Ms as extractRootData,
|
|
397
|
+
hs as extractValueAndUnit,
|
|
398
|
+
$e as fetchCortexApi,
|
|
399
|
+
At as findAncestorWithBuggyStyle,
|
|
400
|
+
Tt as findContainingBlock,
|
|
401
|
+
yt as findCuttingAncestor,
|
|
404
402
|
L as findFrameByColAndRow,
|
|
405
403
|
ut as findIndexByProp,
|
|
406
404
|
A as formCollections,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
405
|
+
ms as formatAspectRatioString,
|
|
406
|
+
js as formatDurationPartsManually,
|
|
407
|
+
ds as formatNumberWithGrouping,
|
|
408
|
+
Ls as formatSecondsToTime,
|
|
409
|
+
Is as formatTimeToSeconds,
|
|
410
|
+
Js as formatWithIntlDurationFormat,
|
|
411
|
+
gs as gcd,
|
|
412
|
+
Ie as getActiveElement,
|
|
413
|
+
Zt as getActiveModals,
|
|
414
|
+
Ds as getBreakpointsFromCSS,
|
|
417
415
|
H as getBrowserFontVariants,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
416
|
+
Bt as getColorType,
|
|
417
|
+
rs as getContainedImageSize,
|
|
418
|
+
ve as getCortexPopupLayer,
|
|
421
419
|
x as getCurrentZIndex,
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
420
|
+
jt as getDeepestActiveElement,
|
|
421
|
+
As as getDeviceType,
|
|
422
|
+
$s as getDurationPartsByUnitsFormat,
|
|
423
|
+
Re as getElementFromHTMLString,
|
|
424
|
+
Ve as getElementFromTemplate,
|
|
427
425
|
y as getFormControls,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
426
|
+
Ws as getHighlightedTitle,
|
|
427
|
+
zs as getHighlightedTitleHtml,
|
|
428
|
+
He as getInnerHTML,
|
|
431
429
|
K as getInterval,
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
430
|
+
Ht as getLightDarkCssString,
|
|
431
|
+
os as getNaturalWidthHeight,
|
|
432
|
+
be as getNeededPaddingForBoxShadow,
|
|
433
|
+
St as getNextAncestor,
|
|
434
|
+
Ae as getOffset,
|
|
435
|
+
ke as getRelativeClickPercentage,
|
|
436
|
+
vs as getRootIDString,
|
|
437
|
+
Ye as getTabbableBoundary,
|
|
438
|
+
We as getTabbableElements,
|
|
439
|
+
Ue as getTextContent,
|
|
442
440
|
ft as groupBy,
|
|
443
441
|
ht as insertAtIndex,
|
|
444
442
|
$ as insertFrameToCache,
|
|
445
443
|
mt as insertMultipleAtIndex,
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
444
|
+
Mt as isChrome,
|
|
445
|
+
qe as isCortexAdobePlugin,
|
|
446
|
+
Fe as isDomElement,
|
|
447
|
+
Oe as isElementInHorizontalView,
|
|
448
|
+
Lt as isFirefox,
|
|
451
449
|
B as isFontFamilyAvailable,
|
|
452
450
|
G as isFormInteracted,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
451
|
+
Rs as isGalleryItemCardType,
|
|
452
|
+
It as isIOS,
|
|
453
|
+
Ne as isInElement,
|
|
456
454
|
_ as isModKey,
|
|
457
|
-
|
|
458
|
-
|
|
455
|
+
vt as isSafari,
|
|
456
|
+
as as isSaveSrcValid,
|
|
459
457
|
nt as isValidUrl,
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
458
|
+
Xe as loadScript,
|
|
459
|
+
Te as lockBodyScrolling,
|
|
460
|
+
Ut as luminanceTextColor,
|
|
463
461
|
dt as moveMultipleToIndex,
|
|
464
462
|
gt as moveToIndex,
|
|
465
463
|
pt as multiSelectTo,
|
|
@@ -467,53 +465,53 @@ export {
|
|
|
467
465
|
b as openAssetOverview,
|
|
468
466
|
k as openFolderOverview,
|
|
469
467
|
F as openLink,
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
468
|
+
Vs as padPath,
|
|
469
|
+
bs as parseBooleanString,
|
|
470
|
+
Gt as parseBorder,
|
|
471
|
+
Qt as parseDuration,
|
|
474
472
|
q as parseJsonString,
|
|
475
|
-
|
|
473
|
+
Yt as parseLightDark,
|
|
476
474
|
Z as parseListString,
|
|
477
|
-
|
|
475
|
+
Wt as parseShadow,
|
|
478
476
|
z as pick,
|
|
479
|
-
|
|
480
|
-
|
|
477
|
+
Rt as popoverSupported,
|
|
478
|
+
Kt as prefersReducedMotion,
|
|
481
479
|
j as readLocalStorageValue,
|
|
482
|
-
|
|
483
|
-
|
|
480
|
+
ks as reducePathToDirectChild,
|
|
481
|
+
xe as registerTranslation,
|
|
484
482
|
wt as removeAtIndex,
|
|
485
483
|
xt as removeMultipleAtIndex,
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
484
|
+
ns as resizeImage,
|
|
485
|
+
ps as rotateBox,
|
|
486
|
+
is as rotateImage,
|
|
487
|
+
Fs as safeExtension,
|
|
488
|
+
Os as safeString,
|
|
489
|
+
Ns as sanitizeHTML,
|
|
490
|
+
ws as sanitizeRotation,
|
|
491
|
+
ye as scrollIntoView,
|
|
494
492
|
U as serialize,
|
|
495
493
|
O as shareAsset,
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
te as shimKeyframesHeightAuto,
|
|
495
|
+
Pe as sortByTopPosition,
|
|
498
496
|
T as sortTypefaceVariants,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
497
|
+
Cs as splitBoxValues,
|
|
498
|
+
Xs as splitCamelCaseFormatted,
|
|
499
|
+
ee as stopAnimations,
|
|
500
|
+
Vt as supportHLS,
|
|
503
501
|
C as testFontAvailability,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
502
|
+
oe as timecodeConverter,
|
|
503
|
+
Ps as toCamelCase,
|
|
504
|
+
_s as toKebabCase,
|
|
505
|
+
Bs as toPascalCase,
|
|
508
506
|
it as toRelativeUrl,
|
|
509
|
-
|
|
507
|
+
Hs as toTitleCase,
|
|
510
508
|
Ct as toast,
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
509
|
+
Us as truncateTextMiddle,
|
|
510
|
+
Se as unlockBodyScrolling,
|
|
511
|
+
Gs as upperFirst,
|
|
512
|
+
de as validValidityState,
|
|
513
|
+
ge as valueMissingValidityState,
|
|
514
|
+
se as waitForEvent,
|
|
515
|
+
je as watch,
|
|
518
516
|
J as writeLocalStorageValue
|
|
519
517
|
};
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
function o(n, t, e) {
|
|
2
|
-
return new Promise((r) => {
|
|
3
|
-
if (e?.duration === 1 / 0)
|
|
4
|
-
throw new Error("Promise-based animations must be finite.");
|
|
5
|
-
const i = n.animate(t, {
|
|
6
|
-
...e,
|
|
7
|
-
duration: a() ? 0 : e.duration
|
|
8
|
-
});
|
|
9
|
-
i.addEventListener("cancel", r, { once: !0 }), i.addEventListener("finish", r, { once: !0 });
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function s(n) {
|
|
13
|
-
return n = n.toString().toLowerCase(), n.indexOf("ms") > -1 ? parseFloat(n) : n.indexOf("s") > -1 ? parseFloat(n) * 1e3 : parseFloat(n);
|
|
14
|
-
}
|
|
15
|
-
function a() {
|
|
16
|
-
return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
17
|
-
}
|
|
18
|
-
function u(n) {
|
|
19
|
-
return Promise.all(
|
|
20
|
-
n.getAnimations().map((t) => new Promise((e) => {
|
|
21
|
-
t.cancel(), requestAnimationFrame(e);
|
|
22
|
-
}))
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
function c(n, t) {
|
|
26
|
-
return n.map((e) => ({
|
|
27
|
-
...e,
|
|
28
|
-
height: e.height === "auto" ? `${t}px` : e.height
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
o as a,
|
|
33
|
-
c as b,
|
|
34
|
-
a as c,
|
|
35
|
-
s as p,
|
|
36
|
-
u as s
|
|
37
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
const y = () => {
|
|
2
|
-
const t = window.navigator && window.navigator.userAgent || "";
|
|
3
|
-
return /Firefox/i.test(t);
|
|
4
|
-
}, w = () => navigator.userAgent.indexOf("Chrome") > -1, l = () => {
|
|
5
|
-
const t = window.navigator && window.navigator.userAgent || "";
|
|
6
|
-
return w() ? !1 : t.indexOf("Safari") > -1;
|
|
7
|
-
}, C = !l() && "VideoEncoder" in window, A = "showPopover" in document.createElement("div");
|
|
8
|
-
function c(t) {
|
|
9
|
-
if (t.assignedSlot)
|
|
10
|
-
return t.assignedSlot;
|
|
11
|
-
if (t.parentElement)
|
|
12
|
-
return t.parentElement;
|
|
13
|
-
const o = t.getRootNode();
|
|
14
|
-
return o instanceof ShadowRoot ? o.host : null;
|
|
15
|
-
}
|
|
16
|
-
function u(t, o) {
|
|
17
|
-
if (!t)
|
|
18
|
-
return null;
|
|
19
|
-
let n = c(t);
|
|
20
|
-
if (!n)
|
|
21
|
-
return null;
|
|
22
|
-
for (; n; ) {
|
|
23
|
-
if (n === document.body)
|
|
24
|
-
return;
|
|
25
|
-
if (o(n))
|
|
26
|
-
return n;
|
|
27
|
-
n = c(n);
|
|
28
|
-
}
|
|
29
|
-
return n;
|
|
30
|
-
}
|
|
31
|
-
function b(t) {
|
|
32
|
-
return u(t, (o) => {
|
|
33
|
-
const n = window.getComputedStyle(o), e = n.clipPath !== "none" && n.clipPath !== "", i = o.hasAttribute(
|
|
34
|
-
"data-overlayscrollbars-viewport"
|
|
35
|
-
), s = n.transform !== "none", a = ["auto", "scroll", "hidden"].includes(
|
|
36
|
-
n.overflow
|
|
37
|
-
);
|
|
38
|
-
return !!(e || i || s && a);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
const m = [
|
|
42
|
-
"transform",
|
|
43
|
-
"translate",
|
|
44
|
-
"scale",
|
|
45
|
-
"rotate",
|
|
46
|
-
"perspective"
|
|
47
|
-
], S = [
|
|
48
|
-
"transform",
|
|
49
|
-
"translate",
|
|
50
|
-
"scale",
|
|
51
|
-
"rotate",
|
|
52
|
-
"perspective",
|
|
53
|
-
"filter"
|
|
54
|
-
], v = ["paint", "layout", "strict", "content"];
|
|
55
|
-
function E(t) {
|
|
56
|
-
return u(
|
|
57
|
-
t,
|
|
58
|
-
(n) => {
|
|
59
|
-
const e = window.getComputedStyle(n), i = m.some(
|
|
60
|
-
(r) => e[r] ? e[r] !== "none" : !1
|
|
61
|
-
), s = e.backdropFilter, a = !!s && s !== "none", f = e.filter !== "none", d = e.containerType !== "normal", g = S.some(
|
|
62
|
-
(r) => (e.willChange || "").includes(r)
|
|
63
|
-
), p = v.some(
|
|
64
|
-
(r) => (e.contain || "").includes(r)
|
|
65
|
-
), h = e.contentVisibility === "auto";
|
|
66
|
-
return l() && d ? !0 : i || g || p || a || h || f;
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
function P() {
|
|
71
|
-
return /iPad|iPhone|iPod/.test(navigator.userAgent);
|
|
72
|
-
}
|
|
73
|
-
export {
|
|
74
|
-
E as a,
|
|
75
|
-
y as b,
|
|
76
|
-
P as c,
|
|
77
|
-
w as d,
|
|
78
|
-
u as e,
|
|
79
|
-
b as f,
|
|
80
|
-
c as g,
|
|
81
|
-
l as i,
|
|
82
|
-
A as p,
|
|
83
|
-
C as s
|
|
84
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const c = (s, n = !1) => {
|
|
2
|
-
const a = Symbol(), o = Symbol();
|
|
3
|
-
return (u, d, t) => {
|
|
4
|
-
const l = t.value;
|
|
5
|
-
t.value = function(...i) {
|
|
6
|
-
const e = this;
|
|
7
|
-
clearTimeout(e[a]), n && !e[o] && (l.apply(this, i), e[o] = !0), e[a] = window.setTimeout(() => {
|
|
8
|
-
n || l.apply(this, i), e[o] = !1;
|
|
9
|
-
}, s);
|
|
10
|
-
}, t.configurable === !1 && (t.configurable = !0);
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
c as d
|
|
15
|
-
};
|