@turquoisehealth/pit-viper 2.203.1-dev.0 → 2.203.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/vue/visualizations/components/tables/PvDataTable/useSetFilter.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +554 -553
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-ad4913cb]{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-ad4913cb]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-ad4913cb]{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-ad4913cb]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-ad4913cb]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-ad4913cb]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-ad4913cb]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-ad4913cb]{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-ad4913cb]{color:#16696d;animation:1.5s ease-in-out infinite pulse-ad4913cb}@keyframes pulse-ad4913cb{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-d92b6ed9]{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-d92b6ed9]{overflow:hidden}.pv-chart-widget__chart-area[data-v-d92b6ed9]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-d92b6ed9]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-scroll--enabled[data-v-d92b6ed9]{overflow:auto}.pv-chart-widget__chart-content[data-v-d92b6ed9]{height:100%;min-height:100%}.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{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-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.pv-data-widget[data-v-1681e679]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-1681e679]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-1681e679]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-1681e679]{min-height:0}.pv-data-widget__below-table[data-v-1681e679]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-1681e679]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-1681e679]{flex:none}.pv-data-widget__chart-scroll[data-v-1681e679]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-1681e679]{flex:auto}.pv-data-widget__chart-scroll--enabled[data-v-1681e679]{overflow:auto}.pv-data-widget__chart-content[data-v-1681e679]{min-height:100%}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.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-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-2b28800a]:hover{color:#16696d}.suggested-title-label[data-v-2b28800a]:hover{color:#0d5256;text-decoration:underline}.pv-details-no-carat>summary[data-v-91375005]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-385ad98a]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:1}.pv-table-row-number[data-v-686928ce]{text-align:center;color:#89989b;padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;pointer-events:none;background:#fff;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:#ccc;border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:#f7f8f8}.pv-data-table .ag-menu-option-shortcut{color:#89989b}.pv-data-table .ag-menu-option:active{background-color:#e8f2f4}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(#fff 5px,#f7f8f8 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(#fff 5px,#f7f8f8 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid #e0e0e0!important;border-left:1px solid #e0e0e0!important;border-right:1px solid #e0e0e0!important}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:#f7f8f8!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-text-tertiary[data-v-34615cd0]{color:#89989b}.pv-button-placeholder[data-v-34615cd0]{width:24px;height:24px}.pv-sort-option[data-v-34615cd0]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-34615cd0]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-34615cd0]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-34615cd0]{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-34615cd0]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-34615cd0]{display:flex}.sort-divider[data-v-34615cd0]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-34615cd0]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pv-menu-nested[data-v-4a384de9]:after{content:"›"}[data-v-4a384de9] .pv-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}.pv-tooltip a[data-v-4a384de9]{color:inherit}.pv-chart-option[data-v-4a384de9]{min-width:150px;max-width:225px}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-ad4913cb]{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-ad4913cb]{display:flex;overflow:hidden}.pv-scatter-quadrant-box[data-v-ad4913cb]{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-ad4913cb]{grid-area:1/1;justify-content:flex-start;align-items:flex-start;padding:5px}.pv-scatter-quadrant-top-right[data-v-ad4913cb]{grid-area:1/2;justify-content:flex-end;align-items:flex-start;padding:5px}.pv-scatter-quadrant-bottom-left[data-v-ad4913cb]{grid-area:2/1;justify-content:flex-start;align-items:flex-end;padding:5px}.pv-scatter-quadrant-bottom-right[data-v-ad4913cb]{grid-area:2/2;justify-content:flex-end;align-items:flex-end;padding:5px}.pv-chart-loading[data-v-ad4913cb]{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-ad4913cb]{color:#16696d;animation:1.5s ease-in-out infinite pulse-ad4913cb}@keyframes pulse-ad4913cb{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}.pv-chart-widget[data-v-d92b6ed9]{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-d92b6ed9]{overflow:hidden}.pv-chart-widget__chart-area[data-v-d92b6ed9]{flex:auto;width:100%;min-height:0;position:relative;overflow:hidden}.pv-chart-widget__chart-scroll[data-v-d92b6ed9]{width:100%;height:100%;min-height:0}.pv-chart-widget__chart-scroll--enabled[data-v-d92b6ed9]{overflow:auto}.pv-chart-widget__chart-content[data-v-d92b6ed9]{height:100%;min-height:100%}.pv-badge-md[data-v-6a07eeec]{--inset-size:2px 2px;min-width:20px;min-height:20px;max-height:20px;font-weight:500}.pv-badge-sm[data-v-6a07eeec]{--inset-size:0 2px;min-width:16px;min-height:16px;max-height:16px;font-weight:500}.pv-surface-lighten-5[data-v-6a07eeec]{background-color:#e0e5e4}.pv-text-secondary[data-v-6a07eeec]{color:#4b595c}.pv-select-button-trigger-avatar[data-v-5b922a5f]{font-size:.5rem;font-weight:700}.pv-select-button-trigger-content[data-v-5b922a5f]{min-width:0}.pv-select-button-trigger-label[data-v-5b922a5f]{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-a93608b0]{pointer-events:none;color:#7d898d;border-radius:4px}.pv-menu-item{&[data-v-a93608b0]{cursor:pointer;border-radius:var(--popover-list-item-radius,4px);transition-property:background-color;transition-duration:.15s}&[data-v-a93608b0]:hover,&[data-v-a93608b0]:focus-visible{background-color:var(--popover-list-item-hover-background-color,#f5f5f5)}&[data-v-a93608b0]:active{background-color:var(--popover-list-item-pressed-background-color,#ebebeb)}}.pv-radio[data-v-a93608b0]:indeterminate{background-color:unset!important;border-color:var(--color-border,#e3e7ea)!important}.pv-menu-item-expand-chevron[data-v-a93608b0]{flex-shrink:0;margin-left:auto;padding:4px}.pv-menu-item-disabled .pv-menu-item-expand-chevron[data-v-a93608b0]{pointer-events:auto;color:inherit}.pv-data-widget[data-v-1681e679]{box-sizing:border-box;width:100%;min-width:0;min-height:0}.pv-data-widget--constrained[data-v-1681e679]{flex-direction:column;display:flex;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__body[data-v-1681e679]{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.pv-data-widget__table-container[data-v-1681e679]{min-height:0}.pv-data-widget__below-table[data-v-1681e679]{margin-top:16px}.pv-data-widget--constrained .pv-data-widget__table-container[data-v-1681e679]{flex:auto}.pv-data-widget--constrained .pv-data-widget__below-table[data-v-1681e679]{flex:none}.pv-data-widget__chart-scroll[data-v-1681e679]{width:100%;min-height:0;overflow:hidden}.pv-data-widget--constrained .pv-data-widget__chart-scroll[data-v-1681e679]{flex:auto}.pv-data-widget__chart-scroll--enabled[data-v-1681e679]{overflow:auto}.pv-data-widget__chart-content[data-v-1681e679]{min-height:100%}.pv-popover-list[data-v-c6181252]{font-size:14px}.pv-icon-button[data-v-79a7def3]{background-color:#0000;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}.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-4decbec2]{cursor:text;background:#f7f8f8;border:2px solid #0000;border-radius:.5rem;align-items:center;width:100%;min-height:2.25rem;padding:.25rem;font-size:.75rem;display:flex;position:relative}.pv-query-builder-input[data-v-4decbec2]{justify-content:start;overflow-x:hidden}.pv-query-builder-input-wrapper input[data-v-4decbec2]{background:0 0;border:none;outline:none;font-size:.75rem}.pv-query-builder-input-wrapper[data-v-4decbec2]:focus-within{border:2px solid #36c5ba}.pv-table-row-count{opacity:1;background-color:#f7f8f8;transition:opacity .3s;position:absolute;top:6px;right:12px}.pv-table-group-cell:hover .pv-table-row-count{opacity:0}.pv-table-row-number{text-align:center;color:#89989b;padding:8px 12px 8px 0}.suggested-label[data-v-5f5cbc35]:hover{color:#16696d}.suggested-title-label[data-v-5f5cbc35]:hover{color:#0d5256;text-decoration:underline}.pv-details-no-carat>summary[data-v-91375005]{cursor:default;background-image:none}.ag-custom-header-cell[data-v-385ad98a]{align-items:center;height:100%}.ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:0;transition:opacity .2s ease-in-out}.ag-header-cell-menu-button:hover .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a],.ag-header-cell-menu-button:focus .ag-header-actions .ag-header-cell-menu-button[data-v-385ad98a]{opacity:1}.pv-table-row-number[data-v-686928ce]{text-align:center;color:#89989b;padding:8px 12px 8px 0}.pv-table-overlay{z-index:2;pointer-events:none;background:#fff;width:100%;height:calc(100% - 40px);position:absolute;top:80px}.pv-data-table .ag-header-cell-resize{border:none!important}.pv-data-table .ag-cell-inline-editing .ag-cell-editor{height:100%!important}.pv-data-table .ag-rich-select-value{min-height:100%!important}.pv-data-table .ag-row-group-leaf-indent{margin-left:0;padding-left:7px}.pv-data-table .ag-custom-loading-cell{background-color:#ccc;border-radius:4px;width:100%;height:40%;margin:15px}.pv-data-table .ag-group-value{width:100%;height:100%}.pv-data-table .ag-row:not(.ag-row-group) .ag-cell-wrapper{align-items:stretch;height:100%}.pv-data-table .ag-menu-option:hover{background-color:#f7f8f8}.pv-data-table .ag-menu-option-shortcut{color:#89989b}.pv-data-table .ag-menu-option:active{background-color:#e8f2f4}.pv-data-table .ag-menu-option-text{font-family:Inter,sans-serif}.pv-data-table .ag-header-cell-menu-button:hover{box-shadow:unset!important}.pv-data-table .ag-button{border-radius:4px!important;padding:3px 8px!important;font-size:12px!important}.pv-data-table-grouped-card .ag-body-horizontal-scroll{display:none!important}.pv-data-table-grouped-card .ag-header-cell-resize{opacity:0;transition:opacity .2s}.pv-data-table-grouped-card .ag-header-cell:hover .ag-header-cell-resize{opacity:1}.pv-data-table-grouped-card .ag-row-group-contracted{background:linear-gradient(#fff 5px,#f7f8f8 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded{background:linear-gradient(#fff 5px,#f7f8f8 5px)!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:5px!important}.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell{border:none!important;align-items:center!important;padding-top:5px!important;padding-bottom:0!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-wrapper,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-wrapper{align-items:center!important;height:100%!important}.pv-data-table-grouped-card .ag-row-group-contracted .ag-cell-value,.pv-data-table-grouped-card .ag-row-group-expanded .ag-cell-value{height:100%!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded){border-bottom:1px solid #e0e0e0!important;border-left:1px solid #e0e0e0!important;border-right:1px solid #e0e0e0!important}.pv-data-table-grouped-card .ag-row-group-contracted:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px;position:absolute;inset:5px 0}.pv-data-table-grouped-card .ag-row-group-expanded:after{content:"";pointer-events:none;border:1px solid #e0e0e0;border-radius:4px 4px 0 0;position:absolute;inset:5px 0 0}.pv-data-table-grouped-card .ag-row-group-contracted:hover,.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px calc(100% - 5px),#fff calc(100% - 5px))!important}.pv-data-table-grouped-card .ag-row-group-expanded:hover{background:linear-gradient(#fff 5px,#eef0f0 5px)!important}.pv-data-table-grouped-card .ag-row:not(.ag-row-group-contracted):not(.ag-row-group-expanded):hover{background-color:#f7f8f8!important}.pv-data-table-grouped-card .ag-group-value{height:100%}.pv-text-tertiary[data-v-34615cd0]{color:#89989b}.pv-button-placeholder[data-v-34615cd0]{width:24px;height:24px}.pv-sort-option[data-v-34615cd0]{--flex-gap:4px;cursor:grab;min-height:24px}.pv-menu-item-disabled[data-v-34615cd0]{pointer-events:none;color:#7d898d}.placeholder-zone[data-v-34615cd0]{transition:background-color .2s}.pv-placeholder-dropzone[data-v-34615cd0]{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-34615cd0]{background:#f0f9f9;border-color:#16696d!important}.sort-divider-container[data-v-34615cd0]{display:flex}.sort-divider[data-v-34615cd0]{border-top:1px solid #e3e7ea;flex:1;margin:1rem 0;position:relative}.sort-divider[data-v-34615cd0]:after{content:attr(data-label);font-size:inherit;white-space:nowrap;background:#fff;padding:0 .5em;display:inline-block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.pv-menu-nested[data-v-4a384de9]:after{content:"›"}[data-v-4a384de9] .pv-menu-nested-active{background-color:var(--popover-list-selected-item-background-color,#e4f8f6)}.pv-tooltip a[data-v-4a384de9]{color:inherit}.pv-chart-option[data-v-4a384de9]{min-width:150px;max-width:225px}.pv-chart-overlay{pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ag-charts-tooltip{background-color:#fffffff2}.ag-charts-floating-toolbar{display:none!important}
|
|
2
2
|
/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import * as e from "vue";
|
|
3
3
|
import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, onBeforeMount as S, onBeforeUnmount as C, onMounted as w, onUnmounted as T, openBlock as E, provide as D, ref as O, renderList as k, renderSlot as A, resolveComponent as j, resolveDynamicComponent as M, shallowRef as N, toDisplayString as P, toRef as F, unref as I, useId as L, useModel as R, useSlots as ee, useTemplateRef as z, vModelCheckbox as B, vModelText as te, vShow as ne, watch as V, withCtx as H, withDirectives as U, withModifiers as W } from "vue";
|
|
4
4
|
import { AgCharts as G } from "ag-charts-vue3";
|
|
5
5
|
import { LicenseManager as re } from "ag-charts-enterprise";
|
|
6
|
-
import { onClickOutside as ie, onKeyStroke as ae, toRef as K, useDebounceFn as
|
|
7
|
-
import { vOnClickOutside as
|
|
8
|
-
import { AgGridVue as
|
|
9
|
-
import { CellStyleModule as
|
|
6
|
+
import { onClickOutside as ie, onKeyStroke as ae, toRef as K, useDebounceFn as oe, useElementBounding as se, useElementHover as q, useElementSize as ce, useToggle as le, watchDebounced as ue } from "@vueuse/core";
|
|
7
|
+
import { vOnClickOutside as J } from "@vueuse/components";
|
|
8
|
+
import { AgGridVue as de } from "ag-grid-vue3";
|
|
9
|
+
import { CellStyleModule as fe, CheckboxEditorModule as pe, ClientSideRowModelModule as me, ColumnApiModule as he, ColumnAutoSizeModule as ge, CsvExportModule as _e, CustomEditorModule as ve, CustomFilterModule as ye, DateEditorModule as be, EventApiModule as Y, GridStateModule as xe, LargeTextEditorModule as Se, ModuleRegistry as X, NumberEditorModule as Ce, PaginationModule as we, QuickFilterModule as Te, RowApiModule as Z, RowStyleModule as Ee, ScrollApiModule as De, SelectEditorModule as Oe, TextEditorModule as ke, TextFilterModule as Ae, UndoRedoEditModule as je, themeQuartz as Me } from "ag-grid-community";
|
|
10
10
|
import { AdvancedFilterModule as Ne, CellSelectionModule as Pe, ClientSideRowModelApiModule as Fe, ClipboardModule as Ie, ColumnMenuModule as Le, ContextMenuModule as Re, LicenseManager as ze, MultiFilterModule as Be, RenderApiModule as Ve, RichSelectModule as He, RowGroupingModule as Ue, RowSelectionModule as We, ServerSideRowModelApiModule as Q, ServerSideRowModelModule as Ge, SetFilterModule as Ke, TooltipModule as qe, ValidationModule as Je } from "ag-grid-enterprise";
|
|
11
11
|
import Ye from "papaparse";
|
|
12
12
|
import { useSortable as Xe } from "@vueuse/integrations/useSortable.mjs";
|
|
@@ -508,7 +508,7 @@ var Rt = { style: { position: "relative" } }, zt = {
|
|
|
508
508
|
},
|
|
509
509
|
emits: ["series-visibility-change"],
|
|
510
510
|
setup(e, { expose: t, emit: n }) {
|
|
511
|
-
let i = e, c = n, l = O(null), d = O(null), f = O(null), { width: p } =
|
|
511
|
+
let i = e, c = n, l = O(null), d = O(null), f = O(null), { width: p } = ce(l), { height: m } = ce(d), h = r(() => p.value > 0 ? p.value : typeof window < "u" && window.innerWidth > 0 ? window.innerWidth : 800), g = r(() => h.value < 250 || i.miniChart === "always" ? !0 : i.miniChart === "auto" && h.value < 400), _ = r(() => Math.max(m.value, 200)), v = r(() => hn(i.options, {
|
|
512
512
|
dataLimit: i.dataLimit,
|
|
513
513
|
showAxes: i.showAxes
|
|
514
514
|
})), b = r(() => dn(v.value)), S = r(() => fn(v.value)), C = r(() => nn({
|
|
@@ -1525,7 +1525,7 @@ var Si = { style: { width: "fit-content" } }, Ci = /* @__PURE__ */ d({
|
|
|
1525
1525
|
}),
|
|
1526
1526
|
emits: ["update:modelValue"],
|
|
1527
1527
|
setup(e) {
|
|
1528
|
-
let t = e, c = R(e, "modelValue"), l = O(null), u = O(null), d = O(null), f =
|
|
1528
|
+
let t = e, c = R(e, "modelValue"), l = O(null), u = O(null), d = O(null), f = q(l), p = q(d), m = {
|
|
1529
1529
|
"top-center": "top",
|
|
1530
1530
|
"bottom-center": "bottom",
|
|
1531
1531
|
"center-left": "left",
|
|
@@ -1548,7 +1548,7 @@ var Si = { style: { width: "fit-content" } }, Ci = /* @__PURE__ */ d({
|
|
|
1548
1548
|
V(c, (e) => {
|
|
1549
1549
|
e && u.value && d.value && _();
|
|
1550
1550
|
});
|
|
1551
|
-
let v =
|
|
1551
|
+
let v = se(u), y = oe(() => {
|
|
1552
1552
|
c.value && _();
|
|
1553
1553
|
}, 5);
|
|
1554
1554
|
V([
|
|
@@ -1595,7 +1595,7 @@ var Si = { style: { width: "fit-content" } }, Ci = /* @__PURE__ */ d({
|
|
|
1595
1595
|
ref_key: "floating",
|
|
1596
1596
|
ref: d,
|
|
1597
1597
|
style: x(b.value)
|
|
1598
|
-
}, [A(r.$slots, "content")], 4), [[ne, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(
|
|
1598
|
+
}, [A(r.$slots, "content")], 4), [[ne, c.value]])], 8, ["to", "disabled"])) : a("", !0)])), [[I(J), [N, { ignore: k.value }]]]);
|
|
1599
1599
|
}
|
|
1600
1600
|
}), wi = ["data-variant"], Ti = /* @__PURE__ */ d({
|
|
1601
1601
|
__name: "PvTooltipV2",
|
|
@@ -5645,7 +5645,7 @@ var Sa = {
|
|
|
5645
5645
|
action: n.optionsAction,
|
|
5646
5646
|
variant: n.optionsVariant,
|
|
5647
5647
|
counterBadgeVariant: n.counterBadgeVariant
|
|
5648
|
-
})), l = t, [d] =
|
|
5648
|
+
})), l = t, [d] = le(n.defaultOpen), f = R(e, "modelValue"), p = R(e, "searchInput");
|
|
5649
5649
|
V(d, (e) => {
|
|
5650
5650
|
l(e ? "dropdown-open" : "dropdown-closed");
|
|
5651
5651
|
});
|
|
@@ -6529,7 +6529,7 @@ var Sa = {
|
|
|
6529
6529
|
dataRows: v.value,
|
|
6530
6530
|
mapColumn: N.value,
|
|
6531
6531
|
seriesColumn: D.value
|
|
6532
|
-
})), ae = r(() => cs(ie.value, D.value?.field)), K = r(() => ls(D.value)),
|
|
6532
|
+
})), ae = r(() => cs(ie.value, D.value?.field)), K = r(() => ls(D.value)), oe = r(() => us({
|
|
6533
6533
|
aggregatedCategoryChartData: re.value,
|
|
6534
6534
|
categoryColumn: T.value,
|
|
6535
6535
|
dataLimit: n.dataLimit,
|
|
@@ -6550,18 +6550,18 @@ var Sa = {
|
|
|
6550
6550
|
useDisplayDataRows: n.chartData !== void 0,
|
|
6551
6551
|
xKey: n.xKey,
|
|
6552
6552
|
yKey: n.yKey
|
|
6553
|
-
})),
|
|
6553
|
+
})), se = r(() => dn(oe.value)), q = r(() => fn(oe.value)), ce = r(() => nn({
|
|
6554
6554
|
baseMinHeight: n.minHeight,
|
|
6555
|
-
dataCount:
|
|
6555
|
+
dataCount: se.value,
|
|
6556
6556
|
enableChartScrolling: n.enableChartScrolling,
|
|
6557
|
-
isHorizontalScrollingChart:
|
|
6558
|
-
})),
|
|
6559
|
-
if (!(!n.enableChartScrolling || !
|
|
6560
|
-
}),
|
|
6561
|
-
chartMinHeight:
|
|
6562
|
-
dataCount:
|
|
6557
|
+
isHorizontalScrollingChart: q.value
|
|
6558
|
+
})), le = r(() => {
|
|
6559
|
+
if (!(!n.enableChartScrolling || !q.value)) return { maxHeight: `${n.minHeight}px` };
|
|
6560
|
+
}), ue = r(() => rn({
|
|
6561
|
+
chartMinHeight: ce.value,
|
|
6562
|
+
dataCount: se.value,
|
|
6563
6563
|
enableChartScrolling: n.enableChartScrolling,
|
|
6564
|
-
isHorizontalScrollingChart:
|
|
6564
|
+
isHorizontalScrollingChart: q.value,
|
|
6565
6565
|
minContentWidth: 320
|
|
6566
6566
|
}));
|
|
6567
6567
|
return (n, r) => (E(), i(vn, {
|
|
@@ -6610,14 +6610,14 @@ var Sa = {
|
|
|
6610
6610
|
])], 4)) : (E(), o("div", {
|
|
6611
6611
|
key: 2,
|
|
6612
6612
|
class: y(["pv-data-widget__chart-scroll", { "pv-data-widget__chart-scroll--enabled pv-scroll": e.enableChartScrolling }]),
|
|
6613
|
-
style: x(
|
|
6613
|
+
style: x(le.value)
|
|
6614
6614
|
}, [s("div", {
|
|
6615
6615
|
class: "pv-data-widget__chart-content",
|
|
6616
|
-
style: x(
|
|
6616
|
+
style: x(ue.value)
|
|
6617
6617
|
}, [u(Zt, {
|
|
6618
|
-
options:
|
|
6618
|
+
options: oe.value,
|
|
6619
6619
|
isLoading: e.chartLoading,
|
|
6620
|
-
minHeight:
|
|
6620
|
+
minHeight: ce.value
|
|
6621
6621
|
}, null, 8, [
|
|
6622
6622
|
"options",
|
|
6623
6623
|
"isLoading",
|
|
@@ -6761,7 +6761,7 @@ var Sa = {
|
|
|
6761
6761
|
"alignment",
|
|
6762
6762
|
"isList",
|
|
6763
6763
|
"isSortable"
|
|
6764
|
-
])], 8, ["to", "disabled"]))])), [[I(
|
|
6764
|
+
])], 8, ["to", "disabled"]))])), [[I(J), C]]);
|
|
6765
6765
|
}
|
|
6766
6766
|
}), [["__scopeId", "data-v-79a7def3"]]), Ss = ["data-style"], Cs = /* @__PURE__ */ d({
|
|
6767
6767
|
__name: "PvTag",
|
|
@@ -7218,7 +7218,7 @@ var Ps = {
|
|
|
7218
7218
|
return ya(c.options, t) + e;
|
|
7219
7219
|
}), T = r(() => G.value.length > 0 ? !0 : c.enableCascadeSelection && ee.value?.length ? ee.value.some((e) => e.state === "selected") : !1), O = (e) => {
|
|
7220
7220
|
g("see-more", e ?? {});
|
|
7221
|
-
}, j = z("searchInputRef"), [M, F] =
|
|
7221
|
+
}, j = z("searchInputRef"), [M, F] = le(c.defaultOpen), L = R(e, "modelValue"), ee = R(e, "selectionState"), B = R(e, "searchInput"), te = r(() => c.menuActionsVariant === "cancel-confirm"), ne = (e) => {
|
|
7222
7222
|
G.value = e, te.value || (L.value = e, ee.value = S());
|
|
7223
7223
|
}, U = () => {
|
|
7224
7224
|
te.value && (L.value = G.value, ee.value = S());
|
|
@@ -7248,9 +7248,9 @@ var Ps = {
|
|
|
7248
7248
|
set: (e) => {
|
|
7249
7249
|
c.readOnly || ne(e);
|
|
7250
7250
|
}
|
|
7251
|
-
}),
|
|
7251
|
+
}), oe = () => {
|
|
7252
7252
|
B.value = "", M.value = !1;
|
|
7253
|
-
},
|
|
7253
|
+
}, se = r(() => {
|
|
7254
7254
|
let e = c.size === "lg" ? 24 : 30;
|
|
7255
7255
|
return c.overlayTrigger ? -e : void 0;
|
|
7256
7256
|
});
|
|
@@ -7270,25 +7270,25 @@ var Ps = {
|
|
|
7270
7270
|
c.overlayTrigger && !c.disableSearchInput && j.value?.input?.focus(), g("dropdown-open");
|
|
7271
7271
|
})) : (W(), g("dropdown-closed"));
|
|
7272
7272
|
});
|
|
7273
|
-
let
|
|
7273
|
+
let q = r(() => {
|
|
7274
7274
|
if (B.value === "") return c.options;
|
|
7275
7275
|
let e = B.value.toLocaleLowerCase();
|
|
7276
7276
|
return c.enableCascadeSelection ? xa(c.options, e, !c.hideParentOnChildQueryMatch) : c.options.filter((t) => t.text.toLocaleLowerCase().includes(e) || t.searchText?.toLocaleLowerCase().includes(e));
|
|
7277
|
-
}),
|
|
7277
|
+
}), ce = () => {
|
|
7278
7278
|
if (c.enableCascadeSelection) {
|
|
7279
7279
|
let e = /* @__PURE__ */ new Set(), t = (n) => {
|
|
7280
7280
|
for (let r of n) ga(r) && (e.add(r.id), r.children?.length && t(r.children));
|
|
7281
7281
|
};
|
|
7282
|
-
t(
|
|
7282
|
+
t(q.value), f.value = e, m.value = /* @__PURE__ */ new Map();
|
|
7283
7283
|
}
|
|
7284
|
-
ne(c.enableCascadeSelection ? _a(
|
|
7285
|
-
}, le = () => {
|
|
7286
|
-
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ne([]);
|
|
7287
|
-
}, Y = () => {
|
|
7288
|
-
W(), q();
|
|
7284
|
+
ne(c.enableCascadeSelection ? _a(q.value) : q.value);
|
|
7289
7285
|
}, ue = () => {
|
|
7290
|
-
|
|
7291
|
-
},
|
|
7286
|
+
f.value = /* @__PURE__ */ new Set(), m.value = /* @__PURE__ */ new Map(), ne([]);
|
|
7287
|
+
}, J = () => {
|
|
7288
|
+
W(), oe();
|
|
7289
|
+
}, de = () => {
|
|
7290
|
+
U(), oe();
|
|
7291
|
+
}, fe = r(() => {
|
|
7292
7292
|
if (!c.groupings) return;
|
|
7293
7293
|
let e = /* @__PURE__ */ new Map();
|
|
7294
7294
|
c.groupings.forEach((t) => {
|
|
@@ -7300,23 +7300,23 @@ var Ps = {
|
|
|
7300
7300
|
}
|
|
7301
7301
|
for (let [t, n] of e) n.length === 0 && e.delete(t);
|
|
7302
7302
|
return Array.from(e.entries());
|
|
7303
|
-
}),
|
|
7303
|
+
}), pe = r(() => c.groupings && B.value === ""), me = r(() => ({
|
|
7304
7304
|
...c,
|
|
7305
7305
|
selectedItems: L.value,
|
|
7306
7306
|
searchInput: B.value,
|
|
7307
7307
|
slotContext: c.slotContext,
|
|
7308
7308
|
isOpen: M.value,
|
|
7309
7309
|
isLoading: c.isLoading
|
|
7310
|
-
})),
|
|
7311
|
-
let e =
|
|
7310
|
+
})), he = z("popoverContentRef"), ge = r(() => {
|
|
7311
|
+
let e = he.value?.getRootNode();
|
|
7312
7312
|
return e instanceof ShadowRoot ? e.host : null;
|
|
7313
|
-
}), { present:
|
|
7313
|
+
}), { present: _e } = ra("header", { host: ge }), { present: ve } = ra("no-results", { host: ge }), { present: ye } = ra("footer", { host: ge });
|
|
7314
7314
|
return ae("Escape", () => {
|
|
7315
|
-
M.value &&
|
|
7315
|
+
M.value && oe();
|
|
7316
7316
|
}), (n, r) => (E(), i(Ci, _({
|
|
7317
7317
|
modelValue: I(M),
|
|
7318
7318
|
"onUpdate:modelValue": r[4] ||= (e) => h(M) ? M.value = e : null
|
|
7319
|
-
}, e.popoverProperties, { offset:
|
|
7319
|
+
}, e.popoverProperties, { offset: se.value }), {
|
|
7320
7320
|
trigger: H(() => [u(da, {
|
|
7321
7321
|
ref: "select-button-trigger-ref",
|
|
7322
7322
|
variant: e.variant,
|
|
@@ -7333,7 +7333,7 @@ var Ps = {
|
|
|
7333
7333
|
"counter-value": w.value,
|
|
7334
7334
|
"counter-style": e.counterStyle,
|
|
7335
7335
|
"selected-items": G.value,
|
|
7336
|
-
onHandleClear:
|
|
7336
|
+
onHandleClear: ue,
|
|
7337
7337
|
onHandleToggleDropdown: r[0] ||= (e) => I(F)()
|
|
7338
7338
|
}, null, 8, [
|
|
7339
7339
|
"variant",
|
|
@@ -7353,7 +7353,7 @@ var Ps = {
|
|
|
7353
7353
|
])]),
|
|
7354
7354
|
content: H(() => [s("div", {
|
|
7355
7355
|
ref_key: "popoverContentRef",
|
|
7356
|
-
ref:
|
|
7356
|
+
ref: he,
|
|
7357
7357
|
class: "pv-popover",
|
|
7358
7358
|
"data-test-id": "pv-popover",
|
|
7359
7359
|
style: x({
|
|
@@ -7373,8 +7373,8 @@ var Ps = {
|
|
|
7373
7373
|
"placeholder",
|
|
7374
7374
|
"disabled"
|
|
7375
7375
|
])])),
|
|
7376
|
-
n.$slots.header || I(
|
|
7377
|
-
|
|
7376
|
+
n.$slots.header || I(_e) ? (E(), o("div", Ks, [A(n.$slots, "header", b(p(me.value)))])) : a("", !0),
|
|
7377
|
+
q.value.length > 0 ? (E(), o(t, { key: 2 }, [pe.value ? (E(!0), o(t, { key: 0 }, k(fe.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
7378
7378
|
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", qs, P(t), 1)),
|
|
7379
7379
|
u(eo, {
|
|
7380
7380
|
selectedItems: K.value,
|
|
@@ -7387,7 +7387,7 @@ var Ps = {
|
|
|
7387
7387
|
isLoading: e.isLoading,
|
|
7388
7388
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
7389
7389
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
7390
|
-
hasMoreOptions: s ===
|
|
7390
|
+
hasMoreOptions: s === fe.value.length - 1 && C.value && !e.isLoading,
|
|
7391
7391
|
readOnly: e.readOnly,
|
|
7392
7392
|
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
7393
7393
|
onSeeMore: O
|
|
@@ -7404,12 +7404,12 @@ var Ps = {
|
|
|
7404
7404
|
"readOnly",
|
|
7405
7405
|
"hideUnselectedInReadOnly"
|
|
7406
7406
|
]),
|
|
7407
|
-
|
|
7407
|
+
fe.value && s !== fe.value.length - 1 ? (E(), o("div", Js)) : a("", !0)
|
|
7408
7408
|
]))), 128)) : (E(), i(eo, {
|
|
7409
7409
|
key: 1,
|
|
7410
7410
|
selectedItems: K.value,
|
|
7411
7411
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
7412
|
-
options:
|
|
7412
|
+
options: q.value,
|
|
7413
7413
|
config: l.value,
|
|
7414
7414
|
queryText: e.highlightSearchText ? B.value : null,
|
|
7415
7415
|
itemTestId: `pv-multiselect-${e.label}-item`,
|
|
@@ -7432,15 +7432,15 @@ var Ps = {
|
|
|
7432
7432
|
"readOnly",
|
|
7433
7433
|
"hideUnselectedInReadOnly"
|
|
7434
7434
|
]))], 64)) : a("", !0),
|
|
7435
|
-
e.isLoading ? (E(), o("div", Ys, [u(St, { variant: "dark" })])) :
|
|
7436
|
-
s("div", Xs, [I(
|
|
7435
|
+
e.isLoading ? (E(), o("div", Ys, [u(St, { variant: "dark" })])) : q.value.length === 0 ? (E(), o(t, { key: 4 }, [I(ve) ? A(n.$slots, "no-results", b(_({ key: 0 }, me.value))) : (E(), i(ha, { key: 1 }))], 64)) : a("", !0),
|
|
7436
|
+
s("div", Xs, [I(ye) ? A(n.$slots, "footer", b(_({ key: 0 }, me.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Ws, {
|
|
7437
7437
|
key: 1,
|
|
7438
7438
|
variant: e.menuActionsVariant,
|
|
7439
7439
|
disabled: e.isLoading,
|
|
7440
|
-
onHandleClearAll:
|
|
7441
|
-
onHandleSelectAll:
|
|
7442
|
-
onHandleCancel:
|
|
7443
|
-
onHandleConfirm:
|
|
7440
|
+
onHandleClearAll: ue,
|
|
7441
|
+
onHandleSelectAll: ce,
|
|
7442
|
+
onHandleCancel: J,
|
|
7443
|
+
onHandleConfirm: de
|
|
7444
7444
|
}, null, 8, ["variant", "disabled"])) : a("", !0)])
|
|
7445
7445
|
], 4)]),
|
|
7446
7446
|
_: 3
|
|
@@ -8081,7 +8081,7 @@ var Qs = "__pv_filter_panel_scoped_value__", $s = (e) => typeof e == "object" &&
|
|
|
8081
8081
|
}), null, 16, ["onHandleSelected"]))), 128))]),
|
|
8082
8082
|
_: 1
|
|
8083
8083
|
}, 8, ["class"])) : a("", !0)
|
|
8084
|
-
], 32)), [[I(
|
|
8084
|
+
], 32)), [[I(J), j]]);
|
|
8085
8085
|
}
|
|
8086
8086
|
}), [["__scopeId", "data-v-4decbec2"]]), Kc = Symbol("FilterStoreKey"), qc = Symbol("FocusStoreKey"), Jc = Symbol("SortStateKey"), Yc = Symbol("GridApiKey"), Xc = Symbol("ColumnDisplayOrderKey"), Zc = Symbol("currentlyActiveFilterKey"), Qc = Symbol("AvailableFilterColumnsKey"), $c = Symbol("AvailableRowGroupColumnsKey"), el = Symbol("RowGroupColumnFieldsKey"), tl = Symbol("GroupColumnCellValueColumnKey"), nl = Symbol("ExpandedRowsKey"), rl = Symbol("FirstDataRenderedKey"), il = Symbol("RowsLoadingKey"), al = Symbol("CurrentPageKey"), ol = Symbol("TotalPageKey"), sl = Symbol("ActiveChartFilterOptionKey"), cl = Symbol("RowGroupColumnsKey"), ll = Symbol("ChartTypeKey"), ul = Symbol("SortTypesKey"), dl = Symbol("ActiveChartKey"), fl = Symbol("ActiveSortKey"), pl = Symbol("ActiveSeriesKey"), ml = Symbol("AvailableSeriesKey"), hl = Symbol("ActiveSecondarySeriesKey"), gl = Symbol("AvailableSecondarySeriesKey"), _l = Symbol("EnableAdvancedFilterKey"), vl = Symbol("ActiveCrosslineOverlayGroupsKey"), yl = Symbol("AvailableCrosslineOverlayGroupsKey"), bl = {
|
|
8087
8087
|
class: "pv-flex",
|
|
@@ -8866,19 +8866,19 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
8866
8866
|
for (let n of e) t.add(n);
|
|
8867
8867
|
}
|
|
8868
8868
|
for (let e of j.value) t.has(e) || (w.value[e] = !0);
|
|
8869
|
-
},
|
|
8869
|
+
}, oe = e.initStagedFilterSelections, se = e.clearStagedFilterSelections, q = (e) => P.value[e] || [], ce = (e, t) => {
|
|
8870
8870
|
P.value[e] = t;
|
|
8871
|
-
},
|
|
8871
|
+
}, le = (e) => {
|
|
8872
8872
|
t.value = e;
|
|
8873
|
-
},
|
|
8873
|
+
}, J = (e) => {
|
|
8874
8874
|
(!e || t.value === e) && (t.value = null);
|
|
8875
|
-
},
|
|
8875
|
+
}, de = () => t.value?.getFilterModel() ?? n.value, fe = (e) => {
|
|
8876
8876
|
let r = t.value?.setFilterModel(e);
|
|
8877
8877
|
(!t.value || r === !1) && (n.value = e);
|
|
8878
|
-
},
|
|
8878
|
+
}, pe = (e) => {
|
|
8879
8879
|
let n = t.value?.setTableSearchFilterModel(e);
|
|
8880
8880
|
(!t.value || n === !1) && (a.value = e);
|
|
8881
|
-
},
|
|
8881
|
+
}, me = (e) => t.value?.refreshData(e), he = (e, t) => {
|
|
8882
8882
|
let n = /* @__PURE__ */ new Set(), r = e ? Object.keys(e) : [], i = t ? Object.keys(t) : [], a = r.filter((e) => i.includes(e));
|
|
8883
8883
|
[...r, ...i].filter((e) => !a.includes(e)).forEach((e) => n.add(e));
|
|
8884
8884
|
for (let r of a) JSON.stringify(e?.[r]) !== JSON.stringify(t?.[r]) && n.add(r);
|
|
@@ -8886,9 +8886,9 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
8886
8886
|
for (let e of Array.from(n)) o.value[e] = s;
|
|
8887
8887
|
return n;
|
|
8888
8888
|
};
|
|
8889
|
-
return
|
|
8889
|
+
return ue([n, i], ([e, t], [r, i]) => {
|
|
8890
8890
|
let a = /* @__PURE__ */ new Set();
|
|
8891
|
-
JSON.stringify(e) !== JSON.stringify(r) &&
|
|
8891
|
+
JSON.stringify(e) !== JSON.stringify(r) && he(e || {}, r || {}).forEach((e) => a.add(e)), JSON.stringify(t) !== JSON.stringify(i) && he(t || {}, n.value || {}).forEach((e) => a.add(e)), a.size > 0 && K(a);
|
|
8892
8892
|
}, {
|
|
8893
8893
|
deep: !0,
|
|
8894
8894
|
debounce: 200,
|
|
@@ -8934,16 +8934,16 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
8934
8934
|
registerFilterField: ie,
|
|
8935
8935
|
unregisterFilterField: ae,
|
|
8936
8936
|
stagedSelectedValuesMap: P,
|
|
8937
|
-
initStagedSelectedValues:
|
|
8938
|
-
clearStagedSelectedValues:
|
|
8939
|
-
getStagedSelectedValues:
|
|
8940
|
-
setStagedSelectedValues:
|
|
8941
|
-
registerFilterController:
|
|
8942
|
-
unregisterFilterController:
|
|
8943
|
-
getFilterModel:
|
|
8944
|
-
applyFilterModel:
|
|
8945
|
-
applyTableSearchFilterModel:
|
|
8946
|
-
refreshData:
|
|
8937
|
+
initStagedSelectedValues: oe,
|
|
8938
|
+
clearStagedSelectedValues: se,
|
|
8939
|
+
getStagedSelectedValues: q,
|
|
8940
|
+
setStagedSelectedValues: ce,
|
|
8941
|
+
registerFilterController: le,
|
|
8942
|
+
unregisterFilterController: J,
|
|
8943
|
+
getFilterModel: de,
|
|
8944
|
+
applyFilterModel: fe,
|
|
8945
|
+
applyTableSearchFilterModel: pe,
|
|
8946
|
+
refreshData: me,
|
|
8947
8947
|
filterValueSearchTextMap: S,
|
|
8948
8948
|
filterValuesHasMoreMap: f,
|
|
8949
8949
|
filterValuesTotalCountMap: p
|
|
@@ -8955,136 +8955,136 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
8955
8955
|
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().");
|
|
8956
8956
|
return e;
|
|
8957
8957
|
}, Lu = (e) => {
|
|
8958
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e,
|
|
8959
|
-
get: () => J.value ?
|
|
8958
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o, disableUnselected: s } = e, c = m(Yc, O(null)), l = Fu(), { fetchFilterValues: u, invalidateFilterRequest: d, filterModel: f, stagedFilterModel: p, filterModelCleared: h, filterValuesLoadingStatus: g, filterValueContext: _, getFilterSelectedValues: y, isServerSideFilter: b, setFilterValueSearchText: x, setFilterSelectedValues: S, getFilterValues: C, setFilterValues: E, filterStaleMap: D, refreshFiltersInBackground: k, stageFilterChangesUntilDropdownCloses: A, filterSearchMinLength: j, markOtherFieldsStale: M, registerAggregateField: N, registerFilterField: P, unregisterFilterField: F, getStagedSelectedValues: I, setStagedSelectedValues: L, filterValueSearchTextMap: R, filterValuesHasMoreMap: ee, filterValuesTotalCountMap: z } = l, { computedFocuses: B, removeFocus: te, computedFocusType: ne } = Il(), H = m(il, O(!1)), U = m(rl, O(!1)), W = m(_l, O(!1)), G = r({
|
|
8959
|
+
get: () => J.value ? I(q.value) : y(q.value),
|
|
8960
8960
|
set: (e) => {
|
|
8961
|
-
J.value ?
|
|
8961
|
+
J.value ? L(q.value, e) : S(q.value, e);
|
|
8962
8962
|
}
|
|
8963
|
-
}),
|
|
8964
|
-
let e =
|
|
8965
|
-
if (
|
|
8966
|
-
let t = new Set(e), n =
|
|
8963
|
+
}), re = r(() => {
|
|
8964
|
+
let e = C(q.value);
|
|
8965
|
+
if (de.value && pe.value.length > 0) {
|
|
8966
|
+
let t = new Set(e), n = pe.value.filter((e) => t.has(e)), r = new Set(pe.value), i = e.filter((e) => !r.has(e));
|
|
8967
8967
|
return [...n, ...i];
|
|
8968
8968
|
}
|
|
8969
|
-
return
|
|
8970
|
-
}),
|
|
8971
|
-
get: () =>
|
|
8972
|
-
set: (e) =>
|
|
8973
|
-
}),
|
|
8974
|
-
let e =
|
|
8969
|
+
return Ne(e);
|
|
8970
|
+
}), ie = r(() => g.value[q.value] ?? !1), ae = r(() => k.value || $(t.value).prefetchFilterValues === !0), K = r(() => (o?.value ?? !1) && (s?.value ?? !1) && G.value.length === 0 && Oe.value.length === 0), oe = r({
|
|
8971
|
+
get: () => R.value[q.value] ?? "",
|
|
8972
|
+
set: (e) => x(q.value, e)
|
|
8973
|
+
}), se = r(() => {
|
|
8974
|
+
let e = j.value ?? 0, t = oe.value?.length ?? 0;
|
|
8975
8975
|
return e > 0 && t > 0 && t < e;
|
|
8976
|
-
}), q = r(() => t.value.field || ""),
|
|
8976
|
+
}), q = r(() => t.value.field || ""), ce = r(() => t.value.filter || ""), le = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), de = O(!1), fe = O(!1), pe = O([]), me = r(() => Oo(t.value)), he = r(() => ko(t.value)), ge = r(() => Ao(t.value)), _e = r(() => $(t.value).filterOptionsSortDescription), ve = r(() => $(t.value).filterOptionsSortTooltip), ye = r(() => !$(t.value).filterSearch), be = r(() => $(t.value).emptyFilterResultsRenderer), Y = r(() => $(t.value).filterOptionsRenderer), xe = r(() => $(t.value).filterHeaderRenderer), Se = r(() => $(t.value).filterFooterRenderer), X = r(() => he.value ? G.value.length >= he.value : !1), Ce = r(() => re.value.filter((e) => e != null && !G.value.includes(e))), we = r(() => z.value[q.value]), Te = r(() => ee.value[q.value]), Z = r(() => Fo(t.value)), Ee = () => new Set([q.value, ...No(t.value)]), De = (e, t) => {
|
|
8977
8977
|
let n = new Set(e), r = new Set(t);
|
|
8978
8978
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
8979
|
-
},
|
|
8979
|
+
}, Oe = O([]), ke = O("[]"), Ae = r(() => re.value.length === 1 && re.value[0] === null && G.value.length === 0), je = (e = !1) => {
|
|
8980
8980
|
if (Z.value) return;
|
|
8981
8981
|
let n = [];
|
|
8982
|
-
if (
|
|
8983
|
-
let e =
|
|
8982
|
+
if (W.value && c.value) {
|
|
8983
|
+
let e = c.value.getAdvancedFilterModel();
|
|
8984
8984
|
n = Su(q.value, e);
|
|
8985
|
-
} else n = pu(t.value,
|
|
8986
|
-
e ?
|
|
8987
|
-
},
|
|
8985
|
+
} else n = pu(t.value, f.value);
|
|
8986
|
+
e ? G.value = n : G.value = Array.from(new Set([...y(q.value), ...n]));
|
|
8987
|
+
}, Me = (e) => {
|
|
8988
8988
|
let t = (n) => {
|
|
8989
8989
|
for (let r of n) if (r.id === String(e) && r.state === "selected" || r.children && t(r.children)) return !0;
|
|
8990
8990
|
return !1;
|
|
8991
8991
|
};
|
|
8992
|
-
return t(
|
|
8993
|
-
},
|
|
8994
|
-
let n =
|
|
8992
|
+
return t(Oe.value);
|
|
8993
|
+
}, Ne = (e) => [...e].sort((e, t) => {
|
|
8994
|
+
let n = G.value.includes(e) || Me(e), r = G.value.includes(t) || Me(t);
|
|
8995
8995
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
8996
|
-
}),
|
|
8997
|
-
if (!
|
|
8998
|
-
let r =
|
|
8999
|
-
if (
|
|
9000
|
-
if (
|
|
9001
|
-
let e = await
|
|
9002
|
-
api:
|
|
9003
|
-
filterModel:
|
|
8996
|
+
}), Pe = async (e = !1, n = !1) => {
|
|
8997
|
+
if (!c.value) return;
|
|
8998
|
+
let r = D.value[q.value] ?? !1, i = g.value[q.value] !== !0, a = (C(q.value) || []).length === 0, o = e && i && (r || n || a);
|
|
8999
|
+
if (W.value) {
|
|
9000
|
+
if (b.value && o) {
|
|
9001
|
+
let e = await u(t.value, {
|
|
9002
|
+
api: c.value,
|
|
9003
|
+
filterModel: f.value ?? void 0,
|
|
9004
9004
|
useStaged: J.value
|
|
9005
9005
|
});
|
|
9006
|
-
|
|
9006
|
+
E(q.value, e), D.value[q.value] = !1, yt();
|
|
9007
9007
|
}
|
|
9008
9008
|
return;
|
|
9009
9009
|
}
|
|
9010
|
-
let
|
|
9011
|
-
if (
|
|
9012
|
-
if (
|
|
9013
|
-
|
|
9010
|
+
let s = await du(c.value, t.value);
|
|
9011
|
+
if (s) {
|
|
9012
|
+
if (b.value && o) {
|
|
9013
|
+
s.refreshFilterValues();
|
|
9014
9014
|
return;
|
|
9015
9015
|
}
|
|
9016
|
-
|
|
9016
|
+
E(q.value, s.getFilterValues()), D.value[q.value] = !1;
|
|
9017
9017
|
}
|
|
9018
|
-
},
|
|
9019
|
-
let t =
|
|
9020
|
-
return !t && Z.value && e && (t =
|
|
9021
|
-
},
|
|
9018
|
+
}, Fe = (e) => {
|
|
9019
|
+
let t = _(q.value, e);
|
|
9020
|
+
return !t && Z.value && e && (t = et(e)), t;
|
|
9021
|
+
}, Ie = (e) => e?.field ?? e?.colField, Le = (e) => e?.rawValue == null ? e?.metadata?.rawValue == null ? e ? Ke(e.value).value : null : e.metadata.rawValue : e.rawValue, Re = (e, t) => t?.rawValue == null ? t?.metadata?.rawValue == null ? e : t.metadata.rawValue : t.rawValue, ze = (e, t) => {
|
|
9022
9022
|
if (!e || !t || e.label && e.rawValue == null && e.metadata?.rawValue == null) return e;
|
|
9023
9023
|
let n = ($(t).metadataDisplayFields || []).find((t) => e.metadata?.[t] != null);
|
|
9024
9024
|
return n ? {
|
|
9025
9025
|
...e,
|
|
9026
9026
|
label: String(e.metadata?.[n])
|
|
9027
9027
|
} : e;
|
|
9028
|
-
},
|
|
9029
|
-
let n =
|
|
9028
|
+
}, Be = (e, t) => {
|
|
9029
|
+
let n = me.value, r = t, i = Ie(t);
|
|
9030
9030
|
if (i && Z.value) {
|
|
9031
|
-
let e =
|
|
9032
|
-
n = e ? Oo(e) ?? n : n, r =
|
|
9031
|
+
let e = c.value?.getColumnDef(i);
|
|
9032
|
+
n = e ? Oo(e) ?? n : n, r = ze(t, e ?? void 0);
|
|
9033
9033
|
}
|
|
9034
9034
|
return n ? n({
|
|
9035
|
-
value:
|
|
9035
|
+
value: Re(e, r),
|
|
9036
9036
|
context: r
|
|
9037
9037
|
}) : r?.label || e;
|
|
9038
|
-
},
|
|
9038
|
+
}, Ve = (e) => Be(e, Fe(e)), He = (e) => {
|
|
9039
9039
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
9040
|
-
let n =
|
|
9040
|
+
let n = _(q.value, e);
|
|
9041
9041
|
return n == null || n.label == null;
|
|
9042
|
-
},
|
|
9042
|
+
}, Ue = (e) => Ae.value || _(q.value, e)?.isSelectable === !1 ? !0 : ge.value ? !1 : X.value && !G.value.includes(e), We = (e) => e ? c.value && c.value.getColumnDef(e)?.headerName || e : "", Q = (e, n, r) => Cc({
|
|
9043
9043
|
fallbackSubText: n,
|
|
9044
|
-
getDisplayName:
|
|
9044
|
+
getDisplayName: We,
|
|
9045
9045
|
matchedField: e?.matchedField,
|
|
9046
9046
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
9047
9047
|
primaryText: r,
|
|
9048
9048
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
9049
|
-
}),
|
|
9049
|
+
}), Ge = r(() => xc(q.value, $(t.value).queryColIds, (e) => e === q.value && le.value || We(e))), Ke = (e) => {
|
|
9050
9050
|
if (!e.startsWith("__")) return { value: e };
|
|
9051
9051
|
let t = e.slice(2).split("__");
|
|
9052
9052
|
return t.length < 2 ? { value: e } : {
|
|
9053
9053
|
field: t[0],
|
|
9054
9054
|
value: t[1]
|
|
9055
9055
|
};
|
|
9056
|
-
},
|
|
9057
|
-
let t =
|
|
9058
|
-
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(
|
|
9059
|
-
},
|
|
9056
|
+
}, qe = (e) => mc(e, Xe()), Je = (e) => {
|
|
9057
|
+
let t = Ke(e.value), n = { ...e };
|
|
9058
|
+
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(Je)), n;
|
|
9059
|
+
}, Ye = r(() => [...l.filterValueMap.value[q.value] || [], ...l.filterValueSelectedMetadataMap.value[q.value] || []].map((e) => e && Je(e))), Xe = () => Ye.value, Ze = (e, t) => {
|
|
9060
9060
|
for (let n of e) {
|
|
9061
9061
|
if (!n) continue;
|
|
9062
9062
|
if (t(n)) return n;
|
|
9063
|
-
let e = n.children ?
|
|
9063
|
+
let e = n.children ? Ze(n.children, t) : void 0;
|
|
9064
9064
|
if (e) return e;
|
|
9065
9065
|
}
|
|
9066
|
-
},
|
|
9066
|
+
}, Qe = (e, t) => {
|
|
9067
9067
|
for (let n of e) {
|
|
9068
9068
|
if (!n) continue;
|
|
9069
9069
|
if (n.children?.some((e) => e.value === t)) return n;
|
|
9070
|
-
let e = n.children ?
|
|
9070
|
+
let e = n.children ? Qe(n.children, t) : void 0;
|
|
9071
9071
|
if (e) return e;
|
|
9072
9072
|
}
|
|
9073
|
-
},
|
|
9073
|
+
}, $e = (e, t) => hc(Xe(), e, t), et = (e) => {
|
|
9074
9074
|
let t = (n) => {
|
|
9075
9075
|
if (n) {
|
|
9076
|
-
if (String(
|
|
9076
|
+
if (String(Le(n) ?? Ke(n.value).value) === e) return n;
|
|
9077
9077
|
for (let e of n.children || []) {
|
|
9078
9078
|
let n = t(e);
|
|
9079
9079
|
if (n) return n;
|
|
9080
9080
|
}
|
|
9081
9081
|
}
|
|
9082
9082
|
};
|
|
9083
|
-
for (let e of
|
|
9083
|
+
for (let e of Xe()) {
|
|
9084
9084
|
let n = t(e);
|
|
9085
9085
|
if (n) return n;
|
|
9086
9086
|
}
|
|
9087
|
-
},
|
|
9087
|
+
}, tt = (e) => {
|
|
9088
9088
|
let t = e.startsWith("__") ? e.slice(2).split("__") : [];
|
|
9089
9089
|
if (t.length < 4) return;
|
|
9090
9090
|
let n = t[0], r = t[1], i = t[2], a = t.slice(3).join("__");
|
|
@@ -9103,70 +9103,70 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9103
9103
|
}],
|
|
9104
9104
|
totalChildCount: 1
|
|
9105
9105
|
};
|
|
9106
|
-
},
|
|
9107
|
-
let n =
|
|
9108
|
-
return r?.children?.length ? r :
|
|
9109
|
-
},
|
|
9106
|
+
}, nt = (e) => {
|
|
9107
|
+
let n = Xe(), r = Ze(n, (t) => t.value === e.id);
|
|
9108
|
+
return r?.children?.length ? r : Qe(n, e.id) || (r && Ie(r) === Po(t.value) ? r : tt(e.id) || r);
|
|
9109
|
+
}, rt = (e) => {
|
|
9110
9110
|
if (!Z.value) return;
|
|
9111
|
-
let t =
|
|
9111
|
+
let t = l.filterValueSelectedMetadataMap.value[q.value] || [], n = /* @__PURE__ */ new Map();
|
|
9112
9112
|
for (let e of t) e && n.set(e.value, e);
|
|
9113
9113
|
for (let t of e) {
|
|
9114
9114
|
if (t.state !== "selected") continue;
|
|
9115
|
-
let e =
|
|
9115
|
+
let e = nt(t);
|
|
9116
9116
|
e && n.set(e.value, e);
|
|
9117
9117
|
}
|
|
9118
|
-
|
|
9119
|
-
},
|
|
9118
|
+
l.filterValueSelectedMetadataMap.value[q.value] = [...n.values()];
|
|
9119
|
+
}, it = () => {
|
|
9120
9120
|
let e = /* @__PURE__ */ new Set();
|
|
9121
|
-
for (let t of
|
|
9121
|
+
for (let t of Oe.value) {
|
|
9122
9122
|
if (t.state !== "selected") continue;
|
|
9123
|
-
let n =
|
|
9123
|
+
let n = nt(t);
|
|
9124
9124
|
n && e.add(n.value);
|
|
9125
9125
|
}
|
|
9126
|
-
return [...e].filter((e) => !
|
|
9127
|
-
},
|
|
9128
|
-
let n =
|
|
9126
|
+
return [...e].filter((e) => !re.value.includes(e));
|
|
9127
|
+
}, at = (e) => {
|
|
9128
|
+
let n = _(q.value, e), r = (n?.children?.length ?? 0) > 0 || (n?.totalChildCount ?? 0) > 0, i = _e.value ? "suggestions" : null;
|
|
9129
9129
|
n?.isPreference && (i = "preferences");
|
|
9130
|
-
let a = null, o =
|
|
9131
|
-
|
|
9132
|
-
let u,
|
|
9130
|
+
let a = null, o = Ve(e) || "", s = n?.matchedValue;
|
|
9131
|
+
s ? a = Q(n, n?.subText, o) : n?.subText ? a = n.subText : Ie(n) && Z.value && !r && (a = We(Ie(n)));
|
|
9132
|
+
let u, d, p;
|
|
9133
9133
|
if (r && (u = (n.children ?? []).map((e) => {
|
|
9134
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
9134
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Be(e.value, e) || "";
|
|
9135
9135
|
return {
|
|
9136
9136
|
...e.menuOption,
|
|
9137
9137
|
id: e.value,
|
|
9138
9138
|
text: n,
|
|
9139
9139
|
searchText: t,
|
|
9140
|
-
subText:
|
|
9140
|
+
subText: Q(e, e.subText, n),
|
|
9141
9141
|
subduedText: e.subduedText,
|
|
9142
|
-
disabled: e.menuOption?.disabled ??
|
|
9142
|
+
disabled: e.menuOption?.disabled ?? Ue(e.value),
|
|
9143
9143
|
context: e,
|
|
9144
9144
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
9145
9145
|
};
|
|
9146
|
-
}),
|
|
9146
|
+
}), d = n.totalChildCount, d && d > u.length && n.value != null)) {
|
|
9147
9147
|
let e = n.value;
|
|
9148
9148
|
p = async (n) => {
|
|
9149
|
-
if (!
|
|
9150
|
-
let r = n?.offset ?? u.length, i = await
|
|
9151
|
-
api:
|
|
9149
|
+
if (!c.value || !l.filterStoreHandler.value) return;
|
|
9150
|
+
let r = n?.offset ?? u.length, i = await l.filterStoreHandler.value({
|
|
9151
|
+
api: c.value,
|
|
9152
9152
|
colDef: t.value,
|
|
9153
9153
|
field: q.value,
|
|
9154
|
-
filterModel:
|
|
9155
|
-
query:
|
|
9154
|
+
filterModel: f.value ?? void 0,
|
|
9155
|
+
query: oe.value || void 0,
|
|
9156
9156
|
offset: r,
|
|
9157
9157
|
parentId: e,
|
|
9158
9158
|
reason: "child-load-more"
|
|
9159
9159
|
});
|
|
9160
9160
|
return (((i && !Array.isArray(i) ? i.values : i) || []).find((t) => t?.value === e)?.children || []).map((e) => {
|
|
9161
|
-
let t = e.matchedValue ?? e.menuOption?.searchText, n =
|
|
9161
|
+
let t = e.matchedValue ?? e.menuOption?.searchText, n = Be(e.value, e) || "";
|
|
9162
9162
|
return {
|
|
9163
9163
|
...e.menuOption,
|
|
9164
9164
|
id: e.value,
|
|
9165
9165
|
text: n,
|
|
9166
9166
|
searchText: t,
|
|
9167
|
-
subText:
|
|
9167
|
+
subText: Q(e, e.subText, n),
|
|
9168
9168
|
subduedText: e.subduedText,
|
|
9169
|
-
disabled: e.menuOption?.disabled ??
|
|
9169
|
+
disabled: e.menuOption?.disabled ?? Ue(e.value),
|
|
9170
9170
|
context: e,
|
|
9171
9171
|
classList: e.menuOption?.classList ?? ["option-label"]
|
|
9172
9172
|
};
|
|
@@ -9177,85 +9177,85 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9177
9177
|
...n?.menuOption,
|
|
9178
9178
|
id: e || "",
|
|
9179
9179
|
text: o,
|
|
9180
|
-
searchText:
|
|
9180
|
+
searchText: s,
|
|
9181
9181
|
subduedText: n?.subduedText,
|
|
9182
9182
|
subText: a || void 0,
|
|
9183
9183
|
groupingLabel: i || "",
|
|
9184
|
-
disabled: n?.menuOption?.disabled ?? (r ? !1 :
|
|
9184
|
+
disabled: n?.menuOption?.disabled ?? (r ? !1 : Ue(e)),
|
|
9185
9185
|
context: n || { value: e || "" },
|
|
9186
9186
|
classList: n?.menuOption?.classList ?? ["option-label"],
|
|
9187
9187
|
children: u,
|
|
9188
|
-
totalChildCount:
|
|
9188
|
+
totalChildCount: d,
|
|
9189
9189
|
handleSeeMore: p
|
|
9190
9190
|
};
|
|
9191
|
-
},
|
|
9192
|
-
let e = [...Z.value ?
|
|
9193
|
-
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !
|
|
9194
|
-
}),
|
|
9195
|
-
get: () => Z.value ? [] :
|
|
9196
|
-
let t =
|
|
9191
|
+
}, ot = r(() => {
|
|
9192
|
+
let e = [...Z.value ? it() : G.value.filter((e) => e != null && e !== "" && !re.value.includes(e)), ...re.value];
|
|
9193
|
+
return e.filter((t, n) => e.indexOf(t) === n).filter((e) => e != null && e !== "").filter((e) => !He(e)).map(at);
|
|
9194
|
+
}), st = r({
|
|
9195
|
+
get: () => Z.value ? [] : G.value.map((e) => {
|
|
9196
|
+
let t = _(q.value, e), n = Ie(t), r = n ? We(n) : void 0;
|
|
9197
9197
|
return {
|
|
9198
9198
|
id: e,
|
|
9199
|
-
text:
|
|
9199
|
+
text: Ve(e),
|
|
9200
9200
|
subText: r,
|
|
9201
9201
|
context: t || { value: e || "" }
|
|
9202
9202
|
};
|
|
9203
9203
|
}),
|
|
9204
9204
|
set: (e) => {
|
|
9205
9205
|
if (Z.value) {
|
|
9206
|
-
if (e.length === 0 && !
|
|
9207
|
-
|
|
9206
|
+
if (e.length === 0 && !de.value && A.value && !J.value) {
|
|
9207
|
+
gt([]);
|
|
9208
9208
|
return;
|
|
9209
9209
|
}
|
|
9210
9210
|
i?.();
|
|
9211
9211
|
return;
|
|
9212
9212
|
}
|
|
9213
|
-
|
|
9214
|
-
!
|
|
9213
|
+
G.value = e.map((e) => e.id), (e.length === 0 && !de.value || !A.value || J.value) && (lt(), B.value.forEach((e) => {
|
|
9214
|
+
!G.value.includes(e) && ne.value === q.value && te(e);
|
|
9215
9215
|
})), i?.();
|
|
9216
9216
|
}
|
|
9217
|
-
}),
|
|
9217
|
+
}), ct = (e) => {
|
|
9218
9218
|
let t = {};
|
|
9219
9219
|
for (let n of e) {
|
|
9220
9220
|
if (n === null) continue;
|
|
9221
|
-
let e =
|
|
9221
|
+
let e = Ie(_(q.value, n)) || q.value;
|
|
9222
9222
|
t[e] || (t[e] = []), t[e].push(n);
|
|
9223
9223
|
}
|
|
9224
9224
|
return t;
|
|
9225
|
-
},
|
|
9226
|
-
if (!
|
|
9225
|
+
}, lt = async (e, n, r) => {
|
|
9226
|
+
if (!c.value) return;
|
|
9227
9227
|
if (e !== void 0 && n !== void 0) {
|
|
9228
9228
|
let r = e || q.value, i = n;
|
|
9229
|
-
if (
|
|
9229
|
+
if (W.value) {
|
|
9230
9230
|
let e = eu(r, i || []);
|
|
9231
9231
|
if (J.value) {
|
|
9232
|
-
let t =
|
|
9233
|
-
|
|
9232
|
+
let t = p.value;
|
|
9233
|
+
p.value = bu(t, e, r), M(new Set([r]));
|
|
9234
9234
|
return;
|
|
9235
9235
|
}
|
|
9236
|
-
let t = bu(
|
|
9236
|
+
let t = bu(c.value.getAdvancedFilterModel(), e, r);
|
|
9237
9237
|
v(() => {
|
|
9238
|
-
|
|
9239
|
-
}),
|
|
9238
|
+
c.value?.setAdvancedFilterModel(t);
|
|
9239
|
+
}), M(new Set([r]));
|
|
9240
9240
|
return;
|
|
9241
9241
|
}
|
|
9242
9242
|
if (J.value) {
|
|
9243
|
-
let e = await fu(
|
|
9244
|
-
|
|
9245
|
-
...
|
|
9243
|
+
let e = await fu(c.value, t.value, i);
|
|
9244
|
+
p.value = {
|
|
9245
|
+
...p.value,
|
|
9246
9246
|
[r]: e
|
|
9247
9247
|
};
|
|
9248
9248
|
return;
|
|
9249
9249
|
}
|
|
9250
|
-
let a = await fu(
|
|
9251
|
-
|
|
9252
|
-
|
|
9250
|
+
let a = await fu(c.value, t.value, i);
|
|
9251
|
+
c.value.setColumnFilterModel(r, a).then(() => {
|
|
9252
|
+
c.value && c.value.onFilterChanged();
|
|
9253
9253
|
});
|
|
9254
9254
|
return;
|
|
9255
9255
|
}
|
|
9256
|
-
let i =
|
|
9257
|
-
if (
|
|
9258
|
-
let e = J.value ?
|
|
9256
|
+
let i = ct(G.value), o = $(t.value);
|
|
9257
|
+
if (W.value) {
|
|
9258
|
+
let e = J.value ? p.value : c.value.getAdvancedFilterModel(), n = e;
|
|
9259
9259
|
if (Z.value) {
|
|
9260
9260
|
let e = No(t.value), r = [];
|
|
9261
9261
|
for (let t of e) {
|
|
@@ -9279,7 +9279,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9279
9279
|
} : e;
|
|
9280
9280
|
}
|
|
9281
9281
|
} else {
|
|
9282
|
-
let t =
|
|
9282
|
+
let t = G.value.length > 0 ? G.value : null, r = eu(q.value, t || []);
|
|
9283
9283
|
n = bu(n, r, q.value);
|
|
9284
9284
|
let i = !1;
|
|
9285
9285
|
if (a?.value) {
|
|
@@ -9292,113 +9292,113 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9292
9292
|
n = bu(n, r, t);
|
|
9293
9293
|
}
|
|
9294
9294
|
}
|
|
9295
|
-
let s =
|
|
9295
|
+
let s = G.value.filter((e) => e !== null), c = Su(q.value, e), l = new Set(c), u = new Set(s);
|
|
9296
9296
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
9297
9297
|
}
|
|
9298
9298
|
if (r?.skipIfUnchanged && yu(e, n)) return;
|
|
9299
|
-
let
|
|
9300
|
-
if (J.value)
|
|
9299
|
+
let s = Z.value ? Ee() : new Set([q.value]);
|
|
9300
|
+
if (J.value) p.value = n, M(s);
|
|
9301
9301
|
else {
|
|
9302
9302
|
let e = n;
|
|
9303
9303
|
v(() => {
|
|
9304
|
-
|
|
9305
|
-
}),
|
|
9304
|
+
c.value?.setAdvancedFilterModel(e);
|
|
9305
|
+
}), M(s);
|
|
9306
9306
|
}
|
|
9307
9307
|
return;
|
|
9308
9308
|
}
|
|
9309
|
-
let
|
|
9309
|
+
let s = G.value.length > 0 ? G.value : null;
|
|
9310
9310
|
if (r?.skipIfUnchanged) {
|
|
9311
|
-
let e = pu(t.value,
|
|
9312
|
-
if (
|
|
9311
|
+
let e = pu(t.value, c.value.getFilterModel());
|
|
9312
|
+
if (De(G.value, e)) return;
|
|
9313
9313
|
}
|
|
9314
9314
|
if (J.value) {
|
|
9315
|
-
let e = await fu(
|
|
9316
|
-
|
|
9317
|
-
...
|
|
9315
|
+
let e = await fu(c.value, t.value, s);
|
|
9316
|
+
p.value = {
|
|
9317
|
+
...p.value,
|
|
9318
9318
|
[q.value]: e
|
|
9319
9319
|
};
|
|
9320
9320
|
return;
|
|
9321
9321
|
}
|
|
9322
|
-
let l = await fu(
|
|
9323
|
-
|
|
9324
|
-
|
|
9322
|
+
let l = await fu(c.value, t.value, s);
|
|
9323
|
+
c.value.setColumnFilterModel(q.value, l).then(() => {
|
|
9324
|
+
c.value && c.value.onFilterChanged();
|
|
9325
9325
|
});
|
|
9326
|
-
},
|
|
9327
|
-
if (e &&
|
|
9328
|
-
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e :
|
|
9329
|
-
|
|
9326
|
+
}, ut = (e, n) => {
|
|
9327
|
+
if (e && ge.value ? G.value = [e] : e && !G.value.includes(e) && (G.value = [...G.value, e]), Z.value && e) {
|
|
9328
|
+
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e : $e(r, e) || e;
|
|
9329
|
+
Oe.value.find((e) => e.id === i) || (Oe.value = [...Oe.value, {
|
|
9330
9330
|
id: i,
|
|
9331
9331
|
state: "selected"
|
|
9332
9332
|
}]);
|
|
9333
9333
|
}
|
|
9334
|
-
(!
|
|
9335
|
-
},
|
|
9336
|
-
if (
|
|
9337
|
-
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e :
|
|
9338
|
-
|
|
9334
|
+
(!A.value || J.value) && (Z.value && e ? gt(Oe.value) : n && n !== q.value ? lt(n, [e]) : lt()), i?.();
|
|
9335
|
+
}, dt = (e, n) => {
|
|
9336
|
+
if (G.value = G.value.filter((t) => t !== e), Z.value && e) {
|
|
9337
|
+
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e : $e(r, e) || e;
|
|
9338
|
+
Oe.value = Oe.value.filter((e) => e.id !== i);
|
|
9339
9339
|
}
|
|
9340
|
-
(!
|
|
9341
|
-
},
|
|
9342
|
-
|
|
9343
|
-
},
|
|
9344
|
-
|
|
9345
|
-
},
|
|
9346
|
-
if (!
|
|
9347
|
-
let n =
|
|
9348
|
-
r && (
|
|
9340
|
+
(!A.value || J.value) && (Z.value && e ? gt(Oe.value) : n && n !== q.value ? lt(n, null) : lt()), i?.();
|
|
9341
|
+
}, ft = () => {
|
|
9342
|
+
pe.value = Ne(C(q.value)), de.value = !0;
|
|
9343
|
+
}, pt = () => {
|
|
9344
|
+
de.value = !1, pe.value = [], oe.value = "", !o?.value && A.value && !J.value && (Z.value ? gt(Oe.value, { skipIfUnchanged: !0 }) : lt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
9345
|
+
}, mt = async (e) => {
|
|
9346
|
+
if (!c.value) return;
|
|
9347
|
+
let n = re.value.length, r = !e.parentId;
|
|
9348
|
+
r && (fe.value = !0);
|
|
9349
9349
|
try {
|
|
9350
|
-
await
|
|
9351
|
-
api:
|
|
9352
|
-
filterModel:
|
|
9350
|
+
await u(t.value, {
|
|
9351
|
+
api: c.value,
|
|
9352
|
+
filterModel: f.value ?? void 0,
|
|
9353
9353
|
offset: e.offset ?? n,
|
|
9354
9354
|
parentId: e.parentId,
|
|
9355
9355
|
useStaged: J.value
|
|
9356
9356
|
});
|
|
9357
9357
|
} finally {
|
|
9358
|
-
r && (
|
|
9358
|
+
r && (fe.value = !1);
|
|
9359
9359
|
}
|
|
9360
|
-
},
|
|
9360
|
+
}, ht = (e, n) => vc({
|
|
9361
9361
|
baseModel: n,
|
|
9362
9362
|
colDef: t.value,
|
|
9363
|
-
options:
|
|
9363
|
+
options: Xe(),
|
|
9364
9364
|
state: e
|
|
9365
|
-
}),
|
|
9366
|
-
if (!
|
|
9365
|
+
}), gt = (e, n) => {
|
|
9366
|
+
if (!c.value || !Z.value) return !1;
|
|
9367
9367
|
let r = JSON.stringify(e);
|
|
9368
|
-
if (n?.skipIfUnchanged && r ===
|
|
9369
|
-
if (
|
|
9370
|
-
let a = J.value ?
|
|
9371
|
-
if (n?.skipIfUnchanged && yu(a, o)) return
|
|
9372
|
-
if (J.value)
|
|
9368
|
+
if (n?.skipIfUnchanged && r === ke.value) return Oe.value = e, !1;
|
|
9369
|
+
if (Oe.value = e, rt(e), No(t.value).length === 0) return !1;
|
|
9370
|
+
let a = J.value ? p.value : c.value.getAdvancedFilterModel(), o = ht(e, a);
|
|
9371
|
+
if (n?.skipIfUnchanged && yu(a, o)) return ke.value = r, !1;
|
|
9372
|
+
if (J.value) p.value = o;
|
|
9373
9373
|
else {
|
|
9374
9374
|
let e = o;
|
|
9375
9375
|
v(() => {
|
|
9376
|
-
|
|
9376
|
+
c.value?.setAdvancedFilterModel(e);
|
|
9377
9377
|
});
|
|
9378
9378
|
}
|
|
9379
|
-
return
|
|
9380
|
-
},
|
|
9379
|
+
return ke.value = r, M(Ee()), i?.(), !0;
|
|
9380
|
+
}, _t = (e) => {
|
|
9381
9381
|
if (!Z.value || !No(t.value).length) return;
|
|
9382
9382
|
let n = bc({
|
|
9383
9383
|
colDef: t.value,
|
|
9384
9384
|
model: e,
|
|
9385
|
-
options:
|
|
9385
|
+
options: Xe()
|
|
9386
9386
|
}), r = JSON.stringify(n);
|
|
9387
|
-
JSON.stringify(
|
|
9388
|
-
},
|
|
9389
|
-
let { field: t, value: n } =
|
|
9390
|
-
return t ?
|
|
9391
|
-
}) : !1,
|
|
9392
|
-
!Z.value || !
|
|
9387
|
+
JSON.stringify(Oe.value) !== r && (Oe.value = n), ke.value = r, rt(n);
|
|
9388
|
+
}, vt = () => Z.value ? Oe.value.some((e) => {
|
|
9389
|
+
let { field: t, value: n } = qe(e.id);
|
|
9390
|
+
return t ? $e(t, n) !== e.id : !1;
|
|
9391
|
+
}) : !1, yt = () => {
|
|
9392
|
+
!Z.value || !W.value || vt() && _t(f.value);
|
|
9393
9393
|
};
|
|
9394
|
-
return V(
|
|
9395
|
-
Z.value && (
|
|
9396
|
-
}, { deep: !0 }), V(() =>
|
|
9397
|
-
e &&
|
|
9398
|
-
}), V(() =>
|
|
9394
|
+
return V(Oe, (e) => {
|
|
9395
|
+
Z.value && (rt(e), !(A.value && !J.value) && gt(e));
|
|
9396
|
+
}, { deep: !0 }), V(() => D.value[q.value], (e) => {
|
|
9397
|
+
e && (K.value || ae.value && Pe(!0));
|
|
9398
|
+
}), V(() => p.value, () => {
|
|
9399
9399
|
if (J.value) {
|
|
9400
|
-
if (
|
|
9401
|
-
let e = [], n =
|
|
9400
|
+
if (W.value) {
|
|
9401
|
+
let e = [], n = p.value;
|
|
9402
9402
|
if (Z.value) {
|
|
9403
9403
|
let r = No(t.value);
|
|
9404
9404
|
for (let t of r) {
|
|
@@ -9406,97 +9406,97 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9406
9406
|
e.push(...r);
|
|
9407
9407
|
}
|
|
9408
9408
|
} else e = Su(q.value, n);
|
|
9409
|
-
|
|
9409
|
+
G.value = e;
|
|
9410
9410
|
return;
|
|
9411
9411
|
}
|
|
9412
|
-
|
|
9412
|
+
ce.value === "agSetColumnFilter" ? G.value = p.value?.[q.value]?.values || [] : ce.value === "agMultiColumnFilter" ? G.value = p.value?.[q.value]?.filterModels?.find((e) => e && e.filterType === "set")?.values || [] : console.error(`Staged filter model update for filter type ${ce.value} is not yet supported.`);
|
|
9413
9413
|
}
|
|
9414
|
-
}), V(() =>
|
|
9414
|
+
}), V(() => f.value, () => {
|
|
9415
9415
|
if (J.value) return;
|
|
9416
9416
|
if (Z.value) {
|
|
9417
|
-
|
|
9417
|
+
W.value && _t(f.value);
|
|
9418
9418
|
return;
|
|
9419
9419
|
}
|
|
9420
|
-
if (
|
|
9421
|
-
let e =
|
|
9422
|
-
|
|
9420
|
+
if (W.value) {
|
|
9421
|
+
let e = f.value, t = Su(q.value, e);
|
|
9422
|
+
je(G.value.some((e) => e !== null && !t.includes(e)));
|
|
9423
9423
|
return;
|
|
9424
9424
|
}
|
|
9425
|
-
let e = pu(t.value,
|
|
9426
|
-
|
|
9427
|
-
}, { deep: !0 }), V(() =>
|
|
9428
|
-
|
|
9429
|
-
}), V(() =>
|
|
9430
|
-
e &&
|
|
9431
|
-
}, { immediate: !0 }), V(() =>
|
|
9432
|
-
|
|
9433
|
-
await
|
|
9434
|
-
}, 2e3) : await
|
|
9435
|
-
}),
|
|
9436
|
-
if (
|
|
9437
|
-
|
|
9425
|
+
let e = pu(t.value, f.value);
|
|
9426
|
+
je(G.value.some((t) => !e.includes(t)));
|
|
9427
|
+
}, { deep: !0 }), V(() => h.value, () => {
|
|
9428
|
+
G.value = [], Oe.value = [], ke.value = "[]";
|
|
9429
|
+
}), V(() => c.value, (e) => {
|
|
9430
|
+
e && b.value && (D.value[q.value] = !0);
|
|
9431
|
+
}, { immediate: !0 }), V(() => U.value, async () => {
|
|
9432
|
+
ae.value && !K.value && (J.value ? setTimeout(async () => {
|
|
9433
|
+
await Pe(!0);
|
|
9434
|
+
}, 2e3) : await Pe(!0)), je();
|
|
9435
|
+
}), ue(() => oe.value, async () => {
|
|
9436
|
+
if (se.value) {
|
|
9437
|
+
d(q.value);
|
|
9438
9438
|
return;
|
|
9439
9439
|
}
|
|
9440
|
-
await
|
|
9440
|
+
await Pe(!0, !0);
|
|
9441
9441
|
}, { debounce: 300 }), w(() => {
|
|
9442
|
-
|
|
9442
|
+
P(q.value);
|
|
9443
9443
|
let e = No(t.value);
|
|
9444
|
-
if (e.length &&
|
|
9445
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value &&
|
|
9446
|
-
e && n &&
|
|
9447
|
-
api:
|
|
9448
|
-
filterModel:
|
|
9444
|
+
if (e.length && N(q.value, e), je(), Z.value && W.value && _t(f.value), o?.value && b.value && c.value) {
|
|
9445
|
+
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && W.value ? No(t.value).some((e) => Su(e, f.value).length > 0) : G.value.length > 0;
|
|
9446
|
+
e && n && u(t.value, {
|
|
9447
|
+
api: c.value,
|
|
9448
|
+
filterModel: f.value ?? void 0
|
|
9449
9449
|
});
|
|
9450
9450
|
}
|
|
9451
|
-
Z.value || $(t.value).metadataDisplayFields?.length &&
|
|
9451
|
+
Z.value || $(t.value).metadataDisplayFields?.length && G.value.some((e) => He(e)) && Pe(!0, !0);
|
|
9452
9452
|
}), T(() => {
|
|
9453
|
-
|
|
9453
|
+
F(q.value), A.value && !J.value && (Z.value ? gt(Oe.value, { skipIfUnchanged: !0 }) : lt(void 0, void 0, { skipIfUnchanged: !0 }));
|
|
9454
9454
|
}), {
|
|
9455
|
-
selectedValues:
|
|
9456
|
-
filterValues:
|
|
9457
|
-
isLoading:
|
|
9458
|
-
isSeeMoreLoading:
|
|
9459
|
-
filterSearchText:
|
|
9460
|
-
filterSearchMinLength:
|
|
9461
|
-
belowFilterSearchMinLength:
|
|
9462
|
-
rowsLoading:
|
|
9463
|
-
gridApi:
|
|
9455
|
+
selectedValues: G,
|
|
9456
|
+
filterValues: re,
|
|
9457
|
+
isLoading: ie,
|
|
9458
|
+
isSeeMoreLoading: fe,
|
|
9459
|
+
filterSearchText: oe,
|
|
9460
|
+
filterSearchMinLength: j,
|
|
9461
|
+
belowFilterSearchMinLength: se,
|
|
9462
|
+
rowsLoading: H,
|
|
9463
|
+
gridApi: c,
|
|
9464
9464
|
filterField: q,
|
|
9465
|
-
filterType:
|
|
9466
|
-
filterDisplayName:
|
|
9465
|
+
filterType: ce,
|
|
9466
|
+
filterDisplayName: le,
|
|
9467
9467
|
isInFilterPanel: J,
|
|
9468
|
-
maxSelectableValues:
|
|
9469
|
-
isSingleSelect:
|
|
9470
|
-
selectionLimitReached:
|
|
9471
|
-
suggestedValues:
|
|
9472
|
-
displayedFilterValues:
|
|
9473
|
-
selectedFilterValues:
|
|
9474
|
-
showSearchBar:
|
|
9475
|
-
filterSearchPlaceholder:
|
|
9476
|
-
emptyFilterResultsRenderer:
|
|
9477
|
-
filterOptionsRenderer:
|
|
9478
|
-
filterHeaderRenderer:
|
|
9479
|
-
filterFooterRenderer:
|
|
9480
|
-
filterOptionsSortDescription:
|
|
9481
|
-
filterOptionsSortTooltip:
|
|
9482
|
-
totalOptionCount:
|
|
9483
|
-
hasMoreOptions:
|
|
9468
|
+
maxSelectableValues: he,
|
|
9469
|
+
isSingleSelect: ge,
|
|
9470
|
+
selectionLimitReached: X,
|
|
9471
|
+
suggestedValues: Ce,
|
|
9472
|
+
displayedFilterValues: ot,
|
|
9473
|
+
selectedFilterValues: st,
|
|
9474
|
+
showSearchBar: ye,
|
|
9475
|
+
filterSearchPlaceholder: Ge,
|
|
9476
|
+
emptyFilterResultsRenderer: be,
|
|
9477
|
+
filterOptionsRenderer: Y,
|
|
9478
|
+
filterHeaderRenderer: xe,
|
|
9479
|
+
filterFooterRenderer: Se,
|
|
9480
|
+
filterOptionsSortDescription: _e,
|
|
9481
|
+
filterOptionsSortTooltip: ve,
|
|
9482
|
+
totalOptionCount: we,
|
|
9483
|
+
hasMoreOptions: Te,
|
|
9484
9484
|
isAggregate: Z,
|
|
9485
|
-
cascadeSelectionState:
|
|
9486
|
-
filterValueContext:
|
|
9487
|
-
formatDisplayValue:
|
|
9488
|
-
resolvedFilterValueContext:
|
|
9489
|
-
isUnresolvedMetadataValue:
|
|
9490
|
-
getLatestFilterValues:
|
|
9491
|
-
addSelectedValue:
|
|
9492
|
-
removeSelectedValue:
|
|
9493
|
-
handleDropdownOpen:
|
|
9494
|
-
handleDropdownClosed:
|
|
9495
|
-
handleSeeMore:
|
|
9496
|
-
handleCascadeSelectionState:
|
|
9497
|
-
getColDisplayNameForField:
|
|
9498
|
-
disableFilterValue:
|
|
9499
|
-
updateFilterModelWithSelectedValues:
|
|
9485
|
+
cascadeSelectionState: Oe,
|
|
9486
|
+
filterValueContext: _,
|
|
9487
|
+
formatDisplayValue: Ve,
|
|
9488
|
+
resolvedFilterValueContext: Fe,
|
|
9489
|
+
isUnresolvedMetadataValue: He,
|
|
9490
|
+
getLatestFilterValues: Pe,
|
|
9491
|
+
addSelectedValue: ut,
|
|
9492
|
+
removeSelectedValue: dt,
|
|
9493
|
+
handleDropdownOpen: ft,
|
|
9494
|
+
handleDropdownClosed: pt,
|
|
9495
|
+
handleSeeMore: mt,
|
|
9496
|
+
handleCascadeSelectionState: gt,
|
|
9497
|
+
getColDisplayNameForField: We,
|
|
9498
|
+
disableFilterValue: Ue,
|
|
9499
|
+
updateFilterModelWithSelectedValues: lt
|
|
9500
9500
|
};
|
|
9501
9501
|
}, Ru = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9502
9502
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
@@ -9714,7 +9714,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9714
9714
|
}, null, 8, ["disabled"])) : a("", !0)
|
|
9715
9715
|
]),
|
|
9716
9716
|
_: 1
|
|
9717
|
-
}, 8, ["class", "css-custom-properties"])], 32)), [[I(
|
|
9717
|
+
}, 8, ["class", "css-custom-properties"])], 32)), [[I(J), [ee, { ignore: [".pv-popover"] }]]]);
|
|
9718
9718
|
}
|
|
9719
9719
|
}), Wu = {
|
|
9720
9720
|
key: 0,
|
|
@@ -9783,13 +9783,14 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9783
9783
|
"handle-settings-icon"
|
|
9784
9784
|
],
|
|
9785
9785
|
setup(e, { emit: n }) {
|
|
9786
|
-
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: L, filterField: R, filterDisplayName: ee, isInFilterPanel: z, suggestedValues: B, displayedFilterValues: te, selectedFilterValues: ne, showSearchBar: V, filterSearchPlaceholder: U, emptyFilterResultsRenderer: W, filterOptionsRenderer: G, filterHeaderRenderer: re, filterFooterRenderer: ie, filterOptionsSortDescription: ae, filterOptionsSortTooltip: K, filterValueContext:
|
|
9786
|
+
let d = e, f = n, g = O(null), x = r(() => g.value?.selectedValues ?? /* @__PURE__ */ new Set()), S = r(() => g.value?.selectedValues.size ?? 0), { selectedValues: C, isLoading: w, isSeeMoreLoading: T, filterSearchText: D, filterSearchMinLength: A, belowFilterSearchMinLength: j, rowsLoading: N, gridApi: L, filterField: R, filterDisplayName: ee, isInFilterPanel: z, suggestedValues: B, displayedFilterValues: te, selectedFilterValues: ne, showSearchBar: V, filterSearchPlaceholder: U, emptyFilterResultsRenderer: W, filterOptionsRenderer: G, filterHeaderRenderer: re, filterFooterRenderer: ie, filterOptionsSortDescription: ae, filterOptionsSortTooltip: K, filterValueContext: oe, formatDisplayValue: se, resolvedFilterValueContext: q, isUnresolvedMetadataValue: ce, getLatestFilterValues: le, addSelectedValue: ue, removeSelectedValue: J, handleDropdownOpen: de, handleDropdownClosed: fe, handleSeeMore: pe, getColDisplayNameForField: me, hasMoreOptions: he, totalOptionCount: ge, isAggregate: _e, cascadeSelectionState: ve } = Lu({
|
|
9787
9787
|
filterColDef: F(d, "filterColDef"),
|
|
9788
9788
|
filterStyle: F(d, "filterStyle"),
|
|
9789
9789
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
9790
9790
|
filterGroupStagedFields: x,
|
|
9791
|
-
readOnly: F(d, "readOnly")
|
|
9792
|
-
|
|
9791
|
+
readOnly: F(d, "readOnly"),
|
|
9792
|
+
disableUnselected: F(d, "disableUnselected")
|
|
9793
|
+
}), { handleFocusUpdate: ye, isFocused: be, removeFocus: Y, isFocusable: xe, canRemoveFocus: Se } = Il(), X = (e) => {
|
|
9793
9794
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
9794
9795
|
if (e.id.startsWith("__")) {
|
|
9795
9796
|
let t = e.id.slice(2).split("__");
|
|
@@ -9797,54 +9798,54 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9797
9798
|
}
|
|
9798
9799
|
return e.id;
|
|
9799
9800
|
}, Ce = r(() => {
|
|
9800
|
-
if (
|
|
9801
|
+
if (xe(Fo(d.filterColDef) ? No(d.filterColDef) : [R.value])) return {
|
|
9801
9802
|
icon: "focus",
|
|
9802
|
-
isDisabled: (e) => !
|
|
9803
|
+
isDisabled: (e) => !xe([e.context?.colField || R.value]),
|
|
9803
9804
|
tooltipText: (e) => {
|
|
9804
9805
|
let t = e.context?.colField || R.value;
|
|
9805
|
-
if (!
|
|
9806
|
-
let n =
|
|
9807
|
-
return n && !
|
|
9806
|
+
if (!xe([t])) return `Group by ${me(t)} to enable ${d.focusText}`;
|
|
9807
|
+
let n = be(_e.value ? X(e) : e.id, t);
|
|
9808
|
+
return n && !Se() ? `${d.focusText} (required)` : n ? `Remove ${d.focusText}` : `Select as ${d.focusText}`;
|
|
9808
9809
|
},
|
|
9809
9810
|
action: (e) => {
|
|
9810
|
-
e && !C.value.includes(e.id) &&
|
|
9811
|
+
e && !C.value.includes(e.id) && ue(e.id, e.context?.colField);
|
|
9811
9812
|
let t = e.context?.colField || R.value;
|
|
9812
|
-
|
|
9813
|
+
ye(_e.value ? X(e) : e.id, t);
|
|
9813
9814
|
},
|
|
9814
9815
|
alwaysShow: (e) => {
|
|
9815
9816
|
let t = e.context?.colField || R.value;
|
|
9816
|
-
return
|
|
9817
|
+
return be(_e.value ? X(e) : e.id, t);
|
|
9817
9818
|
}
|
|
9818
9819
|
};
|
|
9819
|
-
}),
|
|
9820
|
+
}), we = (e) => {
|
|
9820
9821
|
if (!e) return null;
|
|
9821
|
-
if (!
|
|
9822
|
-
let t =
|
|
9822
|
+
if (!_e.value) return e;
|
|
9823
|
+
let t = q(e);
|
|
9823
9824
|
if (t?.metadata?.rawValue != null) return String(t.metadata.rawValue);
|
|
9824
9825
|
if (e.startsWith("__")) {
|
|
9825
9826
|
let t = e.slice(2).split("__");
|
|
9826
9827
|
if (t.length >= 2) return t[1];
|
|
9827
9828
|
}
|
|
9828
9829
|
return e;
|
|
9829
|
-
},
|
|
9830
|
-
|
|
9831
|
-
let t =
|
|
9832
|
-
|
|
9833
|
-
},
|
|
9834
|
-
|
|
9830
|
+
}, Te = (e) => {
|
|
9831
|
+
J(e);
|
|
9832
|
+
let t = q(e)?.colField || R.value, n = we(e);
|
|
9833
|
+
be(n, t) && Se() && Y(n);
|
|
9834
|
+
}, Z = m(_l, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Z.value), De = () => {
|
|
9835
|
+
de(), le(!0);
|
|
9835
9836
|
}, Oe = () => {
|
|
9836
9837
|
v(() => {
|
|
9837
|
-
|
|
9838
|
+
fe(), f("filter-closed");
|
|
9838
9839
|
});
|
|
9839
9840
|
}, ke = (e) => {
|
|
9840
|
-
let t =
|
|
9841
|
-
return
|
|
9842
|
-
}, Ae = r(() => S.value > 0 ? !0 :
|
|
9843
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", Wu, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(ee)}-${n}` }, [I(
|
|
9844
|
-
label: I(
|
|
9845
|
-
showClear: !e.readOnly && (!ke(n) || I(
|
|
9841
|
+
let t = q(e)?.colField || R.value;
|
|
9842
|
+
return be(we(e), t);
|
|
9843
|
+
}, Ae = r(() => S.value > 0 ? !0 : _e.value ? ve.value.length > 0 : C.value.length > 0);
|
|
9844
|
+
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul", Wu, [(E(!0), o(t, null, k(I(C), (n) => (E(), o(t, { key: `${I(ee)}-${n}` }, [I(ce)(n) ? a("", !0) : (E(), o("li", Gu, [u(Cs, {
|
|
9845
|
+
label: I(se)(n) || "",
|
|
9846
|
+
showClear: !e.readOnly && (!ke(n) || I(Se)()),
|
|
9846
9847
|
disabled: e.readOnly,
|
|
9847
|
-
onHandleClose: (e) =>
|
|
9848
|
+
onHandleClose: (e) => Te(n)
|
|
9848
9849
|
}, null, 8, [
|
|
9849
9850
|
"label",
|
|
9850
9851
|
"showClear",
|
|
@@ -9858,8 +9859,8 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9858
9859
|
disabled: !I(z) && e.readOnly && e.disableUnselected && !Ae.value,
|
|
9859
9860
|
searchInput: I(D),
|
|
9860
9861
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
9861
|
-
selectionState: I(
|
|
9862
|
-
"onUpdate:selectionState": r[3] ||= (e) => h(
|
|
9862
|
+
selectionState: I(ve),
|
|
9863
|
+
"onUpdate:selectionState": r[3] ||= (e) => h(ve) ? ve.value = e : null,
|
|
9863
9864
|
"data-horizontal-filter-field": I(z) ? void 0 : I(R),
|
|
9864
9865
|
label: I(z) ? "" : I(ee),
|
|
9865
9866
|
highlightSearchText: !0,
|
|
@@ -9885,12 +9886,12 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9885
9886
|
groupings: ["preferences", "suggestions"],
|
|
9886
9887
|
isLoading: I(w),
|
|
9887
9888
|
isSeeMoreLoading: I(T),
|
|
9888
|
-
hasMoreOptions: I(
|
|
9889
|
-
totalOptionCount: I(
|
|
9890
|
-
enableCascadeSelection: I(
|
|
9891
|
-
enableChildExpansion: I(
|
|
9892
|
-
parentSelectsAllChildren: I(
|
|
9893
|
-
countSelectedParents: I(
|
|
9889
|
+
hasMoreOptions: I(he),
|
|
9890
|
+
totalOptionCount: I(ge),
|
|
9891
|
+
enableCascadeSelection: I(_e),
|
|
9892
|
+
enableChildExpansion: I(_e),
|
|
9893
|
+
parentSelectsAllChildren: I(_e),
|
|
9894
|
+
countSelectedParents: I(_e),
|
|
9894
9895
|
additionalCounter: S.value,
|
|
9895
9896
|
slotContext: {
|
|
9896
9897
|
gridApi: I(L),
|
|
@@ -9899,7 +9900,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9899
9900
|
},
|
|
9900
9901
|
onDropdownOpen: De,
|
|
9901
9902
|
onDropdownClosed: Oe,
|
|
9902
|
-
onSeeMore: I(
|
|
9903
|
+
onSeeMore: I(pe)
|
|
9903
9904
|
}, c({
|
|
9904
9905
|
preferences: H(() => [s("div", qu, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(Ti), {
|
|
9905
9906
|
variant: "dark",
|
|
@@ -9980,15 +9981,15 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
9980
9981
|
}
|
|
9981
9982
|
}, [u(I(Ns), {
|
|
9982
9983
|
disabled: I(w),
|
|
9983
|
-
label: I(
|
|
9984
|
-
onHandleClick: (t) => I(
|
|
9984
|
+
label: I(se)(e) || "",
|
|
9985
|
+
onHandleClick: (t) => I(ue)(e, I(oe)(I(R), e)?.colField)
|
|
9985
9986
|
}, null, 8, [
|
|
9986
9987
|
"disabled",
|
|
9987
9988
|
"label",
|
|
9988
9989
|
"onHandleClick"
|
|
9989
9990
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
9990
9991
|
}
|
|
9991
|
-
}), [["__scopeId", "data-v-
|
|
9992
|
+
}), [["__scopeId", "data-v-5f5cbc35"]]), td = { class: "pv-flex" }, nd = { class: "pv-flex" }, rd = { class: "pv-flex pv-space-between pv-stack-8" }, id = { class: "pv-text-title-lg" }, ad = {
|
|
9992
9993
|
id: "filter-vertical-drawer",
|
|
9993
9994
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
9994
9995
|
style: { height: "100%" }
|
|
@@ -10402,7 +10403,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10402
10403
|
__name: "PaginationPanel",
|
|
10403
10404
|
props: { panelSize: { default: "xl" } },
|
|
10404
10405
|
setup(e) {
|
|
10405
|
-
|
|
10406
|
+
X.registerModules([Y]);
|
|
10406
10407
|
let n = m(Yc, O(null)), a = m(al, O(1)), s = m(ol, O(0)), c = e, l = r(() => {
|
|
10407
10408
|
let e = s.value, t = a.value;
|
|
10408
10409
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
@@ -10510,12 +10511,12 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10510
10511
|
};
|
|
10511
10512
|
}), o.value = !1;
|
|
10512
10513
|
};
|
|
10513
|
-
return
|
|
10514
|
+
return ue(r, (e) => {
|
|
10514
10515
|
t.searchStyle === "query-builder" ? g(e) : t.searchStyle === "text" && p(e);
|
|
10515
10516
|
}, {
|
|
10516
10517
|
debounce: 300,
|
|
10517
10518
|
immediate: !0
|
|
10518
|
-
}),
|
|
10519
|
+
}), ue(n, (e) => {
|
|
10519
10520
|
t.searchStyle === "query-builder" && h(e);
|
|
10520
10521
|
}, {
|
|
10521
10522
|
debounce: 300,
|
|
@@ -10753,17 +10754,17 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10753
10754
|
let d = [
|
|
10754
10755
|
Ne,
|
|
10755
10756
|
Pe,
|
|
10756
|
-
|
|
10757
|
+
fe,
|
|
10757
10758
|
Fe,
|
|
10758
|
-
pe,
|
|
10759
|
-
Ie,
|
|
10760
10759
|
me,
|
|
10760
|
+
Ie,
|
|
10761
10761
|
he,
|
|
10762
|
+
ge,
|
|
10762
10763
|
Le,
|
|
10763
10764
|
Re,
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10765
|
+
_e,
|
|
10766
|
+
ye,
|
|
10767
|
+
xe,
|
|
10767
10768
|
Be,
|
|
10768
10769
|
De,
|
|
10769
10770
|
Ge,
|
|
@@ -10771,21 +10772,21 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10771
10772
|
Ke,
|
|
10772
10773
|
Ae,
|
|
10773
10774
|
Ve,
|
|
10774
|
-
|
|
10775
|
+
Z,
|
|
10775
10776
|
Ue,
|
|
10776
10777
|
We,
|
|
10777
10778
|
Ee,
|
|
10778
|
-
Z,
|
|
10779
10779
|
we,
|
|
10780
|
+
Te,
|
|
10780
10781
|
qe,
|
|
10781
10782
|
ke,
|
|
10782
10783
|
je,
|
|
10783
|
-
|
|
10784
|
+
pe,
|
|
10784
10785
|
Oe,
|
|
10785
|
-
|
|
10786
|
+
Se,
|
|
10786
10787
|
Ce,
|
|
10787
|
-
|
|
10788
|
-
|
|
10788
|
+
be,
|
|
10789
|
+
ve,
|
|
10789
10790
|
He
|
|
10790
10791
|
];
|
|
10791
10792
|
ze.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-084011}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Turquoise_Health}_is_granted_a_{Multiple_Applications}_Developer_License_for_{3}_Front-End_JavaScript_developers___All_Front-End_JavaScript_developers_need_to_be_licensed_in_addition_to_the_ones_working_with_{AG_Grid}_Enterprise___This_key_has_been_granted_a_Deployment_License_Add-on_for_{2}_Production_Environments___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{16_August_2026}____[v3]_[01]_MTc4NjgzNDgwMDAwMA==3bfdb2557ede1aa3533ccbd05785addb");
|
|
@@ -10806,11 +10807,11 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10806
10807
|
let n = G.find((e) => Po(e) === t);
|
|
10807
10808
|
return !!n && j(n).some((t) => su(e, t));
|
|
10808
10809
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
10809
|
-
if (!
|
|
10810
|
-
e.success({ rowData: [] }),
|
|
10810
|
+
if (!ce.value) {
|
|
10811
|
+
e.success({ rowData: [] }), oe.value = !0;
|
|
10811
10812
|
return;
|
|
10812
10813
|
}
|
|
10813
|
-
|
|
10814
|
+
se.value = !0;
|
|
10814
10815
|
let t = e.success, n = e.fail, r = e.request.groupKeys?.length || 0, i = e.request.rowGroupCols?.length || 0, a = r === i, o = !1, s = Qe.value;
|
|
10815
10816
|
if (i > 0 && r === 0) {
|
|
10816
10817
|
let t = e.request.rowGroupCols[0].id;
|
|
@@ -10865,7 +10866,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10865
10866
|
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !== mo), e.request.rowGroupCols = e.request.rowGroupCols.filter((e) => e.aggFunc !== mo);
|
|
10866
10867
|
}
|
|
10867
10868
|
}
|
|
10868
|
-
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !
|
|
10869
|
+
if (e.request.rowGroupCols?.length === 0 ? e.request.valueCols = [] : e.request.valueCols = e.request.valueCols?.filter((t) => !e.request.rowGroupCols?.some((e) => e.id === t.id)), (a || o) && !X.tableSearchFilterModelEmpty.value) if (f.enableAdvancedFilter) {
|
|
10869
10870
|
let t = e.request.filterModel;
|
|
10870
10871
|
t ? e.request.filterModel = {
|
|
10871
10872
|
filterType: "join",
|
|
@@ -10877,7 +10878,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10877
10878
|
e.request.filterModel = cu(G, t, s);
|
|
10878
10879
|
}
|
|
10879
10880
|
e.success = (e) => {
|
|
10880
|
-
if (
|
|
10881
|
+
if (se.value = !1, f.enableFocusView && ct.value.length > 0 && st.value && e.rowData) {
|
|
10881
10882
|
let n = Do(e.rowData, st.value, ct.value);
|
|
10882
10883
|
if (n) {
|
|
10883
10884
|
e.rowData = n, t(e);
|
|
@@ -10886,11 +10887,11 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10886
10887
|
}
|
|
10887
10888
|
t(e);
|
|
10888
10889
|
}, e.fail = () => {
|
|
10889
|
-
|
|
10890
|
+
se.value = !1, n();
|
|
10890
10891
|
}, f.serverSideRowHandler?.(e);
|
|
10891
10892
|
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
10892
10893
|
let t = [], n = { ...Ze.value };
|
|
10893
|
-
t = !
|
|
10894
|
+
t = !oe.value && ie ? wu(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await rt(e.colDef, {
|
|
10894
10895
|
api: e.api,
|
|
10895
10896
|
filterModel: n,
|
|
10896
10897
|
useStaged: !1
|
|
@@ -10965,32 +10966,32 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
10965
10966
|
return n && (t = W(t, n)), t;
|
|
10966
10967
|
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
10967
10968
|
for (let e of G) for (let t of No(e)) re.has(t) || console.warn(`aggregate field hierarchy references "${t}" on column "${e.field || e.colId}", but no colDef with that field exists.`);
|
|
10968
|
-
let ie = nu(f.initialGridState, G, f.enableAdvancedFilter), ae = O(null), K = O([]),
|
|
10969
|
+
let ie = nu(f.initialGridState, G, f.enableAdvancedFilter), ae = O(null), K = O([]), oe = m(rl, O(!1)), se = O(!1), q = r(() => {
|
|
10969
10970
|
if (K.value.length > 0) {
|
|
10970
10971
|
let e = K.value[0], t = G.find((t) => t.field === e), n = Ze.value, r = !n;
|
|
10971
10972
|
if (!r && Au(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
10972
10973
|
}
|
|
10973
10974
|
return null;
|
|
10974
|
-
}),
|
|
10975
|
+
}), ce = r(() => X.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : q.value === null), le = r(() => q.value ? `Select at least one value for "${q.value}" to view data.` : "Select a filter to view data."), J = N(null), Y = O([]), X = f.filterStore || Fu(), Me = m(qc, null), Xe = Me || Fl(null, f.allFieldsAreFocusable), Ze = X.filterModel, Qe = X.tableSearchFilterModel, $e = X.filterValueMap, et = X.filterValuesMap, nt = X.filterValueSelectedMetadataMap, rt = X.fetchFilterValues, it = X.filterStoreHandler, at = X.tableSearchHandler;
|
|
10975
10976
|
if (it.value = f.filterValuesSetHandler, it.value) {
|
|
10976
10977
|
let e = (e) => ({
|
|
10977
|
-
hasMore:
|
|
10978
|
-
totalCount:
|
|
10979
|
-
values:
|
|
10978
|
+
hasMore: X.filterHasMoreMap.value[e],
|
|
10979
|
+
totalCount: X.filterTotalCountMap.value[e],
|
|
10980
|
+
values: X.filterOptionsMap.value[e] ?? []
|
|
10980
10981
|
});
|
|
10981
|
-
|
|
10982
|
+
X.setFilterOptionsHandler(async (t) => {
|
|
10982
10983
|
let n = it.value;
|
|
10983
10984
|
return n ? await n({
|
|
10984
10985
|
...t,
|
|
10985
|
-
api:
|
|
10986
|
+
api: J.value ?? void 0,
|
|
10986
10987
|
colDef: t.colDef,
|
|
10987
10988
|
filterModel: t.filterModel
|
|
10988
10989
|
}) ?? e(t.field) : e(t.field);
|
|
10989
10990
|
});
|
|
10990
10991
|
}
|
|
10991
|
-
at.value = f.tableSearchHandler, $e.value = f.initialFilterValueMap || {}, et.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), nt.value = f.initialFilterValueSelectedMetadataMap || {},
|
|
10992
|
-
|
|
10993
|
-
}),
|
|
10992
|
+
at.value = f.tableSearchHandler, $e.value = f.initialFilterValueMap || {}, et.value = Object.fromEntries(Object.entries(f.initialFilterValueMap || {}).map(([e, t]) => [e, t.filter((e) => e != null).map((e) => e.value)])), nt.value = f.initialFilterValueSelectedMetadataMap || {}, X.refreshFiltersInBackground.value = f.refreshFiltersInBackground ?? !1, X.stageFilterChangesUntilDropdownCloses.value = f.stageFilterChangesUntilDropdownCloses ?? !1, X.filterSearchMinLength.value = f.filterSearchMinLength, X.filterModelType.value = f.enableAdvancedFilter ? "advanced" : "regular", V(() => f.enableAdvancedFilter, (e) => {
|
|
10993
|
+
X.filterModelType.value = e ? "advanced" : "regular";
|
|
10994
|
+
}), ue([$e, nt], () => {
|
|
10994
10995
|
T("filter-metadata-changed", {
|
|
10995
10996
|
filterValueMap: $e.value,
|
|
10996
10997
|
filterValueSelectedMetadataMap: nt.value
|
|
@@ -11000,7 +11001,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11000
11001
|
debounce: 250
|
|
11001
11002
|
});
|
|
11002
11003
|
let ot = O(null), st = r(() => Xe?.computedFocusType.value || null), ct = r(() => Xe?.computedFocuses.value || []), lt = r(() => G.filter((e) => e.filter)), ut = r(() => G.filter((e) => e.enableRowGroup)), dt = r(() => G.filter((e) => e.aggFunc)), ft = O(null), pt = O({}), mt = O(1), ht = O(0);
|
|
11003
|
-
D(Kc,
|
|
11004
|
+
D(Kc, X), D(qc, Xe), D(Jc, Y), D(Yc, J), D(Xc, ot), D(Zc, ae), D(Qc, lt), D($c, ut), D(el, K), D(tl, ft), D(nl, pt), D(rl, oe), D(il, se), D(al, mt), D(ol, ht), D(_l, r(() => f.enableAdvancedFilter));
|
|
11004
11005
|
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData : Do(f.rowData, st.value, ct.value));
|
|
11005
11006
|
V(() => ct.value, (e) => {
|
|
11006
11007
|
T("focus-update", {
|
|
@@ -11008,12 +11009,12 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11008
11009
|
focuses: e
|
|
11009
11010
|
});
|
|
11010
11011
|
}), V(k, (e) => {
|
|
11011
|
-
if (!
|
|
11012
|
+
if (!J.value) return;
|
|
11012
11013
|
let t = G.filter((e) => e.context?.devOnly).map((e) => e.field).filter(Boolean);
|
|
11013
|
-
t.length > 0 &&
|
|
11014
|
+
t.length > 0 && J.value.setColumnsVisible(t, e);
|
|
11014
11015
|
});
|
|
11015
11016
|
let _t = (e) => {
|
|
11016
|
-
|
|
11017
|
+
J.value = e.api;
|
|
11017
11018
|
let t = K.value.find((e) => !G.find((t) => t.field === e)?.hide), n = !t && K.value.length > 0 ? G.find((e) => !e.hide && !e.rowGroup)?.field ?? null : null, r = f.leftPinnedColumnName ?? t ?? n, i = [];
|
|
11018
11019
|
if (f.hideAllRowGroupedColumns && K.value.forEach((e) => i.push(e)), r) {
|
|
11019
11020
|
let t = e.api.getColumn(r);
|
|
@@ -11021,14 +11022,14 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11021
11022
|
}
|
|
11022
11023
|
ie ? Kt(ie) : Ze.value && At(Ze.value), Qe.value && jt(Qe.value), e.api.setColumnsVisible([...i], !1), ot.value = e.api.getAllGridColumns(), mt.value = e.api.paginationGetCurrentPage() + 1, ht.value = e.api.paginationGetTotalPages(), T("grid-ready", e);
|
|
11023
11024
|
}, vt = (e) => {
|
|
11024
|
-
if (
|
|
11025
|
+
if (J.value) {
|
|
11025
11026
|
let t = Tt();
|
|
11026
11027
|
yu(Ze.value, t) || (Ze.value = t, T("filter-changed", e));
|
|
11027
11028
|
}
|
|
11028
11029
|
}, yt = (e) => {
|
|
11029
|
-
|
|
11030
|
+
Y.value = e.api?.getState()?.sort?.sortModel || [], oe.value && T("sort-changed", e);
|
|
11030
11031
|
}, bt = (e) => e.getColId() && e.getColId().includes("ag-Grid-AutoColumn"), xt = O(!1), St = async (e) => {
|
|
11031
|
-
if (!
|
|
11032
|
+
if (!J.value) {
|
|
11032
11033
|
console.error("Grid API not available");
|
|
11033
11034
|
return;
|
|
11034
11035
|
}
|
|
@@ -11037,17 +11038,17 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11037
11038
|
route: [],
|
|
11038
11039
|
purge: !0
|
|
11039
11040
|
};
|
|
11040
|
-
|
|
11041
|
+
J.value.refreshServerSide(t);
|
|
11041
11042
|
};
|
|
11042
11043
|
function Ct(e) {
|
|
11043
|
-
return e?.hydrate ?
|
|
11044
|
+
return e?.hydrate ? X.hydrateSelectedFilterMetadata(G) : nt.value;
|
|
11044
11045
|
}
|
|
11045
11046
|
let wt = async () => {
|
|
11046
|
-
if (xt.value = !0, !
|
|
11047
|
+
if (xt.value = !0, !J.value) return console.error("Grid API not available"), xt.value = !1, null;
|
|
11047
11048
|
try {
|
|
11048
|
-
let e = f.serverSideCsvHandler, t =
|
|
11049
|
+
let e = f.serverSideCsvHandler, t = J.value?.getState(), n = {
|
|
11049
11050
|
rowGroupCols: [],
|
|
11050
|
-
valueCols:
|
|
11051
|
+
valueCols: J.value?.getValueColumns().map((e) => ({
|
|
11051
11052
|
id: e.getId(),
|
|
11052
11053
|
field: e.getColDef().field,
|
|
11053
11054
|
aggFunc: typeof e.getColDef().aggFunc == "string" ? e.getColDef().aggFunc : void 0,
|
|
@@ -11065,7 +11066,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11065
11066
|
let e = {
|
|
11066
11067
|
request: n,
|
|
11067
11068
|
parentNode: {},
|
|
11068
|
-
api:
|
|
11069
|
+
api: J.value,
|
|
11069
11070
|
context: void 0,
|
|
11070
11071
|
success: () => {},
|
|
11071
11072
|
fail: () => {}
|
|
@@ -11074,13 +11075,13 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11074
11075
|
}
|
|
11075
11076
|
let r = f.serverSideRowHandler;
|
|
11076
11077
|
return r ? await new Promise((e, t) => {
|
|
11077
|
-
|
|
11078
|
+
J.value?.getState(), r({
|
|
11078
11079
|
request: n,
|
|
11079
11080
|
parentNode: {},
|
|
11080
|
-
api:
|
|
11081
|
+
api: J.value,
|
|
11081
11082
|
context: void 0,
|
|
11082
11083
|
success: (t) => {
|
|
11083
|
-
let n =
|
|
11084
|
+
let n = J.value?.getRowGroupColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], r = J.value?.getAllDisplayedColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], i = J.value?.getValueColumns().map((e) => e.getColDef().field).filter((e) => !!e) || [], a = Array.from(new Set([
|
|
11084
11085
|
...n,
|
|
11085
11086
|
...r,
|
|
11086
11087
|
...i
|
|
@@ -11097,28 +11098,28 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11097
11098
|
xt.value = !1, t("CSV export failed.");
|
|
11098
11099
|
}
|
|
11099
11100
|
}, !0);
|
|
11100
|
-
}) : (console.warn("Client-side export does not return CSV string"), xt.value = !1,
|
|
11101
|
+
}) : (console.warn("Client-side export does not return CSV string"), xt.value = !1, J.value.exportDataAsCsv(), null);
|
|
11101
11102
|
} catch (e) {
|
|
11102
11103
|
return console.error("CSV export failed", e), xt.value = !1, null;
|
|
11103
11104
|
}
|
|
11104
|
-
}, Tt = () =>
|
|
11105
|
-
if (!
|
|
11105
|
+
}, Tt = () => J.value ? f.enableAdvancedFilter ? J.value.getAdvancedFilterModel() : J.value.getFilterModel() : Ze.value, At = (e) => {
|
|
11106
|
+
if (!J.value) return !1;
|
|
11106
11107
|
if (f.enableAdvancedFilter) {
|
|
11107
11108
|
let t = e && Au(e) ? tu(e) : e;
|
|
11108
|
-
|
|
11109
|
+
J.value.setAdvancedFilterModel(t);
|
|
11109
11110
|
} else {
|
|
11110
11111
|
if (e && !Au(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;
|
|
11111
|
-
|
|
11112
|
+
J.value.setFilterModel(e);
|
|
11112
11113
|
}
|
|
11113
11114
|
return !0;
|
|
11114
|
-
}, jt = (e) => (Qe.value = e,
|
|
11115
|
+
}, jt = (e) => (Qe.value = e, J.value ? (J.value.onFilterChanged(), F && J.value.refreshServerSide({ purge: !0 }), !0) : !1), Mt = {
|
|
11115
11116
|
getFilterModel: Tt,
|
|
11116
11117
|
refreshData: St,
|
|
11117
11118
|
setFilterModel: At,
|
|
11118
11119
|
setTableSearchFilterModel: jt
|
|
11119
11120
|
};
|
|
11120
|
-
|
|
11121
|
-
|
|
11121
|
+
X.registerFilterController(Mt), C(() => {
|
|
11122
|
+
X.unregisterFilterController(Mt);
|
|
11122
11123
|
}), t({
|
|
11123
11124
|
getCsvData: wt,
|
|
11124
11125
|
refreshData: St,
|
|
@@ -11142,7 +11143,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11142
11143
|
let e = K.value.length > 0 ? K.value[0] : null;
|
|
11143
11144
|
Xe.setFocusType(e);
|
|
11144
11145
|
}
|
|
11145
|
-
|
|
11146
|
+
oe.value && T("column-row-group-changed", e);
|
|
11146
11147
|
});
|
|
11147
11148
|
}, Pt = (e) => {
|
|
11148
11149
|
let t = e.column?.getColId() || "";
|
|
@@ -11153,7 +11154,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11153
11154
|
}, Ft = (e) => {
|
|
11154
11155
|
f.enableExpandOnRowClick && e.node.group && e.node.setExpanded(!e.node.expanded), T("row-clicked", e);
|
|
11155
11156
|
}, It = (e) => {
|
|
11156
|
-
e.finished && (ot.value = e.api.getAllGridColumns()),
|
|
11157
|
+
e.finished && (ot.value = e.api.getAllGridColumns()), oe.value && T("column-moved", e);
|
|
11157
11158
|
}, Lt = (e) => {
|
|
11158
11159
|
e.api && (mt.value = e.api.paginationGetCurrentPage() + 1, ht.value = e.api.paginationGetTotalPages());
|
|
11159
11160
|
}, Rt = (e) => "allChildrenRowCount" in e && e.allChildrenRowCount || 0, zt = (e) => {
|
|
@@ -11180,7 +11181,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11180
11181
|
displayCount: f.displayGroupCount,
|
|
11181
11182
|
formattedValue: e.valueFormatted,
|
|
11182
11183
|
rowNode: e.node,
|
|
11183
|
-
api:
|
|
11184
|
+
api: J.value,
|
|
11184
11185
|
focusText: f.focusText,
|
|
11185
11186
|
cellParams: e
|
|
11186
11187
|
})
|
|
@@ -11224,7 +11225,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11224
11225
|
}, ie && (Ze.value = (f.enableAdvancedFilter ? ie.filter?.advancedFilterModel : ie.filter?.filterModel) || null, K.value = ie.rowGroup?.groupColIds || []);
|
|
11225
11226
|
});
|
|
11226
11227
|
let Kt = (e) => {
|
|
11227
|
-
let t =
|
|
11228
|
+
let t = J.value;
|
|
11228
11229
|
if (!t) return;
|
|
11229
11230
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
11230
11231
|
n && !yu(n, t.getFilterModel()) && t.setFilterModel(n), f.isTableGrouped && r && !tt(r, K.value) && t.setRowGroupColumns(r), i?.hiddenColIds && t.setColumnsVisible(i.hiddenColIds, !1);
|
|
@@ -11236,7 +11237,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11236
11237
|
}
|
|
11237
11238
|
}, { deep: !0 });
|
|
11238
11239
|
let qt = (e) => {
|
|
11239
|
-
|
|
11240
|
+
oe.value = !0, T("first-data-rendered", e);
|
|
11240
11241
|
}, Jt = (e) => F ? f.isServerSideGroupOpenByDefault ? f.isServerSideGroupOpenByDefault(e) : e.rowNode.level === K.value.length - 2 : !1, Yt = r(() => {
|
|
11241
11242
|
if (!F) return f.groupDefaultExpanded;
|
|
11242
11243
|
}), Xt = O(null), Zt = O(null);
|
|
@@ -11306,7 +11307,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11306
11307
|
}, [s("div", Rd, [e.enableTableSearch ? (E(), i(jd, {
|
|
11307
11308
|
key: 0,
|
|
11308
11309
|
placeholder: e.tableSearchPlaceholder,
|
|
11309
|
-
disabled: !
|
|
11310
|
+
disabled: !ce.value,
|
|
11310
11311
|
"search-style": e.tableSearchStyle
|
|
11311
11312
|
}, null, 8, [
|
|
11312
11313
|
"placeholder",
|
|
@@ -11321,7 +11322,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11321
11322
|
"min-height": "0",
|
|
11322
11323
|
"overflow-x": "hidden"
|
|
11323
11324
|
}
|
|
11324
|
-
}, [u(I(
|
|
11325
|
+
}, [u(I(de), _({
|
|
11325
11326
|
ref: "gridRef",
|
|
11326
11327
|
class: ["pv-data-table", I(b)],
|
|
11327
11328
|
style: [{
|
|
@@ -11399,7 +11400,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11399
11400
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
11400
11401
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
11401
11402
|
advancedFilterParent: Zt.value
|
|
11402
|
-
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.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 && !
|
|
11403
|
+
}), null, 16, /* @__PURE__ */ "class.style.domLayout.autoGroupColumnDef.columnDefs.debug.defaultColDef.getContextMenuItems.getMainMenuItems.groupDefaultExpanded.initialState.isGroupOpenByDefault.loading.loadingCellRenderer.loadingCellRendererParams.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 && !ce.value ? (E(), o("div", zd, [s("p", Bd, P(le.value), 1)])) : a("", !0)], 2),
|
|
11403
11404
|
e.pagination ? (E(), i(Ed, { key: 2 })) : a("", !0)
|
|
11404
11405
|
], 4));
|
|
11405
11406
|
}
|
|
@@ -11502,7 +11503,7 @@ var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv
|
|
|
11502
11503
|
onHandleSelected: S
|
|
11503
11504
|
}, null, 8, ["text", "icon"])])])]),
|
|
11504
11505
|
_: 1
|
|
11505
|
-
}, 8, ["class"])])), [[I(
|
|
11506
|
+
}, 8, ["class"])])), [[I(J), [x, { ignore: [".pv-popover"] }]]]), u(_s, {
|
|
11506
11507
|
ref_key: "nestedMenuPopoverRef",
|
|
11507
11508
|
ref: g,
|
|
11508
11509
|
class: y({ "pv-hide": !(m.value && h.value) }),
|
|
@@ -11921,7 +11922,7 @@ var bf = {
|
|
|
11921
11922
|
set: (e) => {
|
|
11922
11923
|
T.value = e.map((e) => e.id);
|
|
11923
11924
|
}
|
|
11924
|
-
}),
|
|
11925
|
+
}), oe = r(() => {
|
|
11925
11926
|
let e = [], t = {
|
|
11926
11927
|
value: "y-axis",
|
|
11927
11928
|
label: "Y Axis",
|
|
@@ -12021,17 +12022,17 @@ var bf = {
|
|
|
12021
12022
|
V(v, (e) => {
|
|
12022
12023
|
e && (p.value = e);
|
|
12023
12024
|
});
|
|
12024
|
-
let
|
|
12025
|
-
let t =
|
|
12025
|
+
let se = r(() => _.value && oe.value.find((e) => e.value === _.value) || null), q = (e) => {
|
|
12026
|
+
let t = se.value;
|
|
12026
12027
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
12027
|
-
},
|
|
12028
|
+
}, ce = (e) => se.value?.isMultiSelect ? null : q(e), le = (e) => se.value?.isMultiSelect ? {
|
|
12028
12029
|
variant: "checkbox",
|
|
12029
12030
|
renderer: Cf
|
|
12030
|
-
} : G(e) ? { renderer: Cf } : { variant: "icon" },
|
|
12031
|
+
} : G(e) ? { renderer: Cf } : { variant: "icon" }, ue = (e) => {
|
|
12031
12032
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
12032
|
-
}, ue = () => {
|
|
12033
|
-
g.value = !1, _.value = void 0;
|
|
12034
12033
|
}, de = () => {
|
|
12034
|
+
g.value = !1, _.value = void 0;
|
|
12035
|
+
}, fe = () => {
|
|
12035
12036
|
_.value = void 0;
|
|
12036
12037
|
};
|
|
12037
12038
|
return (n, r) => (E(), o(t, null, [s("div", wf, [s("div", null, [U((E(), o("div", { class: y(["pv-flex pv-space-between", e.useCombinedButton ? "pv-stack-8" : ""]) }, [s("div", Tf, [e.useCombinedButton ? (E(), o(t, { key: 0 }, [u(da, {
|
|
@@ -12040,7 +12041,7 @@ var bf = {
|
|
|
12040
12041
|
icon: "chart-area",
|
|
12041
12042
|
disabled: e.readOnly,
|
|
12042
12043
|
onClick: r[0] ||= (t) => e.readOnly ? null : g.value = !g.value,
|
|
12043
|
-
onHandleToggleDropdown:
|
|
12044
|
+
onHandleToggleDropdown: fe
|
|
12044
12045
|
}, null, 8, ["open", "disabled"]), u(_s, {
|
|
12045
12046
|
class: y({ "pv-hide": !g.value }),
|
|
12046
12047
|
"css-custom-properties": {
|
|
@@ -12056,12 +12057,12 @@ var bf = {
|
|
|
12056
12057
|
"padding-top": "4px",
|
|
12057
12058
|
"padding-bottom": "12px"
|
|
12058
12059
|
}
|
|
12059
|
-
}, " Chart Configuration ")], -1), s("ul", Ef, [(E(!0), o(t, null, k(
|
|
12060
|
+
}, " Chart Configuration ")], -1), s("ul", Ef, [(E(!0), o(t, null, k(oe.value, (e) => (E(), o("li", {
|
|
12060
12061
|
id: `pv-chart-config-${e.value}`,
|
|
12061
12062
|
key: e.value,
|
|
12062
12063
|
"data-active": _.value === e.value ? !0 : null,
|
|
12063
|
-
onMouseenter: (t) => e.disabled ? null :
|
|
12064
|
-
onClick: (t) => e.disabled ? null :
|
|
12064
|
+
onMouseenter: (t) => e.disabled ? null : ue(e.value),
|
|
12065
|
+
onClick: (t) => e.disabled ? null : ue(e.value)
|
|
12065
12066
|
}, [u(I(Ti), {
|
|
12066
12067
|
disableInteractive: !0,
|
|
12067
12068
|
useTeleport: !0,
|
|
@@ -12090,7 +12091,7 @@ var bf = {
|
|
|
12090
12091
|
key: "0"
|
|
12091
12092
|
} : void 0]), 1024)], 40, Df))), 128))])]),
|
|
12092
12093
|
_: 1
|
|
12093
|
-
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(
|
|
12094
|
+
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(J), [de, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
12094
12095
|
class: "pv-flex pv-space-between",
|
|
12095
12096
|
style: x(e.chartFilter ? {} : { justifyContent: "flex-end" })
|
|
12096
12097
|
}, [e.chartFilter ? (E(), i(Ei, {
|
|
@@ -12098,7 +12099,7 @@ var bf = {
|
|
|
12098
12099
|
options: ne.value,
|
|
12099
12100
|
modelValue: I(te),
|
|
12100
12101
|
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null
|
|
12101
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", kf, [(E(!0), o(t, null, k(
|
|
12102
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", kf, [(E(!0), o(t, null, k(oe.value, (n) => (E(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (E(), i(Zs, {
|
|
12102
12103
|
key: 0,
|
|
12103
12104
|
label: n.label,
|
|
12104
12105
|
prefixLabel: n.prefixLabel,
|
|
@@ -12146,37 +12147,37 @@ var bf = {
|
|
|
12146
12147
|
},
|
|
12147
12148
|
isList: !0
|
|
12148
12149
|
}, {
|
|
12149
|
-
default: H(() => [
|
|
12150
|
+
default: H(() => [se.value ? (E(), o(t, { key: 0 }, [se.value.isSortableList ? (E(), o(t, { key: 0 }, [r[5] ||= s("p", {
|
|
12150
12151
|
class: "pv-text-tertiary pv-text-body-sm pv-stack-4",
|
|
12151
12152
|
style: {
|
|
12152
12153
|
"padding-left": "2px",
|
|
12153
12154
|
"padding-bottom": "6px"
|
|
12154
12155
|
}
|
|
12155
12156
|
}, " Viewing ", -1), u(lf, {
|
|
12156
|
-
modelValue:
|
|
12157
|
-
"onUpdate:modelValue": r[2] ||= (e) =>
|
|
12158
|
-
options:
|
|
12159
|
-
activeOptionLimit:
|
|
12157
|
+
modelValue: se.value.activeOptions.value,
|
|
12158
|
+
"onUpdate:modelValue": r[2] ||= (e) => se.value.activeOptions.value = e,
|
|
12159
|
+
options: se.value.availableOptions || [],
|
|
12160
|
+
activeOptionLimit: se.value.activeOptionLimit,
|
|
12160
12161
|
placeholderText: "Add to X Axis"
|
|
12161
12162
|
}, null, 8, [
|
|
12162
12163
|
"modelValue",
|
|
12163
12164
|
"options",
|
|
12164
12165
|
"activeOptionLimit"
|
|
12165
|
-
])], 64)) : (E(), o("ul", Af, [(E(!0), o(t, null, k(
|
|
12166
|
+
])], 64)) : (E(), o("ul", Af, [(E(!0), o(t, null, k(se.value.availableOptions, (e) => (E(), o("li", {
|
|
12166
12167
|
key: e.id,
|
|
12167
|
-
"data-active":
|
|
12168
|
+
"data-active": ce(e)
|
|
12168
12169
|
}, [u(Xa, {
|
|
12169
12170
|
id: e.id,
|
|
12170
|
-
config:
|
|
12171
|
+
config: le(e),
|
|
12171
12172
|
text: e.text,
|
|
12172
12173
|
icon: e.icon,
|
|
12173
12174
|
context: e.context,
|
|
12174
12175
|
disabled: e.disabled,
|
|
12175
|
-
selectedIds:
|
|
12176
|
+
selectedIds: se.value.isMultiSelect ? [...I(R)] : [],
|
|
12176
12177
|
"onUpdate:selectedIds": r[3] ||= (e) => {
|
|
12177
|
-
|
|
12178
|
+
se.value?.updateSelectedOptions?.([...se.value?.availableOptions.filter((t) => e.includes(t.id))]);
|
|
12178
12179
|
},
|
|
12179
|
-
onHandleSelected: (t) =>
|
|
12180
|
+
onHandleSelected: (t) => se.value.updateSelectedOption?.(e.id),
|
|
12180
12181
|
"class-list": ["pv-chart-option pv-flex"]
|
|
12181
12182
|
}, null, 8, [
|
|
12182
12183
|
"id",
|
|
@@ -12425,7 +12426,7 @@ var Pf = { style: {
|
|
|
12425
12426
|
let t = k.value.find((t) => t.field === e);
|
|
12426
12427
|
return !!(t && uf(t));
|
|
12427
12428
|
}), I = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", L = r(() => {
|
|
12428
|
-
let e =
|
|
12429
|
+
let e = he.value;
|
|
12429
12430
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
12430
12431
|
label: "Count",
|
|
12431
12432
|
value: e.yAxis.defaultValue
|
|
@@ -12479,18 +12480,18 @@ var Pf = { style: {
|
|
|
12479
12480
|
p.value = e.api, U.value || p.value?.setRowGroupColumns([]), Ve(e.api), d("grid-ready", e);
|
|
12480
12481
|
}, K = (e) => {
|
|
12481
12482
|
d("first-data-rendered", e);
|
|
12482
|
-
},
|
|
12483
|
+
}, oe = (e) => {
|
|
12483
12484
|
let t = j.value, n = e.api.getRowGroupColumns().map((e) => e.getColId());
|
|
12484
12485
|
if (U.value && JSON.stringify(t) !== JSON.stringify(n)) {
|
|
12485
|
-
let t =
|
|
12486
|
-
if (n.length >
|
|
12487
|
-
let t = n.slice(0,
|
|
12486
|
+
let t = he.value;
|
|
12487
|
+
if (n.length > ge.value) {
|
|
12488
|
+
let t = n.slice(0, ge.value);
|
|
12488
12489
|
j.value = t, e.api.setRowGroupColumns(t);
|
|
12489
12490
|
} else j.value = n;
|
|
12490
|
-
t.yAxis.defaultValue && (
|
|
12491
|
+
t.yAxis.defaultValue && (Y.value = t.yAxis.defaultValue);
|
|
12491
12492
|
}
|
|
12492
12493
|
d("column-row-group-changed", e);
|
|
12493
|
-
},
|
|
12494
|
+
}, se = async (e) => {
|
|
12494
12495
|
Ve(e.api), ne.value && d("filter-changed", e);
|
|
12495
12496
|
};
|
|
12496
12497
|
V(() => j.value, () => {
|
|
@@ -12504,18 +12505,18 @@ var Pf = { style: {
|
|
|
12504
12505
|
p?.value?.setRowGroupColumns([]);
|
|
12505
12506
|
});
|
|
12506
12507
|
if (!l.allFieldsAreFocusable) {
|
|
12507
|
-
let e =
|
|
12508
|
+
let e = he.value.supportsFocusView && N.value || null;
|
|
12508
12509
|
B.setFocusType(e);
|
|
12509
12510
|
}
|
|
12510
12511
|
p.value && Ve(p.value);
|
|
12511
12512
|
});
|
|
12512
|
-
function
|
|
12513
|
+
function q(e, t, n = !0) {
|
|
12513
12514
|
return (r) => {
|
|
12514
|
-
if (r.data =
|
|
12515
|
-
let i = "", a =
|
|
12515
|
+
if (r.data = ye.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
12516
|
+
let i = "", a = le(e);
|
|
12516
12517
|
if (l.truncateLabelValues && n && a && jo(a) && !isNaN(Number(r.value))) {
|
|
12517
12518
|
if (Fe.value) {
|
|
12518
|
-
let e = r.datum?.[N.value], t =
|
|
12519
|
+
let e = r.datum?.[N.value], t = be.value?.find((t) => t[N.value] === e)?.[`${Y.value}_sort_total`] || Infinity;
|
|
12519
12520
|
if (r.value / t < .05) return "";
|
|
12520
12521
|
}
|
|
12521
12522
|
let { newValue: e, newSuffix: t } = Eo(r.value, So.Percent === $(a).dataType, et.value);
|
|
@@ -12525,20 +12526,20 @@ var Pf = { style: {
|
|
|
12525
12526
|
return t && (o = t(r)), o + i;
|
|
12526
12527
|
};
|
|
12527
12528
|
}
|
|
12528
|
-
let
|
|
12529
|
+
let ce = (e, t = !1) => {
|
|
12529
12530
|
if (!e) return;
|
|
12530
|
-
let n =
|
|
12531
|
-
return n && typeof n.valueFormatter == "function" ?
|
|
12532
|
-
},
|
|
12533
|
-
let n =
|
|
12531
|
+
let n = le(e);
|
|
12532
|
+
return n && typeof n.valueFormatter == "function" ? q(e, n.valueFormatter, t) : q(e, null, t);
|
|
12533
|
+
}, le = (e) => !e || !p.value ? null : p.value?.getColumnDef(e), ue = (e, t) => {
|
|
12534
|
+
let n = le(N.value);
|
|
12534
12535
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
12535
|
-
},
|
|
12536
|
+
}, J = r(() => {
|
|
12536
12537
|
let e = [...j.value.length > 1 ? go : ho, _o];
|
|
12537
12538
|
return df(F.value) && e.push(vo), e.filter((e) => l.enabledChartTypes?.includes(e.id));
|
|
12538
|
-
}),
|
|
12539
|
-
let e =
|
|
12539
|
+
}), de = O(void 0), fe = O(void 0), pe = O(void 0), me = !1, he = r(() => yf(de.value?.id || "")), ge = r(() => Math.min(he.value.rowGroupLimit, l.rowGroupLimit)), _e = r(() => {
|
|
12540
|
+
let e = he.value.xAxis.filterColumns;
|
|
12540
12541
|
return e ? e(k.value) : k.value;
|
|
12541
|
-
}),
|
|
12542
|
+
}), ve = O([{
|
|
12542
12543
|
text: "Ascending",
|
|
12543
12544
|
id: "asc",
|
|
12544
12545
|
icon: "arrow-up-wide-narrow"
|
|
@@ -12546,50 +12547,50 @@ var Pf = { style: {
|
|
|
12546
12547
|
text: "Descending",
|
|
12547
12548
|
id: "desc",
|
|
12548
12549
|
icon: "arrow-down-narrow-wide"
|
|
12549
|
-
}]),
|
|
12550
|
-
D(Yc, p), D(sl,
|
|
12550
|
+
}]), ye = O([]), be = O([]), Y = O(l.yKey), xe = O(R.value[0]?.value), Se = r(() => l.crosslineOverlayGroups ?? []), X = O(new Set(Se.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), Ce = r(() => Se.value.filter((e) => X.value.has(e.id)).flatMap((e) => e.overlays)), we = O(null), Te = O(ve.value.find((e) => e.id === l.initialSort || "")), Z = O("");
|
|
12551
|
+
D(Yc, p), D(sl, Z), D($c, _e), D(cl, j), D(ll, J), D(ul, ve), D(dl, de), D(fl, Te), D(pl, Y), D(ml, L), D(hl, xe), D(gl, R), D(vl, X), D(yl, Se);
|
|
12551
12552
|
let Ee = (e) => {
|
|
12552
|
-
|
|
12553
|
+
de.value = J.value.find((t) => t.id === e) ?? J.value[0];
|
|
12553
12554
|
}, De = (e) => {
|
|
12554
12555
|
let t = j.value.length, n = (e) => {
|
|
12555
12556
|
let n = yf(e.id);
|
|
12556
12557
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12557
|
-
}, r =
|
|
12558
|
-
return r && n(r) ? r.id :
|
|
12558
|
+
}, r = J.value.find((t) => t.id === e);
|
|
12559
|
+
return r && n(r) ? r.id : J.value.find(n)?.id ?? J.value[0]?.id;
|
|
12559
12560
|
};
|
|
12560
|
-
V(() =>
|
|
12561
|
-
let e = Ie.value, t = e !==
|
|
12562
|
-
if (
|
|
12563
|
-
let a = De((e ?
|
|
12561
|
+
V(() => J.value, () => {
|
|
12562
|
+
let e = Ie.value, t = e !== me, n = yf(de.value?.id || ""), r = J.value.some((e) => e.id === de.value?.id), i = j.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12563
|
+
if (me = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
12564
|
+
let a = De((e ? pe?.value : fe?.value) ?? l.chartType);
|
|
12564
12565
|
a && Ee(a);
|
|
12565
12566
|
}), V(() => l.chartType, (e) => Ee(e)), V(() => l.yKey, (e) => {
|
|
12566
|
-
e !==
|
|
12567
|
-
}), V(
|
|
12567
|
+
e !== Y.value && (Y.value = e);
|
|
12568
|
+
}), V(Z, (e) => {
|
|
12568
12569
|
if (l.chartFilter && p.value) {
|
|
12569
12570
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
12570
12571
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
12571
12572
|
let r = $l({
|
|
12572
12573
|
filterType: "set",
|
|
12573
12574
|
values: n
|
|
12574
|
-
},
|
|
12575
|
+
}, le(t));
|
|
12575
12576
|
p.value.setColumnFilterModel(t, r).then(() => {
|
|
12576
12577
|
p.value?.onFilterChanged();
|
|
12577
12578
|
});
|
|
12578
12579
|
}
|
|
12579
12580
|
});
|
|
12580
12581
|
let Oe = r(() => {
|
|
12581
|
-
let e = L.value.find((e) => e.value ===
|
|
12582
|
+
let e = L.value.find((e) => e.value === Y.value);
|
|
12582
12583
|
return e ? e.label : "";
|
|
12583
|
-
}), ke = r(() => R.value.find((e) => e.value ===
|
|
12584
|
-
let e = R.value.find((e) => e.value ===
|
|
12584
|
+
}), ke = r(() => R.value.find((e) => e.value === xe.value)), Ae = r(() => {
|
|
12585
|
+
let e = R.value.find((e) => e.value === xe.value);
|
|
12585
12586
|
return e ? e.label : "";
|
|
12586
|
-
}), je = r(() =>
|
|
12587
|
-
let e = Fe.value, t =
|
|
12588
|
-
if (Me.value)
|
|
12587
|
+
}), je = r(() => he.value.isHorizontal === !0), Me = r(() => j.value.length > 1), Ne = r(() => !de.value || L.value.length === 0 ? [] : he.value.seriesFamily === "pie" ? Re.value : Le.value), Pe = r(() => l.showSeriesLabels), Fe = r(() => de.value?.id.includes("stacked")), Ie = r(() => j.value.length > 1), Le = r(() => {
|
|
12588
|
+
let e = Fe.value, t = he.value.agChartType, n = [], r = ce(Y.value, !0), i = ce(we.value?.fieldName, !0);
|
|
12589
|
+
if (Me.value) we.value?.fieldValues.forEach((a) => {
|
|
12589
12590
|
let o = {
|
|
12590
12591
|
type: t,
|
|
12591
12592
|
xKey: N.value,
|
|
12592
|
-
yKey: Ho(
|
|
12593
|
+
yKey: Ho(Y.value, a),
|
|
12593
12594
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
12594
12595
|
stacked: e,
|
|
12595
12596
|
label: {
|
|
@@ -12608,7 +12609,7 @@ var Pf = { style: {
|
|
|
12608
12609
|
let e = {
|
|
12609
12610
|
type: t,
|
|
12610
12611
|
xKey: N.value,
|
|
12611
|
-
yKey:
|
|
12612
|
+
yKey: Y.value,
|
|
12612
12613
|
yName: Oe.value,
|
|
12613
12614
|
label: {
|
|
12614
12615
|
enabled: Pe.value,
|
|
@@ -12633,19 +12634,19 @@ var Pf = { style: {
|
|
|
12633
12634
|
if (n = n.map((e) => ({
|
|
12634
12635
|
...e,
|
|
12635
12636
|
...a
|
|
12636
|
-
})),
|
|
12637
|
+
})), he.value.yAxis.defaultValue === "groupedRecordCount" && (n = n.map((e) => ({
|
|
12637
12638
|
...e,
|
|
12638
12639
|
tooltip: { renderer: (e) => {
|
|
12639
12640
|
let t = String(e.datum[e.xKey] ?? ""), n = e.datum.bucketMin, r = e.datum.bucketMax;
|
|
12640
|
-
return typeof n == "number" && typeof r == "number" && (t =
|
|
12641
|
+
return typeof n == "number" && typeof r == "number" && (t = ue(n, r)), {
|
|
12641
12642
|
title: t,
|
|
12642
12643
|
content: `Count: ${e.datum[e.yKey]}`
|
|
12643
12644
|
};
|
|
12644
12645
|
} }
|
|
12645
|
-
}))),
|
|
12646
|
+
}))), xe.value) {
|
|
12646
12647
|
let t;
|
|
12647
|
-
t = e ? `${
|
|
12648
|
-
let r =
|
|
12648
|
+
t = e ? `${xe.value}_sort_total` : xe.value;
|
|
12649
|
+
let r = le(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Nf(N.value, r, t, Ae.value, je.value), a = {
|
|
12649
12650
|
type: "scatter",
|
|
12650
12651
|
id: "metric-overlay",
|
|
12651
12652
|
data: Qe.value,
|
|
@@ -12664,7 +12665,7 @@ var Pf = { style: {
|
|
|
12664
12665
|
}
|
|
12665
12666
|
n = [...n, a];
|
|
12666
12667
|
}
|
|
12667
|
-
if (
|
|
12668
|
+
if (de.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number" && Ce.value.length > 0 && Q.value) {
|
|
12668
12669
|
let e = Q.value.length, t = Number.isFinite(et.value) ? et.value : 0, r = {
|
|
12669
12670
|
type: "scatter",
|
|
12670
12671
|
xKey: "__dummy_x__",
|
|
@@ -12686,13 +12687,13 @@ var Pf = { style: {
|
|
|
12686
12687
|
data: Ce.value.flatMap((e) => {
|
|
12687
12688
|
let t = pt(e.value, Q.value || []);
|
|
12688
12689
|
if (t === null) return [];
|
|
12689
|
-
let n = Number.isFinite(et.value) ? et.value : 0, r =
|
|
12690
|
+
let n = Number.isFinite(et.value) ? et.value : 0, r = ce(j.value?.[0]), i = typeof r == "function" ? r({ value: e.value }) : e.value;
|
|
12690
12691
|
return Array.from({ length: 30 }, (r, a) => ({
|
|
12691
12692
|
value: i,
|
|
12692
12693
|
__dummy_x__: t,
|
|
12693
12694
|
__dummy_y__: n / 29 * a,
|
|
12694
12695
|
__dummy_overlay_label__: e.label,
|
|
12695
|
-
[
|
|
12696
|
+
[Y.value]: n
|
|
12696
12697
|
}));
|
|
12697
12698
|
}),
|
|
12698
12699
|
size: 15,
|
|
@@ -12722,38 +12723,38 @@ var Pf = { style: {
|
|
|
12722
12723
|
}), Re = r(() => L.value.length === 0 ? [] : [{
|
|
12723
12724
|
type: "pie",
|
|
12724
12725
|
legendItemKey: N.value,
|
|
12725
|
-
angleKey:
|
|
12726
|
+
angleKey: Y.value
|
|
12726
12727
|
}]);
|
|
12727
|
-
V(
|
|
12728
|
+
V(Y, (e, t) => {
|
|
12728
12729
|
d("chart-state-changed", {
|
|
12729
12730
|
api: p.value,
|
|
12730
12731
|
newState: { seriesField: e },
|
|
12731
12732
|
oldState: { seriesField: t }
|
|
12732
12733
|
});
|
|
12733
|
-
}), V(
|
|
12734
|
+
}), V(xe, (e, t) => {
|
|
12734
12735
|
d("chart-state-changed", {
|
|
12735
12736
|
api: p.value,
|
|
12736
12737
|
newState: { secondarySeriesField: e },
|
|
12737
12738
|
oldState: { secondarySeriesField: t }
|
|
12738
12739
|
});
|
|
12739
|
-
}), V(
|
|
12740
|
-
e?.id && yf(e.id).storeBeforeChange && (Ie.value ?
|
|
12740
|
+
}), V(de, (e, t) => {
|
|
12741
|
+
e?.id && yf(e.id).storeBeforeChange && (Ie.value ? pe.value = e.id : fe.value = e.id);
|
|
12741
12742
|
let n = yf(e?.id || ""), r = yf(t?.id || ""), i = (n.xAxis.filterColumns === r.xAxis.filterColumns ? j.value : ff(j.value, k.value, n.xAxis.filterColumns)).slice(0, Math.min(n.rowGroupLimit, l.rowGroupLimit));
|
|
12742
|
-
tt(i, j.value) || (j.value = i), n.yAxis.defaultValue ?
|
|
12743
|
-
l.yKey ?
|
|
12743
|
+
tt(i, j.value) || (j.value = i), n.yAxis.defaultValue ? Y.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
12744
|
+
l.yKey ? Y.value = l.yKey : L.value.length > 0 && (Y.value = L.value[0].value);
|
|
12744
12745
|
}), d("chart-state-changed", {
|
|
12745
12746
|
api: p.value,
|
|
12746
12747
|
newState: { chartType: e?.id },
|
|
12747
12748
|
oldState: { chartType: t?.id }
|
|
12748
12749
|
});
|
|
12749
|
-
}), V(
|
|
12750
|
+
}), V(_e, (e) => {
|
|
12750
12751
|
if (e.length === 1 && j.value.length === 0) {
|
|
12751
12752
|
let t = e[0].field;
|
|
12752
12753
|
t && (j.value = [t]);
|
|
12753
12754
|
}
|
|
12754
12755
|
}), V(L, (e) => {
|
|
12755
|
-
e.length === 1 && !
|
|
12756
|
-
}), V(
|
|
12756
|
+
e.length === 1 && !Y.value && (Y.value = e[0].value);
|
|
12757
|
+
}), V(Te, (e, t) => {
|
|
12757
12758
|
d("chart-state-changed", {
|
|
12758
12759
|
api: p.value,
|
|
12759
12760
|
newState: { chartSort: e?.id },
|
|
@@ -12783,7 +12784,7 @@ var Pf = { style: {
|
|
|
12783
12784
|
}
|
|
12784
12785
|
}, { deep: !0 });
|
|
12785
12786
|
let ze = () => {
|
|
12786
|
-
|
|
12787
|
+
ye.value = [], be.value = [], we.value = null;
|
|
12787
12788
|
}, Be = (e, t) => {
|
|
12788
12789
|
if (!e || e.length === 0) {
|
|
12789
12790
|
ze();
|
|
@@ -12791,12 +12792,12 @@ var Pf = { style: {
|
|
|
12791
12792
|
}
|
|
12792
12793
|
if (t) {
|
|
12793
12794
|
let { stackedData: n, uniqueFieldValues: r } = Wo(e, N.value, t, He.value, ee.value);
|
|
12794
|
-
|
|
12795
|
+
be.value = n, we.value = {
|
|
12795
12796
|
fieldName: t,
|
|
12796
12797
|
fieldValues: r
|
|
12797
12798
|
};
|
|
12798
|
-
} else
|
|
12799
|
-
|
|
12799
|
+
} else be.value = [], we.value = null;
|
|
12800
|
+
ye.value = e;
|
|
12800
12801
|
}, Ve = (e) => {
|
|
12801
12802
|
let t = ++T.value, n = j.value.length;
|
|
12802
12803
|
if (ze(), C.value = !1, n === 0 || L.value.length === 0 || l.requireFiltersToShowData && z.filterModelEmpty.value) return;
|
|
@@ -12807,7 +12808,7 @@ var Pf = { style: {
|
|
|
12807
12808
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
12808
12809
|
}
|
|
12809
12810
|
e ||= {};
|
|
12810
|
-
let r = Io(Lo(j.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() ===
|
|
12811
|
+
let r = Io(Lo(j.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() === Y.value || i.has(e.getColId())), o = {
|
|
12811
12812
|
rowGroupCols: r || [],
|
|
12812
12813
|
valueCols: Lo(a || []),
|
|
12813
12814
|
filterModel: e
|
|
@@ -12830,13 +12831,13 @@ var Pf = { style: {
|
|
|
12830
12831
|
let t = Ue(e);
|
|
12831
12832
|
r?.push(t);
|
|
12832
12833
|
}
|
|
12833
|
-
}),
|
|
12834
|
+
}), ye.value = r, j.value.length > 1 && i && i.length > 0) {
|
|
12834
12835
|
let e = j.value[1] || "";
|
|
12835
|
-
|
|
12836
|
+
be.value = i, we.value = {
|
|
12836
12837
|
fieldName: e,
|
|
12837
12838
|
fieldValues: Array.from(a)
|
|
12838
12839
|
};
|
|
12839
|
-
} else
|
|
12840
|
+
} else be.value = [], we.value = null;
|
|
12840
12841
|
}, He = r(() => {
|
|
12841
12842
|
let e = L.value, t = R.value;
|
|
12842
12843
|
return [...new Map([...t, ...e].map((e) => [e.value, e])).values()];
|
|
@@ -12862,9 +12863,9 @@ var Pf = { style: {
|
|
|
12862
12863
|
fieldValues: n
|
|
12863
12864
|
};
|
|
12864
12865
|
}, Q = r(() => {
|
|
12865
|
-
let e = Me.value ?
|
|
12866
|
-
if (
|
|
12867
|
-
let n =
|
|
12866
|
+
let e = Me.value ? be.value : ye.value, t = null;
|
|
12867
|
+
if (Te.value && (t = Me.value ? `${Y.value}${xo}` : Y.value), t && e && Te.value) {
|
|
12868
|
+
let n = Te.value?.id.includes("desc") ? -1 : 1;
|
|
12868
12869
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
12869
12870
|
}
|
|
12870
12871
|
if (e && e.length === 1 && (e = [
|
|
@@ -12880,7 +12881,7 @@ var Pf = { style: {
|
|
|
12880
12881
|
];
|
|
12881
12882
|
}
|
|
12882
12883
|
return e;
|
|
12883
|
-
}), Ge = new Set(["", " "]), Ke = O(void 0), qe = r(() =>
|
|
12884
|
+
}), Ge = new Set(["", " "]), Ke = O(void 0), qe = r(() => de.value?.id === "map" && F.value && j.value.length === 1), Je = r(() => Y.value || L.value[0]?.value || "value"), Ye = r(() => {
|
|
12884
12885
|
let e = N.value, t = Je.value;
|
|
12885
12886
|
return !e || !t ? [] : (Q.value ?? []).filter((t) => {
|
|
12886
12887
|
let n = String(t?.[e] ?? "");
|
|
@@ -12907,17 +12908,17 @@ var Pf = { style: {
|
|
|
12907
12908
|
max: 0
|
|
12908
12909
|
};
|
|
12909
12910
|
}), Ze = r(() => {
|
|
12910
|
-
let e =
|
|
12911
|
+
let e = le(Je.value)?.valueFormatter;
|
|
12911
12912
|
return typeof e == "function" ? (t) => String(e({ value: t }) ?? t) : (e) => e.toLocaleString("en-US");
|
|
12912
12913
|
}), Qe = r(() => {
|
|
12913
12914
|
let e = (Q.value ?? []).filter((e) => {
|
|
12914
12915
|
let t = e?.[N.value];
|
|
12915
12916
|
return !Ge.has(String(t));
|
|
12916
|
-
}), t =
|
|
12917
|
-
if (!Me.value || !t || !
|
|
12918
|
-
let n =
|
|
12917
|
+
}), t = xe.value;
|
|
12918
|
+
if (!Me.value || !t || !we.value) return e;
|
|
12919
|
+
let n = le(t);
|
|
12919
12920
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
12920
|
-
let r = `${t}${xo}`, i =
|
|
12921
|
+
let r = `${t}${xo}`, i = we.value.fieldValues;
|
|
12921
12922
|
return e.map((e) => {
|
|
12922
12923
|
let n = e[r];
|
|
12923
12924
|
if (typeof n != "number") return e;
|
|
@@ -12928,11 +12929,11 @@ var Pf = { style: {
|
|
|
12928
12929
|
[r]: a > 0 ? n / a : null
|
|
12929
12930
|
};
|
|
12930
12931
|
});
|
|
12931
|
-
}), $e = r(() => Q.value?.length || 0), et = r(() => Go(Me.value ?
|
|
12932
|
+
}), $e = r(() => Q.value?.length || 0), et = r(() => Go(Me.value ? be.value : Q.value, Y.value, Me.value)), nt = r(() => xe.value ? Go(Me.value ? be.value : Q.value, xe.value, Me.value) : -Infinity), rt = r(() => Ko(Me.value ? be.value : Q.value, Y.value, Me.value)), it = r(() => xe.value ? Ko(Me.value ? be.value : Q.value, xe.value, Me.value) : Infinity), at = r(() => we.value?.fieldValues?.length || 0), ot = r(() => {
|
|
12932
12933
|
let e = .25 * Math.exp(-.12 * $e.value);
|
|
12933
12934
|
return Math.min(Math.max(e, .05), .75);
|
|
12934
|
-
}), st = r(() => at.value > 5 ? .5 : 1), ct = r(() => at.value > 5 ? .25 : .1), lt = r(() => !Q.value || Q.value?.length === 0 ? !0 : et.value === -Infinity || Me.value === !0 && et.value === 0), ut = r(() => !!(l.enableFocusView && re.value && ie.value.length === 0 && l.percentOfFocusViewYKey &&
|
|
12935
|
-
let e =
|
|
12935
|
+
}), st = r(() => at.value > 5 ? .5 : 1), ct = r(() => at.value > 5 ? .25 : .1), lt = r(() => !Q.value || Q.value?.length === 0 ? !0 : et.value === -Infinity || Me.value === !0 && et.value === 0), ut = r(() => !!(l.enableFocusView && re.value && ie.value.length === 0 && l.percentOfFocusViewYKey && Y.value && Y.value === l.percentOfFocusViewYKey)), dt = r(() => {
|
|
12936
|
+
let e = le(re.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
12936
12937
|
return Vo({
|
|
12937
12938
|
currentRowGroupColumnsLength: j.value.length,
|
|
12938
12939
|
shouldShowFocusOverlayText: ut.value || l.focusRequired && ie.value.length === 0,
|
|
@@ -12959,11 +12960,11 @@ var Pf = { style: {
|
|
|
12959
12960
|
preventHidingAll: !0,
|
|
12960
12961
|
enabled: j.value.length > 1
|
|
12961
12962
|
};
|
|
12962
|
-
let t = Me.value ?
|
|
12963
|
-
if (!
|
|
12964
|
-
let e =
|
|
12965
|
-
return Fe.value ? [`${e}${xo}`] : Me.value ?
|
|
12966
|
-
})(), r =
|
|
12963
|
+
let t = Me.value ? we.value?.fieldValues.map((e) => Ho(Y.value, e)) || [] : Y.value ? [Y.value] : [], n = (() => {
|
|
12964
|
+
if (!xe.value) return [];
|
|
12965
|
+
let e = xe.value;
|
|
12966
|
+
return Fe.value ? [`${e}${xo}`] : Me.value ? we.value?.fieldValues.map((t) => Ho(e, String(t))) || [] : [e];
|
|
12967
|
+
})(), r = he.value.xAxis.hideLabel === !0, i = de.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number", a = [];
|
|
12967
12968
|
if (a.push({
|
|
12968
12969
|
type: "category",
|
|
12969
12970
|
keys: [N.value],
|
|
@@ -12984,7 +12985,7 @@ var Pf = { style: {
|
|
|
12984
12985
|
wrapping: "never",
|
|
12985
12986
|
formatter: r ? () => "" : (e) => {
|
|
12986
12987
|
if (e.value === "--SEPARATOR--") return "";
|
|
12987
|
-
let t = e.value, n =
|
|
12988
|
+
let t = e.value, n = ce(N.value);
|
|
12988
12989
|
typeof n == "function" && (t = n(e));
|
|
12989
12990
|
let r = l.enableFocusView && ie.value.includes(e.value) ? ` (${l.focusText})` : "";
|
|
12990
12991
|
if (typeof t == "string" && t.length + r.length > 50 && !e.context?.tooltip) {
|
|
@@ -13025,7 +13026,7 @@ var Pf = { style: {
|
|
|
13025
13026
|
}).filter((e) => e !== null)
|
|
13026
13027
|
});
|
|
13027
13028
|
}
|
|
13028
|
-
let o = !!
|
|
13029
|
+
let o = !!xe.value, s = o ? ke.value?.secondaryAxisMax : void 0, c = o && Number.isFinite(rt.value) && rt.value < 0, u = o && Number.isFinite(it.value) && it.value < 0, d = c || u, f = o ? Bo(et.value, 5) : 0, p = o ? s ?? Bo(nt.value, 5) : 0, m = o && !d && f > 0 && p > 0;
|
|
13029
13030
|
if (a.push({
|
|
13030
13031
|
type: "number",
|
|
13031
13032
|
keys: t,
|
|
@@ -13036,7 +13037,7 @@ var Pf = { style: {
|
|
|
13036
13037
|
nice: !1,
|
|
13037
13038
|
interval: { step: f / 5 }
|
|
13038
13039
|
} : {},
|
|
13039
|
-
label: { formatter:
|
|
13040
|
+
label: { formatter: ce(Y.value) },
|
|
13040
13041
|
title: {
|
|
13041
13042
|
enabled: !0,
|
|
13042
13043
|
text: Oe.value
|
|
@@ -13137,7 +13138,7 @@ var Pf = { style: {
|
|
|
13137
13138
|
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(Mf, {
|
|
13138
13139
|
enablePanel: Q.value != null && Q.value.length > 0,
|
|
13139
13140
|
chartFilter: e.chartFilter,
|
|
13140
|
-
rowGroupLimit:
|
|
13141
|
+
rowGroupLimit: ge.value,
|
|
13141
13142
|
"use-combined-button": l.enableCombinedChartConfigPanel,
|
|
13142
13143
|
"chart-config-options": l.chartConfigPanelOptions,
|
|
13143
13144
|
"read-only": l.chartConfigPanelReadOnly
|
|
@@ -13188,9 +13189,9 @@ var Pf = { style: {
|
|
|
13188
13189
|
}, n.$props, {
|
|
13189
13190
|
filterTeleportLocation: x.value ? `#${b}` : void 0,
|
|
13190
13191
|
pagination: e.pagination || !U.value,
|
|
13191
|
-
onColumnRowGroupChanged:
|
|
13192
|
+
onColumnRowGroupChanged: oe,
|
|
13192
13193
|
onGridReady: ae,
|
|
13193
|
-
onFilterChanged:
|
|
13194
|
+
onFilterChanged: se,
|
|
13194
13195
|
onSortChanged: r[4] ||= (e) => d("sort-changed", e),
|
|
13195
13196
|
onFilterOpened: r[5] ||= (e) => d("filter-opened", e),
|
|
13196
13197
|
onFirstDataRendered: K,
|