@orangelogic/design-system 2.48.0 → 2.49.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/{amazon_s3.BB3xCgkt.js → amazon_s3.DeaMdPPn.js} +1 -1
- package/library/chunks/{animation.DPqSuC7g.js → animation.B7d72NVK.js} +2 -2
- package/library/chunks/{button.DQ1SyxmK.js → button.DCaz7tVb.js} +39 -33
- package/library/chunks/{button.styles.CRh5_Ev4.js → button.styles.C8AIO8fd.js} +1 -1
- package/library/chunks/{chatbot.D37AAQvv.js → chatbot.sm4Rph1v.js} +2 -2
- package/library/chunks/{class-map.DqNfBvJI.js → class-map.CoZTSvbM.js} +1 -1
- package/library/chunks/{color-swatch-group.DN7t4a6b.js → color-swatch-group.18TICCVX.js} +16 -13
- package/library/chunks/{color-swatch.CyN0Rfwc.js → color-swatch.BVFmLzfK.js} +9 -9
- package/library/chunks/{component.styles.DtouHn2g.js → component.styles.CI-v8BZa.js} +1 -1
- package/library/chunks/{confirm-popover.CFrckJqd.js → confirm-popover.BvRVjl2b.js} +6 -6
- package/library/chunks/{cropper.CfSeVI5y.js → cropper.aA0v16xS.js} +3 -3
- package/library/chunks/{custom-element.fmLrnDZr.js → custom-element.vnXBMQxc.js} +17 -11
- package/library/chunks/{default-value.BrNrMtnz.js → default-value.CIKAvD5l.js} +1 -1
- package/library/chunks/{dialog.B1-k8d10.js → dialog.Cj9XqgFc.js} +26 -23
- package/library/chunks/{directive-helpers.D78ZFDYN.js → directive-helpers.DBHob-_L.js} +1 -1
- package/library/chunks/{dom.DDszM5Cy.js → dom.CaZCTJCL.js} +1 -1
- package/library/chunks/{dot-pagination.Ci2f-RDI.js → dot-pagination.Bl8K-G8Q.js} +5 -5
- package/library/chunks/{file-on-demand.DKBPqNSf.js → file-on-demand.BQR4rKDc.js} +15 -15
- package/library/chunks/{folder-select.BY9NfYq8.js → folder-select.ez3fKPUF.js} +10 -10
- package/library/chunks/{form-control.styles.j0hNjZTU.js → form-control.styles.NE2Q-quE.js} +1 -1
- package/library/chunks/{form.BY8-x3IU.js → form.DycFDdkp.js} +1 -1
- package/library/chunks/{guard.L-Ctqt3S.js → guard.BDP4A85K.js} +1 -1
- package/library/chunks/{header.55H9vN7t.js → header.BZiLoNKd.js} +8 -8
- package/library/chunks/{hub-connection.BiLljnv2.js → hub-connection.CxfaT11o.js} +2 -2
- package/library/chunks/{if-defined.CKupVaWs.js → if-defined.MfEgpxEN.js} +1 -1
- package/library/chunks/{iframe.BYMxR3Sc.js → iframe.BULqQVyL.js} +4 -4
- package/library/chunks/{image.qBD2O7kA.js → image.CRz6QPaa.js} +42 -39
- package/library/chunks/{list-editor.BT8jyXOn.js → list-editor.c__KOqBj.js} +11 -11
- package/library/chunks/{live.DCdtYl87.js → live.LdB9xEhp.js} +2 -2
- package/library/chunks/{mailchimp.ZMIYWF8f.js → mailchimp.BjbPJfd-.js} +1 -1
- package/library/chunks/{option.DrGgLWa5.js → option.Bx0TQ3Aw.js} +4 -4
- package/library/chunks/{orangelogic.B9VE3Ocx.js → orangelogic.BgbQXkBv.js} +1 -1
- package/library/chunks/{overlayscrollbars.BhATcEys.js → overlayscrollbars.aFuRG5Rs.js} +1 -1
- package/library/chunks/{popup.dmeEbJcf.js → popup.DjWAljHx.js} +99 -99
- package/library/chunks/{ref.BDmlFGTP.js → ref.BaCjlzLO.js} +2 -2
- package/library/chunks/{repeat.B1pVpmRx.js → repeat.CauKaXyy.js} +2 -2
- package/library/chunks/{select.Bc4UXmFy.js → select.kCK7Ljie.js} +11 -11
- package/library/chunks/{state.Dt9F_SuS.js → state.Cw55xXlb.js} +1 -1
- package/library/chunks/{static.kLXgh3Gq.js → static.BjNkqt7_.js} +1 -1
- package/library/chunks/{style-map.lEJHEwk3.js → style-map.CZovMmo_.js} +1 -1
- package/library/chunks/{tab-group.BHNXl1XO.js → tab-group.D5JZyPZM.js} +8 -8
- package/library/chunks/{table.CNDxXSQ-.js → table.D_DSVLyS.js} +11 -11
- package/library/chunks/{timecode.DYwU2oVN.js → timecode.D4_FNCCI.js} +4 -4
- package/library/chunks/{tree.CwqbM4ad.js → tree.DmH2Ckn-.js} +22 -21
- package/library/chunks/{typography.trna8y2b.js → typography.BFpl0WMA.js} +2 -2
- package/library/chunks/{unsafe-html.BpqikVtf.js → unsafe-html.DyO9_Rsq.js} +1 -1
- package/library/components/alert.js +4 -4
- package/library/components/animated-image.js +3 -3
- package/library/components/animation.js +3 -3
- package/library/components/asset-link-format.js +89 -80
- package/library/components/atoms.js +18 -18
- package/library/components/avatar.js +4 -4
- package/library/components/badge.js +3 -3
- package/library/components/bicolor-picker.js +3 -3
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb-item.js +5 -5
- package/library/components/breadcrumb.js +2 -2
- package/library/components/button-group.js +3 -3
- package/library/components/button.js +9 -9
- package/library/components/card.js +3 -3
- package/library/components/checkbox.js +9 -9
- package/library/components/color-picker.js +10 -10
- package/library/components/color-swatch-group.js +13 -13
- package/library/components/color-swatch.js +10 -10
- package/library/components/confirm-popover.js +7 -7
- package/library/components/copy-button.js +4 -4
- package/library/components/corner-position-input-group.js +4 -4
- package/library/components/cropper.js +4 -4
- package/library/components/details.js +7 -4
- package/library/components/dialog.js +9 -9
- package/library/components/divider.js +2 -2
- package/library/components/dot-pagination.js +6 -6
- package/library/components/dot-status.js +3 -3
- package/library/components/drawer.js +11 -11
- package/library/components/dropdown.js +7 -10
- package/library/components/dynamic-select.js +7 -7
- package/library/components/element-clamp.js +5 -5
- package/library/components/file-on-demand.js +15 -15
- package/library/components/folder-select.js +6 -6
- 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 +3 -3
- package/library/components/grid-item.js +3 -3
- package/library/components/grid.js +4 -4
- package/library/components/header.js +6 -6
- package/library/components/hub-connection.js +3 -3
- package/library/components/icon-button.js +15 -12
- package/library/components/icon.js +8 -8
- package/library/components/iframe.js +5 -5
- package/library/components/image-comparer.js +4 -4
- package/library/components/image.js +8 -8
- package/library/components/include.js +2 -2
- package/library/components/input-group.js +3 -3
- package/library/components/input.js +25 -25
- package/library/components/line-clamp.js +5 -5
- package/library/components/list-editor.js +11 -11
- package/library/components/markdown.js +3 -3
- package/library/components/masonry.js +43 -43
- package/library/components/menu-item.js +10 -8
- package/library/components/menu-label.js +2 -2
- package/library/components/menu-section.js +2 -2
- package/library/components/menu.js +3 -3
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -2
- package/library/components/option.js +5 -5
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +3 -3
- package/library/components/pagination.js +9 -9
- package/library/components/popup.js +4 -4
- package/library/components/position-picker.js +2 -2
- package/library/components/progress-bar.js +5 -5
- package/library/components/progress-ring.js +3 -3
- package/library/components/qr-code.js +3 -3
- package/library/components/radio-button.js +7 -7
- package/library/components/radio-card.js +4 -4
- package/library/components/radio-group.js +8 -8
- package/library/components/radio.js +4 -4
- package/library/components/range.js +13 -13
- package/library/components/rating.js +7 -7
- package/library/components/relative-time.js +2 -2
- package/library/components/resize-observer.js +2 -2
- package/library/components/select.js +12 -12
- package/library/components/shadow-input-group.js +3 -3
- package/library/components/share-option-list.js +17 -17
- package/library/components/sidebar.js +4 -4
- package/library/components/size-input-group.js +5 -5
- package/library/components/skeleton.js +3 -3
- package/library/components/space.js +2 -2
- package/library/components/spinner.js +2 -2
- package/library/components/split-panel.js +19 -16
- package/library/components/step.js +4 -4
- package/library/components/stepper-wizard.js +4 -4
- package/library/components/stepper.js +4 -4
- package/library/components/switch.js +9 -9
- package/library/components/tab-group.js +9 -9
- package/library/components/tab-panel.js +3 -3
- package/library/components/tab.js +3 -3
- package/library/components/table.js +6 -6
- package/library/components/tag.js +3 -3
- package/library/components/textarea.js +9 -9
- package/library/components/timecode.js +5 -5
- package/library/components/tooltip.js +25 -22
- package/library/components/tree-item.js +7 -7
- package/library/components/tree.js +4 -4
- package/library/components/typeface.js +5 -5
- package/library/components/types.js +2900 -2890
- package/library/components/typography.js +3 -3
- package/library/components/video.js +8 -5
- package/library/components/visually-hidden.js +2 -2
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/button/button.d.ts +4 -0
- package/library/packages/atoms/src/components/details/details.d.ts +1 -0
- package/library/packages/atoms/src/components/dialog/dialog.d.ts +1 -0
- package/library/packages/atoms/src/components/drawer/drawer.d.ts +1 -1
- package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +1 -2
- package/library/packages/atoms/src/components/header/header.d.ts +1 -1
- package/library/packages/atoms/src/components/icon-button/icon-button.d.ts +3 -1
- package/library/packages/atoms/src/components/image/image.d.ts +1 -0
- package/library/packages/atoms/src/components/input/input.d.ts +1 -1
- package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +1 -1
- package/library/packages/atoms/src/components/popup/popup.d.ts +1 -1
- package/library/packages/atoms/src/components/split-panel/split-panel.d.ts +1 -0
- package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +1 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +1 -1
- package/library/packages/atoms/src/components/video/video.d.ts +1 -0
- package/library/packages/base/src/cortex-element.d.ts +2 -0
- package/library/packages/molecules/src/3d-viewer/3d-viewer.d.ts +1 -5
- package/library/packages/molecules/src/3d-viewer/components/3d-viewer-config/3d-viewer-config.d.ts +1 -1
- package/library/packages/molecules/src/masonry/masonry.d.ts +1 -1
- package/library/packages/molecules/src/page-outline/page-outline.d.ts +1 -1
- package/library/packages/molecules/src/search-box/search-box.d.ts +1 -0
- package/library/packages/molecules/src/share-option-list/share-option-list.d.ts +2 -2
- package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +1 -1
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +1 -1
- package/library/packages/organisms/src/carousel/carousel.d.ts +2 -1
- package/library/packages/organisms/src/cluster-management/cluster-management.d.ts +1 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -0
- package/library/packages/organisms/src/comment/components/comment-menu/comment-menu.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-image-viewer/rte-image-viewer.d.ts +1 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-timeline/video-editor-timeline.d.ts +1 -0
- package/library/packages/organisms/src/video-editor/components/video-editor-track/video-editor-track.d.ts +1 -1
- package/library/packages/organisms/src/video-editor/components/video-editor-tracks/video-editor-tracks.d.ts +1 -1
- package/library/packages/organisms/src/video-editor/video-editor.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as Be, i as Ut, r as Ie, x as j, n as v, C as Me, c as He } from "./custom-element.
|
|
2
|
-
import { r as We } from "./state.
|
|
1
|
+
import { a as Be, i as Ut, r as Ie, x as j, n as v, C as Me, c as He } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { r as We } from "./state.Cw55xXlb.js";
|
|
3
3
|
import { e as ut } from "./query.BBf1UFkC.js";
|
|
4
4
|
import { e as qe } from "./base.D76d76ww.js";
|
|
5
|
-
import { o as
|
|
6
|
-
import { o as ne } from "./style-map.
|
|
7
|
-
import { i as
|
|
8
|
-
import { c as be } from "./component.styles.
|
|
5
|
+
import { o as Lt } from "./if-defined.MfEgpxEN.js";
|
|
6
|
+
import { o as ne } from "./style-map.CZovMmo_.js";
|
|
7
|
+
import { i as mt, p as re, f as Ve, a as Ue } from "./browser.Va59Ix3P.js";
|
|
8
|
+
import { c as be } from "./component.styles.CI-v8BZa.js";
|
|
9
9
|
import { L as je } from "./i18n.CXUGdxzx.js";
|
|
10
|
-
import { e as Dt } from "./class-map.
|
|
10
|
+
import { e as Dt } from "./class-map.CoZTSvbM.js";
|
|
11
11
|
import { n as Ye } from "./when.Dr1es41R.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license
|
|
@@ -200,7 +200,7 @@ class pi {
|
|
|
200
200
|
this.cooldownTimeout && window.clearTimeout(this.cooldownTimeout), delete this.cooldownTimeout;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
const
|
|
203
|
+
const wt = new pi(), it = () => {
|
|
204
204
|
}, Gt = (e, t, o) => {
|
|
205
205
|
const i = new AbortController(), s = /* @__PURE__ */ new Map(), r = () => {
|
|
206
206
|
i.abort(), o();
|
|
@@ -447,7 +447,7 @@ class $ extends Event {
|
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Ct {
|
|
451
451
|
constructor(t, o) {
|
|
452
452
|
this.x = 0, this.y = 0, this.x = t, this.y = o;
|
|
453
453
|
}
|
|
@@ -510,7 +510,7 @@ function fi(e) {
|
|
|
510
510
|
if (!this.isConnected || i !== this.open)
|
|
511
511
|
return;
|
|
512
512
|
const h = async () => {
|
|
513
|
-
const d = this.triggerElement instanceof
|
|
513
|
+
const d = this.triggerElement instanceof Ct;
|
|
514
514
|
this.dispatchEvent(
|
|
515
515
|
new $(c, this, {
|
|
516
516
|
interaction: this.type,
|
|
@@ -553,10 +553,10 @@ function gi(e) {
|
|
|
553
553
|
}
|
|
554
554
|
async manageDelay(i) {
|
|
555
555
|
if (i === !1 || i !== this.open) {
|
|
556
|
-
|
|
556
|
+
wt.close(this);
|
|
557
557
|
return;
|
|
558
558
|
}
|
|
559
|
-
this.delayed && await
|
|
559
|
+
this.delayed && await wt.openTimer(this) && (this.open = !i);
|
|
560
560
|
}
|
|
561
561
|
async ensureOnDOM(i) {
|
|
562
562
|
document.body.offsetHeight;
|
|
@@ -587,7 +587,7 @@ function gi(e) {
|
|
|
587
587
|
})
|
|
588
588
|
), l > 0)
|
|
589
589
|
return;
|
|
590
|
-
const h = this.triggerElement instanceof
|
|
590
|
+
const h = this.triggerElement instanceof Ct;
|
|
591
591
|
this.dispatchEvent(
|
|
592
592
|
new $(c, this, {
|
|
593
593
|
interaction: this.type,
|
|
@@ -628,10 +628,10 @@ function yi(e) {
|
|
|
628
628
|
}
|
|
629
629
|
async manageDelay(i) {
|
|
630
630
|
if (i === !1 || i !== this.open) {
|
|
631
|
-
|
|
631
|
+
wt.close(this);
|
|
632
632
|
return;
|
|
633
633
|
}
|
|
634
|
-
this.delayed && await
|
|
634
|
+
this.delayed && await wt.openTimer(this) && (this.open = !i);
|
|
635
635
|
}
|
|
636
636
|
/**
|
|
637
637
|
* A popover should be hidden _after_ it is no longer on top-layer because
|
|
@@ -670,15 +670,15 @@ function yi(e) {
|
|
|
670
670
|
_t(this.dialogEl) && (this.dialogEl.hidePopover(), this.dialogEl.showPopover());
|
|
671
671
|
}
|
|
672
672
|
firstUpdated(i) {
|
|
673
|
-
super.firstUpdated(i),
|
|
673
|
+
super.firstUpdated(i), mt() && k().then(() => {
|
|
674
674
|
this.dialogEl.showPopover();
|
|
675
|
-
})
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
));
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
runConnectedCallback() {
|
|
678
|
+
mt() && document.addEventListener("fullscreenchange", this.handleFullscreenChange);
|
|
679
679
|
}
|
|
680
680
|
disconnectedCallback() {
|
|
681
|
-
super.disconnectedCallback(),
|
|
681
|
+
super.disconnectedCallback(), mt() && document.removeEventListener(
|
|
682
682
|
"fullscreenchange",
|
|
683
683
|
this.handleFullscreenChange
|
|
684
684
|
);
|
|
@@ -717,7 +717,7 @@ function yi(e) {
|
|
|
717
717
|
if (this.open !== i)
|
|
718
718
|
return;
|
|
719
719
|
await k();
|
|
720
|
-
const u = this.triggerElement instanceof
|
|
720
|
+
const u = this.triggerElement instanceof Ct;
|
|
721
721
|
this.dispatchEvent(
|
|
722
722
|
new $(c, this, {
|
|
723
723
|
interaction: this.type,
|
|
@@ -744,7 +744,7 @@ function yi(e) {
|
|
|
744
744
|
h();
|
|
745
745
|
},
|
|
746
746
|
{ once: !0 }
|
|
747
|
-
),
|
|
747
|
+
), mt() || this.dialogEl.hidePopover()) : h();
|
|
748
748
|
};
|
|
749
749
|
return this.elements.forEach((a, l) => {
|
|
750
750
|
Gt(a, r(a, l), n(a, l));
|
|
@@ -860,7 +860,7 @@ class bi {
|
|
|
860
860
|
this.closeOverlay(t);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
const he = new bi(), wi = ["top", "right", "bottom", "left"], J = Math.min, T = Math.max,
|
|
863
|
+
const he = new bi(), wi = ["top", "right", "bottom", "left"], J = Math.min, T = Math.max, xt = Math.round, yt = Math.floor, H = (e) => ({
|
|
864
864
|
x: e,
|
|
865
865
|
y: e
|
|
866
866
|
}), xi = {
|
|
@@ -901,10 +901,10 @@ function Ci(e, t, o) {
|
|
|
901
901
|
o === void 0 && (o = !1);
|
|
902
902
|
const i = at(e), s = te(e), r = Zt(s);
|
|
903
903
|
let n = s === "x" ? i === (o ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
|
|
904
|
-
return t.reference[r] > t.floating[r] && (n =
|
|
904
|
+
return t.reference[r] > t.floating[r] && (n = Et(n)), [n, Et(n)];
|
|
905
905
|
}
|
|
906
906
|
function Ai(e) {
|
|
907
|
-
const t =
|
|
907
|
+
const t = Et(e);
|
|
908
908
|
return [Bt(e), t, Bt(t)];
|
|
909
909
|
}
|
|
910
910
|
function Bt(e) {
|
|
@@ -928,7 +928,7 @@ function Ti(e, t, o, i) {
|
|
|
928
928
|
let r = Ri(Z(e), o === "start", i);
|
|
929
929
|
return s && (r = r.map((n) => n + "-" + s), t && (r = r.concat(r.map(Bt)))), r;
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Et(e) {
|
|
932
932
|
return e.replace(/left|right|bottom|top/g, (t) => xi[t]);
|
|
933
933
|
}
|
|
934
934
|
function Li(e) {
|
|
@@ -948,7 +948,7 @@ function Ee(e) {
|
|
|
948
948
|
left: e
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Pt(e) {
|
|
952
952
|
const {
|
|
953
953
|
x: t,
|
|
954
954
|
y: o,
|
|
@@ -1091,7 +1091,7 @@ async function dt(e, t) {
|
|
|
1091
1091
|
elementContext: d = "floating",
|
|
1092
1092
|
altBoundary: u = !1,
|
|
1093
1093
|
padding: p = 0
|
|
1094
|
-
} = st(t, e), f = Ee(p), m = a[u ? d === "floating" ? "reference" : "floating" : d], y =
|
|
1094
|
+
} = st(t, e), f = Ee(p), m = a[u ? d === "floating" ? "reference" : "floating" : d], y = Pt(await r.getClippingRect({
|
|
1095
1095
|
element: (o = await (r.isElement == null ? void 0 : r.isElement(m))) == null || o ? m : m.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(a.floating)),
|
|
1096
1096
|
boundary: c,
|
|
1097
1097
|
rootBoundary: h,
|
|
@@ -1107,7 +1107,7 @@ async function dt(e, t) {
|
|
|
1107
1107
|
} : {
|
|
1108
1108
|
x: 1,
|
|
1109
1109
|
y: 1
|
|
1110
|
-
}, P =
|
|
1110
|
+
}, P = Pt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1111
1111
|
elements: a,
|
|
1112
1112
|
rect: x,
|
|
1113
1113
|
offsetParent: E,
|
|
@@ -1144,14 +1144,14 @@ const ki = (e) => ({
|
|
|
1144
1144
|
}, p = te(s), f = Zt(p), g = await n.getDimensions(c), m = p === "y", y = m ? "top" : "left", x = m ? "bottom" : "right", E = m ? "clientHeight" : "clientWidth", C = r.reference[f] + r.reference[p] - u[p] - r.floating[f], P = u[p] - r.reference[p], _ = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(c));
|
|
1145
1145
|
let A = _ ? _[E] : 0;
|
|
1146
1146
|
(!A || !await (n.isElement == null ? void 0 : n.isElement(_))) && (A = a.floating[E] || r.floating[f]);
|
|
1147
|
-
const V = C / 2 - P / 2, I = A / 2 - g[f] / 2 - 1, D = J(d[y], I), X = J(d[x], I), M = D, G = A - g[f] - X, S = A / 2 - g[f] / 2 + V, et = zt(M, S, G), U = !l.arrow && at(s) != null && S !== et && r.reference[f] / 2 - (S < M ? D : X) - g[f] / 2 < 0,
|
|
1147
|
+
const V = C / 2 - P / 2, I = A / 2 - g[f] / 2 - 1, D = J(d[y], I), X = J(d[x], I), M = D, G = A - g[f] - X, S = A / 2 - g[f] / 2 + V, et = zt(M, S, G), U = !l.arrow && at(s) != null && S !== et && r.reference[f] / 2 - (S < M ? D : X) - g[f] / 2 < 0, N = U ? S < M ? S - M : S - G : 0;
|
|
1148
1148
|
return {
|
|
1149
|
-
[p]: u[p] +
|
|
1149
|
+
[p]: u[p] + N,
|
|
1150
1150
|
data: {
|
|
1151
1151
|
[p]: et,
|
|
1152
|
-
centerOffset: S - et -
|
|
1152
|
+
centerOffset: S - et - N,
|
|
1153
1153
|
...U && {
|
|
1154
|
-
alignmentOffset:
|
|
1154
|
+
alignmentOffset: N
|
|
1155
1155
|
}
|
|
1156
1156
|
},
|
|
1157
1157
|
reset: U
|
|
@@ -1181,7 +1181,7 @@ const ki = (e) => ({
|
|
|
1181
1181
|
} = st(e, t);
|
|
1182
1182
|
if ((o = r.arrow) != null && o.alignmentOffset)
|
|
1183
1183
|
return {};
|
|
1184
|
-
const y = Z(s), x = Y(a), E = Z(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), P = u || (E || !g ? [
|
|
1184
|
+
const y = Z(s), x = Y(a), E = Z(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), P = u || (E || !g ? [Et(a)] : Ai(a)), _ = f !== "none";
|
|
1185
1185
|
!u && _ && P.push(...Ti(a, g, f, C));
|
|
1186
1186
|
const A = [a, ...P], V = await dt(t, m), I = [];
|
|
1187
1187
|
let D = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
@@ -1197,7 +1197,7 @@ const ki = (e) => ({
|
|
|
1197
1197
|
const S = (((X = r.flip) == null ? void 0 : X.index) || 0) + 1, et = A[S];
|
|
1198
1198
|
if (et && (!(d === "alignment" ? x !== Y(et) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1199
1199
|
// overflows the main axis.
|
|
1200
|
-
D.every((
|
|
1200
|
+
D.every((F) => Y(F.placement) === x ? F.overflows[0] > 0 : !0)))
|
|
1201
1201
|
return {
|
|
1202
1202
|
data: {
|
|
1203
1203
|
index: S,
|
|
@@ -1207,21 +1207,21 @@ const ki = (e) => ({
|
|
|
1207
1207
|
placement: et
|
|
1208
1208
|
}
|
|
1209
1209
|
};
|
|
1210
|
-
let U = (M = D.filter((
|
|
1210
|
+
let U = (M = D.filter((N) => N.overflows[0] <= 0).sort((N, F) => N.overflows[1] - F.overflows[1])[0]) == null ? void 0 : M.placement;
|
|
1211
1211
|
if (!U)
|
|
1212
1212
|
switch (p) {
|
|
1213
1213
|
case "bestFit": {
|
|
1214
1214
|
var G;
|
|
1215
|
-
const
|
|
1215
|
+
const N = (G = D.filter((F) => {
|
|
1216
1216
|
if (_) {
|
|
1217
|
-
const Q = Y(
|
|
1217
|
+
const Q = Y(F.placement);
|
|
1218
1218
|
return Q === x || // Create a bias to the `y` side axis due to horizontal
|
|
1219
1219
|
// reading directions favoring greater width.
|
|
1220
1220
|
Q === "y";
|
|
1221
1221
|
}
|
|
1222
1222
|
return !0;
|
|
1223
|
-
}).map((
|
|
1224
|
-
|
|
1223
|
+
}).map((F) => [F.placement, F.overflows.filter((Q) => Q > 0).reduce((Q, ze) => Q + ze, 0)]).sort((F, Q) => F[1] - Q[1])[0]) == null ? void 0 : G[0];
|
|
1224
|
+
N && (U = N);
|
|
1225
1225
|
break;
|
|
1226
1226
|
}
|
|
1227
1227
|
case "initialPlacement":
|
|
@@ -1250,7 +1250,7 @@ function fe(e, t) {
|
|
|
1250
1250
|
function ge(e) {
|
|
1251
1251
|
return wi.some((t) => e[t] >= 0);
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1253
|
+
const Ni = function(e) {
|
|
1254
1254
|
return e === void 0 && (e = {}), {
|
|
1255
1255
|
name: "hide",
|
|
1256
1256
|
options: e,
|
|
@@ -1291,13 +1291,13 @@ const Fi = function(e) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
|
-
},
|
|
1294
|
+
}, Fi = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1295
1295
|
async function $i(e, t) {
|
|
1296
1296
|
const {
|
|
1297
1297
|
placement: o,
|
|
1298
1298
|
platform: i,
|
|
1299
1299
|
elements: s
|
|
1300
|
-
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l = Y(o) === "y", c =
|
|
1300
|
+
} = e, r = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), n = Z(o), a = at(o), l = Y(o) === "y", c = Fi.has(n) ? -1 : 1, h = r && l ? -1 : 1, d = st(t, e);
|
|
1301
1301
|
let {
|
|
1302
1302
|
mainAxis: u,
|
|
1303
1303
|
crossAxis: p,
|
|
@@ -1438,7 +1438,7 @@ const zi = function(e) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
};
|
|
1440
1440
|
};
|
|
1441
|
-
function
|
|
1441
|
+
function At() {
|
|
1442
1442
|
return typeof window < "u";
|
|
1443
1443
|
}
|
|
1444
1444
|
function lt(e) {
|
|
@@ -1453,16 +1453,16 @@ function q(e) {
|
|
|
1453
1453
|
return (t = (Pe(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1454
1454
|
}
|
|
1455
1455
|
function Pe(e) {
|
|
1456
|
-
return
|
|
1456
|
+
return At() ? e instanceof Node || e instanceof L(e).Node : !1;
|
|
1457
1457
|
}
|
|
1458
1458
|
function z(e) {
|
|
1459
|
-
return
|
|
1459
|
+
return At() ? e instanceof Element || e instanceof L(e).Element : !1;
|
|
1460
1460
|
}
|
|
1461
1461
|
function W(e) {
|
|
1462
|
-
return
|
|
1462
|
+
return At() ? e instanceof HTMLElement || e instanceof L(e).HTMLElement : !1;
|
|
1463
1463
|
}
|
|
1464
1464
|
function me(e) {
|
|
1465
|
-
return !
|
|
1465
|
+
return !At() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof L(e).ShadowRoot;
|
|
1466
1466
|
}
|
|
1467
1467
|
const Mi = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1468
1468
|
function gt(e) {
|
|
@@ -1479,7 +1479,7 @@ function Wi(e) {
|
|
|
1479
1479
|
return Hi.has(lt(e));
|
|
1480
1480
|
}
|
|
1481
1481
|
const qi = [":popover-open", ":modal"];
|
|
1482
|
-
function
|
|
1482
|
+
function Ot(e) {
|
|
1483
1483
|
return qi.some((t) => {
|
|
1484
1484
|
try {
|
|
1485
1485
|
return e.matches(t);
|
|
@@ -1489,16 +1489,16 @@ function At(e) {
|
|
|
1489
1489
|
});
|
|
1490
1490
|
}
|
|
1491
1491
|
const Vi = ["transform", "translate", "scale", "rotate", "perspective"], Ui = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ji = ["paint", "layout", "strict", "content"];
|
|
1492
|
-
function
|
|
1492
|
+
function St(e) {
|
|
1493
1493
|
const t = ee(), o = z(e) ? B(e) : e;
|
|
1494
1494
|
return Vi.some((i) => o[i] ? o[i] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || Ui.some((i) => (o.willChange || "").includes(i)) || ji.some((i) => (o.contain || "").includes(i));
|
|
1495
1495
|
}
|
|
1496
1496
|
function Yi(e) {
|
|
1497
1497
|
let t = tt(e);
|
|
1498
1498
|
for (; W(t) && !rt(t); ) {
|
|
1499
|
-
if (
|
|
1499
|
+
if (St(t))
|
|
1500
1500
|
return t;
|
|
1501
|
-
if (
|
|
1501
|
+
if (Ot(t))
|
|
1502
1502
|
return null;
|
|
1503
1503
|
t = tt(t);
|
|
1504
1504
|
}
|
|
@@ -1514,7 +1514,7 @@ function rt(e) {
|
|
|
1514
1514
|
function B(e) {
|
|
1515
1515
|
return L(e).getComputedStyle(e);
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function Rt(e) {
|
|
1518
1518
|
return z(e) ? {
|
|
1519
1519
|
scrollLeft: e.scrollLeft,
|
|
1520
1520
|
scrollTop: e.scrollTop
|
|
@@ -1555,7 +1555,7 @@ function It(e) {
|
|
|
1555
1555
|
function Ae(e) {
|
|
1556
1556
|
const t = B(e);
|
|
1557
1557
|
let o = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
|
|
1558
|
-
const s = W(e), r = s ? e.offsetWidth : o, n = s ? e.offsetHeight : i, a =
|
|
1558
|
+
const s = W(e), r = s ? e.offsetWidth : o, n = s ? e.offsetHeight : i, a = xt(o) !== r || xt(i) !== n;
|
|
1559
1559
|
return a && (o = r, i = n), {
|
|
1560
1560
|
width: o,
|
|
1561
1561
|
height: i,
|
|
@@ -1574,7 +1574,7 @@ function nt(e) {
|
|
|
1574
1574
|
height: s,
|
|
1575
1575
|
$: r
|
|
1576
1576
|
} = Ae(t);
|
|
1577
|
-
let n = (r ?
|
|
1577
|
+
let n = (r ? xt(o.width) : o.width) / i, a = (r ? xt(o.height) : o.height) / s;
|
|
1578
1578
|
return (!n || !Number.isFinite(n)) && (n = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1579
1579
|
x: n,
|
|
1580
1580
|
y: a
|
|
@@ -1606,7 +1606,7 @@ function ot(e, t, o, i) {
|
|
|
1606
1606
|
l *= m.x, c *= m.y, h *= m.x, d *= m.y, l += E, c += C, f = L(g), g = It(f);
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
return
|
|
1609
|
+
return Pt({
|
|
1610
1610
|
width: h,
|
|
1611
1611
|
height: d,
|
|
1612
1612
|
x: l,
|
|
@@ -1614,7 +1614,7 @@ function ot(e, t, o, i) {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
1616
|
function oe(e, t) {
|
|
1617
|
-
const o =
|
|
1617
|
+
const o = Rt(e).scrollLeft;
|
|
1618
1618
|
return t ? t.left + o : ot(q(e)).left + o;
|
|
1619
1619
|
}
|
|
1620
1620
|
function Se(e, t, o) {
|
|
@@ -1635,7 +1635,7 @@ function Qi(e) {
|
|
|
1635
1635
|
offsetParent: i,
|
|
1636
1636
|
strategy: s
|
|
1637
1637
|
} = e;
|
|
1638
|
-
const r = s === "fixed", n = q(i), a = t ?
|
|
1638
|
+
const r = s === "fixed", n = q(i), a = t ? Ot(t.floating) : !1;
|
|
1639
1639
|
if (i === n || a && r)
|
|
1640
1640
|
return o;
|
|
1641
1641
|
let l = {
|
|
@@ -1643,7 +1643,7 @@ function Qi(e) {
|
|
|
1643
1643
|
scrollTop: 0
|
|
1644
1644
|
}, c = H(1);
|
|
1645
1645
|
const h = H(0), d = W(i);
|
|
1646
|
-
if ((d || !d && !r) && ((lt(i) !== "body" || gt(n)) && (l =
|
|
1646
|
+
if ((d || !d && !r) && ((lt(i) !== "body" || gt(n)) && (l = Rt(i)), W(i))) {
|
|
1647
1647
|
const p = ot(i);
|
|
1648
1648
|
c = nt(i), h.x = p.x + i.clientLeft, h.y = p.y + i.clientTop;
|
|
1649
1649
|
}
|
|
@@ -1659,7 +1659,7 @@ function Ji(e) {
|
|
|
1659
1659
|
return Array.from(e.getClientRects());
|
|
1660
1660
|
}
|
|
1661
1661
|
function Zi(e) {
|
|
1662
|
-
const t = q(e), o =
|
|
1662
|
+
const t = q(e), o = Rt(e), i = e.ownerDocument.body, s = T(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = T(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
|
|
1663
1663
|
let n = -o.scrollLeft + oe(e);
|
|
1664
1664
|
const a = -o.scrollTop;
|
|
1665
1665
|
return B(i).direction === "rtl" && (n += T(t.clientWidth, i.clientWidth) - s), {
|
|
@@ -1711,7 +1711,7 @@ function ye(e, t, o) {
|
|
|
1711
1711
|
height: t.height
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
|
-
return
|
|
1714
|
+
return Pt(i);
|
|
1715
1715
|
}
|
|
1716
1716
|
function Re(e, t) {
|
|
1717
1717
|
const o = tt(e);
|
|
@@ -1725,7 +1725,7 @@ function oo(e, t) {
|
|
|
1725
1725
|
const r = B(e).position === "fixed";
|
|
1726
1726
|
let n = r ? tt(e) : e;
|
|
1727
1727
|
for (; z(n) && !rt(n); ) {
|
|
1728
|
-
const a = B(n), l =
|
|
1728
|
+
const a = B(n), l = St(n);
|
|
1729
1729
|
!l && a.position === "fixed" && (s = null), (r ? !l && !s : !l && a.position === "static" && !!s && eo.has(s.position) || gt(n) && !l && Re(e, n)) ? i = i.filter((h) => h !== n) : s = a, n = tt(n);
|
|
1730
1730
|
}
|
|
1731
1731
|
return t.set(e, i), i;
|
|
@@ -1737,7 +1737,7 @@ function so(e) {
|
|
|
1737
1737
|
rootBoundary: i,
|
|
1738
1738
|
strategy: s
|
|
1739
1739
|
} = e;
|
|
1740
|
-
const n = [...o === "clippingAncestors" ?
|
|
1740
|
+
const n = [...o === "clippingAncestors" ? Ot(t) ? [] : oo(t, this._c) : [].concat(o), i], a = n[0], l = n.reduce((c, h) => {
|
|
1741
1741
|
const d = ye(t, h, s);
|
|
1742
1742
|
return c.top = T(d.top, c.top), c.right = J(d.right, c.right), c.bottom = J(d.bottom, c.bottom), c.left = T(d.left, c.left), c;
|
|
1743
1743
|
}, ye(t, a, s));
|
|
@@ -1769,7 +1769,7 @@ function ro(e, t, o) {
|
|
|
1769
1769
|
l.x = oe(s);
|
|
1770
1770
|
}
|
|
1771
1771
|
if (i || !i && !r)
|
|
1772
|
-
if ((lt(t) !== "body" || gt(s)) && (a =
|
|
1772
|
+
if ((lt(t) !== "body" || gt(s)) && (a = Rt(t)), i) {
|
|
1773
1773
|
const p = ot(t, !0, r, t);
|
|
1774
1774
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
1775
1775
|
} else s && c();
|
|
@@ -1782,7 +1782,7 @@ function ro(e, t, o) {
|
|
|
1782
1782
|
height: n.height
|
|
1783
1783
|
};
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function Nt(e) {
|
|
1786
1786
|
return B(e).position === "static";
|
|
1787
1787
|
}
|
|
1788
1788
|
function ve(e, t) {
|
|
@@ -1795,21 +1795,21 @@ function ve(e, t) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
function Te(e, t) {
|
|
1797
1797
|
const o = L(e);
|
|
1798
|
-
if (
|
|
1798
|
+
if (Ot(e))
|
|
1799
1799
|
return o;
|
|
1800
1800
|
if (!W(e)) {
|
|
1801
1801
|
let s = tt(e);
|
|
1802
1802
|
for (; s && !rt(s); ) {
|
|
1803
|
-
if (z(s) && !
|
|
1803
|
+
if (z(s) && !Nt(s))
|
|
1804
1804
|
return s;
|
|
1805
1805
|
s = tt(s);
|
|
1806
1806
|
}
|
|
1807
1807
|
return o;
|
|
1808
1808
|
}
|
|
1809
1809
|
let i = ve(e, t);
|
|
1810
|
-
for (; i && Wi(i) &&
|
|
1810
|
+
for (; i && Wi(i) && Nt(i); )
|
|
1811
1811
|
i = ve(i, t);
|
|
1812
|
-
return i && rt(i) &&
|
|
1812
|
+
return i && rt(i) && Nt(i) && !St(i) ? o : i || Yi(e) || o;
|
|
1813
1813
|
}
|
|
1814
1814
|
const ao = async function(e) {
|
|
1815
1815
|
const t = this.getOffsetParent || Te, o = this.getDimensions, i = await o(e.floating);
|
|
@@ -1858,7 +1858,7 @@ function co(e, t) {
|
|
|
1858
1858
|
} = c;
|
|
1859
1859
|
if (a || t(), !u || !p)
|
|
1860
1860
|
return;
|
|
1861
|
-
const f =
|
|
1861
|
+
const f = yt(d), g = yt(s.clientWidth - (h + u)), m = yt(s.clientHeight - (d + p)), y = yt(h), E = {
|
|
1862
1862
|
rootMargin: -f + "px " + -g + "px " + -m + "px " + -y + "px",
|
|
1863
1863
|
threshold: T(0, J(1, l)) || 1
|
|
1864
1864
|
};
|
|
@@ -1923,7 +1923,7 @@ function Ht(e, t, o, i) {
|
|
|
1923
1923
|
}), d?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(f);
|
|
1924
1924
|
};
|
|
1925
1925
|
}
|
|
1926
|
-
const Wt = zi, De = Bi, qt = _i, Vt = Ii, ho =
|
|
1926
|
+
const Wt = zi, De = Bi, qt = _i, Vt = Ii, ho = Ni, ke = ki, _e = (e, t, o) => {
|
|
1927
1927
|
const i = /* @__PURE__ */ new Map(), s = {
|
|
1928
1928
|
platform: Mt,
|
|
1929
1929
|
...o
|
|
@@ -1936,13 +1936,13 @@ const Wt = zi, De = Bi, qt = _i, Vt = Ii, ho = Fi, ke = ki, _e = (e, t, o) => {
|
|
|
1936
1936
|
platform: r
|
|
1937
1937
|
});
|
|
1938
1938
|
};
|
|
1939
|
-
function
|
|
1939
|
+
function vt(e) {
|
|
1940
1940
|
if (typeof e > "u")
|
|
1941
1941
|
return 0;
|
|
1942
1942
|
const t = window.devicePixelRatio || 1;
|
|
1943
1943
|
return Math.round(e * t) / t || -1e4;
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const bt = 8, po = 100, uo = (e) => ({
|
|
1946
1946
|
bottom: ["top", "left", "right"],
|
|
1947
1947
|
"bottom-end": ["top-end", "left", "right"],
|
|
1948
1948
|
"bottom-start": ["top-start", "left", "right"],
|
|
@@ -2004,7 +2004,7 @@ class fo {
|
|
|
2004
2004
|
await (document.fonts ? document.fonts.ready : Promise.resolve());
|
|
2005
2005
|
const i = t.trigger instanceof HTMLElement ? qt() : qt({
|
|
2006
2006
|
fallbackPlacements: uo(t.placement),
|
|
2007
|
-
padding:
|
|
2007
|
+
padding: bt
|
|
2008
2008
|
}), [s = 0, r = 0] = Array.isArray(t?.offset) ? t.offset : [t.offset, 0], n = this.host.elements.find(
|
|
2009
2009
|
(u) => u.tipElement
|
|
2010
2010
|
)?.tipElement, a = [
|
|
@@ -2012,7 +2012,7 @@ class fo {
|
|
|
2012
2012
|
crossAxis: r,
|
|
2013
2013
|
mainAxis: s
|
|
2014
2014
|
}),
|
|
2015
|
-
De({ padding:
|
|
2015
|
+
De({ padding: bt }),
|
|
2016
2016
|
i,
|
|
2017
2017
|
Vt({
|
|
2018
2018
|
apply: ({ availableHeight: u, availableWidth: p, rects: { floating: f } }) => {
|
|
@@ -2027,12 +2027,12 @@ class fo {
|
|
|
2027
2027
|
maxWidth: `${Math.floor(p)}px`
|
|
2028
2028
|
});
|
|
2029
2029
|
},
|
|
2030
|
-
padding:
|
|
2030
|
+
padding: bt
|
|
2031
2031
|
}),
|
|
2032
2032
|
...n ? [
|
|
2033
2033
|
ke({
|
|
2034
2034
|
element: n,
|
|
2035
|
-
padding: t.tipPadding ||
|
|
2035
|
+
padding: t.tipPadding || bt
|
|
2036
2036
|
})
|
|
2037
2037
|
] : []
|
|
2038
2038
|
], { middlewareData: l, placement: c, x: h, y: d } = await _e(
|
|
@@ -2047,7 +2047,7 @@ class fo {
|
|
|
2047
2047
|
if (Object.assign(o.style, {
|
|
2048
2048
|
left: "0px",
|
|
2049
2049
|
top: "0px",
|
|
2050
|
-
translate: `${
|
|
2050
|
+
translate: `${vt(h)}px ${vt(d)}px`
|
|
2051
2051
|
}), o.setAttribute("actual-placement", c), this.host.elements?.forEach((u) => {
|
|
2052
2052
|
this.originalPlacements.has(u) || this.originalPlacements.set(
|
|
2053
2053
|
u,
|
|
@@ -2058,7 +2058,7 @@ class fo {
|
|
|
2058
2058
|
Object.assign(n.style, {
|
|
2059
2059
|
left: c.startsWith("bottom") || c.startsWith("top") ? "0px" : "",
|
|
2060
2060
|
top: c.startsWith("right") || c.startsWith("left") ? "0px" : "",
|
|
2061
|
-
translate: `${
|
|
2061
|
+
translate: `${vt(u)}px ${vt(p)}px`
|
|
2062
2062
|
});
|
|
2063
2063
|
}
|
|
2064
2064
|
}
|
|
@@ -2078,7 +2078,7 @@ class fo {
|
|
|
2078
2078
|
);
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
|
-
var
|
|
2081
|
+
var Tt = /* @__PURE__ */ ((e) => (e.Click = "click", e.Hover = "hover", e.LongPress = "longpress", e))(Tt || {});
|
|
2082
2082
|
class se {
|
|
2083
2083
|
constructor(t, { handleOverlayReady: o, isPersistent: i, overlay: s }) {
|
|
2084
2084
|
this.target = t, this.isLazilyOpen = !1, this.isPersistent = !1, this.isPersistent = !!i, this.handleOverlayReady = o, this.isPersistent && this.init(), this.overlay = s;
|
|
@@ -2133,14 +2133,14 @@ class se {
|
|
|
2133
2133
|
this.isPersistent || this.abort();
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
|
-
const go = 300,
|
|
2136
|
+
const go = 300, Ne = {
|
|
2137
2137
|
keyboard: "Press Space or Alt+Down Arrow for additional options",
|
|
2138
2138
|
mouse: "Click and hold for additional options",
|
|
2139
2139
|
touch: "Double tap and long press for additional options"
|
|
2140
2140
|
};
|
|
2141
2141
|
class mo extends se {
|
|
2142
2142
|
constructor() {
|
|
2143
|
-
super(...arguments), this.type =
|
|
2143
|
+
super(...arguments), this.type = Tt.LongPress, this.longpressState = null, this.releaseDescription = it, this.handlePointerup = () => {
|
|
2144
2144
|
clearTimeout(this.timeout), this.target && (this.longpressState = this.overlay?.state === "opening" ? "pressed" : null, document.removeEventListener("pointerup", this.handlePointerup), document.removeEventListener("pointercancel", this.handlePointerup));
|
|
2145
2145
|
};
|
|
2146
2146
|
}
|
|
@@ -2195,7 +2195,7 @@ class mo extends se {
|
|
|
2195
2195
|
const o = document.createElement("div");
|
|
2196
2196
|
o.id = `longpress-describedby-descriptor-${jt()}`;
|
|
2197
2197
|
const i = li() || ci() ? "touch" : "keyboard";
|
|
2198
|
-
o.textContent =
|
|
2198
|
+
o.textContent = Ne[i], o.slot = "longpress-describedby-descriptor";
|
|
2199
2199
|
const s = t.getRootNode(), r = this.overlay.getRootNode();
|
|
2200
2200
|
s === r ? this.overlay.append(o) : (o.hidden = !("host" in s), t.insertAdjacentElement("afterend", o));
|
|
2201
2201
|
const n = $t(
|
|
@@ -2420,7 +2420,7 @@ class vo extends Event {
|
|
|
2420
2420
|
const bo = Symbol("remove-slottable-request");
|
|
2421
2421
|
class wo extends se {
|
|
2422
2422
|
constructor() {
|
|
2423
|
-
super(...arguments), this.type =
|
|
2423
|
+
super(...arguments), this.type = Tt.Click, this.preventNextToggle = !1;
|
|
2424
2424
|
}
|
|
2425
2425
|
handleClick() {
|
|
2426
2426
|
this.preventNextToggle || (this.open = !this.open), this.preventNextToggle = !1;
|
|
@@ -2443,7 +2443,7 @@ class wo extends se {
|
|
|
2443
2443
|
const xo = 300;
|
|
2444
2444
|
class Eo extends se {
|
|
2445
2445
|
constructor() {
|
|
2446
|
-
super(...arguments), this.type =
|
|
2446
|
+
super(...arguments), this.type = Tt.Hover, this.elementIds = [], this.focusedin = !1, this.pointerentered = !1;
|
|
2447
2447
|
}
|
|
2448
2448
|
handleTargetFocusin() {
|
|
2449
2449
|
this.target.matches(":focus-visible") && (this.open = !0, this.focusedin = !0);
|
|
@@ -2577,7 +2577,7 @@ const O = (K = class extends ct {
|
|
|
2577
2577
|
this._disabled = t, t ? (this.strategy?.abort(), this.wasOpen = this.open, this.open = !1) : (this.bindEvents(), this.open = this.open || this.wasOpen, this.wasOpen = !1);
|
|
2578
2578
|
}
|
|
2579
2579
|
get hasNonVirtualTrigger() {
|
|
2580
|
-
return !!this.triggerElement && !(this.triggerElement instanceof
|
|
2580
|
+
return !!this.triggerElement && !(this.triggerElement instanceof Ct);
|
|
2581
2581
|
}
|
|
2582
2582
|
get placementController() {
|
|
2583
2583
|
return this._placementController || (this._placementController = new fo(this)), this._placementController;
|
|
@@ -2742,7 +2742,7 @@ const O = (K = class extends ct {
|
|
|
2742
2742
|
<dialog
|
|
2743
2743
|
class="dialog"
|
|
2744
2744
|
part="dialog"
|
|
2745
|
-
placement=${
|
|
2745
|
+
placement=${Lt(
|
|
2746
2746
|
this.requiresPosition ? this.placement || "right" : void 0
|
|
2747
2747
|
)}
|
|
2748
2748
|
style=${ne(this.dialogStyleMap)}
|
|
@@ -2760,10 +2760,10 @@ const O = (K = class extends ct {
|
|
|
2760
2760
|
<div
|
|
2761
2761
|
class="dialog"
|
|
2762
2762
|
part="dialog"
|
|
2763
|
-
placement=${
|
|
2763
|
+
placement=${Lt(
|
|
2764
2764
|
this.requiresPosition ? this.placement || "right" : void 0
|
|
2765
2765
|
)}
|
|
2766
|
-
popover=${
|
|
2766
|
+
popover=${Lt(this.popoverValue)}
|
|
2767
2767
|
style=${ne(this.dialogStyleMap)}
|
|
2768
2768
|
@beforetoggle=${this.handleBeforetoggle}
|
|
2769
2769
|
@close=${this.handleBrowserClose}
|
|
@@ -2841,28 +2841,28 @@ R([
|
|
|
2841
2841
|
R([
|
|
2842
2842
|
v()
|
|
2843
2843
|
], O.prototype, "type", 2);
|
|
2844
|
-
let
|
|
2844
|
+
let Fe = O;
|
|
2845
2845
|
const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2846
2846
|
__proto__: null,
|
|
2847
|
-
LONGPRESS_INSTRUCTIONS:
|
|
2848
|
-
Overlay:
|
|
2847
|
+
LONGPRESS_INSTRUCTIONS: Ne,
|
|
2848
|
+
Overlay: Fe
|
|
2849
2849
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2850
|
-
ti("cx-overlay",
|
|
2850
|
+
ti("cx-overlay", Fe);
|
|
2851
2851
|
const $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2852
2852
|
__proto__: null
|
|
2853
2853
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2854
2854
|
function Ro(e) {
|
|
2855
2855
|
return To(e);
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Ft(e) {
|
|
2858
2858
|
return e.assignedSlot ? e.assignedSlot : e.parentNode instanceof ShadowRoot ? e.parentNode.host : e.parentNode;
|
|
2859
2859
|
}
|
|
2860
2860
|
function To(e) {
|
|
2861
|
-
for (let t = e; t; t =
|
|
2862
|
-
for (let t =
|
|
2861
|
+
for (let t = e; t; t = Ft(t)) if (t instanceof Element && getComputedStyle(t).display === "none") return null;
|
|
2862
|
+
for (let t = Ft(e); t; t = Ft(t)) {
|
|
2863
2863
|
if (!(t instanceof Element)) continue;
|
|
2864
2864
|
const o = getComputedStyle(t);
|
|
2865
|
-
if (o.display !== "contents" && (o.position !== "static" ||
|
|
2865
|
+
if (o.display !== "contents" && (o.position !== "static" || St(o) || t.tagName === "BODY"))
|
|
2866
2866
|
return t;
|
|
2867
2867
|
}
|
|
2868
2868
|
return null;
|
|
@@ -2986,7 +2986,7 @@ let b = class extends Me {
|
|
|
2986
2986
|
disconnectedCallback() {
|
|
2987
2987
|
super.disconnectedCallback(), this.stop();
|
|
2988
2988
|
}
|
|
2989
|
-
|
|
2989
|
+
connectedUpdatedCallback() {
|
|
2990
2990
|
if (this.strategy === "overlay" && (this.start(), !re)) {
|
|
2991
2991
|
const e = Ve(this);
|
|
2992
2992
|
e && (this.autoSizeBoundary = e, this.flipBoundary = e, this.shiftBoundary = e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as l } from "./custom-element.
|
|
2
|
-
import { f as $ } from "./directive-helpers.
|
|
1
|
+
import { E as l } from "./custom-element.vnXBMQxc.js";
|
|
2
|
+
import { f as $ } from "./directive-helpers.DBHob-_L.js";
|
|
3
3
|
import { i as f, t as a, e as _ } from "./directive.oAbCiebi.js";
|
|
4
4
|
/**
|
|
5
5
|
* @license
|