@turquoisehealth/pit-viper 2.262.0 → 2.263.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/README.md +9 -8
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/ai/stats.html +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/ask-tq-buddy-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ai-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-animated-icon-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-avatar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-banner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-box-plot-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-checkbox-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-label-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-logo-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-company-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-confirmation-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-counter-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-picker-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-date-time-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-distribution-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-drawer-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-empty-error-state-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-empty-state-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-expandable-content-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-file-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-ghost-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-horizontal-scroller-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-icon-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-insight-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pagination-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-pill-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-progress-bar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-prompt-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-question-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-radio-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-rating-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-reasoning-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-release-badge-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-resize-handle-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-search-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-selectable-card-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-side-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-skeleton-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sortable-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-spinner-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-pane-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sprite-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-step-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-stepper-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-switch-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tab-list-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-table-of-contents-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tabs-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tag-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-text-area-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toast-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tool-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-widget-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/ai/PvReasoning/PvReasoning.vue.d.ts +2 -6
- package/pv-components/dist/vue/ai/components/base/AskTqBuddy/types.d.ts +3 -3
- package/pv-components/dist/vue/ai/components/base/PvSidebar/types.d.ts +1 -0
- package/pv-components/dist/vue/ai/pv-components-ai.mjs +154 -161
- package/pv-components/dist/vue/ai/pv-components-ai.mjs.map +1 -1
- package/pv-components/dist/vue/base/components/base/AskTqBuddy/types.d.ts +3 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -4
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvSidebar/types.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2167 -2096
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/AskTqBuddy/types.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +4 -4
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/types.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3 -3
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/ask-tq-buddy/ask-tq-buddy.js +747 -677
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +2 -2
- package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +2 -2
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +188 -188
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +825 -755
- package/pv-components/dist/web/components/pv-animated-icon/pv-animated-icon.js +2 -2
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +2 -2
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +2 -2
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +2 -2
- package/pv-components/dist/web/components/pv-box-plot/pv-box-plot.js +2 -2
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +2 -2
- package/pv-components/dist/web/components/pv-button/pv-button.js +2 -2
- package/pv-components/dist/web/components/pv-card/pv-card.js +2 -2
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +2 -2
- package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +2 -2
- package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +2 -2
- package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +2 -2
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +2 -2
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -2
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +2 -2
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +2 -2
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +2 -2
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -2
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +2 -2
- package/pv-components/dist/web/components/pv-empty-error-state/pv-empty-error-state.js +2 -2
- package/pv-components/dist/web/components/pv-empty-state/pv-empty-state.js +2 -2
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +2 -2
- package/pv-components/dist/web/components/pv-file-input/pv-file-input.js +2 -2
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +5 -5
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +5 -5
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -2
- package/pv-components/dist/web/components/pv-header/pv-header.js +856 -786
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -2
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +5 -5
- package/pv-components/dist/web/components/pv-icon/pv-icon.js +2 -2
- package/pv-components/dist/web/components/pv-input/pv-input.js +2 -2
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +2 -2
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +5 -5
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +5 -5
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +2 -2
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +2 -2
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +2 -2
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +2 -2
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +5 -5
- package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +2 -2
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +2 -2
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +741 -741
- package/pv-components/dist/web/components/pv-question/pv-question.js +2 -2
- package/pv-components/dist/web/components/pv-radio-group/pv-radio-group.js +2 -2
- package/pv-components/dist/web/components/pv-range/pv-range.js +2 -2
- package/pv-components/dist/web/components/pv-rating/pv-rating.js +2 -2
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +482 -489
- package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +2 -2
- package/pv-components/dist/web/components/pv-resize-handle/pv-resize-handle.js +2 -2
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +2 -2
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +5 -5
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +119 -119
- package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +2 -2
- package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +2 -2
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +484 -484
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +5 -5
- package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +2 -2
- package/pv-components/dist/web/components/pv-sortable-list/pv-sortable-list.js +5 -5
- package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +2 -2
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +504 -504
- package/pv-components/dist/web/components/pv-split-pane/pv-split-pane.js +2 -2
- package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +2 -2
- package/pv-components/dist/web/components/pv-step-list/pv-step-list.js +2 -2
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -2
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +2 -2
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +2 -2
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +2 -2
- package/pv-components/dist/web/components/pv-table-of-contents/pv-table-of-contents.js +2 -2
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +5 -5
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +2 -2
- package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +2 -2
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -2
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -2
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +5 -5
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +2 -2
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +3 -3
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +5 -5
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +2 -2
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js +39 -39
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -499,7 +499,7 @@ function Ot(e, t, n) {
|
|
|
499
499
|
}
|
|
500
500
|
function kt(e, t, n, r) {
|
|
501
501
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
502
|
-
if (o[a].style.display !== "none" && o[a] !==
|
|
502
|
+
if (o[a].style.display !== "none" && o[a] !== Y.ghost && (r || o[a] !== Y.dragged) && St(o[a], n.draggable, e, !1)) {
|
|
503
503
|
if (i === t) return o[a];
|
|
504
504
|
i++;
|
|
505
505
|
}
|
|
@@ -508,13 +508,13 @@ function kt(e, t, n, r) {
|
|
|
508
508
|
return null;
|
|
509
509
|
}
|
|
510
510
|
function At(e, t) {
|
|
511
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
511
|
+
for (var n = e.lastElementChild; n && (n === Y.ghost || V(n, "display") === "none" || t && !bt(n, t));) n = n.previousElementSibling;
|
|
512
512
|
return n || null;
|
|
513
513
|
}
|
|
514
514
|
function jt(e, t) {
|
|
515
515
|
var n = 0;
|
|
516
516
|
if (!e || !e.parentNode) return -1;
|
|
517
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
517
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Y.clone && (!t || bt(e, t)) && n++;
|
|
518
518
|
return n;
|
|
519
519
|
}
|
|
520
520
|
function Mt(e) {
|
|
@@ -589,7 +589,7 @@ function Wt() {
|
|
|
589
589
|
return {
|
|
590
590
|
captureAnimationState: function() {
|
|
591
591
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
592
|
-
if (!(V(t, "display") === "none" || t ===
|
|
592
|
+
if (!(V(t, "display") === "none" || t === Y.ghost)) {
|
|
593
593
|
e.push({
|
|
594
594
|
target: t,
|
|
595
595
|
rect: H(t)
|
|
@@ -699,7 +699,7 @@ function Xt(e) {
|
|
|
699
699
|
}
|
|
700
700
|
var Zt = ["evt"], Qt = function(e, t) {
|
|
701
701
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ot(n, Zt);
|
|
702
|
-
Yt.pluginEvent.bind(
|
|
702
|
+
Yt.pluginEvent.bind(Y)(e, t, at({
|
|
703
703
|
dragEl: U,
|
|
704
704
|
parentEl: W,
|
|
705
705
|
ghostEl: G,
|
|
@@ -710,14 +710,14 @@ var Zt = ["evt"], Qt = function(e, t) {
|
|
|
710
710
|
cloneHidden: nn,
|
|
711
711
|
dragStarted: vn,
|
|
712
712
|
putSortable: J,
|
|
713
|
-
activeSortable:
|
|
713
|
+
activeSortable: Y.active,
|
|
714
714
|
originalEvent: r,
|
|
715
715
|
oldIndex: rn,
|
|
716
716
|
oldDraggableIndex: on,
|
|
717
717
|
newIndex: an,
|
|
718
718
|
newDraggableIndex: sn,
|
|
719
|
-
hideGhostForTarget:
|
|
720
|
-
unhideGhostForTarget:
|
|
719
|
+
hideGhostForTarget: Ln,
|
|
720
|
+
unhideGhostForTarget: Rn,
|
|
721
721
|
cloneNowHidden: function() {
|
|
722
722
|
nn = !0;
|
|
723
723
|
},
|
|
@@ -745,13 +745,13 @@ function $t(e) {
|
|
|
745
745
|
newDraggableIndex: sn
|
|
746
746
|
}, e));
|
|
747
747
|
}
|
|
748
|
-
var U, W, G, K, en, tn, q, nn, rn, an, on, sn, cn, J, ln = !1, un = !1, dn = [], fn, pn, mn, hn, gn, _n, vn, yn, bn, xn = !1, Sn = !1, Cn,
|
|
749
|
-
if (
|
|
748
|
+
var U, W, G, K, en, tn, q, nn, rn, an, on, sn, cn, J, ln = !1, un = !1, dn = [], fn, pn, mn, hn, gn, _n, vn, yn, bn, xn = !1, Sn = !1, Cn, wn, Tn = [], En = !1, Dn = [], On = typeof document < "u", kn = _t, An = mt || pt ? "cssFloat" : "float", jn = On && !vt && !_t && "draggable" in document.createElement("div"), Mn = function() {
|
|
749
|
+
if (On) {
|
|
750
750
|
if (pt) return !1;
|
|
751
751
|
var e = document.createElement("x");
|
|
752
752
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
753
753
|
}
|
|
754
|
-
}(),
|
|
754
|
+
}(), Nn = function(e, t) {
|
|
755
755
|
var n = V(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = kt(e, 0, t), a = kt(e, 1, t), o = i && V(i), s = a && V(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + H(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + H(a).width;
|
|
756
756
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
757
757
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
@@ -759,11 +759,11 @@ var U, W, G, K, en, tn, q, nn, rn, an, on, sn, cn, J, ln = !1, un = !1, dn = [],
|
|
|
759
759
|
var u = o.float === "left" ? "left" : "right";
|
|
760
760
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
761
761
|
}
|
|
762
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
763
|
-
},
|
|
762
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[An] === "none" || a && n[An] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
763
|
+
}, Pn = function(e, t, n) {
|
|
764
764
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
765
765
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
766
|
-
},
|
|
766
|
+
}, Fn = function(e, t) {
|
|
767
767
|
var n;
|
|
768
768
|
return dn.some(function(r) {
|
|
769
769
|
var i = r[Ut].options.emptyInsertThreshold;
|
|
@@ -772,7 +772,7 @@ var U, W, G, K, en, tn, q, nn, rn, an, on, sn, cn, J, ln = !1, un = !1, dn = [],
|
|
|
772
772
|
if (o && s) return n = r;
|
|
773
773
|
}
|
|
774
774
|
}), n;
|
|
775
|
-
},
|
|
775
|
+
}, In = function(e) {
|
|
776
776
|
function t(e, n) {
|
|
777
777
|
return function(r, i, a, o) {
|
|
778
778
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -786,28 +786,28 @@ var U, W, G, K, en, tn, q, nn, rn, an, on, sn, cn, J, ln = !1, un = !1, dn = [],
|
|
|
786
786
|
}
|
|
787
787
|
var n = {}, r = e.group;
|
|
788
788
|
(!r || ut(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
789
|
-
}, In = function() {
|
|
790
|
-
!jn && G && V(G, "display", "none");
|
|
791
789
|
}, Ln = function() {
|
|
792
|
-
!
|
|
790
|
+
!Mn && G && V(G, "display", "none");
|
|
791
|
+
}, Rn = function() {
|
|
792
|
+
!Mn && G && V(G, "display", "");
|
|
793
793
|
};
|
|
794
|
-
|
|
794
|
+
On && !vt && document.addEventListener("click", function(e) {
|
|
795
795
|
if (un) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), un = !1, !1;
|
|
796
796
|
}, !0);
|
|
797
|
-
var
|
|
797
|
+
var zn = function(e) {
|
|
798
798
|
if (U) {
|
|
799
799
|
e = e.touches ? e.touches[0] : e;
|
|
800
|
-
var t =
|
|
800
|
+
var t = Fn(e.clientX, e.clientY);
|
|
801
801
|
if (t) {
|
|
802
802
|
var n = {};
|
|
803
803
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
804
804
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Ut]._onDragOver(n);
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
|
-
},
|
|
807
|
+
}, Bn = function(e) {
|
|
808
808
|
U && U.parentNode[Ut]._isOutsideThisEl(e.target);
|
|
809
809
|
};
|
|
810
|
-
function
|
|
810
|
+
function Y(e, t) {
|
|
811
811
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
812
812
|
this.el = e, this.options = t = rt({}, t), e[Ut] = this;
|
|
813
813
|
var n = {
|
|
@@ -822,7 +822,7 @@ function X(e, t) {
|
|
|
822
822
|
invertedSwapThreshold: null,
|
|
823
823
|
removeCloneOnHide: !0,
|
|
824
824
|
direction: function() {
|
|
825
|
-
return
|
|
825
|
+
return Nn(e, this.options);
|
|
826
826
|
},
|
|
827
827
|
ghostClass: "sortable-ghost",
|
|
828
828
|
chosenClass: "sortable-chosen",
|
|
@@ -849,15 +849,15 @@ function X(e, t) {
|
|
|
849
849
|
x: 0,
|
|
850
850
|
y: 0
|
|
851
851
|
},
|
|
852
|
-
supportPointer:
|
|
852
|
+
supportPointer: Y.supportPointer !== !1 && "PointerEvent" in window && (!gt || _t),
|
|
853
853
|
emptyInsertThreshold: 5
|
|
854
854
|
};
|
|
855
855
|
for (var r in Yt.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
856
|
-
for (var i in
|
|
857
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
856
|
+
for (var i in In(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
857
|
+
this.nativeDraggable = t.forceFallback ? !1 : jn, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), dn.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), rt(this, Wt());
|
|
858
858
|
}
|
|
859
|
-
|
|
860
|
-
constructor:
|
|
859
|
+
Y.prototype = {
|
|
860
|
+
constructor: Y,
|
|
861
861
|
_isOutsideThisEl: function(e) {
|
|
862
862
|
!this.el.contains(e) && e !== this.el && (yn = null);
|
|
863
863
|
},
|
|
@@ -867,7 +867,7 @@ X.prototype = {
|
|
|
867
867
|
_onTapStart: function(e) {
|
|
868
868
|
if (e.cancelable) {
|
|
869
869
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
870
|
-
if (
|
|
870
|
+
if (Xn(n), !U && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && gt && s && s.tagName.toUpperCase() === "SELECT") && (s = St(s, r.draggable, n, !1), !(s && s.animated) && tn !== s)) {
|
|
871
871
|
if (rn = jt(s), on = jt(s, r.draggable), typeof l == "function") {
|
|
872
872
|
if (l.call(this, e, s, this)) {
|
|
873
873
|
$t({
|
|
@@ -901,12 +901,12 @@ X.prototype = {
|
|
|
901
901
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
902
902
|
if (n && !U && n.parentNode === i) {
|
|
903
903
|
var c = H(n);
|
|
904
|
-
if (K = i, U = n, W = U.parentNode, en = U.nextSibling, tn = n, cn = a.group,
|
|
904
|
+
if (K = i, U = n, W = U.parentNode, en = U.nextSibling, tn = n, cn = a.group, Y.dragged = U, fn = {
|
|
905
905
|
target: U,
|
|
906
906
|
clientX: (t || e).clientX,
|
|
907
907
|
clientY: (t || e).clientY
|
|
908
908
|
}, gn = fn.clientX - c.left, _n = fn.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, U.style["will-change"] = "all", s = function() {
|
|
909
|
-
if (Qt("delayEnded", r, { evt: e }),
|
|
909
|
+
if (Qt("delayEnded", r, { evt: e }), Y.eventCanceled) {
|
|
910
910
|
r._onDrop();
|
|
911
911
|
return;
|
|
912
912
|
}
|
|
@@ -916,9 +916,9 @@ X.prototype = {
|
|
|
916
916
|
originalEvent: e
|
|
917
917
|
}), wt(U, a.chosenClass, !0);
|
|
918
918
|
}, a.ignore.split(",").forEach(function(e) {
|
|
919
|
-
Et(U, e.trim(),
|
|
920
|
-
}), z(o, "dragover",
|
|
921
|
-
if (
|
|
919
|
+
Et(U, e.trim(), Un);
|
|
920
|
+
}), z(o, "dragover", zn), z(o, "mousemove", zn), z(o, "touchmove", zn), a.supportPointer ? (z(o, "pointerup", r._onDrop), !this.nativeDraggable && z(o, "pointercancel", r._onDrop)) : (z(o, "mouseup", r._onDrop), z(o, "touchend", r._onDrop), z(o, "touchcancel", r._onDrop)), ht && this.nativeDraggable && (this.options.touchStartThreshold = 4, U.draggable = !0), Qt("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(mt || pt))) {
|
|
921
|
+
if (Y.eventCanceled) {
|
|
922
922
|
this._onDrop();
|
|
923
923
|
return;
|
|
924
924
|
}
|
|
@@ -931,7 +931,7 @@ X.prototype = {
|
|
|
931
931
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
932
932
|
},
|
|
933
933
|
_disableDelayedDrag: function() {
|
|
934
|
-
U &&
|
|
934
|
+
U && Un(U), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
935
935
|
},
|
|
936
936
|
_disableDelayedDragEvents: function() {
|
|
937
937
|
var e = this.el.ownerDocument;
|
|
@@ -940,16 +940,16 @@ X.prototype = {
|
|
|
940
940
|
_triggerDragStart: function(e, t) {
|
|
941
941
|
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : t ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(U, "dragend", this), z(K, "dragstart", this._onDragStart));
|
|
942
942
|
try {
|
|
943
|
-
document.selection ?
|
|
943
|
+
document.selection ? Zn(function() {
|
|
944
944
|
document.selection.empty();
|
|
945
945
|
}) : window.getSelection().removeAllRanges();
|
|
946
946
|
} catch {}
|
|
947
947
|
},
|
|
948
948
|
_dragStarted: function(e, t) {
|
|
949
949
|
if (ln = !1, K && U) {
|
|
950
|
-
Qt("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover",
|
|
950
|
+
Qt("dragStarted", this, { evt: t }), this.nativeDraggable && z(document, "dragover", Bn);
|
|
951
951
|
var n = this.options;
|
|
952
|
-
!e && wt(U, n.dragClass, !1), wt(U, n.ghostClass, !0),
|
|
952
|
+
!e && wt(U, n.dragClass, !1), wt(U, n.ghostClass, !0), Y.active = this, e && this._appendGhost(), $t({
|
|
953
953
|
sortable: this,
|
|
954
954
|
name: "start",
|
|
955
955
|
originalEvent: t
|
|
@@ -958,7 +958,7 @@ X.prototype = {
|
|
|
958
958
|
},
|
|
959
959
|
_emulateDragOver: function() {
|
|
960
960
|
if (pn) {
|
|
961
|
-
this._lastX = pn.clientX, this._lastY = pn.clientY,
|
|
961
|
+
this._lastX = pn.clientX, this._lastY = pn.clientY, Ln();
|
|
962
962
|
for (var e = document.elementFromPoint(pn.clientX, pn.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(pn.clientX, pn.clientY), e !== t);) t = e;
|
|
963
963
|
if (U.parentNode[Ut]._isOutsideThisEl(e), t) do {
|
|
964
964
|
if (t[Ut]) {
|
|
@@ -972,13 +972,13 @@ X.prototype = {
|
|
|
972
972
|
}
|
|
973
973
|
e = t;
|
|
974
974
|
} while (t = xt(t));
|
|
975
|
-
|
|
975
|
+
Rn();
|
|
976
976
|
}
|
|
977
977
|
},
|
|
978
978
|
_onTouchMove: function(e) {
|
|
979
979
|
if (fn) {
|
|
980
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = G && Tt(G, !0), o = G && a && a.a, s = G && a && a.d, c =
|
|
981
|
-
if (!
|
|
980
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = G && Tt(G, !0), o = G && a && a.a, s = G && a && a.d, c = kn && wn && Mt(wn), l = (i.clientX - fn.clientX + r.x) / (o || 1) + (c ? c[0] - Tn[0] : 0) / (o || 1), u = (i.clientY - fn.clientY + r.y) / (s || 1) + (c ? c[1] - Tn[1] : 0) / (s || 1);
|
|
981
|
+
if (!Y.active && !ln) {
|
|
982
982
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
983
983
|
this._onDragStart(e, !0);
|
|
984
984
|
}
|
|
@@ -999,30 +999,30 @@ X.prototype = {
|
|
|
999
999
|
},
|
|
1000
1000
|
_appendGhost: function() {
|
|
1001
1001
|
if (!G) {
|
|
1002
|
-
var e = this.options.fallbackOnBody ? document.body : K, t = H(U, !0,
|
|
1003
|
-
if (
|
|
1004
|
-
for (
|
|
1005
|
-
|
|
1002
|
+
var e = this.options.fallbackOnBody ? document.body : K, t = H(U, !0, kn, !0, e), n = this.options;
|
|
1003
|
+
if (kn) {
|
|
1004
|
+
for (wn = e; V(wn, "position") === "static" && V(wn, "transform") === "none" && wn !== document;) wn = wn.parentNode;
|
|
1005
|
+
wn !== document.body && wn !== document.documentElement ? (wn === document && (wn = Dt()), t.top += wn.scrollTop, t.left += wn.scrollLeft) : wn = Dt(), Tn = Mt(wn);
|
|
1006
1006
|
}
|
|
1007
|
-
G = U.cloneNode(!0), wt(G, n.ghostClass, !1), wt(G, n.fallbackClass, !0), wt(G, n.dragClass, !0), V(G, "transition", ""), V(G, "transform", ""), V(G, "box-sizing", "border-box"), V(G, "margin", 0), V(G, "top", t.top), V(G, "left", t.left), V(G, "width", t.width), V(G, "height", t.height), V(G, "opacity", "0.8"), V(G, "position",
|
|
1007
|
+
G = U.cloneNode(!0), wt(G, n.ghostClass, !1), wt(G, n.fallbackClass, !0), wt(G, n.dragClass, !0), V(G, "transition", ""), V(G, "transform", ""), V(G, "box-sizing", "border-box"), V(G, "margin", 0), V(G, "top", t.top), V(G, "left", t.left), V(G, "width", t.width), V(G, "height", t.height), V(G, "opacity", "0.8"), V(G, "position", kn ? "absolute" : "fixed"), V(G, "zIndex", "100000"), V(G, "pointerEvents", "none"), Y.ghost = G, e.appendChild(G), V(G, "transform-origin", gn / parseInt(G.style.width) * 100 + "% " + _n / parseInt(G.style.height) * 100 + "%");
|
|
1008
1008
|
}
|
|
1009
1009
|
},
|
|
1010
1010
|
_onDragStart: function(e, t) {
|
|
1011
1011
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
1012
|
-
if (Qt("dragStart", this, { evt: e }),
|
|
1012
|
+
if (Qt("dragStart", this, { evt: e }), Y.eventCanceled) {
|
|
1013
1013
|
this._onDrop();
|
|
1014
1014
|
return;
|
|
1015
1015
|
}
|
|
1016
|
-
Qt("setupClone", this),
|
|
1017
|
-
Qt("clone", n), !
|
|
1016
|
+
Qt("setupClone", this), Y.eventCanceled || (q = Vt(U), q.removeAttribute("id"), q.draggable = !1, q.style["will-change"] = "", this._hideClone(), wt(q, this.options.chosenClass, !1), Y.clone = q), n.cloneId = Zn(function() {
|
|
1017
|
+
Qt("clone", n), !Y.eventCanceled && (n.options.removeCloneOnHide || K.insertBefore(q, U), n._hideClone(), $t({
|
|
1018
1018
|
sortable: n,
|
|
1019
1019
|
name: "clone"
|
|
1020
1020
|
}));
|
|
1021
|
-
}), !t && wt(U, i.dragClass, !0), t ? (un = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (B(document, "mouseup", n._onDrop), B(document, "touchend", n._onDrop), B(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, U)), z(document, "drop", n), V(U, "transform", "translateZ(0)")), ln = !0, n._dragStartId =
|
|
1021
|
+
}), !t && wt(U, i.dragClass, !0), t ? (un = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (B(document, "mouseup", n._onDrop), B(document, "touchend", n._onDrop), B(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, U)), z(document, "drop", n), V(U, "transform", "translateZ(0)")), ln = !0, n._dragStartId = Zn(n._dragStarted.bind(n, t, e)), z(document, "selectstart", n), vn = !0, window.getSelection().removeAllRanges(), gt && V(document.body, "user-select", "none");
|
|
1022
1022
|
},
|
|
1023
1023
|
_onDragOver: function(e) {
|
|
1024
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c =
|
|
1025
|
-
if (
|
|
1024
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Y.active, l = cn === s, u = o.sort, d = J || c, f, p = this, m = !1;
|
|
1025
|
+
if (En) return;
|
|
1026
1026
|
function h(o, s) {
|
|
1027
1027
|
Qt(o, p, at({
|
|
1028
1028
|
evt: e,
|
|
@@ -1036,7 +1036,7 @@ X.prototype = {
|
|
|
1036
1036
|
target: n,
|
|
1037
1037
|
completed: _,
|
|
1038
1038
|
onMove: function(n, i) {
|
|
1039
|
-
return
|
|
1039
|
+
return Hn(K, t, U, r, n, H(n), e, i);
|
|
1040
1040
|
},
|
|
1041
1041
|
changed: v
|
|
1042
1042
|
}, s));
|
|
@@ -1045,9 +1045,9 @@ X.prototype = {
|
|
|
1045
1045
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
1046
1046
|
}
|
|
1047
1047
|
function _(r) {
|
|
1048
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (wt(U, J ? J.options.ghostClass : c.options.ghostClass, !1), wt(U, o.ghostClass, !0)), J !== p && p !==
|
|
1048
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (wt(U, J ? J.options.ghostClass : c.options.ghostClass, !1), wt(U, o.ghostClass, !0)), J !== p && p !== Y.active ? J = p : p === Y.active && J && (J = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
1049
1049
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
1050
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === U && !U.animated || n === t && !n.animated) && (yn = null), !o.dragoverBubble && !e.rootEl && n !== document && (U.parentNode[Ut]._isOutsideThisEl(e.target), !r &&
|
|
1050
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === U && !U.animated || n === t && !n.animated) && (yn = null), !o.dragoverBubble && !e.rootEl && n !== document && (U.parentNode[Ut]._isOutsideThisEl(e.target), !r && zn(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
1051
1051
|
}
|
|
1052
1052
|
function v() {
|
|
1053
1053
|
an = jt(U), sn = jt(U, o.draggable), $t({
|
|
@@ -1059,23 +1059,23 @@ X.prototype = {
|
|
|
1059
1059
|
originalEvent: e
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = St(n, o.draggable, t, !0), h("dragOver"),
|
|
1062
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = St(n, o.draggable, t, !0), h("dragOver"), Y.eventCanceled) return m;
|
|
1063
1063
|
if (U.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
1064
1064
|
if (un = !1, c && !o.disabled && (l ? u || (a = W !== K) : J === this || (this.lastPutMode = cn.checkPull(this, c, U, e)) && s.checkPut(this, c, U, e))) {
|
|
1065
|
-
if (f = this._getDirection(e, n) === "vertical", r = H(U), h("dragOverValid"),
|
|
1066
|
-
if (a) return W = K, g(), this._hideClone(), h("revert"),
|
|
1065
|
+
if (f = this._getDirection(e, n) === "vertical", r = H(U), h("dragOverValid"), Y.eventCanceled) return m;
|
|
1066
|
+
if (a) return W = K, g(), this._hideClone(), h("revert"), Y.eventCanceled || (en ? K.insertBefore(U, en) : K.appendChild(U)), _(!0);
|
|
1067
1067
|
var y = At(t, o.draggable);
|
|
1068
|
-
if (!y ||
|
|
1068
|
+
if (!y || Kn(e, f, this) && !y.animated) {
|
|
1069
1069
|
if (y === U) return _(!1);
|
|
1070
|
-
if (y && t === e.target && (n = y), n && (i = H(n)),
|
|
1071
|
-
} else if (y &&
|
|
1070
|
+
if (y && t === e.target && (n = y), n && (i = H(n)), Hn(K, t, U, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(U, y.nextSibling) : t.appendChild(U), W = t, v(), _(!0);
|
|
1071
|
+
} else if (y && Gn(e, f, this)) {
|
|
1072
1072
|
var b = kt(t, 0, o, !0);
|
|
1073
1073
|
if (b === U) return _(!1);
|
|
1074
|
-
if (n = b, i = H(n),
|
|
1074
|
+
if (n = b, i = H(n), Hn(K, t, U, r, n, i, e, !1) !== !1) return g(), t.insertBefore(U, b), W = t, v(), _(!0);
|
|
1075
1075
|
} else if (n.parentNode === t) {
|
|
1076
1076
|
i = H(n);
|
|
1077
|
-
var x = 0, S, C = U.parentNode !== t, w = !
|
|
1078
|
-
yn !== n && (S = i[T], xn = !1, Sn = !w && o.invertSwap || C), x =
|
|
1077
|
+
var x = 0, S, C = U.parentNode !== t, w = !Pn(U.animated && U.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ot(n, "top", "top") || Ot(U, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
1078
|
+
yn !== n && (S = i[T], xn = !1, Sn = !w && o.invertSwap || C), x = qn(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Sn, yn === n);
|
|
1079
1079
|
var O;
|
|
1080
1080
|
if (x !== 0) {
|
|
1081
1081
|
var k = jt(U);
|
|
@@ -1087,8 +1087,8 @@ X.prototype = {
|
|
|
1087
1087
|
yn = n, bn = x;
|
|
1088
1088
|
var A = n.nextElementSibling, j = !1;
|
|
1089
1089
|
j = x === 1;
|
|
1090
|
-
var ee =
|
|
1091
|
-
if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1),
|
|
1090
|
+
var ee = Hn(K, t, U, r, n, i, e, j);
|
|
1091
|
+
if (ee !== !1) return (ee === 1 || ee === -1) && (j = ee === 1), En = !0, setTimeout(Wn, 30), g(), j && !A ? t.appendChild(U) : n.parentNode.insertBefore(U, j ? A : n), E && Bt(E, 0, D - E.scrollTop), W = U.parentNode, S !== void 0 && !Sn && (Cn = Math.abs(S - H(n)[T])), v(), _(!0);
|
|
1092
1092
|
}
|
|
1093
1093
|
if (t.contains(U)) return _(!1);
|
|
1094
1094
|
}
|
|
@@ -1096,7 +1096,7 @@ X.prototype = {
|
|
|
1096
1096
|
},
|
|
1097
1097
|
_ignoreWhileAnimating: null,
|
|
1098
1098
|
_offMoveEvents: function() {
|
|
1099
|
-
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover",
|
|
1099
|
+
B(document, "mousemove", this._onTouchMove), B(document, "touchmove", this._onTouchMove), B(document, "pointermove", this._onTouchMove), B(document, "dragover", zn), B(document, "mousemove", zn), B(document, "touchmove", zn);
|
|
1100
1100
|
},
|
|
1101
1101
|
_offUpEvents: function() {
|
|
1102
1102
|
var e = this.el.ownerDocument;
|
|
@@ -1104,11 +1104,11 @@ X.prototype = {
|
|
|
1104
1104
|
},
|
|
1105
1105
|
_onDrop: function(e) {
|
|
1106
1106
|
var t = this.el, n = this.options;
|
|
1107
|
-
if (an = jt(U), sn = jt(U, n.draggable), Qt("drop", this, { evt: e }), W = U && U.parentNode, an = jt(U), sn = jt(U, n.draggable),
|
|
1107
|
+
if (an = jt(U), sn = jt(U, n.draggable), Qt("drop", this, { evt: e }), W = U && U.parentNode, an = jt(U), sn = jt(U, n.draggable), Y.eventCanceled) {
|
|
1108
1108
|
this._nulling();
|
|
1109
1109
|
return;
|
|
1110
1110
|
}
|
|
1111
|
-
ln = !1, Sn = !1, xn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer),
|
|
1111
|
+
ln = !1, Sn = !1, xn = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Qn(this.cloneId), Qn(this._dragStartId), this.nativeDraggable && (B(document, "drop", this), B(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), gt && V(document.body, "user-select", ""), V(U, "transform", ""), e && (vn && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), G && G.parentNode && G.parentNode.removeChild(G), (K === W || J && J.lastPutMode !== "clone") && q && q.parentNode && q.parentNode.removeChild(q), U && (this.nativeDraggable && B(U, "dragend", this), Un(U), U.style["will-change"] = "", vn && !ln && wt(U, J ? J.options.ghostClass : this.options.ghostClass, !1), wt(U, this.options.chosenClass, !1), $t({
|
|
1112
1112
|
sortable: this,
|
|
1113
1113
|
name: "unchoose",
|
|
1114
1114
|
toEl: W,
|
|
@@ -1147,7 +1147,7 @@ X.prototype = {
|
|
|
1147
1147
|
name: "sort",
|
|
1148
1148
|
toEl: W,
|
|
1149
1149
|
originalEvent: e
|
|
1150
|
-
})), J && J.save()),
|
|
1150
|
+
})), J && J.save()), Y.active && ((an == null || an === -1) && (an = rn, sn = on), $t({
|
|
1151
1151
|
sortable: this,
|
|
1152
1152
|
name: "end",
|
|
1153
1153
|
toEl: W,
|
|
@@ -1155,11 +1155,11 @@ X.prototype = {
|
|
|
1155
1155
|
}), this.save()))), this._nulling();
|
|
1156
1156
|
},
|
|
1157
1157
|
_nulling: function() {
|
|
1158
|
-
Qt("nulling", this), K = U = W = G = en = q = tn = nn = fn = pn = vn = an = sn = rn = on = yn = bn = J = cn =
|
|
1158
|
+
Qt("nulling", this), K = U = W = G = en = q = tn = nn = fn = pn = vn = an = sn = rn = on = yn = bn = J = cn = Y.dragged = Y.ghost = Y.clone = Y.active = null;
|
|
1159
1159
|
var e = this.el;
|
|
1160
|
-
|
|
1160
|
+
Dn.forEach(function(t) {
|
|
1161
1161
|
e.contains(t) && (t.checked = !0);
|
|
1162
|
-
}),
|
|
1162
|
+
}), Dn.length = mn = hn = 0;
|
|
1163
1163
|
},
|
|
1164
1164
|
handleEvent: function(e) {
|
|
1165
1165
|
switch (e.type) {
|
|
@@ -1169,7 +1169,7 @@ X.prototype = {
|
|
|
1169
1169
|
break;
|
|
1170
1170
|
case "dragenter":
|
|
1171
1171
|
case "dragover":
|
|
1172
|
-
U && (this._onDragOver(e),
|
|
1172
|
+
U && (this._onDragOver(e), Vn(e));
|
|
1173
1173
|
break;
|
|
1174
1174
|
case "selectstart":
|
|
1175
1175
|
e.preventDefault();
|
|
@@ -1177,7 +1177,7 @@ X.prototype = {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
},
|
|
1179
1179
|
toArray: function() {
|
|
1180
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], St(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) ||
|
|
1180
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], St(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Yn(t));
|
|
1181
1181
|
return e;
|
|
1182
1182
|
},
|
|
1183
1183
|
sort: function(e, t) {
|
|
@@ -1200,7 +1200,7 @@ X.prototype = {
|
|
|
1200
1200
|
var n = this.options;
|
|
1201
1201
|
if (t === void 0) return n[e];
|
|
1202
1202
|
var r = Yt.modifyOption(this, e, t);
|
|
1203
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
1203
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && In(n);
|
|
1204
1204
|
},
|
|
1205
1205
|
destroy: function() {
|
|
1206
1206
|
Qt("destroy", this);
|
|
@@ -1211,7 +1211,7 @@ X.prototype = {
|
|
|
1211
1211
|
},
|
|
1212
1212
|
_hideClone: function() {
|
|
1213
1213
|
if (!nn) {
|
|
1214
|
-
if (Qt("hideClone", this),
|
|
1214
|
+
if (Qt("hideClone", this), Y.eventCanceled) return;
|
|
1215
1215
|
V(q, "display", "none"), this.options.removeCloneOnHide && q.parentNode && q.parentNode.removeChild(q), nn = !0;
|
|
1216
1216
|
}
|
|
1217
1217
|
},
|
|
@@ -1221,68 +1221,68 @@ X.prototype = {
|
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
1223
|
if (nn) {
|
|
1224
|
-
if (Qt("showClone", this),
|
|
1224
|
+
if (Qt("showClone", this), Y.eventCanceled) return;
|
|
1225
1225
|
U.parentNode == K && !this.options.group.revertClone ? K.insertBefore(q, U) : en ? K.insertBefore(q, en) : K.appendChild(q), this.options.group.revertClone && this.animate(U, q), V(q, "display", ""), nn = !1;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
};
|
|
1229
|
-
function
|
|
1229
|
+
function Vn(e) {
|
|
1230
1230
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Hn(e, t, n, r, i, a, o, s) {
|
|
1233
1233
|
var c, l = e[Ut], u = l.options.onMove, d;
|
|
1234
1234
|
return window.CustomEvent && !pt && !mt ? c = new CustomEvent("move", {
|
|
1235
1235
|
bubbles: !0,
|
|
1236
1236
|
cancelable: !0
|
|
1237
1237
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || H(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Un(e) {
|
|
1240
1240
|
e.draggable = !1;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1242
|
+
function Wn() {
|
|
1243
|
+
En = !1;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function Gn(e, t, n) {
|
|
1246
1246
|
var r = H(kt(n.el, 0, n.options, !0)), i = Ht(n.el, n.options, G), a = 10;
|
|
1247
1247
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Kn(e, t, n) {
|
|
1250
1250
|
var r = H(At(n.el, n.options.draggable)), i = Ht(n.el, n.options, G), a = 10;
|
|
1251
1251
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function qn(e, t, n, r, i, a, o, s) {
|
|
1254
1254
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
1255
1255
|
if (!o) {
|
|
1256
1256
|
if (s && Cn < l * i) {
|
|
1257
1257
|
if (!xn && (bn === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (xn = !0), xn) f = !0;
|
|
1258
1258
|
else if (bn === 1 ? c < u + Cn : c > d - Cn) return -bn;
|
|
1259
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
1259
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Jn(t);
|
|
1260
1260
|
}
|
|
1261
1261
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Jn(e) {
|
|
1264
1264
|
return jt(U) < jt(e) ? 1 : -1;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Yn(e) {
|
|
1267
1267
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
1268
1268
|
return r.toString(36);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
|
|
1270
|
+
function Xn(e) {
|
|
1271
|
+
Dn.length = 0;
|
|
1272
1272
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
1273
1273
|
var r = t[n];
|
|
1274
|
-
r.checked &&
|
|
1274
|
+
r.checked && Dn.push(r);
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Zn(e) {
|
|
1278
1278
|
return setTimeout(e, 0);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Qn(e) {
|
|
1281
1281
|
return clearTimeout(e);
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1284
|
-
(
|
|
1285
|
-
}),
|
|
1283
|
+
On && z(document, "touchmove", function(e) {
|
|
1284
|
+
(Y.active || ln) && e.cancelable && e.preventDefault();
|
|
1285
|
+
}), Y.utils = {
|
|
1286
1286
|
on: z,
|
|
1287
1287
|
off: B,
|
|
1288
1288
|
css: V,
|
|
@@ -1296,24 +1296,24 @@ Dn && z(document, "touchmove", function(e) {
|
|
|
1296
1296
|
toggleClass: wt,
|
|
1297
1297
|
clone: Vt,
|
|
1298
1298
|
index: jt,
|
|
1299
|
-
nextTick:
|
|
1300
|
-
cancelNextTick:
|
|
1301
|
-
detectDirection:
|
|
1299
|
+
nextTick: Zn,
|
|
1300
|
+
cancelNextTick: Qn,
|
|
1301
|
+
detectDirection: Nn,
|
|
1302
1302
|
getChild: kt,
|
|
1303
1303
|
expando: Ut
|
|
1304
|
-
},
|
|
1304
|
+
}, Y.get = function(e) {
|
|
1305
1305
|
return e[Ut];
|
|
1306
|
-
},
|
|
1306
|
+
}, Y.mount = function() {
|
|
1307
1307
|
var e = [...arguments];
|
|
1308
1308
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
1309
1309
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
1310
|
-
e.utils && (
|
|
1310
|
+
e.utils && (Y.utils = at(at({}, Y.utils), e.utils)), Yt.mount(e);
|
|
1311
1311
|
});
|
|
1312
|
-
},
|
|
1313
|
-
return new
|
|
1314
|
-
},
|
|
1315
|
-
var
|
|
1316
|
-
function
|
|
1312
|
+
}, Y.create = function(e, t) {
|
|
1313
|
+
return new Y(e, t);
|
|
1314
|
+
}, Y.version = dt;
|
|
1315
|
+
var X = [], $n, er, tr = !1, nr, rr, ir, ar;
|
|
1316
|
+
function or() {
|
|
1317
1317
|
function e() {
|
|
1318
1318
|
for (var e in this.defaults = {
|
|
1319
1319
|
scroll: !0,
|
|
@@ -1333,29 +1333,29 @@ function ar() {
|
|
|
1333
1333
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1334
1334
|
},
|
|
1335
1335
|
drop: function() {
|
|
1336
|
-
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
1336
|
+
this.sortable.nativeDraggable ? B(document, "dragover", this._handleAutoScroll) : (B(document, "pointermove", this._handleFallbackAutoScroll), B(document, "touchmove", this._handleFallbackAutoScroll), B(document, "mousemove", this._handleFallbackAutoScroll)), cr(), sr(), zt();
|
|
1337
1337
|
},
|
|
1338
1338
|
nulling: function() {
|
|
1339
|
-
|
|
1339
|
+
ir = er = $n = tr = ar = nr = rr = null, X.length = 0;
|
|
1340
1340
|
},
|
|
1341
1341
|
_handleFallbackAutoScroll: function(e) {
|
|
1342
1342
|
this._handleAutoScroll(e, !0);
|
|
1343
1343
|
},
|
|
1344
1344
|
_handleAutoScroll: function(e, t) {
|
|
1345
1345
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1346
|
-
if (
|
|
1347
|
-
|
|
1346
|
+
if (ir = e, t || this.options.forceAutoScrollFallback || mt || pt || gt) {
|
|
1347
|
+
lr(e, this.options, a, t);
|
|
1348
1348
|
var o = Pt(a, !0);
|
|
1349
|
-
|
|
1349
|
+
tr && (!ar || r !== nr || i !== rr) && (ar && cr(), ar = setInterval(function() {
|
|
1350
1350
|
var a = Pt(document.elementFromPoint(r, i), !0);
|
|
1351
|
-
a !== o && (o = a,
|
|
1352
|
-
}, 10),
|
|
1351
|
+
a !== o && (o = a, sr()), lr(e, n.options, a, t);
|
|
1352
|
+
}, 10), nr = r, rr = i);
|
|
1353
1353
|
} else {
|
|
1354
1354
|
if (!this.options.bubbleScroll || Pt(a, !0) === Dt()) {
|
|
1355
|
-
|
|
1355
|
+
sr();
|
|
1356
1356
|
return;
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1358
|
+
lr(e, this.options, Pt(a, !1), !1);
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
}, rt(e, {
|
|
@@ -1363,33 +1363,33 @@ function ar() {
|
|
|
1363
1363
|
initializeByDefault: !0
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1366
|
+
function sr() {
|
|
1367
|
+
X.forEach(function(e) {
|
|
1368
1368
|
clearInterval(e.pid);
|
|
1369
|
-
}),
|
|
1369
|
+
}), X = [];
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
clearInterval(
|
|
1371
|
+
function cr() {
|
|
1372
|
+
clearInterval(ar);
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1374
|
+
var lr = Rt(function(e, t, n, r) {
|
|
1375
1375
|
if (t.scroll) {
|
|
1376
1376
|
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Dt(), l = !1, u;
|
|
1377
|
-
|
|
1378
|
-
var d = 0, f =
|
|
1377
|
+
er !== n && (er = n, sr(), $n = t.scroll, u = t.scrollFn, $n === !0 && ($n = Pt(n, !0)));
|
|
1378
|
+
var d = 0, f = $n;
|
|
1379
1379
|
do {
|
|
1380
1380
|
var p = f, m = H(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = V(p), E = p.scrollLeft, D = p.scrollTop;
|
|
1381
1381
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
1382
1382
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
1383
|
-
if (!
|
|
1384
|
-
(
|
|
1385
|
-
r && this.layer === 0 &&
|
|
1386
|
-
var t =
|
|
1387
|
-
typeof u == "function" && u.call(
|
|
1383
|
+
if (!X[d]) for (var A = 0; A <= d; A++) X[A] || (X[A] = {});
|
|
1384
|
+
(X[d].vx != O || X[d].vy != k || X[d].el !== p) && (X[d].el = p, X[d].vx = O, X[d].vy = k, clearInterval(X[d].pid), (O != 0 || k != 0) && (l = !0, X[d].pid = setInterval(function() {
|
|
1385
|
+
r && this.layer === 0 && Y.active._onTouchMove(ir);
|
|
1386
|
+
var t = X[this.layer].vy ? X[this.layer].vy * s : 0, n = X[this.layer].vx ? X[this.layer].vx * s : 0;
|
|
1387
|
+
typeof u == "function" && u.call(Y.dragged.parentNode[Ut], n, t, e, ir, X[this.layer].el) !== "continue" || Bt(X[this.layer].el, n, t);
|
|
1388
1388
|
}.bind({ layer: d }), 24))), d++;
|
|
1389
1389
|
} while (t.bubbleScroll && f !== c && (f = Pt(f, !1)));
|
|
1390
|
-
|
|
1390
|
+
tr = l;
|
|
1391
1391
|
}
|
|
1392
|
-
}, 30),
|
|
1392
|
+
}, 30), ur = function(e) {
|
|
1393
1393
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1394
1394
|
if (t) {
|
|
1395
1395
|
var c = n || i;
|
|
@@ -1401,8 +1401,8 @@ var cr = Rt(function(e, t, n, r) {
|
|
|
1401
1401
|
}));
|
|
1402
1402
|
}
|
|
1403
1403
|
};
|
|
1404
|
-
function
|
|
1405
|
-
|
|
1404
|
+
function dr() {}
|
|
1405
|
+
dr.prototype = {
|
|
1406
1406
|
startIndex: null,
|
|
1407
1407
|
dragStart: function(e) {
|
|
1408
1408
|
this.startIndex = e.oldDraggableIndex;
|
|
@@ -1413,24 +1413,24 @@ ur.prototype = {
|
|
|
1413
1413
|
var r = kt(this.sortable.el, this.startIndex, this.options);
|
|
1414
1414
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
1415
1415
|
},
|
|
1416
|
-
drop:
|
|
1417
|
-
}, rt(
|
|
1418
|
-
function
|
|
1419
|
-
|
|
1416
|
+
drop: ur
|
|
1417
|
+
}, rt(dr, { pluginName: "revertOnSpill" });
|
|
1418
|
+
function fr() {}
|
|
1419
|
+
fr.prototype = {
|
|
1420
1420
|
onSpill: function(e) {
|
|
1421
1421
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
1422
1422
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
1423
1423
|
},
|
|
1424
|
-
drop:
|
|
1425
|
-
}, rt(
|
|
1424
|
+
drop: ur
|
|
1425
|
+
}, rt(fr, { pluginName: "removeOnSpill" }), Y.mount(new or()), Y.mount(fr, dr);
|
|
1426
1426
|
//#endregion
|
|
1427
1427
|
//#region ../node_modules/.pnpm/@vueuse+integrations@13.9.0_sortablejs@1.15.7_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/integrations/useSortable.mjs
|
|
1428
|
-
function
|
|
1428
|
+
function pr(e, t, n = {}) {
|
|
1429
1429
|
let r, { document: i = He, ...a } = n, o = { onUpdate: (e) => {
|
|
1430
|
-
|
|
1430
|
+
gr(t, e.oldIndex, e.newIndex, e);
|
|
1431
1431
|
} }, s = () => {
|
|
1432
1432
|
let t = typeof e == "string" ? i?.querySelector(e) : Ue(e);
|
|
1433
|
-
!t || r !== void 0 || (r = new
|
|
1433
|
+
!t || r !== void 0 || (r = new Y(t, {
|
|
1434
1434
|
...o,
|
|
1435
1435
|
...a
|
|
1436
1436
|
}));
|
|
@@ -1446,15 +1446,15 @@ function fr(e, t, n = {}) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function mr(e, t, n) {
|
|
1450
1450
|
let r = e.children[n];
|
|
1451
1451
|
e.insertBefore(t, r);
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function hr(e) {
|
|
1454
1454
|
e.parentNode && e.parentNode.removeChild(e);
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1457
|
-
r != null && (
|
|
1456
|
+
function gr(e, t, n, r = null) {
|
|
1457
|
+
r != null && (hr(r.item), mr(r.from, r.item, t));
|
|
1458
1458
|
let i = v(e), a = i ? [...I(e)] : I(e);
|
|
1459
1459
|
if (n >= 0 && n < a.length) {
|
|
1460
1460
|
let r = a.splice(t, 1)[0];
|
|
@@ -1465,7 +1465,7 @@ function hr(e, t, n, r = null) {
|
|
|
1465
1465
|
}
|
|
1466
1466
|
//#endregion
|
|
1467
1467
|
//#region src/components/base/PvPopover/PvPopover.vue?vue&type=script&setup=true&lang.ts
|
|
1468
|
-
var
|
|
1468
|
+
var _r = ["data-align"], vr = ["id", "role"], yr = /* @__PURE__ */ f({
|
|
1469
1469
|
__name: "PvPopover",
|
|
1470
1470
|
props: {
|
|
1471
1471
|
alignment: {
|
|
@@ -1501,7 +1501,7 @@ var gr = ["data-align"], _r = ["id", "role"], vr = /* @__PURE__ */ f({
|
|
|
1501
1501
|
emits: ["list-order-updated"],
|
|
1502
1502
|
setup(e, { expose: n, emit: i }) {
|
|
1503
1503
|
let a = M(null), c = ue("popoverList"), l = e, u = i;
|
|
1504
|
-
l.isSortable && l.isList &&
|
|
1504
|
+
l.isSortable && l.isList && pr(c, [], {
|
|
1505
1505
|
animation: 150,
|
|
1506
1506
|
onUpdate: () => {
|
|
1507
1507
|
u("list-order-updated", Array.from(c.value?.children || []).map((e) => e.id));
|
|
@@ -1523,31 +1523,31 @@ var gr = ["data-align"], _r = ["id", "role"], vr = /* @__PURE__ */ f({
|
|
|
1523
1523
|
role: e.listRole,
|
|
1524
1524
|
class: S(["pv-popover-list", e.listClass]),
|
|
1525
1525
|
style: w(e.cssCustomListProperties)
|
|
1526
|
-
}, [N(n.$slots, "default", {}, void 0, !0)], 14,
|
|
1526
|
+
}, [N(n.$slots, "default", {}, void 0, !0)], 14, vr),
|
|
1527
1527
|
N(n.$slots, "footer", {}, void 0, !0)
|
|
1528
|
-
], 64)) : N(n.$slots, "default", { key: 1 }, void 0, !0)], 14,
|
|
1528
|
+
], 64)) : N(n.$slots, "default", { key: 1 }, void 0, !0)], 14, _r));
|
|
1529
1529
|
}
|
|
1530
|
-
}),
|
|
1530
|
+
}), br = ".pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}", xr = (e, t) => {
|
|
1531
1531
|
let n = e.__vccOpts || e;
|
|
1532
1532
|
for (let [e, r] of t) n[e] = r;
|
|
1533
1533
|
return n;
|
|
1534
|
-
},
|
|
1534
|
+
}, Sr = /* @__PURE__ */ xr(yr, [["styles", [br]], ["__scopeId", "data-v-fe6e9c6a"]]);
|
|
1535
1535
|
//#endregion
|
|
1536
1536
|
//#region src/web-components/utils.ts
|
|
1537
|
-
function
|
|
1537
|
+
function Cr() {
|
|
1538
1538
|
let e = M(!1), t = m()?.root || {};
|
|
1539
1539
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
1540
1540
|
}
|
|
1541
1541
|
//#endregion
|
|
1542
1542
|
//#region src/components/base/baseProps.ts
|
|
1543
|
-
var
|
|
1543
|
+
var wr = {
|
|
1544
1544
|
xs: "12px",
|
|
1545
1545
|
sm: "16px",
|
|
1546
1546
|
md: "20px",
|
|
1547
1547
|
lg: "24px",
|
|
1548
1548
|
xl: "32px",
|
|
1549
1549
|
"2x": "40px"
|
|
1550
|
-
},
|
|
1550
|
+
}, Tr = [
|
|
1551
1551
|
void 0,
|
|
1552
1552
|
10,
|
|
1553
1553
|
12,
|
|
@@ -1556,42 +1556,42 @@ var Cr = {
|
|
|
1556
1556
|
24,
|
|
1557
1557
|
32,
|
|
1558
1558
|
64
|
|
1559
|
-
],
|
|
1559
|
+
], Er = ["xlink:href"], Dr = /* @__PURE__ */ f({
|
|
1560
1560
|
__name: "PvIcon",
|
|
1561
1561
|
props: {
|
|
1562
1562
|
name: { type: String },
|
|
1563
1563
|
size: { type: null }
|
|
1564
1564
|
},
|
|
1565
1565
|
setup(e) {
|
|
1566
|
-
let t = e, n =
|
|
1566
|
+
let t = e, n = Cr(), i = M(null), a = r(() => ({
|
|
1567
1567
|
"pv-icon": !0,
|
|
1568
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
1568
|
+
[`pv-icon-${t.size}`]: t.size != null && Tr.includes(t.size)
|
|
1569
1569
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
1570
1570
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (A(), o("svg", {
|
|
1571
1571
|
"data-testid": "pv-icon",
|
|
1572
1572
|
"aria-hidden": "true",
|
|
1573
1573
|
class: S(a.value)
|
|
1574
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
1574
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, Er)], 2));
|
|
1575
1575
|
}
|
|
1576
1576
|
});
|
|
1577
1577
|
//#endregion
|
|
1578
1578
|
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
1579
|
-
function
|
|
1579
|
+
function Or(e) {
|
|
1580
1580
|
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1583
|
-
return e.flatMap((e) => e.children?.length ?
|
|
1582
|
+
function kr(e) {
|
|
1583
|
+
return e.flatMap((e) => e.children?.length ? kr(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function Ar(e, t) {
|
|
1586
1586
|
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
1587
1587
|
return r.length > 0 ? [...e, ...r] : e;
|
|
1588
1588
|
}
|
|
1589
1589
|
//#endregion
|
|
1590
1590
|
//#region src/components/base/PvCompanyLogo/PvCompanyLogo.vue?vue&type=script&setup=true&lang.ts
|
|
1591
|
-
var
|
|
1591
|
+
var jr = {
|
|
1592
1592
|
class: "pv-flex",
|
|
1593
1593
|
"data-testid": "pv-company-logo"
|
|
1594
|
-
},
|
|
1594
|
+
}, Mr = ["src"], Nr = /* @__PURE__ */ f({
|
|
1595
1595
|
__name: "PvCompanyLogo",
|
|
1596
1596
|
props: {
|
|
1597
1597
|
basePath: {
|
|
@@ -1606,13 +1606,13 @@ var Ar = {
|
|
|
1606
1606
|
srcPathOverride: { type: String }
|
|
1607
1607
|
},
|
|
1608
1608
|
setup(e) {
|
|
1609
|
-
let t = e, n = M(!0), i = r(() =>
|
|
1609
|
+
let t = e, n = M(!0), i = r(() => wr[t.size] || "32px"), a = r(() => ({
|
|
1610
1610
|
"pv-icon": n.value,
|
|
1611
1611
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1612
1612
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1613
1613
|
return L(u, () => {
|
|
1614
1614
|
n.value = !0;
|
|
1615
|
-
}), (e, t) => (A(), o("div",
|
|
1615
|
+
}), (e, t) => (A(), o("div", jr, [n.value ? (A(), o("div", {
|
|
1616
1616
|
key: 0,
|
|
1617
1617
|
class: S(a.value),
|
|
1618
1618
|
style: w(c.value)
|
|
@@ -1620,12 +1620,12 @@ var Ar = {
|
|
|
1620
1620
|
src: u.value,
|
|
1621
1621
|
alt: "",
|
|
1622
1622
|
onError: t[0] ||= (e) => n.value = !1
|
|
1623
|
-
}, null, 40,
|
|
1623
|
+
}, null, 40, Mr)], 6)) : (A(), o("div", {
|
|
1624
1624
|
key: 1,
|
|
1625
1625
|
class: S(a.value)
|
|
1626
1626
|
}, null, 2))]));
|
|
1627
1627
|
}
|
|
1628
|
-
}),
|
|
1628
|
+
}), Pr = ["data-style", "data-shape"], Fr = ["src", "alt"], Ir = /* @__PURE__ */ f({
|
|
1629
1629
|
__name: "PvAvatar",
|
|
1630
1630
|
props: {
|
|
1631
1631
|
alt: { type: String },
|
|
@@ -1661,7 +1661,7 @@ var Ar = {
|
|
|
1661
1661
|
"data-testid": "pv-avatar",
|
|
1662
1662
|
"data-style": e.variant,
|
|
1663
1663
|
"data-shape": e.shape
|
|
1664
|
-
}, [e.icon ? (A(), i(
|
|
1664
|
+
}, [e.icon ? (A(), i(Dr, {
|
|
1665
1665
|
key: 0,
|
|
1666
1666
|
name: e.icon,
|
|
1667
1667
|
size: r[e.size]
|
|
@@ -1669,9 +1669,9 @@ var Ar = {
|
|
|
1669
1669
|
key: 2,
|
|
1670
1670
|
src: e.image,
|
|
1671
1671
|
alt: e.alt ?? ""
|
|
1672
|
-
}, null, 8,
|
|
1672
|
+
}, null, 8, Fr)) : a("v-if", !0)], 10, Pr));
|
|
1673
1673
|
}
|
|
1674
|
-
}),
|
|
1674
|
+
}), Lr = /* @__PURE__ */ xr(/* @__PURE__ */ f({
|
|
1675
1675
|
__name: "PvCounterBadge",
|
|
1676
1676
|
props: {
|
|
1677
1677
|
maxValue: {
|
|
@@ -1710,7 +1710,7 @@ var Ar = {
|
|
|
1710
1710
|
"data-testid": "pv-counter-badge"
|
|
1711
1711
|
}, F(n.value), 3));
|
|
1712
1712
|
}
|
|
1713
|
-
}), [["styles", [".pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}"]], ["__scopeId", "data-v-3def68cb"]]),
|
|
1713
|
+
}), [["styles", [".pv-badge-md[data-v-3def68cb]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-3def68cb]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-rounded[data-v-3def68cb]{border-radius:50%}"]], ["__scopeId", "data-v-3def68cb"]]), Rr = /* @__PURE__ */ f({
|
|
1714
1714
|
__name: "PvSpinner",
|
|
1715
1715
|
props: {
|
|
1716
1716
|
size: {
|
|
@@ -1740,72 +1740,72 @@ var Ar = {
|
|
|
1740
1740
|
style: w({ "--size": t[e.size] })
|
|
1741
1741
|
}, null, 6));
|
|
1742
1742
|
}
|
|
1743
|
-
}),
|
|
1743
|
+
}), zr = Math.min, Br = Math.max, Vr = Math.round, Hr = (e) => ({
|
|
1744
1744
|
x: e,
|
|
1745
1745
|
y: e
|
|
1746
|
-
}),
|
|
1746
|
+
}), Ur = {
|
|
1747
1747
|
left: "right",
|
|
1748
1748
|
right: "left",
|
|
1749
1749
|
bottom: "top",
|
|
1750
1750
|
top: "bottom"
|
|
1751
1751
|
};
|
|
1752
|
-
function
|
|
1752
|
+
function Wr(e, t) {
|
|
1753
1753
|
return typeof e == "function" ? e(t) : e;
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Gr(e) {
|
|
1756
1756
|
return e.split("-")[0];
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Kr(e) {
|
|
1759
1759
|
return e.split("-")[1];
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1761
|
+
function qr(e) {
|
|
1762
1762
|
return e === "x" ? "y" : "x";
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Jr(e) {
|
|
1765
1765
|
return e === "y" ? "height" : "width";
|
|
1766
1766
|
}
|
|
1767
|
-
function
|
|
1767
|
+
function Yr(e) {
|
|
1768
1768
|
let t = e[0];
|
|
1769
1769
|
return t === "t" || t === "b" ? "y" : "x";
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
return
|
|
1771
|
+
function Xr(e) {
|
|
1772
|
+
return qr(Yr(e));
|
|
1773
1773
|
}
|
|
1774
|
-
function
|
|
1774
|
+
function Zr(e, t, n) {
|
|
1775
1775
|
n === void 0 && (n = !1);
|
|
1776
|
-
let r =
|
|
1777
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
1776
|
+
let r = Kr(e), i = Xr(e), a = Jr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1777
|
+
return t.reference[a] > t.floating[a] && (o = oi(o)), [o, oi(o)];
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1780
|
-
let t =
|
|
1779
|
+
function Qr(e) {
|
|
1780
|
+
let t = oi(e);
|
|
1781
1781
|
return [
|
|
1782
|
-
|
|
1782
|
+
$r(e),
|
|
1783
1783
|
t,
|
|
1784
|
-
|
|
1784
|
+
$r(t)
|
|
1785
1785
|
];
|
|
1786
1786
|
}
|
|
1787
|
-
function
|
|
1787
|
+
function $r(e) {
|
|
1788
1788
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1789
1789
|
}
|
|
1790
|
-
var
|
|
1791
|
-
function
|
|
1790
|
+
var ei = ["left", "right"], ti = ["right", "left"], ni = ["top", "bottom"], ri = ["bottom", "top"];
|
|
1791
|
+
function ii(e, t, n) {
|
|
1792
1792
|
switch (e) {
|
|
1793
1793
|
case "top":
|
|
1794
|
-
case "bottom": return n ? t ?
|
|
1794
|
+
case "bottom": return n ? t ? ti : ei : t ? ei : ti;
|
|
1795
1795
|
case "left":
|
|
1796
|
-
case "right": return t ?
|
|
1796
|
+
case "right": return t ? ni : ri;
|
|
1797
1797
|
default: return [];
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1801
|
-
let i =
|
|
1802
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
1803
|
-
}
|
|
1804
|
-
function ai(e) {
|
|
1805
|
-
let t = Wr(e);
|
|
1806
|
-
return Hr[t] + e.slice(t.length);
|
|
1800
|
+
function ai(e, t, n, r) {
|
|
1801
|
+
let i = Kr(e), a = ii(Gr(e), n === "start", r);
|
|
1802
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map($r)))), a;
|
|
1807
1803
|
}
|
|
1808
1804
|
function oi(e) {
|
|
1805
|
+
let t = Gr(e);
|
|
1806
|
+
return Ur[t] + e.slice(t.length);
|
|
1807
|
+
}
|
|
1808
|
+
function si(e) {
|
|
1809
1809
|
return {
|
|
1810
1810
|
top: 0,
|
|
1811
1811
|
right: 0,
|
|
@@ -1814,15 +1814,15 @@ function oi(e) {
|
|
|
1814
1814
|
...e
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function ci(e) {
|
|
1818
1818
|
return typeof e == "number" ? {
|
|
1819
1819
|
top: e,
|
|
1820
1820
|
right: e,
|
|
1821
1821
|
bottom: e,
|
|
1822
1822
|
left: e
|
|
1823
|
-
} :
|
|
1823
|
+
} : si(e);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function li(e) {
|
|
1826
1826
|
let { x: t, y: n, width: r, height: i } = e;
|
|
1827
1827
|
return {
|
|
1828
1828
|
width: r,
|
|
@@ -1837,8 +1837,8 @@ function ci(e) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
//#endregion
|
|
1839
1839
|
//#region ../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
1840
|
-
function
|
|
1841
|
-
let { reference: r, floating: i } = e, a =
|
|
1840
|
+
function ui(e, t, n) {
|
|
1841
|
+
let { reference: r, floating: i } = e, a = Yr(t), o = Xr(t), s = Jr(o), c = Gr(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
1842
1842
|
switch (c) {
|
|
1843
1843
|
case "top":
|
|
1844
1844
|
p = {
|
|
@@ -1869,7 +1869,7 @@ function li(e, t, n) {
|
|
|
1869
1869
|
y: r.y
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
switch (
|
|
1872
|
+
switch (Kr(t)) {
|
|
1873
1873
|
case "start":
|
|
1874
1874
|
p[o] -= f * (n && l ? -1 : 1);
|
|
1875
1875
|
break;
|
|
@@ -1879,9 +1879,9 @@ function li(e, t, n) {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
return p;
|
|
1881
1881
|
}
|
|
1882
|
-
async function
|
|
1882
|
+
async function di(e, t) {
|
|
1883
1883
|
t === void 0 && (t = {});
|
|
1884
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
1884
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Wr(t, e), p = ci(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = li(await i.getClippingRect({
|
|
1885
1885
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
1886
1886
|
boundary: c,
|
|
1887
1887
|
rootBoundary: l,
|
|
@@ -1894,7 +1894,7 @@ async function ui(e, t) {
|
|
|
1894
1894
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
1895
1895
|
x: 1,
|
|
1896
1896
|
y: 1
|
|
1897
|
-
}, y =
|
|
1897
|
+
}, y = li(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1898
1898
|
elements: o,
|
|
1899
1899
|
rect: g,
|
|
1900
1900
|
offsetParent: _,
|
|
@@ -1907,15 +1907,15 @@ async function ui(e, t) {
|
|
|
1907
1907
|
right: (y.right - h.right + p.right) / v.x
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
|
-
var
|
|
1910
|
+
var fi = 50, pi = async (e, t, n) => {
|
|
1911
1911
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
1912
1912
|
...o,
|
|
1913
|
-
detectOverflow:
|
|
1913
|
+
detectOverflow: di
|
|
1914
1914
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
1915
1915
|
reference: e,
|
|
1916
1916
|
floating: t,
|
|
1917
1917
|
strategy: i
|
|
1918
|
-
}), { x: u, y: d } =
|
|
1918
|
+
}), { x: u, y: d } = ui(l, r, c), f = r, p = 0, m = {};
|
|
1919
1919
|
for (let n = 0; n < a.length; n++) {
|
|
1920
1920
|
let h = a[n];
|
|
1921
1921
|
if (!h) continue;
|
|
@@ -1936,11 +1936,11 @@ var di = 50, fi = async (e, t, n) => {
|
|
|
1936
1936
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
1937
1937
|
...m[g],
|
|
1938
1938
|
...b
|
|
1939
|
-
}, x && p <
|
|
1939
|
+
}, x && p < fi && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
1940
1940
|
reference: e,
|
|
1941
1941
|
floating: t,
|
|
1942
1942
|
strategy: i
|
|
1943
|
-
}) : x.rects), {x: u, y: d} =
|
|
1943
|
+
}) : x.rects), {x: u, y: d} = ui(l, f, c)), n = -1);
|
|
1944
1944
|
}
|
|
1945
1945
|
return {
|
|
1946
1946
|
x: u,
|
|
@@ -1949,19 +1949,19 @@ var di = 50, fi = async (e, t, n) => {
|
|
|
1949
1949
|
strategy: i,
|
|
1950
1950
|
middlewareData: m
|
|
1951
1951
|
};
|
|
1952
|
-
},
|
|
1952
|
+
}, mi = function(e) {
|
|
1953
1953
|
return e === void 0 && (e = {}), {
|
|
1954
1954
|
name: "flip",
|
|
1955
1955
|
options: e,
|
|
1956
1956
|
async fn(t) {
|
|
1957
1957
|
var n;
|
|
1958
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
1958
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Wr(e, t);
|
|
1959
1959
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
1960
|
-
let g =
|
|
1961
|
-
!d && x && b.push(...
|
|
1960
|
+
let g = Gr(r), _ = Yr(o), v = Gr(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [oi(o)] : Qr(o)), x = p !== "none";
|
|
1961
|
+
!d && x && b.push(...ai(o, m, p, y));
|
|
1962
1962
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
1963
1963
|
if (l && w.push(C[g]), u) {
|
|
1964
|
-
let e =
|
|
1964
|
+
let e = Zr(r, a, y);
|
|
1965
1965
|
w.push(C[e[0]], C[e[1]]);
|
|
1966
1966
|
}
|
|
1967
1967
|
if (T = [...T, {
|
|
@@ -1969,7 +1969,7 @@ var di = 50, fi = async (e, t, n) => {
|
|
|
1969
1969
|
overflows: w
|
|
1970
1970
|
}], !w.every((e) => e <= 0)) {
|
|
1971
1971
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
1972
|
-
if (t && (!(u === "alignment" && _ !==
|
|
1972
|
+
if (t && (!(u === "alignment" && _ !== Yr(t)) || T.every((e) => Yr(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
1973
1973
|
data: {
|
|
1974
1974
|
index: e,
|
|
1975
1975
|
overflows: T
|
|
@@ -1981,7 +1981,7 @@ var di = 50, fi = async (e, t, n) => {
|
|
|
1981
1981
|
case "bestFit": {
|
|
1982
1982
|
let e = T.filter((e) => {
|
|
1983
1983
|
if (x) {
|
|
1984
|
-
let t =
|
|
1984
|
+
let t = Yr(e.placement);
|
|
1985
1985
|
return t === _ || t === "y";
|
|
1986
1986
|
}
|
|
1987
1987
|
return !0;
|
|
@@ -1998,9 +1998,9 @@ var di = 50, fi = async (e, t, n) => {
|
|
|
1998
1998
|
return {};
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
|
-
},
|
|
2002
|
-
async function
|
|
2003
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
2001
|
+
}, hi = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2002
|
+
async function gi(e, t) {
|
|
2003
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Gr(n), s = Kr(n), c = Yr(n) === "y", l = hi.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Wr(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
2004
2004
|
mainAxis: d,
|
|
2005
2005
|
crossAxis: 0,
|
|
2006
2006
|
alignmentAxis: null
|
|
@@ -2017,13 +2017,13 @@ async function hi(e, t) {
|
|
|
2017
2017
|
y: p * u
|
|
2018
2018
|
};
|
|
2019
2019
|
}
|
|
2020
|
-
var
|
|
2020
|
+
var _i = function(e) {
|
|
2021
2021
|
return e === void 0 && (e = 0), {
|
|
2022
2022
|
name: "offset",
|
|
2023
2023
|
options: e,
|
|
2024
2024
|
async fn(t) {
|
|
2025
2025
|
var n;
|
|
2026
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
2026
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await gi(t, e);
|
|
2027
2027
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
2028
2028
|
x: r + s.x,
|
|
2029
2029
|
y: i + s.y,
|
|
@@ -2037,39 +2037,39 @@ var gi = function(e) {
|
|
|
2037
2037
|
};
|
|
2038
2038
|
//#endregion
|
|
2039
2039
|
//#region ../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2040
|
-
function
|
|
2040
|
+
function vi() {
|
|
2041
2041
|
return typeof window < "u";
|
|
2042
2042
|
}
|
|
2043
|
-
function vi(e) {
|
|
2044
|
-
return xi(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2045
|
-
}
|
|
2046
2043
|
function yi(e) {
|
|
2047
|
-
|
|
2048
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2044
|
+
return Si(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2049
2045
|
}
|
|
2050
2046
|
function bi(e) {
|
|
2051
|
-
|
|
2047
|
+
var t;
|
|
2048
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2052
2049
|
}
|
|
2053
2050
|
function xi(e) {
|
|
2054
|
-
return
|
|
2051
|
+
return ((Si(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2055
2052
|
}
|
|
2056
2053
|
function Si(e) {
|
|
2057
|
-
return
|
|
2054
|
+
return vi() ? e instanceof Node || e instanceof bi(e).Node : !1;
|
|
2058
2055
|
}
|
|
2059
2056
|
function Ci(e) {
|
|
2060
|
-
return
|
|
2057
|
+
return vi() ? e instanceof Element || e instanceof bi(e).Element : !1;
|
|
2061
2058
|
}
|
|
2062
2059
|
function wi(e) {
|
|
2063
|
-
return
|
|
2060
|
+
return vi() ? e instanceof HTMLElement || e instanceof bi(e).HTMLElement : !1;
|
|
2064
2061
|
}
|
|
2065
2062
|
function Ti(e) {
|
|
2066
|
-
|
|
2067
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2063
|
+
return !vi() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof bi(e).ShadowRoot;
|
|
2068
2064
|
}
|
|
2069
2065
|
function Ei(e) {
|
|
2070
|
-
|
|
2066
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Li(e);
|
|
2067
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2071
2068
|
}
|
|
2072
2069
|
function Di(e) {
|
|
2070
|
+
return /^(table|td|th)$/.test(yi(e));
|
|
2071
|
+
}
|
|
2072
|
+
function Oi(e) {
|
|
2073
2073
|
try {
|
|
2074
2074
|
if (e.matches(":popover-open")) return !0;
|
|
2075
2075
|
} catch {}
|
|
@@ -2079,31 +2079,31 @@ function Di(e) {
|
|
|
2079
2079
|
return !1;
|
|
2080
2080
|
}
|
|
2081
2081
|
}
|
|
2082
|
-
var
|
|
2083
|
-
function Mi(e) {
|
|
2084
|
-
let t = Si(e) ? Ii(e) : e;
|
|
2085
|
-
return Ai(t.transform) || Ai(t.translate) || Ai(t.scale) || Ai(t.rotate) || Ai(t.perspective) || !Pi() && (Ai(t.backdropFilter) || Ai(t.filter)) || Oi.test(t.willChange || "") || ki.test(t.contain || "");
|
|
2086
|
-
}
|
|
2082
|
+
var ki = /transform|translate|scale|rotate|perspective|filter/, Ai = /paint|layout|strict|content/, ji = (e) => !!e && e !== "none", Mi;
|
|
2087
2083
|
function Ni(e) {
|
|
2088
|
-
let t =
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2084
|
+
let t = Ci(e) ? Li(e) : e;
|
|
2085
|
+
return ji(t.transform) || ji(t.translate) || ji(t.scale) || ji(t.rotate) || ji(t.perspective) || !Fi() && (ji(t.backdropFilter) || ji(t.filter)) || ki.test(t.willChange || "") || Ai.test(t.contain || "");
|
|
2086
|
+
}
|
|
2087
|
+
function Pi(e) {
|
|
2088
|
+
let t = zi(e);
|
|
2089
|
+
for (; wi(t) && !Ii(t);) {
|
|
2090
|
+
if (Ni(t)) return t;
|
|
2091
|
+
if (Oi(t)) return null;
|
|
2092
|
+
t = zi(t);
|
|
2093
2093
|
}
|
|
2094
2094
|
return null;
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2097
|
-
return
|
|
2098
|
-
}
|
|
2099
|
-
function Fi(e) {
|
|
2100
|
-
return /^(html|body|#document)$/.test(vi(e));
|
|
2096
|
+
function Fi() {
|
|
2097
|
+
return Mi ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Mi;
|
|
2101
2098
|
}
|
|
2102
2099
|
function Ii(e) {
|
|
2103
|
-
return
|
|
2100
|
+
return /^(html|body|#document)$/.test(yi(e));
|
|
2104
2101
|
}
|
|
2105
2102
|
function Li(e) {
|
|
2106
|
-
return
|
|
2103
|
+
return bi(e).getComputedStyle(e);
|
|
2104
|
+
}
|
|
2105
|
+
function Ri(e) {
|
|
2106
|
+
return Ci(e) ? {
|
|
2107
2107
|
scrollLeft: e.scrollLeft,
|
|
2108
2108
|
scrollTop: e.scrollTop
|
|
2109
2109
|
} : {
|
|
@@ -2111,101 +2111,101 @@ function Li(e) {
|
|
|
2111
2111
|
scrollTop: e.scrollY
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
|
-
function Ri(e) {
|
|
2115
|
-
if (vi(e) === "html") return e;
|
|
2116
|
-
let t = e.assignedSlot || e.parentNode || wi(e) && e.host || bi(e);
|
|
2117
|
-
return wi(t) ? t.host : t;
|
|
2118
|
-
}
|
|
2119
2114
|
function zi(e) {
|
|
2120
|
-
|
|
2121
|
-
|
|
2115
|
+
if (yi(e) === "html") return e;
|
|
2116
|
+
let t = e.assignedSlot || e.parentNode || Ti(e) && e.host || xi(e);
|
|
2117
|
+
return Ti(t) ? t.host : t;
|
|
2118
|
+
}
|
|
2119
|
+
function Bi(e) {
|
|
2120
|
+
let t = zi(e);
|
|
2121
|
+
return Ii(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : wi(t) && Ei(t) ? t : Bi(t);
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2123
|
+
function Vi(e, t, n) {
|
|
2124
2124
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2125
|
-
let r =
|
|
2125
|
+
let r = Bi(e), i = r === e.ownerDocument?.body, a = bi(r);
|
|
2126
2126
|
if (i) {
|
|
2127
|
-
let e =
|
|
2128
|
-
return t.concat(a, a.visualViewport || [],
|
|
2129
|
-
} else return t.concat(r,
|
|
2127
|
+
let e = Hi(a);
|
|
2128
|
+
return t.concat(a, a.visualViewport || [], Ei(r) ? r : [], e && n ? Vi(e) : []);
|
|
2129
|
+
} else return t.concat(r, Vi(r, [], n));
|
|
2130
2130
|
}
|
|
2131
|
-
function
|
|
2131
|
+
function Hi(e) {
|
|
2132
2132
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2133
2133
|
}
|
|
2134
2134
|
//#endregion
|
|
2135
2135
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
2136
|
-
function
|
|
2137
|
-
let t =
|
|
2136
|
+
function Ui(e) {
|
|
2137
|
+
let t = Li(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = wi(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Vr(n) !== a || Vr(r) !== o;
|
|
2138
2138
|
return s && (n = a, r = o), {
|
|
2139
2139
|
width: n,
|
|
2140
2140
|
height: r,
|
|
2141
2141
|
$: s
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
function Ui(e) {
|
|
2145
|
-
return Si(e) ? e : e.contextElement;
|
|
2146
|
-
}
|
|
2147
2144
|
function Wi(e) {
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2145
|
+
return Ci(e) ? e : e.contextElement;
|
|
2146
|
+
}
|
|
2147
|
+
function Gi(e) {
|
|
2148
|
+
let t = Wi(e);
|
|
2149
|
+
if (!wi(t)) return Hr(1);
|
|
2150
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ui(t), o = (a ? Vr(n.width) : n.width) / r, s = (a ? Vr(n.height) : n.height) / i;
|
|
2151
2151
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2152
2152
|
x: o,
|
|
2153
2153
|
y: s
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2157
|
-
function
|
|
2158
|
-
let t =
|
|
2159
|
-
return !
|
|
2156
|
+
var Ki = /* @__PURE__ */ Hr(0);
|
|
2157
|
+
function qi(e) {
|
|
2158
|
+
let t = bi(e);
|
|
2159
|
+
return !Fi() || !t.visualViewport ? Ki : {
|
|
2160
2160
|
x: t.visualViewport.offsetLeft,
|
|
2161
2161
|
y: t.visualViewport.offsetTop
|
|
2162
2162
|
};
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2165
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
2164
|
+
function Ji(e, t, n) {
|
|
2165
|
+
return t === void 0 && (t = !1), !n || t && n !== bi(e) ? !1 : t;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Yi(e, t, n, r) {
|
|
2168
2168
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2169
|
-
let i = e.getBoundingClientRect(), a =
|
|
2170
|
-
t && (r ?
|
|
2171
|
-
let s =
|
|
2169
|
+
let i = e.getBoundingClientRect(), a = Wi(e), o = Hr(1);
|
|
2170
|
+
t && (r ? Ci(r) && (o = Gi(r)) : o = Gi(e));
|
|
2171
|
+
let s = Ji(a, n, r) ? qi(a) : Hr(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
2172
2172
|
if (a) {
|
|
2173
|
-
let e =
|
|
2173
|
+
let e = bi(a), t = r && Ci(r) ? bi(r) : r, n = e, i = Hi(n);
|
|
2174
2174
|
for (; i && r && t !== n;) {
|
|
2175
|
-
let e =
|
|
2176
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
2175
|
+
let e = Gi(i), t = i.getBoundingClientRect(), r = Li(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
2176
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = bi(i), i = Hi(n);
|
|
2177
2177
|
}
|
|
2178
2178
|
}
|
|
2179
|
-
return
|
|
2179
|
+
return li({
|
|
2180
2180
|
width: u,
|
|
2181
2181
|
height: d,
|
|
2182
2182
|
x: c,
|
|
2183
2183
|
y: l
|
|
2184
2184
|
});
|
|
2185
2185
|
}
|
|
2186
|
-
function Yi(e, t) {
|
|
2187
|
-
let n = Li(e).scrollLeft;
|
|
2188
|
-
return t ? t.left + n : Ji(bi(e)).left + n;
|
|
2189
|
-
}
|
|
2190
2186
|
function Xi(e, t) {
|
|
2187
|
+
let n = Ri(e).scrollLeft;
|
|
2188
|
+
return t ? t.left + n : Yi(xi(e)).left + n;
|
|
2189
|
+
}
|
|
2190
|
+
function Zi(e, t) {
|
|
2191
2191
|
let n = e.getBoundingClientRect();
|
|
2192
2192
|
return {
|
|
2193
|
-
x: n.left + t.scrollLeft -
|
|
2193
|
+
x: n.left + t.scrollLeft - Xi(e, n),
|
|
2194
2194
|
y: n.top + t.scrollTop
|
|
2195
2195
|
};
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
2197
|
+
function Qi(e) {
|
|
2198
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = xi(r), s = t ? Oi(t.floating) : !1;
|
|
2199
2199
|
if (r === o || s && a) return n;
|
|
2200
2200
|
let c = {
|
|
2201
2201
|
scrollLeft: 0,
|
|
2202
2202
|
scrollTop: 0
|
|
2203
|
-
}, l =
|
|
2204
|
-
if ((d || !d && !a) && ((
|
|
2205
|
-
let e =
|
|
2206
|
-
l =
|
|
2203
|
+
}, l = Hr(1), u = Hr(0), d = wi(r);
|
|
2204
|
+
if ((d || !d && !a) && ((yi(r) !== "body" || Ei(o)) && (c = Ri(r)), d)) {
|
|
2205
|
+
let e = Yi(r);
|
|
2206
|
+
l = Gi(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
2207
2207
|
}
|
|
2208
|
-
let f = o && !d && !a ?
|
|
2208
|
+
let f = o && !d && !a ? Zi(o, c) : Hr(0);
|
|
2209
2209
|
return {
|
|
2210
2210
|
width: n.width * l.x,
|
|
2211
2211
|
height: n.height * l.y,
|
|
@@ -2213,31 +2213,31 @@ function Zi(e) {
|
|
|
2213
2213
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
2214
2214
|
};
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2216
|
+
function $i(e) {
|
|
2217
2217
|
return Array.from(e.getClientRects());
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
let t =
|
|
2221
|
-
return
|
|
2219
|
+
function ea(e) {
|
|
2220
|
+
let t = xi(e), n = Ri(e), r = e.ownerDocument.body, i = Br(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = Br(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + Xi(e), s = -n.scrollTop;
|
|
2221
|
+
return Li(r).direction === "rtl" && (o += Br(t.clientWidth, r.clientWidth) - i), {
|
|
2222
2222
|
width: i,
|
|
2223
2223
|
height: a,
|
|
2224
2224
|
x: o,
|
|
2225
2225
|
y: s
|
|
2226
2226
|
};
|
|
2227
2227
|
}
|
|
2228
|
-
var
|
|
2229
|
-
function
|
|
2230
|
-
let n =
|
|
2228
|
+
var ta = 25;
|
|
2229
|
+
function na(e, t) {
|
|
2230
|
+
let n = bi(e), r = xi(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
2231
2231
|
if (i) {
|
|
2232
2232
|
a = i.width, o = i.height;
|
|
2233
|
-
let e =
|
|
2233
|
+
let e = Fi();
|
|
2234
2234
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
2235
2235
|
}
|
|
2236
|
-
let l =
|
|
2236
|
+
let l = Xi(r);
|
|
2237
2237
|
if (l <= 0) {
|
|
2238
2238
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
2239
|
-
o <=
|
|
2240
|
-
} else l <=
|
|
2239
|
+
o <= ta && (a -= o);
|
|
2240
|
+
} else l <= ta && (a += l);
|
|
2241
2241
|
return {
|
|
2242
2242
|
width: a,
|
|
2243
2243
|
height: o,
|
|
@@ -2245,8 +2245,8 @@ function ta(e, t) {
|
|
|
2245
2245
|
y: c
|
|
2246
2246
|
};
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2249
|
-
let n =
|
|
2248
|
+
function ra(e, t) {
|
|
2249
|
+
let n = Yi(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = wi(e) ? Gi(e) : Hr(1);
|
|
2250
2250
|
return {
|
|
2251
2251
|
width: e.clientWidth * a.x,
|
|
2252
2252
|
height: e.clientHeight * a.y,
|
|
@@ -2254,13 +2254,13 @@ function na(e, t) {
|
|
|
2254
2254
|
y: r * a.y
|
|
2255
2255
|
};
|
|
2256
2256
|
}
|
|
2257
|
-
function
|
|
2257
|
+
function ia(e, t, n) {
|
|
2258
2258
|
let r;
|
|
2259
|
-
if (t === "viewport") r =
|
|
2260
|
-
else if (t === "document") r =
|
|
2261
|
-
else if (
|
|
2259
|
+
if (t === "viewport") r = na(e, n);
|
|
2260
|
+
else if (t === "document") r = ea(xi(e));
|
|
2261
|
+
else if (Ci(t)) r = ra(t, n);
|
|
2262
2262
|
else {
|
|
2263
|
-
let n =
|
|
2263
|
+
let n = qi(e);
|
|
2264
2264
|
r = {
|
|
2265
2265
|
x: t.x - n.x,
|
|
2266
2266
|
y: t.y - n.y,
|
|
@@ -2268,27 +2268,27 @@ function ra(e, t, n) {
|
|
|
2268
2268
|
height: t.height
|
|
2269
2269
|
};
|
|
2270
2270
|
}
|
|
2271
|
-
return
|
|
2272
|
-
}
|
|
2273
|
-
function ia(e, t) {
|
|
2274
|
-
let n = Ri(e);
|
|
2275
|
-
return n === t || !Si(n) || Fi(n) ? !1 : Ii(n).position === "fixed" || ia(n, t);
|
|
2271
|
+
return li(r);
|
|
2276
2272
|
}
|
|
2277
2273
|
function aa(e, t) {
|
|
2274
|
+
let n = zi(e);
|
|
2275
|
+
return n === t || !Ci(n) || Ii(n) ? !1 : Li(n).position === "fixed" || aa(n, t);
|
|
2276
|
+
}
|
|
2277
|
+
function oa(e, t) {
|
|
2278
2278
|
let n = t.get(e);
|
|
2279
2279
|
if (n) return n;
|
|
2280
|
-
let r =
|
|
2281
|
-
for (;
|
|
2282
|
-
let t =
|
|
2283
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
2280
|
+
let r = Vi(e, [], !1).filter((e) => Ci(e) && yi(e) !== "body"), i = null, a = Li(e).position === "fixed", o = a ? zi(e) : e;
|
|
2281
|
+
for (; Ci(o) && !Ii(o);) {
|
|
2282
|
+
let t = Li(o), n = Ni(o);
|
|
2283
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || Ei(o) && !n && aa(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = zi(o);
|
|
2284
2284
|
}
|
|
2285
2285
|
return t.set(e, r), r;
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2288
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
2287
|
+
function sa(e) {
|
|
2288
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Oi(t) ? [] : oa(t, this._c) : [].concat(n), r], o = ia(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
2289
2289
|
for (let e = 1; e < a.length; e++) {
|
|
2290
|
-
let n =
|
|
2291
|
-
s =
|
|
2290
|
+
let n = ia(t, a[e], i);
|
|
2291
|
+
s = Br(n.top, s), c = zr(n.right, c), l = zr(n.bottom, l), u = Br(n.left, u);
|
|
2292
2292
|
}
|
|
2293
2293
|
return {
|
|
2294
2294
|
width: c - u,
|
|
@@ -2297,27 +2297,27 @@ function oa(e) {
|
|
|
2297
2297
|
y: s
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
let { width: t, height: n } =
|
|
2300
|
+
function ca(e) {
|
|
2301
|
+
let { width: t, height: n } = Ui(e);
|
|
2302
2302
|
return {
|
|
2303
2303
|
width: t,
|
|
2304
2304
|
height: n
|
|
2305
2305
|
};
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2308
|
-
let r =
|
|
2307
|
+
function la(e, t, n) {
|
|
2308
|
+
let r = wi(t), i = xi(t), a = n === "fixed", o = Yi(e, !0, a, t), s = {
|
|
2309
2309
|
scrollLeft: 0,
|
|
2310
2310
|
scrollTop: 0
|
|
2311
|
-
}, c =
|
|
2311
|
+
}, c = Hr(0);
|
|
2312
2312
|
function l() {
|
|
2313
|
-
c.x =
|
|
2313
|
+
c.x = Xi(i);
|
|
2314
2314
|
}
|
|
2315
|
-
if (r || !r && !a) if ((
|
|
2316
|
-
let e =
|
|
2315
|
+
if (r || !r && !a) if ((yi(t) !== "body" || Ei(i)) && (s = Ri(t)), r) {
|
|
2316
|
+
let e = Yi(t, !0, a, t);
|
|
2317
2317
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
2318
2318
|
} else i && l();
|
|
2319
2319
|
a && !r && i && l();
|
|
2320
|
-
let u = i && !r && !a ?
|
|
2320
|
+
let u = i && !r && !a ? Zi(i, s) : Hr(0);
|
|
2321
2321
|
return {
|
|
2322
2322
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
2323
2323
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -2325,34 +2325,34 @@ function ca(e, t, n) {
|
|
|
2325
2325
|
height: o.height
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2329
|
-
return
|
|
2328
|
+
function ua(e) {
|
|
2329
|
+
return Li(e).position === "static";
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
if (!
|
|
2331
|
+
function da(e, t) {
|
|
2332
|
+
if (!wi(e) || Li(e).position === "fixed") return null;
|
|
2333
2333
|
if (t) return t(e);
|
|
2334
2334
|
let n = e.offsetParent;
|
|
2335
|
-
return
|
|
2335
|
+
return xi(e) === n && (n = n.ownerDocument.body), n;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2338
|
-
let n =
|
|
2339
|
-
if (
|
|
2340
|
-
if (!
|
|
2341
|
-
let t =
|
|
2342
|
-
for (; t && !
|
|
2343
|
-
if (
|
|
2344
|
-
t =
|
|
2337
|
+
function fa(e, t) {
|
|
2338
|
+
let n = bi(e);
|
|
2339
|
+
if (Oi(e)) return n;
|
|
2340
|
+
if (!wi(e)) {
|
|
2341
|
+
let t = zi(e);
|
|
2342
|
+
for (; t && !Ii(t);) {
|
|
2343
|
+
if (Ci(t) && !ua(t)) return t;
|
|
2344
|
+
t = zi(t);
|
|
2345
2345
|
}
|
|
2346
2346
|
return n;
|
|
2347
2347
|
}
|
|
2348
|
-
let r =
|
|
2349
|
-
for (; r &&
|
|
2350
|
-
return r &&
|
|
2348
|
+
let r = da(e, t);
|
|
2349
|
+
for (; r && Di(r) && ua(r);) r = da(r, t);
|
|
2350
|
+
return r && Ii(r) && ua(r) && !Ni(r) ? n : r || Pi(e) || n;
|
|
2351
2351
|
}
|
|
2352
|
-
var
|
|
2353
|
-
let t = this.getOffsetParent ||
|
|
2352
|
+
var pa = async function(e) {
|
|
2353
|
+
let t = this.getOffsetParent || fa, n = this.getDimensions, r = await n(e.floating);
|
|
2354
2354
|
return {
|
|
2355
|
-
reference:
|
|
2355
|
+
reference: la(e.reference, await t(e.floating), e.strategy),
|
|
2356
2356
|
floating: {
|
|
2357
2357
|
x: 0,
|
|
2358
2358
|
y: 0,
|
|
@@ -2361,48 +2361,48 @@ var fa = async function(e) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
};
|
|
2363
2363
|
};
|
|
2364
|
-
function
|
|
2365
|
-
return
|
|
2366
|
-
}
|
|
2367
|
-
var
|
|
2368
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2369
|
-
getDocumentElement:
|
|
2370
|
-
getClippingRect:
|
|
2371
|
-
getOffsetParent:
|
|
2372
|
-
getElementRects:
|
|
2373
|
-
getClientRects:
|
|
2374
|
-
getDimensions:
|
|
2375
|
-
getScale:
|
|
2376
|
-
isElement:
|
|
2377
|
-
isRTL:
|
|
2378
|
-
},
|
|
2364
|
+
function ma(e) {
|
|
2365
|
+
return Li(e).direction === "rtl";
|
|
2366
|
+
}
|
|
2367
|
+
var ha = {
|
|
2368
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qi,
|
|
2369
|
+
getDocumentElement: xi,
|
|
2370
|
+
getClippingRect: sa,
|
|
2371
|
+
getOffsetParent: fa,
|
|
2372
|
+
getElementRects: pa,
|
|
2373
|
+
getClientRects: $i,
|
|
2374
|
+
getDimensions: ca,
|
|
2375
|
+
getScale: Gi,
|
|
2376
|
+
isElement: Ci,
|
|
2377
|
+
isRTL: ma
|
|
2378
|
+
}, ga = _i, _a = mi, va = (e, t, n) => {
|
|
2379
2379
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
2380
|
-
platform:
|
|
2380
|
+
platform: ha,
|
|
2381
2381
|
...n
|
|
2382
2382
|
}, a = {
|
|
2383
2383
|
...i.platform,
|
|
2384
2384
|
_c: r
|
|
2385
2385
|
};
|
|
2386
|
-
return
|
|
2386
|
+
return pi(e, t, {
|
|
2387
2387
|
...i,
|
|
2388
2388
|
platform: a
|
|
2389
2389
|
});
|
|
2390
|
-
},
|
|
2390
|
+
}, Z = /* @__PURE__ */ Se({
|
|
2391
2391
|
Vue: () => e,
|
|
2392
2392
|
Vue2: () => void 0,
|
|
2393
|
-
del: () =>
|
|
2394
|
-
install: () =>
|
|
2393
|
+
del: () => Sa,
|
|
2394
|
+
install: () => ba,
|
|
2395
2395
|
isVue2: () => !1,
|
|
2396
2396
|
isVue3: () => !0,
|
|
2397
|
-
set: () =>
|
|
2397
|
+
set: () => xa
|
|
2398
2398
|
});
|
|
2399
|
-
import * as
|
|
2400
|
-
we(
|
|
2401
|
-
function
|
|
2402
|
-
function
|
|
2399
|
+
import * as ya from "vue";
|
|
2400
|
+
we(Z, ya);
|
|
2401
|
+
function ba() {}
|
|
2402
|
+
function xa(e, t, n) {
|
|
2403
2403
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function Sa(e, t) {
|
|
2406
2406
|
if (Array.isArray(e)) {
|
|
2407
2407
|
e.splice(t, 1);
|
|
2408
2408
|
return;
|
|
@@ -2411,40 +2411,40 @@ function xa(e, t) {
|
|
|
2411
2411
|
}
|
|
2412
2412
|
//#endregion
|
|
2413
2413
|
//#region ../node_modules/.pnpm/@floating-ui+vue@1.1.11_vue@3.5.32_typescript@5.9.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs
|
|
2414
|
-
function
|
|
2414
|
+
function Ca(e) {
|
|
2415
2415
|
return typeof e == "object" && !!e && "$el" in e;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2418
|
-
if (
|
|
2417
|
+
function wa(e) {
|
|
2418
|
+
if (Ca(e)) {
|
|
2419
2419
|
let t = e.$el;
|
|
2420
|
-
return
|
|
2420
|
+
return Si(t) && yi(t) === "#comment" ? null : t;
|
|
2421
2421
|
}
|
|
2422
2422
|
return e;
|
|
2423
2423
|
}
|
|
2424
|
-
function wa(e) {
|
|
2425
|
-
return typeof e == "function" ? e() : (0, Q.unref)(e);
|
|
2426
|
-
}
|
|
2427
2424
|
function Ta(e) {
|
|
2425
|
+
return typeof e == "function" ? e() : (0, Z.unref)(e);
|
|
2426
|
+
}
|
|
2427
|
+
function Ea(e) {
|
|
2428
2428
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2431
|
-
let n =
|
|
2430
|
+
function Da(e, t) {
|
|
2431
|
+
let n = Ea(e);
|
|
2432
2432
|
return Math.round(t * n) / n;
|
|
2433
2433
|
}
|
|
2434
|
-
function
|
|
2434
|
+
function Oa(e, t, n) {
|
|
2435
2435
|
n === void 0 && (n = {});
|
|
2436
|
-
let r = n.whileElementsMounted, i = (0,
|
|
2436
|
+
let r = n.whileElementsMounted, i = (0, Z.computed)(() => Ta(n.open) ?? !0), a = (0, Z.computed)(() => Ta(n.middleware)), o = (0, Z.computed)(() => Ta(n.placement) ?? "bottom"), s = (0, Z.computed)(() => Ta(n.strategy) ?? "absolute"), c = (0, Z.computed)(() => Ta(n.transform) ?? !0), l = (0, Z.computed)(() => wa(e.value)), u = (0, Z.computed)(() => wa(t.value)), d = (0, Z.ref)(0), f = (0, Z.ref)(0), p = (0, Z.ref)(s.value), m = (0, Z.ref)(o.value), h = (0, Z.shallowRef)({}), g = (0, Z.ref)(!1), _ = (0, Z.computed)(() => {
|
|
2437
2437
|
let e = {
|
|
2438
2438
|
position: p.value,
|
|
2439
2439
|
left: "0",
|
|
2440
2440
|
top: "0"
|
|
2441
2441
|
};
|
|
2442
2442
|
if (!u.value) return e;
|
|
2443
|
-
let t =
|
|
2443
|
+
let t = Da(u.value, d.value), n = Da(u.value, f.value);
|
|
2444
2444
|
return c.value ? {
|
|
2445
2445
|
...e,
|
|
2446
2446
|
transform: "translate(" + t + "px, " + n + "px)",
|
|
2447
|
-
...
|
|
2447
|
+
...Ea(u.value) >= 1.5 && { willChange: "transform" }
|
|
2448
2448
|
} : {
|
|
2449
2449
|
position: p.value,
|
|
2450
2450
|
left: t + "px",
|
|
@@ -2454,7 +2454,7 @@ function Da(e, t, n) {
|
|
|
2454
2454
|
function y() {
|
|
2455
2455
|
if (l.value == null || u.value == null) return;
|
|
2456
2456
|
let e = i.value;
|
|
2457
|
-
|
|
2457
|
+
va(l.value, u.value, {
|
|
2458
2458
|
middleware: a.value,
|
|
2459
2459
|
placement: o.value,
|
|
2460
2460
|
strategy: s.value
|
|
@@ -2478,54 +2478,54 @@ function Da(e, t, n) {
|
|
|
2478
2478
|
function S() {
|
|
2479
2479
|
i.value || (g.value = !1);
|
|
2480
2480
|
}
|
|
2481
|
-
return (0,
|
|
2481
|
+
return (0, Z.watch)([
|
|
2482
2482
|
a,
|
|
2483
2483
|
o,
|
|
2484
2484
|
s,
|
|
2485
2485
|
i
|
|
2486
|
-
], y, { flush: "sync" }), (0,
|
|
2487
|
-
x: (0,
|
|
2488
|
-
y: (0,
|
|
2489
|
-
strategy: (0,
|
|
2490
|
-
placement: (0,
|
|
2491
|
-
middlewareData: (0,
|
|
2492
|
-
isPositioned: (0,
|
|
2486
|
+
], y, { flush: "sync" }), (0, Z.watch)([l, u], x, { flush: "sync" }), (0, Z.watch)(i, S, { flush: "sync" }), (0, Z.getCurrentScope)() && (0, Z.onScopeDispose)(b), {
|
|
2487
|
+
x: (0, Z.shallowReadonly)(d),
|
|
2488
|
+
y: (0, Z.shallowReadonly)(f),
|
|
2489
|
+
strategy: (0, Z.shallowReadonly)(p),
|
|
2490
|
+
placement: (0, Z.shallowReadonly)(m),
|
|
2491
|
+
middlewareData: (0, Z.shallowReadonly)(h),
|
|
2492
|
+
isPositioned: (0, Z.shallowReadonly)(g),
|
|
2493
2493
|
floatingStyles: _,
|
|
2494
2494
|
update: y
|
|
2495
2495
|
};
|
|
2496
2496
|
}
|
|
2497
2497
|
//#endregion
|
|
2498
2498
|
//#region src/composables/useSlotPresence.ts
|
|
2499
|
-
function
|
|
2499
|
+
function ka(e, t) {
|
|
2500
2500
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
2501
2501
|
let n = e.textContent ?? "";
|
|
2502
2502
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function Aa(e, t, n) {
|
|
2505
2505
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
2506
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
2506
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : ka(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function ja(e) {
|
|
2509
2509
|
if (e.shadowRoot) return null;
|
|
2510
2510
|
let t = e._slots;
|
|
2511
2511
|
return !t || typeof t != "object" ? null : t;
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Ma(e, t, n) {
|
|
2514
2514
|
let r = e[t === "" ? "default" : t];
|
|
2515
|
-
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
2515
|
+
return r ? r.some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : ka(e, n)) : !1;
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function Na(e, t) {
|
|
2518
2518
|
let n = e.shadowRoot;
|
|
2519
2519
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2522
|
-
let i = n ?
|
|
2523
|
-
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
2524
|
-
let a =
|
|
2525
|
-
return a ?
|
|
2521
|
+
function Pa(e, t, { useShadowSlot: n = !0, countWhitespaceTextInDefaultSlot: r = !1 } = {}) {
|
|
2522
|
+
let i = n ? Na(e, t) : null;
|
|
2523
|
+
if (i) return i.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : ka(e, r));
|
|
2524
|
+
let a = ja(e);
|
|
2525
|
+
return a ? Ma(a, t, r) : Aa(e, t, r);
|
|
2526
2526
|
}
|
|
2527
|
-
function
|
|
2528
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
2527
|
+
function Fa(e, t = {}) {
|
|
2528
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Cr(), l = i ?? le(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = M(d());
|
|
2529
2529
|
E(() => {
|
|
2530
2530
|
f.value = d();
|
|
2531
2531
|
});
|
|
@@ -2541,19 +2541,19 @@ function Pa(e, t = {}) {
|
|
|
2541
2541
|
p.value = !1;
|
|
2542
2542
|
return;
|
|
2543
2543
|
}
|
|
2544
|
-
p.value =
|
|
2544
|
+
p.value = Pa(t, e, {
|
|
2545
2545
|
useShadowSlot: o,
|
|
2546
2546
|
countWhitespaceTextInDefaultSlot: s
|
|
2547
2547
|
});
|
|
2548
2548
|
}, v = () => {
|
|
2549
2549
|
if (!c.value) return;
|
|
2550
2550
|
g();
|
|
2551
|
-
let
|
|
2552
|
-
if (!
|
|
2551
|
+
let e = ae(n);
|
|
2552
|
+
if (!e) {
|
|
2553
2553
|
p.value = !1;
|
|
2554
2554
|
return;
|
|
2555
2555
|
}
|
|
2556
|
-
_(), o && (h =
|
|
2556
|
+
_(), o && (h = e.shadowRoot, h?.addEventListener("slotchange", _)), a && (m = new MutationObserver(() => _()), m.observe(e, {
|
|
2557
2557
|
childList: !0,
|
|
2558
2558
|
subtree: !1,
|
|
2559
2559
|
attributes: !0,
|
|
@@ -2572,17 +2572,17 @@ function Pa(e, t = {}) {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
//#endregion
|
|
2574
2574
|
//#region src/components/base/PvPopoverV2/useHoverPopoverGroup.ts
|
|
2575
|
-
var
|
|
2575
|
+
var Ia = /* @__PURE__ */ new Set(), La = (e, t) => {
|
|
2576
2576
|
let n = t.root.value;
|
|
2577
2577
|
return n ? !!(e.root.value?.contains(n) || e.floating?.value?.contains(n) || e.hoverArea?.value?.contains(n)) : !1;
|
|
2578
|
-
},
|
|
2578
|
+
}, Ra = (e) => (k(() => Ia.delete(e)), (t) => {
|
|
2579
2579
|
if (!t) {
|
|
2580
|
-
|
|
2580
|
+
Ia.delete(e);
|
|
2581
2581
|
return;
|
|
2582
2582
|
}
|
|
2583
|
-
for (let t of [...
|
|
2584
|
-
|
|
2585
|
-
}),
|
|
2583
|
+
for (let t of [...Ia]) t !== e && !La(t, e) && t.close() && Ia.delete(t);
|
|
2584
|
+
Ia.add(e);
|
|
2585
|
+
}), za = ["popover"], Ba = "--pv-popover-v2-anchor", Va = /* @__PURE__ */ f({
|
|
2586
2586
|
__name: "PvPopoverV2",
|
|
2587
2587
|
props: /* @__PURE__ */ y({
|
|
2588
2588
|
disableAutoPlacement: {
|
|
@@ -2654,13 +2654,13 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2654
2654
|
}),
|
|
2655
2655
|
emits: ["update:modelValue"],
|
|
2656
2656
|
setup(e) {
|
|
2657
|
-
let t = e, c = ce(e, "modelValue"), l = m(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } =
|
|
2657
|
+
let t = e, c = ce(e, "modelValue"), l = m(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: f } = Fa("content", { host: u }), p = r(() => u ? f.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
2658
2658
|
"anchor-name: --pv-anchor",
|
|
2659
2659
|
"position-area: bottom",
|
|
2660
2660
|
"position-try-fallbacks: flip-block",
|
|
2661
2661
|
"position-visibility: anchors-visible",
|
|
2662
|
-
`anchor-scope: ${
|
|
2663
|
-
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), b = M(null), S = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), C = tt(S), T = tt(b), E = M(!1), O = M(!1), j = M(!1), ee =
|
|
2662
|
+
`anchor-scope: ${Ba}`
|
|
2663
|
+
].every((e) => CSS.supports(e)), g = M(!1), _ = M(null), v = M(null), y = M(null), b = M(null), S = r(() => t.hoverTarget && v.value?.closest(t.hoverTarget) || v.value), C = tt(S), T = tt(b), E = M(!1), O = M(!1), j = M(!1), ee = Ra({
|
|
2664
2664
|
root: _,
|
|
2665
2665
|
floating: b,
|
|
2666
2666
|
hoverArea: r(() => t.hoverTarget ? S.value : null),
|
|
@@ -2719,12 +2719,12 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2719
2719
|
}
|
|
2720
2720
|
}, re = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => ({
|
|
2721
2721
|
width: "fit-content",
|
|
2722
|
-
...h ? { "anchor-scope":
|
|
2722
|
+
...h ? { "anchor-scope": Ba } : void 0,
|
|
2723
2723
|
...t.cssCustomProperties
|
|
2724
|
-
})), F = r(() => h ? { "anchor-name":
|
|
2724
|
+
})), F = r(() => h ? { "anchor-name": Ba } : void 0), ie = r(() => {
|
|
2725
2725
|
let e = ne[t.position];
|
|
2726
2726
|
return {
|
|
2727
|
-
"position-anchor":
|
|
2727
|
+
"position-anchor": Ba,
|
|
2728
2728
|
"position-area": e.area,
|
|
2729
2729
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
2730
2730
|
[e.margin]: `${t.offset ?? 0}px`
|
|
@@ -2732,8 +2732,8 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2732
2732
|
}), I = () => {}, oe = () => ({});
|
|
2733
2733
|
if (!h) {
|
|
2734
2734
|
let e = [];
|
|
2735
|
-
t.disableAutoPlacement || e.push(
|
|
2736
|
-
let n =
|
|
2735
|
+
t.disableAutoPlacement || e.push(_a({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(ga(t.offset));
|
|
2736
|
+
let n = Oa(y, b, {
|
|
2737
2737
|
placement: te[t.position],
|
|
2738
2738
|
strategy: t.positioningStrategy,
|
|
2739
2739
|
middleware: e
|
|
@@ -2852,7 +2852,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2852
2852
|
onToggle: we,
|
|
2853
2853
|
onFocusin: xe,
|
|
2854
2854
|
onFocusout: Se
|
|
2855
|
-
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44,
|
|
2855
|
+
}, [e.disabled ? a("v-if", !0) : N(r.$slots, "content", { key: 0 })], 44, za)) : p.value ? (A(), i(n, {
|
|
2856
2856
|
key: 1,
|
|
2857
2857
|
to: e.teleportLocation,
|
|
2858
2858
|
disabled: !t.useTeleport || e.disabled
|
|
@@ -2865,7 +2865,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2865
2865
|
onFocusout: Se
|
|
2866
2866
|
}, [N(r.$slots, "content")], 36), [[pe, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
2867
2867
|
}
|
|
2868
|
-
}),
|
|
2868
|
+
}), Ha = ["data-variant"], Ua = /* @__PURE__ */ f({
|
|
2869
2869
|
__name: "PvTooltipV2",
|
|
2870
2870
|
props: {
|
|
2871
2871
|
variant: {
|
|
@@ -2910,8 +2910,8 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2910
2910
|
cssCustomProperties: { type: Object }
|
|
2911
2911
|
},
|
|
2912
2912
|
setup(e) {
|
|
2913
|
-
let t = e, n = m(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } =
|
|
2914
|
-
return (t, n) => (A(), i(
|
|
2913
|
+
let t = e, n = m(), a = typeof HTMLElement < "u" && n && "ce" in n && n.ce instanceof HTMLElement ? n.ce : void 0, { hasVueSlot: o, hasNativeSlot: u } = Fa("content", { host: a }), d = r(() => a ? u.value : o.value), f = r(() => !!t.description || d.value);
|
|
2914
|
+
return (t, n) => (A(), i(Va, C(g(t.$props)), c({
|
|
2915
2915
|
trigger: he(() => [N(t.$slots, "trigger", {}, () => [s("p", null, F(e.label), 1)])]),
|
|
2916
2916
|
_: 2
|
|
2917
2917
|
}, [f.value ? {
|
|
@@ -2920,18 +2920,18 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
2920
2920
|
class: S(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
2921
2921
|
role: "tooltip",
|
|
2922
2922
|
"data-variant": e.variant
|
|
2923
|
-
}, [N(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10,
|
|
2923
|
+
}, [N(t.$slots, "content", {}, () => [l(F(e.description), 1)])], 10, Ha)]),
|
|
2924
2924
|
key: "0"
|
|
2925
2925
|
} : void 0]), 1040));
|
|
2926
2926
|
}
|
|
2927
|
-
}),
|
|
2927
|
+
}), Wa = ["title"], Ga = ["title"], Ka = { style: {
|
|
2928
2928
|
"max-width": "220px",
|
|
2929
2929
|
"white-space": "normal",
|
|
2930
2930
|
"overflow-wrap": "break-word"
|
|
2931
|
-
} },
|
|
2931
|
+
} }, qa = {
|
|
2932
2932
|
key: 7,
|
|
2933
2933
|
class: "pv-text-subdued pv-text-body-xs"
|
|
2934
|
-
},
|
|
2934
|
+
}, Ja = /* @__PURE__ */ f({
|
|
2935
2935
|
inheritAttrs: !1,
|
|
2936
2936
|
__name: "PvMenuBaseItem",
|
|
2937
2937
|
props: {
|
|
@@ -3009,7 +3009,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3009
3009
|
flush: "post",
|
|
3010
3010
|
deep: !0
|
|
3011
3011
|
}), (n, r) => (A(), o(t, null, [
|
|
3012
|
-
e.avatar ? (A(), i(
|
|
3012
|
+
e.avatar ? (A(), i(Ir, {
|
|
3013
3013
|
key: 0,
|
|
3014
3014
|
initials: e.avatar.initials,
|
|
3015
3015
|
image: e.avatar.image,
|
|
@@ -3023,7 +3023,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3023
3023
|
"shape",
|
|
3024
3024
|
"size"
|
|
3025
3025
|
])) : a("v-if", !0),
|
|
3026
|
-
e.icon ? (A(), i(
|
|
3026
|
+
e.icon ? (A(), i(Dr, {
|
|
3027
3027
|
key: 1,
|
|
3028
3028
|
class: S({ "pv-text-subdued": !e.disabled }),
|
|
3029
3029
|
name: e.icon,
|
|
@@ -3033,7 +3033,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3033
3033
|
"name",
|
|
3034
3034
|
"size"
|
|
3035
3035
|
])) : a("v-if", !0),
|
|
3036
|
-
e.companyName ? (A(), i(
|
|
3036
|
+
e.companyName ? (A(), i(Nr, {
|
|
3037
3037
|
key: 2,
|
|
3038
3038
|
name: e.companyName,
|
|
3039
3039
|
size: "sm"
|
|
@@ -3063,7 +3063,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3063
3063
|
key: 0,
|
|
3064
3064
|
class: S({ "pv-text-subdued": !e.disabled }),
|
|
3065
3065
|
style: { "padding-left": "4px" }
|
|
3066
|
-
}, F(e.subduedText), 3)) : a("v-if", !0)], 14,
|
|
3066
|
+
}, F(e.subduedText), 3)) : a("v-if", !0)], 14, Wa), p.value ? (A(), o("span", {
|
|
3067
3067
|
key: 0,
|
|
3068
3068
|
ref_key: "subText",
|
|
3069
3069
|
ref: l,
|
|
@@ -3077,12 +3077,12 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3077
3077
|
]),
|
|
3078
3078
|
style: w(g.value),
|
|
3079
3079
|
title: e.hoverTitle ?? (h.value ? void 0 : p.value)
|
|
3080
|
-
}, F(p.value), 15,
|
|
3081
|
-
e.secondaryLoading ? (A(), i(
|
|
3080
|
+
}, F(p.value), 15, Ga)) : a("v-if", !0)], 2),
|
|
3081
|
+
e.secondaryLoading ? (A(), i(Rr, {
|
|
3082
3082
|
key: 3,
|
|
3083
3083
|
size: "xs",
|
|
3084
3084
|
variant: "dark"
|
|
3085
|
-
})) : e.secondaryIcon ? (A(), i(
|
|
3085
|
+
})) : e.secondaryIcon ? (A(), i(Dr, {
|
|
3086
3086
|
key: 4,
|
|
3087
3087
|
class: S({ "pv-text-subdued": !e.disabled }),
|
|
3088
3088
|
name: e.secondaryIcon,
|
|
@@ -3091,7 +3091,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3091
3091
|
"class",
|
|
3092
3092
|
"name",
|
|
3093
3093
|
"size"
|
|
3094
|
-
])) : e.description ? (A(), i(
|
|
3094
|
+
])) : e.description ? (A(), i(Ua, {
|
|
3095
3095
|
key: 5,
|
|
3096
3096
|
variant: "dark",
|
|
3097
3097
|
position: "top-center",
|
|
@@ -3100,26 +3100,26 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3100
3100
|
disableInteractive: !0,
|
|
3101
3101
|
style: { "pointer-events": "auto" }
|
|
3102
3102
|
}, {
|
|
3103
|
-
trigger: he(() => [a(" stop the click so reading the description doesn't also toggle the option "), u(
|
|
3103
|
+
trigger: he(() => [a(" stop the click so reading the description doesn't also toggle the option "), u(Dr, {
|
|
3104
3104
|
size: 12,
|
|
3105
3105
|
name: "info-circle",
|
|
3106
3106
|
class: "pv-text-subdued",
|
|
3107
3107
|
onClick: r[0] ||= _e(() => {}, ["stop", "prevent"])
|
|
3108
3108
|
})]),
|
|
3109
|
-
content: he(() => [s("div",
|
|
3109
|
+
content: he(() => [s("div", Ka, F(e.description), 1)]),
|
|
3110
3110
|
_: 1
|
|
3111
|
-
})) : e.secondaryText && typeof e.secondaryText == "number" ? (A(), i(
|
|
3111
|
+
})) : e.secondaryText && typeof e.secondaryText == "number" ? (A(), i(Lr, {
|
|
3112
3112
|
key: 6,
|
|
3113
3113
|
value: e.secondaryText,
|
|
3114
3114
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
3115
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (A(), o("span",
|
|
3115
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (A(), o("span", qa, F(e.secondaryText), 1)) : a("v-if", !0)
|
|
3116
3116
|
], 64));
|
|
3117
3117
|
}
|
|
3118
|
-
}),
|
|
3118
|
+
}), Ya = ["for"], Xa = { key: 0 }, Za = [
|
|
3119
3119
|
"disabled",
|
|
3120
3120
|
"aria-label",
|
|
3121
3121
|
"id"
|
|
3122
|
-
],
|
|
3122
|
+
], Qa = /* @__PURE__ */ f({
|
|
3123
3123
|
__name: "PvSwitch",
|
|
3124
3124
|
props: /* @__PURE__ */ y({
|
|
3125
3125
|
size: {
|
|
@@ -3154,16 +3154,16 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3154
3154
|
"pv-input-xsmall": e.size === "sm",
|
|
3155
3155
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
3156
3156
|
}])
|
|
3157
|
-
}, [e.label ? (A(), o("span",
|
|
3157
|
+
}, [e.label ? (A(), o("span", Xa, F(e.label), 1)) : a("v-if", !0), ge(s("input", {
|
|
3158
3158
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
3159
3159
|
disabled: e.disabled,
|
|
3160
3160
|
"aria-label": e.ariaLabel,
|
|
3161
3161
|
type: "checkbox",
|
|
3162
3162
|
role: "switch",
|
|
3163
3163
|
id: ae(t)
|
|
3164
|
-
}, null, 8,
|
|
3164
|
+
}, null, 8, Za), [[de, n.value]])], 10, Ya));
|
|
3165
3165
|
}
|
|
3166
|
-
}),
|
|
3166
|
+
}), $a = ["aria-label", "disabled"], eo = /* @__PURE__ */ f({
|
|
3167
3167
|
__name: "PvActionButton",
|
|
3168
3168
|
props: {
|
|
3169
3169
|
icon: { type: String },
|
|
@@ -3195,7 +3195,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3195
3195
|
}, o = (e) => {
|
|
3196
3196
|
n.disabled || r("click", e);
|
|
3197
3197
|
};
|
|
3198
|
-
return (t, n) => (A(), i(
|
|
3198
|
+
return (t, n) => (A(), i(Ua, {
|
|
3199
3199
|
position: e.tooltipPosition,
|
|
3200
3200
|
"disable-interactive": !0,
|
|
3201
3201
|
"use-teleport": !0
|
|
@@ -3207,10 +3207,10 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3207
3207
|
"aria-label": e.tooltipText,
|
|
3208
3208
|
disabled: e.disabled,
|
|
3209
3209
|
onClick: _e(o, ["stop"])
|
|
3210
|
-
}, [u(
|
|
3210
|
+
}, [u(Dr, {
|
|
3211
3211
|
name: e.icon,
|
|
3212
3212
|
size: a[e.size]
|
|
3213
|
-
}, null, 8, ["name", "size"])], 10,
|
|
3213
|
+
}, null, 8, ["name", "size"])], 10, $a)]),
|
|
3214
3214
|
_: 2
|
|
3215
3215
|
}, [e.tooltipText ? {
|
|
3216
3216
|
name: "content",
|
|
@@ -3218,7 +3218,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3218
3218
|
key: "0"
|
|
3219
3219
|
} : void 0]), 1032, ["position"]));
|
|
3220
3220
|
}
|
|
3221
|
-
}),
|
|
3221
|
+
}), to = ["aria-label"], no = /* @__PURE__ */ xr(/* @__PURE__ */ f({
|
|
3222
3222
|
__name: "PvMenuItemAction",
|
|
3223
3223
|
props: {
|
|
3224
3224
|
action: { type: Object },
|
|
@@ -3232,7 +3232,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3232
3232
|
}), p = r(() => typeof n.action.tooltipText == "function" ? n.action.tooltipText(n.option) : n.action.tooltipText), m = r(() => (typeof n.action.interactive == "function" ? n.action.interactive(n.option) : n.action.interactive) ?? !0), h = r(() => typeof n.action.alwaysShow == "function" ? n.action.alwaysShow(n.option) : n.action.alwaysShow), g = () => {
|
|
3233
3233
|
m.value && !f.value && n.action.action?.(n.option);
|
|
3234
3234
|
};
|
|
3235
|
-
return (e, n) => m.value ? (A(), i(
|
|
3235
|
+
return (e, n) => m.value ? (A(), i(eo, {
|
|
3236
3236
|
key: 0,
|
|
3237
3237
|
icon: d.value,
|
|
3238
3238
|
"tooltip-text": p.value ?? "",
|
|
@@ -3245,7 +3245,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3245
3245
|
"tooltip-text",
|
|
3246
3246
|
"disabled",
|
|
3247
3247
|
"always-show"
|
|
3248
|
-
])) : (A(), o(t, { key: 1 }, [a(" Non-interactive actions render as an informational icon rather than a button. "), u(
|
|
3248
|
+
])) : (A(), o(t, { key: 1 }, [a(" Non-interactive actions render as an informational icon rather than a button. "), u(Ua, {
|
|
3249
3249
|
"disable-interactive": !0,
|
|
3250
3250
|
"use-teleport": !0
|
|
3251
3251
|
}, c({
|
|
@@ -3254,7 +3254,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3254
3254
|
role: "img",
|
|
3255
3255
|
"aria-label": p.value,
|
|
3256
3256
|
onClick: n[0] ||= _e(() => {}, ["stop"])
|
|
3257
|
-
}, [u(
|
|
3257
|
+
}, [u(Dr, { name: d.value }, null, 8, ["name"])], 10, to)]),
|
|
3258
3258
|
_: 2
|
|
3259
3259
|
}, [p.value ? {
|
|
3260
3260
|
name: "content",
|
|
@@ -3262,7 +3262,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3262
3262
|
key: "0"
|
|
3263
3263
|
} : void 0]), 1024)], 2112));
|
|
3264
3264
|
}
|
|
3265
|
-
}), [["styles", [".pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}"]]]),
|
|
3265
|
+
}), [["styles", [".pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}"]]]), ro = Symbol("SelectedItemsKey"), io = Symbol("EnableCascadeSelectionKey"), ao = Symbol("MenuInteractionModeKey"), oo = Symbol("OriginalOptionsMapKey"), so = Symbol("CascadeSelectedParentIdsKey"), co = Symbol("CascadeDeselectedChildIdsKey"), lo = Symbol("ParentSelectsAllChildrenKey"), uo = Symbol("EnableChildExpansionKey"), fo = ["data-testid"], po = [
|
|
3266
3266
|
"hidden",
|
|
3267
3267
|
"type",
|
|
3268
3268
|
"checked",
|
|
@@ -3270,10 +3270,10 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3270
3270
|
"tabindex",
|
|
3271
3271
|
"aria-hidden",
|
|
3272
3272
|
"disabled"
|
|
3273
|
-
],
|
|
3273
|
+
], mo = {
|
|
3274
3274
|
key: 4,
|
|
3275
3275
|
class: "pv-menu-item-action"
|
|
3276
|
-
},
|
|
3276
|
+
}, ho = ["aria-label", "aria-expanded"], go = /* @__PURE__ */ f({
|
|
3277
3277
|
inheritAttrs: !1,
|
|
3278
3278
|
__name: "PvMenuItemVariant",
|
|
3279
3279
|
props: {
|
|
@@ -3315,17 +3315,17 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3315
3315
|
},
|
|
3316
3316
|
emits: ["handle-selected", "toggle-expanded"],
|
|
3317
3317
|
setup(e, { emit: t }) {
|
|
3318
|
-
let n = e, c = ue("inputRef"), l = _(
|
|
3319
|
-
if (!d.value || !
|
|
3320
|
-
let e = n.children ?
|
|
3318
|
+
let n = e, c = ue("inputRef"), l = _(ro, void 0), d = _(io, M(!1)), f = _(oo, void 0), p = _(so, void 0), h = _(ao, r(() => !1)), g = r(() => {
|
|
3319
|
+
if (!d.value || !Or(n)) return [];
|
|
3320
|
+
let e = n.children ? kr(n.children) : [];
|
|
3321
3321
|
if (f?.value) {
|
|
3322
3322
|
let t = f.value.get(n.id);
|
|
3323
|
-
return
|
|
3323
|
+
return Ar(t?.children ? kr(t.children) : [], e);
|
|
3324
3324
|
}
|
|
3325
3325
|
return e;
|
|
3326
3326
|
}), v = r(() => {
|
|
3327
3327
|
if (!l?.value) return n.selected ?? !1;
|
|
3328
|
-
if (d.value &&
|
|
3328
|
+
if (d.value && Or(n)) {
|
|
3329
3329
|
let e = g.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
3330
3330
|
if (p?.value?.has(n.id) && r >= t) return !0;
|
|
3331
3331
|
let i = n.totalChildCount ?? t;
|
|
@@ -3333,7 +3333,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
return l.value.some((e) => e.id === n.id);
|
|
3335
3335
|
}), y = r(() => {
|
|
3336
|
-
if (!l?.value || !d.value || !
|
|
3336
|
+
if (!l?.value || !d.value || !Or(n)) return n.indeterminate ?? !1;
|
|
3337
3337
|
let e = g.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
3338
3338
|
if (p?.value?.has(n.id) && r >= t) return !1;
|
|
3339
3339
|
let i = n.totalChildCount ?? t;
|
|
@@ -3387,8 +3387,8 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3387
3387
|
"aria-hidden": ae(h) ? !0 : void 0,
|
|
3388
3388
|
disabled: e.disabled,
|
|
3389
3389
|
onChange: r[0] ||= (e) => ae(h) ? void 0 : N(e)
|
|
3390
|
-
}, null, 42,
|
|
3391
|
-
e.menuOptionConfig?.renderer ? (A(), i(re(e.menuOptionConfig?.renderer), b({ key: 0 }, T.value, { selected: v.value }), null, 16, ["selected"])) : (A(), i(
|
|
3390
|
+
}, null, 42, po),
|
|
3391
|
+
e.menuOptionConfig?.renderer ? (A(), i(re(e.menuOptionConfig?.renderer), b({ key: 0 }, T.value, { selected: v.value }), null, 16, ["selected"])) : (A(), i(Ja, b({ key: 1 }, T.value, {
|
|
3392
3392
|
menuOptionConfig: e.menuOptionConfig,
|
|
3393
3393
|
queryText: e.queryText,
|
|
3394
3394
|
highlightSearchText: e.highlightSearchText
|
|
@@ -3397,12 +3397,12 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3397
3397
|
"queryText",
|
|
3398
3398
|
"highlightSearchText"
|
|
3399
3399
|
])),
|
|
3400
|
-
e.menuOptionConfig?.variant === "checkmark" && v.value ? (A(), i(
|
|
3400
|
+
e.menuOptionConfig?.variant === "checkmark" && v.value ? (A(), i(Dr, {
|
|
3401
3401
|
key: 2,
|
|
3402
3402
|
name: "check",
|
|
3403
3403
|
class: "pv-text-success"
|
|
3404
3404
|
})) : a("v-if", !0),
|
|
3405
|
-
e.menuOptionConfig?.variant === "toggle" ? (A(), i(
|
|
3405
|
+
e.menuOptionConfig?.variant === "toggle" ? (A(), i(Qa, {
|
|
3406
3406
|
key: 3,
|
|
3407
3407
|
modelValue: v.value,
|
|
3408
3408
|
ariaLabel: n.text || "Toggle",
|
|
@@ -3410,7 +3410,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3410
3410
|
hideCheckIcon: "",
|
|
3411
3411
|
style: { "pointer-events": "none" }
|
|
3412
3412
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("v-if", !0),
|
|
3413
|
-
E.value ? (A(), o("span",
|
|
3413
|
+
E.value ? (A(), o("span", mo, [u(no, {
|
|
3414
3414
|
action: E.value,
|
|
3415
3415
|
option: n,
|
|
3416
3416
|
disabled: e.disabled
|
|
@@ -3426,20 +3426,20 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3426
3426
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
3427
3427
|
"aria-expanded": e.expanded,
|
|
3428
3428
|
onClick: r[1] ||= _e((e) => te("toggle-expanded"), ["prevent", "stop"])
|
|
3429
|
-
}, [u(
|
|
3429
|
+
}, [u(Dr, {
|
|
3430
3430
|
name: e.chevronIcon ?? "chevron-right",
|
|
3431
3431
|
size: 12
|
|
3432
|
-
}, null, 8, ["name"])], 8,
|
|
3433
|
-
], 16,
|
|
3432
|
+
}, null, 8, ["name"])], 8, ho)) : a("v-if", !0)
|
|
3433
|
+
], 16, fo));
|
|
3434
3434
|
}
|
|
3435
|
-
}),
|
|
3435
|
+
}), _o = ["ghost"], vo = {
|
|
3436
3436
|
md: "pv-button-small",
|
|
3437
3437
|
lg: void 0,
|
|
3438
3438
|
xl: "pv-button-large"
|
|
3439
|
-
},
|
|
3439
|
+
}, yo = (e) => e == null || !vo.hasOwnProperty(e) ? null : vo[e] || null, bo = ["disabled", "aria-label"], xo = {
|
|
3440
3440
|
key: 2,
|
|
3441
3441
|
"data-testid": "pv-button-label"
|
|
3442
|
-
},
|
|
3442
|
+
}, So = /* @__PURE__ */ f({
|
|
3443
3443
|
__name: "PvButton",
|
|
3444
3444
|
props: {
|
|
3445
3445
|
variant: {
|
|
@@ -3472,8 +3472,8 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3472
3472
|
setup(e) {
|
|
3473
3473
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
3474
3474
|
let e = [];
|
|
3475
|
-
n.inverse &&
|
|
3476
|
-
let t =
|
|
3475
|
+
n.inverse && _o.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
3476
|
+
let t = yo(n.size);
|
|
3477
3477
|
return t && e.push(t), e;
|
|
3478
3478
|
});
|
|
3479
3479
|
return (n, r) => (A(), o("button", {
|
|
@@ -3482,34 +3482,34 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3482
3482
|
disabled: e.disabled,
|
|
3483
3483
|
"aria-label": s.value,
|
|
3484
3484
|
"data-testid": "pv-button"
|
|
3485
|
-
}, [e.loading ? (A(), i(
|
|
3485
|
+
}, [e.loading ? (A(), i(Rr, {
|
|
3486
3486
|
key: 0,
|
|
3487
3487
|
size: "sm"
|
|
3488
3488
|
})) : (A(), o(t, { key: 1 }, [
|
|
3489
|
-
e.leftCounterBadge ? (A(), i(
|
|
3489
|
+
e.leftCounterBadge ? (A(), i(Lr, {
|
|
3490
3490
|
key: 0,
|
|
3491
3491
|
value: e.leftCounterBadge,
|
|
3492
3492
|
variant: "tertiary"
|
|
3493
3493
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
3494
|
-
e.leftIcon ? (A(), i(
|
|
3494
|
+
e.leftIcon ? (A(), i(Dr, {
|
|
3495
3495
|
key: 1,
|
|
3496
3496
|
name: e.leftIcon,
|
|
3497
3497
|
"data-testid": "pv-button-left-icon"
|
|
3498
3498
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
3499
|
-
e.label ? (A(), o("span",
|
|
3500
|
-
e.rightCounterBadge ? (A(), i(
|
|
3499
|
+
e.label ? (A(), o("span", xo, F(e.label), 1)) : a("v-if", !0),
|
|
3500
|
+
e.rightCounterBadge ? (A(), i(Lr, {
|
|
3501
3501
|
key: 3,
|
|
3502
3502
|
value: e.rightCounterBadge,
|
|
3503
3503
|
variant: "tertiary"
|
|
3504
3504
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
3505
|
-
e.rightIcon ? (A(), i(
|
|
3505
|
+
e.rightIcon ? (A(), i(Dr, {
|
|
3506
3506
|
key: 4,
|
|
3507
3507
|
name: e.rightIcon,
|
|
3508
3508
|
"data-testid": "pv-button-right-icon"
|
|
3509
3509
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
3510
|
-
], 64))], 10,
|
|
3510
|
+
], 64))], 10, bo));
|
|
3511
3511
|
}
|
|
3512
|
-
}),
|
|
3512
|
+
}), Co = ["data-active"], wo = { key: 0 }, To = 4, Eo = /* @__PURE__ */ f({
|
|
3513
3513
|
inheritAttrs: !1,
|
|
3514
3514
|
__name: "PvMenuItem",
|
|
3515
3515
|
props: /* @__PURE__ */ y({
|
|
@@ -3553,7 +3553,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3553
3553
|
}),
|
|
3554
3554
|
emits: /* @__PURE__ */ y(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
3555
3555
|
setup(e, { emit: n }) {
|
|
3556
|
-
let i = e, s = _(
|
|
3556
|
+
let i = e, s = _(ro, void 0), c = ce(e, "selectedIds"), l = _(uo, M(!1)), d = _(lo, M(!1)), f = _(ao, r(() => !1)), p = oe(), m = r(() => {
|
|
3557
3557
|
if (!f.value) return {};
|
|
3558
3558
|
let e = new Set([
|
|
3559
3559
|
"aria-checked",
|
|
@@ -3570,7 +3570,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3570
3570
|
"tabindex"
|
|
3571
3571
|
]);
|
|
3572
3572
|
return Object.fromEntries(Object.entries(p).filter(([t]) => e.has(t)));
|
|
3573
|
-
}), h = _(
|
|
3573
|
+
}), h = _(so, void 0), g = _(co, void 0), v = M(i.defaultExpanded ?? !1);
|
|
3574
3574
|
L(() => i.defaultExpanded, (e) => {
|
|
3575
3575
|
e && (v.value = !0);
|
|
3576
3576
|
});
|
|
@@ -3588,10 +3588,10 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3588
3588
|
}, D = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), O = r(() => {
|
|
3589
3589
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
3590
3590
|
return f.value && delete r.selectedIds, r;
|
|
3591
|
-
}), k = r(() =>
|
|
3591
|
+
}), k = r(() => Or({
|
|
3592
3592
|
...i,
|
|
3593
3593
|
children: C.value
|
|
3594
|
-
}) && i.level <
|
|
3594
|
+
}) && i.level < To), j = r(() => k.value ? l.value ? v.value : !0 : !1), ee = r(() => v.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), re = n, P = r(() => x.value || i.totalChildCount == null ? !1 : i.totalChildCount > C.value.length), F = async () => {
|
|
3595
3595
|
if (y.value) return;
|
|
3596
3596
|
if (!i.handleSeeMore) {
|
|
3597
3597
|
re("see-more", {
|
|
@@ -3641,7 +3641,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3641
3641
|
};
|
|
3642
3642
|
return (n, r) => {
|
|
3643
3643
|
let s = ne("PvMenuItem", !0);
|
|
3644
|
-
return A(), o(t, null, [u(
|
|
3644
|
+
return A(), o(t, null, [u(go, b({
|
|
3645
3645
|
...O.value,
|
|
3646
3646
|
...m.value
|
|
3647
3647
|
}, {
|
|
@@ -3689,7 +3689,7 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3689
3689
|
"queryText",
|
|
3690
3690
|
"highlightSearchText",
|
|
3691
3691
|
"level"
|
|
3692
|
-
])], 10,
|
|
3692
|
+
])], 10, Co))), 128)), P.value ? (A(), o("li", wo, [u(So, {
|
|
3693
3693
|
class: "pv-text-brand",
|
|
3694
3694
|
variant: "ghost",
|
|
3695
3695
|
label: "See more",
|
|
@@ -3699,19 +3699,19 @@ var Fa = /* @__PURE__ */ new Set(), Ia = (e, t) => {
|
|
|
3699
3699
|
}, null, 8, ["loading"])])) : a("v-if", !0)], 4)) : a("v-if", !0)], 64);
|
|
3700
3700
|
};
|
|
3701
3701
|
}
|
|
3702
|
-
}),
|
|
3703
|
-
function
|
|
3702
|
+
}), Do = De ? window : void 0;
|
|
3703
|
+
function Oo(e) {
|
|
3704
3704
|
let t = I(e);
|
|
3705
3705
|
return t?.$el ?? t;
|
|
3706
3706
|
}
|
|
3707
|
-
function
|
|
3707
|
+
function ko(...e) {
|
|
3708
3708
|
let t = [], n = () => {
|
|
3709
3709
|
t.forEach((e) => e()), t.length = 0;
|
|
3710
3710
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
3711
3711
|
let t = Ie(I(e[0])).filter((e) => e != null);
|
|
3712
3712
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
3713
3713
|
}), o = Be(() => [
|
|
3714
|
-
a.value?.map((e) =>
|
|
3714
|
+
a.value?.map((e) => Oo(e)) ?? [Do].filter((e) => e != null),
|
|
3715
3715
|
Ie(I(a.value ? e[1] : e[0])),
|
|
3716
3716
|
Ie(ae(a.value ? e[2] : e[1])),
|
|
3717
3717
|
I(a.value ? e[3] : e[2])
|
|
@@ -3724,23 +3724,23 @@ function Oo(...e) {
|
|
|
3724
3724
|
o(), n();
|
|
3725
3725
|
};
|
|
3726
3726
|
}
|
|
3727
|
-
var
|
|
3728
|
-
function
|
|
3729
|
-
let { window: r =
|
|
3727
|
+
var Ao = !1;
|
|
3728
|
+
function jo(e, t, n = {}) {
|
|
3729
|
+
let { window: r = Do, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
3730
3730
|
if (!r) return s ? {
|
|
3731
3731
|
stop: R,
|
|
3732
3732
|
cancel: R,
|
|
3733
3733
|
trigger: R
|
|
3734
3734
|
} : R;
|
|
3735
|
-
if (je && !
|
|
3736
|
-
|
|
3735
|
+
if (je && !Ao) {
|
|
3736
|
+
Ao = !0;
|
|
3737
3737
|
let e = { passive: !0 };
|
|
3738
3738
|
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", R, e)), r.document.documentElement.addEventListener("click", R, e);
|
|
3739
3739
|
}
|
|
3740
3740
|
let c = !0, l = (e) => I(i).some((t) => {
|
|
3741
3741
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
3742
3742
|
{
|
|
3743
|
-
let n =
|
|
3743
|
+
let n = Oo(t);
|
|
3744
3744
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
3745
3745
|
}
|
|
3746
3746
|
});
|
|
@@ -3753,7 +3753,7 @@ function Ao(e, t, n = {}) {
|
|
|
3753
3753
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
3754
3754
|
}
|
|
3755
3755
|
let f = (n) => {
|
|
3756
|
-
let r =
|
|
3756
|
+
let r = Oo(e);
|
|
3757
3757
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
3758
3758
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
3759
3759
|
c = !0;
|
|
@@ -3762,7 +3762,7 @@ function Ao(e, t, n = {}) {
|
|
|
3762
3762
|
t(n);
|
|
3763
3763
|
}
|
|
3764
3764
|
}, p = !1, m = [
|
|
3765
|
-
|
|
3765
|
+
ko(r, "click", (e) => {
|
|
3766
3766
|
p || (p = !0, setTimeout(() => {
|
|
3767
3767
|
p = !1;
|
|
3768
3768
|
}, 0), f(e));
|
|
@@ -3770,13 +3770,13 @@ function Ao(e, t, n = {}) {
|
|
|
3770
3770
|
passive: !0,
|
|
3771
3771
|
capture: a
|
|
3772
3772
|
}),
|
|
3773
|
-
|
|
3774
|
-
let n =
|
|
3773
|
+
ko(r, "pointerdown", (t) => {
|
|
3774
|
+
let n = Oo(e);
|
|
3775
3775
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
3776
3776
|
}, { passive: !0 }),
|
|
3777
|
-
o &&
|
|
3777
|
+
o && ko(r, "blur", (n) => {
|
|
3778
3778
|
setTimeout(() => {
|
|
3779
|
-
let i =
|
|
3779
|
+
let i = Oo(e);
|
|
3780
3780
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
3781
3781
|
}, 0);
|
|
3782
3782
|
}, { passive: !0 })
|
|
@@ -3791,55 +3791,55 @@ function Ao(e, t, n = {}) {
|
|
|
3791
3791
|
}
|
|
3792
3792
|
} : h;
|
|
3793
3793
|
}
|
|
3794
|
-
var
|
|
3794
|
+
var Mo = /* @__PURE__ */ new WeakMap(), No = {
|
|
3795
3795
|
mounted(e, t) {
|
|
3796
3796
|
let n = !t.modifiers.bubble, r;
|
|
3797
|
-
if (typeof t.value == "function") r =
|
|
3797
|
+
if (typeof t.value == "function") r = jo(e, t.value, { capture: n });
|
|
3798
3798
|
else {
|
|
3799
3799
|
let [i, a] = t.value;
|
|
3800
|
-
r =
|
|
3800
|
+
r = jo(e, i, Object.assign({ capture: n }, a));
|
|
3801
3801
|
}
|
|
3802
|
-
|
|
3802
|
+
Mo.set(e, r);
|
|
3803
3803
|
},
|
|
3804
3804
|
unmounted(e) {
|
|
3805
|
-
let t =
|
|
3806
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
3805
|
+
let t = Mo.get(e);
|
|
3806
|
+
t && typeof t == "function" ? t() : t?.stop(), Mo.delete(e);
|
|
3807
3807
|
}
|
|
3808
3808
|
};
|
|
3809
|
-
function
|
|
3809
|
+
function Po(e) {
|
|
3810
3810
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
3811
3811
|
}
|
|
3812
|
-
function
|
|
3812
|
+
function Fo(e) {
|
|
3813
3813
|
let t = window.getComputedStyle(e);
|
|
3814
3814
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
|
|
3815
3815
|
{
|
|
3816
3816
|
let t = e.parentNode;
|
|
3817
|
-
return !t || t.tagName === "BODY" ? !1 :
|
|
3817
|
+
return !t || t.tagName === "BODY" ? !1 : Fo(t);
|
|
3818
3818
|
}
|
|
3819
3819
|
}
|
|
3820
|
-
function
|
|
3820
|
+
function Io(e) {
|
|
3821
3821
|
let t = e || window.event, n = t.target;
|
|
3822
|
-
return
|
|
3822
|
+
return Fo(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
3823
3823
|
}
|
|
3824
|
-
var
|
|
3825
|
-
function
|
|
3824
|
+
var Lo = /* @__PURE__ */ new WeakMap();
|
|
3825
|
+
function Ro(e, t = !1) {
|
|
3826
3826
|
let n = P(t), i = null, a = "";
|
|
3827
3827
|
L(Ne(e), (e) => {
|
|
3828
|
-
let t =
|
|
3828
|
+
let t = Po(I(e));
|
|
3829
3829
|
if (t) {
|
|
3830
3830
|
let e = t;
|
|
3831
|
-
if (
|
|
3831
|
+
if (Lo.get(e) || Lo.set(e, e.style.overflow), e.style.overflow !== "hidden" && (a = e.style.overflow), e.style.overflow === "hidden") return n.value = !0;
|
|
3832
3832
|
if (n.value) return e.style.overflow = "hidden";
|
|
3833
3833
|
}
|
|
3834
3834
|
}, { immediate: !0 });
|
|
3835
3835
|
let o = () => {
|
|
3836
|
-
let t =
|
|
3837
|
-
!t || n.value || (je && (i =
|
|
3838
|
-
|
|
3836
|
+
let t = Po(I(e));
|
|
3837
|
+
!t || n.value || (je && (i = ko(t, "touchmove", (e) => {
|
|
3838
|
+
Io(e);
|
|
3839
3839
|
}, { passive: !1 })), t.style.overflow = "hidden", n.value = !0);
|
|
3840
3840
|
}, s = () => {
|
|
3841
|
-
let t =
|
|
3842
|
-
!t || !n.value || (je && i?.(), t.style.overflow = a,
|
|
3841
|
+
let t = Po(I(e));
|
|
3842
|
+
!t || !n.value || (je && i?.(), t.style.overflow = a, Lo.delete(t), n.value = !1);
|
|
3843
3843
|
};
|
|
3844
3844
|
return Ee(s), r({
|
|
3845
3845
|
get() {
|
|
@@ -3850,19 +3850,19 @@ function Lo(e, t = !1) {
|
|
|
3850
3850
|
}
|
|
3851
3851
|
});
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function zo() {
|
|
3854
3854
|
let e = !1, t = P(!1);
|
|
3855
3855
|
return (n, r) => {
|
|
3856
3856
|
if (t.value = r.value, e) return;
|
|
3857
3857
|
e = !0;
|
|
3858
|
-
let i =
|
|
3858
|
+
let i = Ro(n, r.value);
|
|
3859
3859
|
L(t, (e) => i.value = e);
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
|
-
|
|
3862
|
+
zo();
|
|
3863
3863
|
//#endregion
|
|
3864
3864
|
//#region src/components/base/PvTag/PvTag.vue?vue&type=script&setup=true&lang.ts
|
|
3865
|
-
var
|
|
3865
|
+
var Bo = ["data-style"], Vo = /* @__PURE__ */ f({
|
|
3866
3866
|
__name: "PvTag",
|
|
3867
3867
|
props: {
|
|
3868
3868
|
size: {
|
|
@@ -3916,7 +3916,7 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
3916
3916
|
"data-testid": "pv-tag",
|
|
3917
3917
|
"data-style": e.rounded ? "rounded" : void 0
|
|
3918
3918
|
}, [
|
|
3919
|
-
e.icon ? (A(), i(
|
|
3919
|
+
e.icon ? (A(), i(Dr, {
|
|
3920
3920
|
key: 0,
|
|
3921
3921
|
"data-testid": "pv-tag-icon",
|
|
3922
3922
|
class: S(e.iconClasses),
|
|
@@ -3928,7 +3928,7 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
3928
3928
|
"size"
|
|
3929
3929
|
])) : a("v-if", !0),
|
|
3930
3930
|
s("span", { class: S(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, F(e.label), 3),
|
|
3931
|
-
e.showClear ? (A(), i(
|
|
3931
|
+
e.showClear ? (A(), i(Dr, {
|
|
3932
3932
|
key: 1,
|
|
3933
3933
|
"data-testid": "pv-tag-close-icon",
|
|
3934
3934
|
size: c.value,
|
|
@@ -3936,9 +3936,9 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
3936
3936
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
3937
3937
|
onClick: r[0] ||= _e((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
3938
3938
|
}, null, 8, ["size", "data-dd-action-name"])) : a("v-if", !0)
|
|
3939
|
-
], 14,
|
|
3939
|
+
], 14, Bo));
|
|
3940
3940
|
}
|
|
3941
|
-
}),
|
|
3941
|
+
}), Ho = /* @__PURE__ */ f({
|
|
3942
3942
|
__name: "QueryFormatter",
|
|
3943
3943
|
props: /* @__PURE__ */ y({ queryTermDisplayLimit: {
|
|
3944
3944
|
default: 3,
|
|
@@ -3970,7 +3970,7 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
3970
3970
|
};
|
|
3971
3971
|
s.value = l(s.value, t);
|
|
3972
3972
|
};
|
|
3973
|
-
return (e, n) => (A(), o(t, null, [(A(!0), o(t, null, te(u.value, (e, t) => (A(), i(
|
|
3973
|
+
return (e, n) => (A(), o(t, null, [(A(!0), o(t, null, te(u.value, (e, t) => (A(), i(Vo, {
|
|
3974
3974
|
key: `${t}-${e.queryText}`,
|
|
3975
3975
|
variant: p(e),
|
|
3976
3976
|
label: f(e),
|
|
@@ -3980,33 +3980,33 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
3980
3980
|
"variant",
|
|
3981
3981
|
"label",
|
|
3982
3982
|
"onHandleClose"
|
|
3983
|
-
]))), 128)), d.value > 0 ? (A(), i(
|
|
3983
|
+
]))), 128)), d.value > 0 ? (A(), i(Vo, {
|
|
3984
3984
|
key: 0,
|
|
3985
3985
|
label: `+${d.value}`,
|
|
3986
3986
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
3987
3987
|
}, null, 8, ["label"])) : a("v-if", !0)], 64));
|
|
3988
3988
|
}
|
|
3989
|
-
}),
|
|
3989
|
+
}), Uo = [
|
|
3990
3990
|
"aria-expanded",
|
|
3991
3991
|
"aria-activedescendant",
|
|
3992
3992
|
"disabled",
|
|
3993
3993
|
"placeholder",
|
|
3994
3994
|
"data-invalid"
|
|
3995
|
-
],
|
|
3995
|
+
], Wo = {
|
|
3996
3996
|
key: 2,
|
|
3997
3997
|
class: "pv-text-red pv-text-body-xs"
|
|
3998
|
-
},
|
|
3998
|
+
}, Go = ["id"], Ko = [
|
|
3999
3999
|
"id",
|
|
4000
4000
|
"aria-selected",
|
|
4001
4001
|
"aria-describedby",
|
|
4002
4002
|
"onMouseenter"
|
|
4003
|
-
],
|
|
4003
|
+
], qo = {
|
|
4004
4004
|
key: 1,
|
|
4005
4005
|
role: "presentation"
|
|
4006
|
-
},
|
|
4006
|
+
}, Jo = {
|
|
4007
4007
|
key: 1,
|
|
4008
4008
|
class: "pv-text-center"
|
|
4009
|
-
},
|
|
4009
|
+
}, Yo = /* @__PURE__ */ f({
|
|
4010
4010
|
__name: "PvQueryBuilderInput",
|
|
4011
4011
|
props: /* @__PURE__ */ y({
|
|
4012
4012
|
placeholder: {
|
|
@@ -4185,7 +4185,7 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4185
4185
|
onFocus: Ae,
|
|
4186
4186
|
onClick: ke
|
|
4187
4187
|
}, [
|
|
4188
|
-
e.hideSearchIcon ? a("v-if", !0) : (A(), i(
|
|
4188
|
+
e.hideSearchIcon ? a("v-if", !0) : (A(), i(Dr, {
|
|
4189
4189
|
key: 0,
|
|
4190
4190
|
name: "search"
|
|
4191
4191
|
})),
|
|
@@ -4195,7 +4195,7 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4195
4195
|
"--inset-size": "4px",
|
|
4196
4196
|
"--flex-gap": "4px"
|
|
4197
4197
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
4198
|
-
}, [u(
|
|
4198
|
+
}, [u(Ho, {
|
|
4199
4199
|
modelValue: m.value,
|
|
4200
4200
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
4201
4201
|
"wrap-content": T.value,
|
|
@@ -4221,18 +4221,18 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4221
4221
|
style: w(p.value ? "min-width: 8rem;" : void 0),
|
|
4222
4222
|
onFocus: Ae,
|
|
4223
4223
|
onBlur: Ae
|
|
4224
|
-
}, null, 44,
|
|
4225
|
-
m.value && !e.hideClearButton ? (A(), i(
|
|
4224
|
+
}, null, 44, Uo), [[fe, p.value]])], 4),
|
|
4225
|
+
m.value && !e.hideClearButton ? (A(), i(So, {
|
|
4226
4226
|
key: 1,
|
|
4227
4227
|
variant: "ghost",
|
|
4228
4228
|
leftIcon: "close",
|
|
4229
4229
|
size: "md",
|
|
4230
4230
|
onClick: I
|
|
4231
4231
|
})) : a("v-if", !0),
|
|
4232
|
-
ie.value ? (A(), o("p",
|
|
4232
|
+
ie.value ? (A(), o("p", Wo, F(P.value), 1)) : a("v-if", !0),
|
|
4233
4233
|
a(" v-show, not a `pv-hide` class: PvPopover's scoped pinned-sections rule sets\n `display: flex` at class+attribute specificity, which outranks the `.pv-hide`\n utility. An inline display wins regardless of what the popover styles itself. "),
|
|
4234
4234
|
a(" The thin scrollbar goes on both boxes: the popover root scrolls on its own, and\n the list takes over as the scroller once a header or footer is pinned. "),
|
|
4235
|
-
ne.value ? ge((A(), i(
|
|
4235
|
+
ne.value ? ge((A(), i(Sr, {
|
|
4236
4236
|
key: 3,
|
|
4237
4237
|
class: "pv-scrollbar-visible",
|
|
4238
4238
|
"css-custom-properties": d,
|
|
@@ -4241,12 +4241,12 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4241
4241
|
listId: k,
|
|
4242
4242
|
listRole: "listbox"
|
|
4243
4243
|
}, c({
|
|
4244
|
-
default: he(() => [e.optionsLoading ? (A(), o("div",
|
|
4244
|
+
default: he(() => [e.optionsLoading ? (A(), o("div", Jo, [u(Rr, { variant: "dark" })])) : (A(), o(t, { key: 0 }, [me.value.length > 0 ? (A(!0), o(t, { key: 0 }, te(_e.value, ([e, n], r) => (A(), o(t, { key: e }, [e ? (A(), o("li", {
|
|
4245
4245
|
key: 0,
|
|
4246
4246
|
id: ee(r),
|
|
4247
4247
|
role: "presentation",
|
|
4248
4248
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
4249
|
-
}, F(e), 9,
|
|
4249
|
+
}, F(e), 9, Go)) : a("v-if", !0), (A(!0), o(t, null, te(n, (t) => (A(), o("li", {
|
|
4250
4250
|
key: `${e}-${t.id}`,
|
|
4251
4251
|
id: j(ye.value.get(t) ?? -1),
|
|
4252
4252
|
role: "option",
|
|
@@ -4254,11 +4254,11 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4254
4254
|
"aria-describedby": e ? ee(r) : void 0,
|
|
4255
4255
|
class: S({ "pv-query-builder-option-active": t === xe.value }),
|
|
4256
4256
|
onMouseenter: (e) => Ee(t)
|
|
4257
|
-
}, [u(
|
|
4257
|
+
}, [u(Eo, b({ ref_for: !0 }, t, {
|
|
4258
4258
|
config: l,
|
|
4259
4259
|
queryText: p.value,
|
|
4260
4260
|
onHandleSelected: (e) => Oe(t)
|
|
4261
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
4261
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, Ko))), 128))], 64))), 128)) : n.$slots.empty ? (A(), o("li", qo, [N(n.$slots, "empty")])) : a("v-if", !0)], 64))]),
|
|
4262
4262
|
_: 2
|
|
4263
4263
|
}, [n.$slots.header ? {
|
|
4264
4264
|
name: "header",
|
|
@@ -4269,68 +4269,68 @@ var zo = ["data-style"], Bo = /* @__PURE__ */ f({
|
|
|
4269
4269
|
fn: he(() => [N(n.$slots, "footer")]),
|
|
4270
4270
|
key: "1"
|
|
4271
4271
|
} : void 0]), 1536)), [[pe, y.value]]) : a("v-if", !0)
|
|
4272
|
-
], 34)), [[ae(
|
|
4272
|
+
], 34)), [[ae(No), De]]);
|
|
4273
4273
|
}
|
|
4274
|
-
}),
|
|
4274
|
+
}), Xo = Object.defineProperty, Zo = Object.getOwnPropertySymbols, Qo = Object.prototype.hasOwnProperty, $o = Object.prototype.propertyIsEnumerable, es = (e, t, n) => t in e ? Xo(e, t, {
|
|
4275
4275
|
enumerable: !0,
|
|
4276
4276
|
configurable: !0,
|
|
4277
4277
|
writable: !0,
|
|
4278
4278
|
value: n
|
|
4279
|
-
}) : e[t] = n,
|
|
4280
|
-
for (var n in t ||= {})
|
|
4281
|
-
if (
|
|
4279
|
+
}) : e[t] = n, ts = (e, t) => {
|
|
4280
|
+
for (var n in t ||= {}) Qo.call(t, n) && es(e, n, t[n]);
|
|
4281
|
+
if (Zo) for (var n of Zo(t)) $o.call(t, n) && es(e, n, t[n]);
|
|
4282
4282
|
return e;
|
|
4283
4283
|
};
|
|
4284
|
-
function
|
|
4284
|
+
function ns(e) {
|
|
4285
4285
|
return e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0;
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4287
|
+
function rs(e) {
|
|
4288
4288
|
return typeof e == "function" && "call" in e && "apply" in e;
|
|
4289
4289
|
}
|
|
4290
|
-
function
|
|
4291
|
-
return !
|
|
4290
|
+
function Q(e) {
|
|
4291
|
+
return !ns(e);
|
|
4292
4292
|
}
|
|
4293
|
-
function
|
|
4293
|
+
function is(e, t = !0) {
|
|
4294
4294
|
return e instanceof Object && e.constructor === Object && (t || Object.keys(e).length !== 0);
|
|
4295
4295
|
}
|
|
4296
|
-
function
|
|
4297
|
-
let n =
|
|
4296
|
+
function as(e = {}, t = {}) {
|
|
4297
|
+
let n = ts({}, e);
|
|
4298
4298
|
return Object.keys(t).forEach((r) => {
|
|
4299
4299
|
let i = r;
|
|
4300
|
-
|
|
4300
|
+
is(t[i]) && i in e && is(e[i]) ? n[i] = as(e[i], t[i]) : n[i] = t[i];
|
|
4301
4301
|
}), n;
|
|
4302
4302
|
}
|
|
4303
|
-
function
|
|
4304
|
-
return e.reduce((e, t, n) => n === 0 ? t :
|
|
4303
|
+
function os(...e) {
|
|
4304
|
+
return e.reduce((e, t, n) => n === 0 ? t : as(e, t), {});
|
|
4305
4305
|
}
|
|
4306
|
-
function
|
|
4307
|
-
return
|
|
4306
|
+
function ss(e, ...t) {
|
|
4307
|
+
return rs(e) ? e(...t) : e;
|
|
4308
4308
|
}
|
|
4309
|
-
function
|
|
4309
|
+
function cs(e, t = !0) {
|
|
4310
4310
|
return typeof e == "string" && (t || e !== "");
|
|
4311
4311
|
}
|
|
4312
|
-
function
|
|
4313
|
-
return
|
|
4312
|
+
function ls(e) {
|
|
4313
|
+
return Q(e) && !isNaN(e);
|
|
4314
4314
|
}
|
|
4315
|
-
function
|
|
4315
|
+
function us(e, t) {
|
|
4316
4316
|
if (t) {
|
|
4317
4317
|
let n = t.test(e);
|
|
4318
4318
|
return t.lastIndex = 0, n;
|
|
4319
4319
|
}
|
|
4320
4320
|
return !1;
|
|
4321
4321
|
}
|
|
4322
|
-
function
|
|
4323
|
-
return
|
|
4322
|
+
function ds(...e) {
|
|
4323
|
+
return os(...e);
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function fs(e) {
|
|
4326
4326
|
return e && e.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, "").replace(/ {2,}/g, " ").replace(/ ([{:}]) /g, "$1").replace(/([;,]) /g, "$1").replace(/ !/g, "!").replace(/: /g, ":").trim();
|
|
4327
4327
|
}
|
|
4328
|
-
function
|
|
4329
|
-
return
|
|
4328
|
+
function ps(e) {
|
|
4329
|
+
return cs(e) ? e.replace(/(_)/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase() : e;
|
|
4330
4330
|
}
|
|
4331
4331
|
//#endregion
|
|
4332
4332
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/api/index.mjs
|
|
4333
|
-
var
|
|
4333
|
+
var ms = {
|
|
4334
4334
|
STARTS_WITH: "startsWith",
|
|
4335
4335
|
CONTAINS: "contains",
|
|
4336
4336
|
NOT_CONTAINS: "notContains",
|
|
@@ -4350,7 +4350,7 @@ var ps = {
|
|
|
4350
4350
|
};
|
|
4351
4351
|
//#endregion
|
|
4352
4352
|
//#region ../node_modules/.pnpm/@primeuix+utils@0.6.4/node_modules/@primeuix/utils/dist/eventbus/index.mjs
|
|
4353
|
-
function
|
|
4353
|
+
function hs() {
|
|
4354
4354
|
let e = /* @__PURE__ */ new Map();
|
|
4355
4355
|
return {
|
|
4356
4356
|
on(t, n) {
|
|
@@ -4374,21 +4374,21 @@ function ms() {
|
|
|
4374
4374
|
}
|
|
4375
4375
|
//#endregion
|
|
4376
4376
|
//#region ../node_modules/.pnpm/@primeuix+utils@0.6.4/node_modules/@primeuix/utils/dist/dom/index.mjs
|
|
4377
|
-
function
|
|
4377
|
+
function gs(e) {
|
|
4378
4378
|
if (e) {
|
|
4379
4379
|
let t = e.parentNode;
|
|
4380
4380
|
return t && t instanceof ShadowRoot && t.host && (t = t.host), t;
|
|
4381
4381
|
}
|
|
4382
4382
|
return null;
|
|
4383
4383
|
}
|
|
4384
|
-
function gs(e) {
|
|
4385
|
-
return !!(e != null && e.nodeName && hs(e));
|
|
4386
|
-
}
|
|
4387
4384
|
function _s(e) {
|
|
4385
|
+
return !!(e != null && e.nodeName && gs(e));
|
|
4386
|
+
}
|
|
4387
|
+
function vs(e) {
|
|
4388
4388
|
return typeof Element < "u" ? e instanceof Element : typeof e == "object" && !!e && e.nodeType === 1 && typeof e.nodeName == "string";
|
|
4389
4389
|
}
|
|
4390
|
-
function
|
|
4391
|
-
if (
|
|
4390
|
+
function ys(e, t = {}) {
|
|
4391
|
+
if (vs(e)) {
|
|
4392
4392
|
let n = (t, r) => {
|
|
4393
4393
|
var i;
|
|
4394
4394
|
let a = (i = e?.$attrs) != null && i[t] ? [e?.$attrs?.[t]] : [];
|
|
@@ -4407,70 +4407,70 @@ function vs(e, t = {}) {
|
|
|
4407
4407
|
Object.entries(t).forEach(([t, r]) => {
|
|
4408
4408
|
if (r != null) {
|
|
4409
4409
|
let i = t.match(/^on(.+)/);
|
|
4410
|
-
i ? e.addEventListener(i[1].toLowerCase(), r) : t === "p-bind" || t === "pBind" ?
|
|
4410
|
+
i ? e.addEventListener(i[1].toLowerCase(), r) : t === "p-bind" || t === "pBind" ? ys(e, r) : (r = t === "class" ? [...new Set(n("class", r))].join(" ").trim() : t === "style" ? n("style", r).join(";").trim() : r, (e.$attrs = e.$attrs || {}) && (e.$attrs[t] = r), e.setAttribute(t, r));
|
|
4411
4411
|
}
|
|
4412
4412
|
});
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function bs() {
|
|
4416
4416
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
4417
4417
|
}
|
|
4418
|
-
function
|
|
4419
|
-
|
|
4418
|
+
function xs(e, t = "", n) {
|
|
4419
|
+
vs(e) && n != null && e.setAttribute(t, n);
|
|
4420
4420
|
}
|
|
4421
4421
|
//#endregion
|
|
4422
4422
|
//#region ../node_modules/.pnpm/@primeuix+styled@0.7.4/node_modules/@primeuix/styled/dist/index.mjs
|
|
4423
|
-
var
|
|
4423
|
+
var Ss = Object.defineProperty, Cs = Object.defineProperties, ws = Object.getOwnPropertyDescriptors, Ts = Object.getOwnPropertySymbols, Es = Object.prototype.hasOwnProperty, Ds = Object.prototype.propertyIsEnumerable, Os = (e, t, n) => t in e ? Ss(e, t, {
|
|
4424
4424
|
enumerable: !0,
|
|
4425
4425
|
configurable: !0,
|
|
4426
4426
|
writable: !0,
|
|
4427
4427
|
value: n
|
|
4428
|
-
}) : e[t] = n,
|
|
4429
|
-
for (var n in t ||= {})
|
|
4430
|
-
if (
|
|
4428
|
+
}) : e[t] = n, ks = (e, t) => {
|
|
4429
|
+
for (var n in t ||= {}) Es.call(t, n) && Os(e, n, t[n]);
|
|
4430
|
+
if (Ts) for (var n of Ts(t)) Ds.call(t, n) && Os(e, n, t[n]);
|
|
4431
4431
|
return e;
|
|
4432
|
-
},
|
|
4432
|
+
}, As = (e, t) => Cs(e, ws(t)), js = (e, t) => {
|
|
4433
4433
|
var n = {};
|
|
4434
|
-
for (var r in e)
|
|
4435
|
-
if (e != null &&
|
|
4434
|
+
for (var r in e) Es.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
4435
|
+
if (e != null && Ts) for (var r of Ts(e)) t.indexOf(r) < 0 && Ds.call(e, r) && (n[r] = e[r]);
|
|
4436
4436
|
return n;
|
|
4437
|
-
},
|
|
4438
|
-
function Fs(e) {
|
|
4439
|
-
return ss(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
4440
|
-
}
|
|
4437
|
+
}, Ms = hs(), Ns = /{([^}]*)}/g, Ps = /(\d+\s+[\+\-\*\/]\s+\d+)/g, Fs = /var\([^)]+\)/g;
|
|
4441
4438
|
function Is(e) {
|
|
4442
|
-
return
|
|
4439
|
+
return cs(e) ? e.replace(/[A-Z]/g, (e, t) => t === 0 ? e : "." + e.toLowerCase()).toLowerCase() : e;
|
|
4443
4440
|
}
|
|
4444
4441
|
function Ls(e) {
|
|
4445
|
-
return e.
|
|
4442
|
+
return is(e) && e.hasOwnProperty("$value") && e.hasOwnProperty("$type") ? e.$value : e;
|
|
4446
4443
|
}
|
|
4447
|
-
function Rs(e
|
|
4448
|
-
return
|
|
4444
|
+
function Rs(e) {
|
|
4445
|
+
return e.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
4449
4446
|
}
|
|
4450
4447
|
function zs(e = "", t = "") {
|
|
4451
|
-
return
|
|
4448
|
+
return Rs(`${cs(e, !1) && cs(t, !1) ? `${e}-` : e}${t}`);
|
|
4452
4449
|
}
|
|
4453
|
-
function Bs(e = "") {
|
|
4450
|
+
function Bs(e = "", t = "") {
|
|
4451
|
+
return `--${zs(e, t)}`;
|
|
4452
|
+
}
|
|
4453
|
+
function Vs(e = "") {
|
|
4454
4454
|
return ((e.match(/{/g) || []).length + (e.match(/}/g) || []).length) % 2 != 0;
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4457
|
-
if (
|
|
4456
|
+
function Hs(e, t = "", n = "", r = [], i) {
|
|
4457
|
+
if (cs(e)) {
|
|
4458
4458
|
let t = e.trim();
|
|
4459
|
-
if (
|
|
4460
|
-
if (
|
|
4461
|
-
let e = t.replaceAll(
|
|
4462
|
-
return
|
|
4459
|
+
if (Vs(t)) return;
|
|
4460
|
+
if (us(t, Ns)) {
|
|
4461
|
+
let e = t.replaceAll(Ns, (e) => `var(${Bs(n, ps(e.replace(/{|}/g, "").split(".").filter((e) => !r.some((t) => us(e, t))).join("-")))}${Q(i) ? `, ${i}` : ""})`);
|
|
4462
|
+
return us(e.replace(Fs, "0"), Ps) ? `calc(${e})` : e;
|
|
4463
4463
|
}
|
|
4464
4464
|
return t;
|
|
4465
|
-
} else if (
|
|
4465
|
+
} else if (ls(e)) return e;
|
|
4466
4466
|
}
|
|
4467
|
-
function
|
|
4468
|
-
|
|
4467
|
+
function Us(e, t, n) {
|
|
4468
|
+
cs(t, !1) && e.push(`${t}:${n};`);
|
|
4469
4469
|
}
|
|
4470
|
-
function
|
|
4470
|
+
function Ws(e, t) {
|
|
4471
4471
|
return e ? `${e}{${t}}` : "";
|
|
4472
4472
|
}
|
|
4473
|
-
function
|
|
4473
|
+
function Gs(e, t) {
|
|
4474
4474
|
if (e.indexOf("dt(") === -1) return e;
|
|
4475
4475
|
function n(e, t) {
|
|
4476
4476
|
let n = [], i = 0, a = "", o = null, s = 0;
|
|
@@ -4478,7 +4478,7 @@ function Ws(e, t) {
|
|
|
4478
4478
|
let c = e[i];
|
|
4479
4479
|
if ((c === "\"" || c === "'" || c === "`") && e[i - 1] !== "\\" && (o = o === c ? null : c), !o && (c === "(" && s++, c === ")" && s--, (c === "," || i === e.length) && s === 0)) {
|
|
4480
4480
|
let e = a.trim();
|
|
4481
|
-
e.startsWith("dt(") ? n.push(
|
|
4481
|
+
e.startsWith("dt(") ? n.push(Gs(e, t)) : n.push(r(e)), a = "", i++;
|
|
4482
4482
|
continue;
|
|
4483
4483
|
}
|
|
4484
4484
|
c !== void 0 && (a += c), i++;
|
|
@@ -4504,31 +4504,31 @@ function Ws(e, t) {
|
|
|
4504
4504
|
}
|
|
4505
4505
|
return e;
|
|
4506
4506
|
}
|
|
4507
|
-
var
|
|
4507
|
+
var Ks = (...e) => qs($.getTheme(), ...e), qs = (e = {}, t, n, r) => {
|
|
4508
4508
|
if (t) {
|
|
4509
|
-
let { variable: i, options: a } =
|
|
4510
|
-
return r === "value" ||
|
|
4509
|
+
let { variable: i, options: a } = $.defaults || {}, { prefix: o, transform: s } = e?.options || a || {}, c = us(t, Ns) ? t : `{${t}}`;
|
|
4510
|
+
return r === "value" || ns(r) && s === "strict" ? $.getTokenValue(t) : Hs(c, void 0, o, [i.excludedKeyRegex], n);
|
|
4511
4511
|
}
|
|
4512
4512
|
return "";
|
|
4513
4513
|
};
|
|
4514
|
-
function
|
|
4515
|
-
return e instanceof Array ?
|
|
4514
|
+
function Js(e, ...t) {
|
|
4515
|
+
return e instanceof Array ? Gs(e.reduce((e, n, r) => e + n + (ss(t[r], { dt: Ks }) ?? ""), ""), Ks) : ss(e, { dt: Ks });
|
|
4516
4516
|
}
|
|
4517
|
-
function
|
|
4518
|
-
let n =
|
|
4517
|
+
function Ys(e, t = {}) {
|
|
4518
|
+
let n = $.defaults.variable, { prefix: r = n.prefix, selector: i = n.selector, excludedKeyRegex: a = n.excludedKeyRegex } = t, o = [], s = [], c = [{
|
|
4519
4519
|
node: e,
|
|
4520
4520
|
path: r
|
|
4521
4521
|
}];
|
|
4522
4522
|
for (; c.length;) {
|
|
4523
4523
|
let { node: e, path: t } = c.pop();
|
|
4524
4524
|
for (let n in e) {
|
|
4525
|
-
let i = e[n], l =
|
|
4526
|
-
if (
|
|
4525
|
+
let i = e[n], l = Ls(i), u = us(n, a) ? zs(t) : zs(t, ps(n));
|
|
4526
|
+
if (is(l)) c.push({
|
|
4527
4527
|
node: l,
|
|
4528
4528
|
path: u
|
|
4529
4529
|
});
|
|
4530
4530
|
else {
|
|
4531
|
-
|
|
4531
|
+
Us(s, Bs(u), Hs(l, u, r, [a]));
|
|
4532
4532
|
let e = u;
|
|
4533
4533
|
r && e.startsWith(r + "-") && (e = e.slice(r.length + 1)), o.push(e.replace(/-/g, "."));
|
|
4534
4534
|
}
|
|
@@ -4539,10 +4539,10 @@ function Js(e, t = {}) {
|
|
|
4539
4539
|
value: s,
|
|
4540
4540
|
tokens: o,
|
|
4541
4541
|
declarations: l,
|
|
4542
|
-
css:
|
|
4542
|
+
css: Ws(i, l)
|
|
4543
4543
|
};
|
|
4544
4544
|
}
|
|
4545
|
-
var
|
|
4545
|
+
var Xs = {
|
|
4546
4546
|
regex: {
|
|
4547
4547
|
rules: {
|
|
4548
4548
|
class: {
|
|
@@ -4599,12 +4599,12 @@ var Ys = {
|
|
|
4599
4599
|
}
|
|
4600
4600
|
},
|
|
4601
4601
|
_toVariables(e, t) {
|
|
4602
|
-
return
|
|
4602
|
+
return Ys(e, { prefix: t?.prefix });
|
|
4603
4603
|
},
|
|
4604
4604
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
4605
4605
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
4606
|
-
if (
|
|
4607
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ =
|
|
4606
|
+
if (Q(a) && o.transform !== "strict") {
|
|
4607
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = js(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = js(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = js(x, ["dark"]), w = y || {}, { dark: T } = w, E = js(w, ["dark"]), D = Q(t) ? this._toVariables({ primitive: t }, o) : {}, O = Q(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Q(C) ? this._toVariables({ light: C }, o) : {}, A = Q(S) ? this._toVariables({ dark: S }, o) : {}, j = Q(b) ? this._toVariables({ semantic: b }, o) : {}, ee = Q(E) ? this._toVariables({ light: E }, o) : {}, M = Q(T) ? this._toVariables({ dark: T }, o) : {}, [te, N] = [D.declarations ?? "", D.tokens], [ne, re] = [O.declarations ?? "", O.tokens || []], [P, F] = [k.declarations ?? "", k.tokens || []], [ie, I] = [A.declarations ?? "", A.tokens || []], [ae, oe] = [j.declarations ?? "", j.tokens || []], [se, ce] = [ee.declarations ?? "", ee.tokens || []], [le, ue] = [M.declarations ?? "", M.tokens || []];
|
|
4608
4608
|
s = this.transformCSS(e, te, "light", "variable", o, r, i), c = N, l = `${this.transformCSS(e, `${ne}${P}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ie}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
4609
4609
|
...re,
|
|
4610
4610
|
...F,
|
|
@@ -4613,7 +4613,7 @@ var Ys = {
|
|
|
4613
4613
|
...oe,
|
|
4614
4614
|
...ce,
|
|
4615
4615
|
...ue
|
|
4616
|
-
])], p =
|
|
4616
|
+
])], p = ss(a.css, { dt: Ks });
|
|
4617
4617
|
}
|
|
4618
4618
|
return {
|
|
4619
4619
|
primitive: {
|
|
@@ -4633,17 +4633,17 @@ var Ys = {
|
|
|
4633
4633
|
},
|
|
4634
4634
|
getPreset({ name: e = "", preset: t = {}, options: n, params: r, set: i, defaults: a, selector: o }) {
|
|
4635
4635
|
let s, c, l;
|
|
4636
|
-
if (
|
|
4637
|
-
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m =
|
|
4636
|
+
if (Q(t) && n.transform !== "strict") {
|
|
4637
|
+
let r = e.replace("-directive", ""), u = t, { colorScheme: d, extend: f, css: p } = u, m = js(u, [
|
|
4638
4638
|
"colorScheme",
|
|
4639
4639
|
"extend",
|
|
4640
4640
|
"css"
|
|
4641
|
-
]), h = f || {}, { colorScheme: g } = h, _ =
|
|
4641
|
+
]), h = f || {}, { colorScheme: g } = h, _ = js(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = js(v, ["dark"]), x = g || {}, { dark: S } = x, C = js(x, ["dark"]), w = Q(m) ? this._toVariables({ [r]: ks(ks({}, m), _) }, n) : {}, T = Q(b) ? this._toVariables({ [r]: ks(ks({}, b), C) }, n) : {}, E = Q(y) ? this._toVariables({ [r]: ks(ks({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, A] = [T.declarations ?? "", T.tokens || []], [j, ee] = [E.declarations ?? "", E.tokens || []];
|
|
4642
4642
|
s = `${this.transformCSS(r, `${D}${k}`, "light", "variable", n, i, a, o)}${this.transformCSS(r, j, "dark", "variable", n, i, a, o)}`, c = [...new Set([
|
|
4643
4643
|
...O,
|
|
4644
4644
|
...A,
|
|
4645
4645
|
...ee
|
|
4646
|
-
])], l =
|
|
4646
|
+
])], l = ss(p, { dt: Ks });
|
|
4647
4647
|
}
|
|
4648
4648
|
return {
|
|
4649
4649
|
css: s,
|
|
@@ -4681,7 +4681,7 @@ var Ys = {
|
|
|
4681
4681
|
},
|
|
4682
4682
|
getLayerOrder(e, t = {}, n, r) {
|
|
4683
4683
|
let { cssLayer: i } = t;
|
|
4684
|
-
return i ? `@layer ${
|
|
4684
|
+
return i ? `@layer ${ss(i.order || i.name || "primeui", n)}` : "";
|
|
4685
4685
|
},
|
|
4686
4686
|
getCommonStyleSheet({ name: e = "", theme: t = {}, params: n, props: r = {}, set: i, defaults: a }) {
|
|
4687
4687
|
let o = this.getCommon({
|
|
@@ -4692,8 +4692,8 @@ var Ys = {
|
|
|
4692
4692
|
defaults: a
|
|
4693
4693
|
}), s = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
4694
4694
|
return Object.entries(o || {}).reduce((e, [t, n]) => {
|
|
4695
|
-
if (
|
|
4696
|
-
let r =
|
|
4695
|
+
if (is(n) && Object.hasOwn(n, "css")) {
|
|
4696
|
+
let r = fs(n.css), i = `${t}-variables`;
|
|
4697
4697
|
e.push(`<style type="text/css" data-primevue-style-id="${i}" ${s}>${r}</style>`);
|
|
4698
4698
|
}
|
|
4699
4699
|
return e;
|
|
@@ -4707,7 +4707,7 @@ var Ys = {
|
|
|
4707
4707
|
set: i,
|
|
4708
4708
|
defaults: a
|
|
4709
4709
|
}, s = (e.includes("-directive") ? this.getPresetD(o) : this.getPresetC(o))?.css, c = Object.entries(r).reduce((e, [t, n]) => e.push(`${t}="${n}"`) && e, []).join(" ");
|
|
4710
|
-
return s ? `<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${
|
|
4710
|
+
return s ? `<style type="text/css" data-primevue-style-id="${e}-variables" ${c}>${fs(s)}</style>` : "";
|
|
4711
4711
|
},
|
|
4712
4712
|
createTokens(e = {}, t, n = "", r = "", i = {}) {
|
|
4713
4713
|
let a = function(e, t = {}, n = []) {
|
|
@@ -4719,16 +4719,16 @@ var Ys = {
|
|
|
4719
4719
|
};
|
|
4720
4720
|
n.push(this.path), t.name = this.path, t.binding ||= {};
|
|
4721
4721
|
let r = this.value;
|
|
4722
|
-
if (typeof this.value == "string" &&
|
|
4723
|
-
let i = this.value.trim().replace(
|
|
4722
|
+
if (typeof this.value == "string" && Ns.test(this.value)) {
|
|
4723
|
+
let i = this.value.trim().replace(Ns, (r) => {
|
|
4724
4724
|
let i = r.slice(1, -1), a = this.tokens[i];
|
|
4725
4725
|
if (!a) return console.warn(`Token not found for path: ${i}`), "__UNRESOLVED__";
|
|
4726
4726
|
let o = a.computed(e, t, n);
|
|
4727
4727
|
return Array.isArray(o) && o.length === 2 ? `light-dark(${o[0].value},${o[1].value})` : o?.value ?? "__UNRESOLVED__";
|
|
4728
4728
|
});
|
|
4729
|
-
r =
|
|
4729
|
+
r = Ps.test(i.replace(Fs, "0")) ? `calc(${i})` : i;
|
|
4730
4730
|
}
|
|
4731
|
-
return
|
|
4731
|
+
return ns(t.binding) && delete t.binding, n.pop(), {
|
|
4732
4732
|
colorScheme: e,
|
|
4733
4733
|
path: this.path,
|
|
4734
4734
|
paths: t,
|
|
@@ -4736,8 +4736,8 @@ var Ys = {
|
|
|
4736
4736
|
};
|
|
4737
4737
|
}, o = (e, n, r) => {
|
|
4738
4738
|
Object.entries(e).forEach(([e, s]) => {
|
|
4739
|
-
let c =
|
|
4740
|
-
|
|
4739
|
+
let c = us(e, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Is(e)}` : Is(e), l = r ? `${r}.${e}` : e;
|
|
4740
|
+
is(s) ? o(s, c, l) : (i[c] || (i[c] = {
|
|
4741
4741
|
paths: [],
|
|
4742
4742
|
computed: (e, t = {}, n = []) => {
|
|
4743
4743
|
if (i[c].paths.length === 1) return i[c].paths[0].computed(i[c].paths[0].scheme, t.binding, n);
|
|
@@ -4759,37 +4759,37 @@ var Ys = {
|
|
|
4759
4759
|
return o(e, n, r), i;
|
|
4760
4760
|
},
|
|
4761
4761
|
getTokenValue(e, t, n) {
|
|
4762
|
-
let r = ((e) => e.split(".").filter((e) => !
|
|
4762
|
+
let r = ((e) => e.split(".").filter((e) => !us(e.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), i = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, a = [e[r]?.computed(i)].flat().filter((e) => e);
|
|
4763
4763
|
return a.length === 1 ? a[0].value : a.reduce((e = {}, t) => {
|
|
4764
4764
|
let n = t, { colorScheme: r } = n;
|
|
4765
|
-
return e[r] =
|
|
4765
|
+
return e[r] = js(n, ["colorScheme"]), e;
|
|
4766
4766
|
}, void 0);
|
|
4767
4767
|
},
|
|
4768
4768
|
getSelectorRule(e, t, n, r) {
|
|
4769
|
-
return n === "class" || n === "attr" ?
|
|
4769
|
+
return n === "class" || n === "attr" ? Ws(Q(t) ? `${e}${t},${e} ${t}` : e, r) : Ws(e, Ws(t ?? ":root,:host", r));
|
|
4770
4770
|
},
|
|
4771
4771
|
transformCSS(e, t, n, r, i = {}, a, o, s) {
|
|
4772
|
-
if (
|
|
4772
|
+
if (Q(t)) {
|
|
4773
4773
|
let { cssLayer: c } = i;
|
|
4774
4774
|
if (r !== "style") {
|
|
4775
4775
|
let e = this.getColorSchemeOption(i, o);
|
|
4776
|
-
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (
|
|
4776
|
+
t = n === "dark" ? e.reduce((e, { type: n, selector: r }) => (Q(r) && (e += r.includes("[CSS]") ? r.replace("[CSS]", t) : this.getSelectorRule(r, s, n, t)), e), "") : Ws(s ?? ":root,:host", t);
|
|
4777
4777
|
}
|
|
4778
4778
|
if (c) {
|
|
4779
4779
|
let n = {
|
|
4780
4780
|
name: "primeui",
|
|
4781
4781
|
order: "primeui"
|
|
4782
4782
|
};
|
|
4783
|
-
|
|
4783
|
+
is(c) && (n.name = ss(c.name, {
|
|
4784
4784
|
name: e,
|
|
4785
4785
|
type: r
|
|
4786
|
-
})),
|
|
4786
|
+
})), Q(n.name) && (t = Ws(`@layer ${n.name}`, t), a?.layerNames(n.name));
|
|
4787
4787
|
}
|
|
4788
4788
|
return t;
|
|
4789
4789
|
}
|
|
4790
4790
|
return "";
|
|
4791
4791
|
}
|
|
4792
|
-
},
|
|
4792
|
+
}, $ = {
|
|
4793
4793
|
defaults: {
|
|
4794
4794
|
variable: {
|
|
4795
4795
|
prefix: "p",
|
|
@@ -4809,7 +4809,7 @@ var Ys = {
|
|
|
4809
4809
|
_tokens: {},
|
|
4810
4810
|
update(e = {}) {
|
|
4811
4811
|
let { theme: t } = e;
|
|
4812
|
-
t && (this._theme = ks(
|
|
4812
|
+
t && (this._theme = As(ks({}, t), { options: ks(ks({}, this.defaults.options), t.options) }), this._tokens = Xs.createTokens(this.preset, this.defaults), this.clearLoadedStyleNames());
|
|
4813
4813
|
},
|
|
4814
4814
|
get theme() {
|
|
4815
4815
|
return this._theme;
|
|
@@ -4827,19 +4827,19 @@ var Ys = {
|
|
|
4827
4827
|
return this.theme;
|
|
4828
4828
|
},
|
|
4829
4829
|
setTheme(e) {
|
|
4830
|
-
this.update({ theme: e }),
|
|
4830
|
+
this.update({ theme: e }), Ms.emit("theme:change", e);
|
|
4831
4831
|
},
|
|
4832
4832
|
getPreset() {
|
|
4833
4833
|
return this.preset;
|
|
4834
4834
|
},
|
|
4835
4835
|
setPreset(e) {
|
|
4836
|
-
this._theme = ks(
|
|
4836
|
+
this._theme = As(ks({}, this.theme), { preset: e }), this._tokens = Xs.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Ms.emit("preset:change", e), Ms.emit("theme:change", this.theme);
|
|
4837
4837
|
},
|
|
4838
4838
|
getOptions() {
|
|
4839
4839
|
return this.options;
|
|
4840
4840
|
},
|
|
4841
4841
|
setOptions(e) {
|
|
4842
|
-
this._theme = ks(
|
|
4842
|
+
this._theme = As(ks({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Ms.emit("options:change", e), Ms.emit("theme:change", this.theme);
|
|
4843
4843
|
},
|
|
4844
4844
|
getLayerNames() {
|
|
4845
4845
|
return [...this._layerNames];
|
|
@@ -4863,10 +4863,10 @@ var Ys = {
|
|
|
4863
4863
|
this._loadedStyleNames.clear();
|
|
4864
4864
|
},
|
|
4865
4865
|
getTokenValue(e) {
|
|
4866
|
-
return
|
|
4866
|
+
return Xs.getTokenValue(this.tokens, e, this.defaults);
|
|
4867
4867
|
},
|
|
4868
4868
|
getCommon(e = "", t) {
|
|
4869
|
-
return
|
|
4869
|
+
return Xs.getCommon({
|
|
4870
4870
|
name: e,
|
|
4871
4871
|
theme: this.theme,
|
|
4872
4872
|
params: t,
|
|
@@ -4882,7 +4882,7 @@ var Ys = {
|
|
|
4882
4882
|
defaults: this.defaults,
|
|
4883
4883
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
4884
4884
|
};
|
|
4885
|
-
return
|
|
4885
|
+
return Xs.getPresetC(n);
|
|
4886
4886
|
},
|
|
4887
4887
|
getDirective(e = "", t) {
|
|
4888
4888
|
let n = {
|
|
@@ -4892,7 +4892,7 @@ var Ys = {
|
|
|
4892
4892
|
defaults: this.defaults,
|
|
4893
4893
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
4894
4894
|
};
|
|
4895
|
-
return
|
|
4895
|
+
return Xs.getPresetD(n);
|
|
4896
4896
|
},
|
|
4897
4897
|
getCustomPreset(e = "", t, n, r) {
|
|
4898
4898
|
let i = {
|
|
@@ -4904,16 +4904,16 @@ var Ys = {
|
|
|
4904
4904
|
defaults: this.defaults,
|
|
4905
4905
|
set: { layerNames: this.setLayerNames.bind(this) }
|
|
4906
4906
|
};
|
|
4907
|
-
return
|
|
4907
|
+
return Xs.getPreset(i);
|
|
4908
4908
|
},
|
|
4909
4909
|
getLayerOrderCSS(e = "") {
|
|
4910
|
-
return
|
|
4910
|
+
return Xs.getLayerOrder(e, this.options, { names: this.getLayerNames() }, this.defaults);
|
|
4911
4911
|
},
|
|
4912
4912
|
transformCSS(e = "", t, n = "style", r) {
|
|
4913
|
-
return
|
|
4913
|
+
return Xs.transformCSS(e, t, r, n, this.options, { layerNames: this.setLayerNames.bind(this) }, this.defaults);
|
|
4914
4914
|
},
|
|
4915
4915
|
getCommonStyleSheet(e = "", t, n = {}) {
|
|
4916
|
-
return
|
|
4916
|
+
return Xs.getCommonStyleSheet({
|
|
4917
4917
|
name: e,
|
|
4918
4918
|
theme: this.theme,
|
|
4919
4919
|
params: t,
|
|
@@ -4923,7 +4923,7 @@ var Ys = {
|
|
|
4923
4923
|
});
|
|
4924
4924
|
},
|
|
4925
4925
|
getStyleSheet(e, t, n = {}) {
|
|
4926
|
-
return
|
|
4926
|
+
return Xs.getStyleSheet({
|
|
4927
4927
|
name: e,
|
|
4928
4928
|
theme: this.theme,
|
|
4929
4929
|
params: t,
|
|
@@ -4939,7 +4939,7 @@ var Ys = {
|
|
|
4939
4939
|
this._loadingStyles.add(e);
|
|
4940
4940
|
},
|
|
4941
4941
|
onStyleLoaded(e, { name: t }) {
|
|
4942
|
-
this._loadingStyles.size && (this._loadingStyles.delete(t),
|
|
4942
|
+
this._loadingStyles.size && (this._loadingStyles.delete(t), Ms.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Ms.emit("theme:load"));
|
|
4943
4943
|
}
|
|
4944
4944
|
}, Zs = "\n *,\n ::before,\n ::after {\n box-sizing: border-box;\n }\n\n .p-collapsible-enter-active {\n animation: p-animate-collapsible-expand 0.2s ease-out;\n overflow: hidden;\n }\n\n .p-collapsible-leave-active {\n animation: p-animate-collapsible-collapse 0.2s ease-out;\n overflow: hidden;\n }\n\n @keyframes p-animate-collapsible-expand {\n from {\n grid-template-rows: 0fr;\n }\n to {\n grid-template-rows: 1fr;\n }\n }\n\n @keyframes p-animate-collapsible-collapse {\n from {\n grid-template-rows: 1fr;\n }\n to {\n grid-template-rows: 0fr;\n }\n }\n\n .p-disabled,\n .p-disabled * {\n cursor: default;\n pointer-events: none;\n user-select: none;\n }\n\n .p-disabled,\n .p-component:disabled {\n opacity: dt('disabled.opacity');\n }\n\n .pi {\n font-size: dt('icon.size');\n }\n\n .p-icon {\n width: dt('icon.size');\n height: dt('icon.size');\n }\n\n .p-overlay-mask {\n background: var(--px-mask-background, dt('mask.background'));\n color: dt('mask.color');\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n .p-overlay-mask-enter-active {\n animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;\n }\n\n .p-overlay-mask-leave-active {\n animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;\n }\n\n @keyframes p-animate-overlay-mask-enter {\n from {\n background: transparent;\n }\n to {\n background: var(--px-mask-background, dt('mask.background'));\n }\n }\n @keyframes p-animate-overlay-mask-leave {\n from {\n background: var(--px-mask-background, dt('mask.background'));\n }\n to {\n background: transparent;\n }\n }\n\n .p-anchored-overlay-enter-active {\n animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);\n }\n\n .p-anchored-overlay-leave-active {\n animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);\n }\n\n @keyframes p-animate-anchored-overlay-enter {\n from {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n\n @keyframes p-animate-anchored-overlay-leave {\n to {\n opacity: 0;\n transform: scale(0.93);\n }\n }\n";
|
|
4945
4945
|
//#endregion
|
|
@@ -5001,16 +5001,16 @@ function ic(e) {
|
|
|
5001
5001
|
}
|
|
5002
5002
|
var ac = 0;
|
|
5003
5003
|
function oc(e) {
|
|
5004
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = M(!1), r = M(e), i = M(null), a =
|
|
5004
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = M(!1), r = M(e), i = M(null), a = bs() ? window.document : void 0, o = t.document, s = o === void 0 ? a : o, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, d = u === void 0 ? !1 : u, f = t.name, p = f === void 0 ? `style_${++ac}` : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, _ = g === void 0 ? void 0 : g, v = t.nonce, y = v === void 0 ? void 0 : v, b = t.first, x = b === void 0 ? !1 : b, S = t.onMounted, C = S === void 0 ? void 0 : S, w = t.onUpdated, T = w === void 0 ? void 0 : w, E = t.onLoad, D = E === void 0 ? void 0 : E, O = t.props, k = O === void 0 ? {} : O, A = function() {}, j = function(t) {
|
|
5005
5005
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5006
5006
|
if (s) {
|
|
5007
5007
|
var o = ec(ec({}, k), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
5008
|
-
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e,
|
|
5008
|
+
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, ys(i.value, {
|
|
5009
5009
|
type: "text/css",
|
|
5010
5010
|
id: l,
|
|
5011
5011
|
media: _,
|
|
5012
5012
|
nonce: u
|
|
5013
|
-
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value),
|
|
5013
|
+
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), xs(i.value, "data-primevue-style-id", c), ys(i.value, o), i.value.onload = function(e) {
|
|
5014
5014
|
return D?.(e, { name: c });
|
|
5015
5015
|
}, C?.(c)), !n.value && (A = L(r, function(e) {
|
|
5016
5016
|
i.value.textContent = e, T?.(c);
|
|
@@ -5023,7 +5023,7 @@ function oc(e) {
|
|
|
5023
5023
|
el: i,
|
|
5024
5024
|
css: r,
|
|
5025
5025
|
unload: function() {
|
|
5026
|
-
!s || !n.value || (A(),
|
|
5026
|
+
!s || !n.value || (A(), _s(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
5027
5027
|
},
|
|
5028
5028
|
load: j,
|
|
5029
5029
|
isLoaded: ee(n)
|
|
@@ -5156,8 +5156,8 @@ var wc = {
|
|
|
5156
5156
|
load: function(e) {
|
|
5157
5157
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function(e) {
|
|
5158
5158
|
return e;
|
|
5159
|
-
})(
|
|
5160
|
-
return
|
|
5159
|
+
})(Js(cc ||= Cc(["", ""]), e));
|
|
5160
|
+
return Q(n) ? oc(fs(n), yc({ name: this.name }, t)) : {};
|
|
5161
5161
|
},
|
|
5162
5162
|
loadCSS: function() {
|
|
5163
5163
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -5167,28 +5167,28 @@ var wc = {
|
|
|
5167
5167
|
var e = this, t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
5168
5168
|
return this.load(this.style, t, function() {
|
|
5169
5169
|
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
5170
|
-
return
|
|
5170
|
+
return $.transformCSS(t.name || e.name, `${r}${Js(lc ||= Cc(["", ""]), n)}`);
|
|
5171
5171
|
});
|
|
5172
5172
|
},
|
|
5173
5173
|
getCommonTheme: function(e) {
|
|
5174
|
-
return
|
|
5174
|
+
return $.getCommon(this.name, e);
|
|
5175
5175
|
},
|
|
5176
5176
|
getComponentTheme: function(e) {
|
|
5177
|
-
return
|
|
5177
|
+
return $.getComponent(this.name, e);
|
|
5178
5178
|
},
|
|
5179
5179
|
getDirectiveTheme: function(e) {
|
|
5180
|
-
return
|
|
5180
|
+
return $.getDirective(this.name, e);
|
|
5181
5181
|
},
|
|
5182
5182
|
getPresetTheme: function(e, t, n) {
|
|
5183
|
-
return
|
|
5183
|
+
return $.getCustomPreset(this.name, e, t, n);
|
|
5184
5184
|
},
|
|
5185
5185
|
getLayerOrderThemeCSS: function() {
|
|
5186
|
-
return
|
|
5186
|
+
return $.getLayerOrderCSS(this.name);
|
|
5187
5187
|
},
|
|
5188
5188
|
getStyleSheet: function() {
|
|
5189
5189
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5190
5190
|
if (this.css) {
|
|
5191
|
-
var n =
|
|
5191
|
+
var n = ss(this.css, { dt: Ks }) || "", r = fs(Js(uc ||= Cc([
|
|
5192
5192
|
"",
|
|
5193
5193
|
"",
|
|
5194
5194
|
""
|
|
@@ -5196,22 +5196,22 @@ var wc = {
|
|
|
5196
5196
|
var n = fc(t, 2), r = n[0], i = n[1];
|
|
5197
5197
|
return e.push(`${r}="${i}"`) && e;
|
|
5198
5198
|
}, []).join(" ");
|
|
5199
|
-
return
|
|
5199
|
+
return Q(r) ? `<style type="text/css" data-primevue-style-id="${this.name}" ${i}>${r}</style>` : "";
|
|
5200
5200
|
}
|
|
5201
5201
|
return "";
|
|
5202
5202
|
},
|
|
5203
5203
|
getCommonThemeStyleSheet: function(e) {
|
|
5204
5204
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5205
|
-
return
|
|
5205
|
+
return $.getCommonStyleSheet(this.name, e, t);
|
|
5206
5206
|
},
|
|
5207
5207
|
getThemeStyleSheet: function(e) {
|
|
5208
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [
|
|
5208
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [$.getStyleSheet(this.name, e, t)];
|
|
5209
5209
|
if (this.style) {
|
|
5210
|
-
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i =
|
|
5210
|
+
var r = this.name === "base" ? "global-style" : `${this.name}-style`, i = Js(dc ||= Cc(["", ""]), ss(this.style, { dt: Ks })), a = fs($.transformCSS(r, i)), o = Object.entries(t).reduce(function(e, t) {
|
|
5211
5211
|
var n = fc(t, 2), r = n[0], i = n[1];
|
|
5212
5212
|
return e.push(`${r}="${i}"`) && e;
|
|
5213
5213
|
}, []).join(" ");
|
|
5214
|
-
|
|
5214
|
+
Q(a) && n.push(`<style type="text/css" data-primevue-style-id="${r}" ${o}>${a}</style>`);
|
|
5215
5215
|
}
|
|
5216
5216
|
return n.join("");
|
|
5217
5217
|
},
|
|
@@ -5225,7 +5225,7 @@ var wc = {
|
|
|
5225
5225
|
wc.extend({ name: "common" }), wc.extend({ name: "common" });
|
|
5226
5226
|
//#endregion
|
|
5227
5227
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/service/index.mjs
|
|
5228
|
-
var Tc =
|
|
5228
|
+
var Tc = hs();
|
|
5229
5229
|
//#endregion
|
|
5230
5230
|
//#region ../node_modules/.pnpm/@primevue+core@4.5.4_vue@3.5.32_typescript@5.9.3_/node_modules/@primevue/core/config/index.mjs
|
|
5231
5231
|
function Ec(e) {
|
|
@@ -5466,26 +5466,26 @@ var Mc = {
|
|
|
5466
5466
|
},
|
|
5467
5467
|
filterMatchModeOptions: {
|
|
5468
5468
|
text: [
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5469
|
+
ms.STARTS_WITH,
|
|
5470
|
+
ms.CONTAINS,
|
|
5471
|
+
ms.NOT_CONTAINS,
|
|
5472
|
+
ms.ENDS_WITH,
|
|
5473
|
+
ms.EQUALS,
|
|
5474
|
+
ms.NOT_EQUALS
|
|
5475
5475
|
],
|
|
5476
5476
|
numeric: [
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5477
|
+
ms.EQUALS,
|
|
5478
|
+
ms.NOT_EQUALS,
|
|
5479
|
+
ms.LESS_THAN,
|
|
5480
|
+
ms.LESS_THAN_OR_EQUAL_TO,
|
|
5481
|
+
ms.GREATER_THAN,
|
|
5482
|
+
ms.GREATER_THAN_OR_EQUAL_TO
|
|
5483
5483
|
],
|
|
5484
5484
|
date: [
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5485
|
+
ms.DATE_IS,
|
|
5486
|
+
ms.DATE_IS_NOT,
|
|
5487
|
+
ms.DATE_BEFORE,
|
|
5488
|
+
ms.DATE_AFTER
|
|
5489
5489
|
]
|
|
5490
5490
|
},
|
|
5491
5491
|
zIndex: {
|
|
@@ -5509,18 +5509,18 @@ function Pc(e, t) {
|
|
|
5509
5509
|
}
|
|
5510
5510
|
var Fc = [];
|
|
5511
5511
|
function Ic() {
|
|
5512
|
-
|
|
5512
|
+
Ms.clear(), Fc.forEach(function(e) {
|
|
5513
5513
|
return e?.();
|
|
5514
5514
|
}), Fc = [];
|
|
5515
5515
|
}
|
|
5516
5516
|
function Lc(e, t) {
|
|
5517
5517
|
var n = M(!1), r = function() {
|
|
5518
|
-
if (t.config?.theme !== "none" &&
|
|
5518
|
+
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
5519
5519
|
var e, n = wc.getCommonTheme?.call(wc) || {}, r = n.primitive, i = n.semantic, a = n.global, o = n.style, s = { nonce: (e = t.config) == null || (e = e.csp) == null ? void 0 : e.nonce };
|
|
5520
|
-
wc.load(r?.css, Oc({ name: "primitive-variables" }, s)), wc.load(i?.css, Oc({ name: "semantic-variables" }, s)), wc.load(a?.css, Oc({ name: "global-variables" }, s)), wc.loadStyle(Oc({ name: "global-style" }, s), o),
|
|
5520
|
+
wc.load(r?.css, Oc({ name: "primitive-variables" }, s)), wc.load(i?.css, Oc({ name: "semantic-variables" }, s)), wc.load(a?.css, Oc({ name: "global-variables" }, s)), wc.loadStyle(Oc({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
5521
5521
|
}
|
|
5522
5522
|
};
|
|
5523
|
-
|
|
5523
|
+
Ms.on("theme:change", function(t) {
|
|
5524
5524
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
5525
5525
|
});
|
|
5526
5526
|
var i = L(t.config, function(e, t) {
|
|
@@ -5544,7 +5544,7 @@ function Lc(e, t) {
|
|
|
5544
5544
|
}), o = L(function() {
|
|
5545
5545
|
return t.config.theme;
|
|
5546
5546
|
}, function(e, i) {
|
|
5547
|
-
n.value ||
|
|
5547
|
+
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, Tc.emit("config:theme:change", {
|
|
5548
5548
|
newValue: e,
|
|
5549
5549
|
oldValue: i
|
|
5550
5550
|
});
|
|
@@ -5565,7 +5565,7 @@ function Lc(e, t) {
|
|
|
5565
5565
|
Fc.push(i), Fc.push(a), Fc.push(o), Fc.push(s);
|
|
5566
5566
|
}
|
|
5567
5567
|
var Rc = { install: function(e, t) {
|
|
5568
|
-
Pc(e,
|
|
5568
|
+
Pc(e, ds(Mc, t));
|
|
5569
5569
|
} }, zc = {
|
|
5570
5570
|
root: { transitionDuration: "{transition.duration}" },
|
|
5571
5571
|
panel: {
|
|
@@ -10349,12 +10349,12 @@ function Mu(e, t) {
|
|
|
10349
10349
|
return !1;
|
|
10350
10350
|
}
|
|
10351
10351
|
function Nu(e) {
|
|
10352
|
-
if (e.shadowRoot && !Mu(e, "pit-viper-v2")) {
|
|
10352
|
+
if (e.shadowRoot && !Mu(e, "pit-viper-v3") && !Mu(e, "pit-viper-v2")) {
|
|
10353
10353
|
if (Mu(e, "pit-viper")) {
|
|
10354
10354
|
Mu(e, "pit-viper-v2-scoped");
|
|
10355
10355
|
return;
|
|
10356
10356
|
}
|
|
10357
|
-
console.warn("No global styles found for Pit Viper components. Make sure to include pit-viper
|
|
10357
|
+
console.warn("No global styles found for Pit Viper components. Make sure to include pit-viper-v3.css in your project.");
|
|
10358
10358
|
}
|
|
10359
10359
|
}
|
|
10360
10360
|
var Pu = (e) => ({ shadowRoot: ju(e) });
|
|
@@ -10464,5 +10464,5 @@ function Gu(e) {
|
|
|
10464
10464
|
}
|
|
10465
10465
|
//#endregion
|
|
10466
10466
|
//#region .build-temp-pv-query-builder-input.ts
|
|
10467
|
-
Gu(
|
|
10467
|
+
Gu(Yo);
|
|
10468
10468
|
//#endregion
|