@turquoisehealth/pit-viper 2.231.0 → 2.232.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 +29 -1
- package/_site/assets/css/pit-viper-consumer.css +29 -1
- package/_site/assets/css/pit-viper-v2-scoped.css +25 -1
- package/_site/assets/css/pit-viper-v2.css +29 -1
- package/_site/assets/css/pit-viper.css +29 -1
- 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-action-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-panel-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-hover-action-menu-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-v2-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-range-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-split-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/ai/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/ai/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/ai/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/ai/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/base/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/base/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/base/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/base/pv-components-base.mjs +2390 -2283
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterModal/PvFilterModal.vue.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanel.vue.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/PvFilterPanelCategoryButtonRow.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/types.d.ts +33 -1
- package/pv-components/dist/vue/visualizations/components/base/PvFilterPanel/usePvFilterPanel.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvRange/PvRange.vue.d.ts +3 -1
- package/pv-components/dist/vue/visualizations/components/base/PvRange/types.d.ts +9 -1
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +18 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/types.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useFilterStore.d.ts +8 -0
- package/pv-components/dist/vue/visualizations/components/tables/symbols.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +991 -925
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-action-button/pv-action-button.js +395 -395
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +2174 -2007
- package/pv-components/dist/web/components/pv-filter-panel/pv-filter-panel.js +2166 -1946
- package/pv-components/dist/web/components/pv-hover-action-menu/pv-hover-action-menu.js +633 -633
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +19 -19
- package/pv-components/dist/web/components/pv-modal/pv-modal.js +2 -2
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +27 -19
- package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +19 -19
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +573 -573
- package/pv-components/dist/web/components/pv-range/pv-range.js +720 -675
- package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +208 -208
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +19 -19
- package/pv-components/dist/web/components/pv-sidebar-v2/pv-sidebar-v2.js +267 -267
- package/pv-components/dist/web/components/pv-split-button/pv-split-button.js +19 -19
- package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +307 -307
- package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +19 -19
- package/pv-components/dist/web/pv-components.iife.js +14 -14
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-869e5381]{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-869e5381]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-869e5381]{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-869e5381]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-869e5381]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-869e5381]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-869e5381]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-869e5381]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-869e5381]{color:#16696d;animation:1.5s ease-in-out infinite pulse-869e5381}@keyframes pulse-869e5381{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-floating-native[data-v-0469d441]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-0469d441]>.pv-popover,.pv-floating-native>slot[name=content][data-v-0469d441]::slotted(.pv-popover){position:static!important}.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-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-246a9400]{font-size:14px}.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-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid 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-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-b0c35fb9]:hover{color:#16696d}.suggested-title-label[data-v-b0c35fb9]:hover{color:#0d5256;text-decoration:underline}.pv-details-no-carat>summary[data-v-a83ae9ab]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-90862f78]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-90862f78]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-90862f78],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-90862f78]{opacity:1}.pv-table-row-number[data-v-686928ce]{text-align:center;color:#89989b;padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;pointer-events:none;background:#fff;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .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:#ccc;border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:#f7f8f8}.pv-data-table .ag-menu-option-shortcut{color:#89989b}.pv-data-table .ag-menu-option:active{background-color:#e8f2f4}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(#fff 5px,#f7f8f8 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(#fff 5px,#f7f8f8 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid #e0e0e0!important;border-left:1px solid #e0e0e0!important;border-right:1px solid #e0e0e0!important}.pv-data-table-grouped-card .ag-row-loading{box-sizing:border-box;border-top:1px solid #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:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:#f7f8f8!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-text-tertiary[data-v-0b94d7eb]{color:#89989b}.pv-button-placeholder[data-v-0b94d7eb]{width:24px;height:24px}.pv-sort-option[data-v-0b94d7eb]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-0b94d7eb]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-0b94d7eb]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-0b94d7eb]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-0b94d7eb]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-0b94d7eb]{display:flex}.sort-divider[data-v-0b94d7eb]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-0b94d7eb]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-144e816a] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-144e816a] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-144e816a] .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-84aa8907]{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-84aa8907]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-84aa8907]{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-84aa8907]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-84aa8907]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-84aa8907]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-84aa8907]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-84aa8907]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-84aa8907]{color:#16696d;animation:1.5s ease-in-out infinite pulse-84aa8907}@keyframes pulse-84aa8907{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-floating-native[data-v-2b80f35f]{width:max-content;color:inherit;position-visibility:anchors-visible;background:0 0;border:0;margin:0;padding:0;position:fixed;inset:auto;overflow:visible}.pv-floating-native[data-v-2b80f35f]>.pv-popover,.pv-floating-native>slot[name=content][data-v-2b80f35f]::slotted(.pv-popover){position:static!important}.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-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-246a9400]{font-size:14px}.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-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid 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-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]: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-a83ae9ab]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-90862f78]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-90862f78]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-90862f78],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-90862f78]{opacity:1}.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{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid 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-text-tertiary[data-v-0b94d7eb]{color:#89989b}.pv-button-placeholder[data-v-0b94d7eb]{width:24px;height:24px}.pv-sort-option[data-v-0b94d7eb]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-0b94d7eb]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-0b94d7eb]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-0b94d7eb]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-0b94d7eb]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-0b94d7eb]{display:flex}.sort-divider[data-v-0b94d7eb]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-0b94d7eb]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-1ef60ad1] .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 P, toDisplayString as F, toHandlers as I, toRaw as L, toRef as R, unref as z, useAttrs as B, useId as ee, useModel as V, useSlots as te, useTemplateRef as H, vModelCheckbox as ne, vModelText as re, vShow as ie, watch as U, withCtx as W, withDirectives as G, withKeys as ae, withModifiers as K } from "vue";
|
|
4
4
|
import { AgCharts as oe } from "ag-charts-vue3";
|
|
5
5
|
import { LicenseManager as se } from "ag-charts-enterprise";
|
|
6
|
-
import { onClickOutside as ce, onKeyStroke as
|
|
6
|
+
import { onClickOutside as ce, onKeyStroke as le, toRef as q, useDebounceFn as ue, useElementBounding as J, useElementHover as de, useElementSize as fe, useToggle as Y, watchDebounced as pe } from "@vueuse/core";
|
|
7
7
|
import { useSortable as X } from "@vueuse/integrations/useSortable.mjs";
|
|
8
8
|
import { AgGridVue as me } from "ag-grid-vue3";
|
|
9
9
|
import { CellStyleModule as he, CheckboxEditorModule as ge, ClientSideRowModelModule as _e, ColumnApiModule as ve, ColumnAutoSizeModule as ye, CsvExportModule as be, CustomEditorModule as xe, CustomFilterModule as Se, DateEditorModule as Ce, EventApiModule as we, GridStateModule as Te, LargeTextEditorModule as Ee, NumberEditorModule as De, PaginationModule as Oe, QuickFilterModule as ke, RowApiModule as Ae, RowStyleModule as Z, ScrollApiModule as je, SelectEditorModule as Me, TextEditorModule as Q, TextFilterModule as Ne, UndoRedoEditModule as Pe, themeQuartz as Fe } from "ag-grid-community";
|
|
@@ -18,10 +18,10 @@ import it from "dayjs/plugin/advancedFormat";
|
|
|
18
18
|
import { Skeleton as at } from "primevue";
|
|
19
19
|
import "vuedraggable";
|
|
20
20
|
import "es-toolkit/object";
|
|
21
|
+
import { isEqual as ot } from "es-toolkit";
|
|
21
22
|
import "es-toolkit/string";
|
|
22
23
|
import "@primevue/core";
|
|
23
24
|
import "@primeuix/themes/aura";
|
|
24
|
-
import { isEqual as ot } from "es-toolkit";
|
|
25
25
|
import st from "sortablejs";
|
|
26
26
|
//#region \0rolldown/runtime.js
|
|
27
27
|
var ct = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, ut = Object.getOwnPropertyNames, dt = Object.prototype.hasOwnProperty, ft = (e, t) => {
|
|
@@ -284,7 +284,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
284
284
|
e.type === "bar" && e.direction === "horizontal" && (t = !0);
|
|
285
285
|
}), t;
|
|
286
286
|
}), y = r(() => (O.value?.series || []).some((e) => e.type === "scatter")), b = (e) => {
|
|
287
|
-
let t = e.xKey || "", n = e.
|
|
287
|
+
let t = e.xKey || "", n = e.datum[t], r = e.yKey, i = e.datum[r], a = String(n) || "", o = (O.value?.axes || []).find((e) => e.type === "category");
|
|
288
288
|
if (o && o.label && o.label.formatter && (a = o.label.formatter({
|
|
289
289
|
value: n,
|
|
290
290
|
datum: e.datum,
|
|
@@ -384,7 +384,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
384
384
|
let n = e.__vccOpts || e;
|
|
385
385
|
for (let [e, r] of t) n[e] = r;
|
|
386
386
|
return n;
|
|
387
|
-
}, nn = /* @__PURE__ */ tn(en, [["__scopeId", "data-v-
|
|
387
|
+
}, nn = /* @__PURE__ */ tn(en, [["__scopeId", "data-v-84aa8907"]]), rn = 200, an = (e) => {
|
|
388
388
|
if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
|
|
389
389
|
}, on = (e) => {
|
|
390
390
|
let t = {}, n = an(e.height), r = an(e.maxHeight), i = an(e.maxWidth), a = an(e.width);
|
|
@@ -1853,7 +1853,7 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1853
1853
|
}, se = () => {
|
|
1854
1854
|
let e = S.value;
|
|
1855
1855
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1856
|
-
}, q = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? C.value || O.value : C.value ||
|
|
1856
|
+
}, le = r(() => !!c.value && (w.value || A.value)), q = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? C.value || O.value : C.value || O.value || le.value);
|
|
1857
1857
|
U([
|
|
1858
1858
|
C,
|
|
1859
1859
|
O,
|
|
@@ -1861,13 +1861,13 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1861
1861
|
], ([e, t, n]) => {
|
|
1862
1862
|
!e && !t && !n && (M.value = !1);
|
|
1863
1863
|
});
|
|
1864
|
-
let
|
|
1864
|
+
let fe = ({ target: e }) => {
|
|
1865
1865
|
O.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1866
|
-
},
|
|
1866
|
+
}, Y = ({ target: e }) => {
|
|
1867
1867
|
A.value = !t.disabled && e instanceof HTMLElement && e.matches(":focus-visible");
|
|
1868
|
-
}, Y = () => {
|
|
1869
|
-
A.value = !1;
|
|
1870
1868
|
}, pe = () => {
|
|
1869
|
+
A.value = !1;
|
|
1870
|
+
}, X = () => {
|
|
1871
1871
|
if (t.showOnHover) {
|
|
1872
1872
|
if (t.disableClickOutsideToClose) return;
|
|
1873
1873
|
if (!c.value && !ne && t.enableClickToggle) {
|
|
@@ -1878,10 +1878,10 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1878
1878
|
return;
|
|
1879
1879
|
}
|
|
1880
1880
|
K(ne ? !1 : !c.value);
|
|
1881
|
-
},
|
|
1881
|
+
}, me = (e) => {
|
|
1882
1882
|
let t = e.newState === "open";
|
|
1883
1883
|
c.value !== t && (c.value = t);
|
|
1884
|
-
},
|
|
1884
|
+
}, he = (e) => {
|
|
1885
1885
|
h && I.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), K(!1));
|
|
1886
1886
|
};
|
|
1887
1887
|
return U(c, async (e) => {
|
|
@@ -1916,13 +1916,13 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1916
1916
|
ref_key: "root",
|
|
1917
1917
|
ref: _,
|
|
1918
1918
|
style: x(L.value),
|
|
1919
|
-
onKeydown:
|
|
1919
|
+
onKeydown: he
|
|
1920
1920
|
}, [s("div", {
|
|
1921
1921
|
ref_key: "triggerWrapper",
|
|
1922
1922
|
ref: y,
|
|
1923
1923
|
style: x(R.value),
|
|
1924
|
-
onClick:
|
|
1925
|
-
onFocusin:
|
|
1924
|
+
onClick: X,
|
|
1925
|
+
onFocusin: fe,
|
|
1926
1926
|
onFocusout: l[0] ||= (e) => O.value = !1
|
|
1927
1927
|
}, [j(r.$slots, "trigger")], 36), g.value && z(h) && m.value ? (D(), o("div", {
|
|
1928
1928
|
key: 0,
|
|
@@ -1931,9 +1931,9 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1931
1931
|
class: "pv-floating pv-floating-native",
|
|
1932
1932
|
popover: I.value,
|
|
1933
1933
|
style: x(B.value),
|
|
1934
|
-
onToggle:
|
|
1935
|
-
onFocusin:
|
|
1936
|
-
onFocusout:
|
|
1934
|
+
onToggle: me,
|
|
1935
|
+
onFocusin: Y,
|
|
1936
|
+
onFocusout: pe
|
|
1937
1937
|
}, [e.disabled ? a("", !0) : j(r.$slots, "content", { key: 0 })], 44, Ui)) : m.value ? (D(), i(n, {
|
|
1938
1938
|
key: 1,
|
|
1939
1939
|
to: e.teleportLocation,
|
|
@@ -1943,11 +1943,11 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1943
1943
|
ref: S,
|
|
1944
1944
|
class: "pv-floating",
|
|
1945
1945
|
style: x(H.value),
|
|
1946
|
-
onFocusin:
|
|
1947
|
-
onFocusout:
|
|
1946
|
+
onFocusin: Y,
|
|
1947
|
+
onFocusout: pe
|
|
1948
1948
|
}, [j(r.$slots, "content")], 36), [[ie, c.value]])], 8, ["to", "disabled"])) : a("", !0)], 36));
|
|
1949
1949
|
}
|
|
1950
|
-
}), [["__scopeId", "data-v-
|
|
1950
|
+
}), [["__scopeId", "data-v-2b80f35f"]]), Ki = ["data-variant"], qi = /* @__PURE__ */ d({
|
|
1951
1951
|
__name: "PvTooltipV2",
|
|
1952
1952
|
props: {
|
|
1953
1953
|
variant: { default: "dark" },
|
|
@@ -4973,7 +4973,7 @@ var Bi = /* @__PURE__ */ new Set(), Vi = (e, t) => !!t.root.value && !!e.root.va
|
|
|
4973
4973
|
"pv-input-small": n.size === "lg"
|
|
4974
4974
|
}));
|
|
4975
4975
|
return T(() => {
|
|
4976
|
-
n.displayShortcut &&
|
|
4976
|
+
n.displayShortcut && le(ma, (e) => {
|
|
4977
4977
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
4978
4978
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
4979
4979
|
});
|
|
@@ -6057,15 +6057,15 @@ var Ba = {
|
|
|
6057
6057
|
...e,
|
|
6058
6058
|
option: n
|
|
6059
6059
|
}, !0), p.value = void 0, v(() => Ce(t.id));
|
|
6060
|
-
},
|
|
6060
|
+
}, le = r(() => new Set(F.value.map((e) => e.id))), q = (e) => {
|
|
6061
6061
|
for (let t of e) {
|
|
6062
|
-
if (
|
|
6063
|
-
let e = t.children?.length ?
|
|
6062
|
+
if (le.value.has(t.id)) return t;
|
|
6063
|
+
let e = t.children?.length ? q(t.children) : void 0;
|
|
6064
6064
|
if (e) return e;
|
|
6065
6065
|
}
|
|
6066
6066
|
}, ue = (e) => {
|
|
6067
6067
|
if (l.childrenDisplay !== "popover" || !e.children?.length) return e;
|
|
6068
|
-
let t =
|
|
6068
|
+
let t = q(e.children);
|
|
6069
6069
|
return {
|
|
6070
6070
|
...e,
|
|
6071
6071
|
children: void 0,
|
|
@@ -6077,10 +6077,10 @@ var Ba = {
|
|
|
6077
6077
|
...e,
|
|
6078
6078
|
children: void 0,
|
|
6079
6079
|
totalChildCount: void 0
|
|
6080
|
-
}), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, fe = (e) =>
|
|
6080
|
+
}), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, fe = (e) => le.value.has(e.id) || R.value && H?.value?.has(e.id) || (R.value || l.childrenDisplay === "popover") && e.children?.length && q(e.children) ? !0 : null, Y = (e) => {
|
|
6081
6081
|
let t = e.config?.variant ?? l.config?.variant;
|
|
6082
6082
|
return re.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
6083
|
-
}, pe = (e) => Y(e) === "menuitem" ? void 0 : !!fe(e), X = (e) => e.children?.length && !l.highlightParentItems ? null : Y(e) !== "menuitemcheckbox" && fe(e) || p.value === e.id ? !0 : null, me = (e) => Y(e) !== "menuitemcheckbox" &&
|
|
6083
|
+
}, pe = (e) => Y(e) === "menuitem" ? void 0 : !!fe(e), X = (e) => e.children?.length && !l.highlightParentItems ? null : Y(e) !== "menuitemcheckbox" && fe(e) || p.value === e.id ? !0 : null, me = (e) => Y(e) !== "menuitemcheckbox" && le.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || le.value.has(e.id) || H?.value?.has(e.id) || e.children?.length && q(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
6084
6084
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
6085
6085
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Eo), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
6086
6086
|
}), ye = r(() => {
|
|
@@ -6399,7 +6399,7 @@ var Ba = {
|
|
|
6399
6399
|
}, E = () => {
|
|
6400
6400
|
f.value = !1, m.value = "";
|
|
6401
6401
|
};
|
|
6402
|
-
return
|
|
6402
|
+
return le("Escape", () => {
|
|
6403
6403
|
f.value && E();
|
|
6404
6404
|
}), (t, n) => (D(), i(Gi, _({
|
|
6405
6405
|
modelValue: z(f),
|
|
@@ -6814,14 +6814,7 @@ var Ba = {
|
|
|
6814
6814
|
}, is = (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 || {}, as = (e) => {
|
|
6815
6815
|
let t = $(e);
|
|
6816
6816
|
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
6817
|
-
}, os = (e) => $(e).filterSelectMax || null, ss = (e) => {
|
|
6818
|
-
let t = $(e);
|
|
6819
|
-
if (t.filterSelectMin) {
|
|
6820
|
-
let n = os(e);
|
|
6821
|
-
return t.filterSelectMin === 1 && n === 1;
|
|
6822
|
-
}
|
|
6823
|
-
return !1;
|
|
6824
|
-
}, cs = (e) => {
|
|
6817
|
+
}, os = (e) => $(e).filterSelectMax || null, ss = (e) => $(e).filterSelectMin === 1 && os(e) === 1, cs = (e) => {
|
|
6825
6818
|
let t = $(e).dataType;
|
|
6826
6819
|
return t ? [
|
|
6827
6820
|
$o.Currency,
|
|
@@ -7326,12 +7319,12 @@ var Ba = {
|
|
|
7326
7319
|
useDisplayDataRows: n.chartData !== void 0,
|
|
7327
7320
|
xKey: n.xKey,
|
|
7328
7321
|
yKey: n.yKey
|
|
7329
|
-
})), se = r(() => _n(oe.value)), ce = r(() => vn(oe.value)),
|
|
7322
|
+
})), se = r(() => _n(oe.value)), ce = r(() => vn(oe.value)), le = r(() => cn({
|
|
7330
7323
|
baseMinHeight: n.minHeight,
|
|
7331
7324
|
dataCount: se.value,
|
|
7332
7325
|
enableChartScrolling: n.enableChartScrolling,
|
|
7333
7326
|
isHorizontalScrollingChart: ce.value
|
|
7334
|
-
})),
|
|
7327
|
+
})), q = r(() => {
|
|
7335
7328
|
let e = ln({
|
|
7336
7329
|
enableChartScrolling: n.enableChartScrolling,
|
|
7337
7330
|
isHorizontalScrollingChart: ce.value
|
|
@@ -7341,7 +7334,7 @@ var Ba = {
|
|
|
7341
7334
|
maxHeight: `${n.minHeight}px`
|
|
7342
7335
|
} : e;
|
|
7343
7336
|
}), ue = r(() => un({
|
|
7344
|
-
chartMinHeight:
|
|
7337
|
+
chartMinHeight: le.value,
|
|
7345
7338
|
dataCount: se.value,
|
|
7346
7339
|
enableChartScrolling: n.enableChartScrolling,
|
|
7347
7340
|
isHorizontalScrollingChart: ce.value,
|
|
@@ -7393,14 +7386,14 @@ var Ba = {
|
|
|
7393
7386
|
])], 4)) : (D(), o("div", {
|
|
7394
7387
|
key: 2,
|
|
7395
7388
|
class: y(["pv-data-widget__chart-scroll", { "pv-data-widget__chart-scroll--enabled pv-scrollbar-visible": e.enableChartScrolling }]),
|
|
7396
|
-
style: x(
|
|
7389
|
+
style: x(q.value)
|
|
7397
7390
|
}, [s("div", {
|
|
7398
7391
|
class: "pv-data-widget__chart-content",
|
|
7399
7392
|
style: x(ue.value)
|
|
7400
7393
|
}, [u(nn, {
|
|
7401
7394
|
options: oe.value,
|
|
7402
7395
|
isLoading: e.chartLoading,
|
|
7403
|
-
minHeight:
|
|
7396
|
+
minHeight: le.value
|
|
7404
7397
|
}, null, 8, [
|
|
7405
7398
|
"options",
|
|
7406
7399
|
"isLoading",
|
|
@@ -7642,8 +7635,8 @@ var Ba = {
|
|
|
7642
7635
|
class: "pv-modal-sm",
|
|
7643
7636
|
ref: "dialog",
|
|
7644
7637
|
style: {
|
|
7645
|
-
"--
|
|
7646
|
-
|
|
7638
|
+
"--top": "40%",
|
|
7639
|
+
position: "absolute"
|
|
7647
7640
|
},
|
|
7648
7641
|
onClose: i,
|
|
7649
7642
|
onClick: c
|
|
@@ -7759,7 +7752,7 @@ var pc = {
|
|
|
7759
7752
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && p();
|
|
7760
7753
|
}), U(() => d.value, () => {
|
|
7761
7754
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
7762
|
-
}),
|
|
7755
|
+
}), le("Escape", () => {
|
|
7763
7756
|
c.value && d.value && f();
|
|
7764
7757
|
}), (n, i) => (D(), o("div", {
|
|
7765
7758
|
class: "pv-drawer pv-surface",
|
|
@@ -7910,6 +7903,10 @@ var Cc = {
|
|
|
7910
7903
|
optionsRenderer: {},
|
|
7911
7904
|
optionsVariant: { default: "checkbox" },
|
|
7912
7905
|
overlayTrigger: { type: Boolean },
|
|
7906
|
+
singleSelect: {
|
|
7907
|
+
type: Boolean,
|
|
7908
|
+
default: !1
|
|
7909
|
+
},
|
|
7913
7910
|
parentSelectsAllChildren: { type: Boolean },
|
|
7914
7911
|
popoverCssProperties: {},
|
|
7915
7912
|
popoverProperties: {},
|
|
@@ -8062,7 +8059,7 @@ var Cc = {
|
|
|
8062
8059
|
}
|
|
8063
8060
|
let e = c.enableCascadeSelection ? Fa(se.value) : se.value;
|
|
8064
8061
|
g("select-all", e.length), ee(e);
|
|
8065
|
-
},
|
|
8062
|
+
}, q = () => {
|
|
8066
8063
|
g("clear-all", re.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ee([]);
|
|
8067
8064
|
}, ue = () => {
|
|
8068
8065
|
ne(), K();
|
|
@@ -8091,7 +8088,7 @@ var Cc = {
|
|
|
8091
8088
|
let e = he.value?.getRootNode();
|
|
8092
8089
|
return e instanceof ShadowRoot ? e.host : null;
|
|
8093
8090
|
}), { present: _e } = zi("header", { host: ge }), { present: ve } = zi("no-results", { host: ge }), { present: ye } = zi("footer", { host: ge });
|
|
8094
|
-
return
|
|
8091
|
+
return le("Escape", () => {
|
|
8095
8092
|
M.value && K();
|
|
8096
8093
|
}), (n, r) => (D(), i(Gi, _({
|
|
8097
8094
|
modelValue: z(M),
|
|
@@ -8114,7 +8111,7 @@ var Cc = {
|
|
|
8114
8111
|
"counter-style": e.counterStyle,
|
|
8115
8112
|
"selected-items": re.value,
|
|
8116
8113
|
"data-dd-action-name": X.value,
|
|
8117
|
-
onHandleClear:
|
|
8114
|
+
onHandleClear: q,
|
|
8118
8115
|
onHandleToggleDropdown: r[0] ||= (e) => z(N)()
|
|
8119
8116
|
}, null, 8, [
|
|
8120
8117
|
"variant",
|
|
@@ -8162,6 +8159,7 @@ var Cc = {
|
|
|
8162
8159
|
"onUpdate:selectedItems": r[2] ||= (e) => ae.value = e,
|
|
8163
8160
|
options: i,
|
|
8164
8161
|
config: l.value,
|
|
8162
|
+
singleSelect: e.singleSelect,
|
|
8165
8163
|
queryText: e.highlightSearchText ? R.value : null,
|
|
8166
8164
|
itemTestId: `pv-multiselect-${t}-item`,
|
|
8167
8165
|
itemClass: "pv-stack-4",
|
|
@@ -8174,6 +8172,7 @@ var Cc = {
|
|
|
8174
8172
|
"selectedItems",
|
|
8175
8173
|
"options",
|
|
8176
8174
|
"config",
|
|
8175
|
+
"singleSelect",
|
|
8177
8176
|
"queryText",
|
|
8178
8177
|
"itemTestId",
|
|
8179
8178
|
"isLoading",
|
|
@@ -8188,6 +8187,7 @@ var Cc = {
|
|
|
8188
8187
|
"onUpdate:selectedItems": r[3] ||= (e) => ae.value = e,
|
|
8189
8188
|
options: se.value,
|
|
8190
8189
|
config: l.value,
|
|
8190
|
+
singleSelect: e.singleSelect,
|
|
8191
8191
|
queryText: e.highlightSearchText ? R.value : null,
|
|
8192
8192
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
8193
8193
|
itemClass: "pv-stack-4",
|
|
@@ -8199,6 +8199,7 @@ var Cc = {
|
|
|
8199
8199
|
"selectedItems",
|
|
8200
8200
|
"options",
|
|
8201
8201
|
"config",
|
|
8202
|
+
"singleSelect",
|
|
8202
8203
|
"queryText",
|
|
8203
8204
|
"itemTestId",
|
|
8204
8205
|
"enableCascadeSelection",
|
|
@@ -8211,7 +8212,7 @@ var Cc = {
|
|
|
8211
8212
|
variant: e.menuActionsVariant,
|
|
8212
8213
|
disabled: e.isLoading,
|
|
8213
8214
|
rumFilterName: e.rumFilterName,
|
|
8214
|
-
onHandleClearAll:
|
|
8215
|
+
onHandleClearAll: q,
|
|
8215
8216
|
onHandleSelectAll: ce,
|
|
8216
8217
|
onHandleCancel: ue,
|
|
8217
8218
|
onHandleConfirm: J
|
|
@@ -8584,90 +8585,95 @@ var Vc = "__pv_filter_panel_scoped_value__", Hc = (e) => typeof e == "object" &&
|
|
|
8584
8585
|
children: yl(e.children, t, n).filter((e) => !!e)
|
|
8585
8586
|
} : e));
|
|
8586
8587
|
}, bl = (e, t) => `${e}::${t}`, xl = () => {
|
|
8587
|
-
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({}),
|
|
8588
|
-
|
|
8589
|
-
},
|
|
8588
|
+
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) => {
|
|
8589
|
+
v.value = e;
|
|
8590
|
+
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
8590
8591
|
r.value[e] = t;
|
|
8591
|
-
},
|
|
8592
|
+
}, C = (e, t = !1) => (t ? o : i).value[e] ?? [], w = (e, t, n = !1) => {
|
|
8592
8593
|
let r = n ? o : i;
|
|
8593
8594
|
r.value[e] = t;
|
|
8594
|
-
}, w = () => {
|
|
8595
|
-
o.value = hl(i.value), s.value = hl(a.value);
|
|
8596
8595
|
}, T = () => {
|
|
8597
|
-
o.value =
|
|
8596
|
+
o.value = hl(i.value), s.value = hl(a.value);
|
|
8598
8597
|
}, E = () => {
|
|
8599
|
-
|
|
8600
|
-
}, D = (
|
|
8598
|
+
o.value = {}, s.value = {};
|
|
8599
|
+
}, D = () => {
|
|
8600
|
+
i.value = hl(o.value), a.value = hl(s.value), E();
|
|
8601
|
+
}, O = (e, t) => {
|
|
8601
8602
|
c.value[e] = t;
|
|
8602
|
-
},
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8603
|
+
}, A = (e, t) => {
|
|
8604
|
+
l.value[e] = t;
|
|
8605
|
+
}, j = (e, t) => `${t ? "append" : "initial"}::${e}`, M = (e, t) => {
|
|
8606
|
+
let n = t ? d : u, r = j(e, t);
|
|
8607
|
+
return y.value[r] = (y.value[r] ?? 0) + 1, n.value[e] = !0, r;
|
|
8608
|
+
}, N = (e, t, n) => {
|
|
8609
|
+
let r = t ? d : u, i = Math.max(0, (y.value[n] ?? 1) - 1);
|
|
8607
8610
|
if (i > 0) {
|
|
8608
|
-
|
|
8611
|
+
y.value[n] = i;
|
|
8609
8612
|
return;
|
|
8610
8613
|
}
|
|
8611
|
-
delete
|
|
8614
|
+
delete y.value[n], r.value[e] = !1;
|
|
8612
8615
|
};
|
|
8613
8616
|
return {
|
|
8614
|
-
clearStagedFilterSelections:
|
|
8615
|
-
commitStagedFilterSelections:
|
|
8617
|
+
clearStagedFilterSelections: E,
|
|
8618
|
+
commitStagedFilterSelections: D,
|
|
8616
8619
|
fetchFilterOptions: async (n) => {
|
|
8617
|
-
let o =
|
|
8620
|
+
let o = v.value;
|
|
8618
8621
|
if (!o) return [];
|
|
8619
8622
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
8620
8623
|
c.value[n.field] = s;
|
|
8621
|
-
let
|
|
8622
|
-
|
|
8624
|
+
let u = n.parentId ? _l(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 ? bl(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
8625
|
+
g.value[x] = S;
|
|
8623
8626
|
try {
|
|
8624
8627
|
let c = await o({
|
|
8625
8628
|
...n,
|
|
8629
|
+
facets: n.facets ?? l.value[n.field],
|
|
8626
8630
|
filterModel: n.filterModel ?? t.value ?? e.value,
|
|
8627
|
-
offset:
|
|
8631
|
+
offset: d,
|
|
8628
8632
|
query: s,
|
|
8629
8633
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
8630
8634
|
});
|
|
8631
|
-
if (
|
|
8632
|
-
let
|
|
8635
|
+
if (g.value[x] !== S) return [];
|
|
8636
|
+
let u = pl(c);
|
|
8633
8637
|
if (n.parentId) {
|
|
8634
8638
|
let e = bl(n.field, n.parentId);
|
|
8635
|
-
|
|
8636
|
-
} else
|
|
8637
|
-
let
|
|
8638
|
-
|
|
8639
|
-
for (let e of
|
|
8639
|
+
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
8640
|
+
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
8641
|
+
let v = a.value[n.field] ?? [], b;
|
|
8642
|
+
b = n.parentId ? yl(r.value[n.field] ?? [], n.parentId, u.values) : y ? gl([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
8643
|
+
for (let e of v) {
|
|
8640
8644
|
if (!e) continue;
|
|
8641
8645
|
let t = Kc(e) ?? e.value;
|
|
8642
|
-
|
|
8646
|
+
b.some((e) => vl(e, t, n.field)) || b.push(e);
|
|
8643
8647
|
}
|
|
8644
|
-
return r.value[n.field] =
|
|
8648
|
+
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
8645
8649
|
} finally {
|
|
8646
|
-
|
|
8650
|
+
N(n.field, y, b);
|
|
8647
8651
|
}
|
|
8648
8652
|
},
|
|
8649
|
-
filterChildHasMoreMap:
|
|
8650
|
-
filterChildTotalCountMap:
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8653
|
+
filterChildHasMoreMap: m,
|
|
8654
|
+
filterChildTotalCountMap: h,
|
|
8655
|
+
filterFacetSelectionMap: l,
|
|
8656
|
+
filterHasMoreMap: f,
|
|
8657
|
+
filterLoadingMap: u,
|
|
8658
|
+
filterLoadingMoreMap: d,
|
|
8654
8659
|
filterModel: e,
|
|
8655
8660
|
filterModelType: n,
|
|
8656
|
-
filterOptionsHandler:
|
|
8661
|
+
filterOptionsHandler: v,
|
|
8657
8662
|
filterOptionsMap: r,
|
|
8658
|
-
filterRequestIdMap:
|
|
8663
|
+
filterRequestIdMap: g,
|
|
8659
8664
|
filterSearchQueries: c,
|
|
8660
8665
|
filterSelectedMetadataMap: a,
|
|
8661
8666
|
filterSelectedValueMap: i,
|
|
8662
|
-
filterStaleMap:
|
|
8663
|
-
filterTotalCountMap:
|
|
8664
|
-
getFilterOptions:
|
|
8665
|
-
getFilterSelectedValues:
|
|
8666
|
-
initStagedFilterSelections:
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8667
|
+
filterStaleMap: _,
|
|
8668
|
+
filterTotalCountMap: p,
|
|
8669
|
+
getFilterOptions: x,
|
|
8670
|
+
getFilterSelectedValues: C,
|
|
8671
|
+
initStagedFilterSelections: T,
|
|
8672
|
+
setFilterFacetSelections: A,
|
|
8673
|
+
setFilterOptions: S,
|
|
8674
|
+
setFilterOptionsHandler: b,
|
|
8675
|
+
setFilterSearchQuery: O,
|
|
8676
|
+
setFilterSelectedValues: w,
|
|
8671
8677
|
stagedFilterModel: t,
|
|
8672
8678
|
stagedFilterSelectedMetadataMap: s,
|
|
8673
8679
|
stagedFilterSelectedValueMap: o
|
|
@@ -8855,9 +8861,9 @@ var Vc = "__pv_filter_panel_scoped_value__", Hc = (e) => typeof e == "object" &&
|
|
|
8855
8861
|
let n = e, c = { renderer: kl }, l = H("search-input"), d = V(e, "searchText"), f = V(e, "query"), p = V(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = Sl(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
8856
8862
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
8857
8863
|
};
|
|
8858
|
-
n.enableCustomOptionsInput &&
|
|
8864
|
+
n.enableCustomOptionsInput && le("Enter", () => {
|
|
8859
8865
|
d.value.trim() && O();
|
|
8860
|
-
}, { target: l }),
|
|
8866
|
+
}, { target: l }), le("Backspace", () => {
|
|
8861
8867
|
if (d.value !== "") return;
|
|
8862
8868
|
let e = f.value?.queryTerms;
|
|
8863
8869
|
if (!e || e.length === 0) return;
|
|
@@ -9007,20 +9013,20 @@ var Vc = "__pv_filter_panel_scoped_value__", Hc = (e) => typeof e == "object" &&
|
|
|
9007
9013
|
e();
|
|
9008
9014
|
} catch {}
|
|
9009
9015
|
});
|
|
9010
|
-
}, zl = Symbol("FilterStoreKey"), Bl = Symbol("FocusStoreKey"), Vl = Symbol("SortStateKey"), Hl = Symbol("GridApiKey"), Ul = Symbol("ColumnDisplayOrderKey"), Wl = Symbol("currentlyActiveFilterKey"), Gl = Symbol("AvailableFilterColumnsKey"), Kl = Symbol("AvailableRowGroupColumnsKey"), ql = Symbol("RowGroupColumnFieldsKey"), Jl = Symbol("GroupColumnCellValueColumnKey"), Yl = Symbol("ExpandedRowsKey"), Xl = Symbol("FirstDataRenderedKey"), Zl = Symbol("RowsLoadingKey"), Ql = Symbol("CurrentPageKey"), $l = Symbol("TotalPageKey"), eu = Symbol("ActiveChartFilterOptionKey"), tu = Symbol("RowGroupColumnsKey"), nu = Symbol("ChartTypeKey"), ru = Symbol("SortTypesKey"), iu = Symbol("ActiveChartKey"), au = Symbol("ActiveSortKey"), ou = Symbol("ActiveSeriesKey"), su = Symbol("AvailableSeriesKey"), cu = Symbol("ActiveSecondarySeriesKey"), lu = Symbol("AvailableSecondarySeriesKey"), uu = Symbol("
|
|
9016
|
+
}, zl = Symbol("FilterStoreKey"), Bl = Symbol("FocusStoreKey"), Vl = Symbol("SortStateKey"), Hl = Symbol("GridApiKey"), Ul = Symbol("ColumnDisplayOrderKey"), Wl = Symbol("currentlyActiveFilterKey"), Gl = Symbol("AvailableFilterColumnsKey"), Kl = Symbol("AvailableRowGroupColumnsKey"), ql = Symbol("RowGroupColumnFieldsKey"), Jl = Symbol("GroupColumnCellValueColumnKey"), Yl = Symbol("ExpandedRowsKey"), Xl = Symbol("FirstDataRenderedKey"), Zl = Symbol("RowsLoadingKey"), Ql = Symbol("CurrentPageKey"), $l = Symbol("TotalPageKey"), eu = Symbol("ActiveChartFilterOptionKey"), tu = Symbol("RowGroupColumnsKey"), nu = Symbol("ChartTypeKey"), ru = Symbol("SortTypesKey"), iu = Symbol("ActiveChartKey"), au = Symbol("ActiveSortKey"), ou = Symbol("ActiveSeriesKey"), su = Symbol("AvailableSeriesKey"), cu = Symbol("ActiveSecondarySeriesKey"), lu = Symbol("AvailableSecondarySeriesKey"), uu = Symbol("ActiveSecondarySeriesListKey"), du = Symbol("MetricOverlayMultiSelectKey"), fu = Symbol("EnableAdvancedFilterKey"), pu = Symbol("ActiveCrosslineOverlayGroupsKey"), mu = Symbol("AvailableCrosslineOverlayGroupsKey"), hu = {
|
|
9011
9017
|
class: "pv-flex",
|
|
9012
9018
|
style: { "--flex-wrap": "nowrap" }
|
|
9013
|
-
},
|
|
9019
|
+
}, gu = ["id"], _u = {
|
|
9014
9020
|
key: 1,
|
|
9015
9021
|
style: { "padding-left": "16px" }
|
|
9016
|
-
},
|
|
9022
|
+
}, vu = [
|
|
9017
9023
|
"checked",
|
|
9018
9024
|
"disabled",
|
|
9019
9025
|
"onChange"
|
|
9020
|
-
],
|
|
9026
|
+
], yu = { class: "pv-text-body-md" }, bu = { key: 2 }, xu = {
|
|
9021
9027
|
key: 0,
|
|
9022
9028
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
9023
|
-
},
|
|
9029
|
+
}, Su = /* @__PURE__ */ d({
|
|
9024
9030
|
__name: "GroupBySelector",
|
|
9025
9031
|
props: {
|
|
9026
9032
|
rowGroupLimit: {},
|
|
@@ -9059,7 +9065,7 @@ var Vc = "__pv_filter_panel_scoped_value__", Hc = (e) => typeof e == "object" &&
|
|
|
9059
9065
|
class: y(p.value),
|
|
9060
9066
|
onListOrderUpdated: x
|
|
9061
9067
|
}, {
|
|
9062
|
-
trigger: W(() => [s("div",
|
|
9068
|
+
trigger: W(() => [s("div", hu, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), z(l).length > 0 ? (D(), i(z(Pn), {
|
|
9063
9069
|
key: 0,
|
|
9064
9070
|
value: z(l).length,
|
|
9065
9071
|
variant: "tertiary"
|
|
@@ -9072,25 +9078,25 @@ var Vc = "__pv_filter_panel_scoped_value__", Hc = (e) => typeof e == "object" &&
|
|
|
9072
9078
|
key: 0,
|
|
9073
9079
|
name: "reorder",
|
|
9074
9080
|
class: "pv-text-subdued"
|
|
9075
|
-
})) : (D(), o("span",
|
|
9081
|
+
})) : (D(), o("span", _u)),
|
|
9076
9082
|
s("input", {
|
|
9077
9083
|
type: "checkbox",
|
|
9078
9084
|
class: "pv-checkbox",
|
|
9079
9085
|
checked: d(e.value),
|
|
9080
9086
|
disabled: !d(e.value) && h.value,
|
|
9081
9087
|
onChange: (t) => f(e.value, t.target.checked)
|
|
9082
|
-
}, null, 40,
|
|
9083
|
-
s("span",
|
|
9084
|
-
d(e.value) ? (D(), o("sup",
|
|
9085
|
-
], 2)], 8,
|
|
9088
|
+
}, null, 40, vu),
|
|
9089
|
+
s("span", yu, F(e.label), 1),
|
|
9090
|
+
d(e.value) ? (D(), o("sup", bu, F(n + 1), 1)) : a("", !0)
|
|
9091
|
+
], 2)], 8, gu))], 64))), 128)), h.value ? (D(), o("p", xu, " Supports " + F(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
9086
9092
|
_: 1
|
|
9087
9093
|
}, 8, ["class"]));
|
|
9088
9094
|
}
|
|
9089
|
-
}),
|
|
9090
|
-
function
|
|
9091
|
-
return D(), o("div",
|
|
9095
|
+
}), Cu = {}, wu = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
9096
|
+
function Tu(e, t) {
|
|
9097
|
+
return D(), o("div", wu);
|
|
9092
9098
|
}
|
|
9093
|
-
var
|
|
9099
|
+
var Eu = /* @__PURE__ */ tn(Cu, [["render", Tu]]), Du = ["innerHTML"], Ou = { key: 2 }, ku = /* @__PURE__ */ d({
|
|
9094
9100
|
__name: "ColDefCellRenderer",
|
|
9095
9101
|
props: {
|
|
9096
9102
|
colDef: {},
|
|
@@ -9104,9 +9110,9 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9104
9110
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (D(), o("span", {
|
|
9105
9111
|
key: 1,
|
|
9106
9112
|
innerHTML: c.value
|
|
9107
|
-
}, null, 8,
|
|
9113
|
+
}, null, 8, Du)) : a.value === "string" ? (D(), o("span", Ou, F(s.value), 1)) : j(t.$slots, "default", { key: 3 });
|
|
9108
9114
|
}
|
|
9109
|
-
}),
|
|
9115
|
+
}), Au = (e = null, t = !1) => {
|
|
9110
9116
|
let n = k(e?.focuses || []), i = k(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
9111
9117
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
9112
9118
|
}, l = (e) => {
|
|
@@ -9130,21 +9136,21 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9130
9136
|
setFocuses: l,
|
|
9131
9137
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
9132
9138
|
};
|
|
9133
|
-
},
|
|
9139
|
+
}, ju = () => m(Bl, null) || Au(), Mu = { class: "pv-table-group-cell" }, Nu = { class: "pv-text-body-xxs pv-text-subdued" }, Pu = { key: 0 }, Fu = { style: { "line-height": "20px" } }, Iu = { class: "pv-text-title-md" }, Lu = {
|
|
9134
9140
|
key: 0,
|
|
9135
9141
|
class: "pv-flex",
|
|
9136
9142
|
style: {
|
|
9137
9143
|
flex: "1",
|
|
9138
9144
|
"--flex-justify": "flex-end"
|
|
9139
9145
|
}
|
|
9140
|
-
},
|
|
9146
|
+
}, Ru = {
|
|
9141
9147
|
key: 0,
|
|
9142
9148
|
class: "pv-table-row-number"
|
|
9143
|
-
},
|
|
9149
|
+
}, zu = /* @__PURE__ */ d({
|
|
9144
9150
|
__name: "GroupedCellRenderer",
|
|
9145
9151
|
props: { params: {} },
|
|
9146
9152
|
setup(e) {
|
|
9147
|
-
let n = e, i = m(ql, k([])), c = m(Jl, k(null)), d = m(Yl, k({})), f =
|
|
9153
|
+
let n = e, i = m(ql, k([])), c = m(Jl, k(null)), d = m(Yl, 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(() => {
|
|
9148
9154
|
let e = f.value.data;
|
|
9149
9155
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9150
9156
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -9166,7 +9172,7 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9166
9172
|
}), S = (e) => {
|
|
9167
9173
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
9168
9174
|
n != null && (d.value[n] = t);
|
|
9169
|
-
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } =
|
|
9175
|
+
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } = ju(), j = r(() => w(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
9170
9176
|
let e = E.value;
|
|
9171
9177
|
return f.value.key && e.includes(f.value.key);
|
|
9172
9178
|
});
|
|
@@ -9181,7 +9187,7 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9181
9187
|
}), (n, r) => (D(), o(t, null, [h.value ? (D(), o("div", {
|
|
9182
9188
|
key: 0,
|
|
9183
9189
|
class: y(j.value)
|
|
9184
|
-
}, [s("div",
|
|
9190
|
+
}, [s("div", Mu, [s("p", Nu, [l(F(z(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (D(), o("span", Pu, " (" + F(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", Fu, [s("p", Iu, F(g.value), 1)])]), M.value && z(A)() ? (D(), o("div", Lu, [u(wa, {
|
|
9185
9191
|
variant: "dark",
|
|
9186
9192
|
tooltipPosition: "center-left",
|
|
9187
9193
|
size: "sm"
|
|
@@ -9195,9 +9201,9 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9195
9201
|
}, null, 8, ["class"])]),
|
|
9196
9202
|
"tooltip-content": W(() => [s("span", null, " Remove " + F(e.params.focusText || "Focus"), 1)]),
|
|
9197
9203
|
_: 1
|
|
9198
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span",
|
|
9204
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span", Ru, F(x.value), 1)) : a("", !0), l(" " + F(v.value), 1)])])], 64));
|
|
9199
9205
|
}
|
|
9200
|
-
}),
|
|
9206
|
+
}), Bu = {
|
|
9201
9207
|
key: 1,
|
|
9202
9208
|
class: "pv-table-child-cell",
|
|
9203
9209
|
style: {
|
|
@@ -9206,15 +9212,15 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9206
9212
|
width: "100%",
|
|
9207
9213
|
height: "100%"
|
|
9208
9214
|
}
|
|
9209
|
-
},
|
|
9215
|
+
}, Vu = {
|
|
9210
9216
|
key: 0,
|
|
9211
9217
|
class: "pv-table-row-number",
|
|
9212
9218
|
style: {
|
|
9213
9219
|
padding: "8px 12px 8px 0",
|
|
9214
9220
|
"text-align": "center",
|
|
9215
|
-
color: "#89989b"
|
|
9221
|
+
color: "var(--color-text-quaternary, #89989b)"
|
|
9216
9222
|
}
|
|
9217
|
-
},
|
|
9223
|
+
}, Hu = /* @__PURE__ */ d({
|
|
9218
9224
|
__name: "AutoGroupColDefRenderer",
|
|
9219
9225
|
props: { params: {} },
|
|
9220
9226
|
setup(e) {
|
|
@@ -9243,31 +9249,31 @@ var wu = /* @__PURE__ */ tn(xu, [["render", Cu]]), Tu = ["innerHTML"], Eu = { ke
|
|
|
9243
9249
|
valueFormatted: c
|
|
9244
9250
|
};
|
|
9245
9251
|
});
|
|
9246
|
-
return (t, n) => s.value ? (D(), i(
|
|
9252
|
+
return (t, n) => s.value ? (D(), i(ku, {
|
|
9247
9253
|
key: 0,
|
|
9248
9254
|
"col-def": d.value,
|
|
9249
9255
|
"cell-params": e.params.cellParams
|
|
9250
9256
|
}, {
|
|
9251
|
-
default: W(() => [u(
|
|
9257
|
+
default: W(() => [u(zu, { params: e.params }, null, 8, ["params"])]),
|
|
9252
9258
|
_: 1
|
|
9253
|
-
}, 8, ["col-def", "cell-params"])) : (D(), o("div",
|
|
9259
|
+
}, 8, ["col-def", "cell-params"])) : (D(), o("div", Bu, [e.params.displayRowNumber && c.value ? (D(), o("span", Vu, F(c.value), 1)) : a("", !0), u(ku, {
|
|
9254
9260
|
"col-def": f.value,
|
|
9255
9261
|
"cell-params": p.value
|
|
9256
9262
|
}, {
|
|
9257
|
-
default: W(() => [u(
|
|
9263
|
+
default: W(() => [u(zu, { params: l.value }, null, 8, ["params"])]),
|
|
9258
9264
|
_: 1
|
|
9259
9265
|
}, 8, ["col-def", "cell-params"])]));
|
|
9260
9266
|
}
|
|
9261
9267
|
});
|
|
9262
9268
|
//#endregion
|
|
9263
9269
|
//#region src/functions/aggregations.ts
|
|
9264
|
-
function
|
|
9270
|
+
function Uu(e) {
|
|
9265
9271
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
9266
9272
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
9267
9273
|
}
|
|
9268
9274
|
//#endregion
|
|
9269
9275
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
9270
|
-
var
|
|
9276
|
+
var Wu = { style: { "line-height": "20px" } }, Gu = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, Ku = /* @__PURE__ */ d({
|
|
9271
9277
|
__name: "GroupAggCellRenderer",
|
|
9272
9278
|
props: { params: {} },
|
|
9273
9279
|
setup(e) {
|
|
@@ -9298,20 +9304,20 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9298
9304
|
style: x(f.value),
|
|
9299
9305
|
class: "pv-flex",
|
|
9300
9306
|
ondblclick: a
|
|
9301
|
-
}, [s("div",
|
|
9307
|
+
}, [s("div", Wu, [s("p", null, F(d.value), 1), s("p", Gu, F(i.value), 1)])], 4));
|
|
9302
9308
|
}
|
|
9303
|
-
}),
|
|
9309
|
+
}), qu = {
|
|
9304
9310
|
agSetColumnFilter: "set",
|
|
9305
9311
|
agMultiColumnFilter: "multi",
|
|
9306
9312
|
agTextColumnFilter: "text"
|
|
9307
|
-
},
|
|
9313
|
+
}, Ju = (e) => !e || !e.filter ? null : e.filter in qu ? qu[e.filter] : null, Yu = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), Xu = (e, t) => {
|
|
9308
9314
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
9309
|
-
let n = e?.filterType || null, r =
|
|
9315
|
+
let n = e?.filterType || null, r = Ju(t);
|
|
9310
9316
|
if (!r || r === n) return e;
|
|
9311
9317
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
9312
9318
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
9313
9319
|
if (e.filterType == "set") {
|
|
9314
|
-
let n = e.values || [], r =
|
|
9320
|
+
let n = e.values || [], r = Yu(t);
|
|
9315
9321
|
r > -1 && r < a.length && (a[r] = {
|
|
9316
9322
|
filterType: "set",
|
|
9317
9323
|
values: n
|
|
@@ -9321,7 +9327,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9321
9327
|
filterType: "multi",
|
|
9322
9328
|
filterModels: a
|
|
9323
9329
|
};
|
|
9324
|
-
},
|
|
9330
|
+
}, Zu = (e, t) => {
|
|
9325
9331
|
let n = t.filter((e) => e !== null && e !== "");
|
|
9326
9332
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
9327
9333
|
filterType: "text",
|
|
@@ -9338,18 +9344,18 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9338
9344
|
filter: t
|
|
9339
9345
|
}))
|
|
9340
9346
|
};
|
|
9341
|
-
},
|
|
9347
|
+
}, Qu = (e) => {
|
|
9342
9348
|
let t = [];
|
|
9343
9349
|
return Object.keys(e).forEach((n) => {
|
|
9344
9350
|
let r = e[n];
|
|
9345
9351
|
if (r) {
|
|
9346
9352
|
if (r.filterType === "set" && r.values) {
|
|
9347
|
-
let e =
|
|
9353
|
+
let e = Zu(n, r.values);
|
|
9348
9354
|
e && t.push(e);
|
|
9349
9355
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
9350
9356
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
9351
9357
|
if (e?.values) {
|
|
9352
|
-
let r =
|
|
9358
|
+
let r = Zu(n, e.values);
|
|
9353
9359
|
r && t.push(r);
|
|
9354
9360
|
}
|
|
9355
9361
|
}
|
|
@@ -9359,11 +9365,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9359
9365
|
type: "AND",
|
|
9360
9366
|
conditions: t
|
|
9361
9367
|
};
|
|
9362
|
-
},
|
|
9368
|
+
}, $u = (e, t, n = !1) => {
|
|
9363
9369
|
if (!e) return e;
|
|
9364
9370
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
9365
9371
|
if (n) {
|
|
9366
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
9372
|
+
let t = e?.filter?.advancedFilterModel, n = Qu(i), a = t || null, o = null;
|
|
9367
9373
|
return o = a && n ? {
|
|
9368
9374
|
filterType: "join",
|
|
9369
9375
|
type: "AND",
|
|
@@ -9376,12 +9382,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9376
9382
|
}
|
|
9377
9383
|
let a = {};
|
|
9378
9384
|
return Object.keys(i).forEach((e) => {
|
|
9379
|
-
a[e] =
|
|
9385
|
+
a[e] = Xu(i[e] || {}, t.find((t) => t.field === e));
|
|
9380
9386
|
}), r.filter = {
|
|
9381
9387
|
...r.filter,
|
|
9382
9388
|
filterModel: a
|
|
9383
9389
|
}, r;
|
|
9384
|
-
},
|
|
9390
|
+
}, ed = (e) => {
|
|
9385
9391
|
if (!e || e.queryTerms.length === 0) return {};
|
|
9386
9392
|
let t = {};
|
|
9387
9393
|
return e.queryTerms.forEach((e) => {
|
|
@@ -9413,7 +9419,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9413
9419
|
};
|
|
9414
9420
|
}
|
|
9415
9421
|
}), t;
|
|
9416
|
-
},
|
|
9422
|
+
}, td = (e) => {
|
|
9417
9423
|
if (!e || e.queryTerms.length === 0) return null;
|
|
9418
9424
|
let t = /* @__PURE__ */ new Map();
|
|
9419
9425
|
e.queryTerms.forEach((e) => {
|
|
@@ -9448,7 +9454,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9448
9454
|
type: "AND",
|
|
9449
9455
|
conditions: n
|
|
9450
9456
|
};
|
|
9451
|
-
},
|
|
9457
|
+
}, nd = (e, t) => {
|
|
9452
9458
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
9453
9459
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
9454
9460
|
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");
|
|
@@ -9456,26 +9462,26 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9456
9462
|
filterType: "multi",
|
|
9457
9463
|
filterModels: r
|
|
9458
9464
|
};
|
|
9459
|
-
},
|
|
9465
|
+
}, rd = (e, t) => {
|
|
9460
9466
|
if (!e || Object.keys(e).length === 0) return t;
|
|
9461
9467
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
9462
9468
|
let n = { ...e };
|
|
9463
9469
|
return t.filterModels?.forEach((e, t) => {
|
|
9464
9470
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
9465
9471
|
}), n;
|
|
9466
|
-
},
|
|
9472
|
+
}, id = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => id(e, t)) : e.colId === t : t in e : !1, ad = (e, t, n) => {
|
|
9467
9473
|
let r = { ...t };
|
|
9468
9474
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
9469
|
-
let i =
|
|
9470
|
-
r[t] =
|
|
9475
|
+
let i = nd(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
9476
|
+
r[t] = rd(a, i);
|
|
9471
9477
|
}), r);
|
|
9472
|
-
},
|
|
9478
|
+
}, od = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Yu(e) !== void 0 && Yu(e) > -1 : !1, sd = (e, t) => {
|
|
9473
9479
|
let n = { ...e };
|
|
9474
9480
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
9475
9481
|
...n.filterParams,
|
|
9476
9482
|
values: t
|
|
9477
9483
|
}, n;
|
|
9478
|
-
let r =
|
|
9484
|
+
let r = Yu(e);
|
|
9479
9485
|
if (r !== void 0 && r > -1) {
|
|
9480
9486
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
9481
9487
|
a.filterParams = {
|
|
@@ -9489,13 +9495,13 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9489
9495
|
};
|
|
9490
9496
|
}
|
|
9491
9497
|
return n;
|
|
9492
|
-
},
|
|
9498
|
+
}, cd = async (e, t) => {
|
|
9493
9499
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
9494
9500
|
if (r?.filterType == "set") return r;
|
|
9495
9501
|
if (r?.filterType != "multi") return null;
|
|
9496
|
-
let i =
|
|
9502
|
+
let i = Yu(t);
|
|
9497
9503
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
9498
|
-
},
|
|
9504
|
+
}, ld = async (e, t, n) => {
|
|
9499
9505
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
9500
9506
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
9501
9507
|
if (i?.filterType != "multi") return null;
|
|
@@ -9504,50 +9510,50 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9504
9510
|
filterType: "multi",
|
|
9505
9511
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
9506
9512
|
};
|
|
9507
|
-
let o =
|
|
9513
|
+
let o = Yu(t), s = !n || n.length === 0 ? null : {
|
|
9508
9514
|
filterType: "set",
|
|
9509
9515
|
values: n
|
|
9510
9516
|
};
|
|
9511
9517
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
9512
|
-
},
|
|
9518
|
+
}, ud = (e, t) => {
|
|
9513
9519
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
9514
9520
|
let n = t[e.field];
|
|
9515
9521
|
if (!n) return [];
|
|
9516
9522
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
9517
9523
|
if (n.filterType === "multi") {
|
|
9518
|
-
let t =
|
|
9524
|
+
let t = Yu(e);
|
|
9519
9525
|
if (t !== void 0 && t > -1) {
|
|
9520
9526
|
let e = n.filterModels[t];
|
|
9521
9527
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
9522
9528
|
}
|
|
9523
9529
|
}
|
|
9524
9530
|
return [];
|
|
9525
|
-
},
|
|
9531
|
+
}, dd = (e) => !!e && "filterType" in e, fd = (e) => e.filterType === "join" ? e.conditions.some(fd) : "colId" in e, pd = (e) => e ? dd(e) ? !fd(e) : Object.keys(e).length === 0 : !0, md = (e) => {
|
|
9526
9532
|
if (e === void 0) return "undefined";
|
|
9527
9533
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
9528
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
9534
|
+
if (Array.isArray(e)) return `[${e.map(md).join(",")}]`;
|
|
9529
9535
|
let t = e;
|
|
9530
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
9531
|
-
},
|
|
9536
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${md(t[e])}`).join(",")}}`;
|
|
9537
|
+
}, hd = (e) => {
|
|
9532
9538
|
if (e.filterType !== "join") return e;
|
|
9533
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
9539
|
+
let t = e, n = [...t.conditions ?? []].map(hd).sort((e, t) => md(e).localeCompare(md(t)));
|
|
9534
9540
|
return {
|
|
9535
9541
|
...t,
|
|
9536
9542
|
conditions: n
|
|
9537
9543
|
};
|
|
9538
|
-
},
|
|
9539
|
-
if (
|
|
9540
|
-
let n =
|
|
9541
|
-
if (n !==
|
|
9542
|
-
if (n) return ot(
|
|
9544
|
+
}, gd = (e, t) => {
|
|
9545
|
+
if (pd(e) && pd(t)) return !0;
|
|
9546
|
+
let n = dd(e);
|
|
9547
|
+
if (n !== dd(t)) return !1;
|
|
9548
|
+
if (n) return ot(hd(e), hd(t));
|
|
9543
9549
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
9544
9550
|
if (a.length !== o.length) return !1;
|
|
9545
9551
|
for (let e of a) if (!ot(r?.[e], i?.[e])) return !1;
|
|
9546
9552
|
return !0;
|
|
9547
|
-
},
|
|
9548
|
-
if (!t) return
|
|
9553
|
+
}, _d = (e, t, n) => {
|
|
9554
|
+
if (!t) return vd(e, n);
|
|
9549
9555
|
if (!e) return t;
|
|
9550
|
-
let r =
|
|
9556
|
+
let r = vd(e, n);
|
|
9551
9557
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
9552
9558
|
filterType: "join",
|
|
9553
9559
|
type: "AND",
|
|
@@ -9557,53 +9563,53 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9557
9563
|
type: "AND",
|
|
9558
9564
|
conditions: [r, t]
|
|
9559
9565
|
} : t;
|
|
9560
|
-
},
|
|
9566
|
+
}, vd = (e, t) => {
|
|
9561
9567
|
if (!e) return null;
|
|
9562
9568
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
9563
|
-
let n = e, r = n.conditions.map((e) =>
|
|
9569
|
+
let n = e, r = n.conditions.map((e) => vd(e, t)).filter((e) => e !== null);
|
|
9564
9570
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
9565
9571
|
filterType: "join",
|
|
9566
9572
|
type: n.type,
|
|
9567
9573
|
conditions: r
|
|
9568
9574
|
};
|
|
9569
|
-
},
|
|
9575
|
+
}, yd = (e, t) => {
|
|
9570
9576
|
if (!t) return [];
|
|
9571
9577
|
if (t.filterType !== "join") {
|
|
9572
9578
|
let n = t;
|
|
9573
9579
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
9574
9580
|
}
|
|
9575
9581
|
let n = t, r = [];
|
|
9576
|
-
for (let t of n.conditions) r.push(...
|
|
9582
|
+
for (let t of n.conditions) r.push(...yd(e, t));
|
|
9577
9583
|
return r;
|
|
9578
|
-
},
|
|
9584
|
+
}, bd = (e, t) => {
|
|
9579
9585
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
9580
9586
|
let n = t[e];
|
|
9581
9587
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
9582
|
-
},
|
|
9588
|
+
}, xd = (e, t) => {
|
|
9583
9589
|
if (!e) return null;
|
|
9584
|
-
if (
|
|
9585
|
-
let n =
|
|
9590
|
+
if (dd(e)) {
|
|
9591
|
+
let n = yd(t, e);
|
|
9586
9592
|
return n.length > 0 ? n : null;
|
|
9587
9593
|
}
|
|
9588
|
-
let n =
|
|
9594
|
+
let n = bd(t, e);
|
|
9589
9595
|
return n.length > 0 ? n : null;
|
|
9590
|
-
},
|
|
9596
|
+
}, Sd = (e, t) => {
|
|
9591
9597
|
if (!e) return e;
|
|
9592
|
-
if (
|
|
9598
|
+
if (dd(e)) return vd(e, t);
|
|
9593
9599
|
let n = { ...e };
|
|
9594
9600
|
return delete n[t], n;
|
|
9595
|
-
},
|
|
9596
|
-
if (
|
|
9597
|
-
let r =
|
|
9598
|
-
return
|
|
9601
|
+
}, Cd = (e, t, n, r) => {
|
|
9602
|
+
if (dd(e) || !e && r) {
|
|
9603
|
+
let r = Zu(t, n);
|
|
9604
|
+
return _d(e ?? null, r, t);
|
|
9599
9605
|
}
|
|
9600
9606
|
let i = { ...e || {} };
|
|
9601
9607
|
return i[t] = {
|
|
9602
9608
|
filterType: "set",
|
|
9603
9609
|
values: n
|
|
9604
9610
|
}, i;
|
|
9605
|
-
},
|
|
9606
|
-
if (
|
|
9611
|
+
}, wd = (e, t, n, r) => {
|
|
9612
|
+
if (dd(e) || !e && r) return Cd(e, t, n, r);
|
|
9607
9613
|
let i = { ...e || {} }, a = i[t];
|
|
9608
9614
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
9609
9615
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -9619,10 +9625,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9619
9625
|
values: n
|
|
9620
9626
|
};
|
|
9621
9627
|
return i;
|
|
9622
|
-
},
|
|
9623
|
-
let i = (
|
|
9624
|
-
return i.length === 0 ?
|
|
9625
|
-
},
|
|
9628
|
+
}, Td = (e, t, n, r) => {
|
|
9629
|
+
let i = (xd(e, t) ?? []).filter((e) => e !== n);
|
|
9630
|
+
return i.length === 0 ? Sd(e, t) : wd(e, t, i, r);
|
|
9631
|
+
}, Ed = (e) => !!(e && "filterType" in e), Dd = (e) => !!(e && !Ed(e)), Od = (e) => !!(e && !Ed(e)), kd = () => {
|
|
9626
9632
|
let e = xl(), t = P(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) => ({
|
|
9627
9633
|
hasMore: e.filterHasMoreMap.value[t],
|
|
9628
9634
|
totalCount: e.filterTotalCountMap.value[t],
|
|
@@ -9638,7 +9644,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9638
9644
|
});
|
|
9639
9645
|
let g = r(() => d.value != null), _ = r(() => {
|
|
9640
9646
|
let e = n.value;
|
|
9641
|
-
return e ?
|
|
9647
|
+
return e ? Ed(e) ? !fd(e) : Object.keys(e).length === 0 : !0;
|
|
9642
9648
|
}), v = r(() => {
|
|
9643
9649
|
let e = a.value || {};
|
|
9644
9650
|
return Object.keys(e).length === 0;
|
|
@@ -9676,9 +9682,9 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9676
9682
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
9677
9683
|
}, B = async (e, t) => {
|
|
9678
9684
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
9679
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
9685
|
+
if (t?.useStaged !== !1 && i.value != null) if (Dd(i.value)) {
|
|
9680
9686
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
9681
|
-
o = F(e &&
|
|
9687
|
+
o = F(e && Dd(e) ? e : void 0);
|
|
9682
9688
|
} else o = i.value;
|
|
9683
9689
|
let l = {
|
|
9684
9690
|
api: t?.api,
|
|
@@ -9760,7 +9766,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9760
9766
|
}, te = (e, t) => {
|
|
9761
9767
|
b.value[e] = t;
|
|
9762
9768
|
let r = [], i = n.value;
|
|
9763
|
-
if (
|
|
9769
|
+
if (Od(i)) {
|
|
9764
9770
|
let t = i[e];
|
|
9765
9771
|
if (t?.values) {
|
|
9766
9772
|
let e = t.values || [];
|
|
@@ -9777,7 +9783,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9777
9783
|
let t = n.value;
|
|
9778
9784
|
if (!t) return x.value;
|
|
9779
9785
|
let r = e.map((e) => {
|
|
9780
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
9786
|
+
let n = e.field ?? e.colId ?? "", r = n ? xd(t, n) : null;
|
|
9781
9787
|
return r && r.length > 0 ? {
|
|
9782
9788
|
colDef: e,
|
|
9783
9789
|
colId: n,
|
|
@@ -9810,9 +9816,9 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9810
9816
|
e.forEach((e) => n.add(e));
|
|
9811
9817
|
}, ce = () => {
|
|
9812
9818
|
oe.forEach((e) => K.add(e)), oe.clear();
|
|
9813
|
-
},
|
|
9819
|
+
}, le = () => {
|
|
9814
9820
|
oe.clear();
|
|
9815
|
-
},
|
|
9821
|
+
}, q = (e) => {
|
|
9816
9822
|
let t = new Set(e);
|
|
9817
9823
|
for (let n of e) {
|
|
9818
9824
|
let e = A.value[n] || [];
|
|
@@ -9835,7 +9841,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9835
9841
|
}, _e = (e) => t.value?.refreshData(e), ve = (e) => {
|
|
9836
9842
|
let t = /* @__PURE__ */ new Map();
|
|
9837
9843
|
if (!e) return t;
|
|
9838
|
-
if (
|
|
9844
|
+
if (Ed(e)) {
|
|
9839
9845
|
let n = (e) => {
|
|
9840
9846
|
if (e.filterType === "join") {
|
|
9841
9847
|
e.conditions.forEach(n);
|
|
@@ -9859,7 +9865,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9859
9865
|
};
|
|
9860
9866
|
return pe(n, (e, t) => {
|
|
9861
9867
|
let n = ye(e, t);
|
|
9862
|
-
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 &&
|
|
9868
|
+
K.forEach((e) => n.add(e)), K.clear(), n.size > 0 && q(n);
|
|
9863
9869
|
}, {
|
|
9864
9870
|
deep: !0,
|
|
9865
9871
|
debounce: 200,
|
|
@@ -9898,10 +9904,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9898
9904
|
refreshFiltersInBackground: E,
|
|
9899
9905
|
stageFilterChangesUntilDropdownCloses: D,
|
|
9900
9906
|
filterSearchMinLength: O,
|
|
9901
|
-
markOtherFieldsStale:
|
|
9907
|
+
markOtherFieldsStale: q,
|
|
9902
9908
|
noteFilterModelChange: se,
|
|
9903
9909
|
commitStagedFilterModelChanges: ce,
|
|
9904
|
-
clearStagedFilterModelChanges:
|
|
9910
|
+
clearStagedFilterModelChanges: le,
|
|
9905
9911
|
aggregateFieldMap: A,
|
|
9906
9912
|
registerAggregateField: W,
|
|
9907
9913
|
registeredFilterFields: j,
|
|
@@ -9922,14 +9928,14 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9922
9928
|
filterValuesHasMoreMap: f,
|
|
9923
9929
|
filterValuesTotalCountMap: p
|
|
9924
9930
|
};
|
|
9925
|
-
},
|
|
9931
|
+
}, Ad = kd, jd = (e) => {
|
|
9926
9932
|
O(zl, e);
|
|
9927
|
-
},
|
|
9933
|
+
}, Md = () => m(zl, null) || kd(), Nd = () => {
|
|
9928
9934
|
let e = m(zl, null);
|
|
9929
9935
|
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().");
|
|
9930
9936
|
return e;
|
|
9931
|
-
},
|
|
9932
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = Il(), l = m(Hl, k(null)), u =
|
|
9937
|
+
}, Pd = (e) => {
|
|
9938
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = Il(), l = m(Hl, k(null)), u = Md(), { 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: P, registerFilterField: F, unregisterFilterField: I, getStagedSelectedValues: L, setStagedSelectedValues: R, filterValueSearchTextMap: z, filterValuesHasMoreMap: B, filterValuesTotalCountMap: ee } = u, { computedFocuses: V, removeFocus: te, computedFocusType: H } = ju(), ne = m(Zl, k(!1)), re = m(Xl, k(!1)), ie = m(fu, k(!1)), W = r({
|
|
9933
9939
|
get: () => Y.value ? L(J.value) : b(J.value),
|
|
9934
9940
|
set: (e) => {
|
|
9935
9941
|
Y.value ? R(J.value, e) : C(J.value, e);
|
|
@@ -9941,11 +9947,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9941
9947
|
return [...n, ...i];
|
|
9942
9948
|
}
|
|
9943
9949
|
return ze(e);
|
|
9944
|
-
}), ae = r(() => _.value[J.value] ?? !1), K = r(() => A.value || $(t.value).prefetchFilterValues === !0), oe = r(() => (o?.value ?? !1) && (s?.value ?? !1) && W.value.length === 0 && Q.value.length === 0), se = r(() => o?.value ?? !1), ce = r(() => se.value && (s?.value ?? !1)),
|
|
9950
|
+
}), ae = r(() => _.value[J.value] ?? !1), K = r(() => A.value || $(t.value).prefetchFilterValues === !0), oe = r(() => (o?.value ?? !1) && (s?.value ?? !1) && W.value.length === 0 && Q.value.length === 0), se = r(() => o?.value ?? !1), ce = r(() => se.value && (s?.value ?? !1)), le = r({
|
|
9945
9951
|
get: () => z.value[J.value] ?? "",
|
|
9946
9952
|
set: (e) => S(J.value, e)
|
|
9947
|
-
}),
|
|
9948
|
-
let e =
|
|
9953
|
+
}), q = r(() => $(t.value).filterSearchMinLength ?? M.value), ue = r(() => {
|
|
9954
|
+
let e = q.value ?? 0, t = le.value?.length ?? 0;
|
|
9949
9955
|
return e > 0 && t > 0 && t < e;
|
|
9950
9956
|
}), 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(() => as(t.value)), _e = r(() => os(t.value)), ve = r(() => ss(t.value)), ye = r(() => $(t.value).filterOptionsSortDescription), be = r(() => $(t.value).filterOptionsSortTooltip), xe = r(() => {
|
|
9951
9957
|
let e = $(t.value).filterSearch;
|
|
@@ -9958,8 +9964,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9958
9964
|
let n = [];
|
|
9959
9965
|
if (ie.value && l.value) {
|
|
9960
9966
|
let e = l.value.getAdvancedFilterModel();
|
|
9961
|
-
n =
|
|
9962
|
-
} else n =
|
|
9967
|
+
n = yd(J.value, e);
|
|
9968
|
+
} else n = ud(t.value, p.value);
|
|
9963
9969
|
e ? W.value = n : W.value = Array.from(new Set([...b(J.value), ...n]));
|
|
9964
9970
|
}, Ie = (e) => {
|
|
9965
9971
|
let t = (n) => {
|
|
@@ -9987,7 +9993,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
9987
9993
|
}
|
|
9988
9994
|
return;
|
|
9989
9995
|
}
|
|
9990
|
-
let s = await
|
|
9996
|
+
let s = await cd(l.value, t.value);
|
|
9991
9997
|
if (s) {
|
|
9992
9998
|
if (x.value && o) {
|
|
9993
9999
|
s.refreshFilterValues();
|
|
@@ -10140,7 +10146,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10140
10146
|
colDef: t.value,
|
|
10141
10147
|
field: J.value,
|
|
10142
10148
|
filterModel: p.value ?? void 0,
|
|
10143
|
-
query:
|
|
10149
|
+
query: le.value || void 0,
|
|
10144
10150
|
offset: r,
|
|
10145
10151
|
parentId: i,
|
|
10146
10152
|
reason: "child-load-more"
|
|
@@ -10202,7 +10208,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10202
10208
|
i?.();
|
|
10203
10209
|
return;
|
|
10204
10210
|
}
|
|
10205
|
-
let t = W.value.slice(), n = e.map((e) => e.id)
|
|
10211
|
+
let t = W.value.slice(), n = e.map((e) => e.id);
|
|
10212
|
+
if (ve.value && n.length > 1) {
|
|
10213
|
+
let e = new Set(t), r = n.filter((t) => !e.has(t));
|
|
10214
|
+
n = [r.length > 0 ? r[r.length - 1] : n[n.length - 1]];
|
|
10215
|
+
}
|
|
10216
|
+
let r = xt;
|
|
10206
10217
|
xt = !1, r || Rl(() => {
|
|
10207
10218
|
let e = new Set(t), r = new Set(n);
|
|
10208
10219
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
@@ -10224,27 +10235,27 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10224
10235
|
if (e !== void 0 && n !== void 0) {
|
|
10225
10236
|
let r = e || J.value, i = new Set([J.value, r]), a = n;
|
|
10226
10237
|
if (ie.value) {
|
|
10227
|
-
let e =
|
|
10238
|
+
let e = Zu(r, a || []);
|
|
10228
10239
|
if (Y.value) {
|
|
10229
|
-
let t = h.value, n =
|
|
10240
|
+
let t = h.value, n = _d(t, e, r);
|
|
10230
10241
|
N(i, !0), h.value = n;
|
|
10231
10242
|
return;
|
|
10232
10243
|
}
|
|
10233
|
-
let t =
|
|
10244
|
+
let t = _d(l.value.getAdvancedFilterModel(), e, r);
|
|
10234
10245
|
N(i), v(() => {
|
|
10235
10246
|
l.value?.setAdvancedFilterModel(t);
|
|
10236
10247
|
});
|
|
10237
10248
|
return;
|
|
10238
10249
|
}
|
|
10239
10250
|
if (Y.value) {
|
|
10240
|
-
let e = await
|
|
10251
|
+
let e = await ld(l.value, t.value, a);
|
|
10241
10252
|
N(i, !0), h.value = {
|
|
10242
10253
|
...h.value,
|
|
10243
10254
|
[r]: e
|
|
10244
10255
|
};
|
|
10245
10256
|
return;
|
|
10246
10257
|
}
|
|
10247
|
-
let o = await
|
|
10258
|
+
let o = await ld(l.value, t.value, a);
|
|
10248
10259
|
N(i), l.value.setColumnFilterModel(r, o).then(() => {
|
|
10249
10260
|
l.value && l.value.onFilterChanged();
|
|
10250
10261
|
});
|
|
@@ -10258,11 +10269,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10258
10269
|
for (let t of e) {
|
|
10259
10270
|
let e = i[t] || [];
|
|
10260
10271
|
if (e.length > 0) {
|
|
10261
|
-
let n =
|
|
10272
|
+
let n = Zu(t, e);
|
|
10262
10273
|
n && r.push(n);
|
|
10263
10274
|
}
|
|
10264
10275
|
}
|
|
10265
|
-
for (let t of e) n =
|
|
10276
|
+
for (let t of e) n = _d(n, null, t);
|
|
10266
10277
|
if (r.length > 0) {
|
|
10267
10278
|
let e = r.length === 1 ? r[0] : {
|
|
10268
10279
|
filterType: "join",
|
|
@@ -10276,23 +10287,23 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10276
10287
|
} : e;
|
|
10277
10288
|
}
|
|
10278
10289
|
} else {
|
|
10279
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
10280
|
-
n =
|
|
10290
|
+
let t = W.value.length > 0 ? W.value : null, r = Zu(J.value, t || []);
|
|
10291
|
+
n = _d(n, r, J.value);
|
|
10281
10292
|
let i = !1;
|
|
10282
10293
|
if (a?.value) {
|
|
10283
10294
|
let e = o.filterGroup?.fields ?? [];
|
|
10284
10295
|
for (let t of e) {
|
|
10285
10296
|
let e = a.value.has(t);
|
|
10286
|
-
if (e ===
|
|
10297
|
+
if (e === yd(t, n).includes("true")) continue;
|
|
10287
10298
|
i = !0, s.add(t);
|
|
10288
|
-
let r = e ?
|
|
10289
|
-
n =
|
|
10299
|
+
let r = e ? Zu(t, ["true"]) : null;
|
|
10300
|
+
n = _d(n, r, t);
|
|
10290
10301
|
}
|
|
10291
10302
|
}
|
|
10292
|
-
let c = W.value.filter((e) => e !== null), l =
|
|
10303
|
+
let c = W.value.filter((e) => e !== null), l = yd(J.value, e), u = new Set(l), d = new Set(c);
|
|
10293
10304
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
10294
10305
|
}
|
|
10295
|
-
if (r?.skipIfUnchanged &&
|
|
10306
|
+
if (r?.skipIfUnchanged && gd(e, n)) return;
|
|
10296
10307
|
if (N(Z.value ? je() : new Set([J.value, ...s]), Y.value), Y.value) h.value = n;
|
|
10297
10308
|
else {
|
|
10298
10309
|
let e = n;
|
|
@@ -10304,24 +10315,24 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10304
10315
|
}
|
|
10305
10316
|
let s = W.value.length > 0 ? W.value : null;
|
|
10306
10317
|
if (r?.skipIfUnchanged) {
|
|
10307
|
-
let e =
|
|
10318
|
+
let e = ud(t.value, l.value.getFilterModel());
|
|
10308
10319
|
if (Me(W.value, e)) return;
|
|
10309
10320
|
}
|
|
10310
10321
|
if (Y.value) {
|
|
10311
|
-
let e = await
|
|
10322
|
+
let e = await ld(l.value, t.value, s);
|
|
10312
10323
|
N(new Set([J.value]), !0), h.value = {
|
|
10313
10324
|
...h.value,
|
|
10314
10325
|
[J.value]: e
|
|
10315
10326
|
};
|
|
10316
10327
|
return;
|
|
10317
10328
|
}
|
|
10318
|
-
let c = await
|
|
10329
|
+
let c = await ld(l.value, t.value, s);
|
|
10319
10330
|
N(new Set([J.value])), l.value.setColumnFilterModel(J.value, c).then(() => {
|
|
10320
10331
|
l.value && l.value.onFilterChanged();
|
|
10321
10332
|
});
|
|
10322
10333
|
}, bt = r(() => Y.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
10323
10334
|
xt = !0;
|
|
10324
|
-
let n =
|
|
10335
|
+
let n = le.value || "";
|
|
10325
10336
|
Rl(() => {
|
|
10326
10337
|
Ll("filter_bulk_action", {
|
|
10327
10338
|
filter_name: fe.value,
|
|
@@ -10342,7 +10353,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10342
10353
|
source: n,
|
|
10343
10354
|
current_selection_count: r,
|
|
10344
10355
|
location: bt.value,
|
|
10345
|
-
search_query:
|
|
10356
|
+
search_query: le.value || ""
|
|
10346
10357
|
}, c());
|
|
10347
10358
|
}, Tt = (e) => {
|
|
10348
10359
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
@@ -10406,7 +10417,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10406
10417
|
}, At = () => {
|
|
10407
10418
|
he.value = ze(w(J.value)), X.value = !0;
|
|
10408
10419
|
}, jt = () => {
|
|
10409
|
-
X.value = !1, he.value = [],
|
|
10420
|
+
X.value = !1, he.value = [], le.value = "", xt = !1, !o?.value && j.value && !Y.value && (Z.value ? Pt(Q.value, { skipIfUnchanged: !0 }) : yt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
10410
10421
|
}, Mt = async (e) => {
|
|
10411
10422
|
if (!l.value) return;
|
|
10412
10423
|
let n = G.value.length, r = !e.parentId;
|
|
@@ -10433,7 +10444,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10433
10444
|
if (n?.skipIfUnchanged && r === Ne.value) return Q.value = e, !1;
|
|
10434
10445
|
if (Q.value = e, ut(e), us(t.value).length === 0) return !1;
|
|
10435
10446
|
let a = Y.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
10436
|
-
if (n?.skipIfUnchanged &&
|
|
10447
|
+
if (n?.skipIfUnchanged && gd(a, o)) return Ne.value = r, !1;
|
|
10437
10448
|
if (Y.value) h.value = o;
|
|
10438
10449
|
else {
|
|
10439
10450
|
let e = o;
|
|
@@ -10467,10 +10478,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10467
10478
|
if (Z.value) {
|
|
10468
10479
|
let r = us(t.value);
|
|
10469
10480
|
for (let t of r) {
|
|
10470
|
-
let r =
|
|
10481
|
+
let r = yd(t, n);
|
|
10471
10482
|
e.push(...r);
|
|
10472
10483
|
}
|
|
10473
|
-
} else e =
|
|
10484
|
+
} else e = yd(J.value, n);
|
|
10474
10485
|
W.value = e;
|
|
10475
10486
|
return;
|
|
10476
10487
|
}
|
|
@@ -10483,11 +10494,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10483
10494
|
return;
|
|
10484
10495
|
}
|
|
10485
10496
|
if (ie.value) {
|
|
10486
|
-
let e = p.value, t =
|
|
10497
|
+
let e = p.value, t = yd(J.value, e);
|
|
10487
10498
|
Fe(W.value.some((e) => e !== null && !t.includes(e)));
|
|
10488
10499
|
return;
|
|
10489
10500
|
}
|
|
10490
|
-
let e =
|
|
10501
|
+
let e = ud(t.value, p.value);
|
|
10491
10502
|
Fe(W.value.some((t) => !e.includes(t)));
|
|
10492
10503
|
}, { deep: !0 }), U(() => g.value, () => {
|
|
10493
10504
|
W.value = [], Q.value = [], Ne.value = "[]";
|
|
@@ -10497,7 +10508,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10497
10508
|
K.value && !oe.value && !X.value && (Y.value ? setTimeout(async () => {
|
|
10498
10509
|
X.value || await Be(!0);
|
|
10499
10510
|
}, 2e3) : await Be(!0)), Fe();
|
|
10500
|
-
}), pe(() =>
|
|
10511
|
+
}), pe(() => le.value, async () => {
|
|
10501
10512
|
if (X.value) {
|
|
10502
10513
|
if (ue.value) {
|
|
10503
10514
|
f(J.value);
|
|
@@ -10520,8 +10531,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10520
10531
|
}, c());
|
|
10521
10532
|
});
|
|
10522
10533
|
}, Bt = null;
|
|
10523
|
-
return pe(() =>
|
|
10524
|
-
if (!e ||
|
|
10534
|
+
return pe(() => le.value, (e) => {
|
|
10535
|
+
if (!e || le.value !== e || ue.value) {
|
|
10525
10536
|
Bt = null;
|
|
10526
10537
|
return;
|
|
10527
10538
|
}
|
|
@@ -10533,12 +10544,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10533
10544
|
}, { debounce: 500 }), U(() => ae.value, (e) => {
|
|
10534
10545
|
if (e || Bt == null) return;
|
|
10535
10546
|
let t = Bt;
|
|
10536
|
-
Bt = null,
|
|
10547
|
+
Bt = null, le.value === t && zt(t);
|
|
10537
10548
|
}), T(() => {
|
|
10538
10549
|
F(J.value);
|
|
10539
10550
|
let e = us(t.value);
|
|
10540
10551
|
if (e.length && P(J.value, e), Fe(), Z.value && ie.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
10541
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && ie.value ? us(t.value).some((e) =>
|
|
10552
|
+
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && ie.value ? us(t.value).some((e) => yd(e, p.value).length > 0) : W.value.length > 0;
|
|
10542
10553
|
e && n && d(t.value, {
|
|
10543
10554
|
api: l.value,
|
|
10544
10555
|
filterModel: p.value ?? void 0
|
|
@@ -10552,8 +10563,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10552
10563
|
filterValues: G,
|
|
10553
10564
|
isLoading: ae,
|
|
10554
10565
|
isSeeMoreLoading: me,
|
|
10555
|
-
filterSearchText:
|
|
10556
|
-
filterSearchMinLength:
|
|
10566
|
+
filterSearchText: le,
|
|
10567
|
+
filterSearchMinLength: q,
|
|
10557
10568
|
belowFilterSearchMinLength: ue,
|
|
10558
10569
|
rowsLoading: ne,
|
|
10559
10570
|
gridApi: l,
|
|
@@ -10598,7 +10609,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10598
10609
|
disableFilterValue: Ye,
|
|
10599
10610
|
updateFilterModelWithSelectedValues: yt
|
|
10600
10611
|
};
|
|
10601
|
-
},
|
|
10612
|
+
}, Fd = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
10602
10613
|
let i = k(null), a = k(null), o = k(null), s = k(null), c = (e) => {
|
|
10603
10614
|
let t = e.parentElement;
|
|
10604
10615
|
for (; t && t !== document.body;) {
|
|
@@ -10649,26 +10660,26 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10649
10660
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
10650
10661
|
}
|
|
10651
10662
|
};
|
|
10652
|
-
},
|
|
10663
|
+
}, Id = {
|
|
10653
10664
|
key: 0,
|
|
10654
10665
|
role: "list",
|
|
10655
10666
|
class: "pv-popover-list"
|
|
10656
|
-
},
|
|
10667
|
+
}, Ld = ["data-active"], Rd = { key: 1 }, zd = {
|
|
10657
10668
|
key: 1,
|
|
10658
10669
|
class: "pv-flex pv-inset-square-8",
|
|
10659
10670
|
style: { "justify-content": "center" }
|
|
10660
|
-
},
|
|
10671
|
+
}, Bd = /* @__PURE__ */ d({
|
|
10661
10672
|
__name: "FilterGroupMenu",
|
|
10662
10673
|
props: { filterColDef: {} },
|
|
10663
10674
|
setup(e, { expose: n }) {
|
|
10664
|
-
let s = e, c = m(Hl, k(null)), d = m(Zl, k(!1)), { filterModel: f, filterStoreHandler: p, noteFilterModelChange: h, stageFilterChangesUntilDropdownCloses: g } =
|
|
10675
|
+
let s = e, c = m(Hl, k(null)), d = m(Zl, k(!1)), { filterModel: f, filterStoreHandler: p, noteFilterModelChange: h, stageFilterChangesUntilDropdownCloses: g } = Md(), _ = k(/* @__PURE__ */ new Set()), b = k(/* @__PURE__ */ new Set()), x = k(!1), S = k(null), C = r(() => $(s.filterColDef).filterGroup), w = (e) => {
|
|
10665
10676
|
let t = new Set(e);
|
|
10666
10677
|
s.filterColDef.field && t.add(s.filterColDef.field), h(t);
|
|
10667
|
-
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } =
|
|
10678
|
+
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } = Fd({
|
|
10668
10679
|
alignment: "top right",
|
|
10669
10680
|
useTeleport: !0
|
|
10670
10681
|
}), N = (e) => {
|
|
10671
|
-
let t =
|
|
10682
|
+
let t = xd(f.value, e);
|
|
10672
10683
|
return t !== null && t.length > 0 && t.includes("true");
|
|
10673
10684
|
}, P = (e) => c.value?.getColumnDef(e)?.headerName ?? e, F = async () => {
|
|
10674
10685
|
if (!p.value || !c.value) return;
|
|
@@ -10690,7 +10701,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10690
10701
|
if (!c.value) return;
|
|
10691
10702
|
let t = _.value.has(e);
|
|
10692
10703
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
10693
|
-
let n =
|
|
10704
|
+
let n = _d(c.value.getAdvancedFilterModel(), t ? null : Zu(e, ["true"]), e);
|
|
10694
10705
|
w(new Set([e])), v(() => {
|
|
10695
10706
|
c.value?.setAdvancedFilterModel(n);
|
|
10696
10707
|
});
|
|
@@ -10702,7 +10713,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10702
10713
|
return;
|
|
10703
10714
|
}
|
|
10704
10715
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
10705
|
-
for (let r of e) _.value.has(r) || (t =
|
|
10716
|
+
for (let r of e) _.value.has(r) || (t = _d(t, Zu(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
10706
10717
|
n.size > 0 && (w(n), v(() => {
|
|
10707
10718
|
c.value?.setAdvancedFilterModel(t);
|
|
10708
10719
|
}));
|
|
@@ -10713,7 +10724,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10713
10724
|
return;
|
|
10714
10725
|
}
|
|
10715
10726
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
10716
|
-
for (let n of C.value.fields) e =
|
|
10727
|
+
for (let n of C.value.fields) e = vd(e, n), _.value.delete(n), t.add(n);
|
|
10717
10728
|
w(t), v(() => {
|
|
10718
10729
|
c.value?.setAdvancedFilterModel(e);
|
|
10719
10730
|
});
|
|
@@ -10776,7 +10787,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10776
10787
|
}
|
|
10777
10788
|
}, {
|
|
10778
10789
|
default: W(() => [
|
|
10779
|
-
x.value && H.value.length > 0 ? (D(), o("ul",
|
|
10790
|
+
x.value && H.value.length > 0 ? (D(), o("ul", Id, [(D(!0), o(t, null, A(H.value, (e) => (D(), o(t, { key: e.field }, [e.isAvailable ? (D(), o("li", {
|
|
10780
10791
|
key: 0,
|
|
10781
10792
|
"data-active": e.isSelected ? "true" : null
|
|
10782
10793
|
}, [u(_o, {
|
|
@@ -10791,7 +10802,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10791
10802
|
"text",
|
|
10792
10803
|
"selectedIds",
|
|
10793
10804
|
"onHandleSelected"
|
|
10794
|
-
])], 8,
|
|
10805
|
+
])], 8, Ld)) : (D(), o("li", Rd, [u(wa, {
|
|
10795
10806
|
variant: "dark",
|
|
10796
10807
|
size: "sm",
|
|
10797
10808
|
"tooltip-position": "bottom-right",
|
|
@@ -10808,7 +10819,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10808
10819
|
"tooltip-content": W(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
10809
10820
|
_: 2
|
|
10810
10821
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
10811
|
-
x.value && V.value ? (D(), o("div",
|
|
10822
|
+
x.value && V.value ? (D(), o("div", zd, [u(Dt, { variant: "dark" })])) : a("", !0),
|
|
10812
10823
|
x.value ? (D(), i(wc, {
|
|
10813
10824
|
key: 2,
|
|
10814
10825
|
class: "pv-border-top pv-inset-square-8",
|
|
@@ -10822,7 +10833,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10822
10833
|
_: 1
|
|
10823
10834
|
}, 8, ["class", "css-custom-properties"])])), [[z(et), [B, { ignore: [".pv-popover"] }]]]);
|
|
10824
10835
|
}
|
|
10825
|
-
}),
|
|
10836
|
+
}), Vd = {
|
|
10826
10837
|
key: 0,
|
|
10827
10838
|
role: "list",
|
|
10828
10839
|
class: "pv-flex pv-stack-4",
|
|
@@ -10830,37 +10841,37 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10830
10841
|
"--flex-wrap": "wrap",
|
|
10831
10842
|
"max-width": "100%"
|
|
10832
10843
|
}
|
|
10833
|
-
},
|
|
10844
|
+
}, Hd = {
|
|
10834
10845
|
key: 0,
|
|
10835
10846
|
style: {
|
|
10836
10847
|
"max-width": "100%",
|
|
10837
10848
|
"line-height": "1rem"
|
|
10838
10849
|
}
|
|
10839
|
-
},
|
|
10850
|
+
}, Ud = {
|
|
10840
10851
|
key: 0,
|
|
10841
10852
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
10842
10853
|
style: { "--inset-size": "4px" }
|
|
10843
|
-
},
|
|
10854
|
+
}, Wd = {
|
|
10844
10855
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
10845
10856
|
style: { "--inset-size": "8px" }
|
|
10846
|
-
},
|
|
10857
|
+
}, Gd = {
|
|
10847
10858
|
class: "pv-inset-inline",
|
|
10848
10859
|
style: { "--inset-size": "8px" }
|
|
10849
|
-
},
|
|
10860
|
+
}, Kd = {
|
|
10850
10861
|
key: 0,
|
|
10851
10862
|
class: "pv-full-width"
|
|
10852
|
-
},
|
|
10863
|
+
}, qd = {
|
|
10853
10864
|
key: 0,
|
|
10854
10865
|
class: "pv-flex-inline",
|
|
10855
10866
|
style: { "max-width": "100%" }
|
|
10856
|
-
},
|
|
10867
|
+
}, Jd = {
|
|
10857
10868
|
role: "list",
|
|
10858
10869
|
class: "pv-flex",
|
|
10859
10870
|
style: {
|
|
10860
10871
|
"--flex-wrap": "wrap",
|
|
10861
10872
|
"max-width": "100%"
|
|
10862
10873
|
}
|
|
10863
|
-
},
|
|
10874
|
+
}, Yd = { class: "pv-text-subdued pv-text-body-xxs" }, Xd = 4, Zd = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
10864
10875
|
__name: "SetFilter",
|
|
10865
10876
|
props: {
|
|
10866
10877
|
enableFocusView: {
|
|
@@ -10889,43 +10900,43 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10889
10900
|
"handle-settings-icon"
|
|
10890
10901
|
],
|
|
10891
10902
|
setup(e, { emit: n }) {
|
|
10892
|
-
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: P, filterField: I, filterDisplayName: L, isInFilterPanel: B,
|
|
10903
|
+
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: P, filterField: I, filterDisplayName: L, isInFilterPanel: B, isSingleSelect: ee, suggestedValues: V, displayedFilterValues: te, selectedFilterValues: H, showSearchBar: ne, filterSearchPlaceholder: re, emptyFilterResultsRenderer: ie, filterOptionsLoadingText: U, filterOptionsRenderer: G, filterHeaderRenderer: ae, 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 } = Pd({
|
|
10893
10904
|
filterColDef: R(d, "filterColDef"),
|
|
10894
10905
|
filterStyle: R(d, "filterStyle"),
|
|
10895
10906
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
10896
10907
|
filterGroupStagedFields: x,
|
|
10897
10908
|
readOnly: R(d, "readOnly"),
|
|
10898
10909
|
disableUnselected: R(d, "disableUnselected")
|
|
10899
|
-
}),
|
|
10910
|
+
}), Se = Il(), { handleFocusUpdate: Ce, isFocused: we, removeFocus: Te, isFocusable: Ee, canRemoveFocus: De } = ju(), Oe = (e) => {
|
|
10900
10911
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
10901
10912
|
if (e.id.startsWith("__")) {
|
|
10902
10913
|
let t = e.id.slice(2).split("__");
|
|
10903
10914
|
if (t.length >= 2) return t[1];
|
|
10904
10915
|
}
|
|
10905
10916
|
return e.id;
|
|
10906
|
-
},
|
|
10907
|
-
if (
|
|
10917
|
+
}, ke = r(() => {
|
|
10918
|
+
if (Ee(fs(d.filterColDef) ? us(d.filterColDef) : [I.value])) return {
|
|
10908
10919
|
icon: "focus",
|
|
10909
|
-
isDisabled: (e) => !
|
|
10920
|
+
isDisabled: (e) => !Ee([e.context?.colField || I.value]),
|
|
10910
10921
|
tooltipText: (e) => {
|
|
10911
10922
|
let t = e.context?.colField || I.value;
|
|
10912
|
-
if (!
|
|
10913
|
-
let n =
|
|
10914
|
-
return n && !
|
|
10923
|
+
if (!Ee([t])) return `Group by ${ge(t)} to enable ${d.focusText}`;
|
|
10924
|
+
let n = we(ye.value ? Oe(e) : e.id, t);
|
|
10925
|
+
return n && !De() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
10915
10926
|
},
|
|
10916
10927
|
action: (e) => {
|
|
10917
|
-
e && !C.value.includes(e.id) &&
|
|
10928
|
+
e && !C.value.includes(e.id) && de(e.id, e.context?.colField);
|
|
10918
10929
|
let t = e.context?.colField || I.value;
|
|
10919
|
-
|
|
10930
|
+
Ce(ye.value ? Oe(e) : e.id, t);
|
|
10920
10931
|
},
|
|
10921
10932
|
alwaysShow: (e) => {
|
|
10922
10933
|
let t = e.context?.colField || I.value;
|
|
10923
|
-
return
|
|
10934
|
+
return we(ye.value ? Oe(e) : e.id, t);
|
|
10924
10935
|
}
|
|
10925
10936
|
};
|
|
10926
|
-
}),
|
|
10937
|
+
}), Ae = (e) => {
|
|
10927
10938
|
if (!e) return null;
|
|
10928
|
-
if (!
|
|
10939
|
+
if (!ye.value) return e;
|
|
10929
10940
|
let t = q(e);
|
|
10930
10941
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
10931
10942
|
if (e.startsWith("__")) {
|
|
@@ -10933,23 +10944,23 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10933
10944
|
if (t.length >= 2) return t[1];
|
|
10934
10945
|
}
|
|
10935
10946
|
return e;
|
|
10936
|
-
},
|
|
10937
|
-
|
|
10938
|
-
let t = q(e)?.colField || I.value, n =
|
|
10939
|
-
|
|
10940
|
-
},
|
|
10947
|
+
}, Z = (e) => {
|
|
10948
|
+
fe(e, void 0, "remove_chip");
|
|
10949
|
+
let t = q(e)?.colField || I.value, n = Ae(e);
|
|
10950
|
+
we(n, t) && De() && Te(n);
|
|
10951
|
+
}, je = m(fu, k(!1)), Me = r(() => !!$(d.filterColDef).filterGroup && je.value), Q = null, Ne = null, Pe = () => {
|
|
10941
10952
|
try {
|
|
10942
|
-
return
|
|
10953
|
+
return ye.value ? JSON.stringify(be.value) : JSON.stringify([...C.value].sort());
|
|
10943
10954
|
} catch {
|
|
10944
10955
|
return null;
|
|
10945
10956
|
}
|
|
10946
|
-
}, Pe = () => {
|
|
10947
|
-
Me = Date.now(), Q = Ne(), pe(), ue(!0);
|
|
10948
10957
|
}, Fe = () => {
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
let
|
|
10958
|
+
Q = Date.now(), Ne = Pe(), X(), J(!0);
|
|
10959
|
+
}, Ie = () => {
|
|
10960
|
+
let e = Q == null ? 0 : Date.now() - Q;
|
|
10952
10961
|
Q = null;
|
|
10962
|
+
let t = Pe(), n = Ne != null && t != null && Ne !== t;
|
|
10963
|
+
Ne = null;
|
|
10953
10964
|
let r = C.value.length;
|
|
10954
10965
|
Rl(() => {
|
|
10955
10966
|
Ll("filter_dropdown_closed", {
|
|
@@ -10958,47 +10969,48 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
10958
10969
|
selection_count: r,
|
|
10959
10970
|
selection_changed: n,
|
|
10960
10971
|
dwell_ms: e,
|
|
10961
|
-
location:
|
|
10962
|
-
},
|
|
10972
|
+
location: pe.value
|
|
10973
|
+
}, Se());
|
|
10963
10974
|
}), v(() => {
|
|
10964
|
-
|
|
10975
|
+
me(), f("filter-closed");
|
|
10965
10976
|
});
|
|
10966
|
-
},
|
|
10977
|
+
}, Le = (e) => {
|
|
10967
10978
|
let t = q(e)?.colField || I.value;
|
|
10968
|
-
return
|
|
10969
|
-
},
|
|
10970
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [z(B) && z(C).length > 0 ? (D(), o("ul",
|
|
10971
|
-
label: z(
|
|
10972
|
-
showClear: !e.readOnly && (!
|
|
10979
|
+
return we(Ae(e), t);
|
|
10980
|
+
}, Re = r(() => S.value > 0 ? !0 : ye.value ? be.value.length > 0 : C.value.length > 0);
|
|
10981
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [z(B) && z(C).length > 0 ? (D(), o("ul", Vd, [(D(!0), o(t, null, A(z(C), (n) => (D(), o(t, { key: `${z(L)}-${n}` }, [z(ue)(n) ? a("", !0) : (D(), o("li", Hd, [u(nc, {
|
|
10982
|
+
label: z(le)(n) || "",
|
|
10983
|
+
showClear: !e.readOnly && (!Le(n) || z(De)()),
|
|
10973
10984
|
disabled: e.readOnly,
|
|
10974
|
-
onHandleClose: (e) =>
|
|
10985
|
+
onHandleClose: (e) => Z(n)
|
|
10975
10986
|
}, null, 8, [
|
|
10976
10987
|
"label",
|
|
10977
10988
|
"showClear",
|
|
10978
10989
|
"disabled",
|
|
10979
10990
|
"onHandleClose"
|
|
10980
10991
|
])]))], 64))), 128))])) : a("", !0), u(z(Mc), {
|
|
10981
|
-
modelValue: z(
|
|
10982
|
-
"onUpdate:modelValue": r[1] ||= (e) => h(
|
|
10983
|
-
disabled: !z(B) && e.readOnly && e.disableUnselected && !
|
|
10992
|
+
modelValue: z(H),
|
|
10993
|
+
"onUpdate:modelValue": r[1] ||= (e) => h(H) ? H.value = e : null,
|
|
10994
|
+
disabled: !z(B) && e.readOnly && e.disableUnselected && !Re.value,
|
|
10984
10995
|
searchInput: z(E),
|
|
10985
10996
|
"onUpdate:searchInput": r[2] ||= (e) => h(E) ? E.value = e : null,
|
|
10986
|
-
selectionState: z(
|
|
10987
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
10997
|
+
selectionState: z(xe),
|
|
10998
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(xe) ? xe.value = e : null,
|
|
10988
10999
|
"data-horizontal-filter-field": z(B) ? void 0 : z(I),
|
|
10989
11000
|
label: z(B) ? "" : z(L),
|
|
10990
11001
|
rumFilterName: z(L),
|
|
10991
11002
|
highlightSearchText: !0,
|
|
10992
11003
|
icon: z(B) && !e.readOnly ? "add-circle" : void 0,
|
|
10993
11004
|
variant: z(B) ? "ghost" : "secondary",
|
|
10994
|
-
counterPosition: !z(B) &&
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
11005
|
+
counterPosition: !z(B) && Re.value ? void 0 : "none",
|
|
11006
|
+
singleSelect: z(ee),
|
|
11007
|
+
menuActionsVariant: e.readOnly || z(ee) ? null : "select-clear",
|
|
11008
|
+
disableSearchInput: e.readOnly || !z(ne),
|
|
11009
|
+
searchPlaceholder: z(re),
|
|
10998
11010
|
overlayTrigger: z(B),
|
|
10999
|
-
options: z(
|
|
11000
|
-
optionsRenderer: z(
|
|
11001
|
-
optionsAction:
|
|
11011
|
+
options: z(te),
|
|
11012
|
+
optionsRenderer: z(G),
|
|
11013
|
+
optionsAction: ke.value,
|
|
11002
11014
|
popoverCssProperties: {
|
|
11003
11015
|
maxHeight: "400px",
|
|
11004
11016
|
maxWidth: z(B) ? "300px" : "400px",
|
|
@@ -11009,27 +11021,27 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11009
11021
|
disableDropdownIcon: !!z(B),
|
|
11010
11022
|
groupings: ["preferences", "suggestions"],
|
|
11011
11023
|
isLoading: z(w),
|
|
11012
|
-
loadingText: z(
|
|
11024
|
+
loadingText: z(U),
|
|
11013
11025
|
isSeeMoreLoading: z(T),
|
|
11014
|
-
hasMoreOptions: z(
|
|
11015
|
-
totalOptionCount: z(
|
|
11016
|
-
enableCascadeSelection: z(
|
|
11017
|
-
enableChildExpansion: z(
|
|
11018
|
-
parentSelectsAllChildren: z(
|
|
11019
|
-
countSelectedParents: z(
|
|
11026
|
+
hasMoreOptions: z(_e),
|
|
11027
|
+
totalOptionCount: z(ve),
|
|
11028
|
+
enableCascadeSelection: z(ye),
|
|
11029
|
+
enableChildExpansion: z(ye),
|
|
11030
|
+
parentSelectsAllChildren: z(ye),
|
|
11031
|
+
countSelectedParents: z(ye),
|
|
11020
11032
|
additionalCounter: S.value,
|
|
11021
11033
|
slotContext: {
|
|
11022
11034
|
gridApi: z(P),
|
|
11023
11035
|
filterColDef: e.filterColDef,
|
|
11024
11036
|
rowsLoading: z(M)
|
|
11025
11037
|
},
|
|
11026
|
-
onDropdownOpen:
|
|
11027
|
-
onDropdownClosed:
|
|
11028
|
-
onSeeMore: z(
|
|
11029
|
-
onSelectAll: r[4] ||= (e) => z(
|
|
11030
|
-
onClearAll: r[5] ||= (e) => z(
|
|
11038
|
+
onDropdownOpen: Fe,
|
|
11039
|
+
onDropdownClosed: Ie,
|
|
11040
|
+
onSeeMore: z(he),
|
|
11041
|
+
onSelectAll: r[4] ||= (e) => z(Y)("select_all", e),
|
|
11042
|
+
onClearAll: r[5] ||= (e) => z(Y)("clear_all", e)
|
|
11031
11043
|
}, c({
|
|
11032
|
-
preferences: W(() => [s("div",
|
|
11044
|
+
preferences: W(() => [s("div", Wd, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(z(qi), {
|
|
11033
11045
|
variant: "dark",
|
|
11034
11046
|
size: "sm",
|
|
11035
11047
|
"use-teleport": !0
|
|
@@ -11043,7 +11055,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11043
11055
|
content: W(() => [...r[6] ||= [l(" Open Preferences ", -1)]]),
|
|
11044
11056
|
_: 1
|
|
11045
11057
|
})])]),
|
|
11046
|
-
suggestions: W(() => [s("div",
|
|
11058
|
+
suggestions: W(() => [s("div", Gd, [u(z(qi), {
|
|
11047
11059
|
variant: "dark",
|
|
11048
11060
|
disableInteractive: !0,
|
|
11049
11061
|
position: "top-left",
|
|
@@ -11051,41 +11063,41 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11051
11063
|
"use-teleport": !0,
|
|
11052
11064
|
style: { "--max-width": "200px" }
|
|
11053
11065
|
}, c({
|
|
11054
|
-
trigger: W(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", z(
|
|
11066
|
+
trigger: W(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", z(se) ? "suggested-title-label" : ""]) }, F(z(oe)), 3)]),
|
|
11055
11067
|
_: 2
|
|
11056
|
-
}, [z(
|
|
11068
|
+
}, [z(se) ? {
|
|
11057
11069
|
name: "content",
|
|
11058
|
-
fn: W(() => [l(F(z(
|
|
11070
|
+
fn: W(() => [l(F(z(se)), 1)]),
|
|
11059
11071
|
key: "0"
|
|
11060
11072
|
} : void 0]), 1024)])]),
|
|
11061
11073
|
_: 2
|
|
11062
11074
|
}, [
|
|
11063
|
-
z(
|
|
11075
|
+
z(ae) || Me.value || z(j) ? {
|
|
11064
11076
|
name: "header",
|
|
11065
11077
|
fn: W((t) => [
|
|
11066
|
-
z(j) ? (D(), o("p",
|
|
11067
|
-
|
|
11078
|
+
z(j) ? (D(), o("p", Ud, " Type " + F(z(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
11079
|
+
Me.value ? (D(), i(Bd, {
|
|
11068
11080
|
key: 1,
|
|
11069
11081
|
ref_key: "filterGroupMenuRef",
|
|
11070
11082
|
ref: g,
|
|
11071
11083
|
class: "pv-stack-8",
|
|
11072
11084
|
"filter-col-def": e.filterColDef
|
|
11073
11085
|
}, null, 8, ["filter-col-def"])) : a("", !0),
|
|
11074
|
-
z(
|
|
11086
|
+
z(ae) ? (D(), i(N(z(ae)), b(_({ key: 2 }, t)), null, 16)) : a("", !0)
|
|
11075
11087
|
]),
|
|
11076
11088
|
key: "0"
|
|
11077
11089
|
} : void 0,
|
|
11078
|
-
z(
|
|
11090
|
+
z(ie) ? {
|
|
11079
11091
|
name: "no-results",
|
|
11080
|
-
fn: W((e) => [(D(), i(N(z(
|
|
11092
|
+
fn: W((e) => [(D(), i(N(z(ie)), b(p(e)), null, 16))]),
|
|
11081
11093
|
key: "1"
|
|
11082
11094
|
} : void 0,
|
|
11083
|
-
z(
|
|
11095
|
+
z(K) ? {
|
|
11084
11096
|
name: "footer",
|
|
11085
|
-
fn: W((e) => [(D(), i(N(z(
|
|
11097
|
+
fn: W((e) => [(D(), i(N(z(K)), b(p(e)), null, 16))]),
|
|
11086
11098
|
key: "2"
|
|
11087
11099
|
} : void 0
|
|
11088
|
-
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.menuActionsVariant.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), z(B) && !e.readOnly ? (D(), o("div",
|
|
11100
|
+
]), 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("."))]), z(B) && !e.readOnly ? (D(), o("div", Kd, [z(V).length > 0 ? (D(), o("div", qd, [s("ul", Jd, [u(z(qi), {
|
|
11089
11101
|
variant: "dark",
|
|
11090
11102
|
disableInteractive: !0,
|
|
11091
11103
|
position: "bottom-left",
|
|
@@ -11093,13 +11105,13 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11093
11105
|
"use-teleport": !0,
|
|
11094
11106
|
style: { "--max-width": "200px" }
|
|
11095
11107
|
}, c({
|
|
11096
|
-
trigger: W(() => [s("li",
|
|
11108
|
+
trigger: W(() => [s("li", Yd, [s("p", { class: y(["pv-text-subdued pv-text-body-md", z(se) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11097
11109
|
_: 2
|
|
11098
|
-
}, [z(
|
|
11110
|
+
}, [z(se) ? {
|
|
11099
11111
|
name: "content",
|
|
11100
|
-
fn: W(() => [l(F(z(
|
|
11112
|
+
fn: W(() => [l(F(z(se)), 1)]),
|
|
11101
11113
|
key: "0"
|
|
11102
|
-
} : void 0]), 1024), (D(!0), o(t, null, A(z(
|
|
11114
|
+
} : void 0]), 1024), (D(!0), o(t, null, A(z(V).filter((e) => e !== "" && e != null).slice(0, Xd), (e) => (D(), o("li", {
|
|
11103
11115
|
key: `${z(L)}-${e}-suggest`,
|
|
11104
11116
|
class: y(z(w) ? "pv-shimmer" : ""),
|
|
11105
11117
|
style: {
|
|
@@ -11108,26 +11120,26 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11108
11120
|
}
|
|
11109
11121
|
}, [u(z(fc), {
|
|
11110
11122
|
disabled: z(w),
|
|
11111
|
-
label: z(
|
|
11112
|
-
onHandleClick: (t) => z(
|
|
11123
|
+
label: z(le)(e) || "",
|
|
11124
|
+
onHandleClick: (t) => z(de)(e, z(ce)(z(I), e)?.colField)
|
|
11113
11125
|
}, null, 8, [
|
|
11114
11126
|
"disabled",
|
|
11115
11127
|
"label",
|
|
11116
11128
|
"onHandleClick"
|
|
11117
11129
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
11118
11130
|
}
|
|
11119
|
-
}), [["__scopeId", "data-v-
|
|
11131
|
+
}), [["__scopeId", "data-v-cdeeca2c"]]), Qd = { class: "pv-flex" }, $d = { class: "pv-flex pv-space-between pv-stack-8" }, ef = { class: "pv-text-title-lg" }, tf = {
|
|
11120
11132
|
id: "filter-vertical-drawer",
|
|
11121
11133
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
11122
11134
|
style: { height: "100%" }
|
|
11123
|
-
},
|
|
11135
|
+
}, nf = { class: "pv-full-width" }, rf = ["open"], af = ["data-dd-action-name", "onClick"], of = { class: "pv-text-title-lg" }, sf = { class: "pv-flex pv-space-between" }, cf = { class: "pv-flex" }, lf = {
|
|
11124
11136
|
class: "pv-flex",
|
|
11125
11137
|
style: {
|
|
11126
11138
|
"--flex-justify": "end",
|
|
11127
11139
|
"--flex-gap": "8px",
|
|
11128
11140
|
"margin-top": "auto"
|
|
11129
11141
|
}
|
|
11130
|
-
},
|
|
11142
|
+
}, uf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11131
11143
|
__name: "FilterPanel",
|
|
11132
11144
|
props: {
|
|
11133
11145
|
enableFocusView: {
|
|
@@ -11160,7 +11172,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11160
11172
|
},
|
|
11161
11173
|
emits: ["handle-settings-icon"],
|
|
11162
11174
|
setup(e) {
|
|
11163
|
-
let n = m(Hl, k(null)), c = m(Gl, k([])), d = m(Wl, k(null)), f = m(
|
|
11175
|
+
let n = m(Hl, k(null)), c = m(Gl, k([])), d = m(Wl, k(null)), f = m(fu, k(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, commitStagedFilterModelChanges: S, clearStagedFilterModelChanges: C, filterValuesMap: w, fetchFilterValues: T, filterValuesLoadingStatus: E } = Md(), O = k(!1), j = k(!1), M = k(""), N = r(() => c.value.flatMap((e) => us(e))), P = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), I = (e) => {
|
|
11164
11176
|
let t = _.value;
|
|
11165
11177
|
if (!t) return !1;
|
|
11166
11178
|
let n = fs(e) ? us(e) : [e.field || ""];
|
|
@@ -11170,7 +11182,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11170
11182
|
}
|
|
11171
11183
|
let r = t;
|
|
11172
11184
|
return n.some((e) => !!r[e]);
|
|
11173
|
-
}, L = (e) => p.readOnly && !I(e), R = r(() => c.value.filter((e) =>
|
|
11185
|
+
}, L = (e) => p.readOnly && !I(e), R = r(() => c.value.filter((e) => od(e) && !N.value.includes(e.field || "") && !P.value.includes(e.field || "")).sort((e, t) => {
|
|
11174
11186
|
let n = fs(e), r = fs(t);
|
|
11175
11187
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
11176
11188
|
})), B = r(() => R.value), ee = r(() => {
|
|
@@ -11214,7 +11226,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11214
11226
|
});
|
|
11215
11227
|
}
|
|
11216
11228
|
}
|
|
11217
|
-
}, { clearAllFocuses: U } =
|
|
11229
|
+
}, { clearAllFocuses: U } = ju(), G = () => {
|
|
11218
11230
|
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);
|
|
11219
11231
|
}, ae = () => {
|
|
11220
11232
|
O.value = !1, M.value = "";
|
|
@@ -11227,7 +11239,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11227
11239
|
class: "pv-flex",
|
|
11228
11240
|
style: x(e.wrapHorizontalFilters ? "--flex-wrap: wrap; max-width: 100%" : void 0)
|
|
11229
11241
|
}, [
|
|
11230
|
-
(D(!0), o(t, null, A(V.value, (e) => (D(), o(t, { key: e.field }, [z(n) ? (D(), i(
|
|
11242
|
+
(D(!0), o(t, null, A(V.value, (e) => (D(), o(t, { key: e.field }, [z(n) ? (D(), i(Zd, {
|
|
11231
11243
|
key: 0,
|
|
11232
11244
|
"enable-focus-view": p.enableFocusView,
|
|
11233
11245
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -11244,7 +11256,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11244
11256
|
"read-only",
|
|
11245
11257
|
"disable-unselected"
|
|
11246
11258
|
])) : a("", !0)], 64))), 128)),
|
|
11247
|
-
s("div",
|
|
11259
|
+
s("div", Qd, [p.enableVerticalPanel ? (D(), i(z(Ln), {
|
|
11248
11260
|
key: 0,
|
|
11249
11261
|
label: "All Filters",
|
|
11250
11262
|
onClick: ie,
|
|
@@ -11278,7 +11290,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11278
11290
|
"z-index": "10"
|
|
11279
11291
|
}
|
|
11280
11292
|
}, {
|
|
11281
|
-
header: W(() => [s("div",
|
|
11293
|
+
header: W(() => [s("div", $d, [s("p", ef, "All Filters (" + F(B.value.length) + ")", 1), s("button", {
|
|
11282
11294
|
class: "pv-button-ghost",
|
|
11283
11295
|
"aria-label": "Close",
|
|
11284
11296
|
onClick: c[2] ||= (e) => K()
|
|
@@ -11287,7 +11299,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11287
11299
|
"onUpdate:modelValue": c[3] ||= (e) => M.value = e,
|
|
11288
11300
|
placeholder: "Search Filters"
|
|
11289
11301
|
}, null, 8, ["modelValue"])]),
|
|
11290
|
-
footer: W(() => [s("div",
|
|
11302
|
+
footer: W(() => [s("div", sf, [p.readOnly ? (D(), i(z(Ln), {
|
|
11291
11303
|
key: 1,
|
|
11292
11304
|
variant: "ghost",
|
|
11293
11305
|
label: "Close",
|
|
@@ -11296,7 +11308,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11296
11308
|
class: "pv-button-ghost",
|
|
11297
11309
|
"data-dd-action-name": "Clear all page filters",
|
|
11298
11310
|
onClick: c[5] ||= (e) => G()
|
|
11299
|
-
}, " Clear All "), s("div",
|
|
11311
|
+
}, " Clear All "), s("div", cf, [u(z(Ln), {
|
|
11300
11312
|
variant: "ghost",
|
|
11301
11313
|
label: "Cancel",
|
|
11302
11314
|
"data-dd-action-name": "Cancel filter changes",
|
|
@@ -11313,7 +11325,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11313
11325
|
label: "No Changes",
|
|
11314
11326
|
disabled: ""
|
|
11315
11327
|
}))])], 64))])]),
|
|
11316
|
-
default: W(() => [s("div",
|
|
11328
|
+
default: W(() => [s("div", tf, [s("div", nf, [(D(!0), o(t, null, A(ee.value, (e, t) => (D(), o("div", {
|
|
11317
11329
|
key: e.field,
|
|
11318
11330
|
class: y([{ "pv-border-bottom": t < ee.value.length - 1 }, "pv-stack-12"])
|
|
11319
11331
|
}, [s("details", {
|
|
@@ -11323,7 +11335,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11323
11335
|
class: "pv-flex pv-full-width",
|
|
11324
11336
|
"data-dd-action-name": `Expand ${e.headerName} section`,
|
|
11325
11337
|
onClick: (t) => L(e) && t.preventDefault()
|
|
11326
|
-
}, [s("span",
|
|
11338
|
+
}, [s("span", of, F(e.headerName), 1)], 8, af), s("div", null, [z(n) ? (D(), i(Zd, {
|
|
11327
11339
|
key: 0,
|
|
11328
11340
|
"filter-style": "vertical",
|
|
11329
11341
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -11341,7 +11353,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11341
11353
|
"focus-text",
|
|
11342
11354
|
"read-only",
|
|
11343
11355
|
"disable-unselected"
|
|
11344
|
-
])) : a("", !0)])], 10,
|
|
11356
|
+
])) : a("", !0)])], 10, rf)], 2))), 128))])])]),
|
|
11345
11357
|
_: 1
|
|
11346
11358
|
}, 8, ["modelValue"])) : a("", !0)
|
|
11347
11359
|
], 4), u(z(cc), {
|
|
@@ -11351,7 +11363,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11351
11363
|
style: { top: "50%" }
|
|
11352
11364
|
}, {
|
|
11353
11365
|
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)]]),
|
|
11354
|
-
footer: W(() => [s("div",
|
|
11366
|
+
footer: W(() => [s("div", lf, [u(z(Ln), {
|
|
11355
11367
|
label: "Cancel",
|
|
11356
11368
|
variant: "secondary",
|
|
11357
11369
|
size: "lg",
|
|
@@ -11367,14 +11379,14 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11367
11379
|
_: 1
|
|
11368
11380
|
}, 8, ["modelValue"])], 64));
|
|
11369
11381
|
}
|
|
11370
|
-
}), [["__scopeId", "data-v-a83ae9ab"]]),
|
|
11382
|
+
}), [["__scopeId", "data-v-a83ae9ab"]]), df = { key: 2 }, ff = { style: {
|
|
11371
11383
|
"max-width": "220px",
|
|
11372
11384
|
"white-space": "normal",
|
|
11373
11385
|
"overflow-wrap": "break-word"
|
|
11374
|
-
} },
|
|
11386
|
+
} }, pf = {
|
|
11375
11387
|
key: 0,
|
|
11376
11388
|
class: "pv-flex ag-header-actions"
|
|
11377
|
-
},
|
|
11389
|
+
}, mf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11378
11390
|
__name: "HeaderCellRenderer",
|
|
11379
11391
|
props: { params: {} },
|
|
11380
11392
|
setup(e, { expose: t }) {
|
|
@@ -11454,7 +11466,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11454
11466
|
"modelValue",
|
|
11455
11467
|
"options",
|
|
11456
11468
|
"label"
|
|
11457
|
-
])) : (D(), o("p",
|
|
11469
|
+
])) : (D(), o("p", df, F(p.value), 1)),
|
|
11458
11470
|
g.value ? (D(), i(qi, {
|
|
11459
11471
|
key: 3,
|
|
11460
11472
|
variant: "white",
|
|
@@ -11471,14 +11483,14 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11471
11483
|
class: "pv-text-subdued",
|
|
11472
11484
|
onClick: t[2] ||= K(() => {}, ["stop"])
|
|
11473
11485
|
})]),
|
|
11474
|
-
content: W(() => [s("div",
|
|
11486
|
+
content: W(() => [s("div", ff, F(g.value), 1)]),
|
|
11475
11487
|
_: 1
|
|
11476
11488
|
})) : a("", !0),
|
|
11477
11489
|
f.value && C.value !== "" ? (D(), i(Nn, {
|
|
11478
11490
|
key: 4,
|
|
11479
11491
|
name: C.value
|
|
11480
11492
|
}, null, 8, ["name"])) : a("", !0)
|
|
11481
|
-
], 6), b.value ? (D(), o("div",
|
|
11493
|
+
], 6), b.value ? (D(), o("div", pf, [s("div", {
|
|
11482
11494
|
ref_key: "menuButton",
|
|
11483
11495
|
ref: _,
|
|
11484
11496
|
class: "ag-header-cell-menu-button",
|
|
@@ -11491,10 +11503,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11491
11503
|
onClick: K(I, ["stop", "prevent"])
|
|
11492
11504
|
})], 4)])) : a("", !0)], 4));
|
|
11493
11505
|
}
|
|
11494
|
-
}), [["__scopeId", "data-v-90862f78"]]),
|
|
11506
|
+
}), [["__scopeId", "data-v-90862f78"]]), hf = {
|
|
11495
11507
|
headerHeight: "30px",
|
|
11496
|
-
headerBackgroundColor: "white",
|
|
11497
|
-
headerCellHoverBackgroundColor: "#
|
|
11508
|
+
headerBackgroundColor: "var(--color-background-body, white)",
|
|
11509
|
+
headerCellHoverBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
11498
11510
|
headerColumnResizeHandleHeight: "50%",
|
|
11499
11511
|
headerColumnResizeHandleWidth: "3px",
|
|
11500
11512
|
headerColumnBorder: "none",
|
|
@@ -11502,18 +11514,18 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11502
11514
|
headerFontSize: "12px",
|
|
11503
11515
|
fontFamily: "Inter, sans-serif",
|
|
11504
11516
|
fontSize: 12,
|
|
11505
|
-
rangeSelectionBorderColor: "#
|
|
11517
|
+
rangeSelectionBorderColor: "var(--color-border-brand, #36c5ba)",
|
|
11506
11518
|
rangeSelectionBorderStyle: "solid",
|
|
11507
|
-
menuBackgroundColor: "white",
|
|
11508
|
-
accentColor: "#
|
|
11509
|
-
},
|
|
11510
|
-
...
|
|
11519
|
+
menuBackgroundColor: "var(--color-background-body, white)",
|
|
11520
|
+
accentColor: "var(--color-background-brand, #36c5ba)"
|
|
11521
|
+
}, gf = Fe.withParams({
|
|
11522
|
+
...hf,
|
|
11511
11523
|
headerRowBorder: !0,
|
|
11512
|
-
rowHoverColor: "#
|
|
11524
|
+
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11513
11525
|
wrapperBorder: !0,
|
|
11514
11526
|
wrapperBorderRadius: "8px"
|
|
11515
|
-
}),
|
|
11516
|
-
...
|
|
11527
|
+
}), _f = Fe.withParams({
|
|
11528
|
+
...hf,
|
|
11517
11529
|
headerRowBorder: !1,
|
|
11518
11530
|
rowHoverColor: "transparent",
|
|
11519
11531
|
wrapperBorder: !1,
|
|
@@ -11522,20 +11534,20 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11522
11534
|
rowBorder: !1,
|
|
11523
11535
|
columnBorder: !1,
|
|
11524
11536
|
rowHeight: "50px"
|
|
11525
|
-
}),
|
|
11526
|
-
"pv-data-table-base":
|
|
11537
|
+
}), vf = {
|
|
11538
|
+
"pv-data-table-base": gf,
|
|
11527
11539
|
"pv-data-table-grouped": Fe.withParams({
|
|
11528
|
-
...
|
|
11540
|
+
...hf,
|
|
11529
11541
|
headerRowBorder: !0,
|
|
11530
|
-
rowHoverColor: "#
|
|
11542
|
+
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11531
11543
|
wrapperBorder: !0,
|
|
11532
11544
|
wrapperBorderRadius: "8px"
|
|
11533
11545
|
}),
|
|
11534
|
-
"pv-data-table-grouped-card":
|
|
11535
|
-
},
|
|
11546
|
+
"pv-data-table-grouped-card": _f
|
|
11547
|
+
}, yf = { class: "pv-popover-menu" }, bf = {
|
|
11536
11548
|
class: "pv-popover",
|
|
11537
11549
|
style: { "--height": "auto" }
|
|
11538
|
-
},
|
|
11550
|
+
}, xf = ["disabled"], Sf = /* @__PURE__ */ d({
|
|
11539
11551
|
__name: "ExportMenu",
|
|
11540
11552
|
props: { getCsvData: { type: Function } },
|
|
11541
11553
|
setup(e) {
|
|
@@ -11550,19 +11562,19 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11550
11562
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
11551
11563
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
11552
11564
|
}
|
|
11553
|
-
return (e, n) => (D(), o("nav",
|
|
11565
|
+
return (e, n) => (D(), o("nav", yf, [n[0] ||= s("button", {
|
|
11554
11566
|
type: "button",
|
|
11555
11567
|
class: "pv-button-icon"
|
|
11556
11568
|
}, [s("svg", {
|
|
11557
11569
|
"aria-hidden": "true",
|
|
11558
11570
|
class: "pv-icon-24"
|
|
11559
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
11571
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", bf, [s("button", {
|
|
11560
11572
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
11561
11573
|
onClick: K(i, ["prevent"]),
|
|
11562
11574
|
disabled: r.value
|
|
11563
|
-
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
11575
|
+
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, xf)])]));
|
|
11564
11576
|
}
|
|
11565
|
-
}),
|
|
11577
|
+
}), Cf = /* @__PURE__ */ d({
|
|
11566
11578
|
__name: "PaginationPanel",
|
|
11567
11579
|
props: { panelSize: { default: "xl" } },
|
|
11568
11580
|
setup(e) {
|
|
@@ -11580,10 +11592,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11580
11592
|
"size"
|
|
11581
11593
|
])], 2));
|
|
11582
11594
|
}
|
|
11583
|
-
}),
|
|
11595
|
+
}), wf = {
|
|
11584
11596
|
key: 0,
|
|
11585
11597
|
class: "pv-tag"
|
|
11586
|
-
},
|
|
11598
|
+
}, Tf = /* @__PURE__ */ d({
|
|
11587
11599
|
__name: "TagCellRenderer",
|
|
11588
11600
|
props: { params: {} },
|
|
11589
11601
|
setup(e) {
|
|
@@ -11591,12 +11603,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11591
11603
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
11592
11604
|
return e.trim() === "" ? null : e;
|
|
11593
11605
|
});
|
|
11594
|
-
return (e, t) => n.value ? (D(), o("div",
|
|
11606
|
+
return (e, t) => n.value ? (D(), o("div", wf, F(n.value), 1)) : a("", !0);
|
|
11595
11607
|
}
|
|
11596
|
-
}),
|
|
11608
|
+
}), Ef = {
|
|
11597
11609
|
key: 0,
|
|
11598
11610
|
class: "pv-table-row-number"
|
|
11599
|
-
},
|
|
11611
|
+
}, Df = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11600
11612
|
__name: "RowCountCellRenderer",
|
|
11601
11613
|
props: { params: {} },
|
|
11602
11614
|
setup(e) {
|
|
@@ -11604,17 +11616,17 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11604
11616
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
11605
11617
|
return e && cs(e) ? n.toLocaleString() : n;
|
|
11606
11618
|
});
|
|
11607
|
-
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span",
|
|
11619
|
+
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span", Ef, F(n.value), 1)) : a("", !0), l(" " + F(i.value), 1)])]));
|
|
11608
11620
|
}
|
|
11609
|
-
}), [["__scopeId", "data-v-
|
|
11621
|
+
}), [["__scopeId", "data-v-2485e378"]]), Of = 4, kf = /* @__PURE__ */ d({
|
|
11610
11622
|
__name: "TableSearch",
|
|
11611
11623
|
props: {
|
|
11612
11624
|
placeholder: {},
|
|
11613
11625
|
searchStyle: {}
|
|
11614
11626
|
},
|
|
11615
11627
|
setup(e) {
|
|
11616
|
-
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(Hl, k(null)), c = m(
|
|
11617
|
-
f(c.value ?
|
|
11628
|
+
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(Hl, k(null)), c = m(fu, k(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = Md(), p = (e) => {
|
|
11629
|
+
f(c.value ? td(e) : ed(e));
|
|
11618
11630
|
}, h = async (e) => {
|
|
11619
11631
|
if (!s?.value || typeof s.value.setGridOption != "function") return;
|
|
11620
11632
|
if (!l.value) {
|
|
@@ -11686,7 +11698,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11686
11698
|
options: a.value,
|
|
11687
11699
|
"onUpdate:options": s[2] ||= (e) => a.value = e,
|
|
11688
11700
|
"options-loading": o.value,
|
|
11689
|
-
"query-term-display-limit":
|
|
11701
|
+
"query-term-display-limit": Of
|
|
11690
11702
|
}, null, 8, [
|
|
11691
11703
|
"placeholder",
|
|
11692
11704
|
"search-text",
|
|
@@ -11700,25 +11712,25 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11700
11712
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
11701
11713
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
11702
11714
|
}
|
|
11703
|
-
}),
|
|
11715
|
+
}), Af = {
|
|
11704
11716
|
style: {
|
|
11705
|
-
"background-color": "white",
|
|
11717
|
+
"background-color": "var(--color-background-body, white)",
|
|
11706
11718
|
"max-width": "300px"
|
|
11707
11719
|
},
|
|
11708
11720
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
11709
|
-
},
|
|
11721
|
+
}, jf = { style: { color: "var(--color-text-body, black)" } }, Mf = /* @__PURE__ */ d({
|
|
11710
11722
|
__name: "TableTooltip",
|
|
11711
11723
|
props: { params: {} },
|
|
11712
11724
|
setup(e) {
|
|
11713
|
-
return (t, n) => (D(), o("div",
|
|
11725
|
+
return (t, n) => (D(), o("div", Af, [s("p", jf, F(e.params.value), 1)]));
|
|
11714
11726
|
}
|
|
11715
|
-
}),
|
|
11727
|
+
}), Nf = { class: "pv-stack-16" }, Pf = {
|
|
11716
11728
|
key: 0,
|
|
11717
11729
|
class: "pv-table-overlay"
|
|
11718
|
-
},
|
|
11730
|
+
}, Ff = {
|
|
11719
11731
|
class: "pv-text-body-xs pv-text-center",
|
|
11720
11732
|
style: { "padding-top": "16px" }
|
|
11721
|
-
},
|
|
11733
|
+
}, If = /* @__PURE__ */ d({
|
|
11722
11734
|
__name: "PvDataTable",
|
|
11723
11735
|
props: {
|
|
11724
11736
|
allFieldsAreFocusable: {
|
|
@@ -11960,7 +11972,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11960
11972
|
let h = r(() => f.layout ? {} : {
|
|
11961
11973
|
height: f.containerHeight,
|
|
11962
11974
|
minHeight: f.containerMinHeight
|
|
11963
|
-
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme :
|
|
11975
|
+
}), 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 : vf[w.value]), A = c, M = k(!1), N = (e) => {
|
|
11964
11976
|
let t = us(e), n = e.context;
|
|
11965
11977
|
return Array.from(new Set([
|
|
11966
11978
|
...t,
|
|
@@ -11968,9 +11980,9 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
11968
11980
|
...t.flatMap((e) => K.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
11969
11981
|
]));
|
|
11970
11982
|
}, I = (e, t) => {
|
|
11971
|
-
if (
|
|
11983
|
+
if (id(e, t)) return !0;
|
|
11972
11984
|
let n = K.find((e) => ds(e) === t);
|
|
11973
|
-
return !!n && N(n).some((t) =>
|
|
11985
|
+
return !!n && N(n).some((t) => id(e, t));
|
|
11974
11986
|
}, R = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
11975
11987
|
if (!fe.value) {
|
|
11976
11988
|
e.success({ rowData: [] }), ue.value = !0;
|
|
@@ -12004,7 +12016,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12004
12016
|
filter: t.bucketMax
|
|
12005
12017
|
}]
|
|
12006
12018
|
};
|
|
12007
|
-
n =
|
|
12019
|
+
n = _d(n, i, e);
|
|
12008
12020
|
}
|
|
12009
12021
|
}), n && (e.request.filterModel = n);
|
|
12010
12022
|
} else {
|
|
@@ -12040,7 +12052,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12040
12052
|
} : e.request.filterModel = s;
|
|
12041
12053
|
} else {
|
|
12042
12054
|
let t = e.request.filterModel;
|
|
12043
|
-
e.request.filterModel =
|
|
12055
|
+
e.request.filterModel = ad(K, t, s);
|
|
12044
12056
|
}
|
|
12045
12057
|
e.success = (e) => {
|
|
12046
12058
|
if (J.value = !1, f.enableFocusView && mt.value.length > 0 && pt.value && e.rowData) {
|
|
@@ -12056,7 +12068,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12056
12068
|
}, f.serverSideRowHandler?.(e);
|
|
12057
12069
|
} } : null, B = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
12058
12070
|
let t = [], n = { ...rt.value };
|
|
12059
|
-
t = !ue.value && ce ?
|
|
12071
|
+
t = !ue.value && ce ? xd(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await lt(e.colDef, {
|
|
12060
12072
|
api: e.api,
|
|
12061
12073
|
filterModel: n,
|
|
12062
12074
|
useStaged: !1
|
|
@@ -12075,19 +12087,19 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12075
12087
|
suppressColumnsToolPanel: !0,
|
|
12076
12088
|
minWidth: 150,
|
|
12077
12089
|
flex: 1,
|
|
12078
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
12090
|
+
headerComponent: f.enableInlineFilters ? void 0 : mf,
|
|
12079
12091
|
cellDataType: !1,
|
|
12080
|
-
tooltipComponent:
|
|
12092
|
+
tooltipComponent: Mf,
|
|
12081
12093
|
cellClass: (e) => Et(e.column) ? "" : cs(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
12082
12094
|
cellRendererSelector: (e) => {
|
|
12083
12095
|
if (ee(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
12084
|
-
component:
|
|
12096
|
+
component: Ku,
|
|
12085
12097
|
params: e
|
|
12086
12098
|
};
|
|
12087
|
-
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber &&
|
|
12099
|
+
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && q.value.length === 0) {
|
|
12088
12100
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
12089
12101
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
12090
|
-
component:
|
|
12102
|
+
component: Df,
|
|
12091
12103
|
params: e
|
|
12092
12104
|
};
|
|
12093
12105
|
}
|
|
@@ -12105,7 +12117,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12105
12117
|
let t = e.column?.getColId();
|
|
12106
12118
|
if (e.column && Et(e.column) && (t = vt.value?.getColId() || ""), !Kt(t)) {
|
|
12107
12119
|
let n = e.api.getColumn(t)?.getColDef();
|
|
12108
|
-
n && (
|
|
12120
|
+
n && (le.value = n, v(() => {
|
|
12109
12121
|
Kt(t);
|
|
12110
12122
|
}));
|
|
12111
12123
|
}
|
|
@@ -12126,21 +12138,21 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12126
12138
|
let t = e.headerValueGetter;
|
|
12127
12139
|
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 || "";
|
|
12128
12140
|
}
|
|
12129
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === $o.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === $o.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === $o.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === $o.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
12141
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === $o.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === $o.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === $o.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === $o.Tag && !e.cellRenderer && (n.cellRenderer = Tf), n;
|
|
12130
12142
|
}, K = f.colDefs?.map((e) => {
|
|
12131
12143
|
let t = { ...e };
|
|
12132
|
-
R && B &&
|
|
12144
|
+
R && B && od(e) && (t = sd(e, B));
|
|
12133
12145
|
let n = e.context;
|
|
12134
12146
|
return n && (t = ae(t, n)), t;
|
|
12135
12147
|
}).filter((e) => e != null) || [], oe = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
12136
12148
|
for (let e of K) for (let t of us(e)) oe.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
12137
|
-
let se = K.some((e) => e.context?.visibilityState !== void 0), ce =
|
|
12138
|
-
if (
|
|
12139
|
-
let e =
|
|
12140
|
-
if (!r &&
|
|
12149
|
+
let se = K.some((e) => e.context?.visibilityState !== void 0), ce = $u(f.initialGridState, K, f.enableAdvancedFilter), le = k(null), q = k([]), ue = m(Xl, k(!1)), J = k(!1), de = r(() => {
|
|
12150
|
+
if (q.value.length > 0) {
|
|
12151
|
+
let e = q.value[0], t = K.find((t) => t.field === e), n = rt.value, r = !n;
|
|
12152
|
+
if (!r && Dd(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
12141
12153
|
}
|
|
12142
12154
|
return null;
|
|
12143
|
-
}), fe = r(() => et.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 = P(null), Fe = k([]), et = f.filterStore ||
|
|
12155
|
+
}), fe = r(() => et.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 = P(null), Fe = k([]), et = f.filterStore || Md(), tt = m(Bl, null), nt = tt || Au(null, f.allFieldsAreFocusable), rt = et.filterModel, it = et.tableSearchFilterModel, at = et.filterValueMap, st = et.filterValuesMap, ct = et.filterValueSelectedMetadataMap, lt = et.fetchFilterValues, ut = et.filterStoreHandler, dt = et.tableSearchHandler;
|
|
12144
12156
|
if (ut.value = f.filterValuesSetHandler, ut.value) {
|
|
12145
12157
|
let e = (e) => ({
|
|
12146
12158
|
hasMore: et.filterHasMoreMap.value[e],
|
|
@@ -12169,7 +12181,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12169
12181
|
debounce: 250
|
|
12170
12182
|
});
|
|
12171
12183
|
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);
|
|
12172
|
-
O(zl, et), O(Bl, nt), O(Vl, Fe), O(Hl, X), O(Ul, ft), O(Wl,
|
|
12184
|
+
O(zl, et), O(Bl, nt), O(Vl, Fe), O(Hl, X), O(Ul, ft), O(Wl, le), O(Gl, ht), O(Kl, gt), O(ql, q), O(Jl, vt), O(Yl, yt), O(Xl, ue), O(Zl, J), O(Ql, bt), O($l, xt), O(fu, r(() => f.enableAdvancedFilter));
|
|
12173
12185
|
let St = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !mt.value.length && !pt.value ? f.rowData : is(f.rowData, pt.value, mt.value));
|
|
12174
12186
|
U(() => mt.value, (e) => {
|
|
12175
12187
|
A("focus-update", {
|
|
@@ -12183,8 +12195,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12183
12195
|
});
|
|
12184
12196
|
let Ct = (e) => {
|
|
12185
12197
|
X.value = e.api;
|
|
12186
|
-
let t =
|
|
12187
|
-
if (f.hideAllRowGroupedColumns &&
|
|
12198
|
+
let t = q.value.find((e) => !K.find((t) => t.field === e)?.hide), n = !t && q.value.length > 0 ? K.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
12199
|
+
if (f.hideAllRowGroupedColumns && q.value.forEach((e) => i.push(e)), r) {
|
|
12188
12200
|
let t = e.api.getColumn(r);
|
|
12189
12201
|
vt.value = t, i.push(r), Zt(t?.getColDef());
|
|
12190
12202
|
}
|
|
@@ -12192,7 +12204,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12192
12204
|
}, wt = (e) => {
|
|
12193
12205
|
if (X.value) {
|
|
12194
12206
|
let t = Ft();
|
|
12195
|
-
|
|
12207
|
+
gd(rt.value, t) || (rt.value = t, A("filter-changed", e));
|
|
12196
12208
|
}
|
|
12197
12209
|
}, Tt = (e) => {
|
|
12198
12210
|
Fe.value = e.api?.getState()?.sort?.sortModel || [], ue.value && A("sort-changed", e);
|
|
@@ -12273,10 +12285,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12273
12285
|
}, Ft = () => X.value ? f.enableAdvancedFilter ? X.value.getAdvancedFilterModel() : X.value.getFilterModel() : rt.value, It = (e) => {
|
|
12274
12286
|
if (!X.value) return !1;
|
|
12275
12287
|
if (f.enableAdvancedFilter) {
|
|
12276
|
-
let t = e &&
|
|
12288
|
+
let t = e && Dd(e) ? Qu(e) : e;
|
|
12277
12289
|
X.value.setAdvancedFilterModel(t);
|
|
12278
12290
|
} else {
|
|
12279
|
-
if (e && !
|
|
12291
|
+
if (e && !Dd(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;
|
|
12280
12292
|
X.value.setFilterModel(e);
|
|
12281
12293
|
}
|
|
12282
12294
|
return !0;
|
|
@@ -12294,7 +12306,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12294
12306
|
getFilterValueSelectedMetadataMap: kt,
|
|
12295
12307
|
availableRowGroupColumns: gt,
|
|
12296
12308
|
availableAggFuncColumns: _t,
|
|
12297
|
-
rowGroupColumnFields:
|
|
12309
|
+
rowGroupColumnFields: q,
|
|
12298
12310
|
getPvFilterModel: Ft,
|
|
12299
12311
|
setPvFilterModel: It
|
|
12300
12312
|
});
|
|
@@ -12309,8 +12321,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12309
12321
|
}
|
|
12310
12322
|
i ? (vt.value = i, Zt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (vt.value = null, Zt(null));
|
|
12311
12323
|
let a = t?.getColId();
|
|
12312
|
-
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)),
|
|
12313
|
-
let e =
|
|
12324
|
+
if ((!i || a !== i.getColId()) && (t?.getColDef()?.hide || e.api.setColumnsVisible([a || ""], !0)), q.value = [...n].map((e) => e.getColId()), f.enableFocusView && !tt) {
|
|
12325
|
+
let e = q.value.length > 0 ? q.value[0] : null;
|
|
12314
12326
|
nt.setFocusType(e);
|
|
12315
12327
|
}
|
|
12316
12328
|
ue.value && A("column-row-group-changed", e);
|
|
@@ -12334,7 +12346,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12334
12346
|
if (e) return e.click(), !0;
|
|
12335
12347
|
}
|
|
12336
12348
|
return !1;
|
|
12337
|
-
}, qt = r(() => f.fullWidthCellRenderer ? L(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? L(f.loadingCellRenderer) :
|
|
12349
|
+
}, qt = r(() => f.fullWidthCellRenderer ? L(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? L(f.loadingCellRenderer) : Eu), Yt = { loadingMessage: "One moment please..." }, Xt = k((() => {
|
|
12338
12350
|
let e = {
|
|
12339
12351
|
headerName: "",
|
|
12340
12352
|
minWidth: 200,
|
|
@@ -12344,7 +12356,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12344
12356
|
headerComponent: void 0,
|
|
12345
12357
|
cellRendererParams: {
|
|
12346
12358
|
suppressCount: !0,
|
|
12347
|
-
innerRenderer:
|
|
12359
|
+
innerRenderer: Hu,
|
|
12348
12360
|
innerRendererParams: (e) => ({
|
|
12349
12361
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
12350
12362
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -12363,10 +12375,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12363
12375
|
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;
|
|
12364
12376
|
return;
|
|
12365
12377
|
}
|
|
12366
|
-
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
12378
|
+
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : mf), 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;
|
|
12367
12379
|
}, Qt = (e) => {
|
|
12368
12380
|
if (e.node.group) return {
|
|
12369
|
-
backgroundColor: "#
|
|
12381
|
+
backgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
12370
12382
|
...f.enableExpandOnRowClick ? { cursor: "pointer" } : {}
|
|
12371
12383
|
};
|
|
12372
12384
|
}, $t = (e) => {
|
|
@@ -12376,12 +12388,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12376
12388
|
let t = e.values;
|
|
12377
12389
|
if (e.rowNode.leafGroup) return {
|
|
12378
12390
|
values: t,
|
|
12379
|
-
value:
|
|
12391
|
+
value: Uu(t)
|
|
12380
12392
|
};
|
|
12381
12393
|
let n = e.values.flatMap((e) => e.values || []);
|
|
12382
12394
|
return {
|
|
12383
12395
|
values: n,
|
|
12384
|
-
value:
|
|
12396
|
+
value: Uu(n)
|
|
12385
12397
|
};
|
|
12386
12398
|
} };
|
|
12387
12399
|
S(() => {
|
|
@@ -12395,13 +12407,13 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12395
12407
|
"rowUnGroup"
|
|
12396
12408
|
], n = e.column && Et(e.column) ? vt.value : e.column;
|
|
12397
12409
|
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, ne), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
12398
|
-
}, ce && (rt.value = (f.enableAdvancedFilter ? ce.filter?.advancedFilterModel : ce.filter?.filterModel) || null,
|
|
12410
|
+
}, ce && (rt.value = (f.enableAdvancedFilter ? ce.filter?.advancedFilterModel : ce.filter?.filterModel) || null, q.value = ce.rowGroup?.groupColIds || []);
|
|
12399
12411
|
});
|
|
12400
12412
|
let tn = (e) => {
|
|
12401
12413
|
let t = X.value;
|
|
12402
12414
|
if (!t) return;
|
|
12403
12415
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
12404
|
-
n && !
|
|
12416
|
+
n && !gd(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r, q.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
12405
12417
|
let a = e.columnOrder?.orderedColIds;
|
|
12406
12418
|
se && a?.length && (ot(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
12407
12419
|
state: a.map((e) => ({ colId: e })),
|
|
@@ -12410,13 +12422,13 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12410
12422
|
};
|
|
12411
12423
|
U(() => f.initialGridState, () => {
|
|
12412
12424
|
if (f.initialGridState) {
|
|
12413
|
-
let e =
|
|
12425
|
+
let e = $u(f.initialGridState, K, f.enableAdvancedFilter);
|
|
12414
12426
|
e && tn(e);
|
|
12415
12427
|
}
|
|
12416
12428
|
}, { deep: !0 });
|
|
12417
12429
|
let nn = (e) => {
|
|
12418
12430
|
ue.value = !0, A("first-data-rendered", e);
|
|
12419
|
-
}, rn = (e) => R ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level ===
|
|
12431
|
+
}, rn = (e) => R ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === q.value.length - 2 : !1, an = r(() => {
|
|
12420
12432
|
if (!R) return f.groupDefaultExpanded;
|
|
12421
12433
|
}), on = k(null), sn = k(null), { present: cn } = zi("top-slot"), ln = r(() => f.enableTopSlot && cn.value), un = r(() => ln.value && f.tableSearchInline), dn = "42px", fn = r(() => [
|
|
12422
12434
|
f.tableSearchInline ? {
|
|
@@ -12462,7 +12474,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12462
12474
|
content: W(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
12463
12475
|
_: 1
|
|
12464
12476
|
})) : a("", !0),
|
|
12465
|
-
G(s("div",
|
|
12477
|
+
G(s("div", Nf, [s("div", {
|
|
12466
12478
|
class: "pv-flex pv-space-between",
|
|
12467
12479
|
style: x(un.value ? "--flex-align: flex-start; --flex-wrap: wrap" : void 0)
|
|
12468
12480
|
}, [s("div", {
|
|
@@ -12471,10 +12483,10 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12471
12483
|
}, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
12472
12484
|
key: 0,
|
|
12473
12485
|
style: x(fn.value)
|
|
12474
|
-
}, [u(
|
|
12486
|
+
}, [u(kf, b(p(pn.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
12475
12487
|
to: e.filterTeleportLocation,
|
|
12476
12488
|
disabled: !e.filterTeleportLocation
|
|
12477
|
-
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(
|
|
12489
|
+
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(uf, {
|
|
12478
12490
|
key: 0,
|
|
12479
12491
|
"enable-focus-view": e.enableFocusView,
|
|
12480
12492
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -12503,12 +12515,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12503
12515
|
minHeight: dn
|
|
12504
12516
|
} : void 0)
|
|
12505
12517
|
}, [
|
|
12506
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(
|
|
12518
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(Su, {
|
|
12507
12519
|
key: 0,
|
|
12508
12520
|
rowGroupLimit: e.rowGroupLimit,
|
|
12509
12521
|
enableFocusView: e.enableFocusView
|
|
12510
12522
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
12511
|
-
e.enableCsvExport ? (D(), i(
|
|
12523
|
+
e.enableCsvExport ? (D(), i(Sf, {
|
|
12512
12524
|
key: 1,
|
|
12513
12525
|
getCsvData: At
|
|
12514
12526
|
})) : a("", !0),
|
|
@@ -12528,7 +12540,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12528
12540
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
12529
12541
|
key: 0,
|
|
12530
12542
|
style: x(fn.value)
|
|
12531
|
-
}, [u(
|
|
12543
|
+
}, [u(kf, b(p(pn.value)), null, 16)], 4)) : a("", !0), ln.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
12532
12544
|
s("div", {
|
|
12533
12545
|
class: y(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
12534
12546
|
style: {
|
|
@@ -12619,17 +12631,17 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12619
12631
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
12620
12632
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
12621
12633
|
advancedFilterParent: sn.value
|
|
12622
|
-
}), 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",
|
|
12623
|
-
e.pagination ? (D(), i(
|
|
12634
|
+
}), 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", Pf, [s("p", Ff, F(Y.value), 1)])) : a("", !0)], 2),
|
|
12635
|
+
e.pagination ? (D(), i(Cf, { key: 2 })) : a("", !0)
|
|
12624
12636
|
], 4));
|
|
12625
12637
|
}
|
|
12626
|
-
}),
|
|
12638
|
+
}), Lf = ["id"], Rf = {
|
|
12627
12639
|
key: 0,
|
|
12628
12640
|
class: "sort-divider-container"
|
|
12629
|
-
},
|
|
12641
|
+
}, zf = ["data-label"], Bf = ["onDrop"], Vf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Hf = { class: "pv-text-body-sm pv-text-tertiary" }, Uf = { class: "pv-flex pv-full-width pv-sort-option" }, Wf = { class: "pv-text-body-sm" }, Gf = {
|
|
12630
12642
|
key: 1,
|
|
12631
12643
|
class: "pv-button-placeholder"
|
|
12632
|
-
},
|
|
12644
|
+
}, Kf = "--divider--", qf = "placeholder-", Jf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12633
12645
|
__name: "PvSortableList",
|
|
12634
12646
|
props: /* @__PURE__ */ g({
|
|
12635
12647
|
options: { default: () => [] },
|
|
@@ -12649,11 +12661,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12649
12661
|
emits: ["update:modelValue"],
|
|
12650
12662
|
setup(e) {
|
|
12651
12663
|
let n = e, c = V(e, "modelValue"), l = {
|
|
12652
|
-
id:
|
|
12664
|
+
id: Kf,
|
|
12653
12665
|
text: "",
|
|
12654
12666
|
disabled: !0
|
|
12655
12667
|
}, 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) => ({
|
|
12656
|
-
id: `${
|
|
12668
|
+
id: `${qf}${t}`,
|
|
12657
12669
|
text: "",
|
|
12658
12670
|
disabled: !0,
|
|
12659
12671
|
isPlaceholder: !0
|
|
@@ -12667,25 +12679,25 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12667
12679
|
];
|
|
12668
12680
|
}), m = H("sortableListRef"), h = H("containerRef"), g = null, _ = null, v = !1, b = () => {
|
|
12669
12681
|
if (!m.value) return c.value;
|
|
12670
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
12671
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
12682
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === Kf);
|
|
12683
|
+
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(qf)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12672
12684
|
};
|
|
12673
12685
|
T(() => {
|
|
12674
12686
|
m.value && (g = new st(m.value, {
|
|
12675
12687
|
animation: 200,
|
|
12676
|
-
filter: `#${
|
|
12688
|
+
filter: `#${Kf}, [id^="placeholder-"]`,
|
|
12677
12689
|
dragoverBubble: !0,
|
|
12678
12690
|
onStart: (e) => {
|
|
12679
12691
|
_ = e.item, v = !1;
|
|
12680
12692
|
},
|
|
12681
12693
|
onMove: (e) => {
|
|
12682
12694
|
let t = e.related;
|
|
12683
|
-
if (t?.id?.startsWith(
|
|
12695
|
+
if (t?.id?.startsWith(qf)) return !1;
|
|
12684
12696
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12685
12697
|
if (!r) return !1;
|
|
12686
12698
|
if (O(r)) return !0;
|
|
12687
12699
|
if (k.value) return !1;
|
|
12688
|
-
if (t?.id ===
|
|
12700
|
+
if (t?.id === Kf) return !0;
|
|
12689
12701
|
let i = n.options.find((e) => e.id === t?.id);
|
|
12690
12702
|
return !!i && O(i);
|
|
12691
12703
|
},
|
|
@@ -12741,20 +12753,20 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12741
12753
|
key: e.id,
|
|
12742
12754
|
id: e.id,
|
|
12743
12755
|
class: "pv-stack-4"
|
|
12744
|
-
}, [e.id ===
|
|
12756
|
+
}, [e.id === Kf ? (D(), o("div", Rf, [s("div", {
|
|
12745
12757
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12746
12758
|
"data-label": k.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12747
|
-
}, null, 8,
|
|
12759
|
+
}, null, 8, zf)])) : e.id.includes(qf) ? (D(), o("div", {
|
|
12748
12760
|
key: 1,
|
|
12749
12761
|
class: "placeholder-zone",
|
|
12750
12762
|
onDragover: r[0] ||= (e) => S(e),
|
|
12751
12763
|
onDragleave: r[1] ||= (e) => C(e),
|
|
12752
12764
|
onDrop: (t) => w(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12753
|
-
}, [s("div",
|
|
12765
|
+
}, [s("div", Vf, [s("span", Hf, F(n.placeholderText), 1)])], 40, Bf)) : (D(), o("div", {
|
|
12754
12766
|
key: 2,
|
|
12755
12767
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !O(e) && k.value ? "pv-menu-item-disabled" : ""]),
|
|
12756
12768
|
style: x(N(e))
|
|
12757
|
-
}, [s("div",
|
|
12769
|
+
}, [s("div", Uf, [
|
|
12758
12770
|
u(Nn, {
|
|
12759
12771
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12760
12772
|
name: "reorder"
|
|
@@ -12764,8 +12776,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12764
12776
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12765
12777
|
name: e.icon
|
|
12766
12778
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12767
|
-
s("span",
|
|
12768
|
-
]), M(e) ? (D(), o("div",
|
|
12779
|
+
s("span", Wf, F(e.text), 1)
|
|
12780
|
+
]), M(e) ? (D(), o("div", Gf)) : (D(), i(Ln, {
|
|
12769
12781
|
key: 0,
|
|
12770
12782
|
"left-icon": O(e) ? "remove-circle" : "add-circle",
|
|
12771
12783
|
ariaLabel: O(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -12777,12 +12789,12 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12777
12789
|
"ariaLabel",
|
|
12778
12790
|
"style",
|
|
12779
12791
|
"onClick"
|
|
12780
|
-
]))], 6))], 8,
|
|
12792
|
+
]))], 6))], 8, Lf))), 128))], 512)], 512));
|
|
12781
12793
|
}
|
|
12782
|
-
}), [["__scopeId", "data-v-0b94d7eb"]]),
|
|
12794
|
+
}), [["__scopeId", "data-v-0b94d7eb"]]), Yf = {
|
|
12783
12795
|
class: "pv-flex pv-full-width pv-space-between",
|
|
12784
12796
|
style: { "white-space": "nowrap" }
|
|
12785
|
-
},
|
|
12797
|
+
}, Xf = { class: "pv-text-body-md" }, Zf = /* @__PURE__ */ d({
|
|
12786
12798
|
inheritAttrs: !1,
|
|
12787
12799
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
12788
12800
|
props: {
|
|
@@ -12791,22 +12803,22 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12791
12803
|
context: {}
|
|
12792
12804
|
},
|
|
12793
12805
|
setup(e) {
|
|
12794
|
-
return (t, n) => (D(), o("div",
|
|
12806
|
+
return (t, n) => (D(), o("div", Yf, [s("span", Xf, F(e.text), 1), e.context?.rightIcon ? (D(), i(Nn, {
|
|
12795
12807
|
key: 0,
|
|
12796
12808
|
name: e.context.rightIcon,
|
|
12797
12809
|
class: "pv-text-subdued"
|
|
12798
12810
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
12799
12811
|
}
|
|
12800
|
-
}),
|
|
12812
|
+
}), Qf = { class: "pv-relative" }, $f = {
|
|
12801
12813
|
role: "list",
|
|
12802
12814
|
class: "pv-relative"
|
|
12803
|
-
},
|
|
12815
|
+
}, ep = ["data-active"], tp = ["data-active"], np = {
|
|
12804
12816
|
key: 2,
|
|
12805
12817
|
style: { cursor: "pointer" }
|
|
12806
|
-
},
|
|
12818
|
+
}, rp = {
|
|
12807
12819
|
key: 0,
|
|
12808
12820
|
role: "list"
|
|
12809
|
-
},
|
|
12821
|
+
}, ip = /* @__PURE__ */ d({
|
|
12810
12822
|
__name: "PvTableOptionsPanel",
|
|
12811
12823
|
props: {
|
|
12812
12824
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -12818,7 +12830,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12818
12830
|
"column-config-change"
|
|
12819
12831
|
],
|
|
12820
12832
|
setup(e, { emit: n }) {
|
|
12821
|
-
let i = e, c = n, l = m(Hl, P(null)), d = m(Ul, k(null)), f = m(Jl, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } =
|
|
12833
|
+
let i = e, c = n, l = m(Hl, P(null)), d = m(Ul, k(null)), f = m(Jl, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } = Fd({
|
|
12822
12834
|
alignment: "top",
|
|
12823
12835
|
popoverCssProperties: {
|
|
12824
12836
|
maxWidth: "300px",
|
|
@@ -12885,7 +12897,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12885
12897
|
previousHiddenColIds: r.hiddenColIds
|
|
12886
12898
|
});
|
|
12887
12899
|
};
|
|
12888
|
-
return (n, r) => L.value ? (D(), o(t, { key: 0 }, [G((D(), o("div",
|
|
12900
|
+
return (n, r) => L.value ? (D(), o(t, { key: 0 }, [G((D(), o("div", Qf, [u(ka, {
|
|
12889
12901
|
open: v.value,
|
|
12890
12902
|
label: "Table Configuration",
|
|
12891
12903
|
icon: "settings",
|
|
@@ -12905,7 +12917,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12905
12917
|
"padding-top": "4px",
|
|
12906
12918
|
"padding-bottom": "12px"
|
|
12907
12919
|
}
|
|
12908
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
12920
|
+
}, " Table Configuration ")], -1), s("ul", $f, [
|
|
12909
12921
|
C.value ? (D(), o("li", {
|
|
12910
12922
|
key: 0,
|
|
12911
12923
|
id: "table-config-overlay",
|
|
@@ -12918,7 +12930,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12918
12930
|
icon: "layers-2",
|
|
12919
12931
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
12920
12932
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
12921
|
-
}, null, 8, ["class-list"])], 8,
|
|
12933
|
+
}, null, 8, ["class-list"])], 8, ep)) : a("", !0),
|
|
12922
12934
|
F.value ? (D(), o("li", {
|
|
12923
12935
|
key: 1,
|
|
12924
12936
|
id: "table-config-columns",
|
|
@@ -12931,8 +12943,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12931
12943
|
icon: "columns-3",
|
|
12932
12944
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
12933
12945
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
12934
|
-
}, null, 8, ["class-list"])], 8,
|
|
12935
|
-
I.value ? (D(), o("li",
|
|
12946
|
+
}, null, 8, ["class-list"])], 8, tp)) : a("", !0),
|
|
12947
|
+
I.value ? (D(), o("li", np, [u(_o, {
|
|
12936
12948
|
config: { variant: "icon" },
|
|
12937
12949
|
id: "table-config-group-toggle",
|
|
12938
12950
|
class: "pv-text-subdued",
|
|
@@ -12953,11 +12965,11 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12953
12965
|
},
|
|
12954
12966
|
isList: b.value !== "columns"
|
|
12955
12967
|
}, {
|
|
12956
|
-
default: W(() => [b.value === "overlay" ? (D(), o("ul",
|
|
12968
|
+
default: W(() => [b.value === "overlay" ? (D(), o("ul", rp, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(_o, {
|
|
12957
12969
|
id: e.id,
|
|
12958
12970
|
config: {
|
|
12959
12971
|
variant: "checkbox",
|
|
12960
|
-
renderer:
|
|
12972
|
+
renderer: Zf
|
|
12961
12973
|
},
|
|
12962
12974
|
text: e.text,
|
|
12963
12975
|
context: e.context,
|
|
@@ -12982,7 +12994,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12982
12994
|
"padding-left": "2px",
|
|
12983
12995
|
"padding-bottom": "6px"
|
|
12984
12996
|
}
|
|
12985
|
-
}, " Currently Viewing ", -1), u(
|
|
12997
|
+
}, " Currently Viewing ", -1), u(Jf, {
|
|
12986
12998
|
modelValue: ee.value,
|
|
12987
12999
|
options: B.value,
|
|
12988
13000
|
showPlaceholders: !1,
|
|
@@ -12995,18 +13007,18 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
12995
13007
|
"isList"
|
|
12996
13008
|
])], 64)) : a("", !0);
|
|
12997
13009
|
}
|
|
12998
|
-
}),
|
|
13010
|
+
}), ap = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, op = ["data-group-name"], sp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, cp = ["data-loading"], lp = { class: "pv-chart-chip-label pv-flex-item" }, up = { class: "pv-chart-chip-value" }, dp = /* @__PURE__ */ d({
|
|
12999
13011
|
__name: "PvBenchmarkChips",
|
|
13000
13012
|
props: { sections: {} },
|
|
13001
13013
|
emits: ["chip-hover"],
|
|
13002
13014
|
setup(e, { emit: n }) {
|
|
13003
13015
|
let r = n;
|
|
13004
|
-
return (n, c) => (D(), o("div",
|
|
13016
|
+
return (n, c) => (D(), o("div", ap, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13005
13017
|
key: e.groupName,
|
|
13006
13018
|
"data-testid": "chip-section",
|
|
13007
13019
|
"data-group-name": e.groupName,
|
|
13008
13020
|
class: "pv-flex-vertical"
|
|
13009
|
-
}, [s("p",
|
|
13021
|
+
}, [s("p", sp, F(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13010
13022
|
key: e.key,
|
|
13011
13023
|
"data-testid": "benchmark-chip",
|
|
13012
13024
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -13033,8 +13045,8 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13033
13045
|
class: "pv-chart-benchmark-chip-accent",
|
|
13034
13046
|
style: x({ backgroundColor: e.color })
|
|
13035
13047
|
}, null, 4)) : a("", !0),
|
|
13036
|
-
s("span",
|
|
13037
|
-
s("span",
|
|
13048
|
+
s("span", lp, F(e.label), 1),
|
|
13049
|
+
s("span", up, F(e.formattedValue), 1),
|
|
13038
13050
|
e.excludeFromCrossline ? (D(), i(z(qi), {
|
|
13039
13051
|
key: 1,
|
|
13040
13052
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -13057,16 +13069,16 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13057
13069
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
13058
13070
|
_: 1
|
|
13059
13071
|
})) : a("", !0)
|
|
13060
|
-
], 64))], 16,
|
|
13072
|
+
], 64))], 16, cp))), 128))], 8, op))), 128))]));
|
|
13061
13073
|
}
|
|
13062
|
-
}),
|
|
13074
|
+
}), fp = (e) => e.field === "state" || $(e).dataType === $o.Location, pp = (e) => e.filter(fp), mp = (e, t, n) => {
|
|
13063
13075
|
if (!n || t.length === 0) return e;
|
|
13064
13076
|
let r = new Set(n(t).map((e) => e.field));
|
|
13065
13077
|
return e.filter((e) => r.has(e));
|
|
13066
|
-
},
|
|
13078
|
+
}, hp = (e) => e.filter((e) => !cs(e)), gp = (e) => e.filter((e) => cs(e)), _p = {
|
|
13067
13079
|
xAxis: {
|
|
13068
13080
|
selectMode: "sortable",
|
|
13069
|
-
filterColumns:
|
|
13081
|
+
filterColumns: hp
|
|
13070
13082
|
},
|
|
13071
13083
|
yAxis: {},
|
|
13072
13084
|
secondaryYAxis: {},
|
|
@@ -13075,16 +13087,16 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13075
13087
|
rowGroupLimit: 2,
|
|
13076
13088
|
supportsFocusView: !0,
|
|
13077
13089
|
storeBeforeChange: !0
|
|
13078
|
-
},
|
|
13090
|
+
}, vp = [
|
|
13079
13091
|
{
|
|
13080
|
-
...
|
|
13092
|
+
..._p,
|
|
13081
13093
|
id: "column",
|
|
13082
13094
|
text: "Column",
|
|
13083
13095
|
icon: "chart-column",
|
|
13084
13096
|
agChartType: "bar"
|
|
13085
13097
|
},
|
|
13086
13098
|
{
|
|
13087
|
-
...
|
|
13099
|
+
..._p,
|
|
13088
13100
|
id: "bar",
|
|
13089
13101
|
text: "Bar",
|
|
13090
13102
|
icon: "chart-bar",
|
|
@@ -13092,28 +13104,28 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13092
13104
|
isHorizontal: !0
|
|
13093
13105
|
},
|
|
13094
13106
|
{
|
|
13095
|
-
...
|
|
13107
|
+
..._p,
|
|
13096
13108
|
id: "line",
|
|
13097
13109
|
text: "Line",
|
|
13098
13110
|
icon: "chart-line",
|
|
13099
13111
|
agChartType: "line"
|
|
13100
13112
|
},
|
|
13101
13113
|
{
|
|
13102
|
-
...
|
|
13114
|
+
..._p,
|
|
13103
13115
|
id: "area",
|
|
13104
13116
|
text: "Area",
|
|
13105
13117
|
icon: "chart-area",
|
|
13106
13118
|
agChartType: "area"
|
|
13107
13119
|
},
|
|
13108
13120
|
{
|
|
13109
|
-
...
|
|
13121
|
+
..._p,
|
|
13110
13122
|
id: "column_stacked",
|
|
13111
13123
|
text: "Stacked Column",
|
|
13112
13124
|
icon: "chart-column-stacked",
|
|
13113
13125
|
agChartType: "bar"
|
|
13114
13126
|
},
|
|
13115
13127
|
{
|
|
13116
|
-
...
|
|
13128
|
+
..._p,
|
|
13117
13129
|
id: "bar_stacked",
|
|
13118
13130
|
text: "Stacked Bar",
|
|
13119
13131
|
icon: "chart-bar-stacked",
|
|
@@ -13121,7 +13133,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13121
13133
|
isHorizontal: !0
|
|
13122
13134
|
},
|
|
13123
13135
|
{
|
|
13124
|
-
...
|
|
13136
|
+
..._p,
|
|
13125
13137
|
id: "pie",
|
|
13126
13138
|
text: "Pie",
|
|
13127
13139
|
icon: "chart-pie",
|
|
@@ -13135,7 +13147,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13135
13147
|
icon: "chart-column",
|
|
13136
13148
|
xAxis: {
|
|
13137
13149
|
selectMode: "single",
|
|
13138
|
-
filterColumns:
|
|
13150
|
+
filterColumns: gp,
|
|
13139
13151
|
hideLabel: !0
|
|
13140
13152
|
},
|
|
13141
13153
|
yAxis: {
|
|
@@ -13156,7 +13168,7 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13156
13168
|
icon: "map",
|
|
13157
13169
|
xAxis: {
|
|
13158
13170
|
selectMode: "single",
|
|
13159
|
-
filterColumns:
|
|
13171
|
+
filterColumns: pp,
|
|
13160
13172
|
hideLabel: !0
|
|
13161
13173
|
},
|
|
13162
13174
|
yAxis: {},
|
|
@@ -13168,26 +13180,26 @@ var Hu = { style: { "line-height": "20px" } }, Uu = { class: "pv-text-subdued pv
|
|
|
13168
13180
|
supportsFocusView: !1,
|
|
13169
13181
|
storeBeforeChange: !1
|
|
13170
13182
|
}
|
|
13171
|
-
],
|
|
13172
|
-
function
|
|
13173
|
-
return
|
|
13183
|
+
], yp = new Map(vp.map((e) => [e.id, e])), bp = yp.get("column");
|
|
13184
|
+
function xp(e) {
|
|
13185
|
+
return yp.get(e) || bp;
|
|
13174
13186
|
}
|
|
13175
13187
|
//#endregion
|
|
13176
13188
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
13177
|
-
var
|
|
13189
|
+
var Sp = {
|
|
13178
13190
|
class: "pv-full-width pv-flex",
|
|
13179
13191
|
style: { "--flex-gap": "8px" }
|
|
13180
|
-
},
|
|
13192
|
+
}, Cp = {
|
|
13181
13193
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
13182
13194
|
style: {
|
|
13183
13195
|
"align-items": "flex-start",
|
|
13184
13196
|
"--flex-gap": "0"
|
|
13185
13197
|
}
|
|
13186
|
-
},
|
|
13198
|
+
}, wp = ["title"], Tp = ["title"], Ep = { style: {
|
|
13187
13199
|
"max-width": "220px",
|
|
13188
13200
|
"white-space": "normal",
|
|
13189
13201
|
"overflow-wrap": "break-word"
|
|
13190
|
-
} },
|
|
13202
|
+
} }, Dp = /* @__PURE__ */ d({
|
|
13191
13203
|
inheritAttrs: !1,
|
|
13192
13204
|
__name: "PvChartOptionMenuItemRenderer",
|
|
13193
13205
|
props: {
|
|
@@ -13196,14 +13208,14 @@ var bp = {
|
|
|
13196
13208
|
text: {}
|
|
13197
13209
|
},
|
|
13198
13210
|
setup(e) {
|
|
13199
|
-
return (t, n) => (D(), o("div",
|
|
13211
|
+
return (t, n) => (D(), o("div", Sp, [s("div", Cp, [s("span", {
|
|
13200
13212
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
13201
13213
|
title: e.text
|
|
13202
|
-
}, F(e.text), 9,
|
|
13214
|
+
}, F(e.text), 9, wp), e.subText ? (D(), o("span", {
|
|
13203
13215
|
key: 0,
|
|
13204
13216
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
13205
13217
|
title: e.subText
|
|
13206
|
-
}, F(e.subText), 9,
|
|
13218
|
+
}, F(e.subText), 9, Tp)) : a("", !0)]), e.context?.description ? (D(), i(z(qi), {
|
|
13207
13219
|
key: 0,
|
|
13208
13220
|
variant: "dark",
|
|
13209
13221
|
position: "center-right",
|
|
@@ -13217,34 +13229,34 @@ var bp = {
|
|
|
13217
13229
|
name: "info-circle",
|
|
13218
13230
|
class: "pv-text-subdued"
|
|
13219
13231
|
})]),
|
|
13220
|
-
content: W(() => [s("div",
|
|
13232
|
+
content: W(() => [s("div", Ep, F(e.context.description), 1)]),
|
|
13221
13233
|
_: 1
|
|
13222
13234
|
})) : a("", !0)]));
|
|
13223
13235
|
}
|
|
13224
|
-
}),
|
|
13236
|
+
}), Op = { class: "pv-stack-16 pv-chart-options-panel" }, kp = { class: "pv-flex pv-relative" }, Ap = [
|
|
13225
13237
|
"id",
|
|
13226
13238
|
"aria-label",
|
|
13227
13239
|
"onKeydown"
|
|
13228
|
-
],
|
|
13240
|
+
], jp = {
|
|
13229
13241
|
role: "list",
|
|
13230
13242
|
class: "pv-popover-list pv-relative"
|
|
13231
|
-
},
|
|
13243
|
+
}, Mp = [
|
|
13232
13244
|
"id",
|
|
13233
13245
|
"data-active",
|
|
13234
13246
|
"data-dd-action-name",
|
|
13235
13247
|
"onMouseenter",
|
|
13236
13248
|
"onClick"
|
|
13237
|
-
],
|
|
13249
|
+
], Np = { style: { "max-width": "100px" } }, Pp = {
|
|
13238
13250
|
key: 1,
|
|
13239
13251
|
class: "pv-flex"
|
|
13240
|
-
},
|
|
13252
|
+
}, Fp = {
|
|
13241
13253
|
key: 0,
|
|
13242
13254
|
class: "pv-inset-square-8"
|
|
13243
|
-
},
|
|
13255
|
+
}, Ip = {
|
|
13244
13256
|
key: 1,
|
|
13245
13257
|
role: "list",
|
|
13246
13258
|
class: "pv-popover-list"
|
|
13247
|
-
},
|
|
13259
|
+
}, Lp = ["data-active"], Rp = "This metric isn’t available with the selected chart type.", zp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
13248
13260
|
__name: "PvChartOptionsPanel",
|
|
13249
13261
|
props: {
|
|
13250
13262
|
enablePanel: { type: Boolean },
|
|
@@ -13261,34 +13273,34 @@ var bp = {
|
|
|
13261
13273
|
},
|
|
13262
13274
|
emits: ["series-agg-func-selected"],
|
|
13263
13275
|
setup(e, { emit: n }) {
|
|
13264
|
-
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } =
|
|
13276
|
+
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } = Fd({
|
|
13265
13277
|
alignment: "top right",
|
|
13266
13278
|
popoverCssProperties: {
|
|
13267
13279
|
maxWidth: "500px",
|
|
13268
13280
|
maxHeight: "900px"
|
|
13269
13281
|
},
|
|
13270
13282
|
useTeleport: !0
|
|
13271
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(iu, k(void 0)), T = m(nu, k([])), E = m(au, k(void 0)), O = m(ru, k([])), j = m(tu, k([])), M = m(Kl, k([])), N = r(() =>
|
|
13283
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(iu, k(void 0)), T = m(nu, k([])), E = m(au, k(void 0)), O = m(ru, k([])), j = m(tu, k([])), M = m(Kl, k([])), N = r(() => xp(w.value?.id || "")), P = r(() => {
|
|
13272
13284
|
let e = w.value?.id ?? "";
|
|
13273
13285
|
return j.value.length > 1 && !e.endsWith("_stacked");
|
|
13274
|
-
}), I = m(ou, k("")), L = m(su, k([])), R = m(cu, k(void 0)), B = m(lu, k([])), ee = m(du, k(/* @__PURE__ */ new Set())),
|
|
13286
|
+
}), I = m(ou, k("")), L = m(su, k([])), R = m(cu, k(void 0)), B = m(lu, k([])), ee = m(du, k(!1)), V = m(uu, k([])), te = m(pu, k(/* @__PURE__ */ new Set())), H = m(mu, k([])), ne = r(() => H.value.filter((e) => te.value.has(e.id)).map((e) => ({
|
|
13275
13287
|
id: e.id,
|
|
13276
13288
|
text: e.label,
|
|
13277
13289
|
disabled: e.disabled,
|
|
13278
13290
|
context: e.disabledReason ? { description: e.disabledReason } : void 0
|
|
13279
|
-
}))),
|
|
13280
|
-
|
|
13291
|
+
}))), re = (e) => {
|
|
13292
|
+
te.value = new Set(e.map((e) => e.id));
|
|
13281
13293
|
};
|
|
13282
13294
|
U(P, (e) => {
|
|
13283
|
-
e && R.value && (R.value = void 0);
|
|
13295
|
+
e && R.value && (R.value = void 0), e && V.value.length > 0 && (V.value = []);
|
|
13284
13296
|
}, { immediate: !0 });
|
|
13285
|
-
let
|
|
13297
|
+
let ie = m(eu, k("")), oe = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
13286
13298
|
label: e.label,
|
|
13287
13299
|
value: e.value
|
|
13288
|
-
})) : []),
|
|
13300
|
+
})) : []), se = r(() => {
|
|
13289
13301
|
let e = j.value[0];
|
|
13290
13302
|
return e ? ys(M.value.find((t) => t.field === e)) : !1;
|
|
13291
|
-
}),
|
|
13303
|
+
}), ce = r(() => {
|
|
13292
13304
|
if (w.value) return (j.value.length > 1 ? [
|
|
13293
13305
|
"bar_stacked",
|
|
13294
13306
|
"line",
|
|
@@ -13317,13 +13329,13 @@ var bp = {
|
|
|
13317
13329
|
}
|
|
13318
13330
|
w.value = e[0];
|
|
13319
13331
|
});
|
|
13320
|
-
let
|
|
13332
|
+
let le = (e, t) => {
|
|
13321
13333
|
for (let n of e) {
|
|
13322
13334
|
if (n.id === t) return n;
|
|
13323
|
-
let e = n.children ?
|
|
13335
|
+
let e = n.children ? le(n.children, t) : void 0;
|
|
13324
13336
|
if (e) return e;
|
|
13325
13337
|
}
|
|
13326
|
-
},
|
|
13338
|
+
}, q = (e) => e.flatMap((e) => e.children?.length ? q(e.children) : e), ue = (e) => {
|
|
13327
13339
|
switch (e) {
|
|
13328
13340
|
case "y-axis": return "Select Y Axis metric";
|
|
13329
13341
|
case "secondary-y-axis": return "Select Metric Overlay";
|
|
@@ -13332,76 +13344,76 @@ var bp = {
|
|
|
13332
13344
|
case "sort": return "Select Chart Sort";
|
|
13333
13345
|
default: return;
|
|
13334
13346
|
}
|
|
13335
|
-
},
|
|
13347
|
+
}, J = Il(), de = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, fe = (e, t, n = "select") => {
|
|
13336
13348
|
if (!t) return;
|
|
13337
|
-
let r =
|
|
13349
|
+
let r = Me.value.find((t) => t.value === e), i = r?.availableOptions ? le(r.availableOptions, t) : void 0;
|
|
13338
13350
|
Ll("chart_option_selected", {
|
|
13339
|
-
panel:
|
|
13351
|
+
panel: de(e),
|
|
13340
13352
|
selected_value: i?.text ?? t,
|
|
13341
13353
|
selected_value_id: t,
|
|
13342
13354
|
action: n
|
|
13343
|
-
},
|
|
13344
|
-
},
|
|
13355
|
+
}, J());
|
|
13356
|
+
}, Y = (e, t) => {
|
|
13345
13357
|
let n = new Set(e.activeOptionIds);
|
|
13346
13358
|
e.updateSelectedOptions?.(t), Rl(() => {
|
|
13347
|
-
for (let r of t) n.has(r.id) ||
|
|
13359
|
+
for (let r of t) n.has(r.id) || fe(e.value, r.id);
|
|
13348
13360
|
});
|
|
13349
|
-
},
|
|
13350
|
-
e.updateSelectedOption?.(t?.id || ""), Rl(() =>
|
|
13351
|
-
},
|
|
13361
|
+
}, pe = (e, t) => {
|
|
13362
|
+
e.updateSelectedOption?.(t?.id || ""), Rl(() => fe(e.value, t?.id));
|
|
13363
|
+
}, X = (e, t) => {
|
|
13352
13364
|
let n = t.option;
|
|
13353
13365
|
if (e.isMultiSelect) {
|
|
13354
13366
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
13355
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(
|
|
13367
|
+
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) || Rl(() => fe(e.value, n.id));
|
|
13356
13368
|
return;
|
|
13357
13369
|
}
|
|
13358
|
-
e.updateSelectedOption?.(n.id), Rl(() =>
|
|
13359
|
-
},
|
|
13370
|
+
e.updateSelectedOption?.(n.id), Rl(() => fe(e.value, n.id));
|
|
13371
|
+
}, me = (e, t) => {
|
|
13360
13372
|
let n = e.activeOptions?.value ?? [];
|
|
13361
13373
|
e.activeOptions && (e.activeOptions.value = t), Rl(() => {
|
|
13362
13374
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
13363
|
-
for (let n of t) a.has(n.id) ||
|
|
13364
|
-
for (let t of n) o.has(t.id) ||
|
|
13375
|
+
for (let n of t) a.has(n.id) || fe(e.value, n.id, "select");
|
|
13376
|
+
for (let t of n) o.has(t.id) || fe(e.value, t.id, "deselect");
|
|
13365
13377
|
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && Ll("chart_option_selected", {
|
|
13366
|
-
panel:
|
|
13378
|
+
panel: de(e.value),
|
|
13367
13379
|
selected_value: t.map((e) => e.text).join(", "),
|
|
13368
13380
|
selected_value_id: i.join(","),
|
|
13369
13381
|
action: "reorder"
|
|
13370
|
-
},
|
|
13382
|
+
}, J());
|
|
13371
13383
|
});
|
|
13372
|
-
},
|
|
13384
|
+
}, he = (e, t) => `chart-series-agg-func:${encodeURIComponent(e)}:${encodeURIComponent(t)}`, ge = (e) => `chart-series-agg-func-group:${encodeURIComponent(e)}`, _e = (e) => e ? { renderer: Dp } : { variant: "icon" }, ve = r(() => w.value?.id === "line" ? l.percentOfFocusViewYKey : void 0), ye = (e, t, n) => {
|
|
13373
13385
|
let r = !!e && t === e;
|
|
13374
13386
|
return {
|
|
13375
13387
|
disabled: r,
|
|
13376
|
-
description: r ?
|
|
13388
|
+
description: r ? Rp : n
|
|
13377
13389
|
};
|
|
13378
|
-
},
|
|
13390
|
+
}, be = (e, t) => {
|
|
13379
13391
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
13380
13392
|
for (let a of e) {
|
|
13381
13393
|
let e = a.columnField;
|
|
13382
13394
|
if (!a.aggFuncOptions?.length || !e) {
|
|
13383
|
-
let { disabled: e, description: r } =
|
|
13395
|
+
let { disabled: e, description: r } = ye(t, a.value, a.description);
|
|
13384
13396
|
n.push({
|
|
13385
13397
|
id: a.value,
|
|
13386
13398
|
text: a.label,
|
|
13387
13399
|
disabled: e,
|
|
13388
13400
|
context: r ? { description: r } : void 0,
|
|
13389
|
-
config:
|
|
13401
|
+
config: _e(r)
|
|
13390
13402
|
});
|
|
13391
13403
|
continue;
|
|
13392
13404
|
}
|
|
13393
13405
|
for (let o of a.aggFuncOptions) {
|
|
13394
13406
|
let s = r.get(o.aggFunc);
|
|
13395
13407
|
s || (s = {
|
|
13396
|
-
id:
|
|
13408
|
+
id: ge(o.aggFunc),
|
|
13397
13409
|
text: o.label,
|
|
13398
13410
|
context: o.description ? { description: o.description } : void 0,
|
|
13399
|
-
config:
|
|
13411
|
+
config: _e(o.description),
|
|
13400
13412
|
children: []
|
|
13401
13413
|
}, r.set(o.aggFunc, s), n.push(s)), o.order !== void 0 && !i.has(s.id) && i.set(s.id, o.order);
|
|
13402
|
-
let { disabled: c, description: l } =
|
|
13414
|
+
let { disabled: c, description: l } = ye(t, o.seriesValue ?? a.value, a.description);
|
|
13403
13415
|
s.children?.push({
|
|
13404
|
-
id:
|
|
13416
|
+
id: he(e, o.aggFunc),
|
|
13405
13417
|
text: a.label,
|
|
13406
13418
|
disabled: c,
|
|
13407
13419
|
context: {
|
|
@@ -13410,7 +13422,7 @@ var bp = {
|
|
|
13410
13422
|
description: l,
|
|
13411
13423
|
seriesValue: o.seriesValue
|
|
13412
13424
|
},
|
|
13413
|
-
config:
|
|
13425
|
+
config: _e(l)
|
|
13414
13426
|
});
|
|
13415
13427
|
}
|
|
13416
13428
|
}
|
|
@@ -13418,47 +13430,59 @@ var bp = {
|
|
|
13418
13430
|
let n = i.get(e.id), r = i.get(t.id);
|
|
13419
13431
|
return n === void 0 ? r === void 0 ? 0 : 1 : r === void 0 ? -1 : n - r;
|
|
13420
13432
|
});
|
|
13421
|
-
},
|
|
13422
|
-
let { disabled: n, description: r } =
|
|
13433
|
+
}, xe = (e, t) => e.map((e) => {
|
|
13434
|
+
let { disabled: n, description: r } = ye(t, e.value, e.description);
|
|
13423
13435
|
return {
|
|
13424
13436
|
id: e.value,
|
|
13425
13437
|
text: e.label,
|
|
13426
13438
|
disabled: n,
|
|
13427
13439
|
context: r ? { description: r } : void 0
|
|
13428
13440
|
};
|
|
13429
|
-
}),
|
|
13441
|
+
}), Se = (e, t, n) => {
|
|
13430
13442
|
if (!n) return;
|
|
13431
13443
|
let r = t.find((e) => e.value === n || e.aggFuncOptions?.some((e) => e.seriesValue === n));
|
|
13432
|
-
if (!r?.aggFuncOptions?.length || !r.columnField) return
|
|
13444
|
+
if (!r?.aggFuncOptions?.length || !r.columnField) return le(e, n);
|
|
13433
13445
|
let i = r.aggFuncOptions.find((e) => e.aggFunc === r.activeAggFunc) ?? r.aggFuncOptions.find((e) => e.seriesValue === n) ?? r.aggFuncOptions[0];
|
|
13434
|
-
return i ?
|
|
13435
|
-
},
|
|
13436
|
-
let n =
|
|
13446
|
+
return i ? le(e, he(r.columnField, i.aggFunc)) : void 0;
|
|
13447
|
+
}, Ce = (e, t) => {
|
|
13448
|
+
let n = le(e, t), r = n?.context;
|
|
13437
13449
|
return {
|
|
13438
13450
|
aggFunc: r?.aggFunc,
|
|
13439
13451
|
columnField: r?.columnField,
|
|
13440
13452
|
seriesValue: r?.seriesValue ?? n?.id
|
|
13441
13453
|
};
|
|
13442
|
-
},
|
|
13454
|
+
}, we = (e) => e.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0), Te = r(() => V.value.map((e) => Se(ke.value, B.value, e)).filter((e) => e !== void 0)), Ee = r(() => new Set(Te.value.map((e) => e.id))), De = (e) => {
|
|
13455
|
+
let t = /* @__PURE__ */ new Set(), n = [];
|
|
13456
|
+
for (let r of e) {
|
|
13457
|
+
let e = Ce(ke.value, r.id);
|
|
13458
|
+
if (!e.seriesValue) continue;
|
|
13459
|
+
let i = e.columnField ?? e.seriesValue;
|
|
13460
|
+
t.has(i) || (t.add(i), n.push(e.seriesValue), e.aggFunc && e.columnField && d("series-agg-func-selected", {
|
|
13461
|
+
aggFunc: e.aggFunc,
|
|
13462
|
+
columnField: e.columnField
|
|
13463
|
+
}));
|
|
13464
|
+
}
|
|
13465
|
+
V.value = n;
|
|
13466
|
+
}, Oe = r(() => f.value ? be(L.value, ve.value) : xe(L.value, ve.value)), ke = r(() => f.value ? be(B.value) : xe(B.value)), Ae = r(() => f.value ? we(L.value) : L.value.length), Z = r(() => M.value.map((e) => ({
|
|
13443
13467
|
id: e.field || "",
|
|
13444
13468
|
text: e.headerName || e.field || "",
|
|
13445
13469
|
icon: es(e.context?.dataType || null) || "circle-chevron-down"
|
|
13446
|
-
}))),
|
|
13447
|
-
get: () => j.value.map((e) =>
|
|
13470
|
+
}))), je = r({
|
|
13471
|
+
get: () => j.value.map((e) => Z.value.find((t) => t.id === e)).filter(Boolean),
|
|
13448
13472
|
set: (e) => {
|
|
13449
13473
|
j.value = e.map((e) => e.id);
|
|
13450
13474
|
}
|
|
13451
|
-
}),
|
|
13475
|
+
}), Me = r(() => {
|
|
13452
13476
|
let e = [], t = {
|
|
13453
13477
|
value: "y-axis",
|
|
13454
13478
|
label: "Y Axis",
|
|
13455
13479
|
prefixLabel: "Y Axis",
|
|
13456
13480
|
icon: "chart-bar-decreasing",
|
|
13457
13481
|
allowDeselect: !1,
|
|
13458
|
-
availableOptions:
|
|
13459
|
-
currentOption:
|
|
13482
|
+
availableOptions: Oe.value,
|
|
13483
|
+
currentOption: Se(Oe.value, L.value, I.value),
|
|
13460
13484
|
updateSelectedOption: (e) => {
|
|
13461
|
-
let t =
|
|
13485
|
+
let t = Ce(Oe.value, e);
|
|
13462
13486
|
t.seriesValue && (I.value = t.seriesValue, t.aggFunc && t.columnField && d("series-agg-func-selected", {
|
|
13463
13487
|
aggFunc: t.aggFunc,
|
|
13464
13488
|
columnField: t.columnField
|
|
@@ -13470,12 +13494,12 @@ var bp = {
|
|
|
13470
13494
|
label: "X Axis",
|
|
13471
13495
|
icon: "align-end-horizontal",
|
|
13472
13496
|
allowDeselect: !1,
|
|
13473
|
-
availableOptions:
|
|
13497
|
+
availableOptions: Z.value,
|
|
13474
13498
|
...r ? {
|
|
13475
|
-
activeOptions:
|
|
13499
|
+
activeOptions: je,
|
|
13476
13500
|
activeOptionLimit: l.rowGroupLimit
|
|
13477
13501
|
} : {
|
|
13478
|
-
currentOption:
|
|
13502
|
+
currentOption: Z.value.find((e) => e.id === j.value[0]),
|
|
13479
13503
|
updateSelectedOption: (e) => {
|
|
13480
13504
|
j.value = e ? [e] : [];
|
|
13481
13505
|
}
|
|
@@ -13487,8 +13511,8 @@ var bp = {
|
|
|
13487
13511
|
allowDeselect: !0,
|
|
13488
13512
|
availableOptions: O.value,
|
|
13489
13513
|
currentOption: O.value.find((e) => e.id === E.value?.id),
|
|
13490
|
-
disabled:
|
|
13491
|
-
disabledReason:
|
|
13514
|
+
disabled: se.value || !ce.value,
|
|
13515
|
+
disabledReason: se.value ? "Dates are always sorted oldest to newest" : "Sorting is not available for this chart type",
|
|
13492
13516
|
updateSelectedOption: (e) => {
|
|
13493
13517
|
let t = O.value.find((t) => t.id === e);
|
|
13494
13518
|
if (!t || !E) {
|
|
@@ -13509,8 +13533,21 @@ var bp = {
|
|
|
13509
13533
|
t && w && (w.value = t);
|
|
13510
13534
|
}
|
|
13511
13535
|
};
|
|
13512
|
-
if (
|
|
13513
|
-
let t = {
|
|
13536
|
+
if (Ae.value > 1 && e.push(t), !n.secondaryYAxis?.hidden && ke.value.length > 0) {
|
|
13537
|
+
let t = ee.value ? {
|
|
13538
|
+
value: "secondary-y-axis",
|
|
13539
|
+
label: "Metric Overlay",
|
|
13540
|
+
prefixLabel: "Metric Overlay",
|
|
13541
|
+
icon: "chart-line",
|
|
13542
|
+
allowDeselect: !0,
|
|
13543
|
+
isMultiSelect: !0,
|
|
13544
|
+
disabled: P.value,
|
|
13545
|
+
disabledReason: "Metric overlay is not available for this chart type.",
|
|
13546
|
+
availableOptions: ke.value,
|
|
13547
|
+
activeOptionIds: Ee.value,
|
|
13548
|
+
activeOptions: Te,
|
|
13549
|
+
updateSelectedOptions: De
|
|
13550
|
+
} : {
|
|
13514
13551
|
value: "secondary-y-axis",
|
|
13515
13552
|
label: "Metric Overlay",
|
|
13516
13553
|
prefixLabel: "Metric Overlay",
|
|
@@ -13518,16 +13555,16 @@ var bp = {
|
|
|
13518
13555
|
allowDeselect: !0,
|
|
13519
13556
|
disabled: P.value,
|
|
13520
13557
|
disabledReason: "Metric overlay is not available for this chart type.",
|
|
13521
|
-
availableOptions:
|
|
13522
|
-
currentOption:
|
|
13558
|
+
availableOptions: ke.value,
|
|
13559
|
+
currentOption: Se(ke.value, B.value, R.value),
|
|
13523
13560
|
updateSelectedOption: (e) => {
|
|
13524
13561
|
if (!R) return;
|
|
13525
|
-
let t =
|
|
13562
|
+
let t = Se(ke.value, B.value, R.value);
|
|
13526
13563
|
if (!e || t?.id === e) {
|
|
13527
13564
|
R.value = void 0;
|
|
13528
13565
|
return;
|
|
13529
13566
|
}
|
|
13530
|
-
let n =
|
|
13567
|
+
let n = Ce(ke.value, e);
|
|
13531
13568
|
R.value = n.seriesValue, n.aggFunc && n.columnField && d("series-agg-func-selected", {
|
|
13532
13569
|
aggFunc: n.aggFunc,
|
|
13533
13570
|
columnField: n.columnField
|
|
@@ -13535,8 +13572,8 @@ var bp = {
|
|
|
13535
13572
|
}
|
|
13536
13573
|
};
|
|
13537
13574
|
t && e.push(t);
|
|
13538
|
-
} else if (
|
|
13539
|
-
let t =
|
|
13575
|
+
} else if (H.value.length > 0) {
|
|
13576
|
+
let t = H.value.map((e) => ({
|
|
13540
13577
|
id: e.id,
|
|
13541
13578
|
text: e.label,
|
|
13542
13579
|
disabled: e.disabled,
|
|
@@ -13549,23 +13586,23 @@ var bp = {
|
|
|
13549
13586
|
allowDeselect: !0,
|
|
13550
13587
|
isMultiSelect: !0,
|
|
13551
13588
|
availableOptions: t,
|
|
13552
|
-
activeOptionIds:
|
|
13553
|
-
activeOptions:
|
|
13554
|
-
currentOption: t.find((e) =>
|
|
13555
|
-
updateSelectedOptions:
|
|
13589
|
+
activeOptionIds: te.value,
|
|
13590
|
+
activeOptions: ne,
|
|
13591
|
+
currentOption: t.find((e) => te.value.has(e.id)),
|
|
13592
|
+
updateSelectedOptions: re
|
|
13556
13593
|
};
|
|
13557
13594
|
n && e.push(n);
|
|
13558
13595
|
}
|
|
13559
13596
|
let s = r ? 2 : 1;
|
|
13560
|
-
return
|
|
13561
|
-
}),
|
|
13597
|
+
return Z.value.length >= s && e.push(i), T.value.length > 1 && e.push(o), O.value.length > 0 && e.push(a), e.filter((e) => l.chartConfigOptions ? l.chartConfigOptions.includes(e.value) : !0);
|
|
13598
|
+
}), Q = r(() => S.value && Me.value.find((e) => e.value === S.value) || null), Ne = (e) => e.activeOptions ? e.activeOptions.value : e.currentOption ? [e.currentOption] : [], Pe = (e) => Ne(e).map((e) => e.text).join(", ") || void 0, Fe = r(() => Me.value.map((e) => ({
|
|
13562
13599
|
id: e.value,
|
|
13563
13600
|
text: e.label,
|
|
13564
|
-
subText:
|
|
13601
|
+
subText: Pe(e),
|
|
13565
13602
|
icon: e.icon,
|
|
13566
13603
|
disabled: e.disabled,
|
|
13567
13604
|
hoverTitle: e.disabledReason,
|
|
13568
|
-
rumActionName:
|
|
13605
|
+
rumActionName: ue(e.value),
|
|
13569
13606
|
popoverRole: e.isSortableList ? "dialog" : "menu",
|
|
13570
13607
|
children: e.availableOptions,
|
|
13571
13608
|
config: {
|
|
@@ -13577,44 +13614,44 @@ var bp = {
|
|
|
13577
13614
|
alwaysShow: !0
|
|
13578
13615
|
} } : {}
|
|
13579
13616
|
}
|
|
13580
|
-
}))),
|
|
13617
|
+
}))), Ie = (e) => e.isMultiSelect ? {
|
|
13581
13618
|
variant: "checkbox",
|
|
13582
|
-
renderer:
|
|
13619
|
+
renderer: Dp
|
|
13583
13620
|
} : { variant: "icon" };
|
|
13584
13621
|
U(C, (e) => {
|
|
13585
13622
|
e && (v.value = e);
|
|
13586
13623
|
});
|
|
13587
|
-
let
|
|
13588
|
-
let t =
|
|
13624
|
+
let Le = (e) => {
|
|
13625
|
+
let t = Q.value;
|
|
13589
13626
|
if (!t?.isMultiSelect) return;
|
|
13590
|
-
let n = new Set(
|
|
13627
|
+
let n = new Set(t.activeOptionIds ?? []);
|
|
13591
13628
|
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Rl(() => {
|
|
13592
|
-
for (let r of e) n.has(r) ||
|
|
13629
|
+
for (let r of e) n.has(r) || fe(t.value, r);
|
|
13593
13630
|
});
|
|
13594
|
-
},
|
|
13595
|
-
let t =
|
|
13596
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Rl(() =>
|
|
13597
|
-
},
|
|
13598
|
-
let t =
|
|
13631
|
+
}, Re = (e) => {
|
|
13632
|
+
let t = Q.value;
|
|
13633
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Rl(() => fe(t.value, e.id)));
|
|
13634
|
+
}, ze = (e) => {
|
|
13635
|
+
let t = Q.value;
|
|
13599
13636
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
13600
|
-
},
|
|
13637
|
+
}, Be = (e) => Q.value?.isMultiSelect ? {
|
|
13601
13638
|
variant: "checkbox",
|
|
13602
|
-
renderer:
|
|
13603
|
-
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer:
|
|
13639
|
+
renderer: Dp
|
|
13640
|
+
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer: Dp } : { variant: "icon" }, Ve = (e) => {
|
|
13604
13641
|
S.value = e, _.value = document.getElementById(`pv-chart-config-${e}`), g();
|
|
13605
|
-
},
|
|
13642
|
+
}, He = () => {
|
|
13606
13643
|
b.value = !1, S.value = void 0;
|
|
13607
|
-
},
|
|
13644
|
+
}, Ue = () => {
|
|
13608
13645
|
S.value = void 0;
|
|
13609
13646
|
};
|
|
13610
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
13647
|
+
return (n, r) => (D(), o(t, null, [s("div", Op, [s("div", null, [G((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", kp, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(ka, {
|
|
13611
13648
|
open: b.value,
|
|
13612
13649
|
label: "Chart Configuration",
|
|
13613
13650
|
icon: "chart-area",
|
|
13614
13651
|
"data-dd-action-name": "Toggle Chart Configuration panel",
|
|
13615
13652
|
disabled: e.readOnly,
|
|
13616
13653
|
onClick: r[0] ||= (t) => e.readOnly ? null : b.value = !b.value,
|
|
13617
|
-
onHandleToggleDropdown:
|
|
13654
|
+
onHandleToggleDropdown: Ue
|
|
13618
13655
|
}, null, 8, ["open", "disabled"]), f.value ? (D(), i(yo, {
|
|
13619
13656
|
key: 0,
|
|
13620
13657
|
class: y({ "pv-hide": !b.value }),
|
|
@@ -13633,14 +13670,14 @@ var bp = {
|
|
|
13633
13670
|
}, " Chart Configuration ")], -1), u(Do, {
|
|
13634
13671
|
expandedOptionId: S.value,
|
|
13635
13672
|
"onUpdate:expandedOptionId": r[3] ||= (e) => S.value = e,
|
|
13636
|
-
options:
|
|
13673
|
+
options: Fe.value,
|
|
13637
13674
|
childrenDisplay: "popover",
|
|
13638
13675
|
readOnly: e.readOnly
|
|
13639
13676
|
}, {
|
|
13640
|
-
popover: W(({ popoverId: t, close: n }) => [
|
|
13677
|
+
popover: W(({ popoverId: t, close: n }) => [Q.value?.isSortableList ? (D(), o("div", {
|
|
13641
13678
|
key: 0,
|
|
13642
13679
|
id: t,
|
|
13643
|
-
"aria-label": `${
|
|
13680
|
+
"aria-label": `${Q.value.label} options`,
|
|
13644
13681
|
class: "pv-chart-config-popover pv-inset-square-8",
|
|
13645
13682
|
role: "dialog",
|
|
13646
13683
|
onKeydown: ae(K(n, ["stop"]), ["esc"])
|
|
@@ -13650,32 +13687,32 @@ var bp = {
|
|
|
13650
13687
|
"padding-left": "2px",
|
|
13651
13688
|
"padding-bottom": "6px"
|
|
13652
13689
|
}
|
|
13653
|
-
}, " Viewing ", -1), u(
|
|
13654
|
-
modelValue:
|
|
13655
|
-
"onUpdate:modelValue": r[1] ||= (e) =>
|
|
13656
|
-
options:
|
|
13657
|
-
activeOptionLimit:
|
|
13690
|
+
}, " Viewing ", -1), u(Jf, {
|
|
13691
|
+
modelValue: Q.value.activeOptions.value,
|
|
13692
|
+
"onUpdate:modelValue": r[1] ||= (e) => me(Q.value, e),
|
|
13693
|
+
options: Q.value.availableOptions || [],
|
|
13694
|
+
activeOptionLimit: Q.value.activeOptionLimit,
|
|
13658
13695
|
placeholderText: "Add to X Axis"
|
|
13659
13696
|
}, null, 8, [
|
|
13660
13697
|
"modelValue",
|
|
13661
13698
|
"options",
|
|
13662
13699
|
"activeOptionLimit"
|
|
13663
|
-
])], 40,
|
|
13700
|
+
])], 40, Ap)) : Q.value ? (D(), i(Do, {
|
|
13664
13701
|
key: 1,
|
|
13665
13702
|
id: t,
|
|
13666
|
-
"aria-label": `${
|
|
13703
|
+
"aria-label": `${Q.value.label} options`,
|
|
13667
13704
|
class: "pv-chart-config-popover",
|
|
13668
|
-
options:
|
|
13669
|
-
selectedItems:
|
|
13670
|
-
config:
|
|
13671
|
-
singleSelect: !
|
|
13672
|
-
disableDeselect: !
|
|
13705
|
+
options: Q.value.availableOptions || [],
|
|
13706
|
+
selectedItems: Ne(Q.value),
|
|
13707
|
+
config: Ie(Q.value),
|
|
13708
|
+
singleSelect: !Q.value.isMultiSelect,
|
|
13709
|
+
disableDeselect: !Q.value.allowDeselect,
|
|
13673
13710
|
highlightParentItems: !1,
|
|
13674
13711
|
readOnly: e.readOnly,
|
|
13675
13712
|
childrenDisplay: "popover",
|
|
13676
13713
|
itemClass: "pv-chart-option pv-flex",
|
|
13677
13714
|
onKeydown: ae(K(n, ["stop"]), ["esc"]),
|
|
13678
|
-
onHandleSelected: r[2] ||= (e) =>
|
|
13715
|
+
onHandleSelected: r[2] ||= (e) => X(Q.value, e)
|
|
13679
13716
|
}, null, 8, [
|
|
13680
13717
|
"id",
|
|
13681
13718
|
"aria-label",
|
|
@@ -13709,13 +13746,13 @@ var bp = {
|
|
|
13709
13746
|
"padding-top": "4px",
|
|
13710
13747
|
"padding-bottom": "12px"
|
|
13711
13748
|
}
|
|
13712
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
13749
|
+
}, " Chart Configuration ")], -1), s("ul", jp, [(D(!0), o(t, null, A(Me.value, (t) => (D(), o("li", {
|
|
13713
13750
|
id: `pv-chart-config-${t.value}`,
|
|
13714
13751
|
key: t.value,
|
|
13715
13752
|
"data-active": S.value === t.value ? !0 : null,
|
|
13716
|
-
"data-dd-action-name":
|
|
13717
|
-
onMouseenter: (e) => t.disabled ? null :
|
|
13718
|
-
onClick: (e) => t.disabled ? null :
|
|
13753
|
+
"data-dd-action-name": ue(t.value),
|
|
13754
|
+
onMouseenter: (e) => t.disabled ? null : Ve(t.value),
|
|
13755
|
+
onClick: (e) => t.disabled ? null : Ve(t.value)
|
|
13719
13756
|
}, [u(z(qi), {
|
|
13720
13757
|
disableInteractive: !0,
|
|
13721
13758
|
useTeleport: !0,
|
|
@@ -13740,30 +13777,30 @@ var bp = {
|
|
|
13740
13777
|
_: 2
|
|
13741
13778
|
}, [t.disabled && t.disabledReason ? {
|
|
13742
13779
|
name: "content",
|
|
13743
|
-
fn: W(() => [s("div",
|
|
13780
|
+
fn: W(() => [s("div", Np, F(t.disabledReason), 1)]),
|
|
13744
13781
|
key: "0"
|
|
13745
|
-
} : void 0]), 1024)], 40,
|
|
13782
|
+
} : void 0]), 1024)], 40, Mp))), 128))])]),
|
|
13746
13783
|
_: 1
|
|
13747
|
-
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[z(et), [
|
|
13784
|
+
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[z(et), [He, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
13748
13785
|
class: "pv-flex pv-space-between",
|
|
13749
13786
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
13750
13787
|
}, [e.chartFilter ? (D(), i(Ji, {
|
|
13751
13788
|
key: 0,
|
|
13752
|
-
options:
|
|
13753
|
-
modelValue: z(
|
|
13754
|
-
"onUpdate:modelValue": r[4] ||= (e) => h(
|
|
13755
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
13789
|
+
options: oe.value,
|
|
13790
|
+
modelValue: z(ie),
|
|
13791
|
+
"onUpdate:modelValue": r[4] ||= (e) => h(ie) ? ie.value = e : null
|
|
13792
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", Pp, [(D(!0), o(t, null, A(Me.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(Mc, {
|
|
13756
13793
|
key: 0,
|
|
13757
13794
|
label: n.label,
|
|
13758
13795
|
prefixLabel: n.prefixLabel,
|
|
13759
13796
|
modelValue: n.availableOptions.filter((e) => n.activeOptionIds.has(e.id)),
|
|
13760
|
-
"onUpdate:modelValue": (e) =>
|
|
13797
|
+
"onUpdate:modelValue": (e) => Y(n, e),
|
|
13761
13798
|
options: n.availableOptions,
|
|
13762
13799
|
disableSearchInput: !0,
|
|
13763
13800
|
disabled: n.disabled || e.readOnly,
|
|
13764
13801
|
optionsVariant: "checkbox",
|
|
13765
|
-
optionsRenderer:
|
|
13766
|
-
rumActionName:
|
|
13802
|
+
optionsRenderer: Dp,
|
|
13803
|
+
rumActionName: ue(n.value)
|
|
13767
13804
|
}, null, 8, [
|
|
13768
13805
|
"label",
|
|
13769
13806
|
"prefixLabel",
|
|
@@ -13777,14 +13814,14 @@ var bp = {
|
|
|
13777
13814
|
label: n.label,
|
|
13778
13815
|
prefixLabel: n.prefixLabel,
|
|
13779
13816
|
modelValue: n.currentOption,
|
|
13780
|
-
"onUpdate:modelValue": [(e) => n.currentOption = e, (e) =>
|
|
13817
|
+
"onUpdate:modelValue": [(e) => n.currentOption = e, (e) => pe(n, e)],
|
|
13781
13818
|
options: n.availableOptions,
|
|
13782
13819
|
disableSearchInput: !0,
|
|
13783
13820
|
disableDeselect: !n.allowDeselect,
|
|
13784
13821
|
disabled: n.disabled || e.readOnly,
|
|
13785
13822
|
optionsVariant: "icon",
|
|
13786
13823
|
childrenDisplay: f.value ? "popover" : "inline",
|
|
13787
|
-
rumActionName:
|
|
13824
|
+
rumActionName: ue(n.value)
|
|
13788
13825
|
}, null, 8, [
|
|
13789
13826
|
"label",
|
|
13790
13827
|
"prefixLabel",
|
|
@@ -13806,35 +13843,35 @@ var bp = {
|
|
|
13806
13843
|
...z(p)
|
|
13807
13844
|
}
|
|
13808
13845
|
}, {
|
|
13809
|
-
default: W(() => [
|
|
13846
|
+
default: W(() => [Q.value ? (D(), o(t, { key: 0 }, [Q.value.isSortableList ? (D(), o("div", Fp, [r[9] ||= s("p", {
|
|
13810
13847
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13811
13848
|
style: {
|
|
13812
13849
|
"padding-left": "2px",
|
|
13813
13850
|
"padding-bottom": "6px"
|
|
13814
13851
|
}
|
|
13815
|
-
}, " Viewing ", -1), u(
|
|
13816
|
-
modelValue:
|
|
13817
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
13818
|
-
options:
|
|
13819
|
-
activeOptionLimit:
|
|
13852
|
+
}, " Viewing ", -1), u(Jf, {
|
|
13853
|
+
modelValue: Q.value.activeOptions.value,
|
|
13854
|
+
"onUpdate:modelValue": r[5] ||= (e) => me(Q.value, e),
|
|
13855
|
+
options: Q.value.availableOptions || [],
|
|
13856
|
+
activeOptionLimit: Q.value.activeOptionLimit,
|
|
13820
13857
|
placeholderText: "Add to X Axis"
|
|
13821
13858
|
}, null, 8, [
|
|
13822
13859
|
"modelValue",
|
|
13823
13860
|
"options",
|
|
13824
13861
|
"activeOptionLimit"
|
|
13825
|
-
])])) : (D(), o("ul",
|
|
13862
|
+
])])) : (D(), o("ul", Ip, [(D(!0), o(t, null, A(Q.value.availableOptions, (t) => (D(), o("li", {
|
|
13826
13863
|
key: t.id,
|
|
13827
|
-
"data-active":
|
|
13864
|
+
"data-active": ze(t)
|
|
13828
13865
|
}, [u(_o, {
|
|
13829
13866
|
id: t.id,
|
|
13830
|
-
config:
|
|
13867
|
+
config: Be(t),
|
|
13831
13868
|
text: t.text,
|
|
13832
13869
|
icon: t.icon,
|
|
13833
13870
|
context: t.context,
|
|
13834
13871
|
disabled: t.disabled || e.readOnly,
|
|
13835
|
-
selectedIds:
|
|
13836
|
-
"onUpdate:selectedIds":
|
|
13837
|
-
onHandleSelected: (e) =>
|
|
13872
|
+
selectedIds: Q.value.isMultiSelect ? [...Q.value.activeOptionIds ?? []] : [],
|
|
13873
|
+
"onUpdate:selectedIds": Le,
|
|
13874
|
+
onHandleSelected: (e) => Re(t),
|
|
13838
13875
|
"class-list": ["pv-legacy-chart-option", "pv-flex"]
|
|
13839
13876
|
}, null, 8, [
|
|
13840
13877
|
"id",
|
|
@@ -13845,14 +13882,14 @@ var bp = {
|
|
|
13845
13882
|
"disabled",
|
|
13846
13883
|
"selectedIds",
|
|
13847
13884
|
"onHandleSelected"
|
|
13848
|
-
])], 8,
|
|
13885
|
+
])], 8, Lp))), 128))]))], 64)) : a("", !0)]),
|
|
13849
13886
|
_: 1
|
|
13850
13887
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
13851
13888
|
}
|
|
13852
|
-
}), [["__scopeId", "data-v-
|
|
13889
|
+
}), [["__scopeId", "data-v-1ef60ad1"]]);
|
|
13853
13890
|
//#endregion
|
|
13854
13891
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
13855
|
-
function
|
|
13892
|
+
function Bp(e, t, n, r, i) {
|
|
13856
13893
|
return i ? {
|
|
13857
13894
|
xKey: n,
|
|
13858
13895
|
xName: r,
|
|
@@ -13865,7 +13902,7 @@ function Rp(e, t, n, r, i) {
|
|
|
13865
13902
|
yName: r
|
|
13866
13903
|
};
|
|
13867
13904
|
}
|
|
13868
|
-
var
|
|
13905
|
+
var Vp = (e, t) => {
|
|
13869
13906
|
if (t.length === 0) return null;
|
|
13870
13907
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
13871
13908
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -13876,22 +13913,22 @@ var zp = (e, t) => {
|
|
|
13876
13913
|
}
|
|
13877
13914
|
}
|
|
13878
13915
|
return null;
|
|
13879
|
-
},
|
|
13916
|
+
}, Hp = (e, t) => {
|
|
13880
13917
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
13881
13918
|
return {
|
|
13882
13919
|
categoryPadOffset: n,
|
|
13883
13920
|
axisMin: 0 - i,
|
|
13884
13921
|
axisMax: r + i
|
|
13885
13922
|
};
|
|
13886
|
-
},
|
|
13923
|
+
}, Up = (e, t) => {
|
|
13887
13924
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
13888
13925
|
return (e + n - r) / (i - r);
|
|
13889
|
-
},
|
|
13926
|
+
}, Wp = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
13890
13927
|
...t,
|
|
13891
13928
|
color: t.color ?? e.color,
|
|
13892
13929
|
formatValue: t.formatValue ?? e.formatValue,
|
|
13893
13930
|
key: `${e.id}-${t.label}`
|
|
13894
|
-
}))),
|
|
13931
|
+
}))), Gp = (e, t, n) => {
|
|
13895
13932
|
let r = /* @__PURE__ */ new Map();
|
|
13896
13933
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
13897
13934
|
let t = r.get(e.groupName) ?? {
|
|
@@ -13913,18 +13950,18 @@ var zp = (e, t) => {
|
|
|
13913
13950
|
});
|
|
13914
13951
|
}), r.set(e.groupName, t);
|
|
13915
13952
|
}), [...r.values()];
|
|
13916
|
-
},
|
|
13917
|
-
function
|
|
13918
|
-
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) =>
|
|
13953
|
+
}, Kp = (e) => !!(e.visible && !e.disabled);
|
|
13954
|
+
function qp(e) {
|
|
13955
|
+
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) => Kp(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, Kp(e)]));
|
|
13919
13956
|
U(t, (e) => {
|
|
13920
13957
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
13921
13958
|
for (let i of e) {
|
|
13922
|
-
let e =
|
|
13959
|
+
let e = Kp(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
13923
13960
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
13924
13961
|
}
|
|
13925
|
-
u = new Map(e.map((e) => [e.id,
|
|
13962
|
+
u = new Map(e.map((e) => [e.id, Kp(e)])), n && (l.value = t);
|
|
13926
13963
|
});
|
|
13927
|
-
let d = r(() =>
|
|
13964
|
+
let d = r(() => Wp(t.value, l.value)), f = r(() => Gp(t.value, l.value, s)), p = k(null);
|
|
13928
13965
|
return {
|
|
13929
13966
|
activeCrosslineOverlayGroups: l,
|
|
13930
13967
|
resolvedCrosslineOverlays: d,
|
|
@@ -13934,11 +13971,11 @@ function Gp(e) {
|
|
|
13934
13971
|
if (!p.value || !a.value) return null;
|
|
13935
13972
|
let e = d.value.find((e) => e.key === p.value);
|
|
13936
13973
|
if (!e) return null;
|
|
13937
|
-
let t =
|
|
13974
|
+
let t = Vp(e.value, a.value);
|
|
13938
13975
|
if (t == null) return null;
|
|
13939
13976
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
13940
13977
|
if (!r) return null;
|
|
13941
|
-
let c =
|
|
13978
|
+
let c = Up(t, Hp(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
13942
13979
|
return i.value ? {
|
|
13943
13980
|
label: e.label,
|
|
13944
13981
|
value: l,
|
|
@@ -13965,22 +14002,22 @@ function Gp(e) {
|
|
|
13965
14002
|
}
|
|
13966
14003
|
//#endregion
|
|
13967
14004
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
13968
|
-
var
|
|
14005
|
+
var Jp = { style: {
|
|
13969
14006
|
height: "100%",
|
|
13970
14007
|
width: "100%"
|
|
13971
|
-
} },
|
|
14008
|
+
} }, Yp = {
|
|
13972
14009
|
key: 0,
|
|
13973
14010
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
13974
|
-
},
|
|
14011
|
+
}, Xp = { class: "pv-flex" }, Zp = {
|
|
13975
14012
|
class: "pv-flex",
|
|
13976
14013
|
style: { "align-items": "stretch" }
|
|
13977
|
-
},
|
|
14014
|
+
}, Qp = { class: "pv-flex pv-space-between" }, $p = { class: "pv-chart-tooltip-label" }, em = { class: "pv-chart-tooltip-value" }, tm = {
|
|
13978
14015
|
key: 2,
|
|
13979
14016
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
13980
|
-
},
|
|
14017
|
+
}, nm = { key: 0 }, rm = {
|
|
13981
14018
|
key: 1,
|
|
13982
14019
|
class: "pv-text-body-xs"
|
|
13983
|
-
},
|
|
14020
|
+
}, im = /* @__PURE__ */ d({
|
|
13984
14021
|
__name: "PvDataTableWithChart",
|
|
13985
14022
|
props: {
|
|
13986
14023
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -14016,6 +14053,8 @@ var Kp = { style: {
|
|
|
14016
14053
|
},
|
|
14017
14054
|
chartConfigPanelOptions: { default: () => ["sort", "chart-type"] },
|
|
14018
14055
|
secondaryChartType: { default: "scatter" },
|
|
14056
|
+
multiSelectMetricOverlay: { type: Boolean },
|
|
14057
|
+
initialSecondaryYKeys: {},
|
|
14019
14058
|
chartFilter: {},
|
|
14020
14059
|
chartType: { default: "column" },
|
|
14021
14060
|
emptyChartFilterRenderer: {},
|
|
@@ -14255,9 +14294,9 @@ var Kp = { style: {
|
|
|
14255
14294
|
formatter: n.valueFormatter,
|
|
14256
14295
|
dataType: n.context?.dataType
|
|
14257
14296
|
};
|
|
14258
|
-
})), ie = l.filterStore ||
|
|
14297
|
+
})), ie = l.filterStore || Md();
|
|
14259
14298
|
O(zl, ie);
|
|
14260
|
-
let G =
|
|
14299
|
+
let G = Au({
|
|
14261
14300
|
focusType: l.initialFocusData?.focusType,
|
|
14262
14301
|
focuses: l.initialFocusData?.focuses || [],
|
|
14263
14302
|
focusRequired: l.focusRequired
|
|
@@ -14267,10 +14306,10 @@ var Kp = { style: {
|
|
|
14267
14306
|
O(Xl, K);
|
|
14268
14307
|
let oe = k(l.isTableGrouped), se = (e) => {
|
|
14269
14308
|
d("table-overlay-change", e);
|
|
14270
|
-
}, ce = r(() =>
|
|
14309
|
+
}, ce = r(() => Kt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && ie.filterModelEmpty.value)), le = r(() => G?.computedFocusType.value || null), q = r(() => G?.computedFocuses.value || []), ue = (e) => {
|
|
14271
14310
|
R.value = Object.fromEntries(e.getValueColumns().map((e) => [e.getColId(), e.getAggFunc()]).filter((e) => typeof e[1] == "string"));
|
|
14272
14311
|
}, J = k(null), de = (e) => {
|
|
14273
|
-
p.value = e.api, ue(e.api), oe.value || p.value?.setRowGroupColumns([]), l.tableConfigOptions?.enableColumnConfiguration && (J.value = e.api.getAllGridColumns().map((e) => e.getColId())),
|
|
14312
|
+
p.value = e.api, ue(e.api), oe.value || p.value?.setRowGroupColumns([]), l.tableConfigOptions?.enableColumnConfiguration && (J.value = e.api.getAllGridColumns().map((e) => e.getColId())), ut(e.api), d("grid-ready", e);
|
|
14274
14313
|
}, fe = (e) => {
|
|
14275
14314
|
J.value = e.orderedColIds, d("chart-state-changed", {
|
|
14276
14315
|
api: p.value,
|
|
@@ -14292,8 +14331,8 @@ var Kp = { style: {
|
|
|
14292
14331
|
oldState: { orderedColIds: J.value }
|
|
14293
14332
|
}), J.value = t;
|
|
14294
14333
|
}, pe = (e) => {
|
|
14295
|
-
let t = ne(H.value, Ne.value);
|
|
14296
|
-
ue(e.api), t?.columnField && Ne.value && (Ne.value = H.value.find((e) => e.columnField === t.columnField)?.value),
|
|
14334
|
+
let t = ne(H.value, Ne.value), n = Pe.value.map((e) => ne(H.value, e)?.columnField).filter((e) => !!e);
|
|
14335
|
+
ue(e.api), t?.columnField && Ne.value && (Ne.value = H.value.find((e) => e.columnField === t.columnField)?.value), n.length > 0 && (Pe.value = n.map((e) => H.value.find((t) => t.columnField === e)?.value).filter((e) => !!e)), ut(e.api), d("column-value-changed", e);
|
|
14297
14336
|
}, X = (e) => {
|
|
14298
14337
|
let t = p.value;
|
|
14299
14338
|
!t || t.getColumn(e.columnField)?.getAggFunc() === e.aggFunc || t.applyColumnState({ state: [{
|
|
@@ -14314,7 +14353,7 @@ var Kp = { style: {
|
|
|
14314
14353
|
}
|
|
14315
14354
|
d("column-row-group-changed", e);
|
|
14316
14355
|
}, ge = async (e) => {
|
|
14317
|
-
|
|
14356
|
+
ut(e.api), K.value && d("filter-changed", e);
|
|
14318
14357
|
};
|
|
14319
14358
|
U(() => P.value, () => {
|
|
14320
14359
|
if (oe.value) {
|
|
@@ -14330,18 +14369,18 @@ var Kp = { style: {
|
|
|
14330
14369
|
let e = Oe.value.supportsFocusView && I.value || null;
|
|
14331
14370
|
G.setFocusType(e);
|
|
14332
14371
|
}
|
|
14333
|
-
p.value &&
|
|
14372
|
+
p.value && ut(p.value);
|
|
14334
14373
|
});
|
|
14335
14374
|
function _e(e, t, n = !0) {
|
|
14336
14375
|
return (r) => {
|
|
14337
14376
|
if (r.data = je.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
14338
14377
|
let i = "", a = ye(e);
|
|
14339
14378
|
if (l.truncateLabelValues && n && a && cs(a) && !isNaN(Number(r.value))) {
|
|
14340
|
-
if (
|
|
14379
|
+
if (tt.value) {
|
|
14341
14380
|
let e = r.datum?.[I.value], t = Me.value?.find((t) => t[I.value] === e)?.[`${Q.value}_sort_total`] || Infinity;
|
|
14342
14381
|
if (r.value / t < .05) return "";
|
|
14343
14382
|
}
|
|
14344
|
-
let { newValue: e, newSuffix: t } = rs(r.value, $o.Percent === $(a).dataType,
|
|
14383
|
+
let { newValue: e, newSuffix: t } = rs(r.value, $o.Percent === $(a).dataType, It.value);
|
|
14345
14384
|
r.value = e, i = t;
|
|
14346
14385
|
}
|
|
14347
14386
|
let o = r.value;
|
|
@@ -14362,7 +14401,7 @@ var Kp = { style: {
|
|
|
14362
14401
|
...P.value.length > 1 ? Uo : Ho,
|
|
14363
14402
|
Wo,
|
|
14364
14403
|
Go
|
|
14365
|
-
].filter((e) => l.enabledChartTypes?.includes(e.id))), we = k(void 0), Te = k(void 0), Ee = k(void 0), De = !1, Oe = r(() =>
|
|
14404
|
+
].filter((e) => l.enabledChartTypes?.includes(e.id))), we = k(void 0), Te = k(void 0), Ee = k(void 0), De = !1, Oe = r(() => xp(we.value?.id || "")), ke = r(() => Math.min(Oe.value.rowGroupLimit, l.rowGroupLimit)), Ae = r(() => {
|
|
14366
14405
|
let e = Oe.value.xAxis.filterColumns;
|
|
14367
14406
|
return e ? e(M.value) : M.value;
|
|
14368
14407
|
}), Z = k([{
|
|
@@ -14373,31 +14412,38 @@ var Kp = { style: {
|
|
|
14373
14412
|
text: "Descending",
|
|
14374
14413
|
id: "desc",
|
|
14375
14414
|
icon: "arrow-down-narrow-wide"
|
|
14376
|
-
}]), je = k([]), Me = k([]), Q = k(l.yKey), Ne = k(H.value[0]?.value), Pe = r(() => l.
|
|
14377
|
-
|
|
14378
|
-
|
|
14415
|
+
}]), je = k([]), Me = k([]), Q = k(l.yKey), Ne = k(H.value[0]?.value), Pe = k([]), Fe = r(() => l.multiSelectMetricOverlay === !0), Ie = r(() => Fe.value ? Pe.value : Ne.value ? [Ne.value] : []), Le = !1;
|
|
14416
|
+
U(H, (e) => {
|
|
14417
|
+
if (Le || !Fe.value || !l.initialSecondaryYKeys?.length || e.length === 0) return;
|
|
14418
|
+
Le = !0;
|
|
14419
|
+
let t = new Set(l.initialSecondaryYKeys);
|
|
14420
|
+
Pe.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
14421
|
+
}, { immediate: !0 });
|
|
14422
|
+
let Re = r(() => l.crosslineOverlayGroups ?? []), ze = k(null), Be = k(Z.value.find((e) => e.id === l.initialSort || "")), Ve = k("");
|
|
14423
|
+
O(Hl, p), O(eu, Ve), O(Kl, Ae), O(tu, P), O(nu, Ce), O(ru, Z), O(iu, we), O(au, Be), O(ou, Q), O(su, V), O(cu, Ne), O(uu, Pe), O(lu, H), O(du, Fe), O(mu, Re), U(be, (e) => {
|
|
14424
|
+
e && Be.value && (Be.value = void 0);
|
|
14379
14425
|
}, { immediate: !0 });
|
|
14380
|
-
let
|
|
14426
|
+
let He = (e) => {
|
|
14381
14427
|
we.value = Ce.value.find((t) => t.id === e) ?? Ce.value[0];
|
|
14382
|
-
},
|
|
14428
|
+
}, Ue = (e) => {
|
|
14383
14429
|
let t = P.value.length, n = (e) => {
|
|
14384
|
-
let n =
|
|
14430
|
+
let n = xp(e.id);
|
|
14385
14431
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14386
14432
|
}, r = Ce.value.find((t) => t.id === e);
|
|
14387
14433
|
return r && n(r) ? r.id : Ce.value.find(n)?.id ?? Ce.value[0]?.id;
|
|
14388
14434
|
};
|
|
14389
14435
|
U(() => Ce.value, () => {
|
|
14390
|
-
let e =
|
|
14436
|
+
let e = nt.value, t = e !== De, n = xp(we.value?.id || ""), r = Ce.value.some((e) => e.id === we.value?.id), i = P.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14391
14437
|
if (De = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
14392
|
-
let a =
|
|
14393
|
-
a &&
|
|
14394
|
-
}), U(() => l.chartType, (e) =>
|
|
14438
|
+
let a = Ue((e ? Ee?.value : Te?.value) ?? l.chartType);
|
|
14439
|
+
a && He(a);
|
|
14440
|
+
}), U(() => l.chartType, (e) => He(e)), U(() => l.yKey, (e) => {
|
|
14395
14441
|
e !== Q.value && (Q.value = e);
|
|
14396
|
-
}), U(
|
|
14442
|
+
}), U(Ve, (e) => {
|
|
14397
14443
|
if (l.chartFilter && p.value) {
|
|
14398
14444
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
14399
14445
|
n && n.length === 0 && (n = null), ae(t, n || []);
|
|
14400
|
-
let r =
|
|
14446
|
+
let r = Xu({
|
|
14401
14447
|
filterType: "set",
|
|
14402
14448
|
values: n
|
|
14403
14449
|
}, ye(t));
|
|
@@ -14406,17 +14452,23 @@ var Kp = { style: {
|
|
|
14406
14452
|
});
|
|
14407
14453
|
}
|
|
14408
14454
|
});
|
|
14409
|
-
let
|
|
14410
|
-
let
|
|
14411
|
-
if (
|
|
14412
|
-
|
|
14455
|
+
let We = (e) => e?.label ?? "", Ge = r(() => We(ne(V.value, Q.value))), Ke = (e) => {
|
|
14456
|
+
let t = ne(H.value, e);
|
|
14457
|
+
if (ye(t?.columnField ?? e)?.context?.chartOverlayOnPrimaryAxis !== !0) return !1;
|
|
14458
|
+
let n = ne(V.value, Q.value);
|
|
14459
|
+
return t?.dataType != null && t.dataType === n?.dataType;
|
|
14460
|
+
}, qe = r(() => Ie.value.filter((e) => !Ke(e))), Je = r(() => Ie.value.filter((e) => Ke(e))), Ye = r(() => qe.value.map((e) => We(ne(H.value, e))).filter(Boolean).join(", ")), Xe = r(() => Oe.value.isHorizontal === !0), Ze = r(() => l.secondaryChartType === "line" && !Xe.value ? "line" : "scatter"), Qe = r(() => P.value.length > 1), $e = r(() => !we.value || V.value.length === 0 ? [] : Oe.value.seriesFamily === "pie" ? st.value : at.value), et = r(() => we.value?.id === "histogram" ? !1 : l.showSeriesLabels), tt = r(() => we.value?.id.includes("stacked")), nt = r(() => P.value.length > 1), rt = r(() => we.value?.id === "histogram" && mt.value && mt.value.length > 0 && typeof mt.value[0]?.bucketMin == "number" && typeof mt.value[0]?.bucketMax == "number"), it = "primary-series", at = r(() => {
|
|
14461
|
+
let e = tt.value, t = Oe.value.agChartType, n = [], r = ve(Q.value, !0), i = ve(ze.value?.fieldName, !0), a = (e) => t === "line" ? {} : { placement: e };
|
|
14462
|
+
if (Qe.value) ze.value?.fieldValues.forEach((o, s) => {
|
|
14463
|
+
let c = {
|
|
14413
14464
|
type: t,
|
|
14465
|
+
id: `${it}-${s}`,
|
|
14414
14466
|
xKey: I.value,
|
|
14415
14467
|
yKey: Ss(Q.value, o),
|
|
14416
14468
|
yName: typeof i == "function" ? i({ value: o }) : o,
|
|
14417
14469
|
...t === "line" ? {} : { stacked: e },
|
|
14418
14470
|
label: {
|
|
14419
|
-
enabled:
|
|
14471
|
+
enabled: et.value && t !== "line",
|
|
14420
14472
|
color: e ? "white" : "black",
|
|
14421
14473
|
fontFamily: "Inter",
|
|
14422
14474
|
padding: 5,
|
|
@@ -14425,16 +14477,17 @@ var Kp = { style: {
|
|
|
14425
14477
|
formatter: r
|
|
14426
14478
|
}
|
|
14427
14479
|
};
|
|
14428
|
-
n.push(
|
|
14480
|
+
n.push(c);
|
|
14429
14481
|
});
|
|
14430
14482
|
else {
|
|
14431
14483
|
let e = {
|
|
14432
14484
|
type: t,
|
|
14485
|
+
id: it,
|
|
14433
14486
|
xKey: I.value,
|
|
14434
14487
|
yKey: Q.value,
|
|
14435
|
-
yName:
|
|
14488
|
+
yName: Ge.value,
|
|
14436
14489
|
label: {
|
|
14437
|
-
enabled:
|
|
14490
|
+
enabled: et.value,
|
|
14438
14491
|
color: "black",
|
|
14439
14492
|
fontFamily: "Inter",
|
|
14440
14493
|
padding: 5,
|
|
@@ -14448,12 +14501,12 @@ var Kp = { style: {
|
|
|
14448
14501
|
let o = {};
|
|
14449
14502
|
if (t === "bar") {
|
|
14450
14503
|
let e = o;
|
|
14451
|
-
e.direction =
|
|
14504
|
+
e.direction = Xe.value ? "horizontal" : "vertical", o = e;
|
|
14452
14505
|
} else if (t === "line" || t === "area") {
|
|
14453
14506
|
let e = o;
|
|
14454
14507
|
e.connectMissingData = !0, o = e;
|
|
14455
14508
|
}
|
|
14456
|
-
let s =
|
|
14509
|
+
let s = yt.value == null ? {} : {
|
|
14457
14510
|
fillOpacity: .3,
|
|
14458
14511
|
strokeOpacity: .3
|
|
14459
14512
|
};
|
|
@@ -14470,30 +14523,37 @@ var Kp = { style: {
|
|
|
14470
14523
|
content: `Count: ${e.datum[e.yKey]}`
|
|
14471
14524
|
};
|
|
14472
14525
|
} }
|
|
14473
|
-
}))),
|
|
14474
|
-
let t;
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14526
|
+
}))), Ie.value.length > 0) {
|
|
14527
|
+
let t = ye(I.value)?.context?.metadataDisplayFields?.[0] || I.value, r = Ze.value;
|
|
14528
|
+
for (let i of Ie.value) {
|
|
14529
|
+
let a = ne(H.value, i), o = We(a), s = e ? `${i}${Qo}` : i, c = Bp(I.value, t, s, o, Xe.value), l = {
|
|
14530
|
+
type: r,
|
|
14531
|
+
id: Fe.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
14532
|
+
data: kt.value,
|
|
14533
|
+
...c,
|
|
14534
|
+
label: { enabled: !1 },
|
|
14535
|
+
...r === "line" ? {
|
|
14536
|
+
lineDash: [4, 4],
|
|
14537
|
+
strokeWidth: 2,
|
|
14538
|
+
marker: { enabled: !1 },
|
|
14539
|
+
connectMissingData: !0
|
|
14540
|
+
} : {}
|
|
14541
|
+
};
|
|
14542
|
+
if (a?.tooltipRenderer) {
|
|
14543
|
+
let e = a.tooltipRenderer;
|
|
14544
|
+
l.tooltip = { renderer: Xe.value ? (n) => e({
|
|
14545
|
+
...n,
|
|
14546
|
+
xKey: I.value,
|
|
14547
|
+
xName: t,
|
|
14548
|
+
yKey: s,
|
|
14549
|
+
yName: o
|
|
14550
|
+
}) : e };
|
|
14551
|
+
}
|
|
14552
|
+
n = [...n, l];
|
|
14492
14553
|
}
|
|
14493
|
-
n = [...n, a];
|
|
14494
14554
|
}
|
|
14495
|
-
if (
|
|
14496
|
-
let e =
|
|
14555
|
+
if (rt.value && gt.value.length > 0 && mt.value) {
|
|
14556
|
+
let e = mt.value.length, t = Number.isFinite(It.value) ? It.value : 0, r = {
|
|
14497
14557
|
type: "scatter",
|
|
14498
14558
|
xKey: "__dummy_x__",
|
|
14499
14559
|
yKey: "__dummy_y__",
|
|
@@ -14507,14 +14567,14 @@ var Kp = { style: {
|
|
|
14507
14567
|
label: { enabled: !1 },
|
|
14508
14568
|
tooltip: { enabled: !1 },
|
|
14509
14569
|
visible: !1
|
|
14510
|
-
}, { categoryPadOffset: i } =
|
|
14570
|
+
}, { categoryPadOffset: i } = Hp(e, !0), a = {
|
|
14511
14571
|
type: "scatter",
|
|
14512
14572
|
xKey: "__dummy_x__",
|
|
14513
14573
|
yKey: "__dummy_y__",
|
|
14514
|
-
data:
|
|
14515
|
-
let t =
|
|
14574
|
+
data: gt.value.flatMap((e) => {
|
|
14575
|
+
let t = Vp(e.value, mt.value || []);
|
|
14516
14576
|
if (t === null) return [];
|
|
14517
|
-
let n = t + i, r = Number.isFinite(
|
|
14577
|
+
let n = t + i, r = Number.isFinite(It.value) ? It.value : 0, a = ve(P.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
14518
14578
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
14519
14579
|
value: o,
|
|
14520
14580
|
__dummy_x__: n,
|
|
@@ -14550,7 +14610,7 @@ var Kp = { style: {
|
|
|
14550
14610
|
];
|
|
14551
14611
|
}
|
|
14552
14612
|
return n;
|
|
14553
|
-
}),
|
|
14613
|
+
}), st = r(() => V.value.length === 0 ? [] : [{
|
|
14554
14614
|
type: "pie",
|
|
14555
14615
|
legendItemKey: I.value,
|
|
14556
14616
|
angleKey: Q.value
|
|
@@ -14567,9 +14627,15 @@ var Kp = { style: {
|
|
|
14567
14627
|
newState: { secondarySeriesField: e },
|
|
14568
14628
|
oldState: { secondarySeriesField: t }
|
|
14569
14629
|
});
|
|
14630
|
+
}), U(Pe, (e, t) => {
|
|
14631
|
+
d("chart-state-changed", {
|
|
14632
|
+
api: p.value,
|
|
14633
|
+
newState: { secondarySeriesField: e.join(",") || void 0 },
|
|
14634
|
+
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
14635
|
+
});
|
|
14570
14636
|
}), U(we, (e, t) => {
|
|
14571
|
-
e?.id &&
|
|
14572
|
-
let n =
|
|
14637
|
+
e?.id && xp(e.id).storeBeforeChange && (nt.value ? Ee.value = e.id : Te.value = e.id);
|
|
14638
|
+
let n = xp(e?.id || ""), r = xp(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? P.value : mp(P.value, M.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
14573
14639
|
ot(i, P.value) || (P.value = i), n.yAxis.defaultValue ? Q.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
14574
14640
|
l.yKey ? Q.value = l.yKey : V.value.length > 0 && (Q.value = V.value[0].value);
|
|
14575
14641
|
}), d("chart-state-changed", {
|
|
@@ -14584,7 +14650,7 @@ var Kp = { style: {
|
|
|
14584
14650
|
}
|
|
14585
14651
|
}), U(V, (e) => {
|
|
14586
14652
|
e.length === 1 && !Q.value && (Q.value = e[0].value);
|
|
14587
|
-
}), U(
|
|
14653
|
+
}), U(Be, (e, t) => {
|
|
14588
14654
|
d("chart-state-changed", {
|
|
14589
14655
|
api: p.value,
|
|
14590
14656
|
newState: { chartSort: e?.id },
|
|
@@ -14603,7 +14669,7 @@ var Kp = { style: {
|
|
|
14603
14669
|
oldState: { tableGrouped: t }
|
|
14604
14670
|
});
|
|
14605
14671
|
}), U(() => l.isTableGrouped, (e, t) => {
|
|
14606
|
-
!p.value || e === t || !l.enableGroupingToggle ||
|
|
14672
|
+
!p.value || e === t || !l.enableGroupingToggle || $t(e);
|
|
14607
14673
|
}), U(() => l.initialFocusData, (e, t) => {
|
|
14608
14674
|
if (!(ot(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
14609
14675
|
if (!e?.focusType) {
|
|
@@ -14613,28 +14679,28 @@ var Kp = { style: {
|
|
|
14613
14679
|
G.setFocusType(e?.focusType), G.setFocuses(e?.focuses ?? []);
|
|
14614
14680
|
}
|
|
14615
14681
|
}, { deep: !0 });
|
|
14616
|
-
let
|
|
14617
|
-
je.value = [], Me.value = [],
|
|
14618
|
-
},
|
|
14682
|
+
let ct = () => {
|
|
14683
|
+
je.value = [], Me.value = [], ze.value = null;
|
|
14684
|
+
}, lt = (e, t) => {
|
|
14619
14685
|
if (!e || e.length === 0) {
|
|
14620
|
-
|
|
14686
|
+
ct();
|
|
14621
14687
|
return;
|
|
14622
14688
|
}
|
|
14623
14689
|
if (t) {
|
|
14624
|
-
let { stackedData: n, uniqueFieldValues: r } = ws(e, I.value, t,
|
|
14625
|
-
Me.value = n,
|
|
14690
|
+
let { stackedData: n, uniqueFieldValues: r } = ws(e, I.value, t, dt.value, re.value);
|
|
14691
|
+
Me.value = n, ze.value = {
|
|
14626
14692
|
fieldName: t,
|
|
14627
14693
|
fieldValues: r
|
|
14628
14694
|
};
|
|
14629
|
-
} else Me.value = [],
|
|
14695
|
+
} else Me.value = [], ze.value = null;
|
|
14630
14696
|
je.value = e;
|
|
14631
|
-
},
|
|
14697
|
+
}, ut = (e) => {
|
|
14632
14698
|
let t = ++A.value, n = P.value.length;
|
|
14633
|
-
if (
|
|
14699
|
+
if (ct(), E.value = !1, n === 0 || V.value.length === 0 || l.requireFiltersToShowData && ie.filterModelEmpty.value) return;
|
|
14634
14700
|
if (l.serverSideChartHandler) {
|
|
14635
14701
|
let e = ie.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
14636
14702
|
if (e === null && l.initialGridState) {
|
|
14637
|
-
let t =
|
|
14703
|
+
let t = $u(l.initialGridState, n, l.enableAdvancedFilter);
|
|
14638
14704
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
14639
14705
|
}
|
|
14640
14706
|
e ||= {};
|
|
@@ -14644,7 +14710,7 @@ var Kp = { style: {
|
|
|
14644
14710
|
filterModel: e
|
|
14645
14711
|
};
|
|
14646
14712
|
E.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
14647
|
-
t === A.value && (
|
|
14713
|
+
t === A.value && (lt(e.data, e.stackField), E.value = !1);
|
|
14648
14714
|
}).catch((e) => {
|
|
14649
14715
|
t === A.value && (console.error("Chart handler error:", e), E.value = !1);
|
|
14650
14716
|
});
|
|
@@ -14655,27 +14721,27 @@ var Kp = { style: {
|
|
|
14655
14721
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
14656
14722
|
if (e.group && e.level === 0) {
|
|
14657
14723
|
if (P.value.length > 1) {
|
|
14658
|
-
let { rowData: t, fieldValues: n } =
|
|
14724
|
+
let { rowData: t, fieldValues: n } = pt(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
14659
14725
|
a = a.union(n), i?.push(t);
|
|
14660
14726
|
}
|
|
14661
|
-
let t =
|
|
14727
|
+
let t = ft(e);
|
|
14662
14728
|
r?.push(t);
|
|
14663
14729
|
}
|
|
14664
14730
|
}), je.value = r, P.value.length > 1 && i && i.length > 0) {
|
|
14665
14731
|
let e = P.value[1] || "";
|
|
14666
|
-
Me.value = i,
|
|
14732
|
+
Me.value = i, ze.value = {
|
|
14667
14733
|
fieldName: e,
|
|
14668
14734
|
fieldValues: Array.from(a)
|
|
14669
14735
|
};
|
|
14670
|
-
} else Me.value = [],
|
|
14671
|
-
},
|
|
14736
|
+
} else Me.value = [], ze.value = null;
|
|
14737
|
+
}, dt = r(() => {
|
|
14672
14738
|
let e = V.value, t = H.value;
|
|
14673
14739
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
14674
|
-
}),
|
|
14740
|
+
}), ft = (e) => {
|
|
14675
14741
|
let t = { [e.field]: e.key };
|
|
14676
|
-
for (let n of
|
|
14742
|
+
for (let n of dt.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
14677
14743
|
return t;
|
|
14678
|
-
},
|
|
14744
|
+
}, pt = (e, t) => {
|
|
14679
14745
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
14680
14746
|
for (let a of V.value) t.forEach((t) => {
|
|
14681
14747
|
let o = t.key;
|
|
@@ -14692,15 +14758,15 @@ var Kp = { style: {
|
|
|
14692
14758
|
rowData: r,
|
|
14693
14759
|
fieldValues: n
|
|
14694
14760
|
};
|
|
14695
|
-
},
|
|
14696
|
-
let e =
|
|
14697
|
-
if (
|
|
14698
|
-
else if (t && e &&
|
|
14699
|
-
let n =
|
|
14761
|
+
}, mt = r(() => {
|
|
14762
|
+
let e = Qe.value ? Me.value : je.value, t = null;
|
|
14763
|
+
if (Be.value && (t = Qe.value ? `${Q.value}${Qo}` : Q.value), be.value) e = xs(e, I.value);
|
|
14764
|
+
else if (t && e && Be.value) {
|
|
14765
|
+
let n = Be.value?.id.includes("desc") ? -1 : 1;
|
|
14700
14766
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
14701
14767
|
}
|
|
14702
|
-
if (Oe.value.agChartType === "bar" && (e = Ts(e, I.value)), l.enableFocusView && e &&
|
|
14703
|
-
let t = e?.filter((e) =>
|
|
14768
|
+
if (Oe.value.agChartType === "bar" && (e = Ts(e, I.value)), l.enableFocusView && e && q.value.length > 0 && le.value) {
|
|
14769
|
+
let t = e?.filter((e) => q.value.includes(e[I.value])), n = e?.filter((e) => !q.value.includes(e[I.value]));
|
|
14704
14770
|
e = [
|
|
14705
14771
|
...t || [],
|
|
14706
14772
|
{ [I.value]: qo },
|
|
@@ -14708,11 +14774,11 @@ var Kp = { style: {
|
|
|
14708
14774
|
];
|
|
14709
14775
|
}
|
|
14710
14776
|
return e;
|
|
14711
|
-
}), { activeCrosslineOverlayGroups:
|
|
14712
|
-
crosslineOverlayGroups:
|
|
14713
|
-
isHistogramWithBuckets:
|
|
14714
|
-
isHorizontalBarChart:
|
|
14715
|
-
computedChartData:
|
|
14777
|
+
}), { activeCrosslineOverlayGroups: ht, resolvedCrosslineOverlays: gt, chipSections: vt, hoveredBenchmarkKey: yt, hoveredCrosslineTooltip: bt } = qp({
|
|
14778
|
+
crosslineOverlayGroups: Re,
|
|
14779
|
+
isHistogramWithBuckets: rt,
|
|
14780
|
+
isHorizontalBarChart: Xe,
|
|
14781
|
+
computedChartData: mt,
|
|
14716
14782
|
pvChartRef: h,
|
|
14717
14783
|
formatValue: (e) => {
|
|
14718
14784
|
let t = ve(P.value?.[0]);
|
|
@@ -14720,24 +14786,24 @@ var Kp = { style: {
|
|
|
14720
14786
|
},
|
|
14721
14787
|
initialActiveOverlayGroupIds: r(() => l.initialActiveOverlayGroupIds)
|
|
14722
14788
|
});
|
|
14723
|
-
O(
|
|
14724
|
-
let
|
|
14725
|
-
let e = I.value, t =
|
|
14726
|
-
return !e || !t ? [] : (
|
|
14789
|
+
O(pu, ht), U(ht, (e) => d("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
14790
|
+
let xt = new Set([Xo, Zo]), St = k(void 0), Ct = r(() => we.value?.id === "map"), wt = r(() => Q.value || V.value[0]?.value || "value"), Tt = r(() => "600px"), Et = r(() => {
|
|
14791
|
+
let e = I.value, t = wt.value;
|
|
14792
|
+
return !e || !t ? [] : (mt.value ?? []).filter((t) => {
|
|
14727
14793
|
let n = String(t?.[e] ?? "");
|
|
14728
|
-
return !
|
|
14794
|
+
return !xt.has(n) && n !== "--SEPARATOR--";
|
|
14729
14795
|
}).map((n) => ({
|
|
14730
14796
|
[Ko]: String(n[e] ?? ""),
|
|
14731
14797
|
[t]: Number(n[t] ?? 0)
|
|
14732
14798
|
}));
|
|
14733
|
-
}),
|
|
14734
|
-
let e =
|
|
14799
|
+
}), Dt = r(() => {
|
|
14800
|
+
let e = wt.value;
|
|
14735
14801
|
if (!e) return {
|
|
14736
14802
|
min: 0,
|
|
14737
14803
|
max: 0
|
|
14738
14804
|
};
|
|
14739
14805
|
let t = !1, n = Infinity, r = -Infinity;
|
|
14740
|
-
return
|
|
14806
|
+
return Et.value.forEach((i) => {
|
|
14741
14807
|
let a = Number(i[e]);
|
|
14742
14808
|
Number.isFinite(a) && (t = !0, n = Math.min(n, a), r = Math.max(r, a));
|
|
14743
14809
|
}), t ? {
|
|
@@ -14747,121 +14813,121 @@ var Kp = { style: {
|
|
|
14747
14813
|
min: 0,
|
|
14748
14814
|
max: 0
|
|
14749
14815
|
};
|
|
14750
|
-
}),
|
|
14751
|
-
let e = ye(
|
|
14816
|
+
}), Ot = r(() => {
|
|
14817
|
+
let e = ye(wt.value)?.valueFormatter;
|
|
14752
14818
|
return typeof e == "function" ? (t) => String(e({ value: t }) ?? t) : (e) => e.toLocaleString("en-US");
|
|
14753
|
-
}),
|
|
14754
|
-
let e = (
|
|
14819
|
+
}), kt = r(() => {
|
|
14820
|
+
let e = (mt.value ?? []).filter((e) => {
|
|
14755
14821
|
let t = e?.[I.value];
|
|
14756
|
-
return !
|
|
14757
|
-
})
|
|
14758
|
-
if (!
|
|
14759
|
-
let
|
|
14760
|
-
|
|
14761
|
-
|
|
14822
|
+
return !xt.has(String(t));
|
|
14823
|
+
});
|
|
14824
|
+
if (!Qe.value || Ie.value.length === 0 || !ze.value) return e;
|
|
14825
|
+
let t = Ie.value.filter((e) => {
|
|
14826
|
+
let t = ye(e);
|
|
14827
|
+
return (typeof t?.aggFunc == "string" ? t.aggFunc : "") !== "sum";
|
|
14828
|
+
});
|
|
14829
|
+
if (t.length === 0) return e;
|
|
14830
|
+
let n = ze.value.fieldValues;
|
|
14762
14831
|
return e.map((e) => {
|
|
14763
|
-
let
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
|
|
14769
|
-
[
|
|
14770
|
-
}
|
|
14832
|
+
let r = { ...e };
|
|
14833
|
+
for (let i of t) {
|
|
14834
|
+
let t = `${i}${Qo}`, a = e[t];
|
|
14835
|
+
if (typeof a != "number") continue;
|
|
14836
|
+
let o = 0;
|
|
14837
|
+
for (let t of n) typeof e[Ss(i, String(t))] == "number" && o++;
|
|
14838
|
+
r[t] = o > 0 ? a / o : null;
|
|
14839
|
+
}
|
|
14840
|
+
return r;
|
|
14771
14841
|
});
|
|
14772
|
-
}),
|
|
14842
|
+
}), At = r(() => mt.value?.length || 0), jt = r(() => l.enableChartScrolling), Mt = r(() => cn({
|
|
14773
14843
|
baseMinHeight: 450,
|
|
14774
|
-
dataCount:
|
|
14775
|
-
enableChartScrolling:
|
|
14776
|
-
isHorizontalScrollingChart:
|
|
14844
|
+
dataCount: At.value,
|
|
14845
|
+
enableChartScrolling: jt.value,
|
|
14846
|
+
isHorizontalScrollingChart: Xe.value,
|
|
14777
14847
|
itemHeight: 64
|
|
14778
|
-
})),
|
|
14848
|
+
})), Nt = r(() => {
|
|
14779
14849
|
let e = ln({
|
|
14780
|
-
enableChartScrolling:
|
|
14781
|
-
isHorizontalScrollingChart:
|
|
14850
|
+
enableChartScrolling: jt.value,
|
|
14851
|
+
isHorizontalScrollingChart: Xe.value
|
|
14782
14852
|
});
|
|
14783
|
-
if (e) return
|
|
14853
|
+
if (e) return Xe.value ? {
|
|
14784
14854
|
...e,
|
|
14785
14855
|
maxHeight: "450px"
|
|
14786
14856
|
} : e;
|
|
14787
|
-
}),
|
|
14788
|
-
chartMinHeight:
|
|
14789
|
-
dataCount:
|
|
14790
|
-
enableChartScrolling:
|
|
14791
|
-
isHorizontalScrollingChart:
|
|
14857
|
+
}), Pt = r(() => un({
|
|
14858
|
+
chartMinHeight: Mt.value,
|
|
14859
|
+
dataCount: At.value,
|
|
14860
|
+
enableChartScrolling: jt.value,
|
|
14861
|
+
isHorizontalScrollingChart: Xe.value,
|
|
14792
14862
|
minContentWidth: 0,
|
|
14793
|
-
reserveWidth:
|
|
14794
|
-
})),
|
|
14795
|
-
let e = .25 * Math.exp(-.12 *
|
|
14863
|
+
reserveWidth: vt.value.length > 0 ? 255 : 0
|
|
14864
|
+
})), Ft = r(() => Qe.value ? Me.value : mt.value), It = r(() => Es(Ft.value, Q.value, Qe.value)), Lt = r(() => qe.value.reduce((e, t) => Math.max(e, Es(Ft.value, t, Qe.value)), -Infinity)), Rt = r(() => Je.value.reduce((e, t) => Math.max(e, Es(Ft.value, t, Qe.value)), -Infinity)), zt = r(() => Ds(Ft.value, Q.value, Qe.value)), Bt = r(() => qe.value.reduce((e, t) => Math.min(e, Ds(Ft.value, t, Qe.value)), Infinity)), Vt = r(() => ze.value?.fieldValues?.length || 0), Ht = r(() => {
|
|
14865
|
+
let e = .25 * Math.exp(-.12 * At.value);
|
|
14796
14866
|
return Math.min(Math.max(e, .05), .75);
|
|
14797
|
-
}),
|
|
14798
|
-
let e = ye(
|
|
14867
|
+
}), Ut = r(() => Vt.value > 5 ? .5 : 1), Wt = r(() => Vt.value > 5 ? .25 : .1), Gt = r(() => !mt.value || mt.value?.length === 0 ? !0 : It.value === -Infinity || Qe.value === !0 && It.value === 0), Kt = r(() => !!(l.enableFocusView && le.value && q.value.length === 0 && l.percentOfFocusViewYKey && Q.value && Q.value === l.percentOfFocusViewYKey)), qt = r(() => {
|
|
14868
|
+
let e = ye(le.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
14799
14869
|
return vs({
|
|
14800
14870
|
currentRowGroupColumnsLength: P.value.length,
|
|
14801
|
-
shouldShowFocusOverlayText:
|
|
14802
|
-
chartDataEmpty:
|
|
14871
|
+
shouldShowFocusOverlayText: Kt.value || l.focusRequired && q.value.length === 0,
|
|
14872
|
+
chartDataEmpty: Gt.value,
|
|
14803
14873
|
missingFocusText: l.missingFocusText,
|
|
14804
14874
|
displayGroupByName: t,
|
|
14805
|
-
yAxisName:
|
|
14875
|
+
yAxisName: Ge.value,
|
|
14806
14876
|
yAxisOptionCount: te.value
|
|
14807
14877
|
});
|
|
14808
|
-
}),
|
|
14878
|
+
}), Jt = r(() => Kt.value || ce.value || !l.isLoading && qt.value !== ""), Yt = r(() => {
|
|
14809
14879
|
let e = {};
|
|
14810
14880
|
e.overlays = { noData: { text: "" } };
|
|
14811
|
-
let t =
|
|
14881
|
+
let t = rt.value ? [
|
|
14812
14882
|
{ [I.value]: Jo },
|
|
14813
|
-
...
|
|
14883
|
+
...mt.value ?? [],
|
|
14814
14884
|
{ [I.value]: Yo }
|
|
14815
|
-
] :
|
|
14816
|
-
e.data =
|
|
14885
|
+
] : mt.value;
|
|
14886
|
+
e.data = Jt.value ? [] : t, e.legend = {
|
|
14817
14887
|
toggleSeries: !1,
|
|
14818
14888
|
preventHidingAll: !0,
|
|
14819
|
-
enabled: P.value.length > 1
|
|
14889
|
+
enabled: P.value.length > 1 || Fe.value && Ie.value.length > 0
|
|
14820
14890
|
};
|
|
14821
|
-
let n =
|
|
14822
|
-
|
|
14823
|
-
let e = Ne.value;
|
|
14824
|
-
return Je.value ? [`${e}${Qo}`] : Ge.value ? Fe.value?.fieldValues.map((t) => Ss(e, String(t))) || [] : [e];
|
|
14825
|
-
})(), i = Oe.value.xAxis.hideLabel === !0 && !Xe.value, a = [];
|
|
14826
|
-
if (a.push({
|
|
14891
|
+
let n = (e) => tt.value ? [`${e}${Qo}`] : Qe.value ? ze.value?.fieldValues.map((t) => Ss(e, String(t))) || [] : [e], r = [...Qe.value ? ze.value?.fieldValues.map((e) => Ss(Q.value, e)) || [] : Q.value ? [Q.value] : [], ...Je.value.flatMap(n)], i = qe.value.flatMap(n), a = Oe.value.xAxis.hideLabel === !0 && !rt.value, o = [];
|
|
14892
|
+
if (o.push({
|
|
14827
14893
|
type: "category",
|
|
14828
14894
|
keys: [I.value],
|
|
14829
|
-
position:
|
|
14895
|
+
position: Xe.value ? "left" : "bottom",
|
|
14830
14896
|
crossLines: [{
|
|
14831
14897
|
type: "line",
|
|
14832
14898
|
value: qo,
|
|
14833
14899
|
stroke: "#666666",
|
|
14834
14900
|
strokeWidth: 1,
|
|
14835
14901
|
lineDash: [4, 4],
|
|
14836
|
-
strokeOpacity:
|
|
14902
|
+
strokeOpacity: yt.value == null ? .7 : .15
|
|
14837
14903
|
}],
|
|
14838
|
-
line: { enabled: !
|
|
14904
|
+
line: { enabled: !rt.value },
|
|
14839
14905
|
label: {
|
|
14840
14906
|
minSpacing: 10,
|
|
14841
14907
|
autoRotate: !0,
|
|
14842
14908
|
truncate: !1,
|
|
14843
14909
|
wrapping: "never",
|
|
14844
|
-
...
|
|
14910
|
+
...rt.value ? { spacing: 2 } : {},
|
|
14845
14911
|
formatter: Os({
|
|
14846
|
-
hideLabel:
|
|
14847
|
-
showDistributionRangeLabels: !!
|
|
14848
|
-
chartData:
|
|
14912
|
+
hideLabel: a,
|
|
14913
|
+
showDistributionRangeLabels: !!rt.value,
|
|
14914
|
+
chartData: mt.value,
|
|
14849
14915
|
formatBucketBoundary: Se,
|
|
14850
14916
|
columnValueFormatter: ve(I.value),
|
|
14851
14917
|
enableFocusView: l.enableFocusView,
|
|
14852
|
-
focuses:
|
|
14918
|
+
focuses: q.value,
|
|
14853
14919
|
focusText: l.focusText
|
|
14854
14920
|
})
|
|
14855
14921
|
},
|
|
14856
|
-
paddingInner:
|
|
14857
|
-
paddingOuter:
|
|
14858
|
-
groupPaddingInner:
|
|
14859
|
-
}),
|
|
14860
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
14861
|
-
|
|
14922
|
+
paddingInner: Ht.value,
|
|
14923
|
+
paddingOuter: rt.value ? 0 : Ut.value,
|
|
14924
|
+
groupPaddingInner: Wt.value
|
|
14925
|
+
}), rt.value && gt.value.length > 0) {
|
|
14926
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = Hp(mt.value?.length || 1, !0);
|
|
14927
|
+
o.push({
|
|
14862
14928
|
type: "number",
|
|
14863
14929
|
keys: ["__dummy_x__"],
|
|
14864
|
-
position:
|
|
14930
|
+
position: Xe.value ? "left" : "bottom",
|
|
14865
14931
|
crosshair: { enabled: !1 },
|
|
14866
14932
|
min: t,
|
|
14867
14933
|
max: n,
|
|
@@ -14870,11 +14936,11 @@ var Kp = { style: {
|
|
|
14870
14936
|
tick: { enabled: !1 },
|
|
14871
14937
|
line: { enabled: !1 },
|
|
14872
14938
|
gridLine: { enabled: !1 },
|
|
14873
|
-
crossLines:
|
|
14874
|
-
if (!
|
|
14875
|
-
let n =
|
|
14939
|
+
crossLines: gt.value.map((t) => {
|
|
14940
|
+
if (!mt.value) return null;
|
|
14941
|
+
let n = Vp(t.value, mt.value);
|
|
14876
14942
|
if (n == null) return null;
|
|
14877
|
-
let r =
|
|
14943
|
+
let r = yt.value != null && t.key === yt.value, i = yt.value != null && !r;
|
|
14878
14944
|
return {
|
|
14879
14945
|
type: "line",
|
|
14880
14946
|
value: n + e,
|
|
@@ -14886,49 +14952,49 @@ var Kp = { style: {
|
|
|
14886
14952
|
}).filter((e) => e !== null)
|
|
14887
14953
|
});
|
|
14888
14954
|
}
|
|
14889
|
-
let
|
|
14890
|
-
if (
|
|
14955
|
+
let s = qe.value.length > 0, c = qe.value.map((e) => ne(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(zt.value) && zt.value < 0, f = s && Number.isFinite(Bt.value) && Bt.value < 0, p = d || f, m = s ? _s(Math.max(It.value, Rt.value), 5) : 0, h = s ? u ?? _s(Lt.value, 5) : 0, g = s && !p && m > 0 && h > 0;
|
|
14956
|
+
if (o.push({
|
|
14891
14957
|
type: "number",
|
|
14892
|
-
keys:
|
|
14893
|
-
position:
|
|
14894
|
-
...
|
|
14958
|
+
keys: r,
|
|
14959
|
+
position: Xe.value ? "bottom" : "left",
|
|
14960
|
+
...g ? {
|
|
14895
14961
|
min: 0,
|
|
14896
|
-
max:
|
|
14962
|
+
max: m,
|
|
14897
14963
|
nice: !1,
|
|
14898
|
-
interval: { step:
|
|
14964
|
+
interval: { step: m / 5 }
|
|
14899
14965
|
} : {},
|
|
14900
14966
|
label: { formatter: ve(Q.value) },
|
|
14901
14967
|
title: {
|
|
14902
14968
|
enabled: !0,
|
|
14903
|
-
text:
|
|
14969
|
+
text: Ge.value
|
|
14904
14970
|
}
|
|
14905
|
-
}),
|
|
14971
|
+
}), s && o.push({
|
|
14906
14972
|
type: "number",
|
|
14907
|
-
keys:
|
|
14908
|
-
position:
|
|
14973
|
+
keys: i,
|
|
14974
|
+
position: Xe.value ? "top" : "right",
|
|
14909
14975
|
crosshair: { enabled: !1 },
|
|
14910
|
-
...
|
|
14976
|
+
...g ? {
|
|
14911
14977
|
min: 0,
|
|
14912
|
-
max:
|
|
14978
|
+
max: h,
|
|
14913
14979
|
nice: !1,
|
|
14914
|
-
interval: { step:
|
|
14980
|
+
interval: { step: h / 5 }
|
|
14915
14981
|
} : {
|
|
14916
|
-
...
|
|
14917
|
-
...
|
|
14918
|
-
max:
|
|
14982
|
+
...f ? {} : { min: 0 },
|
|
14983
|
+
...u === void 0 ? {} : {
|
|
14984
|
+
max: u,
|
|
14919
14985
|
nice: !1
|
|
14920
14986
|
},
|
|
14921
|
-
...
|
|
14987
|
+
...p ? { gridLine: { enabled: !1 } } : {}
|
|
14922
14988
|
},
|
|
14923
|
-
label: { color: _t },
|
|
14989
|
+
label: { ...Ze.value === "scatter" ? { color: _t } : {} },
|
|
14924
14990
|
title: {
|
|
14925
14991
|
enabled: !0,
|
|
14926
|
-
text:
|
|
14927
|
-
color: _t
|
|
14992
|
+
text: Ye.value,
|
|
14993
|
+
...Ze.value === "scatter" ? { color: _t } : {}
|
|
14928
14994
|
}
|
|
14929
|
-
}),
|
|
14930
|
-
let e = Number.isFinite(
|
|
14931
|
-
|
|
14995
|
+
}), rt.value && gt.value.length > 0) {
|
|
14996
|
+
let e = Number.isFinite(It.value) ? It.value : 0;
|
|
14997
|
+
o.push({
|
|
14932
14998
|
type: "number",
|
|
14933
14999
|
keys: ["__dummy_y__"],
|
|
14934
15000
|
position: "left",
|
|
@@ -14942,23 +15008,23 @@ var Kp = { style: {
|
|
|
14942
15008
|
gridLine: { enabled: !1 }
|
|
14943
15009
|
});
|
|
14944
15010
|
}
|
|
14945
|
-
return e.axes =
|
|
14946
|
-
}),
|
|
15011
|
+
return e.axes = o, e.series = $e.value, e;
|
|
15012
|
+
}), Xt = r(() => E.value || l.isLoading && (!mt.value || mt.value.length === 0)), Zt = r(() => Kt.value || !ce.value && !l.isLoading && qt.value !== ""), Qt = (e) => {
|
|
14947
15013
|
b.value = e, d("chart-collapsed", e);
|
|
14948
|
-
},
|
|
15014
|
+
}, $t = (e) => {
|
|
14949
15015
|
p.value && (p.value.setRowGroupColumns(e ? P.value : []), oe.value = e);
|
|
14950
15016
|
};
|
|
14951
|
-
function
|
|
15017
|
+
function en(e) {
|
|
14952
15018
|
return e?.hydrate ? m.value?.getFilterValueSelectedMetadataMap({ hydrate: !0 }) : m.value?.getFilterValueSelectedMetadataMap();
|
|
14953
15019
|
}
|
|
14954
15020
|
return n({
|
|
14955
|
-
getChartImageDataURL: (e) =>
|
|
15021
|
+
getChartImageDataURL: (e) => Ct.value ? g.value?.getChartImageDataURL(e) : h.value?.getChartImageDataURL(e),
|
|
14956
15022
|
getCsvData: () => m.value?.getCsvData(),
|
|
14957
|
-
refreshData: (e) => (p.value &&
|
|
14958
|
-
getFilterValueSelectedMetadataMap:
|
|
15023
|
+
refreshData: (e) => (p.value && ut(p.value), m.value?.refreshData(e)),
|
|
15024
|
+
getFilterValueSelectedMetadataMap: en,
|
|
14959
15025
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
14960
15026
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e),
|
|
14961
|
-
getChipSections: () =>
|
|
15027
|
+
getChipSections: () => vt.value
|
|
14962
15028
|
}), S(() => {
|
|
14963
15029
|
if (l.initialGridState) {
|
|
14964
15030
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
@@ -14966,12 +15032,12 @@ var Kp = { style: {
|
|
|
14966
15032
|
}
|
|
14967
15033
|
}), T(async () => {
|
|
14968
15034
|
await v(), w.value = l.filterPanelAboveChart;
|
|
14969
|
-
}), (n, r) => (D(), o("div",
|
|
15035
|
+
}), (n, r) => (D(), o("div", Jp, [
|
|
14970
15036
|
s("div", {
|
|
14971
15037
|
class: "pv-stack-16",
|
|
14972
15038
|
id: C
|
|
14973
15039
|
}),
|
|
14974
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
15040
|
+
e.hideChart ? a("", !0) : (D(), o("div", Yp, [
|
|
14975
15041
|
u(Ln, {
|
|
14976
15042
|
rightIcon: "chevrons-down-up",
|
|
14977
15043
|
label: "Collapse",
|
|
@@ -14980,10 +15046,10 @@ var Kp = { style: {
|
|
|
14980
15046
|
"margin-left": "0.5rem"
|
|
14981
15047
|
},
|
|
14982
15048
|
variant: "secondary",
|
|
14983
|
-
onClick: r[0] ||= (e) =>
|
|
15049
|
+
onClick: r[0] ||= (e) => Qt(!b.value),
|
|
14984
15050
|
class: y(e.hideChart || b.value ? "pv-hide" : "")
|
|
14985
15051
|
}, null, 8, ["class"]),
|
|
14986
|
-
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
15052
|
+
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div", Xp, [u(Nn, {
|
|
14987
15053
|
name: "chart-line",
|
|
14988
15054
|
size: 20,
|
|
14989
15055
|
class: "pv-text-subdued"
|
|
@@ -14994,10 +15060,10 @@ var Kp = { style: {
|
|
|
14994
15060
|
rightIcon: "chevron-selector",
|
|
14995
15061
|
label: "Expand",
|
|
14996
15062
|
variant: "secondary",
|
|
14997
|
-
onClick: r[1] ||= (e) =>
|
|
15063
|
+
onClick: r[1] ||= (e) => Qt(!b.value)
|
|
14998
15064
|
})], 2),
|
|
14999
|
-
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(
|
|
15000
|
-
enablePanel:
|
|
15065
|
+
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(zp, {
|
|
15066
|
+
enablePanel: mt.value != null && mt.value.length > 0,
|
|
15001
15067
|
chartFilter: e.chartFilter,
|
|
15002
15068
|
rowGroupLimit: ke.value,
|
|
15003
15069
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
@@ -15015,29 +15081,29 @@ var Kp = { style: {
|
|
|
15015
15081
|
"chart-config-options",
|
|
15016
15082
|
"read-only",
|
|
15017
15083
|
"percent-of-focus-view-y-key"
|
|
15018
|
-
]), s("div",
|
|
15084
|
+
]), s("div", Zp, [z(vt).length > 0 ? (D(), i(dp, {
|
|
15019
15085
|
key: 0,
|
|
15020
|
-
sections: z(
|
|
15021
|
-
onChipHover: r[2] ||= (e) =>
|
|
15086
|
+
sections: z(vt),
|
|
15087
|
+
onChipHover: r[2] ||= (e) => yt.value = e
|
|
15022
15088
|
}, null, 8, ["sections"])) : a("", !0), s("div", {
|
|
15023
15089
|
class: "pv-relative pv-margin-auto pv-flex-item",
|
|
15024
|
-
style: x(
|
|
15025
|
-
}, [
|
|
15090
|
+
style: x(Ct.value ? { height: Tt.value } : void 0)
|
|
15091
|
+
}, [Ct.value ? (D(), i(No, {
|
|
15026
15092
|
key: 0,
|
|
15027
15093
|
ref_key: "pvMapChartRef",
|
|
15028
15094
|
ref: g,
|
|
15029
|
-
selectedRegion:
|
|
15030
|
-
"onUpdate:selectedRegion": r[3] ||= (e) =>
|
|
15031
|
-
chartData:
|
|
15032
|
-
seriesKey:
|
|
15033
|
-
seriesLabel:
|
|
15095
|
+
selectedRegion: St.value,
|
|
15096
|
+
"onUpdate:selectedRegion": r[3] ||= (e) => St.value = e,
|
|
15097
|
+
chartData: Et.value,
|
|
15098
|
+
seriesKey: wt.value,
|
|
15099
|
+
seriesLabel: Ge.value,
|
|
15034
15100
|
clickable: !1,
|
|
15035
15101
|
displayRegionSelector: !1,
|
|
15036
|
-
gradientLegendMin:
|
|
15037
|
-
gradientLegendMax:
|
|
15038
|
-
seriesValueFormatter:
|
|
15039
|
-
isLoading:
|
|
15040
|
-
noDataMessage:
|
|
15102
|
+
gradientLegendMin: Dt.value.min,
|
|
15103
|
+
gradientLegendMax: Dt.value.max,
|
|
15104
|
+
seriesValueFormatter: Ot.value,
|
|
15105
|
+
isLoading: Xt.value,
|
|
15106
|
+
noDataMessage: qt.value
|
|
15041
15107
|
}, null, 8, [
|
|
15042
15108
|
"selectedRegion",
|
|
15043
15109
|
"chartData",
|
|
@@ -15050,31 +15116,31 @@ var Kp = { style: {
|
|
|
15050
15116
|
"noDataMessage"
|
|
15051
15117
|
])) : (D(), o("div", {
|
|
15052
15118
|
key: 1,
|
|
15053
|
-
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible":
|
|
15054
|
-
style: x(
|
|
15119
|
+
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible": jt.value }]),
|
|
15120
|
+
style: x(Nt.value)
|
|
15055
15121
|
}, [s("div", {
|
|
15056
15122
|
class: "pv-data-table-with-chart__chart-content",
|
|
15057
|
-
style: x(
|
|
15123
|
+
style: x(Pt.value)
|
|
15058
15124
|
}, [u(nn, {
|
|
15059
15125
|
ref_key: "pvChartRef",
|
|
15060
15126
|
ref: h,
|
|
15061
|
-
isLoading:
|
|
15062
|
-
options:
|
|
15127
|
+
isLoading: Xt.value,
|
|
15128
|
+
options: Yt.value,
|
|
15063
15129
|
enableFocusView: e.enableFocusView,
|
|
15064
|
-
minHeight:
|
|
15130
|
+
minHeight: Mt.value
|
|
15065
15131
|
}, null, 8, [
|
|
15066
15132
|
"isLoading",
|
|
15067
15133
|
"options",
|
|
15068
15134
|
"enableFocusView",
|
|
15069
15135
|
"minHeight"
|
|
15070
|
-
]), z(
|
|
15136
|
+
]), z(bt) ? (D(), o("div", {
|
|
15071
15137
|
key: 0,
|
|
15072
|
-
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", z(
|
|
15138
|
+
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", z(bt).arrowClass]),
|
|
15073
15139
|
"data-variant": "white",
|
|
15074
|
-
style: x(z(
|
|
15075
|
-
}, [s("div",
|
|
15140
|
+
style: x(z(bt).style)
|
|
15141
|
+
}, [s("div", Qp, [s("div", $p, F(z(bt).label), 1), s("div", em, F(z(bt).value), 1)])], 6)) : a("", !0)], 4)], 6)), Ct.value ? a("", !0) : (D(), o("div", tm, [ce.value ? (D(), o("div", nm, [(D(), i(N(e.emptyChartFilterRenderer)))])) : Zt.value ? (D(), o("p", rm, F(qt.value), 1)) : a("", !0)]))], 4)])], 2)
|
|
15076
15142
|
])),
|
|
15077
|
-
u(
|
|
15143
|
+
u(If, _({
|
|
15078
15144
|
ref_key: "pvDataTableRef",
|
|
15079
15145
|
ref: m
|
|
15080
15146
|
}, n.$props, {
|
|
@@ -15092,18 +15158,18 @@ var Kp = { style: {
|
|
|
15092
15158
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
15093
15159
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
15094
15160
|
}), {
|
|
15095
|
-
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
15161
|
+
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(ip, {
|
|
15096
15162
|
key: 0,
|
|
15097
15163
|
groupedModeEnabled: oe.value,
|
|
15098
15164
|
tableConfigOptions: l.tableConfigOptions,
|
|
15099
|
-
onToggleGroup:
|
|
15165
|
+
onToggleGroup: $t,
|
|
15100
15166
|
onTableOverlayChange: se,
|
|
15101
15167
|
onColumnConfigChange: fe
|
|
15102
15168
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (D(), i(Ln, {
|
|
15103
15169
|
key: 1,
|
|
15104
15170
|
leftIcon: oe.value ? "ungroup" : "group",
|
|
15105
15171
|
label: oe.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
15106
|
-
onClick: r[4] ||= (e) =>
|
|
15172
|
+
onClick: r[4] ||= (e) => $t(!oe.value),
|
|
15107
15173
|
variant: "secondary",
|
|
15108
15174
|
size: "lg"
|
|
15109
15175
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), j(n.$slots, "top-slot")]),
|
|
@@ -15111,7 +15177,7 @@ var Kp = { style: {
|
|
|
15111
15177
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
15112
15178
|
]));
|
|
15113
15179
|
}
|
|
15114
|
-
}),
|
|
15180
|
+
}), am = "Unable to load data", om = (e, t = {}) => {
|
|
15115
15181
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
15116
15182
|
let t = ++o;
|
|
15117
15183
|
i.value = !0;
|
|
@@ -15141,6 +15207,6 @@ var Kp = { style: {
|
|
|
15141
15207
|
};
|
|
15142
15208
|
};
|
|
15143
15209
|
//#endregion
|
|
15144
|
-
export {
|
|
15210
|
+
export { am as DEFAULT_DATA_WIDGET_ERROR_TEXT, wt as PitViperAGChartsMonochromeTheme, Ct as PitViperAGChartsMonochromeThemeName, Et as PitViperAGChartsMulticolorTheme, Tt as PitViperAGChartsMulticolorThemeName, nn as PvChart, wn as PvChartWidget, If as PvDataTable, im as PvDataTableWithChart, Zs as PvDataWidget, No as PvMapChart, Fl as RumContextKey, _t as SCATTER_MARKER_STROKE, Ll as addRumAction, Zu as constructAdvancedFilterCondition, Qu as convertFilterModelToAdvanced, Ad as createPvDataTableFilterStore, Rl as deferRumTask, Td as excludeValueFromSetFilter, id as filterModelContainsColId, gd as filterModelsEqual, xd as getSelectedValues, yd as getSelectedValuesFromAdvancedFilterModel, ud as getSelectedValuesFromFilterModel, bd as getSelectedValuesFromFilterModelByColId, dd as isAdvancedFilterModel, pd as isFilterModelEmpty, _d as mergeAdvancedFilterCondition, ad as mergeFilterModels, jd as providePvDataTableFilterStore, Sd as removeColumnFilter, vd as removeColumnFromAdvancedFilter, wd as updateMultiOrSetFilter, Cd as updateSetFilter, Nd as usePvDataTableFilterStore, om as usePvDataWidgetData, Il as useRumContext };
|
|
15145
15211
|
|
|
15146
15212
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|