@turquoisehealth/pit-viper 2.181.2-dev.0 → 2.181.2-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +455 -444
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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-1ce1cb53]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-1ce1cb53]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-1ce1cb53]{background-color:#e0e5e4}.pv-text-secondary[data-v-1ce1cb53]{color:#4b595c}.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-6a2265bf]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-6a2265bf]{opacity:1}.pv-menu-item-disabled[data-v-c54482c5]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-c54482c5]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-c54482c5]:hover,&[data-v-c54482c5]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-c54482c5]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-c54482c5]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-toggle[data-v-c54482c5]{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;padding:4px;display:flex}.pv-menu-item-expand-toggle[data-v-c54482c5]:hover{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-fe24a346]{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-fe24a346]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fe24a346]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-fe24a346]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-4daeb5a1]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-4daeb5a1]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-4daeb5a1]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-4daeb5a1]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-4daeb5a1]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-4daeb5a1]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-4daeb5a1]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-4daeb5a1]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-4daeb5a1]{color:#16696d;animation:1.5s ease-in-out infinite pulse-4daeb5a1}@keyframes pulse-4daeb5a1{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.pv-badge-md[data-v-1ce1cb53]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-1ce1cb53]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-1ce1cb53]{background-color:#e0e5e4}.pv-text-secondary[data-v-1ce1cb53]{color:#4b595c}.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-26a92f7e] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-menu-action-button[data-v-6a2265bf]{opacity:0;transition:opacity .2s}.pv-label:hover .pv-menu-action-button[data-v-6a2265bf]{opacity:1}.pv-menu-item-disabled[data-v-c54482c5]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-c54482c5]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-c54482c5]:hover,&[data-v-c54482c5]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-c54482c5]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-c54482c5]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-toggle[data-v-c54482c5]{cursor:pointer;color:inherit;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin-left:auto;padding:4px;display:flex}.pv-menu-item-expand-toggle[data-v-c54482c5]:hover{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}.pv-text-tertiary[data-v-4e159eee]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-fe24a346]{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-fe24a346]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fe24a346]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-fe24a346]: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-c030243b]:hover{color:#16696d}.suggested-title-label[data-v-c030243b]:hover{color:#0d5256;text-decoration:underline}.ag-custom-header-cell[data-v-9a0f71b4]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-9a0f71b4]{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-ee6b788e]{color:#89989b}.pv-button-placeholder[data-v-ee6b788e]{width:24px;height:24px}.pv-sort-option[data-v-ee6b788e]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-ee6b788e]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-ee6b788e]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-ee6b788e]{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-ee6b788e]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-ee6b788e]{display:flex}.sort-divider[data-v-ee6b788e]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-ee6b788e]: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-23fdba3f]:after{content:"›"}.pv-tooltip a[data-v-23fdba3f]{color:inherit}.pv-chart-option[data-v-23fdba3f]{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, useModel as L, useSlots 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, useModel as L, useSlots as R, useTemplateRef as ee, vModelCheckbox as z, vModelText as B, vShow as te, watch as V, withCtx as H, withDirectives as ne, withModifiers as U } from "vue";
|
|
4
4
|
import { AgCharts as W } from "ag-charts-vue3";
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { AgGridVue as
|
|
5
|
+
import { LicenseManager as re } from "ag-charts-enterprise";
|
|
6
|
+
import { AgGridVue as G } from "ag-grid-vue3";
|
|
7
7
|
import { CellStyleModule as ie, CheckboxEditorModule as ae, ClientSideRowModelModule as oe, ColumnApiModule as se, CsvExportModule as ce, CustomEditorModule as le, CustomFilterModule as ue, DateEditorModule as de, EventApiModule as K, GridStateModule as fe, LargeTextEditorModule as pe, ModuleRegistry as me, NumberEditorModule as he, PaginationModule as ge, QuickFilterModule as _e, RowApiModule as ve, RowStyleModule as q, ScrollApiModule as ye, SelectEditorModule as be, TextEditorModule as xe, TextFilterModule as Se, UndoRedoEditModule as Ce, themeQuartz as we } 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 J, useDebounceFn as Y, useElementBounding as We, useElementHover as Ge, useToggle as Ke, watchDebounced as qe } from "@vueuse/core";
|
|
@@ -229,7 +229,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
229
229
|
emits: ["series-visibility-change"],
|
|
230
230
|
setup(e, { expose: n, emit: c }) {
|
|
231
231
|
let l = e, d = c;
|
|
232
|
-
|
|
232
|
+
re.setLicenseKey(Ut);
|
|
233
233
|
let f = O(null), p = O({}), m = () => {
|
|
234
234
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
235
235
|
let e = f.value.$el;
|
|
@@ -374,7 +374,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
374
374
|
},
|
|
375
375
|
emits: ["list-order-updated"],
|
|
376
376
|
setup(e, { expose: t, emit: n }) {
|
|
377
|
-
let r = O(null), i =
|
|
377
|
+
let r = O(null), i = ee("popoverList"), a = e, s = n;
|
|
378
378
|
return a.isSortable && a.isList && Ye(i, [], {
|
|
379
379
|
animation: 150,
|
|
380
380
|
onUpdate: () => {
|
|
@@ -443,7 +443,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
443
443
|
}, C = () => {
|
|
444
444
|
p.value = !1;
|
|
445
445
|
};
|
|
446
|
-
t({ closeDropdown: C }),
|
|
446
|
+
t({ closeDropdown: C }), V(p, (e) => {
|
|
447
447
|
e ? v(() => {
|
|
448
448
|
b(), f("dropdown-open");
|
|
449
449
|
}) : f("dropdown-closed");
|
|
@@ -455,7 +455,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
455
455
|
zIndex: 10,
|
|
456
456
|
...d.popoverCssProperties
|
|
457
457
|
} : d.popoverCssProperties);
|
|
458
|
-
return (t, r) =>
|
|
458
|
+
return (t, r) => ne((E(), o("div", Yt, [s("button", {
|
|
459
459
|
ref_key: "triggerRef",
|
|
460
460
|
ref: m,
|
|
461
461
|
class: y({
|
|
@@ -478,7 +478,7 @@ var Nt = { style: { position: "relative" } }, Pt = {
|
|
|
478
478
|
isSortable: e.isSortable,
|
|
479
479
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
480
480
|
}, {
|
|
481
|
-
default:
|
|
481
|
+
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", Zt, "Loading...")) : a("", !0)], !0)]),
|
|
482
482
|
_: 3
|
|
483
483
|
}, 8, [
|
|
484
484
|
"class",
|
|
@@ -640,7 +640,7 @@ function pn(e, t) {
|
|
|
640
640
|
return n ? t === "default" || t === "" ? n.querySelector("slot:not([name])") : n.querySelector(`slot[name="${CSS.escape(t)}"]`) : null;
|
|
641
641
|
}
|
|
642
642
|
function mn(e, t = {}) {
|
|
643
|
-
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = $t(), l = i ??
|
|
643
|
+
let { host: n, vueSlots: i, observe: a = !0, listenSlotChange: o = !0, countWhitespaceTextInDefaultSlot: s = !1 } = t, c = $t(), l = i ?? R(), u = r(() => c.value || !l ? !1 : !!l[e === "default" || e === "" ? "default" : e]), d = O(!1), f = null, p = null, m = () => {
|
|
644
644
|
f &&= (f.disconnect(), null), p &&= (p.removeEventListener("slotchange", h), null);
|
|
645
645
|
}, h = () => {
|
|
646
646
|
if (!c.value) {
|
|
@@ -674,7 +674,7 @@ function mn(e, t = {}) {
|
|
|
674
674
|
characterData: !0
|
|
675
675
|
}));
|
|
676
676
|
};
|
|
677
|
-
return w(g), C(m),
|
|
677
|
+
return w(g), C(m), V(() => I(n), () => {
|
|
678
678
|
c.value && g();
|
|
679
679
|
}), {
|
|
680
680
|
present: r(() => c.value ? d.value : u.value),
|
|
@@ -1593,13 +1593,13 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1593
1593
|
strategy: t.positioningStrategy,
|
|
1594
1594
|
middleware: h
|
|
1595
1595
|
});
|
|
1596
|
-
|
|
1596
|
+
V(c, (e) => {
|
|
1597
1597
|
e && u.value && d.value && _();
|
|
1598
1598
|
});
|
|
1599
1599
|
let v = We(u), y = Y(() => {
|
|
1600
1600
|
c.value && _();
|
|
1601
1601
|
}, 5);
|
|
1602
|
-
|
|
1602
|
+
V([
|
|
1603
1603
|
v.top,
|
|
1604
1604
|
v.left,
|
|
1605
1605
|
v.width,
|
|
@@ -1618,9 +1618,9 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1618
1618
|
}, k = () => {
|
|
1619
1619
|
t.disableClickOutsideToClose || S(!1);
|
|
1620
1620
|
};
|
|
1621
|
-
return
|
|
1621
|
+
return V(T, (e) => {
|
|
1622
1622
|
t.showOnHover && S(e);
|
|
1623
|
-
}), (r, u) =>
|
|
1623
|
+
}), (r, u) => ne((E(), o("div", ui, [s("div", {
|
|
1624
1624
|
ref_key: "triggerWrapper",
|
|
1625
1625
|
ref: l,
|
|
1626
1626
|
onClick: D
|
|
@@ -1628,12 +1628,12 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1628
1628
|
key: 0,
|
|
1629
1629
|
to: e.teleportLocation,
|
|
1630
1630
|
disabled: !t.useTeleport
|
|
1631
|
-
}, [
|
|
1631
|
+
}, [ne(s("div", {
|
|
1632
1632
|
class: "pv-floating",
|
|
1633
1633
|
ref_key: "floating",
|
|
1634
1634
|
ref: d,
|
|
1635
1635
|
style: x(b.value)
|
|
1636
|
-
}, [A(r.$slots, "content")], 4), [[
|
|
1636
|
+
}, [A(r.$slots, "content")], 4), [[te, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(Xe), [k, { ignore: C.value }]]]);
|
|
1637
1637
|
}
|
|
1638
1638
|
}), fi = /* @__PURE__ */ d({
|
|
1639
1639
|
__name: "PvSegmentedControl",
|
|
@@ -1655,7 +1655,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1655
1655
|
position: "bottom-right",
|
|
1656
1656
|
style: { width: "100%" }
|
|
1657
1657
|
}, c({
|
|
1658
|
-
trigger:
|
|
1658
|
+
trigger: H(() => [u(I(X), {
|
|
1659
1659
|
class: y(["pv-full-width", { "pv-disabled": e.disabled }]),
|
|
1660
1660
|
variant: "ghost",
|
|
1661
1661
|
label: e.label,
|
|
@@ -1676,7 +1676,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1676
1676
|
_: 2
|
|
1677
1677
|
}, [e.disabledReason ? {
|
|
1678
1678
|
name: "content",
|
|
1679
|
-
fn:
|
|
1679
|
+
fn: H(() => [l(P(e.disabledReason), 1)]),
|
|
1680
1680
|
key: "0"
|
|
1681
1681
|
} : void 0]), 1024))), 128))], 2));
|
|
1682
1682
|
}
|
|
@@ -1700,7 +1700,7 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1700
1700
|
"pv-icon": n.value,
|
|
1701
1701
|
[`pv-company-${t.size}`]: t.size && !n.value
|
|
1702
1702
|
})), c = r(() => ({ width: i.value })), l = r(() => t.toCamelCase ? Ze(t.name) + ".svg" : t.name + ".svg"), u = r(() => t.srcPathOverride ? t.srcPathOverride : `${t.basePath}/${l.value}`);
|
|
1703
|
-
return
|
|
1703
|
+
return V(u, () => {
|
|
1704
1704
|
n.value = !0;
|
|
1705
1705
|
}), (e, t) => (E(), o("div", pi, [n.value ? (E(), o("div", {
|
|
1706
1706
|
key: 0,
|
|
@@ -1747,8 +1747,8 @@ var ui = { style: { width: "fit-content" } }, di = /* @__PURE__ */ d({
|
|
|
1747
1747
|
}),
|
|
1748
1748
|
emits: ["update:modelValue"],
|
|
1749
1749
|
setup(e) {
|
|
1750
|
-
let t = e, n =
|
|
1751
|
-
|
|
1750
|
+
let t = e, n = ee("dialog"), r = L(e, "modelValue");
|
|
1751
|
+
V(() => r.value, () => {
|
|
1752
1752
|
r.value ? n.value?.showModal() : n.value?.close();
|
|
1753
1753
|
});
|
|
1754
1754
|
let i = () => {
|
|
@@ -1837,7 +1837,7 @@ var Ci = [
|
|
|
1837
1837
|
}),
|
|
1838
1838
|
emits: ["update:modelValue"],
|
|
1839
1839
|
setup(e, { expose: t }) {
|
|
1840
|
-
let n = e, i =
|
|
1840
|
+
let n = e, i = ee("search-input"), c = L(e, "modelValue"), l = r(() => ({
|
|
1841
1841
|
"pv-input-search": !0,
|
|
1842
1842
|
"pv-full-width": !0,
|
|
1843
1843
|
"pv-input-padded-end": !0
|
|
@@ -1847,7 +1847,7 @@ var Ci = [
|
|
|
1847
1847
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
1848
1848
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
1849
1849
|
});
|
|
1850
|
-
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [
|
|
1850
|
+
}), t({ input: i }), (t, n) => (E(), o("div", Ei, [ne(s("input", {
|
|
1851
1851
|
ref: "search-input",
|
|
1852
1852
|
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1853
1853
|
"data-testid": "pv-search-input",
|
|
@@ -1855,7 +1855,7 @@ var Ci = [
|
|
|
1855
1855
|
disabled: e.disabled,
|
|
1856
1856
|
class: y(l.value),
|
|
1857
1857
|
placeholder: e.placeholder
|
|
1858
|
-
}, null, 10, Di), [[
|
|
1858
|
+
}, null, 10, Di), [[B, c.value]]), e.displayShortcut ? (E(), o("kbd", Oi, P(ki))) : a("", !0)]));
|
|
1859
1859
|
}
|
|
1860
1860
|
});
|
|
1861
1861
|
Qe.extend(tt), Qe.extend($e), Qe.extend(et);
|
|
@@ -1906,7 +1906,7 @@ var ji = {
|
|
|
1906
1906
|
}),
|
|
1907
1907
|
emits: /* @__PURE__ */ g(["click-outside"], ["update:searchInput", "update:modelValue"]),
|
|
1908
1908
|
setup(e, { emit: n }) {
|
|
1909
|
-
let r = e, i = n, c =
|
|
1909
|
+
let r = e, i = n, c = ee("sidePanel"), l = L(e, "searchInput"), d = L(e, "modelValue");
|
|
1910
1910
|
w(() => {
|
|
1911
1911
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && f();
|
|
1912
1912
|
});
|
|
@@ -1917,7 +1917,7 @@ var ji = {
|
|
|
1917
1917
|
}, p = () => {
|
|
1918
1918
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
1919
1919
|
};
|
|
1920
|
-
return
|
|
1920
|
+
return V(() => d.value, () => {
|
|
1921
1921
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
1922
1922
|
}), Ue("Escape", () => {
|
|
1923
1923
|
c.value && d.value && p();
|
|
@@ -1975,11 +1975,11 @@ var ji = {
|
|
|
1975
1975
|
},
|
|
1976
1976
|
setup(e) {
|
|
1977
1977
|
return (t, n) => (E(), i(I(di), b(p(t.$props)), c({
|
|
1978
|
-
trigger:
|
|
1978
|
+
trigger: H(() => [A(t.$slots, "trigger", {}, () => [s("p", null, P(e.label), 1)])]),
|
|
1979
1979
|
_: 2
|
|
1980
1980
|
}, [t.$slots.content || e.description ? {
|
|
1981
1981
|
name: "content",
|
|
1982
|
-
fn:
|
|
1982
|
+
fn: H(() => [s("div", {
|
|
1983
1983
|
class: y(["pv-tooltip-v2-content", { "pv-tooltip-v2-content-small": e.size === "sm" }]),
|
|
1984
1984
|
role: "tooltip",
|
|
1985
1985
|
"data-variant": e.variant
|
|
@@ -2111,11 +2111,11 @@ var ji = {
|
|
|
2111
2111
|
variant: "dark",
|
|
2112
2112
|
"tooltip-position": "top-left"
|
|
2113
2113
|
}, {
|
|
2114
|
-
label:
|
|
2114
|
+
label: H(() => [u(rn, {
|
|
2115
2115
|
name: "close",
|
|
2116
2116
|
onClick: r[0] ||= U((e) => t.$emit("handle-clear"), ["stop"])
|
|
2117
2117
|
})]),
|
|
2118
|
-
"tooltip-content":
|
|
2118
|
+
"tooltip-content": H(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
2119
2119
|
_: 1
|
|
2120
2120
|
})) : a("", !0)
|
|
2121
2121
|
], 10, Wi));
|
|
@@ -2205,7 +2205,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2205
2205
|
};
|
|
2206
2206
|
return w(() => {
|
|
2207
2207
|
p();
|
|
2208
|
-
}),
|
|
2208
|
+
}), V(() => n.queryText, () => {
|
|
2209
2209
|
p();
|
|
2210
2210
|
}), (n, r) => (E(), o(t, null, [
|
|
2211
2211
|
e.avatar ? (E(), i(ta, {
|
|
@@ -2284,13 +2284,13 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2284
2284
|
"pv-input-xsmall": e.size === "sm",
|
|
2285
2285
|
"pv-switch-hide-check": e.hideCheckIcon
|
|
2286
2286
|
}])
|
|
2287
|
-
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0),
|
|
2287
|
+
}, [e.label ? (E(), o("span", ca, P(e.label), 1)) : a("", !0), ne(s("input", {
|
|
2288
2288
|
"onUpdate:modelValue": r[0] ||= (e) => t.value = e,
|
|
2289
2289
|
disabled: e.disabled,
|
|
2290
2290
|
type: "checkbox",
|
|
2291
2291
|
role: "switch",
|
|
2292
2292
|
id: e.id
|
|
2293
|
-
}, null, 8, la), [[
|
|
2293
|
+
}, null, 8, la), [[z, t.value]])], 10, sa));
|
|
2294
2294
|
}
|
|
2295
2295
|
}), [["__scopeId", "data-v-26a92f7e"]]), da = /* @__PURE__ */ Gt(/* @__PURE__ */ d({
|
|
2296
2296
|
__name: "PvMenuItemAction",
|
|
@@ -2303,7 +2303,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2303
2303
|
a.value || t.action.action(t.option);
|
|
2304
2304
|
};
|
|
2305
2305
|
return (e, t) => (E(), i(_n, { disableInteractive: !0 }, c({
|
|
2306
|
-
label:
|
|
2306
|
+
label: H(() => [u(I(X), {
|
|
2307
2307
|
variant: "ghost",
|
|
2308
2308
|
class: y(["pv-text-brand", { "pv-menu-action-button": !s.value }]),
|
|
2309
2309
|
leftIcon: n.value,
|
|
@@ -2317,7 +2317,7 @@ var Qi = /* @__PURE__ */ Gt(Yi, [["render", Zi]]), $i = ["data-style"], ea = ["s
|
|
|
2317
2317
|
_: 2
|
|
2318
2318
|
}, [o.value ? {
|
|
2319
2319
|
name: "tooltip-content",
|
|
2320
|
-
fn:
|
|
2320
|
+
fn: H(() => [l(P(o.value), 1)]),
|
|
2321
2321
|
key: "0"
|
|
2322
2322
|
} : void 0]), 1024));
|
|
2323
2323
|
}
|
|
@@ -2398,7 +2398,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2398
2398
|
},
|
|
2399
2399
|
emits: ["handle-selected", "toggle-expanded"],
|
|
2400
2400
|
setup(e, { emit: t }) {
|
|
2401
|
-
let n = e, c =
|
|
2401
|
+
let n = e, c = ee("inputRef"), l = m(ga, void 0), d = m(_a, O(!1)), p = m(va, void 0), h = m(ya, void 0), g = r(() => {
|
|
2402
2402
|
if (!d.value || !n.children?.length) return [];
|
|
2403
2403
|
let e = fa(n.children);
|
|
2404
2404
|
if (p?.value) {
|
|
@@ -2533,7 +2533,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2533
2533
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
2534
2534
|
setup(e, { emit: n }) {
|
|
2535
2535
|
let i = e, s = m(ga, void 0), c = L(e, "selectedIds"), l = m(Sa, O(!1)), d = m(ya, void 0), f = m(ba, void 0), p = O(i.defaultExpanded ?? !1), h = O(!1), g = O(i.children ?? []), v = O(/* @__PURE__ */ new Set());
|
|
2536
|
-
|
|
2536
|
+
V(() => i.children, (e) => {
|
|
2537
2537
|
if (!e) {
|
|
2538
2538
|
g.value = [];
|
|
2539
2539
|
return;
|
|
@@ -2656,9 +2656,9 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2656
2656
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedItems"]),
|
|
2657
2657
|
setup(e, { emit: n }) {
|
|
2658
2658
|
let i = e, s = n, c = L(e, "selectedItems"), l = N(c.value);
|
|
2659
|
-
|
|
2659
|
+
V(c, (e) => {
|
|
2660
2660
|
l.value = e;
|
|
2661
|
-
}),
|
|
2661
|
+
}), V(l, (e) => {
|
|
2662
2662
|
e !== c.value && (c.value = e);
|
|
2663
2663
|
}), D(ga, l), D(_a, r(() => !!i.enableCascadeSelection));
|
|
2664
2664
|
let d = m(va, void 0), f = m(xa, O(!1)), p = m(ya, void 0), h = m(ba, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
@@ -2694,7 +2694,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2694
2694
|
}
|
|
2695
2695
|
l.value = n, c.value = n, s("handle-selected", e);
|
|
2696
2696
|
}, b = (e) => l.value.some((t) => t.id === e.id) ? !0 : null, x = (e, t) => t ? b(e) === !0 : !0;
|
|
2697
|
-
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) =>
|
|
2697
|
+
return (n, r) => (E(), o("ul", ja, [(E(!0), o(t, null, k(e.options, (t) => ne((E(), o("li", {
|
|
2698
2698
|
key: t.id,
|
|
2699
2699
|
"data-active": b(t),
|
|
2700
2700
|
"data-testid": e.itemTestId,
|
|
@@ -2709,7 +2709,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2709
2709
|
"config",
|
|
2710
2710
|
"itemClass",
|
|
2711
2711
|
"queryText"
|
|
2712
|
-
])], 10, Ma)), [[
|
|
2712
|
+
])], 10, Ma)), [[te, x(t, e.isLoading)]])), 128)), e.hasMoreOptions ? (E(), o("li", Na, [u(X, {
|
|
2713
2713
|
class: "pv-text-brand",
|
|
2714
2714
|
variant: "ghost",
|
|
2715
2715
|
label: "See more",
|
|
@@ -2852,33 +2852,33 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2852
2852
|
return ma(c.options, e);
|
|
2853
2853
|
}), T = (e) => {
|
|
2854
2854
|
g("see-more", e ?? {});
|
|
2855
|
-
}, O =
|
|
2856
|
-
W.value = e,
|
|
2857
|
-
},
|
|
2858
|
-
|
|
2855
|
+
}, O = ee("searchInputRef"), [j, M] = Ke(c.defaultOpen), F = L(e, "modelValue"), R = L(e, "selectionState"), z = L(e, "searchInput"), B = r(() => c.menuActionsVariant === "cancel-confirm"), te = (e) => {
|
|
2856
|
+
W.value = e, B.value || (F.value = e, R.value = S());
|
|
2857
|
+
}, ne = () => {
|
|
2858
|
+
B.value && (F.value = W.value, R.value = S());
|
|
2859
2859
|
}, U = () => {
|
|
2860
|
-
|
|
2861
|
-
}, W = N(F.value),
|
|
2860
|
+
B.value && (W.value = F.value);
|
|
2861
|
+
}, W = N(F.value), re = r({
|
|
2862
2862
|
get: () => W.value,
|
|
2863
2863
|
set: (e) => {
|
|
2864
|
-
|
|
2864
|
+
te(e);
|
|
2865
2865
|
}
|
|
2866
|
-
}),
|
|
2867
|
-
|
|
2866
|
+
}), G = () => {
|
|
2867
|
+
z.value = "", j.value = !1;
|
|
2868
2868
|
}, ie = r(() => {
|
|
2869
2869
|
let e = c.size === "lg" ? 24 : 30;
|
|
2870
2870
|
return c.overlayTrigger ? -e : void 0;
|
|
2871
2871
|
});
|
|
2872
|
-
|
|
2872
|
+
V(() => F.value, (e) => {
|
|
2873
2873
|
W.value = e;
|
|
2874
|
-
}),
|
|
2874
|
+
}), V(j, (e) => {
|
|
2875
2875
|
e ? (U(), v(() => {
|
|
2876
2876
|
c.overlayTrigger && !c.disableSearchInput && O.value?.input?.focus(), g("dropdown-open");
|
|
2877
2877
|
})) : (U(), g("dropdown-closed"));
|
|
2878
2878
|
});
|
|
2879
2879
|
let ae = r(() => {
|
|
2880
|
-
if (
|
|
2881
|
-
let e =
|
|
2880
|
+
if (z.value === "") return c.options;
|
|
2881
|
+
let e = z.value.toLocaleLowerCase();
|
|
2882
2882
|
return c.enableCascadeSelection ? ha(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
2883
2883
|
}), oe = () => {
|
|
2884
2884
|
if (c.enableCascadeSelection) {
|
|
@@ -2887,13 +2887,13 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2887
2887
|
};
|
|
2888
2888
|
t(c.options), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
2889
2889
|
}
|
|
2890
|
-
|
|
2890
|
+
te(c.enableCascadeSelection ? fa(ae.value) : ae.value);
|
|
2891
2891
|
}, se = () => {
|
|
2892
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(),
|
|
2892
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
2893
2893
|
}, ce = () => {
|
|
2894
|
-
U(),
|
|
2894
|
+
U(), G();
|
|
2895
2895
|
}, le = () => {
|
|
2896
|
-
|
|
2896
|
+
ne(), G();
|
|
2897
2897
|
}, ue = r(() => {
|
|
2898
2898
|
if (!c.groupings) return;
|
|
2899
2899
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -2906,21 +2906,21 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2906
2906
|
}
|
|
2907
2907
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
2908
2908
|
return Array.from(e.entries());
|
|
2909
|
-
}), de = r(() => c.groupings &&
|
|
2909
|
+
}), de = r(() => c.groupings && z.value === ""), K = r(() => ({
|
|
2910
2910
|
...c,
|
|
2911
2911
|
selectedItems: F.value,
|
|
2912
|
-
searchInput:
|
|
2912
|
+
searchInput: z.value,
|
|
2913
2913
|
slotContext: c.slotContext,
|
|
2914
2914
|
isOpen: j.value,
|
|
2915
2915
|
isLoading: c.isLoading
|
|
2916
2916
|
}));
|
|
2917
2917
|
return Ue("Escape", () => {
|
|
2918
|
-
j.value &&
|
|
2918
|
+
j.value && G();
|
|
2919
2919
|
}), (n, r) => (E(), i(I(di), _({
|
|
2920
2920
|
modelValue: I(j),
|
|
2921
2921
|
"onUpdate:modelValue": r[4] ||= (e) => h(j) ? j.value = e : null
|
|
2922
2922
|
}, e.popoverProperties, { offset: ie.value }), {
|
|
2923
|
-
trigger:
|
|
2923
|
+
trigger: H(() => [u(Ji, {
|
|
2924
2924
|
ref: "select-button-trigger-ref",
|
|
2925
2925
|
variant: e.variant,
|
|
2926
2926
|
size: e.size,
|
|
@@ -2950,7 +2950,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2950
2950
|
"open",
|
|
2951
2951
|
"counter-value"
|
|
2952
2952
|
])]),
|
|
2953
|
-
content:
|
|
2953
|
+
content: H(() => [s("div", {
|
|
2954
2954
|
class: "pv-popover",
|
|
2955
2955
|
"data-test-id": "pv-popover",
|
|
2956
2956
|
style: x({
|
|
@@ -2960,8 +2960,8 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2960
2960
|
}, [
|
|
2961
2961
|
e.disableSearchInput ? a("", !0) : (E(), o("div", Fa, [u(Ai, {
|
|
2962
2962
|
ref: "searchInputRef",
|
|
2963
|
-
"model-value":
|
|
2964
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
2963
|
+
"model-value": z.value,
|
|
2964
|
+
"onUpdate:modelValue": r[1] ||= (e) => z.value = e,
|
|
2965
2965
|
class: "pv-stack-4",
|
|
2966
2966
|
placeholder: e.searchPlaceholder
|
|
2967
2967
|
}, null, 8, ["model-value", "placeholder"])])),
|
|
@@ -2969,11 +2969,11 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2969
2969
|
ae.value.length > 0 ? (E(), o(t, { key: 2 }, [de.value ? (E(!0), o(t, { key: 0 }, k(ue.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
2970
2970
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", La, P(t), 1)),
|
|
2971
2971
|
u(Pa, {
|
|
2972
|
-
selectedItems:
|
|
2973
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
2972
|
+
selectedItems: re.value,
|
|
2973
|
+
"onUpdate:selectedItems": r[2] ||= (e) => re.value = e,
|
|
2974
2974
|
options: i,
|
|
2975
2975
|
config: l.value,
|
|
2976
|
-
queryText: e.highlightSearchText ?
|
|
2976
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
2977
2977
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
2978
2978
|
itemClass: "pv-stack-4",
|
|
2979
2979
|
isLoading: e.isLoading,
|
|
@@ -2993,11 +2993,11 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
2993
2993
|
ue.value && s !== ue.value.length - 1 ? (E(), o("div", Ra)) : a("", !0)
|
|
2994
2994
|
]))), 128)) : (E(), i(Pa, {
|
|
2995
2995
|
key: 1,
|
|
2996
|
-
selectedItems:
|
|
2997
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
2996
|
+
selectedItems: re.value,
|
|
2997
|
+
"onUpdate:selectedItems": r[3] ||= (e) => re.value = e,
|
|
2998
2998
|
options: ae.value,
|
|
2999
2999
|
config: l.value,
|
|
3000
|
-
queryText: e.highlightSearchText ?
|
|
3000
|
+
queryText: e.highlightSearchText ? z.value : null,
|
|
3001
3001
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
3002
3002
|
itemClass: "pv-stack-4",
|
|
3003
3003
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
@@ -3078,7 +3078,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3078
3078
|
variant: n.optionsVariant,
|
|
3079
3079
|
counterBadgeVariant: n.counterBadgeVariant
|
|
3080
3080
|
})), l = t, [d] = Ke(n.defaultOpen), f = L(e, "modelValue"), p = L(e, "searchInput");
|
|
3081
|
-
|
|
3081
|
+
V(d, (e) => {
|
|
3082
3082
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
3083
3083
|
});
|
|
3084
3084
|
let m = r(() => f.value && f.value.text ? f.value.text : n.label), g = r(() => {
|
|
@@ -3119,7 +3119,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3119
3119
|
modelValue: I(d),
|
|
3120
3120
|
"onUpdate:modelValue": n[2] ||= (e) => h(d) ? d.value = e : null
|
|
3121
3121
|
}, e.popoverProperties), {
|
|
3122
|
-
trigger:
|
|
3122
|
+
trigger: H(() => [u(Ji, {
|
|
3123
3123
|
class: "pv-full-width",
|
|
3124
3124
|
ref: "select-button-trigger-ref",
|
|
3125
3125
|
variant: e.variant,
|
|
@@ -3153,7 +3153,7 @@ var ga = Symbol("SelectedItemsKey"), _a = Symbol("EnableCascadeSelectionKey"), v
|
|
|
3153
3153
|
"counter-badge-variant",
|
|
3154
3154
|
"isLoading"
|
|
3155
3155
|
])]),
|
|
3156
|
-
content:
|
|
3156
|
+
content: H(() => [s("div", {
|
|
3157
3157
|
class: "pv-popover",
|
|
3158
3158
|
"data-test-id": "pv-popover",
|
|
3159
3159
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
@@ -3345,7 +3345,7 @@ var Wa = () => {
|
|
|
3345
3345
|
"update:options"
|
|
3346
3346
|
],
|
|
3347
3347
|
setup(e) {
|
|
3348
|
-
let n = e, c = { renderer: Ya }, l =
|
|
3348
|
+
let n = e, c = { renderer: Ya }, l = ee("search-input"), d = L(e, "searchText"), f = L(e, "query"), p = L(e, "options"), { addQueryOption: m, containsQueryOption: h } = Wa(), 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 = () => {
|
|
3349
3349
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
3350
3350
|
};
|
|
3351
3351
|
n.enableCustomOptionsInput && Ue("Enter", () => {
|
|
@@ -3356,7 +3356,7 @@ var Wa = () => {
|
|
|
3356
3356
|
id: d.value.trim(),
|
|
3357
3357
|
text: d.value,
|
|
3358
3358
|
queryTerm: { queryText: d.value }
|
|
3359
|
-
}),
|
|
3359
|
+
}), R());
|
|
3360
3360
|
}, A = r(() => {
|
|
3361
3361
|
if (!p.value || p.value.length === 0) return [];
|
|
3362
3362
|
let e = p.value;
|
|
@@ -3369,7 +3369,7 @@ var Wa = () => {
|
|
|
3369
3369
|
context: e.queryTerm
|
|
3370
3370
|
}));
|
|
3371
3371
|
});
|
|
3372
|
-
|
|
3372
|
+
V([
|
|
3373
3373
|
A,
|
|
3374
3374
|
d,
|
|
3375
3375
|
() => n.optionsLoading
|
|
@@ -3386,7 +3386,7 @@ var Wa = () => {
|
|
|
3386
3386
|
queryTerm: e.context,
|
|
3387
3387
|
icon: e.icon
|
|
3388
3388
|
};
|
|
3389
|
-
f.value = m(f.value, t),
|
|
3389
|
+
f.value = m(f.value, t), R();
|
|
3390
3390
|
} catch (e) {
|
|
3391
3391
|
console.error("Error adding query option:", e);
|
|
3392
3392
|
} finally {
|
|
@@ -3400,10 +3400,10 @@ var Wa = () => {
|
|
|
3400
3400
|
function F(e) {
|
|
3401
3401
|
e.type === "focus" ? (v.value = !0, g.value = !0) : e.type;
|
|
3402
3402
|
}
|
|
3403
|
-
let
|
|
3403
|
+
let R = () => {
|
|
3404
3404
|
d.value = "";
|
|
3405
3405
|
};
|
|
3406
|
-
return (n, r) =>
|
|
3406
|
+
return (n, r) => ne((E(), o("div", {
|
|
3407
3407
|
ref: "query-builder-input",
|
|
3408
3408
|
class: "pv-relative pv-query-builder-input-wrapper",
|
|
3409
3409
|
onFocus: F,
|
|
@@ -3429,7 +3429,7 @@ var Wa = () => {
|
|
|
3429
3429
|
"modelValue",
|
|
3430
3430
|
"wrap-content",
|
|
3431
3431
|
"query-term-display-limit"
|
|
3432
|
-
]),
|
|
3432
|
+
]), ne(s("input", {
|
|
3433
3433
|
"onUpdate:modelValue": r[2] ||= (e) => d.value = e,
|
|
3434
3434
|
ref: "search-input",
|
|
3435
3435
|
"data-testid": "pv-search-input",
|
|
@@ -3439,7 +3439,7 @@ var Wa = () => {
|
|
|
3439
3439
|
"data-invalid": w.value ? "true" : void 0,
|
|
3440
3440
|
onFocus: F,
|
|
3441
3441
|
onBlur: F
|
|
3442
|
-
}, null, 40, Za), [[
|
|
3442
|
+
}, null, 40, Za), [[B, d.value]])], 4),
|
|
3443
3443
|
f.value && !e.hideClearButton ? (E(), i(I(X), {
|
|
3444
3444
|
key: 1,
|
|
3445
3445
|
variant: "ghost",
|
|
@@ -3457,7 +3457,7 @@ var Wa = () => {
|
|
|
3457
3457
|
},
|
|
3458
3458
|
isList: !0
|
|
3459
3459
|
}, {
|
|
3460
|
-
default:
|
|
3460
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", $a, [u(I(_t), { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(Aa, _({
|
|
3461
3461
|
key: `${t}-${e.searchText}`,
|
|
3462
3462
|
ref_for: !0
|
|
3463
3463
|
}, e, {
|
|
@@ -3489,7 +3489,7 @@ var Wa = () => {
|
|
|
3489
3489
|
},
|
|
3490
3490
|
setup(e) {
|
|
3491
3491
|
let n = m(io, O(null)), c = m(co, O([])), l = m(lo, O([])), u = e;
|
|
3492
|
-
|
|
3492
|
+
V(l, () => {}, { deep: !0 });
|
|
3493
3493
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
3494
3494
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
3495
3495
|
}, 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(() => {
|
|
@@ -3520,12 +3520,12 @@ var Wa = () => {
|
|
|
3520
3520
|
class: y(p.value),
|
|
3521
3521
|
onListOrderUpdated: x
|
|
3522
3522
|
}, {
|
|
3523
|
-
trigger:
|
|
3523
|
+
trigger: H(() => [s("div", Ao, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(cn), {
|
|
3524
3524
|
key: 0,
|
|
3525
3525
|
value: I(l).length,
|
|
3526
3526
|
variant: "tertiary"
|
|
3527
3527
|
}, null, 8, ["value"])) : a("", !0)])]),
|
|
3528
|
-
default:
|
|
3528
|
+
default: H(() => [(E(!0), o(t, null, k(v.value, (e, n) => (E(), o(t, { key: e.value }, [e.value === "divider" ? a("", !0) : (E(), o("li", {
|
|
3529
3529
|
key: 0,
|
|
3530
3530
|
id: b(e.value)
|
|
3531
3531
|
}, [s("label", { class: y(["pv-flex", { "pv-border-bottom": n + 1 === I(l).length }]) }, [
|
|
@@ -3647,13 +3647,13 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3647
3647
|
tooltipPosition: "center-left",
|
|
3648
3648
|
size: "sm"
|
|
3649
3649
|
}, {
|
|
3650
|
-
label:
|
|
3650
|
+
label: H(() => [u(X, {
|
|
3651
3651
|
class: y(j.value + " pv-text-brand"),
|
|
3652
3652
|
variant: "ghost",
|
|
3653
3653
|
"left-icon": "focus",
|
|
3654
3654
|
onClick: r[0] ||= (e) => I(k)(I(f).key)
|
|
3655
3655
|
}, null, 8, ["class"])]),
|
|
3656
|
-
"tooltip-content":
|
|
3656
|
+
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
3657
3657
|
_: 1
|
|
3658
3658
|
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", $o, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
3659
3659
|
}
|
|
@@ -3685,14 +3685,14 @@ var Vo = /* @__PURE__ */ Gt(Ro, [["render", Bo]]), Ho = ["innerHTML"], Uo = { ke
|
|
|
3685
3685
|
"col-def": o.value,
|
|
3686
3686
|
"cell-params": e.params.cellParams
|
|
3687
3687
|
}, {
|
|
3688
|
-
default:
|
|
3688
|
+
default: H(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3689
3689
|
_: 1
|
|
3690
3690
|
}, 8, ["col-def", "cell-params"])) : (E(), i(Wo, {
|
|
3691
3691
|
key: 1,
|
|
3692
3692
|
"col-def": s.value,
|
|
3693
3693
|
"cell-params": c.value
|
|
3694
3694
|
}, {
|
|
3695
|
-
default:
|
|
3695
|
+
default: H(() => [u(es, { params: e.params }, null, 8, ["params"])]),
|
|
3696
3696
|
_: 1
|
|
3697
3697
|
}, 8, ["col-def", "cell-params"]));
|
|
3698
3698
|
}
|
|
@@ -4181,7 +4181,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4181
4181
|
}), m = r(() => {
|
|
4182
4182
|
let e = n.value || {};
|
|
4183
4183
|
return Object.keys(e).length === 0;
|
|
4184
|
-
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O(/* @__PURE__ */ new Set()), T = O({}), E = (e) => {
|
|
4184
|
+
}), h = O({}), g = O({}), _ = O({}), v = O({}), y = O({}), b = O({}), x = O(!1), S = O(!1), C = O({}), w = O(/* @__PURE__ */ new Set()), T = O({}), E = O({}), D = (e) => {
|
|
4185
4185
|
let t = {};
|
|
4186
4186
|
return e && Object.entries(e).forEach(([e, n]) => {
|
|
4187
4187
|
t[e] = n;
|
|
@@ -4191,18 +4191,18 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4191
4191
|
filterType: "set",
|
|
4192
4192
|
values: r
|
|
4193
4193
|
});
|
|
4194
|
-
}), Object.entries(
|
|
4194
|
+
}), Object.entries(E.value).forEach(([e, n]) => {
|
|
4195
4195
|
let r = n.filter((e) => !!e);
|
|
4196
4196
|
r.length > 0 ? t[e] = {
|
|
4197
4197
|
filterType: "set",
|
|
4198
4198
|
values: r
|
|
4199
4199
|
} : delete t[e];
|
|
4200
4200
|
}), t;
|
|
4201
|
-
},
|
|
4201
|
+
}, k = async (n, r) => {
|
|
4202
4202
|
let i = v.value[n.field] || void 0, s = g.value[n.field] || [], d = r?.filterModel;
|
|
4203
4203
|
if (t.value != null) {
|
|
4204
4204
|
let t = r?.filterModel ?? e.value ?? void 0;
|
|
4205
|
-
d =
|
|
4205
|
+
d = D(t && tc(t) ? t : void 0);
|
|
4206
4206
|
}
|
|
4207
4207
|
let f = {
|
|
4208
4208
|
api: r?.api,
|
|
@@ -4216,12 +4216,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4216
4216
|
m || (c.value[p] = !0);
|
|
4217
4217
|
let _ = (o.value[p] || 0) + 1;
|
|
4218
4218
|
o.value[p] = _;
|
|
4219
|
-
let x = s.map((e) =>
|
|
4219
|
+
let x = s.map((e) => A(p, e) || {
|
|
4220
4220
|
value: e,
|
|
4221
4221
|
label: String(e)
|
|
4222
4222
|
}), S = await l.value?.(f), C;
|
|
4223
4223
|
if (S && !Array.isArray(S) ? (C = S.values, u.value[p] = S.totalCount) : (C = S, u.value[p] = void 0), i && C && (C = C.map((e) => {
|
|
4224
|
-
let t =
|
|
4224
|
+
let t = j(n, e);
|
|
4225
4225
|
return e && t && (e.matchedField = e.matchedField ?? t.matchedField, e.matchedValue = e.matchedValue ?? t.matchedValue), e;
|
|
4226
4226
|
})), _ === o.value[p]) {
|
|
4227
4227
|
let e = (r?.offset ?? 0) > 0, t = !!r?.parentId;
|
|
@@ -4245,10 +4245,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4245
4245
|
let n = C?.filter((e) => e != null).map((e) => e.value) || [], i = n.filter((e, t) => n.indexOf(e) === t);
|
|
4246
4246
|
return y.value[p] = i, b.value[p] = !1, a.value[p] = Date.now(), m || (c.value[p] = !1), i;
|
|
4247
4247
|
} else return [];
|
|
4248
|
-
},
|
|
4248
|
+
}, A = (e, t) => {
|
|
4249
4249
|
let n = [...h.value[e] || [], ..._.value[e] || []];
|
|
4250
4250
|
return n ? n.find((e) => e?.value === t) : null;
|
|
4251
|
-
},
|
|
4251
|
+
}, j = (e, t) => {
|
|
4252
4252
|
if (!t) return {};
|
|
4253
4253
|
let n = $(e)?.queryColIds || [];
|
|
4254
4254
|
if (n.length === 0) return {};
|
|
@@ -4261,7 +4261,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4261
4261
|
};
|
|
4262
4262
|
}
|
|
4263
4263
|
return {};
|
|
4264
|
-
},
|
|
4264
|
+
}, M = (t, n) => {
|
|
4265
4265
|
g.value[t] = n;
|
|
4266
4266
|
let r = [], i = e.value;
|
|
4267
4267
|
if (tc(i)) {
|
|
@@ -4274,33 +4274,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4274
4274
|
r.push(...n);
|
|
4275
4275
|
let a = [];
|
|
4276
4276
|
return n.forEach((e) => {
|
|
4277
|
-
let n =
|
|
4277
|
+
let n = A(t, e);
|
|
4278
4278
|
n && a.push(n);
|
|
4279
4279
|
}), _.value[t] = a, r.filter((e, t) => r.indexOf(e) === t);
|
|
4280
|
-
},
|
|
4280
|
+
}, N = (e) => g.value[e] || [], P = (e, t) => {
|
|
4281
4281
|
v.value[e] = t;
|
|
4282
|
-
},
|
|
4282
|
+
}, F = (e) => y.value[e] || [], I = (e, t) => {
|
|
4283
4283
|
y.value[e] = t;
|
|
4284
|
-
},
|
|
4284
|
+
}, L = (e, t) => {
|
|
4285
4285
|
C.value[e] = t;
|
|
4286
|
-
},
|
|
4286
|
+
}, R = (e) => {
|
|
4287
4287
|
let t = C.value[e] || [], n = Object.entries(C.value).find(([, t]) => t.includes(e))?.[0];
|
|
4288
4288
|
return [...t, ...n ? [n] : []];
|
|
4289
4289
|
}, ee = (e) => {
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4290
|
+
let t = T.value[e] ?? 0;
|
|
4291
|
+
T.value[e] = t + 1, w.value.add(e);
|
|
4292
|
+
}, z = (e) => {
|
|
4293
|
+
let t = T.value[e] ?? 0;
|
|
4294
|
+
if (t <= 1) {
|
|
4295
|
+
delete T.value[e], w.value.delete(e);
|
|
4296
|
+
return;
|
|
4297
|
+
}
|
|
4298
|
+
T.value[e] = t - 1;
|
|
4299
|
+
}, B = (e) => {
|
|
4294
4300
|
let t = new Set(e);
|
|
4295
|
-
for (let n of e) for (let e of
|
|
4301
|
+
for (let n of e) for (let e of R(n)) t.add(e);
|
|
4296
4302
|
for (let e of w.value) t.has(e) || (b.value[e] = !0);
|
|
4297
|
-
},
|
|
4298
|
-
|
|
4299
|
-
},
|
|
4300
|
-
|
|
4301
|
-
},
|
|
4302
|
-
|
|
4303
|
-
},
|
|
4303
|
+
}, te = () => {
|
|
4304
|
+
E.value = JSON.parse(JSON.stringify(g.value));
|
|
4305
|
+
}, V = () => {
|
|
4306
|
+
E.value = {};
|
|
4307
|
+
}, H = (e) => E.value[e] || [], ne = (e, t) => {
|
|
4308
|
+
E.value[e] = t;
|
|
4309
|
+
}, U = (e, t) => {
|
|
4304
4310
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], a = t ? Object.keys(t) : [], o = r.filter((e) => a.includes(e));
|
|
4305
4311
|
[...r, ...a].filter((e) => !o.includes(e)).forEach((e) => n.add(e));
|
|
4306
4312
|
for (let r of o) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -4310,7 +4316,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4310
4316
|
};
|
|
4311
4317
|
return qe([e, t], ([t, n], [r, i]) => {
|
|
4312
4318
|
let a = /* @__PURE__ */ new Set();
|
|
4313
|
-
JSON.stringify(t) !== JSON.stringify(r) &&
|
|
4319
|
+
JSON.stringify(t) !== JSON.stringify(r) && U(t || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(n) !== JSON.stringify(i) && U(n || {}, e.value || {}).forEach((e) => a.add(e)), a.size > 0 && B(a);
|
|
4314
4320
|
}, {
|
|
4315
4321
|
deep: !0,
|
|
4316
4322
|
debounce: 200,
|
|
@@ -4325,72 +4331,72 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4325
4331
|
filterValueMap: h,
|
|
4326
4332
|
filterValueSelectedMetadataMap: _,
|
|
4327
4333
|
filterStoreHandler: l,
|
|
4328
|
-
fetchFilterValues:
|
|
4329
|
-
filterValueContext:
|
|
4334
|
+
fetchFilterValues: k,
|
|
4335
|
+
filterValueContext: A,
|
|
4330
4336
|
filterModelEmpty: p,
|
|
4331
|
-
getFilterSelectedValues:
|
|
4332
|
-
getSearchMatchDataFromFilterContext:
|
|
4337
|
+
getFilterSelectedValues: N,
|
|
4338
|
+
getSearchMatchDataFromFilterContext: j,
|
|
4333
4339
|
isServerSideFilter: f,
|
|
4334
4340
|
stagedFilterModel: t,
|
|
4335
|
-
setFilterSelectedValues:
|
|
4336
|
-
setFilterValueSearchText:
|
|
4341
|
+
setFilterSelectedValues: M,
|
|
4342
|
+
setFilterValueSearchText: P,
|
|
4337
4343
|
tableSearchFilterModel: n,
|
|
4338
4344
|
tableSearchFilterModelEmpty: m,
|
|
4339
4345
|
tableSearchHandler: d,
|
|
4340
4346
|
filterValuesMap: y,
|
|
4341
|
-
getFilterValues:
|
|
4342
|
-
setFilterValues:
|
|
4347
|
+
getFilterValues: F,
|
|
4348
|
+
setFilterValues: I,
|
|
4343
4349
|
filterStaleMap: b,
|
|
4344
4350
|
refreshFiltersInBackground: x,
|
|
4345
4351
|
stageFilterChangesUntilDropdownCloses: S,
|
|
4346
|
-
markOtherFieldsStale:
|
|
4352
|
+
markOtherFieldsStale: B,
|
|
4347
4353
|
aggregateFieldMap: C,
|
|
4348
|
-
registerAggregateField:
|
|
4354
|
+
registerAggregateField: L,
|
|
4349
4355
|
registeredFilterFields: w,
|
|
4350
4356
|
registerFilterField: ee,
|
|
4351
|
-
unregisterFilterField:
|
|
4352
|
-
stagedSelectedValuesMap:
|
|
4353
|
-
initStagedSelectedValues:
|
|
4354
|
-
clearStagedSelectedValues:
|
|
4355
|
-
getStagedSelectedValues:
|
|
4356
|
-
setStagedSelectedValues:
|
|
4357
|
+
unregisterFilterField: z,
|
|
4358
|
+
stagedSelectedValuesMap: E,
|
|
4359
|
+
initStagedSelectedValues: te,
|
|
4360
|
+
clearStagedSelectedValues: V,
|
|
4361
|
+
getStagedSelectedValues: H,
|
|
4362
|
+
setStagedSelectedValues: ne,
|
|
4357
4363
|
filterValueSearchTextMap: v,
|
|
4358
4364
|
filterValuesTotalCountMap: u
|
|
4359
4365
|
};
|
|
4360
4366
|
}, rc = () => m(to, null) || nc(), ic = (e) => {
|
|
4361
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C,
|
|
4362
|
-
get: () => G.value ?
|
|
4367
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i } = e, a = m(io, O(null)), o = rc(), { fetchFilterValues: s, filterModel: c, stagedFilterModel: l, filterModelCleared: u, filterValuesLoadingStatus: d, filterValueContext: f, getFilterSelectedValues: p, isServerSideFilter: h, setFilterValueSearchText: g, setFilterSelectedValues: _, getFilterValues: y, setFilterValues: b, filterStaleMap: x, refreshFiltersInBackground: S, stageFilterChangesUntilDropdownCloses: C, markOtherFieldsStale: E, registerAggregateField: D, registerFilterField: k, unregisterFilterField: A, getStagedSelectedValues: j, setStagedSelectedValues: M, filterValueSearchTextMap: N, filterValuesTotalCountMap: P } = o, { computedFocuses: F, removeFocus: I, computedFocusType: L } = Ko(), R = m(mo, O(!1)), ee = m(po, O(!1)), z = m(Do, O(!1)), B = r({
|
|
4368
|
+
get: () => G.value ? j(U.value) : p(U.value),
|
|
4363
4369
|
set: (e) => {
|
|
4364
|
-
G.value ?
|
|
4370
|
+
G.value ? M(U.value, e) : _(U.value, e);
|
|
4365
4371
|
}
|
|
4366
|
-
}),
|
|
4367
|
-
get: () =>
|
|
4368
|
-
set: (e) => g(
|
|
4369
|
-
}),
|
|
4372
|
+
}), te = r(() => be(y(U.value))), H = r(() => d.value[U.value] ?? !1), ne = r({
|
|
4373
|
+
get: () => N.value[U.value] ?? "",
|
|
4374
|
+
set: (e) => g(U.value, e)
|
|
4375
|
+
}), U = r(() => t.value.field || ""), W = r(() => t.value.filter || ""), re = r(() => t.value.headerName || ""), G = r(() => n?.value === "vertical"), ie = O(!1), ae = r(() => ms(t.value)), oe = r(() => hs(t.value)), se = r(() => gs(t.value)), ce = r(() => $(t.value).filterOptionsSortDescription), le = r(() => $(t.value).filterOptionsSortTooltip), ue = r(() => !$(t.value).filterSearch), de = r(() => $(t.value).emptyFilterResultsRenderer), K = r(() => $(t.value).filterOptionsRenderer), fe = r(() => $(t.value).filterHeaderRenderer), pe = r(() => $(t.value).filterFooterRenderer), me = r(() => oe.value ? B.value.length >= oe.value : !1), he = r(() => te.value.filter((e) => e != null && !B.value.includes(e))), ge = r(() => P.value[U.value]), _e = r(() => vs(t.value)), ve = O({
|
|
4370
4376
|
selectedParentIds: [],
|
|
4371
4377
|
selectedChildrenIds: [],
|
|
4372
4378
|
deselectedChildrenIds: []
|
|
4373
|
-
}),
|
|
4374
|
-
if (
|
|
4379
|
+
}), q = r(() => te.value.length === 1 && te.value[0] === null && B.value.length === 0), ye = (e = !1) => {
|
|
4380
|
+
if (_e.value) return;
|
|
4375
4381
|
let n = [];
|
|
4376
|
-
if (
|
|
4382
|
+
if (z.value && a.value) {
|
|
4377
4383
|
let e = a.value.getAdvancedFilterModel();
|
|
4378
|
-
n = Js(
|
|
4384
|
+
n = Js(U.value, e);
|
|
4379
4385
|
} else n = Vs(t.value, c.value);
|
|
4380
|
-
e ?
|
|
4381
|
-
},
|
|
4382
|
-
let n =
|
|
4386
|
+
e ? B.value = n : B.value = Array.from(new Set([...p(U.value), ...n]));
|
|
4387
|
+
}, be = (e) => [...e].sort((e, t) => {
|
|
4388
|
+
let n = B.value.includes(e), r = B.value.includes(t);
|
|
4383
4389
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
4384
|
-
}),
|
|
4390
|
+
}), xe = async (e = !1, n = !1) => {
|
|
4385
4391
|
if (!a.value) return;
|
|
4386
|
-
let r = x.value[
|
|
4387
|
-
if (
|
|
4392
|
+
let r = x.value[U.value] ?? !1, i = d.value[U.value] !== !0, o = e && i && (r || n);
|
|
4393
|
+
if (z.value) {
|
|
4388
4394
|
if (h.value && o) {
|
|
4389
4395
|
let e = await s(t.value, {
|
|
4390
4396
|
api: a.value,
|
|
4391
4397
|
filterModel: c.value ?? void 0
|
|
4392
4398
|
});
|
|
4393
|
-
b(
|
|
4399
|
+
b(U.value, e), x.value[U.value] = !1;
|
|
4394
4400
|
}
|
|
4395
4401
|
return;
|
|
4396
4402
|
}
|
|
@@ -4400,11 +4406,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4400
4406
|
l.refreshFilterValues();
|
|
4401
4407
|
return;
|
|
4402
4408
|
}
|
|
4403
|
-
b(
|
|
4409
|
+
b(U.value, l.getFilterValues()), x.value[U.value] = !1;
|
|
4404
4410
|
}
|
|
4405
|
-
},
|
|
4406
|
-
let t = f(
|
|
4407
|
-
if (t?.colField &&
|
|
4411
|
+
}, Se = (e) => {
|
|
4412
|
+
let t = f(U.value, e), n = ae.value;
|
|
4413
|
+
if (t?.colField && _e.value) {
|
|
4408
4414
|
let e = a.value?.getColumnDef(t?.colField);
|
|
4409
4415
|
n = e ? ms(e) : n;
|
|
4410
4416
|
}
|
|
@@ -4412,22 +4418,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4412
4418
|
value: e,
|
|
4413
4419
|
context: t
|
|
4414
4420
|
}) : t?.label || e;
|
|
4415
|
-
},
|
|
4421
|
+
}, Ce = (e) => {
|
|
4416
4422
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
4417
|
-
let n = f(
|
|
4423
|
+
let n = f(U.value, e);
|
|
4418
4424
|
return n == null || n.label == null;
|
|
4419
|
-
},
|
|
4420
|
-
let n = f(
|
|
4425
|
+
}, we = (e) => q.value || f(U.value, e)?.isSelectable === !1 ? !0 : se.value ? !1 : me.value && !B.value.includes(e), Te = (e) => !e || !a.value ? "" : a.value.getColumnDef(e)?.headerName || e, Ee = (e) => {
|
|
4426
|
+
let n = f(U.value, e), r = (n?.children?.length ?? 0) > 0, i = ce.value ? "suggestions" : null;
|
|
4421
4427
|
n?.isPreference && (i = "preferences");
|
|
4422
|
-
let s = null, l = n?.matchedValue, u =
|
|
4423
|
-
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField &&
|
|
4428
|
+
let s = null, l = n?.matchedValue, u = Te(n?.matchedField);
|
|
4429
|
+
l && u ? s = l ? `${u}: ${l}` : "" : n?.subText ? s = n.subText : n?.colField && _e.value && !r && (s = Te(n?.colField));
|
|
4424
4430
|
let d, p, m;
|
|
4425
4431
|
if (r && (d = n.children.map((e) => ({
|
|
4426
4432
|
id: e.value,
|
|
4427
4433
|
text: e.label || e.value,
|
|
4428
4434
|
subText: e.subText,
|
|
4429
4435
|
subduedText: e.subduedText,
|
|
4430
|
-
disabled:
|
|
4436
|
+
disabled: we(e.value),
|
|
4431
4437
|
context: e,
|
|
4432
4438
|
classList: ["option-label"]
|
|
4433
4439
|
})), p = n.totalChildCount, p && p > d.length && n.value != null)) {
|
|
@@ -4446,7 +4452,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4446
4452
|
text: e.label || e.value,
|
|
4447
4453
|
subText: e.subText,
|
|
4448
4454
|
subduedText: e.subduedText,
|
|
4449
|
-
disabled:
|
|
4455
|
+
disabled: we(e.value),
|
|
4450
4456
|
context: e,
|
|
4451
4457
|
classList: ["option-label"]
|
|
4452
4458
|
}));
|
|
@@ -4454,55 +4460,55 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4454
4460
|
}
|
|
4455
4461
|
return {
|
|
4456
4462
|
id: e || "",
|
|
4457
|
-
text:
|
|
4463
|
+
text: Se(e) || "",
|
|
4458
4464
|
searchText: l,
|
|
4459
4465
|
subduedText: n?.subduedText,
|
|
4460
4466
|
subText: s || void 0,
|
|
4461
4467
|
groupingLabel: i || "",
|
|
4462
|
-
disabled: r ? !1 :
|
|
4468
|
+
disabled: r ? !1 : we(e),
|
|
4463
4469
|
context: n || { value: e || "" },
|
|
4464
4470
|
classList: ["option-label"],
|
|
4465
4471
|
children: d,
|
|
4466
4472
|
totalChildCount: p,
|
|
4467
4473
|
handleSeeMore: m
|
|
4468
4474
|
};
|
|
4469
|
-
},
|
|
4470
|
-
let e = [...
|
|
4471
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
4472
|
-
}),
|
|
4473
|
-
get: () =>
|
|
4474
|
-
let t = f(
|
|
4475
|
+
}, De = r(() => {
|
|
4476
|
+
let e = [..._e.value ? [] : B.value.filter((e) => e != null && e !== "" && !te.value.includes(e)), ...te.value];
|
|
4477
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ce(e)).map(Ee);
|
|
4478
|
+
}), Oe = r({
|
|
4479
|
+
get: () => B.value.map((e) => {
|
|
4480
|
+
let t = f(U.value, e), n = t?.colField ? Te(t.colField) : void 0;
|
|
4475
4481
|
return {
|
|
4476
4482
|
id: e,
|
|
4477
|
-
text:
|
|
4483
|
+
text: Se(e),
|
|
4478
4484
|
subText: n,
|
|
4479
4485
|
context: t || { value: e || "" }
|
|
4480
4486
|
};
|
|
4481
4487
|
}),
|
|
4482
4488
|
set: (e) => {
|
|
4483
|
-
|
|
4484
|
-
let t = e.length === 0;
|
|
4485
|
-
!
|
|
4486
|
-
!
|
|
4489
|
+
B.value = e.map((e) => e.id);
|
|
4490
|
+
let t = e.length === 0 && !ie.value;
|
|
4491
|
+
!_e.value && (t || !C.value || G.value) && (Ae(), F.value.forEach((e) => {
|
|
4492
|
+
!B.value.includes(e) && L.value === U.value && I(e);
|
|
4487
4493
|
})), i?.();
|
|
4488
4494
|
}
|
|
4489
|
-
}),
|
|
4495
|
+
}), ke = (e) => {
|
|
4490
4496
|
let t = {};
|
|
4491
4497
|
for (let n of e) {
|
|
4492
4498
|
if (n === null) continue;
|
|
4493
|
-
let e = f(
|
|
4499
|
+
let e = f(U.value, n)?.colField || U.value;
|
|
4494
4500
|
t[e] || (t[e] = []), t[e].push(n);
|
|
4495
4501
|
}
|
|
4496
4502
|
return t;
|
|
4497
|
-
},
|
|
4503
|
+
}, Ae = async (e, n) => {
|
|
4498
4504
|
if (!a.value) return;
|
|
4499
4505
|
if (e !== void 0 && n !== void 0) {
|
|
4500
|
-
let r = e ||
|
|
4501
|
-
if (
|
|
4506
|
+
let r = e || U.value, i = n;
|
|
4507
|
+
if (z.value) {
|
|
4502
4508
|
let e = Os(r, i || []);
|
|
4503
4509
|
if (G.value) {
|
|
4504
4510
|
let t = l.value;
|
|
4505
|
-
l.value = Ks(t, e, r);
|
|
4511
|
+
l.value = Ks(t, e, r), E(new Set([r]));
|
|
4506
4512
|
return;
|
|
4507
4513
|
}
|
|
4508
4514
|
let t = Ks(a.value.getAdvancedFilterModel(), e, r);
|
|
@@ -4525,10 +4531,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4525
4531
|
});
|
|
4526
4532
|
return;
|
|
4527
4533
|
}
|
|
4528
|
-
let r =
|
|
4529
|
-
if (
|
|
4534
|
+
let r = ke(B.value), i = $(t.value);
|
|
4535
|
+
if (z.value) {
|
|
4530
4536
|
let e = G.value ? l.value : a.value.getAdvancedFilterModel();
|
|
4531
|
-
if (
|
|
4537
|
+
if (_e.value) {
|
|
4532
4538
|
let t = i.aggregateFields, n = [];
|
|
4533
4539
|
for (let e of t) {
|
|
4534
4540
|
let t = r[e] || [];
|
|
@@ -4551,10 +4557,10 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4551
4557
|
} : t;
|
|
4552
4558
|
}
|
|
4553
4559
|
} else {
|
|
4554
|
-
let t =
|
|
4555
|
-
e = Ks(e, n,
|
|
4560
|
+
let t = B.value.length > 0 ? B.value : null, n = Os(U.value, t || []);
|
|
4561
|
+
e = Ks(e, n, U.value);
|
|
4556
4562
|
}
|
|
4557
|
-
if (G.value) l.value = e;
|
|
4563
|
+
if (G.value) l.value = e, E(_e.value ? new Set(i.aggregateFields) : new Set([U.value]));
|
|
4558
4564
|
else {
|
|
4559
4565
|
let t = e;
|
|
4560
4566
|
v(() => {
|
|
@@ -4563,37 +4569,39 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4563
4569
|
}
|
|
4564
4570
|
return;
|
|
4565
4571
|
}
|
|
4566
|
-
let o =
|
|
4572
|
+
let o = B.value.length > 0 ? B.value : null;
|
|
4567
4573
|
if (G.value) {
|
|
4568
4574
|
let e = await Bs(a.value, t.value, o);
|
|
4569
4575
|
l.value = {
|
|
4570
4576
|
...l.value,
|
|
4571
|
-
[
|
|
4577
|
+
[U.value]: e
|
|
4572
4578
|
};
|
|
4573
4579
|
return;
|
|
4574
4580
|
}
|
|
4575
4581
|
let s = await Bs(a.value, t.value, o);
|
|
4576
|
-
a.value.setColumnFilterModel(
|
|
4582
|
+
a.value.setColumnFilterModel(U.value, s).then(() => {
|
|
4577
4583
|
a.value && a.value.onFilterChanged();
|
|
4578
4584
|
});
|
|
4579
|
-
},
|
|
4580
|
-
e &&
|
|
4581
|
-
},
|
|
4582
|
-
|
|
4583
|
-
},
|
|
4584
|
-
|
|
4585
|
-
},
|
|
4585
|
+
}, je = (e, t) => {
|
|
4586
|
+
e && se.value ? B.value = [e] : e && !B.value.includes(e) && (B.value = [...B.value, e]), (!C.value || G.value) && (t && t !== U.value ? Ae(t, [e]) : Ae()), i?.();
|
|
4587
|
+
}, Me = (e, t) => {
|
|
4588
|
+
B.value = B.value.filter((t) => t !== e), (!C.value || G.value) && (t && t !== U.value ? Ae(t, null) : Ae()), i?.();
|
|
4589
|
+
}, Ne = () => {
|
|
4590
|
+
ie.value = !0;
|
|
4591
|
+
}, Pe = () => {
|
|
4592
|
+
ie.value = !1, ne.value = "", C.value && !G.value && (_e.value ? Ie(ve.value) : Ae());
|
|
4593
|
+
}, Fe = async (e) => {
|
|
4586
4594
|
if (!a.value) return;
|
|
4587
|
-
let n =
|
|
4595
|
+
let n = te.value.length;
|
|
4588
4596
|
await s(t.value, {
|
|
4589
4597
|
api: a.value,
|
|
4590
4598
|
filterModel: c.value ?? void 0,
|
|
4591
4599
|
offset: n,
|
|
4592
4600
|
parentId: e.parentId
|
|
4593
4601
|
});
|
|
4594
|
-
},
|
|
4595
|
-
if (!a.value || !
|
|
4596
|
-
|
|
4602
|
+
}, Ie = (e) => {
|
|
4603
|
+
if (!a.value || !_e.value) return;
|
|
4604
|
+
ve.value = e;
|
|
4597
4605
|
let n = $(t.value).aggregateFields || [], r = n[0];
|
|
4598
4606
|
if (!r) return;
|
|
4599
4607
|
let { selectedParentIds: o, selectedChildrenIds: s, deselectedChildrenIds: c } = e, u = [];
|
|
@@ -4637,90 +4645,91 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4637
4645
|
}
|
|
4638
4646
|
i?.();
|
|
4639
4647
|
};
|
|
4640
|
-
return
|
|
4641
|
-
|
|
4642
|
-
}, { deep: !0 }),
|
|
4643
|
-
e && S.value &&
|
|
4644
|
-
}),
|
|
4648
|
+
return V(ve, (e) => {
|
|
4649
|
+
_e.value && (C.value && !G.value || Ie(e));
|
|
4650
|
+
}, { deep: !0 }), V(() => x.value[U.value], (e) => {
|
|
4651
|
+
e && S.value && xe(!0);
|
|
4652
|
+
}), V(() => l.value, () => {
|
|
4645
4653
|
if (G.value) {
|
|
4646
|
-
if (
|
|
4654
|
+
if (z.value) {
|
|
4647
4655
|
let e = [], n = l.value;
|
|
4648
|
-
if (
|
|
4656
|
+
if (_e.value) {
|
|
4649
4657
|
let r = $(t.value);
|
|
4650
4658
|
for (let t of r.aggregateFields) {
|
|
4651
4659
|
let r = Js(t, n);
|
|
4652
4660
|
e.push(...r);
|
|
4653
4661
|
}
|
|
4654
|
-
} else e = Js(
|
|
4655
|
-
|
|
4662
|
+
} else e = Js(U.value, n);
|
|
4663
|
+
B.value = e;
|
|
4656
4664
|
return;
|
|
4657
4665
|
}
|
|
4658
|
-
|
|
4666
|
+
W.value === "agSetColumnFilter" ? B.value = l.value?.[U.value]?.values || [] : W.value === "agMultiColumnFilter" ? B.value = l.value?.[U.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${W.value} is not yet supported.`);
|
|
4659
4667
|
}
|
|
4660
|
-
}),
|
|
4661
|
-
if (G.value ||
|
|
4662
|
-
if (
|
|
4663
|
-
let e = c.value, t = Js(
|
|
4664
|
-
|
|
4668
|
+
}), V(() => c.value, () => {
|
|
4669
|
+
if (G.value || _e.value) return;
|
|
4670
|
+
if (z.value) {
|
|
4671
|
+
let e = c.value, t = Js(U.value, e);
|
|
4672
|
+
ye(B.value.some((e) => e !== null && !t.includes(e)));
|
|
4665
4673
|
return;
|
|
4666
4674
|
}
|
|
4667
4675
|
let e = Vs(t.value, c.value);
|
|
4668
|
-
|
|
4669
|
-
}, { deep: !0 }),
|
|
4670
|
-
|
|
4671
|
-
}),
|
|
4672
|
-
e && h.value && (x.value[
|
|
4673
|
-
}, { immediate: !0 }),
|
|
4676
|
+
ye(B.value.some((t) => !e.includes(t)));
|
|
4677
|
+
}, { deep: !0 }), V(() => u.value, () => {
|
|
4678
|
+
B.value = [];
|
|
4679
|
+
}), V(() => a.value, (e) => {
|
|
4680
|
+
e && h.value && (x.value[U.value] = !0);
|
|
4681
|
+
}, { immediate: !0 }), V(() => ee.value, async () => {
|
|
4674
4682
|
S.value && (G.value ? setTimeout(async () => {
|
|
4675
|
-
await
|
|
4676
|
-
}, 2e3) : await
|
|
4677
|
-
}), qe(() =>
|
|
4678
|
-
await
|
|
4683
|
+
await xe(!0);
|
|
4684
|
+
}, 2e3) : await xe(!0)), ye();
|
|
4685
|
+
}), qe(() => ne.value, async () => {
|
|
4686
|
+
await xe(!0, !0);
|
|
4679
4687
|
}, { debounce: 300 }), w(() => {
|
|
4680
|
-
|
|
4688
|
+
k(U.value);
|
|
4681
4689
|
let e = $(t.value);
|
|
4682
|
-
e.aggregateFields?.length &&
|
|
4690
|
+
e.aggregateFields?.length && D(U.value, e.aggregateFields), ye(), _e.value || $(t.value).metadataDisplayFields?.length && B.value.some((e) => Ce(e)) && xe(!0, !0);
|
|
4683
4691
|
}), T(() => {
|
|
4684
|
-
|
|
4692
|
+
A(U.value), C.value && !G.value && (_e.value ? Ie(ve.value) : Ae());
|
|
4685
4693
|
}), {
|
|
4686
|
-
selectedValues:
|
|
4687
|
-
filterValues:
|
|
4688
|
-
isLoading:
|
|
4689
|
-
filterSearchText:
|
|
4690
|
-
rowsLoading:
|
|
4694
|
+
selectedValues: B,
|
|
4695
|
+
filterValues: te,
|
|
4696
|
+
isLoading: H,
|
|
4697
|
+
filterSearchText: ne,
|
|
4698
|
+
rowsLoading: R,
|
|
4691
4699
|
gridApi: a,
|
|
4692
|
-
filterField:
|
|
4693
|
-
filterType:
|
|
4694
|
-
filterDisplayName:
|
|
4700
|
+
filterField: U,
|
|
4701
|
+
filterType: W,
|
|
4702
|
+
filterDisplayName: re,
|
|
4695
4703
|
isInFilterPanel: G,
|
|
4696
|
-
maxSelectableValues:
|
|
4697
|
-
isSingleSelect:
|
|
4698
|
-
selectionLimitReached:
|
|
4699
|
-
suggestedValues:
|
|
4700
|
-
displayedFilterValues:
|
|
4701
|
-
selectedFilterValues:
|
|
4702
|
-
showSearchBar:
|
|
4703
|
-
emptyFilterResultsRenderer:
|
|
4704
|
-
filterOptionsRenderer:
|
|
4705
|
-
filterHeaderRenderer:
|
|
4706
|
-
filterFooterRenderer:
|
|
4707
|
-
filterOptionsSortDescription:
|
|
4708
|
-
filterOptionsSortTooltip:
|
|
4709
|
-
totalOptionCount:
|
|
4710
|
-
isAggregate:
|
|
4711
|
-
cascadeSelectionState:
|
|
4704
|
+
maxSelectableValues: oe,
|
|
4705
|
+
isSingleSelect: se,
|
|
4706
|
+
selectionLimitReached: me,
|
|
4707
|
+
suggestedValues: he,
|
|
4708
|
+
displayedFilterValues: De,
|
|
4709
|
+
selectedFilterValues: Oe,
|
|
4710
|
+
showSearchBar: ue,
|
|
4711
|
+
emptyFilterResultsRenderer: de,
|
|
4712
|
+
filterOptionsRenderer: K,
|
|
4713
|
+
filterHeaderRenderer: fe,
|
|
4714
|
+
filterFooterRenderer: pe,
|
|
4715
|
+
filterOptionsSortDescription: ce,
|
|
4716
|
+
filterOptionsSortTooltip: le,
|
|
4717
|
+
totalOptionCount: ge,
|
|
4718
|
+
isAggregate: _e,
|
|
4719
|
+
cascadeSelectionState: ve,
|
|
4712
4720
|
filterValueContext: f,
|
|
4713
|
-
formatDisplayValue:
|
|
4714
|
-
isUnresolvedMetadataValue:
|
|
4715
|
-
getLatestFilterValues:
|
|
4716
|
-
addSelectedValue:
|
|
4717
|
-
removeSelectedValue:
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4721
|
+
formatDisplayValue: Se,
|
|
4722
|
+
isUnresolvedMetadataValue: Ce,
|
|
4723
|
+
getLatestFilterValues: xe,
|
|
4724
|
+
addSelectedValue: je,
|
|
4725
|
+
removeSelectedValue: Me,
|
|
4726
|
+
handleDropdownOpen: Ne,
|
|
4727
|
+
handleDropdownClosed: Pe,
|
|
4728
|
+
handleSeeMore: Fe,
|
|
4729
|
+
handleCascadeSelectionState: Ie,
|
|
4730
|
+
getColDisplayNameForField: Te,
|
|
4731
|
+
disableFilterValue: we,
|
|
4732
|
+
updateFilterModelWithSelectedValues: Ae
|
|
4724
4733
|
};
|
|
4725
4734
|
}, ac = {
|
|
4726
4735
|
key: 0,
|
|
@@ -4777,39 +4786,41 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4777
4786
|
"handle-settings-icon"
|
|
4778
4787
|
],
|
|
4779
4788
|
setup(e, { emit: n }) {
|
|
4780
|
-
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer:
|
|
4789
|
+
let d = e, f = n, { selectedValues: m, isLoading: g, filterSearchText: _, rowsLoading: v, gridApi: x, filterField: S, filterDisplayName: C, isInFilterPanel: w, suggestedValues: T, displayedFilterValues: D, selectedFilterValues: O, showSearchBar: A, emptyFilterResultsRenderer: j, filterOptionsRenderer: N, filterHeaderRenderer: L, filterFooterRenderer: R, filterOptionsSortDescription: ee, filterOptionsSortTooltip: z, filterValueContext: B, formatDisplayValue: te, isUnresolvedMetadataValue: V, getLatestFilterValues: ne, addSelectedValue: U, removeSelectedValue: W, handleDropdownOpen: re, handleDropdownClosed: G, handleSeeMore: ie, getColDisplayNameForField: ae, totalOptionCount: oe, isAggregate: se, cascadeSelectionState: ce } = ic({
|
|
4781
4790
|
filterColDef: F(d, "filterColDef"),
|
|
4782
4791
|
filterStyle: F(d, "filterStyle"),
|
|
4783
4792
|
onSelectionChanged: () => f("filter-selection-changed")
|
|
4784
|
-
}), { handleFocusUpdate:
|
|
4785
|
-
if (
|
|
4793
|
+
}), { handleFocusUpdate: le, isFocused: ue, removeFocus: de, isFocusable: K, canRemoveFocus: fe } = Ko(), pe = r(() => {
|
|
4794
|
+
if (K(vs(d.filterColDef) ? $(d.filterColDef)?.aggregateFields || [] : [S.value])) return {
|
|
4786
4795
|
icon: "focus",
|
|
4787
|
-
isDisabled: (e) => !
|
|
4796
|
+
isDisabled: (e) => !K([e.context?.colField || S.value]),
|
|
4788
4797
|
tooltipText: (e) => {
|
|
4789
4798
|
let t = e.context?.colField || S.value;
|
|
4790
|
-
if (!
|
|
4791
|
-
let n =
|
|
4792
|
-
return n && !
|
|
4799
|
+
if (!K([t])) return `Group by ${ae(t)} to enable ${d.focusText}`;
|
|
4800
|
+
let n = ue(e.id, t);
|
|
4801
|
+
return n && !fe() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
4793
4802
|
},
|
|
4794
4803
|
action: (e) => {
|
|
4795
4804
|
e && !m.value.includes(e.id) && U(e.id, e.context?.colField);
|
|
4796
4805
|
let t = e.context?.colField || S.value;
|
|
4797
|
-
|
|
4806
|
+
le(e.id, t);
|
|
4798
4807
|
},
|
|
4799
4808
|
alwaysShow: (e) => {
|
|
4800
4809
|
let t = e.context?.colField || S.value;
|
|
4801
|
-
return
|
|
4810
|
+
return ue(e.id, t);
|
|
4802
4811
|
}
|
|
4803
4812
|
};
|
|
4804
|
-
}),
|
|
4805
|
-
W(e),
|
|
4806
|
-
},
|
|
4813
|
+
}), me = (e) => {
|
|
4814
|
+
W(e), ue(e, B(S.value, e)?.colField || S.value) && fe() && de(e);
|
|
4815
|
+
}, he = () => {
|
|
4816
|
+
re(), ne(!0);
|
|
4817
|
+
}, ge = () => {
|
|
4807
4818
|
G(), f("filter-closed");
|
|
4808
|
-
},
|
|
4809
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(w) ? (E(), o("ul", ac, [(E(!0), o(t, null, k(I(m), (e) => (E(), o(t, { key: `${I(C)}-${e}` }, [I(
|
|
4810
|
-
label: I(
|
|
4811
|
-
showClear: !
|
|
4812
|
-
onHandleClose: (t) =>
|
|
4819
|
+
}, _e = (e) => ue(e, B(S.value, e)?.colField || S.value);
|
|
4820
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(w) ? (E(), o("ul", ac, [(E(!0), o(t, null, k(I(m), (e) => (E(), o(t, { key: `${I(C)}-${e}` }, [I(V)(e) ? a("", !0) : (E(), o("li", oc, [u(yn, {
|
|
4821
|
+
label: I(te)(e) || "",
|
|
4822
|
+
showClear: !_e(e) || I(fe)(),
|
|
4823
|
+
onHandleClose: (t) => me(e)
|
|
4813
4824
|
}, null, 8, [
|
|
4814
4825
|
"label",
|
|
4815
4826
|
"showClear",
|
|
@@ -4819,8 +4830,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4819
4830
|
"onUpdate:modelValue": r[1] ||= (e) => h(O) ? O.value = e : null,
|
|
4820
4831
|
searchInput: I(_),
|
|
4821
4832
|
"onUpdate:searchInput": r[2] ||= (e) => h(_) ? _.value = e : null,
|
|
4822
|
-
selectionState: I(
|
|
4823
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
4833
|
+
selectionState: I(ce),
|
|
4834
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ce) ? ce.value = e : null,
|
|
4824
4835
|
"data-horizontal-filter-field": I(w) ? void 0 : I(S),
|
|
4825
4836
|
label: I(w) ? "" : I(C),
|
|
4826
4837
|
highlightSearchText: !0,
|
|
@@ -4833,7 +4844,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4833
4844
|
overlayTrigger: I(w),
|
|
4834
4845
|
options: I(D),
|
|
4835
4846
|
optionsRenderer: I(N),
|
|
4836
|
-
optionsAction:
|
|
4847
|
+
optionsAction: pe.value,
|
|
4837
4848
|
popoverCssProperties: {
|
|
4838
4849
|
maxHeight: "400px",
|
|
4839
4850
|
maxWidth: I(w) ? "300px" : "400px",
|
|
@@ -4844,63 +4855,63 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4844
4855
|
disableDropdownIcon: !!I(w),
|
|
4845
4856
|
groupings: ["preferences", "suggestions"],
|
|
4846
4857
|
isLoading: I(g),
|
|
4847
|
-
totalOptionCount: I(
|
|
4848
|
-
enableCascadeSelection: I(
|
|
4849
|
-
enableChildExpansion: I(
|
|
4850
|
-
parentSelectsAllChildren: I(
|
|
4851
|
-
countSelectedParents: I(
|
|
4852
|
-
hideParentOnChildQueryMatch: I(
|
|
4858
|
+
totalOptionCount: I(oe),
|
|
4859
|
+
enableCascadeSelection: I(se),
|
|
4860
|
+
enableChildExpansion: I(se),
|
|
4861
|
+
parentSelectsAllChildren: I(se),
|
|
4862
|
+
countSelectedParents: I(se),
|
|
4863
|
+
hideParentOnChildQueryMatch: I(se),
|
|
4853
4864
|
slotContext: {
|
|
4854
4865
|
gridApi: I(x),
|
|
4855
4866
|
filterColDef: e.filterColDef,
|
|
4856
4867
|
rowsLoading: I(v)
|
|
4857
4868
|
},
|
|
4858
|
-
onDropdownOpen:
|
|
4859
|
-
onDropdownClosed:
|
|
4860
|
-
onSeeMore: I(
|
|
4869
|
+
onDropdownOpen: he,
|
|
4870
|
+
onDropdownClosed: ge,
|
|
4871
|
+
onSeeMore: I(ie)
|
|
4861
4872
|
}, c({
|
|
4862
|
-
preferences:
|
|
4873
|
+
preferences: H(() => [s("div", sc, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(_n), {
|
|
4863
4874
|
variant: "dark",
|
|
4864
4875
|
size: "sm"
|
|
4865
4876
|
}, {
|
|
4866
|
-
label:
|
|
4877
|
+
label: H(() => [u(X, {
|
|
4867
4878
|
size: "md",
|
|
4868
4879
|
variant: "ghost",
|
|
4869
4880
|
onClick: r[0] ||= (e) => n.$emit("handle-settings-icon", I(C)),
|
|
4870
4881
|
"right-icon": "sliders-horizontal"
|
|
4871
4882
|
})]),
|
|
4872
|
-
"tooltip-content":
|
|
4883
|
+
"tooltip-content": H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
4873
4884
|
_: 1
|
|
4874
4885
|
})])]),
|
|
4875
|
-
suggestions:
|
|
4886
|
+
suggestions: H(() => [s("div", cc, [u(I(_n), {
|
|
4876
4887
|
variant: "dark",
|
|
4877
4888
|
disableInteractive: !0,
|
|
4878
4889
|
"tooltip-position": "top-left",
|
|
4879
4890
|
size: "sm",
|
|
4880
4891
|
style: { "--max-width": "200px" }
|
|
4881
4892
|
}, c({
|
|
4882
|
-
label:
|
|
4893
|
+
label: H(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", I(z) ? "suggested-title-label" : ""]) }, P(I(ee)), 3)]),
|
|
4883
4894
|
_: 2
|
|
4884
|
-
}, [I(
|
|
4895
|
+
}, [I(z) ? {
|
|
4885
4896
|
name: "tooltip-content",
|
|
4886
|
-
fn:
|
|
4897
|
+
fn: H(() => [l(P(I(z)), 1)]),
|
|
4887
4898
|
key: "0"
|
|
4888
4899
|
} : void 0]), 1024)])]),
|
|
4889
4900
|
_: 2
|
|
4890
4901
|
}, [
|
|
4891
4902
|
I(L) ? {
|
|
4892
4903
|
name: "header",
|
|
4893
|
-
fn:
|
|
4904
|
+
fn: H((e) => [(E(), i(M(I(L)), b(p(e)), null, 16))]),
|
|
4894
4905
|
key: "0"
|
|
4895
4906
|
} : void 0,
|
|
4896
4907
|
I(j) ? {
|
|
4897
4908
|
name: "no-results",
|
|
4898
|
-
fn:
|
|
4909
|
+
fn: H((e) => [(E(), i(M(I(j)), b(p(e)), null, 16))]),
|
|
4899
4910
|
key: "1"
|
|
4900
4911
|
} : void 0,
|
|
4901
|
-
I(
|
|
4912
|
+
I(R) ? {
|
|
4902
4913
|
name: "footer",
|
|
4903
|
-
fn:
|
|
4914
|
+
fn: H((e) => [(E(), i(M(I(R)), b(p(e)), null, 16))]),
|
|
4904
4915
|
key: "2"
|
|
4905
4916
|
} : void 0
|
|
4906
4917
|
]), 1032, /* @__PURE__ */ "modelValue.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.hideParentOnChildQueryMatch.slotContext.onSeeMore".split("."))]), I(w) ? (E(), o("div", lc, [I(T).length > 0 ? (E(), o("div", uc, [s("ul", dc, [u(I(_n), {
|
|
@@ -4910,11 +4921,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4910
4921
|
size: "sm",
|
|
4911
4922
|
style: { "--max-width": "200px" }
|
|
4912
4923
|
}, c({
|
|
4913
|
-
label:
|
|
4924
|
+
label: H(() => [s("li", fc, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(z) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
4914
4925
|
_: 2
|
|
4915
|
-
}, [I(
|
|
4926
|
+
}, [I(z) ? {
|
|
4916
4927
|
name: "tooltip-content",
|
|
4917
|
-
fn:
|
|
4928
|
+
fn: H(() => [l(P(I(z)), 1)]),
|
|
4918
4929
|
key: "0"
|
|
4919
4930
|
} : void 0]), 1024), (E(!0), o(t, null, k(I(T).filter((e) => e !== "" && e != null).slice(0, pc), (e) => (E(), o("li", {
|
|
4920
4931
|
key: `${I(C)}-${e}-suggest`,
|
|
@@ -4925,15 +4936,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4925
4936
|
}
|
|
4926
4937
|
}, [u(I(Ti), {
|
|
4927
4938
|
disabled: I(g),
|
|
4928
|
-
label: I(
|
|
4929
|
-
onHandleClick: (t) => I(U)(e, I(
|
|
4939
|
+
label: I(te)(e) || "",
|
|
4940
|
+
onHandleClick: (t) => I(U)(e, I(B)(I(S), e)?.colField)
|
|
4930
4941
|
}, null, 8, [
|
|
4931
4942
|
"disabled",
|
|
4932
4943
|
"label",
|
|
4933
4944
|
"onHandleClick"
|
|
4934
4945
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
4935
4946
|
}
|
|
4936
|
-
}), [["__scopeId", "data-v-
|
|
4947
|
+
}), [["__scopeId", "data-v-c030243b"]]), hc = { class: "pv-flex" }, gc = { class: "pv-flex" }, _c = { class: "pv-flex pv-space-between pv-stack-8" }, vc = { class: "pv-text-title-lg" }, yc = {
|
|
4937
4948
|
id: "filter-vertical-drawer",
|
|
4938
4949
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
4939
4950
|
style: { height: "100%" }
|
|
@@ -4988,7 +4999,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4988
4999
|
return;
|
|
4989
5000
|
}
|
|
4990
5001
|
n.filterType === "join" && Array.isArray(n.conditions) && n.conditions.forEach((e) => L(e, t));
|
|
4991
|
-
},
|
|
5002
|
+
}, R = r(() => {
|
|
4992
5003
|
let e = _.value;
|
|
4993
5004
|
if (f.value && n.value) {
|
|
4994
5005
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -4996,11 +5007,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
4996
5007
|
}
|
|
4997
5008
|
let t = _.value || {};
|
|
4998
5009
|
return Object.keys(t).length;
|
|
4999
|
-
}),
|
|
5000
|
-
|
|
5001
|
-
},
|
|
5010
|
+
}), ee = O(!1), z = () => {
|
|
5011
|
+
ee.value = !0;
|
|
5012
|
+
}, B = () => {
|
|
5002
5013
|
if (n.value) {
|
|
5003
|
-
|
|
5014
|
+
ee.value = !1, v(), f.value ? g.value = n.value.getAdvancedFilterModel() : g.value = n.value.getFilterModel(), w.value = !0;
|
|
5004
5015
|
for (let e of M.value) {
|
|
5005
5016
|
let t = e.field;
|
|
5006
5017
|
if (!t) continue;
|
|
@@ -5011,14 +5022,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5011
5022
|
});
|
|
5012
5023
|
}
|
|
5013
5024
|
}
|
|
5014
|
-
}, { clearAllFocuses:
|
|
5015
|
-
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1,
|
|
5016
|
-
},
|
|
5025
|
+
}, { clearAllFocuses: te } = Ko(), V = () => {
|
|
5026
|
+
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, te(), T.value = !1);
|
|
5027
|
+
}, ne = () => {
|
|
5017
5028
|
w.value = !1, D.value = "";
|
|
5018
5029
|
}, U = () => {
|
|
5019
|
-
b(),
|
|
5030
|
+
b(), ne();
|
|
5020
5031
|
}, W = () => {
|
|
5021
|
-
b(),
|
|
5032
|
+
b(), ee.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), ne();
|
|
5022
5033
|
};
|
|
5023
5034
|
return (e, r) => (E(), o(t, null, [s("div", hc, [
|
|
5024
5035
|
(E(!0), o(t, null, k(F.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(mc, {
|
|
@@ -5037,19 +5048,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5037
5048
|
s("div", gc, [p.enableVerticalPanel ? (E(), i(I(X), {
|
|
5038
5049
|
key: 0,
|
|
5039
5050
|
label: "All Filters",
|
|
5040
|
-
onClick:
|
|
5051
|
+
onClick: B,
|
|
5041
5052
|
variant: "ghost",
|
|
5042
5053
|
"left-icon": "filter"
|
|
5043
|
-
})) : a("", !0),
|
|
5054
|
+
})) : a("", !0), R.value > 0 ? (E(), o("button", {
|
|
5044
5055
|
key: 1,
|
|
5045
5056
|
class: "pv-button-ghost",
|
|
5046
5057
|
onClick: r[1] ||= (e) => T.value = !0
|
|
5047
5058
|
}, [
|
|
5048
5059
|
u(I(rn), { name: "close" }),
|
|
5049
5060
|
r[12] ||= l(" Clear All Filters ", -1),
|
|
5050
|
-
|
|
5061
|
+
R.value > 0 ? (E(), i(I(cn), {
|
|
5051
5062
|
key: 0,
|
|
5052
|
-
value:
|
|
5063
|
+
value: R.value,
|
|
5053
5064
|
variant: "tertiary"
|
|
5054
5065
|
}, null, 8, ["value"])) : a("", !0)
|
|
5055
5066
|
])) : a("", !0)]),
|
|
@@ -5065,7 +5076,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5065
5076
|
"z-index": "10"
|
|
5066
5077
|
}
|
|
5067
5078
|
}, {
|
|
5068
|
-
header:
|
|
5079
|
+
header: H(() => [s("div", _c, [s("p", vc, "All Filters (" + P(M.value.length) + ")", 1), s("button", {
|
|
5069
5080
|
class: "pv-button-ghost",
|
|
5070
5081
|
onClick: r[2] ||= (e) => U()
|
|
5071
5082
|
}, [u(I(rn), { name: "close" })])]), u(I(Ai), {
|
|
@@ -5073,14 +5084,14 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5073
5084
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
5074
5085
|
placeholder: "Search Filters"
|
|
5075
5086
|
}, null, 8, ["modelValue"])]),
|
|
5076
|
-
footer:
|
|
5087
|
+
footer: H(() => [s("div", wc, [s("button", {
|
|
5077
5088
|
class: "pv-button-ghost",
|
|
5078
|
-
onClick: r[5] ||= (e) =>
|
|
5089
|
+
onClick: r[5] ||= (e) => V()
|
|
5079
5090
|
}, "Clear All"), s("div", Tc, [u(I(X), {
|
|
5080
5091
|
variant: "ghost",
|
|
5081
5092
|
label: "Cancel",
|
|
5082
5093
|
onClick: r[6] ||= (e) => U()
|
|
5083
|
-
}),
|
|
5094
|
+
}), ee.value ? (E(), i(I(X), {
|
|
5084
5095
|
key: 0,
|
|
5085
5096
|
variant: "primary",
|
|
5086
5097
|
label: "Apply",
|
|
@@ -5091,7 +5102,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5091
5102
|
label: "No Changes",
|
|
5092
5103
|
disabled: ""
|
|
5093
5104
|
}))])])]),
|
|
5094
|
-
default:
|
|
5105
|
+
default: H(() => [s("div", yc, [s("div", bc, [(E(!0), o(t, null, k(N.value, (t, c) => (E(), o("div", {
|
|
5095
5106
|
key: t.field,
|
|
5096
5107
|
class: y([{ "pv-border-bottom": c < N.value.length - 1 }, "pv-stack-12"])
|
|
5097
5108
|
}, [s("details", xc, [s("summary", Sc, [s("span", Cc, P(t.headerName), 1)]), s("div", null, [I(n) ? (E(), i(mc, {
|
|
@@ -5101,7 +5112,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5101
5112
|
filterColDef: t,
|
|
5102
5113
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
5103
5114
|
"focus-text": p.focusText,
|
|
5104
|
-
onFilterSelectionChanged:
|
|
5115
|
+
onFilterSelectionChanged: z,
|
|
5105
5116
|
onHandleSettingsIcon: r[4] ||= (t) => e.$emit("handle-settings-icon", t)
|
|
5106
5117
|
}, null, 8, [
|
|
5107
5118
|
"enable-focus-view",
|
|
@@ -5117,8 +5128,8 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5117
5128
|
header: "Clear All Filters",
|
|
5118
5129
|
style: { top: "50%" }
|
|
5119
5130
|
}, {
|
|
5120
|
-
body:
|
|
5121
|
-
footer:
|
|
5131
|
+
body: H(() => [...r[13] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
5132
|
+
footer: H(() => [s("div", Ec, [u(I(X), {
|
|
5122
5133
|
label: "Cancel",
|
|
5123
5134
|
variant: "secondary",
|
|
5124
5135
|
size: "lg",
|
|
@@ -5127,7 +5138,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5127
5138
|
label: "Clear All Filters",
|
|
5128
5139
|
variant: "primary",
|
|
5129
5140
|
size: "lg",
|
|
5130
|
-
onClick:
|
|
5141
|
+
onClick: V
|
|
5131
5142
|
})])]),
|
|
5132
5143
|
_: 1
|
|
5133
5144
|
}, 8, ["modelValue"])], 64));
|
|
@@ -5166,7 +5177,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5166
5177
|
}, I = () => {
|
|
5167
5178
|
f.value && l.params.progressSort(!1);
|
|
5168
5179
|
};
|
|
5169
|
-
|
|
5180
|
+
V(D, (e) => {
|
|
5170
5181
|
if (!e) return;
|
|
5171
5182
|
let t = l.params.column.getAggFunc();
|
|
5172
5183
|
if (e.id === t) return;
|
|
@@ -5757,7 +5768,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5757
5768
|
} : e.request.filterModel = s;
|
|
5758
5769
|
} else {
|
|
5759
5770
|
let t = e.request.filterModel;
|
|
5760
|
-
e.request.filterModel = Is(
|
|
5771
|
+
e.request.filterModel = Is(B, t, s);
|
|
5761
5772
|
}
|
|
5762
5773
|
e.success = (e) => {
|
|
5763
5774
|
if (we.value = !1, f.enableFocusView && ot.value.length > 0 && at.value && e.rowData) {
|
|
@@ -5810,23 +5821,23 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5810
5821
|
}
|
|
5811
5822
|
};
|
|
5812
5823
|
return f.defaultColDefOverrides && Object.assign(e, f.defaultColDefOverrides), e;
|
|
5813
|
-
})(), L = O(void 0),
|
|
5824
|
+
})(), L = O(void 0), R = r(() => (e) => {
|
|
5814
5825
|
if (f.getContextMenuItems) return f.getContextMenuItems(e);
|
|
5815
5826
|
let t = [];
|
|
5816
5827
|
return t.push("copy"), f.suppressCutToClipboard || t.push("cut"), f.suppressClipboardPaste || t.push("paste"), t;
|
|
5817
|
-
}),
|
|
5828
|
+
}), ee = {
|
|
5818
5829
|
name: "Column Filter",
|
|
5819
5830
|
icon: "<span class=\"ag-icon ag-icon-filter\"></span>",
|
|
5820
5831
|
action: function(e) {
|
|
5821
5832
|
let t = e.column?.getColId();
|
|
5822
5833
|
if (e.column && vt(e.column) && (t = ut.value?.getColId() || ""), !Pt(t)) {
|
|
5823
5834
|
let n = e.api.getColumn(t)?.getColDef();
|
|
5824
|
-
n && (
|
|
5835
|
+
n && (re.value = n, v(() => {
|
|
5825
5836
|
Pt(t);
|
|
5826
5837
|
}));
|
|
5827
5838
|
}
|
|
5828
5839
|
}
|
|
5829
|
-
},
|
|
5840
|
+
}, z = (e, t) => {
|
|
5830
5841
|
if (!e) return null;
|
|
5831
5842
|
let n = { ...e };
|
|
5832
5843
|
if (t.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -5840,19 +5851,19 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5840
5851
|
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 || "";
|
|
5841
5852
|
}
|
|
5842
5853
|
return t.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => wt(e, t.dataType) : t.dataType === Q.Percent && !e.valueFormatter ? n.valueFormatter = (e) => St(e, t.valueDecimals || 0) : t.dataType === Q.Currency && !e.valueFormatter ? n.valueFormatter = (e) => xt(e, t.valueDecimals || 0) : t.dataType === Q.Integer && !e.valueFormatter ? n.valueFormatter = Ct : t.dataType === Q.Tag && !e.cellRenderer && (n.cellRenderer = Hc), n;
|
|
5843
|
-
},
|
|
5854
|
+
}, B = f.colDefs?.map((e) => {
|
|
5844
5855
|
let t = { ...e };
|
|
5845
5856
|
k && j && Ls(e) && (t = Rs(e, j));
|
|
5846
5857
|
let n = e.context;
|
|
5847
|
-
return n && (t =
|
|
5858
|
+
return n && (t = z(t, n)), t;
|
|
5848
5859
|
}).filter((e) => e != null) || [], U = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
5849
|
-
for (let e of
|
|
5860
|
+
for (let e of B) {
|
|
5850
5861
|
let t = e.context;
|
|
5851
5862
|
if (t?.aggregateFields) for (let n of t.aggregateFields) U.has(n) || console.warn(`aggregateFields references "${n}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
5852
5863
|
}
|
|
5853
|
-
let W = As(f.initialGridState,
|
|
5864
|
+
let W = As(f.initialGridState, B, f.enableAdvancedFilter), re = O(null), K = O([]), me = m(po, O(!1)), we = O(!1), He = r(() => {
|
|
5854
5865
|
if (K.value.length > 0) {
|
|
5855
|
-
let e = K.value[0], t =
|
|
5866
|
+
let e = K.value[0], t = B.find((t) => t.field === e), n = Xe.value, r = !n;
|
|
5856
5867
|
if (!r && tc(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
5857
5868
|
}
|
|
5858
5869
|
return null;
|
|
@@ -5866,22 +5877,22 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5866
5877
|
deep: !0,
|
|
5867
5878
|
debounce: 250
|
|
5868
5879
|
});
|
|
5869
|
-
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() =>
|
|
5870
|
-
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo,
|
|
5880
|
+
let it = O(null), at = r(() => Ye?.computedFocusType.value || null), ot = r(() => Ye?.computedFocuses.value || []), st = r(() => B.filter((e) => e.filter)), ct = r(() => B.filter((e) => e.enableRowGroup)), lt = r(() => B.filter((e) => e.aggFunc)), ut = O(null), dt = O({}), ft = O(1), pt = O(0);
|
|
5881
|
+
D(to, Ge), D(no, Ye), D(ro, We), D(io, Y), D(ao, it), D(oo, re), D(so, st), D(co, ct), D(lo, K), D(uo, ut), D(fo, dt), D(po, me), D(mo, we), D(ho, ft), D(go, pt), D(Do, r(() => f.enableAdvancedFilter));
|
|
5871
5882
|
let mt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ot.value.length && !at.value ? f.rowData : ps(f.rowData, at.value, ot.value));
|
|
5872
|
-
|
|
5883
|
+
V(() => ot.value, (e) => {
|
|
5873
5884
|
w("focus-update", {
|
|
5874
5885
|
filterField: at.value,
|
|
5875
5886
|
focuses: e
|
|
5876
5887
|
});
|
|
5877
|
-
}),
|
|
5888
|
+
}), V(T, (e) => {
|
|
5878
5889
|
if (!Y.value) return;
|
|
5879
|
-
let t =
|
|
5890
|
+
let t = B.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
5880
5891
|
t.length > 0 && Y.value.setColumnsVisible(t, e);
|
|
5881
5892
|
});
|
|
5882
5893
|
let ht = (e) => {
|
|
5883
5894
|
Y.value = e.api;
|
|
5884
|
-
let t = K.value.find((e) => !
|
|
5895
|
+
let t = K.value.find((e) => !B.find((t) => t.field === e)?.hide), n = !t && K.value.length > 0 ? B.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
5885
5896
|
if (f.hideAllRowGroupedColumns && K.value.forEach((e) => i.push(e)), r) {
|
|
5886
5897
|
let t = e.api.getColumn(r);
|
|
5887
5898
|
ut.value = t, i.push(r), Rt(t?.getColDef());
|
|
@@ -5992,7 +6003,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
5992
6003
|
v(() => {
|
|
5993
6004
|
let t = ut.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
5994
6005
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
5995
|
-
let t =
|
|
6006
|
+
let t = B.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
5996
6007
|
t && (i = e.api.getColumn(t));
|
|
5997
6008
|
}
|
|
5998
6009
|
i ? (ut.value = i, Rt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (ut.value = null, Rt(null));
|
|
@@ -6079,7 +6090,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6079
6090
|
"sortUnSort",
|
|
6080
6091
|
"rowUnGroup"
|
|
6081
6092
|
], n = e.column && vt(e.column) ? ut.value : e.column;
|
|
6082
|
-
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0,
|
|
6093
|
+
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, ee), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
6083
6094
|
}, W && (Xe.value = (f.enableAdvancedFilter ? W.filter?.advancedFilterModel : W.filter?.filterModel) || null, K.value = W.rowGroup?.groupColIds || []);
|
|
6084
6095
|
});
|
|
6085
6096
|
let Vt = (e) => {
|
|
@@ -6088,9 +6099,9 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6088
6099
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
6089
6100
|
n && !Gs(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !nt(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
6090
6101
|
};
|
|
6091
|
-
|
|
6102
|
+
V(() => f.initialGridState, () => {
|
|
6092
6103
|
if (f.initialGridState) {
|
|
6093
|
-
let e = As(f.initialGridState,
|
|
6104
|
+
let e = As(f.initialGridState, B, f.enableAdvancedFilter);
|
|
6094
6105
|
e && Vt(e);
|
|
6095
6106
|
}
|
|
6096
6107
|
}, { deep: !0 });
|
|
@@ -6114,15 +6125,15 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6114
6125
|
"--flex-justify": "flex-end"
|
|
6115
6126
|
}
|
|
6116
6127
|
}, {
|
|
6117
|
-
trigger:
|
|
6128
|
+
trigger: H(() => [u(I(X), {
|
|
6118
6129
|
"left-icon": "flask-conical",
|
|
6119
6130
|
variant: T.value ? "primary" : "secondary",
|
|
6120
6131
|
onClick: r[0] ||= (e) => T.value = !T.value
|
|
6121
6132
|
}, null, 8, ["variant"])]),
|
|
6122
|
-
content:
|
|
6133
|
+
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
6123
6134
|
_: 1
|
|
6124
6135
|
})) : a("", !0),
|
|
6125
|
-
|
|
6136
|
+
ne(s("div", Yc, [s("div", Xc, [(E(), i(n, {
|
|
6126
6137
|
to: e.filterTeleportLocation,
|
|
6127
6138
|
disabled: !e.filterTeleportLocation
|
|
6128
6139
|
}, [st.value.length > 0 && !f.enableInlineFilters ? (E(), i(Dc, {
|
|
@@ -6148,12 +6159,12 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6148
6159
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(Rc, {
|
|
6149
6160
|
key: 1,
|
|
6150
6161
|
getCsvData: Et
|
|
6151
|
-
})) : a("", !0)])])], 512), [[
|
|
6152
|
-
|
|
6162
|
+
})) : a("", !0)])])], 512), [[te, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
6163
|
+
ne(s("div", {
|
|
6153
6164
|
ref_key: "advancedFilterParentElement",
|
|
6154
6165
|
ref: Kt,
|
|
6155
6166
|
class: y(["pv-stack-8 pv-text-body-sm", e.hideTable ? "pv-hide" : ""])
|
|
6156
|
-
}, null, 2), [[
|
|
6167
|
+
}, null, 2), [[te, T.value && e.enableAdvancedFilter]]),
|
|
6157
6168
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
6158
6169
|
key: 1,
|
|
6159
6170
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
@@ -6175,7 +6186,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6175
6186
|
"min-height": "0",
|
|
6176
6187
|
"overflow-x": "hidden"
|
|
6177
6188
|
}
|
|
6178
|
-
}, [u(I(
|
|
6189
|
+
}, [u(I(G), _({
|
|
6179
6190
|
ref: "gridRef",
|
|
6180
6191
|
class: ["pv-data-table", I(b)],
|
|
6181
6192
|
style: [{
|
|
@@ -6204,11 +6215,11 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6204
6215
|
onUndoStarted: r[10] ||= (e) => w("undo-started", e),
|
|
6205
6216
|
aggFuncs: Bt,
|
|
6206
6217
|
autoGroupColumnDef: Lt.value,
|
|
6207
|
-
columnDefs: I(
|
|
6218
|
+
columnDefs: I(B),
|
|
6208
6219
|
debug: e.debugMode,
|
|
6209
6220
|
defaultColDef: I(F),
|
|
6210
6221
|
getChildCount: Nt,
|
|
6211
|
-
getContextMenuItems:
|
|
6222
|
+
getContextMenuItems: R.value,
|
|
6212
6223
|
getMainMenuItems: L.value,
|
|
6213
6224
|
getRowStyle: zt,
|
|
6214
6225
|
groupDefaultExpanded: Wt.value,
|
|
@@ -6350,7 +6361,7 @@ var Q = /* @__PURE__ */ function(e) {
|
|
|
6350
6361
|
l,
|
|
6351
6362
|
...n.options.filter((t) => !e.has(t.id))
|
|
6352
6363
|
];
|
|
6353
|
-
}), m =
|
|
6364
|
+
}), m = ee("sortableListRef"), h = ee("containerRef"), g = null, _ = null, v = () => {
|
|
6354
6365
|
if (!m.value) return;
|
|
6355
6366
|
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === fl);
|
|
6356
6367
|
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);
|
|
@@ -6565,12 +6576,12 @@ var Sl = {
|
|
|
6565
6576
|
disableInteractive: !0,
|
|
6566
6577
|
style: { "pointer-events": "auto" }
|
|
6567
6578
|
}, {
|
|
6568
|
-
trigger:
|
|
6579
|
+
trigger: H(() => [u(I(rn), {
|
|
6569
6580
|
size: 12,
|
|
6570
6581
|
name: "info-circle",
|
|
6571
6582
|
class: "pv-text-subdued"
|
|
6572
6583
|
})]),
|
|
6573
|
-
content:
|
|
6584
|
+
content: H(() => [s("div", wl, P(e.context.description), 1)]),
|
|
6574
6585
|
_: 1
|
|
6575
6586
|
})) : a("", !0)]));
|
|
6576
6587
|
}
|
|
@@ -6608,14 +6619,14 @@ var Sl = {
|
|
|
6608
6619
|
}), g = O(!1), _ = O(void 0), v = O(null), b = m(xo, O(void 0)), S = m(yo, O([])), C = m(So, O(void 0)), w = m(bo, O([])), T = m(vo, O([])), D = m(co, O([])), A = r(() => xl(b.value?.id || "")), j = r(() => {
|
|
6609
6620
|
let e = b.value?.id ?? "";
|
|
6610
6621
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
6611
|
-
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])),
|
|
6612
|
-
|
|
6622
|
+
}), M = m(Co, O("")), N = m(wo, O([])), F = m(To, O(void 0)), L = m(Eo, O([])), R = m(Oo, O(/* @__PURE__ */ new Set())), ee = m(ko, O([]));
|
|
6623
|
+
V(j, (e) => {
|
|
6613
6624
|
e && F.value && (F.value = void 0);
|
|
6614
6625
|
}, { immediate: !0 });
|
|
6615
|
-
let
|
|
6626
|
+
let z = m(_o, O("")), B = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
6616
6627
|
label: e.label,
|
|
6617
6628
|
value: e.value
|
|
6618
|
-
})) : []),
|
|
6629
|
+
})) : []), te = r(() => {
|
|
6619
6630
|
if (b.value) return (T.value.length > 1 ? [
|
|
6620
6631
|
"bar_stacked",
|
|
6621
6632
|
"line",
|
|
@@ -6628,7 +6639,7 @@ var Sl = {
|
|
|
6628
6639
|
"area"
|
|
6629
6640
|
]).includes(b.value?.id);
|
|
6630
6641
|
});
|
|
6631
|
-
|
|
6642
|
+
V(S, (e) => {
|
|
6632
6643
|
if (!b.value) return;
|
|
6633
6644
|
let t = b.value, n = t?.id.endsWith("_stacked"), r = e.find((e) => e.id === t.id);
|
|
6634
6645
|
if (r) {
|
|
@@ -6651,15 +6662,15 @@ var Sl = {
|
|
|
6651
6662
|
id: e.value,
|
|
6652
6663
|
text: e.label,
|
|
6653
6664
|
context: e.description ? { description: e.description } : void 0
|
|
6654
|
-
}))),
|
|
6665
|
+
}))), re = r(() => L.value.map((e) => ({
|
|
6655
6666
|
id: e.value,
|
|
6656
6667
|
text: e.label
|
|
6657
|
-
}))),
|
|
6668
|
+
}))), G = r(() => D.value.map((e) => ({
|
|
6658
6669
|
id: e.field || "",
|
|
6659
6670
|
text: e.headerName || e.field || "",
|
|
6660
6671
|
icon: rs(e.context?.dataType || null) || "circle-chevron-down"
|
|
6661
6672
|
}))), ie = r({
|
|
6662
|
-
get: () => T.value.map((e) =>
|
|
6673
|
+
get: () => T.value.map((e) => G.value.find((t) => t.id === e)).filter(Boolean),
|
|
6663
6674
|
set: (e) => {
|
|
6664
6675
|
T.value = e.map((e) => e.id);
|
|
6665
6676
|
}
|
|
@@ -6681,12 +6692,12 @@ var Sl = {
|
|
|
6681
6692
|
label: "X Axis",
|
|
6682
6693
|
icon: "align-end-horizontal",
|
|
6683
6694
|
allowDeselect: !1,
|
|
6684
|
-
availableOptions:
|
|
6695
|
+
availableOptions: G.value,
|
|
6685
6696
|
...i ? {
|
|
6686
6697
|
activeOptions: ie,
|
|
6687
6698
|
activeOptionLimit: n.rowGroupLimit
|
|
6688
6699
|
} : {
|
|
6689
|
-
currentOption:
|
|
6700
|
+
currentOption: G.value.find((e) => e.id === T.value[0]),
|
|
6690
6701
|
updateSelectedOption: (e) => {
|
|
6691
6702
|
T.value = e ? [e] : [];
|
|
6692
6703
|
}
|
|
@@ -6698,7 +6709,7 @@ var Sl = {
|
|
|
6698
6709
|
allowDeselect: !0,
|
|
6699
6710
|
availableOptions: w.value,
|
|
6700
6711
|
currentOption: w.value.find((e) => e.id === C.value?.id),
|
|
6701
|
-
disabled: !
|
|
6712
|
+
disabled: !te.value,
|
|
6702
6713
|
disabledReason: "Sorting is not available for this chart type",
|
|
6703
6714
|
updateSelectedOption: (e) => {
|
|
6704
6715
|
let t = w.value.find((t) => t.id === e);
|
|
@@ -6720,7 +6731,7 @@ var Sl = {
|
|
|
6720
6731
|
t && b && (b.value = t);
|
|
6721
6732
|
}
|
|
6722
6733
|
};
|
|
6723
|
-
if (W.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden &&
|
|
6734
|
+
if (W.value.length > 1 && e.push(t), !r.secondaryYAxis?.hidden && re.value.length > 0) {
|
|
6724
6735
|
let t = {
|
|
6725
6736
|
value: "secondary-y-axis",
|
|
6726
6737
|
label: "Metric Overlay",
|
|
@@ -6729,15 +6740,15 @@ var Sl = {
|
|
|
6729
6740
|
allowDeselect: !0,
|
|
6730
6741
|
disabled: j.value,
|
|
6731
6742
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
6732
|
-
availableOptions:
|
|
6733
|
-
currentOption:
|
|
6743
|
+
availableOptions: re.value,
|
|
6744
|
+
currentOption: re.value.find((e) => e.id === F?.value),
|
|
6734
6745
|
updateSelectedOption: (e) => {
|
|
6735
6746
|
F && (!e || F.value === e ? F.value = void 0 : F.value = e);
|
|
6736
6747
|
}
|
|
6737
6748
|
};
|
|
6738
6749
|
t && e.push(t);
|
|
6739
|
-
} else if (
|
|
6740
|
-
let t =
|
|
6750
|
+
} else if (ee.value.length > 0) {
|
|
6751
|
+
let t = ee.value.map((e) => ({
|
|
6741
6752
|
id: e.id,
|
|
6742
6753
|
text: e.label,
|
|
6743
6754
|
disabled: e.disabled,
|
|
@@ -6749,19 +6760,19 @@ var Sl = {
|
|
|
6749
6760
|
icon: "chart-line",
|
|
6750
6761
|
allowDeselect: !0,
|
|
6751
6762
|
availableOptions: t,
|
|
6752
|
-
activeOptionIds:
|
|
6753
|
-
currentOption: t.find((e) =>
|
|
6763
|
+
activeOptionIds: R.value,
|
|
6764
|
+
currentOption: t.find((e) => R.value.has(e.id)),
|
|
6754
6765
|
updateSelectedOption: (e) => {
|
|
6755
|
-
let t = new Set(
|
|
6756
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
6766
|
+
let t = new Set(R.value);
|
|
6767
|
+
t.has(e) ? t.delete(e) : t.add(e), R.value = t;
|
|
6757
6768
|
}
|
|
6758
6769
|
};
|
|
6759
6770
|
n && e.push(n);
|
|
6760
6771
|
}
|
|
6761
6772
|
let c = i ? 2 : 1;
|
|
6762
|
-
return
|
|
6773
|
+
return G.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);
|
|
6763
6774
|
});
|
|
6764
|
-
|
|
6775
|
+
V(v, (e) => {
|
|
6765
6776
|
e && (p.value = e);
|
|
6766
6777
|
});
|
|
6767
6778
|
let oe = r(() => _.value && ae.value.find((e) => e.value === _.value) || null), se = (e) => {
|
|
@@ -6774,7 +6785,7 @@ var Sl = {
|
|
|
6774
6785
|
}, ue = () => {
|
|
6775
6786
|
_.value = void 0;
|
|
6776
6787
|
};
|
|
6777
|
-
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [
|
|
6788
|
+
return (n, r) => (E(), o(t, null, [s("div", El, [s("div", null, [ne((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Dl, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(Ji, {
|
|
6778
6789
|
open: g.value,
|
|
6779
6790
|
label: "Chart Configuration",
|
|
6780
6791
|
icon: "chart-area",
|
|
@@ -6789,7 +6800,7 @@ var Sl = {
|
|
|
6789
6800
|
},
|
|
6790
6801
|
isList: !0
|
|
6791
6802
|
}, {
|
|
6792
|
-
default:
|
|
6803
|
+
default: H(() => [r[3] ||= s("div", { class: "pv-border-bottom pv-stack-8" }, [s("p", {
|
|
6793
6804
|
class: "pv-text-title-sm pv-inset-square-8",
|
|
6794
6805
|
style: {
|
|
6795
6806
|
"padding-top": "4px",
|
|
@@ -6806,7 +6817,7 @@ var Sl = {
|
|
|
6806
6817
|
class: "pv-full-width",
|
|
6807
6818
|
variant: "dark"
|
|
6808
6819
|
}, c({
|
|
6809
|
-
label:
|
|
6820
|
+
label: H(() => [u(Aa, {
|
|
6810
6821
|
config: { variant: "icon" },
|
|
6811
6822
|
disabled: e.disabled,
|
|
6812
6823
|
id: e.value,
|
|
@@ -6822,7 +6833,7 @@ var Sl = {
|
|
|
6822
6833
|
_: 2
|
|
6823
6834
|
}, [e.disabled && e.disabledReason ? {
|
|
6824
6835
|
name: "tooltip-content",
|
|
6825
|
-
fn:
|
|
6836
|
+
fn: H(() => [s("div", Al, P(e.disabledReason), 1)]),
|
|
6826
6837
|
key: "0"
|
|
6827
6838
|
} : void 0]), 1024)], 40, kl))), 128))])]),
|
|
6828
6839
|
_: 1
|
|
@@ -6831,9 +6842,9 @@ var Sl = {
|
|
|
6831
6842
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
6832
6843
|
}, [e.chartFilter ? (E(), i(fi, {
|
|
6833
6844
|
key: 0,
|
|
6834
|
-
options:
|
|
6835
|
-
modelValue: I(
|
|
6836
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
6845
|
+
options: B.value,
|
|
6846
|
+
modelValue: I(z),
|
|
6847
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(z) ? z.value = e : null
|
|
6837
6848
|
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", jl, [(E(!0), o(t, null, k(ae.value, (e) => (E(), o(t, { key: e.value }, [e.isSortableList ? a("", !0) : (E(), i(Ua, {
|
|
6838
6849
|
key: 0,
|
|
6839
6850
|
label: e.label,
|
|
@@ -6864,7 +6875,7 @@ var Sl = {
|
|
|
6864
6875
|
},
|
|
6865
6876
|
isList: !0
|
|
6866
6877
|
}, {
|
|
6867
|
-
default:
|
|
6878
|
+
default: H(() => [oe.value ? (E(), o(t, { key: 0 }, [oe.value.isSortableList ? (E(), o(t, { key: 0 }, [r[4] ||= s("p", {
|
|
6868
6879
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
6869
6880
|
style: {
|
|
6870
6881
|
"padding-left": "2px",
|
|
@@ -7181,21 +7192,21 @@ var Sl = {
|
|
|
7181
7192
|
};
|
|
7182
7193
|
})), L = nc();
|
|
7183
7194
|
D(to, L);
|
|
7184
|
-
let
|
|
7195
|
+
let R = Go({
|
|
7185
7196
|
focusType: c.initialFocusData?.focusType,
|
|
7186
7197
|
focuses: c.initialFocusData?.focuses || [],
|
|
7187
7198
|
focusRequired: c.focusRequired
|
|
7188
7199
|
}, c.allFieldsAreFocusable);
|
|
7189
|
-
D(no,
|
|
7190
|
-
let { setFilterSelectedValues:
|
|
7191
|
-
D(po,
|
|
7192
|
-
let
|
|
7193
|
-
d.value = e.api,
|
|
7194
|
-
}, G = (e) => {
|
|
7195
|
-
l("first-data-rendered", e);
|
|
7200
|
+
D(no, R);
|
|
7201
|
+
let { setFilterSelectedValues: ee } = L, z = O(!1);
|
|
7202
|
+
D(po, z);
|
|
7203
|
+
let B = O(c.isTableGrouped), te = r(() => Qe.value ? !1 : !!(c.emptyChartFilterRenderer && c.requireFiltersToShowData && L.filterModelEmpty.value)), ne = r(() => R?.computedFocusType.value || null), U = r(() => R?.computedFocuses.value || []), W = (e) => {
|
|
7204
|
+
d.value = e.api, B.value || d.value?.setRowGroupColumns([]), Be(e.api), l("grid-ready", e);
|
|
7196
7205
|
}, re = (e) => {
|
|
7206
|
+
l("first-data-rendered", e);
|
|
7207
|
+
}, G = (e) => {
|
|
7197
7208
|
let t = k.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
7198
|
-
if (
|
|
7209
|
+
if (B.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
7199
7210
|
let t = pe.value;
|
|
7200
7211
|
if (n.length > me.value) {
|
|
7201
7212
|
let t = n.slice(0, me.value);
|
|
@@ -7205,10 +7216,10 @@ var Sl = {
|
|
|
7205
7216
|
}
|
|
7206
7217
|
l("column-row-group-changed", e);
|
|
7207
7218
|
}, ie = async (e) => {
|
|
7208
|
-
Be(e.api),
|
|
7219
|
+
Be(e.api), z.value && l("filter-changed", e);
|
|
7209
7220
|
};
|
|
7210
|
-
|
|
7211
|
-
if (
|
|
7221
|
+
V(() => k.value, () => {
|
|
7222
|
+
if (B.value) {
|
|
7212
7223
|
if (!d.value) return;
|
|
7213
7224
|
let e = d.value.getRowGroupColumns().map((e) => e.getColId());
|
|
7214
7225
|
JSON.stringify(e) !== JSON.stringify(k.value) && v(() => {
|
|
@@ -7219,7 +7230,7 @@ var Sl = {
|
|
|
7219
7230
|
});
|
|
7220
7231
|
if (!c.allFieldsAreFocusable) {
|
|
7221
7232
|
let e = pe.value.supportsFocusView && A.value || null;
|
|
7222
|
-
|
|
7233
|
+
R.setFocusType(e);
|
|
7223
7234
|
}
|
|
7224
7235
|
d.value && Be(d.value);
|
|
7225
7236
|
});
|
|
@@ -7262,15 +7273,15 @@ var Sl = {
|
|
|
7262
7273
|
let Ee = (e) => {
|
|
7263
7274
|
ue.value = le.value.find((t) => t.id === e) ?? le.value[0];
|
|
7264
7275
|
};
|
|
7265
|
-
|
|
7276
|
+
V(() => le.value, () => {
|
|
7266
7277
|
let e = Fe.value, t = e !== fe, n = xl(ue.value?.id || ""), r = le.value.some((e) => e.id === ue.value?.id);
|
|
7267
7278
|
fe = e, !(r && (!t || !n.storeBeforeChange)) && Ee((e ? K?.value : de?.value) ?? c.chartType);
|
|
7268
|
-
}),
|
|
7279
|
+
}), V(() => c.chartType, (e) => Ee(e)), V(() => c.yKey, (e) => {
|
|
7269
7280
|
e !== q.value && (q.value = e);
|
|
7270
|
-
}),
|
|
7281
|
+
}), V(Te, (e) => {
|
|
7271
7282
|
if (c.chartFilter && d.value) {
|
|
7272
7283
|
let t = c.chartFilter.colId, n = c.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
7273
|
-
n && n.length === 0 && (n = null),
|
|
7284
|
+
n && n.length === 0 && (n = null), ee(t, n || []);
|
|
7274
7285
|
let r = Ds({
|
|
7275
7286
|
filterType: "set",
|
|
7276
7287
|
values: n
|
|
@@ -7420,19 +7431,19 @@ var Sl = {
|
|
|
7420
7431
|
legendItemKey: A.value,
|
|
7421
7432
|
angleKey: q.value
|
|
7422
7433
|
}]);
|
|
7423
|
-
|
|
7434
|
+
V(q, (e, t) => {
|
|
7424
7435
|
l("chart-state-changed", {
|
|
7425
7436
|
api: d.value,
|
|
7426
7437
|
newState: { seriesField: e },
|
|
7427
7438
|
oldState: { seriesField: t }
|
|
7428
7439
|
});
|
|
7429
|
-
}),
|
|
7440
|
+
}), V(ye, (e, t) => {
|
|
7430
7441
|
l("chart-state-changed", {
|
|
7431
7442
|
api: d.value,
|
|
7432
7443
|
newState: { secondarySeriesField: e },
|
|
7433
7444
|
oldState: { secondarySeriesField: t }
|
|
7434
7445
|
});
|
|
7435
|
-
}),
|
|
7446
|
+
}), V(ue, (e, t) => {
|
|
7436
7447
|
e?.id && xl(e.id).storeBeforeChange && (Fe.value ? K.value = e.id : de.value = e.id);
|
|
7437
7448
|
let n = xl(e?.id || ""), r = xl(t?.id || "");
|
|
7438
7449
|
n.xAxis.filterColumns !== r.xAxis.filterColumns && (k.value = []), n.yAxis.defaultValue ? q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
@@ -7442,40 +7453,40 @@ var Sl = {
|
|
|
7442
7453
|
newState: { chartType: e?.id },
|
|
7443
7454
|
oldState: { chartType: t?.id }
|
|
7444
7455
|
});
|
|
7445
|
-
}),
|
|
7456
|
+
}), V(he, (e) => {
|
|
7446
7457
|
if (e.length === 1 && k.value.length === 0) {
|
|
7447
7458
|
let t = e[0].field;
|
|
7448
7459
|
t && (k.value = [t]);
|
|
7449
7460
|
}
|
|
7450
|
-
}),
|
|
7461
|
+
}), V(N, (e) => {
|
|
7451
7462
|
e.length === 1 && !q.value && (q.value = e[0].value);
|
|
7452
|
-
}),
|
|
7463
|
+
}), V(we, (e, t) => {
|
|
7453
7464
|
l("chart-state-changed", {
|
|
7454
7465
|
api: d.value,
|
|
7455
7466
|
newState: { chartSort: e?.id },
|
|
7456
7467
|
oldState: { chartSort: t?.id }
|
|
7457
7468
|
});
|
|
7458
|
-
}),
|
|
7469
|
+
}), V(k, (e, t) => {
|
|
7459
7470
|
l("chart-state-changed", {
|
|
7460
7471
|
api: d.value,
|
|
7461
7472
|
newState: { chartCategoryFields: e },
|
|
7462
7473
|
oldState: { chartCategoryFields: t }
|
|
7463
7474
|
});
|
|
7464
|
-
}), B
|
|
7475
|
+
}), V(B, (e, t) => {
|
|
7465
7476
|
l("chart-state-changed", {
|
|
7466
7477
|
api: d.value,
|
|
7467
7478
|
newState: { tableGrouped: e },
|
|
7468
7479
|
oldState: { tableGrouped: t }
|
|
7469
7480
|
});
|
|
7470
|
-
}),
|
|
7481
|
+
}), V(() => c.isTableGrouped, (e, t) => {
|
|
7471
7482
|
!d.value || e === t || !c.enableGroupingToggle || ot(e);
|
|
7472
|
-
}),
|
|
7483
|
+
}), V(() => c.initialFocusData, (e, t) => {
|
|
7473
7484
|
if (!(nt(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
7474
7485
|
if (!e?.focusType) {
|
|
7475
|
-
|
|
7486
|
+
R.setFocuses([]);
|
|
7476
7487
|
return;
|
|
7477
7488
|
}
|
|
7478
|
-
|
|
7489
|
+
R.setFocusType(e?.focusType), R.setFocuses(e?.focuses ?? []);
|
|
7479
7490
|
}
|
|
7480
7491
|
}, { deep: !0 });
|
|
7481
7492
|
let Re = () => {
|
|
@@ -7569,7 +7580,7 @@ var Sl = {
|
|
|
7569
7580
|
{ [A.value]: "" },
|
|
7570
7581
|
e[0],
|
|
7571
7582
|
{ [A.value]: " " }
|
|
7572
|
-
]), c.enableFocusView && e && U.value.length > 0 &&
|
|
7583
|
+
]), c.enableFocusView && e && U.value.length > 0 && ne.value) {
|
|
7573
7584
|
let t = e?.filter((e) => U.value.includes(e[A.value])), n = e?.filter((e) => !U.value.includes(e[A.value]));
|
|
7574
7585
|
e = [
|
|
7575
7586
|
...t || [],
|
|
@@ -7600,8 +7611,8 @@ var Sl = {
|
|
|
7600
7611
|
}), Ge = r(() => J.value?.length || 0), Ke = r(() => zl(je.value ? ve.value : J.value, q.value, je.value)), qe = r(() => Ce.value?.fieldValues?.length || 0), Je = r(() => {
|
|
7601
7612
|
let e = .25 * Math.exp(-.12 * Ge.value);
|
|
7602
7613
|
return Math.min(Math.max(e, .05), .75);
|
|
7603
|
-
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView &&
|
|
7604
|
-
let e = se(
|
|
7614
|
+
}), Ye = r(() => qe.value > 5 ? .5 : 1), Xe = r(() => qe.value > 5 ? .25 : .1), Ze = r(() => !J.value || J.value?.length === 0 ? !0 : Ke.value === -Infinity || je.value === !0 && Ke.value === 0), Qe = r(() => !!(c.enableFocusView && ne.value && U.value.length === 0 && c.percentOfFocusViewYKey && q.value && q.value === c.percentOfFocusViewYKey)), $e = r(() => {
|
|
7615
|
+
let e = se(ne.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
7605
7616
|
return Fl({
|
|
7606
7617
|
currentRowGroupColumnsLength: k.value.length,
|
|
7607
7618
|
shouldShowFocusOverlayText: Qe.value || c.focusRequired && U.value.length === 0,
|
|
@@ -7730,10 +7741,10 @@ var Sl = {
|
|
|
7730
7741
|
});
|
|
7731
7742
|
}
|
|
7732
7743
|
return e.axes = a, e.series = Me.value, e;
|
|
7733
|
-
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !
|
|
7744
|
+
}), rt = r(() => x.value || c.isLoading && (!J.value || J.value.length === 0)), it = r(() => Qe.value || !te.value && !c.isLoading && $e.value !== ""), at = (e) => {
|
|
7734
7745
|
h.value = e, l("chart-collapsed", e);
|
|
7735
7746
|
}, ot = (e) => {
|
|
7736
|
-
d.value && (d.value.setRowGroupColumns(e ? k.value : []),
|
|
7747
|
+
d.value && (d.value.setRowGroupColumns(e ? k.value : []), B.value = e);
|
|
7737
7748
|
};
|
|
7738
7749
|
return t({
|
|
7739
7750
|
getChartImageDataURL: (e) => m.value?.getChartImageDataURL(e),
|
|
@@ -7743,7 +7754,7 @@ var Sl = {
|
|
|
7743
7754
|
}), S(() => {
|
|
7744
7755
|
if (c.initialGridState) {
|
|
7745
7756
|
let e = c.initialGridState.rowGroup?.groupColIds || [];
|
|
7746
|
-
k.value = e, !c.allFieldsAreFocusable && e.length > 0 &&
|
|
7757
|
+
k.value = e, !c.allFieldsAreFocusable && e.length > 0 && R.setFocusType(e[0]);
|
|
7747
7758
|
}
|
|
7748
7759
|
}), w(async () => {
|
|
7749
7760
|
await v(), b.value = c.filterPanelAboveChart;
|
|
@@ -7799,30 +7810,30 @@ var Sl = {
|
|
|
7799
7810
|
"isLoading",
|
|
7800
7811
|
"options",
|
|
7801
7812
|
"enableFocusView"
|
|
7802
|
-
]), s("div", Wl, [
|
|
7813
|
+
]), s("div", Wl, [te.value ? (E(), o("div", Gl, [(E(), i(M(e.emptyChartFilterRenderer)))])) : it.value ? (E(), o("p", Kl, P($e.value), 1)) : a("", !0)])])], 2)
|
|
7803
7814
|
])),
|
|
7804
7815
|
u(tl, _({
|
|
7805
7816
|
ref_key: "pvDataTableRef",
|
|
7806
7817
|
ref: p
|
|
7807
7818
|
}, t.$props, {
|
|
7808
7819
|
filterTeleportLocation: b.value ? `#${g}` : void 0,
|
|
7809
|
-
pagination: e.pagination || !
|
|
7810
|
-
onColumnRowGroupChanged:
|
|
7820
|
+
pagination: e.pagination || !B.value,
|
|
7821
|
+
onColumnRowGroupChanged: G,
|
|
7811
7822
|
onGridReady: W,
|
|
7812
7823
|
onFilterChanged: ie,
|
|
7813
7824
|
onSortChanged: n[3] ||= (e) => l("sort-changed", e),
|
|
7814
7825
|
onFilterOpened: n[4] ||= (e) => l("filter-opened", e),
|
|
7815
|
-
onFirstDataRendered:
|
|
7826
|
+
onFirstDataRendered: re,
|
|
7816
7827
|
onColumnMoved: n[5] ||= (e) => l("column-moved", e),
|
|
7817
7828
|
onColumnResized: n[6] ||= (e) => l("column-resized", e),
|
|
7818
7829
|
onHandleSettingsIcon: n[7] ||= (e) => l("handle-settings-icon", e),
|
|
7819
7830
|
onFocusUpdate: n[8] ||= (e) => l("focus-update", e)
|
|
7820
7831
|
}), {
|
|
7821
|
-
"top-slot":
|
|
7832
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), i(X, {
|
|
7822
7833
|
key: 0,
|
|
7823
|
-
leftIcon:
|
|
7824
|
-
label:
|
|
7825
|
-
onClick: n[2] ||= (e) => ot(!
|
|
7834
|
+
leftIcon: B.value ? "ungroup" : "group",
|
|
7835
|
+
label: B.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
7836
|
+
onClick: n[2] ||= (e) => ot(!B.value),
|
|
7826
7837
|
variant: "secondary",
|
|
7827
7838
|
size: "lg"
|
|
7828
7839
|
}, null, 8, ["leftIcon", "label"])) : a("", !0)]),
|
|
@@ -10751,9 +10762,9 @@ var Sl = {
|
|
|
10751
10762
|
id: e
|
|
10752
10763
|
}));
|
|
10753
10764
|
});
|
|
10754
|
-
return
|
|
10765
|
+
return V(n, (e) => {
|
|
10755
10766
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
10756
|
-
}),
|
|
10767
|
+
}), V(t, (e) => {
|
|
10757
10768
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
10758
10769
|
}), (e, t) => (E(), i(Ua, {
|
|
10759
10770
|
style: { width: "125px" },
|
|
@@ -10807,7 +10818,7 @@ var Sl = {
|
|
|
10807
10818
|
emits: /* @__PURE__ */ g(["region-selection-changed"], ["update:chartData", "update:selectedRegion"]),
|
|
10808
10819
|
setup(e, { emit: n }) {
|
|
10809
10820
|
let i = e, a = L(e, "chartData"), c = L(e, "selectedRegion"), l = n, { getTopologyObject: d, buildMapData: f } = au(), 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]));
|
|
10810
|
-
|
|
10821
|
+
V(c, (e) => {
|
|
10811
10822
|
l("region-selection-changed", { region: e });
|
|
10812
10823
|
});
|
|
10813
10824
|
let g = r(() => (c.value, {
|