@turquoisehealth/pit-viper 2.240.2 → 2.240.3-dev.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/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-dropdown-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-filter-modal-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-popover-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/ai/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/base/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/base/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/base/pv-components-base.mjs +11 -8
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvDropdown/PvDropdown.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/base/PvPopover/PvPopover.vue.d.ts +6 -3
- package/pv-components/dist/vue/visualizations/components/base/PvSortableList/PvSortableList.vue.d.ts +7 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue.d.ts +6 -0
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/table-chart-components/PvTableOptionsPanel.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/components/charts/PvDataTableWithChart/types.d.ts +14 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/table-components/FilterGroupMenu.vue.d.ts +7 -4
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +550 -523
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +12 -8
- package/pv-components/dist/web/components/pv-filter-modal/pv-filter-modal.js +11 -7
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +11 -7
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +11 -7
- package/pv-components/dist/web/components/pv-popover/pv-popover.js +11 -7
- package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +11 -7
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +16 -9
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +11 -7
- package/pv-components/dist/web/pv-components.iife.js +2 -2
- 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-61f3afec]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-61f3afec]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-61f3afec]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-61f3afec]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-61f3afec]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-61f3afec]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-61f3afec]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-61f3afec]{text-align:center;opacity:1;background-color:var(--color-background-body,white);z-index:4;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-61f3afec]{color:var(--color-text-brand,#16696d);animation:1.5s ease-in-out infinite pulse-61f3afec}@keyframes pulse-61f3afec{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-7b85ebe3]{font-size:14px}.pv-popover-pinned-sections[data-v-7b85ebe3]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-7b85ebe3]{overflow-y:auto}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-cfa4cb54]{color:var(--color-text-subdued,#4b595c);background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-query-builder-input-wrapper[data-v-fb2cc737]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,var(--stroke-light,#e3e7ea));cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-fb2cc737]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-fb2cc737]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-fb2cc737]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-fb2cc737]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-fb2cc737]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-fb2cc737]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#f7f8f8);transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-b4740f96]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-ec17105d]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:1}.ag-custom-header-cell-with-agg-selector{height:100%;margin-inline:calc(var(--ag-cell-horizontal-padding) * -1);width:calc(100% + var(--ag-cell-horizontal-padding) * 2);position:relative}.ag-header-agg-func-selector{--button-ghost-hover-background-color:var(--ag-header-cell-hover-background-color,var(--color-background-accent,#f7f8f8));position:absolute;inset:0}.ag-header-agg-func-selector>div,.ag-header-agg-func-selector .pv-select-button-trigger{height:100%}.ag-header-agg-func-selector .pv-select-button-trigger{padding-inline:var(--ag-cell-horizontal-padding);border-radius:0;justify-content:flex-end}.pv-table-row-number[data-v-2485e378]{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;background:var(--color-background-body,white);pointer-events:none;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .pv-data-table-cell-clickable{cursor:pointer}.pv-data-table .pv-data-table-cell-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable{cursor:pointer}.pv-data-table .ag-row.pv-data-table-row-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable.ag-row-focus{box-shadow:inset 0 0 0 1px var(--text-input-focus-border-color,#36c5ba)}.pv-data-table .ag-row.pv-data-table-row-clickable .ag-cell-focus{border-color:#0000}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:var(--p-skeleton-background,#ccc);border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:var(--popover-list-item-hover-background-color,#f7f8f8)}.pv-data-table .ag-menu-option-shortcut{color:var(--color-text-quaternary,#89989b)}.pv-data-table .ag-menu-option:active{background-color:var(--popover-list-item-pressed-background-color,#e8f2f4)}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px, var(--color-background-accent,#f7f8f8) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid var(--color-border,#e0e0e0)!important;border-left:1px solid var(--color-border,#e0e0e0)!important;border-right:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row-loading{box-sizing:border-box;border-top:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row.pv-data-table-group-last-child,.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded).ag-row-last{border-radius:0 0 4px 4px}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px, var(--color-background-brand-accent,#eef0f0) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:var(--color-background-accent,#f7f8f8)!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-data-table-classic .ag-row-last{border-bottom:none!important}.pv-data-table-classic .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-classic .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-text-tertiary[data-v-a3c94e3a]{color:var(--color-text-quaternary,#89989b)}.pv-button-placeholder[data-v-a3c94e3a]{width:24px;height:24px}.pv-sort-option[data-v-a3c94e3a]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-a3c94e3a]{pointer-events:none;color:var(--text-input-disabled-text-color,#7d898d)}.placeholder-zone[data-v-a3c94e3a]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-a3c94e3a]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:var(--color-border,#e3e7ea)!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-a3c94e3a]{background:#f0f9f9;border-color:var(--color-border-brand,#16696d)!important}.sort-divider-container[data-v-a3c94e3a]{display:flex}.sort-divider[data-v-a3c94e3a]{border-top:1px solid var(--color-border,#e3e7ea);flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-a3c94e3a]:after{content:attr(data-label);background:var(--color-background-body,#fff);font-size:inherit;white-space:nowrap;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-333de0aa] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-333de0aa] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-333de0aa] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.ag-charts-floating-toolbar{display:none!important}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-61f3afec]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-61f3afec]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-61f3afec]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-61f3afec]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-61f3afec]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-61f3afec]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-61f3afec]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-61f3afec]{text-align:center;opacity:1;background-color:var(--color-background-body,white);z-index:4;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-61f3afec]{color:var(--color-text-brand,#16696d);animation:1.5s ease-in-out infinite pulse-61f3afec}@keyframes pulse-61f3afec{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-9130f2b2]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-9130f2b2]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-9130f2b2]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-9130f2b2]:hover,&[data-v-9130f2b2]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-9130f2b2]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-9130f2b2]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-9130f2b2]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-9130f2b2]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-fe6e9c6a]{font-size:14px}.pv-popover-pinned-sections[data-v-fe6e9c6a]{flex-direction:column;display:flex;overflow:hidden}.pv-popover-pinned-sections .pv-popover-list[data-v-fe6e9c6a]{overflow-y:auto}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-bb8eae3f]{background-color:var(--button-icon-pressed-background-color,#c7d8db)}.pv-select[data-v-bb8eae3f]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-cfa4cb54]{color:var(--color-text-subdued,#4b595c);background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-query-builder-input-wrapper[data-v-62aa7767]{background:var(--color-background-accent,var(--secondary-lighten-8,#f7f8f8));border-radius:var(--corner-radius-M,4px);border:1px solid var(--color-border,var(--stroke-light,#e3e7ea));cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-62aa7767]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-62aa7767]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-62aa7767]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-group-label[data-v-62aa7767]{padding:.5rem .5rem .25rem;font-weight:500;display:block}.pv-query-builder-option-active[data-v-62aa7767]{background-color:var(--popover-list-item-hover-background-color,#f5f5f5);border-radius:var(--popover-list-item-radius,4px)}.pv-query-builder-input-wrapper[data-v-62aa7767]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#f7f8f8);transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-b4740f96]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-ec17105d]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-ec17105d]{opacity:1}.ag-custom-header-cell-with-agg-selector{height:100%;margin-inline:calc(var(--ag-cell-horizontal-padding) * -1);width:calc(100% + var(--ag-cell-horizontal-padding) * 2);position:relative}.ag-header-agg-func-selector{--button-ghost-hover-background-color:var(--ag-header-cell-hover-background-color,var(--color-background-accent,#f7f8f8));position:absolute;inset:0}.ag-header-agg-func-selector>div,.ag-header-agg-func-selector .pv-select-button-trigger{height:100%}.ag-header-agg-func-selector .pv-select-button-trigger{padding-inline:var(--ag-cell-horizontal-padding);border-radius:0;justify-content:flex-end}.pv-table-row-number[data-v-2485e378]{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;background:var(--color-background-body,white);pointer-events:none;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .pv-data-table-cell-clickable{cursor:pointer}.pv-data-table .pv-data-table-cell-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable{cursor:pointer}.pv-data-table .ag-row.pv-data-table-row-clickable:hover{background-color:var(--button-ghost-hover-background-color,#e8f2f4)}.pv-data-table .ag-row.pv-data-table-row-clickable.ag-row-focus{box-shadow:inset 0 0 0 1px var(--text-input-focus-border-color,#36c5ba)}.pv-data-table .ag-row.pv-data-table-row-clickable .ag-cell-focus{border-color:#0000}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:var(--p-skeleton-background,#ccc);border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:var(--popover-list-item-hover-background-color,#f7f8f8)}.pv-data-table .ag-menu-option-shortcut{color:var(--color-text-quaternary,#89989b)}.pv-data-table .ag-menu-option:active{background-color:var(--popover-list-item-pressed-background-color,#e8f2f4)}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px, var(--color-background-accent,#f7f8f8) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-accent,#f7f8f8) 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid var(--color-border,#e0e0e0)!important;border-left:1px solid var(--color-border,#e0e0e0)!important;border-right:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row-loading{box-sizing:border-box;border-top:1px solid var(--color-border,#e0e0e0)!important}.pv-data-table-grouped-card .ag-row.pv-data-table-group-last-child,.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded).ag-row-last{border-radius:0 0 4px 4px}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";border:1px solid var(--color-border,#e0e0e0);pointer-events:none;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px, var(--color-background-brand-accent,#eef0f0) calc(100% - 5px), var(--color-background-body,white) calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(to bottom, var(--color-background-body,white) 5px, var(--color-background-brand-accent,#eef0f0) 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:var(--color-background-accent,#f7f8f8)!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-data-table-classic .ag-row-last{border-bottom:none!important}.pv-data-table-classic .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-classic .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-text-tertiary[data-v-f9030e5e]{color:var(--color-text-quaternary,#89989b)}.pv-button-placeholder[data-v-f9030e5e]{width:24px;height:24px}.pv-sort-option[data-v-f9030e5e]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-sort-option-locked[data-v-f9030e5e]{cursor:default}.pv-menu-item-disabled[data-v-f9030e5e]{pointer-events:none;color:var(--text-input-disabled-text-color,#7d898d)}.placeholder-zone[data-v-f9030e5e]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-f9030e5e]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:var(--color-border,#e3e7ea)!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-f9030e5e]{background:#f0f9f9;border-color:var(--color-border-brand,#16696d)!important}.sort-divider-container[data-v-f9030e5e]{display:flex}.sort-divider[data-v-f9030e5e]{border-top:1px solid var(--color-border,#e3e7ea);flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-f9030e5e]:after{content:attr(data-label);background:var(--color-background-body,#fff);font-size:inherit;white-space:nowrap;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-c9617d5a] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-c9617d5a] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-c9617d5a] .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
|
-
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as ee, toDisplayString as P, toHandlers as F, toRaw as I, toRef as L, unref as R, useAttrs as z, useId as te, useModel as B, useSlots as ne, useTemplateRef as V, vModelCheckbox as re, vModelText as H, vShow as ie, watch as U, withCtx as W, withDirectives as ae, withKeys as
|
|
4
|
-
import { AgCharts as
|
|
5
|
-
import { LicenseManager as
|
|
6
|
-
import { onClickOutside as
|
|
3
|
+
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as ee, toDisplayString as P, toHandlers as F, toRaw as I, toRef as L, unref as R, useAttrs as z, useId as te, useModel as B, useSlots as ne, useTemplateRef as V, vModelCheckbox as re, vModelText as H, vShow as ie, watch as U, withCtx as W, withDirectives as ae, withKeys as oe, withModifiers as G } from "vue";
|
|
4
|
+
import { AgCharts as se } from "ag-charts-vue3";
|
|
5
|
+
import { LicenseManager as ce } from "ag-charts-enterprise";
|
|
6
|
+
import { onClickOutside as le, onKeyStroke as K, 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 Ne, TextFilterModule as Pe, UndoRedoEditModule as Fe, themeQuartz as Ie } from "ag-grid-community";
|
|
@@ -251,7 +251,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
251
251
|
emits: ["series-visibility-change"],
|
|
252
252
|
setup(e, { expose: n, emit: c }) {
|
|
253
253
|
let l = e, d = c;
|
|
254
|
-
|
|
254
|
+
ce.setLicenseKey($t);
|
|
255
255
|
let f = k(null), p = k({}), m = () => {
|
|
256
256
|
if (!f.value || !l.customChartProps?.scatter?.quadrantRenderer) return;
|
|
257
257
|
let e = f.value.$el;
|
|
@@ -361,7 +361,7 @@ var Ut = { style: { position: "relative" } }, Wt = {
|
|
|
361
361
|
width: e?.width,
|
|
362
362
|
height: e?.height
|
|
363
363
|
}) }), (n, r) => (D(), o("div", Ut, [
|
|
364
|
-
u(R(
|
|
364
|
+
u(R(se), {
|
|
365
365
|
ref_key: "chartRef",
|
|
366
366
|
ref: f,
|
|
367
367
|
style: x([{ height: "100%" }, _.value ? "" : `min-height: ${e.minHeight}px`]),
|
|
@@ -1790,7 +1790,7 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1790
1790
|
`anchor-scope: ${na}`
|
|
1791
1791
|
].every((e) => CSS.supports(e)), g = k(!1), _ = k(null), y = k(null), b = k(null), S = k(null), C = de(y), w = de(S), O = k(!1), A = k(!1), M = k(!1), N = ea({
|
|
1792
1792
|
root: _,
|
|
1793
|
-
close: () => t.disableClickOutsideToClose ? !1 : (
|
|
1793
|
+
close: () => t.disableClickOutsideToClose ? !1 : (se(), !0)
|
|
1794
1794
|
}), ee = {
|
|
1795
1795
|
"top-center": "top",
|
|
1796
1796
|
"bottom-center": "bottom",
|
|
@@ -1873,8 +1873,8 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1873
1873
|
i.left,
|
|
1874
1874
|
i.width,
|
|
1875
1875
|
i.height
|
|
1876
|
-
], a),
|
|
1877
|
-
t.disableClickOutsideToClose ||
|
|
1876
|
+
], a), le(_, () => {
|
|
1877
|
+
t.disableClickOutsideToClose || G(!1);
|
|
1878
1878
|
}, { ignore: r(() => [
|
|
1879
1879
|
S.value,
|
|
1880
1880
|
".p-datepicker-panel",
|
|
@@ -1886,18 +1886,18 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1886
1886
|
zIndex: t.zIndex
|
|
1887
1887
|
})), re, H, W = () => {
|
|
1888
1888
|
re && clearTimeout(re), re = void 0;
|
|
1889
|
-
},
|
|
1889
|
+
}, oe = () => {
|
|
1890
1890
|
H && clearTimeout(H), H = void 0;
|
|
1891
|
-
},
|
|
1892
|
-
W(),
|
|
1891
|
+
}, G = (e) => {
|
|
1892
|
+
W(), oe(), !(e && (t.disabled || !m.value)) && (e && t.delay > 0 && (t.showOnHover || !h) ? re = setTimeout(() => {
|
|
1893
1893
|
c.value = !0, re = void 0;
|
|
1894
1894
|
}, t.delay) : c.value = e);
|
|
1895
|
-
}, oe = () => {
|
|
1896
|
-
W(), G(), c.value = !1;
|
|
1897
1895
|
}, se = () => {
|
|
1896
|
+
W(), oe(), c.value = !1;
|
|
1897
|
+
}, ce = () => {
|
|
1898
1898
|
let e = S.value;
|
|
1899
1899
|
!e || !g.value || !m.value || (c.value ? e.showPopover() : e.hidePopover());
|
|
1900
|
-
},
|
|
1900
|
+
}, K = r(() => !!c.value && (w.value || A.value)), q = r(() => !t.showOnHover || M.value ? !1 : t.disableInteractive ? C.value || O.value : C.value || O.value || K.value);
|
|
1901
1901
|
U([
|
|
1902
1902
|
C,
|
|
1903
1903
|
O,
|
|
@@ -1915,47 +1915,47 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
1915
1915
|
if (t.showOnHover) {
|
|
1916
1916
|
if (t.disableClickOutsideToClose) return;
|
|
1917
1917
|
if (!c.value && !re && t.enableClickToggle) {
|
|
1918
|
-
M.value = !1,
|
|
1918
|
+
M.value = !1, G(!0);
|
|
1919
1919
|
return;
|
|
1920
1920
|
}
|
|
1921
|
-
M.value = !0,
|
|
1921
|
+
M.value = !0, se();
|
|
1922
1922
|
return;
|
|
1923
1923
|
}
|
|
1924
|
-
|
|
1924
|
+
G(re ? !1 : !c.value);
|
|
1925
1925
|
}, me = (e) => {
|
|
1926
1926
|
let t = e.newState === "open";
|
|
1927
1927
|
c.value !== t && (c.value = t);
|
|
1928
1928
|
}, he = (e) => {
|
|
1929
|
-
h && F.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(),
|
|
1929
|
+
h && F.value === "manual" && e.key === "Escape" && c.value && (e.preventDefault(), e.stopPropagation(), G(!1));
|
|
1930
1930
|
};
|
|
1931
1931
|
return U(c, async (e) => {
|
|
1932
1932
|
if (t.showOnHover && t.enableGroupSync && N(!!e), !h) {
|
|
1933
1933
|
e && te();
|
|
1934
1934
|
return;
|
|
1935
1935
|
}
|
|
1936
|
-
await v(),
|
|
1936
|
+
await v(), ce();
|
|
1937
1937
|
}), U(q, (e) => {
|
|
1938
1938
|
if (t.showOnHover) {
|
|
1939
1939
|
if (e) {
|
|
1940
|
-
|
|
1940
|
+
G(!0);
|
|
1941
1941
|
return;
|
|
1942
1942
|
}
|
|
1943
|
-
W(), t.closeDelay > 0 ? (
|
|
1944
|
-
H = void 0, q.value ||
|
|
1945
|
-
}, t.closeDelay)) :
|
|
1943
|
+
W(), t.closeDelay > 0 ? (oe(), H = setTimeout(() => {
|
|
1944
|
+
H = void 0, q.value || G(!1);
|
|
1945
|
+
}, t.closeDelay)) : G(!1);
|
|
1946
1946
|
}
|
|
1947
1947
|
}), U(m, (e) => {
|
|
1948
|
-
e ? h && c.value && v(
|
|
1948
|
+
e ? h && c.value && v(ce) : se();
|
|
1949
1949
|
}), T(() => {
|
|
1950
|
-
b.value = y.value, g.value = !0, c.value && v(() => h ?
|
|
1950
|
+
b.value = y.value, g.value = !0, c.value && v(() => h ? ce() : te());
|
|
1951
1951
|
}), E(() => {
|
|
1952
|
-
W(),
|
|
1952
|
+
W(), oe();
|
|
1953
1953
|
}), U(() => t.disabled, (e) => {
|
|
1954
1954
|
if (!e) {
|
|
1955
|
-
q.value &&
|
|
1955
|
+
q.value && G(!0);
|
|
1956
1956
|
return;
|
|
1957
1957
|
}
|
|
1958
|
-
O.value &&= !1, A.value &&= !1,
|
|
1958
|
+
O.value &&= !1, A.value &&= !1, G(!1);
|
|
1959
1959
|
}), (r, l) => (D(), o("div", {
|
|
1960
1960
|
ref_key: "root",
|
|
1961
1961
|
ref: _,
|
|
@@ -5017,7 +5017,7 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
5017
5017
|
"pv-input-small": n.size === "lg"
|
|
5018
5018
|
}));
|
|
5019
5019
|
return T(() => {
|
|
5020
|
-
n.displayShortcut &&
|
|
5020
|
+
n.displayShortcut && K(Ea, (e) => {
|
|
5021
5021
|
let t = e.target, n = t instanceof HTMLInputElement || t instanceof HTMLTextAreaElement || (t?.isContentEditable ?? !1), r = document.activeElement === i.value;
|
|
5022
5022
|
(!n || r) && (r || (e.preventDefault(), i.value?.focus()));
|
|
5023
5023
|
});
|
|
@@ -5290,7 +5290,7 @@ var Qi = /* @__PURE__ */ new Set(), $i = (e, t) => !!t.root.value && !!e.root.va
|
|
|
5290
5290
|
}, {
|
|
5291
5291
|
label: W(() => [u(Hn, {
|
|
5292
5292
|
name: "close",
|
|
5293
|
-
onClick: r[0] ||=
|
|
5293
|
+
onClick: r[0] ||= G((e) => n.$emit("handle-clear"), ["stop"])
|
|
5294
5294
|
})]),
|
|
5295
5295
|
"tooltip-content": W(() => [...r[1] ||= [l(" Clear Selections ", -1)]]),
|
|
5296
5296
|
_: 1
|
|
@@ -5499,7 +5499,7 @@ var Qa = {
|
|
|
5499
5499
|
size: 12,
|
|
5500
5500
|
name: "info-circle",
|
|
5501
5501
|
class: "pv-text-subdued",
|
|
5502
|
-
onClick: r[0] ||=
|
|
5502
|
+
onClick: r[0] ||= G(() => {}, ["stop", "prevent"])
|
|
5503
5503
|
})]),
|
|
5504
5504
|
content: W(() => [s("div", to, P(e.description), 1)]),
|
|
5505
5505
|
_: 1
|
|
@@ -5592,7 +5592,7 @@ var Qa = {
|
|
|
5592
5592
|
style: { "--button-icon-only-padding": "0px" },
|
|
5593
5593
|
"aria-label": e.tooltipText,
|
|
5594
5594
|
disabled: e.disabled,
|
|
5595
|
-
onClick:
|
|
5595
|
+
onClick: G(o, ["stop"])
|
|
5596
5596
|
}, [u(Hn, {
|
|
5597
5597
|
name: e.icon,
|
|
5598
5598
|
size: a[e.size]
|
|
@@ -5640,7 +5640,7 @@ var Qa = {
|
|
|
5640
5640
|
class: y(["pv-text-brand", { "pv-action-button-reveal-on-hover": !f.value }]),
|
|
5641
5641
|
role: "img",
|
|
5642
5642
|
"aria-label": o.value,
|
|
5643
|
-
onClick: t[0] ||=
|
|
5643
|
+
onClick: t[0] ||= G(() => {}, ["stop"])
|
|
5644
5644
|
}, [u(Hn, { name: n.value }, null, 8, ["name"])], 10, uo)]),
|
|
5645
5645
|
_: 2
|
|
5646
5646
|
}, [o.value ? {
|
|
@@ -5810,7 +5810,7 @@ var Qa = {
|
|
|
5810
5810
|
class: "pv-button-ghost pv-menu-item-expand-chevron",
|
|
5811
5811
|
"aria-label": n.text ? `Toggle children for ${n.text}` : "Toggle children",
|
|
5812
5812
|
"aria-expanded": e.expanded,
|
|
5813
|
-
onClick: r[1] ||=
|
|
5813
|
+
onClick: r[1] ||= G((e) => P("toggle-expanded"), ["prevent", "stop"])
|
|
5814
5814
|
}, [u(Hn, {
|
|
5815
5815
|
name: e.chevronIcon ?? "chevron-right",
|
|
5816
5816
|
size: 12
|
|
@@ -6012,12 +6012,13 @@ var Qa = {
|
|
|
6012
6012
|
type: Boolean,
|
|
6013
6013
|
default: !1
|
|
6014
6014
|
},
|
|
6015
|
-
listId: { default: void 0 },
|
|
6016
|
-
listRole: { default: "list" },
|
|
6017
6015
|
isSortable: {
|
|
6018
6016
|
type: Boolean,
|
|
6019
6017
|
default: !1
|
|
6020
|
-
}
|
|
6018
|
+
},
|
|
6019
|
+
listClass: { default: void 0 },
|
|
6020
|
+
listId: { default: void 0 },
|
|
6021
|
+
listRole: { default: "list" }
|
|
6021
6022
|
},
|
|
6022
6023
|
emits: ["list-order-updated"],
|
|
6023
6024
|
setup(e, { expose: n, emit: i }) {
|
|
@@ -6042,13 +6043,13 @@ var Qa = {
|
|
|
6042
6043
|
id: e.listId,
|
|
6043
6044
|
ref: "popoverList",
|
|
6044
6045
|
role: e.listRole,
|
|
6045
|
-
class: "pv-popover-list",
|
|
6046
|
+
class: y(["pv-popover-list", e.listClass]),
|
|
6046
6047
|
style: x(e.cssCustomListProperties)
|
|
6047
|
-
}, [j(n.$slots, "default", {}, void 0, !0)],
|
|
6048
|
+
}, [j(n.$slots, "default", {}, void 0, !0)], 14, Mo),
|
|
6048
6049
|
j(n.$slots, "footer", {}, void 0, !0)
|
|
6049
6050
|
], 64)) : j(n.$slots, "default", { key: 1 }, void 0, !0)], 14, jo));
|
|
6050
6051
|
}
|
|
6051
|
-
}), [["__scopeId", "data-v-
|
|
6052
|
+
}), [["__scopeId", "data-v-fe6e9c6a"]]), Po = ["role"], Fo = [
|
|
6052
6053
|
"data-active",
|
|
6053
6054
|
"data-option-id",
|
|
6054
6055
|
"data-testid",
|
|
@@ -6097,7 +6098,7 @@ var Qa = {
|
|
|
6097
6098
|
let e = p.value;
|
|
6098
6099
|
E(), e && v(() => Ce(e));
|
|
6099
6100
|
}, N = [...m(go, []), h];
|
|
6100
|
-
O(go, N),
|
|
6101
|
+
O(go, N), le(g, (e) => {
|
|
6101
6102
|
(e.target instanceof Element ? e.target.closest("[data-pv-menu-ancestors]")?.dataset.pvMenuAncestors?.split(" ") : void 0)?.includes(h) || E();
|
|
6102
6103
|
}, { ignore: [S] });
|
|
6103
6104
|
let P = ee(f.value);
|
|
@@ -6112,17 +6113,17 @@ var Qa = {
|
|
|
6112
6113
|
}), O(po, P), O(ho, r(() => l.childrenDisplay === "popover"));
|
|
6113
6114
|
let L = r(() => l.childrenDisplay === "inline" && !!l.enableCascadeSelection);
|
|
6114
6115
|
O(mo, L);
|
|
6115
|
-
let z = m(_o, void 0), ne = m(bo, k(!1)), V = m(vo, void 0), re = m(yo, void 0), H = r(() => l.singleSelect || l.config?.variant === "radio"),
|
|
6116
|
+
let z = m(_o, void 0), ne = m(bo, k(!1)), V = m(vo, void 0), re = m(yo, void 0), H = r(() => l.singleSelect || l.config?.variant === "radio"), oe = r(() => l.options.find((e) => e.id === p.value && e.children?.length)), G = (e, t, n = !1, r = !0) => {
|
|
6116
6117
|
let i = !r || p.value !== e.id;
|
|
6117
6118
|
p.value = i ? e.id : void 0, i && (C.value = t, v(() => {
|
|
6118
6119
|
T(), n && xe(b.value ?? document.getElementById(h), 0);
|
|
6119
6120
|
}));
|
|
6120
|
-
},
|
|
6121
|
+
}, se = (e, t = !1) => {
|
|
6121
6122
|
if (l.readOnly) return;
|
|
6122
6123
|
let n = (!t && l.childrenDisplay === "popover" ? l.options.find((t) => t.id === e.option.id) : void 0) ?? e.option;
|
|
6123
6124
|
if (l.childrenDisplay === "popover" && !t && n.children?.length) {
|
|
6124
6125
|
let t = e.event.currentTarget?.closest("li");
|
|
6125
|
-
t &&
|
|
6126
|
+
t && G(n, t);
|
|
6126
6127
|
return;
|
|
6127
6128
|
}
|
|
6128
6129
|
let r;
|
|
@@ -6159,17 +6160,17 @@ var Qa = {
|
|
|
6159
6160
|
...e,
|
|
6160
6161
|
option: n
|
|
6161
6162
|
} : e);
|
|
6162
|
-
},
|
|
6163
|
-
let t =
|
|
6163
|
+
}, ce = (e) => {
|
|
6164
|
+
let t = oe.value;
|
|
6164
6165
|
if (!t) return;
|
|
6165
6166
|
let n = t.children?.find((t) => t.id === e.option.id) ?? e.option;
|
|
6166
|
-
|
|
6167
|
+
se({
|
|
6167
6168
|
...e,
|
|
6168
6169
|
option: n
|
|
6169
6170
|
}, !0), p.value = void 0, v(() => Ce(t.id));
|
|
6170
|
-
},
|
|
6171
|
+
}, K = r(() => new Set(P.value.map((e) => e.id))), q = (e) => {
|
|
6171
6172
|
for (let t of e) {
|
|
6172
|
-
if (
|
|
6173
|
+
if (K.value.has(t.id)) return t;
|
|
6173
6174
|
let e = t.children?.length ? q(t.children) : void 0;
|
|
6174
6175
|
if (e) return e;
|
|
6175
6176
|
}
|
|
@@ -6187,14 +6188,14 @@ var Qa = {
|
|
|
6187
6188
|
...e,
|
|
6188
6189
|
children: void 0,
|
|
6189
6190
|
totalChildCount: void 0
|
|
6190
|
-
}), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, fe = (e) =>
|
|
6191
|
+
}), de = (e) => l.childrenDisplay === "popover" ? e.config ?? l.config : l.config, fe = (e) => K.value.has(e.id) || L.value && V?.value?.has(e.id) || (L.value || l.childrenDisplay === "popover") && e.children?.length && q(e.children) ? !0 : null, Y = (e) => {
|
|
6191
6192
|
let t = e.config?.variant ?? l.config?.variant;
|
|
6192
6193
|
return H.value || t === "radio" ? "menuitemradio" : t === "checkbox" ? "menuitemcheckbox" : "menuitem";
|
|
6193
|
-
}, 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" &&
|
|
6194
|
+
}, 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" && K.value.has(e.id) ? !0 : null, he = (e, t) => !!(!t || K.value.has(e.id) || V?.value?.has(e.id) || e.children?.length && q(e.children)), ge = k(), _e = k(), ve = r(() => {
|
|
6194
6195
|
let e = l.options.filter((e) => !l.readOnly && !e.disabled && he(e, l.isLoading)).map((e) => e.id);
|
|
6195
6196
|
return l.hasMoreOptions && !l.isSeeMoreLoading && e.push(Bo), ge.value && e.includes(ge.value) ? ge.value : e[0];
|
|
6196
6197
|
}), ye = r(() => {
|
|
6197
|
-
let e =
|
|
6198
|
+
let e = oe.value?.children?.filter((e) => !l.readOnly && !e.disabled) ?? [];
|
|
6198
6199
|
return e.some((e) => e.id === _e.value) ? _e.value : e[0]?.id;
|
|
6199
6200
|
}), be = (e) => {
|
|
6200
6201
|
let t = Array.from(e?.querySelectorAll("li[role='none'] > [role^='menuitem']:not([aria-disabled='true'])") ?? []).filter((e) => !e.hidden && e.style.display !== "none");
|
|
@@ -6226,11 +6227,11 @@ var Qa = {
|
|
|
6226
6227
|
if (!(e.target !== e.currentTarget || we(e, g.value))) switch (e.key) {
|
|
6227
6228
|
case "ArrowRight":
|
|
6228
6229
|
if (!t.children?.length) break;
|
|
6229
|
-
e.preventDefault(),
|
|
6230
|
+
e.preventDefault(), G(t, e.currentTarget, !0, !1);
|
|
6230
6231
|
break;
|
|
6231
6232
|
case "Enter":
|
|
6232
6233
|
case " ":
|
|
6233
|
-
e.preventDefault(), t.children?.length ?
|
|
6234
|
+
e.preventDefault(), t.children?.length ? G(t, e.currentTarget, !0, !1) : se({
|
|
6234
6235
|
event: e,
|
|
6235
6236
|
option: t
|
|
6236
6237
|
});
|
|
@@ -6265,7 +6266,7 @@ var Qa = {
|
|
|
6265
6266
|
}
|
|
6266
6267
|
case "Enter":
|
|
6267
6268
|
case " ":
|
|
6268
|
-
e.preventDefault(),
|
|
6269
|
+
e.preventDefault(), ce({
|
|
6269
6270
|
event: e,
|
|
6270
6271
|
option: t
|
|
6271
6272
|
});
|
|
@@ -6304,7 +6305,7 @@ var Qa = {
|
|
|
6304
6305
|
tabindex: e.childrenDisplay === "popover" ? ve.value === t.id ? 0 : -1 : void 0,
|
|
6305
6306
|
onFocus: (e) => ge.value = t.id,
|
|
6306
6307
|
onKeydown: (n) => e.childrenDisplay === "popover" ? Te(n, t) : void 0,
|
|
6307
|
-
onHandleSelected:
|
|
6308
|
+
onHandleSelected: se,
|
|
6308
6309
|
onSeeMore: c[0] ||= (e) => d("see-more", e)
|
|
6309
6310
|
}), null, 16, [
|
|
6310
6311
|
"aria-checked",
|
|
@@ -6343,7 +6344,7 @@ var Qa = {
|
|
|
6343
6344
|
"disabled",
|
|
6344
6345
|
"role",
|
|
6345
6346
|
"tabindex"
|
|
6346
|
-
])], 8, Io)) : a("", !0)], 16, Po), e.childrenDisplay === "popover" &&
|
|
6347
|
+
])], 8, Io)) : a("", !0)], 16, Po), e.childrenDisplay === "popover" && oe.value ? (D(), i(n, {
|
|
6347
6348
|
key: 0,
|
|
6348
6349
|
to: "body"
|
|
6349
6350
|
}, [s("div", {
|
|
@@ -6361,17 +6362,17 @@ var Qa = {
|
|
|
6361
6362
|
}
|
|
6362
6363
|
}, {
|
|
6363
6364
|
default: W(() => [j(r.$slots, "popover", {
|
|
6364
|
-
option:
|
|
6365
|
+
option: oe.value,
|
|
6365
6366
|
popoverId: R(h),
|
|
6366
6367
|
close: M
|
|
6367
6368
|
}, () => [s("ul", {
|
|
6368
6369
|
id: R(h),
|
|
6369
6370
|
ref_key: "nestedMenuRef",
|
|
6370
6371
|
ref: b,
|
|
6371
|
-
"aria-label": `${
|
|
6372
|
+
"aria-label": `${oe.value.text} options`,
|
|
6372
6373
|
class: "pv-popover-list",
|
|
6373
6374
|
role: "menu"
|
|
6374
|
-
}, [(D(!0), o(t, null, A(
|
|
6375
|
+
}, [(D(!0), o(t, null, A(oe.value.children, (t) => (D(), o("li", {
|
|
6375
6376
|
key: t.id,
|
|
6376
6377
|
"data-active": me(t),
|
|
6377
6378
|
"data-option-id": t.id,
|
|
@@ -6391,7 +6392,7 @@ var Qa = {
|
|
|
6391
6392
|
tabindex: ye.value === t.id ? 0 : -1,
|
|
6392
6393
|
onFocus: (e) => _e.value = t.id,
|
|
6393
6394
|
onKeydown: (e) => De(e, t),
|
|
6394
|
-
onHandleSelected:
|
|
6395
|
+
onHandleSelected: ce,
|
|
6395
6396
|
onSeeMore: c[4] ||= (e) => d("see-more", e)
|
|
6396
6397
|
}), null, 16, [
|
|
6397
6398
|
"aria-checked",
|
|
@@ -6508,7 +6509,7 @@ var Qa = {
|
|
|
6508
6509
|
}, E = () => {
|
|
6509
6510
|
f.value = !1, m.value = "";
|
|
6510
6511
|
};
|
|
6511
|
-
return
|
|
6512
|
+
return K("Escape", () => {
|
|
6512
6513
|
f.value && E();
|
|
6513
6514
|
}), (t, n) => (D(), i(ra, _({
|
|
6514
6515
|
modelValue: R(f),
|
|
@@ -7411,7 +7412,7 @@ var Qa = {
|
|
|
7411
7412
|
dataRows: v.value,
|
|
7412
7413
|
mapColumn: N.value,
|
|
7413
7414
|
seriesColumn: E.value
|
|
7414
|
-
})),
|
|
7415
|
+
})), oe = r(() => ac(ae.value, E.value?.field)), G = r(() => oc(E.value)), se = r(() => sc({
|
|
7415
7416
|
aggregatedCategoryChartData: U.value,
|
|
7416
7417
|
categoryColumn: T.value,
|
|
7417
7418
|
dataLimit: n.dataLimit,
|
|
@@ -7432,25 +7433,25 @@ var Qa = {
|
|
|
7432
7433
|
useDisplayDataRows: n.chartData !== void 0,
|
|
7433
7434
|
xKey: n.xKey,
|
|
7434
7435
|
yKey: n.yKey
|
|
7435
|
-
})),
|
|
7436
|
+
})), ce = r(() => _n(se.value)), le = r(() => vn(se.value)), K = r(() => cn({
|
|
7436
7437
|
baseMinHeight: n.minHeight,
|
|
7437
|
-
dataCount:
|
|
7438
|
+
dataCount: ce.value,
|
|
7438
7439
|
enableChartScrolling: n.enableChartScrolling,
|
|
7439
|
-
isHorizontalScrollingChart:
|
|
7440
|
+
isHorizontalScrollingChart: le.value
|
|
7440
7441
|
})), q = r(() => {
|
|
7441
7442
|
let e = ln({
|
|
7442
7443
|
enableChartScrolling: n.enableChartScrolling,
|
|
7443
|
-
isHorizontalScrollingChart:
|
|
7444
|
+
isHorizontalScrollingChart: le.value
|
|
7444
7445
|
});
|
|
7445
|
-
if (e) return
|
|
7446
|
+
if (e) return le.value ? {
|
|
7446
7447
|
...e,
|
|
7447
7448
|
maxHeight: `${n.minHeight}px`
|
|
7448
7449
|
} : e;
|
|
7449
7450
|
}), ue = r(() => un({
|
|
7450
|
-
chartMinHeight:
|
|
7451
|
-
dataCount:
|
|
7451
|
+
chartMinHeight: K.value,
|
|
7452
|
+
dataCount: ce.value,
|
|
7452
7453
|
enableChartScrolling: n.enableChartScrolling,
|
|
7453
|
-
isHorizontalScrollingChart:
|
|
7454
|
+
isHorizontalScrollingChart: le.value,
|
|
7454
7455
|
minContentWidth: 320
|
|
7455
7456
|
}));
|
|
7456
7457
|
return (n, r) => (D(), i(Pn, {
|
|
@@ -7481,12 +7482,12 @@ var Qa = {
|
|
|
7481
7482
|
"onUpdate:selectedRegion": r[1] ||= (e) => R.value = e,
|
|
7482
7483
|
chartData: ae.value,
|
|
7483
7484
|
displayRegionSelector: !1,
|
|
7484
|
-
gradientLegendMin:
|
|
7485
|
-
gradientLegendMax:
|
|
7485
|
+
gradientLegendMin: oe.value.min,
|
|
7486
|
+
gradientLegendMax: oe.value.max,
|
|
7486
7487
|
isLoading: e.chartLoading,
|
|
7487
7488
|
noDataMessage: e.noDataOverlayText,
|
|
7488
7489
|
seriesKey: E.value?.field ?? "value",
|
|
7489
|
-
seriesValueFormatter:
|
|
7490
|
+
seriesValueFormatter: G.value
|
|
7490
7491
|
}, null, 8, [
|
|
7491
7492
|
"selectedRegion",
|
|
7492
7493
|
"chartData",
|
|
@@ -7504,9 +7505,9 @@ var Qa = {
|
|
|
7504
7505
|
class: "pv-data-widget__chart-content",
|
|
7505
7506
|
style: x(ue.value)
|
|
7506
7507
|
}, [u(nn, {
|
|
7507
|
-
options:
|
|
7508
|
+
options: se.value,
|
|
7508
7509
|
isLoading: e.chartLoading,
|
|
7509
|
-
minHeight:
|
|
7510
|
+
minHeight: K.value
|
|
7510
7511
|
}, null, 8, [
|
|
7511
7512
|
"options",
|
|
7512
7513
|
"isLoading",
|
|
@@ -7593,7 +7594,7 @@ var Qa = {
|
|
|
7593
7594
|
return (t, r) => ae((D(), o("div", {
|
|
7594
7595
|
class: "pv-relative",
|
|
7595
7596
|
style: { width: "fit-content" },
|
|
7596
|
-
onKeydown:
|
|
7597
|
+
onKeydown: oe(E, ["esc"])
|
|
7597
7598
|
}, [s("button", {
|
|
7598
7599
|
ref_key: "triggerRef",
|
|
7599
7600
|
ref: h,
|
|
@@ -7698,7 +7699,7 @@ var Qa = {
|
|
|
7698
7699
|
size: 12,
|
|
7699
7700
|
name: "close",
|
|
7700
7701
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
7701
|
-
onClick: r[0] ||=
|
|
7702
|
+
onClick: r[0] ||= G((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
7702
7703
|
}, null, 8, ["data-dd-action-name"])) : a("", !0)
|
|
7703
7704
|
], 14, gc));
|
|
7704
7705
|
}
|
|
@@ -7856,7 +7857,7 @@ var Oc = {
|
|
|
7856
7857
|
let r = e, i = n, c = V("sidePanel"), l = B(e, "searchInput"), d = B(e, "modelValue"), f = () => {
|
|
7857
7858
|
c?.value?.removeAttribute("open"), d.value = !1;
|
|
7858
7859
|
}, p = () => {
|
|
7859
|
-
c.value &&
|
|
7860
|
+
c.value && le(c.value, () => {
|
|
7860
7861
|
d.value && (i("click-outside"), f());
|
|
7861
7862
|
}, { ignore: [".pv-click-outside-ignore"] });
|
|
7862
7863
|
};
|
|
@@ -7864,7 +7865,7 @@ var Oc = {
|
|
|
7864
7865
|
d.value && c?.value?.setAttribute("open", "true"), r.closeOnClickOutside && p();
|
|
7865
7866
|
}), U(() => d.value, () => {
|
|
7866
7867
|
d.value ? c?.value?.setAttribute("open", "true") : c?.value?.removeAttribute("open");
|
|
7867
|
-
}),
|
|
7868
|
+
}), K("Escape", () => {
|
|
7868
7869
|
c.value && d.value && f();
|
|
7869
7870
|
}), (n, i) => (D(), o("div", {
|
|
7870
7871
|
class: "pv-drawer pv-surface",
|
|
@@ -8131,14 +8132,14 @@ var Rc = {
|
|
|
8131
8132
|
a(ie(r.id), r.id);
|
|
8132
8133
|
}
|
|
8133
8134
|
f.value = t, m.value = n, H.value = r;
|
|
8134
|
-
},
|
|
8135
|
+
}, oe = r({
|
|
8135
8136
|
get: () => H.value,
|
|
8136
8137
|
set: (e) => {
|
|
8137
8138
|
te(e);
|
|
8138
8139
|
}
|
|
8139
|
-
}),
|
|
8140
|
+
}), G = () => {
|
|
8140
8141
|
L.value = "", M.value = !1;
|
|
8141
|
-
},
|
|
8142
|
+
}, se = r(() => {
|
|
8142
8143
|
let e = c.size === "lg" ? 24 : 30;
|
|
8143
8144
|
return c.overlayTrigger ? -e : void 0;
|
|
8144
8145
|
});
|
|
@@ -8158,25 +8159,25 @@ var Rc = {
|
|
|
8158
8159
|
c.overlayTrigger && !c.disableSearchInput && k.value?.input?.focus(), g("dropdown-open");
|
|
8159
8160
|
})) : (re(), g("dropdown-closed"));
|
|
8160
8161
|
});
|
|
8161
|
-
let
|
|
8162
|
+
let ce = r(() => {
|
|
8162
8163
|
if (L.value === "") return c.options;
|
|
8163
8164
|
let e = L.value.toLocaleLowerCase();
|
|
8164
8165
|
return c.enableCascadeSelection ? Za(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
8165
|
-
}),
|
|
8166
|
+
}), le = () => {
|
|
8166
8167
|
if (c.enableCascadeSelection) {
|
|
8167
8168
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
8168
8169
|
for (let r of n) Ka(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
8169
8170
|
};
|
|
8170
|
-
t(
|
|
8171
|
+
t(ce.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
8171
8172
|
}
|
|
8172
|
-
let e = c.enableCascadeSelection ? qa(
|
|
8173
|
+
let e = c.enableCascadeSelection ? qa(ce.value) : ce.value;
|
|
8173
8174
|
g("select-all", e.length), te(e);
|
|
8174
8175
|
}, q = () => {
|
|
8175
8176
|
g("clear-all", H.value.length), f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), te([]);
|
|
8176
8177
|
}, ue = () => {
|
|
8177
|
-
re(),
|
|
8178
|
+
re(), G();
|
|
8178
8179
|
}, J = () => {
|
|
8179
|
-
ne(),
|
|
8180
|
+
ne(), G();
|
|
8180
8181
|
}, de = r(() => {
|
|
8181
8182
|
if (!c.groupings) return;
|
|
8182
8183
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -8200,12 +8201,12 @@ var Rc = {
|
|
|
8200
8201
|
let e = he.value?.getRootNode();
|
|
8201
8202
|
return e instanceof ShadowRoot ? e.host : null;
|
|
8202
8203
|
}), { present: _e } = Zi("header", { host: ge }), { present: ve } = Zi("no-results", { host: ge }), { present: ye } = Zi("footer", { host: ge });
|
|
8203
|
-
return
|
|
8204
|
-
M.value &&
|
|
8204
|
+
return K("Escape", () => {
|
|
8205
|
+
M.value && G();
|
|
8205
8206
|
}), (n, r) => (D(), i(ra, _({
|
|
8206
8207
|
modelValue: R(M),
|
|
8207
8208
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
8208
|
-
}, e.popoverProperties, { offset:
|
|
8209
|
+
}, e.popoverProperties, { offset: se.value }), {
|
|
8209
8210
|
trigger: W(() => [u(Va, {
|
|
8210
8211
|
ref: "select-button-trigger-ref",
|
|
8211
8212
|
variant: e.variant,
|
|
@@ -8264,11 +8265,11 @@ var Rc = {
|
|
|
8264
8265
|
placeholder: e.searchPlaceholder
|
|
8265
8266
|
}, null, 8, ["model-value", "placeholder"])], 8, Bc)),
|
|
8266
8267
|
n.$slots.header || R(_e) ? (D(), o("div", Vc, [j(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
8267
|
-
|
|
8268
|
+
ce.value.length > 0 ? (D(), o(t, { key: 2 }, [fe.value ? (D(!0), o(t, { key: 0 }, A(de.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8268
8269
|
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Hc, P(t), 1)),
|
|
8269
8270
|
u(Vo, {
|
|
8270
|
-
selectedItems:
|
|
8271
|
-
"onUpdate:selectedItems": r[2] ||= (e) =>
|
|
8271
|
+
selectedItems: oe.value,
|
|
8272
|
+
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
8272
8273
|
options: i,
|
|
8273
8274
|
config: l.value,
|
|
8274
8275
|
singleSelect: e.singleSelect,
|
|
@@ -8295,9 +8296,9 @@ var Rc = {
|
|
|
8295
8296
|
de.value && s !== de.value.length - 1 ? (D(), o("div", Uc)) : a("", !0)
|
|
8296
8297
|
]))), 128)) : (D(), i(Vo, {
|
|
8297
8298
|
key: 1,
|
|
8298
|
-
selectedItems:
|
|
8299
|
-
"onUpdate:selectedItems": r[3] ||= (e) =>
|
|
8300
|
-
options:
|
|
8299
|
+
selectedItems: oe.value,
|
|
8300
|
+
"onUpdate:selectedItems": r[3] ||= (e) => oe.value = e,
|
|
8301
|
+
options: ce.value,
|
|
8301
8302
|
config: l.value,
|
|
8302
8303
|
singleSelect: e.singleSelect,
|
|
8303
8304
|
queryText: e.highlightSearchText ? L.value : null,
|
|
@@ -8318,14 +8319,14 @@ var Rc = {
|
|
|
8318
8319
|
"isSeeMoreLoading",
|
|
8319
8320
|
"hasMoreOptions"
|
|
8320
8321
|
]))], 64)) : a("", !0),
|
|
8321
|
-
e.isLoading ? (D(), o("div", Wc, [u(Dt, { variant: "dark" }), e.loadingText ? (D(), o("span", Gc, P(e.loadingText), 1)) : a("", !0)])) :
|
|
8322
|
+
e.isLoading ? (D(), o("div", Wc, [u(Dt, { variant: "dark" }), e.loadingText ? (D(), o("span", Gc, P(e.loadingText), 1)) : a("", !0)])) : ce.value.length === 0 ? (D(), o(t, { key: 4 }, [R(ve) ? j(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (D(), i(Ga, { key: 1 }))], 64)) : a("", !0),
|
|
8322
8323
|
s("div", Kc, [R(ye) ? j(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant ? (D(), i(zc, {
|
|
8323
8324
|
key: 1,
|
|
8324
8325
|
variant: e.menuActionsVariant,
|
|
8325
8326
|
disabled: e.isLoading,
|
|
8326
8327
|
rumFilterName: e.rumFilterName,
|
|
8327
8328
|
onHandleClearAll: q,
|
|
8328
|
-
onHandleSelectAll:
|
|
8329
|
+
onHandleSelectAll: le,
|
|
8329
8330
|
onHandleCancel: ue,
|
|
8330
8331
|
onHandleConfirm: J
|
|
8331
8332
|
}, null, 8, [
|
|
@@ -8926,21 +8927,21 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8926
8927
|
width: "100%",
|
|
8927
8928
|
maxWidth: "100%",
|
|
8928
8929
|
"--popover-list-item-hover-background-color": "var(--surface-card-hover, #ece8e2)"
|
|
8929
|
-
}, f = V("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = Ll(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() =>
|
|
8930
|
+
}, f = V("search-input"), p = B(e, "searchText"), m = B(e, "query"), h = B(e, "options"), { addQueryOption: g, containsQueryOption: b, removeQueryOption: S } = Ll(), C = k(!1), w = k(!1), T = k(!1), E = ne(), O = r(() => !!(E.header || E.footer || E.empty)), M = te(), N = `${M}-options`, ee = (e) => `${M}-option-${e}`, F = (e) => `${M}-group-${e}`, I = r(() => ce.value.length > 0 || n.optionsLoading || O.value), L = r(() => m.value === null ? n.placeholder : ""), z = k(null), re = r(() => z.value !== null && z.value !== "" && !w.value), oe = () => {
|
|
8930
8931
|
m.value = null, p.value = "", z.value = null, T.value = !1;
|
|
8931
8932
|
};
|
|
8932
|
-
|
|
8933
|
+
K("Enter", (e) => {
|
|
8933
8934
|
let t = de.value;
|
|
8934
8935
|
if (t) {
|
|
8935
8936
|
e.preventDefault(), he(t);
|
|
8936
8937
|
return;
|
|
8937
8938
|
}
|
|
8938
|
-
n.enableCustomOptionsInput && p.value.trim() &&
|
|
8939
|
-
}, { target: f }),
|
|
8939
|
+
n.enableCustomOptionsInput && p.value.trim() && G();
|
|
8940
|
+
}, { target: f }), K(["ArrowDown", "ArrowUp"], (e) => {
|
|
8940
8941
|
q.value.length !== 0 && (e.preventDefault(), C.value = !0, pe(e.key === "ArrowDown" ? 1 : -1));
|
|
8941
|
-
}, { target: f }),
|
|
8942
|
+
}, { target: f }), K("Escape", () => {
|
|
8942
8943
|
C.value && (C.value = !1, J.value = -1);
|
|
8943
|
-
}, { target: f }),
|
|
8944
|
+
}, { target: f }), K("Backspace", () => {
|
|
8944
8945
|
if (p.value !== "") return;
|
|
8945
8946
|
let e = m.value?.queryTerms;
|
|
8946
8947
|
if (!e || e.length === 0) return;
|
|
@@ -8951,32 +8952,32 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
8951
8952
|
queryTerm: t
|
|
8952
8953
|
}), m.value?.queryTerms.length === 0 && (m.value = null);
|
|
8953
8954
|
}, { target: f });
|
|
8954
|
-
let
|
|
8955
|
+
let G = () => {
|
|
8955
8956
|
p.value.trim() && (m.value = g(m.value, {
|
|
8956
8957
|
id: p.value.trim(),
|
|
8957
8958
|
text: p.value,
|
|
8958
8959
|
queryTerm: { queryText: p.value }
|
|
8959
8960
|
}), ve());
|
|
8960
|
-
},
|
|
8961
|
+
}, se = (e) => {
|
|
8961
8962
|
let t = e?.queryDisplayField || e?.queryField;
|
|
8962
8963
|
if (t) return e?.exactMatch ? t : `Search in ${t}`;
|
|
8963
|
-
},
|
|
8964
|
+
}, ce = r(() => {
|
|
8964
8965
|
if (!h.value || h.value.length === 0) return [];
|
|
8965
8966
|
let e = h.value;
|
|
8966
8967
|
return n.processor === "field-only" && (e = h.value.filter((e) => e.queryTerm?.queryField)), m.value && (e = e.filter((e) => !b(m.value, e))), e.map((e) => ({
|
|
8967
8968
|
...e,
|
|
8968
|
-
subText: e.subText ??
|
|
8969
|
+
subText: e.subText ?? se(e.queryTerm),
|
|
8969
8970
|
searchText: p.value,
|
|
8970
8971
|
context: e.queryTerm
|
|
8971
8972
|
}));
|
|
8972
|
-
}),
|
|
8973
|
+
}), le = r(() => {
|
|
8973
8974
|
let e = /* @__PURE__ */ new Map();
|
|
8974
|
-
for (let t of
|
|
8975
|
+
for (let t of ce.value) {
|
|
8975
8976
|
let n = t.groupingLabel ?? "", r = e.get(n);
|
|
8976
8977
|
r ? r.push(t) : e.set(n, [t]);
|
|
8977
8978
|
}
|
|
8978
8979
|
return Array.from(e.entries());
|
|
8979
|
-
}), q = r(() =>
|
|
8980
|
+
}), q = r(() => le.value.flatMap(([, e]) => e)), ue = r(() => new Map(q.value.map((e, t) => [e, t]))), J = k(-1), de = r(() => {
|
|
8980
8981
|
if (!C.value) return null;
|
|
8981
8982
|
let e = q.value[J.value] ?? null;
|
|
8982
8983
|
return e?.disabled ? null : e;
|
|
@@ -9001,14 +9002,14 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9001
9002
|
U([q, p], () => {
|
|
9002
9003
|
J.value = -1;
|
|
9003
9004
|
}), U([
|
|
9004
|
-
|
|
9005
|
+
ce,
|
|
9005
9006
|
p,
|
|
9006
9007
|
() => n.optionsLoading
|
|
9007
9008
|
], ([e, t, n]) => {
|
|
9008
9009
|
t && t.length > 0 && (e.length > 0 || n || O.value) ? C.value = !0 : (!t || t.length === 0) && (C.value = !1);
|
|
9009
9010
|
}, { immediate: !0 });
|
|
9010
9011
|
let me = () => {
|
|
9011
|
-
n.enableCustomOptionsInput &&
|
|
9012
|
+
n.enableCustomOptionsInput && G(), J.value = -1, C.value = !1, w.value = !1, T.value = !1;
|
|
9012
9013
|
}, he = (e) => {
|
|
9013
9014
|
try {
|
|
9014
9015
|
let t = {
|
|
@@ -9082,17 +9083,19 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9082
9083
|
variant: "ghost",
|
|
9083
9084
|
leftIcon: "close",
|
|
9084
9085
|
size: "md",
|
|
9085
|
-
onClick:
|
|
9086
|
+
onClick: oe
|
|
9086
9087
|
})) : a("", !0),
|
|
9087
9088
|
re.value ? (D(), o("p", Bl, P(z.value), 1)) : a("", !0),
|
|
9088
9089
|
I.value ? ae((D(), i(No, {
|
|
9089
9090
|
key: 3,
|
|
9091
|
+
class: "pv-scrollbar-visible",
|
|
9090
9092
|
"css-custom-properties": d,
|
|
9091
9093
|
isList: !0,
|
|
9094
|
+
listClass: "pv-scrollbar-visible",
|
|
9092
9095
|
listId: N,
|
|
9093
9096
|
listRole: "listbox"
|
|
9094
9097
|
}, c({
|
|
9095
|
-
default: W(() => [e.optionsLoading ? (D(), o("div", Wl, [u(Dt, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [
|
|
9098
|
+
default: W(() => [e.optionsLoading ? (D(), o("div", Wl, [u(Dt, { variant: "dark" })])) : (D(), o(t, { key: 0 }, [ce.value.length > 0 ? (D(!0), o(t, { key: 0 }, A(le.value, ([e, n], r) => (D(), o(t, { key: e }, [e ? (D(), o("li", {
|
|
9096
9099
|
key: 0,
|
|
9097
9100
|
id: F(r),
|
|
9098
9101
|
role: "presentation",
|
|
@@ -9122,7 +9125,7 @@ var nl = "__pv_filter_panel_scoped_value__", rl = (e) => typeof e == "object" &&
|
|
|
9122
9125
|
} : void 0]), 1536)), [[ie, C.value]]) : a("", !0)
|
|
9123
9126
|
], 34)), [[R(Q), me]]);
|
|
9124
9127
|
}
|
|
9125
|
-
}), [["__scopeId", "data-v-
|
|
9128
|
+
}), [["__scopeId", "data-v-62aa7767"]]), Kl = Symbol.for("pv.rum-context"), ql = () => {
|
|
9126
9129
|
let e = m(Kl, void 0);
|
|
9127
9130
|
return () => {
|
|
9128
9131
|
let t = e?.value;
|
|
@@ -9934,20 +9937,20 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9934
9937
|
}, ae = (e) => {
|
|
9935
9938
|
let t = M.value[e] ?? 0;
|
|
9936
9939
|
M.value[e] = t + 1, j.value.add(e);
|
|
9937
|
-
},
|
|
9940
|
+
}, oe = (e) => {
|
|
9938
9941
|
let t = M.value[e] ?? 0;
|
|
9939
9942
|
if (t <= 1) {
|
|
9940
9943
|
delete M.value[e], j.value.delete(e);
|
|
9941
9944
|
return;
|
|
9942
9945
|
}
|
|
9943
9946
|
M.value[e] = t - 1;
|
|
9944
|
-
},
|
|
9945
|
-
let n = t ?
|
|
9947
|
+
}, G = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Set(), ce = (e, t = !1) => {
|
|
9948
|
+
let n = t ? se : G;
|
|
9946
9949
|
e.forEach((e) => n.add(e));
|
|
9947
|
-
}, ce = () => {
|
|
9948
|
-
oe.forEach((e) => K.add(e)), oe.clear();
|
|
9949
9950
|
}, le = () => {
|
|
9950
|
-
|
|
9951
|
+
se.forEach((e) => G.add(e)), se.clear();
|
|
9952
|
+
}, K = () => {
|
|
9953
|
+
se.clear();
|
|
9951
9954
|
}, q = (e) => {
|
|
9952
9955
|
let t = new Set(e);
|
|
9953
9956
|
for (let n of e) {
|
|
@@ -9995,7 +9998,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
9995
9998
|
};
|
|
9996
9999
|
return pe(n, (e, t) => {
|
|
9997
10000
|
let n = ye(e, t);
|
|
9998
|
-
|
|
10001
|
+
G.forEach((e) => n.add(e)), G.clear(), n.size > 0 && q(n);
|
|
9999
10002
|
}, {
|
|
10000
10003
|
deep: !0,
|
|
10001
10004
|
debounce: 200,
|
|
@@ -10035,14 +10038,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10035
10038
|
stageFilterChangesUntilDropdownCloses: D,
|
|
10036
10039
|
filterSearchMinLength: O,
|
|
10037
10040
|
markOtherFieldsStale: q,
|
|
10038
|
-
noteFilterModelChange:
|
|
10039
|
-
commitStagedFilterModelChanges:
|
|
10040
|
-
clearStagedFilterModelChanges:
|
|
10041
|
+
noteFilterModelChange: ce,
|
|
10042
|
+
commitStagedFilterModelChanges: le,
|
|
10043
|
+
clearStagedFilterModelChanges: K,
|
|
10041
10044
|
aggregateFieldMap: A,
|
|
10042
10045
|
registerAggregateField: W,
|
|
10043
10046
|
registeredFilterFields: j,
|
|
10044
10047
|
registerFilterField: ae,
|
|
10045
|
-
unregisterFilterField:
|
|
10048
|
+
unregisterFilterField: oe,
|
|
10046
10049
|
stagedSelectedValuesMap: N,
|
|
10047
10050
|
initStagedSelectedValues: ue,
|
|
10048
10051
|
clearStagedSelectedValues: J,
|
|
@@ -10077,16 +10080,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10077
10080
|
return [...n, ...i];
|
|
10078
10081
|
}
|
|
10079
10082
|
return Be(e);
|
|
10080
|
-
}),
|
|
10083
|
+
}), oe = r(() => _.value[J.value] ?? !1), G = r(() => A.value || $(t.value).prefetchFilterValues === !0), se = r(() => (o?.value ?? !1) && (s?.value ?? !1) && W.value.length === 0 && Ne.value.length === 0), ce = r(() => o?.value ?? !1), le = r(() => ce.value && (s?.value ?? !1)), K = r({
|
|
10081
10084
|
get: () => R.value[J.value] ?? "",
|
|
10082
10085
|
set: (e) => S(J.value, e)
|
|
10083
10086
|
}), q = r(() => $(t.value).filterSearchMinLength ?? M.value), ue = r(() => {
|
|
10084
|
-
let e = q.value ?? 0, t =
|
|
10087
|
+
let e = q.value ?? 0, t = K.value?.length ?? 0;
|
|
10085
10088
|
return e > 0 && t > 0 && t < e;
|
|
10086
10089
|
}), 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(() => ys(t.value)), _e = r(() => bs(t.value)), ve = r(() => xs(t.value)), ye = r(() => $(t.value).filterOptionsSortDescription), be = r(() => $(t.value).filterOptionsSortTooltip), xe = r(() => {
|
|
10087
10090
|
let e = $(t.value).filterSearch;
|
|
10088
10091
|
return typeof e == "boolean" ? e : $(t.value).dataType !== ps.Boolean;
|
|
10089
|
-
}), Se = r(() => $(t.value).emptyFilterResultsRenderer), Ce = r(() => $(t.value).filterOptionsLoadingText), we = r(() => $(t.value).filterOptionsRenderer), Te = r(() => $(t.value).filterHeaderRenderer), Ee = r(() => $(t.value).filterFooterRenderer), De = r(() => _e.value ? W.value.length >= _e.value : !1), Oe = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), ke = r(() =>
|
|
10092
|
+
}), Se = r(() => $(t.value).emptyFilterResultsRenderer), Ce = r(() => $(t.value).filterOptionsLoadingText), we = r(() => $(t.value).filterOptionsRenderer), Te = r(() => $(t.value).filterHeaderRenderer), Ee = r(() => $(t.value).filterFooterRenderer), De = r(() => _e.value ? W.value.length >= _e.value : !1), Oe = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), ke = r(() => ce.value ? void 0 : te.value[J.value]), Ae = r(() => ce.value ? !1 : z.value[J.value]), Z = r(() => Ds(t.value)), je = () => new Set([J.value, ...Ts(t.value)]), Me = (e, t) => {
|
|
10090
10093
|
let n = new Set(e), r = new Set(t);
|
|
10091
10094
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
10092
10095
|
}, Ne = k([]), Pe = k("[]"), Fe = r(() => ae.value.length === 1 && ae.value[0] === null && W.value.length === 0), Ie = (e = !1) => {
|
|
@@ -10276,7 +10279,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10276
10279
|
colDef: t.value,
|
|
10277
10280
|
field: J.value,
|
|
10278
10281
|
filterModel: p.value ?? void 0,
|
|
10279
|
-
query:
|
|
10282
|
+
query: K.value || void 0,
|
|
10280
10283
|
offset: r,
|
|
10281
10284
|
parentId: i,
|
|
10282
10285
|
reason: "child-load-more"
|
|
@@ -10306,7 +10309,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10306
10309
|
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !Ye(e)).map(ft);
|
|
10307
10310
|
}), mt = (e) => {
|
|
10308
10311
|
let t = e.children;
|
|
10309
|
-
t?.length && (t = t.filter((t) => !
|
|
10312
|
+
t?.length && (t = t.filter((t) => !le.value || ze(t, e.id)).map((e) => mt(e)));
|
|
10310
10313
|
let n = (e.children ?? []).some((t) => ze(t, e.id));
|
|
10311
10314
|
return {
|
|
10312
10315
|
...e,
|
|
@@ -10318,7 +10321,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10318
10321
|
};
|
|
10319
10322
|
}, ht = (e) => Z.value ? ze(e, null) : W.value.includes(e.id), gt = r(() => {
|
|
10320
10323
|
let e = pt.value;
|
|
10321
|
-
return
|
|
10324
|
+
return ce.value ? e.filter((e) => !le.value || ht(e)).map((e) => mt(e)) : e;
|
|
10322
10325
|
}), _t = r({
|
|
10323
10326
|
get: () => Z.value ? [] : W.value.map((e) => {
|
|
10324
10327
|
let t = y(J.value, e), n = Ue(t), r = n ? Ze(n) : void 0;
|
|
@@ -10462,7 +10465,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10462
10465
|
});
|
|
10463
10466
|
}, bt = r(() => Y.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
10464
10467
|
xt = !0;
|
|
10465
|
-
let n =
|
|
10468
|
+
let n = K.value || "";
|
|
10466
10469
|
Yl(() => {
|
|
10467
10470
|
Jl("filter_bulk_action", {
|
|
10468
10471
|
filter_name: fe.value,
|
|
@@ -10483,7 +10486,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10483
10486
|
source: n,
|
|
10484
10487
|
current_selection_count: r,
|
|
10485
10488
|
location: bt.value,
|
|
10486
|
-
search_query:
|
|
10489
|
+
search_query: K.value || ""
|
|
10487
10490
|
}, c());
|
|
10488
10491
|
}, Tt = (e) => {
|
|
10489
10492
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
@@ -10547,7 +10550,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10547
10550
|
}, At = () => {
|
|
10548
10551
|
he.value = Be(w(J.value)), X.value = !0;
|
|
10549
10552
|
}, jt = () => {
|
|
10550
|
-
X.value = !1, he.value = [],
|
|
10553
|
+
X.value = !1, he.value = [], K.value = "", xt = !1, !o?.value && j.value && !Y.value && (Z.value ? Pt(Ne.value, { skipIfUnchanged: !0 }) : yt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
10551
10554
|
}, Mt = async (e) => {
|
|
10552
10555
|
if (!l.value) return;
|
|
10553
10556
|
let n = ae.value.length, r = !e.parentId;
|
|
@@ -10600,7 +10603,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10600
10603
|
U(Ne, (e) => {
|
|
10601
10604
|
Z.value && (ut(e), !(j.value && !Y.value) && Pt(e));
|
|
10602
10605
|
}, { deep: !0 }), U(() => O.value[J.value], (e) => {
|
|
10603
|
-
!e || X.value ||
|
|
10606
|
+
!e || X.value || se.value || G.value && Ve(!0);
|
|
10604
10607
|
}), U(() => h.value, () => {
|
|
10605
10608
|
if (Y.value) {
|
|
10606
10609
|
if (ie.value) {
|
|
@@ -10635,10 +10638,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10635
10638
|
}), U(() => l.value, (e) => {
|
|
10636
10639
|
e && x.value && !X.value && (O.value[J.value] = !0);
|
|
10637
10640
|
}, { immediate: !0 }), U(() => H.value, async () => {
|
|
10638
|
-
|
|
10641
|
+
G.value && !se.value && !X.value && (Y.value ? setTimeout(async () => {
|
|
10639
10642
|
X.value || await Ve(!0);
|
|
10640
10643
|
}, 2e3) : await Ve(!0)), Ie();
|
|
10641
|
-
}), pe(() =>
|
|
10644
|
+
}), pe(() => K.value, async () => {
|
|
10642
10645
|
if (X.value) {
|
|
10643
10646
|
if (ue.value) {
|
|
10644
10647
|
f(J.value);
|
|
@@ -10661,20 +10664,20 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10661
10664
|
}, c());
|
|
10662
10665
|
});
|
|
10663
10666
|
}, Bt = null;
|
|
10664
|
-
return pe(() =>
|
|
10665
|
-
if (!e ||
|
|
10667
|
+
return pe(() => K.value, (e) => {
|
|
10668
|
+
if (!e || K.value !== e || ue.value) {
|
|
10666
10669
|
Bt = null;
|
|
10667
10670
|
return;
|
|
10668
10671
|
}
|
|
10669
|
-
if (
|
|
10672
|
+
if (oe.value) {
|
|
10670
10673
|
Bt = e;
|
|
10671
10674
|
return;
|
|
10672
10675
|
}
|
|
10673
10676
|
zt(e);
|
|
10674
|
-
}, { debounce: 500 }), U(() =>
|
|
10677
|
+
}, { debounce: 500 }), U(() => oe.value, (e) => {
|
|
10675
10678
|
if (e || Bt == null) return;
|
|
10676
10679
|
let t = Bt;
|
|
10677
|
-
Bt = null,
|
|
10680
|
+
Bt = null, K.value === t && zt(t);
|
|
10678
10681
|
}), T(() => {
|
|
10679
10682
|
P(J.value);
|
|
10680
10683
|
let e = Ts(t.value);
|
|
@@ -10691,9 +10694,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
10691
10694
|
}), {
|
|
10692
10695
|
selectedValues: W,
|
|
10693
10696
|
filterValues: ae,
|
|
10694
|
-
isLoading:
|
|
10697
|
+
isLoading: oe,
|
|
10695
10698
|
isSeeMoreLoading: me,
|
|
10696
|
-
filterSearchText:
|
|
10699
|
+
filterSearchText: K,
|
|
10697
10700
|
filterSearchMinLength: q,
|
|
10698
10701
|
belowFilterSearchMinLength: ue,
|
|
10699
10702
|
rowsLoading: re,
|
|
@@ -11030,7 +11033,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11030
11033
|
"handle-settings-icon"
|
|
11031
11034
|
],
|
|
11032
11035
|
setup(e, { emit: n }) {
|
|
11033
|
-
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: z, isSingleSelect: te, suggestedValues: B, displayedFilterValues: ne, selectedFilterValues: V, showSearchBar: re, filterSearchPlaceholder: H, emptyFilterResultsRenderer: ie, filterOptionsLoadingText: U, filterOptionsRenderer: ae, filterHeaderRenderer:
|
|
11036
|
+
let d = e, f = n, g = k(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: E, filterSearchMinLength: O, belowFilterSearchMinLength: j, rowsLoading: M, gridApi: ee, filterField: F, filterDisplayName: I, isInFilterPanel: z, isSingleSelect: te, suggestedValues: B, displayedFilterValues: ne, selectedFilterValues: V, showSearchBar: re, filterSearchPlaceholder: H, emptyFilterResultsRenderer: ie, filterOptionsLoadingText: U, filterOptionsRenderer: ae, filterHeaderRenderer: oe, filterFooterRenderer: G, filterOptionsSortDescription: se, filterOptionsSortTooltip: ce, filterValueContext: le, formatDisplayValue: K, 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 } = Gd({
|
|
11034
11037
|
filterColDef: L(d, "filterColDef"),
|
|
11035
11038
|
filterStyle: L(d, "filterStyle"),
|
|
11036
11039
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
@@ -11109,7 +11112,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11109
11112
|
return we(Ae(e), t);
|
|
11110
11113
|
}, ze = r(() => S.value > 0 ? !0 : ye.value ? be.value.length > 0 : C.value.length > 0);
|
|
11111
11114
|
return (n, r) => (D(), o(t, null, [s("div", null, [R(z) && R(C).length > 0 ? (D(), o("ul", Qd, [(D(!0), o(t, null, A(R(C), (n) => (D(), o(t, { key: `${R(I)}-${n}` }, [R(ue)(n) ? a("", !0) : (D(), o("li", $d, [u(_c, {
|
|
11112
|
-
label: R(
|
|
11115
|
+
label: R(K)(n) || "",
|
|
11113
11116
|
showClear: !e.readOnly && (!Re(n) || R(De)()),
|
|
11114
11117
|
disabled: e.readOnly,
|
|
11115
11118
|
onHandleClose: (e) => Z(n)
|
|
@@ -11193,16 +11196,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11193
11196
|
"use-teleport": !0,
|
|
11194
11197
|
style: { "--max-width": "200px" }
|
|
11195
11198
|
}, c({
|
|
11196
|
-
trigger: W(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", R(
|
|
11199
|
+
trigger: W(() => [s("p", { class: y(["pv-text-subdued pv-text-body-xxs", R(ce) ? "suggested-title-label" : ""]) }, P(R(se)), 3)]),
|
|
11197
11200
|
_: 2
|
|
11198
|
-
}, [R(
|
|
11201
|
+
}, [R(ce) ? {
|
|
11199
11202
|
name: "content",
|
|
11200
|
-
fn: W(() => [l(P(R(
|
|
11203
|
+
fn: W(() => [l(P(R(ce)), 1)]),
|
|
11201
11204
|
key: "0"
|
|
11202
11205
|
} : void 0]), 1024)])]),
|
|
11203
11206
|
_: 2
|
|
11204
11207
|
}, [
|
|
11205
|
-
R(
|
|
11208
|
+
R(oe) || Me.value || R(j) ? {
|
|
11206
11209
|
name: "header",
|
|
11207
11210
|
fn: W((t) => [
|
|
11208
11211
|
R(j) ? (D(), o("p", ef, " Type " + P(R(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
@@ -11213,7 +11216,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11213
11216
|
class: "pv-stack-8",
|
|
11214
11217
|
"filter-col-def": e.filterColDef
|
|
11215
11218
|
}, null, 8, ["filter-col-def"])) : a("", !0),
|
|
11216
|
-
R(
|
|
11219
|
+
R(oe) ? (D(), i(N(R(oe)), b(_({ key: 2 }, t)), null, 16)) : a("", !0)
|
|
11217
11220
|
]),
|
|
11218
11221
|
key: "0"
|
|
11219
11222
|
} : void 0,
|
|
@@ -11222,9 +11225,9 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11222
11225
|
fn: W((e) => [(D(), i(N(R(ie)), b(p(e)), null, 16))]),
|
|
11223
11226
|
key: "1"
|
|
11224
11227
|
} : void 0,
|
|
11225
|
-
R(
|
|
11228
|
+
R(G) ? {
|
|
11226
11229
|
name: "footer",
|
|
11227
|
-
fn: W((e) => [(D(), i(N(R(
|
|
11230
|
+
fn: W((e) => [(D(), i(N(R(G)), b(p(e)), null, 16))]),
|
|
11228
11231
|
key: "2"
|
|
11229
11232
|
} : void 0
|
|
11230
11233
|
]), 1032, /* @__PURE__ */ "modelValue.disabled.searchInput.selectionState.data-horizontal-filter-field.label.rumFilterName.icon.variant.counterPosition.singleSelect.menuActionsVariant.disableSearchInput.searchPlaceholder.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.loadingText.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), R(z) && !e.readOnly ? (D(), o("div", rf, [R(B).length > 0 ? (D(), o("div", af, [s("ul", of, [u(R(aa), {
|
|
@@ -11235,11 +11238,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11235
11238
|
"use-teleport": !0,
|
|
11236
11239
|
style: { "--max-width": "200px" }
|
|
11237
11240
|
}, c({
|
|
11238
|
-
trigger: W(() => [s("li", sf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", R(
|
|
11241
|
+
trigger: W(() => [s("li", sf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", R(ce) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11239
11242
|
_: 2
|
|
11240
|
-
}, [R(
|
|
11243
|
+
}, [R(ce) ? {
|
|
11241
11244
|
name: "content",
|
|
11242
|
-
fn: W(() => [l(P(R(
|
|
11245
|
+
fn: W(() => [l(P(R(ce)), 1)]),
|
|
11243
11246
|
key: "0"
|
|
11244
11247
|
} : void 0]), 1024), (D(!0), o(t, null, A(R(B).filter((e) => e !== "" && e != null).slice(0, cf), (e) => (D(), o("li", {
|
|
11245
11248
|
key: `${R(I)}-${e}-suggest`,
|
|
@@ -11250,8 +11253,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11250
11253
|
}
|
|
11251
11254
|
}, [u(R(Dc), {
|
|
11252
11255
|
disabled: R(w),
|
|
11253
|
-
label: R(
|
|
11254
|
-
onHandleClick: (t) => R(de)(e, R(
|
|
11256
|
+
label: R(K)(e) || "",
|
|
11257
|
+
onHandleClick: (t) => R(de)(e, R(le)(R(F), e)?.colField)
|
|
11255
11258
|
}, null, 8, [
|
|
11256
11259
|
"disabled",
|
|
11257
11260
|
"label",
|
|
@@ -11358,12 +11361,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11358
11361
|
}
|
|
11359
11362
|
}, { clearAllFocuses: U } = Hu(), ae = () => {
|
|
11360
11363
|
n.value && (C(), g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, U(), j.value = !1);
|
|
11361
|
-
}, G = () => {
|
|
11362
|
-
O.value = !1, M.value = "";
|
|
11363
|
-
}, K = () => {
|
|
11364
|
-
b(), C(), g.value = null, G();
|
|
11365
11364
|
}, oe = () => {
|
|
11366
|
-
|
|
11365
|
+
O.value = !1, M.value = "";
|
|
11366
|
+
}, G = () => {
|
|
11367
|
+
b(), C(), g.value = null, oe();
|
|
11368
|
+
}, se = () => {
|
|
11369
|
+
b(), re.value && n.value && (S(), f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, oe();
|
|
11367
11370
|
};
|
|
11368
11371
|
return (r, c) => (D(), o(t, null, [s("div", {
|
|
11369
11372
|
class: "pv-flex",
|
|
@@ -11417,7 +11420,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11417
11420
|
"onUpdate:modelValue": c[9] ||= (e) => O.value = e,
|
|
11418
11421
|
class: "pv-drawer pv-surface",
|
|
11419
11422
|
"close-on-click-outside": !0,
|
|
11420
|
-
onClickOutside: c[10] ||= (e) =>
|
|
11423
|
+
onClickOutside: c[10] ||= (e) => se(),
|
|
11421
11424
|
style: {
|
|
11422
11425
|
"max-width": "450px",
|
|
11423
11426
|
"z-index": "10"
|
|
@@ -11426,7 +11429,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11426
11429
|
header: W(() => [s("div", uf, [s("p", df, "All Filters (" + P(z.value.length) + ")", 1), s("button", {
|
|
11427
11430
|
class: "pv-button-ghost",
|
|
11428
11431
|
"aria-label": "Close",
|
|
11429
|
-
onClick: c[2] ||= (e) =>
|
|
11432
|
+
onClick: c[2] ||= (e) => G()
|
|
11430
11433
|
}, [u(R(Hn), { name: "close" })])]), u(R(Da), {
|
|
11431
11434
|
modelValue: M.value,
|
|
11432
11435
|
"onUpdate:modelValue": c[3] ||= (e) => M.value = e,
|
|
@@ -11436,7 +11439,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11436
11439
|
key: 1,
|
|
11437
11440
|
variant: "ghost",
|
|
11438
11441
|
label: "Close",
|
|
11439
|
-
onClick: c[8] ||= (e) =>
|
|
11442
|
+
onClick: c[8] ||= (e) => G()
|
|
11440
11443
|
})) : (D(), o(t, { key: 0 }, [s("button", {
|
|
11441
11444
|
class: "pv-button-ghost",
|
|
11442
11445
|
"data-dd-action-name": "Clear all page filters",
|
|
@@ -11445,13 +11448,13 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11445
11448
|
variant: "ghost",
|
|
11446
11449
|
label: "Cancel",
|
|
11447
11450
|
"data-dd-action-name": "Cancel filter changes",
|
|
11448
|
-
onClick: c[6] ||= (e) =>
|
|
11451
|
+
onClick: c[6] ||= (e) => G()
|
|
11449
11452
|
}), re.value ? (D(), i(R(Kn), {
|
|
11450
11453
|
key: 0,
|
|
11451
11454
|
variant: "primary",
|
|
11452
11455
|
label: "Apply",
|
|
11453
11456
|
"data-dd-action-name": "Apply filters",
|
|
11454
|
-
onClick: c[7] ||= (e) =>
|
|
11457
|
+
onClick: c[7] ||= (e) => se()
|
|
11455
11458
|
})) : (D(), i(R(Kn), {
|
|
11456
11459
|
key: 1,
|
|
11457
11460
|
variant: "primary",
|
|
@@ -11603,7 +11606,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11603
11606
|
icon: h.value || void 0,
|
|
11604
11607
|
label: p.value || "",
|
|
11605
11608
|
staticLabel: !0,
|
|
11606
|
-
onClick: t[1] ||=
|
|
11609
|
+
onClick: t[1] ||= G(() => {}, ["stop"])
|
|
11607
11610
|
}, null, 8, [
|
|
11608
11611
|
"modelValue",
|
|
11609
11612
|
"options",
|
|
@@ -11625,7 +11628,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11625
11628
|
size: 12,
|
|
11626
11629
|
name: "info-circle",
|
|
11627
11630
|
class: "pv-text-subdued",
|
|
11628
|
-
onClick: t[2] ||=
|
|
11631
|
+
onClick: t[2] ||= G(() => {}, ["stop"])
|
|
11629
11632
|
})]),
|
|
11630
11633
|
content: W(() => [s("div", Sf, P(g.value), 1)]),
|
|
11631
11634
|
_: 1
|
|
@@ -11644,7 +11647,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11644
11647
|
variant: "ghost",
|
|
11645
11648
|
"left-icon": "menu",
|
|
11646
11649
|
ariaLabel: "Column menu",
|
|
11647
|
-
onClick:
|
|
11650
|
+
onClick: G(L, ["stop", "prevent"])
|
|
11648
11651
|
})], 4)])) : a("", !0)], 6));
|
|
11649
11652
|
}
|
|
11650
11653
|
}), [["__scopeId", "data-v-ec17105d"]]), Tf = {
|
|
@@ -11733,7 +11736,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
11733
11736
|
class: "pv-icon-24"
|
|
11734
11737
|
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Af, [s("button", {
|
|
11735
11738
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
11736
|
-
onClick:
|
|
11739
|
+
onClick: G(i, ["prevent"]),
|
|
11737
11740
|
disabled: r.value
|
|
11738
11741
|
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, jf)])]));
|
|
11739
11742
|
}
|
|
@@ -12144,11 +12147,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12144
12147
|
return Array.from(new Set([
|
|
12145
12148
|
...t,
|
|
12146
12149
|
...n?.queryColIds || [],
|
|
12147
|
-
...t.flatMap((e) =>
|
|
12150
|
+
...t.flatMap((e) => G.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
12148
12151
|
]));
|
|
12149
12152
|
}, F = (e, t) => {
|
|
12150
12153
|
if (hd(e, t)) return !0;
|
|
12151
|
-
let n =
|
|
12154
|
+
let n = G.find((e) => Es(e) === t);
|
|
12152
12155
|
return !!n && N(n).some((t) => hd(e, t));
|
|
12153
12156
|
}, L = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
12154
12157
|
if (!fe.value) {
|
|
@@ -12219,7 +12222,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12219
12222
|
} : e.request.filterModel = s;
|
|
12220
12223
|
} else {
|
|
12221
12224
|
let t = e.request.filterModel;
|
|
12222
|
-
e.request.filterModel = gd(
|
|
12225
|
+
e.request.filterModel = gd(G, t, s);
|
|
12223
12226
|
}
|
|
12224
12227
|
e.success = (e) => {
|
|
12225
12228
|
if (J.value = !1, f.enableFocusView && mt.value.length > 0 && pt.value && e.rowData) {
|
|
@@ -12235,7 +12238,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12235
12238
|
}, f.serverSideRowHandler?.(e);
|
|
12236
12239
|
} } : null, z = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
12237
12240
|
let t = [], n = { ...rt.value };
|
|
12238
|
-
t = !ue.value &&
|
|
12241
|
+
t = !ue.value && le ? Md(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await lt(e.colDef, {
|
|
12239
12242
|
api: e.api,
|
|
12240
12243
|
filterModel: n,
|
|
12241
12244
|
useStaged: !1
|
|
@@ -12284,12 +12287,12 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12284
12287
|
let t = e.column?.getColId();
|
|
12285
12288
|
if (e.column && Et(e.column) && (t = vt.value?.getColId() || ""), !Kt(t)) {
|
|
12286
12289
|
let n = e.api.getColumn(t)?.getColDef();
|
|
12287
|
-
n && (
|
|
12290
|
+
n && (K.value = n, v(() => {
|
|
12288
12291
|
Kt(t);
|
|
12289
12292
|
}));
|
|
12290
12293
|
}
|
|
12291
12294
|
}
|
|
12292
|
-
}, H = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "",
|
|
12295
|
+
}, H = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "", oe = (e, t) => {
|
|
12293
12296
|
if (!e) return null;
|
|
12294
12297
|
let n = { ...e }, r = t, i = Ts(e);
|
|
12295
12298
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
@@ -12306,16 +12309,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12306
12309
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
12307
12310
|
}
|
|
12308
12311
|
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === ps.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === ps.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === ps.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === ps.Tag && !e.cellRenderer && (n.cellRenderer = Ff), n;
|
|
12309
|
-
},
|
|
12312
|
+
}, G = f.colDefs?.map((e) => {
|
|
12310
12313
|
let t = { ...e };
|
|
12311
12314
|
L && z && _d(e) && (t = vd(e, z));
|
|
12312
12315
|
let n = e.context;
|
|
12313
|
-
return n && (t =
|
|
12314
|
-
}).filter((e) => e != null) || [],
|
|
12315
|
-
for (let e of
|
|
12316
|
-
let
|
|
12316
|
+
return n && (t = oe(t, n)), t;
|
|
12317
|
+
}).filter((e) => e != null) || [], se = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
12318
|
+
for (let e of G) for (let t of Ts(e)) se.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
12319
|
+
let ce = G.some((e) => e.context?.visibilityState !== void 0), le = ud(f.initialGridState, G, f.enableAdvancedFilter), K = k(null), q = k([]), ue = m(su, k(!1)), J = k(!1), de = r(() => {
|
|
12317
12320
|
if (q.value.length > 0) {
|
|
12318
|
-
let e = q.value[0], t =
|
|
12321
|
+
let e = q.value[0], t = G.find((t) => t.field === e), n = rt.value, r = !n;
|
|
12319
12322
|
if (!r && Rd(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
12320
12323
|
}
|
|
12321
12324
|
return null;
|
|
@@ -12347,8 +12350,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12347
12350
|
deep: !0,
|
|
12348
12351
|
debounce: 250
|
|
12349
12352
|
});
|
|
12350
|
-
let ft = k(null), pt = r(() => nt?.computedFocusType.value || null), mt = r(() => nt?.computedFocuses.value || []), ht = r(() =>
|
|
12351
|
-
O(Xl, Q), O(Zl, nt), O(Ql, Ie), O($l, X), O(eu, ft), O(tu,
|
|
12353
|
+
let ft = k(null), pt = r(() => nt?.computedFocusType.value || null), mt = r(() => nt?.computedFocuses.value || []), ht = r(() => G.filter((e) => e.filter)), gt = r(() => G.filter((e) => e.enableRowGroup)), _t = r(() => G.filter((e) => e.aggFunc)), vt = k(null), yt = k({}), bt = k(1), xt = k(0);
|
|
12354
|
+
O(Xl, Q), O(Zl, nt), O(Ql, Ie), O($l, X), O(eu, ft), O(tu, K), O(nu, ht), O(ru, gt), O(iu, q), O(au, vt), O(ou, yt), O(su, ue), O(cu, J), O(lu, bt), O(uu, xt), O(Cu, r(() => f.enableAdvancedFilter));
|
|
12352
12355
|
let St = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !mt.value.length && !pt.value ? f.rowData : vs(f.rowData, pt.value, mt.value));
|
|
12353
12356
|
U(() => mt.value, (e) => {
|
|
12354
12357
|
A("focus-update", {
|
|
@@ -12357,17 +12360,17 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12357
12360
|
});
|
|
12358
12361
|
}), U(M, (e) => {
|
|
12359
12362
|
if (!X.value) return;
|
|
12360
|
-
let t =
|
|
12363
|
+
let t = G.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
12361
12364
|
t.length > 0 && X.value.setColumnsVisible(t, e);
|
|
12362
12365
|
});
|
|
12363
12366
|
let Ct = (e) => {
|
|
12364
12367
|
X.value = e.api;
|
|
12365
|
-
let t = q.value.find((e) => !
|
|
12368
|
+
let t = q.value.find((e) => !G.find((t) => t.field === e)?.hide), n = !t && q.value.length > 0 ? G.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
12366
12369
|
if (f.hideAllRowGroupedColumns && q.value.forEach((e) => i.push(e)), r) {
|
|
12367
12370
|
let t = e.api.getColumn(r);
|
|
12368
12371
|
vt.value = t, i.push(r), Zt(t?.getColDef());
|
|
12369
12372
|
}
|
|
12370
|
-
|
|
12373
|
+
le ? tn(le) : rt.value && It(rt.value), it.value && Lt(it.value), e.api.setColumnsVisible([...i], !1), ft.value = [...e.api.getAllGridColumns()], bt.value = e.api.paginationGetCurrentPage() + 1, xt.value = e.api.paginationGetTotalPages(), A("grid-ready", e);
|
|
12371
12374
|
}, wt = (e) => {
|
|
12372
12375
|
if (X.value) {
|
|
12373
12376
|
let t = Ft();
|
|
@@ -12388,7 +12391,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12388
12391
|
X.value.refreshServerSide(t);
|
|
12389
12392
|
};
|
|
12390
12393
|
function kt(e) {
|
|
12391
|
-
return e?.hydrate ? Q.hydrateSelectedFilterMetadata(
|
|
12394
|
+
return e?.hydrate ? Q.hydrateSelectedFilterMetadata(G) : ct.value;
|
|
12392
12395
|
}
|
|
12393
12396
|
let At = async () => {
|
|
12394
12397
|
if (Dt.value = !0, !X.value) return console.error("Grid API not available"), Dt.value = !1, null;
|
|
@@ -12483,7 +12486,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12483
12486
|
v(() => {
|
|
12484
12487
|
let t = vt.value, n = e.api.getRowGroupColumns(), r = n.length > 0, i;
|
|
12485
12488
|
if (r && f.leftPinnedColumnName && (i = e.api.getColumn(f.leftPinnedColumnName || "")), r && !f.leftPinnedColumnName && (i = n.find((e) => !e.getColDef().hide), !i)) {
|
|
12486
|
-
let t =
|
|
12489
|
+
let t = G.find((e) => !e.hide && !e.rowGroup)?.field;
|
|
12487
12490
|
t && (i = e.api.getColumn(t));
|
|
12488
12491
|
}
|
|
12489
12492
|
i ? (vt.value = i, Zt(i.getColDef()), e.api.setColumnsVisible([i.getColId()], !1)) : (vt.value = null, Zt(null));
|
|
@@ -12574,7 +12577,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12574
12577
|
"rowUnGroup"
|
|
12575
12578
|
], n = e.column && Et(e.column) ? vt.value : e.column;
|
|
12576
12579
|
return !f.enableInlineFilters && n && n.getColDef().filter && t.splice(2, 0, re), t.filter((t) => typeof t == "string" ? e.defaultItems.includes(t) : !0);
|
|
12577
|
-
},
|
|
12580
|
+
}, le && (rt.value = (f.enableAdvancedFilter ? le.filter?.advancedFilterModel : le.filter?.filterModel) || null, q.value = le.rowGroup?.groupColIds || []);
|
|
12578
12581
|
});
|
|
12579
12582
|
let tn = (e) => {
|
|
12580
12583
|
let t = X.value;
|
|
@@ -12582,14 +12585,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12582
12585
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
12583
12586
|
n && !Dd(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r, q.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
12584
12587
|
let a = e.columnOrder?.orderedColIds;
|
|
12585
|
-
|
|
12588
|
+
ce && a?.length && (ot(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
12586
12589
|
state: a.map((e) => ({ colId: e })),
|
|
12587
12590
|
applyOrder: !0
|
|
12588
12591
|
}));
|
|
12589
12592
|
};
|
|
12590
12593
|
U(() => f.initialGridState, () => {
|
|
12591
12594
|
if (f.initialGridState) {
|
|
12592
|
-
let e = ud(f.initialGridState,
|
|
12595
|
+
let e = ud(f.initialGridState, G, f.enableAdvancedFilter);
|
|
12593
12596
|
e && tn(e);
|
|
12594
12597
|
}
|
|
12595
12598
|
}, { deep: !0 });
|
|
@@ -12746,7 +12749,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12746
12749
|
onUndoStarted: r[10] ||= (e) => A("undo-started", e),
|
|
12747
12750
|
aggFuncs: en,
|
|
12748
12751
|
autoGroupColumnDef: Xt.value,
|
|
12749
|
-
columnDefs: R(
|
|
12752
|
+
columnDefs: R(G),
|
|
12750
12753
|
debug: e.debugMode,
|
|
12751
12754
|
defaultColDef: R(B),
|
|
12752
12755
|
fullWidthCellRenderer: qt.value,
|
|
@@ -12757,7 +12760,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12757
12760
|
getRowStyle: Qt,
|
|
12758
12761
|
groupDefaultExpanded: an.value,
|
|
12759
12762
|
groupDisplayType: "singleColumn",
|
|
12760
|
-
initialState: R(
|
|
12763
|
+
initialState: R(le) || void 0,
|
|
12761
12764
|
isFullWidthRow: f.isFullWidthRow,
|
|
12762
12765
|
isGroupOpenByDefault: R(L) ? void 0 : f.isClientSideGroupOpenByDefault,
|
|
12763
12766
|
isServerSideGroupOpenByDefault: rn,
|
|
@@ -12805,10 +12808,10 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12805
12808
|
}), qf = ["id"], Jf = {
|
|
12806
12809
|
key: 0,
|
|
12807
12810
|
class: "sort-divider-container"
|
|
12808
|
-
}, Yf = ["data-label"], Xf = ["onDrop"], Zf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Qf = { class: "pv-text-body-sm pv-text-tertiary" }, $f = { class: "pv-
|
|
12811
|
+
}, Yf = ["data-label"], Xf = ["onDrop"], Zf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, Qf = { class: "pv-text-body-sm pv-text-tertiary" }, $f = { class: "pv-text-body-sm" }, ep = {
|
|
12809
12812
|
key: 1,
|
|
12810
12813
|
class: "pv-button-placeholder"
|
|
12811
|
-
},
|
|
12814
|
+
}, tp = "--divider--", np = "placeholder-", rp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12812
12815
|
__name: "PvSortableList",
|
|
12813
12816
|
props: /* @__PURE__ */ g({
|
|
12814
12817
|
options: { default: () => [] },
|
|
@@ -12817,7 +12820,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12817
12820
|
showPlaceholders: {
|
|
12818
12821
|
type: Boolean,
|
|
12819
12822
|
default: !0
|
|
12820
|
-
}
|
|
12823
|
+
},
|
|
12824
|
+
lockedOptionIds: { default: () => [] }
|
|
12821
12825
|
}, {
|
|
12822
12826
|
modelValue: {
|
|
12823
12827
|
required: !1,
|
|
@@ -12827,141 +12831,144 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12827
12831
|
}),
|
|
12828
12832
|
emits: ["update:modelValue"],
|
|
12829
12833
|
setup(e) {
|
|
12830
|
-
let n = e, c = B(e, "modelValue"), l = {
|
|
12831
|
-
|
|
12834
|
+
let n = e, c = B(e, "modelValue"), l = (e) => n.lockedOptionIds.includes(e.id), d = (e) => {
|
|
12835
|
+
let t = c.value.filter(l), r = e.filter((e) => !l(e));
|
|
12836
|
+
return [...t, ...r].slice(0, n.activeOptionLimit || Infinity);
|
|
12837
|
+
}, f = {
|
|
12838
|
+
id: tp,
|
|
12832
12839
|
text: "",
|
|
12833
12840
|
disabled: !0
|
|
12834
|
-
},
|
|
12835
|
-
id: `${
|
|
12841
|
+
}, p = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), m = r(() => !n.showPlaceholders || p.value === 0 ? [] : Array.from({ length: p.value }, (e, t) => ({
|
|
12842
|
+
id: `${np}${t}`,
|
|
12836
12843
|
text: "",
|
|
12837
12844
|
disabled: !0,
|
|
12838
12845
|
isPlaceholder: !0
|
|
12839
|
-
}))),
|
|
12846
|
+
}))), h = r(() => {
|
|
12840
12847
|
let e = new Set(c.value.map((e) => e.id));
|
|
12841
12848
|
return [
|
|
12842
12849
|
...c.value,
|
|
12843
|
-
...
|
|
12844
|
-
|
|
12850
|
+
...m.value,
|
|
12851
|
+
f,
|
|
12845
12852
|
...n.options.filter((t) => !e.has(t.id))
|
|
12846
12853
|
];
|
|
12847
|
-
}),
|
|
12848
|
-
if (!
|
|
12849
|
-
let e = Array.from(
|
|
12850
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
12854
|
+
}), g = V("sortableListRef"), _ = V("containerRef"), v = null, b = null, S = !1, C = () => {
|
|
12855
|
+
if (!g.value) return c.value;
|
|
12856
|
+
let e = Array.from(g.value.children).map((e) => e.id), t = e.findIndex((e) => e === tp);
|
|
12857
|
+
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(np)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12851
12858
|
};
|
|
12852
12859
|
T(() => {
|
|
12853
|
-
|
|
12860
|
+
g.value && (v = new st(g.value, {
|
|
12854
12861
|
animation: 200,
|
|
12855
|
-
filter: `#${
|
|
12862
|
+
filter: `#${tp}, [id^="placeholder-"], .pv-sortable-locked`,
|
|
12856
12863
|
dragoverBubble: !0,
|
|
12857
12864
|
onStart: (e) => {
|
|
12858
|
-
|
|
12865
|
+
b = e.item, S = !1;
|
|
12859
12866
|
},
|
|
12860
12867
|
onMove: (e) => {
|
|
12861
12868
|
let t = e.related;
|
|
12862
|
-
if (t?.id?.startsWith(
|
|
12869
|
+
if (t?.id?.startsWith(np)) return !1;
|
|
12863
12870
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12864
|
-
if (!r) return !1;
|
|
12865
|
-
if (
|
|
12866
|
-
if (
|
|
12867
|
-
if (t?.id ===
|
|
12871
|
+
if (!r || n.options.find((e) => e.id === t?.id && l(e))) return !1;
|
|
12872
|
+
if (j(r)) return !0;
|
|
12873
|
+
if (M.value) return !1;
|
|
12874
|
+
if (t?.id === tp) return !0;
|
|
12868
12875
|
let i = n.options.find((e) => e.id === t?.id);
|
|
12869
|
-
return !!i &&
|
|
12876
|
+
return !!i && j(i);
|
|
12870
12877
|
},
|
|
12871
12878
|
onEnd: (e) => {
|
|
12872
|
-
if (
|
|
12873
|
-
|
|
12879
|
+
if (b = null, S) {
|
|
12880
|
+
S = !1;
|
|
12874
12881
|
return;
|
|
12875
12882
|
}
|
|
12876
|
-
let t =
|
|
12883
|
+
let t = g.value;
|
|
12877
12884
|
if (!t || !e.item || !t.contains(e.item)) return;
|
|
12878
|
-
let n =
|
|
12885
|
+
let n = d(C());
|
|
12879
12886
|
t.removeChild(e.item), t.insertBefore(e.item, t.children[e.oldIndex ?? t.children.length] ?? null);
|
|
12880
12887
|
let r = c.value.map((e) => e.id);
|
|
12881
12888
|
n.length === r.length && n.every((e, t) => e.id === r[t]) || (c.value = n);
|
|
12882
12889
|
}
|
|
12883
12890
|
}));
|
|
12884
12891
|
}), E(() => {
|
|
12885
|
-
|
|
12892
|
+
v &&= (v.destroy(), null);
|
|
12886
12893
|
});
|
|
12887
|
-
let
|
|
12888
|
-
e.preventDefault(),
|
|
12889
|
-
},
|
|
12894
|
+
let w = (e) => {
|
|
12895
|
+
e.preventDefault(), b && e.currentTarget.classList.add("placeholder-drag-over");
|
|
12896
|
+
}, O = (e) => {
|
|
12890
12897
|
e.currentTarget.classList.remove("placeholder-drag-over");
|
|
12891
|
-
},
|
|
12892
|
-
if (e.preventDefault(), e.currentTarget.classList.remove("placeholder-drag-over"),
|
|
12893
|
-
let e =
|
|
12894
|
-
if (r && !
|
|
12898
|
+
}, k = (e, t) => {
|
|
12899
|
+
if (e.preventDefault(), e.currentTarget.classList.remove("placeholder-drag-over"), b) {
|
|
12900
|
+
let e = b.id, r = n.options.find((t) => t.id === e);
|
|
12901
|
+
if (r && !j(r)) {
|
|
12895
12902
|
let e = [...c.value];
|
|
12896
|
-
e.splice(t - 1, 0, r), c.value = e
|
|
12903
|
+
e.splice(t - 1, 0, r), c.value = d(e), b.parentNode && b.parentNode.removeChild(b), S = !0;
|
|
12897
12904
|
}
|
|
12898
12905
|
}
|
|
12899
|
-
},
|
|
12900
|
-
if (
|
|
12906
|
+
}, j = (e) => c.value.some((t) => t.id === e.id), M = r(() => n.activeOptionLimit ? c.value.length >= n.activeOptionLimit : !1), N = (e) => {
|
|
12907
|
+
if (!l(e)) if (j(e)) c.value = c.value.filter((t) => t.id !== e.id);
|
|
12901
12908
|
else {
|
|
12902
12909
|
if (n.activeOptionLimit && c.value.length >= n.activeOptionLimit) return;
|
|
12903
12910
|
c.value = c.value.concat([e]);
|
|
12904
12911
|
}
|
|
12905
|
-
},
|
|
12912
|
+
}, ee = (e) => !j(e) && n.activeOptionLimit && c.value.length >= n.activeOptionLimit || e.disabled, F = (e) => {
|
|
12906
12913
|
let t = { padding: "4px 8px" };
|
|
12907
|
-
return
|
|
12908
|
-
},
|
|
12914
|
+
return j(e) && (t.backgroundColor = "var(--color-background-highlight, #E4F8F6)", t.borderColor = "var(--color-border-brand, #16696D)"), t;
|
|
12915
|
+
}, I = (e) => {
|
|
12909
12916
|
let t = {};
|
|
12910
|
-
return
|
|
12917
|
+
return ee(e) && (t.backgroundColor = "transparent"), !j(e) && !ee(e) ? t.color = "var(--color-text-brand, #16696D)" : t.color = "var(--color-text-quaternary, #89989B)", t;
|
|
12911
12918
|
};
|
|
12912
12919
|
return (e, r) => (D(), o("div", {
|
|
12913
12920
|
ref_key: "containerRef",
|
|
12914
|
-
ref:
|
|
12921
|
+
ref: _
|
|
12915
12922
|
}, [s("ul", {
|
|
12916
12923
|
ref_key: "sortableListRef",
|
|
12917
|
-
ref:
|
|
12924
|
+
ref: g,
|
|
12918
12925
|
role: "list"
|
|
12919
|
-
}, [(D(!0), o(t, null, A(
|
|
12926
|
+
}, [(D(!0), o(t, null, A(h.value, (e) => (D(), o("li", {
|
|
12920
12927
|
key: e.id,
|
|
12921
12928
|
id: e.id,
|
|
12922
12929
|
class: "pv-stack-4"
|
|
12923
|
-
}, [e.id ===
|
|
12930
|
+
}, [e.id === tp ? (D(), o("div", Jf, [s("div", {
|
|
12924
12931
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12925
|
-
"data-label":
|
|
12926
|
-
}, null, 8, Yf)])) : e.id.includes(
|
|
12932
|
+
"data-label": M.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12933
|
+
}, null, 8, Yf)])) : e.id.includes(np) ? (D(), o("div", {
|
|
12927
12934
|
key: 1,
|
|
12928
12935
|
class: "placeholder-zone",
|
|
12929
|
-
onDragover: r[0] ||= (e) =>
|
|
12930
|
-
onDragleave: r[1] ||= (e) =>
|
|
12931
|
-
onDrop: (t) =>
|
|
12936
|
+
onDragover: r[0] ||= (e) => w(e),
|
|
12937
|
+
onDragleave: r[1] ||= (e) => O(e),
|
|
12938
|
+
onDrop: (t) => k(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12932
12939
|
}, [s("div", Zf, [s("span", Qf, P(n.placeholderText), 1)])], 40, Xf)) : (D(), o("div", {
|
|
12933
12940
|
key: 2,
|
|
12934
|
-
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !
|
|
12935
|
-
style: x(
|
|
12936
|
-
}, [s("div",
|
|
12941
|
+
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", [!j(e) && M.value ? "pv-menu-item-disabled" : "", l(e) ? "pv-sortable-locked" : ""]]),
|
|
12942
|
+
style: x(F(e))
|
|
12943
|
+
}, [s("div", { class: y(["pv-flex pv-full-width pv-sort-option", { "pv-sort-option-locked": l(e) }]) }, [
|
|
12937
12944
|
u(Hn, {
|
|
12938
|
-
class: y(
|
|
12939
|
-
name: "reorder"
|
|
12940
|
-
}, null, 8, ["class"]),
|
|
12945
|
+
class: y(j(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12946
|
+
name: l(e) ? "lock" : "reorder"
|
|
12947
|
+
}, null, 8, ["class", "name"]),
|
|
12941
12948
|
e.icon ? (D(), i(Hn, {
|
|
12942
12949
|
key: 0,
|
|
12943
|
-
class: y(
|
|
12950
|
+
class: y(j(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12944
12951
|
name: e.icon
|
|
12945
12952
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12946
|
-
s("span",
|
|
12947
|
-
]),
|
|
12953
|
+
s("span", $f, P(e.text), 1)
|
|
12954
|
+
], 2), !ee(e) && !l(e) ? (D(), i(Kn, {
|
|
12948
12955
|
key: 0,
|
|
12949
|
-
"left-icon":
|
|
12950
|
-
ariaLabel:
|
|
12956
|
+
"left-icon": j(e) ? "remove-circle" : "add-circle",
|
|
12957
|
+
ariaLabel: j(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
12951
12958
|
variant: "ghost",
|
|
12952
|
-
style: x(
|
|
12953
|
-
onClick: (t) =>
|
|
12959
|
+
style: x(I(e)),
|
|
12960
|
+
onClick: (t) => N(e)
|
|
12954
12961
|
}, null, 8, [
|
|
12955
12962
|
"left-icon",
|
|
12956
12963
|
"ariaLabel",
|
|
12957
12964
|
"style",
|
|
12958
12965
|
"onClick"
|
|
12959
|
-
]))], 6))], 8, qf))), 128))], 512)], 512));
|
|
12966
|
+
])) : (D(), o("div", ep))], 6))], 8, qf))), 128))], 512)], 512));
|
|
12960
12967
|
}
|
|
12961
|
-
}), [["__scopeId", "data-v-
|
|
12968
|
+
}), [["__scopeId", "data-v-f9030e5e"]]), ip = {
|
|
12962
12969
|
class: "pv-flex pv-full-width pv-space-between",
|
|
12963
12970
|
style: { "white-space": "nowrap" }
|
|
12964
|
-
},
|
|
12971
|
+
}, ap = { class: "pv-text-body-md" }, op = /* @__PURE__ */ d({
|
|
12965
12972
|
inheritAttrs: !1,
|
|
12966
12973
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
12967
12974
|
props: {
|
|
@@ -12970,22 +12977,22 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
12970
12977
|
context: {}
|
|
12971
12978
|
},
|
|
12972
12979
|
setup(e) {
|
|
12973
|
-
return (t, n) => (D(), o("div",
|
|
12980
|
+
return (t, n) => (D(), o("div", ip, [s("span", ap, P(e.text), 1), e.context?.rightIcon ? (D(), i(Hn, {
|
|
12974
12981
|
key: 0,
|
|
12975
12982
|
name: e.context.rightIcon,
|
|
12976
12983
|
class: "pv-text-subdued"
|
|
12977
12984
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
12978
12985
|
}
|
|
12979
|
-
}),
|
|
12986
|
+
}), sp = { class: "pv-relative" }, cp = {
|
|
12980
12987
|
role: "list",
|
|
12981
12988
|
class: "pv-relative"
|
|
12982
|
-
},
|
|
12989
|
+
}, lp = ["data-active"], up = ["data-active"], dp = {
|
|
12983
12990
|
key: 2,
|
|
12984
12991
|
style: { cursor: "pointer" }
|
|
12985
|
-
},
|
|
12992
|
+
}, fp = {
|
|
12986
12993
|
key: 0,
|
|
12987
12994
|
role: "list"
|
|
12988
|
-
},
|
|
12995
|
+
}, pp = /* @__PURE__ */ d({
|
|
12989
12996
|
__name: "PvTableOptionsPanel",
|
|
12990
12997
|
props: {
|
|
12991
12998
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -13064,7 +13071,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13064
13071
|
previousHiddenColIds: r.hiddenColIds
|
|
13065
13072
|
});
|
|
13066
13073
|
};
|
|
13067
|
-
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div",
|
|
13074
|
+
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div", sp, [u(Va, {
|
|
13068
13075
|
open: v.value,
|
|
13069
13076
|
label: "Table Configuration",
|
|
13070
13077
|
icon: "settings",
|
|
@@ -13084,7 +13091,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13084
13091
|
"padding-top": "4px",
|
|
13085
13092
|
"padding-bottom": "12px"
|
|
13086
13093
|
}
|
|
13087
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
13094
|
+
}, " Table Configuration ")], -1), s("ul", cp, [
|
|
13088
13095
|
C.value ? (D(), o("li", {
|
|
13089
13096
|
key: 0,
|
|
13090
13097
|
id: "table-config-overlay",
|
|
@@ -13097,7 +13104,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13097
13104
|
icon: "layers-2",
|
|
13098
13105
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
13099
13106
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
13100
|
-
}, null, 8, ["class-list"])], 8,
|
|
13107
|
+
}, null, 8, ["class-list"])], 8, lp)) : a("", !0),
|
|
13101
13108
|
P.value ? (D(), o("li", {
|
|
13102
13109
|
key: 1,
|
|
13103
13110
|
id: "table-config-columns",
|
|
@@ -13110,8 +13117,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13110
13117
|
icon: "columns-3",
|
|
13111
13118
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
13112
13119
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
13113
|
-
}, null, 8, ["class-list"])], 8,
|
|
13114
|
-
F.value ? (D(), o("li",
|
|
13120
|
+
}, null, 8, ["class-list"])], 8, up)) : a("", !0),
|
|
13121
|
+
F.value ? (D(), o("li", dp, [u(Ao, {
|
|
13115
13122
|
config: { variant: "icon" },
|
|
13116
13123
|
id: "table-config-group-toggle",
|
|
13117
13124
|
class: "pv-text-subdued",
|
|
@@ -13132,11 +13139,11 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13132
13139
|
},
|
|
13133
13140
|
isList: b.value !== "columns"
|
|
13134
13141
|
}, {
|
|
13135
|
-
default: W(() => [b.value === "overlay" ? (D(), o("ul",
|
|
13142
|
+
default: W(() => [b.value === "overlay" ? (D(), o("ul", fp, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(Ao, {
|
|
13136
13143
|
id: e.id,
|
|
13137
13144
|
config: {
|
|
13138
13145
|
variant: "checkbox",
|
|
13139
|
-
renderer:
|
|
13146
|
+
renderer: op
|
|
13140
13147
|
},
|
|
13141
13148
|
text: e.text,
|
|
13142
13149
|
context: e.context,
|
|
@@ -13154,14 +13161,14 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13154
13161
|
class: "pv-inset-square-8",
|
|
13155
13162
|
role: "dialog",
|
|
13156
13163
|
"aria-label": "Column options",
|
|
13157
|
-
onKeydown: r[3] ||= G(
|
|
13164
|
+
onKeydown: r[3] ||= oe(G((e) => b.value = null, ["stop"]), ["esc"])
|
|
13158
13165
|
}, [r[5] ||= s("p", {
|
|
13159
13166
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13160
13167
|
style: {
|
|
13161
13168
|
"padding-left": "2px",
|
|
13162
13169
|
"padding-bottom": "6px"
|
|
13163
13170
|
}
|
|
13164
|
-
}, " Currently Viewing ", -1), u(
|
|
13171
|
+
}, " Currently Viewing ", -1), u(rp, {
|
|
13165
13172
|
modelValue: te.value,
|
|
13166
13173
|
options: z.value,
|
|
13167
13174
|
showPlaceholders: !1,
|
|
@@ -13174,18 +13181,18 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13174
13181
|
"isList"
|
|
13175
13182
|
])], 64)) : a("", !0);
|
|
13176
13183
|
}
|
|
13177
|
-
}),
|
|
13184
|
+
}), mp = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, hp = ["data-group-name"], gp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, _p = ["data-loading"], vp = { class: "pv-chart-chip-label pv-flex-item" }, yp = { class: "pv-chart-chip-value" }, bp = /* @__PURE__ */ d({
|
|
13178
13185
|
__name: "PvBenchmarkChips",
|
|
13179
13186
|
props: { sections: {} },
|
|
13180
13187
|
emits: ["chip-hover"],
|
|
13181
13188
|
setup(e, { emit: n }) {
|
|
13182
13189
|
let r = n;
|
|
13183
|
-
return (n, c) => (D(), o("div",
|
|
13190
|
+
return (n, c) => (D(), o("div", mp, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13184
13191
|
key: e.groupName,
|
|
13185
13192
|
"data-testid": "chip-section",
|
|
13186
13193
|
"data-group-name": e.groupName,
|
|
13187
13194
|
class: "pv-flex-vertical"
|
|
13188
|
-
}, [s("p",
|
|
13195
|
+
}, [s("p", gp, P(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13189
13196
|
key: e.key,
|
|
13190
13197
|
"data-testid": "benchmark-chip",
|
|
13191
13198
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -13212,8 +13219,8 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13212
13219
|
class: "pv-chart-benchmark-chip-accent",
|
|
13213
13220
|
style: x({ backgroundColor: e.color })
|
|
13214
13221
|
}, null, 4)) : a("", !0),
|
|
13215
|
-
s("span",
|
|
13216
|
-
s("span",
|
|
13222
|
+
s("span", vp, P(e.label), 1),
|
|
13223
|
+
s("span", yp, P(e.formattedValue), 1),
|
|
13217
13224
|
e.excludeFromCrossline ? (D(), i(R(aa), {
|
|
13218
13225
|
key: 1,
|
|
13219
13226
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -13236,16 +13243,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13236
13243
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
13237
13244
|
_: 1
|
|
13238
13245
|
})) : a("", !0)
|
|
13239
|
-
], 64))], 16,
|
|
13246
|
+
], 64))], 16, _p))), 128))], 8, hp))), 128))]));
|
|
13240
13247
|
}
|
|
13241
|
-
}),
|
|
13248
|
+
}), xp = (e) => e.field === "state" || $(e).dataType === ps.Location, Sp = (e) => e.filter(xp), Cp = (e, t, n) => {
|
|
13242
13249
|
if (!n || t.length === 0) return e;
|
|
13243
13250
|
let r = new Set(n(t).map((e) => e.field));
|
|
13244
13251
|
return e.filter((e) => r.has(e));
|
|
13245
|
-
},
|
|
13252
|
+
}, wp = (e) => e.filter((e) => !Ss(e)), Tp = (e) => e.filter((e) => Ss(e)), Ep = {
|
|
13246
13253
|
xAxis: {
|
|
13247
13254
|
selectMode: "sortable",
|
|
13248
|
-
filterColumns:
|
|
13255
|
+
filterColumns: wp
|
|
13249
13256
|
},
|
|
13250
13257
|
yAxis: {},
|
|
13251
13258
|
secondaryYAxis: {},
|
|
@@ -13254,16 +13261,16 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13254
13261
|
rowGroupLimit: 2,
|
|
13255
13262
|
supportsFocusView: !0,
|
|
13256
13263
|
storeBeforeChange: !0
|
|
13257
|
-
},
|
|
13264
|
+
}, Dp = [
|
|
13258
13265
|
{
|
|
13259
|
-
...
|
|
13266
|
+
...Ep,
|
|
13260
13267
|
id: "column",
|
|
13261
13268
|
text: "Column",
|
|
13262
13269
|
icon: "chart-column",
|
|
13263
13270
|
agChartType: "bar"
|
|
13264
13271
|
},
|
|
13265
13272
|
{
|
|
13266
|
-
...
|
|
13273
|
+
...Ep,
|
|
13267
13274
|
id: "bar",
|
|
13268
13275
|
text: "Bar",
|
|
13269
13276
|
icon: "chart-bar",
|
|
@@ -13271,28 +13278,28 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13271
13278
|
isHorizontal: !0
|
|
13272
13279
|
},
|
|
13273
13280
|
{
|
|
13274
|
-
...
|
|
13281
|
+
...Ep,
|
|
13275
13282
|
id: "line",
|
|
13276
13283
|
text: "Line",
|
|
13277
13284
|
icon: "chart-line",
|
|
13278
13285
|
agChartType: "line"
|
|
13279
13286
|
},
|
|
13280
13287
|
{
|
|
13281
|
-
...
|
|
13288
|
+
...Ep,
|
|
13282
13289
|
id: "area",
|
|
13283
13290
|
text: "Area",
|
|
13284
13291
|
icon: "chart-area",
|
|
13285
13292
|
agChartType: "area"
|
|
13286
13293
|
},
|
|
13287
13294
|
{
|
|
13288
|
-
...
|
|
13295
|
+
...Ep,
|
|
13289
13296
|
id: "column_stacked",
|
|
13290
13297
|
text: "Stacked Column",
|
|
13291
13298
|
icon: "chart-column-stacked",
|
|
13292
13299
|
agChartType: "bar"
|
|
13293
13300
|
},
|
|
13294
13301
|
{
|
|
13295
|
-
...
|
|
13302
|
+
...Ep,
|
|
13296
13303
|
id: "bar_stacked",
|
|
13297
13304
|
text: "Stacked Bar",
|
|
13298
13305
|
icon: "chart-bar-stacked",
|
|
@@ -13300,7 +13307,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13300
13307
|
isHorizontal: !0
|
|
13301
13308
|
},
|
|
13302
13309
|
{
|
|
13303
|
-
...
|
|
13310
|
+
...Ep,
|
|
13304
13311
|
id: "pie",
|
|
13305
13312
|
text: "Pie",
|
|
13306
13313
|
icon: "chart-pie",
|
|
@@ -13314,7 +13321,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13314
13321
|
icon: "chart-column",
|
|
13315
13322
|
xAxis: {
|
|
13316
13323
|
selectMode: "single",
|
|
13317
|
-
filterColumns:
|
|
13324
|
+
filterColumns: Tp,
|
|
13318
13325
|
hideLabel: !0
|
|
13319
13326
|
},
|
|
13320
13327
|
yAxis: {
|
|
@@ -13335,7 +13342,7 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13335
13342
|
icon: "map",
|
|
13336
13343
|
xAxis: {
|
|
13337
13344
|
selectMode: "single",
|
|
13338
|
-
filterColumns:
|
|
13345
|
+
filterColumns: Sp,
|
|
13339
13346
|
hideLabel: !0
|
|
13340
13347
|
},
|
|
13341
13348
|
yAxis: {},
|
|
@@ -13347,36 +13354,36 @@ var td = { style: { "line-height": "20px" } }, nd = { class: "pv-text-subdued pv
|
|
|
13347
13354
|
supportsFocusView: !1,
|
|
13348
13355
|
storeBeforeChange: !1
|
|
13349
13356
|
}
|
|
13350
|
-
],
|
|
13351
|
-
function
|
|
13352
|
-
return
|
|
13357
|
+
], Op = new Map(Dp.map((e) => [e.id, e])), kp = Op.get("column");
|
|
13358
|
+
function Ap(e) {
|
|
13359
|
+
return Op.get(e) || kp;
|
|
13353
13360
|
}
|
|
13354
13361
|
//#endregion
|
|
13355
13362
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionsPanel.vue?vue&type=script&setup=true&lang.ts
|
|
13356
|
-
var
|
|
13363
|
+
var jp = { class: "pv-stack-16 pv-chart-options-panel" }, Mp = { class: "pv-flex pv-relative" }, Np = [
|
|
13357
13364
|
"id",
|
|
13358
13365
|
"aria-label",
|
|
13359
13366
|
"onKeydown"
|
|
13360
|
-
],
|
|
13367
|
+
], Pp = {
|
|
13361
13368
|
role: "list",
|
|
13362
13369
|
class: "pv-popover-list pv-relative"
|
|
13363
|
-
},
|
|
13370
|
+
}, Fp = [
|
|
13364
13371
|
"id",
|
|
13365
13372
|
"data-active",
|
|
13366
13373
|
"data-dd-action-name",
|
|
13367
13374
|
"onMouseenter",
|
|
13368
13375
|
"onClick"
|
|
13369
|
-
],
|
|
13376
|
+
], Ip = { style: { "max-width": "100px" } }, Lp = {
|
|
13370
13377
|
key: 1,
|
|
13371
13378
|
class: "pv-flex"
|
|
13372
|
-
},
|
|
13379
|
+
}, Rp = {
|
|
13373
13380
|
key: 0,
|
|
13374
13381
|
class: "pv-inset-square-8"
|
|
13375
|
-
},
|
|
13382
|
+
}, zp = {
|
|
13376
13383
|
key: 1,
|
|
13377
13384
|
role: "list",
|
|
13378
13385
|
class: "pv-popover-list"
|
|
13379
|
-
},
|
|
13386
|
+
}, Bp = ["data-active"], Vp = "This metric isn’t available with the selected chart type.", Hp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
13380
13387
|
__name: "PvChartOptionsPanel",
|
|
13381
13388
|
props: {
|
|
13382
13389
|
enablePanel: { type: Boolean },
|
|
@@ -13388,6 +13395,8 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13388
13395
|
default: !1
|
|
13389
13396
|
},
|
|
13390
13397
|
chartConfigOptions: {},
|
|
13398
|
+
lockedRowGroupColIds: {},
|
|
13399
|
+
metricOverlayWithRowGroups: { type: Boolean },
|
|
13391
13400
|
readOnly: { type: Boolean },
|
|
13392
13401
|
percentOfFocusViewYKey: {}
|
|
13393
13402
|
},
|
|
@@ -13400,9 +13409,9 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13400
13409
|
maxHeight: "900px"
|
|
13401
13410
|
},
|
|
13402
13411
|
useTeleport: !0
|
|
13403
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(hu, k(void 0)), T = m(pu, k([])), E = m(gu, k(void 0)), O = m(mu, k([])), j = m(fu, k([])), M = m(ru, k([])), N = r(() =>
|
|
13412
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(hu, k(void 0)), T = m(pu, k([])), E = m(gu, k(void 0)), O = m(mu, k([])), j = m(fu, k([])), M = m(ru, k([])), N = r(() => Ap(w.value?.id || "")), ee = r(() => {
|
|
13404
13413
|
let e = w.value?.id ?? "";
|
|
13405
|
-
return j.value.length > 1 && !e.endsWith("_stacked");
|
|
13414
|
+
return j.value.length > 1 && !e.endsWith("_stacked") && !l.metricOverlayWithRowGroups;
|
|
13406
13415
|
}), F = m(_u, k("")), I = m(vu, k([])), L = m(yu, k(void 0)), z = m(bu, k([])), te = m(Su, k(!1)), B = m(xu, k([])), ne = m(wu, k(/* @__PURE__ */ new Set())), V = m(Tu, k([])), re = r(() => V.value.filter((e) => ne.value.has(e.id)).map((e) => ({
|
|
13407
13416
|
id: e.id,
|
|
13408
13417
|
text: e.label,
|
|
@@ -13414,13 +13423,13 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13414
13423
|
U(ee, (e) => {
|
|
13415
13424
|
e && L.value && (L.value = void 0), e && B.value.length > 0 && (B.value = []);
|
|
13416
13425
|
}, { immediate: !0 });
|
|
13417
|
-
let ie = m(du, k("")),
|
|
13426
|
+
let ie = m(du, k("")), se = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
13418
13427
|
label: e.label,
|
|
13419
13428
|
value: e.value
|
|
13420
|
-
})) : []),
|
|
13429
|
+
})) : []), ce = r(() => {
|
|
13421
13430
|
let e = j.value[0];
|
|
13422
13431
|
return e ? Ps(M.value.find((t) => t.field === e)) : !1;
|
|
13423
|
-
}),
|
|
13432
|
+
}), le = r(() => {
|
|
13424
13433
|
if (w.value) return (j.value.length > 1 ? [
|
|
13425
13434
|
"bar_stacked",
|
|
13426
13435
|
"line",
|
|
@@ -13449,10 +13458,10 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13449
13458
|
}
|
|
13450
13459
|
w.value = e[0];
|
|
13451
13460
|
});
|
|
13452
|
-
let
|
|
13461
|
+
let K = (e, t) => {
|
|
13453
13462
|
for (let n of e) {
|
|
13454
13463
|
if (n.id === t) return n;
|
|
13455
|
-
let e = n.children ?
|
|
13464
|
+
let e = n.children ? K(n.children, t) : void 0;
|
|
13456
13465
|
if (e) return e;
|
|
13457
13466
|
}
|
|
13458
13467
|
}, q = (e) => e.flatMap((e) => e.children?.length ? q(e.children) : e), ue = (e) => {
|
|
@@ -13466,7 +13475,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13466
13475
|
}
|
|
13467
13476
|
}, J = ql(), de = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, fe = (e, t, n = "select") => {
|
|
13468
13477
|
if (!t) return;
|
|
13469
|
-
let r = je.value.find((t) => t.value === e), i = r?.availableOptions ?
|
|
13478
|
+
let r = je.value.find((t) => t.value === e), i = r?.availableOptions ? K(r.availableOptions, t) : void 0;
|
|
13470
13479
|
Jl("chart_option_selected", {
|
|
13471
13480
|
panel: de(e),
|
|
13472
13481
|
selected_value: i?.text ?? t,
|
|
@@ -13505,7 +13514,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13505
13514
|
let r = !!e && t === e;
|
|
13506
13515
|
return {
|
|
13507
13516
|
disabled: r,
|
|
13508
|
-
description: r ?
|
|
13517
|
+
description: r ? Vp : n
|
|
13509
13518
|
};
|
|
13510
13519
|
}, ye = (e, t) => {
|
|
13511
13520
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -13562,11 +13571,11 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13562
13571
|
}), xe = (e, t, n) => {
|
|
13563
13572
|
if (!n) return;
|
|
13564
13573
|
let r = t.find((e) => e.value === n || e.aggFuncOptions?.some((e) => e.seriesValue === n));
|
|
13565
|
-
if (!r?.aggFuncOptions?.length || !r.columnField) return
|
|
13574
|
+
if (!r?.aggFuncOptions?.length || !r.columnField) return K(e, n);
|
|
13566
13575
|
let i = r.aggFuncOptions.find((e) => e.aggFunc === r.activeAggFunc) ?? r.aggFuncOptions.find((e) => e.seriesValue === n) ?? r.aggFuncOptions[0];
|
|
13567
|
-
return i ?
|
|
13576
|
+
return i ? K(e, he(r.columnField, i.aggFunc)) : void 0;
|
|
13568
13577
|
}, Se = (e, t) => {
|
|
13569
|
-
let n =
|
|
13578
|
+
let n = K(e, t), r = n?.context;
|
|
13570
13579
|
return {
|
|
13571
13580
|
aggFunc: r?.aggFunc,
|
|
13572
13581
|
columnField: r?.columnField,
|
|
@@ -13618,7 +13627,8 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13618
13627
|
availableOptions: Ae.value,
|
|
13619
13628
|
...r ? {
|
|
13620
13629
|
activeOptions: Z,
|
|
13621
|
-
activeOptionLimit: l.rowGroupLimit
|
|
13630
|
+
activeOptionLimit: l.rowGroupLimit,
|
|
13631
|
+
lockedOptionIds: l.lockedRowGroupColIds
|
|
13622
13632
|
} : {
|
|
13623
13633
|
currentOption: Ae.value.find((e) => e.id === j.value[0]),
|
|
13624
13634
|
updateSelectedOption: (e) => {
|
|
@@ -13632,8 +13642,8 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13632
13642
|
allowDeselect: !0,
|
|
13633
13643
|
availableOptions: O.value,
|
|
13634
13644
|
currentOption: O.value.find((e) => e.id === E.value?.id),
|
|
13635
|
-
disabled:
|
|
13636
|
-
disabledReason:
|
|
13645
|
+
disabled: ce.value || !le.value,
|
|
13646
|
+
disabledReason: ce.value ? "Dates are always sorted oldest to newest" : "Sorting is not available for this chart type",
|
|
13637
13647
|
updateSelectedOption: (e) => {
|
|
13638
13648
|
let t = O.value.find((t) => t.id === e);
|
|
13639
13649
|
if (!t || !E) {
|
|
@@ -13759,7 +13769,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13759
13769
|
}, Ue = () => {
|
|
13760
13770
|
S.value = void 0;
|
|
13761
13771
|
};
|
|
13762
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
13772
|
+
return (n, r) => (D(), o(t, null, [s("div", jp, [s("div", null, [ae((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Mp, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(Va, {
|
|
13763
13773
|
open: b.value,
|
|
13764
13774
|
label: "Chart Configuration",
|
|
13765
13775
|
icon: "chart-area",
|
|
@@ -13795,24 +13805,26 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13795
13805
|
"aria-label": `${Me.value.label} options`,
|
|
13796
13806
|
class: "pv-chart-config-popover pv-inset-square-8",
|
|
13797
13807
|
role: "dialog",
|
|
13798
|
-
onKeydown: G(
|
|
13808
|
+
onKeydown: oe(G(n, ["stop"]), ["esc"])
|
|
13799
13809
|
}, [r[6] ||= s("p", {
|
|
13800
13810
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13801
13811
|
style: {
|
|
13802
13812
|
"padding-left": "2px",
|
|
13803
13813
|
"padding-bottom": "6px"
|
|
13804
13814
|
}
|
|
13805
|
-
}, " Viewing ", -1), u(
|
|
13815
|
+
}, " Viewing ", -1), u(rp, {
|
|
13806
13816
|
modelValue: Me.value.activeOptions.value,
|
|
13807
13817
|
"onUpdate:modelValue": r[1] ||= (e) => me(Me.value, e),
|
|
13808
13818
|
options: Me.value.availableOptions || [],
|
|
13809
13819
|
activeOptionLimit: Me.value.activeOptionLimit,
|
|
13820
|
+
lockedOptionIds: Me.value.lockedOptionIds,
|
|
13810
13821
|
placeholderText: "Add to X Axis"
|
|
13811
13822
|
}, null, 8, [
|
|
13812
13823
|
"modelValue",
|
|
13813
13824
|
"options",
|
|
13814
|
-
"activeOptionLimit"
|
|
13815
|
-
|
|
13825
|
+
"activeOptionLimit",
|
|
13826
|
+
"lockedOptionIds"
|
|
13827
|
+
])], 40, Np)) : Me.value ? (D(), i(Vo, {
|
|
13816
13828
|
key: 1,
|
|
13817
13829
|
id: t,
|
|
13818
13830
|
"aria-label": `${Me.value.label} options`,
|
|
@@ -13826,7 +13838,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13826
13838
|
readOnly: e.readOnly,
|
|
13827
13839
|
childrenDisplay: "popover",
|
|
13828
13840
|
itemClass: "pv-chart-option pv-flex",
|
|
13829
|
-
onKeydown: G(
|
|
13841
|
+
onKeydown: oe(G(n, ["stop"]), ["esc"]),
|
|
13830
13842
|
onHandleSelected: r[2] ||= (e) => X(Me.value, e)
|
|
13831
13843
|
}, null, 8, [
|
|
13832
13844
|
"id",
|
|
@@ -13861,7 +13873,7 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13861
13873
|
"padding-top": "4px",
|
|
13862
13874
|
"padding-bottom": "12px"
|
|
13863
13875
|
}
|
|
13864
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
13876
|
+
}, " Chart Configuration ")], -1), s("ul", Pp, [(D(!0), o(t, null, A(je.value, (t) => (D(), o("li", {
|
|
13865
13877
|
id: `pv-chart-config-${t.value}`,
|
|
13866
13878
|
key: t.value,
|
|
13867
13879
|
"data-active": S.value === t.value ? !0 : null,
|
|
@@ -13892,19 +13904,19 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13892
13904
|
_: 2
|
|
13893
13905
|
}, [t.disabled && t.disabledReason ? {
|
|
13894
13906
|
name: "content",
|
|
13895
|
-
fn: W(() => [s("div",
|
|
13907
|
+
fn: W(() => [s("div", Ip, P(t.disabledReason), 1)]),
|
|
13896
13908
|
key: "0"
|
|
13897
|
-
} : void 0]), 1024)], 40,
|
|
13909
|
+
} : void 0]), 1024)], 40, Fp))), 128))])]),
|
|
13898
13910
|
_: 1
|
|
13899
13911
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[R(Q), [He, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
13900
13912
|
class: "pv-flex pv-space-between",
|
|
13901
13913
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
13902
13914
|
}, [e.chartFilter ? (D(), i(oa, {
|
|
13903
13915
|
key: 0,
|
|
13904
|
-
options:
|
|
13916
|
+
options: se.value,
|
|
13905
13917
|
modelValue: R(ie),
|
|
13906
13918
|
"onUpdate:modelValue": r[4] ||= (e) => h(ie) ? ie.value = e : null
|
|
13907
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
13919
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", Lp, [(D(!0), o(t, null, A(je.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(qc, {
|
|
13908
13920
|
key: 0,
|
|
13909
13921
|
label: n.label,
|
|
13910
13922
|
prefixLabel: n.prefixLabel,
|
|
@@ -13957,23 +13969,25 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13957
13969
|
...R(p)
|
|
13958
13970
|
}
|
|
13959
13971
|
}, {
|
|
13960
|
-
default: W(() => [Me.value ? (D(), o(t, { key: 0 }, [Me.value.isSortableList ? (D(), o("div",
|
|
13972
|
+
default: W(() => [Me.value ? (D(), o(t, { key: 0 }, [Me.value.isSortableList ? (D(), o("div", Rp, [r[9] ||= s("p", {
|
|
13961
13973
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13962
13974
|
style: {
|
|
13963
13975
|
"padding-left": "2px",
|
|
13964
13976
|
"padding-bottom": "6px"
|
|
13965
13977
|
}
|
|
13966
|
-
}, " Viewing ", -1), u(
|
|
13978
|
+
}, " Viewing ", -1), u(rp, {
|
|
13967
13979
|
modelValue: Me.value.activeOptions.value,
|
|
13968
13980
|
"onUpdate:modelValue": r[5] ||= (e) => me(Me.value, e),
|
|
13969
13981
|
options: Me.value.availableOptions || [],
|
|
13970
13982
|
activeOptionLimit: Me.value.activeOptionLimit,
|
|
13983
|
+
lockedOptionIds: Me.value.lockedOptionIds,
|
|
13971
13984
|
placeholderText: "Add to X Axis"
|
|
13972
13985
|
}, null, 8, [
|
|
13973
13986
|
"modelValue",
|
|
13974
13987
|
"options",
|
|
13975
|
-
"activeOptionLimit"
|
|
13976
|
-
|
|
13988
|
+
"activeOptionLimit",
|
|
13989
|
+
"lockedOptionIds"
|
|
13990
|
+
])])) : (D(), o("ul", zp, [(D(!0), o(t, null, A(Me.value.availableOptions, (t) => (D(), o("li", {
|
|
13977
13991
|
key: t.id,
|
|
13978
13992
|
"data-active": ze(t)
|
|
13979
13993
|
}, [u(Ao, {
|
|
@@ -13998,14 +14012,14 @@ var Mp = { class: "pv-stack-16 pv-chart-options-panel" }, Np = { class: "pv-flex
|
|
|
13998
14012
|
"disabled",
|
|
13999
14013
|
"selectedIds",
|
|
14000
14014
|
"onHandleSelected"
|
|
14001
|
-
])], 8,
|
|
14015
|
+
])], 8, Bp))), 128))]))], 64)) : a("", !0)]),
|
|
14002
14016
|
_: 1
|
|
14003
14017
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
14004
14018
|
}
|
|
14005
|
-
}), [["__scopeId", "data-v-
|
|
14019
|
+
}), [["__scopeId", "data-v-c9617d5a"]]);
|
|
14006
14020
|
//#endregion
|
|
14007
14021
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
14008
|
-
function
|
|
14022
|
+
function Up(e, t, n, r, i) {
|
|
14009
14023
|
return i ? {
|
|
14010
14024
|
xKey: n,
|
|
14011
14025
|
xName: r,
|
|
@@ -14018,7 +14032,7 @@ function Wp(e, t, n, r, i) {
|
|
|
14018
14032
|
yName: r
|
|
14019
14033
|
};
|
|
14020
14034
|
}
|
|
14021
|
-
var
|
|
14035
|
+
var Wp = (e, t) => {
|
|
14022
14036
|
if (t.length === 0) return null;
|
|
14023
14037
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
14024
14038
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -14029,22 +14043,22 @@ var Gp = (e, t) => {
|
|
|
14029
14043
|
}
|
|
14030
14044
|
}
|
|
14031
14045
|
return null;
|
|
14032
|
-
},
|
|
14046
|
+
}, Gp = (e, t) => {
|
|
14033
14047
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
14034
14048
|
return {
|
|
14035
14049
|
categoryPadOffset: n,
|
|
14036
14050
|
axisMin: 0 - i,
|
|
14037
14051
|
axisMax: r + i
|
|
14038
14052
|
};
|
|
14039
|
-
},
|
|
14053
|
+
}, Kp = (e, t) => {
|
|
14040
14054
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
14041
14055
|
return (e + n - r) / (i - r);
|
|
14042
|
-
},
|
|
14056
|
+
}, qp = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
14043
14057
|
...t,
|
|
14044
14058
|
color: t.color ?? e.color,
|
|
14045
14059
|
formatValue: t.formatValue ?? e.formatValue,
|
|
14046
14060
|
key: `${e.id}-${t.label}`
|
|
14047
|
-
}))),
|
|
14061
|
+
}))), Jp = (e, t, n) => {
|
|
14048
14062
|
let r = /* @__PURE__ */ new Map();
|
|
14049
14063
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
14050
14064
|
let t = r.get(e.groupName) ?? {
|
|
@@ -14066,18 +14080,18 @@ var Gp = (e, t) => {
|
|
|
14066
14080
|
});
|
|
14067
14081
|
}), r.set(e.groupName, t);
|
|
14068
14082
|
}), [...r.values()];
|
|
14069
|
-
},
|
|
14070
|
-
function
|
|
14071
|
-
let { crosslineOverlayGroups: t, isHistogramWithBuckets: n, isHorizontalBarChart: i, computedChartData: a, pvChartRef: o, formatValue: s, initialActiveOverlayGroupIds: c } = e, l = k(new Set(c?.value ?? t.value.filter((e) =>
|
|
14083
|
+
}, Yp = (e) => !!(e.visible && !e.disabled);
|
|
14084
|
+
function Xp(e) {
|
|
14085
|
+
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) => Yp(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, Yp(e)]));
|
|
14072
14086
|
U(t, (e) => {
|
|
14073
14087
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
14074
14088
|
for (let i of e) {
|
|
14075
|
-
let e =
|
|
14089
|
+
let e = Yp(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
14076
14090
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
14077
14091
|
}
|
|
14078
|
-
u = new Map(e.map((e) => [e.id,
|
|
14092
|
+
u = new Map(e.map((e) => [e.id, Yp(e)])), n && (l.value = t);
|
|
14079
14093
|
});
|
|
14080
|
-
let d = r(() =>
|
|
14094
|
+
let d = r(() => qp(t.value, l.value)), f = r(() => Jp(t.value, l.value, s)), p = k(null);
|
|
14081
14095
|
return {
|
|
14082
14096
|
activeCrosslineOverlayGroups: l,
|
|
14083
14097
|
resolvedCrosslineOverlays: d,
|
|
@@ -14087,11 +14101,11 @@ function Zp(e) {
|
|
|
14087
14101
|
if (!p.value || !a.value) return null;
|
|
14088
14102
|
let e = d.value.find((e) => e.key === p.value);
|
|
14089
14103
|
if (!e) return null;
|
|
14090
|
-
let t =
|
|
14104
|
+
let t = Wp(e.value, a.value);
|
|
14091
14105
|
if (t == null) return null;
|
|
14092
14106
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
14093
14107
|
if (!r) return null;
|
|
14094
|
-
let c =
|
|
14108
|
+
let c = Kp(t, Gp(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
14095
14109
|
return i.value ? {
|
|
14096
14110
|
label: e.label,
|
|
14097
14111
|
value: l,
|
|
@@ -14118,10 +14132,10 @@ function Zp(e) {
|
|
|
14118
14132
|
}
|
|
14119
14133
|
//#endregion
|
|
14120
14134
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
14121
|
-
var
|
|
14135
|
+
var Zp = { style: {
|
|
14122
14136
|
height: "100%",
|
|
14123
14137
|
width: "100%"
|
|
14124
|
-
} },
|
|
14138
|
+
} }, Qp = {
|
|
14125
14139
|
key: 0,
|
|
14126
14140
|
class: "pv-flex",
|
|
14127
14141
|
style: {
|
|
@@ -14129,19 +14143,19 @@ var Qp = { style: {
|
|
|
14129
14143
|
flex: "0 1 auto"
|
|
14130
14144
|
},
|
|
14131
14145
|
"data-testid": "pv-data-table-with-chart-filter-panel-actions"
|
|
14132
|
-
},
|
|
14146
|
+
}, $p = {
|
|
14133
14147
|
key: 0,
|
|
14134
14148
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
14135
|
-
},
|
|
14149
|
+
}, em = { class: "pv-flex" }, tm = {
|
|
14136
14150
|
class: "pv-flex",
|
|
14137
14151
|
style: { "align-items": "stretch" }
|
|
14138
|
-
},
|
|
14152
|
+
}, nm = { class: "pv-flex pv-space-between" }, rm = { class: "pv-chart-tooltip-label" }, im = { class: "pv-chart-tooltip-value" }, am = {
|
|
14139
14153
|
key: 2,
|
|
14140
14154
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
14141
|
-
},
|
|
14155
|
+
}, om = { key: 0 }, sm = {
|
|
14142
14156
|
key: 1,
|
|
14143
14157
|
class: "pv-text-body-xs"
|
|
14144
|
-
},
|
|
14158
|
+
}, cm = /* @__PURE__ */ d({
|
|
14145
14159
|
__name: "PvDataTableWithChart",
|
|
14146
14160
|
props: {
|
|
14147
14161
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -14179,6 +14193,11 @@ var Qp = { style: {
|
|
|
14179
14193
|
secondaryChartType: { default: "scatter" },
|
|
14180
14194
|
multiSelectMetricOverlay: { type: Boolean },
|
|
14181
14195
|
initialSecondaryYKeys: {},
|
|
14196
|
+
metricOverlayWithRowGroups: {
|
|
14197
|
+
type: Boolean,
|
|
14198
|
+
default: !1
|
|
14199
|
+
},
|
|
14200
|
+
lockedRowGroupColIds: { default: () => [] },
|
|
14182
14201
|
chartFilter: {},
|
|
14183
14202
|
chartType: { default: "column" },
|
|
14184
14203
|
emptyChartFilterRenderer: {},
|
|
@@ -14419,22 +14438,22 @@ var Qp = { style: {
|
|
|
14419
14438
|
formatter: n.valueFormatter,
|
|
14420
14439
|
dataType: n.context?.dataType
|
|
14421
14440
|
};
|
|
14422
|
-
})),
|
|
14423
|
-
O(Xl,
|
|
14424
|
-
let
|
|
14441
|
+
})), oe = l.filterStore || Ud();
|
|
14442
|
+
O(Xl, oe);
|
|
14443
|
+
let G = Vu({
|
|
14425
14444
|
focusType: l.initialFocusData?.focusType,
|
|
14426
14445
|
focuses: l.initialFocusData?.focuses || [],
|
|
14427
14446
|
focusRequired: l.focusRequired
|
|
14428
14447
|
}, l.allFieldsAreFocusable);
|
|
14429
|
-
O(Zl,
|
|
14430
|
-
let { setFilterSelectedValues:
|
|
14431
|
-
O(su,
|
|
14432
|
-
let
|
|
14448
|
+
O(Zl, G);
|
|
14449
|
+
let { setFilterSelectedValues: se } = oe, ce = k(!1);
|
|
14450
|
+
O(su, ce);
|
|
14451
|
+
let le = k(l.isTableGrouped), K = (e) => {
|
|
14433
14452
|
d("table-overlay-change", e);
|
|
14434
|
-
}, q = r(() =>
|
|
14453
|
+
}, q = r(() => Yt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && oe.filterModelEmpty.value)), ue = r(() => G?.computedFocusType.value || null), J = r(() => G?.computedFocuses.value || []), de = (e) => {
|
|
14435
14454
|
te.value = Object.fromEntries(e.getValueColumns().map((e) => [e.getColId(), e.getAggFunc()]).filter((e) => typeof e[1] == "string"));
|
|
14436
14455
|
}, fe = k(null), Y = (e) => {
|
|
14437
|
-
p.value = e.api, de(e.api),
|
|
14456
|
+
p.value = e.api, de(e.api), le.value || p.value?.setRowGroupColumns([]), l.tableConfigOptions?.enableColumnConfiguration && (fe.value = e.api.getAllGridColumns().map((e) => e.getColId())), pt(e.api), d("grid-ready", e);
|
|
14438
14457
|
}, pe = (e) => {
|
|
14439
14458
|
fe.value = e.orderedColIds, d("chart-state-changed", {
|
|
14440
14459
|
api: p.value,
|
|
@@ -14457,7 +14476,7 @@ var Qp = { style: {
|
|
|
14457
14476
|
}), fe.value = t;
|
|
14458
14477
|
}, me = (e) => {
|
|
14459
14478
|
let t = ie(H.value, Ie.value), n = Le.value.map((e) => ie(H.value, e)?.columnField).filter((e) => !!e);
|
|
14460
|
-
de(e.api), t?.columnField && Ie.value && (Ie.value = H.value.find((e) => e.columnField === t.columnField)?.value), n.length > 0 && (Le.value = n.map((e) => H.value.find((t) => t.columnField === e)?.value).filter((e) => !!e)),
|
|
14479
|
+
de(e.api), t?.columnField && Ie.value && (Ie.value = H.value.find((e) => e.columnField === t.columnField)?.value), n.length > 0 && (Le.value = n.map((e) => H.value.find((t) => t.columnField === e)?.value).filter((e) => !!e)), pt(e.api), d("column-value-changed", e);
|
|
14461
14480
|
}, he = (e) => {
|
|
14462
14481
|
let t = p.value;
|
|
14463
14482
|
!t || t.getColumn(e.columnField)?.getAggFunc() === e.aggFunc || t.applyColumnState({ state: [{
|
|
@@ -14468,7 +14487,7 @@ var Qp = { style: {
|
|
|
14468
14487
|
d("first-data-rendered", e);
|
|
14469
14488
|
}, _e = (e) => {
|
|
14470
14489
|
let t = I.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
14471
|
-
if (
|
|
14490
|
+
if (le.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
14472
14491
|
let t = Ae.value;
|
|
14473
14492
|
if (n.length > Z.value) {
|
|
14474
14493
|
let t = n.slice(0, Z.value);
|
|
@@ -14478,10 +14497,10 @@ var Qp = { style: {
|
|
|
14478
14497
|
}
|
|
14479
14498
|
d("column-row-group-changed", e);
|
|
14480
14499
|
}, ve = async (e) => {
|
|
14481
|
-
|
|
14500
|
+
pt(e.api), ce.value && d("filter-changed", e);
|
|
14482
14501
|
};
|
|
14483
14502
|
U(() => I.value, () => {
|
|
14484
|
-
if (
|
|
14503
|
+
if (le.value) {
|
|
14485
14504
|
if (!p.value) return;
|
|
14486
14505
|
let e = p.value.getRowGroupColumns().map((e) => e.getColId());
|
|
14487
14506
|
JSON.stringify(e) !== JSON.stringify(I.value) && v(() => {
|
|
@@ -14492,9 +14511,9 @@ var Qp = { style: {
|
|
|
14492
14511
|
});
|
|
14493
14512
|
if (!l.allFieldsAreFocusable) {
|
|
14494
14513
|
let e = Ae.value.supportsFocusView && L.value || null;
|
|
14495
|
-
|
|
14514
|
+
G.setFocusType(e);
|
|
14496
14515
|
}
|
|
14497
|
-
p.value &&
|
|
14516
|
+
p.value && pt(p.value);
|
|
14498
14517
|
});
|
|
14499
14518
|
function ye(e, t, n = !0) {
|
|
14500
14519
|
return (r) => {
|
|
@@ -14505,7 +14524,7 @@ var Qp = { style: {
|
|
|
14505
14524
|
let e = r.datum?.[L.value], t = Pe.value?.find((t) => t[L.value] === e)?.[`${Fe.value}_sort_total`] || Infinity;
|
|
14506
14525
|
if (r.value / t < .05) return "";
|
|
14507
14526
|
}
|
|
14508
|
-
let { newValue: e, newSuffix: t } = _s(r.value, ps.Percent === $(a).dataType,
|
|
14527
|
+
let { newValue: e, newSuffix: t } = _s(r.value, ps.Percent === $(a).dataType, zt.value);
|
|
14509
14528
|
r.value = e, i = t;
|
|
14510
14529
|
}
|
|
14511
14530
|
let o = r.value;
|
|
@@ -14526,7 +14545,7 @@ var Qp = { style: {
|
|
|
14526
14545
|
...I.value.length > 1 ? rs : ns,
|
|
14527
14546
|
is,
|
|
14528
14547
|
as
|
|
14529
|
-
].filter((e) => l.enabledChartTypes?.includes(e.id))), Ee = k(void 0), De = k(void 0), Oe = k(void 0), ke = !1, Ae = r(() =>
|
|
14548
|
+
].filter((e) => l.enabledChartTypes?.includes(e.id))), Ee = k(void 0), De = k(void 0), Oe = k(void 0), ke = !1, Ae = r(() => Ap(Ee.value?.id || "")), Z = r(() => Math.min(Ae.value.rowGroupLimit, l.rowGroupLimit)), je = r(() => {
|
|
14530
14549
|
let e = Ae.value.xAxis.filterColumns;
|
|
14531
14550
|
return e ? e(F.value) : F.value;
|
|
14532
14551
|
}), Me = k([{
|
|
@@ -14552,13 +14571,13 @@ var Qp = { style: {
|
|
|
14552
14571
|
Ee.value = Te.value.find((t) => t.id === e) ?? Te.value[0];
|
|
14553
14572
|
}, Ke = (e) => {
|
|
14554
14573
|
let t = I.value.length, n = (e) => {
|
|
14555
|
-
let n =
|
|
14574
|
+
let n = Ap(e.id);
|
|
14556
14575
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14557
14576
|
}, r = Te.value.find((t) => t.id === e);
|
|
14558
14577
|
return r && n(r) ? r.id : Te.value.find(n)?.id ?? Te.value[0]?.id;
|
|
14559
14578
|
};
|
|
14560
14579
|
U(() => Te.value, () => {
|
|
14561
|
-
let e = it.value, t = e !== ke, n =
|
|
14580
|
+
let e = it.value, t = e !== ke, n = Ap(Ee.value?.id || ""), r = Te.value.some((e) => e.id === Ee.value?.id), i = I.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14562
14581
|
if (ke = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
14563
14582
|
let a = Ke((e ? Oe?.value : De?.value) ?? l.chartType);
|
|
14564
14583
|
a && Ge(a);
|
|
@@ -14567,7 +14586,7 @@ var Qp = { style: {
|
|
|
14567
14586
|
}), U(We, (e) => {
|
|
14568
14587
|
if (l.chartFilter && p.value) {
|
|
14569
14588
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
14570
|
-
n && n.length === 0 && (n = null),
|
|
14589
|
+
n && n.length === 0 && (n = null), se(t, n || []);
|
|
14571
14590
|
let r = sd({
|
|
14572
14591
|
filterType: "set",
|
|
14573
14592
|
values: n
|
|
@@ -14582,7 +14601,10 @@ var Qp = { style: {
|
|
|
14582
14601
|
if (xe(t?.columnField ?? e)?.context?.chartOverlayOnPrimaryAxis !== !0) return !1;
|
|
14583
14602
|
let n = ie(V.value, Fe.value);
|
|
14584
14603
|
return t?.dataType != null && t.dataType === n?.dataType;
|
|
14585
|
-
}, Xe = r(() => ze.value.filter((e) => !Ye(e))), Ze = r(() => ze.value.filter((e) => Ye(e))), Qe = r(() => Xe.value.map((e) => qe(ie(H.value, e))).filter(Boolean).join(", ")), $e = r(() => Ae.value.isHorizontal === !0), et = r(() => l.secondaryChartType === "line" && !$e.value ? "line" : "scatter"), Q = r(() => I.value.length > 1), tt = r(() => !Ee.value || V.value.length === 0 ? [] : Ae.value.seriesFamily === "pie" ?
|
|
14604
|
+
}, Xe = r(() => ze.value.filter((e) => !Ye(e))), Ze = r(() => ze.value.filter((e) => Ye(e))), Qe = r(() => Xe.value.map((e) => qe(ie(H.value, e))).filter(Boolean).join(", ")), $e = r(() => Ae.value.isHorizontal === !0), et = r(() => l.secondaryChartType === "line" && !$e.value ? "line" : "scatter"), Q = r(() => I.value.length > 1), tt = r(() => !Ee.value || V.value.length === 0 ? [] : Ae.value.seriesFamily === "pie" ? ut.value : lt.value), nt = r(() => Ee.value?.id === "histogram" ? !1 : l.showSeriesLabels), rt = r(() => Ee.value?.id.includes("stacked")), it = r(() => I.value.length > 1), at = r(() => Ee.value?.id === "histogram" && vt.value && vt.value.length > 0 && typeof vt.value[0]?.bucketMin == "number" && typeof vt.value[0]?.bucketMax == "number"), st = "primary-series", ct = r(() => {
|
|
14605
|
+
let e = Q.value ? He.value?.fieldValues.length ?? 0 : 1;
|
|
14606
|
+
return `${Ee.value?.id ?? "chart"}-${e}`;
|
|
14607
|
+
}), lt = r(() => {
|
|
14586
14608
|
let e = rt.value, t = Ae.value.agChartType, n = [], r = be(Fe.value, !0), i = be(He.value?.fieldName, !0), a = (e) => t === "line" ? {} : { placement: e };
|
|
14587
14609
|
if (Q.value) He.value?.fieldValues.forEach((o, s) => {
|
|
14588
14610
|
let c = {
|
|
@@ -14631,7 +14653,7 @@ var Qp = { style: {
|
|
|
14631
14653
|
let e = o;
|
|
14632
14654
|
e.connectMissingData = !0, o = e;
|
|
14633
14655
|
}
|
|
14634
|
-
let s =
|
|
14656
|
+
let s = St.value == null ? {} : {
|
|
14635
14657
|
fillOpacity: .3,
|
|
14636
14658
|
strokeOpacity: .3
|
|
14637
14659
|
};
|
|
@@ -14651,22 +14673,22 @@ var Qp = { style: {
|
|
|
14651
14673
|
}))), ze.value.length > 0) {
|
|
14652
14674
|
let t = xe(L.value)?.context?.metadataDisplayFields?.[0] || L.value, r = et.value;
|
|
14653
14675
|
for (let i of ze.value) {
|
|
14654
|
-
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${fs}` : i, c =
|
|
14676
|
+
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${fs}` : i, c = Up(L.value, t, s, o, $e.value), l = (Mt.value ?? []).filter((e) => e[s] != null).length, u = {
|
|
14655
14677
|
type: r,
|
|
14656
14678
|
id: Re.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
14657
|
-
data:
|
|
14679
|
+
data: Mt.value,
|
|
14658
14680
|
...c,
|
|
14659
14681
|
label: { enabled: !1 },
|
|
14660
14682
|
...r === "line" ? {
|
|
14661
14683
|
lineDash: [4, 4],
|
|
14662
14684
|
strokeWidth: 2,
|
|
14663
|
-
marker: { enabled:
|
|
14685
|
+
marker: { enabled: l < 2 },
|
|
14664
14686
|
connectMissingData: !0
|
|
14665
14687
|
} : {}
|
|
14666
14688
|
};
|
|
14667
14689
|
if (a?.tooltipRenderer) {
|
|
14668
14690
|
let e = a.tooltipRenderer;
|
|
14669
|
-
|
|
14691
|
+
u.tooltip = { renderer: $e.value ? (n) => e({
|
|
14670
14692
|
...n,
|
|
14671
14693
|
xKey: L.value,
|
|
14672
14694
|
xName: t,
|
|
@@ -14674,11 +14696,11 @@ var Qp = { style: {
|
|
|
14674
14696
|
yName: o
|
|
14675
14697
|
}) : e };
|
|
14676
14698
|
}
|
|
14677
|
-
n = [...n,
|
|
14699
|
+
n = [...n, u];
|
|
14678
14700
|
}
|
|
14679
14701
|
}
|
|
14680
|
-
if (at.value &&
|
|
14681
|
-
let e =
|
|
14702
|
+
if (at.value && bt.value.length > 0 && vt.value) {
|
|
14703
|
+
let e = vt.value.length, t = Number.isFinite(zt.value) ? zt.value : 0, r = {
|
|
14682
14704
|
type: "scatter",
|
|
14683
14705
|
xKey: "__dummy_x__",
|
|
14684
14706
|
yKey: "__dummy_y__",
|
|
@@ -14692,14 +14714,14 @@ var Qp = { style: {
|
|
|
14692
14714
|
label: { enabled: !1 },
|
|
14693
14715
|
tooltip: { enabled: !1 },
|
|
14694
14716
|
visible: !1
|
|
14695
|
-
}, { categoryPadOffset: i } =
|
|
14717
|
+
}, { categoryPadOffset: i } = Gp(e, !0), a = {
|
|
14696
14718
|
type: "scatter",
|
|
14697
14719
|
xKey: "__dummy_x__",
|
|
14698
14720
|
yKey: "__dummy_y__",
|
|
14699
|
-
data:
|
|
14700
|
-
let t =
|
|
14721
|
+
data: bt.value.flatMap((e) => {
|
|
14722
|
+
let t = Wp(e.value, vt.value || []);
|
|
14701
14723
|
if (t === null) return [];
|
|
14702
|
-
let n = t + i, r = Number.isFinite(
|
|
14724
|
+
let n = t + i, r = Number.isFinite(zt.value) ? zt.value : 0, a = be(I.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
14703
14725
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
14704
14726
|
value: o,
|
|
14705
14727
|
__dummy_x__: n,
|
|
@@ -14735,7 +14757,7 @@ var Qp = { style: {
|
|
|
14735
14757
|
];
|
|
14736
14758
|
}
|
|
14737
14759
|
return n;
|
|
14738
|
-
}),
|
|
14760
|
+
}), ut = r(() => V.value.length === 0 ? [] : [{
|
|
14739
14761
|
type: "pie",
|
|
14740
14762
|
legendItemKey: L.value,
|
|
14741
14763
|
angleKey: Fe.value
|
|
@@ -14759,8 +14781,8 @@ var Qp = { style: {
|
|
|
14759
14781
|
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
14760
14782
|
});
|
|
14761
14783
|
}), U(Ee, (e, t) => {
|
|
14762
|
-
e?.id &&
|
|
14763
|
-
let n =
|
|
14784
|
+
e?.id && Ap(e.id).storeBeforeChange && (it.value ? Oe.value = e.id : De.value = e.id);
|
|
14785
|
+
let n = Ap(e?.id || ""), r = Ap(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? I.value : Cp(I.value, F.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
14764
14786
|
ot(i, I.value) || (I.value = i), n.yAxis.defaultValue ? Fe.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
14765
14787
|
l.yKey ? Fe.value = l.yKey : V.value.length > 0 && (Fe.value = V.value[0].value);
|
|
14766
14788
|
}), d("chart-state-changed", {
|
|
@@ -14787,43 +14809,43 @@ var Qp = { style: {
|
|
|
14787
14809
|
newState: { chartCategoryFields: e },
|
|
14788
14810
|
oldState: { chartCategoryFields: t }
|
|
14789
14811
|
});
|
|
14790
|
-
}), U(
|
|
14812
|
+
}), U(le, (e, t) => {
|
|
14791
14813
|
d("chart-state-changed", {
|
|
14792
14814
|
api: p.value,
|
|
14793
14815
|
newState: { tableGrouped: e },
|
|
14794
14816
|
oldState: { tableGrouped: t }
|
|
14795
14817
|
});
|
|
14796
14818
|
}), U(() => l.isTableGrouped, (e, t) => {
|
|
14797
|
-
!p.value || e === t || !l.enableGroupingToggle ||
|
|
14819
|
+
!p.value || e === t || !l.enableGroupingToggle || rn(e);
|
|
14798
14820
|
}), U(() => l.initialFocusData, (e, t) => {
|
|
14799
14821
|
if (!(ot(e?.focuses, t?.focuses) && e?.focusType == t?.focusType)) {
|
|
14800
14822
|
if (!e?.focusType) {
|
|
14801
|
-
|
|
14823
|
+
G.setFocuses([]);
|
|
14802
14824
|
return;
|
|
14803
14825
|
}
|
|
14804
|
-
|
|
14826
|
+
G.setFocusType(e?.focusType), G.setFocuses(e?.focuses ?? []);
|
|
14805
14827
|
}
|
|
14806
14828
|
}, { deep: !0 });
|
|
14807
|
-
let
|
|
14829
|
+
let dt = () => {
|
|
14808
14830
|
Ne.value = [], Pe.value = [], He.value = null;
|
|
14809
|
-
},
|
|
14831
|
+
}, ft = (e, t) => {
|
|
14810
14832
|
if (!e || e.length === 0) {
|
|
14811
|
-
|
|
14833
|
+
dt();
|
|
14812
14834
|
return;
|
|
14813
14835
|
}
|
|
14814
14836
|
if (t) {
|
|
14815
|
-
let { stackedData:
|
|
14816
|
-
Pe.value =
|
|
14837
|
+
let n = l.metricOverlayWithRowGroups ? [...ae.value, ...H.value] : ae.value, { stackedData: r, uniqueFieldValues: i } = zs(e, L.value, t, mt.value, n);
|
|
14838
|
+
Pe.value = r, He.value = {
|
|
14817
14839
|
fieldName: t,
|
|
14818
|
-
fieldValues:
|
|
14840
|
+
fieldValues: i
|
|
14819
14841
|
};
|
|
14820
14842
|
} else Pe.value = [], He.value = null;
|
|
14821
14843
|
Ne.value = e;
|
|
14822
|
-
},
|
|
14844
|
+
}, pt = (e) => {
|
|
14823
14845
|
let t = ++ee.value, n = I.value.length;
|
|
14824
|
-
if (
|
|
14846
|
+
if (dt(), M.value = !1, n === 0 || V.value.length === 0 || l.requireFiltersToShowData && oe.filterModelEmpty.value) return;
|
|
14825
14847
|
if (l.serverSideChartHandler) {
|
|
14826
|
-
let e =
|
|
14848
|
+
let e = oe.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
14827
14849
|
if (e === null && l.initialGridState) {
|
|
14828
14850
|
let t = ud(l.initialGridState, n, l.enableAdvancedFilter);
|
|
14829
14851
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
@@ -14835,7 +14857,7 @@ var Qp = { style: {
|
|
|
14835
14857
|
filterModel: e
|
|
14836
14858
|
};
|
|
14837
14859
|
M.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
14838
|
-
t === ee.value && (
|
|
14860
|
+
t === ee.value && (ft(e.data, e.stackField), M.value = !1);
|
|
14839
14861
|
}).catch((e) => {
|
|
14840
14862
|
t === ee.value && (console.error("Chart handler error:", e), M.value = !1);
|
|
14841
14863
|
});
|
|
@@ -14846,10 +14868,10 @@ var Qp = { style: {
|
|
|
14846
14868
|
if (e.forEachNodeAfterFilterAndSort((e) => {
|
|
14847
14869
|
if (e.group && e.level === 0) {
|
|
14848
14870
|
if (I.value.length > 1) {
|
|
14849
|
-
let { rowData: t, fieldValues: n } =
|
|
14871
|
+
let { rowData: t, fieldValues: n } = gt(e, e.childrenAfterFilter?.filter((e) => e.level === 1 && e.aggData) || []);
|
|
14850
14872
|
a = a.union(n), i?.push(t);
|
|
14851
14873
|
}
|
|
14852
|
-
let t =
|
|
14874
|
+
let t = ht(e);
|
|
14853
14875
|
r?.push(t);
|
|
14854
14876
|
}
|
|
14855
14877
|
}), Ne.value = r, I.value.length > 1 && i && i.length > 0) {
|
|
@@ -14859,14 +14881,14 @@ var Qp = { style: {
|
|
|
14859
14881
|
fieldValues: Array.from(a)
|
|
14860
14882
|
};
|
|
14861
14883
|
} else Pe.value = [], He.value = null;
|
|
14862
|
-
},
|
|
14884
|
+
}, mt = r(() => {
|
|
14863
14885
|
let e = V.value, t = H.value;
|
|
14864
14886
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
14865
|
-
}),
|
|
14887
|
+
}), ht = (e) => {
|
|
14866
14888
|
let t = { [e.field]: e.key };
|
|
14867
|
-
for (let n of
|
|
14889
|
+
for (let n of mt.value) !e.aggData || !e.aggData[n.value] || (t[n.value] = e.aggData[n.value]?.value ?? e.aggData[n.value]);
|
|
14868
14890
|
return t;
|
|
14869
|
-
},
|
|
14891
|
+
}, gt = (e, t) => {
|
|
14870
14892
|
let n = /* @__PURE__ */ new Set(), r = { [e.field]: e.key }, i = 0;
|
|
14871
14893
|
for (let a of V.value) t.forEach((t) => {
|
|
14872
14894
|
let o = t.key;
|
|
@@ -14883,7 +14905,7 @@ var Qp = { style: {
|
|
|
14883
14905
|
rowData: r,
|
|
14884
14906
|
fieldValues: n
|
|
14885
14907
|
};
|
|
14886
|
-
},
|
|
14908
|
+
}, vt = r(() => {
|
|
14887
14909
|
let e = Q.value ? Pe.value : Ne.value, t = null;
|
|
14888
14910
|
if (Ue.value && (t = Q.value ? `${Fe.value}${fs}` : Fe.value), Se.value) e = Is(e, L.value);
|
|
14889
14911
|
else if (t && e && Ue.value) {
|
|
@@ -14899,11 +14921,11 @@ var Qp = { style: {
|
|
|
14899
14921
|
];
|
|
14900
14922
|
}
|
|
14901
14923
|
return e;
|
|
14902
|
-
}), { activeCrosslineOverlayGroups:
|
|
14924
|
+
}), { activeCrosslineOverlayGroups: yt, resolvedCrosslineOverlays: bt, chipSections: xt, hoveredBenchmarkKey: St, hoveredCrosslineTooltip: Ct } = Xp({
|
|
14903
14925
|
crosslineOverlayGroups: Ve,
|
|
14904
14926
|
isHistogramWithBuckets: at,
|
|
14905
14927
|
isHorizontalBarChart: $e,
|
|
14906
|
-
computedChartData:
|
|
14928
|
+
computedChartData: vt,
|
|
14907
14929
|
pvChartRef: h,
|
|
14908
14930
|
formatValue: (e) => {
|
|
14909
14931
|
let t = be(I.value?.[0]);
|
|
@@ -14911,24 +14933,24 @@ var Qp = { style: {
|
|
|
14911
14933
|
},
|
|
14912
14934
|
initialActiveOverlayGroupIds: r(() => l.initialActiveOverlayGroupIds)
|
|
14913
14935
|
});
|
|
14914
|
-
O(wu,
|
|
14915
|
-
let
|
|
14916
|
-
let e = L.value, t =
|
|
14917
|
-
return !e || !t ? [] : (
|
|
14936
|
+
O(wu, yt), U(yt, (e) => d("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
14937
|
+
let wt = new Set([us, ds]), Tt = k(void 0), Et = r(() => Ee.value?.id === "map"), Dt = r(() => Fe.value || V.value[0]?.value || "value"), Ot = r(() => "600px"), kt = r(() => {
|
|
14938
|
+
let e = L.value, t = Dt.value;
|
|
14939
|
+
return !e || !t ? [] : (vt.value ?? []).filter((t) => {
|
|
14918
14940
|
let n = String(t?.[e] ?? "");
|
|
14919
|
-
return !
|
|
14941
|
+
return !wt.has(n) && n !== "--SEPARATOR--";
|
|
14920
14942
|
}).map((n) => ({
|
|
14921
14943
|
[os]: String(n[e] ?? ""),
|
|
14922
14944
|
[t]: Number(n[t] ?? 0)
|
|
14923
14945
|
}));
|
|
14924
|
-
}),
|
|
14925
|
-
let e =
|
|
14946
|
+
}), At = r(() => {
|
|
14947
|
+
let e = Dt.value;
|
|
14926
14948
|
if (!e) return {
|
|
14927
14949
|
min: 0,
|
|
14928
14950
|
max: 0
|
|
14929
14951
|
};
|
|
14930
14952
|
let t = !1, n = Infinity, r = -Infinity;
|
|
14931
|
-
return
|
|
14953
|
+
return kt.value.forEach((i) => {
|
|
14932
14954
|
let a = Number(i[e]);
|
|
14933
14955
|
Number.isFinite(a) && (t = !0, n = Math.min(n, a), r = Math.max(r, a));
|
|
14934
14956
|
}), t ? {
|
|
@@ -14938,13 +14960,13 @@ var Qp = { style: {
|
|
|
14938
14960
|
min: 0,
|
|
14939
14961
|
max: 0
|
|
14940
14962
|
};
|
|
14941
|
-
}), At = r(() => {
|
|
14942
|
-
let e = xe(Et.value)?.valueFormatter;
|
|
14943
|
-
return typeof e == "function" ? (t) => String(e({ value: t }) ?? t) : (e) => e.toLocaleString("en-US");
|
|
14944
14963
|
}), jt = r(() => {
|
|
14945
|
-
let e = (
|
|
14964
|
+
let e = xe(Dt.value)?.valueFormatter;
|
|
14965
|
+
return typeof e == "function" ? (t) => String(e({ value: t }) ?? t) : (e) => e.toLocaleString("en-US");
|
|
14966
|
+
}), Mt = r(() => {
|
|
14967
|
+
let e = (vt.value ?? []).filter((e) => {
|
|
14946
14968
|
let t = e?.[L.value];
|
|
14947
|
-
return !
|
|
14969
|
+
return !wt.has(String(t));
|
|
14948
14970
|
});
|
|
14949
14971
|
if (!Q.value || ze.value.length === 0 || !He.value) return e;
|
|
14950
14972
|
let t = ze.value.filter((e) => {
|
|
@@ -14964,56 +14986,56 @@ var Qp = { style: {
|
|
|
14964
14986
|
}
|
|
14965
14987
|
return r;
|
|
14966
14988
|
});
|
|
14967
|
-
}),
|
|
14989
|
+
}), Nt = r(() => vt.value?.length || 0), Pt = r(() => l.enableChartScrolling), Ft = r(() => cn({
|
|
14968
14990
|
baseMinHeight: 450,
|
|
14969
|
-
dataCount:
|
|
14970
|
-
enableChartScrolling:
|
|
14991
|
+
dataCount: Nt.value,
|
|
14992
|
+
enableChartScrolling: Pt.value,
|
|
14971
14993
|
isHorizontalScrollingChart: $e.value,
|
|
14972
14994
|
itemHeight: 64
|
|
14973
|
-
})),
|
|
14995
|
+
})), It = r(() => {
|
|
14974
14996
|
let e = ln({
|
|
14975
|
-
enableChartScrolling:
|
|
14997
|
+
enableChartScrolling: Pt.value,
|
|
14976
14998
|
isHorizontalScrollingChart: $e.value
|
|
14977
14999
|
});
|
|
14978
15000
|
if (e) return $e.value ? {
|
|
14979
15001
|
...e,
|
|
14980
15002
|
maxHeight: "450px"
|
|
14981
15003
|
} : e;
|
|
14982
|
-
}),
|
|
14983
|
-
chartMinHeight:
|
|
14984
|
-
dataCount:
|
|
14985
|
-
enableChartScrolling:
|
|
15004
|
+
}), Lt = r(() => un({
|
|
15005
|
+
chartMinHeight: Ft.value,
|
|
15006
|
+
dataCount: Nt.value,
|
|
15007
|
+
enableChartScrolling: Pt.value,
|
|
14986
15008
|
isHorizontalScrollingChart: $e.value,
|
|
14987
15009
|
minContentWidth: 0,
|
|
14988
|
-
reserveWidth:
|
|
14989
|
-
})),
|
|
14990
|
-
let e = .25 * Math.exp(-.12 *
|
|
15010
|
+
reserveWidth: xt.value.length > 0 ? 255 : 0
|
|
15011
|
+
})), Rt = r(() => Q.value ? Pe.value : vt.value), zt = r(() => Vs(Rt.value, Fe.value, Q.value)), Bt = r(() => Xe.value.reduce((e, t) => Math.max(e, Vs(Rt.value, t, Q.value)), -Infinity)), Vt = r(() => Ze.value.reduce((e, t) => Math.max(e, Vs(Rt.value, t, Q.value)), -Infinity)), Ht = r(() => Hs(Rt.value, Fe.value, Q.value)), Ut = r(() => Xe.value.reduce((e, t) => Math.min(e, Hs(Rt.value, t, Q.value)), Infinity)), Wt = r(() => He.value?.fieldValues?.length || 0), Gt = r(() => {
|
|
15012
|
+
let e = .25 * Math.exp(-.12 * Nt.value);
|
|
14991
15013
|
return Math.min(Math.max(e, .05), .75);
|
|
14992
|
-
}),
|
|
15014
|
+
}), Kt = r(() => Wt.value > 5 ? .5 : 1), qt = r(() => Wt.value > 5 ? .25 : .1), Jt = r(() => !vt.value || vt.value?.length === 0 ? !0 : zt.value === -Infinity || Q.value === !0 && zt.value === 0), Yt = r(() => !!(l.enableFocusView && ue.value && J.value.length === 0 && l.percentOfFocusViewYKey && Fe.value && Fe.value === l.percentOfFocusViewYKey)), Xt = r(() => {
|
|
14993
15015
|
let e = xe(ue.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
14994
15016
|
return Ns({
|
|
14995
15017
|
currentRowGroupColumnsLength: I.value.length,
|
|
14996
|
-
shouldShowFocusOverlayText:
|
|
14997
|
-
chartDataEmpty:
|
|
15018
|
+
shouldShowFocusOverlayText: Yt.value || l.focusRequired && J.value.length === 0,
|
|
15019
|
+
chartDataEmpty: Jt.value,
|
|
14998
15020
|
missingFocusText: l.missingFocusText,
|
|
14999
15021
|
displayGroupByName: t,
|
|
15000
15022
|
yAxisName: Je.value,
|
|
15001
15023
|
yAxisOptionCount: re.value
|
|
15002
15024
|
});
|
|
15003
|
-
}),
|
|
15025
|
+
}), Zt = r(() => Yt.value || q.value || !l.isLoading && Xt.value !== ""), Qt = r(() => {
|
|
15004
15026
|
let e = {};
|
|
15005
15027
|
e.overlays = { noData: { text: "" } };
|
|
15006
15028
|
let t = at.value ? [
|
|
15007
15029
|
{ [L.value]: cs },
|
|
15008
|
-
...
|
|
15030
|
+
...vt.value ?? [],
|
|
15009
15031
|
{ [L.value]: ls }
|
|
15010
|
-
] :
|
|
15011
|
-
e.data =
|
|
15032
|
+
] : vt.value;
|
|
15033
|
+
e.data = Zt.value ? [] : t, e.legend = {
|
|
15012
15034
|
toggleSeries: !1,
|
|
15013
15035
|
preventHidingAll: !0,
|
|
15014
15036
|
enabled: I.value.length > 1 || Re.value && ze.value.length > 0
|
|
15015
15037
|
};
|
|
15016
|
-
let n = (e) => rt.value ? [`${e}${fs}`] : Q.value ? He.value?.fieldValues.map((t) => Ls(e, String(t))) || [] : [e], r = [...Q.value ? He.value?.fieldValues.map((e) => Ls(Fe.value, e)) || [] : Fe.value ? [Fe.value] : [], ...Ze.value.flatMap(n)], i = Xe.value.flatMap(n), a = Ae.value.xAxis.hideLabel === !0 && !at.value, o = [];
|
|
15038
|
+
let n = (e) => rt.value ? [`${e}${fs}`] : Q.value && l.metricOverlayWithRowGroups ? [e] : Q.value ? He.value?.fieldValues.map((t) => Ls(e, String(t))) || [] : [e], r = [...Q.value ? He.value?.fieldValues.map((e) => Ls(Fe.value, e)) || [] : Fe.value ? [Fe.value] : [], ...Ze.value.flatMap(n)], i = Xe.value.flatMap(n), a = Ae.value.xAxis.hideLabel === !0 && !at.value, o = [];
|
|
15017
15039
|
if (o.push({
|
|
15018
15040
|
type: "category",
|
|
15019
15041
|
keys: [L.value],
|
|
@@ -15024,7 +15046,7 @@ var Qp = { style: {
|
|
|
15024
15046
|
stroke: "#666666",
|
|
15025
15047
|
strokeWidth: 1,
|
|
15026
15048
|
lineDash: [4, 4],
|
|
15027
|
-
strokeOpacity:
|
|
15049
|
+
strokeOpacity: St.value == null ? .7 : .15
|
|
15028
15050
|
}],
|
|
15029
15051
|
line: { enabled: !at.value },
|
|
15030
15052
|
label: {
|
|
@@ -15036,7 +15058,7 @@ var Qp = { style: {
|
|
|
15036
15058
|
formatter: Us({
|
|
15037
15059
|
hideLabel: a,
|
|
15038
15060
|
showDistributionRangeLabels: !!at.value,
|
|
15039
|
-
chartData:
|
|
15061
|
+
chartData: vt.value,
|
|
15040
15062
|
formatBucketBoundary: we,
|
|
15041
15063
|
columnValueFormatter: be(L.value),
|
|
15042
15064
|
enableFocusView: l.enableFocusView,
|
|
@@ -15044,11 +15066,11 @@ var Qp = { style: {
|
|
|
15044
15066
|
focusText: l.focusText
|
|
15045
15067
|
})
|
|
15046
15068
|
},
|
|
15047
|
-
paddingInner:
|
|
15048
|
-
paddingOuter: at.value ? 0 :
|
|
15049
|
-
groupPaddingInner:
|
|
15050
|
-
}), at.value &&
|
|
15051
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
15069
|
+
paddingInner: Gt.value,
|
|
15070
|
+
paddingOuter: at.value ? 0 : Kt.value,
|
|
15071
|
+
groupPaddingInner: qt.value
|
|
15072
|
+
}), at.value && bt.value.length > 0) {
|
|
15073
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = Gp(vt.value?.length || 1, !0);
|
|
15052
15074
|
o.push({
|
|
15053
15075
|
type: "number",
|
|
15054
15076
|
keys: ["__dummy_x__"],
|
|
@@ -15061,11 +15083,11 @@ var Qp = { style: {
|
|
|
15061
15083
|
tick: { enabled: !1 },
|
|
15062
15084
|
line: { enabled: !1 },
|
|
15063
15085
|
gridLine: { enabled: !1 },
|
|
15064
|
-
crossLines:
|
|
15065
|
-
if (!
|
|
15066
|
-
let n =
|
|
15086
|
+
crossLines: bt.value.map((t) => {
|
|
15087
|
+
if (!vt.value) return null;
|
|
15088
|
+
let n = Wp(t.value, vt.value);
|
|
15067
15089
|
if (n == null) return null;
|
|
15068
|
-
let r =
|
|
15090
|
+
let r = St.value != null && t.key === St.value, i = St.value != null && !r;
|
|
15069
15091
|
return {
|
|
15070
15092
|
type: "line",
|
|
15071
15093
|
value: n + e,
|
|
@@ -15077,7 +15099,7 @@ var Qp = { style: {
|
|
|
15077
15099
|
}).filter((e) => e !== null)
|
|
15078
15100
|
});
|
|
15079
15101
|
}
|
|
15080
|
-
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(
|
|
15102
|
+
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(Ht.value) && Ht.value < 0, f = s && Number.isFinite(Ut.value) && Ut.value < 0, p = d || f, m = s ? Ms(Math.max(zt.value, Vt.value), 5) : 0, h = s ? u ?? Ms(Bt.value, 5) : 0, g = s && !p && m > 0 && h > 0;
|
|
15081
15103
|
if (o.push({
|
|
15082
15104
|
type: "number",
|
|
15083
15105
|
keys: r,
|
|
@@ -15117,8 +15139,8 @@ var Qp = { style: {
|
|
|
15117
15139
|
text: Qe.value,
|
|
15118
15140
|
...et.value === "scatter" ? { color: _t } : {}
|
|
15119
15141
|
}
|
|
15120
|
-
}), at.value &&
|
|
15121
|
-
let e = Number.isFinite(
|
|
15142
|
+
}), at.value && bt.value.length > 0) {
|
|
15143
|
+
let e = Number.isFinite(zt.value) ? zt.value : 0;
|
|
15122
15144
|
o.push({
|
|
15123
15145
|
type: "number",
|
|
15124
15146
|
keys: ["__dummy_y__"],
|
|
@@ -15134,39 +15156,39 @@ var Qp = { style: {
|
|
|
15134
15156
|
});
|
|
15135
15157
|
}
|
|
15136
15158
|
return e.axes = o, e.series = tt.value, e;
|
|
15137
|
-
}),
|
|
15159
|
+
}), $t = r(() => M.value || l.isLoading && (!vt.value || vt.value.length === 0)), en = r(() => Yt.value || !q.value && !l.isLoading && Xt.value !== ""), tn = (e) => {
|
|
15138
15160
|
b.value = e, d("chart-collapsed", e);
|
|
15139
|
-
},
|
|
15140
|
-
p.value && (p.value.setRowGroupColumns(e ? I.value : []),
|
|
15161
|
+
}, rn = (e) => {
|
|
15162
|
+
p.value && (p.value.setRowGroupColumns(e ? I.value : []), le.value = e);
|
|
15141
15163
|
};
|
|
15142
|
-
function
|
|
15164
|
+
function an(e) {
|
|
15143
15165
|
return e?.hydrate ? m.value?.getFilterValueSelectedMetadataMap({ hydrate: !0 }) : m.value?.getFilterValueSelectedMetadataMap();
|
|
15144
15166
|
}
|
|
15145
15167
|
return n({
|
|
15146
|
-
getChartImageDataURL: (e) =>
|
|
15168
|
+
getChartImageDataURL: (e) => Et.value ? g.value?.getChartImageDataURL(e) : h.value?.getChartImageDataURL(e),
|
|
15147
15169
|
getCsvData: () => m.value?.getCsvData(),
|
|
15148
|
-
refreshData: (e) => (p.value &&
|
|
15149
|
-
getFilterValueSelectedMetadataMap:
|
|
15170
|
+
refreshData: (e) => (p.value && pt(p.value), m.value?.refreshData(e)),
|
|
15171
|
+
getFilterValueSelectedMetadataMap: an,
|
|
15150
15172
|
getPvFilterModel: () => m.value?.getPvFilterModel(),
|
|
15151
15173
|
setPvFilterModel: (e) => m.value?.setPvFilterModel(e),
|
|
15152
|
-
getChipSections: () =>
|
|
15174
|
+
getChipSections: () => xt.value
|
|
15153
15175
|
}), S(() => {
|
|
15154
15176
|
if (l.initialGridState) {
|
|
15155
15177
|
let e = l.initialGridState.rowGroup?.groupColIds || [];
|
|
15156
|
-
I.value = e, !l.allFieldsAreFocusable && e.length > 0 &&
|
|
15178
|
+
I.value = e, !l.allFieldsAreFocusable && e.length > 0 && G.setFocusType(e[0]);
|
|
15157
15179
|
}
|
|
15158
15180
|
}), T(async () => {
|
|
15159
15181
|
await v(), w.value = l.filterPanelAboveChart;
|
|
15160
|
-
}), (n, r) => (D(), o("div",
|
|
15182
|
+
}), (n, r) => (D(), o("div", Zp, [
|
|
15161
15183
|
s("div", {
|
|
15162
15184
|
class: y(["pv-stack-16", { "pv-flex": A.value }]),
|
|
15163
15185
|
style: x(A.value ? "--flex-wrap: wrap-reverse" : void 0)
|
|
15164
15186
|
}, [s("div", {
|
|
15165
15187
|
id: C,
|
|
15166
15188
|
style: x(A.value ? "flex: 1 1 auto; min-width: 0" : void 0)
|
|
15167
|
-
}, null, 4), A.value ? (D(), o("div",
|
|
15189
|
+
}, null, 4), A.value ? (D(), o("div", Qp, [j(n.$slots, "filter-panel-actions")])) : a("", !0)], 6),
|
|
15168
15190
|
j(n.$slots, "above-chart"),
|
|
15169
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
15191
|
+
e.hideChart ? a("", !0) : (D(), o("div", $p, [
|
|
15170
15192
|
u(Kn, {
|
|
15171
15193
|
rightIcon: "chevrons-down-up",
|
|
15172
15194
|
label: "Collapse",
|
|
@@ -15175,10 +15197,10 @@ var Qp = { style: {
|
|
|
15175
15197
|
"margin-left": "0.5rem"
|
|
15176
15198
|
},
|
|
15177
15199
|
variant: "secondary",
|
|
15178
|
-
onClick: r[0] ||= (e) =>
|
|
15200
|
+
onClick: r[0] ||= (e) => tn(!b.value),
|
|
15179
15201
|
class: y(e.hideChart || b.value ? "pv-hide" : "")
|
|
15180
15202
|
}, null, 8, ["class"]),
|
|
15181
|
-
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
15203
|
+
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div", em, [u(Hn, {
|
|
15182
15204
|
name: "chart-line",
|
|
15183
15205
|
size: 20,
|
|
15184
15206
|
class: "pv-text-subdued"
|
|
@@ -15189,15 +15211,17 @@ var Qp = { style: {
|
|
|
15189
15211
|
rightIcon: "chevron-selector",
|
|
15190
15212
|
label: "Expand",
|
|
15191
15213
|
variant: "secondary",
|
|
15192
|
-
onClick: r[1] ||= (e) =>
|
|
15214
|
+
onClick: r[1] ||= (e) => tn(!b.value)
|
|
15193
15215
|
})], 2),
|
|
15194
|
-
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(
|
|
15195
|
-
enablePanel:
|
|
15216
|
+
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(Hp, {
|
|
15217
|
+
enablePanel: vt.value != null && vt.value.length > 0,
|
|
15196
15218
|
chartFilter: e.chartFilter,
|
|
15197
15219
|
rowGroupLimit: Z.value,
|
|
15198
15220
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
15199
15221
|
"use-nested-menu": l.enableNestedChartConfigPanel,
|
|
15200
15222
|
"chart-config-options": l.chartConfigPanelOptions,
|
|
15223
|
+
"locked-row-group-col-ids": l.lockedRowGroupColIds,
|
|
15224
|
+
"metric-overlay-with-row-groups": l.metricOverlayWithRowGroups,
|
|
15201
15225
|
"read-only": l.chartConfigPanelReadOnly,
|
|
15202
15226
|
"percent-of-focus-view-y-key": l.percentOfFocusViewYKey,
|
|
15203
15227
|
onSeriesAggFuncSelected: he
|
|
@@ -15208,31 +15232,33 @@ var Qp = { style: {
|
|
|
15208
15232
|
"use-combined-button",
|
|
15209
15233
|
"use-nested-menu",
|
|
15210
15234
|
"chart-config-options",
|
|
15235
|
+
"locked-row-group-col-ids",
|
|
15236
|
+
"metric-overlay-with-row-groups",
|
|
15211
15237
|
"read-only",
|
|
15212
15238
|
"percent-of-focus-view-y-key"
|
|
15213
|
-
]), s("div",
|
|
15239
|
+
]), s("div", tm, [R(xt).length > 0 ? (D(), i(bp, {
|
|
15214
15240
|
key: 0,
|
|
15215
|
-
sections: R(
|
|
15216
|
-
onChipHover: r[2] ||= (e) =>
|
|
15241
|
+
sections: R(xt),
|
|
15242
|
+
onChipHover: r[2] ||= (e) => St.value = e
|
|
15217
15243
|
}, null, 8, ["sections"])) : a("", !0), s("div", {
|
|
15218
15244
|
class: "pv-relative pv-margin-auto pv-flex-item",
|
|
15219
|
-
style: x(
|
|
15220
|
-
}, [
|
|
15245
|
+
style: x(Et.value ? { height: Ot.value } : void 0)
|
|
15246
|
+
}, [Et.value ? (D(), i(qo, {
|
|
15221
15247
|
key: 0,
|
|
15222
15248
|
ref_key: "pvMapChartRef",
|
|
15223
15249
|
ref: g,
|
|
15224
|
-
selectedRegion:
|
|
15225
|
-
"onUpdate:selectedRegion": r[3] ||= (e) =>
|
|
15226
|
-
chartData:
|
|
15227
|
-
seriesKey:
|
|
15250
|
+
selectedRegion: Tt.value,
|
|
15251
|
+
"onUpdate:selectedRegion": r[3] ||= (e) => Tt.value = e,
|
|
15252
|
+
chartData: kt.value,
|
|
15253
|
+
seriesKey: Dt.value,
|
|
15228
15254
|
seriesLabel: Je.value,
|
|
15229
15255
|
clickable: !1,
|
|
15230
15256
|
displayRegionSelector: !1,
|
|
15231
|
-
gradientLegendMin:
|
|
15232
|
-
gradientLegendMax:
|
|
15233
|
-
seriesValueFormatter:
|
|
15234
|
-
isLoading:
|
|
15235
|
-
noDataMessage:
|
|
15257
|
+
gradientLegendMin: At.value.min,
|
|
15258
|
+
gradientLegendMax: At.value.max,
|
|
15259
|
+
seriesValueFormatter: jt.value,
|
|
15260
|
+
isLoading: $t.value,
|
|
15261
|
+
noDataMessage: Xt.value
|
|
15236
15262
|
}, null, 8, [
|
|
15237
15263
|
"selectedRegion",
|
|
15238
15264
|
"chartData",
|
|
@@ -15245,29 +15271,30 @@ var Qp = { style: {
|
|
|
15245
15271
|
"noDataMessage"
|
|
15246
15272
|
])) : (D(), o("div", {
|
|
15247
15273
|
key: 1,
|
|
15248
|
-
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible":
|
|
15249
|
-
style: x(
|
|
15274
|
+
class: y(["pv-data-table-with-chart__chart-scroll", { "pv-data-table-with-chart__chart-scroll--enabled pv-scrollbar-visible": Pt.value }]),
|
|
15275
|
+
style: x(It.value)
|
|
15250
15276
|
}, [s("div", {
|
|
15251
15277
|
class: "pv-data-table-with-chart__chart-content",
|
|
15252
|
-
style: x(
|
|
15253
|
-
}, [
|
|
15278
|
+
style: x(Lt.value)
|
|
15279
|
+
}, [(D(), i(nn, {
|
|
15254
15280
|
ref_key: "pvChartRef",
|
|
15255
15281
|
ref: h,
|
|
15256
|
-
|
|
15257
|
-
|
|
15282
|
+
key: ct.value,
|
|
15283
|
+
isLoading: $t.value,
|
|
15284
|
+
options: Qt.value,
|
|
15258
15285
|
enableFocusView: e.enableFocusView,
|
|
15259
|
-
minHeight:
|
|
15286
|
+
minHeight: Ft.value
|
|
15260
15287
|
}, null, 8, [
|
|
15261
15288
|
"isLoading",
|
|
15262
15289
|
"options",
|
|
15263
15290
|
"enableFocusView",
|
|
15264
15291
|
"minHeight"
|
|
15265
|
-
]), R(
|
|
15292
|
+
])), R(Ct) ? (D(), o("div", {
|
|
15266
15293
|
key: 0,
|
|
15267
|
-
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(
|
|
15294
|
+
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(Ct).arrowClass]),
|
|
15268
15295
|
"data-variant": "white",
|
|
15269
|
-
style: x(R(
|
|
15270
|
-
}, [s("div",
|
|
15296
|
+
style: x(R(Ct).style)
|
|
15297
|
+
}, [s("div", nm, [s("div", rm, P(R(Ct).label), 1), s("div", im, P(R(Ct).value), 1)])], 6)) : a("", !0)], 4)], 6)), Et.value ? a("", !0) : (D(), o("div", am, [q.value ? (D(), o("div", om, [(D(), i(N(e.emptyChartFilterRenderer)))])) : en.value ? (D(), o("p", sm, P(Xt.value), 1)) : a("", !0)]))], 4)])], 2)
|
|
15271
15298
|
])),
|
|
15272
15299
|
u(Kf, _({
|
|
15273
15300
|
ref_key: "pvDataTableRef",
|
|
@@ -15275,7 +15302,7 @@ var Qp = { style: {
|
|
|
15275
15302
|
}, n.$props, {
|
|
15276
15303
|
filterTeleportLocation: w.value ? `#${C}` : void 0,
|
|
15277
15304
|
wrapHorizontalFilters: l.wrapHorizontalFilters || A.value,
|
|
15278
|
-
pagination: e.pagination || !
|
|
15305
|
+
pagination: e.pagination || !le.value,
|
|
15279
15306
|
onColumnRowGroupChanged: _e,
|
|
15280
15307
|
onColumnValueChanged: me,
|
|
15281
15308
|
onGridReady: Y,
|
|
@@ -15288,18 +15315,18 @@ var Qp = { style: {
|
|
|
15288
15315
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
15289
15316
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
15290
15317
|
}), {
|
|
15291
|
-
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
15318
|
+
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(pp, {
|
|
15292
15319
|
key: 0,
|
|
15293
|
-
groupedModeEnabled:
|
|
15320
|
+
groupedModeEnabled: le.value,
|
|
15294
15321
|
tableConfigOptions: l.tableConfigOptions,
|
|
15295
|
-
onToggleGroup:
|
|
15296
|
-
onTableOverlayChange:
|
|
15322
|
+
onToggleGroup: rn,
|
|
15323
|
+
onTableOverlayChange: K,
|
|
15297
15324
|
onColumnConfigChange: pe
|
|
15298
15325
|
}, null, 8, ["groupedModeEnabled", "tableConfigOptions"])) : (D(), i(Kn, {
|
|
15299
15326
|
key: 1,
|
|
15300
|
-
leftIcon:
|
|
15301
|
-
label:
|
|
15302
|
-
onClick: r[4] ||= (e) =>
|
|
15327
|
+
leftIcon: le.value ? "ungroup" : "group",
|
|
15328
|
+
label: le.value ? "Ungroup Table" : "Group Table to Match Chart",
|
|
15329
|
+
onClick: r[4] ||= (e) => rn(!le.value),
|
|
15303
15330
|
variant: "secondary",
|
|
15304
15331
|
size: "lg"
|
|
15305
15332
|
}, null, 8, ["leftIcon", "label"]))], 64)) : a("", !0), j(n.$slots, "top-slot")]),
|
|
@@ -15311,7 +15338,7 @@ var Qp = { style: {
|
|
|
15311
15338
|
])
|
|
15312
15339
|
]));
|
|
15313
15340
|
}
|
|
15314
|
-
}),
|
|
15341
|
+
}), lm = "Unable to load data", um = (e, t = {}) => {
|
|
15315
15342
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
15316
15343
|
let t = ++o;
|
|
15317
15344
|
i.value = !0;
|
|
@@ -15341,6 +15368,6 @@ var Qp = { style: {
|
|
|
15341
15368
|
};
|
|
15342
15369
|
};
|
|
15343
15370
|
//#endregion
|
|
15344
|
-
export {
|
|
15371
|
+
export { lm as DEFAULT_DATA_WIDGET_ERROR_TEXT, wt as PitViperAGChartsMonochromeTheme, Ct as PitViperAGChartsMonochromeThemeName, Et as PitViperAGChartsMulticolorTheme, Tt as PitViperAGChartsMulticolorThemeName, nn as PvChart, wn as PvChartWidget, Kf as PvDataTable, cm as PvDataTableWithChart, fc as PvDataWidget, qo as PvMapChart, Kl as RumContextKey, _t as SCATTER_MARKER_STROKE, Jl as addRumAction, cd as constructAdvancedFilterCondition, ld as convertFilterModelToAdvanced, Vd as createPvDataTableFilterStore, Yl as deferRumTask, Id as excludeValueFromSetFilter, hd as filterModelContainsColId, Dd as filterModelsEqual, Md as getSelectedValues, Ad as getSelectedValuesFromAdvancedFilterModel, xd as getSelectedValuesFromFilterModel, jd as getSelectedValuesFromFilterModelByColId, Sd as isAdvancedFilterModel, wd as isFilterModelEmpty, Od as mergeAdvancedFilterCondition, gd as mergeFilterModels, Hd as providePvDataTableFilterStore, Nd as removeColumnFilter, kd as removeColumnFromAdvancedFilter, Fd as updateMultiOrSetFilter, Pd as updateSetFilter, Wd as usePvDataTableFilterStore, um as usePvDataWidgetData, ql as useRumContext };
|
|
15345
15372
|
|
|
15346
15373
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|