@turquoisehealth/pit-viper 2.181.1 → 2.181.2-dev.1
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/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +493 -472
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.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-badge-md[data-v-1ce1cb53]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-1ce1cb53]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-1ce1cb53]{background-color:#e0e5e4}.pv-text-secondary[data-v-1ce1cb53]{color:#4b595c}.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-6a2265bf]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-6a2265bf]{opacity:1}.pv-menu-item-disabled[data-v-c54482c5]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-c54482c5]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-c54482c5]:hover,&[data-v-c54482c5]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-c54482c5]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-c54482c5]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-toggle[data-v-c54482c5]{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;padding:4px;display:flex}.pv-menu-item-expand-toggle[data-v-c54482c5]:hover{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-fe24a346]{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-fe24a346]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fe24a346]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-fe24a346]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.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-badge-md[data-v-1ce1cb53]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-1ce1cb53]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-1ce1cb53]{background-color:#e0e5e4}.pv-text-secondary[data-v-1ce1cb53]{color:#4b595c}.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-6a2265bf]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-6a2265bf]{opacity:1}.pv-menu-item-disabled[data-v-c54482c5]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-c54482c5]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-c54482c5]:hover,&[data-v-c54482c5]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-c54482c5]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-c54482c5]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-toggle[data-v-c54482c5]{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;padding:4px;display:flex}.pv-menu-item-expand-toggle[data-v-c54482c5]:hover{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-fe24a346]{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-fe24a346]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fe24a346]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-fe24a346]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-c030243b]:hover{color:#16696d}.suggested-title-label[data-v-c030243b]:hover{color:#0d5256;text-decoration:underline}.ag-custom-header-cell[data-v-9a0f71b4]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{opacity:1}.pv-table-row-number[data-v-686928ce]{text-align:center;color:#89989b;padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;pointer-events:none;background:#fff;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:#ccc;border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:#f7f8f8}.pv-data-table .ag-menu-option-shortcut{color:#89989b}.pv-data-table .ag-menu-option:active{background-color:#e8f2f4}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(#fff 5px,#f7f8f8 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(#fff 5px,#f7f8f8 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid #e0e0e0!important;border-left:1px solid #e0e0e0!important;border-right:1px solid #e0e0e0!important}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:#f7f8f8!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-text-tertiary[data-v-ee6b788e]{color:#89989b}.pv-button-placeholder[data-v-ee6b788e]{width:24px;height:24px}.pv-sort-option[data-v-ee6b788e]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-ee6b788e]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-ee6b788e]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-ee6b788e]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-ee6b788e]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-ee6b788e]{display:flex}.sort-divider[data-v-ee6b788e]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-ee6b788e]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pv-menu-nested[data-v-23fdba3f]:after{content:"›"}.pv-tooltip a[data-v-23fdba3f]{color:inherit}.pv-chart-option[data-v-23fdba3f]{min-width:150px;max-width:225px}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}
|
|
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, onBeforeMount as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useModel as L, useSlots as R, useTemplateRef as
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { CellStyleModule as ie, CheckboxEditorModule as ae, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as
|
|
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, onBeforeMount as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useModel as L, useSlots as R, useTemplateRef as ee, vModelCheckbox as z, vModelText as B, vShow as te, watch as V, withCtx as H, withDirectives as ne, withModifiers as U } from "vue";
|
|
4
|
+
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as re } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as G } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as ie, CheckboxEditorModule as ae, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as K, GridStateModule as fe, LargeTextEditorModule as pe, ModuleRegistry as me, NumberEditorModule as he, PaginationModule as ge, QuickFilterModule as _e, RowApiModule as ve, RowStyleModule as q, ScrollApiModule as ye, SelectEditorModule as be, TextEditorModule as xe, TextFilterModule as Se, UndoRedoEditModule as Ce, themeQuartz as we } from "ag-grid-community";
|
|
8
8
|
import { AdvancedFilterModule as Te, CellSelectionModule as Ee, ClientSideRowModelApiModule as De, ClipboardModule as Oe, ColumnMenuModule as ke, ContextMenuModule as Ae, LicenseManager as je, MultiFilterModule as Me, RenderApiModule as Ne, RichSelectModule as Pe, RowGroupingModule as Fe, RowSelectionModule as Ie, ServerSideRowModelApiModule as Le, ServerSideRowModelModule as Re, SetFilterModule as ze, TooltipModule as Be, ValidationModule as Ve } from "ag-grid-enterprise";
|
|
9
9
|
import { onClickOutside as He, onKeyStroke as Ue, toRef as J, useDebounceFn as Y, useElementBounding as We, useElementHover as Ge, useToggle as Ke, watchDebounced as qe } from "@vueuse/core";
|
|
10
10
|
import Je from "papaparse";
|
|
@@ -229,7 +229,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
229
229
|
emits: ["series-visibility-change"],
|
|
230
230
|
setup(e, { expose: n, emit: c }) {
|
|
231
231
|
let l = e, d = c;
|
|
232
|
-
|
|
232
|
+
re.setLicenseKey(Ut);
|
|
233
233
|
let f = O(null), p = O({}), m = () => {
|
|
234
234
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
235
235
|
let e = f.value.$el;
|
|
@@ -337,7 +337,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
337
337
|
width: e?.width,
|
|
338
338
|
height: e?.height
|
|
339
339
|
}) }), (n, r) => (E(), o("div", Nt, [
|
|
340
|
-
u(I(
|
|
340
|
+
u(I(W), {
|
|
341
341
|
ref_key: "chartRef",
|
|
342
342
|
ref: f,
|
|
343
343
|
style: x([{ height: "100%" }, g.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -374,7 +374,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
374
374
|
},
|
|
375
375
|
emits: ["list-order-updated"],
|
|
376
376
|
setup(e, { expose: t, emit: n }) {
|
|
377
|
-
let r = O(null), i =
|
|
377
|
+
let r = O(null), i = ee("popoverList"), a = e, s = n;
|
|
378
378
|
return a.isSortable && a.isList && Ye(i, [], {
|
|
379
379
|
animation: 150,
|
|
380
380
|
onUpdate: () => {
|
|
@@ -443,7 +443,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
443
443
|
}, C = () => {
|
|
444
444
|
p.value = !1;
|
|
445
445
|
};
|
|
446
|
-
t({ closeDropdown: C }),
|
|
446
|
+
t({ closeDropdown: C }), V(p, (e) => {
|
|
447
447
|
e ? v(() => {
|
|
448
448
|
b(), f("dropdown-open");
|
|
449
449
|
}) : f("dropdown-closed");
|
|
@@ -455,7 +455,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
455
455
|
zIndex: 10,
|
|
456
456
|
...d.popoverCssProperties
|
|
457
457
|
} : d.popoverCssProperties);
|
|
458
|
-
return (t, r) =>
|
|
458
|
+
return (t, r) => ne((E(), o("div", Yt, [s("button", {
|
|
459
459
|
ref_key: "triggerRef",
|
|
460
460
|
ref: m,
|
|
461
461
|
class: y({
|
|
@@ -478,7 +478,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
478
478
|
isSortable: e.isSortable,
|
|
479
479
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
480
480
|
}, {
|
|
481
|
-
default:
|
|
481
|
+
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", Zt, "Loading...")) : a("", !0)], !0)]),
|
|
482
482
|
_: 3
|
|
483
483
|
}, 8, [
|
|
484
484
|
"class",
|
|
@@ -674,7 +674,7 @@ function mn(e, t = {}) {
|
|
|
674
674
|
characterData: !0
|
|
675
675
|
}));
|
|
676
676
|
};
|
|
677
|
-
return w(g), C(m),
|
|
677
|
+
return w(g), C(m), V(() => I(n), () => {
|
|
678
678
|
c.value && g();
|
|
679
679
|
}), {
|
|
680
680
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -777,7 +777,7 @@ var hn = [
|
|
|
777
777
|
"data-testid": "pv-tag-close-icon",
|
|
778
778
|
size: 12,
|
|
779
779
|
name: "close",
|
|
780
|
-
onClick: r[0] ||=
|
|
780
|
+
onClick: r[0] ||= U((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
781
781
|
})) : a("", !0)
|
|
782
782
|
], 14, vn));
|
|
783
783
|
}
|
|
@@ -1593,13 +1593,13 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1593
1593
|
strategy: t.positioningStrategy,
|
|
1594
1594
|
middleware: h
|
|
1595
1595
|
});
|
|
1596
|
-
|
|
1596
|
+
V(c, (e) => {
|
|
1597
1597
|
e && u.value && d.value && _();
|
|
1598
1598
|
});
|
|
1599
1599
|
let v = We(u), y = Y(() => {
|
|
1600
1600
|
c.value && _();
|
|
1601
1601
|
}, 5);
|
|
1602
|
-
|
|
1602
|
+
V([
|
|
1603
1603
|
v.top,
|
|
1604
1604
|
v.left,
|
|
1605
1605
|
v.width,
|
|
@@ -1618,9 +1618,9 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1618
1618
|
}, k = () => {
|
|
1619
1619
|
t.disableClickOutsideToClose || S(!1);
|
|
1620
1620
|
};
|
|
1621
|
-
return
|
|
1621
|
+
return V(T, (e) => {
|
|
1622
1622
|
t.showOnHover && S(e);
|
|
1623
|
-
}), (r, u) =>
|
|
1623
|
+
}), (r, u) => ne((E(), o("div", ui, [s("div", {
|
|
1624
1624
|
ref_key: "triggerWrapper",
|
|
1625
1625
|
ref: l,
|
|
1626
1626
|
onClick: D
|
|
@@ -1628,12 +1628,12 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1628
1628
|
key: 0,
|
|
1629
1629
|
to: e.teleportLocation,
|
|
1630
1630
|
disabled: !t.useTeleport
|
|
1631
|
-
}, [
|
|
1631
|
+
}, [ne(s("div", {
|
|
1632
1632
|
class: "pv-floating",
|
|
1633
1633
|
ref_key: "floating",
|
|
1634
1634
|
ref: d,
|
|
1635
1635
|
style: x(b.value)
|
|
1636
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1636
|
+
}, [A(r.$slots, "content")], 4), [[te, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(Xe), [k, { ignore: C.value }]]]);
|
|
1637
1637
|
}
|
|
1638
1638
|
}), fi = /* @__PURE__ */ d({
|
|
1639
1639
|
__name: "PvSegmentedControl",
|
|
@@ -1655,7 +1655,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1655
1655
|
position: "bottom-right",
|
|
1656
1656
|
style: { width: "100%" }
|
|
1657
1657
|
}, c({
|
|
1658
|
-
trigger:
|
|
1658
|
+
trigger: H(() => [u(I(X), {
|
|
1659
1659
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1660
1660
|
variant: "ghost",
|
|
1661
1661
|
label: e.label,
|
|
@@ -1676,7 +1676,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1676
1676
|
_: 2
|
|
1677
1677
|
}, [e.disabledReason ? {
|
|
1678
1678
|
name: "content",
|
|
1679
|
-
fn:
|
|
1679
|
+
fn: H(() => [l(P(e.disabledReason), 1)]),
|
|
1680
1680
|
key: "0"
|
|
1681
1681
|
} : void 0]), 1024))), 128))], 2));
|
|
1682
1682
|
}
|
|
@@ -1700,7 +1700,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1700
1700
|
"pv-icon": n.value,
|
|
1701
1701
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1702
1702
|
})), c = r(() => ({ width: i.value })), l = r(() => t.toCamelCase ? Ze(t.name) + ".svg" : t.name + ".svg"), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1703
|
-
return
|
|
1703
|
+
return V(u, () => {
|
|
1704
1704
|
n.value = !0;
|
|
1705
1705
|
}), (e, t) => (E(), o("div", pi, [n.value ? (E(), o("div", {
|
|
1706
1706
|
key: 0,
|
|
@@ -1747,8 +1747,8 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1747
1747
|
}),
|
|
1748
1748
|
emits: ["update:modelValue"],
|
|
1749
1749
|
setup(e) {
|
|
1750
|
-
let t = e, n =
|
|
1751
|
-
|
|
1750
|
+
let t = e, n = ee("dialog"), r = L(e, "modelValue");
|
|
1751
|
+
V(() => r.value, () => {
|
|
1752
1752
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1753
1753
|
});
|
|
1754
1754
|
let i = () => {
|
|
@@ -1837,7 +1837,7 @@ var Ci = [
|
|
|
1837
1837
|
}),
|
|
1838
1838
|
emits: ["update:modelValue"],
|
|
1839
1839
|
setup(e, { expose: t }) {
|
|
1840
|
-
let n = e, i =
|
|
1840
|
+
let n = e, i = ee("search-input"), c = L(e, "modelValue"), l = r(() => ({
|
|
1841
1841
|
"pv-input-search": !0,
|
|
1842
1842
|
"pv-full-width": !0,
|
|
1843
1843
|
"pv-input-padded-end": !0
|
|
@@ -1847,7 +1847,7 @@ var Ci = [
|
|
|
1847
1847
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1848
1848
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1849
1849
|
});
|
|
1850
|
-
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [
|
|
1850
|
+
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [ne(s("input", {
|
|
1851
1851
|
ref: "search-input",
|
|
1852
1852
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1853
1853
|
"data-testid": "pv-search-input",
|
|
@@ -1906,7 +1906,7 @@ var ji = {
|
|
|
1906
1906
|
}),
|
|
1907
1907
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
1908
1908
|
setup(e, { emit: n }) {
|
|
1909
|
-
let r = e, i = n, c =
|
|
1909
|
+
let r = e, i = n, c = ee("sidePanel"), l = L(e, "searchInput"), d = L(e, "modelValue");
|
|
1910
1910
|
w(() => {
|
|
1911
1911
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1912
1912
|
});
|
|
@@ -1917,7 +1917,7 @@ var ji = {
|
|
|
1917
1917
|
}, p = () => {
|
|
1918
1918
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1919
1919
|
};
|
|
1920
|
-
return
|
|
1920
|
+
return V(() => d.value, () => {
|
|
1921
1921
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1922
1922
|
}), Ue("Escape", () => {
|
|
1923
1923
|
c.value && d.value && p();
|
|
@@ -1975,11 +1975,11 @@ var ji = {
|
|
|
1975
1975
|
},
|
|
1976
1976
|
setup(e) {
|
|
1977
1977
|
return (t, n) => (E(), i(I(di), b(p(t.$props)), c({
|
|
1978
|
-
trigger:
|
|
1978
|
+
trigger: H(() => [A(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1979
1979
|
_: 2
|
|
1980
1980
|
}, [t.$slots.content || e.description ? {
|
|
1981
1981
|
name: "content",
|
|
1982
|
-
fn:
|
|
1982
|
+
fn: H(() => [s("div", {
|
|
1983
1983
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1984
1984
|
role: "tooltip",
|
|
1985
1985
|
"data-variant": e.variant
|
|
@@ -2111,11 +2111,11 @@ var ji = {
|
|
|
2111
2111
|
variant: "dark",
|
|
2112
2112
|
"tooltip-position": "top-left"
|
|
2113
2113
|
}, {
|
|
2114
|
-
label:
|
|
2114
|
+
label: H(() => [u(rn, {
|
|
2115
2115
|
name: "close",
|
|
2116
|
-
onClick: r[0] ||=
|
|
2116
|
+
onClick: r[0] ||= U((e) => t.$emit("handle-clear"), ["stop"])
|
|
2117
2117
|
})]),
|
|
2118
|
-
"tooltip-content":
|
|
2118
|
+
"tooltip-content": H(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2119
2119
|
_: 1
|
|
2120
2120
|
})) : a("", !0)
|
|
2121
2121
|
], 10, Wi));
|
|
@@ -2205,7 +2205,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2205
2205
|
};
|
|
2206
2206
|
return w(() => {
|
|
2207
2207
|
p();
|
|
2208
|
-
}),
|
|
2208
|
+
}), V(() => n.queryText, () => {
|
|
2209
2209
|
p();
|
|
2210
2210
|
}), (n, r) => (E(), o(t, null, [
|
|
2211
2211
|
e.avatar ? (E(), i(ta, {
|
|
@@ -2284,13 +2284,13 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2284
2284
|
"pv-input-xsmall": e.size === "sm",
|
|
2285
2285
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2286
2286
|
}])
|
|
2287
|
-
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0),
|
|
2287
|
+
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0), ne(s("input", {
|
|
2288
2288
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
2289
2289
|
disabled: e.disabled,
|
|
2290
2290
|
type: "checkbox",
|
|
2291
2291
|
role: "switch",
|
|
2292
2292
|
id: e.id
|
|
2293
|
-
}, null, 8, la), [[
|
|
2293
|
+
}, null, 8, la), [[z, t.value]])], 10, sa));
|
|
2294
2294
|
}
|
|
2295
2295
|
}), [["__scopeId", "data-v-26a92f7e"]]), da = /* @__PURE__ */ Gt(/* @__PURE__ */ d({
|
|
2296
2296
|
__name: "PvMenuItemAction",
|
|
@@ -2303,11 +2303,11 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2303
2303
|
a.value || t.action.action(t.option);
|
|
2304
2304
|
};
|
|
2305
2305
|
return (e, t) => (E(), i(_n, { disableInteractive: !0 }, c({
|
|
2306
|
-
label:
|
|
2306
|
+
label: H(() => [u(I(X), {
|
|
2307
2307
|
variant: "ghost",
|
|
2308
2308
|
class: y(["pv-text-brand", { "pv-menu-action-button": !s.value }]),
|
|
2309
2309
|
leftIcon: n.value,
|
|
2310
|
-
onClick:
|
|
2310
|
+
onClick: U(d, ["stop"]),
|
|
2311
2311
|
disabled: a.value
|
|
2312
2312
|
}, null, 8, [
|
|
2313
2313
|
"leftIcon",
|
|
@@ -2317,7 +2317,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2317
2317
|
_: 2
|
|
2318
2318
|
}, [o.value ? {
|
|
2319
2319
|
name: "tooltip-content",
|
|
2320
|
-
fn:
|
|
2320
|
+
fn: H(() => [l(P(o.value), 1)]),
|
|
2321
2321
|
key: "0"
|
|
2322
2322
|
} : void 0]), 1024));
|
|
2323
2323
|
}
|
|
@@ -2398,7 +2398,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2398
2398
|
},
|
|
2399
2399
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2400
2400
|
setup(e, { emit: t }) {
|
|
2401
|
-
let n = e, c =
|
|
2401
|
+
let n = e, c = ee("inputRef"), l = m(ga, void 0), d = m(_a, O(!1)), p = m(va, void 0), h = m(ya, void 0), g = r(() => {
|
|
2402
2402
|
if (!d.value || !n.children?.length) return [];
|
|
2403
2403
|
let e = fa(n.children);
|
|
2404
2404
|
if (p?.value) {
|
|
@@ -2493,7 +2493,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2493
2493
|
class: "pv-menu-item-expand-toggle",
|
|
2494
2494
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2495
2495
|
"aria-expanded": e.expanded,
|
|
2496
|
-
onClick: r[0] ||=
|
|
2496
|
+
onClick: r[0] ||= U((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2497
2497
|
}, [u(rn, {
|
|
2498
2498
|
name: e.chevronIcon ?? "chevron-right",
|
|
2499
2499
|
size: 12
|
|
@@ -2533,7 +2533,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2533
2533
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2534
2534
|
setup(e, { emit: n }) {
|
|
2535
2535
|
let i = e, s = m(ga, void 0), c = L(e, "selectedIds"), l = m(Sa, O(!1)), d = m(ya, void 0), f = m(ba, void 0), p = O(i.defaultExpanded ?? !1), h = O(!1), g = O(i.children ?? []), v = O(/* @__PURE__ */ new Set());
|
|
2536
|
-
|
|
2536
|
+
V(() => i.children, (e) => {
|
|
2537
2537
|
if (!e) {
|
|
2538
2538
|
g.value = [];
|
|
2539
2539
|
return;
|
|
@@ -2656,9 +2656,9 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2656
2656
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2657
2657
|
setup(e, { emit: n }) {
|
|
2658
2658
|
let i = e, s = n, c = L(e, "selectedItems"), l = N(c.value);
|
|
2659
|
-
|
|
2659
|
+
V(c, (e) => {
|
|
2660
2660
|
l.value = e;
|
|
2661
|
-
}),
|
|
2661
|
+
}), V(l, (e) => {
|
|
2662
2662
|
e !== c.value && (c.value = e);
|
|
2663
2663
|
}), D(ga, l), D(_a, r(() => !!i.enableCascadeSelection));
|
|
2664
2664
|
let d = m(va, void 0), f = m(xa, O(!1)), p = m(ya, void 0), h = m(ba, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -2694,7 +2694,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2694
2694
|
}
|
|
2695
2695
|
l.value = n, c.value = n, s("handle-selected", e);
|
|
2696
2696
|
}, b = (e) => l.value.some((t) => t.id === e.id) ? !0 : null, x = (e, t) => t ? b(e) === !0 : !0;
|
|
2697
|
-
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) =>
|
|
2697
|
+
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) => ne((E(), o("li", {
|
|
2698
2698
|
key: t.id,
|
|
2699
2699
|
"data-active": b(t),
|
|
2700
2700
|
"data-testid": e.itemTestId,
|
|
@@ -2709,7 +2709,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2709
2709
|
"config",
|
|
2710
2710
|
"itemClass",
|
|
2711
2711
|
"queryText"
|
|
2712
|
-
])], 10, Ma)), [[
|
|
2712
|
+
])], 10, Ma)), [[te, x(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", Na, [u(X, {
|
|
2713
2713
|
class: "pv-text-brand",
|
|
2714
2714
|
variant: "ghost",
|
|
2715
2715
|
label: "See more",
|
|
@@ -2843,42 +2843,42 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2843
2843
|
}
|
|
2844
2844
|
return {
|
|
2845
2845
|
selectedParentIds: [...f.value],
|
|
2846
|
-
selectedChildrenIds:
|
|
2846
|
+
selectedChildrenIds: W.value.filter((t) => !e.has(t.id)).map((e) => e.id),
|
|
2847
2847
|
deselectedChildrenIds: [...m.value.values()].flatMap((e) => [...e])
|
|
2848
2848
|
};
|
|
2849
2849
|
}, C = r(() => c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length), w = r(() => {
|
|
2850
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
2851
|
-
let e = new Set(
|
|
2850
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length;
|
|
2851
|
+
let e = new Set(W.value.map((e) => e.id));
|
|
2852
2852
|
return ma(c.options, e);
|
|
2853
2853
|
}), T = (e) => {
|
|
2854
2854
|
g("see-more", e ?? {});
|
|
2855
|
-
}, O =
|
|
2856
|
-
|
|
2857
|
-
},
|
|
2858
|
-
B.value && (F.value =
|
|
2859
|
-
},
|
|
2860
|
-
B.value && (
|
|
2861
|
-
},
|
|
2862
|
-
get: () =>
|
|
2855
|
+
}, O = ee("searchInputRef"), [j, M] = Ke(c.defaultOpen), F = L(e, "modelValue"), R = L(e, "selectionState"), z = L(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), te = (e) => {
|
|
2856
|
+
W.value = e, B.value || (F.value = e, R.value = S());
|
|
2857
|
+
}, ne = () => {
|
|
2858
|
+
B.value && (F.value = W.value, R.value = S());
|
|
2859
|
+
}, U = () => {
|
|
2860
|
+
B.value && (W.value = F.value);
|
|
2861
|
+
}, W = N(F.value), re = r({
|
|
2862
|
+
get: () => W.value,
|
|
2863
2863
|
set: (e) => {
|
|
2864
|
-
|
|
2864
|
+
te(e);
|
|
2865
2865
|
}
|
|
2866
|
-
}),
|
|
2867
|
-
|
|
2866
|
+
}), G = () => {
|
|
2867
|
+
z.value = "", j.value = !1;
|
|
2868
2868
|
}, ie = r(() => {
|
|
2869
2869
|
let e = c.size === "lg" ? 24 : 30;
|
|
2870
2870
|
return c.overlayTrigger ? -e : void 0;
|
|
2871
2871
|
});
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
}),
|
|
2875
|
-
e ? (
|
|
2872
|
+
V(() => F.value, (e) => {
|
|
2873
|
+
W.value = e;
|
|
2874
|
+
}), V(j, (e) => {
|
|
2875
|
+
e ? (U(), v(() => {
|
|
2876
2876
|
c.overlayTrigger && !c.disableSearchInput && O.value?.input?.focus(), g("dropdown-open");
|
|
2877
|
-
})) : (
|
|
2877
|
+
})) : (U(), g("dropdown-closed"));
|
|
2878
2878
|
});
|
|
2879
2879
|
let ae = r(() => {
|
|
2880
|
-
if (
|
|
2881
|
-
let e =
|
|
2880
|
+
if (z.value === "") return c.options;
|
|
2881
|
+
let e = z.value.toLocaleLowerCase();
|
|
2882
2882
|
return c.enableCascadeSelection ? ha(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2883
2883
|
}), oe = () => {
|
|
2884
2884
|
if (c.enableCascadeSelection) {
|
|
@@ -2887,13 +2887,13 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2887
2887
|
};
|
|
2888
2888
|
t(c.options), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
te(c.enableCascadeSelection ? fa(ae.value) : ae.value);
|
|
2891
2891
|
}, se = () => {
|
|
2892
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
2892
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
2893
2893
|
}, ce = () => {
|
|
2894
|
-
|
|
2894
|
+
U(), G();
|
|
2895
2895
|
}, le = () => {
|
|
2896
|
-
|
|
2896
|
+
ne(), G();
|
|
2897
2897
|
}, ue = r(() => {
|
|
2898
2898
|
if (!c.groupings) return;
|
|
2899
2899
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -2906,21 +2906,21 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2906
2906
|
}
|
|
2907
2907
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
2908
2908
|
return Array.from(e.entries());
|
|
2909
|
-
}), de = r(() => c.groupings &&
|
|
2909
|
+
}), de = r(() => c.groupings && z.value === ""), K = r(() => ({
|
|
2910
2910
|
...c,
|
|
2911
2911
|
selectedItems: F.value,
|
|
2912
|
-
searchInput:
|
|
2912
|
+
searchInput: z.value,
|
|
2913
2913
|
slotContext: c.slotContext,
|
|
2914
2914
|
isOpen: j.value,
|
|
2915
2915
|
isLoading: c.isLoading
|
|
2916
2916
|
}));
|
|
2917
2917
|
return Ue("Escape", () => {
|
|
2918
|
-
j.value &&
|
|
2918
|
+
j.value && G();
|
|
2919
2919
|
}), (n, r) => (E(), i(I(di), _({
|
|
2920
2920
|
modelValue: I(j),
|
|
2921
2921
|
"onUpdate:modelValue": r[4] ||= (e) => h(j) ? j.value = e : null
|
|
2922
2922
|
}, e.popoverProperties, { offset: ie.value }), {
|
|
2923
|
-
trigger:
|
|
2923
|
+
trigger: H(() => [u(Ji, {
|
|
2924
2924
|
ref: "select-button-trigger-ref",
|
|
2925
2925
|
variant: e.variant,
|
|
2926
2926
|
size: e.size,
|
|
@@ -2930,8 +2930,8 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2930
2930
|
label: e.label,
|
|
2931
2931
|
icon: e.icon,
|
|
2932
2932
|
companyLogo: e.companyLogo,
|
|
2933
|
-
showClear: !e.disableClearIcon &&
|
|
2934
|
-
showDropdown: !e.disableDropdownIcon &&
|
|
2933
|
+
showClear: !e.disableClearIcon && W.value.length > 0,
|
|
2934
|
+
showDropdown: !e.disableDropdownIcon && W.value.length === 0,
|
|
2935
2935
|
open: I(j),
|
|
2936
2936
|
"counter-value": w.value,
|
|
2937
2937
|
onHandleClear: se,
|
|
@@ -2950,7 +2950,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2950
2950
|
"open",
|
|
2951
2951
|
"counter-value"
|
|
2952
2952
|
])]),
|
|
2953
|
-
content:
|
|
2953
|
+
content: H(() => [s("div", {
|
|
2954
2954
|
class: "pv-popover",
|
|
2955
2955
|
"data-test-id": "pv-popover",
|
|
2956
2956
|
style: x({
|
|
@@ -2960,20 +2960,20 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2960
2960
|
}, [
|
|
2961
2961
|
e.disableSearchInput ? a("", !0) : (E(), o("div", Fa, [u(Ai, {
|
|
2962
2962
|
ref: "searchInputRef",
|
|
2963
|
-
"model-value":
|
|
2964
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2963
|
+
"model-value": z.value,
|
|
2964
|
+
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
2965
2965
|
class: "pv-stack-4",
|
|
2966
2966
|
placeholder: e.searchPlaceholder
|
|
2967
2967
|
}, null, 8, ["model-value", "placeholder"])])),
|
|
2968
|
-
n.$slots.header ? (E(), o("div", Ia, [A(n.$slots, "header", b(p(
|
|
2968
|
+
n.$slots.header ? (E(), o("div", Ia, [A(n.$slots, "header", b(p(K.value)))])) : a("", !0),
|
|
2969
2969
|
ae.value.length > 0 ? (E(), o(t, { key: 2 }, [de.value ? (E(!0), o(t, { key: 0 }, k(ue.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
2970
2970
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", La, P(t), 1)),
|
|
2971
2971
|
u(Pa, {
|
|
2972
|
-
selectedItems:
|
|
2973
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
2972
|
+
selectedItems: re.value,
|
|
2973
|
+
"onUpdate:selectedItems": r[2] ||= (e) => re.value = e,
|
|
2974
2974
|
options: i,
|
|
2975
2975
|
config: l.value,
|
|
2976
|
-
queryText: e.highlightSearchText ?
|
|
2976
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
2977
2977
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
2978
2978
|
itemClass: "pv-stack-4",
|
|
2979
2979
|
isLoading: e.isLoading,
|
|
@@ -2993,11 +2993,11 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2993
2993
|
ue.value && s !== ue.value.length - 1 ? (E(), o("div", Ra)) : a("", !0)
|
|
2994
2994
|
]))), 128)) : (E(), i(Pa, {
|
|
2995
2995
|
key: 1,
|
|
2996
|
-
selectedItems:
|
|
2997
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
2996
|
+
selectedItems: re.value,
|
|
2997
|
+
"onUpdate:selectedItems": r[3] ||= (e) => re.value = e,
|
|
2998
2998
|
options: ae.value,
|
|
2999
2999
|
config: l.value,
|
|
3000
|
-
queryText: e.highlightSearchText ?
|
|
3000
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3001
3001
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3002
3002
|
itemClass: "pv-stack-4",
|
|
3003
3003
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3012,8 +3012,8 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3012
3012
|
"enableCascadeSelection",
|
|
3013
3013
|
"hasMoreOptions"
|
|
3014
3014
|
]))], 64)) : a("", !0),
|
|
3015
|
-
e.isLoading ? (E(), o("div", za, [u(_t, { variant: "dark" })])) : ae.value.length === 0 ? (E(), o(t, { key: 4 }, [n.$slots["no-results"] ? A(n.$slots, "no-results", b(_({ key: 0 },
|
|
3016
|
-
s("div", Ba, [n.$slots.footer ? A(n.$slots, "footer", b(_({ key: 0 },
|
|
3015
|
+
e.isLoading ? (E(), o("div", za, [u(_t, { variant: "dark" })])) : ae.value.length === 0 ? (E(), o(t, { key: 4 }, [n.$slots["no-results"] ? A(n.$slots, "no-results", b(_({ key: 0 }, K.value))) : (E(), i(Qi, { key: 1 }))], 64)) : a("", !0),
|
|
3016
|
+
s("div", Ba, [n.$slots.footer ? A(n.$slots, "footer", b(_({ key: 0 }, K.value))) : a("", !0), e.menuActionsVariant ? (E(), i(Ui, {
|
|
3017
3017
|
key: 1,
|
|
3018
3018
|
variant: e.menuActionsVariant,
|
|
3019
3019
|
disabled: e.isLoading,
|
|
@@ -3078,7 +3078,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3078
3078
|
variant: n.optionsVariant,
|
|
3079
3079
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3080
3080
|
})), l = t, [d] = Ke(n.defaultOpen), f = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3081
|
-
|
|
3081
|
+
V(d, (e) => {
|
|
3082
3082
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3083
3083
|
});
|
|
3084
3084
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3119,7 +3119,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3119
3119
|
modelValue: I(d),
|
|
3120
3120
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3121
3121
|
}, e.popoverProperties), {
|
|
3122
|
-
trigger:
|
|
3122
|
+
trigger: H(() => [u(Ji, {
|
|
3123
3123
|
class: "pv-full-width",
|
|
3124
3124
|
ref: "select-button-trigger-ref",
|
|
3125
3125
|
variant: e.variant,
|
|
@@ -3153,7 +3153,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3153
3153
|
"counter-badge-variant",
|
|
3154
3154
|
"isLoading"
|
|
3155
3155
|
])]),
|
|
3156
|
-
content:
|
|
3156
|
+
content: H(() => [s("div", {
|
|
3157
3157
|
class: "pv-popover",
|
|
3158
3158
|
"data-test-id": "pv-popover",
|
|
3159
3159
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3345,7 +3345,7 @@ var Wa = () => {
|
|
|
3345
3345
|
"update:options"
|
|
3346
3346
|
],
|
|
3347
3347
|
setup(e) {
|
|
3348
|
-
let n = e, c = { renderer: Ya }, l =
|
|
3348
|
+
let n = e, c = { renderer: Ya }, l = ee("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h } = Wa(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
3349
3349
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3350
3350
|
};
|
|
3351
3351
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3369,7 +3369,7 @@ var Wa = () => {
|
|
|
3369
3369
|
context: e.queryTerm
|
|
3370
3370
|
}));
|
|
3371
3371
|
});
|
|
3372
|
-
|
|
3372
|
+
V([
|
|
3373
3373
|
A,
|
|
3374
3374
|
d,
|
|
3375
3375
|
() => n.optionsLoading
|
|
@@ -3403,7 +3403,7 @@ var Wa = () => {
|
|
|
3403
3403
|
let R = () => {
|
|
3404
3404
|
d.value = "";
|
|
3405
3405
|
};
|
|
3406
|
-
return (n, r) =>
|
|
3406
|
+
return (n, r) => ne((E(), o("div", {
|
|
3407
3407
|
ref: "query-builder-input",
|
|
3408
3408
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3409
3409
|
onFocus: F,
|
|
@@ -3429,7 +3429,7 @@ var Wa = () => {
|
|
|
3429
3429
|
"modelValue",
|
|
3430
3430
|
"wrap-content",
|
|
3431
3431
|
"query-term-display-limit"
|
|
3432
|
-
]),
|
|
3432
|
+
]), ne(s("input", {
|
|
3433
3433
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3434
3434
|
ref: "search-input",
|
|
3435
3435
|
"data-testid": "pv-search-input",
|
|
@@ -3457,7 +3457,7 @@ var Wa = () => {
|
|
|
3457
3457
|
},
|
|
3458
3458
|
isList: !0
|
|
3459
3459
|
}, {
|
|
3460
|
-
default:
|
|
3460
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", $a, [u(I(_t), { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(Aa, _({
|
|
3461
3461
|
key: `${t}-${e.searchText}`,
|
|
3462
3462
|
ref_for: !0
|
|
3463
3463
|
}, e, {
|
|
@@ -3489,7 +3489,7 @@ var Wa = () => {
|
|
|
3489
3489
|
},
|
|
3490
3490
|
setup(e) {
|
|
3491
3491
|
let n = m(io, O(null)), c = m(co, O([])), l = m(lo, O([])), u = e;
|
|
3492
|
-
|
|
3492
|
+
V(l, () => {}, { deep: !0 });
|
|
3493
3493
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
3494
3494
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
3495
3495
|
}, p = r(() => ({ "pv-hide": c.value.length === 0 })), h = r(() => u.rowGroupLimit ? l.value.length >= u.rowGroupLimit : !1), g = r(() => l.value.map((e) => c.value.find((t) => t.field === e)).filter((e) => e !== void 0)), _ = r(() => c.value.filter((e) => !l.value.includes(e.field))), v = r(() => {
|
|
@@ -3520,12 +3520,12 @@ var Wa = () => {
|
|
|
3520
3520
|
class: y(p.value),
|
|
3521
3521
|
onListOrderUpdated: x
|
|
3522
3522
|
}, {
|
|
3523
|
-
trigger:
|
|
3523
|
+
trigger: H(() => [s("div", Ao, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(cn), {
|
|
3524
3524
|
key: 0,
|
|
3525
3525
|
value: I(l).length,
|
|
3526
3526
|
variant: "tertiary"
|
|
3527
3527
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
3528
|
-
default:
|
|
3528
|
+
default: H(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
3529
3529
|
key: 0,
|
|
3530
3530
|
id: b(e.value)
|
|
3531
3531
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -3647,13 +3647,13 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3647
3647
|
tooltipPosition: "center-left",
|
|
3648
3648
|
size: "sm"
|
|
3649
3649
|
}, {
|
|
3650
|
-
label:
|
|
3650
|
+
label: H(() => [u(X, {
|
|
3651
3651
|
class: y(j.value + " pv-text-brand"),
|
|
3652
3652
|
variant: "ghost",
|
|
3653
3653
|
"left-icon": "focus",
|
|
3654
3654
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
3655
3655
|
}, null, 8, ["class"])]),
|
|
3656
|
-
"tooltip-content":
|
|
3656
|
+
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
3657
3657
|
_: 1
|
|
3658
3658
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", $o, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
3659
3659
|
}
|
|
@@ -3685,14 +3685,14 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3685
3685
|
"col-def": o.value,
|
|
3686
3686
|
"cell-params": e.params.cellParams
|
|
3687
3687
|
}, {
|
|
3688
|
-
default:
|
|
3688
|
+
default: H(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3689
3689
|
_: 1
|
|
3690
3690
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Wo, {
|
|
3691
3691
|
key: 1,
|
|
3692
3692
|
"col-def": s.value,
|
|
3693
3693
|
"cell-params": c.value
|
|
3694
3694
|
}, {
|
|
3695
|
-
default:
|
|
3695
|
+
default: H(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3696
3696
|
_: 1
|
|
3697
3697
|
}, 8, ["col-def", "cell-params"]));
|
|
3698
3698
|
}
|
|
@@ -4181,7 +4181,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4181
4181
|
}), m = r(() => {
|
|
4182
4182
|
let e = n.value || {};
|
|
4183
4183
|
return Object.keys(e).length === 0;
|
|
4184
|
-
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O({}),
|
|
4184
|
+
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O(/* @__PURE__ */ new Set()), T = O({}), E = O({}), D = (e) => {
|
|
4185
4185
|
let t = {};
|
|
4186
4186
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4187
4187
|
t[e] = n;
|
|
@@ -4191,18 +4191,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4191
4191
|
filterType: "set",
|
|
4192
4192
|
values: r
|
|
4193
4193
|
});
|
|
4194
|
-
}), Object.entries(
|
|
4194
|
+
}), Object.entries(E.value).forEach(([e, n]) => {
|
|
4195
4195
|
let r = n.filter((e) => !!e);
|
|
4196
4196
|
r.length > 0 ? t[e] = {
|
|
4197
4197
|
filterType: "set",
|
|
4198
4198
|
values: r
|
|
4199
4199
|
} : delete t[e];
|
|
4200
4200
|
}), t;
|
|
4201
|
-
},
|
|
4201
|
+
}, k = async (n, r) => {
|
|
4202
4202
|
let i = v.value[n.field] || void 0, s = g.value[n.field] || [], d = r?.filterModel;
|
|
4203
4203
|
if (t.value != null) {
|
|
4204
4204
|
let t = r?.filterModel ?? e.value ?? void 0;
|
|
4205
|
-
d =
|
|
4205
|
+
d = D(t && tc(t) ? t : void 0);
|
|
4206
4206
|
}
|
|
4207
4207
|
let f = {
|
|
4208
4208
|
api: r?.api,
|
|
@@ -4216,12 +4216,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4216
4216
|
m || (c.value[p] = !0);
|
|
4217
4217
|
let _ = (o.value[p] || 0) + 1;
|
|
4218
4218
|
o.value[p] = _;
|
|
4219
|
-
let x = s.map((e) =>
|
|
4219
|
+
let x = s.map((e) => A(p, e) || {
|
|
4220
4220
|
value: e,
|
|
4221
4221
|
label: String(e)
|
|
4222
4222
|
}), S = await l.value?.(f), C;
|
|
4223
4223
|
if (S && !Array.isArray(S) ? (C = S.values, u.value[p] = S.totalCount) : (C = S, u.value[p] = void 0), i && C && (C = C.map((e) => {
|
|
4224
|
-
let t =
|
|
4224
|
+
let t = j(n, e);
|
|
4225
4225
|
return e && t && (e.matchedField = e.matchedField ?? t.matchedField, e.matchedValue = e.matchedValue ?? t.matchedValue), e;
|
|
4226
4226
|
})), _ === o.value[p]) {
|
|
4227
4227
|
let e = (r?.offset ?? 0) > 0, t = !!r?.parentId;
|
|
@@ -4245,10 +4245,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4245
4245
|
let n = C?.filter((e) => e != null).map((e) => e.value) || [], i = n.filter((e, t) => n.indexOf(e) === t);
|
|
4246
4246
|
return y.value[p] = i, b.value[p] = !1, a.value[p] = Date.now(), m || (c.value[p] = !1), i;
|
|
4247
4247
|
} else return [];
|
|
4248
|
-
},
|
|
4248
|
+
}, A = (e, t) => {
|
|
4249
4249
|
let n = [...h.value[e] || [], ..._.value[e] || []];
|
|
4250
4250
|
return n ? n.find((e) => e?.value === t) : null;
|
|
4251
|
-
},
|
|
4251
|
+
}, j = (e, t) => {
|
|
4252
4252
|
if (!t) return {};
|
|
4253
4253
|
let n = $(e)?.queryColIds || [];
|
|
4254
4254
|
if (n.length === 0) return {};
|
|
@@ -4261,7 +4261,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4261
4261
|
};
|
|
4262
4262
|
}
|
|
4263
4263
|
return {};
|
|
4264
|
-
},
|
|
4264
|
+
}, M = (t, n) => {
|
|
4265
4265
|
g.value[t] = n;
|
|
4266
4266
|
let r = [], i = e.value;
|
|
4267
4267
|
if (tc(i)) {
|
|
@@ -4274,29 +4274,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4274
4274
|
r.push(...n);
|
|
4275
4275
|
let a = [];
|
|
4276
4276
|
return n.forEach((e) => {
|
|
4277
|
-
let n =
|
|
4277
|
+
let n = A(t, e);
|
|
4278
4278
|
n && a.push(n);
|
|
4279
4279
|
}), _.value[t] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4280
|
-
},
|
|
4280
|
+
}, N = (e) => g.value[e] || [], P = (e, t) => {
|
|
4281
4281
|
v.value[e] = t;
|
|
4282
|
-
},
|
|
4282
|
+
}, F = (e) => y.value[e] || [], I = (e, t) => {
|
|
4283
4283
|
y.value[e] = t;
|
|
4284
|
-
},
|
|
4284
|
+
}, L = (e, t) => {
|
|
4285
4285
|
C.value[e] = t;
|
|
4286
|
-
},
|
|
4286
|
+
}, R = (e) => {
|
|
4287
4287
|
let t = C.value[e] || [], n = Object.entries(C.value).find(([, t]) => t.includes(e))?.[0];
|
|
4288
4288
|
return [...t, ...n ? [n] : []];
|
|
4289
|
-
},
|
|
4289
|
+
}, ee = (e) => {
|
|
4290
|
+
let t = T.value[e] ?? 0;
|
|
4291
|
+
T.value[e] = t + 1, w.value.add(e);
|
|
4292
|
+
}, z = (e) => {
|
|
4293
|
+
let t = T.value[e] ?? 0;
|
|
4294
|
+
if (t <= 1) {
|
|
4295
|
+
delete T.value[e], w.value.delete(e);
|
|
4296
|
+
return;
|
|
4297
|
+
}
|
|
4298
|
+
T.value[e] = t - 1;
|
|
4299
|
+
}, B = (e) => {
|
|
4290
4300
|
let t = new Set(e);
|
|
4291
|
-
for (let n of e) for (let e of
|
|
4292
|
-
for (let e of
|
|
4293
|
-
},
|
|
4294
|
-
|
|
4295
|
-
},
|
|
4296
|
-
|
|
4297
|
-
},
|
|
4298
|
-
|
|
4299
|
-
},
|
|
4301
|
+
for (let n of e) for (let e of R(n)) t.add(e);
|
|
4302
|
+
for (let e of w.value) t.has(e) || (b.value[e] = !0);
|
|
4303
|
+
}, te = () => {
|
|
4304
|
+
E.value = JSON.parse(JSON.stringify(g.value));
|
|
4305
|
+
}, V = () => {
|
|
4306
|
+
E.value = {};
|
|
4307
|
+
}, H = (e) => E.value[e] || [], ne = (e, t) => {
|
|
4308
|
+
E.value[e] = t;
|
|
4309
|
+
}, U = (e, t) => {
|
|
4300
4310
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], a = t ? Object.keys(t) : [], o = r.filter((e) => a.includes(e));
|
|
4301
4311
|
[...r, ...a].filter((e) => !o.includes(e)).forEach((e) => n.add(e));
|
|
4302
4312
|
for (let r of o) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4306,7 +4316,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4306
4316
|
};
|
|
4307
4317
|
return qe([e, t], ([t, n], [r, i]) => {
|
|
4308
4318
|
let a = /* @__PURE__ */ new Set();
|
|
4309
|
-
JSON.stringify(t) !== JSON.stringify(r) &&
|
|
4319
|
+
JSON.stringify(t) !== JSON.stringify(r) && U(t || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(n) !== JSON.stringify(i) && U(n || {}, e.value || {}).forEach((e) => a.add(e)), a.size > 0 && B(a);
|
|
4310
4320
|
}, {
|
|
4311
4321
|
deep: !0,
|
|
4312
4322
|
debounce: 200,
|
|
@@ -4321,69 +4331,72 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4321
4331
|
filterValueMap: h,
|
|
4322
4332
|
filterValueSelectedMetadataMap: _,
|
|
4323
4333
|
filterStoreHandler: l,
|
|
4324
|
-
fetchFilterValues:
|
|
4325
|
-
filterValueContext:
|
|
4334
|
+
fetchFilterValues: k,
|
|
4335
|
+
filterValueContext: A,
|
|
4326
4336
|
filterModelEmpty: p,
|
|
4327
|
-
getFilterSelectedValues:
|
|
4328
|
-
getSearchMatchDataFromFilterContext:
|
|
4337
|
+
getFilterSelectedValues: N,
|
|
4338
|
+
getSearchMatchDataFromFilterContext: j,
|
|
4329
4339
|
isServerSideFilter: f,
|
|
4330
4340
|
stagedFilterModel: t,
|
|
4331
|
-
setFilterSelectedValues:
|
|
4332
|
-
setFilterValueSearchText:
|
|
4341
|
+
setFilterSelectedValues: M,
|
|
4342
|
+
setFilterValueSearchText: P,
|
|
4333
4343
|
tableSearchFilterModel: n,
|
|
4334
4344
|
tableSearchFilterModelEmpty: m,
|
|
4335
4345
|
tableSearchHandler: d,
|
|
4336
4346
|
filterValuesMap: y,
|
|
4337
|
-
getFilterValues:
|
|
4338
|
-
setFilterValues:
|
|
4347
|
+
getFilterValues: F,
|
|
4348
|
+
setFilterValues: I,
|
|
4339
4349
|
filterStaleMap: b,
|
|
4340
4350
|
refreshFiltersInBackground: x,
|
|
4341
4351
|
stageFilterChangesUntilDropdownCloses: S,
|
|
4342
|
-
markOtherFieldsStale:
|
|
4352
|
+
markOtherFieldsStale: B,
|
|
4343
4353
|
aggregateFieldMap: C,
|
|
4344
|
-
registerAggregateField:
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4354
|
+
registerAggregateField: L,
|
|
4355
|
+
registeredFilterFields: w,
|
|
4356
|
+
registerFilterField: ee,
|
|
4357
|
+
unregisterFilterField: z,
|
|
4358
|
+
stagedSelectedValuesMap: E,
|
|
4359
|
+
initStagedSelectedValues: te,
|
|
4360
|
+
clearStagedSelectedValues: V,
|
|
4361
|
+
getStagedSelectedValues: H,
|
|
4362
|
+
setStagedSelectedValues: ne,
|
|
4350
4363
|
filterValueSearchTextMap: v,
|
|
4351
4364
|
filterValuesTotalCountMap: u
|
|
4352
4365
|
};
|
|
4353
4366
|
}, rc = () => m(to, null) || nc(), ic = (e) => {
|
|
4354
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C,
|
|
4355
|
-
get: () =>
|
|
4367
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C, markOtherFieldsStale: E, registerAggregateField: D, registerFilterField: k, unregisterFilterField: A, getStagedSelectedValues: j, setStagedSelectedValues: M, filterValueSearchTextMap: N, filterValuesTotalCountMap: P } = o, { computedFocuses: F, removeFocus: I, computedFocusType: L } = Ko(), R = m(mo, O(!1)), ee = m(po, O(!1)), z = m(Do, O(!1)), B = r({
|
|
4368
|
+
get: () => G.value ? j(U.value) : p(U.value),
|
|
4356
4369
|
set: (e) => {
|
|
4357
|
-
|
|
4370
|
+
G.value ? M(U.value, e) : _(U.value, e);
|
|
4358
4371
|
}
|
|
4359
|
-
}),
|
|
4360
|
-
get: () =>
|
|
4361
|
-
set: (e) => g(
|
|
4362
|
-
}),
|
|
4372
|
+
}), te = r(() => be(y(U.value))), H = r(() => d.value[U.value] ?? !1), ne = r({
|
|
4373
|
+
get: () => N.value[U.value] ?? "",
|
|
4374
|
+
set: (e) => g(U.value, e)
|
|
4375
|
+
}), U = r(() => t.value.field || ""), W = r(() => t.value.filter || ""), re = r(() => t.value.headerName || ""), G = r(() => n?.value === "vertical"), ie = O(!1), ae = r(() => ms(t.value)), oe = r(() => hs(t.value)), se = r(() => gs(t.value)), ce = r(() => $(t.value).filterOptionsSortDescription), le = r(() => $(t.value).filterOptionsSortTooltip), ue = r(() => !$(t.value).filterSearch), de = r(() => $(t.value).emptyFilterResultsRenderer), K = r(() => $(t.value).filterOptionsRenderer), fe = r(() => $(t.value).filterHeaderRenderer), pe = r(() => $(t.value).filterFooterRenderer), me = r(() => oe.value ? B.value.length >= oe.value : !1), he = r(() => te.value.filter((e) => e != null && !B.value.includes(e))), ge = r(() => P.value[U.value]), _e = r(() => vs(t.value)), ve = O({
|
|
4363
4376
|
selectedParentIds: [],
|
|
4364
4377
|
selectedChildrenIds: [],
|
|
4365
4378
|
deselectedChildrenIds: []
|
|
4366
|
-
}),
|
|
4367
|
-
if (
|
|
4379
|
+
}), q = r(() => te.value.length === 1 && te.value[0] === null && B.value.length === 0), ye = (e = !1) => {
|
|
4380
|
+
if (_e.value) return;
|
|
4368
4381
|
let n = [];
|
|
4369
|
-
if (
|
|
4382
|
+
if (z.value && a.value) {
|
|
4370
4383
|
let e = a.value.getAdvancedFilterModel();
|
|
4371
|
-
n = Js(
|
|
4384
|
+
n = Js(U.value, e);
|
|
4372
4385
|
} else n = Vs(t.value, c.value);
|
|
4373
|
-
e ?
|
|
4374
|
-
},
|
|
4375
|
-
let n =
|
|
4386
|
+
e ? B.value = n : B.value = Array.from(new Set([...p(U.value), ...n]));
|
|
4387
|
+
}, be = (e) => [...e].sort((e, t) => {
|
|
4388
|
+
let n = B.value.includes(e), r = B.value.includes(t);
|
|
4376
4389
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4377
|
-
}),
|
|
4390
|
+
}), xe = async (e = !1, n = !1) => {
|
|
4378
4391
|
if (!a.value) return;
|
|
4379
|
-
let r = x.value[
|
|
4380
|
-
if (
|
|
4392
|
+
let r = x.value[U.value] ?? !1, i = d.value[U.value] !== !0, o = e && i && (r || n);
|
|
4393
|
+
if (z.value) {
|
|
4381
4394
|
if (h.value && o) {
|
|
4382
4395
|
let e = await s(t.value, {
|
|
4383
4396
|
api: a.value,
|
|
4384
4397
|
filterModel: c.value ?? void 0
|
|
4385
4398
|
});
|
|
4386
|
-
b(
|
|
4399
|
+
b(U.value, e), x.value[U.value] = !1;
|
|
4387
4400
|
}
|
|
4388
4401
|
return;
|
|
4389
4402
|
}
|
|
@@ -4393,11 +4406,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4393
4406
|
l.refreshFilterValues();
|
|
4394
4407
|
return;
|
|
4395
4408
|
}
|
|
4396
|
-
b(
|
|
4409
|
+
b(U.value, l.getFilterValues()), x.value[U.value] = !1;
|
|
4397
4410
|
}
|
|
4398
|
-
},
|
|
4399
|
-
let t = f(
|
|
4400
|
-
if (t?.colField &&
|
|
4411
|
+
}, Se = (e) => {
|
|
4412
|
+
let t = f(U.value, e), n = ae.value;
|
|
4413
|
+
if (t?.colField && _e.value) {
|
|
4401
4414
|
let e = a.value?.getColumnDef(t?.colField);
|
|
4402
4415
|
n = e ? ms(e) : n;
|
|
4403
4416
|
}
|
|
@@ -4405,22 +4418,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4405
4418
|
value: e,
|
|
4406
4419
|
context: t
|
|
4407
4420
|
}) : t?.label || e;
|
|
4408
|
-
},
|
|
4421
|
+
}, Ce = (e) => {
|
|
4409
4422
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4410
|
-
let n = f(
|
|
4423
|
+
let n = f(U.value, e);
|
|
4411
4424
|
return n == null || n.label == null;
|
|
4412
|
-
},
|
|
4413
|
-
let n = f(
|
|
4425
|
+
}, we = (e) => q.value || f(U.value, e)?.isSelectable === !1 ? !0 : se.value ? !1 : me.value && !B.value.includes(e), Te = (e) => !e || !a.value ? "" : a.value.getColumnDef(e)?.headerName || e, Ee = (e) => {
|
|
4426
|
+
let n = f(U.value, e), r = (n?.children?.length ?? 0) > 0, i = ce.value ? "suggestions" : null;
|
|
4414
4427
|
n?.isPreference && (i = "preferences");
|
|
4415
|
-
let s = null, l = n?.matchedValue, u =
|
|
4416
|
-
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField &&
|
|
4428
|
+
let s = null, l = n?.matchedValue, u = Te(n?.matchedField);
|
|
4429
|
+
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField && _e.value && !r && (s = Te(n?.colField));
|
|
4417
4430
|
let d, p, m;
|
|
4418
4431
|
if (r && (d = n.children.map((e) => ({
|
|
4419
4432
|
id: e.value,
|
|
4420
4433
|
text: e.label || e.value,
|
|
4421
4434
|
subText: e.subText,
|
|
4422
4435
|
subduedText: e.subduedText,
|
|
4423
|
-
disabled:
|
|
4436
|
+
disabled: we(e.value),
|
|
4424
4437
|
context: e,
|
|
4425
4438
|
classList: ["option-label"]
|
|
4426
4439
|
})), p = n.totalChildCount, p && p > d.length && n.value != null)) {
|
|
@@ -4439,7 +4452,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4439
4452
|
text: e.label || e.value,
|
|
4440
4453
|
subText: e.subText,
|
|
4441
4454
|
subduedText: e.subduedText,
|
|
4442
|
-
disabled:
|
|
4455
|
+
disabled: we(e.value),
|
|
4443
4456
|
context: e,
|
|
4444
4457
|
classList: ["option-label"]
|
|
4445
4458
|
}));
|
|
@@ -4447,53 +4460,55 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4447
4460
|
}
|
|
4448
4461
|
return {
|
|
4449
4462
|
id: e || "",
|
|
4450
|
-
text:
|
|
4463
|
+
text: Se(e) || "",
|
|
4451
4464
|
searchText: l,
|
|
4452
4465
|
subduedText: n?.subduedText,
|
|
4453
4466
|
subText: s || void 0,
|
|
4454
4467
|
groupingLabel: i || "",
|
|
4455
|
-
disabled: r ? !1 :
|
|
4468
|
+
disabled: r ? !1 : we(e),
|
|
4456
4469
|
context: n || { value: e || "" },
|
|
4457
4470
|
classList: ["option-label"],
|
|
4458
4471
|
children: d,
|
|
4459
4472
|
totalChildCount: p,
|
|
4460
4473
|
handleSeeMore: m
|
|
4461
4474
|
};
|
|
4462
|
-
},
|
|
4463
|
-
let e = [...
|
|
4464
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
4465
|
-
}),
|
|
4466
|
-
get: () =>
|
|
4467
|
-
let t = f(
|
|
4475
|
+
}, De = r(() => {
|
|
4476
|
+
let e = [..._e.value ? [] : B.value.filter((e) => e != null && e !== "" && !te.value.includes(e)), ...te.value];
|
|
4477
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ce(e)).map(Ee);
|
|
4478
|
+
}), Oe = r({
|
|
4479
|
+
get: () => B.value.map((e) => {
|
|
4480
|
+
let t = f(U.value, e), n = t?.colField ? Te(t.colField) : void 0;
|
|
4468
4481
|
return {
|
|
4469
4482
|
id: e,
|
|
4470
|
-
text:
|
|
4483
|
+
text: Se(e),
|
|
4471
4484
|
subText: n,
|
|
4472
4485
|
context: t || { value: e || "" }
|
|
4473
4486
|
};
|
|
4474
4487
|
}),
|
|
4475
4488
|
set: (e) => {
|
|
4476
|
-
|
|
4477
|
-
|
|
4489
|
+
B.value = e.map((e) => e.id);
|
|
4490
|
+
let t = e.length === 0 && !ie.value;
|
|
4491
|
+
!_e.value && (t || !C.value || G.value) && (Ae(), F.value.forEach((e) => {
|
|
4492
|
+
!B.value.includes(e) && L.value === U.value && I(e);
|
|
4478
4493
|
})), i?.();
|
|
4479
4494
|
}
|
|
4480
|
-
}),
|
|
4495
|
+
}), ke = (e) => {
|
|
4481
4496
|
let t = {};
|
|
4482
4497
|
for (let n of e) {
|
|
4483
4498
|
if (n === null) continue;
|
|
4484
|
-
let e = f(
|
|
4499
|
+
let e = f(U.value, n)?.colField || U.value;
|
|
4485
4500
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4486
4501
|
}
|
|
4487
4502
|
return t;
|
|
4488
|
-
},
|
|
4503
|
+
}, Ae = async (e, n) => {
|
|
4489
4504
|
if (!a.value) return;
|
|
4490
4505
|
if (e !== void 0 && n !== void 0) {
|
|
4491
|
-
let r = e ||
|
|
4492
|
-
if (
|
|
4506
|
+
let r = e || U.value, i = n;
|
|
4507
|
+
if (z.value) {
|
|
4493
4508
|
let e = Os(r, i || []);
|
|
4494
|
-
if (
|
|
4509
|
+
if (G.value) {
|
|
4495
4510
|
let t = l.value;
|
|
4496
|
-
l.value = Ks(t, e, r);
|
|
4511
|
+
l.value = Ks(t, e, r), E(new Set([r]));
|
|
4497
4512
|
return;
|
|
4498
4513
|
}
|
|
4499
4514
|
let t = Ks(a.value.getAdvancedFilterModel(), e, r);
|
|
@@ -4502,7 +4517,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4502
4517
|
});
|
|
4503
4518
|
return;
|
|
4504
4519
|
}
|
|
4505
|
-
if (
|
|
4520
|
+
if (G.value) {
|
|
4506
4521
|
let e = await Bs(a.value, t.value, i);
|
|
4507
4522
|
l.value = {
|
|
4508
4523
|
...l.value,
|
|
@@ -4516,10 +4531,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4516
4531
|
});
|
|
4517
4532
|
return;
|
|
4518
4533
|
}
|
|
4519
|
-
let r =
|
|
4520
|
-
if (
|
|
4521
|
-
let e =
|
|
4522
|
-
if (
|
|
4534
|
+
let r = ke(B.value), i = $(t.value);
|
|
4535
|
+
if (z.value) {
|
|
4536
|
+
let e = G.value ? l.value : a.value.getAdvancedFilterModel();
|
|
4537
|
+
if (_e.value) {
|
|
4523
4538
|
let t = i.aggregateFields, n = [];
|
|
4524
4539
|
for (let e of t) {
|
|
4525
4540
|
let t = r[e] || [];
|
|
@@ -4542,10 +4557,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4542
4557
|
} : t;
|
|
4543
4558
|
}
|
|
4544
4559
|
} else {
|
|
4545
|
-
let t =
|
|
4546
|
-
e = Ks(e, n,
|
|
4560
|
+
let t = B.value.length > 0 ? B.value : null, n = Os(U.value, t || []);
|
|
4561
|
+
e = Ks(e, n, U.value);
|
|
4547
4562
|
}
|
|
4548
|
-
if (
|
|
4563
|
+
if (G.value) l.value = e, E(_e.value ? new Set(i.aggregateFields) : new Set([U.value]));
|
|
4549
4564
|
else {
|
|
4550
4565
|
let t = e;
|
|
4551
4566
|
v(() => {
|
|
@@ -4554,37 +4569,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4554
4569
|
}
|
|
4555
4570
|
return;
|
|
4556
4571
|
}
|
|
4557
|
-
let o =
|
|
4558
|
-
if (
|
|
4572
|
+
let o = B.value.length > 0 ? B.value : null;
|
|
4573
|
+
if (G.value) {
|
|
4559
4574
|
let e = await Bs(a.value, t.value, o);
|
|
4560
4575
|
l.value = {
|
|
4561
4576
|
...l.value,
|
|
4562
|
-
[
|
|
4577
|
+
[U.value]: e
|
|
4563
4578
|
};
|
|
4564
4579
|
return;
|
|
4565
4580
|
}
|
|
4566
4581
|
let s = await Bs(a.value, t.value, o);
|
|
4567
|
-
a.value.setColumnFilterModel(
|
|
4582
|
+
a.value.setColumnFilterModel(U.value, s).then(() => {
|
|
4568
4583
|
a.value && a.value.onFilterChanged();
|
|
4569
4584
|
});
|
|
4570
|
-
},
|
|
4571
|
-
e &&
|
|
4572
|
-
},
|
|
4573
|
-
|
|
4574
|
-
},
|
|
4575
|
-
|
|
4576
|
-
},
|
|
4585
|
+
}, je = (e, t) => {
|
|
4586
|
+
e && se.value ? B.value = [e] : e && !B.value.includes(e) && (B.value = [...B.value, e]), (!C.value || G.value) && (t && t !== U.value ? Ae(t, [e]) : Ae()), i?.();
|
|
4587
|
+
}, Me = (e, t) => {
|
|
4588
|
+
B.value = B.value.filter((t) => t !== e), (!C.value || G.value) && (t && t !== U.value ? Ae(t, null) : Ae()), i?.();
|
|
4589
|
+
}, Ne = () => {
|
|
4590
|
+
ie.value = !0;
|
|
4591
|
+
}, Pe = () => {
|
|
4592
|
+
ie.value = !1, ne.value = "", C.value && !G.value && (_e.value ? Ie(ve.value) : Ae());
|
|
4593
|
+
}, Fe = async (e) => {
|
|
4577
4594
|
if (!a.value) return;
|
|
4578
|
-
let n =
|
|
4595
|
+
let n = te.value.length;
|
|
4579
4596
|
await s(t.value, {
|
|
4580
4597
|
api: a.value,
|
|
4581
4598
|
filterModel: c.value ?? void 0,
|
|
4582
4599
|
offset: n,
|
|
4583
4600
|
parentId: e.parentId
|
|
4584
4601
|
});
|
|
4585
|
-
},
|
|
4586
|
-
if (!a.value || !
|
|
4587
|
-
|
|
4602
|
+
}, Ie = (e) => {
|
|
4603
|
+
if (!a.value || !_e.value) return;
|
|
4604
|
+
ve.value = e;
|
|
4588
4605
|
let n = $(t.value).aggregateFields || [], r = n[0];
|
|
4589
4606
|
if (!r) return;
|
|
4590
4607
|
let { selectedParentIds: o, selectedChildrenIds: s, deselectedChildrenIds: c } = e, u = [];
|
|
@@ -4605,7 +4622,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4605
4622
|
conditions: e
|
|
4606
4623
|
});
|
|
4607
4624
|
}
|
|
4608
|
-
let d = o.length > 0 || s.length > 0, f =
|
|
4625
|
+
let d = o.length > 0 || s.length > 0, f = G.value ? l.value : a.value.getAdvancedFilterModel();
|
|
4609
4626
|
for (let e of n) f = Ks(f, null, e);
|
|
4610
4627
|
if (d && u.length > 0) {
|
|
4611
4628
|
let e = u.length === 1 ? u[0] : {
|
|
@@ -4619,7 +4636,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4619
4636
|
conditions: [f, e]
|
|
4620
4637
|
} : e;
|
|
4621
4638
|
}
|
|
4622
|
-
if (
|
|
4639
|
+
if (G.value) l.value = f;
|
|
4623
4640
|
else {
|
|
4624
4641
|
let e = f;
|
|
4625
4642
|
v(() => {
|
|
@@ -4628,89 +4645,91 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4628
4645
|
}
|
|
4629
4646
|
i?.();
|
|
4630
4647
|
};
|
|
4631
|
-
return
|
|
4632
|
-
|
|
4633
|
-
}, { deep: !0 }),
|
|
4634
|
-
e && S.value &&
|
|
4635
|
-
}),
|
|
4636
|
-
if (
|
|
4637
|
-
if (
|
|
4648
|
+
return V(ve, (e) => {
|
|
4649
|
+
_e.value && (C.value && !G.value || Ie(e));
|
|
4650
|
+
}, { deep: !0 }), V(() => x.value[U.value], (e) => {
|
|
4651
|
+
e && S.value && xe(!0);
|
|
4652
|
+
}), V(() => l.value, () => {
|
|
4653
|
+
if (G.value) {
|
|
4654
|
+
if (z.value) {
|
|
4638
4655
|
let e = [], n = l.value;
|
|
4639
|
-
if (
|
|
4656
|
+
if (_e.value) {
|
|
4640
4657
|
let r = $(t.value);
|
|
4641
4658
|
for (let t of r.aggregateFields) {
|
|
4642
4659
|
let r = Js(t, n);
|
|
4643
4660
|
e.push(...r);
|
|
4644
4661
|
}
|
|
4645
|
-
} else e = Js(
|
|
4646
|
-
|
|
4662
|
+
} else e = Js(U.value, n);
|
|
4663
|
+
B.value = e;
|
|
4647
4664
|
return;
|
|
4648
4665
|
}
|
|
4649
|
-
|
|
4666
|
+
W.value === "agSetColumnFilter" ? B.value = l.value?.[U.value]?.values || [] : W.value === "agMultiColumnFilter" ? B.value = l.value?.[U.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${W.value} is not yet supported.`);
|
|
4650
4667
|
}
|
|
4651
|
-
}),
|
|
4652
|
-
if (
|
|
4653
|
-
if (
|
|
4654
|
-
let e = c.value, t = Js(
|
|
4655
|
-
|
|
4668
|
+
}), V(() => c.value, () => {
|
|
4669
|
+
if (G.value || _e.value) return;
|
|
4670
|
+
if (z.value) {
|
|
4671
|
+
let e = c.value, t = Js(U.value, e);
|
|
4672
|
+
ye(B.value.some((e) => e !== null && !t.includes(e)));
|
|
4656
4673
|
return;
|
|
4657
4674
|
}
|
|
4658
4675
|
let e = Vs(t.value, c.value);
|
|
4659
|
-
|
|
4660
|
-
}, { deep: !0 }),
|
|
4661
|
-
|
|
4662
|
-
}),
|
|
4663
|
-
e && h.value && (x.value[
|
|
4664
|
-
}, { immediate: !0 }),
|
|
4665
|
-
S.value && (
|
|
4666
|
-
await
|
|
4667
|
-
}, 2e3) : await
|
|
4668
|
-
}), qe(() =>
|
|
4669
|
-
await
|
|
4676
|
+
ye(B.value.some((t) => !e.includes(t)));
|
|
4677
|
+
}, { deep: !0 }), V(() => u.value, () => {
|
|
4678
|
+
B.value = [];
|
|
4679
|
+
}), V(() => a.value, (e) => {
|
|
4680
|
+
e && h.value && (x.value[U.value] = !0);
|
|
4681
|
+
}, { immediate: !0 }), V(() => ee.value, async () => {
|
|
4682
|
+
S.value && (G.value ? setTimeout(async () => {
|
|
4683
|
+
await xe(!0);
|
|
4684
|
+
}, 2e3) : await xe(!0)), ye();
|
|
4685
|
+
}), qe(() => ne.value, async () => {
|
|
4686
|
+
await xe(!0, !0);
|
|
4670
4687
|
}, { debounce: 300 }), w(() => {
|
|
4688
|
+
k(U.value);
|
|
4671
4689
|
let e = $(t.value);
|
|
4672
|
-
e.aggregateFields?.length &&
|
|
4690
|
+
e.aggregateFields?.length && D(U.value, e.aggregateFields), ye(), _e.value || $(t.value).metadataDisplayFields?.length && B.value.some((e) => Ce(e)) && xe(!0, !0);
|
|
4673
4691
|
}), T(() => {
|
|
4674
|
-
C.value && !
|
|
4692
|
+
A(U.value), C.value && !G.value && (_e.value ? Ie(ve.value) : Ae());
|
|
4675
4693
|
}), {
|
|
4676
|
-
selectedValues:
|
|
4677
|
-
filterValues:
|
|
4678
|
-
isLoading:
|
|
4679
|
-
filterSearchText:
|
|
4680
|
-
rowsLoading:
|
|
4694
|
+
selectedValues: B,
|
|
4695
|
+
filterValues: te,
|
|
4696
|
+
isLoading: H,
|
|
4697
|
+
filterSearchText: ne,
|
|
4698
|
+
rowsLoading: R,
|
|
4681
4699
|
gridApi: a,
|
|
4682
|
-
filterField:
|
|
4683
|
-
filterType:
|
|
4684
|
-
filterDisplayName:
|
|
4685
|
-
isInFilterPanel:
|
|
4686
|
-
maxSelectableValues:
|
|
4687
|
-
isSingleSelect:
|
|
4688
|
-
selectionLimitReached:
|
|
4689
|
-
suggestedValues:
|
|
4690
|
-
displayedFilterValues:
|
|
4691
|
-
selectedFilterValues:
|
|
4692
|
-
showSearchBar:
|
|
4693
|
-
emptyFilterResultsRenderer:
|
|
4694
|
-
filterOptionsRenderer:
|
|
4695
|
-
filterHeaderRenderer:
|
|
4696
|
-
filterFooterRenderer:
|
|
4697
|
-
filterOptionsSortDescription:
|
|
4698
|
-
filterOptionsSortTooltip:
|
|
4699
|
-
totalOptionCount:
|
|
4700
|
-
isAggregate:
|
|
4701
|
-
cascadeSelectionState:
|
|
4700
|
+
filterField: U,
|
|
4701
|
+
filterType: W,
|
|
4702
|
+
filterDisplayName: re,
|
|
4703
|
+
isInFilterPanel: G,
|
|
4704
|
+
maxSelectableValues: oe,
|
|
4705
|
+
isSingleSelect: se,
|
|
4706
|
+
selectionLimitReached: me,
|
|
4707
|
+
suggestedValues: he,
|
|
4708
|
+
displayedFilterValues: De,
|
|
4709
|
+
selectedFilterValues: Oe,
|
|
4710
|
+
showSearchBar: ue,
|
|
4711
|
+
emptyFilterResultsRenderer: de,
|
|
4712
|
+
filterOptionsRenderer: K,
|
|
4713
|
+
filterHeaderRenderer: fe,
|
|
4714
|
+
filterFooterRenderer: pe,
|
|
4715
|
+
filterOptionsSortDescription: ce,
|
|
4716
|
+
filterOptionsSortTooltip: le,
|
|
4717
|
+
totalOptionCount: ge,
|
|
4718
|
+
isAggregate: _e,
|
|
4719
|
+
cascadeSelectionState: ve,
|
|
4702
4720
|
filterValueContext: f,
|
|
4703
|
-
formatDisplayValue:
|
|
4704
|
-
isUnresolvedMetadataValue:
|
|
4705
|
-
getLatestFilterValues:
|
|
4706
|
-
addSelectedValue:
|
|
4707
|
-
removeSelectedValue:
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4721
|
+
formatDisplayValue: Se,
|
|
4722
|
+
isUnresolvedMetadataValue: Ce,
|
|
4723
|
+
getLatestFilterValues: xe,
|
|
4724
|
+
addSelectedValue: je,
|
|
4725
|
+
removeSelectedValue: Me,
|
|
4726
|
+
handleDropdownOpen: Ne,
|
|
4727
|
+
handleDropdownClosed: Pe,
|
|
4728
|
+
handleSeeMore: Fe,
|
|
4729
|
+
handleCascadeSelectionState: Ie,
|
|
4730
|
+
getColDisplayNameForField: Te,
|
|
4731
|
+
disableFilterValue: we,
|
|
4732
|
+
updateFilterModelWithSelectedValues: Ae
|
|
4714
4733
|
};
|
|
4715
4734
|
}, ac = {
|
|
4716
4735
|
key: 0,
|
|
@@ -4767,39 +4786,41 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4767
4786
|
"handle-settings-icon"
|
|
4768
4787
|
],
|
|
4769
4788
|
setup(e, { emit: n }) {
|
|
4770
|
-
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer: R, filterOptionsSortDescription:
|
|
4789
|
+
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer: R, filterOptionsSortDescription: ee, filterOptionsSortTooltip: z, filterValueContext: B, formatDisplayValue: te, isUnresolvedMetadataValue: V, getLatestFilterValues: ne, addSelectedValue: U, removeSelectedValue: W, handleDropdownOpen: re, handleDropdownClosed: G, handleSeeMore: ie, getColDisplayNameForField: ae, totalOptionCount: oe, isAggregate: se, cascadeSelectionState: ce } = ic({
|
|
4771
4790
|
filterColDef: F(d, "filterColDef"),
|
|
4772
4791
|
filterStyle: F(d, "filterStyle"),
|
|
4773
4792
|
onSelectionChanged: () => f("filter-selection-changed")
|
|
4774
|
-
}), { handleFocusUpdate:
|
|
4775
|
-
if (
|
|
4793
|
+
}), { handleFocusUpdate: le, isFocused: ue, removeFocus: de, isFocusable: K, canRemoveFocus: fe } = Ko(), pe = r(() => {
|
|
4794
|
+
if (K(vs(d.filterColDef) ? $(d.filterColDef)?.aggregateFields || [] : [S.value])) return {
|
|
4776
4795
|
icon: "focus",
|
|
4777
|
-
isDisabled: (e) => !
|
|
4796
|
+
isDisabled: (e) => !K([e.context?.colField || S.value]),
|
|
4778
4797
|
tooltipText: (e) => {
|
|
4779
4798
|
let t = e.context?.colField || S.value;
|
|
4780
|
-
if (!
|
|
4781
|
-
let n =
|
|
4799
|
+
if (!K([t])) return `Group by ${ae(t)} to enable ${d.focusText}`;
|
|
4800
|
+
let n = ue(e.id, t);
|
|
4782
4801
|
return n && !fe() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
4783
4802
|
},
|
|
4784
4803
|
action: (e) => {
|
|
4785
|
-
e && !m.value.includes(e.id) &&
|
|
4804
|
+
e && !m.value.includes(e.id) && U(e.id, e.context?.colField);
|
|
4786
4805
|
let t = e.context?.colField || S.value;
|
|
4787
|
-
|
|
4806
|
+
le(e.id, t);
|
|
4788
4807
|
},
|
|
4789
4808
|
alwaysShow: (e) => {
|
|
4790
4809
|
let t = e.context?.colField || S.value;
|
|
4791
|
-
return
|
|
4810
|
+
return ue(e.id, t);
|
|
4792
4811
|
}
|
|
4793
4812
|
};
|
|
4794
|
-
}),
|
|
4795
|
-
|
|
4796
|
-
},
|
|
4797
|
-
|
|
4798
|
-
},
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4813
|
+
}), me = (e) => {
|
|
4814
|
+
W(e), ue(e, B(S.value, e)?.colField || S.value) && fe() && de(e);
|
|
4815
|
+
}, he = () => {
|
|
4816
|
+
re(), ne(!0);
|
|
4817
|
+
}, ge = () => {
|
|
4818
|
+
G(), f("filter-closed");
|
|
4819
|
+
}, _e = (e) => ue(e, B(S.value, e)?.colField || S.value);
|
|
4820
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(w) ? (E(), o("ul", ac, [(E(!0), o(t, null, k(I(m), (e) => (E(), o(t, { key: `${I(C)}-${e}` }, [I(V)(e) ? a("", !0) : (E(), o("li", oc, [u(yn, {
|
|
4821
|
+
label: I(te)(e) || "",
|
|
4822
|
+
showClear: !_e(e) || I(fe)(),
|
|
4823
|
+
onHandleClose: (t) => me(e)
|
|
4803
4824
|
}, null, 8, [
|
|
4804
4825
|
"label",
|
|
4805
4826
|
"showClear",
|
|
@@ -4809,8 +4830,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4809
4830
|
"onUpdate:modelValue": r[1] ||= (e) => h(O) ? O.value = e : null,
|
|
4810
4831
|
searchInput: I(_),
|
|
4811
4832
|
"onUpdate:searchInput": r[2] ||= (e) => h(_) ? _.value = e : null,
|
|
4812
|
-
selectionState: I(
|
|
4813
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
4833
|
+
selectionState: I(ce),
|
|
4834
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ce) ? ce.value = e : null,
|
|
4814
4835
|
"data-horizontal-filter-field": I(w) ? void 0 : I(S),
|
|
4815
4836
|
label: I(w) ? "" : I(C),
|
|
4816
4837
|
highlightSearchText: !0,
|
|
@@ -4834,63 +4855,63 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4834
4855
|
disableDropdownIcon: !!I(w),
|
|
4835
4856
|
groupings: ["preferences", "suggestions"],
|
|
4836
4857
|
isLoading: I(g),
|
|
4837
|
-
totalOptionCount: I(
|
|
4838
|
-
enableCascadeSelection: I(
|
|
4839
|
-
enableChildExpansion: I(
|
|
4840
|
-
parentSelectsAllChildren: I(
|
|
4841
|
-
countSelectedParents: I(
|
|
4842
|
-
hideParentOnChildQueryMatch: I(
|
|
4858
|
+
totalOptionCount: I(oe),
|
|
4859
|
+
enableCascadeSelection: I(se),
|
|
4860
|
+
enableChildExpansion: I(se),
|
|
4861
|
+
parentSelectsAllChildren: I(se),
|
|
4862
|
+
countSelectedParents: I(se),
|
|
4863
|
+
hideParentOnChildQueryMatch: I(se),
|
|
4843
4864
|
slotContext: {
|
|
4844
4865
|
gridApi: I(x),
|
|
4845
4866
|
filterColDef: e.filterColDef,
|
|
4846
4867
|
rowsLoading: I(v)
|
|
4847
4868
|
},
|
|
4848
|
-
onDropdownOpen:
|
|
4849
|
-
onDropdownClosed:
|
|
4850
|
-
onSeeMore: I(
|
|
4869
|
+
onDropdownOpen: he,
|
|
4870
|
+
onDropdownClosed: ge,
|
|
4871
|
+
onSeeMore: I(ie)
|
|
4851
4872
|
}, c({
|
|
4852
|
-
preferences:
|
|
4873
|
+
preferences: H(() => [s("div", sc, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(_n), {
|
|
4853
4874
|
variant: "dark",
|
|
4854
4875
|
size: "sm"
|
|
4855
4876
|
}, {
|
|
4856
|
-
label:
|
|
4877
|
+
label: H(() => [u(X, {
|
|
4857
4878
|
size: "md",
|
|
4858
4879
|
variant: "ghost",
|
|
4859
4880
|
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(C)),
|
|
4860
4881
|
"right-icon": "sliders-horizontal"
|
|
4861
4882
|
})]),
|
|
4862
|
-
"tooltip-content":
|
|
4883
|
+
"tooltip-content": H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
4863
4884
|
_: 1
|
|
4864
4885
|
})])]),
|
|
4865
|
-
suggestions:
|
|
4886
|
+
suggestions: H(() => [s("div", cc, [u(I(_n), {
|
|
4866
4887
|
variant: "dark",
|
|
4867
4888
|
disableInteractive: !0,
|
|
4868
4889
|
"tooltip-position": "top-left",
|
|
4869
4890
|
size: "sm",
|
|
4870
4891
|
style: { "--max-width": "200px" }
|
|
4871
4892
|
}, c({
|
|
4872
|
-
label:
|
|
4893
|
+
label: H(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(z) ? "suggested-title-label" : ""]) }, P(I(ee)), 3)]),
|
|
4873
4894
|
_: 2
|
|
4874
|
-
}, [I(
|
|
4895
|
+
}, [I(z) ? {
|
|
4875
4896
|
name: "tooltip-content",
|
|
4876
|
-
fn:
|
|
4897
|
+
fn: H(() => [l(P(I(z)), 1)]),
|
|
4877
4898
|
key: "0"
|
|
4878
4899
|
} : void 0]), 1024)])]),
|
|
4879
4900
|
_: 2
|
|
4880
4901
|
}, [
|
|
4881
4902
|
I(L) ? {
|
|
4882
4903
|
name: "header",
|
|
4883
|
-
fn:
|
|
4904
|
+
fn: H((e) => [(E(), i(M(I(L)), b(p(e)), null, 16))]),
|
|
4884
4905
|
key: "0"
|
|
4885
4906
|
} : void 0,
|
|
4886
4907
|
I(j) ? {
|
|
4887
4908
|
name: "no-results",
|
|
4888
|
-
fn:
|
|
4909
|
+
fn: H((e) => [(E(), i(M(I(j)), b(p(e)), null, 16))]),
|
|
4889
4910
|
key: "1"
|
|
4890
4911
|
} : void 0,
|
|
4891
4912
|
I(R) ? {
|
|
4892
4913
|
name: "footer",
|
|
4893
|
-
fn:
|
|
4914
|
+
fn: H((e) => [(E(), i(M(I(R)), b(p(e)), null, 16))]),
|
|
4894
4915
|
key: "2"
|
|
4895
4916
|
} : void 0
|
|
4896
4917
|
]), 1032, /* @__PURE__ */ "modelValue.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.hideParentOnChildQueryMatch.slotContext.onSeeMore".split("."))]), I(w) ? (E(), o("div", lc, [I(T).length > 0 ? (E(), o("div", uc, [s("ul", dc, [u(I(_n), {
|
|
@@ -4900,11 +4921,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4900
4921
|
size: "sm",
|
|
4901
4922
|
style: { "--max-width": "200px" }
|
|
4902
4923
|
}, c({
|
|
4903
|
-
label:
|
|
4924
|
+
label: H(() => [s("li", fc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(z) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
4904
4925
|
_: 2
|
|
4905
|
-
}, [I(
|
|
4926
|
+
}, [I(z) ? {
|
|
4906
4927
|
name: "tooltip-content",
|
|
4907
|
-
fn:
|
|
4928
|
+
fn: H(() => [l(P(I(z)), 1)]),
|
|
4908
4929
|
key: "0"
|
|
4909
4930
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(T).filter((e) => e !== "" && e != null).slice(0, pc), (e) => (E(), o("li", {
|
|
4910
4931
|
key: `${I(C)}-${e}-suggest`,
|
|
@@ -4915,15 +4936,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4915
4936
|
}
|
|
4916
4937
|
}, [u(I(Ti), {
|
|
4917
4938
|
disabled: I(g),
|
|
4918
|
-
label: I(
|
|
4919
|
-
onHandleClick: (t) => I(
|
|
4939
|
+
label: I(te)(e) || "",
|
|
4940
|
+
onHandleClick: (t) => I(U)(e, I(B)(I(S), e)?.colField)
|
|
4920
4941
|
}, null, 8, [
|
|
4921
4942
|
"disabled",
|
|
4922
4943
|
"label",
|
|
4923
4944
|
"onHandleClick"
|
|
4924
4945
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
4925
4946
|
}
|
|
4926
|
-
}), [["__scopeId", "data-v-
|
|
4947
|
+
}), [["__scopeId", "data-v-c030243b"]]), hc = { class: "pv-flex" }, gc = { class: "pv-flex" }, _c = { class: "pv-flex pv-space-between pv-stack-8" }, vc = { class: "pv-text-title-lg" }, yc = {
|
|
4927
4948
|
id: "filter-vertical-drawer",
|
|
4928
4949
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
4929
4950
|
style: { height: "100%" }
|
|
@@ -4986,11 +5007,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4986
5007
|
}
|
|
4987
5008
|
let t = _.value || {};
|
|
4988
5009
|
return Object.keys(t).length;
|
|
4989
|
-
}),
|
|
4990
|
-
|
|
5010
|
+
}), ee = O(!1), z = () => {
|
|
5011
|
+
ee.value = !0;
|
|
4991
5012
|
}, B = () => {
|
|
4992
5013
|
if (n.value) {
|
|
4993
|
-
|
|
5014
|
+
ee.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
4994
5015
|
for (let e of M.value) {
|
|
4995
5016
|
let t = e.field;
|
|
4996
5017
|
if (!t) continue;
|
|
@@ -5001,14 +5022,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5001
5022
|
});
|
|
5002
5023
|
}
|
|
5003
5024
|
}
|
|
5004
|
-
}, { clearAllFocuses:
|
|
5005
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5006
|
-
},
|
|
5025
|
+
}, { clearAllFocuses: te } = Ko(), V = () => {
|
|
5026
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, te(), T.value = !1);
|
|
5027
|
+
}, ne = () => {
|
|
5007
5028
|
w.value = !1, D.value = "";
|
|
5029
|
+
}, U = () => {
|
|
5030
|
+
b(), ne();
|
|
5008
5031
|
}, W = () => {
|
|
5009
|
-
b(),
|
|
5010
|
-
}, G = () => {
|
|
5011
|
-
b(), z.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), te();
|
|
5032
|
+
b(), ee.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), ne();
|
|
5012
5033
|
};
|
|
5013
5034
|
return (e, r) => (E(), o(t, null, [s("div", hc, [
|
|
5014
5035
|
(E(!0), o(t, null, k(F.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(mc, {
|
|
@@ -5049,39 +5070,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5049
5070
|
"onUpdate:modelValue": r[8] ||= (e) => w.value = e,
|
|
5050
5071
|
class: "pv-drawer pv-surface",
|
|
5051
5072
|
"close-on-click-outside": !0,
|
|
5052
|
-
onClickOutside: r[9] ||= (e) =>
|
|
5073
|
+
onClickOutside: r[9] ||= (e) => W(),
|
|
5053
5074
|
style: {
|
|
5054
5075
|
"max-width": "450px",
|
|
5055
5076
|
"z-index": "10"
|
|
5056
5077
|
}
|
|
5057
5078
|
}, {
|
|
5058
|
-
header:
|
|
5079
|
+
header: H(() => [s("div", _c, [s("p", vc, "All Filters (" + P(M.value.length) + ")", 1), s("button", {
|
|
5059
5080
|
class: "pv-button-ghost",
|
|
5060
|
-
onClick: r[2] ||= (e) =>
|
|
5081
|
+
onClick: r[2] ||= (e) => U()
|
|
5061
5082
|
}, [u(I(rn), { name: "close" })])]), u(I(Ai), {
|
|
5062
5083
|
modelValue: D.value,
|
|
5063
5084
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5064
5085
|
placeholder: "Search Filters"
|
|
5065
5086
|
}, null, 8, ["modelValue"])]),
|
|
5066
|
-
footer:
|
|
5087
|
+
footer: H(() => [s("div", wc, [s("button", {
|
|
5067
5088
|
class: "pv-button-ghost",
|
|
5068
|
-
onClick: r[5] ||= (e) =>
|
|
5089
|
+
onClick: r[5] ||= (e) => V()
|
|
5069
5090
|
}, "Clear All"), s("div", Tc, [u(I(X), {
|
|
5070
5091
|
variant: "ghost",
|
|
5071
5092
|
label: "Cancel",
|
|
5072
|
-
onClick: r[6] ||= (e) =>
|
|
5073
|
-
}),
|
|
5093
|
+
onClick: r[6] ||= (e) => U()
|
|
5094
|
+
}), ee.value ? (E(), i(I(X), {
|
|
5074
5095
|
key: 0,
|
|
5075
5096
|
variant: "primary",
|
|
5076
5097
|
label: "Apply",
|
|
5077
|
-
onClick: r[7] ||= (e) =>
|
|
5098
|
+
onClick: r[7] ||= (e) => W()
|
|
5078
5099
|
})) : (E(), i(I(X), {
|
|
5079
5100
|
key: 1,
|
|
5080
5101
|
variant: "primary",
|
|
5081
5102
|
label: "No Changes",
|
|
5082
5103
|
disabled: ""
|
|
5083
5104
|
}))])])]),
|
|
5084
|
-
default:
|
|
5105
|
+
default: H(() => [s("div", yc, [s("div", bc, [(E(!0), o(t, null, k(N.value, (t, c) => (E(), o("div", {
|
|
5085
5106
|
key: t.field,
|
|
5086
5107
|
class: y([{ "pv-border-bottom": c < N.value.length - 1 }, "pv-stack-12"])
|
|
5087
5108
|
}, [s("details", xc, [s("summary", Sc, [s("span", Cc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(mc, {
|
|
@@ -5091,7 +5112,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5091
5112
|
filterColDef: t,
|
|
5092
5113
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5093
5114
|
"focus-text": p.focusText,
|
|
5094
|
-
onFilterSelectionChanged:
|
|
5115
|
+
onFilterSelectionChanged: z,
|
|
5095
5116
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5096
5117
|
}, null, 8, [
|
|
5097
5118
|
"enable-focus-view",
|
|
@@ -5107,8 +5128,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5107
5128
|
header: "Clear All Filters",
|
|
5108
5129
|
style: { top: "50%" }
|
|
5109
5130
|
}, {
|
|
5110
|
-
body:
|
|
5111
|
-
footer:
|
|
5131
|
+
body: H(() => [...r[13] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5132
|
+
footer: H(() => [s("div", Ec, [u(I(X), {
|
|
5112
5133
|
label: "Cancel",
|
|
5113
5134
|
variant: "secondary",
|
|
5114
5135
|
size: "lg",
|
|
@@ -5117,7 +5138,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5117
5138
|
label: "Clear All Filters",
|
|
5118
5139
|
variant: "primary",
|
|
5119
5140
|
size: "lg",
|
|
5120
|
-
onClick:
|
|
5141
|
+
onClick: V
|
|
5121
5142
|
})])]),
|
|
5122
5143
|
_: 1
|
|
5123
5144
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5156,7 +5177,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5156
5177
|
}, I = () => {
|
|
5157
5178
|
f.value && l.params.progressSort(!1);
|
|
5158
5179
|
};
|
|
5159
|
-
|
|
5180
|
+
V(D, (e) => {
|
|
5160
5181
|
if (!e) return;
|
|
5161
5182
|
let t = l.params.column.getAggFunc();
|
|
5162
5183
|
if (e.id === t) return;
|
|
@@ -5200,7 +5221,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5200
5221
|
variant: "ghost",
|
|
5201
5222
|
size: "lg",
|
|
5202
5223
|
label: p.value || "",
|
|
5203
|
-
onClick: t[1] ||=
|
|
5224
|
+
onClick: t[1] ||= U(() => {}, ["stop"])
|
|
5204
5225
|
}, null, 8, [
|
|
5205
5226
|
"modelValue",
|
|
5206
5227
|
"options",
|
|
@@ -5219,7 +5240,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5219
5240
|
size: "md",
|
|
5220
5241
|
variant: "ghost",
|
|
5221
5242
|
"left-icon": "menu",
|
|
5222
|
-
onClick:
|
|
5243
|
+
onClick: U(N, ["stop", "prevent"])
|
|
5223
5244
|
})], 4)])) : a("", !0)], 4));
|
|
5224
5245
|
}
|
|
5225
5246
|
}), [["__scopeId", "data-v-9a0f71b4"]]), jc = {
|
|
@@ -5288,7 +5309,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5288
5309
|
class: "pv-icon-24"
|
|
5289
5310
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Ic, [s("button", {
|
|
5290
5311
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
5291
|
-
onClick:
|
|
5312
|
+
onClick: U(i, ["prevent"]),
|
|
5292
5313
|
disabled: r.value
|
|
5293
5314
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Lc)])]));
|
|
5294
5315
|
}
|
|
@@ -5299,7 +5320,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5299
5320
|
__name: "PaginationPanel",
|
|
5300
5321
|
props: { panelSize: { default: "xl" } },
|
|
5301
5322
|
setup(e) {
|
|
5302
|
-
me.registerModules([
|
|
5323
|
+
me.registerModules([K]);
|
|
5303
5324
|
let n = m(io, O(null)), a = m(ho, O(1)), s = m(go, O(0)), c = e, l = r(() => {
|
|
5304
5325
|
let e = s.value, t = a.value;
|
|
5305
5326
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -5647,7 +5668,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5647
5668
|
Ae,
|
|
5648
5669
|
ce,
|
|
5649
5670
|
ue,
|
|
5650
|
-
|
|
5671
|
+
fe,
|
|
5651
5672
|
Me,
|
|
5652
5673
|
ye,
|
|
5653
5674
|
Re,
|
|
@@ -5666,7 +5687,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5666
5687
|
Ce,
|
|
5667
5688
|
ae,
|
|
5668
5689
|
be,
|
|
5669
|
-
|
|
5690
|
+
pe,
|
|
5670
5691
|
he,
|
|
5671
5692
|
de,
|
|
5672
5693
|
le,
|
|
@@ -5678,7 +5699,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5678
5699
|
let p = r(() => f.layout ? {} : {
|
|
5679
5700
|
height: f.containerHeight,
|
|
5680
5701
|
minHeight: f.containerMinHeight
|
|
5681
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
5702
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", C = r(() => h.value ? f.theme : Pc[g.value]), w = c, T = O(!1), k = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
5682
5703
|
if (!Ue.value) {
|
|
5683
5704
|
e.success({ rowData: [] }), me.value = !0;
|
|
5684
5705
|
return;
|
|
@@ -5763,7 +5784,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5763
5784
|
}, f.serverSideRowHandler?.(e);
|
|
5764
5785
|
} } : null, j = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
5765
5786
|
let t = [], n = { ...Xe.value };
|
|
5766
|
-
t = !me.value &&
|
|
5787
|
+
t = !me.value && W ? Vs(e.colDef, n) : await et(e.colDef, {
|
|
5767
5788
|
api: e.api,
|
|
5768
5789
|
filterModel: n
|
|
5769
5790
|
}), e.success([...t, ""]);
|
|
@@ -5790,7 +5811,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5790
5811
|
component: Cs,
|
|
5791
5812
|
params: e
|
|
5792
5813
|
};
|
|
5793
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
5814
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
5794
5815
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
5795
5816
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
5796
5817
|
component: Wc,
|
|
@@ -5804,19 +5825,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5804
5825
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
5805
5826
|
let t = [];
|
|
5806
5827
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
5807
|
-
}),
|
|
5828
|
+
}), ee = {
|
|
5808
5829
|
name: "Column Filter",
|
|
5809
5830
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
5810
5831
|
action: function(e) {
|
|
5811
5832
|
let t = e.column?.getColId();
|
|
5812
5833
|
if (e.column && vt(e.column) && (t = ut.value?.getColId() || ""), !Pt(t)) {
|
|
5813
5834
|
let n = e.api.getColumn(t)?.getColDef();
|
|
5814
|
-
n && (
|
|
5835
|
+
n && (re.value = n, v(() => {
|
|
5815
5836
|
Pt(t);
|
|
5816
5837
|
}));
|
|
5817
5838
|
}
|
|
5818
5839
|
}
|
|
5819
|
-
},
|
|
5840
|
+
}, z = (e, t) => {
|
|
5820
5841
|
if (!e) return null;
|
|
5821
5842
|
let n = { ...e };
|
|
5822
5843
|
if (t.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -5834,15 +5855,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5834
5855
|
let t = { ...e };
|
|
5835
5856
|
k && j && Ls(e) && (t = Rs(e, j));
|
|
5836
5857
|
let n = e.context;
|
|
5837
|
-
return n && (t =
|
|
5838
|
-
}).filter((e) => e != null) || [],
|
|
5858
|
+
return n && (t = z(t, n)), t;
|
|
5859
|
+
}).filter((e) => e != null) || [], U = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
5839
5860
|
for (let e of B) {
|
|
5840
5861
|
let t = e.context;
|
|
5841
|
-
if (t?.aggregateFields) for (let n of t.aggregateFields)
|
|
5862
|
+
if (t?.aggregateFields) for (let n of t.aggregateFields) U.has(n) || console.warn(`aggregateFields references "${n}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
5842
5863
|
}
|
|
5843
|
-
let
|
|
5844
|
-
if (
|
|
5845
|
-
let e =
|
|
5864
|
+
let W = As(f.initialGridState, B, f.enableAdvancedFilter), re = O(null), K = O([]), me = m(po, O(!1)), we = O(!1), He = r(() => {
|
|
5865
|
+
if (K.value.length > 0) {
|
|
5866
|
+
let e = K.value[0], t = B.find((t) => t.field === e), n = Xe.value, r = !n;
|
|
5846
5867
|
if (!r && tc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
5847
5868
|
}
|
|
5848
5869
|
return null;
|
|
@@ -5857,26 +5878,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5857
5878
|
debounce: 250
|
|
5858
5879
|
});
|
|
5859
5880
|
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() => B.filter((e) => e.filter)), ct = r(() => B.filter((e) => e.enableRowGroup)), lt = r(() => B.filter((e) => e.aggFunc)), ut = O(null), dt = O({}), ft = O(1), pt = O(0);
|
|
5860
|
-
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo,
|
|
5881
|
+
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo, re), D(so, st), D(co, ct), D(lo, K), D(uo, ut), D(fo, dt), D(po, me), D(mo, we), D(ho, ft), D(go, pt), D(Do, r(() => f.enableAdvancedFilter));
|
|
5861
5882
|
let mt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ot.value.length && !at.value ? f.rowData : ps(f.rowData, at.value, ot.value));
|
|
5862
|
-
|
|
5883
|
+
V(() => ot.value, (e) => {
|
|
5863
5884
|
w("focus-update", {
|
|
5864
5885
|
filterField: at.value,
|
|
5865
5886
|
focuses: e
|
|
5866
5887
|
});
|
|
5867
|
-
}),
|
|
5888
|
+
}), V(T, (e) => {
|
|
5868
5889
|
if (!Y.value) return;
|
|
5869
5890
|
let t = B.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
5870
5891
|
t.length > 0 && Y.value.setColumnsVisible(t, e);
|
|
5871
5892
|
});
|
|
5872
5893
|
let ht = (e) => {
|
|
5873
5894
|
Y.value = e.api;
|
|
5874
|
-
let t =
|
|
5875
|
-
if (f.hideAllRowGroupedColumns &&
|
|
5895
|
+
let t = K.value.find((e) => !B.find((t) => t.field === e)?.hide), n = !t && K.value.length > 0 ? B.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
5896
|
+
if (f.hideAllRowGroupedColumns && K.value.forEach((e) => i.push(e)), r) {
|
|
5876
5897
|
let t = e.api.getColumn(r);
|
|
5877
5898
|
ut.value = t, i.push(r), Rt(t?.getColDef());
|
|
5878
5899
|
}
|
|
5879
|
-
|
|
5900
|
+
W && Vt(W), e.api.setColumnsVisible([...i], !1), it.value = e.api.getAllGridColumns(), ft.value = e.api.paginationGetCurrentPage() + 1, pt.value = e.api.paginationGetTotalPages(), w("grid-ready", e);
|
|
5880
5901
|
}, gt = (e) => {
|
|
5881
5902
|
if (Y.value) {
|
|
5882
5903
|
let t = Dt();
|
|
@@ -5961,7 +5982,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5961
5982
|
getFilterValueSelectedMetadataMap: Tt,
|
|
5962
5983
|
availableRowGroupColumns: ct,
|
|
5963
5984
|
availableAggFuncColumns: lt,
|
|
5964
|
-
rowGroupColumnFields:
|
|
5985
|
+
rowGroupColumnFields: K,
|
|
5965
5986
|
getPvFilterModel: Dt,
|
|
5966
5987
|
setPvFilterModel: (e) => {
|
|
5967
5988
|
if (!Y.value) return;
|
|
@@ -5987,8 +6008,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5987
6008
|
}
|
|
5988
6009
|
i ? (ut.value = i, Rt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (ut.value = null, Rt(null));
|
|
5989
6010
|
let a = t?.getColId();
|
|
5990
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
5991
|
-
let e =
|
|
6011
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), K.value = [...n].map((e) => e.getColId()), f.enableFocusView && !Ke) {
|
|
6012
|
+
let e = K.value.length > 0 ? K.value[0] : null;
|
|
5992
6013
|
Ye.setFocusType(e);
|
|
5993
6014
|
}
|
|
5994
6015
|
me.value && w("column-row-group-changed", e);
|
|
@@ -6069,16 +6090,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6069
6090
|
"sortUnSort",
|
|
6070
6091
|
"rowUnGroup"
|
|
6071
6092
|
], n = e.column && vt(e.column) ? ut.value : e.column;
|
|
6072
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6073
|
-
},
|
|
6093
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, ee), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6094
|
+
}, W && (Xe.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, K.value = W.rowGroup?.groupColIds || []);
|
|
6074
6095
|
});
|
|
6075
6096
|
let Vt = (e) => {
|
|
6076
6097
|
let t = Y.value;
|
|
6077
6098
|
if (!t) return;
|
|
6078
6099
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6079
|
-
n && !Gs(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !nt(r,
|
|
6100
|
+
n && !Gs(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !nt(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6080
6101
|
};
|
|
6081
|
-
|
|
6102
|
+
V(() => f.initialGridState, () => {
|
|
6082
6103
|
if (f.initialGridState) {
|
|
6083
6104
|
let e = As(f.initialGridState, B, f.enableAdvancedFilter);
|
|
6084
6105
|
e && Vt(e);
|
|
@@ -6086,7 +6107,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6086
6107
|
}, { deep: !0 });
|
|
6087
6108
|
let Ht = (e) => {
|
|
6088
6109
|
me.value = !0, w("first-data-rendered", e);
|
|
6089
|
-
}, Ut = (e) => k ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
6110
|
+
}, Ut = (e) => k ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === K.value.length - 2 : !1, Wt = r(() => {
|
|
6090
6111
|
if (!k) return f.groupDefaultExpanded;
|
|
6091
6112
|
}), Gt = O(null), Kt = O(null);
|
|
6092
6113
|
return (t, r) => (E(), o("div", {
|
|
@@ -6104,15 +6125,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6104
6125
|
"--flex-justify": "flex-end"
|
|
6105
6126
|
}
|
|
6106
6127
|
}, {
|
|
6107
|
-
trigger:
|
|
6128
|
+
trigger: H(() => [u(I(X), {
|
|
6108
6129
|
"left-icon": "flask-conical",
|
|
6109
6130
|
variant: T.value ? "primary" : "secondary",
|
|
6110
6131
|
onClick: r[0] ||= (e) => T.value = !T.value
|
|
6111
6132
|
}, null, 8, ["variant"])]),
|
|
6112
|
-
content:
|
|
6133
|
+
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6113
6134
|
_: 1
|
|
6114
6135
|
})) : a("", !0),
|
|
6115
|
-
|
|
6136
|
+
ne(s("div", Yc, [s("div", Xc, [(E(), i(n, {
|
|
6116
6137
|
to: e.filterTeleportLocation,
|
|
6117
6138
|
disabled: !e.filterTeleportLocation
|
|
6118
6139
|
}, [st.value.length > 0 && !f.enableInlineFilters ? (E(), i(Dc, {
|
|
@@ -6138,12 +6159,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6138
6159
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Rc, {
|
|
6139
6160
|
key: 1,
|
|
6140
6161
|
getCsvData: Et
|
|
6141
|
-
})) : a("", !0)])])], 512), [[
|
|
6142
|
-
|
|
6162
|
+
})) : a("", !0)])])], 512), [[te, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
6163
|
+
ne(s("div", {
|
|
6143
6164
|
ref_key: "advancedFilterParentElement",
|
|
6144
6165
|
ref: Kt,
|
|
6145
6166
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
6146
|
-
}, null, 2), [[
|
|
6167
|
+
}, null, 2), [[te, T.value && e.enableAdvancedFilter]]),
|
|
6147
6168
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
6148
6169
|
key: 1,
|
|
6149
6170
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
@@ -6165,7 +6186,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6165
6186
|
"min-height": "0",
|
|
6166
6187
|
"overflow-x": "hidden"
|
|
6167
6188
|
}
|
|
6168
|
-
}, [u(I(
|
|
6189
|
+
}, [u(I(G), _({
|
|
6169
6190
|
ref: "gridRef",
|
|
6170
6191
|
class: ["pv-data-table", I(b)],
|
|
6171
6192
|
style: [{
|
|
@@ -6203,7 +6224,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6203
6224
|
getRowStyle: zt,
|
|
6204
6225
|
groupDefaultExpanded: Wt.value,
|
|
6205
6226
|
groupDisplayType: "singleColumn",
|
|
6206
|
-
initialState: I(
|
|
6227
|
+
initialState: I(W) || void 0,
|
|
6207
6228
|
isGroupOpenByDefault: I(k) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
6208
6229
|
isServerSideGroupOpenByDefault: Ut,
|
|
6209
6230
|
includeHiddenColumnsInAdvancedFilter: !0,
|
|
@@ -6340,7 +6361,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6340
6361
|
l,
|
|
6341
6362
|
...n.options.filter((t) => !e.has(t.id))
|
|
6342
6363
|
];
|
|
6343
|
-
}), m =
|
|
6364
|
+
}), m = ee("sortableListRef"), h = ee("containerRef"), g = null, _ = null, v = () => {
|
|
6344
6365
|
if (!m.value) return;
|
|
6345
6366
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === fl);
|
|
6346
6367
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
@@ -6555,12 +6576,12 @@ var Sl = {
|
|
|
6555
6576
|
disableInteractive: !0,
|
|
6556
6577
|
style: { "pointer-events": "auto" }
|
|
6557
6578
|
}, {
|
|
6558
|
-
trigger:
|
|
6579
|
+
trigger: H(() => [u(I(rn), {
|
|
6559
6580
|
size: 12,
|
|
6560
6581
|
name: "info-circle",
|
|
6561
6582
|
class: "pv-text-subdued"
|
|
6562
6583
|
})]),
|
|
6563
|
-
content:
|
|
6584
|
+
content: H(() => [s("div", wl, P(e.context.description), 1)]),
|
|
6564
6585
|
_: 1
|
|
6565
6586
|
})) : a("", !0)]));
|
|
6566
6587
|
}
|
|
@@ -6598,14 +6619,14 @@ var Sl = {
|
|
|
6598
6619
|
}), g = O(!1), _ = O(void 0), v = O(null), b = m(xo, O(void 0)), S = m(yo, O([])), C = m(So, O(void 0)), w = m(bo, O([])), T = m(vo, O([])), D = m(co, O([])), A = r(() => xl(b.value?.id || "")), j = r(() => {
|
|
6599
6620
|
let e = b.value?.id ?? "";
|
|
6600
6621
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
6601
|
-
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])), R = m(Oo, O(/* @__PURE__ */ new Set())),
|
|
6602
|
-
|
|
6622
|
+
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])), R = m(Oo, O(/* @__PURE__ */ new Set())), ee = m(ko, O([]));
|
|
6623
|
+
V(j, (e) => {
|
|
6603
6624
|
e && F.value && (F.value = void 0);
|
|
6604
6625
|
}, { immediate: !0 });
|
|
6605
|
-
let
|
|
6626
|
+
let z = m(_o, O("")), B = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
6606
6627
|
label: e.label,
|
|
6607
6628
|
value: e.value
|
|
6608
|
-
})) : []),
|
|
6629
|
+
})) : []), te = r(() => {
|
|
6609
6630
|
if (b.value) return (T.value.length > 1 ? [
|
|
6610
6631
|
"bar_stacked",
|
|
6611
6632
|
"line",
|
|
@@ -6618,7 +6639,7 @@ var Sl = {
|
|
|
6618
6639
|
"area"
|
|
6619
6640
|
]).includes(b.value?.id);
|
|
6620
6641
|
});
|
|
6621
|
-
|
|
6642
|
+
V(S, (e) => {
|
|
6622
6643
|
if (!b.value) return;
|
|
6623
6644
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
6624
6645
|
if (r) {
|
|
@@ -6634,22 +6655,22 @@ var Sl = {
|
|
|
6634
6655
|
}
|
|
6635
6656
|
b.value = e[0];
|
|
6636
6657
|
});
|
|
6637
|
-
function
|
|
6658
|
+
function U(e) {
|
|
6638
6659
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
6639
6660
|
}
|
|
6640
|
-
let
|
|
6661
|
+
let W = r(() => N.value.map((e) => ({
|
|
6641
6662
|
id: e.value,
|
|
6642
6663
|
text: e.label,
|
|
6643
6664
|
context: e.description ? { description: e.description } : void 0
|
|
6644
|
-
}))),
|
|
6665
|
+
}))), re = r(() => L.value.map((e) => ({
|
|
6645
6666
|
id: e.value,
|
|
6646
6667
|
text: e.label
|
|
6647
|
-
}))),
|
|
6668
|
+
}))), G = r(() => D.value.map((e) => ({
|
|
6648
6669
|
id: e.field || "",
|
|
6649
6670
|
text: e.headerName || e.field || "",
|
|
6650
6671
|
icon: rs(e.context?.dataType || null) || "circle-chevron-down"
|
|
6651
6672
|
}))), ie = r({
|
|
6652
|
-
get: () => T.value.map((e) =>
|
|
6673
|
+
get: () => T.value.map((e) => G.value.find((t) => t.id === e)).filter(Boolean),
|
|
6653
6674
|
set: (e) => {
|
|
6654
6675
|
T.value = e.map((e) => e.id);
|
|
6655
6676
|
}
|
|
@@ -6660,8 +6681,8 @@ var Sl = {
|
|
|
6660
6681
|
prefixLabel: "Y Axis",
|
|
6661
6682
|
icon: "chart-bar-decreasing",
|
|
6662
6683
|
allowDeselect: !1,
|
|
6663
|
-
availableOptions:
|
|
6664
|
-
currentOption:
|
|
6684
|
+
availableOptions: W.value,
|
|
6685
|
+
currentOption: W.value.find((e) => e.id === M.value),
|
|
6665
6686
|
updateSelectedOption: (e) => {
|
|
6666
6687
|
M && e !== M.value && (M.value = e);
|
|
6667
6688
|
}
|
|
@@ -6671,12 +6692,12 @@ var Sl = {
|
|
|
6671
6692
|
label: "X Axis",
|
|
6672
6693
|
icon: "align-end-horizontal",
|
|
6673
6694
|
allowDeselect: !1,
|
|
6674
|
-
availableOptions:
|
|
6695
|
+
availableOptions: G.value,
|
|
6675
6696
|
...i ? {
|
|
6676
6697
|
activeOptions: ie,
|
|
6677
6698
|
activeOptionLimit: n.rowGroupLimit
|
|
6678
6699
|
} : {
|
|
6679
|
-
currentOption:
|
|
6700
|
+
currentOption: G.value.find((e) => e.id === T.value[0]),
|
|
6680
6701
|
updateSelectedOption: (e) => {
|
|
6681
6702
|
T.value = e ? [e] : [];
|
|
6682
6703
|
}
|
|
@@ -6688,7 +6709,7 @@ var Sl = {
|
|
|
6688
6709
|
allowDeselect: !0,
|
|
6689
6710
|
availableOptions: w.value,
|
|
6690
6711
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
6691
|
-
disabled: !
|
|
6712
|
+
disabled: !te.value,
|
|
6692
6713
|
disabledReason: "Sorting is not available for this chart type",
|
|
6693
6714
|
updateSelectedOption: (e) => {
|
|
6694
6715
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -6710,7 +6731,7 @@ var Sl = {
|
|
|
6710
6731
|
t && b && (b.value = t);
|
|
6711
6732
|
}
|
|
6712
6733
|
};
|
|
6713
|
-
if (
|
|
6734
|
+
if (W.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && re.value.length > 0) {
|
|
6714
6735
|
let t = {
|
|
6715
6736
|
value: "secondary-y-axis",
|
|
6716
6737
|
label: "Metric Overlay",
|
|
@@ -6719,15 +6740,15 @@ var Sl = {
|
|
|
6719
6740
|
allowDeselect: !0,
|
|
6720
6741
|
disabled: j.value,
|
|
6721
6742
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6722
|
-
availableOptions:
|
|
6723
|
-
currentOption:
|
|
6743
|
+
availableOptions: re.value,
|
|
6744
|
+
currentOption: re.value.find((e) => e.id === F?.value),
|
|
6724
6745
|
updateSelectedOption: (e) => {
|
|
6725
6746
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
6726
6747
|
}
|
|
6727
6748
|
};
|
|
6728
6749
|
t && e.push(t);
|
|
6729
|
-
} else if (
|
|
6730
|
-
let t =
|
|
6750
|
+
} else if (ee.value.length > 0) {
|
|
6751
|
+
let t = ee.value.map((e) => ({
|
|
6731
6752
|
id: e.id,
|
|
6732
6753
|
text: e.label,
|
|
6733
6754
|
disabled: e.disabled,
|
|
@@ -6749,9 +6770,9 @@ var Sl = {
|
|
|
6749
6770
|
n && e.push(n);
|
|
6750
6771
|
}
|
|
6751
6772
|
let c = i ? 2 : 1;
|
|
6752
|
-
return
|
|
6773
|
+
return G.value.length >= c && e.push(a), S.value.length > 1 && e.push(s), w.value.length > 0 && e.push(o), e.filter((e) => n.chartConfigOptions ? n.chartConfigOptions.includes(e.value) : !0);
|
|
6753
6774
|
});
|
|
6754
|
-
|
|
6775
|
+
V(v, (e) => {
|
|
6755
6776
|
e && (p.value = e);
|
|
6756
6777
|
});
|
|
6757
6778
|
let oe = r(() => _.value && ae.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
@@ -6764,7 +6785,7 @@ var Sl = {
|
|
|
6764
6785
|
}, ue = () => {
|
|
6765
6786
|
_.value = void 0;
|
|
6766
6787
|
};
|
|
6767
|
-
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [
|
|
6788
|
+
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [ne((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Dl, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(Ji, {
|
|
6768
6789
|
open: g.value,
|
|
6769
6790
|
label: "Chart Configuration",
|
|
6770
6791
|
icon: "chart-area",
|
|
@@ -6779,7 +6800,7 @@ var Sl = {
|
|
|
6779
6800
|
},
|
|
6780
6801
|
isList: !0
|
|
6781
6802
|
}, {
|
|
6782
|
-
default:
|
|
6803
|
+
default: H(() => [r[3] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
6783
6804
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
6784
6805
|
style: {
|
|
6785
6806
|
"padding-top": "4px",
|
|
@@ -6796,7 +6817,7 @@ var Sl = {
|
|
|
6796
6817
|
class: "pv-full-width",
|
|
6797
6818
|
variant: "dark"
|
|
6798
6819
|
}, c({
|
|
6799
|
-
label:
|
|
6820
|
+
label: H(() => [u(Aa, {
|
|
6800
6821
|
config: { variant: "icon" },
|
|
6801
6822
|
disabled: e.disabled,
|
|
6802
6823
|
id: e.value,
|
|
@@ -6812,7 +6833,7 @@ var Sl = {
|
|
|
6812
6833
|
_: 2
|
|
6813
6834
|
}, [e.disabled && e.disabledReason ? {
|
|
6814
6835
|
name: "tooltip-content",
|
|
6815
|
-
fn:
|
|
6836
|
+
fn: H(() => [s("div", Al, P(e.disabledReason), 1)]),
|
|
6816
6837
|
key: "0"
|
|
6817
6838
|
} : void 0]), 1024)], 40, kl))), 128))])]),
|
|
6818
6839
|
_: 1
|
|
@@ -6822,8 +6843,8 @@ var Sl = {
|
|
|
6822
6843
|
}, [e.chartFilter ? (E(), i(fi, {
|
|
6823
6844
|
key: 0,
|
|
6824
6845
|
options: B.value,
|
|
6825
|
-
modelValue: I(
|
|
6826
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
6846
|
+
modelValue: I(z),
|
|
6847
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(z) ? z.value = e : null
|
|
6827
6848
|
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", jl, [(E(!0), o(t, null, k(ae.value, (e) => (E(), o(t, { key: e.value }, [e.isSortableList ? a("", !0) : (E(), i(Ua, {
|
|
6828
6849
|
key: 0,
|
|
6829
6850
|
label: e.label,
|
|
@@ -6854,7 +6875,7 @@ var Sl = {
|
|
|
6854
6875
|
},
|
|
6855
6876
|
isList: !0
|
|
6856
6877
|
}, {
|
|
6857
|
-
default:
|
|
6878
|
+
default: H(() => [oe.value ? (E(), o(t, { key: 0 }, [oe.value.isSortableList ? (E(), o(t, { key: 0 }, [r[4] ||= s("p", {
|
|
6858
6879
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
6859
6880
|
style: {
|
|
6860
6881
|
"padding-left": "2px",
|
|
@@ -6875,7 +6896,7 @@ var Sl = {
|
|
|
6875
6896
|
"data-active": se(e)
|
|
6876
6897
|
}, [u(Aa, {
|
|
6877
6898
|
id: e.id,
|
|
6878
|
-
config:
|
|
6899
|
+
config: U(e) ? { renderer: Tl } : { variant: "icon" },
|
|
6879
6900
|
text: e.text,
|
|
6880
6901
|
icon: e.icon,
|
|
6881
6902
|
context: e.context,
|
|
@@ -7129,7 +7150,7 @@ var Sl = {
|
|
|
7129
7150
|
],
|
|
7130
7151
|
setup(e, { expose: t, emit: n }) {
|
|
7131
7152
|
let c = e, l = n, d = O(null), p = O(null), m = O(null), h = O(c.initialChartCollapsed ?? !1), g = "filter-panel-" + f()?.uid, b = O(!1), x = O(!1), C = O(0), T = r(() => p.value?.availableRowGroupColumns || []), k = O([]), A = r(() => k.value.length > 0 ? k.value[0] : ""), j = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", N = r(() => {
|
|
7132
|
-
let e =
|
|
7153
|
+
let e = pe.value;
|
|
7133
7154
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
7134
7155
|
label: "Count",
|
|
7135
7156
|
value: e.yAxis.defaultValue
|
|
@@ -7177,16 +7198,16 @@ var Sl = {
|
|
|
7177
7198
|
focusRequired: c.focusRequired
|
|
7178
7199
|
}, c.allFieldsAreFocusable);
|
|
7179
7200
|
D(no, R);
|
|
7180
|
-
let { setFilterSelectedValues:
|
|
7181
|
-
D(po,
|
|
7182
|
-
let B = O(c.isTableGrouped),
|
|
7201
|
+
let { setFilterSelectedValues: ee } = L, z = O(!1);
|
|
7202
|
+
D(po, z);
|
|
7203
|
+
let B = O(c.isTableGrouped), te = r(() => Qe.value ? !1 : !!(c.emptyChartFilterRenderer && c.requireFiltersToShowData && L.filterModelEmpty.value)), ne = r(() => R?.computedFocusType.value || null), U = r(() => R?.computedFocuses.value || []), W = (e) => {
|
|
7183
7204
|
d.value = e.api, B.value || d.value?.setRowGroupColumns([]), Be(e.api), l("grid-ready", e);
|
|
7184
|
-
}, ne = (e) => {
|
|
7185
|
-
l("first-data-rendered", e);
|
|
7186
7205
|
}, re = (e) => {
|
|
7206
|
+
l("first-data-rendered", e);
|
|
7207
|
+
}, G = (e) => {
|
|
7187
7208
|
let t = k.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
7188
7209
|
if (B.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
7189
|
-
let t =
|
|
7210
|
+
let t = pe.value;
|
|
7190
7211
|
if (n.length > me.value) {
|
|
7191
7212
|
let t = n.slice(0, me.value);
|
|
7192
7213
|
k.value = t, e.api.setRowGroupColumns(t);
|
|
@@ -7195,9 +7216,9 @@ var Sl = {
|
|
|
7195
7216
|
}
|
|
7196
7217
|
l("column-row-group-changed", e);
|
|
7197
7218
|
}, ie = async (e) => {
|
|
7198
|
-
Be(e.api),
|
|
7219
|
+
Be(e.api), z.value && l("filter-changed", e);
|
|
7199
7220
|
};
|
|
7200
|
-
|
|
7221
|
+
V(() => k.value, () => {
|
|
7201
7222
|
if (B.value) {
|
|
7202
7223
|
if (!d.value) return;
|
|
7203
7224
|
let e = d.value.getRowGroupColumns().map((e) => e.getColId());
|
|
@@ -7208,7 +7229,7 @@ var Sl = {
|
|
|
7208
7229
|
d?.value?.setRowGroupColumns([]);
|
|
7209
7230
|
});
|
|
7210
7231
|
if (!c.allFieldsAreFocusable) {
|
|
7211
|
-
let e =
|
|
7232
|
+
let e = pe.value.supportsFocusView && A.value || null;
|
|
7212
7233
|
R.setFocusType(e);
|
|
7213
7234
|
}
|
|
7214
7235
|
d.value && Be(d.value);
|
|
@@ -7236,8 +7257,8 @@ var Sl = {
|
|
|
7236
7257
|
}, se = (e) => !e || !d.value ? null : d.value?.getColumnDef(e), ce = (e, t) => {
|
|
7237
7258
|
let n = se(A.value);
|
|
7238
7259
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
7239
|
-
}, le = r(() => [...k.value.length > 1 ? ls : cs, us].filter((e) => c.enabledChartTypes?.includes(e.id))), ue = O(void 0), de = O(void 0),
|
|
7240
|
-
let e =
|
|
7260
|
+
}, le = r(() => [...k.value.length > 1 ? ls : cs, us].filter((e) => c.enabledChartTypes?.includes(e.id))), ue = O(void 0), de = O(void 0), K = O(void 0), fe = !1, pe = r(() => xl(ue.value?.id || "")), me = r(() => Math.min(pe.value.rowGroupLimit, c.rowGroupLimit)), he = r(() => {
|
|
7261
|
+
let e = pe.value.xAxis.filterColumns;
|
|
7241
7262
|
return e ? e(T.value) : T.value;
|
|
7242
7263
|
}), ge = O([{
|
|
7243
7264
|
text: "Ascending",
|
|
@@ -7252,15 +7273,15 @@ var Sl = {
|
|
|
7252
7273
|
let Ee = (e) => {
|
|
7253
7274
|
ue.value = le.value.find((t) => t.id === e) ?? le.value[0];
|
|
7254
7275
|
};
|
|
7255
|
-
|
|
7256
|
-
let e = Fe.value, t = e !==
|
|
7257
|
-
|
|
7258
|
-
}),
|
|
7276
|
+
V(() => le.value, () => {
|
|
7277
|
+
let e = Fe.value, t = e !== fe, n = xl(ue.value?.id || ""), r = le.value.some((e) => e.id === ue.value?.id);
|
|
7278
|
+
fe = e, !(r && (!t || !n.storeBeforeChange)) && Ee((e ? K?.value : de?.value) ?? c.chartType);
|
|
7279
|
+
}), V(() => c.chartType, (e) => Ee(e)), V(() => c.yKey, (e) => {
|
|
7259
7280
|
e !== q.value && (q.value = e);
|
|
7260
|
-
}),
|
|
7281
|
+
}), V(Te, (e) => {
|
|
7261
7282
|
if (c.chartFilter && d.value) {
|
|
7262
7283
|
let t = c.chartFilter.colId, n = c.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
7263
|
-
n && n.length === 0 && (n = null),
|
|
7284
|
+
n && n.length === 0 && (n = null), ee(t, n || []);
|
|
7264
7285
|
let r = Ds({
|
|
7265
7286
|
filterType: "set",
|
|
7266
7287
|
values: n
|
|
@@ -7276,8 +7297,8 @@ var Sl = {
|
|
|
7276
7297
|
}), Oe = r(() => F.value.find((e) => e.value === ye.value)), ke = r(() => {
|
|
7277
7298
|
let e = F.value.find((e) => e.value === ye.value);
|
|
7278
7299
|
return e ? e.label : "";
|
|
7279
|
-
}), Ae = r(() =>
|
|
7280
|
-
let e = Pe.value, t =
|
|
7300
|
+
}), Ae = r(() => pe.value.isHorizontal === !0), je = r(() => k.value.length > 1), Me = r(() => !ue.value || N.value.length === 0 ? [] : pe.value.seriesFamily === "pie" ? Le.value : Ie.value), Ne = r(() => c.showSeriesLabels), Pe = r(() => ue.value?.id.includes("stacked")), Fe = r(() => k.value.length > 1), Ie = r(() => {
|
|
7301
|
+
let e = Pe.value, t = pe.value.agChartType, n = [], r = oe(q.value, !0), i = oe(Ce.value?.fieldName, !0);
|
|
7281
7302
|
if (je.value) Ce.value?.fieldValues.forEach((a) => {
|
|
7282
7303
|
let o = {
|
|
7283
7304
|
type: t,
|
|
@@ -7326,7 +7347,7 @@ var Sl = {
|
|
|
7326
7347
|
if (n = n.map((e) => ({
|
|
7327
7348
|
...e,
|
|
7328
7349
|
...a
|
|
7329
|
-
})),
|
|
7350
|
+
})), pe.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
7330
7351
|
...e,
|
|
7331
7352
|
tooltip: { renderer: (e) => {
|
|
7332
7353
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
@@ -7410,20 +7431,20 @@ var Sl = {
|
|
|
7410
7431
|
legendItemKey: A.value,
|
|
7411
7432
|
angleKey: q.value
|
|
7412
7433
|
}]);
|
|
7413
|
-
|
|
7434
|
+
V(q, (e, t) => {
|
|
7414
7435
|
l("chart-state-changed", {
|
|
7415
7436
|
api: d.value,
|
|
7416
7437
|
newState: { seriesField: e },
|
|
7417
7438
|
oldState: { seriesField: t }
|
|
7418
7439
|
});
|
|
7419
|
-
}),
|
|
7440
|
+
}), V(ye, (e, t) => {
|
|
7420
7441
|
l("chart-state-changed", {
|
|
7421
7442
|
api: d.value,
|
|
7422
7443
|
newState: { secondarySeriesField: e },
|
|
7423
7444
|
oldState: { secondarySeriesField: t }
|
|
7424
7445
|
});
|
|
7425
|
-
}),
|
|
7426
|
-
e?.id && xl(e.id).storeBeforeChange && (Fe.value ?
|
|
7446
|
+
}), V(ue, (e, t) => {
|
|
7447
|
+
e?.id && xl(e.id).storeBeforeChange && (Fe.value ? K.value = e.id : de.value = e.id);
|
|
7427
7448
|
let n = xl(e?.id || ""), r = xl(t?.id || "");
|
|
7428
7449
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (k.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
7429
7450
|
c.yKey ? q.value = c.yKey : N.value.length > 0 && (q.value = N.value[0].value);
|
|
@@ -7432,34 +7453,34 @@ var Sl = {
|
|
|
7432
7453
|
newState: { chartType: e?.id },
|
|
7433
7454
|
oldState: { chartType: t?.id }
|
|
7434
7455
|
});
|
|
7435
|
-
}),
|
|
7456
|
+
}), V(he, (e) => {
|
|
7436
7457
|
if (e.length === 1 && k.value.length === 0) {
|
|
7437
7458
|
let t = e[0].field;
|
|
7438
7459
|
t && (k.value = [t]);
|
|
7439
7460
|
}
|
|
7440
|
-
}),
|
|
7461
|
+
}), V(N, (e) => {
|
|
7441
7462
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
7442
|
-
}),
|
|
7463
|
+
}), V(we, (e, t) => {
|
|
7443
7464
|
l("chart-state-changed", {
|
|
7444
7465
|
api: d.value,
|
|
7445
7466
|
newState: { chartSort: e?.id },
|
|
7446
7467
|
oldState: { chartSort: t?.id }
|
|
7447
7468
|
});
|
|
7448
|
-
}),
|
|
7469
|
+
}), V(k, (e, t) => {
|
|
7449
7470
|
l("chart-state-changed", {
|
|
7450
7471
|
api: d.value,
|
|
7451
7472
|
newState: { chartCategoryFields: e },
|
|
7452
7473
|
oldState: { chartCategoryFields: t }
|
|
7453
7474
|
});
|
|
7454
|
-
}),
|
|
7475
|
+
}), V(B, (e, t) => {
|
|
7455
7476
|
l("chart-state-changed", {
|
|
7456
7477
|
api: d.value,
|
|
7457
7478
|
newState: { tableGrouped: e },
|
|
7458
7479
|
oldState: { tableGrouped: t }
|
|
7459
7480
|
});
|
|
7460
|
-
}),
|
|
7481
|
+
}), V(() => c.isTableGrouped, (e, t) => {
|
|
7461
7482
|
!d.value || e === t || !c.enableGroupingToggle || ot(e);
|
|
7462
|
-
}),
|
|
7483
|
+
}), V(() => c.initialFocusData, (e, t) => {
|
|
7463
7484
|
if (!(nt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
7464
7485
|
if (!e?.focusType) {
|
|
7465
7486
|
R.setFocuses([]);
|
|
@@ -7559,8 +7580,8 @@ var Sl = {
|
|
|
7559
7580
|
{ [A.value]: "" },
|
|
7560
7581
|
e[0],
|
|
7561
7582
|
{ [A.value]: " " }
|
|
7562
|
-
]), c.enableFocusView && e &&
|
|
7563
|
-
let t = e?.filter((e) =>
|
|
7583
|
+
]), c.enableFocusView && e && U.value.length > 0 && ne.value) {
|
|
7584
|
+
let t = e?.filter((e) => U.value.includes(e[A.value])), n = e?.filter((e) => !U.value.includes(e[A.value]));
|
|
7564
7585
|
e = [
|
|
7565
7586
|
...t || [],
|
|
7566
7587
|
{ [A.value]: ds },
|
|
@@ -7590,11 +7611,11 @@ var Sl = {
|
|
|
7590
7611
|
}), Ge = r(() => J.value?.length || 0), Ke = r(() => zl(je.value ? ve.value : J.value, q.value, je.value)), qe = r(() => Ce.value?.fieldValues?.length || 0), Je = r(() => {
|
|
7591
7612
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
7592
7613
|
return Math.min(Math.max(e, .05), .75);
|
|
7593
|
-
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView &&
|
|
7594
|
-
let e = se(
|
|
7614
|
+
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView && ne.value && U.value.length === 0 && c.percentOfFocusViewYKey && q.value && q.value === c.percentOfFocusViewYKey)), $e = r(() => {
|
|
7615
|
+
let e = se(ne.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
7595
7616
|
return Fl({
|
|
7596
7617
|
currentRowGroupColumnsLength: k.value.length,
|
|
7597
|
-
shouldShowFocusOverlayText: Qe.value || c.focusRequired &&
|
|
7618
|
+
shouldShowFocusOverlayText: Qe.value || c.focusRequired && U.value.length === 0,
|
|
7598
7619
|
chartDataEmpty: Ze.value,
|
|
7599
7620
|
missingFocusText: c.missingFocusText,
|
|
7600
7621
|
displayGroupByName: t
|
|
@@ -7620,7 +7641,7 @@ var Sl = {
|
|
|
7620
7641
|
if (!ye.value) return [];
|
|
7621
7642
|
let e = ye.value;
|
|
7622
7643
|
return Pe.value ? [`${e}${fs}`] : je.value ? Ce.value?.fieldValues.map((t) => Il(e, String(t))) || [] : [e];
|
|
7623
|
-
})(), r =
|
|
7644
|
+
})(), r = pe.value.xAxis.hideLabel === !0, i = ue.value?.id === "histogram" && J.value && J.value.length > 0 && typeof J.value[0]?.bucketMin == "number" && typeof J.value[0]?.bucketMax == "number", a = [];
|
|
7624
7645
|
if (a.push({
|
|
7625
7646
|
type: "category",
|
|
7626
7647
|
keys: [A.value],
|
|
@@ -7643,7 +7664,7 @@ var Sl = {
|
|
|
7643
7664
|
if (e.value === "--SEPARATOR--") return "";
|
|
7644
7665
|
let t = e.value, n = oe(A.value);
|
|
7645
7666
|
typeof n == "function" && (t = n(e));
|
|
7646
|
-
let r = c.enableFocusView &&
|
|
7667
|
+
let r = c.enableFocusView && U.value.includes(e.value) ? ` (${c.focusText})` : "";
|
|
7647
7668
|
if (typeof t == "string" && t.length + r.length > 35 && !e.context?.tooltip) {
|
|
7648
7669
|
let e = 35 - r.length - 3;
|
|
7649
7670
|
return t.substring(0, e) + "..." + r;
|
|
@@ -7720,7 +7741,7 @@ var Sl = {
|
|
|
7720
7741
|
});
|
|
7721
7742
|
}
|
|
7722
7743
|
return e.axes = a, e.series = Me.value, e;
|
|
7723
|
-
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !
|
|
7744
|
+
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !te.value && !c.isLoading && $e.value !== ""), at = (e) => {
|
|
7724
7745
|
h.value = e, l("chart-collapsed", e);
|
|
7725
7746
|
}, ot = (e) => {
|
|
7726
7747
|
d.value && (d.value.setRowGroupColumns(e ? k.value : []), B.value = e);
|
|
@@ -7789,7 +7810,7 @@ var Sl = {
|
|
|
7789
7810
|
"isLoading",
|
|
7790
7811
|
"options",
|
|
7791
7812
|
"enableFocusView"
|
|
7792
|
-
]), s("div", Wl, [
|
|
7813
|
+
]), s("div", Wl, [te.value ? (E(), o("div", Gl, [(E(), i(M(e.emptyChartFilterRenderer)))])) : it.value ? (E(), o("p", Kl, P($e.value), 1)) : a("", !0)])])], 2)
|
|
7793
7814
|
])),
|
|
7794
7815
|
u(tl, _({
|
|
7795
7816
|
ref_key: "pvDataTableRef",
|
|
@@ -7797,18 +7818,18 @@ var Sl = {
|
|
|
7797
7818
|
}, t.$props, {
|
|
7798
7819
|
filterTeleportLocation: b.value ? `#${g}` : void 0,
|
|
7799
7820
|
pagination: e.pagination || !B.value,
|
|
7800
|
-
onColumnRowGroupChanged:
|
|
7801
|
-
onGridReady:
|
|
7821
|
+
onColumnRowGroupChanged: G,
|
|
7822
|
+
onGridReady: W,
|
|
7802
7823
|
onFilterChanged: ie,
|
|
7803
7824
|
onSortChanged: n[3] ||= (e) => l("sort-changed", e),
|
|
7804
7825
|
onFilterOpened: n[4] ||= (e) => l("filter-opened", e),
|
|
7805
|
-
onFirstDataRendered:
|
|
7826
|
+
onFirstDataRendered: re,
|
|
7806
7827
|
onColumnMoved: n[5] ||= (e) => l("column-moved", e),
|
|
7807
7828
|
onColumnResized: n[6] ||= (e) => l("column-resized", e),
|
|
7808
7829
|
onHandleSettingsIcon: n[7] ||= (e) => l("handle-settings-icon", e),
|
|
7809
7830
|
onFocusUpdate: n[8] ||= (e) => l("focus-update", e)
|
|
7810
7831
|
}), {
|
|
7811
|
-
"top-slot":
|
|
7832
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), i(X, {
|
|
7812
7833
|
key: 0,
|
|
7813
7834
|
leftIcon: B.value ? "ungroup" : "group",
|
|
7814
7835
|
label: B.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
@@ -10741,9 +10762,9 @@ var Sl = {
|
|
|
10741
10762
|
id: e
|
|
10742
10763
|
}));
|
|
10743
10764
|
});
|
|
10744
|
-
return
|
|
10765
|
+
return V(n, (e) => {
|
|
10745
10766
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
10746
|
-
}),
|
|
10767
|
+
}), V(t, (e) => {
|
|
10747
10768
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
10748
10769
|
}), (e, t) => (E(), i(Ua, {
|
|
10749
10770
|
style: { width: "125px" },
|
|
@@ -10797,7 +10818,7 @@ var Sl = {
|
|
|
10797
10818
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10798
10819
|
setup(e, { emit: n }) {
|
|
10799
10820
|
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = au(), p = r(() => d(i.mapType)), m = r(() => f(a.value, i.mapType, i.seriesKey, i.gradientLegendMin, i.gradientLegendMax)), h = r(() => m.value.filter((e) => e[i.mapType] !== "_FeatureMin" && e[i.mapType] !== "_FeatureMax").map((e) => e[i.mapType]));
|
|
10800
|
-
|
|
10821
|
+
V(c, (e) => {
|
|
10801
10822
|
l("region-selection-changed", { region: e });
|
|
10802
10823
|
});
|
|
10803
10824
|
let g = r(() => (c.value, {
|