@turquoisehealth/pit-viper 2.194.6-dev.0 → 2.194.6-dev.2
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 +5 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +3 -6
- 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 +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +0 -6
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +0 -4
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +0 -2
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +776 -795
- 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 +3 -6
- 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-0e7c96e4]{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-a2cb7df0]:hover{color:#16696d}.suggested-title-label[data-v-a2cb7df0]: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
|
|
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 B, watch as V, withCtx as H, withDirectives as re, withModifiers as ie } from "vue";
|
|
4
|
+
import { AgCharts as U } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as ae } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as W } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as oe, CheckboxEditorModule as se, ClientSideRowModelModule as G, ColumnApiModule as K, ColumnAutoSizeModule as ce, 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 J, TextFilterModule as Ce, UndoRedoEditModule as we, 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
|
+
ae.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(U), {
|
|
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 }), V(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) => re((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: H(() => [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), V(() => 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
|
+
V(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
|
+
V([
|
|
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 V(j, (e) => {
|
|
1594
1594
|
t.showOnHover && D(e);
|
|
1595
1595
|
}), T(() => {
|
|
1596
1596
|
C();
|
|
1597
|
-
}), (r, u) =>
|
|
1597
|
+
}), (r, u) => re((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
|
+
}, [re(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), [[B, 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] ||= ie((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: H(() => [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: H(() => [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: H(() => [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: H(() => [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 V(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
|
+
V(() => 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, [re(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 V(() => 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: H(() => [u(ln, {
|
|
2227
2227
|
name: "close",
|
|
2228
|
-
onClick: r[0] ||=
|
|
2228
|
+
onClick: r[0] ||= ie((e) => n.$emit("handle-clear"), ["stop"])
|
|
2229
2229
|
})]),
|
|
2230
|
-
"tooltip-content":
|
|
2230
|
+
"tooltip-content": H(() => [...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
|
+
}), V(() => 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), re(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: H(() => [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: ie(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: H(() => [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] ||= ie((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
|
+
V(() => 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) => re((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)), [[B, !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
|
+
V(c, (e) => {
|
|
2784
2784
|
l.value = e;
|
|
2785
|
-
}),
|
|
2785
|
+
}), V(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) => re((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)), [[B, 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 U.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 U.value.length + e;
|
|
3004
|
+
let t = new Set(U.value.map((e) => e.id));
|
|
3005
3005
|
return fa(c.options, t) + e;
|
|
3006
|
-
}), T = r(() =>
|
|
3006
|
+
}), T = r(() => U.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"), B = (e) => {
|
|
3009
|
+
U.value = e, ne.value || (ee.value = e, R.value = S());
|
|
3010
|
+
}, re = () => {
|
|
3011
|
+
ne.value && (ee.value = U.value, R.value = S());
|
|
3012
|
+
}, ie = () => {
|
|
3013
|
+
ne.value && (U.value = ee.value);
|
|
3014
|
+
}, U = N(ee.value), ae = (e) => d.value.get(e), W = (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,35 +3027,35 @@ 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(ae(r.id), r.id);
|
|
3031
3031
|
}
|
|
3032
|
-
f.value = t, m.value = n,
|
|
3033
|
-
},
|
|
3034
|
-
get: () =>
|
|
3032
|
+
f.value = t, m.value = n, U.value = r;
|
|
3033
|
+
}, oe = r({
|
|
3034
|
+
get: () => U.value,
|
|
3035
3035
|
set: (e) => {
|
|
3036
|
-
c.readOnly ||
|
|
3036
|
+
c.readOnly || B(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3038
|
+
}), se = () => {
|
|
3039
3039
|
te.value = "", M.value = !1;
|
|
3040
|
-
},
|
|
3040
|
+
}, G = r(() => {
|
|
3041
3041
|
let e = c.size === "lg" ? 24 : 30;
|
|
3042
3042
|
return c.overlayTrigger ? -e : void 0;
|
|
3043
3043
|
});
|
|
3044
|
-
|
|
3044
|
+
V(() => ee.value, (e) => {
|
|
3045
3045
|
if (c.enableCascadeSelection && R.value?.length && e.length === 0) {
|
|
3046
|
-
|
|
3046
|
+
W(R.value);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
|
-
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3049
|
+
U.value = e;
|
|
3050
|
+
}), V(() => [R.value, c.options], () => {
|
|
3051
|
+
W(R.value);
|
|
3052
3052
|
}, {
|
|
3053
3053
|
deep: !0,
|
|
3054
3054
|
immediate: !0
|
|
3055
|
-
}),
|
|
3056
|
-
e ? (
|
|
3055
|
+
}), V(M, (e) => {
|
|
3056
|
+
e ? (ie(), v(() => {
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
|
-
})) : (
|
|
3058
|
+
})) : (ie(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
3060
|
let K = r(() => {
|
|
3061
3061
|
if (te.value === "") return c.options;
|
|
@@ -3068,13 +3068,13 @@ var ha = {
|
|
|
3068
3068
|
};
|
|
3069
3069
|
t(K.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3071
|
+
B(c.enableCascadeSelection ? ua(K.value) : K.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(), B([]);
|
|
3074
3074
|
}, ue = () => {
|
|
3075
|
-
|
|
3075
|
+
ie(), se();
|
|
3076
3076
|
}, de = () => {
|
|
3077
|
-
|
|
3077
|
+
re(), se();
|
|
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 && se();
|
|
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: G.value }), {
|
|
3107
|
+
trigger: H(() => [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": U.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: H(() => [s("div", {
|
|
3142
3142
|
ref_key: "popoverContentRef",
|
|
3143
3143
|
ref: he,
|
|
3144
3144
|
class: "pv-popover",
|
|
@@ -3164,8 +3164,8 @@ var ha = {
|
|
|
3164
3164
|
K.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
|
-
selectedItems:
|
|
3168
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
3167
|
+
selectedItems: oe.value,
|
|
3168
|
+
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
3169
3169
|
options: i,
|
|
3170
3170
|
config: l.value,
|
|
3171
3171
|
queryText: e.highlightSearchText ? te.value : null,
|
|
@@ -3192,8 +3192,8 @@ var ha = {
|
|
|
3192
3192
|
fe.value && s !== fe.value.length - 1 ? (E(), o("div", qa)) : a("", !0)
|
|
3193
3193
|
]))), 128)) : (E(), i(Ua, {
|
|
3194
3194
|
key: 1,
|
|
3195
|
-
selectedItems:
|
|
3196
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
3195
|
+
selectedItems: oe.value,
|
|
3196
|
+
"onUpdate:selectedItems": r[3] ||= (e) => oe.value = e,
|
|
3197
3197
|
options: K.value,
|
|
3198
3198
|
config: l.value,
|
|
3199
3199
|
queryText: e.highlightSearchText ? te.value : null,
|
|
@@ -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
|
+
V(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: H(() => [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: H(() => [s("div", {
|
|
3368
3368
|
class: "pv-popover",
|
|
3369
3369
|
"data-test-id": "pv-popover",
|
|
3370
3370
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3776,10 +3776,7 @@ 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(() =>
|
|
3780
|
-
let e = t.icon || "search";
|
|
3781
|
-
return c.value ? e : "search";
|
|
3782
|
-
});
|
|
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(() => t.icon || "search");
|
|
3783
3780
|
return w(() => {
|
|
3784
3781
|
if (i.value && d.value) {
|
|
3785
3782
|
let e = RegExp(`(${d.value})`, "gi");
|
|
@@ -3791,7 +3788,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3791
3788
|
class: "pv-text-body-md"
|
|
3792
3789
|
}, 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)])])]));
|
|
3793
3790
|
}
|
|
3794
|
-
}), [["__scopeId", "data-v-
|
|
3791
|
+
}), [["__scopeId", "data-v-0e7c96e4"]]), Bo = /* @__PURE__ */ d({
|
|
3795
3792
|
__name: "QueryFormatter",
|
|
3796
3793
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
3797
3794
|
modelValue: { required: !0 },
|
|
@@ -3919,7 +3916,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3919
3916
|
context: e.queryTerm
|
|
3920
3917
|
}));
|
|
3921
3918
|
});
|
|
3922
|
-
|
|
3919
|
+
V([
|
|
3923
3920
|
A,
|
|
3924
3921
|
d,
|
|
3925
3922
|
() => n.optionsLoading
|
|
@@ -3953,7 +3950,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3953
3950
|
let ee = () => {
|
|
3954
3951
|
d.value = "";
|
|
3955
3952
|
};
|
|
3956
|
-
return (n, r) =>
|
|
3953
|
+
return (n, r) => re((E(), o("div", {
|
|
3957
3954
|
ref: "query-builder-input",
|
|
3958
3955
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3959
3956
|
onFocus: F,
|
|
@@ -3979,7 +3976,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3979
3976
|
"modelValue",
|
|
3980
3977
|
"wrap-content",
|
|
3981
3978
|
"query-term-display-limit"
|
|
3982
|
-
]),
|
|
3979
|
+
]), re(s("input", {
|
|
3983
3980
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3984
3981
|
ref: "search-input",
|
|
3985
3982
|
"data-testid": "pv-search-input",
|
|
@@ -4007,7 +4004,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4007
4004
|
},
|
|
4008
4005
|
isList: !0
|
|
4009
4006
|
}, {
|
|
4010
|
-
default:
|
|
4007
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", Uo, [u(St, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(za, _({
|
|
4011
4008
|
key: `${t}-${e.searchText}`,
|
|
4012
4009
|
ref_for: !0
|
|
4013
4010
|
}, e, {
|
|
@@ -4039,7 +4036,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4039
4036
|
},
|
|
4040
4037
|
setup(e) {
|
|
4041
4038
|
let n = m(Jo, O(null)), c = m(Qo, O([])), l = m($o, O([])), u = e;
|
|
4042
|
-
|
|
4039
|
+
V(l, () => {}, { deep: !0 });
|
|
4043
4040
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
4044
4041
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
4045
4042
|
}, 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(() => {
|
|
@@ -4070,12 +4067,12 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4070
4067
|
class: y(p.value),
|
|
4071
4068
|
onListOrderUpdated: x
|
|
4072
4069
|
}, {
|
|
4073
|
-
trigger:
|
|
4070
|
+
trigger: H(() => [s("div", ys, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(pn), {
|
|
4074
4071
|
key: 0,
|
|
4075
4072
|
value: I(l).length,
|
|
4076
4073
|
variant: "tertiary"
|
|
4077
4074
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
4078
|
-
default:
|
|
4075
|
+
default: H(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
4079
4076
|
key: 0,
|
|
4080
4077
|
id: b(e.value)
|
|
4081
4078
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -4197,14 +4194,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4197
4194
|
tooltipPosition: "center-left",
|
|
4198
4195
|
size: "sm"
|
|
4199
4196
|
}, {
|
|
4200
|
-
label:
|
|
4197
|
+
label: H(() => [u(gn, {
|
|
4201
4198
|
class: y(j.value + " pv-text-brand"),
|
|
4202
4199
|
variant: "ghost",
|
|
4203
4200
|
"left-icon": "focus",
|
|
4204
4201
|
ariaLabel: "Remove focus",
|
|
4205
4202
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
4206
4203
|
}, null, 8, ["class"])]),
|
|
4207
|
-
"tooltip-content":
|
|
4204
|
+
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
4208
4205
|
_: 1
|
|
4209
4206
|
})])) : 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));
|
|
4210
4207
|
}
|
|
@@ -4236,14 +4233,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4236
4233
|
"col-def": o.value,
|
|
4237
4234
|
"cell-params": e.params.cellParams
|
|
4238
4235
|
}, {
|
|
4239
|
-
default:
|
|
4236
|
+
default: H(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4240
4237
|
_: 1
|
|
4241
4238
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Ns, {
|
|
4242
4239
|
key: 1,
|
|
4243
4240
|
"col-def": s.value,
|
|
4244
4241
|
"cell-params": c.value
|
|
4245
4242
|
}, {
|
|
4246
|
-
default:
|
|
4243
|
+
default: H(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4247
4244
|
_: 1
|
|
4248
4245
|
}, 8, ["col-def", "cell-params"]));
|
|
4249
4246
|
}
|
|
@@ -4768,7 +4765,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4768
4765
|
}), y = e.filterOptionsMap, b = e.filterSelectedValueMap, x = e.filterSelectedMetadataMap, S = e.filterSearchQueries, C = O({}), w = O({}), T = async (t) => {
|
|
4769
4766
|
let n = await e.fetchFilterOptions(t);
|
|
4770
4767
|
return C.value[t.field] = n, w.value[t.field] = !1, s.value[t.field] = Date.now(), n;
|
|
4771
|
-
}, E = O(!1), D = O(!1), k = O(
|
|
4768
|
+
}, E = O(!1), D = O(!1), k = O({}), A = O(/* @__PURE__ */ new Set()), j = O({}), M = e.stagedFilterSelectedValueMap, P = (e) => {
|
|
4772
4769
|
let t = {};
|
|
4773
4770
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4774
4771
|
t[e] = n;
|
|
@@ -4778,28 +4775,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4778
4775
|
filterType: "set",
|
|
4779
4776
|
values: r
|
|
4780
4777
|
});
|
|
4781
|
-
}), i.value != null && Object.entries(
|
|
4778
|
+
}), i.value != null && Object.entries(M.value).forEach(([e, n]) => {
|
|
4782
4779
|
let r = n.filter((e) => !!e);
|
|
4783
4780
|
r.length > 0 ? t[e] = {
|
|
4784
4781
|
filterType: "set",
|
|
4785
4782
|
values: r
|
|
4786
4783
|
} : delete t[e];
|
|
4787
4784
|
}), t;
|
|
4788
|
-
},
|
|
4785
|
+
}, F = (e) => {
|
|
4789
4786
|
if (!e) return e ?? null;
|
|
4790
4787
|
if (!e.startsWith("__")) return e;
|
|
4791
4788
|
let t = e.slice(2).split("__");
|
|
4792
4789
|
return t.length >= 2 ? t[1] : e;
|
|
4793
|
-
},
|
|
4790
|
+
}, I = (e) => e ? e.rawValue == null ? e.metadata?.rawValue == null ? F(e.value) : String(e.metadata.rawValue) : String(e.rawValue) : null, ee = (e, t, n = 0) => {
|
|
4794
4791
|
if (!e || n > 25) return !1;
|
|
4795
4792
|
if (e.value === t.value) return !0;
|
|
4796
|
-
let r =
|
|
4797
|
-
return r != null && i != null && r === i ? !0 : e.children?.some((e) =>
|
|
4798
|
-
},
|
|
4793
|
+
let r = I(e), i = I(t);
|
|
4794
|
+
return r != null && i != null && r === i ? !0 : e.children?.some((e) => ee(e, t, n + 1)) ?? !1;
|
|
4795
|
+
}, L = async (e, t) => {
|
|
4799
4796
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4800
4797
|
if (t?.useStaged !== !1 && i.value != null) if (Xc(i.value)) {
|
|
4801
4798
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
4802
|
-
o =
|
|
4799
|
+
o = P(e && Xc(e) ? e : void 0);
|
|
4803
4800
|
} else o = i.value;
|
|
4804
4801
|
let l = {
|
|
4805
4802
|
api: t?.api,
|
|
@@ -4815,12 +4812,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4815
4812
|
h || (u.value[m] = !0);
|
|
4816
4813
|
let g = (c.value[m] || 0) + 1;
|
|
4817
4814
|
c.value[m] = g;
|
|
4818
|
-
let _ = a.map((e) =>
|
|
4815
|
+
let _ = a.map((e) => R(m, e) || {
|
|
4819
4816
|
value: e,
|
|
4820
4817
|
label: String(e)
|
|
4821
4818
|
}), v = await d.value?.(l), x;
|
|
4822
4819
|
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) => {
|
|
4823
|
-
let n =
|
|
4820
|
+
let n = z(e, t);
|
|
4824
4821
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4825
4822
|
})), g === c.value[m]) {
|
|
4826
4823
|
let e = (t?.offset ?? 0) > 0, n = !!t?.parentId;
|
|
@@ -4839,12 +4836,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4839
4836
|
}) : e;
|
|
4840
4837
|
}
|
|
4841
4838
|
_.forEach((e) => {
|
|
4842
|
-
x?.some((t) =>
|
|
4839
|
+
x?.some((t) => ee(t, e)) || x?.push(e);
|
|
4843
4840
|
}), x && (y.value[m] = x);
|
|
4844
4841
|
let r = x?.filter((e) => e != null).map((e) => e.value) || [], i = r.filter((e, t) => r.indexOf(e) === t);
|
|
4845
4842
|
return C.value[m] = i, w.value[m] = !1, s.value[m] = Date.now(), h || (u.value[m] = !1), i;
|
|
4846
4843
|
} else return [];
|
|
4847
|
-
},
|
|
4844
|
+
}, R = (e, t) => {
|
|
4848
4845
|
let n = [...y.value[e] || [], ...x.value[e] || []], r = (e, t) => {
|
|
4849
4846
|
let n = /* @__PURE__ */ new Map();
|
|
4850
4847
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4856,16 +4853,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4856
4853
|
};
|
|
4857
4854
|
}, i = n.filter((e) => e?.value === t);
|
|
4858
4855
|
if (i.length > 0) return i.reduce(r);
|
|
4859
|
-
let a =
|
|
4856
|
+
let a = F(t), o = (e) => {
|
|
4860
4857
|
for (let n of e) {
|
|
4861
4858
|
if (!n) continue;
|
|
4862
|
-
if (n.value === t || a != null &&
|
|
4859
|
+
if (n.value === t || a != null && I(n) === a) return n;
|
|
4863
4860
|
let e = n.children ? o(n.children) : void 0;
|
|
4864
4861
|
if (e) return e;
|
|
4865
4862
|
}
|
|
4866
4863
|
};
|
|
4867
4864
|
return o(n);
|
|
4868
|
-
},
|
|
4865
|
+
}, z = (e, t) => {
|
|
4869
4866
|
if (!t) return {};
|
|
4870
4867
|
let n = $(e)?.queryColIds || [];
|
|
4871
4868
|
if (n.length === 0) return {};
|
|
@@ -4878,7 +4875,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4878
4875
|
};
|
|
4879
4876
|
}
|
|
4880
4877
|
return {};
|
|
4881
|
-
},
|
|
4878
|
+
}, te = (e, t) => {
|
|
4882
4879
|
b.value[e] = t;
|
|
4883
4880
|
let r = [], i = n.value;
|
|
4884
4881
|
if (Zc(i)) {
|
|
@@ -4891,45 +4888,45 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4891
4888
|
r.push(...t);
|
|
4892
4889
|
let a = [];
|
|
4893
4890
|
return t.forEach((t) => {
|
|
4894
|
-
let n =
|
|
4891
|
+
let n = R(e, t);
|
|
4895
4892
|
n && a.push(n);
|
|
4896
4893
|
}), x.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4897
|
-
},
|
|
4894
|
+
}, ne = (e) => b.value[e] || [], B = (e, t) => {
|
|
4898
4895
|
S.value[e] = t;
|
|
4899
4896
|
}, V = (e) => C.value[e] || [], H = (e, t) => {
|
|
4900
4897
|
C.value[e] = t;
|
|
4901
|
-
},
|
|
4902
|
-
|
|
4903
|
-
}, W = (e) => {
|
|
4904
|
-
let t = M.value[e] ?? 0;
|
|
4905
|
-
M.value[e] = t + 1, j.value.add(e);
|
|
4898
|
+
}, re = (e, t) => {
|
|
4899
|
+
k.value[e] = t;
|
|
4906
4900
|
}, ie = (e) => {
|
|
4907
|
-
let t =
|
|
4901
|
+
let t = j.value[e] ?? 0;
|
|
4902
|
+
j.value[e] = t + 1, A.value.add(e);
|
|
4903
|
+
}, U = (e) => {
|
|
4904
|
+
let t = j.value[e] ?? 0;
|
|
4908
4905
|
if (t <= 1) {
|
|
4909
|
-
delete
|
|
4906
|
+
delete j.value[e], A.value.delete(e);
|
|
4910
4907
|
return;
|
|
4911
4908
|
}
|
|
4912
|
-
|
|
4909
|
+
j.value[e] = t - 1;
|
|
4913
4910
|
}, ae = (e) => {
|
|
4914
4911
|
let t = new Set(e);
|
|
4915
4912
|
for (let n of e) {
|
|
4916
|
-
let e =
|
|
4913
|
+
let e = k.value[n] || [];
|
|
4917
4914
|
for (let n of e) t.add(n);
|
|
4918
4915
|
}
|
|
4919
|
-
for (let e of
|
|
4920
|
-
},
|
|
4921
|
-
|
|
4922
|
-
},
|
|
4916
|
+
for (let e of A.value) t.has(e) || (w.value[e] = !0);
|
|
4917
|
+
}, W = e.initStagedFilterSelections, oe = e.clearStagedFilterSelections, se = (e) => M.value[e] || [], G = (e, t) => {
|
|
4918
|
+
M.value[e] = t;
|
|
4919
|
+
}, K = (e) => {
|
|
4923
4920
|
t.value = e;
|
|
4924
|
-
},
|
|
4921
|
+
}, ce = (e) => {
|
|
4925
4922
|
(!e || t.value === e) && (t.value = null);
|
|
4926
|
-
},
|
|
4923
|
+
}, le = () => t.value?.getFilterModel() ?? n.value, ue = (e) => {
|
|
4927
4924
|
let r = t.value?.setFilterModel(e);
|
|
4928
4925
|
(!t.value || r === !1) && (n.value = e);
|
|
4929
|
-
},
|
|
4926
|
+
}, de = (e) => {
|
|
4930
4927
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
4931
4928
|
(!t.value || n === !1) && (a.value = e);
|
|
4932
|
-
},
|
|
4929
|
+
}, fe = (e) => t.value?.refreshData(e), pe = (e, t) => {
|
|
4933
4930
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], a = r.filter((e) => i.includes(e));
|
|
4934
4931
|
[...r, ...i].filter((e) => !a.includes(e)).forEach((e) => n.add(e));
|
|
4935
4932
|
for (let r of a) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4939,7 +4936,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4939
4936
|
};
|
|
4940
4937
|
return qe([n, i], ([e, t], [r, i]) => {
|
|
4941
4938
|
let a = /* @__PURE__ */ new Set();
|
|
4942
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
4939
|
+
JSON.stringify(e) !== JSON.stringify(r) && pe(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(t) !== JSON.stringify(i) && pe(t || {}, n.value || {}).forEach((e) => a.add(e)), a.size > 0 && ae(a);
|
|
4943
4940
|
}, {
|
|
4944
4941
|
deep: !0,
|
|
4945
4942
|
debounce: 200,
|
|
@@ -4957,14 +4954,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4957
4954
|
filterValueMap: y,
|
|
4958
4955
|
filterValueSelectedMetadataMap: x,
|
|
4959
4956
|
filterStoreHandler: d,
|
|
4960
|
-
fetchFilterValues:
|
|
4961
|
-
filterValueContext:
|
|
4957
|
+
fetchFilterValues: L,
|
|
4958
|
+
filterValueContext: R,
|
|
4962
4959
|
filterModelEmpty: _,
|
|
4963
|
-
getFilterSelectedValues:
|
|
4964
|
-
getSearchMatchDataFromFilterContext:
|
|
4960
|
+
getFilterSelectedValues: ne,
|
|
4961
|
+
getSearchMatchDataFromFilterContext: z,
|
|
4965
4962
|
isServerSideFilter: g,
|
|
4966
4963
|
stagedFilterModel: i,
|
|
4967
|
-
setFilterSelectedValues:
|
|
4964
|
+
setFilterSelectedValues: te,
|
|
4968
4965
|
setFilterValueSearchText: B,
|
|
4969
4966
|
tableSearchFilterModel: a,
|
|
4970
4967
|
tableSearchFilterModelEmpty: v,
|
|
@@ -4975,24 +4972,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4975
4972
|
filterStaleMap: w,
|
|
4976
4973
|
refreshFiltersInBackground: E,
|
|
4977
4974
|
stageFilterChangesUntilDropdownCloses: D,
|
|
4978
|
-
filterSearchMinLength: k,
|
|
4979
4975
|
markOtherFieldsStale: ae,
|
|
4980
|
-
aggregateFieldMap:
|
|
4981
|
-
registerAggregateField:
|
|
4982
|
-
registeredFilterFields:
|
|
4983
|
-
registerFilterField:
|
|
4984
|
-
unregisterFilterField:
|
|
4985
|
-
stagedSelectedValuesMap:
|
|
4986
|
-
initStagedSelectedValues:
|
|
4976
|
+
aggregateFieldMap: k,
|
|
4977
|
+
registerAggregateField: re,
|
|
4978
|
+
registeredFilterFields: A,
|
|
4979
|
+
registerFilterField: ie,
|
|
4980
|
+
unregisterFilterField: U,
|
|
4981
|
+
stagedSelectedValuesMap: M,
|
|
4982
|
+
initStagedSelectedValues: W,
|
|
4987
4983
|
clearStagedSelectedValues: oe,
|
|
4988
4984
|
getStagedSelectedValues: se,
|
|
4989
|
-
setStagedSelectedValues:
|
|
4990
|
-
registerFilterController:
|
|
4991
|
-
unregisterFilterController:
|
|
4992
|
-
getFilterModel:
|
|
4993
|
-
applyFilterModel:
|
|
4994
|
-
applyTableSearchFilterModel:
|
|
4995
|
-
refreshData:
|
|
4985
|
+
setStagedSelectedValues: G,
|
|
4986
|
+
registerFilterController: K,
|
|
4987
|
+
unregisterFilterController: ce,
|
|
4988
|
+
getFilterModel: le,
|
|
4989
|
+
applyFilterModel: ue,
|
|
4990
|
+
applyTableSearchFilterModel: de,
|
|
4991
|
+
refreshData: fe,
|
|
4996
4992
|
filterValueSearchTextMap: S,
|
|
4997
4993
|
filterValuesHasMoreMap: f,
|
|
4998
4994
|
filterValuesTotalCountMap: p
|
|
@@ -5004,55 +5000,52 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5004
5000
|
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().");
|
|
5005
5001
|
return e;
|
|
5006
5002
|
}, rl = (e) => {
|
|
5007
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l, filterModel: u, stagedFilterModel: d, filterModelCleared: f, filterValuesLoadingStatus: p, filterValueContext: h, getFilterSelectedValues: g, isServerSideFilter: _, setFilterValueSearchText: y, setFilterSelectedValues: b, getFilterValues: x, setFilterValues: S, filterStaleMap: C, refreshFiltersInBackground: E, stageFilterChangesUntilDropdownCloses: D,
|
|
5008
|
-
get: () =>
|
|
5003
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l, filterModel: u, stagedFilterModel: d, filterModelCleared: f, filterValuesLoadingStatus: p, filterValueContext: h, getFilterSelectedValues: g, isServerSideFilter: _, setFilterValueSearchText: y, setFilterSelectedValues: b, getFilterValues: x, setFilterValues: S, filterStaleMap: C, refreshFiltersInBackground: E, stageFilterChangesUntilDropdownCloses: D, markOtherFieldsStale: k, registerAggregateField: A, registerFilterField: j, unregisterFilterField: M, getStagedSelectedValues: N, setStagedSelectedValues: P, filterValueSearchTextMap: F, filterValuesHasMoreMap: I, filterValuesTotalCountMap: ee } = c, { computedFocuses: L, removeFocus: R, computedFocusType: z } = Fs(), te = m(rs, O(!1)), ne = m(ns, O(!1)), B = m(gs, O(!1)), H = r({
|
|
5004
|
+
get: () => G.value ? N(W.value) : g(W.value),
|
|
5009
5005
|
set: (e) => {
|
|
5010
|
-
|
|
5006
|
+
G.value ? P(W.value, e) : b(W.value, e);
|
|
5011
5007
|
}
|
|
5012
|
-
}),
|
|
5013
|
-
let e = x(
|
|
5014
|
-
if (
|
|
5015
|
-
let t = new Set(e), n =
|
|
5008
|
+
}), re = r(() => {
|
|
5009
|
+
let e = x(W.value);
|
|
5010
|
+
if (K.value && le.value.length > 0) {
|
|
5011
|
+
let t = new Set(e), n = le.value.filter((e) => t.has(e)), r = new Set(le.value), i = e.filter((e) => !r.has(e));
|
|
5016
5012
|
return [...n, ...i];
|
|
5017
5013
|
}
|
|
5018
|
-
return
|
|
5019
|
-
}),
|
|
5020
|
-
get: () =>
|
|
5021
|
-
set: (e) => y(
|
|
5022
|
-
}),
|
|
5023
|
-
let e = k.value ?? 0, t = ie.value?.length ?? 0;
|
|
5024
|
-
return e > 0 && t > 0 && t < e;
|
|
5025
|
-
}), G = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), ce = O(!1), le = O(!1), ue = O([]), de = r(() => rc(t.value)), fe = r(() => ic(t.value)), pe = r(() => ac(t.value)), me = r(() => $(t.value).filterOptionsSortDescription), he = r(() => $(t.value).filterOptionsSortTooltip), ge = r(() => !$(t.value).filterSearch), _e = r(() => $(t.value).emptyFilterResultsRenderer), ve = r(() => $(t.value).filterOptionsRenderer), ye = r(() => $(t.value).filterHeaderRenderer), be = r(() => $(t.value).filterFooterRenderer), xe = r(() => fe.value ? H.value.length >= fe.value : !1), q = r(() => U.value.filter((e) => e != null && !H.value.includes(e))), Se = r(() => L.value[G.value]), Ce = r(() => ee.value[G.value]), J = r(() => uc(t.value)), we = () => new Set([G.value, ...cc(t.value)]), Y = (e, t) => {
|
|
5014
|
+
return Oe(e);
|
|
5015
|
+
}), ie = r(() => p.value[W.value] ?? !1), U = r(() => E.value || $(t.value).prefetchFilterValues === !0), ae = r({
|
|
5016
|
+
get: () => F.value[W.value] ?? "",
|
|
5017
|
+
set: (e) => y(W.value, e)
|
|
5018
|
+
}), W = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), G = r(() => n?.value === "vertical"), K = O(!1), ce = O(!1), le = O([]), ue = r(() => rc(t.value)), de = r(() => ic(t.value)), fe = r(() => ac(t.value)), pe = r(() => $(t.value).filterOptionsSortDescription), me = r(() => $(t.value).filterOptionsSortTooltip), he = r(() => !$(t.value).filterSearch), ge = r(() => $(t.value).emptyFilterResultsRenderer), _e = r(() => $(t.value).filterOptionsRenderer), ve = r(() => $(t.value).filterHeaderRenderer), ye = r(() => $(t.value).filterFooterRenderer), be = r(() => de.value ? H.value.length >= de.value : !1), xe = r(() => re.value.filter((e) => e != null && !H.value.includes(e))), q = r(() => ee.value[W.value]), Se = r(() => I.value[W.value]), J = r(() => uc(t.value)), Ce = () => new Set([W.value, ...cc(t.value)]), we = (e, t) => {
|
|
5026
5019
|
let n = new Set(e), r = new Set(t);
|
|
5027
5020
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5028
|
-
},
|
|
5021
|
+
}, Y = O([]), Te = r(() => re.value.length === 1 && re.value[0] === null && H.value.length === 0), Ee = (e = !1) => {
|
|
5029
5022
|
if (J.value) return;
|
|
5030
5023
|
let n = [];
|
|
5031
|
-
if (
|
|
5024
|
+
if (B.value && s.value) {
|
|
5032
5025
|
let e = s.value.getAdvancedFilterModel();
|
|
5033
|
-
n = Hc(
|
|
5026
|
+
n = Hc(W.value, e);
|
|
5034
5027
|
} else n = Nc(t.value, u.value);
|
|
5035
|
-
e ? H.value = n : H.value = Array.from(new Set([...g(
|
|
5036
|
-
},
|
|
5028
|
+
e ? H.value = n : H.value = Array.from(new Set([...g(W.value), ...n]));
|
|
5029
|
+
}, De = (e) => {
|
|
5037
5030
|
let t = (n) => {
|
|
5038
5031
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
5039
5032
|
return !1;
|
|
5040
5033
|
};
|
|
5041
|
-
return t(
|
|
5042
|
-
},
|
|
5043
|
-
let n = H.value.includes(e) ||
|
|
5034
|
+
return t(Y.value);
|
|
5035
|
+
}, Oe = (e) => [...e].sort((e, t) => {
|
|
5036
|
+
let n = H.value.includes(e) || De(e), r = H.value.includes(t) || De(t);
|
|
5044
5037
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5045
|
-
}),
|
|
5038
|
+
}), ke = async (e = !1, n = !1) => {
|
|
5046
5039
|
if (!s.value || o?.value) return;
|
|
5047
|
-
let r = C.value[
|
|
5048
|
-
if (
|
|
5040
|
+
let r = C.value[W.value] ?? !1, i = p.value[W.value] !== !0, a = (x(W.value) || []).length === 0, c = e && i && (r || n || a);
|
|
5041
|
+
if (B.value) {
|
|
5049
5042
|
if (_.value && c) {
|
|
5050
5043
|
let e = await l(t.value, {
|
|
5051
5044
|
api: s.value,
|
|
5052
5045
|
filterModel: u.value ?? void 0,
|
|
5053
|
-
useStaged:
|
|
5046
|
+
useStaged: G.value
|
|
5054
5047
|
});
|
|
5055
|
-
S(
|
|
5048
|
+
S(W.value, e), C.value[W.value] = !1, pt();
|
|
5056
5049
|
}
|
|
5057
5050
|
return;
|
|
5058
5051
|
}
|
|
@@ -5062,71 +5055,71 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5062
5055
|
d.refreshFilterValues();
|
|
5063
5056
|
return;
|
|
5064
5057
|
}
|
|
5065
|
-
S(
|
|
5058
|
+
S(W.value, d.getFilterValues()), C.value[W.value] = !1;
|
|
5066
5059
|
}
|
|
5067
|
-
},
|
|
5068
|
-
let t = h(
|
|
5069
|
-
return !t && J.value && e && (t =
|
|
5070
|
-
},
|
|
5060
|
+
}, Ae = (e) => {
|
|
5061
|
+
let t = h(W.value, e);
|
|
5062
|
+
return !t && J.value && e && (t = Je(e)), t;
|
|
5063
|
+
}, je = (e) => e?.field ?? e?.colField, Me = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Ve(e.value).value : null : e.metadata.rawValue : e.rawValue, Ne = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, Pe = (e, t) => {
|
|
5071
5064
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
5072
5065
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
5073
5066
|
return n ? {
|
|
5074
5067
|
...e,
|
|
5075
5068
|
label: String(e.metadata?.[n])
|
|
5076
5069
|
} : e;
|
|
5077
|
-
},
|
|
5078
|
-
let n =
|
|
5070
|
+
}, Fe = (e, t) => {
|
|
5071
|
+
let n = ue.value, r = t, i = je(t);
|
|
5079
5072
|
if (i && J.value) {
|
|
5080
5073
|
let e = s.value?.getColumnDef(i);
|
|
5081
|
-
n = e ? rc(e) ?? n : n, r =
|
|
5074
|
+
n = e ? rc(e) ?? n : n, r = Pe(t, e ?? void 0);
|
|
5082
5075
|
}
|
|
5083
5076
|
return n ? n({
|
|
5084
|
-
value:
|
|
5077
|
+
value: Ne(e, r),
|
|
5085
5078
|
context: r
|
|
5086
5079
|
}) : r?.label || e;
|
|
5087
|
-
},
|
|
5080
|
+
}, Ie = (e) => Fe(e, Ae(e)), Le = (e) => {
|
|
5088
5081
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
5089
|
-
let n = h(
|
|
5082
|
+
let n = h(W.value, e);
|
|
5090
5083
|
return n == null || n.label == null;
|
|
5091
|
-
},
|
|
5084
|
+
}, Re = (e) => Te.value || h(W.value, e)?.isSelectable === !1 ? !0 : fe.value ? !1 : be.value && !H.value.includes(e), ze = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", Be = r(() => $a(W.value, $(t.value).queryColIds, (e) => e === W.value && se.value || ze(e))), Ve = (e) => {
|
|
5092
5085
|
if (!e.startsWith("__")) return { value: e };
|
|
5093
5086
|
let t = e.slice(2).split("__");
|
|
5094
5087
|
return t.length < 2 ? { value: e } : {
|
|
5095
5088
|
field: t[0],
|
|
5096
5089
|
value: t[1]
|
|
5097
5090
|
};
|
|
5098
|
-
},
|
|
5099
|
-
let t =
|
|
5100
|
-
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(
|
|
5101
|
-
},
|
|
5091
|
+
}, He = (e) => vo(e, X()), Ue = (e) => {
|
|
5092
|
+
let t = Ve(e.value), n = { ...e };
|
|
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(Ue)), n;
|
|
5094
|
+
}, We = r(() => [...c.filterValueMap.value[W.value] || [], ...c.filterValueSelectedMetadataMap.value[W.value] || []].map((e) => e && Ue(e))), X = () => We.value, Ge = (e, t) => {
|
|
5102
5095
|
for (let n of e) {
|
|
5103
5096
|
if (!n) continue;
|
|
5104
5097
|
if (t(n)) return n;
|
|
5105
|
-
let e = n.children ?
|
|
5098
|
+
let e = n.children ? Ge(n.children, t) : void 0;
|
|
5106
5099
|
if (e) return e;
|
|
5107
5100
|
}
|
|
5108
|
-
},
|
|
5101
|
+
}, Z = (e, t) => {
|
|
5109
5102
|
for (let n of e) {
|
|
5110
5103
|
if (!n) continue;
|
|
5111
5104
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
5112
|
-
let e = n.children ?
|
|
5105
|
+
let e = n.children ? Z(n.children, t) : void 0;
|
|
5113
5106
|
if (e) return e;
|
|
5114
5107
|
}
|
|
5115
|
-
},
|
|
5108
|
+
}, Ke = (e, t) => yo(X(), e, t), Je = (e) => {
|
|
5116
5109
|
let t = (n) => {
|
|
5117
5110
|
if (n) {
|
|
5118
|
-
if (String(
|
|
5111
|
+
if (String(Me(n) ?? Ve(n.value).value) === e) return n;
|
|
5119
5112
|
for (let e of n.children || []) {
|
|
5120
5113
|
let n = t(e);
|
|
5121
5114
|
if (n) return n;
|
|
5122
5115
|
}
|
|
5123
5116
|
}
|
|
5124
5117
|
};
|
|
5125
|
-
for (let e of
|
|
5118
|
+
for (let e of X()) {
|
|
5126
5119
|
let n = t(e);
|
|
5127
5120
|
if (n) return n;
|
|
5128
5121
|
}
|
|
5129
|
-
},
|
|
5122
|
+
}, Ye = (e) => {
|
|
5130
5123
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
5131
5124
|
if (t.length < 4) return;
|
|
5132
5125
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -5145,48 +5138,48 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5145
5138
|
}],
|
|
5146
5139
|
totalChildCount: 1
|
|
5147
5140
|
};
|
|
5141
|
+
}, Xe = (e) => {
|
|
5142
|
+
let n = X(), r = Ge(n, (t) => t.value === e.id);
|
|
5143
|
+
return r?.children?.length ? r : Z(n, e.id) || (r && je(r) === lc(t.value) ? r : Ye(e.id) || r);
|
|
5148
5144
|
}, Ze = (e) => {
|
|
5149
|
-
let n = Ge(), r = Z(n, (t) => t.value === e.id);
|
|
5150
|
-
return r?.children?.length ? r : Ke(n, e.id) || (r && Me(r) === lc(t.value) ? r : Xe(e.id) || r);
|
|
5151
|
-
}, Qe = (e) => {
|
|
5152
5145
|
if (!J.value) return;
|
|
5153
|
-
let t = c.filterValueSelectedMetadataMap.value[
|
|
5146
|
+
let t = c.filterValueSelectedMetadataMap.value[W.value] || [], n = /* @__PURE__ */ new Map();
|
|
5154
5147
|
for (let e of t) e && n.set(e.value, e);
|
|
5155
5148
|
for (let t of e) {
|
|
5156
5149
|
if (t.state !== "selected") continue;
|
|
5157
|
-
let e =
|
|
5150
|
+
let e = Xe(t);
|
|
5158
5151
|
e && n.set(e.value, e);
|
|
5159
5152
|
}
|
|
5160
|
-
c.filterValueSelectedMetadataMap.value[
|
|
5161
|
-
},
|
|
5153
|
+
c.filterValueSelectedMetadataMap.value[W.value] = [...n.values()];
|
|
5154
|
+
}, Qe = () => {
|
|
5162
5155
|
let e = /* @__PURE__ */ new Set();
|
|
5163
|
-
for (let t of
|
|
5156
|
+
for (let t of Y.value) {
|
|
5164
5157
|
if (t.state !== "selected") continue;
|
|
5165
|
-
let n =
|
|
5158
|
+
let n = Xe(t);
|
|
5166
5159
|
n && e.add(n.value);
|
|
5167
5160
|
}
|
|
5168
|
-
return [...e].filter((e) => !
|
|
5169
|
-
},
|
|
5170
|
-
let n = h(
|
|
5161
|
+
return [...e].filter((e) => !re.value.includes(e));
|
|
5162
|
+
}, $e = (e) => {
|
|
5163
|
+
let n = h(W.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = pe.value ? "suggestions" : null;
|
|
5171
5164
|
n?.isPreference && (i = "preferences");
|
|
5172
5165
|
let a = null, o = n?.matchedValue;
|
|
5173
5166
|
o ? a = eo({
|
|
5174
|
-
getDisplayName:
|
|
5167
|
+
getDisplayName: ze,
|
|
5175
5168
|
matchedField: n?.matchedField,
|
|
5176
5169
|
matchedValue: o,
|
|
5177
5170
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5178
|
-
}) : n?.subText ? a = n.subText :
|
|
5171
|
+
}) : n?.subText ? a = n.subText : je(n) && J.value && !r && (a = ze(je(n)));
|
|
5179
5172
|
let l, d, f;
|
|
5180
5173
|
if (r && (l = (n.children ?? []).map((e) => {
|
|
5181
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5174
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = ze(e.matchedField);
|
|
5182
5175
|
return {
|
|
5183
5176
|
...e.menuOption,
|
|
5184
5177
|
id: e.value,
|
|
5185
|
-
text:
|
|
5178
|
+
text: Fe(e.value, e) || "",
|
|
5186
5179
|
searchText: t,
|
|
5187
5180
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5188
5181
|
subduedText: e.subduedText,
|
|
5189
|
-
disabled: e.menuOption?.disabled ??
|
|
5182
|
+
disabled: e.menuOption?.disabled ?? Re(e.value),
|
|
5190
5183
|
context: e,
|
|
5191
5184
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5192
5185
|
};
|
|
@@ -5197,23 +5190,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5197
5190
|
let r = n?.offset ?? l.length, i = await c.filterStoreHandler.value({
|
|
5198
5191
|
api: s.value,
|
|
5199
5192
|
colDef: t.value,
|
|
5200
|
-
field:
|
|
5193
|
+
field: W.value,
|
|
5201
5194
|
filterModel: u.value ?? void 0,
|
|
5202
|
-
query:
|
|
5195
|
+
query: ae.value || void 0,
|
|
5203
5196
|
offset: r,
|
|
5204
5197
|
parentId: e,
|
|
5205
5198
|
reason: "child-load-more"
|
|
5206
5199
|
});
|
|
5207
5200
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
5208
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5201
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = ze(e.matchedField);
|
|
5209
5202
|
return {
|
|
5210
5203
|
...e.menuOption,
|
|
5211
5204
|
id: e.value,
|
|
5212
|
-
text:
|
|
5205
|
+
text: Fe(e.value, e) || "",
|
|
5213
5206
|
searchText: t,
|
|
5214
5207
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5215
5208
|
subduedText: e.subduedText,
|
|
5216
|
-
disabled: e.menuOption?.disabled ??
|
|
5209
|
+
disabled: e.menuOption?.disabled ?? Re(e.value),
|
|
5217
5210
|
context: e,
|
|
5218
5211
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5219
5212
|
};
|
|
@@ -5223,70 +5216,70 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5223
5216
|
return {
|
|
5224
5217
|
...n?.menuOption,
|
|
5225
5218
|
id: e || "",
|
|
5226
|
-
text:
|
|
5219
|
+
text: Ie(e) || "",
|
|
5227
5220
|
searchText: o,
|
|
5228
5221
|
subduedText: n?.subduedText,
|
|
5229
5222
|
subText: a || void 0,
|
|
5230
5223
|
groupingLabel: i || "",
|
|
5231
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
5224
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Re(e)),
|
|
5232
5225
|
context: n || { value: e || "" },
|
|
5233
5226
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5234
5227
|
children: l,
|
|
5235
5228
|
totalChildCount: d,
|
|
5236
5229
|
handleSeeMore: f
|
|
5237
5230
|
};
|
|
5238
|
-
},
|
|
5239
|
-
let e = [...J.value ?
|
|
5240
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
5241
|
-
}),
|
|
5231
|
+
}, et = r(() => {
|
|
5232
|
+
let e = [...J.value ? Qe() : H.value.filter((e) => e != null && e !== "" && !re.value.includes(e)), ...re.value];
|
|
5233
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Le(e)).map($e);
|
|
5234
|
+
}), tt = r({
|
|
5242
5235
|
get: () => J.value ? [] : H.value.map((e) => {
|
|
5243
|
-
let t = h(
|
|
5236
|
+
let t = h(W.value, e), n = je(t), r = n ? ze(n) : void 0;
|
|
5244
5237
|
return {
|
|
5245
5238
|
id: e,
|
|
5246
|
-
text:
|
|
5239
|
+
text: Ie(e),
|
|
5247
5240
|
subText: r,
|
|
5248
5241
|
context: t || { value: e || "" }
|
|
5249
5242
|
};
|
|
5250
5243
|
}),
|
|
5251
5244
|
set: (e) => {
|
|
5252
5245
|
if (J.value) {
|
|
5253
|
-
if (e.length === 0 && !
|
|
5254
|
-
|
|
5246
|
+
if (e.length === 0 && !K.value && D.value && !G.value) {
|
|
5247
|
+
ut([]);
|
|
5255
5248
|
return;
|
|
5256
5249
|
}
|
|
5257
5250
|
i?.();
|
|
5258
5251
|
return;
|
|
5259
5252
|
}
|
|
5260
|
-
H.value = e.map((e) => e.id), (e.length === 0 && !
|
|
5261
|
-
!H.value.includes(e) &&
|
|
5253
|
+
H.value = e.map((e) => e.id), (e.length === 0 && !K.value || !D.value || G.value) && (rt(), L.value.forEach((e) => {
|
|
5254
|
+
!H.value.includes(e) && z.value === W.value && R(e);
|
|
5262
5255
|
})), i?.();
|
|
5263
5256
|
}
|
|
5264
|
-
}),
|
|
5257
|
+
}), nt = (e) => {
|
|
5265
5258
|
let t = {};
|
|
5266
5259
|
for (let n of e) {
|
|
5267
5260
|
if (n === null) continue;
|
|
5268
|
-
let e =
|
|
5261
|
+
let e = je(h(W.value, n)) || W.value;
|
|
5269
5262
|
t[e] || (t[e] = []), t[e].push(n);
|
|
5270
5263
|
}
|
|
5271
5264
|
return t;
|
|
5272
|
-
},
|
|
5265
|
+
}, rt = async (e, n, r) => {
|
|
5273
5266
|
if (!s.value) return;
|
|
5274
5267
|
if (e !== void 0 && n !== void 0) {
|
|
5275
|
-
let r = e ||
|
|
5276
|
-
if (
|
|
5268
|
+
let r = e || W.value, i = n;
|
|
5269
|
+
if (B.value) {
|
|
5277
5270
|
let e = bc(r, i || []);
|
|
5278
|
-
if (
|
|
5271
|
+
if (G.value) {
|
|
5279
5272
|
let t = d.value;
|
|
5280
|
-
d.value = Bc(t, e, r),
|
|
5273
|
+
d.value = Bc(t, e, r), k(new Set([r]));
|
|
5281
5274
|
return;
|
|
5282
5275
|
}
|
|
5283
5276
|
let t = Bc(s.value.getAdvancedFilterModel(), e, r);
|
|
5284
5277
|
v(() => {
|
|
5285
5278
|
s.value?.setAdvancedFilterModel(t);
|
|
5286
|
-
}),
|
|
5279
|
+
}), k(new Set([r]));
|
|
5287
5280
|
return;
|
|
5288
5281
|
}
|
|
5289
|
-
if (
|
|
5282
|
+
if (G.value) {
|
|
5290
5283
|
let e = await Mc(s.value, t.value, i);
|
|
5291
5284
|
d.value = {
|
|
5292
5285
|
...d.value,
|
|
@@ -5300,9 +5293,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5300
5293
|
});
|
|
5301
5294
|
return;
|
|
5302
5295
|
}
|
|
5303
|
-
let i =
|
|
5304
|
-
if (
|
|
5305
|
-
let e =
|
|
5296
|
+
let i = nt(H.value), o = $(t.value);
|
|
5297
|
+
if (B.value) {
|
|
5298
|
+
let e = G.value ? d.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5306
5299
|
if (J.value) {
|
|
5307
5300
|
let e = cc(t.value), r = [];
|
|
5308
5301
|
for (let t of e) {
|
|
@@ -5326,8 +5319,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5326
5319
|
} : e;
|
|
5327
5320
|
}
|
|
5328
5321
|
} else {
|
|
5329
|
-
let t = H.value.length > 0 ? H.value : null, r = bc(
|
|
5330
|
-
n = Bc(n, r,
|
|
5322
|
+
let t = H.value.length > 0 ? H.value : null, r = bc(W.value, t || []);
|
|
5323
|
+
n = Bc(n, r, W.value);
|
|
5331
5324
|
let i = !1;
|
|
5332
5325
|
if (a?.value) {
|
|
5333
5326
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -5339,109 +5332,109 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5339
5332
|
n = Bc(n, r, t);
|
|
5340
5333
|
}
|
|
5341
5334
|
}
|
|
5342
|
-
let s = H.value.filter((e) => e !== null), c = Hc(
|
|
5335
|
+
let s = H.value.filter((e) => e !== null), c = Hc(W.value, e), l = new Set(c), u = new Set(s);
|
|
5343
5336
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5344
5337
|
}
|
|
5345
5338
|
if (r?.skipIfUnchanged && zc(e, n)) return;
|
|
5346
|
-
let c = J.value ?
|
|
5347
|
-
if (
|
|
5339
|
+
let c = J.value ? Ce() : new Set([W.value]);
|
|
5340
|
+
if (G.value) d.value = n, k(c);
|
|
5348
5341
|
else {
|
|
5349
5342
|
let e = n;
|
|
5350
5343
|
v(() => {
|
|
5351
5344
|
s.value?.setAdvancedFilterModel(e);
|
|
5352
|
-
}),
|
|
5345
|
+
}), k(c);
|
|
5353
5346
|
}
|
|
5354
5347
|
return;
|
|
5355
5348
|
}
|
|
5356
5349
|
let c = H.value.length > 0 ? H.value : null;
|
|
5357
5350
|
if (r?.skipIfUnchanged) {
|
|
5358
5351
|
let e = Nc(t.value, s.value.getFilterModel());
|
|
5359
|
-
if (
|
|
5352
|
+
if (we(H.value, e)) return;
|
|
5360
5353
|
}
|
|
5361
|
-
if (
|
|
5354
|
+
if (G.value) {
|
|
5362
5355
|
let e = await Mc(s.value, t.value, c);
|
|
5363
5356
|
d.value = {
|
|
5364
5357
|
...d.value,
|
|
5365
|
-
[
|
|
5358
|
+
[W.value]: e
|
|
5366
5359
|
};
|
|
5367
5360
|
return;
|
|
5368
5361
|
}
|
|
5369
5362
|
let l = await Mc(s.value, t.value, c);
|
|
5370
|
-
s.value.setColumnFilterModel(
|
|
5363
|
+
s.value.setColumnFilterModel(W.value, l).then(() => {
|
|
5371
5364
|
s.value && s.value.onFilterChanged();
|
|
5372
5365
|
});
|
|
5373
|
-
},
|
|
5374
|
-
if (e &&
|
|
5375
|
-
let r = n || cc(t.value)[0] ||
|
|
5376
|
-
|
|
5366
|
+
}, it = (e, n) => {
|
|
5367
|
+
if (e && fe.value ? H.value = [e] : e && !H.value.includes(e) && (H.value = [...H.value, e]), J.value && e) {
|
|
5368
|
+
let r = n || cc(t.value)[0] || W.value, i = e.startsWith("__") ? e : Ke(r, e) || e;
|
|
5369
|
+
Y.value.find((e) => e.id === i) || (Y.value = [...Y.value, {
|
|
5377
5370
|
id: i,
|
|
5378
5371
|
state: "selected"
|
|
5379
5372
|
}]);
|
|
5380
5373
|
}
|
|
5381
|
-
(!D.value ||
|
|
5382
|
-
},
|
|
5374
|
+
(!D.value || G.value) && (J.value && e ? ut(Y.value) : n && n !== W.value ? rt(n, [e]) : rt()), i?.();
|
|
5375
|
+
}, at = (e, n) => {
|
|
5383
5376
|
if (H.value = H.value.filter((t) => t !== e), J.value && e) {
|
|
5384
|
-
let r = n || cc(t.value)[0] ||
|
|
5385
|
-
|
|
5377
|
+
let r = n || cc(t.value)[0] || W.value, i = e.startsWith("__") ? e : Ke(r, e) || e;
|
|
5378
|
+
Y.value = Y.value.filter((e) => e.id !== i);
|
|
5386
5379
|
}
|
|
5387
|
-
(!D.value ||
|
|
5380
|
+
(!D.value || G.value) && (J.value && e ? ut(Y.value) : n && n !== W.value ? rt(n, null) : rt()), i?.();
|
|
5381
|
+
}, ot = () => {
|
|
5382
|
+
le.value = Oe(x(W.value)), K.value = !0;
|
|
5388
5383
|
}, st = () => {
|
|
5389
|
-
|
|
5390
|
-
}, ct = () => {
|
|
5391
|
-
ce.value = !1, ue.value = [], ie.value = "", !o?.value && D.value && !K.value && (J.value ? dt(Te.value, { skipIfUnchanged: !0 }) : it(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5392
|
-
}, lt = async (e) => {
|
|
5384
|
+
K.value = !1, le.value = [], ae.value = "", !o?.value && D.value && !G.value && (J.value ? ut(Y.value, { skipIfUnchanged: !0 }) : rt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5385
|
+
}, ct = async (e) => {
|
|
5393
5386
|
if (!s.value) return;
|
|
5394
|
-
let n =
|
|
5395
|
-
r && (
|
|
5387
|
+
let n = re.value.length, r = !e.parentId;
|
|
5388
|
+
r && (ce.value = !0);
|
|
5396
5389
|
try {
|
|
5397
5390
|
await l(t.value, {
|
|
5398
5391
|
api: s.value,
|
|
5399
5392
|
filterModel: u.value ?? void 0,
|
|
5400
5393
|
offset: e.offset ?? n,
|
|
5401
5394
|
parentId: e.parentId,
|
|
5402
|
-
useStaged:
|
|
5395
|
+
useStaged: G.value
|
|
5403
5396
|
});
|
|
5404
5397
|
} finally {
|
|
5405
|
-
r && (
|
|
5398
|
+
r && (ce.value = !1);
|
|
5406
5399
|
}
|
|
5407
|
-
},
|
|
5400
|
+
}, lt = (e, n) => So({
|
|
5408
5401
|
baseModel: n,
|
|
5409
5402
|
colDef: t.value,
|
|
5410
|
-
options:
|
|
5403
|
+
options: X(),
|
|
5411
5404
|
state: e
|
|
5412
|
-
}),
|
|
5413
|
-
if (!s.value || !J.value || (
|
|
5414
|
-
let r =
|
|
5405
|
+
}), ut = (e, n) => {
|
|
5406
|
+
if (!s.value || !J.value || (Y.value = e, Ze(e), cc(t.value).length === 0)) return !1;
|
|
5407
|
+
let r = G.value ? d.value : s.value.getAdvancedFilterModel(), a = lt(e, r);
|
|
5415
5408
|
if (n?.skipIfUnchanged && zc(r, a)) return !1;
|
|
5416
|
-
if (
|
|
5409
|
+
if (G.value) d.value = a;
|
|
5417
5410
|
else {
|
|
5418
5411
|
let e = a;
|
|
5419
5412
|
v(() => {
|
|
5420
5413
|
s.value?.setAdvancedFilterModel(e);
|
|
5421
5414
|
});
|
|
5422
5415
|
}
|
|
5423
|
-
return
|
|
5424
|
-
},
|
|
5416
|
+
return k(Ce()), i?.(), !0;
|
|
5417
|
+
}, dt = (e) => {
|
|
5425
5418
|
if (!J.value || !cc(t.value).length) return;
|
|
5426
5419
|
let n = wo({
|
|
5427
5420
|
colDef: t.value,
|
|
5428
5421
|
model: e,
|
|
5429
|
-
options:
|
|
5422
|
+
options: X()
|
|
5430
5423
|
});
|
|
5431
|
-
JSON.stringify(
|
|
5432
|
-
},
|
|
5433
|
-
let { field: t, value: n } =
|
|
5434
|
-
return t ?
|
|
5435
|
-
}) : !1,
|
|
5436
|
-
!J.value || !
|
|
5424
|
+
JSON.stringify(Y.value) !== JSON.stringify(n) && (Y.value = n), Ze(n);
|
|
5425
|
+
}, ft = () => J.value ? Y.value.some((e) => {
|
|
5426
|
+
let { field: t, value: n } = He(e.id);
|
|
5427
|
+
return t ? Ke(t, n) !== e.id : !1;
|
|
5428
|
+
}) : !1, pt = () => {
|
|
5429
|
+
!J.value || !B.value || ft() && dt(u.value);
|
|
5437
5430
|
};
|
|
5438
|
-
return
|
|
5439
|
-
J.value && (
|
|
5440
|
-
}, { deep: !0 }),
|
|
5441
|
-
e &&
|
|
5442
|
-
}),
|
|
5443
|
-
if (
|
|
5444
|
-
if (
|
|
5431
|
+
return V(Y, (e) => {
|
|
5432
|
+
J.value && (Ze(e), !(D.value && !G.value) && ut(e));
|
|
5433
|
+
}, { deep: !0 }), V(() => C.value[W.value], (e) => {
|
|
5434
|
+
e && U.value && ke(!0);
|
|
5435
|
+
}), V(() => d.value, () => {
|
|
5436
|
+
if (G.value) {
|
|
5437
|
+
if (B.value) {
|
|
5445
5438
|
let e = [], n = d.value;
|
|
5446
5439
|
if (J.value) {
|
|
5447
5440
|
let r = cc(t.value);
|
|
@@ -5449,94 +5442,92 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5449
5442
|
let r = Hc(t, n);
|
|
5450
5443
|
e.push(...r);
|
|
5451
5444
|
}
|
|
5452
|
-
} else e = Hc(
|
|
5445
|
+
} else e = Hc(W.value, n);
|
|
5453
5446
|
H.value = e;
|
|
5454
5447
|
return;
|
|
5455
5448
|
}
|
|
5456
|
-
oe.value === "agSetColumnFilter" ? H.value = d.value?.[
|
|
5449
|
+
oe.value === "agSetColumnFilter" ? H.value = d.value?.[W.value]?.values || [] : oe.value === "agMultiColumnFilter" ? H.value = d.value?.[W.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${oe.value} is not yet supported.`);
|
|
5457
5450
|
}
|
|
5458
|
-
}),
|
|
5459
|
-
if (
|
|
5451
|
+
}), V(() => u.value, () => {
|
|
5452
|
+
if (G.value) return;
|
|
5460
5453
|
if (J.value) {
|
|
5461
|
-
|
|
5454
|
+
B.value && dt(u.value);
|
|
5462
5455
|
return;
|
|
5463
5456
|
}
|
|
5464
|
-
if (
|
|
5465
|
-
let e = u.value, t = Hc(
|
|
5466
|
-
|
|
5457
|
+
if (B.value) {
|
|
5458
|
+
let e = u.value, t = Hc(W.value, e);
|
|
5459
|
+
Ee(H.value.some((e) => e !== null && !t.includes(e)));
|
|
5467
5460
|
return;
|
|
5468
5461
|
}
|
|
5469
5462
|
let e = Nc(t.value, u.value);
|
|
5470
|
-
|
|
5471
|
-
}, { deep: !0 }),
|
|
5472
|
-
H.value = [],
|
|
5473
|
-
}),
|
|
5474
|
-
e && _.value && (C.value[
|
|
5475
|
-
}, { immediate: !0 }),
|
|
5476
|
-
|
|
5477
|
-
await
|
|
5478
|
-
}, 2e3) : await
|
|
5479
|
-
}), qe(() =>
|
|
5480
|
-
|
|
5463
|
+
Ee(H.value.some((t) => !e.includes(t)));
|
|
5464
|
+
}, { deep: !0 }), V(() => f.value, () => {
|
|
5465
|
+
H.value = [], Y.value = [];
|
|
5466
|
+
}), V(() => s.value, (e) => {
|
|
5467
|
+
e && _.value && (C.value[W.value] = !0);
|
|
5468
|
+
}, { immediate: !0 }), V(() => ne.value, async () => {
|
|
5469
|
+
U.value && (G.value ? setTimeout(async () => {
|
|
5470
|
+
await ke(!0);
|
|
5471
|
+
}, 2e3) : await ke(!0)), Ee();
|
|
5472
|
+
}), qe(() => ae.value, async () => {
|
|
5473
|
+
await ke(!0, !0);
|
|
5481
5474
|
}, { debounce: 300 }), w(() => {
|
|
5482
|
-
|
|
5475
|
+
j(W.value);
|
|
5483
5476
|
let e = cc(t.value);
|
|
5484
|
-
if (e.length &&
|
|
5485
|
-
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value &&
|
|
5477
|
+
if (e.length && A(W.value, e), Ee(), J.value && B.value && dt(u.value), o?.value && _.value && s.value) {
|
|
5478
|
+
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value && B.value ? cc(t.value).some((e) => Hc(e, u.value).length > 0) : H.value.length > 0;
|
|
5486
5479
|
e && n && l(t.value, {
|
|
5487
5480
|
api: s.value,
|
|
5488
5481
|
filterModel: u.value ?? void 0
|
|
5489
5482
|
});
|
|
5490
5483
|
}
|
|
5491
|
-
J.value || $(t.value).metadataDisplayFields?.length && H.value.some((e) =>
|
|
5484
|
+
J.value || $(t.value).metadataDisplayFields?.length && H.value.some((e) => Le(e)) && ke(!0, !0);
|
|
5492
5485
|
}), T(() => {
|
|
5493
|
-
|
|
5486
|
+
M(W.value), D.value && !G.value && (J.value ? ut(Y.value, { skipIfUnchanged: !0 }) : rt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5494
5487
|
}), {
|
|
5495
5488
|
selectedValues: H,
|
|
5496
|
-
filterValues:
|
|
5497
|
-
isLoading:
|
|
5498
|
-
isSeeMoreLoading:
|
|
5499
|
-
filterSearchText:
|
|
5500
|
-
|
|
5501
|
-
belowFilterSearchMinLength: ae,
|
|
5502
|
-
rowsLoading: ne,
|
|
5489
|
+
filterValues: re,
|
|
5490
|
+
isLoading: ie,
|
|
5491
|
+
isSeeMoreLoading: ce,
|
|
5492
|
+
filterSearchText: ae,
|
|
5493
|
+
rowsLoading: te,
|
|
5503
5494
|
gridApi: s,
|
|
5504
|
-
filterField:
|
|
5495
|
+
filterField: W,
|
|
5505
5496
|
filterType: oe,
|
|
5506
5497
|
filterDisplayName: se,
|
|
5507
|
-
isInFilterPanel:
|
|
5508
|
-
maxSelectableValues:
|
|
5509
|
-
isSingleSelect:
|
|
5510
|
-
selectionLimitReached:
|
|
5511
|
-
suggestedValues:
|
|
5512
|
-
displayedFilterValues:
|
|
5513
|
-
selectedFilterValues:
|
|
5514
|
-
showSearchBar:
|
|
5515
|
-
filterSearchPlaceholder:
|
|
5516
|
-
emptyFilterResultsRenderer:
|
|
5517
|
-
filterOptionsRenderer:
|
|
5518
|
-
filterHeaderRenderer:
|
|
5519
|
-
filterFooterRenderer:
|
|
5520
|
-
filterOptionsSortDescription:
|
|
5521
|
-
filterOptionsSortTooltip:
|
|
5522
|
-
totalOptionCount:
|
|
5523
|
-
hasMoreOptions:
|
|
5498
|
+
isInFilterPanel: G,
|
|
5499
|
+
maxSelectableValues: de,
|
|
5500
|
+
isSingleSelect: fe,
|
|
5501
|
+
selectionLimitReached: be,
|
|
5502
|
+
suggestedValues: xe,
|
|
5503
|
+
displayedFilterValues: et,
|
|
5504
|
+
selectedFilterValues: tt,
|
|
5505
|
+
showSearchBar: he,
|
|
5506
|
+
filterSearchPlaceholder: Be,
|
|
5507
|
+
emptyFilterResultsRenderer: ge,
|
|
5508
|
+
filterOptionsRenderer: _e,
|
|
5509
|
+
filterHeaderRenderer: ve,
|
|
5510
|
+
filterFooterRenderer: ye,
|
|
5511
|
+
filterOptionsSortDescription: pe,
|
|
5512
|
+
filterOptionsSortTooltip: me,
|
|
5513
|
+
totalOptionCount: q,
|
|
5514
|
+
hasMoreOptions: Se,
|
|
5524
5515
|
isAggregate: J,
|
|
5525
|
-
cascadeSelectionState:
|
|
5516
|
+
cascadeSelectionState: Y,
|
|
5526
5517
|
filterValueContext: h,
|
|
5527
|
-
formatDisplayValue:
|
|
5528
|
-
resolvedFilterValueContext:
|
|
5529
|
-
isUnresolvedMetadataValue:
|
|
5530
|
-
getLatestFilterValues:
|
|
5531
|
-
addSelectedValue:
|
|
5532
|
-
removeSelectedValue:
|
|
5533
|
-
handleDropdownOpen:
|
|
5534
|
-
handleDropdownClosed:
|
|
5535
|
-
handleSeeMore:
|
|
5536
|
-
handleCascadeSelectionState:
|
|
5537
|
-
getColDisplayNameForField:
|
|
5538
|
-
disableFilterValue:
|
|
5539
|
-
updateFilterModelWithSelectedValues:
|
|
5518
|
+
formatDisplayValue: Ie,
|
|
5519
|
+
resolvedFilterValueContext: Ae,
|
|
5520
|
+
isUnresolvedMetadataValue: Le,
|
|
5521
|
+
getLatestFilterValues: ke,
|
|
5522
|
+
addSelectedValue: it,
|
|
5523
|
+
removeSelectedValue: at,
|
|
5524
|
+
handleDropdownOpen: ot,
|
|
5525
|
+
handleDropdownClosed: st,
|
|
5526
|
+
handleSeeMore: ct,
|
|
5527
|
+
handleCascadeSelectionState: ut,
|
|
5528
|
+
getColDisplayNameForField: ze,
|
|
5529
|
+
disableFilterValue: Re,
|
|
5530
|
+
updateFilterModelWithSelectedValues: rt
|
|
5540
5531
|
};
|
|
5541
5532
|
}, il = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5542
5533
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5659,7 +5650,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5659
5650
|
}, z = () => {
|
|
5660
5651
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5661
5652
|
};
|
|
5662
|
-
|
|
5653
|
+
V(f, () => {
|
|
5663
5654
|
if (!(g.value && x.value)) {
|
|
5664
5655
|
_.value.clear();
|
|
5665
5656
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
@@ -5670,17 +5661,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5670
5661
|
label: N(e),
|
|
5671
5662
|
isSelected: _.value.has(e),
|
|
5672
5663
|
isAvailable: !b.value.has(e)
|
|
5673
|
-
}))),
|
|
5664
|
+
}))), B = r(() => te.value ? ne.value.filter((e) => e.isSelected) : ne.value);
|
|
5674
5665
|
T(() => {
|
|
5675
5666
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5676
5667
|
});
|
|
5677
|
-
let
|
|
5668
|
+
let ie = r(() => _.value.size);
|
|
5678
5669
|
return n({
|
|
5679
5670
|
openForTest: () => {
|
|
5680
5671
|
P(), x.value = !0;
|
|
5681
5672
|
},
|
|
5682
5673
|
selectedValues: _
|
|
5683
|
-
}), (e, n) =>
|
|
5674
|
+
}), (e, n) => re((E(), o("div", {
|
|
5684
5675
|
ref_key: "triggerWrapper",
|
|
5685
5676
|
ref: S,
|
|
5686
5677
|
style: { "padding-bottom": "4px" },
|
|
@@ -5695,7 +5686,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5695
5686
|
id: C.value.label,
|
|
5696
5687
|
text: C.value.label,
|
|
5697
5688
|
"class-list": ["pv-menu-nested"],
|
|
5698
|
-
"secondary-text":
|
|
5689
|
+
"secondary-text": ie.value || void 0
|
|
5699
5690
|
}, null, 8, [
|
|
5700
5691
|
"id",
|
|
5701
5692
|
"text",
|
|
@@ -5709,8 +5700,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5709
5700
|
...I(w)
|
|
5710
5701
|
}
|
|
5711
5702
|
}, {
|
|
5712
|
-
default:
|
|
5713
|
-
x.value &&
|
|
5703
|
+
default: H(() => [
|
|
5704
|
+
x.value && B.value.length > 0 ? (E(), o("ul", al, [(E(!0), o(t, null, k(B.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5714
5705
|
key: 0,
|
|
5715
5706
|
"data-active": e.isSelected ? "true" : null
|
|
5716
5707
|
}, [u(za, {
|
|
@@ -5732,14 +5723,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5732
5723
|
"disable-interactive": !0,
|
|
5733
5724
|
style: { width: "100%" }
|
|
5734
5725
|
}, {
|
|
5735
|
-
label:
|
|
5726
|
+
label: H(() => [u(za, {
|
|
5736
5727
|
config: { variant: "checkbox" },
|
|
5737
5728
|
id: e.field,
|
|
5738
5729
|
text: e.label,
|
|
5739
5730
|
disabled: !0,
|
|
5740
5731
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5741
5732
|
}, null, 8, ["id", "text"])]),
|
|
5742
|
-
"tooltip-content":
|
|
5733
|
+
"tooltip-content": H(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5743
5734
|
_: 2
|
|
5744
5735
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5745
5736
|
x.value && te.value ? (E(), o("div", cl, [u(St, { variant: "dark" })])) : a("", !0),
|
|
@@ -5771,30 +5762,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5771
5762
|
"line-height": "1rem"
|
|
5772
5763
|
}
|
|
5773
5764
|
}, fl = {
|
|
5774
|
-
key: 2,
|
|
5775
|
-
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
5776
|
-
style: { "--inset-size": "8px" }
|
|
5777
|
-
}, pl = {
|
|
5778
5765
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
5779
5766
|
style: { "--inset-size": "8px" }
|
|
5780
|
-
},
|
|
5767
|
+
}, pl = {
|
|
5781
5768
|
class: "pv-inset-inline",
|
|
5782
5769
|
style: { "--inset-size": "8px" }
|
|
5783
|
-
},
|
|
5770
|
+
}, ml = {
|
|
5784
5771
|
key: 0,
|
|
5785
5772
|
class: "pv-full-width"
|
|
5786
|
-
},
|
|
5773
|
+
}, hl = {
|
|
5787
5774
|
key: 0,
|
|
5788
5775
|
class: "pv-flex-inline",
|
|
5789
5776
|
style: { "max-width": "100%" }
|
|
5790
|
-
},
|
|
5777
|
+
}, gl = {
|
|
5791
5778
|
role: "list",
|
|
5792
5779
|
class: "pv-flex",
|
|
5793
5780
|
style: {
|
|
5794
5781
|
"--flex-wrap": "wrap",
|
|
5795
5782
|
"max-width": "100%"
|
|
5796
5783
|
}
|
|
5797
|
-
},
|
|
5784
|
+
}, _l = { class: "pv-text-subdued pv-text-body-xxs" }, vl = 4, yl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
5798
5785
|
__name: "SetFilter",
|
|
5799
5786
|
props: {
|
|
5800
5787
|
enableFocusView: {
|
|
@@ -5819,137 +5806,137 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5819
5806
|
"handle-settings-icon"
|
|
5820
5807
|
],
|
|
5821
5808
|
setup(e, { emit: n }) {
|
|
5822
|
-
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,
|
|
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, rowsLoading: A, gridApi: j, filterField: N, filterDisplayName: ee, isInFilterPanel: L, suggestedValues: R, displayedFilterValues: z, selectedFilterValues: te, showSearchBar: ne, filterSearchPlaceholder: B, emptyFilterResultsRenderer: V, filterOptionsRenderer: re, filterHeaderRenderer: ie, filterFooterRenderer: U, filterOptionsSortDescription: ae, filterOptionsSortTooltip: W, filterValueContext: oe, formatDisplayValue: se, resolvedFilterValueContext: G, isUnresolvedMetadataValue: K, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: ue, handleDropdownOpen: de, handleDropdownClosed: fe, handleSeeMore: pe, getColDisplayNameForField: me, hasMoreOptions: he, totalOptionCount: ge, isAggregate: _e, cascadeSelectionState: ve } = rl({
|
|
5823
5810
|
filterColDef: F(d, "filterColDef"),
|
|
5824
5811
|
filterStyle: F(d, "filterStyle"),
|
|
5825
5812
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5826
5813
|
filterGroupStagedFields: x,
|
|
5827
5814
|
readOnly: F(d, "readOnly")
|
|
5828
|
-
}), { handleFocusUpdate:
|
|
5815
|
+
}), { handleFocusUpdate: ye, isFocused: be, removeFocus: xe, isFocusable: q, canRemoveFocus: Se } = Fs(), J = (e) => {
|
|
5829
5816
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5830
5817
|
if (e.id.startsWith("__")) {
|
|
5831
5818
|
let t = e.id.slice(2).split("__");
|
|
5832
5819
|
if (t.length >= 2) return t[1];
|
|
5833
5820
|
}
|
|
5834
5821
|
return e.id;
|
|
5835
|
-
},
|
|
5836
|
-
if (
|
|
5822
|
+
}, Ce = r(() => {
|
|
5823
|
+
if (q(uc(d.filterColDef) ? cc(d.filterColDef) : [N.value])) return {
|
|
5837
5824
|
icon: "focus",
|
|
5838
|
-
isDisabled: (e) => !
|
|
5825
|
+
isDisabled: (e) => !q([e.context?.colField || N.value]),
|
|
5839
5826
|
tooltipText: (e) => {
|
|
5840
|
-
let t = e.context?.colField ||
|
|
5841
|
-
if (!
|
|
5842
|
-
let n =
|
|
5843
|
-
return n && !
|
|
5827
|
+
let t = e.context?.colField || N.value;
|
|
5828
|
+
if (!q([t])) return `Group by ${me(t)} to enable ${d.focusText}`;
|
|
5829
|
+
let n = be(_e.value ? J(e) : e.id, t);
|
|
5830
|
+
return n && !Se() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5844
5831
|
},
|
|
5845
5832
|
action: (e) => {
|
|
5846
|
-
e && !C.value.includes(e.id) &&
|
|
5847
|
-
let t = e.context?.colField ||
|
|
5848
|
-
|
|
5833
|
+
e && !C.value.includes(e.id) && le(e.id, e.context?.colField);
|
|
5834
|
+
let t = e.context?.colField || N.value;
|
|
5835
|
+
ye(_e.value ? J(e) : e.id, t);
|
|
5849
5836
|
},
|
|
5850
5837
|
alwaysShow: (e) => {
|
|
5851
|
-
let t = e.context?.colField ||
|
|
5852
|
-
return
|
|
5838
|
+
let t = e.context?.colField || N.value;
|
|
5839
|
+
return be(_e.value ? J(e) : e.id, t);
|
|
5853
5840
|
}
|
|
5854
5841
|
};
|
|
5855
|
-
}),
|
|
5842
|
+
}), we = (e) => {
|
|
5856
5843
|
if (!e) return null;
|
|
5857
|
-
if (!
|
|
5858
|
-
let t =
|
|
5844
|
+
if (!_e.value) return e;
|
|
5845
|
+
let t = G(e);
|
|
5859
5846
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5860
5847
|
if (e.startsWith("__")) {
|
|
5861
5848
|
let t = e.slice(2).split("__");
|
|
5862
5849
|
if (t.length >= 2) return t[1];
|
|
5863
5850
|
}
|
|
5864
5851
|
return e;
|
|
5865
|
-
},
|
|
5866
|
-
|
|
5867
|
-
let t =
|
|
5868
|
-
|
|
5869
|
-
},
|
|
5870
|
-
|
|
5871
|
-
},
|
|
5852
|
+
}, Y = (e) => {
|
|
5853
|
+
ue(e);
|
|
5854
|
+
let t = G(e)?.colField || N.value, n = we(e);
|
|
5855
|
+
be(n, t) && Se() && xe(n);
|
|
5856
|
+
}, Te = m(gs, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
5857
|
+
de(), ce(!0);
|
|
5858
|
+
}, Oe = () => {
|
|
5872
5859
|
v(() => {
|
|
5873
|
-
|
|
5860
|
+
fe(), f("filter-closed");
|
|
5874
5861
|
});
|
|
5875
|
-
},
|
|
5876
|
-
let t =
|
|
5877
|
-
return
|
|
5878
|
-
},
|
|
5879
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5880
|
-
label: I(
|
|
5881
|
-
showClear: !e.readOnly && (!
|
|
5862
|
+
}, ke = (e) => {
|
|
5863
|
+
let t = G(e)?.colField || N.value;
|
|
5864
|
+
return be(we(e), t);
|
|
5865
|
+
}, Ae = r(() => S.value > 0 ? !0 : _e.value ? ve.value.length > 0 : C.value.length > 0);
|
|
5866
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(L) && I(C).length > 0 ? (E(), o("ul", ul, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(ee)}-${n}` }, [I(K)(n) ? a("", !0) : (E(), o("li", dl, [u(vi, {
|
|
5867
|
+
label: I(se)(n) || "",
|
|
5868
|
+
showClear: !e.readOnly && (!ke(n) || I(Se)()),
|
|
5882
5869
|
disabled: e.readOnly,
|
|
5883
|
-
onHandleClose: (e) =>
|
|
5870
|
+
onHandleClose: (e) => Y(n)
|
|
5884
5871
|
}, null, 8, [
|
|
5885
5872
|
"label",
|
|
5886
5873
|
"showClear",
|
|
5887
5874
|
"disabled",
|
|
5888
5875
|
"onHandleClose"
|
|
5889
5876
|
])]))], 64))), 128))])) : a("", !0), u(I(Xa), {
|
|
5890
|
-
modelValue: I(
|
|
5891
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
5877
|
+
modelValue: I(te),
|
|
5878
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null,
|
|
5892
5879
|
readOnly: e.readOnly,
|
|
5893
5880
|
searchInput: I(D),
|
|
5894
5881
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
5895
|
-
selectionState: I(
|
|
5896
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
5897
|
-
"data-horizontal-filter-field": I(
|
|
5898
|
-
label: I(
|
|
5882
|
+
selectionState: I(ve),
|
|
5883
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ve) ? ve.value = e : null,
|
|
5884
|
+
"data-horizontal-filter-field": I(L) ? void 0 : I(N),
|
|
5885
|
+
label: I(L) ? "" : I(ee),
|
|
5899
5886
|
highlightSearchText: !0,
|
|
5900
|
-
icon: I(
|
|
5901
|
-
variant: I(
|
|
5902
|
-
counterPosition: !I(
|
|
5903
|
-
showClear: !I(
|
|
5904
|
-
showSearchInput: I(
|
|
5905
|
-
searchPlaceholder: I(
|
|
5906
|
-
showDropdown: !I(
|
|
5907
|
-
overlayTrigger: I(
|
|
5908
|
-
options: I(
|
|
5909
|
-
optionsRenderer: I(
|
|
5910
|
-
optionsAction:
|
|
5887
|
+
icon: I(L) && !e.readOnly ? "add-circle" : void 0,
|
|
5888
|
+
variant: I(L) ? "ghost" : "secondary",
|
|
5889
|
+
counterPosition: !I(L) && Ae.value ? void 0 : "none",
|
|
5890
|
+
showClear: !I(L),
|
|
5891
|
+
showSearchInput: I(ne),
|
|
5892
|
+
searchPlaceholder: I(B),
|
|
5893
|
+
showDropdown: !I(L),
|
|
5894
|
+
overlayTrigger: I(L),
|
|
5895
|
+
options: I(z),
|
|
5896
|
+
optionsRenderer: I(re),
|
|
5897
|
+
optionsAction: Ce.value,
|
|
5911
5898
|
popoverCssProperties: {
|
|
5912
5899
|
maxHeight: "400px",
|
|
5913
|
-
maxWidth: I(
|
|
5900
|
+
maxWidth: I(L) ? "300px" : "400px",
|
|
5914
5901
|
overflowX: "auto",
|
|
5915
5902
|
width: "auto"
|
|
5916
5903
|
},
|
|
5917
|
-
disableClearIcon: !!I(
|
|
5918
|
-
disableDropdownIcon: !!I(
|
|
5904
|
+
disableClearIcon: !!I(L) || e.readOnly,
|
|
5905
|
+
disableDropdownIcon: !!I(L),
|
|
5919
5906
|
groupings: ["preferences", "suggestions"],
|
|
5920
5907
|
isLoading: I(w),
|
|
5921
5908
|
isSeeMoreLoading: I(T),
|
|
5922
|
-
hasMoreOptions: I(
|
|
5923
|
-
totalOptionCount: I(
|
|
5924
|
-
enableCascadeSelection: I(
|
|
5925
|
-
enableChildExpansion: I(
|
|
5926
|
-
parentSelectsAllChildren: I(
|
|
5927
|
-
countSelectedParents: I(
|
|
5909
|
+
hasMoreOptions: I(he),
|
|
5910
|
+
totalOptionCount: I(ge),
|
|
5911
|
+
enableCascadeSelection: I(_e),
|
|
5912
|
+
enableChildExpansion: I(_e),
|
|
5913
|
+
parentSelectsAllChildren: I(_e),
|
|
5914
|
+
countSelectedParents: I(_e),
|
|
5928
5915
|
additionalCounter: S.value,
|
|
5929
5916
|
slotContext: {
|
|
5930
|
-
gridApi: I(
|
|
5917
|
+
gridApi: I(j),
|
|
5931
5918
|
filterColDef: e.filterColDef,
|
|
5932
|
-
rowsLoading: I(
|
|
5919
|
+
rowsLoading: I(A)
|
|
5933
5920
|
},
|
|
5934
|
-
onDropdownOpen:
|
|
5935
|
-
onDropdownClosed:
|
|
5936
|
-
onSeeMore: I(
|
|
5921
|
+
onDropdownOpen: De,
|
|
5922
|
+
onDropdownClosed: Oe,
|
|
5923
|
+
onSeeMore: I(pe)
|
|
5937
5924
|
}, c({
|
|
5938
|
-
preferences:
|
|
5925
|
+
preferences: H(() => [s("div", fl, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(bi), {
|
|
5939
5926
|
variant: "dark",
|
|
5940
5927
|
size: "sm",
|
|
5941
5928
|
"use-teleport": !0
|
|
5942
5929
|
}, {
|
|
5943
|
-
trigger:
|
|
5930
|
+
trigger: H(() => [u(gn, {
|
|
5944
5931
|
size: "md",
|
|
5945
5932
|
variant: "ghost",
|
|
5946
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5933
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(ee)),
|
|
5947
5934
|
"right-icon": "sliders-horizontal"
|
|
5948
5935
|
})]),
|
|
5949
|
-
content:
|
|
5936
|
+
content: H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5950
5937
|
_: 1
|
|
5951
5938
|
})])]),
|
|
5952
|
-
suggestions:
|
|
5939
|
+
suggestions: H(() => [s("div", pl, [u(I(bi), {
|
|
5953
5940
|
variant: "dark",
|
|
5954
5941
|
disableInteractive: !0,
|
|
5955
5942
|
position: "top-left",
|
|
@@ -5957,41 +5944,37 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5957
5944
|
"use-teleport": !0,
|
|
5958
5945
|
style: { "--max-width": "200px" }
|
|
5959
5946
|
}, c({
|
|
5960
|
-
trigger:
|
|
5947
|
+
trigger: H(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(W) ? "suggested-title-label" : ""]) }, P(I(ae)), 3)]),
|
|
5961
5948
|
_: 2
|
|
5962
|
-
}, [I(
|
|
5949
|
+
}, [I(W) ? {
|
|
5963
5950
|
name: "content",
|
|
5964
|
-
fn:
|
|
5951
|
+
fn: H(() => [l(P(I(W)), 1)]),
|
|
5965
5952
|
key: "0"
|
|
5966
5953
|
} : void 0]), 1024)])]),
|
|
5967
5954
|
_: 2
|
|
5968
5955
|
}, [
|
|
5969
|
-
I(ie) ||
|
|
5956
|
+
I(ie) || Ee.value ? {
|
|
5970
5957
|
name: "header",
|
|
5971
|
-
fn:
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
}, null, 8, ["filter-col-def"])) : a("", !0),
|
|
5979
|
-
I(ie) ? (E(), i(M(I(ie)), b(_({ key: 1 }, t)), null, 16)) : a("", !0),
|
|
5980
|
-
I(j) ? (E(), o("p", fl, " Type " + P(I(A)) + " or more characters to search ", 1)) : a("", !0)
|
|
5981
|
-
]),
|
|
5958
|
+
fn: H((t) => [Ee.value ? (E(), i(ll, {
|
|
5959
|
+
key: 0,
|
|
5960
|
+
ref_key: "filterGroupMenuRef",
|
|
5961
|
+
ref: g,
|
|
5962
|
+
class: "pv-stack-8",
|
|
5963
|
+
"filter-col-def": e.filterColDef
|
|
5964
|
+
}, null, 8, ["filter-col-def"])) : a("", !0), I(ie) ? (E(), i(M(I(ie)), b(_({ key: 1 }, t)), null, 16)) : a("", !0)]),
|
|
5982
5965
|
key: "0"
|
|
5983
5966
|
} : void 0,
|
|
5984
|
-
I(
|
|
5967
|
+
I(V) ? {
|
|
5985
5968
|
name: "no-results",
|
|
5986
|
-
fn:
|
|
5969
|
+
fn: H((e) => [(E(), i(M(I(V)), b(p(e)), null, 16))]),
|
|
5987
5970
|
key: "1"
|
|
5988
5971
|
} : void 0,
|
|
5989
|
-
I(
|
|
5972
|
+
I(U) ? {
|
|
5990
5973
|
name: "footer",
|
|
5991
|
-
fn:
|
|
5974
|
+
fn: H((e) => [(E(), i(M(I(U)), b(p(e)), null, 16))]),
|
|
5992
5975
|
key: "2"
|
|
5993
5976
|
} : void 0
|
|
5994
|
-
]), 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(
|
|
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(L) && !e.readOnly ? (E(), o("div", ml, [I(R).length > 0 ? (E(), o("div", hl, [s("ul", gl, [u(I(bi), {
|
|
5995
5978
|
variant: "dark",
|
|
5996
5979
|
disableInteractive: !0,
|
|
5997
5980
|
position: "bottom-left",
|
|
@@ -5999,14 +5982,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5999
5982
|
"use-teleport": !0,
|
|
6000
5983
|
style: { "--max-width": "200px" }
|
|
6001
5984
|
}, c({
|
|
6002
|
-
trigger:
|
|
5985
|
+
trigger: H(() => [s("li", _l, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(W) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
6003
5986
|
_: 2
|
|
6004
|
-
}, [I(
|
|
5987
|
+
}, [I(W) ? {
|
|
6005
5988
|
name: "content",
|
|
6006
|
-
fn:
|
|
5989
|
+
fn: H(() => [l(P(I(W)), 1)]),
|
|
6007
5990
|
key: "0"
|
|
6008
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
6009
|
-
key: `${I(
|
|
5991
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(R).filter((e) => e !== "" && e != null).slice(0, vl), (e) => (E(), o("li", {
|
|
5992
|
+
key: `${I(ee)}-${e}-suggest`,
|
|
6010
5993
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
6011
5994
|
style: {
|
|
6012
5995
|
"max-width": "100%",
|
|
@@ -6014,29 +5997,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6014
5997
|
}
|
|
6015
5998
|
}, [u(I(Pi), {
|
|
6016
5999
|
disabled: I(w),
|
|
6017
|
-
label: I(
|
|
6018
|
-
onHandleClick: (t) => I(
|
|
6000
|
+
label: I(se)(e) || "",
|
|
6001
|
+
onHandleClick: (t) => I(le)(e, I(oe)(I(N), e)?.colField)
|
|
6019
6002
|
}, null, 8, [
|
|
6020
6003
|
"disabled",
|
|
6021
6004
|
"label",
|
|
6022
6005
|
"onHandleClick"
|
|
6023
6006
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
6024
6007
|
}
|
|
6025
|
-
}), [["__scopeId", "data-v-
|
|
6008
|
+
}), [["__scopeId", "data-v-a2cb7df0"]]), bl = { class: "pv-flex" }, xl = { class: "pv-flex" }, Sl = { class: "pv-flex pv-space-between pv-stack-8" }, Cl = { class: "pv-text-title-lg" }, wl = {
|
|
6026
6009
|
id: "filter-vertical-drawer",
|
|
6027
6010
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
6028
6011
|
style: { height: "100%" }
|
|
6029
|
-
},
|
|
6012
|
+
}, Tl = { class: "pv-full-width" }, El = {
|
|
6030
6013
|
class: "pv-details pv-stack-12",
|
|
6031
6014
|
open: ""
|
|
6032
|
-
},
|
|
6015
|
+
}, Dl = { class: "pv-flex pv-full-width" }, Ol = { class: "pv-text-title-lg" }, kl = { class: "pv-flex pv-space-between" }, Al = { class: "pv-flex" }, jl = {
|
|
6033
6016
|
class: "pv-flex",
|
|
6034
6017
|
style: {
|
|
6035
6018
|
"--flex-justify": "end",
|
|
6036
6019
|
"--flex-gap": "8px",
|
|
6037
6020
|
"margin-top": "auto"
|
|
6038
6021
|
}
|
|
6039
|
-
},
|
|
6022
|
+
}, Ml = /* @__PURE__ */ d({
|
|
6040
6023
|
__name: "FilterPanel",
|
|
6041
6024
|
props: {
|
|
6042
6025
|
enableFocusView: {
|
|
@@ -6101,7 +6084,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6101
6084
|
return Object.keys(t).length;
|
|
6102
6085
|
}), te = O(!1), ne = () => {
|
|
6103
6086
|
te.value = !0;
|
|
6104
|
-
},
|
|
6087
|
+
}, B = () => {
|
|
6105
6088
|
if (n.value) {
|
|
6106
6089
|
te.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
6107
6090
|
for (let e of F.value) {
|
|
@@ -6115,17 +6098,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6115
6098
|
});
|
|
6116
6099
|
}
|
|
6117
6100
|
}
|
|
6118
|
-
}, { clearAllFocuses:
|
|
6119
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
6120
|
-
}, U = () => {
|
|
6121
|
-
w.value = !1, D.value = "";
|
|
6122
|
-
}, W = () => {
|
|
6123
|
-
b(), g.value = null, U();
|
|
6101
|
+
}, { clearAllFocuses: V } = Fs(), re = () => {
|
|
6102
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, V(), T.value = !1);
|
|
6124
6103
|
}, ie = () => {
|
|
6125
|
-
|
|
6104
|
+
w.value = !1, D.value = "";
|
|
6105
|
+
}, U = () => {
|
|
6106
|
+
b(), g.value = null, ie();
|
|
6107
|
+
}, ae = () => {
|
|
6108
|
+
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, ie();
|
|
6126
6109
|
};
|
|
6127
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
6128
|
-
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(
|
|
6110
|
+
return (e, r) => (E(), o(t, null, [s("div", bl, [
|
|
6111
|
+
(E(!0), o(t, null, k(L.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(yl, {
|
|
6129
6112
|
key: 0,
|
|
6130
6113
|
"enable-focus-view": p.enableFocusView,
|
|
6131
6114
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -6140,10 +6123,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6140
6123
|
"filterColDef",
|
|
6141
6124
|
"read-only"
|
|
6142
6125
|
])) : a("", !0)], 64))), 128)),
|
|
6143
|
-
s("div",
|
|
6126
|
+
s("div", xl, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
6144
6127
|
key: 0,
|
|
6145
6128
|
label: "All Filters",
|
|
6146
|
-
onClick:
|
|
6129
|
+
onClick: B,
|
|
6147
6130
|
variant: "ghost",
|
|
6148
6131
|
"left-icon": "filter"
|
|
6149
6132
|
})) : a("", !0), z.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
@@ -6165,48 +6148,48 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6165
6148
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
6166
6149
|
class: "pv-drawer pv-surface",
|
|
6167
6150
|
"close-on-click-outside": !0,
|
|
6168
|
-
onClickOutside: r[10] ||= (e) =>
|
|
6151
|
+
onClickOutside: r[10] ||= (e) => ae(),
|
|
6169
6152
|
style: {
|
|
6170
6153
|
"max-width": "450px",
|
|
6171
6154
|
"z-index": "10"
|
|
6172
6155
|
}
|
|
6173
6156
|
}, {
|
|
6174
|
-
header:
|
|
6157
|
+
header: H(() => [s("div", Sl, [s("p", Cl, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
6175
6158
|
class: "pv-button-ghost",
|
|
6176
6159
|
"aria-label": "Close",
|
|
6177
|
-
onClick: r[2] ||= (e) =>
|
|
6160
|
+
onClick: r[2] ||= (e) => U()
|
|
6178
6161
|
}, [u(I(ln), { name: "close" })])]), u(I(zi), {
|
|
6179
6162
|
modelValue: D.value,
|
|
6180
6163
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
6181
6164
|
placeholder: "Search Filters"
|
|
6182
6165
|
}, null, 8, ["modelValue"])]),
|
|
6183
|
-
footer:
|
|
6166
|
+
footer: H(() => [s("div", kl, [p.readOnly ? (E(), i(I(gn), {
|
|
6184
6167
|
key: 1,
|
|
6185
6168
|
variant: "ghost",
|
|
6186
6169
|
label: "Close",
|
|
6187
|
-
onClick: r[8] ||= (e) =>
|
|
6170
|
+
onClick: r[8] ||= (e) => U()
|
|
6188
6171
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
6189
6172
|
class: "pv-button-ghost",
|
|
6190
|
-
onClick: r[5] ||= (e) =>
|
|
6191
|
-
}, "Clear All"), s("div",
|
|
6173
|
+
onClick: r[5] ||= (e) => re()
|
|
6174
|
+
}, "Clear All"), s("div", Al, [u(I(gn), {
|
|
6192
6175
|
variant: "ghost",
|
|
6193
6176
|
label: "Cancel",
|
|
6194
|
-
onClick: r[6] ||= (e) =>
|
|
6177
|
+
onClick: r[6] ||= (e) => U()
|
|
6195
6178
|
}), te.value ? (E(), i(I(gn), {
|
|
6196
6179
|
key: 0,
|
|
6197
6180
|
variant: "primary",
|
|
6198
6181
|
label: "Apply",
|
|
6199
|
-
onClick: r[7] ||= (e) =>
|
|
6182
|
+
onClick: r[7] ||= (e) => ae()
|
|
6200
6183
|
})) : (E(), i(I(gn), {
|
|
6201
6184
|
key: 1,
|
|
6202
6185
|
variant: "primary",
|
|
6203
6186
|
label: "No Changes",
|
|
6204
6187
|
disabled: ""
|
|
6205
6188
|
}))])], 64))])]),
|
|
6206
|
-
default:
|
|
6189
|
+
default: H(() => [s("div", wl, [s("div", Tl, [(E(!0), o(t, null, k(ee.value, (t, c) => (E(), o("div", {
|
|
6207
6190
|
key: t.field,
|
|
6208
6191
|
class: y([{ "pv-border-bottom": c < ee.value.length - 1 }, "pv-stack-12"])
|
|
6209
|
-
}, [s("details",
|
|
6192
|
+
}, [s("details", El, [s("summary", Dl, [s("span", Ol, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(yl, {
|
|
6210
6193
|
key: 0,
|
|
6211
6194
|
"filter-style": "vertical",
|
|
6212
6195
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -6231,8 +6214,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6231
6214
|
header: "Clear All Filters",
|
|
6232
6215
|
style: { top: "50%" }
|
|
6233
6216
|
}, {
|
|
6234
|
-
body:
|
|
6235
|
-
footer:
|
|
6217
|
+
body: H(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
6218
|
+
footer: H(() => [s("div", jl, [u(I(gn), {
|
|
6236
6219
|
label: "Cancel",
|
|
6237
6220
|
variant: "secondary",
|
|
6238
6221
|
size: "lg",
|
|
@@ -6241,15 +6224,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6241
6224
|
label: "Clear All Filters",
|
|
6242
6225
|
variant: "primary",
|
|
6243
6226
|
size: "lg",
|
|
6244
|
-
onClick:
|
|
6227
|
+
onClick: re
|
|
6245
6228
|
})])]),
|
|
6246
6229
|
_: 1
|
|
6247
6230
|
}, 8, ["modelValue"])], 64));
|
|
6248
6231
|
}
|
|
6249
|
-
}),
|
|
6232
|
+
}), Nl = { key: 2 }, Pl = {
|
|
6250
6233
|
key: 0,
|
|
6251
6234
|
class: "pv-flex ag-header-actions"
|
|
6252
|
-
},
|
|
6235
|
+
}, Fl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6253
6236
|
__name: "HeaderCellRenderer",
|
|
6254
6237
|
props: { params: {} },
|
|
6255
6238
|
setup(e, { expose: t }) {
|
|
@@ -6280,7 +6263,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6280
6263
|
}, I = () => {
|
|
6281
6264
|
f.value && l.params.progressSort(!1);
|
|
6282
6265
|
};
|
|
6283
|
-
|
|
6266
|
+
V(D, (e) => {
|
|
6284
6267
|
if (!e) return;
|
|
6285
6268
|
let t = l.params.column.getAggFunc();
|
|
6286
6269
|
if (e.id === t) return;
|
|
@@ -6324,17 +6307,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6324
6307
|
variant: "ghost",
|
|
6325
6308
|
size: "lg",
|
|
6326
6309
|
label: p.value || "",
|
|
6327
|
-
onClick: t[1] ||=
|
|
6310
|
+
onClick: t[1] ||= ie(() => {}, ["stop"])
|
|
6328
6311
|
}, null, 8, [
|
|
6329
6312
|
"modelValue",
|
|
6330
6313
|
"options",
|
|
6331
6314
|
"label"
|
|
6332
|
-
])) : (E(), o("p",
|
|
6315
|
+
])) : (E(), o("p", Nl, P(p.value), 1)),
|
|
6333
6316
|
f.value && b.value !== "" ? (E(), i(ln, {
|
|
6334
6317
|
key: 3,
|
|
6335
6318
|
name: b.value
|
|
6336
6319
|
}, null, 8, ["name"])) : a("", !0)
|
|
6337
|
-
], 6), v.value ? (E(), o("div",
|
|
6320
|
+
], 6), v.value ? (E(), o("div", Pl, [s("div", {
|
|
6338
6321
|
ref_key: "menuButton",
|
|
6339
6322
|
ref: g,
|
|
6340
6323
|
class: "ag-header-cell-menu-button",
|
|
@@ -6344,10 +6327,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6344
6327
|
variant: "ghost",
|
|
6345
6328
|
"left-icon": "menu",
|
|
6346
6329
|
ariaLabel: "Column menu",
|
|
6347
|
-
onClick:
|
|
6330
|
+
onClick: ie(N, ["stop", "prevent"])
|
|
6348
6331
|
})], 4)])) : a("", !0)], 4));
|
|
6349
6332
|
}
|
|
6350
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
6333
|
+
}), [["__scopeId", "data-v-385ad98a"]]), Il = {
|
|
6351
6334
|
headerHeight: "30px",
|
|
6352
6335
|
headerBackgroundColor: "white",
|
|
6353
6336
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6362,14 +6345,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6362
6345
|
rangeSelectionBorderStyle: "solid",
|
|
6363
6346
|
menuBackgroundColor: "white",
|
|
6364
6347
|
accentColor: "#36C5BA"
|
|
6365
|
-
},
|
|
6366
|
-
...
|
|
6348
|
+
}, Ll = Y.withParams({
|
|
6349
|
+
...Il,
|
|
6367
6350
|
headerRowBorder: !0,
|
|
6368
6351
|
rowHoverColor: "#F7F8F8",
|
|
6369
6352
|
wrapperBorder: !0,
|
|
6370
6353
|
wrapperBorderRadius: "8px"
|
|
6371
|
-
}),
|
|
6372
|
-
...
|
|
6354
|
+
}), Rl = Y.withParams({
|
|
6355
|
+
...Il,
|
|
6373
6356
|
headerRowBorder: !1,
|
|
6374
6357
|
rowHoverColor: "transparent",
|
|
6375
6358
|
wrapperBorder: !1,
|
|
@@ -6377,20 +6360,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6377
6360
|
rowBorder: !1,
|
|
6378
6361
|
columnBorder: !1,
|
|
6379
6362
|
rowHeight: "50px"
|
|
6380
|
-
}),
|
|
6381
|
-
"pv-data-table-base":
|
|
6363
|
+
}), zl = {
|
|
6364
|
+
"pv-data-table-base": Ll,
|
|
6382
6365
|
"pv-data-table-grouped": Y.withParams({
|
|
6383
|
-
...
|
|
6366
|
+
...Il,
|
|
6384
6367
|
headerRowBorder: !0,
|
|
6385
6368
|
rowHoverColor: "#F7F8F8",
|
|
6386
6369
|
wrapperBorder: !0,
|
|
6387
6370
|
wrapperBorderRadius: "8px"
|
|
6388
6371
|
}),
|
|
6389
|
-
"pv-data-table-grouped-card":
|
|
6390
|
-
},
|
|
6372
|
+
"pv-data-table-grouped-card": Rl
|
|
6373
|
+
}, Bl = { class: "pv-popover-menu" }, Vl = {
|
|
6391
6374
|
class: "pv-popover",
|
|
6392
6375
|
style: { "--height": "auto" }
|
|
6393
|
-
},
|
|
6376
|
+
}, Hl = ["disabled"], Ul = /* @__PURE__ */ d({
|
|
6394
6377
|
__name: "ExportMenu",
|
|
6395
6378
|
props: { getCsvData: { type: Function } },
|
|
6396
6379
|
setup(e) {
|
|
@@ -6405,22 +6388,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6405
6388
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
6406
6389
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
6407
6390
|
}
|
|
6408
|
-
return (e, n) => (E(), o("nav",
|
|
6391
|
+
return (e, n) => (E(), o("nav", Bl, [n[0] ||= s("button", {
|
|
6409
6392
|
type: "button",
|
|
6410
6393
|
class: "pv-button-icon"
|
|
6411
6394
|
}, [s("svg", {
|
|
6412
6395
|
"aria-hidden": "true",
|
|
6413
6396
|
class: "pv-icon-24"
|
|
6414
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
6397
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Vl, [s("button", {
|
|
6415
6398
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6416
|
-
onClick:
|
|
6399
|
+
onClick: ie(i, ["prevent"]),
|
|
6417
6400
|
disabled: r.value
|
|
6418
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
6401
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Hl)])]));
|
|
6419
6402
|
}
|
|
6420
|
-
}),
|
|
6403
|
+
}), Wl = {
|
|
6421
6404
|
key: 1,
|
|
6422
6405
|
class: ""
|
|
6423
|
-
},
|
|
6406
|
+
}, Gl = /* @__PURE__ */ d({
|
|
6424
6407
|
__name: "PaginationPanel",
|
|
6425
6408
|
props: { panelSize: { default: "xl" } },
|
|
6426
6409
|
setup(e) {
|
|
@@ -6457,7 +6440,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6457
6440
|
"size",
|
|
6458
6441
|
"onClick",
|
|
6459
6442
|
"label"
|
|
6460
|
-
])) : (E(), o("span",
|
|
6443
|
+
])) : (E(), o("span", Wl, "..."))], 64))), 128)),
|
|
6461
6444
|
u(gn, {
|
|
6462
6445
|
variant: "ghost",
|
|
6463
6446
|
onClick: f,
|
|
@@ -6468,10 +6451,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6468
6451
|
}, null, 8, ["disabled", "size"])
|
|
6469
6452
|
], 2));
|
|
6470
6453
|
}
|
|
6471
|
-
}),
|
|
6454
|
+
}), Kl = {
|
|
6472
6455
|
key: 0,
|
|
6473
6456
|
class: "pv-tag"
|
|
6474
|
-
},
|
|
6457
|
+
}, ql = /* @__PURE__ */ d({
|
|
6475
6458
|
__name: "TagCellRenderer",
|
|
6476
6459
|
props: { params: {} },
|
|
6477
6460
|
setup(e) {
|
|
@@ -6479,12 +6462,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6479
6462
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
6480
6463
|
return e.trim() === "" ? null : e;
|
|
6481
6464
|
});
|
|
6482
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
6465
|
+
return (e, t) => n.value ? (E(), o("div", Kl, P(n.value), 1)) : a("", !0);
|
|
6483
6466
|
}
|
|
6484
|
-
}),
|
|
6467
|
+
}), Jl = {
|
|
6485
6468
|
key: 0,
|
|
6486
6469
|
class: "pv-table-row-number"
|
|
6487
|
-
},
|
|
6470
|
+
}, Yl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6488
6471
|
__name: "RowCountCellRenderer",
|
|
6489
6472
|
props: { params: {} },
|
|
6490
6473
|
setup(e) {
|
|
@@ -6492,9 +6475,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6492
6475
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
6493
6476
|
return e && oc(e) ? n.toLocaleString() : n;
|
|
6494
6477
|
});
|
|
6495
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
6478
|
+
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span", Jl, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
6496
6479
|
}
|
|
6497
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
6480
|
+
}), [["__scopeId", "data-v-686928ce"]]), Xl = /* @__PURE__ */ d({
|
|
6498
6481
|
__name: "TableSearch",
|
|
6499
6482
|
props: {
|
|
6500
6483
|
placeholder: {},
|
|
@@ -6566,28 +6549,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6566
6549
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
6567
6550
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
6568
6551
|
}
|
|
6569
|
-
}),
|
|
6552
|
+
}), Zl = {
|
|
6570
6553
|
style: {
|
|
6571
6554
|
"background-color": "white",
|
|
6572
6555
|
"max-width": "300px"
|
|
6573
6556
|
},
|
|
6574
6557
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
6575
|
-
},
|
|
6558
|
+
}, Ql = { style: { color: "black" } }, $l = /* @__PURE__ */ d({
|
|
6576
6559
|
__name: "TableTooltip",
|
|
6577
6560
|
props: { params: {} },
|
|
6578
6561
|
setup(e) {
|
|
6579
|
-
return (t, n) => (E(), o("div",
|
|
6562
|
+
return (t, n) => (E(), o("div", Zl, [s("p", Ql, P(e.params.value), 1)]));
|
|
6580
6563
|
}
|
|
6581
|
-
}),
|
|
6564
|
+
}), eu = { class: "pv-stack-16" }, tu = { class: "pv-flex pv-space-between" }, nu = { class: "pv-flex" }, ru = { style: {
|
|
6582
6565
|
width: "30%",
|
|
6583
6566
|
"max-width": "50%"
|
|
6584
|
-
} },
|
|
6567
|
+
} }, iu = {
|
|
6585
6568
|
key: 0,
|
|
6586
6569
|
class: "pv-table-overlay"
|
|
6587
|
-
},
|
|
6570
|
+
}, au = {
|
|
6588
6571
|
class: "pv-text-body-xs pv-text-center",
|
|
6589
6572
|
style: { "padding-top": "16px" }
|
|
6590
|
-
},
|
|
6573
|
+
}, ou = /* @__PURE__ */ d({
|
|
6591
6574
|
__name: "PvDataTable",
|
|
6592
6575
|
props: {
|
|
6593
6576
|
allFieldsAreFocusable: {
|
|
@@ -6633,7 +6616,6 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6633
6616
|
default: !1
|
|
6634
6617
|
},
|
|
6635
6618
|
enableTableSearch: { type: Boolean },
|
|
6636
|
-
filterSearchMinLength: {},
|
|
6637
6619
|
enableTopSlot: { type: Boolean },
|
|
6638
6620
|
enableVerticalFilterPanel: {
|
|
6639
6621
|
type: Boolean,
|
|
@@ -6771,9 +6753,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6771
6753
|
let d = [
|
|
6772
6754
|
Te,
|
|
6773
6755
|
Ee,
|
|
6774
|
-
|
|
6756
|
+
oe,
|
|
6775
6757
|
De,
|
|
6776
|
-
|
|
6758
|
+
G,
|
|
6777
6759
|
Oe,
|
|
6778
6760
|
K,
|
|
6779
6761
|
ce,
|
|
@@ -6787,7 +6769,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6787
6769
|
Re,
|
|
6788
6770
|
Le,
|
|
6789
6771
|
ze,
|
|
6790
|
-
|
|
6772
|
+
Ce,
|
|
6791
6773
|
Ne,
|
|
6792
6774
|
be,
|
|
6793
6775
|
Fe,
|
|
@@ -6796,9 +6778,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6796
6778
|
ve,
|
|
6797
6779
|
ye,
|
|
6798
6780
|
Be,
|
|
6799
|
-
|
|
6781
|
+
J,
|
|
6800
6782
|
we,
|
|
6801
|
-
|
|
6783
|
+
se,
|
|
6802
6784
|
Se,
|
|
6803
6785
|
he,
|
|
6804
6786
|
_e,
|
|
@@ -6812,16 +6794,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6812
6794
|
let p = r(() => f.layout ? {} : {
|
|
6813
6795
|
height: f.containerHeight,
|
|
6814
6796
|
minHeight: f.containerMinHeight
|
|
6815
|
-
}), 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 :
|
|
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 : zl[g.value]), T = c, k = O(!1), j = (e) => {
|
|
6816
6798
|
let t = cc(e), n = e.context;
|
|
6817
6799
|
return Array.from(new Set([
|
|
6818
6800
|
...t,
|
|
6819
6801
|
...n?.queryColIds || [],
|
|
6820
|
-
...t.flatMap((e) =>
|
|
6802
|
+
...t.flatMap((e) => U.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
6821
6803
|
]));
|
|
6822
6804
|
}, M = (e, t) => {
|
|
6823
6805
|
if (Dc(e, t)) return !0;
|
|
6824
|
-
let n =
|
|
6806
|
+
let n = U.find((e) => lc(e) === t);
|
|
6825
6807
|
return !!n && j(n).some((t) => Dc(e, t));
|
|
6826
6808
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6827
6809
|
if (!X.value) {
|
|
@@ -6892,7 +6874,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6892
6874
|
} : e.request.filterModel = s;
|
|
6893
6875
|
} else {
|
|
6894
6876
|
let t = e.request.filterModel;
|
|
6895
|
-
e.request.filterModel = Oc(
|
|
6877
|
+
e.request.filterModel = Oc(U, t, s);
|
|
6896
6878
|
}
|
|
6897
6879
|
e.success = (e) => {
|
|
6898
6880
|
if (Ue.value = !1, f.enableFocusView && lt.value.length > 0 && ct.value && e.rowData) {
|
|
@@ -6927,9 +6909,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6927
6909
|
suppressColumnsToolPanel: !0,
|
|
6928
6910
|
minWidth: 150,
|
|
6929
6911
|
flex: 1,
|
|
6930
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
6912
|
+
headerComponent: f.enableInlineFilters ? void 0 : Fl,
|
|
6931
6913
|
cellDataType: !1,
|
|
6932
|
-
tooltipComponent:
|
|
6914
|
+
tooltipComponent: $l,
|
|
6933
6915
|
cellClass: (e) => xt(e.column) ? "" : oc(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
6934
6916
|
cellRendererSelector: (e) => {
|
|
6935
6917
|
if (L(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
@@ -6939,7 +6921,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6939
6921
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && Y.value.length === 0) {
|
|
6940
6922
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6941
6923
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6942
|
-
component:
|
|
6924
|
+
component: Yl,
|
|
6943
6925
|
params: e
|
|
6944
6926
|
};
|
|
6945
6927
|
}
|
|
@@ -6962,7 +6944,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6962
6944
|
}));
|
|
6963
6945
|
}
|
|
6964
6946
|
}
|
|
6965
|
-
},
|
|
6947
|
+
}, ie = (e, t) => {
|
|
6966
6948
|
if (!e) return null;
|
|
6967
6949
|
let n = { ...e }, r = t, i = cc(e);
|
|
6968
6950
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -6975,17 +6957,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6975
6957
|
let t = e.headerValueGetter;
|
|
6976
6958
|
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 || "";
|
|
6977
6959
|
}
|
|
6978
|
-
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 =
|
|
6979
|
-
},
|
|
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 = ql), n;
|
|
6961
|
+
}, U = f.colDefs?.map((e) => {
|
|
6980
6962
|
let t = { ...e };
|
|
6981
6963
|
F && ee && kc(e) && (t = Ac(e, ee));
|
|
6982
6964
|
let n = e.context;
|
|
6983
|
-
return n && (t =
|
|
6984
|
-
}).filter((e) => e != null) || [],
|
|
6985
|
-
for (let e of
|
|
6986
|
-
let pe = Sc(f.initialGridState,
|
|
6965
|
+
return n && (t = ie(t, n)), t;
|
|
6966
|
+
}).filter((e) => e != null) || [], ae = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6967
|
+
for (let e of U) for (let t of cc(e)) ae.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6968
|
+
let pe = Sc(f.initialGridState, U, f.enableAdvancedFilter), ge = O(null), Y = O([]), He = m(ns, O(!1)), Ue = O(!1), We = r(() => {
|
|
6987
6969
|
if (Y.value.length > 0) {
|
|
6988
|
-
let e = Y.value[0], t =
|
|
6970
|
+
let e = Y.value[0], t = U.find((t) => t.field === e), n = Qe.value, r = !n;
|
|
6989
6971
|
if (!r && Xc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6990
6972
|
}
|
|
6991
6973
|
return null;
|
|
@@ -7006,7 +6988,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7006
6988
|
}) ?? e(t.field) : e(t.field);
|
|
7007
6989
|
});
|
|
7008
6990
|
}
|
|
7009
|
-
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.
|
|
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", V(() => f.enableAdvancedFilter, (e) => {
|
|
7010
6992
|
Ye.filterModelType.value = e ? "advanced" : "regular";
|
|
7011
6993
|
}), qe([et, rt], () => {
|
|
7012
6994
|
T("filter-metadata-changed", {
|
|
@@ -7017,22 +6999,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7017
6999
|
deep: !0,
|
|
7018
7000
|
debounce: 250
|
|
7019
7001
|
});
|
|
7020
|
-
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() =>
|
|
7002
|
+
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() => U.filter((e) => e.filter)), dt = r(() => U.filter((e) => e.enableRowGroup)), ft = r(() => U.filter((e) => e.aggFunc)), pt = O(null), mt = O({}), ht = O(1), gt = O(0);
|
|
7021
7003
|
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));
|
|
7022
7004
|
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData : nc(f.rowData, ct.value, lt.value));
|
|
7023
|
-
|
|
7005
|
+
V(() => lt.value, (e) => {
|
|
7024
7006
|
T("focus-update", {
|
|
7025
7007
|
filterField: ct.value,
|
|
7026
7008
|
focuses: e
|
|
7027
7009
|
});
|
|
7028
|
-
}),
|
|
7010
|
+
}), V(k, (e) => {
|
|
7029
7011
|
if (!Z.value) return;
|
|
7030
|
-
let t =
|
|
7012
|
+
let t = U.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
7031
7013
|
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
7032
7014
|
});
|
|
7033
7015
|
let vt = (e) => {
|
|
7034
7016
|
Z.value = e.api;
|
|
7035
|
-
let t = Y.value.find((e) => !
|
|
7017
|
+
let t = Y.value.find((e) => !U.find((t) => t.field === e)?.hide), n = !t && Y.value.length > 0 ? U.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
7036
7018
|
if (f.hideAllRowGroupedColumns && Y.value.forEach((e) => i.push(e)), r) {
|
|
7037
7019
|
let t = e.api.getColumn(r);
|
|
7038
7020
|
pt.value = t, i.push(r), Wt(t?.getColDef());
|
|
@@ -7147,7 +7129,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7147
7129
|
v(() => {
|
|
7148
7130
|
let t = pt.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
7149
7131
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
7150
|
-
let t =
|
|
7132
|
+
let t = U.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
7151
7133
|
t && (i = e.api.getColumn(t));
|
|
7152
7134
|
}
|
|
7153
7135
|
i ? (pt.value = i, Wt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (pt.value = null, Wt(null));
|
|
@@ -7206,7 +7188,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7206
7188
|
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;
|
|
7207
7189
|
return;
|
|
7208
7190
|
}
|
|
7209
|
-
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
7191
|
+
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : Fl), 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;
|
|
7210
7192
|
}, Gt = (e) => {
|
|
7211
7193
|
if (e.node.group) return {
|
|
7212
7194
|
backgroundColor: "#F7F8F8",
|
|
@@ -7243,9 +7225,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7243
7225
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
7244
7226
|
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);
|
|
7245
7227
|
};
|
|
7246
|
-
|
|
7228
|
+
V(() => f.initialGridState, () => {
|
|
7247
7229
|
if (f.initialGridState) {
|
|
7248
|
-
let e = Sc(f.initialGridState,
|
|
7230
|
+
let e = Sc(f.initialGridState, U, f.enableAdvancedFilter);
|
|
7249
7231
|
e && qt(e);
|
|
7250
7232
|
}
|
|
7251
7233
|
}, { deep: !0 });
|
|
@@ -7269,19 +7251,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7269
7251
|
"--flex-justify": "flex-end"
|
|
7270
7252
|
}
|
|
7271
7253
|
}, {
|
|
7272
|
-
trigger:
|
|
7254
|
+
trigger: H(() => [u(I(gn), {
|
|
7273
7255
|
"left-icon": "flask-conical",
|
|
7274
7256
|
ariaLabel: "Toggle dev mode",
|
|
7275
7257
|
variant: k.value ? "primary" : "secondary",
|
|
7276
7258
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
7277
7259
|
}, null, 8, ["variant"])]),
|
|
7278
|
-
content:
|
|
7260
|
+
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
7279
7261
|
_: 1
|
|
7280
7262
|
})) : a("", !0),
|
|
7281
|
-
|
|
7263
|
+
re(s("div", eu, [s("div", tu, [(E(), i(n, {
|
|
7282
7264
|
to: e.filterTeleportLocation,
|
|
7283
7265
|
disabled: !e.filterTeleportLocation
|
|
7284
|
-
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
7266
|
+
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(Ml, {
|
|
7285
7267
|
key: 0,
|
|
7286
7268
|
"enable-focus-view": e.enableFocusView,
|
|
7287
7269
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -7299,23 +7281,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7299
7281
|
"focus-text",
|
|
7300
7282
|
"max-horizontal-filters",
|
|
7301
7283
|
"read-only"
|
|
7302
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
7284
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", nu, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Es, {
|
|
7303
7285
|
key: 0,
|
|
7304
7286
|
rowGroupLimit: e.rowGroupLimit,
|
|
7305
7287
|
enableFocusView: e.enableFocusView
|
|
7306
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
7288
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Ul, {
|
|
7307
7289
|
key: 1,
|
|
7308
7290
|
getCsvData: Tt
|
|
7309
|
-
})) : a("", !0)])])], 512), [[
|
|
7310
|
-
|
|
7291
|
+
})) : a("", !0)])])], 512), [[B, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
7292
|
+
re(s("div", {
|
|
7311
7293
|
ref_key: "advancedFilterParentElement",
|
|
7312
7294
|
ref: Qt,
|
|
7313
7295
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
7314
|
-
}, null, 2), [[
|
|
7296
|
+
}, null, 2), [[B, k.value && e.enableAdvancedFilter]]),
|
|
7315
7297
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7316
7298
|
key: 1,
|
|
7317
7299
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
7318
|
-
}, [s("div",
|
|
7300
|
+
}, [s("div", ru, [e.enableTableSearch ? (E(), i(Xl, {
|
|
7319
7301
|
key: 0,
|
|
7320
7302
|
placeholder: e.tableSearchPlaceholder,
|
|
7321
7303
|
disabled: !X.value,
|
|
@@ -7333,7 +7315,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7333
7315
|
"min-height": "0",
|
|
7334
7316
|
"overflow-x": "hidden"
|
|
7335
7317
|
}
|
|
7336
|
-
}, [u(I(
|
|
7318
|
+
}, [u(I(W), _({
|
|
7337
7319
|
ref: "gridRef",
|
|
7338
7320
|
class: ["pv-data-table", I(b)],
|
|
7339
7321
|
style: [{
|
|
@@ -7362,7 +7344,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7362
7344
|
onUndoStarted: r[10] ||= (e) => T("undo-started", e),
|
|
7363
7345
|
aggFuncs: Kt,
|
|
7364
7346
|
autoGroupColumnDef: Ut.value,
|
|
7365
|
-
columnDefs: I(
|
|
7347
|
+
columnDefs: I(U),
|
|
7366
7348
|
debug: e.debugMode,
|
|
7367
7349
|
defaultColDef: I(R),
|
|
7368
7350
|
getChildCount: zt,
|
|
@@ -7411,14 +7393,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7411
7393
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7412
7394
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7413
7395
|
advancedFilterParent: Qt.value
|
|
7414
|
-
}), 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",
|
|
7415
|
-
e.pagination ? (E(), i(
|
|
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", iu, [s("p", au, P(Ge.value), 1)])) : a("", !0)], 2),
|
|
7397
|
+
e.pagination ? (E(), i(Gl, { key: 2 })) : a("", !0)
|
|
7416
7398
|
], 4));
|
|
7417
7399
|
}
|
|
7418
|
-
}),
|
|
7400
|
+
}), su = {
|
|
7419
7401
|
class: "pv-flex",
|
|
7420
7402
|
style: { "white-space": "nowrap" }
|
|
7421
|
-
},
|
|
7403
|
+
}, cu = { class: "pv-text-body-md" }, lu = /* @__PURE__ */ d({
|
|
7422
7404
|
inheritAttrs: !1,
|
|
7423
7405
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
7424
7406
|
props: {
|
|
@@ -7427,16 +7409,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7427
7409
|
context: {}
|
|
7428
7410
|
},
|
|
7429
7411
|
setup(e) {
|
|
7430
|
-
return (t, n) => (E(), o("div",
|
|
7412
|
+
return (t, n) => (E(), o("div", su, [s("span", cu, P(e.text), 1), e.context?.rightIcon ? (E(), i(ln, {
|
|
7431
7413
|
key: 0,
|
|
7432
7414
|
name: e.context.rightIcon,
|
|
7433
7415
|
class: "pv-text-subdued"
|
|
7434
7416
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
7435
7417
|
}
|
|
7436
|
-
}),
|
|
7418
|
+
}), uu = { class: "pv-relative" }, du = {
|
|
7437
7419
|
role: "list",
|
|
7438
7420
|
class: "pv-relative"
|
|
7439
|
-
},
|
|
7421
|
+
}, fu = ["data-active"], pu = { style: { cursor: "pointer" } }, mu = { role: "list" }, hu = /* @__PURE__ */ d({
|
|
7440
7422
|
__name: "PvTableOptionsPanel",
|
|
7441
7423
|
props: {
|
|
7442
7424
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -7453,7 +7435,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7453
7435
|
},
|
|
7454
7436
|
useTeleport: !0
|
|
7455
7437
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7456
|
-
|
|
7438
|
+
V(g, (e) => {
|
|
7457
7439
|
e && (p.value = e);
|
|
7458
7440
|
});
|
|
7459
7441
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7461,7 +7443,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7461
7443
|
text: e.title,
|
|
7462
7444
|
context: { rightIcon: e.icon }
|
|
7463
7445
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7464
|
-
|
|
7446
|
+
V(b, (e) => {
|
|
7465
7447
|
c("table-overlay-change", e);
|
|
7466
7448
|
}, { immediate: !0 });
|
|
7467
7449
|
let x = () => {
|
|
@@ -7471,7 +7453,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7471
7453
|
}, C = () => {
|
|
7472
7454
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7473
7455
|
};
|
|
7474
|
-
return (n, r) => (E(), o(t, null, [
|
|
7456
|
+
return (n, r) => (E(), o(t, null, [re((E(), o("div", uu, [u(ia, {
|
|
7475
7457
|
open: m.value,
|
|
7476
7458
|
label: "Table Configuration",
|
|
7477
7459
|
icon: "settings",
|
|
@@ -7486,13 +7468,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7486
7468
|
alignment: "right",
|
|
7487
7469
|
isList: !0
|
|
7488
7470
|
}, {
|
|
7489
|
-
default:
|
|
7471
|
+
default: H(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7490
7472
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7491
7473
|
style: {
|
|
7492
7474
|
"padding-top": "4px",
|
|
7493
7475
|
"padding-bottom": "12px"
|
|
7494
7476
|
}
|
|
7495
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
7477
|
+
}, " Table Configuration ")], -1), s("ul", du, [v.value ? (E(), o("li", {
|
|
7496
7478
|
key: 0,
|
|
7497
7479
|
id: "table-config-overlay",
|
|
7498
7480
|
"data-active": h.value ? !0 : null,
|
|
@@ -7505,7 +7487,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7505
7487
|
text: "Table Overlay",
|
|
7506
7488
|
icon: "layers-2",
|
|
7507
7489
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
7508
|
-
}, null, 8, ["class-list"])], 40,
|
|
7490
|
+
}, null, 8, ["class-list"])], 40, fu)) : a("", !0), s("li", pu, [u(za, {
|
|
7509
7491
|
config: { variant: "icon" },
|
|
7510
7492
|
id: "table-config-group-toggle",
|
|
7511
7493
|
class: "pv-text-subdued",
|
|
@@ -7525,11 +7507,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7525
7507
|
},
|
|
7526
7508
|
isList: !0
|
|
7527
7509
|
}, {
|
|
7528
|
-
default:
|
|
7510
|
+
default: H(() => [s("ul", mu, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(za, {
|
|
7529
7511
|
id: e.id,
|
|
7530
7512
|
config: {
|
|
7531
7513
|
variant: "checkbox",
|
|
7532
|
-
renderer:
|
|
7514
|
+
renderer: lu
|
|
7533
7515
|
},
|
|
7534
7516
|
text: e.text,
|
|
7535
7517
|
context: e.context,
|
|
@@ -7546,13 +7528,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7546
7528
|
_: 1
|
|
7547
7529
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
7548
7530
|
}
|
|
7549
|
-
}),
|
|
7531
|
+
}), gu = ["id"], _u = {
|
|
7550
7532
|
key: 0,
|
|
7551
7533
|
class: "sort-divider-container"
|
|
7552
|
-
},
|
|
7534
|
+
}, vu = ["data-label"], yu = ["onDrop"], bu = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, xu = { class: "pv-text-body-sm pv-text-tertiary" }, Su = { class: "pv-flex pv-full-width pv-sort-option" }, Cu = { class: "pv-text-body-sm" }, wu = {
|
|
7553
7535
|
key: 1,
|
|
7554
7536
|
class: "pv-button-placeholder"
|
|
7555
|
-
},
|
|
7537
|
+
}, Tu = "--divider--", Eu = "placeholder-", Du = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7556
7538
|
__name: "PvSortableList",
|
|
7557
7539
|
props: /* @__PURE__ */ g({
|
|
7558
7540
|
options: { default: () => [] },
|
|
@@ -7572,11 +7554,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7572
7554
|
emits: ["update:modelValue"],
|
|
7573
7555
|
setup(e) {
|
|
7574
7556
|
let n = e, c = L(e, "modelValue"), l = {
|
|
7575
|
-
id:
|
|
7557
|
+
id: Tu,
|
|
7576
7558
|
text: "",
|
|
7577
7559
|
disabled: !0
|
|
7578
7560
|
}, 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) => ({
|
|
7579
|
-
id: `${
|
|
7561
|
+
id: `${Eu}${t}`,
|
|
7580
7562
|
text: "",
|
|
7581
7563
|
disabled: !0,
|
|
7582
7564
|
isPlaceholder: !0
|
|
@@ -7590,20 +7572,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7590
7572
|
];
|
|
7591
7573
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
7592
7574
|
if (!m.value) return;
|
|
7593
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
7575
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Tu);
|
|
7594
7576
|
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);
|
|
7595
7577
|
};
|
|
7596
7578
|
w(() => {
|
|
7597
7579
|
m.value && (g = new nt(m.value, {
|
|
7598
7580
|
animation: 200,
|
|
7599
|
-
filter: `#${
|
|
7581
|
+
filter: `#${Tu}, [id^="placeholder-"]`,
|
|
7600
7582
|
dragoverBubble: !0,
|
|
7601
7583
|
onStart: (e) => {
|
|
7602
7584
|
_ = e.item;
|
|
7603
7585
|
},
|
|
7604
7586
|
onMove: (e) => {
|
|
7605
7587
|
let t = e.related;
|
|
7606
|
-
if (t?.id ===
|
|
7588
|
+
if (t?.id === Tu || t?.id?.startsWith("placeholder-")) return !1;
|
|
7607
7589
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
7608
7590
|
return r && D(r);
|
|
7609
7591
|
},
|
|
@@ -7651,20 +7633,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7651
7633
|
key: e.id,
|
|
7652
7634
|
id: e.id,
|
|
7653
7635
|
class: "pv-stack-4"
|
|
7654
|
-
}, [e.id ===
|
|
7636
|
+
}, [e.id === Tu ? (E(), o("div", _u, [s("div", {
|
|
7655
7637
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7656
7638
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
7657
|
-
}, null, 8,
|
|
7639
|
+
}, null, 8, vu)])) : e.id.includes(Eu) ? (E(), o("div", {
|
|
7658
7640
|
key: 1,
|
|
7659
7641
|
class: "placeholder-zone",
|
|
7660
7642
|
onDragover: r[0] ||= (e) => b(e),
|
|
7661
7643
|
onDragleave: r[1] ||= (e) => S(e),
|
|
7662
7644
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
7663
|
-
}, [s("div",
|
|
7645
|
+
}, [s("div", bu, [s("span", xu, P(n.placeholderText), 1)])], 40, yu)) : (E(), o("div", {
|
|
7664
7646
|
key: 2,
|
|
7665
7647
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
7666
7648
|
style: x(M(e))
|
|
7667
|
-
}, [s("div",
|
|
7649
|
+
}, [s("div", Su, [
|
|
7668
7650
|
u(ln, {
|
|
7669
7651
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7670
7652
|
name: "reorder"
|
|
@@ -7674,8 +7656,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7674
7656
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7675
7657
|
name: e.icon
|
|
7676
7658
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
7677
|
-
s("span",
|
|
7678
|
-
]), j(e) ? (E(), o("div",
|
|
7659
|
+
s("span", Cu, P(e.text), 1)
|
|
7660
|
+
]), j(e) ? (E(), o("div", wu)) : (E(), i(gn, {
|
|
7679
7661
|
key: 0,
|
|
7680
7662
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
7681
7663
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -7687,12 +7669,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7687
7669
|
"ariaLabel",
|
|
7688
7670
|
"style",
|
|
7689
7671
|
"onClick"
|
|
7690
|
-
]))], 6))], 8,
|
|
7672
|
+
]))], 6))], 8, gu))), 128))], 512)], 512));
|
|
7691
7673
|
}
|
|
7692
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
7674
|
+
}), [["__scopeId", "data-v-34615cd0"]]), Ou = (e) => e.filter((e) => !oc(e)), ku = (e) => e.filter((e) => oc(e)), Au = {
|
|
7693
7675
|
xAxis: {
|
|
7694
7676
|
selectMode: "sortable",
|
|
7695
|
-
filterColumns:
|
|
7677
|
+
filterColumns: Ou
|
|
7696
7678
|
},
|
|
7697
7679
|
yAxis: {},
|
|
7698
7680
|
secondaryYAxis: {},
|
|
@@ -7701,16 +7683,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7701
7683
|
rowGroupLimit: 2,
|
|
7702
7684
|
supportsFocusView: !0,
|
|
7703
7685
|
storeBeforeChange: !0
|
|
7704
|
-
},
|
|
7686
|
+
}, ju = [
|
|
7705
7687
|
{
|
|
7706
|
-
...
|
|
7688
|
+
...Au,
|
|
7707
7689
|
id: "column",
|
|
7708
7690
|
text: "Column",
|
|
7709
7691
|
icon: "chart-column",
|
|
7710
7692
|
agChartType: "bar"
|
|
7711
7693
|
},
|
|
7712
7694
|
{
|
|
7713
|
-
...
|
|
7695
|
+
...Au,
|
|
7714
7696
|
id: "bar",
|
|
7715
7697
|
text: "Bar",
|
|
7716
7698
|
icon: "chart-bar",
|
|
@@ -7718,28 +7700,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7718
7700
|
isHorizontal: !0
|
|
7719
7701
|
},
|
|
7720
7702
|
{
|
|
7721
|
-
...
|
|
7703
|
+
...Au,
|
|
7722
7704
|
id: "line",
|
|
7723
7705
|
text: "Line",
|
|
7724
7706
|
icon: "chart-line",
|
|
7725
7707
|
agChartType: "line"
|
|
7726
7708
|
},
|
|
7727
7709
|
{
|
|
7728
|
-
...
|
|
7710
|
+
...Au,
|
|
7729
7711
|
id: "area",
|
|
7730
7712
|
text: "Area",
|
|
7731
7713
|
icon: "chart-area",
|
|
7732
7714
|
agChartType: "area"
|
|
7733
7715
|
},
|
|
7734
7716
|
{
|
|
7735
|
-
...
|
|
7717
|
+
...Au,
|
|
7736
7718
|
id: "column_stacked",
|
|
7737
7719
|
text: "Stacked Column",
|
|
7738
7720
|
icon: "chart-column-stacked",
|
|
7739
7721
|
agChartType: "bar"
|
|
7740
7722
|
},
|
|
7741
7723
|
{
|
|
7742
|
-
...
|
|
7724
|
+
...Au,
|
|
7743
7725
|
id: "bar_stacked",
|
|
7744
7726
|
text: "Stacked Bar",
|
|
7745
7727
|
icon: "chart-bar-stacked",
|
|
@@ -7747,7 +7729,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7747
7729
|
isHorizontal: !0
|
|
7748
7730
|
},
|
|
7749
7731
|
{
|
|
7750
|
-
...
|
|
7732
|
+
...Au,
|
|
7751
7733
|
id: "pie",
|
|
7752
7734
|
text: "Pie",
|
|
7753
7735
|
icon: "chart-pie",
|
|
@@ -7761,7 +7743,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7761
7743
|
icon: "chart-column",
|
|
7762
7744
|
xAxis: {
|
|
7763
7745
|
selectMode: "single",
|
|
7764
|
-
filterColumns:
|
|
7746
|
+
filterColumns: ku,
|
|
7765
7747
|
hideLabel: !0
|
|
7766
7748
|
},
|
|
7767
7749
|
yAxis: {
|
|
@@ -7776,16 +7758,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7776
7758
|
supportsFocusView: !1,
|
|
7777
7759
|
storeBeforeChange: !1
|
|
7778
7760
|
}
|
|
7779
|
-
],
|
|
7780
|
-
function
|
|
7781
|
-
return
|
|
7761
|
+
], Mu = new Map(ju.map((e) => [e.id, e])), Nu = Mu.get("column");
|
|
7762
|
+
function Pu(e) {
|
|
7763
|
+
return Mu.get(e) || Nu;
|
|
7782
7764
|
}
|
|
7783
7765
|
//#endregion
|
|
7784
7766
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
7785
|
-
var
|
|
7767
|
+
var Fu = {
|
|
7786
7768
|
class: "pv-full-width pv-flex",
|
|
7787
7769
|
style: { "--flex-gap": "8px" }
|
|
7788
|
-
},
|
|
7770
|
+
}, Iu = ["title"], Lu = { style: { "max-width": "220px" } }, Ru = /* @__PURE__ */ d({
|
|
7789
7771
|
inheritAttrs: !1,
|
|
7790
7772
|
__name: "PvChartOptionMenuItemRenderer",
|
|
7791
7773
|
props: {
|
|
@@ -7793,10 +7775,10 @@ var Iu = {
|
|
|
7793
7775
|
context: {}
|
|
7794
7776
|
},
|
|
7795
7777
|
setup(e) {
|
|
7796
|
-
return (t, n) => (E(), o("div",
|
|
7778
|
+
return (t, n) => (E(), o("div", Fu, [s("span", {
|
|
7797
7779
|
class: "pv-text-body-md pv-truncate",
|
|
7798
7780
|
title: e.text
|
|
7799
|
-
}, P(e.text), 9,
|
|
7781
|
+
}, P(e.text), 9, Iu), e.context?.description ? (E(), i(I(bi), {
|
|
7800
7782
|
key: 0,
|
|
7801
7783
|
variant: "dark",
|
|
7802
7784
|
position: "center-right",
|
|
@@ -7805,30 +7787,30 @@ var Iu = {
|
|
|
7805
7787
|
disableInteractive: !0,
|
|
7806
7788
|
style: { "pointer-events": "auto" }
|
|
7807
7789
|
}, {
|
|
7808
|
-
trigger:
|
|
7790
|
+
trigger: H(() => [u(I(ln), {
|
|
7809
7791
|
size: 12,
|
|
7810
7792
|
name: "info-circle",
|
|
7811
7793
|
class: "pv-text-subdued"
|
|
7812
7794
|
})]),
|
|
7813
|
-
content:
|
|
7795
|
+
content: H(() => [s("div", Lu, P(e.context.description), 1)]),
|
|
7814
7796
|
_: 1
|
|
7815
7797
|
})) : a("", !0)]));
|
|
7816
7798
|
}
|
|
7817
|
-
}),
|
|
7799
|
+
}), zu = { class: "pv-stack-16 pv-chart-options-panel" }, Bu = { class: "pv-flex pv-relative" }, Vu = {
|
|
7818
7800
|
role: "list",
|
|
7819
7801
|
class: "pv-relative"
|
|
7820
|
-
},
|
|
7802
|
+
}, Hu = [
|
|
7821
7803
|
"id",
|
|
7822
7804
|
"data-active",
|
|
7823
7805
|
"onMouseenter",
|
|
7824
7806
|
"onClick"
|
|
7825
|
-
],
|
|
7807
|
+
], Uu = { style: { "max-width": "100px" } }, Wu = {
|
|
7826
7808
|
key: 1,
|
|
7827
7809
|
class: "pv-flex"
|
|
7828
|
-
},
|
|
7810
|
+
}, Gu = {
|
|
7829
7811
|
key: 1,
|
|
7830
7812
|
role: "list"
|
|
7831
|
-
},
|
|
7813
|
+
}, Ku = ["data-active"], qu = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7832
7814
|
__name: "PvChartOptionsPanel",
|
|
7833
7815
|
props: {
|
|
7834
7816
|
enablePanel: { type: Boolean },
|
|
@@ -7845,7 +7827,7 @@ var Iu = {
|
|
|
7845
7827
|
maxHeight: "900px"
|
|
7846
7828
|
},
|
|
7847
7829
|
useTeleport: !0
|
|
7848
|
-
}), 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(() =>
|
|
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(() => Pu(b.value?.id || "")), j = r(() => {
|
|
7849
7831
|
let e = b.value?.id ?? "";
|
|
7850
7832
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7851
7833
|
}), 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) => ({
|
|
@@ -7856,13 +7838,13 @@ var Iu = {
|
|
|
7856
7838
|
}))), te = (e) => {
|
|
7857
7839
|
L.value = new Set(e.map((e) => e.id));
|
|
7858
7840
|
};
|
|
7859
|
-
|
|
7841
|
+
V(j, (e) => {
|
|
7860
7842
|
e && F.value && (F.value = void 0);
|
|
7861
7843
|
}, { immediate: !0 });
|
|
7862
|
-
let ne = m(os, O("")),
|
|
7844
|
+
let ne = m(os, O("")), B = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7863
7845
|
label: e.label,
|
|
7864
7846
|
value: e.value
|
|
7865
|
-
})) : []),
|
|
7847
|
+
})) : []), ie = r(() => {
|
|
7866
7848
|
if (b.value) return (T.value.length > 1 ? [
|
|
7867
7849
|
"bar_stacked",
|
|
7868
7850
|
"line",
|
|
@@ -7875,7 +7857,7 @@ var Iu = {
|
|
|
7875
7857
|
"area"
|
|
7876
7858
|
]).includes(b.value?.id);
|
|
7877
7859
|
});
|
|
7878
|
-
|
|
7860
|
+
V(S, (e) => {
|
|
7879
7861
|
if (!b.value) return;
|
|
7880
7862
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7881
7863
|
if (r) {
|
|
@@ -7891,34 +7873,34 @@ var Iu = {
|
|
|
7891
7873
|
}
|
|
7892
7874
|
b.value = e[0];
|
|
7893
7875
|
});
|
|
7894
|
-
function
|
|
7876
|
+
function U(e) {
|
|
7895
7877
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7896
7878
|
}
|
|
7897
|
-
let
|
|
7879
|
+
let ae = r(() => N.value.map((e) => ({
|
|
7898
7880
|
id: e.value,
|
|
7899
7881
|
text: e.label,
|
|
7900
7882
|
context: e.description ? { description: e.description } : void 0
|
|
7901
|
-
}))),
|
|
7883
|
+
}))), W = r(() => ee.value.map((e) => ({
|
|
7902
7884
|
id: e.value,
|
|
7903
7885
|
text: e.label
|
|
7904
|
-
}))),
|
|
7886
|
+
}))), oe = r(() => D.value.map((e) => ({
|
|
7905
7887
|
id: e.field || "",
|
|
7906
7888
|
text: e.headerName || e.field || "",
|
|
7907
7889
|
icon: Ks(e.context?.dataType || null) || "circle-chevron-down"
|
|
7908
|
-
}))),
|
|
7909
|
-
get: () => T.value.map((e) =>
|
|
7890
|
+
}))), se = r({
|
|
7891
|
+
get: () => T.value.map((e) => oe.value.find((t) => t.id === e)).filter(Boolean),
|
|
7910
7892
|
set: (e) => {
|
|
7911
7893
|
T.value = e.map((e) => e.id);
|
|
7912
7894
|
}
|
|
7913
|
-
}),
|
|
7895
|
+
}), G = r(() => {
|
|
7914
7896
|
let e = [], t = {
|
|
7915
7897
|
value: "y-axis",
|
|
7916
7898
|
label: "Y Axis",
|
|
7917
7899
|
prefixLabel: "Y Axis",
|
|
7918
7900
|
icon: "chart-bar-decreasing",
|
|
7919
7901
|
allowDeselect: !1,
|
|
7920
|
-
availableOptions:
|
|
7921
|
-
currentOption:
|
|
7902
|
+
availableOptions: ae.value,
|
|
7903
|
+
currentOption: ae.value.find((e) => e.id === M.value),
|
|
7922
7904
|
updateSelectedOption: (e) => {
|
|
7923
7905
|
M && e !== M.value && (M.value = e);
|
|
7924
7906
|
}
|
|
@@ -7928,12 +7910,12 @@ var Iu = {
|
|
|
7928
7910
|
label: "X Axis",
|
|
7929
7911
|
icon: "align-end-horizontal",
|
|
7930
7912
|
allowDeselect: !1,
|
|
7931
|
-
availableOptions:
|
|
7913
|
+
availableOptions: oe.value,
|
|
7932
7914
|
...i ? {
|
|
7933
|
-
activeOptions:
|
|
7915
|
+
activeOptions: se,
|
|
7934
7916
|
activeOptionLimit: n.rowGroupLimit
|
|
7935
7917
|
} : {
|
|
7936
|
-
currentOption:
|
|
7918
|
+
currentOption: oe.value.find((e) => e.id === T.value[0]),
|
|
7937
7919
|
updateSelectedOption: (e) => {
|
|
7938
7920
|
T.value = e ? [e] : [];
|
|
7939
7921
|
}
|
|
@@ -7945,7 +7927,7 @@ var Iu = {
|
|
|
7945
7927
|
allowDeselect: !0,
|
|
7946
7928
|
availableOptions: w.value,
|
|
7947
7929
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7948
|
-
disabled: !
|
|
7930
|
+
disabled: !ie.value,
|
|
7949
7931
|
disabledReason: "Sorting is not available for this chart type",
|
|
7950
7932
|
updateSelectedOption: (e) => {
|
|
7951
7933
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7967,7 +7949,7 @@ var Iu = {
|
|
|
7967
7949
|
t && b && (b.value = t);
|
|
7968
7950
|
}
|
|
7969
7951
|
};
|
|
7970
|
-
if (
|
|
7952
|
+
if (ae.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && W.value.length > 0) {
|
|
7971
7953
|
let t = {
|
|
7972
7954
|
value: "secondary-y-axis",
|
|
7973
7955
|
label: "Metric Overlay",
|
|
@@ -7976,8 +7958,8 @@ var Iu = {
|
|
|
7976
7958
|
allowDeselect: !0,
|
|
7977
7959
|
disabled: j.value,
|
|
7978
7960
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7979
|
-
availableOptions:
|
|
7980
|
-
currentOption:
|
|
7961
|
+
availableOptions: W.value,
|
|
7962
|
+
currentOption: W.value.find((e) => e.id === F?.value),
|
|
7981
7963
|
updateSelectedOption: (e) => {
|
|
7982
7964
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7983
7965
|
}
|
|
@@ -8005,25 +7987,25 @@ var Iu = {
|
|
|
8005
7987
|
n && e.push(n);
|
|
8006
7988
|
}
|
|
8007
7989
|
let c = i ? 2 : 1;
|
|
8008
|
-
return
|
|
7990
|
+
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);
|
|
8009
7991
|
});
|
|
8010
|
-
|
|
7992
|
+
V(v, (e) => {
|
|
8011
7993
|
e && (p.value = e);
|
|
8012
7994
|
});
|
|
8013
|
-
let K = r(() => _.value &&
|
|
7995
|
+
let K = r(() => _.value && G.value.find((e) => e.value === _.value) || null), ce = (e) => {
|
|
8014
7996
|
let t = K.value;
|
|
8015
7997
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
8016
7998
|
}, le = (e) => K.value?.isMultiSelect ? null : ce(e), ue = (e) => K.value?.isMultiSelect ? {
|
|
8017
7999
|
variant: "checkbox",
|
|
8018
|
-
renderer:
|
|
8019
|
-
} :
|
|
8000
|
+
renderer: Ru
|
|
8001
|
+
} : U(e) ? { renderer: Ru } : { variant: "icon" }, de = (e) => {
|
|
8020
8002
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
8021
8003
|
}, fe = () => {
|
|
8022
8004
|
g.value = !1, _.value = void 0;
|
|
8023
8005
|
}, pe = () => {
|
|
8024
8006
|
_.value = void 0;
|
|
8025
8007
|
};
|
|
8026
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
8008
|
+
return (n, r) => (E(), o(t, null, [s("div", zu, [s("div", null, [re((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Bu, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(ia, {
|
|
8027
8009
|
open: g.value,
|
|
8028
8010
|
label: "Chart Configuration",
|
|
8029
8011
|
icon: "chart-area",
|
|
@@ -8038,13 +8020,13 @@ var Iu = {
|
|
|
8038
8020
|
},
|
|
8039
8021
|
isList: !0
|
|
8040
8022
|
}, {
|
|
8041
|
-
default:
|
|
8023
|
+
default: H(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
8042
8024
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
8043
8025
|
style: {
|
|
8044
8026
|
"padding-top": "4px",
|
|
8045
8027
|
"padding-bottom": "12px"
|
|
8046
8028
|
}
|
|
8047
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
8029
|
+
}, " Chart Configuration ")], -1), s("ul", Vu, [(E(!0), o(t, null, k(G.value, (e) => (E(), o("li", {
|
|
8048
8030
|
id: `pv-chart-config-${e.value}`,
|
|
8049
8031
|
key: e.value,
|
|
8050
8032
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -8057,7 +8039,7 @@ var Iu = {
|
|
|
8057
8039
|
style: { width: "100%" },
|
|
8058
8040
|
variant: "white"
|
|
8059
8041
|
}, c({
|
|
8060
|
-
trigger:
|
|
8042
|
+
trigger: H(() => [u(za, {
|
|
8061
8043
|
config: { variant: "icon" },
|
|
8062
8044
|
disabled: e.disabled,
|
|
8063
8045
|
id: e.value,
|
|
@@ -8074,19 +8056,19 @@ var Iu = {
|
|
|
8074
8056
|
_: 2
|
|
8075
8057
|
}, [e.disabled && e.disabledReason ? {
|
|
8076
8058
|
name: "content",
|
|
8077
|
-
fn:
|
|
8059
|
+
fn: H(() => [s("div", Uu, P(e.disabledReason), 1)]),
|
|
8078
8060
|
key: "0"
|
|
8079
|
-
} : void 0]), 1024)], 40,
|
|
8061
|
+
} : void 0]), 1024)], 40, Hu))), 128))])]),
|
|
8080
8062
|
_: 1
|
|
8081
8063
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Xe), [fe, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
8082
8064
|
class: "pv-flex pv-space-between",
|
|
8083
8065
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
8084
8066
|
}, [e.chartFilter ? (E(), i(xi, {
|
|
8085
8067
|
key: 0,
|
|
8086
|
-
options:
|
|
8068
|
+
options: B.value,
|
|
8087
8069
|
modelValue: I(ne),
|
|
8088
8070
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null
|
|
8089
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
8071
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Wu, [(E(!0), o(t, null, k(G.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Xa, {
|
|
8090
8072
|
key: 0,
|
|
8091
8073
|
label: e.label,
|
|
8092
8074
|
prefixLabel: e.prefixLabel,
|
|
@@ -8096,7 +8078,7 @@ var Iu = {
|
|
|
8096
8078
|
disableSearchInput: !0,
|
|
8097
8079
|
disabled: e.disabled,
|
|
8098
8080
|
optionsVariant: "checkbox",
|
|
8099
|
-
optionsRenderer:
|
|
8081
|
+
optionsRenderer: Ru
|
|
8100
8082
|
}, null, 8, [
|
|
8101
8083
|
"label",
|
|
8102
8084
|
"prefixLabel",
|
|
@@ -8134,13 +8116,13 @@ var Iu = {
|
|
|
8134
8116
|
},
|
|
8135
8117
|
isList: !0
|
|
8136
8118
|
}, {
|
|
8137
|
-
default:
|
|
8119
|
+
default: H(() => [K.value ? (E(), o(t, { key: 0 }, [K.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
8138
8120
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8139
8121
|
style: {
|
|
8140
8122
|
"padding-left": "2px",
|
|
8141
8123
|
"padding-bottom": "6px"
|
|
8142
8124
|
}
|
|
8143
|
-
}, " Viewing ", -1), u(
|
|
8125
|
+
}, " Viewing ", -1), u(Du, {
|
|
8144
8126
|
modelValue: K.value.activeOptions.value,
|
|
8145
8127
|
"onUpdate:modelValue": r[2] ||= (e) => K.value.activeOptions.value = e,
|
|
8146
8128
|
options: K.value.availableOptions || [],
|
|
@@ -8150,7 +8132,7 @@ var Iu = {
|
|
|
8150
8132
|
"modelValue",
|
|
8151
8133
|
"options",
|
|
8152
8134
|
"activeOptionLimit"
|
|
8153
|
-
])], 64)) : (E(), o("ul",
|
|
8135
|
+
])], 64)) : (E(), o("ul", Gu, [(E(!0), o(t, null, k(K.value.availableOptions, (e) => (E(), o("li", {
|
|
8154
8136
|
key: e.id,
|
|
8155
8137
|
"data-active": le(e)
|
|
8156
8138
|
}, [u(za, {
|
|
@@ -8175,14 +8157,14 @@ var Iu = {
|
|
|
8175
8157
|
"disabled",
|
|
8176
8158
|
"selectedIds",
|
|
8177
8159
|
"onHandleSelected"
|
|
8178
|
-
])], 8,
|
|
8160
|
+
])], 8, Ku))), 128))]))], 64)) : a("", !0)]),
|
|
8179
8161
|
_: 1
|
|
8180
8162
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
8181
8163
|
}
|
|
8182
8164
|
}), [["__scopeId", "data-v-681e0d80"]]);
|
|
8183
8165
|
//#endregion
|
|
8184
8166
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
8185
|
-
function
|
|
8167
|
+
function Ju(e, t, n, r, i) {
|
|
8186
8168
|
return i ? {
|
|
8187
8169
|
xKey: n,
|
|
8188
8170
|
xName: r,
|
|
@@ -8197,7 +8179,7 @@ function Yu(e, t, n, r, i) {
|
|
|
8197
8179
|
}
|
|
8198
8180
|
//#endregion
|
|
8199
8181
|
//#region src/components/charts/PvDataTableWithChart/helpers.ts
|
|
8200
|
-
var
|
|
8182
|
+
var Yu = ({ 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 : "", Xu = (e, t) => `${e}_${t}`, Zu = (e) => `secondaryCategory_${e}`, Qu = (e, t, n, r, i = []) => {
|
|
8201
8183
|
if (!e || e.length === 0) return {
|
|
8202
8184
|
data: [],
|
|
8203
8185
|
uniqueFieldValues: []
|
|
@@ -8210,7 +8192,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8210
8192
|
let o = e.reduce((e, o) => {
|
|
8211
8193
|
let s = o[t];
|
|
8212
8194
|
e[s] || (e[s] = {});
|
|
8213
|
-
let c = o[n], l =
|
|
8195
|
+
let c = o[n], l = Zu(c);
|
|
8214
8196
|
e[s][l] = `${s}-${c}`;
|
|
8215
8197
|
for (let t of r) {
|
|
8216
8198
|
let r = t.value, i = 0;
|
|
@@ -8218,7 +8200,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8218
8200
|
let l = o[r];
|
|
8219
8201
|
if (a.add(c), n && l) {
|
|
8220
8202
|
let t = l ?? 0;
|
|
8221
|
-
e[s][
|
|
8203
|
+
e[s][Xu(r, c)] = t, i += t;
|
|
8222
8204
|
}
|
|
8223
8205
|
e[s][`${r}${tc}`] = i;
|
|
8224
8206
|
}
|
|
@@ -8232,7 +8214,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8232
8214
|
})),
|
|
8233
8215
|
uniqueFieldValues: Array.from(a)
|
|
8234
8216
|
};
|
|
8235
|
-
},
|
|
8217
|
+
}, $u = (e, t, n) => {
|
|
8236
8218
|
let r = -Infinity;
|
|
8237
8219
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
8238
8220
|
let n = e[t + tc];
|
|
@@ -8241,16 +8223,16 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8241
8223
|
let n = e[t];
|
|
8242
8224
|
typeof n == "number" && n > r && (r = n);
|
|
8243
8225
|
})), r;
|
|
8244
|
-
},
|
|
8226
|
+
}, ed = { style: {
|
|
8245
8227
|
height: "100%",
|
|
8246
8228
|
width: "100%"
|
|
8247
|
-
} },
|
|
8229
|
+
} }, td = {
|
|
8248
8230
|
key: 0,
|
|
8249
8231
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
8250
|
-
},
|
|
8232
|
+
}, nd = { class: "pv-flex" }, rd = { class: "pv-relative pv-margin-auto" }, id = { class: "pv-chart-overlay pv-flex pv-align-center" }, ad = { key: 0 }, od = {
|
|
8251
8233
|
key: 1,
|
|
8252
8234
|
class: "pv-text-body-xs"
|
|
8253
|
-
},
|
|
8235
|
+
}, sd = /* @__PURE__ */ d({
|
|
8254
8236
|
__name: "PvDataTableWithChart",
|
|
8255
8237
|
props: {
|
|
8256
8238
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -8349,7 +8331,6 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8349
8331
|
default: (e) => !e.filterPanelAboveChart
|
|
8350
8332
|
},
|
|
8351
8333
|
enableTableSearch: { type: Boolean },
|
|
8352
|
-
filterSearchMinLength: {},
|
|
8353
8334
|
enableTopSlot: {
|
|
8354
8335
|
type: Boolean,
|
|
8355
8336
|
default: !0
|
|
@@ -8490,15 +8471,15 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8490
8471
|
D(Ko, z);
|
|
8491
8472
|
let { setFilterSelectedValues: te } = R, ne = O(!1);
|
|
8492
8473
|
D(ns, ne);
|
|
8493
|
-
let
|
|
8474
|
+
let B = O(l.isTableGrouped), re = (e) => {
|
|
8494
8475
|
d("table-overlay-change", e);
|
|
8495
|
-
},
|
|
8496
|
-
p.value = e.api,
|
|
8497
|
-
}, G = (e) => {
|
|
8498
|
-
d("first-data-rendered", e);
|
|
8476
|
+
}, ie = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && R.filterModelEmpty.value)), U = r(() => z?.computedFocusType.value || null), ae = r(() => z?.computedFocuses.value || []), W = (e) => {
|
|
8477
|
+
p.value = e.api, B.value || p.value?.setRowGroupColumns([]), Ve(e.api), d("grid-ready", e);
|
|
8499
8478
|
}, oe = (e) => {
|
|
8479
|
+
d("first-data-rendered", e);
|
|
8480
|
+
}, se = (e) => {
|
|
8500
8481
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8501
|
-
if (
|
|
8482
|
+
if (B.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8502
8483
|
let t = ge.value;
|
|
8503
8484
|
if (n.length > _e.value) {
|
|
8504
8485
|
let t = n.slice(0, _e.value);
|
|
@@ -8507,11 +8488,11 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8507
8488
|
t.yAxis.defaultValue && (q.value = t.yAxis.defaultValue);
|
|
8508
8489
|
}
|
|
8509
8490
|
d("column-row-group-changed", e);
|
|
8510
|
-
},
|
|
8491
|
+
}, G = async (e) => {
|
|
8511
8492
|
Ve(e.api), ne.value && d("filter-changed", e);
|
|
8512
8493
|
};
|
|
8513
|
-
|
|
8514
|
-
if (
|
|
8494
|
+
V(() => j.value, () => {
|
|
8495
|
+
if (B.value) {
|
|
8515
8496
|
if (!p.value) return;
|
|
8516
8497
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8517
8498
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8549,7 +8530,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8549
8530
|
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8550
8531
|
let n = le(N.value);
|
|
8551
8532
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
8552
|
-
}, 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(() =>
|
|
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(() => Pu(fe.value?.id || "")), _e = r(() => Math.min(ge.value.rowGroupLimit, l.rowGroupLimit)), ve = r(() => {
|
|
8553
8534
|
let e = ge.value.xAxis.filterColumns;
|
|
8554
8535
|
return e ? e(k.value) : k.value;
|
|
8555
8536
|
}), ye = O([{
|
|
@@ -8560,17 +8541,17 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8560
8541
|
text: "Descending",
|
|
8561
8542
|
id: "desc",
|
|
8562
8543
|
icon: "arrow-down-narrow-wide"
|
|
8563
|
-
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value),
|
|
8564
|
-
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,
|
|
8544
|
+
}]), be = O([]), xe = O([]), q = O(l.yKey), Se = O(ee.value[0]?.value), J = r(() => l.crosslineOverlayGroups ?? []), Ce = O(new Set(J.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), we = r(() => J.value.filter((e) => Ce.value.has(e.id)).flatMap((e) => e.overlays)), Y = O(null), Te = O(ye.value.find((e) => e.id === l.initialSort || "")), Ee = O("");
|
|
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, Ce), D(vs, J);
|
|
8565
8546
|
let De = (e) => {
|
|
8566
8547
|
fe.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8567
8548
|
};
|
|
8568
|
-
|
|
8569
|
-
let e = Ie.value, t = e !== he, n =
|
|
8549
|
+
V(() => de.value, () => {
|
|
8550
|
+
let e = Ie.value, t = e !== he, n = Pu(fe.value?.id || ""), r = de.value.some((e) => e.id === fe.value?.id);
|
|
8570
8551
|
he = e, !(r && (!t || !n.storeBeforeChange)) && De((e ? me?.value : pe?.value) ?? l.chartType);
|
|
8571
|
-
}),
|
|
8552
|
+
}), V(() => l.chartType, (e) => De(e)), V(() => l.yKey, (e) => {
|
|
8572
8553
|
e !== q.value && (q.value = e);
|
|
8573
|
-
}),
|
|
8554
|
+
}), V(Ee, (e) => {
|
|
8574
8555
|
if (l.chartFilter && p.value) {
|
|
8575
8556
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8576
8557
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
@@ -8595,7 +8576,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8595
8576
|
let o = {
|
|
8596
8577
|
type: t,
|
|
8597
8578
|
xKey: N.value,
|
|
8598
|
-
yKey:
|
|
8579
|
+
yKey: Xu(q.value, a),
|
|
8599
8580
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8600
8581
|
stacked: e,
|
|
8601
8582
|
label: {
|
|
@@ -8651,7 +8632,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8651
8632
|
}))), Se.value) {
|
|
8652
8633
|
let t;
|
|
8653
8634
|
t = e ? `${Se.value}_sort_total` : Se.value;
|
|
8654
|
-
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
8635
|
+
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Ju(N.value, r, t, Ae.value, je.value), a = {
|
|
8655
8636
|
type: "scatter",
|
|
8656
8637
|
id: "metric-overlay",
|
|
8657
8638
|
data: Z.value,
|
|
@@ -8730,21 +8711,21 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8730
8711
|
legendItemKey: N.value,
|
|
8731
8712
|
angleKey: q.value
|
|
8732
8713
|
}]);
|
|
8733
|
-
|
|
8714
|
+
V(q, (e, t) => {
|
|
8734
8715
|
d("chart-state-changed", {
|
|
8735
8716
|
api: p.value,
|
|
8736
8717
|
newState: { seriesField: e },
|
|
8737
8718
|
oldState: { seriesField: t }
|
|
8738
8719
|
});
|
|
8739
|
-
}),
|
|
8720
|
+
}), V(Se, (e, t) => {
|
|
8740
8721
|
d("chart-state-changed", {
|
|
8741
8722
|
api: p.value,
|
|
8742
8723
|
newState: { secondarySeriesField: e },
|
|
8743
8724
|
oldState: { secondarySeriesField: t }
|
|
8744
8725
|
});
|
|
8745
|
-
}),
|
|
8746
|
-
e?.id &&
|
|
8747
|
-
let n =
|
|
8726
|
+
}), V(fe, (e, t) => {
|
|
8727
|
+
e?.id && Pu(e.id).storeBeforeChange && (Ie.value ? me.value = e.id : pe.value = e.id);
|
|
8728
|
+
let n = Pu(e?.id || ""), r = Pu(t?.id || "");
|
|
8748
8729
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8749
8730
|
l.yKey ? q.value = l.yKey : I.value.length > 0 && (q.value = I.value[0].value);
|
|
8750
8731
|
}), d("chart-state-changed", {
|
|
@@ -8752,34 +8733,34 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8752
8733
|
newState: { chartType: e?.id },
|
|
8753
8734
|
oldState: { chartType: t?.id }
|
|
8754
8735
|
});
|
|
8755
|
-
}),
|
|
8736
|
+
}), V(ve, (e) => {
|
|
8756
8737
|
if (e.length === 1 && j.value.length === 0) {
|
|
8757
8738
|
let t = e[0].field;
|
|
8758
8739
|
t && (j.value = [t]);
|
|
8759
8740
|
}
|
|
8760
|
-
}),
|
|
8741
|
+
}), V(I, (e) => {
|
|
8761
8742
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
8762
|
-
}),
|
|
8743
|
+
}), V(Te, (e, t) => {
|
|
8763
8744
|
d("chart-state-changed", {
|
|
8764
8745
|
api: p.value,
|
|
8765
8746
|
newState: { chartSort: e?.id },
|
|
8766
8747
|
oldState: { chartSort: t?.id }
|
|
8767
8748
|
});
|
|
8768
|
-
}),
|
|
8749
|
+
}), V(j, (e, t) => {
|
|
8769
8750
|
d("chart-state-changed", {
|
|
8770
8751
|
api: p.value,
|
|
8771
8752
|
newState: { chartCategoryFields: e },
|
|
8772
8753
|
oldState: { chartCategoryFields: t }
|
|
8773
8754
|
});
|
|
8774
|
-
}), B
|
|
8755
|
+
}), V(B, (e, t) => {
|
|
8775
8756
|
d("chart-state-changed", {
|
|
8776
8757
|
api: p.value,
|
|
8777
8758
|
newState: { tableGrouped: e },
|
|
8778
8759
|
oldState: { tableGrouped: t }
|
|
8779
8760
|
});
|
|
8780
|
-
}),
|
|
8761
|
+
}), V(() => l.isTableGrouped, (e, t) => {
|
|
8781
8762
|
!p.value || e === t || !l.enableGroupingToggle || ct(e);
|
|
8782
|
-
}),
|
|
8763
|
+
}), V(() => l.initialFocusData, (e, t) => {
|
|
8783
8764
|
if (!(tt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8784
8765
|
if (!e?.focusType) {
|
|
8785
8766
|
z.setFocuses([]);
|
|
@@ -8796,7 +8777,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8796
8777
|
return;
|
|
8797
8778
|
}
|
|
8798
8779
|
if (t) {
|
|
8799
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
8780
|
+
let { stackedData: n, uniqueFieldValues: r } = Qu(e, N.value, t, He.value, L.value);
|
|
8800
8781
|
xe.value = n, Y.value = {
|
|
8801
8782
|
fieldName: t,
|
|
8802
8783
|
fieldValues: r
|
|
@@ -8857,10 +8838,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8857
8838
|
n.add(o);
|
|
8858
8839
|
let s = t.aggData;
|
|
8859
8840
|
if (o && s) {
|
|
8860
|
-
let n = String(o), s =
|
|
8841
|
+
let n = String(o), s = Zu(n);
|
|
8861
8842
|
r[s] = `${e.key}-${n}`;
|
|
8862
8843
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
8863
|
-
r[
|
|
8844
|
+
r[Xu(a.value, n)] = c, i += c;
|
|
8864
8845
|
}
|
|
8865
8846
|
}), r[`${a.value}${tc}`] = i;
|
|
8866
8847
|
return {
|
|
@@ -8877,8 +8858,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8877
8858
|
{ [N.value]: "" },
|
|
8878
8859
|
e[0],
|
|
8879
8860
|
{ [N.value]: " " }
|
|
8880
|
-
]), l.enableFocusView && e &&
|
|
8881
|
-
let t = e?.filter((e) =>
|
|
8861
|
+
]), l.enableFocusView && e && ae.value.length > 0 && U.value) {
|
|
8862
|
+
let t = e?.filter((e) => ae.value.includes(e[N.value])), n = e?.filter((e) => !ae.value.includes(e[N.value]));
|
|
8882
8863
|
e = [
|
|
8883
8864
|
...t || [],
|
|
8884
8865
|
{ [N.value]: ec },
|
|
@@ -8899,20 +8880,20 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8899
8880
|
let n = e[r];
|
|
8900
8881
|
if (typeof n != "number") return e;
|
|
8901
8882
|
let a = 0;
|
|
8902
|
-
for (let n of i) typeof e[
|
|
8883
|
+
for (let n of i) typeof e[Xu(t, String(n))] == "number" && a++;
|
|
8903
8884
|
return {
|
|
8904
8885
|
...e,
|
|
8905
8886
|
[r]: a > 0 ? n / a : null
|
|
8906
8887
|
};
|
|
8907
8888
|
});
|
|
8908
|
-
}), Ke = r(() => X.value?.length || 0), qe = r(() =>
|
|
8889
|
+
}), Ke = r(() => X.value?.length || 0), qe = r(() => $u(Me.value ? xe.value : X.value, q.value, Me.value)), Je = r(() => Y.value?.fieldValues?.length || 0), Ye = r(() => {
|
|
8909
8890
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8910
8891
|
return Math.min(Math.max(e, .05), .75);
|
|
8911
|
-
}), 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 &&
|
|
8912
|
-
let e = le(
|
|
8913
|
-
return
|
|
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 && U.value && ae.value.length === 0 && l.percentOfFocusViewYKey && q.value && q.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8893
|
+
let e = le(U.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8894
|
+
return Yu({
|
|
8914
8895
|
currentRowGroupColumnsLength: j.value.length,
|
|
8915
|
-
shouldShowFocusOverlayText: $e.value || l.focusRequired &&
|
|
8896
|
+
shouldShowFocusOverlayText: $e.value || l.focusRequired && ae.value.length === 0,
|
|
8916
8897
|
chartDataEmpty: Qe.value,
|
|
8917
8898
|
missingFocusText: l.missingFocusText,
|
|
8918
8899
|
displayGroupByName: t
|
|
@@ -8927,17 +8908,17 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8927
8908
|
}
|
|
8928
8909
|
}
|
|
8929
8910
|
return null;
|
|
8930
|
-
}, rt = r(() => $e.value ||
|
|
8911
|
+
}, rt = r(() => $e.value || ie.value || !l.isLoading && et.value !== ""), it = r(() => {
|
|
8931
8912
|
let e = {};
|
|
8932
8913
|
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] : X.value, e.legend = {
|
|
8933
8914
|
toggleSeries: !1,
|
|
8934
8915
|
preventHidingAll: !0,
|
|
8935
8916
|
enabled: j.value.length > 1
|
|
8936
8917
|
};
|
|
8937
|
-
let t = Me.value ? Y.value?.fieldValues.map((e) =>
|
|
8918
|
+
let t = Me.value ? Y.value?.fieldValues.map((e) => Xu(q.value, e)) || [] : q.value ? [q.value] : [], n = (() => {
|
|
8938
8919
|
if (!Se.value) return [];
|
|
8939
8920
|
let e = Se.value;
|
|
8940
|
-
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) =>
|
|
8921
|
+
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) => Xu(e, String(t))) || [] : [e];
|
|
8941
8922
|
})(), 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 = [];
|
|
8942
8923
|
if (a.push({
|
|
8943
8924
|
type: "category",
|
|
@@ -8961,7 +8942,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8961
8942
|
if (e.value === "--SEPARATOR--") return "";
|
|
8962
8943
|
let t = e.value, n = ce(N.value);
|
|
8963
8944
|
typeof n == "function" && (t = n(e));
|
|
8964
|
-
let r = l.enableFocusView &&
|
|
8945
|
+
let r = l.enableFocusView && ae.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8965
8946
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8966
8947
|
let e = 50 - r.length - 3;
|
|
8967
8948
|
return t.substring(0, e) + "..." + r;
|
|
@@ -9038,10 +9019,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9038
9019
|
});
|
|
9039
9020
|
}
|
|
9040
9021
|
return e.axes = a, e.series = Ne.value, e;
|
|
9041
|
-
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !
|
|
9022
|
+
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !ie.value && !l.isLoading && et.value !== ""), st = (e) => {
|
|
9042
9023
|
g.value = e, d("chart-collapsed", e);
|
|
9043
9024
|
}, ct = (e) => {
|
|
9044
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
9025
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), B.value = e);
|
|
9045
9026
|
};
|
|
9046
9027
|
return n({
|
|
9047
9028
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
@@ -9057,12 +9038,12 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9057
9038
|
}
|
|
9058
9039
|
}), w(async () => {
|
|
9059
9040
|
await v(), x.value = l.filterPanelAboveChart;
|
|
9060
|
-
}), (n, r) => (E(), o("div",
|
|
9041
|
+
}), (n, r) => (E(), o("div", ed, [
|
|
9061
9042
|
s("div", {
|
|
9062
9043
|
class: "pv-stack-16",
|
|
9063
9044
|
id: b
|
|
9064
9045
|
}),
|
|
9065
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
9046
|
+
e.hideChart ? a("", !0) : (E(), o("div", td, [
|
|
9066
9047
|
u(gn, {
|
|
9067
9048
|
rightIcon: "chevrons-down-up",
|
|
9068
9049
|
label: "Collapse",
|
|
@@ -9074,7 +9055,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9074
9055
|
onClick: r[0] ||= (e) => st(!g.value),
|
|
9075
9056
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
9076
9057
|
}, null, 8, ["class"]),
|
|
9077
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
9058
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", nd, [u(ln, {
|
|
9078
9059
|
name: "chart-line",
|
|
9079
9060
|
size: 20,
|
|
9080
9061
|
class: "pv-text-subdued"
|
|
@@ -9087,7 +9068,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9087
9068
|
variant: "secondary",
|
|
9088
9069
|
onClick: r[1] ||= (e) => st(!g.value)
|
|
9089
9070
|
})], 2),
|
|
9090
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
9071
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(qu, {
|
|
9091
9072
|
enablePanel: X.value != null && X.value.length > 0,
|
|
9092
9073
|
chartFilter: e.chartFilter,
|
|
9093
9074
|
rowGroupLimit: _e.value,
|
|
@@ -9099,7 +9080,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9099
9080
|
"rowGroupLimit",
|
|
9100
9081
|
"use-combined-button",
|
|
9101
9082
|
"chart-config-options"
|
|
9102
|
-
]), s("div",
|
|
9083
|
+
]), s("div", rd, [u(Zt, {
|
|
9103
9084
|
ref_key: "pvChartRef",
|
|
9104
9085
|
ref: h,
|
|
9105
9086
|
isLoading: at.value,
|
|
@@ -9109,36 +9090,36 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9109
9090
|
"isLoading",
|
|
9110
9091
|
"options",
|
|
9111
9092
|
"enableFocusView"
|
|
9112
|
-
]), s("div",
|
|
9093
|
+
]), s("div", id, [ie.value ? (E(), o("div", ad, [(E(), i(M(e.emptyChartFilterRenderer)))])) : ot.value ? (E(), o("p", od, P(et.value), 1)) : a("", !0)])])], 2)
|
|
9113
9094
|
])),
|
|
9114
|
-
u(
|
|
9095
|
+
u(ou, _({
|
|
9115
9096
|
ref_key: "pvDataTableRef",
|
|
9116
9097
|
ref: m
|
|
9117
9098
|
}, n.$props, {
|
|
9118
9099
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
9119
|
-
pagination: e.pagination || !
|
|
9120
|
-
onColumnRowGroupChanged:
|
|
9121
|
-
onGridReady:
|
|
9122
|
-
onFilterChanged:
|
|
9100
|
+
pagination: e.pagination || !B.value,
|
|
9101
|
+
onColumnRowGroupChanged: se,
|
|
9102
|
+
onGridReady: W,
|
|
9103
|
+
onFilterChanged: G,
|
|
9123
9104
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
9124
9105
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
9125
|
-
onFirstDataRendered:
|
|
9106
|
+
onFirstDataRendered: oe,
|
|
9126
9107
|
onColumnMoved: r[5] ||= (e) => d("column-moved", e),
|
|
9127
9108
|
onColumnResized: r[6] ||= (e) => d("column-resized", e),
|
|
9128
9109
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
9129
9110
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
9130
9111
|
}), {
|
|
9131
|
-
"top-slot":
|
|
9112
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(hu, {
|
|
9132
9113
|
key: 0,
|
|
9133
|
-
groupedModeEnabled:
|
|
9114
|
+
groupedModeEnabled: B.value,
|
|
9134
9115
|
tableConfigOptions: l.tableConfigOptions,
|
|
9135
9116
|
onToggleGroup: ct,
|
|
9136
|
-
onTableOverlayChange:
|
|
9117
|
+
onTableOverlayChange: re
|
|
9137
9118
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(gn, {
|
|
9138
9119
|
key: 1,
|
|
9139
|
-
leftIcon:
|
|
9140
|
-
label:
|
|
9141
|
-
onClick: r[2] ||= (e) => ct(!
|
|
9120
|
+
leftIcon: B.value ? "ungroup" : "group",
|
|
9121
|
+
label: B.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
9122
|
+
onClick: r[2] ||= (e) => ct(!B.value),
|
|
9142
9123
|
variant: "secondary",
|
|
9143
9124
|
size: "lg"
|
|
9144
9125
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -9146,7 +9127,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9146
9127
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
9147
9128
|
]));
|
|
9148
9129
|
}
|
|
9149
|
-
}),
|
|
9130
|
+
}), cd = {
|
|
9150
9131
|
type: "Feature",
|
|
9151
9132
|
properties: { name: "Hawaii" },
|
|
9152
9133
|
geometry: {
|
|
@@ -9320,7 +9301,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9320
9301
|
]]
|
|
9321
9302
|
]
|
|
9322
9303
|
}
|
|
9323
|
-
},
|
|
9304
|
+
}, ld = {
|
|
9324
9305
|
type: "Feature",
|
|
9325
9306
|
properties: { name: "Alaska" },
|
|
9326
9307
|
geometry: {
|
|
@@ -9733,7 +9714,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9733
9714
|
]]
|
|
9734
9715
|
]
|
|
9735
9716
|
}
|
|
9736
|
-
},
|
|
9717
|
+
}, ud = "_FeatureMin", dd = "_FeatureMax", fd = (e) => hd[e] || e, pd = ld, md = cd, hd = {
|
|
9737
9718
|
AL: "Alabama",
|
|
9738
9719
|
AK: "Alaska",
|
|
9739
9720
|
AZ: "Arizona",
|
|
@@ -9784,7 +9765,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9784
9765
|
WV: "West Virginia",
|
|
9785
9766
|
WI: "Wisconsin",
|
|
9786
9767
|
WY: "Wyoming"
|
|
9787
|
-
},
|
|
9768
|
+
}, gd = { state: {
|
|
9788
9769
|
type: "FeatureCollection",
|
|
9789
9770
|
features: [
|
|
9790
9771
|
{
|
|
@@ -9793,7 +9774,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9793
9774
|
type: "Polygon",
|
|
9794
9775
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9795
9776
|
},
|
|
9796
|
-
properties: { name:
|
|
9777
|
+
properties: { name: ud }
|
|
9797
9778
|
},
|
|
9798
9779
|
{
|
|
9799
9780
|
type: "Feature",
|
|
@@ -9801,7 +9782,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9801
9782
|
type: "Polygon",
|
|
9802
9783
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9803
9784
|
},
|
|
9804
|
-
properties: { name:
|
|
9785
|
+
properties: { name: dd }
|
|
9805
9786
|
},
|
|
9806
9787
|
{
|
|
9807
9788
|
type: "Feature",
|
|
@@ -10987,7 +10968,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
10987
10968
|
},
|
|
10988
10969
|
properties: { name: "Michigan" }
|
|
10989
10970
|
},
|
|
10990
|
-
|
|
10971
|
+
md,
|
|
10991
10972
|
{
|
|
10992
10973
|
type: "Feature",
|
|
10993
10974
|
geometry: {
|
|
@@ -11931,7 +11912,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11931
11912
|
},
|
|
11932
11913
|
properties: { name: "New Hampshire" }
|
|
11933
11914
|
},
|
|
11934
|
-
|
|
11915
|
+
pd,
|
|
11935
11916
|
{
|
|
11936
11917
|
type: "Feature",
|
|
11937
11918
|
geometry: {
|
|
@@ -11995,12 +11976,12 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11995
11976
|
properties: { name: "Rhode Island" }
|
|
11996
11977
|
}
|
|
11997
11978
|
]
|
|
11998
|
-
} },
|
|
11979
|
+
} }, _d = (e, t, n, r, i) => {
|
|
11999
11980
|
if (e.length === 0) return [];
|
|
12000
11981
|
if (t !== "state") throw Error(`Unsupported topology type: ${t}`);
|
|
12001
11982
|
if (!e.every((e) => e.hasOwnProperty(t))) throw Error(`Input data must contain the field: ${t}`);
|
|
12002
11983
|
let a = e.map((e) => {
|
|
12003
|
-
let n =
|
|
11984
|
+
let n = fd(e[t]);
|
|
12004
11985
|
return {
|
|
12005
11986
|
...e,
|
|
12006
11987
|
[t]: e[t],
|
|
@@ -12008,22 +11989,22 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12008
11989
|
};
|
|
12009
11990
|
});
|
|
12010
11991
|
return a.push({
|
|
12011
|
-
[t]:
|
|
11992
|
+
[t]: ud,
|
|
12012
11993
|
[n]: r,
|
|
12013
|
-
name:
|
|
11994
|
+
name: ud
|
|
12014
11995
|
}), a.push({
|
|
12015
|
-
[t]:
|
|
11996
|
+
[t]: dd,
|
|
12016
11997
|
[n]: i,
|
|
12017
|
-
name:
|
|
11998
|
+
name: dd
|
|
12018
11999
|
}), a;
|
|
12019
|
-
},
|
|
12020
|
-
let t =
|
|
12000
|
+
}, vd = (e) => {
|
|
12001
|
+
let t = gd[e];
|
|
12021
12002
|
if (!t) throw Error(`No topology object found for type: ${e}`);
|
|
12022
12003
|
return t;
|
|
12023
|
-
},
|
|
12024
|
-
getTopologyObject:
|
|
12025
|
-
buildMapData:
|
|
12026
|
-
}),
|
|
12004
|
+
}, yd = () => ({
|
|
12005
|
+
getTopologyObject: vd,
|
|
12006
|
+
buildMapData: _d
|
|
12007
|
+
}), bd = { style: { width: "30%" } }, xd = ["min", "max"], Sd = { class: "pv-flex pv-space-between pv-text-body-xxs pv-text-subdued" }, Cd = /* @__PURE__ */ d({
|
|
12027
12008
|
__name: "MapGradient",
|
|
12028
12009
|
props: {
|
|
12029
12010
|
min: { default: 0 },
|
|
@@ -12032,7 +12013,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12032
12013
|
},
|
|
12033
12014
|
setup(e) {
|
|
12034
12015
|
let t = e, n = (e) => t.valueFormatter ? t.valueFormatter(e) : e.toLocaleString("en-US");
|
|
12035
|
-
return (t, r) => (E(), o("div",
|
|
12016
|
+
return (t, r) => (E(), o("div", bd, [s("div", {
|
|
12036
12017
|
min: e.min,
|
|
12037
12018
|
max: e.max,
|
|
12038
12019
|
"aria-hidden": "true",
|
|
@@ -12044,9 +12025,9 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12044
12025
|
"border-radius": "1rem",
|
|
12045
12026
|
height: "0.5rem"
|
|
12046
12027
|
}
|
|
12047
|
-
}, null, 8,
|
|
12028
|
+
}, null, 8, xd), s("div", Sd, [s("p", null, P(n(e.min)), 1), s("p", null, P(n(e.max)), 1)])]));
|
|
12048
12029
|
}
|
|
12049
|
-
}),
|
|
12030
|
+
}), wd = /* @__PURE__ */ d({
|
|
12050
12031
|
__name: "MapRegionSelector",
|
|
12051
12032
|
props: /* @__PURE__ */ g({
|
|
12052
12033
|
topologyType: {},
|
|
@@ -12062,14 +12043,14 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12062
12043
|
setup(e) {
|
|
12063
12044
|
let t = L(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
12064
12045
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
12065
|
-
return (a.selectableRegions ? a.selectableRegions : Object.keys(
|
|
12066
|
-
text:
|
|
12046
|
+
return (a.selectableRegions ? a.selectableRegions : Object.keys(hd)).map((e) => ({
|
|
12047
|
+
text: fd(e),
|
|
12067
12048
|
id: e
|
|
12068
12049
|
}));
|
|
12069
12050
|
});
|
|
12070
|
-
return
|
|
12051
|
+
return V(n, (e) => {
|
|
12071
12052
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
12072
|
-
}),
|
|
12053
|
+
}), V(t, (e) => {
|
|
12073
12054
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
12074
12055
|
}), (e, t) => (E(), i(Qa, {
|
|
12075
12056
|
style: { width: "125px" },
|
|
@@ -12085,10 +12066,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12085
12066
|
"options"
|
|
12086
12067
|
]));
|
|
12087
12068
|
}
|
|
12088
|
-
}),
|
|
12069
|
+
}), Td = {
|
|
12089
12070
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
12090
12071
|
style: { width: "100%" }
|
|
12091
|
-
},
|
|
12072
|
+
}, Ed = /* @__PURE__ */ d({
|
|
12092
12073
|
__name: "PvMapChart",
|
|
12093
12074
|
props: /* @__PURE__ */ g({
|
|
12094
12075
|
seriesKey: {},
|
|
@@ -12122,8 +12103,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12122
12103
|
}),
|
|
12123
12104
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
12124
12105
|
setup(e, { emit: n }) {
|
|
12125
|
-
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } =
|
|
12126
|
-
|
|
12106
|
+
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = yd(), 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]));
|
|
12107
|
+
V(c, (e) => {
|
|
12127
12108
|
l("region-selection-changed", { region: e });
|
|
12128
12109
|
});
|
|
12129
12110
|
let g = r(() => (c.value, {
|
|
@@ -12162,7 +12143,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12162
12143
|
overlays: { noData: { text: i.noDataMessage || "No data to display" } },
|
|
12163
12144
|
gradientLegend: { enabled: !1 }
|
|
12164
12145
|
}));
|
|
12165
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12146
|
+
return (n, r) => (E(), o(t, null, [s("div", Td, [u(wd, {
|
|
12166
12147
|
modelValue: c.value,
|
|
12167
12148
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
12168
12149
|
"selectable-regions": h.value,
|
|
@@ -12171,7 +12152,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12171
12152
|
"modelValue",
|
|
12172
12153
|
"selectable-regions",
|
|
12173
12154
|
"topology-type"
|
|
12174
|
-
]), u(
|
|
12155
|
+
]), u(Cd, {
|
|
12175
12156
|
min: e.gradientLegendMin,
|
|
12176
12157
|
max: e.gradientLegendMax,
|
|
12177
12158
|
"value-formatter": e.seriesValueFormatter
|
|
@@ -12188,6 +12169,6 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12188
12169
|
}
|
|
12189
12170
|
});
|
|
12190
12171
|
//#endregion
|
|
12191
|
-
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart,
|
|
12172
|
+
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart, ou as PvDataTable, sd as PvDataTableWithChart, Ed 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 };
|
|
12192
12173
|
|
|
12193
12174
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|