@turquoisehealth/pit-viper 2.236.2 → 2.238.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +65 -0
- package/_site/assets/css/pit-viper-consumer.css +65 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +64 -0
- package/_site/assets/css/pit-viper-v2.css +65 -0
- package/_site/assets/css/pit-viper.css +65 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-header-stats.html +1 -1
- package/pv-components/dist/vue/ai/components/base/PvHeader/PvHeader.vue.d.ts +8 -14
- package/pv-components/dist/vue/ai/components/base/PvHeader/types.d.ts +10 -0
- package/pv-components/dist/vue/base/components/base/PvHeader/PvHeader.vue.d.ts +8 -14
- package/pv-components/dist/vue/base/components/base/PvHeader/types.d.ts +10 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +26 -22
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvHeader/PvHeader.vue.d.ts +8 -14
- package/pv-components/dist/vue/visualizations/components/base/PvHeader/types.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/helpers.d.ts +5 -0
- package/pv-components/dist/vue/visualizations/components/tables/themes.d.ts +7 -1
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +710 -688
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-header/pv-header.js +430 -423
- package/pv-components/dist/web/pv-components.iife.js +1 -1
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-84aa8907]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-84aa8907]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-84aa8907]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-84aa8907]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-84aa8907]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-84aa8907]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-84aa8907]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-84aa8907]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-84aa8907]{color:#16696d;animation:1.5s ease-in-out infinite pulse-84aa8907}@keyframes pulse-84aa8907{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#f7f8f8);transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-876c5abd]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-001de299]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-001de299]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-001de299],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-001de299]{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-text-tertiary[data-v-0b94d7eb]{color:#89989b}.pv-button-placeholder[data-v-0b94d7eb]{width:24px;height:24px}.pv-sort-option[data-v-0b94d7eb]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-0b94d7eb]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-0b94d7eb]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-0b94d7eb]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-0b94d7eb]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-0b94d7eb]{display:flex}.sort-divider[data-v-0b94d7eb]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-0b94d7eb]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-1ef60ad1] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.ag-charts-floating-toolbar{display:none!important}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-84aa8907]{pointer-events:none;z-index:2;grid-template-rows:1fr 1fr;grid-template-columns:1fr 1fr;width:100%;height:100%;display:grid;position:absolute;top:0;left:0}.pv-scatter-quadrant[data-v-84aa8907]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-84aa8907]{color:#666;pointer-events:all;background:#8080801a;border-radius:4px;max-width:calc(100% - 10px);max-height:calc(100% - 10px);padding:8px;font-size:12px;font-weight:600;overflow:auto}.pv-scatter-quadrant-top-left[data-v-84aa8907]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-84aa8907]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-84aa8907]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-84aa8907]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-84aa8907]{text-align:center;opacity:1;z-index:4;background-color:#fff;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;top:0;left:0}.pv-chart-loading-icon[data-v-84aa8907]{color:#16696d;animation:1.5s ease-in-out infinite pulse-84aa8907}@keyframes pulse-84aa8907{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-21acdc5d]{box-sizing:border-box;flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;position:relative}.pv-chart-widget--constrained[data-v-21acdc5d]{overflow:hidden}.pv-chart-widget__chart-area[data-v-21acdc5d]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-21acdc5d]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-content[data-v-21acdc5d]{height:100%;min-height:100%}.pv-badge-md[data-v-013a5d76]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-013a5d76]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-input-search[data-v-9e0c84d9]{display:block}.pv-select-button-trigger-content[data-v-da9865ad]{min-width:0}.pv-select-button-trigger[data-v-da9865ad]{height:1.5rem;padding-block:0}.pv-select-button-trigger.pv-button-large[data-v-da9865ad]{height:2rem}.pv-select-button-trigger-label[data-v-da9865ad]{flex:auto;min-width:0}.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):hover:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):focus-visible:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:not(:disabled):active:after,.pv-switch-hide-check[data-v-73e6d2b2] input[type=checkbox]:checked:disabled:after{background-image:unset}.pv-action-button-reveal-on-hover{opacity:0;transition:opacity .2s}.pv-label:hover .pv-action-button-reveal-on-hover{opacity:1}.pv-menu-item-disabled[data-v-f337a1d6]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item-disabled .pv-menu-item-action[data-v-f337a1d6]{pointer-events:auto;display:inline-flex}.pv-menu-item{&[data-v-f337a1d6]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-f337a1d6]:hover,&[data-v-f337a1d6]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-f337a1d6]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-f337a1d6]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-f337a1d6]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-f337a1d6]{pointer-events:auto;color:inherit}.pv-popover-list[data-v-246a9400]{font-size:14px}.pv-menu-popover[data-v-f14f755f]{z-index:50}.pv-popover-list>li[data-v-f14f755f]:last-child>.pv-label{margin-block-end:0}[data-v-f14f755f] .pv-menu-nested:after{content:"";border-top:1.5px solid;border-right:1.5px solid;flex-shrink:0;width:.4rem;height:.4rem;margin-left:auto;margin-right:.2rem;transform:rotate(45deg)}.pv-map-chart[data-v-af7882f9]{flex-direction:column;width:100%;height:100%;display:flex}.pv-map-chart__header[data-v-af7882f9]{flex:none}.pv-map-chart__chart[data-v-af7882f9]{flex:auto;min-height:0}.pv-data-widget[data-v-9118bfea]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-9118bfea]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-9118bfea]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-9118bfea]{min-height:0}.pv-data-widget__below-table[data-v-9118bfea]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-9118bfea]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-9118bfea]{flex:none}.pv-data-widget__chart-scroll[data-v-9118bfea]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-9118bfea]{flex:auto}.pv-data-widget__chart-content[data-v-9118bfea]{min-height:100%}.pv-button-icon[aria-expanded=true][data-v-6e4b23d8]{background-color:#c7d8db}.pv-select[data-v-6e4b23d8]{padding-top:4px;padding-bottom:4px}.dots-button[data-v-6c36dca2]{color:#4b595c;background-color:#0000}.input-icon-position{pointer-events:none;position:absolute;top:8px;left:12px}.pv-text-tertiary[data-v-ff951d17]{color:#6e8081}.pv-query-builder-input-wrapper[data-v-97679942]{background:var(--secondary-lighten-8,#f7f8f8);border-radius:var(--corner-radius-M,4px);border:1px solid var(--stroke-light,#e3e7ea);cursor:text;--button-small-icon-only-padding:.1875rem;align-items:center;width:100%;min-height:2rem;padding:.1875rem .25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input-small[data-v-97679942]{--button-small-icon-only-padding:.0625rem;min-height:1.5rem;padding-block:.0625rem}.pv-query-builder-input[data-v-97679942]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-97679942]{background:0 0;border:none;outline:none;flex:1rem;min-width:1rem;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-97679942]:focus-within{border-color:var(--text-input-focus-border-color,#36c5ba)}.pv-table-row-count{opacity:1;background-color:var(--color-background-accent,#f7f8f8);transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:var(--color-text-quaternary,#89989b);padding:8px 12px 8px 0}.suggested-title-label[data-v-cdeeca2c]:hover{color:var(--color-text-brand,#0d5256);text-decoration:underline}.pv-details-no-carat>summary[data-v-b4740f96]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-92c7c86f]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-92c7c86f]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-92c7c86f],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-92c7c86f]{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-0b94d7eb]{color:#89989b}.pv-button-placeholder[data-v-0b94d7eb]{width:24px;height:24px}.pv-sort-option[data-v-0b94d7eb]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-0b94d7eb]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-0b94d7eb]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-0b94d7eb]{justify-content:center;align-items:center;padding:8px 4px;transition:all .2s;border-style:dashed!important;border-color:#e3e7ea!important}.placeholder-zone.placeholder-drag-over .pv-placeholder-dropzone[data-v-0b94d7eb]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-0b94d7eb]{display:flex}.sort-divider[data-v-0b94d7eb]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-0b94d7eb]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested:after{content:"›";margin-left:auto}[data-v-1ef60ad1] .pv-legacy-chart-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}[data-v-1ef60ad1] .pv-legacy-chart-option{min-width:150px;max-width:225px}.pv-chart-config-popover{width:max-content;max-width:500px}.pv-data-table-with-chart__chart-scroll{contain:inline-size;width:100%;min-height:0;overflow:hidden}.pv-data-table-with-chart__chart-content{min-height:100%}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.pv-data-table-with-chart__crossline-tooltip.ag-charts-tooltip{border-radius:4px;box-shadow:0 0 8px #0000001f}.ag-charts-floating-toolbar{display:none!important}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
3
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onBeforeUpdate as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, ref as k, renderList as A, renderSlot as j, resolveComponent as M, resolveDynamicComponent as N, shallowRef as 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
4
|
import { AgCharts as se } from "ag-charts-vue3";
|
|
@@ -6866,13 +6866,17 @@ var Qa = {
|
|
|
6866
6866
|
ds.Integer,
|
|
6867
6867
|
ds.Formula
|
|
6868
6868
|
].includes(t) : !1;
|
|
6869
|
-
}, xs = (e) =>
|
|
6869
|
+
}, xs = (e) => {
|
|
6870
|
+
if (bs(e)) return !0;
|
|
6871
|
+
let t = e.type;
|
|
6872
|
+
return t ? (Array.isArray(t) ? t : [t]).includes("rightAligned") : !1;
|
|
6873
|
+
}, Ss = (e) => e ? [e.field, ...(e.children || []).flatMap(Ss)] : [], Cs = (e) => {
|
|
6870
6874
|
let t = $(e);
|
|
6871
|
-
return t.aggregateFieldHierarchy ?
|
|
6872
|
-
},
|
|
6875
|
+
return t.aggregateFieldHierarchy ? Ss(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
6876
|
+
}, ws = (e) => {
|
|
6873
6877
|
let t = $(e);
|
|
6874
6878
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6875
|
-
},
|
|
6879
|
+
}, Ts = (e) => Cs(e).length > 0, Es = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
6876
6880
|
let n = t.find((t) => t?.field === e.field);
|
|
6877
6881
|
return n && bs(n) ? {
|
|
6878
6882
|
...e,
|
|
@@ -6881,19 +6885,19 @@ var Qa = {
|
|
|
6881
6885
|
...e,
|
|
6882
6886
|
aggFunc: void 0
|
|
6883
6887
|
};
|
|
6884
|
-
}),
|
|
6888
|
+
}), Ds = (e) => e.map((e) => ({
|
|
6885
6889
|
id: e.getColId(),
|
|
6886
6890
|
displayName: e.getColDef().headerName || "",
|
|
6887
6891
|
field: e.getColDef().field || "",
|
|
6888
6892
|
aggFunc: e.getAggFunc() || void 0
|
|
6889
|
-
})),
|
|
6893
|
+
})), Os = (e) => {
|
|
6890
6894
|
let t = $(e);
|
|
6891
6895
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
6892
|
-
},
|
|
6896
|
+
}, ks = (e, t, n) => n.has(e) && typeof t == "string" ? `${e}_${t}` : e, As = (e, t) => {
|
|
6893
6897
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6894
6898
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6895
6899
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6896
|
-
},
|
|
6900
|
+
}, js = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i, yAxisName: a, yAxisOptionCount: o }) => e === 0 ? "No groups selected. Select at least one group to display data." : t ? r ?? `Select focus ${i} to view Visualization.` : n ? a && (o ?? 0) > 1 ? `No data available for ${a}, please select a different one.` : It : "", Ms = (e) => e ? $(e).dataType === ds.Date : !1, Ns = (e) => {
|
|
6897
6901
|
if (e instanceof Date) {
|
|
6898
6902
|
let t = e.getTime();
|
|
6899
6903
|
return Number.isNaN(t) ? null : t;
|
|
@@ -6915,10 +6919,10 @@ var Qa = {
|
|
|
6915
6919
|
if (!n || !t.includes("T")) return s.getTime();
|
|
6916
6920
|
let c = Date.parse(t);
|
|
6917
6921
|
return Number.isNaN(c) ? null : c;
|
|
6918
|
-
},
|
|
6919
|
-
let r =
|
|
6922
|
+
}, Ps = (e, t) => !e || e.length === 0 || !t ? e : [...e].sort((e, n) => {
|
|
6923
|
+
let r = Ns(e[t]), i = Ns(n[t]);
|
|
6920
6924
|
return r === null && i === null ? String(e[t] ?? "").localeCompare(String(n[t] ?? "")) : r === null ? 1 : i === null ? -1 : r - i;
|
|
6921
|
-
}),
|
|
6925
|
+
}), Fs = (e, t) => `${e}_${t}`, Is = (e) => `secondaryCategory_${e}`, Ls = (e, t, n, r, i = []) => {
|
|
6922
6926
|
if (!e || e.length === 0) return {
|
|
6923
6927
|
data: [],
|
|
6924
6928
|
uniqueFieldValues: []
|
|
@@ -6931,7 +6935,7 @@ var Qa = {
|
|
|
6931
6935
|
let o = e.reduce((e, o) => {
|
|
6932
6936
|
let s = o[t];
|
|
6933
6937
|
e[s] || (e[s] = {});
|
|
6934
|
-
let c = o[n], l =
|
|
6938
|
+
let c = o[n], l = Is(c);
|
|
6935
6939
|
e[s][l] = `${s}-${c}`;
|
|
6936
6940
|
for (let t of r) {
|
|
6937
6941
|
let r = t.value, i = 0;
|
|
@@ -6939,7 +6943,7 @@ var Qa = {
|
|
|
6939
6943
|
let l = o[r];
|
|
6940
6944
|
if (a.add(c), n && l) {
|
|
6941
6945
|
let t = l ?? 0;
|
|
6942
|
-
e[s][
|
|
6946
|
+
e[s][Fs(r, c)] = t, i += t;
|
|
6943
6947
|
}
|
|
6944
6948
|
e[s][`${r}${us}`] = i;
|
|
6945
6949
|
}
|
|
@@ -6953,11 +6957,11 @@ var Qa = {
|
|
|
6953
6957
|
})),
|
|
6954
6958
|
uniqueFieldValues: Array.from(a)
|
|
6955
6959
|
};
|
|
6956
|
-
},
|
|
6960
|
+
}, Rs = (e, t) => !e || e.length !== 1 ? e : [
|
|
6957
6961
|
{ [t]: cs },
|
|
6958
6962
|
e[0],
|
|
6959
6963
|
{ [t]: ls }
|
|
6960
|
-
],
|
|
6964
|
+
], zs = (e, t, n) => {
|
|
6961
6965
|
let r = -Infinity;
|
|
6962
6966
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
6963
6967
|
let n = e[t + us];
|
|
@@ -6966,7 +6970,7 @@ var Qa = {
|
|
|
6966
6970
|
let n = e[t];
|
|
6967
6971
|
typeof n == "number" && n > r && (r = n);
|
|
6968
6972
|
})), r;
|
|
6969
|
-
},
|
|
6973
|
+
}, Bs = (e, t, n) => {
|
|
6970
6974
|
let r = Infinity;
|
|
6971
6975
|
if (!e || e.length === 0) return r;
|
|
6972
6976
|
let i = n ? t + us : t;
|
|
@@ -6974,7 +6978,7 @@ var Qa = {
|
|
|
6974
6978
|
let t = e[i];
|
|
6975
6979
|
typeof t == "number" && t < r && (r = t);
|
|
6976
6980
|
}), r;
|
|
6977
|
-
},
|
|
6981
|
+
}, Vs = ({ hideLabel: e, showDistributionRangeLabels: t, chartData: n, formatBucketBoundary: r, columnValueFormatter: i, enableFocusView: a, focuses: o, focusText: s }) => e ? () => "" : t ? (e) => !n || n.length === 0 ? "" : e.value === "--DISTRIBUTION-RANGE-MIN--" ? r(n[0].bucketMin) : e.value === "--DISTRIBUTION-RANGE-MAX--" ? r(n[n.length - 1].bucketMax) : "" : (e) => {
|
|
6978
6982
|
if (e.value === "--SEPARATOR--" || e.value === "--PAD-START--" || e.value === "--PAD-END--") return "";
|
|
6979
6983
|
let t = e.value;
|
|
6980
6984
|
typeof i == "function" && (t = i(e));
|
|
@@ -6984,13 +6988,13 @@ var Qa = {
|
|
|
6984
6988
|
return t.substring(0, e) + "..." + n;
|
|
6985
6989
|
}
|
|
6986
6990
|
return t + n;
|
|
6987
|
-
},
|
|
6991
|
+
}, Hs = new Map(Jo.map((e) => [e.value, e])), Us = (e) => e !== null, Ws = (e) => {
|
|
6988
6992
|
let t = Number(e ?? 0);
|
|
6989
6993
|
return Number.isFinite(t) ? t : 0;
|
|
6990
|
-
},
|
|
6994
|
+
}, Gs = (e) => {
|
|
6991
6995
|
let t = typeof e == "string" ? { value: e } : e, n = t.value;
|
|
6992
6996
|
if (!n) return null;
|
|
6993
|
-
let r =
|
|
6997
|
+
let r = Hs.get(n), i = t.label ?? r?.label ?? n;
|
|
6994
6998
|
return {
|
|
6995
6999
|
ariaLabel: t.ariaLabel ?? i,
|
|
6996
7000
|
icon: t.icon ?? r?.icon,
|
|
@@ -6998,10 +7002,10 @@ var Qa = {
|
|
|
6998
7002
|
label: i,
|
|
6999
7003
|
value: n
|
|
7000
7004
|
};
|
|
7001
|
-
},
|
|
7002
|
-
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : Yo).map(
|
|
7005
|
+
}, Ks = (e = [], t = {}) => {
|
|
7006
|
+
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : Yo).map(Gs).filter(Us);
|
|
7003
7007
|
if (!r.some((e) => e.value !== "table")) {
|
|
7004
|
-
let e =
|
|
7008
|
+
let e = Gs(Xo);
|
|
7005
7009
|
e && (r = [e, ...r]);
|
|
7006
7010
|
}
|
|
7007
7011
|
if (!e.some((e) => typeof e == "object" && !!e)) {
|
|
@@ -7016,21 +7020,21 @@ var Qa = {
|
|
|
7016
7020
|
}
|
|
7017
7021
|
}
|
|
7018
7022
|
return r;
|
|
7019
|
-
},
|
|
7023
|
+
}, qs = (e, t) => t.find((t) => t.value === e)?.value ?? t[0]?.value ?? "table", Js = (e, t = []) => {
|
|
7020
7024
|
if (t.length > 0) return t.filter((e) => !e.hide);
|
|
7021
7025
|
let n = e[0];
|
|
7022
7026
|
return n ? Object.keys(n).map((e) => ({
|
|
7023
7027
|
field: e,
|
|
7024
7028
|
headerName: e
|
|
7025
7029
|
})) : [];
|
|
7026
|
-
},
|
|
7030
|
+
}, Ys = (e, t = "") => e?.context?.chartSeriesDisplayName ?? e?.headerName ?? e?.field ?? t, Xs = (e) => String(e?.context?.dataType ?? e?.dataType ?? e?.type ?? "").toLowerCase(), Zs = (e, t) => {
|
|
7027
7031
|
if (!e) return !1;
|
|
7028
|
-
let n =
|
|
7032
|
+
let n = Xs(e);
|
|
7029
7033
|
return Qo.has(n) ? !0 : t.some((t) => typeof t[e.field] == "number");
|
|
7030
|
-
},
|
|
7034
|
+
}, Qs = (e, t) => {
|
|
7031
7035
|
let n = e[t];
|
|
7032
7036
|
return n == null ? "" : String(n);
|
|
7033
|
-
},
|
|
7037
|
+
}, $s = (e, t) => {
|
|
7034
7038
|
let n = e, r = { ...n };
|
|
7035
7039
|
if (t.noDataOverlayText) {
|
|
7036
7040
|
let e = fn(n.overlays), i = fn(e?.noData);
|
|
@@ -7051,26 +7055,26 @@ var Qa = {
|
|
|
7051
7055
|
hideValueAxis: t.hideValueAxis,
|
|
7052
7056
|
showAxes: !t.hideAxes
|
|
7053
7057
|
});
|
|
7054
|
-
},
|
|
7058
|
+
}, ec = ({ dataRows: e, categoryColumn: t, seriesColumn: n, stackColumn: r }) => {
|
|
7055
7059
|
if (!t || !n || !r) return {
|
|
7056
7060
|
data: e,
|
|
7057
7061
|
stackValues: []
|
|
7058
7062
|
};
|
|
7059
7063
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
7060
7064
|
return e.forEach((e) => {
|
|
7061
|
-
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c =
|
|
7065
|
+
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c = Fs(n.field, s);
|
|
7062
7066
|
a.add(s);
|
|
7063
7067
|
let l = i.get(o) ?? { [t.field]: o };
|
|
7064
|
-
l[c] = Number(l[c] ?? 0) +
|
|
7068
|
+
l[c] = Number(l[c] ?? 0) + Ws(e[n.field]), i.set(o, l);
|
|
7065
7069
|
}), {
|
|
7066
7070
|
data: Array.from(i.values()),
|
|
7067
7071
|
stackValues: Array.from(a)
|
|
7068
7072
|
};
|
|
7069
|
-
},
|
|
7073
|
+
}, tc = ({ dataRows: e, categoryColumn: t, seriesColumn: n }) => {
|
|
7070
7074
|
if (!t || !n) return e;
|
|
7071
7075
|
let r = /* @__PURE__ */ new Map();
|
|
7072
7076
|
return e.forEach((e) => {
|
|
7073
|
-
let i = e[t.field] ?? "", a = String(i), o =
|
|
7077
|
+
let i = e[t.field] ?? "", a = String(i), o = Ws(e[n.field]), s = r.get(a);
|
|
7074
7078
|
if (s) {
|
|
7075
7079
|
s[n.field] = Number(s[n.field] ?? 0) + o;
|
|
7076
7080
|
return;
|
|
@@ -7081,16 +7085,16 @@ var Qa = {
|
|
|
7081
7085
|
[n.field]: o
|
|
7082
7086
|
});
|
|
7083
7087
|
}), Array.from(r.values());
|
|
7084
|
-
},
|
|
7088
|
+
}, nc = ({ dataRows: e, mapColumn: t, seriesColumn: n }) => {
|
|
7085
7089
|
if (!t || !n) return [];
|
|
7086
7090
|
let r = /* @__PURE__ */ new Map();
|
|
7087
7091
|
return e.forEach((e) => {
|
|
7088
7092
|
let i = String(e[t.field] ?? "");
|
|
7089
7093
|
if (!i) return;
|
|
7090
7094
|
let a = r.get(i) ?? { state: i };
|
|
7091
|
-
a[n.field] = Number(a[n.field] ?? 0) +
|
|
7095
|
+
a[n.field] = Number(a[n.field] ?? 0) + Ws(e[n.field]), r.set(i, a);
|
|
7092
7096
|
}), Array.from(r.values());
|
|
7093
|
-
},
|
|
7097
|
+
}, rc = (e, t) => {
|
|
7094
7098
|
if (!t || e.length === 0) return {
|
|
7095
7099
|
min: 0,
|
|
7096
7100
|
max: 0
|
|
@@ -7106,8 +7110,8 @@ var Qa = {
|
|
|
7106
7110
|
min: 0,
|
|
7107
7111
|
max: 0
|
|
7108
7112
|
};
|
|
7109
|
-
},
|
|
7110
|
-
let t =
|
|
7113
|
+
}, ic = (e) => {
|
|
7114
|
+
let t = Xs(e);
|
|
7111
7115
|
return t === "currency" ? (e) => e.toLocaleString("en-US", {
|
|
7112
7116
|
currency: "USD",
|
|
7113
7117
|
maximumFractionDigits: 0,
|
|
@@ -7116,7 +7120,7 @@ var Qa = {
|
|
|
7116
7120
|
maximumFractionDigits: 0,
|
|
7117
7121
|
style: "percent"
|
|
7118
7122
|
}) : (e) => e.toLocaleString("en-US");
|
|
7119
|
-
},
|
|
7123
|
+
}, ac = ({ aggregatedCategoryChartData: e, categoryColumn: t, dataLimit: n, displayDataRows: r, hideAxes: i, hideAxisTitles: a, hideLegend: o, hideValueAxis: s, noDataOverlayText: c, numericColumns: l, providedChartOptions: u, secondarySeriesColumn: d, selectedChartType: f, seriesColumn: p, showSeriesLabels: m, stackColumn: h, stackedChartData: g, useDisplayDataRows: _, xKey: v, yKey: y }) => {
|
|
7120
7124
|
let b = {
|
|
7121
7125
|
dataLimit: n,
|
|
7122
7126
|
hideAxes: i,
|
|
@@ -7125,12 +7129,12 @@ var Qa = {
|
|
|
7125
7129
|
hideValueAxis: s,
|
|
7126
7130
|
noDataOverlayText: c
|
|
7127
7131
|
};
|
|
7128
|
-
if (u) return
|
|
7132
|
+
if (u) return $s({
|
|
7129
7133
|
...u,
|
|
7130
7134
|
data: _ ? r : u.data ?? r
|
|
7131
7135
|
}, b);
|
|
7132
|
-
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w =
|
|
7133
|
-
if (x === "pie") return
|
|
7136
|
+
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w = Ys(t, S), T = Ys(p, C);
|
|
7137
|
+
if (x === "pie") return $s({
|
|
7134
7138
|
data: e,
|
|
7135
7139
|
series: [{
|
|
7136
7140
|
type: "pie",
|
|
@@ -7142,34 +7146,34 @@ var Qa = {
|
|
|
7142
7146
|
}, b);
|
|
7143
7147
|
if (x === "scatter") {
|
|
7144
7148
|
let e = v === void 0 ? l[0] ?? t : t, n = y === void 0 ? l.find((t) => t.field !== e?.field) ?? d ?? p : p, i = e?.field ?? S, a = n?.field ?? C;
|
|
7145
|
-
return
|
|
7149
|
+
return $s({
|
|
7146
7150
|
data: r,
|
|
7147
7151
|
series: [{
|
|
7148
7152
|
type: "scatter",
|
|
7149
7153
|
xKey: i,
|
|
7150
|
-
xName:
|
|
7154
|
+
xName: Ys(e, i),
|
|
7151
7155
|
yKey: a,
|
|
7152
|
-
yName:
|
|
7156
|
+
yName: Ys(n, a)
|
|
7153
7157
|
}],
|
|
7154
7158
|
axes: [{
|
|
7155
7159
|
type: "number",
|
|
7156
7160
|
position: "bottom",
|
|
7157
|
-
title: { text:
|
|
7161
|
+
title: { text: Ys(e, i) }
|
|
7158
7162
|
}, {
|
|
7159
7163
|
type: "number",
|
|
7160
7164
|
position: "left",
|
|
7161
|
-
title: { text:
|
|
7165
|
+
title: { text: Ys(n, a) }
|
|
7162
7166
|
}]
|
|
7163
7167
|
}, b);
|
|
7164
7168
|
}
|
|
7165
7169
|
if (x === "histogram") {
|
|
7166
7170
|
let e = v === void 0 ? l[0] ?? p ?? t : t, n = e?.field ?? C;
|
|
7167
|
-
return
|
|
7171
|
+
return $s({
|
|
7168
7172
|
data: r,
|
|
7169
7173
|
series: [{
|
|
7170
7174
|
type: "histogram",
|
|
7171
7175
|
xKey: n,
|
|
7172
|
-
xName:
|
|
7176
|
+
xName: Ys(e, n)
|
|
7173
7177
|
}]
|
|
7174
7178
|
}, b);
|
|
7175
7179
|
}
|
|
@@ -7177,13 +7181,13 @@ var Qa = {
|
|
|
7177
7181
|
enabled: !0,
|
|
7178
7182
|
...D === "bar" ? { placement: "outside-end" } : {}
|
|
7179
7183
|
} } : {}, A = x.endsWith("_stacked") && !!h, j = !!h && (A || g.stackValues.length > 1);
|
|
7180
|
-
return
|
|
7184
|
+
return $s({
|
|
7181
7185
|
data: j ? g.data : e,
|
|
7182
7186
|
series: j ? g.stackValues.map((e) => ({
|
|
7183
7187
|
type: D,
|
|
7184
7188
|
xKey: S,
|
|
7185
7189
|
xName: w,
|
|
7186
|
-
yKey:
|
|
7190
|
+
yKey: Fs(C, e),
|
|
7187
7191
|
yName: e,
|
|
7188
7192
|
...D === "bar" ? { direction: O ? "horizontal" : "vertical" } : {},
|
|
7189
7193
|
...A ? { stacked: !0 } : {},
|
|
@@ -7207,16 +7211,16 @@ var Qa = {
|
|
|
7207
7211
|
title: { text: T }
|
|
7208
7212
|
}]
|
|
7209
7213
|
}, b);
|
|
7210
|
-
},
|
|
7214
|
+
}, oc = {
|
|
7211
7215
|
key: 0,
|
|
7212
7216
|
class: "pv-flex pv-space-between pv-stack-12"
|
|
7213
|
-
},
|
|
7217
|
+
}, sc = {
|
|
7214
7218
|
key: 0,
|
|
7215
7219
|
class: "pv-heading-2"
|
|
7216
|
-
},
|
|
7220
|
+
}, cc = {
|
|
7217
7221
|
key: 1,
|
|
7218
7222
|
class: "pv-stack-12"
|
|
7219
|
-
},
|
|
7223
|
+
}, lc = { class: "pv-data-widget__body" }, uc = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
7220
7224
|
__name: "PvDataWidget",
|
|
7221
7225
|
props: /* @__PURE__ */ g({
|
|
7222
7226
|
appliedFilters: { default: () => [] },
|
|
@@ -7286,12 +7290,12 @@ var Qa = {
|
|
|
7286
7290
|
let n = e, c = B(e, "chartType"), l = (e) => {
|
|
7287
7291
|
let t = e?.data;
|
|
7288
7292
|
return Array.isArray(t) ? t : [];
|
|
7289
|
-
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() =>
|
|
7290
|
-
get: () =>
|
|
7293
|
+
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() => Ks(ee.value ? n.chartTypes : n.chartTypes.filter((e) => !d(e)), { useDefaultChartTypesWhenEmpty: n.chartTypes.length === 0 })), p = r({
|
|
7294
|
+
get: () => qs(c.value, f.value),
|
|
7291
7295
|
set: (e) => {
|
|
7292
7296
|
c.value = e;
|
|
7293
7297
|
}
|
|
7294
|
-
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => mn(_.value, n.dataLimit)), b = r(() =>
|
|
7298
|
+
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => mn(_.value, n.dataLimit)), b = r(() => Js(_.value, n.colDefs)), S = (e) => Zs(e, _.value), C = r(() => b.value.filter((e) => !e.context?.hideFromCharting)), w = r(() => C.value.filter(S)), T = r(() => {
|
|
7295
7299
|
if (n.xKey !== void 0) {
|
|
7296
7300
|
let e = n.xKey;
|
|
7297
7301
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
@@ -7314,34 +7318,34 @@ var Qa = {
|
|
|
7314
7318
|
let e = n.mapKey;
|
|
7315
7319
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
7316
7320
|
}
|
|
7317
|
-
return C.value.find((e) => e.field === "state") ?? C.value.find((e) =>
|
|
7321
|
+
return C.value.find((e) => e.field === "state") ?? C.value.find((e) => Xs(e) === "location");
|
|
7318
7322
|
}), ee = r(() => {
|
|
7319
7323
|
let e = N.value?.field;
|
|
7320
7324
|
return !!(e && T.value?.field === e);
|
|
7321
7325
|
}), F = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), I = r(() => p.value === Zo), L = r(() => p.value === "map" && ee.value), R = k(), z = r(() => b.value.map((e) => ({
|
|
7322
7326
|
field: e.field,
|
|
7323
|
-
label:
|
|
7324
|
-
}))), te = r(() => v.value.map((e) => b.value.map((t) =>
|
|
7327
|
+
label: Ys(e, e.field)
|
|
7328
|
+
}))), te = r(() => v.value.map((e) => b.value.map((t) => Qs(e, t.field)))), ne = r(() => n.showTableBelowChart && !I.value && b.value.length > 0), V = r(() => sn(n) || !!(n.enableTableScrolling && n.tableMaxHeight)), re = r(() => on(n)), H = r(() => {
|
|
7325
7329
|
if (!n.enableTableScrolling) return;
|
|
7326
7330
|
let e = {
|
|
7327
7331
|
overflowX: "auto",
|
|
7328
7332
|
overflowY: "auto"
|
|
7329
7333
|
}, t = an(n.tableMaxHeight);
|
|
7330
7334
|
return t && (e.maxHeight = t), e;
|
|
7331
|
-
}), ie = r(() =>
|
|
7335
|
+
}), ie = r(() => ec({
|
|
7332
7336
|
dataRows: v.value,
|
|
7333
7337
|
categoryColumn: T.value,
|
|
7334
7338
|
seriesColumn: E.value,
|
|
7335
7339
|
stackColumn: M.value
|
|
7336
|
-
})), U = r(() =>
|
|
7340
|
+
})), U = r(() => tc({
|
|
7337
7341
|
dataRows: v.value,
|
|
7338
7342
|
categoryColumn: T.value,
|
|
7339
7343
|
seriesColumn: E.value
|
|
7340
|
-
})), ae = r(() =>
|
|
7344
|
+
})), ae = r(() => nc({
|
|
7341
7345
|
dataRows: v.value,
|
|
7342
7346
|
mapColumn: N.value,
|
|
7343
7347
|
seriesColumn: E.value
|
|
7344
|
-
})), oe = r(() =>
|
|
7348
|
+
})), oe = r(() => rc(ae.value, E.value?.field)), G = r(() => ic(E.value)), se = r(() => ac({
|
|
7345
7349
|
aggregatedCategoryChartData: U.value,
|
|
7346
7350
|
categoryColumn: T.value,
|
|
7347
7351
|
dataLimit: n.dataLimit,
|
|
@@ -7388,15 +7392,15 @@ var Qa = {
|
|
|
7388
7392
|
style: x(re.value)
|
|
7389
7393
|
}, {
|
|
7390
7394
|
default: W(() => [
|
|
7391
|
-
h.value ? (D(), o("div",
|
|
7395
|
+
h.value ? (D(), o("div", oc, [s("div", null, [e.title ? (D(), o("span", sc, P(e.title), 1)) : a("", !0)]), s("div", null, [m.value ? (D(), i(oa, {
|
|
7392
7396
|
key: 0,
|
|
7393
7397
|
modelValue: p.value,
|
|
7394
7398
|
"onUpdate:modelValue": r[0] ||= (e) => p.value = e,
|
|
7395
7399
|
options: f.value,
|
|
7396
7400
|
size: "lg"
|
|
7397
7401
|
}, null, 8, ["modelValue", "options"])) : a("", !0)])])) : a("", !0),
|
|
7398
|
-
g.value ? (D(), o("div",
|
|
7399
|
-
s("div",
|
|
7402
|
+
g.value ? (D(), o("div", cc, [(D(!0), o(t, null, A(e.appliedFilters, (e) => (D(), o("span", { key: e }, P(e), 1))), 128))])) : a("", !0),
|
|
7403
|
+
s("div", lc, [j(n.$slots, "default", {}, void 0, !0), F.value ? (D(), o(t, { key: 0 }, [I.value ? (D(), o("div", {
|
|
7400
7404
|
key: 0,
|
|
7401
7405
|
class: y(["pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
7402
7406
|
style: x(H.value)
|
|
@@ -7454,15 +7458,15 @@ var Qa = {
|
|
|
7454
7458
|
_: 3
|
|
7455
7459
|
}, 8, ["class", "style"]));
|
|
7456
7460
|
}
|
|
7457
|
-
}), [["__scopeId", "data-v-9118bfea"]]),
|
|
7461
|
+
}), [["__scopeId", "data-v-9118bfea"]]), dc = [
|
|
7458
7462
|
"aria-label",
|
|
7459
7463
|
"aria-expanded",
|
|
7460
7464
|
"aria-controls",
|
|
7461
7465
|
"disabled"
|
|
7462
|
-
],
|
|
7466
|
+
], fc = {
|
|
7463
7467
|
key: 0,
|
|
7464
7468
|
class: "pv-shimmer"
|
|
7465
|
-
},
|
|
7469
|
+
}, pc = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
7466
7470
|
__name: "PvDropdown",
|
|
7467
7471
|
props: {
|
|
7468
7472
|
ariaLabel: {},
|
|
@@ -7542,7 +7546,7 @@ var Qa = {
|
|
|
7542
7546
|
"aria-controls": R(m),
|
|
7543
7547
|
onClick: w,
|
|
7544
7548
|
disabled: e.disabled
|
|
7545
|
-
}, [j(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 14,
|
|
7549
|
+
}, [j(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 14, dc), (D(), i(n, {
|
|
7546
7550
|
to: e.teleportLocation,
|
|
7547
7551
|
disabled: !e.useTeleport
|
|
7548
7552
|
}, [u(jo, {
|
|
@@ -7556,7 +7560,7 @@ var Qa = {
|
|
|
7556
7560
|
isSortable: e.isSortable,
|
|
7557
7561
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
7558
7562
|
}, {
|
|
7559
|
-
default: W(() => [j(t.$slots, "default", {}, () => [e.isLoading ? (D(), o("span",
|
|
7563
|
+
default: W(() => [j(t.$slots, "default", {}, () => [e.isLoading ? (D(), o("span", fc, "Loading...")) : a("", !0)], !0)]),
|
|
7560
7564
|
_: 3
|
|
7561
7565
|
}, 8, [
|
|
7562
7566
|
"id",
|
|
@@ -7567,7 +7571,7 @@ var Qa = {
|
|
|
7567
7571
|
"isSortable"
|
|
7568
7572
|
])], 8, ["to", "disabled"]))], 32)), [[R(Q), T]]);
|
|
7569
7573
|
}
|
|
7570
|
-
}), [["__scopeId", "data-v-6e4b23d8"]]),
|
|
7574
|
+
}), [["__scopeId", "data-v-6e4b23d8"]]), mc = ["data-style"], hc = /* @__PURE__ */ d({
|
|
7571
7575
|
__name: "PvTag",
|
|
7572
7576
|
props: {
|
|
7573
7577
|
size: { default: "md" },
|
|
@@ -7630,20 +7634,20 @@ var Qa = {
|
|
|
7630
7634
|
"data-dd-action-name": e.rumRemoveActionName,
|
|
7631
7635
|
onClick: r[0] ||= G((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
7632
7636
|
}, null, 8, ["data-dd-action-name"])) : a("", !0)
|
|
7633
|
-
], 14,
|
|
7637
|
+
], 14, mc));
|
|
7634
7638
|
}
|
|
7635
|
-
}),
|
|
7639
|
+
}), gc = { class: "pv-inset-squish-12" }, _c = {
|
|
7636
7640
|
key: 0,
|
|
7637
7641
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
7638
7642
|
style: { "--flex-align": "flex-start" }
|
|
7639
|
-
},
|
|
7643
|
+
}, vc = { class: "pv-heading-3" }, yc = {
|
|
7640
7644
|
key: 0,
|
|
7641
7645
|
class: "pv-text-body-md"
|
|
7642
|
-
},
|
|
7646
|
+
}, bc = {
|
|
7643
7647
|
key: 0,
|
|
7644
7648
|
class: "pv-inset-squish-12 pv-border-top",
|
|
7645
7649
|
style: { "--color-border": "#d2d8dc" }
|
|
7646
|
-
},
|
|
7650
|
+
}, xc = /* @__PURE__ */ d({
|
|
7647
7651
|
__name: "PvModal",
|
|
7648
7652
|
props: /* @__PURE__ */ g({
|
|
7649
7653
|
header: {},
|
|
@@ -7682,21 +7686,21 @@ var Qa = {
|
|
|
7682
7686
|
style: x(n.value),
|
|
7683
7687
|
onClose: l,
|
|
7684
7688
|
onClick: u
|
|
7685
|
-
}, [s("div",
|
|
7689
|
+
}, [s("div", gc, [e.hideHeader ? a("", !0) : (D(), o("div", _c, [s("span", vc, P(e.header), 1), e.subheader ? (D(), o("span", yc, P(e.subheader), 1)) : a("", !0)])), j(t.$slots, "body")]), e.hideFooter ? a("", !0) : (D(), o("div", bc, [j(t.$slots, "footer")]))], 36));
|
|
7686
7690
|
}
|
|
7687
|
-
}),
|
|
7691
|
+
}), Sc = /* @__PURE__ */ function(e) {
|
|
7688
7692
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
7689
7693
|
}({});
|
|
7690
7694
|
(/* @__PURE__ */ (function(e) {
|
|
7691
7695
|
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
7692
|
-
})({})).Primary,
|
|
7696
|
+
})({})).Primary, Sc.Horizontal;
|
|
7693
7697
|
//#endregion
|
|
7694
7698
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
7695
|
-
var
|
|
7699
|
+
var Cc = [
|
|
7696
7700
|
"data-style",
|
|
7697
7701
|
"disabled",
|
|
7698
7702
|
"title"
|
|
7699
|
-
],
|
|
7703
|
+
], wc = { class: "pv-truncate" }, Tc = /* @__PURE__ */ d({
|
|
7700
7704
|
__name: "PvSuggestionTag",
|
|
7701
7705
|
props: {
|
|
7702
7706
|
size: { default: "md" },
|
|
@@ -7732,36 +7736,36 @@ var Sc = [
|
|
|
7732
7736
|
name: e.icon,
|
|
7733
7737
|
size: 12,
|
|
7734
7738
|
class: y(e.iconClasses)
|
|
7735
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
7739
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", wc, P(e.label), 1)], 10, Cc));
|
|
7736
7740
|
}
|
|
7737
7741
|
});
|
|
7738
7742
|
tt.extend(it), tt.extend(nt), tt.extend(rt);
|
|
7739
7743
|
//#endregion
|
|
7740
7744
|
//#region src/components/base/PvDrawer/PvDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
7741
|
-
var
|
|
7745
|
+
var Ec = {
|
|
7742
7746
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
7743
7747
|
style: { "flex-shrink": "0" }
|
|
7744
|
-
},
|
|
7748
|
+
}, Dc = {
|
|
7745
7749
|
class: "pv-flex-vertical pv-stack-16",
|
|
7746
7750
|
style: { "--flex-align": "flex-start" }
|
|
7747
|
-
},
|
|
7751
|
+
}, Oc = { class: "pv-flex pv-full-width" }, kc = { class: "pv-full-width pv-heading-3" }, Ac = {
|
|
7748
7752
|
key: 0,
|
|
7749
7753
|
class: "pv-text-body-md"
|
|
7750
|
-
},
|
|
7754
|
+
}, jc = {
|
|
7751
7755
|
key: 0,
|
|
7752
7756
|
class: "pv-inset-inline-16"
|
|
7753
|
-
},
|
|
7757
|
+
}, Mc = {
|
|
7754
7758
|
class: "pv-inset-inline-16",
|
|
7755
7759
|
style: {
|
|
7756
7760
|
flex: "1",
|
|
7757
7761
|
"overflow-y": "auto",
|
|
7758
7762
|
"min-height": "0"
|
|
7759
7763
|
}
|
|
7760
|
-
},
|
|
7764
|
+
}, Nc = {
|
|
7761
7765
|
key: 0,
|
|
7762
7766
|
class: "pv-inset-squish-12 pv-border-top",
|
|
7763
7767
|
style: { "flex-shrink": "0" }
|
|
7764
|
-
},
|
|
7768
|
+
}, Pc = /* @__PURE__ */ d({
|
|
7765
7769
|
__name: "PvDrawer",
|
|
7766
7770
|
props: /* @__PURE__ */ g({
|
|
7767
7771
|
closeOnClickOutside: {
|
|
@@ -7807,32 +7811,32 @@ var Tc = {
|
|
|
7807
7811
|
height: "100%"
|
|
7808
7812
|
}
|
|
7809
7813
|
}, [
|
|
7810
|
-
s("div",
|
|
7814
|
+
s("div", Ec, [n.$slots.header ? j(n.$slots, "header", { key: 0 }) : (D(), o(t, { key: 1 }, [s("div", Dc, [s("div", Oc, [s("span", kc, P(e.header), 1), u(Kn, {
|
|
7811
7815
|
"left-icon": "close",
|
|
7812
7816
|
ariaLabel: "Close",
|
|
7813
7817
|
size: "md",
|
|
7814
7818
|
onClick: f,
|
|
7815
7819
|
"data-testid": "pv-side-panel-close-button",
|
|
7816
7820
|
variant: "ghost"
|
|
7817
|
-
})]), e.subheader ? (D(), o("span",
|
|
7821
|
+
})]), e.subheader ? (D(), o("span", Ac, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (D(), o("div", jc, [u(Da, _({
|
|
7818
7822
|
"data-testid": "pv-side-panel-input-search",
|
|
7819
7823
|
modelValue: l.value,
|
|
7820
7824
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
7821
7825
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))]),
|
|
7822
|
-
s("div",
|
|
7823
|
-
n.$slots.footer ? (D(), o("div",
|
|
7826
|
+
s("div", Mc, [j(n.$slots, "default")]),
|
|
7827
|
+
n.$slots.footer ? (D(), o("div", Nc, [j(n.$slots, "footer")])) : a("", !0)
|
|
7824
7828
|
], 512));
|
|
7825
7829
|
}
|
|
7826
|
-
}),
|
|
7830
|
+
}), Fc = /* @__PURE__ */ function(e) {
|
|
7827
7831
|
return e.Provider = "provider", e.Payer = "payer", e.LineOfBusiness = "lineOfBusiness", e.PlanType = "planType", e.Product = "product", e.CSBA = "CSBA", e.State = "state", e.Service = "service", e.ServiceCode = "serviceCode", e;
|
|
7828
7832
|
}({});
|
|
7829
|
-
|
|
7833
|
+
Fc.Provider, Fc.Payer, Fc.LineOfBusiness, Fc.PlanType, Fc.Product, Fc.CSBA, Fc.State, Fc.Service, Fc.ServiceCode, Fc.Provider, Fc.Payer, Fc.LineOfBusiness, Fc.PlanType, Fc.Product, Fc.CSBA, Fc.State, Fc.Service, Fc.ServiceCode, Math.random().toString();
|
|
7830
7834
|
//#endregion
|
|
7831
7835
|
//#region src/components/base/PvMenu/PvMenuControlPanel.vue?vue&type=script&setup=true&lang.ts
|
|
7832
|
-
var
|
|
7836
|
+
var Ic = {
|
|
7833
7837
|
"data-testid": "pv-select-menu-control-panel",
|
|
7834
7838
|
class: "pv-flex pv-space-between"
|
|
7835
|
-
},
|
|
7839
|
+
}, Lc = /* @__PURE__ */ d({
|
|
7836
7840
|
__name: "PvMenuControlPanel",
|
|
7837
7841
|
props: {
|
|
7838
7842
|
variant: {},
|
|
@@ -7847,7 +7851,7 @@ var Fc = {
|
|
|
7847
7851
|
],
|
|
7848
7852
|
setup(e) {
|
|
7849
7853
|
let n = e, i = r(() => n.rumFilterName ? `Select all ${n.rumFilterName} options` : void 0), s = r(() => n.rumFilterName ? `Clear ${n.rumFilterName} selections` : void 0);
|
|
7850
|
-
return (n, r) => (D(), o("div",
|
|
7854
|
+
return (n, r) => (D(), o("div", Ic, [e.variant === "select-clear" ? (D(), o(t, { key: 0 }, [u(Kn, {
|
|
7851
7855
|
variant: "ghost",
|
|
7852
7856
|
"data-testid": "pv-select-menu-item-select-all",
|
|
7853
7857
|
"data-dd-action-name": i.value,
|
|
@@ -7874,31 +7878,31 @@ var Fc = {
|
|
|
7874
7878
|
disabled: e.disabled
|
|
7875
7879
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
7876
7880
|
}
|
|
7877
|
-
}),
|
|
7881
|
+
}), Rc = ["data-dd-action-name"], zc = {
|
|
7878
7882
|
key: 1,
|
|
7879
7883
|
class: "pv-inset-square-8"
|
|
7880
|
-
},
|
|
7884
|
+
}, Bc = {
|
|
7881
7885
|
key: 1,
|
|
7882
7886
|
class: "pv-text-body-sm pv-inset-inline",
|
|
7883
7887
|
style: {
|
|
7884
7888
|
color: "#89989b",
|
|
7885
7889
|
"--inset-size": "8px"
|
|
7886
7890
|
}
|
|
7887
|
-
},
|
|
7891
|
+
}, Vc = {
|
|
7888
7892
|
key: 2,
|
|
7889
7893
|
class: "pv-border-top",
|
|
7890
7894
|
style: { margin: "8px 0" }
|
|
7891
|
-
},
|
|
7895
|
+
}, Hc = {
|
|
7892
7896
|
key: 3,
|
|
7893
7897
|
class: "pv-flex pv-inset-square-8 pv-text-body-sm pv-text-subdued",
|
|
7894
7898
|
style: { "justify-content": "center" }
|
|
7895
|
-
},
|
|
7899
|
+
}, Uc = { key: 0 }, Wc = {
|
|
7896
7900
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
7897
7901
|
style: {
|
|
7898
7902
|
"--flex-justify": "space-between",
|
|
7899
7903
|
"--bottom": "0"
|
|
7900
7904
|
}
|
|
7901
|
-
},
|
|
7905
|
+
}, Gc = /* @__PURE__ */ d({
|
|
7902
7906
|
__name: "PvMultiSelectButton",
|
|
7903
7907
|
props: /* @__PURE__ */ g({
|
|
7904
7908
|
companyLogo: {},
|
|
@@ -8192,10 +8196,10 @@ var Fc = {
|
|
|
8192
8196
|
"onUpdate:modelValue": r[1] ||= (e) => L.value = e,
|
|
8193
8197
|
class: "pv-stack-4",
|
|
8194
8198
|
placeholder: e.searchPlaceholder
|
|
8195
|
-
}, null, 8, ["model-value", "placeholder"])], 8,
|
|
8196
|
-
n.$slots.header || R(ve) ? (D(), o("div",
|
|
8199
|
+
}, null, 8, ["model-value", "placeholder"])], 8, Rc)),
|
|
8200
|
+
n.$slots.header || R(ve) ? (D(), o("div", zc, [j(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
8197
8201
|
ce.value.length > 0 ? (D(), o(t, { key: 2 }, [pe.value ? (D(!0), o(t, { key: 0 }, A(fe.value, ([t, i], s) => (D(), o("div", { key: t }, [
|
|
8198
|
-
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span",
|
|
8202
|
+
n.$slots[t] ? j(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (D(), o("span", Bc, P(t), 1)),
|
|
8199
8203
|
u(zo, {
|
|
8200
8204
|
selectedItems: oe.value,
|
|
8201
8205
|
"onUpdate:selectedItems": r[2] ||= (e) => oe.value = e,
|
|
@@ -8222,7 +8226,7 @@ var Fc = {
|
|
|
8222
8226
|
"enableCascadeSelection",
|
|
8223
8227
|
"hasMoreOptions"
|
|
8224
8228
|
]),
|
|
8225
|
-
fe.value && s !== fe.value.length - 1 ? (D(), o("div",
|
|
8229
|
+
fe.value && s !== fe.value.length - 1 ? (D(), o("div", Vc)) : a("", !0)
|
|
8226
8230
|
]))), 128)) : (D(), i(zo, {
|
|
8227
8231
|
key: 1,
|
|
8228
8232
|
selectedItems: oe.value,
|
|
@@ -8248,8 +8252,8 @@ var Fc = {
|
|
|
8248
8252
|
"isSeeMoreLoading",
|
|
8249
8253
|
"hasMoreOptions"
|
|
8250
8254
|
]))], 64)) : a("", !0),
|
|
8251
|
-
e.isLoading ? (D(), o("div",
|
|
8252
|
-
s("div",
|
|
8255
|
+
e.isLoading ? (D(), o("div", Hc, [u(Dt, { variant: "dark" }), e.loadingText ? (D(), o("span", Uc, P(e.loadingText), 1)) : a("", !0)])) : ce.value.length === 0 ? (D(), o(t, { key: 4 }, [R(ye) ? j(n.$slots, "no-results", b(_({ key: 0 }, me.value))) : (D(), i(Ga, { key: 1 }))], 64)) : a("", !0),
|
|
8256
|
+
s("div", Wc, [R(be) ? j(n.$slots, "footer", b(_({ key: 0 }, me.value))) : a("", !0), e.menuActionsVariant ? (D(), i(Lc, {
|
|
8253
8257
|
key: 1,
|
|
8254
8258
|
variant: e.menuActionsVariant,
|
|
8255
8259
|
disabled: e.isLoading,
|
|
@@ -8267,18 +8271,18 @@ var Fc = {
|
|
|
8267
8271
|
_: 3
|
|
8268
8272
|
}, 16, ["modelValue", "offset"]));
|
|
8269
8273
|
}
|
|
8270
|
-
}),
|
|
8274
|
+
}), Kc = {
|
|
8271
8275
|
short: 5,
|
|
8272
8276
|
long: 7
|
|
8273
|
-
},
|
|
8274
|
-
if (n <=
|
|
8277
|
+
}, qc = ({ variant: e = "long" } = {}) => ({ getPaginations: ({ currentPage: t, pages: n }) => {
|
|
8278
|
+
if (n <= Kc[e]) return Array.from({ length: n }, (e, t) => ({
|
|
8275
8279
|
page: t + 1,
|
|
8276
8280
|
label: (t + 1).toString()
|
|
8277
8281
|
}));
|
|
8278
8282
|
let r = [{
|
|
8279
8283
|
page: 1,
|
|
8280
8284
|
label: "1"
|
|
8281
|
-
}], i =
|
|
8285
|
+
}], i = Kc[e] - 3, a = Math.floor(i / 2), o = t - a, s = t + a, c = o > 2, l = s < n - 1;
|
|
8282
8286
|
if (o <= 2 && (o = 2, s = o + i - 1), s >= n - 1 && (s = n - 1, o = s - i + 1), c && r.push({
|
|
8283
8287
|
page: 0,
|
|
8284
8288
|
label: "..."
|
|
@@ -8297,11 +8301,11 @@ var Fc = {
|
|
|
8297
8301
|
page: n,
|
|
8298
8302
|
label: n.toString()
|
|
8299
8303
|
}), r;
|
|
8300
|
-
} }),
|
|
8304
|
+
} }), Jc = ["data-style"], Yc = ["data-testid", "aria-current"], Xc = {
|
|
8301
8305
|
key: 0,
|
|
8302
8306
|
class: "dots-button",
|
|
8303
8307
|
disabled: ""
|
|
8304
|
-
},
|
|
8308
|
+
}, Zc = ["onClick"], Qc = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
8305
8309
|
__name: "PvPagination",
|
|
8306
8310
|
props: /* @__PURE__ */ g({
|
|
8307
8311
|
size: { default: "lg" },
|
|
@@ -8314,7 +8318,7 @@ var Fc = {
|
|
|
8314
8318
|
}),
|
|
8315
8319
|
emits: ["update:modelValue"],
|
|
8316
8320
|
setup(e) {
|
|
8317
|
-
let { getPaginations: n } =
|
|
8321
|
+
let { getPaginations: n } = qc({ variant: e.variant }), r = B(e, "modelValue");
|
|
8318
8322
|
return (i, a) => (D(), o("ol", {
|
|
8319
8323
|
role: "list",
|
|
8320
8324
|
class: "pv-pagination",
|
|
@@ -8336,10 +8340,10 @@ var Fc = {
|
|
|
8336
8340
|
key: e.page,
|
|
8337
8341
|
"data-testid": `pagination-button-${e.page}`,
|
|
8338
8342
|
"aria-current": e.page === r.value ? "page" : void 0
|
|
8339
|
-
}, [e.label === "..." ? (D(), o("button",
|
|
8343
|
+
}, [e.label === "..." ? (D(), o("button", Xc, P(e.label), 1)) : (D(), o("button", {
|
|
8340
8344
|
key: 1,
|
|
8341
8345
|
onClick: (t) => i.$emit("update:modelValue", e.page)
|
|
8342
|
-
}, P(e.label), 9,
|
|
8346
|
+
}, P(e.label), 9, Zc))], 8, Yc))), 128)),
|
|
8343
8347
|
s("li", null, [u(Kn, {
|
|
8344
8348
|
"data-testid": "pagination-right-arrow-icon",
|
|
8345
8349
|
disabled: r.value === e.maxPages,
|
|
@@ -8348,9 +8352,9 @@ var Fc = {
|
|
|
8348
8352
|
variant: "ghost",
|
|
8349
8353
|
onClick: a[1] ||= (e) => i.$emit("update:modelValue", r.value + 1)
|
|
8350
8354
|
}, null, 8, ["disabled"])])
|
|
8351
|
-
], 8,
|
|
8355
|
+
], 8, Jc));
|
|
8352
8356
|
}
|
|
8353
|
-
}), [["__scopeId", "data-v-6c36dca2"]]),
|
|
8357
|
+
}), [["__scopeId", "data-v-6c36dca2"]]), $c = /* @__PURE__ */ d({
|
|
8354
8358
|
__name: "PvSkeleton",
|
|
8355
8359
|
props: {
|
|
8356
8360
|
size: { default: "md" },
|
|
@@ -8384,7 +8388,7 @@ Math.random().toString(), new Intl.NumberFormat("en-US", {
|
|
|
8384
8388
|
});
|
|
8385
8389
|
//#endregion
|
|
8386
8390
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
8387
|
-
var
|
|
8391
|
+
var el = "__pv_filter_panel_scoped_value__", tl = (e) => typeof e == "object" && !!e, nl = (e) => {
|
|
8388
8392
|
try {
|
|
8389
8393
|
let t = JSON.parse(decodeURIComponent(e));
|
|
8390
8394
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -8398,7 +8402,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8398
8402
|
} catch {
|
|
8399
8403
|
return [];
|
|
8400
8404
|
}
|
|
8401
|
-
},
|
|
8405
|
+
}, rl = (e) => {
|
|
8402
8406
|
if (!e.startsWith("__")) return null;
|
|
8403
8407
|
let t = e.slice(2).split("__");
|
|
8404
8408
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -8411,68 +8415,68 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8411
8415
|
pairs: n,
|
|
8412
8416
|
value: n[0].value
|
|
8413
8417
|
};
|
|
8414
|
-
},
|
|
8418
|
+
}, il = (e) => {
|
|
8415
8419
|
if (e == null) return null;
|
|
8416
|
-
if (!e.startsWith(
|
|
8420
|
+
if (!e.startsWith(el)) return rl(e) ?? {
|
|
8417
8421
|
pairs: [],
|
|
8418
8422
|
value: e
|
|
8419
8423
|
};
|
|
8420
|
-
let t =
|
|
8424
|
+
let t = nl(e.slice(32));
|
|
8421
8425
|
return {
|
|
8422
8426
|
field: t[0]?.field,
|
|
8423
8427
|
pairs: t,
|
|
8424
8428
|
value: t[0]?.value ?? e
|
|
8425
8429
|
};
|
|
8426
|
-
},
|
|
8430
|
+
}, al = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : tl(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : il(e.value)?.value ?? e.value : null, ol = (e, t) => e?.field ? e.field : e?.colField ? e.colField : il(e?.value)?.field ?? t, sl = (e, t, n, r) => ol(e, r) === t && al(e) === n, cl = (e) => {
|
|
8427
8431
|
let t = e;
|
|
8428
8432
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
8429
|
-
},
|
|
8433
|
+
}, ll = (e) => {
|
|
8430
8434
|
let t = e;
|
|
8431
|
-
return
|
|
8435
|
+
return cl(e) ? {
|
|
8432
8436
|
...t,
|
|
8433
|
-
conditions: (t.conditions ?? []).map(
|
|
8437
|
+
conditions: (t.conditions ?? []).map(ll)
|
|
8434
8438
|
} : { ...t };
|
|
8435
|
-
},
|
|
8439
|
+
}, ul = (e, t) => {
|
|
8436
8440
|
if (!e) return null;
|
|
8437
8441
|
let n = t instanceof Set ? t : new Set(t);
|
|
8438
|
-
if (!n.size) return
|
|
8439
|
-
if (!
|
|
8442
|
+
if (!n.size) return ll(e);
|
|
8443
|
+
if (!cl(e)) {
|
|
8440
8444
|
let t = e;
|
|
8441
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
8445
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : ll(e);
|
|
8442
8446
|
}
|
|
8443
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
8447
|
+
let r = e, i = (r.conditions ?? []).map((e) => ul(e, n)).filter((e) => !!e);
|
|
8444
8448
|
return i.length ? i.length === 1 ? i[0] : {
|
|
8445
8449
|
...r,
|
|
8446
8450
|
conditions: i
|
|
8447
8451
|
} : null;
|
|
8448
|
-
},
|
|
8452
|
+
}, dl = (e) => e ? [e.field, ...(e.children ?? []).flatMap(dl)] : [], fl = (e) => e ? e.children?.length ? e.children.flatMap(fl) : [e.field] : [], pl = (e) => {
|
|
8449
8453
|
let t = e?.context ?? {};
|
|
8450
|
-
return t.aggregateFieldHierarchy ?
|
|
8451
|
-
},
|
|
8454
|
+
return t.aggregateFieldHierarchy ? dl(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
8455
|
+
}, ml = (e) => {
|
|
8452
8456
|
let t = e?.context ?? {};
|
|
8453
8457
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
8454
|
-
},
|
|
8458
|
+
}, hl = (e, t) => {
|
|
8455
8459
|
for (let n of e ?? []) {
|
|
8456
8460
|
if (!n) continue;
|
|
8457
8461
|
if (n.value === t) return n;
|
|
8458
|
-
let e =
|
|
8462
|
+
let e = hl(n.children, t);
|
|
8459
8463
|
if (e) return e;
|
|
8460
8464
|
}
|
|
8461
|
-
},
|
|
8462
|
-
let n =
|
|
8465
|
+
}, gl = (e, t) => {
|
|
8466
|
+
let n = hl(t, e), r = n ? ol(n, "") : void 0, i = n ? al(n) : null;
|
|
8463
8467
|
if (r && i !== null) return {
|
|
8464
8468
|
field: r,
|
|
8465
8469
|
value: i
|
|
8466
8470
|
};
|
|
8467
|
-
let a =
|
|
8471
|
+
let a = il(e);
|
|
8468
8472
|
return {
|
|
8469
8473
|
field: a?.field,
|
|
8470
8474
|
value: a?.value ?? e
|
|
8471
8475
|
};
|
|
8472
|
-
},
|
|
8476
|
+
}, _l = (e, t, n) => {
|
|
8473
8477
|
let r = (e) => {
|
|
8474
8478
|
if (!e) return;
|
|
8475
|
-
let i =
|
|
8479
|
+
let i = ol(e, ""), a = al(e);
|
|
8476
8480
|
if (i === t && a === n) return e.value;
|
|
8477
8481
|
for (let t of e.children ?? []) {
|
|
8478
8482
|
let e = r(t);
|
|
@@ -8484,9 +8488,9 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8484
8488
|
if (e) return e;
|
|
8485
8489
|
}
|
|
8486
8490
|
return `__${t}__${n}`;
|
|
8487
|
-
},
|
|
8491
|
+
}, vl = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...vl(e.children)]), yl = (e, t) => {
|
|
8488
8492
|
if (e.state !== "selected") return null;
|
|
8489
|
-
let { field: n, value: r } =
|
|
8493
|
+
let { field: n, value: r } = gl(e.id, t);
|
|
8490
8494
|
if (!n) return null;
|
|
8491
8495
|
let i = [{
|
|
8492
8496
|
colId: n,
|
|
@@ -8494,8 +8498,8 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8494
8498
|
filterType: "text",
|
|
8495
8499
|
type: "equals"
|
|
8496
8500
|
}];
|
|
8497
|
-
for (let n of
|
|
8498
|
-
let e =
|
|
8501
|
+
for (let n of vl(e.children)) {
|
|
8502
|
+
let e = gl(n.id, t);
|
|
8499
8503
|
e.field && i.push({
|
|
8500
8504
|
colId: e.field,
|
|
8501
8505
|
filter: e.value,
|
|
@@ -8508,10 +8512,10 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8508
8512
|
filterType: "join",
|
|
8509
8513
|
type: "AND"
|
|
8510
8514
|
};
|
|
8511
|
-
},
|
|
8512
|
-
let t =
|
|
8515
|
+
}, bl = (e) => {
|
|
8516
|
+
let t = pl(e.colDef), n = ul(e.baseModel, t);
|
|
8513
8517
|
if (!t.length) return n;
|
|
8514
|
-
let r = e.state.map((t) =>
|
|
8518
|
+
let r = e.state.map((t) => yl(t, e.options)).filter((e) => !!e);
|
|
8515
8519
|
if (!r.length) return n;
|
|
8516
8520
|
let i = r.length === 1 ? r[0] : {
|
|
8517
8521
|
conditions: r,
|
|
@@ -8523,17 +8527,17 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8523
8527
|
filterType: "join",
|
|
8524
8528
|
type: "AND"
|
|
8525
8529
|
} : i;
|
|
8526
|
-
},
|
|
8530
|
+
}, xl = (e, t, n) => {
|
|
8527
8531
|
if (!e) return [];
|
|
8528
8532
|
let r = e;
|
|
8529
|
-
if (
|
|
8533
|
+
if (cl(e)) {
|
|
8530
8534
|
let e = r.conditions ?? [];
|
|
8531
8535
|
if (r.type === "AND") {
|
|
8532
8536
|
let r = e.find((e) => {
|
|
8533
8537
|
let r = e;
|
|
8534
8538
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
8535
8539
|
});
|
|
8536
|
-
return e.flatMap((e) =>
|
|
8540
|
+
return e.flatMap((e) => xl(e, t, n).map((e) => ({
|
|
8537
8541
|
...e,
|
|
8538
8542
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
8539
8543
|
colId: r.colId,
|
|
@@ -8541,20 +8545,20 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8541
8545
|
} : void 0)
|
|
8542
8546
|
})));
|
|
8543
8547
|
}
|
|
8544
|
-
return e.flatMap((e) =>
|
|
8548
|
+
return e.flatMap((e) => xl(e, t, n));
|
|
8545
8549
|
}
|
|
8546
8550
|
return r.colId && t.has(r.colId) ? [{
|
|
8547
8551
|
colId: r.colId,
|
|
8548
8552
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
8549
8553
|
type: r.type
|
|
8550
8554
|
}] : [];
|
|
8551
|
-
},
|
|
8552
|
-
let t =
|
|
8555
|
+
}, Sl = (e) => {
|
|
8556
|
+
let t = pl(e.colDef);
|
|
8553
8557
|
if (!t.length) return [];
|
|
8554
|
-
let n = new Set(
|
|
8558
|
+
let n = new Set(fl(e.colDef.context?.aggregateFieldHierarchy)), r = ml(e.colDef), i = xl(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
8555
8559
|
for (let t of i) {
|
|
8556
8560
|
if (!t.filter) continue;
|
|
8557
|
-
let n =
|
|
8561
|
+
let n = _l(e.options, t.colId, String(t.filter));
|
|
8558
8562
|
if (t.type === "equals") {
|
|
8559
8563
|
let e = a.get(n);
|
|
8560
8564
|
a.set(n, {
|
|
@@ -8565,7 +8569,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8565
8569
|
continue;
|
|
8566
8570
|
}
|
|
8567
8571
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
8568
|
-
let r =
|
|
8572
|
+
let r = _l(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
8569
8573
|
children: [],
|
|
8570
8574
|
id: r,
|
|
8571
8575
|
state: "selected"
|
|
@@ -8577,17 +8581,17 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8577
8581
|
}
|
|
8578
8582
|
}
|
|
8579
8583
|
return [...a.values()];
|
|
8580
|
-
},
|
|
8584
|
+
}, Cl = (e, t, n) => {
|
|
8581
8585
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
8582
8586
|
if (r.length <= 1) return "Search";
|
|
8583
8587
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
8584
8588
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
8585
|
-
},
|
|
8586
|
-
if (!r ||
|
|
8589
|
+
}, wl = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Tl = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
8590
|
+
if (!r || wl(i) === wl(r)) return e;
|
|
8587
8591
|
if (!a || !n) return r;
|
|
8588
8592
|
let o = t(n);
|
|
8589
8593
|
return o ? `${o}: ${r}` : r;
|
|
8590
|
-
},
|
|
8594
|
+
}, El = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Dl = (e, t) => t ?? e, Ol = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), kl = (e) => {
|
|
8591
8595
|
let t = /* @__PURE__ */ new Map();
|
|
8592
8596
|
for (let n of e) {
|
|
8593
8597
|
if (!n) continue;
|
|
@@ -8599,34 +8603,34 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8599
8603
|
t.set(n.value, {
|
|
8600
8604
|
...e,
|
|
8601
8605
|
...n,
|
|
8602
|
-
children:
|
|
8603
|
-
totalChildCount:
|
|
8606
|
+
children: kl([...e.children ?? [], ...n.children ?? []]),
|
|
8607
|
+
totalChildCount: Dl(e.totalChildCount, n.totalChildCount)
|
|
8604
8608
|
});
|
|
8605
8609
|
}
|
|
8606
8610
|
return [...t.values()];
|
|
8607
|
-
},
|
|
8611
|
+
}, Al = (e, t) => {
|
|
8608
8612
|
for (let n of e ?? []) {
|
|
8609
8613
|
if (!n) continue;
|
|
8610
8614
|
if (n.value === t) return n;
|
|
8611
|
-
let e =
|
|
8615
|
+
let e = Al(n.children, t);
|
|
8612
8616
|
if (e) return e;
|
|
8613
8617
|
}
|
|
8614
|
-
},
|
|
8618
|
+
}, jl = (e, t, n) => {
|
|
8615
8619
|
if (!e || t === null) return !1;
|
|
8616
8620
|
if (e.value === t) return !0;
|
|
8617
|
-
let r =
|
|
8618
|
-
return r !== null && r === t ||
|
|
8619
|
-
},
|
|
8620
|
-
let r =
|
|
8621
|
+
let r = al(e);
|
|
8622
|
+
return r !== null && r === t || sl(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => jl(e, t, n)) ?? !1;
|
|
8623
|
+
}, Ml = (e, t, n) => {
|
|
8624
|
+
let r = Al(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
8621
8625
|
return e.map((e) => e && (e.value === t ? {
|
|
8622
8626
|
...e,
|
|
8623
|
-
children:
|
|
8624
|
-
totalChildCount:
|
|
8627
|
+
children: kl([...e.children ?? [], ...i]),
|
|
8628
|
+
totalChildCount: Dl(e.totalChildCount, r?.totalChildCount)
|
|
8625
8629
|
} : e.children?.length ? {
|
|
8626
8630
|
...e,
|
|
8627
|
-
children:
|
|
8631
|
+
children: Ml(e.children, t, n).filter((e) => !!e)
|
|
8628
8632
|
} : e));
|
|
8629
|
-
},
|
|
8633
|
+
}, Nl = (e, t) => `${e}::${t}`, Pl = () => {
|
|
8630
8634
|
let e = k(null), t = k(null), n = k(), r = k({}), i = k({}), a = k({}), o = k({}), s = k({}), c = k({}), l = k({}), u = k({}), d = k({}), f = k({}), p = k({}), m = k({}), h = k({}), g = k({}), _ = k({}), v = k(), y = k({}), b = (e) => {
|
|
8631
8635
|
v.value = e;
|
|
8632
8636
|
}, x = (e) => r.value[e] ?? [], S = (e, t) => {
|
|
@@ -8635,11 +8639,11 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8635
8639
|
let r = n ? o : i;
|
|
8636
8640
|
r.value[e] = t;
|
|
8637
8641
|
}, T = () => {
|
|
8638
|
-
o.value =
|
|
8642
|
+
o.value = Ol(i.value), s.value = Ol(a.value);
|
|
8639
8643
|
}, E = () => {
|
|
8640
8644
|
o.value = {}, s.value = {};
|
|
8641
8645
|
}, D = () => {
|
|
8642
|
-
i.value =
|
|
8646
|
+
i.value = Ol(o.value), a.value = Ol(s.value), E();
|
|
8643
8647
|
}, O = (e, t) => {
|
|
8644
8648
|
c.value[e] = t;
|
|
8645
8649
|
}, A = (e, t) => {
|
|
@@ -8663,7 +8667,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8663
8667
|
if (!o) return [];
|
|
8664
8668
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
8665
8669
|
c.value[n.field] = s;
|
|
8666
|
-
let u = n.parentId ?
|
|
8670
|
+
let u = n.parentId ? Al(r.value[n.field], n.parentId) : void 0, d = n.offset ?? (n.parentId ? u?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), y = n.reason === "load-more" || n.reason === "child-load-more", b = M(n.field, y), x = n.parentId ? Nl(n.field, n.parentId) : n.field, S = (g.value[x] ?? 0) + 1;
|
|
8667
8671
|
g.value[x] = S;
|
|
8668
8672
|
try {
|
|
8669
8673
|
let c = await o({
|
|
@@ -8675,17 +8679,17 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8675
8679
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
8676
8680
|
});
|
|
8677
8681
|
if (g.value[x] !== S) return [];
|
|
8678
|
-
let u =
|
|
8682
|
+
let u = El(c);
|
|
8679
8683
|
if (n.parentId) {
|
|
8680
|
-
let e =
|
|
8684
|
+
let e = Nl(n.field, n.parentId);
|
|
8681
8685
|
m.value[e] = u.hasMore, h.value[e] = u.totalCount;
|
|
8682
8686
|
} else f.value[n.field] = u.hasMore, p.value[n.field] = u.totalCount;
|
|
8683
8687
|
let v = a.value[n.field] ?? [], b;
|
|
8684
|
-
b = n.parentId ?
|
|
8688
|
+
b = n.parentId ? Ml(r.value[n.field] ?? [], n.parentId, u.values) : y ? kl([...r.value[n.field] ?? [], ...u.values]) : u.values;
|
|
8685
8689
|
for (let e of v) {
|
|
8686
8690
|
if (!e) continue;
|
|
8687
|
-
let t =
|
|
8688
|
-
b.some((e) =>
|
|
8691
|
+
let t = al(e) ?? e.value;
|
|
8692
|
+
b.some((e) => jl(e, t, n.field)) || b.push(e);
|
|
8689
8693
|
}
|
|
8690
8694
|
return r.value[n.field] = b, _.value[n.field] = !1, b.filter((e) => !!e).map((e) => e.value);
|
|
8691
8695
|
} finally {
|
|
@@ -8720,7 +8724,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8720
8724
|
stagedFilterSelectedMetadataMap: s,
|
|
8721
8725
|
stagedFilterSelectedValueMap: o
|
|
8722
8726
|
};
|
|
8723
|
-
},
|
|
8727
|
+
}, Fl = () => {
|
|
8724
8728
|
let e = (e, n) => {
|
|
8725
8729
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
8726
8730
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -8733,13 +8737,13 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8733
8737
|
queryTerms: e.queryTerms.filter((e) => !n(e, t.queryTerm || {}))
|
|
8734
8738
|
} : null
|
|
8735
8739
|
};
|
|
8736
|
-
},
|
|
8740
|
+
}, Il = { class: "pv-flex" }, Ll = { class: "pv-text-body-md" }, Rl = ["textContent"], zl = {
|
|
8737
8741
|
key: 0,
|
|
8738
8742
|
class: "pv-text-body-xs"
|
|
8739
|
-
},
|
|
8743
|
+
}, Bl = { key: 0 }, Vl = {
|
|
8740
8744
|
class: "pv-text-subdued pv-text-body-xs",
|
|
8741
8745
|
style: { "font-weight": "500" }
|
|
8742
|
-
},
|
|
8746
|
+
}, Hl = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
8743
8747
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
8744
8748
|
props: {
|
|
8745
8749
|
id: {},
|
|
@@ -8789,13 +8793,13 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8789
8793
|
bold: !1
|
|
8790
8794
|
}), n;
|
|
8791
8795
|
});
|
|
8792
|
-
return (e, n) => (D(), o("div", null, [s("div",
|
|
8796
|
+
return (e, n) => (D(), o("div", null, [s("div", Il, [u(Hn, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Ll, [(D(!0), o(t, null, A(m.value, (e, t) => (D(), o("span", {
|
|
8793
8797
|
key: t,
|
|
8794
8798
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
8795
8799
|
textContent: P(e.text)
|
|
8796
|
-
}, null, 12,
|
|
8800
|
+
}, null, 12, Rl))), 128))]), f.value ? (D(), o("p", zl, [c.value ? a("", !0) : (D(), o("span", Bl, "Search in ")), s("span", Vl, P(f.value), 1)])) : a("", !0)])])]));
|
|
8797
8801
|
}
|
|
8798
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
8802
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Ul = /* @__PURE__ */ d({
|
|
8799
8803
|
__name: "QueryFormatter",
|
|
8800
8804
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
8801
8805
|
modelValue: { required: !0 },
|
|
@@ -8809,7 +8813,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8809
8813
|
}),
|
|
8810
8814
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
8811
8815
|
setup(e) {
|
|
8812
|
-
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } =
|
|
8816
|
+
let n = e, s = B(e, "modelValue"), c = B(e, "wrap-content"), { removeQueryOption: l } = Fl(), u = r(() => {
|
|
8813
8817
|
let e = s.value?.queryTerms || [];
|
|
8814
8818
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
8815
8819
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -8825,7 +8829,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8825
8829
|
};
|
|
8826
8830
|
s.value = l(s.value, t);
|
|
8827
8831
|
};
|
|
8828
|
-
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, A(u.value, (e, t) => (D(), i(
|
|
8832
|
+
return (e, n) => (D(), o(t, null, [(D(!0), o(t, null, A(u.value, (e, t) => (D(), i(hc, {
|
|
8829
8833
|
key: `${t}-${e.queryText}`,
|
|
8830
8834
|
variant: p(e),
|
|
8831
8835
|
label: f(e),
|
|
@@ -8835,23 +8839,23 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8835
8839
|
"variant",
|
|
8836
8840
|
"label",
|
|
8837
8841
|
"onHandleClose"
|
|
8838
|
-
]))), 128)), d.value > 0 ? (D(), i(
|
|
8842
|
+
]))), 128)), d.value > 0 ? (D(), i(hc, {
|
|
8839
8843
|
key: 0,
|
|
8840
8844
|
label: `+${d.value}`,
|
|
8841
8845
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
8842
8846
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
8843
8847
|
}
|
|
8844
|
-
}),
|
|
8848
|
+
}), Wl = [
|
|
8845
8849
|
"disabled",
|
|
8846
8850
|
"placeholder",
|
|
8847
8851
|
"data-invalid"
|
|
8848
|
-
],
|
|
8852
|
+
], Gl = {
|
|
8849
8853
|
key: 2,
|
|
8850
8854
|
class: "pv-text-red pv-text-body-xs"
|
|
8851
|
-
},
|
|
8855
|
+
}, Kl = {
|
|
8852
8856
|
key: 1,
|
|
8853
8857
|
class: "pv-text-center"
|
|
8854
|
-
},
|
|
8858
|
+
}, ql = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
8855
8859
|
__name: "PvQueryBuilderInput",
|
|
8856
8860
|
props: /* @__PURE__ */ g({
|
|
8857
8861
|
placeholder: { default: "Search" },
|
|
@@ -8900,7 +8904,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8900
8904
|
"update:options"
|
|
8901
8905
|
],
|
|
8902
8906
|
setup(e) {
|
|
8903
|
-
let n = e, c = { renderer:
|
|
8907
|
+
let n = e, c = { renderer: Hl }, l = V("search-input"), d = B(e, "searchText"), f = B(e, "query"), p = B(e, "options"), { addQueryOption: m, containsQueryOption: h, removeQueryOption: g } = Fl(), v = k(!1), b = k(!1), S = k(!1), C = r(() => f.value === null ? n.placeholder : ""), w = k(null), T = r(() => w.value !== null && w.value !== "" && !b.value), E = () => {
|
|
8904
8908
|
f.value = null, d.value = "", w.value = null, S.value = !1;
|
|
8905
8909
|
};
|
|
8906
8910
|
n.enableCustomOptionsInput && ue("Enter", () => {
|
|
@@ -8984,7 +8988,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
8984
8988
|
"--inset-size": "4px",
|
|
8985
8989
|
"--flex-gap": "4px"
|
|
8986
8990
|
}, e.enableWrapQueryTerms || S.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap; justify-content: flex-end;"])
|
|
8987
|
-
}, [u(
|
|
8991
|
+
}, [u(Ul, {
|
|
8988
8992
|
modelValue: f.value,
|
|
8989
8993
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8990
8994
|
"wrap-content": S.value,
|
|
@@ -9005,7 +9009,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9005
9009
|
style: x(d.value ? "min-width: 8rem;" : void 0),
|
|
9006
9010
|
onFocus: F,
|
|
9007
9011
|
onBlur: F
|
|
9008
|
-
}, null, 44,
|
|
9012
|
+
}, null, 44, Wl), [[H, d.value]])], 4),
|
|
9009
9013
|
f.value && !e.hideClearButton ? (D(), i(Kn, {
|
|
9010
9014
|
key: 1,
|
|
9011
9015
|
variant: "ghost",
|
|
@@ -9013,7 +9017,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9013
9017
|
size: "md",
|
|
9014
9018
|
onClick: E
|
|
9015
9019
|
})) : a("", !0),
|
|
9016
|
-
T.value ? (D(), o("p",
|
|
9020
|
+
T.value ? (D(), o("p", Gl, P(w.value), 1)) : a("", !0),
|
|
9017
9021
|
j.value.length > 0 || e.optionsLoading ? (D(), i(jo, {
|
|
9018
9022
|
key: 3,
|
|
9019
9023
|
class: y({ "pv-hide": !v.value }),
|
|
@@ -9023,7 +9027,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9023
9027
|
},
|
|
9024
9028
|
isList: !0
|
|
9025
9029
|
}, {
|
|
9026
|
-
default: W(() => [e.optionsLoading ? (D(), o("div",
|
|
9030
|
+
default: W(() => [e.optionsLoading ? (D(), o("div", Kl, [u(Dt, { variant: "dark" })])) : (D(!0), o(t, { key: 0 }, A(j.value, (e, t) => (D(), i(ko, _({
|
|
9027
9031
|
key: `${t}-${e.searchText}`,
|
|
9028
9032
|
ref_for: !0
|
|
9029
9033
|
}, e, {
|
|
@@ -9034,13 +9038,13 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9034
9038
|
}, 8, ["class"])) : a("", !0)
|
|
9035
9039
|
], 34)), [[R(Q), M]]);
|
|
9036
9040
|
}
|
|
9037
|
-
}), [["__scopeId", "data-v-97679942"]]),
|
|
9038
|
-
let e = m(
|
|
9041
|
+
}), [["__scopeId", "data-v-97679942"]]), Jl = Symbol.for("pv.rum-context"), Yl = () => {
|
|
9042
|
+
let e = m(Jl, void 0);
|
|
9039
9043
|
return () => {
|
|
9040
9044
|
let t = e?.value;
|
|
9041
9045
|
return typeof t == "string" ? { consumer: t } : t ?? {};
|
|
9042
9046
|
};
|
|
9043
|
-
},
|
|
9047
|
+
}, Xl = (e, t = {}, n = {}) => {
|
|
9044
9048
|
try {
|
|
9045
9049
|
if (n.enabled === !1 || typeof window > "u" || !window.DD_RUM?.addAction) return;
|
|
9046
9050
|
let r = n.consumer == null ? t : {
|
|
@@ -9049,33 +9053,33 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9049
9053
|
};
|
|
9050
9054
|
window.DD_RUM.addAction(e, r);
|
|
9051
9055
|
} catch {}
|
|
9052
|
-
},
|
|
9056
|
+
}, Zl = (e) => {
|
|
9053
9057
|
queueMicrotask(() => {
|
|
9054
9058
|
try {
|
|
9055
9059
|
e();
|
|
9056
9060
|
} catch {}
|
|
9057
9061
|
});
|
|
9058
|
-
},
|
|
9062
|
+
}, Ql = Symbol("FilterStoreKey"), $l = Symbol("FocusStoreKey"), eu = Symbol("SortStateKey"), tu = Symbol("GridApiKey"), nu = Symbol("ColumnDisplayOrderKey"), ru = Symbol("currentlyActiveFilterKey"), iu = Symbol("AvailableFilterColumnsKey"), au = Symbol("AvailableRowGroupColumnsKey"), ou = Symbol("RowGroupColumnFieldsKey"), su = Symbol("GroupColumnCellValueColumnKey"), cu = Symbol("ExpandedRowsKey"), lu = Symbol("FirstDataRenderedKey"), uu = Symbol("RowsLoadingKey"), du = Symbol("CurrentPageKey"), fu = Symbol("TotalPageKey"), pu = Symbol("ActiveChartFilterOptionKey"), mu = Symbol("RowGroupColumnsKey"), hu = Symbol("ChartTypeKey"), gu = Symbol("SortTypesKey"), _u = Symbol("ActiveChartKey"), vu = Symbol("ActiveSortKey"), yu = Symbol("ActiveSeriesKey"), bu = Symbol("AvailableSeriesKey"), xu = Symbol("ActiveSecondarySeriesKey"), Su = Symbol("AvailableSecondarySeriesKey"), Cu = Symbol("ActiveSecondarySeriesListKey"), wu = Symbol("MetricOverlayMultiSelectKey"), Tu = Symbol("EnableAdvancedFilterKey"), Eu = Symbol("ActiveCrosslineOverlayGroupsKey"), Du = Symbol("AvailableCrosslineOverlayGroupsKey"), Ou = {
|
|
9059
9063
|
class: "pv-flex",
|
|
9060
9064
|
style: { "--flex-wrap": "nowrap" }
|
|
9061
|
-
},
|
|
9065
|
+
}, ku = ["id"], Au = {
|
|
9062
9066
|
key: 1,
|
|
9063
9067
|
style: { "padding-left": "16px" }
|
|
9064
|
-
},
|
|
9068
|
+
}, ju = [
|
|
9065
9069
|
"checked",
|
|
9066
9070
|
"disabled",
|
|
9067
9071
|
"onChange"
|
|
9068
|
-
],
|
|
9072
|
+
], Mu = { class: "pv-text-body-md" }, Nu = { key: 2 }, Pu = {
|
|
9069
9073
|
key: 0,
|
|
9070
9074
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
9071
|
-
},
|
|
9075
|
+
}, Fu = /* @__PURE__ */ d({
|
|
9072
9076
|
__name: "GroupBySelector",
|
|
9073
9077
|
props: {
|
|
9074
9078
|
rowGroupLimit: {},
|
|
9075
9079
|
enableFocusView: { type: Boolean }
|
|
9076
9080
|
},
|
|
9077
9081
|
setup(e) {
|
|
9078
|
-
let n = m(
|
|
9082
|
+
let n = m(tu, k(null)), c = m(au, k([])), l = m(ou, k([])), u = e;
|
|
9079
9083
|
U(l, () => {}, { deep: !0 });
|
|
9080
9084
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
9081
9085
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -9099,7 +9103,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9099
9103
|
let t = e.findIndex((e) => e === "divider"), r = e.slice(0, t).slice(0, u.rowGroupLimit).map((e) => e.replace("group-by-list-item-", ""));
|
|
9100
9104
|
n.value && n.value.setRowGroupColumns(r);
|
|
9101
9105
|
};
|
|
9102
|
-
return (n, r) => (D(), i(
|
|
9106
|
+
return (n, r) => (D(), i(pc, {
|
|
9103
9107
|
isList: !0,
|
|
9104
9108
|
isSortable: !0,
|
|
9105
9109
|
popoverCssProperties: { width: "auto" },
|
|
@@ -9107,7 +9111,7 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9107
9111
|
class: y(p.value),
|
|
9108
9112
|
onListOrderUpdated: x
|
|
9109
9113
|
}, {
|
|
9110
|
-
trigger: W(() => [s("div",
|
|
9114
|
+
trigger: W(() => [s("div", Ou, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), R(l).length > 0 ? (D(), i(R(Un), {
|
|
9111
9115
|
key: 0,
|
|
9112
9116
|
value: R(l).length,
|
|
9113
9117
|
variant: "tertiary"
|
|
@@ -9120,25 +9124,25 @@ var $c = "__pv_filter_panel_scoped_value__", el = (e) => typeof e == "object" &&
|
|
|
9120
9124
|
key: 0,
|
|
9121
9125
|
name: "reorder",
|
|
9122
9126
|
class: "pv-text-subdued"
|
|
9123
|
-
})) : (D(), o("span",
|
|
9127
|
+
})) : (D(), o("span", Au)),
|
|
9124
9128
|
s("input", {
|
|
9125
9129
|
type: "checkbox",
|
|
9126
9130
|
class: "pv-checkbox",
|
|
9127
9131
|
checked: d(e.value),
|
|
9128
9132
|
disabled: !d(e.value) && h.value,
|
|
9129
9133
|
onChange: (t) => f(e.value, t.target.checked)
|
|
9130
|
-
}, null, 40,
|
|
9131
|
-
s("span",
|
|
9132
|
-
d(e.value) ? (D(), o("sup",
|
|
9133
|
-
], 2)], 8,
|
|
9134
|
+
}, null, 40, ju),
|
|
9135
|
+
s("span", Mu, P(e.label), 1),
|
|
9136
|
+
d(e.value) ? (D(), o("sup", Nu, P(n + 1), 1)) : a("", !0)
|
|
9137
|
+
], 2)], 8, ku))], 64))), 128)), h.value ? (D(), o("p", Pu, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
9134
9138
|
_: 1
|
|
9135
9139
|
}, 8, ["class"]));
|
|
9136
9140
|
}
|
|
9137
|
-
}),
|
|
9138
|
-
function
|
|
9139
|
-
return D(), o("div",
|
|
9141
|
+
}), Iu = {}, Lu = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
9142
|
+
function Ru(e, t) {
|
|
9143
|
+
return D(), o("div", Lu);
|
|
9140
9144
|
}
|
|
9141
|
-
var
|
|
9145
|
+
var zu = /* @__PURE__ */ tn(Iu, [["render", Ru]]), Bu = ["innerHTML"], Vu = { key: 2 }, Hu = /* @__PURE__ */ d({
|
|
9142
9146
|
__name: "ColDefCellRenderer",
|
|
9143
9147
|
props: {
|
|
9144
9148
|
colDef: {},
|
|
@@ -9152,9 +9156,9 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9152
9156
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (D(), o("span", {
|
|
9153
9157
|
key: 1,
|
|
9154
9158
|
innerHTML: c.value
|
|
9155
|
-
}, null, 8,
|
|
9159
|
+
}, null, 8, Bu)) : a.value === "string" ? (D(), o("span", Vu, P(s.value), 1)) : j(t.$slots, "default", { key: 3 });
|
|
9156
9160
|
}
|
|
9157
|
-
}),
|
|
9161
|
+
}), Uu = (e = null, t = !1) => {
|
|
9158
9162
|
let n = k(e?.focuses || []), i = k(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
9159
9163
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
9160
9164
|
}, l = (e) => {
|
|
@@ -9178,21 +9182,21 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9178
9182
|
setFocuses: l,
|
|
9179
9183
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
9180
9184
|
};
|
|
9181
|
-
},
|
|
9185
|
+
}, Wu = () => m($l, null) || Uu(), Gu = { class: "pv-table-group-cell" }, Ku = { class: "pv-text-body-xxs pv-text-subdued" }, qu = { key: 0 }, Ju = { style: { "line-height": "20px" } }, Yu = { class: "pv-text-title-md" }, Xu = {
|
|
9182
9186
|
key: 0,
|
|
9183
9187
|
class: "pv-flex",
|
|
9184
9188
|
style: {
|
|
9185
9189
|
flex: "1",
|
|
9186
9190
|
"--flex-justify": "flex-end"
|
|
9187
9191
|
}
|
|
9188
|
-
},
|
|
9192
|
+
}, Zu = {
|
|
9189
9193
|
key: 0,
|
|
9190
9194
|
class: "pv-table-row-number"
|
|
9191
|
-
},
|
|
9195
|
+
}, Qu = /* @__PURE__ */ d({
|
|
9192
9196
|
__name: "GroupedCellRenderer",
|
|
9193
9197
|
props: { params: {} },
|
|
9194
9198
|
setup(e) {
|
|
9195
|
-
let n = e, i = m(
|
|
9199
|
+
let n = e, i = m(ou, k([])), c = m(su, k(null)), d = m(cu, k({})), f = K(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
9196
9200
|
let e = f.value.data;
|
|
9197
9201
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
9198
9202
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -9214,7 +9218,7 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9214
9218
|
}), S = (e) => {
|
|
9215
9219
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
9216
9220
|
n != null && (d.value[n] = t);
|
|
9217
|
-
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } =
|
|
9221
|
+
}, { isFocused: w, computedFocuses: E, removeFocus: O, canRemoveFocus: A } = Wu(), j = r(() => w(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
9218
9222
|
let e = E.value;
|
|
9219
9223
|
return f.value.key && e.includes(f.value.key);
|
|
9220
9224
|
});
|
|
@@ -9229,7 +9233,7 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9229
9233
|
}), (n, r) => (D(), o(t, null, [h.value ? (D(), o("div", {
|
|
9230
9234
|
key: 0,
|
|
9231
9235
|
class: y(j.value)
|
|
9232
|
-
}, [s("div",
|
|
9236
|
+
}, [s("div", Gu, [s("p", Ku, [l(P(R(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (D(), o("span", qu, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", Ju, [s("p", Yu, P(g.value), 1)])]), M.value && R(A)() ? (D(), o("div", Xu, [u(Ia, {
|
|
9233
9237
|
variant: "dark",
|
|
9234
9238
|
tooltipPosition: "center-left",
|
|
9235
9239
|
size: "sm"
|
|
@@ -9243,9 +9247,9 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9243
9247
|
}, null, 8, ["class"])]),
|
|
9244
9248
|
"tooltip-content": W(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
9245
9249
|
_: 1
|
|
9246
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span",
|
|
9250
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (D(), o("span", Zu, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
9247
9251
|
}
|
|
9248
|
-
}),
|
|
9252
|
+
}), $u = {
|
|
9249
9253
|
key: 1,
|
|
9250
9254
|
class: "pv-table-child-cell",
|
|
9251
9255
|
style: {
|
|
@@ -9254,7 +9258,7 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9254
9258
|
width: "100%",
|
|
9255
9259
|
height: "100%"
|
|
9256
9260
|
}
|
|
9257
|
-
},
|
|
9261
|
+
}, ed = {
|
|
9258
9262
|
key: 0,
|
|
9259
9263
|
class: "pv-table-row-number",
|
|
9260
9264
|
style: {
|
|
@@ -9262,11 +9266,11 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9262
9266
|
"text-align": "center",
|
|
9263
9267
|
color: "var(--color-text-quaternary, #89989b)"
|
|
9264
9268
|
}
|
|
9265
|
-
},
|
|
9269
|
+
}, td = /* @__PURE__ */ d({
|
|
9266
9270
|
__name: "AutoGroupColDefRenderer",
|
|
9267
9271
|
props: { params: {} },
|
|
9268
9272
|
setup(e) {
|
|
9269
|
-
let t = e, n = m(
|
|
9273
|
+
let t = e, n = m(su, k(null)), s = r(() => t.params.rowNode.group), c = r(() => {
|
|
9270
9274
|
let e = t.params.rowNode.rowIndex, n = t.params.rowNode.parent?.rowIndex;
|
|
9271
9275
|
return e != null && n != null ? e - n : null;
|
|
9272
9276
|
}), l = r(() => ({
|
|
@@ -9291,35 +9295,35 @@ var Ru = /* @__PURE__ */ tn(Fu, [["render", Lu]]), zu = ["innerHTML"], Bu = { ke
|
|
|
9291
9295
|
valueFormatted: c
|
|
9292
9296
|
};
|
|
9293
9297
|
});
|
|
9294
|
-
return (t, n) => s.value ? (D(), i(
|
|
9298
|
+
return (t, n) => s.value ? (D(), i(Hu, {
|
|
9295
9299
|
key: 0,
|
|
9296
9300
|
"col-def": d.value,
|
|
9297
9301
|
"cell-params": e.params.cellParams
|
|
9298
9302
|
}, {
|
|
9299
|
-
default: W(() => [u(
|
|
9303
|
+
default: W(() => [u(Qu, { params: e.params }, null, 8, ["params"])]),
|
|
9300
9304
|
_: 1
|
|
9301
|
-
}, 8, ["col-def", "cell-params"])) : (D(), o("div",
|
|
9305
|
+
}, 8, ["col-def", "cell-params"])) : (D(), o("div", $u, [e.params.displayRowNumber && c.value ? (D(), o("span", ed, P(c.value), 1)) : a("", !0), u(Hu, {
|
|
9302
9306
|
"col-def": f.value,
|
|
9303
9307
|
"cell-params": p.value
|
|
9304
9308
|
}, {
|
|
9305
|
-
default: W(() => [u(
|
|
9309
|
+
default: W(() => [u(Qu, { params: l.value }, null, 8, ["params"])]),
|
|
9306
9310
|
_: 1
|
|
9307
9311
|
}, 8, ["col-def", "cell-params"])]));
|
|
9308
9312
|
}
|
|
9309
9313
|
});
|
|
9310
9314
|
//#endregion
|
|
9311
9315
|
//#region src/functions/aggregations.ts
|
|
9312
|
-
function
|
|
9316
|
+
function nd(e) {
|
|
9313
9317
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
9314
9318
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
9315
9319
|
}
|
|
9316
9320
|
//#endregion
|
|
9317
9321
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
9318
|
-
var
|
|
9322
|
+
var rd = { style: { "line-height": "20px" } }, id = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, ad = /* @__PURE__ */ d({
|
|
9319
9323
|
__name: "GroupAggCellRenderer",
|
|
9320
9324
|
props: { params: {} },
|
|
9321
9325
|
setup(e) {
|
|
9322
|
-
let t = e, n = m(
|
|
9326
|
+
let t = e, n = m(cu, k({})), i = r(() => {
|
|
9323
9327
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
9324
9328
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
9325
9329
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -9346,20 +9350,20 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9346
9350
|
style: x(f.value),
|
|
9347
9351
|
class: "pv-flex",
|
|
9348
9352
|
ondblclick: a
|
|
9349
|
-
}, [s("div",
|
|
9353
|
+
}, [s("div", rd, [s("p", null, P(d.value), 1), s("p", id, P(i.value), 1)])], 4));
|
|
9350
9354
|
}
|
|
9351
|
-
}),
|
|
9355
|
+
}), od = {
|
|
9352
9356
|
agSetColumnFilter: "set",
|
|
9353
9357
|
agMultiColumnFilter: "multi",
|
|
9354
9358
|
agTextColumnFilter: "text"
|
|
9355
|
-
},
|
|
9359
|
+
}, sd = (e) => !e || !e.filter ? null : e.filter in od ? od[e.filter] : null, cd = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), ld = (e, t) => {
|
|
9356
9360
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
9357
|
-
let n = e?.filterType || null, r =
|
|
9361
|
+
let n = e?.filterType || null, r = sd(t);
|
|
9358
9362
|
if (!r || r === n) return e;
|
|
9359
9363
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
9360
9364
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
9361
9365
|
if (e.filterType == "set") {
|
|
9362
|
-
let n = e.values || [], r =
|
|
9366
|
+
let n = e.values || [], r = cd(t);
|
|
9363
9367
|
r > -1 && r < a.length && (a[r] = {
|
|
9364
9368
|
filterType: "set",
|
|
9365
9369
|
values: n
|
|
@@ -9369,7 +9373,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9369
9373
|
filterType: "multi",
|
|
9370
9374
|
filterModels: a
|
|
9371
9375
|
};
|
|
9372
|
-
},
|
|
9376
|
+
}, ud = (e, t) => {
|
|
9373
9377
|
let n = t.filter((e) => e !== null && e !== "");
|
|
9374
9378
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
9375
9379
|
filterType: "text",
|
|
@@ -9386,18 +9390,18 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9386
9390
|
filter: t
|
|
9387
9391
|
}))
|
|
9388
9392
|
};
|
|
9389
|
-
},
|
|
9393
|
+
}, dd = (e) => {
|
|
9390
9394
|
let t = [];
|
|
9391
9395
|
return Object.keys(e).forEach((n) => {
|
|
9392
9396
|
let r = e[n];
|
|
9393
9397
|
if (r) {
|
|
9394
9398
|
if (r.filterType === "set" && r.values) {
|
|
9395
|
-
let e =
|
|
9399
|
+
let e = ud(n, r.values);
|
|
9396
9400
|
e && t.push(e);
|
|
9397
9401
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
9398
9402
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
9399
9403
|
if (e?.values) {
|
|
9400
|
-
let r =
|
|
9404
|
+
let r = ud(n, e.values);
|
|
9401
9405
|
r && t.push(r);
|
|
9402
9406
|
}
|
|
9403
9407
|
}
|
|
@@ -9407,11 +9411,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9407
9411
|
type: "AND",
|
|
9408
9412
|
conditions: t
|
|
9409
9413
|
};
|
|
9410
|
-
},
|
|
9414
|
+
}, fd = (e, t, n = !1) => {
|
|
9411
9415
|
if (!e) return e;
|
|
9412
9416
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
9413
9417
|
if (n) {
|
|
9414
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
9418
|
+
let t = e?.filter?.advancedFilterModel, n = dd(i), a = t || null, o = null;
|
|
9415
9419
|
return o = a && n ? {
|
|
9416
9420
|
filterType: "join",
|
|
9417
9421
|
type: "AND",
|
|
@@ -9424,12 +9428,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9424
9428
|
}
|
|
9425
9429
|
let a = {};
|
|
9426
9430
|
return Object.keys(i).forEach((e) => {
|
|
9427
|
-
a[e] =
|
|
9431
|
+
a[e] = ld(i[e] || {}, t.find((t) => t.field === e));
|
|
9428
9432
|
}), r.filter = {
|
|
9429
9433
|
...r.filter,
|
|
9430
9434
|
filterModel: a
|
|
9431
9435
|
}, r;
|
|
9432
|
-
},
|
|
9436
|
+
}, pd = (e) => {
|
|
9433
9437
|
if (!e || e.queryTerms.length === 0) return {};
|
|
9434
9438
|
let t = {};
|
|
9435
9439
|
return e.queryTerms.forEach((e) => {
|
|
@@ -9461,7 +9465,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9461
9465
|
};
|
|
9462
9466
|
}
|
|
9463
9467
|
}), t;
|
|
9464
|
-
},
|
|
9468
|
+
}, md = (e) => {
|
|
9465
9469
|
if (!e || e.queryTerms.length === 0) return null;
|
|
9466
9470
|
let t = /* @__PURE__ */ new Map();
|
|
9467
9471
|
e.queryTerms.forEach((e) => {
|
|
@@ -9496,7 +9500,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9496
9500
|
type: "AND",
|
|
9497
9501
|
conditions: n
|
|
9498
9502
|
};
|
|
9499
|
-
},
|
|
9503
|
+
}, hd = (e, t) => {
|
|
9500
9504
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
9501
9505
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
9502
9506
|
let n = e.filterParams?.filters || [], r = Array(n.length).fill(null), i = n.findIndex((e) => e.filter == "agTextColumnFilter" && t.filterType == "text" ? !0 : e.filter == "agSetColumnFilter" && t.filterType == "set");
|
|
@@ -9504,26 +9508,26 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9504
9508
|
filterType: "multi",
|
|
9505
9509
|
filterModels: r
|
|
9506
9510
|
};
|
|
9507
|
-
},
|
|
9511
|
+
}, gd = (e, t) => {
|
|
9508
9512
|
if (!e || Object.keys(e).length === 0) return t;
|
|
9509
9513
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
9510
9514
|
let n = { ...e };
|
|
9511
9515
|
return t.filterModels?.forEach((e, t) => {
|
|
9512
9516
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
9513
9517
|
}), n;
|
|
9514
|
-
},
|
|
9518
|
+
}, _d = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => _d(e, t)) : e.colId === t : t in e : !1, vd = (e, t, n) => {
|
|
9515
9519
|
let r = { ...t };
|
|
9516
9520
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
9517
|
-
let i =
|
|
9518
|
-
r[t] =
|
|
9521
|
+
let i = hd(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
9522
|
+
r[t] = gd(a, i);
|
|
9519
9523
|
}), r);
|
|
9520
|
-
},
|
|
9524
|
+
}, yd = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? cd(e) !== void 0 && cd(e) > -1 : !1, bd = (e, t) => {
|
|
9521
9525
|
let n = { ...e };
|
|
9522
9526
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
9523
9527
|
...n.filterParams,
|
|
9524
9528
|
values: t
|
|
9525
9529
|
}, n;
|
|
9526
|
-
let r =
|
|
9530
|
+
let r = cd(e);
|
|
9527
9531
|
if (r !== void 0 && r > -1) {
|
|
9528
9532
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
9529
9533
|
a.filterParams = {
|
|
@@ -9537,13 +9541,13 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9537
9541
|
};
|
|
9538
9542
|
}
|
|
9539
9543
|
return n;
|
|
9540
|
-
},
|
|
9544
|
+
}, xd = async (e, t) => {
|
|
9541
9545
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
9542
9546
|
if (r?.filterType == "set") return r;
|
|
9543
9547
|
if (r?.filterType != "multi") return null;
|
|
9544
|
-
let i =
|
|
9548
|
+
let i = cd(t);
|
|
9545
9549
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
9546
|
-
},
|
|
9550
|
+
}, Sd = async (e, t, n) => {
|
|
9547
9551
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
9548
9552
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
9549
9553
|
if (i?.filterType != "multi") return null;
|
|
@@ -9552,50 +9556,50 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9552
9556
|
filterType: "multi",
|
|
9553
9557
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
9554
9558
|
};
|
|
9555
|
-
let o =
|
|
9559
|
+
let o = cd(t), s = !n || n.length === 0 ? null : {
|
|
9556
9560
|
filterType: "set",
|
|
9557
9561
|
values: n
|
|
9558
9562
|
};
|
|
9559
9563
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
9560
|
-
},
|
|
9564
|
+
}, Cd = (e, t) => {
|
|
9561
9565
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
9562
9566
|
let n = t[e.field];
|
|
9563
9567
|
if (!n) return [];
|
|
9564
9568
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
9565
9569
|
if (n.filterType === "multi") {
|
|
9566
|
-
let t =
|
|
9570
|
+
let t = cd(e);
|
|
9567
9571
|
if (t !== void 0 && t > -1) {
|
|
9568
9572
|
let e = n.filterModels[t];
|
|
9569
9573
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
9570
9574
|
}
|
|
9571
9575
|
}
|
|
9572
9576
|
return [];
|
|
9573
|
-
},
|
|
9577
|
+
}, wd = (e) => !!e && "filterType" in e, Td = (e) => e.filterType === "join" ? e.conditions.some(Td) : "colId" in e, Ed = (e) => e ? wd(e) ? !Td(e) : Object.keys(e).length === 0 : !0, Dd = (e) => {
|
|
9574
9578
|
if (e === void 0) return "undefined";
|
|
9575
9579
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
9576
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
9580
|
+
if (Array.isArray(e)) return `[${e.map(Dd).join(",")}]`;
|
|
9577
9581
|
let t = e;
|
|
9578
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
9579
|
-
},
|
|
9582
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${Dd(t[e])}`).join(",")}}`;
|
|
9583
|
+
}, Od = (e) => {
|
|
9580
9584
|
if (e.filterType !== "join") return e;
|
|
9581
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
9585
|
+
let t = e, n = [...t.conditions ?? []].map(Od).sort((e, t) => Dd(e).localeCompare(Dd(t)));
|
|
9582
9586
|
return {
|
|
9583
9587
|
...t,
|
|
9584
9588
|
conditions: n
|
|
9585
9589
|
};
|
|
9586
|
-
},
|
|
9587
|
-
if (
|
|
9588
|
-
let n =
|
|
9589
|
-
if (n !==
|
|
9590
|
-
if (n) return ot(
|
|
9590
|
+
}, kd = (e, t) => {
|
|
9591
|
+
if (Ed(e) && Ed(t)) return !0;
|
|
9592
|
+
let n = wd(e);
|
|
9593
|
+
if (n !== wd(t)) return !1;
|
|
9594
|
+
if (n) return ot(Od(e), Od(t));
|
|
9591
9595
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
9592
9596
|
if (a.length !== o.length) return !1;
|
|
9593
9597
|
for (let e of a) if (!ot(r?.[e], i?.[e])) return !1;
|
|
9594
9598
|
return !0;
|
|
9595
|
-
},
|
|
9596
|
-
if (!t) return
|
|
9599
|
+
}, Ad = (e, t, n) => {
|
|
9600
|
+
if (!t) return jd(e, n);
|
|
9597
9601
|
if (!e) return t;
|
|
9598
|
-
let r =
|
|
9602
|
+
let r = jd(e, n);
|
|
9599
9603
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
9600
9604
|
filterType: "join",
|
|
9601
9605
|
type: "AND",
|
|
@@ -9605,53 +9609,53 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9605
9609
|
type: "AND",
|
|
9606
9610
|
conditions: [r, t]
|
|
9607
9611
|
} : t;
|
|
9608
|
-
},
|
|
9612
|
+
}, jd = (e, t) => {
|
|
9609
9613
|
if (!e) return null;
|
|
9610
9614
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
9611
|
-
let n = e, r = n.conditions.map((e) =>
|
|
9615
|
+
let n = e, r = n.conditions.map((e) => jd(e, t)).filter((e) => e !== null);
|
|
9612
9616
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
9613
9617
|
filterType: "join",
|
|
9614
9618
|
type: n.type,
|
|
9615
9619
|
conditions: r
|
|
9616
9620
|
};
|
|
9617
|
-
},
|
|
9621
|
+
}, Md = (e, t) => {
|
|
9618
9622
|
if (!t) return [];
|
|
9619
9623
|
if (t.filterType !== "join") {
|
|
9620
9624
|
let n = t;
|
|
9621
9625
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
9622
9626
|
}
|
|
9623
9627
|
let n = t, r = [];
|
|
9624
|
-
for (let t of n.conditions) r.push(...
|
|
9628
|
+
for (let t of n.conditions) r.push(...Md(e, t));
|
|
9625
9629
|
return r;
|
|
9626
|
-
},
|
|
9630
|
+
}, Nd = (e, t) => {
|
|
9627
9631
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
9628
9632
|
let n = t[e];
|
|
9629
9633
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
9630
|
-
},
|
|
9634
|
+
}, Pd = (e, t) => {
|
|
9631
9635
|
if (!e) return null;
|
|
9632
|
-
if (
|
|
9633
|
-
let n =
|
|
9636
|
+
if (wd(e)) {
|
|
9637
|
+
let n = Md(t, e);
|
|
9634
9638
|
return n.length > 0 ? n : null;
|
|
9635
9639
|
}
|
|
9636
|
-
let n =
|
|
9640
|
+
let n = Nd(t, e);
|
|
9637
9641
|
return n.length > 0 ? n : null;
|
|
9638
|
-
},
|
|
9642
|
+
}, Fd = (e, t) => {
|
|
9639
9643
|
if (!e) return e;
|
|
9640
|
-
if (
|
|
9644
|
+
if (wd(e)) return jd(e, t);
|
|
9641
9645
|
let n = { ...e };
|
|
9642
9646
|
return delete n[t], n;
|
|
9643
|
-
},
|
|
9644
|
-
if (
|
|
9645
|
-
let r =
|
|
9646
|
-
return
|
|
9647
|
+
}, Id = (e, t, n, r) => {
|
|
9648
|
+
if (wd(e) || !e && r) {
|
|
9649
|
+
let r = ud(t, n);
|
|
9650
|
+
return Ad(e ?? null, r, t);
|
|
9647
9651
|
}
|
|
9648
9652
|
let i = { ...e || {} };
|
|
9649
9653
|
return i[t] = {
|
|
9650
9654
|
filterType: "set",
|
|
9651
9655
|
values: n
|
|
9652
9656
|
}, i;
|
|
9653
|
-
},
|
|
9654
|
-
if (
|
|
9657
|
+
}, Ld = (e, t, n, r) => {
|
|
9658
|
+
if (wd(e) || !e && r) return Id(e, t, n, r);
|
|
9655
9659
|
let i = { ...e || {} }, a = i[t];
|
|
9656
9660
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
9657
9661
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -9667,11 +9671,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9667
9671
|
values: n
|
|
9668
9672
|
};
|
|
9669
9673
|
return i;
|
|
9670
|
-
},
|
|
9671
|
-
let i = (
|
|
9672
|
-
return i.length === 0 ?
|
|
9673
|
-
},
|
|
9674
|
-
let e =
|
|
9674
|
+
}, Rd = (e, t, n, r) => {
|
|
9675
|
+
let i = (Pd(e, t) ?? []).filter((e) => e !== n);
|
|
9676
|
+
return i.length === 0 ? Fd(e, t) : Ld(e, t, i, r);
|
|
9677
|
+
}, zd = (e) => !!(e && "filterType" in e), Bd = (e) => !!(e && !zd(e)), Vd = (e) => !!(e && !zd(e)), Hd = () => {
|
|
9678
|
+
let e = Pl(), t = ee(null), n = e.filterModel, i = e.stagedFilterModel, a = k(null), o = k({}), s = k({}), c = e.filterRequestIdMap, l = k(0), u = e.filterLoadingMap, d = k(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = k(void 0), h = (t) => ({
|
|
9675
9679
|
hasMore: e.filterHasMoreMap.value[t],
|
|
9676
9680
|
totalCount: e.filterTotalCountMap.value[t],
|
|
9677
9681
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -9686,7 +9690,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9686
9690
|
});
|
|
9687
9691
|
let g = r(() => d.value != null), _ = r(() => {
|
|
9688
9692
|
let e = n.value;
|
|
9689
|
-
return e ?
|
|
9693
|
+
return e ? zd(e) ? !Td(e) : Object.keys(e).length === 0 : !0;
|
|
9690
9694
|
}), v = r(() => {
|
|
9691
9695
|
let e = a.value || {};
|
|
9692
9696
|
return Object.keys(e).length === 0;
|
|
@@ -9724,9 +9728,9 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9724
9728
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
9725
9729
|
}, z = async (e, t) => {
|
|
9726
9730
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
9727
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
9731
|
+
if (t?.useStaged !== !1 && i.value != null) if (Bd(i.value)) {
|
|
9728
9732
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
9729
|
-
o = P(e &&
|
|
9733
|
+
o = P(e && Bd(e) ? e : void 0);
|
|
9730
9734
|
} else o = i.value;
|
|
9731
9735
|
let l = {
|
|
9732
9736
|
api: t?.api,
|
|
@@ -9808,7 +9812,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9808
9812
|
}, ne = (e, t) => {
|
|
9809
9813
|
b.value[e] = t;
|
|
9810
9814
|
let r = [], i = n.value;
|
|
9811
|
-
if (
|
|
9815
|
+
if (Vd(i)) {
|
|
9812
9816
|
let t = i[e];
|
|
9813
9817
|
if (t?.values) {
|
|
9814
9818
|
let e = t.values || [];
|
|
@@ -9825,7 +9829,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9825
9829
|
let t = n.value;
|
|
9826
9830
|
if (!t) return x.value;
|
|
9827
9831
|
let r = e.map((e) => {
|
|
9828
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
9832
|
+
let n = e.field ?? e.colId ?? "", r = n ? Pd(t, n) : null;
|
|
9829
9833
|
return r && r.length > 0 ? {
|
|
9830
9834
|
colDef: e,
|
|
9831
9835
|
colId: n,
|
|
@@ -9883,7 +9887,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9883
9887
|
}, ve = (e) => t.value?.refreshData(e), ye = (e) => {
|
|
9884
9888
|
let t = /* @__PURE__ */ new Map();
|
|
9885
9889
|
if (!e) return t;
|
|
9886
|
-
if (
|
|
9890
|
+
if (zd(e)) {
|
|
9887
9891
|
let n = (e) => {
|
|
9888
9892
|
if (e.filterType === "join") {
|
|
9889
9893
|
e.conditions.forEach(n);
|
|
@@ -9970,14 +9974,14 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9970
9974
|
filterValuesHasMoreMap: f,
|
|
9971
9975
|
filterValuesTotalCountMap: p
|
|
9972
9976
|
};
|
|
9973
|
-
},
|
|
9974
|
-
O(
|
|
9975
|
-
},
|
|
9976
|
-
let e = m(
|
|
9977
|
+
}, Ud = Hd, Wd = (e) => {
|
|
9978
|
+
O(Ql, e);
|
|
9979
|
+
}, Gd = () => m(Ql, null) || Hd(), Kd = () => {
|
|
9980
|
+
let e = m(Ql, null);
|
|
9977
9981
|
if (!e) throw Error("No PvDataTable filter store was provided. Create one with createPvDataTableFilterStore() and pass it to PvDataTable/PvDataTableWithChart or provide it with providePvDataTableFilterStore().");
|
|
9978
9982
|
return e;
|
|
9979
|
-
},
|
|
9980
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c =
|
|
9983
|
+
}, qd = (e) => {
|
|
9984
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = Yl(), l = m(tu, k(null)), u = Gd(), { fetchFilterValues: d, invalidateFilterRequest: f, filterModel: p, stagedFilterModel: h, filterModelCleared: g, filterValuesLoadingStatus: _, filterValueContext: y, getFilterSelectedValues: b, isServerSideFilter: x, setFilterValueSearchText: S, setFilterSelectedValues: C, getFilterValues: w, setFilterValues: D, filterStaleMap: O, refreshFiltersInBackground: A, stageFilterChangesUntilDropdownCloses: j, filterSearchMinLength: M, noteFilterModelChange: N, registerAggregateField: ee, registerFilterField: P, unregisterFilterField: F, getStagedSelectedValues: I, setStagedSelectedValues: L, filterValueSearchTextMap: R, filterValuesHasMoreMap: z, filterValuesTotalCountMap: te } = u, { computedFocuses: B, removeFocus: ne, computedFocusType: V } = Wu(), re = m(uu, k(!1)), H = m(lu, k(!1)), ie = m(Tu, k(!1)), W = r({
|
|
9981
9985
|
get: () => J.value ? I(q.value) : b(q.value),
|
|
9982
9986
|
set: (e) => {
|
|
9983
9987
|
J.value ? L(q.value, e) : C(q.value, e);
|
|
@@ -9998,7 +10002,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
9998
10002
|
}), q = r(() => t.value.field || ""), fe = r(() => t.value.filter || ""), pe = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), Y = k(!1), he = k(!1), ge = k([]), _e = r(() => _s(t.value)), ve = r(() => vs(t.value)), ye = r(() => ys(t.value)), be = r(() => $(t.value).filterOptionsSortDescription), xe = r(() => $(t.value).filterOptionsSortTooltip), Se = r(() => {
|
|
9999
10003
|
let e = $(t.value).filterSearch;
|
|
10000
10004
|
return typeof e == "boolean" ? e : $(t.value).dataType !== ds.Boolean;
|
|
10001
|
-
}), Ce = r(() => $(t.value).emptyFilterResultsRenderer), we = r(() => $(t.value).filterOptionsLoadingText), Te = r(() => $(t.value).filterOptionsRenderer), Ee = r(() => $(t.value).filterHeaderRenderer), De = r(() => $(t.value).filterFooterRenderer), Oe = r(() => ve.value ? W.value.length >= ve.value : !1), ke = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), Ae = r(() => ce.value ? void 0 : te.value[q.value]), je = r(() => ce.value ? !1 : z.value[q.value]), X = r(() =>
|
|
10005
|
+
}), Ce = r(() => $(t.value).emptyFilterResultsRenderer), we = r(() => $(t.value).filterOptionsLoadingText), Te = r(() => $(t.value).filterOptionsRenderer), Ee = r(() => $(t.value).filterHeaderRenderer), De = r(() => $(t.value).filterFooterRenderer), Oe = r(() => ve.value ? W.value.length >= ve.value : !1), ke = r(() => ae.value.filter((e) => e != null && !W.value.includes(e))), Ae = r(() => ce.value ? void 0 : te.value[q.value]), je = r(() => ce.value ? !1 : z.value[q.value]), X = r(() => Ts(t.value)), Me = () => new Set([q.value, ...Cs(t.value)]), Ne = (e, t) => {
|
|
10002
10006
|
let n = new Set(e), r = new Set(t);
|
|
10003
10007
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
10004
10008
|
}, Z = k([]), Pe = k("[]"), Fe = r(() => ae.value.length === 1 && ae.value[0] === null && W.value.length === 0), Ie = (e = !1) => {
|
|
@@ -10006,8 +10010,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10006
10010
|
let n = [];
|
|
10007
10011
|
if (ie.value && l.value) {
|
|
10008
10012
|
let e = l.value.getAdvancedFilterModel();
|
|
10009
|
-
n =
|
|
10010
|
-
} else n =
|
|
10013
|
+
n = Md(q.value, e);
|
|
10014
|
+
} else n = Cd(t.value, p.value);
|
|
10011
10015
|
e ? W.value = n : W.value = Array.from(new Set([...b(q.value), ...n]));
|
|
10012
10016
|
}, Le = (e) => {
|
|
10013
10017
|
let t = (n) => {
|
|
@@ -10035,7 +10039,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10035
10039
|
}
|
|
10036
10040
|
return;
|
|
10037
10041
|
}
|
|
10038
|
-
let s = await
|
|
10042
|
+
let s = await xd(l.value, t.value);
|
|
10039
10043
|
if (s) {
|
|
10040
10044
|
if (x.value && o) {
|
|
10041
10045
|
s.refreshFilterValues();
|
|
@@ -10072,21 +10076,21 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10072
10076
|
if (!$(t.value).metadataDisplayFields?.length) return !1;
|
|
10073
10077
|
let r = y(q.value, e);
|
|
10074
10078
|
return r == null || r.label == null;
|
|
10075
|
-
}, Xe = (e) => Fe.value || y(q.value, e)?.isSelectable === !1 ? !0 : ye.value ? !1 : Oe.value && !W.value.includes(e), Ze = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Qe = (e, n, r) =>
|
|
10079
|
+
}, Xe = (e) => Fe.value || y(q.value, e)?.isSelectable === !1 ? !0 : ye.value ? !1 : Oe.value && !W.value.includes(e), Ze = (e) => e ? l.value && l.value.getColumnDef(e)?.headerName || e : "", Qe = (e, n, r) => Tl({
|
|
10076
10080
|
fallbackSubText: n,
|
|
10077
10081
|
getDisplayName: Ze,
|
|
10078
10082
|
matchedField: e?.matchedField,
|
|
10079
10083
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
10080
10084
|
primaryText: r,
|
|
10081
10085
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
10082
|
-
}), $e = r(() =>
|
|
10086
|
+
}), $e = r(() => Cl(q.value, $(t.value).queryColIds, (e) => e === q.value && pe.value || Ze(e))), et = (e) => {
|
|
10083
10087
|
if (!e.startsWith("__")) return { value: e };
|
|
10084
10088
|
let t = e.slice(2).split("__");
|
|
10085
10089
|
return t.length < 2 ? { value: e } : {
|
|
10086
10090
|
field: t[0],
|
|
10087
10091
|
value: t[1]
|
|
10088
10092
|
};
|
|
10089
|
-
}, Q = (e) =>
|
|
10093
|
+
}, Q = (e) => gl(e, rt()), tt = (e) => {
|
|
10090
10094
|
let t = et(e.value), n = { ...e };
|
|
10091
10095
|
return !n.field && !n.colField && t.field && (n.field = t.field), n.rawValue == null && n.metadata?.rawValue == null && t.field && (n.rawValue = t.value), e.children?.length && (n.children = e.children.map(tt)), n;
|
|
10092
10096
|
}, nt = r(() => [...u.filterValueMap.value[q.value] || [], ...u.filterValueSelectedMetadataMap.value[q.value] || []].map((e) => e && tt(e))), rt = () => nt.value, it = (e, t) => {
|
|
@@ -10103,7 +10107,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10103
10107
|
let e = n.children ? at(n.children, t) : void 0;
|
|
10104
10108
|
if (e) return e;
|
|
10105
10109
|
}
|
|
10106
|
-
}, ot = (e, t) =>
|
|
10110
|
+
}, ot = (e, t) => _l(rt(), e, t), st = (e) => {
|
|
10107
10111
|
let t = (n) => {
|
|
10108
10112
|
if (n) {
|
|
10109
10113
|
if (String(We(n) ?? et(n.value).value) === e) return n;
|
|
@@ -10138,7 +10142,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10138
10142
|
};
|
|
10139
10143
|
}, lt = (e) => {
|
|
10140
10144
|
let n = rt(), r = it(n, (t) => t.value === e.id);
|
|
10141
|
-
return r?.children?.length ? r : at(n, e.id) || (r && Ue(r) ===
|
|
10145
|
+
return r?.children?.length ? r : at(n, e.id) || (r && Ue(r) === ws(t.value) ? r : ct(e.id) || r);
|
|
10142
10146
|
}, ut = (e) => {
|
|
10143
10147
|
if (!X.value) return;
|
|
10144
10148
|
let t = u.filterValueSelectedMetadataMap.value[q.value] || [], n = /* @__PURE__ */ new Map();
|
|
@@ -10256,7 +10260,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10256
10260
|
n = [r.length > 0 ? r[r.length - 1] : n[n.length - 1]];
|
|
10257
10261
|
}
|
|
10258
10262
|
let r = xt;
|
|
10259
|
-
xt = !1, r ||
|
|
10263
|
+
xt = !1, r || Zl(() => {
|
|
10260
10264
|
let e = new Set(t), r = new Set(n);
|
|
10261
10265
|
for (let t of r) e.has(t) || wt(t, "select", "click", r.size);
|
|
10262
10266
|
for (let t of e) r.has(t) || wt(t, "deselect", "click", r.size);
|
|
@@ -10277,27 +10281,27 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10277
10281
|
if (e !== void 0 && n !== void 0) {
|
|
10278
10282
|
let r = e || q.value, i = new Set([q.value, r]), a = n;
|
|
10279
10283
|
if (ie.value) {
|
|
10280
|
-
let e =
|
|
10284
|
+
let e = ud(r, a || []);
|
|
10281
10285
|
if (J.value) {
|
|
10282
|
-
let t = h.value, n =
|
|
10286
|
+
let t = h.value, n = Ad(t, e, r);
|
|
10283
10287
|
N(i, !0), h.value = n;
|
|
10284
10288
|
return;
|
|
10285
10289
|
}
|
|
10286
|
-
let t =
|
|
10290
|
+
let t = Ad(l.value.getAdvancedFilterModel(), e, r);
|
|
10287
10291
|
N(i), v(() => {
|
|
10288
10292
|
l.value?.setAdvancedFilterModel(t);
|
|
10289
10293
|
});
|
|
10290
10294
|
return;
|
|
10291
10295
|
}
|
|
10292
10296
|
if (J.value) {
|
|
10293
|
-
let e = await
|
|
10297
|
+
let e = await Sd(l.value, t.value, a);
|
|
10294
10298
|
N(i, !0), h.value = {
|
|
10295
10299
|
...h.value,
|
|
10296
10300
|
[r]: e
|
|
10297
10301
|
};
|
|
10298
10302
|
return;
|
|
10299
10303
|
}
|
|
10300
|
-
let o = await
|
|
10304
|
+
let o = await Sd(l.value, t.value, a);
|
|
10301
10305
|
N(i), l.value.setColumnFilterModel(r, o).then(() => {
|
|
10302
10306
|
l.value && l.value.onFilterChanged();
|
|
10303
10307
|
});
|
|
@@ -10307,15 +10311,15 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10307
10311
|
if (ie.value) {
|
|
10308
10312
|
let e = J.value ? h.value : l.value.getAdvancedFilterModel(), n = e, s = /* @__PURE__ */ new Set();
|
|
10309
10313
|
if (X.value) {
|
|
10310
|
-
let e =
|
|
10314
|
+
let e = Cs(t.value), r = [];
|
|
10311
10315
|
for (let t of e) {
|
|
10312
10316
|
let e = i[t] || [];
|
|
10313
10317
|
if (e.length > 0) {
|
|
10314
|
-
let n =
|
|
10318
|
+
let n = ud(t, e);
|
|
10315
10319
|
n && r.push(n);
|
|
10316
10320
|
}
|
|
10317
10321
|
}
|
|
10318
|
-
for (let t of e) n =
|
|
10322
|
+
for (let t of e) n = Ad(n, null, t);
|
|
10319
10323
|
if (r.length > 0) {
|
|
10320
10324
|
let e = r.length === 1 ? r[0] : {
|
|
10321
10325
|
filterType: "join",
|
|
@@ -10329,23 +10333,23 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10329
10333
|
} : e;
|
|
10330
10334
|
}
|
|
10331
10335
|
} else {
|
|
10332
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
10333
|
-
n =
|
|
10336
|
+
let t = W.value.length > 0 ? W.value : null, r = ud(q.value, t || []);
|
|
10337
|
+
n = Ad(n, r, q.value);
|
|
10334
10338
|
let i = !1;
|
|
10335
10339
|
if (a?.value) {
|
|
10336
10340
|
let e = o.filterGroup?.fields ?? [];
|
|
10337
10341
|
for (let t of e) {
|
|
10338
10342
|
let e = a.value.has(t);
|
|
10339
|
-
if (e ===
|
|
10343
|
+
if (e === Md(t, n).includes("true")) continue;
|
|
10340
10344
|
i = !0, s.add(t);
|
|
10341
|
-
let r = e ?
|
|
10342
|
-
n =
|
|
10345
|
+
let r = e ? ud(t, ["true"]) : null;
|
|
10346
|
+
n = Ad(n, r, t);
|
|
10343
10347
|
}
|
|
10344
10348
|
}
|
|
10345
|
-
let c = W.value.filter((e) => e !== null), l =
|
|
10349
|
+
let c = W.value.filter((e) => e !== null), l = Md(q.value, e), u = new Set(l), d = new Set(c);
|
|
10346
10350
|
if (!(u.size !== d.size || c.some((e) => !u.has(e))) && !i) return;
|
|
10347
10351
|
}
|
|
10348
|
-
if (r?.skipIfUnchanged &&
|
|
10352
|
+
if (r?.skipIfUnchanged && kd(e, n)) return;
|
|
10349
10353
|
if (N(X.value ? Me() : new Set([q.value, ...s]), J.value), J.value) h.value = n;
|
|
10350
10354
|
else {
|
|
10351
10355
|
let e = n;
|
|
@@ -10357,26 +10361,26 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10357
10361
|
}
|
|
10358
10362
|
let s = W.value.length > 0 ? W.value : null;
|
|
10359
10363
|
if (r?.skipIfUnchanged) {
|
|
10360
|
-
let e =
|
|
10364
|
+
let e = Cd(t.value, l.value.getFilterModel());
|
|
10361
10365
|
if (Ne(W.value, e)) return;
|
|
10362
10366
|
}
|
|
10363
10367
|
if (J.value) {
|
|
10364
|
-
let e = await
|
|
10368
|
+
let e = await Sd(l.value, t.value, s);
|
|
10365
10369
|
N(new Set([q.value]), !0), h.value = {
|
|
10366
10370
|
...h.value,
|
|
10367
10371
|
[q.value]: e
|
|
10368
10372
|
};
|
|
10369
10373
|
return;
|
|
10370
10374
|
}
|
|
10371
|
-
let c = await
|
|
10375
|
+
let c = await Sd(l.value, t.value, s);
|
|
10372
10376
|
N(new Set([q.value])), l.value.setColumnFilterModel(q.value, c).then(() => {
|
|
10373
10377
|
l.value && l.value.onFilterChanged();
|
|
10374
10378
|
});
|
|
10375
10379
|
}, bt = r(() => J.value ? "all_filters_drawer" : "horizontal"), xt = !1, St = (e, t) => {
|
|
10376
10380
|
xt = !0;
|
|
10377
10381
|
let n = ue.value || "";
|
|
10378
|
-
|
|
10379
|
-
|
|
10382
|
+
Zl(() => {
|
|
10383
|
+
Xl("filter_bulk_action", {
|
|
10380
10384
|
filter_name: pe.value,
|
|
10381
10385
|
filter_field: q.value,
|
|
10382
10386
|
action: e,
|
|
@@ -10386,7 +10390,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10386
10390
|
}, c());
|
|
10387
10391
|
});
|
|
10388
10392
|
}, Ct = (e) => !X.value || e == null ? q.value : Ue(He(e)) || (et(e).field ?? q.value), wt = (e, t, n, r) => {
|
|
10389
|
-
|
|
10393
|
+
Xl("filter_option_selected", {
|
|
10390
10394
|
filter_name: pe.value,
|
|
10391
10395
|
filter_field: Ct(e),
|
|
10392
10396
|
selected_value: Je(e),
|
|
@@ -10409,7 +10413,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10409
10413
|
};
|
|
10410
10414
|
}, Et = (e, t) => {
|
|
10411
10415
|
let n = Tt(e), r = Tt(t);
|
|
10412
|
-
|
|
10416
|
+
Zl(() => {
|
|
10413
10417
|
let e = Xa(t);
|
|
10414
10418
|
for (let t of r.selected) n.selected.has(t) || wt(t, "select", "click", e);
|
|
10415
10419
|
for (let t of n.selected) r.selected.has(t) || wt(t, "deselect", "click", e);
|
|
@@ -10428,13 +10432,13 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10428
10432
|
}), Ot = (e, n, r = "click") => {
|
|
10429
10433
|
let a = null;
|
|
10430
10434
|
if (X.value && e) {
|
|
10431
|
-
let r = n ||
|
|
10435
|
+
let r = n || Cs(t.value)[0] || q.value;
|
|
10432
10436
|
a = e.startsWith("__") ? e : ot(r, e) || e;
|
|
10433
10437
|
}
|
|
10434
10438
|
let o = e != null && (W.value.includes(e) || a != null && Le(a)), s = W.value.slice();
|
|
10435
10439
|
if (e && ye.value ? W.value = [e] : e && !o && (W.value = [...W.value, e]), e != null && !o) {
|
|
10436
10440
|
let t = W.value.length, n = ye.value;
|
|
10437
|
-
|
|
10441
|
+
Zl(() => {
|
|
10438
10442
|
if (n) for (let n of s) n !== e && wt(n, "deselect", r, t);
|
|
10439
10443
|
wt(e, "select", r, t);
|
|
10440
10444
|
});
|
|
@@ -10447,12 +10451,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10447
10451
|
let a = W.value.includes(e);
|
|
10448
10452
|
if (W.value = W.value.filter((t) => t !== e), e != null && a) {
|
|
10449
10453
|
let t = W.value.length;
|
|
10450
|
-
|
|
10454
|
+
Zl(() => {
|
|
10451
10455
|
wt(e, "deselect", r, t);
|
|
10452
10456
|
});
|
|
10453
10457
|
}
|
|
10454
10458
|
if (X.value && e) {
|
|
10455
|
-
let r = n ||
|
|
10459
|
+
let r = n || Cs(t.value)[0] || q.value, i = e.startsWith("__") ? e : ot(r, e) || e;
|
|
10456
10460
|
Z.value = Z.value.filter((e) => e.id !== i);
|
|
10457
10461
|
}
|
|
10458
10462
|
(!j.value || J.value) && (X.value && e ? Pt(Z.value) : n && n !== q.value ? yt(n, null) : yt()), i?.();
|
|
@@ -10475,7 +10479,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10475
10479
|
} finally {
|
|
10476
10480
|
r && (he.value = !1);
|
|
10477
10481
|
}
|
|
10478
|
-
}, Nt = (e, n) =>
|
|
10482
|
+
}, Nt = (e, n) => bl({
|
|
10479
10483
|
baseModel: n,
|
|
10480
10484
|
colDef: t.value,
|
|
10481
10485
|
options: rt(),
|
|
@@ -10484,9 +10488,9 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10484
10488
|
if (!l.value || !X.value) return !1;
|
|
10485
10489
|
let r = JSON.stringify(e);
|
|
10486
10490
|
if (n?.skipIfUnchanged && r === Pe.value) return Z.value = e, !1;
|
|
10487
|
-
if (Z.value = e, ut(e),
|
|
10491
|
+
if (Z.value = e, ut(e), Cs(t.value).length === 0) return !1;
|
|
10488
10492
|
let a = J.value ? h.value : l.value.getAdvancedFilterModel(), o = Nt(e, a);
|
|
10489
|
-
if (n?.skipIfUnchanged &&
|
|
10493
|
+
if (n?.skipIfUnchanged && kd(a, o)) return Pe.value = r, !1;
|
|
10490
10494
|
if (J.value) h.value = o;
|
|
10491
10495
|
else {
|
|
10492
10496
|
let e = o;
|
|
@@ -10496,8 +10500,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10496
10500
|
}
|
|
10497
10501
|
return Pe.value = r, N(Me(), J.value), i?.(), !0;
|
|
10498
10502
|
}, Ft = (e) => {
|
|
10499
|
-
if (!X.value || !
|
|
10500
|
-
let n =
|
|
10503
|
+
if (!X.value || !Cs(t.value).length) return;
|
|
10504
|
+
let n = Sl({
|
|
10501
10505
|
colDef: t.value,
|
|
10502
10506
|
model: e,
|
|
10503
10507
|
options: rt()
|
|
@@ -10518,12 +10522,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10518
10522
|
if (ie.value) {
|
|
10519
10523
|
let e = [], n = h.value;
|
|
10520
10524
|
if (X.value) {
|
|
10521
|
-
let r =
|
|
10525
|
+
let r = Cs(t.value);
|
|
10522
10526
|
for (let t of r) {
|
|
10523
|
-
let r =
|
|
10527
|
+
let r = Md(t, n);
|
|
10524
10528
|
e.push(...r);
|
|
10525
10529
|
}
|
|
10526
|
-
} else e =
|
|
10530
|
+
} else e = Md(q.value, n);
|
|
10527
10531
|
W.value = e;
|
|
10528
10532
|
return;
|
|
10529
10533
|
}
|
|
@@ -10536,11 +10540,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10536
10540
|
return;
|
|
10537
10541
|
}
|
|
10538
10542
|
if (ie.value) {
|
|
10539
|
-
let e = p.value, t =
|
|
10543
|
+
let e = p.value, t = Md(q.value, e);
|
|
10540
10544
|
Ie(W.value.some((e) => e !== null && !t.includes(e)));
|
|
10541
10545
|
return;
|
|
10542
10546
|
}
|
|
10543
|
-
let e =
|
|
10547
|
+
let e = Cd(t.value, p.value);
|
|
10544
10548
|
Ie(W.value.some((t) => !e.includes(t)));
|
|
10545
10549
|
}, { deep: !0 }), U(() => g.value, () => {
|
|
10546
10550
|
W.value = [], Z.value = [], Pe.value = "[]";
|
|
@@ -10563,8 +10567,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10563
10567
|
let t = e.toLocaleLowerCase(), n = gt.value;
|
|
10564
10568
|
return X.value ? Za(n, t, !0).length : n.filter((e) => e.text.toLocaleLowerCase().includes(t) || e.searchText?.toLocaleLowerCase().includes(t)).length;
|
|
10565
10569
|
}, zt = (e) => {
|
|
10566
|
-
|
|
10567
|
-
|
|
10570
|
+
Zl(() => {
|
|
10571
|
+
Xl("filter_search", {
|
|
10568
10572
|
filter_name: pe.value,
|
|
10569
10573
|
filter_field: q.value,
|
|
10570
10574
|
query: e,
|
|
@@ -10589,9 +10593,9 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10589
10593
|
Bt = null, ue.value === t && zt(t);
|
|
10590
10594
|
}), T(() => {
|
|
10591
10595
|
P(q.value);
|
|
10592
|
-
let e =
|
|
10596
|
+
let e = Cs(t.value);
|
|
10593
10597
|
if (e.length && ee(q.value, e), Ie(), X.value && ie.value && Ft(p.value), o?.value && x.value && l.value) {
|
|
10594
|
-
let e = X.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = X.value && ie.value ?
|
|
10598
|
+
let e = X.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = X.value && ie.value ? Cs(t.value).some((e) => Md(e, p.value).length > 0) : W.value.length > 0;
|
|
10595
10599
|
e && n && d(t.value, {
|
|
10596
10600
|
api: l.value,
|
|
10597
10601
|
filterModel: p.value ?? void 0
|
|
@@ -10651,7 +10655,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10651
10655
|
disableFilterValue: Xe,
|
|
10652
10656
|
updateFilterModelWithSelectedValues: yt
|
|
10653
10657
|
};
|
|
10654
|
-
},
|
|
10658
|
+
}, Jd = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
10655
10659
|
let i = k(null), a = k(null), o = k(null), s = k(null), c = (e) => {
|
|
10656
10660
|
let t = e.parentElement;
|
|
10657
10661
|
for (; t && t !== document.body;) {
|
|
@@ -10702,26 +10706,26 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10702
10706
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
10703
10707
|
}
|
|
10704
10708
|
};
|
|
10705
|
-
},
|
|
10709
|
+
}, Yd = {
|
|
10706
10710
|
key: 0,
|
|
10707
10711
|
role: "list",
|
|
10708
10712
|
class: "pv-popover-list"
|
|
10709
|
-
},
|
|
10713
|
+
}, Xd = ["data-active"], Zd = { key: 1 }, Qd = {
|
|
10710
10714
|
key: 1,
|
|
10711
10715
|
class: "pv-flex pv-inset-square-8",
|
|
10712
10716
|
style: { "justify-content": "center" }
|
|
10713
|
-
},
|
|
10717
|
+
}, $d = /* @__PURE__ */ d({
|
|
10714
10718
|
__name: "FilterGroupMenu",
|
|
10715
10719
|
props: { filterColDef: {} },
|
|
10716
10720
|
setup(e, { expose: n }) {
|
|
10717
|
-
let s = e, c = m(
|
|
10721
|
+
let s = e, c = m(tu, k(null)), d = m(uu, k(!1)), { filterModel: f, filterStoreHandler: p, noteFilterModelChange: h, stageFilterChangesUntilDropdownCloses: g } = Gd(), _ = k(/* @__PURE__ */ new Set()), b = k(/* @__PURE__ */ new Set()), x = k(!1), S = k(null), C = r(() => $(s.filterColDef).filterGroup), w = (e) => {
|
|
10718
10722
|
let t = new Set(e);
|
|
10719
10723
|
s.filterColDef.field && t.add(s.filterColDef.field), h(t);
|
|
10720
|
-
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } =
|
|
10724
|
+
}, { popoverPositionStyle: T, updateRects: O, triggerRef: j, popoverRef: M } = Jd({
|
|
10721
10725
|
alignment: "top right",
|
|
10722
10726
|
useTeleport: !0
|
|
10723
10727
|
}), N = (e) => {
|
|
10724
|
-
let t =
|
|
10728
|
+
let t = Pd(f.value, e);
|
|
10725
10729
|
return t !== null && t.length > 0 && t.includes("true");
|
|
10726
10730
|
}, ee = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
10727
10731
|
if (!p.value || !c.value) return;
|
|
@@ -10743,7 +10747,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10743
10747
|
if (!c.value) return;
|
|
10744
10748
|
let t = _.value.has(e);
|
|
10745
10749
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
10746
|
-
let n =
|
|
10750
|
+
let n = Ad(c.value.getAdvancedFilterModel(), t ? null : ud(e, ["true"]), e);
|
|
10747
10751
|
w(new Set([e])), v(() => {
|
|
10748
10752
|
c.value?.setAdvancedFilterModel(n);
|
|
10749
10753
|
});
|
|
@@ -10755,7 +10759,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10755
10759
|
return;
|
|
10756
10760
|
}
|
|
10757
10761
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
10758
|
-
for (let r of e) _.value.has(r) || (t =
|
|
10762
|
+
for (let r of e) _.value.has(r) || (t = Ad(t, ud(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
10759
10763
|
n.size > 0 && (w(n), v(() => {
|
|
10760
10764
|
c.value?.setAdvancedFilterModel(t);
|
|
10761
10765
|
}));
|
|
@@ -10766,7 +10770,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10766
10770
|
return;
|
|
10767
10771
|
}
|
|
10768
10772
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
10769
|
-
for (let n of C.value.fields) e =
|
|
10773
|
+
for (let n of C.value.fields) e = jd(e, n), _.value.delete(n), t.add(n);
|
|
10770
10774
|
w(t), v(() => {
|
|
10771
10775
|
c.value?.setAdvancedFilterModel(e);
|
|
10772
10776
|
});
|
|
@@ -10829,7 +10833,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10829
10833
|
}
|
|
10830
10834
|
}, {
|
|
10831
10835
|
default: W(() => [
|
|
10832
|
-
x.value && V.value.length > 0 ? (D(), o("ul",
|
|
10836
|
+
x.value && V.value.length > 0 ? (D(), o("ul", Yd, [(D(!0), o(t, null, A(V.value, (e) => (D(), o(t, { key: e.field }, [e.isAvailable ? (D(), o("li", {
|
|
10833
10837
|
key: 0,
|
|
10834
10838
|
"data-active": e.isSelected ? "true" : null
|
|
10835
10839
|
}, [u(ko, {
|
|
@@ -10844,7 +10848,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10844
10848
|
"text",
|
|
10845
10849
|
"selectedIds",
|
|
10846
10850
|
"onHandleSelected"
|
|
10847
|
-
])], 8,
|
|
10851
|
+
])], 8, Xd)) : (D(), o("li", Zd, [u(Ia, {
|
|
10848
10852
|
variant: "dark",
|
|
10849
10853
|
size: "sm",
|
|
10850
10854
|
"tooltip-position": "bottom-right",
|
|
@@ -10861,8 +10865,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10861
10865
|
"tooltip-content": W(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
10862
10866
|
_: 2
|
|
10863
10867
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
10864
|
-
x.value && B.value ? (D(), o("div",
|
|
10865
|
-
x.value ? (D(), i(
|
|
10868
|
+
x.value && B.value ? (D(), o("div", Qd, [u(Dt, { variant: "dark" })])) : a("", !0),
|
|
10869
|
+
x.value ? (D(), i(Lc, {
|
|
10866
10870
|
key: 2,
|
|
10867
10871
|
class: "pv-border-top pv-inset-square-8",
|
|
10868
10872
|
style: { "padding-top": "8px" },
|
|
@@ -10875,7 +10879,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10875
10879
|
_: 1
|
|
10876
10880
|
}, 8, ["class", "css-custom-properties"])])), [[R(Q), [z, { ignore: [".pv-popover"] }]]]);
|
|
10877
10881
|
}
|
|
10878
|
-
}),
|
|
10882
|
+
}), ef = {
|
|
10879
10883
|
key: 0,
|
|
10880
10884
|
role: "list",
|
|
10881
10885
|
class: "pv-flex pv-stack-4",
|
|
@@ -10883,37 +10887,37 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10883
10887
|
"--flex-wrap": "wrap",
|
|
10884
10888
|
"max-width": "100%"
|
|
10885
10889
|
}
|
|
10886
|
-
},
|
|
10890
|
+
}, tf = {
|
|
10887
10891
|
key: 0,
|
|
10888
10892
|
style: {
|
|
10889
10893
|
"max-width": "100%",
|
|
10890
10894
|
"line-height": "1rem"
|
|
10891
10895
|
}
|
|
10892
|
-
},
|
|
10896
|
+
}, nf = {
|
|
10893
10897
|
key: 0,
|
|
10894
10898
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
10895
10899
|
style: { "--inset-size": "4px" }
|
|
10896
|
-
},
|
|
10900
|
+
}, rf = {
|
|
10897
10901
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
10898
10902
|
style: { "--inset-size": "8px" }
|
|
10899
|
-
},
|
|
10903
|
+
}, af = {
|
|
10900
10904
|
class: "pv-inset-inline",
|
|
10901
10905
|
style: { "--inset-size": "8px" }
|
|
10902
|
-
},
|
|
10906
|
+
}, of = {
|
|
10903
10907
|
key: 0,
|
|
10904
10908
|
class: "pv-full-width"
|
|
10905
|
-
},
|
|
10909
|
+
}, sf = {
|
|
10906
10910
|
key: 0,
|
|
10907
10911
|
class: "pv-flex-inline",
|
|
10908
10912
|
style: { "max-width": "100%" }
|
|
10909
|
-
},
|
|
10913
|
+
}, cf = {
|
|
10910
10914
|
role: "list",
|
|
10911
10915
|
class: "pv-flex",
|
|
10912
10916
|
style: {
|
|
10913
10917
|
"--flex-wrap": "wrap",
|
|
10914
10918
|
"max-width": "100%"
|
|
10915
10919
|
}
|
|
10916
|
-
},
|
|
10920
|
+
}, lf = { class: "pv-text-subdued pv-text-body-xxs" }, uf = 4, df = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
10917
10921
|
__name: "SetFilter",
|
|
10918
10922
|
props: {
|
|
10919
10923
|
enableFocusView: {
|
|
@@ -10942,14 +10946,14 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10942
10946
|
"handle-settings-icon"
|
|
10943
10947
|
],
|
|
10944
10948
|
setup(e, { emit: n }) {
|
|
10945
|
-
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: ue, resolvedFilterValueContext: K, isUnresolvedMetadataValue: de, getLatestFilterValues: q, addSelectedValue: fe, removeSelectedValue: pe, recordBulkAction: J, rumLocation: me, handleDropdownOpen: Y, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } =
|
|
10949
|
+
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: ue, resolvedFilterValueContext: K, isUnresolvedMetadataValue: de, getLatestFilterValues: q, addSelectedValue: fe, removeSelectedValue: pe, recordBulkAction: J, rumLocation: me, handleDropdownOpen: Y, handleDropdownClosed: he, handleSeeMore: ge, getColDisplayNameForField: _e, hasMoreOptions: ve, totalOptionCount: ye, isAggregate: be, cascadeSelectionState: xe, cascadeSelectionStateModel: Se } = qd({
|
|
10946
10950
|
filterColDef: L(d, "filterColDef"),
|
|
10947
10951
|
filterStyle: L(d, "filterStyle"),
|
|
10948
10952
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
10949
10953
|
filterGroupStagedFields: x,
|
|
10950
10954
|
readOnly: L(d, "readOnly"),
|
|
10951
10955
|
disableUnselected: L(d, "disableUnselected")
|
|
10952
|
-
}), Ce =
|
|
10956
|
+
}), Ce = Yl(), { handleFocusUpdate: we, isFocused: Te, removeFocus: Ee, isFocusable: De, canRemoveFocus: Oe } = Wu(), ke = (e) => {
|
|
10953
10957
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
10954
10958
|
if (e.id.startsWith("__")) {
|
|
10955
10959
|
let t = e.id.slice(2).split("__");
|
|
@@ -10957,7 +10961,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10957
10961
|
}
|
|
10958
10962
|
return e.id;
|
|
10959
10963
|
}, Ae = r(() => {
|
|
10960
|
-
if (De(
|
|
10964
|
+
if (De(Ts(d.filterColDef) ? Cs(d.filterColDef) : [F.value])) return {
|
|
10961
10965
|
icon: "focus",
|
|
10962
10966
|
isDisabled: (e) => !De([e.context?.colField || F.value]),
|
|
10963
10967
|
tooltipText: (e) => {
|
|
@@ -10990,7 +10994,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
10990
10994
|
pe(e, void 0, "remove_chip");
|
|
10991
10995
|
let t = K(e)?.colField || F.value, n = je(e);
|
|
10992
10996
|
Te(n, t) && Oe() && Ee(n);
|
|
10993
|
-
}, Me = m(
|
|
10997
|
+
}, Me = m(Tu, k(!1)), Ne = r(() => !!$(d.filterColDef).filterGroup && Me.value), Z = null, Pe = null, Fe = () => {
|
|
10994
10998
|
try {
|
|
10995
10999
|
return be.value ? JSON.stringify(xe.value) : JSON.stringify([...C.value].sort());
|
|
10996
11000
|
} catch {
|
|
@@ -11004,8 +11008,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11004
11008
|
let t = Fe(), n = Pe != null && t != null && Pe !== t;
|
|
11005
11009
|
Pe = null;
|
|
11006
11010
|
let r = C.value.length;
|
|
11007
|
-
|
|
11008
|
-
|
|
11011
|
+
Zl(() => {
|
|
11012
|
+
Xl("filter_dropdown_closed", {
|
|
11009
11013
|
filter_name: I.value,
|
|
11010
11014
|
filter_field: F.value,
|
|
11011
11015
|
selection_count: r,
|
|
@@ -11020,7 +11024,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11020
11024
|
let t = K(e)?.colField || F.value;
|
|
11021
11025
|
return Te(je(e), t);
|
|
11022
11026
|
}, ze = r(() => S.value > 0 ? !0 : be.value ? xe.value.length > 0 : C.value.length > 0);
|
|
11023
|
-
return (n, r) => (D(), o(t, null, [s("div", null, [R(z) && R(C).length > 0 ? (D(), o("ul",
|
|
11027
|
+
return (n, r) => (D(), o(t, null, [s("div", null, [R(z) && R(C).length > 0 ? (D(), o("ul", ef, [(D(!0), o(t, null, A(R(C), (n) => (D(), o(t, { key: `${R(I)}-${n}` }, [R(de)(n) ? a("", !0) : (D(), o("li", tf, [u(hc, {
|
|
11024
11028
|
label: R(ue)(n) || "",
|
|
11025
11029
|
showClear: !e.readOnly && (!Re(n) || R(Oe)()),
|
|
11026
11030
|
disabled: e.readOnly,
|
|
@@ -11030,7 +11034,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11030
11034
|
"showClear",
|
|
11031
11035
|
"disabled",
|
|
11032
11036
|
"onHandleClose"
|
|
11033
|
-
])]))], 64))), 128))])) : a("", !0), u(R(
|
|
11037
|
+
])]))], 64))), 128))])) : a("", !0), u(R(Gc), {
|
|
11034
11038
|
modelValue: R(V),
|
|
11035
11039
|
"onUpdate:modelValue": r[1] ||= (e) => h(V) ? V.value = e : null,
|
|
11036
11040
|
disabled: !R(z) && e.readOnly && e.disableUnselected && !ze.value,
|
|
@@ -11083,7 +11087,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11083
11087
|
onSelectAll: r[4] ||= (e) => R(J)("select_all", e),
|
|
11084
11088
|
onClearAll: r[5] ||= (e) => R(J)("clear_all", e)
|
|
11085
11089
|
}, c({
|
|
11086
|
-
preferences: W(() => [s("div",
|
|
11090
|
+
preferences: W(() => [s("div", rf, [r[7] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(R(aa), {
|
|
11087
11091
|
variant: "dark",
|
|
11088
11092
|
size: "sm",
|
|
11089
11093
|
"use-teleport": !0
|
|
@@ -11097,7 +11101,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11097
11101
|
content: W(() => [...r[6] ||= [l(" Open Preferences ", -1)]]),
|
|
11098
11102
|
_: 1
|
|
11099
11103
|
})])]),
|
|
11100
|
-
suggestions: W(() => [s("div",
|
|
11104
|
+
suggestions: W(() => [s("div", af, [u(R(aa), {
|
|
11101
11105
|
variant: "dark",
|
|
11102
11106
|
disableInteractive: !0,
|
|
11103
11107
|
position: "top-left",
|
|
@@ -11117,8 +11121,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11117
11121
|
R(oe) || Ne.value || R(j) ? {
|
|
11118
11122
|
name: "header",
|
|
11119
11123
|
fn: W((t) => [
|
|
11120
|
-
R(j) ? (D(), o("p",
|
|
11121
|
-
Ne.value ? (D(), i(
|
|
11124
|
+
R(j) ? (D(), o("p", nf, " Type " + P(R(O)) + " or more characters to search ", 1)) : a("", !0),
|
|
11125
|
+
Ne.value ? (D(), i($d, {
|
|
11122
11126
|
key: 1,
|
|
11123
11127
|
ref_key: "filterGroupMenuRef",
|
|
11124
11128
|
ref: g,
|
|
@@ -11139,7 +11143,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11139
11143
|
fn: W((e) => [(D(), i(N(R(G)), b(p(e)), null, 16))]),
|
|
11140
11144
|
key: "2"
|
|
11141
11145
|
} : void 0
|
|
11142
|
-
]), 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",
|
|
11146
|
+
]), 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", of, [R(B).length > 0 ? (D(), o("div", sf, [s("ul", cf, [u(R(aa), {
|
|
11143
11147
|
variant: "dark",
|
|
11144
11148
|
disableInteractive: !0,
|
|
11145
11149
|
position: "bottom-left",
|
|
@@ -11147,20 +11151,20 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11147
11151
|
"use-teleport": !0,
|
|
11148
11152
|
style: { "--max-width": "200px" }
|
|
11149
11153
|
}, c({
|
|
11150
|
-
trigger: W(() => [s("li",
|
|
11154
|
+
trigger: W(() => [s("li", lf, [s("p", { class: y(["pv-text-subdued pv-text-body-md", R(ce) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
11151
11155
|
_: 2
|
|
11152
11156
|
}, [R(ce) ? {
|
|
11153
11157
|
name: "content",
|
|
11154
11158
|
fn: W(() => [l(P(R(ce)), 1)]),
|
|
11155
11159
|
key: "0"
|
|
11156
|
-
} : void 0]), 1024), (D(!0), o(t, null, A(R(B).filter((e) => e !== "" && e != null).slice(0,
|
|
11160
|
+
} : void 0]), 1024), (D(!0), o(t, null, A(R(B).filter((e) => e !== "" && e != null).slice(0, uf), (e) => (D(), o("li", {
|
|
11157
11161
|
key: `${R(I)}-${e}-suggest`,
|
|
11158
11162
|
class: y(R(w) ? "pv-shimmer" : ""),
|
|
11159
11163
|
style: {
|
|
11160
11164
|
"max-width": "100%",
|
|
11161
11165
|
"line-height": "1rem"
|
|
11162
11166
|
}
|
|
11163
|
-
}, [u(R(
|
|
11167
|
+
}, [u(R(Tc), {
|
|
11164
11168
|
disabled: R(w),
|
|
11165
11169
|
label: R(ue)(e) || "",
|
|
11166
11170
|
onHandleClick: (t) => R(fe)(e, R(le)(R(F), e)?.colField)
|
|
@@ -11170,18 +11174,18 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11170
11174
|
"onHandleClick"
|
|
11171
11175
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
11172
11176
|
}
|
|
11173
|
-
}), [["__scopeId", "data-v-cdeeca2c"]]),
|
|
11177
|
+
}), [["__scopeId", "data-v-cdeeca2c"]]), ff = { class: "pv-flex pv-space-between pv-stack-8" }, pf = { class: "pv-text-title-lg" }, mf = {
|
|
11174
11178
|
id: "filter-vertical-drawer",
|
|
11175
11179
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
11176
11180
|
style: { height: "100%" }
|
|
11177
|
-
},
|
|
11181
|
+
}, hf = { class: "pv-full-width" }, gf = ["open"], _f = ["data-dd-action-name", "onClick"], vf = { class: "pv-text-title-lg" }, yf = { class: "pv-flex pv-space-between" }, bf = { class: "pv-flex" }, xf = {
|
|
11178
11182
|
class: "pv-flex",
|
|
11179
11183
|
style: {
|
|
11180
11184
|
"--flex-justify": "end",
|
|
11181
11185
|
"--flex-gap": "8px",
|
|
11182
11186
|
"margin-top": "auto"
|
|
11183
11187
|
}
|
|
11184
|
-
},
|
|
11188
|
+
}, Sf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11185
11189
|
__name: "FilterPanel",
|
|
11186
11190
|
props: {
|
|
11187
11191
|
enableFocusView: {
|
|
@@ -11214,18 +11218,18 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11214
11218
|
},
|
|
11215
11219
|
emits: ["handle-settings-icon"],
|
|
11216
11220
|
setup(e) {
|
|
11217
|
-
let n = m(
|
|
11221
|
+
let n = m(tu, k(null)), c = m(iu, k([])), d = m(ru, k(null)), f = m(Tu, k(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, commitStagedFilterModelChanges: S, clearStagedFilterModelChanges: C, filterValuesMap: w, fetchFilterValues: T, filterValuesLoadingStatus: E } = Gd(), O = k(!1), j = k(!1), M = k(""), N = r(() => c.value.flatMap((e) => Cs(e))), ee = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), F = (e) => {
|
|
11218
11222
|
let t = _.value;
|
|
11219
11223
|
if (!t) return !1;
|
|
11220
|
-
let n =
|
|
11224
|
+
let n = Ts(e) ? Cs(e) : [e.field || ""];
|
|
11221
11225
|
if (f.value) {
|
|
11222
11226
|
let e = /* @__PURE__ */ new Set();
|
|
11223
11227
|
return ne(t, e), n.some((t) => e.has(t));
|
|
11224
11228
|
}
|
|
11225
11229
|
let r = t;
|
|
11226
11230
|
return n.some((e) => !!r[e]);
|
|
11227
|
-
}, I = (e) => p.readOnly && !F(e), L = r(() => c.value.filter((e) =>
|
|
11228
|
-
let n =
|
|
11231
|
+
}, I = (e) => p.readOnly && !F(e), L = r(() => c.value.filter((e) => yd(e) && !N.value.includes(e.field || "") && !ee.value.includes(e.field || "")).sort((e, t) => {
|
|
11232
|
+
let n = Ts(e), r = Ts(t);
|
|
11229
11233
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
11230
11234
|
})), z = r(() => L.value), te = r(() => {
|
|
11231
11235
|
let e = M.value?.trim().toLowerCase() || "";
|
|
@@ -11268,7 +11272,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11268
11272
|
});
|
|
11269
11273
|
}
|
|
11270
11274
|
}
|
|
11271
|
-
}, { clearAllFocuses: U } =
|
|
11275
|
+
}, { clearAllFocuses: U } = Wu(), ae = () => {
|
|
11272
11276
|
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);
|
|
11273
11277
|
}, oe = () => {
|
|
11274
11278
|
O.value = !1, M.value = "";
|
|
@@ -11281,7 +11285,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11281
11285
|
class: "pv-flex",
|
|
11282
11286
|
style: x(e.wrapHorizontalFilters ? "--flex-wrap: wrap; max-width: 100%" : void 0)
|
|
11283
11287
|
}, [
|
|
11284
|
-
(D(!0), o(t, null, A(B.value, (e) => (D(), o(t, { key: e.field }, [R(n) ? (D(), i(
|
|
11288
|
+
(D(!0), o(t, null, A(B.value, (e) => (D(), o(t, { key: e.field }, [R(n) ? (D(), i(df, {
|
|
11285
11289
|
key: 0,
|
|
11286
11290
|
"enable-focus-view": p.enableFocusView,
|
|
11287
11291
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -11323,7 +11327,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11323
11327
|
variant: "tertiary"
|
|
11324
11328
|
}, null, 8, ["value"])) : a("", !0)
|
|
11325
11329
|
])) : a("", !0)], 4),
|
|
11326
|
-
p.enableVerticalPanel ? (D(), i(R(
|
|
11330
|
+
p.enableVerticalPanel ? (D(), i(R(Pc), {
|
|
11327
11331
|
key: 0,
|
|
11328
11332
|
modelValue: O.value,
|
|
11329
11333
|
"onUpdate:modelValue": c[9] ||= (e) => O.value = e,
|
|
@@ -11335,7 +11339,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11335
11339
|
"z-index": "10"
|
|
11336
11340
|
}
|
|
11337
11341
|
}, {
|
|
11338
|
-
header: W(() => [s("div",
|
|
11342
|
+
header: W(() => [s("div", ff, [s("p", pf, "All Filters (" + P(z.value.length) + ")", 1), s("button", {
|
|
11339
11343
|
class: "pv-button-ghost",
|
|
11340
11344
|
"aria-label": "Close",
|
|
11341
11345
|
onClick: c[2] ||= (e) => G()
|
|
@@ -11344,7 +11348,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11344
11348
|
"onUpdate:modelValue": c[3] ||= (e) => M.value = e,
|
|
11345
11349
|
placeholder: "Search Filters"
|
|
11346
11350
|
}, null, 8, ["modelValue"])]),
|
|
11347
|
-
footer: W(() => [s("div",
|
|
11351
|
+
footer: W(() => [s("div", yf, [p.readOnly ? (D(), i(R(Kn), {
|
|
11348
11352
|
key: 1,
|
|
11349
11353
|
variant: "ghost",
|
|
11350
11354
|
label: "Close",
|
|
@@ -11353,7 +11357,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11353
11357
|
class: "pv-button-ghost",
|
|
11354
11358
|
"data-dd-action-name": "Clear all page filters",
|
|
11355
11359
|
onClick: c[5] ||= (e) => ae()
|
|
11356
|
-
}, " Clear All "), s("div",
|
|
11360
|
+
}, " Clear All "), s("div", bf, [u(R(Kn), {
|
|
11357
11361
|
variant: "ghost",
|
|
11358
11362
|
label: "Cancel",
|
|
11359
11363
|
"data-dd-action-name": "Cancel filter changes",
|
|
@@ -11370,7 +11374,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11370
11374
|
label: "No Changes",
|
|
11371
11375
|
disabled: ""
|
|
11372
11376
|
}))])], 64))])]),
|
|
11373
|
-
default: W(() => [s("div",
|
|
11377
|
+
default: W(() => [s("div", mf, [s("div", hf, [(D(!0), o(t, null, A(te.value, (e, t) => (D(), o("div", {
|
|
11374
11378
|
key: e.field,
|
|
11375
11379
|
class: y([{ "pv-border-bottom": t < te.value.length - 1 }, "pv-stack-12"])
|
|
11376
11380
|
}, [s("details", {
|
|
@@ -11380,7 +11384,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11380
11384
|
class: "pv-flex pv-full-width",
|
|
11381
11385
|
"data-dd-action-name": `Expand ${e.headerName} section`,
|
|
11382
11386
|
onClick: (t) => I(e) && t.preventDefault()
|
|
11383
|
-
}, [s("span",
|
|
11387
|
+
}, [s("span", vf, P(e.headerName), 1)], 8, _f), s("div", null, [R(n) ? (D(), i(df, {
|
|
11384
11388
|
key: 0,
|
|
11385
11389
|
"filter-style": "vertical",
|
|
11386
11390
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -11398,17 +11402,16 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11398
11402
|
"focus-text",
|
|
11399
11403
|
"read-only",
|
|
11400
11404
|
"disable-unselected"
|
|
11401
|
-
])) : a("", !0)])], 10,
|
|
11405
|
+
])) : a("", !0)])], 10, gf)], 2))), 128))])])]),
|
|
11402
11406
|
_: 1
|
|
11403
11407
|
}, 8, ["modelValue"])) : a("", !0)
|
|
11404
|
-
], 4), u(R(
|
|
11408
|
+
], 4), u(R(xc), {
|
|
11405
11409
|
modelValue: j.value,
|
|
11406
11410
|
"onUpdate:modelValue": c[12] ||= (e) => j.value = e,
|
|
11407
|
-
header: "Clear All Filters"
|
|
11408
|
-
style: { top: "50%" }
|
|
11411
|
+
header: "Clear All Filters"
|
|
11409
11412
|
}, {
|
|
11410
11413
|
body: W(() => [...c[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
11411
|
-
footer: W(() => [s("div",
|
|
11414
|
+
footer: W(() => [s("div", xf, [u(R(Kn), {
|
|
11412
11415
|
label: "Cancel",
|
|
11413
11416
|
variant: "secondary",
|
|
11414
11417
|
size: "lg",
|
|
@@ -11424,25 +11427,25 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11424
11427
|
_: 1
|
|
11425
11428
|
}, 8, ["modelValue"])], 64));
|
|
11426
11429
|
}
|
|
11427
|
-
}), [["__scopeId", "data-v-
|
|
11430
|
+
}), [["__scopeId", "data-v-b4740f96"]]), Cf = { key: 2 }, wf = { style: {
|
|
11428
11431
|
"max-width": "220px",
|
|
11429
11432
|
"white-space": "normal",
|
|
11430
11433
|
"overflow-wrap": "break-word"
|
|
11431
|
-
} },
|
|
11434
|
+
} }, Tf = {
|
|
11432
11435
|
key: 0,
|
|
11433
11436
|
class: "pv-flex ag-header-actions"
|
|
11434
|
-
},
|
|
11437
|
+
}, Ef = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11435
11438
|
__name: "HeaderCellRenderer",
|
|
11436
11439
|
props: { params: {} },
|
|
11437
11440
|
setup(e, { expose: t }) {
|
|
11438
|
-
let n = m(
|
|
11441
|
+
let n = m(eu, k([])), c = m(ou, k([])), l = e, d = k(!1), f = k(!1), p = k(null), h = k(null), g = k(null), _ = k(null), v = k(!1), b = r(() => {
|
|
11439
11442
|
let e = l.params.column.getColDef();
|
|
11440
11443
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
11441
11444
|
}), C = r(() => {
|
|
11442
11445
|
if (!n.value || n.value.length === 0) return "";
|
|
11443
11446
|
let e = n.value.find((e) => e.colId === l.params.column.getColId()), t = e ? e.sort : "";
|
|
11444
11447
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
11445
|
-
}), w = r(() =>
|
|
11448
|
+
}), w = r(() => xs(l.params.column.getColDef())), T = r(() => {
|
|
11446
11449
|
let e = l.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
11447
11450
|
if (!t || t.length <= 1) return [];
|
|
11448
11451
|
let n = $(e).aggFuncDisplayNameMap || {};
|
|
@@ -11522,7 +11525,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11522
11525
|
"popoverProperties",
|
|
11523
11526
|
"icon",
|
|
11524
11527
|
"label"
|
|
11525
|
-
])) : (D(), o("p",
|
|
11528
|
+
])) : (D(), o("p", Cf, P(p.value), 1)),
|
|
11526
11529
|
g.value ? (D(), i(aa, {
|
|
11527
11530
|
key: 3,
|
|
11528
11531
|
variant: "white",
|
|
@@ -11539,14 +11542,14 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11539
11542
|
class: "pv-text-subdued",
|
|
11540
11543
|
onClick: t[2] ||= G(() => {}, ["stop"])
|
|
11541
11544
|
})]),
|
|
11542
|
-
content: W(() => [s("div",
|
|
11545
|
+
content: W(() => [s("div", wf, P(g.value), 1)]),
|
|
11543
11546
|
_: 1
|
|
11544
11547
|
})) : a("", !0),
|
|
11545
11548
|
f.value && C.value !== "" ? (D(), i(Hn, {
|
|
11546
11549
|
key: 4,
|
|
11547
11550
|
name: C.value
|
|
11548
11551
|
}, null, 8, ["name"])) : a("", !0)
|
|
11549
|
-
], 6), b.value ? (D(), o("div",
|
|
11552
|
+
], 6), b.value ? (D(), o("div", Tf, [s("div", {
|
|
11550
11553
|
ref_key: "menuButton",
|
|
11551
11554
|
ref: _,
|
|
11552
11555
|
class: "ag-header-cell-menu-button",
|
|
@@ -11559,7 +11562,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11559
11562
|
onClick: G(L, ["stop", "prevent"])
|
|
11560
11563
|
})], 4)])) : a("", !0)], 6));
|
|
11561
11564
|
}
|
|
11562
|
-
}), [["__scopeId", "data-v-
|
|
11565
|
+
}), [["__scopeId", "data-v-92c7c86f"]]), Df = {
|
|
11563
11566
|
headerHeight: "30px",
|
|
11564
11567
|
headerBackgroundColor: "var(--color-background-body, white)",
|
|
11565
11568
|
headerCellHoverBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -11574,14 +11577,14 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11574
11577
|
rangeSelectionBorderStyle: "solid",
|
|
11575
11578
|
menuBackgroundColor: "var(--color-background-body, white)",
|
|
11576
11579
|
accentColor: "var(--color-background-brand, #36c5ba)"
|
|
11577
|
-
},
|
|
11578
|
-
...
|
|
11580
|
+
}, Of = Ie.withParams({
|
|
11581
|
+
...Df,
|
|
11579
11582
|
headerRowBorder: !0,
|
|
11580
11583
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11581
11584
|
wrapperBorder: !0,
|
|
11582
11585
|
wrapperBorderRadius: "8px"
|
|
11583
|
-
}),
|
|
11584
|
-
...
|
|
11586
|
+
}), kf = Ie.withParams({
|
|
11587
|
+
...Df,
|
|
11585
11588
|
headerRowBorder: !1,
|
|
11586
11589
|
rowHoverColor: "transparent",
|
|
11587
11590
|
wrapperBorder: !1,
|
|
@@ -11590,20 +11593,39 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11590
11593
|
rowBorder: !1,
|
|
11591
11594
|
columnBorder: !1,
|
|
11592
11595
|
rowHeight: "50px"
|
|
11593
|
-
}),
|
|
11594
|
-
"pv-data-table-base":
|
|
11596
|
+
}), Af = {
|
|
11597
|
+
"pv-data-table-base": Of,
|
|
11595
11598
|
"pv-data-table-grouped": Ie.withParams({
|
|
11596
|
-
...
|
|
11599
|
+
...Df,
|
|
11597
11600
|
headerRowBorder: !0,
|
|
11598
11601
|
rowHoverColor: "var(--color-background-accent, #f7f8f8)",
|
|
11599
11602
|
wrapperBorder: !0,
|
|
11600
11603
|
wrapperBorderRadius: "8px"
|
|
11601
11604
|
}),
|
|
11602
|
-
"pv-data-table-grouped-card":
|
|
11603
|
-
|
|
11605
|
+
"pv-data-table-grouped-card": kf,
|
|
11606
|
+
"pv-data-table-classic": Ie.withParams({
|
|
11607
|
+
...Df,
|
|
11608
|
+
backgroundColor: "var(--color-background-body, white)",
|
|
11609
|
+
borderColor: "var(--color-border, #e3e7ea)",
|
|
11610
|
+
foregroundColor: "var(--color-text-body, #121313)",
|
|
11611
|
+
headerHeight: "33px",
|
|
11612
|
+
headerBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
11613
|
+
headerCellHoverBackgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
11614
|
+
headerFontSize: "12px",
|
|
11615
|
+
headerFontWeight: 600,
|
|
11616
|
+
headerRowBorder: !0,
|
|
11617
|
+
cellHorizontalPadding: "12px",
|
|
11618
|
+
rowHeight: "33px",
|
|
11619
|
+
rowBorder: !0,
|
|
11620
|
+
rowHoverColor: "transparent",
|
|
11621
|
+
columnBorder: !1,
|
|
11622
|
+
wrapperBorder: !1,
|
|
11623
|
+
wrapperBorderRadius: "0px"
|
|
11624
|
+
})
|
|
11625
|
+
}, jf = { class: "pv-popover-menu" }, Mf = {
|
|
11604
11626
|
class: "pv-popover",
|
|
11605
11627
|
style: { "--height": "auto" }
|
|
11606
|
-
},
|
|
11628
|
+
}, Nf = ["disabled"], Pf = /* @__PURE__ */ d({
|
|
11607
11629
|
__name: "ExportMenu",
|
|
11608
11630
|
props: { getCsvData: { type: Function } },
|
|
11609
11631
|
setup(e) {
|
|
@@ -11618,26 +11640,26 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11618
11640
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
11619
11641
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
11620
11642
|
}
|
|
11621
|
-
return (e, n) => (D(), o("nav",
|
|
11643
|
+
return (e, n) => (D(), o("nav", jf, [n[0] ||= s("button", {
|
|
11622
11644
|
type: "button",
|
|
11623
11645
|
class: "pv-button-icon"
|
|
11624
11646
|
}, [s("svg", {
|
|
11625
11647
|
"aria-hidden": "true",
|
|
11626
11648
|
class: "pv-icon-24"
|
|
11627
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
11649
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Mf, [s("button", {
|
|
11628
11650
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
11629
11651
|
onClick: G(i, ["prevent"]),
|
|
11630
11652
|
disabled: r.value
|
|
11631
|
-
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
11653
|
+
}, [r.value ? (D(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (D(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Nf)])]));
|
|
11632
11654
|
}
|
|
11633
|
-
}),
|
|
11655
|
+
}), Ff = /* @__PURE__ */ d({
|
|
11634
11656
|
__name: "PaginationPanel",
|
|
11635
11657
|
props: { panelSize: { default: "xl" } },
|
|
11636
11658
|
setup(e) {
|
|
11637
|
-
let t = m(
|
|
11659
|
+
let t = m(tu, k(null)), n = m(du, k(1)), r = m(fu, k(0)), i = e, a = (e) => {
|
|
11638
11660
|
e >= 1 && e <= r.value && t.value && t?.value.paginationGoToPage(e - 1);
|
|
11639
11661
|
};
|
|
11640
|
-
return (e, t) => (D(), o("div", { class: y({ "pv-hide": R(r) <= 1 }) }, [u(
|
|
11662
|
+
return (e, t) => (D(), o("div", { class: y({ "pv-hide": R(r) <= 1 }) }, [u(Qc, {
|
|
11641
11663
|
"model-value": R(n),
|
|
11642
11664
|
"onUpdate:modelValue": a,
|
|
11643
11665
|
"max-pages": R(r),
|
|
@@ -11648,10 +11670,10 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11648
11670
|
"size"
|
|
11649
11671
|
])], 2));
|
|
11650
11672
|
}
|
|
11651
|
-
}),
|
|
11673
|
+
}), If = {
|
|
11652
11674
|
key: 0,
|
|
11653
11675
|
class: "pv-tag"
|
|
11654
|
-
},
|
|
11676
|
+
}, Lf = /* @__PURE__ */ d({
|
|
11655
11677
|
__name: "TagCellRenderer",
|
|
11656
11678
|
props: { params: {} },
|
|
11657
11679
|
setup(e) {
|
|
@@ -11659,12 +11681,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11659
11681
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
11660
11682
|
return e.trim() === "" ? null : e;
|
|
11661
11683
|
});
|
|
11662
|
-
return (e, t) => n.value ? (D(), o("div",
|
|
11684
|
+
return (e, t) => n.value ? (D(), o("div", If, P(n.value), 1)) : a("", !0);
|
|
11663
11685
|
}
|
|
11664
|
-
}),
|
|
11686
|
+
}), Rf = {
|
|
11665
11687
|
key: 0,
|
|
11666
11688
|
class: "pv-table-row-number"
|
|
11667
|
-
},
|
|
11689
|
+
}, zf = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
11668
11690
|
__name: "RowCountCellRenderer",
|
|
11669
11691
|
props: { params: {} },
|
|
11670
11692
|
setup(e) {
|
|
@@ -11672,17 +11694,17 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11672
11694
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
11673
11695
|
return e && bs(e) ? n.toLocaleString() : n;
|
|
11674
11696
|
});
|
|
11675
|
-
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span",
|
|
11697
|
+
return (e, t) => (D(), o("div", null, [s("p", null, [n.value ? (D(), o("span", Rf, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
11676
11698
|
}
|
|
11677
|
-
}), [["__scopeId", "data-v-2485e378"]]),
|
|
11699
|
+
}), [["__scopeId", "data-v-2485e378"]]), Bf = 4, Vf = /* @__PURE__ */ d({
|
|
11678
11700
|
__name: "TableSearch",
|
|
11679
11701
|
props: {
|
|
11680
11702
|
placeholder: {},
|
|
11681
11703
|
searchStyle: {}
|
|
11682
11704
|
},
|
|
11683
11705
|
setup(e) {
|
|
11684
|
-
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(
|
|
11685
|
-
f(c.value ?
|
|
11706
|
+
let t = e, n = k(null), r = k(""), a = k([]), o = k(!1), s = m(tu, k(null)), c = m(Tu, k(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = Gd(), p = (e) => {
|
|
11707
|
+
f(c.value ? md(e) : pd(e));
|
|
11686
11708
|
}, h = async (e) => {
|
|
11687
11709
|
if (!s?.value || typeof s.value.setGridOption != "function") return;
|
|
11688
11710
|
if (!l.value) {
|
|
@@ -11744,7 +11766,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11744
11766
|
debounce: 300,
|
|
11745
11767
|
immediate: !0,
|
|
11746
11768
|
deep: !0
|
|
11747
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(
|
|
11769
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (D(), i(ql, {
|
|
11748
11770
|
key: 0,
|
|
11749
11771
|
placeholder: e.placeholder,
|
|
11750
11772
|
"search-text": r.value,
|
|
@@ -11754,7 +11776,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11754
11776
|
options: a.value,
|
|
11755
11777
|
"onUpdate:options": s[2] ||= (e) => a.value = e,
|
|
11756
11778
|
"options-loading": o.value,
|
|
11757
|
-
"query-term-display-limit":
|
|
11779
|
+
"query-term-display-limit": Bf
|
|
11758
11780
|
}, null, 8, [
|
|
11759
11781
|
"placeholder",
|
|
11760
11782
|
"search-text",
|
|
@@ -11768,25 +11790,25 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
11768
11790
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
11769
11791
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
11770
11792
|
}
|
|
11771
|
-
}),
|
|
11793
|
+
}), Hf = {
|
|
11772
11794
|
style: {
|
|
11773
11795
|
"background-color": "var(--color-background-body, white)",
|
|
11774
11796
|
"max-width": "300px"
|
|
11775
11797
|
},
|
|
11776
11798
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
11777
|
-
},
|
|
11799
|
+
}, Uf = { style: { color: "var(--color-text-body, black)" } }, Wf = /* @__PURE__ */ d({
|
|
11778
11800
|
__name: "TableTooltip",
|
|
11779
11801
|
props: { params: {} },
|
|
11780
11802
|
setup(e) {
|
|
11781
|
-
return (t, n) => (D(), o("div",
|
|
11803
|
+
return (t, n) => (D(), o("div", Hf, [s("p", Uf, P(e.params.value), 1)]));
|
|
11782
11804
|
}
|
|
11783
|
-
}),
|
|
11805
|
+
}), Gf = { class: "pv-stack-16" }, Kf = {
|
|
11784
11806
|
key: 0,
|
|
11785
11807
|
class: "pv-table-overlay"
|
|
11786
|
-
},
|
|
11808
|
+
}, qf = {
|
|
11787
11809
|
class: "pv-text-body-xs pv-text-center",
|
|
11788
11810
|
style: { "padding-top": "16px" }
|
|
11789
|
-
},
|
|
11811
|
+
}, Jf = /* @__PURE__ */ d({
|
|
11790
11812
|
__name: "PvDataTable",
|
|
11791
11813
|
props: {
|
|
11792
11814
|
allFieldsAreFocusable: {
|
|
@@ -12032,17 +12054,17 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12032
12054
|
let h = r(() => f.layout ? {} : {
|
|
12033
12055
|
height: f.containerHeight,
|
|
12034
12056
|
minHeight: f.containerMinHeight
|
|
12035
|
-
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => g.value ? f.theme :
|
|
12036
|
-
let t =
|
|
12057
|
+
}), g = r(() => f.theme != null && typeof f.theme != "string"), w = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), T = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", E = r(() => g.value ? f.theme : Af[w.value]), A = c, M = k(!1), N = (e) => {
|
|
12058
|
+
let t = Cs(e), n = e.context;
|
|
12037
12059
|
return Array.from(new Set([
|
|
12038
12060
|
...t,
|
|
12039
12061
|
...n?.queryColIds || [],
|
|
12040
12062
|
...t.flatMap((e) => G.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
12041
12063
|
]));
|
|
12042
12064
|
}, F = (e, t) => {
|
|
12043
|
-
if (
|
|
12044
|
-
let n = G.find((e) =>
|
|
12045
|
-
return !!n && N(n).some((t) =>
|
|
12065
|
+
if (_d(e, t)) return !0;
|
|
12066
|
+
let n = G.find((e) => ws(e) === t);
|
|
12067
|
+
return !!n && N(n).some((t) => _d(e, t));
|
|
12046
12068
|
}, L = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
12047
12069
|
if (!pe.value) {
|
|
12048
12070
|
e.success({ rowData: [] }), de.value = !0;
|
|
@@ -12054,7 +12076,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12054
12076
|
let t = e.request.rowGroupCols[0].id;
|
|
12055
12077
|
o = F(s, t);
|
|
12056
12078
|
}
|
|
12057
|
-
if (e.request.rowGroupCols =
|
|
12079
|
+
if (e.request.rowGroupCols = Es(e.request.rowGroupCols, e.api.getColumnDefs?.()), (e.request.groupKeys?.length || 0) > 0) {
|
|
12058
12080
|
let t = e.parentNode?.data;
|
|
12059
12081
|
if (t?.bucketMin != null && t?.bucketMax != null) {
|
|
12060
12082
|
if (f.enableAdvancedFilter) {
|
|
@@ -12076,7 +12098,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12076
12098
|
filter: t.bucketMax
|
|
12077
12099
|
}]
|
|
12078
12100
|
};
|
|
12079
|
-
n =
|
|
12101
|
+
n = Ad(n, i, e);
|
|
12080
12102
|
}
|
|
12081
12103
|
}), n && (e.request.filterModel = n);
|
|
12082
12104
|
} else {
|
|
@@ -12112,7 +12134,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12112
12134
|
} : e.request.filterModel = s;
|
|
12113
12135
|
} else {
|
|
12114
12136
|
let t = e.request.filterModel;
|
|
12115
|
-
e.request.filterModel =
|
|
12137
|
+
e.request.filterModel = vd(G, t, s);
|
|
12116
12138
|
}
|
|
12117
12139
|
e.success = (e) => {
|
|
12118
12140
|
if (q.value = !1, f.enableFocusView && mt.value.length > 0 && pt.value && e.rowData) {
|
|
@@ -12128,7 +12150,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12128
12150
|
}, f.serverSideRowHandler?.(e);
|
|
12129
12151
|
} } : null, z = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
12130
12152
|
let t = [], n = { ...rt.value };
|
|
12131
|
-
t = !de.value && le ?
|
|
12153
|
+
t = !de.value && le ? Pd(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await lt(e.colDef, {
|
|
12132
12154
|
api: e.api,
|
|
12133
12155
|
filterModel: n,
|
|
12134
12156
|
useStaged: !1
|
|
@@ -12147,19 +12169,19 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12147
12169
|
suppressColumnsToolPanel: !0,
|
|
12148
12170
|
minWidth: 150,
|
|
12149
12171
|
flex: 1,
|
|
12150
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
12172
|
+
headerComponent: f.enableInlineFilters ? void 0 : Ef,
|
|
12151
12173
|
cellDataType: !1,
|
|
12152
|
-
tooltipComponent:
|
|
12174
|
+
tooltipComponent: Wf,
|
|
12153
12175
|
cellClass: (e) => Et(e.column) ? "" : bs(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
12154
12176
|
cellRendererSelector: (e) => {
|
|
12155
12177
|
if (te(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
12156
|
-
component:
|
|
12178
|
+
component: ad,
|
|
12157
12179
|
params: e
|
|
12158
12180
|
};
|
|
12159
12181
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
12160
12182
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
12161
12183
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
12162
|
-
component:
|
|
12184
|
+
component: zf,
|
|
12163
12185
|
params: e
|
|
12164
12186
|
};
|
|
12165
12187
|
}
|
|
@@ -12184,7 +12206,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12184
12206
|
}
|
|
12185
12207
|
}, H = (e) => !e.node?.group && e.data != null && e.value != null && e.value !== "", oe = (e, t) => {
|
|
12186
12208
|
if (!e) return null;
|
|
12187
|
-
let n = { ...e }, r = t, i =
|
|
12209
|
+
let n = { ...e }, r = t, i = Cs(e);
|
|
12188
12210
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
12189
12211
|
else return null;
|
|
12190
12212
|
if (i.length > 0) {
|
|
@@ -12198,21 +12220,21 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12198
12220
|
let t = e.headerValueGetter;
|
|
12199
12221
|
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 || "";
|
|
12200
12222
|
}
|
|
12201
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === ds.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === ds.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === ds.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === ds.Tag && !e.cellRenderer && (n.cellRenderer =
|
|
12223
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => Pt(e, r.dataType) : r.dataType === ds.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Mt(e, r.valueDecimals || 0) : r.dataType === ds.Currency && !e.valueFormatter ? n.valueFormatter = (e) => jt(e, r.valueDecimals || 0) : r.dataType === ds.Integer && !e.valueFormatter ? n.valueFormatter = Nt : r.dataType === ds.Tag && !e.cellRenderer && (n.cellRenderer = Lf), n;
|
|
12202
12224
|
}, G = f.colDefs?.map((e) => {
|
|
12203
12225
|
let t = { ...e };
|
|
12204
|
-
L && z &&
|
|
12226
|
+
L && z && yd(e) && (t = bd(e, z));
|
|
12205
12227
|
let n = e.context;
|
|
12206
12228
|
return n && (t = oe(t, n)), t;
|
|
12207
12229
|
}).filter((e) => e != null) || [], se = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
12208
|
-
for (let e of G) for (let t of
|
|
12209
|
-
let ce = G.some((e) => e.context?.visibilityState !== void 0), le =
|
|
12230
|
+
for (let e of G) for (let t of Cs(e)) se.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
12231
|
+
let ce = G.some((e) => e.context?.visibilityState !== void 0), le = fd(f.initialGridState, G, f.enableAdvancedFilter), ue = k(null), K = k([]), de = m(lu, k(!1)), q = k(!1), fe = r(() => {
|
|
12210
12232
|
if (K.value.length > 0) {
|
|
12211
12233
|
let e = K.value[0], t = G.find((t) => t.field === e), n = rt.value, r = !n;
|
|
12212
|
-
if (!r &&
|
|
12234
|
+
if (!r && Bd(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
12213
12235
|
}
|
|
12214
12236
|
return null;
|
|
12215
|
-
}), pe = r(() => Q.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : fe.value === null), J = r(() => fe.value ? `Select at least one value for "${fe.value}" to view data.` : "Select a filter to view data."), Y = ee(null), Ie = k([]), Q = f.filterStore ||
|
|
12237
|
+
}), pe = r(() => Q.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : fe.value === null), J = r(() => fe.value ? `Select at least one value for "${fe.value}" to view data.` : "Select a filter to view data."), Y = ee(null), Ie = k([]), Q = f.filterStore || Gd(), tt = m($l, null), nt = tt || Uu(null, f.allFieldsAreFocusable), rt = Q.filterModel, it = Q.tableSearchFilterModel, at = Q.filterValueMap, st = Q.filterValuesMap, ct = Q.filterValueSelectedMetadataMap, lt = Q.fetchFilterValues, ut = Q.filterStoreHandler, dt = Q.tableSearchHandler;
|
|
12216
12238
|
if (ut.value = f.filterValuesSetHandler, ut.value) {
|
|
12217
12239
|
let e = (e) => ({
|
|
12218
12240
|
hasMore: Q.filterHasMoreMap.value[e],
|
|
@@ -12241,7 +12263,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12241
12263
|
debounce: 250
|
|
12242
12264
|
});
|
|
12243
12265
|
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);
|
|
12244
|
-
O(
|
|
12266
|
+
O(Ql, Q), O($l, nt), O(eu, Ie), O(tu, Y), O(nu, ft), O(ru, ue), O(iu, ht), O(au, gt), O(ou, K), O(su, vt), O(cu, yt), O(lu, de), O(uu, q), O(du, bt), O(fu, xt), O(Tu, r(() => f.enableAdvancedFilter));
|
|
12245
12267
|
let St = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !mt.value.length && !pt.value ? f.rowData : gs(f.rowData, pt.value, mt.value));
|
|
12246
12268
|
U(() => mt.value, (e) => {
|
|
12247
12269
|
A("focus-update", {
|
|
@@ -12264,7 +12286,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12264
12286
|
}, wt = (e) => {
|
|
12265
12287
|
if (Y.value) {
|
|
12266
12288
|
let t = Ft();
|
|
12267
|
-
|
|
12289
|
+
kd(rt.value, t) || (rt.value = t, A("filter-changed", e));
|
|
12268
12290
|
}
|
|
12269
12291
|
}, Tt = (e) => {
|
|
12270
12292
|
Ie.value = e.api?.getState()?.sort?.sortModel || [], de.value && A("sort-changed", e);
|
|
@@ -12345,10 +12367,10 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12345
12367
|
}, Ft = () => Y.value ? f.enableAdvancedFilter ? Y.value.getAdvancedFilterModel() : Y.value.getFilterModel() : rt.value, It = (e) => {
|
|
12346
12368
|
if (!Y.value) return !1;
|
|
12347
12369
|
if (f.enableAdvancedFilter) {
|
|
12348
|
-
let t = e &&
|
|
12370
|
+
let t = e && Bd(e) ? dd(e) : e;
|
|
12349
12371
|
Y.value.setAdvancedFilterModel(t);
|
|
12350
12372
|
} else {
|
|
12351
|
-
if (e && !
|
|
12373
|
+
if (e && !Bd(e)) return console.warn("Attempting to set a non-regular filter model while advanced filtering is disabled. The filter model was not applied. Consider enabling advanced filtering for full functionality."), !1;
|
|
12352
12374
|
Y.value.setFilterModel(e);
|
|
12353
12375
|
}
|
|
12354
12376
|
return !0;
|
|
@@ -12406,7 +12428,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12406
12428
|
if (e) return e.click(), !0;
|
|
12407
12429
|
}
|
|
12408
12430
|
return !1;
|
|
12409
|
-
}, qt = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) :
|
|
12431
|
+
}, qt = r(() => f.fullWidthCellRenderer ? I(f.fullWidthCellRenderer) : void 0), Jt = r(() => f.loadingCellRenderer ? I(f.loadingCellRenderer) : zu), Yt = { loadingMessage: "One moment please..." }, Xt = k((() => {
|
|
12410
12432
|
let e = {
|
|
12411
12433
|
headerName: "",
|
|
12412
12434
|
minWidth: 200,
|
|
@@ -12416,7 +12438,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12416
12438
|
headerComponent: void 0,
|
|
12417
12439
|
cellRendererParams: {
|
|
12418
12440
|
suppressCount: !0,
|
|
12419
|
-
innerRenderer:
|
|
12441
|
+
innerRenderer: td,
|
|
12420
12442
|
innerRendererParams: (e) => ({
|
|
12421
12443
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
12422
12444
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -12435,7 +12457,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12435
12457
|
Xt.value.headerName = "", Xt.value.headerComponent = void 0, Xt.value.context = null, Xt.value.sortable = !1, Xt.value.filter = void 0, Xt.value.enableRowGroup = void 0;
|
|
12436
12458
|
return;
|
|
12437
12459
|
}
|
|
12438
|
-
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
12460
|
+
Xt.value.field = e.field, Xt.value.headerName = e.headerName, Xt.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : Ef), Xt.value.context = { dataType: e.context?.dataType || null }, Xt.value.sortable = e.sortable, Xt.value.filter = e.filter, Xt.value.enableRowGroup = e.enableRowGroup, Xt.value.onCellClicked = e.onCellClicked;
|
|
12439
12461
|
}, Qt = (e) => {
|
|
12440
12462
|
if (e.node.group) return {
|
|
12441
12463
|
backgroundColor: "var(--color-background-accent, #f7f8f8)",
|
|
@@ -12448,12 +12470,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12448
12470
|
let t = e.values;
|
|
12449
12471
|
if (e.rowNode.leafGroup) return {
|
|
12450
12472
|
values: t,
|
|
12451
|
-
value:
|
|
12473
|
+
value: nd(t)
|
|
12452
12474
|
};
|
|
12453
12475
|
let n = e.values.flatMap((e) => e.values || []);
|
|
12454
12476
|
return {
|
|
12455
12477
|
values: n,
|
|
12456
|
-
value:
|
|
12478
|
+
value: nd(n)
|
|
12457
12479
|
};
|
|
12458
12480
|
} };
|
|
12459
12481
|
S(() => {
|
|
@@ -12473,7 +12495,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12473
12495
|
let t = Y.value;
|
|
12474
12496
|
if (!t) return;
|
|
12475
12497
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
12476
|
-
n && !
|
|
12498
|
+
n && !kd(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !ot(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
12477
12499
|
let a = e.columnOrder?.orderedColIds;
|
|
12478
12500
|
ce && a?.length && (ot(a, t.getAllGridColumns().map((e) => e.getColId())) || t.applyColumnState({
|
|
12479
12501
|
state: a.map((e) => ({ colId: e })),
|
|
@@ -12482,7 +12504,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12482
12504
|
};
|
|
12483
12505
|
U(() => f.initialGridState, () => {
|
|
12484
12506
|
if (f.initialGridState) {
|
|
12485
|
-
let e =
|
|
12507
|
+
let e = fd(f.initialGridState, G, f.enableAdvancedFilter);
|
|
12486
12508
|
e && tn(e);
|
|
12487
12509
|
}
|
|
12488
12510
|
}, { deep: !0 });
|
|
@@ -12534,7 +12556,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12534
12556
|
content: W(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
12535
12557
|
_: 1
|
|
12536
12558
|
})) : a("", !0),
|
|
12537
|
-
ae(s("div",
|
|
12559
|
+
ae(s("div", Gf, [s("div", {
|
|
12538
12560
|
class: "pv-flex pv-space-between",
|
|
12539
12561
|
style: x(un.value ? "--flex-align: flex-start; --flex-wrap: wrap" : void 0)
|
|
12540
12562
|
}, [s("div", {
|
|
@@ -12543,10 +12565,10 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12543
12565
|
}, [e.enableTableSearch && e.tableSearchInline ? (D(), o("div", {
|
|
12544
12566
|
key: 0,
|
|
12545
12567
|
style: x(fn.value)
|
|
12546
|
-
}, [u(
|
|
12568
|
+
}, [u(Vf, b(p(pn.value)), null, 16)], 4)) : a("", !0), (D(), i(n, {
|
|
12547
12569
|
to: e.filterTeleportLocation,
|
|
12548
12570
|
disabled: !e.filterTeleportLocation
|
|
12549
|
-
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(
|
|
12571
|
+
}, [ht.value.length > 0 && !f.enableInlineFilters ? (D(), i(Sf, {
|
|
12550
12572
|
key: 0,
|
|
12551
12573
|
"enable-focus-view": e.enableFocusView,
|
|
12552
12574
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -12575,12 +12597,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12575
12597
|
minHeight: dn
|
|
12576
12598
|
} : void 0)
|
|
12577
12599
|
}, [
|
|
12578
|
-
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(
|
|
12600
|
+
e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (D(), i(Fu, {
|
|
12579
12601
|
key: 0,
|
|
12580
12602
|
rowGroupLimit: e.rowGroupLimit,
|
|
12581
12603
|
enableFocusView: e.enableFocusView
|
|
12582
12604
|
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0),
|
|
12583
|
-
e.enableCsvExport ? (D(), i(
|
|
12605
|
+
e.enableCsvExport ? (D(), i(Pf, {
|
|
12584
12606
|
key: 1,
|
|
12585
12607
|
getCsvData: At
|
|
12586
12608
|
})) : a("", !0),
|
|
@@ -12600,7 +12622,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12600
12622
|
}, [e.enableTableSearch && !e.tableSearchInline ? (D(), o("div", {
|
|
12601
12623
|
key: 0,
|
|
12602
12624
|
style: x(fn.value)
|
|
12603
|
-
}, [u(
|
|
12625
|
+
}, [u(Vf, b(p(pn.value)), null, 16)], 4)) : a("", !0), ln.value ? j(t.$slots, "top-slot", { key: 1 }) : a("", !0)], 2)) : a("", !0),
|
|
12604
12626
|
s("div", {
|
|
12605
12627
|
class: y(["pv-relative pv-stack-8", e.hideTable ? "pv-hide" : ""]),
|
|
12606
12628
|
style: {
|
|
@@ -12691,17 +12713,17 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12691
12713
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
12692
12714
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
12693
12715
|
advancedFilterParent: sn.value
|
|
12694
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !pe.value ? (D(), o("div",
|
|
12695
|
-
e.pagination ? (D(), i(
|
|
12716
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.fullWidthCellRenderer.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isFullWidthRow.isGroupOpenByDefault.loading.loadingCellRenderer.maxConcurrentDatasourceRequests.maintainColumnOrder.popupParent.processCellForClipboard.processCellFromClipboard.processDataFromClipboard.rowData.rowHeight.rowModelType.rowSelection.serverSideInitialRowCount.theme.pagination.paginationPageSize.tooltip-show-delay.tooltip-hide-delay.cellSelection.copyHeadersToClipboard.suppressClipboardPaste.suppressCutToClipboard.undoRedoCellEditing.undoRedoCellEditingLimit.enableAdvancedFilter.advancedFilterParent".split(".")), !e.isLoading && !pe.value ? (D(), o("div", Kf, [s("p", qf, P(J.value), 1)])) : a("", !0)], 2),
|
|
12717
|
+
e.pagination ? (D(), i(Ff, { key: 2 })) : a("", !0)
|
|
12696
12718
|
], 4));
|
|
12697
12719
|
}
|
|
12698
|
-
}),
|
|
12720
|
+
}), Yf = ["id"], Xf = {
|
|
12699
12721
|
key: 0,
|
|
12700
12722
|
class: "sort-divider-container"
|
|
12701
|
-
},
|
|
12723
|
+
}, Zf = ["data-label"], Qf = ["onDrop"], $f = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, ep = { class: "pv-text-body-sm pv-text-tertiary" }, tp = { class: "pv-flex pv-full-width pv-sort-option" }, np = { class: "pv-text-body-sm" }, rp = {
|
|
12702
12724
|
key: 1,
|
|
12703
12725
|
class: "pv-button-placeholder"
|
|
12704
|
-
},
|
|
12726
|
+
}, ip = "--divider--", ap = "placeholder-", op = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
12705
12727
|
__name: "PvSortableList",
|
|
12706
12728
|
props: /* @__PURE__ */ g({
|
|
12707
12729
|
options: { default: () => [] },
|
|
@@ -12721,11 +12743,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12721
12743
|
emits: ["update:modelValue"],
|
|
12722
12744
|
setup(e) {
|
|
12723
12745
|
let n = e, c = B(e, "modelValue"), l = {
|
|
12724
|
-
id:
|
|
12746
|
+
id: ip,
|
|
12725
12747
|
text: "",
|
|
12726
12748
|
disabled: !0
|
|
12727
12749
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
12728
|
-
id: `${
|
|
12750
|
+
id: `${ap}${t}`,
|
|
12729
12751
|
text: "",
|
|
12730
12752
|
disabled: !0,
|
|
12731
12753
|
isPlaceholder: !0
|
|
@@ -12739,25 +12761,25 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12739
12761
|
];
|
|
12740
12762
|
}), m = V("sortableListRef"), h = V("containerRef"), g = null, _ = null, v = !1, b = () => {
|
|
12741
12763
|
if (!m.value) return c.value;
|
|
12742
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
12743
|
-
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(
|
|
12764
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === ip);
|
|
12765
|
+
return t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith(ap)), e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
12744
12766
|
};
|
|
12745
12767
|
T(() => {
|
|
12746
12768
|
m.value && (g = new st(m.value, {
|
|
12747
12769
|
animation: 200,
|
|
12748
|
-
filter: `#${
|
|
12770
|
+
filter: `#${ip}, [id^="placeholder-"]`,
|
|
12749
12771
|
dragoverBubble: !0,
|
|
12750
12772
|
onStart: (e) => {
|
|
12751
12773
|
_ = e.item, v = !1;
|
|
12752
12774
|
},
|
|
12753
12775
|
onMove: (e) => {
|
|
12754
12776
|
let t = e.related;
|
|
12755
|
-
if (t?.id?.startsWith(
|
|
12777
|
+
if (t?.id?.startsWith(ap)) return !1;
|
|
12756
12778
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
12757
12779
|
if (!r) return !1;
|
|
12758
12780
|
if (O(r)) return !0;
|
|
12759
12781
|
if (k.value) return !1;
|
|
12760
|
-
if (t?.id ===
|
|
12782
|
+
if (t?.id === ip) return !0;
|
|
12761
12783
|
let i = n.options.find((e) => e.id === t?.id);
|
|
12762
12784
|
return !!i && O(i);
|
|
12763
12785
|
},
|
|
@@ -12813,20 +12835,20 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12813
12835
|
key: e.id,
|
|
12814
12836
|
id: e.id,
|
|
12815
12837
|
class: "pv-stack-4"
|
|
12816
|
-
}, [e.id ===
|
|
12838
|
+
}, [e.id === ip ? (D(), o("div", Xf, [s("div", {
|
|
12817
12839
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
12818
12840
|
"data-label": k.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
12819
|
-
}, null, 8,
|
|
12841
|
+
}, null, 8, Zf)])) : e.id.includes(ap) ? (D(), o("div", {
|
|
12820
12842
|
key: 1,
|
|
12821
12843
|
class: "placeholder-zone",
|
|
12822
12844
|
onDragover: r[0] ||= (e) => S(e),
|
|
12823
12845
|
onDragleave: r[1] ||= (e) => C(e),
|
|
12824
12846
|
onDrop: (t) => w(t, parseInt(e.id.split("-")[1]) + 1)
|
|
12825
|
-
}, [s("div",
|
|
12847
|
+
}, [s("div", $f, [s("span", ep, P(n.placeholderText), 1)])], 40, Qf)) : (D(), o("div", {
|
|
12826
12848
|
key: 2,
|
|
12827
12849
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !O(e) && k.value ? "pv-menu-item-disabled" : ""]),
|
|
12828
12850
|
style: x(N(e))
|
|
12829
|
-
}, [s("div",
|
|
12851
|
+
}, [s("div", tp, [
|
|
12830
12852
|
u(Hn, {
|
|
12831
12853
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12832
12854
|
name: "reorder"
|
|
@@ -12836,8 +12858,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12836
12858
|
class: y(O(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
12837
12859
|
name: e.icon
|
|
12838
12860
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
12839
|
-
s("span",
|
|
12840
|
-
]), M(e) ? (D(), o("div",
|
|
12861
|
+
s("span", np, P(e.text), 1)
|
|
12862
|
+
]), M(e) ? (D(), o("div", rp)) : (D(), i(Kn, {
|
|
12841
12863
|
key: 0,
|
|
12842
12864
|
"left-icon": O(e) ? "remove-circle" : "add-circle",
|
|
12843
12865
|
ariaLabel: O(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -12849,12 +12871,12 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12849
12871
|
"ariaLabel",
|
|
12850
12872
|
"style",
|
|
12851
12873
|
"onClick"
|
|
12852
|
-
]))], 6))], 8,
|
|
12874
|
+
]))], 6))], 8, Yf))), 128))], 512)], 512));
|
|
12853
12875
|
}
|
|
12854
|
-
}), [["__scopeId", "data-v-0b94d7eb"]]),
|
|
12876
|
+
}), [["__scopeId", "data-v-0b94d7eb"]]), sp = {
|
|
12855
12877
|
class: "pv-flex pv-full-width pv-space-between",
|
|
12856
12878
|
style: { "white-space": "nowrap" }
|
|
12857
|
-
},
|
|
12879
|
+
}, cp = { class: "pv-text-body-md" }, lp = /* @__PURE__ */ d({
|
|
12858
12880
|
inheritAttrs: !1,
|
|
12859
12881
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
12860
12882
|
props: {
|
|
@@ -12863,22 +12885,22 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12863
12885
|
context: {}
|
|
12864
12886
|
},
|
|
12865
12887
|
setup(e) {
|
|
12866
|
-
return (t, n) => (D(), o("div",
|
|
12888
|
+
return (t, n) => (D(), o("div", sp, [s("span", cp, P(e.text), 1), e.context?.rightIcon ? (D(), i(Hn, {
|
|
12867
12889
|
key: 0,
|
|
12868
12890
|
name: e.context.rightIcon,
|
|
12869
12891
|
class: "pv-text-subdued"
|
|
12870
12892
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
12871
12893
|
}
|
|
12872
|
-
}),
|
|
12894
|
+
}), up = { class: "pv-relative" }, dp = {
|
|
12873
12895
|
role: "list",
|
|
12874
12896
|
class: "pv-relative"
|
|
12875
|
-
},
|
|
12897
|
+
}, fp = ["data-active"], pp = ["data-active"], mp = {
|
|
12876
12898
|
key: 2,
|
|
12877
12899
|
style: { cursor: "pointer" }
|
|
12878
|
-
},
|
|
12900
|
+
}, hp = {
|
|
12879
12901
|
key: 0,
|
|
12880
12902
|
role: "list"
|
|
12881
|
-
},
|
|
12903
|
+
}, gp = /* @__PURE__ */ d({
|
|
12882
12904
|
__name: "PvTableOptionsPanel",
|
|
12883
12905
|
props: {
|
|
12884
12906
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -12890,7 +12912,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12890
12912
|
"column-config-change"
|
|
12891
12913
|
],
|
|
12892
12914
|
setup(e, { emit: n }) {
|
|
12893
|
-
let i = e, c = n, l = m(
|
|
12915
|
+
let i = e, c = n, l = m(tu, ee(null)), d = m(nu, k(null)), f = m(su, k(null)), { popoverPositionStyle: p, updateRects: h, triggerRef: g, popoverRef: _ } = Jd({
|
|
12894
12916
|
alignment: "top",
|
|
12895
12917
|
popoverCssProperties: {
|
|
12896
12918
|
maxWidth: "300px",
|
|
@@ -12957,7 +12979,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12957
12979
|
previousHiddenColIds: r.hiddenColIds
|
|
12958
12980
|
});
|
|
12959
12981
|
};
|
|
12960
|
-
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div",
|
|
12982
|
+
return (n, r) => I.value ? (D(), o(t, { key: 0 }, [ae((D(), o("div", up, [u(Va, {
|
|
12961
12983
|
open: v.value,
|
|
12962
12984
|
label: "Table Configuration",
|
|
12963
12985
|
icon: "settings",
|
|
@@ -12977,7 +12999,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12977
12999
|
"padding-top": "4px",
|
|
12978
13000
|
"padding-bottom": "12px"
|
|
12979
13001
|
}
|
|
12980
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
13002
|
+
}, " Table Configuration ")], -1), s("ul", dp, [
|
|
12981
13003
|
C.value ? (D(), o("li", {
|
|
12982
13004
|
key: 0,
|
|
12983
13005
|
id: "table-config-overlay",
|
|
@@ -12990,7 +13012,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
12990
13012
|
icon: "layers-2",
|
|
12991
13013
|
"class-list": ["pv-menu-nested", b.value === "overlay" ? "pv-menu-nested-active" : ""],
|
|
12992
13014
|
onHandleSelected: r[0] ||= (e) => j("overlay")
|
|
12993
|
-
}, null, 8, ["class-list"])], 8,
|
|
13015
|
+
}, null, 8, ["class-list"])], 8, fp)) : a("", !0),
|
|
12994
13016
|
P.value ? (D(), o("li", {
|
|
12995
13017
|
key: 1,
|
|
12996
13018
|
id: "table-config-columns",
|
|
@@ -13003,8 +13025,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13003
13025
|
icon: "columns-3",
|
|
13004
13026
|
"class-list": ["pv-menu-nested", b.value === "columns" ? "pv-menu-nested-active" : ""],
|
|
13005
13027
|
onHandleSelected: r[1] ||= (e) => j("columns")
|
|
13006
|
-
}, null, 8, ["class-list"])], 8,
|
|
13007
|
-
F.value ? (D(), o("li",
|
|
13028
|
+
}, null, 8, ["class-list"])], 8, pp)) : a("", !0),
|
|
13029
|
+
F.value ? (D(), o("li", mp, [u(ko, {
|
|
13008
13030
|
config: { variant: "icon" },
|
|
13009
13031
|
id: "table-config-group-toggle",
|
|
13010
13032
|
class: "pv-text-subdued",
|
|
@@ -13025,11 +13047,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13025
13047
|
},
|
|
13026
13048
|
isList: b.value !== "columns"
|
|
13027
13049
|
}, {
|
|
13028
|
-
default: W(() => [b.value === "overlay" ? (D(), o("ul",
|
|
13050
|
+
default: W(() => [b.value === "overlay" ? (D(), o("ul", hp, [(D(!0), o(t, null, A(S.value, (e) => (D(), o("li", { key: e.id }, [u(ko, {
|
|
13029
13051
|
id: e.id,
|
|
13030
13052
|
config: {
|
|
13031
13053
|
variant: "checkbox",
|
|
13032
|
-
renderer:
|
|
13054
|
+
renderer: lp
|
|
13033
13055
|
},
|
|
13034
13056
|
text: e.text,
|
|
13035
13057
|
context: e.context,
|
|
@@ -13054,7 +13076,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13054
13076
|
"padding-left": "2px",
|
|
13055
13077
|
"padding-bottom": "6px"
|
|
13056
13078
|
}
|
|
13057
|
-
}, " Currently Viewing ", -1), u(
|
|
13079
|
+
}, " Currently Viewing ", -1), u(op, {
|
|
13058
13080
|
modelValue: te.value,
|
|
13059
13081
|
options: z.value,
|
|
13060
13082
|
showPlaceholders: !1,
|
|
@@ -13067,18 +13089,18 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13067
13089
|
"isList"
|
|
13068
13090
|
])], 64)) : a("", !0);
|
|
13069
13091
|
}
|
|
13070
|
-
}),
|
|
13092
|
+
}), _p = { class: "pv-chart-benchmark-chips pv-flex-vertical" }, vp = ["data-group-name"], yp = { class: "pv-chart-chip-section-label pv-chart-benchmark-chip-section-label" }, bp = ["data-loading"], xp = { class: "pv-chart-chip-label pv-flex-item" }, Sp = { class: "pv-chart-chip-value" }, Cp = /* @__PURE__ */ d({
|
|
13071
13093
|
__name: "PvBenchmarkChips",
|
|
13072
13094
|
props: { sections: {} },
|
|
13073
13095
|
emits: ["chip-hover"],
|
|
13074
13096
|
setup(e, { emit: n }) {
|
|
13075
13097
|
let r = n;
|
|
13076
|
-
return (n, c) => (D(), o("div",
|
|
13098
|
+
return (n, c) => (D(), o("div", _p, [(D(!0), o(t, null, A(e.sections, (e) => (D(), o("div", {
|
|
13077
13099
|
key: e.groupName,
|
|
13078
13100
|
"data-testid": "chip-section",
|
|
13079
13101
|
"data-group-name": e.groupName,
|
|
13080
13102
|
class: "pv-flex-vertical"
|
|
13081
|
-
}, [s("p",
|
|
13103
|
+
}, [s("p", yp, P(e.groupName), 1), (D(!0), o(t, null, A(e.chips, (e) => (D(), o("div", _({
|
|
13082
13104
|
key: e.key,
|
|
13083
13105
|
"data-testid": "benchmark-chip",
|
|
13084
13106
|
class: "pv-chart-benchmark-chip pv-flex pv-bordered pv-inset-square-8",
|
|
@@ -13090,11 +13112,11 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13090
13112
|
}, F(e.loading || e.excludeFromCrossline ? {} : {
|
|
13091
13113
|
mouseenter: () => r("chip-hover", e.key),
|
|
13092
13114
|
mouseleave: () => r("chip-hover", null)
|
|
13093
|
-
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u(
|
|
13115
|
+
}, !0)), [e.loading ? (D(), o(t, { key: 0 }, [u($c, {
|
|
13094
13116
|
"data-testid": "benchmark-chip-skeleton",
|
|
13095
13117
|
size: "sm",
|
|
13096
13118
|
width: "60%"
|
|
13097
|
-
}), u(
|
|
13119
|
+
}), u($c, {
|
|
13098
13120
|
"data-testid": "benchmark-chip-skeleton",
|
|
13099
13121
|
size: "sm",
|
|
13100
13122
|
width: "30%"
|
|
@@ -13105,8 +13127,8 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13105
13127
|
class: "pv-chart-benchmark-chip-accent",
|
|
13106
13128
|
style: x({ backgroundColor: e.color })
|
|
13107
13129
|
}, null, 4)) : a("", !0),
|
|
13108
|
-
s("span",
|
|
13109
|
-
s("span",
|
|
13130
|
+
s("span", xp, P(e.label), 1),
|
|
13131
|
+
s("span", Sp, P(e.formattedValue), 1),
|
|
13110
13132
|
e.excludeFromCrossline ? (D(), i(R(aa), {
|
|
13111
13133
|
key: 1,
|
|
13112
13134
|
"data-testid": "benchmark-chip-unit-mismatch-tooltip",
|
|
@@ -13129,16 +13151,16 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13129
13151
|
} }, " Shown in different units than the chart, so no line is drawn for this benchmark. ", -1)]]),
|
|
13130
13152
|
_: 1
|
|
13131
13153
|
})) : a("", !0)
|
|
13132
|
-
], 64))], 16,
|
|
13154
|
+
], 64))], 16, bp))), 128))], 8, vp))), 128))]));
|
|
13133
13155
|
}
|
|
13134
|
-
}),
|
|
13156
|
+
}), wp = (e) => e.field === "state" || $(e).dataType === ds.Location, Tp = (e) => e.filter(wp), Ep = (e, t, n) => {
|
|
13135
13157
|
if (!n || t.length === 0) return e;
|
|
13136
13158
|
let r = new Set(n(t).map((e) => e.field));
|
|
13137
13159
|
return e.filter((e) => r.has(e));
|
|
13138
|
-
},
|
|
13160
|
+
}, Dp = (e) => e.filter((e) => !bs(e)), Op = (e) => e.filter((e) => bs(e)), kp = {
|
|
13139
13161
|
xAxis: {
|
|
13140
13162
|
selectMode: "sortable",
|
|
13141
|
-
filterColumns:
|
|
13163
|
+
filterColumns: Dp
|
|
13142
13164
|
},
|
|
13143
13165
|
yAxis: {},
|
|
13144
13166
|
secondaryYAxis: {},
|
|
@@ -13147,16 +13169,16 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13147
13169
|
rowGroupLimit: 2,
|
|
13148
13170
|
supportsFocusView: !0,
|
|
13149
13171
|
storeBeforeChange: !0
|
|
13150
|
-
},
|
|
13172
|
+
}, Ap = [
|
|
13151
13173
|
{
|
|
13152
|
-
...
|
|
13174
|
+
...kp,
|
|
13153
13175
|
id: "column",
|
|
13154
13176
|
text: "Column",
|
|
13155
13177
|
icon: "chart-column",
|
|
13156
13178
|
agChartType: "bar"
|
|
13157
13179
|
},
|
|
13158
13180
|
{
|
|
13159
|
-
...
|
|
13181
|
+
...kp,
|
|
13160
13182
|
id: "bar",
|
|
13161
13183
|
text: "Bar",
|
|
13162
13184
|
icon: "chart-bar",
|
|
@@ -13164,28 +13186,28 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13164
13186
|
isHorizontal: !0
|
|
13165
13187
|
},
|
|
13166
13188
|
{
|
|
13167
|
-
...
|
|
13189
|
+
...kp,
|
|
13168
13190
|
id: "line",
|
|
13169
13191
|
text: "Line",
|
|
13170
13192
|
icon: "chart-line",
|
|
13171
13193
|
agChartType: "line"
|
|
13172
13194
|
},
|
|
13173
13195
|
{
|
|
13174
|
-
...
|
|
13196
|
+
...kp,
|
|
13175
13197
|
id: "area",
|
|
13176
13198
|
text: "Area",
|
|
13177
13199
|
icon: "chart-area",
|
|
13178
13200
|
agChartType: "area"
|
|
13179
13201
|
},
|
|
13180
13202
|
{
|
|
13181
|
-
...
|
|
13203
|
+
...kp,
|
|
13182
13204
|
id: "column_stacked",
|
|
13183
13205
|
text: "Stacked Column",
|
|
13184
13206
|
icon: "chart-column-stacked",
|
|
13185
13207
|
agChartType: "bar"
|
|
13186
13208
|
},
|
|
13187
13209
|
{
|
|
13188
|
-
...
|
|
13210
|
+
...kp,
|
|
13189
13211
|
id: "bar_stacked",
|
|
13190
13212
|
text: "Stacked Bar",
|
|
13191
13213
|
icon: "chart-bar-stacked",
|
|
@@ -13193,7 +13215,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13193
13215
|
isHorizontal: !0
|
|
13194
13216
|
},
|
|
13195
13217
|
{
|
|
13196
|
-
...
|
|
13218
|
+
...kp,
|
|
13197
13219
|
id: "pie",
|
|
13198
13220
|
text: "Pie",
|
|
13199
13221
|
icon: "chart-pie",
|
|
@@ -13207,7 +13229,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13207
13229
|
icon: "chart-column",
|
|
13208
13230
|
xAxis: {
|
|
13209
13231
|
selectMode: "single",
|
|
13210
|
-
filterColumns:
|
|
13232
|
+
filterColumns: Op,
|
|
13211
13233
|
hideLabel: !0
|
|
13212
13234
|
},
|
|
13213
13235
|
yAxis: {
|
|
@@ -13228,7 +13250,7 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13228
13250
|
icon: "map",
|
|
13229
13251
|
xAxis: {
|
|
13230
13252
|
selectMode: "single",
|
|
13231
|
-
filterColumns:
|
|
13253
|
+
filterColumns: Tp,
|
|
13232
13254
|
hideLabel: !0
|
|
13233
13255
|
},
|
|
13234
13256
|
yAxis: {},
|
|
@@ -13240,26 +13262,26 @@ var nd = { style: { "line-height": "20px" } }, rd = { class: "pv-text-subdued pv
|
|
|
13240
13262
|
supportsFocusView: !1,
|
|
13241
13263
|
storeBeforeChange: !1
|
|
13242
13264
|
}
|
|
13243
|
-
],
|
|
13244
|
-
function
|
|
13245
|
-
return
|
|
13265
|
+
], jp = new Map(Ap.map((e) => [e.id, e])), Mp = jp.get("column");
|
|
13266
|
+
function Np(e) {
|
|
13267
|
+
return jp.get(e) || Mp;
|
|
13246
13268
|
}
|
|
13247
13269
|
//#endregion
|
|
13248
13270
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
13249
|
-
var
|
|
13271
|
+
var Pp = {
|
|
13250
13272
|
class: "pv-full-width pv-flex",
|
|
13251
13273
|
style: { "--flex-gap": "8px" }
|
|
13252
|
-
},
|
|
13274
|
+
}, Fp = {
|
|
13253
13275
|
class: "pv-full-width pv-truncate pv-flex-vertical",
|
|
13254
13276
|
style: {
|
|
13255
13277
|
"align-items": "flex-start",
|
|
13256
13278
|
"--flex-gap": "0"
|
|
13257
13279
|
}
|
|
13258
|
-
},
|
|
13280
|
+
}, Ip = ["title"], Lp = ["title"], Rp = { style: {
|
|
13259
13281
|
"max-width": "220px",
|
|
13260
13282
|
"white-space": "normal",
|
|
13261
13283
|
"overflow-wrap": "break-word"
|
|
13262
|
-
} },
|
|
13284
|
+
} }, zp = /* @__PURE__ */ d({
|
|
13263
13285
|
inheritAttrs: !1,
|
|
13264
13286
|
__name: "PvChartOptionMenuItemRenderer",
|
|
13265
13287
|
props: {
|
|
@@ -13268,14 +13290,14 @@ var Np = {
|
|
|
13268
13290
|
text: {}
|
|
13269
13291
|
},
|
|
13270
13292
|
setup(e) {
|
|
13271
|
-
return (t, n) => (D(), o("div",
|
|
13293
|
+
return (t, n) => (D(), o("div", Pp, [s("div", Fp, [s("span", {
|
|
13272
13294
|
class: "pv-text-body-md pv-full-width pv-truncate",
|
|
13273
13295
|
title: e.text
|
|
13274
|
-
}, P(e.text), 9,
|
|
13296
|
+
}, P(e.text), 9, Ip), e.subText ? (D(), o("span", {
|
|
13275
13297
|
key: 0,
|
|
13276
13298
|
class: "pv-text-body-xs pv-text-subdued pv-full-width pv-truncate",
|
|
13277
13299
|
title: e.subText
|
|
13278
|
-
}, P(e.subText), 9,
|
|
13300
|
+
}, P(e.subText), 9, Lp)) : a("", !0)]), e.context?.description ? (D(), i(R(aa), {
|
|
13279
13301
|
key: 0,
|
|
13280
13302
|
variant: "dark",
|
|
13281
13303
|
position: "center-right",
|
|
@@ -13289,34 +13311,34 @@ var Np = {
|
|
|
13289
13311
|
name: "info-circle",
|
|
13290
13312
|
class: "pv-text-subdued"
|
|
13291
13313
|
})]),
|
|
13292
|
-
content: W(() => [s("div",
|
|
13314
|
+
content: W(() => [s("div", Rp, P(e.context.description), 1)]),
|
|
13293
13315
|
_: 1
|
|
13294
13316
|
})) : a("", !0)]));
|
|
13295
13317
|
}
|
|
13296
|
-
}),
|
|
13318
|
+
}), Bp = { class: "pv-stack-16 pv-chart-options-panel" }, Vp = { class: "pv-flex pv-relative" }, Hp = [
|
|
13297
13319
|
"id",
|
|
13298
13320
|
"aria-label",
|
|
13299
13321
|
"onKeydown"
|
|
13300
|
-
],
|
|
13322
|
+
], Up = {
|
|
13301
13323
|
role: "list",
|
|
13302
13324
|
class: "pv-popover-list pv-relative"
|
|
13303
|
-
},
|
|
13325
|
+
}, Wp = [
|
|
13304
13326
|
"id",
|
|
13305
13327
|
"data-active",
|
|
13306
13328
|
"data-dd-action-name",
|
|
13307
13329
|
"onMouseenter",
|
|
13308
13330
|
"onClick"
|
|
13309
|
-
],
|
|
13331
|
+
], Gp = { style: { "max-width": "100px" } }, Kp = {
|
|
13310
13332
|
key: 1,
|
|
13311
13333
|
class: "pv-flex"
|
|
13312
|
-
},
|
|
13334
|
+
}, qp = {
|
|
13313
13335
|
key: 0,
|
|
13314
13336
|
class: "pv-inset-square-8"
|
|
13315
|
-
},
|
|
13337
|
+
}, Jp = {
|
|
13316
13338
|
key: 1,
|
|
13317
13339
|
role: "list",
|
|
13318
13340
|
class: "pv-popover-list"
|
|
13319
|
-
},
|
|
13341
|
+
}, Yp = ["data-active"], Xp = "This metric isn’t available with the selected chart type.", Zp = /* @__PURE__ */ tn(/* @__PURE__ */ d({
|
|
13320
13342
|
__name: "PvChartOptionsPanel",
|
|
13321
13343
|
props: {
|
|
13322
13344
|
enablePanel: { type: Boolean },
|
|
@@ -13333,17 +13355,17 @@ var Np = {
|
|
|
13333
13355
|
},
|
|
13334
13356
|
emits: ["series-agg-func-selected"],
|
|
13335
13357
|
setup(e, { emit: n }) {
|
|
13336
|
-
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } =
|
|
13358
|
+
let l = e, d = n, f = r(() => !!l.useCombinedButton && l.useNestedMenu), { popoverPositionStyle: p, updateRects: g, triggerRef: _, popoverRef: v } = Jd({
|
|
13337
13359
|
alignment: "top right",
|
|
13338
13360
|
popoverCssProperties: {
|
|
13339
13361
|
maxWidth: "500px",
|
|
13340
13362
|
maxHeight: "900px"
|
|
13341
13363
|
},
|
|
13342
13364
|
useTeleport: !0
|
|
13343
|
-
}), b = k(!1), S = k(void 0), C = k(null), w = m(
|
|
13365
|
+
}), b = k(!1), S = k(void 0), C = k(null), w = m(_u, k(void 0)), T = m(hu, k([])), E = m(vu, k(void 0)), O = m(gu, k([])), j = m(mu, k([])), M = m(au, k([])), N = r(() => Np(w.value?.id || "")), ee = r(() => {
|
|
13344
13366
|
let e = w.value?.id ?? "";
|
|
13345
13367
|
return j.value.length > 1 && !e.endsWith("_stacked");
|
|
13346
|
-
}), F = m(
|
|
13368
|
+
}), F = m(yu, k("")), I = m(bu, k([])), L = m(xu, k(void 0)), z = m(Su, k([])), te = m(wu, k(!1)), B = m(Cu, k([])), ne = m(Eu, k(/* @__PURE__ */ new Set())), V = m(Du, k([])), re = r(() => V.value.filter((e) => ne.value.has(e.id)).map((e) => ({
|
|
13347
13369
|
id: e.id,
|
|
13348
13370
|
text: e.label,
|
|
13349
13371
|
disabled: e.disabled,
|
|
@@ -13354,12 +13376,12 @@ var Np = {
|
|
|
13354
13376
|
U(ee, (e) => {
|
|
13355
13377
|
e && L.value && (L.value = void 0), e && B.value.length > 0 && (B.value = []);
|
|
13356
13378
|
}, { immediate: !0 });
|
|
13357
|
-
let ie = m(
|
|
13379
|
+
let ie = m(pu, k("")), se = r(() => l.chartFilter && l.chartFilter.options ? l.chartFilter.options.map((e) => ({
|
|
13358
13380
|
label: e.label,
|
|
13359
13381
|
value: e.value
|
|
13360
13382
|
})) : []), ce = r(() => {
|
|
13361
13383
|
let e = j.value[0];
|
|
13362
|
-
return e ?
|
|
13384
|
+
return e ? Ms(M.value.find((t) => t.field === e)) : !1;
|
|
13363
13385
|
}), le = r(() => {
|
|
13364
13386
|
if (w.value) return (j.value.length > 1 ? [
|
|
13365
13387
|
"bar_stacked",
|
|
@@ -13404,10 +13426,10 @@ var Np = {
|
|
|
13404
13426
|
case "sort": return "Select Chart Sort";
|
|
13405
13427
|
default: return;
|
|
13406
13428
|
}
|
|
13407
|
-
}, q =
|
|
13429
|
+
}, q = Yl(), fe = (e) => e === "secondary-y-axis" ? "metric-overlay" : e, pe = (e, t, n = "select") => {
|
|
13408
13430
|
if (!t) return;
|
|
13409
13431
|
let r = Ne.value.find((t) => t.value === e), i = r?.availableOptions ? ue(r.availableOptions, t) : void 0;
|
|
13410
|
-
|
|
13432
|
+
Xl("chart_option_selected", {
|
|
13411
13433
|
panel: fe(e),
|
|
13412
13434
|
selected_value: i?.text ?? t,
|
|
13413
13435
|
selected_value_id: t,
|
|
@@ -13415,37 +13437,37 @@ var Np = {
|
|
|
13415
13437
|
}, q());
|
|
13416
13438
|
}, J = (e, t) => {
|
|
13417
13439
|
let n = new Set(e.activeOptionIds);
|
|
13418
|
-
e.updateSelectedOptions?.(t),
|
|
13440
|
+
e.updateSelectedOptions?.(t), Zl(() => {
|
|
13419
13441
|
for (let r of t) n.has(r.id) || pe(e.value, r.id);
|
|
13420
13442
|
});
|
|
13421
13443
|
}, me = (e, t) => {
|
|
13422
|
-
e.updateSelectedOption?.(t?.id || ""),
|
|
13444
|
+
e.updateSelectedOption?.(t?.id || ""), Zl(() => pe(e.value, t?.id));
|
|
13423
13445
|
}, Y = (e, t) => {
|
|
13424
13446
|
let n = t.option;
|
|
13425
13447
|
if (e.isMultiSelect) {
|
|
13426
13448
|
let t = new Set(e.activeOptionIds ?? []), r = new Set(t);
|
|
13427
|
-
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(K(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) ||
|
|
13449
|
+
r.has(n.id) ? r.delete(n.id) : r.add(n.id), e.updateSelectedOptions?.(K(e.availableOptions ?? []).filter((e) => r.has(e.id))), t.has(n.id) || Zl(() => pe(e.value, n.id));
|
|
13428
13450
|
return;
|
|
13429
13451
|
}
|
|
13430
|
-
e.updateSelectedOption?.(n.id),
|
|
13452
|
+
e.updateSelectedOption?.(n.id), Zl(() => pe(e.value, n.id));
|
|
13431
13453
|
}, he = (e, t) => {
|
|
13432
13454
|
let n = e.activeOptions?.value ?? [];
|
|
13433
|
-
e.activeOptions && (e.activeOptions.value = t),
|
|
13455
|
+
e.activeOptions && (e.activeOptions.value = t), Zl(() => {
|
|
13434
13456
|
let r = n.map((e) => e.id), i = t.map((e) => e.id), a = new Set(r), o = new Set(i);
|
|
13435
13457
|
for (let n of t) a.has(n.id) || pe(e.value, n.id, "select");
|
|
13436
13458
|
for (let t of n) o.has(t.id) || pe(e.value, t.id, "deselect");
|
|
13437
|
-
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") &&
|
|
13459
|
+
r.length === i.length && r.every((e) => o.has(e)) && r.join(" ") !== i.join(" ") && Xl("chart_option_selected", {
|
|
13438
13460
|
panel: fe(e.value),
|
|
13439
13461
|
selected_value: t.map((e) => e.text).join(", "),
|
|
13440
13462
|
selected_value_id: i.join(","),
|
|
13441
13463
|
action: "reorder"
|
|
13442
13464
|
}, q());
|
|
13443
13465
|
});
|
|
13444
|
-
}, ge = (e, t) => `chart-series-agg-func:${encodeURIComponent(e)}:${encodeURIComponent(t)}`, _e = (e) => `chart-series-agg-func-group:${encodeURIComponent(e)}`, ve = (e) => e ? { renderer:
|
|
13466
|
+
}, ge = (e, t) => `chart-series-agg-func:${encodeURIComponent(e)}:${encodeURIComponent(t)}`, _e = (e) => `chart-series-agg-func-group:${encodeURIComponent(e)}`, ve = (e) => e ? { renderer: zp } : { variant: "icon" }, ye = r(() => w.value?.id === "line" ? l.percentOfFocusViewYKey : void 0), be = (e, t, n) => {
|
|
13445
13467
|
let r = !!e && t === e;
|
|
13446
13468
|
return {
|
|
13447
13469
|
disabled: r,
|
|
13448
|
-
description: r ?
|
|
13470
|
+
description: r ? Xp : n
|
|
13449
13471
|
};
|
|
13450
13472
|
}, xe = (e, t) => {
|
|
13451
13473
|
let n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
@@ -13676,7 +13698,7 @@ var Np = {
|
|
|
13676
13698
|
}
|
|
13677
13699
|
}))), Le = (e) => e.isMultiSelect ? {
|
|
13678
13700
|
variant: "checkbox",
|
|
13679
|
-
renderer:
|
|
13701
|
+
renderer: zp
|
|
13680
13702
|
} : { variant: "icon" };
|
|
13681
13703
|
U(C, (e) => {
|
|
13682
13704
|
e && (v.value = e);
|
|
@@ -13685,26 +13707,26 @@ var Np = {
|
|
|
13685
13707
|
let t = Z.value;
|
|
13686
13708
|
if (!t?.isMultiSelect) return;
|
|
13687
13709
|
let n = new Set(t.activeOptionIds ?? []);
|
|
13688
|
-
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))),
|
|
13710
|
+
t.updateSelectedOptions?.((t.availableOptions ?? []).filter((t) => e.includes(t.id))), Zl(() => {
|
|
13689
13711
|
for (let r of e) n.has(r) || pe(t.value, r);
|
|
13690
13712
|
});
|
|
13691
13713
|
}, ze = (e) => {
|
|
13692
13714
|
let t = Z.value;
|
|
13693
|
-
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id),
|
|
13715
|
+
!t || t.isMultiSelect || (t.updateSelectedOption?.(e.id), Zl(() => pe(t.value, e.id)));
|
|
13694
13716
|
}, Be = (e) => {
|
|
13695
13717
|
let t = Z.value;
|
|
13696
13718
|
return !t || t.isMultiSelect ? null : t.currentOption?.id === e.id ? !0 : null;
|
|
13697
13719
|
}, Ve = (e) => Z.value?.isMultiSelect ? {
|
|
13698
13720
|
variant: "checkbox",
|
|
13699
|
-
renderer:
|
|
13700
|
-
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer:
|
|
13721
|
+
renderer: zp
|
|
13722
|
+
} : e.context && typeof e.context == "object" && "description" in e.context ? { renderer: zp } : { variant: "icon" }, He = (e) => {
|
|
13701
13723
|
S.value = e, _.value = document.getElementById(`pv-chart-config-${e}`), g();
|
|
13702
13724
|
}, Ue = () => {
|
|
13703
13725
|
b.value = !1, S.value = void 0;
|
|
13704
13726
|
}, We = () => {
|
|
13705
13727
|
S.value = void 0;
|
|
13706
13728
|
};
|
|
13707
|
-
return (n, r) => (D(), o(t, null, [s("div",
|
|
13729
|
+
return (n, r) => (D(), o(t, null, [s("div", Bp, [s("div", null, [ae((D(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Vp, [e.useCombinedButton ? (D(), o(t, { key: 0 }, [u(Va, {
|
|
13708
13730
|
open: b.value,
|
|
13709
13731
|
label: "Chart Configuration",
|
|
13710
13732
|
icon: "chart-area",
|
|
@@ -13747,7 +13769,7 @@ var Np = {
|
|
|
13747
13769
|
"padding-left": "2px",
|
|
13748
13770
|
"padding-bottom": "6px"
|
|
13749
13771
|
}
|
|
13750
|
-
}, " Viewing ", -1), u(
|
|
13772
|
+
}, " Viewing ", -1), u(op, {
|
|
13751
13773
|
modelValue: Z.value.activeOptions.value,
|
|
13752
13774
|
"onUpdate:modelValue": r[1] ||= (e) => he(Z.value, e),
|
|
13753
13775
|
options: Z.value.availableOptions || [],
|
|
@@ -13757,7 +13779,7 @@ var Np = {
|
|
|
13757
13779
|
"modelValue",
|
|
13758
13780
|
"options",
|
|
13759
13781
|
"activeOptionLimit"
|
|
13760
|
-
])], 40,
|
|
13782
|
+
])], 40, Hp)) : Z.value ? (D(), i(zo, {
|
|
13761
13783
|
key: 1,
|
|
13762
13784
|
id: t,
|
|
13763
13785
|
"aria-label": `${Z.value.label} options`,
|
|
@@ -13806,7 +13828,7 @@ var Np = {
|
|
|
13806
13828
|
"padding-top": "4px",
|
|
13807
13829
|
"padding-bottom": "12px"
|
|
13808
13830
|
}
|
|
13809
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
13831
|
+
}, " Chart Configuration ")], -1), s("ul", Up, [(D(!0), o(t, null, A(Ne.value, (t) => (D(), o("li", {
|
|
13810
13832
|
id: `pv-chart-config-${t.value}`,
|
|
13811
13833
|
key: t.value,
|
|
13812
13834
|
"data-active": S.value === t.value ? !0 : null,
|
|
@@ -13837,9 +13859,9 @@ var Np = {
|
|
|
13837
13859
|
_: 2
|
|
13838
13860
|
}, [t.disabled && t.disabledReason ? {
|
|
13839
13861
|
name: "content",
|
|
13840
|
-
fn: W(() => [s("div",
|
|
13862
|
+
fn: W(() => [s("div", Gp, P(t.disabledReason), 1)]),
|
|
13841
13863
|
key: "0"
|
|
13842
|
-
} : void 0]), 1024)], 40,
|
|
13864
|
+
} : void 0]), 1024)], 40, Wp))), 128))])]),
|
|
13843
13865
|
_: 1
|
|
13844
13866
|
}, 8, ["class"]))], 64)) : a("", !0)])], 2)), [[R(Q), [Ue, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
13845
13867
|
class: "pv-flex pv-space-between",
|
|
@@ -13849,7 +13871,7 @@ var Np = {
|
|
|
13849
13871
|
options: se.value,
|
|
13850
13872
|
modelValue: R(ie),
|
|
13851
13873
|
"onUpdate:modelValue": r[4] ||= (e) => h(ie) ? ie.value = e : null
|
|
13852
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div",
|
|
13874
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (D(), o("div", Kp, [(D(!0), o(t, null, A(Ne.value, (n) => (D(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (D(), i(Gc, {
|
|
13853
13875
|
key: 0,
|
|
13854
13876
|
label: n.label,
|
|
13855
13877
|
prefixLabel: n.prefixLabel,
|
|
@@ -13859,7 +13881,7 @@ var Np = {
|
|
|
13859
13881
|
disableSearchInput: !0,
|
|
13860
13882
|
disabled: n.disabled || e.readOnly,
|
|
13861
13883
|
optionsVariant: "checkbox",
|
|
13862
|
-
optionsRenderer:
|
|
13884
|
+
optionsRenderer: zp,
|
|
13863
13885
|
rumActionName: de(n.value)
|
|
13864
13886
|
}, null, 8, [
|
|
13865
13887
|
"label",
|
|
@@ -13903,13 +13925,13 @@ var Np = {
|
|
|
13903
13925
|
...R(p)
|
|
13904
13926
|
}
|
|
13905
13927
|
}, {
|
|
13906
|
-
default: W(() => [Z.value ? (D(), o(t, { key: 0 }, [Z.value.isSortableList ? (D(), o("div",
|
|
13928
|
+
default: W(() => [Z.value ? (D(), o(t, { key: 0 }, [Z.value.isSortableList ? (D(), o("div", qp, [r[9] ||= s("p", {
|
|
13907
13929
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
13908
13930
|
style: {
|
|
13909
13931
|
"padding-left": "2px",
|
|
13910
13932
|
"padding-bottom": "6px"
|
|
13911
13933
|
}
|
|
13912
|
-
}, " Viewing ", -1), u(
|
|
13934
|
+
}, " Viewing ", -1), u(op, {
|
|
13913
13935
|
modelValue: Z.value.activeOptions.value,
|
|
13914
13936
|
"onUpdate:modelValue": r[5] ||= (e) => he(Z.value, e),
|
|
13915
13937
|
options: Z.value.availableOptions || [],
|
|
@@ -13919,7 +13941,7 @@ var Np = {
|
|
|
13919
13941
|
"modelValue",
|
|
13920
13942
|
"options",
|
|
13921
13943
|
"activeOptionLimit"
|
|
13922
|
-
])])) : (D(), o("ul",
|
|
13944
|
+
])])) : (D(), o("ul", Jp, [(D(!0), o(t, null, A(Z.value.availableOptions, (t) => (D(), o("li", {
|
|
13923
13945
|
key: t.id,
|
|
13924
13946
|
"data-active": Be(t)
|
|
13925
13947
|
}, [u(ko, {
|
|
@@ -13942,14 +13964,14 @@ var Np = {
|
|
|
13942
13964
|
"disabled",
|
|
13943
13965
|
"selectedIds",
|
|
13944
13966
|
"onHandleSelected"
|
|
13945
|
-
])], 8,
|
|
13967
|
+
])], 8, Yp))), 128))]))], 64)) : a("", !0)]),
|
|
13946
13968
|
_: 1
|
|
13947
13969
|
}, 8, ["class", "css-custom-properties"])) : a("", !0)], 64));
|
|
13948
13970
|
}
|
|
13949
13971
|
}), [["__scopeId", "data-v-1ef60ad1"]]);
|
|
13950
13972
|
//#endregion
|
|
13951
13973
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
13952
|
-
function
|
|
13974
|
+
function Qp(e, t, n, r, i) {
|
|
13953
13975
|
return i ? {
|
|
13954
13976
|
xKey: n,
|
|
13955
13977
|
xName: r,
|
|
@@ -13962,7 +13984,7 @@ function Zp(e, t, n, r, i) {
|
|
|
13962
13984
|
yName: r
|
|
13963
13985
|
};
|
|
13964
13986
|
}
|
|
13965
|
-
var
|
|
13987
|
+
var $p = (e, t) => {
|
|
13966
13988
|
if (t.length === 0) return null;
|
|
13967
13989
|
let n = Math.max(...t.map((e) => e.bucketMax));
|
|
13968
13990
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -13973,22 +13995,22 @@ var Qp = (e, t) => {
|
|
|
13973
13995
|
}
|
|
13974
13996
|
}
|
|
13975
13997
|
return null;
|
|
13976
|
-
},
|
|
13998
|
+
}, em = (e, t) => {
|
|
13977
13999
|
let n = +!!t, r = e + n * 2, i = +!t;
|
|
13978
14000
|
return {
|
|
13979
14001
|
categoryPadOffset: n,
|
|
13980
14002
|
axisMin: 0 - i,
|
|
13981
14003
|
axisMax: r + i
|
|
13982
14004
|
};
|
|
13983
|
-
},
|
|
14005
|
+
}, tm = (e, t) => {
|
|
13984
14006
|
let { categoryPadOffset: n, axisMin: r, axisMax: i } = t;
|
|
13985
14007
|
return (e + n - r) / (i - r);
|
|
13986
|
-
},
|
|
14008
|
+
}, nm = (e, t) => e.filter((e) => t.has(e.id)).flatMap((e) => e.overlays.filter((e) => !e.excludeFromCrossline).map((t) => ({
|
|
13987
14009
|
...t,
|
|
13988
14010
|
color: t.color ?? e.color,
|
|
13989
14011
|
formatValue: t.formatValue ?? e.formatValue,
|
|
13990
14012
|
key: `${e.id}-${t.label}`
|
|
13991
|
-
}))),
|
|
14013
|
+
}))), rm = (e, t, n) => {
|
|
13992
14014
|
let r = /* @__PURE__ */ new Map();
|
|
13993
14015
|
return e.filter((e) => !!(e.groupName && t.has(e.id))).forEach((e) => {
|
|
13994
14016
|
let t = r.get(e.groupName) ?? {
|
|
@@ -14010,18 +14032,18 @@ var Qp = (e, t) => {
|
|
|
14010
14032
|
});
|
|
14011
14033
|
}), r.set(e.groupName, t);
|
|
14012
14034
|
}), [...r.values()];
|
|
14013
|
-
},
|
|
14014
|
-
function
|
|
14015
|
-
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) =>
|
|
14035
|
+
}, im = (e) => !!(e.visible && !e.disabled);
|
|
14036
|
+
function am(e) {
|
|
14037
|
+
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) => im(e)).map((e) => e.id))), u = new Map(t.value.map((e) => [e.id, im(e)]));
|
|
14016
14038
|
U(t, (e) => {
|
|
14017
14039
|
let t = new Set(l.value), n = !1, r = c?.value !== void 0;
|
|
14018
14040
|
for (let i of e) {
|
|
14019
|
-
let e =
|
|
14041
|
+
let e = im(i), a = u.has(i.id) ? !u.get(i.id) : !r;
|
|
14020
14042
|
e && a ? (t.add(i.id), n = !0) : !e && u.get(i.id) && (t.delete(i.id), n = !0);
|
|
14021
14043
|
}
|
|
14022
|
-
u = new Map(e.map((e) => [e.id,
|
|
14044
|
+
u = new Map(e.map((e) => [e.id, im(e)])), n && (l.value = t);
|
|
14023
14045
|
});
|
|
14024
|
-
let d = r(() =>
|
|
14046
|
+
let d = r(() => nm(t.value, l.value)), f = r(() => rm(t.value, l.value, s)), p = k(null);
|
|
14025
14047
|
return {
|
|
14026
14048
|
activeCrosslineOverlayGroups: l,
|
|
14027
14049
|
resolvedCrosslineOverlays: d,
|
|
@@ -14031,11 +14053,11 @@ function im(e) {
|
|
|
14031
14053
|
if (!p.value || !a.value) return null;
|
|
14032
14054
|
let e = d.value.find((e) => e.key === p.value);
|
|
14033
14055
|
if (!e) return null;
|
|
14034
|
-
let t =
|
|
14056
|
+
let t = $p(e.value, a.value);
|
|
14035
14057
|
if (t == null) return null;
|
|
14036
14058
|
let r = (o.value?.$el)?.querySelector(".ag-charts-series-area")?.getBoundingClientRect();
|
|
14037
14059
|
if (!r) return null;
|
|
14038
|
-
let c =
|
|
14060
|
+
let c = tm(t, em(a.value.length || 1, n.value)), l = e.formatValue ? e.formatValue(e.value) : s(e.value);
|
|
14039
14061
|
return i.value ? {
|
|
14040
14062
|
label: e.label,
|
|
14041
14063
|
value: l,
|
|
@@ -14062,10 +14084,10 @@ function im(e) {
|
|
|
14062
14084
|
}
|
|
14063
14085
|
//#endregion
|
|
14064
14086
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
14065
|
-
var
|
|
14087
|
+
var om = { style: {
|
|
14066
14088
|
height: "100%",
|
|
14067
14089
|
width: "100%"
|
|
14068
|
-
} },
|
|
14090
|
+
} }, sm = {
|
|
14069
14091
|
key: 0,
|
|
14070
14092
|
class: "pv-flex",
|
|
14071
14093
|
style: {
|
|
@@ -14073,19 +14095,19 @@ var am = { style: {
|
|
|
14073
14095
|
flex: "0 1 auto"
|
|
14074
14096
|
},
|
|
14075
14097
|
"data-testid": "pv-data-table-with-chart-filter-panel-actions"
|
|
14076
|
-
},
|
|
14098
|
+
}, cm = {
|
|
14077
14099
|
key: 0,
|
|
14078
14100
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
14079
|
-
},
|
|
14101
|
+
}, lm = { class: "pv-flex" }, um = {
|
|
14080
14102
|
class: "pv-flex",
|
|
14081
14103
|
style: { "align-items": "stretch" }
|
|
14082
|
-
},
|
|
14104
|
+
}, dm = { class: "pv-flex pv-space-between" }, fm = { class: "pv-chart-tooltip-label" }, pm = { class: "pv-chart-tooltip-value" }, mm = {
|
|
14083
14105
|
key: 2,
|
|
14084
14106
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
14085
|
-
},
|
|
14107
|
+
}, hm = { key: 0 }, gm = {
|
|
14086
14108
|
key: 1,
|
|
14087
14109
|
class: "pv-text-body-xs"
|
|
14088
|
-
},
|
|
14110
|
+
}, _m = /* @__PURE__ */ d({
|
|
14089
14111
|
__name: "PvDataTableWithChart",
|
|
14090
14112
|
props: {
|
|
14091
14113
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -14337,11 +14359,11 @@ var am = { style: {
|
|
|
14337
14359
|
});
|
|
14338
14360
|
}), re = r(() => l.enableCombinedChartConfigPanel && l.enableNestedChartConfigPanel ? V.value.reduce((e, t) => e + (t.aggFuncOptions?.length || 1), 0) : V.value.length), H = r(() => {
|
|
14339
14361
|
let e = m.value?.availableAggFuncColumns || [], t = new Set(I.value);
|
|
14340
|
-
return e.filter((e) =>
|
|
14362
|
+
return e.filter((e) => Os(e)).map((e) => {
|
|
14341
14363
|
let n = B(e), r = e.field || "";
|
|
14342
14364
|
return {
|
|
14343
14365
|
activeAggFunc: n,
|
|
14344
|
-
aggFuncOptions: ne(e, (e) =>
|
|
14366
|
+
aggFuncOptions: ne(e, (e) => ks(r, e, t)),
|
|
14345
14367
|
columnField: r,
|
|
14346
14368
|
dataType: e.context?.dataType,
|
|
14347
14369
|
description: e.context?.chartSeriesDescription,
|
|
@@ -14349,7 +14371,7 @@ var am = { style: {
|
|
|
14349
14371
|
label: z(e),
|
|
14350
14372
|
secondaryAxisMax: e.context?.secondaryAxisMax,
|
|
14351
14373
|
tooltipRenderer: e.context?.customTooltipRenderer,
|
|
14352
|
-
value:
|
|
14374
|
+
value: ks(r, n, t)
|
|
14353
14375
|
};
|
|
14354
14376
|
});
|
|
14355
14377
|
}), ie = (e, t) => e.find((e) => e.value === t || e.aggFuncOptions?.some((e) => e.seriesValue === t)), ae = r(() => (m.value?.availableAggFuncColumns || []).filter((e) => {
|
|
@@ -14363,16 +14385,16 @@ var am = { style: {
|
|
|
14363
14385
|
formatter: n.valueFormatter,
|
|
14364
14386
|
dataType: n.context?.dataType
|
|
14365
14387
|
};
|
|
14366
|
-
})), oe = l.filterStore ||
|
|
14367
|
-
O(
|
|
14368
|
-
let G =
|
|
14388
|
+
})), oe = l.filterStore || Gd();
|
|
14389
|
+
O(Ql, oe);
|
|
14390
|
+
let G = Uu({
|
|
14369
14391
|
focusType: l.initialFocusData?.focusType,
|
|
14370
14392
|
focuses: l.initialFocusData?.focuses || [],
|
|
14371
14393
|
focusRequired: l.focusRequired
|
|
14372
14394
|
}, l.allFieldsAreFocusable);
|
|
14373
|
-
O(
|
|
14395
|
+
O($l, G);
|
|
14374
14396
|
let { setFilterSelectedValues: se } = oe, ce = k(!1);
|
|
14375
|
-
O(
|
|
14397
|
+
O(lu, ce);
|
|
14376
14398
|
let le = k(l.isTableGrouped), ue = (e) => {
|
|
14377
14399
|
d("table-overlay-change", e);
|
|
14378
14400
|
}, K = r(() => Jt.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && oe.filterModelEmpty.value)), de = r(() => G?.computedFocusType.value || null), q = r(() => G?.computedFocuses.value || []), fe = (e) => {
|
|
@@ -14460,7 +14482,7 @@ var am = { style: {
|
|
|
14460
14482
|
if (!e) return;
|
|
14461
14483
|
let n = Se(e);
|
|
14462
14484
|
return n && typeof n.valueFormatter == "function" ? be(e, n.valueFormatter, t) : be(e, null, t);
|
|
14463
|
-
}, Se = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), Ce = r(() =>
|
|
14485
|
+
}, Se = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), Ce = r(() => Ms(Se(L.value))), we = (e, t) => {
|
|
14464
14486
|
let n = Se(L.value);
|
|
14465
14487
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
14466
14488
|
}, Te = (e) => {
|
|
@@ -14470,7 +14492,7 @@ var am = { style: {
|
|
|
14470
14492
|
...I.value.length > 1 ? ts : es,
|
|
14471
14493
|
ns,
|
|
14472
14494
|
rs
|
|
14473
|
-
].filter((e) => l.enabledChartTypes?.includes(e.id))), De = k(void 0), Oe = k(void 0), ke = k(void 0), Ae = !1, je = r(() =>
|
|
14495
|
+
].filter((e) => l.enabledChartTypes?.includes(e.id))), De = k(void 0), Oe = k(void 0), ke = k(void 0), Ae = !1, je = r(() => Np(De.value?.id || "")), X = r(() => Math.min(je.value.rowGroupLimit, l.rowGroupLimit)), Me = r(() => {
|
|
14474
14496
|
let e = je.value.xAxis.filterColumns;
|
|
14475
14497
|
return e ? e(F.value) : F.value;
|
|
14476
14498
|
}), Ne = k([{
|
|
@@ -14489,20 +14511,20 @@ var am = { style: {
|
|
|
14489
14511
|
Le.value = e.filter((e) => t.has(e.columnField ?? "") || t.has(e.value)).map((e) => e.value);
|
|
14490
14512
|
}, { immediate: !0 });
|
|
14491
14513
|
let Ve = r(() => l.crosslineOverlayGroups ?? []), He = k(null), Ue = k(Ne.value.find((e) => e.id === l.initialSort || "")), We = k("");
|
|
14492
|
-
O(
|
|
14514
|
+
O(tu, p), O(pu, We), O(au, Me), O(mu, I), O(hu, Ee), O(gu, Ne), O(_u, De), O(vu, Ue), O(yu, Fe), O(bu, V), O(xu, Ie), O(Cu, Le), O(Su, H), O(wu, Re), O(Du, Ve), U(Ce, (e) => {
|
|
14493
14515
|
e && Ue.value && (Ue.value = void 0);
|
|
14494
14516
|
}, { immediate: !0 });
|
|
14495
14517
|
let Ge = (e) => {
|
|
14496
14518
|
De.value = Ee.value.find((t) => t.id === e) ?? Ee.value[0];
|
|
14497
14519
|
}, Ke = (e) => {
|
|
14498
14520
|
let t = I.value.length, n = (e) => {
|
|
14499
|
-
let n =
|
|
14521
|
+
let n = Np(e.id);
|
|
14500
14522
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14501
14523
|
}, r = Ee.value.find((t) => t.id === e);
|
|
14502
14524
|
return r && n(r) ? r.id : Ee.value.find(n)?.id ?? Ee.value[0]?.id;
|
|
14503
14525
|
};
|
|
14504
14526
|
U(() => Ee.value, () => {
|
|
14505
|
-
let e = it.value, t = e !== Ae, n =
|
|
14527
|
+
let e = it.value, t = e !== Ae, n = Np(De.value?.id || ""), r = Ee.value.some((e) => e.id === De.value?.id), i = I.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
14506
14528
|
if (Ae = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
14507
14529
|
let a = Ke((e ? ke?.value : Oe?.value) ?? l.chartType);
|
|
14508
14530
|
a && Ge(a);
|
|
@@ -14512,7 +14534,7 @@ var am = { style: {
|
|
|
14512
14534
|
if (l.chartFilter && p.value) {
|
|
14513
14535
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
14514
14536
|
n && n.length === 0 && (n = null), se(t, n || []);
|
|
14515
|
-
let r =
|
|
14537
|
+
let r = ld({
|
|
14516
14538
|
filterType: "set",
|
|
14517
14539
|
values: n
|
|
14518
14540
|
}, Se(t));
|
|
@@ -14533,7 +14555,7 @@ var am = { style: {
|
|
|
14533
14555
|
type: t,
|
|
14534
14556
|
id: `${st}-${s}`,
|
|
14535
14557
|
xKey: L.value,
|
|
14536
|
-
yKey:
|
|
14558
|
+
yKey: Fs(Fe.value, o),
|
|
14537
14559
|
yName: typeof i == "function" ? i({ value: o }) : o,
|
|
14538
14560
|
...t === "line" ? {} : { stacked: e },
|
|
14539
14561
|
label: {
|
|
@@ -14595,7 +14617,7 @@ var am = { style: {
|
|
|
14595
14617
|
}))), ze.value.length > 0) {
|
|
14596
14618
|
let t = Se(L.value)?.context?.metadataDisplayFields?.[0] || L.value, r = et.value;
|
|
14597
14619
|
for (let i of ze.value) {
|
|
14598
|
-
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${us}` : i, c =
|
|
14620
|
+
let a = ie(H.value, i), o = qe(a), s = e ? `${i}${us}` : i, c = Qp(L.value, t, s, o, $e.value), l = {
|
|
14599
14621
|
type: r,
|
|
14600
14622
|
id: Re.value ? `metric-overlay-${i}` : "metric-overlay",
|
|
14601
14623
|
data: jt.value,
|
|
@@ -14636,12 +14658,12 @@ var am = { style: {
|
|
|
14636
14658
|
label: { enabled: !1 },
|
|
14637
14659
|
tooltip: { enabled: !1 },
|
|
14638
14660
|
visible: !1
|
|
14639
|
-
}, { categoryPadOffset: i } =
|
|
14661
|
+
}, { categoryPadOffset: i } = em(e, !0), a = {
|
|
14640
14662
|
type: "scatter",
|
|
14641
14663
|
xKey: "__dummy_x__",
|
|
14642
14664
|
yKey: "__dummy_y__",
|
|
14643
14665
|
data: yt.value.flatMap((e) => {
|
|
14644
|
-
let t =
|
|
14666
|
+
let t = $p(e.value, gt.value || []);
|
|
14645
14667
|
if (t === null) return [];
|
|
14646
14668
|
let n = t + i, r = Number.isFinite(Rt.value) ? Rt.value : 0, a = xe(I.value?.[0]), o = typeof a == "function" ? a({ value: e.value }) : e.value;
|
|
14647
14669
|
return Array.from({ length: 30 }, (t, i) => ({
|
|
@@ -14703,8 +14725,8 @@ var am = { style: {
|
|
|
14703
14725
|
oldState: { secondarySeriesField: t?.join(",") || void 0 }
|
|
14704
14726
|
});
|
|
14705
14727
|
}), U(De, (e, t) => {
|
|
14706
|
-
e?.id &&
|
|
14707
|
-
let n =
|
|
14728
|
+
e?.id && Np(e.id).storeBeforeChange && (it.value ? ke.value = e.id : Oe.value = e.id);
|
|
14729
|
+
let n = Np(e?.id || ""), r = Np(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? I.value : Ep(I.value, F.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
14708
14730
|
ot(i, I.value) || (I.value = i), n.yAxis.defaultValue ? Fe.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
14709
14731
|
l.yKey ? Fe.value = l.yKey : V.value.length > 0 && (Fe.value = V.value[0].value);
|
|
14710
14732
|
}), d("chart-state-changed", {
|
|
@@ -14756,7 +14778,7 @@ var am = { style: {
|
|
|
14756
14778
|
return;
|
|
14757
14779
|
}
|
|
14758
14780
|
if (t) {
|
|
14759
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
14781
|
+
let { stackedData: n, uniqueFieldValues: r } = Ls(e, L.value, t, pt.value, ae.value);
|
|
14760
14782
|
Pe.value = n, He.value = {
|
|
14761
14783
|
fieldName: t,
|
|
14762
14784
|
fieldValues: r
|
|
@@ -14769,13 +14791,13 @@ var am = { style: {
|
|
|
14769
14791
|
if (l.serverSideChartHandler) {
|
|
14770
14792
|
let e = oe.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
14771
14793
|
if (e === null && l.initialGridState) {
|
|
14772
|
-
let t =
|
|
14794
|
+
let t = fd(l.initialGridState, n, l.enableAdvancedFilter);
|
|
14773
14795
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
14774
14796
|
}
|
|
14775
14797
|
e ||= {};
|
|
14776
|
-
let r =
|
|
14798
|
+
let r = Es(Ds(I.value.map((e) => p.value?.getColumn(e)).filter((e) => e !== void 0)), n), i = new Set(n.filter((e) => $(e).chartOnSecondaryAxes === !0).map((e) => e.field).filter(Boolean)), a = p.value?.getValueColumns().filter((e) => e.getColId() === Fe.value || i.has(e.getColId())), o = {
|
|
14777
14799
|
rowGroupCols: r || [],
|
|
14778
|
-
valueCols:
|
|
14800
|
+
valueCols: Ds(a || []),
|
|
14779
14801
|
filterModel: e
|
|
14780
14802
|
};
|
|
14781
14803
|
M.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
@@ -14817,10 +14839,10 @@ var am = { style: {
|
|
|
14817
14839
|
n.add(o);
|
|
14818
14840
|
let s = t.aggData;
|
|
14819
14841
|
if (o && s) {
|
|
14820
|
-
let n = String(o), s =
|
|
14842
|
+
let n = String(o), s = Is(n);
|
|
14821
14843
|
r[s] = `${e.key}-${n}`;
|
|
14822
14844
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
14823
|
-
r[
|
|
14845
|
+
r[Fs(a.value, n)] = c, i += c;
|
|
14824
14846
|
}
|
|
14825
14847
|
}), r[`${a.value}${us}`] = i;
|
|
14826
14848
|
return {
|
|
@@ -14829,12 +14851,12 @@ var am = { style: {
|
|
|
14829
14851
|
};
|
|
14830
14852
|
}, gt = r(() => {
|
|
14831
14853
|
let e = Q.value ? Pe.value : Z.value, t = null;
|
|
14832
|
-
if (Ue.value && (t = Q.value ? `${Fe.value}${us}` : Fe.value), Ce.value) e =
|
|
14854
|
+
if (Ue.value && (t = Q.value ? `${Fe.value}${us}` : Fe.value), Ce.value) e = Ps(e, L.value);
|
|
14833
14855
|
else if (t && e && Ue.value) {
|
|
14834
14856
|
let n = Ue.value?.id.includes("desc") ? -1 : 1;
|
|
14835
14857
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
14836
14858
|
}
|
|
14837
|
-
if (je.value.agChartType === "bar" && (e =
|
|
14859
|
+
if (je.value.agChartType === "bar" && (e = Rs(e, L.value)), l.enableFocusView && e && q.value.length > 0 && de.value) {
|
|
14838
14860
|
let t = e?.filter((e) => q.value.includes(e[L.value])), n = e?.filter((e) => !q.value.includes(e[L.value]));
|
|
14839
14861
|
e = [
|
|
14840
14862
|
...t || [],
|
|
@@ -14843,7 +14865,7 @@ var am = { style: {
|
|
|
14843
14865
|
];
|
|
14844
14866
|
}
|
|
14845
14867
|
return e;
|
|
14846
|
-
}), { activeCrosslineOverlayGroups: vt, resolvedCrosslineOverlays: yt, chipSections: bt, hoveredBenchmarkKey: xt, hoveredCrosslineTooltip: St } =
|
|
14868
|
+
}), { activeCrosslineOverlayGroups: vt, resolvedCrosslineOverlays: yt, chipSections: bt, hoveredBenchmarkKey: xt, hoveredCrosslineTooltip: St } = am({
|
|
14847
14869
|
crosslineOverlayGroups: Ve,
|
|
14848
14870
|
isHistogramWithBuckets: at,
|
|
14849
14871
|
isHorizontalBarChart: $e,
|
|
@@ -14855,7 +14877,7 @@ var am = { style: {
|
|
|
14855
14877
|
},
|
|
14856
14878
|
initialActiveOverlayGroupIds: r(() => l.initialActiveOverlayGroupIds)
|
|
14857
14879
|
});
|
|
14858
|
-
O(
|
|
14880
|
+
O(Eu, vt), U(vt, (e) => d("active-overlay-group-ids-change", [...e]), { deep: !0 });
|
|
14859
14881
|
let Ct = new Set([cs, ls]), wt = k(void 0), Tt = r(() => De.value?.id === "map"), Et = r(() => Fe.value || V.value[0]?.value || "value"), Dt = r(() => "600px"), Ot = r(() => {
|
|
14860
14882
|
let e = L.value, t = Et.value;
|
|
14861
14883
|
return !e || !t ? [] : (gt.value ?? []).filter((t) => {
|
|
@@ -14903,7 +14925,7 @@ var am = { style: {
|
|
|
14903
14925
|
let t = `${i}${us}`, a = e[t];
|
|
14904
14926
|
if (typeof a != "number") continue;
|
|
14905
14927
|
let o = 0;
|
|
14906
|
-
for (let t of n) typeof e[
|
|
14928
|
+
for (let t of n) typeof e[Fs(i, String(t))] == "number" && o++;
|
|
14907
14929
|
r[t] = o > 0 ? a / o : null;
|
|
14908
14930
|
}
|
|
14909
14931
|
return r;
|
|
@@ -14930,12 +14952,12 @@ var am = { style: {
|
|
|
14930
14952
|
isHorizontalScrollingChart: $e.value,
|
|
14931
14953
|
minContentWidth: 0,
|
|
14932
14954
|
reserveWidth: bt.value.length > 0 ? 255 : 0
|
|
14933
|
-
})), Lt = r(() => Q.value ? Pe.value : gt.value), Rt = r(() =>
|
|
14955
|
+
})), Lt = r(() => Q.value ? Pe.value : gt.value), Rt = r(() => zs(Lt.value, Fe.value, Q.value)), zt = r(() => Xe.value.reduce((e, t) => Math.max(e, zs(Lt.value, t, Q.value)), -Infinity)), Bt = r(() => Ze.value.reduce((e, t) => Math.max(e, zs(Lt.value, t, Q.value)), -Infinity)), Vt = r(() => Bs(Lt.value, Fe.value, Q.value)), Ht = r(() => Xe.value.reduce((e, t) => Math.min(e, Bs(Lt.value, t, Q.value)), Infinity)), Ut = r(() => He.value?.fieldValues?.length || 0), Wt = r(() => {
|
|
14934
14956
|
let e = .25 * Math.exp(-.12 * Mt.value);
|
|
14935
14957
|
return Math.min(Math.max(e, .05), .75);
|
|
14936
14958
|
}), Gt = r(() => Ut.value > 5 ? .5 : 1), Kt = r(() => Ut.value > 5 ? .25 : .1), qt = r(() => !gt.value || gt.value?.length === 0 ? !0 : Rt.value === -Infinity || Q.value === !0 && Rt.value === 0), Jt = r(() => !!(l.enableFocusView && de.value && q.value.length === 0 && l.percentOfFocusViewYKey && Fe.value && Fe.value === l.percentOfFocusViewYKey)), Yt = r(() => {
|
|
14937
14959
|
let e = Se(de.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
14938
|
-
return
|
|
14960
|
+
return js({
|
|
14939
14961
|
currentRowGroupColumnsLength: I.value.length,
|
|
14940
14962
|
shouldShowFocusOverlayText: Jt.value || l.focusRequired && q.value.length === 0,
|
|
14941
14963
|
chartDataEmpty: qt.value,
|
|
@@ -14957,7 +14979,7 @@ var am = { style: {
|
|
|
14957
14979
|
preventHidingAll: !0,
|
|
14958
14980
|
enabled: I.value.length > 1 || Re.value && ze.value.length > 0
|
|
14959
14981
|
};
|
|
14960
|
-
let n = (e) => rt.value ? [`${e}${us}`] : Q.value ? He.value?.fieldValues.map((t) =>
|
|
14982
|
+
let n = (e) => rt.value ? [`${e}${us}`] : Q.value ? He.value?.fieldValues.map((t) => Fs(e, String(t))) || [] : [e], r = [...Q.value ? He.value?.fieldValues.map((e) => Fs(Fe.value, e)) || [] : Fe.value ? [Fe.value] : [], ...Ze.value.flatMap(n)], i = Xe.value.flatMap(n), a = je.value.xAxis.hideLabel === !0 && !at.value, o = [];
|
|
14961
14983
|
if (o.push({
|
|
14962
14984
|
type: "category",
|
|
14963
14985
|
keys: [L.value],
|
|
@@ -14977,7 +14999,7 @@ var am = { style: {
|
|
|
14977
14999
|
truncate: !1,
|
|
14978
15000
|
wrapping: "never",
|
|
14979
15001
|
...at.value ? { spacing: 2 } : {},
|
|
14980
|
-
formatter:
|
|
15002
|
+
formatter: Vs({
|
|
14981
15003
|
hideLabel: a,
|
|
14982
15004
|
showDistributionRangeLabels: !!at.value,
|
|
14983
15005
|
chartData: gt.value,
|
|
@@ -14992,7 +15014,7 @@ var am = { style: {
|
|
|
14992
15014
|
paddingOuter: at.value ? 0 : Gt.value,
|
|
14993
15015
|
groupPaddingInner: Kt.value
|
|
14994
15016
|
}), at.value && yt.value.length > 0) {
|
|
14995
|
-
let { categoryPadOffset: e, axisMin: t, axisMax: n } =
|
|
15017
|
+
let { categoryPadOffset: e, axisMin: t, axisMax: n } = em(gt.value?.length || 1, !0);
|
|
14996
15018
|
o.push({
|
|
14997
15019
|
type: "number",
|
|
14998
15020
|
keys: ["__dummy_x__"],
|
|
@@ -15007,7 +15029,7 @@ var am = { style: {
|
|
|
15007
15029
|
gridLine: { enabled: !1 },
|
|
15008
15030
|
crossLines: yt.value.map((t) => {
|
|
15009
15031
|
if (!gt.value) return null;
|
|
15010
|
-
let n =
|
|
15032
|
+
let n = $p(t.value, gt.value);
|
|
15011
15033
|
if (n == null) return null;
|
|
15012
15034
|
let r = xt.value != null && t.key === xt.value, i = xt.value != null && !r;
|
|
15013
15035
|
return {
|
|
@@ -15021,7 +15043,7 @@ var am = { style: {
|
|
|
15021
15043
|
}).filter((e) => e !== null)
|
|
15022
15044
|
});
|
|
15023
15045
|
}
|
|
15024
|
-
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(Vt.value) && Vt.value < 0, f = s && Number.isFinite(Ht.value) && Ht.value < 0, p = d || f, m = s ?
|
|
15046
|
+
let s = Xe.value.length > 0, c = Xe.value.map((e) => ie(H.value, e)?.secondaryAxisMax).filter((e) => typeof e == "number"), u = s && c.length > 0 ? Math.max(...c) : void 0, d = s && Number.isFinite(Vt.value) && Vt.value < 0, f = s && Number.isFinite(Ht.value) && Ht.value < 0, p = d || f, m = s ? As(Math.max(Rt.value, Bt.value), 5) : 0, h = s ? u ?? As(zt.value, 5) : 0, g = s && !p && m > 0 && h > 0;
|
|
15025
15047
|
if (o.push({
|
|
15026
15048
|
type: "number",
|
|
15027
15049
|
keys: r,
|
|
@@ -15101,15 +15123,15 @@ var am = { style: {
|
|
|
15101
15123
|
}
|
|
15102
15124
|
}), T(async () => {
|
|
15103
15125
|
await v(), w.value = l.filterPanelAboveChart;
|
|
15104
|
-
}), (n, r) => (D(), o("div",
|
|
15126
|
+
}), (n, r) => (D(), o("div", om, [
|
|
15105
15127
|
s("div", {
|
|
15106
15128
|
class: y(["pv-stack-16", { "pv-flex": A.value }]),
|
|
15107
15129
|
style: x(A.value ? "--flex-wrap: wrap-reverse" : void 0)
|
|
15108
15130
|
}, [s("div", {
|
|
15109
15131
|
id: C,
|
|
15110
15132
|
style: x(A.value ? "flex: 1 1 auto; min-width: 0" : void 0)
|
|
15111
|
-
}, null, 4), A.value ? (D(), o("div",
|
|
15112
|
-
e.hideChart ? a("", !0) : (D(), o("div",
|
|
15133
|
+
}, null, 4), A.value ? (D(), o("div", sm, [j(n.$slots, "filter-panel-actions")])) : a("", !0)], 6),
|
|
15134
|
+
e.hideChart ? a("", !0) : (D(), o("div", cm, [
|
|
15113
15135
|
u(Kn, {
|
|
15114
15136
|
rightIcon: "chevrons-down-up",
|
|
15115
15137
|
label: "Collapse",
|
|
@@ -15121,7 +15143,7 @@ var am = { style: {
|
|
|
15121
15143
|
onClick: r[0] ||= (e) => en(!b.value),
|
|
15122
15144
|
class: y(e.hideChart || b.value ? "pv-hide" : "")
|
|
15123
15145
|
}, null, 8, ["class"]),
|
|
15124
|
-
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
15146
|
+
s("div", { class: y(e.hideChart || !b.value ? "pv-hide" : "pv-space-between") }, [s("div", lm, [u(Hn, {
|
|
15125
15147
|
name: "chart-line",
|
|
15126
15148
|
size: 20,
|
|
15127
15149
|
class: "pv-text-subdued"
|
|
@@ -15134,7 +15156,7 @@ var am = { style: {
|
|
|
15134
15156
|
variant: "secondary",
|
|
15135
15157
|
onClick: r[1] ||= (e) => en(!b.value)
|
|
15136
15158
|
})], 2),
|
|
15137
|
-
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(
|
|
15159
|
+
s("div", { class: y(e.hideChart || b.value ? "pv-hide" : "") }, [u(Zp, {
|
|
15138
15160
|
enablePanel: gt.value != null && gt.value.length > 0,
|
|
15139
15161
|
chartFilter: e.chartFilter,
|
|
15140
15162
|
rowGroupLimit: X.value,
|
|
@@ -15153,7 +15175,7 @@ var am = { style: {
|
|
|
15153
15175
|
"chart-config-options",
|
|
15154
15176
|
"read-only",
|
|
15155
15177
|
"percent-of-focus-view-y-key"
|
|
15156
|
-
]), s("div",
|
|
15178
|
+
]), s("div", um, [R(bt).length > 0 ? (D(), i(Cp, {
|
|
15157
15179
|
key: 0,
|
|
15158
15180
|
sections: R(bt),
|
|
15159
15181
|
onChipHover: r[2] ||= (e) => xt.value = e
|
|
@@ -15210,9 +15232,9 @@ var am = { style: {
|
|
|
15210
15232
|
class: y(["ag-charts-tooltip pv-data-table-with-chart__crossline-tooltip pv-tooltip-v2-content", R(St).arrowClass]),
|
|
15211
15233
|
"data-variant": "white",
|
|
15212
15234
|
style: x(R(St).style)
|
|
15213
|
-
}, [s("div",
|
|
15235
|
+
}, [s("div", dm, [s("div", fm, P(R(St).label), 1), s("div", pm, P(R(St).value), 1)])], 6)) : a("", !0)], 4)], 6)), Tt.value ? a("", !0) : (D(), o("div", mm, [K.value ? (D(), o("div", hm, [(D(), i(N(e.emptyChartFilterRenderer)))])) : $t.value ? (D(), o("p", gm, P(Yt.value), 1)) : a("", !0)]))], 4)])], 2)
|
|
15214
15236
|
])),
|
|
15215
|
-
u(
|
|
15237
|
+
u(Jf, _({
|
|
15216
15238
|
ref_key: "pvDataTableRef",
|
|
15217
15239
|
ref: m
|
|
15218
15240
|
}, n.$props, {
|
|
@@ -15231,7 +15253,7 @@ var am = { style: {
|
|
|
15231
15253
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
15232
15254
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
15233
15255
|
}), {
|
|
15234
|
-
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(
|
|
15256
|
+
"top-slot": W(() => [e.enableGroupingToggle ? (D(), o(t, { key: 0 }, [e.tableConfigOptions ? (D(), i(gp, {
|
|
15235
15257
|
key: 0,
|
|
15236
15258
|
groupedModeEnabled: le.value,
|
|
15237
15259
|
tableConfigOptions: l.tableConfigOptions,
|
|
@@ -15254,7 +15276,7 @@ var am = { style: {
|
|
|
15254
15276
|
])
|
|
15255
15277
|
]));
|
|
15256
15278
|
}
|
|
15257
|
-
}),
|
|
15279
|
+
}), vm = "Unable to load data", ym = (e, t = {}) => {
|
|
15258
15280
|
let n = k([]), i = k(!1), a = k(), o = 0, s = async () => {
|
|
15259
15281
|
let t = ++o;
|
|
15260
15282
|
i.value = !0;
|
|
@@ -15284,6 +15306,6 @@ var am = { style: {
|
|
|
15284
15306
|
};
|
|
15285
15307
|
};
|
|
15286
15308
|
//#endregion
|
|
15287
|
-
export {
|
|
15309
|
+
export { vm as DEFAULT_DATA_WIDGET_ERROR_TEXT, wt as PitViperAGChartsMonochromeTheme, Ct as PitViperAGChartsMonochromeThemeName, Et as PitViperAGChartsMulticolorTheme, Tt as PitViperAGChartsMulticolorThemeName, nn as PvChart, wn as PvChartWidget, Jf as PvDataTable, _m as PvDataTableWithChart, uc as PvDataWidget, Go as PvMapChart, Jl as RumContextKey, _t as SCATTER_MARKER_STROKE, Xl as addRumAction, ud as constructAdvancedFilterCondition, dd as convertFilterModelToAdvanced, Ud as createPvDataTableFilterStore, Zl as deferRumTask, Rd as excludeValueFromSetFilter, _d as filterModelContainsColId, kd as filterModelsEqual, Pd as getSelectedValues, Md as getSelectedValuesFromAdvancedFilterModel, Cd as getSelectedValuesFromFilterModel, Nd as getSelectedValuesFromFilterModelByColId, wd as isAdvancedFilterModel, Ed as isFilterModelEmpty, Ad as mergeAdvancedFilterCondition, vd as mergeFilterModels, Wd as providePvDataTableFilterStore, Fd as removeColumnFilter, jd as removeColumnFromAdvancedFilter, Ld as updateMultiOrSetFilter, Id as updateSetFilter, Kd as usePvDataTableFilterStore, ym as usePvDataWidgetData, Yl as useRumContext };
|
|
15288
15310
|
|
|
15289
15311
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|