@turquoisehealth/pit-viper 2.194.6-dev.1 → 2.194.6
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 +2 -2
- 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/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 +856 -872
- 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 +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-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-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
|
|
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 L, useModel as R, useSlots as z, useTemplateRef as B, vModelCheckbox as ee, vModelText as te, vShow as V, watch as H, withCtx as U, withDirectives as ne, withModifiers as re } from "vue";
|
|
4
4
|
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { CellStyleModule as
|
|
5
|
+
import { LicenseManager as G } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as ie } from "ag-grid-vue3";
|
|
7
|
+
import { CellStyleModule as ae, CheckboxEditorModule as K, ClientSideRowModelModule as oe, ColumnApiModule as se, 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 J, TextEditorModule as Se, 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
|
+
G.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;
|
|
@@ -395,7 +395,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
395
395
|
},
|
|
396
396
|
emits: ["list-order-updated"],
|
|
397
397
|
setup(e, { expose: t, emit: n }) {
|
|
398
|
-
let r = O(null), i =
|
|
398
|
+
let r = O(null), i = B("popoverList"), a = e, s = n;
|
|
399
399
|
return a.isSortable && a.isList && Ye(i, [], {
|
|
400
400
|
animation: 150,
|
|
401
401
|
onUpdate: () => {
|
|
@@ -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 }), H(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) => ne((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: U(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", nn, "Loading...")) : a("", !0)], !0)]),
|
|
503
503
|
_: 3
|
|
504
504
|
}, 8, [
|
|
505
505
|
"class",
|
|
@@ -663,7 +663,7 @@ function yn(e, t) {
|
|
|
663
663
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
664
664
|
}
|
|
665
665
|
function bn(e, t = {}) {
|
|
666
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = an(), l = i ??
|
|
666
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = an(), l = i ?? z(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
667
667
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
668
668
|
}, h = () => {
|
|
669
669
|
if (!c.value) {
|
|
@@ -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), H(() => I(n), () => {
|
|
701
701
|
c.value && g();
|
|
702
702
|
}), {
|
|
703
703
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -1537,7 +1537,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1537
1537
|
}),
|
|
1538
1538
|
emits: ["update:modelValue"],
|
|
1539
1539
|
setup(e) {
|
|
1540
|
-
let t = e, c =
|
|
1540
|
+
let t = e, c = R(e, "modelValue"), l = O(null), u = O(null), d = O(null), f = Z(l), p = Z(d), m = {
|
|
1541
1541
|
"top-center": "top",
|
|
1542
1542
|
"bottom-center": "bottom",
|
|
1543
1543
|
"center-left": "left",
|
|
@@ -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
|
+
H(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
|
+
H([
|
|
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 H(j, (e) => {
|
|
1594
1594
|
t.showOnHover && D(e);
|
|
1595
1595
|
}), T(() => {
|
|
1596
1596
|
C();
|
|
1597
|
-
}), (r, u) =>
|
|
1597
|
+
}), (r, u) => ne((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
|
+
}, [ne(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), [[V, 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] ||= re((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: U(() => [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: U(() => [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
|
|
@@ -1722,7 +1722,7 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1722
1722
|
}),
|
|
1723
1723
|
emits: ["update:modelValue"],
|
|
1724
1724
|
setup(e) {
|
|
1725
|
-
let n =
|
|
1725
|
+
let n = R(e, "modelValue"), r = (e) => {
|
|
1726
1726
|
e.disabled || (n.value = e.value);
|
|
1727
1727
|
};
|
|
1728
1728
|
return (a, s) => (E(), o("div", { class: y(["pv-segmented-control", { "pv-segmented-control-large": e.size === "xl" }]) }, [(E(!0), o(t, null, k(e.options, (e) => (E(), i(bi, {
|
|
@@ -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: U(() => [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: U(() => [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 H(u, () => {
|
|
1778
1778
|
n.value = !0;
|
|
1779
1779
|
}), (e, t) => (E(), o("div", Si, [n.value ? (E(), o("div", {
|
|
1780
1780
|
key: 0,
|
|
@@ -1821,8 +1821,8 @@ var hi = { style: { width: "fit-content" } }, gi = /* @__PURE__ */ d({
|
|
|
1821
1821
|
}),
|
|
1822
1822
|
emits: ["update:modelValue"],
|
|
1823
1823
|
setup(e) {
|
|
1824
|
-
let t = e, n =
|
|
1825
|
-
|
|
1824
|
+
let t = e, n = B("dialog"), r = R(e, "modelValue");
|
|
1825
|
+
H(() => r.value, () => {
|
|
1826
1826
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1827
1827
|
});
|
|
1828
1828
|
let i = () => {
|
|
@@ -1910,7 +1910,7 @@ var Mi = [
|
|
|
1910
1910
|
}),
|
|
1911
1911
|
emits: ["update:modelValue"],
|
|
1912
1912
|
setup(e, { expose: t }) {
|
|
1913
|
-
let n = e, i =
|
|
1913
|
+
let n = e, i = B("search-input"), c = R(e, "modelValue"), l = r(() => ({
|
|
1914
1914
|
"pv-input-search": !0,
|
|
1915
1915
|
"pv-full-width": !0,
|
|
1916
1916
|
"pv-input-padded-end": !0
|
|
@@ -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, [ne(s("input", {
|
|
1924
1924
|
ref: "search-input",
|
|
1925
1925
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1926
1926
|
"data-testid": "pv-search-input",
|
|
@@ -1928,7 +1928,7 @@ var Mi = [
|
|
|
1928
1928
|
disabled: e.disabled,
|
|
1929
1929
|
class: y(l.value),
|
|
1930
1930
|
placeholder: e.placeholder
|
|
1931
|
-
}, null, 10, Ii), [[
|
|
1931
|
+
}, null, 10, Ii), [[te, c.value]]), e.displayShortcut ? (E(), o("kbd", Li, P(Ri))) : a("", !0)]));
|
|
1932
1932
|
}
|
|
1933
1933
|
});
|
|
1934
1934
|
Ze.extend(et), Ze.extend(Qe), Ze.extend($e);
|
|
@@ -1979,7 +1979,7 @@ var Bi = {
|
|
|
1979
1979
|
}),
|
|
1980
1980
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
1981
1981
|
setup(e, { emit: n }) {
|
|
1982
|
-
let r = e, i = n, c =
|
|
1982
|
+
let r = e, i = n, c = B("sidePanel"), l = R(e, "searchInput"), d = R(e, "modelValue");
|
|
1983
1983
|
w(() => {
|
|
1984
1984
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1985
1985
|
});
|
|
@@ -1990,7 +1990,7 @@ var Bi = {
|
|
|
1990
1990
|
}, p = () => {
|
|
1991
1991
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1992
1992
|
};
|
|
1993
|
-
return
|
|
1993
|
+
return H(() => 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: U(() => [u(ln, {
|
|
2227
2227
|
name: "close",
|
|
2228
|
-
onClick: r[0] ||=
|
|
2228
|
+
onClick: r[0] ||= re((e) => n.$emit("handle-clear"), ["stop"])
|
|
2229
2229
|
})]),
|
|
2230
|
-
"tooltip-content":
|
|
2230
|
+
"tooltip-content": U(() => [...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
|
+
}), H(() => n.queryText, () => {
|
|
2332
2332
|
p();
|
|
2333
2333
|
}), (n, r) => (E(), o(t, null, [
|
|
2334
2334
|
e.avatar ? (E(), i($i, {
|
|
@@ -2411,7 +2411,7 @@ var ha = {
|
|
|
2411
2411
|
}),
|
|
2412
2412
|
emits: ["update:modelValue"],
|
|
2413
2413
|
setup(e) {
|
|
2414
|
-
let t = e.id ??
|
|
2414
|
+
let t = e.id ?? L(), n = R(e, "modelValue");
|
|
2415
2415
|
return (r, i) => (E(), o("label", {
|
|
2416
2416
|
for: I(t),
|
|
2417
2417
|
class: y(["pv-label pv-switch pv-label-hover", {
|
|
@@ -2419,14 +2419,14 @@ 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), ne(s("input", {
|
|
2423
2423
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
2424
2424
|
disabled: e.disabled,
|
|
2425
2425
|
"aria-label": e.ariaLabel,
|
|
2426
2426
|
type: "checkbox",
|
|
2427
2427
|
role: "switch",
|
|
2428
2428
|
id: I(t)
|
|
2429
|
-
}, null, 8, Sa), [[
|
|
2429
|
+
}, null, 8, Sa), [[ee, n.value]])], 10, ba));
|
|
2430
2430
|
}
|
|
2431
2431
|
}), [["__scopeId", "data-v-73e6d2b2"]]), wa = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
2432
2432
|
__name: "PvMenuItemAction",
|
|
@@ -2443,11 +2443,11 @@ var ha = {
|
|
|
2443
2443
|
useTeleport: !0,
|
|
2444
2444
|
variant: "white"
|
|
2445
2445
|
}, c({
|
|
2446
|
-
trigger:
|
|
2446
|
+
trigger: U(() => [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: re(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: U(() => [s("div", null, P(o.value), 1)]),
|
|
2461
2461
|
key: "0"
|
|
2462
2462
|
} : void 0]), 1024));
|
|
2463
2463
|
}
|
|
@@ -2499,7 +2499,7 @@ var ha = {
|
|
|
2499
2499
|
},
|
|
2500
2500
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2501
2501
|
setup(e, { emit: t }) {
|
|
2502
|
-
let n = e, c =
|
|
2502
|
+
let n = e, c = B("inputRef"), l = m(Ta, void 0), d = m(Ea, O(!1)), p = m(Da, void 0), h = m(Oa, void 0), g = r(() => {
|
|
2503
2503
|
if (!d.value || !la(n)) return [];
|
|
2504
2504
|
let e = n.children ? ua(n.children) : [];
|
|
2505
2505
|
if (p?.value) {
|
|
@@ -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] ||= re((e) => F("toggle-expanded"), ["prevent", "stop"])
|
|
2599
2599
|
}, [u(ln, {
|
|
2600
2600
|
name: e.chevronIcon ?? "chevron-right",
|
|
2601
2601
|
size: 12
|
|
@@ -2634,8 +2634,8 @@ var ha = {
|
|
|
2634
2634
|
}),
|
|
2635
2635
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2636
2636
|
setup(e, { emit: n }) {
|
|
2637
|
-
let i = e, s = m(Ta, void 0), c =
|
|
2638
|
-
|
|
2637
|
+
let i = e, s = m(Ta, void 0), c = R(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
|
+
H(() => i.children, (e) => {
|
|
2639
2639
|
if (!e) {
|
|
2640
2640
|
b.value = [];
|
|
2641
2641
|
return;
|
|
@@ -2651,7 +2651,7 @@ var ha = {
|
|
|
2651
2651
|
}), D = r(() => la({
|
|
2652
2652
|
...i,
|
|
2653
2653
|
children: b.value
|
|
2654
|
-
}) && i.level < Ra), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P = (e) => N(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n,
|
|
2654
|
+
}) && i.level < Ra), A = r(() => D.value ? l.value ? h.value || !!i.disabled : !0 : !1), M = r(() => h.value ? "chevron-down" : "chevron-right"), N = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), P = (e) => N(e) ? !0 : f?.value?.has(i.id) ? !(p?.value?.get(i.id))?.has(e.id) : !1, F = n, L = r(() => v.value || i.totalChildCount == null ? !1 : i.totalChildCount > b.value.length), z = async () => {
|
|
2655
2655
|
if (g.value) return;
|
|
2656
2656
|
if (!i.handleSeeMore) {
|
|
2657
2657
|
F("see-more", {
|
|
@@ -2686,7 +2686,7 @@ var ha = {
|
|
|
2686
2686
|
} finally {
|
|
2687
2687
|
g.value = !1;
|
|
2688
2688
|
}
|
|
2689
|
-
},
|
|
2689
|
+
}, B = (e) => {
|
|
2690
2690
|
if (l.value && D.value && e.option.id === i.id && !d.value) {
|
|
2691
2691
|
C();
|
|
2692
2692
|
return;
|
|
@@ -2696,7 +2696,7 @@ var ha = {
|
|
|
2696
2696
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
2697
2697
|
}
|
|
2698
2698
|
F("handle-selected", e);
|
|
2699
|
-
},
|
|
2699
|
+
}, ee = (e) => {
|
|
2700
2700
|
F("handle-selected", e);
|
|
2701
2701
|
};
|
|
2702
2702
|
return (n, r) => {
|
|
@@ -2709,7 +2709,7 @@ var ha = {
|
|
|
2709
2709
|
showChevron: I(l) && D.value,
|
|
2710
2710
|
chevronIcon: M.value,
|
|
2711
2711
|
expanded: h.value,
|
|
2712
|
-
onHandleSelected:
|
|
2712
|
+
onHandleSelected: B,
|
|
2713
2713
|
onToggleExpanded: C,
|
|
2714
2714
|
selected: N(i)
|
|
2715
2715
|
}), null, 16, [
|
|
@@ -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) => ne((E(), o("li", {
|
|
2729
2729
|
key: t.id,
|
|
2730
2730
|
"data-active": N(t) ? "true" : null,
|
|
2731
2731
|
class: y(e.itemClass)
|
|
@@ -2737,7 +2737,7 @@ var ha = {
|
|
|
2737
2737
|
queryText: e.queryText,
|
|
2738
2738
|
highlightSearchText: e.highlightSearchText,
|
|
2739
2739
|
level: e.level + 1,
|
|
2740
|
-
onHandleSelected:
|
|
2740
|
+
onHandleSelected: ee,
|
|
2741
2741
|
onSeeMore: r[1] ||= (e) => F("see-more", e)
|
|
2742
2742
|
}), null, 16, [
|
|
2743
2743
|
"disabled",
|
|
@@ -2746,13 +2746,13 @@ var ha = {
|
|
|
2746
2746
|
"queryText",
|
|
2747
2747
|
"highlightSearchText",
|
|
2748
2748
|
"level"
|
|
2749
|
-
])], 10, Ia)), [[
|
|
2749
|
+
])], 10, Ia)), [[V, !i.disabled || P(t)]])), 128)), L.value ? (E(), o("li", La, [u(gn, {
|
|
2750
2750
|
class: "pv-text-brand",
|
|
2751
2751
|
variant: "ghost",
|
|
2752
2752
|
label: "See more",
|
|
2753
2753
|
loading: g.value,
|
|
2754
2754
|
"data-testid": "pv-menu-item-see-more",
|
|
2755
|
-
onClick:
|
|
2755
|
+
onClick: z
|
|
2756
2756
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
@@ -2779,10 +2779,10 @@ var ha = {
|
|
|
2779
2779
|
}),
|
|
2780
2780
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2781
2781
|
setup(e, { emit: n }) {
|
|
2782
|
-
let i = e, s = n, c =
|
|
2783
|
-
|
|
2782
|
+
let i = e, s = n, c = R(e, "selectedItems"), l = N(c.value);
|
|
2783
|
+
H(c, (e) => {
|
|
2784
2784
|
l.value = e;
|
|
2785
|
-
}),
|
|
2785
|
+
}), H(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) => ne((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)), [[V, 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",
|
|
@@ -2999,19 +2999,19 @@ var ha = {
|
|
|
2999
2999
|
return t;
|
|
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
|
-
if (c.enableCascadeSelection && c.countSelectedParents &&
|
|
3002
|
+
if (c.enableCascadeSelection && c.countSelectedParents && z.value?.length) return pa(z.value) + e;
|
|
3003
3003
|
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
3004
3004
|
let t = new Set(W.value.map((e) => e.id));
|
|
3005
3005
|
return fa(c.options, t) + e;
|
|
3006
|
-
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection &&
|
|
3006
|
+
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && z.value?.length ? z.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3007
3007
|
g("see-more", e ?? {});
|
|
3008
|
-
}, j =
|
|
3009
|
-
W.value = e,
|
|
3010
|
-
},
|
|
3011
|
-
|
|
3012
|
-
},
|
|
3013
|
-
|
|
3014
|
-
}, W = N(
|
|
3008
|
+
}, j = B("searchInputRef"), [M, F] = Ke(c.defaultOpen), L = R(e, "modelValue"), z = R(e, "selectionState"), ee = R(e, "searchInput"), te = r(() => c.menuActionsVariant === "cancel-confirm"), V = (e) => {
|
|
3009
|
+
W.value = e, te.value || (L.value = e, z.value = S());
|
|
3010
|
+
}, ne = () => {
|
|
3011
|
+
te.value && (L.value = W.value, z.value = S());
|
|
3012
|
+
}, re = () => {
|
|
3013
|
+
te.value && (W.value = L.value);
|
|
3014
|
+
}, W = N(L.value), G = (e) => d.value.get(e), ie = (e) => {
|
|
3015
3015
|
if (!c.enableCascadeSelection || !e) return;
|
|
3016
3016
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map(), r = [], i = /* @__PURE__ */ new Set(), a = (e, t) => {
|
|
3017
3017
|
i.has(t) || (i.add(t), r.push(e ?? {
|
|
@@ -3027,54 +3027,54 @@ var ha = {
|
|
|
3027
3027
|
for (let t of i) e.has(t.id) || a(t, t.id);
|
|
3028
3028
|
continue;
|
|
3029
3029
|
}
|
|
3030
|
-
a(
|
|
3030
|
+
a(G(r.id), r.id);
|
|
3031
3031
|
}
|
|
3032
3032
|
f.value = t, m.value = n, W.value = r;
|
|
3033
|
-
},
|
|
3033
|
+
}, ae = r({
|
|
3034
3034
|
get: () => W.value,
|
|
3035
3035
|
set: (e) => {
|
|
3036
|
-
c.readOnly ||
|
|
3036
|
+
c.readOnly || V(e);
|
|
3037
3037
|
}
|
|
3038
|
-
}),
|
|
3039
|
-
|
|
3040
|
-
},
|
|
3038
|
+
}), K = () => {
|
|
3039
|
+
ee.value = "", M.value = !1;
|
|
3040
|
+
}, oe = r(() => {
|
|
3041
3041
|
let e = c.size === "lg" ? 24 : 30;
|
|
3042
3042
|
return c.overlayTrigger ? -e : void 0;
|
|
3043
3043
|
});
|
|
3044
|
-
|
|
3045
|
-
if (c.enableCascadeSelection &&
|
|
3046
|
-
|
|
3044
|
+
H(() => L.value, (e) => {
|
|
3045
|
+
if (c.enableCascadeSelection && z.value?.length && e.length === 0) {
|
|
3046
|
+
ie(z.value);
|
|
3047
3047
|
return;
|
|
3048
3048
|
}
|
|
3049
3049
|
W.value = e;
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3050
|
+
}), H(() => [z.value, c.options], () => {
|
|
3051
|
+
ie(z.value);
|
|
3052
3052
|
}, {
|
|
3053
3053
|
deep: !0,
|
|
3054
3054
|
immediate: !0
|
|
3055
|
-
}),
|
|
3056
|
-
e ? (
|
|
3055
|
+
}), H(M, (e) => {
|
|
3056
|
+
e ? (re(), v(() => {
|
|
3057
3057
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
3058
|
-
})) : (
|
|
3058
|
+
})) : (re(), g("dropdown-closed"));
|
|
3059
3059
|
});
|
|
3060
|
-
let
|
|
3061
|
-
if (
|
|
3062
|
-
let e =
|
|
3060
|
+
let se = r(() => {
|
|
3061
|
+
if (ee.value === "") return c.options;
|
|
3062
|
+
let e = ee.value.toLocaleLowerCase();
|
|
3063
3063
|
return c.enableCascadeSelection ? ma(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
3064
3064
|
}), ce = () => {
|
|
3065
3065
|
if (c.enableCascadeSelection) {
|
|
3066
3066
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
3067
3067
|
for (let r of n) la(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
3068
3068
|
};
|
|
3069
|
-
t(
|
|
3069
|
+
t(se.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
3070
3070
|
}
|
|
3071
|
-
|
|
3071
|
+
V(c.enableCascadeSelection ? ua(se.value) : se.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(), V([]);
|
|
3074
3074
|
}, ue = () => {
|
|
3075
|
-
|
|
3075
|
+
re(), K();
|
|
3076
3076
|
}, de = () => {
|
|
3077
|
-
|
|
3077
|
+
ne(), K();
|
|
3078
3078
|
}, fe = r(() => {
|
|
3079
3079
|
if (!c.groupings) return;
|
|
3080
3080
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -3087,24 +3087,24 @@ var ha = {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
3089
3089
|
return Array.from(e.entries());
|
|
3090
|
-
}), pe = r(() => c.groupings &&
|
|
3090
|
+
}), pe = r(() => c.groupings && ee.value === ""), me = r(() => ({
|
|
3091
3091
|
...c,
|
|
3092
|
-
selectedItems:
|
|
3093
|
-
searchInput:
|
|
3092
|
+
selectedItems: L.value,
|
|
3093
|
+
searchInput: ee.value,
|
|
3094
3094
|
slotContext: c.slotContext,
|
|
3095
3095
|
isOpen: M.value,
|
|
3096
3096
|
isLoading: c.isLoading
|
|
3097
|
-
})), he =
|
|
3097
|
+
})), he = B("popoverContentRef"), ge = r(() => {
|
|
3098
3098
|
let e = he.value?.getRootNode();
|
|
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 && K();
|
|
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: oe.value }), {
|
|
3107
|
+
trigger: U(() => [u(ia, {
|
|
3108
3108
|
ref: "select-button-trigger-ref",
|
|
3109
3109
|
variant: e.variant,
|
|
3110
3110
|
size: e.size,
|
|
@@ -3138,7 +3138,7 @@ var ha = {
|
|
|
3138
3138
|
"counter-style",
|
|
3139
3139
|
"selected-items"
|
|
3140
3140
|
])]),
|
|
3141
|
-
content:
|
|
3141
|
+
content: U(() => [s("div", {
|
|
3142
3142
|
ref_key: "popoverContentRef",
|
|
3143
3143
|
ref: he,
|
|
3144
3144
|
class: "pv-popover",
|
|
@@ -3150,8 +3150,8 @@ var ha = {
|
|
|
3150
3150
|
}, [
|
|
3151
3151
|
e.disableSearchInput ? a("", !0) : (E(), o("div", Wa, [u(zi, {
|
|
3152
3152
|
ref: "searchInputRef",
|
|
3153
|
-
"model-value":
|
|
3154
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
3153
|
+
"model-value": ee.value,
|
|
3154
|
+
"onUpdate:modelValue": r[1] ||= (e) => ee.value = e,
|
|
3155
3155
|
class: "pv-stack-4",
|
|
3156
3156
|
placeholder: e.searchPlaceholder,
|
|
3157
3157
|
disabled: e.readOnly
|
|
@@ -3161,14 +3161,14 @@ var ha = {
|
|
|
3161
3161
|
"disabled"
|
|
3162
3162
|
])])),
|
|
3163
3163
|
I(_e) ? (E(), o("div", Ga, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
3164
|
-
|
|
3164
|
+
se.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: ae.value,
|
|
3168
|
+
"onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
|
|
3169
3169
|
options: i,
|
|
3170
3170
|
config: l.value,
|
|
3171
|
-
queryText: e.highlightSearchText ?
|
|
3171
|
+
queryText: e.highlightSearchText ? ee.value : null,
|
|
3172
3172
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
3173
3173
|
itemClass: "pv-stack-4",
|
|
3174
3174
|
isLoading: e.isLoading,
|
|
@@ -3192,11 +3192,11 @@ 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) =>
|
|
3197
|
-
options:
|
|
3195
|
+
selectedItems: ae.value,
|
|
3196
|
+
"onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
|
|
3197
|
+
options: se.value,
|
|
3198
3198
|
config: l.value,
|
|
3199
|
-
queryText: e.highlightSearchText ?
|
|
3199
|
+
queryText: e.highlightSearchText ? ee.value : null,
|
|
3200
3200
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3201
3201
|
itemClass: "pv-stack-4",
|
|
3202
3202
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3215,7 +3215,7 @@ var ha = {
|
|
|
3215
3215
|
"hasMoreOptions",
|
|
3216
3216
|
"readOnly"
|
|
3217
3217
|
]))], 64)) : a("", !0),
|
|
3218
|
-
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) :
|
|
3218
|
+
e.isLoading ? (E(), o("div", Ja, [u(St, { variant: "dark" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ve) ? A(n.$slots, "no-results", b(_({ key: 0 }, me.value))) : (E(), i(ca, { key: 1 }))], 64)) : a("", !0),
|
|
3219
3219
|
s("div", Ya, [I(ye) ? A(n.$slots, "footer", b(_({ key: 0 }, me.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Xi, {
|
|
3220
3220
|
key: 1,
|
|
3221
3221
|
variant: e.menuActionsVariant,
|
|
@@ -3280,8 +3280,8 @@ var ha = {
|
|
|
3280
3280
|
action: n.optionsAction,
|
|
3281
3281
|
variant: n.optionsVariant,
|
|
3282
3282
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3283
|
-
})), l = t, [d] = Ke(n.defaultOpen), f =
|
|
3284
|
-
|
|
3283
|
+
})), l = t, [d] = Ke(n.defaultOpen), f = R(e, "modelValue"), p = R(e, "searchInput");
|
|
3284
|
+
H(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: U(() => [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: U(() => [s("div", {
|
|
3368
3368
|
class: "pv-popover",
|
|
3369
3369
|
"data-test-id": "pv-popover",
|
|
3370
3370
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3805,7 +3805,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3805
3805
|
}),
|
|
3806
3806
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
3807
3807
|
setup(e) {
|
|
3808
|
-
let n = e, s =
|
|
3808
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = Po(), u = r(() => {
|
|
3809
3809
|
let e = s.value?.queryTerms || [];
|
|
3810
3810
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
3811
3811
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -3895,7 +3895,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3895
3895
|
"update:options"
|
|
3896
3896
|
],
|
|
3897
3897
|
setup(e) {
|
|
3898
|
-
let n = e, c = { renderer: zo }, l =
|
|
3898
|
+
let n = e, c = { renderer: zo }, l = B("search-input"), d = R(e, "searchText"), f = R(e, "query"), p = R(e, "options"), { addQueryOption: m, containsQueryOption: h } = Po(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
3899
3899
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3900
3900
|
};
|
|
3901
3901
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3906,7 +3906,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3906
3906
|
id: d.value.trim(),
|
|
3907
3907
|
text: d.value,
|
|
3908
3908
|
queryTerm: { queryText: d.value }
|
|
3909
|
-
}),
|
|
3909
|
+
}), L());
|
|
3910
3910
|
}, A = r(() => {
|
|
3911
3911
|
if (!p.value || p.value.length === 0) return [];
|
|
3912
3912
|
let e = p.value;
|
|
@@ -3919,7 +3919,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3919
3919
|
context: e.queryTerm
|
|
3920
3920
|
}));
|
|
3921
3921
|
});
|
|
3922
|
-
|
|
3922
|
+
H([
|
|
3923
3923
|
A,
|
|
3924
3924
|
d,
|
|
3925
3925
|
() => n.optionsLoading
|
|
@@ -3936,7 +3936,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3936
3936
|
queryTerm: e.context,
|
|
3937
3937
|
icon: e.icon
|
|
3938
3938
|
};
|
|
3939
|
-
f.value = m(f.value, t),
|
|
3939
|
+
f.value = m(f.value, t), L();
|
|
3940
3940
|
} catch (e) {
|
|
3941
3941
|
console.error("Error adding query option:", e);
|
|
3942
3942
|
} finally {
|
|
@@ -3950,10 +3950,10 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3950
3950
|
function F(e) {
|
|
3951
3951
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
3952
3952
|
}
|
|
3953
|
-
let
|
|
3953
|
+
let L = () => {
|
|
3954
3954
|
d.value = "";
|
|
3955
3955
|
};
|
|
3956
|
-
return (n, r) =>
|
|
3956
|
+
return (n, r) => ne((E(), o("div", {
|
|
3957
3957
|
ref: "query-builder-input",
|
|
3958
3958
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3959
3959
|
onFocus: F,
|
|
@@ -3979,7 +3979,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3979
3979
|
"modelValue",
|
|
3980
3980
|
"wrap-content",
|
|
3981
3981
|
"query-term-display-limit"
|
|
3982
|
-
]),
|
|
3982
|
+
]), ne(s("input", {
|
|
3983
3983
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3984
3984
|
ref: "search-input",
|
|
3985
3985
|
"data-testid": "pv-search-input",
|
|
@@ -3989,7 +3989,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3989
3989
|
"data-invalid": w.value ? "true" : void 0,
|
|
3990
3990
|
onFocus: F,
|
|
3991
3991
|
onBlur: F
|
|
3992
|
-
}, null, 40, Vo), [[
|
|
3992
|
+
}, null, 40, Vo), [[te, d.value]])], 4),
|
|
3993
3993
|
f.value && !e.hideClearButton ? (E(), i(gn, {
|
|
3994
3994
|
key: 1,
|
|
3995
3995
|
variant: "ghost",
|
|
@@ -4007,7 +4007,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4007
4007
|
},
|
|
4008
4008
|
isList: !0
|
|
4009
4009
|
}, {
|
|
4010
|
-
default:
|
|
4010
|
+
default: U(() => [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
4011
|
key: `${t}-${e.searchText}`,
|
|
4012
4012
|
ref_for: !0
|
|
4013
4013
|
}, e, {
|
|
@@ -4039,7 +4039,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4039
4039
|
},
|
|
4040
4040
|
setup(e) {
|
|
4041
4041
|
let n = m(Jo, O(null)), c = m(Qo, O([])), l = m($o, O([])), u = e;
|
|
4042
|
-
|
|
4042
|
+
H(l, () => {}, { deep: !0 });
|
|
4043
4043
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
4044
4044
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
4045
4045
|
}, p = r(() => ({ "pv-hide": c.value.length === 0 })), h = r(() => u.rowGroupLimit ? l.value.length >= u.rowGroupLimit : !1), g = r(() => l.value.map((e) => c.value.find((t) => t.field === e)).filter((e) => e !== void 0)), _ = r(() => c.value.filter((e) => !l.value.includes(e.field))), v = r(() => {
|
|
@@ -4070,12 +4070,12 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4070
4070
|
class: y(p.value),
|
|
4071
4071
|
onListOrderUpdated: x
|
|
4072
4072
|
}, {
|
|
4073
|
-
trigger:
|
|
4073
|
+
trigger: U(() => [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
4074
|
key: 0,
|
|
4075
4075
|
value: I(l).length,
|
|
4076
4076
|
variant: "tertiary"
|
|
4077
4077
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
4078
|
-
default:
|
|
4078
|
+
default: U(() => [(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
4079
|
key: 0,
|
|
4080
4080
|
id: b(e.value)
|
|
4081
4081
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -4197,14 +4197,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4197
4197
|
tooltipPosition: "center-left",
|
|
4198
4198
|
size: "sm"
|
|
4199
4199
|
}, {
|
|
4200
|
-
label:
|
|
4200
|
+
label: U(() => [u(gn, {
|
|
4201
4201
|
class: y(j.value + " pv-text-brand"),
|
|
4202
4202
|
variant: "ghost",
|
|
4203
4203
|
"left-icon": "focus",
|
|
4204
4204
|
ariaLabel: "Remove focus",
|
|
4205
4205
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
4206
4206
|
}, null, 8, ["class"])]),
|
|
4207
|
-
"tooltip-content":
|
|
4207
|
+
"tooltip-content": U(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
4208
4208
|
_: 1
|
|
4209
4209
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Hs, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
4210
4210
|
}
|
|
@@ -4236,14 +4236,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4236
4236
|
"col-def": o.value,
|
|
4237
4237
|
"cell-params": e.params.cellParams
|
|
4238
4238
|
}, {
|
|
4239
|
-
default:
|
|
4239
|
+
default: U(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4240
4240
|
_: 1
|
|
4241
4241
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Ns, {
|
|
4242
4242
|
key: 1,
|
|
4243
4243
|
"col-def": s.value,
|
|
4244
4244
|
"cell-params": c.value
|
|
4245
4245
|
}, {
|
|
4246
|
-
default:
|
|
4246
|
+
default: U(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4247
4247
|
_: 1
|
|
4248
4248
|
}, 8, ["col-def", "cell-params"]));
|
|
4249
4249
|
}
|
|
@@ -4768,7 +4768,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4768
4768
|
}), y = e.filterOptionsMap, b = e.filterSelectedValueMap, x = e.filterSelectedMetadataMap, S = e.filterSearchQueries, C = O({}), w = O({}), T = async (t) => {
|
|
4769
4769
|
let n = await e.fetchFilterOptions(t);
|
|
4770
4770
|
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(
|
|
4771
|
+
}, E = O(!1), D = O(!1), k = O({}), A = O(/* @__PURE__ */ new Set()), j = O({}), M = e.stagedFilterSelectedValueMap, P = (e) => {
|
|
4772
4772
|
let t = {};
|
|
4773
4773
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4774
4774
|
t[e] = n;
|
|
@@ -4778,28 +4778,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4778
4778
|
filterType: "set",
|
|
4779
4779
|
values: r
|
|
4780
4780
|
});
|
|
4781
|
-
}), i.value != null && Object.entries(
|
|
4781
|
+
}), i.value != null && Object.entries(M.value).forEach(([e, n]) => {
|
|
4782
4782
|
let r = n.filter((e) => !!e);
|
|
4783
4783
|
r.length > 0 ? t[e] = {
|
|
4784
4784
|
filterType: "set",
|
|
4785
4785
|
values: r
|
|
4786
4786
|
} : delete t[e];
|
|
4787
4787
|
}), t;
|
|
4788
|
-
},
|
|
4788
|
+
}, F = (e) => {
|
|
4789
4789
|
if (!e) return e ?? null;
|
|
4790
4790
|
if (!e.startsWith("__")) return e;
|
|
4791
4791
|
let t = e.slice(2).split("__");
|
|
4792
4792
|
return t.length >= 2 ? t[1] : e;
|
|
4793
|
-
},
|
|
4793
|
+
}, I = (e) => e ? e.rawValue == null ? e.metadata?.rawValue == null ? F(e.value) : String(e.metadata.rawValue) : String(e.rawValue) : null, L = (e, t, n = 0) => {
|
|
4794
4794
|
if (!e || n > 25) return !1;
|
|
4795
4795
|
if (e.value === t.value) return !0;
|
|
4796
|
-
let r =
|
|
4796
|
+
let r = I(e), i = I(t);
|
|
4797
4797
|
return r != null && i != null && r === i ? !0 : e.children?.some((e) => L(e, t, n + 1)) ?? !1;
|
|
4798
4798
|
}, R = async (e, t) => {
|
|
4799
4799
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4800
4800
|
if (t?.useStaged !== !1 && i.value != null) if (Xc(i.value)) {
|
|
4801
4801
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
4802
|
-
o =
|
|
4802
|
+
o = P(e && Xc(e) ? e : void 0);
|
|
4803
4803
|
} else o = i.value;
|
|
4804
4804
|
let l = {
|
|
4805
4805
|
api: t?.api,
|
|
@@ -4820,7 +4820,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4820
4820
|
label: String(e)
|
|
4821
4821
|
}), v = await d.value?.(l), x;
|
|
4822
4822
|
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 =
|
|
4823
|
+
let n = B(e, t);
|
|
4824
4824
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4825
4825
|
})), g === c.value[m]) {
|
|
4826
4826
|
let e = (t?.offset ?? 0) > 0, n = !!t?.parentId;
|
|
@@ -4856,16 +4856,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4856
4856
|
};
|
|
4857
4857
|
}, i = n.filter((e) => e?.value === t);
|
|
4858
4858
|
if (i.length > 0) return i.reduce(r);
|
|
4859
|
-
let a =
|
|
4859
|
+
let a = F(t), o = (e) => {
|
|
4860
4860
|
for (let n of e) {
|
|
4861
4861
|
if (!n) continue;
|
|
4862
|
-
if (n.value === t || a != null &&
|
|
4862
|
+
if (n.value === t || a != null && I(n) === a) return n;
|
|
4863
4863
|
let e = n.children ? o(n.children) : void 0;
|
|
4864
4864
|
if (e) return e;
|
|
4865
4865
|
}
|
|
4866
4866
|
};
|
|
4867
4867
|
return o(n);
|
|
4868
|
-
},
|
|
4868
|
+
}, B = (e, t) => {
|
|
4869
4869
|
if (!t) return {};
|
|
4870
4870
|
let n = $(e)?.queryColIds || [];
|
|
4871
4871
|
if (n.length === 0) return {};
|
|
@@ -4878,7 +4878,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4878
4878
|
};
|
|
4879
4879
|
}
|
|
4880
4880
|
return {};
|
|
4881
|
-
},
|
|
4881
|
+
}, ee = (e, t) => {
|
|
4882
4882
|
b.value[e] = t;
|
|
4883
4883
|
let r = [], i = n.value;
|
|
4884
4884
|
if (Zc(i)) {
|
|
@@ -4894,42 +4894,42 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4894
4894
|
let n = z(e, t);
|
|
4895
4895
|
n && a.push(n);
|
|
4896
4896
|
}), x.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4897
|
-
},
|
|
4897
|
+
}, te = (e) => b.value[e] || [], V = (e, t) => {
|
|
4898
4898
|
S.value[e] = t;
|
|
4899
|
-
},
|
|
4899
|
+
}, H = (e) => C.value[e] || [], U = (e, t) => {
|
|
4900
4900
|
C.value[e] = t;
|
|
4901
|
-
},
|
|
4902
|
-
|
|
4901
|
+
}, ne = (e, t) => {
|
|
4902
|
+
k.value[e] = t;
|
|
4903
|
+
}, re = (e) => {
|
|
4904
|
+
let t = j.value[e] ?? 0;
|
|
4905
|
+
j.value[e] = t + 1, A.value.add(e);
|
|
4903
4906
|
}, W = (e) => {
|
|
4904
|
-
let t =
|
|
4905
|
-
M.value[e] = t + 1, j.value.add(e);
|
|
4906
|
-
}, ie = (e) => {
|
|
4907
|
-
let t = M.value[e] ?? 0;
|
|
4907
|
+
let t = j.value[e] ?? 0;
|
|
4908
4908
|
if (t <= 1) {
|
|
4909
|
-
delete
|
|
4909
|
+
delete j.value[e], A.value.delete(e);
|
|
4910
4910
|
return;
|
|
4911
4911
|
}
|
|
4912
|
-
|
|
4913
|
-
},
|
|
4912
|
+
j.value[e] = t - 1;
|
|
4913
|
+
}, G = (e) => {
|
|
4914
4914
|
let t = new Set(e);
|
|
4915
4915
|
for (let n of e) {
|
|
4916
|
-
let e =
|
|
4916
|
+
let e = k.value[n] || [];
|
|
4917
4917
|
for (let n of e) t.add(n);
|
|
4918
4918
|
}
|
|
4919
|
-
for (let e of
|
|
4920
|
-
},
|
|
4921
|
-
|
|
4922
|
-
},
|
|
4919
|
+
for (let e of A.value) t.has(e) || (w.value[e] = !0);
|
|
4920
|
+
}, ie = e.initStagedFilterSelections, ae = e.clearStagedFilterSelections, K = (e) => M.value[e] || [], oe = (e, t) => {
|
|
4921
|
+
M.value[e] = t;
|
|
4922
|
+
}, se = (e) => {
|
|
4923
4923
|
t.value = e;
|
|
4924
|
-
},
|
|
4924
|
+
}, ce = (e) => {
|
|
4925
4925
|
(!e || t.value === e) && (t.value = null);
|
|
4926
|
-
},
|
|
4926
|
+
}, le = () => t.value?.getFilterModel() ?? n.value, ue = (e) => {
|
|
4927
4927
|
let r = t.value?.setFilterModel(e);
|
|
4928
4928
|
(!t.value || r === !1) && (n.value = e);
|
|
4929
|
-
},
|
|
4929
|
+
}, de = (e) => {
|
|
4930
4930
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
4931
4931
|
(!t.value || n === !1) && (a.value = e);
|
|
4932
|
-
},
|
|
4932
|
+
}, fe = (e) => t.value?.refreshData(e), pe = (e, t) => {
|
|
4933
4933
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], a = r.filter((e) => i.includes(e));
|
|
4934
4934
|
[...r, ...i].filter((e) => !a.includes(e)).forEach((e) => n.add(e));
|
|
4935
4935
|
for (let r of a) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4939,7 +4939,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4939
4939
|
};
|
|
4940
4940
|
return qe([n, i], ([e, t], [r, i]) => {
|
|
4941
4941
|
let a = /* @__PURE__ */ new Set();
|
|
4942
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
4942
|
+
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 && G(a);
|
|
4943
4943
|
}, {
|
|
4944
4944
|
deep: !0,
|
|
4945
4945
|
debounce: 200,
|
|
@@ -4960,39 +4960,38 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4960
4960
|
fetchFilterValues: R,
|
|
4961
4961
|
filterValueContext: z,
|
|
4962
4962
|
filterModelEmpty: _,
|
|
4963
|
-
getFilterSelectedValues:
|
|
4964
|
-
getSearchMatchDataFromFilterContext:
|
|
4963
|
+
getFilterSelectedValues: te,
|
|
4964
|
+
getSearchMatchDataFromFilterContext: B,
|
|
4965
4965
|
isServerSideFilter: g,
|
|
4966
4966
|
stagedFilterModel: i,
|
|
4967
|
-
setFilterSelectedValues:
|
|
4968
|
-
setFilterValueSearchText:
|
|
4967
|
+
setFilterSelectedValues: ee,
|
|
4968
|
+
setFilterValueSearchText: V,
|
|
4969
4969
|
tableSearchFilterModel: a,
|
|
4970
4970
|
tableSearchFilterModelEmpty: v,
|
|
4971
4971
|
tableSearchHandler: m,
|
|
4972
4972
|
filterValuesMap: C,
|
|
4973
|
-
getFilterValues:
|
|
4974
|
-
setFilterValues:
|
|
4973
|
+
getFilterValues: H,
|
|
4974
|
+
setFilterValues: U,
|
|
4975
4975
|
filterStaleMap: w,
|
|
4976
4976
|
refreshFiltersInBackground: E,
|
|
4977
4977
|
stageFilterChangesUntilDropdownCloses: D,
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
refreshData: pe,
|
|
4978
|
+
markOtherFieldsStale: G,
|
|
4979
|
+
aggregateFieldMap: k,
|
|
4980
|
+
registerAggregateField: ne,
|
|
4981
|
+
registeredFilterFields: A,
|
|
4982
|
+
registerFilterField: re,
|
|
4983
|
+
unregisterFilterField: W,
|
|
4984
|
+
stagedSelectedValuesMap: M,
|
|
4985
|
+
initStagedSelectedValues: ie,
|
|
4986
|
+
clearStagedSelectedValues: ae,
|
|
4987
|
+
getStagedSelectedValues: K,
|
|
4988
|
+
setStagedSelectedValues: oe,
|
|
4989
|
+
registerFilterController: se,
|
|
4990
|
+
unregisterFilterController: ce,
|
|
4991
|
+
getFilterModel: le,
|
|
4992
|
+
applyFilterModel: ue,
|
|
4993
|
+
applyTableSearchFilterModel: de,
|
|
4994
|
+
refreshData: fe,
|
|
4996
4995
|
filterValueSearchTextMap: S,
|
|
4997
4996
|
filterValuesHasMoreMap: f,
|
|
4998
4997
|
filterValuesTotalCountMap: p
|
|
@@ -5004,45 +5003,42 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5004
5003
|
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
5004
|
return e;
|
|
5006
5005
|
}, 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: () => K.value ?
|
|
5006
|
+
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: L } = c, { computedFocuses: R, removeFocus: z, computedFocusType: B } = Fs(), ee = m(rs, O(!1)), te = m(ns, O(!1)), V = m(gs, O(!1)), U = r({
|
|
5007
|
+
get: () => K.value ? N(G.value) : g(G.value),
|
|
5009
5008
|
set: (e) => {
|
|
5010
|
-
K.value ?
|
|
5009
|
+
K.value ? P(G.value, e) : b(G.value, e);
|
|
5011
5010
|
}
|
|
5012
|
-
}),
|
|
5011
|
+
}), ne = r(() => {
|
|
5013
5012
|
let e = x(G.value);
|
|
5014
|
-
if (
|
|
5015
|
-
let t = new Set(e), n =
|
|
5013
|
+
if (oe.value && ce.value.length > 0) {
|
|
5014
|
+
let t = new Set(e), n = ce.value.filter((e) => t.has(e)), r = new Set(ce.value), i = e.filter((e) => !r.has(e));
|
|
5016
5015
|
return [...n, ...i];
|
|
5017
5016
|
}
|
|
5018
|
-
return
|
|
5019
|
-
}),
|
|
5020
|
-
get: () =>
|
|
5017
|
+
return De(e);
|
|
5018
|
+
}), re = r(() => p.value[G.value] ?? !1), W = r({
|
|
5019
|
+
get: () => F.value[G.value] ?? "",
|
|
5021
5020
|
set: (e) => y(G.value, e)
|
|
5022
|
-
}), ae = r(() => {
|
|
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) => {
|
|
5021
|
+
}), G = r(() => t.value.field || ""), ie = r(() => t.value.filter || ""), ae = r(() => t.value.headerName || ""), K = r(() => n?.value === "vertical"), oe = O(!1), se = O(!1), ce = O([]), le = r(() => rc(t.value)), ue = r(() => ic(t.value)), de = r(() => ac(t.value)), fe = r(() => $(t.value).filterOptionsSortDescription), pe = r(() => $(t.value).filterOptionsSortTooltip), me = r(() => !$(t.value).filterSearch), he = r(() => $(t.value).emptyFilterResultsRenderer), ge = r(() => $(t.value).filterOptionsRenderer), _e = r(() => $(t.value).filterHeaderRenderer), ve = r(() => $(t.value).filterFooterRenderer), ye = r(() => ue.value ? U.value.length >= ue.value : !1), be = r(() => ne.value.filter((e) => e != null && !U.value.includes(e))), xe = r(() => L.value[G.value]), q = r(() => I.value[G.value]), J = r(() => uc(t.value)), Se = () => new Set([G.value, ...cc(t.value)]), Ce = (e, t) => {
|
|
5026
5022
|
let n = new Set(e), r = new Set(t);
|
|
5027
5023
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5028
|
-
},
|
|
5024
|
+
}, we = O([]), Y = r(() => ne.value.length === 1 && ne.value[0] === null && U.value.length === 0), Te = (e = !1) => {
|
|
5029
5025
|
if (J.value) return;
|
|
5030
5026
|
let n = [];
|
|
5031
5027
|
if (V.value && s.value) {
|
|
5032
5028
|
let e = s.value.getAdvancedFilterModel();
|
|
5033
5029
|
n = Hc(G.value, e);
|
|
5034
5030
|
} else n = Nc(t.value, u.value);
|
|
5035
|
-
e ?
|
|
5036
|
-
},
|
|
5031
|
+
e ? U.value = n : U.value = Array.from(new Set([...g(G.value), ...n]));
|
|
5032
|
+
}, Ee = (e) => {
|
|
5037
5033
|
let t = (n) => {
|
|
5038
5034
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
5039
5035
|
return !1;
|
|
5040
5036
|
};
|
|
5041
|
-
return t(
|
|
5042
|
-
},
|
|
5043
|
-
let n =
|
|
5037
|
+
return t(we.value);
|
|
5038
|
+
}, De = (e) => [...e].sort((e, t) => {
|
|
5039
|
+
let n = U.value.includes(e) || Ee(e), r = U.value.includes(t) || Ee(t);
|
|
5044
5040
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5045
|
-
}),
|
|
5041
|
+
}), Oe = async (e = !1, n = !1) => {
|
|
5046
5042
|
if (!s.value || o?.value) return;
|
|
5047
5043
|
let r = C.value[G.value] ?? !1, i = p.value[G.value] !== !0, a = (x(G.value) || []).length === 0, c = e && i && (r || n || a);
|
|
5048
5044
|
if (V.value) {
|
|
@@ -5052,7 +5048,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5052
5048
|
filterModel: u.value ?? void 0,
|
|
5053
5049
|
useStaged: K.value
|
|
5054
5050
|
});
|
|
5055
|
-
S(G.value, e), C.value[G.value] = !1,
|
|
5051
|
+
S(G.value, e), C.value[G.value] = !1, ft();
|
|
5056
5052
|
}
|
|
5057
5053
|
return;
|
|
5058
5054
|
}
|
|
@@ -5064,69 +5060,69 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5064
5060
|
}
|
|
5065
5061
|
S(G.value, d.getFilterValues()), C.value[G.value] = !1;
|
|
5066
5062
|
}
|
|
5067
|
-
},
|
|
5063
|
+
}, ke = (e) => {
|
|
5068
5064
|
let t = h(G.value, e);
|
|
5069
|
-
return !t && J.value && e && (t =
|
|
5070
|
-
},
|
|
5065
|
+
return !t && J.value && e && (t = Ke(e)), t;
|
|
5066
|
+
}, Ae = (e) => e?.field ?? e?.colField, je = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Be(e.value).value : null : e.metadata.rawValue : e.rawValue, Me = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, Ne = (e, t) => {
|
|
5071
5067
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
5072
5068
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
5073
5069
|
return n ? {
|
|
5074
5070
|
...e,
|
|
5075
5071
|
label: String(e.metadata?.[n])
|
|
5076
5072
|
} : e;
|
|
5077
|
-
},
|
|
5078
|
-
let n =
|
|
5073
|
+
}, Pe = (e, t) => {
|
|
5074
|
+
let n = le.value, r = t, i = Ae(t);
|
|
5079
5075
|
if (i && J.value) {
|
|
5080
5076
|
let e = s.value?.getColumnDef(i);
|
|
5081
|
-
n = e ? rc(e) ?? n : n, r =
|
|
5077
|
+
n = e ? rc(e) ?? n : n, r = Ne(t, e ?? void 0);
|
|
5082
5078
|
}
|
|
5083
5079
|
return n ? n({
|
|
5084
|
-
value:
|
|
5080
|
+
value: Me(e, r),
|
|
5085
5081
|
context: r
|
|
5086
5082
|
}) : r?.label || e;
|
|
5087
|
-
},
|
|
5083
|
+
}, Fe = (e) => Pe(e, ke(e)), Ie = (e) => {
|
|
5088
5084
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
5089
5085
|
let n = h(G.value, e);
|
|
5090
5086
|
return n == null || n.label == null;
|
|
5091
|
-
},
|
|
5087
|
+
}, Le = (e) => Y.value || h(G.value, e)?.isSelectable === !1 ? !0 : de.value ? !1 : ye.value && !U.value.includes(e), Re = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", ze = r(() => $a(G.value, $(t.value).queryColIds, (e) => e === G.value && ae.value || Re(e))), Be = (e) => {
|
|
5092
5088
|
if (!e.startsWith("__")) return { value: e };
|
|
5093
5089
|
let t = e.slice(2).split("__");
|
|
5094
5090
|
return t.length < 2 ? { value: e } : {
|
|
5095
5091
|
field: t[0],
|
|
5096
5092
|
value: t[1]
|
|
5097
5093
|
};
|
|
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
|
-
},
|
|
5094
|
+
}, Ve = (e) => vo(e, We()), He = (e) => {
|
|
5095
|
+
let t = Be(e.value), n = { ...e };
|
|
5096
|
+
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(He)), n;
|
|
5097
|
+
}, Ue = r(() => [...c.filterValueMap.value[G.value] || [], ...c.filterValueSelectedMetadataMap.value[G.value] || []].map((e) => e && He(e))), We = () => Ue.value, X = (e, t) => {
|
|
5102
5098
|
for (let n of e) {
|
|
5103
5099
|
if (!n) continue;
|
|
5104
5100
|
if (t(n)) return n;
|
|
5105
|
-
let e = n.children ?
|
|
5101
|
+
let e = n.children ? X(n.children, t) : void 0;
|
|
5106
5102
|
if (e) return e;
|
|
5107
5103
|
}
|
|
5108
|
-
},
|
|
5104
|
+
}, Ge = (e, t) => {
|
|
5109
5105
|
for (let n of e) {
|
|
5110
5106
|
if (!n) continue;
|
|
5111
5107
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
5112
|
-
let e = n.children ?
|
|
5108
|
+
let e = n.children ? Ge(n.children, t) : void 0;
|
|
5113
5109
|
if (e) return e;
|
|
5114
5110
|
}
|
|
5115
|
-
},
|
|
5111
|
+
}, Z = (e, t) => yo(We(), e, t), Ke = (e) => {
|
|
5116
5112
|
let t = (n) => {
|
|
5117
5113
|
if (n) {
|
|
5118
|
-
if (String(
|
|
5114
|
+
if (String(je(n) ?? Be(n.value).value) === e) return n;
|
|
5119
5115
|
for (let e of n.children || []) {
|
|
5120
5116
|
let n = t(e);
|
|
5121
5117
|
if (n) return n;
|
|
5122
5118
|
}
|
|
5123
5119
|
}
|
|
5124
5120
|
};
|
|
5125
|
-
for (let e of
|
|
5121
|
+
for (let e of We()) {
|
|
5126
5122
|
let n = t(e);
|
|
5127
5123
|
if (n) return n;
|
|
5128
5124
|
}
|
|
5129
|
-
},
|
|
5125
|
+
}, Je = (e) => {
|
|
5130
5126
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
5131
5127
|
if (t.length < 4) return;
|
|
5132
5128
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -5145,48 +5141,48 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5145
5141
|
}],
|
|
5146
5142
|
totalChildCount: 1
|
|
5147
5143
|
};
|
|
5148
|
-
},
|
|
5149
|
-
let n =
|
|
5150
|
-
return r?.children?.length ? r :
|
|
5151
|
-
},
|
|
5144
|
+
}, Ye = (e) => {
|
|
5145
|
+
let n = We(), r = X(n, (t) => t.value === e.id);
|
|
5146
|
+
return r?.children?.length ? r : Ge(n, e.id) || (r && Ae(r) === lc(t.value) ? r : Je(e.id) || r);
|
|
5147
|
+
}, Xe = (e) => {
|
|
5152
5148
|
if (!J.value) return;
|
|
5153
5149
|
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
5154
5150
|
for (let e of t) e && n.set(e.value, e);
|
|
5155
5151
|
for (let t of e) {
|
|
5156
5152
|
if (t.state !== "selected") continue;
|
|
5157
|
-
let e =
|
|
5153
|
+
let e = Ye(t);
|
|
5158
5154
|
e && n.set(e.value, e);
|
|
5159
5155
|
}
|
|
5160
5156
|
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
5161
|
-
},
|
|
5157
|
+
}, Ze = () => {
|
|
5162
5158
|
let e = /* @__PURE__ */ new Set();
|
|
5163
|
-
for (let t of
|
|
5159
|
+
for (let t of we.value) {
|
|
5164
5160
|
if (t.state !== "selected") continue;
|
|
5165
|
-
let n =
|
|
5161
|
+
let n = Ye(t);
|
|
5166
5162
|
n && e.add(n.value);
|
|
5167
5163
|
}
|
|
5168
|
-
return [...e].filter((e) => !
|
|
5169
|
-
},
|
|
5170
|
-
let n = h(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i =
|
|
5164
|
+
return [...e].filter((e) => !ne.value.includes(e));
|
|
5165
|
+
}, Qe = (e) => {
|
|
5166
|
+
let n = h(G.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = fe.value ? "suggestions" : null;
|
|
5171
5167
|
n?.isPreference && (i = "preferences");
|
|
5172
5168
|
let a = null, o = n?.matchedValue;
|
|
5173
5169
|
o ? a = eo({
|
|
5174
|
-
getDisplayName:
|
|
5170
|
+
getDisplayName: Re,
|
|
5175
5171
|
matchedField: n?.matchedField,
|
|
5176
5172
|
matchedValue: o,
|
|
5177
5173
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5178
|
-
}) : n?.subText ? a = n.subText :
|
|
5174
|
+
}) : n?.subText ? a = n.subText : Ae(n) && J.value && !r && (a = Re(Ae(n)));
|
|
5179
5175
|
let l, d, f;
|
|
5180
5176
|
if (r && (l = (n.children ?? []).map((e) => {
|
|
5181
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5177
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Re(e.matchedField);
|
|
5182
5178
|
return {
|
|
5183
5179
|
...e.menuOption,
|
|
5184
5180
|
id: e.value,
|
|
5185
|
-
text:
|
|
5181
|
+
text: Pe(e.value, e) || "",
|
|
5186
5182
|
searchText: t,
|
|
5187
5183
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5188
5184
|
subduedText: e.subduedText,
|
|
5189
|
-
disabled: e.menuOption?.disabled ??
|
|
5185
|
+
disabled: e.menuOption?.disabled ?? Le(e.value),
|
|
5190
5186
|
context: e,
|
|
5191
5187
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5192
5188
|
};
|
|
@@ -5199,21 +5195,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5199
5195
|
colDef: t.value,
|
|
5200
5196
|
field: G.value,
|
|
5201
5197
|
filterModel: u.value ?? void 0,
|
|
5202
|
-
query:
|
|
5198
|
+
query: W.value || void 0,
|
|
5203
5199
|
offset: r,
|
|
5204
5200
|
parentId: e,
|
|
5205
5201
|
reason: "child-load-more"
|
|
5206
5202
|
});
|
|
5207
5203
|
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 =
|
|
5204
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Re(e.matchedField);
|
|
5209
5205
|
return {
|
|
5210
5206
|
...e.menuOption,
|
|
5211
5207
|
id: e.value,
|
|
5212
|
-
text:
|
|
5208
|
+
text: Pe(e.value, e) || "",
|
|
5213
5209
|
searchText: t,
|
|
5214
5210
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5215
5211
|
subduedText: e.subduedText,
|
|
5216
|
-
disabled: e.menuOption?.disabled ??
|
|
5212
|
+
disabled: e.menuOption?.disabled ?? Le(e.value),
|
|
5217
5213
|
context: e,
|
|
5218
5214
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5219
5215
|
};
|
|
@@ -5223,53 +5219,53 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5223
5219
|
return {
|
|
5224
5220
|
...n?.menuOption,
|
|
5225
5221
|
id: e || "",
|
|
5226
|
-
text:
|
|
5222
|
+
text: Fe(e) || "",
|
|
5227
5223
|
searchText: o,
|
|
5228
5224
|
subduedText: n?.subduedText,
|
|
5229
5225
|
subText: a || void 0,
|
|
5230
5226
|
groupingLabel: i || "",
|
|
5231
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
5227
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Le(e)),
|
|
5232
5228
|
context: n || { value: e || "" },
|
|
5233
5229
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5234
5230
|
children: l,
|
|
5235
5231
|
totalChildCount: d,
|
|
5236
5232
|
handleSeeMore: f
|
|
5237
5233
|
};
|
|
5238
|
-
},
|
|
5239
|
-
let e = [...J.value ?
|
|
5240
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
5241
|
-
}),
|
|
5242
|
-
get: () => J.value ? [] :
|
|
5243
|
-
let t = h(G.value, e), n =
|
|
5234
|
+
}, $e = r(() => {
|
|
5235
|
+
let e = [...J.value ? Ze() : U.value.filter((e) => e != null && e !== "" && !ne.value.includes(e)), ...ne.value];
|
|
5236
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ie(e)).map(Qe);
|
|
5237
|
+
}), et = r({
|
|
5238
|
+
get: () => J.value ? [] : U.value.map((e) => {
|
|
5239
|
+
let t = h(G.value, e), n = Ae(t), r = n ? Re(n) : void 0;
|
|
5244
5240
|
return {
|
|
5245
5241
|
id: e,
|
|
5246
|
-
text:
|
|
5242
|
+
text: Fe(e),
|
|
5247
5243
|
subText: r,
|
|
5248
5244
|
context: t || { value: e || "" }
|
|
5249
5245
|
};
|
|
5250
5246
|
}),
|
|
5251
5247
|
set: (e) => {
|
|
5252
5248
|
if (J.value) {
|
|
5253
|
-
if (e.length === 0 && !
|
|
5254
|
-
|
|
5249
|
+
if (e.length === 0 && !oe.value && D.value && !K.value) {
|
|
5250
|
+
lt([]);
|
|
5255
5251
|
return;
|
|
5256
5252
|
}
|
|
5257
5253
|
i?.();
|
|
5258
5254
|
return;
|
|
5259
5255
|
}
|
|
5260
|
-
|
|
5261
|
-
!
|
|
5256
|
+
U.value = e.map((e) => e.id), (e.length === 0 && !oe.value || !D.value || K.value) && (nt(), R.value.forEach((e) => {
|
|
5257
|
+
!U.value.includes(e) && B.value === G.value && z(e);
|
|
5262
5258
|
})), i?.();
|
|
5263
5259
|
}
|
|
5264
|
-
}),
|
|
5260
|
+
}), tt = (e) => {
|
|
5265
5261
|
let t = {};
|
|
5266
5262
|
for (let n of e) {
|
|
5267
5263
|
if (n === null) continue;
|
|
5268
|
-
let e =
|
|
5264
|
+
let e = Ae(h(G.value, n)) || G.value;
|
|
5269
5265
|
t[e] || (t[e] = []), t[e].push(n);
|
|
5270
5266
|
}
|
|
5271
5267
|
return t;
|
|
5272
|
-
},
|
|
5268
|
+
}, nt = async (e, n, r) => {
|
|
5273
5269
|
if (!s.value) return;
|
|
5274
5270
|
if (e !== void 0 && n !== void 0) {
|
|
5275
5271
|
let r = e || G.value, i = n;
|
|
@@ -5277,13 +5273,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5277
5273
|
let e = bc(r, i || []);
|
|
5278
5274
|
if (K.value) {
|
|
5279
5275
|
let t = d.value;
|
|
5280
|
-
d.value = Bc(t, e, r),
|
|
5276
|
+
d.value = Bc(t, e, r), k(new Set([r]));
|
|
5281
5277
|
return;
|
|
5282
5278
|
}
|
|
5283
5279
|
let t = Bc(s.value.getAdvancedFilterModel(), e, r);
|
|
5284
5280
|
v(() => {
|
|
5285
5281
|
s.value?.setAdvancedFilterModel(t);
|
|
5286
|
-
}),
|
|
5282
|
+
}), k(new Set([r]));
|
|
5287
5283
|
return;
|
|
5288
5284
|
}
|
|
5289
5285
|
if (K.value) {
|
|
@@ -5300,7 +5296,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5300
5296
|
});
|
|
5301
5297
|
return;
|
|
5302
5298
|
}
|
|
5303
|
-
let i =
|
|
5299
|
+
let i = tt(U.value), o = $(t.value);
|
|
5304
5300
|
if (V.value) {
|
|
5305
5301
|
let e = K.value ? d.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5306
5302
|
if (J.value) {
|
|
@@ -5326,7 +5322,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5326
5322
|
} : e;
|
|
5327
5323
|
}
|
|
5328
5324
|
} else {
|
|
5329
|
-
let t =
|
|
5325
|
+
let t = U.value.length > 0 ? U.value : null, r = bc(G.value, t || []);
|
|
5330
5326
|
n = Bc(n, r, G.value);
|
|
5331
5327
|
let i = !1;
|
|
5332
5328
|
if (a?.value) {
|
|
@@ -5339,24 +5335,24 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5339
5335
|
n = Bc(n, r, t);
|
|
5340
5336
|
}
|
|
5341
5337
|
}
|
|
5342
|
-
let s =
|
|
5338
|
+
let s = U.value.filter((e) => e !== null), c = Hc(G.value, e), l = new Set(c), u = new Set(s);
|
|
5343
5339
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5344
5340
|
}
|
|
5345
5341
|
if (r?.skipIfUnchanged && zc(e, n)) return;
|
|
5346
|
-
let c = J.value ?
|
|
5347
|
-
if (K.value) d.value = n,
|
|
5342
|
+
let c = J.value ? Se() : new Set([G.value]);
|
|
5343
|
+
if (K.value) d.value = n, k(c);
|
|
5348
5344
|
else {
|
|
5349
5345
|
let e = n;
|
|
5350
5346
|
v(() => {
|
|
5351
5347
|
s.value?.setAdvancedFilterModel(e);
|
|
5352
|
-
}),
|
|
5348
|
+
}), k(c);
|
|
5353
5349
|
}
|
|
5354
5350
|
return;
|
|
5355
5351
|
}
|
|
5356
|
-
let c =
|
|
5352
|
+
let c = U.value.length > 0 ? U.value : null;
|
|
5357
5353
|
if (r?.skipIfUnchanged) {
|
|
5358
5354
|
let e = Nc(t.value, s.value.getFilterModel());
|
|
5359
|
-
if (
|
|
5355
|
+
if (Ce(U.value, e)) return;
|
|
5360
5356
|
}
|
|
5361
5357
|
if (K.value) {
|
|
5362
5358
|
let e = await Mc(s.value, t.value, c);
|
|
@@ -5370,29 +5366,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5370
5366
|
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5371
5367
|
s.value && s.value.onFilterChanged();
|
|
5372
5368
|
});
|
|
5373
|
-
},
|
|
5374
|
-
if (e &&
|
|
5375
|
-
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e :
|
|
5376
|
-
|
|
5369
|
+
}, rt = (e, n) => {
|
|
5370
|
+
if (e && de.value ? U.value = [e] : e && !U.value.includes(e) && (U.value = [...U.value, e]), J.value && e) {
|
|
5371
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Z(r, e) || e;
|
|
5372
|
+
we.value.find((e) => e.id === i) || (we.value = [...we.value, {
|
|
5377
5373
|
id: i,
|
|
5378
5374
|
state: "selected"
|
|
5379
5375
|
}]);
|
|
5380
5376
|
}
|
|
5381
|
-
(!D.value || K.value) && (J.value && e ?
|
|
5382
|
-
},
|
|
5383
|
-
if (
|
|
5384
|
-
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e :
|
|
5385
|
-
|
|
5377
|
+
(!D.value || K.value) && (J.value && e ? lt(we.value) : n && n !== G.value ? nt(n, [e]) : nt()), i?.();
|
|
5378
|
+
}, it = (e, n) => {
|
|
5379
|
+
if (U.value = U.value.filter((t) => t !== e), J.value && e) {
|
|
5380
|
+
let r = n || cc(t.value)[0] || G.value, i = e.startsWith("__") ? e : Z(r, e) || e;
|
|
5381
|
+
we.value = we.value.filter((e) => e.id !== i);
|
|
5386
5382
|
}
|
|
5387
|
-
(!D.value || K.value) && (J.value && e ?
|
|
5388
|
-
},
|
|
5389
|
-
|
|
5390
|
-
},
|
|
5391
|
-
|
|
5392
|
-
},
|
|
5383
|
+
(!D.value || K.value) && (J.value && e ? lt(we.value) : n && n !== G.value ? nt(n, null) : nt()), i?.();
|
|
5384
|
+
}, at = () => {
|
|
5385
|
+
ce.value = De(x(G.value)), oe.value = !0;
|
|
5386
|
+
}, ot = () => {
|
|
5387
|
+
oe.value = !1, ce.value = [], W.value = "", !o?.value && D.value && !K.value && (J.value ? lt(we.value, { skipIfUnchanged: !0 }) : nt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5388
|
+
}, st = async (e) => {
|
|
5393
5389
|
if (!s.value) return;
|
|
5394
|
-
let n =
|
|
5395
|
-
r && (
|
|
5390
|
+
let n = ne.value.length, r = !e.parentId;
|
|
5391
|
+
r && (se.value = !0);
|
|
5396
5392
|
try {
|
|
5397
5393
|
await l(t.value, {
|
|
5398
5394
|
api: s.value,
|
|
@@ -5402,16 +5398,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5402
5398
|
useStaged: K.value
|
|
5403
5399
|
});
|
|
5404
5400
|
} finally {
|
|
5405
|
-
r && (
|
|
5401
|
+
r && (se.value = !1);
|
|
5406
5402
|
}
|
|
5407
|
-
},
|
|
5403
|
+
}, ct = (e, n) => So({
|
|
5408
5404
|
baseModel: n,
|
|
5409
5405
|
colDef: t.value,
|
|
5410
|
-
options:
|
|
5406
|
+
options: We(),
|
|
5411
5407
|
state: e
|
|
5412
|
-
}),
|
|
5413
|
-
if (!s.value || !J.value || (
|
|
5414
|
-
let r = K.value ? d.value : s.value.getAdvancedFilterModel(), a =
|
|
5408
|
+
}), lt = (e, n) => {
|
|
5409
|
+
if (!s.value || !J.value || (we.value = e, Xe(e), cc(t.value).length === 0)) return !1;
|
|
5410
|
+
let r = K.value ? d.value : s.value.getAdvancedFilterModel(), a = ct(e, r);
|
|
5415
5411
|
if (n?.skipIfUnchanged && zc(r, a)) return !1;
|
|
5416
5412
|
if (K.value) d.value = a;
|
|
5417
5413
|
else {
|
|
@@ -5420,26 +5416,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5420
5416
|
s.value?.setAdvancedFilterModel(e);
|
|
5421
5417
|
});
|
|
5422
5418
|
}
|
|
5423
|
-
return
|
|
5424
|
-
},
|
|
5419
|
+
return k(Se()), i?.(), !0;
|
|
5420
|
+
}, ut = (e) => {
|
|
5425
5421
|
if (!J.value || !cc(t.value).length) return;
|
|
5426
5422
|
let n = wo({
|
|
5427
5423
|
colDef: t.value,
|
|
5428
5424
|
model: e,
|
|
5429
|
-
options:
|
|
5425
|
+
options: We()
|
|
5430
5426
|
});
|
|
5431
|
-
JSON.stringify(
|
|
5432
|
-
},
|
|
5433
|
-
let { field: t, value: n } =
|
|
5434
|
-
return t ?
|
|
5435
|
-
}) : !1,
|
|
5436
|
-
!J.value || !V.value ||
|
|
5427
|
+
JSON.stringify(we.value) !== JSON.stringify(n) && (we.value = n), Xe(n);
|
|
5428
|
+
}, dt = () => J.value ? we.value.some((e) => {
|
|
5429
|
+
let { field: t, value: n } = Ve(e.id);
|
|
5430
|
+
return t ? Z(t, n) !== e.id : !1;
|
|
5431
|
+
}) : !1, ft = () => {
|
|
5432
|
+
!J.value || !V.value || dt() && ut(u.value);
|
|
5437
5433
|
};
|
|
5438
|
-
return
|
|
5439
|
-
J.value && (
|
|
5440
|
-
}, { deep: !0 }),
|
|
5441
|
-
e && E.value &&
|
|
5442
|
-
}),
|
|
5434
|
+
return H(we, (e) => {
|
|
5435
|
+
J.value && (Xe(e), !(D.value && !K.value) && lt(e));
|
|
5436
|
+
}, { deep: !0 }), H(() => C.value[G.value], (e) => {
|
|
5437
|
+
e && E.value && Oe(!0);
|
|
5438
|
+
}), H(() => d.value, () => {
|
|
5443
5439
|
if (K.value) {
|
|
5444
5440
|
if (V.value) {
|
|
5445
5441
|
let e = [], n = d.value;
|
|
@@ -5450,93 +5446,91 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5450
5446
|
e.push(...r);
|
|
5451
5447
|
}
|
|
5452
5448
|
} else e = Hc(G.value, n);
|
|
5453
|
-
|
|
5449
|
+
U.value = e;
|
|
5454
5450
|
return;
|
|
5455
5451
|
}
|
|
5456
|
-
|
|
5452
|
+
ie.value === "agSetColumnFilter" ? U.value = d.value?.[G.value]?.values || [] : ie.value === "agMultiColumnFilter" ? U.value = d.value?.[G.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ie.value} is not yet supported.`);
|
|
5457
5453
|
}
|
|
5458
|
-
}),
|
|
5454
|
+
}), H(() => u.value, () => {
|
|
5459
5455
|
if (K.value) return;
|
|
5460
5456
|
if (J.value) {
|
|
5461
|
-
V.value &&
|
|
5457
|
+
V.value && ut(u.value);
|
|
5462
5458
|
return;
|
|
5463
5459
|
}
|
|
5464
5460
|
if (V.value) {
|
|
5465
5461
|
let e = u.value, t = Hc(G.value, e);
|
|
5466
|
-
|
|
5462
|
+
Te(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5467
5463
|
return;
|
|
5468
5464
|
}
|
|
5469
5465
|
let e = Nc(t.value, u.value);
|
|
5470
|
-
|
|
5471
|
-
}, { deep: !0 }),
|
|
5472
|
-
|
|
5473
|
-
}),
|
|
5466
|
+
Te(U.value.some((t) => !e.includes(t)));
|
|
5467
|
+
}, { deep: !0 }), H(() => f.value, () => {
|
|
5468
|
+
U.value = [], we.value = [];
|
|
5469
|
+
}), H(() => s.value, (e) => {
|
|
5474
5470
|
e && _.value && (C.value[G.value] = !0);
|
|
5475
|
-
}, { immediate: !0 }),
|
|
5471
|
+
}, { immediate: !0 }), H(() => te.value, async () => {
|
|
5476
5472
|
E.value && (K.value ? setTimeout(async () => {
|
|
5477
|
-
await
|
|
5478
|
-
}, 2e3) : await
|
|
5479
|
-
}), qe(() =>
|
|
5480
|
-
|
|
5473
|
+
await Oe(!0);
|
|
5474
|
+
}, 2e3) : await Oe(!0)), Te();
|
|
5475
|
+
}), qe(() => W.value, async () => {
|
|
5476
|
+
await Oe(!0, !0);
|
|
5481
5477
|
}, { debounce: 300 }), w(() => {
|
|
5482
|
-
|
|
5478
|
+
j(G.value);
|
|
5483
5479
|
let e = cc(t.value);
|
|
5484
|
-
if (e.length &&
|
|
5485
|
-
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value && V.value ? cc(t.value).some((e) => Hc(e, u.value).length > 0) :
|
|
5480
|
+
if (e.length && A(G.value, e), Te(), J.value && V.value && ut(u.value), o?.value && _.value && s.value) {
|
|
5481
|
+
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value && V.value ? cc(t.value).some((e) => Hc(e, u.value).length > 0) : U.value.length > 0;
|
|
5486
5482
|
e && n && l(t.value, {
|
|
5487
5483
|
api: s.value,
|
|
5488
5484
|
filterModel: u.value ?? void 0
|
|
5489
5485
|
});
|
|
5490
5486
|
}
|
|
5491
|
-
J.value || $(t.value).metadataDisplayFields?.length &&
|
|
5487
|
+
J.value || $(t.value).metadataDisplayFields?.length && U.value.some((e) => Ie(e)) && Oe(!0, !0);
|
|
5492
5488
|
}), T(() => {
|
|
5493
|
-
|
|
5489
|
+
M(G.value), D.value && !K.value && (J.value ? lt(we.value, { skipIfUnchanged: !0 }) : nt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5494
5490
|
}), {
|
|
5495
|
-
selectedValues:
|
|
5496
|
-
filterValues:
|
|
5497
|
-
isLoading:
|
|
5498
|
-
isSeeMoreLoading:
|
|
5499
|
-
filterSearchText:
|
|
5500
|
-
|
|
5501
|
-
belowFilterSearchMinLength: ae,
|
|
5502
|
-
rowsLoading: ne,
|
|
5491
|
+
selectedValues: U,
|
|
5492
|
+
filterValues: ne,
|
|
5493
|
+
isLoading: re,
|
|
5494
|
+
isSeeMoreLoading: se,
|
|
5495
|
+
filterSearchText: W,
|
|
5496
|
+
rowsLoading: ee,
|
|
5503
5497
|
gridApi: s,
|
|
5504
5498
|
filterField: G,
|
|
5505
|
-
filterType:
|
|
5506
|
-
filterDisplayName:
|
|
5499
|
+
filterType: ie,
|
|
5500
|
+
filterDisplayName: ae,
|
|
5507
5501
|
isInFilterPanel: K,
|
|
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:
|
|
5502
|
+
maxSelectableValues: ue,
|
|
5503
|
+
isSingleSelect: de,
|
|
5504
|
+
selectionLimitReached: ye,
|
|
5505
|
+
suggestedValues: be,
|
|
5506
|
+
displayedFilterValues: $e,
|
|
5507
|
+
selectedFilterValues: et,
|
|
5508
|
+
showSearchBar: me,
|
|
5509
|
+
filterSearchPlaceholder: ze,
|
|
5510
|
+
emptyFilterResultsRenderer: he,
|
|
5511
|
+
filterOptionsRenderer: ge,
|
|
5512
|
+
filterHeaderRenderer: _e,
|
|
5513
|
+
filterFooterRenderer: ve,
|
|
5514
|
+
filterOptionsSortDescription: fe,
|
|
5515
|
+
filterOptionsSortTooltip: pe,
|
|
5516
|
+
totalOptionCount: xe,
|
|
5517
|
+
hasMoreOptions: q,
|
|
5524
5518
|
isAggregate: J,
|
|
5525
|
-
cascadeSelectionState:
|
|
5519
|
+
cascadeSelectionState: we,
|
|
5526
5520
|
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:
|
|
5521
|
+
formatDisplayValue: Fe,
|
|
5522
|
+
resolvedFilterValueContext: ke,
|
|
5523
|
+
isUnresolvedMetadataValue: Ie,
|
|
5524
|
+
getLatestFilterValues: Oe,
|
|
5525
|
+
addSelectedValue: rt,
|
|
5526
|
+
removeSelectedValue: it,
|
|
5527
|
+
handleDropdownOpen: at,
|
|
5528
|
+
handleDropdownClosed: ot,
|
|
5529
|
+
handleSeeMore: st,
|
|
5530
|
+
handleCascadeSelectionState: lt,
|
|
5531
|
+
getColDisplayNameForField: Re,
|
|
5532
|
+
disableFilterValue: Le,
|
|
5533
|
+
updateFilterModelWithSelectedValues: nt
|
|
5540
5534
|
};
|
|
5541
5535
|
}, il = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5542
5536
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5631,7 +5625,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5631
5625
|
v(() => {
|
|
5632
5626
|
c.value?.setAdvancedFilterModel(n);
|
|
5633
5627
|
}), h(new Set([e]));
|
|
5634
|
-
},
|
|
5628
|
+
}, L = () => {
|
|
5635
5629
|
if (!c.value) return;
|
|
5636
5630
|
let e = C.value.fields.filter((e) => !b.value.has(e));
|
|
5637
5631
|
if (g.value) {
|
|
@@ -5643,7 +5637,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5643
5637
|
n.size > 0 && (v(() => {
|
|
5644
5638
|
c.value?.setAdvancedFilterModel(t);
|
|
5645
5639
|
}), h(n));
|
|
5646
|
-
},
|
|
5640
|
+
}, R = () => {
|
|
5647
5641
|
if (!c.value) return;
|
|
5648
5642
|
if (g.value) {
|
|
5649
5643
|
for (let e of C.value.fields) _.value.delete(e);
|
|
@@ -5654,39 +5648,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5654
5648
|
v(() => {
|
|
5655
5649
|
c.value?.setAdvancedFilterModel(e);
|
|
5656
5650
|
}), h(t);
|
|
5657
|
-
}, R = () => {
|
|
5658
|
-
x.value = !1;
|
|
5659
5651
|
}, z = () => {
|
|
5652
|
+
x.value = !1;
|
|
5653
|
+
}, B = () => {
|
|
5660
5654
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5661
5655
|
};
|
|
5662
|
-
|
|
5656
|
+
H(f, () => {
|
|
5663
5657
|
if (!(g.value && x.value)) {
|
|
5664
5658
|
_.value.clear();
|
|
5665
5659
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
5666
5660
|
}
|
|
5667
5661
|
}, { immediate: !0 });
|
|
5668
|
-
let
|
|
5662
|
+
let ee = r(() => d.value), te = r(() => C.value.fields.map((e) => ({
|
|
5669
5663
|
field: e,
|
|
5670
5664
|
label: N(e),
|
|
5671
5665
|
isSelected: _.value.has(e),
|
|
5672
5666
|
isAvailable: !b.value.has(e)
|
|
5673
|
-
}))),
|
|
5667
|
+
}))), V = r(() => ee.value ? te.value.filter((e) => e.isSelected) : te.value);
|
|
5674
5668
|
T(() => {
|
|
5675
5669
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5676
5670
|
});
|
|
5677
|
-
let
|
|
5671
|
+
let re = r(() => _.value.size);
|
|
5678
5672
|
return n({
|
|
5679
5673
|
openForTest: () => {
|
|
5680
5674
|
P(), x.value = !0;
|
|
5681
5675
|
},
|
|
5682
5676
|
selectedValues: _
|
|
5683
|
-
}), (e, n) =>
|
|
5677
|
+
}), (e, n) => ne((E(), o("div", {
|
|
5684
5678
|
ref_key: "triggerWrapper",
|
|
5685
5679
|
ref: S,
|
|
5686
5680
|
style: { "padding-bottom": "4px" },
|
|
5687
5681
|
class: "pv-border-bottom",
|
|
5688
|
-
onMouseenter:
|
|
5689
|
-
onClick:
|
|
5682
|
+
onMouseenter: B,
|
|
5683
|
+
onClick: B
|
|
5690
5684
|
}, [u(za, {
|
|
5691
5685
|
config: {
|
|
5692
5686
|
variant: "icon",
|
|
@@ -5695,7 +5689,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5695
5689
|
id: C.value.label,
|
|
5696
5690
|
text: C.value.label,
|
|
5697
5691
|
"class-list": ["pv-menu-nested"],
|
|
5698
|
-
"secondary-text":
|
|
5692
|
+
"secondary-text": re.value || void 0
|
|
5699
5693
|
}, null, 8, [
|
|
5700
5694
|
"id",
|
|
5701
5695
|
"text",
|
|
@@ -5709,8 +5703,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5709
5703
|
...I(w)
|
|
5710
5704
|
}
|
|
5711
5705
|
}, {
|
|
5712
|
-
default:
|
|
5713
|
-
x.value &&
|
|
5706
|
+
default: U(() => [
|
|
5707
|
+
x.value && V.value.length > 0 ? (E(), o("ul", al, [(E(!0), o(t, null, k(V.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
5714
5708
|
key: 0,
|
|
5715
5709
|
"data-active": e.isSelected ? "true" : null
|
|
5716
5710
|
}, [u(za, {
|
|
@@ -5732,29 +5726,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5732
5726
|
"disable-interactive": !0,
|
|
5733
5727
|
style: { width: "100%" }
|
|
5734
5728
|
}, {
|
|
5735
|
-
label:
|
|
5729
|
+
label: U(() => [u(za, {
|
|
5736
5730
|
config: { variant: "checkbox" },
|
|
5737
5731
|
id: e.field,
|
|
5738
5732
|
text: e.label,
|
|
5739
5733
|
disabled: !0,
|
|
5740
5734
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5741
5735
|
}, null, 8, ["id", "text"])]),
|
|
5742
|
-
"tooltip-content":
|
|
5736
|
+
"tooltip-content": U(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5743
5737
|
_: 2
|
|
5744
5738
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5745
|
-
x.value &&
|
|
5739
|
+
x.value && ee.value ? (E(), o("div", cl, [u(St, { variant: "dark" })])) : a("", !0),
|
|
5746
5740
|
x.value ? (E(), i(Xi, {
|
|
5747
5741
|
key: 2,
|
|
5748
5742
|
class: "pv-border-top pv-inset-square-8",
|
|
5749
5743
|
style: { "padding-top": "8px" },
|
|
5750
5744
|
variant: "select-clear",
|
|
5751
|
-
disabled:
|
|
5752
|
-
onHandleSelectAll:
|
|
5753
|
-
onHandleClearAll:
|
|
5745
|
+
disabled: ee.value,
|
|
5746
|
+
onHandleSelectAll: L,
|
|
5747
|
+
onHandleClearAll: R
|
|
5754
5748
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5755
5749
|
]),
|
|
5756
5750
|
_: 1
|
|
5757
|
-
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Xe), [
|
|
5751
|
+
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Xe), [z, { ignore: [".pv-popover"] }]]]);
|
|
5758
5752
|
}
|
|
5759
5753
|
}), ul = {
|
|
5760
5754
|
key: 0,
|
|
@@ -5771,30 +5765,26 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5771
5765
|
"line-height": "1rem"
|
|
5772
5766
|
}
|
|
5773
5767
|
}, fl = {
|
|
5774
|
-
key: 0,
|
|
5775
|
-
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
5776
|
-
style: { "--inset-size": "4px" }
|
|
5777
|
-
}, pl = {
|
|
5778
5768
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
5779
5769
|
style: { "--inset-size": "8px" }
|
|
5780
|
-
},
|
|
5770
|
+
}, pl = {
|
|
5781
5771
|
class: "pv-inset-inline",
|
|
5782
5772
|
style: { "--inset-size": "8px" }
|
|
5783
|
-
},
|
|
5773
|
+
}, ml = {
|
|
5784
5774
|
key: 0,
|
|
5785
5775
|
class: "pv-full-width"
|
|
5786
|
-
},
|
|
5776
|
+
}, hl = {
|
|
5787
5777
|
key: 0,
|
|
5788
5778
|
class: "pv-flex-inline",
|
|
5789
5779
|
style: { "max-width": "100%" }
|
|
5790
|
-
},
|
|
5780
|
+
}, gl = {
|
|
5791
5781
|
role: "list",
|
|
5792
5782
|
class: "pv-flex",
|
|
5793
5783
|
style: {
|
|
5794
5784
|
"--flex-wrap": "wrap",
|
|
5795
5785
|
"max-width": "100%"
|
|
5796
5786
|
}
|
|
5797
|
-
},
|
|
5787
|
+
}, _l = { class: "pv-text-subdued pv-text-body-xxs" }, vl = 4, yl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
5798
5788
|
__name: "SetFilter",
|
|
5799
5789
|
props: {
|
|
5800
5790
|
enableFocusView: {
|
|
@@ -5819,137 +5809,137 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5819
5809
|
"handle-settings-icon"
|
|
5820
5810
|
],
|
|
5821
5811
|
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,
|
|
5812
|
+
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: L, isInFilterPanel: R, suggestedValues: z, displayedFilterValues: B, selectedFilterValues: ee, showSearchBar: te, filterSearchPlaceholder: V, emptyFilterResultsRenderer: H, filterOptionsRenderer: ne, filterHeaderRenderer: re, filterFooterRenderer: W, filterOptionsSortDescription: G, filterOptionsSortTooltip: ie, filterValueContext: ae, formatDisplayValue: K, resolvedFilterValueContext: oe, isUnresolvedMetadataValue: se, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: ue, handleDropdownOpen: de, handleDropdownClosed: fe, handleSeeMore: pe, getColDisplayNameForField: me, hasMoreOptions: he, totalOptionCount: ge, isAggregate: _e, cascadeSelectionState: ve } = rl({
|
|
5823
5813
|
filterColDef: F(d, "filterColDef"),
|
|
5824
5814
|
filterStyle: F(d, "filterStyle"),
|
|
5825
5815
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5826
5816
|
filterGroupStagedFields: x,
|
|
5827
5817
|
readOnly: F(d, "readOnly")
|
|
5828
|
-
}), { handleFocusUpdate:
|
|
5818
|
+
}), { handleFocusUpdate: ye, isFocused: be, removeFocus: xe, isFocusable: q, canRemoveFocus: J } = Fs(), Se = (e) => {
|
|
5829
5819
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5830
5820
|
if (e.id.startsWith("__")) {
|
|
5831
5821
|
let t = e.id.slice(2).split("__");
|
|
5832
5822
|
if (t.length >= 2) return t[1];
|
|
5833
5823
|
}
|
|
5834
5824
|
return e.id;
|
|
5835
|
-
},
|
|
5836
|
-
if (
|
|
5825
|
+
}, Ce = r(() => {
|
|
5826
|
+
if (q(uc(d.filterColDef) ? cc(d.filterColDef) : [N.value])) return {
|
|
5837
5827
|
icon: "focus",
|
|
5838
|
-
isDisabled: (e) => !
|
|
5828
|
+
isDisabled: (e) => !q([e.context?.colField || N.value]),
|
|
5839
5829
|
tooltipText: (e) => {
|
|
5840
|
-
let t = e.context?.colField ||
|
|
5841
|
-
if (!
|
|
5842
|
-
let n =
|
|
5830
|
+
let t = e.context?.colField || N.value;
|
|
5831
|
+
if (!q([t])) return `Group by ${me(t)} to enable ${d.focusText}`;
|
|
5832
|
+
let n = be(_e.value ? Se(e) : e.id, t);
|
|
5843
5833
|
return n && !J() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5844
5834
|
},
|
|
5845
5835
|
action: (e) => {
|
|
5846
|
-
e && !C.value.includes(e.id) &&
|
|
5847
|
-
let t = e.context?.colField ||
|
|
5848
|
-
|
|
5836
|
+
e && !C.value.includes(e.id) && le(e.id, e.context?.colField);
|
|
5837
|
+
let t = e.context?.colField || N.value;
|
|
5838
|
+
ye(_e.value ? Se(e) : e.id, t);
|
|
5849
5839
|
},
|
|
5850
5840
|
alwaysShow: (e) => {
|
|
5851
|
-
let t = e.context?.colField ||
|
|
5852
|
-
return
|
|
5841
|
+
let t = e.context?.colField || N.value;
|
|
5842
|
+
return be(_e.value ? Se(e) : e.id, t);
|
|
5853
5843
|
}
|
|
5854
5844
|
};
|
|
5855
|
-
}),
|
|
5845
|
+
}), we = (e) => {
|
|
5856
5846
|
if (!e) return null;
|
|
5857
|
-
if (!
|
|
5858
|
-
let t =
|
|
5847
|
+
if (!_e.value) return e;
|
|
5848
|
+
let t = oe(e);
|
|
5859
5849
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5860
5850
|
if (e.startsWith("__")) {
|
|
5861
5851
|
let t = e.slice(2).split("__");
|
|
5862
5852
|
if (t.length >= 2) return t[1];
|
|
5863
5853
|
}
|
|
5864
5854
|
return e;
|
|
5865
|
-
},
|
|
5866
|
-
|
|
5867
|
-
let t =
|
|
5868
|
-
|
|
5869
|
-
},
|
|
5870
|
-
|
|
5871
|
-
},
|
|
5855
|
+
}, Y = (e) => {
|
|
5856
|
+
ue(e);
|
|
5857
|
+
let t = oe(e)?.colField || N.value, n = we(e);
|
|
5858
|
+
be(n, t) && J() && xe(n);
|
|
5859
|
+
}, Te = m(gs, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
5860
|
+
de(), ce(!0);
|
|
5861
|
+
}, Oe = () => {
|
|
5872
5862
|
v(() => {
|
|
5873
|
-
|
|
5863
|
+
fe(), f("filter-closed");
|
|
5874
5864
|
});
|
|
5875
|
-
},
|
|
5876
|
-
let t =
|
|
5877
|
-
return
|
|
5878
|
-
},
|
|
5879
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5865
|
+
}, ke = (e) => {
|
|
5866
|
+
let t = oe(e)?.colField || N.value;
|
|
5867
|
+
return be(we(e), t);
|
|
5868
|
+
}, Ae = r(() => S.value > 0 ? !0 : _e.value ? ve.value.length > 0 : C.value.length > 0);
|
|
5869
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(R) && I(C).length > 0 ? (E(), o("ul", ul, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(L)}-${n}` }, [I(se)(n) ? a("", !0) : (E(), o("li", dl, [u(vi, {
|
|
5880
5870
|
label: I(K)(n) || "",
|
|
5881
|
-
showClear: !e.readOnly && (!
|
|
5871
|
+
showClear: !e.readOnly && (!ke(n) || I(J)()),
|
|
5882
5872
|
disabled: e.readOnly,
|
|
5883
|
-
onHandleClose: (e) =>
|
|
5873
|
+
onHandleClose: (e) => Y(n)
|
|
5884
5874
|
}, null, 8, [
|
|
5885
5875
|
"label",
|
|
5886
5876
|
"showClear",
|
|
5887
5877
|
"disabled",
|
|
5888
5878
|
"onHandleClose"
|
|
5889
5879
|
])]))], 64))), 128))])) : a("", !0), u(I(Xa), {
|
|
5890
|
-
modelValue: I(
|
|
5891
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
5880
|
+
modelValue: I(ee),
|
|
5881
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(ee) ? ee.value = e : null,
|
|
5892
5882
|
readOnly: e.readOnly,
|
|
5893
5883
|
searchInput: I(D),
|
|
5894
5884
|
"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(
|
|
5885
|
+
selectionState: I(ve),
|
|
5886
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ve) ? ve.value = e : null,
|
|
5887
|
+
"data-horizontal-filter-field": I(R) ? void 0 : I(N),
|
|
5888
|
+
label: I(R) ? "" : I(L),
|
|
5899
5889
|
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:
|
|
5890
|
+
icon: I(R) && !e.readOnly ? "add-circle" : void 0,
|
|
5891
|
+
variant: I(R) ? "ghost" : "secondary",
|
|
5892
|
+
counterPosition: !I(R) && Ae.value ? void 0 : "none",
|
|
5893
|
+
showClear: !I(R),
|
|
5894
|
+
showSearchInput: I(te),
|
|
5895
|
+
searchPlaceholder: I(V),
|
|
5896
|
+
showDropdown: !I(R),
|
|
5897
|
+
overlayTrigger: I(R),
|
|
5898
|
+
options: I(B),
|
|
5899
|
+
optionsRenderer: I(ne),
|
|
5900
|
+
optionsAction: Ce.value,
|
|
5911
5901
|
popoverCssProperties: {
|
|
5912
5902
|
maxHeight: "400px",
|
|
5913
|
-
maxWidth: I(
|
|
5903
|
+
maxWidth: I(R) ? "300px" : "400px",
|
|
5914
5904
|
overflowX: "auto",
|
|
5915
5905
|
width: "auto"
|
|
5916
5906
|
},
|
|
5917
|
-
disableClearIcon: !!I(
|
|
5918
|
-
disableDropdownIcon: !!I(
|
|
5907
|
+
disableClearIcon: !!I(R) || e.readOnly,
|
|
5908
|
+
disableDropdownIcon: !!I(R),
|
|
5919
5909
|
groupings: ["preferences", "suggestions"],
|
|
5920
5910
|
isLoading: I(w),
|
|
5921
5911
|
isSeeMoreLoading: I(T),
|
|
5922
|
-
hasMoreOptions: I(
|
|
5923
|
-
totalOptionCount: I(
|
|
5924
|
-
enableCascadeSelection: I(
|
|
5925
|
-
enableChildExpansion: I(
|
|
5926
|
-
parentSelectsAllChildren: I(
|
|
5927
|
-
countSelectedParents: I(
|
|
5912
|
+
hasMoreOptions: I(he),
|
|
5913
|
+
totalOptionCount: I(ge),
|
|
5914
|
+
enableCascadeSelection: I(_e),
|
|
5915
|
+
enableChildExpansion: I(_e),
|
|
5916
|
+
parentSelectsAllChildren: I(_e),
|
|
5917
|
+
countSelectedParents: I(_e),
|
|
5928
5918
|
additionalCounter: S.value,
|
|
5929
5919
|
slotContext: {
|
|
5930
|
-
gridApi: I(
|
|
5920
|
+
gridApi: I(j),
|
|
5931
5921
|
filterColDef: e.filterColDef,
|
|
5932
|
-
rowsLoading: I(
|
|
5922
|
+
rowsLoading: I(A)
|
|
5933
5923
|
},
|
|
5934
|
-
onDropdownOpen:
|
|
5935
|
-
onDropdownClosed:
|
|
5936
|
-
onSeeMore: I(
|
|
5924
|
+
onDropdownOpen: De,
|
|
5925
|
+
onDropdownClosed: Oe,
|
|
5926
|
+
onSeeMore: I(pe)
|
|
5937
5927
|
}, c({
|
|
5938
|
-
preferences:
|
|
5928
|
+
preferences: U(() => [s("div", fl, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(bi), {
|
|
5939
5929
|
variant: "dark",
|
|
5940
5930
|
size: "sm",
|
|
5941
5931
|
"use-teleport": !0
|
|
5942
5932
|
}, {
|
|
5943
|
-
trigger:
|
|
5933
|
+
trigger: U(() => [u(gn, {
|
|
5944
5934
|
size: "md",
|
|
5945
5935
|
variant: "ghost",
|
|
5946
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5936
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(L)),
|
|
5947
5937
|
"right-icon": "sliders-horizontal"
|
|
5948
5938
|
})]),
|
|
5949
|
-
content:
|
|
5939
|
+
content: U(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5950
5940
|
_: 1
|
|
5951
5941
|
})])]),
|
|
5952
|
-
suggestions:
|
|
5942
|
+
suggestions: U(() => [s("div", pl, [u(I(bi), {
|
|
5953
5943
|
variant: "dark",
|
|
5954
5944
|
disableInteractive: !0,
|
|
5955
5945
|
position: "top-left",
|
|
@@ -5957,41 +5947,37 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5957
5947
|
"use-teleport": !0,
|
|
5958
5948
|
style: { "--max-width": "200px" }
|
|
5959
5949
|
}, c({
|
|
5960
|
-
trigger:
|
|
5950
|
+
trigger: U(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(ie) ? "suggested-title-label" : ""]) }, P(I(G)), 3)]),
|
|
5961
5951
|
_: 2
|
|
5962
|
-
}, [I(
|
|
5952
|
+
}, [I(ie) ? {
|
|
5963
5953
|
name: "content",
|
|
5964
|
-
fn:
|
|
5954
|
+
fn: U(() => [l(P(I(ie)), 1)]),
|
|
5965
5955
|
key: "0"
|
|
5966
5956
|
} : void 0]), 1024)])]),
|
|
5967
5957
|
_: 2
|
|
5968
5958
|
}, [
|
|
5969
|
-
I(
|
|
5959
|
+
I(re) || Ee.value ? {
|
|
5970
5960
|
name: "header",
|
|
5971
|
-
fn:
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
"filter-col-def": e.filterColDef
|
|
5979
|
-
}, null, 8, ["filter-col-def"])) : a("", !0),
|
|
5980
|
-
I(ie) ? (E(), i(M(I(ie)), b(_({ key: 2 }, t)), null, 16)) : a("", !0)
|
|
5981
|
-
]),
|
|
5961
|
+
fn: U((t) => [Ee.value ? (E(), i(ll, {
|
|
5962
|
+
key: 0,
|
|
5963
|
+
ref_key: "filterGroupMenuRef",
|
|
5964
|
+
ref: g,
|
|
5965
|
+
class: "pv-stack-8",
|
|
5966
|
+
"filter-col-def": e.filterColDef
|
|
5967
|
+
}, null, 8, ["filter-col-def"])) : a("", !0), I(re) ? (E(), i(M(I(re)), b(_({ key: 1 }, t)), null, 16)) : a("", !0)]),
|
|
5982
5968
|
key: "0"
|
|
5983
5969
|
} : void 0,
|
|
5984
|
-
I(
|
|
5970
|
+
I(H) ? {
|
|
5985
5971
|
name: "no-results",
|
|
5986
|
-
fn:
|
|
5972
|
+
fn: U((e) => [(E(), i(M(I(H)), b(p(e)), null, 16))]),
|
|
5987
5973
|
key: "1"
|
|
5988
5974
|
} : void 0,
|
|
5989
|
-
I(
|
|
5975
|
+
I(W) ? {
|
|
5990
5976
|
name: "footer",
|
|
5991
|
-
fn:
|
|
5977
|
+
fn: U((e) => [(E(), i(M(I(W)), b(p(e)), null, 16))]),
|
|
5992
5978
|
key: "2"
|
|
5993
5979
|
} : 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(
|
|
5980
|
+
]), 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(R) && !e.readOnly ? (E(), o("div", ml, [I(z).length > 0 ? (E(), o("div", hl, [s("ul", gl, [u(I(bi), {
|
|
5995
5981
|
variant: "dark",
|
|
5996
5982
|
disableInteractive: !0,
|
|
5997
5983
|
position: "bottom-left",
|
|
@@ -5999,14 +5985,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5999
5985
|
"use-teleport": !0,
|
|
6000
5986
|
style: { "--max-width": "200px" }
|
|
6001
5987
|
}, c({
|
|
6002
|
-
trigger:
|
|
5988
|
+
trigger: U(() => [s("li", _l, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(ie) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
6003
5989
|
_: 2
|
|
6004
|
-
}, [I(
|
|
5990
|
+
}, [I(ie) ? {
|
|
6005
5991
|
name: "content",
|
|
6006
|
-
fn:
|
|
5992
|
+
fn: U(() => [l(P(I(ie)), 1)]),
|
|
6007
5993
|
key: "0"
|
|
6008
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
6009
|
-
key: `${I(
|
|
5994
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(z).filter((e) => e !== "" && e != null).slice(0, vl), (e) => (E(), o("li", {
|
|
5995
|
+
key: `${I(L)}-${e}-suggest`,
|
|
6010
5996
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
6011
5997
|
style: {
|
|
6012
5998
|
"max-width": "100%",
|
|
@@ -6015,28 +6001,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6015
6001
|
}, [u(I(Pi), {
|
|
6016
6002
|
disabled: I(w),
|
|
6017
6003
|
label: I(K)(e) || "",
|
|
6018
|
-
onHandleClick: (t) => I(
|
|
6004
|
+
onHandleClick: (t) => I(le)(e, I(ae)(I(N), e)?.colField)
|
|
6019
6005
|
}, null, 8, [
|
|
6020
6006
|
"disabled",
|
|
6021
6007
|
"label",
|
|
6022
6008
|
"onHandleClick"
|
|
6023
6009
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
6024
6010
|
}
|
|
6025
|
-
}), [["__scopeId", "data-v-
|
|
6011
|
+
}), [["__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
6012
|
id: "filter-vertical-drawer",
|
|
6027
6013
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
6028
6014
|
style: { height: "100%" }
|
|
6029
|
-
},
|
|
6015
|
+
}, Tl = { class: "pv-full-width" }, El = {
|
|
6030
6016
|
class: "pv-details pv-stack-12",
|
|
6031
6017
|
open: ""
|
|
6032
|
-
},
|
|
6018
|
+
}, 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
6019
|
class: "pv-flex",
|
|
6034
6020
|
style: {
|
|
6035
6021
|
"--flex-justify": "end",
|
|
6036
6022
|
"--flex-gap": "8px",
|
|
6037
6023
|
"margin-top": "auto"
|
|
6038
6024
|
}
|
|
6039
|
-
},
|
|
6025
|
+
}, Ml = /* @__PURE__ */ d({
|
|
6040
6026
|
__name: "FilterPanel",
|
|
6041
6027
|
props: {
|
|
6042
6028
|
enableFocusView: {
|
|
@@ -6067,43 +6053,43 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6067
6053
|
let n = uc(e) ? cc(e) : [e.field || ""];
|
|
6068
6054
|
if (f.value) {
|
|
6069
6055
|
let e = /* @__PURE__ */ new Set();
|
|
6070
|
-
return
|
|
6056
|
+
return z(t, e), n.some((t) => e.has(t));
|
|
6071
6057
|
}
|
|
6072
6058
|
let r = t;
|
|
6073
6059
|
return n.some((e) => !!r[e]);
|
|
6074
6060
|
}, N = r(() => c.value.filter((e) => kc(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "") && (!p.readOnly || M(e))).sort((e, t) => {
|
|
6075
6061
|
let n = uc(e), r = uc(t);
|
|
6076
6062
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
6077
|
-
})), F = r(() => N.value),
|
|
6063
|
+
})), F = r(() => N.value), L = r(() => {
|
|
6078
6064
|
let e = D.value?.trim().toLowerCase() || "";
|
|
6079
6065
|
return !e || e === "" ? F.value : c.value.filter((t) => {
|
|
6080
6066
|
let n = t.headerName?.toLowerCase() || t.field?.toLowerCase();
|
|
6081
6067
|
return n ? n.includes(e) : !1;
|
|
6082
6068
|
});
|
|
6083
|
-
}),
|
|
6069
|
+
}), R = r(() => {
|
|
6084
6070
|
let e = [...N.value].slice(0, p.maxHorizontalFilters);
|
|
6085
6071
|
return d.value ? [...e.slice(0, p.maxHorizontalFilters - 1), d.value] : e;
|
|
6086
|
-
}),
|
|
6072
|
+
}), z = (e, t) => {
|
|
6087
6073
|
if (!e || typeof e != "object") return;
|
|
6088
6074
|
let n = e;
|
|
6089
6075
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
6090
6076
|
t.add(n.colId);
|
|
6091
6077
|
return;
|
|
6092
6078
|
}
|
|
6093
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
6094
|
-
},
|
|
6079
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => z(e, t));
|
|
6080
|
+
}, B = r(() => {
|
|
6095
6081
|
let e = _.value;
|
|
6096
6082
|
if (f.value && n.value) {
|
|
6097
6083
|
let t = /* @__PURE__ */ new Set();
|
|
6098
|
-
return
|
|
6084
|
+
return z(e, t), t.size;
|
|
6099
6085
|
}
|
|
6100
6086
|
let t = _.value || {};
|
|
6101
6087
|
return Object.keys(t).length;
|
|
6102
|
-
}),
|
|
6103
|
-
|
|
6104
|
-
},
|
|
6088
|
+
}), ee = O(!1), te = () => {
|
|
6089
|
+
ee.value = !0;
|
|
6090
|
+
}, V = () => {
|
|
6105
6091
|
if (n.value) {
|
|
6106
|
-
|
|
6092
|
+
ee.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
6107
6093
|
for (let e of F.value) {
|
|
6108
6094
|
let t = e.field;
|
|
6109
6095
|
if (!t) continue;
|
|
@@ -6115,17 +6101,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6115
6101
|
});
|
|
6116
6102
|
}
|
|
6117
6103
|
}
|
|
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
|
-
},
|
|
6104
|
+
}, { clearAllFocuses: H } = Fs(), ne = () => {
|
|
6105
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, H(), T.value = !1);
|
|
6106
|
+
}, re = () => {
|
|
6121
6107
|
w.value = !1, D.value = "";
|
|
6122
6108
|
}, W = () => {
|
|
6123
|
-
b(), g.value = null,
|
|
6124
|
-
},
|
|
6125
|
-
b(),
|
|
6109
|
+
b(), g.value = null, re();
|
|
6110
|
+
}, G = () => {
|
|
6111
|
+
b(), ee.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, re();
|
|
6126
6112
|
};
|
|
6127
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
6128
|
-
(E(!0), o(t, null, k(
|
|
6113
|
+
return (e, r) => (E(), o(t, null, [s("div", bl, [
|
|
6114
|
+
(E(!0), o(t, null, k(R.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(yl, {
|
|
6129
6115
|
key: 0,
|
|
6130
6116
|
"enable-focus-view": p.enableFocusView,
|
|
6131
6117
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -6140,22 +6126,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6140
6126
|
"filterColDef",
|
|
6141
6127
|
"read-only"
|
|
6142
6128
|
])) : a("", !0)], 64))), 128)),
|
|
6143
|
-
s("div",
|
|
6129
|
+
s("div", xl, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
6144
6130
|
key: 0,
|
|
6145
6131
|
label: "All Filters",
|
|
6146
|
-
onClick:
|
|
6132
|
+
onClick: V,
|
|
6147
6133
|
variant: "ghost",
|
|
6148
6134
|
"left-icon": "filter"
|
|
6149
|
-
})) : a("", !0),
|
|
6135
|
+
})) : a("", !0), B.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
6150
6136
|
key: 1,
|
|
6151
6137
|
class: "pv-button-ghost",
|
|
6152
6138
|
onClick: r[1] ||= (e) => T.value = !0
|
|
6153
6139
|
}, [
|
|
6154
6140
|
u(I(ln), { name: "close" }),
|
|
6155
6141
|
r[13] ||= l(" Clear All Filters ", -1),
|
|
6156
|
-
|
|
6142
|
+
B.value > 0 ? (E(), i(I(pn), {
|
|
6157
6143
|
key: 0,
|
|
6158
|
-
value:
|
|
6144
|
+
value: B.value,
|
|
6159
6145
|
variant: "tertiary"
|
|
6160
6146
|
}, null, 8, ["value"])) : a("", !0)
|
|
6161
6147
|
])) : a("", !0)]),
|
|
@@ -6165,13 +6151,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6165
6151
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
6166
6152
|
class: "pv-drawer pv-surface",
|
|
6167
6153
|
"close-on-click-outside": !0,
|
|
6168
|
-
onClickOutside: r[10] ||= (e) =>
|
|
6154
|
+
onClickOutside: r[10] ||= (e) => G(),
|
|
6169
6155
|
style: {
|
|
6170
6156
|
"max-width": "450px",
|
|
6171
6157
|
"z-index": "10"
|
|
6172
6158
|
}
|
|
6173
6159
|
}, {
|
|
6174
|
-
header:
|
|
6160
|
+
header: U(() => [s("div", Sl, [s("p", Cl, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
6175
6161
|
class: "pv-button-ghost",
|
|
6176
6162
|
"aria-label": "Close",
|
|
6177
6163
|
onClick: r[2] ||= (e) => W()
|
|
@@ -6180,33 +6166,33 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6180
6166
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
6181
6167
|
placeholder: "Search Filters"
|
|
6182
6168
|
}, null, 8, ["modelValue"])]),
|
|
6183
|
-
footer:
|
|
6169
|
+
footer: U(() => [s("div", kl, [p.readOnly ? (E(), i(I(gn), {
|
|
6184
6170
|
key: 1,
|
|
6185
6171
|
variant: "ghost",
|
|
6186
6172
|
label: "Close",
|
|
6187
6173
|
onClick: r[8] ||= (e) => W()
|
|
6188
6174
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
6189
6175
|
class: "pv-button-ghost",
|
|
6190
|
-
onClick: r[5] ||= (e) =>
|
|
6191
|
-
}, "Clear All"), s("div",
|
|
6176
|
+
onClick: r[5] ||= (e) => ne()
|
|
6177
|
+
}, "Clear All"), s("div", Al, [u(I(gn), {
|
|
6192
6178
|
variant: "ghost",
|
|
6193
6179
|
label: "Cancel",
|
|
6194
6180
|
onClick: r[6] ||= (e) => W()
|
|
6195
|
-
}),
|
|
6181
|
+
}), ee.value ? (E(), i(I(gn), {
|
|
6196
6182
|
key: 0,
|
|
6197
6183
|
variant: "primary",
|
|
6198
6184
|
label: "Apply",
|
|
6199
|
-
onClick: r[7] ||= (e) =>
|
|
6185
|
+
onClick: r[7] ||= (e) => G()
|
|
6200
6186
|
})) : (E(), i(I(gn), {
|
|
6201
6187
|
key: 1,
|
|
6202
6188
|
variant: "primary",
|
|
6203
6189
|
label: "No Changes",
|
|
6204
6190
|
disabled: ""
|
|
6205
6191
|
}))])], 64))])]),
|
|
6206
|
-
default:
|
|
6192
|
+
default: U(() => [s("div", wl, [s("div", Tl, [(E(!0), o(t, null, k(L.value, (t, c) => (E(), o("div", {
|
|
6207
6193
|
key: t.field,
|
|
6208
|
-
class: y([{ "pv-border-bottom": c <
|
|
6209
|
-
}, [s("details",
|
|
6194
|
+
class: y([{ "pv-border-bottom": c < L.value.length - 1 }, "pv-stack-12"])
|
|
6195
|
+
}, [s("details", El, [s("summary", Dl, [s("span", Ol, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(yl, {
|
|
6210
6196
|
key: 0,
|
|
6211
6197
|
"filter-style": "vertical",
|
|
6212
6198
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -6214,7 +6200,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6214
6200
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
6215
6201
|
"focus-text": p.focusText,
|
|
6216
6202
|
"read-only": p.readOnly,
|
|
6217
|
-
onFilterSelectionChanged:
|
|
6203
|
+
onFilterSelectionChanged: te,
|
|
6218
6204
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
6219
6205
|
}, null, 8, [
|
|
6220
6206
|
"enable-focus-view",
|
|
@@ -6231,8 +6217,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6231
6217
|
header: "Clear All Filters",
|
|
6232
6218
|
style: { top: "50%" }
|
|
6233
6219
|
}, {
|
|
6234
|
-
body:
|
|
6235
|
-
footer:
|
|
6220
|
+
body: U(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
6221
|
+
footer: U(() => [s("div", jl, [u(I(gn), {
|
|
6236
6222
|
label: "Cancel",
|
|
6237
6223
|
variant: "secondary",
|
|
6238
6224
|
size: "lg",
|
|
@@ -6241,15 +6227,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6241
6227
|
label: "Clear All Filters",
|
|
6242
6228
|
variant: "primary",
|
|
6243
6229
|
size: "lg",
|
|
6244
|
-
onClick:
|
|
6230
|
+
onClick: ne
|
|
6245
6231
|
})])]),
|
|
6246
6232
|
_: 1
|
|
6247
6233
|
}, 8, ["modelValue"])], 64));
|
|
6248
6234
|
}
|
|
6249
|
-
}),
|
|
6235
|
+
}), Nl = { key: 2 }, Pl = {
|
|
6250
6236
|
key: 0,
|
|
6251
6237
|
class: "pv-flex ag-header-actions"
|
|
6252
|
-
},
|
|
6238
|
+
}, Fl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6253
6239
|
__name: "HeaderCellRenderer",
|
|
6254
6240
|
props: { params: {} },
|
|
6255
6241
|
setup(e, { expose: t }) {
|
|
@@ -6280,7 +6266,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6280
6266
|
}, I = () => {
|
|
6281
6267
|
f.value && l.params.progressSort(!1);
|
|
6282
6268
|
};
|
|
6283
|
-
|
|
6269
|
+
H(D, (e) => {
|
|
6284
6270
|
if (!e) return;
|
|
6285
6271
|
let t = l.params.column.getAggFunc();
|
|
6286
6272
|
if (e.id === t) return;
|
|
@@ -6296,10 +6282,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6296
6282
|
}
|
|
6297
6283
|
F(l.params);
|
|
6298
6284
|
});
|
|
6299
|
-
function
|
|
6285
|
+
function L(e) {
|
|
6300
6286
|
return F(e), !0;
|
|
6301
6287
|
}
|
|
6302
|
-
return t({ refresh:
|
|
6288
|
+
return t({ refresh: L }), (e, t) => (E(), o("div", {
|
|
6303
6289
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
6304
6290
|
style: x(k.value),
|
|
6305
6291
|
onClick: I
|
|
@@ -6324,17 +6310,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6324
6310
|
variant: "ghost",
|
|
6325
6311
|
size: "lg",
|
|
6326
6312
|
label: p.value || "",
|
|
6327
|
-
onClick: t[1] ||=
|
|
6313
|
+
onClick: t[1] ||= re(() => {}, ["stop"])
|
|
6328
6314
|
}, null, 8, [
|
|
6329
6315
|
"modelValue",
|
|
6330
6316
|
"options",
|
|
6331
6317
|
"label"
|
|
6332
|
-
])) : (E(), o("p",
|
|
6318
|
+
])) : (E(), o("p", Nl, P(p.value), 1)),
|
|
6333
6319
|
f.value && b.value !== "" ? (E(), i(ln, {
|
|
6334
6320
|
key: 3,
|
|
6335
6321
|
name: b.value
|
|
6336
6322
|
}, null, 8, ["name"])) : a("", !0)
|
|
6337
|
-
], 6), v.value ? (E(), o("div",
|
|
6323
|
+
], 6), v.value ? (E(), o("div", Pl, [s("div", {
|
|
6338
6324
|
ref_key: "menuButton",
|
|
6339
6325
|
ref: g,
|
|
6340
6326
|
class: "ag-header-cell-menu-button",
|
|
@@ -6344,10 +6330,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6344
6330
|
variant: "ghost",
|
|
6345
6331
|
"left-icon": "menu",
|
|
6346
6332
|
ariaLabel: "Column menu",
|
|
6347
|
-
onClick:
|
|
6333
|
+
onClick: re(N, ["stop", "prevent"])
|
|
6348
6334
|
})], 4)])) : a("", !0)], 4));
|
|
6349
6335
|
}
|
|
6350
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
6336
|
+
}), [["__scopeId", "data-v-385ad98a"]]), Il = {
|
|
6351
6337
|
headerHeight: "30px",
|
|
6352
6338
|
headerBackgroundColor: "white",
|
|
6353
6339
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -6362,14 +6348,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6362
6348
|
rangeSelectionBorderStyle: "solid",
|
|
6363
6349
|
menuBackgroundColor: "white",
|
|
6364
6350
|
accentColor: "#36C5BA"
|
|
6365
|
-
},
|
|
6366
|
-
...
|
|
6351
|
+
}, Ll = Y.withParams({
|
|
6352
|
+
...Il,
|
|
6367
6353
|
headerRowBorder: !0,
|
|
6368
6354
|
rowHoverColor: "#F7F8F8",
|
|
6369
6355
|
wrapperBorder: !0,
|
|
6370
6356
|
wrapperBorderRadius: "8px"
|
|
6371
|
-
}),
|
|
6372
|
-
...
|
|
6357
|
+
}), Rl = Y.withParams({
|
|
6358
|
+
...Il,
|
|
6373
6359
|
headerRowBorder: !1,
|
|
6374
6360
|
rowHoverColor: "transparent",
|
|
6375
6361
|
wrapperBorder: !1,
|
|
@@ -6377,20 +6363,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6377
6363
|
rowBorder: !1,
|
|
6378
6364
|
columnBorder: !1,
|
|
6379
6365
|
rowHeight: "50px"
|
|
6380
|
-
}),
|
|
6381
|
-
"pv-data-table-base":
|
|
6366
|
+
}), zl = {
|
|
6367
|
+
"pv-data-table-base": Ll,
|
|
6382
6368
|
"pv-data-table-grouped": Y.withParams({
|
|
6383
|
-
...
|
|
6369
|
+
...Il,
|
|
6384
6370
|
headerRowBorder: !0,
|
|
6385
6371
|
rowHoverColor: "#F7F8F8",
|
|
6386
6372
|
wrapperBorder: !0,
|
|
6387
6373
|
wrapperBorderRadius: "8px"
|
|
6388
6374
|
}),
|
|
6389
|
-
"pv-data-table-grouped-card":
|
|
6390
|
-
},
|
|
6375
|
+
"pv-data-table-grouped-card": Rl
|
|
6376
|
+
}, Bl = { class: "pv-popover-menu" }, Vl = {
|
|
6391
6377
|
class: "pv-popover",
|
|
6392
6378
|
style: { "--height": "auto" }
|
|
6393
|
-
},
|
|
6379
|
+
}, Hl = ["disabled"], Ul = /* @__PURE__ */ d({
|
|
6394
6380
|
__name: "ExportMenu",
|
|
6395
6381
|
props: { getCsvData: { type: Function } },
|
|
6396
6382
|
setup(e) {
|
|
@@ -6405,22 +6391,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6405
6391
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
6406
6392
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
6407
6393
|
}
|
|
6408
|
-
return (e, n) => (E(), o("nav",
|
|
6394
|
+
return (e, n) => (E(), o("nav", Bl, [n[0] ||= s("button", {
|
|
6409
6395
|
type: "button",
|
|
6410
6396
|
class: "pv-button-icon"
|
|
6411
6397
|
}, [s("svg", {
|
|
6412
6398
|
"aria-hidden": "true",
|
|
6413
6399
|
class: "pv-icon-24"
|
|
6414
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
6400
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Vl, [s("button", {
|
|
6415
6401
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6416
|
-
onClick:
|
|
6402
|
+
onClick: re(i, ["prevent"]),
|
|
6417
6403
|
disabled: r.value
|
|
6418
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
6404
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Hl)])]));
|
|
6419
6405
|
}
|
|
6420
|
-
}),
|
|
6406
|
+
}), Wl = {
|
|
6421
6407
|
key: 1,
|
|
6422
6408
|
class: ""
|
|
6423
|
-
},
|
|
6409
|
+
}, Gl = /* @__PURE__ */ d({
|
|
6424
6410
|
__name: "PaginationPanel",
|
|
6425
6411
|
props: { panelSize: { default: "xl" } },
|
|
6426
6412
|
setup(e) {
|
|
@@ -6457,7 +6443,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6457
6443
|
"size",
|
|
6458
6444
|
"onClick",
|
|
6459
6445
|
"label"
|
|
6460
|
-
])) : (E(), o("span",
|
|
6446
|
+
])) : (E(), o("span", Wl, "..."))], 64))), 128)),
|
|
6461
6447
|
u(gn, {
|
|
6462
6448
|
variant: "ghost",
|
|
6463
6449
|
onClick: f,
|
|
@@ -6468,10 +6454,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6468
6454
|
}, null, 8, ["disabled", "size"])
|
|
6469
6455
|
], 2));
|
|
6470
6456
|
}
|
|
6471
|
-
}),
|
|
6457
|
+
}), Kl = {
|
|
6472
6458
|
key: 0,
|
|
6473
6459
|
class: "pv-tag"
|
|
6474
|
-
},
|
|
6460
|
+
}, ql = /* @__PURE__ */ d({
|
|
6475
6461
|
__name: "TagCellRenderer",
|
|
6476
6462
|
props: { params: {} },
|
|
6477
6463
|
setup(e) {
|
|
@@ -6479,12 +6465,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6479
6465
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
6480
6466
|
return e.trim() === "" ? null : e;
|
|
6481
6467
|
});
|
|
6482
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
6468
|
+
return (e, t) => n.value ? (E(), o("div", Kl, P(n.value), 1)) : a("", !0);
|
|
6483
6469
|
}
|
|
6484
|
-
}),
|
|
6470
|
+
}), Jl = {
|
|
6485
6471
|
key: 0,
|
|
6486
6472
|
class: "pv-table-row-number"
|
|
6487
|
-
},
|
|
6473
|
+
}, Yl = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6488
6474
|
__name: "RowCountCellRenderer",
|
|
6489
6475
|
props: { params: {} },
|
|
6490
6476
|
setup(e) {
|
|
@@ -6492,9 +6478,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6492
6478
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
6493
6479
|
return e && oc(e) ? n.toLocaleString() : n;
|
|
6494
6480
|
});
|
|
6495
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
6481
|
+
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
6482
|
}
|
|
6497
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
6483
|
+
}), [["__scopeId", "data-v-686928ce"]]), Xl = /* @__PURE__ */ d({
|
|
6498
6484
|
__name: "TableSearch",
|
|
6499
6485
|
props: {
|
|
6500
6486
|
placeholder: {},
|
|
@@ -6566,28 +6552,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6566
6552
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
6567
6553
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
6568
6554
|
}
|
|
6569
|
-
}),
|
|
6555
|
+
}), Zl = {
|
|
6570
6556
|
style: {
|
|
6571
6557
|
"background-color": "white",
|
|
6572
6558
|
"max-width": "300px"
|
|
6573
6559
|
},
|
|
6574
6560
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
6575
|
-
},
|
|
6561
|
+
}, Ql = { style: { color: "black" } }, $l = /* @__PURE__ */ d({
|
|
6576
6562
|
__name: "TableTooltip",
|
|
6577
6563
|
props: { params: {} },
|
|
6578
6564
|
setup(e) {
|
|
6579
|
-
return (t, n) => (E(), o("div",
|
|
6565
|
+
return (t, n) => (E(), o("div", Zl, [s("p", Ql, P(e.params.value), 1)]));
|
|
6580
6566
|
}
|
|
6581
|
-
}),
|
|
6567
|
+
}), eu = { class: "pv-stack-16" }, tu = { class: "pv-flex pv-space-between" }, nu = { class: "pv-flex" }, ru = { style: {
|
|
6582
6568
|
width: "30%",
|
|
6583
6569
|
"max-width": "50%"
|
|
6584
|
-
} },
|
|
6570
|
+
} }, iu = {
|
|
6585
6571
|
key: 0,
|
|
6586
6572
|
class: "pv-table-overlay"
|
|
6587
|
-
},
|
|
6573
|
+
}, au = {
|
|
6588
6574
|
class: "pv-text-body-xs pv-text-center",
|
|
6589
6575
|
style: { "padding-top": "16px" }
|
|
6590
|
-
},
|
|
6576
|
+
}, ou = /* @__PURE__ */ d({
|
|
6591
6577
|
__name: "PvDataTable",
|
|
6592
6578
|
props: {
|
|
6593
6579
|
allFieldsAreFocusable: {
|
|
@@ -6633,7 +6619,6 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6633
6619
|
default: !1
|
|
6634
6620
|
},
|
|
6635
6621
|
enableTableSearch: { type: Boolean },
|
|
6636
|
-
filterSearchMinLength: {},
|
|
6637
6622
|
enableTopSlot: { type: Boolean },
|
|
6638
6623
|
enableVerticalFilterPanel: {
|
|
6639
6624
|
type: Boolean,
|
|
@@ -6771,11 +6756,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6771
6756
|
let d = [
|
|
6772
6757
|
Te,
|
|
6773
6758
|
Ee,
|
|
6774
|
-
|
|
6759
|
+
ae,
|
|
6775
6760
|
De,
|
|
6776
|
-
|
|
6761
|
+
oe,
|
|
6777
6762
|
Oe,
|
|
6778
|
-
|
|
6763
|
+
se,
|
|
6779
6764
|
ce,
|
|
6780
6765
|
ke,
|
|
6781
6766
|
Ae,
|
|
@@ -6787,7 +6772,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6787
6772
|
Re,
|
|
6788
6773
|
Le,
|
|
6789
6774
|
ze,
|
|
6790
|
-
|
|
6775
|
+
Ce,
|
|
6791
6776
|
Ne,
|
|
6792
6777
|
be,
|
|
6793
6778
|
Fe,
|
|
@@ -6796,10 +6781,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6796
6781
|
ve,
|
|
6797
6782
|
ye,
|
|
6798
6783
|
Be,
|
|
6799
|
-
Ce,
|
|
6800
|
-
we,
|
|
6801
|
-
oe,
|
|
6802
6784
|
Se,
|
|
6785
|
+
we,
|
|
6786
|
+
K,
|
|
6787
|
+
J,
|
|
6803
6788
|
he,
|
|
6804
6789
|
_e,
|
|
6805
6790
|
fe,
|
|
@@ -6812,7 +6797,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6812
6797
|
let p = r(() => f.layout ? {} : {
|
|
6813
6798
|
height: f.containerHeight,
|
|
6814
6799
|
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 :
|
|
6800
|
+
}), 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
6801
|
let t = cc(e), n = e.context;
|
|
6817
6802
|
return Array.from(new Set([
|
|
6818
6803
|
...t,
|
|
@@ -6906,19 +6891,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6906
6891
|
}, e.fail = () => {
|
|
6907
6892
|
Ue.value = !1, n();
|
|
6908
6893
|
}, f.serverSideRowHandler?.(e);
|
|
6909
|
-
} } : null,
|
|
6894
|
+
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6910
6895
|
let t = [], n = { ...Qe.value };
|
|
6911
6896
|
t = !He.value && pe ? Wc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await it(e.colDef, {
|
|
6912
6897
|
api: e.api,
|
|
6913
6898
|
filterModel: n,
|
|
6914
6899
|
useStaged: !1
|
|
6915
6900
|
}), e.success([...t, ""]);
|
|
6916
|
-
} : null,
|
|
6901
|
+
} : null, R = (e) => {
|
|
6917
6902
|
let t = e.node, n = e.column?.getColId();
|
|
6918
6903
|
return !t.group || !n ? !1 : ft.value.some((e) => {
|
|
6919
6904
|
if (e.field === n) return !0;
|
|
6920
6905
|
});
|
|
6921
|
-
},
|
|
6906
|
+
}, z = (() => {
|
|
6922
6907
|
let e = {
|
|
6923
6908
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
6924
6909
|
editable: !1,
|
|
@@ -6927,30 +6912,30 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6927
6912
|
suppressColumnsToolPanel: !0,
|
|
6928
6913
|
minWidth: 150,
|
|
6929
6914
|
flex: 1,
|
|
6930
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
6915
|
+
headerComponent: f.enableInlineFilters ? void 0 : Fl,
|
|
6931
6916
|
cellDataType: !1,
|
|
6932
|
-
tooltipComponent:
|
|
6917
|
+
tooltipComponent: $l,
|
|
6933
6918
|
cellClass: (e) => xt(e.column) ? "" : oc(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
6934
6919
|
cellRendererSelector: (e) => {
|
|
6935
|
-
if (
|
|
6920
|
+
if (R(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
6936
6921
|
component: hc,
|
|
6937
6922
|
params: e
|
|
6938
6923
|
};
|
|
6939
6924
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && Y.value.length === 0) {
|
|
6940
6925
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
6941
6926
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
6942
|
-
component:
|
|
6927
|
+
component: Yl,
|
|
6943
6928
|
params: e
|
|
6944
6929
|
};
|
|
6945
6930
|
}
|
|
6946
6931
|
}
|
|
6947
6932
|
};
|
|
6948
6933
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
6949
|
-
})(),
|
|
6934
|
+
})(), B = O(void 0), ee = r(() => (e) => {
|
|
6950
6935
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
6951
6936
|
let t = [];
|
|
6952
6937
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
6953
|
-
}),
|
|
6938
|
+
}), te = {
|
|
6954
6939
|
name: "Column Filter",
|
|
6955
6940
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
6956
6941
|
action: function(e) {
|
|
@@ -6962,7 +6947,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6962
6947
|
}));
|
|
6963
6948
|
}
|
|
6964
6949
|
}
|
|
6965
|
-
},
|
|
6950
|
+
}, re = (e, t) => {
|
|
6966
6951
|
if (!e) return null;
|
|
6967
6952
|
let n = { ...e }, r = t, i = cc(e);
|
|
6968
6953
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -6975,14 +6960,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6975
6960
|
let t = e.headerValueGetter;
|
|
6976
6961
|
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
6962
|
}
|
|
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 =
|
|
6963
|
+
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;
|
|
6979
6964
|
}, W = f.colDefs?.map((e) => {
|
|
6980
6965
|
let t = { ...e };
|
|
6981
|
-
F &&
|
|
6966
|
+
F && L && kc(e) && (t = Ac(e, L));
|
|
6982
6967
|
let n = e.context;
|
|
6983
|
-
return n && (t =
|
|
6984
|
-
}).filter((e) => e != null) || [],
|
|
6985
|
-
for (let e of W) for (let t of cc(e))
|
|
6968
|
+
return n && (t = re(t, n)), t;
|
|
6969
|
+
}).filter((e) => e != null) || [], G = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
6970
|
+
for (let e of W) for (let t of cc(e)) G.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
6986
6971
|
let pe = Sc(f.initialGridState, W, f.enableAdvancedFilter), ge = O(null), Y = O([]), He = m(ns, O(!1)), Ue = O(!1), We = r(() => {
|
|
6987
6972
|
if (Y.value.length > 0) {
|
|
6988
6973
|
let e = Y.value[0], t = W.find((t) => t.field === e), n = Qe.value, r = !n;
|
|
@@ -7006,7 +6991,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7006
6991
|
}) ?? e(t.field) : e(t.field);
|
|
7007
6992
|
});
|
|
7008
6993
|
}
|
|
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.
|
|
6994
|
+
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", H(() => f.enableAdvancedFilter, (e) => {
|
|
7010
6995
|
Ye.filterModelType.value = e ? "advanced" : "regular";
|
|
7011
6996
|
}), qe([et, rt], () => {
|
|
7012
6997
|
T("filter-metadata-changed", {
|
|
@@ -7020,12 +7005,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7020
7005
|
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() => W.filter((e) => e.filter)), dt = r(() => W.filter((e) => e.enableRowGroup)), ft = r(() => W.filter((e) => e.aggFunc)), pt = O(null), mt = O({}), ht = O(1), gt = O(0);
|
|
7021
7006
|
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
7007
|
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData : nc(f.rowData, ct.value, lt.value));
|
|
7023
|
-
|
|
7008
|
+
H(() => lt.value, (e) => {
|
|
7024
7009
|
T("focus-update", {
|
|
7025
7010
|
filterField: ct.value,
|
|
7026
7011
|
focuses: e
|
|
7027
7012
|
});
|
|
7028
|
-
}),
|
|
7013
|
+
}), H(k, (e) => {
|
|
7029
7014
|
if (!Z.value) return;
|
|
7030
7015
|
let t = W.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
7031
7016
|
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
@@ -7206,7 +7191,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7206
7191
|
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
7192
|
return;
|
|
7208
7193
|
}
|
|
7209
|
-
Ut.value.field = e.field, Ut.value.headerName = e.headerName, Ut.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
7194
|
+
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
7195
|
}, Gt = (e) => {
|
|
7211
7196
|
if (e.node.group) return {
|
|
7212
7197
|
backgroundColor: "#F7F8F8",
|
|
@@ -7227,14 +7212,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7227
7212
|
S(() => {
|
|
7228
7213
|
Zt.value = document.querySelector("body");
|
|
7229
7214
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
7230
|
-
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."),
|
|
7215
|
+
(e && t || e && n) && console.warn("Only one of `rowData` or `serverSideRowHandler + hasFilterValuesSetHandler` params should be provided to PvDataTable, not both."), B.value = (e) => {
|
|
7231
7216
|
let t = [
|
|
7232
7217
|
"sortAscending",
|
|
7233
7218
|
"sortDescending",
|
|
7234
7219
|
"sortUnSort",
|
|
7235
7220
|
"rowUnGroup"
|
|
7236
7221
|
], n = e.column && xt(e.column) ? pt.value : e.column;
|
|
7237
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
7222
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, te), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
7238
7223
|
}, pe && (Qe.value = (f.enableAdvancedFilter ? pe.filter?.advancedFilterModel : pe.filter?.filterModel) || null, Y.value = pe.rowGroup?.groupColIds || []);
|
|
7239
7224
|
});
|
|
7240
7225
|
let qt = (e) => {
|
|
@@ -7243,7 +7228,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7243
7228
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
7244
7229
|
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
7230
|
};
|
|
7246
|
-
|
|
7231
|
+
H(() => f.initialGridState, () => {
|
|
7247
7232
|
if (f.initialGridState) {
|
|
7248
7233
|
let e = Sc(f.initialGridState, W, f.enableAdvancedFilter);
|
|
7249
7234
|
e && qt(e);
|
|
@@ -7269,19 +7254,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7269
7254
|
"--flex-justify": "flex-end"
|
|
7270
7255
|
}
|
|
7271
7256
|
}, {
|
|
7272
|
-
trigger:
|
|
7257
|
+
trigger: U(() => [u(I(gn), {
|
|
7273
7258
|
"left-icon": "flask-conical",
|
|
7274
7259
|
ariaLabel: "Toggle dev mode",
|
|
7275
7260
|
variant: k.value ? "primary" : "secondary",
|
|
7276
7261
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
7277
7262
|
}, null, 8, ["variant"])]),
|
|
7278
|
-
content:
|
|
7263
|
+
content: U(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
7279
7264
|
_: 1
|
|
7280
7265
|
})) : a("", !0),
|
|
7281
|
-
|
|
7266
|
+
ne(s("div", eu, [s("div", tu, [(E(), i(n, {
|
|
7282
7267
|
to: e.filterTeleportLocation,
|
|
7283
7268
|
disabled: !e.filterTeleportLocation
|
|
7284
|
-
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
7269
|
+
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(Ml, {
|
|
7285
7270
|
key: 0,
|
|
7286
7271
|
"enable-focus-view": e.enableFocusView,
|
|
7287
7272
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -7299,23 +7284,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7299
7284
|
"focus-text",
|
|
7300
7285
|
"max-horizontal-filters",
|
|
7301
7286
|
"read-only"
|
|
7302
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
7287
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", nu, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Es, {
|
|
7303
7288
|
key: 0,
|
|
7304
7289
|
rowGroupLimit: e.rowGroupLimit,
|
|
7305
7290
|
enableFocusView: e.enableFocusView
|
|
7306
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
7291
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Ul, {
|
|
7307
7292
|
key: 1,
|
|
7308
7293
|
getCsvData: Tt
|
|
7309
|
-
})) : a("", !0)])])], 512), [[
|
|
7310
|
-
|
|
7294
|
+
})) : a("", !0)])])], 512), [[V, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
7295
|
+
ne(s("div", {
|
|
7311
7296
|
ref_key: "advancedFilterParentElement",
|
|
7312
7297
|
ref: Qt,
|
|
7313
7298
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
7314
|
-
}, null, 2), [[
|
|
7299
|
+
}, null, 2), [[V, k.value && e.enableAdvancedFilter]]),
|
|
7315
7300
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7316
7301
|
key: 1,
|
|
7317
7302
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
7318
|
-
}, [s("div",
|
|
7303
|
+
}, [s("div", ru, [e.enableTableSearch ? (E(), i(Xl, {
|
|
7319
7304
|
key: 0,
|
|
7320
7305
|
placeholder: e.tableSearchPlaceholder,
|
|
7321
7306
|
disabled: !X.value,
|
|
@@ -7333,7 +7318,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7333
7318
|
"min-height": "0",
|
|
7334
7319
|
"overflow-x": "hidden"
|
|
7335
7320
|
}
|
|
7336
|
-
}, [u(I(
|
|
7321
|
+
}, [u(I(ie), _({
|
|
7337
7322
|
ref: "gridRef",
|
|
7338
7323
|
class: ["pv-data-table", I(b)],
|
|
7339
7324
|
style: [{
|
|
@@ -7364,10 +7349,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7364
7349
|
autoGroupColumnDef: Ut.value,
|
|
7365
7350
|
columnDefs: I(W),
|
|
7366
7351
|
debug: e.debugMode,
|
|
7367
|
-
defaultColDef: I(
|
|
7352
|
+
defaultColDef: I(z),
|
|
7368
7353
|
getChildCount: zt,
|
|
7369
|
-
getContextMenuItems:
|
|
7370
|
-
getMainMenuItems:
|
|
7354
|
+
getContextMenuItems: ee.value,
|
|
7355
|
+
getMainMenuItems: B.value,
|
|
7371
7356
|
getRowStyle: Gt,
|
|
7372
7357
|
groupDefaultExpanded: Xt.value,
|
|
7373
7358
|
groupDisplayType: "singleColumn",
|
|
@@ -7411,14 +7396,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7411
7396
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
7412
7397
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
7413
7398
|
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(
|
|
7399
|
+
}), 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),
|
|
7400
|
+
e.pagination ? (E(), i(Gl, { key: 2 })) : a("", !0)
|
|
7416
7401
|
], 4));
|
|
7417
7402
|
}
|
|
7418
|
-
}),
|
|
7403
|
+
}), su = {
|
|
7419
7404
|
class: "pv-flex",
|
|
7420
7405
|
style: { "white-space": "nowrap" }
|
|
7421
|
-
},
|
|
7406
|
+
}, cu = { class: "pv-text-body-md" }, lu = /* @__PURE__ */ d({
|
|
7422
7407
|
inheritAttrs: !1,
|
|
7423
7408
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
7424
7409
|
props: {
|
|
@@ -7427,16 +7412,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7427
7412
|
context: {}
|
|
7428
7413
|
},
|
|
7429
7414
|
setup(e) {
|
|
7430
|
-
return (t, n) => (E(), o("div",
|
|
7415
|
+
return (t, n) => (E(), o("div", su, [s("span", cu, P(e.text), 1), e.context?.rightIcon ? (E(), i(ln, {
|
|
7431
7416
|
key: 0,
|
|
7432
7417
|
name: e.context.rightIcon,
|
|
7433
7418
|
class: "pv-text-subdued"
|
|
7434
7419
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
7435
7420
|
}
|
|
7436
|
-
}),
|
|
7421
|
+
}), uu = { class: "pv-relative" }, du = {
|
|
7437
7422
|
role: "list",
|
|
7438
7423
|
class: "pv-relative"
|
|
7439
|
-
},
|
|
7424
|
+
}, fu = ["data-active"], pu = { style: { cursor: "pointer" } }, mu = { role: "list" }, hu = /* @__PURE__ */ d({
|
|
7440
7425
|
__name: "PvTableOptionsPanel",
|
|
7441
7426
|
props: {
|
|
7442
7427
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -7453,7 +7438,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7453
7438
|
},
|
|
7454
7439
|
useTeleport: !0
|
|
7455
7440
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7456
|
-
|
|
7441
|
+
H(g, (e) => {
|
|
7457
7442
|
e && (p.value = e);
|
|
7458
7443
|
});
|
|
7459
7444
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7461,7 +7446,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7461
7446
|
text: e.title,
|
|
7462
7447
|
context: { rightIcon: e.icon }
|
|
7463
7448
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7464
|
-
|
|
7449
|
+
H(b, (e) => {
|
|
7465
7450
|
c("table-overlay-change", e);
|
|
7466
7451
|
}, { immediate: !0 });
|
|
7467
7452
|
let x = () => {
|
|
@@ -7471,7 +7456,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7471
7456
|
}, C = () => {
|
|
7472
7457
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7473
7458
|
};
|
|
7474
|
-
return (n, r) => (E(), o(t, null, [
|
|
7459
|
+
return (n, r) => (E(), o(t, null, [ne((E(), o("div", uu, [u(ia, {
|
|
7475
7460
|
open: m.value,
|
|
7476
7461
|
label: "Table Configuration",
|
|
7477
7462
|
icon: "settings",
|
|
@@ -7486,13 +7471,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7486
7471
|
alignment: "right",
|
|
7487
7472
|
isList: !0
|
|
7488
7473
|
}, {
|
|
7489
|
-
default:
|
|
7474
|
+
default: U(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7490
7475
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7491
7476
|
style: {
|
|
7492
7477
|
"padding-top": "4px",
|
|
7493
7478
|
"padding-bottom": "12px"
|
|
7494
7479
|
}
|
|
7495
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
7480
|
+
}, " Table Configuration ")], -1), s("ul", du, [v.value ? (E(), o("li", {
|
|
7496
7481
|
key: 0,
|
|
7497
7482
|
id: "table-config-overlay",
|
|
7498
7483
|
"data-active": h.value ? !0 : null,
|
|
@@ -7505,7 +7490,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7505
7490
|
text: "Table Overlay",
|
|
7506
7491
|
icon: "layers-2",
|
|
7507
7492
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
7508
|
-
}, null, 8, ["class-list"])], 40,
|
|
7493
|
+
}, null, 8, ["class-list"])], 40, fu)) : a("", !0), s("li", pu, [u(za, {
|
|
7509
7494
|
config: { variant: "icon" },
|
|
7510
7495
|
id: "table-config-group-toggle",
|
|
7511
7496
|
class: "pv-text-subdued",
|
|
@@ -7525,11 +7510,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7525
7510
|
},
|
|
7526
7511
|
isList: !0
|
|
7527
7512
|
}, {
|
|
7528
|
-
default:
|
|
7513
|
+
default: U(() => [s("ul", mu, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(za, {
|
|
7529
7514
|
id: e.id,
|
|
7530
7515
|
config: {
|
|
7531
7516
|
variant: "checkbox",
|
|
7532
|
-
renderer:
|
|
7517
|
+
renderer: lu
|
|
7533
7518
|
},
|
|
7534
7519
|
text: e.text,
|
|
7535
7520
|
context: e.context,
|
|
@@ -7546,13 +7531,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7546
7531
|
_: 1
|
|
7547
7532
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
7548
7533
|
}
|
|
7549
|
-
}),
|
|
7534
|
+
}), gu = ["id"], _u = {
|
|
7550
7535
|
key: 0,
|
|
7551
7536
|
class: "sort-divider-container"
|
|
7552
|
-
},
|
|
7537
|
+
}, 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
7538
|
key: 1,
|
|
7554
7539
|
class: "pv-button-placeholder"
|
|
7555
|
-
},
|
|
7540
|
+
}, Tu = "--divider--", Eu = "placeholder-", Du = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7556
7541
|
__name: "PvSortableList",
|
|
7557
7542
|
props: /* @__PURE__ */ g({
|
|
7558
7543
|
options: { default: () => [] },
|
|
@@ -7571,12 +7556,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7571
7556
|
}),
|
|
7572
7557
|
emits: ["update:modelValue"],
|
|
7573
7558
|
setup(e) {
|
|
7574
|
-
let n = e, c =
|
|
7575
|
-
id:
|
|
7559
|
+
let n = e, c = R(e, "modelValue"), l = {
|
|
7560
|
+
id: Tu,
|
|
7576
7561
|
text: "",
|
|
7577
7562
|
disabled: !0
|
|
7578
7563
|
}, 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: `${
|
|
7564
|
+
id: `${Eu}${t}`,
|
|
7580
7565
|
text: "",
|
|
7581
7566
|
disabled: !0,
|
|
7582
7567
|
isPlaceholder: !0
|
|
@@ -7588,22 +7573,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7588
7573
|
l,
|
|
7589
7574
|
...n.options.filter((t) => !e.has(t.id))
|
|
7590
7575
|
];
|
|
7591
|
-
}), m =
|
|
7576
|
+
}), m = B("sortableListRef"), h = B("containerRef"), g = null, _ = null, v = () => {
|
|
7592
7577
|
if (!m.value) return;
|
|
7593
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
7578
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Tu);
|
|
7594
7579
|
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
7580
|
};
|
|
7596
7581
|
w(() => {
|
|
7597
7582
|
m.value && (g = new nt(m.value, {
|
|
7598
7583
|
animation: 200,
|
|
7599
|
-
filter: `#${
|
|
7584
|
+
filter: `#${Tu}, [id^="placeholder-"]`,
|
|
7600
7585
|
dragoverBubble: !0,
|
|
7601
7586
|
onStart: (e) => {
|
|
7602
7587
|
_ = e.item;
|
|
7603
7588
|
},
|
|
7604
7589
|
onMove: (e) => {
|
|
7605
7590
|
let t = e.related;
|
|
7606
|
-
if (t?.id ===
|
|
7591
|
+
if (t?.id === Tu || t?.id?.startsWith("placeholder-")) return !1;
|
|
7607
7592
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
7608
7593
|
return r && D(r);
|
|
7609
7594
|
},
|
|
@@ -7651,20 +7636,20 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7651
7636
|
key: e.id,
|
|
7652
7637
|
id: e.id,
|
|
7653
7638
|
class: "pv-stack-4"
|
|
7654
|
-
}, [e.id ===
|
|
7639
|
+
}, [e.id === Tu ? (E(), o("div", _u, [s("div", {
|
|
7655
7640
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
7656
7641
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
7657
|
-
}, null, 8,
|
|
7642
|
+
}, null, 8, vu)])) : e.id.includes(Eu) ? (E(), o("div", {
|
|
7658
7643
|
key: 1,
|
|
7659
7644
|
class: "placeholder-zone",
|
|
7660
7645
|
onDragover: r[0] ||= (e) => b(e),
|
|
7661
7646
|
onDragleave: r[1] ||= (e) => S(e),
|
|
7662
7647
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
7663
|
-
}, [s("div",
|
|
7648
|
+
}, [s("div", bu, [s("span", xu, P(n.placeholderText), 1)])], 40, yu)) : (E(), o("div", {
|
|
7664
7649
|
key: 2,
|
|
7665
7650
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
7666
7651
|
style: x(M(e))
|
|
7667
|
-
}, [s("div",
|
|
7652
|
+
}, [s("div", Su, [
|
|
7668
7653
|
u(ln, {
|
|
7669
7654
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7670
7655
|
name: "reorder"
|
|
@@ -7674,8 +7659,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7674
7659
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
7675
7660
|
name: e.icon
|
|
7676
7661
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
7677
|
-
s("span",
|
|
7678
|
-
]), j(e) ? (E(), o("div",
|
|
7662
|
+
s("span", Cu, P(e.text), 1)
|
|
7663
|
+
]), j(e) ? (E(), o("div", wu)) : (E(), i(gn, {
|
|
7679
7664
|
key: 0,
|
|
7680
7665
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
7681
7666
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -7687,12 +7672,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7687
7672
|
"ariaLabel",
|
|
7688
7673
|
"style",
|
|
7689
7674
|
"onClick"
|
|
7690
|
-
]))], 6))], 8,
|
|
7675
|
+
]))], 6))], 8, gu))), 128))], 512)], 512));
|
|
7691
7676
|
}
|
|
7692
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
7677
|
+
}), [["__scopeId", "data-v-34615cd0"]]), Ou = (e) => e.filter((e) => !oc(e)), ku = (e) => e.filter((e) => oc(e)), Au = {
|
|
7693
7678
|
xAxis: {
|
|
7694
7679
|
selectMode: "sortable",
|
|
7695
|
-
filterColumns:
|
|
7680
|
+
filterColumns: Ou
|
|
7696
7681
|
},
|
|
7697
7682
|
yAxis: {},
|
|
7698
7683
|
secondaryYAxis: {},
|
|
@@ -7701,16 +7686,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7701
7686
|
rowGroupLimit: 2,
|
|
7702
7687
|
supportsFocusView: !0,
|
|
7703
7688
|
storeBeforeChange: !0
|
|
7704
|
-
},
|
|
7689
|
+
}, ju = [
|
|
7705
7690
|
{
|
|
7706
|
-
...
|
|
7691
|
+
...Au,
|
|
7707
7692
|
id: "column",
|
|
7708
7693
|
text: "Column",
|
|
7709
7694
|
icon: "chart-column",
|
|
7710
7695
|
agChartType: "bar"
|
|
7711
7696
|
},
|
|
7712
7697
|
{
|
|
7713
|
-
...
|
|
7698
|
+
...Au,
|
|
7714
7699
|
id: "bar",
|
|
7715
7700
|
text: "Bar",
|
|
7716
7701
|
icon: "chart-bar",
|
|
@@ -7718,28 +7703,28 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7718
7703
|
isHorizontal: !0
|
|
7719
7704
|
},
|
|
7720
7705
|
{
|
|
7721
|
-
...
|
|
7706
|
+
...Au,
|
|
7722
7707
|
id: "line",
|
|
7723
7708
|
text: "Line",
|
|
7724
7709
|
icon: "chart-line",
|
|
7725
7710
|
agChartType: "line"
|
|
7726
7711
|
},
|
|
7727
7712
|
{
|
|
7728
|
-
...
|
|
7713
|
+
...Au,
|
|
7729
7714
|
id: "area",
|
|
7730
7715
|
text: "Area",
|
|
7731
7716
|
icon: "chart-area",
|
|
7732
7717
|
agChartType: "area"
|
|
7733
7718
|
},
|
|
7734
7719
|
{
|
|
7735
|
-
...
|
|
7720
|
+
...Au,
|
|
7736
7721
|
id: "column_stacked",
|
|
7737
7722
|
text: "Stacked Column",
|
|
7738
7723
|
icon: "chart-column-stacked",
|
|
7739
7724
|
agChartType: "bar"
|
|
7740
7725
|
},
|
|
7741
7726
|
{
|
|
7742
|
-
...
|
|
7727
|
+
...Au,
|
|
7743
7728
|
id: "bar_stacked",
|
|
7744
7729
|
text: "Stacked Bar",
|
|
7745
7730
|
icon: "chart-bar-stacked",
|
|
@@ -7747,7 +7732,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7747
7732
|
isHorizontal: !0
|
|
7748
7733
|
},
|
|
7749
7734
|
{
|
|
7750
|
-
...
|
|
7735
|
+
...Au,
|
|
7751
7736
|
id: "pie",
|
|
7752
7737
|
text: "Pie",
|
|
7753
7738
|
icon: "chart-pie",
|
|
@@ -7761,7 +7746,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7761
7746
|
icon: "chart-column",
|
|
7762
7747
|
xAxis: {
|
|
7763
7748
|
selectMode: "single",
|
|
7764
|
-
filterColumns:
|
|
7749
|
+
filterColumns: ku,
|
|
7765
7750
|
hideLabel: !0
|
|
7766
7751
|
},
|
|
7767
7752
|
yAxis: {
|
|
@@ -7776,16 +7761,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7776
7761
|
supportsFocusView: !1,
|
|
7777
7762
|
storeBeforeChange: !1
|
|
7778
7763
|
}
|
|
7779
|
-
],
|
|
7780
|
-
function
|
|
7781
|
-
return
|
|
7764
|
+
], Mu = new Map(ju.map((e) => [e.id, e])), Nu = Mu.get("column");
|
|
7765
|
+
function Pu(e) {
|
|
7766
|
+
return Mu.get(e) || Nu;
|
|
7782
7767
|
}
|
|
7783
7768
|
//#endregion
|
|
7784
7769
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
7785
|
-
var
|
|
7770
|
+
var Fu = {
|
|
7786
7771
|
class: "pv-full-width pv-flex",
|
|
7787
7772
|
style: { "--flex-gap": "8px" }
|
|
7788
|
-
},
|
|
7773
|
+
}, Iu = ["title"], Lu = { style: { "max-width": "220px" } }, Ru = /* @__PURE__ */ d({
|
|
7789
7774
|
inheritAttrs: !1,
|
|
7790
7775
|
__name: "PvChartOptionMenuItemRenderer",
|
|
7791
7776
|
props: {
|
|
@@ -7793,10 +7778,10 @@ var Iu = {
|
|
|
7793
7778
|
context: {}
|
|
7794
7779
|
},
|
|
7795
7780
|
setup(e) {
|
|
7796
|
-
return (t, n) => (E(), o("div",
|
|
7781
|
+
return (t, n) => (E(), o("div", Fu, [s("span", {
|
|
7797
7782
|
class: "pv-text-body-md pv-truncate",
|
|
7798
7783
|
title: e.text
|
|
7799
|
-
}, P(e.text), 9,
|
|
7784
|
+
}, P(e.text), 9, Iu), e.context?.description ? (E(), i(I(bi), {
|
|
7800
7785
|
key: 0,
|
|
7801
7786
|
variant: "dark",
|
|
7802
7787
|
position: "center-right",
|
|
@@ -7805,30 +7790,30 @@ var Iu = {
|
|
|
7805
7790
|
disableInteractive: !0,
|
|
7806
7791
|
style: { "pointer-events": "auto" }
|
|
7807
7792
|
}, {
|
|
7808
|
-
trigger:
|
|
7793
|
+
trigger: U(() => [u(I(ln), {
|
|
7809
7794
|
size: 12,
|
|
7810
7795
|
name: "info-circle",
|
|
7811
7796
|
class: "pv-text-subdued"
|
|
7812
7797
|
})]),
|
|
7813
|
-
content:
|
|
7798
|
+
content: U(() => [s("div", Lu, P(e.context.description), 1)]),
|
|
7814
7799
|
_: 1
|
|
7815
7800
|
})) : a("", !0)]));
|
|
7816
7801
|
}
|
|
7817
|
-
}),
|
|
7802
|
+
}), zu = { class: "pv-stack-16 pv-chart-options-panel" }, Bu = { class: "pv-flex pv-relative" }, Vu = {
|
|
7818
7803
|
role: "list",
|
|
7819
7804
|
class: "pv-relative"
|
|
7820
|
-
},
|
|
7805
|
+
}, Hu = [
|
|
7821
7806
|
"id",
|
|
7822
7807
|
"data-active",
|
|
7823
7808
|
"onMouseenter",
|
|
7824
7809
|
"onClick"
|
|
7825
|
-
],
|
|
7810
|
+
], Uu = { style: { "max-width": "100px" } }, Wu = {
|
|
7826
7811
|
key: 1,
|
|
7827
7812
|
class: "pv-flex"
|
|
7828
|
-
},
|
|
7813
|
+
}, Gu = {
|
|
7829
7814
|
key: 1,
|
|
7830
7815
|
role: "list"
|
|
7831
|
-
},
|
|
7816
|
+
}, Ku = ["data-active"], qu = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7832
7817
|
__name: "PvChartOptionsPanel",
|
|
7833
7818
|
props: {
|
|
7834
7819
|
enablePanel: { type: Boolean },
|
|
@@ -7845,24 +7830,24 @@ var Iu = {
|
|
|
7845
7830
|
maxHeight: "900px"
|
|
7846
7831
|
},
|
|
7847
7832
|
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(() =>
|
|
7833
|
+
}), 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
7834
|
let e = b.value?.id ?? "";
|
|
7850
7835
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7851
|
-
}), M = m(fs, O("")), N = m(ps, O([])), F = m(ms, O(void 0)),
|
|
7836
|
+
}), M = m(fs, O("")), N = m(ps, O([])), F = m(ms, O(void 0)), L = m(hs, O([])), R = m(_s, O(/* @__PURE__ */ new Set())), z = m(vs, O([])), B = r(() => z.value.filter((e) => R.value.has(e.id)).map((e) => ({
|
|
7852
7837
|
id: e.id,
|
|
7853
7838
|
text: e.label,
|
|
7854
7839
|
disabled: e.disabled,
|
|
7855
7840
|
context: e.disabledReason ? { description: e.disabledReason } : void 0
|
|
7856
|
-
}))),
|
|
7857
|
-
|
|
7841
|
+
}))), ee = (e) => {
|
|
7842
|
+
R.value = new Set(e.map((e) => e.id));
|
|
7858
7843
|
};
|
|
7859
|
-
|
|
7844
|
+
H(j, (e) => {
|
|
7860
7845
|
e && F.value && (F.value = void 0);
|
|
7861
7846
|
}, { immediate: !0 });
|
|
7862
|
-
let
|
|
7847
|
+
let te = m(os, O("")), V = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7863
7848
|
label: e.label,
|
|
7864
7849
|
value: e.value
|
|
7865
|
-
})) : []),
|
|
7850
|
+
})) : []), re = r(() => {
|
|
7866
7851
|
if (b.value) return (T.value.length > 1 ? [
|
|
7867
7852
|
"bar_stacked",
|
|
7868
7853
|
"line",
|
|
@@ -7875,7 +7860,7 @@ var Iu = {
|
|
|
7875
7860
|
"area"
|
|
7876
7861
|
]).includes(b.value?.id);
|
|
7877
7862
|
});
|
|
7878
|
-
|
|
7863
|
+
H(S, (e) => {
|
|
7879
7864
|
if (!b.value) return;
|
|
7880
7865
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7881
7866
|
if (r) {
|
|
@@ -7894,31 +7879,31 @@ var Iu = {
|
|
|
7894
7879
|
function W(e) {
|
|
7895
7880
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7896
7881
|
}
|
|
7897
|
-
let
|
|
7882
|
+
let G = r(() => N.value.map((e) => ({
|
|
7898
7883
|
id: e.value,
|
|
7899
7884
|
text: e.label,
|
|
7900
7885
|
context: e.description ? { description: e.description } : void 0
|
|
7901
|
-
}))),
|
|
7886
|
+
}))), ie = r(() => L.value.map((e) => ({
|
|
7902
7887
|
id: e.value,
|
|
7903
7888
|
text: e.label
|
|
7904
|
-
}))),
|
|
7889
|
+
}))), ae = r(() => D.value.map((e) => ({
|
|
7905
7890
|
id: e.field || "",
|
|
7906
7891
|
text: e.headerName || e.field || "",
|
|
7907
7892
|
icon: Ks(e.context?.dataType || null) || "circle-chevron-down"
|
|
7908
|
-
}))),
|
|
7909
|
-
get: () => T.value.map((e) =>
|
|
7893
|
+
}))), K = r({
|
|
7894
|
+
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
7910
7895
|
set: (e) => {
|
|
7911
7896
|
T.value = e.map((e) => e.id);
|
|
7912
7897
|
}
|
|
7913
|
-
}),
|
|
7898
|
+
}), oe = r(() => {
|
|
7914
7899
|
let e = [], t = {
|
|
7915
7900
|
value: "y-axis",
|
|
7916
7901
|
label: "Y Axis",
|
|
7917
7902
|
prefixLabel: "Y Axis",
|
|
7918
7903
|
icon: "chart-bar-decreasing",
|
|
7919
7904
|
allowDeselect: !1,
|
|
7920
|
-
availableOptions:
|
|
7921
|
-
currentOption:
|
|
7905
|
+
availableOptions: G.value,
|
|
7906
|
+
currentOption: G.value.find((e) => e.id === M.value),
|
|
7922
7907
|
updateSelectedOption: (e) => {
|
|
7923
7908
|
M && e !== M.value && (M.value = e);
|
|
7924
7909
|
}
|
|
@@ -7928,12 +7913,12 @@ var Iu = {
|
|
|
7928
7913
|
label: "X Axis",
|
|
7929
7914
|
icon: "align-end-horizontal",
|
|
7930
7915
|
allowDeselect: !1,
|
|
7931
|
-
availableOptions:
|
|
7916
|
+
availableOptions: ae.value,
|
|
7932
7917
|
...i ? {
|
|
7933
|
-
activeOptions:
|
|
7918
|
+
activeOptions: K,
|
|
7934
7919
|
activeOptionLimit: n.rowGroupLimit
|
|
7935
7920
|
} : {
|
|
7936
|
-
currentOption:
|
|
7921
|
+
currentOption: ae.value.find((e) => e.id === T.value[0]),
|
|
7937
7922
|
updateSelectedOption: (e) => {
|
|
7938
7923
|
T.value = e ? [e] : [];
|
|
7939
7924
|
}
|
|
@@ -7945,7 +7930,7 @@ var Iu = {
|
|
|
7945
7930
|
allowDeselect: !0,
|
|
7946
7931
|
availableOptions: w.value,
|
|
7947
7932
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7948
|
-
disabled: !
|
|
7933
|
+
disabled: !re.value,
|
|
7949
7934
|
disabledReason: "Sorting is not available for this chart type",
|
|
7950
7935
|
updateSelectedOption: (e) => {
|
|
7951
7936
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7967,7 +7952,7 @@ var Iu = {
|
|
|
7967
7952
|
t && b && (b.value = t);
|
|
7968
7953
|
}
|
|
7969
7954
|
};
|
|
7970
|
-
if (
|
|
7955
|
+
if (G.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && ie.value.length > 0) {
|
|
7971
7956
|
let t = {
|
|
7972
7957
|
value: "secondary-y-axis",
|
|
7973
7958
|
label: "Metric Overlay",
|
|
@@ -7976,15 +7961,15 @@ var Iu = {
|
|
|
7976
7961
|
allowDeselect: !0,
|
|
7977
7962
|
disabled: j.value,
|
|
7978
7963
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7979
|
-
availableOptions:
|
|
7980
|
-
currentOption:
|
|
7964
|
+
availableOptions: ie.value,
|
|
7965
|
+
currentOption: ie.value.find((e) => e.id === F?.value),
|
|
7981
7966
|
updateSelectedOption: (e) => {
|
|
7982
7967
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7983
7968
|
}
|
|
7984
7969
|
};
|
|
7985
7970
|
t && e.push(t);
|
|
7986
|
-
} else if (
|
|
7987
|
-
let t =
|
|
7971
|
+
} else if (z.value.length > 0) {
|
|
7972
|
+
let t = z.value.map((e) => ({
|
|
7988
7973
|
id: e.id,
|
|
7989
7974
|
text: e.label,
|
|
7990
7975
|
disabled: e.disabled,
|
|
@@ -7997,33 +7982,33 @@ var Iu = {
|
|
|
7997
7982
|
allowDeselect: !0,
|
|
7998
7983
|
isMultiSelect: !0,
|
|
7999
7984
|
availableOptions: t,
|
|
8000
|
-
activeOptionIds:
|
|
8001
|
-
activeOptions:
|
|
8002
|
-
currentOption: t.find((e) =>
|
|
8003
|
-
updateSelectedOptions:
|
|
7985
|
+
activeOptionIds: R.value,
|
|
7986
|
+
activeOptions: B,
|
|
7987
|
+
currentOption: t.find((e) => R.value.has(e.id)),
|
|
7988
|
+
updateSelectedOptions: ee
|
|
8004
7989
|
};
|
|
8005
7990
|
n && e.push(n);
|
|
8006
7991
|
}
|
|
8007
7992
|
let c = i ? 2 : 1;
|
|
8008
|
-
return
|
|
7993
|
+
return ae.value.length >= c && e.push(a), S.value.length > 1 && e.push(s), w.value.length > 0 && e.push(o), e.filter((e) => n.chartConfigOptions ? n.chartConfigOptions.includes(e.value) : !0);
|
|
8009
7994
|
});
|
|
8010
|
-
|
|
7995
|
+
H(v, (e) => {
|
|
8011
7996
|
e && (p.value = e);
|
|
8012
7997
|
});
|
|
8013
|
-
let
|
|
8014
|
-
let t =
|
|
7998
|
+
let se = r(() => _.value && oe.value.find((e) => e.value === _.value) || null), ce = (e) => {
|
|
7999
|
+
let t = se.value;
|
|
8015
8000
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
8016
|
-
}, le = (e) =>
|
|
8001
|
+
}, le = (e) => se.value?.isMultiSelect ? null : ce(e), ue = (e) => se.value?.isMultiSelect ? {
|
|
8017
8002
|
variant: "checkbox",
|
|
8018
|
-
renderer:
|
|
8019
|
-
} : W(e) ? { renderer:
|
|
8003
|
+
renderer: Ru
|
|
8004
|
+
} : W(e) ? { renderer: Ru } : { variant: "icon" }, de = (e) => {
|
|
8020
8005
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
8021
8006
|
}, fe = () => {
|
|
8022
8007
|
g.value = !1, _.value = void 0;
|
|
8023
8008
|
}, pe = () => {
|
|
8024
8009
|
_.value = void 0;
|
|
8025
8010
|
};
|
|
8026
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
8011
|
+
return (n, r) => (E(), o(t, null, [s("div", zu, [s("div", null, [ne((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
8012
|
open: g.value,
|
|
8028
8013
|
label: "Chart Configuration",
|
|
8029
8014
|
icon: "chart-area",
|
|
@@ -8038,13 +8023,13 @@ var Iu = {
|
|
|
8038
8023
|
},
|
|
8039
8024
|
isList: !0
|
|
8040
8025
|
}, {
|
|
8041
|
-
default:
|
|
8026
|
+
default: U(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
8042
8027
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
8043
8028
|
style: {
|
|
8044
8029
|
"padding-top": "4px",
|
|
8045
8030
|
"padding-bottom": "12px"
|
|
8046
8031
|
}
|
|
8047
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
8032
|
+
}, " Chart Configuration ")], -1), s("ul", Vu, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o("li", {
|
|
8048
8033
|
id: `pv-chart-config-${e.value}`,
|
|
8049
8034
|
key: e.value,
|
|
8050
8035
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -8057,7 +8042,7 @@ var Iu = {
|
|
|
8057
8042
|
style: { width: "100%" },
|
|
8058
8043
|
variant: "white"
|
|
8059
8044
|
}, c({
|
|
8060
|
-
trigger:
|
|
8045
|
+
trigger: U(() => [u(za, {
|
|
8061
8046
|
config: { variant: "icon" },
|
|
8062
8047
|
disabled: e.disabled,
|
|
8063
8048
|
id: e.value,
|
|
@@ -8074,19 +8059,19 @@ var Iu = {
|
|
|
8074
8059
|
_: 2
|
|
8075
8060
|
}, [e.disabled && e.disabledReason ? {
|
|
8076
8061
|
name: "content",
|
|
8077
|
-
fn:
|
|
8062
|
+
fn: U(() => [s("div", Uu, P(e.disabledReason), 1)]),
|
|
8078
8063
|
key: "0"
|
|
8079
|
-
} : void 0]), 1024)], 40,
|
|
8064
|
+
} : void 0]), 1024)], 40, Hu))), 128))])]),
|
|
8080
8065
|
_: 1
|
|
8081
8066
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Xe), [fe, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
8082
8067
|
class: "pv-flex pv-space-between",
|
|
8083
8068
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
8084
8069
|
}, [e.chartFilter ? (E(), i(xi, {
|
|
8085
8070
|
key: 0,
|
|
8086
|
-
options:
|
|
8087
|
-
modelValue: I(
|
|
8088
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
8089
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
8071
|
+
options: V.value,
|
|
8072
|
+
modelValue: I(te),
|
|
8073
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null
|
|
8074
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Wu, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o(t, { key: e.value }, [e.isMultiSelect && e.activeOptions && e.activeOptionIds ? (E(), i(Xa, {
|
|
8090
8075
|
key: 0,
|
|
8091
8076
|
label: e.label,
|
|
8092
8077
|
prefixLabel: e.prefixLabel,
|
|
@@ -8096,7 +8081,7 @@ var Iu = {
|
|
|
8096
8081
|
disableSearchInput: !0,
|
|
8097
8082
|
disabled: e.disabled,
|
|
8098
8083
|
optionsVariant: "checkbox",
|
|
8099
|
-
optionsRenderer:
|
|
8084
|
+
optionsRenderer: Ru
|
|
8100
8085
|
}, null, 8, [
|
|
8101
8086
|
"label",
|
|
8102
8087
|
"prefixLabel",
|
|
@@ -8134,23 +8119,23 @@ var Iu = {
|
|
|
8134
8119
|
},
|
|
8135
8120
|
isList: !0
|
|
8136
8121
|
}, {
|
|
8137
|
-
default:
|
|
8122
|
+
default: U(() => [se.value ? (E(), o(t, { key: 0 }, [se.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
8138
8123
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8139
8124
|
style: {
|
|
8140
8125
|
"padding-left": "2px",
|
|
8141
8126
|
"padding-bottom": "6px"
|
|
8142
8127
|
}
|
|
8143
|
-
}, " Viewing ", -1), u(
|
|
8144
|
-
modelValue:
|
|
8145
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
8146
|
-
options:
|
|
8147
|
-
activeOptionLimit:
|
|
8128
|
+
}, " Viewing ", -1), u(Du, {
|
|
8129
|
+
modelValue: se.value.activeOptions.value,
|
|
8130
|
+
"onUpdate:modelValue": r[2] ||= (e) => se.value.activeOptions.value = e,
|
|
8131
|
+
options: se.value.availableOptions || [],
|
|
8132
|
+
activeOptionLimit: se.value.activeOptionLimit,
|
|
8148
8133
|
placeholderText: "Add to X Axis"
|
|
8149
8134
|
}, null, 8, [
|
|
8150
8135
|
"modelValue",
|
|
8151
8136
|
"options",
|
|
8152
8137
|
"activeOptionLimit"
|
|
8153
|
-
])], 64)) : (E(), o("ul",
|
|
8138
|
+
])], 64)) : (E(), o("ul", Gu, [(E(!0), o(t, null, k(se.value.availableOptions, (e) => (E(), o("li", {
|
|
8154
8139
|
key: e.id,
|
|
8155
8140
|
"data-active": le(e)
|
|
8156
8141
|
}, [u(za, {
|
|
@@ -8160,11 +8145,11 @@ var Iu = {
|
|
|
8160
8145
|
icon: e.icon,
|
|
8161
8146
|
context: e.context,
|
|
8162
8147
|
disabled: e.disabled,
|
|
8163
|
-
selectedIds:
|
|
8148
|
+
selectedIds: se.value.isMultiSelect ? [...I(R)] : [],
|
|
8164
8149
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
8165
|
-
|
|
8150
|
+
se.value?.updateSelectedOptions?.([...se.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
8166
8151
|
},
|
|
8167
|
-
onHandleSelected: (t) =>
|
|
8152
|
+
onHandleSelected: (t) => se.value.updateSelectedOption?.(e.id),
|
|
8168
8153
|
"class-list": ["pv-chart-option pv-flex"]
|
|
8169
8154
|
}, null, 8, [
|
|
8170
8155
|
"id",
|
|
@@ -8175,14 +8160,14 @@ var Iu = {
|
|
|
8175
8160
|
"disabled",
|
|
8176
8161
|
"selectedIds",
|
|
8177
8162
|
"onHandleSelected"
|
|
8178
|
-
])], 8,
|
|
8163
|
+
])], 8, Ku))), 128))]))], 64)) : a("", !0)]),
|
|
8179
8164
|
_: 1
|
|
8180
8165
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
8181
8166
|
}
|
|
8182
8167
|
}), [["__scopeId", "data-v-681e0d80"]]);
|
|
8183
8168
|
//#endregion
|
|
8184
8169
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
8185
|
-
function
|
|
8170
|
+
function Ju(e, t, n, r, i) {
|
|
8186
8171
|
return i ? {
|
|
8187
8172
|
xKey: n,
|
|
8188
8173
|
xName: r,
|
|
@@ -8197,7 +8182,7 @@ function Yu(e, t, n, r, i) {
|
|
|
8197
8182
|
}
|
|
8198
8183
|
//#endregion
|
|
8199
8184
|
//#region src/components/charts/PvDataTableWithChart/helpers.ts
|
|
8200
|
-
var
|
|
8185
|
+
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
8186
|
if (!e || e.length === 0) return {
|
|
8202
8187
|
data: [],
|
|
8203
8188
|
uniqueFieldValues: []
|
|
@@ -8210,7 +8195,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8210
8195
|
let o = e.reduce((e, o) => {
|
|
8211
8196
|
let s = o[t];
|
|
8212
8197
|
e[s] || (e[s] = {});
|
|
8213
|
-
let c = o[n], l =
|
|
8198
|
+
let c = o[n], l = Zu(c);
|
|
8214
8199
|
e[s][l] = `${s}-${c}`;
|
|
8215
8200
|
for (let t of r) {
|
|
8216
8201
|
let r = t.value, i = 0;
|
|
@@ -8218,7 +8203,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8218
8203
|
let l = o[r];
|
|
8219
8204
|
if (a.add(c), n && l) {
|
|
8220
8205
|
let t = l ?? 0;
|
|
8221
|
-
e[s][
|
|
8206
|
+
e[s][Xu(r, c)] = t, i += t;
|
|
8222
8207
|
}
|
|
8223
8208
|
e[s][`${r}${tc}`] = i;
|
|
8224
8209
|
}
|
|
@@ -8232,7 +8217,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8232
8217
|
})),
|
|
8233
8218
|
uniqueFieldValues: Array.from(a)
|
|
8234
8219
|
};
|
|
8235
|
-
},
|
|
8220
|
+
}, $u = (e, t, n) => {
|
|
8236
8221
|
let r = -Infinity;
|
|
8237
8222
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
8238
8223
|
let n = e[t + tc];
|
|
@@ -8241,16 +8226,16 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8241
8226
|
let n = e[t];
|
|
8242
8227
|
typeof n == "number" && n > r && (r = n);
|
|
8243
8228
|
})), r;
|
|
8244
|
-
},
|
|
8229
|
+
}, ed = { style: {
|
|
8245
8230
|
height: "100%",
|
|
8246
8231
|
width: "100%"
|
|
8247
|
-
} },
|
|
8232
|
+
} }, td = {
|
|
8248
8233
|
key: 0,
|
|
8249
8234
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
8250
|
-
},
|
|
8235
|
+
}, 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
8236
|
key: 1,
|
|
8252
8237
|
class: "pv-text-body-xs"
|
|
8253
|
-
},
|
|
8238
|
+
}, sd = /* @__PURE__ */ d({
|
|
8254
8239
|
__name: "PvDataTableWithChart",
|
|
8255
8240
|
props: {
|
|
8256
8241
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -8349,7 +8334,6 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8349
8334
|
default: (e) => !e.filterPanelAboveChart
|
|
8350
8335
|
},
|
|
8351
8336
|
enableTableSearch: { type: Boolean },
|
|
8352
|
-
filterSearchMinLength: {},
|
|
8353
8337
|
enableTopSlot: {
|
|
8354
8338
|
type: Boolean,
|
|
8355
8339
|
default: !0
|
|
@@ -8457,7 +8441,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8457
8441
|
description: n.context?.chartSeriesDescription
|
|
8458
8442
|
};
|
|
8459
8443
|
});
|
|
8460
|
-
}),
|
|
8444
|
+
}), L = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8461
8445
|
let t = $(e);
|
|
8462
8446
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
8463
8447
|
}).map((e) => {
|
|
@@ -8469,7 +8453,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8469
8453
|
dataType: n.context?.dataType,
|
|
8470
8454
|
tooltipRenderer: n.context?.customTooltipRenderer
|
|
8471
8455
|
};
|
|
8472
|
-
})),
|
|
8456
|
+
})), R = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8473
8457
|
let t = $(e);
|
|
8474
8458
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
8475
8459
|
}).map((e) => {
|
|
@@ -8480,25 +8464,25 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8480
8464
|
formatter: n.valueFormatter,
|
|
8481
8465
|
dataType: n.context?.dataType
|
|
8482
8466
|
};
|
|
8483
|
-
})),
|
|
8484
|
-
D(Go,
|
|
8485
|
-
let
|
|
8467
|
+
})), z = l.filterStore || tl();
|
|
8468
|
+
D(Go, z);
|
|
8469
|
+
let B = Ps({
|
|
8486
8470
|
focusType: l.initialFocusData?.focusType,
|
|
8487
8471
|
focuses: l.initialFocusData?.focuses || [],
|
|
8488
8472
|
focusRequired: l.focusRequired
|
|
8489
8473
|
}, l.allFieldsAreFocusable);
|
|
8490
|
-
D(Ko,
|
|
8491
|
-
let { setFilterSelectedValues:
|
|
8492
|
-
D(ns,
|
|
8493
|
-
let
|
|
8474
|
+
D(Ko, B);
|
|
8475
|
+
let { setFilterSelectedValues: ee } = z, te = O(!1);
|
|
8476
|
+
D(ns, te);
|
|
8477
|
+
let V = O(l.isTableGrouped), ne = (e) => {
|
|
8494
8478
|
d("table-overlay-change", e);
|
|
8495
|
-
},
|
|
8496
|
-
p.value = e.api,
|
|
8497
|
-
},
|
|
8479
|
+
}, re = r(() => $e.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && z.filterModelEmpty.value)), W = r(() => B?.computedFocusType.value || null), G = r(() => B?.computedFocuses.value || []), ie = (e) => {
|
|
8480
|
+
p.value = e.api, V.value || p.value?.setRowGroupColumns([]), Ve(e.api), d("grid-ready", e);
|
|
8481
|
+
}, ae = (e) => {
|
|
8498
8482
|
d("first-data-rendered", e);
|
|
8499
|
-
},
|
|
8483
|
+
}, K = (e) => {
|
|
8500
8484
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8501
|
-
if (
|
|
8485
|
+
if (V.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8502
8486
|
let t = ge.value;
|
|
8503
8487
|
if (n.length > _e.value) {
|
|
8504
8488
|
let t = n.slice(0, _e.value);
|
|
@@ -8507,11 +8491,11 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8507
8491
|
t.yAxis.defaultValue && (q.value = t.yAxis.defaultValue);
|
|
8508
8492
|
}
|
|
8509
8493
|
d("column-row-group-changed", e);
|
|
8510
|
-
},
|
|
8511
|
-
Ve(e.api),
|
|
8494
|
+
}, oe = async (e) => {
|
|
8495
|
+
Ve(e.api), te.value && d("filter-changed", e);
|
|
8512
8496
|
};
|
|
8513
|
-
|
|
8514
|
-
if (
|
|
8497
|
+
H(() => j.value, () => {
|
|
8498
|
+
if (V.value) {
|
|
8515
8499
|
if (!p.value) return;
|
|
8516
8500
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8517
8501
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8522,11 +8506,11 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8522
8506
|
});
|
|
8523
8507
|
if (!l.allFieldsAreFocusable) {
|
|
8524
8508
|
let e = ge.value.supportsFocusView && N.value || null;
|
|
8525
|
-
|
|
8509
|
+
B.setFocusType(e);
|
|
8526
8510
|
}
|
|
8527
8511
|
p.value && Ve(p.value);
|
|
8528
8512
|
});
|
|
8529
|
-
function
|
|
8513
|
+
function se(e, t, n = !0) {
|
|
8530
8514
|
return (r) => {
|
|
8531
8515
|
if (r.data = be.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8532
8516
|
let i = "", a = le(e);
|
|
@@ -8545,11 +8529,11 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8545
8529
|
let ce = (e, t = !1) => {
|
|
8546
8530
|
if (!e) return;
|
|
8547
8531
|
let n = le(e);
|
|
8548
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8532
|
+
return n && typeof n.valueFormatter == "function" ? se(e, n.valueFormatter, t) : se(e, null, t);
|
|
8549
8533
|
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8550
8534
|
let n = le(N.value);
|
|
8551
8535
|
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(() =>
|
|
8536
|
+
}, 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
8537
|
let e = ge.value.xAxis.filterColumns;
|
|
8554
8538
|
return e ? e(k.value) : k.value;
|
|
8555
8539
|
}), ye = O([{
|
|
@@ -8560,20 +8544,20 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8560
8544
|
text: "Descending",
|
|
8561
8545
|
id: "desc",
|
|
8562
8546
|
icon: "arrow-down-narrow-wide"
|
|
8563
|
-
}]), be = O([]), xe = O([]), q = O(l.yKey),
|
|
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,
|
|
8547
|
+
}]), be = O([]), xe = O([]), q = O(l.yKey), J = O(L.value[0]?.value), Se = r(() => l.crosslineOverlayGroups ?? []), Ce = O(new Set(Se.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), we = r(() => Se.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("");
|
|
8548
|
+
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, J), D(hs, L), D(_s, Ce), D(vs, Se);
|
|
8565
8549
|
let De = (e) => {
|
|
8566
8550
|
fe.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8567
8551
|
};
|
|
8568
|
-
|
|
8569
|
-
let e = Ie.value, t = e !== he, n =
|
|
8552
|
+
H(() => de.value, () => {
|
|
8553
|
+
let e = Ie.value, t = e !== he, n = Pu(fe.value?.id || ""), r = de.value.some((e) => e.id === fe.value?.id);
|
|
8570
8554
|
he = e, !(r && (!t || !n.storeBeforeChange)) && De((e ? me?.value : pe?.value) ?? l.chartType);
|
|
8571
|
-
}),
|
|
8555
|
+
}), H(() => l.chartType, (e) => De(e)), H(() => l.yKey, (e) => {
|
|
8572
8556
|
e !== q.value && (q.value = e);
|
|
8573
|
-
}),
|
|
8557
|
+
}), H(Ee, (e) => {
|
|
8574
8558
|
if (l.chartFilter && p.value) {
|
|
8575
8559
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8576
|
-
n && n.length === 0 && (n = null),
|
|
8560
|
+
n && n.length === 0 && (n = null), ee(t, n || []);
|
|
8577
8561
|
let r = yc({
|
|
8578
8562
|
filterType: "set",
|
|
8579
8563
|
values: n
|
|
@@ -8586,8 +8570,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8586
8570
|
let Oe = r(() => {
|
|
8587
8571
|
let e = I.value.find((e) => e.value === q.value);
|
|
8588
8572
|
return e ? e.label : "";
|
|
8589
|
-
}), ke = r(() =>
|
|
8590
|
-
let e =
|
|
8573
|
+
}), ke = r(() => L.value.find((e) => e.value === J.value)), Ae = r(() => {
|
|
8574
|
+
let e = L.value.find((e) => e.value === J.value);
|
|
8591
8575
|
return e ? e.label : "";
|
|
8592
8576
|
}), je = r(() => ge.value.isHorizontal === !0), Me = r(() => j.value.length > 1), Ne = r(() => !fe.value || I.value.length === 0 ? [] : ge.value.seriesFamily === "pie" ? Re.value : Le.value), Pe = r(() => l.showSeriesLabels), Fe = r(() => fe.value?.id.includes("stacked")), Ie = r(() => j.value.length > 1), Le = r(() => {
|
|
8593
8577
|
let e = Fe.value, t = ge.value.agChartType, n = [], r = ce(q.value, !0), i = ce(Y.value?.fieldName, !0);
|
|
@@ -8595,7 +8579,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8595
8579
|
let o = {
|
|
8596
8580
|
type: t,
|
|
8597
8581
|
xKey: N.value,
|
|
8598
|
-
yKey:
|
|
8582
|
+
yKey: Xu(q.value, a),
|
|
8599
8583
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
8600
8584
|
stacked: e,
|
|
8601
8585
|
label: {
|
|
@@ -8648,10 +8632,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8648
8632
|
content: `Count: ${e.datum[e.yKey]}`
|
|
8649
8633
|
};
|
|
8650
8634
|
} }
|
|
8651
|
-
}))),
|
|
8635
|
+
}))), J.value) {
|
|
8652
8636
|
let t;
|
|
8653
|
-
t = e ? `${
|
|
8654
|
-
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
8637
|
+
t = e ? `${J.value}_sort_total` : J.value;
|
|
8638
|
+
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Ju(N.value, r, t, Ae.value, je.value), a = {
|
|
8655
8639
|
type: "scatter",
|
|
8656
8640
|
id: "metric-overlay",
|
|
8657
8641
|
data: Z.value,
|
|
@@ -8730,21 +8714,21 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8730
8714
|
legendItemKey: N.value,
|
|
8731
8715
|
angleKey: q.value
|
|
8732
8716
|
}]);
|
|
8733
|
-
|
|
8717
|
+
H(q, (e, t) => {
|
|
8734
8718
|
d("chart-state-changed", {
|
|
8735
8719
|
api: p.value,
|
|
8736
8720
|
newState: { seriesField: e },
|
|
8737
8721
|
oldState: { seriesField: t }
|
|
8738
8722
|
});
|
|
8739
|
-
}),
|
|
8723
|
+
}), H(J, (e, t) => {
|
|
8740
8724
|
d("chart-state-changed", {
|
|
8741
8725
|
api: p.value,
|
|
8742
8726
|
newState: { secondarySeriesField: e },
|
|
8743
8727
|
oldState: { secondarySeriesField: t }
|
|
8744
8728
|
});
|
|
8745
|
-
}),
|
|
8746
|
-
e?.id &&
|
|
8747
|
-
let n =
|
|
8729
|
+
}), H(fe, (e, t) => {
|
|
8730
|
+
e?.id && Pu(e.id).storeBeforeChange && (Ie.value ? me.value = e.id : pe.value = e.id);
|
|
8731
|
+
let n = Pu(e?.id || ""), r = Pu(t?.id || "");
|
|
8748
8732
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
8749
8733
|
l.yKey ? q.value = l.yKey : I.value.length > 0 && (q.value = I.value[0].value);
|
|
8750
8734
|
}), d("chart-state-changed", {
|
|
@@ -8752,40 +8736,40 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8752
8736
|
newState: { chartType: e?.id },
|
|
8753
8737
|
oldState: { chartType: t?.id }
|
|
8754
8738
|
});
|
|
8755
|
-
}),
|
|
8739
|
+
}), H(ve, (e) => {
|
|
8756
8740
|
if (e.length === 1 && j.value.length === 0) {
|
|
8757
8741
|
let t = e[0].field;
|
|
8758
8742
|
t && (j.value = [t]);
|
|
8759
8743
|
}
|
|
8760
|
-
}),
|
|
8744
|
+
}), H(I, (e) => {
|
|
8761
8745
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
8762
|
-
}),
|
|
8746
|
+
}), H(Te, (e, t) => {
|
|
8763
8747
|
d("chart-state-changed", {
|
|
8764
8748
|
api: p.value,
|
|
8765
8749
|
newState: { chartSort: e?.id },
|
|
8766
8750
|
oldState: { chartSort: t?.id }
|
|
8767
8751
|
});
|
|
8768
|
-
}),
|
|
8752
|
+
}), H(j, (e, t) => {
|
|
8769
8753
|
d("chart-state-changed", {
|
|
8770
8754
|
api: p.value,
|
|
8771
8755
|
newState: { chartCategoryFields: e },
|
|
8772
8756
|
oldState: { chartCategoryFields: t }
|
|
8773
8757
|
});
|
|
8774
|
-
}),
|
|
8758
|
+
}), H(V, (e, t) => {
|
|
8775
8759
|
d("chart-state-changed", {
|
|
8776
8760
|
api: p.value,
|
|
8777
8761
|
newState: { tableGrouped: e },
|
|
8778
8762
|
oldState: { tableGrouped: t }
|
|
8779
8763
|
});
|
|
8780
|
-
}),
|
|
8764
|
+
}), H(() => l.isTableGrouped, (e, t) => {
|
|
8781
8765
|
!p.value || e === t || !l.enableGroupingToggle || ct(e);
|
|
8782
|
-
}),
|
|
8766
|
+
}), H(() => l.initialFocusData, (e, t) => {
|
|
8783
8767
|
if (!(tt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8784
8768
|
if (!e?.focusType) {
|
|
8785
|
-
|
|
8769
|
+
B.setFocuses([]);
|
|
8786
8770
|
return;
|
|
8787
8771
|
}
|
|
8788
|
-
|
|
8772
|
+
B.setFocusType(e?.focusType), B.setFocuses(e?.focuses ?? []);
|
|
8789
8773
|
}
|
|
8790
8774
|
}, { deep: !0 });
|
|
8791
8775
|
let ze = () => {
|
|
@@ -8796,7 +8780,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8796
8780
|
return;
|
|
8797
8781
|
}
|
|
8798
8782
|
if (t) {
|
|
8799
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
8783
|
+
let { stackedData: n, uniqueFieldValues: r } = Qu(e, N.value, t, He.value, R.value);
|
|
8800
8784
|
xe.value = n, Y.value = {
|
|
8801
8785
|
fieldName: t,
|
|
8802
8786
|
fieldValues: r
|
|
@@ -8805,9 +8789,9 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8805
8789
|
be.value = e;
|
|
8806
8790
|
}, Ve = (e) => {
|
|
8807
8791
|
let t = ++T.value, n = j.value.length;
|
|
8808
|
-
if (ze(), C.value = !1, n === 0 || I.value.length === 0 || l.requireFiltersToShowData &&
|
|
8792
|
+
if (ze(), C.value = !1, n === 0 || I.value.length === 0 || l.requireFiltersToShowData && z.filterModelEmpty.value) return;
|
|
8809
8793
|
if (l.serverSideChartHandler) {
|
|
8810
|
-
let e =
|
|
8794
|
+
let e = z.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8811
8795
|
if (e === null && l.initialGridState) {
|
|
8812
8796
|
let t = Sc(l.initialGridState, n, l.enableAdvancedFilter);
|
|
8813
8797
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
@@ -8844,7 +8828,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8844
8828
|
};
|
|
8845
8829
|
} else xe.value = [], Y.value = null;
|
|
8846
8830
|
}, He = r(() => {
|
|
8847
|
-
let e = I.value, t =
|
|
8831
|
+
let e = I.value, t = L.value;
|
|
8848
8832
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
8849
8833
|
}), Ue = (e) => {
|
|
8850
8834
|
let t = { [e.field]: e.key };
|
|
@@ -8857,10 +8841,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8857
8841
|
n.add(o);
|
|
8858
8842
|
let s = t.aggData;
|
|
8859
8843
|
if (o && s) {
|
|
8860
|
-
let n = String(o), s =
|
|
8844
|
+
let n = String(o), s = Zu(n);
|
|
8861
8845
|
r[s] = `${e.key}-${n}`;
|
|
8862
8846
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
8863
|
-
r[
|
|
8847
|
+
r[Xu(a.value, n)] = c, i += c;
|
|
8864
8848
|
}
|
|
8865
8849
|
}), r[`${a.value}${tc}`] = i;
|
|
8866
8850
|
return {
|
|
@@ -8877,8 +8861,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8877
8861
|
{ [N.value]: "" },
|
|
8878
8862
|
e[0],
|
|
8879
8863
|
{ [N.value]: " " }
|
|
8880
|
-
]), l.enableFocusView && e &&
|
|
8881
|
-
let t = e?.filter((e) =>
|
|
8864
|
+
]), l.enableFocusView && e && G.value.length > 0 && W.value) {
|
|
8865
|
+
let t = e?.filter((e) => G.value.includes(e[N.value])), n = e?.filter((e) => !G.value.includes(e[N.value]));
|
|
8882
8866
|
e = [
|
|
8883
8867
|
...t || [],
|
|
8884
8868
|
{ [N.value]: ec },
|
|
@@ -8890,7 +8874,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8890
8874
|
let e = (X.value ?? []).filter((e) => {
|
|
8891
8875
|
let t = e?.[N.value];
|
|
8892
8876
|
return !Ge.has(String(t));
|
|
8893
|
-
}), t =
|
|
8877
|
+
}), t = J.value;
|
|
8894
8878
|
if (!Me.value || !t || !Y.value) return e;
|
|
8895
8879
|
let n = le(t);
|
|
8896
8880
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
@@ -8899,20 +8883,20 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8899
8883
|
let n = e[r];
|
|
8900
8884
|
if (typeof n != "number") return e;
|
|
8901
8885
|
let a = 0;
|
|
8902
|
-
for (let n of i) typeof e[
|
|
8886
|
+
for (let n of i) typeof e[Xu(t, String(n))] == "number" && a++;
|
|
8903
8887
|
return {
|
|
8904
8888
|
...e,
|
|
8905
8889
|
[r]: a > 0 ? n / a : null
|
|
8906
8890
|
};
|
|
8907
8891
|
});
|
|
8908
|
-
}), Ke = r(() => X.value?.length || 0), qe = r(() =>
|
|
8892
|
+
}), 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
8893
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8910
8894
|
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 && W.value &&
|
|
8895
|
+
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !X.value || X.value?.length === 0 ? !0 : qe.value === -Infinity || Me.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView && W.value && G.value.length === 0 && l.percentOfFocusViewYKey && q.value && q.value === l.percentOfFocusViewYKey)), et = r(() => {
|
|
8912
8896
|
let e = le(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8913
|
-
return
|
|
8897
|
+
return Yu({
|
|
8914
8898
|
currentRowGroupColumnsLength: j.value.length,
|
|
8915
|
-
shouldShowFocusOverlayText: $e.value || l.focusRequired &&
|
|
8899
|
+
shouldShowFocusOverlayText: $e.value || l.focusRequired && G.value.length === 0,
|
|
8916
8900
|
chartDataEmpty: Qe.value,
|
|
8917
8901
|
missingFocusText: l.missingFocusText,
|
|
8918
8902
|
displayGroupByName: t
|
|
@@ -8927,17 +8911,17 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8927
8911
|
}
|
|
8928
8912
|
}
|
|
8929
8913
|
return null;
|
|
8930
|
-
}, rt = r(() => $e.value ||
|
|
8914
|
+
}, rt = r(() => $e.value || re.value || !l.isLoading && et.value !== ""), it = r(() => {
|
|
8931
8915
|
let e = {};
|
|
8932
8916
|
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] : X.value, e.legend = {
|
|
8933
8917
|
toggleSeries: !1,
|
|
8934
8918
|
preventHidingAll: !0,
|
|
8935
8919
|
enabled: j.value.length > 1
|
|
8936
8920
|
};
|
|
8937
|
-
let t = Me.value ? Y.value?.fieldValues.map((e) =>
|
|
8938
|
-
if (!
|
|
8939
|
-
let e =
|
|
8940
|
-
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) =>
|
|
8921
|
+
let t = Me.value ? Y.value?.fieldValues.map((e) => Xu(q.value, e)) || [] : q.value ? [q.value] : [], n = (() => {
|
|
8922
|
+
if (!J.value) return [];
|
|
8923
|
+
let e = J.value;
|
|
8924
|
+
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) => Xu(e, String(t))) || [] : [e];
|
|
8941
8925
|
})(), 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
8926
|
if (a.push({
|
|
8943
8927
|
type: "category",
|
|
@@ -8961,7 +8945,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8961
8945
|
if (e.value === "--SEPARATOR--") return "";
|
|
8962
8946
|
let t = e.value, n = ce(N.value);
|
|
8963
8947
|
typeof n == "function" && (t = n(e));
|
|
8964
|
-
let r = l.enableFocusView &&
|
|
8948
|
+
let r = l.enableFocusView && G.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8965
8949
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8966
8950
|
let e = 50 - r.length - 3;
|
|
8967
8951
|
return t.substring(0, e) + "..." + r;
|
|
@@ -9009,7 +8993,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9009
8993
|
enabled: !0,
|
|
9010
8994
|
text: Oe.value
|
|
9011
8995
|
}
|
|
9012
|
-
}),
|
|
8996
|
+
}), J.value && a.push({
|
|
9013
8997
|
type: "number",
|
|
9014
8998
|
keys: n,
|
|
9015
8999
|
position: je.value ? "top" : "right",
|
|
@@ -9038,10 +9022,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9038
9022
|
});
|
|
9039
9023
|
}
|
|
9040
9024
|
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 || !
|
|
9025
|
+
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !re.value && !l.isLoading && et.value !== ""), st = (e) => {
|
|
9042
9026
|
g.value = e, d("chart-collapsed", e);
|
|
9043
9027
|
}, ct = (e) => {
|
|
9044
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
9028
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), V.value = e);
|
|
9045
9029
|
};
|
|
9046
9030
|
return n({
|
|
9047
9031
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
@@ -9053,16 +9037,16 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9053
9037
|
}), S(() => {
|
|
9054
9038
|
if (l.initialGridState) {
|
|
9055
9039
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
9056
|
-
j.value = e, !l.allFieldsAreFocusable && e.length > 0 &&
|
|
9040
|
+
j.value = e, !l.allFieldsAreFocusable && e.length > 0 && B.setFocusType(e[0]);
|
|
9057
9041
|
}
|
|
9058
9042
|
}), w(async () => {
|
|
9059
9043
|
await v(), x.value = l.filterPanelAboveChart;
|
|
9060
|
-
}), (n, r) => (E(), o("div",
|
|
9044
|
+
}), (n, r) => (E(), o("div", ed, [
|
|
9061
9045
|
s("div", {
|
|
9062
9046
|
class: "pv-stack-16",
|
|
9063
9047
|
id: b
|
|
9064
9048
|
}),
|
|
9065
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
9049
|
+
e.hideChart ? a("", !0) : (E(), o("div", td, [
|
|
9066
9050
|
u(gn, {
|
|
9067
9051
|
rightIcon: "chevrons-down-up",
|
|
9068
9052
|
label: "Collapse",
|
|
@@ -9074,7 +9058,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9074
9058
|
onClick: r[0] ||= (e) => st(!g.value),
|
|
9075
9059
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
9076
9060
|
}, null, 8, ["class"]),
|
|
9077
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
9061
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", nd, [u(ln, {
|
|
9078
9062
|
name: "chart-line",
|
|
9079
9063
|
size: 20,
|
|
9080
9064
|
class: "pv-text-subdued"
|
|
@@ -9087,7 +9071,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9087
9071
|
variant: "secondary",
|
|
9088
9072
|
onClick: r[1] ||= (e) => st(!g.value)
|
|
9089
9073
|
})], 2),
|
|
9090
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
9074
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(qu, {
|
|
9091
9075
|
enablePanel: X.value != null && X.value.length > 0,
|
|
9092
9076
|
chartFilter: e.chartFilter,
|
|
9093
9077
|
rowGroupLimit: _e.value,
|
|
@@ -9099,7 +9083,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9099
9083
|
"rowGroupLimit",
|
|
9100
9084
|
"use-combined-button",
|
|
9101
9085
|
"chart-config-options"
|
|
9102
|
-
]), s("div",
|
|
9086
|
+
]), s("div", rd, [u(Zt, {
|
|
9103
9087
|
ref_key: "pvChartRef",
|
|
9104
9088
|
ref: h,
|
|
9105
9089
|
isLoading: at.value,
|
|
@@ -9109,36 +9093,36 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9109
9093
|
"isLoading",
|
|
9110
9094
|
"options",
|
|
9111
9095
|
"enableFocusView"
|
|
9112
|
-
]), s("div",
|
|
9096
|
+
]), s("div", id, [re.value ? (E(), o("div", ad, [(E(), i(M(e.emptyChartFilterRenderer)))])) : ot.value ? (E(), o("p", od, P(et.value), 1)) : a("", !0)])])], 2)
|
|
9113
9097
|
])),
|
|
9114
|
-
u(
|
|
9098
|
+
u(ou, _({
|
|
9115
9099
|
ref_key: "pvDataTableRef",
|
|
9116
9100
|
ref: m
|
|
9117
9101
|
}, n.$props, {
|
|
9118
9102
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
9119
|
-
pagination: e.pagination || !
|
|
9120
|
-
onColumnRowGroupChanged:
|
|
9121
|
-
onGridReady:
|
|
9122
|
-
onFilterChanged:
|
|
9103
|
+
pagination: e.pagination || !V.value,
|
|
9104
|
+
onColumnRowGroupChanged: K,
|
|
9105
|
+
onGridReady: ie,
|
|
9106
|
+
onFilterChanged: oe,
|
|
9123
9107
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
9124
9108
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
9125
|
-
onFirstDataRendered:
|
|
9109
|
+
onFirstDataRendered: ae,
|
|
9126
9110
|
onColumnMoved: r[5] ||= (e) => d("column-moved", e),
|
|
9127
9111
|
onColumnResized: r[6] ||= (e) => d("column-resized", e),
|
|
9128
9112
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
9129
9113
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
9130
9114
|
}), {
|
|
9131
|
-
"top-slot":
|
|
9115
|
+
"top-slot": U(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(hu, {
|
|
9132
9116
|
key: 0,
|
|
9133
|
-
groupedModeEnabled:
|
|
9117
|
+
groupedModeEnabled: V.value,
|
|
9134
9118
|
tableConfigOptions: l.tableConfigOptions,
|
|
9135
9119
|
onToggleGroup: ct,
|
|
9136
|
-
onTableOverlayChange:
|
|
9120
|
+
onTableOverlayChange: ne
|
|
9137
9121
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(gn, {
|
|
9138
9122
|
key: 1,
|
|
9139
|
-
leftIcon:
|
|
9140
|
-
label:
|
|
9141
|
-
onClick: r[2] ||= (e) => ct(!
|
|
9123
|
+
leftIcon: V.value ? "ungroup" : "group",
|
|
9124
|
+
label: V.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
9125
|
+
onClick: r[2] ||= (e) => ct(!V.value),
|
|
9142
9126
|
variant: "secondary",
|
|
9143
9127
|
size: "lg"
|
|
9144
9128
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -9146,7 +9130,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9146
9130
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
9147
9131
|
]));
|
|
9148
9132
|
}
|
|
9149
|
-
}),
|
|
9133
|
+
}), cd = {
|
|
9150
9134
|
type: "Feature",
|
|
9151
9135
|
properties: { name: "Hawaii" },
|
|
9152
9136
|
geometry: {
|
|
@@ -9320,7 +9304,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9320
9304
|
]]
|
|
9321
9305
|
]
|
|
9322
9306
|
}
|
|
9323
|
-
},
|
|
9307
|
+
}, ld = {
|
|
9324
9308
|
type: "Feature",
|
|
9325
9309
|
properties: { name: "Alaska" },
|
|
9326
9310
|
geometry: {
|
|
@@ -9733,7 +9717,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9733
9717
|
]]
|
|
9734
9718
|
]
|
|
9735
9719
|
}
|
|
9736
|
-
},
|
|
9720
|
+
}, ud = "_FeatureMin", dd = "_FeatureMax", fd = (e) => hd[e] || e, pd = ld, md = cd, hd = {
|
|
9737
9721
|
AL: "Alabama",
|
|
9738
9722
|
AK: "Alaska",
|
|
9739
9723
|
AZ: "Arizona",
|
|
@@ -9784,7 +9768,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9784
9768
|
WV: "West Virginia",
|
|
9785
9769
|
WI: "Wisconsin",
|
|
9786
9770
|
WY: "Wyoming"
|
|
9787
|
-
},
|
|
9771
|
+
}, gd = { state: {
|
|
9788
9772
|
type: "FeatureCollection",
|
|
9789
9773
|
features: [
|
|
9790
9774
|
{
|
|
@@ -9793,7 +9777,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9793
9777
|
type: "Polygon",
|
|
9794
9778
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9795
9779
|
},
|
|
9796
|
-
properties: { name:
|
|
9780
|
+
properties: { name: ud }
|
|
9797
9781
|
},
|
|
9798
9782
|
{
|
|
9799
9783
|
type: "Feature",
|
|
@@ -9801,7 +9785,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9801
9785
|
type: "Polygon",
|
|
9802
9786
|
coordinates: [[[-79.477, 39.721], [-79.477, 39.721]]]
|
|
9803
9787
|
},
|
|
9804
|
-
properties: { name:
|
|
9788
|
+
properties: { name: dd }
|
|
9805
9789
|
},
|
|
9806
9790
|
{
|
|
9807
9791
|
type: "Feature",
|
|
@@ -10987,7 +10971,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
10987
10971
|
},
|
|
10988
10972
|
properties: { name: "Michigan" }
|
|
10989
10973
|
},
|
|
10990
|
-
|
|
10974
|
+
md,
|
|
10991
10975
|
{
|
|
10992
10976
|
type: "Feature",
|
|
10993
10977
|
geometry: {
|
|
@@ -11931,7 +11915,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11931
11915
|
},
|
|
11932
11916
|
properties: { name: "New Hampshire" }
|
|
11933
11917
|
},
|
|
11934
|
-
|
|
11918
|
+
pd,
|
|
11935
11919
|
{
|
|
11936
11920
|
type: "Feature",
|
|
11937
11921
|
geometry: {
|
|
@@ -11995,12 +11979,12 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
11995
11979
|
properties: { name: "Rhode Island" }
|
|
11996
11980
|
}
|
|
11997
11981
|
]
|
|
11998
|
-
} },
|
|
11982
|
+
} }, _d = (e, t, n, r, i) => {
|
|
11999
11983
|
if (e.length === 0) return [];
|
|
12000
11984
|
if (t !== "state") throw Error(`Unsupported topology type: ${t}`);
|
|
12001
11985
|
if (!e.every((e) => e.hasOwnProperty(t))) throw Error(`Input data must contain the field: ${t}`);
|
|
12002
11986
|
let a = e.map((e) => {
|
|
12003
|
-
let n =
|
|
11987
|
+
let n = fd(e[t]);
|
|
12004
11988
|
return {
|
|
12005
11989
|
...e,
|
|
12006
11990
|
[t]: e[t],
|
|
@@ -12008,22 +11992,22 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12008
11992
|
};
|
|
12009
11993
|
});
|
|
12010
11994
|
return a.push({
|
|
12011
|
-
[t]:
|
|
11995
|
+
[t]: ud,
|
|
12012
11996
|
[n]: r,
|
|
12013
|
-
name:
|
|
11997
|
+
name: ud
|
|
12014
11998
|
}), a.push({
|
|
12015
|
-
[t]:
|
|
11999
|
+
[t]: dd,
|
|
12016
12000
|
[n]: i,
|
|
12017
|
-
name:
|
|
12001
|
+
name: dd
|
|
12018
12002
|
}), a;
|
|
12019
|
-
},
|
|
12020
|
-
let t =
|
|
12003
|
+
}, vd = (e) => {
|
|
12004
|
+
let t = gd[e];
|
|
12021
12005
|
if (!t) throw Error(`No topology object found for type: ${e}`);
|
|
12022
12006
|
return t;
|
|
12023
|
-
},
|
|
12024
|
-
getTopologyObject:
|
|
12025
|
-
buildMapData:
|
|
12026
|
-
}),
|
|
12007
|
+
}, yd = () => ({
|
|
12008
|
+
getTopologyObject: vd,
|
|
12009
|
+
buildMapData: _d
|
|
12010
|
+
}), 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
12011
|
__name: "MapGradient",
|
|
12028
12012
|
props: {
|
|
12029
12013
|
min: { default: 0 },
|
|
@@ -12032,7 +12016,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12032
12016
|
},
|
|
12033
12017
|
setup(e) {
|
|
12034
12018
|
let t = e, n = (e) => t.valueFormatter ? t.valueFormatter(e) : e.toLocaleString("en-US");
|
|
12035
|
-
return (t, r) => (E(), o("div",
|
|
12019
|
+
return (t, r) => (E(), o("div", bd, [s("div", {
|
|
12036
12020
|
min: e.min,
|
|
12037
12021
|
max: e.max,
|
|
12038
12022
|
"aria-hidden": "true",
|
|
@@ -12044,9 +12028,9 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12044
12028
|
"border-radius": "1rem",
|
|
12045
12029
|
height: "0.5rem"
|
|
12046
12030
|
}
|
|
12047
|
-
}, null, 8,
|
|
12031
|
+
}, null, 8, xd), s("div", Sd, [s("p", null, P(n(e.min)), 1), s("p", null, P(n(e.max)), 1)])]));
|
|
12048
12032
|
}
|
|
12049
|
-
}),
|
|
12033
|
+
}), wd = /* @__PURE__ */ d({
|
|
12050
12034
|
__name: "MapRegionSelector",
|
|
12051
12035
|
props: /* @__PURE__ */ g({
|
|
12052
12036
|
topologyType: {},
|
|
@@ -12060,16 +12044,16 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12060
12044
|
}),
|
|
12061
12045
|
emits: ["update:modelValue"],
|
|
12062
12046
|
setup(e) {
|
|
12063
|
-
let t =
|
|
12047
|
+
let t = R(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
12064
12048
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
12065
|
-
return (a.selectableRegions ? a.selectableRegions : Object.keys(
|
|
12066
|
-
text:
|
|
12049
|
+
return (a.selectableRegions ? a.selectableRegions : Object.keys(hd)).map((e) => ({
|
|
12050
|
+
text: fd(e),
|
|
12067
12051
|
id: e
|
|
12068
12052
|
}));
|
|
12069
12053
|
});
|
|
12070
|
-
return
|
|
12054
|
+
return H(n, (e) => {
|
|
12071
12055
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
12072
|
-
}),
|
|
12056
|
+
}), H(t, (e) => {
|
|
12073
12057
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
12074
12058
|
}), (e, t) => (E(), i(Qa, {
|
|
12075
12059
|
style: { width: "125px" },
|
|
@@ -12085,10 +12069,10 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12085
12069
|
"options"
|
|
12086
12070
|
]));
|
|
12087
12071
|
}
|
|
12088
|
-
}),
|
|
12072
|
+
}), Td = {
|
|
12089
12073
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
12090
12074
|
style: { width: "100%" }
|
|
12091
|
-
},
|
|
12075
|
+
}, Ed = /* @__PURE__ */ d({
|
|
12092
12076
|
__name: "PvMapChart",
|
|
12093
12077
|
props: /* @__PURE__ */ g({
|
|
12094
12078
|
seriesKey: {},
|
|
@@ -12122,8 +12106,8 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12122
12106
|
}),
|
|
12123
12107
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
12124
12108
|
setup(e, { emit: n }) {
|
|
12125
|
-
let i = e, a =
|
|
12126
|
-
|
|
12109
|
+
let i = e, a = R(e, "chartData"), c = R(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]));
|
|
12110
|
+
H(c, (e) => {
|
|
12127
12111
|
l("region-selection-changed", { region: e });
|
|
12128
12112
|
});
|
|
12129
12113
|
let g = r(() => (c.value, {
|
|
@@ -12162,7 +12146,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12162
12146
|
overlays: { noData: { text: i.noDataMessage || "No data to display" } },
|
|
12163
12147
|
gradientLegend: { enabled: !1 }
|
|
12164
12148
|
}));
|
|
12165
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12149
|
+
return (n, r) => (E(), o(t, null, [s("div", Td, [u(wd, {
|
|
12166
12150
|
modelValue: c.value,
|
|
12167
12151
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
12168
12152
|
"selectable-regions": h.value,
|
|
@@ -12171,7 +12155,7 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12171
12155
|
"modelValue",
|
|
12172
12156
|
"selectable-regions",
|
|
12173
12157
|
"topology-type"
|
|
12174
|
-
]), u(
|
|
12158
|
+
]), u(Cd, {
|
|
12175
12159
|
min: e.gradientLegendMin,
|
|
12176
12160
|
max: e.gradientLegendMax,
|
|
12177
12161
|
"value-formatter": e.seriesValueFormatter
|
|
@@ -12188,6 +12172,6 @@ var Xu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12188
12172
|
}
|
|
12189
12173
|
});
|
|
12190
12174
|
//#endregion
|
|
12191
|
-
export { yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart,
|
|
12175
|
+
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
12176
|
|
|
12193
12177
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|