@turquoisehealth/pit-viper 2.189.1-dev.1 → 2.189.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +372 -353
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvChart/constants.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterPanel.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/SetFilter.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +2 -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 +703 -643
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +22 -16
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +41 -22
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +412 -410
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +726 -720
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
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-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-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-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-2deec5f6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-2deec5f6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-2deec5f6]:hover,&[data-v-2deec5f6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-2deec5f6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-2deec5f6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-2deec5f6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-2deec5f6]{pointer-events:auto;color:inherit}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.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-485f9045]:hover{color:#16696d}.suggested-title-label[data-v-485f9045]:hover{color:#0d5256;text-decoration:underline}.ag-custom-header-cell[data-v-385ad98a]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{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-34615cd0]{color:#89989b}.pv-button-placeholder[data-v-34615cd0]{width:24px;height:24px}.pv-sort-option[data-v-34615cd0]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-34615cd0]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-34615cd0]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-34615cd0]{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-34615cd0]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-34615cd0]{display:flex}.sort-divider[data-v-34615cd0]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-34615cd0]: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-681e0d80]:after{content:"›"}[data-v-681e0d80] .pv-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}.pv-tooltip a[data-v-681e0d80]{color:inherit}.pv-chart-option[data-v-681e0d80]{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, useId as ee, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as te, vModelText as B, vShow as V, watch as H, withCtx as U, withDirectives as ne, withModifiers as
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager 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, useId as ee, useModel as L, useSlots as R, useTemplateRef as z, vModelCheckbox as te, vModelText as B, vShow as V, watch as H, withCtx as U, withDirectives as ne, withModifiers as re } from "vue";
|
|
4
|
+
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as G } from "ag-charts-enterprise";
|
|
6
6
|
import { AgGridVue as ie } from "ag-grid-vue3";
|
|
7
|
-
import { CellStyleModule as
|
|
8
|
-
import { AdvancedFilterModule as
|
|
9
|
-
import { onClickOutside as
|
|
7
|
+
import { CellStyleModule as ae, CheckboxEditorModule as K, ClientSideRowModelModule as oe, ColumnApiModule as q, CsvExportModule as se, CustomEditorModule as ce, CustomFilterModule as le, DateEditorModule as ue, EventApiModule as J, GridStateModule as de, LargeTextEditorModule as fe, ModuleRegistry as pe, NumberEditorModule as me, PaginationModule as he, QuickFilterModule as ge, RowApiModule as _e, RowStyleModule as ve, ScrollApiModule as ye, SelectEditorModule as Y, TextEditorModule as X, TextFilterModule as be, UndoRedoEditModule as xe, themeQuartz as Se } from "ag-grid-community";
|
|
8
|
+
import { AdvancedFilterModule as Ce, CellSelectionModule as we, ClientSideRowModelApiModule as Te, ClipboardModule as Ee, ColumnMenuModule as De, ContextMenuModule as Oe, LicenseManager as ke, MultiFilterModule as Ae, RenderApiModule as je, RichSelectModule as Me, RowGroupingModule as Ne, RowSelectionModule as Pe, ServerSideRowModelApiModule as Fe, ServerSideRowModelModule as Ie, SetFilterModule as Le, TooltipModule as Re, ValidationModule as ze } from "ag-grid-enterprise";
|
|
9
|
+
import { onClickOutside as Be, onKeyStroke as Ve, toRef as He, useDebounceFn as Z, useElementBounding as Ue, useElementHover as We, useToggle as Ge, watchDebounced as Ke } from "@vueuse/core";
|
|
10
10
|
import qe from "papaparse";
|
|
11
11
|
import { useSortable as Je } from "@vueuse/integrations/useSortable.mjs";
|
|
12
12
|
import { vOnClickOutside as Ye } from "@vueuse/components";
|
|
@@ -243,7 +243,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
243
243
|
emits: ["series-visibility-change"],
|
|
244
244
|
setup(e, { expose: n, emit: c }) {
|
|
245
245
|
let l = e, d = c;
|
|
246
|
-
|
|
246
|
+
G.setLicenseKey(Jt);
|
|
247
247
|
let f = O(null), p = O({}), m = () => {
|
|
248
248
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
249
249
|
let e = f.value.$el;
|
|
@@ -351,7 +351,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
351
351
|
width: e?.width,
|
|
352
352
|
height: e?.height
|
|
353
353
|
}) }), (n, r) => (E(), o("div", Rt, [
|
|
354
|
-
u(I(
|
|
354
|
+
u(I(W), {
|
|
355
355
|
ref_key: "chartRef",
|
|
356
356
|
ref: f,
|
|
357
357
|
style: x([{ height: "100%" }, g.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -796,7 +796,7 @@ var xn = [
|
|
|
796
796
|
"data-testid": "pv-tag-close-icon",
|
|
797
797
|
size: 12,
|
|
798
798
|
name: "close",
|
|
799
|
-
onClick: r[0] ||=
|
|
799
|
+
onClick: r[0] ||= re((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
800
800
|
})) : a("", !0)
|
|
801
801
|
], 14, wn));
|
|
802
802
|
}
|
|
@@ -1615,7 +1615,7 @@ var _i = { style: { width: "fit-content" } }, vi = /* @__PURE__ */ d({
|
|
|
1615
1615
|
H(c, (e) => {
|
|
1616
1616
|
e && u.value && d.value && _();
|
|
1617
1617
|
});
|
|
1618
|
-
let v =
|
|
1618
|
+
let v = Ue(u), y = Z(() => {
|
|
1619
1619
|
c.value && _();
|
|
1620
1620
|
}, 5);
|
|
1621
1621
|
H([
|
|
@@ -1918,7 +1918,7 @@ var Mi = [
|
|
|
1918
1918
|
"pv-input-padded-end": !0
|
|
1919
1919
|
}));
|
|
1920
1920
|
return w(() => {
|
|
1921
|
-
n.displayShortcut &&
|
|
1921
|
+
n.displayShortcut && Ve(Ri, (e) => {
|
|
1922
1922
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1923
1923
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1924
1924
|
});
|
|
@@ -1986,7 +1986,7 @@ var Bi = {
|
|
|
1986
1986
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1987
1987
|
});
|
|
1988
1988
|
let f = () => {
|
|
1989
|
-
c.value &&
|
|
1989
|
+
c.value && Be(c.value, () => {
|
|
1990
1990
|
d.value && (i("click-outside"), p());
|
|
1991
1991
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
1992
1992
|
}, p = () => {
|
|
@@ -1994,7 +1994,7 @@ var Bi = {
|
|
|
1994
1994
|
};
|
|
1995
1995
|
return H(() => d.value, () => {
|
|
1996
1996
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1997
|
-
}),
|
|
1997
|
+
}), Ve("Escape", () => {
|
|
1998
1998
|
c.value && d.value && p();
|
|
1999
1999
|
}), (n, i) => (E(), o("div", {
|
|
2000
2000
|
class: "pv-drawer pv-surface",
|
|
@@ -2149,7 +2149,7 @@ var Bi = {
|
|
|
2149
2149
|
}, {
|
|
2150
2150
|
label: U(() => [u(ln, {
|
|
2151
2151
|
name: "close",
|
|
2152
|
-
onClick: r[0] ||=
|
|
2152
|
+
onClick: r[0] ||= re((e) => t.$emit("handle-clear"), ["stop"])
|
|
2153
2153
|
})]),
|
|
2154
2154
|
"tooltip-content": U(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2155
2155
|
_: 1
|
|
@@ -2356,7 +2356,7 @@ var aa = /* @__PURE__ */ Xt(na, [["render", ia]]), oa = ["data-style"], sa = ["s
|
|
|
2356
2356
|
variant: "ghost",
|
|
2357
2357
|
class: y(["pv-text-brand", { "pv-menu-action-button": !l.value }]),
|
|
2358
2358
|
leftIcon: n.value,
|
|
2359
|
-
onClick:
|
|
2359
|
+
onClick: re(d, ["stop"]),
|
|
2360
2360
|
disabled: a.value
|
|
2361
2361
|
}, null, 8, [
|
|
2362
2362
|
"leftIcon",
|
|
@@ -2547,14 +2547,14 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2547
2547
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2548
2548
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2549
2549
|
"aria-expanded": e.expanded,
|
|
2550
|
-
onClick: r[0] ||=
|
|
2550
|
+
onClick: r[0] ||= re((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2551
2551
|
}, [u(ln, {
|
|
2552
2552
|
name: e.chevronIcon ?? "chevron-right",
|
|
2553
2553
|
size: 12
|
|
2554
2554
|
}, null, 8, ["name"])], 8, Na)) : a("", !0)
|
|
2555
2555
|
], 14, ja));
|
|
2556
2556
|
}
|
|
2557
|
-
}), [["__scopeId", "data-v-
|
|
2557
|
+
}), [["__scopeId", "data-v-2deec5f6"]]), Fa = ["data-active"], Ia = { key: 0 }, La = 4, Ra = /* @__PURE__ */ d({
|
|
2558
2558
|
inheritAttrs: !1,
|
|
2559
2559
|
__name: "PvMenuItem",
|
|
2560
2560
|
props: /* @__PURE__ */ g({
|
|
@@ -2600,10 +2600,10 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2600
2600
|
}, w = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), T = r(() => {
|
|
2601
2601
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
2602
2602
|
return r;
|
|
2603
|
-
}), D = r(() => (b.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < La), A = r(() => D.value ? l.value ? h.value : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P =
|
|
2603
|
+
}), D = r(() => (b.value.length > 0 || (i.totalChildCount ?? 0) > 0) && i.level < La), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P = (e) => N(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n, ee = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), R = async () => {
|
|
2604
2604
|
if (g.value) return;
|
|
2605
2605
|
if (!i.handleSeeMore) {
|
|
2606
|
-
|
|
2606
|
+
F("see-more", {
|
|
2607
2607
|
parentId: i.id,
|
|
2608
2608
|
offset: b.value.length
|
|
2609
2609
|
});
|
|
@@ -2635,7 +2635,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2635
2635
|
} finally {
|
|
2636
2636
|
g.value = !1;
|
|
2637
2637
|
}
|
|
2638
|
-
},
|
|
2638
|
+
}, z = (e) => {
|
|
2639
2639
|
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
2640
2640
|
C();
|
|
2641
2641
|
return;
|
|
@@ -2644,9 +2644,9 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2644
2644
|
let t = c.value.indexOf(e.option.id);
|
|
2645
2645
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2646
2646
|
}
|
|
2647
|
-
|
|
2648
|
-
},
|
|
2649
|
-
|
|
2647
|
+
F("handle-selected", e);
|
|
2648
|
+
}, te = (e) => {
|
|
2649
|
+
F("handle-selected", e);
|
|
2650
2650
|
};
|
|
2651
2651
|
return (n, r) => {
|
|
2652
2652
|
let s = j("PvMenuItem", !0);
|
|
@@ -2658,7 +2658,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2658
2658
|
showChevron: I(l) && D.value,
|
|
2659
2659
|
chevronIcon: M.value,
|
|
2660
2660
|
expanded: h.value,
|
|
2661
|
-
onHandleSelected:
|
|
2661
|
+
onHandleSelected: z,
|
|
2662
2662
|
onToggleExpanded: C,
|
|
2663
2663
|
selected: N(i)
|
|
2664
2664
|
}), null, 16, [
|
|
@@ -2674,32 +2674,34 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2674
2674
|
key: 0,
|
|
2675
2675
|
role: "list",
|
|
2676
2676
|
style: x(w.value)
|
|
2677
|
-
}, [(E(!0), o(t, null, k(b.value, (t) => (E(), o("li", {
|
|
2677
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => ne((E(), o("li", {
|
|
2678
2678
|
key: t.id,
|
|
2679
2679
|
"data-active": N(t) ? "true" : null,
|
|
2680
2680
|
class: y(e.itemClass)
|
|
2681
2681
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
2682
|
+
disabled: i.disabled || t.disabled,
|
|
2682
2683
|
selectedIds: c.value,
|
|
2683
2684
|
"onUpdate:selectedIds": r[0] ||= (e) => c.value = e,
|
|
2684
2685
|
config: t.config ?? e.config,
|
|
2685
2686
|
queryText: e.queryText,
|
|
2686
2687
|
highlightSearchText: e.highlightSearchText,
|
|
2687
2688
|
level: e.level + 1,
|
|
2688
|
-
onHandleSelected:
|
|
2689
|
-
onSeeMore: r[1] ||= (e) =>
|
|
2689
|
+
onHandleSelected: te,
|
|
2690
|
+
onSeeMore: r[1] ||= (e) => F("see-more", e)
|
|
2690
2691
|
}), null, 16, [
|
|
2692
|
+
"disabled",
|
|
2691
2693
|
"selectedIds",
|
|
2692
2694
|
"config",
|
|
2693
2695
|
"queryText",
|
|
2694
2696
|
"highlightSearchText",
|
|
2695
2697
|
"level"
|
|
2696
|
-
])], 10, Fa))), 128)),
|
|
2698
|
+
])], 10, Fa)), [[V, !i.disabled || P(t)]])), 128)), ee.value ? (E(), o("li", Ia, [u(gn, {
|
|
2697
2699
|
class: "pv-text-brand",
|
|
2698
2700
|
variant: "ghost",
|
|
2699
2701
|
label: "See more",
|
|
2700
2702
|
loading: g.value,
|
|
2701
2703
|
"data-testid": "pv-menu-item-see-more",
|
|
2702
|
-
onClick:
|
|
2704
|
+
onClick: R
|
|
2703
2705
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
2704
2706
|
};
|
|
2705
2707
|
}
|
|
@@ -2717,7 +2719,8 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2717
2719
|
isLoading: { type: Boolean },
|
|
2718
2720
|
singleSelect: { type: Boolean },
|
|
2719
2721
|
enableCascadeSelection: { type: Boolean },
|
|
2720
|
-
hasMoreOptions: { type: Boolean }
|
|
2722
|
+
hasMoreOptions: { type: Boolean },
|
|
2723
|
+
readOnly: { type: Boolean }
|
|
2721
2724
|
}, {
|
|
2722
2725
|
selectedItems: { default: () => [] },
|
|
2723
2726
|
selectedItemsModifiers: {}
|
|
@@ -2731,6 +2734,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2731
2734
|
e !== c.value && (c.value = e);
|
|
2732
2735
|
}), D(wa, l), D(Ta, r(() => !!i.enableCascadeSelection));
|
|
2733
2736
|
let d = m(Ea, void 0), f = m(ka, O(!1)), p = m(Da, void 0), h = m(Oa, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
2737
|
+
if (i.readOnly) return;
|
|
2734
2738
|
let t = e.option, n;
|
|
2735
2739
|
if (i.enableCascadeSelection && t.children?.length) {
|
|
2736
2740
|
let e;
|
|
@@ -2765,23 +2769,25 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2765
2769
|
}, b = r(() => new Set(l.value.map((e) => e.id))), x = (e) => {
|
|
2766
2770
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
2767
2771
|
return !1;
|
|
2768
|
-
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => t
|
|
2772
|
+
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
2769
2773
|
return (n, r) => (E(), o("ul", za, [(E(!0), o(t, null, k(e.options, (t) => ne((E(), o("li", {
|
|
2770
2774
|
key: t.id,
|
|
2771
2775
|
"data-active": S(t),
|
|
2772
2776
|
"data-testid": e.itemTestId,
|
|
2773
2777
|
class: y(e.itemClass)
|
|
2774
2778
|
}, [u(Ra, _({ ref_for: !0 }, t, {
|
|
2779
|
+
disabled: i.readOnly || t.disabled,
|
|
2775
2780
|
config: e.config,
|
|
2776
2781
|
itemClass: e.itemClass,
|
|
2777
2782
|
queryText: e.queryText,
|
|
2778
2783
|
onHandleSelected: v,
|
|
2779
2784
|
onSeeMore: r[0] ||= (e) => s("see-more", e)
|
|
2780
2785
|
}), null, 16, [
|
|
2786
|
+
"disabled",
|
|
2781
2787
|
"config",
|
|
2782
2788
|
"itemClass",
|
|
2783
2789
|
"queryText"
|
|
2784
|
-
])], 10, Ba)), [[V, C(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", Va, [u(gn, {
|
|
2790
|
+
])], 10, Ba)), [[V, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (E(), o("li", Va, [u(gn, {
|
|
2785
2791
|
class: "pv-text-brand",
|
|
2786
2792
|
variant: "ghost",
|
|
2787
2793
|
label: "See more",
|
|
@@ -2837,6 +2843,10 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2837
2843
|
default: !1
|
|
2838
2844
|
},
|
|
2839
2845
|
disabled: { type: Boolean },
|
|
2846
|
+
readOnly: {
|
|
2847
|
+
type: Boolean,
|
|
2848
|
+
default: !1
|
|
2849
|
+
},
|
|
2840
2850
|
enableCascadeSelection: {
|
|
2841
2851
|
type: Boolean,
|
|
2842
2852
|
default: !1
|
|
@@ -2925,25 +2935,25 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2925
2935
|
state: "deselected"
|
|
2926
2936
|
}))), t.push(r);
|
|
2927
2937
|
}
|
|
2928
|
-
for (let n of
|
|
2938
|
+
for (let n of W.value) e.has(n.id) || t.push({
|
|
2929
2939
|
id: n.id,
|
|
2930
2940
|
state: "selected"
|
|
2931
2941
|
});
|
|
2932
2942
|
return t;
|
|
2933
2943
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
2934
2944
|
if (c.enableCascadeSelection && c.countSelectedParents && R.value?.length) return Sa(R.value);
|
|
2935
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
2936
|
-
let e = new Set(
|
|
2945
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length;
|
|
2946
|
+
let e = new Set(W.value.map((e) => e.id));
|
|
2937
2947
|
return xa(c.options, e);
|
|
2938
|
-
}), T = r(() =>
|
|
2948
|
+
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
2939
2949
|
g("see-more", e ?? {});
|
|
2940
2950
|
}, j = z("searchInputRef"), [M, F] = Ge(c.defaultOpen), ee = L(e, "modelValue"), R = L(e, "selectionState"), te = L(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), V = (e) => {
|
|
2941
|
-
|
|
2951
|
+
W.value = e, B.value || (ee.value = e, R.value = S());
|
|
2942
2952
|
}, ne = () => {
|
|
2943
|
-
B.value && (ee.value =
|
|
2944
|
-
},
|
|
2945
|
-
B.value && (
|
|
2946
|
-
},
|
|
2953
|
+
B.value && (ee.value = W.value, R.value = S());
|
|
2954
|
+
}, re = () => {
|
|
2955
|
+
B.value && (W.value = ee.value);
|
|
2956
|
+
}, W = N(ee.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
2947
2957
|
if (!c.enableCascadeSelection || !e) return;
|
|
2948
2958
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
2949
2959
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -2959,15 +2969,15 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2959
2969
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
2960
2970
|
continue;
|
|
2961
2971
|
}
|
|
2962
|
-
a(
|
|
2972
|
+
a(G(r.id), r.id);
|
|
2963
2973
|
}
|
|
2964
|
-
f.value = t, m.value = n,
|
|
2965
|
-
},
|
|
2966
|
-
get: () =>
|
|
2974
|
+
f.value = t, m.value = n, W.value = r;
|
|
2975
|
+
}, ae = r({
|
|
2976
|
+
get: () => W.value,
|
|
2967
2977
|
set: (e) => {
|
|
2968
|
-
V(e);
|
|
2978
|
+
c.readOnly || V(e);
|
|
2969
2979
|
}
|
|
2970
|
-
}),
|
|
2980
|
+
}), K = () => {
|
|
2971
2981
|
te.value = "", M.value = !1;
|
|
2972
2982
|
}, oe = r(() => {
|
|
2973
2983
|
let e = c.size === "lg" ? 24 : 30;
|
|
@@ -2978,36 +2988,36 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
2978
2988
|
ie(R.value);
|
|
2979
2989
|
return;
|
|
2980
2990
|
}
|
|
2981
|
-
|
|
2991
|
+
W.value = e;
|
|
2982
2992
|
}), H(() => [R.value, c.options], () => {
|
|
2983
2993
|
ie(R.value);
|
|
2984
2994
|
}, {
|
|
2985
2995
|
deep: !0,
|
|
2986
2996
|
immediate: !0
|
|
2987
2997
|
}), H(M, (e) => {
|
|
2988
|
-
e ? (
|
|
2998
|
+
e ? (re(), v(() => {
|
|
2989
2999
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
2990
|
-
})) : (
|
|
3000
|
+
})) : (re(), g("dropdown-closed"));
|
|
2991
3001
|
});
|
|
2992
|
-
let
|
|
3002
|
+
let q = r(() => {
|
|
2993
3003
|
if (te.value === "") return c.options;
|
|
2994
3004
|
let e = te.value.toLocaleLowerCase();
|
|
2995
3005
|
return c.enableCascadeSelection ? Ca(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2996
|
-
}),
|
|
3006
|
+
}), se = () => {
|
|
2997
3007
|
if (c.enableCascadeSelection) {
|
|
2998
3008
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
2999
3009
|
for (let r of n) r.children?.length && (e.add(r.id), t(r.children));
|
|
3000
3010
|
};
|
|
3001
3011
|
t(c.options), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3002
3012
|
}
|
|
3003
|
-
V(c.enableCascadeSelection ? ya(
|
|
3004
|
-
},
|
|
3013
|
+
V(c.enableCascadeSelection ? ya(q.value) : q.value);
|
|
3014
|
+
}, ce = () => {
|
|
3005
3015
|
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), V([]);
|
|
3016
|
+
}, le = () => {
|
|
3017
|
+
re(), K();
|
|
3006
3018
|
}, ue = () => {
|
|
3007
|
-
|
|
3008
|
-
},
|
|
3009
|
-
ne(), ae();
|
|
3010
|
-
}, q = r(() => {
|
|
3019
|
+
ne(), K();
|
|
3020
|
+
}, J = r(() => {
|
|
3011
3021
|
if (!c.groupings) return;
|
|
3012
3022
|
let e = /* @__PURE__ */ new Map();
|
|
3013
3023
|
c.groupings.forEach((t) => {
|
|
@@ -3019,19 +3029,19 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3019
3029
|
}
|
|
3020
3030
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3021
3031
|
return Array.from(e.entries());
|
|
3022
|
-
}),
|
|
3032
|
+
}), de = r(() => c.groupings && te.value === ""), fe = r(() => ({
|
|
3023
3033
|
...c,
|
|
3024
3034
|
selectedItems: ee.value,
|
|
3025
3035
|
searchInput: te.value,
|
|
3026
3036
|
slotContext: c.slotContext,
|
|
3027
3037
|
isOpen: M.value,
|
|
3028
3038
|
isLoading: c.isLoading
|
|
3029
|
-
})),
|
|
3030
|
-
let e =
|
|
3039
|
+
})), pe = z("popoverContentRef"), me = r(() => {
|
|
3040
|
+
let e = pe.value?.getRootNode();
|
|
3031
3041
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3032
|
-
}), { present:
|
|
3033
|
-
return
|
|
3034
|
-
M.value &&
|
|
3042
|
+
}), { present: he } = bn("header", { host: me }), { present: ge } = bn("no-results", { host: me }), { present: _e } = bn("footer", { host: me });
|
|
3043
|
+
return Ve("Escape", () => {
|
|
3044
|
+
M.value && K();
|
|
3035
3045
|
}), (n, r) => (E(), i(vi, _({
|
|
3036
3046
|
modelValue: I(M),
|
|
3037
3047
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
@@ -3050,7 +3060,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3050
3060
|
showDropdown: !e.disableDropdownIcon && !T.value,
|
|
3051
3061
|
open: I(M),
|
|
3052
3062
|
"counter-value": w.value,
|
|
3053
|
-
onHandleClear:
|
|
3063
|
+
onHandleClear: ce,
|
|
3054
3064
|
onHandleToggleDropdown: r[0] ||= (e) => I(F)()
|
|
3055
3065
|
}, null, 8, [
|
|
3056
3066
|
"variant",
|
|
@@ -3068,7 +3078,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3068
3078
|
])]),
|
|
3069
3079
|
content: U(() => [s("div", {
|
|
3070
3080
|
ref_key: "popoverContentRef",
|
|
3071
|
-
ref:
|
|
3081
|
+
ref: pe,
|
|
3072
3082
|
class: "pv-popover",
|
|
3073
3083
|
"data-test-id": "pv-popover",
|
|
3074
3084
|
style: x({
|
|
@@ -3081,14 +3091,19 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3081
3091
|
"model-value": te.value,
|
|
3082
3092
|
"onUpdate:modelValue": r[1] ||= (e) => te.value = e,
|
|
3083
3093
|
class: "pv-stack-4",
|
|
3084
|
-
placeholder: e.searchPlaceholder
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3094
|
+
placeholder: e.searchPlaceholder,
|
|
3095
|
+
disabled: e.readOnly
|
|
3096
|
+
}, null, 8, [
|
|
3097
|
+
"model-value",
|
|
3098
|
+
"placeholder",
|
|
3099
|
+
"disabled"
|
|
3100
|
+
])])),
|
|
3101
|
+
I(he) ? (E(), o("div", Wa, [A(n.$slots, "header", b(p(fe.value)))])) : a("", !0),
|
|
3102
|
+
q.value.length > 0 ? (E(), o(t, { key: 2 }, [de.value ? (E(!0), o(t, { key: 0 }, k(J.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3088
3103
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", Ga, P(t), 1)),
|
|
3089
3104
|
u(Ha, {
|
|
3090
|
-
selectedItems:
|
|
3091
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
3105
|
+
selectedItems: ae.value,
|
|
3106
|
+
"onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
|
|
3092
3107
|
options: i,
|
|
3093
3108
|
config: l.value,
|
|
3094
3109
|
queryText: e.highlightSearchText ? te.value : null,
|
|
@@ -3096,7 +3111,8 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3096
3111
|
itemClass: "pv-stack-4",
|
|
3097
3112
|
isLoading: e.isLoading,
|
|
3098
3113
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3099
|
-
hasMoreOptions: s ===
|
|
3114
|
+
hasMoreOptions: s === J.value.length - 1 && C.value && !e.isLoading,
|
|
3115
|
+
readOnly: e.readOnly,
|
|
3100
3116
|
onSeeMore: O
|
|
3101
3117
|
}, null, 8, [
|
|
3102
3118
|
"selectedItems",
|
|
@@ -3106,20 +3122,22 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3106
3122
|
"itemTestId",
|
|
3107
3123
|
"isLoading",
|
|
3108
3124
|
"enableCascadeSelection",
|
|
3109
|
-
"hasMoreOptions"
|
|
3125
|
+
"hasMoreOptions",
|
|
3126
|
+
"readOnly"
|
|
3110
3127
|
]),
|
|
3111
|
-
|
|
3128
|
+
J.value && s !== J.value.length - 1 ? (E(), o("div", Ka)) : a("", !0)
|
|
3112
3129
|
]))), 128)) : (E(), i(Ha, {
|
|
3113
3130
|
key: 1,
|
|
3114
|
-
selectedItems:
|
|
3115
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
3116
|
-
options:
|
|
3131
|
+
selectedItems: ae.value,
|
|
3132
|
+
"onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
|
|
3133
|
+
options: q.value,
|
|
3117
3134
|
config: l.value,
|
|
3118
3135
|
queryText: e.highlightSearchText ? te.value : null,
|
|
3119
3136
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3120
3137
|
itemClass: "pv-stack-4",
|
|
3121
3138
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
3122
3139
|
hasMoreOptions: C.value && !e.isLoading,
|
|
3140
|
+
readOnly: e.readOnly,
|
|
3123
3141
|
onSeeMore: O
|
|
3124
3142
|
}, null, 8, [
|
|
3125
3143
|
"selectedItems",
|
|
@@ -3128,17 +3146,18 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3128
3146
|
"queryText",
|
|
3129
3147
|
"itemTestId",
|
|
3130
3148
|
"enableCascadeSelection",
|
|
3131
|
-
"hasMoreOptions"
|
|
3149
|
+
"hasMoreOptions",
|
|
3150
|
+
"readOnly"
|
|
3132
3151
|
]))], 64)) : a("", !0),
|
|
3133
|
-
e.isLoading ? (E(), o("div", qa, [u(St, { variant: "dark" })])) :
|
|
3134
|
-
s("div", Ja, [I(
|
|
3152
|
+
e.isLoading ? (E(), o("div", qa, [u(St, { variant: "dark" })])) : q.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ge) ? A(n.$slots, "no-results", b(_({ key: 0 }, fe.value))) : (E(), i(aa, { key: 1 }))], 64)) : a("", !0),
|
|
3153
|
+
s("div", Ja, [I(_e) ? A(n.$slots, "footer", b(_({ key: 0 }, fe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Xi, {
|
|
3135
3154
|
key: 1,
|
|
3136
3155
|
variant: e.menuActionsVariant,
|
|
3137
3156
|
disabled: e.isLoading,
|
|
3138
|
-
onHandleClearAll:
|
|
3139
|
-
onHandleSelectAll:
|
|
3140
|
-
onHandleCancel:
|
|
3141
|
-
onHandleConfirm:
|
|
3157
|
+
onHandleClearAll: ce,
|
|
3158
|
+
onHandleSelectAll: se,
|
|
3159
|
+
onHandleCancel: le,
|
|
3160
|
+
onHandleConfirm: ue
|
|
3142
3161
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
3143
3162
|
], 4)]),
|
|
3144
3163
|
_: 3
|
|
@@ -3231,7 +3250,7 @@ var wa = Symbol("SelectedItemsKey"), Ta = Symbol("EnableCascadeSelectionKey"), E
|
|
|
3231
3250
|
}, w = () => {
|
|
3232
3251
|
d.value = !1, p.value = "";
|
|
3233
3252
|
};
|
|
3234
|
-
return
|
|
3253
|
+
return Ve("Escape", () => {
|
|
3235
3254
|
d.value && w();
|
|
3236
3255
|
}), (t, n) => (E(), i(vi, _({
|
|
3237
3256
|
modelValue: I(d),
|
|
@@ -3467,7 +3486,7 @@ var Qa = () => {
|
|
|
3467
3486
|
let n = e, c = { renderer: ro }, l = z("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h } = Qa(), 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 = () => {
|
|
3468
3487
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3469
3488
|
};
|
|
3470
|
-
n.enableCustomOptionsInput &&
|
|
3489
|
+
n.enableCustomOptionsInput && Ve("Enter", () => {
|
|
3471
3490
|
d.value.trim() && D();
|
|
3472
3491
|
}, { target: l });
|
|
3473
3492
|
let D = () => {
|
|
@@ -3724,7 +3743,7 @@ var Yo = /* @__PURE__ */ Xt(Ko, [["render", Jo]]), Xo = ["innerHTML"], Zo = { ke
|
|
|
3724
3743
|
__name: "GroupedCellRenderer",
|
|
3725
3744
|
props: { params: {} },
|
|
3726
3745
|
setup(e) {
|
|
3727
|
-
let n = e, i = m(vo, O([])), c = m(yo, O(null)), d = m(bo, O({})), f =
|
|
3746
|
+
let n = e, i = m(vo, O([])), c = m(yo, O(null)), d = m(bo, O({})), f = He(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
3728
3747
|
let e = f.value.data;
|
|
3729
3748
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
3730
3749
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -4451,27 +4470,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4451
4470
|
return;
|
|
4452
4471
|
}
|
|
4453
4472
|
D.value[e] = t - 1;
|
|
4454
|
-
},
|
|
4473
|
+
}, re = (e) => {
|
|
4455
4474
|
let t = new Set(e);
|
|
4456
4475
|
for (let n of e) for (let e of H(n)) t.add(e);
|
|
4457
4476
|
for (let e of E.value) t.has(e) || (S.value[e] = !0);
|
|
4458
|
-
},
|
|
4477
|
+
}, W = () => {
|
|
4459
4478
|
k.value = JSON.parse(JSON.stringify(v.value));
|
|
4460
|
-
},
|
|
4479
|
+
}, G = () => {
|
|
4461
4480
|
k.value = {};
|
|
4462
|
-
}, ie = (e) => k.value[e] || [],
|
|
4481
|
+
}, ie = (e) => k.value[e] || [], ae = (e, t) => {
|
|
4463
4482
|
k.value[e] = t;
|
|
4464
|
-
},
|
|
4483
|
+
}, K = (t) => {
|
|
4465
4484
|
e.value = t;
|
|
4466
4485
|
}, oe = (t) => {
|
|
4467
4486
|
(!t || e.value === t) && (e.value = null);
|
|
4468
|
-
},
|
|
4487
|
+
}, q = () => e.value?.getFilterModel() ?? t.value, se = (n) => {
|
|
4469
4488
|
let r = e.value?.setFilterModel(n);
|
|
4470
4489
|
(!e.value || r === !1) && (t.value = n);
|
|
4471
|
-
},
|
|
4490
|
+
}, ce = (t) => {
|
|
4472
4491
|
let n = e.value?.setTableSearchFilterModel(t);
|
|
4473
4492
|
(!e.value || n === !1) && (i.value = t);
|
|
4474
|
-
},
|
|
4493
|
+
}, le = (t) => e.value?.refreshData(t), ue = (e, t) => {
|
|
4475
4494
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], o = r.filter((e) => i.includes(e));
|
|
4476
4495
|
[...r, ...i].filter((e) => !o.includes(e)).forEach((e) => n.add(e));
|
|
4477
4496
|
for (let r of o) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4481,7 +4500,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4481
4500
|
};
|
|
4482
4501
|
return Ke([t, n], ([e, n], [r, i]) => {
|
|
4483
4502
|
let a = /* @__PURE__ */ new Set();
|
|
4484
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
4503
|
+
JSON.stringify(e) !== JSON.stringify(r) && ue(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(n) !== JSON.stringify(i) && ue(n || {}, t.value || {}).forEach((e) => a.add(e)), a.size > 0 && re(a);
|
|
4485
4504
|
}, {
|
|
4486
4505
|
deep: !0,
|
|
4487
4506
|
debounce: 200,
|
|
@@ -4515,23 +4534,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4515
4534
|
filterStaleMap: S,
|
|
4516
4535
|
refreshFiltersInBackground: C,
|
|
4517
4536
|
stageFilterChangesUntilDropdownCloses: w,
|
|
4518
|
-
markOtherFieldsStale:
|
|
4537
|
+
markOtherFieldsStale: re,
|
|
4519
4538
|
aggregateFieldMap: T,
|
|
4520
4539
|
registerAggregateField: V,
|
|
4521
4540
|
registeredFilterFields: E,
|
|
4522
4541
|
registerFilterField: U,
|
|
4523
4542
|
unregisterFilterField: ne,
|
|
4524
4543
|
stagedSelectedValuesMap: k,
|
|
4525
|
-
initStagedSelectedValues:
|
|
4526
|
-
clearStagedSelectedValues:
|
|
4544
|
+
initStagedSelectedValues: W,
|
|
4545
|
+
clearStagedSelectedValues: G,
|
|
4527
4546
|
getStagedSelectedValues: ie,
|
|
4528
|
-
setStagedSelectedValues:
|
|
4529
|
-
registerFilterController:
|
|
4547
|
+
setStagedSelectedValues: ae,
|
|
4548
|
+
registerFilterController: K,
|
|
4530
4549
|
unregisterFilterController: oe,
|
|
4531
|
-
getFilterModel:
|
|
4532
|
-
applyFilterModel:
|
|
4533
|
-
applyTableSearchFilterModel:
|
|
4534
|
-
refreshData:
|
|
4550
|
+
getFilterModel: q,
|
|
4551
|
+
applyFilterModel: se,
|
|
4552
|
+
applyTableSearchFilterModel: ce,
|
|
4553
|
+
refreshData: le,
|
|
4535
4554
|
filterValueSearchTextMap: b,
|
|
4536
4555
|
filterValuesHasMoreMap: d,
|
|
4537
4556
|
filterValuesTotalCountMap: f
|
|
@@ -4543,63 +4562,63 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4543
4562
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
4544
4563
|
return e;
|
|
4545
4564
|
}, yc = (e) => {
|
|
4546
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a } = e,
|
|
4547
|
-
get: () => K.value ?
|
|
4565
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(po, O(null)), c = _c(), { fetchFilterValues: l, filterModel: u, stagedFilterModel: d, filterModelCleared: f, filterValuesLoadingStatus: p, filterValueContext: h, getFilterSelectedValues: g, isServerSideFilter: _, setFilterValueSearchText: y, setFilterSelectedValues: b, getFilterValues: x, setFilterValues: S, filterStaleMap: C, refreshFiltersInBackground: E, stageFilterChangesUntilDropdownCloses: D, markOtherFieldsStale: k, registerAggregateField: A, registerFilterField: j, unregisterFilterField: M, getStagedSelectedValues: N, setStagedSelectedValues: P, filterValueSearchTextMap: F, filterValuesHasMoreMap: I, filterValuesTotalCountMap: ee } = c, { computedFocuses: L, removeFocus: R, computedFocusType: z } = es(), te = m(So, O(!1)), B = m(xo, O(!1)), V = m(Fo, O(!1)), U = r({
|
|
4566
|
+
get: () => K.value ? N(G.value) : g(G.value),
|
|
4548
4567
|
set: (e) => {
|
|
4549
|
-
K.value ?
|
|
4568
|
+
K.value ? P(G.value, e) : b(G.value, e);
|
|
4550
4569
|
}
|
|
4551
|
-
}),
|
|
4552
|
-
let e =
|
|
4553
|
-
if (
|
|
4554
|
-
let t = new Set(e), n =
|
|
4570
|
+
}), ne = r(() => {
|
|
4571
|
+
let e = x(G.value);
|
|
4572
|
+
if (oe.value && q.value.length > 0) {
|
|
4573
|
+
let t = new Set(e), n = q.value.filter((e) => t.has(e)), r = new Set(q.value), i = e.filter((e) => !r.has(e));
|
|
4555
4574
|
return [...n, ...i];
|
|
4556
4575
|
}
|
|
4557
4576
|
return Ce(e);
|
|
4558
|
-
}),
|
|
4559
|
-
get: () =>
|
|
4560
|
-
set: (e) =>
|
|
4561
|
-
}), G = r(() => t.value.field || ""),
|
|
4562
|
-
if (
|
|
4577
|
+
}), re = r(() => p.value[G.value] ?? !1), W = r({
|
|
4578
|
+
get: () => F.value[G.value] ?? "",
|
|
4579
|
+
set: (e) => y(G.value, e)
|
|
4580
|
+
}), G = r(() => t.value.field || ""), ie = r(() => t.value.filter || ""), ae = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), oe = O(!1), q = O([]), se = r(() => Ss(t.value)), ce = r(() => Cs(t.value)), le = r(() => ws(t.value)), ue = r(() => $(t.value).filterOptionsSortDescription), J = r(() => $(t.value).filterOptionsSortTooltip), de = r(() => !$(t.value).filterSearch), fe = r(() => $(t.value).emptyFilterResultsRenderer), pe = r(() => $(t.value).filterOptionsRenderer), me = r(() => $(t.value).filterHeaderRenderer), he = r(() => $(t.value).filterFooterRenderer), ge = r(() => ce.value ? U.value.length >= ce.value : !1), _e = r(() => ne.value.filter((e) => e != null && !U.value.includes(e))), ve = r(() => ee.value[G.value]), ye = r(() => I.value[G.value]), Y = r(() => As(t.value)), X = O([]), be = r(() => ne.value.length === 1 && ne.value[0] === null && U.value.length === 0), xe = (e = !1) => {
|
|
4581
|
+
if (Y.value) return;
|
|
4563
4582
|
let n = [];
|
|
4564
|
-
if (
|
|
4565
|
-
let e =
|
|
4583
|
+
if (V.value && s.value) {
|
|
4584
|
+
let e = s.value.getAdvancedFilterModel();
|
|
4566
4585
|
n = oc(G.value, e);
|
|
4567
|
-
} else n = $s(t.value,
|
|
4568
|
-
e ?
|
|
4586
|
+
} else n = $s(t.value, u.value);
|
|
4587
|
+
e ? U.value = n : U.value = Array.from(new Set([...g(G.value), ...n]));
|
|
4569
4588
|
}, Se = (e) => {
|
|
4570
4589
|
let t = (n) => {
|
|
4571
4590
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
4572
4591
|
return !1;
|
|
4573
4592
|
};
|
|
4574
|
-
return t(
|
|
4593
|
+
return t(X.value);
|
|
4575
4594
|
}, Ce = (e) => [...e].sort((e, t) => {
|
|
4576
|
-
let n =
|
|
4595
|
+
let n = U.value.includes(e) || Se(e), r = U.value.includes(t) || Se(t);
|
|
4577
4596
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4578
4597
|
}), we = async (e = !1, n = !1) => {
|
|
4579
|
-
if (!
|
|
4580
|
-
let r =
|
|
4581
|
-
if (
|
|
4582
|
-
if (
|
|
4583
|
-
let e = await
|
|
4584
|
-
api:
|
|
4585
|
-
filterModel:
|
|
4598
|
+
if (!s.value || o?.value) return;
|
|
4599
|
+
let r = C.value[G.value] ?? !1, i = p.value[G.value] !== !0, a = (x(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
4600
|
+
if (V.value) {
|
|
4601
|
+
if (_.value && c) {
|
|
4602
|
+
let e = await l(t.value, {
|
|
4603
|
+
api: s.value,
|
|
4604
|
+
filterModel: u.value ?? void 0,
|
|
4586
4605
|
useStaged: K.value
|
|
4587
4606
|
});
|
|
4588
|
-
|
|
4607
|
+
S(G.value, e), C.value[G.value] = !1, it();
|
|
4589
4608
|
}
|
|
4590
4609
|
return;
|
|
4591
4610
|
}
|
|
4592
|
-
let
|
|
4593
|
-
if (
|
|
4594
|
-
if (
|
|
4595
|
-
|
|
4611
|
+
let d = await Zs(s.value, t.value);
|
|
4612
|
+
if (d) {
|
|
4613
|
+
if (_.value && c) {
|
|
4614
|
+
d.refreshFilterValues();
|
|
4596
4615
|
return;
|
|
4597
4616
|
}
|
|
4598
|
-
|
|
4617
|
+
S(G.value, d.getFilterValues()), C.value[G.value] = !1;
|
|
4599
4618
|
}
|
|
4600
4619
|
}, Te = (e) => {
|
|
4601
|
-
let t =
|
|
4602
|
-
return !t &&
|
|
4620
|
+
let t = h(G.value, e);
|
|
4621
|
+
return !t && Y.value && e && (t = ze(e)), t;
|
|
4603
4622
|
}, Ee = (e, t) => t?.metadata?.rawValue == null ? e : t.metadata.rawValue, De = (e, t) => {
|
|
4604
4623
|
if (!e || !t || e.label && e.metadata?.rawValue == null) return e;
|
|
4605
4624
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
@@ -4609,8 +4628,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4609
4628
|
} : e;
|
|
4610
4629
|
}, Oe = (e, t) => {
|
|
4611
4630
|
let n = se.value, r = t;
|
|
4612
|
-
if (t?.colField &&
|
|
4613
|
-
let e =
|
|
4631
|
+
if (t?.colField && Y.value) {
|
|
4632
|
+
let e = s.value?.getColumnDef(t?.colField);
|
|
4614
4633
|
n = e ? Ss(e) ?? n : n, r = De(t, e ?? void 0);
|
|
4615
4634
|
}
|
|
4616
4635
|
return n ? n({
|
|
@@ -4619,9 +4638,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4619
4638
|
}) : r?.label || e;
|
|
4620
4639
|
}, ke = (e) => Oe(e, Te(e)), Ae = (e) => {
|
|
4621
4640
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4622
|
-
let n =
|
|
4641
|
+
let n = h(G.value, e);
|
|
4623
4642
|
return n == null || n.label == null;
|
|
4624
|
-
}, je = (e) => be.value ||
|
|
4643
|
+
}, je = (e) => be.value || h(G.value, e)?.isSelectable === !1 ? !0 : le.value ? !1 : ge.value && !U.value.includes(e), Me = (e) => !e || !s.value ? "" : s.value.getColumnDef(e)?.headerName || e, Ne = (e) => {
|
|
4625
4644
|
if (!e.startsWith("__")) return { value: e };
|
|
4626
4645
|
let t = e.slice(2).split("__");
|
|
4627
4646
|
return t.length < 2 ? { value: e } : {
|
|
@@ -4629,7 +4648,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4629
4648
|
value: t[1]
|
|
4630
4649
|
};
|
|
4631
4650
|
}, Pe = (e) => {
|
|
4632
|
-
let t =
|
|
4651
|
+
let t = h(G.value, e), n = t?.metadata?.rawValue;
|
|
4633
4652
|
return t?.colField && n != null ? {
|
|
4634
4653
|
field: t.colField,
|
|
4635
4654
|
value: String(n)
|
|
@@ -4637,7 +4656,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4637
4656
|
field: t.colField,
|
|
4638
4657
|
value: e
|
|
4639
4658
|
} : Ne(e);
|
|
4640
|
-
}, Fe = () => [...
|
|
4659
|
+
}, Fe = () => [...c.filterValueMap.value[G.value] || [], ...c.filterValueSelectedMetadataMap.value[G.value] || []], Ie = (e, t) => {
|
|
4641
4660
|
for (let n of e) {
|
|
4642
4661
|
if (!n) continue;
|
|
4643
4662
|
if (t(n)) return n;
|
|
@@ -4703,29 +4722,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4703
4722
|
let n = Fe(), r = Ie(n, (t) => t.value === e.id);
|
|
4704
4723
|
return r?.children?.length ? r : Le(n, e.id) || (r && r.colField === ks(t.value) ? r : Be(e.id) || r);
|
|
4705
4724
|
}, He = (e) => {
|
|
4706
|
-
if (!
|
|
4707
|
-
let t =
|
|
4725
|
+
if (!Y.value) return;
|
|
4726
|
+
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
4708
4727
|
for (let e of t) e && n.set(e.value, e);
|
|
4709
4728
|
for (let t of e) {
|
|
4710
4729
|
if (t.state !== "selected") continue;
|
|
4711
4730
|
let e = Ve(t);
|
|
4712
4731
|
e && n.set(e.value, e);
|
|
4713
4732
|
}
|
|
4714
|
-
|
|
4715
|
-
},
|
|
4733
|
+
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
4734
|
+
}, Z = () => {
|
|
4716
4735
|
let e = /* @__PURE__ */ new Set();
|
|
4717
|
-
for (let t of
|
|
4736
|
+
for (let t of X.value) {
|
|
4718
4737
|
if (t.state !== "selected") continue;
|
|
4719
4738
|
let n = Ve(t);
|
|
4720
4739
|
n && e.add(n.value);
|
|
4721
4740
|
}
|
|
4722
|
-
return [...e].filter((e) => !
|
|
4723
|
-
},
|
|
4724
|
-
let n =
|
|
4741
|
+
return [...e].filter((e) => !ne.value.includes(e));
|
|
4742
|
+
}, Ue = (e) => {
|
|
4743
|
+
let n = h(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = ue.value ? "suggestions" : null;
|
|
4725
4744
|
n?.isPreference && (i = "preferences");
|
|
4726
|
-
let a = null,
|
|
4727
|
-
|
|
4728
|
-
let d, f,
|
|
4745
|
+
let a = null, o = n?.matchedValue, l = Me(n?.matchedField);
|
|
4746
|
+
o && l ? a = o ? `${l}: ${o}` : "" : n?.subText ? a = n.subText : n?.colField && Y.value && !r && (a = Me(n?.colField));
|
|
4747
|
+
let d, f, p;
|
|
4729
4748
|
if (r && (d = (n.children ?? []).map((e) => ({
|
|
4730
4749
|
...e.menuOption,
|
|
4731
4750
|
id: e.value,
|
|
@@ -4737,12 +4756,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4737
4756
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
4738
4757
|
})), f = n.totalChildCount, f && f > d.length && n.value != null)) {
|
|
4739
4758
|
let e = n.value;
|
|
4740
|
-
|
|
4741
|
-
if (!
|
|
4742
|
-
let r = n?.offset ?? d.length, i = await
|
|
4743
|
-
api:
|
|
4759
|
+
p = async (n) => {
|
|
4760
|
+
if (!s.value || !c.filterStoreHandler.value) return;
|
|
4761
|
+
let r = n?.offset ?? d.length, i = await c.filterStoreHandler.value({
|
|
4762
|
+
api: s.value,
|
|
4744
4763
|
colDef: t.value,
|
|
4745
|
-
filterModel:
|
|
4764
|
+
filterModel: u.value ?? void 0,
|
|
4746
4765
|
offset: r,
|
|
4747
4766
|
parentId: e
|
|
4748
4767
|
});
|
|
@@ -4762,7 +4781,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4762
4781
|
...n?.menuOption,
|
|
4763
4782
|
id: e || "",
|
|
4764
4783
|
text: ke(e) || "",
|
|
4765
|
-
searchText:
|
|
4784
|
+
searchText: o,
|
|
4766
4785
|
subduedText: n?.subduedText,
|
|
4767
4786
|
subText: a || void 0,
|
|
4768
4787
|
groupingLabel: i || "",
|
|
@@ -4771,14 +4790,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4771
4790
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
4772
4791
|
children: d,
|
|
4773
4792
|
totalChildCount: f,
|
|
4774
|
-
handleSeeMore:
|
|
4793
|
+
handleSeeMore: p
|
|
4775
4794
|
};
|
|
4776
|
-
},
|
|
4777
|
-
let e = [...
|
|
4778
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ae(e)).map(
|
|
4779
|
-
}),
|
|
4780
|
-
get: () =>
|
|
4781
|
-
let t =
|
|
4795
|
+
}, We = r(() => {
|
|
4796
|
+
let e = [...Y.value ? Z() : U.value.filter((e) => e != null && e !== "" && !ne.value.includes(e)), ...ne.value];
|
|
4797
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ae(e)).map(Ue);
|
|
4798
|
+
}), Ge = r({
|
|
4799
|
+
get: () => Y.value ? [] : U.value.map((e) => {
|
|
4800
|
+
let t = h(G.value, e), n = t?.colField ? Me(t.colField) : void 0;
|
|
4782
4801
|
return {
|
|
4783
4802
|
id: e,
|
|
4784
4803
|
text: ke(e),
|
|
@@ -4787,61 +4806,61 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4787
4806
|
};
|
|
4788
4807
|
}),
|
|
4789
4808
|
set: (e) => {
|
|
4790
|
-
if (
|
|
4791
|
-
if (e.length === 0 && !
|
|
4792
|
-
|
|
4809
|
+
if (Y.value) {
|
|
4810
|
+
if (e.length === 0 && !oe.value && D.value && !K.value) {
|
|
4811
|
+
et([]);
|
|
4793
4812
|
return;
|
|
4794
4813
|
}
|
|
4795
4814
|
i?.();
|
|
4796
4815
|
return;
|
|
4797
4816
|
}
|
|
4798
|
-
|
|
4799
|
-
!
|
|
4817
|
+
U.value = e.map((e) => e.id), (e.length === 0 && !oe.value || !D.value || K.value) && (Je(), L.value.forEach((e) => {
|
|
4818
|
+
!U.value.includes(e) && z.value === G.value && R(e);
|
|
4800
4819
|
})), i?.();
|
|
4801
4820
|
}
|
|
4802
|
-
}),
|
|
4821
|
+
}), qe = (e) => {
|
|
4803
4822
|
let t = {};
|
|
4804
4823
|
for (let n of e) {
|
|
4805
4824
|
if (n === null) continue;
|
|
4806
|
-
let e =
|
|
4825
|
+
let e = h(G.value, n)?.colField || G.value;
|
|
4807
4826
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4808
4827
|
}
|
|
4809
4828
|
return t;
|
|
4810
|
-
},
|
|
4811
|
-
if (!
|
|
4829
|
+
}, Je = async (e, n) => {
|
|
4830
|
+
if (!s.value) return;
|
|
4812
4831
|
if (e !== void 0 && n !== void 0) {
|
|
4813
4832
|
let r = e || G.value, i = n;
|
|
4814
|
-
if (
|
|
4833
|
+
if (V.value) {
|
|
4815
4834
|
let e = Bs(r, i || []);
|
|
4816
4835
|
if (K.value) {
|
|
4817
|
-
let t =
|
|
4818
|
-
|
|
4836
|
+
let t = d.value;
|
|
4837
|
+
d.value = ic(t, e, r), k(new Set([r]));
|
|
4819
4838
|
return;
|
|
4820
4839
|
}
|
|
4821
|
-
let t = ic(
|
|
4840
|
+
let t = ic(s.value.getAdvancedFilterModel(), e, r);
|
|
4822
4841
|
v(() => {
|
|
4823
|
-
|
|
4824
|
-
}),
|
|
4842
|
+
s.value?.setAdvancedFilterModel(t);
|
|
4843
|
+
}), k(new Set([r]));
|
|
4825
4844
|
return;
|
|
4826
4845
|
}
|
|
4827
4846
|
if (K.value) {
|
|
4828
|
-
let e = await Qs(
|
|
4829
|
-
|
|
4830
|
-
...
|
|
4847
|
+
let e = await Qs(s.value, t.value, i);
|
|
4848
|
+
d.value = {
|
|
4849
|
+
...d.value,
|
|
4831
4850
|
[r]: e
|
|
4832
4851
|
};
|
|
4833
4852
|
return;
|
|
4834
4853
|
}
|
|
4835
|
-
let a = await Qs(
|
|
4836
|
-
|
|
4837
|
-
|
|
4854
|
+
let a = await Qs(s.value, t.value, i);
|
|
4855
|
+
s.value.setColumnFilterModel(r, a).then(() => {
|
|
4856
|
+
s.value && s.value.onFilterChanged();
|
|
4838
4857
|
});
|
|
4839
4858
|
return;
|
|
4840
4859
|
}
|
|
4841
|
-
let r =
|
|
4842
|
-
if (
|
|
4843
|
-
let e = K.value ?
|
|
4844
|
-
if (
|
|
4860
|
+
let r = qe(U.value), i = $(t.value);
|
|
4861
|
+
if (V.value) {
|
|
4862
|
+
let e = K.value ? d.value : s.value.getAdvancedFilterModel(), n = e;
|
|
4863
|
+
if (Y.value) {
|
|
4845
4864
|
let e = Ds(t.value), i = [];
|
|
4846
4865
|
for (let t of e) {
|
|
4847
4866
|
let e = r[t] || [];
|
|
@@ -4864,7 +4883,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4864
4883
|
} : e;
|
|
4865
4884
|
}
|
|
4866
4885
|
} else {
|
|
4867
|
-
let t =
|
|
4886
|
+
let t = U.value.length > 0 ? U.value : null, r = Bs(G.value, t || []);
|
|
4868
4887
|
n = ic(n, r, G.value);
|
|
4869
4888
|
let o = !1;
|
|
4870
4889
|
if (a?.value) {
|
|
@@ -4877,64 +4896,64 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4877
4896
|
n = ic(n, r, t);
|
|
4878
4897
|
}
|
|
4879
4898
|
}
|
|
4880
|
-
let s =
|
|
4899
|
+
let s = U.value.filter((e) => e !== null), c = oc(G.value, e), l = new Set(c), u = new Set(s);
|
|
4881
4900
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !o) return;
|
|
4882
4901
|
}
|
|
4883
|
-
let
|
|
4884
|
-
if (K.value)
|
|
4902
|
+
let o = Y.value ? new Set(Ds(t.value)) : new Set([G.value]);
|
|
4903
|
+
if (K.value) d.value = n, k(o);
|
|
4885
4904
|
else {
|
|
4886
4905
|
let e = n;
|
|
4887
4906
|
v(() => {
|
|
4888
|
-
|
|
4889
|
-
}),
|
|
4907
|
+
s.value?.setAdvancedFilterModel(e);
|
|
4908
|
+
}), k(o);
|
|
4890
4909
|
}
|
|
4891
4910
|
return;
|
|
4892
4911
|
}
|
|
4893
|
-
let
|
|
4912
|
+
let o = U.value.length > 0 ? U.value : null;
|
|
4894
4913
|
if (K.value) {
|
|
4895
|
-
let e = await Qs(
|
|
4896
|
-
|
|
4897
|
-
...
|
|
4914
|
+
let e = await Qs(s.value, t.value, o);
|
|
4915
|
+
d.value = {
|
|
4916
|
+
...d.value,
|
|
4898
4917
|
[G.value]: e
|
|
4899
4918
|
};
|
|
4900
4919
|
return;
|
|
4901
4920
|
}
|
|
4902
|
-
let c = await Qs(
|
|
4903
|
-
|
|
4904
|
-
|
|
4921
|
+
let c = await Qs(s.value, t.value, o);
|
|
4922
|
+
s.value.setColumnFilterModel(G.value, c).then(() => {
|
|
4923
|
+
s.value && s.value.onFilterChanged();
|
|
4905
4924
|
});
|
|
4906
|
-
},
|
|
4907
|
-
if (e && le.value ?
|
|
4925
|
+
}, Ye = (e, n) => {
|
|
4926
|
+
if (e && le.value ? U.value = [e] : e && !U.value.includes(e) && (U.value = [...U.value, e]), Y.value && e) {
|
|
4908
4927
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Re(r, e) || e;
|
|
4909
|
-
|
|
4928
|
+
X.value.find((e) => e.id === i) || (X.value = [...X.value, {
|
|
4910
4929
|
id: i,
|
|
4911
4930
|
state: "selected"
|
|
4912
4931
|
}]);
|
|
4913
4932
|
}
|
|
4914
|
-
(!
|
|
4915
|
-
},
|
|
4916
|
-
if (
|
|
4933
|
+
(!D.value || K.value) && (Y.value && e ? et(X.value) : n && n !== G.value ? Je(n, [e]) : Je()), i?.();
|
|
4934
|
+
}, Xe = (e, n) => {
|
|
4935
|
+
if (U.value = U.value.filter((t) => t !== e), Y.value && e) {
|
|
4917
4936
|
let r = n || Ds(t.value)[0] || G.value, i = e.startsWith("__") ? e : Re(r, e) || e;
|
|
4918
|
-
|
|
4937
|
+
X.value = X.value.filter((e) => e.id !== i);
|
|
4919
4938
|
}
|
|
4920
|
-
(!
|
|
4921
|
-
}, Xe = () => {
|
|
4922
|
-
oe.value = Ce(b(G.value)), ae.value = !0;
|
|
4939
|
+
(!D.value || K.value) && (Y.value && e ? et(X.value) : n && n !== G.value ? Je(n, null) : Je()), i?.();
|
|
4923
4940
|
}, Ze = () => {
|
|
4924
|
-
|
|
4925
|
-
}, Qe =
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4941
|
+
q.value = Ce(x(G.value)), oe.value = !0;
|
|
4942
|
+
}, Qe = () => {
|
|
4943
|
+
oe.value = !1, q.value = [], W.value = "", D.value && !K.value && (Y.value ? et(X.value) : Je());
|
|
4944
|
+
}, $e = async (e) => {
|
|
4945
|
+
if (!s.value) return;
|
|
4946
|
+
let n = ne.value.length;
|
|
4947
|
+
await l(t.value, {
|
|
4948
|
+
api: s.value,
|
|
4949
|
+
filterModel: u.value ?? void 0,
|
|
4931
4950
|
offset: e.offset ?? n,
|
|
4932
4951
|
parentId: e.parentId,
|
|
4933
4952
|
useStaged: K.value
|
|
4934
4953
|
});
|
|
4935
|
-
},
|
|
4936
|
-
if (!
|
|
4937
|
-
|
|
4954
|
+
}, et = (e) => {
|
|
4955
|
+
if (!s.value || !Y.value) return;
|
|
4956
|
+
X.value = e, He(e);
|
|
4938
4957
|
let n = Ds(t.value);
|
|
4939
4958
|
if (n.length === 0) return;
|
|
4940
4959
|
let r = e.map((e) => {
|
|
@@ -4962,7 +4981,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4962
4981
|
type: "AND",
|
|
4963
4982
|
conditions: r
|
|
4964
4983
|
};
|
|
4965
|
-
}).filter((e) => !!e), a = K.value ?
|
|
4984
|
+
}).filter((e) => !!e), a = K.value ? d.value : s.value.getAdvancedFilterModel();
|
|
4966
4985
|
for (let e of n) a = ic(a, null, e);
|
|
4967
4986
|
if (r.length > 0) {
|
|
4968
4987
|
let e = r.length === 1 ? r[0] : {
|
|
@@ -4976,21 +4995,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4976
4995
|
conditions: [a, e]
|
|
4977
4996
|
} : e;
|
|
4978
4997
|
}
|
|
4979
|
-
if (K.value)
|
|
4998
|
+
if (K.value) d.value = a;
|
|
4980
4999
|
else {
|
|
4981
5000
|
let e = a;
|
|
4982
5001
|
v(() => {
|
|
4983
|
-
|
|
5002
|
+
s.value?.setAdvancedFilterModel(e);
|
|
4984
5003
|
});
|
|
4985
5004
|
}
|
|
4986
|
-
|
|
4987
|
-
},
|
|
5005
|
+
k(new Set(n)), i?.();
|
|
5006
|
+
}, tt = (e, n) => {
|
|
4988
5007
|
if (!e) return [];
|
|
4989
5008
|
if (e.filterType === "join") {
|
|
4990
5009
|
let r = e.conditions || [];
|
|
4991
5010
|
if (e.type === "AND") {
|
|
4992
5011
|
let e = r.find((e) => e.filterType !== "join" && n.has(e.colId) && e.type === "equals" && !Os($(t.value).aggregateFieldHierarchy).includes(e.colId));
|
|
4993
|
-
return r.flatMap((t) =>
|
|
5012
|
+
return r.flatMap((t) => tt(t, n).map((t) => ({
|
|
4994
5013
|
...t,
|
|
4995
5014
|
parentEquals: t.parentEquals || (e ? {
|
|
4996
5015
|
colId: e.colId,
|
|
@@ -4998,7 +5017,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4998
5017
|
} : void 0)
|
|
4999
5018
|
})));
|
|
5000
5019
|
}
|
|
5001
|
-
return r.flatMap((e) =>
|
|
5020
|
+
return r.flatMap((e) => tt(e, n));
|
|
5002
5021
|
}
|
|
5003
5022
|
let r = e;
|
|
5004
5023
|
return r.colId && n.has(r.colId) ? [{
|
|
@@ -5006,11 +5025,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5006
5025
|
type: r.type,
|
|
5007
5026
|
filter: r.filter
|
|
5008
5027
|
}] : [];
|
|
5009
|
-
},
|
|
5010
|
-
if (!
|
|
5028
|
+
}, nt = (e) => {
|
|
5029
|
+
if (!Y.value) return;
|
|
5011
5030
|
let n = Ds(t.value);
|
|
5012
5031
|
if (!n.length) return;
|
|
5013
|
-
let r = ks(t.value), i =
|
|
5032
|
+
let r = ks(t.value), i = tt(e, new Set(n)), a = /* @__PURE__ */ new Map();
|
|
5014
5033
|
for (let e of i) {
|
|
5015
5034
|
if (!e.filter) continue;
|
|
5016
5035
|
let t = Re(e.colId, String(e.filter));
|
|
@@ -5036,104 +5055,104 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5036
5055
|
}
|
|
5037
5056
|
}
|
|
5038
5057
|
let o = [...a.values()];
|
|
5039
|
-
JSON.stringify(
|
|
5040
|
-
},
|
|
5058
|
+
JSON.stringify(X.value) !== JSON.stringify(o) && (X.value = o), He(o);
|
|
5059
|
+
}, rt = () => Y.value ? X.value.some((e) => {
|
|
5041
5060
|
let { field: t, value: n } = Pe(e.id);
|
|
5042
5061
|
return t ? Re(t, n) !== e.id : !1;
|
|
5043
|
-
}) : !1,
|
|
5044
|
-
!
|
|
5062
|
+
}) : !1, it = () => {
|
|
5063
|
+
!Y.value || !V.value || rt() && nt(u.value);
|
|
5045
5064
|
};
|
|
5046
|
-
return H(
|
|
5047
|
-
|
|
5048
|
-
}, { deep: !0 }), H(() =>
|
|
5049
|
-
e &&
|
|
5050
|
-
}), H(() =>
|
|
5065
|
+
return H(X, (e) => {
|
|
5066
|
+
Y.value && (He(e), !(D.value && !K.value) && et(e));
|
|
5067
|
+
}, { deep: !0 }), H(() => C.value[G.value], (e) => {
|
|
5068
|
+
e && E.value && we(!0);
|
|
5069
|
+
}), H(() => d.value, () => {
|
|
5051
5070
|
if (K.value) {
|
|
5052
|
-
if (
|
|
5053
|
-
let e = [], n =
|
|
5054
|
-
if (
|
|
5071
|
+
if (V.value) {
|
|
5072
|
+
let e = [], n = d.value;
|
|
5073
|
+
if (Y.value) {
|
|
5055
5074
|
let r = Ds(t.value);
|
|
5056
5075
|
for (let t of r) {
|
|
5057
5076
|
let r = oc(t, n);
|
|
5058
5077
|
e.push(...r);
|
|
5059
5078
|
}
|
|
5060
5079
|
} else e = oc(G.value, n);
|
|
5061
|
-
|
|
5080
|
+
U.value = e;
|
|
5062
5081
|
return;
|
|
5063
5082
|
}
|
|
5064
|
-
|
|
5083
|
+
ie.value === "agSetColumnFilter" ? U.value = d.value?.[G.value]?.values || [] : ie.value === "agMultiColumnFilter" ? U.value = d.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ie.value} is not yet supported.`);
|
|
5065
5084
|
}
|
|
5066
|
-
}), H(() =>
|
|
5085
|
+
}), H(() => u.value, () => {
|
|
5067
5086
|
if (K.value) return;
|
|
5068
|
-
if (
|
|
5069
|
-
|
|
5087
|
+
if (Y.value) {
|
|
5088
|
+
V.value && nt(u.value);
|
|
5070
5089
|
return;
|
|
5071
5090
|
}
|
|
5072
|
-
if (
|
|
5073
|
-
let e =
|
|
5074
|
-
xe(
|
|
5091
|
+
if (V.value) {
|
|
5092
|
+
let e = u.value, t = oc(G.value, e);
|
|
5093
|
+
xe(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5075
5094
|
return;
|
|
5076
5095
|
}
|
|
5077
|
-
let e = $s(t.value,
|
|
5078
|
-
xe(
|
|
5079
|
-
}, { deep: !0 }), H(() =>
|
|
5080
|
-
|
|
5081
|
-
}), H(() =>
|
|
5082
|
-
e &&
|
|
5083
|
-
}, { immediate: !0 }), H(() =>
|
|
5084
|
-
|
|
5096
|
+
let e = $s(t.value, u.value);
|
|
5097
|
+
xe(U.value.some((t) => !e.includes(t)));
|
|
5098
|
+
}, { deep: !0 }), H(() => f.value, () => {
|
|
5099
|
+
U.value = [], X.value = [];
|
|
5100
|
+
}), H(() => s.value, (e) => {
|
|
5101
|
+
e && _.value && (C.value[G.value] = !0);
|
|
5102
|
+
}, { immediate: !0 }), H(() => B.value, async () => {
|
|
5103
|
+
E.value && (K.value ? setTimeout(async () => {
|
|
5085
5104
|
await we(!0);
|
|
5086
5105
|
}, 2e3) : await we(!0)), xe();
|
|
5087
5106
|
}), Ke(() => W.value, async () => {
|
|
5088
5107
|
await we(!0, !0);
|
|
5089
5108
|
}, { debounce: 300 }), w(() => {
|
|
5090
|
-
|
|
5109
|
+
j(G.value);
|
|
5091
5110
|
let e = Ds(t.value);
|
|
5092
|
-
e.length &&
|
|
5111
|
+
e.length && A(G.value, e), xe(), Y.value && V.value && nt(u.value), Y.value || $(t.value).metadataDisplayFields?.length && U.value.some((e) => Ae(e)) && we(!0, !0);
|
|
5093
5112
|
}), T(() => {
|
|
5094
|
-
|
|
5113
|
+
M(G.value), D.value && !K.value && (Y.value ? et(X.value) : Je());
|
|
5095
5114
|
}), {
|
|
5096
|
-
selectedValues:
|
|
5097
|
-
filterValues:
|
|
5098
|
-
isLoading:
|
|
5115
|
+
selectedValues: U,
|
|
5116
|
+
filterValues: ne,
|
|
5117
|
+
isLoading: re,
|
|
5099
5118
|
filterSearchText: W,
|
|
5100
|
-
rowsLoading:
|
|
5101
|
-
gridApi:
|
|
5119
|
+
rowsLoading: te,
|
|
5120
|
+
gridApi: s,
|
|
5102
5121
|
filterField: G,
|
|
5103
|
-
filterType:
|
|
5104
|
-
filterDisplayName:
|
|
5122
|
+
filterType: ie,
|
|
5123
|
+
filterDisplayName: ae,
|
|
5105
5124
|
isInFilterPanel: K,
|
|
5106
5125
|
maxSelectableValues: ce,
|
|
5107
5126
|
isSingleSelect: le,
|
|
5108
5127
|
selectionLimitReached: ge,
|
|
5109
5128
|
suggestedValues: _e,
|
|
5110
|
-
displayedFilterValues:
|
|
5111
|
-
selectedFilterValues:
|
|
5112
|
-
showSearchBar:
|
|
5129
|
+
displayedFilterValues: We,
|
|
5130
|
+
selectedFilterValues: Ge,
|
|
5131
|
+
showSearchBar: de,
|
|
5113
5132
|
emptyFilterResultsRenderer: fe,
|
|
5114
5133
|
filterOptionsRenderer: pe,
|
|
5115
5134
|
filterHeaderRenderer: me,
|
|
5116
5135
|
filterFooterRenderer: he,
|
|
5117
5136
|
filterOptionsSortDescription: ue,
|
|
5118
|
-
filterOptionsSortTooltip:
|
|
5137
|
+
filterOptionsSortTooltip: J,
|
|
5119
5138
|
totalOptionCount: ve,
|
|
5120
5139
|
hasMoreOptions: ye,
|
|
5121
|
-
isAggregate:
|
|
5122
|
-
cascadeSelectionState:
|
|
5123
|
-
filterValueContext:
|
|
5140
|
+
isAggregate: Y,
|
|
5141
|
+
cascadeSelectionState: X,
|
|
5142
|
+
filterValueContext: h,
|
|
5124
5143
|
formatDisplayValue: ke,
|
|
5125
5144
|
resolvedFilterValueContext: Te,
|
|
5126
5145
|
isUnresolvedMetadataValue: Ae,
|
|
5127
5146
|
getLatestFilterValues: we,
|
|
5128
|
-
addSelectedValue:
|
|
5129
|
-
removeSelectedValue:
|
|
5130
|
-
handleDropdownOpen:
|
|
5131
|
-
handleDropdownClosed:
|
|
5132
|
-
handleSeeMore:
|
|
5133
|
-
handleCascadeSelectionState:
|
|
5147
|
+
addSelectedValue: Ye,
|
|
5148
|
+
removeSelectedValue: Xe,
|
|
5149
|
+
handleDropdownOpen: Ze,
|
|
5150
|
+
handleDropdownClosed: Qe,
|
|
5151
|
+
handleSeeMore: $e,
|
|
5152
|
+
handleCascadeSelectionState: et,
|
|
5134
5153
|
getColDisplayNameForField: Me,
|
|
5135
5154
|
disableFilterValue: je,
|
|
5136
|
-
updateFilterModelWithSelectedValues:
|
|
5155
|
+
updateFilterModelWithSelectedValues: Je
|
|
5137
5156
|
};
|
|
5138
5157
|
}, bc = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5139
5158
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5273,7 +5292,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5273
5292
|
T(() => {
|
|
5274
5293
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5275
5294
|
});
|
|
5276
|
-
let
|
|
5295
|
+
let re = r(() => _.value.size);
|
|
5277
5296
|
return n({
|
|
5278
5297
|
openForTest: () => {
|
|
5279
5298
|
P(), x.value = !0;
|
|
@@ -5292,7 +5311,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5292
5311
|
id: C.value.label,
|
|
5293
5312
|
text: C.value.label,
|
|
5294
5313
|
"class-list": ["pv-menu-nested"],
|
|
5295
|
-
"secondary-text":
|
|
5314
|
+
"secondary-text": re.value || void 0,
|
|
5296
5315
|
onHandleSelected: z
|
|
5297
5316
|
}, null, 8, [
|
|
5298
5317
|
"id",
|
|
@@ -5401,7 +5420,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5401
5420
|
type: Boolean,
|
|
5402
5421
|
default: !1
|
|
5403
5422
|
},
|
|
5404
|
-
focusText: { default: "focus" }
|
|
5423
|
+
focusText: { default: "focus" },
|
|
5424
|
+
readOnly: {
|
|
5425
|
+
type: Boolean,
|
|
5426
|
+
default: !1
|
|
5427
|
+
}
|
|
5405
5428
|
},
|
|
5406
5429
|
emits: [
|
|
5407
5430
|
"filter-selection-changed",
|
|
@@ -5409,12 +5432,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5409
5432
|
"handle-settings-icon"
|
|
5410
5433
|
],
|
|
5411
5434
|
setup(e, { emit: n }) {
|
|
5412
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), { selectedValues: S, isLoading: C, filterSearchText: w, rowsLoading: T, gridApi: D, filterField: A, filterDisplayName: j, isInFilterPanel: N, suggestedValues: ee, displayedFilterValues: L, selectedFilterValues: R, showSearchBar: z, emptyFilterResultsRenderer: te, filterOptionsRenderer: B, filterHeaderRenderer: V, filterFooterRenderer: H, filterOptionsSortDescription: ne, filterOptionsSortTooltip:
|
|
5435
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), { selectedValues: S, isLoading: C, filterSearchText: w, rowsLoading: T, gridApi: D, filterField: A, filterDisplayName: j, isInFilterPanel: N, suggestedValues: ee, displayedFilterValues: L, selectedFilterValues: R, showSearchBar: z, emptyFilterResultsRenderer: te, filterOptionsRenderer: B, filterHeaderRenderer: V, filterFooterRenderer: H, filterOptionsSortDescription: ne, filterOptionsSortTooltip: re, filterValueContext: W, formatDisplayValue: G, resolvedFilterValueContext: ie, isUnresolvedMetadataValue: ae, getLatestFilterValues: K, addSelectedValue: oe, removeSelectedValue: q, handleDropdownOpen: se, handleDropdownClosed: ce, handleSeeMore: le, getColDisplayNameForField: ue, hasMoreOptions: J, totalOptionCount: de, isAggregate: fe, cascadeSelectionState: pe } = yc({
|
|
5413
5436
|
filterColDef: F(d, "filterColDef"),
|
|
5414
5437
|
filterStyle: F(d, "filterStyle"),
|
|
5415
5438
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5416
|
-
filterGroupStagedFields: x
|
|
5417
|
-
|
|
5439
|
+
filterGroupStagedFields: x,
|
|
5440
|
+
readOnly: F(d, "readOnly")
|
|
5441
|
+
}), { handleFocusUpdate: me, isFocused: he, removeFocus: ge, isFocusable: _e, canRemoveFocus: ve } = es(), ye = (e) => {
|
|
5418
5442
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5419
5443
|
if (e.id.startsWith("__")) {
|
|
5420
5444
|
let t = e.id.slice(2).split("__");
|
|
@@ -5422,28 +5446,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5422
5446
|
}
|
|
5423
5447
|
return e.id;
|
|
5424
5448
|
}, Y = r(() => {
|
|
5425
|
-
if (
|
|
5449
|
+
if (_e(As(d.filterColDef) ? Ds(d.filterColDef) : [A.value])) return {
|
|
5426
5450
|
icon: "focus",
|
|
5427
|
-
isDisabled: (e) => !
|
|
5451
|
+
isDisabled: (e) => !_e([e.context?.colField || A.value]),
|
|
5428
5452
|
tooltipText: (e) => {
|
|
5429
5453
|
let t = e.context?.colField || A.value;
|
|
5430
|
-
if (!
|
|
5431
|
-
let n =
|
|
5432
|
-
return n && !
|
|
5454
|
+
if (!_e([t])) return `Group by ${ue(t)} to enable ${d.focusText}`;
|
|
5455
|
+
let n = he(fe.value ? ye(e) : e.id, t);
|
|
5456
|
+
return n && !ve() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5433
5457
|
},
|
|
5434
5458
|
action: (e) => {
|
|
5435
5459
|
e && !S.value.includes(e.id) && oe(e.id, e.context?.colField);
|
|
5436
5460
|
let t = e.context?.colField || A.value;
|
|
5437
|
-
|
|
5461
|
+
me(fe.value ? ye(e) : e.id, t);
|
|
5438
5462
|
},
|
|
5439
5463
|
alwaysShow: (e) => {
|
|
5440
5464
|
let t = e.context?.colField || A.value;
|
|
5441
|
-
return
|
|
5465
|
+
return he(fe.value ? ye(e) : e.id, t);
|
|
5442
5466
|
}
|
|
5443
5467
|
};
|
|
5444
|
-
}),
|
|
5468
|
+
}), X = (e) => {
|
|
5445
5469
|
if (!e) return null;
|
|
5446
|
-
if (!
|
|
5470
|
+
if (!fe.value) return e;
|
|
5447
5471
|
let t = ie(e);
|
|
5448
5472
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5449
5473
|
if (e.startsWith("__")) {
|
|
@@ -5451,41 +5475,44 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5451
5475
|
if (t.length >= 2) return t[1];
|
|
5452
5476
|
}
|
|
5453
5477
|
return e;
|
|
5454
|
-
},
|
|
5455
|
-
|
|
5456
|
-
let t = ie(e)?.colField || A.value, n =
|
|
5457
|
-
|
|
5458
|
-
},
|
|
5459
|
-
|
|
5460
|
-
},
|
|
5478
|
+
}, be = (e) => {
|
|
5479
|
+
q(e);
|
|
5480
|
+
let t = ie(e)?.colField || A.value, n = X(e);
|
|
5481
|
+
he(n, t) && ve() && ge(n);
|
|
5482
|
+
}, xe = m(Fo, O(!1)), Se = r(() => !!$(d.filterColDef).filterGroup && xe.value), Ce = () => {
|
|
5483
|
+
se(), K(!0);
|
|
5484
|
+
}, we = () => {
|
|
5461
5485
|
v(() => {
|
|
5462
|
-
|
|
5486
|
+
ce(), f("filter-closed");
|
|
5463
5487
|
});
|
|
5464
|
-
},
|
|
5488
|
+
}, Te = (e) => {
|
|
5465
5489
|
let t = ie(e)?.colField || A.value;
|
|
5466
|
-
return
|
|
5467
|
-
},
|
|
5468
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(N) && I(S).length > 0 ? (E(), o("ul", Ec, [(E(!0), o(t, null, k(I(S), (
|
|
5469
|
-
label: I(
|
|
5470
|
-
showClear: !
|
|
5471
|
-
|
|
5490
|
+
return he(X(e), t);
|
|
5491
|
+
}, Ee = r(() => fe.value ? pe.value.length > 0 : S.value.length > 0);
|
|
5492
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(N) && I(S).length > 0 ? (E(), o("ul", Ec, [(E(!0), o(t, null, k(I(S), (n) => (E(), o(t, { key: `${I(j)}-${n}` }, [I(ae)(n) ? a("", !0) : (E(), o("li", Dc, [u(Tn, {
|
|
5493
|
+
label: I(G)(n) || "",
|
|
5494
|
+
showClear: !e.readOnly && (!Te(n) || I(ve)()),
|
|
5495
|
+
disabled: e.readOnly,
|
|
5496
|
+
onHandleClose: (e) => be(n)
|
|
5472
5497
|
}, null, 8, [
|
|
5473
5498
|
"label",
|
|
5474
5499
|
"showClear",
|
|
5500
|
+
"disabled",
|
|
5475
5501
|
"onHandleClose"
|
|
5476
5502
|
])]))], 64))), 128))])) : a("", !0), u(I(Ya), {
|
|
5477
5503
|
modelValue: I(R),
|
|
5478
5504
|
"onUpdate:modelValue": r[1] ||= (e) => h(R) ? R.value = e : null,
|
|
5505
|
+
readOnly: e.readOnly,
|
|
5479
5506
|
searchInput: I(w),
|
|
5480
5507
|
"onUpdate:searchInput": r[2] ||= (e) => h(w) ? w.value = e : null,
|
|
5481
|
-
selectionState: I(
|
|
5482
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
5508
|
+
selectionState: I(pe),
|
|
5509
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(pe) ? pe.value = e : null,
|
|
5483
5510
|
"data-horizontal-filter-field": I(N) ? void 0 : I(A),
|
|
5484
5511
|
label: I(N) ? "" : I(j),
|
|
5485
5512
|
highlightSearchText: !0,
|
|
5486
|
-
icon: I(N) ? "add-circle" : void 0,
|
|
5513
|
+
icon: I(N) && !e.readOnly ? "add-circle" : void 0,
|
|
5487
5514
|
variant: I(N) ? "ghost" : "secondary",
|
|
5488
|
-
counterPosition: !I(N) &&
|
|
5515
|
+
counterPosition: !I(N) && Ee.value ? void 0 : "none",
|
|
5489
5516
|
showClear: !I(N),
|
|
5490
5517
|
showSearchInput: I(z),
|
|
5491
5518
|
showDropdown: !I(N),
|
|
@@ -5499,24 +5526,24 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5499
5526
|
overflowX: "auto",
|
|
5500
5527
|
width: "auto"
|
|
5501
5528
|
},
|
|
5502
|
-
disableClearIcon: !!I(N),
|
|
5529
|
+
disableClearIcon: !!I(N) || e.readOnly,
|
|
5503
5530
|
disableDropdownIcon: !!I(N),
|
|
5504
5531
|
groupings: ["preferences", "suggestions"],
|
|
5505
5532
|
isLoading: I(C),
|
|
5506
|
-
hasMoreOptions: I(
|
|
5507
|
-
totalOptionCount: I(
|
|
5508
|
-
enableCascadeSelection: I(
|
|
5509
|
-
enableChildExpansion: I(
|
|
5510
|
-
parentSelectsAllChildren: I(
|
|
5511
|
-
countSelectedParents: I(
|
|
5533
|
+
hasMoreOptions: I(J),
|
|
5534
|
+
totalOptionCount: I(de),
|
|
5535
|
+
enableCascadeSelection: I(fe),
|
|
5536
|
+
enableChildExpansion: I(fe),
|
|
5537
|
+
parentSelectsAllChildren: I(fe),
|
|
5538
|
+
countSelectedParents: I(fe),
|
|
5512
5539
|
slotContext: {
|
|
5513
5540
|
gridApi: I(D),
|
|
5514
5541
|
filterColDef: e.filterColDef,
|
|
5515
5542
|
rowsLoading: I(T)
|
|
5516
5543
|
},
|
|
5517
|
-
onDropdownOpen:
|
|
5518
|
-
onDropdownClosed:
|
|
5519
|
-
onSeeMore: I(
|
|
5544
|
+
onDropdownOpen: Ce,
|
|
5545
|
+
onDropdownClosed: we,
|
|
5546
|
+
onSeeMore: I(le)
|
|
5520
5547
|
}, c({
|
|
5521
5548
|
preferences: U(() => [s("div", Oc, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(bi), {
|
|
5522
5549
|
variant: "dark",
|
|
@@ -5540,18 +5567,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5540
5567
|
"use-teleport": !0,
|
|
5541
5568
|
style: { "--max-width": "200px" }
|
|
5542
5569
|
}, c({
|
|
5543
|
-
trigger: U(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(
|
|
5570
|
+
trigger: U(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(re) ? "suggested-title-label" : ""]) }, P(I(ne)), 3)]),
|
|
5544
5571
|
_: 2
|
|
5545
|
-
}, [I(
|
|
5572
|
+
}, [I(re) ? {
|
|
5546
5573
|
name: "content",
|
|
5547
|
-
fn: U(() => [l(P(I(
|
|
5574
|
+
fn: U(() => [l(P(I(re)), 1)]),
|
|
5548
5575
|
key: "0"
|
|
5549
5576
|
} : void 0]), 1024)])]),
|
|
5550
5577
|
_: 2
|
|
5551
5578
|
}, [
|
|
5552
|
-
I(V) ||
|
|
5579
|
+
I(V) || Se.value ? {
|
|
5553
5580
|
name: "header",
|
|
5554
|
-
fn: U((t) => [
|
|
5581
|
+
fn: U((t) => [Se.value ? (E(), i(Tc, {
|
|
5555
5582
|
key: 0,
|
|
5556
5583
|
ref_key: "filterGroupMenuRef",
|
|
5557
5584
|
ref: g,
|
|
@@ -5570,7 +5597,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5570
5597
|
fn: U((e) => [(E(), i(M(I(H)), b(p(e)), null, 16))]),
|
|
5571
5598
|
key: "2"
|
|
5572
5599
|
} : void 0
|
|
5573
|
-
]), 1032, /* @__PURE__ */ "modelValue.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.slotContext.onSeeMore".split("."))]), I(N) ? (E(), o("div", Ac, [I(ee).length > 0 ? (E(), o("div", jc, [s("ul", Mc, [u(I(bi), {
|
|
5600
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.slotContext.onSeeMore".split("."))]), I(N) && !e.readOnly ? (E(), o("div", Ac, [I(ee).length > 0 ? (E(), o("div", jc, [s("ul", Mc, [u(I(bi), {
|
|
5574
5601
|
variant: "dark",
|
|
5575
5602
|
disableInteractive: !0,
|
|
5576
5603
|
position: "bottom-left",
|
|
@@ -5578,11 +5605,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5578
5605
|
"use-teleport": !0,
|
|
5579
5606
|
style: { "--max-width": "200px" }
|
|
5580
5607
|
}, c({
|
|
5581
|
-
trigger: U(() => [s("li", Nc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(
|
|
5608
|
+
trigger: U(() => [s("li", Nc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(re) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
5582
5609
|
_: 2
|
|
5583
|
-
}, [I(
|
|
5610
|
+
}, [I(re) ? {
|
|
5584
5611
|
name: "content",
|
|
5585
|
-
fn: U(() => [l(P(I(
|
|
5612
|
+
fn: U(() => [l(P(I(re)), 1)]),
|
|
5586
5613
|
key: "0"
|
|
5587
5614
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(ee).filter((e) => e !== "" && e != null).slice(0, Pc), (e) => (E(), o("li", {
|
|
5588
5615
|
key: `${I(j)}-${e}-suggest`,
|
|
@@ -5593,15 +5620,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5593
5620
|
}
|
|
5594
5621
|
}, [u(I(Pi), {
|
|
5595
5622
|
disabled: I(C),
|
|
5596
|
-
label: I(
|
|
5597
|
-
onHandleClick: (t) => I(oe)(e, I(
|
|
5623
|
+
label: I(G)(e) || "",
|
|
5624
|
+
onHandleClick: (t) => I(oe)(e, I(W)(I(A), e)?.colField)
|
|
5598
5625
|
}, null, 8, [
|
|
5599
5626
|
"disabled",
|
|
5600
5627
|
"label",
|
|
5601
5628
|
"onHandleClick"
|
|
5602
5629
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
5603
5630
|
}
|
|
5604
|
-
}), [["__scopeId", "data-v-
|
|
5631
|
+
}), [["__scopeId", "data-v-485f9045"]]), Ic = { class: "pv-flex" }, Lc = { class: "pv-flex" }, Rc = { class: "pv-flex pv-space-between pv-stack-8" }, zc = { class: "pv-text-title-lg" }, Bc = {
|
|
5605
5632
|
id: "filter-vertical-drawer",
|
|
5606
5633
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
5607
5634
|
style: { height: "100%" }
|
|
@@ -5632,44 +5659,58 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5632
5659
|
},
|
|
5633
5660
|
focusableColumns: { default: () => [] },
|
|
5634
5661
|
focusText: { default: "Focus" },
|
|
5635
|
-
maxHorizontalFilters: { default: 5 }
|
|
5662
|
+
maxHorizontalFilters: { default: 5 },
|
|
5663
|
+
readOnly: {
|
|
5664
|
+
type: Boolean,
|
|
5665
|
+
default: !1
|
|
5666
|
+
}
|
|
5636
5667
|
},
|
|
5637
5668
|
emits: ["handle-settings-icon"],
|
|
5638
5669
|
setup(e) {
|
|
5639
|
-
let n = m(po, O(null)), c = m(go, O([])), d = m(ho, O(null)), f = m(Fo, O(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, filterValuesMap: x, fetchFilterValues: S, filterValuesLoadingStatus: C } = _c(), w = O(!1), T = O(!1), D = O(""), A = r(() => c.value.flatMap((e) => Ds(e))), j = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), M =
|
|
5670
|
+
let n = m(po, O(null)), c = m(go, O([])), d = m(ho, O(null)), f = m(Fo, O(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, filterValuesMap: x, fetchFilterValues: S, filterValuesLoadingStatus: C } = _c(), w = O(!1), T = O(!1), D = O(""), A = r(() => c.value.flatMap((e) => Ds(e))), j = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), M = (e) => {
|
|
5671
|
+
let t = _.value;
|
|
5672
|
+
if (!t) return !1;
|
|
5673
|
+
let n = As(e) ? Ds(e) : [e.field || ""];
|
|
5674
|
+
if (f.value) {
|
|
5675
|
+
let e = /* @__PURE__ */ new Set();
|
|
5676
|
+
return R(t, e), n.some((t) => e.has(t));
|
|
5677
|
+
}
|
|
5678
|
+
let r = t;
|
|
5679
|
+
return n.some((e) => !!r[e]);
|
|
5680
|
+
}, N = r(() => c.value.filter((e) => Ys(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "") && (!p.readOnly || M(e))).sort((e, t) => {
|
|
5640
5681
|
let n = As(e), r = As(t);
|
|
5641
5682
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5642
|
-
})),
|
|
5683
|
+
})), F = r(() => N.value), ee = r(() => {
|
|
5643
5684
|
let e = D.value?.trim().toLowerCase() || "";
|
|
5644
|
-
return !e || e === "" ?
|
|
5685
|
+
return !e || e === "" ? F.value : c.value.filter((t) => {
|
|
5645
5686
|
let n = t.headerName?.toLowerCase() || t.field?.toLowerCase();
|
|
5646
5687
|
return n ? n.includes(e) : !1;
|
|
5647
5688
|
});
|
|
5648
|
-
}),
|
|
5649
|
-
let e = [...
|
|
5689
|
+
}), L = r(() => {
|
|
5690
|
+
let e = [...N.value].slice(0, p.maxHorizontalFilters);
|
|
5650
5691
|
return d.value ? [...e.slice(0, p.maxHorizontalFilters - 1), d.value] : e;
|
|
5651
|
-
}),
|
|
5692
|
+
}), R = (e, t) => {
|
|
5652
5693
|
if (!e || typeof e != "object") return;
|
|
5653
5694
|
let n = e;
|
|
5654
5695
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
5655
5696
|
t.add(n.colId);
|
|
5656
5697
|
return;
|
|
5657
5698
|
}
|
|
5658
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
5659
|
-
},
|
|
5699
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => R(e, t));
|
|
5700
|
+
}, z = r(() => {
|
|
5660
5701
|
let e = _.value;
|
|
5661
5702
|
if (f.value && n.value) {
|
|
5662
5703
|
let t = /* @__PURE__ */ new Set();
|
|
5663
|
-
return
|
|
5704
|
+
return R(e, t), t.size;
|
|
5664
5705
|
}
|
|
5665
5706
|
let t = _.value || {};
|
|
5666
5707
|
return Object.keys(t).length;
|
|
5667
|
-
}),
|
|
5668
|
-
|
|
5669
|
-
},
|
|
5708
|
+
}), te = O(!1), B = () => {
|
|
5709
|
+
te.value = !0;
|
|
5710
|
+
}, V = () => {
|
|
5670
5711
|
if (n.value) {
|
|
5671
|
-
|
|
5672
|
-
for (let e of
|
|
5712
|
+
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
5713
|
+
for (let e of F.value) {
|
|
5673
5714
|
let t = e.field;
|
|
5674
5715
|
if (!t) continue;
|
|
5675
5716
|
let r = (x.value[t] || []).length > 0, i = C.value[t] === !0;
|
|
@@ -5680,61 +5721,63 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5680
5721
|
});
|
|
5681
5722
|
}
|
|
5682
5723
|
}
|
|
5683
|
-
}, { clearAllFocuses:
|
|
5684
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5685
|
-
},
|
|
5724
|
+
}, { clearAllFocuses: H } = es(), ne = () => {
|
|
5725
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, H(), T.value = !1);
|
|
5726
|
+
}, re = () => {
|
|
5686
5727
|
w.value = !1, D.value = "";
|
|
5687
5728
|
}, W = () => {
|
|
5688
|
-
b(), g.value = null,
|
|
5729
|
+
b(), g.value = null, re();
|
|
5689
5730
|
}, G = () => {
|
|
5690
|
-
b(),
|
|
5731
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, re();
|
|
5691
5732
|
};
|
|
5692
5733
|
return (e, r) => (E(), o(t, null, [s("div", Ic, [
|
|
5693
|
-
(E(!0), o(t, null, k(
|
|
5734
|
+
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(Fc, {
|
|
5694
5735
|
key: 0,
|
|
5695
5736
|
"enable-focus-view": p.enableFocusView,
|
|
5696
5737
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5697
5738
|
"focus-text": p.focusText,
|
|
5698
5739
|
filterColDef: s,
|
|
5740
|
+
"read-only": p.readOnly,
|
|
5699
5741
|
onHandleSettingsIcon: r[0] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5700
5742
|
}, null, 8, [
|
|
5701
5743
|
"enable-focus-view",
|
|
5702
5744
|
"display-preferences-icon",
|
|
5703
5745
|
"focus-text",
|
|
5704
|
-
"filterColDef"
|
|
5746
|
+
"filterColDef",
|
|
5747
|
+
"read-only"
|
|
5705
5748
|
])) : a("", !0)], 64))), 128)),
|
|
5706
5749
|
s("div", Lc, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
5707
5750
|
key: 0,
|
|
5708
5751
|
label: "All Filters",
|
|
5709
|
-
onClick:
|
|
5752
|
+
onClick: V,
|
|
5710
5753
|
variant: "ghost",
|
|
5711
5754
|
"left-icon": "filter"
|
|
5712
|
-
})) : a("", !0),
|
|
5755
|
+
})) : a("", !0), z.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
5713
5756
|
key: 1,
|
|
5714
5757
|
class: "pv-button-ghost",
|
|
5715
5758
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5716
5759
|
}, [
|
|
5717
5760
|
u(I(ln), { name: "close" }),
|
|
5718
|
-
r[
|
|
5719
|
-
|
|
5761
|
+
r[13] ||= l(" Clear All Filters ", -1),
|
|
5762
|
+
z.value > 0 ? (E(), i(I(pn), {
|
|
5720
5763
|
key: 0,
|
|
5721
|
-
value:
|
|
5764
|
+
value: z.value,
|
|
5722
5765
|
variant: "tertiary"
|
|
5723
5766
|
}, null, 8, ["value"])) : a("", !0)
|
|
5724
5767
|
])) : a("", !0)]),
|
|
5725
5768
|
p.enableVerticalPanel ? (E(), i(I(Ji), {
|
|
5726
5769
|
key: 0,
|
|
5727
5770
|
modelValue: w.value,
|
|
5728
|
-
"onUpdate:modelValue": r[
|
|
5771
|
+
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
5729
5772
|
class: "pv-drawer pv-surface",
|
|
5730
5773
|
"close-on-click-outside": !0,
|
|
5731
|
-
onClickOutside: r[
|
|
5774
|
+
onClickOutside: r[10] ||= (e) => G(),
|
|
5732
5775
|
style: {
|
|
5733
5776
|
"max-width": "450px",
|
|
5734
5777
|
"z-index": "10"
|
|
5735
5778
|
}
|
|
5736
5779
|
}, {
|
|
5737
|
-
header: U(() => [s("div", Rc, [s("p", zc, "All Filters (" + P(
|
|
5780
|
+
header: U(() => [s("div", Rc, [s("p", zc, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
5738
5781
|
class: "pv-button-ghost",
|
|
5739
5782
|
"aria-label": "Close",
|
|
5740
5783
|
onClick: r[2] ||= (e) => W()
|
|
@@ -5743,14 +5786,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5743
5786
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5744
5787
|
placeholder: "Search Filters"
|
|
5745
5788
|
}, null, 8, ["modelValue"])]),
|
|
5746
|
-
footer: U(() => [s("div", Gc, [
|
|
5789
|
+
footer: U(() => [s("div", Gc, [p.readOnly ? (E(), i(I(gn), {
|
|
5790
|
+
key: 1,
|
|
5791
|
+
variant: "ghost",
|
|
5792
|
+
label: "Close",
|
|
5793
|
+
onClick: r[8] ||= (e) => W()
|
|
5794
|
+
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
5747
5795
|
class: "pv-button-ghost",
|
|
5748
|
-
onClick: r[5] ||= (e) =>
|
|
5796
|
+
onClick: r[5] ||= (e) => ne()
|
|
5749
5797
|
}, "Clear All"), s("div", Kc, [u(I(gn), {
|
|
5750
5798
|
variant: "ghost",
|
|
5751
5799
|
label: "Cancel",
|
|
5752
5800
|
onClick: r[6] ||= (e) => W()
|
|
5753
|
-
}),
|
|
5801
|
+
}), te.value ? (E(), i(I(gn), {
|
|
5754
5802
|
key: 0,
|
|
5755
5803
|
variant: "primary",
|
|
5756
5804
|
label: "Apply",
|
|
@@ -5760,10 +5808,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5760
5808
|
variant: "primary",
|
|
5761
5809
|
label: "No Changes",
|
|
5762
5810
|
disabled: ""
|
|
5763
|
-
}))])])]),
|
|
5764
|
-
default: U(() => [s("div", Bc, [s("div", Vc, [(E(!0), o(t, null, k(
|
|
5811
|
+
}))])], 64))])]),
|
|
5812
|
+
default: U(() => [s("div", Bc, [s("div", Vc, [(E(!0), o(t, null, k(ee.value, (t, c) => (E(), o("div", {
|
|
5765
5813
|
key: t.field,
|
|
5766
|
-
class: y([{ "pv-border-bottom": c <
|
|
5814
|
+
class: y([{ "pv-border-bottom": c < ee.value.length - 1 }, "pv-stack-12"])
|
|
5767
5815
|
}, [s("details", Hc, [s("summary", Uc, [s("span", Wc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(Fc, {
|
|
5768
5816
|
key: 0,
|
|
5769
5817
|
"filter-style": "vertical",
|
|
@@ -5771,33 +5819,35 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5771
5819
|
filterColDef: t,
|
|
5772
5820
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5773
5821
|
"focus-text": p.focusText,
|
|
5774
|
-
|
|
5822
|
+
"read-only": p.readOnly,
|
|
5823
|
+
onFilterSelectionChanged: B,
|
|
5775
5824
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5776
5825
|
}, null, 8, [
|
|
5777
5826
|
"enable-focus-view",
|
|
5778
5827
|
"filterColDef",
|
|
5779
5828
|
"display-preferences-icon",
|
|
5780
|
-
"focus-text"
|
|
5829
|
+
"focus-text",
|
|
5830
|
+
"read-only"
|
|
5781
5831
|
])) : a("", !0)])])], 2))), 128))])])]),
|
|
5782
5832
|
_: 1
|
|
5783
5833
|
}, 8, ["modelValue"])) : a("", !0)
|
|
5784
5834
|
]), u(I(Ai), {
|
|
5785
5835
|
modelValue: T.value,
|
|
5786
|
-
"onUpdate:modelValue": r[
|
|
5836
|
+
"onUpdate:modelValue": r[12] ||= (e) => T.value = e,
|
|
5787
5837
|
header: "Clear All Filters",
|
|
5788
5838
|
style: { top: "50%" }
|
|
5789
5839
|
}, {
|
|
5790
|
-
body: U(() => [...r[
|
|
5840
|
+
body: U(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5791
5841
|
footer: U(() => [s("div", qc, [u(I(gn), {
|
|
5792
5842
|
label: "Cancel",
|
|
5793
5843
|
variant: "secondary",
|
|
5794
5844
|
size: "lg",
|
|
5795
|
-
onClick: r[
|
|
5845
|
+
onClick: r[11] ||= (e) => T.value = !1
|
|
5796
5846
|
}), u(I(gn), {
|
|
5797
5847
|
label: "Clear All Filters",
|
|
5798
5848
|
variant: "primary",
|
|
5799
5849
|
size: "lg",
|
|
5800
|
-
onClick:
|
|
5850
|
+
onClick: ne
|
|
5801
5851
|
})])]),
|
|
5802
5852
|
_: 1
|
|
5803
5853
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5880,7 +5930,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5880
5930
|
variant: "ghost",
|
|
5881
5931
|
size: "lg",
|
|
5882
5932
|
label: p.value || "",
|
|
5883
|
-
onClick: t[1] ||=
|
|
5933
|
+
onClick: t[1] ||= re(() => {}, ["stop"])
|
|
5884
5934
|
}, null, 8, [
|
|
5885
5935
|
"modelValue",
|
|
5886
5936
|
"options",
|
|
@@ -5900,7 +5950,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5900
5950
|
variant: "ghost",
|
|
5901
5951
|
"left-icon": "menu",
|
|
5902
5952
|
ariaLabel: "Column menu",
|
|
5903
|
-
onClick:
|
|
5953
|
+
onClick: re(N, ["stop", "prevent"])
|
|
5904
5954
|
})], 4)])) : a("", !0)], 4));
|
|
5905
5955
|
}
|
|
5906
5956
|
}), [["__scopeId", "data-v-385ad98a"]]), Qc = {
|
|
@@ -5918,13 +5968,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5918
5968
|
rangeSelectionBorderStyle: "solid",
|
|
5919
5969
|
menuBackgroundColor: "white",
|
|
5920
5970
|
accentColor: "#36C5BA"
|
|
5921
|
-
}, $c =
|
|
5971
|
+
}, $c = Se.withParams({
|
|
5922
5972
|
...Qc,
|
|
5923
5973
|
headerRowBorder: !0,
|
|
5924
5974
|
rowHoverColor: "#F7F8F8",
|
|
5925
5975
|
wrapperBorder: !0,
|
|
5926
5976
|
wrapperBorderRadius: "8px"
|
|
5927
|
-
}), el =
|
|
5977
|
+
}), el = Se.withParams({
|
|
5928
5978
|
...Qc,
|
|
5929
5979
|
headerRowBorder: !1,
|
|
5930
5980
|
rowHoverColor: "transparent",
|
|
@@ -5935,7 +5985,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5935
5985
|
rowHeight: "50px"
|
|
5936
5986
|
}), tl = {
|
|
5937
5987
|
"pv-data-table-base": $c,
|
|
5938
|
-
"pv-data-table-grouped":
|
|
5988
|
+
"pv-data-table-grouped": Se.withParams({
|
|
5939
5989
|
...Qc,
|
|
5940
5990
|
headerRowBorder: !0,
|
|
5941
5991
|
rowHoverColor: "#F7F8F8",
|
|
@@ -5969,7 +6019,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5969
6019
|
class: "pv-icon-24"
|
|
5970
6020
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", rl, [s("button", {
|
|
5971
6021
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
5972
|
-
onClick:
|
|
6022
|
+
onClick: re(i, ["prevent"]),
|
|
5973
6023
|
disabled: r.value
|
|
5974
6024
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, il)])]));
|
|
5975
6025
|
}
|
|
@@ -5980,7 +6030,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5980
6030
|
__name: "PaginationPanel",
|
|
5981
6031
|
props: { panelSize: { default: "xl" } },
|
|
5982
6032
|
setup(e) {
|
|
5983
|
-
|
|
6033
|
+
pe.registerModules([J]);
|
|
5984
6034
|
let n = m(po, O(null)), a = m(Co, O(1)), s = m(wo, O(0)), c = e, l = r(() => {
|
|
5985
6035
|
let e = s.value, t = a.value;
|
|
5986
6036
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -6241,6 +6291,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6241
6291
|
tableSearchPlaceholder: { default: "Search" },
|
|
6242
6292
|
tableSearchStyle: { default: "text" },
|
|
6243
6293
|
maxHorizontalFilters: { default: 5 },
|
|
6294
|
+
filterPanelReadOnly: {
|
|
6295
|
+
type: Boolean,
|
|
6296
|
+
default: !1
|
|
6297
|
+
},
|
|
6244
6298
|
maintainColumnOrder: {
|
|
6245
6299
|
type: Boolean,
|
|
6246
6300
|
default: !0
|
|
@@ -6320,54 +6374,54 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6320
6374
|
],
|
|
6321
6375
|
setup(e, { expose: t, emit: c }) {
|
|
6322
6376
|
let d = [
|
|
6377
|
+
Ce,
|
|
6323
6378
|
we,
|
|
6379
|
+
ae,
|
|
6324
6380
|
Te,
|
|
6325
|
-
K,
|
|
6326
|
-
Ee,
|
|
6327
6381
|
oe,
|
|
6382
|
+
Ee,
|
|
6383
|
+
q,
|
|
6328
6384
|
De,
|
|
6329
|
-
se,
|
|
6330
6385
|
Oe,
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
J,
|
|
6337
|
-
Le,
|
|
6386
|
+
se,
|
|
6387
|
+
le,
|
|
6388
|
+
de,
|
|
6389
|
+
Ae,
|
|
6390
|
+
ye,
|
|
6338
6391
|
Ie,
|
|
6339
|
-
Re,
|
|
6340
|
-
xe,
|
|
6341
|
-
Me,
|
|
6342
|
-
ve,
|
|
6343
|
-
Pe,
|
|
6344
6392
|
Fe,
|
|
6345
|
-
|
|
6346
|
-
ge,
|
|
6347
|
-
_e,
|
|
6348
|
-
ze,
|
|
6393
|
+
Le,
|
|
6349
6394
|
be,
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6395
|
+
je,
|
|
6396
|
+
_e,
|
|
6397
|
+
Ne,
|
|
6398
|
+
Pe,
|
|
6399
|
+
ve,
|
|
6354
6400
|
he,
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6401
|
+
ge,
|
|
6402
|
+
Re,
|
|
6403
|
+
X,
|
|
6404
|
+
xe,
|
|
6405
|
+
K,
|
|
6406
|
+
Y,
|
|
6407
|
+
fe,
|
|
6408
|
+
me,
|
|
6409
|
+
ue,
|
|
6410
|
+
ce,
|
|
6411
|
+
Me
|
|
6358
6412
|
];
|
|
6359
|
-
|
|
6413
|
+
ke.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-084011}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{16_August_2026}____[v3]_[01]_MTc4NjgzNDgwMDAwMA==3bfdb2557ede1aa3533ccbd05785addb");
|
|
6360
6414
|
let f = e;
|
|
6361
|
-
f.debugMode && d.push(
|
|
6415
|
+
f.debugMode && d.push(ze);
|
|
6362
6416
|
let p = r(() => f.layout ? {} : {
|
|
6363
6417
|
height: f.containerHeight,
|
|
6364
6418
|
minHeight: f.containerMinHeight
|
|
6365
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
6366
|
-
if (!
|
|
6367
|
-
e.success({ rowData: [] }),
|
|
6419
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : J.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme : tl[g.value]), T = c, k = O(!1), j = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6420
|
+
if (!Ve.value) {
|
|
6421
|
+
e.success({ rowData: [] }), pe.value = !0;
|
|
6368
6422
|
return;
|
|
6369
6423
|
}
|
|
6370
|
-
|
|
6424
|
+
Se.value = !0;
|
|
6371
6425
|
let t = e.success, n = e.fail, r = e.request.groupKeys?.length || 0, i = e.request.rowGroupCols?.length || 0, a = r === i, o = !1, s = Xe.value;
|
|
6372
6426
|
if (i > 0 && r === 0) {
|
|
6373
6427
|
let t = e.request.rowGroupCols[0].id;
|
|
@@ -6434,7 +6488,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6434
6488
|
e.request.filterModel = Js(B, t, s);
|
|
6435
6489
|
}
|
|
6436
6490
|
e.success = (e) => {
|
|
6437
|
-
if (
|
|
6491
|
+
if (Se.value = !1, f.enableFocusView && ot.value.length > 0 && at.value && e.rowData) {
|
|
6438
6492
|
let n = xs(e.rowData, at.value, ot.value);
|
|
6439
6493
|
if (n) {
|
|
6440
6494
|
e.rowData = n, t(e);
|
|
@@ -6443,11 +6497,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6443
6497
|
}
|
|
6444
6498
|
t(e);
|
|
6445
6499
|
}, e.fail = () => {
|
|
6446
|
-
|
|
6500
|
+
Se.value = !1, n();
|
|
6447
6501
|
}, f.serverSideRowHandler?.(e);
|
|
6448
6502
|
} } : null, M = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6449
6503
|
let t = [], n = { ...Ye.value };
|
|
6450
|
-
t = !
|
|
6504
|
+
t = !pe.value && W ? cc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await et(e.colDef, {
|
|
6451
6505
|
api: e.api,
|
|
6452
6506
|
filterModel: n,
|
|
6453
6507
|
useStaged: !1
|
|
@@ -6475,7 +6529,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6475
6529
|
component: Fs,
|
|
6476
6530
|
params: e
|
|
6477
6531
|
};
|
|
6478
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
6532
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && J.value.length === 0) {
|
|
6479
6533
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6480
6534
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6481
6535
|
component: dl,
|
|
@@ -6496,7 +6550,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6496
6550
|
let t = e.column?.getColId();
|
|
6497
6551
|
if (e.column && vt(e.column) && (t = ut.value?.getColId() || ""), !Lt(t)) {
|
|
6498
6552
|
let n = e.api.getColumn(t)?.getColDef();
|
|
6499
|
-
n && (
|
|
6553
|
+
n && (G.value = n, v(() => {
|
|
6500
6554
|
Lt(t);
|
|
6501
6555
|
}));
|
|
6502
6556
|
}
|
|
@@ -6520,15 +6574,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6520
6574
|
j && M && Ys(e) && (t = Xs(e, M));
|
|
6521
6575
|
let n = e.context;
|
|
6522
6576
|
return n && (t = te(t, n)), t;
|
|
6523
|
-
}).filter((e) => e != null) || [],
|
|
6524
|
-
for (let e of B) for (let t of Ds(e))
|
|
6525
|
-
let
|
|
6526
|
-
if (
|
|
6527
|
-
let e =
|
|
6577
|
+
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6578
|
+
for (let e of B) for (let t of Ds(e)) re.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6579
|
+
let W = Hs(f.initialGridState, B, f.enableAdvancedFilter), G = O(null), J = O([]), pe = m(xo, O(!1)), Se = O(!1), Be = r(() => {
|
|
6580
|
+
if (J.value.length > 0) {
|
|
6581
|
+
let e = J.value[0], t = B.find((t) => t.field === e), n = Ye.value, r = !n;
|
|
6528
6582
|
if (!r && pc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6529
6583
|
}
|
|
6530
6584
|
return null;
|
|
6531
|
-
}),
|
|
6585
|
+
}), Ve = r(() => We.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : Be.value === null), He = r(() => Be.value ? `Select at least one value for "${Be.value}" to view data.` : "Select a filter to view data."), Z = N(null), Ue = O([]), We = f.filterStore || _c(), Ge = m(uo, null), Je = Ge || $o(null, f.allFieldsAreFocusable), Ye = We.filterModel, Xe = We.tableSearchFilterModel, Ze = We.filterValueMap, Qe = We.filterValuesMap, $e = We.filterValueSelectedMetadataMap, et = We.fetchFilterValues, nt = We.filterStoreHandler, rt = We.tableSearchHandler;
|
|
6532
6586
|
nt.value = f.filterValuesSetHandler, rt.value = f.tableSearchHandler, Ze.value = f.initialFilterValueMap || {}, Qe.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), $e.value = f.initialFilterValueSelectedMetadataMap || {}, We.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, We.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, Ke([Ze, $e], () => {
|
|
6533
6587
|
T("filter-metadata-changed", {
|
|
6534
6588
|
filterValueMap: Ze.value,
|
|
@@ -6539,7 +6593,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6539
6593
|
debounce: 250
|
|
6540
6594
|
});
|
|
6541
6595
|
let it = O(null), at = r(() => Je?.computedFocusType.value || null), ot = r(() => Je?.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);
|
|
6542
|
-
D(lo, We), D(uo, Je), D(fo,
|
|
6596
|
+
D(lo, We), D(uo, Je), D(fo, Ue), D(po, Z), D(mo, it), D(ho, G), D(go, st), D(_o, ct), D(vo, J), D(yo, ut), D(bo, dt), D(xo, pe), D(So, Se), D(Co, ft), D(wo, pt), D(Fo, r(() => f.enableAdvancedFilter));
|
|
6543
6597
|
let mt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ot.value.length && !at.value ? f.rowData : xs(f.rowData, at.value, ot.value));
|
|
6544
6598
|
H(() => ot.value, (e) => {
|
|
6545
6599
|
T("focus-update", {
|
|
@@ -6547,27 +6601,27 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6547
6601
|
focuses: e
|
|
6548
6602
|
});
|
|
6549
6603
|
}), H(k, (e) => {
|
|
6550
|
-
if (!
|
|
6604
|
+
if (!Z.value) return;
|
|
6551
6605
|
let t = B.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
6552
|
-
t.length > 0 &&
|
|
6606
|
+
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
6553
6607
|
});
|
|
6554
6608
|
let ht = (e) => {
|
|
6555
|
-
|
|
6556
|
-
let t =
|
|
6557
|
-
if (f.hideAllRowGroupedColumns &&
|
|
6609
|
+
Z.value = e.api;
|
|
6610
|
+
let t = J.value.find((e) => !B.find((t) => t.field === e)?.hide), n = !t && J.value.length > 0 ? B.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
6611
|
+
if (f.hideAllRowGroupedColumns && J.value.forEach((e) => i.push(e)), r) {
|
|
6558
6612
|
let t = e.api.getColumn(r);
|
|
6559
6613
|
ut.value = t, i.push(r), Vt(t?.getColDef());
|
|
6560
6614
|
}
|
|
6561
|
-
|
|
6615
|
+
W ? Wt(W) : Ye.value && wt(Ye.value), Xe.value && Tt(Xe.value), e.api.setColumnsVisible([...i], !1), it.value = e.api.getAllGridColumns(), ft.value = e.api.paginationGetCurrentPage() + 1, pt.value = e.api.paginationGetTotalPages(), T("grid-ready", e);
|
|
6562
6616
|
}, gt = (e) => {
|
|
6563
|
-
if (
|
|
6617
|
+
if (Z.value) {
|
|
6564
6618
|
let t = Ct();
|
|
6565
6619
|
rc(Ye.value, t) || (Ye.value = t, T("filter-changed", e));
|
|
6566
6620
|
}
|
|
6567
6621
|
}, _t = (e) => {
|
|
6568
|
-
|
|
6622
|
+
Ue.value = e.api?.getState()?.sort?.sortModel || [], pe.value && T("sort-changed", e);
|
|
6569
6623
|
}, vt = (e) => e.getColId() && e.getColId().includes("ag-Grid-AutoColumn"), yt = O(!1), bt = async (e) => {
|
|
6570
|
-
if (!
|
|
6624
|
+
if (!Z.value) {
|
|
6571
6625
|
console.error("Grid API not available");
|
|
6572
6626
|
return;
|
|
6573
6627
|
}
|
|
@@ -6576,13 +6630,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6576
6630
|
route: [],
|
|
6577
6631
|
purge: !0
|
|
6578
6632
|
};
|
|
6579
|
-
|
|
6633
|
+
Z.value.refreshServerSide(t);
|
|
6580
6634
|
}, xt = () => $e.value, St = async () => {
|
|
6581
|
-
if (yt.value = !0, !
|
|
6635
|
+
if (yt.value = !0, !Z.value) return console.error("Grid API not available"), yt.value = !1, null;
|
|
6582
6636
|
try {
|
|
6583
|
-
let e = f.serverSideCsvHandler, t =
|
|
6637
|
+
let e = f.serverSideCsvHandler, t = Z.value?.getState(), n = {
|
|
6584
6638
|
rowGroupCols: [],
|
|
6585
|
-
valueCols:
|
|
6639
|
+
valueCols: Z.value?.getValueColumns().map((e) => ({
|
|
6586
6640
|
id: e.getId(),
|
|
6587
6641
|
field: e.getColDef().field,
|
|
6588
6642
|
aggFunc: typeof e.getColDef().aggFunc == "string" ? e.getColDef().aggFunc : void 0,
|
|
@@ -6600,7 +6654,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6600
6654
|
let e = {
|
|
6601
6655
|
request: n,
|
|
6602
6656
|
parentNode: {},
|
|
6603
|
-
api:
|
|
6657
|
+
api: Z.value,
|
|
6604
6658
|
context: void 0,
|
|
6605
6659
|
success: () => {},
|
|
6606
6660
|
fail: () => {}
|
|
@@ -6609,13 +6663,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6609
6663
|
}
|
|
6610
6664
|
let r = f.serverSideRowHandler;
|
|
6611
6665
|
return r ? await new Promise((e, t) => {
|
|
6612
|
-
|
|
6666
|
+
Z.value?.getState(), r({
|
|
6613
6667
|
request: n,
|
|
6614
6668
|
parentNode: {},
|
|
6615
|
-
api:
|
|
6669
|
+
api: Z.value,
|
|
6616
6670
|
context: void 0,
|
|
6617
6671
|
success: (t) => {
|
|
6618
|
-
let n =
|
|
6672
|
+
let n = Z.value?.getRowGroupColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], r = Z.value?.getAllDisplayedColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], i = Z.value?.getValueColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], a = Array.from(new Set([
|
|
6619
6673
|
...n,
|
|
6620
6674
|
...r,
|
|
6621
6675
|
...i
|
|
@@ -6632,21 +6686,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6632
6686
|
yt.value = !1, t("CSV export failed.");
|
|
6633
6687
|
}
|
|
6634
6688
|
}, !0);
|
|
6635
|
-
}) : (console.warn("Client-side export does not return CSV string"), yt.value = !1,
|
|
6689
|
+
}) : (console.warn("Client-side export does not return CSV string"), yt.value = !1, Z.value.exportDataAsCsv(), null);
|
|
6636
6690
|
} catch (e) {
|
|
6637
6691
|
return console.error("CSV export failed", e), yt.value = !1, null;
|
|
6638
6692
|
}
|
|
6639
|
-
}, Ct = () =>
|
|
6640
|
-
if (!
|
|
6693
|
+
}, Ct = () => Z.value ? f.enableAdvancedFilter ? Z.value.getAdvancedFilterModel() : Z.value.getFilterModel() : Ye.value, wt = (e) => {
|
|
6694
|
+
if (!Z.value) return !1;
|
|
6641
6695
|
if (f.enableAdvancedFilter) {
|
|
6642
6696
|
let t = e && pc(e) ? Vs(e) : e;
|
|
6643
|
-
|
|
6697
|
+
Z.value.setAdvancedFilterModel(t);
|
|
6644
6698
|
} else {
|
|
6645
6699
|
if (e && !pc(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
6646
|
-
|
|
6700
|
+
Z.value.setFilterModel(e);
|
|
6647
6701
|
}
|
|
6648
6702
|
return !0;
|
|
6649
|
-
}, Tt = (e) => (Xe.value = e,
|
|
6703
|
+
}, Tt = (e) => (Xe.value = e, Z.value ? (Z.value.onFilterChanged(), j && Z.value.refreshServerSide({ purge: !0 }), !0) : !1), At = {
|
|
6650
6704
|
getFilterModel: Ct,
|
|
6651
6705
|
refreshData: bt,
|
|
6652
6706
|
setFilterModel: wt,
|
|
@@ -6660,7 +6714,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6660
6714
|
getFilterValueSelectedMetadataMap: xt,
|
|
6661
6715
|
availableRowGroupColumns: ct,
|
|
6662
6716
|
availableAggFuncColumns: lt,
|
|
6663
|
-
rowGroupColumnFields:
|
|
6717
|
+
rowGroupColumnFields: J,
|
|
6664
6718
|
getPvFilterModel: Ct,
|
|
6665
6719
|
setPvFilterModel: wt
|
|
6666
6720
|
});
|
|
@@ -6673,11 +6727,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6673
6727
|
}
|
|
6674
6728
|
i ? (ut.value = i, Vt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (ut.value = null, Vt(null));
|
|
6675
6729
|
let a = t?.getColId();
|
|
6676
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
6677
|
-
let e =
|
|
6730
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), J.value = [...n].map((e) => e.getColId()), f.enableFocusView && !Ge) {
|
|
6731
|
+
let e = J.value.length > 0 ? J.value[0] : null;
|
|
6678
6732
|
Je.setFocusType(e);
|
|
6679
6733
|
}
|
|
6680
|
-
|
|
6734
|
+
pe.value && T("column-row-group-changed", e);
|
|
6681
6735
|
});
|
|
6682
6736
|
}, Mt = (e) => {
|
|
6683
6737
|
let t = e.column?.getColId() || "";
|
|
@@ -6688,7 +6742,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6688
6742
|
}, Nt = (e) => {
|
|
6689
6743
|
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), T("row-clicked", e);
|
|
6690
6744
|
}, Pt = (e) => {
|
|
6691
|
-
e.finished && (it.value = e.api.getAllGridColumns()),
|
|
6745
|
+
e.finished && (it.value = e.api.getAllGridColumns()), pe.value && T("column-moved", e);
|
|
6692
6746
|
}, Ft = (e) => {
|
|
6693
6747
|
e.api && (ft.value = e.api.paginationGetCurrentPage() + 1, pt.value = e.api.paginationGetTotalPages());
|
|
6694
6748
|
}, It = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, Lt = (e) => {
|
|
@@ -6715,7 +6769,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6715
6769
|
displayCount: f.displayGroupCount,
|
|
6716
6770
|
formattedValue: e.valueFormatted,
|
|
6717
6771
|
rowNode: e.node,
|
|
6718
|
-
api:
|
|
6772
|
+
api: Z.value,
|
|
6719
6773
|
focusText: f.focusText,
|
|
6720
6774
|
cellParams: e
|
|
6721
6775
|
})
|
|
@@ -6756,13 +6810,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6756
6810
|
"rowUnGroup"
|
|
6757
6811
|
], n = e.column && vt(e.column) ? ut.value : e.column;
|
|
6758
6812
|
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, z), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6759
|
-
},
|
|
6813
|
+
}, W && (Ye.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, J.value = W.rowGroup?.groupColIds || []);
|
|
6760
6814
|
});
|
|
6761
6815
|
let Wt = (e) => {
|
|
6762
|
-
let t =
|
|
6816
|
+
let t = Z.value;
|
|
6763
6817
|
if (!t) return;
|
|
6764
6818
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6765
|
-
n && !rc(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r,
|
|
6819
|
+
n && !rc(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r, J.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6766
6820
|
};
|
|
6767
6821
|
H(() => f.initialGridState, () => {
|
|
6768
6822
|
if (f.initialGridState) {
|
|
@@ -6771,8 +6825,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6771
6825
|
}
|
|
6772
6826
|
}, { deep: !0 });
|
|
6773
6827
|
let Gt = (e) => {
|
|
6774
|
-
|
|
6775
|
-
}, Kt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
6828
|
+
pe.value = !0, T("first-data-rendered", e);
|
|
6829
|
+
}, Kt = (e) => j ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === J.value.length - 2 : !1, qt = r(() => {
|
|
6776
6830
|
if (!j) return f.groupDefaultExpanded;
|
|
6777
6831
|
}), Jt = O(null), Yt = O(null);
|
|
6778
6832
|
return (t, r) => (E(), o("div", {
|
|
@@ -6810,14 +6864,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6810
6864
|
"focusable-columns": e.focusableColumns,
|
|
6811
6865
|
"focus-text": e.focusText,
|
|
6812
6866
|
onHandleSettingsIcon: r[1] ||= (e) => t.$emit("handle-settings-icon", e),
|
|
6813
|
-
"max-horizontal-filters": f.maxHorizontalFilters
|
|
6867
|
+
"max-horizontal-filters": f.maxHorizontalFilters,
|
|
6868
|
+
"read-only": f.filterPanelReadOnly
|
|
6814
6869
|
}, null, 8, [
|
|
6815
6870
|
"enable-focus-view",
|
|
6816
6871
|
"enable-vertical-panel",
|
|
6817
6872
|
"display-preferences-icon",
|
|
6818
6873
|
"focusable-columns",
|
|
6819
6874
|
"focus-text",
|
|
6820
|
-
"max-horizontal-filters"
|
|
6875
|
+
"max-horizontal-filters",
|
|
6876
|
+
"read-only"
|
|
6821
6877
|
])) : a("", !0)], 8, ["to", "disabled"])), s("div", vl, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Go, {
|
|
6822
6878
|
key: 0,
|
|
6823
6879
|
rowGroupLimit: e.rowGroupLimit,
|
|
@@ -6837,7 +6893,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6837
6893
|
}, [s("div", yl, [e.enableTableSearch ? (E(), i(fl, {
|
|
6838
6894
|
key: 0,
|
|
6839
6895
|
placeholder: e.tableSearchPlaceholder,
|
|
6840
|
-
disabled: !
|
|
6896
|
+
disabled: !Ve.value,
|
|
6841
6897
|
"search-style": e.tableSearchStyle
|
|
6842
6898
|
}, null, 8, [
|
|
6843
6899
|
"placeholder",
|
|
@@ -6890,7 +6946,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6890
6946
|
getRowStyle: Ht,
|
|
6891
6947
|
groupDefaultExpanded: qt.value,
|
|
6892
6948
|
groupDisplayType: "singleColumn",
|
|
6893
|
-
initialState: I(
|
|
6949
|
+
initialState: I(W) || void 0,
|
|
6894
6950
|
isGroupOpenByDefault: I(j) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
6895
6951
|
isServerSideGroupOpenByDefault: Kt,
|
|
6896
6952
|
includeHiddenColumnsInAdvancedFilter: !0,
|
|
@@ -6930,7 +6986,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6930
6986
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
6931
6987
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
6932
6988
|
advancedFilterParent: Yt.value
|
|
6933
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !
|
|
6989
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !Ve.value ? (E(), o("div", bl, [s("p", xl, P(He.value), 1)])) : a("", !0)], 2),
|
|
6934
6990
|
e.pagination ? (E(), i(sl, { key: 2 })) : a("", !0)
|
|
6935
6991
|
], 4));
|
|
6936
6992
|
}
|
|
@@ -7381,7 +7437,7 @@ var Zl = {
|
|
|
7381
7437
|
let B = m(To, O("")), V = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7382
7438
|
label: e.label,
|
|
7383
7439
|
value: e.value
|
|
7384
|
-
})) : []),
|
|
7440
|
+
})) : []), re = r(() => {
|
|
7385
7441
|
if (b.value) return (T.value.length > 1 ? [
|
|
7386
7442
|
"bar_stacked",
|
|
7387
7443
|
"line",
|
|
@@ -7410,22 +7466,22 @@ var Zl = {
|
|
|
7410
7466
|
}
|
|
7411
7467
|
b.value = e[0];
|
|
7412
7468
|
});
|
|
7413
|
-
function
|
|
7469
|
+
function W(e) {
|
|
7414
7470
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7415
7471
|
}
|
|
7416
|
-
let
|
|
7472
|
+
let G = r(() => N.value.map((e) => ({
|
|
7417
7473
|
id: e.value,
|
|
7418
7474
|
text: e.label,
|
|
7419
7475
|
context: e.description ? { description: e.description } : void 0
|
|
7420
7476
|
}))), ie = r(() => ee.value.map((e) => ({
|
|
7421
7477
|
id: e.value,
|
|
7422
7478
|
text: e.label
|
|
7423
|
-
}))),
|
|
7479
|
+
}))), ae = r(() => D.value.map((e) => ({
|
|
7424
7480
|
id: e.field || "",
|
|
7425
7481
|
text: e.headerName || e.field || "",
|
|
7426
7482
|
icon: ds(e.context?.dataType || null) || "circle-chevron-down"
|
|
7427
|
-
}))),
|
|
7428
|
-
get: () => T.value.map((e) =>
|
|
7483
|
+
}))), K = r({
|
|
7484
|
+
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
7429
7485
|
set: (e) => {
|
|
7430
7486
|
T.value = e.map((e) => e.id);
|
|
7431
7487
|
}
|
|
@@ -7436,8 +7492,8 @@ var Zl = {
|
|
|
7436
7492
|
prefixLabel: "Y Axis",
|
|
7437
7493
|
icon: "chart-bar-decreasing",
|
|
7438
7494
|
allowDeselect: !1,
|
|
7439
|
-
availableOptions:
|
|
7440
|
-
currentOption:
|
|
7495
|
+
availableOptions: G.value,
|
|
7496
|
+
currentOption: G.value.find((e) => e.id === M.value),
|
|
7441
7497
|
updateSelectedOption: (e) => {
|
|
7442
7498
|
M && e !== M.value && (M.value = e);
|
|
7443
7499
|
}
|
|
@@ -7447,12 +7503,12 @@ var Zl = {
|
|
|
7447
7503
|
label: "X Axis",
|
|
7448
7504
|
icon: "align-end-horizontal",
|
|
7449
7505
|
allowDeselect: !1,
|
|
7450
|
-
availableOptions:
|
|
7506
|
+
availableOptions: ae.value,
|
|
7451
7507
|
...i ? {
|
|
7452
|
-
activeOptions:
|
|
7508
|
+
activeOptions: K,
|
|
7453
7509
|
activeOptionLimit: n.rowGroupLimit
|
|
7454
7510
|
} : {
|
|
7455
|
-
currentOption:
|
|
7511
|
+
currentOption: ae.value.find((e) => e.id === T.value[0]),
|
|
7456
7512
|
updateSelectedOption: (e) => {
|
|
7457
7513
|
T.value = e ? [e] : [];
|
|
7458
7514
|
}
|
|
@@ -7464,7 +7520,7 @@ var Zl = {
|
|
|
7464
7520
|
allowDeselect: !0,
|
|
7465
7521
|
availableOptions: w.value,
|
|
7466
7522
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7467
|
-
disabled: !
|
|
7523
|
+
disabled: !re.value,
|
|
7468
7524
|
disabledReason: "Sorting is not available for this chart type",
|
|
7469
7525
|
updateSelectedOption: (e) => {
|
|
7470
7526
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7486,7 +7542,7 @@ var Zl = {
|
|
|
7486
7542
|
t && b && (b.value = t);
|
|
7487
7543
|
}
|
|
7488
7544
|
};
|
|
7489
|
-
if (
|
|
7545
|
+
if (G.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && ie.value.length > 0) {
|
|
7490
7546
|
let t = {
|
|
7491
7547
|
value: "secondary-y-axis",
|
|
7492
7548
|
label: "Metric Overlay",
|
|
@@ -7524,22 +7580,22 @@ var Zl = {
|
|
|
7524
7580
|
n && e.push(n);
|
|
7525
7581
|
}
|
|
7526
7582
|
let c = i ? 2 : 1;
|
|
7527
|
-
return
|
|
7583
|
+
return ae.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);
|
|
7528
7584
|
});
|
|
7529
7585
|
H(v, (e) => {
|
|
7530
7586
|
e && (p.value = e);
|
|
7531
7587
|
});
|
|
7532
|
-
let
|
|
7533
|
-
let t =
|
|
7588
|
+
let q = r(() => _.value && oe.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
7589
|
+
let t = q.value;
|
|
7534
7590
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
7535
|
-
},
|
|
7591
|
+
}, ce = (e) => q.value?.isMultiSelect ? null : se(e), le = (e) => q.value?.isMultiSelect ? {
|
|
7536
7592
|
variant: "checkbox",
|
|
7537
7593
|
renderer: eu
|
|
7538
|
-
} :
|
|
7594
|
+
} : W(e) ? { renderer: eu } : { variant: "icon" }, ue = (e) => {
|
|
7539
7595
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
7540
|
-
},
|
|
7596
|
+
}, J = () => {
|
|
7541
7597
|
g.value = !1, _.value = void 0;
|
|
7542
|
-
},
|
|
7598
|
+
}, de = () => {
|
|
7543
7599
|
_.value = void 0;
|
|
7544
7600
|
};
|
|
7545
7601
|
return (n, r) => (E(), o(t, null, [s("div", tu, [s("div", null, [ne((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", nu, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(ta, {
|
|
@@ -7547,7 +7603,7 @@ var Zl = {
|
|
|
7547
7603
|
label: "Chart Configuration",
|
|
7548
7604
|
icon: "chart-area",
|
|
7549
7605
|
onClick: r[0] ||= (e) => g.value = !g.value,
|
|
7550
|
-
onHandleToggleDropdown:
|
|
7606
|
+
onHandleToggleDropdown: de
|
|
7551
7607
|
}, null, 8, ["open"]), u($t, {
|
|
7552
7608
|
class: y({ "pv-hide": !g.value }),
|
|
7553
7609
|
"css-custom-properties": {
|
|
@@ -7567,8 +7623,8 @@ var Zl = {
|
|
|
7567
7623
|
id: `pv-chart-config-${e.value}`,
|
|
7568
7624
|
key: e.value,
|
|
7569
7625
|
"data-active": _.value === e.value ? !0 : null,
|
|
7570
|
-
onMouseenter: (t) => e.disabled ? null :
|
|
7571
|
-
onClick: (t) => e.disabled ? null :
|
|
7626
|
+
onMouseenter: (t) => e.disabled ? null : ue(e.value),
|
|
7627
|
+
onClick: (t) => e.disabled ? null : ue(e.value)
|
|
7572
7628
|
}, [u(I(bi), {
|
|
7573
7629
|
disableInteractive: !0,
|
|
7574
7630
|
useTeleport: !0,
|
|
@@ -7597,7 +7653,7 @@ var Zl = {
|
|
|
7597
7653
|
key: "0"
|
|
7598
7654
|
} : void 0]), 1024)], 40, iu))), 128))])]),
|
|
7599
7655
|
_: 1
|
|
7600
|
-
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Ye), [
|
|
7656
|
+
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Ye), [J, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
7601
7657
|
class: "pv-flex pv-space-between",
|
|
7602
7658
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
7603
7659
|
}, [e.chartFilter ? (E(), i(xi, {
|
|
@@ -7653,37 +7709,37 @@ var Zl = {
|
|
|
7653
7709
|
},
|
|
7654
7710
|
isList: !0
|
|
7655
7711
|
}, {
|
|
7656
|
-
default: U(() => [
|
|
7712
|
+
default: U(() => [q.value ? (E(), o(t, { key: 0 }, [q.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
7657
7713
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
7658
7714
|
style: {
|
|
7659
7715
|
"padding-left": "2px",
|
|
7660
7716
|
"padding-bottom": "6px"
|
|
7661
7717
|
}
|
|
7662
7718
|
}, " Viewing ", -1), u(Ul, {
|
|
7663
|
-
modelValue:
|
|
7664
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
7665
|
-
options:
|
|
7666
|
-
activeOptionLimit:
|
|
7719
|
+
modelValue: q.value.activeOptions.value,
|
|
7720
|
+
"onUpdate:modelValue": r[2] ||= (e) => q.value.activeOptions.value = e,
|
|
7721
|
+
options: q.value.availableOptions || [],
|
|
7722
|
+
activeOptionLimit: q.value.activeOptionLimit,
|
|
7667
7723
|
placeholderText: "Add to X Axis"
|
|
7668
7724
|
}, null, 8, [
|
|
7669
7725
|
"modelValue",
|
|
7670
7726
|
"options",
|
|
7671
7727
|
"activeOptionLimit"
|
|
7672
|
-
])], 64)) : (E(), o("ul", su, [(E(!0), o(t, null, k(
|
|
7728
|
+
])], 64)) : (E(), o("ul", su, [(E(!0), o(t, null, k(q.value.availableOptions, (e) => (E(), o("li", {
|
|
7673
7729
|
key: e.id,
|
|
7674
|
-
"data-active":
|
|
7730
|
+
"data-active": ce(e)
|
|
7675
7731
|
}, [u(Ra, {
|
|
7676
7732
|
id: e.id,
|
|
7677
|
-
config:
|
|
7733
|
+
config: le(e),
|
|
7678
7734
|
text: e.text,
|
|
7679
7735
|
icon: e.icon,
|
|
7680
7736
|
context: e.context,
|
|
7681
7737
|
disabled: e.disabled,
|
|
7682
|
-
selectedIds:
|
|
7738
|
+
selectedIds: q.value.isMultiSelect ? [...I(L)] : [],
|
|
7683
7739
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
7684
|
-
|
|
7740
|
+
q.value?.updateSelectedOptions?.([...q.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
7685
7741
|
},
|
|
7686
|
-
onHandleSelected: (t) =>
|
|
7742
|
+
onHandleSelected: (t) => q.value.updateSelectedOption?.(e.id),
|
|
7687
7743
|
"class-list": ["pv-chart-option pv-flex"]
|
|
7688
7744
|
}, null, 8, [
|
|
7689
7745
|
"id",
|
|
@@ -7808,6 +7864,10 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
7808
7864
|
type: Boolean,
|
|
7809
7865
|
default: !1
|
|
7810
7866
|
},
|
|
7867
|
+
filterPanelReadOnly: {
|
|
7868
|
+
type: Boolean,
|
|
7869
|
+
default: !1
|
|
7870
|
+
},
|
|
7811
7871
|
initialChartCollapsed: {
|
|
7812
7872
|
type: Boolean,
|
|
7813
7873
|
default: !1
|
|
@@ -7954,7 +8014,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
7954
8014
|
],
|
|
7955
8015
|
setup(e, { expose: n, emit: c }) {
|
|
7956
8016
|
let l = e, d = c, p = O(null), m = O(null), h = O(null), g = O(l.initialChartCollapsed ?? !1), b = "filter-panel-" + f()?.uid, x = O(!1), C = O(!1), T = O(0), k = r(() => m.value?.availableRowGroupColumns || []), j = O([]), N = r(() => j.value.length > 0 ? j.value[0] : ""), F = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", I = r(() => {
|
|
7957
|
-
let e =
|
|
8017
|
+
let e = me.value;
|
|
7958
8018
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
7959
8019
|
label: "Count",
|
|
7960
8020
|
value: e.yAxis.defaultValue
|
|
@@ -8006,23 +8066,23 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8006
8066
|
D(xo, B);
|
|
8007
8067
|
let V = O(l.isTableGrouped), ne = (e) => {
|
|
8008
8068
|
d("table-overlay-change", e);
|
|
8009
|
-
},
|
|
8010
|
-
p.value = e.api, V.value || p.value?.setRowGroupColumns([]),
|
|
8011
|
-
}, K = (e) => {
|
|
8012
|
-
d("first-data-rendered", e);
|
|
8069
|
+
}, re = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), W = r(() => z?.computedFocusType.value || null), G = r(() => z?.computedFocuses.value || []), ie = (e) => {
|
|
8070
|
+
p.value = e.api, V.value || p.value?.setRowGroupColumns([]), Be(e.api), d("grid-ready", e);
|
|
8013
8071
|
}, ae = (e) => {
|
|
8072
|
+
d("first-data-rendered", e);
|
|
8073
|
+
}, K = (e) => {
|
|
8014
8074
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8015
8075
|
if (V.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8016
|
-
let t =
|
|
8017
|
-
if (n.length >
|
|
8018
|
-
let t = n.slice(0,
|
|
8076
|
+
let t = me.value;
|
|
8077
|
+
if (n.length > he.value) {
|
|
8078
|
+
let t = n.slice(0, he.value);
|
|
8019
8079
|
j.value = t, e.api.setRowGroupColumns(t);
|
|
8020
8080
|
} else j.value = n;
|
|
8021
8081
|
t.yAxis.defaultValue && (Y.value = t.yAxis.defaultValue);
|
|
8022
8082
|
}
|
|
8023
8083
|
d("column-row-group-changed", e);
|
|
8024
8084
|
}, oe = async (e) => {
|
|
8025
|
-
|
|
8085
|
+
Be(e.api), B.value && d("filter-changed", e);
|
|
8026
8086
|
};
|
|
8027
8087
|
H(() => j.value, () => {
|
|
8028
8088
|
if (V.value) {
|
|
@@ -8035,18 +8095,18 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8035
8095
|
p?.value?.setRowGroupColumns([]);
|
|
8036
8096
|
});
|
|
8037
8097
|
if (!l.allFieldsAreFocusable) {
|
|
8038
|
-
let e =
|
|
8098
|
+
let e = me.value.supportsFocusView && N.value || null;
|
|
8039
8099
|
z.setFocusType(e);
|
|
8040
8100
|
}
|
|
8041
|
-
p.value &&
|
|
8101
|
+
p.value && Be(p.value);
|
|
8042
8102
|
});
|
|
8043
|
-
function
|
|
8103
|
+
function q(e, t, n = !0) {
|
|
8044
8104
|
return (r) => {
|
|
8045
|
-
if (r.data =
|
|
8046
|
-
let i = "", a =
|
|
8105
|
+
if (r.data = ve.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8106
|
+
let i = "", a = ce(e);
|
|
8047
8107
|
if (l.truncateLabelValues && n && a && Ts(a) && !isNaN(Number(r.value))) {
|
|
8048
|
-
if (
|
|
8049
|
-
let e = r.datum?.[N.value], t =
|
|
8108
|
+
if (Pe.value) {
|
|
8109
|
+
let e = r.datum?.[N.value], t = ye.value?.find((t) => t[N.value] === e)?.[`${Y.value}_sort_total`] || Infinity;
|
|
8050
8110
|
if (r.value / t < .05) return "";
|
|
8051
8111
|
}
|
|
8052
8112
|
let { newValue: e, newSuffix: t } = ms(r.value, Q.Percent === $(a).dataType, qe.value);
|
|
@@ -8056,17 +8116,17 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8056
8116
|
return t && (o = t(r)), o + i;
|
|
8057
8117
|
};
|
|
8058
8118
|
}
|
|
8059
|
-
let
|
|
8119
|
+
let se = (e, t = !1) => {
|
|
8060
8120
|
if (!e) return;
|
|
8061
|
-
let n =
|
|
8062
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8063
|
-
},
|
|
8064
|
-
let n =
|
|
8121
|
+
let n = ce(e);
|
|
8122
|
+
return n && typeof n.valueFormatter == "function" ? q(e, n.valueFormatter, t) : q(e, null, t);
|
|
8123
|
+
}, ce = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), le = (e, t) => {
|
|
8124
|
+
let n = ce(N.value);
|
|
8065
8125
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8066
|
-
},
|
|
8067
|
-
let e =
|
|
8126
|
+
}, ue = r(() => [...j.value.length > 1 ? _s : gs, vs].filter((e) => l.enabledChartTypes?.includes(e.id))), J = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() => Xl(J.value?.id || "")), he = r(() => Math.min(me.value.rowGroupLimit, l.rowGroupLimit)), ge = r(() => {
|
|
8127
|
+
let e = me.value.xAxis.filterColumns;
|
|
8068
8128
|
return e ? e(k.value) : k.value;
|
|
8069
|
-
}),
|
|
8129
|
+
}), _e = O([{
|
|
8070
8130
|
text: "Ascending",
|
|
8071
8131
|
id: "asc",
|
|
8072
8132
|
icon: "arrow-up-wide-narrow"
|
|
@@ -8074,38 +8134,38 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8074
8134
|
text: "Descending",
|
|
8075
8135
|
id: "desc",
|
|
8076
8136
|
icon: "arrow-down-narrow-wide"
|
|
8077
|
-
}]),
|
|
8078
|
-
D(po, p), D(To,
|
|
8079
|
-
let
|
|
8080
|
-
|
|
8137
|
+
}]), ve = O([]), ye = O([]), Y = O(l.yKey), X = O(ee.value[0]?.value), be = r(() => l.crosslineOverlayGroups ?? []), xe = O(new Set(be.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), Se = r(() => be.value.filter((e) => xe.value.has(e.id)).flatMap((e) => e.overlays)), Ce = O(null), we = O(_e.value.find((e) => e.id === l.initialSort || "")), Te = O("");
|
|
8138
|
+
D(po, p), D(To, Te), D(_o, ge), D(Eo, j), D(Do, ue), D(Oo, _e), D(ko, J), D(Ao, we), D(jo, Y), D(Mo, I), D(No, X), D(Po, ee), D(Io, xe), D(Lo, be);
|
|
8139
|
+
let Ee = (e) => {
|
|
8140
|
+
J.value = ue.value.find((t) => t.id === e) ?? ue.value[0];
|
|
8081
8141
|
};
|
|
8082
|
-
H(() =>
|
|
8083
|
-
let e =
|
|
8084
|
-
|
|
8085
|
-
}), H(() => l.chartType, (e) =>
|
|
8142
|
+
H(() => ue.value, () => {
|
|
8143
|
+
let e = Fe.value, t = e !== pe, n = Xl(J.value?.id || ""), r = ue.value.some((e) => e.id === J.value?.id);
|
|
8144
|
+
pe = e, !(r && (!t || !n.storeBeforeChange)) && Ee((e ? fe?.value : de?.value) ?? l.chartType);
|
|
8145
|
+
}), H(() => l.chartType, (e) => Ee(e)), H(() => l.yKey, (e) => {
|
|
8086
8146
|
e !== Y.value && (Y.value = e);
|
|
8087
|
-
}), H(
|
|
8147
|
+
}), H(Te, (e) => {
|
|
8088
8148
|
if (l.chartFilter && p.value) {
|
|
8089
8149
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8090
8150
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
8091
8151
|
let r = zs({
|
|
8092
8152
|
filterType: "set",
|
|
8093
8153
|
values: n
|
|
8094
|
-
},
|
|
8154
|
+
}, ce(t));
|
|
8095
8155
|
p.value.setColumnFilterModel(t, r).then(() => {
|
|
8096
8156
|
p.value?.onFilterChanged();
|
|
8097
8157
|
});
|
|
8098
8158
|
}
|
|
8099
8159
|
});
|
|
8100
|
-
let
|
|
8160
|
+
let De = r(() => {
|
|
8101
8161
|
let e = I.value.find((e) => e.value === Y.value);
|
|
8102
8162
|
return e ? e.label : "";
|
|
8103
|
-
}),
|
|
8104
|
-
let e = ee.value.find((e) => e.value ===
|
|
8163
|
+
}), Oe = r(() => ee.value.find((e) => e.value === X.value)), ke = r(() => {
|
|
8164
|
+
let e = ee.value.find((e) => e.value === X.value);
|
|
8105
8165
|
return e ? e.label : "";
|
|
8106
|
-
}),
|
|
8107
|
-
let e =
|
|
8108
|
-
if (
|
|
8166
|
+
}), Ae = r(() => me.value.isHorizontal === !0), je = r(() => j.value.length > 1), Me = r(() => !J.value || I.value.length === 0 ? [] : me.value.seriesFamily === "pie" ? Le.value : Ie.value), Ne = r(() => l.showSeriesLabels), Pe = r(() => J.value?.id.includes("stacked")), Fe = r(() => j.value.length > 1), Ie = r(() => {
|
|
8167
|
+
let e = Pe.value, t = me.value.agChartType, n = [], r = se(Y.value, !0), i = se(Ce.value?.fieldName, !0);
|
|
8168
|
+
if (je.value) Ce.value?.fieldValues.forEach((a) => {
|
|
8109
8169
|
let o = {
|
|
8110
8170
|
type: t,
|
|
8111
8171
|
xKey: N.value,
|
|
@@ -8113,7 +8173,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8113
8173
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8114
8174
|
stacked: e,
|
|
8115
8175
|
label: {
|
|
8116
|
-
enabled:
|
|
8176
|
+
enabled: Ne.value,
|
|
8117
8177
|
color: e ? "white" : "black",
|
|
8118
8178
|
fontFamily: "Inter",
|
|
8119
8179
|
padding: 5,
|
|
@@ -8129,9 +8189,9 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8129
8189
|
type: t,
|
|
8130
8190
|
xKey: N.value,
|
|
8131
8191
|
yKey: Y.value,
|
|
8132
|
-
yName:
|
|
8192
|
+
yName: De.value,
|
|
8133
8193
|
label: {
|
|
8134
|
-
enabled:
|
|
8194
|
+
enabled: Ne.value,
|
|
8135
8195
|
color: "black",
|
|
8136
8196
|
fontFamily: "Inter",
|
|
8137
8197
|
padding: 5,
|
|
@@ -8145,7 +8205,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8145
8205
|
let a = {};
|
|
8146
8206
|
if (t === "bar") {
|
|
8147
8207
|
let e = a;
|
|
8148
|
-
e.direction =
|
|
8208
|
+
e.direction = Ae.value ? "horizontal" : "vertical", a = e;
|
|
8149
8209
|
} else if (t === "line" || t === "area") {
|
|
8150
8210
|
let e = a;
|
|
8151
8211
|
e.connectMissingData = !0, a = e;
|
|
@@ -8153,39 +8213,39 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8153
8213
|
if (n = n.map((e) => ({
|
|
8154
8214
|
...e,
|
|
8155
8215
|
...a
|
|
8156
|
-
})),
|
|
8216
|
+
})), me.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
8157
8217
|
...e,
|
|
8158
8218
|
tooltip: { renderer: (e) => {
|
|
8159
8219
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
8160
|
-
return typeof n == "number" && typeof r == "number" && (t =
|
|
8220
|
+
return typeof n == "number" && typeof r == "number" && (t = le(n, r)), {
|
|
8161
8221
|
title: t,
|
|
8162
8222
|
content: `Count: ${e.datum[e.yKey]}`
|
|
8163
8223
|
};
|
|
8164
8224
|
} }
|
|
8165
|
-
}))),
|
|
8225
|
+
}))), X.value) {
|
|
8166
8226
|
let t;
|
|
8167
|
-
t = e ? `${
|
|
8168
|
-
let r =
|
|
8227
|
+
t = e ? `${X.value}_sort_total` : X.value;
|
|
8228
|
+
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = uu(N.value, r, t, ke.value, Ae.value), a = {
|
|
8169
8229
|
type: "scatter",
|
|
8170
8230
|
id: "metric-overlay",
|
|
8171
8231
|
data: Ge.value,
|
|
8172
8232
|
...i,
|
|
8173
8233
|
label: { enabled: !1 }
|
|
8174
8234
|
};
|
|
8175
|
-
if (
|
|
8176
|
-
let e =
|
|
8177
|
-
a.tooltip = { renderer:
|
|
8235
|
+
if (Oe.value?.tooltipRenderer) {
|
|
8236
|
+
let e = Oe.value.tooltipRenderer;
|
|
8237
|
+
a.tooltip = { renderer: Ae.value ? (n) => e({
|
|
8178
8238
|
...n,
|
|
8179
8239
|
xKey: N.value,
|
|
8180
8240
|
xName: r,
|
|
8181
8241
|
yKey: t,
|
|
8182
|
-
yName:
|
|
8242
|
+
yName: ke.value
|
|
8183
8243
|
}) : e };
|
|
8184
8244
|
}
|
|
8185
8245
|
n = [...n, a];
|
|
8186
8246
|
}
|
|
8187
|
-
if (
|
|
8188
|
-
let e =
|
|
8247
|
+
if (J.value?.id === "histogram" && Ue.value && Ue.value.length > 0 && typeof Ue.value[0]?.bucketMin == "number" && typeof Ue.value[0]?.bucketMax == "number" && Se.value.length > 0 && Ue.value) {
|
|
8248
|
+
let e = Ue.value.length, t = Number.isFinite(qe.value) ? qe.value : 0, r = {
|
|
8189
8249
|
type: "scatter",
|
|
8190
8250
|
xKey: "__dummy_x__",
|
|
8191
8251
|
yKey: "__dummy_y__",
|
|
@@ -8203,10 +8263,10 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8203
8263
|
type: "scatter",
|
|
8204
8264
|
xKey: "__dummy_x__",
|
|
8205
8265
|
yKey: "__dummy_y__",
|
|
8206
|
-
data:
|
|
8207
|
-
let t = nt(e.value,
|
|
8266
|
+
data: Se.value.flatMap((e) => {
|
|
8267
|
+
let t = nt(e.value, Ue.value || []);
|
|
8208
8268
|
if (t === null) return [];
|
|
8209
|
-
let n = Number.isFinite(qe.value) ? qe.value : 0, r =
|
|
8269
|
+
let n = Number.isFinite(qe.value) ? qe.value : 0, r = se(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
8210
8270
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
8211
8271
|
value: i,
|
|
8212
8272
|
__dummy_x__: t,
|
|
@@ -8239,7 +8299,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8239
8299
|
];
|
|
8240
8300
|
}
|
|
8241
8301
|
return n;
|
|
8242
|
-
}),
|
|
8302
|
+
}), Le = r(() => I.value.length === 0 ? [] : [{
|
|
8243
8303
|
type: "pie",
|
|
8244
8304
|
legendItemKey: N.value,
|
|
8245
8305
|
angleKey: Y.value
|
|
@@ -8250,14 +8310,14 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8250
8310
|
newState: { seriesField: e },
|
|
8251
8311
|
oldState: { seriesField: t }
|
|
8252
8312
|
});
|
|
8253
|
-
}), H(
|
|
8313
|
+
}), H(X, (e, t) => {
|
|
8254
8314
|
d("chart-state-changed", {
|
|
8255
8315
|
api: p.value,
|
|
8256
8316
|
newState: { secondarySeriesField: e },
|
|
8257
8317
|
oldState: { secondarySeriesField: t }
|
|
8258
8318
|
});
|
|
8259
|
-
}), H(
|
|
8260
|
-
e?.id && Xl(e.id).storeBeforeChange && (
|
|
8319
|
+
}), H(J, (e, t) => {
|
|
8320
|
+
e?.id && Xl(e.id).storeBeforeChange && (Fe.value ? fe.value = e.id : de.value = e.id);
|
|
8261
8321
|
let n = Xl(e?.id || ""), r = Xl(t?.id || "");
|
|
8262
8322
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? Y.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8263
8323
|
l.yKey ? Y.value = l.yKey : I.value.length > 0 && (Y.value = I.value[0].value);
|
|
@@ -8266,14 +8326,14 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8266
8326
|
newState: { chartType: e?.id },
|
|
8267
8327
|
oldState: { chartType: t?.id }
|
|
8268
8328
|
});
|
|
8269
|
-
}), H(
|
|
8329
|
+
}), H(ge, (e) => {
|
|
8270
8330
|
if (e.length === 1 && j.value.length === 0) {
|
|
8271
8331
|
let t = e[0].field;
|
|
8272
8332
|
t && (j.value = [t]);
|
|
8273
8333
|
}
|
|
8274
8334
|
}), H(I, (e) => {
|
|
8275
8335
|
e.length === 1 && !Y.value && (Y.value = e[0].value);
|
|
8276
|
-
}), H(
|
|
8336
|
+
}), H(we, (e, t) => {
|
|
8277
8337
|
d("chart-state-changed", {
|
|
8278
8338
|
api: p.value,
|
|
8279
8339
|
newState: { chartSort: e?.id },
|
|
@@ -8302,24 +8362,24 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8302
8362
|
z.setFocusType(e?.focusType), z.setFocuses(e?.focuses ?? []);
|
|
8303
8363
|
}
|
|
8304
8364
|
}, { deep: !0 });
|
|
8305
|
-
let
|
|
8306
|
-
|
|
8307
|
-
},
|
|
8365
|
+
let Re = () => {
|
|
8366
|
+
ve.value = [], ye.value = [], Ce.value = null;
|
|
8367
|
+
}, ze = (e, t) => {
|
|
8308
8368
|
if (!e || e.length === 0) {
|
|
8309
|
-
|
|
8369
|
+
Re();
|
|
8310
8370
|
return;
|
|
8311
8371
|
}
|
|
8312
8372
|
if (t) {
|
|
8313
|
-
let { stackedData: n, uniqueFieldValues: r } = mu(e, N.value, t,
|
|
8314
|
-
|
|
8373
|
+
let { stackedData: n, uniqueFieldValues: r } = mu(e, N.value, t, Ve.value, L.value);
|
|
8374
|
+
ye.value = n, Ce.value = {
|
|
8315
8375
|
fieldName: t,
|
|
8316
8376
|
fieldValues: r
|
|
8317
8377
|
};
|
|
8318
|
-
} else
|
|
8319
|
-
|
|
8320
|
-
},
|
|
8378
|
+
} else ye.value = [], Ce.value = null;
|
|
8379
|
+
ve.value = e;
|
|
8380
|
+
}, Be = (e) => {
|
|
8321
8381
|
let t = ++T.value, n = j.value.length;
|
|
8322
|
-
if (
|
|
8382
|
+
if (Re(), C.value = !1, n === 0 || I.value.length === 0 || l.requireFiltersToShowData && R.filterModelEmpty.value) return;
|
|
8323
8383
|
if (l.serverSideChartHandler) {
|
|
8324
8384
|
let e = R.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8325
8385
|
if (e === null && l.initialGridState) {
|
|
@@ -8333,7 +8393,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8333
8393
|
filterModel: e
|
|
8334
8394
|
};
|
|
8335
8395
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
8336
|
-
t === T.value && (
|
|
8396
|
+
t === T.value && (ze(e.data, e.stackField), C.value = !1);
|
|
8337
8397
|
}).catch((e) => {
|
|
8338
8398
|
t === T.value && (console.error("Chart handler error:", e), C.value = !1);
|
|
8339
8399
|
});
|
|
@@ -8344,27 +8404,27 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8344
8404
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
8345
8405
|
if (e.group && e.level === 0) {
|
|
8346
8406
|
if (j.value.length > 1) {
|
|
8347
|
-
let { rowData: t, fieldValues: n } =
|
|
8407
|
+
let { rowData: t, fieldValues: n } = Z(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
8348
8408
|
a = a.union(n), i?.push(t);
|
|
8349
8409
|
}
|
|
8350
|
-
let t =
|
|
8410
|
+
let t = He(e);
|
|
8351
8411
|
r?.push(t);
|
|
8352
8412
|
}
|
|
8353
|
-
}),
|
|
8413
|
+
}), ve.value = r, j.value.length > 1 && i && i.length > 0) {
|
|
8354
8414
|
let e = j.value[1] || "";
|
|
8355
|
-
|
|
8415
|
+
ye.value = i, Ce.value = {
|
|
8356
8416
|
fieldName: e,
|
|
8357
8417
|
fieldValues: Array.from(a)
|
|
8358
8418
|
};
|
|
8359
|
-
} else
|
|
8360
|
-
},
|
|
8419
|
+
} else ye.value = [], Ce.value = null;
|
|
8420
|
+
}, Ve = r(() => {
|
|
8361
8421
|
let e = I.value, t = ee.value;
|
|
8362
8422
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
8363
|
-
}),
|
|
8423
|
+
}), He = (e) => {
|
|
8364
8424
|
let t = { [e.field]: e.key };
|
|
8365
|
-
for (let n of
|
|
8425
|
+
for (let n of Ve.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
8366
8426
|
return t;
|
|
8367
|
-
},
|
|
8427
|
+
}, Z = (e, t) => {
|
|
8368
8428
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
8369
8429
|
for (let a of I.value) t.forEach((t) => {
|
|
8370
8430
|
let o = t.key;
|
|
@@ -8381,18 +8441,18 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8381
8441
|
rowData: r,
|
|
8382
8442
|
fieldValues: n
|
|
8383
8443
|
};
|
|
8384
|
-
},
|
|
8385
|
-
let e =
|
|
8386
|
-
if (
|
|
8387
|
-
let n =
|
|
8444
|
+
}, Ue = r(() => {
|
|
8445
|
+
let e = je.value ? ye.value : ve.value, t = null;
|
|
8446
|
+
if (we.value && (t = je.value ? `${Y.value}${bs}` : Y.value), t && e && we.value) {
|
|
8447
|
+
let n = we.value?.id.includes("desc") ? -1 : 1;
|
|
8388
8448
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
8389
8449
|
}
|
|
8390
8450
|
if (e && e.length === 1 && (e = [
|
|
8391
8451
|
{ [N.value]: "" },
|
|
8392
8452
|
e[0],
|
|
8393
8453
|
{ [N.value]: " " }
|
|
8394
|
-
]), l.enableFocusView && e &&
|
|
8395
|
-
let t = e?.filter((e) =>
|
|
8454
|
+
]), l.enableFocusView && e && G.value.length > 0 && W.value) {
|
|
8455
|
+
let t = e?.filter((e) => G.value.includes(e[N.value])), n = e?.filter((e) => !G.value.includes(e[N.value]));
|
|
8396
8456
|
e = [
|
|
8397
8457
|
...t || [],
|
|
8398
8458
|
{ [N.value]: ys },
|
|
@@ -8401,14 +8461,14 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8401
8461
|
}
|
|
8402
8462
|
return e;
|
|
8403
8463
|
}), We = new Set(["", " "]), Ge = r(() => {
|
|
8404
|
-
let e = (
|
|
8464
|
+
let e = (Ue.value ?? []).filter((e) => {
|
|
8405
8465
|
let t = e?.[N.value];
|
|
8406
8466
|
return !We.has(String(t));
|
|
8407
|
-
}), t =
|
|
8408
|
-
if (!
|
|
8409
|
-
let n =
|
|
8467
|
+
}), t = X.value;
|
|
8468
|
+
if (!je.value || !t || !Ce.value) return e;
|
|
8469
|
+
let n = ce(t);
|
|
8410
8470
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
8411
|
-
let r = `${t}${bs}`, i =
|
|
8471
|
+
let r = `${t}${bs}`, i = Ce.value.fieldValues;
|
|
8412
8472
|
return e.map((e) => {
|
|
8413
8473
|
let n = e[r];
|
|
8414
8474
|
if (typeof n != "number") return e;
|
|
@@ -8419,14 +8479,14 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8419
8479
|
[r]: a > 0 ? n / a : null
|
|
8420
8480
|
};
|
|
8421
8481
|
});
|
|
8422
|
-
}), Ke = r(() =>
|
|
8482
|
+
}), Ke = r(() => Ue.value?.length || 0), qe = r(() => hu(je.value ? ye.value : Ue.value, Y.value, je.value)), Je = r(() => Ce.value?.fieldValues?.length || 0), Ye = r(() => {
|
|
8423
8483
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8424
8484
|
return Math.min(Math.max(e, .05), .75);
|
|
8425
|
-
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !
|
|
8426
|
-
let e =
|
|
8485
|
+
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !Ue.value || Ue.value?.length === 0 ? !0 : qe.value === -Infinity || je.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView && W.value && G.value.length === 0 && l.percentOfFocusViewYKey && Y.value && Y.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8486
|
+
let e = ce(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8427
8487
|
return du({
|
|
8428
8488
|
currentRowGroupColumnsLength: j.value.length,
|
|
8429
|
-
shouldShowFocusOverlayText: $e.value || l.focusRequired &&
|
|
8489
|
+
shouldShowFocusOverlayText: $e.value || l.focusRequired && G.value.length === 0,
|
|
8430
8490
|
chartDataEmpty: Qe.value,
|
|
8431
8491
|
missingFocusText: l.missingFocusText,
|
|
8432
8492
|
displayGroupByName: t
|
|
@@ -8441,22 +8501,22 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8441
8501
|
}
|
|
8442
8502
|
}
|
|
8443
8503
|
return null;
|
|
8444
|
-
}, rt = r(() => $e.value ||
|
|
8504
|
+
}, rt = r(() => $e.value || re.value || !l.isLoading && et.value !== ""), it = r(() => {
|
|
8445
8505
|
let e = {};
|
|
8446
|
-
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] :
|
|
8506
|
+
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] : Ue.value, e.legend = {
|
|
8447
8507
|
toggleSeries: !1,
|
|
8448
8508
|
preventHidingAll: !0,
|
|
8449
8509
|
enabled: j.value.length > 1
|
|
8450
8510
|
};
|
|
8451
|
-
let t =
|
|
8452
|
-
if (!
|
|
8453
|
-
let e =
|
|
8454
|
-
return
|
|
8455
|
-
})(), r =
|
|
8511
|
+
let t = je.value ? Ce.value?.fieldValues.map((e) => fu(Y.value, e)) || [] : Y.value ? [Y.value] : [], n = (() => {
|
|
8512
|
+
if (!X.value) return [];
|
|
8513
|
+
let e = X.value;
|
|
8514
|
+
return Pe.value ? [`${e}${bs}`] : je.value ? Ce.value?.fieldValues.map((t) => fu(e, String(t))) || [] : [e];
|
|
8515
|
+
})(), r = me.value.xAxis.hideLabel === !0, i = J.value?.id === "histogram" && Ue.value && Ue.value.length > 0 && typeof Ue.value[0]?.bucketMin == "number" && typeof Ue.value[0]?.bucketMax == "number", a = [];
|
|
8456
8516
|
if (a.push({
|
|
8457
8517
|
type: "category",
|
|
8458
8518
|
keys: [N.value],
|
|
8459
|
-
position:
|
|
8519
|
+
position: Ae.value ? "left" : "bottom",
|
|
8460
8520
|
crossLines: [{
|
|
8461
8521
|
type: "line",
|
|
8462
8522
|
value: ys,
|
|
@@ -8473,9 +8533,9 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8473
8533
|
wrapping: "never",
|
|
8474
8534
|
formatter: r ? () => "" : (e) => {
|
|
8475
8535
|
if (e.value === "--SEPARATOR--") return "";
|
|
8476
|
-
let t = e.value, n =
|
|
8536
|
+
let t = e.value, n = se(N.value);
|
|
8477
8537
|
typeof n == "function" && (t = n(e));
|
|
8478
|
-
let r = l.enableFocusView &&
|
|
8538
|
+
let r = l.enableFocusView && G.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8479
8539
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8480
8540
|
let e = 50 - r.length - 3;
|
|
8481
8541
|
return t.substring(0, e) + "..." + r;
|
|
@@ -8486,12 +8546,12 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8486
8546
|
paddingInner: Ye.value,
|
|
8487
8547
|
paddingOuter: Xe.value,
|
|
8488
8548
|
groupPaddingInner: Ze.value
|
|
8489
|
-
}), i &&
|
|
8490
|
-
let e =
|
|
8549
|
+
}), i && Se.value.length > 0) {
|
|
8550
|
+
let e = Ue.value?.length || 1;
|
|
8491
8551
|
a.push({
|
|
8492
8552
|
type: "number",
|
|
8493
8553
|
keys: ["__dummy_x__"],
|
|
8494
|
-
position:
|
|
8554
|
+
position: Ae.value ? "left" : "bottom",
|
|
8495
8555
|
crosshair: { enabled: !1 },
|
|
8496
8556
|
min: -1,
|
|
8497
8557
|
max: e + 1,
|
|
@@ -8500,9 +8560,9 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8500
8560
|
tick: { enabled: !1 },
|
|
8501
8561
|
line: { enabled: !1 },
|
|
8502
8562
|
gridLine: { enabled: !1 },
|
|
8503
|
-
crossLines:
|
|
8504
|
-
if (!
|
|
8505
|
-
let t = nt(e.value,
|
|
8563
|
+
crossLines: Se.value.map((e) => {
|
|
8564
|
+
if (!Ue.value) return null;
|
|
8565
|
+
let t = nt(e.value, Ue.value);
|
|
8506
8566
|
return t == null ? null : {
|
|
8507
8567
|
type: "line",
|
|
8508
8568
|
value: t,
|
|
@@ -8517,25 +8577,25 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8517
8577
|
if (a.push({
|
|
8518
8578
|
type: "number",
|
|
8519
8579
|
keys: t,
|
|
8520
|
-
position:
|
|
8521
|
-
label: { formatter:
|
|
8580
|
+
position: Ae.value ? "bottom" : "left",
|
|
8581
|
+
label: { formatter: se(Y.value) },
|
|
8522
8582
|
title: {
|
|
8523
8583
|
enabled: !0,
|
|
8524
|
-
text:
|
|
8584
|
+
text: De.value
|
|
8525
8585
|
}
|
|
8526
|
-
}),
|
|
8586
|
+
}), X.value && a.push({
|
|
8527
8587
|
type: "number",
|
|
8528
8588
|
keys: n,
|
|
8529
|
-
position:
|
|
8589
|
+
position: Ae.value ? "top" : "right",
|
|
8530
8590
|
crosshair: { enabled: !1 },
|
|
8531
8591
|
min: 0,
|
|
8532
8592
|
label: { color: ft },
|
|
8533
8593
|
title: {
|
|
8534
8594
|
enabled: !0,
|
|
8535
|
-
text:
|
|
8595
|
+
text: ke.value,
|
|
8536
8596
|
color: ft
|
|
8537
8597
|
}
|
|
8538
|
-
}), i &&
|
|
8598
|
+
}), i && Se.value.length > 0) {
|
|
8539
8599
|
let e = Number.isFinite(qe.value) ? qe.value : 0;
|
|
8540
8600
|
a.push({
|
|
8541
8601
|
type: "number",
|
|
@@ -8551,8 +8611,8 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8551
8611
|
gridLine: { enabled: !1 }
|
|
8552
8612
|
});
|
|
8553
8613
|
}
|
|
8554
|
-
return e.axes = a, e.series =
|
|
8555
|
-
}), at = r(() => C.value || l.isLoading && (!
|
|
8614
|
+
return e.axes = a, e.series = Me.value, e;
|
|
8615
|
+
}), at = r(() => C.value || l.isLoading && (!Ue.value || Ue.value.length === 0)), ot = r(() => $e.value || !re.value && !l.isLoading && et.value !== ""), st = (e) => {
|
|
8556
8616
|
g.value = e, d("chart-collapsed", e);
|
|
8557
8617
|
}, ct = (e) => {
|
|
8558
8618
|
p.value && (p.value.setRowGroupColumns(e ? j.value : []), V.value = e);
|
|
@@ -8560,7 +8620,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8560
8620
|
return n({
|
|
8561
8621
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
8562
8622
|
getCsvData: () => m.value?.getCsvData(),
|
|
8563
|
-
refreshData: (e) => (p.value &&
|
|
8623
|
+
refreshData: (e) => (p.value && Be(p.value), m.value?.refreshData(e)),
|
|
8564
8624
|
getFilterValueSelectedMetadataMap: () => m.value?.getFilterValueSelectedMetadataMap(),
|
|
8565
8625
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
8566
8626
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e)
|
|
@@ -8602,9 +8662,9 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8602
8662
|
onClick: r[1] ||= (e) => st(!g.value)
|
|
8603
8663
|
})], 2),
|
|
8604
8664
|
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(lu, {
|
|
8605
|
-
enablePanel:
|
|
8665
|
+
enablePanel: Ue.value != null && Ue.value.length > 0,
|
|
8606
8666
|
chartFilter: e.chartFilter,
|
|
8607
|
-
rowGroupLimit:
|
|
8667
|
+
rowGroupLimit: he.value,
|
|
8608
8668
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
8609
8669
|
"chart-config-options": l.chartConfigPanelOptions
|
|
8610
8670
|
}, null, 8, [
|
|
@@ -8623,7 +8683,7 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8623
8683
|
"isLoading",
|
|
8624
8684
|
"options",
|
|
8625
8685
|
"enableFocusView"
|
|
8626
|
-
]), s("div", bu, [
|
|
8686
|
+
]), s("div", bu, [re.value ? (E(), o("div", xu, [(E(), i(M(e.emptyChartFilterRenderer)))])) : ot.value ? (E(), o("p", Su, P(et.value), 1)) : a("", !0)])])], 2)
|
|
8627
8687
|
])),
|
|
8628
8688
|
u(Sl, _({
|
|
8629
8689
|
ref_key: "pvDataTableRef",
|
|
@@ -8631,12 +8691,12 @@ var du = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8631
8691
|
}, n.$props, {
|
|
8632
8692
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
8633
8693
|
pagination: e.pagination || !V.value,
|
|
8634
|
-
onColumnRowGroupChanged:
|
|
8694
|
+
onColumnRowGroupChanged: K,
|
|
8635
8695
|
onGridReady: ie,
|
|
8636
8696
|
onFilterChanged: oe,
|
|
8637
8697
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
8638
8698
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
8639
|
-
onFirstDataRendered:
|
|
8699
|
+
onFirstDataRendered: ae,
|
|
8640
8700
|
onColumnMoved: r[5] ||= (e) => d("column-moved", e),
|
|
8641
8701
|
onColumnResized: r[6] ||= (e) => d("column-resized", e),
|
|
8642
8702
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|