@orangelogic/design-system 2.60.0 → 2.61.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/apps/cortex/src/types.d.ts +2 -0
- package/library/chunks/_baseRest.ClTMQtN1.js +67 -0
- package/library/chunks/{_baseUniq.BUihBa8c.js → _baseUniq.Df-fLIBx.js} +53 -56
- package/library/chunks/{amazon_s3.DeaMdPPn.js → amazon_s3.BEMtqafk.js} +1 -1
- package/library/chunks/animate.El-MpOws.js +37 -0
- package/library/chunks/animation-registry.HmpwNuGH.js +34 -0
- package/library/chunks/{animation.B7d72NVK.js → animation.DfUHRQry.js} +10 -8
- package/library/chunks/array.DCtvHiLS.js +81 -0
- package/library/chunks/asset.CG_yXtWK.js +288 -0
- package/library/chunks/{browser.Va59Ix3P.js → browser.BHOCIF_A.js} +18 -16
- package/library/chunks/{button.CtCSNRB3.js → button.P71VJ5xh.js} +75 -74
- package/library/chunks/{button.styles.C8AIO8fd.js → button.styles.Dl5IQLHU.js} +1 -1
- package/library/chunks/{capitalize.CNStXZBq.js → capitalize.WSkCXkNE.js} +1 -1
- package/library/chunks/{chatbot.sm4Rph1v.js → chatbot.BmpIu59L.js} +2 -2
- package/library/chunks/{class-map.CoZTSvbM.js → class-map.BiVq-cVR.js} +1 -1
- package/library/chunks/{color-swatch-group.qJevXs50.js → color-swatch-group.DlLmydlB.js} +116 -127
- package/library/chunks/color-swatch.Bpb_hW2H.js +407 -0
- package/library/chunks/color.vLD2sNTs.js +164 -0
- package/library/chunks/{component.styles.CI-v8BZa.js → component.styles.DMSLciL5.js} +1 -1
- package/library/chunks/{confirm-popover.D2TF1x6K.js → confirm-popover.C1uA36JR.js} +15 -13
- package/library/chunks/{content-builder.WranV3P4.js → content-builder.Bf7kqzDI.js} +1 -1
- package/library/chunks/converters.DkDtLstb.js +11 -0
- package/library/chunks/{cropper.aA0v16xS.js → cropper.BraEEykE.js} +5004 -5024
- package/library/chunks/custom-element.L4WJXn1j.js +14 -0
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{default-value.CIKAvD5l.js → default-value.COZopaet.js} +1 -1
- package/library/chunks/{dialog.B1TORO6S.js → dialog.C_75RVVz.js} +52 -49
- package/library/chunks/{directive-helpers.DBHob-_L.js → directive-helpers.Dm4rc594.js} +1 -1
- package/library/chunks/dom.CZrJ64Dm.js +92 -0
- package/library/chunks/{dot-pagination.8f2oX_ge.js → dot-pagination.CoCIJsHC.js} +24 -22
- package/library/chunks/{endpoints.BgyupJys.js → endpoints.B7lcoc1N.js} +1 -3
- package/library/chunks/{file-on-demand.Cwgabdyw.js → file-on-demand.B2jNilAj.js} +1829 -1544
- package/library/chunks/{folder-select.DiWCwR-T.js → folder-select.CSEQxIXF.js} +380 -255
- package/library/chunks/{form-control.styles.NE2Q-quE.js → form-control.styles.CUGhvlfT.js} +1 -1
- package/library/chunks/{form.B8u0ywni.js → form.CO12-VK0.js} +1 -1
- package/library/chunks/{guard.BDP4A85K.js → guard.D4axKaMo.js} +1 -1
- package/library/chunks/{header.B_FD8uLt.js → header.Bd3G0-oA.js} +11 -9
- package/library/chunks/{hub-connection.CxfaT11o.js → hub-connection.BxT2b7Nq.js} +4 -3
- package/library/chunks/{i18n.BP2FRO1v.js → i18n.DrzK7TPf.js} +54 -7
- package/library/chunks/identity.ByMq8VxU.js +6 -0
- package/library/chunks/{if-defined.MfEgpxEN.js → if-defined.BRoBj_Rp.js} +1 -1
- package/library/chunks/{iframe.DZm7FiCl.js → iframe.UCj6Ze2A.js} +18 -16
- package/library/chunks/{image.Ycf8RudS.js → image.DZCRhE3G.js} +82 -79
- package/library/chunks/image.mbpyiQpQ.js +82 -0
- package/library/chunks/index.S0wy3rzm.js +373 -0
- package/library/chunks/isObjectLike.D3cpZO39.js +81 -0
- package/library/chunks/{isSymbol.L0C2ND_U.js → isSymbol.huJ_Cvxt.js} +1 -1
- package/library/chunks/lib-cortex-element.CVMmyPMC.js +146 -0
- package/library/chunks/{list-editor.COkw5JKG.js → list-editor.CrLntuM7.js} +75 -79
- package/library/chunks/{custom-element.vnXBMQxc.js → lit-element.jLBm65_O.js} +123 -277
- package/library/chunks/{live.LdB9xEhp.js → live.SCz6M8Gs.js} +2 -2
- package/library/chunks/{mailchimp.BjbPJfd-.js → mailchimp.Bs6uJVsf.js} +1 -1
- package/library/chunks/{modal.BqNLxgs1.js → modal.U1QltQKe.js} +25 -19
- package/library/chunks/{option.D9KJhzHs.js → option.D1u5-cTt.js} +21 -19
- package/library/chunks/{orangelogic.BgbQXkBv.js → orangelogic.TdFfoPUN.js} +1 -1
- package/library/chunks/{overlayscrollbars.aFuRG5Rs.js → overlayscrollbars.XhGWx9Zk.js} +1 -1
- package/library/chunks/{pagination.C2FN4fmO.js → pagination.BI3LONVU.js} +17 -15
- package/library/chunks/{ref.BaCjlzLO.js → ref.bzeTdX0K.js} +2 -2
- package/library/chunks/{repeat.CauKaXyy.js → repeat.DbF2p5ae.js} +2 -2
- package/library/chunks/responsive.CA6dcNiM.js +17 -0
- package/library/chunks/{scroll.DwPiX2Ox.js → scroll.xtO5yojm.js} +3 -2
- package/library/chunks/{slot.DJLm4Dig.js → slot.j5oheLJC.js} +12 -4
- package/library/chunks/{state.Cw55xXlb.js → state.CSDxrqLd.js} +1 -1
- package/library/chunks/{static.BjNkqt7_.js → static.UA3G1Deq.js} +1 -1
- package/library/chunks/string.Cp_XNbnV.js +160 -0
- package/library/chunks/{style-map.CZovMmo_.js → style-map.llVFPd__.js} +1 -1
- package/library/chunks/{tab-group.5fLnWflv.js → tab-group.DxSlcWK0.js} +20 -18
- package/library/chunks/{table.BAr8KKc6.js → table.CY-iMTWV.js} +457 -505
- package/library/chunks/template.CsJd8Pb_.js +20 -0
- package/library/chunks/time.D_uFZqqe.js +118 -0
- package/library/chunks/{toString.CL_lYXbK.js → toString.CRT5zqEU.js} +3 -3
- package/library/chunks/toast.BXNbwZV8.js +25 -0
- package/library/chunks/{tree.CUfvIDyA.js → tree.CNbrP8cY.js} +33 -36
- package/library/chunks/{typography.BFpl0WMA.js → typography.oDzoLbZS.js} +16 -14
- package/library/chunks/{unsafe-html.DyO9_Rsq.js → unsafe-html.Dff7-rCx.js} +1 -1
- package/library/chunks/url.LjsR2sB5.js +15 -0
- package/library/chunks/user-agent.D9aPuOyL.js +4 -0
- package/library/chunks/watch.q1sEjPWL.js +501 -0
- package/library/components/alert.js +38 -35
- package/library/components/animated-image.js +25 -23
- package/library/components/animation.js +7 -5
- package/library/components/array-line-clamp.d.ts +3 -0
- package/library/components/array-line-clamp.js +195 -0
- package/library/components/asset-link-format.js +223 -212
- package/library/components/atoms.js +164 -162
- package/library/components/avatar.js +28 -26
- package/library/components/badge.js +10 -8
- package/library/components/bicolor-picker.js +21 -19
- package/library/components/border-input-group.js +11 -9
- package/library/components/breadcrumb-item.js +14 -12
- package/library/components/breadcrumb.js +24 -22
- package/library/components/button-group.js +26 -24
- package/library/components/button.js +14 -13
- package/library/components/card.js +28 -19
- package/library/components/checkbox.js +29 -23
- package/library/components/color-picker.js +19 -17
- package/library/components/color-swatch-group.js +20 -17
- package/library/components/color-swatch.js +16 -13
- package/library/components/confirm-popover.js +11 -9
- package/library/components/copy-button.js +15 -13
- package/library/components/corner-position-input-group.js +13 -11
- package/library/components/cortex-element.d.ts +3 -0
- package/library/components/cortex-element.js +5 -0
- package/library/components/cropper.js +7 -5
- package/library/components/details.js +23 -20
- package/library/components/dialog.js +19 -16
- package/library/components/divider.js +13 -11
- package/library/components/dot-pagination.js +11 -9
- package/library/components/dot-status.js +10 -8
- package/library/components/drawer.js +63 -51
- package/library/components/dropdown.js +29 -26
- package/library/components/dynamic-select.js +12 -10
- package/library/components/element-clamp.js +28 -25
- package/library/components/file-on-demand.js +21 -20
- package/library/components/folder-select.js +12 -10
- package/library/components/format-bytes.js +11 -10
- package/library/components/format-date.js +11 -9
- package/library/components/format-number.js +16 -15
- package/library/components/format-time.js +118 -9
- package/library/components/grid-item.js +48 -46
- package/library/components/grid.js +31 -29
- package/library/components/header.js +10 -9
- package/library/components/hub-connection.js +6 -5
- package/library/components/icon-button.js +20 -18
- package/library/components/icon.js +17 -15
- package/library/components/iframe.js +10 -8
- package/library/components/image-comparer.js +27 -25
- package/library/components/image.js +14 -11
- package/library/components/include.js +26 -24
- package/library/components/input-group.js +15 -13
- package/library/components/input.js +23 -21
- package/library/components/line-clamp.js +12 -10
- package/library/components/list-editor.js +17 -15
- package/library/components/markdown.js +80 -78
- package/library/components/masonry.js +46 -44
- package/library/components/menu-item.js +151 -136
- package/library/components/menu-label.js +15 -13
- package/library/components/menu-section.js +18 -16
- package/library/components/menu.js +10 -8
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +12 -10
- package/library/components/option.js +10 -8
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +30 -28
- package/library/components/pagination.js +14 -12
- package/library/components/popup.js +3296 -9
- package/library/components/position-picker.js +12 -10
- package/library/components/progress-bar.js +13 -11
- package/library/components/progress-ring.js +15 -13
- package/library/components/qr-code.js +54 -52
- package/library/components/radio-button.js +19 -17
- package/library/components/radio-card.js +14 -12
- package/library/components/radio-group.js +20 -18
- package/library/components/radio.js +15 -13
- package/library/components/range.js +25 -23
- package/library/components/rating.js +17 -15
- package/library/components/relative-time.js +16 -14
- package/library/components/resize-observer.js +21 -19
- package/library/components/select.js +1442 -25
- package/library/components/shadow-input-group.js +19 -17
- package/library/components/share-option-list.js +20 -18
- package/library/components/sidebar.js +14 -12
- package/library/components/size-input-group.js +35 -33
- package/library/components/skeleton.js +12 -10
- package/library/components/space.js +12 -10
- package/library/components/spinner.js +17 -15
- package/library/components/split-panel.js +15 -13
- package/library/components/step.js +18 -16
- package/library/components/stepper-wizard.js +11 -9
- package/library/components/stepper.js +13 -11
- package/library/components/switch.js +21 -19
- package/library/components/tab-group.js +15 -13
- package/library/components/tab-panel.js +20 -18
- package/library/components/tab.js +18 -16
- package/library/components/table.js +69 -67
- package/library/components/tag.js +11 -9
- package/library/components/textarea.js +20 -18
- package/library/components/timecode.js +98 -8
- package/library/components/tooltip.js +24 -21
- package/library/components/tree-item.js +14 -11
- package/library/components/tree.js +12 -10
- package/library/components/typeface.js +13 -11
- package/library/components/types.js +15487 -15444
- package/library/components/typography.js +6 -4
- package/library/components/video.js +13 -11
- package/library/components/visually-hidden.js +15 -13
- package/library/events.d.ts +1 -0
- package/library/events.js +1 -0
- package/library/package.json +11 -2
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.d.ts +45 -0
- package/library/packages/atoms/src/components/array-line-clamp/array-line-clamp.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +7 -1
- package/library/packages/atoms/src/components/include/include.d.ts +1 -0
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +0 -4
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-file-on-demand-load-more.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-pin.d.ts +8 -0
- package/library/packages/events/src/cx-file-on-demand-unpin.d.ts +8 -0
- package/library/packages/events/src/cx-folder-select-search-term-change.d.ts +8 -0
- package/library/packages/events/src/cx-share-option-list-item-selected.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +6 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
- package/library/packages/molecules/src/cropper/cropper.d.ts +1 -0
- package/library/packages/molecules/src/cropper/react/Cropper.d.ts +1 -0
- package/library/packages/molecules/src/download-format-picker/download-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +8 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +1 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +6 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +3 -7
- package/library/packages/organisms/src/content-builder/styleController.d.ts +8 -8
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.d.ts +80 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-asset/file-on-demand-asset.styles.d.ts +2 -0
- package/library/packages/organisms/src/file-on-demand/components/file-on-demand-pinned-status.ts/file-on-demand-pinned-status.d.ts +44 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.constants.d.ts +1 -0
- package/library/packages/organisms/src/file-on-demand/file-on-demand.d.ts +11 -18
- package/library/packages/organisms/src/file-on-demand/file-on-demand.utils.d.ts +6 -0
- package/library/packages/services/src/api/folder/folder.d.ts +4 -8
- package/library/packages/services/src/api/folder/folder.types.d.ts +2 -1
- package/library/packages/types/src/file-on-demand.d.ts +4 -0
- package/library/packages/types/src/folder-select.d.ts +9 -2
- package/library/packages/utils/src/custom-element/i18n.d.ts +40 -2
- package/library/packages/utils/src/drag-scroll/drag-scroll.d.ts +22 -0
- package/library/packages/utils/src/drag-scroll/index.d.ts +1 -0
- package/library/packages/utils/src/font/font.d.ts +26 -0
- package/library/packages/utils/src/font/index.d.ts +1 -0
- package/library/packages/utils/src/history-manager/history-manager.d.ts +13 -0
- package/library/packages/utils/src/history-manager/index.d.ts +1 -0
- package/library/packages/utils/src/index.d.ts +45 -0
- package/library/packages/utils/src/template/index.d.ts +1 -0
- package/library/packages/utils/src/template/template.d.ts +3 -0
- package/library/react-web-component.d.ts +418 -360
- package/library/utils.d.ts +1 -0
- package/library/utils.js +180 -0
- package/package.json +11 -2
- package/library/chunks/animation-registry.DavRkTTr.js +0 -69
- package/library/chunks/asset.Ba-CxnNM.js +0 -309
- package/library/chunks/color-swatch.DUe3iLLo.js +0 -558
- package/library/chunks/dom.C0OFx7ND.js +0 -78
- package/library/chunks/format-time.BW6-ZWCX.js +0 -226
- package/library/chunks/isObjectLike.z36Fu426.js +0 -34
- package/library/chunks/popup._w5T7x8f.js +0 -3307
- package/library/chunks/select.DfO4de04.js +0 -1441
- package/library/chunks/string.BCk3SmdZ.js +0 -144
- package/library/chunks/timecode.D7XTiQ_3.js +0 -105
- package/library/chunks/watch.BCJD77bD.js +0 -547
- package/library/packages/events/src/cx-load-more.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as n, E as s } from "./
|
|
1
|
+
import { T as n, E as s } from "./lit-element.jLBm65_O.js";
|
|
2
2
|
import { e as T, i as f, t } from "./directive.oAbCiebi.js";
|
|
3
|
-
import { f as l, m as p } from "./directive-helpers.
|
|
3
|
+
import { f as l, m as p } from "./directive-helpers.Dm4rc594.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2020 Google LLC
|
|
@@ -1,39 +1,42 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as l } from "./tabbable.CcMz3mIL.js";
|
|
2
2
|
function* h(t = document.activeElement) {
|
|
3
3
|
t != null && (yield t, "shadowRoot" in t && t.shadowRoot && t.shadowRoot.mode !== "closed" && (yield* h(t.shadowRoot.activeElement)));
|
|
4
4
|
}
|
|
5
5
|
function d() {
|
|
6
6
|
return [...h()].pop();
|
|
7
7
|
}
|
|
8
|
-
let
|
|
9
|
-
|
|
8
|
+
let n = [];
|
|
9
|
+
function f() {
|
|
10
|
+
return [...n];
|
|
11
|
+
}
|
|
12
|
+
class v {
|
|
10
13
|
constructor(e) {
|
|
11
14
|
this.tabDirection = "forward", this.handleFocusIn = () => {
|
|
12
15
|
this.isActive() && this.checkFocus();
|
|
13
|
-
}, this.handleKeyDown = (
|
|
14
|
-
if (
|
|
16
|
+
}, this.handleKeyDown = (o) => {
|
|
17
|
+
if (o.key !== "Tab" || this.isExternalActivated || !this.isActive())
|
|
15
18
|
return;
|
|
16
19
|
const c = d();
|
|
17
20
|
if (this.previousFocus = c, this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus))
|
|
18
21
|
return;
|
|
19
|
-
|
|
20
|
-
const s =
|
|
22
|
+
o.shiftKey ? this.tabDirection = "backward" : this.tabDirection = "forward";
|
|
23
|
+
const s = l(this.element);
|
|
21
24
|
let i = s.findIndex(
|
|
22
|
-
(
|
|
25
|
+
(r) => r === c
|
|
23
26
|
);
|
|
24
27
|
this.previousFocus = this.currentFocus;
|
|
25
28
|
const a = this.tabDirection === "forward" ? 1 : -1;
|
|
26
29
|
for (; ; ) {
|
|
27
30
|
i + a >= s.length ? i = 0 : i + a < 0 ? i = s.length - 1 : i += a, this.previousFocus = this.currentFocus;
|
|
28
|
-
const
|
|
31
|
+
const r = (
|
|
29
32
|
/** @type {HTMLElement} */
|
|
30
33
|
s[i]
|
|
31
34
|
);
|
|
32
|
-
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) ||
|
|
35
|
+
if (this.tabDirection === "backward" && this.previousFocus && this.possiblyHasTabbableChildren(this.previousFocus) || r && this.possiblyHasTabbableChildren(r))
|
|
33
36
|
return;
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
+
o.preventDefault(), this.currentFocus = r, this.currentFocus?.focus({ preventScroll: !1 });
|
|
38
|
+
const u = [...h()];
|
|
39
|
+
if (u.includes(this.currentFocus) || !u.includes(this.previousFocus))
|
|
37
40
|
break;
|
|
38
41
|
}
|
|
39
42
|
setTimeout(() => this.checkFocus());
|
|
@@ -43,15 +46,15 @@ class f {
|
|
|
43
46
|
}
|
|
44
47
|
/** Activates focus trapping. */
|
|
45
48
|
activate() {
|
|
46
|
-
|
|
49
|
+
n.push(this.element), document.addEventListener("focusin", this.handleFocusIn), document.addEventListener("keydown", this.handleKeyDown), document.addEventListener("keyup", this.handleKeyUp);
|
|
47
50
|
}
|
|
48
51
|
/** Deactivates focus trapping. */
|
|
49
52
|
deactivate() {
|
|
50
|
-
|
|
53
|
+
n = n.filter((e) => e !== this.element), this.currentFocus = null, document.removeEventListener("focusin", this.handleFocusIn), document.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("keyup", this.handleKeyUp);
|
|
51
54
|
}
|
|
52
55
|
/** Determines if this modal element is currently active or not. */
|
|
53
56
|
isActive() {
|
|
54
|
-
return
|
|
57
|
+
return n[n.length - 1] === this.element;
|
|
55
58
|
}
|
|
56
59
|
/** Activates external modal behavior and temporarily disables focus trapping. */
|
|
57
60
|
activateExternal() {
|
|
@@ -63,9 +66,9 @@ class f {
|
|
|
63
66
|
}
|
|
64
67
|
checkFocus() {
|
|
65
68
|
if (this.isActive() && !this.isExternalActivated) {
|
|
66
|
-
const e =
|
|
69
|
+
const e = l(this.element);
|
|
67
70
|
if (!this.element.matches(":focus-within")) {
|
|
68
|
-
const
|
|
71
|
+
const o = e[0], c = e[e.length - 1], s = this.tabDirection === "forward" ? o : c;
|
|
69
72
|
typeof s?.focus == "function" && (this.currentFocus = s, s.focus({ preventScroll: !1 }));
|
|
70
73
|
}
|
|
71
74
|
}
|
|
@@ -77,5 +80,8 @@ class f {
|
|
|
77
80
|
}
|
|
78
81
|
}
|
|
79
82
|
export {
|
|
80
|
-
|
|
83
|
+
v as M,
|
|
84
|
+
h as a,
|
|
85
|
+
f as b,
|
|
86
|
+
d as g
|
|
81
87
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { n as s, C as x } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as m } from "./component.styles.DMSLciL5.js";
|
|
3
|
+
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
4
|
+
import { L as g } from "./i18n.DrzK7TPf.js";
|
|
5
|
+
import { w as d } from "./watch.q1sEjPWL.js";
|
|
6
|
+
import { i as b, x as h } from "./lit-element.jLBm65_O.js";
|
|
7
|
+
import { r as f } from "./state.CSDxrqLd.js";
|
|
6
8
|
import { e as _ } from "./query.BBf1UFkC.js";
|
|
7
|
-
import { e as y } from "./class-map.
|
|
9
|
+
import { e as y } from "./class-map.BiVq-cVR.js";
|
|
8
10
|
import { n as u } from "./when.Dr1es41R.js";
|
|
9
11
|
import k from "../components/icon.js";
|
|
10
12
|
import w from "../components/space.js";
|
|
11
|
-
var
|
|
12
|
-
const C =
|
|
13
|
+
var r = /* @__PURE__ */ ((t) => (t.Left = "left", t.Right = "right", t))(r || {});
|
|
14
|
+
const C = b`
|
|
13
15
|
:host {
|
|
14
16
|
display: block;
|
|
15
17
|
user-select: none;
|
|
@@ -147,9 +149,9 @@ var L = Object.defineProperty, E = Object.getOwnPropertyDescriptor, o = (t, a, i
|
|
|
147
149
|
(p = t[c]) && (n = (l ? p(a, i, n) : p(n)) || n);
|
|
148
150
|
return l && n && L(a, i, n), n;
|
|
149
151
|
};
|
|
150
|
-
let e = class extends
|
|
152
|
+
let e = class extends x {
|
|
151
153
|
constructor() {
|
|
152
|
-
super(...arguments), this.localize = new
|
|
154
|
+
super(...arguments), this.localize = new g(this), this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1, this.showCheck = !1, this.checkPlacement = r.Left;
|
|
153
155
|
}
|
|
154
156
|
connectedCallback() {
|
|
155
157
|
super.connectedCallback(), this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
|
|
@@ -208,7 +210,7 @@ let e = class extends v {
|
|
|
208
210
|
@mouseleave=${this.handleMouseLeave}
|
|
209
211
|
>
|
|
210
212
|
${u(
|
|
211
|
-
this.checkPlacement ===
|
|
213
|
+
this.checkPlacement === r.Left,
|
|
212
214
|
() => h`<cx-icon
|
|
213
215
|
part="checked-icon"
|
|
214
216
|
class="option__check"
|
|
@@ -237,7 +239,7 @@ let e = class extends v {
|
|
|
237
239
|
</cx-space>
|
|
238
240
|
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
239
241
|
${u(
|
|
240
|
-
this.checkPlacement ===
|
|
242
|
+
this.checkPlacement === r.Right,
|
|
241
243
|
() => h`<cx-icon
|
|
242
244
|
part="checked-icon"
|
|
243
245
|
class="option__check"
|
|
@@ -250,7 +252,7 @@ let e = class extends v {
|
|
|
250
252
|
`;
|
|
251
253
|
}
|
|
252
254
|
};
|
|
253
|
-
e.styles = [
|
|
255
|
+
e.styles = [m, C];
|
|
254
256
|
e.dependencies = { "cx-icon": k, "cx-space": w };
|
|
255
257
|
o([
|
|
256
258
|
_(".option__label")
|
|
@@ -265,16 +267,16 @@ o([
|
|
|
265
267
|
f()
|
|
266
268
|
], e.prototype, "hasHover", 2);
|
|
267
269
|
o([
|
|
268
|
-
|
|
270
|
+
s({ reflect: !0 })
|
|
269
271
|
], e.prototype, "value", 2);
|
|
270
272
|
o([
|
|
271
|
-
|
|
273
|
+
s({ reflect: !0, type: Boolean })
|
|
272
274
|
], e.prototype, "disabled", 2);
|
|
273
275
|
o([
|
|
274
|
-
|
|
276
|
+
s({ attribute: "show-check", reflect: !0, type: Boolean })
|
|
275
277
|
], e.prototype, "showCheck", 2);
|
|
276
278
|
o([
|
|
277
|
-
|
|
279
|
+
s({ attribute: "check-placement", reflect: !0, type: String })
|
|
278
280
|
], e.prototype, "checkPlacement", 2);
|
|
279
281
|
o([
|
|
280
282
|
d("disabled")
|
|
@@ -286,9 +288,9 @@ o([
|
|
|
286
288
|
d("value")
|
|
287
289
|
], e.prototype, "handleValueChange", 1);
|
|
288
290
|
e = o([
|
|
289
|
-
|
|
291
|
+
v("cx-option")
|
|
290
292
|
], e);
|
|
291
293
|
export {
|
|
292
294
|
e as C,
|
|
293
|
-
|
|
295
|
+
r as a
|
|
294
296
|
};
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as p, C as _ } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
|
+
import { c as b } from "./custom-element.L4WJXn1j.js";
|
|
3
|
+
import { L as C } from "./i18n.DrzK7TPf.js";
|
|
3
4
|
import { c } from "./math.DqTA6ya4.js";
|
|
4
|
-
import { w as d } from "./watch.
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { w as d } from "./watch.q1sEjPWL.js";
|
|
6
|
+
import { i as y, x as s } from "./lit-element.jLBm65_O.js";
|
|
7
|
+
import { r as m } from "./state.CSDxrqLd.js";
|
|
8
|
+
import { e as f } from "./class-map.BiVq-cVR.js";
|
|
9
|
+
import { c as x } from "./repeat.DbF2p5ae.js";
|
|
8
10
|
import { n as h } from "./when.Dr1es41R.js";
|
|
9
|
-
import { C as z } from "./button.
|
|
11
|
+
import { C as z } from "./button.P71VJ5xh.js";
|
|
10
12
|
import v from "../components/icon-button.js";
|
|
11
|
-
import { C as $ } from "./option.
|
|
12
|
-
import
|
|
13
|
+
import { C as $ } from "./option.D1u5-cTt.js";
|
|
14
|
+
import S from "../components/select.js";
|
|
13
15
|
import w from "../components/tooltip.js";
|
|
14
|
-
import { C as I } from "./typography.
|
|
15
|
-
import { c as P } from "./component.styles.
|
|
16
|
+
import { C as I } from "./typography.oDzoLbZS.js";
|
|
17
|
+
import { c as P } from "./component.styles.DMSLciL5.js";
|
|
16
18
|
var l = /* @__PURE__ */ ((t) => (t.Both = "both", t.Pages = "pages", t.Rows = "rows", t))(l || {});
|
|
17
|
-
const B =
|
|
19
|
+
const B = y`
|
|
18
20
|
${P}
|
|
19
21
|
|
|
20
22
|
:host {
|
|
@@ -64,9 +66,9 @@ var O = Object.defineProperty, F = Object.getOwnPropertyDescriptor, i = (t, a, o
|
|
|
64
66
|
(u = t[g]) && (n = (r ? u(a, o, n) : u(n)) || n);
|
|
65
67
|
return r && n && O(a, o, n), n;
|
|
66
68
|
};
|
|
67
|
-
let e = class extends
|
|
69
|
+
let e = class extends _ {
|
|
68
70
|
constructor() {
|
|
69
|
-
super(...arguments), this.localize = new
|
|
71
|
+
super(...arguments), this.localize = new C(this), this.count = 0, this.pageSizeOptions = [10, 20, 50, 100], this.pageSize = this.pageSizeOptions[0], this.label = this.localize.term("rowsPerPage"), this.showFirst = !1, this.showLast = !1, this.showPaginationButtons = !1, this.paginationButtonCount = 5, this.paginationCounter = l.Rows, this._pageIndex = 1, this._pageCount = Math.max(1, Math.ceil(this.count / this.pageSize));
|
|
70
72
|
}
|
|
71
73
|
get pageIndex() {
|
|
72
74
|
return this._pageIndex;
|
|
@@ -331,7 +333,7 @@ i([
|
|
|
331
333
|
d(["pageSize"])
|
|
332
334
|
], e.prototype, "handlePageSizeChange", 1);
|
|
333
335
|
e = i([
|
|
334
|
-
|
|
336
|
+
b("cx-pagination")
|
|
335
337
|
], e);
|
|
336
338
|
export {
|
|
337
339
|
e as C,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as l } from "./
|
|
2
|
-
import { f as $ } from "./directive-helpers.
|
|
1
|
+
import { E as l } from "./lit-element.jLBm65_O.js";
|
|
2
|
+
import { f as $ } from "./directive-helpers.Dm4rc594.js";
|
|
3
3
|
import { i as f, t as a, e as _ } from "./directive.oAbCiebi.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as A } from "./
|
|
1
|
+
import { T as A } from "./lit-element.jLBm65_O.js";
|
|
2
2
|
import { e as M, i as b, t as j } from "./directive.oAbCiebi.js";
|
|
3
|
-
import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers.
|
|
3
|
+
import { p as C, v as h, s as v, M as x, m as D } from "./directive-helpers.Dm4rc594.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2017 Google LLC
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { D as i } from "./content-builder.Bf7kqzDI.js";
|
|
2
|
+
function s(r, t = [350, 696, 1024]) {
|
|
3
|
+
const o = getComputedStyle(r), e = [
|
|
4
|
+
Number.parseFloat(o.getPropertyValue("--breakpoint-mobile").trim()),
|
|
5
|
+
Number.parseFloat(o.getPropertyValue("--breakpoint-tablet").trim()),
|
|
6
|
+
1 / 0
|
|
7
|
+
];
|
|
8
|
+
return Number.isNaN(e[0]) ? e[0] = t[0] : e[0]++, Number.isNaN(e[1]) ? e[1] = t[1] : e[1]++, e;
|
|
9
|
+
}
|
|
10
|
+
function a(r) {
|
|
11
|
+
const t = window.innerWidth;
|
|
12
|
+
return t > r[1] ? i.Desktop : t > r[0] && t <= r[1] ? i.Tablet : i.Mobile;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
a,
|
|
16
|
+
s as g
|
|
17
|
+
};
|
|
@@ -37,7 +37,7 @@ function h(o) {
|
|
|
37
37
|
function y(o) {
|
|
38
38
|
n.delete(o), n.size === 0 && (document.documentElement.classList.remove("cx-scroll-lock"), document.documentElement.style.removeProperty("--cx-scroll-lock-size"));
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function a(o, t, l = "vertical", e = "smooth") {
|
|
41
41
|
const d = m(o, t), c = d.top + t.scrollTop, s = d.left + t.scrollLeft, i = t.scrollLeft, f = t.scrollLeft + t.offsetWidth, u = t.scrollTop, r = t.scrollTop + t.offsetHeight;
|
|
42
42
|
(l === "horizontal" || l === "both") && (s < i ? t.scrollTo({ behavior: e, left: s }) : s + o.clientWidth > f && t.scrollTo({
|
|
43
43
|
behavior: e,
|
|
@@ -48,7 +48,8 @@ function x(o, t, l = "vertical", e = "smooth") {
|
|
|
48
48
|
}));
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
|
+
m as g,
|
|
51
52
|
h as l,
|
|
52
|
-
|
|
53
|
+
a as s,
|
|
53
54
|
y as u
|
|
54
55
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
class
|
|
1
|
+
class a {
|
|
2
2
|
constructor(t, ...e) {
|
|
3
3
|
this.slotNames = [], this.handleSlotChange = (s) => {
|
|
4
|
-
const
|
|
5
|
-
(this.slotNames.includes("[default]") && !
|
|
4
|
+
const n = s.target;
|
|
5
|
+
(this.slotNames.includes("[default]") && !n.name || n.name && this.slotNames.includes(n.name)) && this.host.requestUpdate();
|
|
6
6
|
}, (this.host = t).addController(this), this.slotNames = e;
|
|
7
7
|
}
|
|
8
8
|
hasDefaultSlot() {
|
|
@@ -35,6 +35,13 @@ class n {
|
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
function r(o) {
|
|
39
|
+
const t = o.assignedNodes({ flatten: !0 });
|
|
40
|
+
let e = "";
|
|
41
|
+
return [...t].forEach((s) => {
|
|
42
|
+
s.nodeType === Node.ELEMENT_NODE && (e += s.outerHTML), s.nodeType === Node.TEXT_NODE && (e += s.textContent);
|
|
43
|
+
}), e;
|
|
44
|
+
}
|
|
38
45
|
function h(o) {
|
|
39
46
|
if (!o)
|
|
40
47
|
return "";
|
|
@@ -45,6 +52,7 @@ function h(o) {
|
|
|
45
52
|
}), e;
|
|
46
53
|
}
|
|
47
54
|
export {
|
|
48
|
-
|
|
55
|
+
a as H,
|
|
56
|
+
r as a,
|
|
49
57
|
h as g
|
|
50
58
|
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { p as m } from "./purify.es.BGaRrCfO.js";
|
|
2
|
+
var d = /* @__PURE__ */ ((t) => (t.Asset = "asset", t.Folder = "folder", t.Link = "link", t.Page = "page", t.Space = "space", t))(d || {}), S = /* @__PURE__ */ ((t) => (t.Default = "default", t.Overlay = "overlay", t))(S || {}), g = /* @__PURE__ */ ((t) => (t.Always = "always", t.OnHover = "on-hover", t))(g || {}), A = /* @__PURE__ */ ((t) => (t.Track = "track", t.Transition = "transition", t))(A || {}), l = /* @__PURE__ */ ((t) => (t.Frames = "Frames", t.SMPTE = "SMPTE", t.Standard = "Standard", t))(l || {});
|
|
3
|
+
const P = 50;
|
|
4
|
+
function C(t) {
|
|
5
|
+
return t.replaceAll(/[\s_]+/g, "-").replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/([A-Z])([A-Z])/g, "$1-$2").replaceAll(/([a-z])([0-9])/g, "$1-$2").replaceAll(/([A-Z])([0-9])/g, "$1-$2").replaceAll(/([0-9])([a-z])/g, "$1-$2").replaceAll(/([0-9])([A-Z])/g, "$1-$2").toLowerCase().replaceAll(/^-+|-+$/g, "");
|
|
6
|
+
}
|
|
7
|
+
function E(t) {
|
|
8
|
+
return t.replaceAll(/[-_]+/g, " ").split(" ").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join("");
|
|
9
|
+
}
|
|
10
|
+
function w(t) {
|
|
11
|
+
return t.trim().replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([^0-9])([0-9])/g, "$1 $2").replaceAll(/([0-9])([a-z])/g, "$1 $2").replaceAll(/([0-9])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z])/g, "$1 $2").replaceAll(/[^A-Za-z0-9]/g, " ").split(" ").filter((e) => e).reduce((e, r, n) => `${e}${n ? $(r.toLowerCase()) : r.toLowerCase()}`, "");
|
|
12
|
+
}
|
|
13
|
+
function I(t) {
|
|
14
|
+
return t.replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").trim();
|
|
15
|
+
}
|
|
16
|
+
function $(t) {
|
|
17
|
+
if (typeof t != "string")
|
|
18
|
+
return null;
|
|
19
|
+
const e = t.trim(), r = e.charAt(0).toUpperCase(), n = e.slice(1);
|
|
20
|
+
return `${r}${n}`;
|
|
21
|
+
}
|
|
22
|
+
const x = (t, e, r, n) => t && t.length > e ? t.substring(0, r) + " ... " + t.substring(t.length - n, t.length) : t, L = (t) => t ? t.replaceAll(/([a-z0-9])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-zA-Z])([0-9])/g, "$1 $2").replaceAll(/([0-9])([a-zA-Z])/g, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase() : "";
|
|
23
|
+
function k(t, e = {}) {
|
|
24
|
+
const {
|
|
25
|
+
frameRate: r = 24,
|
|
26
|
+
mode: n = l.Standard,
|
|
27
|
+
showHours: s = !1,
|
|
28
|
+
showMilliseconds: o = !1
|
|
29
|
+
} = e, i = Number.isFinite(r) && r > 0 ? r : 24;
|
|
30
|
+
if (typeof t != "number" || Number.isNaN(t) || t < 0)
|
|
31
|
+
switch (n) {
|
|
32
|
+
case l.Frames:
|
|
33
|
+
return "0";
|
|
34
|
+
case l.SMPTE:
|
|
35
|
+
return "00:00:00:00";
|
|
36
|
+
case l.Standard:
|
|
37
|
+
return s ? "00:00:00" : "00:00";
|
|
38
|
+
default:
|
|
39
|
+
return "00:00";
|
|
40
|
+
}
|
|
41
|
+
switch (n) {
|
|
42
|
+
case l.SMPTE:
|
|
43
|
+
return b(t, i);
|
|
44
|
+
case l.Frames:
|
|
45
|
+
return N(t, i);
|
|
46
|
+
case l.Standard:
|
|
47
|
+
default:
|
|
48
|
+
return M(t, o, s);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function h(t) {
|
|
52
|
+
return Math.abs(t - 29.97) < 0.01 || Math.abs(t - 59.94) < 0.01;
|
|
53
|
+
}
|
|
54
|
+
function b(t, e) {
|
|
55
|
+
const r = Math.floor(t), n = t - r, s = Math.floor(n * e), o = Math.floor(r / 3600), i = Math.floor(r % 3600 / 60), c = r % 60, a = h(e) ? ";" : ":";
|
|
56
|
+
return o.toString().padStart(2, "0") + ":" + i.toString().padStart(2, "0") + ":" + c.toString().padStart(2, "0") + a + s.toString().padStart(2, "0");
|
|
57
|
+
}
|
|
58
|
+
function N(t, e) {
|
|
59
|
+
const r = t * e;
|
|
60
|
+
return Math.floor(r + 1e-9).toString();
|
|
61
|
+
}
|
|
62
|
+
function M(t, e, r) {
|
|
63
|
+
const n = Math.round(t * 100) / 100, s = Math.floor(n / 3600), o = Math.floor(n % 3600 / 60), i = Math.floor(n % 60), c = Math.round(n % 1 * 100), a = [];
|
|
64
|
+
return (r || s > 0) && a.push(s.toString().padStart(2, "0")), a.push(o.toString().padStart(2, "0")), e && c > 0 ? a.push(
|
|
65
|
+
`${i.toString().padStart(2, "0")}.${c.toString().padStart(2, "0")}`
|
|
66
|
+
) : a.push(i.toString().padStart(2, "0")), a.join(":");
|
|
67
|
+
}
|
|
68
|
+
function v(t) {
|
|
69
|
+
return t.endsWith("/") ? t : `${t}/`;
|
|
70
|
+
}
|
|
71
|
+
function H(t, e = {}) {
|
|
72
|
+
const { frameRate: r = 24, mode: n = l.Standard } = e, s = Number.isFinite(r) && r > 0 ? r : 24;
|
|
73
|
+
if (!t || typeof t != "string")
|
|
74
|
+
return 0;
|
|
75
|
+
const o = t.trim();
|
|
76
|
+
if (o === "")
|
|
77
|
+
return 0;
|
|
78
|
+
switch (n) {
|
|
79
|
+
case l.SMPTE:
|
|
80
|
+
return F(o, s);
|
|
81
|
+
case l.Frames:
|
|
82
|
+
return T(o, s);
|
|
83
|
+
case l.Standard:
|
|
84
|
+
default:
|
|
85
|
+
return Z(o);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function F(t, e) {
|
|
89
|
+
const r = /^(\d{1,2}):(\d{1,2}):(\d{1,2})[:;](\d{1,2})$/, n = t.match(r);
|
|
90
|
+
if (!n)
|
|
91
|
+
return 0;
|
|
92
|
+
const [, s, o, i, c] = n, a = Number.parseInt(s, 10), u = Number.parseInt(o, 10), f = Number.parseInt(i, 10), p = Number.parseInt(c, 10);
|
|
93
|
+
return a < 0 || a > 23 || u < 0 || u > 59 || f < 0 || f > 59 || p < 0 || p >= e ? 0 : a * 3600 + u * 60 + f + p / e;
|
|
94
|
+
}
|
|
95
|
+
function T(t, e) {
|
|
96
|
+
const r = Number.parseInt(t, 10);
|
|
97
|
+
return Number.isNaN(r) || r < 0 ? 0 : r / e;
|
|
98
|
+
}
|
|
99
|
+
function Z(t) {
|
|
100
|
+
const e = /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?(?:\.(\d{1,2}))?$/, r = t.match(e);
|
|
101
|
+
if (!r)
|
|
102
|
+
return 0;
|
|
103
|
+
const [, n, s, o, i] = r;
|
|
104
|
+
let c = 0, a = 0, u = 0, f = 0;
|
|
105
|
+
if (o !== void 0 ? (c = Number.parseInt(n, 10), a = Number.parseInt(s, 10), u = Number.parseInt(o, 10)) : (a = Number.parseInt(n, 10), u = Number.parseInt(s, 10)), i !== void 0 && (f = Number.parseInt(i, 10)), c < 0 || a < 0 || u < 0 || f < 0)
|
|
106
|
+
return 0;
|
|
107
|
+
if (o !== void 0) {
|
|
108
|
+
if (a > 59 || u > 59)
|
|
109
|
+
return 0;
|
|
110
|
+
} else if (u > 59)
|
|
111
|
+
return 0;
|
|
112
|
+
return f > 99 ? 0 : c * 3600 + a * 60 + u + f / 100;
|
|
113
|
+
}
|
|
114
|
+
function O(t) {
|
|
115
|
+
if (typeof t != "string" || t.length === 0)
|
|
116
|
+
return null;
|
|
117
|
+
const e = t.split(/[?#]/)[0], r = (e.split("/").pop() ?? e).trim(), n = r.lastIndexOf(".");
|
|
118
|
+
return n <= 0 ? null : r.slice(n).toLowerCase();
|
|
119
|
+
}
|
|
120
|
+
function _(t) {
|
|
121
|
+
return m.sanitize(t, {
|
|
122
|
+
CUSTOM_ELEMENT_HANDLING: {
|
|
123
|
+
allowCustomizedBuiltInElements: !0,
|
|
124
|
+
attributeNameCheck: /^(?!on)[a-z][a-z0-9-]*$/i,
|
|
125
|
+
tagNameCheck: /^cx-/
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function j(t) {
|
|
130
|
+
return typeof t == "string" ? t.replaceAll(" ", " ") : t == null ? "" : String(t);
|
|
131
|
+
}
|
|
132
|
+
function D(t) {
|
|
133
|
+
return t == null || t === "" ? " " : String(t);
|
|
134
|
+
}
|
|
135
|
+
function y(t) {
|
|
136
|
+
return typeof t != "string" ? !1 : Object.values(d).includes(t);
|
|
137
|
+
}
|
|
138
|
+
export {
|
|
139
|
+
P as F,
|
|
140
|
+
S as G,
|
|
141
|
+
A as M,
|
|
142
|
+
l as T,
|
|
143
|
+
D as a,
|
|
144
|
+
j as b,
|
|
145
|
+
g as c,
|
|
146
|
+
d,
|
|
147
|
+
O as e,
|
|
148
|
+
k as f,
|
|
149
|
+
L as g,
|
|
150
|
+
H as h,
|
|
151
|
+
y as i,
|
|
152
|
+
C as j,
|
|
153
|
+
E as k,
|
|
154
|
+
w as l,
|
|
155
|
+
I as m,
|
|
156
|
+
v as p,
|
|
157
|
+
_ as s,
|
|
158
|
+
x as t,
|
|
159
|
+
$ as u
|
|
160
|
+
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import In from "../components/resize-observer.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { n as wt, C as Fn } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import { c as Ln } from "./component.styles.DMSLciL5.js";
|
|
4
|
+
import { c as $n } from "./custom-element.L4WJXn1j.js";
|
|
5
|
+
import { L as Nn } from "./i18n.DrzK7TPf.js";
|
|
6
|
+
import { s as Zi } from "./scroll.xtO5yojm.js";
|
|
7
|
+
import { w as ft } from "./watch.q1sEjPWL.js";
|
|
8
|
+
import { i as Bn } from "./dom.CZrJ64Dm.js";
|
|
9
|
+
import { s as Wn } from "./parse.Cu5nBDTb.js";
|
|
10
|
+
import { i as Vn, x as $t } from "./lit-element.jLBm65_O.js";
|
|
11
|
+
import { r as at } from "./state.CSDxrqLd.js";
|
|
10
12
|
import { t as Un } from "./event-options.CYHYGOd8.js";
|
|
11
13
|
import { e as It } from "./query.BBf1UFkC.js";
|
|
12
14
|
import { r as Hn } from "./query-all.i3PyvTUQ.js";
|
|
13
|
-
import { e as Nt } from "./class-map.
|
|
14
|
-
import { i as Ji } from "./guard.
|
|
15
|
+
import { e as Nt } from "./class-map.BiVq-cVR.js";
|
|
16
|
+
import { i as Ji } from "./guard.D4axKaMo.js";
|
|
15
17
|
import { o as tr } from "./map.D8heArFD.js";
|
|
16
|
-
import { o as Ue } from "./style-map.
|
|
18
|
+
import { o as Ue } from "./style-map.llVFPd__.js";
|
|
17
19
|
import { n as Pe } from "./when.Dr1es41R.js";
|
|
18
|
-
import { C as Yn } from "./button.
|
|
20
|
+
import { C as Yn } from "./button.P71VJ5xh.js";
|
|
19
21
|
import Xn from "../components/dropdown.js";
|
|
20
22
|
import qn from "../components/icon-button.js";
|
|
21
23
|
import Gn from "../components/menu.js";
|
|
@@ -2319,7 +2321,7 @@ Ft.create("cubic", "0.65, 0, 0.35, 1");
|
|
|
2319
2321
|
Ft.create("expo", "0.87, 0, 0.13, 1");
|
|
2320
2322
|
Ft.create("quad", "0.45, 0, 0.55, 1");
|
|
2321
2323
|
Ft.create("linear", "0.42, 0, 0.58, 1");
|
|
2322
|
-
const Co =
|
|
2324
|
+
const Co = Vn`
|
|
2323
2325
|
:host {
|
|
2324
2326
|
--indicator-color: var(--cx-color-primary);
|
|
2325
2327
|
--indicator-width: 2px;
|
|
@@ -2752,9 +2754,9 @@ var ko = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, k = (o, t,
|
|
|
2752
2754
|
(s = o[n]) && (r = (i ? s(t, e, r) : s(r)) || r);
|
|
2753
2755
|
return i && r && ko(t, e, r), r;
|
|
2754
2756
|
};
|
|
2755
|
-
let A = class extends
|
|
2757
|
+
let A = class extends Fn {
|
|
2756
2758
|
constructor() {
|
|
2757
|
-
super(...arguments), this.localize = new
|
|
2759
|
+
super(...arguments), this.localize = new Nn(this), this.tabs = [], this.focusableTabs = [], this.panels = [], this.hasScrollControls = !1, this.shouldHideScrollStartButton = !1, this.shouldHideScrollEndButton = !1, this.dropdownOffset = 0, this.tabPanelHeight = 0, this.tabAlignmentIndent = 0, this.shouldIgnoreAlignment = !1, this.shouldShowDropdown = !1, this.isActiveTabHidden = !1, this.paginationCount = 0, this.activePaginationIndex = 0, this.tabWidth = 0, this.clampedTabsPerPage = 0, this.placement = bi.Top, this.activation = wr.Auto, this.noScrollControls = !1, this.fixedScrollControls = !1, this.useMaxPanelHeight = !1, this.variant = ue.Default, this.overflowVariant = Tt.Scroll, this.hidePanelVariant = Wt.DisplayNone, this.tabAlignment = Ke.Start, this.dropdownLabel = "", this.tabsPerPage = 0, this.minTabWidth = 120, this.scrollOffset = 1;
|
|
2758
2760
|
}
|
|
2759
2761
|
connectedCallback() {
|
|
2760
2762
|
const o = Promise.all([
|
|
@@ -2960,7 +2962,7 @@ let A = class extends Ln {
|
|
|
2960
2962
|
for (const i of this.panels)
|
|
2961
2963
|
i.active = i.name === this.activeTab?.panel, this.hidePanelVariant === Wt.Absolute && (i.inert = i.name !== this.activeTab?.panel);
|
|
2962
2964
|
if (this.syncIndicator(), this.calculateTabPanelHeight(), !this.activeTab?.hasAttribute("data-hidden") && ["top", "bottom"].includes(this.placement)) {
|
|
2963
|
-
if (
|
|
2965
|
+
if (Bn(this.nav, this.activeTab, 10) || !t.paginate)
|
|
2964
2966
|
Zi(
|
|
2965
2967
|
this.activeTab,
|
|
2966
2968
|
this.nav,
|
|
@@ -3082,7 +3084,7 @@ let A = class extends Ln {
|
|
|
3082
3084
|
this.paginationCount = Math.ceil(this.tabButtons.scrollWidth / t);
|
|
3083
3085
|
let e = Math.round(o / t);
|
|
3084
3086
|
if (Math.ceil(o + t) >= Math.round(this.tabButtons.scrollWidth) && e < this.paginationCount - 1 && (e = this.paginationCount - 1), this.activePaginationIndex = e, this.tabsPerPage > 0) {
|
|
3085
|
-
const i = getComputedStyle(this.tabButtons).getPropertyValue("--tab-padding"), [, r, , n] =
|
|
3087
|
+
const i = getComputedStyle(this.tabButtons).getPropertyValue("--tab-padding"), [, r, , n] = Wn(i), s = t / this.tabsPerPage, a = this.minTabWidth + Number.parseFloat(r) + Number.parseFloat(n);
|
|
3086
3088
|
s < a ? (this.tabWidth = a, this.clampedTabsPerPage = Math.max(
|
|
3087
3089
|
1,
|
|
3088
3090
|
Math.floor(t / this.tabWidth)
|
|
@@ -3437,7 +3439,7 @@ let A = class extends Ln {
|
|
|
3437
3439
|
`;
|
|
3438
3440
|
}
|
|
3439
3441
|
};
|
|
3440
|
-
A.styles = [
|
|
3442
|
+
A.styles = [Ln, Co];
|
|
3441
3443
|
A.dependencies = {
|
|
3442
3444
|
"cx-button": Yn,
|
|
3443
3445
|
"cx-dropdown": Xn,
|