@turquoisehealth/pit-viper 2.194.6-dev.2 → 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/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +0 -5
- package/pv-components/dist/vue/base/pv-components-base.mjs +6 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +0 -5
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +691 -688
- 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 +5 -2
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.pv-text-tertiary[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-743a2e13]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-743a2e13]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-743a2e13]{background-color:#e0e5e4}.pv-text-secondary[data-v-743a2e13]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-e19d6d09]{font-size:.5rem;font-weight:700}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-34f9d0e4]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-34f9d0e4]{opacity:1}.pv-menu-item-disabled[data-v-4505f3f4]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-4505f3f4]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-4505f3f4]:hover,&[data-v-4505f3f4]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-4505f3f4]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-4505f3f4]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-4505f3f4]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-4505f3f4]{pointer-events:auto;color:inherit}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-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
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
7
|
-
import { CellStyleModule as
|
|
3
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useId as 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
|
+
import { AgCharts as W } from "ag-charts-vue3";
|
|
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;
|
|
@@ -358,7 +358,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
358
358
|
width: e?.width,
|
|
359
359
|
height: e?.height
|
|
360
360
|
}) }), (n, r) => (E(), o("div", Rt, [
|
|
361
|
-
u(I(
|
|
361
|
+
u(I(W), {
|
|
362
362
|
ref_key: "chartRef",
|
|
363
363
|
ref: f,
|
|
364
364
|
style: x([{ height: "100%" }, g.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -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",
|
|
@@ -2992,26 +2992,26 @@ var ha = {
|
|
|
2992
2992
|
state: "deselected"
|
|
2993
2993
|
}))), t.push(r);
|
|
2994
2994
|
}
|
|
2995
|
-
for (let n of
|
|
2995
|
+
for (let n of W.value) e.has(n.id) || t.push({
|
|
2996
2996
|
id: n.id,
|
|
2997
2997
|
state: "selected"
|
|
2998
2998
|
});
|
|
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 &&
|
|
3003
|
-
if (!c.countSelectedParents || !c.enableCascadeSelection) return
|
|
3004
|
-
let t = new Set(
|
|
3002
|
+
if (c.enableCascadeSelection && c.countSelectedParents && z.value?.length) return pa(z.value) + e;
|
|
3003
|
+
if (!c.countSelectedParents || !c.enableCascadeSelection) return W.value.length + e;
|
|
3004
|
+
let t = new Set(W.value.map((e) => e.id));
|
|
3005
3005
|
return fa(c.options, t) + e;
|
|
3006
|
-
}), T = r(() =>
|
|
3006
|
+
}), T = r(() => W.value.length > 0 ? !0 : c.enableCascadeSelection && z.value?.length ? z.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
3007
3007
|
g("see-more", e ?? {});
|
|
3008
|
-
}, j =
|
|
3009
|
-
|
|
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());
|
|
3010
3012
|
}, re = () => {
|
|
3011
|
-
|
|
3012
|
-
}, ie = () => {
|
|
3013
|
-
ne.value && (U.value = ee.value);
|
|
3014
|
-
}, U = N(ee.value), ae = (e) => d.value.get(e), W = (e) => {
|
|
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
|
-
f.value = t, m.value = n,
|
|
3033
|
-
},
|
|
3034
|
-
get: () =>
|
|
3032
|
+
f.value = t, m.value = n, W.value = r;
|
|
3033
|
+
}, ae = r({
|
|
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
|
-
|
|
3050
|
-
}),
|
|
3051
|
-
|
|
3049
|
+
W.value = e;
|
|
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,
|
|
@@ -3119,7 +3119,7 @@ var ha = {
|
|
|
3119
3119
|
open: I(M),
|
|
3120
3120
|
"counter-value": w.value,
|
|
3121
3121
|
"counter-style": e.counterStyle,
|
|
3122
|
-
"selected-items":
|
|
3122
|
+
"selected-items": W.value,
|
|
3123
3123
|
onHandleClear: le,
|
|
3124
3124
|
onHandleToggleDropdown: r[0] ||= (e) => I(F)()
|
|
3125
3125
|
}, null, 8, [
|
|
@@ -3138,7 +3138,7 @@ var ha = {
|
|
|
3138
3138
|
"counter-style",
|
|
3139
3139
|
"selected-items"
|
|
3140
3140
|
])]),
|
|
3141
|
-
content:
|
|
3141
|
+
content: 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" }])
|
|
@@ -3776,7 +3776,10 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3776
3776
|
config: {}
|
|
3777
3777
|
},
|
|
3778
3778
|
setup(e) {
|
|
3779
|
-
let t = e, n = r(() => t.context), i = O(null), c = r(() => n.value?.exactMatch || !1), l = r(() => t.text), d = r(() => t.searchText || ""), f = r(() => n.value?.queryDisplayField), p = r(() =>
|
|
3779
|
+
let t = e, n = r(() => t.context), i = O(null), c = r(() => n.value?.exactMatch || !1), l = r(() => t.text), d = r(() => t.searchText || ""), f = r(() => n.value?.queryDisplayField), p = r(() => {
|
|
3780
|
+
let e = t.icon || "search";
|
|
3781
|
+
return c.value ? e : "search";
|
|
3782
|
+
});
|
|
3780
3783
|
return w(() => {
|
|
3781
3784
|
if (i.value && d.value) {
|
|
3782
3785
|
let e = RegExp(`(${d.value})`, "gi");
|
|
@@ -3788,7 +3791,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3788
3791
|
class: "pv-text-body-md"
|
|
3789
3792
|
}, P(l.value), 513), f.value ? (E(), o("p", Io, [c.value ? a("", !0) : (E(), o("span", Lo, "Search in ")), s("span", Ro, P(f.value), 1)])) : a("", !0)])])]));
|
|
3790
3793
|
}
|
|
3791
|
-
}), [["__scopeId", "data-v-
|
|
3794
|
+
}), [["__scopeId", "data-v-4e159eee"]]), Bo = /* @__PURE__ */ d({
|
|
3792
3795
|
__name: "QueryFormatter",
|
|
3793
3796
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
3794
3797
|
modelValue: { required: !0 },
|
|
@@ -3802,7 +3805,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3802
3805
|
}),
|
|
3803
3806
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
3804
3807
|
setup(e) {
|
|
3805
|
-
let n = e, s =
|
|
3808
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = Po(), u = r(() => {
|
|
3806
3809
|
let e = s.value?.queryTerms || [];
|
|
3807
3810
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
3808
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) => {
|
|
@@ -3892,7 +3895,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3892
3895
|
"update:options"
|
|
3893
3896
|
],
|
|
3894
3897
|
setup(e) {
|
|
3895
|
-
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 = () => {
|
|
3896
3899
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3897
3900
|
};
|
|
3898
3901
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3903,7 +3906,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3903
3906
|
id: d.value.trim(),
|
|
3904
3907
|
text: d.value,
|
|
3905
3908
|
queryTerm: { queryText: d.value }
|
|
3906
|
-
}),
|
|
3909
|
+
}), L());
|
|
3907
3910
|
}, A = r(() => {
|
|
3908
3911
|
if (!p.value || p.value.length === 0) return [];
|
|
3909
3912
|
let e = p.value;
|
|
@@ -3916,7 +3919,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3916
3919
|
context: e.queryTerm
|
|
3917
3920
|
}));
|
|
3918
3921
|
});
|
|
3919
|
-
|
|
3922
|
+
H([
|
|
3920
3923
|
A,
|
|
3921
3924
|
d,
|
|
3922
3925
|
() => n.optionsLoading
|
|
@@ -3933,7 +3936,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3933
3936
|
queryTerm: e.context,
|
|
3934
3937
|
icon: e.icon
|
|
3935
3938
|
};
|
|
3936
|
-
f.value = m(f.value, t),
|
|
3939
|
+
f.value = m(f.value, t), L();
|
|
3937
3940
|
} catch (e) {
|
|
3938
3941
|
console.error("Error adding query option:", e);
|
|
3939
3942
|
} finally {
|
|
@@ -3947,10 +3950,10 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3947
3950
|
function F(e) {
|
|
3948
3951
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
3949
3952
|
}
|
|
3950
|
-
let
|
|
3953
|
+
let L = () => {
|
|
3951
3954
|
d.value = "";
|
|
3952
3955
|
};
|
|
3953
|
-
return (n, r) =>
|
|
3956
|
+
return (n, r) => ne((E(), o("div", {
|
|
3954
3957
|
ref: "query-builder-input",
|
|
3955
3958
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3956
3959
|
onFocus: F,
|
|
@@ -3976,7 +3979,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3976
3979
|
"modelValue",
|
|
3977
3980
|
"wrap-content",
|
|
3978
3981
|
"query-term-display-limit"
|
|
3979
|
-
]),
|
|
3982
|
+
]), ne(s("input", {
|
|
3980
3983
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3981
3984
|
ref: "search-input",
|
|
3982
3985
|
"data-testid": "pv-search-input",
|
|
@@ -3986,7 +3989,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
3986
3989
|
"data-invalid": w.value ? "true" : void 0,
|
|
3987
3990
|
onFocus: F,
|
|
3988
3991
|
onBlur: F
|
|
3989
|
-
}, null, 40, Vo), [[
|
|
3992
|
+
}, null, 40, Vo), [[te, d.value]])], 4),
|
|
3990
3993
|
f.value && !e.hideClearButton ? (E(), i(gn, {
|
|
3991
3994
|
key: 1,
|
|
3992
3995
|
variant: "ghost",
|
|
@@ -4004,7 +4007,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4004
4007
|
},
|
|
4005
4008
|
isList: !0
|
|
4006
4009
|
}, {
|
|
4007
|
-
default:
|
|
4010
|
+
default: 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, _({
|
|
4008
4011
|
key: `${t}-${e.searchText}`,
|
|
4009
4012
|
ref_for: !0
|
|
4010
4013
|
}, e, {
|
|
@@ -4036,7 +4039,7 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4036
4039
|
},
|
|
4037
4040
|
setup(e) {
|
|
4038
4041
|
let n = m(Jo, O(null)), c = m(Qo, O([])), l = m($o, O([])), u = e;
|
|
4039
|
-
|
|
4042
|
+
H(l, () => {}, { deep: !0 });
|
|
4040
4043
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
4041
4044
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
4042
4045
|
}, p = r(() => ({ "pv-hide": c.value.length === 0 })), h = r(() => u.rowGroupLimit ? l.value.length >= u.rowGroupLimit : !1), g = r(() => l.value.map((e) => c.value.find((t) => t.field === e)).filter((e) => e !== void 0)), _ = r(() => c.value.filter((e) => !l.value.includes(e.field))), v = r(() => {
|
|
@@ -4067,12 +4070,12 @@ var To = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Eo =
|
|
|
4067
4070
|
class: y(p.value),
|
|
4068
4071
|
onListOrderUpdated: x
|
|
4069
4072
|
}, {
|
|
4070
|
-
trigger:
|
|
4073
|
+
trigger: 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), {
|
|
4071
4074
|
key: 0,
|
|
4072
4075
|
value: I(l).length,
|
|
4073
4076
|
variant: "tertiary"
|
|
4074
4077
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
4075
|
-
default:
|
|
4078
|
+
default: 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", {
|
|
4076
4079
|
key: 0,
|
|
4077
4080
|
id: b(e.value)
|
|
4078
4081
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -4194,14 +4197,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4194
4197
|
tooltipPosition: "center-left",
|
|
4195
4198
|
size: "sm"
|
|
4196
4199
|
}, {
|
|
4197
|
-
label:
|
|
4200
|
+
label: U(() => [u(gn, {
|
|
4198
4201
|
class: y(j.value + " pv-text-brand"),
|
|
4199
4202
|
variant: "ghost",
|
|
4200
4203
|
"left-icon": "focus",
|
|
4201
4204
|
ariaLabel: "Remove focus",
|
|
4202
4205
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
4203
4206
|
}, null, 8, ["class"])]),
|
|
4204
|
-
"tooltip-content":
|
|
4207
|
+
"tooltip-content": U(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
4205
4208
|
_: 1
|
|
4206
4209
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Hs, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
4207
4210
|
}
|
|
@@ -4233,14 +4236,14 @@ var As = /* @__PURE__ */ Xt(Ds, [["render", ks]]), js = ["innerHTML"], Ms = { ke
|
|
|
4233
4236
|
"col-def": o.value,
|
|
4234
4237
|
"cell-params": e.params.cellParams
|
|
4235
4238
|
}, {
|
|
4236
|
-
default:
|
|
4239
|
+
default: U(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4237
4240
|
_: 1
|
|
4238
4241
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Ns, {
|
|
4239
4242
|
key: 1,
|
|
4240
4243
|
"col-def": s.value,
|
|
4241
4244
|
"cell-params": c.value
|
|
4242
4245
|
}, {
|
|
4243
|
-
default:
|
|
4246
|
+
default: U(() => [u(Us, { params: e.params }, null, 8, ["params"])]),
|
|
4244
4247
|
_: 1
|
|
4245
4248
|
}, 8, ["col-def", "cell-params"]));
|
|
4246
4249
|
}
|
|
@@ -4787,12 +4790,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4787
4790
|
if (!e.startsWith("__")) return e;
|
|
4788
4791
|
let t = e.slice(2).split("__");
|
|
4789
4792
|
return t.length >= 2 ? t[1] : e;
|
|
4790
|
-
}, I = (e) => e ? e.rawValue == null ? e.metadata?.rawValue == null ? F(e.value) : String(e.metadata.rawValue) : String(e.rawValue) : null,
|
|
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) => {
|
|
4791
4794
|
if (!e || n > 25) return !1;
|
|
4792
4795
|
if (e.value === t.value) return !0;
|
|
4793
4796
|
let r = I(e), i = I(t);
|
|
4794
|
-
return r != null && i != null && r === i ? !0 : e.children?.some((e) =>
|
|
4795
|
-
},
|
|
4797
|
+
return r != null && i != null && r === i ? !0 : e.children?.some((e) => L(e, t, n + 1)) ?? !1;
|
|
4798
|
+
}, R = async (e, t) => {
|
|
4796
4799
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
4797
4800
|
if (t?.useStaged !== !1 && i.value != null) if (Xc(i.value)) {
|
|
4798
4801
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
@@ -4812,12 +4815,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4812
4815
|
h || (u.value[m] = !0);
|
|
4813
4816
|
let g = (c.value[m] || 0) + 1;
|
|
4814
4817
|
c.value[m] = g;
|
|
4815
|
-
let _ = a.map((e) =>
|
|
4818
|
+
let _ = a.map((e) => z(m, e) || {
|
|
4816
4819
|
value: e,
|
|
4817
4820
|
label: String(e)
|
|
4818
4821
|
}), v = await d.value?.(l), x;
|
|
4819
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) => {
|
|
4820
|
-
let n =
|
|
4823
|
+
let n = B(e, t);
|
|
4821
4824
|
return t && n && (t.matchedField = t.matchedField ?? n.matchedField, t.matchedValue = t.matchedValue ?? n.matchedValue), t;
|
|
4822
4825
|
})), g === c.value[m]) {
|
|
4823
4826
|
let e = (t?.offset ?? 0) > 0, n = !!t?.parentId;
|
|
@@ -4836,12 +4839,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4836
4839
|
}) : e;
|
|
4837
4840
|
}
|
|
4838
4841
|
_.forEach((e) => {
|
|
4839
|
-
x?.some((t) =>
|
|
4842
|
+
x?.some((t) => L(t, e)) || x?.push(e);
|
|
4840
4843
|
}), x && (y.value[m] = x);
|
|
4841
4844
|
let r = x?.filter((e) => e != null).map((e) => e.value) || [], i = r.filter((e, t) => r.indexOf(e) === t);
|
|
4842
4845
|
return C.value[m] = i, w.value[m] = !1, s.value[m] = Date.now(), h || (u.value[m] = !1), i;
|
|
4843
4846
|
} else return [];
|
|
4844
|
-
},
|
|
4847
|
+
}, z = (e, t) => {
|
|
4845
4848
|
let n = [...y.value[e] || [], ...x.value[e] || []], r = (e, t) => {
|
|
4846
4849
|
let n = /* @__PURE__ */ new Map();
|
|
4847
4850
|
for (let t of e.children || []) n.set(t.value, t);
|
|
@@ -4862,7 +4865,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4862
4865
|
}
|
|
4863
4866
|
};
|
|
4864
4867
|
return o(n);
|
|
4865
|
-
},
|
|
4868
|
+
}, B = (e, t) => {
|
|
4866
4869
|
if (!t) return {};
|
|
4867
4870
|
let n = $(e)?.queryColIds || [];
|
|
4868
4871
|
if (n.length === 0) return {};
|
|
@@ -4875,7 +4878,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4875
4878
|
};
|
|
4876
4879
|
}
|
|
4877
4880
|
return {};
|
|
4878
|
-
},
|
|
4881
|
+
}, ee = (e, t) => {
|
|
4879
4882
|
b.value[e] = t;
|
|
4880
4883
|
let r = [], i = n.value;
|
|
4881
4884
|
if (Zc(i)) {
|
|
@@ -4888,35 +4891,35 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4888
4891
|
r.push(...t);
|
|
4889
4892
|
let a = [];
|
|
4890
4893
|
return t.forEach((t) => {
|
|
4891
|
-
let n =
|
|
4894
|
+
let n = z(e, t);
|
|
4892
4895
|
n && a.push(n);
|
|
4893
4896
|
}), x.value[e] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4894
|
-
},
|
|
4897
|
+
}, te = (e) => b.value[e] || [], V = (e, t) => {
|
|
4895
4898
|
S.value[e] = t;
|
|
4896
|
-
},
|
|
4899
|
+
}, H = (e) => C.value[e] || [], U = (e, t) => {
|
|
4897
4900
|
C.value[e] = t;
|
|
4898
|
-
},
|
|
4901
|
+
}, ne = (e, t) => {
|
|
4899
4902
|
k.value[e] = t;
|
|
4900
|
-
},
|
|
4903
|
+
}, re = (e) => {
|
|
4901
4904
|
let t = j.value[e] ?? 0;
|
|
4902
4905
|
j.value[e] = t + 1, A.value.add(e);
|
|
4903
|
-
},
|
|
4906
|
+
}, W = (e) => {
|
|
4904
4907
|
let t = j.value[e] ?? 0;
|
|
4905
4908
|
if (t <= 1) {
|
|
4906
4909
|
delete j.value[e], A.value.delete(e);
|
|
4907
4910
|
return;
|
|
4908
4911
|
}
|
|
4909
4912
|
j.value[e] = t - 1;
|
|
4910
|
-
},
|
|
4913
|
+
}, G = (e) => {
|
|
4911
4914
|
let t = new Set(e);
|
|
4912
4915
|
for (let n of e) {
|
|
4913
4916
|
let e = k.value[n] || [];
|
|
4914
4917
|
for (let n of e) t.add(n);
|
|
4915
4918
|
}
|
|
4916
4919
|
for (let e of A.value) t.has(e) || (w.value[e] = !0);
|
|
4917
|
-
},
|
|
4920
|
+
}, ie = e.initStagedFilterSelections, ae = e.clearStagedFilterSelections, K = (e) => M.value[e] || [], oe = (e, t) => {
|
|
4918
4921
|
M.value[e] = t;
|
|
4919
|
-
},
|
|
4922
|
+
}, se = (e) => {
|
|
4920
4923
|
t.value = e;
|
|
4921
4924
|
}, ce = (e) => {
|
|
4922
4925
|
(!e || t.value === e) && (t.value = null);
|
|
@@ -4936,7 +4939,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4936
4939
|
};
|
|
4937
4940
|
return qe([n, i], ([e, t], [r, i]) => {
|
|
4938
4941
|
let a = /* @__PURE__ */ new Set();
|
|
4939
|
-
JSON.stringify(e) !== JSON.stringify(r) && pe(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(t) !== JSON.stringify(i) && pe(t || {}, n.value || {}).forEach((e) => a.add(e)), a.size > 0 &&
|
|
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);
|
|
4940
4943
|
}, {
|
|
4941
4944
|
deep: !0,
|
|
4942
4945
|
debounce: 200,
|
|
@@ -4954,36 +4957,36 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4954
4957
|
filterValueMap: y,
|
|
4955
4958
|
filterValueSelectedMetadataMap: x,
|
|
4956
4959
|
filterStoreHandler: d,
|
|
4957
|
-
fetchFilterValues:
|
|
4958
|
-
filterValueContext:
|
|
4960
|
+
fetchFilterValues: R,
|
|
4961
|
+
filterValueContext: z,
|
|
4959
4962
|
filterModelEmpty: _,
|
|
4960
|
-
getFilterSelectedValues:
|
|
4961
|
-
getSearchMatchDataFromFilterContext:
|
|
4963
|
+
getFilterSelectedValues: te,
|
|
4964
|
+
getSearchMatchDataFromFilterContext: B,
|
|
4962
4965
|
isServerSideFilter: g,
|
|
4963
4966
|
stagedFilterModel: i,
|
|
4964
|
-
setFilterSelectedValues:
|
|
4965
|
-
setFilterValueSearchText:
|
|
4967
|
+
setFilterSelectedValues: ee,
|
|
4968
|
+
setFilterValueSearchText: V,
|
|
4966
4969
|
tableSearchFilterModel: a,
|
|
4967
4970
|
tableSearchFilterModelEmpty: v,
|
|
4968
4971
|
tableSearchHandler: m,
|
|
4969
4972
|
filterValuesMap: C,
|
|
4970
|
-
getFilterValues:
|
|
4971
|
-
setFilterValues:
|
|
4973
|
+
getFilterValues: H,
|
|
4974
|
+
setFilterValues: U,
|
|
4972
4975
|
filterStaleMap: w,
|
|
4973
4976
|
refreshFiltersInBackground: E,
|
|
4974
4977
|
stageFilterChangesUntilDropdownCloses: D,
|
|
4975
|
-
markOtherFieldsStale:
|
|
4978
|
+
markOtherFieldsStale: G,
|
|
4976
4979
|
aggregateFieldMap: k,
|
|
4977
|
-
registerAggregateField:
|
|
4980
|
+
registerAggregateField: ne,
|
|
4978
4981
|
registeredFilterFields: A,
|
|
4979
|
-
registerFilterField:
|
|
4980
|
-
unregisterFilterField:
|
|
4982
|
+
registerFilterField: re,
|
|
4983
|
+
unregisterFilterField: W,
|
|
4981
4984
|
stagedSelectedValuesMap: M,
|
|
4982
|
-
initStagedSelectedValues:
|
|
4983
|
-
clearStagedSelectedValues:
|
|
4984
|
-
getStagedSelectedValues:
|
|
4985
|
-
setStagedSelectedValues:
|
|
4986
|
-
registerFilterController:
|
|
4985
|
+
initStagedSelectedValues: ie,
|
|
4986
|
+
clearStagedSelectedValues: ae,
|
|
4987
|
+
getStagedSelectedValues: K,
|
|
4988
|
+
setStagedSelectedValues: oe,
|
|
4989
|
+
registerFilterController: se,
|
|
4987
4990
|
unregisterFilterController: ce,
|
|
4988
4991
|
getFilterModel: le,
|
|
4989
4992
|
applyFilterModel: ue,
|
|
@@ -5000,52 +5003,52 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5000
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().");
|
|
5001
5004
|
return e;
|
|
5002
5005
|
}, rl = (e) => {
|
|
5003
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Jo, O(null)), c = tl(), { fetchFilterValues: l, filterModel: u, stagedFilterModel: d, filterModelCleared: f, filterValuesLoadingStatus: p, filterValueContext: h, getFilterSelectedValues: g, isServerSideFilter: _, setFilterValueSearchText: y, setFilterSelectedValues: b, getFilterValues: x, setFilterValues: S, filterStaleMap: C, refreshFiltersInBackground: E, stageFilterChangesUntilDropdownCloses: D, markOtherFieldsStale: k, registerAggregateField: A, registerFilterField: j, unregisterFilterField: M, getStagedSelectedValues: N, setStagedSelectedValues: P, filterValueSearchTextMap: F, filterValuesHasMoreMap: I, filterValuesTotalCountMap:
|
|
5004
|
-
get: () =>
|
|
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),
|
|
5005
5008
|
set: (e) => {
|
|
5006
|
-
|
|
5009
|
+
K.value ? P(G.value, e) : b(G.value, e);
|
|
5007
5010
|
}
|
|
5008
|
-
}),
|
|
5009
|
-
let e = x(
|
|
5010
|
-
if (
|
|
5011
|
-
let t = new Set(e), n =
|
|
5011
|
+
}), ne = r(() => {
|
|
5012
|
+
let e = x(G.value);
|
|
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));
|
|
5012
5015
|
return [...n, ...i];
|
|
5013
5016
|
}
|
|
5014
|
-
return
|
|
5015
|
-
}),
|
|
5016
|
-
get: () => F.value[
|
|
5017
|
-
set: (e) => y(
|
|
5018
|
-
}),
|
|
5017
|
+
return De(e);
|
|
5018
|
+
}), re = r(() => p.value[G.value] ?? !1), W = r({
|
|
5019
|
+
get: () => F.value[G.value] ?? "",
|
|
5020
|
+
set: (e) => y(G.value, e)
|
|
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) => {
|
|
5019
5022
|
let n = new Set(e), r = new Set(t);
|
|
5020
5023
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
5021
|
-
},
|
|
5024
|
+
}, we = O([]), Y = r(() => ne.value.length === 1 && ne.value[0] === null && U.value.length === 0), Te = (e = !1) => {
|
|
5022
5025
|
if (J.value) return;
|
|
5023
5026
|
let n = [];
|
|
5024
|
-
if (
|
|
5027
|
+
if (V.value && s.value) {
|
|
5025
5028
|
let e = s.value.getAdvancedFilterModel();
|
|
5026
|
-
n = Hc(
|
|
5029
|
+
n = Hc(G.value, e);
|
|
5027
5030
|
} else n = Nc(t.value, u.value);
|
|
5028
|
-
e ?
|
|
5029
|
-
},
|
|
5031
|
+
e ? U.value = n : U.value = Array.from(new Set([...g(G.value), ...n]));
|
|
5032
|
+
}, Ee = (e) => {
|
|
5030
5033
|
let t = (n) => {
|
|
5031
5034
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
5032
5035
|
return !1;
|
|
5033
5036
|
};
|
|
5034
|
-
return t(
|
|
5035
|
-
},
|
|
5036
|
-
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);
|
|
5037
5040
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
5038
|
-
}),
|
|
5041
|
+
}), Oe = async (e = !1, n = !1) => {
|
|
5039
5042
|
if (!s.value || o?.value) return;
|
|
5040
|
-
let r = C.value[
|
|
5041
|
-
if (
|
|
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);
|
|
5044
|
+
if (V.value) {
|
|
5042
5045
|
if (_.value && c) {
|
|
5043
5046
|
let e = await l(t.value, {
|
|
5044
5047
|
api: s.value,
|
|
5045
5048
|
filterModel: u.value ?? void 0,
|
|
5046
|
-
useStaged:
|
|
5049
|
+
useStaged: K.value
|
|
5047
5050
|
});
|
|
5048
|
-
S(
|
|
5051
|
+
S(G.value, e), C.value[G.value] = !1, ft();
|
|
5049
5052
|
}
|
|
5050
5053
|
return;
|
|
5051
5054
|
}
|
|
@@ -5055,71 +5058,71 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5055
5058
|
d.refreshFilterValues();
|
|
5056
5059
|
return;
|
|
5057
5060
|
}
|
|
5058
|
-
S(
|
|
5061
|
+
S(G.value, d.getFilterValues()), C.value[G.value] = !1;
|
|
5059
5062
|
}
|
|
5060
|
-
},
|
|
5061
|
-
let t = h(
|
|
5062
|
-
return !t && J.value && e && (t =
|
|
5063
|
-
},
|
|
5063
|
+
}, ke = (e) => {
|
|
5064
|
+
let t = h(G.value, e);
|
|
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) => {
|
|
5064
5067
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
5065
5068
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
5066
5069
|
return n ? {
|
|
5067
5070
|
...e,
|
|
5068
5071
|
label: String(e.metadata?.[n])
|
|
5069
5072
|
} : e;
|
|
5070
|
-
},
|
|
5071
|
-
let n =
|
|
5073
|
+
}, Pe = (e, t) => {
|
|
5074
|
+
let n = le.value, r = t, i = Ae(t);
|
|
5072
5075
|
if (i && J.value) {
|
|
5073
5076
|
let e = s.value?.getColumnDef(i);
|
|
5074
|
-
n = e ? rc(e) ?? n : n, r =
|
|
5077
|
+
n = e ? rc(e) ?? n : n, r = Ne(t, e ?? void 0);
|
|
5075
5078
|
}
|
|
5076
5079
|
return n ? n({
|
|
5077
|
-
value:
|
|
5080
|
+
value: Me(e, r),
|
|
5078
5081
|
context: r
|
|
5079
5082
|
}) : r?.label || e;
|
|
5080
|
-
},
|
|
5083
|
+
}, Fe = (e) => Pe(e, ke(e)), Ie = (e) => {
|
|
5081
5084
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
5082
|
-
let n = h(
|
|
5085
|
+
let n = h(G.value, e);
|
|
5083
5086
|
return n == null || n.label == null;
|
|
5084
|
-
},
|
|
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) => {
|
|
5085
5088
|
if (!e.startsWith("__")) return { value: e };
|
|
5086
5089
|
let t = e.slice(2).split("__");
|
|
5087
5090
|
return t.length < 2 ? { value: e } : {
|
|
5088
5091
|
field: t[0],
|
|
5089
5092
|
value: t[1]
|
|
5090
5093
|
};
|
|
5091
|
-
},
|
|
5092
|
-
let t =
|
|
5093
|
-
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(
|
|
5094
|
-
},
|
|
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) => {
|
|
5095
5098
|
for (let n of e) {
|
|
5096
5099
|
if (!n) continue;
|
|
5097
5100
|
if (t(n)) return n;
|
|
5098
|
-
let e = n.children ?
|
|
5101
|
+
let e = n.children ? X(n.children, t) : void 0;
|
|
5099
5102
|
if (e) return e;
|
|
5100
5103
|
}
|
|
5101
|
-
},
|
|
5104
|
+
}, Ge = (e, t) => {
|
|
5102
5105
|
for (let n of e) {
|
|
5103
5106
|
if (!n) continue;
|
|
5104
5107
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
5105
|
-
let e = n.children ?
|
|
5108
|
+
let e = n.children ? Ge(n.children, t) : void 0;
|
|
5106
5109
|
if (e) return e;
|
|
5107
5110
|
}
|
|
5108
|
-
},
|
|
5111
|
+
}, Z = (e, t) => yo(We(), e, t), Ke = (e) => {
|
|
5109
5112
|
let t = (n) => {
|
|
5110
5113
|
if (n) {
|
|
5111
|
-
if (String(
|
|
5114
|
+
if (String(je(n) ?? Be(n.value).value) === e) return n;
|
|
5112
5115
|
for (let e of n.children || []) {
|
|
5113
5116
|
let n = t(e);
|
|
5114
5117
|
if (n) return n;
|
|
5115
5118
|
}
|
|
5116
5119
|
}
|
|
5117
5120
|
};
|
|
5118
|
-
for (let e of
|
|
5121
|
+
for (let e of We()) {
|
|
5119
5122
|
let n = t(e);
|
|
5120
5123
|
if (n) return n;
|
|
5121
5124
|
}
|
|
5122
|
-
},
|
|
5125
|
+
}, Je = (e) => {
|
|
5123
5126
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
5124
5127
|
if (t.length < 4) return;
|
|
5125
5128
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -5138,48 +5141,48 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5138
5141
|
}],
|
|
5139
5142
|
totalChildCount: 1
|
|
5140
5143
|
};
|
|
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);
|
|
5141
5147
|
}, Xe = (e) => {
|
|
5142
|
-
let n = X(), r = Ge(n, (t) => t.value === e.id);
|
|
5143
|
-
return r?.children?.length ? r : Z(n, e.id) || (r && je(r) === lc(t.value) ? r : Ye(e.id) || r);
|
|
5144
|
-
}, Ze = (e) => {
|
|
5145
5148
|
if (!J.value) return;
|
|
5146
|
-
let t = c.filterValueSelectedMetadataMap.value[
|
|
5149
|
+
let t = c.filterValueSelectedMetadataMap.value[G.value] || [], n = /* @__PURE__ */ new Map();
|
|
5147
5150
|
for (let e of t) e && n.set(e.value, e);
|
|
5148
5151
|
for (let t of e) {
|
|
5149
5152
|
if (t.state !== "selected") continue;
|
|
5150
|
-
let e =
|
|
5153
|
+
let e = Ye(t);
|
|
5151
5154
|
e && n.set(e.value, e);
|
|
5152
5155
|
}
|
|
5153
|
-
c.filterValueSelectedMetadataMap.value[
|
|
5154
|
-
},
|
|
5156
|
+
c.filterValueSelectedMetadataMap.value[G.value] = [...n.values()];
|
|
5157
|
+
}, Ze = () => {
|
|
5155
5158
|
let e = /* @__PURE__ */ new Set();
|
|
5156
|
-
for (let t of
|
|
5159
|
+
for (let t of we.value) {
|
|
5157
5160
|
if (t.state !== "selected") continue;
|
|
5158
|
-
let n =
|
|
5161
|
+
let n = Ye(t);
|
|
5159
5162
|
n && e.add(n.value);
|
|
5160
5163
|
}
|
|
5161
|
-
return [...e].filter((e) => !
|
|
5162
|
-
},
|
|
5163
|
-
let n = h(
|
|
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;
|
|
5164
5167
|
n?.isPreference && (i = "preferences");
|
|
5165
5168
|
let a = null, o = n?.matchedValue;
|
|
5166
5169
|
o ? a = eo({
|
|
5167
|
-
getDisplayName:
|
|
5170
|
+
getDisplayName: Re,
|
|
5168
5171
|
matchedField: n?.matchedField,
|
|
5169
5172
|
matchedValue: o,
|
|
5170
5173
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
5171
|
-
}) : n?.subText ? a = n.subText :
|
|
5174
|
+
}) : n?.subText ? a = n.subText : Ae(n) && J.value && !r && (a = Re(Ae(n)));
|
|
5172
5175
|
let l, d, f;
|
|
5173
5176
|
if (r && (l = (n.children ?? []).map((e) => {
|
|
5174
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5177
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Re(e.matchedField);
|
|
5175
5178
|
return {
|
|
5176
5179
|
...e.menuOption,
|
|
5177
5180
|
id: e.value,
|
|
5178
|
-
text:
|
|
5181
|
+
text: Pe(e.value, e) || "",
|
|
5179
5182
|
searchText: t,
|
|
5180
5183
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5181
5184
|
subduedText: e.subduedText,
|
|
5182
|
-
disabled: e.menuOption?.disabled ??
|
|
5185
|
+
disabled: e.menuOption?.disabled ?? Le(e.value),
|
|
5183
5186
|
context: e,
|
|
5184
5187
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5185
5188
|
};
|
|
@@ -5190,23 +5193,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5190
5193
|
let r = n?.offset ?? l.length, i = await c.filterStoreHandler.value({
|
|
5191
5194
|
api: s.value,
|
|
5192
5195
|
colDef: t.value,
|
|
5193
|
-
field:
|
|
5196
|
+
field: G.value,
|
|
5194
5197
|
filterModel: u.value ?? void 0,
|
|
5195
|
-
query:
|
|
5198
|
+
query: W.value || void 0,
|
|
5196
5199
|
offset: r,
|
|
5197
5200
|
parentId: e,
|
|
5198
5201
|
reason: "child-load-more"
|
|
5199
5202
|
});
|
|
5200
5203
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
5201
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
5204
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Re(e.matchedField);
|
|
5202
5205
|
return {
|
|
5203
5206
|
...e.menuOption,
|
|
5204
5207
|
id: e.value,
|
|
5205
|
-
text:
|
|
5208
|
+
text: Pe(e.value, e) || "",
|
|
5206
5209
|
searchText: t,
|
|
5207
5210
|
subText: t && n ? `${n}: ${t}` : e.subText,
|
|
5208
5211
|
subduedText: e.subduedText,
|
|
5209
|
-
disabled: e.menuOption?.disabled ??
|
|
5212
|
+
disabled: e.menuOption?.disabled ?? Le(e.value),
|
|
5210
5213
|
context: e,
|
|
5211
5214
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
5212
5215
|
};
|
|
@@ -5216,59 +5219,59 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5216
5219
|
return {
|
|
5217
5220
|
...n?.menuOption,
|
|
5218
5221
|
id: e || "",
|
|
5219
|
-
text:
|
|
5222
|
+
text: Fe(e) || "",
|
|
5220
5223
|
searchText: o,
|
|
5221
5224
|
subduedText: n?.subduedText,
|
|
5222
5225
|
subText: a || void 0,
|
|
5223
5226
|
groupingLabel: i || "",
|
|
5224
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
5227
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Le(e)),
|
|
5225
5228
|
context: n || { value: e || "" },
|
|
5226
5229
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
5227
5230
|
children: l,
|
|
5228
5231
|
totalChildCount: d,
|
|
5229
5232
|
handleSeeMore: f
|
|
5230
5233
|
};
|
|
5231
|
-
},
|
|
5232
|
-
let e = [...J.value ?
|
|
5233
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
5234
|
-
}),
|
|
5235
|
-
get: () => J.value ? [] :
|
|
5236
|
-
let t = h(
|
|
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;
|
|
5237
5240
|
return {
|
|
5238
5241
|
id: e,
|
|
5239
|
-
text:
|
|
5242
|
+
text: Fe(e),
|
|
5240
5243
|
subText: r,
|
|
5241
5244
|
context: t || { value: e || "" }
|
|
5242
5245
|
};
|
|
5243
5246
|
}),
|
|
5244
5247
|
set: (e) => {
|
|
5245
5248
|
if (J.value) {
|
|
5246
|
-
if (e.length === 0 && !
|
|
5247
|
-
|
|
5249
|
+
if (e.length === 0 && !oe.value && D.value && !K.value) {
|
|
5250
|
+
lt([]);
|
|
5248
5251
|
return;
|
|
5249
5252
|
}
|
|
5250
5253
|
i?.();
|
|
5251
5254
|
return;
|
|
5252
5255
|
}
|
|
5253
|
-
|
|
5254
|
-
!
|
|
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);
|
|
5255
5258
|
})), i?.();
|
|
5256
5259
|
}
|
|
5257
|
-
}),
|
|
5260
|
+
}), tt = (e) => {
|
|
5258
5261
|
let t = {};
|
|
5259
5262
|
for (let n of e) {
|
|
5260
5263
|
if (n === null) continue;
|
|
5261
|
-
let e =
|
|
5264
|
+
let e = Ae(h(G.value, n)) || G.value;
|
|
5262
5265
|
t[e] || (t[e] = []), t[e].push(n);
|
|
5263
5266
|
}
|
|
5264
5267
|
return t;
|
|
5265
|
-
},
|
|
5268
|
+
}, nt = async (e, n, r) => {
|
|
5266
5269
|
if (!s.value) return;
|
|
5267
5270
|
if (e !== void 0 && n !== void 0) {
|
|
5268
|
-
let r = e ||
|
|
5269
|
-
if (
|
|
5271
|
+
let r = e || G.value, i = n;
|
|
5272
|
+
if (V.value) {
|
|
5270
5273
|
let e = bc(r, i || []);
|
|
5271
|
-
if (
|
|
5274
|
+
if (K.value) {
|
|
5272
5275
|
let t = d.value;
|
|
5273
5276
|
d.value = Bc(t, e, r), k(new Set([r]));
|
|
5274
5277
|
return;
|
|
@@ -5279,7 +5282,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5279
5282
|
}), k(new Set([r]));
|
|
5280
5283
|
return;
|
|
5281
5284
|
}
|
|
5282
|
-
if (
|
|
5285
|
+
if (K.value) {
|
|
5283
5286
|
let e = await Mc(s.value, t.value, i);
|
|
5284
5287
|
d.value = {
|
|
5285
5288
|
...d.value,
|
|
@@ -5293,9 +5296,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5293
5296
|
});
|
|
5294
5297
|
return;
|
|
5295
5298
|
}
|
|
5296
|
-
let i =
|
|
5297
|
-
if (
|
|
5298
|
-
let e =
|
|
5299
|
+
let i = tt(U.value), o = $(t.value);
|
|
5300
|
+
if (V.value) {
|
|
5301
|
+
let e = K.value ? d.value : s.value.getAdvancedFilterModel(), n = e;
|
|
5299
5302
|
if (J.value) {
|
|
5300
5303
|
let e = cc(t.value), r = [];
|
|
5301
5304
|
for (let t of e) {
|
|
@@ -5319,8 +5322,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5319
5322
|
} : e;
|
|
5320
5323
|
}
|
|
5321
5324
|
} else {
|
|
5322
|
-
let t =
|
|
5323
|
-
n = Bc(n, r,
|
|
5325
|
+
let t = U.value.length > 0 ? U.value : null, r = bc(G.value, t || []);
|
|
5326
|
+
n = Bc(n, r, G.value);
|
|
5324
5327
|
let i = !1;
|
|
5325
5328
|
if (a?.value) {
|
|
5326
5329
|
let e = o.filterGroup?.fields ?? [];
|
|
@@ -5332,12 +5335,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5332
5335
|
n = Bc(n, r, t);
|
|
5333
5336
|
}
|
|
5334
5337
|
}
|
|
5335
|
-
let s =
|
|
5338
|
+
let s = U.value.filter((e) => e !== null), c = Hc(G.value, e), l = new Set(c), u = new Set(s);
|
|
5336
5339
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
5337
5340
|
}
|
|
5338
5341
|
if (r?.skipIfUnchanged && zc(e, n)) return;
|
|
5339
|
-
let c = J.value ?
|
|
5340
|
-
if (
|
|
5342
|
+
let c = J.value ? Se() : new Set([G.value]);
|
|
5343
|
+
if (K.value) d.value = n, k(c);
|
|
5341
5344
|
else {
|
|
5342
5345
|
let e = n;
|
|
5343
5346
|
v(() => {
|
|
@@ -5346,95 +5349,95 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5346
5349
|
}
|
|
5347
5350
|
return;
|
|
5348
5351
|
}
|
|
5349
|
-
let c =
|
|
5352
|
+
let c = U.value.length > 0 ? U.value : null;
|
|
5350
5353
|
if (r?.skipIfUnchanged) {
|
|
5351
5354
|
let e = Nc(t.value, s.value.getFilterModel());
|
|
5352
|
-
if (
|
|
5355
|
+
if (Ce(U.value, e)) return;
|
|
5353
5356
|
}
|
|
5354
|
-
if (
|
|
5357
|
+
if (K.value) {
|
|
5355
5358
|
let e = await Mc(s.value, t.value, c);
|
|
5356
5359
|
d.value = {
|
|
5357
5360
|
...d.value,
|
|
5358
|
-
[
|
|
5361
|
+
[G.value]: e
|
|
5359
5362
|
};
|
|
5360
5363
|
return;
|
|
5361
5364
|
}
|
|
5362
5365
|
let l = await Mc(s.value, t.value, c);
|
|
5363
|
-
s.value.setColumnFilterModel(
|
|
5366
|
+
s.value.setColumnFilterModel(G.value, l).then(() => {
|
|
5364
5367
|
s.value && s.value.onFilterChanged();
|
|
5365
5368
|
});
|
|
5366
|
-
},
|
|
5367
|
-
if (e &&
|
|
5368
|
-
let r = n || cc(t.value)[0] ||
|
|
5369
|
-
|
|
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, {
|
|
5370
5373
|
id: i,
|
|
5371
5374
|
state: "selected"
|
|
5372
5375
|
}]);
|
|
5373
5376
|
}
|
|
5374
|
-
(!D.value ||
|
|
5375
|
-
},
|
|
5376
|
-
if (
|
|
5377
|
-
let r = n || cc(t.value)[0] ||
|
|
5378
|
-
|
|
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);
|
|
5379
5382
|
}
|
|
5380
|
-
(!D.value ||
|
|
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;
|
|
5381
5386
|
}, ot = () => {
|
|
5382
|
-
|
|
5383
|
-
}, st = () => {
|
|
5384
|
-
K.value = !1, le.value = [], ae.value = "", !o?.value && D.value && !G.value && (J.value ? ut(Y.value, { skipIfUnchanged: !0 }) : rt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5385
|
-
}, ct = async (e) => {
|
|
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) => {
|
|
5386
5389
|
if (!s.value) return;
|
|
5387
|
-
let n =
|
|
5388
|
-
r && (
|
|
5390
|
+
let n = ne.value.length, r = !e.parentId;
|
|
5391
|
+
r && (se.value = !0);
|
|
5389
5392
|
try {
|
|
5390
5393
|
await l(t.value, {
|
|
5391
5394
|
api: s.value,
|
|
5392
5395
|
filterModel: u.value ?? void 0,
|
|
5393
5396
|
offset: e.offset ?? n,
|
|
5394
5397
|
parentId: e.parentId,
|
|
5395
|
-
useStaged:
|
|
5398
|
+
useStaged: K.value
|
|
5396
5399
|
});
|
|
5397
5400
|
} finally {
|
|
5398
|
-
r && (
|
|
5401
|
+
r && (se.value = !1);
|
|
5399
5402
|
}
|
|
5400
|
-
},
|
|
5403
|
+
}, ct = (e, n) => So({
|
|
5401
5404
|
baseModel: n,
|
|
5402
5405
|
colDef: t.value,
|
|
5403
|
-
options:
|
|
5406
|
+
options: We(),
|
|
5404
5407
|
state: e
|
|
5405
|
-
}),
|
|
5406
|
-
if (!s.value || !J.value || (
|
|
5407
|
-
let r =
|
|
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);
|
|
5408
5411
|
if (n?.skipIfUnchanged && zc(r, a)) return !1;
|
|
5409
|
-
if (
|
|
5412
|
+
if (K.value) d.value = a;
|
|
5410
5413
|
else {
|
|
5411
5414
|
let e = a;
|
|
5412
5415
|
v(() => {
|
|
5413
5416
|
s.value?.setAdvancedFilterModel(e);
|
|
5414
5417
|
});
|
|
5415
5418
|
}
|
|
5416
|
-
return k(
|
|
5417
|
-
},
|
|
5419
|
+
return k(Se()), i?.(), !0;
|
|
5420
|
+
}, ut = (e) => {
|
|
5418
5421
|
if (!J.value || !cc(t.value).length) return;
|
|
5419
5422
|
let n = wo({
|
|
5420
5423
|
colDef: t.value,
|
|
5421
5424
|
model: e,
|
|
5422
|
-
options:
|
|
5425
|
+
options: We()
|
|
5423
5426
|
});
|
|
5424
|
-
JSON.stringify(
|
|
5425
|
-
},
|
|
5426
|
-
let { field: t, value: n } =
|
|
5427
|
-
return t ?
|
|
5428
|
-
}) : !1,
|
|
5429
|
-
!J.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);
|
|
5430
5433
|
};
|
|
5431
|
-
return
|
|
5432
|
-
J.value && (
|
|
5433
|
-
}, { deep: !0 }),
|
|
5434
|
-
e &&
|
|
5435
|
-
}),
|
|
5436
|
-
if (
|
|
5437
|
-
if (
|
|
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, () => {
|
|
5439
|
+
if (K.value) {
|
|
5440
|
+
if (V.value) {
|
|
5438
5441
|
let e = [], n = d.value;
|
|
5439
5442
|
if (J.value) {
|
|
5440
5443
|
let r = cc(t.value);
|
|
@@ -5442,92 +5445,92 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5442
5445
|
let r = Hc(t, n);
|
|
5443
5446
|
e.push(...r);
|
|
5444
5447
|
}
|
|
5445
|
-
} else e = Hc(
|
|
5446
|
-
|
|
5448
|
+
} else e = Hc(G.value, n);
|
|
5449
|
+
U.value = e;
|
|
5447
5450
|
return;
|
|
5448
5451
|
}
|
|
5449
|
-
|
|
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.`);
|
|
5450
5453
|
}
|
|
5451
|
-
}),
|
|
5452
|
-
if (
|
|
5454
|
+
}), H(() => u.value, () => {
|
|
5455
|
+
if (K.value) return;
|
|
5453
5456
|
if (J.value) {
|
|
5454
|
-
|
|
5457
|
+
V.value && ut(u.value);
|
|
5455
5458
|
return;
|
|
5456
5459
|
}
|
|
5457
|
-
if (
|
|
5458
|
-
let e = u.value, t = Hc(
|
|
5459
|
-
|
|
5460
|
+
if (V.value) {
|
|
5461
|
+
let e = u.value, t = Hc(G.value, e);
|
|
5462
|
+
Te(U.value.some((e) => e !== null && !t.includes(e)));
|
|
5460
5463
|
return;
|
|
5461
5464
|
}
|
|
5462
5465
|
let e = Nc(t.value, u.value);
|
|
5463
|
-
|
|
5464
|
-
}, { deep: !0 }),
|
|
5465
|
-
|
|
5466
|
-
}),
|
|
5467
|
-
e && _.value && (C.value[
|
|
5468
|
-
}, { immediate: !0 }),
|
|
5469
|
-
|
|
5470
|
-
await
|
|
5471
|
-
}, 2e3) : await
|
|
5472
|
-
}), qe(() =>
|
|
5473
|
-
await
|
|
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) => {
|
|
5470
|
+
e && _.value && (C.value[G.value] = !0);
|
|
5471
|
+
}, { immediate: !0 }), H(() => te.value, async () => {
|
|
5472
|
+
E.value && (K.value ? setTimeout(async () => {
|
|
5473
|
+
await Oe(!0);
|
|
5474
|
+
}, 2e3) : await Oe(!0)), Te();
|
|
5475
|
+
}), qe(() => W.value, async () => {
|
|
5476
|
+
await Oe(!0, !0);
|
|
5474
5477
|
}, { debounce: 300 }), w(() => {
|
|
5475
|
-
j(
|
|
5478
|
+
j(G.value);
|
|
5476
5479
|
let e = cc(t.value);
|
|
5477
|
-
if (e.length && A(
|
|
5478
|
-
let e = J.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = J.value &&
|
|
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;
|
|
5479
5482
|
e && n && l(t.value, {
|
|
5480
5483
|
api: s.value,
|
|
5481
5484
|
filterModel: u.value ?? void 0
|
|
5482
5485
|
});
|
|
5483
5486
|
}
|
|
5484
|
-
J.value || $(t.value).metadataDisplayFields?.length &&
|
|
5487
|
+
J.value || $(t.value).metadataDisplayFields?.length && U.value.some((e) => Ie(e)) && Oe(!0, !0);
|
|
5485
5488
|
}), T(() => {
|
|
5486
|
-
M(
|
|
5489
|
+
M(G.value), D.value && !K.value && (J.value ? lt(we.value, { skipIfUnchanged: !0 }) : nt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
5487
5490
|
}), {
|
|
5488
|
-
selectedValues:
|
|
5489
|
-
filterValues:
|
|
5490
|
-
isLoading:
|
|
5491
|
-
isSeeMoreLoading:
|
|
5492
|
-
filterSearchText:
|
|
5493
|
-
rowsLoading:
|
|
5491
|
+
selectedValues: U,
|
|
5492
|
+
filterValues: ne,
|
|
5493
|
+
isLoading: re,
|
|
5494
|
+
isSeeMoreLoading: se,
|
|
5495
|
+
filterSearchText: W,
|
|
5496
|
+
rowsLoading: ee,
|
|
5494
5497
|
gridApi: s,
|
|
5495
|
-
filterField:
|
|
5496
|
-
filterType:
|
|
5497
|
-
filterDisplayName:
|
|
5498
|
-
isInFilterPanel:
|
|
5499
|
-
maxSelectableValues:
|
|
5500
|
-
isSingleSelect:
|
|
5501
|
-
selectionLimitReached:
|
|
5502
|
-
suggestedValues:
|
|
5503
|
-
displayedFilterValues:
|
|
5504
|
-
selectedFilterValues:
|
|
5505
|
-
showSearchBar:
|
|
5506
|
-
filterSearchPlaceholder:
|
|
5507
|
-
emptyFilterResultsRenderer:
|
|
5508
|
-
filterOptionsRenderer:
|
|
5509
|
-
filterHeaderRenderer:
|
|
5510
|
-
filterFooterRenderer:
|
|
5511
|
-
filterOptionsSortDescription:
|
|
5512
|
-
filterOptionsSortTooltip:
|
|
5513
|
-
totalOptionCount:
|
|
5514
|
-
hasMoreOptions:
|
|
5498
|
+
filterField: G,
|
|
5499
|
+
filterType: ie,
|
|
5500
|
+
filterDisplayName: ae,
|
|
5501
|
+
isInFilterPanel: K,
|
|
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,
|
|
5515
5518
|
isAggregate: J,
|
|
5516
|
-
cascadeSelectionState:
|
|
5519
|
+
cascadeSelectionState: we,
|
|
5517
5520
|
filterValueContext: h,
|
|
5518
|
-
formatDisplayValue:
|
|
5519
|
-
resolvedFilterValueContext:
|
|
5520
|
-
isUnresolvedMetadataValue:
|
|
5521
|
-
getLatestFilterValues:
|
|
5522
|
-
addSelectedValue:
|
|
5523
|
-
removeSelectedValue:
|
|
5524
|
-
handleDropdownOpen:
|
|
5525
|
-
handleDropdownClosed:
|
|
5526
|
-
handleSeeMore:
|
|
5527
|
-
handleCascadeSelectionState:
|
|
5528
|
-
getColDisplayNameForField:
|
|
5529
|
-
disableFilterValue:
|
|
5530
|
-
updateFilterModelWithSelectedValues:
|
|
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
|
|
5531
5534
|
};
|
|
5532
5535
|
}, il = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
5533
5536
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -5622,7 +5625,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5622
5625
|
v(() => {
|
|
5623
5626
|
c.value?.setAdvancedFilterModel(n);
|
|
5624
5627
|
}), h(new Set([e]));
|
|
5625
|
-
},
|
|
5628
|
+
}, L = () => {
|
|
5626
5629
|
if (!c.value) return;
|
|
5627
5630
|
let e = C.value.fields.filter((e) => !b.value.has(e));
|
|
5628
5631
|
if (g.value) {
|
|
@@ -5634,7 +5637,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5634
5637
|
n.size > 0 && (v(() => {
|
|
5635
5638
|
c.value?.setAdvancedFilterModel(t);
|
|
5636
5639
|
}), h(n));
|
|
5637
|
-
},
|
|
5640
|
+
}, R = () => {
|
|
5638
5641
|
if (!c.value) return;
|
|
5639
5642
|
if (g.value) {
|
|
5640
5643
|
for (let e of C.value.fields) _.value.delete(e);
|
|
@@ -5645,39 +5648,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5645
5648
|
v(() => {
|
|
5646
5649
|
c.value?.setAdvancedFilterModel(e);
|
|
5647
5650
|
}), h(t);
|
|
5648
|
-
}, R = () => {
|
|
5649
|
-
x.value = !1;
|
|
5650
5651
|
}, z = () => {
|
|
5652
|
+
x.value = !1;
|
|
5653
|
+
}, B = () => {
|
|
5651
5654
|
x.value ||= (A.value = S.value, D(), P(), !0);
|
|
5652
5655
|
};
|
|
5653
|
-
|
|
5656
|
+
H(f, () => {
|
|
5654
5657
|
if (!(g.value && x.value)) {
|
|
5655
5658
|
_.value.clear();
|
|
5656
5659
|
for (let e of C.value.fields) M(e) && _.value.add(e);
|
|
5657
5660
|
}
|
|
5658
5661
|
}, { immediate: !0 });
|
|
5659
|
-
let
|
|
5662
|
+
let ee = r(() => d.value), te = r(() => C.value.fields.map((e) => ({
|
|
5660
5663
|
field: e,
|
|
5661
5664
|
label: N(e),
|
|
5662
5665
|
isSelected: _.value.has(e),
|
|
5663
5666
|
isAvailable: !b.value.has(e)
|
|
5664
|
-
}))),
|
|
5667
|
+
}))), V = r(() => ee.value ? te.value.filter((e) => e.isSelected) : te.value);
|
|
5665
5668
|
T(() => {
|
|
5666
5669
|
x.value = !1, _.value.clear(), b.value.clear();
|
|
5667
5670
|
});
|
|
5668
|
-
let
|
|
5671
|
+
let re = r(() => _.value.size);
|
|
5669
5672
|
return n({
|
|
5670
5673
|
openForTest: () => {
|
|
5671
5674
|
P(), x.value = !0;
|
|
5672
5675
|
},
|
|
5673
5676
|
selectedValues: _
|
|
5674
|
-
}), (e, n) =>
|
|
5677
|
+
}), (e, n) => ne((E(), o("div", {
|
|
5675
5678
|
ref_key: "triggerWrapper",
|
|
5676
5679
|
ref: S,
|
|
5677
5680
|
style: { "padding-bottom": "4px" },
|
|
5678
5681
|
class: "pv-border-bottom",
|
|
5679
|
-
onMouseenter:
|
|
5680
|
-
onClick:
|
|
5682
|
+
onMouseenter: B,
|
|
5683
|
+
onClick: B
|
|
5681
5684
|
}, [u(za, {
|
|
5682
5685
|
config: {
|
|
5683
5686
|
variant: "icon",
|
|
@@ -5686,7 +5689,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5686
5689
|
id: C.value.label,
|
|
5687
5690
|
text: C.value.label,
|
|
5688
5691
|
"class-list": ["pv-menu-nested"],
|
|
5689
|
-
"secondary-text":
|
|
5692
|
+
"secondary-text": re.value || void 0
|
|
5690
5693
|
}, null, 8, [
|
|
5691
5694
|
"id",
|
|
5692
5695
|
"text",
|
|
@@ -5700,8 +5703,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5700
5703
|
...I(w)
|
|
5701
5704
|
}
|
|
5702
5705
|
}, {
|
|
5703
|
-
default:
|
|
5704
|
-
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", {
|
|
5705
5708
|
key: 0,
|
|
5706
5709
|
"data-active": e.isSelected ? "true" : null
|
|
5707
5710
|
}, [u(za, {
|
|
@@ -5723,29 +5726,29 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5723
5726
|
"disable-interactive": !0,
|
|
5724
5727
|
style: { width: "100%" }
|
|
5725
5728
|
}, {
|
|
5726
|
-
label:
|
|
5729
|
+
label: U(() => [u(za, {
|
|
5727
5730
|
config: { variant: "checkbox" },
|
|
5728
5731
|
id: e.field,
|
|
5729
5732
|
text: e.label,
|
|
5730
5733
|
disabled: !0,
|
|
5731
5734
|
"class-list": ["pv-chart-option pv-flex"]
|
|
5732
5735
|
}, null, 8, ["id", "text"])]),
|
|
5733
|
-
"tooltip-content":
|
|
5736
|
+
"tooltip-content": U(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
5734
5737
|
_: 2
|
|
5735
5738
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
5736
|
-
x.value &&
|
|
5739
|
+
x.value && ee.value ? (E(), o("div", cl, [u(St, { variant: "dark" })])) : a("", !0),
|
|
5737
5740
|
x.value ? (E(), i(Xi, {
|
|
5738
5741
|
key: 2,
|
|
5739
5742
|
class: "pv-border-top pv-inset-square-8",
|
|
5740
5743
|
style: { "padding-top": "8px" },
|
|
5741
5744
|
variant: "select-clear",
|
|
5742
|
-
disabled:
|
|
5743
|
-
onHandleSelectAll:
|
|
5744
|
-
onHandleClearAll:
|
|
5745
|
+
disabled: ee.value,
|
|
5746
|
+
onHandleSelectAll: L,
|
|
5747
|
+
onHandleClearAll: R
|
|
5745
5748
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
5746
5749
|
]),
|
|
5747
5750
|
_: 1
|
|
5748
|
-
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Xe), [
|
|
5751
|
+
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Xe), [z, { ignore: [".pv-popover"] }]]]);
|
|
5749
5752
|
}
|
|
5750
5753
|
}), ul = {
|
|
5751
5754
|
key: 0,
|
|
@@ -5806,13 +5809,13 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5806
5809
|
"handle-settings-icon"
|
|
5807
5810
|
],
|
|
5808
5811
|
setup(e, { emit: n }) {
|
|
5809
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, rowsLoading: A, gridApi: j, filterField: N, filterDisplayName:
|
|
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({
|
|
5810
5813
|
filterColDef: F(d, "filterColDef"),
|
|
5811
5814
|
filterStyle: F(d, "filterStyle"),
|
|
5812
5815
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
5813
5816
|
filterGroupStagedFields: x,
|
|
5814
5817
|
readOnly: F(d, "readOnly")
|
|
5815
|
-
}), { handleFocusUpdate: ye, isFocused: be, removeFocus: xe, isFocusable: q, canRemoveFocus:
|
|
5818
|
+
}), { handleFocusUpdate: ye, isFocused: be, removeFocus: xe, isFocusable: q, canRemoveFocus: J } = Fs(), Se = (e) => {
|
|
5816
5819
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
5817
5820
|
if (e.id.startsWith("__")) {
|
|
5818
5821
|
let t = e.id.slice(2).split("__");
|
|
@@ -5826,23 +5829,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5826
5829
|
tooltipText: (e) => {
|
|
5827
5830
|
let t = e.context?.colField || N.value;
|
|
5828
5831
|
if (!q([t])) return `Group by ${me(t)} to enable ${d.focusText}`;
|
|
5829
|
-
let n = be(_e.value ?
|
|
5830
|
-
return n && !
|
|
5832
|
+
let n = be(_e.value ? Se(e) : e.id, t);
|
|
5833
|
+
return n && !J() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
5831
5834
|
},
|
|
5832
5835
|
action: (e) => {
|
|
5833
5836
|
e && !C.value.includes(e.id) && le(e.id, e.context?.colField);
|
|
5834
5837
|
let t = e.context?.colField || N.value;
|
|
5835
|
-
ye(_e.value ?
|
|
5838
|
+
ye(_e.value ? Se(e) : e.id, t);
|
|
5836
5839
|
},
|
|
5837
5840
|
alwaysShow: (e) => {
|
|
5838
5841
|
let t = e.context?.colField || N.value;
|
|
5839
|
-
return be(_e.value ?
|
|
5842
|
+
return be(_e.value ? Se(e) : e.id, t);
|
|
5840
5843
|
}
|
|
5841
5844
|
};
|
|
5842
5845
|
}), we = (e) => {
|
|
5843
5846
|
if (!e) return null;
|
|
5844
5847
|
if (!_e.value) return e;
|
|
5845
|
-
let t =
|
|
5848
|
+
let t = oe(e);
|
|
5846
5849
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
5847
5850
|
if (e.startsWith("__")) {
|
|
5848
5851
|
let t = e.slice(2).split("__");
|
|
@@ -5851,8 +5854,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5851
5854
|
return e;
|
|
5852
5855
|
}, Y = (e) => {
|
|
5853
5856
|
ue(e);
|
|
5854
|
-
let t =
|
|
5855
|
-
be(n, t) &&
|
|
5857
|
+
let t = oe(e)?.colField || N.value, n = we(e);
|
|
5858
|
+
be(n, t) && J() && xe(n);
|
|
5856
5859
|
}, Te = m(gs, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
5857
5860
|
de(), ce(!0);
|
|
5858
5861
|
}, Oe = () => {
|
|
@@ -5860,12 +5863,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5860
5863
|
fe(), f("filter-closed");
|
|
5861
5864
|
});
|
|
5862
5865
|
}, ke = (e) => {
|
|
5863
|
-
let t =
|
|
5866
|
+
let t = oe(e)?.colField || N.value;
|
|
5864
5867
|
return be(we(e), t);
|
|
5865
5868
|
}, Ae = r(() => S.value > 0 ? !0 : _e.value ? ve.value.length > 0 : C.value.length > 0);
|
|
5866
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(
|
|
5867
|
-
label: I(
|
|
5868
|
-
showClear: !e.readOnly && (!ke(n) || I(
|
|
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, {
|
|
5870
|
+
label: I(K)(n) || "",
|
|
5871
|
+
showClear: !e.readOnly && (!ke(n) || I(J)()),
|
|
5869
5872
|
disabled: e.readOnly,
|
|
5870
5873
|
onHandleClose: (e) => Y(n)
|
|
5871
5874
|
}, null, 8, [
|
|
@@ -5874,35 +5877,35 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5874
5877
|
"disabled",
|
|
5875
5878
|
"onHandleClose"
|
|
5876
5879
|
])]))], 64))), 128))])) : a("", !0), u(I(Xa), {
|
|
5877
|
-
modelValue: I(
|
|
5878
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
5880
|
+
modelValue: I(ee),
|
|
5881
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(ee) ? ee.value = e : null,
|
|
5879
5882
|
readOnly: e.readOnly,
|
|
5880
5883
|
searchInput: I(D),
|
|
5881
5884
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
5882
5885
|
selectionState: I(ve),
|
|
5883
5886
|
"onUpdate:selectionState": r[3] ||= (e) => h(ve) ? ve.value = e : null,
|
|
5884
|
-
"data-horizontal-filter-field": I(
|
|
5885
|
-
label: I(
|
|
5887
|
+
"data-horizontal-filter-field": I(R) ? void 0 : I(N),
|
|
5888
|
+
label: I(R) ? "" : I(L),
|
|
5886
5889
|
highlightSearchText: !0,
|
|
5887
|
-
icon: I(
|
|
5888
|
-
variant: I(
|
|
5889
|
-
counterPosition: !I(
|
|
5890
|
-
showClear: !I(
|
|
5891
|
-
showSearchInput: I(
|
|
5892
|
-
searchPlaceholder: I(
|
|
5893
|
-
showDropdown: !I(
|
|
5894
|
-
overlayTrigger: I(
|
|
5895
|
-
options: I(
|
|
5896
|
-
optionsRenderer: I(
|
|
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),
|
|
5897
5900
|
optionsAction: Ce.value,
|
|
5898
5901
|
popoverCssProperties: {
|
|
5899
5902
|
maxHeight: "400px",
|
|
5900
|
-
maxWidth: I(
|
|
5903
|
+
maxWidth: I(R) ? "300px" : "400px",
|
|
5901
5904
|
overflowX: "auto",
|
|
5902
5905
|
width: "auto"
|
|
5903
5906
|
},
|
|
5904
|
-
disableClearIcon: !!I(
|
|
5905
|
-
disableDropdownIcon: !!I(
|
|
5907
|
+
disableClearIcon: !!I(R) || e.readOnly,
|
|
5908
|
+
disableDropdownIcon: !!I(R),
|
|
5906
5909
|
groupings: ["preferences", "suggestions"],
|
|
5907
5910
|
isLoading: I(w),
|
|
5908
5911
|
isSeeMoreLoading: I(T),
|
|
@@ -5922,21 +5925,21 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5922
5925
|
onDropdownClosed: Oe,
|
|
5923
5926
|
onSeeMore: I(pe)
|
|
5924
5927
|
}, c({
|
|
5925
|
-
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), {
|
|
5926
5929
|
variant: "dark",
|
|
5927
5930
|
size: "sm",
|
|
5928
5931
|
"use-teleport": !0
|
|
5929
5932
|
}, {
|
|
5930
|
-
trigger:
|
|
5933
|
+
trigger: U(() => [u(gn, {
|
|
5931
5934
|
size: "md",
|
|
5932
5935
|
variant: "ghost",
|
|
5933
|
-
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(
|
|
5936
|
+
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(L)),
|
|
5934
5937
|
"right-icon": "sliders-horizontal"
|
|
5935
5938
|
})]),
|
|
5936
|
-
content:
|
|
5939
|
+
content: U(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
5937
5940
|
_: 1
|
|
5938
5941
|
})])]),
|
|
5939
|
-
suggestions:
|
|
5942
|
+
suggestions: U(() => [s("div", pl, [u(I(bi), {
|
|
5940
5943
|
variant: "dark",
|
|
5941
5944
|
disableInteractive: !0,
|
|
5942
5945
|
position: "top-left",
|
|
@@ -5944,37 +5947,37 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5944
5947
|
"use-teleport": !0,
|
|
5945
5948
|
style: { "--max-width": "200px" }
|
|
5946
5949
|
}, c({
|
|
5947
|
-
trigger:
|
|
5950
|
+
trigger: U(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(ie) ? "suggested-title-label" : ""]) }, P(I(G)), 3)]),
|
|
5948
5951
|
_: 2
|
|
5949
|
-
}, [I(
|
|
5952
|
+
}, [I(ie) ? {
|
|
5950
5953
|
name: "content",
|
|
5951
|
-
fn:
|
|
5954
|
+
fn: U(() => [l(P(I(ie)), 1)]),
|
|
5952
5955
|
key: "0"
|
|
5953
5956
|
} : void 0]), 1024)])]),
|
|
5954
5957
|
_: 2
|
|
5955
5958
|
}, [
|
|
5956
|
-
I(
|
|
5959
|
+
I(re) || Ee.value ? {
|
|
5957
5960
|
name: "header",
|
|
5958
|
-
fn:
|
|
5961
|
+
fn: U((t) => [Ee.value ? (E(), i(ll, {
|
|
5959
5962
|
key: 0,
|
|
5960
5963
|
ref_key: "filterGroupMenuRef",
|
|
5961
5964
|
ref: g,
|
|
5962
5965
|
class: "pv-stack-8",
|
|
5963
5966
|
"filter-col-def": e.filterColDef
|
|
5964
|
-
}, null, 8, ["filter-col-def"])) : a("", !0), I(
|
|
5967
|
+
}, null, 8, ["filter-col-def"])) : a("", !0), I(re) ? (E(), i(M(I(re)), b(_({ key: 1 }, t)), null, 16)) : a("", !0)]),
|
|
5965
5968
|
key: "0"
|
|
5966
5969
|
} : void 0,
|
|
5967
|
-
I(
|
|
5970
|
+
I(H) ? {
|
|
5968
5971
|
name: "no-results",
|
|
5969
|
-
fn:
|
|
5972
|
+
fn: U((e) => [(E(), i(M(I(H)), b(p(e)), null, 16))]),
|
|
5970
5973
|
key: "1"
|
|
5971
5974
|
} : void 0,
|
|
5972
|
-
I(
|
|
5975
|
+
I(W) ? {
|
|
5973
5976
|
name: "footer",
|
|
5974
|
-
fn:
|
|
5977
|
+
fn: U((e) => [(E(), i(M(I(W)), b(p(e)), null, 16))]),
|
|
5975
5978
|
key: "2"
|
|
5976
5979
|
} : void 0
|
|
5977
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(
|
|
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), {
|
|
5978
5981
|
variant: "dark",
|
|
5979
5982
|
disableInteractive: !0,
|
|
5980
5983
|
position: "bottom-left",
|
|
@@ -5982,14 +5985,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5982
5985
|
"use-teleport": !0,
|
|
5983
5986
|
style: { "--max-width": "200px" }
|
|
5984
5987
|
}, c({
|
|
5985
|
-
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)])]),
|
|
5986
5989
|
_: 2
|
|
5987
|
-
}, [I(
|
|
5990
|
+
}, [I(ie) ? {
|
|
5988
5991
|
name: "content",
|
|
5989
|
-
fn:
|
|
5992
|
+
fn: U(() => [l(P(I(ie)), 1)]),
|
|
5990
5993
|
key: "0"
|
|
5991
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(
|
|
5992
|
-
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`,
|
|
5993
5996
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
5994
5997
|
style: {
|
|
5995
5998
|
"max-width": "100%",
|
|
@@ -5997,8 +6000,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5997
6000
|
}
|
|
5998
6001
|
}, [u(I(Pi), {
|
|
5999
6002
|
disabled: I(w),
|
|
6000
|
-
label: I(
|
|
6001
|
-
onHandleClick: (t) => I(le)(e, I(
|
|
6003
|
+
label: I(K)(e) || "",
|
|
6004
|
+
onHandleClick: (t) => I(le)(e, I(ae)(I(N), e)?.colField)
|
|
6002
6005
|
}, null, 8, [
|
|
6003
6006
|
"disabled",
|
|
6004
6007
|
"label",
|
|
@@ -6050,43 +6053,43 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6050
6053
|
let n = uc(e) ? cc(e) : [e.field || ""];
|
|
6051
6054
|
if (f.value) {
|
|
6052
6055
|
let e = /* @__PURE__ */ new Set();
|
|
6053
|
-
return
|
|
6056
|
+
return z(t, e), n.some((t) => e.has(t));
|
|
6054
6057
|
}
|
|
6055
6058
|
let r = t;
|
|
6056
6059
|
return n.some((e) => !!r[e]);
|
|
6057
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) => {
|
|
6058
6061
|
let n = uc(e), r = uc(t);
|
|
6059
6062
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
6060
|
-
})), F = r(() => N.value),
|
|
6063
|
+
})), F = r(() => N.value), L = r(() => {
|
|
6061
6064
|
let e = D.value?.trim().toLowerCase() || "";
|
|
6062
6065
|
return !e || e === "" ? F.value : c.value.filter((t) => {
|
|
6063
6066
|
let n = t.headerName?.toLowerCase() || t.field?.toLowerCase();
|
|
6064
6067
|
return n ? n.includes(e) : !1;
|
|
6065
6068
|
});
|
|
6066
|
-
}),
|
|
6069
|
+
}), R = r(() => {
|
|
6067
6070
|
let e = [...N.value].slice(0, p.maxHorizontalFilters);
|
|
6068
6071
|
return d.value ? [...e.slice(0, p.maxHorizontalFilters - 1), d.value] : e;
|
|
6069
|
-
}),
|
|
6072
|
+
}), z = (e, t) => {
|
|
6070
6073
|
if (!e || typeof e != "object") return;
|
|
6071
6074
|
let n = e;
|
|
6072
6075
|
if (n.filterType && n.filterType !== "join" && n.colId) {
|
|
6073
6076
|
t.add(n.colId);
|
|
6074
6077
|
return;
|
|
6075
6078
|
}
|
|
6076
|
-
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) =>
|
|
6077
|
-
},
|
|
6079
|
+
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => z(e, t));
|
|
6080
|
+
}, B = r(() => {
|
|
6078
6081
|
let e = _.value;
|
|
6079
6082
|
if (f.value && n.value) {
|
|
6080
6083
|
let t = /* @__PURE__ */ new Set();
|
|
6081
|
-
return
|
|
6084
|
+
return z(e, t), t.size;
|
|
6082
6085
|
}
|
|
6083
6086
|
let t = _.value || {};
|
|
6084
6087
|
return Object.keys(t).length;
|
|
6085
|
-
}),
|
|
6086
|
-
|
|
6087
|
-
},
|
|
6088
|
+
}), ee = O(!1), te = () => {
|
|
6089
|
+
ee.value = !0;
|
|
6090
|
+
}, V = () => {
|
|
6088
6091
|
if (n.value) {
|
|
6089
|
-
|
|
6092
|
+
ee.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
6090
6093
|
for (let e of F.value) {
|
|
6091
6094
|
let t = e.field;
|
|
6092
6095
|
if (!t) continue;
|
|
@@ -6098,17 +6101,17 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6098
6101
|
});
|
|
6099
6102
|
}
|
|
6100
6103
|
}
|
|
6101
|
-
}, { clearAllFocuses:
|
|
6102
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
6103
|
-
},
|
|
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 = () => {
|
|
6104
6107
|
w.value = !1, D.value = "";
|
|
6105
|
-
},
|
|
6106
|
-
b(), g.value = null,
|
|
6107
|
-
},
|
|
6108
|
-
b(),
|
|
6108
|
+
}, W = () => {
|
|
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();
|
|
6109
6112
|
};
|
|
6110
6113
|
return (e, r) => (E(), o(t, null, [s("div", bl, [
|
|
6111
|
-
(E(!0), o(t, null, k(
|
|
6114
|
+
(E(!0), o(t, null, k(R.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(yl, {
|
|
6112
6115
|
key: 0,
|
|
6113
6116
|
"enable-focus-view": p.enableFocusView,
|
|
6114
6117
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -6126,19 +6129,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6126
6129
|
s("div", xl, [p.enableVerticalPanel ? (E(), i(I(gn), {
|
|
6127
6130
|
key: 0,
|
|
6128
6131
|
label: "All Filters",
|
|
6129
|
-
onClick:
|
|
6132
|
+
onClick: V,
|
|
6130
6133
|
variant: "ghost",
|
|
6131
6134
|
"left-icon": "filter"
|
|
6132
|
-
})) : a("", !0),
|
|
6135
|
+
})) : a("", !0), B.value > 0 && !p.readOnly ? (E(), o("button", {
|
|
6133
6136
|
key: 1,
|
|
6134
6137
|
class: "pv-button-ghost",
|
|
6135
6138
|
onClick: r[1] ||= (e) => T.value = !0
|
|
6136
6139
|
}, [
|
|
6137
6140
|
u(I(ln), { name: "close" }),
|
|
6138
6141
|
r[13] ||= l(" Clear All Filters ", -1),
|
|
6139
|
-
|
|
6142
|
+
B.value > 0 ? (E(), i(I(pn), {
|
|
6140
6143
|
key: 0,
|
|
6141
|
-
value:
|
|
6144
|
+
value: B.value,
|
|
6142
6145
|
variant: "tertiary"
|
|
6143
6146
|
}, null, 8, ["value"])) : a("", !0)
|
|
6144
6147
|
])) : a("", !0)]),
|
|
@@ -6148,47 +6151,47 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6148
6151
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
6149
6152
|
class: "pv-drawer pv-surface",
|
|
6150
6153
|
"close-on-click-outside": !0,
|
|
6151
|
-
onClickOutside: r[10] ||= (e) =>
|
|
6154
|
+
onClickOutside: r[10] ||= (e) => G(),
|
|
6152
6155
|
style: {
|
|
6153
6156
|
"max-width": "450px",
|
|
6154
6157
|
"z-index": "10"
|
|
6155
6158
|
}
|
|
6156
6159
|
}, {
|
|
6157
|
-
header:
|
|
6160
|
+
header: U(() => [s("div", Sl, [s("p", Cl, "All Filters (" + P(F.value.length) + ")", 1), s("button", {
|
|
6158
6161
|
class: "pv-button-ghost",
|
|
6159
6162
|
"aria-label": "Close",
|
|
6160
|
-
onClick: r[2] ||= (e) =>
|
|
6163
|
+
onClick: r[2] ||= (e) => W()
|
|
6161
6164
|
}, [u(I(ln), { name: "close" })])]), u(I(zi), {
|
|
6162
6165
|
modelValue: D.value,
|
|
6163
6166
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
6164
6167
|
placeholder: "Search Filters"
|
|
6165
6168
|
}, null, 8, ["modelValue"])]),
|
|
6166
|
-
footer:
|
|
6169
|
+
footer: U(() => [s("div", kl, [p.readOnly ? (E(), i(I(gn), {
|
|
6167
6170
|
key: 1,
|
|
6168
6171
|
variant: "ghost",
|
|
6169
6172
|
label: "Close",
|
|
6170
|
-
onClick: r[8] ||= (e) =>
|
|
6173
|
+
onClick: r[8] ||= (e) => W()
|
|
6171
6174
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
6172
6175
|
class: "pv-button-ghost",
|
|
6173
|
-
onClick: r[5] ||= (e) =>
|
|
6176
|
+
onClick: r[5] ||= (e) => ne()
|
|
6174
6177
|
}, "Clear All"), s("div", Al, [u(I(gn), {
|
|
6175
6178
|
variant: "ghost",
|
|
6176
6179
|
label: "Cancel",
|
|
6177
|
-
onClick: r[6] ||= (e) =>
|
|
6178
|
-
}),
|
|
6180
|
+
onClick: r[6] ||= (e) => W()
|
|
6181
|
+
}), ee.value ? (E(), i(I(gn), {
|
|
6179
6182
|
key: 0,
|
|
6180
6183
|
variant: "primary",
|
|
6181
6184
|
label: "Apply",
|
|
6182
|
-
onClick: r[7] ||= (e) =>
|
|
6185
|
+
onClick: r[7] ||= (e) => G()
|
|
6183
6186
|
})) : (E(), i(I(gn), {
|
|
6184
6187
|
key: 1,
|
|
6185
6188
|
variant: "primary",
|
|
6186
6189
|
label: "No Changes",
|
|
6187
6190
|
disabled: ""
|
|
6188
6191
|
}))])], 64))])]),
|
|
6189
|
-
default:
|
|
6192
|
+
default: U(() => [s("div", wl, [s("div", Tl, [(E(!0), o(t, null, k(L.value, (t, c) => (E(), o("div", {
|
|
6190
6193
|
key: t.field,
|
|
6191
|
-
class: y([{ "pv-border-bottom": c <
|
|
6194
|
+
class: y([{ "pv-border-bottom": c < L.value.length - 1 }, "pv-stack-12"])
|
|
6192
6195
|
}, [s("details", El, [s("summary", Dl, [s("span", Ol, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(yl, {
|
|
6193
6196
|
key: 0,
|
|
6194
6197
|
"filter-style": "vertical",
|
|
@@ -6197,7 +6200,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6197
6200
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
6198
6201
|
"focus-text": p.focusText,
|
|
6199
6202
|
"read-only": p.readOnly,
|
|
6200
|
-
onFilterSelectionChanged:
|
|
6203
|
+
onFilterSelectionChanged: te,
|
|
6201
6204
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
6202
6205
|
}, null, 8, [
|
|
6203
6206
|
"enable-focus-view",
|
|
@@ -6214,8 +6217,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6214
6217
|
header: "Clear All Filters",
|
|
6215
6218
|
style: { top: "50%" }
|
|
6216
6219
|
}, {
|
|
6217
|
-
body:
|
|
6218
|
-
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), {
|
|
6219
6222
|
label: "Cancel",
|
|
6220
6223
|
variant: "secondary",
|
|
6221
6224
|
size: "lg",
|
|
@@ -6224,7 +6227,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6224
6227
|
label: "Clear All Filters",
|
|
6225
6228
|
variant: "primary",
|
|
6226
6229
|
size: "lg",
|
|
6227
|
-
onClick:
|
|
6230
|
+
onClick: ne
|
|
6228
6231
|
})])]),
|
|
6229
6232
|
_: 1
|
|
6230
6233
|
}, 8, ["modelValue"])], 64));
|
|
@@ -6263,7 +6266,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6263
6266
|
}, I = () => {
|
|
6264
6267
|
f.value && l.params.progressSort(!1);
|
|
6265
6268
|
};
|
|
6266
|
-
|
|
6269
|
+
H(D, (e) => {
|
|
6267
6270
|
if (!e) return;
|
|
6268
6271
|
let t = l.params.column.getAggFunc();
|
|
6269
6272
|
if (e.id === t) return;
|
|
@@ -6279,10 +6282,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6279
6282
|
}
|
|
6280
6283
|
F(l.params);
|
|
6281
6284
|
});
|
|
6282
|
-
function
|
|
6285
|
+
function L(e) {
|
|
6283
6286
|
return F(e), !0;
|
|
6284
6287
|
}
|
|
6285
|
-
return t({ refresh:
|
|
6288
|
+
return t({ refresh: L }), (e, t) => (E(), o("div", {
|
|
6286
6289
|
class: "ag-custom-header-cell pv-flex pv-full-width pv-space-between",
|
|
6287
6290
|
style: x(k.value),
|
|
6288
6291
|
onClick: I
|
|
@@ -6307,7 +6310,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6307
6310
|
variant: "ghost",
|
|
6308
6311
|
size: "lg",
|
|
6309
6312
|
label: p.value || "",
|
|
6310
|
-
onClick: t[1] ||=
|
|
6313
|
+
onClick: t[1] ||= re(() => {}, ["stop"])
|
|
6311
6314
|
}, null, 8, [
|
|
6312
6315
|
"modelValue",
|
|
6313
6316
|
"options",
|
|
@@ -6327,7 +6330,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6327
6330
|
variant: "ghost",
|
|
6328
6331
|
"left-icon": "menu",
|
|
6329
6332
|
ariaLabel: "Column menu",
|
|
6330
|
-
onClick:
|
|
6333
|
+
onClick: re(N, ["stop", "prevent"])
|
|
6331
6334
|
})], 4)])) : a("", !0)], 4));
|
|
6332
6335
|
}
|
|
6333
6336
|
}), [["__scopeId", "data-v-385ad98a"]]), Il = {
|
|
@@ -6396,7 +6399,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6396
6399
|
class: "pv-icon-24"
|
|
6397
6400
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Vl, [s("button", {
|
|
6398
6401
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
6399
|
-
onClick:
|
|
6402
|
+
onClick: re(i, ["prevent"]),
|
|
6400
6403
|
disabled: r.value
|
|
6401
6404
|
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Hl)])]));
|
|
6402
6405
|
}
|
|
@@ -6753,11 +6756,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6753
6756
|
let d = [
|
|
6754
6757
|
Te,
|
|
6755
6758
|
Ee,
|
|
6756
|
-
|
|
6759
|
+
ae,
|
|
6757
6760
|
De,
|
|
6758
|
-
|
|
6761
|
+
oe,
|
|
6759
6762
|
Oe,
|
|
6760
|
-
|
|
6763
|
+
se,
|
|
6761
6764
|
ce,
|
|
6762
6765
|
ke,
|
|
6763
6766
|
Ae,
|
|
@@ -6778,10 +6781,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6778
6781
|
ve,
|
|
6779
6782
|
ye,
|
|
6780
6783
|
Be,
|
|
6781
|
-
J,
|
|
6782
|
-
we,
|
|
6783
|
-
se,
|
|
6784
6784
|
Se,
|
|
6785
|
+
we,
|
|
6786
|
+
K,
|
|
6787
|
+
J,
|
|
6785
6788
|
he,
|
|
6786
6789
|
_e,
|
|
6787
6790
|
fe,
|
|
@@ -6799,11 +6802,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6799
6802
|
return Array.from(new Set([
|
|
6800
6803
|
...t,
|
|
6801
6804
|
...n?.queryColIds || [],
|
|
6802
|
-
...t.flatMap((e) =>
|
|
6805
|
+
...t.flatMap((e) => W.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
6803
6806
|
]));
|
|
6804
6807
|
}, M = (e, t) => {
|
|
6805
6808
|
if (Dc(e, t)) return !0;
|
|
6806
|
-
let n =
|
|
6809
|
+
let n = W.find((e) => lc(e) === t);
|
|
6807
6810
|
return !!n && j(n).some((t) => Dc(e, t));
|
|
6808
6811
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
6809
6812
|
if (!X.value) {
|
|
@@ -6874,7 +6877,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6874
6877
|
} : e.request.filterModel = s;
|
|
6875
6878
|
} else {
|
|
6876
6879
|
let t = e.request.filterModel;
|
|
6877
|
-
e.request.filterModel = Oc(
|
|
6880
|
+
e.request.filterModel = Oc(W, t, s);
|
|
6878
6881
|
}
|
|
6879
6882
|
e.success = (e) => {
|
|
6880
6883
|
if (Ue.value = !1, f.enableFocusView && lt.value.length > 0 && ct.value && e.rowData) {
|
|
@@ -6888,19 +6891,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6888
6891
|
}, e.fail = () => {
|
|
6889
6892
|
Ue.value = !1, n();
|
|
6890
6893
|
}, f.serverSideRowHandler?.(e);
|
|
6891
|
-
} } : null,
|
|
6894
|
+
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
6892
6895
|
let t = [], n = { ...Qe.value };
|
|
6893
6896
|
t = !He.value && pe ? Wc(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await it(e.colDef, {
|
|
6894
6897
|
api: e.api,
|
|
6895
6898
|
filterModel: n,
|
|
6896
6899
|
useStaged: !1
|
|
6897
6900
|
}), e.success([...t, ""]);
|
|
6898
|
-
} : null,
|
|
6901
|
+
} : null, R = (e) => {
|
|
6899
6902
|
let t = e.node, n = e.column?.getColId();
|
|
6900
6903
|
return !t.group || !n ? !1 : ft.value.some((e) => {
|
|
6901
6904
|
if (e.field === n) return !0;
|
|
6902
6905
|
});
|
|
6903
|
-
},
|
|
6906
|
+
}, z = (() => {
|
|
6904
6907
|
let e = {
|
|
6905
6908
|
suppressHeaderFilterButton: !f.enableInlineFilters,
|
|
6906
6909
|
editable: !1,
|
|
@@ -6914,7 +6917,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6914
6917
|
tooltipComponent: $l,
|
|
6915
6918
|
cellClass: (e) => xt(e.column) ? "" : oc(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
6916
6919
|
cellRendererSelector: (e) => {
|
|
6917
|
-
if (
|
|
6920
|
+
if (R(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
6918
6921
|
component: hc,
|
|
6919
6922
|
params: e
|
|
6920
6923
|
};
|
|
@@ -6928,11 +6931,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6928
6931
|
}
|
|
6929
6932
|
};
|
|
6930
6933
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
6931
|
-
})(),
|
|
6934
|
+
})(), B = O(void 0), ee = r(() => (e) => {
|
|
6932
6935
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
6933
6936
|
let t = [];
|
|
6934
6937
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
6935
|
-
}),
|
|
6938
|
+
}), te = {
|
|
6936
6939
|
name: "Column Filter",
|
|
6937
6940
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
6938
6941
|
action: function(e) {
|
|
@@ -6944,7 +6947,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6944
6947
|
}));
|
|
6945
6948
|
}
|
|
6946
6949
|
}
|
|
6947
|
-
},
|
|
6950
|
+
}, re = (e, t) => {
|
|
6948
6951
|
if (!e) return null;
|
|
6949
6952
|
let n = { ...e }, r = t, i = cc(e);
|
|
6950
6953
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -6958,16 +6961,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6958
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 || "";
|
|
6959
6962
|
}
|
|
6960
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;
|
|
6961
|
-
},
|
|
6964
|
+
}, W = f.colDefs?.map((e) => {
|
|
6962
6965
|
let t = { ...e };
|
|
6963
|
-
F &&
|
|
6966
|
+
F && L && kc(e) && (t = Ac(e, L));
|
|
6964
6967
|
let n = e.context;
|
|
6965
|
-
return n && (t =
|
|
6966
|
-
}).filter((e) => e != null) || [],
|
|
6967
|
-
for (let e of
|
|
6968
|
-
let pe = Sc(f.initialGridState,
|
|
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.`);
|
|
6971
|
+
let pe = Sc(f.initialGridState, W, f.enableAdvancedFilter), ge = O(null), Y = O([]), He = m(ns, O(!1)), Ue = O(!1), We = r(() => {
|
|
6969
6972
|
if (Y.value.length > 0) {
|
|
6970
|
-
let e = Y.value[0], t =
|
|
6973
|
+
let e = Y.value[0], t = W.find((t) => t.field === e), n = Qe.value, r = !n;
|
|
6971
6974
|
if (!r && Xc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
6972
6975
|
}
|
|
6973
6976
|
return null;
|
|
@@ -6988,7 +6991,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6988
6991
|
}) ?? e(t.field) : e(t.field);
|
|
6989
6992
|
});
|
|
6990
6993
|
}
|
|
6991
|
-
ot.value = f.tableSearchHandler, et.value = f.initialFilterValueMap || {}, nt.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), rt.value = f.initialFilterValueSelectedMetadataMap || {}, Ye.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, Ye.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, Ye.filterModelType.value = f.enableAdvancedFilter ? "advanced" : "regular",
|
|
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) => {
|
|
6992
6995
|
Ye.filterModelType.value = e ? "advanced" : "regular";
|
|
6993
6996
|
}), qe([et, rt], () => {
|
|
6994
6997
|
T("filter-metadata-changed", {
|
|
@@ -6999,22 +7002,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6999
7002
|
deep: !0,
|
|
7000
7003
|
debounce: 250
|
|
7001
7004
|
});
|
|
7002
|
-
let st = O(null), ct = r(() => Ze?.computedFocusType.value || null), lt = r(() => Ze?.computedFocuses.value || []), ut = r(() =>
|
|
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);
|
|
7003
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));
|
|
7004
7007
|
let _t = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !lt.value.length && !ct.value ? f.rowData : nc(f.rowData, ct.value, lt.value));
|
|
7005
|
-
|
|
7008
|
+
H(() => lt.value, (e) => {
|
|
7006
7009
|
T("focus-update", {
|
|
7007
7010
|
filterField: ct.value,
|
|
7008
7011
|
focuses: e
|
|
7009
7012
|
});
|
|
7010
|
-
}),
|
|
7013
|
+
}), H(k, (e) => {
|
|
7011
7014
|
if (!Z.value) return;
|
|
7012
|
-
let t =
|
|
7015
|
+
let t = W.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
7013
7016
|
t.length > 0 && Z.value.setColumnsVisible(t, e);
|
|
7014
7017
|
});
|
|
7015
7018
|
let vt = (e) => {
|
|
7016
7019
|
Z.value = e.api;
|
|
7017
|
-
let t = Y.value.find((e) => !
|
|
7020
|
+
let t = Y.value.find((e) => !W.find((t) => t.field === e)?.hide), n = !t && Y.value.length > 0 ? W.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
7018
7021
|
if (f.hideAllRowGroupedColumns && Y.value.forEach((e) => i.push(e)), r) {
|
|
7019
7022
|
let t = e.api.getColumn(r);
|
|
7020
7023
|
pt.value = t, i.push(r), Wt(t?.getColDef());
|
|
@@ -7129,7 +7132,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7129
7132
|
v(() => {
|
|
7130
7133
|
let t = pt.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
7131
7134
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
7132
|
-
let t =
|
|
7135
|
+
let t = W.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
7133
7136
|
t && (i = e.api.getColumn(t));
|
|
7134
7137
|
}
|
|
7135
7138
|
i ? (pt.value = i, Wt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (pt.value = null, Wt(null));
|
|
@@ -7209,14 +7212,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7209
7212
|
S(() => {
|
|
7210
7213
|
Zt.value = document.querySelector("body");
|
|
7211
7214
|
let e = Array.isArray(f.rowData) && f.rowData.length > 0, t = typeof f.serverSideRowHandler == "function", n = typeof f.filterValuesSetHandler == "function";
|
|
7212
|
-
(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) => {
|
|
7213
7216
|
let t = [
|
|
7214
7217
|
"sortAscending",
|
|
7215
7218
|
"sortDescending",
|
|
7216
7219
|
"sortUnSort",
|
|
7217
7220
|
"rowUnGroup"
|
|
7218
7221
|
], n = e.column && xt(e.column) ? pt.value : e.column;
|
|
7219
|
-
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);
|
|
7220
7223
|
}, pe && (Qe.value = (f.enableAdvancedFilter ? pe.filter?.advancedFilterModel : pe.filter?.filterModel) || null, Y.value = pe.rowGroup?.groupColIds || []);
|
|
7221
7224
|
});
|
|
7222
7225
|
let qt = (e) => {
|
|
@@ -7225,9 +7228,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7225
7228
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
7226
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);
|
|
7227
7230
|
};
|
|
7228
|
-
|
|
7231
|
+
H(() => f.initialGridState, () => {
|
|
7229
7232
|
if (f.initialGridState) {
|
|
7230
|
-
let e = Sc(f.initialGridState,
|
|
7233
|
+
let e = Sc(f.initialGridState, W, f.enableAdvancedFilter);
|
|
7231
7234
|
e && qt(e);
|
|
7232
7235
|
}
|
|
7233
7236
|
}, { deep: !0 });
|
|
@@ -7251,16 +7254,16 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7251
7254
|
"--flex-justify": "flex-end"
|
|
7252
7255
|
}
|
|
7253
7256
|
}, {
|
|
7254
|
-
trigger:
|
|
7257
|
+
trigger: U(() => [u(I(gn), {
|
|
7255
7258
|
"left-icon": "flask-conical",
|
|
7256
7259
|
ariaLabel: "Toggle dev mode",
|
|
7257
7260
|
variant: k.value ? "primary" : "secondary",
|
|
7258
7261
|
onClick: r[0] ||= (e) => k.value = !k.value
|
|
7259
7262
|
}, null, 8, ["variant"])]),
|
|
7260
|
-
content:
|
|
7263
|
+
content: U(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
7261
7264
|
_: 1
|
|
7262
7265
|
})) : a("", !0),
|
|
7263
|
-
|
|
7266
|
+
ne(s("div", eu, [s("div", tu, [(E(), i(n, {
|
|
7264
7267
|
to: e.filterTeleportLocation,
|
|
7265
7268
|
disabled: !e.filterTeleportLocation
|
|
7266
7269
|
}, [ut.value.length > 0 && !f.enableInlineFilters ? (E(), i(Ml, {
|
|
@@ -7288,12 +7291,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7288
7291
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Ul, {
|
|
7289
7292
|
key: 1,
|
|
7290
7293
|
getCsvData: Tt
|
|
7291
|
-
})) : a("", !0)])])], 512), [[
|
|
7292
|
-
|
|
7294
|
+
})) : a("", !0)])])], 512), [[V, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
7295
|
+
ne(s("div", {
|
|
7293
7296
|
ref_key: "advancedFilterParentElement",
|
|
7294
7297
|
ref: Qt,
|
|
7295
7298
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
7296
|
-
}, null, 2), [[
|
|
7299
|
+
}, null, 2), [[V, k.value && e.enableAdvancedFilter]]),
|
|
7297
7300
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
7298
7301
|
key: 1,
|
|
7299
7302
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
@@ -7315,7 +7318,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7315
7318
|
"min-height": "0",
|
|
7316
7319
|
"overflow-x": "hidden"
|
|
7317
7320
|
}
|
|
7318
|
-
}, [u(I(
|
|
7321
|
+
}, [u(I(ie), _({
|
|
7319
7322
|
ref: "gridRef",
|
|
7320
7323
|
class: ["pv-data-table", I(b)],
|
|
7321
7324
|
style: [{
|
|
@@ -7344,12 +7347,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7344
7347
|
onUndoStarted: r[10] ||= (e) => T("undo-started", e),
|
|
7345
7348
|
aggFuncs: Kt,
|
|
7346
7349
|
autoGroupColumnDef: Ut.value,
|
|
7347
|
-
columnDefs: I(
|
|
7350
|
+
columnDefs: I(W),
|
|
7348
7351
|
debug: e.debugMode,
|
|
7349
|
-
defaultColDef: I(
|
|
7352
|
+
defaultColDef: I(z),
|
|
7350
7353
|
getChildCount: zt,
|
|
7351
|
-
getContextMenuItems:
|
|
7352
|
-
getMainMenuItems:
|
|
7354
|
+
getContextMenuItems: ee.value,
|
|
7355
|
+
getMainMenuItems: B.value,
|
|
7353
7356
|
getRowStyle: Gt,
|
|
7354
7357
|
groupDefaultExpanded: Xt.value,
|
|
7355
7358
|
groupDisplayType: "singleColumn",
|
|
@@ -7435,7 +7438,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7435
7438
|
},
|
|
7436
7439
|
useTeleport: !0
|
|
7437
7440
|
}), m = O(!1), h = O(!1), g = O(null);
|
|
7438
|
-
|
|
7441
|
+
H(g, (e) => {
|
|
7439
7442
|
e && (p.value = e);
|
|
7440
7443
|
});
|
|
7441
7444
|
let _ = r(() => (i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => ({
|
|
@@ -7443,7 +7446,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7443
7446
|
text: e.title,
|
|
7444
7447
|
context: { rightIcon: e.icon }
|
|
7445
7448
|
}))), v = r(() => _.value.length > 0), b = O((i.tableConfigOptions?.tableOverlayOptions ?? []).map((e) => e.field));
|
|
7446
|
-
|
|
7449
|
+
H(b, (e) => {
|
|
7447
7450
|
c("table-overlay-change", e);
|
|
7448
7451
|
}, { immediate: !0 });
|
|
7449
7452
|
let x = () => {
|
|
@@ -7453,7 +7456,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7453
7456
|
}, C = () => {
|
|
7454
7457
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
7455
7458
|
};
|
|
7456
|
-
return (n, r) => (E(), o(t, null, [
|
|
7459
|
+
return (n, r) => (E(), o(t, null, [ne((E(), o("div", uu, [u(ia, {
|
|
7457
7460
|
open: m.value,
|
|
7458
7461
|
label: "Table Configuration",
|
|
7459
7462
|
icon: "settings",
|
|
@@ -7468,7 +7471,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7468
7471
|
alignment: "right",
|
|
7469
7472
|
isList: !0
|
|
7470
7473
|
}, {
|
|
7471
|
-
default:
|
|
7474
|
+
default: U(() => [r[3] ||= s("div", { class: "pv-border-bottom" }, [s("p", {
|
|
7472
7475
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
7473
7476
|
style: {
|
|
7474
7477
|
"padding-top": "4px",
|
|
@@ -7507,7 +7510,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7507
7510
|
},
|
|
7508
7511
|
isList: !0
|
|
7509
7512
|
}, {
|
|
7510
|
-
default:
|
|
7513
|
+
default: U(() => [s("ul", mu, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(za, {
|
|
7511
7514
|
id: e.id,
|
|
7512
7515
|
config: {
|
|
7513
7516
|
variant: "checkbox",
|
|
@@ -7553,7 +7556,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7553
7556
|
}),
|
|
7554
7557
|
emits: ["update:modelValue"],
|
|
7555
7558
|
setup(e) {
|
|
7556
|
-
let n = e, c =
|
|
7559
|
+
let n = e, c = R(e, "modelValue"), l = {
|
|
7557
7560
|
id: Tu,
|
|
7558
7561
|
text: "",
|
|
7559
7562
|
disabled: !0
|
|
@@ -7570,7 +7573,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
7570
7573
|
l,
|
|
7571
7574
|
...n.options.filter((t) => !e.has(t.id))
|
|
7572
7575
|
];
|
|
7573
|
-
}), m =
|
|
7576
|
+
}), m = B("sortableListRef"), h = B("containerRef"), g = null, _ = null, v = () => {
|
|
7574
7577
|
if (!m.value) return;
|
|
7575
7578
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Tu);
|
|
7576
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);
|
|
@@ -7787,12 +7790,12 @@ var Fu = {
|
|
|
7787
7790
|
disableInteractive: !0,
|
|
7788
7791
|
style: { "pointer-events": "auto" }
|
|
7789
7792
|
}, {
|
|
7790
|
-
trigger:
|
|
7793
|
+
trigger: U(() => [u(I(ln), {
|
|
7791
7794
|
size: 12,
|
|
7792
7795
|
name: "info-circle",
|
|
7793
7796
|
class: "pv-text-subdued"
|
|
7794
7797
|
})]),
|
|
7795
|
-
content:
|
|
7798
|
+
content: U(() => [s("div", Lu, P(e.context.description), 1)]),
|
|
7796
7799
|
_: 1
|
|
7797
7800
|
})) : a("", !0)]));
|
|
7798
7801
|
}
|
|
@@ -7830,21 +7833,21 @@ var Fu = {
|
|
|
7830
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(() => {
|
|
7831
7834
|
let e = b.value?.id ?? "";
|
|
7832
7835
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
7833
|
-
}), 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) => ({
|
|
7834
7837
|
id: e.id,
|
|
7835
7838
|
text: e.label,
|
|
7836
7839
|
disabled: e.disabled,
|
|
7837
7840
|
context: e.disabledReason ? { description: e.disabledReason } : void 0
|
|
7838
|
-
}))),
|
|
7839
|
-
|
|
7841
|
+
}))), ee = (e) => {
|
|
7842
|
+
R.value = new Set(e.map((e) => e.id));
|
|
7840
7843
|
};
|
|
7841
|
-
|
|
7844
|
+
H(j, (e) => {
|
|
7842
7845
|
e && F.value && (F.value = void 0);
|
|
7843
7846
|
}, { immediate: !0 });
|
|
7844
|
-
let
|
|
7847
|
+
let te = m(os, O("")), V = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
7845
7848
|
label: e.label,
|
|
7846
7849
|
value: e.value
|
|
7847
|
-
})) : []),
|
|
7850
|
+
})) : []), re = r(() => {
|
|
7848
7851
|
if (b.value) return (T.value.length > 1 ? [
|
|
7849
7852
|
"bar_stacked",
|
|
7850
7853
|
"line",
|
|
@@ -7857,7 +7860,7 @@ var Fu = {
|
|
|
7857
7860
|
"area"
|
|
7858
7861
|
]).includes(b.value?.id);
|
|
7859
7862
|
});
|
|
7860
|
-
|
|
7863
|
+
H(S, (e) => {
|
|
7861
7864
|
if (!b.value) return;
|
|
7862
7865
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
7863
7866
|
if (r) {
|
|
@@ -7873,34 +7876,34 @@ var Fu = {
|
|
|
7873
7876
|
}
|
|
7874
7877
|
b.value = e[0];
|
|
7875
7878
|
});
|
|
7876
|
-
function
|
|
7879
|
+
function W(e) {
|
|
7877
7880
|
return !!(e.context && typeof e.context == "object" && "description" in e.context);
|
|
7878
7881
|
}
|
|
7879
|
-
let
|
|
7882
|
+
let G = r(() => N.value.map((e) => ({
|
|
7880
7883
|
id: e.value,
|
|
7881
7884
|
text: e.label,
|
|
7882
7885
|
context: e.description ? { description: e.description } : void 0
|
|
7883
|
-
}))),
|
|
7886
|
+
}))), ie = r(() => L.value.map((e) => ({
|
|
7884
7887
|
id: e.value,
|
|
7885
7888
|
text: e.label
|
|
7886
|
-
}))),
|
|
7889
|
+
}))), ae = r(() => D.value.map((e) => ({
|
|
7887
7890
|
id: e.field || "",
|
|
7888
7891
|
text: e.headerName || e.field || "",
|
|
7889
7892
|
icon: Ks(e.context?.dataType || null) || "circle-chevron-down"
|
|
7890
|
-
}))),
|
|
7891
|
-
get: () => T.value.map((e) =>
|
|
7893
|
+
}))), K = r({
|
|
7894
|
+
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
7892
7895
|
set: (e) => {
|
|
7893
7896
|
T.value = e.map((e) => e.id);
|
|
7894
7897
|
}
|
|
7895
|
-
}),
|
|
7898
|
+
}), oe = r(() => {
|
|
7896
7899
|
let e = [], t = {
|
|
7897
7900
|
value: "y-axis",
|
|
7898
7901
|
label: "Y Axis",
|
|
7899
7902
|
prefixLabel: "Y Axis",
|
|
7900
7903
|
icon: "chart-bar-decreasing",
|
|
7901
7904
|
allowDeselect: !1,
|
|
7902
|
-
availableOptions:
|
|
7903
|
-
currentOption:
|
|
7905
|
+
availableOptions: G.value,
|
|
7906
|
+
currentOption: G.value.find((e) => e.id === M.value),
|
|
7904
7907
|
updateSelectedOption: (e) => {
|
|
7905
7908
|
M && e !== M.value && (M.value = e);
|
|
7906
7909
|
}
|
|
@@ -7910,12 +7913,12 @@ var Fu = {
|
|
|
7910
7913
|
label: "X Axis",
|
|
7911
7914
|
icon: "align-end-horizontal",
|
|
7912
7915
|
allowDeselect: !1,
|
|
7913
|
-
availableOptions:
|
|
7916
|
+
availableOptions: ae.value,
|
|
7914
7917
|
...i ? {
|
|
7915
|
-
activeOptions:
|
|
7918
|
+
activeOptions: K,
|
|
7916
7919
|
activeOptionLimit: n.rowGroupLimit
|
|
7917
7920
|
} : {
|
|
7918
|
-
currentOption:
|
|
7921
|
+
currentOption: ae.value.find((e) => e.id === T.value[0]),
|
|
7919
7922
|
updateSelectedOption: (e) => {
|
|
7920
7923
|
T.value = e ? [e] : [];
|
|
7921
7924
|
}
|
|
@@ -7927,7 +7930,7 @@ var Fu = {
|
|
|
7927
7930
|
allowDeselect: !0,
|
|
7928
7931
|
availableOptions: w.value,
|
|
7929
7932
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
7930
|
-
disabled: !
|
|
7933
|
+
disabled: !re.value,
|
|
7931
7934
|
disabledReason: "Sorting is not available for this chart type",
|
|
7932
7935
|
updateSelectedOption: (e) => {
|
|
7933
7936
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -7949,7 +7952,7 @@ var Fu = {
|
|
|
7949
7952
|
t && b && (b.value = t);
|
|
7950
7953
|
}
|
|
7951
7954
|
};
|
|
7952
|
-
if (
|
|
7955
|
+
if (G.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && ie.value.length > 0) {
|
|
7953
7956
|
let t = {
|
|
7954
7957
|
value: "secondary-y-axis",
|
|
7955
7958
|
label: "Metric Overlay",
|
|
@@ -7958,15 +7961,15 @@ var Fu = {
|
|
|
7958
7961
|
allowDeselect: !0,
|
|
7959
7962
|
disabled: j.value,
|
|
7960
7963
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
7961
|
-
availableOptions:
|
|
7962
|
-
currentOption:
|
|
7964
|
+
availableOptions: ie.value,
|
|
7965
|
+
currentOption: ie.value.find((e) => e.id === F?.value),
|
|
7963
7966
|
updateSelectedOption: (e) => {
|
|
7964
7967
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
7965
7968
|
}
|
|
7966
7969
|
};
|
|
7967
7970
|
t && e.push(t);
|
|
7968
|
-
} else if (
|
|
7969
|
-
let t =
|
|
7971
|
+
} else if (z.value.length > 0) {
|
|
7972
|
+
let t = z.value.map((e) => ({
|
|
7970
7973
|
id: e.id,
|
|
7971
7974
|
text: e.label,
|
|
7972
7975
|
disabled: e.disabled,
|
|
@@ -7979,33 +7982,33 @@ var Fu = {
|
|
|
7979
7982
|
allowDeselect: !0,
|
|
7980
7983
|
isMultiSelect: !0,
|
|
7981
7984
|
availableOptions: t,
|
|
7982
|
-
activeOptionIds:
|
|
7983
|
-
activeOptions:
|
|
7984
|
-
currentOption: t.find((e) =>
|
|
7985
|
-
updateSelectedOptions:
|
|
7985
|
+
activeOptionIds: R.value,
|
|
7986
|
+
activeOptions: B,
|
|
7987
|
+
currentOption: t.find((e) => R.value.has(e.id)),
|
|
7988
|
+
updateSelectedOptions: ee
|
|
7986
7989
|
};
|
|
7987
7990
|
n && e.push(n);
|
|
7988
7991
|
}
|
|
7989
7992
|
let c = i ? 2 : 1;
|
|
7990
|
-
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);
|
|
7991
7994
|
});
|
|
7992
|
-
|
|
7995
|
+
H(v, (e) => {
|
|
7993
7996
|
e && (p.value = e);
|
|
7994
7997
|
});
|
|
7995
|
-
let
|
|
7996
|
-
let t =
|
|
7998
|
+
let se = r(() => _.value && oe.value.find((e) => e.value === _.value) || null), ce = (e) => {
|
|
7999
|
+
let t = se.value;
|
|
7997
8000
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
7998
|
-
}, le = (e) =>
|
|
8001
|
+
}, le = (e) => se.value?.isMultiSelect ? null : ce(e), ue = (e) => se.value?.isMultiSelect ? {
|
|
7999
8002
|
variant: "checkbox",
|
|
8000
8003
|
renderer: Ru
|
|
8001
|
-
} :
|
|
8004
|
+
} : W(e) ? { renderer: Ru } : { variant: "icon" }, de = (e) => {
|
|
8002
8005
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
8003
8006
|
}, fe = () => {
|
|
8004
8007
|
g.value = !1, _.value = void 0;
|
|
8005
8008
|
}, pe = () => {
|
|
8006
8009
|
_.value = void 0;
|
|
8007
8010
|
};
|
|
8008
|
-
return (n, r) => (E(), o(t, null, [s("div", zu, [s("div", null, [
|
|
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, {
|
|
8009
8012
|
open: g.value,
|
|
8010
8013
|
label: "Chart Configuration",
|
|
8011
8014
|
icon: "chart-area",
|
|
@@ -8020,13 +8023,13 @@ var Fu = {
|
|
|
8020
8023
|
},
|
|
8021
8024
|
isList: !0
|
|
8022
8025
|
}, {
|
|
8023
|
-
default:
|
|
8026
|
+
default: U(() => [r[4] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
8024
8027
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
8025
8028
|
style: {
|
|
8026
8029
|
"padding-top": "4px",
|
|
8027
8030
|
"padding-bottom": "12px"
|
|
8028
8031
|
}
|
|
8029
|
-
}, " Chart Configuration ")], -1), s("ul", Vu, [(E(!0), o(t, null, k(
|
|
8032
|
+
}, " Chart Configuration ")], -1), s("ul", Vu, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o("li", {
|
|
8030
8033
|
id: `pv-chart-config-${e.value}`,
|
|
8031
8034
|
key: e.value,
|
|
8032
8035
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -8039,7 +8042,7 @@ var Fu = {
|
|
|
8039
8042
|
style: { width: "100%" },
|
|
8040
8043
|
variant: "white"
|
|
8041
8044
|
}, c({
|
|
8042
|
-
trigger:
|
|
8045
|
+
trigger: U(() => [u(za, {
|
|
8043
8046
|
config: { variant: "icon" },
|
|
8044
8047
|
disabled: e.disabled,
|
|
8045
8048
|
id: e.value,
|
|
@@ -8056,7 +8059,7 @@ var Fu = {
|
|
|
8056
8059
|
_: 2
|
|
8057
8060
|
}, [e.disabled && e.disabledReason ? {
|
|
8058
8061
|
name: "content",
|
|
8059
|
-
fn:
|
|
8062
|
+
fn: U(() => [s("div", Uu, P(e.disabledReason), 1)]),
|
|
8060
8063
|
key: "0"
|
|
8061
8064
|
} : void 0]), 1024)], 40, Hu))), 128))])]),
|
|
8062
8065
|
_: 1
|
|
@@ -8065,10 +8068,10 @@ var Fu = {
|
|
|
8065
8068
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
8066
8069
|
}, [e.chartFilter ? (E(), i(xi, {
|
|
8067
8070
|
key: 0,
|
|
8068
|
-
options:
|
|
8069
|
-
modelValue: I(
|
|
8070
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
8071
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", Wu, [(E(!0), o(t, null, k(
|
|
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, {
|
|
8072
8075
|
key: 0,
|
|
8073
8076
|
label: e.label,
|
|
8074
8077
|
prefixLabel: e.prefixLabel,
|
|
@@ -8116,23 +8119,23 @@ var Fu = {
|
|
|
8116
8119
|
},
|
|
8117
8120
|
isList: !0
|
|
8118
8121
|
}, {
|
|
8119
|
-
default:
|
|
8122
|
+
default: U(() => [se.value ? (E(), o(t, { key: 0 }, [se.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
8120
8123
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
8121
8124
|
style: {
|
|
8122
8125
|
"padding-left": "2px",
|
|
8123
8126
|
"padding-bottom": "6px"
|
|
8124
8127
|
}
|
|
8125
8128
|
}, " Viewing ", -1), u(Du, {
|
|
8126
|
-
modelValue:
|
|
8127
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
8128
|
-
options:
|
|
8129
|
-
activeOptionLimit:
|
|
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,
|
|
8130
8133
|
placeholderText: "Add to X Axis"
|
|
8131
8134
|
}, null, 8, [
|
|
8132
8135
|
"modelValue",
|
|
8133
8136
|
"options",
|
|
8134
8137
|
"activeOptionLimit"
|
|
8135
|
-
])], 64)) : (E(), o("ul", Gu, [(E(!0), o(t, null, k(
|
|
8138
|
+
])], 64)) : (E(), o("ul", Gu, [(E(!0), o(t, null, k(se.value.availableOptions, (e) => (E(), o("li", {
|
|
8136
8139
|
key: e.id,
|
|
8137
8140
|
"data-active": le(e)
|
|
8138
8141
|
}, [u(za, {
|
|
@@ -8142,11 +8145,11 @@ var Fu = {
|
|
|
8142
8145
|
icon: e.icon,
|
|
8143
8146
|
context: e.context,
|
|
8144
8147
|
disabled: e.disabled,
|
|
8145
|
-
selectedIds:
|
|
8148
|
+
selectedIds: se.value.isMultiSelect ? [...I(R)] : [],
|
|
8146
8149
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
8147
|
-
|
|
8150
|
+
se.value?.updateSelectedOptions?.([...se.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
8148
8151
|
},
|
|
8149
|
-
onHandleSelected: (t) =>
|
|
8152
|
+
onHandleSelected: (t) => se.value.updateSelectedOption?.(e.id),
|
|
8150
8153
|
"class-list": ["pv-chart-option pv-flex"]
|
|
8151
8154
|
}, null, 8, [
|
|
8152
8155
|
"id",
|
|
@@ -8438,7 +8441,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8438
8441
|
description: n.context?.chartSeriesDescription
|
|
8439
8442
|
};
|
|
8440
8443
|
});
|
|
8441
|
-
}),
|
|
8444
|
+
}), L = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8442
8445
|
let t = $(e);
|
|
8443
8446
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
8444
8447
|
}).map((e) => {
|
|
@@ -8450,7 +8453,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8450
8453
|
dataType: n.context?.dataType,
|
|
8451
8454
|
tooltipRenderer: n.context?.customTooltipRenderer
|
|
8452
8455
|
};
|
|
8453
|
-
})),
|
|
8456
|
+
})), R = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
8454
8457
|
let t = $(e);
|
|
8455
8458
|
return t.chartOnSecondaryAxes === !0 && t.hideFromCharting === !0;
|
|
8456
8459
|
}).map((e) => {
|
|
@@ -8461,25 +8464,25 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8461
8464
|
formatter: n.valueFormatter,
|
|
8462
8465
|
dataType: n.context?.dataType
|
|
8463
8466
|
};
|
|
8464
|
-
})),
|
|
8465
|
-
D(Go,
|
|
8466
|
-
let
|
|
8467
|
+
})), z = l.filterStore || tl();
|
|
8468
|
+
D(Go, z);
|
|
8469
|
+
let B = Ps({
|
|
8467
8470
|
focusType: l.initialFocusData?.focusType,
|
|
8468
8471
|
focuses: l.initialFocusData?.focuses || [],
|
|
8469
8472
|
focusRequired: l.focusRequired
|
|
8470
8473
|
}, l.allFieldsAreFocusable);
|
|
8471
|
-
D(Ko,
|
|
8472
|
-
let { setFilterSelectedValues:
|
|
8473
|
-
D(ns,
|
|
8474
|
-
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) => {
|
|
8475
8478
|
d("table-overlay-change", e);
|
|
8476
|
-
},
|
|
8477
|
-
p.value = e.api,
|
|
8478
|
-
},
|
|
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) => {
|
|
8479
8482
|
d("first-data-rendered", e);
|
|
8480
|
-
},
|
|
8483
|
+
}, K = (e) => {
|
|
8481
8484
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
8482
|
-
if (
|
|
8485
|
+
if (V.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
8483
8486
|
let t = ge.value;
|
|
8484
8487
|
if (n.length > _e.value) {
|
|
8485
8488
|
let t = n.slice(0, _e.value);
|
|
@@ -8488,11 +8491,11 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8488
8491
|
t.yAxis.defaultValue && (q.value = t.yAxis.defaultValue);
|
|
8489
8492
|
}
|
|
8490
8493
|
d("column-row-group-changed", e);
|
|
8491
|
-
},
|
|
8492
|
-
Ve(e.api),
|
|
8494
|
+
}, oe = async (e) => {
|
|
8495
|
+
Ve(e.api), te.value && d("filter-changed", e);
|
|
8493
8496
|
};
|
|
8494
|
-
|
|
8495
|
-
if (
|
|
8497
|
+
H(() => j.value, () => {
|
|
8498
|
+
if (V.value) {
|
|
8496
8499
|
if (!p.value) return;
|
|
8497
8500
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
8498
8501
|
JSON.stringify(e) !== JSON.stringify(j.value) && v(() => {
|
|
@@ -8503,11 +8506,11 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8503
8506
|
});
|
|
8504
8507
|
if (!l.allFieldsAreFocusable) {
|
|
8505
8508
|
let e = ge.value.supportsFocusView && N.value || null;
|
|
8506
|
-
|
|
8509
|
+
B.setFocusType(e);
|
|
8507
8510
|
}
|
|
8508
8511
|
p.value && Ve(p.value);
|
|
8509
8512
|
});
|
|
8510
|
-
function
|
|
8513
|
+
function se(e, t, n = !0) {
|
|
8511
8514
|
return (r) => {
|
|
8512
8515
|
if (r.data = be.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
8513
8516
|
let i = "", a = le(e);
|
|
@@ -8526,7 +8529,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8526
8529
|
let ce = (e, t = !1) => {
|
|
8527
8530
|
if (!e) return;
|
|
8528
8531
|
let n = le(e);
|
|
8529
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
8532
|
+
return n && typeof n.valueFormatter == "function" ? se(e, n.valueFormatter, t) : se(e, null, t);
|
|
8530
8533
|
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
8531
8534
|
let n = le(N.value);
|
|
8532
8535
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
@@ -8541,20 +8544,20 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8541
8544
|
text: "Descending",
|
|
8542
8545
|
id: "desc",
|
|
8543
8546
|
icon: "arrow-down-narrow-wide"
|
|
8544
|
-
}]), be = O([]), xe = O([]), q = O(l.yKey),
|
|
8545
|
-
D(Jo, p), D(os, Ee), D(Qo, ve), D(ss, j), D(cs, de), D(ls, ye), D(us, fe), D(ds, Te), D(fs, q), D(ps, I), D(ms,
|
|
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);
|
|
8546
8549
|
let De = (e) => {
|
|
8547
8550
|
fe.value = de.value.find((t) => t.id === e) ?? de.value[0];
|
|
8548
8551
|
};
|
|
8549
|
-
|
|
8552
|
+
H(() => de.value, () => {
|
|
8550
8553
|
let e = Ie.value, t = e !== he, n = Pu(fe.value?.id || ""), r = de.value.some((e) => e.id === fe.value?.id);
|
|
8551
8554
|
he = e, !(r && (!t || !n.storeBeforeChange)) && De((e ? me?.value : pe?.value) ?? l.chartType);
|
|
8552
|
-
}),
|
|
8555
|
+
}), H(() => l.chartType, (e) => De(e)), H(() => l.yKey, (e) => {
|
|
8553
8556
|
e !== q.value && (q.value = e);
|
|
8554
|
-
}),
|
|
8557
|
+
}), H(Ee, (e) => {
|
|
8555
8558
|
if (l.chartFilter && p.value) {
|
|
8556
8559
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
8557
|
-
n && n.length === 0 && (n = null),
|
|
8560
|
+
n && n.length === 0 && (n = null), ee(t, n || []);
|
|
8558
8561
|
let r = yc({
|
|
8559
8562
|
filterType: "set",
|
|
8560
8563
|
values: n
|
|
@@ -8567,8 +8570,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8567
8570
|
let Oe = r(() => {
|
|
8568
8571
|
let e = I.value.find((e) => e.value === q.value);
|
|
8569
8572
|
return e ? e.label : "";
|
|
8570
|
-
}), ke = r(() =>
|
|
8571
|
-
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);
|
|
8572
8575
|
return e ? e.label : "";
|
|
8573
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(() => {
|
|
8574
8577
|
let e = Fe.value, t = ge.value.agChartType, n = [], r = ce(q.value, !0), i = ce(Y.value?.fieldName, !0);
|
|
@@ -8629,9 +8632,9 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8629
8632
|
content: `Count: ${e.datum[e.yKey]}`
|
|
8630
8633
|
};
|
|
8631
8634
|
} }
|
|
8632
|
-
}))),
|
|
8635
|
+
}))), J.value) {
|
|
8633
8636
|
let t;
|
|
8634
|
-
t = e ? `${
|
|
8637
|
+
t = e ? `${J.value}_sort_total` : J.value;
|
|
8635
8638
|
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Ju(N.value, r, t, Ae.value, je.value), a = {
|
|
8636
8639
|
type: "scatter",
|
|
8637
8640
|
id: "metric-overlay",
|
|
@@ -8711,19 +8714,19 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8711
8714
|
legendItemKey: N.value,
|
|
8712
8715
|
angleKey: q.value
|
|
8713
8716
|
}]);
|
|
8714
|
-
|
|
8717
|
+
H(q, (e, t) => {
|
|
8715
8718
|
d("chart-state-changed", {
|
|
8716
8719
|
api: p.value,
|
|
8717
8720
|
newState: { seriesField: e },
|
|
8718
8721
|
oldState: { seriesField: t }
|
|
8719
8722
|
});
|
|
8720
|
-
}),
|
|
8723
|
+
}), H(J, (e, t) => {
|
|
8721
8724
|
d("chart-state-changed", {
|
|
8722
8725
|
api: p.value,
|
|
8723
8726
|
newState: { secondarySeriesField: e },
|
|
8724
8727
|
oldState: { secondarySeriesField: t }
|
|
8725
8728
|
});
|
|
8726
|
-
}),
|
|
8729
|
+
}), H(fe, (e, t) => {
|
|
8727
8730
|
e?.id && Pu(e.id).storeBeforeChange && (Ie.value ? me.value = e.id : pe.value = e.id);
|
|
8728
8731
|
let n = Pu(e?.id || ""), r = Pu(t?.id || "");
|
|
8729
8732
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (j.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
@@ -8733,40 +8736,40 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8733
8736
|
newState: { chartType: e?.id },
|
|
8734
8737
|
oldState: { chartType: t?.id }
|
|
8735
8738
|
});
|
|
8736
|
-
}),
|
|
8739
|
+
}), H(ve, (e) => {
|
|
8737
8740
|
if (e.length === 1 && j.value.length === 0) {
|
|
8738
8741
|
let t = e[0].field;
|
|
8739
8742
|
t && (j.value = [t]);
|
|
8740
8743
|
}
|
|
8741
|
-
}),
|
|
8744
|
+
}), H(I, (e) => {
|
|
8742
8745
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
8743
|
-
}),
|
|
8746
|
+
}), H(Te, (e, t) => {
|
|
8744
8747
|
d("chart-state-changed", {
|
|
8745
8748
|
api: p.value,
|
|
8746
8749
|
newState: { chartSort: e?.id },
|
|
8747
8750
|
oldState: { chartSort: t?.id }
|
|
8748
8751
|
});
|
|
8749
|
-
}),
|
|
8752
|
+
}), H(j, (e, t) => {
|
|
8750
8753
|
d("chart-state-changed", {
|
|
8751
8754
|
api: p.value,
|
|
8752
8755
|
newState: { chartCategoryFields: e },
|
|
8753
8756
|
oldState: { chartCategoryFields: t }
|
|
8754
8757
|
});
|
|
8755
|
-
}), V
|
|
8758
|
+
}), H(V, (e, t) => {
|
|
8756
8759
|
d("chart-state-changed", {
|
|
8757
8760
|
api: p.value,
|
|
8758
8761
|
newState: { tableGrouped: e },
|
|
8759
8762
|
oldState: { tableGrouped: t }
|
|
8760
8763
|
});
|
|
8761
|
-
}),
|
|
8764
|
+
}), H(() => l.isTableGrouped, (e, t) => {
|
|
8762
8765
|
!p.value || e === t || !l.enableGroupingToggle || ct(e);
|
|
8763
|
-
}),
|
|
8766
|
+
}), H(() => l.initialFocusData, (e, t) => {
|
|
8764
8767
|
if (!(tt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
8765
8768
|
if (!e?.focusType) {
|
|
8766
|
-
|
|
8769
|
+
B.setFocuses([]);
|
|
8767
8770
|
return;
|
|
8768
8771
|
}
|
|
8769
|
-
|
|
8772
|
+
B.setFocusType(e?.focusType), B.setFocuses(e?.focuses ?? []);
|
|
8770
8773
|
}
|
|
8771
8774
|
}, { deep: !0 });
|
|
8772
8775
|
let ze = () => {
|
|
@@ -8777,7 +8780,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8777
8780
|
return;
|
|
8778
8781
|
}
|
|
8779
8782
|
if (t) {
|
|
8780
|
-
let { stackedData: n, uniqueFieldValues: r } = Qu(e, N.value, t, He.value,
|
|
8783
|
+
let { stackedData: n, uniqueFieldValues: r } = Qu(e, N.value, t, He.value, R.value);
|
|
8781
8784
|
xe.value = n, Y.value = {
|
|
8782
8785
|
fieldName: t,
|
|
8783
8786
|
fieldValues: r
|
|
@@ -8786,9 +8789,9 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8786
8789
|
be.value = e;
|
|
8787
8790
|
}, Ve = (e) => {
|
|
8788
8791
|
let t = ++T.value, n = j.value.length;
|
|
8789
|
-
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;
|
|
8790
8793
|
if (l.serverSideChartHandler) {
|
|
8791
|
-
let e =
|
|
8794
|
+
let e = z.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
8792
8795
|
if (e === null && l.initialGridState) {
|
|
8793
8796
|
let t = Sc(l.initialGridState, n, l.enableAdvancedFilter);
|
|
8794
8797
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
@@ -8825,7 +8828,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8825
8828
|
};
|
|
8826
8829
|
} else xe.value = [], Y.value = null;
|
|
8827
8830
|
}, He = r(() => {
|
|
8828
|
-
let e = I.value, t =
|
|
8831
|
+
let e = I.value, t = L.value;
|
|
8829
8832
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
8830
8833
|
}), Ue = (e) => {
|
|
8831
8834
|
let t = { [e.field]: e.key };
|
|
@@ -8858,8 +8861,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8858
8861
|
{ [N.value]: "" },
|
|
8859
8862
|
e[0],
|
|
8860
8863
|
{ [N.value]: " " }
|
|
8861
|
-
]), l.enableFocusView && e &&
|
|
8862
|
-
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]));
|
|
8863
8866
|
e = [
|
|
8864
8867
|
...t || [],
|
|
8865
8868
|
{ [N.value]: ec },
|
|
@@ -8871,7 +8874,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8871
8874
|
let e = (X.value ?? []).filter((e) => {
|
|
8872
8875
|
let t = e?.[N.value];
|
|
8873
8876
|
return !Ge.has(String(t));
|
|
8874
|
-
}), t =
|
|
8877
|
+
}), t = J.value;
|
|
8875
8878
|
if (!Me.value || !t || !Y.value) return e;
|
|
8876
8879
|
let n = le(t);
|
|
8877
8880
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
@@ -8889,11 +8892,11 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8889
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(() => {
|
|
8890
8893
|
let e = .25 * Math.exp(-.12 * Ke.value);
|
|
8891
8894
|
return Math.min(Math.max(e, .05), .75);
|
|
8892
|
-
}), Xe = r(() => Je.value > 5 ? .5 : 1), Ze = r(() => Je.value > 5 ? .25 : .1), Qe = r(() => !X.value || X.value?.length === 0 ? !0 : qe.value === -Infinity || Me.value === !0 && qe.value === 0), $e = r(() => !!(l.enableFocusView &&
|
|
8893
|
-
let e = le(
|
|
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(() => {
|
|
8896
|
+
let e = le(W.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
8894
8897
|
return Yu({
|
|
8895
8898
|
currentRowGroupColumnsLength: j.value.length,
|
|
8896
|
-
shouldShowFocusOverlayText: $e.value || l.focusRequired &&
|
|
8899
|
+
shouldShowFocusOverlayText: $e.value || l.focusRequired && G.value.length === 0,
|
|
8897
8900
|
chartDataEmpty: Qe.value,
|
|
8898
8901
|
missingFocusText: l.missingFocusText,
|
|
8899
8902
|
displayGroupByName: t
|
|
@@ -8908,7 +8911,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8908
8911
|
}
|
|
8909
8912
|
}
|
|
8910
8913
|
return null;
|
|
8911
|
-
}, rt = r(() => $e.value ||
|
|
8914
|
+
}, rt = r(() => $e.value || re.value || !l.isLoading && et.value !== ""), it = r(() => {
|
|
8912
8915
|
let e = {};
|
|
8913
8916
|
e.overlays = { noData: { text: "" } }, e.data = rt.value ? [] : X.value, e.legend = {
|
|
8914
8917
|
toggleSeries: !1,
|
|
@@ -8916,8 +8919,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8916
8919
|
enabled: j.value.length > 1
|
|
8917
8920
|
};
|
|
8918
8921
|
let t = Me.value ? Y.value?.fieldValues.map((e) => Xu(q.value, e)) || [] : q.value ? [q.value] : [], n = (() => {
|
|
8919
|
-
if (!
|
|
8920
|
-
let e =
|
|
8922
|
+
if (!J.value) return [];
|
|
8923
|
+
let e = J.value;
|
|
8921
8924
|
return Fe.value ? [`${e}${tc}`] : Me.value ? Y.value?.fieldValues.map((t) => Xu(e, String(t))) || [] : [e];
|
|
8922
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 = [];
|
|
8923
8926
|
if (a.push({
|
|
@@ -8942,7 +8945,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8942
8945
|
if (e.value === "--SEPARATOR--") return "";
|
|
8943
8946
|
let t = e.value, n = ce(N.value);
|
|
8944
8947
|
typeof n == "function" && (t = n(e));
|
|
8945
|
-
let r = l.enableFocusView &&
|
|
8948
|
+
let r = l.enableFocusView && G.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
8946
8949
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
8947
8950
|
let e = 50 - r.length - 3;
|
|
8948
8951
|
return t.substring(0, e) + "..." + r;
|
|
@@ -8990,7 +8993,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
8990
8993
|
enabled: !0,
|
|
8991
8994
|
text: Oe.value
|
|
8992
8995
|
}
|
|
8993
|
-
}),
|
|
8996
|
+
}), J.value && a.push({
|
|
8994
8997
|
type: "number",
|
|
8995
8998
|
keys: n,
|
|
8996
8999
|
position: je.value ? "top" : "right",
|
|
@@ -9019,10 +9022,10 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9019
9022
|
});
|
|
9020
9023
|
}
|
|
9021
9024
|
return e.axes = a, e.series = Ne.value, e;
|
|
9022
|
-
}), at = r(() => C.value || l.isLoading && (!X.value || X.value.length === 0)), ot = r(() => $e.value || !
|
|
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) => {
|
|
9023
9026
|
g.value = e, d("chart-collapsed", e);
|
|
9024
9027
|
}, ct = (e) => {
|
|
9025
|
-
p.value && (p.value.setRowGroupColumns(e ? j.value : []),
|
|
9028
|
+
p.value && (p.value.setRowGroupColumns(e ? j.value : []), V.value = e);
|
|
9026
9029
|
};
|
|
9027
9030
|
return n({
|
|
9028
9031
|
getChartImageDataURL: (e) => h.value?.getChartImageDataURL(e),
|
|
@@ -9034,7 +9037,7 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9034
9037
|
}), S(() => {
|
|
9035
9038
|
if (l.initialGridState) {
|
|
9036
9039
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
9037
|
-
j.value = e, !l.allFieldsAreFocusable && e.length > 0 &&
|
|
9040
|
+
j.value = e, !l.allFieldsAreFocusable && e.length > 0 && B.setFocusType(e[0]);
|
|
9038
9041
|
}
|
|
9039
9042
|
}), w(async () => {
|
|
9040
9043
|
await v(), x.value = l.filterPanelAboveChart;
|
|
@@ -9090,36 +9093,36 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
9090
9093
|
"isLoading",
|
|
9091
9094
|
"options",
|
|
9092
9095
|
"enableFocusView"
|
|
9093
|
-
]), s("div", id, [
|
|
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)
|
|
9094
9097
|
])),
|
|
9095
9098
|
u(ou, _({
|
|
9096
9099
|
ref_key: "pvDataTableRef",
|
|
9097
9100
|
ref: m
|
|
9098
9101
|
}, n.$props, {
|
|
9099
9102
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
9100
|
-
pagination: e.pagination || !
|
|
9101
|
-
onColumnRowGroupChanged:
|
|
9102
|
-
onGridReady:
|
|
9103
|
-
onFilterChanged:
|
|
9103
|
+
pagination: e.pagination || !V.value,
|
|
9104
|
+
onColumnRowGroupChanged: K,
|
|
9105
|
+
onGridReady: ie,
|
|
9106
|
+
onFilterChanged: oe,
|
|
9104
9107
|
onSortChanged: r[3] ||= (e) => d("sort-changed", e),
|
|
9105
9108
|
onFilterOpened: r[4] ||= (e) => d("filter-opened", e),
|
|
9106
|
-
onFirstDataRendered:
|
|
9109
|
+
onFirstDataRendered: ae,
|
|
9107
9110
|
onColumnMoved: r[5] ||= (e) => d("column-moved", e),
|
|
9108
9111
|
onColumnResized: r[6] ||= (e) => d("column-resized", e),
|
|
9109
9112
|
onHandleSettingsIcon: r[7] ||= (e) => d("handle-settings-icon", e),
|
|
9110
9113
|
onFocusUpdate: r[8] ||= (e) => d("focus-update", e)
|
|
9111
9114
|
}), {
|
|
9112
|
-
"top-slot":
|
|
9115
|
+
"top-slot": U(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(hu, {
|
|
9113
9116
|
key: 0,
|
|
9114
|
-
groupedModeEnabled:
|
|
9117
|
+
groupedModeEnabled: V.value,
|
|
9115
9118
|
tableConfigOptions: l.tableConfigOptions,
|
|
9116
9119
|
onToggleGroup: ct,
|
|
9117
|
-
onTableOverlayChange:
|
|
9120
|
+
onTableOverlayChange: ne
|
|
9118
9121
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (E(), i(gn, {
|
|
9119
9122
|
key: 1,
|
|
9120
|
-
leftIcon:
|
|
9121
|
-
label:
|
|
9122
|
-
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),
|
|
9123
9126
|
variant: "secondary",
|
|
9124
9127
|
size: "lg"
|
|
9125
9128
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), A(n.$slots, "top-slot")]),
|
|
@@ -12041,16 +12044,16 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12041
12044
|
}),
|
|
12042
12045
|
emits: ["update:modelValue"],
|
|
12043
12046
|
setup(e) {
|
|
12044
|
-
let t =
|
|
12047
|
+
let t = R(e, "modelValue"), n = O(void 0), a = e, o = r(() => {
|
|
12045
12048
|
if (a.topologyType !== "state") throw Error(`Unsupported topology type for state selector: ${a.topologyType}`);
|
|
12046
12049
|
return (a.selectableRegions ? a.selectableRegions : Object.keys(hd)).map((e) => ({
|
|
12047
12050
|
text: fd(e),
|
|
12048
12051
|
id: e
|
|
12049
12052
|
}));
|
|
12050
12053
|
});
|
|
12051
|
-
return
|
|
12054
|
+
return H(n, (e) => {
|
|
12052
12055
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
12053
|
-
}),
|
|
12056
|
+
}), H(t, (e) => {
|
|
12054
12057
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
12055
12058
|
}), (e, t) => (E(), i(Qa, {
|
|
12056
12059
|
style: { width: "125px" },
|
|
@@ -12103,8 +12106,8 @@ var Yu = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, char
|
|
|
12103
12106
|
}),
|
|
12104
12107
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
12105
12108
|
setup(e, { emit: n }) {
|
|
12106
|
-
let i = e, a =
|
|
12107
|
-
|
|
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) => {
|
|
12108
12111
|
l("region-selection-changed", { region: e });
|
|
12109
12112
|
});
|
|
12110
12113
|
let g = r(() => (c.value, {
|