@turquoisehealth/pit-viper 2.189.2-dev.0 → 2.190.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 +14 -0
- package/_site/assets/css/pit-viper-consumer.css +14 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +11 -0
- package/_site/assets/css/pit-viper-v2.css +14 -0
- package/_site/assets/css/pit-viper.css +14 -0
- 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-avatar-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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
- package/pv-components/dist/vue/base/components/base/PvAvatar/types.d.ts +17 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/cascadeUtils.d.ts +7 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -2
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -21
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +25 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +743 -704
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/base/types.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/PvAvatar.vue.d.ts +2 -15
- package/pv-components/dist/vue/visualizations/components/base/PvAvatar/types.d.ts +17 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/cascadeUtils.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -3
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -2
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/PvSelectButtonTrigger.vue.d.ts +4 -21
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButtonTrigger/types.d.ts +25 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +0 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/SetFilter.vue.d.ts +0 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +9 -3
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +1548 -1513
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/types.d.ts +3 -0
- package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +8 -3
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +881 -869
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -3
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1178 -1143
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1191 -1178
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1191 -1140
- package/pv-components/dist/web/pv-components.iife.js +31 -31
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}[class*=pv-status]{&[data-v-0324bf60]:before,&[data-v-0324bf60]:after{margin-inline-end:0}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-tab-list[data-v-498bf523]{border:none}.pv-tab-list :where(li)[data-active][data-v-498bf523]:after{content:"";background-color:#176f6f;width:100%;height:2px;display:block;position:absolute;bottom:0;left:0;right:0}summary[data-v-d953baf8]{background-image:none;padding-right:2px}.pv-text-secondary[data-v-8b02ee95]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-37e53973]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-f7eaa571]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-f7eaa571]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f7eaa571]:hover,&[data-v-f7eaa571]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f7eaa571]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f7eaa571]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f7eaa571]{flex-shrink:0;margin-left:auto;padding:4px}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.pv-insight-button[data-v-c1185c07]{position:absolute;top:.5rem;right:.5rem}.expandable-content[data-v-06cc192f]{border-radius:.5rem}.expandable-content .pv-line-clamp[data-v-06cc192f]{transition:max-height .3s ease-in-out}.reorder-icon[data-v-1efb9068]{width:16px;min-width:16px;height:16px;min-height:16px;position:absolute;top:0;left:0;transform:translateY(25%)}.pv-tree-drop-zone[data-v-ecab1929]{min-height:0}.tree-item-continued[data-v-ecab1929]{position:relative}.tree-item-continued[data-v-ecab1929]:before{content:"";left:calc(var(--tree-connector-left,8px) + 1px);background:var(--tree-connector-color,#d2d8dc);z-index:1;pointer-events:none;width:1px;position:absolute;top:0;bottom:0;transform:translate(-50%)}.tree-item-continued .tree-component-nested-middle-symbol[data-v-ecab1929]:before{display:none}.tree-component-end-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-end-symbol[data-v-ecab1929]:before,.tree-component-end-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute}.tree-component-end-symbol[data-v-ecab1929]:before{width:1px;height:14px;top:-6px;left:8px;transform:translate(-50%)}.tree-component-end-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:8px;left:8px}.tree-component-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-middle-symbol[data-v-ecab1929]:before{content:"";background:var(--tree-connector-color,#d2d8dc);width:1px;height:28px;position:absolute;top:-4px;left:50%;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]{width:16px;min-width:16px;height:16px;position:relative}.tree-component-nested-middle-symbol[data-v-ecab1929]:before,.tree-component-nested-middle-symbol[data-v-ecab1929]:after{content:"";background:var(--tree-connector-color,#d2d8dc);position:absolute;left:50%}.tree-component-nested-middle-symbol[data-v-ecab1929]:before{width:1px;height:28px;top:-4px;transform:translate(-50%)}.tree-component-nested-middle-symbol[data-v-ecab1929]:after{width:8px;height:1px;top:50%;transform:translateY(-50%)}.pv-tree-drop-zone[data-v-8e33078d],.pv-tree-drop-zone[data-v-7589558e]{min-height:0}[data-v-2896bb8b] .pv-tree-item{cursor:pointer;background-color:#0000;border:1px solid #0000;padding:3px 4px}[data-v-2896bb8b] .pv-tree-item-disabled{cursor:default!important}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-top{border-top:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-tree-item.pv-drop-indicator-bottom{border-bottom:1px solid var(--color-border,#121313)}[data-v-2896bb8b] .pv-drop-indicator-parent{border:1px solid var(--color-border,#36c5ba)}[data-v-2896bb8b] .pv-tree-item-selected{background-color:var(--pv-color-selected,#e4f8f6)}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:hover,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:hover{background-color:var(--pv-color-hover,#e8f2f4);border-radius:4px}[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item-selected:active,[data-v-2896bb8b] .pv-tree:not(.pv-tree--disable-selection) .pv-tree-item:active{background-color:var(--pv-color-active,#c7d8db);border-radius:4px}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useId as F, useModel as I, useSlots as
|
|
4
|
-
import { useSortable as
|
|
5
|
-
import { vOnClickOutside as
|
|
6
|
-
import { onClickOutside as
|
|
7
|
-
import { camelCase as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { Skeleton as
|
|
14
|
-
import
|
|
15
|
-
import { cloneDeep as
|
|
16
|
-
import { PrimeVue as
|
|
17
|
-
import
|
|
3
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as S, onMounted as C, onUnmounted as w, openBlock as T, provide as E, ref as D, renderList as O, renderSlot as k, resolveComponent as A, resolveDynamicComponent as j, shallowRef as M, toDisplayString as N, unref as P, useId as F, useModel as I, useSlots as ee, useTemplateRef as L, vModelCheckbox as R, vModelDynamic as z, vModelRadio as B, vModelText as te, vShow as ne, watch as V, withCtx as H, withDirectives as U, withModifiers as W } from "vue";
|
|
4
|
+
import { useSortable as G } from "@vueuse/integrations/useSortable.mjs";
|
|
5
|
+
import { vOnClickOutside as re } from "@vueuse/components";
|
|
6
|
+
import { onClickOutside as ie, onKeyStroke as ae, useDebounceFn as oe, useElementBounding as se, useElementHover as ce, useToggle as le } from "@vueuse/core";
|
|
7
|
+
import { camelCase as ue } from "es-toolkit/string";
|
|
8
|
+
import de from "primevue/datepicker";
|
|
9
|
+
import fe from "dayjs";
|
|
10
|
+
import pe from "dayjs/plugin/utc";
|
|
11
|
+
import me from "dayjs/plugin/timezone";
|
|
12
|
+
import he from "dayjs/plugin/advancedFormat";
|
|
13
|
+
import { Skeleton as ge } from "primevue";
|
|
14
|
+
import _e from "vuedraggable";
|
|
15
|
+
import { cloneDeep as ve } from "es-toolkit/object";
|
|
16
|
+
import { PrimeVue as ye } from "@primevue/core";
|
|
17
|
+
import be from "@primeuix/themes/aura";
|
|
18
18
|
//#region \0rolldown/runtime.js
|
|
19
|
-
var
|
|
19
|
+
var xe = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, Ce = Object.getOwnPropertyNames, we = Object.prototype.hasOwnProperty, Te = (e, t) => {
|
|
20
20
|
let n = {};
|
|
21
|
-
for (var r in e)
|
|
21
|
+
for (var r in e) xe(n, r, {
|
|
22
22
|
get: e[r],
|
|
23
23
|
enumerable: !0
|
|
24
24
|
});
|
|
25
|
-
return t ||
|
|
26
|
-
},
|
|
27
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
25
|
+
return t || xe(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
26
|
+
}, Ee = (e, t, n, r) => {
|
|
27
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Ce(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !we.call(e, s) && s !== n && xe(e, s, {
|
|
28
28
|
get: ((e) => t[e]).bind(null, s),
|
|
29
|
-
enumerable: !(r =
|
|
29
|
+
enumerable: !(r = Se(t, s)) || r.enumerable
|
|
30
30
|
});
|
|
31
31
|
return e;
|
|
32
|
-
},
|
|
32
|
+
}, De = (e, t, n) => (Ee(e, t, "default"), n && Ee(n, t, "default")), Oe = /* @__PURE__ */ d({
|
|
33
33
|
__name: "PvSpinner",
|
|
34
34
|
props: {
|
|
35
35
|
size: { default: "lg" },
|
|
@@ -53,27 +53,27 @@ var be = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Se = Objec
|
|
|
53
53
|
style: x({ "--size": t[e.size] })
|
|
54
54
|
}, null, 6));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), ke = ["ghost"], Ae = {
|
|
57
57
|
md: "pv-button-small",
|
|
58
58
|
lg: void 0,
|
|
59
59
|
xl: "pv-button-large"
|
|
60
|
-
},
|
|
60
|
+
}, je = (e) => e == null || !Ae.hasOwnProperty(e) ? null : Ae[e] || null;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/web-components/utils.ts
|
|
63
|
-
function
|
|
63
|
+
function Me() {
|
|
64
64
|
let e = D(!1), t = f()?.root || {};
|
|
65
65
|
return "isCE" in t && t.isCE === !0 && (e.value = !0), e;
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/components/base/baseProps.ts
|
|
69
|
-
var
|
|
69
|
+
var Ne = {
|
|
70
70
|
xs: "12px",
|
|
71
71
|
sm: "16px",
|
|
72
72
|
md: "20px",
|
|
73
73
|
lg: "24px",
|
|
74
74
|
xl: "32px",
|
|
75
75
|
"2x": "40px"
|
|
76
|
-
},
|
|
76
|
+
}, Pe = [
|
|
77
77
|
void 0,
|
|
78
78
|
10,
|
|
79
79
|
12,
|
|
@@ -81,24 +81,24 @@ var Me = {
|
|
|
81
81
|
24,
|
|
82
82
|
32,
|
|
83
83
|
64
|
|
84
|
-
],
|
|
84
|
+
], Fe = ["xlink:href"], K = /* @__PURE__ */ d({
|
|
85
85
|
__name: "PvIcon",
|
|
86
86
|
props: {
|
|
87
87
|
name: {},
|
|
88
88
|
size: {}
|
|
89
89
|
},
|
|
90
90
|
setup(e) {
|
|
91
|
-
let t = e, n =
|
|
91
|
+
let t = e, n = Me(), i = D(null), a = r(() => ({
|
|
92
92
|
"pv-icon": !0,
|
|
93
|
-
[`pv-icon-${t.size}`]: t.size != null &&
|
|
93
|
+
[`pv-icon-${t.size}`]: t.size != null && Pe.includes(t.size)
|
|
94
94
|
})), c = r(() => n.value && i.value ? `${i.value}#${t.name}` : `#${t.name}`);
|
|
95
95
|
return globalThis.__PV_GLOBAL_SPRITE_PATH__ && (i.value = globalThis.__PV_GLOBAL_SPRITE_PATH__), (e, t) => (T(), o("svg", {
|
|
96
96
|
"data-testid": "pv-icon",
|
|
97
97
|
"aria-hidden": "true",
|
|
98
98
|
class: y(a.value)
|
|
99
|
-
}, [s("use", { "xlink:href": c.value }, null, 8,
|
|
99
|
+
}, [s("use", { "xlink:href": c.value }, null, 8, Fe)], 2));
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), Ie = /* @__PURE__ */ d({
|
|
102
102
|
__name: "PvCounterBadge",
|
|
103
103
|
props: {
|
|
104
104
|
value: {},
|
|
@@ -123,14 +123,14 @@ var Me = {
|
|
|
123
123
|
"data-testid": "pv-counter-badge"
|
|
124
124
|
}, N(i.value), 3));
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), q = (e, t) => {
|
|
127
127
|
let n = e.__vccOpts || e;
|
|
128
128
|
for (let [e, r] of t) n[e] = r;
|
|
129
129
|
return n;
|
|
130
|
-
},
|
|
130
|
+
}, Le = /* @__PURE__ */ q(Ie, [["__scopeId", "data-v-743a2e13"]]), Re = ["disabled", "aria-label"], ze = {
|
|
131
131
|
key: 2,
|
|
132
132
|
"data-testid": "pv-button-label"
|
|
133
|
-
},
|
|
133
|
+
}, J = /* @__PURE__ */ d({
|
|
134
134
|
__name: "PvButton",
|
|
135
135
|
props: {
|
|
136
136
|
variant: { default: "primary" },
|
|
@@ -157,8 +157,8 @@ var Me = {
|
|
|
157
157
|
setup(e) {
|
|
158
158
|
let n = e, s = r(() => !n.label || n.loading ? n.label || n.ariaLabel : void 0), c = r(() => {
|
|
159
159
|
let e = [];
|
|
160
|
-
n.inverse &&
|
|
161
|
-
let t =
|
|
160
|
+
n.inverse && ke.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
161
|
+
let t = je(n.size);
|
|
162
162
|
return t && e.push(t), e;
|
|
163
163
|
});
|
|
164
164
|
return (n, r) => (T(), o("button", {
|
|
@@ -167,34 +167,34 @@ var Me = {
|
|
|
167
167
|
disabled: e.disabled,
|
|
168
168
|
"aria-label": s.value,
|
|
169
169
|
"data-testid": "pv-button"
|
|
170
|
-
}, [e.loading ? (T(), i(
|
|
170
|
+
}, [e.loading ? (T(), i(Oe, {
|
|
171
171
|
key: 0,
|
|
172
172
|
size: "sm"
|
|
173
173
|
})) : (T(), o(t, { key: 1 }, [
|
|
174
|
-
e.leftCounterBadge ? (T(), i(
|
|
174
|
+
e.leftCounterBadge ? (T(), i(Le, {
|
|
175
175
|
key: 0,
|
|
176
176
|
value: e.leftCounterBadge,
|
|
177
177
|
variant: "tertiary"
|
|
178
178
|
}, null, 8, ["value"])) : a("", !0),
|
|
179
|
-
e.leftIcon ? (T(), i(
|
|
179
|
+
e.leftIcon ? (T(), i(K, {
|
|
180
180
|
key: 1,
|
|
181
181
|
name: e.leftIcon,
|
|
182
182
|
"data-testid": "pv-button-left-icon"
|
|
183
183
|
}, null, 8, ["name"])) : a("", !0),
|
|
184
|
-
e.label ? (T(), o("span",
|
|
185
|
-
e.rightCounterBadge ? (T(), i(
|
|
184
|
+
e.label ? (T(), o("span", ze, N(e.label), 1)) : a("", !0),
|
|
185
|
+
e.rightCounterBadge ? (T(), i(Le, {
|
|
186
186
|
key: 3,
|
|
187
187
|
value: e.rightCounterBadge,
|
|
188
188
|
variant: "tertiary"
|
|
189
189
|
}, null, 8, ["value"])) : a("", !0),
|
|
190
|
-
e.rightIcon ? (T(), i(
|
|
190
|
+
e.rightIcon ? (T(), i(K, {
|
|
191
191
|
key: 4,
|
|
192
192
|
name: e.rightIcon,
|
|
193
193
|
"data-testid": "pv-button-right-icon"
|
|
194
194
|
}, null, 8, ["name"])) : a("", !0)
|
|
195
|
-
], 64))], 10,
|
|
195
|
+
], 64))], 10, Re));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), Be = ["disabled", "aria-label"], Ve = { key: 0 }, He = /* @__PURE__ */ d({
|
|
198
198
|
__name: "PvAiButton",
|
|
199
199
|
props: {
|
|
200
200
|
size: { default: "md" },
|
|
@@ -204,39 +204,39 @@ var Me = {
|
|
|
204
204
|
},
|
|
205
205
|
setup(e) {
|
|
206
206
|
let n = e, s = r(() => {
|
|
207
|
-
let e = ["pv-button-ai"], t =
|
|
207
|
+
let e = ["pv-button-ai"], t = je(n.size);
|
|
208
208
|
return t && e.push(t), e;
|
|
209
209
|
}), c = r(() => (!n.label || n.loading) && n.label || void 0);
|
|
210
210
|
return (n, r) => (T(), o("button", {
|
|
211
211
|
disabled: e.disabled,
|
|
212
212
|
class: y(s.value),
|
|
213
213
|
"aria-label": c.value
|
|
214
|
-
}, [e.loading ? (T(), i(
|
|
214
|
+
}, [e.loading ? (T(), i(Oe, {
|
|
215
215
|
key: 0,
|
|
216
216
|
size: e.size
|
|
217
|
-
}, null, 8, ["size"])) : (T(), o(t, { key: 1 }, [u(
|
|
217
|
+
}, null, 8, ["size"])) : (T(), o(t, { key: 1 }, [u(K, {
|
|
218
218
|
class: "pv-text-brand",
|
|
219
219
|
name: "ai-filled"
|
|
220
|
-
}), e.label ? (T(), o("span",
|
|
220
|
+
}), e.label ? (T(), o("span", Ve, N(e.label), 1)) : a("", !0)], 64))], 10, Be));
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
//#endregion
|
|
224
224
|
//#region src/composables/useSlotPresence.ts
|
|
225
|
-
function
|
|
225
|
+
function Ue(e, t) {
|
|
226
226
|
if (e.nodeType !== Node.TEXT_NODE) return !1;
|
|
227
227
|
let n = e.textContent ?? "";
|
|
228
228
|
return t ? n.length > 0 : n.trim().length > 0;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function We(e, t, n) {
|
|
231
231
|
let r = t === "default" ? "" : t, i = Array.from(e.childNodes);
|
|
232
|
-
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") :
|
|
232
|
+
return r === "" ? i.some((e) => e.nodeType === Node.ELEMENT_NODE ? !e.hasAttribute("slot") : Ue(e, n)) : i.some((e) => e.nodeType === Node.ELEMENT_NODE ? e.getAttribute("slot") === r : !1);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ge(e, t) {
|
|
235
235
|
let n = e.shadowRoot;
|
|
236
236
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c =
|
|
238
|
+
function Ke(e, t = {}) {
|
|
239
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = Me(), l = i ?? ee(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = D(!1), f = null, p = null, m = () => {
|
|
240
240
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
241
241
|
}, h = () => {
|
|
242
242
|
if (!c.value) {
|
|
@@ -248,12 +248,12 @@ function Ge(e, t = {}) {
|
|
|
248
248
|
d.value = !1;
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
|
-
let r = o ?
|
|
251
|
+
let r = o ? Ge(t, e) : null;
|
|
252
252
|
if (r) {
|
|
253
|
-
d.value = r.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 :
|
|
253
|
+
d.value = r.assignedNodes({ flatten: !0 }).some((e) => e.nodeType === Node.ELEMENT_NODE ? !0 : Ue(e, s));
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
|
-
d.value =
|
|
256
|
+
d.value = We(t, e, s);
|
|
257
257
|
}, g = () => {
|
|
258
258
|
if (!c.value) return;
|
|
259
259
|
m();
|
|
@@ -262,7 +262,7 @@ function Ge(e, t = {}) {
|
|
|
262
262
|
d.value = !1;
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
h(), o && (p =
|
|
265
|
+
h(), o && (p = Ge(t, e), p && p.addEventListener("slotchange", h)), a && (f = new MutationObserver(() => h()), f.observe(t, {
|
|
266
266
|
childList: !0,
|
|
267
267
|
subtree: !1,
|
|
268
268
|
attributes: !0,
|
|
@@ -270,7 +270,7 @@ function Ge(e, t = {}) {
|
|
|
270
270
|
characterData: !0
|
|
271
271
|
}));
|
|
272
272
|
};
|
|
273
|
-
return C(g), S(m),
|
|
273
|
+
return C(g), S(m), V(() => P(n), () => {
|
|
274
274
|
c.value && g();
|
|
275
275
|
}), {
|
|
276
276
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -281,12 +281,12 @@ function Ge(e, t = {}) {
|
|
|
281
281
|
}
|
|
282
282
|
//#endregion
|
|
283
283
|
//#region src/components/base/PvTooltip/PvTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
284
|
-
var
|
|
284
|
+
var qe = [
|
|
285
285
|
"data-position",
|
|
286
286
|
"data-style",
|
|
287
287
|
"data-static",
|
|
288
288
|
"aria-labelledby"
|
|
289
|
-
],
|
|
289
|
+
], Je = ["id"], Ye = /* @__PURE__ */ d({
|
|
290
290
|
__name: "PvTooltip",
|
|
291
291
|
props: {
|
|
292
292
|
variant: { default: "white" },
|
|
@@ -300,7 +300,7 @@ var Ke = [
|
|
|
300
300
|
delay: { default: 0 }
|
|
301
301
|
},
|
|
302
302
|
setup(e) {
|
|
303
|
-
let { present: t } =
|
|
303
|
+
let { present: t } = Ke("tooltip-content");
|
|
304
304
|
return (n, r) => (T(), o("div", {
|
|
305
305
|
"data-testid": "pv-tooltip",
|
|
306
306
|
class: y([{
|
|
@@ -316,9 +316,9 @@ var Ke = [
|
|
|
316
316
|
role: "tooltip",
|
|
317
317
|
id: e.ariaLabelledBy,
|
|
318
318
|
"data-testid": "pv-tooltip-content"
|
|
319
|
-
}, [k(n.$slots, "tooltip-content")], 8,
|
|
319
|
+
}, [k(n.$slots, "tooltip-content")], 8, Je)) : a("", !0)], 10, qe));
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), Xe = { class: "pv-text-body-sm" }, Ze = /* @__PURE__ */ d({
|
|
322
322
|
__name: "PvButtonWithTooltip",
|
|
323
323
|
props: {
|
|
324
324
|
tooltipText: {},
|
|
@@ -339,14 +339,14 @@ var Ke = [
|
|
|
339
339
|
},
|
|
340
340
|
setup(e) {
|
|
341
341
|
let t = e, n = r(() => t.size === "md" ? "sm" : "md");
|
|
342
|
-
return (t, r) => (T(), i(
|
|
342
|
+
return (t, r) => (T(), i(Ye, {
|
|
343
343
|
variant: e.tooltipVariant,
|
|
344
344
|
"tooltip-position": e.tooltipPosition,
|
|
345
345
|
delay: e.delay,
|
|
346
346
|
size: n.value
|
|
347
347
|
}, {
|
|
348
|
-
"tooltip-content":
|
|
349
|
-
label:
|
|
348
|
+
"tooltip-content": H(() => [s("p", Xe, N(e.tooltipText), 1)]),
|
|
349
|
+
label: H(() => [u(J, b(p(t.$props)), null, 16)]),
|
|
350
350
|
_: 1
|
|
351
351
|
}, 8, [
|
|
352
352
|
"variant",
|
|
@@ -355,7 +355,7 @@ var Ke = [
|
|
|
355
355
|
"size"
|
|
356
356
|
]));
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), Qe = /* @__PURE__ */ d({
|
|
359
359
|
__name: "PvReleaseBadge",
|
|
360
360
|
props: {
|
|
361
361
|
variant: {},
|
|
@@ -368,7 +368,7 @@ var Ke = [
|
|
|
368
368
|
});
|
|
369
369
|
return (e, t) => (T(), o("div", { class: y(i.value) }, N(n.value), 3));
|
|
370
370
|
}
|
|
371
|
-
}),
|
|
371
|
+
}), $e = ["data-style"], et = /* @__PURE__ */ d({
|
|
372
372
|
__name: "PvTag",
|
|
373
373
|
props: {
|
|
374
374
|
size: { default: "md" },
|
|
@@ -413,7 +413,7 @@ var Ke = [
|
|
|
413
413
|
"data-testid": "pv-tag",
|
|
414
414
|
"data-style": e.rounded ? "rounded" : void 0
|
|
415
415
|
}, [
|
|
416
|
-
e.icon ? (T(), i(
|
|
416
|
+
e.icon ? (T(), i(K, {
|
|
417
417
|
key: 0,
|
|
418
418
|
"data-testid": "pv-tag-icon",
|
|
419
419
|
class: y(e.iconClasses),
|
|
@@ -421,16 +421,16 @@ var Ke = [
|
|
|
421
421
|
size: 12
|
|
422
422
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
423
423
|
s("span", { class: y(["pv-truncate", { "pv-underline-dotted": e.spine }]) }, N(e.label), 3),
|
|
424
|
-
e.showClear ? (T(), i(
|
|
424
|
+
e.showClear ? (T(), i(K, {
|
|
425
425
|
key: 1,
|
|
426
426
|
"data-testid": "pv-tag-close-icon",
|
|
427
427
|
size: 12,
|
|
428
428
|
name: "close",
|
|
429
|
-
onClick: r[0] ||=
|
|
429
|
+
onClick: r[0] ||= W((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
430
430
|
})) : a("", !0)
|
|
431
|
-
], 14,
|
|
431
|
+
], 14, $e));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), tt = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
434
434
|
__name: "PvPill",
|
|
435
435
|
props: {
|
|
436
436
|
size: { default: "md" },
|
|
@@ -475,7 +475,7 @@ var Ke = [
|
|
|
475
475
|
style: { "margin-inline-end": "0px" },
|
|
476
476
|
class: y(`pv-status-${e.dotVariant}`)
|
|
477
477
|
}, null, 2)) : a("", !0),
|
|
478
|
-
e.icon ? (T(), i(
|
|
478
|
+
e.icon ? (T(), i(K, {
|
|
479
479
|
key: 1,
|
|
480
480
|
name: e.icon,
|
|
481
481
|
size: 12
|
|
@@ -483,7 +483,7 @@ var Ke = [
|
|
|
483
483
|
s("span", null, N(e.label), 1)
|
|
484
484
|
], 2));
|
|
485
485
|
}
|
|
486
|
-
}), [["__scopeId", "data-v-0324bf60"]]),
|
|
486
|
+
}), [["__scopeId", "data-v-0324bf60"]]), nt = ["data-align"], rt = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
487
487
|
__name: "PvPopover",
|
|
488
488
|
props: {
|
|
489
489
|
alignment: { default: void 0 },
|
|
@@ -497,8 +497,8 @@ var Ke = [
|
|
|
497
497
|
},
|
|
498
498
|
emits: ["list-order-updated"],
|
|
499
499
|
setup(e, { expose: t, emit: n }) {
|
|
500
|
-
let r = D(null), i =
|
|
501
|
-
return a.isSortable && a.isList &&
|
|
500
|
+
let r = D(null), i = L("popoverList"), a = e, s = n;
|
|
501
|
+
return a.isSortable && a.isList && G(i, [], {
|
|
502
502
|
animation: 150,
|
|
503
503
|
onUpdate: () => {
|
|
504
504
|
s("list-order-updated", Array.from(i.value?.children || []).map((e) => e.id));
|
|
@@ -516,15 +516,15 @@ var Ke = [
|
|
|
516
516
|
role: "list",
|
|
517
517
|
class: "pv-popover-list",
|
|
518
518
|
style: x(e.cssCustomListProperties)
|
|
519
|
-
}, [k(t.$slots, "default", {}, void 0, !0)], 4)) : k(t.$slots, "default", { key: 1 }, void 0, !0)], 12,
|
|
519
|
+
}, [k(t.$slots, "default", {}, void 0, !0)], 4)) : k(t.$slots, "default", { key: 1 }, void 0, !0)], 12, nt));
|
|
520
520
|
}
|
|
521
|
-
}), [["__scopeId", "data-v-c6181252"]]),
|
|
521
|
+
}), [["__scopeId", "data-v-c6181252"]]), it = {
|
|
522
522
|
class: "pv-relative",
|
|
523
523
|
style: { width: "fit-content" }
|
|
524
|
-
},
|
|
524
|
+
}, at = ["disabled"], ot = {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "pv-shimmer"
|
|
527
|
-
},
|
|
527
|
+
}, st = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
528
528
|
__name: "PvDropdown",
|
|
529
529
|
props: {
|
|
530
530
|
defaultOpen: {
|
|
@@ -566,7 +566,7 @@ var Ke = [
|
|
|
566
566
|
}, C = () => {
|
|
567
567
|
p.value = !1;
|
|
568
568
|
};
|
|
569
|
-
t({ closeDropdown: C }),
|
|
569
|
+
t({ closeDropdown: C }), V(p, (e) => {
|
|
570
570
|
e ? v(() => {
|
|
571
571
|
b(), f("dropdown-open");
|
|
572
572
|
}) : f("dropdown-closed");
|
|
@@ -578,7 +578,7 @@ var Ke = [
|
|
|
578
578
|
zIndex: 10,
|
|
579
579
|
...d.popoverCssProperties
|
|
580
580
|
} : d.popoverCssProperties);
|
|
581
|
-
return (t, r) =>
|
|
581
|
+
return (t, r) => U((T(), o("div", it, [s("button", {
|
|
582
582
|
ref_key: "triggerRef",
|
|
583
583
|
ref: m,
|
|
584
584
|
class: y({
|
|
@@ -588,10 +588,10 @@ var Ke = [
|
|
|
588
588
|
style: { width: "auto" },
|
|
589
589
|
onClick: S,
|
|
590
590
|
disabled: e.disabled
|
|
591
|
-
}, [k(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10,
|
|
591
|
+
}, [k(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10, at), (T(), i(n, {
|
|
592
592
|
to: e.teleportLocation,
|
|
593
593
|
disabled: !e.useTeleport
|
|
594
|
-
}, [u(
|
|
594
|
+
}, [u(rt, {
|
|
595
595
|
ref_key: "popoverRef",
|
|
596
596
|
ref: h,
|
|
597
597
|
class: y(x.value),
|
|
@@ -601,7 +601,7 @@ var Ke = [
|
|
|
601
601
|
isSortable: e.isSortable,
|
|
602
602
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
603
603
|
}, {
|
|
604
|
-
default:
|
|
604
|
+
default: H(() => [k(t.$slots, "default", {}, () => [e.isLoading ? (T(), o("span", ot, "Loading...")) : a("", !0)], !0)]),
|
|
605
605
|
_: 3
|
|
606
606
|
}, 8, [
|
|
607
607
|
"class",
|
|
@@ -609,25 +609,25 @@ var Ke = [
|
|
|
609
609
|
"alignment",
|
|
610
610
|
"isList",
|
|
611
611
|
"isSortable"
|
|
612
|
-
])], 8, ["to", "disabled"]))])), [[P(
|
|
612
|
+
])], 8, ["to", "disabled"]))])), [[P(re), C]]);
|
|
613
613
|
}
|
|
614
|
-
}), [["__scopeId", "data-v-79a7def3"]]),
|
|
614
|
+
}), [["__scopeId", "data-v-79a7def3"]]), ct = { class: "pv-popover-menu" }, lt = /* @__PURE__ */ d({
|
|
615
615
|
__name: "PvPopoverMenu",
|
|
616
616
|
props: {
|
|
617
617
|
alignment: { default: void 0 },
|
|
618
618
|
cssCustomProperties: { default: () => ({}) }
|
|
619
619
|
},
|
|
620
620
|
setup(e) {
|
|
621
|
-
return (t, n) => (T(), o("nav",
|
|
621
|
+
return (t, n) => (T(), o("nav", ct, [k(t.$slots, "trigger"), u(rt, {
|
|
622
622
|
"is-list": "",
|
|
623
623
|
alignment: e.alignment,
|
|
624
624
|
"css-custom-properties": e.cssCustomProperties
|
|
625
625
|
}, {
|
|
626
|
-
default:
|
|
626
|
+
default: H(() => [k(t.$slots, "content")]),
|
|
627
627
|
_: 3
|
|
628
628
|
}, 8, ["alignment", "css-custom-properties"])]));
|
|
629
629
|
}
|
|
630
|
-
}),
|
|
630
|
+
}), ut = Math.min, dt = Math.max, ft = Math.round, Y = (e) => ({
|
|
631
631
|
x: e,
|
|
632
632
|
y: e
|
|
633
633
|
}), pt = {
|
|
@@ -1021,7 +1021,7 @@ function un(e) {
|
|
|
1021
1021
|
//#endregion
|
|
1022
1022
|
//#region ../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
1023
1023
|
function dn(e) {
|
|
1024
|
-
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Kt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
1024
|
+
let t = Q(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Kt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = ft(n) !== a || ft(r) !== o;
|
|
1025
1025
|
return s && (n = a, r = o), {
|
|
1026
1026
|
width: n,
|
|
1027
1027
|
height: r,
|
|
@@ -1033,14 +1033,14 @@ function fn(e) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
function pn(e) {
|
|
1035
1035
|
let t = fn(e);
|
|
1036
|
-
if (!Kt(t)) return
|
|
1037
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = dn(t), o = (a ?
|
|
1036
|
+
if (!Kt(t)) return Y(1);
|
|
1037
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = dn(t), o = (a ? ft(n.width) : n.width) / r, s = (a ? ft(n.height) : n.height) / i;
|
|
1038
1038
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
1039
1039
|
x: o,
|
|
1040
1040
|
y: s
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
|
-
var mn = /* @__PURE__ */
|
|
1043
|
+
var mn = /* @__PURE__ */ Y(0);
|
|
1044
1044
|
function hn(e) {
|
|
1045
1045
|
let t = X(e);
|
|
1046
1046
|
return !rn() || !t.visualViewport ? mn : {
|
|
@@ -1053,9 +1053,9 @@ function gn(e, t, n) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
function _n(e, t, n, r) {
|
|
1055
1055
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1056
|
-
let i = e.getBoundingClientRect(), a = fn(e), o =
|
|
1056
|
+
let i = e.getBoundingClientRect(), a = fn(e), o = Y(1);
|
|
1057
1057
|
t && (r ? Z(r) && (o = pn(r)) : o = pn(e));
|
|
1058
|
-
let s = gn(a, n, r) ? hn(a) :
|
|
1058
|
+
let s = gn(a, n, r) ? hn(a) : Y(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;
|
|
1059
1059
|
if (a) {
|
|
1060
1060
|
let e = X(a), t = r && Z(r) ? X(r) : r, n = e, i = un(n);
|
|
1061
1061
|
for (; i && r && t !== n;) {
|
|
@@ -1087,12 +1087,12 @@ function bn(e) {
|
|
|
1087
1087
|
let c = {
|
|
1088
1088
|
scrollLeft: 0,
|
|
1089
1089
|
scrollTop: 0
|
|
1090
|
-
}, l =
|
|
1090
|
+
}, l = Y(1), u = Y(0), d = Kt(r);
|
|
1091
1091
|
if ((d || !d && !a) && ((Ut(r) !== "body" || Jt(o)) && (c = on(r)), d)) {
|
|
1092
1092
|
let e = _n(r);
|
|
1093
1093
|
l = pn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
1094
1094
|
}
|
|
1095
|
-
let f = o && !d && !a ? yn(o, c) :
|
|
1095
|
+
let f = o && !d && !a ? yn(o, c) : Y(0);
|
|
1096
1096
|
return {
|
|
1097
1097
|
width: n.width * l.x,
|
|
1098
1098
|
height: n.height * l.y,
|
|
@@ -1104,8 +1104,8 @@ function xn(e) {
|
|
|
1104
1104
|
return Array.from(e.getClientRects());
|
|
1105
1105
|
}
|
|
1106
1106
|
function Sn(e) {
|
|
1107
|
-
let t = Wt(e), n = on(e), r = e.ownerDocument.body, i =
|
|
1108
|
-
return Q(r).direction === "rtl" && (o +=
|
|
1107
|
+
let t = Wt(e), n = on(e), r = e.ownerDocument.body, i = dt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = dt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + vn(e), s = -n.scrollTop;
|
|
1108
|
+
return Q(r).direction === "rtl" && (o += dt(t.clientWidth, r.clientWidth) - i), {
|
|
1109
1109
|
width: i,
|
|
1110
1110
|
height: a,
|
|
1111
1111
|
x: o,
|
|
@@ -1133,7 +1133,7 @@ function wn(e, t) {
|
|
|
1133
1133
|
};
|
|
1134
1134
|
}
|
|
1135
1135
|
function Tn(e, t) {
|
|
1136
|
-
let n = _n(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Kt(e) ? pn(e) :
|
|
1136
|
+
let n = _n(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Kt(e) ? pn(e) : Y(1);
|
|
1137
1137
|
return {
|
|
1138
1138
|
width: e.clientWidth * a.x,
|
|
1139
1139
|
height: e.clientHeight * a.y,
|
|
@@ -1175,7 +1175,7 @@ function kn(e) {
|
|
|
1175
1175
|
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Xt(t) ? [] : On(t, this._c) : [].concat(n), r], o = En(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
1176
1176
|
for (let e = 1; e < a.length; e++) {
|
|
1177
1177
|
let n = En(t, a[e], i);
|
|
1178
|
-
s =
|
|
1178
|
+
s = dt(n.top, s), c = ut(n.right, c), l = ut(n.bottom, l), u = dt(n.left, u);
|
|
1179
1179
|
}
|
|
1180
1180
|
return {
|
|
1181
1181
|
width: c - u,
|
|
@@ -1195,7 +1195,7 @@ function jn(e, t, n) {
|
|
|
1195
1195
|
let r = Kt(t), i = Wt(t), a = n === "fixed", o = _n(e, !0, a, t), s = {
|
|
1196
1196
|
scrollLeft: 0,
|
|
1197
1197
|
scrollTop: 0
|
|
1198
|
-
}, c =
|
|
1198
|
+
}, c = Y(0);
|
|
1199
1199
|
function l() {
|
|
1200
1200
|
c.x = vn(i);
|
|
1201
1201
|
}
|
|
@@ -1204,7 +1204,7 @@ function jn(e, t, n) {
|
|
|
1204
1204
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
1205
1205
|
} else i && l();
|
|
1206
1206
|
a && !r && i && l();
|
|
1207
|
-
let u = i && !r && !a ? yn(i, s) :
|
|
1207
|
+
let u = i && !r && !a ? yn(i, s) : Y(0);
|
|
1208
1208
|
return {
|
|
1209
1209
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
1210
1210
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -1274,7 +1274,7 @@ var Ln = {
|
|
|
1274
1274
|
...i,
|
|
1275
1275
|
platform: a
|
|
1276
1276
|
});
|
|
1277
|
-
}, $ = /* @__PURE__ */
|
|
1277
|
+
}, $ = /* @__PURE__ */ Te({
|
|
1278
1278
|
Vue: () => e,
|
|
1279
1279
|
Vue2: () => void 0,
|
|
1280
1280
|
del: () => Wn,
|
|
@@ -1284,7 +1284,7 @@ var Ln = {
|
|
|
1284
1284
|
set: () => Un
|
|
1285
1285
|
});
|
|
1286
1286
|
import * as Vn from "vue";
|
|
1287
|
-
|
|
1287
|
+
De($, Vn);
|
|
1288
1288
|
function Hn() {}
|
|
1289
1289
|
function Un(e, t, n) {
|
|
1290
1290
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -1419,7 +1419,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1419
1419
|
}),
|
|
1420
1420
|
emits: ["update:modelValue"],
|
|
1421
1421
|
setup(e) {
|
|
1422
|
-
let t = e, c = I(e, "modelValue"), l = D(null), u = D(null), d = D(null), f =
|
|
1422
|
+
let t = e, c = I(e, "modelValue"), l = D(null), u = D(null), d = D(null), f = ce(l), p = ce(d), m = {
|
|
1423
1423
|
"top-center": "top",
|
|
1424
1424
|
"bottom-center": "bottom",
|
|
1425
1425
|
"center-left": "left",
|
|
@@ -1439,13 +1439,13 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1439
1439
|
strategy: t.positioningStrategy,
|
|
1440
1440
|
middleware: h
|
|
1441
1441
|
});
|
|
1442
|
-
|
|
1442
|
+
V(c, (e) => {
|
|
1443
1443
|
e && u.value && d.value && _();
|
|
1444
1444
|
});
|
|
1445
|
-
let v =
|
|
1445
|
+
let v = se(u), y = oe(() => {
|
|
1446
1446
|
c.value && _();
|
|
1447
1447
|
}, 5);
|
|
1448
|
-
|
|
1448
|
+
V([
|
|
1449
1449
|
v.top,
|
|
1450
1450
|
v.left,
|
|
1451
1451
|
v.width,
|
|
@@ -1472,11 +1472,11 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1472
1472
|
}, N = () => {
|
|
1473
1473
|
t.disableClickOutsideToClose || O(!1);
|
|
1474
1474
|
};
|
|
1475
|
-
return
|
|
1475
|
+
return V(j, (e) => {
|
|
1476
1476
|
t.showOnHover && O(e);
|
|
1477
1477
|
}), w(() => {
|
|
1478
1478
|
E();
|
|
1479
|
-
}), (r, u) =>
|
|
1479
|
+
}), (r, u) => U((T(), o("div", Zn, [s("div", {
|
|
1480
1480
|
ref_key: "triggerWrapper",
|
|
1481
1481
|
ref: l,
|
|
1482
1482
|
onClick: M
|
|
@@ -1484,12 +1484,12 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1484
1484
|
key: 0,
|
|
1485
1485
|
to: e.teleportLocation,
|
|
1486
1486
|
disabled: !t.useTeleport
|
|
1487
|
-
}, [
|
|
1487
|
+
}, [U(s("div", {
|
|
1488
1488
|
class: "pv-floating",
|
|
1489
1489
|
ref_key: "floating",
|
|
1490
1490
|
ref: d,
|
|
1491
1491
|
style: x(b.value)
|
|
1492
|
-
}, [k(r.$slots, "content")], 4), [[
|
|
1492
|
+
}, [k(r.$slots, "content")], 4), [[ne, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[P(re), [N, { ignore: A.value }]]]);
|
|
1493
1493
|
}
|
|
1494
1494
|
}), $n = ["data-variant"], er = /* @__PURE__ */ d({
|
|
1495
1495
|
__name: "PvTooltipV2",
|
|
@@ -1519,11 +1519,11 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1519
1519
|
},
|
|
1520
1520
|
setup(e) {
|
|
1521
1521
|
return (t, n) => (T(), i(Qn, b(p(t.$props)), c({
|
|
1522
|
-
trigger:
|
|
1522
|
+
trigger: H(() => [k(t.$slots, "trigger", {}, () => [s("p", null, N(e.label), 1)])]),
|
|
1523
1523
|
_: 2
|
|
1524
1524
|
}, [t.$slots.content || e.description ? {
|
|
1525
1525
|
name: "content",
|
|
1526
|
-
fn:
|
|
1526
|
+
fn: H(() => [s("div", {
|
|
1527
1527
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1528
1528
|
role: "tooltip",
|
|
1529
1529
|
"data-variant": e.variant
|
|
@@ -1551,7 +1551,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1551
1551
|
position: "bottom-right",
|
|
1552
1552
|
style: { width: "100%" }
|
|
1553
1553
|
}, c({
|
|
1554
|
-
trigger:
|
|
1554
|
+
trigger: H(() => [u(J, {
|
|
1555
1555
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1556
1556
|
variant: "ghost",
|
|
1557
1557
|
label: e.label,
|
|
@@ -1574,7 +1574,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1574
1574
|
_: 2
|
|
1575
1575
|
}, [e.disabledReason ? {
|
|
1576
1576
|
name: "content",
|
|
1577
|
-
fn:
|
|
1577
|
+
fn: H(() => [l(N(e.disabledReason), 1)]),
|
|
1578
1578
|
key: "0"
|
|
1579
1579
|
} : void 0]), 1024))), 128))], 2));
|
|
1580
1580
|
}
|
|
@@ -1584,7 +1584,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1584
1584
|
}, rr = ["onClick", "data-active"], ir = {
|
|
1585
1585
|
class: "pv-text-body-xs",
|
|
1586
1586
|
style: { "font-weight": "500" }
|
|
1587
|
-
}, ar = /* @__PURE__ */
|
|
1587
|
+
}, ar = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
1588
1588
|
__name: "PvTabList",
|
|
1589
1589
|
props: {
|
|
1590
1590
|
modelValue: {},
|
|
@@ -1622,11 +1622,11 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1622
1622
|
}
|
|
1623
1623
|
},
|
|
1624
1624
|
setup(e) {
|
|
1625
|
-
let t = e, n = D(!0), i = r(() =>
|
|
1625
|
+
let t = e, n = D(!0), i = r(() => Ne[t.size] || "32px"), a = r(() => ({
|
|
1626
1626
|
"pv-icon": n.value,
|
|
1627
1627
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1628
|
-
})), c = r(() => ({ width: i.value })), l = r(() => t.toSnakeCase ? `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg` : t.toCamelCase ?
|
|
1629
|
-
return
|
|
1628
|
+
})), c = r(() => ({ width: i.value })), l = r(() => t.toSnakeCase ? `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg` : t.toCamelCase ? ue(t.name) + ".svg" : t.name + ".svg"), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1629
|
+
return V(u, () => {
|
|
1630
1630
|
n.value = !0;
|
|
1631
1631
|
}), (e, t) => (T(), o("div", or, [n.value ? (T(), o("div", {
|
|
1632
1632
|
key: 0,
|
|
@@ -1673,8 +1673,8 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1673
1673
|
}),
|
|
1674
1674
|
emits: ["update:modelValue"],
|
|
1675
1675
|
setup(e) {
|
|
1676
|
-
let t = e, n =
|
|
1677
|
-
|
|
1676
|
+
let t = e, n = L("dialog"), r = I(e, "modelValue");
|
|
1677
|
+
V(() => r.value, () => {
|
|
1678
1678
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1679
1679
|
});
|
|
1680
1680
|
let i = () => {
|
|
@@ -1682,10 +1682,9 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1682
1682
|
}, c = (e) => {
|
|
1683
1683
|
!t.disableCloseOnClickOutside && e.target === n.value && i();
|
|
1684
1684
|
};
|
|
1685
|
-
return (t,
|
|
1685
|
+
return (t, n) => (T(), o("dialog", {
|
|
1686
1686
|
class: "pv-modal-sm",
|
|
1687
|
-
|
|
1688
|
-
ref: n,
|
|
1687
|
+
ref: "dialog",
|
|
1689
1688
|
style: { "--max-width": "480px" },
|
|
1690
1689
|
onClose: i,
|
|
1691
1690
|
onClick: c
|
|
@@ -1715,7 +1714,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1715
1714
|
}])
|
|
1716
1715
|
}, [s("div", { class: y(["pv-flex", { "pv-stack-16": e.orientation === P(hr).Vertical && t.$slots.action }]) }, [
|
|
1717
1716
|
k(t.$slots, "left"),
|
|
1718
|
-
e.icon ? (T(), i(
|
|
1717
|
+
e.icon ? (T(), i(K, {
|
|
1719
1718
|
key: 0,
|
|
1720
1719
|
"data-testid": "pv-banner-icon",
|
|
1721
1720
|
class: "pv-text-brand",
|
|
@@ -1772,12 +1771,12 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1772
1771
|
"name"
|
|
1773
1772
|
]),
|
|
1774
1773
|
s("span", { class: y([{ "pv-underline-dotted": e.spine }]) }, N(e.companyName), 3),
|
|
1775
|
-
e.showClear ? (T(), i(
|
|
1774
|
+
e.showClear ? (T(), i(K, {
|
|
1776
1775
|
key: 0,
|
|
1777
1776
|
"data-testid": "pv-company-tag-close-icon",
|
|
1778
1777
|
size: 12,
|
|
1779
1778
|
name: "close",
|
|
1780
|
-
onClick: r[0] ||=
|
|
1779
|
+
onClick: r[0] ||= W((n) => t.$emit("handle-close", e.companyName), ["stop"])
|
|
1781
1780
|
})) : a("", !0)
|
|
1782
1781
|
], 2));
|
|
1783
1782
|
}
|
|
@@ -1815,7 +1814,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1815
1814
|
"data-style": e.rounded ? "rounded" : void 0,
|
|
1816
1815
|
disabled: e.disabled,
|
|
1817
1816
|
title: e.label
|
|
1818
|
-
}, [e.icon ? (T(), i(
|
|
1817
|
+
}, [e.icon ? (T(), i(K, {
|
|
1819
1818
|
key: 0,
|
|
1820
1819
|
"data-testid": "pv-suggestion-tag-icon",
|
|
1821
1820
|
name: e.icon,
|
|
@@ -1823,7 +1822,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1823
1822
|
class: y(e.iconClasses)
|
|
1824
1823
|
}, null, 8, ["name", "class"])) : a("", !0), s("span", Cr, N(e.label), 1)], 10, Sr));
|
|
1825
1824
|
}
|
|
1826
|
-
}), Tr = ["open"], Er = /* @__PURE__ */
|
|
1825
|
+
}), Tr = ["open"], Er = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
1827
1826
|
__name: "PvAccordion",
|
|
1828
1827
|
props: /* @__PURE__ */ g({
|
|
1829
1828
|
chevronPosition: { default: "right" },
|
|
@@ -1867,17 +1866,17 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1867
1866
|
onMouseenter: r[0] ||= (e) => n.$emit("summary-mouseenter"),
|
|
1868
1867
|
onMouseleave: r[1] ||= (e) => n.$emit("summary-mouseleave")
|
|
1869
1868
|
}, [
|
|
1870
|
-
e.chevronPosition === "left" ? (T(), i(
|
|
1869
|
+
e.chevronPosition === "left" ? (T(), i(K, {
|
|
1871
1870
|
key: 0,
|
|
1872
1871
|
name: d.value
|
|
1873
1872
|
}, null, 8, ["name"])) : a("", !0),
|
|
1874
|
-
e.enableTriggerSlot ? k(n.$slots, "trigger", { key: 1 }, void 0, !0) : (T(), o(t, { key: 2 }, [s("span", null, N(e.header), 1), e.counter ? (T(), i(
|
|
1873
|
+
e.enableTriggerSlot ? k(n.$slots, "trigger", { key: 1 }, void 0, !0) : (T(), o(t, { key: 2 }, [s("span", null, N(e.header), 1), e.counter ? (T(), i(Le, {
|
|
1875
1874
|
key: 0,
|
|
1876
1875
|
value: e.counter,
|
|
1877
1876
|
variant: "secondary",
|
|
1878
1877
|
size: "sm"
|
|
1879
1878
|
}, null, 8, ["value"])) : a("", !0)], 64)),
|
|
1880
|
-
e.chevronPosition === "right" ? (T(), i(
|
|
1879
|
+
e.chevronPosition === "right" ? (T(), i(K, {
|
|
1881
1880
|
key: 3,
|
|
1882
1881
|
name: d.value
|
|
1883
1882
|
}, null, 8, ["name"])) : a("", !0)
|
|
@@ -1905,17 +1904,17 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1905
1904
|
}),
|
|
1906
1905
|
emits: ["update:modelValue"],
|
|
1907
1906
|
setup(e, { expose: t }) {
|
|
1908
|
-
let n = e, i =
|
|
1907
|
+
let n = e, i = L("search-input"), c = I(e, "modelValue"), l = r(() => ({
|
|
1909
1908
|
"pv-input-search": !0,
|
|
1910
1909
|
"pv-full-width": !0,
|
|
1911
1910
|
"pv-input-padded-end": !0
|
|
1912
1911
|
}));
|
|
1913
1912
|
return C(() => {
|
|
1914
|
-
n.displayShortcut &&
|
|
1913
|
+
n.displayShortcut && ae(Ar, (e) => {
|
|
1915
1914
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1916
1915
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1917
1916
|
});
|
|
1918
|
-
}), t({ input: i }), (t, n) => (T(), o("div", Dr, [
|
|
1917
|
+
}), t({ input: i }), (t, n) => (T(), o("div", Dr, [U(s("input", {
|
|
1919
1918
|
ref: "search-input",
|
|
1920
1919
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1921
1920
|
"data-testid": "pv-search-input",
|
|
@@ -1957,7 +1956,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1957
1956
|
emits: ["update:modelValue"],
|
|
1958
1957
|
setup(e) {
|
|
1959
1958
|
let t = I(e, "modelValue"), n = e;
|
|
1960
|
-
return (r, a) => (T(), i(P(
|
|
1959
|
+
return (r, a) => (T(), i(P(de), _({
|
|
1961
1960
|
modelValue: t.value,
|
|
1962
1961
|
"onUpdate:modelValue": a[0] ||= (e) => t.value = e
|
|
1963
1962
|
}, n, {
|
|
@@ -1965,7 +1964,7 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1965
1964
|
iconDisplay: e.showIcon ? "input" : void 0,
|
|
1966
1965
|
fluid: e.fullWidth
|
|
1967
1966
|
}), {
|
|
1968
|
-
inputicon:
|
|
1967
|
+
inputicon: H((e) => [u(K, {
|
|
1969
1968
|
name: "calendar",
|
|
1970
1969
|
onClick: e.clickCallback
|
|
1971
1970
|
}, null, 8, ["onClick"])]),
|
|
@@ -1978,11 +1977,11 @@ var Zn = { style: { width: "fit-content" } }, Qn = /* @__PURE__ */ d({
|
|
|
1978
1977
|
]));
|
|
1979
1978
|
}
|
|
1980
1979
|
});
|
|
1981
|
-
|
|
1980
|
+
fe.extend(he), fe.extend(pe), fe.extend(me);
|
|
1982
1981
|
var Nr = () => ({
|
|
1983
|
-
getCondensedDate: ({ date: e }) =>
|
|
1984
|
-
getTime: ({ date: e, timezone: t }) => t === void 0 ?
|
|
1985
|
-
}), Pr = /* @__PURE__ */
|
|
1982
|
+
getCondensedDate: ({ date: e }) => fe(e).format("MM/DD/YYYY"),
|
|
1983
|
+
getTime: ({ date: e, timezone: t }) => t === void 0 ? fe(e).format("h:mm A") : fe(e).tz(t).format("h:mm A z")
|
|
1984
|
+
}), Pr = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
1986
1985
|
__name: "PvDateTime",
|
|
1987
1986
|
props: {
|
|
1988
1987
|
variants: { default: "condensed" },
|
|
@@ -2054,20 +2053,20 @@ var Nr = () => ({
|
|
|
2054
2053
|
}),
|
|
2055
2054
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
2056
2055
|
setup(e, { emit: n }) {
|
|
2057
|
-
let r = e, i = n, c =
|
|
2056
|
+
let r = e, i = n, c = L("sidePanel"), l = I(e, "searchInput"), d = I(e, "modelValue");
|
|
2058
2057
|
C(() => {
|
|
2059
2058
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
2060
2059
|
});
|
|
2061
2060
|
let f = () => {
|
|
2062
|
-
c.value &&
|
|
2061
|
+
c.value && ie(c.value, () => {
|
|
2063
2062
|
d.value && (i("click-outside"), p());
|
|
2064
2063
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
2065
2064
|
}, p = () => {
|
|
2066
2065
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
2067
2066
|
};
|
|
2068
|
-
return
|
|
2067
|
+
return V(() => d.value, () => {
|
|
2069
2068
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
2070
|
-
}),
|
|
2069
|
+
}), ae("Escape", () => {
|
|
2071
2070
|
c.value && d.value && p();
|
|
2072
2071
|
}), (n, i) => (T(), o("div", {
|
|
2073
2072
|
class: "pv-drawer pv-surface",
|
|
@@ -2080,7 +2079,7 @@ var Nr = () => ({
|
|
|
2080
2079
|
height: "100%"
|
|
2081
2080
|
}
|
|
2082
2081
|
}, [
|
|
2083
|
-
s("div", Fr, [n.$slots.header ? k(n.$slots, "header", { key: 0 }) : (T(), o(t, { key: 1 }, [s("div", Ir, [s("div", Lr, [s("span", Rr, N(e.header), 1), u(
|
|
2082
|
+
s("div", Fr, [n.$slots.header ? k(n.$slots, "header", { key: 0 }) : (T(), o(t, { key: 1 }, [s("div", Ir, [s("div", Lr, [s("span", Rr, N(e.header), 1), u(J, {
|
|
2084
2083
|
"left-icon": "close",
|
|
2085
2084
|
ariaLabel: "Close",
|
|
2086
2085
|
size: "md",
|
|
@@ -2124,12 +2123,12 @@ var Nr = () => ({
|
|
|
2124
2123
|
type: "button",
|
|
2125
2124
|
onClick: () => r(e.label)
|
|
2126
2125
|
}, [s("button", Gr, [
|
|
2127
|
-
e.icon ? (T(), i(
|
|
2126
|
+
e.icon ? (T(), i(K, {
|
|
2128
2127
|
key: 0,
|
|
2129
2128
|
name: e.icon
|
|
2130
2129
|
}, null, 8, ["name"])) : a("", !0),
|
|
2131
2130
|
l(" " + N(e.label) + " ", 1),
|
|
2132
|
-
e.counter ? (T(), i(
|
|
2131
|
+
e.counter ? (T(), i(Le, {
|
|
2133
2132
|
key: 1,
|
|
2134
2133
|
value: e.counter,
|
|
2135
2134
|
variant: c(e) ? "primary" : "tertiary",
|
|
@@ -2166,175 +2165,251 @@ var Nr = () => ({
|
|
|
2166
2165
|
"handle-confirm"
|
|
2167
2166
|
],
|
|
2168
2167
|
setup(e) {
|
|
2169
|
-
return (n, r) => (T(), o("div", Xr, [e.variant === "select-clear" ? (T(), o(t, { key: 0 }, [u(
|
|
2168
|
+
return (n, r) => (T(), o("div", Xr, [e.variant === "select-clear" ? (T(), o(t, { key: 0 }, [u(J, {
|
|
2170
2169
|
variant: "ghost",
|
|
2171
2170
|
"data-testid": "pv-select-menu-item-select-all",
|
|
2172
2171
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
2173
2172
|
label: "Select All",
|
|
2174
2173
|
disabled: e.disabled
|
|
2175
|
-
}, null, 8, ["disabled"]), u(
|
|
2174
|
+
}, null, 8, ["disabled"]), u(J, {
|
|
2176
2175
|
label: "Clear All",
|
|
2177
2176
|
variant: "ghost",
|
|
2178
2177
|
"data-testid": "pv-select-menu-item-clear-all",
|
|
2179
2178
|
onClick: r[1] ||= (e) => n.$emit("handle-clear-all"),
|
|
2180
2179
|
disabled: e.disabled
|
|
2181
|
-
}, null, 8, ["disabled"])], 64)) : e.variant === "cancel-confirm" ? (T(), o(t, { key: 1 }, [u(
|
|
2180
|
+
}, null, 8, ["disabled"])], 64)) : e.variant === "cancel-confirm" ? (T(), o(t, { key: 1 }, [u(J, {
|
|
2182
2181
|
label: "Cancel",
|
|
2183
2182
|
variant: "ghost",
|
|
2184
2183
|
"data-testid": "pv-select-menu-item-cancel",
|
|
2185
2184
|
onClick: r[2] ||= (e) => n.$emit("handle-cancel"),
|
|
2186
2185
|
disabled: e.disabled
|
|
2187
|
-
}, null, 8, ["disabled"]), u(
|
|
2186
|
+
}, null, 8, ["disabled"]), u(J, {
|
|
2188
2187
|
label: "Confirm",
|
|
2189
2188
|
"data-testid": "pv-select-menu-item-confirm",
|
|
2190
2189
|
onClick: r[3] ||= (e) => n.$emit("handle-confirm"),
|
|
2191
2190
|
disabled: e.disabled
|
|
2192
2191
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
2193
2192
|
}
|
|
2194
|
-
}), Qr = ["
|
|
2193
|
+
}), Qr = ["data-style", "data-shape"], $r = ["src", "alt"], ei = /* @__PURE__ */ d({
|
|
2194
|
+
__name: "PvAvatar",
|
|
2195
|
+
props: {
|
|
2196
|
+
alt: {},
|
|
2197
|
+
icon: {},
|
|
2198
|
+
image: {},
|
|
2199
|
+
initials: {},
|
|
2200
|
+
shape: { default: "circle" },
|
|
2201
|
+
size: { default: "lg" },
|
|
2202
|
+
variant: {}
|
|
2203
|
+
},
|
|
2204
|
+
setup(e) {
|
|
2205
|
+
let n = {
|
|
2206
|
+
sm: "pv-avatar-16",
|
|
2207
|
+
md: "pv-avatar-20",
|
|
2208
|
+
lg: "pv-avatar-xs",
|
|
2209
|
+
xl: "pv-avatar-sm",
|
|
2210
|
+
"2x": "pv-avatar-md"
|
|
2211
|
+
}, r = {
|
|
2212
|
+
sm: 10,
|
|
2213
|
+
md: 12,
|
|
2214
|
+
lg: void 0,
|
|
2215
|
+
xl: 20,
|
|
2216
|
+
"2x": 20
|
|
2217
|
+
};
|
|
2218
|
+
return (s, c) => (T(), o("div", {
|
|
2219
|
+
class: y(n[e.size]),
|
|
2220
|
+
"data-testid": "pv-avatar",
|
|
2221
|
+
"data-style": e.variant,
|
|
2222
|
+
"data-shape": e.shape
|
|
2223
|
+
}, [e.icon ? (T(), i(K, {
|
|
2224
|
+
key: 0,
|
|
2225
|
+
name: e.icon,
|
|
2226
|
+
size: r[e.size]
|
|
2227
|
+
}, null, 8, ["name", "size"])) : e.initials ? (T(), o(t, { key: 1 }, [l(N(e.initials), 1)], 64)) : e.image ? (T(), o("img", {
|
|
2228
|
+
key: 2,
|
|
2229
|
+
src: e.image,
|
|
2230
|
+
alt: e.alt ?? ""
|
|
2231
|
+
}, null, 8, $r)) : a("", !0)], 10, Qr));
|
|
2232
|
+
}
|
|
2233
|
+
}), ti = ["disabled"], ni = { class: "pv-flex" }, ri = {
|
|
2195
2234
|
key: 0,
|
|
2196
2235
|
"data-testid": "pv-select-prefix-label",
|
|
2197
2236
|
class: "pv-border-right pv-text-quaternary",
|
|
2198
2237
|
style: { "padding-right": "4px" }
|
|
2199
|
-
},
|
|
2238
|
+
}, ii = { key: 3 }, ai = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
2200
2239
|
__name: "PvSelectButtonTrigger",
|
|
2201
2240
|
props: {
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
disabled: { type: Boolean },
|
|
2241
|
+
avatar: {},
|
|
2242
|
+
companyLogo: {},
|
|
2243
|
+
counterBadgeVariant: {},
|
|
2206
2244
|
counterPosition: {},
|
|
2207
2245
|
counterValue: {},
|
|
2208
|
-
|
|
2209
|
-
prefixLabel: {},
|
|
2210
|
-
label: {},
|
|
2246
|
+
disabled: { type: Boolean },
|
|
2211
2247
|
icon: {},
|
|
2212
|
-
|
|
2248
|
+
inverse: { type: Boolean },
|
|
2249
|
+
isLoading: { type: Boolean },
|
|
2250
|
+
label: {},
|
|
2251
|
+
menuOptionConfig: {},
|
|
2252
|
+
open: { type: Boolean },
|
|
2253
|
+
prefixLabel: {},
|
|
2254
|
+
renderer: {},
|
|
2255
|
+
selectedOption: {},
|
|
2213
2256
|
showClear: { type: Boolean },
|
|
2214
2257
|
showDropdown: {
|
|
2215
2258
|
type: Boolean,
|
|
2216
2259
|
default: !0
|
|
2217
2260
|
},
|
|
2218
|
-
|
|
2219
|
-
|
|
2261
|
+
size: { default: "lg" },
|
|
2262
|
+
variant: { default: "secondary" }
|
|
2220
2263
|
},
|
|
2221
2264
|
emits: ["handle-clear"],
|
|
2222
2265
|
setup(e) {
|
|
2223
|
-
let
|
|
2266
|
+
let n = e, c = r(() => {
|
|
2224
2267
|
let e = [
|
|
2225
2268
|
"pv-flex",
|
|
2226
2269
|
"pv-space-between",
|
|
2227
2270
|
"pv-full-width"
|
|
2228
2271
|
];
|
|
2229
|
-
|
|
2230
|
-
let
|
|
2231
|
-
return
|
|
2272
|
+
n.inverse && ke.includes(n.variant) ? e.push(`pv-button-${n.variant}-inverse`) : e.push(`pv-button-${n.variant}`);
|
|
2273
|
+
let t = je(n.size);
|
|
2274
|
+
return t && e.push(t), e;
|
|
2275
|
+
}), d = r(() => {
|
|
2276
|
+
if (n.selectedOption) return {
|
|
2277
|
+
...n.selectedOption,
|
|
2278
|
+
menuOptionConfig: n.menuOptionConfig,
|
|
2279
|
+
queryText: null,
|
|
2280
|
+
selected: !0
|
|
2281
|
+
};
|
|
2232
2282
|
});
|
|
2233
|
-
return (
|
|
2283
|
+
return (n, r) => (T(), o("button", {
|
|
2234
2284
|
"data-testid": "pv-multi-select-button-trigger",
|
|
2235
|
-
class: y(
|
|
2285
|
+
class: y(c.value),
|
|
2236
2286
|
style: { "--flex-gap": "0.25rem" },
|
|
2237
2287
|
disabled: e.disabled || e.isLoading
|
|
2238
2288
|
}, [
|
|
2239
|
-
s("div",
|
|
2240
|
-
e.prefixLabel ? (T(), o("p",
|
|
2241
|
-
e.counterPosition === "left" && e.counterValue ? (T(), i(
|
|
2289
|
+
s("div", ni, [
|
|
2290
|
+
e.prefixLabel ? (T(), o("p", ri, N(e.prefixLabel), 1)) : a("", !0),
|
|
2291
|
+
e.counterPosition === "left" && e.counterValue ? (T(), i(Le, {
|
|
2242
2292
|
key: 1,
|
|
2243
2293
|
"data-testid": "pv-multi-select-left-counter-badge",
|
|
2244
2294
|
value: e.counterValue,
|
|
2245
2295
|
variant: e.counterBadgeVariant,
|
|
2246
2296
|
size: "sm"
|
|
2247
2297
|
}, null, 8, ["value", "variant"])) : a("", !0),
|
|
2248
|
-
e.
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2298
|
+
!e.isLoading && e.renderer && d.value ? (T(), i(j(e.renderer), b(_({ key: 2 }, d.value)), null, 16)) : (T(), o(t, { key: 3 }, [
|
|
2299
|
+
e.icon ? (T(), i(K, {
|
|
2300
|
+
key: 0,
|
|
2301
|
+
"data-testid": "pv-multi-select-button-icon",
|
|
2302
|
+
name: e.icon
|
|
2303
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
2304
|
+
e.companyLogo ? (T(), i(cr, {
|
|
2305
|
+
key: 1,
|
|
2306
|
+
name: e.companyLogo,
|
|
2307
|
+
size: "sm"
|
|
2308
|
+
}, null, 8, ["name"])) : a("", !0),
|
|
2309
|
+
e.avatar ? (T(), i(ei, {
|
|
2310
|
+
key: 2,
|
|
2311
|
+
class: "pv-select-button-trigger-avatar",
|
|
2312
|
+
"data-testid": "pv-multi-select-button-avatar",
|
|
2313
|
+
initials: e.avatar.initials,
|
|
2314
|
+
image: e.avatar.image,
|
|
2315
|
+
variant: e.avatar.variant,
|
|
2316
|
+
shape: e.avatar.shape,
|
|
2317
|
+
size: "sm"
|
|
2318
|
+
}, null, 8, [
|
|
2319
|
+
"initials",
|
|
2320
|
+
"image",
|
|
2321
|
+
"variant",
|
|
2322
|
+
"shape"
|
|
2323
|
+
])) : a("", !0),
|
|
2324
|
+
e.isLoading || e.label ? (T(), o("span", ii, N(e.isLoading ? "Loading..." : e.label), 1)) : a("", !0)
|
|
2325
|
+
], 64)),
|
|
2326
|
+
e.counterPosition === "right" && e.counterValue ? (T(), i(Le, {
|
|
2327
|
+
key: 4,
|
|
2261
2328
|
"data-testid": "pv-multi-select-right-counter-badge",
|
|
2262
2329
|
value: e.counterValue,
|
|
2263
2330
|
variant: e.counterBadgeVariant,
|
|
2264
2331
|
size: "sm"
|
|
2265
2332
|
}, null, 8, ["value", "variant"])) : a("", !0)
|
|
2266
2333
|
]),
|
|
2267
|
-
e.showDropdown ? (T(), i(
|
|
2334
|
+
e.showDropdown ? (T(), i(K, {
|
|
2268
2335
|
key: 0,
|
|
2269
2336
|
name: e.open ? "chevron-up" : "chevron-down"
|
|
2270
2337
|
}, null, 8, ["name"])) : a("", !0),
|
|
2271
|
-
e.showClear ? (T(), i(
|
|
2338
|
+
e.showClear ? (T(), i(Ye, {
|
|
2272
2339
|
key: 1,
|
|
2273
2340
|
size: "sm",
|
|
2274
2341
|
variant: "dark",
|
|
2275
2342
|
"tooltip-position": "top-left"
|
|
2276
2343
|
}, {
|
|
2277
|
-
label:
|
|
2344
|
+
label: H(() => [u(K, {
|
|
2278
2345
|
name: "close",
|
|
2279
|
-
onClick: r[0] ||=
|
|
2346
|
+
onClick: r[0] ||= W((e) => n.$emit("handle-clear"), ["stop"])
|
|
2280
2347
|
})]),
|
|
2281
|
-
"tooltip-content":
|
|
2348
|
+
"tooltip-content": H(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2282
2349
|
_: 1
|
|
2283
2350
|
})) : a("", !0)
|
|
2284
|
-
], 10,
|
|
2351
|
+
], 10, ti));
|
|
2285
2352
|
}
|
|
2286
|
-
}),
|
|
2287
|
-
function
|
|
2288
|
-
return T(), o("div",
|
|
2353
|
+
}), [["__scopeId", "data-v-37e53973"]]), oi = {}, si = { class: "pv-text-subdued pv-text-center pv-text-body-md pv-inset-square-12" };
|
|
2354
|
+
function ci(e, t) {
|
|
2355
|
+
return T(), o("div", si, "No Results Found");
|
|
2289
2356
|
}
|
|
2290
|
-
var
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2357
|
+
var li = /* @__PURE__ */ q(oi, [["render", ci]]);
|
|
2358
|
+
//#endregion
|
|
2359
|
+
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
2360
|
+
function ui(e) {
|
|
2361
|
+
return !!e.children?.length || (e.totalChildCount ?? 0) > 0;
|
|
2362
|
+
}
|
|
2363
|
+
function di(e) {
|
|
2364
|
+
return e.flatMap((e) => e.children?.length ? di(e.children) : (e.totalChildCount ?? 0) > 0 ? [] : [e]);
|
|
2365
|
+
}
|
|
2366
|
+
function fi(e, t) {
|
|
2367
|
+
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2368
|
+
return r.length > 0 ? [...e, ...r] : e;
|
|
2369
|
+
}
|
|
2370
|
+
function pi(e, t) {
|
|
2371
|
+
let n = (e) => {
|
|
2372
|
+
let r = 0, i = 0, a = 0;
|
|
2373
|
+
for (let o of e) if (o.children?.length) {
|
|
2374
|
+
let e = n(o.children);
|
|
2375
|
+
r += e.leafCount, i += e.selectedLeafCount, e.leafCount > 0 && e.leafCount === e.selectedLeafCount ? a += 1 : a += e.displayCount;
|
|
2376
|
+
} else r += 1, t.has(o.id) && (i += 1, a += 1);
|
|
2377
|
+
return {
|
|
2378
|
+
leafCount: r,
|
|
2379
|
+
selectedLeafCount: i,
|
|
2380
|
+
displayCount: a
|
|
2313
2381
|
};
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
}
|
|
2382
|
+
};
|
|
2383
|
+
return n(e).displayCount;
|
|
2384
|
+
}
|
|
2385
|
+
function mi(e) {
|
|
2386
|
+
return e.filter((e) => e.state === "selected").length;
|
|
2387
|
+
}
|
|
2388
|
+
function hi(e, t, n = !0) {
|
|
2389
|
+
return e.flatMap((e) => {
|
|
2390
|
+
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
2391
|
+
if (e.children?.length) {
|
|
2392
|
+
let r = hi(e.children, t, n);
|
|
2393
|
+
if (r.length) return n ? [{
|
|
2394
|
+
...e,
|
|
2395
|
+
children: r
|
|
2396
|
+
}] : r;
|
|
2397
|
+
}
|
|
2398
|
+
return [];
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
//#endregion
|
|
2402
|
+
//#region src/components/base/PvMenu/items/PvMenuBaseItem.vue?vue&type=script&setup=true&lang.ts
|
|
2403
|
+
var gi = {
|
|
2329
2404
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
2330
2405
|
style: {
|
|
2331
2406
|
"align-items": "flex-start",
|
|
2332
2407
|
"--flex-gap": "0"
|
|
2333
2408
|
}
|
|
2334
|
-
},
|
|
2409
|
+
}, _i = ["title"], vi = ["title"], yi = {
|
|
2335
2410
|
key: 4,
|
|
2336
2411
|
class: "pv-text-subdued pv-text-body-md"
|
|
2337
|
-
},
|
|
2412
|
+
}, bi = /* @__PURE__ */ d({
|
|
2338
2413
|
inheritAttrs: !1,
|
|
2339
2414
|
__name: "PvMenuBaseItem",
|
|
2340
2415
|
props: {
|
|
@@ -2371,16 +2446,23 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2371
2446
|
};
|
|
2372
2447
|
return C(() => {
|
|
2373
2448
|
p();
|
|
2374
|
-
}),
|
|
2449
|
+
}), V(() => n.queryText, () => {
|
|
2375
2450
|
p();
|
|
2376
2451
|
}), (n, r) => (T(), o(t, null, [
|
|
2377
|
-
e.avatar ? (T(), i(
|
|
2452
|
+
e.avatar ? (T(), i(ei, {
|
|
2378
2453
|
key: 0,
|
|
2379
2454
|
initials: e.avatar.initials,
|
|
2380
2455
|
image: e.avatar.image,
|
|
2456
|
+
variant: e.avatar.variant,
|
|
2457
|
+
shape: e.avatar.shape,
|
|
2381
2458
|
size: "lg"
|
|
2382
|
-
}, null, 8, [
|
|
2383
|
-
|
|
2459
|
+
}, null, 8, [
|
|
2460
|
+
"initials",
|
|
2461
|
+
"image",
|
|
2462
|
+
"variant",
|
|
2463
|
+
"shape"
|
|
2464
|
+
])) : a("", !0),
|
|
2465
|
+
e.icon ? (T(), i(K, {
|
|
2384
2466
|
key: 1,
|
|
2385
2467
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
2386
2468
|
name: e.icon
|
|
@@ -2390,7 +2472,7 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2390
2472
|
name: e.companyName,
|
|
2391
2473
|
size: "sm"
|
|
2392
2474
|
}, null, 8, ["name"])) : a("", !0),
|
|
2393
|
-
s("div",
|
|
2475
|
+
s("div", gi, [s("span", {
|
|
2394
2476
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
2395
2477
|
title: e.text
|
|
2396
2478
|
}, [s("span", {
|
|
@@ -2400,7 +2482,7 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2400
2482
|
key: 0,
|
|
2401
2483
|
class: y({ "pv-text-subdued": !e.disabled }),
|
|
2402
2484
|
style: { "padding-left": "4px" }
|
|
2403
|
-
}, N(e.subduedText), 3)) : a("", !0)], 8,
|
|
2485
|
+
}, N(e.subduedText), 3)) : a("", !0)], 8, _i), u.value ? (T(), o("span", {
|
|
2404
2486
|
key: 0,
|
|
2405
2487
|
ref_key: "subText",
|
|
2406
2488
|
ref: l,
|
|
@@ -2411,19 +2493,19 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2411
2493
|
{ "pv-text-subdued": !e.disabled }
|
|
2412
2494
|
]),
|
|
2413
2495
|
title: u.value
|
|
2414
|
-
}, N(u.value), 11,
|
|
2415
|
-
e.secondaryText && typeof e.secondaryText == "number" ? (T(), i(
|
|
2496
|
+
}, N(u.value), 11, vi)) : a("", !0)]),
|
|
2497
|
+
e.secondaryText && typeof e.secondaryText == "number" ? (T(), i(Le, {
|
|
2416
2498
|
key: 3,
|
|
2417
2499
|
value: e.secondaryText,
|
|
2418
2500
|
variant: e.menuOptionConfig?.counterBadgeVariant
|
|
2419
|
-
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (T(), o("span",
|
|
2501
|
+
}, null, 8, ["value", "variant"])) : e.secondaryText && typeof e.secondaryText == "string" ? (T(), o("span", yi, N(e.secondaryText), 1)) : a("", !0)
|
|
2420
2502
|
], 64));
|
|
2421
2503
|
}
|
|
2422
|
-
}),
|
|
2504
|
+
}), xi = ["for"], Si = { key: 0 }, Ci = [
|
|
2423
2505
|
"disabled",
|
|
2424
2506
|
"aria-label",
|
|
2425
2507
|
"id"
|
|
2426
|
-
],
|
|
2508
|
+
], wi = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
2427
2509
|
__name: "PvSwitch",
|
|
2428
2510
|
props: /* @__PURE__ */ g({
|
|
2429
2511
|
size: { default: "md" },
|
|
@@ -2455,16 +2537,16 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2455
2537
|
"pv-input-xsmall": e.size === "sm",
|
|
2456
2538
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2457
2539
|
}])
|
|
2458
|
-
}, [e.label ? (T(), o("span",
|
|
2540
|
+
}, [e.label ? (T(), o("span", Si, N(e.label), 1)) : a("", !0), U(s("input", {
|
|
2459
2541
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2460
2542
|
disabled: e.disabled,
|
|
2461
2543
|
"aria-label": e.ariaLabel,
|
|
2462
2544
|
type: "checkbox",
|
|
2463
2545
|
role: "switch",
|
|
2464
2546
|
id: P(t)
|
|
2465
|
-
}, null, 8,
|
|
2547
|
+
}, null, 8, Ci), [[R, n.value]])], 10, xi));
|
|
2466
2548
|
}
|
|
2467
|
-
}), [["__scopeId", "data-v-73e6d2b2"]]),
|
|
2549
|
+
}), [["__scopeId", "data-v-73e6d2b2"]]), Ti = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
2468
2550
|
__name: "PvMenuItemAction",
|
|
2469
2551
|
props: {
|
|
2470
2552
|
action: {},
|
|
@@ -2479,11 +2561,11 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2479
2561
|
useTeleport: !0,
|
|
2480
2562
|
variant: "white"
|
|
2481
2563
|
}, c({
|
|
2482
|
-
trigger:
|
|
2564
|
+
trigger: H(() => [u(J, {
|
|
2483
2565
|
variant: "ghost",
|
|
2484
2566
|
class: y(["pv-text-brand", { "pv-menu-action-button": !l.value }]),
|
|
2485
2567
|
leftIcon: n.value,
|
|
2486
|
-
onClick:
|
|
2568
|
+
onClick: W(d, ["stop"]),
|
|
2487
2569
|
disabled: a.value
|
|
2488
2570
|
}, null, 8, [
|
|
2489
2571
|
"leftIcon",
|
|
@@ -2493,60 +2575,17 @@ var oi = /* @__PURE__ */ J(ri, [["render", ai]]), si = ["data-style"], ci = ["sr
|
|
|
2493
2575
|
_: 2
|
|
2494
2576
|
}, [o.value ? {
|
|
2495
2577
|
name: "content",
|
|
2496
|
-
fn:
|
|
2578
|
+
fn: H(() => [s("div", null, N(o.value), 1)]),
|
|
2497
2579
|
key: "0"
|
|
2498
2580
|
} : void 0]), 1024));
|
|
2499
2581
|
}
|
|
2500
|
-
}), [["__scopeId", "data-v-34f9d0e4"]])
|
|
2501
|
-
//#endregion
|
|
2502
|
-
//#region src/components/base/PvMenu/cascadeUtils.ts
|
|
2503
|
-
function bi(e) {
|
|
2504
|
-
return e.flatMap((e) => e.children?.length ? bi(e.children) : [e]);
|
|
2505
|
-
}
|
|
2506
|
-
function xi(e, t) {
|
|
2507
|
-
let n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
2508
|
-
return r.length > 0 ? [...e, ...r] : e;
|
|
2509
|
-
}
|
|
2510
|
-
function Si(e, t) {
|
|
2511
|
-
let n = (e) => {
|
|
2512
|
-
let r = 0, i = 0, a = 0;
|
|
2513
|
-
for (let o of e) if (o.children?.length) {
|
|
2514
|
-
let e = n(o.children);
|
|
2515
|
-
r += e.leafCount, i += e.selectedLeafCount, e.leafCount > 0 && e.leafCount === e.selectedLeafCount ? a += 1 : a += e.displayCount;
|
|
2516
|
-
} else r += 1, t.has(o.id) && (i += 1, a += 1);
|
|
2517
|
-
return {
|
|
2518
|
-
leafCount: r,
|
|
2519
|
-
selectedLeafCount: i,
|
|
2520
|
-
displayCount: a
|
|
2521
|
-
};
|
|
2522
|
-
};
|
|
2523
|
-
return n(e).displayCount;
|
|
2524
|
-
}
|
|
2525
|
-
function Ci(e) {
|
|
2526
|
-
return e.filter((e) => e.state === "selected").length;
|
|
2527
|
-
}
|
|
2528
|
-
function wi(e, t, n = !0) {
|
|
2529
|
-
return e.flatMap((e) => {
|
|
2530
|
-
if (e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)) return [e];
|
|
2531
|
-
if (e.children?.length) {
|
|
2532
|
-
let r = wi(e.children, t, n);
|
|
2533
|
-
if (r.length) return n ? [{
|
|
2534
|
-
...e,
|
|
2535
|
-
children: r
|
|
2536
|
-
}] : r;
|
|
2537
|
-
}
|
|
2538
|
-
return [];
|
|
2539
|
-
});
|
|
2540
|
-
}
|
|
2541
|
-
//#endregion
|
|
2542
|
-
//#region src/components/base/PvMenu/symbols.ts
|
|
2543
|
-
var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), Di = Symbol("OriginalOptionsMapKey"), Oi = Symbol("CascadeSelectedParentIdsKey"), ki = Symbol("CascadeDeselectedChildIdsKey"), Ai = Symbol("ParentSelectsAllChildrenKey"), ji = Symbol("EnableChildExpansionKey"), Mi = ["data-testid"], Ni = [
|
|
2582
|
+
}), [["__scopeId", "data-v-34f9d0e4"]]), Ei = Symbol("SelectedItemsKey"), Di = Symbol("EnableCascadeSelectionKey"), Oi = Symbol("OriginalOptionsMapKey"), ki = Symbol("CascadeSelectedParentIdsKey"), Ai = Symbol("CascadeDeselectedChildIdsKey"), ji = Symbol("ParentSelectsAllChildrenKey"), Mi = Symbol("EnableChildExpansionKey"), Ni = ["data-testid"], Pi = [
|
|
2544
2583
|
"hidden",
|
|
2545
2584
|
"type",
|
|
2546
2585
|
"checked",
|
|
2547
2586
|
"indeterminate",
|
|
2548
2587
|
"disabled"
|
|
2549
|
-
],
|
|
2588
|
+
], Fi = ["aria-label", "aria-expanded"], Ii = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
2550
2589
|
__name: "PvMenuItemVariant",
|
|
2551
2590
|
props: {
|
|
2552
2591
|
selected: { type: Boolean },
|
|
@@ -2578,17 +2617,17 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2578
2617
|
},
|
|
2579
2618
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2580
2619
|
setup(e, { emit: t }) {
|
|
2581
|
-
let n = e, c =
|
|
2582
|
-
if (!d.value || !n
|
|
2583
|
-
let e =
|
|
2620
|
+
let n = e, c = L("inputRef"), l = m(Ei, void 0), d = m(Di, D(!1)), p = m(Oi, void 0), h = m(ki, void 0), g = r(() => {
|
|
2621
|
+
if (!d.value || !ui(n)) return [];
|
|
2622
|
+
let e = n.children ? di(n.children) : [];
|
|
2584
2623
|
if (p?.value) {
|
|
2585
2624
|
let t = p.value.get(n.id);
|
|
2586
|
-
return
|
|
2625
|
+
return fi(t?.children ? di(t.children) : [], e);
|
|
2587
2626
|
}
|
|
2588
2627
|
return e;
|
|
2589
2628
|
}), S = r(() => {
|
|
2590
2629
|
if (!l?.value) return n.selected ?? !1;
|
|
2591
|
-
if (d.value && n
|
|
2630
|
+
if (d.value && ui(n)) {
|
|
2592
2631
|
let e = g.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
2593
2632
|
if (h?.value?.has(n.id) && r >= t) return !0;
|
|
2594
2633
|
let i = n.totalChildCount ?? t;
|
|
@@ -2596,7 +2635,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2596
2635
|
}
|
|
2597
2636
|
return l.value.some((e) => e.id === n.id);
|
|
2598
2637
|
}), C = r(() => {
|
|
2599
|
-
if (!l?.value || !d.value || !n
|
|
2638
|
+
if (!l?.value || !d.value || !ui(n)) return n.indeterminate ?? !1;
|
|
2600
2639
|
let e = g.value, t = e.length, r = e.filter((e) => l.value.some((t) => t.id === e.id)).length;
|
|
2601
2640
|
if (h?.value?.has(n.id) && r >= t) return !1;
|
|
2602
2641
|
let i = n.totalChildCount ?? t;
|
|
@@ -2640,8 +2679,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2640
2679
|
class: y(N.value),
|
|
2641
2680
|
disabled: e.disabled,
|
|
2642
2681
|
onChange: I
|
|
2643
|
-
}, null, 42,
|
|
2644
|
-
e.menuOptionConfig?.renderer ? (T(), i(j(e.menuOptionConfig?.renderer), b(_({ key: 0 }, t.$props)), null, 16)) : (T(), i(
|
|
2682
|
+
}, null, 42, Pi),
|
|
2683
|
+
e.menuOptionConfig?.renderer ? (T(), i(j(e.menuOptionConfig?.renderer), b(_({ key: 0 }, t.$props)), null, 16)) : (T(), i(bi, _({ key: 1 }, O.value, {
|
|
2645
2684
|
menuOptionConfig: e.menuOptionConfig,
|
|
2646
2685
|
queryText: e.queryText,
|
|
2647
2686
|
highlightSearchText: e.highlightSearchText
|
|
@@ -2650,12 +2689,12 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2650
2689
|
"queryText",
|
|
2651
2690
|
"highlightSearchText"
|
|
2652
2691
|
])),
|
|
2653
|
-
e.menuOptionConfig?.variant === "checkmark" && S.value ? (T(), i(
|
|
2692
|
+
e.menuOptionConfig?.variant === "checkmark" && S.value ? (T(), i(K, {
|
|
2654
2693
|
key: 2,
|
|
2655
2694
|
name: "check",
|
|
2656
2695
|
class: "pv-text-success"
|
|
2657
2696
|
})) : a("", !0),
|
|
2658
|
-
e.menuOptionConfig?.variant === "toggle" ? (T(), i(
|
|
2697
|
+
e.menuOptionConfig?.variant === "toggle" ? (T(), i(wi, {
|
|
2659
2698
|
key: 3,
|
|
2660
2699
|
modelValue: S.value,
|
|
2661
2700
|
ariaLabel: n.text || "Toggle",
|
|
@@ -2663,7 +2702,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2663
2702
|
hideCheckIcon: "",
|
|
2664
2703
|
style: { "pointer-events": "none" }
|
|
2665
2704
|
}, null, 8, ["modelValue", "ariaLabel"])) : a("", !0),
|
|
2666
|
-
e.menuOptionConfig?.action ? (T(), i(
|
|
2705
|
+
e.menuOptionConfig?.action ? (T(), i(Ti, {
|
|
2667
2706
|
key: 4,
|
|
2668
2707
|
action: e.menuOptionConfig?.action,
|
|
2669
2708
|
option: n
|
|
@@ -2674,14 +2713,14 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2674
2713
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2675
2714
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2676
2715
|
"aria-expanded": e.expanded,
|
|
2677
|
-
onClick: r[0] ||=
|
|
2678
|
-
}, [u(
|
|
2716
|
+
onClick: r[0] ||= W((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2717
|
+
}, [u(K, {
|
|
2679
2718
|
name: e.chevronIcon ?? "chevron-right",
|
|
2680
2719
|
size: 12
|
|
2681
|
-
}, null, 8, ["name"])], 8,
|
|
2682
|
-
], 14,
|
|
2720
|
+
}, null, 8, ["name"])], 8, Fi)) : a("", !0)
|
|
2721
|
+
], 14, Ni));
|
|
2683
2722
|
}
|
|
2684
|
-
}), [["__scopeId", "data-v-
|
|
2723
|
+
}), [["__scopeId", "data-v-f7eaa571"]]), Li = ["data-active"], Ri = { key: 0 }, zi = 4, Bi = /* @__PURE__ */ d({
|
|
2685
2724
|
inheritAttrs: !1,
|
|
2686
2725
|
__name: "PvMenuItem",
|
|
2687
2726
|
props: /* @__PURE__ */ g({
|
|
@@ -2713,8 +2752,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2713
2752
|
}),
|
|
2714
2753
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2715
2754
|
setup(e, { emit: n }) {
|
|
2716
|
-
let i = e, s = m(
|
|
2717
|
-
|
|
2755
|
+
let i = e, s = m(Ei, void 0), c = I(e, "selectedIds"), l = m(Mi, D(!1)), d = m(ji, D(!1)), f = m(ki, void 0), p = m(Ai, void 0), h = D(i.defaultExpanded ?? !1), g = D(!1), v = D(!1), b = D(i.children ?? []), S = D(/* @__PURE__ */ new Set());
|
|
2756
|
+
V(() => i.children, (e) => {
|
|
2718
2757
|
if (!e) {
|
|
2719
2758
|
b.value = [];
|
|
2720
2759
|
return;
|
|
@@ -2727,10 +2766,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2727
2766
|
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), E = r(() => {
|
|
2728
2767
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2729
2768
|
return r;
|
|
2730
|
-
}), k = r(() => (
|
|
2769
|
+
}), k = r(() => ui({
|
|
2770
|
+
...i,
|
|
2771
|
+
children: b.value
|
|
2772
|
+
}) && i.level < zi), j = r(() => k.value ? l.value ? h.value : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), F = n, ee = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), L = async () => {
|
|
2731
2773
|
if (g.value) return;
|
|
2732
2774
|
if (!i.handleSeeMore) {
|
|
2733
|
-
|
|
2775
|
+
F("see-more", {
|
|
2734
2776
|
parentId: i.id,
|
|
2735
2777
|
offset: b.value.length
|
|
2736
2778
|
});
|
|
@@ -2762,7 +2804,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2762
2804
|
} finally {
|
|
2763
2805
|
g.value = !1;
|
|
2764
2806
|
}
|
|
2765
|
-
},
|
|
2807
|
+
}, R = (e) => {
|
|
2766
2808
|
if (l.value && k.value && e.option.id === i.id && !d.value) {
|
|
2767
2809
|
C();
|
|
2768
2810
|
return;
|
|
@@ -2771,13 +2813,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2771
2813
|
let t = c.value.indexOf(e.option.id);
|
|
2772
2814
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2773
2815
|
}
|
|
2774
|
-
|
|
2775
|
-
},
|
|
2776
|
-
|
|
2816
|
+
F("handle-selected", e);
|
|
2817
|
+
}, z = (e) => {
|
|
2818
|
+
F("handle-selected", e);
|
|
2777
2819
|
};
|
|
2778
2820
|
return (n, r) => {
|
|
2779
2821
|
let s = A("PvMenuItem", !0);
|
|
2780
|
-
return T(), o(t, null, [u(
|
|
2822
|
+
return T(), o(t, null, [u(Ii, _(E.value, {
|
|
2781
2823
|
children: b.value,
|
|
2782
2824
|
menuOptionConfig: e.config,
|
|
2783
2825
|
queryText: e.queryText,
|
|
@@ -2785,7 +2827,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2785
2827
|
showChevron: P(l) && k.value,
|
|
2786
2828
|
chevronIcon: M.value,
|
|
2787
2829
|
expanded: h.value,
|
|
2788
|
-
onHandleSelected:
|
|
2830
|
+
onHandleSelected: R,
|
|
2789
2831
|
onToggleExpanded: C,
|
|
2790
2832
|
selected: N(i)
|
|
2791
2833
|
}), null, 16, [
|
|
@@ -2801,41 +2843,39 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2801
2843
|
key: 0,
|
|
2802
2844
|
role: "list",
|
|
2803
2845
|
style: x(w.value)
|
|
2804
|
-
}, [(T(!0), o(t, null, O(b.value, (t) =>
|
|
2846
|
+
}, [(T(!0), o(t, null, O(b.value, (t) => (T(), o("li", {
|
|
2805
2847
|
key: t.id,
|
|
2806
2848
|
"data-active": N(t) ? "true" : null,
|
|
2807
2849
|
class: y(e.itemClass)
|
|
2808
2850
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
2809
|
-
disabled: i.disabled || t.disabled,
|
|
2810
2851
|
selectedIds: c.value,
|
|
2811
2852
|
"onUpdate:selectedIds": r[0] ||= (e) => c.value = e,
|
|
2812
2853
|
config: t.config ?? e.config,
|
|
2813
2854
|
queryText: e.queryText,
|
|
2814
2855
|
highlightSearchText: e.highlightSearchText,
|
|
2815
2856
|
level: e.level + 1,
|
|
2816
|
-
onHandleSelected:
|
|
2817
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2857
|
+
onHandleSelected: z,
|
|
2858
|
+
onSeeMore: r[1] ||= (e) => F("see-more", e)
|
|
2818
2859
|
}), null, 16, [
|
|
2819
|
-
"disabled",
|
|
2820
2860
|
"selectedIds",
|
|
2821
2861
|
"config",
|
|
2822
2862
|
"queryText",
|
|
2823
2863
|
"highlightSearchText",
|
|
2824
2864
|
"level"
|
|
2825
|
-
])], 10,
|
|
2865
|
+
])], 10, Li))), 128)), ee.value ? (T(), o("li", Ri, [u(J, {
|
|
2826
2866
|
class: "pv-text-brand",
|
|
2827
2867
|
variant: "ghost",
|
|
2828
2868
|
label: "See more",
|
|
2829
2869
|
loading: g.value,
|
|
2830
2870
|
"data-testid": "pv-menu-item-see-more",
|
|
2831
|
-
onClick:
|
|
2871
|
+
onClick: L
|
|
2832
2872
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
2833
2873
|
};
|
|
2834
2874
|
}
|
|
2835
|
-
}),
|
|
2875
|
+
}), Vi = {
|
|
2836
2876
|
role: "list",
|
|
2837
2877
|
class: "pv-popover-list"
|
|
2838
|
-
},
|
|
2878
|
+
}, Hi = ["data-active", "data-testid"], Ui = { key: 0 }, Wi = /* @__PURE__ */ d({
|
|
2839
2879
|
__name: "PvMenu",
|
|
2840
2880
|
props: /* @__PURE__ */ g({
|
|
2841
2881
|
options: {},
|
|
@@ -2844,10 +2884,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2844
2884
|
itemTestId: {},
|
|
2845
2885
|
itemClass: {},
|
|
2846
2886
|
isLoading: { type: Boolean },
|
|
2887
|
+
isSeeMoreLoading: { type: Boolean },
|
|
2847
2888
|
singleSelect: { type: Boolean },
|
|
2848
2889
|
enableCascadeSelection: { type: Boolean },
|
|
2849
|
-
hasMoreOptions: { type: Boolean }
|
|
2850
|
-
readOnly: { type: Boolean }
|
|
2890
|
+
hasMoreOptions: { type: Boolean }
|
|
2851
2891
|
}, {
|
|
2852
2892
|
selectedItems: { default: () => [] },
|
|
2853
2893
|
selectedItemsModifiers: {}
|
|
@@ -2855,21 +2895,20 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2855
2895
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2856
2896
|
setup(e, { emit: n }) {
|
|
2857
2897
|
let i = e, s = n, c = I(e, "selectedItems"), l = M(c.value);
|
|
2858
|
-
|
|
2898
|
+
V(c, (e) => {
|
|
2859
2899
|
l.value = e;
|
|
2860
|
-
}),
|
|
2900
|
+
}), V(l, (e) => {
|
|
2861
2901
|
e !== c.value && (c.value = e);
|
|
2862
|
-
}), E(
|
|
2863
|
-
let d = m(
|
|
2864
|
-
if (i.readOnly) return;
|
|
2902
|
+
}), E(Ei, l), E(Di, r(() => !!i.enableCascadeSelection));
|
|
2903
|
+
let d = m(Oi, void 0), f = m(ji, D(!1)), p = m(ki, void 0), h = m(Ai, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
2865
2904
|
let t = e.option, n;
|
|
2866
|
-
if (i.enableCascadeSelection && t
|
|
2905
|
+
if (i.enableCascadeSelection && ui(t)) {
|
|
2867
2906
|
let e;
|
|
2868
2907
|
if (f.value && d?.value) {
|
|
2869
2908
|
let n = d.value.get(t.id);
|
|
2870
|
-
e =
|
|
2871
|
-
} else e =
|
|
2872
|
-
let r = e.map((e) => e.id), i = l.value, a = r.some((e) => i.some((t) => t.id === e));
|
|
2909
|
+
e = fi(n?.children ? di(n.children) : [], t.children ? di(t.children) : []);
|
|
2910
|
+
} else e = t.children ? di(t.children) : [];
|
|
2911
|
+
let r = e.map((e) => e.id), i = l.value, a = (p?.value?.has(t.id) ?? !1) || r.some((e) => i.some((t) => t.id === e));
|
|
2873
2912
|
if (n = a ? i.filter((e) => !r.includes(e.id)) : [...i, ...e], p?.value) {
|
|
2874
2913
|
let e = new Set(p.value);
|
|
2875
2914
|
a ? e.delete(t.id) : e.add(t.id), p.value = e;
|
|
@@ -2885,7 +2924,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2885
2924
|
let n = e > -1;
|
|
2886
2925
|
for (let e of p.value) {
|
|
2887
2926
|
let r = d?.value?.get(e)?.children ?? i.options.find((t) => t.id === e)?.children;
|
|
2888
|
-
if (!r || !(
|
|
2927
|
+
if (!r || !(di(r).some((e) => e.id === t.id) || i.options.find((t) => t.id === e)?.children?.some((e) => e.id === t.id))) continue;
|
|
2889
2928
|
let a = new Map(h.value), o = new Set(a.get(e) ?? []);
|
|
2890
2929
|
n ? o.add(t.id) : o.delete(t.id), o.size > 0 ? a.set(e, o) : a.delete(e), h.value = a;
|
|
2891
2930
|
break;
|
|
@@ -2896,60 +2935,60 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2896
2935
|
}, b = r(() => new Set(l.value.map((e) => e.id))), x = (e) => {
|
|
2897
2936
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
2898
2937
|
return !1;
|
|
2899
|
-
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) =>
|
|
2900
|
-
return (n, r) => (T(), o("ul",
|
|
2938
|
+
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => t ? S(e) === !0 : !0;
|
|
2939
|
+
return (n, r) => (T(), o("ul", Vi, [(T(!0), o(t, null, O(e.options, (t) => U((T(), o("li", {
|
|
2901
2940
|
key: t.id,
|
|
2902
2941
|
"data-active": S(t),
|
|
2903
2942
|
"data-testid": e.itemTestId,
|
|
2904
2943
|
class: y(e.itemClass)
|
|
2905
|
-
}, [u(
|
|
2906
|
-
disabled: i.readOnly || t.disabled,
|
|
2944
|
+
}, [u(Bi, _({ ref_for: !0 }, t, {
|
|
2907
2945
|
config: e.config,
|
|
2908
2946
|
itemClass: e.itemClass,
|
|
2909
2947
|
queryText: e.queryText,
|
|
2910
2948
|
onHandleSelected: v,
|
|
2911
2949
|
onSeeMore: r[0] ||= (e) => s("see-more", e)
|
|
2912
2950
|
}), null, 16, [
|
|
2913
|
-
"disabled",
|
|
2914
2951
|
"config",
|
|
2915
2952
|
"itemClass",
|
|
2916
2953
|
"queryText"
|
|
2917
|
-
])], 10,
|
|
2954
|
+
])], 10, Hi)), [[ne, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (T(), o("li", Ui, [u(J, {
|
|
2918
2955
|
class: "pv-text-brand",
|
|
2919
2956
|
variant: "ghost",
|
|
2920
2957
|
label: "See more",
|
|
2958
|
+
loading: e.isSeeMoreLoading,
|
|
2959
|
+
disabled: e.isSeeMoreLoading,
|
|
2921
2960
|
"data-testid": "pv-menu-see-more",
|
|
2922
2961
|
onClick: r[1] ||= (e) => s("see-more", { parentId: void 0 })
|
|
2923
|
-
})])) : a("", !0)]));
|
|
2962
|
+
}, null, 8, ["loading", "disabled"])])) : a("", !0)]));
|
|
2924
2963
|
}
|
|
2925
|
-
}),
|
|
2964
|
+
}), Gi = {
|
|
2926
2965
|
key: 0,
|
|
2927
2966
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
2928
|
-
},
|
|
2967
|
+
}, Ki = {
|
|
2929
2968
|
key: 1,
|
|
2930
2969
|
class: "pv-inset-square-8"
|
|
2931
|
-
},
|
|
2970
|
+
}, qi = {
|
|
2932
2971
|
key: 1,
|
|
2933
2972
|
class: "pv-text-body-sm pv-inset-inline",
|
|
2934
2973
|
style: {
|
|
2935
2974
|
color: "#89989b",
|
|
2936
2975
|
"--inset-size": "8px"
|
|
2937
2976
|
}
|
|
2938
|
-
},
|
|
2977
|
+
}, Ji = {
|
|
2939
2978
|
key: 2,
|
|
2940
2979
|
class: "pv-border-top",
|
|
2941
2980
|
style: { margin: "8px 0" }
|
|
2942
|
-
},
|
|
2981
|
+
}, Yi = {
|
|
2943
2982
|
key: 3,
|
|
2944
2983
|
class: "pv-flex pv-inset-square-8",
|
|
2945
2984
|
style: { "justify-content": "center" }
|
|
2946
|
-
},
|
|
2985
|
+
}, Xi = {
|
|
2947
2986
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
2948
2987
|
style: {
|
|
2949
2988
|
"--flex-justify": "space-between",
|
|
2950
2989
|
"--bottom": "0"
|
|
2951
2990
|
}
|
|
2952
|
-
},
|
|
2991
|
+
}, Zi = /* @__PURE__ */ d({
|
|
2953
2992
|
__name: "PvMultiSelectButton",
|
|
2954
2993
|
props: /* @__PURE__ */ g({
|
|
2955
2994
|
companyLogo: {},
|
|
@@ -2970,10 +3009,6 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2970
3009
|
default: !1
|
|
2971
3010
|
},
|
|
2972
3011
|
disabled: { type: Boolean },
|
|
2973
|
-
readOnly: {
|
|
2974
|
-
type: Boolean,
|
|
2975
|
-
default: !1
|
|
2976
|
-
},
|
|
2977
3012
|
enableCascadeSelection: {
|
|
2978
3013
|
type: Boolean,
|
|
2979
3014
|
default: !1
|
|
@@ -2987,6 +3022,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
2987
3022
|
},
|
|
2988
3023
|
icon: {},
|
|
2989
3024
|
isLoading: { type: Boolean },
|
|
3025
|
+
isSeeMoreLoading: { type: Boolean },
|
|
2990
3026
|
hasMoreOptions: { type: Boolean },
|
|
2991
3027
|
label: { default: "Select" },
|
|
2992
3028
|
menuActionsVariant: { default: "select-clear" },
|
|
@@ -3040,10 +3076,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3040
3076
|
};
|
|
3041
3077
|
return t(c.options), e;
|
|
3042
3078
|
}), f = M(/* @__PURE__ */ new Set()), m = M(/* @__PURE__ */ new Map());
|
|
3043
|
-
E(
|
|
3079
|
+
E(Oi, d), E(ki, f), E(Ai, m), E(ji, r(() => c.parentSelectsAllChildren)), E(Mi, r(() => !!c.enableChildExpansion));
|
|
3044
3080
|
let g = n, y = r(() => {
|
|
3045
3081
|
let e = /* @__PURE__ */ new Map();
|
|
3046
|
-
for (let [t, n] of d.value) n
|
|
3082
|
+
for (let [t, n] of d.value) ui(n) && e.set(t, n.children ? di(n.children) : []);
|
|
3047
3083
|
return e;
|
|
3048
3084
|
}), S = () => {
|
|
3049
3085
|
let e = /* @__PURE__ */ new Set();
|
|
@@ -3062,25 +3098,25 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3062
3098
|
state: "deselected"
|
|
3063
3099
|
}))), t.push(r);
|
|
3064
3100
|
}
|
|
3065
|
-
for (let n of
|
|
3101
|
+
for (let n of G.value) e.has(n.id) || t.push({
|
|
3066
3102
|
id: n.id,
|
|
3067
3103
|
state: "selected"
|
|
3068
3104
|
});
|
|
3069
3105
|
return t;
|
|
3070
3106
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3071
|
-
if (c.enableCascadeSelection && c.countSelectedParents && z.value?.length) return
|
|
3072
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
3073
|
-
let e = new Set(
|
|
3074
|
-
return
|
|
3075
|
-
}), D = r(() =>
|
|
3107
|
+
if (c.enableCascadeSelection && c.countSelectedParents && z.value?.length) return mi(z.value);
|
|
3108
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return G.value.length;
|
|
3109
|
+
let e = new Set(G.value.map((e) => e.id));
|
|
3110
|
+
return pi(c.options, e);
|
|
3111
|
+
}), D = r(() => G.value.length > 0 ? !0 : c.enableCascadeSelection && z.value?.length ? z.value.some((e) => e.state === "selected") : !1), A = (e) => {
|
|
3076
3112
|
g("see-more", e ?? {});
|
|
3077
|
-
}, j =
|
|
3078
|
-
|
|
3113
|
+
}, j = L("searchInputRef"), [F, ee] = le(c.defaultOpen), R = I(e, "modelValue"), z = I(e, "selectionState"), B = I(e, "searchInput"), te = r(() => c.menuActionsVariant === "cancel-confirm"), ne = (e) => {
|
|
3114
|
+
G.value = e, te.value || (R.value = e, z.value = S());
|
|
3115
|
+
}, U = () => {
|
|
3116
|
+
te.value && (R.value = G.value, z.value = S());
|
|
3079
3117
|
}, W = () => {
|
|
3080
|
-
te.value && (
|
|
3081
|
-
}, G = () => {
|
|
3082
|
-
te.value && (K.value = R.value);
|
|
3083
|
-
}, K = M(R.value), ne = (e) => d.value.get(e), re = (e) => {
|
|
3118
|
+
te.value && (G.value = R.value);
|
|
3119
|
+
}, G = M(R.value), re = (e) => d.value.get(e), ie = (e) => {
|
|
3084
3120
|
if (!c.enableCascadeSelection || !e) return;
|
|
3085
3121
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3086
3122
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3096,55 +3132,55 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3096
3132
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
3097
3133
|
continue;
|
|
3098
3134
|
}
|
|
3099
|
-
a(
|
|
3135
|
+
a(re(r.id), r.id);
|
|
3100
3136
|
}
|
|
3101
|
-
f.value = t, m.value = n,
|
|
3102
|
-
},
|
|
3103
|
-
get: () =>
|
|
3137
|
+
f.value = t, m.value = n, G.value = r;
|
|
3138
|
+
}, oe = r({
|
|
3139
|
+
get: () => G.value,
|
|
3104
3140
|
set: (e) => {
|
|
3105
|
-
|
|
3141
|
+
ne(e);
|
|
3106
3142
|
}
|
|
3107
|
-
}),
|
|
3143
|
+
}), se = () => {
|
|
3108
3144
|
B.value = "", F.value = !1;
|
|
3109
|
-
},
|
|
3145
|
+
}, ce = r(() => {
|
|
3110
3146
|
let e = c.size === "lg" ? 24 : 30;
|
|
3111
3147
|
return c.overlayTrigger ? -e : void 0;
|
|
3112
3148
|
});
|
|
3113
|
-
|
|
3149
|
+
V(() => R.value, (e) => {
|
|
3114
3150
|
if (c.enableCascadeSelection && z.value?.length && e.length === 0) {
|
|
3115
|
-
|
|
3151
|
+
ie(z.value);
|
|
3116
3152
|
return;
|
|
3117
3153
|
}
|
|
3118
|
-
|
|
3119
|
-
}),
|
|
3120
|
-
|
|
3154
|
+
G.value = e;
|
|
3155
|
+
}), V(() => [z.value, c.options], () => {
|
|
3156
|
+
ie(z.value);
|
|
3121
3157
|
}, {
|
|
3122
3158
|
deep: !0,
|
|
3123
3159
|
immediate: !0
|
|
3124
|
-
}),
|
|
3125
|
-
e ? (
|
|
3160
|
+
}), V(F, (e) => {
|
|
3161
|
+
e ? (W(), v(() => {
|
|
3126
3162
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3127
|
-
})) : (
|
|
3163
|
+
})) : (W(), g("dropdown-closed"));
|
|
3128
3164
|
});
|
|
3129
|
-
let
|
|
3165
|
+
let ue = r(() => {
|
|
3130
3166
|
if (B.value === "") return c.options;
|
|
3131
3167
|
let e = B.value.toLocaleLowerCase();
|
|
3132
|
-
return c.enableCascadeSelection ?
|
|
3133
|
-
}),
|
|
3168
|
+
return c.enableCascadeSelection ? hi(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3169
|
+
}), de = () => {
|
|
3134
3170
|
if (c.enableCascadeSelection) {
|
|
3135
3171
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
3136
|
-
for (let r of n) r
|
|
3172
|
+
for (let r of n) ui(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
3137
3173
|
};
|
|
3138
|
-
t(
|
|
3174
|
+
t(ue.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3139
3175
|
}
|
|
3140
|
-
|
|
3141
|
-
}, de = () => {
|
|
3142
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), V([]);
|
|
3176
|
+
ne(c.enableCascadeSelection ? di(ue.value) : ue.value);
|
|
3143
3177
|
}, fe = () => {
|
|
3144
|
-
|
|
3178
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ne([]);
|
|
3145
3179
|
}, pe = () => {
|
|
3146
|
-
W(),
|
|
3147
|
-
}, me =
|
|
3180
|
+
W(), se();
|
|
3181
|
+
}, me = () => {
|
|
3182
|
+
U(), se();
|
|
3183
|
+
}, he = r(() => {
|
|
3148
3184
|
if (!c.groupings) return;
|
|
3149
3185
|
let e = /* @__PURE__ */ new Map();
|
|
3150
3186
|
c.groupings.forEach((t) => {
|
|
@@ -3156,24 +3192,24 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3156
3192
|
}
|
|
3157
3193
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3158
3194
|
return Array.from(e.entries());
|
|
3159
|
-
}),
|
|
3195
|
+
}), ge = r(() => c.groupings && B.value === ""), _e = r(() => ({
|
|
3160
3196
|
...c,
|
|
3161
3197
|
selectedItems: R.value,
|
|
3162
3198
|
searchInput: B.value,
|
|
3163
3199
|
slotContext: c.slotContext,
|
|
3164
3200
|
isOpen: F.value,
|
|
3165
3201
|
isLoading: c.isLoading
|
|
3166
|
-
})),
|
|
3167
|
-
let e =
|
|
3202
|
+
})), ve = L("popoverContentRef"), ye = r(() => {
|
|
3203
|
+
let e = ve.value?.getRootNode();
|
|
3168
3204
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3169
|
-
}), { present:
|
|
3170
|
-
return
|
|
3171
|
-
F.value &&
|
|
3205
|
+
}), { present: be } = Ke("header", { host: ye }), { present: xe } = Ke("no-results", { host: ye }), { present: Se } = Ke("footer", { host: ye });
|
|
3206
|
+
return ae("Escape", () => {
|
|
3207
|
+
F.value && se();
|
|
3172
3208
|
}), (n, r) => (T(), i(Qn, _({
|
|
3173
3209
|
modelValue: P(F),
|
|
3174
3210
|
"onUpdate:modelValue": r[4] ||= (e) => h(F) ? F.value = e : null
|
|
3175
|
-
}, e.popoverProperties, { offset:
|
|
3176
|
-
trigger:
|
|
3211
|
+
}, e.popoverProperties, { offset: ce.value }), {
|
|
3212
|
+
trigger: H(() => [u(ai, {
|
|
3177
3213
|
ref: "select-button-trigger-ref",
|
|
3178
3214
|
variant: e.variant,
|
|
3179
3215
|
size: e.size,
|
|
@@ -3187,8 +3223,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3187
3223
|
showDropdown: !e.disableDropdownIcon && !D.value,
|
|
3188
3224
|
open: P(F),
|
|
3189
3225
|
"counter-value": w.value,
|
|
3190
|
-
onHandleClear:
|
|
3191
|
-
onHandleToggleDropdown: r[0] ||= (e) => P(
|
|
3226
|
+
onHandleClear: fe,
|
|
3227
|
+
onHandleToggleDropdown: r[0] ||= (e) => P(ee)()
|
|
3192
3228
|
}, null, 8, [
|
|
3193
3229
|
"variant",
|
|
3194
3230
|
"size",
|
|
@@ -3203,9 +3239,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3203
3239
|
"open",
|
|
3204
3240
|
"counter-value"
|
|
3205
3241
|
])]),
|
|
3206
|
-
content:
|
|
3242
|
+
content: H(() => [s("div", {
|
|
3207
3243
|
ref_key: "popoverContentRef",
|
|
3208
|
-
ref:
|
|
3244
|
+
ref: ve,
|
|
3209
3245
|
class: "pv-popover",
|
|
3210
3246
|
"data-test-id": "pv-popover",
|
|
3211
3247
|
style: x({
|
|
@@ -3213,33 +3249,28 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3213
3249
|
...e.popoverCssProperties
|
|
3214
3250
|
})
|
|
3215
3251
|
}, [
|
|
3216
|
-
e.disableSearchInput ? a("", !0) : (T(), o("div",
|
|
3252
|
+
e.disableSearchInput ? a("", !0) : (T(), o("div", Gi, [u(jr, {
|
|
3217
3253
|
ref: "searchInputRef",
|
|
3218
3254
|
"model-value": B.value,
|
|
3219
3255
|
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
3220
3256
|
class: "pv-stack-4",
|
|
3221
|
-
placeholder: e.searchPlaceholder
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
"
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
le.value.length > 0 ? (T(), o(t, { key: 2 }, [he.value ? (T(!0), o(t, { key: 0 }, O(me.value, ([t, i], s) => (T(), o("div", { key: t }, [
|
|
3230
|
-
n.$slots[t] ? k(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (T(), o("span", Ki, N(t), 1)),
|
|
3231
|
-
u(Ui, {
|
|
3232
|
-
selectedItems: ae.value,
|
|
3233
|
-
"onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
|
|
3257
|
+
placeholder: e.searchPlaceholder
|
|
3258
|
+
}, null, 8, ["model-value", "placeholder"])])),
|
|
3259
|
+
P(be) ? (T(), o("div", Ki, [k(n.$slots, "header", b(p(_e.value)))])) : a("", !0),
|
|
3260
|
+
ue.value.length > 0 ? (T(), o(t, { key: 2 }, [ge.value ? (T(!0), o(t, { key: 0 }, O(he.value, ([t, i], s) => (T(), o("div", { key: t }, [
|
|
3261
|
+
n.$slots[t] ? k(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (T(), o("span", qi, N(t), 1)),
|
|
3262
|
+
u(Wi, {
|
|
3263
|
+
selectedItems: oe.value,
|
|
3264
|
+
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
3234
3265
|
options: i,
|
|
3235
3266
|
config: l.value,
|
|
3236
3267
|
queryText: e.highlightSearchText ? B.value : null,
|
|
3237
3268
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
3238
3269
|
itemClass: "pv-stack-4",
|
|
3239
3270
|
isLoading: e.isLoading,
|
|
3271
|
+
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3240
3272
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3241
|
-
hasMoreOptions: s ===
|
|
3242
|
-
readOnly: e.readOnly,
|
|
3273
|
+
hasMoreOptions: s === he.value.length - 1 && C.value && !e.isLoading,
|
|
3243
3274
|
onSeeMore: A
|
|
3244
3275
|
}, null, 8, [
|
|
3245
3276
|
"selectedItems",
|
|
@@ -3248,23 +3279,23 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3248
3279
|
"queryText",
|
|
3249
3280
|
"itemTestId",
|
|
3250
3281
|
"isLoading",
|
|
3282
|
+
"isSeeMoreLoading",
|
|
3251
3283
|
"enableCascadeSelection",
|
|
3252
|
-
"hasMoreOptions"
|
|
3253
|
-
"readOnly"
|
|
3284
|
+
"hasMoreOptions"
|
|
3254
3285
|
]),
|
|
3255
|
-
|
|
3256
|
-
]))), 128)) : (T(), i(
|
|
3286
|
+
he.value && s !== he.value.length - 1 ? (T(), o("div", Ji)) : a("", !0)
|
|
3287
|
+
]))), 128)) : (T(), i(Wi, {
|
|
3257
3288
|
key: 1,
|
|
3258
|
-
selectedItems:
|
|
3259
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
3260
|
-
options:
|
|
3289
|
+
selectedItems: oe.value,
|
|
3290
|
+
"onUpdate:selectedItems": r[3] ||= (e) => oe.value = e,
|
|
3291
|
+
options: ue.value,
|
|
3261
3292
|
config: l.value,
|
|
3262
3293
|
queryText: e.highlightSearchText ? B.value : null,
|
|
3263
3294
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3264
3295
|
itemClass: "pv-stack-4",
|
|
3265
3296
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3297
|
+
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
3266
3298
|
hasMoreOptions: C.value && !e.isLoading,
|
|
3267
|
-
readOnly: e.readOnly,
|
|
3268
3299
|
onSeeMore: A
|
|
3269
3300
|
}, null, 8, [
|
|
3270
3301
|
"selectedItems",
|
|
@@ -3273,27 +3304,27 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3273
3304
|
"queryText",
|
|
3274
3305
|
"itemTestId",
|
|
3275
3306
|
"enableCascadeSelection",
|
|
3276
|
-
"
|
|
3277
|
-
"
|
|
3307
|
+
"isSeeMoreLoading",
|
|
3308
|
+
"hasMoreOptions"
|
|
3278
3309
|
]))], 64)) : a("", !0),
|
|
3279
|
-
e.isLoading ? (T(), o("div",
|
|
3280
|
-
s("div",
|
|
3310
|
+
e.isLoading ? (T(), o("div", Yi, [u(Oe, { variant: "dark" })])) : ue.value.length === 0 ? (T(), o(t, { key: 4 }, [P(xe) ? k(n.$slots, "no-results", b(_({ key: 0 }, _e.value))) : (T(), i(li, { key: 1 }))], 64)) : a("", !0),
|
|
3311
|
+
s("div", Xi, [P(Se) ? k(n.$slots, "footer", b(_({ key: 0 }, _e.value))) : a("", !0), e.menuActionsVariant ? (T(), i(Zr, {
|
|
3281
3312
|
key: 1,
|
|
3282
3313
|
variant: e.menuActionsVariant,
|
|
3283
3314
|
disabled: e.isLoading,
|
|
3284
|
-
onHandleClearAll:
|
|
3285
|
-
onHandleSelectAll:
|
|
3286
|
-
onHandleCancel:
|
|
3287
|
-
onHandleConfirm:
|
|
3315
|
+
onHandleClearAll: fe,
|
|
3316
|
+
onHandleSelectAll: de,
|
|
3317
|
+
onHandleCancel: pe,
|
|
3318
|
+
onHandleConfirm: me
|
|
3288
3319
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
3289
3320
|
], 4)]),
|
|
3290
3321
|
_: 3
|
|
3291
3322
|
}, 16, ["modelValue", "offset"]));
|
|
3292
3323
|
}
|
|
3293
|
-
}),
|
|
3324
|
+
}), Qi = {
|
|
3294
3325
|
key: 0,
|
|
3295
3326
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
3296
|
-
},
|
|
3327
|
+
}, $i = /* @__PURE__ */ d({
|
|
3297
3328
|
__name: "PvSelectButton",
|
|
3298
3329
|
props: /* @__PURE__ */ g({
|
|
3299
3330
|
defaultOpen: { type: Boolean },
|
|
@@ -3341,15 +3372,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3341
3372
|
action: n.optionsAction,
|
|
3342
3373
|
variant: n.optionsVariant,
|
|
3343
3374
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3344
|
-
})), l = t, [d] =
|
|
3345
|
-
|
|
3375
|
+
})), l = t, [d] = le(n.defaultOpen), f = I(e, "modelValue"), p = I(e, "searchInput");
|
|
3376
|
+
V(d, (e) => {
|
|
3346
3377
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3347
3378
|
});
|
|
3348
3379
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
3349
3380
|
if (f.value && f.value.icon) return f.value.icon;
|
|
3350
3381
|
}), v = r(() => {
|
|
3351
3382
|
if (f.value && f.value.companyName) return f.value.companyName;
|
|
3352
|
-
}), y = r(() => {
|
|
3383
|
+
}), y = r(() => f.value?.avatar), b = r(() => {
|
|
3353
3384
|
let e = p.value.trim().toLowerCase();
|
|
3354
3385
|
if (!e) return n.options;
|
|
3355
3386
|
let t = (n) => {
|
|
@@ -3365,25 +3396,25 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3365
3396
|
return r;
|
|
3366
3397
|
};
|
|
3367
3398
|
return t(n.options);
|
|
3368
|
-
}),
|
|
3399
|
+
}), S = r({
|
|
3369
3400
|
get: () => f.value ? [f.value] : [],
|
|
3370
3401
|
set: (e) => {
|
|
3371
3402
|
n.optionsVariant === "radio" || n.disableDeselect ? e.length > 0 && (f.value = e[0]) : f.value = e.length > 0 ? e[0] : void 0;
|
|
3372
3403
|
}
|
|
3373
|
-
}),
|
|
3374
|
-
|
|
3375
|
-
}, C = () => {
|
|
3376
|
-
f.value = void 0;
|
|
3404
|
+
}), C = () => {
|
|
3405
|
+
E();
|
|
3377
3406
|
}, w = () => {
|
|
3407
|
+
f.value = void 0;
|
|
3408
|
+
}, E = () => {
|
|
3378
3409
|
d.value = !1, p.value = "";
|
|
3379
3410
|
};
|
|
3380
|
-
return
|
|
3381
|
-
d.value &&
|
|
3411
|
+
return ae("Escape", () => {
|
|
3412
|
+
d.value && E();
|
|
3382
3413
|
}), (t, n) => (T(), i(Qn, _({
|
|
3383
3414
|
modelValue: P(d),
|
|
3384
3415
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3385
3416
|
}, e.popoverProperties), {
|
|
3386
|
-
trigger:
|
|
3417
|
+
trigger: H(() => [u(ai, {
|
|
3387
3418
|
class: "pv-full-width",
|
|
3388
3419
|
ref: "select-button-trigger-ref",
|
|
3389
3420
|
variant: e.variant,
|
|
@@ -3394,6 +3425,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3394
3425
|
label: m.value,
|
|
3395
3426
|
icon: g.value,
|
|
3396
3427
|
companyLogo: v.value,
|
|
3428
|
+
avatar: y.value,
|
|
3397
3429
|
showClear: !1,
|
|
3398
3430
|
showDropdown: !0,
|
|
3399
3431
|
open: P(d),
|
|
@@ -3401,7 +3433,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3401
3433
|
"counter-value": f.value?.secondaryText && typeof f.value.secondaryText == "number" ? f.value.secondaryText : void 0,
|
|
3402
3434
|
"counter-badge-variant": e.counterBadgeVariant,
|
|
3403
3435
|
isLoading: e.isLoading,
|
|
3404
|
-
|
|
3436
|
+
menuOptionConfig: c.value,
|
|
3437
|
+
renderer: e.optionsRenderer,
|
|
3438
|
+
selectedOption: f.value,
|
|
3439
|
+
onHandleClear: w
|
|
3405
3440
|
}, null, 8, [
|
|
3406
3441
|
"variant",
|
|
3407
3442
|
"inverse",
|
|
@@ -3411,51 +3446,55 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3411
3446
|
"label",
|
|
3412
3447
|
"icon",
|
|
3413
3448
|
"companyLogo",
|
|
3449
|
+
"avatar",
|
|
3414
3450
|
"open",
|
|
3415
3451
|
"counter-position",
|
|
3416
3452
|
"counter-value",
|
|
3417
3453
|
"counter-badge-variant",
|
|
3418
|
-
"isLoading"
|
|
3454
|
+
"isLoading",
|
|
3455
|
+
"menuOptionConfig",
|
|
3456
|
+
"renderer",
|
|
3457
|
+
"selectedOption"
|
|
3419
3458
|
])]),
|
|
3420
|
-
content:
|
|
3459
|
+
content: H(() => [s("div", {
|
|
3421
3460
|
class: "pv-popover",
|
|
3422
3461
|
"data-test-id": "pv-popover",
|
|
3423
3462
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
3424
|
-
}, [e.disableSearchInput ? a("", !0) : (T(), o("div",
|
|
3463
|
+
}, [e.disableSearchInput ? a("", !0) : (T(), o("div", Qi, [u(jr, {
|
|
3425
3464
|
"model-value": p.value,
|
|
3426
3465
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
3427
3466
|
class: "pv-stack-4",
|
|
3428
3467
|
placeholder: e.searchPlaceholder
|
|
3429
|
-
}, null, 8, ["model-value", "placeholder"])])),
|
|
3468
|
+
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (T(), i(Wi, {
|
|
3430
3469
|
key: 1,
|
|
3431
|
-
selectedItems:
|
|
3432
|
-
"onUpdate:selectedItems": n[1] ||= (e) =>
|
|
3433
|
-
options:
|
|
3470
|
+
selectedItems: S.value,
|
|
3471
|
+
"onUpdate:selectedItems": n[1] ||= (e) => S.value = e,
|
|
3472
|
+
options: b.value,
|
|
3434
3473
|
config: c.value,
|
|
3435
3474
|
queryText: e.highlightSearchText ? p.value : null,
|
|
3436
3475
|
singleSelect: !0,
|
|
3437
|
-
onHandleSelected:
|
|
3476
|
+
onHandleSelected: C
|
|
3438
3477
|
}, null, 8, [
|
|
3439
3478
|
"selectedItems",
|
|
3440
3479
|
"options",
|
|
3441
3480
|
"config",
|
|
3442
3481
|
"queryText"
|
|
3443
|
-
])) : (T(), i(
|
|
3482
|
+
])) : (T(), i(li, { key: 2 }))], 4)]),
|
|
3444
3483
|
_: 1
|
|
3445
3484
|
}, 16, ["modelValue"]));
|
|
3446
3485
|
}
|
|
3447
|
-
}),
|
|
3486
|
+
}), ea = {
|
|
3448
3487
|
short: 5,
|
|
3449
3488
|
long: 7
|
|
3450
|
-
},
|
|
3451
|
-
if (n <=
|
|
3489
|
+
}, ta = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
3490
|
+
if (n <= ea[e]) return Array.from({ length: n }, (e, t) => ({
|
|
3452
3491
|
page: t + 1,
|
|
3453
3492
|
label: (t + 1).toString()
|
|
3454
3493
|
}));
|
|
3455
3494
|
let r = [{
|
|
3456
3495
|
page: 1,
|
|
3457
3496
|
label: "1"
|
|
3458
|
-
}], i =
|
|
3497
|
+
}], i = ea[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
3459
3498
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
3460
3499
|
page: 0,
|
|
3461
3500
|
label: "..."
|
|
@@ -3474,11 +3513,11 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3474
3513
|
page: n,
|
|
3475
3514
|
label: n.toString()
|
|
3476
3515
|
}), r;
|
|
3477
|
-
} }),
|
|
3516
|
+
} }), na = ["data-style"], ra = ["data-testid", "aria-current"], ia = {
|
|
3478
3517
|
key: 0,
|
|
3479
3518
|
class: "dots-button",
|
|
3480
3519
|
disabled: ""
|
|
3481
|
-
},
|
|
3520
|
+
}, aa = ["onClick"], oa = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
3482
3521
|
__name: "PvPagination",
|
|
3483
3522
|
props: /* @__PURE__ */ g({
|
|
3484
3523
|
size: { default: "lg" },
|
|
@@ -3491,14 +3530,14 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3491
3530
|
}),
|
|
3492
3531
|
emits: ["update:modelValue"],
|
|
3493
3532
|
setup(e) {
|
|
3494
|
-
let { getPaginations: n } =
|
|
3533
|
+
let { getPaginations: n } = ta({ variant: e.variant }), r = I(e, "modelValue");
|
|
3495
3534
|
return (i, a) => (T(), o("ol", {
|
|
3496
3535
|
role: "list",
|
|
3497
3536
|
class: "pv-pagination",
|
|
3498
3537
|
"data-testid": "pv-pagination",
|
|
3499
3538
|
"data-style": e.size === "lg" ? "small" : void 0
|
|
3500
3539
|
}, [
|
|
3501
|
-
s("li", null, [u(
|
|
3540
|
+
s("li", null, [u(J, {
|
|
3502
3541
|
"data-testid": "pagination-left-arrow-icon",
|
|
3503
3542
|
disabled: r.value === 1,
|
|
3504
3543
|
"left-icon": "chevron-left",
|
|
@@ -3513,11 +3552,11 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3513
3552
|
key: e.page,
|
|
3514
3553
|
"data-testid": `pagination-button-${e.page}`,
|
|
3515
3554
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
3516
|
-
}, [e.label === "..." ? (T(), o("button",
|
|
3555
|
+
}, [e.label === "..." ? (T(), o("button", ia, N(e.label), 1)) : (T(), o("button", {
|
|
3517
3556
|
key: 1,
|
|
3518
3557
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
3519
|
-
}, N(e.label), 9,
|
|
3520
|
-
s("li", null, [u(
|
|
3558
|
+
}, N(e.label), 9, aa))], 8, ra))), 128)),
|
|
3559
|
+
s("li", null, [u(J, {
|
|
3521
3560
|
"data-testid": "pagination-right-arrow-icon",
|
|
3522
3561
|
disabled: r.value === e.maxPages,
|
|
3523
3562
|
"left-icon": "chevron-right",
|
|
@@ -3525,14 +3564,14 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3525
3564
|
variant: "ghost",
|
|
3526
3565
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
3527
3566
|
}, null, 8, ["disabled"])])
|
|
3528
|
-
], 8,
|
|
3567
|
+
], 8, na));
|
|
3529
3568
|
}
|
|
3530
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
3569
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), sa = ["for"], ca = [
|
|
3531
3570
|
"checked",
|
|
3532
3571
|
"type",
|
|
3533
3572
|
"value",
|
|
3534
3573
|
"id"
|
|
3535
|
-
],
|
|
3574
|
+
], la = /* @__PURE__ */ d({
|
|
3536
3575
|
__name: "PvSelectableCard",
|
|
3537
3576
|
props: {
|
|
3538
3577
|
variant: { default: "default" },
|
|
@@ -3554,34 +3593,34 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3554
3593
|
type: e.deselect ? "checkbox" : "radio",
|
|
3555
3594
|
value: e.value,
|
|
3556
3595
|
id: t.value
|
|
3557
|
-
}, null, 8,
|
|
3596
|
+
}, null, 8, ca), k(n.$slots, "default")], 10, sa));
|
|
3558
3597
|
}
|
|
3559
|
-
}),
|
|
3598
|
+
}), ua = { class: "pv-layout-two-sidebar" }, da = ["data-hidden"], fa = { "data-layout": "main-section" }, pa = ["data-hidden"], ma = /* @__PURE__ */ d({
|
|
3560
3599
|
__name: "PvSidePanel",
|
|
3561
3600
|
props: {
|
|
3562
3601
|
showLeftSidebar: { type: Boolean },
|
|
3563
3602
|
showRightSidebar: { type: Boolean }
|
|
3564
3603
|
},
|
|
3565
3604
|
setup(e) {
|
|
3566
|
-
return (t, n) => (T(), o("div",
|
|
3605
|
+
return (t, n) => (T(), o("div", ua, [
|
|
3567
3606
|
s("div", {
|
|
3568
3607
|
"data-hidden": e.showLeftSidebar === !1 ? !0 : void 0,
|
|
3569
3608
|
"data-testid": "pv-side-panel-left",
|
|
3570
3609
|
"data-layout": "left-sidebar"
|
|
3571
|
-
}, [k(t.$slots, "left-sidebar")], 8,
|
|
3572
|
-
s("div",
|
|
3610
|
+
}, [k(t.$slots, "left-sidebar")], 8, da),
|
|
3611
|
+
s("div", fa, [k(t.$slots, "main")]),
|
|
3573
3612
|
s("div", {
|
|
3574
3613
|
"data-hidden": e.showRightSidebar === !1 ? !0 : void 0,
|
|
3575
3614
|
"data-testid": "pv-side-panel-right",
|
|
3576
3615
|
"data-layout": "right-sidebar"
|
|
3577
|
-
}, [k(t.$slots, "right-sidebar")], 8,
|
|
3616
|
+
}, [k(t.$slots, "right-sidebar")], 8, pa)
|
|
3578
3617
|
]));
|
|
3579
3618
|
}
|
|
3580
|
-
}),
|
|
3619
|
+
}), ha = ["data-style"], ga = [
|
|
3581
3620
|
"placeholder",
|
|
3582
3621
|
"disabled",
|
|
3583
3622
|
"name"
|
|
3584
|
-
],
|
|
3623
|
+
], _a = /* @__PURE__ */ d({
|
|
3585
3624
|
__name: "PvGhostInput",
|
|
3586
3625
|
props: /* @__PURE__ */ g({
|
|
3587
3626
|
variant: { default: "h1" },
|
|
@@ -3594,7 +3633,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3594
3633
|
}),
|
|
3595
3634
|
emits: ["update:modelValue"],
|
|
3596
3635
|
setup(e) {
|
|
3597
|
-
let t =
|
|
3636
|
+
let t = L("inputRef"), n = {
|
|
3598
3637
|
h1: "ghost-input-h1",
|
|
3599
3638
|
h2: "ghost-input-h2",
|
|
3600
3639
|
h3: "ghost-input-h3",
|
|
@@ -3617,7 +3656,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3617
3656
|
};
|
|
3618
3657
|
C(() => {
|
|
3619
3658
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3620
|
-
}),
|
|
3659
|
+
}), V(() => l.value, () => {
|
|
3621
3660
|
l.value && l.value.length > 0 ? f(l.value) : c.placeholder ? f(c.placeholder) : u.value = 240;
|
|
3622
3661
|
});
|
|
3623
3662
|
let f = (e) => {
|
|
@@ -3633,7 +3672,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3633
3672
|
"data-style": r[e.variant]
|
|
3634
3673
|
}, [
|
|
3635
3674
|
k(f.$slots, "action"),
|
|
3636
|
-
|
|
3675
|
+
U(s("input", _({
|
|
3637
3676
|
ref_key: "inputRef",
|
|
3638
3677
|
ref: t
|
|
3639
3678
|
}, c, {
|
|
@@ -3643,24 +3682,24 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3643
3682
|
placeholder: e.placeholder,
|
|
3644
3683
|
disabled: e.disabled,
|
|
3645
3684
|
name: n[e.variant]
|
|
3646
|
-
}), null, 16,
|
|
3647
|
-
e.showEditIcon ? (T(), i(
|
|
3685
|
+
}), null, 16, ga), [[te, l.value]]),
|
|
3686
|
+
e.showEditIcon ? (T(), i(J, {
|
|
3648
3687
|
key: 0,
|
|
3649
3688
|
"left-icon": "edit",
|
|
3650
3689
|
ariaLabel: "Edit",
|
|
3651
3690
|
variant: "ghost",
|
|
3652
3691
|
onClick: d
|
|
3653
3692
|
})) : a("", !0)
|
|
3654
|
-
], 8,
|
|
3693
|
+
], 8, ha));
|
|
3655
3694
|
}
|
|
3656
|
-
}),
|
|
3695
|
+
}), va = {
|
|
3657
3696
|
key: 0,
|
|
3658
3697
|
class: "pv-text-title-lg"
|
|
3659
|
-
},
|
|
3698
|
+
}, ya = ["id"], ba = { class: "pv-flex" }, xa = ["id"], Sa = {
|
|
3660
3699
|
key: 0,
|
|
3661
3700
|
class: "pv-border-left",
|
|
3662
3701
|
style: { "padding-inline-start": "0.5rem" }
|
|
3663
|
-
},
|
|
3702
|
+
}, Ca = /* @__PURE__ */ d({
|
|
3664
3703
|
__name: "PvHeader",
|
|
3665
3704
|
props: {
|
|
3666
3705
|
title: {},
|
|
@@ -3677,20 +3716,20 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3677
3716
|
return (t, n) => (T(), o("div", {
|
|
3678
3717
|
class: y(["pv-inset-square pv-flex pv-space-between pv-border-bottom", { "pv-sticky pv-surface": e.sticky }]),
|
|
3679
3718
|
style: { "--inset-size": "0.5rem 1rem" }
|
|
3680
|
-
}, [e.title ? (T(), o("span",
|
|
3719
|
+
}, [e.title ? (T(), o("span", va, N(e.title), 1)) : (T(), o("div", {
|
|
3681
3720
|
key: 1,
|
|
3682
3721
|
id: e.headerTitleId,
|
|
3683
3722
|
class: "pv-flex"
|
|
3684
|
-
}, [k(t.$slots, "left")], 8,
|
|
3723
|
+
}, [k(t.$slots, "left")], 8, ya)), s("div", ba, [s("div", {
|
|
3685
3724
|
id: e.headerActionsId,
|
|
3686
3725
|
class: "pv-flex"
|
|
3687
|
-
}, [k(t.$slots, "right")], 8,
|
|
3726
|
+
}, [k(t.$slots, "right")], 8, xa), e.showAskTqButton ? (T(), o("div", Sa, [u(He, {
|
|
3688
3727
|
id: e.askTqButtonId,
|
|
3689
3728
|
label: "",
|
|
3690
3729
|
size: "lg"
|
|
3691
3730
|
}, null, 8, ["id"])])) : a("", !0)])], 2));
|
|
3692
3731
|
}
|
|
3693
|
-
}),
|
|
3732
|
+
}), wa = { class: "pv-flex" }, Ta = /* @__PURE__ */ d({
|
|
3694
3733
|
__name: "PvCompanyLabel",
|
|
3695
3734
|
props: {
|
|
3696
3735
|
size: { default: "md" },
|
|
@@ -3703,15 +3742,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3703
3742
|
sm: "pv-text-body-md",
|
|
3704
3743
|
md: "pv-text-body-md"
|
|
3705
3744
|
};
|
|
3706
|
-
return (n, r) => (T(), o("div",
|
|
3745
|
+
return (n, r) => (T(), o("div", wa, [u(cr, {
|
|
3707
3746
|
name: e.logo ? e.logo : e.label,
|
|
3708
3747
|
size: e.size
|
|
3709
3748
|
}, null, 8, ["name", "size"]), s("span", { class: y(t[e.size]) }, N(e.label), 3)]));
|
|
3710
3749
|
}
|
|
3711
|
-
}),
|
|
3750
|
+
}), Ea = ["data-more"], Da = ["src", "alt"], Oa = {
|
|
3712
3751
|
key: 2,
|
|
3713
3752
|
class: "pv-avatar-sm"
|
|
3714
|
-
},
|
|
3753
|
+
}, ka = /* @__PURE__ */ d({
|
|
3715
3754
|
__name: "PvAvatarGroup",
|
|
3716
3755
|
props: {
|
|
3717
3756
|
items: {},
|
|
@@ -3734,15 +3773,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3734
3773
|
key: 1,
|
|
3735
3774
|
src: e.image,
|
|
3736
3775
|
alt: e.alt ?? ""
|
|
3737
|
-
}, null, 8,
|
|
3776
|
+
}, null, 8, Da)) : (T(), o("div", Oa))]))), 128))], 8, Ea));
|
|
3738
3777
|
}
|
|
3739
|
-
}),
|
|
3778
|
+
}), Aa = ["for"], ja = [
|
|
3740
3779
|
"id",
|
|
3741
3780
|
"type",
|
|
3742
3781
|
"value",
|
|
3743
3782
|
"name",
|
|
3744
3783
|
"disabled"
|
|
3745
|
-
],
|
|
3784
|
+
], Ma = { key: 1 }, Na = /* @__PURE__ */ d({
|
|
3746
3785
|
__name: "PvToggleButton",
|
|
3747
3786
|
props: /* @__PURE__ */ g({
|
|
3748
3787
|
size: { default: "xl" },
|
|
@@ -3775,7 +3814,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3775
3814
|
class: y(c.value),
|
|
3776
3815
|
for: l.value
|
|
3777
3816
|
}, [
|
|
3778
|
-
|
|
3817
|
+
U(s("input", {
|
|
3779
3818
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
3780
3819
|
class: "pv-hide",
|
|
3781
3820
|
id: l.value,
|
|
@@ -3783,25 +3822,25 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3783
3822
|
value: e.value,
|
|
3784
3823
|
name: e.name,
|
|
3785
3824
|
disabled: e.disabled
|
|
3786
|
-
}, null, 8,
|
|
3787
|
-
e.leftIcon ? (T(), i(
|
|
3825
|
+
}, null, 8, ja), [[z, n.value]]),
|
|
3826
|
+
e.leftIcon ? (T(), i(K, {
|
|
3788
3827
|
key: 0,
|
|
3789
3828
|
name: e.leftIcon
|
|
3790
3829
|
}, null, 8, ["name"])) : a("", !0),
|
|
3791
|
-
e.label ? (T(), o("span",
|
|
3792
|
-
e.rightIcon ? (T(), i(
|
|
3830
|
+
e.label ? (T(), o("span", Ma, N(e.label), 1)) : a("", !0),
|
|
3831
|
+
e.rightIcon ? (T(), i(K, {
|
|
3793
3832
|
key: 2,
|
|
3794
3833
|
name: e.rightIcon
|
|
3795
3834
|
}, null, 8, ["name"])) : a("", !0)
|
|
3796
|
-
], 10,
|
|
3835
|
+
], 10, Aa));
|
|
3797
3836
|
}
|
|
3798
|
-
}),
|
|
3837
|
+
}), Pa = { class: "pv-flex" }, Fa = [
|
|
3799
3838
|
"name",
|
|
3800
3839
|
"value",
|
|
3801
3840
|
"checked",
|
|
3802
3841
|
"disabled",
|
|
3803
3842
|
"onChange"
|
|
3804
|
-
],
|
|
3843
|
+
], Ia = { key: 1 }, La = /* @__PURE__ */ d({
|
|
3805
3844
|
__name: "PvToggleGroup",
|
|
3806
3845
|
props: /* @__PURE__ */ g({
|
|
3807
3846
|
disabled: { type: Boolean },
|
|
@@ -3823,11 +3862,11 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3823
3862
|
r.value = e;
|
|
3824
3863
|
}
|
|
3825
3864
|
};
|
|
3826
|
-
return (n, u) => (T(), o("div",
|
|
3865
|
+
return (n, u) => (T(), o("div", Pa, [(T(!0), o(t, null, O(e.options, (t) => (T(), i(er, {
|
|
3827
3866
|
key: t.value,
|
|
3828
3867
|
description: e.hideLabels ? t.label : ""
|
|
3829
3868
|
}, {
|
|
3830
|
-
trigger:
|
|
3869
|
+
trigger: H(() => [s("label", { class: y(["pv-label pv-label-hover pv-flex pv-toggle-small", { "pv-disabled": e.disabled || t.disabled }]) }, [
|
|
3831
3870
|
s("input", {
|
|
3832
3871
|
type: "radio",
|
|
3833
3872
|
name: c.value,
|
|
@@ -3836,21 +3875,21 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3836
3875
|
class: "pv-radio",
|
|
3837
3876
|
disabled: e.disabled || t.disabled,
|
|
3838
3877
|
onChange: (e) => l(t)
|
|
3839
|
-
}, null, 40,
|
|
3840
|
-
t.icon ? (T(), i(
|
|
3878
|
+
}, null, 40, Fa),
|
|
3879
|
+
t.icon ? (T(), i(K, {
|
|
3841
3880
|
key: 0,
|
|
3842
3881
|
name: t.icon
|
|
3843
3882
|
}, null, 8, ["name"])) : a("", !0),
|
|
3844
|
-
e.hideLabels ? a("", !0) : (T(), o("span",
|
|
3883
|
+
e.hideLabels ? a("", !0) : (T(), o("span", Ia, N(t.label), 1))
|
|
3845
3884
|
], 2)]),
|
|
3846
3885
|
_: 2
|
|
3847
3886
|
}, 1032, ["description"]))), 128))]));
|
|
3848
3887
|
}
|
|
3849
|
-
}),
|
|
3888
|
+
}), Ra = [
|
|
3850
3889
|
"aria-label",
|
|
3851
3890
|
"disabled",
|
|
3852
3891
|
"indeterminate"
|
|
3853
|
-
],
|
|
3892
|
+
], za = /* @__PURE__ */ d({
|
|
3854
3893
|
__name: "PvCheckbox",
|
|
3855
3894
|
props: /* @__PURE__ */ g({
|
|
3856
3895
|
disabled: { type: Boolean },
|
|
@@ -3863,7 +3902,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3863
3902
|
emits: ["update:modelValue"],
|
|
3864
3903
|
setup(e) {
|
|
3865
3904
|
let t = I(e, "modelValue");
|
|
3866
|
-
return (n, r) =>
|
|
3905
|
+
return (n, r) => U((T(), o("input", {
|
|
3867
3906
|
ref: "checkbox-ref",
|
|
3868
3907
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
3869
3908
|
class: "pv-checkbox",
|
|
@@ -3872,13 +3911,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3872
3911
|
"aria-label": e.ariaLabel,
|
|
3873
3912
|
disabled: e.disabled,
|
|
3874
3913
|
indeterminate: e.indeterminate
|
|
3875
|
-
}, null, 8,
|
|
3914
|
+
}, null, 8, Ra)), [[R, t.value]]);
|
|
3876
3915
|
}
|
|
3877
|
-
}),
|
|
3916
|
+
}), Ba = ["aria-label", "aria-labelledby"], Va = ["id"], Ha = [
|
|
3878
3917
|
"name",
|
|
3879
3918
|
"value",
|
|
3880
3919
|
"disabled"
|
|
3881
|
-
],
|
|
3920
|
+
], Ua = /* @__PURE__ */ d({
|
|
3882
3921
|
__name: "PvRadioGroup",
|
|
3883
3922
|
props: /* @__PURE__ */ g({
|
|
3884
3923
|
options: { default: () => [] },
|
|
@@ -3909,22 +3948,22 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3909
3948
|
key: 0,
|
|
3910
3949
|
id: P(u),
|
|
3911
3950
|
class: "pv-label pv-stack-8"
|
|
3912
|
-
}, N(e.label), 9,
|
|
3951
|
+
}, N(e.label), 9, Va)) : a("", !0), s("div", {
|
|
3913
3952
|
class: y(e.orientation === "horizontal" ? "pv-flex" : "pv-flex-vertical"),
|
|
3914
3953
|
style: x(f.value)
|
|
3915
3954
|
}, [(T(!0), o(t, null, O(e.options, (t) => (T(), o("label", {
|
|
3916
3955
|
key: String(t.value),
|
|
3917
3956
|
class: "pv-label pv-flex"
|
|
3918
|
-
}, [
|
|
3957
|
+
}, [U(s("input", {
|
|
3919
3958
|
"onUpdate:modelValue": r[0] ||= (e) => i.value = e,
|
|
3920
3959
|
class: "pv-radio",
|
|
3921
3960
|
type: "radio",
|
|
3922
3961
|
name: d.value,
|
|
3923
3962
|
value: t.value,
|
|
3924
3963
|
disabled: e.disabled || t.disabled
|
|
3925
|
-
}, null, 8,
|
|
3964
|
+
}, null, 8, Ha), [[B, i.value]]), l(" " + N(t.label), 1)]))), 128))], 6)], 8, Ba));
|
|
3926
3965
|
}
|
|
3927
|
-
}),
|
|
3966
|
+
}), Wa = /* @__PURE__ */ d({
|
|
3928
3967
|
__name: "PvSprite",
|
|
3929
3968
|
props: {
|
|
3930
3969
|
src: {},
|
|
@@ -3945,7 +3984,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3945
3984
|
id: "pv-sprite-content"
|
|
3946
3985
|
}, null, -1)]));
|
|
3947
3986
|
}
|
|
3948
|
-
}),
|
|
3987
|
+
}), Ga = /* @__PURE__ */ d({
|
|
3949
3988
|
__name: "PvSkeleton",
|
|
3950
3989
|
props: {
|
|
3951
3990
|
size: { default: "md" },
|
|
@@ -3959,20 +3998,20 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3959
3998
|
lg: "1.5rem",
|
|
3960
3999
|
xl: "2rem"
|
|
3961
4000
|
};
|
|
3962
|
-
return (n, r) => (T(), i(P(
|
|
4001
|
+
return (n, r) => (T(), i(P(ge), {
|
|
3963
4002
|
"data-testid": "pv-skeleton",
|
|
3964
4003
|
height: t[e.size],
|
|
3965
4004
|
width: e.variant === "square" ? t[e.size] : "100%"
|
|
3966
4005
|
}, null, 8, ["height", "width"]));
|
|
3967
4006
|
}
|
|
3968
|
-
}),
|
|
4007
|
+
}), Ka = ["for"], qa = [
|
|
3969
4008
|
"disabled",
|
|
3970
4009
|
"type",
|
|
3971
4010
|
"placeholder",
|
|
3972
4011
|
"id",
|
|
3973
4012
|
"data-invalid",
|
|
3974
4013
|
"step"
|
|
3975
|
-
],
|
|
4014
|
+
], Ja = /* @__PURE__ */ d({
|
|
3976
4015
|
__name: "PvInput",
|
|
3977
4016
|
props: /* @__PURE__ */ g({
|
|
3978
4017
|
error: { type: Boolean },
|
|
@@ -3996,8 +4035,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
3996
4035
|
"data-testid": "pv-input-label",
|
|
3997
4036
|
class: "pv-label pv-stack-8",
|
|
3998
4037
|
for: e.id
|
|
3999
|
-
}, [k(r.$slots, "label")], 8,
|
|
4000
|
-
|
|
4038
|
+
}, [k(r.$slots, "label")], 8, Ka)) : a("", !0),
|
|
4039
|
+
U(s("input", {
|
|
4001
4040
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
4002
4041
|
"data-testid": "pv-input",
|
|
4003
4042
|
class: y(["pv-input-text", {
|
|
@@ -4010,7 +4049,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4010
4049
|
id: e.id,
|
|
4011
4050
|
"data-invalid": e.error ? !0 : void 0,
|
|
4012
4051
|
step: e.step
|
|
4013
|
-
}, null, 10,
|
|
4052
|
+
}, null, 10, qa), [[z, n.value]]),
|
|
4014
4053
|
e.lowerLabel ? (T(), o("p", {
|
|
4015
4054
|
key: 1,
|
|
4016
4055
|
"data-testid": "pv-input-lower-label",
|
|
@@ -4022,7 +4061,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4022
4061
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4023
4062
|
], 64));
|
|
4024
4063
|
}
|
|
4025
|
-
}),
|
|
4064
|
+
}), Ya = ["data-rating"], Xa = ["value"], Za = /* @__PURE__ */ d({
|
|
4026
4065
|
__name: "PvRating",
|
|
4027
4066
|
props: {
|
|
4028
4067
|
variant: { default: "dot" },
|
|
@@ -4041,9 +4080,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4041
4080
|
min: "0",
|
|
4042
4081
|
max: "5",
|
|
4043
4082
|
value: e.value
|
|
4044
|
-
}, "4.0 stars", 8,
|
|
4083
|
+
}, "4.0 stars", 8, Xa)], 12, Ya));
|
|
4045
4084
|
}
|
|
4046
|
-
}),
|
|
4085
|
+
}), Qa = /* @__PURE__ */ d({
|
|
4047
4086
|
__name: "PvCard",
|
|
4048
4087
|
props: {
|
|
4049
4088
|
href: {},
|
|
@@ -4061,7 +4100,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4061
4100
|
class: y(["pv-card pv-inset-square-8 pv-inline-block", { "pv-card-secondary": e.variant === "secondary" }]),
|
|
4062
4101
|
"data-testid": "pv-card"
|
|
4063
4102
|
}, {
|
|
4064
|
-
default:
|
|
4103
|
+
default: H(() => [k(t.$slots, "default")]),
|
|
4065
4104
|
_: 3
|
|
4066
4105
|
}, 8, [
|
|
4067
4106
|
"href",
|
|
@@ -4069,34 +4108,34 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4069
4108
|
"class"
|
|
4070
4109
|
]));
|
|
4071
4110
|
}
|
|
4072
|
-
}),
|
|
4111
|
+
}), $a = /* @__PURE__ */ d({
|
|
4073
4112
|
__name: "PvWidget",
|
|
4074
4113
|
setup(e) {
|
|
4075
|
-
return (e, t) => (T(), i(
|
|
4076
|
-
default:
|
|
4114
|
+
return (e, t) => (T(), i(Qa, { class: "pv-inset-square-16" }, {
|
|
4115
|
+
default: H(() => [k(e.$slots, "default")]),
|
|
4077
4116
|
_: 3
|
|
4078
4117
|
}));
|
|
4079
4118
|
}
|
|
4080
|
-
}),
|
|
4119
|
+
}), eo = {
|
|
4081
4120
|
class: "pv-flex-vertical",
|
|
4082
4121
|
style: {
|
|
4083
4122
|
"--flex-align": "flex-start",
|
|
4084
4123
|
"--flex-gap": "0.25rem"
|
|
4085
4124
|
}
|
|
4086
|
-
},
|
|
4125
|
+
}, to = {
|
|
4087
4126
|
key: 0,
|
|
4088
4127
|
class: "pv-flex",
|
|
4089
4128
|
style: { "--flex-gap": "0.25rem" }
|
|
4090
|
-
},
|
|
4129
|
+
}, no = { class: "pv-text-body-sm" }, ro = {
|
|
4091
4130
|
key: 1,
|
|
4092
4131
|
class: "pv-text-body-sm pv-text-tertiary"
|
|
4093
|
-
},
|
|
4132
|
+
}, io = {
|
|
4094
4133
|
key: 2,
|
|
4095
4134
|
class: "pv-heading-2"
|
|
4096
|
-
},
|
|
4135
|
+
}, ao = {
|
|
4097
4136
|
key: 3,
|
|
4098
4137
|
class: "pv-text-body-md pv-text-secondary pv-text-subdued"
|
|
4099
|
-
},
|
|
4138
|
+
}, oo = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4100
4139
|
__name: "PvInsightCard",
|
|
4101
4140
|
props: {
|
|
4102
4141
|
icon: { default: "ai" },
|
|
@@ -4116,35 +4155,35 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4116
4155
|
emits: ["click", "icon-click"],
|
|
4117
4156
|
setup(e) {
|
|
4118
4157
|
let t = e, n = r(() => t.icon || t.insight);
|
|
4119
|
-
return (t, r) => (T(), i(
|
|
4158
|
+
return (t, r) => (T(), i(Qa, {
|
|
4120
4159
|
variant: "secondary",
|
|
4121
4160
|
interactive: e.interactive,
|
|
4122
4161
|
onClick: r[1] ||= (e) => t.$emit("click"),
|
|
4123
4162
|
class: "pv-relative"
|
|
4124
4163
|
}, {
|
|
4125
|
-
default:
|
|
4126
|
-
n.value ? (T(), o("div",
|
|
4164
|
+
default: H(() => [s("div", eo, [
|
|
4165
|
+
n.value ? (T(), o("div", to, [e.icon ? (T(), i(K, {
|
|
4127
4166
|
key: 0,
|
|
4128
4167
|
style: { color: "#218c88" },
|
|
4129
4168
|
name: e.icon,
|
|
4130
4169
|
size: 12
|
|
4131
|
-
}, null, 8, ["name"])) : a("", !0), s("span",
|
|
4132
|
-
e.upperLabel ? (T(), o("span",
|
|
4133
|
-
e.title ? (T(), o("span",
|
|
4134
|
-
e.description ? (T(), o("span",
|
|
4135
|
-
]), e.showButton ? (T(), i(
|
|
4170
|
+
}, null, 8, ["name"])) : a("", !0), s("span", no, N(e.insight), 1)])) : a("", !0),
|
|
4171
|
+
e.upperLabel ? (T(), o("span", ro, N(e.upperLabel), 1)) : a("", !0),
|
|
4172
|
+
e.title ? (T(), o("span", io, N(e.title), 1)) : a("", !0),
|
|
4173
|
+
e.description ? (T(), o("span", ao, N(e.description), 1)) : a("", !0)
|
|
4174
|
+
]), e.showButton ? (T(), i(J, {
|
|
4136
4175
|
key: 0,
|
|
4137
4176
|
"left-icon": "new-tab",
|
|
4138
4177
|
ariaLabel: "Open in new tab",
|
|
4139
4178
|
variant: "ghost",
|
|
4140
4179
|
size: "md",
|
|
4141
4180
|
class: "pv-insight-button",
|
|
4142
|
-
onClick: r[0] ||=
|
|
4181
|
+
onClick: r[0] ||= W((e) => t.$emit("icon-click"), ["stop"])
|
|
4143
4182
|
})) : a("", !0)]),
|
|
4144
4183
|
_: 1
|
|
4145
4184
|
}, 8, ["interactive"]));
|
|
4146
4185
|
}
|
|
4147
|
-
}), [["__scopeId", "data-v-c1185c07"]]),
|
|
4186
|
+
}), [["__scopeId", "data-v-c1185c07"]]), so = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4148
4187
|
__name: "PvExpandableContent",
|
|
4149
4188
|
props: {
|
|
4150
4189
|
lines: { default: 4 },
|
|
@@ -4174,7 +4213,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4174
4213
|
}, [s("p", {
|
|
4175
4214
|
class: "pv-line-clamp pv-text-body-md pv-stack-8",
|
|
4176
4215
|
style: x(c.value)
|
|
4177
|
-
}, [k(n.$slots, "default", {}, void 0, !0)], 4), u(
|
|
4216
|
+
}, [k(n.$slots, "default", {}, void 0, !0)], 4), u(J, {
|
|
4178
4217
|
label: i.value ? "Show Less" : "Show More",
|
|
4179
4218
|
variant: "ghost",
|
|
4180
4219
|
size: "md",
|
|
@@ -4182,7 +4221,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4182
4221
|
"left-icon": i.value ? "chevron-up" : "chevron-down"
|
|
4183
4222
|
}, null, 8, ["label", "left-icon"])], 6));
|
|
4184
4223
|
}
|
|
4185
|
-
}), [["__scopeId", "data-v-06cc192f"]]),
|
|
4224
|
+
}), [["__scopeId", "data-v-06cc192f"]]), co = { class: "pv-text-body-md" }, lo = /* @__PURE__ */ d({
|
|
4186
4225
|
__name: "PvToast",
|
|
4187
4226
|
props: {
|
|
4188
4227
|
variant: { default: "info" },
|
|
@@ -4203,13 +4242,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4203
4242
|
dark: "ai"
|
|
4204
4243
|
};
|
|
4205
4244
|
return (r, i) => (T(), o("div", { class: y(t[e.variant]) }, [
|
|
4206
|
-
u(
|
|
4245
|
+
u(K, {
|
|
4207
4246
|
name: e.icon ? e.icon : n[e.variant],
|
|
4208
4247
|
size: 20
|
|
4209
4248
|
}, null, 8, ["name"]),
|
|
4210
|
-
s("p",
|
|
4249
|
+
s("p", co, N(e.label), 1),
|
|
4211
4250
|
k(r.$slots, "default"),
|
|
4212
|
-
u(
|
|
4251
|
+
u(J, {
|
|
4213
4252
|
variant: "ghost",
|
|
4214
4253
|
inverse: e.variant === "dark",
|
|
4215
4254
|
size: "lg",
|
|
@@ -4219,22 +4258,22 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4219
4258
|
}, null, 8, ["inverse"])
|
|
4220
4259
|
], 2));
|
|
4221
4260
|
}
|
|
4222
|
-
}),
|
|
4261
|
+
}), uo = ["data-style"], fo = /* @__PURE__ */ d({
|
|
4223
4262
|
__name: "PvActionBar",
|
|
4224
4263
|
props: { variant: { default: "white" } },
|
|
4225
4264
|
setup(e) {
|
|
4226
4265
|
return (t, n) => (T(), o("div", {
|
|
4227
4266
|
class: "pv-action-bar-container",
|
|
4228
4267
|
"data-style": e.variant === "white" ? "white" : void 0
|
|
4229
|
-
}, [k(t.$slots, "default")], 8,
|
|
4268
|
+
}, [k(t.$slots, "default")], 8, uo));
|
|
4230
4269
|
}
|
|
4231
|
-
}),
|
|
4270
|
+
}), po = ["for"], mo = [
|
|
4232
4271
|
"rows",
|
|
4233
4272
|
"disabled",
|
|
4234
4273
|
"placeholder",
|
|
4235
4274
|
"id",
|
|
4236
4275
|
"data-invalid"
|
|
4237
|
-
],
|
|
4276
|
+
], ho = /* @__PURE__ */ d({
|
|
4238
4277
|
__name: "PvTextArea",
|
|
4239
4278
|
props: /* @__PURE__ */ g({
|
|
4240
4279
|
error: { type: Boolean },
|
|
@@ -4256,8 +4295,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4256
4295
|
key: 0,
|
|
4257
4296
|
class: "pv-label pv-stack-8",
|
|
4258
4297
|
for: e.id
|
|
4259
|
-
}, [k(r.$slots, "label")], 8,
|
|
4260
|
-
|
|
4298
|
+
}, [k(r.$slots, "label")], 8, po)) : a("", !0),
|
|
4299
|
+
U(s("textarea", _(r.$attrs, {
|
|
4261
4300
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
4262
4301
|
class: ["pv-textarea", {
|
|
4263
4302
|
"pv-stack-8": e.lowerLabel,
|
|
@@ -4268,7 +4307,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4268
4307
|
placeholder: e.placeholder,
|
|
4269
4308
|
id: e.id,
|
|
4270
4309
|
"data-invalid": e.error ? !0 : void 0
|
|
4271
|
-
}), null, 16,
|
|
4310
|
+
}), null, 16, mo), [[te, n.value]]),
|
|
4272
4311
|
e.lowerLabel ? (T(), o("p", {
|
|
4273
4312
|
key: 1,
|
|
4274
4313
|
style: { "margin-left": "12px" },
|
|
@@ -4279,20 +4318,20 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4279
4318
|
}, N(e.lowerLabel), 3)) : a("", !0)
|
|
4280
4319
|
], 64));
|
|
4281
4320
|
}
|
|
4282
|
-
}),
|
|
4321
|
+
}), go = {
|
|
4283
4322
|
class: "pv-flex pv-truncate",
|
|
4284
4323
|
style: {
|
|
4285
4324
|
"min-width": "0",
|
|
4286
4325
|
"min-height": "20px"
|
|
4287
4326
|
}
|
|
4288
|
-
},
|
|
4327
|
+
}, _o = ["title"], vo = /* @__PURE__ */ d({
|
|
4289
4328
|
__name: "PvSimpleItemTree",
|
|
4290
4329
|
props: {
|
|
4291
4330
|
label: {},
|
|
4292
4331
|
icon: {}
|
|
4293
4332
|
},
|
|
4294
4333
|
setup(e) {
|
|
4295
|
-
return (t, n) => (T(), o("div",
|
|
4334
|
+
return (t, n) => (T(), o("div", go, [e.icon ? (T(), i(K, {
|
|
4296
4335
|
key: 0,
|
|
4297
4336
|
name: e.icon
|
|
4298
4337
|
}, null, 8, ["name"])) : a("", !0), s("span", {
|
|
@@ -4302,17 +4341,17 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4302
4341
|
"min-width": "0"
|
|
4303
4342
|
},
|
|
4304
4343
|
title: e.label
|
|
4305
|
-
}, N(e.label), 9,
|
|
4344
|
+
}, N(e.label), 9, _o)]));
|
|
4306
4345
|
}
|
|
4307
|
-
}),
|
|
4346
|
+
}), yo = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4308
4347
|
__name: "PvTreeReorderIcon",
|
|
4309
4348
|
setup(e) {
|
|
4310
|
-
return (e, t) => (T(), i(
|
|
4349
|
+
return (e, t) => (T(), i(K, {
|
|
4311
4350
|
name: "reorder",
|
|
4312
4351
|
class: "reorder-icon pv-text-tertiary"
|
|
4313
4352
|
}));
|
|
4314
4353
|
}
|
|
4315
|
-
}), [["__scopeId", "data-v-1efb9068"]]),
|
|
4354
|
+
}), [["__scopeId", "data-v-1efb9068"]]), bo = /* @__PURE__ */ d({
|
|
4316
4355
|
__name: "PvButtonTreeItem",
|
|
4317
4356
|
props: {
|
|
4318
4357
|
selected: { type: Boolean },
|
|
@@ -4343,11 +4382,11 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4343
4382
|
]),
|
|
4344
4383
|
onClick: o
|
|
4345
4384
|
}, {
|
|
4346
|
-
default:
|
|
4385
|
+
default: H(() => [k(t.$slots, "default")]),
|
|
4347
4386
|
_: 3
|
|
4348
4387
|
}, 8, ["class"]));
|
|
4349
4388
|
}
|
|
4350
|
-
}),
|
|
4389
|
+
}), xo = /* @__PURE__ */ d({
|
|
4351
4390
|
__name: "PvCheckboxTreeItem",
|
|
4352
4391
|
props: {
|
|
4353
4392
|
selected: { type: Boolean },
|
|
@@ -4376,13 +4415,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4376
4415
|
"pv-tree-item-selected": e.selected,
|
|
4377
4416
|
"pv-tree-item-disabled": e.disableSelection
|
|
4378
4417
|
}
|
|
4379
|
-
]) }, [e.disableSelection ? a("", !0) : (T(), i(
|
|
4418
|
+
]) }, [e.disableSelection ? a("", !0) : (T(), i(za, {
|
|
4380
4419
|
key: 0,
|
|
4381
4420
|
checked: e.selected,
|
|
4382
4421
|
onClick: s
|
|
4383
4422
|
}, null, 8, ["checked"])), k(t.$slots, "default")], 2));
|
|
4384
4423
|
}
|
|
4385
|
-
}),
|
|
4424
|
+
}), So = () => {
|
|
4386
4425
|
let e = D(null);
|
|
4387
4426
|
return {
|
|
4388
4427
|
hoveredId: e,
|
|
@@ -4393,15 +4432,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4393
4432
|
e.value = null;
|
|
4394
4433
|
}
|
|
4395
4434
|
};
|
|
4396
|
-
},
|
|
4435
|
+
}, Co = Symbol("DraggingStateKey"), wo = Symbol("DraggingGroupNameKey"), To = Symbol("DropIndicatorKey"), Eo = () => {
|
|
4397
4436
|
let e = D(!1), t = D(null), n = D(null);
|
|
4398
|
-
return E(
|
|
4437
|
+
return E(Co, e), E(wo, t), E(To, n), {
|
|
4399
4438
|
isDragging: e,
|
|
4400
4439
|
draggingGroupName: t,
|
|
4401
4440
|
dropIndicator: n
|
|
4402
4441
|
};
|
|
4403
|
-
},
|
|
4404
|
-
let e = m(
|
|
4442
|
+
}, Do = () => {
|
|
4443
|
+
let e = m(Co, D(!1)), t = m(wo, D(null)), n = m(To, D(null)), r = (n) => {
|
|
4405
4444
|
e.value = !0, t.value = n ?? null;
|
|
4406
4445
|
}, i = () => {
|
|
4407
4446
|
e.value = !1, t.value = null, o();
|
|
@@ -4423,8 +4462,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4423
4462
|
onDragStart: r,
|
|
4424
4463
|
onDragEnd: i
|
|
4425
4464
|
};
|
|
4426
|
-
},
|
|
4427
|
-
let { setDropIndicator: e, clearDropIndicator: t } =
|
|
4465
|
+
}, Oo = () => {
|
|
4466
|
+
let { setDropIndicator: e, clearDropIndicator: t } = Do();
|
|
4428
4467
|
return {
|
|
4429
4468
|
getDragGroupConfig: (e, t) => {
|
|
4430
4469
|
let n = e[t.field]?.dragAndDropConfig;
|
|
@@ -4459,8 +4498,8 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4459
4498
|
return i === !1 ? !1 : i === !0 || !n ? !0 : Array.isArray(i) ? i.includes(n) : (r?.name ?? "pv-tree") === n;
|
|
4460
4499
|
}
|
|
4461
4500
|
};
|
|
4462
|
-
},
|
|
4463
|
-
let { dropIndicator: e } =
|
|
4501
|
+
}, ko = () => {
|
|
4502
|
+
let { dropIndicator: e } = Do();
|
|
4464
4503
|
return { dragAndDropIndicatorClasses: (t) => {
|
|
4465
4504
|
let n = e.value, r = n?.siblingTargetId !== void 0 && n?.siblingTargetId !== null && n?.siblingTargetId === t.node_id;
|
|
4466
4505
|
return {
|
|
@@ -4469,13 +4508,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4469
4508
|
"pv-drop-indicator-parent": n?.parentId === t.node_id
|
|
4470
4509
|
};
|
|
4471
4510
|
} };
|
|
4472
|
-
},
|
|
4511
|
+
}, Ao = { class: "pv-flex pv-full-width" }, jo = {
|
|
4473
4512
|
key: 0,
|
|
4474
4513
|
class: "tree-component-nested-middle-symbol"
|
|
4475
|
-
},
|
|
4514
|
+
}, Mo = {
|
|
4476
4515
|
key: 1,
|
|
4477
4516
|
class: "tree-component-end-symbol"
|
|
4478
|
-
},
|
|
4517
|
+
}, No = ["data-parent-id"], Po = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4479
4518
|
__name: "PvSimpleNestedTreeItem",
|
|
4480
4519
|
props: {
|
|
4481
4520
|
option: {},
|
|
@@ -4492,9 +4531,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4492
4531
|
},
|
|
4493
4532
|
emits: ["handle-tree-select", "update:children"],
|
|
4494
4533
|
setup(e, { emit: t }) {
|
|
4495
|
-
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } =
|
|
4534
|
+
let n = e, c = t, { isDragging: l, draggingGroupName: d, onDragStart: f, onDragEnd: p } = Do(), { dragAndDropIndicatorClasses: m } = ko(), { hoveredId: h, handleMouseEnter: g, handleMouseLeave: _ } = So(), { canItemBeDragged: v, getDragAndDropDisabled: b, handleMoveCallback: S, getDragGroupConfig: C, canAcceptDrop: w } = Oo(), E = () => {
|
|
4496
4535
|
f(C(n.settings, n.option).name);
|
|
4497
|
-
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ?
|
|
4536
|
+
}, D = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), O = r(() => n.settings[n.option.field]?.checkbox ? xo : bo), k = r(() => n.settings[n.parentField]?.showNestedTree), M = r(() => n.index === n.totalSiblings - 1), N = r({
|
|
4498
4537
|
get: () => [...n.option.children || []],
|
|
4499
4538
|
set: (e) => {
|
|
4500
4539
|
c("update:children", {
|
|
@@ -4522,9 +4561,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4522
4561
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4523
4562
|
onMouseenter: n[1] ||= (t) => P(g)(e.option.node_id),
|
|
4524
4563
|
onMouseleave: n[2] ||= (e) => P(_)(),
|
|
4525
|
-
onContextmenu: n[3] ||=
|
|
4564
|
+
onContextmenu: n[3] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4526
4565
|
}, {
|
|
4527
|
-
default:
|
|
4566
|
+
default: H(() => [U(u(yo, null, null, 512), [[ne, P(h) === e.option.node_id && P(v)(e.isDraggable, e.settings, e.option)]]), s("div", Ao, [!M.value && k.value ? (T(), o("div", jo)) : k.value ? (T(), o("div", Mo)) : a("", !0), e.settings[e.option.field]?.renderer ? (T(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4528
4567
|
key: 2,
|
|
4529
4568
|
option: e.option,
|
|
4530
4569
|
settings: e.settings,
|
|
@@ -4535,7 +4574,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4535
4574
|
"settings",
|
|
4536
4575
|
"is-draggable",
|
|
4537
4576
|
"params"
|
|
4538
|
-
])) : (T(), i(
|
|
4577
|
+
])) : (T(), i(vo, {
|
|
4539
4578
|
key: 3,
|
|
4540
4579
|
label: e.option.label,
|
|
4541
4580
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4549,7 +4588,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4549
4588
|
"label",
|
|
4550
4589
|
"icon",
|
|
4551
4590
|
"style"
|
|
4552
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(
|
|
4591
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4553
4592
|
modelValue: N.value,
|
|
4554
4593
|
"onUpdate:modelValue": n[6] ||= (e) => N.value = e,
|
|
4555
4594
|
"parent-id": e.option.node_id,
|
|
@@ -4562,7 +4601,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4562
4601
|
onEnd: P(p),
|
|
4563
4602
|
onAdd: P(p)
|
|
4564
4603
|
}, {
|
|
4565
|
-
item:
|
|
4604
|
+
item: H(({ element: i, index: a }) => [u(r, {
|
|
4566
4605
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4567
4606
|
option: i,
|
|
4568
4607
|
settings: e.settings,
|
|
@@ -4597,13 +4636,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4597
4636
|
"class",
|
|
4598
4637
|
"onEnd",
|
|
4599
4638
|
"onAdd"
|
|
4600
|
-
])], 8,
|
|
4639
|
+
])], 8, No)], 6);
|
|
4601
4640
|
};
|
|
4602
4641
|
}
|
|
4603
|
-
}), [["__scopeId", "data-v-ecab1929"]]),
|
|
4642
|
+
}), [["__scopeId", "data-v-ecab1929"]]), Fo = {
|
|
4604
4643
|
class: "pv-flow",
|
|
4605
4644
|
style: { "--flow-size": "0px" }
|
|
4606
|
-
},
|
|
4645
|
+
}, Io = ["data-parent-id"], Lo = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4607
4646
|
__name: "PvSimpleNestedTree",
|
|
4608
4647
|
props: {
|
|
4609
4648
|
option: {},
|
|
@@ -4616,9 +4655,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4616
4655
|
},
|
|
4617
4656
|
emits: ["handle-tree-select", "update:children"],
|
|
4618
4657
|
setup(e, { emit: t }) {
|
|
4619
|
-
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } =
|
|
4658
|
+
let n = e, a = t, { hoveredId: c, handleMouseEnter: l, handleMouseLeave: d } = So(), { getDragAndDropDisabled: f, canItemBeDragged: p, handleMoveCallback: m, getDragGroupConfig: h, canAcceptDrop: g } = Oo(), { isDragging: _, draggingGroupName: v, onDragStart: b, onDragEnd: S } = Do(), { dragAndDropIndicatorClasses: C } = ko(), w = () => {
|
|
4620
4659
|
b(h(n.settings, n.option).name);
|
|
4621
|
-
}, E = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + E.value : n.level + 1 + E.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ?
|
|
4660
|
+
}, E = r(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), D = r(() => n.settings[n.option.field]?.showNestedTree ? n.level + E.value : n.level + 1 + E.value), O = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), k = (e) => n.settings[e.field]?.checkbox ? xo : bo, A = r({
|
|
4622
4661
|
get: () => [...n.option.children || []],
|
|
4623
4662
|
set: (e) => {
|
|
4624
4663
|
a("update:children", {
|
|
@@ -4627,7 +4666,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4627
4666
|
});
|
|
4628
4667
|
}
|
|
4629
4668
|
}), M = r(() => n.isParentPathOpen ?? !0);
|
|
4630
|
-
return (t, n) => (T(), o("div",
|
|
4669
|
+
return (t, n) => (T(), o("div", Fo, [(T(), i(j(k(e.option)), {
|
|
4631
4670
|
option: e.option,
|
|
4632
4671
|
selected: O(e.option.node_id),
|
|
4633
4672
|
"disable-selection": e.disableSelection,
|
|
@@ -4641,9 +4680,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4641
4680
|
onHandleSelected: n[0] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4642
4681
|
onMouseenter: n[1] ||= (t) => P(l)(e.option.node_id),
|
|
4643
4682
|
onMouseleave: n[2] ||= (e) => P(d)(),
|
|
4644
|
-
onContextmenu: n[3] ||=
|
|
4683
|
+
onContextmenu: n[3] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4645
4684
|
}, {
|
|
4646
|
-
default:
|
|
4685
|
+
default: H(() => [U(u(yo, null, null, 512), [[ne, P(c) === e.option.node_id && P(p)(e.isDraggable, e.settings, e.option)]]), e.settings[e.option.field]?.renderer ? (T(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4647
4686
|
key: 0,
|
|
4648
4687
|
option: e.option,
|
|
4649
4688
|
settings: e.settings,
|
|
@@ -4654,7 +4693,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4654
4693
|
"settings",
|
|
4655
4694
|
"selected",
|
|
4656
4695
|
"params"
|
|
4657
|
-
])) : (T(), i(
|
|
4696
|
+
])) : (T(), i(vo, {
|
|
4658
4697
|
key: 1,
|
|
4659
4698
|
label: e.option.label,
|
|
4660
4699
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4668,7 +4707,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4668
4707
|
"icon",
|
|
4669
4708
|
"class",
|
|
4670
4709
|
"style"
|
|
4671
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(
|
|
4710
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4672
4711
|
modelValue: A.value,
|
|
4673
4712
|
"onUpdate:modelValue": n[6] ||= (e) => A.value = e,
|
|
4674
4713
|
"parent-id": e.option.node_id,
|
|
@@ -4681,7 +4720,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4681
4720
|
onEnd: P(S),
|
|
4682
4721
|
onAdd: P(S)
|
|
4683
4722
|
}, {
|
|
4684
|
-
item:
|
|
4723
|
+
item: H(({ element: r, index: i }) => [u(Po, {
|
|
4685
4724
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4686
4725
|
option: r,
|
|
4687
4726
|
settings: e.settings,
|
|
@@ -4716,9 +4755,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4716
4755
|
"class",
|
|
4717
4756
|
"onEnd",
|
|
4718
4757
|
"onAdd"
|
|
4719
|
-
])], 8,
|
|
4758
|
+
])], 8, Io)]));
|
|
4720
4759
|
}
|
|
4721
|
-
}), [["__scopeId", "data-v-8e33078d"]]),
|
|
4760
|
+
}), [["__scopeId", "data-v-8e33078d"]]), Ro = ["data-parent-id"], zo = { key: 2 }, Bo = ["data-parent-id"], Vo = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
4722
4761
|
__name: "PvTreeItem",
|
|
4723
4762
|
props: {
|
|
4724
4763
|
option: {},
|
|
@@ -4740,15 +4779,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4740
4779
|
emits: ["handle-tree-select", "update:children"],
|
|
4741
4780
|
setup(e, { emit: t }) {
|
|
4742
4781
|
let n = e, a = t, c = D(n.treeOpen ?? n.settings[n.option.field]?.defaultExpanded ?? !1);
|
|
4743
|
-
|
|
4782
|
+
V(() => n.treeOpen, (e) => {
|
|
4744
4783
|
e !== void 0 && (c.value = e);
|
|
4745
4784
|
});
|
|
4746
|
-
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } =
|
|
4785
|
+
let { getDragGroupConfig: l, getDragAndDropDisabled: d, canItemBeDragged: f, handleMoveCallback: p, childrenDraggable: m, canAcceptDrop: h } = Oo(), { hoveredId: g, handleMouseEnter: _, handleMouseLeave: v } = So(), { isDragging: b, draggingGroupName: S, onDragStart: C, onDragEnd: w } = Do(), { dragAndDropIndicatorClasses: E } = ko(), O = () => {
|
|
4747
4786
|
C(l(n.settings, n.option).name);
|
|
4748
4787
|
}, k = (e) => ({
|
|
4749
4788
|
paddingLeft: `${e * 24 + (n.settings[n.option.field]?.additionalNestingLevel ?? 0) * 24}px`,
|
|
4750
4789
|
"--border-color": "#121313"
|
|
4751
|
-
}), M = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), N = r(() => n.settings[n.option.field]?.checkbox ?
|
|
4790
|
+
}), M = (e) => n.selectedOptions && n.selectedOptions.some((t) => t.node_id === e), N = r(() => n.settings[n.option.field]?.checkbox ? xo : bo), F = r({
|
|
4752
4791
|
get: () => [...n.option.children || []],
|
|
4753
4792
|
set: (e) => {
|
|
4754
4793
|
a("update:children", {
|
|
@@ -4756,7 +4795,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4756
4795
|
newChildren: e
|
|
4757
4796
|
});
|
|
4758
4797
|
}
|
|
4759
|
-
}), I = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)),
|
|
4798
|
+
}), I = r(() => !!(n.option.children?.length && n.settings[n.option.field]?.accordion)), ee = r(() => n.isParentPathOpen ?? !0 ? I.value && n.level === 0 ? c.value : !0 : !1);
|
|
4760
4799
|
return (t, n) => {
|
|
4761
4800
|
let r = A("PvTreeItem", !0);
|
|
4762
4801
|
return e.option.children && e.option.children.length > 0 && e.settings && e.settings[e.option.field]?.accordion ? (T(), i(Er, {
|
|
@@ -4773,7 +4812,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4773
4812
|
enableTriggerFullWidth: "",
|
|
4774
4813
|
summaryStyles: {
|
|
4775
4814
|
...k(e.level),
|
|
4776
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4815
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ee.value }) ?? {},
|
|
4777
4816
|
"justify-content": "flex-start"
|
|
4778
4817
|
},
|
|
4779
4818
|
summaryClasses: {
|
|
@@ -4784,9 +4823,9 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4784
4823
|
"chevron-variant": "horizontal",
|
|
4785
4824
|
onSummaryMouseenter: n[4] ||= (t) => P(_)(e.option.node_id),
|
|
4786
4825
|
onSummaryMouseleave: n[5] ||= (e) => P(v)(),
|
|
4787
|
-
onContextmenu: n[6] ||=
|
|
4826
|
+
onContextmenu: n[6] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4788
4827
|
}, {
|
|
4789
|
-
trigger:
|
|
4828
|
+
trigger: H(() => [U(u(yo, null, null, 512), [[ne, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (T(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4790
4829
|
key: 0,
|
|
4791
4830
|
option: e.option,
|
|
4792
4831
|
settings: e.settings,
|
|
@@ -4797,12 +4836,12 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4797
4836
|
"settings",
|
|
4798
4837
|
"selected",
|
|
4799
4838
|
"params"
|
|
4800
|
-
])) : (T(), i(
|
|
4839
|
+
])) : (T(), i(vo, {
|
|
4801
4840
|
key: 1,
|
|
4802
4841
|
label: e.option.label,
|
|
4803
4842
|
icon: e.settings[e.option.field]?.icon
|
|
4804
4843
|
}, null, 8, ["label", "icon"]))]),
|
|
4805
|
-
default:
|
|
4844
|
+
default: H(() => [s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4806
4845
|
modelValue: F.value,
|
|
4807
4846
|
"onUpdate:modelValue": n[2] ||= (e) => F.value = e,
|
|
4808
4847
|
"parent-id": e.option.node_id,
|
|
@@ -4815,7 +4854,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4815
4854
|
onEnd: P(w),
|
|
4816
4855
|
onAdd: P(w)
|
|
4817
4856
|
}, {
|
|
4818
|
-
item:
|
|
4857
|
+
item: H(({ element: i }) => [u(r, {
|
|
4819
4858
|
"is-parent-path-open": e.isParentPathOpen && c.value,
|
|
4820
4859
|
"selected-options": e.selectedOptions,
|
|
4821
4860
|
option: i,
|
|
@@ -4846,7 +4885,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4846
4885
|
"class",
|
|
4847
4886
|
"onEnd",
|
|
4848
4887
|
"onAdd"
|
|
4849
|
-
])], 8,
|
|
4888
|
+
])], 8, Ro)]),
|
|
4850
4889
|
_: 1
|
|
4851
4890
|
}, 8, [
|
|
4852
4891
|
"modelValue",
|
|
@@ -4854,7 +4893,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4854
4893
|
"summaryStyles",
|
|
4855
4894
|
"summaryClasses",
|
|
4856
4895
|
"defaultOpen"
|
|
4857
|
-
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (T(), i(
|
|
4896
|
+
])) : e.option.children && e.option.children.length > 0 && e.settings && !e.settings[e.option.field]?.accordion ? (T(), i(Lo, {
|
|
4858
4897
|
key: 1,
|
|
4859
4898
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4860
4899
|
"selected-options": e.selectedOptions,
|
|
@@ -4875,7 +4914,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4875
4914
|
"is-draggable",
|
|
4876
4915
|
"disable-selection",
|
|
4877
4916
|
"is-last-root-item"
|
|
4878
|
-
])) : (T(), o("div",
|
|
4917
|
+
])) : (T(), o("div", zo, [(T(), i(j(N.value), {
|
|
4879
4918
|
class: y({ ...P(E)(e.option) }),
|
|
4880
4919
|
option: e.option,
|
|
4881
4920
|
selected: M(e.option.node_id),
|
|
@@ -4884,14 +4923,14 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4884
4923
|
icon: e.settings[e.option.field]?.icon,
|
|
4885
4924
|
style: x({
|
|
4886
4925
|
...k(e.level),
|
|
4887
|
-
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible:
|
|
4926
|
+
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: ee.value }) ?? {}
|
|
4888
4927
|
}),
|
|
4889
4928
|
onHandleSelected: n[9] ||= (e) => t.$emit("handle-tree-select", e),
|
|
4890
4929
|
onMouseenter: n[10] ||= (t) => P(_)(e.option.node_id),
|
|
4891
4930
|
onMouseleave: n[11] ||= (e) => P(v)(),
|
|
4892
|
-
onContextmenu: n[12] ||=
|
|
4931
|
+
onContextmenu: n[12] ||= W((t) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(t, e.option), ["stop"])
|
|
4893
4932
|
}, {
|
|
4894
|
-
default:
|
|
4933
|
+
default: H(() => [U(u(yo, null, null, 512), [[ne, P(g) === e.option.node_id && P(f)(e.isDraggable, e.settings, e.option) && e.level > 0]]), e.settings[e.option.field]?.renderer ? (T(), i(j(e.settings[e.option.field]?.renderer), {
|
|
4895
4934
|
key: 0,
|
|
4896
4935
|
option: e.option,
|
|
4897
4936
|
settings: e.settings,
|
|
@@ -4900,7 +4939,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4900
4939
|
"option",
|
|
4901
4940
|
"settings",
|
|
4902
4941
|
"params"
|
|
4903
|
-
])) : (T(), i(
|
|
4942
|
+
])) : (T(), i(vo, {
|
|
4904
4943
|
key: 1,
|
|
4905
4944
|
label: e.option.label,
|
|
4906
4945
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4914,7 +4953,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4914
4953
|
"label",
|
|
4915
4954
|
"icon",
|
|
4916
4955
|
"style"
|
|
4917
|
-
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(
|
|
4956
|
+
])), s("div", { "data-parent-id": e.option.node_id }, [u(P(_e), {
|
|
4918
4957
|
modelValue: F.value,
|
|
4919
4958
|
"onUpdate:modelValue": n[15] ||= (e) => F.value = e,
|
|
4920
4959
|
"parent-id": e.option.node_id,
|
|
@@ -4927,7 +4966,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4927
4966
|
onEnd: P(w),
|
|
4928
4967
|
onAdd: P(w)
|
|
4929
4968
|
}, {
|
|
4930
|
-
item:
|
|
4969
|
+
item: H(({ element: i }) => [u(r, {
|
|
4931
4970
|
"is-parent-path-open": e.isParentPathOpen,
|
|
4932
4971
|
"selected-options": e.selectedOptions,
|
|
4933
4972
|
option: i,
|
|
@@ -4956,10 +4995,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4956
4995
|
"class",
|
|
4957
4996
|
"onEnd",
|
|
4958
4997
|
"onAdd"
|
|
4959
|
-
])], 8,
|
|
4998
|
+
])], 8, Bo)]));
|
|
4960
4999
|
};
|
|
4961
5000
|
}
|
|
4962
|
-
}), [["__scopeId", "data-v-7589558e"]]),
|
|
5001
|
+
}), [["__scopeId", "data-v-7589558e"]]), Ho = (e) => {
|
|
4963
5002
|
let t = [], n = !1;
|
|
4964
5003
|
function r(e) {
|
|
4965
5004
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = [];
|
|
@@ -4981,7 +5020,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
4981
5020
|
}
|
|
4982
5021
|
let i = () => {
|
|
4983
5022
|
if (n = !1, t.length === 0) return;
|
|
4984
|
-
let i = t.splice(0, t.length), a =
|
|
5023
|
+
let i = t.splice(0, t.length), a = ve(e.value), { nodeById: o, parentById: s } = r(a), c = /* @__PURE__ */ new Map();
|
|
4985
5024
|
for (let e of i) c.set(e.optionId, e.newChildren);
|
|
4986
5025
|
for (let [e, t] of c) {
|
|
4987
5026
|
let n = o.get(e);
|
|
@@ -5002,7 +5041,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5002
5041
|
newChildren: r
|
|
5003
5042
|
}), n || (n = !0, v(i));
|
|
5004
5043
|
} };
|
|
5005
|
-
},
|
|
5044
|
+
}, Uo = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
5006
5045
|
__name: "PvTree",
|
|
5007
5046
|
props: /* @__PURE__ */ g({
|
|
5008
5047
|
settings: {},
|
|
@@ -5032,14 +5071,14 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5032
5071
|
"update:treeOpen"
|
|
5033
5072
|
],
|
|
5034
5073
|
setup(e) {
|
|
5035
|
-
m(
|
|
5036
|
-
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } =
|
|
5074
|
+
m(Co, null) || Eo();
|
|
5075
|
+
let n = e, i = I(e, "selectedOptions"), a = I(e, "options"), c = I(e, "treeOpen"), { handleUpdateChildren: l } = Ho(a), d = (e, t) => {
|
|
5037
5076
|
t.metaKey ? i.value?.some((t) => t.node_id === e.node_id) ? i.value = i.value?.filter((t) => t.node_id !== e.node_id) : i.value = [...i.value || [], e] : i.value?.some((t) => t.node_id === e.node_id) ? i.value = [] : i.value = [e];
|
|
5038
5077
|
}, f = r(() => Object.keys(n.settings).reduce((e, t) => (e[t] = {
|
|
5039
5078
|
...n.defaultSettings,
|
|
5040
5079
|
...n.settings[t]
|
|
5041
5080
|
}, e), {}));
|
|
5042
|
-
return (n, r) => (T(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(T(!0), o(t, null, O(a.value, (t, n) => (T(), o("div", { key: t.node_id }, [u(
|
|
5081
|
+
return (n, r) => (T(), o("div", null, [s("div", { class: y(["pv-tree", { "pv-tree--disable-selection": e.disableSelection }]) }, [(T(!0), o(t, null, O(a.value, (t, n) => (T(), o("div", { key: t.node_id }, [u(Vo, {
|
|
5043
5082
|
"is-last-root-item": n === a.value.length - 1,
|
|
5044
5083
|
"is-parent-path-open": !0,
|
|
5045
5084
|
"tree-open": c.value,
|
|
@@ -5062,15 +5101,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5062
5101
|
"onUpdate:children"
|
|
5063
5102
|
])]))), 128))], 2)]));
|
|
5064
5103
|
}
|
|
5065
|
-
}), [["__scopeId", "data-v-2896bb8b"]]),
|
|
5104
|
+
}), [["__scopeId", "data-v-2896bb8b"]]), Wo = /* @__PURE__ */ d({
|
|
5066
5105
|
__name: "PvTreeGroup",
|
|
5067
5106
|
setup(e) {
|
|
5068
|
-
return
|
|
5107
|
+
return Eo(), (e, t) => k(e.$slots, "default");
|
|
5069
5108
|
}
|
|
5070
|
-
}),
|
|
5109
|
+
}), Go = {
|
|
5071
5110
|
key: 0,
|
|
5072
5111
|
class: "pv-text-brand pv-text-title-sm pv-stack-4"
|
|
5073
|
-
},
|
|
5112
|
+
}, Ko = ["data-disabled"], qo = /* @__PURE__ */ d({
|
|
5074
5113
|
__name: "PvProgressBar",
|
|
5075
5114
|
props: {
|
|
5076
5115
|
progress: {},
|
|
@@ -5079,19 +5118,19 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5079
5118
|
},
|
|
5080
5119
|
setup(e) {
|
|
5081
5120
|
let n = e;
|
|
5082
|
-
return (e, r) => (T(), o(t, null, [n.showLabel ? (T(), o("p",
|
|
5121
|
+
return (e, r) => (T(), o(t, null, [n.showLabel ? (T(), o("p", Go, N(n.progress) + "% Complete", 1)) : a("", !0), s("div", {
|
|
5083
5122
|
class: "pv-progress-bar",
|
|
5084
5123
|
"data-disabled": n.disabled ? !0 : void 0,
|
|
5085
5124
|
style: x({ "--progress": `${n.progress}%` })
|
|
5086
|
-
}, null, 12,
|
|
5125
|
+
}, null, 12, Ko)], 64));
|
|
5087
5126
|
}
|
|
5088
|
-
}),
|
|
5127
|
+
}), Jo = {
|
|
5089
5128
|
class: "pv-flex",
|
|
5090
5129
|
style: {
|
|
5091
5130
|
"--flex-gap": "4px",
|
|
5092
5131
|
height: "24px"
|
|
5093
5132
|
}
|
|
5094
|
-
},
|
|
5133
|
+
}, Yo = /* @__PURE__ */ d({
|
|
5095
5134
|
__name: "PvDistributionBar",
|
|
5096
5135
|
props: { values: {} },
|
|
5097
5136
|
setup(e) {
|
|
@@ -5114,13 +5153,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5114
5153
|
default: return "pv-data-surface-visualization-1";
|
|
5115
5154
|
}
|
|
5116
5155
|
};
|
|
5117
|
-
return (n, r) => (T(), o("div",
|
|
5156
|
+
return (n, r) => (T(), o("div", Jo, [(T(!0), o(t, null, O(e.values, (e, t) => (T(), o("div", {
|
|
5118
5157
|
key: t,
|
|
5119
5158
|
class: y([s(t)]),
|
|
5120
5159
|
style: x(a(e, t))
|
|
5121
5160
|
}, null, 6))), 128))]));
|
|
5122
5161
|
}
|
|
5123
|
-
}),
|
|
5162
|
+
}), Xo = () => {
|
|
5124
5163
|
let e = (e, n) => {
|
|
5125
5164
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
5126
5165
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -5134,13 +5173,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5134
5173
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
5135
5174
|
}
|
|
5136
5175
|
};
|
|
5137
|
-
},
|
|
5176
|
+
}, Zo = { class: "pv-flex" }, Qo = {
|
|
5138
5177
|
key: 0,
|
|
5139
5178
|
class: "pv-text-body-xs"
|
|
5140
|
-
},
|
|
5179
|
+
}, $o = { key: 0 }, es = {
|
|
5141
5180
|
class: "pv-text-subdued pv-text-body-xs",
|
|
5142
5181
|
style: { "font-weight": "500" }
|
|
5143
|
-
},
|
|
5182
|
+
}, ts = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
5144
5183
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
5145
5184
|
props: {
|
|
5146
5185
|
id: {},
|
|
@@ -5172,13 +5211,13 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5172
5211
|
let e = RegExp(`(${d.value})`, "gi");
|
|
5173
5212
|
i.value.innerHTML = l.value.replace(e, "<span style=\"font-weight: bold;\">$1</span>");
|
|
5174
5213
|
}
|
|
5175
|
-
}), (e, t) => (T(), o("div", null, [s("div",
|
|
5214
|
+
}), (e, t) => (T(), o("div", null, [s("div", Zo, [u(K, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", {
|
|
5176
5215
|
ref_key: "queryOptionText",
|
|
5177
5216
|
ref: i,
|
|
5178
5217
|
class: "pv-text-body-md"
|
|
5179
|
-
}, N(l.value), 513), f.value ? (T(), o("p",
|
|
5218
|
+
}, N(l.value), 513), f.value ? (T(), o("p", Qo, [c.value ? a("", !0) : (T(), o("span", $o, "Search in ")), s("span", es, N(f.value), 1)])) : a("", !0)])])]));
|
|
5180
5219
|
}
|
|
5181
|
-
}), [["__scopeId", "data-v-4e159eee"]]),
|
|
5220
|
+
}), [["__scopeId", "data-v-4e159eee"]]), ns = /* @__PURE__ */ d({
|
|
5182
5221
|
__name: "QueryFormatter",
|
|
5183
5222
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
5184
5223
|
modelValue: { required: !0 },
|
|
@@ -5192,7 +5231,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5192
5231
|
}),
|
|
5193
5232
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
5194
5233
|
setup(e) {
|
|
5195
|
-
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } =
|
|
5234
|
+
let n = e, s = I(e, "modelValue"), c = I(e, "wrap-content"), { removeQueryOption: l } = Xo(), u = r(() => {
|
|
5196
5235
|
let e = s.value?.queryTerms || [];
|
|
5197
5236
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
5198
5237
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -5208,7 +5247,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5208
5247
|
};
|
|
5209
5248
|
l(s.value, t);
|
|
5210
5249
|
};
|
|
5211
|
-
return (e, n) => (T(), o(t, null, [(T(!0), o(t, null, O(u.value, (e, t) => (T(), i(
|
|
5250
|
+
return (e, n) => (T(), o(t, null, [(T(!0), o(t, null, O(u.value, (e, t) => (T(), i(et, {
|
|
5212
5251
|
key: `${t}-${e.queryText}`,
|
|
5213
5252
|
variant: p(e),
|
|
5214
5253
|
label: f(e),
|
|
@@ -5218,23 +5257,23 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5218
5257
|
"variant",
|
|
5219
5258
|
"label",
|
|
5220
5259
|
"onHandleClose"
|
|
5221
|
-
]))), 128)), d.value > 0 ? (T(), i(
|
|
5260
|
+
]))), 128)), d.value > 0 ? (T(), i(et, {
|
|
5222
5261
|
key: 0,
|
|
5223
5262
|
label: `+${d.value}`,
|
|
5224
5263
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
5225
5264
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
5226
5265
|
}
|
|
5227
|
-
}),
|
|
5266
|
+
}), rs = [
|
|
5228
5267
|
"disabled",
|
|
5229
5268
|
"placeholder",
|
|
5230
5269
|
"data-invalid"
|
|
5231
|
-
],
|
|
5270
|
+
], is = {
|
|
5232
5271
|
key: 2,
|
|
5233
5272
|
class: "pv-text-red pv-text-body-xs"
|
|
5234
|
-
},
|
|
5273
|
+
}, as = {
|
|
5235
5274
|
key: 1,
|
|
5236
5275
|
class: "pv-text-center"
|
|
5237
|
-
},
|
|
5276
|
+
}, os = /* @__PURE__ */ q(/* @__PURE__ */ d({
|
|
5238
5277
|
__name: "PvQueryBuilderInput",
|
|
5239
5278
|
props: /* @__PURE__ */ g({
|
|
5240
5279
|
placeholder: { default: "Search" },
|
|
@@ -5282,10 +5321,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5282
5321
|
"update:options"
|
|
5283
5322
|
],
|
|
5284
5323
|
setup(e) {
|
|
5285
|
-
let n = e, c = { renderer:
|
|
5324
|
+
let n = e, c = { renderer: ts }, l = L("search-input"), d = I(e, "searchText"), f = I(e, "query"), p = I(e, "options"), { addQueryOption: m, containsQueryOption: h } = Xo(), g = D(!1), v = D(!1), b = D(!1), S = r(() => f.value === null ? n.placeholder : ""), C = D(null), w = r(() => C.value !== null && C.value !== "" && !v.value), E = () => {
|
|
5286
5325
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
5287
5326
|
};
|
|
5288
|
-
n.enableCustomOptionsInput &&
|
|
5327
|
+
n.enableCustomOptionsInput && ae("Enter", () => {
|
|
5289
5328
|
d.value.trim() && k();
|
|
5290
5329
|
}, { target: l });
|
|
5291
5330
|
let k = () => {
|
|
@@ -5306,7 +5345,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5306
5345
|
context: e.queryTerm
|
|
5307
5346
|
}));
|
|
5308
5347
|
});
|
|
5309
|
-
|
|
5348
|
+
V([
|
|
5310
5349
|
A,
|
|
5311
5350
|
d,
|
|
5312
5351
|
() => n.optionsLoading
|
|
@@ -5334,19 +5373,19 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5334
5373
|
let t = e.target;
|
|
5335
5374
|
t.isContentEditable || t.closest("[contenteditable=\"true\"]") || t.tagName === "BUTTON" || t.tagName === "SVG" || t.closest("button") || l.value?.focus();
|
|
5336
5375
|
}
|
|
5337
|
-
function
|
|
5376
|
+
function ee(e) {
|
|
5338
5377
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
5339
5378
|
}
|
|
5340
5379
|
let R = () => {
|
|
5341
5380
|
d.value = "";
|
|
5342
5381
|
};
|
|
5343
|
-
return (n, r) =>
|
|
5382
|
+
return (n, r) => U((T(), o("div", {
|
|
5344
5383
|
ref: "query-builder-input",
|
|
5345
5384
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
5346
|
-
onFocus:
|
|
5385
|
+
onFocus: ee,
|
|
5347
5386
|
onClick: F
|
|
5348
5387
|
}, [
|
|
5349
|
-
e.hideSearchIcon ? a("", !0) : (T(), i(
|
|
5388
|
+
e.hideSearchIcon ? a("", !0) : (T(), i(K, {
|
|
5350
5389
|
key: 0,
|
|
5351
5390
|
name: "search"
|
|
5352
5391
|
})),
|
|
@@ -5356,7 +5395,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5356
5395
|
"--inset-size": "4px",
|
|
5357
5396
|
"--flex-gap": "4px"
|
|
5358
5397
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
5359
|
-
}, [u(
|
|
5398
|
+
}, [u(ns, {
|
|
5360
5399
|
modelValue: f.value,
|
|
5361
5400
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
5362
5401
|
"wrap-content": b.value,
|
|
@@ -5366,7 +5405,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5366
5405
|
"modelValue",
|
|
5367
5406
|
"wrap-content",
|
|
5368
5407
|
"query-term-display-limit"
|
|
5369
|
-
]),
|
|
5408
|
+
]), U(s("input", {
|
|
5370
5409
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
5371
5410
|
ref: "search-input",
|
|
5372
5411
|
"data-testid": "pv-search-input",
|
|
@@ -5374,18 +5413,18 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5374
5413
|
disabled: e.disabled,
|
|
5375
5414
|
placeholder: S.value,
|
|
5376
5415
|
"data-invalid": w.value ? "true" : void 0,
|
|
5377
|
-
onFocus:
|
|
5378
|
-
onBlur:
|
|
5379
|
-
}, null, 40,
|
|
5380
|
-
f.value && !e.hideClearButton ? (T(), i(
|
|
5416
|
+
onFocus: ee,
|
|
5417
|
+
onBlur: ee
|
|
5418
|
+
}, null, 40, rs), [[te, d.value]])], 4),
|
|
5419
|
+
f.value && !e.hideClearButton ? (T(), i(J, {
|
|
5381
5420
|
key: 1,
|
|
5382
5421
|
variant: "ghost",
|
|
5383
5422
|
leftIcon: "close",
|
|
5384
5423
|
size: "md",
|
|
5385
5424
|
onClick: E
|
|
5386
5425
|
})) : a("", !0),
|
|
5387
|
-
w.value ? (T(), o("p",
|
|
5388
|
-
A.value.length > 0 || e.optionsLoading ? (T(), i(
|
|
5426
|
+
w.value ? (T(), o("p", is, N(C.value), 1)) : a("", !0),
|
|
5427
|
+
A.value.length > 0 || e.optionsLoading ? (T(), i(rt, {
|
|
5389
5428
|
key: 3,
|
|
5390
5429
|
class: y({ "pv-hide": !g.value }),
|
|
5391
5430
|
"css-custom-properties": {
|
|
@@ -5394,7 +5433,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5394
5433
|
},
|
|
5395
5434
|
isList: !0
|
|
5396
5435
|
}, {
|
|
5397
|
-
default:
|
|
5436
|
+
default: H(() => [e.optionsLoading ? (T(), o("div", as, [u(Oe, { variant: "dark" })])) : (T(!0), o(t, { key: 0 }, O(A.value, (e, t) => (T(), i(Bi, _({
|
|
5398
5437
|
key: `${t}-${e.searchText}`,
|
|
5399
5438
|
ref_for: !0
|
|
5400
5439
|
}, e, {
|
|
@@ -5403,15 +5442,15 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5403
5442
|
}), null, 16, ["onHandleSelected"]))), 128))]),
|
|
5404
5443
|
_: 1
|
|
5405
5444
|
}, 8, ["class"])) : a("", !0)
|
|
5406
|
-
], 32)), [[P(
|
|
5445
|
+
], 32)), [[P(re), j]]);
|
|
5407
5446
|
}
|
|
5408
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
5447
|
+
}), [["__scopeId", "data-v-4decbec2"]]), ss = [
|
|
5409
5448
|
"id",
|
|
5410
5449
|
"aria-label",
|
|
5411
5450
|
"min",
|
|
5412
5451
|
"max",
|
|
5413
5452
|
"step"
|
|
5414
|
-
],
|
|
5453
|
+
], cs = /* @__PURE__ */ d({
|
|
5415
5454
|
__name: "PvRange",
|
|
5416
5455
|
props: /* @__PURE__ */ g({
|
|
5417
5456
|
min: { default: 0 },
|
|
@@ -5425,7 +5464,7 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5425
5464
|
emits: ["update:modelValue"],
|
|
5426
5465
|
setup(e) {
|
|
5427
5466
|
let t = I(e, "modelValue"), n = F(), i = r(() => ({ "--value": `${t.value}%` }));
|
|
5428
|
-
return (r, a) =>
|
|
5467
|
+
return (r, a) => U((T(), o("input", {
|
|
5429
5468
|
"onUpdate:modelValue": a[0] ||= (e) => t.value = e,
|
|
5430
5469
|
class: "pv-range",
|
|
5431
5470
|
type: "range",
|
|
@@ -5435,18 +5474,18 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5435
5474
|
max: e.max,
|
|
5436
5475
|
step: e.step,
|
|
5437
5476
|
style: x(i.value)
|
|
5438
|
-
}, null, 12,
|
|
5477
|
+
}, null, 12, ss)), [[
|
|
5439
5478
|
te,
|
|
5440
5479
|
t.value,
|
|
5441
5480
|
void 0,
|
|
5442
5481
|
{ number: !0 }
|
|
5443
5482
|
]]);
|
|
5444
5483
|
}
|
|
5445
|
-
}),
|
|
5484
|
+
}), ls = {
|
|
5446
5485
|
class: "pv-toc",
|
|
5447
5486
|
role: "list",
|
|
5448
5487
|
style: { "min-width": "160px" }
|
|
5449
|
-
},
|
|
5488
|
+
}, us = ["aria-current"], ds = ["href", "onClick"], fs = /* @__PURE__ */ d({
|
|
5450
5489
|
__name: "PvTableOfContents",
|
|
5451
5490
|
props: /* @__PURE__ */ g({ items: {} }, {
|
|
5452
5491
|
modelValue: { required: !1 },
|
|
@@ -5457,19 +5496,19 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5457
5496
|
let r = I(e, "modelValue"), c = n, u = (e, t) => {
|
|
5458
5497
|
t.href || e.preventDefault(), r.value = t.id, c("handle-select", t);
|
|
5459
5498
|
};
|
|
5460
|
-
return (n, c) => (T(), o("ul",
|
|
5499
|
+
return (n, c) => (T(), o("ul", ls, [(T(!0), o(t, null, O(e.items, (e) => (T(), o("li", {
|
|
5461
5500
|
key: e.id,
|
|
5462
5501
|
"aria-current": r.value === e.id ? "true" : void 0
|
|
5463
5502
|
}, [s("a", {
|
|
5464
5503
|
href: e.href ?? "#",
|
|
5465
5504
|
onClick: (t) => u(t, e)
|
|
5466
|
-
}, [e.icon ? (T(), i(
|
|
5505
|
+
}, [e.icon ? (T(), i(K, {
|
|
5467
5506
|
key: 0,
|
|
5468
5507
|
name: e.icon
|
|
5469
|
-
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8,
|
|
5508
|
+
}, null, 8, ["name"])) : a("", !0), l(" " + N(e.label), 1)], 8, ds)], 8, us))), 128))]));
|
|
5470
5509
|
}
|
|
5471
|
-
}),
|
|
5472
|
-
preset:
|
|
5510
|
+
}), ps = { theme: {
|
|
5511
|
+
preset: be,
|
|
5473
5512
|
options: {
|
|
5474
5513
|
darkModeSelector: "none",
|
|
5475
5514
|
cssLayer: {
|
|
@@ -5477,10 +5516,10 @@ var Ti = Symbol("SelectedItemsKey"), Ei = Symbol("EnableCascadeSelectionKey"), D
|
|
|
5477
5516
|
order: "pit-viper-v2, primevue"
|
|
5478
5517
|
}
|
|
5479
5518
|
}
|
|
5480
|
-
} },
|
|
5481
|
-
e.use(
|
|
5519
|
+
} }, ms = (e) => {
|
|
5520
|
+
e.use(ye, ps);
|
|
5482
5521
|
};
|
|
5483
5522
|
//#endregion
|
|
5484
|
-
export { Er as PvAccordion,
|
|
5523
|
+
export { Er as PvAccordion, fo as PvActionBar, He as PvAiButton, ei as PvAvatar, ka as PvAvatarGroup, br as PvBanner, Yr as PvBreadcrumbs, J as PvButton, Ze as PvButtonWithTooltip, Qa as PvCard, za as PvCheckbox, Ta as PvCompanyLabel, cr as PvCompanyLogo, xr as PvCompanyTag, Le as PvCounterBadge, Mr as PvDatePicker, Pr as PvDateTime, Yo as PvDistributionBar, Ur as PvDrawer, st as PvDropdown, so as PvExpandableContent, _a as PvGhostInput, Ca as PvHeader, K as PvIcon, Ja as PvInput, oo as PvInsightCard, Wi as PvMenu, Bi as PvMenuItem, mr as PvModal, Zi as PvMultiSelectButton, oa as PvPagination, tt as PvPill, rt as PvPopover, lt as PvPopoverMenu, Qn as PvPopoverV2, qo as PvProgressBar, os as PvQueryBuilderInput, Ua as PvRadioGroup, cs as PvRange, Za as PvRating, Qe as PvReleaseBadge, jr as PvSearchInput, tr as PvSegmentedControl, $i as PvSelectButton, la as PvSelectableCard, ma as PvSidePanel, Ga as PvSkeleton, Oe as PvSpinner, Wa as PvSprite, wr as PvSuggestionTag, wi as PvSwitch, ar as PvTabList, fs as PvTableOfContents, Kr as PvTabs, et as PvTag, ho as PvTextArea, lo as PvToast, Na as PvToggleButton, La as PvToggleGroup, Ye as PvTooltip, er as PvTooltipV2, Uo as PvTree, Wo as PvTreeGroup, $a as PvWidget, Nr as useDateTime, ms as usePvComponents };
|
|
5485
5524
|
|
|
5486
5525
|
//# sourceMappingURL=pv-components-base.mjs.map
|