@turquoisehealth/pit-viper 2.194.6-dev.2 → 2.194.6-dev.3
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-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +0 -5
- package/pv-components/dist/vue/base/pv-components-base.mjs +6 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +0 -5
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +851 -825
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +6 -3
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-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-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.pv-text-tertiary[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-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{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-9d73220c]:hover{color:#16696d}.suggested-title-label[data-v-9d73220c]: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 ne, vShow as
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { CellStyleModule as oe, CheckboxEditorModule 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 ne, vShow as re, watch as B, withCtx as V, withDirectives as H, withModifiers as U } from "vue";
|
|
4
|
+
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as ie } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as ae } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as oe, CheckboxEditorModule as G, ClientSideRowModelModule as se, ColumnApiModule as ce, ColumnAutoSizeModule as K, CsvExportModule as le, CustomEditorModule as ue, CustomFilterModule as de, DateEditorModule as fe, EventApiModule as pe, GridStateModule as me, LargeTextEditorModule as he, ModuleRegistry as ge, NumberEditorModule as _e, PaginationModule as ve, QuickFilterModule as ye, RowApiModule as be, RowStyleModule as xe, ScrollApiModule as q, SelectEditorModule as Se, TextEditorModule as Ce, TextFilterModule as we, UndoRedoEditModule as J, themeQuartz as Y } from "ag-grid-community";
|
|
8
8
|
import { AdvancedFilterModule as Te, CellSelectionModule as Ee, ClientSideRowModelApiModule as De, ClipboardModule as Oe, ColumnMenuModule as ke, ContextMenuModule as Ae, LicenseManager as je, MultiFilterModule as Me, RenderApiModule as Ne, RichSelectModule as Pe, RowGroupingModule as Fe, RowSelectionModule as Ie, ServerSideRowModelApiModule as Le, ServerSideRowModelModule as Re, SetFilterModule as ze, TooltipModule as Be, ValidationModule as Ve } from "ag-grid-enterprise";
|
|
9
9
|
import { onClickOutside as He, onKeyStroke as Ue, toRef as We, useDebounceFn as X, useElementBounding as Ge, useElementHover as Z, useToggle as Ke, watchDebounced as qe } from "@vueuse/core";
|
|
10
10
|
import Je from "papaparse";
|
|
@@ -250,7 +250,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
250
250
|
emits: ["series-visibility-change"],
|
|
251
251
|
setup(e, { expose: n, emit: c }) {
|
|
252
252
|
let l = e, d = c;
|
|
253
|
-
|
|
253
|
+
ie.setLicenseKey(Jt);
|
|
254
254
|
let f = O(null), p = O({}), m = () => {
|
|
255
255
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
256
256
|
let e = f.value.$el;
|
|
@@ -358,7 +358,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
358
358
|
width: e?.width,
|
|
359
359
|
height: e?.height
|
|
360
360
|
}) }), (n, r) => (E(), o("div", Rt, [
|
|
361
|
-
u(I(
|
|
361
|
+
u(I(W), {
|
|
362
362
|
ref_key: "chartRef",
|
|
363
363
|
ref: f,
|
|
364
364
|
style: x([{ height: "100%" }, g.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -464,7 +464,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
464
464
|
}, C = () => {
|
|
465
465
|
p.value = !1;
|
|
466
466
|
};
|
|
467
|
-
t({ closeDropdown: C }),
|
|
467
|
+
t({ closeDropdown: C }), B(p, (e) => {
|
|
468
468
|
e ? v(() => {
|
|
469
469
|
b(), f("dropdown-open");
|
|
470
470
|
}) : f("dropdown-closed");
|
|
@@ -476,7 +476,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
476
476
|
zIndex: 10,
|
|
477
477
|
...d.popoverCssProperties
|
|
478
478
|
} : d.popoverCssProperties);
|
|
479
|
-
return (t, r) =>
|
|
479
|
+
return (t, r) => H((E(), o("div", en, [s("button", {
|
|
480
480
|
ref_key: "triggerRef",
|
|
481
481
|
ref: m,
|
|
482
482
|
class: y({
|
|
@@ -499,7 +499,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
499
499
|
isSortable: e.isSortable,
|
|
500
500
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
501
501
|
}, {
|
|
502
|
-
default:
|
|
502
|
+
default: V(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", nn, "Loading...")) : a("", !0)], !0)]),
|
|
503
503
|
_: 3
|
|
504
504
|
}, 8, [
|
|
505
505
|
"class",
|
|
@@ -697,7 +697,7 @@ function bn(e, t = {}) {
|
|
|
697
697
|
characterData: !0
|
|
698
698
|
}));
|
|
699
699
|
};
|
|
700
|
-
return w(g), C(m),
|
|
700
|
+
return w(g), C(m), B(() => I(n), () => {
|
|
701
701
|
c.value && g();
|
|
702
702
|
}), {
|
|
703
703
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -1557,13 +1557,13 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1557
1557
|
strategy: t.positioningStrategy,
|
|
1558
1558
|
middleware: h
|
|
1559
1559
|
});
|
|
1560
|
-
|
|
1560
|
+
B(c, (e) => {
|
|
1561
1561
|
e && u.value && d.value && _();
|
|
1562
1562
|
});
|
|
1563
1563
|
let v = Ge(u), y = X(() => {
|
|
1564
1564
|
c.value && _();
|
|
1565
1565
|
}, 5);
|
|
1566
|
-
|
|
1566
|
+
B([
|
|
1567
1567
|
v.top,
|
|
1568
1568
|
v.left,
|
|
1569
1569
|
v.width,
|
|
@@ -1590,11 +1590,11 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1590
1590
|
}, N = () => {
|
|
1591
1591
|
t.disableClickOutsideToClose || D(!1);
|
|
1592
1592
|
};
|
|
1593
|
-
return
|
|
1593
|
+
return B(j, (e) => {
|
|
1594
1594
|
t.showOnHover && D(e);
|
|
1595
1595
|
}), T(() => {
|
|
1596
1596
|
C();
|
|
1597
|
-
}), (r, u) =>
|
|
1597
|
+
}), (r, u) => H((E(), o("div", hi, [s("div", {
|
|
1598
1598
|
ref_key: "triggerWrapper",
|
|
1599
1599
|
ref: l,
|
|
1600
1600
|
onClick: M
|
|
@@ -1602,12 +1602,12 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1602
1602
|
key: 0,
|
|
1603
1603
|
to: e.teleportLocation,
|
|
1604
1604
|
disabled: !t.useTeleport
|
|
1605
|
-
}, [
|
|
1605
|
+
}, [H(s("div", {
|
|
1606
1606
|
class: "pv-floating",
|
|
1607
1607
|
ref_key: "floating",
|
|
1608
1608
|
ref: d,
|
|
1609
1609
|
style: x(b.value)
|
|
1610
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1610
|
+
}, [A(r.$slots, "content")], 4), [[re, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(Xe), [N, { ignore: k.value }]]]);
|
|
1611
1611
|
}
|
|
1612
1612
|
}), _i = ["data-style"], vi = /* @__PURE__ */ d({
|
|
1613
1613
|
__name: "PvTag",
|
|
@@ -1667,7 +1667,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1667
1667
|
"data-testid": "pv-tag-close-icon",
|
|
1668
1668
|
size: 12,
|
|
1669
1669
|
name: "close",
|
|
1670
|
-
onClick: r[0] ||=
|
|
1670
|
+
onClick: r[0] ||= U((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
1671
1671
|
})) : a("", !0)
|
|
1672
1672
|
], 14, _i));
|
|
1673
1673
|
}
|
|
@@ -1699,11 +1699,11 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1699
1699
|
},
|
|
1700
1700
|
setup(e) {
|
|
1701
1701
|
return (t, n) => (E(), i(gi, b(p(t.$props)), c({
|
|
1702
|
-
trigger:
|
|
1702
|
+
trigger: V(() => [A(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1703
1703
|
_: 2
|
|
1704
1704
|
}, [t.$slots.content || e.description ? {
|
|
1705
1705
|
name: "content",
|
|
1706
|
-
fn:
|
|
1706
|
+
fn: V(() => [s("div", {
|
|
1707
1707
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1708
1708
|
role: "tooltip",
|
|
1709
1709
|
"data-variant": e.variant
|
|
@@ -1731,7 +1731,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1731
1731
|
position: "bottom-right",
|
|
1732
1732
|
style: { width: "100%" }
|
|
1733
1733
|
}, c({
|
|
1734
|
-
trigger:
|
|
1734
|
+
trigger: V(() => [u(gn, {
|
|
1735
1735
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1736
1736
|
variant: "ghost",
|
|
1737
1737
|
label: e.label,
|
|
@@ -1754,7 +1754,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1754
1754
|
_: 2
|
|
1755
1755
|
}, [e.disabledReason ? {
|
|
1756
1756
|
name: "content",
|
|
1757
|
-
fn:
|
|
1757
|
+
fn: V(() => [l(P(e.disabledReason), 1)]),
|
|
1758
1758
|
key: "0"
|
|
1759
1759
|
} : void 0]), 1024))), 128))], 2));
|
|
1760
1760
|
}
|
|
@@ -1774,7 +1774,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1774
1774
|
"pv-icon": n.value,
|
|
1775
1775
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1776
1776
|
})), c = r(() => ({ width: i.value })), l = r(() => `${t.name.toLowerCase().replace(/[^a-z\s]/g, "").trim().replace(/\s+/g, "_")}.svg`), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1777
|
-
return
|
|
1777
|
+
return B(u, () => {
|
|
1778
1778
|
n.value = !0;
|
|
1779
1779
|
}), (e, t) => (E(), o("div", Si, [n.value ? (E(), o("div", {
|
|
1780
1780
|
key: 0,
|
|
@@ -1822,7 +1822,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1822
1822
|
emits: ["update:modelValue"],
|
|
1823
1823
|
setup(e) {
|
|
1824
1824
|
let t = e, n = z("dialog"), r = L(e, "modelValue");
|
|
1825
|
-
|
|
1825
|
+
B(() => r.value, () => {
|
|
1826
1826
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1827
1827
|
});
|
|
1828
1828
|
let i = () => {
|
|
@@ -1920,7 +1920,7 @@ var Mi = [
|
|
|
1920
1920
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1921
1921
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1922
1922
|
});
|
|
1923
|
-
}), t({ input: i }), (t, n) => (E(), o("div", Fi, [
|
|
1923
|
+
}), t({ input: i }), (t, n) => (E(), o("div", Fi, [H(s("input", {
|
|
1924
1924
|
ref: "search-input",
|
|
1925
1925
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1926
1926
|
"data-testid": "pv-search-input",
|
|
@@ -1990,7 +1990,7 @@ var Bi = {
|
|
|
1990
1990
|
}, p = () => {
|
|
1991
1991
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1992
1992
|
};
|
|
1993
|
-
return
|
|
1993
|
+
return B(() => d.value, () => {
|
|
1994
1994
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1995
1995
|
}), Ue("Escape", () => {
|
|
1996
1996
|
c.value && d.value && p();
|
|
@@ -2223,11 +2223,11 @@ var Bi = {
|
|
|
2223
2223
|
variant: "dark",
|
|
2224
2224
|
"tooltip-position": "top-left"
|
|
2225
2225
|
}, {
|
|
2226
|
-
label:
|
|
2226
|
+
label: V(() => [u(ln, {
|
|
2227
2227
|
name: "close",
|
|
2228
|
-
onClick: r[0] ||=
|
|
2228
|
+
onClick: r[0] ||= U((e) => n.$emit("handle-clear"), ["stop"])
|
|
2229
2229
|
})]),
|
|
2230
|
-
"tooltip-content":
|
|
2230
|
+
"tooltip-content": V(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2231
2231
|
_: 1
|
|
2232
2232
|
})) : a("", !0)
|
|
2233
2233
|
], 10, ea));
|
|
@@ -2328,7 +2328,7 @@ var ha = {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
return w(() => {
|
|
2330
2330
|
p();
|
|
2331
|
-
}),
|
|
2331
|
+
}), B(() => n.queryText, () => {
|
|
2332
2332
|
p();
|
|
2333
2333
|
}), (n, r) => (E(), o(t, null, [
|
|
2334
2334
|
e.avatar ? (E(), i($i, {
|
|
@@ -2419,7 +2419,7 @@ var ha = {
|
|
|
2419
2419
|
"pv-input-xsmall": e.size === "sm",
|
|
2420
2420
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2421
2421
|
}])
|
|
2422
|
-
}, [e.label ? (E(), o("span", xa, P(e.label), 1)) : a("", !0),
|
|
2422
|
+
}, [e.label ? (E(), o("span", xa, P(e.label), 1)) : a("", !0), H(s("input", {
|
|
2423
2423
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2424
2424
|
disabled: e.disabled,
|
|
2425
2425
|
"aria-label": e.ariaLabel,
|
|
@@ -2443,11 +2443,11 @@ var ha = {
|
|
|
2443
2443
|
useTeleport: !0,
|
|
2444
2444
|
variant: "white"
|
|
2445
2445
|
}, c({
|
|
2446
|
-
trigger:
|
|
2446
|
+
trigger: V(() => [u(gn, {
|
|
2447
2447
|
variant: "ghost",
|
|
2448
2448
|
class: y(["pv-text-brand", { "pv-menu-action-button": !l.value }]),
|
|
2449
2449
|
leftIcon: n.value,
|
|
2450
|
-
onClick:
|
|
2450
|
+
onClick: U(d, ["stop"]),
|
|
2451
2451
|
disabled: a.value
|
|
2452
2452
|
}, null, 8, [
|
|
2453
2453
|
"leftIcon",
|
|
@@ -2457,7 +2457,7 @@ var ha = {
|
|
|
2457
2457
|
_: 2
|
|
2458
2458
|
}, [o.value ? {
|
|
2459
2459
|
name: "content",
|
|
2460
|
-
fn:
|
|
2460
|
+
fn: V(() => [s("div", null, P(o.value), 1)]),
|
|
2461
2461
|
key: "0"
|
|
2462
2462
|
} : void 0]), 1024));
|
|
2463
2463
|
}
|
|
@@ -2595,7 +2595,7 @@ var ha = {
|
|
|
2595
2595
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
2596
2596
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
2597
2597
|
"aria-expanded": e.expanded,
|
|
2598
|
-
onClick: r[0] ||=
|
|
2598
|
+
onClick: r[0] ||= U((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2599
2599
|
}, [u(ln, {
|
|
2600
2600
|
name: e.chevronIcon ?? "chevron-right",
|
|
2601
2601
|
size: 12
|
|
@@ -2635,7 +2635,7 @@ var ha = {
|
|
|
2635
2635
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2636
2636
|
setup(e, { emit: n }) {
|
|
2637
2637
|
let i = e, s = m(Ta, void 0), c = L(e, "selectedIds"), l = m(ja, O(!1)), d = m(Aa, O(!1)), f = m(Oa, void 0), p = m(ka, void 0), h = O(i.defaultExpanded ?? !1), g = O(!1), v = O(!1), b = O(i.children ?? []), S = O(/* @__PURE__ */ new Set());
|
|
2638
|
-
|
|
2638
|
+
B(() => i.children, (e) => {
|
|
2639
2639
|
if (!e) {
|
|
2640
2640
|
b.value = [];
|
|
2641
2641
|
return;
|
|
@@ -2725,7 +2725,7 @@ var ha = {
|
|
|
2725
2725
|
key: 0,
|
|
2726
2726
|
role: "list",
|
|
2727
2727
|
style: x(w.value)
|
|
2728
|
-
}, [(E(!0), o(t, null, k(b.value, (t) =>
|
|
2728
|
+
}, [(E(!0), o(t, null, k(b.value, (t) => H((E(), o("li", {
|
|
2729
2729
|
key: t.id,
|
|
2730
2730
|
"data-active": N(t) ? "true" : null,
|
|
2731
2731
|
class: y(e.itemClass)
|
|
@@ -2746,7 +2746,7 @@ var ha = {
|
|
|
2746
2746
|
"queryText",
|
|
2747
2747
|
"highlightSearchText",
|
|
2748
2748
|
"level"
|
|
2749
|
-
])], 10, Ia)), [[
|
|
2749
|
+
])], 10, Ia)), [[re, !i.disabled || P(t)]])), 128)), ee.value ? (E(), o("li", La, [u(gn, {
|
|
2750
2750
|
class: "pv-text-brand",
|
|
2751
2751
|
variant: "ghost",
|
|
2752
2752
|
label: "See more",
|
|
@@ -2780,9 +2780,9 @@ var ha = {
|
|
|
2780
2780
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2781
2781
|
setup(e, { emit: n }) {
|
|
2782
2782
|
let i = e, s = n, c = L(e, "selectedItems"), l = N(c.value);
|
|
2783
|
-
|
|
2783
|
+
B(c, (e) => {
|
|
2784
2784
|
l.value = e;
|
|
2785
|
-
}),
|
|
2785
|
+
}), B(l, (e) => {
|
|
2786
2786
|
e !== c.value && (c.value = e);
|
|
2787
2787
|
}), D(Ta, l), D(Ea, r(() => !!i.enableCascadeSelection));
|
|
2788
2788
|
let d = m(Da, void 0), f = m(Aa, O(!1)), p = m(Oa, void 0), h = m(ka, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -2822,7 +2822,7 @@ var ha = {
|
|
|
2822
2822
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
2823
2823
|
return !1;
|
|
2824
2824
|
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
2825
|
-
return (n, r) => (E(), o("ul", Ba, [(E(!0), o(t, null, k(e.options, (t) =>
|
|
2825
|
+
return (n, r) => (E(), o("ul", Ba, [(E(!0), o(t, null, k(e.options, (t) => H((E(), o("li", {
|
|
2826
2826
|
key: t.id,
|
|
2827
2827
|
"data-active": S(t),
|
|
2828
2828
|
"data-testid": e.itemTestId,
|
|
@@ -2839,7 +2839,7 @@ var ha = {
|
|
|
2839
2839
|
"config",
|
|
2840
2840
|
"itemClass",
|
|
2841
2841
|
"queryText"
|
|
2842
|
-
])], 10, Va)), [[
|
|
2842
|
+
])], 10, Va)), [[re, C(t, e.isLoading || i.readOnly)]])), 128)), e.hasMoreOptions && !i.readOnly ? (E(), o("li", Ha, [u(gn, {
|
|
2843
2843
|
class: "pv-text-brand",
|
|
2844
2844
|
variant: "ghost",
|
|
2845
2845
|
label: "See more",
|
|
@@ -2992,7 +2992,7 @@ var ha = {
|
|
|
2992
2992
|
state: "deselected"
|
|
2993
2993
|
}))), t.push(r);
|
|
2994
2994
|
}
|
|
2995
|
-
for (let n of
|
|
2995
|
+
for (let n of W.value) e.has(n.id) || t.push({
|
|
2996
2996
|
id: n.id,
|
|
2997
2997
|
state: "selected"
|
|
2998
2998
|
});
|
|
@@ -3000,18 +3000,18 @@ var ha = {
|
|
|
3000
3000
|
}, C = r(() => c.hasMoreOptions == null ? c.totalOptionCount == null ? !1 : c.totalOptionCount > c.options.length : c.hasMoreOptions), w = r(() => {
|
|
3001
3001
|
let e = c.additionalCounter ?? 0;
|
|
3002
3002
|
if (c.enableCascadeSelection && c.countSelectedParents && R.value?.length) return pa(R.value) + e;
|
|
3003
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
3004
|
-
let t = new Set(
|
|
3003
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
3004
|
+
let t = new Set(W.value.map((e) => e.id));
|
|
3005
3005
|
return fa(c.options, t) + e;
|
|
3006
|
-
}), T = r(() =>
|
|
3006
|
+
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && R.value?.length ? R.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3007
3007
|
g("see-more", e ?? {});
|
|
3008
|
-
}, j = z("searchInputRef"), [M, F] = Ke(c.defaultOpen), ee = L(e, "modelValue"), R = L(e, "selectionState"), te = L(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"),
|
|
3009
|
-
|
|
3010
|
-
},
|
|
3011
|
-
ne.value && (ee.value =
|
|
3012
|
-
},
|
|
3013
|
-
ne.value && (
|
|
3014
|
-
},
|
|
3008
|
+
}, j = z("searchInputRef"), [M, F] = Ke(c.defaultOpen), ee = L(e, "modelValue"), R = L(e, "selectionState"), te = L(e, "searchInput"), ne = r(() => c.menuActionsVariant === "cancel-confirm"), re = (e) => {
|
|
3009
|
+
W.value = e, ne.value || (ee.value = e, R.value = S());
|
|
3010
|
+
}, H = () => {
|
|
3011
|
+
ne.value && (ee.value = W.value, R.value = S());
|
|
3012
|
+
}, U = () => {
|
|
3013
|
+
ne.value && (W.value = ee.value);
|
|
3014
|
+
}, W = N(ee.value), ie = (e) => d.value.get(e), ae = (e) => {
|
|
3015
3015
|
if (!c.enableCascadeSelection || !e) return;
|
|
3016
3016
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3017
3017
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3027,54 +3027,54 @@ var ha = {
|
|
|
3027
3027
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
3028
3028
|
continue;
|
|
3029
3029
|
}
|
|
3030
|
-
a(
|
|
3030
|
+
a(ie(r.id), r.id);
|
|
3031
3031
|
}
|
|
3032
|
-
f.value = t, m.value = n,
|
|
3032
|
+
f.value = t, m.value = n, W.value = r;
|
|
3033
3033
|
}, oe = r({
|
|
3034
|
-
get: () =>
|
|
3034
|
+
get: () => W.value,
|
|
3035
3035
|
set: (e) => {
|
|
3036
|
-
c.readOnly ||
|
|
3036
|
+
c.readOnly || re(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), G = () => {
|
|
3039
3039
|
te.value = "", M.value = !1;
|
|
3040
|
-
},
|
|
3040
|
+
}, se = r(() => {
|
|
3041
3041
|
let e = c.size === "lg" ? 24 : 30;
|
|
3042
3042
|
return c.overlayTrigger ? -e : void 0;
|
|
3043
3043
|
});
|
|
3044
|
-
|
|
3044
|
+
B(() => ee.value, (e) => {
|
|
3045
3045
|
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
3046
|
-
|
|
3046
|
+
ae(R.value);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
|
-
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3049
|
+
W.value = e;
|
|
3050
|
+
}), B(() => [R.value, c.options], () => {
|
|
3051
|
+
ae(R.value);
|
|
3052
3052
|
}, {
|
|
3053
3053
|
deep: !0,
|
|
3054
3054
|
immediate: !0
|
|
3055
|
-
}),
|
|
3056
|
-
e ? (
|
|
3055
|
+
}), B(M, (e) => {
|
|
3056
|
+
e ? (U(), v(() => {
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
|
-
})) : (
|
|
3058
|
+
})) : (U(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
|
-
let
|
|
3060
|
+
let ce = r(() => {
|
|
3061
3061
|
if (te.value === "") return c.options;
|
|
3062
3062
|
let e = te.value.toLocaleLowerCase();
|
|
3063
3063
|
return c.enableCascadeSelection ? ma(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3064
|
-
}),
|
|
3064
|
+
}), K = () => {
|
|
3065
3065
|
if (c.enableCascadeSelection) {
|
|
3066
3066
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
3067
3067
|
for (let r of n) la(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
3068
3068
|
};
|
|
3069
|
-
t(
|
|
3069
|
+
t(ce.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3071
|
+
re(c.enableCascadeSelection ? ua(ce.value) : ce.value);
|
|
3072
3072
|
}, le = () => {
|
|
3073
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
3073
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), re([]);
|
|
3074
3074
|
}, ue = () => {
|
|
3075
|
-
|
|
3075
|
+
U(), G();
|
|
3076
3076
|
}, de = () => {
|
|
3077
|
-
|
|
3077
|
+
H(), G();
|
|
3078
3078
|
}, fe = r(() => {
|
|
3079
3079
|
if (!c.groupings) return;
|
|
3080
3080
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3099,12 +3099,12 @@ var ha = {
|
|
|
3099
3099
|
return e instanceof ShadowRoot ? e.host : null;
|
|
3100
3100
|
}), { present: _e } = bn("header", { host: ge }), { present: ve } = bn("no-results", { host: ge }), { present: ye } = bn("footer", { host: ge });
|
|
3101
3101
|
return Ue("Escape", () => {
|
|
3102
|
-
M.value &&
|
|
3102
|
+
M.value && G();
|
|
3103
3103
|
}), (n, r) => (E(), i(gi, _({
|
|
3104
3104
|
modelValue: I(M),
|
|
3105
3105
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
3106
|
-
}, e.popoverProperties, { offset:
|
|
3107
|
-
trigger:
|
|
3106
|
+
}, e.popoverProperties, { offset: se.value }), {
|
|
3107
|
+
trigger: V(() => [u(ia, {
|
|
3108
3108
|
ref: "select-button-trigger-ref",
|
|
3109
3109
|
variant: e.variant,
|
|
3110
3110
|
size: e.size,
|
|
@@ -3119,7 +3119,7 @@ var ha = {
|
|
|
3119
3119
|
open: I(M),
|
|
3120
3120
|
"counter-value": w.value,
|
|
3121
3121
|
"counter-style": e.counterStyle,
|
|
3122
|
-
"selected-items":
|
|
3122
|
+
"selected-items": W.value,
|
|
3123
3123
|
onHandleClear: le,
|
|
3124
3124
|
onHandleToggleDropdown: r[0] ||= (e) => I(F)()
|
|
3125
3125
|
}, null, 8, [
|
|
@@ -3138,7 +3138,7 @@ var ha = {
|
|
|
3138
3138
|
"counter-style",
|
|
3139
3139
|
"selected-items"
|
|
3140
3140
|
])]),
|
|
3141
|
-
content:
|
|
3141
|
+
content: V(() => [s("div", {
|
|
3142
3142
|
ref_key: "popoverContentRef",
|
|
3143
3143
|
ref: he,
|
|
3144
3144
|
class: "pv-popover",
|
|
@@ -3161,7 +3161,7 @@ var ha = {
|
|
|
3161
3161
|
"disabled"
|
|
3162
3162
|
])])),
|
|
3163
3163
|
I(_e) ? (E(), o("div", Ga, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
3164
|
-
|
|
3164
|
+
ce.value.length > 0 ? (E(), o(t, { key: 2 }, [pe.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
3165
3165
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", Ka, P(t), 1)),
|
|
3166
3166
|
u(Ua, {
|
|
3167
3167
|
selectedItems: oe.value,
|
|
@@ -3194,7 +3194,7 @@ var ha = {
|
|
|
3194
3194
|
key: 1,
|
|
3195
3195
|
selectedItems: oe.value,
|
|
3196
3196
|
"onUpdate:selectedItems": r[3] ||= (e) => oe.value = e,
|
|
3197
|
-
options:
|
|
3197
|
+
options: ce.value,
|
|
3198
3198
|
config: l.value,
|
|
3199
3199
|
queryText: e.highlightSearchText ? te.value : null,
|
|
3200
3200
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -3215,13 +3215,13 @@ var ha = {
|
|
|
3215
3215
|
"hasMoreOptions",
|
|
3216
3216
|
"readOnly"
|
|
3217
3217
|
]))], 64)) : a("", !0),
|
|
3218
|
-
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) :
|
|
3218
|
+
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) : ce.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ve) ? A(n.$slots, "no-results", b(_({ key: 0 }, me.value))) : (E(), i(ca, { key: 1 }))], 64)) : a("", !0),
|
|
3219
3219
|
s("div", Ya, [I(ye) ? A(n.$slots, "footer", b(_({ key: 0 }, me.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Xi, {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
variant: e.menuActionsVariant,
|
|
3222
3222
|
disabled: e.isLoading,
|
|
3223
3223
|
onHandleClearAll: le,
|
|
3224
|
-
onHandleSelectAll:
|
|
3224
|
+
onHandleSelectAll: K,
|
|
3225
3225
|
onHandleCancel: ue,
|
|
3226
3226
|
onHandleConfirm: de
|
|
3227
3227
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
@@ -3281,7 +3281,7 @@ var ha = {
|
|
|
3281
3281
|
variant: n.optionsVariant,
|
|
3282
3282
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3283
3283
|
})), l = t, [d] = Ke(n.defaultOpen), f = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3284
|
-
|
|
3284
|
+
B(d, (e) => {
|
|
3285
3285
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3286
3286
|
});
|
|
3287
3287
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3322,7 +3322,7 @@ var ha = {
|
|
|
3322
3322
|
modelValue: I(d),
|
|
3323
3323
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3324
3324
|
}, e.popoverProperties), {
|
|
3325
|
-
trigger:
|
|
3325
|
+
trigger: V(() => [u(ia, {
|
|
3326
3326
|
class: "pv-full-width",
|
|
3327
3327
|
ref: "select-button-trigger-ref",
|
|
3328
3328
|
variant: e.variant,
|
|
@@ -3364,7 +3364,7 @@ var ha = {
|
|
|
3364
3364
|
"renderer",
|
|
3365
3365
|
"selectedOption"
|
|
3366
3366
|
])]),
|
|
3367
|
-
content:
|
|
3367
|
+
content: V(() => [s("div", {
|
|
3368
3368
|
class: "pv-popover",
|
|
3369
3369
|
"data-test-id": "pv-popover",
|
|
3370
3370
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3776,7 +3776,10 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3776
3776
|
config: {}
|
|
3777
3777
|
},
|
|
3778
3778
|
setup(e) {
|
|
3779
|
-
let t = e, n = r(() => t.context), i = O(null), c = r(() => n.value?.exactMatch || !1), l = r(() => t.text), d = r(() => t.searchText || ""), f = r(() => n.value?.queryDisplayField), p = r(() =>
|
|
3779
|
+
let t = e, n = r(() => t.context), i = O(null), c = r(() => n.value?.exactMatch || !1), l = r(() => t.text), d = r(() => t.searchText || ""), f = r(() => n.value?.queryDisplayField), p = r(() => {
|
|
3780
|
+
let e = t.icon || "search";
|
|
3781
|
+
return c.value ? e : "search";
|
|
3782
|
+
});
|
|
3780
3783
|
return w(() => {
|
|
3781
3784
|
if (i.value && d.value) {
|
|
3782
3785
|
let e = RegExp(`(${d.value})`, "gi");
|
|
@@ -3788,7 +3791,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3788
3791
|
class: "pv-text-body-md"
|
|
3789
3792
|
}, P(l.value), 513), f.value ? (E(), o("p", Io, [c.value ? a("", !0) : (E(), o("span", Lo, "Search in ")), s("span", Ro, P(f.value), 1)])) : a("", !0)])])]));
|
|
3790
3793
|
}
|
|
3791
|
-
}), [["__scopeId", "data-v-
|
|
3794
|
+
}), [["__scopeId", "data-v-4e159eee"]]), Bo = /* @__PURE__ */ d({
|
|
3792
3795
|
__name: "QueryFormatter",
|
|
3793
3796
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
3794
3797
|
modelValue: { required: !0 },
|
|
@@ -3916,7 +3919,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3916
3919
|
context: e.queryTerm
|
|
3917
3920
|
}));
|
|
3918
3921
|
});
|
|
3919
|
-
|
|
3922
|
+
B([
|
|
3920
3923
|
A,
|
|
3921
3924
|
d,
|
|
3922
3925
|
() => n.optionsLoading
|
|
@@ -3950,7 +3953,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3950
3953
|
let ee = () => {
|
|
3951
3954
|
d.value = "";
|
|
3952
3955
|
};
|
|
3953
|
-
return (n, r) =>
|
|
3956
|
+
return (n, r) => H((E(), o("div", {
|
|
3954
3957
|
ref: "query-builder-input",
|
|
3955
3958
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3956
3959
|
onFocus: F,
|
|
@@ -3976,7 +3979,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3976
3979
|
"modelValue",
|
|
3977
3980
|
"wrap-content",
|
|
3978
3981
|
"query-term-display-limit"
|
|
3979
|
-
]),
|
|
3982
|
+
]), H(s("input", {
|
|
3980
3983
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3981
3984
|
ref: "search-input",
|
|
3982
3985
|
"data-testid": "pv-search-input",
|
|
@@ -4004,7 +4007,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4004
4007
|
},
|
|
4005
4008
|
isList: !0
|
|
4006
4009
|
}, {
|
|
4007
|
-
default:
|
|
4010
|
+
default: V(() => [e.optionsLoading ? (E(), o("div", Uo, [u(St, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(za, _({
|
|
4008
4011
|
key: `${t}-${e.searchText}`,
|
|
4009
4012
|
ref_for: !0
|
|
4010
4013
|
}, e, {
|
|
@@ -4036,7 +4039,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4036
4039
|
},
|
|
4037
4040
|
setup(e) {
|
|
4038
4041
|
let n = m(Jo, O(null)), c = m(Qo, O([])), l = m($o, O([])), u = e;
|
|
4039
|
-
|
|
4042
|
+
B(l, () => {}, { deep: !0 });
|
|
4040
4043
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
4041
4044
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
4042
4045
|
}, p = r(() => ({ "pv-hide": c.value.length === 0 })), h = r(() => u.rowGroupLimit ? l.value.length >= u.rowGroupLimit : !1), g = r(() => l.value.map((e) => c.value.find((t) => t.field === e)).filter((e) => e !== void 0)), _ = r(() => c.value.filter((e) => !l.value.includes(e.field))), v = r(() => {
|
|
@@ -4067,12 +4070,12 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4067
4070
|
class: y(p.value),
|
|
4068
4071
|
onListOrderUpdated: x
|
|
4069
4072
|
}, {
|
|
4070
|
-
trigger:
|
|
4073
|
+
trigger: V(() => [s("div", ys, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(pn), {
|
|
4071
4074
|
key: 0,
|
|
4072
4075
|
value: I(l).length,
|
|
4073
4076
|
variant: "tertiary"
|
|
4074
4077
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
4075
|
-
default:
|
|
4078
|
+
default: V(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
4076
4079
|
key: 0,
|
|
4077
4080
|
id: b(e.value)
|
|
4078
4081
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -4194,14 +4197,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4194
4197
|
tooltipPosition: "center-left",
|
|
4195
4198
|
size: "sm"
|
|
4196
4199
|
}, {
|
|
4197
|
-
label:
|
|
4200
|
+
label: V(() => [u(gn, {
|
|
4198
4201
|
class: y(j.value + " pv-text-brand"),
|
|
4199
4202
|
variant: "ghost",
|
|
4200
4203
|
"left-icon": "focus",
|
|
4201
4204
|
ariaLabel: "Remove focus",
|
|
4202
4205
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
4203
4206
|
}, null, 8, ["class"])]),
|
|
4204
|
-
"tooltip-content":
|
|
4207
|
+
"tooltip-content": V(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
4205
4208
|
_: 1
|
|
4206
4209
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Hs, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
4207
4210
|
}
|
|
@@ -4233,14 +4236,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4233
4236
|
"col-def": o.value,
|
|
4234
4237
|
"cell-params": e.params.cellParams
|
|
4235
4238
|
}, {
|
|
4236
|
-
default:
|
|
4239
|
+
default: V(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4237
4240
|
_: 1
|
|
4238
4241
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Ns, {
|
|
4239
4242
|
key: 1,
|
|
4240
4243
|
"col-def": s.value,
|
|
4241
4244
|
"cell-params": c.value
|
|
4242
4245
|
}, {
|
|
4243
|
-
default:
|
|
4246
|
+
default: V(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4244
4247
|
_: 1
|
|
4245
4248
|
}, 8, ["col-def", "cell-params"]));
|
|
4246
4249
|
}
|
|
@@ -4765,7 +4768,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4765
4768
|
}), y = e.filterOptionsMap, b = e.filterSelectedValueMap, x = e.filterSelectedMetadataMap, S = e.filterSearchQueries, C = O({}), w = O({}), T = async (t) => {
|
|
4766
4769
|
let n = await e.fetchFilterOptions(t);
|
|
4767
4770
|
return C.value[t.field] = n, w.value[t.field] = !1, s.value[t.field] = Date.now(), n;
|
|
4768
|
-
}, E = O(!1), D = O(!1), k = O({}),
|
|
4771
|
+
}, E = O(!1), D = O(!1), k = O(void 0), A = O({}), j = O(/* @__PURE__ */ new Set()), M = O({}), P = e.stagedFilterSelectedValueMap, F = (e) => {
|
|
4769
4772
|
let t = {};
|
|
4770
4773
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4771
4774
|
t[e] = n;
|
|
@@ -4775,28 +4778,30 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4775
4778
|
filterType: "set",
|
|
4776
4779
|
values: r
|
|
4777
4780
|
});
|
|
4778
|
-
}), i.value != null && Object.entries(
|
|
4781
|
+
}), i.value != null && Object.entries(P.value).forEach(([e, n]) => {
|
|
4779
4782
|
let r = n.filter((e) => !!e);
|
|
4780
4783
|
r.length > 0 ? t[e] = {
|
|
4781
4784
|
filterType: "set",
|
|
4782
4785
|
values: r
|
|
4783
4786
|
} : delete t[e];
|
|
4784
4787
|
}), t;
|
|
4785
|
-
},
|
|
4788
|
+
}, I = (e) => {
|
|
4786
4789
|
if (!e) return e ?? null;
|
|
4787
4790
|
if (!e.startsWith("__")) return e;
|
|
4788
4791
|
let t = e.slice(2).split("__");
|
|
4789
4792
|
return t.length >= 2 ? t[1] : e;
|
|
4790
|
-
},
|
|
4793
|
+
}, ee = (e) => e ? e.rawValue == null ? e.metadata?.rawValue == null ? I(e.value) : String(e.metadata.rawValue) : String(e.rawValue) : null, L = (e, t, n = 0) => {
|
|
4791
4794
|
if (!e || n > 25) return !1;
|
|
4792
4795
|
if (e.value === t.value) return !0;
|
|
4793
|
-
let r =
|
|
4794
|
-
return r != null && i != null && r === i ? !0 : e.children?.some((e) =>
|
|
4795
|
-
},
|
|
4796
|
+
let r = ee(e), i = ee(t);
|
|
4797
|
+
return r != null && i != null && r === i ? !0 : e.children?.some((e) => L(e, t, n + 1)) ?? !1;
|
|
4798
|
+
}, R = (e) => {
|
|
4799
|
+
c.value[e] = (c.value[e] || 0) + 1;
|
|
4800
|
+
}, z = async (e, t) => {
|
|
4796
4801
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4797
4802
|
if (t?.useStaged !== !1 && i.value != null) if (Xc(i.value)) {
|
|
4798
4803
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
4799
|
-
o =
|
|
4804
|
+
o = F(e && Xc(e) ? e : void 0);
|
|
4800
4805
|
} else o = i.value;
|
|
4801
4806
|
let l = {
|
|
4802
4807
|
api: t?.api,
|
|
@@ -4812,12 +4817,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4812
4817
|
h || (u.value[m] = !0);
|
|
4813
4818
|
let g = (c.value[m] || 0) + 1;
|
|
4814
4819
|
c.value[m] = g;
|
|
4815
|
-
let _ = a.map((e) =>
|
|
4820
|
+
let _ = a.map((e) => te(m, e) || {
|
|
4816
4821
|
value: e,
|
|
4817
4822
|
label: String(e)
|
|
4818
4823
|
}), v = await d.value?.(l), x;
|
|
4819
4824
|
if (v && !Array.isArray(v) ? (x = v.values, f.value[m] = v.hasMore, p.value[m] = v.totalCount) : (x = v, f.value[m] = void 0, p.value[m] = void 0), r && x && (x = x.map((t) => {
|
|
4820
|
-
let n =
|
|
4825
|
+
let n = ne(e, t);
|
|
4821
4826
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4822
4827
|
})), g === c.value[m]) {
|
|
4823
4828
|
let e = (t?.offset ?? 0) > 0, n = !!t?.parentId;
|
|
@@ -4836,12 +4841,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4836
4841
|
}) : e;
|
|
4837
4842
|
}
|
|
4838
4843
|
_.forEach((e) => {
|
|
4839
|
-
x?.some((t) =>
|
|
4844
|
+
x?.some((t) => L(t, e)) || x?.push(e);
|
|
4840
4845
|
}), x && (y.value[m] = x);
|
|
4841
4846
|
let r = x?.filter((e) => e != null).map((e) => e.value) || [], i = r.filter((e, t) => r.indexOf(e) === t);
|
|
4842
4847
|
return C.value[m] = i, w.value[m] = !1, s.value[m] = Date.now(), h || (u.value[m] = !1), i;
|
|
4843
4848
|
} else return [];
|
|
4844
|
-
},
|
|
4849
|
+
}, te = (e, t) => {
|
|
4845
4850
|
let n = [...y.value[e] || [], ...x.value[e] || []], r = (e, t) => {
|
|
4846
4851
|
let n = /* @__PURE__ */ new Map();
|
|
4847
4852
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4853,16 +4858,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4853
4858
|
};
|
|
4854
4859
|
}, i = n.filter((e) => e?.value === t);
|
|
4855
4860
|
if (i.length > 0) return i.reduce(r);
|
|
4856
|
-
let a =
|
|
4861
|
+
let a = I(t), o = (e) => {
|
|
4857
4862
|
for (let n of e) {
|
|
4858
4863
|
if (!n) continue;
|
|
4859
|
-
if (n.value === t || a != null &&
|
|
4864
|
+
if (n.value === t || a != null && ee(n) === a) return n;
|
|
4860
4865
|
let e = n.children ? o(n.children) : void 0;
|
|
4861
4866
|
if (e) return e;
|
|
4862
4867
|
}
|
|
4863
4868
|
};
|
|
4864
4869
|
return o(n);
|
|
4865
|
-
},
|
|
4870
|
+
}, ne = (e, t) => {
|
|
4866
4871
|
if (!t) return {};
|
|
4867
4872
|
let n = $(e)?.queryColIds || [];
|
|
4868
4873
|
if (n.length === 0) return {};
|
|
@@ -4875,7 +4880,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4875
4880
|
};
|
|
4876
4881
|
}
|
|
4877
4882
|
return {};
|
|
4878
|
-
},
|
|
4883
|
+
}, re = (e, t) => {
|
|
4879
4884
|
b.value[e] = t;
|
|
4880
4885
|
let r = [], i = n.value;
|
|
4881
4886
|
if (Zc(i)) {
|
|
@@ -4888,45 +4893,45 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4888
4893
|
r.push(...t);
|
|
4889
4894
|
let a = [];
|
|
4890
4895
|
return t.forEach((t) => {
|
|
4891
|
-
let n =
|
|
4896
|
+
let n = te(e, t);
|
|
4892
4897
|
n && a.push(n);
|
|
4893
4898
|
}), x.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4894
|
-
},
|
|
4899
|
+
}, B = (e) => b.value[e] || [], V = (e, t) => {
|
|
4895
4900
|
S.value[e] = t;
|
|
4896
|
-
},
|
|
4901
|
+
}, H = (e) => C.value[e] || [], U = (e, t) => {
|
|
4897
4902
|
C.value[e] = t;
|
|
4898
|
-
},
|
|
4899
|
-
|
|
4903
|
+
}, W = (e, t) => {
|
|
4904
|
+
A.value[e] = t;
|
|
4900
4905
|
}, ie = (e) => {
|
|
4901
|
-
let t =
|
|
4902
|
-
|
|
4903
|
-
},
|
|
4904
|
-
let t =
|
|
4906
|
+
let t = M.value[e] ?? 0;
|
|
4907
|
+
M.value[e] = t + 1, j.value.add(e);
|
|
4908
|
+
}, ae = (e) => {
|
|
4909
|
+
let t = M.value[e] ?? 0;
|
|
4905
4910
|
if (t <= 1) {
|
|
4906
|
-
delete
|
|
4911
|
+
delete M.value[e], j.value.delete(e);
|
|
4907
4912
|
return;
|
|
4908
4913
|
}
|
|
4909
|
-
|
|
4910
|
-
},
|
|
4914
|
+
M.value[e] = t - 1;
|
|
4915
|
+
}, oe = (e) => {
|
|
4911
4916
|
let t = new Set(e);
|
|
4912
4917
|
for (let n of e) {
|
|
4913
|
-
let e =
|
|
4918
|
+
let e = A.value[n] || [];
|
|
4914
4919
|
for (let n of e) t.add(n);
|
|
4915
4920
|
}
|
|
4916
|
-
for (let e of
|
|
4917
|
-
},
|
|
4918
|
-
|
|
4919
|
-
},
|
|
4921
|
+
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
4922
|
+
}, G = e.initStagedFilterSelections, se = e.clearStagedFilterSelections, ce = (e) => P.value[e] || [], K = (e, t) => {
|
|
4923
|
+
P.value[e] = t;
|
|
4924
|
+
}, le = (e) => {
|
|
4920
4925
|
t.value = e;
|
|
4921
|
-
},
|
|
4926
|
+
}, ue = (e) => {
|
|
4922
4927
|
(!e || t.value === e) && (t.value = null);
|
|
4923
|
-
},
|
|
4928
|
+
}, de = () => t.value?.getFilterModel() ?? n.value, fe = (e) => {
|
|
4924
4929
|
let r = t.value?.setFilterModel(e);
|
|
4925
4930
|
(!t.value || r === !1) && (n.value = e);
|
|
4926
|
-
},
|
|
4931
|
+
}, pe = (e) => {
|
|
4927
4932
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
4928
4933
|
(!t.value || n === !1) && (a.value = e);
|
|
4929
|
-
},
|
|
4934
|
+
}, me = (e) => t.value?.refreshData(e), he = (e, t) => {
|
|
4930
4935
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], a = r.filter((e) => i.includes(e));
|
|
4931
4936
|
[...r, ...i].filter((e) => !a.includes(e)).forEach((e) => n.add(e));
|
|
4932
4937
|
for (let r of a) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4936,7 +4941,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4936
4941
|
};
|
|
4937
4942
|
return qe([n, i], ([e, t], [r, i]) => {
|
|
4938
4943
|
let a = /* @__PURE__ */ new Set();
|
|
4939
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
4944
|
+
JSON.stringify(e) !== JSON.stringify(r) && he(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(t) !== JSON.stringify(i) && he(t || {}, n.value || {}).forEach((e) => a.add(e)), a.size > 0 && oe(a);
|
|
4940
4945
|
}, {
|
|
4941
4946
|
deep: !0,
|
|
4942
4947
|
debounce: 200,
|
|
@@ -4954,41 +4959,43 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4954
4959
|
filterValueMap: y,
|
|
4955
4960
|
filterValueSelectedMetadataMap: x,
|
|
4956
4961
|
filterStoreHandler: d,
|
|
4957
|
-
fetchFilterValues:
|
|
4958
|
-
|
|
4962
|
+
fetchFilterValues: z,
|
|
4963
|
+
invalidateFilterRequest: R,
|
|
4964
|
+
filterValueContext: te,
|
|
4959
4965
|
filterModelEmpty: _,
|
|
4960
|
-
getFilterSelectedValues:
|
|
4961
|
-
getSearchMatchDataFromFilterContext:
|
|
4966
|
+
getFilterSelectedValues: B,
|
|
4967
|
+
getSearchMatchDataFromFilterContext: ne,
|
|
4962
4968
|
isServerSideFilter: g,
|
|
4963
4969
|
stagedFilterModel: i,
|
|
4964
|
-
setFilterSelectedValues:
|
|
4965
|
-
setFilterValueSearchText:
|
|
4970
|
+
setFilterSelectedValues: re,
|
|
4971
|
+
setFilterValueSearchText: V,
|
|
4966
4972
|
tableSearchFilterModel: a,
|
|
4967
4973
|
tableSearchFilterModelEmpty: v,
|
|
4968
4974
|
tableSearchHandler: m,
|
|
4969
4975
|
filterValuesMap: C,
|
|
4970
|
-
getFilterValues:
|
|
4971
|
-
setFilterValues:
|
|
4976
|
+
getFilterValues: H,
|
|
4977
|
+
setFilterValues: U,
|
|
4972
4978
|
filterStaleMap: w,
|
|
4973
4979
|
refreshFiltersInBackground: E,
|
|
4974
4980
|
stageFilterChangesUntilDropdownCloses: D,
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4981
|
+
filterSearchMinLength: k,
|
|
4982
|
+
markOtherFieldsStale: oe,
|
|
4983
|
+
aggregateFieldMap: A,
|
|
4984
|
+
registerAggregateField: W,
|
|
4985
|
+
registeredFilterFields: j,
|
|
4979
4986
|
registerFilterField: ie,
|
|
4980
|
-
unregisterFilterField:
|
|
4981
|
-
stagedSelectedValuesMap:
|
|
4982
|
-
initStagedSelectedValues:
|
|
4983
|
-
clearStagedSelectedValues:
|
|
4984
|
-
getStagedSelectedValues:
|
|
4985
|
-
setStagedSelectedValues:
|
|
4986
|
-
registerFilterController:
|
|
4987
|
-
unregisterFilterController:
|
|
4988
|
-
getFilterModel:
|
|
4989
|
-
applyFilterModel:
|
|
4990
|
-
applyTableSearchFilterModel:
|
|
4991
|
-
refreshData:
|
|
4987
|
+
unregisterFilterField: ae,
|
|
4988
|
+
stagedSelectedValuesMap: P,
|
|
4989
|
+
initStagedSelectedValues: G,
|
|
4990
|
+
clearStagedSelectedValues: se,
|
|
4991
|
+
getStagedSelectedValues: ce,
|
|
4992
|
+
setStagedSelectedValues: K,
|
|
4993
|
+
registerFilterController: le,
|
|
4994
|
+
unregisterFilterController: ue,
|
|
4995
|
+
getFilterModel: de,
|
|
4996
|
+
applyFilterModel: fe,
|
|
4997
|
+
applyTableSearchFilterModel: pe,
|
|
4998
|
+
refreshData: me,
|
|
4992
4999
|
filterValueSearchTextMap: S,
|
|
4993
5000
|
filterValuesHasMoreMap: f,
|
|
4994
5001
|
filterValuesTotalCountMap: p
|
|
@@ -5000,126 +5007,129 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5000
5007
|
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().");
|
|
5001
5008
|
return e;
|
|
5002
5009
|
}, rl = (e) => {
|
|
5003
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l,
|
|
5004
|
-
get: () =>
|
|
5010
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l, invalidateFilterRequest: u, filterModel: d, stagedFilterModel: f, filterModelCleared: p, filterValuesLoadingStatus: h, filterValueContext: g, getFilterSelectedValues: _, isServerSideFilter: y, setFilterValueSearchText: b, setFilterSelectedValues: x, getFilterValues: S, setFilterValues: C, filterStaleMap: E, refreshFiltersInBackground: D, stageFilterChangesUntilDropdownCloses: k, filterSearchMinLength: A, markOtherFieldsStale: j, registerAggregateField: M, registerFilterField: N, unregisterFilterField: P, getStagedSelectedValues: F, setStagedSelectedValues: I, filterValueSearchTextMap: ee, filterValuesHasMoreMap: L, filterValuesTotalCountMap: R } = c, { computedFocuses: z, removeFocus: te, computedFocusType: ne } = Fs(), re = m(rs, O(!1)), V = m(ns, O(!1)), H = m(gs, O(!1)), U = r({
|
|
5011
|
+
get: () => K.value ? F(G.value) : _(G.value),
|
|
5005
5012
|
set: (e) => {
|
|
5006
|
-
|
|
5013
|
+
K.value ? I(G.value, e) : x(G.value, e);
|
|
5007
5014
|
}
|
|
5008
|
-
}),
|
|
5009
|
-
let e =
|
|
5010
|
-
if (
|
|
5011
|
-
let t = new Set(e), n =
|
|
5015
|
+
}), W = r(() => {
|
|
5016
|
+
let e = S(G.value);
|
|
5017
|
+
if (le.value && de.value.length > 0) {
|
|
5018
|
+
let t = new Set(e), n = de.value.filter((e) => t.has(e)), r = new Set(de.value), i = e.filter((e) => !r.has(e));
|
|
5012
5019
|
return [...n, ...i];
|
|
5013
5020
|
}
|
|
5014
|
-
return
|
|
5015
|
-
}), ie = r(() =>
|
|
5016
|
-
get: () =>
|
|
5017
|
-
set: (e) =>
|
|
5018
|
-
}),
|
|
5021
|
+
return Ae(e);
|
|
5022
|
+
}), ie = r(() => h.value[G.value] ?? !1), ae = r({
|
|
5023
|
+
get: () => ee.value[G.value] ?? "",
|
|
5024
|
+
set: (e) => b(G.value, e)
|
|
5025
|
+
}), oe = r(() => {
|
|
5026
|
+
let e = A.value ?? 0, t = ae.value?.length ?? 0;
|
|
5027
|
+
return e > 0 && t > 0 && t < e;
|
|
5028
|
+
}), G = r(() => t.value.field || ""), se = r(() => t.value.filter || ""), ce = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), le = O(!1), ue = O(!1), de = O([]), fe = r(() => rc(t.value)), pe = r(() => ic(t.value)), me = r(() => ac(t.value)), he = r(() => $(t.value).filterOptionsSortDescription), ge = r(() => $(t.value).filterOptionsSortTooltip), _e = r(() => !$(t.value).filterSearch), ve = r(() => $(t.value).emptyFilterResultsRenderer), ye = r(() => $(t.value).filterOptionsRenderer), be = r(() => $(t.value).filterHeaderRenderer), xe = r(() => $(t.value).filterFooterRenderer), q = r(() => pe.value ? U.value.length >= pe.value : !1), Se = r(() => W.value.filter((e) => e != null && !U.value.includes(e))), Ce = r(() => R.value[G.value]), we = r(() => L.value[G.value]), J = r(() => uc(t.value)), Y = () => new Set([G.value, ...cc(t.value)]), Te = (e, t) => {
|
|
5019
5029
|
let n = new Set(e), r = new Set(t);
|
|
5020
5030
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5021
|
-
},
|
|
5031
|
+
}, Ee = O([]), De = r(() => W.value.length === 1 && W.value[0] === null && U.value.length === 0), Oe = (e = !1) => {
|
|
5022
5032
|
if (J.value) return;
|
|
5023
5033
|
let n = [];
|
|
5024
|
-
if (
|
|
5034
|
+
if (H.value && s.value) {
|
|
5025
5035
|
let e = s.value.getAdvancedFilterModel();
|
|
5026
|
-
n = Hc(
|
|
5027
|
-
} else n = Nc(t.value,
|
|
5028
|
-
e ?
|
|
5029
|
-
},
|
|
5036
|
+
n = Hc(G.value, e);
|
|
5037
|
+
} else n = Nc(t.value, d.value);
|
|
5038
|
+
e ? U.value = n : U.value = Array.from(new Set([..._(G.value), ...n]));
|
|
5039
|
+
}, ke = (e) => {
|
|
5030
5040
|
let t = (n) => {
|
|
5031
5041
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
5032
5042
|
return !1;
|
|
5033
5043
|
};
|
|
5034
|
-
return t(
|
|
5035
|
-
},
|
|
5036
|
-
let n =
|
|
5044
|
+
return t(Ee.value);
|
|
5045
|
+
}, Ae = (e) => [...e].sort((e, t) => {
|
|
5046
|
+
let n = U.value.includes(e) || ke(e), r = U.value.includes(t) || ke(t);
|
|
5037
5047
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5038
|
-
}),
|
|
5048
|
+
}), je = async (e = !1, n = !1) => {
|
|
5039
5049
|
if (!s.value || o?.value) return;
|
|
5040
|
-
let r =
|
|
5041
|
-
if (
|
|
5042
|
-
if (
|
|
5050
|
+
let r = E.value[G.value] ?? !1, i = h.value[G.value] !== !0, a = (S(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
5051
|
+
if (H.value) {
|
|
5052
|
+
if (y.value && c) {
|
|
5043
5053
|
let e = await l(t.value, {
|
|
5044
5054
|
api: s.value,
|
|
5045
|
-
filterModel:
|
|
5046
|
-
useStaged:
|
|
5055
|
+
filterModel: d.value ?? void 0,
|
|
5056
|
+
useStaged: K.value
|
|
5047
5057
|
});
|
|
5048
|
-
|
|
5058
|
+
C(G.value, e), E.value[G.value] = !1, ht();
|
|
5049
5059
|
}
|
|
5050
5060
|
return;
|
|
5051
5061
|
}
|
|
5052
|
-
let
|
|
5053
|
-
if (
|
|
5054
|
-
if (
|
|
5055
|
-
|
|
5062
|
+
let u = await jc(s.value, t.value);
|
|
5063
|
+
if (u) {
|
|
5064
|
+
if (y.value && c) {
|
|
5065
|
+
u.refreshFilterValues();
|
|
5056
5066
|
return;
|
|
5057
5067
|
}
|
|
5058
|
-
|
|
5068
|
+
C(G.value, u.getFilterValues()), E.value[G.value] = !1;
|
|
5059
5069
|
}
|
|
5060
|
-
},
|
|
5061
|
-
let t =
|
|
5062
|
-
return !t && J.value && e && (t =
|
|
5063
|
-
},
|
|
5070
|
+
}, Me = (e) => {
|
|
5071
|
+
let t = g(G.value, e);
|
|
5072
|
+
return !t && J.value && e && (t = Xe(e)), t;
|
|
5073
|
+
}, Ne = (e) => e?.field ?? e?.colField, Pe = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Ue(e.value).value : null : e.metadata.rawValue : e.rawValue, Fe = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, Ie = (e, t) => {
|
|
5064
5074
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
5065
5075
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
5066
5076
|
return n ? {
|
|
5067
5077
|
...e,
|
|
5068
5078
|
label: String(e.metadata?.[n])
|
|
5069
5079
|
} : e;
|
|
5070
|
-
},
|
|
5071
|
-
let n =
|
|
5080
|
+
}, Le = (e, t) => {
|
|
5081
|
+
let n = fe.value, r = t, i = Ne(t);
|
|
5072
5082
|
if (i && J.value) {
|
|
5073
5083
|
let e = s.value?.getColumnDef(i);
|
|
5074
|
-
n = e ? rc(e) ?? n : n, r =
|
|
5084
|
+
n = e ? rc(e) ?? n : n, r = Ie(t, e ?? void 0);
|
|
5075
5085
|
}
|
|
5076
5086
|
return n ? n({
|
|
5077
|
-
value:
|
|
5087
|
+
value: Fe(e, r),
|
|
5078
5088
|
context: r
|
|
5079
5089
|
}) : r?.label || e;
|
|
5080
|
-
},
|
|
5090
|
+
}, Re = (e) => Le(e, Me(e)), ze = (e) => {
|
|
5081
5091
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
5082
|
-
let n =
|
|
5092
|
+
let n = g(G.value, e);
|
|
5083
5093
|
return n == null || n.label == null;
|
|
5084
|
-
},
|
|
5094
|
+
}, Be = (e) => De.value || g(G.value, e)?.isSelectable === !1 ? !0 : me.value ? !1 : q.value && !U.value.includes(e), Ve = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", He = r(() => $a(G.value, $(t.value).queryColIds, (e) => e === G.value && ce.value || Ve(e))), Ue = (e) => {
|
|
5085
5095
|
if (!e.startsWith("__")) return { value: e };
|
|
5086
5096
|
let t = e.slice(2).split("__");
|
|
5087
5097
|
return t.length < 2 ? { value: e } : {
|
|
5088
5098
|
field: t[0],
|
|
5089
5099
|
value: t[1]
|
|
5090
5100
|
};
|
|
5091
|
-
},
|
|
5092
|
-
let t =
|
|
5093
|
-
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(
|
|
5094
|
-
},
|
|
5101
|
+
}, We = (e) => vo(e, Z()), X = (e) => {
|
|
5102
|
+
let t = Ue(e.value), n = { ...e };
|
|
5103
|
+
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(X)), n;
|
|
5104
|
+
}, Ge = r(() => [...c.filterValueMap.value[G.value] || [], ...c.filterValueSelectedMetadataMap.value[G.value] || []].map((e) => e && X(e))), Z = () => Ge.value, Ke = (e, t) => {
|
|
5095
5105
|
for (let n of e) {
|
|
5096
5106
|
if (!n) continue;
|
|
5097
5107
|
if (t(n)) return n;
|
|
5098
|
-
let e = n.children ?
|
|
5108
|
+
let e = n.children ? Ke(n.children, t) : void 0;
|
|
5099
5109
|
if (e) return e;
|
|
5100
5110
|
}
|
|
5101
|
-
},
|
|
5111
|
+
}, Je = (e, t) => {
|
|
5102
5112
|
for (let n of e) {
|
|
5103
5113
|
if (!n) continue;
|
|
5104
5114
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
5105
|
-
let e = n.children ?
|
|
5115
|
+
let e = n.children ? Je(n.children, t) : void 0;
|
|
5106
5116
|
if (e) return e;
|
|
5107
5117
|
}
|
|
5108
|
-
},
|
|
5118
|
+
}, Ye = (e, t) => yo(Z(), e, t), Xe = (e) => {
|
|
5109
5119
|
let t = (n) => {
|
|
5110
5120
|
if (n) {
|
|
5111
|
-
if (String(
|
|
5121
|
+
if (String(Pe(n) ?? Ue(n.value).value) === e) return n;
|
|
5112
5122
|
for (let e of n.children || []) {
|
|
5113
5123
|
let n = t(e);
|
|
5114
5124
|
if (n) return n;
|
|
5115
5125
|
}
|
|
5116
5126
|
}
|
|
5117
5127
|
};
|
|
5118
|
-
for (let e of
|
|
5128
|
+
for (let e of Z()) {
|
|
5119
5129
|
let n = t(e);
|
|
5120
5130
|
if (n) return n;
|
|
5121
5131
|
}
|
|
5122
|
-
},
|
|
5132
|
+
}, Ze = (e) => {
|
|
5123
5133
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
5124
5134
|
if (t.length < 4) return;
|
|
5125
5135
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -5138,75 +5148,75 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5138
5148
|
}],
|
|
5139
5149
|
totalChildCount: 1
|
|
5140
5150
|
};
|
|
5141
|
-
},
|
|
5142
|
-
let n =
|
|
5143
|
-
return r?.children?.length ? r :
|
|
5144
|
-
},
|
|
5151
|
+
}, Qe = (e) => {
|
|
5152
|
+
let n = Z(), r = Ke(n, (t) => t.value === e.id);
|
|
5153
|
+
return r?.children?.length ? r : Je(n, e.id) || (r && Ne(r) === lc(t.value) ? r : Ze(e.id) || r);
|
|
5154
|
+
}, $e = (e) => {
|
|
5145
5155
|
if (!J.value) return;
|
|
5146
|
-
let t = c.filterValueSelectedMetadataMap.value[
|
|
5156
|
+
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
5147
5157
|
for (let e of t) e && n.set(e.value, e);
|
|
5148
5158
|
for (let t of e) {
|
|
5149
5159
|
if (t.state !== "selected") continue;
|
|
5150
|
-
let e =
|
|
5160
|
+
let e = Qe(t);
|
|
5151
5161
|
e && n.set(e.value, e);
|
|
5152
5162
|
}
|
|
5153
|
-
c.filterValueSelectedMetadataMap.value[
|
|
5154
|
-
},
|
|
5163
|
+
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
5164
|
+
}, et = () => {
|
|
5155
5165
|
let e = /* @__PURE__ */ new Set();
|
|
5156
|
-
for (let t of
|
|
5166
|
+
for (let t of Ee.value) {
|
|
5157
5167
|
if (t.state !== "selected") continue;
|
|
5158
|
-
let n =
|
|
5168
|
+
let n = Qe(t);
|
|
5159
5169
|
n && e.add(n.value);
|
|
5160
5170
|
}
|
|
5161
|
-
return [...e].filter((e) => !
|
|
5162
|
-
},
|
|
5163
|
-
let n =
|
|
5171
|
+
return [...e].filter((e) => !W.value.includes(e));
|
|
5172
|
+
}, tt = (e) => {
|
|
5173
|
+
let n = g(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = he.value ? "suggestions" : null;
|
|
5164
5174
|
n?.isPreference && (i = "preferences");
|
|
5165
5175
|
let a = null, o = n?.matchedValue;
|
|
5166
5176
|
o ? a = eo({
|
|
5167
|
-
getDisplayName:
|
|
5177
|
+
getDisplayName: Ve,
|
|
5168
5178
|
matchedField: n?.matchedField,
|
|
5169
5179
|
matchedValue: o,
|
|
5170
5180
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5171
|
-
}) : n?.subText ? a = n.subText :
|
|
5172
|
-
let l,
|
|
5181
|
+
}) : n?.subText ? a = n.subText : Ne(n) && J.value && !r && (a = Ve(Ne(n)));
|
|
5182
|
+
let l, u, f;
|
|
5173
5183
|
if (r && (l = (n.children ?? []).map((e) => {
|
|
5174
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5184
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Ve(e.matchedField);
|
|
5175
5185
|
return {
|
|
5176
5186
|
...e.menuOption,
|
|
5177
5187
|
id: e.value,
|
|
5178
|
-
text:
|
|
5188
|
+
text: Le(e.value, e) || "",
|
|
5179
5189
|
searchText: t,
|
|
5180
5190
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5181
5191
|
subduedText: e.subduedText,
|
|
5182
|
-
disabled: e.menuOption?.disabled ??
|
|
5192
|
+
disabled: e.menuOption?.disabled ?? Be(e.value),
|
|
5183
5193
|
context: e,
|
|
5184
5194
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5185
5195
|
};
|
|
5186
|
-
}),
|
|
5196
|
+
}), u = n.totalChildCount, u && u > l.length && n.value != null)) {
|
|
5187
5197
|
let e = n.value;
|
|
5188
5198
|
f = async (n) => {
|
|
5189
5199
|
if (!s.value || !c.filterStoreHandler.value) return;
|
|
5190
5200
|
let r = n?.offset ?? l.length, i = await c.filterStoreHandler.value({
|
|
5191
5201
|
api: s.value,
|
|
5192
5202
|
colDef: t.value,
|
|
5193
|
-
field:
|
|
5194
|
-
filterModel:
|
|
5203
|
+
field: G.value,
|
|
5204
|
+
filterModel: d.value ?? void 0,
|
|
5195
5205
|
query: ae.value || void 0,
|
|
5196
5206
|
offset: r,
|
|
5197
5207
|
parentId: e,
|
|
5198
5208
|
reason: "child-load-more"
|
|
5199
5209
|
});
|
|
5200
5210
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
5201
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5211
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Ve(e.matchedField);
|
|
5202
5212
|
return {
|
|
5203
5213
|
...e.menuOption,
|
|
5204
5214
|
id: e.value,
|
|
5205
|
-
text:
|
|
5215
|
+
text: Le(e.value, e) || "",
|
|
5206
5216
|
searchText: t,
|
|
5207
5217
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5208
5218
|
subduedText: e.subduedText,
|
|
5209
|
-
disabled: e.menuOption?.disabled ??
|
|
5219
|
+
disabled: e.menuOption?.disabled ?? Be(e.value),
|
|
5210
5220
|
context: e,
|
|
5211
5221
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5212
5222
|
};
|
|
@@ -5216,73 +5226,73 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5216
5226
|
return {
|
|
5217
5227
|
...n?.menuOption,
|
|
5218
5228
|
id: e || "",
|
|
5219
|
-
text:
|
|
5229
|
+
text: Re(e) || "",
|
|
5220
5230
|
searchText: o,
|
|
5221
5231
|
subduedText: n?.subduedText,
|
|
5222
5232
|
subText: a || void 0,
|
|
5223
5233
|
groupingLabel: i || "",
|
|
5224
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
5234
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Be(e)),
|
|
5225
5235
|
context: n || { value: e || "" },
|
|
5226
5236
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5227
5237
|
children: l,
|
|
5228
|
-
totalChildCount:
|
|
5238
|
+
totalChildCount: u,
|
|
5229
5239
|
handleSeeMore: f
|
|
5230
5240
|
};
|
|
5231
|
-
},
|
|
5232
|
-
let e = [...J.value ?
|
|
5233
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
5234
|
-
}),
|
|
5235
|
-
get: () => J.value ? [] :
|
|
5236
|
-
let t =
|
|
5241
|
+
}, nt = r(() => {
|
|
5242
|
+
let e = [...J.value ? et() : U.value.filter((e) => e != null && e !== "" && !W.value.includes(e)), ...W.value];
|
|
5243
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !ze(e)).map(tt);
|
|
5244
|
+
}), rt = r({
|
|
5245
|
+
get: () => J.value ? [] : U.value.map((e) => {
|
|
5246
|
+
let t = g(G.value, e), n = Ne(t), r = n ? Ve(n) : void 0;
|
|
5237
5247
|
return {
|
|
5238
5248
|
id: e,
|
|
5239
|
-
text:
|
|
5249
|
+
text: Re(e),
|
|
5240
5250
|
subText: r,
|
|
5241
5251
|
context: t || { value: e || "" }
|
|
5242
5252
|
};
|
|
5243
5253
|
}),
|
|
5244
5254
|
set: (e) => {
|
|
5245
5255
|
if (J.value) {
|
|
5246
|
-
if (e.length === 0 && !
|
|
5247
|
-
|
|
5256
|
+
if (e.length === 0 && !le.value && k.value && !K.value) {
|
|
5257
|
+
ft([]);
|
|
5248
5258
|
return;
|
|
5249
5259
|
}
|
|
5250
5260
|
i?.();
|
|
5251
5261
|
return;
|
|
5252
5262
|
}
|
|
5253
|
-
|
|
5254
|
-
!
|
|
5263
|
+
U.value = e.map((e) => e.id), (e.length === 0 && !le.value || !k.value || K.value) && (at(), z.value.forEach((e) => {
|
|
5264
|
+
!U.value.includes(e) && ne.value === G.value && te(e);
|
|
5255
5265
|
})), i?.();
|
|
5256
5266
|
}
|
|
5257
|
-
}),
|
|
5267
|
+
}), it = (e) => {
|
|
5258
5268
|
let t = {};
|
|
5259
5269
|
for (let n of e) {
|
|
5260
5270
|
if (n === null) continue;
|
|
5261
|
-
let e =
|
|
5271
|
+
let e = Ne(g(G.value, n)) || G.value;
|
|
5262
5272
|
t[e] || (t[e] = []), t[e].push(n);
|
|
5263
5273
|
}
|
|
5264
5274
|
return t;
|
|
5265
|
-
},
|
|
5275
|
+
}, at = async (e, n, r) => {
|
|
5266
5276
|
if (!s.value) return;
|
|
5267
5277
|
if (e !== void 0 && n !== void 0) {
|
|
5268
|
-
let r = e ||
|
|
5269
|
-
if (
|
|
5278
|
+
let r = e || G.value, i = n;
|
|
5279
|
+
if (H.value) {
|
|
5270
5280
|
let e = bc(r, i || []);
|
|
5271
|
-
if (
|
|
5272
|
-
let t =
|
|
5273
|
-
|
|
5281
|
+
if (K.value) {
|
|
5282
|
+
let t = f.value;
|
|
5283
|
+
f.value = Bc(t, e, r), j(new Set([r]));
|
|
5274
5284
|
return;
|
|
5275
5285
|
}
|
|
5276
5286
|
let t = Bc(s.value.getAdvancedFilterModel(), e, r);
|
|
5277
5287
|
v(() => {
|
|
5278
5288
|
s.value?.setAdvancedFilterModel(t);
|
|
5279
|
-
}),
|
|
5289
|
+
}), j(new Set([r]));
|
|
5280
5290
|
return;
|
|
5281
5291
|
}
|
|
5282
|
-
if (
|
|
5292
|
+
if (K.value) {
|
|
5283
5293
|
let e = await Mc(s.value, t.value, i);
|
|
5284
|
-
|
|
5285
|
-
...
|
|
5294
|
+
f.value = {
|
|
5295
|
+
...f.value,
|
|
5286
5296
|
[r]: e
|
|
5287
5297
|
};
|
|
5288
5298
|
return;
|
|
@@ -5293,9 +5303,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5293
5303
|
});
|
|
5294
5304
|
return;
|
|
5295
5305
|
}
|
|
5296
|
-
let i =
|
|
5297
|
-
if (
|
|
5298
|
-
let e =
|
|
5306
|
+
let i = it(U.value), o = $(t.value);
|
|
5307
|
+
if (H.value) {
|
|
5308
|
+
let e = K.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5299
5309
|
if (J.value) {
|
|
5300
5310
|
let e = cc(t.value), r = [];
|
|
5301
5311
|
for (let t of e) {
|
|
@@ -5319,8 +5329,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5319
5329
|
} : e;
|
|
5320
5330
|
}
|
|
5321
5331
|
} else {
|
|
5322
|
-
let t =
|
|
5323
|
-
n = Bc(n, r,
|
|
5332
|
+
let t = U.value.length > 0 ? U.value : null, r = bc(G.value, t || []);
|
|
5333
|
+
n = Bc(n, r, G.value);
|
|
5324
5334
|
let i = !1;
|
|
5325
5335
|
if (a?.value) {
|
|
5326
5336
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -5332,202 +5342,208 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5332
5342
|
n = Bc(n, r, t);
|
|
5333
5343
|
}
|
|
5334
5344
|
}
|
|
5335
|
-
let s =
|
|
5345
|
+
let s = U.value.filter((e) => e !== null), c = Hc(G.value, e), l = new Set(c), u = new Set(s);
|
|
5336
5346
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5337
5347
|
}
|
|
5338
5348
|
if (r?.skipIfUnchanged && zc(e, n)) return;
|
|
5339
|
-
let c = J.value ?
|
|
5340
|
-
if (
|
|
5349
|
+
let c = J.value ? Y() : new Set([G.value]);
|
|
5350
|
+
if (K.value) f.value = n, j(c);
|
|
5341
5351
|
else {
|
|
5342
5352
|
let e = n;
|
|
5343
5353
|
v(() => {
|
|
5344
5354
|
s.value?.setAdvancedFilterModel(e);
|
|
5345
|
-
}),
|
|
5355
|
+
}), j(c);
|
|
5346
5356
|
}
|
|
5347
5357
|
return;
|
|
5348
5358
|
}
|
|
5349
|
-
let c =
|
|
5359
|
+
let c = U.value.length > 0 ? U.value : null;
|
|
5350
5360
|
if (r?.skipIfUnchanged) {
|
|
5351
5361
|
let e = Nc(t.value, s.value.getFilterModel());
|
|
5352
|
-
if (
|
|
5362
|
+
if (Te(U.value, e)) return;
|
|
5353
5363
|
}
|
|
5354
|
-
if (
|
|
5364
|
+
if (K.value) {
|
|
5355
5365
|
let e = await Mc(s.value, t.value, c);
|
|
5356
|
-
|
|
5357
|
-
...
|
|
5358
|
-
[
|
|
5366
|
+
f.value = {
|
|
5367
|
+
...f.value,
|
|
5368
|
+
[G.value]: e
|
|
5359
5369
|
};
|
|
5360
5370
|
return;
|
|
5361
5371
|
}
|
|
5362
5372
|
let l = await Mc(s.value, t.value, c);
|
|
5363
|
-
s.value.setColumnFilterModel(
|
|
5373
|
+
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5364
5374
|
s.value && s.value.onFilterChanged();
|
|
5365
5375
|
});
|
|
5366
|
-
},
|
|
5367
|
-
if (e &&
|
|
5368
|
-
let r = n || cc(t.value)[0] ||
|
|
5369
|
-
|
|
5376
|
+
}, ot = (e, n) => {
|
|
5377
|
+
if (e && me.value ? U.value = [e] : e && !U.value.includes(e) && (U.value = [...U.value, e]), J.value && e) {
|
|
5378
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ye(r, e) || e;
|
|
5379
|
+
Ee.value.find((e) => e.id === i) || (Ee.value = [...Ee.value, {
|
|
5370
5380
|
id: i,
|
|
5371
5381
|
state: "selected"
|
|
5372
5382
|
}]);
|
|
5373
5383
|
}
|
|
5374
|
-
(!
|
|
5375
|
-
},
|
|
5376
|
-
if (
|
|
5377
|
-
let r = n || cc(t.value)[0] ||
|
|
5378
|
-
|
|
5384
|
+
(!k.value || K.value) && (J.value && e ? ft(Ee.value) : n && n !== G.value ? at(n, [e]) : at()), i?.();
|
|
5385
|
+
}, st = (e, n) => {
|
|
5386
|
+
if (U.value = U.value.filter((t) => t !== e), J.value && e) {
|
|
5387
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Ye(r, e) || e;
|
|
5388
|
+
Ee.value = Ee.value.filter((e) => e.id !== i);
|
|
5379
5389
|
}
|
|
5380
|
-
(!
|
|
5381
|
-
},
|
|
5382
|
-
|
|
5383
|
-
},
|
|
5384
|
-
|
|
5385
|
-
},
|
|
5390
|
+
(!k.value || K.value) && (J.value && e ? ft(Ee.value) : n && n !== G.value ? at(n, null) : at()), i?.();
|
|
5391
|
+
}, ct = () => {
|
|
5392
|
+
de.value = Ae(S(G.value)), le.value = !0;
|
|
5393
|
+
}, lt = () => {
|
|
5394
|
+
le.value = !1, de.value = [], ae.value = "", !o?.value && k.value && !K.value && (J.value ? ft(Ee.value, { skipIfUnchanged: !0 }) : at(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5395
|
+
}, ut = async (e) => {
|
|
5386
5396
|
if (!s.value) return;
|
|
5387
|
-
let n =
|
|
5388
|
-
r && (
|
|
5397
|
+
let n = W.value.length, r = !e.parentId;
|
|
5398
|
+
r && (ue.value = !0);
|
|
5389
5399
|
try {
|
|
5390
5400
|
await l(t.value, {
|
|
5391
5401
|
api: s.value,
|
|
5392
|
-
filterModel:
|
|
5402
|
+
filterModel: d.value ?? void 0,
|
|
5393
5403
|
offset: e.offset ?? n,
|
|
5394
5404
|
parentId: e.parentId,
|
|
5395
|
-
useStaged:
|
|
5405
|
+
useStaged: K.value
|
|
5396
5406
|
});
|
|
5397
5407
|
} finally {
|
|
5398
|
-
r && (
|
|
5408
|
+
r && (ue.value = !1);
|
|
5399
5409
|
}
|
|
5400
|
-
},
|
|
5410
|
+
}, dt = (e, n) => So({
|
|
5401
5411
|
baseModel: n,
|
|
5402
5412
|
colDef: t.value,
|
|
5403
|
-
options:
|
|
5413
|
+
options: Z(),
|
|
5404
5414
|
state: e
|
|
5405
|
-
}),
|
|
5406
|
-
if (!s.value || !J.value || (
|
|
5407
|
-
let r =
|
|
5415
|
+
}), ft = (e, n) => {
|
|
5416
|
+
if (!s.value || !J.value || (Ee.value = e, $e(e), cc(t.value).length === 0)) return !1;
|
|
5417
|
+
let r = K.value ? f.value : s.value.getAdvancedFilterModel(), a = dt(e, r);
|
|
5408
5418
|
if (n?.skipIfUnchanged && zc(r, a)) return !1;
|
|
5409
|
-
if (
|
|
5419
|
+
if (K.value) f.value = a;
|
|
5410
5420
|
else {
|
|
5411
5421
|
let e = a;
|
|
5412
5422
|
v(() => {
|
|
5413
5423
|
s.value?.setAdvancedFilterModel(e);
|
|
5414
5424
|
});
|
|
5415
5425
|
}
|
|
5416
|
-
return
|
|
5417
|
-
},
|
|
5426
|
+
return j(Y()), i?.(), !0;
|
|
5427
|
+
}, pt = (e) => {
|
|
5418
5428
|
if (!J.value || !cc(t.value).length) return;
|
|
5419
5429
|
let n = wo({
|
|
5420
5430
|
colDef: t.value,
|
|
5421
5431
|
model: e,
|
|
5422
|
-
options:
|
|
5432
|
+
options: Z()
|
|
5423
5433
|
});
|
|
5424
|
-
JSON.stringify(
|
|
5425
|
-
},
|
|
5426
|
-
let { field: t, value: n } =
|
|
5427
|
-
return t ?
|
|
5428
|
-
}) : !1,
|
|
5429
|
-
!J.value || !
|
|
5434
|
+
JSON.stringify(Ee.value) !== JSON.stringify(n) && (Ee.value = n), $e(n);
|
|
5435
|
+
}, mt = () => J.value ? Ee.value.some((e) => {
|
|
5436
|
+
let { field: t, value: n } = We(e.id);
|
|
5437
|
+
return t ? Ye(t, n) !== e.id : !1;
|
|
5438
|
+
}) : !1, ht = () => {
|
|
5439
|
+
!J.value || !H.value || mt() && pt(d.value);
|
|
5430
5440
|
};
|
|
5431
|
-
return
|
|
5432
|
-
J.value && (
|
|
5433
|
-
}, { deep: !0 }),
|
|
5434
|
-
e &&
|
|
5435
|
-
}),
|
|
5436
|
-
if (
|
|
5437
|
-
if (
|
|
5438
|
-
let e = [], n =
|
|
5441
|
+
return B(Ee, (e) => {
|
|
5442
|
+
J.value && ($e(e), !(k.value && !K.value) && ft(e));
|
|
5443
|
+
}, { deep: !0 }), B(() => E.value[G.value], (e) => {
|
|
5444
|
+
e && D.value && je(!0);
|
|
5445
|
+
}), B(() => f.value, () => {
|
|
5446
|
+
if (K.value) {
|
|
5447
|
+
if (H.value) {
|
|
5448
|
+
let e = [], n = f.value;
|
|
5439
5449
|
if (J.value) {
|
|
5440
5450
|
let r = cc(t.value);
|
|
5441
5451
|
for (let t of r) {
|
|
5442
5452
|
let r = Hc(t, n);
|
|
5443
5453
|
e.push(...r);
|
|
5444
5454
|
}
|
|
5445
|
-
} else e = Hc(
|
|
5446
|
-
|
|
5455
|
+
} else e = Hc(G.value, n);
|
|
5456
|
+
U.value = e;
|
|
5447
5457
|
return;
|
|
5448
5458
|
}
|
|
5449
|
-
|
|
5459
|
+
se.value === "agSetColumnFilter" ? U.value = f.value?.[G.value]?.values || [] : se.value === "agMultiColumnFilter" ? U.value = f.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${se.value} is not yet supported.`);
|
|
5450
5460
|
}
|
|
5451
|
-
}),
|
|
5452
|
-
if (
|
|
5461
|
+
}), B(() => d.value, () => {
|
|
5462
|
+
if (K.value) return;
|
|
5453
5463
|
if (J.value) {
|
|
5454
|
-
|
|
5464
|
+
H.value && pt(d.value);
|
|
5455
5465
|
return;
|
|
5456
5466
|
}
|
|
5457
|
-
if (
|
|
5458
|
-
let e =
|
|
5459
|
-
|
|
5467
|
+
if (H.value) {
|
|
5468
|
+
let e = d.value, t = Hc(G.value, e);
|
|
5469
|
+
Oe(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5460
5470
|
return;
|
|
5461
5471
|
}
|
|
5462
|
-
let e = Nc(t.value,
|
|
5463
|
-
|
|
5464
|
-
}, { deep: !0 }),
|
|
5465
|
-
|
|
5466
|
-
}),
|
|
5467
|
-
e &&
|
|
5468
|
-
}, { immediate: !0 }),
|
|
5469
|
-
|
|
5470
|
-
await
|
|
5471
|
-
}, 2e3) : await
|
|
5472
|
+
let e = Nc(t.value, d.value);
|
|
5473
|
+
Oe(U.value.some((t) => !e.includes(t)));
|
|
5474
|
+
}, { deep: !0 }), B(() => p.value, () => {
|
|
5475
|
+
U.value = [], Ee.value = [];
|
|
5476
|
+
}), B(() => s.value, (e) => {
|
|
5477
|
+
e && y.value && (E.value[G.value] = !0);
|
|
5478
|
+
}, { immediate: !0 }), B(() => V.value, async () => {
|
|
5479
|
+
D.value && (K.value ? setTimeout(async () => {
|
|
5480
|
+
await je(!0);
|
|
5481
|
+
}, 2e3) : await je(!0)), Oe();
|
|
5472
5482
|
}), qe(() => ae.value, async () => {
|
|
5473
|
-
|
|
5483
|
+
if (oe.value) {
|
|
5484
|
+
u(G.value);
|
|
5485
|
+
return;
|
|
5486
|
+
}
|
|
5487
|
+
await je(!0, !0);
|
|
5474
5488
|
}, { debounce: 300 }), w(() => {
|
|
5475
|
-
|
|
5489
|
+
N(G.value);
|
|
5476
5490
|
let e = cc(t.value);
|
|
5477
|
-
if (e.length &&
|
|
5478
|
-
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value &&
|
|
5491
|
+
if (e.length && M(G.value, e), Oe(), J.value && H.value && pt(d.value), o?.value && y.value && s.value) {
|
|
5492
|
+
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value && H.value ? cc(t.value).some((e) => Hc(e, d.value).length > 0) : U.value.length > 0;
|
|
5479
5493
|
e && n && l(t.value, {
|
|
5480
5494
|
api: s.value,
|
|
5481
|
-
filterModel:
|
|
5495
|
+
filterModel: d.value ?? void 0
|
|
5482
5496
|
});
|
|
5483
5497
|
}
|
|
5484
|
-
J.value || $(t.value).metadataDisplayFields?.length &&
|
|
5498
|
+
J.value || $(t.value).metadataDisplayFields?.length && U.value.some((e) => ze(e)) && je(!0, !0);
|
|
5485
5499
|
}), T(() => {
|
|
5486
|
-
|
|
5500
|
+
P(G.value), k.value && !K.value && (J.value ? ft(Ee.value, { skipIfUnchanged: !0 }) : at(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5487
5501
|
}), {
|
|
5488
|
-
selectedValues:
|
|
5489
|
-
filterValues:
|
|
5502
|
+
selectedValues: U,
|
|
5503
|
+
filterValues: W,
|
|
5490
5504
|
isLoading: ie,
|
|
5491
|
-
isSeeMoreLoading:
|
|
5505
|
+
isSeeMoreLoading: ue,
|
|
5492
5506
|
filterSearchText: ae,
|
|
5493
|
-
|
|
5507
|
+
filterSearchMinLength: A,
|
|
5508
|
+
belowFilterSearchMinLength: oe,
|
|
5509
|
+
rowsLoading: re,
|
|
5494
5510
|
gridApi: s,
|
|
5495
|
-
filterField:
|
|
5496
|
-
filterType:
|
|
5497
|
-
filterDisplayName:
|
|
5498
|
-
isInFilterPanel:
|
|
5499
|
-
maxSelectableValues:
|
|
5500
|
-
isSingleSelect:
|
|
5501
|
-
selectionLimitReached:
|
|
5502
|
-
suggestedValues:
|
|
5503
|
-
displayedFilterValues:
|
|
5504
|
-
selectedFilterValues:
|
|
5505
|
-
showSearchBar:
|
|
5506
|
-
filterSearchPlaceholder:
|
|
5507
|
-
emptyFilterResultsRenderer:
|
|
5508
|
-
filterOptionsRenderer:
|
|
5509
|
-
filterHeaderRenderer:
|
|
5510
|
-
filterFooterRenderer:
|
|
5511
|
-
filterOptionsSortDescription:
|
|
5512
|
-
filterOptionsSortTooltip:
|
|
5513
|
-
totalOptionCount:
|
|
5514
|
-
hasMoreOptions:
|
|
5511
|
+
filterField: G,
|
|
5512
|
+
filterType: se,
|
|
5513
|
+
filterDisplayName: ce,
|
|
5514
|
+
isInFilterPanel: K,
|
|
5515
|
+
maxSelectableValues: pe,
|
|
5516
|
+
isSingleSelect: me,
|
|
5517
|
+
selectionLimitReached: q,
|
|
5518
|
+
suggestedValues: Se,
|
|
5519
|
+
displayedFilterValues: nt,
|
|
5520
|
+
selectedFilterValues: rt,
|
|
5521
|
+
showSearchBar: _e,
|
|
5522
|
+
filterSearchPlaceholder: He,
|
|
5523
|
+
emptyFilterResultsRenderer: ve,
|
|
5524
|
+
filterOptionsRenderer: ye,
|
|
5525
|
+
filterHeaderRenderer: be,
|
|
5526
|
+
filterFooterRenderer: xe,
|
|
5527
|
+
filterOptionsSortDescription: he,
|
|
5528
|
+
filterOptionsSortTooltip: ge,
|
|
5529
|
+
totalOptionCount: Ce,
|
|
5530
|
+
hasMoreOptions: we,
|
|
5515
5531
|
isAggregate: J,
|
|
5516
|
-
cascadeSelectionState:
|
|
5517
|
-
filterValueContext:
|
|
5518
|
-
formatDisplayValue:
|
|
5519
|
-
resolvedFilterValueContext:
|
|
5520
|
-
isUnresolvedMetadataValue:
|
|
5521
|
-
getLatestFilterValues:
|
|
5522
|
-
addSelectedValue:
|
|
5523
|
-
removeSelectedValue:
|
|
5524
|
-
handleDropdownOpen:
|
|
5525
|
-
handleDropdownClosed:
|
|
5526
|
-
handleSeeMore:
|
|
5527
|
-
handleCascadeSelectionState:
|
|
5528
|
-
getColDisplayNameForField:
|
|
5529
|
-
disableFilterValue:
|
|
5530
|
-
updateFilterModelWithSelectedValues:
|
|
5532
|
+
cascadeSelectionState: Ee,
|
|
5533
|
+
filterValueContext: g,
|
|
5534
|
+
formatDisplayValue: Re,
|
|
5535
|
+
resolvedFilterValueContext: Me,
|
|
5536
|
+
isUnresolvedMetadataValue: ze,
|
|
5537
|
+
getLatestFilterValues: je,
|
|
5538
|
+
addSelectedValue: ot,
|
|
5539
|
+
removeSelectedValue: st,
|
|
5540
|
+
handleDropdownOpen: ct,
|
|
5541
|
+
handleDropdownClosed: lt,
|
|
5542
|
+
handleSeeMore: ut,
|
|
5543
|
+
handleCascadeSelectionState: ft,
|
|
5544
|
+
getColDisplayNameForField: Ve,
|
|
5545
|
+
disableFilterValue: Be,
|
|
5546
|
+
updateFilterModelWithSelectedValues: at
|
|
5531
5547
|
};
|
|
5532
5548
|
}, il = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5533
5549
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5650,7 +5666,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5650
5666
|
}, z = () => {
|
|
5651
5667
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5652
5668
|
};
|
|
5653
|
-
|
|
5669
|
+
B(f, () => {
|
|
5654
5670
|
if (!(g.value && x.value)) {
|
|
5655
5671
|
_.value.clear();
|
|
5656
5672
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
@@ -5661,17 +5677,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5661
5677
|
label: N(e),
|
|
5662
5678
|
isSelected: _.value.has(e),
|
|
5663
5679
|
isAvailable: !b.value.has(e)
|
|
5664
|
-
}))),
|
|
5680
|
+
}))), re = r(() => te.value ? ne.value.filter((e) => e.isSelected) : ne.value);
|
|
5665
5681
|
T(() => {
|
|
5666
5682
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5667
5683
|
});
|
|
5668
|
-
let
|
|
5684
|
+
let U = r(() => _.value.size);
|
|
5669
5685
|
return n({
|
|
5670
5686
|
openForTest: () => {
|
|
5671
5687
|
P(), x.value = !0;
|
|
5672
5688
|
},
|
|
5673
5689
|
selectedValues: _
|
|
5674
|
-
}), (e, n) =>
|
|
5690
|
+
}), (e, n) => H((E(), o("div", {
|
|
5675
5691
|
ref_key: "triggerWrapper",
|
|
5676
5692
|
ref: S,
|
|
5677
5693
|
style: { "padding-bottom": "4px" },
|
|
@@ -5686,7 +5702,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5686
5702
|
id: C.value.label,
|
|
5687
5703
|
text: C.value.label,
|
|
5688
5704
|
"class-list": ["pv-menu-nested"],
|
|
5689
|
-
"secondary-text":
|
|
5705
|
+
"secondary-text": U.value || void 0
|
|
5690
5706
|
}, null, 8, [
|
|
5691
5707
|
"id",
|
|
5692
5708
|
"text",
|
|
@@ -5700,8 +5716,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5700
5716
|
...I(w)
|
|
5701
5717
|
}
|
|
5702
5718
|
}, {
|
|
5703
|
-
default:
|
|
5704
|
-
x.value &&
|
|
5719
|
+
default: V(() => [
|
|
5720
|
+
x.value && re.value.length > 0 ? (E(), o("ul", al, [(E(!0), o(t, null, k(re.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5705
5721
|
key: 0,
|
|
5706
5722
|
"data-active": e.isSelected ? "true" : null
|
|
5707
5723
|
}, [u(za, {
|
|
@@ -5723,14 +5739,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5723
5739
|
"disable-interactive": !0,
|
|
5724
5740
|
style: { width: "100%" }
|
|
5725
5741
|
}, {
|
|
5726
|
-
label:
|
|
5742
|
+
label: V(() => [u(za, {
|
|
5727
5743
|
config: { variant: "checkbox" },
|
|
5728
5744
|
id: e.field,
|
|
5729
5745
|
text: e.label,
|
|
5730
5746
|
disabled: !0,
|
|
5731
5747
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5732
5748
|
}, null, 8, ["id", "text"])]),
|
|
5733
|
-
"tooltip-content":
|
|
5749
|
+
"tooltip-content": V(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5734
5750
|
_: 2
|
|
5735
5751
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5736
5752
|
x.value && te.value ? (E(), o("div", cl, [u(St, { variant: "dark" })])) : a("", !0),
|
|
@@ -5762,26 +5778,30 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5762
5778
|
"line-height": "1rem"
|
|
5763
5779
|
}
|
|
5764
5780
|
}, fl = {
|
|
5781
|
+
key: 0,
|
|
5782
|
+
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
5783
|
+
style: { "--inset-size": "4px" }
|
|
5784
|
+
}, pl = {
|
|
5765
5785
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
5766
5786
|
style: { "--inset-size": "8px" }
|
|
5767
|
-
},
|
|
5787
|
+
}, ml = {
|
|
5768
5788
|
class: "pv-inset-inline",
|
|
5769
5789
|
style: { "--inset-size": "8px" }
|
|
5770
|
-
},
|
|
5790
|
+
}, hl = {
|
|
5771
5791
|
key: 0,
|
|
5772
5792
|
class: "pv-full-width"
|
|
5773
|
-
},
|
|
5793
|
+
}, gl = {
|
|
5774
5794
|
key: 0,
|
|
5775
5795
|
class: "pv-flex-inline",
|
|
5776
5796
|
style: { "max-width": "100%" }
|
|
5777
|
-
},
|
|
5797
|
+
}, _l = {
|
|
5778
5798
|
role: "list",
|
|
5779
5799
|
class: "pv-flex",
|
|
5780
5800
|
style: {
|
|
5781
5801
|
"--flex-wrap": "wrap",
|
|
5782
5802
|
"max-width": "100%"
|
|
5783
5803
|
}
|
|
5784
|
-
},
|
|
5804
|
+
}, vl = { class: "pv-text-subdued pv-text-body-xxs" }, yl = 4, bl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
5785
5805
|
__name: "SetFilter",
|
|
5786
5806
|
props: {
|
|
5787
5807
|
enableFocusView: {
|
|
@@ -5806,137 +5826,137 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5806
5826
|
"handle-settings-icon"
|
|
5807
5827
|
],
|
|
5808
5828
|
setup(e, { emit: n }) {
|
|
5809
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D,
|
|
5829
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: ee, filterField: L, filterDisplayName: R, isInFilterPanel: z, suggestedValues: te, displayedFilterValues: ne, selectedFilterValues: re, showSearchBar: B, filterSearchPlaceholder: H, emptyFilterResultsRenderer: U, filterOptionsRenderer: W, filterHeaderRenderer: ie, filterFooterRenderer: ae, filterOptionsSortDescription: oe, filterOptionsSortTooltip: G, filterValueContext: se, formatDisplayValue: ce, resolvedFilterValueContext: K, isUnresolvedMetadataValue: le, getLatestFilterValues: ue, addSelectedValue: de, removeSelectedValue: fe, handleDropdownOpen: pe, handleDropdownClosed: me, handleSeeMore: he, getColDisplayNameForField: ge, hasMoreOptions: _e, totalOptionCount: ve, isAggregate: ye, cascadeSelectionState: be } = rl({
|
|
5810
5830
|
filterColDef: F(d, "filterColDef"),
|
|
5811
5831
|
filterStyle: F(d, "filterStyle"),
|
|
5812
5832
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5813
5833
|
filterGroupStagedFields: x,
|
|
5814
5834
|
readOnly: F(d, "readOnly")
|
|
5815
|
-
}), { handleFocusUpdate:
|
|
5835
|
+
}), { handleFocusUpdate: xe, isFocused: q, removeFocus: Se, isFocusable: Ce, canRemoveFocus: we } = Fs(), J = (e) => {
|
|
5816
5836
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5817
5837
|
if (e.id.startsWith("__")) {
|
|
5818
5838
|
let t = e.id.slice(2).split("__");
|
|
5819
5839
|
if (t.length >= 2) return t[1];
|
|
5820
5840
|
}
|
|
5821
5841
|
return e.id;
|
|
5822
|
-
},
|
|
5823
|
-
if (
|
|
5842
|
+
}, Y = r(() => {
|
|
5843
|
+
if (Ce(uc(d.filterColDef) ? cc(d.filterColDef) : [L.value])) return {
|
|
5824
5844
|
icon: "focus",
|
|
5825
|
-
isDisabled: (e) => !
|
|
5845
|
+
isDisabled: (e) => !Ce([e.context?.colField || L.value]),
|
|
5826
5846
|
tooltipText: (e) => {
|
|
5827
|
-
let t = e.context?.colField ||
|
|
5828
|
-
if (!
|
|
5829
|
-
let n =
|
|
5830
|
-
return n && !
|
|
5847
|
+
let t = e.context?.colField || L.value;
|
|
5848
|
+
if (!Ce([t])) return `Group by ${ge(t)} to enable ${d.focusText}`;
|
|
5849
|
+
let n = q(ye.value ? J(e) : e.id, t);
|
|
5850
|
+
return n && !we() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5831
5851
|
},
|
|
5832
5852
|
action: (e) => {
|
|
5833
|
-
e && !C.value.includes(e.id) &&
|
|
5834
|
-
let t = e.context?.colField ||
|
|
5835
|
-
ye
|
|
5853
|
+
e && !C.value.includes(e.id) && de(e.id, e.context?.colField);
|
|
5854
|
+
let t = e.context?.colField || L.value;
|
|
5855
|
+
xe(ye.value ? J(e) : e.id, t);
|
|
5836
5856
|
},
|
|
5837
5857
|
alwaysShow: (e) => {
|
|
5838
|
-
let t = e.context?.colField ||
|
|
5839
|
-
return
|
|
5858
|
+
let t = e.context?.colField || L.value;
|
|
5859
|
+
return q(ye.value ? J(e) : e.id, t);
|
|
5840
5860
|
}
|
|
5841
5861
|
};
|
|
5842
|
-
}),
|
|
5862
|
+
}), Te = (e) => {
|
|
5843
5863
|
if (!e) return null;
|
|
5844
|
-
if (!
|
|
5845
|
-
let t =
|
|
5864
|
+
if (!ye.value) return e;
|
|
5865
|
+
let t = K(e);
|
|
5846
5866
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5847
5867
|
if (e.startsWith("__")) {
|
|
5848
5868
|
let t = e.slice(2).split("__");
|
|
5849
5869
|
if (t.length >= 2) return t[1];
|
|
5850
5870
|
}
|
|
5851
5871
|
return e;
|
|
5852
|
-
},
|
|
5853
|
-
|
|
5854
|
-
let t =
|
|
5855
|
-
|
|
5856
|
-
},
|
|
5857
|
-
|
|
5858
|
-
},
|
|
5872
|
+
}, Ee = (e) => {
|
|
5873
|
+
fe(e);
|
|
5874
|
+
let t = K(e)?.colField || L.value, n = Te(e);
|
|
5875
|
+
q(n, t) && we() && Se(n);
|
|
5876
|
+
}, De = m(gs, O(!1)), Oe = r(() => !!$(d.filterColDef).filterGroup && De.value), ke = () => {
|
|
5877
|
+
pe(), ue(!0);
|
|
5878
|
+
}, Ae = () => {
|
|
5859
5879
|
v(() => {
|
|
5860
|
-
|
|
5880
|
+
me(), f("filter-closed");
|
|
5861
5881
|
});
|
|
5862
|
-
},
|
|
5863
|
-
let t =
|
|
5864
|
-
return
|
|
5865
|
-
},
|
|
5866
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5867
|
-
label: I(
|
|
5868
|
-
showClear: !e.readOnly && (!
|
|
5882
|
+
}, je = (e) => {
|
|
5883
|
+
let t = K(e)?.colField || L.value;
|
|
5884
|
+
return q(Te(e), t);
|
|
5885
|
+
}, Me = r(() => S.value > 0 ? !0 : ye.value ? be.value.length > 0 : C.value.length > 0);
|
|
5886
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", ul, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(R)}-${n}` }, [I(le)(n) ? a("", !0) : (E(), o("li", dl, [u(vi, {
|
|
5887
|
+
label: I(ce)(n) || "",
|
|
5888
|
+
showClear: !e.readOnly && (!je(n) || I(we)()),
|
|
5869
5889
|
disabled: e.readOnly,
|
|
5870
|
-
onHandleClose: (e) =>
|
|
5890
|
+
onHandleClose: (e) => Ee(n)
|
|
5871
5891
|
}, null, 8, [
|
|
5872
5892
|
"label",
|
|
5873
5893
|
"showClear",
|
|
5874
5894
|
"disabled",
|
|
5875
5895
|
"onHandleClose"
|
|
5876
5896
|
])]))], 64))), 128))])) : a("", !0), u(I(Xa), {
|
|
5877
|
-
modelValue: I(
|
|
5878
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
5897
|
+
modelValue: I(re),
|
|
5898
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(re) ? re.value = e : null,
|
|
5879
5899
|
readOnly: e.readOnly,
|
|
5880
5900
|
searchInput: I(D),
|
|
5881
5901
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
5882
|
-
selectionState: I(
|
|
5883
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
5884
|
-
"data-horizontal-filter-field": I(
|
|
5885
|
-
label: I(
|
|
5902
|
+
selectionState: I(be),
|
|
5903
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(be) ? be.value = e : null,
|
|
5904
|
+
"data-horizontal-filter-field": I(z) ? void 0 : I(L),
|
|
5905
|
+
label: I(z) ? "" : I(R),
|
|
5886
5906
|
highlightSearchText: !0,
|
|
5887
|
-
icon: I(
|
|
5888
|
-
variant: I(
|
|
5889
|
-
counterPosition: !I(
|
|
5890
|
-
showClear: !I(
|
|
5891
|
-
showSearchInput: I(
|
|
5892
|
-
searchPlaceholder: I(
|
|
5893
|
-
showDropdown: !I(
|
|
5894
|
-
overlayTrigger: I(
|
|
5895
|
-
options: I(
|
|
5896
|
-
optionsRenderer: I(
|
|
5897
|
-
optionsAction:
|
|
5907
|
+
icon: I(z) && !e.readOnly ? "add-circle" : void 0,
|
|
5908
|
+
variant: I(z) ? "ghost" : "secondary",
|
|
5909
|
+
counterPosition: !I(z) && Me.value ? void 0 : "none",
|
|
5910
|
+
showClear: !I(z),
|
|
5911
|
+
showSearchInput: I(B),
|
|
5912
|
+
searchPlaceholder: I(H),
|
|
5913
|
+
showDropdown: !I(z),
|
|
5914
|
+
overlayTrigger: I(z),
|
|
5915
|
+
options: I(ne),
|
|
5916
|
+
optionsRenderer: I(W),
|
|
5917
|
+
optionsAction: Y.value,
|
|
5898
5918
|
popoverCssProperties: {
|
|
5899
5919
|
maxHeight: "400px",
|
|
5900
|
-
maxWidth: I(
|
|
5920
|
+
maxWidth: I(z) ? "300px" : "400px",
|
|
5901
5921
|
overflowX: "auto",
|
|
5902
5922
|
width: "auto"
|
|
5903
5923
|
},
|
|
5904
|
-
disableClearIcon: !!I(
|
|
5905
|
-
disableDropdownIcon: !!I(
|
|
5924
|
+
disableClearIcon: !!I(z) || e.readOnly,
|
|
5925
|
+
disableDropdownIcon: !!I(z),
|
|
5906
5926
|
groupings: ["preferences", "suggestions"],
|
|
5907
5927
|
isLoading: I(w),
|
|
5908
5928
|
isSeeMoreLoading: I(T),
|
|
5909
|
-
hasMoreOptions: I(
|
|
5910
|
-
totalOptionCount: I(
|
|
5911
|
-
enableCascadeSelection: I(
|
|
5912
|
-
enableChildExpansion: I(
|
|
5913
|
-
parentSelectsAllChildren: I(
|
|
5914
|
-
countSelectedParents: I(
|
|
5929
|
+
hasMoreOptions: I(_e),
|
|
5930
|
+
totalOptionCount: I(ve),
|
|
5931
|
+
enableCascadeSelection: I(ye),
|
|
5932
|
+
enableChildExpansion: I(ye),
|
|
5933
|
+
parentSelectsAllChildren: I(ye),
|
|
5934
|
+
countSelectedParents: I(ye),
|
|
5915
5935
|
additionalCounter: S.value,
|
|
5916
5936
|
slotContext: {
|
|
5917
|
-
gridApi: I(
|
|
5937
|
+
gridApi: I(ee),
|
|
5918
5938
|
filterColDef: e.filterColDef,
|
|
5919
|
-
rowsLoading: I(
|
|
5939
|
+
rowsLoading: I(N)
|
|
5920
5940
|
},
|
|
5921
|
-
onDropdownOpen:
|
|
5922
|
-
onDropdownClosed:
|
|
5923
|
-
onSeeMore: I(
|
|
5941
|
+
onDropdownOpen: ke,
|
|
5942
|
+
onDropdownClosed: Ae,
|
|
5943
|
+
onSeeMore: I(he)
|
|
5924
5944
|
}, c({
|
|
5925
|
-
preferences:
|
|
5945
|
+
preferences: V(() => [s("div", pl, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(bi), {
|
|
5926
5946
|
variant: "dark",
|
|
5927
5947
|
size: "sm",
|
|
5928
5948
|
"use-teleport": !0
|
|
5929
5949
|
}, {
|
|
5930
|
-
trigger:
|
|
5950
|
+
trigger: V(() => [u(gn, {
|
|
5931
5951
|
size: "md",
|
|
5932
5952
|
variant: "ghost",
|
|
5933
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5953
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(R)),
|
|
5934
5954
|
"right-icon": "sliders-horizontal"
|
|
5935
5955
|
})]),
|
|
5936
|
-
content:
|
|
5956
|
+
content: V(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5937
5957
|
_: 1
|
|
5938
5958
|
})])]),
|
|
5939
|
-
suggestions:
|
|
5959
|
+
suggestions: V(() => [s("div", ml, [u(I(bi), {
|
|
5940
5960
|
variant: "dark",
|
|
5941
5961
|
disableInteractive: !0,
|
|
5942
5962
|
position: "top-left",
|
|
@@ -5944,37 +5964,41 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5944
5964
|
"use-teleport": !0,
|
|
5945
5965
|
style: { "--max-width": "200px" }
|
|
5946
5966
|
}, c({
|
|
5947
|
-
trigger:
|
|
5967
|
+
trigger: V(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(G) ? "suggested-title-label" : ""]) }, P(I(oe)), 3)]),
|
|
5948
5968
|
_: 2
|
|
5949
|
-
}, [I(
|
|
5969
|
+
}, [I(G) ? {
|
|
5950
5970
|
name: "content",
|
|
5951
|
-
fn:
|
|
5971
|
+
fn: V(() => [l(P(I(G)), 1)]),
|
|
5952
5972
|
key: "0"
|
|
5953
5973
|
} : void 0]), 1024)])]),
|
|
5954
5974
|
_: 2
|
|
5955
5975
|
}, [
|
|
5956
|
-
I(ie) ||
|
|
5976
|
+
I(ie) || Oe.value || I(j) ? {
|
|
5957
5977
|
name: "header",
|
|
5958
|
-
fn:
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5978
|
+
fn: V((t) => [
|
|
5979
|
+
I(j) ? (E(), o("p", fl, " Type " + P(I(A)) + " or more characters to search ", 1)) : a("", !0),
|
|
5980
|
+
Oe.value ? (E(), i(ll, {
|
|
5981
|
+
key: 1,
|
|
5982
|
+
ref_key: "filterGroupMenuRef",
|
|
5983
|
+
ref: g,
|
|
5984
|
+
class: "pv-stack-8",
|
|
5985
|
+
"filter-col-def": e.filterColDef
|
|
5986
|
+
}, null, 8, ["filter-col-def"])) : a("", !0),
|
|
5987
|
+
I(ie) ? (E(), i(M(I(ie)), b(_({ key: 2 }, t)), null, 16)) : a("", !0)
|
|
5988
|
+
]),
|
|
5965
5989
|
key: "0"
|
|
5966
5990
|
} : void 0,
|
|
5967
|
-
I(
|
|
5991
|
+
I(U) ? {
|
|
5968
5992
|
name: "no-results",
|
|
5969
|
-
fn:
|
|
5993
|
+
fn: V((e) => [(E(), i(M(I(U)), b(p(e)), null, 16))]),
|
|
5970
5994
|
key: "1"
|
|
5971
5995
|
} : void 0,
|
|
5972
|
-
I(
|
|
5996
|
+
I(ae) ? {
|
|
5973
5997
|
name: "footer",
|
|
5974
|
-
fn:
|
|
5998
|
+
fn: V((e) => [(E(), i(M(I(ae)), b(p(e)), null, 16))]),
|
|
5975
5999
|
key: "2"
|
|
5976
6000
|
} : void 0
|
|
5977
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(
|
|
6001
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div", hl, [I(te).length > 0 ? (E(), o("div", gl, [s("ul", _l, [u(I(bi), {
|
|
5978
6002
|
variant: "dark",
|
|
5979
6003
|
disableInteractive: !0,
|
|
5980
6004
|
position: "bottom-left",
|
|
@@ -5982,14 +6006,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5982
6006
|
"use-teleport": !0,
|
|
5983
6007
|
style: { "--max-width": "200px" }
|
|
5984
6008
|
}, c({
|
|
5985
|
-
trigger:
|
|
6009
|
+
trigger: V(() => [s("li", vl, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(G) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
5986
6010
|
_: 2
|
|
5987
|
-
}, [I(
|
|
6011
|
+
}, [I(G) ? {
|
|
5988
6012
|
name: "content",
|
|
5989
|
-
fn:
|
|
6013
|
+
fn: V(() => [l(P(I(G)), 1)]),
|
|
5990
6014
|
key: "0"
|
|
5991
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
5992
|
-
key: `${I(
|
|
6015
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(te).filter((e) => e !== "" && e != null).slice(0, yl), (e) => (E(), o("li", {
|
|
6016
|
+
key: `${I(R)}-${e}-suggest`,
|
|
5993
6017
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
5994
6018
|
style: {
|
|
5995
6019
|
"max-width": "100%",
|
|
@@ -5997,29 +6021,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5997
6021
|
}
|
|
5998
6022
|
}, [u(I(Pi), {
|
|
5999
6023
|
disabled: I(w),
|
|
6000
|
-
label: I(
|
|
6001
|
-
onHandleClick: (t) => I(
|
|
6024
|
+
label: I(ce)(e) || "",
|
|
6025
|
+
onHandleClick: (t) => I(de)(e, I(se)(I(L), e)?.colField)
|
|
6002
6026
|
}, null, 8, [
|
|
6003
6027
|
"disabled",
|
|
6004
6028
|
"label",
|
|
6005
6029
|
"onHandleClick"
|
|
6006
6030
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
6007
6031
|
}
|
|
6008
|
-
}), [["__scopeId", "data-v-
|
|
6032
|
+
}), [["__scopeId", "data-v-9d73220c"]]), xl = { class: "pv-flex" }, Sl = { class: "pv-flex" }, Cl = { class: "pv-flex pv-space-between pv-stack-8" }, wl = { class: "pv-text-title-lg" }, Tl = {
|
|
6009
6033
|
id: "filter-vertical-drawer",
|
|
6010
6034
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
6011
6035
|
style: { height: "100%" }
|
|
6012
|
-
},
|
|
6036
|
+
}, El = { class: "pv-full-width" }, Dl = {
|
|
6013
6037
|
class: "pv-details pv-stack-12",
|
|
6014
6038
|
open: ""
|
|
6015
|
-
},
|
|
6039
|
+
}, Ol = { class: "pv-flex pv-full-width" }, kl = { class: "pv-text-title-lg" }, Al = { class: "pv-flex pv-space-between" }, jl = { class: "pv-flex" }, Ml = {
|
|
6016
6040
|
class: "pv-flex",
|
|
6017
6041
|
style: {
|
|
6018
6042
|
"--flex-justify": "end",
|
|
6019
6043
|
"--flex-gap": "8px",
|
|
6020
6044
|
"margin-top": "auto"
|
|
6021
6045
|
}
|
|
6022
|
-
},
|
|
6046
|
+
}, Nl = /* @__PURE__ */ d({
|
|
6023
6047
|
__name: "FilterPanel",
|
|
6024
6048
|
props: {
|
|
6025
6049
|
enableFocusView: {
|
|
@@ -6084,7 +6108,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6084
6108
|
return Object.keys(t).length;
|
|
6085
6109
|
}), te = O(!1), ne = () => {
|
|
6086
6110
|
te.value = !0;
|
|
6087
|
-
},
|
|
6111
|
+
}, re = () => {
|
|
6088
6112
|
if (n.value) {
|
|
6089
6113
|
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
6090
6114
|
for (let e of F.value) {
|
|
@@ -6098,17 +6122,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6098
6122
|
});
|
|
6099
6123
|
}
|
|
6100
6124
|
}
|
|
6101
|
-
}, { clearAllFocuses:
|
|
6102
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
6103
|
-
}, ie = () => {
|
|
6104
|
-
w.value = !1, D.value = "";
|
|
6125
|
+
}, { clearAllFocuses: B } = Fs(), H = () => {
|
|
6126
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, B(), T.value = !1);
|
|
6105
6127
|
}, U = () => {
|
|
6106
|
-
|
|
6107
|
-
},
|
|
6108
|
-
b(),
|
|
6128
|
+
w.value = !1, D.value = "";
|
|
6129
|
+
}, W = () => {
|
|
6130
|
+
b(), g.value = null, U();
|
|
6131
|
+
}, ie = () => {
|
|
6132
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, U();
|
|
6109
6133
|
};
|
|
6110
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
6111
|
-
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(
|
|
6134
|
+
return (e, r) => (E(), o(t, null, [s("div", xl, [
|
|
6135
|
+
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(bl, {
|
|
6112
6136
|
key: 0,
|
|
6113
6137
|
"enable-focus-view": p.enableFocusView,
|
|
6114
6138
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -6123,10 +6147,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6123
6147
|
"filterColDef",
|
|
6124
6148
|
"read-only"
|
|
6125
6149
|
])) : a("", !0)], 64))), 128)),
|
|
6126
|
-
s("div",
|
|
6150
|
+
s("div", Sl, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
6127
6151
|
key: 0,
|
|
6128
6152
|
label: "All Filters",
|
|
6129
|
-
onClick:
|
|
6153
|
+
onClick: re,
|
|
6130
6154
|
variant: "ghost",
|
|
6131
6155
|
"left-icon": "filter"
|
|
6132
6156
|
})) : a("", !0), z.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
@@ -6148,48 +6172,48 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6148
6172
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
6149
6173
|
class: "pv-drawer pv-surface",
|
|
6150
6174
|
"close-on-click-outside": !0,
|
|
6151
|
-
onClickOutside: r[10] ||= (e) =>
|
|
6175
|
+
onClickOutside: r[10] ||= (e) => ie(),
|
|
6152
6176
|
style: {
|
|
6153
6177
|
"max-width": "450px",
|
|
6154
6178
|
"z-index": "10"
|
|
6155
6179
|
}
|
|
6156
6180
|
}, {
|
|
6157
|
-
header:
|
|
6181
|
+
header: V(() => [s("div", Cl, [s("p", wl, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
6158
6182
|
class: "pv-button-ghost",
|
|
6159
6183
|
"aria-label": "Close",
|
|
6160
|
-
onClick: r[2] ||= (e) =>
|
|
6184
|
+
onClick: r[2] ||= (e) => W()
|
|
6161
6185
|
}, [u(I(ln), { name: "close" })])]), u(I(zi), {
|
|
6162
6186
|
modelValue: D.value,
|
|
6163
6187
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
6164
6188
|
placeholder: "Search Filters"
|
|
6165
6189
|
}, null, 8, ["modelValue"])]),
|
|
6166
|
-
footer:
|
|
6190
|
+
footer: V(() => [s("div", Al, [p.readOnly ? (E(), i(I(gn), {
|
|
6167
6191
|
key: 1,
|
|
6168
6192
|
variant: "ghost",
|
|
6169
6193
|
label: "Close",
|
|
6170
|
-
onClick: r[8] ||= (e) =>
|
|
6194
|
+
onClick: r[8] ||= (e) => W()
|
|
6171
6195
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
6172
6196
|
class: "pv-button-ghost",
|
|
6173
|
-
onClick: r[5] ||= (e) =>
|
|
6174
|
-
}, "Clear All"), s("div",
|
|
6197
|
+
onClick: r[5] ||= (e) => H()
|
|
6198
|
+
}, "Clear All"), s("div", jl, [u(I(gn), {
|
|
6175
6199
|
variant: "ghost",
|
|
6176
6200
|
label: "Cancel",
|
|
6177
|
-
onClick: r[6] ||= (e) =>
|
|
6201
|
+
onClick: r[6] ||= (e) => W()
|
|
6178
6202
|
}), te.value ? (E(), i(I(gn), {
|
|
6179
6203
|
key: 0,
|
|
6180
6204
|
variant: "primary",
|
|
6181
6205
|
label: "Apply",
|
|
6182
|
-
onClick: r[7] ||= (e) =>
|
|
6206
|
+
onClick: r[7] ||= (e) => ie()
|
|
6183
6207
|
})) : (E(), i(I(gn), {
|
|
6184
6208
|
key: 1,
|
|
6185
6209
|
variant: "primary",
|
|
6186
6210
|
label: "No Changes",
|
|
6187
6211
|
disabled: ""
|
|
6188
6212
|
}))])], 64))])]),
|
|
6189
|
-
default:
|
|
6213
|
+
default: V(() => [s("div", Tl, [s("div", El, [(E(!0), o(t, null, k(ee.value, (t, c) => (E(), o("div", {
|
|
6190
6214
|
key: t.field,
|
|
6191
6215
|
class: y([{ "pv-border-bottom": c < ee.value.length - 1 }, "pv-stack-12"])
|
|
6192
|
-
}, [s("details",
|
|
6216
|
+
}, [s("details", Dl, [s("summary", Ol, [s("span", kl, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(bl, {
|
|
6193
6217
|
key: 0,
|
|
6194
6218
|
"filter-style": "vertical",
|
|
6195
6219
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -6214,8 +6238,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6214
6238
|
header: "Clear All Filters",
|
|
6215
6239
|
style: { top: "50%" }
|
|
6216
6240
|
}, {
|
|
6217
|
-
body:
|
|
6218
|
-
footer:
|
|
6241
|
+
body: V(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
6242
|
+
footer: V(() => [s("div", Ml, [u(I(gn), {
|
|
6219
6243
|
label: "Cancel",
|
|
6220
6244
|
variant: "secondary",
|
|
6221
6245
|
size: "lg",
|
|
@@ -6224,15 +6248,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6224
6248
|
label: "Clear All Filters",
|
|
6225
6249
|
variant: "primary",
|
|
6226
6250
|
size: "lg",
|
|
6227
|
-
onClick:
|
|
6251
|
+
onClick: H
|
|
6228
6252
|
})])]),
|
|
6229
6253
|
_: 1
|
|
6230
6254
|
}, 8, ["modelValue"])], 64));
|
|
6231
6255
|
}
|
|
6232
|
-
}),
|
|
6256
|
+
}), Pl = { key: 2 }, Fl = {
|
|
6233
6257
|
key: 0,
|
|
6234
6258
|
class: "pv-flex ag-header-actions"
|
|
6235
|
-
},
|
|
6259
|
+
}, Il = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6236
6260
|
__name: "HeaderCellRenderer",
|
|
6237
6261
|
props: { params: {} },
|
|
6238
6262
|
setup(e, { expose: t }) {
|
|
@@ -6263,7 +6287,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6263
6287
|
}, I = () => {
|
|
6264
6288
|
f.value && l.params.progressSort(!1);
|
|
6265
6289
|
};
|
|
6266
|
-
|
|
6290
|
+
B(D, (e) => {
|
|
6267
6291
|
if (!e) return;
|
|
6268
6292
|
let t = l.params.column.getAggFunc();
|
|
6269
6293
|
if (e.id === t) return;
|
|
@@ -6307,17 +6331,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6307
6331
|
variant: "ghost",
|
|
6308
6332
|
size: "lg",
|
|
6309
6333
|
label: p.value || "",
|
|
6310
|
-
onClick: t[1] ||=
|
|
6334
|
+
onClick: t[1] ||= U(() => {}, ["stop"])
|
|
6311
6335
|
}, null, 8, [
|
|
6312
6336
|
"modelValue",
|
|
6313
6337
|
"options",
|
|
6314
6338
|
"label"
|
|
6315
|
-
])) : (E(), o("p",
|
|
6339
|
+
])) : (E(), o("p", Pl, P(p.value), 1)),
|
|
6316
6340
|
f.value && b.value !== "" ? (E(), i(ln, {
|
|
6317
6341
|
key: 3,
|
|
6318
6342
|
name: b.value
|
|
6319
6343
|
}, null, 8, ["name"])) : a("", !0)
|
|
6320
|
-
], 6), v.value ? (E(), o("div",
|
|
6344
|
+
], 6), v.value ? (E(), o("div", Fl, [s("div", {
|
|
6321
6345
|
ref_key: "menuButton",
|
|
6322
6346
|
ref: g,
|
|
6323
6347
|
class: "ag-header-cell-menu-button",
|
|
@@ -6327,10 +6351,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6327
6351
|
variant: "ghost",
|
|
6328
6352
|
"left-icon": "menu",
|
|
6329
6353
|
ariaLabel: "Column menu",
|
|
6330
|
-
onClick:
|
|
6354
|
+
onClick: U(N, ["stop", "prevent"])
|
|
6331
6355
|
})], 4)])) : a("", !0)], 4));
|
|
6332
6356
|
}
|
|
6333
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
6357
|
+
}), [["__scopeId", "data-v-385ad98a"]]), Ll = {
|
|
6334
6358
|
headerHeight: "30px",
|
|
6335
6359
|
headerBackgroundColor: "white",
|
|
6336
6360
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6345,14 +6369,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6345
6369
|
rangeSelectionBorderStyle: "solid",
|
|
6346
6370
|
menuBackgroundColor: "white",
|
|
6347
6371
|
accentColor: "#36C5BA"
|
|
6348
|
-
},
|
|
6349
|
-
...
|
|
6372
|
+
}, Rl = Y.withParams({
|
|
6373
|
+
...Ll,
|
|
6350
6374
|
headerRowBorder: !0,
|
|
6351
6375
|
rowHoverColor: "#F7F8F8",
|
|
6352
6376
|
wrapperBorder: !0,
|
|
6353
6377
|
wrapperBorderRadius: "8px"
|
|
6354
|
-
}),
|
|
6355
|
-
...
|
|
6378
|
+
}), zl = Y.withParams({
|
|
6379
|
+
...Ll,
|
|
6356
6380
|
headerRowBorder: !1,
|
|
6357
6381
|
rowHoverColor: "transparent",
|
|
6358
6382
|
wrapperBorder: !1,
|
|
@@ -6360,20 +6384,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6360
6384
|
rowBorder: !1,
|
|
6361
6385
|
columnBorder: !1,
|
|
6362
6386
|
rowHeight: "50px"
|
|
6363
|
-
}),
|
|
6364
|
-
"pv-data-table-base":
|
|
6387
|
+
}), Bl = {
|
|
6388
|
+
"pv-data-table-base": Rl,
|
|
6365
6389
|
"pv-data-table-grouped": Y.withParams({
|
|
6366
|
-
...
|
|
6390
|
+
...Ll,
|
|
6367
6391
|
headerRowBorder: !0,
|
|
6368
6392
|
rowHoverColor: "#F7F8F8",
|
|
6369
6393
|
wrapperBorder: !0,
|
|
6370
6394
|
wrapperBorderRadius: "8px"
|
|
6371
6395
|
}),
|
|
6372
|
-
"pv-data-table-grouped-card":
|
|
6373
|
-
},
|
|
6396
|
+
"pv-data-table-grouped-card": zl
|
|
6397
|
+
}, Vl = { class: "pv-popover-menu" }, Hl = {
|
|
6374
6398
|
class: "pv-popover",
|
|
6375
6399
|
style: { "--height": "auto" }
|
|
6376
|
-
},
|
|
6400
|
+
}, Ul = ["disabled"], Wl = /* @__PURE__ */ d({
|
|
6377
6401
|
__name: "ExportMenu",
|
|
6378
6402
|
props: { getCsvData: { type: Function } },
|
|
6379
6403
|
setup(e) {
|
|
@@ -6388,22 +6412,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6388
6412
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
6389
6413
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
6390
6414
|
}
|
|
6391
|
-
return (e, n) => (E(), o("nav",
|
|
6415
|
+
return (e, n) => (E(), o("nav", Vl, [n[0] ||= s("button", {
|
|
6392
6416
|
type: "button",
|
|
6393
6417
|
class: "pv-button-icon"
|
|
6394
6418
|
}, [s("svg", {
|
|
6395
6419
|
"aria-hidden": "true",
|
|
6396
6420
|
class: "pv-icon-24"
|
|
6397
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
6421
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Hl, [s("button", {
|
|
6398
6422
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6399
|
-
onClick:
|
|
6423
|
+
onClick: U(i, ["prevent"]),
|
|
6400
6424
|
disabled: r.value
|
|
6401
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
6425
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Ul)])]));
|
|
6402
6426
|
}
|
|
6403
|
-
}),
|
|
6427
|
+
}), Gl = {
|
|
6404
6428
|
key: 1,
|
|
6405
6429
|
class: ""
|
|
6406
|
-
},
|
|
6430
|
+
}, Kl = /* @__PURE__ */ d({
|
|
6407
6431
|
__name: "PaginationPanel",
|
|
6408
6432
|
props: { panelSize: { default: "xl" } },
|
|
6409
6433
|
setup(e) {
|
|
@@ -6440,7 +6464,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6440
6464
|
"size",
|
|
6441
6465
|
"onClick",
|
|
6442
6466
|
"label"
|
|
6443
|
-
])) : (E(), o("span",
|
|
6467
|
+
])) : (E(), o("span", Gl, "..."))], 64))), 128)),
|
|
6444
6468
|
u(gn, {
|
|
6445
6469
|
variant: "ghost",
|
|
6446
6470
|
onClick: f,
|
|
@@ -6451,10 +6475,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6451
6475
|
}, null, 8, ["disabled", "size"])
|
|
6452
6476
|
], 2));
|
|
6453
6477
|
}
|
|
6454
|
-
}),
|
|
6478
|
+
}), ql = {
|
|
6455
6479
|
key: 0,
|
|
6456
6480
|
class: "pv-tag"
|
|
6457
|
-
},
|
|
6481
|
+
}, Jl = /* @__PURE__ */ d({
|
|
6458
6482
|
__name: "TagCellRenderer",
|
|
6459
6483
|
props: { params: {} },
|
|
6460
6484
|
setup(e) {
|
|
@@ -6462,12 +6486,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6462
6486
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
6463
6487
|
return e.trim() === "" ? null : e;
|
|
6464
6488
|
});
|
|
6465
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
6489
|
+
return (e, t) => n.value ? (E(), o("div", ql, P(n.value), 1)) : a("", !0);
|
|
6466
6490
|
}
|
|
6467
|
-
}),
|
|
6491
|
+
}), Yl = {
|
|
6468
6492
|
key: 0,
|
|
6469
6493
|
class: "pv-table-row-number"
|
|
6470
|
-
},
|
|
6494
|
+
}, Xl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6471
6495
|
__name: "RowCountCellRenderer",
|
|
6472
6496
|
props: { params: {} },
|
|
6473
6497
|
setup(e) {
|
|
@@ -6475,9 +6499,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6475
6499
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
6476
6500
|
return e && oc(e) ? n.toLocaleString() : n;
|
|
6477
6501
|
});
|
|
6478
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
6502
|
+
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span", Yl, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
6479
6503
|
}
|
|
6480
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
6504
|
+
}), [["__scopeId", "data-v-686928ce"]]), Zl = /* @__PURE__ */ d({
|
|
6481
6505
|
__name: "TableSearch",
|
|
6482
6506
|
props: {
|
|
6483
6507
|
placeholder: {},
|
|
@@ -6549,28 +6573,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6549
6573
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
6550
6574
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
6551
6575
|
}
|
|
6552
|
-
}),
|
|
6576
|
+
}), Ql = {
|
|
6553
6577
|
style: {
|
|
6554
6578
|
"background-color": "white",
|
|
6555
6579
|
"max-width": "300px"
|
|
6556
6580
|
},
|
|
6557
6581
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
6558
|
-
},
|
|
6582
|
+
}, $l = { style: { color: "black" } }, eu = /* @__PURE__ */ d({
|
|
6559
6583
|
__name: "TableTooltip",
|
|
6560
6584
|
props: { params: {} },
|
|
6561
6585
|
setup(e) {
|
|
6562
|
-
return (t, n) => (E(), o("div",
|
|
6586
|
+
return (t, n) => (E(), o("div", Ql, [s("p", $l, P(e.params.value), 1)]));
|
|
6563
6587
|
}
|
|
6564
|
-
}),
|
|
6588
|
+
}), tu = { class: "pv-stack-16" }, nu = { class: "pv-flex pv-space-between" }, ru = { class: "pv-flex" }, iu = { style: {
|
|
6565
6589
|
width: "30%",
|
|
6566
6590
|
"max-width": "50%"
|
|
6567
|
-
} },
|
|
6591
|
+
} }, au = {
|
|
6568
6592
|
key: 0,
|
|
6569
6593
|
class: "pv-table-overlay"
|
|
6570
|
-
},
|
|
6594
|
+
}, ou = {
|
|
6571
6595
|
class: "pv-text-body-xs pv-text-center",
|
|
6572
6596
|
style: { "padding-top": "16px" }
|
|
6573
|
-
},
|
|
6597
|
+
}, su = /* @__PURE__ */ d({
|
|
6574
6598
|
__name: "PvDataTable",
|
|
6575
6599
|
props: {
|
|
6576
6600
|
allFieldsAreFocusable: {
|
|
@@ -6616,6 +6640,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6616
6640
|
default: !1
|
|
6617
6641
|
},
|
|
6618
6642
|
enableTableSearch: { type: Boolean },
|
|
6643
|
+
filterSearchMinLength: {},
|
|
6619
6644
|
enableTopSlot: { type: Boolean },
|
|
6620
6645
|
enableVerticalFilterPanel: {
|
|
6621
6646
|
type: Boolean,
|
|
@@ -6755,10 +6780,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6755
6780
|
Ee,
|
|
6756
6781
|
oe,
|
|
6757
6782
|
De,
|
|
6758
|
-
|
|
6783
|
+
se,
|
|
6759
6784
|
Oe,
|
|
6760
|
-
K,
|
|
6761
6785
|
ce,
|
|
6786
|
+
K,
|
|
6762
6787
|
ke,
|
|
6763
6788
|
Ae,
|
|
6764
6789
|
le,
|
|
@@ -6769,7 +6794,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6769
6794
|
Re,
|
|
6770
6795
|
Le,
|
|
6771
6796
|
ze,
|
|
6772
|
-
|
|
6797
|
+
we,
|
|
6773
6798
|
Ne,
|
|
6774
6799
|
be,
|
|
6775
6800
|
Fe,
|
|
@@ -6778,9 +6803,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6778
6803
|
ve,
|
|
6779
6804
|
ye,
|
|
6780
6805
|
Be,
|
|
6806
|
+
Ce,
|
|
6781
6807
|
J,
|
|
6782
|
-
|
|
6783
|
-
se,
|
|
6808
|
+
G,
|
|
6784
6809
|
Se,
|
|
6785
6810
|
he,
|
|
6786
6811
|
_e,
|
|
@@ -6794,16 +6819,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6794
6819
|
let p = r(() => f.layout ? {} : {
|
|
6795
6820
|
height: f.containerHeight,
|
|
6796
6821
|
minHeight: f.containerMinHeight
|
|
6797
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : Y.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 :
|
|
6822
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : Y.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 : Bl[g.value]), T = c, k = O(!1), j = (e) => {
|
|
6798
6823
|
let t = cc(e), n = e.context;
|
|
6799
6824
|
return Array.from(new Set([
|
|
6800
6825
|
...t,
|
|
6801
6826
|
...n?.queryColIds || [],
|
|
6802
|
-
...t.flatMap((e) =>
|
|
6827
|
+
...t.flatMap((e) => W.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
6803
6828
|
]));
|
|
6804
6829
|
}, M = (e, t) => {
|
|
6805
6830
|
if (Dc(e, t)) return !0;
|
|
6806
|
-
let n =
|
|
6831
|
+
let n = W.find((e) => lc(e) === t);
|
|
6807
6832
|
return !!n && j(n).some((t) => Dc(e, t));
|
|
6808
6833
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6809
6834
|
if (!X.value) {
|
|
@@ -6874,7 +6899,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6874
6899
|
} : e.request.filterModel = s;
|
|
6875
6900
|
} else {
|
|
6876
6901
|
let t = e.request.filterModel;
|
|
6877
|
-
e.request.filterModel = Oc(
|
|
6902
|
+
e.request.filterModel = Oc(W, t, s);
|
|
6878
6903
|
}
|
|
6879
6904
|
e.success = (e) => {
|
|
6880
6905
|
if (Ue.value = !1, f.enableFocusView && lt.value.length > 0 && ct.value && e.rowData) {
|
|
@@ -6909,9 +6934,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6909
6934
|
suppressColumnsToolPanel: !0,
|
|
6910
6935
|
minWidth: 150,
|
|
6911
6936
|
flex: 1,
|
|
6912
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
6937
|
+
headerComponent: f.enableInlineFilters ? void 0 : Il,
|
|
6913
6938
|
cellDataType: !1,
|
|
6914
|
-
tooltipComponent:
|
|
6939
|
+
tooltipComponent: eu,
|
|
6915
6940
|
cellClass: (e) => xt(e.column) ? "" : oc(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
6916
6941
|
cellRendererSelector: (e) => {
|
|
6917
6942
|
if (L(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
@@ -6921,7 +6946,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6921
6946
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && Y.value.length === 0) {
|
|
6922
6947
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6923
6948
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6924
|
-
component:
|
|
6949
|
+
component: Xl,
|
|
6925
6950
|
params: e
|
|
6926
6951
|
};
|
|
6927
6952
|
}
|
|
@@ -6944,7 +6969,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6944
6969
|
}));
|
|
6945
6970
|
}
|
|
6946
6971
|
}
|
|
6947
|
-
},
|
|
6972
|
+
}, U = (e, t) => {
|
|
6948
6973
|
if (!e) return null;
|
|
6949
6974
|
let n = { ...e }, r = t, i = cc(e);
|
|
6950
6975
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -6957,17 +6982,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6957
6982
|
let t = e.headerValueGetter;
|
|
6958
6983
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
6959
6984
|
}
|
|
6960
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
6961
|
-
},
|
|
6985
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer = Jl), n;
|
|
6986
|
+
}, W = f.colDefs?.map((e) => {
|
|
6962
6987
|
let t = { ...e };
|
|
6963
6988
|
F && ee && kc(e) && (t = Ac(e, ee));
|
|
6964
6989
|
let n = e.context;
|
|
6965
|
-
return n && (t =
|
|
6966
|
-
}).filter((e) => e != null) || [],
|
|
6967
|
-
for (let e of
|
|
6968
|
-
let pe = Sc(f.initialGridState,
|
|
6990
|
+
return n && (t = U(t, n)), t;
|
|
6991
|
+
}).filter((e) => e != null) || [], ie = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6992
|
+
for (let e of W) for (let t of cc(e)) ie.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6993
|
+
let pe = Sc(f.initialGridState, W, f.enableAdvancedFilter), ge = O(null), Y = O([]), He = m(ns, O(!1)), Ue = O(!1), We = r(() => {
|
|
6969
6994
|
if (Y.value.length > 0) {
|
|
6970
|
-
let e = Y.value[0], t =
|
|
6995
|
+
let e = Y.value[0], t = W.find((t) => t.field === e), n = Qe.value, r = !n;
|
|
6971
6996
|
if (!r && Xc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6972
6997
|
}
|
|
6973
6998
|
return null;
|
|
@@ -6988,7 +7013,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6988
7013
|
}) ?? e(t.field) : e(t.field);
|
|
6989
7014
|
});
|
|
6990
7015
|
}
|
|
6991
|
-
ot.value = f.tableSearchHandler, et.value = f.initialFilterValueMap || {}, nt.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), rt.value = f.initialFilterValueSelectedMetadataMap || {}, Ye.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, Ye.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, Ye.filterModelType.value = f.enableAdvancedFilter ? "advanced" : "regular",
|
|
7016
|
+
ot.value = f.tableSearchHandler, et.value = f.initialFilterValueMap || {}, nt.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), rt.value = f.initialFilterValueSelectedMetadataMap || {}, Ye.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, Ye.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, Ye.filterSearchMinLength.value = f.filterSearchMinLength, Ye.filterModelType.value = f.enableAdvancedFilter ? "advanced" : "regular", B(() => f.enableAdvancedFilter, (e) => {
|
|
6992
7017
|
Ye.filterModelType.value = e ? "advanced" : "regular";
|
|
6993
7018
|
}), qe([et, rt], () => {
|
|
6994
7019
|
T("filter-metadata-changed", {
|
|
@@ -6999,22 +7024,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6999
7024
|
deep: !0,
|
|
7000
7025
|
debounce: 250
|
|
7001
7026
|
});
|
|
7002
|
-
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() =>
|
|
7027
|
+
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() => W.filter((e) => e.filter)), dt = r(() => W.filter((e) => e.enableRowGroup)), ft = r(() => W.filter((e) => e.aggFunc)), pt = O(null), mt = O({}), ht = O(1), gt = O(0);
|
|
7003
7028
|
D(Go, Ye), D(Ko, Ze), D(qo, Ke), D(Jo, Z), D(Yo, st), D(Xo, ge), D(Zo, ut), D(Qo, dt), D($o, Y), D(es, pt), D(ts, mt), D(ns, He), D(rs, Ue), D(is, ht), D(as, gt), D(gs, r(() => f.enableAdvancedFilter));
|
|
7004
7029
|
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData : nc(f.rowData, ct.value, lt.value));
|
|
7005
|
-
|
|
7030
|
+
B(() => lt.value, (e) => {
|
|
7006
7031
|
T("focus-update", {
|
|
7007
7032
|
filterField: ct.value,
|
|
7008
7033
|
focuses: e
|
|
7009
7034
|
});
|
|
7010
|
-
}),
|
|
7035
|
+
}), B(k, (e) => {
|
|
7011
7036
|
if (!Z.value) return;
|
|
7012
|
-
let t =
|
|
7037
|
+
let t = W.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
7013
7038
|
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
7014
7039
|
});
|
|
7015
7040
|
let vt = (e) => {
|
|
7016
7041
|
Z.value = e.api;
|
|
7017
|
-
let t = Y.value.find((e) => !
|
|
7042
|
+
let t = Y.value.find((e) => !W.find((t) => t.field === e)?.hide), n = !t && Y.value.length > 0 ? W.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
7018
7043
|
if (f.hideAllRowGroupedColumns && Y.value.forEach((e) => i.push(e)), r) {
|
|
7019
7044
|
let t = e.api.getColumn(r);
|
|
7020
7045
|
pt.value = t, i.push(r), Wt(t?.getColDef());
|
|
@@ -7129,7 +7154,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7129
7154
|
v(() => {
|
|
7130
7155
|
let t = pt.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
7131
7156
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
7132
|
-
let t =
|
|
7157
|
+
let t = W.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
7133
7158
|
t && (i = e.api.getColumn(t));
|
|
7134
7159
|
}
|
|
7135
7160
|
i ? (pt.value = i, Wt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (pt.value = null, Wt(null));
|
|
@@ -7188,7 +7213,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7188
7213
|
Ut.value.headerName = "", Ut.value.headerComponent = void 0, Ut.value.context = null, Ut.value.sortable = !1, Ut.value.filter = void 0, Ut.value.enableRowGroup = void 0;
|
|
7189
7214
|
return;
|
|
7190
7215
|
}
|
|
7191
|
-
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
7216
|
+
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : Il), Ut.value.context = { dataType: e.context?.dataType || null }, Ut.value.sortable = e.sortable, Ut.value.filter = e.filter, Ut.value.enableRowGroup = e.enableRowGroup, Ut.value.onCellClicked = e.onCellClicked;
|
|
7192
7217
|
}, Gt = (e) => {
|
|
7193
7218
|
if (e.node.group) return {
|
|
7194
7219
|
backgroundColor: "#F7F8F8",
|
|
@@ -7225,9 +7250,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7225
7250
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
7226
7251
|
n && !zc(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r, Y.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
7227
7252
|
};
|
|
7228
|
-
|
|
7253
|
+
B(() => f.initialGridState, () => {
|
|
7229
7254
|
if (f.initialGridState) {
|
|
7230
|
-
let e = Sc(f.initialGridState,
|
|
7255
|
+
let e = Sc(f.initialGridState, W, f.enableAdvancedFilter);
|
|
7231
7256
|
e && qt(e);
|
|
7232
7257
|
}
|
|
7233
7258
|
}, { deep: !0 });
|
|
@@ -7251,19 +7276,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7251
7276
|
"--flex-justify": "flex-end"
|
|
7252
7277
|
}
|
|
7253
7278
|
}, {
|
|
7254
|
-
trigger:
|
|
7279
|
+
trigger: V(() => [u(I(gn), {
|
|
7255
7280
|
"left-icon": "flask-conical",
|
|
7256
7281
|
ariaLabel: "Toggle dev mode",
|
|
7257
7282
|
variant: k.value ? "primary" : "secondary",
|
|
7258
7283
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
7259
7284
|
}, null, 8, ["variant"])]),
|
|
7260
|
-
content:
|
|
7285
|
+
content: V(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
7261
7286
|
_: 1
|
|
7262
7287
|
})) : a("", !0),
|
|
7263
|
-
|
|
7288
|
+
H(s("div", tu, [s("div", nu, [(E(), i(n, {
|
|
7264
7289
|
to: e.filterTeleportLocation,
|
|
7265
7290
|
disabled: !e.filterTeleportLocation
|
|
7266
|
-
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
7291
|
+
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(Nl, {
|
|
7267
7292
|
key: 0,
|
|
7268
7293
|
"enable-focus-view": e.enableFocusView,
|
|
7269
7294
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -7281,23 +7306,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7281
7306
|
"focus-text",
|
|
7282
7307
|
"max-horizontal-filters",
|
|
7283
7308
|
"read-only"
|
|
7284
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
7309
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", ru, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Es, {
|
|
7285
7310
|
key: 0,
|
|
7286
7311
|
rowGroupLimit: e.rowGroupLimit,
|
|
7287
7312
|
enableFocusView: e.enableFocusView
|
|
7288
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
7313
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Wl, {
|
|
7289
7314
|
key: 1,
|
|
7290
7315
|
getCsvData: Tt
|
|
7291
|
-
})) : a("", !0)])])], 512), [[
|
|
7292
|
-
|
|
7316
|
+
})) : a("", !0)])])], 512), [[re, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
7317
|
+
H(s("div", {
|
|
7293
7318
|
ref_key: "advancedFilterParentElement",
|
|
7294
7319
|
ref: Qt,
|
|
7295
7320
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
7296
|
-
}, null, 2), [[
|
|
7321
|
+
}, null, 2), [[re, k.value && e.enableAdvancedFilter]]),
|
|
7297
7322
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7298
7323
|
key: 1,
|
|
7299
7324
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
7300
|
-
}, [s("div",
|
|
7325
|
+
}, [s("div", iu, [e.enableTableSearch ? (E(), i(Zl, {
|
|
7301
7326
|
key: 0,
|
|
7302
7327
|
placeholder: e.tableSearchPlaceholder,
|
|
7303
7328
|
disabled: !X.value,
|
|
@@ -7315,7 +7340,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7315
7340
|
"min-height": "0",
|
|
7316
7341
|
"overflow-x": "hidden"
|
|
7317
7342
|
}
|
|
7318
|
-
}, [u(I(
|
|
7343
|
+
}, [u(I(ae), _({
|
|
7319
7344
|
ref: "gridRef",
|
|
7320
7345
|
class: ["pv-data-table", I(b)],
|
|
7321
7346
|
style: [{
|
|
@@ -7344,7 +7369,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7344
7369
|
onUndoStarted: r[10] ||= (e) => T("undo-started", e),
|
|
7345
7370
|
aggFuncs: Kt,
|
|
7346
7371
|
autoGroupColumnDef: Ut.value,
|
|
7347
|
-
columnDefs: I(
|
|
7372
|
+
columnDefs: I(W),
|
|
7348
7373
|
debug: e.debugMode,
|
|
7349
7374
|
defaultColDef: I(R),
|
|
7350
7375
|
getChildCount: zt,
|
|
@@ -7393,14 +7418,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7393
7418
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7394
7419
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7395
7420
|
advancedFilterParent: Qt.value
|
|
7396
|
-
}), 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 && !X.value ? (E(), o("div",
|
|
7397
|
-
e.pagination ? (E(), i(
|
|
7421
|
+
}), 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 && !X.value ? (E(), o("div", au, [s("p", ou, P(Ge.value), 1)])) : a("", !0)], 2),
|
|
7422
|
+
e.pagination ? (E(), i(Kl, { key: 2 })) : a("", !0)
|
|
7398
7423
|
], 4));
|
|
7399
7424
|
}
|
|
7400
|
-
}),
|
|
7425
|
+
}), cu = {
|
|
7401
7426
|
class: "pv-flex",
|
|
7402
7427
|
style: { "white-space": "nowrap" }
|
|
7403
|
-
},
|
|
7428
|
+
}, lu = { class: "pv-text-body-md" }, uu = /* @__PURE__ */ d({
|
|
7404
7429
|
inheritAttrs: !1,
|
|
7405
7430
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
7406
7431
|
props: {
|
|
@@ -7409,16 +7434,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7409
7434
|
context: {}
|
|
7410
7435
|
},
|
|
7411
7436
|
setup(e) {
|
|
7412
|
-
return (t, n) => (E(), o("div",
|
|
7437
|
+
return (t, n) => (E(), o("div", cu, [s("span", lu, P(e.text), 1), e.context?.rightIcon ? (E(), i(ln, {
|
|
7413
7438
|
key: 0,
|
|
7414
7439
|
name: e.context.rightIcon,
|
|
7415
7440
|
class: "pv-text-subdued"
|
|
7416
7441
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
7417
7442
|
}
|
|
7418
|
-
}),
|
|
7443
|
+
}), du = { class: "pv-relative" }, fu = {
|
|
7419
7444
|
role: "list",
|
|
7420
7445
|
class: "pv-relative"
|
|
7421
|
-
},
|
|
7446
|
+
}, pu = ["data-active"], mu = { style: { cursor: "pointer" } }, hu = { role: "list" }, gu = /* @__PURE__ */ d({
|
|
7422
7447
|
__name: "PvTableOptionsPanel",
|
|
7423
7448
|
props: {
|
|
7424
7449
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -7435,7 +7460,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7435
7460
|
},
|
|
7436
7461
|
useTeleport: !0
|
|
7437
7462
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7438
|
-
|
|
7463
|
+
B(g, (e) => {
|
|
7439
7464
|
e && (p.value = e);
|
|
7440
7465
|
});
|
|
7441
7466
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7443,7 +7468,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7443
7468
|
text: e.title,
|
|
7444
7469
|
context: { rightIcon: e.icon }
|
|
7445
7470
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7446
|
-
|
|
7471
|
+
B(b, (e) => {
|
|
7447
7472
|
c("table-overlay-change", e);
|
|
7448
7473
|
}, { immediate: !0 });
|
|
7449
7474
|
let x = () => {
|
|
@@ -7453,7 +7478,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7453
7478
|
}, C = () => {
|
|
7454
7479
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7455
7480
|
};
|
|
7456
|
-
return (n, r) => (E(), o(t, null, [
|
|
7481
|
+
return (n, r) => (E(), o(t, null, [H((E(), o("div", du, [u(ia, {
|
|
7457
7482
|
open: m.value,
|
|
7458
7483
|
label: "Table Configuration",
|
|
7459
7484
|
icon: "settings",
|
|
@@ -7468,13 +7493,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7468
7493
|
alignment: "right",
|
|
7469
7494
|
isList: !0
|
|
7470
7495
|
}, {
|
|
7471
|
-
default:
|
|
7496
|
+
default: V(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7472
7497
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7473
7498
|
style: {
|
|
7474
7499
|
"padding-top": "4px",
|
|
7475
7500
|
"padding-bottom": "12px"
|
|
7476
7501
|
}
|
|
7477
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
7502
|
+
}, " Table Configuration ")], -1), s("ul", fu, [v.value ? (E(), o("li", {
|
|
7478
7503
|
key: 0,
|
|
7479
7504
|
id: "table-config-overlay",
|
|
7480
7505
|
"data-active": h.value ? !0 : null,
|
|
@@ -7487,7 +7512,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7487
7512
|
text: "Table Overlay",
|
|
7488
7513
|
icon: "layers-2",
|
|
7489
7514
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
7490
|
-
}, null, 8, ["class-list"])], 40,
|
|
7515
|
+
}, null, 8, ["class-list"])], 40, pu)) : a("", !0), s("li", mu, [u(za, {
|
|
7491
7516
|
config: { variant: "icon" },
|
|
7492
7517
|
id: "table-config-group-toggle",
|
|
7493
7518
|
class: "pv-text-subdued",
|
|
@@ -7507,11 +7532,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7507
7532
|
},
|
|
7508
7533
|
isList: !0
|
|
7509
7534
|
}, {
|
|
7510
|
-
default:
|
|
7535
|
+
default: V(() => [s("ul", hu, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(za, {
|
|
7511
7536
|
id: e.id,
|
|
7512
7537
|
config: {
|
|
7513
7538
|
variant: "checkbox",
|
|
7514
|
-
renderer:
|
|
7539
|
+
renderer: uu
|
|
7515
7540
|
},
|
|
7516
7541
|
text: e.text,
|
|
7517
7542
|
context: e.context,
|
|
@@ -7528,13 +7553,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7528
7553
|
_: 1
|
|
7529
7554
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
7530
7555
|
}
|
|
7531
|
-
}),
|
|
7556
|
+
}), _u = ["id"], vu = {
|
|
7532
7557
|
key: 0,
|
|
7533
7558
|
class: "sort-divider-container"
|
|
7534
|
-
},
|
|
7559
|
+
}, yu = ["data-label"], bu = ["onDrop"], xu = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Su = { class: "pv-text-body-sm pv-text-tertiary" }, Cu = { class: "pv-flex pv-full-width pv-sort-option" }, wu = { class: "pv-text-body-sm" }, Tu = {
|
|
7535
7560
|
key: 1,
|
|
7536
7561
|
class: "pv-button-placeholder"
|
|
7537
|
-
},
|
|
7562
|
+
}, Eu = "--divider--", Du = "placeholder-", Ou = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7538
7563
|
__name: "PvSortableList",
|
|
7539
7564
|
props: /* @__PURE__ */ g({
|
|
7540
7565
|
options: { default: () => [] },
|
|
@@ -7554,11 +7579,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7554
7579
|
emits: ["update:modelValue"],
|
|
7555
7580
|
setup(e) {
|
|
7556
7581
|
let n = e, c = L(e, "modelValue"), l = {
|
|
7557
|
-
id:
|
|
7582
|
+
id: Eu,
|
|
7558
7583
|
text: "",
|
|
7559
7584
|
disabled: !0
|
|
7560
7585
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
7561
|
-
id: `${
|
|
7586
|
+
id: `${Du}${t}`,
|
|
7562
7587
|
text: "",
|
|
7563
7588
|
disabled: !0,
|
|
7564
7589
|
isPlaceholder: !0
|
|
@@ -7572,20 +7597,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7572
7597
|
];
|
|
7573
7598
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
7574
7599
|
if (!m.value) return;
|
|
7575
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
7600
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Eu);
|
|
7576
7601
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
7577
7602
|
};
|
|
7578
7603
|
w(() => {
|
|
7579
7604
|
m.value && (g = new nt(m.value, {
|
|
7580
7605
|
animation: 200,
|
|
7581
|
-
filter: `#${
|
|
7606
|
+
filter: `#${Eu}, [id^="placeholder-"]`,
|
|
7582
7607
|
dragoverBubble: !0,
|
|
7583
7608
|
onStart: (e) => {
|
|
7584
7609
|
_ = e.item;
|
|
7585
7610
|
},
|
|
7586
7611
|
onMove: (e) => {
|
|
7587
7612
|
let t = e.related;
|
|
7588
|
-
if (t?.id ===
|
|
7613
|
+
if (t?.id === Eu || t?.id?.startsWith("placeholder-")) return !1;
|
|
7589
7614
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
7590
7615
|
return r && D(r);
|
|
7591
7616
|
},
|
|
@@ -7633,20 +7658,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7633
7658
|
key: e.id,
|
|
7634
7659
|
id: e.id,
|
|
7635
7660
|
class: "pv-stack-4"
|
|
7636
|
-
}, [e.id ===
|
|
7661
|
+
}, [e.id === Eu ? (E(), o("div", vu, [s("div", {
|
|
7637
7662
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7638
7663
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
7639
|
-
}, null, 8,
|
|
7664
|
+
}, null, 8, yu)])) : e.id.includes(Du) ? (E(), o("div", {
|
|
7640
7665
|
key: 1,
|
|
7641
7666
|
class: "placeholder-zone",
|
|
7642
7667
|
onDragover: r[0] ||= (e) => b(e),
|
|
7643
7668
|
onDragleave: r[1] ||= (e) => S(e),
|
|
7644
7669
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
7645
|
-
}, [s("div",
|
|
7670
|
+
}, [s("div", xu, [s("span", Su, P(n.placeholderText), 1)])], 40, bu)) : (E(), o("div", {
|
|
7646
7671
|
key: 2,
|
|
7647
7672
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
7648
7673
|
style: x(M(e))
|
|
7649
|
-
}, [s("div",
|
|
7674
|
+
}, [s("div", Cu, [
|
|
7650
7675
|
u(ln, {
|
|
7651
7676
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7652
7677
|
name: "reorder"
|
|
@@ -7656,8 +7681,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7656
7681
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7657
7682
|
name: e.icon
|
|
7658
7683
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
7659
|
-
s("span",
|
|
7660
|
-
]), j(e) ? (E(), o("div",
|
|
7684
|
+
s("span", wu, P(e.text), 1)
|
|
7685
|
+
]), j(e) ? (E(), o("div", Tu)) : (E(), i(gn, {
|
|
7661
7686
|
key: 0,
|
|
7662
7687
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
7663
7688
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -7669,12 +7694,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7669
7694
|
"ariaLabel",
|
|
7670
7695
|
"style",
|
|
7671
7696
|
"onClick"
|
|
7672
|
-
]))], 6))], 8,
|
|
7697
|
+
]))], 6))], 8, _u))), 128))], 512)], 512));
|
|
7673
7698
|
}
|
|
7674
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
7699
|
+
}), [["__scopeId", "data-v-34615cd0"]]), ku = (e) => e.filter((e) => !oc(e)), Au = (e) => e.filter((e) => oc(e)), ju = {
|
|
7675
7700
|
xAxis: {
|
|
7676
7701
|
selectMode: "sortable",
|
|
7677
|
-
filterColumns:
|
|
7702
|
+
filterColumns: ku
|
|
7678
7703
|
},
|
|
7679
7704
|
yAxis: {},
|
|
7680
7705
|
secondaryYAxis: {},
|
|
@@ -7683,16 +7708,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7683
7708
|
rowGroupLimit: 2,
|
|
7684
7709
|
supportsFocusView: !0,
|
|
7685
7710
|
storeBeforeChange: !0
|
|
7686
|
-
},
|
|
7711
|
+
}, Mu = [
|
|
7687
7712
|
{
|
|
7688
|
-
...
|
|
7713
|
+
...ju,
|
|
7689
7714
|
id: "column",
|
|
7690
7715
|
text: "Column",
|
|
7691
7716
|
icon: "chart-column",
|
|
7692
7717
|
agChartType: "bar"
|
|
7693
7718
|
},
|
|
7694
7719
|
{
|
|
7695
|
-
...
|
|
7720
|
+
...ju,
|
|
7696
7721
|
id: "bar",
|
|
7697
7722
|
text: "Bar",
|
|
7698
7723
|
icon: "chart-bar",
|
|
@@ -7700,28 +7725,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7700
7725
|
isHorizontal: !0
|
|
7701
7726
|
},
|
|
7702
7727
|
{
|
|
7703
|
-
...
|
|
7728
|
+
...ju,
|
|
7704
7729
|
id: "line",
|
|
7705
7730
|
text: "Line",
|
|
7706
7731
|
icon: "chart-line",
|
|
7707
7732
|
agChartType: "line"
|
|
7708
7733
|
},
|
|
7709
7734
|
{
|
|
7710
|
-
...
|
|
7735
|
+
...ju,
|
|
7711
7736
|
id: "area",
|
|
7712
7737
|
text: "Area",
|
|
7713
7738
|
icon: "chart-area",
|
|
7714
7739
|
agChartType: "area"
|
|
7715
7740
|
},
|
|
7716
7741
|
{
|
|
7717
|
-
...
|
|
7742
|
+
...ju,
|
|
7718
7743
|
id: "column_stacked",
|
|
7719
7744
|
text: "Stacked Column",
|
|
7720
7745
|
icon: "chart-column-stacked",
|
|
7721
7746
|
agChartType: "bar"
|
|
7722
7747
|
},
|
|
7723
7748
|
{
|
|
7724
|
-
...
|
|
7749
|
+
...ju,
|
|
7725
7750
|
id: "bar_stacked",
|
|
7726
7751
|
text: "Stacked Bar",
|
|
7727
7752
|
icon: "chart-bar-stacked",
|
|
@@ -7729,7 +7754,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7729
7754
|
isHorizontal: !0
|
|
7730
7755
|
},
|
|
7731
7756
|
{
|
|
7732
|
-
...
|
|
7757
|
+
...ju,
|
|
7733
7758
|
id: "pie",
|
|
7734
7759
|
text: "Pie",
|
|
7735
7760
|
icon: "chart-pie",
|
|
@@ -7743,7 +7768,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7743
7768
|
icon: "chart-column",
|
|
7744
7769
|
xAxis: {
|
|
7745
7770
|
selectMode: "single",
|
|
7746
|
-
filterColumns:
|
|
7771
|
+
filterColumns: Au,
|
|
7747
7772
|
hideLabel: !0
|
|
7748
7773
|
},
|
|
7749
7774
|
yAxis: {
|
|
@@ -7758,16 +7783,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7758
7783
|
supportsFocusView: !1,
|
|
7759
7784
|
storeBeforeChange: !1
|
|
7760
7785
|
}
|
|
7761
|
-
],
|
|
7762
|
-
function
|
|
7763
|
-
return
|
|
7786
|
+
], Nu = new Map(Mu.map((e) => [e.id, e])), Pu = Nu.get("column");
|
|
7787
|
+
function Fu(e) {
|
|
7788
|
+
return Nu.get(e) || Pu;
|
|
7764
7789
|
}
|
|
7765
7790
|
//#endregion
|
|
7766
7791
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
7767
|
-
var
|
|
7792
|
+
var Iu = {
|
|
7768
7793
|
class: "pv-full-width pv-flex",
|
|
7769
7794
|
style: { "--flex-gap": "8px" }
|
|
7770
|
-
},
|
|
7795
|
+
}, Lu = ["title"], Ru = { style: { "max-width": "220px" } }, zu = /* @__PURE__ */ d({
|
|
7771
7796
|
inheritAttrs: !1,
|
|
7772
7797
|
__name: "PvChartOptionMenuItemRenderer",
|
|
7773
7798
|
props: {
|
|
@@ -7775,10 +7800,10 @@ var Fu = {
|
|
|
7775
7800
|
context: {}
|
|
7776
7801
|
},
|
|
7777
7802
|
setup(e) {
|
|
7778
|
-
return (t, n) => (E(), o("div",
|
|
7803
|
+
return (t, n) => (E(), o("div", Iu, [s("span", {
|
|
7779
7804
|
class: "pv-text-body-md pv-truncate",
|
|
7780
7805
|
title: e.text
|
|
7781
|
-
}, P(e.text), 9,
|
|
7806
|
+
}, P(e.text), 9, Lu), e.context?.description ? (E(), i(I(bi), {
|
|
7782
7807
|
key: 0,
|
|
7783
7808
|
variant: "dark",
|
|
7784
7809
|
position: "center-right",
|
|
@@ -7787,30 +7812,30 @@ var Fu = {
|
|
|
7787
7812
|
disableInteractive: !0,
|
|
7788
7813
|
style: { "pointer-events": "auto" }
|
|
7789
7814
|
}, {
|
|
7790
|
-
trigger:
|
|
7815
|
+
trigger: V(() => [u(I(ln), {
|
|
7791
7816
|
size: 12,
|
|
7792
7817
|
name: "info-circle",
|
|
7793
7818
|
class: "pv-text-subdued"
|
|
7794
7819
|
})]),
|
|
7795
|
-
content:
|
|
7820
|
+
content: V(() => [s("div", Ru, P(e.context.description), 1)]),
|
|
7796
7821
|
_: 1
|
|
7797
7822
|
})) : a("", !0)]));
|
|
7798
7823
|
}
|
|
7799
|
-
}),
|
|
7824
|
+
}), Bu = { class: "pv-stack-16 pv-chart-options-panel" }, Vu = { class: "pv-flex pv-relative" }, Hu = {
|
|
7800
7825
|
role: "list",
|
|
7801
7826
|
class: "pv-relative"
|
|
7802
|
-
},
|
|
7827
|
+
}, Uu = [
|
|
7803
7828
|
"id",
|
|
7804
7829
|
"data-active",
|
|
7805
7830
|
"onMouseenter",
|
|
7806
7831
|
"onClick"
|
|
7807
|
-
],
|
|
7832
|
+
], Wu = { style: { "max-width": "100px" } }, Gu = {
|
|
7808
7833
|
key: 1,
|
|
7809
7834
|
class: "pv-flex"
|
|
7810
|
-
},
|
|
7835
|
+
}, Ku = {
|
|
7811
7836
|
key: 1,
|
|
7812
7837
|
role: "list"
|
|
7813
|
-
},
|
|
7838
|
+
}, qu = ["data-active"], Ju = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7814
7839
|
__name: "PvChartOptionsPanel",
|
|
7815
7840
|
props: {
|
|
7816
7841
|
enablePanel: { type: Boolean },
|
|
@@ -7827,7 +7852,7 @@ var Fu = {
|
|
|
7827
7852
|
maxHeight: "900px"
|
|
7828
7853
|
},
|
|
7829
7854
|
useTeleport: !0
|
|
7830
|
-
}), g = O(!1), _ = O(void 0), v = O(null), b = m(us, O(void 0)), S = m(cs, O([])), C = m(ds, O(void 0)), w = m(ls, O([])), T = m(ss, O([])), D = m(Qo, O([])), A = r(() =>
|
|
7855
|
+
}), g = O(!1), _ = O(void 0), v = O(null), b = m(us, O(void 0)), S = m(cs, O([])), C = m(ds, O(void 0)), w = m(ls, O([])), T = m(ss, O([])), D = m(Qo, O([])), A = r(() => Fu(b.value?.id || "")), j = r(() => {
|
|
7831
7856
|
let e = b.value?.id ?? "";
|
|
7832
7857
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7833
7858
|
}), M = m(fs, O("")), N = m(ps, O([])), F = m(ms, O(void 0)), ee = m(hs, O([])), L = m(_s, O(/* @__PURE__ */ new Set())), R = m(vs, O([])), z = r(() => R.value.filter((e) => L.value.has(e.id)).map((e) => ({
|
|
@@ -7838,13 +7863,13 @@ var Fu = {
|
|
|
7838
7863
|
}))), te = (e) => {
|
|
7839
7864
|
L.value = new Set(e.map((e) => e.id));
|
|
7840
7865
|
};
|
|
7841
|
-
|
|
7866
|
+
B(j, (e) => {
|
|
7842
7867
|
e && F.value && (F.value = void 0);
|
|
7843
7868
|
}, { immediate: !0 });
|
|
7844
|
-
let ne = m(os, O("")),
|
|
7869
|
+
let ne = m(os, O("")), re = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7845
7870
|
label: e.label,
|
|
7846
7871
|
value: e.value
|
|
7847
|
-
})) : []),
|
|
7872
|
+
})) : []), U = r(() => {
|
|
7848
7873
|
if (b.value) return (T.value.length > 1 ? [
|
|
7849
7874
|
"bar_stacked",
|
|
7850
7875
|
"line",
|
|
@@ -7857,7 +7882,7 @@ var Fu = {
|
|
|
7857
7882
|
"area"
|
|
7858
7883
|
]).includes(b.value?.id);
|
|
7859
7884
|
});
|
|
7860
|
-
|
|
7885
|
+
B(S, (e) => {
|
|
7861
7886
|
if (!b.value) return;
|
|
7862
7887
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7863
7888
|
if (r) {
|
|
@@ -7873,34 +7898,34 @@ var Fu = {
|
|
|
7873
7898
|
}
|
|
7874
7899
|
b.value = e[0];
|
|
7875
7900
|
});
|
|
7876
|
-
function
|
|
7901
|
+
function W(e) {
|
|
7877
7902
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7878
7903
|
}
|
|
7879
|
-
let
|
|
7904
|
+
let ie = r(() => N.value.map((e) => ({
|
|
7880
7905
|
id: e.value,
|
|
7881
7906
|
text: e.label,
|
|
7882
7907
|
context: e.description ? { description: e.description } : void 0
|
|
7883
|
-
}))),
|
|
7908
|
+
}))), ae = r(() => ee.value.map((e) => ({
|
|
7884
7909
|
id: e.value,
|
|
7885
7910
|
text: e.label
|
|
7886
7911
|
}))), oe = r(() => D.value.map((e) => ({
|
|
7887
7912
|
id: e.field || "",
|
|
7888
7913
|
text: e.headerName || e.field || "",
|
|
7889
7914
|
icon: Ks(e.context?.dataType || null) || "circle-chevron-down"
|
|
7890
|
-
}))),
|
|
7915
|
+
}))), G = r({
|
|
7891
7916
|
get: () => T.value.map((e) => oe.value.find((t) => t.id === e)).filter(Boolean),
|
|
7892
7917
|
set: (e) => {
|
|
7893
7918
|
T.value = e.map((e) => e.id);
|
|
7894
7919
|
}
|
|
7895
|
-
}),
|
|
7920
|
+
}), se = r(() => {
|
|
7896
7921
|
let e = [], t = {
|
|
7897
7922
|
value: "y-axis",
|
|
7898
7923
|
label: "Y Axis",
|
|
7899
7924
|
prefixLabel: "Y Axis",
|
|
7900
7925
|
icon: "chart-bar-decreasing",
|
|
7901
7926
|
allowDeselect: !1,
|
|
7902
|
-
availableOptions:
|
|
7903
|
-
currentOption:
|
|
7927
|
+
availableOptions: ie.value,
|
|
7928
|
+
currentOption: ie.value.find((e) => e.id === M.value),
|
|
7904
7929
|
updateSelectedOption: (e) => {
|
|
7905
7930
|
M && e !== M.value && (M.value = e);
|
|
7906
7931
|
}
|
|
@@ -7912,7 +7937,7 @@ var Fu = {
|
|
|
7912
7937
|
allowDeselect: !1,
|
|
7913
7938
|
availableOptions: oe.value,
|
|
7914
7939
|
...i ? {
|
|
7915
|
-
activeOptions:
|
|
7940
|
+
activeOptions: G,
|
|
7916
7941
|
activeOptionLimit: n.rowGroupLimit
|
|
7917
7942
|
} : {
|
|
7918
7943
|
currentOption: oe.value.find((e) => e.id === T.value[0]),
|
|
@@ -7927,7 +7952,7 @@ var Fu = {
|
|
|
7927
7952
|
allowDeselect: !0,
|
|
7928
7953
|
availableOptions: w.value,
|
|
7929
7954
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7930
|
-
disabled: !
|
|
7955
|
+
disabled: !U.value,
|
|
7931
7956
|
disabledReason: "Sorting is not available for this chart type",
|
|
7932
7957
|
updateSelectedOption: (e) => {
|
|
7933
7958
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7949,7 +7974,7 @@ var Fu = {
|
|
|
7949
7974
|
t && b && (b.value = t);
|
|
7950
7975
|
}
|
|
7951
7976
|
};
|
|
7952
|
-
if (
|
|
7977
|
+
if (ie.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && ae.value.length > 0) {
|
|
7953
7978
|
let t = {
|
|
7954
7979
|
value: "secondary-y-axis",
|
|
7955
7980
|
label: "Metric Overlay",
|
|
@@ -7958,8 +7983,8 @@ var Fu = {
|
|
|
7958
7983
|
allowDeselect: !0,
|
|
7959
7984
|
disabled: j.value,
|
|
7960
7985
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7961
|
-
availableOptions:
|
|
7962
|
-
currentOption:
|
|
7986
|
+
availableOptions: ae.value,
|
|
7987
|
+
currentOption: ae.value.find((e) => e.id === F?.value),
|
|
7963
7988
|
updateSelectedOption: (e) => {
|
|
7964
7989
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7965
7990
|
}
|
|
@@ -7989,23 +8014,23 @@ var Fu = {
|
|
|
7989
8014
|
let c = i ? 2 : 1;
|
|
7990
8015
|
return oe.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);
|
|
7991
8016
|
});
|
|
7992
|
-
|
|
8017
|
+
B(v, (e) => {
|
|
7993
8018
|
e && (p.value = e);
|
|
7994
8019
|
});
|
|
7995
|
-
let
|
|
7996
|
-
let t =
|
|
8020
|
+
let ce = r(() => _.value && se.value.find((e) => e.value === _.value) || null), K = (e) => {
|
|
8021
|
+
let t = ce.value;
|
|
7997
8022
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
7998
|
-
}, le = (e) =>
|
|
8023
|
+
}, le = (e) => ce.value?.isMultiSelect ? null : K(e), ue = (e) => ce.value?.isMultiSelect ? {
|
|
7999
8024
|
variant: "checkbox",
|
|
8000
|
-
renderer:
|
|
8001
|
-
} :
|
|
8025
|
+
renderer: zu
|
|
8026
|
+
} : W(e) ? { renderer: zu } : { variant: "icon" }, de = (e) => {
|
|
8002
8027
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
8003
8028
|
}, fe = () => {
|
|
8004
8029
|
g.value = !1, _.value = void 0;
|
|
8005
8030
|
}, pe = () => {
|
|
8006
8031
|
_.value = void 0;
|
|
8007
8032
|
};
|
|
8008
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
8033
|
+
return (n, r) => (E(), o(t, null, [s("div", Bu, [s("div", null, [H((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Vu, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(ia, {
|
|
8009
8034
|
open: g.value,
|
|
8010
8035
|
label: "Chart Configuration",
|
|
8011
8036
|
icon: "chart-area",
|
|
@@ -8020,13 +8045,13 @@ var Fu = {
|
|
|
8020
8045
|
},
|
|
8021
8046
|
isList: !0
|
|
8022
8047
|
}, {
|
|
8023
|
-
default:
|
|
8048
|
+
default: V(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
8024
8049
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
8025
8050
|
style: {
|
|
8026
8051
|
"padding-top": "4px",
|
|
8027
8052
|
"padding-bottom": "12px"
|
|
8028
8053
|
}
|
|
8029
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
8054
|
+
}, " Chart Configuration ")], -1), s("ul", Hu, [(E(!0), o(t, null, k(se.value, (e) => (E(), o("li", {
|
|
8030
8055
|
id: `pv-chart-config-${e.value}`,
|
|
8031
8056
|
key: e.value,
|
|
8032
8057
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -8039,7 +8064,7 @@ var Fu = {
|
|
|
8039
8064
|
style: { width: "100%" },
|
|
8040
8065
|
variant: "white"
|
|
8041
8066
|
}, c({
|
|
8042
|
-
trigger:
|
|
8067
|
+
trigger: V(() => [u(za, {
|
|
8043
8068
|
config: { variant: "icon" },
|
|
8044
8069
|
disabled: e.disabled,
|
|
8045
8070
|
id: e.value,
|
|
@@ -8056,19 +8081,19 @@ var Fu = {
|
|
|
8056
8081
|
_: 2
|
|
8057
8082
|
}, [e.disabled && e.disabledReason ? {
|
|
8058
8083
|
name: "content",
|
|
8059
|
-
fn:
|
|
8084
|
+
fn: V(() => [s("div", Wu, P(e.disabledReason), 1)]),
|
|
8060
8085
|
key: "0"
|
|
8061
|
-
} : void 0]), 1024)], 40,
|
|
8086
|
+
} : void 0]), 1024)], 40, Uu))), 128))])]),
|
|
8062
8087
|
_: 1
|
|
8063
8088
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Xe), [fe, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
8064
8089
|
class: "pv-flex pv-space-between",
|
|
8065
8090
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
8066
8091
|
}, [e.chartFilter ? (E(), i(xi, {
|
|
8067
8092
|
key: 0,
|
|
8068
|
-
options:
|
|
8093
|
+
options: re.value,
|
|
8069
8094
|
modelValue: I(ne),
|
|
8070
8095
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null
|
|
8071
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
8096
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Gu, [(E(!0), o(t, null, k(se.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Xa, {
|
|
8072
8097
|
key: 0,
|
|
8073
8098
|
label: e.label,
|
|
8074
8099
|
prefixLabel: e.prefixLabel,
|
|
@@ -8078,7 +8103,7 @@ var Fu = {
|
|
|
8078
8103
|
disableSearchInput: !0,
|
|
8079
8104
|
disabled: e.disabled,
|
|
8080
8105
|
optionsVariant: "checkbox",
|
|
8081
|
-
optionsRenderer:
|
|
8106
|
+
optionsRenderer: zu
|
|
8082
8107
|
}, null, 8, [
|
|
8083
8108
|
"label",
|
|
8084
8109
|
"prefixLabel",
|
|
@@ -8116,23 +8141,23 @@ var Fu = {
|
|
|
8116
8141
|
},
|
|
8117
8142
|
isList: !0
|
|
8118
8143
|
}, {
|
|
8119
|
-
default:
|
|
8144
|
+
default: V(() => [ce.value ? (E(), o(t, { key: 0 }, [ce.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
8120
8145
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8121
8146
|
style: {
|
|
8122
8147
|
"padding-left": "2px",
|
|
8123
8148
|
"padding-bottom": "6px"
|
|
8124
8149
|
}
|
|
8125
|
-
}, " Viewing ", -1), u(
|
|
8126
|
-
modelValue:
|
|
8127
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
8128
|
-
options:
|
|
8129
|
-
activeOptionLimit:
|
|
8150
|
+
}, " Viewing ", -1), u(Ou, {
|
|
8151
|
+
modelValue: ce.value.activeOptions.value,
|
|
8152
|
+
"onUpdate:modelValue": r[2] ||= (e) => ce.value.activeOptions.value = e,
|
|
8153
|
+
options: ce.value.availableOptions || [],
|
|
8154
|
+
activeOptionLimit: ce.value.activeOptionLimit,
|
|
8130
8155
|
placeholderText: "Add to X Axis"
|
|
8131
8156
|
}, null, 8, [
|
|
8132
8157
|
"modelValue",
|
|
8133
8158
|
"options",
|
|
8134
8159
|
"activeOptionLimit"
|
|
8135
|
-
])], 64)) : (E(), o("ul",
|
|
8160
|
+
])], 64)) : (E(), o("ul", Ku, [(E(!0), o(t, null, k(ce.value.availableOptions, (e) => (E(), o("li", {
|
|
8136
8161
|
key: e.id,
|
|
8137
8162
|
"data-active": le(e)
|
|
8138
8163
|
}, [u(za, {
|
|
@@ -8142,11 +8167,11 @@ var Fu = {
|
|
|
8142
8167
|
icon: e.icon,
|
|
8143
8168
|
context: e.context,
|
|
8144
8169
|
disabled: e.disabled,
|
|
8145
|
-
selectedIds:
|
|
8170
|
+
selectedIds: ce.value.isMultiSelect ? [...I(L)] : [],
|
|
8146
8171
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
8147
|
-
|
|
8172
|
+
ce.value?.updateSelectedOptions?.([...ce.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
8148
8173
|
},
|
|
8149
|
-
onHandleSelected: (t) =>
|
|
8174
|
+
onHandleSelected: (t) => ce.value.updateSelectedOption?.(e.id),
|
|
8150
8175
|
"class-list": ["pv-chart-option pv-flex"]
|
|
8151
8176
|
}, null, 8, [
|
|
8152
8177
|
"id",
|
|
@@ -8157,14 +8182,14 @@ var Fu = {
|
|
|
8157
8182
|
"disabled",
|
|
8158
8183
|
"selectedIds",
|
|
8159
8184
|
"onHandleSelected"
|
|
8160
|
-
])], 8,
|
|
8185
|
+
])], 8, qu))), 128))]))], 64)) : a("", !0)]),
|
|
8161
8186
|
_: 1
|
|
8162
8187
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
8163
8188
|
}
|
|
8164
8189
|
}), [["__scopeId", "data-v-681e0d80"]]);
|
|
8165
8190
|
//#endregion
|
|
8166
8191
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
8167
|
-
function
|
|
8192
|
+
function Yu(e, t, n, r, i) {
|
|
8168
8193
|
return i ? {
|
|
8169
8194
|
xKey: n,
|
|
8170
8195
|
xName: r,
|
|
@@ -8179,7 +8204,7 @@ function Ju(e, t, n, r, i) {
|
|
|
8179
8204
|
}
|
|
8180
8205
|
//#endregion
|
|
8181
8206
|
//#region src/components/charts/PvDataTableWithChart/helpers.ts
|
|
8182
|
-
var
|
|
8207
|
+
var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : jt : "", Zu = (e, t) => `${e}_${t}`, Qu = (e) => `secondaryCategory_${e}`, $u = (e, t, n, r, i = []) => {
|
|
8183
8208
|
if (!e || e.length === 0) return {
|
|
8184
8209
|
data: [],
|
|
8185
8210
|
uniqueFieldValues: []
|
|
@@ -8192,7 +8217,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8192
8217
|
let o = e.reduce((e, o) => {
|
|
8193
8218
|
let s = o[t];
|
|
8194
8219
|
e[s] || (e[s] = {});
|
|
8195
|
-
let c = o[n], l =
|
|
8220
|
+
let c = o[n], l = Qu(c);
|
|
8196
8221
|
e[s][l] = `${s}-${c}`;
|
|
8197
8222
|
for (let t of r) {
|
|
8198
8223
|
let r = t.value, i = 0;
|
|
@@ -8200,7 +8225,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8200
8225
|
let l = o[r];
|
|
8201
8226
|
if (a.add(c), n && l) {
|
|
8202
8227
|
let t = l ?? 0;
|
|
8203
|
-
e[s][
|
|
8228
|
+
e[s][Zu(r, c)] = t, i += t;
|
|
8204
8229
|
}
|
|
8205
8230
|
e[s][`${r}${tc}`] = i;
|
|
8206
8231
|
}
|
|
@@ -8214,7 +8239,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8214
8239
|
})),
|
|
8215
8240
|
uniqueFieldValues: Array.from(a)
|
|
8216
8241
|
};
|
|
8217
|
-
},
|
|
8242
|
+
}, ed = (e, t, n) => {
|
|
8218
8243
|
let r = -Infinity;
|
|
8219
8244
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
8220
8245
|
let n = e[t + tc];
|
|
@@ -8223,16 +8248,16 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8223
8248
|
let n = e[t];
|
|
8224
8249
|
typeof n == "number" && n > r && (r = n);
|
|
8225
8250
|
})), r;
|
|
8226
|
-
},
|
|
8251
|
+
}, td = { style: {
|
|
8227
8252
|
height: "100%",
|
|
8228
8253
|
width: "100%"
|
|
8229
|
-
} },
|
|
8254
|
+
} }, nd = {
|
|
8230
8255
|
key: 0,
|
|
8231
8256
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
8232
|
-
},
|
|
8257
|
+
}, rd = { class: "pv-flex" }, id = { class: "pv-relative pv-margin-auto" }, ad = { class: "pv-chart-overlay pv-flex pv-align-center" }, od = { key: 0 }, sd = {
|
|
8233
8258
|
key: 1,
|
|
8234
8259
|
class: "pv-text-body-xs"
|
|
8235
|
-
},
|
|
8260
|
+
}, cd = /* @__PURE__ */ d({
|
|
8236
8261
|
__name: "PvDataTableWithChart",
|
|
8237
8262
|
props: {
|
|
8238
8263
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -8331,6 +8356,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8331
8356
|
default: (e) => !e.filterPanelAboveChart
|
|
8332
8357
|
},
|
|
8333
8358
|
enableTableSearch: { type: Boolean },
|
|
8359
|
+
filterSearchMinLength: {},
|
|
8334
8360
|
enableTopSlot: {
|
|
8335
8361
|
type: Boolean,
|
|
8336
8362
|
default: !0
|
|
@@ -8471,15 +8497,15 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8471
8497
|
D(Ko, z);
|
|
8472
8498
|
let { setFilterSelectedValues: te } = R, ne = O(!1);
|
|
8473
8499
|
D(ns, ne);
|
|
8474
|
-
let
|
|
8500
|
+
let re = O(l.isTableGrouped), H = (e) => {
|
|
8475
8501
|
d("table-overlay-change", e);
|
|
8476
|
-
},
|
|
8477
|
-
p.value = e.api,
|
|
8502
|
+
}, U = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), W = r(() => z?.computedFocusType.value || null), ie = r(() => z?.computedFocuses.value || []), ae = (e) => {
|
|
8503
|
+
p.value = e.api, re.value || p.value?.setRowGroupColumns([]), Ve(e.api), d("grid-ready", e);
|
|
8478
8504
|
}, oe = (e) => {
|
|
8479
8505
|
d("first-data-rendered", e);
|
|
8480
|
-
},
|
|
8506
|
+
}, G = (e) => {
|
|
8481
8507
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8482
|
-
if (
|
|
8508
|
+
if (re.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8483
8509
|
let t = ge.value;
|
|
8484
8510
|
if (n.length > _e.value) {
|
|
8485
8511
|
let t = n.slice(0, _e.value);
|
|
@@ -8488,11 +8514,11 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8488
8514
|
t.yAxis.defaultValue && (q.value = t.yAxis.defaultValue);
|
|
8489
8515
|
}
|
|
8490
8516
|
d("column-row-group-changed", e);
|
|
8491
|
-
},
|
|
8517
|
+
}, se = async (e) => {
|
|
8492
8518
|
Ve(e.api), ne.value && d("filter-changed", e);
|
|
8493
8519
|
};
|
|
8494
|
-
|
|
8495
|
-
if (
|
|
8520
|
+
B(() => j.value, () => {
|
|
8521
|
+
if (re.value) {
|
|
8496
8522
|
if (!p.value) return;
|
|
8497
8523
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8498
8524
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8507,7 +8533,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8507
8533
|
}
|
|
8508
8534
|
p.value && Ve(p.value);
|
|
8509
8535
|
});
|
|
8510
|
-
function
|
|
8536
|
+
function ce(e, t, n = !0) {
|
|
8511
8537
|
return (r) => {
|
|
8512
8538
|
if (r.data = be.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8513
8539
|
let i = "", a = le(e);
|
|
@@ -8523,14 +8549,14 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8523
8549
|
return t && (o = t(r)), o + i;
|
|
8524
8550
|
};
|
|
8525
8551
|
}
|
|
8526
|
-
let
|
|
8552
|
+
let K = (e, t = !1) => {
|
|
8527
8553
|
if (!e) return;
|
|
8528
8554
|
let n = le(e);
|
|
8529
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8555
|
+
return n && typeof n.valueFormatter == "function" ? ce(e, n.valueFormatter, t) : ce(e, null, t);
|
|
8530
8556
|
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8531
8557
|
let n = le(N.value);
|
|
8532
8558
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8533
|
-
}, de = r(() => [...j.value.length > 1 ? Qs : Zs, $s].filter((e) => l.enabledChartTypes?.includes(e.id))), fe = O(void 0), pe = O(void 0), me = O(void 0), he = !1, ge = r(() =>
|
|
8559
|
+
}, de = r(() => [...j.value.length > 1 ? Qs : Zs, $s].filter((e) => l.enabledChartTypes?.includes(e.id))), fe = O(void 0), pe = O(void 0), me = O(void 0), he = !1, ge = r(() => Fu(fe.value?.id || "")), _e = r(() => Math.min(ge.value.rowGroupLimit, l.rowGroupLimit)), ve = r(() => {
|
|
8534
8560
|
let e = ge.value.xAxis.filterColumns;
|
|
8535
8561
|
return e ? e(k.value) : k.value;
|
|
8536
8562
|
}), ye = O([{
|
|
@@ -8541,17 +8567,17 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8541
8567
|
text: "Descending",
|
|
8542
8568
|
id: "desc",
|
|
8543
8569
|
icon: "arrow-down-narrow-wide"
|
|
8544
|
-
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value),
|
|
8545
|
-
D(Jo, p), D(os, Ee), D(Qo, ve), D(ss, j), D(cs, de), D(ls, ye), D(us, fe), D(ds, Te), D(fs, q), D(ps, I), D(ms, Se), D(hs, ee), D(_s,
|
|
8570
|
+
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value), Ce = r(() => l.crosslineOverlayGroups ?? []), we = O(new Set(Ce.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), J = r(() => Ce.value.filter((e) => we.value.has(e.id)).flatMap((e) => e.overlays)), Y = O(null), Te = O(ye.value.find((e) => e.id === l.initialSort || "")), Ee = O("");
|
|
8571
|
+
D(Jo, p), D(os, Ee), D(Qo, ve), D(ss, j), D(cs, de), D(ls, ye), D(us, fe), D(ds, Te), D(fs, q), D(ps, I), D(ms, Se), D(hs, ee), D(_s, we), D(vs, Ce);
|
|
8546
8572
|
let De = (e) => {
|
|
8547
8573
|
fe.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8548
8574
|
};
|
|
8549
|
-
|
|
8550
|
-
let e = Ie.value, t = e !== he, n =
|
|
8575
|
+
B(() => de.value, () => {
|
|
8576
|
+
let e = Ie.value, t = e !== he, n = Fu(fe.value?.id || ""), r = de.value.some((e) => e.id === fe.value?.id);
|
|
8551
8577
|
he = e, !(r && (!t || !n.storeBeforeChange)) && De((e ? me?.value : pe?.value) ?? l.chartType);
|
|
8552
|
-
}),
|
|
8578
|
+
}), B(() => l.chartType, (e) => De(e)), B(() => l.yKey, (e) => {
|
|
8553
8579
|
e !== q.value && (q.value = e);
|
|
8554
|
-
}),
|
|
8580
|
+
}), B(Ee, (e) => {
|
|
8555
8581
|
if (l.chartFilter && p.value) {
|
|
8556
8582
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8557
8583
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
@@ -8571,12 +8597,12 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8571
8597
|
let e = ee.value.find((e) => e.value === Se.value);
|
|
8572
8598
|
return e ? e.label : "";
|
|
8573
8599
|
}), je = r(() => ge.value.isHorizontal === !0), Me = r(() => j.value.length > 1), Ne = r(() => !fe.value || I.value.length === 0 ? [] : ge.value.seriesFamily === "pie" ? Re.value : Le.value), Pe = r(() => l.showSeriesLabels), Fe = r(() => fe.value?.id.includes("stacked")), Ie = r(() => j.value.length > 1), Le = r(() => {
|
|
8574
|
-
let e = Fe.value, t = ge.value.agChartType, n = [], r =
|
|
8600
|
+
let e = Fe.value, t = ge.value.agChartType, n = [], r = K(q.value, !0), i = K(Y.value?.fieldName, !0);
|
|
8575
8601
|
if (Me.value) Y.value?.fieldValues.forEach((a) => {
|
|
8576
8602
|
let o = {
|
|
8577
8603
|
type: t,
|
|
8578
8604
|
xKey: N.value,
|
|
8579
|
-
yKey:
|
|
8605
|
+
yKey: Zu(q.value, a),
|
|
8580
8606
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8581
8607
|
stacked: e,
|
|
8582
8608
|
label: {
|
|
@@ -8632,7 +8658,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8632
8658
|
}))), Se.value) {
|
|
8633
8659
|
let t;
|
|
8634
8660
|
t = e ? `${Se.value}_sort_total` : Se.value;
|
|
8635
|
-
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
8661
|
+
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Yu(N.value, r, t, Ae.value, je.value), a = {
|
|
8636
8662
|
type: "scatter",
|
|
8637
8663
|
id: "metric-overlay",
|
|
8638
8664
|
data: Z.value,
|
|
@@ -8651,7 +8677,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8651
8677
|
}
|
|
8652
8678
|
n = [...n, a];
|
|
8653
8679
|
}
|
|
8654
|
-
if (fe.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number" &&
|
|
8680
|
+
if (fe.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number" && J.value.length > 0 && X.value) {
|
|
8655
8681
|
let e = X.value.length, t = Number.isFinite(qe.value) ? qe.value : 0, r = {
|
|
8656
8682
|
type: "scatter",
|
|
8657
8683
|
xKey: "__dummy_x__",
|
|
@@ -8670,10 +8696,10 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8670
8696
|
type: "scatter",
|
|
8671
8697
|
xKey: "__dummy_x__",
|
|
8672
8698
|
yKey: "__dummy_y__",
|
|
8673
|
-
data:
|
|
8699
|
+
data: J.value.flatMap((e) => {
|
|
8674
8700
|
let t = nt(e.value, X.value || []);
|
|
8675
8701
|
if (t === null) return [];
|
|
8676
|
-
let n = Number.isFinite(qe.value) ? qe.value : 0, r =
|
|
8702
|
+
let n = Number.isFinite(qe.value) ? qe.value : 0, r = K(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
8677
8703
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
8678
8704
|
value: i,
|
|
8679
8705
|
__dummy_x__: t,
|
|
@@ -8711,21 +8737,21 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8711
8737
|
legendItemKey: N.value,
|
|
8712
8738
|
angleKey: q.value
|
|
8713
8739
|
}]);
|
|
8714
|
-
|
|
8740
|
+
B(q, (e, t) => {
|
|
8715
8741
|
d("chart-state-changed", {
|
|
8716
8742
|
api: p.value,
|
|
8717
8743
|
newState: { seriesField: e },
|
|
8718
8744
|
oldState: { seriesField: t }
|
|
8719
8745
|
});
|
|
8720
|
-
}),
|
|
8746
|
+
}), B(Se, (e, t) => {
|
|
8721
8747
|
d("chart-state-changed", {
|
|
8722
8748
|
api: p.value,
|
|
8723
8749
|
newState: { secondarySeriesField: e },
|
|
8724
8750
|
oldState: { secondarySeriesField: t }
|
|
8725
8751
|
});
|
|
8726
|
-
}),
|
|
8727
|
-
e?.id &&
|
|
8728
|
-
let n =
|
|
8752
|
+
}), B(fe, (e, t) => {
|
|
8753
|
+
e?.id && Fu(e.id).storeBeforeChange && (Ie.value ? me.value = e.id : pe.value = e.id);
|
|
8754
|
+
let n = Fu(e?.id || ""), r = Fu(t?.id || "");
|
|
8729
8755
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8730
8756
|
l.yKey ? q.value = l.yKey : I.value.length > 0 && (q.value = I.value[0].value);
|
|
8731
8757
|
}), d("chart-state-changed", {
|
|
@@ -8733,34 +8759,34 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8733
8759
|
newState: { chartType: e?.id },
|
|
8734
8760
|
oldState: { chartType: t?.id }
|
|
8735
8761
|
});
|
|
8736
|
-
}),
|
|
8762
|
+
}), B(ve, (e) => {
|
|
8737
8763
|
if (e.length === 1 && j.value.length === 0) {
|
|
8738
8764
|
let t = e[0].field;
|
|
8739
8765
|
t && (j.value = [t]);
|
|
8740
8766
|
}
|
|
8741
|
-
}),
|
|
8767
|
+
}), B(I, (e) => {
|
|
8742
8768
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
8743
|
-
}),
|
|
8769
|
+
}), B(Te, (e, t) => {
|
|
8744
8770
|
d("chart-state-changed", {
|
|
8745
8771
|
api: p.value,
|
|
8746
8772
|
newState: { chartSort: e?.id },
|
|
8747
8773
|
oldState: { chartSort: t?.id }
|
|
8748
8774
|
});
|
|
8749
|
-
}),
|
|
8775
|
+
}), B(j, (e, t) => {
|
|
8750
8776
|
d("chart-state-changed", {
|
|
8751
8777
|
api: p.value,
|
|
8752
8778
|
newState: { chartCategoryFields: e },
|
|
8753
8779
|
oldState: { chartCategoryFields: t }
|
|
8754
8780
|
});
|
|
8755
|
-
}),
|
|
8781
|
+
}), B(re, (e, t) => {
|
|
8756
8782
|
d("chart-state-changed", {
|
|
8757
8783
|
api: p.value,
|
|
8758
8784
|
newState: { tableGrouped: e },
|
|
8759
8785
|
oldState: { tableGrouped: t }
|
|
8760
8786
|
});
|
|
8761
|
-
}),
|
|
8787
|
+
}), B(() => l.isTableGrouped, (e, t) => {
|
|
8762
8788
|
!p.value || e === t || !l.enableGroupingToggle || ct(e);
|
|
8763
|
-
}),
|
|
8789
|
+
}), B(() => l.initialFocusData, (e, t) => {
|
|
8764
8790
|
if (!(tt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8765
8791
|
if (!e?.focusType) {
|
|
8766
8792
|
z.setFocuses([]);
|
|
@@ -8777,7 +8803,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8777
8803
|
return;
|
|
8778
8804
|
}
|
|
8779
8805
|
if (t) {
|
|
8780
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
8806
|
+
let { stackedData: n, uniqueFieldValues: r } = $u(e, N.value, t, He.value, L.value);
|
|
8781
8807
|
xe.value = n, Y.value = {
|
|
8782
8808
|
fieldName: t,
|
|
8783
8809
|
fieldValues: r
|
|
@@ -8838,10 +8864,10 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8838
8864
|
n.add(o);
|
|
8839
8865
|
let s = t.aggData;
|
|
8840
8866
|
if (o && s) {
|
|
8841
|
-
let n = String(o), s =
|
|
8867
|
+
let n = String(o), s = Qu(n);
|
|
8842
8868
|
r[s] = `${e.key}-${n}`;
|
|
8843
8869
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
8844
|
-
r[
|
|
8870
|
+
r[Zu(a.value, n)] = c, i += c;
|
|
8845
8871
|
}
|
|
8846
8872
|
}), r[`${a.value}${tc}`] = i;
|
|
8847
8873
|
return {
|
|
@@ -8858,8 +8884,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8858
8884
|
{ [N.value]: "" },
|
|
8859
8885
|
e[0],
|
|
8860
8886
|
{ [N.value]: " " }
|
|
8861
|
-
]), l.enableFocusView && e &&
|
|
8862
|
-
let t = e?.filter((e) =>
|
|
8887
|
+
]), l.enableFocusView && e && ie.value.length > 0 && W.value) {
|
|
8888
|
+
let t = e?.filter((e) => ie.value.includes(e[N.value])), n = e?.filter((e) => !ie.value.includes(e[N.value]));
|
|
8863
8889
|
e = [
|
|
8864
8890
|
...t || [],
|
|
8865
8891
|
{ [N.value]: ec },
|
|
@@ -8880,20 +8906,20 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8880
8906
|
let n = e[r];
|
|
8881
8907
|
if (typeof n != "number") return e;
|
|
8882
8908
|
let a = 0;
|
|
8883
|
-
for (let n of i) typeof e[
|
|
8909
|
+
for (let n of i) typeof e[Zu(t, String(n))] == "number" && a++;
|
|
8884
8910
|
return {
|
|
8885
8911
|
...e,
|
|
8886
8912
|
[r]: a > 0 ? n / a : null
|
|
8887
8913
|
};
|
|
8888
8914
|
});
|
|
8889
|
-
}), Ke = r(() => X.value?.length || 0), qe = r(() =>
|
|
8915
|
+
}), Ke = r(() => X.value?.length || 0), qe = r(() => ed(Me.value ? xe.value : X.value, q.value, Me.value)), Je = r(() => Y.value?.fieldValues?.length || 0), Ye = r(() => {
|
|
8890
8916
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8891
8917
|
return Math.min(Math.max(e, .05), .75);
|
|
8892
|
-
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !X.value || X.value?.length === 0 ? !0 : qe.value === -Infinity || Me.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView &&
|
|
8893
|
-
let e = le(
|
|
8894
|
-
return
|
|
8918
|
+
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !X.value || X.value?.length === 0 ? !0 : qe.value === -Infinity || Me.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView && W.value && ie.value.length === 0 && l.percentOfFocusViewYKey && q.value && q.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8919
|
+
let e = le(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8920
|
+
return Xu({
|
|
8895
8921
|
currentRowGroupColumnsLength: j.value.length,
|
|
8896
|
-
shouldShowFocusOverlayText: $e.value || l.focusRequired &&
|
|
8922
|
+
shouldShowFocusOverlayText: $e.value || l.focusRequired && ie.value.length === 0,
|
|
8897
8923
|
chartDataEmpty: Qe.value,
|
|
8898
8924
|
missingFocusText: l.missingFocusText,
|
|
8899
8925
|
displayGroupByName: t
|
|
@@ -8908,17 +8934,17 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8908
8934
|
}
|
|
8909
8935
|
}
|
|
8910
8936
|
return null;
|
|
8911
|
-
}, rt = r(() => $e.value ||
|
|
8937
|
+
}, rt = r(() => $e.value || U.value || !l.isLoading && et.value !== ""), it = r(() => {
|
|
8912
8938
|
let e = {};
|
|
8913
8939
|
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] : X.value, e.legend = {
|
|
8914
8940
|
toggleSeries: !1,
|
|
8915
8941
|
preventHidingAll: !0,
|
|
8916
8942
|
enabled: j.value.length > 1
|
|
8917
8943
|
};
|
|
8918
|
-
let t = Me.value ? Y.value?.fieldValues.map((e) =>
|
|
8944
|
+
let t = Me.value ? Y.value?.fieldValues.map((e) => Zu(q.value, e)) || [] : q.value ? [q.value] : [], n = (() => {
|
|
8919
8945
|
if (!Se.value) return [];
|
|
8920
8946
|
let e = Se.value;
|
|
8921
|
-
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) =>
|
|
8947
|
+
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) => Zu(e, String(t))) || [] : [e];
|
|
8922
8948
|
})(), r = ge.value.xAxis.hideLabel === !0, i = fe.value?.id === "histogram" && X.value && X.value.length > 0 && typeof X.value[0]?.bucketMin == "number" && typeof X.value[0]?.bucketMax == "number", a = [];
|
|
8923
8949
|
if (a.push({
|
|
8924
8950
|
type: "category",
|
|
@@ -8940,9 +8966,9 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8940
8966
|
wrapping: "never",
|
|
8941
8967
|
formatter: r ? () => "" : (e) => {
|
|
8942
8968
|
if (e.value === "--SEPARATOR--") return "";
|
|
8943
|
-
let t = e.value, n =
|
|
8969
|
+
let t = e.value, n = K(N.value);
|
|
8944
8970
|
typeof n == "function" && (t = n(e));
|
|
8945
|
-
let r = l.enableFocusView &&
|
|
8971
|
+
let r = l.enableFocusView && ie.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8946
8972
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8947
8973
|
let e = 50 - r.length - 3;
|
|
8948
8974
|
return t.substring(0, e) + "..." + r;
|
|
@@ -8953,7 +8979,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8953
8979
|
paddingInner: Ye.value,
|
|
8954
8980
|
paddingOuter: Xe.value,
|
|
8955
8981
|
groupPaddingInner: Ze.value
|
|
8956
|
-
}), i &&
|
|
8982
|
+
}), i && J.value.length > 0) {
|
|
8957
8983
|
let e = X.value?.length || 1;
|
|
8958
8984
|
a.push({
|
|
8959
8985
|
type: "number",
|
|
@@ -8967,7 +8993,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8967
8993
|
tick: { enabled: !1 },
|
|
8968
8994
|
line: { enabled: !1 },
|
|
8969
8995
|
gridLine: { enabled: !1 },
|
|
8970
|
-
crossLines:
|
|
8996
|
+
crossLines: J.value.map((e) => {
|
|
8971
8997
|
if (!X.value) return null;
|
|
8972
8998
|
let t = nt(e.value, X.value);
|
|
8973
8999
|
return t == null ? null : {
|
|
@@ -8985,7 +9011,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8985
9011
|
type: "number",
|
|
8986
9012
|
keys: t,
|
|
8987
9013
|
position: je.value ? "bottom" : "left",
|
|
8988
|
-
label: { formatter:
|
|
9014
|
+
label: { formatter: K(q.value) },
|
|
8989
9015
|
title: {
|
|
8990
9016
|
enabled: !0,
|
|
8991
9017
|
text: Oe.value
|
|
@@ -9002,7 +9028,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9002
9028
|
text: Ae.value,
|
|
9003
9029
|
color: ft
|
|
9004
9030
|
}
|
|
9005
|
-
}), i &&
|
|
9031
|
+
}), i && J.value.length > 0) {
|
|
9006
9032
|
let e = Number.isFinite(qe.value) ? qe.value : 0;
|
|
9007
9033
|
a.push({
|
|
9008
9034
|
type: "number",
|
|
@@ -9019,10 +9045,10 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9019
9045
|
});
|
|
9020
9046
|
}
|
|
9021
9047
|
return e.axes = a, e.series = Ne.value, e;
|
|
9022
|
-
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !
|
|
9048
|
+
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !U.value && !l.isLoading && et.value !== ""), st = (e) => {
|
|
9023
9049
|
g.value = e, d("chart-collapsed", e);
|
|
9024
9050
|
}, ct = (e) => {
|
|
9025
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
9051
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), re.value = e);
|
|
9026
9052
|
};
|
|
9027
9053
|
return n({
|
|
9028
9054
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
@@ -9038,12 +9064,12 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9038
9064
|
}
|
|
9039
9065
|
}), w(async () => {
|
|
9040
9066
|
await v(), x.value = l.filterPanelAboveChart;
|
|
9041
|
-
}), (n, r) => (E(), o("div",
|
|
9067
|
+
}), (n, r) => (E(), o("div", td, [
|
|
9042
9068
|
s("div", {
|
|
9043
9069
|
class: "pv-stack-16",
|
|
9044
9070
|
id: b
|
|
9045
9071
|
}),
|
|
9046
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
9072
|
+
e.hideChart ? a("", !0) : (E(), o("div", nd, [
|
|
9047
9073
|
u(gn, {
|
|
9048
9074
|
rightIcon: "chevrons-down-up",
|
|
9049
9075
|
label: "Collapse",
|
|
@@ -9055,7 +9081,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9055
9081
|
onClick: r[0] ||= (e) => st(!g.value),
|
|
9056
9082
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
9057
9083
|
}, null, 8, ["class"]),
|
|
9058
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
9084
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", rd, [u(ln, {
|
|
9059
9085
|
name: "chart-line",
|
|
9060
9086
|
size: 20,
|
|
9061
9087
|
class: "pv-text-subdued"
|
|
@@ -9068,7 +9094,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9068
9094
|
variant: "secondary",
|
|
9069
9095
|
onClick: r[1] ||= (e) => st(!g.value)
|
|
9070
9096
|
})], 2),
|
|
9071
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
9097
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(Ju, {
|
|
9072
9098
|
enablePanel: X.value != null && X.value.length > 0,
|
|
9073
9099
|
chartFilter: e.chartFilter,
|
|
9074
9100
|
rowGroupLimit: _e.value,
|
|
@@ -9080,7 +9106,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9080
9106
|
"rowGroupLimit",
|
|
9081
9107
|
"use-combined-button",
|
|
9082
9108
|
"chart-config-options"
|
|
9083
|
-
]), s("div",
|
|
9109
|
+
]), s("div", id, [u(Zt, {
|
|
9084
9110
|
ref_key: "pvChartRef",
|
|
9085
9111
|
ref: h,
|
|
9086
9112
|
isLoading: at.value,
|
|
@@ -9090,17 +9116,17 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9090
9116
|
"isLoading",
|
|
9091
9117
|
"options",
|
|
9092
9118
|
"enableFocusView"
|
|
9093
|
-
]), s("div",
|
|
9119
|
+
]), s("div", ad, [U.value ? (E(), o("div", od, [(E(), i(M(e.emptyChartFilterRenderer)))])) : ot.value ? (E(), o("p", sd, P(et.value), 1)) : a("", !0)])])], 2)
|
|
9094
9120
|
])),
|
|
9095
|
-
u(
|
|
9121
|
+
u(su, _({
|
|
9096
9122
|
ref_key: "pvDataTableRef",
|
|
9097
9123
|
ref: m
|
|
9098
9124
|
}, n.$props, {
|
|
9099
9125
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
9100
|
-
pagination: e.pagination || !
|
|
9101
|
-
onColumnRowGroupChanged:
|
|
9102
|
-
onGridReady:
|
|
9103
|
-
onFilterChanged:
|
|
9126
|
+
pagination: e.pagination || !re.value,
|
|
9127
|
+
onColumnRowGroupChanged: G,
|
|
9128
|
+
onGridReady: ae,
|
|
9129
|
+
onFilterChanged: se,
|
|
9104
9130
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
9105
9131
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
9106
9132
|
onFirstDataRendered: oe,
|
|
@@ -9109,17 +9135,17 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9109
9135
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
9110
9136
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
9111
9137
|
}), {
|
|
9112
|
-
"top-slot":
|
|
9138
|
+
"top-slot": V(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(gu, {
|
|
9113
9139
|
key: 0,
|
|
9114
|
-
groupedModeEnabled:
|
|
9140
|
+
groupedModeEnabled: re.value,
|
|
9115
9141
|
tableConfigOptions: l.tableConfigOptions,
|
|
9116
9142
|
onToggleGroup: ct,
|
|
9117
|
-
onTableOverlayChange:
|
|
9143
|
+
onTableOverlayChange: H
|
|
9118
9144
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(gn, {
|
|
9119
9145
|
key: 1,
|
|
9120
|
-
leftIcon:
|
|
9121
|
-
label:
|
|
9122
|
-
onClick: r[2] ||= (e) => ct(!
|
|
9146
|
+
leftIcon: re.value ? "ungroup" : "group",
|
|
9147
|
+
label: re.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
9148
|
+
onClick: r[2] ||= (e) => ct(!re.value),
|
|
9123
9149
|
variant: "secondary",
|
|
9124
9150
|
size: "lg"
|
|
9125
9151
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -9127,7 +9153,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9127
9153
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
9128
9154
|
]));
|
|
9129
9155
|
}
|
|
9130
|
-
}),
|
|
9156
|
+
}), ld = {
|
|
9131
9157
|
type: "Feature",
|
|
9132
9158
|
properties: { name: "Hawaii" },
|
|
9133
9159
|
geometry: {
|
|
@@ -9301,7 +9327,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9301
9327
|
]]
|
|
9302
9328
|
]
|
|
9303
9329
|
}
|
|
9304
|
-
},
|
|
9330
|
+
}, ud = {
|
|
9305
9331
|
type: "Feature",
|
|
9306
9332
|
properties: { name: "Alaska" },
|
|
9307
9333
|
geometry: {
|
|
@@ -9714,7 +9740,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9714
9740
|
]]
|
|
9715
9741
|
]
|
|
9716
9742
|
}
|
|
9717
|
-
},
|
|
9743
|
+
}, dd = "_FeatureMin", fd = "_FeatureMax", pd = (e) => gd[e] || e, md = ud, hd = ld, gd = {
|
|
9718
9744
|
AL: "Alabama",
|
|
9719
9745
|
AK: "Alaska",
|
|
9720
9746
|
AZ: "Arizona",
|
|
@@ -9765,7 +9791,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9765
9791
|
WV: "West Virginia",
|
|
9766
9792
|
WI: "Wisconsin",
|
|
9767
9793
|
WY: "Wyoming"
|
|
9768
|
-
},
|
|
9794
|
+
}, _d = { state: {
|
|
9769
9795
|
type: "FeatureCollection",
|
|
9770
9796
|
features: [
|
|
9771
9797
|
{
|
|
@@ -9774,7 +9800,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9774
9800
|
type: "Polygon",
|
|
9775
9801
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9776
9802
|
},
|
|
9777
|
-
properties: { name:
|
|
9803
|
+
properties: { name: dd }
|
|
9778
9804
|
},
|
|
9779
9805
|
{
|
|
9780
9806
|
type: "Feature",
|
|
@@ -9782,7 +9808,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9782
9808
|
type: "Polygon",
|
|
9783
9809
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9784
9810
|
},
|
|
9785
|
-
properties: { name:
|
|
9811
|
+
properties: { name: fd }
|
|
9786
9812
|
},
|
|
9787
9813
|
{
|
|
9788
9814
|
type: "Feature",
|
|
@@ -10968,7 +10994,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
10968
10994
|
},
|
|
10969
10995
|
properties: { name: "Michigan" }
|
|
10970
10996
|
},
|
|
10971
|
-
|
|
10997
|
+
hd,
|
|
10972
10998
|
{
|
|
10973
10999
|
type: "Feature",
|
|
10974
11000
|
geometry: {
|
|
@@ -11912,7 +11938,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11912
11938
|
},
|
|
11913
11939
|
properties: { name: "New Hampshire" }
|
|
11914
11940
|
},
|
|
11915
|
-
|
|
11941
|
+
md,
|
|
11916
11942
|
{
|
|
11917
11943
|
type: "Feature",
|
|
11918
11944
|
geometry: {
|
|
@@ -11976,12 +12002,12 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11976
12002
|
properties: { name: "Rhode Island" }
|
|
11977
12003
|
}
|
|
11978
12004
|
]
|
|
11979
|
-
} },
|
|
12005
|
+
} }, vd = (e, t, n, r, i) => {
|
|
11980
12006
|
if (e.length === 0) return [];
|
|
11981
12007
|
if (t !== "state") throw Error(`Unsupported topology type: ${t}`);
|
|
11982
12008
|
if (!e.every((e) => e.hasOwnProperty(t))) throw Error(`Input data must contain the field: ${t}`);
|
|
11983
12009
|
let a = e.map((e) => {
|
|
11984
|
-
let n =
|
|
12010
|
+
let n = pd(e[t]);
|
|
11985
12011
|
return {
|
|
11986
12012
|
...e,
|
|
11987
12013
|
[t]: e[t],
|
|
@@ -11989,22 +12015,22 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11989
12015
|
};
|
|
11990
12016
|
});
|
|
11991
12017
|
return a.push({
|
|
11992
|
-
[t]:
|
|
12018
|
+
[t]: dd,
|
|
11993
12019
|
[n]: r,
|
|
11994
|
-
name:
|
|
12020
|
+
name: dd
|
|
11995
12021
|
}), a.push({
|
|
11996
|
-
[t]:
|
|
12022
|
+
[t]: fd,
|
|
11997
12023
|
[n]: i,
|
|
11998
|
-
name:
|
|
12024
|
+
name: fd
|
|
11999
12025
|
}), a;
|
|
12000
|
-
},
|
|
12001
|
-
let t =
|
|
12026
|
+
}, yd = (e) => {
|
|
12027
|
+
let t = _d[e];
|
|
12002
12028
|
if (!t) throw Error(`No topology object found for type: ${e}`);
|
|
12003
12029
|
return t;
|
|
12004
|
-
},
|
|
12005
|
-
getTopologyObject:
|
|
12006
|
-
buildMapData:
|
|
12007
|
-
}),
|
|
12030
|
+
}, bd = () => ({
|
|
12031
|
+
getTopologyObject: yd,
|
|
12032
|
+
buildMapData: vd
|
|
12033
|
+
}), xd = { style: { width: "30%" } }, Sd = ["min", "max"], Cd = { class: "pv-flex pv-space-between pv-text-body-xxs pv-text-subdued" }, wd = /* @__PURE__ */ d({
|
|
12008
12034
|
__name: "MapGradient",
|
|
12009
12035
|
props: {
|
|
12010
12036
|
min: { default: 0 },
|
|
@@ -12013,7 +12039,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12013
12039
|
},
|
|
12014
12040
|
setup(e) {
|
|
12015
12041
|
let t = e, n = (e) => t.valueFormatter ? t.valueFormatter(e) : e.toLocaleString("en-US");
|
|
12016
|
-
return (t, r) => (E(), o("div",
|
|
12042
|
+
return (t, r) => (E(), o("div", xd, [s("div", {
|
|
12017
12043
|
min: e.min,
|
|
12018
12044
|
max: e.max,
|
|
12019
12045
|
"aria-hidden": "true",
|
|
@@ -12025,9 +12051,9 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12025
12051
|
"border-radius": "1rem",
|
|
12026
12052
|
height: "0.5rem"
|
|
12027
12053
|
}
|
|
12028
|
-
}, null, 8,
|
|
12054
|
+
}, null, 8, Sd), s("div", Cd, [s("p", null, P(n(e.min)), 1), s("p", null, P(n(e.max)), 1)])]));
|
|
12029
12055
|
}
|
|
12030
|
-
}),
|
|
12056
|
+
}), Td = /* @__PURE__ */ d({
|
|
12031
12057
|
__name: "MapRegionSelector",
|
|
12032
12058
|
props: /* @__PURE__ */ g({
|
|
12033
12059
|
topologyType: {},
|
|
@@ -12043,14 +12069,14 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12043
12069
|
setup(e) {
|
|
12044
12070
|
let t = L(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
12045
12071
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
12046
|
-
return (a.selectableRegions ? a.selectableRegions : Object.keys(
|
|
12047
|
-
text:
|
|
12072
|
+
return (a.selectableRegions ? a.selectableRegions : Object.keys(gd)).map((e) => ({
|
|
12073
|
+
text: pd(e),
|
|
12048
12074
|
id: e
|
|
12049
12075
|
}));
|
|
12050
12076
|
});
|
|
12051
|
-
return
|
|
12077
|
+
return B(n, (e) => {
|
|
12052
12078
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
12053
|
-
}),
|
|
12079
|
+
}), B(t, (e) => {
|
|
12054
12080
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
12055
12081
|
}), (e, t) => (E(), i(Qa, {
|
|
12056
12082
|
style: { width: "125px" },
|
|
@@ -12066,10 +12092,10 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12066
12092
|
"options"
|
|
12067
12093
|
]));
|
|
12068
12094
|
}
|
|
12069
|
-
}),
|
|
12095
|
+
}), Ed = {
|
|
12070
12096
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
12071
12097
|
style: { width: "100%" }
|
|
12072
|
-
},
|
|
12098
|
+
}, Dd = /* @__PURE__ */ d({
|
|
12073
12099
|
__name: "PvMapChart",
|
|
12074
12100
|
props: /* @__PURE__ */ g({
|
|
12075
12101
|
seriesKey: {},
|
|
@@ -12103,8 +12129,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12103
12129
|
}),
|
|
12104
12130
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
12105
12131
|
setup(e, { emit: n }) {
|
|
12106
|
-
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } =
|
|
12107
|
-
|
|
12132
|
+
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = bd(), p = r(() => d(i.mapType)), m = r(() => f(a.value, i.mapType, i.seriesKey, i.gradientLegendMin, i.gradientLegendMax)), h = r(() => m.value.filter((e) => e[i.mapType] !== "_FeatureMin" && e[i.mapType] !== "_FeatureMax").map((e) => e[i.mapType]));
|
|
12133
|
+
B(c, (e) => {
|
|
12108
12134
|
l("region-selection-changed", { region: e });
|
|
12109
12135
|
});
|
|
12110
12136
|
let g = r(() => (c.value, {
|
|
@@ -12143,7 +12169,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12143
12169
|
overlays: { noData: { text: i.noDataMessage || "No data to display" } },
|
|
12144
12170
|
gradientLegend: { enabled: !1 }
|
|
12145
12171
|
}));
|
|
12146
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12172
|
+
return (n, r) => (E(), o(t, null, [s("div", Ed, [u(Td, {
|
|
12147
12173
|
modelValue: c.value,
|
|
12148
12174
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
12149
12175
|
"selectable-regions": h.value,
|
|
@@ -12152,7 +12178,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12152
12178
|
"modelValue",
|
|
12153
12179
|
"selectable-regions",
|
|
12154
12180
|
"topology-type"
|
|
12155
|
-
]), u(
|
|
12181
|
+
]), u(wd, {
|
|
12156
12182
|
min: e.gradientLegendMin,
|
|
12157
12183
|
max: e.gradientLegendMax,
|
|
12158
12184
|
"value-formatter": e.seriesValueFormatter
|
|
@@ -12169,6 +12195,6 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12169
12195
|
}
|
|
12170
12196
|
});
|
|
12171
12197
|
//#endregion
|
|
12172
|
-
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart,
|
|
12198
|
+
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart, su as PvDataTable, cd as PvDataTableWithChart, Dd as PvMapChart, ft as SCATTER_MARKER_STROKE, bc as constructAdvancedFilterCondition, xc as convertFilterModelToAdvanced, $c as createPvDataTableFilterStore, Jc as excludeValueFromSetFilter, Dc as filterModelContainsColId, zc as filterModelsEqual, Wc as getSelectedValues, Hc as getSelectedValuesFromAdvancedFilterModel, Nc as getSelectedValuesFromFilterModel, Uc as getSelectedValuesFromFilterModelByColId, Pc as isAdvancedFilterModel, Ic as isFilterModelEmpty, Bc as mergeAdvancedFilterCondition, Oc as mergeFilterModels, el as providePvDataTableFilterStore, Gc as removeColumnFilter, Vc as removeColumnFromAdvancedFilter, qc as updateMultiOrSetFilter, Kc as updateSetFilter, nl as usePvDataTableFilterStore };
|
|
12173
12199
|
|
|
12174
12200
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|