@turquoisehealth/pit-viper 2.218.1 → 2.219.1-dev.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/_site/assets/css/pit-viper-a11y.css +15 -5
- package/_site/assets/css/pit-viper-v2.css +48 -15
- package/package.json +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/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-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-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-expandable-content-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-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 +4950 -0
- package/pv-components/dist/stats/web/pv-skeleton-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-sprite-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/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/ai/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/ai/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/base/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +1483 -1164
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvBanner/PvBanner.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDatePicker/PvDatePicker.vue.d.ts +19 -9
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverMenu/PvPopoverMenu.vue.d.ts +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/PvPopoverV2.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvPopoverV2/types.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebar/PvSidebar.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/PvSidebarV2.vue.d.ts +43 -0
- package/pv-components/dist/vue/visualizations/components/base/PvSidebarV2/types.d.ts +24 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/useBenchmarkOverlays.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +261 -218
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +2 -1
- package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +2 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +26 -9
- package/pv-components/dist/web/components/pv-ai-button/pv-ai-button.js +2 -1
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +2 -1
- package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +2 -1
- package/pv-components/dist/web/components/pv-banner/pv-banner.js +415 -411
- package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +2 -1
- package/pv-components/dist/web/components/pv-button/pv-button.js +2 -1
- package/pv-components/dist/web/components/pv-card/pv-card.js +2 -1
- package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +2 -1
- package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +2 -1
- package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +2 -1
- package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +2 -1
- package/pv-components/dist/web/components/pv-confirmation/pv-confirmation.js +2 -1
- package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +2 -1
- package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +571 -526
- package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +2 -1
- package/pv-components/dist/web/components/pv-distribution-bar/pv-distribution-bar.js +2 -1
- package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +2 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +2 -1
- package/pv-components/dist/web/components/pv-empty-error-state/pv-empty-error-state.js +2 -1
- package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +2 -1
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +492 -477
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +26 -9
- package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +2 -1
- package/pv-components/dist/web/components/pv-header/pv-header.js +2 -1
- package/pv-components/dist/web/components/pv-horizontal-scroller/pv-horizontal-scroller.js +2 -1
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +534 -517
- package/pv-components/dist/web/components/pv-icon/pv-icon.js +2 -1
- package/pv-components/dist/web/components/pv-input/pv-input.js +2 -1
- package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +2 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +26 -9
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -1
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +26 -9
- package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +2 -1
- package/pv-components/dist/web/components/pv-pill/pv-pill.js +2 -1
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +2 -1
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +2 -1
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +23 -8
- package/pv-components/dist/web/components/pv-progress-bar/pv-progress-bar.js +2 -1
- package/pv-components/dist/web/components/pv-prompt-input/pv-prompt-input.js +2 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +26 -9
- package/pv-components/dist/web/components/pv-question/pv-question.js +2 -1
- package/pv-components/dist/web/components/pv-radio-group/pv-radio-group.js +2 -1
- package/pv-components/dist/web/components/pv-range/pv-range.js +2 -1
- package/pv-components/dist/web/components/pv-rating/pv-rating.js +2 -1
- package/pv-components/dist/web/components/pv-reasoning/pv-reasoning.js +2 -1
- package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +2 -1
- package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +2 -1
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +621 -604
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +26 -9
- package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +2 -1
- package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +2 -1
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +438 -432
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +8077 -0
- package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +2 -1
- package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +2 -1
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +23 -8
- package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +2 -1
- package/pv-components/dist/web/components/pv-stepper/pv-stepper.js +2 -1
- package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +2 -1
- package/pv-components/dist/web/components/pv-switch/pv-switch.js +2 -1
- package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +2 -1
- package/pv-components/dist/web/components/pv-table-of-contents/pv-table-of-contents.js +2 -1
- package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +2 -1
- package/pv-components/dist/web/components/pv-tag/pv-tag.js +2 -1
- package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +2 -1
- package/pv-components/dist/web/components/pv-toast/pv-toast.js +2 -1
- package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +2 -1
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +26 -9
- package/pv-components/dist/web/components/pv-tool/pv-tool.js +2 -1
- package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +2 -1
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +26 -9
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +2 -1
- package/pv-components/dist/web/components/pv-widget/pv-widget.js +2 -1
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import * as e from "vue";
|
|
2
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, defineCustomElement as d, getCurrentInstance as f, getCurrentScope as p, inject as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as
|
|
2
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, defineCustomElement as d, getCurrentInstance as f, getCurrentScope as p, inject as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as x, onBeforeUpdate as S, onMounted as C, onScopeDispose as w, onUnmounted as T, openBlock as E, reactive as D, readonly as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toValue as F, unref as I, useId as ee, useModel as te, useSlots as ne, useTemplateRef as re, vModelCheckbox as ie, vModelDynamic as ae, vModelText as oe, vShow as se, watch as L, watchEffect as ce, withCtx as le, withDirectives as R, withModifiers as ue } from "vue";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var z = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.prototype.hasOwnProperty, me = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) z(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
12
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
10
|
+
return t || z(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, he = (e, t, n, r) => {
|
|
12
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = fe(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !pe.call(e, s) && s !== n && z(e, s, {
|
|
13
13
|
get: ((e) => t[e]).bind(null, s),
|
|
14
|
-
enumerable: !(r =
|
|
14
|
+
enumerable: !(r = de(t, s)) || r.enumerable
|
|
15
15
|
});
|
|
16
16
|
return e;
|
|
17
|
-
},
|
|
17
|
+
}, B = (e, t, n) => (he(e, t, "default"), n && he(n, t, "default"));
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../node_modules/.pnpm/@vueuse+shared@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/shared/index.mjs
|
|
20
|
-
function
|
|
20
|
+
function ge(e) {
|
|
21
21
|
return p() ? (w(e), !0) : !1;
|
|
22
22
|
}
|
|
23
|
-
var
|
|
23
|
+
var _e = typeof window < "u" && typeof document < "u";
|
|
24
24
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
25
|
-
var
|
|
26
|
-
function
|
|
27
|
-
return
|
|
25
|
+
var ve = (e) => e != null, ye = Object.prototype.toString, be = (e) => ye.call(e) === "[object Object]", V = () => {}, xe = /* @__PURE__ */ Se();
|
|
26
|
+
function Se() {
|
|
27
|
+
return _e && (window == null ? void 0 : window.navigator)?.userAgent && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || (window == null ? void 0 : window.navigator)?.maxTouchPoints > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ce(e, t) {
|
|
30
30
|
function n(...n) {
|
|
31
31
|
return new Promise((r, i) => {
|
|
32
32
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -38,13 +38,13 @@ function we(e, t) {
|
|
|
38
38
|
}
|
|
39
39
|
return n;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
let n, r, i =
|
|
44
|
-
clearTimeout(e), i(), i =
|
|
41
|
+
var we = (e) => e();
|
|
42
|
+
function Te(e, t = {}) {
|
|
43
|
+
let n, r, i = V, a = (e) => {
|
|
44
|
+
clearTimeout(e), i(), i = V;
|
|
45
45
|
}, o;
|
|
46
46
|
return (s) => {
|
|
47
|
-
let c =
|
|
47
|
+
let c = F(e), l = F(t.maxWait);
|
|
48
48
|
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
49
49
|
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
50
50
|
n && a(n), r = void 0, e(o());
|
|
@@ -54,94 +54,94 @@ function Ee(e, t = {}) {
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ee(e) {
|
|
58
58
|
return Array.isArray(e) ? e : [e];
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function De(e) {
|
|
61
61
|
return e || f();
|
|
62
62
|
}
|
|
63
63
|
/* @__NO_SIDE_EFFECTS__ */
|
|
64
|
-
function
|
|
65
|
-
return
|
|
64
|
+
function Oe(e, t = 200, n = {}) {
|
|
65
|
+
return Ce(Te(t, n), e);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
let { eventFilter: r =
|
|
69
|
-
return
|
|
67
|
+
function ke(e, t, n = {}) {
|
|
68
|
+
let { eventFilter: r = we, ...i } = n;
|
|
69
|
+
return L(e, Ce(r, t), i);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function Ae(e, t = !0, n) {
|
|
72
|
+
De(n) ? C(e, n) : t ? e() : _(e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function je(e, t, n = {}) {
|
|
75
75
|
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
76
|
-
return
|
|
76
|
+
return ke(e, t, {
|
|
77
77
|
...a,
|
|
78
|
-
eventFilter:
|
|
78
|
+
eventFilter: Te(r, { maxWait: i })
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function Me(e, t, n) {
|
|
82
|
+
return L(e, t, {
|
|
83
83
|
...n,
|
|
84
84
|
immediate: !0
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region ../node_modules/.pnpm/@vueuse+core@13.9.0_vue@3.5.32_typescript@5.9.3_/node_modules/@vueuse/core/index.mjs
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
function
|
|
92
|
-
let t =
|
|
89
|
+
var H = _e ? window : void 0;
|
|
90
|
+
_e && window.document, _e && window.navigator, _e && window.location;
|
|
91
|
+
function U(e) {
|
|
92
|
+
let t = F(e);
|
|
93
93
|
return t?.$el ?? t;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ne(...e) {
|
|
96
96
|
let t = [], n = () => {
|
|
97
97
|
t.forEach((e) => e()), t.length = 0;
|
|
98
98
|
}, i = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), a = r(() => {
|
|
99
|
-
let t =
|
|
99
|
+
let t = Ee(F(e[0])).filter((e) => e != null);
|
|
100
100
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
101
|
-
}), o =
|
|
102
|
-
a.value?.map((e) =>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
}), o = Me(() => [
|
|
102
|
+
a.value?.map((e) => U(e)) ?? [H].filter((e) => e != null),
|
|
103
|
+
Ee(F(a.value ? e[1] : e[0])),
|
|
104
|
+
Ee(I(a.value ? e[2] : e[1])),
|
|
105
|
+
F(a.value ? e[3] : e[2])
|
|
106
106
|
], ([e, r, a, o]) => {
|
|
107
107
|
if (n(), !e?.length || !r?.length || !a?.length) return;
|
|
108
|
-
let s =
|
|
108
|
+
let s = be(o) ? { ...o } : o;
|
|
109
109
|
t.push(...e.flatMap((e) => r.flatMap((t) => a.map((n) => i(e, t, n, s)))));
|
|
110
110
|
}, { flush: "post" });
|
|
111
|
-
return
|
|
111
|
+
return ge(n), () => {
|
|
112
112
|
o(), n();
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
function
|
|
117
|
-
let { window: r =
|
|
115
|
+
var Pe = !1;
|
|
116
|
+
function Fe(e, t, n = {}) {
|
|
117
|
+
let { window: r = H, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
118
118
|
if (!r) return s ? {
|
|
119
|
-
stop:
|
|
120
|
-
cancel:
|
|
121
|
-
trigger:
|
|
122
|
-
} :
|
|
123
|
-
if (
|
|
124
|
-
|
|
119
|
+
stop: V,
|
|
120
|
+
cancel: V,
|
|
121
|
+
trigger: V
|
|
122
|
+
} : V;
|
|
123
|
+
if (xe && !Pe) {
|
|
124
|
+
Pe = !0;
|
|
125
125
|
let e = { passive: !0 };
|
|
126
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click",
|
|
126
|
+
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", V, e)), r.document.documentElement.addEventListener("click", V, e);
|
|
127
127
|
}
|
|
128
|
-
let c = !0, l = (e) =>
|
|
128
|
+
let c = !0, l = (e) => F(i).some((t) => {
|
|
129
129
|
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
130
130
|
{
|
|
131
|
-
let n =
|
|
131
|
+
let n = U(t);
|
|
132
132
|
return n && (e.target === n || e.composedPath().includes(n));
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
function u(e) {
|
|
136
|
-
let t =
|
|
136
|
+
let t = F(e);
|
|
137
137
|
return t && t.$.subTree.shapeFlag === 16;
|
|
138
138
|
}
|
|
139
139
|
function d(e, t) {
|
|
140
|
-
let n =
|
|
140
|
+
let n = F(e), r = n.$.subTree && n.$.subTree.children;
|
|
141
141
|
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
142
142
|
}
|
|
143
143
|
let f = (n) => {
|
|
144
|
-
let r =
|
|
144
|
+
let r = U(e);
|
|
145
145
|
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
146
146
|
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
147
147
|
c = !0;
|
|
@@ -150,7 +150,7 @@ function Ie(e, t, n = {}) {
|
|
|
150
150
|
t(n);
|
|
151
151
|
}
|
|
152
152
|
}, p = !1, m = [
|
|
153
|
-
|
|
153
|
+
Ne(r, "click", (e) => {
|
|
154
154
|
p || (p = !0, setTimeout(() => {
|
|
155
155
|
p = !1;
|
|
156
156
|
}, 0), f(e));
|
|
@@ -158,13 +158,13 @@ function Ie(e, t, n = {}) {
|
|
|
158
158
|
passive: !0,
|
|
159
159
|
capture: a
|
|
160
160
|
}),
|
|
161
|
-
|
|
162
|
-
let n =
|
|
161
|
+
Ne(r, "pointerdown", (t) => {
|
|
162
|
+
let n = U(e);
|
|
163
163
|
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
164
164
|
}, { passive: !0 }),
|
|
165
|
-
o &&
|
|
165
|
+
o && Ne(r, "blur", (n) => {
|
|
166
166
|
setTimeout(() => {
|
|
167
|
-
let i =
|
|
167
|
+
let i = U(e);
|
|
168
168
|
r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
169
169
|
}, 0);
|
|
170
170
|
}, { passive: !0 })
|
|
@@ -180,22 +180,22 @@ function Ie(e, t, n = {}) {
|
|
|
180
180
|
} : h;
|
|
181
181
|
}
|
|
182
182
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
|
-
function
|
|
184
|
-
let e =
|
|
183
|
+
function Ie() {
|
|
184
|
+
let e = N(!1), t = f();
|
|
185
185
|
return t && C(() => {
|
|
186
186
|
e.value = !0;
|
|
187
187
|
}, t), e;
|
|
188
188
|
}
|
|
189
189
|
/* @__NO_SIDE_EFFECTS__ */
|
|
190
|
-
function
|
|
191
|
-
let t = /* @__PURE__ */
|
|
190
|
+
function Le(e) {
|
|
191
|
+
let t = /* @__PURE__ */ Ie();
|
|
192
192
|
return r(() => (t.value, !!e()));
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
let { window: i =
|
|
194
|
+
function Re(e, t, n = {}) {
|
|
195
|
+
let { window: i = H, ...a } = n, o, s = /* @__PURE__ */ Le(() => i && "MutationObserver" in i), c = () => {
|
|
196
196
|
o &&= (o.disconnect(), void 0);
|
|
197
|
-
}, l =
|
|
198
|
-
let t =
|
|
197
|
+
}, l = L(r(() => {
|
|
198
|
+
let t = Ee(F(e)).map(U).filter(ve);
|
|
199
199
|
return new Set(t);
|
|
200
200
|
}), (e) => {
|
|
201
201
|
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
@@ -205,21 +205,21 @@ function ze(e, t, n = {}) {
|
|
|
205
205
|
}), u = () => o?.takeRecords(), d = () => {
|
|
206
206
|
l(), c();
|
|
207
207
|
};
|
|
208
|
-
return
|
|
208
|
+
return ge(d), {
|
|
209
209
|
isSupported: s,
|
|
210
210
|
stop: d,
|
|
211
211
|
takeRecords: u
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
let { window: r =
|
|
216
|
-
if (!r || !i) return
|
|
214
|
+
function ze(e, t, n = {}) {
|
|
215
|
+
let { window: r = H, document: i = r?.document, flush: a = "sync" } = n;
|
|
216
|
+
if (!r || !i) return V;
|
|
217
217
|
let o, s = (e) => {
|
|
218
218
|
o?.(), o = e;
|
|
219
|
-
}, c =
|
|
220
|
-
let n =
|
|
219
|
+
}, c = ce(() => {
|
|
220
|
+
let n = U(e);
|
|
221
221
|
if (n) {
|
|
222
|
-
let { stop: e } =
|
|
222
|
+
let { stop: e } = Re(i, (e) => {
|
|
223
223
|
e.map((e) => [...e.removedNodes]).flat().some((e) => e === n || e.contains(n)) && t(e);
|
|
224
224
|
}, {
|
|
225
225
|
window: r,
|
|
@@ -231,25 +231,25 @@ function Be(e, t, n = {}) {
|
|
|
231
231
|
}, { flush: a }), l = () => {
|
|
232
232
|
c(), s();
|
|
233
233
|
};
|
|
234
|
-
return
|
|
234
|
+
return ge(l), l;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Be(e) {
|
|
237
237
|
return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Ve(...e) {
|
|
240
240
|
let t, n, r = {};
|
|
241
241
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
242
|
-
let { target: i =
|
|
243
|
-
return
|
|
244
|
-
e.repeat &&
|
|
242
|
+
let { target: i = H, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = Be(t);
|
|
243
|
+
return Ne(i, a, (e) => {
|
|
244
|
+
e.repeat && F(s) || c(e) && n(e);
|
|
245
245
|
}, o);
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
let { window: i =
|
|
247
|
+
function He(e, t, n = {}) {
|
|
248
|
+
let { window: i = H, ...a } = n, o, s = /* @__PURE__ */ Le(() => i && "ResizeObserver" in i), c = () => {
|
|
249
249
|
o &&= (o.disconnect(), void 0);
|
|
250
|
-
}, l =
|
|
251
|
-
let t =
|
|
252
|
-
return Array.isArray(t) ? t.map((e) =>
|
|
250
|
+
}, l = L(r(() => {
|
|
251
|
+
let t = F(e);
|
|
252
|
+
return Array.isArray(t) ? t.map((e) => U(e)) : [U(t)];
|
|
253
253
|
}), (e) => {
|
|
254
254
|
if (c(), s.value && i) {
|
|
255
255
|
o = new ResizeObserver(t);
|
|
@@ -261,15 +261,15 @@ function Ue(e, t, n = {}) {
|
|
|
261
261
|
}), u = () => {
|
|
262
262
|
c(), l();
|
|
263
263
|
};
|
|
264
|
-
return
|
|
264
|
+
return ge(u), {
|
|
265
265
|
isSupported: s,
|
|
266
266
|
stop: u
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s =
|
|
269
|
+
function Ue(e, t = {}) {
|
|
270
|
+
let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: a = !0, updateTiming: o = "sync" } = t, s = N(0), c = N(0), l = N(0), u = N(0), d = N(0), f = N(0), p = N(0), m = N(0);
|
|
271
271
|
function h() {
|
|
272
|
-
let t =
|
|
272
|
+
let t = U(e);
|
|
273
273
|
if (!t) {
|
|
274
274
|
n && (s.value = 0, c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0);
|
|
275
275
|
return;
|
|
@@ -280,10 +280,10 @@ function We(e, t = {}) {
|
|
|
280
280
|
function g() {
|
|
281
281
|
o === "sync" ? h() : o === "next-frame" && requestAnimationFrame(() => h());
|
|
282
282
|
}
|
|
283
|
-
return
|
|
283
|
+
return He(e, g), L(() => U(e), (e) => !e && g()), Re(e, g, { attributeFilter: ["style", "class"] }), i && Ne("scroll", g, {
|
|
284
284
|
capture: !0,
|
|
285
285
|
passive: !0
|
|
286
|
-
}), r &&
|
|
286
|
+
}), r && Ne("resize", g, { passive: !0 }), Ae(() => {
|
|
287
287
|
a && g();
|
|
288
288
|
}), {
|
|
289
289
|
height: s,
|
|
@@ -297,16 +297,16 @@ function We(e, t = {}) {
|
|
|
297
297
|
update: g
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
|
-
function
|
|
301
|
-
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o =
|
|
300
|
+
function We(e, t = {}) {
|
|
301
|
+
let { delayEnter: n = 0, delayLeave: i = 0, triggerOnRemoval: a = !1, window: o = H } = t, s = N(!1), c, l = (e) => {
|
|
302
302
|
let t = e ? n : i;
|
|
303
303
|
c &&= (clearTimeout(c), void 0), t ? c = setTimeout(() => s.value = e, t) : s.value = e;
|
|
304
304
|
};
|
|
305
|
-
return o ? (
|
|
305
|
+
return o ? (Ne(e, "mouseenter", () => l(!0), { passive: !0 }), Ne(e, "mouseleave", () => l(!1), { passive: !0 }), a && ze(r(() => U(e)), () => l(!1)), s) : s;
|
|
306
306
|
}
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/components/base/PvSpinner/PvSpinner.vue
|
|
309
|
-
var
|
|
309
|
+
var Ge = /* @__PURE__ */ u({
|
|
310
310
|
__name: "PvSpinner",
|
|
311
311
|
props: {
|
|
312
312
|
size: {
|
|
@@ -336,20 +336,20 @@ var Ke = /* @__PURE__ */ u({
|
|
|
336
336
|
style: b({ "--size": t[e.size] })
|
|
337
337
|
}, null, 6));
|
|
338
338
|
}
|
|
339
|
-
}),
|
|
339
|
+
}), Ke = ["ghost"], qe = {
|
|
340
340
|
md: "pv-button-small",
|
|
341
341
|
lg: void 0,
|
|
342
342
|
xl: "pv-button-large"
|
|
343
|
-
},
|
|
343
|
+
}, Je = (e) => e == null || !qe.hasOwnProperty(e) ? null : qe[e] || null;
|
|
344
344
|
//#endregion
|
|
345
345
|
//#region src/web-components/utils.ts
|
|
346
|
-
function
|
|
347
|
-
let e =
|
|
346
|
+
function Ye() {
|
|
347
|
+
let e = k(!1), t = f()?.root || {};
|
|
348
348
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
351
351
|
//#region src/components/base/baseProps.ts
|
|
352
|
-
var
|
|
352
|
+
var Xe = [
|
|
353
353
|
void 0,
|
|
354
354
|
10,
|
|
355
355
|
12,
|
|
@@ -357,24 +357,24 @@ var Ze = [
|
|
|
357
357
|
24,
|
|
358
358
|
32,
|
|
359
359
|
64
|
|
360
|
-
],
|
|
360
|
+
], Ze = ["xlink:href"], Qe = /* @__PURE__ */ u({
|
|
361
361
|
__name: "PvIcon",
|
|
362
362
|
props: {
|
|
363
363
|
name: { type: String },
|
|
364
364
|
size: { type: null }
|
|
365
365
|
},
|
|
366
366
|
setup(e) {
|
|
367
|
-
let t = e, n =
|
|
367
|
+
let t = e, n = Ye(), i = k(null), a = r(() => ({
|
|
368
368
|
"pv-icon": !0,
|
|
369
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
369
|
+
[`pv-icon-${t.size}`]: t.size != null && Xe.includes(t.size)
|
|
370
370
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
371
371
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (E(), o("svg", {
|
|
372
372
|
"data-testid": "pv-icon",
|
|
373
373
|
"aria-hidden": "true",
|
|
374
374
|
class: v(a.value)
|
|
375
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
375
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, Ze)], 2));
|
|
376
376
|
}
|
|
377
|
-
}),
|
|
377
|
+
}), $e = /* @__PURE__ */ u({
|
|
378
378
|
__name: "PvCounterBadge",
|
|
379
379
|
props: {
|
|
380
380
|
maxValue: {
|
|
@@ -409,16 +409,16 @@ var Ze = [
|
|
|
409
409
|
return (e, t) => (E(), o("div", {
|
|
410
410
|
class: v(i.value),
|
|
411
411
|
"data-testid": "pv-counter-badge"
|
|
412
|
-
},
|
|
412
|
+
}, P(n.value), 3));
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), et = ".pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}", tt = (e, t) => {
|
|
415
415
|
let n = e.__vccOpts || e;
|
|
416
416
|
for (let [e, r] of t) n[e] = r;
|
|
417
417
|
return n;
|
|
418
|
-
},
|
|
418
|
+
}, nt = /* @__PURE__ */ tt($e, [["styles", [et]], ["__scopeId", "data-v-013a5d76"]]), rt = ["disabled", "aria-label"], it = {
|
|
419
419
|
key: 2,
|
|
420
420
|
"data-testid": "pv-button-label"
|
|
421
|
-
},
|
|
421
|
+
}, at = /* @__PURE__ */ u({
|
|
422
422
|
__name: "PvButton",
|
|
423
423
|
props: {
|
|
424
424
|
variant: {
|
|
@@ -451,8 +451,8 @@ var Ze = [
|
|
|
451
451
|
setup(e) {
|
|
452
452
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
453
453
|
let e = [];
|
|
454
|
-
n.inverse &&
|
|
455
|
-
let t =
|
|
454
|
+
n.inverse && Ke.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
455
|
+
let t = Je(n.size);
|
|
456
456
|
return t && e.push(t), e;
|
|
457
457
|
});
|
|
458
458
|
return (n, r) => (E(), o("button", {
|
|
@@ -461,34 +461,34 @@ var Ze = [
|
|
|
461
461
|
disabled: e.disabled,
|
|
462
462
|
"aria-label": s.value,
|
|
463
463
|
"data-testid": "pv-button"
|
|
464
|
-
}, [e.loading ? (E(), i(
|
|
464
|
+
}, [e.loading ? (E(), i(Ge, {
|
|
465
465
|
key: 0,
|
|
466
466
|
size: "sm"
|
|
467
467
|
})) : (E(), o(t, { key: 1 }, [
|
|
468
|
-
e.leftCounterBadge ? (E(), i(
|
|
468
|
+
e.leftCounterBadge ? (E(), i(nt, {
|
|
469
469
|
key: 0,
|
|
470
470
|
value: e.leftCounterBadge,
|
|
471
471
|
variant: "tertiary"
|
|
472
472
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
473
|
-
e.leftIcon ? (E(), i(
|
|
473
|
+
e.leftIcon ? (E(), i(Qe, {
|
|
474
474
|
key: 1,
|
|
475
475
|
name: e.leftIcon,
|
|
476
476
|
"data-testid": "pv-button-left-icon"
|
|
477
477
|
}, null, 8, ["name"])) : a("v-if", !0),
|
|
478
|
-
e.label ? (E(), o("span",
|
|
479
|
-
e.rightCounterBadge ? (E(), i(
|
|
478
|
+
e.label ? (E(), o("span", it, P(e.label), 1)) : a("v-if", !0),
|
|
479
|
+
e.rightCounterBadge ? (E(), i(nt, {
|
|
480
480
|
key: 3,
|
|
481
481
|
value: e.rightCounterBadge,
|
|
482
482
|
variant: "tertiary"
|
|
483
483
|
}, null, 8, ["value"])) : a("v-if", !0),
|
|
484
|
-
e.rightIcon ? (E(), i(
|
|
484
|
+
e.rightIcon ? (E(), i(Qe, {
|
|
485
485
|
key: 4,
|
|
486
486
|
name: e.rightIcon,
|
|
487
487
|
"data-testid": "pv-button-right-icon"
|
|
488
488
|
}, null, 8, ["name"])) : a("v-if", !0)
|
|
489
|
-
], 64))], 10,
|
|
489
|
+
], 64))], 10, rt));
|
|
490
490
|
}
|
|
491
|
-
}),
|
|
491
|
+
}), ot = Math.min, st = Math.max, ct = Math.round, lt = (e) => ({
|
|
492
492
|
x: e,
|
|
493
493
|
y: e
|
|
494
494
|
}), ut = {
|
|
@@ -882,7 +882,7 @@ function sn(e) {
|
|
|
882
882
|
//#endregion
|
|
883
883
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
884
884
|
function cn(e) {
|
|
885
|
-
let t = K(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ut(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
885
|
+
let t = K(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Ut(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ct(n) !== a || ct(r) !== o;
|
|
886
886
|
return s && (n = a, r = o), {
|
|
887
887
|
width: n,
|
|
888
888
|
height: r,
|
|
@@ -894,14 +894,14 @@ function ln(e) {
|
|
|
894
894
|
}
|
|
895
895
|
function un(e) {
|
|
896
896
|
let t = ln(e);
|
|
897
|
-
if (!Ut(t)) return
|
|
898
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = cn(t), o = (a ?
|
|
897
|
+
if (!Ut(t)) return lt(1);
|
|
898
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = cn(t), o = (a ? ct(n.width) : n.width) / r, s = (a ? ct(n.height) : n.height) / i;
|
|
899
899
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
900
900
|
x: o,
|
|
901
901
|
y: s
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
var dn = /* @__PURE__ */
|
|
904
|
+
var dn = /* @__PURE__ */ lt(0);
|
|
905
905
|
function fn(e) {
|
|
906
906
|
let t = W(e);
|
|
907
907
|
return !en() || !t.visualViewport ? dn : {
|
|
@@ -914,9 +914,9 @@ function pn(e, t, n) {
|
|
|
914
914
|
}
|
|
915
915
|
function mn(e, t, n, r) {
|
|
916
916
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
917
|
-
let i = e.getBoundingClientRect(), a = ln(e), o =
|
|
917
|
+
let i = e.getBoundingClientRect(), a = ln(e), o = lt(1);
|
|
918
918
|
t && (r ? G(r) && (o = un(r)) : o = un(e));
|
|
919
|
-
let s = pn(a, n, r) ? fn(a) :
|
|
919
|
+
let s = pn(a, n, r) ? fn(a) : lt(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;
|
|
920
920
|
if (a) {
|
|
921
921
|
let e = W(a), t = r && G(r) ? W(r) : r, n = e, i = sn(n);
|
|
922
922
|
for (; i && r && t !== n;) {
|
|
@@ -948,12 +948,12 @@ function _n(e) {
|
|
|
948
948
|
let c = {
|
|
949
949
|
scrollLeft: 0,
|
|
950
950
|
scrollTop: 0
|
|
951
|
-
}, l =
|
|
951
|
+
}, l = lt(1), u = lt(0), d = Ut(r);
|
|
952
952
|
if ((d || !d && !a) && ((Bt(r) !== "body" || Gt(o)) && (c = nn(r)), d)) {
|
|
953
953
|
let e = mn(r);
|
|
954
954
|
l = un(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
955
955
|
}
|
|
956
|
-
let f = o && !d && !a ? gn(o, c) :
|
|
956
|
+
let f = o && !d && !a ? gn(o, c) : lt(0);
|
|
957
957
|
return {
|
|
958
958
|
width: n.width * l.x,
|
|
959
959
|
height: n.height * l.y,
|
|
@@ -965,8 +965,8 @@ function vn(e) {
|
|
|
965
965
|
return Array.from(e.getClientRects());
|
|
966
966
|
}
|
|
967
967
|
function yn(e) {
|
|
968
|
-
let t = Vt(e), n = nn(e), r = e.ownerDocument.body, i =
|
|
969
|
-
return K(r).direction === "rtl" && (o +=
|
|
968
|
+
let t = Vt(e), n = nn(e), r = e.ownerDocument.body, i = st(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = st(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + hn(e), s = -n.scrollTop;
|
|
969
|
+
return K(r).direction === "rtl" && (o += st(t.clientWidth, r.clientWidth) - i), {
|
|
970
970
|
width: i,
|
|
971
971
|
height: a,
|
|
972
972
|
x: o,
|
|
@@ -994,7 +994,7 @@ function xn(e, t) {
|
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
996
|
function Sn(e, t) {
|
|
997
|
-
let n = mn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ut(e) ? un(e) :
|
|
997
|
+
let n = mn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ut(e) ? un(e) : lt(1);
|
|
998
998
|
return {
|
|
999
999
|
width: e.clientWidth * a.x,
|
|
1000
1000
|
height: e.clientHeight * a.y,
|
|
@@ -1036,7 +1036,7 @@ function En(e) {
|
|
|
1036
1036
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? qt(t) ? [] : Tn(t, this._c) : [].concat(n), r], o = Cn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1037
1037
|
for (let e = 1; e < a.length; e++) {
|
|
1038
1038
|
let n = Cn(t, a[e], i);
|
|
1039
|
-
s =
|
|
1039
|
+
s = st(n.top, s), c = ot(n.right, c), l = ot(n.bottom, l), u = st(n.left, u);
|
|
1040
1040
|
}
|
|
1041
1041
|
return {
|
|
1042
1042
|
width: c - u,
|
|
@@ -1056,7 +1056,7 @@ function On(e, t, n) {
|
|
|
1056
1056
|
let r = Ut(t), i = Vt(t), a = n === "fixed", o = mn(e, !0, a, t), s = {
|
|
1057
1057
|
scrollLeft: 0,
|
|
1058
1058
|
scrollTop: 0
|
|
1059
|
-
}, c =
|
|
1059
|
+
}, c = lt(0);
|
|
1060
1060
|
function l() {
|
|
1061
1061
|
c.x = hn(i);
|
|
1062
1062
|
}
|
|
@@ -1065,7 +1065,7 @@ function On(e, t, n) {
|
|
|
1065
1065
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1066
1066
|
} else i && l();
|
|
1067
1067
|
a && !r && i && l();
|
|
1068
|
-
let u = i && !r && !a ? gn(i, s) :
|
|
1068
|
+
let u = i && !r && !a ? gn(i, s) : lt(0);
|
|
1069
1069
|
return {
|
|
1070
1070
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1071
1071
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1135,7 +1135,7 @@ var Pn = {
|
|
|
1135
1135
|
...i,
|
|
1136
1136
|
platform: a
|
|
1137
1137
|
});
|
|
1138
|
-
}, q = /* @__PURE__ */
|
|
1138
|
+
}, q = /* @__PURE__ */ me({
|
|
1139
1139
|
Vue: () => e,
|
|
1140
1140
|
Vue2: () => void 0,
|
|
1141
1141
|
del: () => Vn,
|
|
@@ -1145,7 +1145,7 @@ var Pn = {
|
|
|
1145
1145
|
set: () => Bn
|
|
1146
1146
|
});
|
|
1147
1147
|
import * as Rn from "vue";
|
|
1148
|
-
|
|
1148
|
+
B(q, Rn);
|
|
1149
1149
|
function zn() {}
|
|
1150
1150
|
function Bn(e, t, n) {
|
|
1151
1151
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -1258,18 +1258,18 @@ function Xn(e, t) {
|
|
|
1258
1258
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
1259
1259
|
}
|
|
1260
1260
|
function Zn(e, t = {}) {
|
|
1261
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
1261
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Ye(), l = i ?? ne(), u = e === "default" || e === "" ? "default" : e, d = () => !!l && !!l[u], f = k(d());
|
|
1262
1262
|
S(() => {
|
|
1263
1263
|
f.value = d();
|
|
1264
1264
|
});
|
|
1265
|
-
let p =
|
|
1265
|
+
let p = k(!1), m = null, h = null, g = () => {
|
|
1266
1266
|
m &&= (m.disconnect(), null), h &&= (h.removeEventListener("slotchange", _), null);
|
|
1267
1267
|
}, _ = () => {
|
|
1268
1268
|
if (!c.value) {
|
|
1269
1269
|
p.value = !1;
|
|
1270
1270
|
return;
|
|
1271
1271
|
}
|
|
1272
|
-
let t =
|
|
1272
|
+
let t = I(n);
|
|
1273
1273
|
if (!t) {
|
|
1274
1274
|
p.value = !1;
|
|
1275
1275
|
return;
|
|
@@ -1283,7 +1283,7 @@ function Zn(e, t = {}) {
|
|
|
1283
1283
|
}, v = () => {
|
|
1284
1284
|
if (!c.value) return;
|
|
1285
1285
|
g();
|
|
1286
|
-
let t =
|
|
1286
|
+
let t = I(n);
|
|
1287
1287
|
if (!t) {
|
|
1288
1288
|
p.value = !1;
|
|
1289
1289
|
return;
|
|
@@ -1296,7 +1296,7 @@ function Zn(e, t = {}) {
|
|
|
1296
1296
|
characterData: !0
|
|
1297
1297
|
}));
|
|
1298
1298
|
};
|
|
1299
|
-
return C(v), x(g),
|
|
1299
|
+
return C(v), x(g), L(() => I(n), () => {
|
|
1300
1300
|
c.value && v();
|
|
1301
1301
|
}), {
|
|
1302
1302
|
present: r(() => c.value ? p.value : f.value),
|
|
@@ -1307,7 +1307,7 @@ function Zn(e, t = {}) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
//#endregion
|
|
1309
1309
|
//#region src/components/base/PvPopoverV2/PvPopoverV2.vue?vue&type=script&setup=true&lang.ts
|
|
1310
|
-
var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */
|
|
1310
|
+
var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
1311
1311
|
__name: "PvPopoverV2",
|
|
1312
1312
|
props: /* @__PURE__ */ h({
|
|
1313
1313
|
disableAutoPlacement: {
|
|
@@ -1355,20 +1355,28 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1355
1355
|
type: String
|
|
1356
1356
|
},
|
|
1357
1357
|
offset: { type: Number },
|
|
1358
|
-
ignoreClickOutsideClasses: { type: Array }
|
|
1358
|
+
ignoreClickOutsideClasses: { type: Array },
|
|
1359
|
+
disabled: {
|
|
1360
|
+
type: Boolean,
|
|
1361
|
+
default: !1
|
|
1362
|
+
},
|
|
1363
|
+
cssCustomProperties: {
|
|
1364
|
+
default: () => ({}),
|
|
1365
|
+
type: Object
|
|
1366
|
+
}
|
|
1359
1367
|
}, {
|
|
1360
1368
|
modelValue: { type: Boolean },
|
|
1361
1369
|
modelModifiers: {}
|
|
1362
1370
|
}),
|
|
1363
1371
|
emits: ["update:modelValue"],
|
|
1364
1372
|
setup(e) {
|
|
1365
|
-
let t = e, c =
|
|
1373
|
+
let t = e, c = te(e, "modelValue"), l = f(), u = typeof HTMLElement < "u" && l && "ce" in l && l.ce instanceof HTMLElement ? l.ce : void 0, { hasVueSlot: d, hasNativeSlot: p } = Zn("content", { host: u }), m = r(() => u ? p.value : d.value), h = typeof HTMLElement < "u" && typeof HTMLElement.prototype.showPopover == "function" && typeof CSS < "u" && typeof CSS.supports == "function" && [
|
|
1366
1374
|
"anchor-name: --pv-anchor",
|
|
1367
1375
|
"position-area: bottom",
|
|
1368
1376
|
"position-try-fallbacks: flip-block",
|
|
1369
1377
|
"position-visibility: anchors-visible",
|
|
1370
1378
|
`anchor-scope: ${$n}`
|
|
1371
|
-
].every((e) => CSS.supports(e)), g =
|
|
1379
|
+
].every((e) => CSS.supports(e)), g = k(!1), v = k(null), y = k(null), x = k(null), S = k(null), w = We(y), D = We(S), O = k(!1), A = {
|
|
1372
1380
|
"top-center": "top",
|
|
1373
1381
|
"bottom-center": "bottom",
|
|
1374
1382
|
"center-left": "left",
|
|
@@ -1377,7 +1385,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1377
1385
|
"top-right": "top-end",
|
|
1378
1386
|
"bottom-left": "bottom-start",
|
|
1379
1387
|
"bottom-right": "bottom-end"
|
|
1380
|
-
},
|
|
1388
|
+
}, M = {
|
|
1381
1389
|
"top-center": {
|
|
1382
1390
|
area: "top",
|
|
1383
1391
|
margin: "margin-block-end"
|
|
@@ -1410,116 +1418,122 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1410
1418
|
area: "bottom span-left",
|
|
1411
1419
|
margin: "margin-block-start"
|
|
1412
1420
|
}
|
|
1413
|
-
},
|
|
1414
|
-
|
|
1421
|
+
}, N = r(() => t.showOnHover || t.disableClickOutsideToClose ? "manual" : "auto"), P = r(() => ({
|
|
1422
|
+
width: "fit-content",
|
|
1423
|
+
...h ? { "anchor-scope": $n } : void 0,
|
|
1424
|
+
...t.cssCustomProperties
|
|
1425
|
+
})), F = r(() => h ? { "anchor-name": $n } : void 0), ee = r(() => {
|
|
1426
|
+
let e = M[t.position];
|
|
1415
1427
|
return {
|
|
1416
1428
|
"position-anchor": $n,
|
|
1417
1429
|
"position-area": e.area,
|
|
1418
1430
|
"position-try-fallbacks": t.disableAutoPlacement ? void 0 : "flip-block, flip-inline, flip-block flip-inline",
|
|
1419
1431
|
[e.margin]: `${t.offset ?? 0}px`
|
|
1420
1432
|
};
|
|
1421
|
-
}),
|
|
1433
|
+
}), ne = () => {}, re = () => ({});
|
|
1422
1434
|
if (!h) {
|
|
1423
1435
|
let e = [];
|
|
1424
1436
|
t.disableAutoPlacement || e.push(In({ fallbackStrategy: "initialPlacement" })), t.offset && e.push(Fn(t.offset));
|
|
1425
1437
|
let n = qn(x, S, {
|
|
1426
|
-
placement:
|
|
1438
|
+
placement: A[t.position],
|
|
1427
1439
|
strategy: t.positioningStrategy,
|
|
1428
1440
|
middleware: e
|
|
1429
1441
|
});
|
|
1430
|
-
|
|
1431
|
-
let i =
|
|
1432
|
-
c.value &&
|
|
1442
|
+
ne = n.update, re = () => n.floatingStyles.value;
|
|
1443
|
+
let i = Ue(x), a = /* @__PURE__ */ Oe(() => {
|
|
1444
|
+
c.value && ne();
|
|
1433
1445
|
}, 5);
|
|
1434
|
-
|
|
1446
|
+
L([
|
|
1435
1447
|
i.top,
|
|
1436
1448
|
i.left,
|
|
1437
1449
|
i.width,
|
|
1438
1450
|
i.height
|
|
1439
|
-
], a),
|
|
1440
|
-
t.disableClickOutsideToClose ||
|
|
1451
|
+
], a), Fe(v, () => {
|
|
1452
|
+
t.disableClickOutsideToClose || ue(!1);
|
|
1441
1453
|
}, { ignore: r(() => [
|
|
1442
1454
|
S.value,
|
|
1443
1455
|
".p-datepicker-panel",
|
|
1444
1456
|
...t.ignoreClickOutsideClasses?.map((e) => `.${e}`) ?? []
|
|
1445
1457
|
]) });
|
|
1446
1458
|
}
|
|
1447
|
-
let
|
|
1448
|
-
...
|
|
1459
|
+
let ie = r(() => ({
|
|
1460
|
+
...re(),
|
|
1449
1461
|
zIndex: t.zIndex
|
|
1450
|
-
})),
|
|
1462
|
+
})), ae, oe, ce = () => {
|
|
1463
|
+
ae && clearTimeout(ae), ae = void 0;
|
|
1464
|
+
}, le = () => {
|
|
1451
1465
|
oe && clearTimeout(oe), oe = void 0;
|
|
1452
|
-
}, ue = () => {
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
le(), ue(), !(e && !m.value) && (e && t.delay > 0 && (t.showOnHover || !h) ? oe = setTimeout(() => {
|
|
1456
|
-
c.value = !0, oe = void 0;
|
|
1466
|
+
}, ue = (e) => {
|
|
1467
|
+
ce(), le(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? ae = setTimeout(() => {
|
|
1468
|
+
c.value = !0, ae = void 0;
|
|
1457
1469
|
}, t.delay) : c.value = e);
|
|
1458
|
-
},
|
|
1470
|
+
}, z = () => {
|
|
1459
1471
|
let e = S.value;
|
|
1460
1472
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1461
|
-
},
|
|
1462
|
-
t.showOnHover ||
|
|
1463
|
-
},
|
|
1473
|
+
}, de = r(() => t.showOnHover ? t.disableInteractive ? w.value || O.value : w.value || D.value || O.value : !1), fe = () => {
|
|
1474
|
+
t.showOnHover || ue(ae ? !1 : !c.value);
|
|
1475
|
+
}, pe = (e) => {
|
|
1464
1476
|
let t = e.newState === "open";
|
|
1465
1477
|
c.value !== t && (c.value = t);
|
|
1466
|
-
},
|
|
1467
|
-
h &&
|
|
1478
|
+
}, me = (e) => {
|
|
1479
|
+
h && N.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), ue(!1));
|
|
1468
1480
|
};
|
|
1469
|
-
return
|
|
1481
|
+
return L(c, async (e) => {
|
|
1470
1482
|
if (!h) {
|
|
1471
|
-
e &&
|
|
1483
|
+
e && ne();
|
|
1472
1484
|
return;
|
|
1473
1485
|
}
|
|
1474
|
-
await _(),
|
|
1475
|
-
}),
|
|
1486
|
+
await _(), z();
|
|
1487
|
+
}), L(de, (e) => {
|
|
1476
1488
|
if (t.showOnHover) {
|
|
1477
1489
|
if (e) {
|
|
1478
|
-
|
|
1490
|
+
ue(!0);
|
|
1479
1491
|
return;
|
|
1480
1492
|
}
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
}, t.closeDelay)) :
|
|
1493
|
+
ce(), t.closeDelay > 0 ? (le(), oe = setTimeout(() => {
|
|
1494
|
+
oe = void 0, de.value || ue(!1);
|
|
1495
|
+
}, t.closeDelay)) : ue(!1);
|
|
1484
1496
|
}
|
|
1485
|
-
}),
|
|
1486
|
-
e ? h && c.value && _(
|
|
1497
|
+
}), L(m, (e) => {
|
|
1498
|
+
e ? h && c.value && _(z) : (ce(), le(), c.value = !1);
|
|
1487
1499
|
}), C(() => {
|
|
1488
|
-
x.value = y.value, g.value = !0, c.value && _(() => h ?
|
|
1500
|
+
x.value = y.value, g.value = !0, c.value && _(() => h ? z() : ne());
|
|
1489
1501
|
}), T(() => {
|
|
1490
|
-
|
|
1502
|
+
ce(), le();
|
|
1503
|
+
}), L(() => t.disabled, (e) => {
|
|
1504
|
+
e && (O.value &&= !1, ue(!1));
|
|
1491
1505
|
}), (r, l) => (E(), o("div", {
|
|
1492
1506
|
ref_key: "root",
|
|
1493
1507
|
ref: v,
|
|
1494
|
-
style: b(
|
|
1495
|
-
onKeydown:
|
|
1508
|
+
style: b(P.value),
|
|
1509
|
+
onKeydown: me
|
|
1496
1510
|
}, [s("div", {
|
|
1497
1511
|
ref_key: "triggerWrapper",
|
|
1498
1512
|
ref: y,
|
|
1499
|
-
style: b(
|
|
1500
|
-
onClick:
|
|
1501
|
-
onFocusin: l[0] ||= (e) =>
|
|
1502
|
-
onFocusout: l[1] ||= (e) =>
|
|
1503
|
-
}, [
|
|
1513
|
+
style: b(F.value),
|
|
1514
|
+
onClick: fe,
|
|
1515
|
+
onFocusin: l[0] ||= (e) => O.value = !0,
|
|
1516
|
+
onFocusout: l[1] ||= (e) => O.value = !1
|
|
1517
|
+
}, [j(r.$slots, "trigger")], 36), g.value && I(h) && m.value ? (E(), o("div", {
|
|
1504
1518
|
key: 0,
|
|
1505
1519
|
ref_key: "floating",
|
|
1506
1520
|
ref: S,
|
|
1507
1521
|
class: "pv-floating pv-floating-native",
|
|
1508
|
-
popover:
|
|
1509
|
-
style: b(
|
|
1510
|
-
onToggle:
|
|
1511
|
-
}, [
|
|
1522
|
+
popover: N.value,
|
|
1523
|
+
style: b(ee.value),
|
|
1524
|
+
onToggle: pe
|
|
1525
|
+
}, [e.disabled ? a("v-if", !0) : j(r.$slots, "content", { key: 0 })], 44, Qn)) : m.value ? (E(), i(n, {
|
|
1512
1526
|
key: 1,
|
|
1513
1527
|
to: e.teleportLocation,
|
|
1514
|
-
disabled: !t.useTeleport
|
|
1515
|
-
}, [
|
|
1528
|
+
disabled: !t.useTeleport || e.disabled
|
|
1529
|
+
}, [R(s("div", {
|
|
1516
1530
|
ref_key: "floating",
|
|
1517
1531
|
ref: S,
|
|
1518
1532
|
class: "pv-floating",
|
|
1519
|
-
style: b(
|
|
1520
|
-
}, [
|
|
1533
|
+
style: b(ie.value)
|
|
1534
|
+
}, [j(r.$slots, "content")], 4), [[se, c.value]])], 8, ["to", "disabled"])) : a("v-if", !0)], 36));
|
|
1521
1535
|
}
|
|
1522
|
-
}), [["styles", [".pv-floating-native[data-v-
|
|
1536
|
+
}), [["styles", [".pv-floating-native[data-v-5fb52abe]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-5fb52abe]>.pv-popover,.pv-floating-native>slot[name=content][data-v-5fb52abe]::slotted(.pv-popover){position:static!important}"]], ["__scopeId", "data-v-5fb52abe"]]), tr = { class: "pv-relative" }, nr = ["disabled", "placeholder"], rr = {
|
|
1523
1537
|
key: 0,
|
|
1524
1538
|
"data-testid": "pv-search-input-shortcut",
|
|
1525
1539
|
class: "pv-kbd"
|
|
@@ -1544,17 +1558,17 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1544
1558
|
}),
|
|
1545
1559
|
emits: ["update:modelValue"],
|
|
1546
1560
|
setup(e, { expose: t }) {
|
|
1547
|
-
let n = e, i =
|
|
1561
|
+
let n = e, i = re("search-input"), c = te(e, "modelValue"), l = r(() => ({
|
|
1548
1562
|
"pv-input-search": !0,
|
|
1549
1563
|
"pv-full-width": !0,
|
|
1550
1564
|
"pv-input-padded-end": !0
|
|
1551
1565
|
}));
|
|
1552
1566
|
return C(() => {
|
|
1553
|
-
n.displayShortcut &&
|
|
1567
|
+
n.displayShortcut && Ve(ir, (e) => {
|
|
1554
1568
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1555
1569
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1556
1570
|
});
|
|
1557
|
-
}), t({ input: i }), (t, n) => (E(), o("div", tr, [
|
|
1571
|
+
}), t({ input: i }), (t, n) => (E(), o("div", tr, [R(s("input", {
|
|
1558
1572
|
ref: "search-input",
|
|
1559
1573
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1560
1574
|
"data-testid": "pv-search-input",
|
|
@@ -1562,7 +1576,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1562
1576
|
disabled: e.disabled,
|
|
1563
1577
|
class: v(l.value),
|
|
1564
1578
|
placeholder: e.placeholder
|
|
1565
|
-
}, null, 10, nr), [[
|
|
1579
|
+
}, null, 10, nr), [[oe, c.value]]), e.displayShortcut ? (E(), o("kbd", rr, P(ir))) : a("v-if", !0)]));
|
|
1566
1580
|
}
|
|
1567
1581
|
}), or = [
|
|
1568
1582
|
"aria-label",
|
|
@@ -1580,8 +1594,8 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1580
1594
|
}),
|
|
1581
1595
|
emits: ["update:modelValue"],
|
|
1582
1596
|
setup(e) {
|
|
1583
|
-
let t =
|
|
1584
|
-
return (n, r) =>
|
|
1597
|
+
let t = te(e, "modelValue");
|
|
1598
|
+
return (n, r) => R((E(), o("input", {
|
|
1585
1599
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
1586
1600
|
class: "pv-checkbox",
|
|
1587
1601
|
type: "checkbox",
|
|
@@ -1589,7 +1603,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1589
1603
|
"aria-label": e.ariaLabel,
|
|
1590
1604
|
disabled: e.disabled,
|
|
1591
1605
|
indeterminate: e.indeterminate
|
|
1592
|
-
}, null, 8, or)), [[
|
|
1606
|
+
}, null, 8, or)), [[ie, t.value]]);
|
|
1593
1607
|
}
|
|
1594
1608
|
}), cr = [
|
|
1595
1609
|
"aria-label",
|
|
@@ -1608,7 +1622,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1608
1622
|
}, pr = {
|
|
1609
1623
|
key: 4,
|
|
1610
1624
|
class: "pv-filter-panel-option-row-right pv-text-body-xs pv-text-subdued"
|
|
1611
|
-
}, mr = /* @__PURE__ */
|
|
1625
|
+
}, mr = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
1612
1626
|
__name: "PvFilterPanelOptionRow",
|
|
1613
1627
|
props: {
|
|
1614
1628
|
ariaLabel: { type: String },
|
|
@@ -1662,7 +1676,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1662
1676
|
},
|
|
1663
1677
|
emits: ["focus-value", "toggle-value"],
|
|
1664
1678
|
setup(e, { emit: t }) {
|
|
1665
|
-
let n = e, l = t, u =
|
|
1679
|
+
let n = e, l = t, u = ne(), d = r(() => n.resultCount !== null && n.resultCount !== void 0 && n.resultCount !== ""), f = r(() => !n.renderer && (d.value || !!u["result-count"])), p = r(() => ({ "--pv-filter-panel-option-row-depth": String(n.depth) })), m = r(() => ({
|
|
1666
1680
|
disabled: n.disabled,
|
|
1667
1681
|
highlightSearchText: !0,
|
|
1668
1682
|
id: n.value,
|
|
@@ -1710,20 +1724,20 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1710
1724
|
"indeterminate",
|
|
1711
1725
|
"modelValue"
|
|
1712
1726
|
])),
|
|
1713
|
-
e.renderer ? (E(), i(
|
|
1714
|
-
s("span", ur,
|
|
1715
|
-
e.subduedText ? (E(), o("span", dr,
|
|
1716
|
-
e.subText ? (E(), o("span", fr,
|
|
1727
|
+
e.renderer ? (E(), i(M(e.renderer), y(g({ key: 2 }, m.value)), null, 16)) : (E(), o("span", lr, [
|
|
1728
|
+
s("span", ur, P(e.label), 1),
|
|
1729
|
+
e.subduedText ? (E(), o("span", dr, P(e.subduedText), 1)) : a("v-if", !0),
|
|
1730
|
+
e.subText ? (E(), o("span", fr, P(e.subText), 1)) : a("v-if", !0)
|
|
1717
1731
|
])),
|
|
1718
|
-
f.value ? (E(), o("span", pr, [
|
|
1719
|
-
e.showFocusAction ? (E(), i(
|
|
1732
|
+
f.value ? (E(), o("span", pr, [j(t.$slots, "result-count", {}, () => [c("(" + P(e.resultCount) + ")", 1)], !0)])) : a("v-if", !0),
|
|
1733
|
+
e.showFocusAction ? (E(), i(at, {
|
|
1720
1734
|
key: 5,
|
|
1721
1735
|
ariaLabel: e.isFocused ? `Remove ${e.focusText}` : `Select as ${e.focusText}`,
|
|
1722
1736
|
disabled: e.disabled,
|
|
1723
1737
|
leftIcon: "focus",
|
|
1724
1738
|
size: "md",
|
|
1725
1739
|
variant: e.isFocused ? "primary" : "ghost",
|
|
1726
|
-
onClick:
|
|
1740
|
+
onClick: ue(x, ["stop", "prevent"])
|
|
1727
1741
|
}, null, 8, [
|
|
1728
1742
|
"ariaLabel",
|
|
1729
1743
|
"disabled",
|
|
@@ -1760,12 +1774,12 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1760
1774
|
}),
|
|
1761
1775
|
emits: ["update:modelValue"],
|
|
1762
1776
|
setup(e) {
|
|
1763
|
-
let t = e, n =
|
|
1777
|
+
let t = e, n = te(e, "modelValue"), i = r(() => t.id ? t.id : `${t.label}-${Math.random()}`);
|
|
1764
1778
|
return (t, r) => (E(), o("label", {
|
|
1765
1779
|
class: "pv-toggle-ghost",
|
|
1766
1780
|
for: i.value
|
|
1767
1781
|
}, [
|
|
1768
|
-
|
|
1782
|
+
R(s("input", {
|
|
1769
1783
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
1770
1784
|
class: "pv-hide",
|
|
1771
1785
|
id: i.value,
|
|
@@ -1773,9 +1787,9 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
1773
1787
|
value: e.value,
|
|
1774
1788
|
name: e.name,
|
|
1775
1789
|
disabled: e.disabled
|
|
1776
|
-
}, null, 8, gr), [[
|
|
1777
|
-
e.label ? (E(), o("span", _r,
|
|
1778
|
-
s("span", vr,
|
|
1790
|
+
}, null, 8, gr), [[ae, n.value]]),
|
|
1791
|
+
e.label ? (E(), o("span", _r, P(e.label), 1)) : a("v-if", !0),
|
|
1792
|
+
s("span", vr, P(e.rightCounterBadge), 1)
|
|
1779
1793
|
], 8, hr));
|
|
1780
1794
|
}
|
|
1781
1795
|
}), br = (e, t, n) => {
|
|
@@ -2452,7 +2466,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2452
2466
|
children: ha(e.children, t, n).filter((e) => !!e)
|
|
2453
2467
|
} : e));
|
|
2454
2468
|
}, ga = (e, t) => `${e}::${t}`, _a = () => {
|
|
2455
|
-
let e =
|
|
2469
|
+
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k(), v = k({}), y = (e) => {
|
|
2456
2470
|
_.value = e;
|
|
2457
2471
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
2458
2472
|
r.value[e] = t;
|
|
@@ -2465,12 +2479,12 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2465
2479
|
o.value = {}, s.value = {};
|
|
2466
2480
|
}, E = () => {
|
|
2467
2481
|
i.value = da(o.value), a.value = da(s.value), T();
|
|
2468
|
-
},
|
|
2482
|
+
}, D = (e, t) => {
|
|
2469
2483
|
c.value[e] = t;
|
|
2470
|
-
},
|
|
2471
|
-
let n = t ? u : l, r =
|
|
2484
|
+
}, O = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
2485
|
+
let n = t ? u : l, r = O(e, t);
|
|
2472
2486
|
return v.value[r] = (v.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
2473
|
-
},
|
|
2487
|
+
}, j = (e, t, n) => {
|
|
2474
2488
|
let r = t ? u : l, i = Math.max(0, (v.value[n] ?? 1) - 1);
|
|
2475
2489
|
if (i > 0) {
|
|
2476
2490
|
v.value[n] = i;
|
|
@@ -2486,7 +2500,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2486
2500
|
if (!o) return [];
|
|
2487
2501
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
2488
2502
|
c.value[n.field] = s;
|
|
2489
|
-
let l = n.parentId ? pa(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y =
|
|
2503
|
+
let l = n.parentId ? pa(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? ga(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
2490
2504
|
h.value[b] = x;
|
|
2491
2505
|
try {
|
|
2492
2506
|
let c = await o({
|
|
@@ -2511,7 +2525,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2511
2525
|
}
|
|
2512
2526
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
2513
2527
|
} finally {
|
|
2514
|
-
|
|
2528
|
+
j(n.field, v, y);
|
|
2515
2529
|
}
|
|
2516
2530
|
},
|
|
2517
2531
|
filterChildHasMoreMap: p,
|
|
@@ -2534,7 +2548,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2534
2548
|
initStagedFilterSelections: w,
|
|
2535
2549
|
setFilterOptions: x,
|
|
2536
2550
|
setFilterOptionsHandler: y,
|
|
2537
|
-
setFilterSearchQuery:
|
|
2551
|
+
setFilterSearchQuery: D,
|
|
2538
2552
|
setFilterSelectedValues: C,
|
|
2539
2553
|
stagedFilterModel: t,
|
|
2540
2554
|
stagedFilterSelectedMetadataMap: s,
|
|
@@ -2547,7 +2561,7 @@ var Qn = ["popover"], $n = "--pv-popover-v2-anchor", er = /* @__PURE__ */ nt(/*
|
|
|
2547
2561
|
"exists"
|
|
2548
2562
|
]);
|
|
2549
2563
|
function Ca(e, t, n) {
|
|
2550
|
-
let i = f(), a =
|
|
2564
|
+
let i = f(), a = k(t.value), o = _a(), s = va(), c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = r(() => !!(e.filterStore ?? s)), p = r(() => !d.value && !!e.filterOptionsHandler), m = r(() => e.filterStore ?? s ?? o), h = r(() => m.value === o), g = r(() => d.value || p.value), _ = r(() => e.filterModelType ?? m.value?.filterModelType.value), v = r(() => _.value ?? "advanced"), y = r(() => {
|
|
2551
2565
|
let n = m.value;
|
|
2552
2566
|
return n ? e.staged ? n.stagedFilterModel.value : n.filterModel.value : e.staged ? a.value : t.value;
|
|
2553
2567
|
}), b = r(() => ti(y.value, v.value)), S = (e, t) => {
|
|
@@ -2564,9 +2578,9 @@ function Ca(e, t, n) {
|
|
|
2564
2578
|
}
|
|
2565
2579
|
S(t, n);
|
|
2566
2580
|
};
|
|
2567
|
-
|
|
2581
|
+
L(() => e.filterOptionsHandler, (e) => {
|
|
2568
2582
|
o.setFilterOptionsHandler(e);
|
|
2569
|
-
}, { immediate: !0 }),
|
|
2583
|
+
}, { immediate: !0 }), L([
|
|
2570
2584
|
() => e.filterOptions,
|
|
2571
2585
|
h,
|
|
2572
2586
|
() => e.filterOptionsHandler
|
|
@@ -2575,7 +2589,7 @@ function Ca(e, t, n) {
|
|
|
2575
2589
|
}, {
|
|
2576
2590
|
deep: !0,
|
|
2577
2591
|
immediate: !0
|
|
2578
|
-
}),
|
|
2592
|
+
}), L([
|
|
2579
2593
|
() => e.filterHasMoreMap,
|
|
2580
2594
|
h,
|
|
2581
2595
|
() => e.filterOptionsHandler
|
|
@@ -2584,7 +2598,7 @@ function Ca(e, t, n) {
|
|
|
2584
2598
|
}, {
|
|
2585
2599
|
deep: !0,
|
|
2586
2600
|
immediate: !0
|
|
2587
|
-
}),
|
|
2601
|
+
}), L([
|
|
2588
2602
|
() => e.filterLoadingMap,
|
|
2589
2603
|
h,
|
|
2590
2604
|
() => e.filterOptionsHandler
|
|
@@ -2593,7 +2607,7 @@ function Ca(e, t, n) {
|
|
|
2593
2607
|
}, {
|
|
2594
2608
|
deep: !0,
|
|
2595
2609
|
immediate: !0
|
|
2596
|
-
}),
|
|
2610
|
+
}), L([
|
|
2597
2611
|
() => e.filterLoadingMoreMap,
|
|
2598
2612
|
h,
|
|
2599
2613
|
() => e.filterOptionsHandler
|
|
@@ -2602,7 +2616,7 @@ function Ca(e, t, n) {
|
|
|
2602
2616
|
}, {
|
|
2603
2617
|
deep: !0,
|
|
2604
2618
|
immediate: !0
|
|
2605
|
-
}),
|
|
2619
|
+
}), L([
|
|
2606
2620
|
() => e.filterSearchQueries,
|
|
2607
2621
|
h,
|
|
2608
2622
|
() => e.filterOptionsHandler
|
|
@@ -2611,7 +2625,7 @@ function Ca(e, t, n) {
|
|
|
2611
2625
|
}, {
|
|
2612
2626
|
deep: !0,
|
|
2613
2627
|
immediate: !0
|
|
2614
|
-
}),
|
|
2628
|
+
}), L([
|
|
2615
2629
|
t,
|
|
2616
2630
|
h,
|
|
2617
2631
|
() => e.staged
|
|
@@ -2620,7 +2634,7 @@ function Ca(e, t, n) {
|
|
|
2620
2634
|
}, {
|
|
2621
2635
|
deep: !0,
|
|
2622
2636
|
immediate: !0
|
|
2623
|
-
}),
|
|
2637
|
+
}), L([() => e.staged, m], ([e]) => {
|
|
2624
2638
|
if (e) {
|
|
2625
2639
|
a.value = t.value;
|
|
2626
2640
|
let e = m.value;
|
|
@@ -2634,63 +2648,63 @@ function Ca(e, t, n) {
|
|
|
2634
2648
|
}, E = () => {
|
|
2635
2649
|
let e = i?.vnode.props ?? {};
|
|
2636
2650
|
return Object.prototype.hasOwnProperty.call(e, "filterModel") || Object.prototype.hasOwnProperty.call(e, "filter-model");
|
|
2637
|
-
},
|
|
2651
|
+
}, D = (e) => !!(e && typeof e == "object" && "filterType" in e), O = (e) => {
|
|
2638
2652
|
if (!e) return;
|
|
2639
|
-
let t =
|
|
2653
|
+
let t = D(e);
|
|
2640
2654
|
v.value === "advanced" && !t && T("regular-model-in-advanced-mode", "PvFilterPanel: produced a regular FilterModel while filterModelType is \"advanced\"."), v.value === "regular" && t && T("advanced-model-in-regular-mode", "PvFilterPanel: produced an AdvancedFilterModel while filterModelType is \"regular\".");
|
|
2641
2655
|
};
|
|
2642
|
-
|
|
2656
|
+
ce(() => {
|
|
2643
2657
|
w("filterModel", !!((e.filterStore || s) && t.value !== null)), w("filterOptions", Object.keys(e.filterOptions).length > 0), w("filterLoadingMap", Object.keys(e.filterLoadingMap).length > 0), w("filterLoadingMoreMap", Object.keys(e.filterLoadingMoreMap).length > 0), w("filterHasMoreMap", Object.keys(e.filterHasMoreMap).length > 0), w("filterSearchQueries", Object.keys(e.filterSearchQueries).length > 0), w("filterOptionsHandler", !!(e.filterStore && e.filterOptionsHandler));
|
|
2644
2658
|
let n = !!((e.filterStore || s) && y.value !== null);
|
|
2645
|
-
import.meta.env?.DEV && !_.value && y.value !== null && !
|
|
2659
|
+
import.meta.env?.DEV && !_.value && y.value !== null && !D(y.value) && (E() || n) && T("missing-filter-model-type", "PvFilterPanel: filterModelType was not provided by props or filterStore; defaulting to \"advanced\".");
|
|
2646
2660
|
});
|
|
2647
|
-
let
|
|
2648
|
-
let t =
|
|
2661
|
+
let A = (e) => e.context ?? {}, j = (e) => e.colId || e.field || "", M = (e) => typeof e == "number" && Number.isFinite(e) ? e : null, N = (e) => {
|
|
2662
|
+
let t = A(e), n = t.filterPanelType;
|
|
2649
2663
|
if (n && Sa.has(n)) return n;
|
|
2650
2664
|
if (t.filterPanelRange) return "range";
|
|
2651
2665
|
if (t.dataType === "boolean") return "boolean";
|
|
2652
2666
|
if (e.filter) return "value";
|
|
2653
|
-
},
|
|
2654
|
-
let t =
|
|
2667
|
+
}, P = (e) => N(e) ?? "value", F = (e) => A(e).filterPanelCategory ?? null, I = (e) => {
|
|
2668
|
+
let t = A(e).filterPanelValueLabels;
|
|
2655
2669
|
return typeof t != "object" || !t || Array.isArray(t) ? null : Object.fromEntries(Object.entries(t).flatMap(([e, t]) => typeof t == "string" ? [[e, t]] : []));
|
|
2656
|
-
},
|
|
2657
|
-
let n =
|
|
2658
|
-
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 &&
|
|
2659
|
-
},
|
|
2670
|
+
}, ee = (t) => {
|
|
2671
|
+
let n = A(t), r = j(t);
|
|
2672
|
+
return !r || n.filterPanelHidden === !0 || n.devOnly && !e.devMode || e.autoHideRelatedFilterFields !== !1 && n.filterPanelHidden !== !1 && ue.value.has(r) ? !1 : !!N(t);
|
|
2673
|
+
}, te = (e) => (m.value.filterOptionsMap.value[e] ?? []).filter((e) => !!e), ne = (t) => {
|
|
2660
2674
|
let n = m.value;
|
|
2661
2675
|
return ((e.staged ? n.stagedFilterSelectedMetadataMap : n.filterSelectedMetadataMap).value[t] ?? []).filter((e) => !!e);
|
|
2662
|
-
},
|
|
2676
|
+
}, re = (e) => m.value.filterHasMoreMap.value[e] ?? !1, ie = (e) => m.value.filterLoadingMap.value[e] ?? !1, ae = (e) => m.value.filterLoadingMoreMap.value[e] ?? !1, oe = (e) => m.value.filterSearchQueries.value[e] ?? "", se = (t) => e.filterSuggestions.flatMap((e) => e.field !== t || e.filter.type !== "value" ? [] : [e.option ?? {
|
|
2663
2677
|
label: e.label,
|
|
2664
2678
|
value: e.filter.value
|
|
2665
|
-
}]),
|
|
2666
|
-
...
|
|
2667
|
-
...
|
|
2668
|
-
...
|
|
2669
|
-
],
|
|
2679
|
+
}]), le = (e) => [
|
|
2680
|
+
...se(e),
|
|
2681
|
+
...te(e),
|
|
2682
|
+
...ne(e)
|
|
2683
|
+
], R = (e) => {
|
|
2670
2684
|
if (typeof e != "object" || !e || !("field" in e)) return [];
|
|
2671
|
-
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(
|
|
2685
|
+
let t = e, n = typeof t.field == "string" ? t.field : null, r = Array.isArray(t.children) ? t.children.flatMap(R) : [];
|
|
2672
2686
|
return n ? [n, ...r] : r;
|
|
2673
|
-
},
|
|
2687
|
+
}, ue = r(() => {
|
|
2674
2688
|
let t = /* @__PURE__ */ new Set();
|
|
2675
2689
|
for (let n of e.colDefs) {
|
|
2676
|
-
let e =
|
|
2690
|
+
let e = A(n);
|
|
2677
2691
|
for (let n of Array.isArray(e.aggregateFields) ? e.aggregateFields : []) n && t.add(n);
|
|
2678
|
-
for (let n of
|
|
2692
|
+
for (let n of R(e.aggregateFieldHierarchy)) n && t.add(n);
|
|
2679
2693
|
for (let n of e.filterGroup?.fields ?? []) n && t.add(n);
|
|
2680
2694
|
}
|
|
2681
2695
|
return t;
|
|
2682
|
-
}),
|
|
2683
|
-
let t =
|
|
2696
|
+
}), z = (e) => {
|
|
2697
|
+
let t = j(e), n = A(e), r = Array.isArray(n.aggregateFields) ? n.aggregateFields.filter(Boolean) : [], i = R(n.aggregateFieldHierarchy);
|
|
2684
2698
|
return Array.from(new Set([
|
|
2685
2699
|
t,
|
|
2686
2700
|
...r,
|
|
2687
2701
|
...i
|
|
2688
2702
|
].filter(Boolean)));
|
|
2689
|
-
},
|
|
2703
|
+
}, de = (e) => v.value === "advanced" && Ti(e), fe = (e, t) => de(e) ? Fi({
|
|
2690
2704
|
colDef: e,
|
|
2691
2705
|
model: y.value,
|
|
2692
2706
|
options: t
|
|
2693
|
-
}) : new Map(
|
|
2707
|
+
}) : new Map(z(e).map((e) => [e, b.value.get(e)?.values ?? []])), pe = (e, t, n, r) => {
|
|
2694
2708
|
let i = /* @__PURE__ */ new Set();
|
|
2695
2709
|
for (let t of gi(r)) for (let [r, a] of n) for (let n of a) _i(t, r, n, e) && i.add(`${r}:${n}`);
|
|
2696
2710
|
return [...n.entries()].flatMap(([t, n]) => n.flatMap((n) => i.has(`${t}:${n}`) ? [] : [{
|
|
@@ -2699,37 +2713,37 @@ function Ca(e, t, n) {
|
|
|
2699
2713
|
metadata: { rawValue: n },
|
|
2700
2714
|
value: t === e ? n : mi(t, n)
|
|
2701
2715
|
}]));
|
|
2702
|
-
},
|
|
2716
|
+
}, me = (e, t, n) => {
|
|
2703
2717
|
let r = /* @__PURE__ */ new Set();
|
|
2704
2718
|
for (let i of gi(n)) {
|
|
2705
2719
|
let n = hi(i, e), a = J(i);
|
|
2706
2720
|
a !== null && t.get(n)?.includes(a) && r.add(i.value);
|
|
2707
2721
|
}
|
|
2708
2722
|
return Array.from(r);
|
|
2709
|
-
},
|
|
2710
|
-
let t =
|
|
2711
|
-
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : br(
|
|
2712
|
-
},
|
|
2723
|
+
}, he = (t) => Object.fromEntries(z(t).map((t) => [t, e.focusedValues[t] ?? []])), B = (t) => e.colDefs.find((e) => j(e) === t || e.field === t || e.colId === t), ge = (e) => B(e)?.headerName ?? e, _e = (e) => {
|
|
2724
|
+
let t = A(e);
|
|
2725
|
+
return typeof t.filterPanelSearchPlaceholder == "string" ? t.filterPanelSearchPlaceholder : br(j(e), t.queryColIds, ge);
|
|
2726
|
+
}, ve = (e, t) => Sr({
|
|
2713
2727
|
fallbackSubText: e.subText,
|
|
2714
|
-
getDisplayName:
|
|
2728
|
+
getDisplayName: ge,
|
|
2715
2729
|
matchedField: e.matchedField,
|
|
2716
2730
|
matchedValue: e.matchedValue,
|
|
2717
2731
|
primaryText: e.label,
|
|
2718
|
-
showPrefix:
|
|
2719
|
-
}),
|
|
2732
|
+
showPrefix: A(t).showSearchMatchSubTextPrefix !== !1
|
|
2733
|
+
}), ye = (e, t) => e.map((e) => ({
|
|
2720
2734
|
...e,
|
|
2721
|
-
children: e.children?.length ?
|
|
2722
|
-
subText:
|
|
2723
|
-
})),
|
|
2724
|
-
let t =
|
|
2735
|
+
children: e.children?.length ? ye(e.children, t) : e.children,
|
|
2736
|
+
subText: ve(e, t)
|
|
2737
|
+
})), be = (e) => {
|
|
2738
|
+
let t = A(e).filterGroup;
|
|
2725
2739
|
if (t?.fields.length) return t.fields.map((e) => ({
|
|
2726
2740
|
field: e,
|
|
2727
2741
|
isActive: b.value.get(e)?.booleanValue === !0,
|
|
2728
|
-
label:
|
|
2742
|
+
label: B(e)?.headerName ?? e
|
|
2729
2743
|
}));
|
|
2730
|
-
},
|
|
2731
|
-
let n =
|
|
2732
|
-
category:
|
|
2744
|
+
}, V = (e) => Se.value.find((t) => t.key === e) ?? Se.value.find((t) => z(t.colDef).includes(e)), xe = (e, t, n) => gi(V(e)?.knownOptions ?? []).find((r) => r.value === n || _i(r, t, n, e)), Se = r(() => e.colDefs.filter(ee).map((t) => {
|
|
2745
|
+
let n = j(t), r = A(t), i = P(t), a = ye(te(n), t), o = ye(le(n), t), s = {
|
|
2746
|
+
category: F(t),
|
|
2733
2747
|
colDef: t,
|
|
2734
2748
|
controlled: r.filterPanelControlled === !0,
|
|
2735
2749
|
dataType: r.dataType ?? null,
|
|
@@ -2739,7 +2753,7 @@ function Ca(e, t, n) {
|
|
|
2739
2753
|
existsLabel: r.filterPanelExistsLabel,
|
|
2740
2754
|
filterFooterRenderer: r.filterFooterRenderer,
|
|
2741
2755
|
filterGroupLabel: r.filterGroup?.label,
|
|
2742
|
-
filterGroupOptions:
|
|
2756
|
+
filterGroupOptions: be(t),
|
|
2743
2757
|
filterHeaderRenderer: r.filterHeaderRenderer,
|
|
2744
2758
|
filterOptionsRenderer: r.filterOptionsRenderer,
|
|
2745
2759
|
filterSectionHeaderRenderer: r.filterSectionHeaderRenderer,
|
|
@@ -2750,25 +2764,25 @@ function Ca(e, t, n) {
|
|
|
2750
2764
|
hideOptionsSortDescription: r.filterPanelHideOptionsSortDescription,
|
|
2751
2765
|
hideSearch: r.filterPanelHideSearch,
|
|
2752
2766
|
focusedValues: e.focusedValues[n] ?? [],
|
|
2753
|
-
focusedValuesByField:
|
|
2754
|
-
hasMore:
|
|
2755
|
-
isAggregate:
|
|
2756
|
-
isFocusable: e.enableFocusView && (!e.focusableFields.length ||
|
|
2757
|
-
isLoading:
|
|
2758
|
-
isLoadingMore:
|
|
2767
|
+
focusedValuesByField: he(t),
|
|
2768
|
+
hasMore: re(n),
|
|
2769
|
+
isAggregate: de(t),
|
|
2770
|
+
isFocusable: e.enableFocusView && (!e.focusableFields.length || z(t).some((t) => e.focusableFields.includes(t))),
|
|
2771
|
+
isLoading: ie(n),
|
|
2772
|
+
isLoadingMore: ae(n),
|
|
2759
2773
|
isOpen: !1,
|
|
2760
2774
|
key: n,
|
|
2761
2775
|
knownOptions: o,
|
|
2762
2776
|
label: t.headerName || n,
|
|
2763
|
-
rangeMax:
|
|
2764
|
-
rangeMin:
|
|
2765
|
-
rangeStep:
|
|
2766
|
-
searchPlaceholder:
|
|
2767
|
-
searchQuery:
|
|
2777
|
+
rangeMax: M(r.filterPanelRange?.max),
|
|
2778
|
+
rangeMin: M(r.filterPanelRange?.min),
|
|
2779
|
+
rangeStep: M(r.filterPanelRange?.step),
|
|
2780
|
+
searchPlaceholder: _e(t),
|
|
2781
|
+
searchQuery: oe(n) ?? "",
|
|
2768
2782
|
singleSelect: r.filterPanelSingleSelect === !0,
|
|
2769
2783
|
type: i,
|
|
2770
2784
|
valueDecimals: r.valueDecimals ?? null,
|
|
2771
|
-
valueLabels:
|
|
2785
|
+
valueLabels: I(t)
|
|
2772
2786
|
};
|
|
2773
2787
|
if (i === "range") return {
|
|
2774
2788
|
...s,
|
|
@@ -2785,7 +2799,7 @@ function Ca(e, t, n) {
|
|
|
2785
2799
|
...s,
|
|
2786
2800
|
existsValue: b.value.get(n)?.existsValue ?? !1
|
|
2787
2801
|
};
|
|
2788
|
-
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) :
|
|
2802
|
+
let c = o, l = e.controlledValues[n] ?? [], u = s.controlled ? new Map([[n, l]]) : fe(t, c), d = pe(n, t, u, c), f = [...c, ...d], p = de(t) ? Pi({
|
|
2789
2803
|
colDef: t,
|
|
2790
2804
|
model: y.value,
|
|
2791
2805
|
options: f
|
|
@@ -2795,18 +2809,18 @@ function Ca(e, t, n) {
|
|
|
2795
2809
|
aggregateSelectionState: p,
|
|
2796
2810
|
knownOptions: f,
|
|
2797
2811
|
options: a,
|
|
2798
|
-
selectedValues: s.controlled ? l : p ? p.flatMap((e) => e.state === "selected" ? [e.id] : []) :
|
|
2812
|
+
selectedValues: s.controlled ? l : p ? p.flatMap((e) => e.state === "selected" ? [e.id] : []) : me(n, u, f)
|
|
2799
2813
|
};
|
|
2800
|
-
})),
|
|
2814
|
+
})), Ce = r(() => Se.value.flatMap((e) => {
|
|
2801
2815
|
if (e.controlled) return [];
|
|
2802
|
-
let t =
|
|
2816
|
+
let t = Re(e);
|
|
2803
2817
|
return t.length ? [{
|
|
2804
2818
|
key: e.key,
|
|
2805
2819
|
label: e.label,
|
|
2806
2820
|
values: t
|
|
2807
2821
|
}] : [];
|
|
2808
|
-
})),
|
|
2809
|
-
let t =
|
|
2822
|
+
})), we = r(() => Ce.value.reduce((e, t) => e + t.values.length, 0)), Te = r(() => ni(y.value, v.value)), Ee = r(() => Te.value || we.value > 0), De = (e) => {
|
|
2823
|
+
let t = V(e.field);
|
|
2810
2824
|
if (!t || t.type !== e.filter.type) return !0;
|
|
2811
2825
|
if (e.filter.type === "value") {
|
|
2812
2826
|
if (t.isAggregate && e.option) {
|
|
@@ -2821,11 +2835,11 @@ function Ca(e, t, n) {
|
|
|
2821
2835
|
return e.filter.checked ? a : !a;
|
|
2822
2836
|
}
|
|
2823
2837
|
return e.filter.type === "range" ? t.rangeValue?.min === e.filter.value.min && t.rangeValue?.max === e.filter.value.max : e.filter.type === "boolean" ? t.booleanValue === e.filter.value : (t.existsValue ?? !1) === e.filter.value;
|
|
2824
|
-
},
|
|
2838
|
+
}, Oe = r(() => e.filterSuggestions.filter((e) => !De(e))), ke = (e) => {
|
|
2825
2839
|
if (e.key) return e.key;
|
|
2826
2840
|
let t = "value" in e.filter ? e.filter.value : "";
|
|
2827
2841
|
return `${e.field}-${e.filter.type}-${JSON.stringify(t)}`;
|
|
2828
|
-
},
|
|
2842
|
+
}, Ae = (t, n, r, i) => {
|
|
2829
2843
|
let a = m.value;
|
|
2830
2844
|
if (!a) return;
|
|
2831
2845
|
a.setFilterSelectedValues(n, r, e.staged);
|
|
@@ -2842,7 +2856,7 @@ function Ca(e, t, n) {
|
|
|
2842
2856
|
}) || l.push(i);
|
|
2843
2857
|
}
|
|
2844
2858
|
o.value[t] = l;
|
|
2845
|
-
},
|
|
2859
|
+
}, je = (t, n = t.aggregateSelectionState ?? []) => {
|
|
2846
2860
|
let r = m.value;
|
|
2847
2861
|
if (!r || !t.isAggregate) return;
|
|
2848
2862
|
let i = n.flatMap((e) => e.state === "selected" ? [e.id] : []);
|
|
@@ -2852,38 +2866,38 @@ function Ca(e, t, n) {
|
|
|
2852
2866
|
options: t.knownOptions ?? [],
|
|
2853
2867
|
state: n
|
|
2854
2868
|
});
|
|
2855
|
-
},
|
|
2869
|
+
}, Me = (e) => {
|
|
2856
2870
|
if (!g.value) return;
|
|
2857
2871
|
let t = m.value, n = /* @__PURE__ */ new Set();
|
|
2858
2872
|
if (e) {
|
|
2859
2873
|
n.add(e);
|
|
2860
|
-
let t =
|
|
2861
|
-
t && (n.add(t.key),
|
|
2874
|
+
let t = V(e);
|
|
2875
|
+
t && (n.add(t.key), z(t.colDef).forEach((e) => n.add(e)));
|
|
2862
2876
|
}
|
|
2863
|
-
for (let r of
|
|
2864
|
-
},
|
|
2865
|
-
|
|
2877
|
+
for (let r of Se.value) r.type === "value" && (e && (n.has(r.key) || z(r.colDef).some((e) => n.has(e))) || (t.filterStaleMap.value[r.key] = !0));
|
|
2878
|
+
}, H = (r, i, o, c) => {
|
|
2879
|
+
O(r);
|
|
2866
2880
|
let l = y.value, u = m.value;
|
|
2867
|
-
u ? (C(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r),
|
|
2868
|
-
colDef: (o ?
|
|
2881
|
+
u ? (C(u, r), r === null && (e.staged ? (u.stagedFilterSelectedValueMap.value = {}, u.stagedFilterSelectedMetadataMap.value = {}) : (u.filterSelectedValueMap.value = {}, u.filterSelectedMetadataMap.value = {}))) : e.staged && (a.value = r), !e.filterStore && !s && !e.staged && (t.value = r), Me(o), n("filter-change", {
|
|
2882
|
+
colDef: (o ? V(o) : void 0)?.colDef,
|
|
2869
2883
|
field: o,
|
|
2870
2884
|
filterModel: r,
|
|
2871
2885
|
previousFilterModel: l,
|
|
2872
2886
|
reason: i,
|
|
2873
2887
|
type: c
|
|
2874
2888
|
});
|
|
2875
|
-
},
|
|
2889
|
+
}, U = (e) => {
|
|
2876
2890
|
let t = e.booleanValue ?? null;
|
|
2877
2891
|
return t === null ? [] : [{
|
|
2878
2892
|
label: e.valueLabels?.[String(t)] ?? (t ? "Yes" : "No"),
|
|
2879
2893
|
type: "boolean",
|
|
2880
2894
|
value: ba
|
|
2881
2895
|
}];
|
|
2882
|
-
},
|
|
2896
|
+
}, Ne = (e) => e.existsValue ? [{
|
|
2883
2897
|
label: e.existsLabel ?? `Has ${e.label}`,
|
|
2884
2898
|
type: "exists",
|
|
2885
2899
|
value: xa
|
|
2886
|
-
}] : [],
|
|
2900
|
+
}] : [], Pe = (e) => {
|
|
2887
2901
|
let t = e.rangeValue ?? {
|
|
2888
2902
|
max: null,
|
|
2889
2903
|
min: null
|
|
@@ -2896,7 +2910,7 @@ function Ca(e, t, n) {
|
|
|
2896
2910
|
type: "range",
|
|
2897
2911
|
value: ya
|
|
2898
2912
|
}];
|
|
2899
|
-
},
|
|
2913
|
+
}, Fe = (e, t, n) => {
|
|
2900
2914
|
let r = n.get(t) ?? null;
|
|
2901
2915
|
return {
|
|
2902
2916
|
field: r ? hi(r, e.key) : void 0,
|
|
@@ -2907,12 +2921,12 @@ function Ca(e, t, n) {
|
|
|
2907
2921
|
type: "value",
|
|
2908
2922
|
value: r ? J(r) ?? r.value : t
|
|
2909
2923
|
};
|
|
2910
|
-
},
|
|
2924
|
+
}, Ie = (e) => (e.filterGroupOptions ?? []).flatMap((e) => e.isActive ? [{
|
|
2911
2925
|
field: e.field,
|
|
2912
2926
|
label: e.label,
|
|
2913
2927
|
type: "boolean",
|
|
2914
2928
|
value: ba
|
|
2915
|
-
}] : []),
|
|
2929
|
+
}] : []), Le = (e) => Yi({
|
|
2916
2930
|
options: e.knownOptions ?? [],
|
|
2917
2931
|
state: e.aggregateSelectionState ?? []
|
|
2918
2932
|
}).map((t) => ({
|
|
@@ -2923,42 +2937,42 @@ function Ca(e, t, n) {
|
|
|
2923
2937
|
subduedText: t.subduedText,
|
|
2924
2938
|
type: "value",
|
|
2925
2939
|
value: t.value
|
|
2926
|
-
})),
|
|
2940
|
+
})), Re = (e) => {
|
|
2927
2941
|
if (e.controlled) return [];
|
|
2928
|
-
if (e.type === "range") return
|
|
2929
|
-
if (e.type === "boolean") return
|
|
2930
|
-
if (e.type === "exists") return
|
|
2931
|
-
if (e.isAggregate) return [...
|
|
2942
|
+
if (e.type === "range") return Pe(e);
|
|
2943
|
+
if (e.type === "boolean") return U(e);
|
|
2944
|
+
if (e.type === "exists") return Ne(e);
|
|
2945
|
+
if (e.isAggregate) return [...Le(e), ...Ie(e)];
|
|
2932
2946
|
let t = new Map(gi(e.knownOptions ?? []).map((e) => [e.value, e]));
|
|
2933
|
-
return [...(e.selectedValues ?? []).map((n) =>
|
|
2947
|
+
return [...(e.selectedValues ?? []).map((n) => Fe(e, n, t)), ...Ie(e)];
|
|
2948
|
+
}, ze = () => {
|
|
2949
|
+
Ye(), H(null, "clear-all");
|
|
2934
2950
|
}, Be = () => {
|
|
2935
|
-
Xe()
|
|
2936
|
-
}, Ve = () => {
|
|
2937
|
-
Ze();
|
|
2951
|
+
Xe();
|
|
2938
2952
|
let r = m.value, i = r ? r.stagedFilterModel.value : a.value;
|
|
2939
2953
|
r && (S(r, i), r.commitStagedFilterSelections(), r.initStagedFilterSelections()), !e.filterStore && !s && (t.value = i), n("apply", i);
|
|
2940
|
-
},
|
|
2941
|
-
|
|
2954
|
+
}, Ve = () => {
|
|
2955
|
+
Ye();
|
|
2942
2956
|
let e = m.value;
|
|
2943
2957
|
e && (e.stagedFilterModel.value = e.filterModel.value, e.initStagedFilterSelections()), a.value = t.value, n("cancel");
|
|
2944
|
-
},
|
|
2945
|
-
let r =
|
|
2946
|
-
r?.isAggregate && (
|
|
2958
|
+
}, He = (e) => ri(V(e)?.dataType), Ue = (e, t, n = "value-toggle") => {
|
|
2959
|
+
let r = V(e);
|
|
2960
|
+
r?.isAggregate && (je(r, t), H(Mi({
|
|
2947
2961
|
baseModel: y.value,
|
|
2948
2962
|
colDef: r.colDef,
|
|
2949
2963
|
options: r.knownOptions ?? [],
|
|
2950
2964
|
state: t
|
|
2951
2965
|
}), n, r.key, "value"));
|
|
2952
|
-
},
|
|
2966
|
+
}, We = (e, t) => {
|
|
2953
2967
|
if (t.type === "aggregate-selection") {
|
|
2954
|
-
|
|
2968
|
+
Ue(e, t.value);
|
|
2955
2969
|
return;
|
|
2956
2970
|
}
|
|
2957
|
-
let n = t.field ?? e, r =
|
|
2971
|
+
let n = t.field ?? e, r = B(n) ?? V(e)?.colDef;
|
|
2958
2972
|
if (t.type === "value") {
|
|
2959
|
-
let r =
|
|
2973
|
+
let r = V(e), i = xe(e, n, t.value);
|
|
2960
2974
|
if (r?.isAggregate && i) {
|
|
2961
|
-
|
|
2975
|
+
Ue(e, Gi({
|
|
2962
2976
|
checked: t.checked,
|
|
2963
2977
|
option: i,
|
|
2964
2978
|
options: r.knownOptions ?? [],
|
|
@@ -2966,25 +2980,25 @@ function Ca(e, t, n) {
|
|
|
2966
2980
|
}));
|
|
2967
2981
|
return;
|
|
2968
2982
|
}
|
|
2969
|
-
|
|
2983
|
+
et(e, n, t.value, t.checked, i);
|
|
2970
2984
|
return;
|
|
2971
2985
|
}
|
|
2972
2986
|
if (t.type === "range") {
|
|
2973
|
-
|
|
2987
|
+
Ze(n, t.value, r);
|
|
2974
2988
|
return;
|
|
2975
2989
|
}
|
|
2976
2990
|
if (t.type === "boolean") {
|
|
2977
|
-
|
|
2991
|
+
H(ai(y.value, n, t.value, v.value, t.field ? "text" : "boolean", r), "boolean-change", n, "boolean");
|
|
2978
2992
|
return;
|
|
2979
2993
|
}
|
|
2980
|
-
|
|
2981
|
-
},
|
|
2994
|
+
H(oi(y.value, n, t.value, He(n), v.value, r), "exists-change", n, "exists");
|
|
2995
|
+
}, Ge = (e, t, n, r) => {
|
|
2982
2996
|
let i = m.value;
|
|
2983
2997
|
return !i || e.type !== "value" ? !1 : n !== "open" || r ? !0 : i.filterLoadingMap.value[e.key] ? !1 : i.filterStaleMap.value[e.key] || !(i.filterOptionsMap.value[e.key] ?? []).length ? !0 : (i.filterSearchQueries.value[e.key] ?? "") !== t;
|
|
2984
|
-
},
|
|
2998
|
+
}, Ke = (e, t, n, r) => {
|
|
2985
2999
|
let i = m.value;
|
|
2986
|
-
if (!
|
|
2987
|
-
let a = Array.from(new Set([...
|
|
3000
|
+
if (!Ge(e, t, n, r) || !i) return;
|
|
3001
|
+
let a = Array.from(new Set([...fe(e.colDef, e.knownOptions ?? []).values()].flat()));
|
|
2988
3002
|
i.fetchFilterOptions({
|
|
2989
3003
|
colDef: e.colDef,
|
|
2990
3004
|
field: e.key,
|
|
@@ -2994,26 +3008,26 @@ function Ca(e, t, n) {
|
|
|
2994
3008
|
reason: n,
|
|
2995
3009
|
selectedValues: a
|
|
2996
3010
|
});
|
|
2997
|
-
},
|
|
2998
|
-
n("load-more", e.key, e.colDef, t, r),
|
|
2999
|
-
},
|
|
3000
|
-
|
|
3001
|
-
},
|
|
3011
|
+
}, qe = (e, t, r) => {
|
|
3012
|
+
n("load-more", e.key, e.colDef, t, r), Ke(e, t, r ? "child-load-more" : "load-more", r);
|
|
3013
|
+
}, Je = (e, t, n) => {
|
|
3014
|
+
H(si(y.value, e, t.min, t.max, v.value, n), "range-change", e, "range");
|
|
3015
|
+
}, Ye = () => {
|
|
3002
3016
|
for (let { timer: e } of u.values()) window.clearTimeout(e);
|
|
3003
3017
|
u.clear();
|
|
3004
|
-
},
|
|
3018
|
+
}, Xe = () => {
|
|
3005
3019
|
let e = [...u.entries()];
|
|
3006
|
-
|
|
3007
|
-
for (let [t, n] of e)
|
|
3008
|
-
},
|
|
3020
|
+
Ye();
|
|
3021
|
+
for (let [t, n] of e) Je(t, n.value, n.colDef);
|
|
3022
|
+
}, Ze = (t, n, r) => {
|
|
3009
3023
|
if (e.rangeDebounceMs <= 0) {
|
|
3010
|
-
|
|
3024
|
+
Je(t, n, r);
|
|
3011
3025
|
return;
|
|
3012
3026
|
}
|
|
3013
3027
|
let i = u.get(t);
|
|
3014
3028
|
i && window.clearTimeout(i.timer);
|
|
3015
3029
|
let a = window.setTimeout(() => {
|
|
3016
|
-
u.delete(t),
|
|
3030
|
+
u.delete(t), Je(t, n, r);
|
|
3017
3031
|
}, e.rangeDebounceMs);
|
|
3018
3032
|
u.set(t, {
|
|
3019
3033
|
colDef: r,
|
|
@@ -3021,66 +3035,66 @@ function Ca(e, t, n) {
|
|
|
3021
3035
|
value: n
|
|
3022
3036
|
});
|
|
3023
3037
|
};
|
|
3024
|
-
x(
|
|
3025
|
-
let
|
|
3026
|
-
n("search-change", e.key, t, e.colDef),
|
|
3027
|
-
},
|
|
3028
|
-
|
|
3029
|
-
},
|
|
3030
|
-
let s =
|
|
3038
|
+
x(Ye);
|
|
3039
|
+
let Qe = (e, t) => {
|
|
3040
|
+
n("search-change", e.key, t, e.colDef), Ke(e, t, "search");
|
|
3041
|
+
}, $e = (e, t = e.searchQuery ?? "") => {
|
|
3042
|
+
Ke(e, t, "open");
|
|
3043
|
+
}, et = (t, r, i, a, o) => {
|
|
3044
|
+
let s = V(t), c = s?.controlled ? e.controlledValues[t] ?? [] : b.value.get(r)?.values ?? [], l = s?.singleSelect ? a ? [i] : [] : a ? Array.from(new Set([...c, i])) : c.filter((e) => e !== i);
|
|
3031
3045
|
if (s?.controlled) {
|
|
3032
3046
|
n("controlled-change", t, l, s.colDef);
|
|
3033
3047
|
return;
|
|
3034
3048
|
}
|
|
3035
|
-
|
|
3049
|
+
Ae(t, r, l, a ? o : void 0), H(ci(y.value, r, l, v.value, B(r) ?? s?.colDef), "value-toggle", r, "value");
|
|
3036
3050
|
};
|
|
3037
3051
|
return {
|
|
3038
|
-
resolvedFilters:
|
|
3039
|
-
appliedGroups:
|
|
3040
|
-
appliedCount:
|
|
3041
|
-
hasActiveFilters:
|
|
3042
|
-
showClearAll:
|
|
3043
|
-
visibleSuggestions:
|
|
3052
|
+
resolvedFilters: Se,
|
|
3053
|
+
appliedGroups: Ce,
|
|
3054
|
+
appliedCount: we,
|
|
3055
|
+
hasActiveFilters: Te,
|
|
3056
|
+
showClearAll: Ee,
|
|
3057
|
+
visibleSuggestions: Oe,
|
|
3044
3058
|
effectiveFilterModelType: v,
|
|
3045
3059
|
activeFilterModel: y,
|
|
3046
3060
|
effectiveFilterStore: m,
|
|
3047
|
-
findResolvedFilter:
|
|
3048
|
-
getRepresentedFields:
|
|
3049
|
-
activateFilter:
|
|
3050
|
-
applyStagedFilters:
|
|
3051
|
-
cancelStagedFilters:
|
|
3052
|
-
clearAllFilters:
|
|
3053
|
-
getSuggestionKey:
|
|
3054
|
-
handleControlChange:
|
|
3055
|
-
handleLoadMore:
|
|
3056
|
-
handleSearchChange:
|
|
3061
|
+
findResolvedFilter: V,
|
|
3062
|
+
getRepresentedFields: z,
|
|
3063
|
+
activateFilter: $e,
|
|
3064
|
+
applyStagedFilters: Be,
|
|
3065
|
+
cancelStagedFilters: Ve,
|
|
3066
|
+
clearAllFilters: ze,
|
|
3067
|
+
getSuggestionKey: ke,
|
|
3068
|
+
handleControlChange: We,
|
|
3069
|
+
handleLoadMore: qe,
|
|
3070
|
+
handleSearchChange: Qe,
|
|
3057
3071
|
handleSuggestionClick: (e) => {
|
|
3058
3072
|
if (e.filter.type === "value" && e.option) {
|
|
3059
|
-
let t =
|
|
3060
|
-
t?.isAggregate ?
|
|
3073
|
+
let t = V(e.field), n = hi(e.option, e.field), r = J(e.option) ?? e.filter.value;
|
|
3074
|
+
t?.isAggregate ? Ue(e.field, Gi({
|
|
3061
3075
|
checked: e.filter.checked,
|
|
3062
3076
|
option: e.option,
|
|
3063
3077
|
options: t.knownOptions ?? [],
|
|
3064
3078
|
state: t.aggregateSelectionState ?? []
|
|
3065
|
-
})) :
|
|
3066
|
-
} else
|
|
3079
|
+
})) : et(e.field, n, r, e.filter.checked, e.option);
|
|
3080
|
+
} else We(e.field, e.filter);
|
|
3067
3081
|
n("suggestion-click", e);
|
|
3068
3082
|
},
|
|
3069
3083
|
removeAppliedFilter: (e, t, n) => {
|
|
3070
|
-
let r = n ??
|
|
3084
|
+
let r = n ?? V(e)?.type ?? "value";
|
|
3071
3085
|
if (r === "range" || !n && t === ya) {
|
|
3072
|
-
|
|
3086
|
+
H(si(y.value, e, null, null, v.value, B(e) ?? V(e)?.colDef), "remove-filter", e, "range");
|
|
3073
3087
|
return;
|
|
3074
3088
|
}
|
|
3075
3089
|
if (r === "boolean" || !n && t === ba) {
|
|
3076
|
-
|
|
3090
|
+
H(ai(y.value, e, null, v.value, "boolean", B(e) ?? V(e)?.colDef), "remove-filter", e, "boolean");
|
|
3077
3091
|
return;
|
|
3078
3092
|
}
|
|
3079
3093
|
if (r === "exists" || !n && t === xa) {
|
|
3080
|
-
|
|
3094
|
+
H(oi(y.value, e, !1, "text", v.value, B(e) ?? V(e)?.colDef), "remove-filter", e, "exists");
|
|
3081
3095
|
return;
|
|
3082
3096
|
}
|
|
3083
|
-
let i =
|
|
3097
|
+
let i = V(e);
|
|
3084
3098
|
if (r === "value" && i?.isAggregate) {
|
|
3085
3099
|
let e = Ei(i.knownOptions ?? [], t), n = i.aggregateSelectionState ?? [], r = e ? Gi({
|
|
3086
3100
|
checked: !1,
|
|
@@ -3088,11 +3102,11 @@ function Ca(e, t, n) {
|
|
|
3088
3102
|
options: i.knownOptions ?? [],
|
|
3089
3103
|
state: n
|
|
3090
3104
|
}) : n.filter((e) => e.id !== t);
|
|
3091
|
-
|
|
3105
|
+
Ue(i.key, r, "remove-filter");
|
|
3092
3106
|
return;
|
|
3093
3107
|
}
|
|
3094
3108
|
let a = (b.value.get(e)?.values ?? []).filter((e) => e !== t);
|
|
3095
|
-
|
|
3109
|
+
Ae(V(e)?.key ?? e, e, a), H(ci(y.value, e, a, v.value, B(e) ?? V(e)?.colDef), "remove-filter", e, "value");
|
|
3096
3110
|
}
|
|
3097
3111
|
};
|
|
3098
3112
|
}
|
|
@@ -3143,7 +3157,7 @@ var wa = ["aria-label"], Ta = {
|
|
|
3143
3157
|
"margin-top": "0.75rem",
|
|
3144
3158
|
"padding-top": "0.75rem"
|
|
3145
3159
|
}
|
|
3146
|
-
}, Pa = /* @__PURE__ */
|
|
3160
|
+
}, Pa = /* @__PURE__ */ tt(/* @__PURE__ */ u({
|
|
3147
3161
|
__name: "PvFilterModal",
|
|
3148
3162
|
props: /* @__PURE__ */ h({
|
|
3149
3163
|
header: {
|
|
@@ -3288,10 +3302,10 @@ var wa = ["aria-label"], Ta = {
|
|
|
3288
3302
|
"suggestion-click"
|
|
3289
3303
|
], ["update:filterModel", "update:visible"]),
|
|
3290
3304
|
setup(e, { emit: n }) {
|
|
3291
|
-
let c = e, u =
|
|
3305
|
+
let c = e, u = te(e, "filterModel"), d = te(e, "visible"), f = n, { resolvedFilters: p, activateFilter: m, applyStagedFilters: h, cancelStagedFilters: g, handleControlChange: _ } = Ca(c, u, f), y = k(null), x = ee(), S = k(""), C = r(() => p.value.filter((e) => e.type === "value")), w = r(() => {
|
|
3292
3306
|
let e = C.value;
|
|
3293
3307
|
return e.find((e) => e.key === y.value) ?? e[0] ?? null;
|
|
3294
|
-
}), T = r(() => w.value?.isAggregate === !0),
|
|
3308
|
+
}), T = r(() => w.value?.isAggregate === !0), D = r(() => w.value?.aggregateSelectionState ?? []), O = r(() => new Set(w.value?.selectedValues ?? [])), N = r(() => S.value.trim().toLowerCase()), F = (e) => {
|
|
3295
3309
|
let t = typeof e.metadata == "object" && e.metadata !== null ? Object.values(e.metadata) : [];
|
|
3296
3310
|
return [
|
|
3297
3311
|
e.value,
|
|
@@ -3301,24 +3315,24 @@ var wa = ["aria-label"], Ta = {
|
|
|
3301
3315
|
e.matchedValue,
|
|
3302
3316
|
e.matchedField
|
|
3303
3317
|
].concat(t.flatMap((e) => e == null ? [] : [String(e)])).filter((e) => !!e).join(" ").toLowerCase();
|
|
3304
|
-
},
|
|
3318
|
+
}, ne = r(() => {
|
|
3305
3319
|
let e = w.value;
|
|
3306
3320
|
if (!e) return {};
|
|
3307
3321
|
let t = {};
|
|
3308
3322
|
for (let n of gi([...e.knownOptions ?? [], ...e.options ?? []])) t[n.value] = n;
|
|
3309
3323
|
return t;
|
|
3310
|
-
}),
|
|
3311
|
-
let e = w.value?.options ?? [], t =
|
|
3312
|
-
return t ? e.filter((e) =>
|
|
3313
|
-
}),
|
|
3324
|
+
}), re = r(() => {
|
|
3325
|
+
let e = w.value?.options ?? [], t = N.value;
|
|
3326
|
+
return t ? e.filter((e) => F(e).includes(t)) : e;
|
|
3327
|
+
}), ie = r(() => T.value || w.value?.singleSelect ? [] : (w.value?.selectedValues ?? []).map((e) => ne.value[e] ?? {
|
|
3314
3328
|
label: e,
|
|
3315
3329
|
value: e
|
|
3316
|
-
})),
|
|
3330
|
+
})), ae = r(() => T.value || w.value?.singleSelect ? re.value : [...(w.value?.selectedValues ?? []).filter((e) => !re.value.some((t) => t.value === e)).map((e) => ne.value[e] ?? {
|
|
3317
3331
|
label: e,
|
|
3318
3332
|
value: e
|
|
3319
|
-
}), ...
|
|
3333
|
+
}), ...re.value]), oe = r(() => {
|
|
3320
3334
|
let e = /* @__PURE__ */ new Map();
|
|
3321
|
-
for (let t of
|
|
3335
|
+
for (let t of ae.value) {
|
|
3322
3336
|
let n = t.section ?? "";
|
|
3323
3337
|
e.has(n) || e.set(n, []), e.get(n).push(t);
|
|
3324
3338
|
}
|
|
@@ -3336,16 +3350,16 @@ var wa = ["aria-label"], Ta = {
|
|
|
3336
3350
|
options: e.get(t)
|
|
3337
3351
|
};
|
|
3338
3352
|
});
|
|
3339
|
-
}),
|
|
3353
|
+
}), se = r(() => T.value && w.value ? qi({
|
|
3340
3354
|
options: w.value.knownOptions ?? [],
|
|
3341
|
-
state:
|
|
3342
|
-
}) : /* @__PURE__ */ new Map()),
|
|
3355
|
+
state: D.value
|
|
3356
|
+
}) : /* @__PURE__ */ new Map()), ce = (e) => e.isAggregate ? Xi(e.aggregateSelectionState ?? []) || void 0 : e.selectedValues?.length || void 0, R = (e) => T.value ? se.value.get(e.value) ?? {
|
|
3343
3357
|
indeterminate: !1,
|
|
3344
3358
|
selected: !1
|
|
3345
3359
|
} : {
|
|
3346
3360
|
indeterminate: !1,
|
|
3347
|
-
selected:
|
|
3348
|
-
},
|
|
3361
|
+
selected: O.value.has(e.value)
|
|
3362
|
+
}, ue = (e) => w.value ? oa(e, w.value.colDef) : e.label || e.value, z = (e) => J(e) ?? e.value, de = (e) => hi(e, w.value?.key ?? ""), fe = (e, t) => {
|
|
3349
3363
|
let n = w.value;
|
|
3350
3364
|
if (n) {
|
|
3351
3365
|
if (n.isAggregate) {
|
|
@@ -3362,32 +3376,32 @@ var wa = ["aria-label"], Ta = {
|
|
|
3362
3376
|
}
|
|
3363
3377
|
_(n.key, {
|
|
3364
3378
|
checked: t,
|
|
3365
|
-
field:
|
|
3379
|
+
field: de(e),
|
|
3366
3380
|
type: "value",
|
|
3367
|
-
value:
|
|
3381
|
+
value: z(e)
|
|
3368
3382
|
});
|
|
3369
3383
|
}
|
|
3384
|
+
}, pe = () => {
|
|
3385
|
+
for (let e of re.value) R(e).selected || fe(e, !0);
|
|
3370
3386
|
}, me = () => {
|
|
3371
|
-
for (let e of ie.value) L(e).selected || pe(e, !0);
|
|
3372
|
-
}, he = () => {
|
|
3373
3387
|
if (T.value) {
|
|
3374
|
-
for (let e of gi(w.value?.knownOptions ?? []))
|
|
3388
|
+
for (let e of gi(w.value?.knownOptions ?? [])) R(e).selected && fe(e, !1);
|
|
3375
3389
|
return;
|
|
3376
3390
|
}
|
|
3377
|
-
for (let e of
|
|
3378
|
-
},
|
|
3391
|
+
for (let e of ie.value) fe(e, !1);
|
|
3392
|
+
}, he = () => {
|
|
3379
3393
|
w.value && f("load-more", w.value.key, w.value.colDef, S.value.trim());
|
|
3380
|
-
},
|
|
3394
|
+
}, B = r({
|
|
3381
3395
|
get: () => w.value?.key ?? "",
|
|
3382
3396
|
set: (e) => {
|
|
3383
3397
|
y.value = e;
|
|
3384
3398
|
}
|
|
3385
3399
|
});
|
|
3386
|
-
return
|
|
3400
|
+
return L(() => w.value?.key, (e) => {
|
|
3387
3401
|
S.value = w.value?.searchQuery ?? "", e && d.value && w.value && m(w.value);
|
|
3388
|
-
}),
|
|
3402
|
+
}), L(d, (e) => {
|
|
3389
3403
|
e && w.value && m(w.value);
|
|
3390
|
-
}),
|
|
3404
|
+
}), je(S, (e) => {
|
|
3391
3405
|
let t = w.value;
|
|
3392
3406
|
if (!t) return;
|
|
3393
3407
|
let n = e.trim();
|
|
@@ -3402,8 +3416,8 @@ var wa = ["aria-label"], Ta = {
|
|
|
3402
3416
|
offset: 8,
|
|
3403
3417
|
"z-index": 1e3
|
|
3404
3418
|
}, {
|
|
3405
|
-
trigger:
|
|
3406
|
-
content:
|
|
3419
|
+
trigger: le(() => [j(n.$slots, "trigger", {}, void 0, !0)]),
|
|
3420
|
+
content: le(() => [s("div", {
|
|
3407
3421
|
class: "pv-surface pv-bordered pv-radius-lg pv-inset-square-12",
|
|
3408
3422
|
role: "dialog",
|
|
3409
3423
|
"aria-label": e.ariaLabel,
|
|
@@ -3411,14 +3425,14 @@ var wa = ["aria-label"], Ta = {
|
|
|
3411
3425
|
width: e.maxWidth,
|
|
3412
3426
|
maxWidth: e.maxWidth
|
|
3413
3427
|
})
|
|
3414
|
-
}, [s("div", Ta, [s("nav", Ea, [(E(!0), o(t, null,
|
|
3428
|
+
}, [s("div", Ta, [s("nav", Ea, [(E(!0), o(t, null, A(C.value, (e) => (E(), i(yr, {
|
|
3415
3429
|
key: e.key,
|
|
3416
|
-
modelValue:
|
|
3417
|
-
"onUpdate:modelValue": r[0] ||= (e) =>
|
|
3430
|
+
modelValue: B.value,
|
|
3431
|
+
"onUpdate:modelValue": r[0] ||= (e) => B.value = e,
|
|
3418
3432
|
class: "pv-full-width pv-space-between",
|
|
3419
3433
|
deselect: !1,
|
|
3420
3434
|
label: e.label,
|
|
3421
|
-
"right-counter-badge":
|
|
3435
|
+
"right-counter-badge": ce(e),
|
|
3422
3436
|
value: e.key
|
|
3423
3437
|
}, null, 8, [
|
|
3424
3438
|
"modelValue",
|
|
@@ -3437,15 +3451,15 @@ var wa = ["aria-label"], Ta = {
|
|
|
3437
3451
|
"disabled",
|
|
3438
3452
|
"placeholder"
|
|
3439
3453
|
]),
|
|
3440
|
-
w.value?.isLoading ? (E(), o("div", Oa, [l(
|
|
3441
|
-
s("div", ka, [(E(!0), o(t, null,
|
|
3454
|
+
w.value?.isLoading ? (E(), o("div", Oa, [l(Ge, { size: "sm" })])) : w.value ? (E(), o(t, { key: 1 }, [
|
|
3455
|
+
s("div", ka, [(E(!0), o(t, null, A(oe.value, (e) => (E(), o("div", {
|
|
3442
3456
|
key: `section-${e.key}`,
|
|
3443
3457
|
class: "pv-flex-vertical",
|
|
3444
3458
|
style: {
|
|
3445
3459
|
"--flex-align": "stretch",
|
|
3446
3460
|
"--flex-gap": "0.25rem"
|
|
3447
3461
|
}
|
|
3448
|
-
}, [e.label && w.value.filterSectionHeaderRenderer ? (E(), i(
|
|
3462
|
+
}, [e.label && w.value.filterSectionHeaderRenderer ? (E(), i(M(w.value.filterSectionHeaderRenderer), {
|
|
3449
3463
|
key: 0,
|
|
3450
3464
|
"col-def": w.value.colDef,
|
|
3451
3465
|
field: w.value.key,
|
|
@@ -3459,22 +3473,22 @@ var wa = ["aria-label"], Ta = {
|
|
|
3459
3473
|
"field",
|
|
3460
3474
|
"options",
|
|
3461
3475
|
"section"
|
|
3462
|
-
])) : e.label ? (E(), o("p", Aa,
|
|
3476
|
+
])) : e.label ? (E(), o("p", Aa, P(e.label), 1)) : a("v-if", !0), (E(!0), o(t, null, A(e.options, (e) => (E(), o("div", {
|
|
3463
3477
|
key: `option-${e.value}`,
|
|
3464
|
-
class: v(["pv-inset-square-8 pv-radius", { "pv-surface-highlight":
|
|
3478
|
+
class: v(["pv-inset-square-8 pv-radius", { "pv-surface-highlight": R(e).selected }])
|
|
3465
3479
|
}, [l(mr, {
|
|
3466
3480
|
control: w.value.singleSelect ? "radio" : "checkbox",
|
|
3467
3481
|
disabled: w.value.disabled || e.isSelectable === !1,
|
|
3468
|
-
indeterminate:
|
|
3469
|
-
label:
|
|
3470
|
-
name:
|
|
3482
|
+
indeterminate: R(e).indeterminate,
|
|
3483
|
+
label: ue(e),
|
|
3484
|
+
name: I(x),
|
|
3471
3485
|
"query-text": S.value,
|
|
3472
|
-
"result-count":
|
|
3473
|
-
selected:
|
|
3486
|
+
"result-count": I(sa)(e),
|
|
3487
|
+
selected: R(e).selected,
|
|
3474
3488
|
"sub-text": e.subText,
|
|
3475
3489
|
"subdued-text": e.subduedText,
|
|
3476
3490
|
value: e.value,
|
|
3477
|
-
onToggleValue: (t, n) =>
|
|
3491
|
+
onToggleValue: (t, n) => fe(e, n)
|
|
3478
3492
|
}, null, 8, [
|
|
3479
3493
|
"control",
|
|
3480
3494
|
"disabled",
|
|
@@ -3489,37 +3503,37 @@ var wa = ["aria-label"], Ta = {
|
|
|
3489
3503
|
"value",
|
|
3490
3504
|
"onToggleValue"
|
|
3491
3505
|
])], 2))), 128))]))), 128))]),
|
|
3492
|
-
|
|
3493
|
-
w.value.hasMore ? (E(), i(
|
|
3506
|
+
re.value.length ? a("v-if", !0) : (E(), o("p", ja, " No matching values. ")),
|
|
3507
|
+
w.value.hasMore ? (E(), i(at, {
|
|
3494
3508
|
key: 1,
|
|
3495
3509
|
class: "pv-text-brand",
|
|
3496
3510
|
disabled: w.value.disabled || w.value.isLoadingMore,
|
|
3497
3511
|
label: "See more",
|
|
3498
3512
|
style: { width: "fit-content" },
|
|
3499
3513
|
variant: "ghost",
|
|
3500
|
-
onClick:
|
|
3514
|
+
onClick: he
|
|
3501
3515
|
}, null, 8, ["disabled"])) : a("v-if", !0)
|
|
3502
3516
|
], 64)) : a("v-if", !0),
|
|
3503
|
-
w.value && !e.readOnly ? (E(), o("div", Ma, [w.value.singleSelect ? a("v-if", !0) : (E(), i(
|
|
3517
|
+
w.value && !e.readOnly ? (E(), o("div", Ma, [w.value.singleSelect ? a("v-if", !0) : (E(), i(at, {
|
|
3504
3518
|
key: 0,
|
|
3505
3519
|
disabled: w.value.disabled,
|
|
3506
3520
|
label: e.selectAllLabel,
|
|
3507
3521
|
variant: "ghost",
|
|
3508
|
-
onClick:
|
|
3509
|
-
}, null, 8, ["disabled", "label"])), l(
|
|
3522
|
+
onClick: pe
|
|
3523
|
+
}, null, 8, ["disabled", "label"])), l(at, {
|
|
3510
3524
|
disabled: w.value.disabled,
|
|
3511
3525
|
label: e.clearSelectionLabel,
|
|
3512
3526
|
variant: "ghost",
|
|
3513
|
-
onClick:
|
|
3527
|
+
onClick: me
|
|
3514
3528
|
}, null, 8, ["disabled", "label"])])) : a("v-if", !0)
|
|
3515
|
-
])]), e.staged ? (E(), o("div", Na, [l(
|
|
3529
|
+
])]), e.staged ? (E(), o("div", Na, [l(at, {
|
|
3516
3530
|
label: e.cancelLabel,
|
|
3517
3531
|
variant: "ghost",
|
|
3518
|
-
onClick:
|
|
3519
|
-
}, null, 8, ["label", "onClick"]), l(
|
|
3532
|
+
onClick: I(g)
|
|
3533
|
+
}, null, 8, ["label", "onClick"]), l(at, {
|
|
3520
3534
|
label: e.applyLabel,
|
|
3521
3535
|
variant: "primary",
|
|
3522
|
-
onClick:
|
|
3536
|
+
onClick: I(h)
|
|
3523
3537
|
}, null, 8, ["label", "onClick"])])) : a("v-if", !0)], 12, wa)]),
|
|
3524
3538
|
_: 3
|
|
3525
3539
|
}, 8, ["modelValue"]));
|
|
@@ -3857,15 +3871,15 @@ var Q = {
|
|
|
3857
3871
|
getCommon({ name: e = "", theme: t = {}, params: n, set: r, defaults: i }) {
|
|
3858
3872
|
let { preset: a, options: o } = t, s, c, l, u, d, f, p;
|
|
3859
3873
|
if (Y(a) && o.transform !== "strict") {
|
|
3860
|
-
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ho(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ho(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ho(x, ["dark"]), w = y || {}, { dark: T } = w, E = ho(w, ["dark"]),
|
|
3861
|
-
s = this.transformCSS(e,
|
|
3862
|
-
...
|
|
3863
|
-
...
|
|
3864
|
-
...
|
|
3865
|
-
])], d = `${this.transformCSS(e, `${
|
|
3866
|
-
...
|
|
3867
|
-
...
|
|
3868
|
-
...
|
|
3874
|
+
let { primitive: t, semantic: n, extend: m } = a, h = n || {}, { colorScheme: g } = h, _ = ho(h, ["colorScheme"]), v = m || {}, { colorScheme: y } = v, b = ho(v, ["colorScheme"]), x = g || {}, { dark: S } = x, C = ho(x, ["dark"]), w = y || {}, { dark: T } = w, E = ho(w, ["dark"]), D = Y(t) ? this._toVariables({ primitive: t }, o) : {}, O = Y(_) ? this._toVariables({ semantic: _ }, o) : {}, k = Y(C) ? this._toVariables({ light: C }, o) : {}, A = Y(S) ? this._toVariables({ dark: S }, o) : {}, j = Y(b) ? this._toVariables({ semantic: b }, o) : {}, M = Y(E) ? this._toVariables({ light: E }, o) : {}, N = Y(T) ? this._toVariables({ dark: T }, o) : {}, [P, F] = [D.declarations ?? "", D.tokens], [I, ee] = [O.declarations ?? "", O.tokens || []], [te, ne] = [k.declarations ?? "", k.tokens || []], [re, ie] = [A.declarations ?? "", A.tokens || []], [ae, oe] = [j.declarations ?? "", j.tokens || []], [se, L] = [M.declarations ?? "", M.tokens || []], [ce, le] = [N.declarations ?? "", N.tokens || []];
|
|
3875
|
+
s = this.transformCSS(e, P, "light", "variable", o, r, i), c = F, l = `${this.transformCSS(e, `${I}${te}`, "light", "variable", o, r, i)}${this.transformCSS(e, `${re}`, "dark", "variable", o, r, i)}`, u = [...new Set([
|
|
3876
|
+
...ee,
|
|
3877
|
+
...ne,
|
|
3878
|
+
...ie
|
|
3879
|
+
])], d = `${this.transformCSS(e, `${ae}${se}color-scheme:light`, "light", "variable", o, r, i)}${this.transformCSS(e, `${ce}color-scheme:dark`, "dark", "variable", o, r, i)}`, f = [...new Set([
|
|
3880
|
+
...oe,
|
|
3881
|
+
...L,
|
|
3882
|
+
...le
|
|
3869
3883
|
])], p = Ka(a.css, { dt: Ao });
|
|
3870
3884
|
}
|
|
3871
3885
|
return {
|
|
@@ -3891,11 +3905,11 @@ var Q = {
|
|
|
3891
3905
|
"colorScheme",
|
|
3892
3906
|
"extend",
|
|
3893
3907
|
"css"
|
|
3894
|
-
]), h = f || {}, { colorScheme: g } = h, _ = ho(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ho(v, ["dark"]), x = g || {}, { dark: S } = x, C = ho(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [
|
|
3895
|
-
s = `${this.transformCSS(r, `${
|
|
3896
|
-
...
|
|
3897
|
-
...
|
|
3898
|
-
...
|
|
3908
|
+
]), h = f || {}, { colorScheme: g } = h, _ = ho(h, ["colorScheme"]), v = d || {}, { dark: y } = v, b = ho(v, ["dark"]), x = g || {}, { dark: S } = x, C = ho(x, ["dark"]), w = Y(m) ? this._toVariables({ [r]: Z(Z({}, m), _) }, n) : {}, T = Y(b) ? this._toVariables({ [r]: Z(Z({}, b), C) }, n) : {}, E = Y(y) ? this._toVariables({ [r]: Z(Z({}, y), S) }, n) : {}, [D, O] = [w.declarations ?? "", w.tokens || []], [k, A] = [T.declarations ?? "", T.tokens || []], [j, M] = [E.declarations ?? "", E.tokens || []];
|
|
3909
|
+
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([
|
|
3910
|
+
...O,
|
|
3911
|
+
...A,
|
|
3912
|
+
...M
|
|
3899
3913
|
])], l = Ka(p, { dt: Ao });
|
|
3900
3914
|
}
|
|
3901
3915
|
return {
|
|
@@ -4254,32 +4268,32 @@ function Vo(e) {
|
|
|
4254
4268
|
}
|
|
4255
4269
|
var Ho = 0;
|
|
4256
4270
|
function Uo(e) {
|
|
4257
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
4271
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = k(!1), r = k(e), i = k(null), a = io() ? 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_${++Ho}` : 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, A = t.props, j = A === void 0 ? {} : A, M = function() {}, N = function(t) {
|
|
4258
4272
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4259
4273
|
if (s) {
|
|
4260
|
-
var o = Lo(Lo({},
|
|
4274
|
+
var o = Lo(Lo({}, j), a), c = o.name || p, l = o.id || h, u = o.nonce || y;
|
|
4261
4275
|
i.value = s.querySelector(`style[data-primevue-style-id="${c}"]`) || s.getElementById(l) || s.createElement("style"), i.value.isConnected || (r.value = t || e, ro(i.value, {
|
|
4262
4276
|
type: "text/css",
|
|
4263
4277
|
id: l,
|
|
4264
4278
|
media: _,
|
|
4265
4279
|
nonce: u
|
|
4266
4280
|
}), x ? s.head.prepend(i.value) : s.head.appendChild(i.value), ao(i.value, "data-primevue-style-id", c), ro(i.value, o), i.value.onload = function(e) {
|
|
4267
|
-
return
|
|
4268
|
-
}, C?.(c)), !n.value && (
|
|
4281
|
+
return D?.(e, { name: c });
|
|
4282
|
+
}, C?.(c)), !n.value && (M = L(r, function(e) {
|
|
4269
4283
|
i.value.textContent = e, T?.(c);
|
|
4270
4284
|
}, { immediate: !0 }), n.value = !0);
|
|
4271
4285
|
}
|
|
4272
4286
|
};
|
|
4273
|
-
return l && !d && Vo(
|
|
4287
|
+
return l && !d && Vo(N), {
|
|
4274
4288
|
id: h,
|
|
4275
4289
|
name: p,
|
|
4276
4290
|
el: i,
|
|
4277
4291
|
css: r,
|
|
4278
4292
|
unload: function() {
|
|
4279
|
-
!s || !n.value || (
|
|
4293
|
+
!s || !n.value || (M(), to(i.value) && s.head.removeChild(i.value), n.value = !1, i.value = null);
|
|
4280
4294
|
},
|
|
4281
|
-
load:
|
|
4282
|
-
isLoaded:
|
|
4295
|
+
load: N,
|
|
4296
|
+
isLoaded: O(n)
|
|
4283
4297
|
};
|
|
4284
4298
|
}
|
|
4285
4299
|
//#endregion
|
|
@@ -4757,7 +4771,7 @@ var hs = {
|
|
|
4757
4771
|
csp: { nonce: void 0 }
|
|
4758
4772
|
}, gs = Symbol();
|
|
4759
4773
|
function _s(e, t) {
|
|
4760
|
-
var n = { config:
|
|
4774
|
+
var n = { config: D(t) };
|
|
4761
4775
|
return e.config.globalProperties.$primevue = n, e.provide(gs, n), ys(), bs(e, n), n;
|
|
4762
4776
|
}
|
|
4763
4777
|
var vs = [];
|
|
@@ -4767,7 +4781,7 @@ function ys() {
|
|
|
4767
4781
|
}), vs = [];
|
|
4768
4782
|
}
|
|
4769
4783
|
function bs(e, t) {
|
|
4770
|
-
var n =
|
|
4784
|
+
var n = k(!1), r = function() {
|
|
4771
4785
|
if (t.config?.theme !== "none" && !$.isStyleNameLoaded("common")) {
|
|
4772
4786
|
var e, n = ss.getCommonTheme?.call(ss) || {}, 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 };
|
|
4773
4787
|
ss.load(r?.css, ds({ name: "primitive-variables" }, s)), ss.load(i?.css, ds({ name: "semantic-variables" }, s)), ss.load(a?.css, ds({ name: "global-variables" }, s)), ss.loadStyle(ds({ name: "global-style" }, s), o), $.setLoadedStyleName("common");
|
|
@@ -4776,7 +4790,7 @@ function bs(e, t) {
|
|
|
4776
4790
|
go.on("theme:change", function(t) {
|
|
4777
4791
|
n.value ||= (e.config.globalProperties.$primevue.config.theme = t, !0);
|
|
4778
4792
|
});
|
|
4779
|
-
var i =
|
|
4793
|
+
var i = L(t.config, function(e, t) {
|
|
4780
4794
|
cs.emit("config:change", {
|
|
4781
4795
|
newValue: e,
|
|
4782
4796
|
oldValue: t
|
|
@@ -4784,7 +4798,7 @@ function bs(e, t) {
|
|
|
4784
4798
|
}, {
|
|
4785
4799
|
immediate: !0,
|
|
4786
4800
|
deep: !0
|
|
4787
|
-
}), a =
|
|
4801
|
+
}), a = L(function() {
|
|
4788
4802
|
return t.config.ripple;
|
|
4789
4803
|
}, function(e, t) {
|
|
4790
4804
|
cs.emit("config:ripple:change", {
|
|
@@ -4794,7 +4808,7 @@ function bs(e, t) {
|
|
|
4794
4808
|
}, {
|
|
4795
4809
|
immediate: !0,
|
|
4796
4810
|
deep: !0
|
|
4797
|
-
}), o =
|
|
4811
|
+
}), o = L(function() {
|
|
4798
4812
|
return t.config.theme;
|
|
4799
4813
|
}, function(e, i) {
|
|
4800
4814
|
n.value || $.setTheme(e), t.config.unstyled || r(), n.value = !1, cs.emit("config:theme:change", {
|
|
@@ -4804,7 +4818,7 @@ function bs(e, t) {
|
|
|
4804
4818
|
}, {
|
|
4805
4819
|
immediate: !0,
|
|
4806
4820
|
deep: !1
|
|
4807
|
-
}), s =
|
|
4821
|
+
}), s = L(function() {
|
|
4808
4822
|
return t.config.unstyled;
|
|
4809
4823
|
}, function(e, n) {
|
|
4810
4824
|
!e && t.config.theme && r(), cs.emit("config:unstyled:change", {
|
|
@@ -9583,7 +9597,8 @@ var xs = { install: function(e, t) {
|
|
|
9583
9597
|
"PvPopover",
|
|
9584
9598
|
"PvSelectableCard",
|
|
9585
9599
|
"PvSkeleton",
|
|
9586
|
-
"PvSidebar"
|
|
9600
|
+
"PvSidebar",
|
|
9601
|
+
"PvDatePicker"
|
|
9587
9602
|
]), pl = new Set(["PvSkeleton", "PvDatePicker"]);
|
|
9588
9603
|
function ml(e) {
|
|
9589
9604
|
return !fl.has(e);
|