@turquoisehealth/pit-viper 2.240.2 → 2.241.0
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/_site/assets/css/pit-viper-a11y.css +19 -0
- package/_site/assets/css/pit-viper-consumer.css +15 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +13 -0
- package/_site/assets/css/pit-viper-v2.css +19 -0
- package/_site/assets/css/pit-viper.css +15 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/ai/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +701 -694
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/visualizations/components/base/PvSelectButton/PvSelectButton.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +806 -799
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +12 -8
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +11 -7
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +11 -7
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +11 -7
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +11 -7
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +11 -7
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +16 -9
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +494 -486
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-61f3afec]{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-61f3afec]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-61f3afec]{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-61f3afec]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-61f3afec]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-61f3afec]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-61f3afec]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-61f3afec]{text-align:center;opacity:1;background-color:var(--color-background-body,white);z-index:4;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-61f3afec]{color:var(--color-text-brand,#16696d);animation:1.5s ease-in-out infinite pulse-61f3afec}@keyframes pulse-61f3afec{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-7b85ebe3]{font-size:14px}.pv-popover-pinned-sections[data-v-7b85ebe3]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-7b85ebe3]{overflow-y:auto}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-cfa4cb54]{color:var(--color-text-subdued,#4b595c);background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-query-builder-input-wrapper[data-v-fb2cc737]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,var(--stroke-light,#e3e7ea));cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-fb2cc737]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-fb2cc737]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fb2cc737]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-fb2cc737]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-fb2cc737]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-fb2cc737]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#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:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-b4740f96]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-ec17105d]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:1}.ag-custom-header-cell-with-agg-selector{height:100%;margin-inline:calc(var(--ag-cell-horizontal-padding) * -1);width:calc(100% + var(--ag-cell-horizontal-padding) * 2);position:relative}.ag-header-agg-func-selector{--button-ghost-hover-background-color:var(--ag-header-cell-hover-background-color,var(--color-background-accent,#f7f8f8));position:absolute;inset:0}.ag-header-agg-func-selector>div,.ag-header-agg-func-selector .pv-select-button-trigger{height:100%}.ag-header-agg-func-selector .pv-select-button-trigger{padding-inline:var(--ag-cell-horizontal-padding);border-radius:0;justify-content:flex-end}.pv-table-row-number[data-v-2485e378]{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;background:var(--color-background-body,white);pointer-events:none;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 .pv-data-table-cell-clickable{cursor:pointer}.pv-data-table .pv-data-table-cell-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable{cursor:pointer}.pv-data-table .ag-row.pv-data-table-row-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable.ag-row-focus{box-shadow:inset 0 0 0 1px var(--text-input-focus-border-color,#36c5ba)}.pv-data-table .ag-row.pv-data-table-row-clickable .ag-cell-focus{border-color:#0000}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:var(--p-skeleton-background,#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:var(--popover-list-item-hover-background-color,#f7f8f8)}.pv-data-table .ag-menu-option-shortcut{color:var(--color-text-quaternary,#89989b)}.pv-data-table .ag-menu-option:active{background-color:var(--popover-list-item-pressed-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(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px, var(--color-background-accent,#f7f8f8) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell,.pv-data-table-grouped-card .ag-row-group-expanded .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-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 var(--color-border,#e0e0e0)!important;border-left:1px solid var(--color-border,#e0e0e0)!important;border-right:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row-loading{box-sizing:border-box;border-top:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row.pv-data-table-group-last-child,.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded).ag-row-last{border-radius:0 0 4px 4px}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;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(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px, var(--color-background-brand-accent,#eef0f0) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:var(--color-background-accent,#f7f8f8)!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-data-table-classic .ag-row-last{border-bottom:none!important}.pv-data-table-classic .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-classic .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-text-tertiary[data-v-a3c94e3a]{color:var(--color-text-quaternary,#89989b)}.pv-button-placeholder[data-v-a3c94e3a]{width:24px;height:24px}.pv-sort-option[data-v-a3c94e3a]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-a3c94e3a]{pointer-events:none;color:var(--text-input-disabled-text-color,#7d898d)}.placeholder-zone[data-v-a3c94e3a]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-a3c94e3a]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:var(--color-border,#e3e7ea)!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-a3c94e3a]{background:#f0f9f9;border-color:var(--color-border-brand,#16696d)!important}.sort-divider-container[data-v-a3c94e3a]{display:flex}.sort-divider[data-v-a3c94e3a]{border-top:1px solid var(--color-border,#e3e7ea);flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-a3c94e3a]:after{content:attr(data-label);background:var(--color-background-body,#fff);font-size:inherit;white-space:nowrap;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-333de0aa] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-333de0aa] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-333de0aa] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.ag-charts-floating-toolbar{display:none!important}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-61f3afec]{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-61f3afec]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-61f3afec]{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-61f3afec]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-61f3afec]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-61f3afec]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-61f3afec]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-61f3afec]{text-align:center;opacity:1;background-color:var(--color-background-body,white);z-index:4;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-61f3afec]{color:var(--color-text-brand,#16696d);animation:1.5s ease-in-out infinite pulse-61f3afec}@keyframes pulse-61f3afec{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-cfa4cb54]{color:var(--color-text-subdued,#4b595c);background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-query-builder-input-wrapper[data-v-62aa7767]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,var(--stroke-light,#e3e7ea));cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-62aa7767]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-62aa7767]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-62aa7767]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-62aa7767]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-62aa7767]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-62aa7767]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#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:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-b4740f96]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-ec17105d]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:1}.ag-custom-header-cell-with-agg-selector{height:100%;margin-inline:calc(var(--ag-cell-horizontal-padding) * -1);width:calc(100% + var(--ag-cell-horizontal-padding) * 2);position:relative}.ag-header-agg-func-selector{--button-ghost-hover-background-color:var(--ag-header-cell-hover-background-color,var(--color-background-accent,#f7f8f8));position:absolute;inset:0}.ag-header-agg-func-selector>div,.ag-header-agg-func-selector .pv-select-button-trigger{height:100%}.ag-header-agg-func-selector .pv-select-button-trigger{padding-inline:var(--ag-cell-horizontal-padding);border-radius:0;justify-content:flex-end}.pv-table-row-number[data-v-2485e378]{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;background:var(--color-background-body,white);pointer-events:none;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 .pv-data-table-cell-clickable{cursor:pointer}.pv-data-table .pv-data-table-cell-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable{cursor:pointer}.pv-data-table .ag-row.pv-data-table-row-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable.ag-row-focus{box-shadow:inset 0 0 0 1px var(--text-input-focus-border-color,#36c5ba)}.pv-data-table .ag-row.pv-data-table-row-clickable .ag-cell-focus{border-color:#0000}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:var(--p-skeleton-background,#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:var(--popover-list-item-hover-background-color,#f7f8f8)}.pv-data-table .ag-menu-option-shortcut{color:var(--color-text-quaternary,#89989b)}.pv-data-table .ag-menu-option:active{background-color:var(--popover-list-item-pressed-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(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px, var(--color-background-accent,#f7f8f8) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell,.pv-data-table-grouped-card .ag-row-group-expanded .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-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 var(--color-border,#e0e0e0)!important;border-left:1px solid var(--color-border,#e0e0e0)!important;border-right:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row-loading{box-sizing:border-box;border-top:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row.pv-data-table-group-last-child,.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded).ag-row-last{border-radius:0 0 4px 4px}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;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(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px, var(--color-background-brand-accent,#eef0f0) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:var(--color-background-accent,#f7f8f8)!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-data-table-classic .ag-row-last{border-bottom:none!important}.pv-data-table-classic .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-classic .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-text-tertiary[data-v-a3c94e3a]{color:var(--color-text-quaternary,#89989b)}.pv-button-placeholder[data-v-a3c94e3a]{width:24px;height:24px}.pv-sort-option[data-v-a3c94e3a]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-a3c94e3a]{pointer-events:none;color:var(--text-input-disabled-text-color,#7d898d)}.placeholder-zone[data-v-a3c94e3a]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-a3c94e3a]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:var(--color-border,#e3e7ea)!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-a3c94e3a]{background:#f0f9f9;border-color:var(--color-border-brand,#16696d)!important}.sort-divider-container[data-v-a3c94e3a]{display:flex}.sort-divider[data-v-a3c94e3a]{border-top:1px solid var(--color-border,#e3e7ea);flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-a3c94e3a]:after{content:attr(data-label);background:var(--color-background-body,#fff);font-size:inherit;white-space:nowrap;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-333de0aa] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-333de0aa] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-333de0aa] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.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
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, onBeforeUpdate as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as ee, toDisplayString as P, toHandlers as F, toRaw as I, toRef as L, unref as R, useAttrs as z, useId as te, useModel as B, useSlots as ne, useTemplateRef as V, vModelCheckbox as re, vModelText as H, vShow as ie, watch as U, withCtx as W, withDirectives as ae, withKeys as G, withModifiers as K } from "vue";
|
|
4
4
|
import { AgCharts as oe } from "ag-charts-vue3";
|
|
@@ -6012,12 +6012,13 @@ var Qa = {
|
|
|
6012
6012
|
type: Boolean,
|
|
6013
6013
|
default: !1
|
|
6014
6014
|
},
|
|
6015
|
-
listId: { default: void 0 },
|
|
6016
|
-
listRole: { default: "list" },
|
|
6017
6015
|
isSortable: {
|
|
6018
6016
|
type: Boolean,
|
|
6019
6017
|
default: !1
|
|
6020
|
-
}
|
|
6018
|
+
},
|
|
6019
|
+
listClass: { default: void 0 },
|
|
6020
|
+
listId: { default: void 0 },
|
|
6021
|
+
listRole: { default: "list" }
|
|
6021
6022
|
},
|
|
6022
6023
|
emits: ["list-order-updated"],
|
|
6023
6024
|
setup(e, { expose: n, emit: i }) {
|
|
@@ -6042,13 +6043,13 @@ var Qa = {
|
|
|
6042
6043
|
id: e.listId,
|
|
6043
6044
|
ref: "popoverList",
|
|
6044
6045
|
role: e.listRole,
|
|
6045
|
-
class: "pv-popover-list",
|
|
6046
|
+
class: y(["pv-popover-list", e.listClass]),
|
|
6046
6047
|
style: x(e.cssCustomListProperties)
|
|
6047
|
-
}, [j(n.$slots, "default", {}, void 0, !0)],
|
|
6048
|
+
}, [j(n.$slots, "default", {}, void 0, !0)], 14, Mo),
|
|
6048
6049
|
j(n.$slots, "footer", {}, void 0, !0)
|
|
6049
6050
|
], 64)) : j(n.$slots, "default", { key: 1 }, void 0, !0)], 14, jo));
|
|
6050
6051
|
}
|
|
6051
|
-
}), [["__scopeId", "data-v-
|
|
6052
|
+
}), [["__scopeId", "data-v-fe6e9c6a"]]), Po = ["role"], Fo = [
|
|
6052
6053
|
"data-active",
|
|
6053
6054
|
"data-option-id",
|
|
6054
6055
|
"data-testid",
|
|
@@ -6411,10 +6412,10 @@ var Qa = {
|
|
|
6411
6412
|
_: 3
|
|
6412
6413
|
})], 12, Lo)])) : a("", !0)], 64));
|
|
6413
6414
|
}
|
|
6414
|
-
}), [["__scopeId", "data-v-f14f755f"]]), Ho = {
|
|
6415
|
+
}), [["__scopeId", "data-v-f14f755f"]]), Ho = { class: "pv-popover-scroll" }, Uo = {
|
|
6415
6416
|
key: 0,
|
|
6416
6417
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
6417
|
-
},
|
|
6418
|
+
}, Wo = /* @__PURE__ */ d({
|
|
6418
6419
|
__name: "PvSelectButton",
|
|
6419
6420
|
props: /* @__PURE__ */ g({
|
|
6420
6421
|
defaultOpen: { type: Boolean },
|
|
@@ -6559,37 +6560,41 @@ var Qa = {
|
|
|
6559
6560
|
"selectedOption"
|
|
6560
6561
|
])]),
|
|
6561
6562
|
content: W(() => [s("div", {
|
|
6562
|
-
class: "pv-popover",
|
|
6563
|
+
class: "pv-popover pv-popover-scrollable",
|
|
6563
6564
|
"data-test-id": "pv-popover",
|
|
6564
6565
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
6565
|
-
}, [
|
|
6566
|
-
"
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6566
|
+
}, [s("div", Ho, [
|
|
6567
|
+
e.disableSearchInput ? a("", !0) : (D(), o("div", Uo, [u(Da, {
|
|
6568
|
+
"model-value": m.value,
|
|
6569
|
+
"onUpdate:modelValue": n[0] ||= (e) => m.value = e,
|
|
6570
|
+
class: "pv-stack-4",
|
|
6571
|
+
placeholder: e.searchPlaceholder
|
|
6572
|
+
}, null, 8, ["model-value", "placeholder"])])),
|
|
6573
|
+
S.value.length > 0 ? (D(), i(Vo, {
|
|
6574
|
+
key: 1,
|
|
6575
|
+
selectedItems: C.value,
|
|
6576
|
+
"onUpdate:selectedItems": n[1] ||= (e) => C.value = e,
|
|
6577
|
+
options: S.value,
|
|
6578
|
+
config: l.value,
|
|
6579
|
+
queryText: e.highlightSearchText ? m.value : null,
|
|
6580
|
+
singleSelect: !0,
|
|
6581
|
+
disableDeselect: e.disableDeselect,
|
|
6582
|
+
childrenDisplay: e.childrenDisplay,
|
|
6583
|
+
onHandleSelected: w
|
|
6584
|
+
}, null, 8, [
|
|
6585
|
+
"selectedItems",
|
|
6586
|
+
"options",
|
|
6587
|
+
"config",
|
|
6588
|
+
"queryText",
|
|
6589
|
+
"disableDeselect",
|
|
6590
|
+
"childrenDisplay"
|
|
6591
|
+
])) : (D(), i(Ga, { key: 2 })),
|
|
6592
|
+
j(t.$slots, "footer")
|
|
6593
|
+
])], 4)]),
|
|
6594
|
+
_: 3
|
|
6590
6595
|
}, 16, ["modelValue"]));
|
|
6591
6596
|
}
|
|
6592
|
-
}),
|
|
6597
|
+
}), Go = /* @__PURE__ */ d({
|
|
6593
6598
|
__name: "MapRegionSelector",
|
|
6594
6599
|
props: /* @__PURE__ */ g({
|
|
6595
6600
|
topologyType: {},
|
|
@@ -6614,7 +6619,7 @@ var Qa = {
|
|
|
6614
6619
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
6615
6620
|
}), U(t, (e) => {
|
|
6616
6621
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
6617
|
-
}), (e, t) => (D(), i(
|
|
6622
|
+
}), (e, t) => (D(), i(Wo, {
|
|
6618
6623
|
style: { width: "125px" },
|
|
6619
6624
|
popoverCssProperties: { "max-width": "150px" },
|
|
6620
6625
|
disabled: o.value.length < 2,
|
|
@@ -6628,11 +6633,11 @@ var Qa = {
|
|
|
6628
6633
|
"options"
|
|
6629
6634
|
]));
|
|
6630
6635
|
}
|
|
6631
|
-
}),
|
|
6636
|
+
}), Ko = { class: "pv-map-chart" }, qo = {
|
|
6632
6637
|
key: 0,
|
|
6633
6638
|
class: "pv-map-chart__header pv-flex pv-space-between pv-stack-20",
|
|
6634
6639
|
style: { width: "100%" }
|
|
6635
|
-
},
|
|
6640
|
+
}, Jo = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
6636
6641
|
__name: "PvMapChart",
|
|
6637
6642
|
props: /* @__PURE__ */ g({
|
|
6638
6643
|
seriesKey: {},
|
|
@@ -6715,7 +6720,7 @@ var Qa = {
|
|
|
6715
6720
|
overlays: { noData: { text: s.noDataMessage || "No data to display" } },
|
|
6716
6721
|
gradientLegend: { enabled: !1 }
|
|
6717
6722
|
}));
|
|
6718
|
-
return t({ getChartImageDataURL: (e) => f.value?.getChartImageDataURL(e) }), (t, n) => (D(), o("div",
|
|
6723
|
+
return t({ getChartImageDataURL: (e) => f.value?.getChartImageDataURL(e) }), (t, n) => (D(), o("div", Ko, [e.displayRegionSelector || e.displayGradientLegend ? (D(), o("div", qo, [e.displayRegionSelector ? (D(), i(Go, {
|
|
6719
6724
|
key: 0,
|
|
6720
6725
|
modelValue: l.value,
|
|
6721
6726
|
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
@@ -6743,19 +6748,19 @@ var Qa = {
|
|
|
6743
6748
|
isLoading: e.isLoading
|
|
6744
6749
|
}, null, 8, ["options", "isLoading"])]));
|
|
6745
6750
|
}
|
|
6746
|
-
}), [["__scopeId", "data-v-af7882f9"]]),
|
|
6751
|
+
}), [["__scopeId", "data-v-af7882f9"]]), Yo = { class: "pv-table pv-full-width" }, Xo = /* @__PURE__ */ d({
|
|
6747
6752
|
__name: "PvDataWidgetTable",
|
|
6748
6753
|
props: {
|
|
6749
6754
|
headers: {},
|
|
6750
6755
|
rows: {}
|
|
6751
6756
|
},
|
|
6752
6757
|
setup(e) {
|
|
6753
|
-
return (n, r) => (D(), o("table",
|
|
6758
|
+
return (n, r) => (D(), o("table", Yo, [s("thead", null, [s("tr", null, [(D(!0), o(t, null, A(e.headers, (e) => (D(), o("th", {
|
|
6754
6759
|
key: e.field,
|
|
6755
6760
|
scope: "col"
|
|
6756
6761
|
}, P(e.label), 1))), 128))])]), s("tbody", null, [(D(!0), o(t, null, A(e.rows, (e, n) => (D(), o("tr", { key: n }, [(D(!0), o(t, null, A(e, (e, t) => (D(), o("td", { key: t }, P(e), 1))), 128))]))), 128))])]));
|
|
6757
6762
|
}
|
|
6758
|
-
}),
|
|
6763
|
+
}), Zo = [
|
|
6759
6764
|
{
|
|
6760
6765
|
value: "column",
|
|
6761
6766
|
label: "Column",
|
|
@@ -6801,19 +6806,19 @@ var Qa = {
|
|
|
6801
6806
|
label: "Table",
|
|
6802
6807
|
icon: "table"
|
|
6803
6808
|
}
|
|
6804
|
-
],
|
|
6809
|
+
], Qo = [
|
|
6805
6810
|
"column",
|
|
6806
6811
|
"bar",
|
|
6807
6812
|
"line",
|
|
6808
6813
|
"area",
|
|
6809
6814
|
"table"
|
|
6810
|
-
],
|
|
6815
|
+
], $o = "column", es = "table", ts = new Set([
|
|
6811
6816
|
"currency",
|
|
6812
6817
|
"number",
|
|
6813
6818
|
"numeric",
|
|
6814
6819
|
"percent",
|
|
6815
6820
|
"percentage"
|
|
6816
|
-
]),
|
|
6821
|
+
]), ns = "bucketCount", rs = [
|
|
6817
6822
|
{
|
|
6818
6823
|
text: "Column",
|
|
6819
6824
|
id: "column",
|
|
@@ -6839,7 +6844,7 @@ var Qa = {
|
|
|
6839
6844
|
id: "pie",
|
|
6840
6845
|
icon: "chart-pie"
|
|
6841
6846
|
}
|
|
6842
|
-
],
|
|
6847
|
+
], is = [
|
|
6843
6848
|
{
|
|
6844
6849
|
text: "Grouped Column",
|
|
6845
6850
|
id: "column",
|
|
@@ -6865,45 +6870,45 @@ var Qa = {
|
|
|
6865
6870
|
id: "line",
|
|
6866
6871
|
icon: "chart-line"
|
|
6867
6872
|
}
|
|
6868
|
-
],
|
|
6873
|
+
], as = {
|
|
6869
6874
|
text: "Histogram",
|
|
6870
6875
|
id: "histogram",
|
|
6871
6876
|
icon: "chart-column"
|
|
6872
|
-
},
|
|
6877
|
+
}, os = {
|
|
6873
6878
|
text: "Map",
|
|
6874
6879
|
id: "map",
|
|
6875
6880
|
icon: "map"
|
|
6876
|
-
},
|
|
6881
|
+
}, ss = "state", cs = "--SEPARATOR--", ls = "--DISTRIBUTION-RANGE-MIN--", us = "--DISTRIBUTION-RANGE-MAX--", ds = "--PAD-START--", fs = "--PAD-END--", ps = "_sort_total", ms = /* @__PURE__ */ function(e) {
|
|
6877
6882
|
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Date = "date", e.Currency = "currency", e.Formula = "formula", e.Select = "select", e.Percent = "percent", e.Entity = "entity", e.Id = "id", e.Integer = "integer", e.User = "user", e.Link = "link", e.Location = "location", e.Status = "status", e.Tag = "tag", e.File = "file", e.None = "none", e;
|
|
6878
|
-
}({}),
|
|
6883
|
+
}({}), hs = (e) => {
|
|
6879
6884
|
switch (e) {
|
|
6880
|
-
case
|
|
6881
|
-
case
|
|
6882
|
-
case
|
|
6883
|
-
case
|
|
6884
|
-
case
|
|
6885
|
-
case
|
|
6886
|
-
case
|
|
6887
|
-
case
|
|
6888
|
-
case
|
|
6889
|
-
case
|
|
6890
|
-
case
|
|
6891
|
-
case
|
|
6892
|
-
case
|
|
6893
|
-
case
|
|
6894
|
-
case
|
|
6895
|
-
case
|
|
6896
|
-
case
|
|
6897
|
-
case
|
|
6885
|
+
case ms.String: return "fonts";
|
|
6886
|
+
case ms.Number: return "hash";
|
|
6887
|
+
case ms.Boolean: return "list";
|
|
6888
|
+
case ms.Date: return "calendar";
|
|
6889
|
+
case ms.Currency: return "currency-dollar";
|
|
6890
|
+
case ms.Formula: return "formula";
|
|
6891
|
+
case ms.Select: return "list";
|
|
6892
|
+
case ms.Percent: return "percent";
|
|
6893
|
+
case ms.Entity: return "building";
|
|
6894
|
+
case ms.Id: return "id-2";
|
|
6895
|
+
case ms.Link: return "link";
|
|
6896
|
+
case ms.Location: return "location";
|
|
6897
|
+
case ms.Integer: return "hash";
|
|
6898
|
+
case ms.User: return "user";
|
|
6899
|
+
case ms.Status: return "circle-chevron-down";
|
|
6900
|
+
case ms.Tag: return "circle-chevron-down";
|
|
6901
|
+
case ms.File: return "file";
|
|
6902
|
+
case ms.None: return null;
|
|
6898
6903
|
default: return null;
|
|
6899
6904
|
}
|
|
6900
|
-
},
|
|
6905
|
+
}, gs = (e, t) => {
|
|
6901
6906
|
if (!e) return e;
|
|
6902
6907
|
switch (t) {
|
|
6903
|
-
case
|
|
6908
|
+
case ms.Percent: return e.replace(/^%+/, "").trim();
|
|
6904
6909
|
default: return e;
|
|
6905
6910
|
}
|
|
6906
|
-
},
|
|
6911
|
+
}, _s = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, vs = (e, t = !1, n = 0) => {
|
|
6907
6912
|
let r = [
|
|
6908
6913
|
"",
|
|
6909
6914
|
"K",
|
|
@@ -6912,58 +6917,58 @@ var Qa = {
|
|
|
6912
6917
|
"T"
|
|
6913
6918
|
], i = Math.abs(e), a = Math.abs(n), o = t ? 2 : 0, s = Math.floor(Math.log10(i) / 3);
|
|
6914
6919
|
if ((Math.floor(Math.log10(a) / 3) >= s || s > 3) && (o = 2), i < 1e3) return {
|
|
6915
|
-
newValue:
|
|
6920
|
+
newValue: _s(e.toFixed(o)),
|
|
6916
6921
|
newSuffix: ""
|
|
6917
6922
|
};
|
|
6918
6923
|
let c = r[s] || `e${s * 3}`;
|
|
6919
6924
|
return {
|
|
6920
|
-
newValue:
|
|
6925
|
+
newValue: _s((e / 10 ** (s * 3)).toFixed(o)),
|
|
6921
6926
|
newSuffix: c
|
|
6922
6927
|
};
|
|
6923
|
-
},
|
|
6928
|
+
}, ys = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((e, r) => !n.includes(e[t]) - +!n.includes(r[t])), $ = (e) => e && e.context || {}, bs = (e) => {
|
|
6924
6929
|
let t = $(e);
|
|
6925
6930
|
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
6926
|
-
},
|
|
6931
|
+
}, xs = (e) => $(e).filterSelectMax || null, Ss = (e) => $(e).filterSelectMin === 1 && xs(e) === 1, Cs = (e) => {
|
|
6927
6932
|
let t = $(e).dataType;
|
|
6928
6933
|
return t ? [
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
+
ms.Currency,
|
|
6935
|
+
ms.Percent,
|
|
6936
|
+
ms.Number,
|
|
6937
|
+
ms.Integer,
|
|
6938
|
+
ms.Formula
|
|
6934
6939
|
].includes(t) : !1;
|
|
6935
|
-
},
|
|
6936
|
-
if (
|
|
6940
|
+
}, ws = (e) => {
|
|
6941
|
+
if (Cs(e)) return !0;
|
|
6937
6942
|
let t = e.type;
|
|
6938
6943
|
return t ? (Array.isArray(t) ? t : [t]).includes("rightAligned") : !1;
|
|
6939
|
-
},
|
|
6944
|
+
}, Ts = (e) => e ? [e.field, ...(e.children || []).flatMap(Ts)] : [], Es = (e) => {
|
|
6940
6945
|
let t = $(e);
|
|
6941
|
-
return t.aggregateFieldHierarchy ?
|
|
6942
|
-
},
|
|
6946
|
+
return t.aggregateFieldHierarchy ? Ts(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
6947
|
+
}, Ds = (e) => {
|
|
6943
6948
|
let t = $(e);
|
|
6944
6949
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6945
|
-
},
|
|
6950
|
+
}, Os = (e) => Es(e).length > 0, ks = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
6946
6951
|
let n = t.find((t) => t?.field === e.field);
|
|
6947
|
-
return n &&
|
|
6952
|
+
return n && Cs(n) ? {
|
|
6948
6953
|
...e,
|
|
6949
|
-
aggFunc:
|
|
6954
|
+
aggFunc: ns
|
|
6950
6955
|
} : {
|
|
6951
6956
|
...e,
|
|
6952
6957
|
aggFunc: void 0
|
|
6953
6958
|
};
|
|
6954
|
-
}),
|
|
6959
|
+
}), As = (e) => e.map((e) => ({
|
|
6955
6960
|
id: e.getColId(),
|
|
6956
6961
|
displayName: e.getColDef().headerName || "",
|
|
6957
6962
|
field: e.getColDef().field || "",
|
|
6958
6963
|
aggFunc: e.getAggFunc() || void 0
|
|
6959
|
-
})),
|
|
6964
|
+
})), js = (e) => {
|
|
6960
6965
|
let t = $(e);
|
|
6961
6966
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
6962
|
-
},
|
|
6967
|
+
}, Ms = (e, t, n) => n.has(e) && typeof t == "string" ? `${e}_${t}` : e, Ns = (e, t) => {
|
|
6963
6968
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6964
6969
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6965
6970
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6966
|
-
},
|
|
6971
|
+
}, Ps = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i, yAxisName: a, yAxisOptionCount: o }) => e === 0 ? "No groups selected. Select at least one group to display data." : t ? r ?? `Select focus ${i} to view Visualization.` : n ? a && (o ?? 0) > 1 ? `No data available for ${a}, please select a different one.` : It : "", Fs = (e) => e ? $(e).dataType === ms.Date : !1, Is = (e) => {
|
|
6967
6972
|
if (e instanceof Date) {
|
|
6968
6973
|
let t = e.getTime();
|
|
6969
6974
|
return Number.isNaN(t) ? null : t;
|
|
@@ -6985,10 +6990,10 @@ var Qa = {
|
|
|
6985
6990
|
if (!n || !t.includes("T")) return s.getTime();
|
|
6986
6991
|
let c = Date.parse(t);
|
|
6987
6992
|
return Number.isNaN(c) ? null : c;
|
|
6988
|
-
},
|
|
6989
|
-
let r =
|
|
6993
|
+
}, Ls = (e, t) => !e || e.length === 0 || !t ? e : [...e].sort((e, n) => {
|
|
6994
|
+
let r = Is(e[t]), i = Is(n[t]);
|
|
6990
6995
|
return r === null && i === null ? String(e[t] ?? "").localeCompare(String(n[t] ?? "")) : r === null ? 1 : i === null ? -1 : r - i;
|
|
6991
|
-
}),
|
|
6996
|
+
}), Rs = (e, t) => `${e}_${t}`, zs = (e) => `secondaryCategory_${e}`, Bs = (e, t, n, r, i = []) => {
|
|
6992
6997
|
if (!e || e.length === 0) return {
|
|
6993
6998
|
data: [],
|
|
6994
6999
|
uniqueFieldValues: []
|
|
@@ -7001,7 +7006,7 @@ var Qa = {
|
|
|
7001
7006
|
let o = e.reduce((e, o) => {
|
|
7002
7007
|
let s = o[t];
|
|
7003
7008
|
e[s] || (e[s] = {});
|
|
7004
|
-
let c = o[n], l =
|
|
7009
|
+
let c = o[n], l = zs(c);
|
|
7005
7010
|
e[s][l] = `${s}-${c}`;
|
|
7006
7011
|
for (let t of r) {
|
|
7007
7012
|
let r = t.value, i = 0;
|
|
@@ -7009,9 +7014,9 @@ var Qa = {
|
|
|
7009
7014
|
let l = o[r];
|
|
7010
7015
|
if (a.add(c), n && l) {
|
|
7011
7016
|
let t = l ?? 0;
|
|
7012
|
-
e[s][
|
|
7017
|
+
e[s][Rs(r, c)] = t, i += t;
|
|
7013
7018
|
}
|
|
7014
|
-
e[s][`${r}${
|
|
7019
|
+
e[s][`${r}${ps}`] = i;
|
|
7015
7020
|
}
|
|
7016
7021
|
for (let t of i) e[s][t.value] = o[t.value];
|
|
7017
7022
|
return e;
|
|
@@ -7023,28 +7028,28 @@ var Qa = {
|
|
|
7023
7028
|
})),
|
|
7024
7029
|
uniqueFieldValues: Array.from(a)
|
|
7025
7030
|
};
|
|
7026
|
-
},
|
|
7027
|
-
{ [t]:
|
|
7031
|
+
}, Vs = (e, t) => !e || e.length !== 1 ? e : [
|
|
7032
|
+
{ [t]: ds },
|
|
7028
7033
|
e[0],
|
|
7029
|
-
{ [t]:
|
|
7030
|
-
],
|
|
7034
|
+
{ [t]: fs }
|
|
7035
|
+
], Hs = (e, t, n) => {
|
|
7031
7036
|
let r = -Infinity;
|
|
7032
7037
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
7033
|
-
let n = e[t +
|
|
7038
|
+
let n = e[t + ps];
|
|
7034
7039
|
typeof n == "number" && n > r && (r = n);
|
|
7035
7040
|
}) : e.forEach((e) => {
|
|
7036
7041
|
let n = e[t];
|
|
7037
7042
|
typeof n == "number" && n > r && (r = n);
|
|
7038
7043
|
})), r;
|
|
7039
|
-
},
|
|
7044
|
+
}, Us = (e, t, n) => {
|
|
7040
7045
|
let r = Infinity;
|
|
7041
7046
|
if (!e || e.length === 0) return r;
|
|
7042
|
-
let i = n ? t +
|
|
7047
|
+
let i = n ? t + ps : t;
|
|
7043
7048
|
return e.forEach((e) => {
|
|
7044
7049
|
let t = e[i];
|
|
7045
7050
|
typeof t == "number" && t < r && (r = t);
|
|
7046
7051
|
}), r;
|
|
7047
|
-
},
|
|
7052
|
+
}, Ws = ({ hideLabel: e, showDistributionRangeLabels: t, chartData: n, formatBucketBoundary: r, columnValueFormatter: i, enableFocusView: a, focuses: o, focusText: s }) => e ? () => "" : t ? (e) => !n || n.length === 0 ? "" : e.value === "--DISTRIBUTION-RANGE-MIN--" ? r(n[0].bucketMin) : e.value === "--DISTRIBUTION-RANGE-MAX--" ? r(n[n.length - 1].bucketMax) : "" : (e) => {
|
|
7048
7053
|
if (e.value === "--SEPARATOR--" || e.value === "--PAD-START--" || e.value === "--PAD-END--") return "";
|
|
7049
7054
|
let t = e.value;
|
|
7050
7055
|
typeof i == "function" && (t = i(e));
|
|
@@ -7054,13 +7059,13 @@ var Qa = {
|
|
|
7054
7059
|
return t.substring(0, e) + "..." + n;
|
|
7055
7060
|
}
|
|
7056
7061
|
return t + n;
|
|
7057
|
-
},
|
|
7062
|
+
}, Gs = new Map(Zo.map((e) => [e.value, e])), Ks = (e) => e !== null, qs = (e) => {
|
|
7058
7063
|
let t = Number(e ?? 0);
|
|
7059
7064
|
return Number.isFinite(t) ? t : 0;
|
|
7060
|
-
},
|
|
7065
|
+
}, Js = (e) => {
|
|
7061
7066
|
let t = typeof e == "string" ? { value: e } : e, n = t.value;
|
|
7062
7067
|
if (!n) return null;
|
|
7063
|
-
let r =
|
|
7068
|
+
let r = Gs.get(n), i = t.label ?? r?.label ?? n;
|
|
7064
7069
|
return {
|
|
7065
7070
|
ariaLabel: t.ariaLabel ?? i,
|
|
7066
7071
|
icon: t.icon ?? r?.icon,
|
|
@@ -7068,14 +7073,14 @@ var Qa = {
|
|
|
7068
7073
|
label: i,
|
|
7069
7074
|
value: n
|
|
7070
7075
|
};
|
|
7071
|
-
},
|
|
7072
|
-
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e :
|
|
7076
|
+
}, Ys = (e = [], t = {}) => {
|
|
7077
|
+
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : Qo).map(Js).filter(Ks);
|
|
7073
7078
|
if (!r.some((e) => e.value !== "table")) {
|
|
7074
|
-
let e =
|
|
7079
|
+
let e = Js($o);
|
|
7075
7080
|
e && (r = [e, ...r]);
|
|
7076
7081
|
}
|
|
7077
7082
|
if (!e.some((e) => typeof e == "object" && !!e)) {
|
|
7078
|
-
let e = r.filter((e) => e.value !==
|
|
7083
|
+
let e = r.filter((e) => e.value !== es);
|
|
7079
7084
|
if (e.length === 1) {
|
|
7080
7085
|
let t = e[0]?.value;
|
|
7081
7086
|
r = r.map((e) => e.value === t ? {
|
|
@@ -7086,21 +7091,21 @@ var Qa = {
|
|
|
7086
7091
|
}
|
|
7087
7092
|
}
|
|
7088
7093
|
return r;
|
|
7089
|
-
},
|
|
7094
|
+
}, Xs = (e, t) => t.find((t) => t.value === e)?.value ?? t[0]?.value ?? "table", Zs = (e, t = []) => {
|
|
7090
7095
|
if (t.length > 0) return t.filter((e) => !e.hide);
|
|
7091
7096
|
let n = e[0];
|
|
7092
7097
|
return n ? Object.keys(n).map((e) => ({
|
|
7093
7098
|
field: e,
|
|
7094
7099
|
headerName: e
|
|
7095
7100
|
})) : [];
|
|
7096
|
-
},
|
|
7101
|
+
}, Qs = (e, t = "") => e?.context?.chartSeriesDisplayName ?? e?.headerName ?? e?.field ?? t, $s = (e) => String(e?.context?.dataType ?? e?.dataType ?? e?.type ?? "").toLowerCase(), ec = (e, t) => {
|
|
7097
7102
|
if (!e) return !1;
|
|
7098
|
-
let n =
|
|
7099
|
-
return
|
|
7100
|
-
},
|
|
7103
|
+
let n = $s(e);
|
|
7104
|
+
return ts.has(n) ? !0 : t.some((t) => typeof t[e.field] == "number");
|
|
7105
|
+
}, tc = (e, t) => {
|
|
7101
7106
|
let n = e[t];
|
|
7102
7107
|
return n == null ? "" : String(n);
|
|
7103
|
-
},
|
|
7108
|
+
}, nc = (e, t) => {
|
|
7104
7109
|
let n = e, r = { ...n };
|
|
7105
7110
|
if (t.noDataOverlayText) {
|
|
7106
7111
|
let e = fn(n.overlays), i = fn(e?.noData);
|
|
@@ -7121,26 +7126,26 @@ var Qa = {
|
|
|
7121
7126
|
hideValueAxis: t.hideValueAxis,
|
|
7122
7127
|
showAxes: !t.hideAxes
|
|
7123
7128
|
});
|
|
7124
|
-
},
|
|
7129
|
+
}, rc = ({ dataRows: e, categoryColumn: t, seriesColumn: n, stackColumn: r }) => {
|
|
7125
7130
|
if (!t || !n || !r) return {
|
|
7126
7131
|
data: e,
|
|
7127
7132
|
stackValues: []
|
|
7128
7133
|
};
|
|
7129
7134
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
7130
7135
|
return e.forEach((e) => {
|
|
7131
|
-
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c =
|
|
7136
|
+
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c = Rs(n.field, s);
|
|
7132
7137
|
a.add(s);
|
|
7133
7138
|
let l = i.get(o) ?? { [t.field]: o };
|
|
7134
|
-
l[c] = Number(l[c] ?? 0) +
|
|
7139
|
+
l[c] = Number(l[c] ?? 0) + qs(e[n.field]), i.set(o, l);
|
|
7135
7140
|
}), {
|
|
7136
7141
|
data: Array.from(i.values()),
|
|
7137
7142
|
stackValues: Array.from(a)
|
|
7138
7143
|
};
|
|
7139
|
-
},
|
|
7144
|
+
}, ic = ({ dataRows: e, categoryColumn: t, seriesColumn: n }) => {
|
|
7140
7145
|
if (!t || !n) return e;
|
|
7141
7146
|
let r = /* @__PURE__ */ new Map();
|
|
7142
7147
|
return e.forEach((e) => {
|
|
7143
|
-
let i = e[t.field] ?? "", a = String(i), o =
|
|
7148
|
+
let i = e[t.field] ?? "", a = String(i), o = qs(e[n.field]), s = r.get(a);
|
|
7144
7149
|
if (s) {
|
|
7145
7150
|
s[n.field] = Number(s[n.field] ?? 0) + o;
|
|
7146
7151
|
return;
|
|
@@ -7151,16 +7156,16 @@ var Qa = {
|
|
|
7151
7156
|
[n.field]: o
|
|
7152
7157
|
});
|
|
7153
7158
|
}), Array.from(r.values());
|
|
7154
|
-
},
|
|
7159
|
+
}, ac = ({ dataRows: e, mapColumn: t, seriesColumn: n }) => {
|
|
7155
7160
|
if (!t || !n) return [];
|
|
7156
7161
|
let r = /* @__PURE__ */ new Map();
|
|
7157
7162
|
return e.forEach((e) => {
|
|
7158
7163
|
let i = String(e[t.field] ?? "");
|
|
7159
7164
|
if (!i) return;
|
|
7160
7165
|
let a = r.get(i) ?? { state: i };
|
|
7161
|
-
a[n.field] = Number(a[n.field] ?? 0) +
|
|
7166
|
+
a[n.field] = Number(a[n.field] ?? 0) + qs(e[n.field]), r.set(i, a);
|
|
7162
7167
|
}), Array.from(r.values());
|
|
7163
|
-
},
|
|
7168
|
+
}, oc = (e, t) => {
|
|
7164
7169
|
if (!t || e.length === 0) return {
|
|
7165
7170
|
min: 0,
|
|
7166
7171
|
max: 0
|
|
@@ -7176,8 +7181,8 @@ var Qa = {
|
|
|
7176
7181
|
min: 0,
|
|
7177
7182
|
max: 0
|
|
7178
7183
|
};
|
|
7179
|
-
},
|
|
7180
|
-
let t =
|
|
7184
|
+
}, sc = (e) => {
|
|
7185
|
+
let t = $s(e);
|
|
7181
7186
|
return t === "currency" ? (e) => e.toLocaleString("en-US", {
|
|
7182
7187
|
currency: "USD",
|
|
7183
7188
|
maximumFractionDigits: 0,
|
|
@@ -7186,7 +7191,7 @@ var Qa = {
|
|
|
7186
7191
|
maximumFractionDigits: 0,
|
|
7187
7192
|
style: "percent"
|
|
7188
7193
|
}) : (e) => e.toLocaleString("en-US");
|
|
7189
|
-
},
|
|
7194
|
+
}, cc = ({ aggregatedCategoryChartData: e, categoryColumn: t, dataLimit: n, displayDataRows: r, hideAxes: i, hideAxisTitles: a, hideLegend: o, hideValueAxis: s, noDataOverlayText: c, numericColumns: l, providedChartOptions: u, secondarySeriesColumn: d, selectedChartType: f, seriesColumn: p, showSeriesLabels: m, stackColumn: h, stackedChartData: g, useDisplayDataRows: _, xKey: v, yKey: y }) => {
|
|
7190
7195
|
let b = {
|
|
7191
7196
|
dataLimit: n,
|
|
7192
7197
|
hideAxes: i,
|
|
@@ -7195,12 +7200,12 @@ var Qa = {
|
|
|
7195
7200
|
hideValueAxis: s,
|
|
7196
7201
|
noDataOverlayText: c
|
|
7197
7202
|
};
|
|
7198
|
-
if (u) return
|
|
7203
|
+
if (u) return nc({
|
|
7199
7204
|
...u,
|
|
7200
7205
|
data: _ ? r : u.data ?? r
|
|
7201
7206
|
}, b);
|
|
7202
|
-
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w =
|
|
7203
|
-
if (x === "pie") return
|
|
7207
|
+
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w = Qs(t, S), T = Qs(p, C);
|
|
7208
|
+
if (x === "pie") return nc({
|
|
7204
7209
|
data: e,
|
|
7205
7210
|
series: [{
|
|
7206
7211
|
type: "pie",
|
|
@@ -7212,34 +7217,34 @@ var Qa = {
|
|
|
7212
7217
|
}, b);
|
|
7213
7218
|
if (x === "scatter") {
|
|
7214
7219
|
let e = v === void 0 ? l[0] ?? t : t, n = y === void 0 ? l.find((t) => t.field !== e?.field) ?? d ?? p : p, i = e?.field ?? S, a = n?.field ?? C;
|
|
7215
|
-
return
|
|
7220
|
+
return nc({
|
|
7216
7221
|
data: r,
|
|
7217
7222
|
series: [{
|
|
7218
7223
|
type: "scatter",
|
|
7219
7224
|
xKey: i,
|
|
7220
|
-
xName:
|
|
7225
|
+
xName: Qs(e, i),
|
|
7221
7226
|
yKey: a,
|
|
7222
|
-
yName:
|
|
7227
|
+
yName: Qs(n, a)
|
|
7223
7228
|
}],
|
|
7224
7229
|
axes: [{
|
|
7225
7230
|
type: "number",
|
|
7226
7231
|
position: "bottom",
|
|
7227
|
-
title: { text:
|
|
7232
|
+
title: { text: Qs(e, i) }
|
|
7228
7233
|
}, {
|
|
7229
7234
|
type: "number",
|
|
7230
7235
|
position: "left",
|
|
7231
|
-
title: { text:
|
|
7236
|
+
title: { text: Qs(n, a) }
|
|
7232
7237
|
}]
|
|
7233
7238
|
}, b);
|
|
7234
7239
|
}
|
|
7235
7240
|
if (x === "histogram") {
|
|
7236
7241
|
let e = v === void 0 ? l[0] ?? p ?? t : t, n = e?.field ?? C;
|
|
7237
|
-
return
|
|
7242
|
+
return nc({
|
|
7238
7243
|
data: r,
|
|
7239
7244
|
series: [{
|
|
7240
7245
|
type: "histogram",
|
|
7241
7246
|
xKey: n,
|
|
7242
|
-
xName:
|
|
7247
|
+
xName: Qs(e, n)
|
|
7243
7248
|
}]
|
|
7244
7249
|
}, b);
|
|
7245
7250
|
}
|
|
@@ -7247,13 +7252,13 @@ var Qa = {
|
|
|
7247
7252
|
enabled: !0,
|
|
7248
7253
|
...D === "bar" ? { placement: "outside-end" } : {}
|
|
7249
7254
|
} } : {}, A = x.endsWith("_stacked") && !!h, j = !!h && (A || g.stackValues.length > 1);
|
|
7250
|
-
return
|
|
7255
|
+
return nc({
|
|
7251
7256
|
data: j ? g.data : e,
|
|
7252
7257
|
series: j ? g.stackValues.map((e) => ({
|
|
7253
7258
|
type: D,
|
|
7254
7259
|
xKey: S,
|
|
7255
7260
|
xName: w,
|
|
7256
|
-
yKey:
|
|
7261
|
+
yKey: Rs(C, e),
|
|
7257
7262
|
yName: e,
|
|
7258
7263
|
...D === "bar" ? { direction: O ? "horizontal" : "vertical" } : {},
|
|
7259
7264
|
...A ? { stacked: !0 } : {},
|
|
@@ -7277,16 +7282,16 @@ var Qa = {
|
|
|
7277
7282
|
title: { text: T }
|
|
7278
7283
|
}]
|
|
7279
7284
|
}, b);
|
|
7280
|
-
},
|
|
7285
|
+
}, lc = {
|
|
7281
7286
|
key: 0,
|
|
7282
7287
|
class: "pv-flex pv-space-between pv-stack-12"
|
|
7283
|
-
},
|
|
7288
|
+
}, uc = {
|
|
7284
7289
|
key: 0,
|
|
7285
7290
|
class: "pv-heading-2"
|
|
7286
|
-
},
|
|
7291
|
+
}, dc = {
|
|
7287
7292
|
key: 1,
|
|
7288
7293
|
class: "pv-stack-12"
|
|
7289
|
-
},
|
|
7294
|
+
}, fc = { class: "pv-data-widget__body" }, pc = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
7290
7295
|
__name: "PvDataWidget",
|
|
7291
7296
|
props: /* @__PURE__ */ g({
|
|
7292
7297
|
appliedFilters: { default: () => [] },
|
|
@@ -7356,12 +7361,12 @@ var Qa = {
|
|
|
7356
7361
|
let n = e, c = B(e, "chartType"), l = (e) => {
|
|
7357
7362
|
let t = e?.data;
|
|
7358
7363
|
return Array.isArray(t) ? t : [];
|
|
7359
|
-
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() =>
|
|
7360
|
-
get: () =>
|
|
7364
|
+
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() => Ys(ee.value ? n.chartTypes : n.chartTypes.filter((e) => !d(e)), { useDefaultChartTypesWhenEmpty: n.chartTypes.length === 0 })), p = r({
|
|
7365
|
+
get: () => Xs(c.value, f.value),
|
|
7361
7366
|
set: (e) => {
|
|
7362
7367
|
c.value = e;
|
|
7363
7368
|
}
|
|
7364
|
-
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => mn(_.value, n.dataLimit)), b = r(() =>
|
|
7369
|
+
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => mn(_.value, n.dataLimit)), b = r(() => Zs(_.value, n.colDefs)), S = (e) => ec(e, _.value), C = r(() => b.value.filter((e) => !e.context?.hideFromCharting)), w = r(() => C.value.filter(S)), T = r(() => {
|
|
7365
7370
|
if (n.xKey !== void 0) {
|
|
7366
7371
|
let e = n.xKey;
|
|
7367
7372
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
@@ -7384,34 +7389,34 @@ var Qa = {
|
|
|
7384
7389
|
let e = n.mapKey;
|
|
7385
7390
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
7386
7391
|
}
|
|
7387
|
-
return C.value.find((e) => e.field === "state") ?? C.value.find((e) =>
|
|
7392
|
+
return C.value.find((e) => e.field === "state") ?? C.value.find((e) => $s(e) === "location");
|
|
7388
7393
|
}), ee = r(() => {
|
|
7389
7394
|
let e = N.value?.field;
|
|
7390
7395
|
return !!(e && T.value?.field === e);
|
|
7391
|
-
}), F = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), I = r(() => p.value ===
|
|
7396
|
+
}), F = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), I = r(() => p.value === es), L = r(() => p.value === "map" && ee.value), R = k(), z = r(() => b.value.map((e) => ({
|
|
7392
7397
|
field: e.field,
|
|
7393
|
-
label:
|
|
7394
|
-
}))), te = r(() => v.value.map((e) => b.value.map((t) =>
|
|
7398
|
+
label: Qs(e, e.field)
|
|
7399
|
+
}))), te = r(() => v.value.map((e) => b.value.map((t) => tc(e, t.field)))), ne = r(() => n.showTableBelowChart && !I.value && b.value.length > 0), V = r(() => sn(n) || !!(n.enableTableScrolling && n.tableMaxHeight)), re = r(() => on(n)), H = r(() => {
|
|
7395
7400
|
if (!n.enableTableScrolling) return;
|
|
7396
7401
|
let e = {
|
|
7397
7402
|
overflowX: "auto",
|
|
7398
7403
|
overflowY: "auto"
|
|
7399
7404
|
}, t = an(n.tableMaxHeight);
|
|
7400
7405
|
return t && (e.maxHeight = t), e;
|
|
7401
|
-
}), ie = r(() =>
|
|
7406
|
+
}), ie = r(() => rc({
|
|
7402
7407
|
dataRows: v.value,
|
|
7403
7408
|
categoryColumn: T.value,
|
|
7404
7409
|
seriesColumn: E.value,
|
|
7405
7410
|
stackColumn: M.value
|
|
7406
|
-
})), U = r(() =>
|
|
7411
|
+
})), U = r(() => ic({
|
|
7407
7412
|
dataRows: v.value,
|
|
7408
7413
|
categoryColumn: T.value,
|
|
7409
7414
|
seriesColumn: E.value
|
|
7410
|
-
})), ae = r(() =>
|
|
7415
|
+
})), ae = r(() => ac({
|
|
7411
7416
|
dataRows: v.value,
|
|
7412
7417
|
mapColumn: N.value,
|
|
7413
7418
|
seriesColumn: E.value
|
|
7414
|
-
})), G = r(() =>
|
|
7419
|
+
})), G = r(() => oc(ae.value, E.value?.field)), K = r(() => sc(E.value)), oe = r(() => cc({
|
|
7415
7420
|
aggregatedCategoryChartData: U.value,
|
|
7416
7421
|
categoryColumn: T.value,
|
|
7417
7422
|
dataLimit: n.dataLimit,
|
|
@@ -7458,25 +7463,25 @@ var Qa = {
|
|
|
7458
7463
|
style: x(re.value)
|
|
7459
7464
|
}, {
|
|
7460
7465
|
default: W(() => [
|
|
7461
|
-
h.value ? (D(), o("div",
|
|
7466
|
+
h.value ? (D(), o("div", lc, [s("div", null, [e.title ? (D(), o("span", uc, P(e.title), 1)) : a("", !0)]), s("div", null, [m.value ? (D(), i(oa, {
|
|
7462
7467
|
key: 0,
|
|
7463
7468
|
modelValue: p.value,
|
|
7464
7469
|
"onUpdate:modelValue": r[0] ||= (e) => p.value = e,
|
|
7465
7470
|
options: f.value,
|
|
7466
7471
|
size: "lg"
|
|
7467
7472
|
}, null, 8, ["modelValue", "options"])) : a("", !0)])])) : a("", !0),
|
|
7468
|
-
g.value ? (D(), o("div",
|
|
7469
|
-
s("div",
|
|
7473
|
+
g.value ? (D(), o("div", dc, [(D(!0), o(t, null, A(e.appliedFilters, (e) => (D(), o("span", { key: e }, P(e), 1))), 128))])) : a("", !0),
|
|
7474
|
+
s("div", fc, [j(n.$slots, "default", {}, void 0, !0), F.value ? (D(), o(t, { key: 0 }, [I.value ? (D(), o("div", {
|
|
7470
7475
|
key: 0,
|
|
7471
7476
|
class: y(["pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
7472
7477
|
style: x(H.value)
|
|
7473
|
-
}, [u(
|
|
7478
|
+
}, [u(Xo, {
|
|
7474
7479
|
headers: z.value,
|
|
7475
7480
|
rows: te.value
|
|
7476
7481
|
}, null, 8, ["headers", "rows"])], 6)) : L.value ? (D(), o("div", {
|
|
7477
7482
|
key: 1,
|
|
7478
7483
|
style: x({ minHeight: `${e.minHeight}px` })
|
|
7479
|
-
}, [u(
|
|
7484
|
+
}, [u(Jo, {
|
|
7480
7485
|
selectedRegion: R.value,
|
|
7481
7486
|
"onUpdate:selectedRegion": r[1] ||= (e) => R.value = e,
|
|
7482
7487
|
chartData: ae.value,
|
|
@@ -7515,7 +7520,7 @@ var Qa = {
|
|
|
7515
7520
|
key: 3,
|
|
7516
7521
|
class: y(["pv-data-widget__below-table pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
7517
7522
|
style: x(H.value)
|
|
7518
|
-
}, [u(
|
|
7523
|
+
}, [u(Xo, {
|
|
7519
7524
|
headers: z.value,
|
|
7520
7525
|
rows: te.value
|
|
7521
7526
|
}, null, 8, ["headers", "rows"])], 6)) : a("", !0)], 64)) : a("", !0)]),
|
|
@@ -7524,15 +7529,15 @@ var Qa = {
|
|
|
7524
7529
|
_: 3
|
|
7525
7530
|
}, 8, ["class", "style"]));
|
|
7526
7531
|
}
|
|
7527
|
-
}), [["__scopeId", "data-v-9118bfea"]]),
|
|
7532
|
+
}), [["__scopeId", "data-v-9118bfea"]]), mc = [
|
|
7528
7533
|
"aria-label",
|
|
7529
7534
|
"aria-expanded",
|
|
7530
7535
|
"aria-controls",
|
|
7531
7536
|
"disabled"
|
|
7532
|
-
],
|
|
7537
|
+
], hc = {
|
|
7533
7538
|
key: 0,
|
|
7534
7539
|
class: "pv-shimmer"
|
|
7535
|
-
},
|
|
7540
|
+
}, gc = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
7536
7541
|
__name: "PvDropdown",
|
|
7537
7542
|
props: {
|
|
7538
7543
|
ariaLabel: {},
|
|
@@ -7612,7 +7617,7 @@ var Qa = {
|
|
|
7612
7617
|
"aria-controls": R(m),
|
|
7613
7618
|
onClick: w,
|
|
7614
7619
|
disabled: e.disabled
|
|
7615
|
-
}, [j(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 14,
|
|
7620
|
+
}, [j(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 14, mc), (D(), i(n, {
|
|
7616
7621
|
to: e.teleportLocation,
|
|
7617
7622
|
disabled: !e.useTeleport
|
|
7618
7623
|
}, [u(No, {
|
|
@@ -7626,7 +7631,7 @@ var Qa = {
|
|
|
7626
7631
|
isSortable: e.isSortable,
|
|
7627
7632
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
7628
7633
|
}, {
|
|
7629
|
-
default: W(() => [j(t.$slots, "default", {}, () => [e.isLoading ? (D(), o("span",
|
|
7634
|
+
default: W(() => [j(t.$slots, "default", {}, () => [e.isLoading ? (D(), o("span", hc, "Loading...")) : a("", !0)], !0)]),
|
|
7630
7635
|
_: 3
|
|
7631
7636
|
}, 8, [
|
|
7632
7637
|
"id",
|
|
@@ -7637,7 +7642,7 @@ var Qa = {
|
|
|
7637
7642
|
"isSortable"
|
|
7638
7643
|
])], 8, ["to", "disabled"]))], 32)), [[R(Q), T]]);
|
|
7639
7644
|
}
|
|
7640
|
-
}), [["__scopeId", "data-v-bb8eae3f"]]),
|
|
7645
|
+
}), [["__scopeId", "data-v-bb8eae3f"]]), _c = ["data-style"], vc = /* @__PURE__ */ d({
|
|
7641
7646
|
__name: "PvTag",
|
|
7642
7647
|
props: {
|
|
7643
7648
|
size: { default: "md" },
|
|
@@ -7700,20 +7705,20 @@ var Qa = {
|
|
|
7700
7705
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
7701
7706
|
onClick: r[0] ||= K((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
7702
7707
|
}, null, 8, ["data-dd-action-name"])) : a("", !0)
|
|
7703
|
-
], 14,
|
|
7708
|
+
], 14, _c));
|
|
7704
7709
|
}
|
|
7705
|
-
}),
|
|
7710
|
+
}), yc = { class: "pv-inset-squish-12" }, bc = {
|
|
7706
7711
|
key: 0,
|
|
7707
7712
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
7708
7713
|
style: { "--flex-align": "flex-start" }
|
|
7709
|
-
},
|
|
7714
|
+
}, xc = { class: "pv-heading-3" }, Sc = {
|
|
7710
7715
|
key: 0,
|
|
7711
7716
|
class: "pv-text-body-md"
|
|
7712
|
-
},
|
|
7717
|
+
}, Cc = {
|
|
7713
7718
|
key: 0,
|
|
7714
7719
|
class: "pv-inset-squish-12 pv-border-top",
|
|
7715
7720
|
style: { "--color-border": "var(--modal-footer-border-color, #d2d8dc)" }
|
|
7716
|
-
},
|
|
7721
|
+
}, wc = /* @__PURE__ */ d({
|
|
7717
7722
|
__name: "PvModal",
|
|
7718
7723
|
props: /* @__PURE__ */ g({
|
|
7719
7724
|
header: {},
|
|
@@ -7752,21 +7757,21 @@ var Qa = {
|
|
|
7752
7757
|
style: x(n.value),
|
|
7753
7758
|
onClose: l,
|
|
7754
7759
|
onClick: u
|
|
7755
|
-
}, [s("div",
|
|
7760
|
+
}, [s("div", yc, [e.hideHeader ? a("", !0) : (D(), o("div", bc, [s("span", xc, P(e.header), 1), e.subheader ? (D(), o("span", Sc, P(e.subheader), 1)) : a("", !0)])), j(t.$slots, "body")]), e.hideFooter ? a("", !0) : (D(), o("div", Cc, [j(t.$slots, "footer")]))], 36));
|
|
7756
7761
|
}
|
|
7757
|
-
}),
|
|
7762
|
+
}), Tc = /* @__PURE__ */ function(e) {
|
|
7758
7763
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
7759
7764
|
}({});
|
|
7760
7765
|
(/* @__PURE__ */ (function(e) {
|
|
7761
7766
|
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
7762
|
-
})({})).Primary,
|
|
7767
|
+
})({})).Primary, Tc.Horizontal;
|
|
7763
7768
|
//#endregion
|
|
7764
7769
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
7765
|
-
var
|
|
7770
|
+
var Ec = [
|
|
7766
7771
|
"data-style",
|
|
7767
7772
|
"disabled",
|
|
7768
7773
|
"title"
|
|
7769
|
-
],
|
|
7774
|
+
], Dc = { class: "pv-truncate" }, Oc = /* @__PURE__ */ d({
|
|
7770
7775
|
__name: "PvSuggestionTag",
|
|
7771
7776
|
props: {
|
|
7772
7777
|
size: { default: "md" },
|
|
@@ -7802,36 +7807,36 @@ var Tc = [
|
|
|
7802
7807
|
name: e.icon,
|
|
7803
7808
|
size: 12,
|
|
7804
7809
|
class: y(e.iconClasses)
|
|
7805
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
7810
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", Dc, P(e.label), 1)], 10, Ec));
|
|
7806
7811
|
}
|
|
7807
7812
|
});
|
|
7808
7813
|
tt.extend(it), tt.extend(nt), tt.extend(rt);
|
|
7809
7814
|
//#endregion
|
|
7810
7815
|
//#region src/components/base/PvDrawer/PvDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
7811
|
-
var
|
|
7816
|
+
var kc = {
|
|
7812
7817
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
7813
7818
|
style: { "flex-shrink": "0" }
|
|
7814
|
-
},
|
|
7819
|
+
}, Ac = {
|
|
7815
7820
|
class: "pv-flex-vertical pv-stack-16",
|
|
7816
7821
|
style: { "--flex-align": "flex-start" }
|
|
7817
|
-
},
|
|
7822
|
+
}, jc = { class: "pv-flex pv-full-width" }, Mc = { class: "pv-full-width pv-heading-3" }, Nc = {
|
|
7818
7823
|
key: 0,
|
|
7819
7824
|
class: "pv-text-body-md"
|
|
7820
|
-
},
|
|
7825
|
+
}, Pc = {
|
|
7821
7826
|
key: 0,
|
|
7822
7827
|
class: "pv-inset-inline-16"
|
|
7823
|
-
},
|
|
7828
|
+
}, Fc = {
|
|
7824
7829
|
class: "pv-inset-inline-16",
|
|
7825
7830
|
style: {
|
|
7826
7831
|
flex: "1",
|
|
7827
7832
|
"overflow-y": "auto",
|
|
7828
7833
|
"min-height": "0"
|
|
7829
7834
|
}
|
|
7830
|
-
},
|
|
7835
|
+
}, Ic = {
|
|
7831
7836
|
key: 0,
|
|
7832
7837
|
class: "pv-inset-squish-12 pv-border-top",
|
|
7833
7838
|
style: { "flex-shrink": "0" }
|
|
7834
|
-
},
|
|
7839
|
+
}, Lc = /* @__PURE__ */ d({
|
|
7835
7840
|
__name: "PvDrawer",
|
|
7836
7841
|
props: /* @__PURE__ */ g({
|
|
7837
7842
|
closeOnClickOutside: {
|
|
@@ -7877,32 +7882,32 @@ var Oc = {
|
|
|
7877
7882
|
height: "100%"
|
|
7878
7883
|
}
|
|
7879
7884
|
}, [
|
|
7880
|
-
s("div",
|
|
7885
|
+
s("div", kc, [n.$slots.header ? j(n.$slots, "header", { key: 0 }) : (D(), o(t, { key: 1 }, [s("div", Ac, [s("div", jc, [s("span", Mc, P(e.header), 1), u(Kn, {
|
|
7881
7886
|
"left-icon": "close",
|
|
7882
7887
|
ariaLabel: "Close",
|
|
7883
7888
|
size: "md",
|
|
7884
7889
|
onClick: f,
|
|
7885
7890
|
"data-testid": "pv-side-panel-close-button",
|
|
7886
7891
|
variant: "ghost"
|
|
7887
|
-
})]), e.subheader ? (D(), o("span",
|
|
7892
|
+
})]), e.subheader ? (D(), o("span", Nc, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (D(), o("div", Pc, [u(Da, _({
|
|
7888
7893
|
"data-testid": "pv-side-panel-input-search",
|
|
7889
7894
|
modelValue: l.value,
|
|
7890
7895
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
7891
7896
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))]),
|
|
7892
|
-
s("div",
|
|
7893
|
-
n.$slots.footer ? (D(), o("div",
|
|
7897
|
+
s("div", Fc, [j(n.$slots, "default")]),
|
|
7898
|
+
n.$slots.footer ? (D(), o("div", Ic, [j(n.$slots, "footer")])) : a("", !0)
|
|
7894
7899
|
], 512));
|
|
7895
7900
|
}
|
|
7896
|
-
}),
|
|
7901
|
+
}), Rc = /* @__PURE__ */ function(e) {
|
|
7897
7902
|
return e.Provider = "provider", e.Payer = "payer", e.LineOfBusiness = "lineOfBusiness", e.PlanType = "planType", e.Product = "product", e.CSBA = "CSBA", e.State = "state", e.Service = "service", e.ServiceCode = "serviceCode", e;
|
|
7898
7903
|
}({});
|
|
7899
|
-
|
|
7904
|
+
Rc.Provider, Rc.Payer, Rc.LineOfBusiness, Rc.PlanType, Rc.Product, Rc.CSBA, Rc.State, Rc.Service, Rc.ServiceCode, Rc.Provider, Rc.Payer, Rc.LineOfBusiness, Rc.PlanType, Rc.Product, Rc.CSBA, Rc.State, Rc.Service, Rc.ServiceCode, Math.random().toString();
|
|
7900
7905
|
//#endregion
|
|
7901
7906
|
//#region src/components/base/PvMenu/PvMenuControlPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7902
|
-
var
|
|
7907
|
+
var zc = {
|
|
7903
7908
|
"data-testid": "pv-select-menu-control-panel",
|
|
7904
7909
|
class: "pv-flex pv-space-between"
|
|
7905
|
-
},
|
|
7910
|
+
}, Bc = /* @__PURE__ */ d({
|
|
7906
7911
|
__name: "PvMenuControlPanel",
|
|
7907
7912
|
props: {
|
|
7908
7913
|
variant: {},
|
|
@@ -7917,7 +7922,7 @@ var Rc = {
|
|
|
7917
7922
|
],
|
|
7918
7923
|
setup(e) {
|
|
7919
7924
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
7920
|
-
return (n, r) => (D(), o("div",
|
|
7925
|
+
return (n, r) => (D(), o("div", zc, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u(Kn, {
|
|
7921
7926
|
variant: "ghost",
|
|
7922
7927
|
"data-testid": "pv-select-menu-item-select-all",
|
|
7923
7928
|
"data-dd-action-name": i.value,
|
|
@@ -7944,31 +7949,31 @@ var Rc = {
|
|
|
7944
7949
|
disabled: e.disabled
|
|
7945
7950
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
7946
7951
|
}
|
|
7947
|
-
}),
|
|
7952
|
+
}), Vc = ["data-dd-action-name"], Hc = {
|
|
7948
7953
|
key: 1,
|
|
7949
7954
|
class: "pv-inset-square-8"
|
|
7950
|
-
},
|
|
7955
|
+
}, Uc = {
|
|
7951
7956
|
key: 1,
|
|
7952
7957
|
class: "pv-text-body-sm pv-inset-inline",
|
|
7953
7958
|
style: {
|
|
7954
7959
|
color: "var(--color-text-quaternary, #89989b)",
|
|
7955
7960
|
"--inset-size": "8px"
|
|
7956
7961
|
}
|
|
7957
|
-
},
|
|
7962
|
+
}, Wc = {
|
|
7958
7963
|
key: 2,
|
|
7959
7964
|
class: "pv-border-top",
|
|
7960
7965
|
style: { margin: "8px 0" }
|
|
7961
|
-
},
|
|
7966
|
+
}, Gc = {
|
|
7962
7967
|
key: 3,
|
|
7963
7968
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
7964
7969
|
style: { "justify-content": "center" }
|
|
7965
|
-
},
|
|
7970
|
+
}, Kc = { key: 0 }, qc = {
|
|
7966
7971
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
7967
7972
|
style: {
|
|
7968
7973
|
"--flex-justify": "space-between",
|
|
7969
7974
|
"--bottom": "0"
|
|
7970
7975
|
}
|
|
7971
|
-
},
|
|
7976
|
+
}, Jc = /* @__PURE__ */ d({
|
|
7972
7977
|
__name: "PvMultiSelectButton",
|
|
7973
7978
|
props: /* @__PURE__ */ g({
|
|
7974
7979
|
companyLogo: {},
|
|
@@ -8262,10 +8267,10 @@ var Rc = {
|
|
|
8262
8267
|
"onUpdate:modelValue": r[1] ||= (e) => L.value = e,
|
|
8263
8268
|
class: "pv-stack-4",
|
|
8264
8269
|
placeholder: e.searchPlaceholder
|
|
8265
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
8266
|
-
n.$slots.header || R(_e) ? (D(), o("div",
|
|
8270
|
+
}, null, 8, ["model-value", "placeholder"])], 8, Vc)),
|
|
8271
|
+
n.$slots.header || R(_e) ? (D(), o("div", Hc, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8267
8272
|
se.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(de.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8268
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
8273
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Uc, P(t), 1)),
|
|
8269
8274
|
u(Vo, {
|
|
8270
8275
|
selectedItems: G.value,
|
|
8271
8276
|
"onUpdate:selectedItems": r[2] ||= (e) => G.value = e,
|
|
@@ -8292,7 +8297,7 @@ var Rc = {
|
|
|
8292
8297
|
"enableCascadeSelection",
|
|
8293
8298
|
"hasMoreOptions"
|
|
8294
8299
|
]),
|
|
8295
|
-
de.value && s !== de.value.length - 1 ? (D(), o("div",
|
|
8300
|
+
de.value && s !== de.value.length - 1 ? (D(), o("div", Wc)) : a("", !0)
|
|
8296
8301
|
]))), 128)) : (D(), i(Vo, {
|
|
8297
8302
|
key: 1,
|
|
8298
8303
|
selectedItems: G.value,
|
|
@@ -8318,8 +8323,8 @@ var Rc = {
|
|
|
8318
8323
|
"isSeeMoreLoading",
|
|
8319
8324
|
"hasMoreOptions"
|
|
8320
8325
|
]))], 64)) : a("", !0),
|
|
8321
|
-
e.isLoading ? (D(), o("div",
|
|
8322
|
-
s("div",
|
|
8326
|
+
e.isLoading ? (D(), o("div", Gc, [u(Dt, { variant: "dark" }), e.loadingText ? (D(), o("span", Kc, P(e.loadingText), 1)) : a("", !0)])) : se.value.length === 0 ? (D(), o(t, { key: 4 }, [R(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Ga, { key: 1 }))], 64)) : a("", !0),
|
|
8327
|
+
s("div", qc, [R(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(Bc, {
|
|
8323
8328
|
key: 1,
|
|
8324
8329
|
variant: e.menuActionsVariant,
|
|
8325
8330
|
disabled: e.isLoading,
|
|
@@ -8337,18 +8342,18 @@ var Rc = {
|
|
|
8337
8342
|
_: 3
|
|
8338
8343
|
}, 16, ["modelValue", "offset"]));
|
|
8339
8344
|
}
|
|
8340
|
-
}),
|
|
8345
|
+
}), Yc = {
|
|
8341
8346
|
short: 5,
|
|
8342
8347
|
long: 7
|
|
8343
|
-
},
|
|
8344
|
-
if (n <=
|
|
8348
|
+
}, Xc = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
8349
|
+
if (n <= Yc[e]) return Array.from({ length: n }, (e, t) => ({
|
|
8345
8350
|
page: t + 1,
|
|
8346
8351
|
label: (t + 1).toString()
|
|
8347
8352
|
}));
|
|
8348
8353
|
let r = [{
|
|
8349
8354
|
page: 1,
|
|
8350
8355
|
label: "1"
|
|
8351
|
-
}], i =
|
|
8356
|
+
}], i = Yc[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
8352
8357
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
8353
8358
|
page: 0,
|
|
8354
8359
|
label: "..."
|
|
@@ -8367,11 +8372,11 @@ var Rc = {
|
|
|
8367
8372
|
page: n,
|
|
8368
8373
|
label: n.toString()
|
|
8369
8374
|
}), r;
|
|
8370
|
-
} }),
|
|
8375
|
+
} }), Zc = ["data-style"], Qc = ["data-testid", "aria-current"], $c = {
|
|
8371
8376
|
key: 0,
|
|
8372
8377
|
class: "dots-button",
|
|
8373
8378
|
disabled: ""
|
|
8374
|
-
},
|
|
8379
|
+
}, el = ["onClick"], tl = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
8375
8380
|
__name: "PvPagination",
|
|
8376
8381
|
props: /* @__PURE__ */ g({
|
|
8377
8382
|
size: { default: "lg" },
|
|
@@ -8384,7 +8389,7 @@ var Rc = {
|
|
|
8384
8389
|
}),
|
|
8385
8390
|
emits: ["update:modelValue"],
|
|
8386
8391
|
setup(e) {
|
|
8387
|
-
let { getPaginations: n } =
|
|
8392
|
+
let { getPaginations: n } = Xc({ variant: e.variant }), r = B(e, "modelValue");
|
|
8388
8393
|
return (i, a) => (D(), o("ol", {
|
|
8389
8394
|
role: "list",
|
|
8390
8395
|
class: "pv-pagination",
|
|
@@ -8406,10 +8411,10 @@ var Rc = {
|
|
|
8406
8411
|
key: e.page,
|
|
8407
8412
|
"data-testid": `pagination-button-${e.page}`,
|
|
8408
8413
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
8409
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
8414
|
+
}, [e.label === "..." ? (D(), o("button", $c, P(e.label), 1)) : (D(), o("button", {
|
|
8410
8415
|
key: 1,
|
|
8411
8416
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
8412
|
-
}, P(e.label), 9,
|
|
8417
|
+
}, P(e.label), 9, el))], 8, Qc))), 128)),
|
|
8413
8418
|
s("li", null, [u(Kn, {
|
|
8414
8419
|
"data-testid": "pagination-right-arrow-icon",
|
|
8415
8420
|
disabled: r.value === e.maxPages,
|
|
@@ -8418,9 +8423,9 @@ var Rc = {
|
|
|
8418
8423
|
variant: "ghost",
|
|
8419
8424
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
8420
8425
|
}, null, 8, ["disabled"])])
|
|
8421
|
-
], 8,
|
|
8426
|
+
], 8, Zc));
|
|
8422
8427
|
}
|
|
8423
|
-
}), [["__scopeId", "data-v-cfa4cb54"]]),
|
|
8428
|
+
}), [["__scopeId", "data-v-cfa4cb54"]]), nl = /* @__PURE__ */ d({
|
|
8424
8429
|
__name: "PvSkeleton",
|
|
8425
8430
|
props: {
|
|
8426
8431
|
size: { default: "md" },
|
|
@@ -8454,7 +8459,7 @@ Math.random().toString(), new Intl.NumberFormat("en-US", {
|
|
|
8454
8459
|
});
|
|
8455
8460
|
//#endregion
|
|
8456
8461
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
8457
|
-
var
|
|
8462
|
+
var rl = "__pv_filter_panel_scoped_value__", il = (e) => typeof e == "object" && !!e, al = (e) => {
|
|
8458
8463
|
try {
|
|
8459
8464
|
let t = JSON.parse(decodeURIComponent(e));
|
|
8460
8465
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -8468,7 +8473,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8468
8473
|
} catch {
|
|
8469
8474
|
return [];
|
|
8470
8475
|
}
|
|
8471
|
-
},
|
|
8476
|
+
}, ol = (e) => {
|
|
8472
8477
|
if (!e.startsWith("__")) return null;
|
|
8473
8478
|
let t = e.slice(2).split("__");
|
|
8474
8479
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -8481,68 +8486,68 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8481
8486
|
pairs: n,
|
|
8482
8487
|
value: n[0].value
|
|
8483
8488
|
};
|
|
8484
|
-
},
|
|
8489
|
+
}, sl = (e) => {
|
|
8485
8490
|
if (e == null) return null;
|
|
8486
|
-
if (!e.startsWith(
|
|
8491
|
+
if (!e.startsWith(rl)) return ol(e) ?? {
|
|
8487
8492
|
pairs: [],
|
|
8488
8493
|
value: e
|
|
8489
8494
|
};
|
|
8490
|
-
let t =
|
|
8495
|
+
let t = al(e.slice(32));
|
|
8491
8496
|
return {
|
|
8492
8497
|
field: t[0]?.field,
|
|
8493
8498
|
pairs: t,
|
|
8494
8499
|
value: t[0]?.value ?? e
|
|
8495
8500
|
};
|
|
8496
|
-
},
|
|
8501
|
+
}, cl = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : il(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : sl(e.value)?.value ?? e.value : null, ll = (e, t) => e?.field ? e.field : e?.colField ? e.colField : sl(e?.value)?.field ?? t, ul = (e, t, n, r) => ll(e, r) === t && cl(e) === n, dl = (e) => {
|
|
8497
8502
|
let t = e;
|
|
8498
8503
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
8499
|
-
},
|
|
8504
|
+
}, fl = (e) => {
|
|
8500
8505
|
let t = e;
|
|
8501
|
-
return
|
|
8506
|
+
return dl(e) ? {
|
|
8502
8507
|
...t,
|
|
8503
|
-
conditions: (t.conditions ?? []).map(
|
|
8508
|
+
conditions: (t.conditions ?? []).map(fl)
|
|
8504
8509
|
} : { ...t };
|
|
8505
|
-
},
|
|
8510
|
+
}, pl = (e, t) => {
|
|
8506
8511
|
if (!e) return null;
|
|
8507
8512
|
let n = t instanceof Set ? t : new Set(t);
|
|
8508
|
-
if (!n.size) return
|
|
8509
|
-
if (!
|
|
8513
|
+
if (!n.size) return fl(e);
|
|
8514
|
+
if (!dl(e)) {
|
|
8510
8515
|
let t = e;
|
|
8511
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
8516
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : fl(e);
|
|
8512
8517
|
}
|
|
8513
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
8518
|
+
let r = e, i = (r.conditions ?? []).map((e) => pl(e, n)).filter((e) => !!e);
|
|
8514
8519
|
return i.length ? i.length === 1 ? i[0] : {
|
|
8515
8520
|
...r,
|
|
8516
8521
|
conditions: i
|
|
8517
8522
|
} : null;
|
|
8518
|
-
},
|
|
8523
|
+
}, ml = (e) => e ? [e.field, ...(e.children ?? []).flatMap(ml)] : [], hl = (e) => e ? e.children?.length ? e.children.flatMap(hl) : [e.field] : [], gl = (e) => {
|
|
8519
8524
|
let t = e?.context ?? {};
|
|
8520
|
-
return t.aggregateFieldHierarchy ?
|
|
8521
|
-
},
|
|
8525
|
+
return t.aggregateFieldHierarchy ? ml(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
8526
|
+
}, _l = (e) => {
|
|
8522
8527
|
let t = e?.context ?? {};
|
|
8523
8528
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
8524
|
-
},
|
|
8529
|
+
}, vl = (e, t) => {
|
|
8525
8530
|
for (let n of e ?? []) {
|
|
8526
8531
|
if (!n) continue;
|
|
8527
8532
|
if (n.value === t) return n;
|
|
8528
|
-
let e =
|
|
8533
|
+
let e = vl(n.children, t);
|
|
8529
8534
|
if (e) return e;
|
|
8530
8535
|
}
|
|
8531
|
-
},
|
|
8532
|
-
let n =
|
|
8536
|
+
}, yl = (e, t) => {
|
|
8537
|
+
let n = vl(t, e), r = n ? ll(n, "") : void 0, i = n ? cl(n) : null;
|
|
8533
8538
|
if (r && i !== null) return {
|
|
8534
8539
|
field: r,
|
|
8535
8540
|
value: i
|
|
8536
8541
|
};
|
|
8537
|
-
let a =
|
|
8542
|
+
let a = sl(e);
|
|
8538
8543
|
return {
|
|
8539
8544
|
field: a?.field,
|
|
8540
8545
|
value: a?.value ?? e
|
|
8541
8546
|
};
|
|
8542
|
-
},
|
|
8547
|
+
}, bl = (e, t, n) => {
|
|
8543
8548
|
let r = (e) => {
|
|
8544
8549
|
if (!e) return;
|
|
8545
|
-
let i =
|
|
8550
|
+
let i = ll(e, ""), a = cl(e);
|
|
8546
8551
|
if (i === t && a === n) return e.value;
|
|
8547
8552
|
for (let t of e.children ?? []) {
|
|
8548
8553
|
let e = r(t);
|
|
@@ -8554,9 +8559,9 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8554
8559
|
if (e) return e;
|
|
8555
8560
|
}
|
|
8556
8561
|
return `__${t}__${n}`;
|
|
8557
|
-
},
|
|
8562
|
+
}, xl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...xl(e.children)]), Sl = (e, t) => {
|
|
8558
8563
|
if (e.state !== "selected") return null;
|
|
8559
|
-
let { field: n, value: r } =
|
|
8564
|
+
let { field: n, value: r } = yl(e.id, t);
|
|
8560
8565
|
if (!n) return null;
|
|
8561
8566
|
let i = [{
|
|
8562
8567
|
colId: n,
|
|
@@ -8564,8 +8569,8 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8564
8569
|
filterType: "text",
|
|
8565
8570
|
type: "equals"
|
|
8566
8571
|
}];
|
|
8567
|
-
for (let n of
|
|
8568
|
-
let e =
|
|
8572
|
+
for (let n of xl(e.children)) {
|
|
8573
|
+
let e = yl(n.id, t);
|
|
8569
8574
|
e.field && i.push({
|
|
8570
8575
|
colId: e.field,
|
|
8571
8576
|
filter: e.value,
|
|
@@ -8578,10 +8583,10 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8578
8583
|
filterType: "join",
|
|
8579
8584
|
type: "AND"
|
|
8580
8585
|
};
|
|
8581
|
-
},
|
|
8582
|
-
let t =
|
|
8586
|
+
}, Cl = (e) => {
|
|
8587
|
+
let t = gl(e.colDef), n = pl(e.baseModel, t);
|
|
8583
8588
|
if (!t.length) return n;
|
|
8584
|
-
let r = e.state.map((t) =>
|
|
8589
|
+
let r = e.state.map((t) => Sl(t, e.options)).filter((e) => !!e);
|
|
8585
8590
|
if (!r.length) return n;
|
|
8586
8591
|
let i = r.length === 1 ? r[0] : {
|
|
8587
8592
|
conditions: r,
|
|
@@ -8593,17 +8598,17 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8593
8598
|
filterType: "join",
|
|
8594
8599
|
type: "AND"
|
|
8595
8600
|
} : i;
|
|
8596
|
-
},
|
|
8601
|
+
}, wl = (e, t, n) => {
|
|
8597
8602
|
if (!e) return [];
|
|
8598
8603
|
let r = e;
|
|
8599
|
-
if (
|
|
8604
|
+
if (dl(e)) {
|
|
8600
8605
|
let e = r.conditions ?? [];
|
|
8601
8606
|
if (r.type === "AND") {
|
|
8602
8607
|
let r = e.find((e) => {
|
|
8603
8608
|
let r = e;
|
|
8604
8609
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
8605
8610
|
});
|
|
8606
|
-
return e.flatMap((e) =>
|
|
8611
|
+
return e.flatMap((e) => wl(e, t, n).map((e) => ({
|
|
8607
8612
|
...e,
|
|
8608
8613
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
8609
8614
|
colId: r.colId,
|
|
@@ -8611,20 +8616,20 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8611
8616
|
} : void 0)
|
|
8612
8617
|
})));
|
|
8613
8618
|
}
|
|
8614
|
-
return e.flatMap((e) =>
|
|
8619
|
+
return e.flatMap((e) => wl(e, t, n));
|
|
8615
8620
|
}
|
|
8616
8621
|
return r.colId && t.has(r.colId) ? [{
|
|
8617
8622
|
colId: r.colId,
|
|
8618
8623
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
8619
8624
|
type: r.type
|
|
8620
8625
|
}] : [];
|
|
8621
|
-
},
|
|
8622
|
-
let t =
|
|
8626
|
+
}, Tl = (e) => {
|
|
8627
|
+
let t = gl(e.colDef);
|
|
8623
8628
|
if (!t.length) return [];
|
|
8624
|
-
let n = new Set(
|
|
8629
|
+
let n = new Set(hl(e.colDef.context?.aggregateFieldHierarchy)), r = _l(e.colDef), i = wl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
8625
8630
|
for (let t of i) {
|
|
8626
8631
|
if (!t.filter) continue;
|
|
8627
|
-
let n =
|
|
8632
|
+
let n = bl(e.options, t.colId, String(t.filter));
|
|
8628
8633
|
if (t.type === "equals") {
|
|
8629
8634
|
let e = a.get(n);
|
|
8630
8635
|
a.set(n, {
|
|
@@ -8635,7 +8640,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8635
8640
|
continue;
|
|
8636
8641
|
}
|
|
8637
8642
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
8638
|
-
let r =
|
|
8643
|
+
let r = bl(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
8639
8644
|
children: [],
|
|
8640
8645
|
id: r,
|
|
8641
8646
|
state: "selected"
|
|
@@ -8647,17 +8652,17 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8647
8652
|
}
|
|
8648
8653
|
}
|
|
8649
8654
|
return [...a.values()];
|
|
8650
|
-
},
|
|
8655
|
+
}, El = (e, t, n) => {
|
|
8651
8656
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8652
8657
|
if (r.length <= 1) return "Search";
|
|
8653
8658
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8654
8659
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8655
|
-
},
|
|
8656
|
-
if (!r ||
|
|
8660
|
+
}, Dl = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Ol = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8661
|
+
if (!r || Dl(i) === Dl(r)) return e;
|
|
8657
8662
|
if (!a || !n) return r;
|
|
8658
8663
|
let o = t(n);
|
|
8659
8664
|
return o ? `${o}: ${r}` : r;
|
|
8660
|
-
},
|
|
8665
|
+
}, kl = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Al = (e, t) => t ?? e, jl = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Ml = (e) => {
|
|
8661
8666
|
let t = /* @__PURE__ */ new Map();
|
|
8662
8667
|
for (let n of e) {
|
|
8663
8668
|
if (!n) continue;
|
|
@@ -8669,34 +8674,34 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8669
8674
|
t.set(n.value, {
|
|
8670
8675
|
...e,
|
|
8671
8676
|
...n,
|
|
8672
|
-
children:
|
|
8673
|
-
totalChildCount:
|
|
8677
|
+
children: Ml([...e.children ?? [], ...n.children ?? []]),
|
|
8678
|
+
totalChildCount: Al(e.totalChildCount, n.totalChildCount)
|
|
8674
8679
|
});
|
|
8675
8680
|
}
|
|
8676
8681
|
return [...t.values()];
|
|
8677
|
-
},
|
|
8682
|
+
}, Nl = (e, t) => {
|
|
8678
8683
|
for (let n of e ?? []) {
|
|
8679
8684
|
if (!n) continue;
|
|
8680
8685
|
if (n.value === t) return n;
|
|
8681
|
-
let e =
|
|
8686
|
+
let e = Nl(n.children, t);
|
|
8682
8687
|
if (e) return e;
|
|
8683
8688
|
}
|
|
8684
|
-
},
|
|
8689
|
+
}, Pl = (e, t, n) => {
|
|
8685
8690
|
if (!e || t === null) return !1;
|
|
8686
8691
|
if (e.value === t) return !0;
|
|
8687
|
-
let r =
|
|
8688
|
-
return r !== null && r === t ||
|
|
8689
|
-
},
|
|
8690
|
-
let r =
|
|
8692
|
+
let r = cl(e);
|
|
8693
|
+
return r !== null && r === t || ul(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => Pl(e, t, n)) ?? !1;
|
|
8694
|
+
}, Fl = (e, t, n) => {
|
|
8695
|
+
let r = Nl(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8691
8696
|
return e.map((e) => e && (e.value === t ? {
|
|
8692
8697
|
...e,
|
|
8693
|
-
children:
|
|
8694
|
-
totalChildCount:
|
|
8698
|
+
children: Ml([...e.children ?? [], ...i]),
|
|
8699
|
+
totalChildCount: Al(e.totalChildCount, r?.totalChildCount)
|
|
8695
8700
|
} : e.children?.length ? {
|
|
8696
8701
|
...e,
|
|
8697
|
-
children:
|
|
8702
|
+
children: Fl(e.children, t, n).filter((e) => !!e)
|
|
8698
8703
|
} : e));
|
|
8699
|
-
},
|
|
8704
|
+
}, Il = (e, t) => `${e}::${t}`, Ll = () => {
|
|
8700
8705
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
8701
8706
|
v.value = e;
|
|
8702
8707
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -8705,11 +8710,11 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8705
8710
|
let r = n ? o : i;
|
|
8706
8711
|
r.value[e] = t;
|
|
8707
8712
|
}, T = () => {
|
|
8708
|
-
o.value =
|
|
8713
|
+
o.value = jl(i.value), s.value = jl(a.value);
|
|
8709
8714
|
}, E = () => {
|
|
8710
8715
|
o.value = {}, s.value = {};
|
|
8711
8716
|
}, D = () => {
|
|
8712
|
-
i.value =
|
|
8717
|
+
i.value = jl(o.value), a.value = jl(s.value), E();
|
|
8713
8718
|
}, O = (e, t) => {
|
|
8714
8719
|
c.value[e] = t;
|
|
8715
8720
|
}, A = (e, t) => {
|
|
@@ -8733,7 +8738,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8733
8738
|
if (!o) return [];
|
|
8734
8739
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
8735
8740
|
c.value[n.field] = s;
|
|
8736
|
-
let u = n.parentId ?
|
|
8741
|
+
let u = n.parentId ? Nl(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? Il(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
8737
8742
|
g.value[x] = S;
|
|
8738
8743
|
try {
|
|
8739
8744
|
let c = await o({
|
|
@@ -8745,17 +8750,17 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8745
8750
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
8746
8751
|
});
|
|
8747
8752
|
if (g.value[x] !== S) return [];
|
|
8748
|
-
let u =
|
|
8753
|
+
let u = kl(c);
|
|
8749
8754
|
if (n.parentId) {
|
|
8750
|
-
let e =
|
|
8755
|
+
let e = Il(n.field, n.parentId);
|
|
8751
8756
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
8752
8757
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
8753
8758
|
let v = a.value[n.field] ?? [], b;
|
|
8754
|
-
b = n.parentId ?
|
|
8759
|
+
b = n.parentId ? Fl(r.value[n.field] ?? [], n.parentId, u.values) : y ? Ml([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
8755
8760
|
for (let e of v) {
|
|
8756
8761
|
if (!e) continue;
|
|
8757
|
-
let t =
|
|
8758
|
-
b.some((e) =>
|
|
8762
|
+
let t = cl(e) ?? e.value;
|
|
8763
|
+
b.some((e) => Pl(e, t, n.field)) || b.push(e);
|
|
8759
8764
|
}
|
|
8760
8765
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
8761
8766
|
} finally {
|
|
@@ -8790,7 +8795,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8790
8795
|
stagedFilterSelectedMetadataMap: s,
|
|
8791
8796
|
stagedFilterSelectedValueMap: o
|
|
8792
8797
|
};
|
|
8793
|
-
},
|
|
8798
|
+
}, Rl = () => {
|
|
8794
8799
|
let e = (e, n) => {
|
|
8795
8800
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
8796
8801
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -8803,7 +8808,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8803
8808
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
8804
8809
|
} : null
|
|
8805
8810
|
};
|
|
8806
|
-
},
|
|
8811
|
+
}, zl = /* @__PURE__ */ d({
|
|
8807
8812
|
__name: "QueryFormatter",
|
|
8808
8813
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8809
8814
|
modelValue: { required: !0 },
|
|
@@ -8817,7 +8822,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8817
8822
|
}),
|
|
8818
8823
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8819
8824
|
setup(e) {
|
|
8820
|
-
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } =
|
|
8825
|
+
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } = Rl(), u = r(() => {
|
|
8821
8826
|
let e = s.value?.queryTerms || [];
|
|
8822
8827
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8823
8828
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => {
|
|
@@ -8837,7 +8842,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8837
8842
|
};
|
|
8838
8843
|
s.value = l(s.value, t);
|
|
8839
8844
|
};
|
|
8840
|
-
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, A(u.value, (e, t) => (D(), i(
|
|
8845
|
+
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, A(u.value, (e, t) => (D(), i(vc, {
|
|
8841
8846
|
key: `${t}-${e.queryText}`,
|
|
8842
8847
|
variant: p(e),
|
|
8843
8848
|
label: f(e),
|
|
@@ -8847,33 +8852,33 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8847
8852
|
"variant",
|
|
8848
8853
|
"label",
|
|
8849
8854
|
"onHandleClose"
|
|
8850
|
-
]))), 128)), d.value > 0 ? (D(), i(
|
|
8855
|
+
]))), 128)), d.value > 0 ? (D(), i(vc, {
|
|
8851
8856
|
key: 0,
|
|
8852
8857
|
label: `+${d.value}`,
|
|
8853
8858
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8854
8859
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8855
8860
|
}
|
|
8856
|
-
}),
|
|
8861
|
+
}), Bl = [
|
|
8857
8862
|
"aria-expanded",
|
|
8858
8863
|
"aria-activedescendant",
|
|
8859
8864
|
"disabled",
|
|
8860
8865
|
"placeholder",
|
|
8861
8866
|
"data-invalid"
|
|
8862
|
-
],
|
|
8867
|
+
], Vl = {
|
|
8863
8868
|
key: 2,
|
|
8864
8869
|
class: "pv-text-red pv-text-body-xs"
|
|
8865
|
-
},
|
|
8870
|
+
}, Hl = ["id"], Ul = [
|
|
8866
8871
|
"id",
|
|
8867
8872
|
"aria-selected",
|
|
8868
8873
|
"aria-describedby",
|
|
8869
8874
|
"onMouseenter"
|
|
8870
|
-
],
|
|
8875
|
+
], Wl = {
|
|
8871
8876
|
key: 1,
|
|
8872
8877
|
role: "presentation"
|
|
8873
|
-
},
|
|
8878
|
+
}, Gl = {
|
|
8874
8879
|
key: 1,
|
|
8875
8880
|
class: "pv-text-center"
|
|
8876
|
-
},
|
|
8881
|
+
}, Kl = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
8877
8882
|
__name: "PvQueryBuilderInput",
|
|
8878
8883
|
props: /* @__PURE__ */ g({
|
|
8879
8884
|
placeholder: { default: "Search" },
|
|
@@ -8926,7 +8931,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8926
8931
|
width: "100%",
|
|
8927
8932
|
maxWidth: "100%",
|
|
8928
8933
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
8929
|
-
}, f = V("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } =
|
|
8934
|
+
}, f = V("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = Rl(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() => se.value.length > 0 || n.optionsLoading || O.value), L = r(() => m.value === null ? n.placeholder : ""), z = k(null), re = r(() => z.value !== null && z.value !== "" && !w.value), G = () => {
|
|
8930
8935
|
m.value = null, p.value = "", z.value = null, T.value = !1;
|
|
8931
8936
|
};
|
|
8932
8937
|
le("Enter", (e) => {
|
|
@@ -9050,7 +9055,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9050
9055
|
"--inset-size": "4px",
|
|
9051
9056
|
"--flex-gap": "4px"
|
|
9052
9057
|
}, e.enableWrapQueryTerms || T.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
9053
|
-
}, [u(
|
|
9058
|
+
}, [u(zl, {
|
|
9054
9059
|
modelValue: m.value,
|
|
9055
9060
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
9056
9061
|
"wrap-content": T.value,
|
|
@@ -9076,7 +9081,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9076
9081
|
style: x(p.value ? "min-width: 8rem;" : void 0),
|
|
9077
9082
|
onFocus: _e,
|
|
9078
9083
|
onBlur: _e
|
|
9079
|
-
}, null, 44,
|
|
9084
|
+
}, null, 44, Bl), [[H, p.value]])], 4),
|
|
9080
9085
|
m.value && !e.hideClearButton ? (D(), i(Kn, {
|
|
9081
9086
|
key: 1,
|
|
9082
9087
|
variant: "ghost",
|
|
@@ -9084,20 +9089,22 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9084
9089
|
size: "md",
|
|
9085
9090
|
onClick: G
|
|
9086
9091
|
})) : a("", !0),
|
|
9087
|
-
re.value ? (D(), o("p",
|
|
9092
|
+
re.value ? (D(), o("p", Vl, P(z.value), 1)) : a("", !0),
|
|
9088
9093
|
I.value ? ae((D(), i(No, {
|
|
9089
9094
|
key: 3,
|
|
9095
|
+
class: "pv-scrollbar-visible",
|
|
9090
9096
|
"css-custom-properties": d,
|
|
9091
9097
|
isList: !0,
|
|
9098
|
+
listClass: "pv-scrollbar-visible",
|
|
9092
9099
|
listId: N,
|
|
9093
9100
|
listRole: "listbox"
|
|
9094
9101
|
}, c({
|
|
9095
|
-
default: W(() => [e.optionsLoading ? (D(), o("div",
|
|
9102
|
+
default: W(() => [e.optionsLoading ? (D(), o("div", Gl, [u(Dt, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [se.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(ce.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
9096
9103
|
key: 0,
|
|
9097
9104
|
id: F(r),
|
|
9098
9105
|
role: "presentation",
|
|
9099
9106
|
class: "pv-query-builder-group-label pv-text-body-xs pv-text-subdued"
|
|
9100
|
-
}, P(e), 9,
|
|
9107
|
+
}, P(e), 9, Hl)) : a("", !0), (D(!0), o(t, null, A(n, (t) => (D(), o("li", {
|
|
9101
9108
|
key: `${e}-${t.id}`,
|
|
9102
9109
|
id: ee(ue.value.get(t) ?? -1),
|
|
9103
9110
|
role: "option",
|
|
@@ -9109,7 +9116,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9109
9116
|
config: l,
|
|
9110
9117
|
queryText: p.value,
|
|
9111
9118
|
onHandleSelected: (e) => he(t)
|
|
9112
|
-
}), null, 16, ["queryText", "onHandleSelected"])], 42,
|
|
9119
|
+
}), null, 16, ["queryText", "onHandleSelected"])], 42, Ul))), 128))], 64))), 128)) : n.$slots.empty ? (D(), o("li", Wl, [j(n.$slots, "empty", {}, void 0, !0)])) : a("", !0)], 64))]),
|
|
9113
9120
|
_: 2
|
|
9114
9121
|
}, [n.$slots.header ? {
|
|
9115
9122
|
name: "header",
|
|
@@ -9122,13 +9129,13 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9122
9129
|
} : void 0]), 1536)), [[ie, C.value]]) : a("", !0)
|
|
9123
9130
|
], 34)), [[R(Q), me]]);
|
|
9124
9131
|
}
|
|
9125
|
-
}), [["__scopeId", "data-v-
|
|
9126
|
-
let e = m(
|
|
9132
|
+
}), [["__scopeId", "data-v-62aa7767"]]), ql = Symbol.for("pv.rum-context"), Jl = () => {
|
|
9133
|
+
let e = m(ql, void 0);
|
|
9127
9134
|
return () => {
|
|
9128
9135
|
let t = e?.value;
|
|
9129
9136
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9130
9137
|
};
|
|
9131
|
-
},
|
|
9138
|
+
}, Yl = (e, t = {}, n = {}) => {
|
|
9132
9139
|
try {
|
|
9133
9140
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9134
9141
|
let r = n.consumer == null ? t : {
|
|
@@ -9137,33 +9144,33 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9137
9144
|
};
|
|
9138
9145
|
window.DD_RUM.addAction(e, r);
|
|
9139
9146
|
} catch {}
|
|
9140
|
-
},
|
|
9147
|
+
}, Xl = (e) => {
|
|
9141
9148
|
queueMicrotask(() => {
|
|
9142
9149
|
try {
|
|
9143
9150
|
e();
|
|
9144
9151
|
} catch {}
|
|
9145
9152
|
});
|
|
9146
|
-
},
|
|
9153
|
+
}, Zl = Symbol("FilterStoreKey"), Ql = Symbol("FocusStoreKey"), $l = Symbol("SortStateKey"), eu = Symbol("GridApiKey"), tu = Symbol("ColumnDisplayOrderKey"), nu = Symbol("currentlyActiveFilterKey"), ru = Symbol("AvailableFilterColumnsKey"), iu = Symbol("AvailableRowGroupColumnsKey"), au = Symbol("RowGroupColumnFieldsKey"), ou = Symbol("GroupColumnCellValueColumnKey"), su = Symbol("ExpandedRowsKey"), cu = Symbol("FirstDataRenderedKey"), lu = Symbol("RowsLoadingKey"), uu = Symbol("CurrentPageKey"), du = Symbol("TotalPageKey"), fu = Symbol("ActiveChartFilterOptionKey"), pu = Symbol("RowGroupColumnsKey"), mu = Symbol("ChartTypeKey"), hu = Symbol("SortTypesKey"), gu = Symbol("ActiveChartKey"), _u = Symbol("ActiveSortKey"), vu = Symbol("ActiveSeriesKey"), yu = Symbol("AvailableSeriesKey"), bu = Symbol("ActiveSecondarySeriesKey"), xu = Symbol("AvailableSecondarySeriesKey"), Su = Symbol("ActiveSecondarySeriesListKey"), Cu = Symbol("MetricOverlayMultiSelectKey"), wu = Symbol("EnableAdvancedFilterKey"), Tu = Symbol("ActiveCrosslineOverlayGroupsKey"), Eu = Symbol("AvailableCrosslineOverlayGroupsKey"), Du = {
|
|
9147
9154
|
class: "pv-flex",
|
|
9148
9155
|
style: { "--flex-wrap": "nowrap" }
|
|
9149
|
-
},
|
|
9156
|
+
}, Ou = ["id"], ku = {
|
|
9150
9157
|
key: 1,
|
|
9151
9158
|
style: { "padding-left": "16px" }
|
|
9152
|
-
},
|
|
9159
|
+
}, Au = [
|
|
9153
9160
|
"checked",
|
|
9154
9161
|
"disabled",
|
|
9155
9162
|
"onChange"
|
|
9156
|
-
],
|
|
9163
|
+
], ju = { class: "pv-text-body-md" }, Mu = { key: 2 }, Nu = {
|
|
9157
9164
|
key: 0,
|
|
9158
9165
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
9159
|
-
},
|
|
9166
|
+
}, Pu = /* @__PURE__ */ d({
|
|
9160
9167
|
__name: "GroupBySelector",
|
|
9161
9168
|
props: {
|
|
9162
9169
|
rowGroupLimit: {},
|
|
9163
9170
|
enableFocusView: { type: Boolean }
|
|
9164
9171
|
},
|
|
9165
9172
|
setup(e) {
|
|
9166
|
-
let n = m(
|
|
9173
|
+
let n = m(eu, k(null)), c = m(iu, k([])), l = m(au, k([])), u = e;
|
|
9167
9174
|
U(l, () => {}, { deep: !0 });
|
|
9168
9175
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
9169
9176
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -9187,7 +9194,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9187
9194
|
let t = e.findIndex((e) => e === "divider"), r = e.slice(0, t).slice(0, u.rowGroupLimit).map((e) => e.replace("group-by-list-item-", ""));
|
|
9188
9195
|
n.value && n.value.setRowGroupColumns(r);
|
|
9189
9196
|
};
|
|
9190
|
-
return (n, r) => (D(), i(
|
|
9197
|
+
return (n, r) => (D(), i(gc, {
|
|
9191
9198
|
isList: !0,
|
|
9192
9199
|
isSortable: !0,
|
|
9193
9200
|
popoverCssProperties: { width: "auto" },
|
|
@@ -9195,7 +9202,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9195
9202
|
class: y(p.value),
|
|
9196
9203
|
onListOrderUpdated: x
|
|
9197
9204
|
}, {
|
|
9198
|
-
trigger: W(() => [s("div",
|
|
9205
|
+
trigger: W(() => [s("div", Du, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), R(l).length > 0 ? (D(), i(R(Un), {
|
|
9199
9206
|
key: 0,
|
|
9200
9207
|
value: R(l).length,
|
|
9201
9208
|
variant: "tertiary"
|
|
@@ -9208,25 +9215,25 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9208
9215
|
key: 0,
|
|
9209
9216
|
name: "reorder",
|
|
9210
9217
|
class: "pv-text-subdued"
|
|
9211
|
-
})) : (D(), o("span",
|
|
9218
|
+
})) : (D(), o("span", ku)),
|
|
9212
9219
|
s("input", {
|
|
9213
9220
|
type: "checkbox",
|
|
9214
9221
|
class: "pv-checkbox",
|
|
9215
9222
|
checked: d(e.value),
|
|
9216
9223
|
disabled: !d(e.value) && h.value,
|
|
9217
9224
|
onChange: (t) => f(e.value, t.target.checked)
|
|
9218
|
-
}, null, 40,
|
|
9219
|
-
s("span",
|
|
9220
|
-
d(e.value) ? (D(), o("sup",
|
|
9221
|
-
], 2)], 8,
|
|
9225
|
+
}, null, 40, Au),
|
|
9226
|
+
s("span", ju, P(e.label), 1),
|
|
9227
|
+
d(e.value) ? (D(), o("sup", Mu, P(n + 1), 1)) : a("", !0)
|
|
9228
|
+
], 2)], 8, Ou))], 64))), 128)), h.value ? (D(), o("p", Nu, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
9222
9229
|
_: 1
|
|
9223
9230
|
}, 8, ["class"]));
|
|
9224
9231
|
}
|
|
9225
|
-
}),
|
|
9226
|
-
function
|
|
9227
|
-
return D(), o("div",
|
|
9232
|
+
}), Fu = {}, Iu = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
9233
|
+
function Lu(e, t) {
|
|
9234
|
+
return D(), o("div", Iu);
|
|
9228
9235
|
}
|
|
9229
|
-
var
|
|
9236
|
+
var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { key: 2 }, Vu = /* @__PURE__ */ d({
|
|
9230
9237
|
__name: "ColDefCellRenderer",
|
|
9231
9238
|
props: {
|
|
9232
9239
|
colDef: {},
|
|
@@ -9240,9 +9247,9 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9240
9247
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (D(), o("span", {
|
|
9241
9248
|
key: 1,
|
|
9242
9249
|
innerHTML: c.value
|
|
9243
|
-
}, null, 8,
|
|
9250
|
+
}, null, 8, zu)) : a.value === "string" ? (D(), o("span", Bu, P(s.value), 1)) : j(t.$slots, "default", { key: 3 });
|
|
9244
9251
|
}
|
|
9245
|
-
}),
|
|
9252
|
+
}), Hu = (e = null, t = !1) => {
|
|
9246
9253
|
let n = k(e?.focuses || []), i = k(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
9247
9254
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
9248
9255
|
}, l = (e) => {
|
|
@@ -9266,21 +9273,21 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9266
9273
|
setFocuses: l,
|
|
9267
9274
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
9268
9275
|
};
|
|
9269
|
-
},
|
|
9276
|
+
}, Uu = () => m(Ql, null) || Hu(), Wu = { class: "pv-table-group-cell" }, Gu = { class: "pv-text-body-xxs pv-text-subdued" }, Ku = { key: 0 }, qu = { style: { "line-height": "20px" } }, Ju = { class: "pv-text-title-md" }, Yu = {
|
|
9270
9277
|
key: 0,
|
|
9271
9278
|
class: "pv-flex",
|
|
9272
9279
|
style: {
|
|
9273
9280
|
flex: "1",
|
|
9274
9281
|
"--flex-justify": "flex-end"
|
|
9275
9282
|
}
|
|
9276
|
-
},
|
|
9283
|
+
}, Xu = {
|
|
9277
9284
|
key: 0,
|
|
9278
9285
|
class: "pv-table-row-number"
|
|
9279
|
-
},
|
|
9286
|
+
}, Zu = /* @__PURE__ */ d({
|
|
9280
9287
|
__name: "GroupedCellRenderer",
|
|
9281
9288
|
props: { params: {} },
|
|
9282
9289
|
setup(e) {
|
|
9283
|
-
let n = e, i = m(
|
|
9290
|
+
let n = e, i = m(au, k([])), c = m(ou, k(null)), d = m(su, k({})), f = q(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
9284
9291
|
let e = f.value.data;
|
|
9285
9292
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9286
9293
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -9302,7 +9309,7 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9302
9309
|
}), S = (e) => {
|
|
9303
9310
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
9304
9311
|
n != null && (d.value[n] = t);
|
|
9305
|
-
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } =
|
|
9312
|
+
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } = Uu(), j = r(() => w(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
9306
9313
|
let e = E.value;
|
|
9307
9314
|
return f.value.key && e.includes(f.value.key);
|
|
9308
9315
|
});
|
|
@@ -9317,7 +9324,7 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9317
9324
|
}), (n, r) => (D(), o(t, null, [h.value ? (D(), o("div", {
|
|
9318
9325
|
key: 0,
|
|
9319
9326
|
class: y(j.value)
|
|
9320
|
-
}, [s("div",
|
|
9327
|
+
}, [s("div", Wu, [s("p", Gu, [l(P(R(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (D(), o("span", Ku, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", qu, [s("p", Ju, P(g.value), 1)])]), M.value && R(A)() ? (D(), o("div", Yu, [u(Ia, {
|
|
9321
9328
|
variant: "dark",
|
|
9322
9329
|
tooltipPosition: "center-left",
|
|
9323
9330
|
size: "sm"
|
|
@@ -9331,9 +9338,9 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9331
9338
|
}, null, 8, ["class"])]),
|
|
9332
9339
|
"tooltip-content": W(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
9333
9340
|
_: 1
|
|
9334
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span",
|
|
9341
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span", Xu, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
9335
9342
|
}
|
|
9336
|
-
}),
|
|
9343
|
+
}), Qu = {
|
|
9337
9344
|
key: 1,
|
|
9338
9345
|
class: "pv-table-child-cell",
|
|
9339
9346
|
style: {
|
|
@@ -9342,7 +9349,7 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9342
9349
|
width: "100%",
|
|
9343
9350
|
height: "100%"
|
|
9344
9351
|
}
|
|
9345
|
-
},
|
|
9352
|
+
}, $u = {
|
|
9346
9353
|
key: 0,
|
|
9347
9354
|
class: "pv-table-row-number",
|
|
9348
9355
|
style: {
|
|
@@ -9350,11 +9357,11 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9350
9357
|
"text-align": "center",
|
|
9351
9358
|
color: "var(--color-text-quaternary, #89989b)"
|
|
9352
9359
|
}
|
|
9353
|
-
},
|
|
9360
|
+
}, ed = /* @__PURE__ */ d({
|
|
9354
9361
|
__name: "AutoGroupColDefRenderer",
|
|
9355
9362
|
props: { params: {} },
|
|
9356
9363
|
setup(e) {
|
|
9357
|
-
let t = e, n = m(
|
|
9364
|
+
let t = e, n = m(ou, k(null)), s = r(() => t.params.rowNode.group), c = r(() => {
|
|
9358
9365
|
let e = t.params.rowNode.rowIndex, n = t.params.rowNode.parent?.rowIndex;
|
|
9359
9366
|
return e != null && n != null ? e - n : null;
|
|
9360
9367
|
}), l = r(() => ({
|
|
@@ -9379,35 +9386,35 @@ var Lu = /* @__PURE__ */ tn(Pu, [["render", Iu]]), Ru = ["innerHTML"], zu = { ke
|
|
|
9379
9386
|
valueFormatted: c
|
|
9380
9387
|
};
|
|
9381
9388
|
});
|
|
9382
|
-
return (t, n) => s.value ? (D(), i(
|
|
9389
|
+
return (t, n) => s.value ? (D(), i(Vu, {
|
|
9383
9390
|
key: 0,
|
|
9384
9391
|
"col-def": d.value,
|
|
9385
9392
|
"cell-params": e.params.cellParams
|
|
9386
9393
|
}, {
|
|
9387
|
-
default: W(() => [u(
|
|
9394
|
+
default: W(() => [u(Zu, { params: e.params }, null, 8, ["params"])]),
|
|
9388
9395
|
_: 1
|
|
9389
|
-
}, 8, ["col-def", "cell-params"])) : (D(), o("div",
|
|
9396
|
+
}, 8, ["col-def", "cell-params"])) : (D(), o("div", Qu, [e.params.displayRowNumber && c.value ? (D(), o("span", $u, P(c.value), 1)) : a("", !0), u(Vu, {
|
|
9390
9397
|
"col-def": f.value,
|
|
9391
9398
|
"cell-params": p.value
|
|
9392
9399
|
}, {
|
|
9393
|
-
default: W(() => [u(
|
|
9400
|
+
default: W(() => [u(Zu, { params: l.value }, null, 8, ["params"])]),
|
|
9394
9401
|
_: 1
|
|
9395
9402
|
}, 8, ["col-def", "cell-params"])]));
|
|
9396
9403
|
}
|
|
9397
9404
|
});
|
|
9398
9405
|
//#endregion
|
|
9399
9406
|
//#region src/functions/aggregations.ts
|
|
9400
|
-
function
|
|
9407
|
+
function td(e) {
|
|
9401
9408
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
9402
9409
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
9403
9410
|
}
|
|
9404
9411
|
//#endregion
|
|
9405
9412
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
9406
|
-
var
|
|
9413
|
+
var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, id = /* @__PURE__ */ d({
|
|
9407
9414
|
__name: "GroupAggCellRenderer",
|
|
9408
9415
|
props: { params: {} },
|
|
9409
9416
|
setup(e) {
|
|
9410
|
-
let t = e, n = m(
|
|
9417
|
+
let t = e, n = m(su, k({})), i = r(() => {
|
|
9411
9418
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
9412
9419
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
9413
9420
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -9421,9 +9428,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9421
9428
|
}, c = r(() => t.params.node?.rowIndex), l = r(() => {
|
|
9422
9429
|
let e = !1;
|
|
9423
9430
|
return c.value != null && (e = c.value in n.value ? n.value[c.value] : !1), e;
|
|
9424
|
-
}), u = r(() =>
|
|
9431
|
+
}), u = r(() => Cs(t.params.column?.getColDef())), d = r(() => {
|
|
9425
9432
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value || "";
|
|
9426
|
-
return e &&
|
|
9433
|
+
return e && Cs(e) ? n.toLocaleString() : n;
|
|
9427
9434
|
}), f = r(() => ({
|
|
9428
9435
|
"flex-direction": u.value ? "row-reverse" : "row",
|
|
9429
9436
|
"--flex-justify": "space-between"
|
|
@@ -9434,20 +9441,20 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9434
9441
|
style: x(f.value),
|
|
9435
9442
|
class: "pv-flex",
|
|
9436
9443
|
ondblclick: a
|
|
9437
|
-
}, [s("div",
|
|
9444
|
+
}, [s("div", nd, [s("p", null, P(d.value), 1), s("p", rd, P(i.value), 1)])], 4));
|
|
9438
9445
|
}
|
|
9439
|
-
}),
|
|
9446
|
+
}), ad = {
|
|
9440
9447
|
agSetColumnFilter: "set",
|
|
9441
9448
|
agMultiColumnFilter: "multi",
|
|
9442
9449
|
agTextColumnFilter: "text"
|
|
9443
|
-
},
|
|
9450
|
+
}, od = (e) => !e || !e.filter ? null : e.filter in ad ? ad[e.filter] : null, sd = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), cd = (e, t) => {
|
|
9444
9451
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
9445
|
-
let n = e?.filterType || null, r =
|
|
9452
|
+
let n = e?.filterType || null, r = od(t);
|
|
9446
9453
|
if (!r || r === n) return e;
|
|
9447
9454
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
9448
9455
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
9449
9456
|
if (e.filterType == "set") {
|
|
9450
|
-
let n = e.values || [], r =
|
|
9457
|
+
let n = e.values || [], r = sd(t);
|
|
9451
9458
|
r > -1 && r < a.length && (a[r] = {
|
|
9452
9459
|
filterType: "set",
|
|
9453
9460
|
values: n
|
|
@@ -9457,7 +9464,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9457
9464
|
filterType: "multi",
|
|
9458
9465
|
filterModels: a
|
|
9459
9466
|
};
|
|
9460
|
-
},
|
|
9467
|
+
}, ld = (e, t) => {
|
|
9461
9468
|
let n = t.filter((e) => e !== null && e !== "");
|
|
9462
9469
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
9463
9470
|
filterType: "text",
|
|
@@ -9474,18 +9481,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9474
9481
|
filter: t
|
|
9475
9482
|
}))
|
|
9476
9483
|
};
|
|
9477
|
-
},
|
|
9484
|
+
}, ud = (e) => {
|
|
9478
9485
|
let t = [];
|
|
9479
9486
|
return Object.keys(e).forEach((n) => {
|
|
9480
9487
|
let r = e[n];
|
|
9481
9488
|
if (r) {
|
|
9482
9489
|
if (r.filterType === "set" && r.values) {
|
|
9483
|
-
let e =
|
|
9490
|
+
let e = ld(n, r.values);
|
|
9484
9491
|
e && t.push(e);
|
|
9485
9492
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
9486
9493
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
9487
9494
|
if (e?.values) {
|
|
9488
|
-
let r =
|
|
9495
|
+
let r = ld(n, e.values);
|
|
9489
9496
|
r && t.push(r);
|
|
9490
9497
|
}
|
|
9491
9498
|
}
|
|
@@ -9495,11 +9502,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9495
9502
|
type: "AND",
|
|
9496
9503
|
conditions: t
|
|
9497
9504
|
};
|
|
9498
|
-
},
|
|
9505
|
+
}, dd = (e, t, n = !1) => {
|
|
9499
9506
|
if (!e) return e;
|
|
9500
9507
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
9501
9508
|
if (n) {
|
|
9502
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
9509
|
+
let t = e?.filter?.advancedFilterModel, n = ud(i), a = t || null, o = null;
|
|
9503
9510
|
return o = a && n ? {
|
|
9504
9511
|
filterType: "join",
|
|
9505
9512
|
type: "AND",
|
|
@@ -9512,12 +9519,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9512
9519
|
}
|
|
9513
9520
|
let a = {};
|
|
9514
9521
|
return Object.keys(i).forEach((e) => {
|
|
9515
|
-
a[e] =
|
|
9522
|
+
a[e] = cd(i[e] || {}, t.find((t) => t.field === e));
|
|
9516
9523
|
}), r.filter = {
|
|
9517
9524
|
...r.filter,
|
|
9518
9525
|
filterModel: a
|
|
9519
9526
|
}, r;
|
|
9520
|
-
},
|
|
9527
|
+
}, fd = (e) => {
|
|
9521
9528
|
if (!e || e.queryTerms.length === 0) return {};
|
|
9522
9529
|
let t = {};
|
|
9523
9530
|
return e.queryTerms.forEach((e) => {
|
|
@@ -9549,7 +9556,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9549
9556
|
};
|
|
9550
9557
|
}
|
|
9551
9558
|
}), t;
|
|
9552
|
-
},
|
|
9559
|
+
}, pd = (e) => {
|
|
9553
9560
|
if (!e || e.queryTerms.length === 0) return null;
|
|
9554
9561
|
let t = /* @__PURE__ */ new Map();
|
|
9555
9562
|
e.queryTerms.forEach((e) => {
|
|
@@ -9584,7 +9591,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9584
9591
|
type: "AND",
|
|
9585
9592
|
conditions: n
|
|
9586
9593
|
};
|
|
9587
|
-
},
|
|
9594
|
+
}, md = (e, t) => {
|
|
9588
9595
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
9589
9596
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
9590
9597
|
let n = e.filterParams?.filters || [], r = Array(n.length).fill(null), i = n.findIndex((e) => e.filter == "agTextColumnFilter" && t.filterType == "text" ? !0 : e.filter == "agSetColumnFilter" && t.filterType == "set");
|
|
@@ -9592,26 +9599,26 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9592
9599
|
filterType: "multi",
|
|
9593
9600
|
filterModels: r
|
|
9594
9601
|
};
|
|
9595
|
-
},
|
|
9602
|
+
}, hd = (e, t) => {
|
|
9596
9603
|
if (!e || Object.keys(e).length === 0) return t;
|
|
9597
9604
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
9598
9605
|
let n = { ...e };
|
|
9599
9606
|
return t.filterModels?.forEach((e, t) => {
|
|
9600
9607
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
9601
9608
|
}), n;
|
|
9602
|
-
},
|
|
9609
|
+
}, gd = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => gd(e, t)) : e.colId === t : t in e : !1, _d = (e, t, n) => {
|
|
9603
9610
|
let r = { ...t };
|
|
9604
9611
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
9605
|
-
let i =
|
|
9606
|
-
r[t] =
|
|
9612
|
+
let i = md(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
9613
|
+
r[t] = hd(a, i);
|
|
9607
9614
|
}), r);
|
|
9608
|
-
},
|
|
9615
|
+
}, vd = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? sd(e) !== void 0 && sd(e) > -1 : !1, yd = (e, t) => {
|
|
9609
9616
|
let n = { ...e };
|
|
9610
9617
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
9611
9618
|
...n.filterParams,
|
|
9612
9619
|
values: t
|
|
9613
9620
|
}, n;
|
|
9614
|
-
let r =
|
|
9621
|
+
let r = sd(e);
|
|
9615
9622
|
if (r !== void 0 && r > -1) {
|
|
9616
9623
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
9617
9624
|
a.filterParams = {
|
|
@@ -9625,13 +9632,13 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9625
9632
|
};
|
|
9626
9633
|
}
|
|
9627
9634
|
return n;
|
|
9628
|
-
},
|
|
9635
|
+
}, bd = async (e, t) => {
|
|
9629
9636
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
9630
9637
|
if (r?.filterType == "set") return r;
|
|
9631
9638
|
if (r?.filterType != "multi") return null;
|
|
9632
|
-
let i =
|
|
9639
|
+
let i = sd(t);
|
|
9633
9640
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
9634
|
-
},
|
|
9641
|
+
}, xd = async (e, t, n) => {
|
|
9635
9642
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
9636
9643
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
9637
9644
|
if (i?.filterType != "multi") return null;
|
|
@@ -9640,50 +9647,50 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9640
9647
|
filterType: "multi",
|
|
9641
9648
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
9642
9649
|
};
|
|
9643
|
-
let o =
|
|
9650
|
+
let o = sd(t), s = !n || n.length === 0 ? null : {
|
|
9644
9651
|
filterType: "set",
|
|
9645
9652
|
values: n
|
|
9646
9653
|
};
|
|
9647
9654
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
9648
|
-
},
|
|
9655
|
+
}, Sd = (e, t) => {
|
|
9649
9656
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
9650
9657
|
let n = t[e.field];
|
|
9651
9658
|
if (!n) return [];
|
|
9652
9659
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
9653
9660
|
if (n.filterType === "multi") {
|
|
9654
|
-
let t =
|
|
9661
|
+
let t = sd(e);
|
|
9655
9662
|
if (t !== void 0 && t > -1) {
|
|
9656
9663
|
let e = n.filterModels[t];
|
|
9657
9664
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
9658
9665
|
}
|
|
9659
9666
|
}
|
|
9660
9667
|
return [];
|
|
9661
|
-
},
|
|
9668
|
+
}, Cd = (e) => !!e && "filterType" in e, wd = (e) => e.filterType === "join" ? e.conditions.some(wd) : "colId" in e, Td = (e) => e ? Cd(e) ? !wd(e) : Object.keys(e).length === 0 : !0, Ed = (e) => {
|
|
9662
9669
|
if (e === void 0) return "undefined";
|
|
9663
9670
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
9664
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
9671
|
+
if (Array.isArray(e)) return `[${e.map(Ed).join(",")}]`;
|
|
9665
9672
|
let t = e;
|
|
9666
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
9667
|
-
},
|
|
9673
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${Ed(t[e])}`).join(",")}}`;
|
|
9674
|
+
}, Dd = (e) => {
|
|
9668
9675
|
if (e.filterType !== "join") return e;
|
|
9669
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
9676
|
+
let t = e, n = [...t.conditions ?? []].map(Dd).sort((e, t) => Ed(e).localeCompare(Ed(t)));
|
|
9670
9677
|
return {
|
|
9671
9678
|
...t,
|
|
9672
9679
|
conditions: n
|
|
9673
9680
|
};
|
|
9674
|
-
},
|
|
9675
|
-
if (
|
|
9676
|
-
let n =
|
|
9677
|
-
if (n !==
|
|
9678
|
-
if (n) return ot(
|
|
9681
|
+
}, Od = (e, t) => {
|
|
9682
|
+
if (Td(e) && Td(t)) return !0;
|
|
9683
|
+
let n = Cd(e);
|
|
9684
|
+
if (n !== Cd(t)) return !1;
|
|
9685
|
+
if (n) return ot(Dd(e), Dd(t));
|
|
9679
9686
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
9680
9687
|
if (a.length !== o.length) return !1;
|
|
9681
9688
|
for (let e of a) if (!ot(r?.[e], i?.[e])) return !1;
|
|
9682
9689
|
return !0;
|
|
9683
|
-
},
|
|
9684
|
-
if (!t) return
|
|
9690
|
+
}, kd = (e, t, n) => {
|
|
9691
|
+
if (!t) return Ad(e, n);
|
|
9685
9692
|
if (!e) return t;
|
|
9686
|
-
let r =
|
|
9693
|
+
let r = Ad(e, n);
|
|
9687
9694
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
9688
9695
|
filterType: "join",
|
|
9689
9696
|
type: "AND",
|
|
@@ -9693,53 +9700,53 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9693
9700
|
type: "AND",
|
|
9694
9701
|
conditions: [r, t]
|
|
9695
9702
|
} : t;
|
|
9696
|
-
},
|
|
9703
|
+
}, Ad = (e, t) => {
|
|
9697
9704
|
if (!e) return null;
|
|
9698
9705
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
9699
|
-
let n = e, r = n.conditions.map((e) =>
|
|
9706
|
+
let n = e, r = n.conditions.map((e) => Ad(e, t)).filter((e) => e !== null);
|
|
9700
9707
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
9701
9708
|
filterType: "join",
|
|
9702
9709
|
type: n.type,
|
|
9703
9710
|
conditions: r
|
|
9704
9711
|
};
|
|
9705
|
-
},
|
|
9712
|
+
}, jd = (e, t) => {
|
|
9706
9713
|
if (!t) return [];
|
|
9707
9714
|
if (t.filterType !== "join") {
|
|
9708
9715
|
let n = t;
|
|
9709
9716
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
9710
9717
|
}
|
|
9711
9718
|
let n = t, r = [];
|
|
9712
|
-
for (let t of n.conditions) r.push(...
|
|
9719
|
+
for (let t of n.conditions) r.push(...jd(e, t));
|
|
9713
9720
|
return r;
|
|
9714
|
-
},
|
|
9721
|
+
}, Md = (e, t) => {
|
|
9715
9722
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
9716
9723
|
let n = t[e];
|
|
9717
9724
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
9718
|
-
},
|
|
9725
|
+
}, Nd = (e, t) => {
|
|
9719
9726
|
if (!e) return null;
|
|
9720
|
-
if (
|
|
9721
|
-
let n =
|
|
9727
|
+
if (Cd(e)) {
|
|
9728
|
+
let n = jd(t, e);
|
|
9722
9729
|
return n.length > 0 ? n : null;
|
|
9723
9730
|
}
|
|
9724
|
-
let n =
|
|
9731
|
+
let n = Md(t, e);
|
|
9725
9732
|
return n.length > 0 ? n : null;
|
|
9726
|
-
},
|
|
9733
|
+
}, Pd = (e, t) => {
|
|
9727
9734
|
if (!e) return e;
|
|
9728
|
-
if (
|
|
9735
|
+
if (Cd(e)) return Ad(e, t);
|
|
9729
9736
|
let n = { ...e };
|
|
9730
9737
|
return delete n[t], n;
|
|
9731
|
-
},
|
|
9732
|
-
if (
|
|
9733
|
-
let r =
|
|
9734
|
-
return
|
|
9738
|
+
}, Fd = (e, t, n, r) => {
|
|
9739
|
+
if (Cd(e) || !e && r) {
|
|
9740
|
+
let r = ld(t, n);
|
|
9741
|
+
return kd(e ?? null, r, t);
|
|
9735
9742
|
}
|
|
9736
9743
|
let i = { ...e || {} };
|
|
9737
9744
|
return i[t] = {
|
|
9738
9745
|
filterType: "set",
|
|
9739
9746
|
values: n
|
|
9740
9747
|
}, i;
|
|
9741
|
-
},
|
|
9742
|
-
if (
|
|
9748
|
+
}, Id = (e, t, n, r) => {
|
|
9749
|
+
if (Cd(e) || !e && r) return Fd(e, t, n, r);
|
|
9743
9750
|
let i = { ...e || {} }, a = i[t];
|
|
9744
9751
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
9745
9752
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -9755,11 +9762,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9755
9762
|
values: n
|
|
9756
9763
|
};
|
|
9757
9764
|
return i;
|
|
9758
|
-
},
|
|
9759
|
-
let i = (
|
|
9760
|
-
return i.length === 0 ?
|
|
9761
|
-
},
|
|
9762
|
-
let e =
|
|
9765
|
+
}, Ld = (e, t, n, r) => {
|
|
9766
|
+
let i = (Nd(e, t) ?? []).filter((e) => e !== n);
|
|
9767
|
+
return i.length === 0 ? Pd(e, t) : Id(e, t, i, r);
|
|
9768
|
+
}, Rd = (e) => !!(e && "filterType" in e), zd = (e) => !!(e && !Rd(e)), Bd = (e) => !!(e && !Rd(e)), Vd = () => {
|
|
9769
|
+
let e = Ll(), t = ee(null), n = e.filterModel, i = e.stagedFilterModel, a = k(null), o = k({}), s = k({}), c = e.filterRequestIdMap, l = k(0), u = e.filterLoadingMap, d = k(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = k(void 0), h = (t) => ({
|
|
9763
9770
|
hasMore: e.filterHasMoreMap.value[t],
|
|
9764
9771
|
totalCount: e.filterTotalCountMap.value[t],
|
|
9765
9772
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -9774,7 +9781,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9774
9781
|
});
|
|
9775
9782
|
let g = r(() => d.value != null), _ = r(() => {
|
|
9776
9783
|
let e = n.value;
|
|
9777
|
-
return e ?
|
|
9784
|
+
return e ? Rd(e) ? !wd(e) : Object.keys(e).length === 0 : !0;
|
|
9778
9785
|
}), v = r(() => {
|
|
9779
9786
|
let e = a.value || {};
|
|
9780
9787
|
return Object.keys(e).length === 0;
|
|
@@ -9812,9 +9819,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9812
9819
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
9813
9820
|
}, z = async (e, t) => {
|
|
9814
9821
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
9815
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
9822
|
+
if (t?.useStaged !== !1 && i.value != null) if (zd(i.value)) {
|
|
9816
9823
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
9817
|
-
o = P(e &&
|
|
9824
|
+
o = P(e && zd(e) ? e : void 0);
|
|
9818
9825
|
} else o = i.value;
|
|
9819
9826
|
let l = {
|
|
9820
9827
|
api: t?.api,
|
|
@@ -9896,7 +9903,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9896
9903
|
}, ne = (e, t) => {
|
|
9897
9904
|
b.value[e] = t;
|
|
9898
9905
|
let r = [], i = n.value;
|
|
9899
|
-
if (
|
|
9906
|
+
if (Bd(i)) {
|
|
9900
9907
|
let t = i[e];
|
|
9901
9908
|
if (t?.values) {
|
|
9902
9909
|
let e = t.values || [];
|
|
@@ -9913,7 +9920,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9913
9920
|
let t = n.value;
|
|
9914
9921
|
if (!t) return x.value;
|
|
9915
9922
|
let r = e.map((e) => {
|
|
9916
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
9923
|
+
let n = e.field ?? e.colId ?? "", r = n ? Nd(t, n) : null;
|
|
9917
9924
|
return r && r.length > 0 ? {
|
|
9918
9925
|
colDef: e,
|
|
9919
9926
|
colId: n,
|
|
@@ -9971,7 +9978,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9971
9978
|
}, _e = (e) => t.value?.refreshData(e), ve = (e) => {
|
|
9972
9979
|
let t = /* @__PURE__ */ new Map();
|
|
9973
9980
|
if (!e) return t;
|
|
9974
|
-
if (
|
|
9981
|
+
if (Rd(e)) {
|
|
9975
9982
|
let n = (e) => {
|
|
9976
9983
|
if (e.filterType === "join") {
|
|
9977
9984
|
e.conditions.forEach(n);
|
|
@@ -10058,14 +10065,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10058
10065
|
filterValuesHasMoreMap: f,
|
|
10059
10066
|
filterValuesTotalCountMap: p
|
|
10060
10067
|
};
|
|
10061
|
-
},
|
|
10062
|
-
O(
|
|
10063
|
-
},
|
|
10064
|
-
let e = m(
|
|
10068
|
+
}, Hd = Vd, Ud = (e) => {
|
|
10069
|
+
O(Zl, e);
|
|
10070
|
+
}, Wd = () => m(Zl, null) || Vd(), Gd = () => {
|
|
10071
|
+
let e = m(Zl, null);
|
|
10065
10072
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
10066
10073
|
return e;
|
|
10067
|
-
},
|
|
10068
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c =
|
|
10074
|
+
}, Kd = (e) => {
|
|
10075
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = Jl(), l = m(eu, k(null)), u = Wd(), { fetchFilterValues: d, invalidateFilterRequest: f, filterModel: p, stagedFilterModel: h, filterModelCleared: g, filterValuesLoadingStatus: _, filterValueContext: y, getFilterSelectedValues: b, isServerSideFilter: x, setFilterValueSearchText: S, setFilterSelectedValues: C, getFilterValues: w, setFilterValues: D, filterStaleMap: O, refreshFiltersInBackground: A, stageFilterChangesUntilDropdownCloses: j, filterSearchMinLength: M, noteFilterModelChange: N, registerAggregateField: ee, registerFilterField: P, unregisterFilterField: F, getStagedSelectedValues: I, setStagedSelectedValues: L, filterValueSearchTextMap: R, filterValuesHasMoreMap: z, filterValuesTotalCountMap: te } = u, { computedFocuses: B, removeFocus: ne, computedFocusType: V } = Uu(), re = m(lu, k(!1)), H = m(cu, k(!1)), ie = m(wu, k(!1)), W = r({
|
|
10069
10076
|
get: () => Y.value ? I(J.value) : b(J.value),
|
|
10070
10077
|
set: (e) => {
|
|
10071
10078
|
Y.value ? L(J.value, e) : C(J.value, e);
|
|
@@ -10083,10 +10090,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10083
10090
|
}), q = r(() => $(t.value).filterSearchMinLength ?? M.value), ue = r(() => {
|
|
10084
10091
|
let e = q.value ?? 0, t = le.value?.length ?? 0;
|
|
10085
10092
|
return e > 0 && t > 0 && t < e;
|
|
10086
|
-
}), J = r(() => t.value.field || ""), de = r(() => t.value.filter || ""), fe = r(() => t.value.headerName || ""), Y = r(() => n?.value === "vertical"), X = k(!1), me = k(!1), he = k([]), ge = r(() =>
|
|
10093
|
+
}), J = r(() => t.value.field || ""), de = r(() => t.value.filter || ""), fe = r(() => t.value.headerName || ""), Y = r(() => n?.value === "vertical"), X = k(!1), me = k(!1), he = k([]), ge = r(() => bs(t.value)), _e = r(() => xs(t.value)), ve = r(() => Ss(t.value)), ye = r(() => $(t.value).filterOptionsSortDescription), be = r(() => $(t.value).filterOptionsSortTooltip), xe = r(() => {
|
|
10087
10094
|
let e = $(t.value).filterSearch;
|
|
10088
|
-
return typeof e == "boolean" ? e : $(t.value).dataType !==
|
|
10089
|
-
}), Se = r(() => $(t.value).emptyFilterResultsRenderer), Ce = r(() => $(t.value).filterOptionsLoadingText), we = r(() => $(t.value).filterOptionsRenderer), Te = r(() => $(t.value).filterHeaderRenderer), Ee = r(() => $(t.value).filterFooterRenderer), De = r(() => _e.value ? W.value.length >= _e.value : !1), Oe = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), ke = r(() => se.value ? void 0 : te.value[J.value]), Ae = r(() => se.value ? !1 : z.value[J.value]), Z = r(() =>
|
|
10095
|
+
return typeof e == "boolean" ? e : $(t.value).dataType !== ms.Boolean;
|
|
10096
|
+
}), Se = r(() => $(t.value).emptyFilterResultsRenderer), Ce = r(() => $(t.value).filterOptionsLoadingText), we = r(() => $(t.value).filterOptionsRenderer), Te = r(() => $(t.value).filterHeaderRenderer), Ee = r(() => $(t.value).filterFooterRenderer), De = r(() => _e.value ? W.value.length >= _e.value : !1), Oe = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), ke = r(() => se.value ? void 0 : te.value[J.value]), Ae = r(() => se.value ? !1 : z.value[J.value]), Z = r(() => Os(t.value)), je = () => new Set([J.value, ...Es(t.value)]), Me = (e, t) => {
|
|
10090
10097
|
let n = new Set(e), r = new Set(t);
|
|
10091
10098
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
10092
10099
|
}, Ne = k([]), Pe = k("[]"), Fe = r(() => ae.value.length === 1 && ae.value[0] === null && W.value.length === 0), Ie = (e = !1) => {
|
|
@@ -10094,8 +10101,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10094
10101
|
let n = [];
|
|
10095
10102
|
if (ie.value && l.value) {
|
|
10096
10103
|
let e = l.value.getAdvancedFilterModel();
|
|
10097
|
-
n =
|
|
10098
|
-
} else n =
|
|
10104
|
+
n = jd(J.value, e);
|
|
10105
|
+
} else n = Sd(t.value, p.value);
|
|
10099
10106
|
e ? W.value = n : W.value = Array.from(new Set([...b(J.value), ...n]));
|
|
10100
10107
|
}, Le = (e) => {
|
|
10101
10108
|
let t = (n) => {
|
|
@@ -10123,7 +10130,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10123
10130
|
}
|
|
10124
10131
|
return;
|
|
10125
10132
|
}
|
|
10126
|
-
let s = await
|
|
10133
|
+
let s = await bd(l.value, t.value);
|
|
10127
10134
|
if (s) {
|
|
10128
10135
|
if (x.value && o) {
|
|
10129
10136
|
s.refreshFilterValues();
|
|
@@ -10145,7 +10152,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10145
10152
|
let n = ge.value, r = t, i = Ue(t);
|
|
10146
10153
|
if (i && Z.value) {
|
|
10147
10154
|
let e = l.value?.getColumnDef(i);
|
|
10148
|
-
n = e ?
|
|
10155
|
+
n = e ? bs(e) ?? n : n, r = Ke(t, e ?? void 0);
|
|
10149
10156
|
}
|
|
10150
10157
|
return n ? n({
|
|
10151
10158
|
value: Ge(e, r),
|
|
@@ -10160,21 +10167,21 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10160
10167
|
if (!$(t.value).metadataDisplayFields?.length) return !1;
|
|
10161
10168
|
let r = y(J.value, e);
|
|
10162
10169
|
return r == null || r.label == null;
|
|
10163
|
-
}, Xe = (e) => Fe.value || y(J.value, e)?.isSelectable === !1 ? !0 : ve.value ? !1 : De.value && !W.value.includes(e), Ze = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Qe = (e, n, r) =>
|
|
10170
|
+
}, Xe = (e) => Fe.value || y(J.value, e)?.isSelectable === !1 ? !0 : ve.value ? !1 : De.value && !W.value.includes(e), Ze = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Qe = (e, n, r) => Ol({
|
|
10164
10171
|
fallbackSubText: n,
|
|
10165
10172
|
getDisplayName: Ze,
|
|
10166
10173
|
matchedField: e?.matchedField,
|
|
10167
10174
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10168
10175
|
primaryText: r,
|
|
10169
10176
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10170
|
-
}), $e = r(() =>
|
|
10177
|
+
}), $e = r(() => El(J.value, $(t.value).queryColIds, (e) => e === J.value && fe.value || Ze(e))), et = (e) => {
|
|
10171
10178
|
if (!e.startsWith("__")) return { value: e };
|
|
10172
10179
|
let t = e.slice(2).split("__");
|
|
10173
10180
|
return t.length < 2 ? { value: e } : {
|
|
10174
10181
|
field: t[0],
|
|
10175
10182
|
value: t[1]
|
|
10176
10183
|
};
|
|
10177
|
-
}, Q = (e) =>
|
|
10184
|
+
}, Q = (e) => yl(e, rt()), tt = (e) => {
|
|
10178
10185
|
let t = et(e.value), n = { ...e };
|
|
10179
10186
|
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(tt)), n;
|
|
10180
10187
|
}, nt = r(() => [...u.filterValueMap.value[J.value] || [], ...u.filterValueSelectedMetadataMap.value[J.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
@@ -10191,7 +10198,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10191
10198
|
let e = n.children ? at(n.children, t) : void 0;
|
|
10192
10199
|
if (e) return e;
|
|
10193
10200
|
}
|
|
10194
|
-
}, ot = (e, t) =>
|
|
10201
|
+
}, ot = (e, t) => bl(rt(), e, t), st = (e) => {
|
|
10195
10202
|
let t = (n) => {
|
|
10196
10203
|
if (n) {
|
|
10197
10204
|
if (String(We(n) ?? et(n.value).value) === e) return n;
|
|
@@ -10226,7 +10233,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10226
10233
|
};
|
|
10227
10234
|
}, lt = (e) => {
|
|
10228
10235
|
let n = rt(), r = it(n, (t) => t.value === e.id);
|
|
10229
|
-
return r?.children?.length ? r : at(n, e.id) || (r && Ue(r) ===
|
|
10236
|
+
return r?.children?.length ? r : at(n, e.id) || (r && Ue(r) === Ds(t.value) ? r : ct(e.id) || r);
|
|
10230
10237
|
}, ut = (e) => {
|
|
10231
10238
|
if (!Z.value) return;
|
|
10232
10239
|
let t = u.filterValueSelectedMetadataMap.value[J.value] || [], n = /* @__PURE__ */ new Map();
|
|
@@ -10344,7 +10351,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10344
10351
|
n = [r.length > 0 ? r[r.length - 1] : n[n.length - 1]];
|
|
10345
10352
|
}
|
|
10346
10353
|
let r = xt;
|
|
10347
|
-
xt = !1, r ||
|
|
10354
|
+
xt = !1, r || Xl(() => {
|
|
10348
10355
|
let e = new Set(t), r = new Set(n);
|
|
10349
10356
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
10350
10357
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
@@ -10365,27 +10372,27 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10365
10372
|
if (e !== void 0 && n !== void 0) {
|
|
10366
10373
|
let r = e || J.value, i = new Set([J.value, r]), a = n;
|
|
10367
10374
|
if (ie.value) {
|
|
10368
|
-
let e =
|
|
10375
|
+
let e = ld(r, a || []);
|
|
10369
10376
|
if (Y.value) {
|
|
10370
|
-
let t = h.value, n =
|
|
10377
|
+
let t = h.value, n = kd(t, e, r);
|
|
10371
10378
|
N(i, !0), h.value = n;
|
|
10372
10379
|
return;
|
|
10373
10380
|
}
|
|
10374
|
-
let t =
|
|
10381
|
+
let t = kd(l.value.getAdvancedFilterModel(), e, r);
|
|
10375
10382
|
N(i), v(() => {
|
|
10376
10383
|
l.value?.setAdvancedFilterModel(t);
|
|
10377
10384
|
});
|
|
10378
10385
|
return;
|
|
10379
10386
|
}
|
|
10380
10387
|
if (Y.value) {
|
|
10381
|
-
let e = await
|
|
10388
|
+
let e = await xd(l.value, t.value, a);
|
|
10382
10389
|
N(i, !0), h.value = {
|
|
10383
10390
|
...h.value,
|
|
10384
10391
|
[r]: e
|
|
10385
10392
|
};
|
|
10386
10393
|
return;
|
|
10387
10394
|
}
|
|
10388
|
-
let o = await
|
|
10395
|
+
let o = await xd(l.value, t.value, a);
|
|
10389
10396
|
N(i), l.value.setColumnFilterModel(r, o).then(() => {
|
|
10390
10397
|
l.value && l.value.onFilterChanged();
|
|
10391
10398
|
});
|
|
@@ -10395,15 +10402,15 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10395
10402
|
if (ie.value) {
|
|
10396
10403
|
let e = Y.value ? h.value : l.value.getAdvancedFilterModel(), n = e, s = /* @__PURE__ */ new Set();
|
|
10397
10404
|
if (Z.value) {
|
|
10398
|
-
let e =
|
|
10405
|
+
let e = Es(t.value), r = [];
|
|
10399
10406
|
for (let t of e) {
|
|
10400
10407
|
let e = i[t] || [];
|
|
10401
10408
|
if (e.length > 0) {
|
|
10402
|
-
let n =
|
|
10409
|
+
let n = ld(t, e);
|
|
10403
10410
|
n && r.push(n);
|
|
10404
10411
|
}
|
|
10405
10412
|
}
|
|
10406
|
-
for (let t of e) n =
|
|
10413
|
+
for (let t of e) n = kd(n, null, t);
|
|
10407
10414
|
if (r.length > 0) {
|
|
10408
10415
|
let e = r.length === 1 ? r[0] : {
|
|
10409
10416
|
filterType: "join",
|
|
@@ -10417,23 +10424,23 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10417
10424
|
} : e;
|
|
10418
10425
|
}
|
|
10419
10426
|
} else {
|
|
10420
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
10421
|
-
n =
|
|
10427
|
+
let t = W.value.length > 0 ? W.value : null, r = ld(J.value, t || []);
|
|
10428
|
+
n = kd(n, r, J.value);
|
|
10422
10429
|
let i = !1;
|
|
10423
10430
|
if (a?.value) {
|
|
10424
10431
|
let e = o.filterGroup?.fields ?? [];
|
|
10425
10432
|
for (let t of e) {
|
|
10426
10433
|
let e = a.value.has(t);
|
|
10427
|
-
if (e ===
|
|
10434
|
+
if (e === jd(t, n).includes("true")) continue;
|
|
10428
10435
|
i = !0, s.add(t);
|
|
10429
|
-
let r = e ?
|
|
10430
|
-
n =
|
|
10436
|
+
let r = e ? ld(t, ["true"]) : null;
|
|
10437
|
+
n = kd(n, r, t);
|
|
10431
10438
|
}
|
|
10432
10439
|
}
|
|
10433
|
-
let c = W.value.filter((e) => e !== null), l =
|
|
10440
|
+
let c = W.value.filter((e) => e !== null), l = jd(J.value, e), u = new Set(l), d = new Set(c);
|
|
10434
10441
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
10435
10442
|
}
|
|
10436
|
-
if (r?.skipIfUnchanged &&
|
|
10443
|
+
if (r?.skipIfUnchanged && Od(e, n)) return;
|
|
10437
10444
|
if (N(Z.value ? je() : new Set([J.value, ...s]), Y.value), Y.value) h.value = n;
|
|
10438
10445
|
else {
|
|
10439
10446
|
let e = n;
|
|
@@ -10445,26 +10452,26 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10445
10452
|
}
|
|
10446
10453
|
let s = W.value.length > 0 ? W.value : null;
|
|
10447
10454
|
if (r?.skipIfUnchanged) {
|
|
10448
|
-
let e =
|
|
10455
|
+
let e = Sd(t.value, l.value.getFilterModel());
|
|
10449
10456
|
if (Me(W.value, e)) return;
|
|
10450
10457
|
}
|
|
10451
10458
|
if (Y.value) {
|
|
10452
|
-
let e = await
|
|
10459
|
+
let e = await xd(l.value, t.value, s);
|
|
10453
10460
|
N(new Set([J.value]), !0), h.value = {
|
|
10454
10461
|
...h.value,
|
|
10455
10462
|
[J.value]: e
|
|
10456
10463
|
};
|
|
10457
10464
|
return;
|
|
10458
10465
|
}
|
|
10459
|
-
let c = await
|
|
10466
|
+
let c = await xd(l.value, t.value, s);
|
|
10460
10467
|
N(new Set([J.value])), l.value.setColumnFilterModel(J.value, c).then(() => {
|
|
10461
10468
|
l.value && l.value.onFilterChanged();
|
|
10462
10469
|
});
|
|
10463
10470
|
}, bt = r(() => Y.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
10464
10471
|
xt = !0;
|
|
10465
10472
|
let n = le.value || "";
|
|
10466
|
-
|
|
10467
|
-
|
|
10473
|
+
Xl(() => {
|
|
10474
|
+
Yl("filter_bulk_action", {
|
|
10468
10475
|
filter_name: fe.value,
|
|
10469
10476
|
filter_field: J.value,
|
|
10470
10477
|
action: e,
|
|
@@ -10474,7 +10481,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10474
10481
|
}, c());
|
|
10475
10482
|
});
|
|
10476
10483
|
}, Ct = (e) => !Z.value || e == null ? J.value : Ue(He(e)) || (et(e).field ?? J.value), wt = (e, t, n, r) => {
|
|
10477
|
-
|
|
10484
|
+
Yl("filter_option_selected", {
|
|
10478
10485
|
filter_name: fe.value,
|
|
10479
10486
|
filter_field: Ct(e),
|
|
10480
10487
|
selected_value: Je(e),
|
|
@@ -10497,7 +10504,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10497
10504
|
};
|
|
10498
10505
|
}, Et = (e, t) => {
|
|
10499
10506
|
let n = Tt(e), r = Tt(t);
|
|
10500
|
-
|
|
10507
|
+
Xl(() => {
|
|
10501
10508
|
let e = Xa(t);
|
|
10502
10509
|
for (let t of r.selected) n.selected.has(t) || wt(t, "select", "click", e);
|
|
10503
10510
|
for (let t of n.selected) r.selected.has(t) || wt(t, "deselect", "click", e);
|
|
@@ -10516,13 +10523,13 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10516
10523
|
}), Ot = (e, n, r = "click") => {
|
|
10517
10524
|
let a = null;
|
|
10518
10525
|
if (Z.value && e) {
|
|
10519
|
-
let r = n ||
|
|
10526
|
+
let r = n || Es(t.value)[0] || J.value;
|
|
10520
10527
|
a = e.startsWith("__") ? e : ot(r, e) || e;
|
|
10521
10528
|
}
|
|
10522
10529
|
let o = e != null && (W.value.includes(e) || a != null && Le(a)), s = W.value.slice();
|
|
10523
10530
|
if (e && ve.value ? W.value = [e] : e && !o && (W.value = [...W.value, e]), e != null && !o) {
|
|
10524
10531
|
let t = W.value.length, n = ve.value;
|
|
10525
|
-
|
|
10532
|
+
Xl(() => {
|
|
10526
10533
|
if (n) for (let n of s) n !== e && wt(n, "deselect", r, t);
|
|
10527
10534
|
wt(e, "select", r, t);
|
|
10528
10535
|
});
|
|
@@ -10535,12 +10542,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10535
10542
|
let a = W.value.includes(e);
|
|
10536
10543
|
if (W.value = W.value.filter((t) => t !== e), e != null && a) {
|
|
10537
10544
|
let t = W.value.length;
|
|
10538
|
-
|
|
10545
|
+
Xl(() => {
|
|
10539
10546
|
wt(e, "deselect", r, t);
|
|
10540
10547
|
});
|
|
10541
10548
|
}
|
|
10542
10549
|
if (Z.value && e) {
|
|
10543
|
-
let r = n ||
|
|
10550
|
+
let r = n || Es(t.value)[0] || J.value, i = e.startsWith("__") ? e : ot(r, e) || e;
|
|
10544
10551
|
Ne.value = Ne.value.filter((e) => e.id !== i);
|
|
10545
10552
|
}
|
|
10546
10553
|
(!j.value || Y.value) && (Z.value && e ? Pt(Ne.value) : n && n !== J.value ? yt(n, null) : yt()), i?.();
|
|
@@ -10563,7 +10570,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10563
10570
|
} finally {
|
|
10564
10571
|
r && (me.value = !1);
|
|
10565
10572
|
}
|
|
10566
|
-
}, Nt = (e, n) =>
|
|
10573
|
+
}, Nt = (e, n) => Cl({
|
|
10567
10574
|
baseModel: n,
|
|
10568
10575
|
colDef: t.value,
|
|
10569
10576
|
options: rt(),
|
|
@@ -10572,9 +10579,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10572
10579
|
if (!l.value || !Z.value) return !1;
|
|
10573
10580
|
let r = JSON.stringify(e);
|
|
10574
10581
|
if (n?.skipIfUnchanged && r === Pe.value) return Ne.value = e, !1;
|
|
10575
|
-
if (Ne.value = e, ut(e),
|
|
10582
|
+
if (Ne.value = e, ut(e), Es(t.value).length === 0) return !1;
|
|
10576
10583
|
let a = Y.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
10577
|
-
if (n?.skipIfUnchanged &&
|
|
10584
|
+
if (n?.skipIfUnchanged && Od(a, o)) return Pe.value = r, !1;
|
|
10578
10585
|
if (Y.value) h.value = o;
|
|
10579
10586
|
else {
|
|
10580
10587
|
let e = o;
|
|
@@ -10584,8 +10591,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10584
10591
|
}
|
|
10585
10592
|
return Pe.value = r, N(je(), Y.value), i?.(), !0;
|
|
10586
10593
|
}, Ft = (e) => {
|
|
10587
|
-
if (!Z.value || !
|
|
10588
|
-
let n =
|
|
10594
|
+
if (!Z.value || !Es(t.value).length) return;
|
|
10595
|
+
let n = Tl({
|
|
10589
10596
|
colDef: t.value,
|
|
10590
10597
|
model: e,
|
|
10591
10598
|
options: rt()
|
|
@@ -10606,12 +10613,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10606
10613
|
if (ie.value) {
|
|
10607
10614
|
let e = [], n = h.value;
|
|
10608
10615
|
if (Z.value) {
|
|
10609
|
-
let r =
|
|
10616
|
+
let r = Es(t.value);
|
|
10610
10617
|
for (let t of r) {
|
|
10611
|
-
let r =
|
|
10618
|
+
let r = jd(t, n);
|
|
10612
10619
|
e.push(...r);
|
|
10613
10620
|
}
|
|
10614
|
-
} else e =
|
|
10621
|
+
} else e = jd(J.value, n);
|
|
10615
10622
|
W.value = e;
|
|
10616
10623
|
return;
|
|
10617
10624
|
}
|
|
@@ -10624,11 +10631,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10624
10631
|
return;
|
|
10625
10632
|
}
|
|
10626
10633
|
if (ie.value) {
|
|
10627
|
-
let e = p.value, t =
|
|
10634
|
+
let e = p.value, t = jd(J.value, e);
|
|
10628
10635
|
Ie(W.value.some((e) => e !== null && !t.includes(e)));
|
|
10629
10636
|
return;
|
|
10630
10637
|
}
|
|
10631
|
-
let e =
|
|
10638
|
+
let e = Sd(t.value, p.value);
|
|
10632
10639
|
Ie(W.value.some((t) => !e.includes(t)));
|
|
10633
10640
|
}, { deep: !0 }), U(() => g.value, () => {
|
|
10634
10641
|
W.value = [], Ne.value = [], Pe.value = "[]";
|
|
@@ -10651,8 +10658,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10651
10658
|
let t = e.toLocaleLowerCase(), n = gt.value;
|
|
10652
10659
|
return Z.value ? Za(n, t, !0).length : n.filter((e) => e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)).length;
|
|
10653
10660
|
}, zt = (e) => {
|
|
10654
|
-
|
|
10655
|
-
|
|
10661
|
+
Xl(() => {
|
|
10662
|
+
Yl("filter_search", {
|
|
10656
10663
|
filter_name: fe.value,
|
|
10657
10664
|
filter_field: J.value,
|
|
10658
10665
|
query: e,
|
|
@@ -10677,9 +10684,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10677
10684
|
Bt = null, le.value === t && zt(t);
|
|
10678
10685
|
}), T(() => {
|
|
10679
10686
|
P(J.value);
|
|
10680
|
-
let e =
|
|
10687
|
+
let e = Es(t.value);
|
|
10681
10688
|
if (e.length && ee(J.value, e), Ie(), Z.value && ie.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
10682
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && ie.value ?
|
|
10689
|
+
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && ie.value ? Es(t.value).some((e) => jd(e, p.value).length > 0) : W.value.length > 0;
|
|
10683
10690
|
e && n && d(t.value, {
|
|
10684
10691
|
api: l.value,
|
|
10685
10692
|
filterModel: p.value ?? void 0
|
|
@@ -10739,7 +10746,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10739
10746
|
disableFilterValue: Xe,
|
|
10740
10747
|
updateFilterModelWithSelectedValues: yt
|
|
10741
10748
|
};
|
|
10742
|
-
},
|
|
10749
|
+
}, qd = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
10743
10750
|
let i = k(null), a = k(null), o = k(null), s = k(null), c = (e) => {
|
|
10744
10751
|
let t = e.parentElement;
|
|
10745
10752
|
for (; t && t !== document.body;) {
|
|
@@ -10790,26 +10797,26 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10790
10797
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
10791
10798
|
}
|
|
10792
10799
|
};
|
|
10793
|
-
},
|
|
10800
|
+
}, Jd = {
|
|
10794
10801
|
key: 0,
|
|
10795
10802
|
role: "list",
|
|
10796
10803
|
class: "pv-popover-list"
|
|
10797
|
-
},
|
|
10804
|
+
}, Yd = ["data-active"], Xd = { key: 1 }, Zd = {
|
|
10798
10805
|
key: 1,
|
|
10799
10806
|
class: "pv-flex pv-inset-square-8",
|
|
10800
10807
|
style: { "justify-content": "center" }
|
|
10801
|
-
},
|
|
10808
|
+
}, Qd = /* @__PURE__ */ d({
|
|
10802
10809
|
__name: "FilterGroupMenu",
|
|
10803
10810
|
props: { filterColDef: {} },
|
|
10804
10811
|
setup(e, { expose: n }) {
|
|
10805
|
-
let s = e, c = m(
|
|
10812
|
+
let s = e, c = m(eu, k(null)), d = m(lu, k(!1)), { filterModel: f, filterStoreHandler: p, noteFilterModelChange: h, stageFilterChangesUntilDropdownCloses: g } = Wd(), _ = k(/* @__PURE__ */ new Set()), b = k(/* @__PURE__ */ new Set()), x = k(!1), S = k(null), C = r(() => $(s.filterColDef).filterGroup), w = (e) => {
|
|
10806
10813
|
let t = new Set(e);
|
|
10807
10814
|
s.filterColDef.field && t.add(s.filterColDef.field), h(t);
|
|
10808
|
-
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } =
|
|
10815
|
+
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } = qd({
|
|
10809
10816
|
alignment: "top right",
|
|
10810
10817
|
useTeleport: !0
|
|
10811
10818
|
}), N = (e) => {
|
|
10812
|
-
let t =
|
|
10819
|
+
let t = Nd(f.value, e);
|
|
10813
10820
|
return t !== null && t.length > 0 && t.includes("true");
|
|
10814
10821
|
}, ee = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
10815
10822
|
if (!p.value || !c.value) return;
|
|
@@ -10831,7 +10838,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10831
10838
|
if (!c.value) return;
|
|
10832
10839
|
let t = _.value.has(e);
|
|
10833
10840
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
10834
|
-
let n =
|
|
10841
|
+
let n = kd(c.value.getAdvancedFilterModel(), t ? null : ld(e, ["true"]), e);
|
|
10835
10842
|
w(new Set([e])), v(() => {
|
|
10836
10843
|
c.value?.setAdvancedFilterModel(n);
|
|
10837
10844
|
});
|
|
@@ -10843,7 +10850,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10843
10850
|
return;
|
|
10844
10851
|
}
|
|
10845
10852
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
10846
|
-
for (let r of e) _.value.has(r) || (t =
|
|
10853
|
+
for (let r of e) _.value.has(r) || (t = kd(t, ld(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
10847
10854
|
n.size > 0 && (w(n), v(() => {
|
|
10848
10855
|
c.value?.setAdvancedFilterModel(t);
|
|
10849
10856
|
}));
|
|
@@ -10854,7 +10861,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10854
10861
|
return;
|
|
10855
10862
|
}
|
|
10856
10863
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
10857
|
-
for (let n of C.value.fields) e =
|
|
10864
|
+
for (let n of C.value.fields) e = Ad(e, n), _.value.delete(n), t.add(n);
|
|
10858
10865
|
w(t), v(() => {
|
|
10859
10866
|
c.value?.setAdvancedFilterModel(e);
|
|
10860
10867
|
});
|
|
@@ -10917,7 +10924,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10917
10924
|
}
|
|
10918
10925
|
}, {
|
|
10919
10926
|
default: W(() => [
|
|
10920
|
-
x.value && V.value.length > 0 ? (D(), o("ul",
|
|
10927
|
+
x.value && V.value.length > 0 ? (D(), o("ul", Jd, [(D(!0), o(t, null, A(V.value, (e) => (D(), o(t, { key: e.field }, [e.isAvailable ? (D(), o("li", {
|
|
10921
10928
|
key: 0,
|
|
10922
10929
|
"data-active": e.isSelected ? "true" : null
|
|
10923
10930
|
}, [u(Ao, {
|
|
@@ -10932,7 +10939,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10932
10939
|
"text",
|
|
10933
10940
|
"selectedIds",
|
|
10934
10941
|
"onHandleSelected"
|
|
10935
|
-
])], 8,
|
|
10942
|
+
])], 8, Yd)) : (D(), o("li", Xd, [u(Ia, {
|
|
10936
10943
|
variant: "dark",
|
|
10937
10944
|
size: "sm",
|
|
10938
10945
|
"tooltip-position": "bottom-right",
|
|
@@ -10949,8 +10956,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10949
10956
|
"tooltip-content": W(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
10950
10957
|
_: 2
|
|
10951
10958
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
10952
|
-
x.value && B.value ? (D(), o("div",
|
|
10953
|
-
x.value ? (D(), i(
|
|
10959
|
+
x.value && B.value ? (D(), o("div", Zd, [u(Dt, { variant: "dark" })])) : a("", !0),
|
|
10960
|
+
x.value ? (D(), i(Bc, {
|
|
10954
10961
|
key: 2,
|
|
10955
10962
|
class: "pv-border-top pv-inset-square-8",
|
|
10956
10963
|
style: { "padding-top": "8px" },
|
|
@@ -10963,7 +10970,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10963
10970
|
_: 1
|
|
10964
10971
|
}, 8, ["class", "css-custom-properties"])])), [[R(Q), [z, { ignore: [".pv-popover"] }]]]);
|
|
10965
10972
|
}
|
|
10966
|
-
}),
|
|
10973
|
+
}), $d = {
|
|
10967
10974
|
key: 0,
|
|
10968
10975
|
role: "list",
|
|
10969
10976
|
class: "pv-flex pv-stack-4",
|
|
@@ -10971,37 +10978,37 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10971
10978
|
"--flex-wrap": "wrap",
|
|
10972
10979
|
"max-width": "100%"
|
|
10973
10980
|
}
|
|
10974
|
-
},
|
|
10981
|
+
}, ef = {
|
|
10975
10982
|
key: 0,
|
|
10976
10983
|
style: {
|
|
10977
10984
|
"max-width": "100%",
|
|
10978
10985
|
"line-height": "1rem"
|
|
10979
10986
|
}
|
|
10980
|
-
},
|
|
10987
|
+
}, tf = {
|
|
10981
10988
|
key: 0,
|
|
10982
10989
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
10983
10990
|
style: { "--inset-size": "4px" }
|
|
10984
|
-
},
|
|
10991
|
+
}, nf = {
|
|
10985
10992
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
10986
10993
|
style: { "--inset-size": "8px" }
|
|
10987
|
-
},
|
|
10994
|
+
}, rf = {
|
|
10988
10995
|
class: "pv-inset-inline",
|
|
10989
10996
|
style: { "--inset-size": "8px" }
|
|
10990
|
-
},
|
|
10997
|
+
}, af = {
|
|
10991
10998
|
key: 0,
|
|
10992
10999
|
class: "pv-full-width"
|
|
10993
|
-
},
|
|
11000
|
+
}, of = {
|
|
10994
11001
|
key: 0,
|
|
10995
11002
|
class: "pv-flex-inline",
|
|
10996
11003
|
style: { "max-width": "100%" }
|
|
10997
|
-
},
|
|
11004
|
+
}, sf = {
|
|
10998
11005
|
role: "list",
|
|
10999
11006
|
class: "pv-flex",
|
|
11000
11007
|
style: {
|
|
11001
11008
|
"--flex-wrap": "wrap",
|
|
11002
11009
|
"max-width": "100%"
|
|
11003
11010
|
}
|
|
11004
|
-
},
|
|
11011
|
+
}, cf = { class: "pv-text-subdued pv-text-body-xxs" }, lf = 4, uf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11005
11012
|
__name: "SetFilter",
|
|
11006
11013
|
props: {
|
|
11007
11014
|
enableFocusView: {
|
|
@@ -11030,14 +11037,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11030
11037
|
"handle-settings-icon"
|
|
11031
11038
|
],
|
|
11032
11039
|
setup(e, { emit: n }) {
|
|
11033
|
-
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: z, isSingleSelect: te, suggestedValues: B, displayedFilterValues: ne, selectedFilterValues: V, showSearchBar: re, filterSearchPlaceholder: H, emptyFilterResultsRenderer: ie, filterOptionsLoadingText: U, filterOptionsRenderer: ae, filterHeaderRenderer: G, filterFooterRenderer: K, filterOptionsSortDescription: oe, filterOptionsSortTooltip: se, filterValueContext: ce, formatDisplayValue: le, resolvedFilterValueContext: q, isUnresolvedMetadataValue: ue, getLatestFilterValues: J, addSelectedValue: de, removeSelectedValue: fe, recordBulkAction: Y, rumLocation: pe, handleDropdownOpen: X, handleDropdownClosed: me, handleSeeMore: he, getColDisplayNameForField: ge, hasMoreOptions: _e, totalOptionCount: ve, isAggregate: ye, cascadeSelectionState: be, cascadeSelectionStateModel: xe } =
|
|
11040
|
+
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: z, isSingleSelect: te, suggestedValues: B, displayedFilterValues: ne, selectedFilterValues: V, showSearchBar: re, filterSearchPlaceholder: H, emptyFilterResultsRenderer: ie, filterOptionsLoadingText: U, filterOptionsRenderer: ae, filterHeaderRenderer: G, filterFooterRenderer: K, filterOptionsSortDescription: oe, filterOptionsSortTooltip: se, filterValueContext: ce, formatDisplayValue: le, resolvedFilterValueContext: q, isUnresolvedMetadataValue: ue, getLatestFilterValues: J, addSelectedValue: de, removeSelectedValue: fe, recordBulkAction: Y, rumLocation: pe, handleDropdownOpen: X, handleDropdownClosed: me, handleSeeMore: he, getColDisplayNameForField: ge, hasMoreOptions: _e, totalOptionCount: ve, isAggregate: ye, cascadeSelectionState: be, cascadeSelectionStateModel: xe } = Kd({
|
|
11034
11041
|
filterColDef: L(d, "filterColDef"),
|
|
11035
11042
|
filterStyle: L(d, "filterStyle"),
|
|
11036
11043
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
11037
11044
|
filterGroupStagedFields: x,
|
|
11038
11045
|
readOnly: L(d, "readOnly"),
|
|
11039
11046
|
disableUnselected: L(d, "disableUnselected")
|
|
11040
|
-
}), Se =
|
|
11047
|
+
}), Se = Jl(), { handleFocusUpdate: Ce, isFocused: we, removeFocus: Te, isFocusable: Ee, canRemoveFocus: De } = Uu(), Oe = (e) => {
|
|
11041
11048
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
11042
11049
|
if (e.id.startsWith("__")) {
|
|
11043
11050
|
let t = e.id.slice(2).split("__");
|
|
@@ -11045,7 +11052,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11045
11052
|
}
|
|
11046
11053
|
return e.id;
|
|
11047
11054
|
}, ke = r(() => {
|
|
11048
|
-
if (Ee(
|
|
11055
|
+
if (Ee(Os(d.filterColDef) ? Es(d.filterColDef) : [F.value])) return {
|
|
11049
11056
|
icon: "focus",
|
|
11050
11057
|
isDisabled: (e) => !Ee([e.context?.colField || F.value]),
|
|
11051
11058
|
tooltipText: (e) => {
|
|
@@ -11078,7 +11085,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11078
11085
|
fe(e, void 0, "remove_chip");
|
|
11079
11086
|
let t = q(e)?.colField || F.value, n = Ae(e);
|
|
11080
11087
|
we(n, t) && De() && Te(n);
|
|
11081
|
-
}, je = m(
|
|
11088
|
+
}, je = m(wu, k(!1)), Me = r(() => !!$(d.filterColDef).filterGroup && je.value), Ne = null, Pe = null, Fe = () => {
|
|
11082
11089
|
try {
|
|
11083
11090
|
return ye.value ? JSON.stringify(be.value) : JSON.stringify([...C.value].sort());
|
|
11084
11091
|
} catch {
|
|
@@ -11092,8 +11099,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11092
11099
|
let t = Fe(), n = Pe != null && t != null && Pe !== t;
|
|
11093
11100
|
Pe = null;
|
|
11094
11101
|
let r = C.value.length;
|
|
11095
|
-
|
|
11096
|
-
|
|
11102
|
+
Xl(() => {
|
|
11103
|
+
Yl("filter_dropdown_closed", {
|
|
11097
11104
|
filter_name: I.value,
|
|
11098
11105
|
filter_field: F.value,
|
|
11099
11106
|
selection_count: r,
|
|
@@ -11108,7 +11115,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11108
11115
|
let t = q(e)?.colField || F.value;
|
|
11109
11116
|
return we(Ae(e), t);
|
|
11110
11117
|
}, ze = r(() => S.value > 0 ? !0 : ye.value ? be.value.length > 0 : C.value.length > 0);
|
|
11111
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [R(z) && R(C).length > 0 ? (D(), o("ul",
|
|
11118
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [R(z) && R(C).length > 0 ? (D(), o("ul", $d, [(D(!0), o(t, null, A(R(C), (n) => (D(), o(t, { key: `${R(I)}-${n}` }, [R(ue)(n) ? a("", !0) : (D(), o("li", ef, [u(vc, {
|
|
11112
11119
|
label: R(le)(n) || "",
|
|
11113
11120
|
showClear: !e.readOnly && (!Re(n) || R(De)()),
|
|
11114
11121
|
disabled: e.readOnly,
|
|
@@ -11118,7 +11125,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11118
11125
|
"showClear",
|
|
11119
11126
|
"disabled",
|
|
11120
11127
|
"onHandleClose"
|
|
11121
|
-
])]))], 64))), 128))])) : a("", !0), u(R(
|
|
11128
|
+
])]))], 64))), 128))])) : a("", !0), u(R(Jc), {
|
|
11122
11129
|
modelValue: R(V),
|
|
11123
11130
|
"onUpdate:modelValue": r[1] ||= (e) => h(V) ? V.value = e : null,
|
|
11124
11131
|
disabled: !R(z) && e.readOnly && e.disableUnselected && !ze.value,
|
|
@@ -11171,7 +11178,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11171
11178
|
onSelectAll: r[4] ||= (e) => R(Y)("select_all", e),
|
|
11172
11179
|
onClearAll: r[5] ||= (e) => R(Y)("clear_all", e)
|
|
11173
11180
|
}, c({
|
|
11174
|
-
preferences: W(() => [s("div",
|
|
11181
|
+
preferences: W(() => [s("div", nf, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(R(aa), {
|
|
11175
11182
|
variant: "dark",
|
|
11176
11183
|
size: "sm",
|
|
11177
11184
|
"use-teleport": !0
|
|
@@ -11185,7 +11192,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11185
11192
|
content: W(() => [...r[6] ||= [l(" Open Preferences ", -1)]]),
|
|
11186
11193
|
_: 1
|
|
11187
11194
|
})])]),
|
|
11188
|
-
suggestions: W(() => [s("div",
|
|
11195
|
+
suggestions: W(() => [s("div", rf, [u(R(aa), {
|
|
11189
11196
|
variant: "dark",
|
|
11190
11197
|
disableInteractive: !0,
|
|
11191
11198
|
position: "top-left",
|
|
@@ -11205,8 +11212,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11205
11212
|
R(G) || Me.value || R(j) ? {
|
|
11206
11213
|
name: "header",
|
|
11207
11214
|
fn: W((t) => [
|
|
11208
|
-
R(j) ? (D(), o("p",
|
|
11209
|
-
Me.value ? (D(), i(
|
|
11215
|
+
R(j) ? (D(), o("p", tf, " Type " + P(R(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
11216
|
+
Me.value ? (D(), i(Qd, {
|
|
11210
11217
|
key: 1,
|
|
11211
11218
|
ref_key: "filterGroupMenuRef",
|
|
11212
11219
|
ref: g,
|
|
@@ -11227,7 +11234,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11227
11234
|
fn: W((e) => [(D(), i(N(R(K)), b(p(e)), null, 16))]),
|
|
11228
11235
|
key: "2"
|
|
11229
11236
|
} : void 0
|
|
11230
|
-
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.singleSelect.menuActionsVariant.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), R(z) && !e.readOnly ? (D(), o("div",
|
|
11237
|
+
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.singleSelect.menuActionsVariant.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), R(z) && !e.readOnly ? (D(), o("div", af, [R(B).length > 0 ? (D(), o("div", of, [s("ul", sf, [u(R(aa), {
|
|
11231
11238
|
variant: "dark",
|
|
11232
11239
|
disableInteractive: !0,
|
|
11233
11240
|
position: "bottom-left",
|
|
@@ -11235,20 +11242,20 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11235
11242
|
"use-teleport": !0,
|
|
11236
11243
|
style: { "--max-width": "200px" }
|
|
11237
11244
|
}, c({
|
|
11238
|
-
trigger: W(() => [s("li",
|
|
11245
|
+
trigger: W(() => [s("li", cf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", R(se) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11239
11246
|
_: 2
|
|
11240
11247
|
}, [R(se) ? {
|
|
11241
11248
|
name: "content",
|
|
11242
11249
|
fn: W(() => [l(P(R(se)), 1)]),
|
|
11243
11250
|
key: "0"
|
|
11244
|
-
} : void 0]), 1024), (D(!0), o(t, null, A(R(B).filter((e) => e !== "" && e != null).slice(0,
|
|
11251
|
+
} : void 0]), 1024), (D(!0), o(t, null, A(R(B).filter((e) => e !== "" && e != null).slice(0, lf), (e) => (D(), o("li", {
|
|
11245
11252
|
key: `${R(I)}-${e}-suggest`,
|
|
11246
11253
|
class: y(R(w) ? "pv-shimmer" : ""),
|
|
11247
11254
|
style: {
|
|
11248
11255
|
"max-width": "100%",
|
|
11249
11256
|
"line-height": "1rem"
|
|
11250
11257
|
}
|
|
11251
|
-
}, [u(R(
|
|
11258
|
+
}, [u(R(Oc), {
|
|
11252
11259
|
disabled: R(w),
|
|
11253
11260
|
label: R(le)(e) || "",
|
|
11254
11261
|
onHandleClick: (t) => R(de)(e, R(ce)(R(F), e)?.colField)
|
|
@@ -11258,18 +11265,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11258
11265
|
"onHandleClick"
|
|
11259
11266
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
11260
11267
|
}
|
|
11261
|
-
}), [["__scopeId", "data-v-cdeeca2c"]]),
|
|
11268
|
+
}), [["__scopeId", "data-v-cdeeca2c"]]), df = { class: "pv-flex pv-space-between pv-stack-8" }, ff = { class: "pv-text-title-lg" }, pf = {
|
|
11262
11269
|
id: "filter-vertical-drawer",
|
|
11263
11270
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
11264
11271
|
style: { height: "100%" }
|
|
11265
|
-
},
|
|
11272
|
+
}, mf = { class: "pv-full-width" }, hf = ["open"], gf = ["data-dd-action-name", "onClick"], _f = { class: "pv-text-title-lg" }, vf = { class: "pv-flex pv-space-between" }, yf = { class: "pv-flex" }, bf = {
|
|
11266
11273
|
class: "pv-flex",
|
|
11267
11274
|
style: {
|
|
11268
11275
|
"--flex-justify": "end",
|
|
11269
11276
|
"--flex-gap": "8px",
|
|
11270
11277
|
"margin-top": "auto"
|
|
11271
11278
|
}
|
|
11272
|
-
},
|
|
11279
|
+
}, xf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11273
11280
|
__name: "FilterPanel",
|
|
11274
11281
|
props: {
|
|
11275
11282
|
enableFocusView: {
|
|
@@ -11302,18 +11309,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11302
11309
|
},
|
|
11303
11310
|
emits: ["handle-settings-icon"],
|
|
11304
11311
|
setup(e) {
|
|
11305
|
-
let n = m(
|
|
11312
|
+
let n = m(eu, k(null)), c = m(ru, k([])), d = m(nu, k(null)), f = m(wu, k(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, commitStagedFilterModelChanges: S, clearStagedFilterModelChanges: C, filterValuesMap: w, fetchFilterValues: T, filterValuesLoadingStatus: E } = Wd(), O = k(!1), j = k(!1), M = k(""), N = r(() => c.value.flatMap((e) => Es(e))), ee = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), F = (e) => {
|
|
11306
11313
|
let t = _.value;
|
|
11307
11314
|
if (!t) return !1;
|
|
11308
|
-
let n =
|
|
11315
|
+
let n = Os(e) ? Es(e) : [e.field || ""];
|
|
11309
11316
|
if (f.value) {
|
|
11310
11317
|
let e = /* @__PURE__ */ new Set();
|
|
11311
11318
|
return ne(t, e), n.some((t) => e.has(t));
|
|
11312
11319
|
}
|
|
11313
11320
|
let r = t;
|
|
11314
11321
|
return n.some((e) => !!r[e]);
|
|
11315
|
-
}, I = (e) => p.readOnly && !F(e), L = r(() => c.value.filter((e) =>
|
|
11316
|
-
let n =
|
|
11322
|
+
}, I = (e) => p.readOnly && !F(e), L = r(() => c.value.filter((e) => vd(e) && !N.value.includes(e.field || "") && !ee.value.includes(e.field || "")).sort((e, t) => {
|
|
11323
|
+
let n = Os(e), r = Os(t);
|
|
11317
11324
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
11318
11325
|
})), z = r(() => L.value), te = r(() => {
|
|
11319
11326
|
let e = M.value?.trim().toLowerCase() || "";
|
|
@@ -11356,7 +11363,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11356
11363
|
});
|
|
11357
11364
|
}
|
|
11358
11365
|
}
|
|
11359
|
-
}, { clearAllFocuses: U } =
|
|
11366
|
+
}, { clearAllFocuses: U } = Uu(), ae = () => {
|
|
11360
11367
|
n.value && (C(), g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, U(), j.value = !1);
|
|
11361
11368
|
}, G = () => {
|
|
11362
11369
|
O.value = !1, M.value = "";
|
|
@@ -11369,7 +11376,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11369
11376
|
class: "pv-flex",
|
|
11370
11377
|
style: x(e.wrapHorizontalFilters ? "--flex-wrap: wrap; max-width: 100%" : void 0)
|
|
11371
11378
|
}, [
|
|
11372
|
-
(D(!0), o(t, null, A(B.value, (e) => (D(), o(t, { key: e.field }, [R(n) ? (D(), i(
|
|
11379
|
+
(D(!0), o(t, null, A(B.value, (e) => (D(), o(t, { key: e.field }, [R(n) ? (D(), i(uf, {
|
|
11373
11380
|
key: 0,
|
|
11374
11381
|
"enable-focus-view": p.enableFocusView,
|
|
11375
11382
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -11411,7 +11418,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11411
11418
|
variant: "tertiary"
|
|
11412
11419
|
}, null, 8, ["value"])) : a("", !0)
|
|
11413
11420
|
])) : a("", !0)], 4),
|
|
11414
|
-
p.enableVerticalPanel ? (D(), i(R(
|
|
11421
|
+
p.enableVerticalPanel ? (D(), i(R(Lc), {
|
|
11415
11422
|
key: 0,
|
|
11416
11423
|
modelValue: O.value,
|
|
11417
11424
|
"onUpdate:modelValue": c[9] ||= (e) => O.value = e,
|
|
@@ -11423,7 +11430,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11423
11430
|
"z-index": "10"
|
|
11424
11431
|
}
|
|
11425
11432
|
}, {
|
|
11426
|
-
header: W(() => [s("div",
|
|
11433
|
+
header: W(() => [s("div", df, [s("p", ff, "All Filters (" + P(z.value.length) + ")", 1), s("button", {
|
|
11427
11434
|
class: "pv-button-ghost",
|
|
11428
11435
|
"aria-label": "Close",
|
|
11429
11436
|
onClick: c[2] ||= (e) => K()
|
|
@@ -11432,7 +11439,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11432
11439
|
"onUpdate:modelValue": c[3] ||= (e) => M.value = e,
|
|
11433
11440
|
placeholder: "Search Filters"
|
|
11434
11441
|
}, null, 8, ["modelValue"])]),
|
|
11435
|
-
footer: W(() => [s("div",
|
|
11442
|
+
footer: W(() => [s("div", vf, [p.readOnly ? (D(), i(R(Kn), {
|
|
11436
11443
|
key: 1,
|
|
11437
11444
|
variant: "ghost",
|
|
11438
11445
|
label: "Close",
|
|
@@ -11441,7 +11448,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11441
11448
|
class: "pv-button-ghost",
|
|
11442
11449
|
"data-dd-action-name": "Clear all page filters",
|
|
11443
11450
|
onClick: c[5] ||= (e) => ae()
|
|
11444
|
-
}, " Clear All "), s("div",
|
|
11451
|
+
}, " Clear All "), s("div", yf, [u(R(Kn), {
|
|
11445
11452
|
variant: "ghost",
|
|
11446
11453
|
label: "Cancel",
|
|
11447
11454
|
"data-dd-action-name": "Cancel filter changes",
|
|
@@ -11458,7 +11465,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11458
11465
|
label: "No Changes",
|
|
11459
11466
|
disabled: ""
|
|
11460
11467
|
}))])], 64))])]),
|
|
11461
|
-
default: W(() => [s("div",
|
|
11468
|
+
default: W(() => [s("div", pf, [s("div", mf, [(D(!0), o(t, null, A(te.value, (e, t) => (D(), o("div", {
|
|
11462
11469
|
key: e.field,
|
|
11463
11470
|
class: y([{ "pv-border-bottom": t < te.value.length - 1 }, "pv-stack-12"])
|
|
11464
11471
|
}, [s("details", {
|
|
@@ -11468,7 +11475,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11468
11475
|
class: "pv-flex pv-full-width",
|
|
11469
11476
|
"data-dd-action-name": `Expand ${e.headerName} section`,
|
|
11470
11477
|
onClick: (t) => I(e) && t.preventDefault()
|
|
11471
|
-
}, [s("span",
|
|
11478
|
+
}, [s("span", _f, P(e.headerName), 1)], 8, gf), s("div", null, [R(n) ? (D(), i(uf, {
|
|
11472
11479
|
key: 0,
|
|
11473
11480
|
"filter-style": "vertical",
|
|
11474
11481
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -11486,16 +11493,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11486
11493
|
"focus-text",
|
|
11487
11494
|
"read-only",
|
|
11488
11495
|
"disable-unselected"
|
|
11489
|
-
])) : a("", !0)])], 10,
|
|
11496
|
+
])) : a("", !0)])], 10, hf)], 2))), 128))])])]),
|
|
11490
11497
|
_: 1
|
|
11491
11498
|
}, 8, ["modelValue"])) : a("", !0)
|
|
11492
|
-
], 4), u(R(
|
|
11499
|
+
], 4), u(R(wc), {
|
|
11493
11500
|
modelValue: j.value,
|
|
11494
11501
|
"onUpdate:modelValue": c[12] ||= (e) => j.value = e,
|
|
11495
11502
|
header: "Clear All Filters"
|
|
11496
11503
|
}, {
|
|
11497
11504
|
body: W(() => [...c[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
11498
|
-
footer: W(() => [s("div",
|
|
11505
|
+
footer: W(() => [s("div", bf, [u(R(Kn), {
|
|
11499
11506
|
label: "Cancel",
|
|
11500
11507
|
variant: "secondary",
|
|
11501
11508
|
size: "lg",
|
|
@@ -11511,25 +11518,25 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11511
11518
|
_: 1
|
|
11512
11519
|
}, 8, ["modelValue"])], 64));
|
|
11513
11520
|
}
|
|
11514
|
-
}), [["__scopeId", "data-v-b4740f96"]]),
|
|
11521
|
+
}), [["__scopeId", "data-v-b4740f96"]]), Sf = { key: 2 }, Cf = { style: {
|
|
11515
11522
|
"max-width": "220px",
|
|
11516
11523
|
"white-space": "normal",
|
|
11517
11524
|
"overflow-wrap": "break-word"
|
|
11518
|
-
} },
|
|
11525
|
+
} }, wf = {
|
|
11519
11526
|
key: 0,
|
|
11520
11527
|
class: "pv-flex ag-header-actions"
|
|
11521
|
-
},
|
|
11528
|
+
}, Tf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11522
11529
|
__name: "HeaderCellRenderer",
|
|
11523
11530
|
props: { params: {} },
|
|
11524
11531
|
setup(e, { expose: t }) {
|
|
11525
|
-
let n = m(
|
|
11532
|
+
let n = m($l, k([])), c = m(au, k([])), l = e, d = k(!1), f = k(!1), p = k(null), h = k(null), g = k(null), _ = k(null), v = k(!1), b = r(() => {
|
|
11526
11533
|
let e = l.params.column.getColDef();
|
|
11527
11534
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
11528
11535
|
}), C = r(() => {
|
|
11529
11536
|
if (!n.value || n.value.length === 0) return "";
|
|
11530
11537
|
let e = n.value.find((e) => e.colId === l.params.column.getColId()), t = e ? e.sort : "";
|
|
11531
11538
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
11532
|
-
}), w = r(() =>
|
|
11539
|
+
}), w = r(() => ws(l.params.column.getColDef())), T = r(() => {
|
|
11533
11540
|
let e = l.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
11534
11541
|
if (!t || t.length <= 1) return [];
|
|
11535
11542
|
let n = $(e), r = n.aggFuncDisplayNameMap || {}, i = n.aggFuncDescriptionMap || {};
|
|
@@ -11556,7 +11563,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11556
11563
|
}, L = () => {
|
|
11557
11564
|
v.value = !0, _.value && l.params.showColumnMenu(_.value, I);
|
|
11558
11565
|
}, R = (e) => {
|
|
11559
|
-
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value =
|
|
11566
|
+
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value = hs(e.column.getColDef().context?.dataType), p.value = gs(p.value, e.column.getColDef().context?.dataType), g.value = e.column.getColDef().context?.headerTooltip ?? null;
|
|
11560
11567
|
}, z = () => {
|
|
11561
11568
|
f.value && l.params.progressSort(!1);
|
|
11562
11569
|
};
|
|
@@ -11588,7 +11595,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11588
11595
|
name: h.value,
|
|
11589
11596
|
class: "pv-text-tertiary"
|
|
11590
11597
|
}, null, 8, ["name"])) : a("", !0),
|
|
11591
|
-
F.value ? (D(), i(
|
|
11598
|
+
F.value ? (D(), i(Wo, {
|
|
11592
11599
|
key: 1,
|
|
11593
11600
|
modelValue: O.value,
|
|
11594
11601
|
"onUpdate:modelValue": t[0] ||= (e) => O.value = e,
|
|
@@ -11610,7 +11617,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11610
11617
|
"popoverProperties",
|
|
11611
11618
|
"icon",
|
|
11612
11619
|
"label"
|
|
11613
|
-
])) : (D(), o("p",
|
|
11620
|
+
])) : (D(), o("p", Sf, P(p.value), 1)),
|
|
11614
11621
|
g.value ? (D(), i(aa, {
|
|
11615
11622
|
key: 3,
|
|
11616
11623
|
variant: "white",
|
|
@@ -11627,14 +11634,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11627
11634
|
class: "pv-text-subdued",
|
|
11628
11635
|
onClick: t[2] ||= K(() => {}, ["stop"])
|
|
11629
11636
|
})]),
|
|
11630
|
-
content: W(() => [s("div",
|
|
11637
|
+
content: W(() => [s("div", Cf, P(g.value), 1)]),
|
|
11631
11638
|
_: 1
|
|
11632
11639
|
})) : a("", !0),
|
|
11633
11640
|
f.value && C.value !== "" ? (D(), i(Hn, {
|
|
11634
11641
|
key: 4,
|
|
11635
11642
|
name: C.value
|
|
11636
11643
|
}, null, 8, ["name"])) : a("", !0)
|
|
11637
|
-
], 6), b.value ? (D(), o("div",
|
|
11644
|
+
], 6), b.value ? (D(), o("div", wf, [s("div", {
|
|
11638
11645
|
ref_key: "menuButton",
|
|
11639
11646
|
ref: _,
|
|
11640
11647
|
class: "ag-header-cell-menu-button",
|
|
@@ -11647,7 +11654,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11647
11654
|
onClick: K(L, ["stop", "prevent"])
|
|
11648
11655
|
})], 4)])) : a("", !0)], 6));
|
|
11649
11656
|
}
|
|
11650
|
-
}), [["__scopeId", "data-v-ec17105d"]]),
|
|
11657
|
+
}), [["__scopeId", "data-v-ec17105d"]]), Ef = {
|
|
11651
11658
|
headerHeight: "30px",
|
|
11652
11659
|
headerBackgroundColor: "var(--color-background-body, white)",
|
|
11653
11660
|
headerCellHoverBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -11662,14 +11669,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11662
11669
|
rangeSelectionBorderStyle: "solid",
|
|
11663
11670
|
menuBackgroundColor: "var(--color-background-body, white)",
|
|
11664
11671
|
accentColor: "var(--color-background-brand, #36c5ba)"
|
|
11665
|
-
},
|
|
11666
|
-
...
|
|
11672
|
+
}, Df = Ie.withParams({
|
|
11673
|
+
...Ef,
|
|
11667
11674
|
headerRowBorder: !0,
|
|
11668
11675
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11669
11676
|
wrapperBorder: !0,
|
|
11670
11677
|
wrapperBorderRadius: "8px"
|
|
11671
|
-
}),
|
|
11672
|
-
...
|
|
11678
|
+
}), Of = Ie.withParams({
|
|
11679
|
+
...Ef,
|
|
11673
11680
|
headerRowBorder: !1,
|
|
11674
11681
|
rowHoverColor: "transparent",
|
|
11675
11682
|
wrapperBorder: !1,
|
|
@@ -11678,18 +11685,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11678
11685
|
rowBorder: !1,
|
|
11679
11686
|
columnBorder: !1,
|
|
11680
11687
|
rowHeight: "50px"
|
|
11681
|
-
}),
|
|
11682
|
-
"pv-data-table-base":
|
|
11688
|
+
}), kf = {
|
|
11689
|
+
"pv-data-table-base": Df,
|
|
11683
11690
|
"pv-data-table-grouped": Ie.withParams({
|
|
11684
|
-
...
|
|
11691
|
+
...Ef,
|
|
11685
11692
|
headerRowBorder: !0,
|
|
11686
11693
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11687
11694
|
wrapperBorder: !0,
|
|
11688
11695
|
wrapperBorderRadius: "8px"
|
|
11689
11696
|
}),
|
|
11690
|
-
"pv-data-table-grouped-card":
|
|
11697
|
+
"pv-data-table-grouped-card": Of,
|
|
11691
11698
|
"pv-data-table-classic": Ie.withParams({
|
|
11692
|
-
...
|
|
11699
|
+
...Ef,
|
|
11693
11700
|
backgroundColor: "var(--color-background-body, white)",
|
|
11694
11701
|
borderColor: "var(--color-border, #e3e7ea)",
|
|
11695
11702
|
foregroundColor: "var(--color-text-body, #121313)",
|
|
@@ -11707,10 +11714,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11707
11714
|
wrapperBorder: !1,
|
|
11708
11715
|
wrapperBorderRadius: "0px"
|
|
11709
11716
|
})
|
|
11710
|
-
},
|
|
11717
|
+
}, Af = { class: "pv-popover-menu" }, jf = {
|
|
11711
11718
|
class: "pv-popover",
|
|
11712
11719
|
style: { "--height": "auto" }
|
|
11713
|
-
},
|
|
11720
|
+
}, Mf = ["disabled"], Nf = /* @__PURE__ */ d({
|
|
11714
11721
|
__name: "ExportMenu",
|
|
11715
11722
|
props: { getCsvData: { type: Function } },
|
|
11716
11723
|
setup(e) {
|
|
@@ -11725,26 +11732,26 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11725
11732
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
11726
11733
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
11727
11734
|
}
|
|
11728
|
-
return (e, n) => (D(), o("nav",
|
|
11735
|
+
return (e, n) => (D(), o("nav", Af, [n[0] ||= s("button", {
|
|
11729
11736
|
type: "button",
|
|
11730
11737
|
class: "pv-button-icon"
|
|
11731
11738
|
}, [s("svg", {
|
|
11732
11739
|
"aria-hidden": "true",
|
|
11733
11740
|
class: "pv-icon-24"
|
|
11734
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
11741
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", jf, [s("button", {
|
|
11735
11742
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
11736
11743
|
onClick: K(i, ["prevent"]),
|
|
11737
11744
|
disabled: r.value
|
|
11738
|
-
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
11745
|
+
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Mf)])]));
|
|
11739
11746
|
}
|
|
11740
|
-
}),
|
|
11747
|
+
}), Pf = /* @__PURE__ */ d({
|
|
11741
11748
|
__name: "PaginationPanel",
|
|
11742
11749
|
props: { panelSize: { default: "xl" } },
|
|
11743
11750
|
setup(e) {
|
|
11744
|
-
let t = m(
|
|
11751
|
+
let t = m(eu, k(null)), n = m(uu, k(1)), r = m(du, k(0)), i = e, a = (e) => {
|
|
11745
11752
|
e >= 1 && e <= r.value && t.value && t?.value.paginationGoToPage(e - 1);
|
|
11746
11753
|
};
|
|
11747
|
-
return (e, t) => (D(), o("div", { class: y({ "pv-hide": R(r) <= 1 }) }, [u(
|
|
11754
|
+
return (e, t) => (D(), o("div", { class: y({ "pv-hide": R(r) <= 1 }) }, [u(tl, {
|
|
11748
11755
|
"model-value": R(n),
|
|
11749
11756
|
"onUpdate:modelValue": a,
|
|
11750
11757
|
"max-pages": R(r),
|
|
@@ -11755,10 +11762,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11755
11762
|
"size"
|
|
11756
11763
|
])], 2));
|
|
11757
11764
|
}
|
|
11758
|
-
}),
|
|
11765
|
+
}), Ff = {
|
|
11759
11766
|
key: 0,
|
|
11760
11767
|
class: "pv-tag"
|
|
11761
|
-
},
|
|
11768
|
+
}, If = /* @__PURE__ */ d({
|
|
11762
11769
|
__name: "TagCellRenderer",
|
|
11763
11770
|
props: { params: {} },
|
|
11764
11771
|
setup(e) {
|
|
@@ -11766,30 +11773,30 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11766
11773
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
11767
11774
|
return e.trim() === "" ? null : e;
|
|
11768
11775
|
});
|
|
11769
|
-
return (e, t) => n.value ? (D(), o("div",
|
|
11776
|
+
return (e, t) => n.value ? (D(), o("div", Ff, P(n.value), 1)) : a("", !0);
|
|
11770
11777
|
}
|
|
11771
|
-
}),
|
|
11778
|
+
}), Lf = {
|
|
11772
11779
|
key: 0,
|
|
11773
11780
|
class: "pv-table-row-number"
|
|
11774
|
-
},
|
|
11781
|
+
}, Rf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11775
11782
|
__name: "RowCountCellRenderer",
|
|
11776
11783
|
props: { params: {} },
|
|
11777
11784
|
setup(e) {
|
|
11778
11785
|
let t = e, n = r(() => (t.params.node?.rowIndex || 0) + 1), i = r(() => {
|
|
11779
11786
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
11780
|
-
return e &&
|
|
11787
|
+
return e && Cs(e) ? n.toLocaleString() : n;
|
|
11781
11788
|
});
|
|
11782
|
-
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span",
|
|
11789
|
+
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span", Lf, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
11783
11790
|
}
|
|
11784
|
-
}), [["__scopeId", "data-v-2485e378"]]),
|
|
11791
|
+
}), [["__scopeId", "data-v-2485e378"]]), zf = 4, Bf = /* @__PURE__ */ d({
|
|
11785
11792
|
__name: "TableSearch",
|
|
11786
11793
|
props: {
|
|
11787
11794
|
placeholder: {},
|
|
11788
11795
|
searchStyle: {}
|
|
11789
11796
|
},
|
|
11790
11797
|
setup(e) {
|
|
11791
|
-
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(
|
|
11792
|
-
f(c.value ?
|
|
11798
|
+
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(eu, k(null)), c = m(wu, k(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = Wd(), p = (e) => {
|
|
11799
|
+
f(c.value ? pd(e) : fd(e));
|
|
11793
11800
|
}, h = async (e) => {
|
|
11794
11801
|
if (!s?.value || typeof s.value.setGridOption != "function") return;
|
|
11795
11802
|
if (!l.value) {
|
|
@@ -11832,7 +11839,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11832
11839
|
};
|
|
11833
11840
|
o.value = !0, a.value = ((await d.value?.(t))?.filter((e) => e !== null) || []).map((e) => {
|
|
11834
11841
|
let t = "search", n = s.value?.getColumnDef(e.queryField || "");
|
|
11835
|
-
return n && (t =
|
|
11842
|
+
return n && (t = hs(n.context?.dataType || null) || "search"), {
|
|
11836
11843
|
id: `${e.queryField}-${e.queryText}`,
|
|
11837
11844
|
text: e.queryText,
|
|
11838
11845
|
icon: t,
|
|
@@ -11851,7 +11858,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11851
11858
|
debounce: 300,
|
|
11852
11859
|
immediate: !0,
|
|
11853
11860
|
deep: !0
|
|
11854
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(
|
|
11861
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(Kl, {
|
|
11855
11862
|
key: 0,
|
|
11856
11863
|
placeholder: e.placeholder,
|
|
11857
11864
|
"search-text": r.value,
|
|
@@ -11861,7 +11868,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11861
11868
|
options: a.value,
|
|
11862
11869
|
"onUpdate:options": s[2] ||= (e) => a.value = e,
|
|
11863
11870
|
"options-loading": o.value,
|
|
11864
|
-
"query-term-display-limit":
|
|
11871
|
+
"query-term-display-limit": zf
|
|
11865
11872
|
}, null, 8, [
|
|
11866
11873
|
"placeholder",
|
|
11867
11874
|
"search-text",
|
|
@@ -11875,25 +11882,25 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11875
11882
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
11876
11883
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
11877
11884
|
}
|
|
11878
|
-
}),
|
|
11885
|
+
}), Vf = {
|
|
11879
11886
|
style: {
|
|
11880
11887
|
"background-color": "var(--color-background-body, white)",
|
|
11881
11888
|
"max-width": "300px"
|
|
11882
11889
|
},
|
|
11883
11890
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
11884
|
-
},
|
|
11891
|
+
}, Hf = { style: { color: "var(--color-text-body, black)" } }, Uf = /* @__PURE__ */ d({
|
|
11885
11892
|
__name: "TableTooltip",
|
|
11886
11893
|
props: { params: {} },
|
|
11887
11894
|
setup(e) {
|
|
11888
|
-
return (t, n) => (D(), o("div",
|
|
11895
|
+
return (t, n) => (D(), o("div", Vf, [s("p", Hf, P(e.params.value), 1)]));
|
|
11889
11896
|
}
|
|
11890
|
-
}),
|
|
11897
|
+
}), Wf = { class: "pv-stack-16" }, Gf = {
|
|
11891
11898
|
key: 0,
|
|
11892
11899
|
class: "pv-table-overlay"
|
|
11893
|
-
},
|
|
11900
|
+
}, Kf = {
|
|
11894
11901
|
class: "pv-text-body-xs pv-text-center",
|
|
11895
11902
|
style: { "padding-top": "16px" }
|
|
11896
|
-
},
|
|
11903
|
+
}, qf = /* @__PURE__ */ d({
|
|
11897
11904
|
__name: "PvDataTable",
|
|
11898
11905
|
props: {
|
|
11899
11906
|
allFieldsAreFocusable: {
|
|
@@ -12139,17 +12146,17 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12139
12146
|
let h = r(() => f.layout ? {} : {
|
|
12140
12147
|
height: f.containerHeight,
|
|
12141
12148
|
minHeight: f.containerMinHeight
|
|
12142
|
-
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : q.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => g.value ? f.theme :
|
|
12143
|
-
let t =
|
|
12149
|
+
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : q.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => g.value ? f.theme : kf[w.value]), A = c, M = k(!1), N = (e) => {
|
|
12150
|
+
let t = Es(e), n = e.context;
|
|
12144
12151
|
return Array.from(new Set([
|
|
12145
12152
|
...t,
|
|
12146
12153
|
...n?.queryColIds || [],
|
|
12147
12154
|
...t.flatMap((e) => K.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
12148
12155
|
]));
|
|
12149
12156
|
}, F = (e, t) => {
|
|
12150
|
-
if (
|
|
12151
|
-
let n = K.find((e) =>
|
|
12152
|
-
return !!n && N(n).some((t) =>
|
|
12157
|
+
if (gd(e, t)) return !0;
|
|
12158
|
+
let n = K.find((e) => Ds(e) === t);
|
|
12159
|
+
return !!n && N(n).some((t) => gd(e, t));
|
|
12153
12160
|
}, L = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
12154
12161
|
if (!fe.value) {
|
|
12155
12162
|
e.success({ rowData: [] }), ue.value = !0;
|
|
@@ -12161,7 +12168,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12161
12168
|
let t = e.request.rowGroupCols[0].id;
|
|
12162
12169
|
o = F(s, t);
|
|
12163
12170
|
}
|
|
12164
|
-
if (e.request.rowGroupCols =
|
|
12171
|
+
if (e.request.rowGroupCols = ks(e.request.rowGroupCols, e.api.getColumnDefs?.()), (e.request.groupKeys?.length || 0) > 0) {
|
|
12165
12172
|
let t = e.parentNode?.data;
|
|
12166
12173
|
if (t?.bucketMin != null && t?.bucketMax != null) {
|
|
12167
12174
|
if (f.enableAdvancedFilter) {
|
|
@@ -12183,7 +12190,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12183
12190
|
filter: t.bucketMax
|
|
12184
12191
|
}]
|
|
12185
12192
|
};
|
|
12186
|
-
n =
|
|
12193
|
+
n = kd(n, i, e);
|
|
12187
12194
|
}
|
|
12188
12195
|
}), n && (e.request.filterModel = n);
|
|
12189
12196
|
} else {
|
|
@@ -12207,7 +12214,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12207
12214
|
}
|
|
12208
12215
|
}), e.request.filterModel = n;
|
|
12209
12216
|
}
|
|
12210
|
-
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !==
|
|
12217
|
+
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !== ns), e.request.rowGroupCols = e.request.rowGroupCols.filter((e) => e.aggFunc !== ns);
|
|
12211
12218
|
}
|
|
12212
12219
|
}
|
|
12213
12220
|
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !Q.tableSearchFilterModelEmpty.value) if (f.enableAdvancedFilter) {
|
|
@@ -12219,11 +12226,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12219
12226
|
} : e.request.filterModel = s;
|
|
12220
12227
|
} else {
|
|
12221
12228
|
let t = e.request.filterModel;
|
|
12222
|
-
e.request.filterModel =
|
|
12229
|
+
e.request.filterModel = _d(K, t, s);
|
|
12223
12230
|
}
|
|
12224
12231
|
e.success = (e) => {
|
|
12225
12232
|
if (J.value = !1, f.enableFocusView && mt.value.length > 0 && pt.value && e.rowData) {
|
|
12226
|
-
let n =
|
|
12233
|
+
let n = ys(e.rowData, pt.value, mt.value);
|
|
12227
12234
|
if (n) {
|
|
12228
12235
|
e.rowData = n, t(e);
|
|
12229
12236
|
return;
|
|
@@ -12235,7 +12242,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12235
12242
|
}, f.serverSideRowHandler?.(e);
|
|
12236
12243
|
} } : null, z = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
12237
12244
|
let t = [], n = { ...rt.value };
|
|
12238
|
-
t = !ue.value && ce ?
|
|
12245
|
+
t = !ue.value && ce ? Nd(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await lt(e.colDef, {
|
|
12239
12246
|
api: e.api,
|
|
12240
12247
|
filterModel: n,
|
|
12241
12248
|
useStaged: !1
|
|
@@ -12254,19 +12261,19 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12254
12261
|
suppressColumnsToolPanel: !0,
|
|
12255
12262
|
minWidth: 150,
|
|
12256
12263
|
flex: 1,
|
|
12257
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
12264
|
+
headerComponent: f.enableInlineFilters ? void 0 : Tf,
|
|
12258
12265
|
cellDataType: !1,
|
|
12259
|
-
tooltipComponent:
|
|
12260
|
-
cellClass: (e) => Et(e.column) ? "" :
|
|
12266
|
+
tooltipComponent: Uf,
|
|
12267
|
+
cellClass: (e) => Et(e.column) ? "" : Cs(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
12261
12268
|
cellRendererSelector: (e) => {
|
|
12262
12269
|
if (te(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
12263
|
-
component:
|
|
12270
|
+
component: id,
|
|
12264
12271
|
params: e
|
|
12265
12272
|
};
|
|
12266
12273
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && q.value.length === 0) {
|
|
12267
12274
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
12268
12275
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
12269
|
-
component:
|
|
12276
|
+
component: Rf,
|
|
12270
12277
|
params: e
|
|
12271
12278
|
};
|
|
12272
12279
|
}
|
|
@@ -12291,7 +12298,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12291
12298
|
}
|
|
12292
12299
|
}, H = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "", G = (e, t) => {
|
|
12293
12300
|
if (!e) return null;
|
|
12294
|
-
let n = { ...e }, r = t, i =
|
|
12301
|
+
let n = { ...e }, r = t, i = Es(e);
|
|
12295
12302
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
12296
12303
|
else return null;
|
|
12297
12304
|
if (i.length > 0) {
|
|
@@ -12305,21 +12312,21 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12305
12312
|
let t = e.headerValueGetter;
|
|
12306
12313
|
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 || "";
|
|
12307
12314
|
}
|
|
12308
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType ===
|
|
12315
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === ms.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === ms.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === ms.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === ms.Tag && !e.cellRenderer && (n.cellRenderer = If), n;
|
|
12309
12316
|
}, K = f.colDefs?.map((e) => {
|
|
12310
12317
|
let t = { ...e };
|
|
12311
|
-
L && z &&
|
|
12318
|
+
L && z && vd(e) && (t = yd(e, z));
|
|
12312
12319
|
let n = e.context;
|
|
12313
12320
|
return n && (t = G(t, n)), t;
|
|
12314
12321
|
}).filter((e) => e != null) || [], oe = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
12315
|
-
for (let e of K) for (let t of
|
|
12316
|
-
let se = K.some((e) => e.context?.visibilityState !== void 0), ce =
|
|
12322
|
+
for (let e of K) for (let t of Es(e)) oe.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
12323
|
+
let se = K.some((e) => e.context?.visibilityState !== void 0), ce = dd(f.initialGridState, K, f.enableAdvancedFilter), le = k(null), q = k([]), ue = m(cu, k(!1)), J = k(!1), de = r(() => {
|
|
12317
12324
|
if (q.value.length > 0) {
|
|
12318
12325
|
let e = q.value[0], t = K.find((t) => t.field === e), n = rt.value, r = !n;
|
|
12319
|
-
if (!r &&
|
|
12326
|
+
if (!r && zd(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
12320
12327
|
}
|
|
12321
12328
|
return null;
|
|
12322
|
-
}), fe = r(() => Q.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : de.value === null), Y = r(() => de.value ? `Select at least one value for "${de.value}" to view data.` : "Select a filter to view data."), X = ee(null), Ie = k([]), Q = f.filterStore ||
|
|
12329
|
+
}), fe = r(() => Q.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : de.value === null), Y = r(() => de.value ? `Select at least one value for "${de.value}" to view data.` : "Select a filter to view data."), X = ee(null), Ie = k([]), Q = f.filterStore || Wd(), tt = m(Ql, null), nt = tt || Hu(null, f.allFieldsAreFocusable), rt = Q.filterModel, it = Q.tableSearchFilterModel, at = Q.filterValueMap, st = Q.filterValuesMap, ct = Q.filterValueSelectedMetadataMap, lt = Q.fetchFilterValues, ut = Q.filterStoreHandler, dt = Q.tableSearchHandler;
|
|
12323
12330
|
if (ut.value = f.filterValuesSetHandler, ut.value) {
|
|
12324
12331
|
let e = (e) => ({
|
|
12325
12332
|
hasMore: Q.filterHasMoreMap.value[e],
|
|
@@ -12348,8 +12355,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12348
12355
|
debounce: 250
|
|
12349
12356
|
});
|
|
12350
12357
|
let ft = k(null), pt = r(() => nt?.computedFocusType.value || null), mt = r(() => nt?.computedFocuses.value || []), ht = r(() => K.filter((e) => e.filter)), gt = r(() => K.filter((e) => e.enableRowGroup)), _t = r(() => K.filter((e) => e.aggFunc)), vt = k(null), yt = k({}), bt = k(1), xt = k(0);
|
|
12351
|
-
O(
|
|
12352
|
-
let St = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !mt.value.length && !pt.value ? f.rowData :
|
|
12358
|
+
O(Zl, Q), O(Ql, nt), O($l, Ie), O(eu, X), O(tu, ft), O(nu, le), O(ru, ht), O(iu, gt), O(au, q), O(ou, vt), O(su, yt), O(cu, ue), O(lu, J), O(uu, bt), O(du, xt), O(wu, r(() => f.enableAdvancedFilter));
|
|
12359
|
+
let St = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !mt.value.length && !pt.value ? f.rowData : ys(f.rowData, pt.value, mt.value));
|
|
12353
12360
|
U(() => mt.value, (e) => {
|
|
12354
12361
|
A("focus-update", {
|
|
12355
12362
|
filterField: pt.value,
|
|
@@ -12371,7 +12378,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12371
12378
|
}, wt = (e) => {
|
|
12372
12379
|
if (X.value) {
|
|
12373
12380
|
let t = Ft();
|
|
12374
|
-
|
|
12381
|
+
Od(rt.value, t) || (rt.value = t, A("filter-changed", e));
|
|
12375
12382
|
}
|
|
12376
12383
|
}, Tt = (e) => {
|
|
12377
12384
|
Ie.value = e.api?.getState()?.sort?.sortModel || [], ue.value && A("sort-changed", e);
|
|
@@ -12452,10 +12459,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12452
12459
|
}, Ft = () => X.value ? f.enableAdvancedFilter ? X.value.getAdvancedFilterModel() : X.value.getFilterModel() : rt.value, It = (e) => {
|
|
12453
12460
|
if (!X.value) return !1;
|
|
12454
12461
|
if (f.enableAdvancedFilter) {
|
|
12455
|
-
let t = e &&
|
|
12462
|
+
let t = e && zd(e) ? ud(e) : e;
|
|
12456
12463
|
X.value.setAdvancedFilterModel(t);
|
|
12457
12464
|
} else {
|
|
12458
|
-
if (e && !
|
|
12465
|
+
if (e && !zd(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
12459
12466
|
X.value.setFilterModel(e);
|
|
12460
12467
|
}
|
|
12461
12468
|
return !0;
|
|
@@ -12513,7 +12520,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12513
12520
|
if (e) return e.click(), !0;
|
|
12514
12521
|
}
|
|
12515
12522
|
return !1;
|
|
12516
|
-
}, qt = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) :
|
|
12523
|
+
}, qt = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) : Ru), Yt = { loadingMessage: "One moment please..." }, Xt = k((() => {
|
|
12517
12524
|
let e = {
|
|
12518
12525
|
headerName: "",
|
|
12519
12526
|
minWidth: 200,
|
|
@@ -12523,7 +12530,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12523
12530
|
headerComponent: void 0,
|
|
12524
12531
|
cellRendererParams: {
|
|
12525
12532
|
suppressCount: !0,
|
|
12526
|
-
innerRenderer:
|
|
12533
|
+
innerRenderer: ed,
|
|
12527
12534
|
innerRendererParams: (e) => ({
|
|
12528
12535
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
12529
12536
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -12542,7 +12549,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12542
12549
|
Xt.value.headerName = "", Xt.value.headerComponent = void 0, Xt.value.context = null, Xt.value.sortable = !1, Xt.value.filter = void 0, Xt.value.enableRowGroup = void 0;
|
|
12543
12550
|
return;
|
|
12544
12551
|
}
|
|
12545
|
-
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
12552
|
+
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : Tf), Xt.value.context = { dataType: e.context?.dataType || null }, Xt.value.sortable = e.sortable, Xt.value.filter = e.filter, Xt.value.enableRowGroup = e.enableRowGroup, Xt.value.onCellClicked = e.onCellClicked;
|
|
12546
12553
|
}, Qt = (e) => {
|
|
12547
12554
|
if (e.node.group) return {
|
|
12548
12555
|
backgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -12555,12 +12562,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12555
12562
|
let t = e.values;
|
|
12556
12563
|
if (e.rowNode.leafGroup) return {
|
|
12557
12564
|
values: t,
|
|
12558
|
-
value:
|
|
12565
|
+
value: td(t)
|
|
12559
12566
|
};
|
|
12560
12567
|
let n = e.values.flatMap((e) => e.values || []);
|
|
12561
12568
|
return {
|
|
12562
12569
|
values: n,
|
|
12563
|
-
value:
|
|
12570
|
+
value: td(n)
|
|
12564
12571
|
};
|
|
12565
12572
|
} };
|
|
12566
12573
|
S(() => {
|
|
@@ -12580,7 +12587,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12580
12587
|
let t = X.value;
|
|
12581
12588
|
if (!t) return;
|
|
12582
12589
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
12583
|
-
n && !
|
|
12590
|
+
n && !Od(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r, q.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
12584
12591
|
let a = e.columnOrder?.orderedColIds;
|
|
12585
12592
|
se && a?.length && (ot(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
12586
12593
|
state: a.map((e) => ({ colId: e })),
|
|
@@ -12589,7 +12596,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12589
12596
|
};
|
|
12590
12597
|
U(() => f.initialGridState, () => {
|
|
12591
12598
|
if (f.initialGridState) {
|
|
12592
|
-
let e =
|
|
12599
|
+
let e = dd(f.initialGridState, K, f.enableAdvancedFilter);
|
|
12593
12600
|
e && tn(e);
|
|
12594
12601
|
}
|
|
12595
12602
|
}, { deep: !0 });
|
|
@@ -12641,7 +12648,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12641
12648
|
content: W(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
12642
12649
|
_: 1
|
|
12643
12650
|
})) : a("", !0),
|
|
12644
|
-
ae(s("div",
|
|
12651
|
+
ae(s("div", Wf, [s("div", {
|
|
12645
12652
|
class: "pv-flex pv-space-between",
|
|
12646
12653
|
style: x(un.value ? "--flex-align: flex-start; --flex-wrap: wrap" : void 0)
|
|
12647
12654
|
}, [s("div", {
|
|
@@ -12650,10 +12657,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12650
12657
|
}, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
12651
12658
|
key: 0,
|
|
12652
12659
|
style: x(fn.value)
|
|
12653
|
-
}, [u(
|
|
12660
|
+
}, [u(Bf, b(p(pn.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
12654
12661
|
to: e.filterTeleportLocation,
|
|
12655
12662
|
disabled: !e.filterTeleportLocation
|
|
12656
|
-
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(
|
|
12663
|
+
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(xf, {
|
|
12657
12664
|
key: 0,
|
|
12658
12665
|
"enable-focus-view": e.enableFocusView,
|
|
12659
12666
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -12682,12 +12689,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12682
12689
|
minHeight: dn
|
|
12683
12690
|
} : void 0)
|
|
12684
12691
|
}, [
|
|
12685
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(
|
|
12692
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(Pu, {
|
|
12686
12693
|
key: 0,
|
|
12687
12694
|
rowGroupLimit: e.rowGroupLimit,
|
|
12688
12695
|
enableFocusView: e.enableFocusView
|
|
12689
12696
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
12690
|
-
e.enableCsvExport ? (D(), i(
|
|
12697
|
+
e.enableCsvExport ? (D(), i(Nf, {
|
|
12691
12698
|
key: 1,
|
|
12692
12699
|
getCsvData: At
|
|
12693
12700
|
})) : a("", !0),
|
|
@@ -12707,7 +12714,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12707
12714
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
12708
12715
|
key: 0,
|
|
12709
12716
|
style: x(fn.value)
|
|
12710
|
-
}, [u(
|
|
12717
|
+
}, [u(Bf, b(p(pn.value)), null, 16)], 4)) : a("", !0), ln.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
12711
12718
|
s("div", {
|
|
12712
12719
|
class: y(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
12713
12720
|
style: {
|
|
@@ -12798,17 +12805,17 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12798
12805
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
12799
12806
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
12800
12807
|
advancedFilterParent: sn.value
|
|
12801
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !fe.value ? (D(), o("div",
|
|
12802
|
-
e.pagination ? (D(), i(
|
|
12808
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !fe.value ? (D(), o("div", Gf, [s("p", Kf, P(Y.value), 1)])) : a("", !0)], 2),
|
|
12809
|
+
e.pagination ? (D(), i(Pf, { key: 2 })) : a("", !0)
|
|
12803
12810
|
], 4));
|
|
12804
12811
|
}
|
|
12805
|
-
}),
|
|
12812
|
+
}), Jf = ["id"], Yf = {
|
|
12806
12813
|
key: 0,
|
|
12807
12814
|
class: "sort-divider-container"
|
|
12808
|
-
},
|
|
12815
|
+
}, Xf = ["data-label"], Zf = ["onDrop"], Qf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, $f = { class: "pv-text-body-sm pv-text-tertiary" }, ep = { class: "pv-flex pv-full-width pv-sort-option" }, tp = { class: "pv-text-body-sm" }, np = {
|
|
12809
12816
|
key: 1,
|
|
12810
12817
|
class: "pv-button-placeholder"
|
|
12811
|
-
},
|
|
12818
|
+
}, rp = "--divider--", ip = "placeholder-", ap = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12812
12819
|
__name: "PvSortableList",
|
|
12813
12820
|
props: /* @__PURE__ */ g({
|
|
12814
12821
|
options: { default: () => [] },
|
|
@@ -12828,11 +12835,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12828
12835
|
emits: ["update:modelValue"],
|
|
12829
12836
|
setup(e) {
|
|
12830
12837
|
let n = e, c = B(e, "modelValue"), l = {
|
|
12831
|
-
id:
|
|
12838
|
+
id: rp,
|
|
12832
12839
|
text: "",
|
|
12833
12840
|
disabled: !0
|
|
12834
12841
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
12835
|
-
id: `${
|
|
12842
|
+
id: `${ip}${t}`,
|
|
12836
12843
|
text: "",
|
|
12837
12844
|
disabled: !0,
|
|
12838
12845
|
isPlaceholder: !0
|
|
@@ -12846,25 +12853,25 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12846
12853
|
];
|
|
12847
12854
|
}), m = V("sortableListRef"), h = V("containerRef"), g = null, _ = null, v = !1, b = () => {
|
|
12848
12855
|
if (!m.value) return c.value;
|
|
12849
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
12850
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
12856
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === rp);
|
|
12857
|
+
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(ip)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12851
12858
|
};
|
|
12852
12859
|
T(() => {
|
|
12853
12860
|
m.value && (g = new st(m.value, {
|
|
12854
12861
|
animation: 200,
|
|
12855
|
-
filter: `#${
|
|
12862
|
+
filter: `#${rp}, [id^="placeholder-"]`,
|
|
12856
12863
|
dragoverBubble: !0,
|
|
12857
12864
|
onStart: (e) => {
|
|
12858
12865
|
_ = e.item, v = !1;
|
|
12859
12866
|
},
|
|
12860
12867
|
onMove: (e) => {
|
|
12861
12868
|
let t = e.related;
|
|
12862
|
-
if (t?.id?.startsWith(
|
|
12869
|
+
if (t?.id?.startsWith(ip)) return !1;
|
|
12863
12870
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12864
12871
|
if (!r) return !1;
|
|
12865
12872
|
if (O(r)) return !0;
|
|
12866
12873
|
if (k.value) return !1;
|
|
12867
|
-
if (t?.id ===
|
|
12874
|
+
if (t?.id === rp) return !0;
|
|
12868
12875
|
let i = n.options.find((e) => e.id === t?.id);
|
|
12869
12876
|
return !!i && O(i);
|
|
12870
12877
|
},
|
|
@@ -12920,20 +12927,20 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12920
12927
|
key: e.id,
|
|
12921
12928
|
id: e.id,
|
|
12922
12929
|
class: "pv-stack-4"
|
|
12923
|
-
}, [e.id ===
|
|
12930
|
+
}, [e.id === rp ? (D(), o("div", Yf, [s("div", {
|
|
12924
12931
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12925
12932
|
"data-label": k.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12926
|
-
}, null, 8,
|
|
12933
|
+
}, null, 8, Xf)])) : e.id.includes(ip) ? (D(), o("div", {
|
|
12927
12934
|
key: 1,
|
|
12928
12935
|
class: "placeholder-zone",
|
|
12929
12936
|
onDragover: r[0] ||= (e) => S(e),
|
|
12930
12937
|
onDragleave: r[1] ||= (e) => C(e),
|
|
12931
12938
|
onDrop: (t) => w(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12932
|
-
}, [s("div",
|
|
12939
|
+
}, [s("div", Qf, [s("span", $f, P(n.placeholderText), 1)])], 40, Zf)) : (D(), o("div", {
|
|
12933
12940
|
key: 2,
|
|
12934
12941
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !O(e) && k.value ? "pv-menu-item-disabled" : ""]),
|
|
12935
12942
|
style: x(N(e))
|
|
12936
|
-
}, [s("div",
|
|
12943
|
+
}, [s("div", ep, [
|
|
12937
12944
|
u(Hn, {
|
|
12938
12945
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12939
12946
|
name: "reorder"
|
|
@@ -12943,8 +12950,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12943
12950
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12944
12951
|
name: e.icon
|
|
12945
12952
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12946
|
-
s("span",
|
|
12947
|
-
]), M(e) ? (D(), o("div",
|
|
12953
|
+
s("span", tp, P(e.text), 1)
|
|
12954
|
+
]), M(e) ? (D(), o("div", np)) : (D(), i(Kn, {
|
|
12948
12955
|
key: 0,
|
|
12949
12956
|
"left-icon": O(e) ? "remove-circle" : "add-circle",
|
|
12950
12957
|
ariaLabel: O(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -12956,12 +12963,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12956
12963
|
"ariaLabel",
|
|
12957
12964
|
"style",
|
|
12958
12965
|
"onClick"
|
|
12959
|
-
]))], 6))], 8,
|
|
12966
|
+
]))], 6))], 8, Jf))), 128))], 512)], 512));
|
|
12960
12967
|
}
|
|
12961
|
-
}), [["__scopeId", "data-v-a3c94e3a"]]),
|
|
12968
|
+
}), [["__scopeId", "data-v-a3c94e3a"]]), op = {
|
|
12962
12969
|
class: "pv-flex pv-full-width pv-space-between",
|
|
12963
12970
|
style: { "white-space": "nowrap" }
|
|
12964
|
-
},
|
|
12971
|
+
}, sp = { class: "pv-text-body-md" }, cp = /* @__PURE__ */ d({
|
|
12965
12972
|
inheritAttrs: !1,
|
|
12966
12973
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
12967
12974
|
props: {
|
|
@@ -12970,22 +12977,22 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12970
12977
|
context: {}
|
|
12971
12978
|
},
|
|
12972
12979
|
setup(e) {
|
|
12973
|
-
return (t, n) => (D(), o("div",
|
|
12980
|
+
return (t, n) => (D(), o("div", op, [s("span", sp, P(e.text), 1), e.context?.rightIcon ? (D(), i(Hn, {
|
|
12974
12981
|
key: 0,
|
|
12975
12982
|
name: e.context.rightIcon,
|
|
12976
12983
|
class: "pv-text-subdued"
|
|
12977
12984
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
12978
12985
|
}
|
|
12979
|
-
}),
|
|
12986
|
+
}), lp = { class: "pv-relative" }, up = {
|
|
12980
12987
|
role: "list",
|
|
12981
12988
|
class: "pv-relative"
|
|
12982
|
-
},
|
|
12989
|
+
}, dp = ["data-active"], fp = ["data-active"], pp = {
|
|
12983
12990
|
key: 2,
|
|
12984
12991
|
style: { cursor: "pointer" }
|
|
12985
|
-
},
|
|
12992
|
+
}, mp = {
|
|
12986
12993
|
key: 0,
|
|
12987
12994
|
role: "list"
|
|
12988
|
-
},
|
|
12995
|
+
}, hp = /* @__PURE__ */ d({
|
|
12989
12996
|
__name: "PvTableOptionsPanel",
|
|
12990
12997
|
props: {
|
|
12991
12998
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -12997,7 +13004,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12997
13004
|
"column-config-change"
|
|
12998
13005
|
],
|
|
12999
13006
|
setup(e, { emit: n }) {
|
|
13000
|
-
let i = e, c = n, l = m(
|
|
13007
|
+
let i = e, c = n, l = m(eu, ee(null)), d = m(tu, k(null)), f = m(ou, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } = qd({
|
|
13001
13008
|
alignment: "top",
|
|
13002
13009
|
popoverCssProperties: {
|
|
13003
13010
|
maxWidth: "300px",
|
|
@@ -13034,7 +13041,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13034
13041
|
return {
|
|
13035
13042
|
id: e.getColId(),
|
|
13036
13043
|
text: t.headerName || e.getColId(),
|
|
13037
|
-
icon:
|
|
13044
|
+
icon: hs(t.context?.dataType || null) || "circle-chevron-down"
|
|
13038
13045
|
};
|
|
13039
13046
|
}, z = r(() => N.value.map(L)), te = k([]), B = () => {
|
|
13040
13047
|
te.value = N.value.filter((e) => e.isVisible()).map(L);
|
|
@@ -13064,7 +13071,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13064
13071
|
previousHiddenColIds: r.hiddenColIds
|
|
13065
13072
|
});
|
|
13066
13073
|
};
|
|
13067
|
-
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div",
|
|
13074
|
+
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div", lp, [u(Va, {
|
|
13068
13075
|
open: v.value,
|
|
13069
13076
|
label: "Table Configuration",
|
|
13070
13077
|
icon: "settings",
|
|
@@ -13084,7 +13091,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13084
13091
|
"padding-top": "4px",
|
|
13085
13092
|
"padding-bottom": "12px"
|
|
13086
13093
|
}
|
|
13087
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
13094
|
+
}, " Table Configuration ")], -1), s("ul", up, [
|
|
13088
13095
|
C.value ? (D(), o("li", {
|
|
13089
13096
|
key: 0,
|
|
13090
13097
|
id: "table-config-overlay",
|
|
@@ -13097,7 +13104,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13097
13104
|
icon: "layers-2",
|
|
13098
13105
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
13099
13106
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
13100
|
-
}, null, 8, ["class-list"])], 8,
|
|
13107
|
+
}, null, 8, ["class-list"])], 8, dp)) : a("", !0),
|
|
13101
13108
|
P.value ? (D(), o("li", {
|
|
13102
13109
|
key: 1,
|
|
13103
13110
|
id: "table-config-columns",
|
|
@@ -13110,8 +13117,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13110
13117
|
icon: "columns-3",
|
|
13111
13118
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
13112
13119
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
13113
|
-
}, null, 8, ["class-list"])], 8,
|
|
13114
|
-
F.value ? (D(), o("li",
|
|
13120
|
+
}, null, 8, ["class-list"])], 8, fp)) : a("", !0),
|
|
13121
|
+
F.value ? (D(), o("li", pp, [u(Ao, {
|
|
13115
13122
|
config: { variant: "icon" },
|
|
13116
13123
|
id: "table-config-group-toggle",
|
|
13117
13124
|
class: "pv-text-subdued",
|
|
@@ -13132,11 +13139,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13132
13139
|
},
|
|
13133
13140
|
isList: b.value !== "columns"
|
|
13134
13141
|
}, {
|
|
13135
|
-
default: W(() => [b.value === "overlay" ? (D(), o("ul",
|
|
13142
|
+
default: W(() => [b.value === "overlay" ? (D(), o("ul", mp, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(Ao, {
|
|
13136
13143
|
id: e.id,
|
|
13137
13144
|
config: {
|
|
13138
13145
|
variant: "checkbox",
|
|
13139
|
-
renderer:
|
|
13146
|
+
renderer: cp
|
|
13140
13147
|
},
|
|
13141
13148
|
text: e.text,
|
|
13142
13149
|
context: e.context,
|
|
@@ -13161,7 +13168,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13161
13168
|
"padding-left": "2px",
|
|
13162
13169
|
"padding-bottom": "6px"
|
|
13163
13170
|
}
|
|
13164
|
-
}, " Currently Viewing ", -1), u(
|
|
13171
|
+
}, " Currently Viewing ", -1), u(ap, {
|
|
13165
13172
|
modelValue: te.value,
|
|
13166
13173
|
options: z.value,
|
|
13167
13174
|
showPlaceholders: !1,
|
|
@@ -13174,18 +13181,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13174
13181
|
"isList"
|
|
13175
13182
|
])], 64)) : a("", !0);
|
|
13176
13183
|
}
|
|
13177
|
-
}),
|
|
13184
|
+
}), gp = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, _p = ["data-group-name"], vp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, yp = ["data-loading"], bp = { class: "pv-chart-chip-label pv-flex-item" }, xp = { class: "pv-chart-chip-value" }, Sp = /* @__PURE__ */ d({
|
|
13178
13185
|
__name: "PvBenchmarkChips",
|
|
13179
13186
|
props: { sections: {} },
|
|
13180
13187
|
emits: ["chip-hover"],
|
|
13181
13188
|
setup(e, { emit: n }) {
|
|
13182
13189
|
let r = n;
|
|
13183
|
-
return (n, c) => (D(), o("div",
|
|
13190
|
+
return (n, c) => (D(), o("div", gp, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13184
13191
|
key: e.groupName,
|
|
13185
13192
|
"data-testid": "chip-section",
|
|
13186
13193
|
"data-group-name": e.groupName,
|
|
13187
13194
|
class: "pv-flex-vertical"
|
|
13188
|
-
}, [s("p",
|
|
13195
|
+
}, [s("p", vp, P(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13189
13196
|
key: e.key,
|
|
13190
13197
|
"data-testid": "benchmark-chip",
|
|
13191
13198
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -13197,11 +13204,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13197
13204
|
}, F(e.loading || e.excludeFromCrossline ? {} : {
|
|
13198
13205
|
mouseenter: () => r("chip-hover", e.key),
|
|
13199
13206
|
mouseleave: () => r("chip-hover", null)
|
|
13200
|
-
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(
|
|
13207
|
+
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(nl, {
|
|
13201
13208
|
"data-testid": "benchmark-chip-skeleton",
|
|
13202
13209
|
size: "sm",
|
|
13203
13210
|
width: "60%"
|
|
13204
|
-
}), u(
|
|
13211
|
+
}), u(nl, {
|
|
13205
13212
|
"data-testid": "benchmark-chip-skeleton",
|
|
13206
13213
|
size: "sm",
|
|
13207
13214
|
width: "30%"
|
|
@@ -13212,8 +13219,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13212
13219
|
class: "pv-chart-benchmark-chip-accent",
|
|
13213
13220
|
style: x({ backgroundColor: e.color })
|
|
13214
13221
|
}, null, 4)) : a("", !0),
|
|
13215
|
-
s("span",
|
|
13216
|
-
s("span",
|
|
13222
|
+
s("span", bp, P(e.label), 1),
|
|
13223
|
+
s("span", xp, P(e.formattedValue), 1),
|
|
13217
13224
|
e.excludeFromCrossline ? (D(), i(R(aa), {
|
|
13218
13225
|
key: 1,
|
|
13219
13226
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -13236,16 +13243,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13236
13243
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
13237
13244
|
_: 1
|
|
13238
13245
|
})) : a("", !0)
|
|
13239
|
-
], 64))], 16,
|
|
13246
|
+
], 64))], 16, yp))), 128))], 8, _p))), 128))]));
|
|
13240
13247
|
}
|
|
13241
|
-
}),
|
|
13248
|
+
}), Cp = (e) => e.field === "state" || $(e).dataType === ms.Location, wp = (e) => e.filter(Cp), Tp = (e, t, n) => {
|
|
13242
13249
|
if (!n || t.length === 0) return e;
|
|
13243
13250
|
let r = new Set(n(t).map((e) => e.field));
|
|
13244
13251
|
return e.filter((e) => r.has(e));
|
|
13245
|
-
},
|
|
13252
|
+
}, Ep = (e) => e.filter((e) => !Cs(e)), Dp = (e) => e.filter((e) => Cs(e)), Op = {
|
|
13246
13253
|
xAxis: {
|
|
13247
13254
|
selectMode: "sortable",
|
|
13248
|
-
filterColumns:
|
|
13255
|
+
filterColumns: Ep
|
|
13249
13256
|
},
|
|
13250
13257
|
yAxis: {},
|
|
13251
13258
|
secondaryYAxis: {},
|
|
@@ -13254,16 +13261,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13254
13261
|
rowGroupLimit: 2,
|
|
13255
13262
|
supportsFocusView: !0,
|
|
13256
13263
|
storeBeforeChange: !0
|
|
13257
|
-
},
|
|
13264
|
+
}, kp = [
|
|
13258
13265
|
{
|
|
13259
|
-
...
|
|
13266
|
+
...Op,
|
|
13260
13267
|
id: "column",
|
|
13261
13268
|
text: "Column",
|
|
13262
13269
|
icon: "chart-column",
|
|
13263
13270
|
agChartType: "bar"
|
|
13264
13271
|
},
|
|
13265
13272
|
{
|
|
13266
|
-
...
|
|
13273
|
+
...Op,
|
|
13267
13274
|
id: "bar",
|
|
13268
13275
|
text: "Bar",
|
|
13269
13276
|
icon: "chart-bar",
|
|
@@ -13271,28 +13278,28 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13271
13278
|
isHorizontal: !0
|
|
13272
13279
|
},
|
|
13273
13280
|
{
|
|
13274
|
-
...
|
|
13281
|
+
...Op,
|
|
13275
13282
|
id: "line",
|
|
13276
13283
|
text: "Line",
|
|
13277
13284
|
icon: "chart-line",
|
|
13278
13285
|
agChartType: "line"
|
|
13279
13286
|
},
|
|
13280
13287
|
{
|
|
13281
|
-
...
|
|
13288
|
+
...Op,
|
|
13282
13289
|
id: "area",
|
|
13283
13290
|
text: "Area",
|
|
13284
13291
|
icon: "chart-area",
|
|
13285
13292
|
agChartType: "area"
|
|
13286
13293
|
},
|
|
13287
13294
|
{
|
|
13288
|
-
...
|
|
13295
|
+
...Op,
|
|
13289
13296
|
id: "column_stacked",
|
|
13290
13297
|
text: "Stacked Column",
|
|
13291
13298
|
icon: "chart-column-stacked",
|
|
13292
13299
|
agChartType: "bar"
|
|
13293
13300
|
},
|
|
13294
13301
|
{
|
|
13295
|
-
...
|
|
13302
|
+
...Op,
|
|
13296
13303
|
id: "bar_stacked",
|
|
13297
13304
|
text: "Stacked Bar",
|
|
13298
13305
|
icon: "chart-bar-stacked",
|
|
@@ -13300,7 +13307,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13300
13307
|
isHorizontal: !0
|
|
13301
13308
|
},
|
|
13302
13309
|
{
|
|
13303
|
-
...
|
|
13310
|
+
...Op,
|
|
13304
13311
|
id: "pie",
|
|
13305
13312
|
text: "Pie",
|
|
13306
13313
|
icon: "chart-pie",
|
|
@@ -13314,12 +13321,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13314
13321
|
icon: "chart-column",
|
|
13315
13322
|
xAxis: {
|
|
13316
13323
|
selectMode: "single",
|
|
13317
|
-
filterColumns:
|
|
13324
|
+
filterColumns: Dp,
|
|
13318
13325
|
hideLabel: !0
|
|
13319
13326
|
},
|
|
13320
13327
|
yAxis: {
|
|
13321
13328
|
hidden: !0,
|
|
13322
|
-
defaultValue:
|
|
13329
|
+
defaultValue: ns
|
|
13323
13330
|
},
|
|
13324
13331
|
secondaryYAxis: { hidden: !0 },
|
|
13325
13332
|
sort: {},
|
|
@@ -13335,7 +13342,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13335
13342
|
icon: "map",
|
|
13336
13343
|
xAxis: {
|
|
13337
13344
|
selectMode: "single",
|
|
13338
|
-
filterColumns:
|
|
13345
|
+
filterColumns: wp,
|
|
13339
13346
|
hideLabel: !0
|
|
13340
13347
|
},
|
|
13341
13348
|
yAxis: {},
|
|
@@ -13347,36 +13354,36 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13347
13354
|
supportsFocusView: !1,
|
|
13348
13355
|
storeBeforeChange: !1
|
|
13349
13356
|
}
|
|
13350
|
-
],
|
|
13351
|
-
function
|
|
13352
|
-
return
|
|
13357
|
+
], Ap = new Map(kp.map((e) => [e.id, e])), jp = Ap.get("column");
|
|
13358
|
+
function Mp(e) {
|
|
13359
|
+
return Ap.get(e) || jp;
|
|
13353
13360
|
}
|
|
13354
13361
|
//#endregion
|
|
13355
13362
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue?vue&type=script&setup=true&lang.ts
|
|
13356
|
-
var
|
|
13363
|
+
var Np = { class: "pv-stack-16 pv-chart-options-panel" }, Pp = { class: "pv-flex pv-relative" }, Fp = [
|
|
13357
13364
|
"id",
|
|
13358
13365
|
"aria-label",
|
|
13359
13366
|
"onKeydown"
|
|
13360
|
-
],
|
|
13367
|
+
], Ip = {
|
|
13361
13368
|
role: "list",
|
|
13362
13369
|
class: "pv-popover-list pv-relative"
|
|
13363
|
-
},
|
|
13370
|
+
}, Lp = [
|
|
13364
13371
|
"id",
|
|
13365
13372
|
"data-active",
|
|
13366
13373
|
"data-dd-action-name",
|
|
13367
13374
|
"onMouseenter",
|
|
13368
13375
|
"onClick"
|
|
13369
|
-
],
|
|
13376
|
+
], Rp = { style: { "max-width": "100px" } }, zp = {
|
|
13370
13377
|
key: 1,
|
|
13371
13378
|
class: "pv-flex"
|
|
13372
|
-
},
|
|
13379
|
+
}, Bp = {
|
|
13373
13380
|
key: 0,
|
|
13374
13381
|
class: "pv-inset-square-8"
|
|
13375
|
-
},
|
|
13382
|
+
}, Vp = {
|
|
13376
13383
|
key: 1,
|
|
13377
13384
|
role: "list",
|
|
13378
13385
|
class: "pv-popover-list"
|
|
13379
|
-
},
|
|
13386
|
+
}, Hp = ["data-active"], Up = "This metric isn’t available with the selected chart type.", Wp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
13380
13387
|
__name: "PvChartOptionsPanel",
|
|
13381
13388
|
props: {
|
|
13382
13389
|
enablePanel: { type: Boolean },
|
|
@@ -13393,17 +13400,17 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13393
13400
|
},
|
|
13394
13401
|
emits: ["series-agg-func-selected"],
|
|
13395
13402
|
setup(e, { emit: n }) {
|
|
13396
|
-
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } =
|
|
13403
|
+
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } = qd({
|
|
13397
13404
|
alignment: "top right",
|
|
13398
13405
|
popoverCssProperties: {
|
|
13399
13406
|
maxWidth: "500px",
|
|
13400
13407
|
maxHeight: "900px"
|
|
13401
13408
|
},
|
|
13402
13409
|
useTeleport: !0
|
|
13403
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(
|
|
13410
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(gu, k(void 0)), T = m(mu, k([])), E = m(_u, k(void 0)), O = m(hu, k([])), j = m(pu, k([])), M = m(iu, k([])), N = r(() => Mp(w.value?.id || "")), ee = r(() => {
|
|
13404
13411
|
let e = w.value?.id ?? "";
|
|
13405
13412
|
return j.value.length > 1 && !e.endsWith("_stacked");
|
|
13406
|
-
}), F = m(
|
|
13413
|
+
}), F = m(vu, k("")), I = m(yu, k([])), L = m(bu, k(void 0)), z = m(xu, k([])), te = m(Cu, k(!1)), B = m(Su, k([])), ne = m(Tu, k(/* @__PURE__ */ new Set())), V = m(Eu, k([])), re = r(() => V.value.filter((e) => ne.value.has(e.id)).map((e) => ({
|
|
13407
13414
|
id: e.id,
|
|
13408
13415
|
text: e.label,
|
|
13409
13416
|
disabled: e.disabled,
|
|
@@ -13414,12 +13421,12 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13414
13421
|
U(ee, (e) => {
|
|
13415
13422
|
e && L.value && (L.value = void 0), e && B.value.length > 0 && (B.value = []);
|
|
13416
13423
|
}, { immediate: !0 });
|
|
13417
|
-
let ie = m(
|
|
13424
|
+
let ie = m(fu, k("")), oe = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
13418
13425
|
label: e.label,
|
|
13419
13426
|
value: e.value
|
|
13420
13427
|
})) : []), se = r(() => {
|
|
13421
13428
|
let e = j.value[0];
|
|
13422
|
-
return e ?
|
|
13429
|
+
return e ? Fs(M.value.find((t) => t.field === e)) : !1;
|
|
13423
13430
|
}), ce = r(() => {
|
|
13424
13431
|
if (w.value) return (j.value.length > 1 ? [
|
|
13425
13432
|
"bar_stacked",
|
|
@@ -13464,10 +13471,10 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13464
13471
|
case "sort": return "Select Chart Sort";
|
|
13465
13472
|
default: return;
|
|
13466
13473
|
}
|
|
13467
|
-
}, J =
|
|
13474
|
+
}, J = Jl(), de = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, fe = (e, t, n = "select") => {
|
|
13468
13475
|
if (!t) return;
|
|
13469
13476
|
let r = je.value.find((t) => t.value === e), i = r?.availableOptions ? le(r.availableOptions, t) : void 0;
|
|
13470
|
-
|
|
13477
|
+
Yl("chart_option_selected", {
|
|
13471
13478
|
panel: de(e),
|
|
13472
13479
|
selected_value: i?.text ?? t,
|
|
13473
13480
|
selected_value_id: t,
|
|
@@ -13475,26 +13482,26 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13475
13482
|
}, J());
|
|
13476
13483
|
}, Y = (e, t) => {
|
|
13477
13484
|
let n = new Set(e.activeOptionIds);
|
|
13478
|
-
e.updateSelectedOptions?.(t),
|
|
13485
|
+
e.updateSelectedOptions?.(t), Xl(() => {
|
|
13479
13486
|
for (let r of t) n.has(r.id) || fe(e.value, r.id);
|
|
13480
13487
|
});
|
|
13481
13488
|
}, pe = (e, t) => {
|
|
13482
|
-
e.updateSelectedOption?.(t?.id || ""),
|
|
13489
|
+
e.updateSelectedOption?.(t?.id || ""), Xl(() => fe(e.value, t?.id));
|
|
13483
13490
|
}, X = (e, t) => {
|
|
13484
13491
|
let n = t.option;
|
|
13485
13492
|
if (e.isMultiSelect) {
|
|
13486
13493
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
13487
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(q(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) ||
|
|
13494
|
+
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(q(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) || Xl(() => fe(e.value, n.id));
|
|
13488
13495
|
return;
|
|
13489
13496
|
}
|
|
13490
|
-
e.updateSelectedOption?.(n.id),
|
|
13497
|
+
e.updateSelectedOption?.(n.id), Xl(() => fe(e.value, n.id));
|
|
13491
13498
|
}, me = (e, t) => {
|
|
13492
13499
|
let n = e.activeOptions?.value ?? [];
|
|
13493
|
-
e.activeOptions && (e.activeOptions.value = t),
|
|
13500
|
+
e.activeOptions && (e.activeOptions.value = t), Xl(() => {
|
|
13494
13501
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
13495
13502
|
for (let n of t) a.has(n.id) || fe(e.value, n.id, "select");
|
|
13496
13503
|
for (let t of n) o.has(t.id) || fe(e.value, t.id, "deselect");
|
|
13497
|
-
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") &&
|
|
13504
|
+
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && Yl("chart_option_selected", {
|
|
13498
13505
|
panel: de(e.value),
|
|
13499
13506
|
selected_value: t.map((e) => e.text).join(", "),
|
|
13500
13507
|
selected_value_id: i.join(","),
|
|
@@ -13505,7 +13512,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13505
13512
|
let r = !!e && t === e;
|
|
13506
13513
|
return {
|
|
13507
13514
|
disabled: r,
|
|
13508
|
-
description: r ?
|
|
13515
|
+
description: r ? Up : n
|
|
13509
13516
|
};
|
|
13510
13517
|
}, ye = (e, t) => {
|
|
13511
13518
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -13587,7 +13594,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13587
13594
|
}, De = r(() => f.value ? ye(I.value, _e.value) : be(I.value, _e.value)), Oe = r(() => f.value ? ye(z.value) : be(z.value)), ke = r(() => f.value ? Ce(I.value) : I.value.length), Ae = r(() => M.value.map((e) => ({
|
|
13588
13595
|
id: e.field || "",
|
|
13589
13596
|
text: e.headerName || e.field || "",
|
|
13590
|
-
icon:
|
|
13597
|
+
icon: hs(e.context?.dataType || null) || "circle-chevron-down"
|
|
13591
13598
|
}))), Z = r({
|
|
13592
13599
|
get: () => j.value.map((e) => Ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
13593
13600
|
set: (e) => {
|
|
@@ -13743,12 +13750,12 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13743
13750
|
let t = Me.value;
|
|
13744
13751
|
if (!t?.isMultiSelect) return;
|
|
13745
13752
|
let n = new Set(t.activeOptionIds ?? []);
|
|
13746
|
-
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))),
|
|
13753
|
+
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Xl(() => {
|
|
13747
13754
|
for (let r of e) n.has(r) || fe(t.value, r);
|
|
13748
13755
|
});
|
|
13749
13756
|
}, Re = (e) => {
|
|
13750
13757
|
let t = Me.value;
|
|
13751
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id),
|
|
13758
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Xl(() => fe(t.value, e.id)));
|
|
13752
13759
|
}, ze = (e) => {
|
|
13753
13760
|
let t = Me.value;
|
|
13754
13761
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
@@ -13759,7 +13766,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13759
13766
|
}, Ue = () => {
|
|
13760
13767
|
S.value = void 0;
|
|
13761
13768
|
};
|
|
13762
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
13769
|
+
return (n, r) => (D(), o(t, null, [s("div", Np, [s("div", null, [ae((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Pp, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(Va, {
|
|
13763
13770
|
open: b.value,
|
|
13764
13771
|
label: "Chart Configuration",
|
|
13765
13772
|
icon: "chart-area",
|
|
@@ -13802,7 +13809,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13802
13809
|
"padding-left": "2px",
|
|
13803
13810
|
"padding-bottom": "6px"
|
|
13804
13811
|
}
|
|
13805
|
-
}, " Viewing ", -1), u(
|
|
13812
|
+
}, " Viewing ", -1), u(ap, {
|
|
13806
13813
|
modelValue: Me.value.activeOptions.value,
|
|
13807
13814
|
"onUpdate:modelValue": r[1] ||= (e) => me(Me.value, e),
|
|
13808
13815
|
options: Me.value.availableOptions || [],
|
|
@@ -13812,7 +13819,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13812
13819
|
"modelValue",
|
|
13813
13820
|
"options",
|
|
13814
13821
|
"activeOptionLimit"
|
|
13815
|
-
])], 40,
|
|
13822
|
+
])], 40, Fp)) : Me.value ? (D(), i(Vo, {
|
|
13816
13823
|
key: 1,
|
|
13817
13824
|
id: t,
|
|
13818
13825
|
"aria-label": `${Me.value.label} options`,
|
|
@@ -13861,7 +13868,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13861
13868
|
"padding-top": "4px",
|
|
13862
13869
|
"padding-bottom": "12px"
|
|
13863
13870
|
}
|
|
13864
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
13871
|
+
}, " Chart Configuration ")], -1), s("ul", Ip, [(D(!0), o(t, null, A(je.value, (t) => (D(), o("li", {
|
|
13865
13872
|
id: `pv-chart-config-${t.value}`,
|
|
13866
13873
|
key: t.value,
|
|
13867
13874
|
"data-active": S.value === t.value ? !0 : null,
|
|
@@ -13892,9 +13899,9 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13892
13899
|
_: 2
|
|
13893
13900
|
}, [t.disabled && t.disabledReason ? {
|
|
13894
13901
|
name: "content",
|
|
13895
|
-
fn: W(() => [s("div",
|
|
13902
|
+
fn: W(() => [s("div", Rp, P(t.disabledReason), 1)]),
|
|
13896
13903
|
key: "0"
|
|
13897
|
-
} : void 0]), 1024)], 40,
|
|
13904
|
+
} : void 0]), 1024)], 40, Lp))), 128))])]),
|
|
13898
13905
|
_: 1
|
|
13899
13906
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[R(Q), [He, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
13900
13907
|
class: "pv-flex pv-space-between",
|
|
@@ -13904,7 +13911,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13904
13911
|
options: oe.value,
|
|
13905
13912
|
modelValue: R(ie),
|
|
13906
13913
|
"onUpdate:modelValue": r[4] ||= (e) => h(ie) ? ie.value = e : null
|
|
13907
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
13914
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", zp, [(D(!0), o(t, null, A(je.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(Jc, {
|
|
13908
13915
|
key: 0,
|
|
13909
13916
|
label: n.label,
|
|
13910
13917
|
prefixLabel: n.prefixLabel,
|
|
@@ -13923,7 +13930,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13923
13930
|
"options",
|
|
13924
13931
|
"disabled",
|
|
13925
13932
|
"rumActionName"
|
|
13926
|
-
])) : n.isSortableList ? a("", !0) : (D(), i(
|
|
13933
|
+
])) : n.isSortableList ? a("", !0) : (D(), i(Wo, {
|
|
13927
13934
|
key: 1,
|
|
13928
13935
|
label: n.label,
|
|
13929
13936
|
prefixLabel: n.prefixLabel,
|
|
@@ -13957,13 +13964,13 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13957
13964
|
...R(p)
|
|
13958
13965
|
}
|
|
13959
13966
|
}, {
|
|
13960
|
-
default: W(() => [Me.value ? (D(), o(t, { key: 0 }, [Me.value.isSortableList ? (D(), o("div",
|
|
13967
|
+
default: W(() => [Me.value ? (D(), o(t, { key: 0 }, [Me.value.isSortableList ? (D(), o("div", Bp, [r[9] ||= s("p", {
|
|
13961
13968
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13962
13969
|
style: {
|
|
13963
13970
|
"padding-left": "2px",
|
|
13964
13971
|
"padding-bottom": "6px"
|
|
13965
13972
|
}
|
|
13966
|
-
}, " Viewing ", -1), u(
|
|
13973
|
+
}, " Viewing ", -1), u(ap, {
|
|
13967
13974
|
modelValue: Me.value.activeOptions.value,
|
|
13968
13975
|
"onUpdate:modelValue": r[5] ||= (e) => me(Me.value, e),
|
|
13969
13976
|
options: Me.value.availableOptions || [],
|
|
@@ -13973,7 +13980,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13973
13980
|
"modelValue",
|
|
13974
13981
|
"options",
|
|
13975
13982
|
"activeOptionLimit"
|
|
13976
|
-
])])) : (D(), o("ul",
|
|
13983
|
+
])])) : (D(), o("ul", Vp, [(D(!0), o(t, null, A(Me.value.availableOptions, (t) => (D(), o("li", {
|
|
13977
13984
|
key: t.id,
|
|
13978
13985
|
"data-active": ze(t)
|
|
13979
13986
|
}, [u(Ao, {
|
|
@@ -13998,14 +14005,14 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13998
14005
|
"disabled",
|
|
13999
14006
|
"selectedIds",
|
|
14000
14007
|
"onHandleSelected"
|
|
14001
|
-
])], 8,
|
|
14008
|
+
])], 8, Hp))), 128))]))], 64)) : a("", !0)]),
|
|
14002
14009
|
_: 1
|
|
14003
14010
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
14004
14011
|
}
|
|
14005
14012
|
}), [["__scopeId", "data-v-333de0aa"]]);
|
|
14006
14013
|
//#endregion
|
|
14007
14014
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
14008
|
-
function
|
|
14015
|
+
function Gp(e, t, n, r, i) {
|
|
14009
14016
|
return i ? {
|
|
14010
14017
|
xKey: n,
|
|
14011
14018
|
xName: r,
|
|
@@ -14018,7 +14025,7 @@ function Wp(e, t, n, r, i) {
|
|
|
14018
14025
|
yName: r
|
|
14019
14026
|
};
|
|
14020
14027
|
}
|
|
14021
|
-
var
|
|
14028
|
+
var Kp = (e, t) => {
|
|
14022
14029
|
if (t.length === 0) return null;
|
|
14023
14030
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
14024
14031
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -14029,22 +14036,22 @@ var Gp = (e, t) => {
|
|
|
14029
14036
|
}
|
|
14030
14037
|
}
|
|
14031
14038
|
return null;
|
|
14032
|
-
},
|
|
14039
|
+
}, qp = (e, t) => {
|
|
14033
14040
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
14034
14041
|
return {
|
|
14035
14042
|
categoryPadOffset: n,
|
|
14036
14043
|
axisMin: 0 - i,
|
|
14037
14044
|
axisMax: r + i
|
|
14038
14045
|
};
|
|
14039
|
-
},
|
|
14046
|
+
}, Jp = (e, t) => {
|
|
14040
14047
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
14041
14048
|
return (e + n - r) / (i - r);
|
|
14042
|
-
},
|
|
14049
|
+
}, Yp = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
14043
14050
|
...t,
|
|
14044
14051
|
color: t.color ?? e.color,
|
|
14045
14052
|
formatValue: t.formatValue ?? e.formatValue,
|
|
14046
14053
|
key: `${e.id}-${t.label}`
|
|
14047
|
-
}))),
|
|
14054
|
+
}))), Xp = (e, t, n) => {
|
|
14048
14055
|
let r = /* @__PURE__ */ new Map();
|
|
14049
14056
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
14050
14057
|
let t = r.get(e.groupName) ?? {
|
|
@@ -14066,18 +14073,18 @@ var Gp = (e, t) => {
|
|
|
14066
14073
|
});
|
|
14067
14074
|
}), r.set(e.groupName, t);
|
|
14068
14075
|
}), [...r.values()];
|
|
14069
|
-
},
|
|
14070
|
-
function
|
|
14071
|
-
let { crosslineOverlayGroups: t, isHistogramWithBuckets: n, isHorizontalBarChart: i, computedChartData: a, pvChartRef: o, formatValue: s, initialActiveOverlayGroupIds: c } = e, l = k(new Set(c?.value ?? t.value.filter((e) =>
|
|
14076
|
+
}, Zp = (e) => !!(e.visible && !e.disabled);
|
|
14077
|
+
function Qp(e) {
|
|
14078
|
+
let { crosslineOverlayGroups: t, isHistogramWithBuckets: n, isHorizontalBarChart: i, computedChartData: a, pvChartRef: o, formatValue: s, initialActiveOverlayGroupIds: c } = e, l = k(new Set(c?.value ?? t.value.filter((e) => Zp(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, Zp(e)]));
|
|
14072
14079
|
U(t, (e) => {
|
|
14073
14080
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
14074
14081
|
for (let i of e) {
|
|
14075
|
-
let e =
|
|
14082
|
+
let e = Zp(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
14076
14083
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
14077
14084
|
}
|
|
14078
|
-
u = new Map(e.map((e) => [e.id,
|
|
14085
|
+
u = new Map(e.map((e) => [e.id, Zp(e)])), n && (l.value = t);
|
|
14079
14086
|
});
|
|
14080
|
-
let d = r(() =>
|
|
14087
|
+
let d = r(() => Yp(t.value, l.value)), f = r(() => Xp(t.value, l.value, s)), p = k(null);
|
|
14081
14088
|
return {
|
|
14082
14089
|
activeCrosslineOverlayGroups: l,
|
|
14083
14090
|
resolvedCrosslineOverlays: d,
|
|
@@ -14087,11 +14094,11 @@ function Zp(e) {
|
|
|
14087
14094
|
if (!p.value || !a.value) return null;
|
|
14088
14095
|
let e = d.value.find((e) => e.key === p.value);
|
|
14089
14096
|
if (!e) return null;
|
|
14090
|
-
let t =
|
|
14097
|
+
let t = Kp(e.value, a.value);
|
|
14091
14098
|
if (t == null) return null;
|
|
14092
14099
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
14093
14100
|
if (!r) return null;
|
|
14094
|
-
let c =
|
|
14101
|
+
let c = Jp(t, qp(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
14095
14102
|
return i.value ? {
|
|
14096
14103
|
label: e.label,
|
|
14097
14104
|
value: l,
|
|
@@ -14118,10 +14125,10 @@ function Zp(e) {
|
|
|
14118
14125
|
}
|
|
14119
14126
|
//#endregion
|
|
14120
14127
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
14121
|
-
var
|
|
14128
|
+
var $p = { style: {
|
|
14122
14129
|
height: "100%",
|
|
14123
14130
|
width: "100%"
|
|
14124
|
-
} },
|
|
14131
|
+
} }, em = {
|
|
14125
14132
|
key: 0,
|
|
14126
14133
|
class: "pv-flex",
|
|
14127
14134
|
style: {
|
|
@@ -14129,19 +14136,19 @@ var Qp = { style: {
|
|
|
14129
14136
|
flex: "0 1 auto"
|
|
14130
14137
|
},
|
|
14131
14138
|
"data-testid": "pv-data-table-with-chart-filter-panel-actions"
|
|
14132
|
-
},
|
|
14139
|
+
}, tm = {
|
|
14133
14140
|
key: 0,
|
|
14134
14141
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
14135
|
-
},
|
|
14142
|
+
}, nm = { class: "pv-flex" }, rm = {
|
|
14136
14143
|
class: "pv-flex",
|
|
14137
14144
|
style: { "align-items": "stretch" }
|
|
14138
|
-
},
|
|
14145
|
+
}, im = { class: "pv-flex pv-space-between" }, am = { class: "pv-chart-tooltip-label" }, om = { class: "pv-chart-tooltip-value" }, sm = {
|
|
14139
14146
|
key: 2,
|
|
14140
14147
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
14141
|
-
},
|
|
14148
|
+
}, cm = { key: 0 }, lm = {
|
|
14142
14149
|
key: 1,
|
|
14143
14150
|
class: "pv-text-body-xs"
|
|
14144
|
-
},
|
|
14151
|
+
}, um = /* @__PURE__ */ d({
|
|
14145
14152
|
__name: "PvDataTableWithChart",
|
|
14146
14153
|
props: {
|
|
14147
14154
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -14393,11 +14400,11 @@ var Qp = { style: {
|
|
|
14393
14400
|
});
|
|
14394
14401
|
}), re = r(() => l.enableCombinedChartConfigPanel && l.enableNestedChartConfigPanel ? V.value.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0) : V.value.length), H = r(() => {
|
|
14395
14402
|
let e = m.value?.availableAggFuncColumns || [], t = new Set(I.value);
|
|
14396
|
-
return e.filter((e) =>
|
|
14403
|
+
return e.filter((e) => js(e)).map((e) => {
|
|
14397
14404
|
let n = B(e), r = e.field || "";
|
|
14398
14405
|
return {
|
|
14399
14406
|
activeAggFunc: n,
|
|
14400
|
-
aggFuncOptions: ne(e, (e) =>
|
|
14407
|
+
aggFuncOptions: ne(e, (e) => Ms(r, e, t)),
|
|
14401
14408
|
columnField: r,
|
|
14402
14409
|
dataType: e.context?.dataType,
|
|
14403
14410
|
description: e.context?.chartSeriesDescription,
|
|
@@ -14405,7 +14412,7 @@ var Qp = { style: {
|
|
|
14405
14412
|
label: z(e),
|
|
14406
14413
|
secondaryAxisMax: e.context?.secondaryAxisMax,
|
|
14407
14414
|
tooltipRenderer: e.context?.customTooltipRenderer,
|
|
14408
|
-
value:
|
|
14415
|
+
value: Ms(r, n, t)
|
|
14409
14416
|
};
|
|
14410
14417
|
});
|
|
14411
14418
|
}), ie = (e, t) => e.find((e) => e.value === t || e.aggFuncOptions?.some((e) => e.seriesValue === t)), ae = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
@@ -14419,16 +14426,16 @@ var Qp = { style: {
|
|
|
14419
14426
|
formatter: n.valueFormatter,
|
|
14420
14427
|
dataType: n.context?.dataType
|
|
14421
14428
|
};
|
|
14422
|
-
})), G = l.filterStore ||
|
|
14423
|
-
O(
|
|
14424
|
-
let K =
|
|
14429
|
+
})), G = l.filterStore || Wd();
|
|
14430
|
+
O(Zl, G);
|
|
14431
|
+
let K = Hu({
|
|
14425
14432
|
focusType: l.initialFocusData?.focusType,
|
|
14426
14433
|
focuses: l.initialFocusData?.focuses || [],
|
|
14427
14434
|
focusRequired: l.focusRequired
|
|
14428
14435
|
}, l.allFieldsAreFocusable);
|
|
14429
|
-
O(
|
|
14436
|
+
O(Ql, K);
|
|
14430
14437
|
let { setFilterSelectedValues: oe } = G, se = k(!1);
|
|
14431
|
-
O(
|
|
14438
|
+
O(cu, se);
|
|
14432
14439
|
let ce = k(l.isTableGrouped), le = (e) => {
|
|
14433
14440
|
d("table-overlay-change", e);
|
|
14434
14441
|
}, q = r(() => Jt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && G.filterModelEmpty.value)), ue = r(() => K?.computedFocusType.value || null), J = r(() => K?.computedFocuses.value || []), de = (e) => {
|
|
@@ -14500,12 +14507,12 @@ var Qp = { style: {
|
|
|
14500
14507
|
return (r) => {
|
|
14501
14508
|
if (r.data = Ne.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
14502
14509
|
let i = "", a = xe(e);
|
|
14503
|
-
if (l.truncateLabelValues && n && a &&
|
|
14510
|
+
if (l.truncateLabelValues && n && a && Cs(a) && !isNaN(Number(r.value))) {
|
|
14504
14511
|
if (rt.value) {
|
|
14505
14512
|
let e = r.datum?.[L.value], t = Pe.value?.find((t) => t[L.value] === e)?.[`${Fe.value}_sort_total`] || Infinity;
|
|
14506
14513
|
if (r.value / t < .05) return "";
|
|
14507
14514
|
}
|
|
14508
|
-
let { newValue: e, newSuffix: t } =
|
|
14515
|
+
let { newValue: e, newSuffix: t } = vs(r.value, ms.Percent === $(a).dataType, Rt.value);
|
|
14509
14516
|
r.value = e, i = t;
|
|
14510
14517
|
}
|
|
14511
14518
|
let o = r.value;
|
|
@@ -14516,17 +14523,17 @@ var Qp = { style: {
|
|
|
14516
14523
|
if (!e) return;
|
|
14517
14524
|
let n = xe(e);
|
|
14518
14525
|
return n && typeof n.valueFormatter == "function" ? ye(e, n.valueFormatter, t) : ye(e, null, t);
|
|
14519
|
-
}, xe = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), Se = r(() =>
|
|
14526
|
+
}, xe = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), Se = r(() => Fs(xe(L.value))), Ce = (e, t) => {
|
|
14520
14527
|
let n = xe(L.value);
|
|
14521
14528
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
14522
14529
|
}, we = (e) => {
|
|
14523
14530
|
let t = xe(L.value);
|
|
14524
14531
|
return t && typeof t.valueFormatter == "function" ? t.valueFormatter({ value: e }) : `${e}`;
|
|
14525
14532
|
}, Te = r(() => [
|
|
14526
|
-
...I.value.length > 1 ?
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
].filter((e) => l.enabledChartTypes?.includes(e.id))), Ee = k(void 0), De = k(void 0), Oe = k(void 0), ke = !1, Ae = r(() =>
|
|
14533
|
+
...I.value.length > 1 ? is : rs,
|
|
14534
|
+
as,
|
|
14535
|
+
os
|
|
14536
|
+
].filter((e) => l.enabledChartTypes?.includes(e.id))), Ee = k(void 0), De = k(void 0), Oe = k(void 0), ke = !1, Ae = r(() => Mp(Ee.value?.id || "")), Z = r(() => Math.min(Ae.value.rowGroupLimit, l.rowGroupLimit)), je = r(() => {
|
|
14530
14537
|
let e = Ae.value.xAxis.filterColumns;
|
|
14531
14538
|
return e ? e(F.value) : F.value;
|
|
14532
14539
|
}), Me = k([{
|
|
@@ -14545,20 +14552,20 @@ var Qp = { style: {
|
|
|
14545
14552
|
Le.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
14546
14553
|
}, { immediate: !0 });
|
|
14547
14554
|
let Ve = r(() => l.crosslineOverlayGroups ?? []), He = k(null), Ue = k(Me.value.find((e) => e.id === l.initialSort || "")), We = k("");
|
|
14548
|
-
O(
|
|
14555
|
+
O(eu, p), O(fu, We), O(iu, je), O(pu, I), O(mu, Te), O(hu, Me), O(gu, Ee), O(_u, Ue), O(vu, Fe), O(yu, V), O(bu, Ie), O(Su, Le), O(xu, H), O(Cu, Re), O(Eu, Ve), U(Se, (e) => {
|
|
14549
14556
|
e && Ue.value && (Ue.value = void 0);
|
|
14550
14557
|
}, { immediate: !0 });
|
|
14551
14558
|
let Ge = (e) => {
|
|
14552
14559
|
Ee.value = Te.value.find((t) => t.id === e) ?? Te.value[0];
|
|
14553
14560
|
}, Ke = (e) => {
|
|
14554
14561
|
let t = I.value.length, n = (e) => {
|
|
14555
|
-
let n =
|
|
14562
|
+
let n = Mp(e.id);
|
|
14556
14563
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14557
14564
|
}, r = Te.value.find((t) => t.id === e);
|
|
14558
14565
|
return r && n(r) ? r.id : Te.value.find(n)?.id ?? Te.value[0]?.id;
|
|
14559
14566
|
};
|
|
14560
14567
|
U(() => Te.value, () => {
|
|
14561
|
-
let e = it.value, t = e !== ke, n =
|
|
14568
|
+
let e = it.value, t = e !== ke, n = Mp(Ee.value?.id || ""), r = Te.value.some((e) => e.id === Ee.value?.id), i = I.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14562
14569
|
if (ke = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
14563
14570
|
let a = Ke((e ? Oe?.value : De?.value) ?? l.chartType);
|
|
14564
14571
|
a && Ge(a);
|
|
@@ -14568,7 +14575,7 @@ var Qp = { style: {
|
|
|
14568
14575
|
if (l.chartFilter && p.value) {
|
|
14569
14576
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
14570
14577
|
n && n.length === 0 && (n = null), oe(t, n || []);
|
|
14571
|
-
let r =
|
|
14578
|
+
let r = cd({
|
|
14572
14579
|
filterType: "set",
|
|
14573
14580
|
values: n
|
|
14574
14581
|
}, xe(t));
|
|
@@ -14589,7 +14596,7 @@ var Qp = { style: {
|
|
|
14589
14596
|
type: t,
|
|
14590
14597
|
id: `${st}-${s}`,
|
|
14591
14598
|
xKey: L.value,
|
|
14592
|
-
yKey:
|
|
14599
|
+
yKey: Rs(Fe.value, o),
|
|
14593
14600
|
yName: typeof i == "function" ? i({ value: o }) : o,
|
|
14594
14601
|
...t === "line" ? {} : { stacked: e },
|
|
14595
14602
|
label: {
|
|
@@ -14651,7 +14658,7 @@ var Qp = { style: {
|
|
|
14651
14658
|
}))), ze.value.length > 0) {
|
|
14652
14659
|
let t = xe(L.value)?.context?.metadataDisplayFields?.[0] || L.value, r = et.value;
|
|
14653
14660
|
for (let i of ze.value) {
|
|
14654
|
-
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${
|
|
14661
|
+
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${ps}` : i, c = Gp(L.value, t, s, o, $e.value), l = {
|
|
14655
14662
|
type: r,
|
|
14656
14663
|
id: Re.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
14657
14664
|
data: jt.value,
|
|
@@ -14692,12 +14699,12 @@ var Qp = { style: {
|
|
|
14692
14699
|
label: { enabled: !1 },
|
|
14693
14700
|
tooltip: { enabled: !1 },
|
|
14694
14701
|
visible: !1
|
|
14695
|
-
}, { categoryPadOffset: i } =
|
|
14702
|
+
}, { categoryPadOffset: i } = qp(e, !0), a = {
|
|
14696
14703
|
type: "scatter",
|
|
14697
14704
|
xKey: "__dummy_x__",
|
|
14698
14705
|
yKey: "__dummy_y__",
|
|
14699
14706
|
data: yt.value.flatMap((e) => {
|
|
14700
|
-
let t =
|
|
14707
|
+
let t = Kp(e.value, gt.value || []);
|
|
14701
14708
|
if (t === null) return [];
|
|
14702
14709
|
let n = t + i, r = Number.isFinite(Rt.value) ? Rt.value : 0, a = be(I.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
14703
14710
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
@@ -14759,8 +14766,8 @@ var Qp = { style: {
|
|
|
14759
14766
|
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
14760
14767
|
});
|
|
14761
14768
|
}), U(Ee, (e, t) => {
|
|
14762
|
-
e?.id &&
|
|
14763
|
-
let n =
|
|
14769
|
+
e?.id && Mp(e.id).storeBeforeChange && (it.value ? Oe.value = e.id : De.value = e.id);
|
|
14770
|
+
let n = Mp(e?.id || ""), r = Mp(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? I.value : Tp(I.value, F.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
14764
14771
|
ot(i, I.value) || (I.value = i), n.yAxis.defaultValue ? Fe.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
14765
14772
|
l.yKey ? Fe.value = l.yKey : V.value.length > 0 && (Fe.value = V.value[0].value);
|
|
14766
14773
|
}), d("chart-state-changed", {
|
|
@@ -14812,7 +14819,7 @@ var Qp = { style: {
|
|
|
14812
14819
|
return;
|
|
14813
14820
|
}
|
|
14814
14821
|
if (t) {
|
|
14815
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
14822
|
+
let { stackedData: n, uniqueFieldValues: r } = Bs(e, L.value, t, pt.value, ae.value);
|
|
14816
14823
|
Pe.value = n, He.value = {
|
|
14817
14824
|
fieldName: t,
|
|
14818
14825
|
fieldValues: r
|
|
@@ -14825,13 +14832,13 @@ var Qp = { style: {
|
|
|
14825
14832
|
if (l.serverSideChartHandler) {
|
|
14826
14833
|
let e = G.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
14827
14834
|
if (e === null && l.initialGridState) {
|
|
14828
|
-
let t =
|
|
14835
|
+
let t = dd(l.initialGridState, n, l.enableAdvancedFilter);
|
|
14829
14836
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
14830
14837
|
}
|
|
14831
14838
|
e ||= {};
|
|
14832
|
-
let r =
|
|
14839
|
+
let r = ks(As(I.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === Fe.value || i.has(e.getColId())), o = {
|
|
14833
14840
|
rowGroupCols: r || [],
|
|
14834
|
-
valueCols:
|
|
14841
|
+
valueCols: As(a || []),
|
|
14835
14842
|
filterModel: e
|
|
14836
14843
|
};
|
|
14837
14844
|
M.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
@@ -14873,33 +14880,33 @@ var Qp = { style: {
|
|
|
14873
14880
|
n.add(o);
|
|
14874
14881
|
let s = t.aggData;
|
|
14875
14882
|
if (o && s) {
|
|
14876
|
-
let n = String(o), s =
|
|
14883
|
+
let n = String(o), s = zs(n);
|
|
14877
14884
|
r[s] = `${e.key}-${n}`;
|
|
14878
14885
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
14879
|
-
r[
|
|
14886
|
+
r[Rs(a.value, n)] = c, i += c;
|
|
14880
14887
|
}
|
|
14881
|
-
}), r[`${a.value}${
|
|
14888
|
+
}), r[`${a.value}${ps}`] = i;
|
|
14882
14889
|
return {
|
|
14883
14890
|
rowData: r,
|
|
14884
14891
|
fieldValues: n
|
|
14885
14892
|
};
|
|
14886
14893
|
}, gt = r(() => {
|
|
14887
14894
|
let e = Q.value ? Pe.value : Ne.value, t = null;
|
|
14888
|
-
if (Ue.value && (t = Q.value ? `${Fe.value}${
|
|
14895
|
+
if (Ue.value && (t = Q.value ? `${Fe.value}${ps}` : Fe.value), Se.value) e = Ls(e, L.value);
|
|
14889
14896
|
else if (t && e && Ue.value) {
|
|
14890
14897
|
let n = Ue.value?.id.includes("desc") ? -1 : 1;
|
|
14891
14898
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
14892
14899
|
}
|
|
14893
|
-
if (Ae.value.agChartType === "bar" && (e =
|
|
14900
|
+
if (Ae.value.agChartType === "bar" && (e = Vs(e, L.value)), l.enableFocusView && e && J.value.length > 0 && ue.value) {
|
|
14894
14901
|
let t = e?.filter((e) => J.value.includes(e[L.value])), n = e?.filter((e) => !J.value.includes(e[L.value]));
|
|
14895
14902
|
e = [
|
|
14896
14903
|
...t || [],
|
|
14897
|
-
{ [L.value]:
|
|
14904
|
+
{ [L.value]: cs },
|
|
14898
14905
|
...n || []
|
|
14899
14906
|
];
|
|
14900
14907
|
}
|
|
14901
14908
|
return e;
|
|
14902
|
-
}), { activeCrosslineOverlayGroups: vt, resolvedCrosslineOverlays: yt, chipSections: bt, hoveredBenchmarkKey: xt, hoveredCrosslineTooltip: St } =
|
|
14909
|
+
}), { activeCrosslineOverlayGroups: vt, resolvedCrosslineOverlays: yt, chipSections: bt, hoveredBenchmarkKey: xt, hoveredCrosslineTooltip: St } = Qp({
|
|
14903
14910
|
crosslineOverlayGroups: Ve,
|
|
14904
14911
|
isHistogramWithBuckets: at,
|
|
14905
14912
|
isHorizontalBarChart: $e,
|
|
@@ -14911,14 +14918,14 @@ var Qp = { style: {
|
|
|
14911
14918
|
},
|
|
14912
14919
|
initialActiveOverlayGroupIds: r(() => l.initialActiveOverlayGroupIds)
|
|
14913
14920
|
});
|
|
14914
|
-
O(
|
|
14915
|
-
let Ct = new Set([
|
|
14921
|
+
O(Tu, vt), U(vt, (e) => d("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
14922
|
+
let Ct = new Set([ds, fs]), wt = k(void 0), Tt = r(() => Ee.value?.id === "map"), Et = r(() => Fe.value || V.value[0]?.value || "value"), Dt = r(() => "600px"), Ot = r(() => {
|
|
14916
14923
|
let e = L.value, t = Et.value;
|
|
14917
14924
|
return !e || !t ? [] : (gt.value ?? []).filter((t) => {
|
|
14918
14925
|
let n = String(t?.[e] ?? "");
|
|
14919
14926
|
return !Ct.has(n) && n !== "--SEPARATOR--";
|
|
14920
14927
|
}).map((n) => ({
|
|
14921
|
-
[
|
|
14928
|
+
[ss]: String(n[e] ?? ""),
|
|
14922
14929
|
[t]: Number(n[t] ?? 0)
|
|
14923
14930
|
}));
|
|
14924
14931
|
}), kt = r(() => {
|
|
@@ -14956,10 +14963,10 @@ var Qp = { style: {
|
|
|
14956
14963
|
return e.map((e) => {
|
|
14957
14964
|
let r = { ...e };
|
|
14958
14965
|
for (let i of t) {
|
|
14959
|
-
let t = `${i}${
|
|
14966
|
+
let t = `${i}${ps}`, a = e[t];
|
|
14960
14967
|
if (typeof a != "number") continue;
|
|
14961
14968
|
let o = 0;
|
|
14962
|
-
for (let t of n) typeof e[
|
|
14969
|
+
for (let t of n) typeof e[Rs(i, String(t))] == "number" && o++;
|
|
14963
14970
|
r[t] = o > 0 ? a / o : null;
|
|
14964
14971
|
}
|
|
14965
14972
|
return r;
|
|
@@ -14986,12 +14993,12 @@ var Qp = { style: {
|
|
|
14986
14993
|
isHorizontalScrollingChart: $e.value,
|
|
14987
14994
|
minContentWidth: 0,
|
|
14988
14995
|
reserveWidth: bt.value.length > 0 ? 255 : 0
|
|
14989
|
-
})), Lt = r(() => Q.value ? Pe.value : gt.value), Rt = r(() =>
|
|
14996
|
+
})), Lt = r(() => Q.value ? Pe.value : gt.value), Rt = r(() => Hs(Lt.value, Fe.value, Q.value)), zt = r(() => Xe.value.reduce((e, t) => Math.max(e, Hs(Lt.value, t, Q.value)), -Infinity)), Bt = r(() => Ze.value.reduce((e, t) => Math.max(e, Hs(Lt.value, t, Q.value)), -Infinity)), Vt = r(() => Us(Lt.value, Fe.value, Q.value)), Ht = r(() => Xe.value.reduce((e, t) => Math.min(e, Us(Lt.value, t, Q.value)), Infinity)), Ut = r(() => He.value?.fieldValues?.length || 0), Wt = r(() => {
|
|
14990
14997
|
let e = .25 * Math.exp(-.12 * Mt.value);
|
|
14991
14998
|
return Math.min(Math.max(e, .05), .75);
|
|
14992
14999
|
}), Gt = r(() => Ut.value > 5 ? .5 : 1), Kt = r(() => Ut.value > 5 ? .25 : .1), qt = r(() => !gt.value || gt.value?.length === 0 ? !0 : Rt.value === -Infinity || Q.value === !0 && Rt.value === 0), Jt = r(() => !!(l.enableFocusView && ue.value && J.value.length === 0 && l.percentOfFocusViewYKey && Fe.value && Fe.value === l.percentOfFocusViewYKey)), Yt = r(() => {
|
|
14993
15000
|
let e = xe(ue.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
14994
|
-
return
|
|
15001
|
+
return Ps({
|
|
14995
15002
|
currentRowGroupColumnsLength: I.value.length,
|
|
14996
15003
|
shouldShowFocusOverlayText: Jt.value || l.focusRequired && J.value.length === 0,
|
|
14997
15004
|
chartDataEmpty: qt.value,
|
|
@@ -15004,23 +15011,23 @@ var Qp = { style: {
|
|
|
15004
15011
|
let e = {};
|
|
15005
15012
|
e.overlays = { noData: { text: "" } };
|
|
15006
15013
|
let t = at.value ? [
|
|
15007
|
-
{ [L.value]:
|
|
15014
|
+
{ [L.value]: ls },
|
|
15008
15015
|
...gt.value ?? [],
|
|
15009
|
-
{ [L.value]:
|
|
15016
|
+
{ [L.value]: us }
|
|
15010
15017
|
] : gt.value;
|
|
15011
15018
|
e.data = Xt.value ? [] : t, e.legend = {
|
|
15012
15019
|
toggleSeries: !1,
|
|
15013
15020
|
preventHidingAll: !0,
|
|
15014
15021
|
enabled: I.value.length > 1 || Re.value && ze.value.length > 0
|
|
15015
15022
|
};
|
|
15016
|
-
let n = (e) => rt.value ? [`${e}${
|
|
15023
|
+
let n = (e) => rt.value ? [`${e}${ps}`] : Q.value ? He.value?.fieldValues.map((t) => Rs(e, String(t))) || [] : [e], r = [...Q.value ? He.value?.fieldValues.map((e) => Rs(Fe.value, e)) || [] : Fe.value ? [Fe.value] : [], ...Ze.value.flatMap(n)], i = Xe.value.flatMap(n), a = Ae.value.xAxis.hideLabel === !0 && !at.value, o = [];
|
|
15017
15024
|
if (o.push({
|
|
15018
15025
|
type: "category",
|
|
15019
15026
|
keys: [L.value],
|
|
15020
15027
|
position: $e.value ? "left" : "bottom",
|
|
15021
15028
|
crossLines: [{
|
|
15022
15029
|
type: "line",
|
|
15023
|
-
value:
|
|
15030
|
+
value: cs,
|
|
15024
15031
|
stroke: "#666666",
|
|
15025
15032
|
strokeWidth: 1,
|
|
15026
15033
|
lineDash: [4, 4],
|
|
@@ -15033,7 +15040,7 @@ var Qp = { style: {
|
|
|
15033
15040
|
truncate: !1,
|
|
15034
15041
|
wrapping: "never",
|
|
15035
15042
|
...at.value ? { spacing: 2 } : {},
|
|
15036
|
-
formatter:
|
|
15043
|
+
formatter: Ws({
|
|
15037
15044
|
hideLabel: a,
|
|
15038
15045
|
showDistributionRangeLabels: !!at.value,
|
|
15039
15046
|
chartData: gt.value,
|
|
@@ -15048,7 +15055,7 @@ var Qp = { style: {
|
|
|
15048
15055
|
paddingOuter: at.value ? 0 : Gt.value,
|
|
15049
15056
|
groupPaddingInner: Kt.value
|
|
15050
15057
|
}), at.value && yt.value.length > 0) {
|
|
15051
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
15058
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = qp(gt.value?.length || 1, !0);
|
|
15052
15059
|
o.push({
|
|
15053
15060
|
type: "number",
|
|
15054
15061
|
keys: ["__dummy_x__"],
|
|
@@ -15063,7 +15070,7 @@ var Qp = { style: {
|
|
|
15063
15070
|
gridLine: { enabled: !1 },
|
|
15064
15071
|
crossLines: yt.value.map((t) => {
|
|
15065
15072
|
if (!gt.value) return null;
|
|
15066
|
-
let n =
|
|
15073
|
+
let n = Kp(t.value, gt.value);
|
|
15067
15074
|
if (n == null) return null;
|
|
15068
15075
|
let r = xt.value != null && t.key === xt.value, i = xt.value != null && !r;
|
|
15069
15076
|
return {
|
|
@@ -15077,7 +15084,7 @@ var Qp = { style: {
|
|
|
15077
15084
|
}).filter((e) => e !== null)
|
|
15078
15085
|
});
|
|
15079
15086
|
}
|
|
15080
|
-
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(Vt.value) && Vt.value < 0, f = s && Number.isFinite(Ht.value) && Ht.value < 0, p = d || f, m = s ?
|
|
15087
|
+
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(Vt.value) && Vt.value < 0, f = s && Number.isFinite(Ht.value) && Ht.value < 0, p = d || f, m = s ? Ns(Math.max(Rt.value, Bt.value), 5) : 0, h = s ? u ?? Ns(zt.value, 5) : 0, g = s && !p && m > 0 && h > 0;
|
|
15081
15088
|
if (o.push({
|
|
15082
15089
|
type: "number",
|
|
15083
15090
|
keys: r,
|
|
@@ -15157,16 +15164,16 @@ var Qp = { style: {
|
|
|
15157
15164
|
}
|
|
15158
15165
|
}), T(async () => {
|
|
15159
15166
|
await v(), w.value = l.filterPanelAboveChart;
|
|
15160
|
-
}), (n, r) => (D(), o("div",
|
|
15167
|
+
}), (n, r) => (D(), o("div", $p, [
|
|
15161
15168
|
s("div", {
|
|
15162
15169
|
class: y(["pv-stack-16", { "pv-flex": A.value }]),
|
|
15163
15170
|
style: x(A.value ? "--flex-wrap: wrap-reverse" : void 0)
|
|
15164
15171
|
}, [s("div", {
|
|
15165
15172
|
id: C,
|
|
15166
15173
|
style: x(A.value ? "flex: 1 1 auto; min-width: 0" : void 0)
|
|
15167
|
-
}, null, 4), A.value ? (D(), o("div",
|
|
15174
|
+
}, null, 4), A.value ? (D(), o("div", em, [j(n.$slots, "filter-panel-actions")])) : a("", !0)], 6),
|
|
15168
15175
|
j(n.$slots, "above-chart"),
|
|
15169
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
15176
|
+
e.hideChart ? a("", !0) : (D(), o("div", tm, [
|
|
15170
15177
|
u(Kn, {
|
|
15171
15178
|
rightIcon: "chevrons-down-up",
|
|
15172
15179
|
label: "Collapse",
|
|
@@ -15178,7 +15185,7 @@ var Qp = { style: {
|
|
|
15178
15185
|
onClick: r[0] ||= (e) => en(!b.value),
|
|
15179
15186
|
class: y(e.hideChart || b.value ? "pv-hide" : "")
|
|
15180
15187
|
}, null, 8, ["class"]),
|
|
15181
|
-
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
15188
|
+
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div", nm, [u(Hn, {
|
|
15182
15189
|
name: "chart-line",
|
|
15183
15190
|
size: 20,
|
|
15184
15191
|
class: "pv-text-subdued"
|
|
@@ -15191,7 +15198,7 @@ var Qp = { style: {
|
|
|
15191
15198
|
variant: "secondary",
|
|
15192
15199
|
onClick: r[1] ||= (e) => en(!b.value)
|
|
15193
15200
|
})], 2),
|
|
15194
|
-
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(
|
|
15201
|
+
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(Wp, {
|
|
15195
15202
|
enablePanel: gt.value != null && gt.value.length > 0,
|
|
15196
15203
|
chartFilter: e.chartFilter,
|
|
15197
15204
|
rowGroupLimit: Z.value,
|
|
@@ -15210,14 +15217,14 @@ var Qp = { style: {
|
|
|
15210
15217
|
"chart-config-options",
|
|
15211
15218
|
"read-only",
|
|
15212
15219
|
"percent-of-focus-view-y-key"
|
|
15213
|
-
]), s("div",
|
|
15220
|
+
]), s("div", rm, [R(bt).length > 0 ? (D(), i(Sp, {
|
|
15214
15221
|
key: 0,
|
|
15215
15222
|
sections: R(bt),
|
|
15216
15223
|
onChipHover: r[2] ||= (e) => xt.value = e
|
|
15217
15224
|
}, null, 8, ["sections"])) : a("", !0), s("div", {
|
|
15218
15225
|
class: "pv-relative pv-margin-auto pv-flex-item",
|
|
15219
15226
|
style: x(Tt.value ? { height: Dt.value } : void 0)
|
|
15220
|
-
}, [Tt.value ? (D(), i(
|
|
15227
|
+
}, [Tt.value ? (D(), i(Jo, {
|
|
15221
15228
|
key: 0,
|
|
15222
15229
|
ref_key: "pvMapChartRef",
|
|
15223
15230
|
ref: g,
|
|
@@ -15267,9 +15274,9 @@ var Qp = { style: {
|
|
|
15267
15274
|
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(St).arrowClass]),
|
|
15268
15275
|
"data-variant": "white",
|
|
15269
15276
|
style: x(R(St).style)
|
|
15270
|
-
}, [s("div",
|
|
15277
|
+
}, [s("div", im, [s("div", am, P(R(St).label), 1), s("div", om, P(R(St).value), 1)])], 6)) : a("", !0)], 4)], 6)), Tt.value ? a("", !0) : (D(), o("div", sm, [q.value ? (D(), o("div", cm, [(D(), i(N(e.emptyChartFilterRenderer)))])) : $t.value ? (D(), o("p", lm, P(Yt.value), 1)) : a("", !0)]))], 4)])], 2)
|
|
15271
15278
|
])),
|
|
15272
|
-
u(
|
|
15279
|
+
u(qf, _({
|
|
15273
15280
|
ref_key: "pvDataTableRef",
|
|
15274
15281
|
ref: m
|
|
15275
15282
|
}, n.$props, {
|
|
@@ -15288,7 +15295,7 @@ var Qp = { style: {
|
|
|
15288
15295
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
15289
15296
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
15290
15297
|
}), {
|
|
15291
|
-
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
15298
|
+
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(hp, {
|
|
15292
15299
|
key: 0,
|
|
15293
15300
|
groupedModeEnabled: ce.value,
|
|
15294
15301
|
tableConfigOptions: l.tableConfigOptions,
|
|
@@ -15311,7 +15318,7 @@ var Qp = { style: {
|
|
|
15311
15318
|
])
|
|
15312
15319
|
]));
|
|
15313
15320
|
}
|
|
15314
|
-
}),
|
|
15321
|
+
}), dm = "Unable to load data", fm = (e, t = {}) => {
|
|
15315
15322
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
15316
15323
|
let t = ++o;
|
|
15317
15324
|
i.value = !0;
|
|
@@ -15341,6 +15348,6 @@ var Qp = { style: {
|
|
|
15341
15348
|
};
|
|
15342
15349
|
};
|
|
15343
15350
|
//#endregion
|
|
15344
|
-
export {
|
|
15351
|
+
export { dm as DEFAULT_DATA_WIDGET_ERROR_TEXT, wt as PitViperAGChartsMonochromeTheme, Ct as PitViperAGChartsMonochromeThemeName, Et as PitViperAGChartsMulticolorTheme, Tt as PitViperAGChartsMulticolorThemeName, nn as PvChart, wn as PvChartWidget, qf as PvDataTable, um as PvDataTableWithChart, pc as PvDataWidget, Jo as PvMapChart, ql as RumContextKey, _t as SCATTER_MARKER_STROKE, Yl as addRumAction, ld as constructAdvancedFilterCondition, ud as convertFilterModelToAdvanced, Hd as createPvDataTableFilterStore, Xl as deferRumTask, Ld as excludeValueFromSetFilter, gd as filterModelContainsColId, Od as filterModelsEqual, Nd as getSelectedValues, jd as getSelectedValuesFromAdvancedFilterModel, Sd as getSelectedValuesFromFilterModel, Md as getSelectedValuesFromFilterModelByColId, Cd as isAdvancedFilterModel, Td as isFilterModelEmpty, kd as mergeAdvancedFilterCondition, _d as mergeFilterModels, Ud as providePvDataTableFilterStore, Pd as removeColumnFilter, Ad as removeColumnFromAdvancedFilter, Id as updateMultiOrSetFilter, Fd as updateSetFilter, Gd as usePvDataTableFilterStore, fm as usePvDataWidgetData, Jl as useRumContext };
|
|
15345
15352
|
|
|
15346
15353
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|