@turquoisehealth/pit-viper 2.202.2-dev.3 → 2.203.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_site/assets/css/pit-viper-a11y.css +12 -2
- package/_site/assets/css/pit-viper-consumer.css +7 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +7 -0
- package/_site/assets/css/pit-viper-v2.css +159 -2
- package/_site/assets/css/pit-viper.css +7 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-sidebar-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvMenu/symbols.d.ts +2 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +4 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +872 -860
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/symbols.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMultiSelectButton/types.d.ts +4 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +770 -760
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +1003 -1002
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +498 -489
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +898 -898
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1033 -1032
- package/pv-components/dist/web/components/pv-sidebar/pv-sidebar.js +4 -1
- package/pv-components/dist/web/pv-components.iife.js +13 -13
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.pv-scatter-overlay[data-v-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-1f71e32f]:hover{color:#16696d}.suggested-title-label[data-v-1f71e32f]: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-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}
|
|
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";
|
|
@@ -5202,13 +5202,13 @@ var Sa = {
|
|
|
5202
5202
|
"always-show"
|
|
5203
5203
|
]));
|
|
5204
5204
|
}
|
|
5205
|
-
}), Pa = Symbol("SelectedItemsKey"), Fa = Symbol("EnableCascadeSelectionKey"), Ia = Symbol("OriginalOptionsMapKey"), La = Symbol("CascadeSelectedParentIdsKey"), Ra = Symbol("CascadeDeselectedChildIdsKey"), za = Symbol("ParentSelectsAllChildrenKey"), Ba = Symbol("EnableChildExpansionKey"), Va = ["data-testid"],
|
|
5205
|
+
}), Pa = Symbol("SelectedItemsKey"), Fa = Symbol("EnableCascadeSelectionKey"), Ia = Symbol("OriginalOptionsMapKey"), La = Symbol("CascadeSelectedParentIdsKey"), Ra = Symbol("CascadeDeselectedChildIdsKey"), za = Symbol("ParentSelectsAllChildrenKey"), Ba = Symbol("EnableChildExpansionKey"), Va = Symbol("ReadOnlyKey"), Ha = Symbol("HideUnselectedInReadOnlyKey"), Ua = ["data-testid"], Wa = [
|
|
5206
5206
|
"hidden",
|
|
5207
5207
|
"type",
|
|
5208
5208
|
"checked",
|
|
5209
5209
|
"indeterminate",
|
|
5210
5210
|
"disabled"
|
|
5211
|
-
],
|
|
5211
|
+
], Ga = ["aria-label", "aria-expanded"], Ka = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
5212
5212
|
__name: "PvMenuItemVariant",
|
|
5213
5213
|
props: {
|
|
5214
5214
|
selected: { type: Boolean },
|
|
@@ -5305,7 +5305,7 @@ var Sa = {
|
|
|
5305
5305
|
class: y(j.value),
|
|
5306
5306
|
disabled: e.disabled,
|
|
5307
5307
|
onChange: F
|
|
5308
|
-
}, null, 42,
|
|
5308
|
+
}, null, 42, Wa),
|
|
5309
5309
|
e.menuOptionConfig?.renderer ? (E(), i(M(e.menuOptionConfig?.renderer), _({ key: 0 }, T.value, { selected: b.value }), null, 16, ["selected"])) : (E(), i(Ea, _({ key: 1 }, T.value, {
|
|
5310
5310
|
menuOptionConfig: e.menuOptionConfig,
|
|
5311
5311
|
queryText: e.queryText,
|
|
@@ -5343,10 +5343,10 @@ var Sa = {
|
|
|
5343
5343
|
}, [u(En, {
|
|
5344
5344
|
name: e.chevronIcon ?? "chevron-right",
|
|
5345
5345
|
size: 12
|
|
5346
|
-
}, null, 8, ["name"])], 8,
|
|
5347
|
-
], 14,
|
|
5346
|
+
}, null, 8, ["name"])], 8, Ga)) : a("", !0)
|
|
5347
|
+
], 14, Ua));
|
|
5348
5348
|
}
|
|
5349
|
-
}), [["__scopeId", "data-v-a93608b0"]]),
|
|
5349
|
+
}), [["__scopeId", "data-v-a93608b0"]]), qa = ["data-active"], Ja = { key: 0 }, Ya = 4, Xa = /* @__PURE__ */ d({
|
|
5350
5350
|
inheritAttrs: !1,
|
|
5351
5351
|
__name: "PvMenuItem",
|
|
5352
5352
|
props: /* @__PURE__ */ g({
|
|
@@ -5378,84 +5378,84 @@ var Sa = {
|
|
|
5378
5378
|
}),
|
|
5379
5379
|
emits: /* @__PURE__ */ g(["handle-selected", "see-more"], ["update:selectedIds"]),
|
|
5380
5380
|
setup(e, { emit: n }) {
|
|
5381
|
-
let i = e, s = m(Pa, void 0), c = R(e, "selectedIds"), l = m(Ba, O(!1)), d = m(za, O(!1)), f = m(La, void 0), p = m(Ra, void 0), h = O(i.defaultExpanded ?? !1),
|
|
5381
|
+
let i = e, s = m(Pa, void 0), c = R(e, "selectedIds"), l = m(Ba, O(!1)), d = m(za, O(!1)), f = m(La, void 0), p = m(Ra, void 0), h = m(Va, O(!1)), g = m(Ha, O(!1)), v = O(i.defaultExpanded ?? !1), b = O(!1), S = O(!1), C = O(i.children ?? []), w = O(/* @__PURE__ */ new Set());
|
|
5382
5382
|
V(() => i.children, (e) => {
|
|
5383
5383
|
if (!e) {
|
|
5384
|
-
|
|
5384
|
+
C.value = [];
|
|
5385
5385
|
return;
|
|
5386
5386
|
}
|
|
5387
|
-
let t =
|
|
5388
|
-
|
|
5387
|
+
let t = C.value.filter((e) => w.value.has(e.id)), n = new Set(e.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
5388
|
+
C.value = [...e, ...r], S.value = !1;
|
|
5389
5389
|
});
|
|
5390
|
-
let
|
|
5391
|
-
|
|
5392
|
-
},
|
|
5390
|
+
let T = () => {
|
|
5391
|
+
v.value = !v.value;
|
|
5392
|
+
}, D = r(() => ({ paddingLeft: `${i.level * 12 + 12}px` })), A = r(() => {
|
|
5393
5393
|
let { level: e, config: t, itemClass: n, ...r } = i;
|
|
5394
5394
|
return r;
|
|
5395
|
-
}),
|
|
5395
|
+
}), M = r(() => ga({
|
|
5396
5396
|
...i,
|
|
5397
|
-
children:
|
|
5398
|
-
}) && i.level <
|
|
5399
|
-
if (
|
|
5397
|
+
children: C.value
|
|
5398
|
+
}) && i.level < Ya), N = r(() => M.value ? l.value ? v.value || h.value && z.value : !0 : !1), P = r(() => v.value ? "chevron-down" : "chevron-right"), F = (e) => s && Array.isArray(s.value) ? s.value.some((t) => t.id === e.id) : c.value.includes(e.id), L = (e) => e.some((e) => F(e) || !!e.children?.length && L(e.children)), ee = (e) => F(e) || f?.value?.has(e.id) ? !0 : !!e.children?.length && L(e.children), z = r(() => f?.value?.has(i.id) ? !0 : L(C.value)), B = n, te = r(() => S.value || i.totalChildCount == null ? !1 : i.totalChildCount > C.value.length), H = async () => {
|
|
5399
|
+
if (b.value) return;
|
|
5400
5400
|
if (!i.handleSeeMore) {
|
|
5401
|
-
|
|
5401
|
+
B("see-more", {
|
|
5402
5402
|
parentId: i.id,
|
|
5403
|
-
offset:
|
|
5403
|
+
offset: C.value.length
|
|
5404
5404
|
});
|
|
5405
5405
|
return;
|
|
5406
5406
|
}
|
|
5407
5407
|
let e = f?.value?.has(i.id) ?? !1;
|
|
5408
|
-
|
|
5408
|
+
b.value = !0;
|
|
5409
5409
|
try {
|
|
5410
5410
|
let t = await i.handleSeeMore({
|
|
5411
5411
|
parentId: i.id,
|
|
5412
|
-
offset:
|
|
5412
|
+
offset: C.value.length
|
|
5413
5413
|
});
|
|
5414
5414
|
if (Array.isArray(t) && t.length > 0) {
|
|
5415
|
-
let n = new Set(
|
|
5415
|
+
let n = new Set(C.value.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
|
|
5416
5416
|
if (r.length === 0) {
|
|
5417
|
-
|
|
5417
|
+
S.value = !0;
|
|
5418
5418
|
return;
|
|
5419
5419
|
}
|
|
5420
|
-
let a = new Set(
|
|
5420
|
+
let a = new Set(w.value);
|
|
5421
5421
|
for (let e of r) a.add(e.id);
|
|
5422
|
-
if (
|
|
5422
|
+
if (w.value = a, C.value = [...C.value, ...r], e && s?.value) {
|
|
5423
5423
|
let e = p?.value?.get(i.id), t = e ? r.filter((t) => !e.has(t.id)) : r;
|
|
5424
5424
|
if (t.length > 0) {
|
|
5425
5425
|
let e = new Set(s.value.map((e) => e.id)), n = t.filter((t) => !e.has(t.id));
|
|
5426
5426
|
n.length > 0 && (s.value = [...s.value, ...n]);
|
|
5427
5427
|
}
|
|
5428
5428
|
}
|
|
5429
|
-
} else Array.isArray(t) && (
|
|
5429
|
+
} else Array.isArray(t) && (S.value = !0);
|
|
5430
5430
|
} finally {
|
|
5431
|
-
|
|
5431
|
+
b.value = !1;
|
|
5432
5432
|
}
|
|
5433
|
-
},
|
|
5434
|
-
if (l.value &&
|
|
5435
|
-
|
|
5433
|
+
}, W = (e) => {
|
|
5434
|
+
if (l.value && M.value && e.option.id === i.id && !d.value) {
|
|
5435
|
+
T();
|
|
5436
5436
|
return;
|
|
5437
5437
|
}
|
|
5438
5438
|
if (!s) {
|
|
5439
5439
|
let t = c.value.indexOf(e.option.id);
|
|
5440
5440
|
t > -1 ? c.value = [...c.value.slice(0, t), ...c.value.slice(t + 1)] : c.value = [...c.value, e.option.id];
|
|
5441
5441
|
}
|
|
5442
|
-
|
|
5443
|
-
},
|
|
5444
|
-
|
|
5442
|
+
B("handle-selected", e);
|
|
5443
|
+
}, G = (e) => {
|
|
5444
|
+
B("handle-selected", e);
|
|
5445
5445
|
};
|
|
5446
5446
|
return (n, r) => {
|
|
5447
5447
|
let s = j("PvMenuItem", !0);
|
|
5448
|
-
return E(), o(t, null, [u(
|
|
5449
|
-
children:
|
|
5448
|
+
return E(), o(t, null, [u(Ka, _(A.value, {
|
|
5449
|
+
children: C.value,
|
|
5450
5450
|
menuOptionConfig: e.config,
|
|
5451
5451
|
queryText: e.queryText,
|
|
5452
5452
|
highlightSearchText: e.highlightSearchText,
|
|
5453
|
-
showChevron: I(l) &&
|
|
5454
|
-
chevronIcon:
|
|
5455
|
-
expanded:
|
|
5456
|
-
onHandleSelected:
|
|
5457
|
-
onToggleExpanded:
|
|
5458
|
-
selected:
|
|
5453
|
+
showChevron: I(l) && M.value,
|
|
5454
|
+
chevronIcon: P.value,
|
|
5455
|
+
expanded: v.value,
|
|
5456
|
+
onHandleSelected: W,
|
|
5457
|
+
onToggleExpanded: T,
|
|
5458
|
+
selected: F(i)
|
|
5459
5459
|
}), null, 16, [
|
|
5460
5460
|
"children",
|
|
5461
5461
|
"menuOptionConfig",
|
|
@@ -5465,13 +5465,13 @@ var Sa = {
|
|
|
5465
5465
|
"chevronIcon",
|
|
5466
5466
|
"expanded",
|
|
5467
5467
|
"selected"
|
|
5468
|
-
]),
|
|
5468
|
+
]), N.value ? (E(), o("ul", {
|
|
5469
5469
|
key: 0,
|
|
5470
5470
|
role: "list",
|
|
5471
|
-
style: x(
|
|
5472
|
-
}, [(E(!0), o(t, null, k(
|
|
5471
|
+
style: x(D.value)
|
|
5472
|
+
}, [(E(!0), o(t, null, k(C.value, (t) => U((E(), o("li", {
|
|
5473
5473
|
key: t.id,
|
|
5474
|
-
"data-active":
|
|
5474
|
+
"data-active": F(t) ? "true" : null,
|
|
5475
5475
|
class: y(e.itemClass)
|
|
5476
5476
|
}, [u(s, _({ ref_for: !0 }, t, {
|
|
5477
5477
|
disabled: i.disabled || t.disabled,
|
|
@@ -5481,8 +5481,8 @@ var Sa = {
|
|
|
5481
5481
|
queryText: e.queryText,
|
|
5482
5482
|
highlightSearchText: e.highlightSearchText,
|
|
5483
5483
|
level: e.level + 1,
|
|
5484
|
-
onHandleSelected:
|
|
5485
|
-
onSeeMore: r[1] ||= (e) =>
|
|
5484
|
+
onHandleSelected: G,
|
|
5485
|
+
onSeeMore: r[1] ||= (e) => B("see-more", e)
|
|
5486
5486
|
}), null, 16, [
|
|
5487
5487
|
"disabled",
|
|
5488
5488
|
"selectedIds",
|
|
@@ -5490,20 +5490,20 @@ var Sa = {
|
|
|
5490
5490
|
"queryText",
|
|
5491
5491
|
"highlightSearchText",
|
|
5492
5492
|
"level"
|
|
5493
|
-
])], 10,
|
|
5493
|
+
])], 10, qa)), [[ne, !I(g) || ee(t)]])), 128)), te.value && !I(h) ? (E(), o("li", Ja, [u(An, {
|
|
5494
5494
|
class: "pv-text-brand",
|
|
5495
5495
|
variant: "ghost",
|
|
5496
5496
|
label: "See more",
|
|
5497
|
-
loading:
|
|
5497
|
+
loading: b.value,
|
|
5498
5498
|
"data-testid": "pv-menu-item-see-more",
|
|
5499
|
-
onClick:
|
|
5499
|
+
onClick: H
|
|
5500
5500
|
}, null, 8, ["loading"])])) : a("", !0)], 4)) : a("", !0)], 64);
|
|
5501
5501
|
};
|
|
5502
5502
|
}
|
|
5503
|
-
}),
|
|
5503
|
+
}), Za = {
|
|
5504
5504
|
role: "list",
|
|
5505
5505
|
class: "pv-popover-list"
|
|
5506
|
-
},
|
|
5506
|
+
}, Qa = ["data-active", "data-testid"], $a = { key: 0 }, eo = /* @__PURE__ */ d({
|
|
5507
5507
|
__name: "PvMenu",
|
|
5508
5508
|
props: /* @__PURE__ */ g({
|
|
5509
5509
|
options: {},
|
|
@@ -5516,7 +5516,8 @@ var Sa = {
|
|
|
5516
5516
|
singleSelect: { type: Boolean },
|
|
5517
5517
|
enableCascadeSelection: { type: Boolean },
|
|
5518
5518
|
hasMoreOptions: { type: Boolean },
|
|
5519
|
-
readOnly: { type: Boolean }
|
|
5519
|
+
readOnly: { type: Boolean },
|
|
5520
|
+
hideUnselectedInReadOnly: { type: Boolean }
|
|
5520
5521
|
}, {
|
|
5521
5522
|
selectedItems: { default: () => [] },
|
|
5522
5523
|
selectedItemsModifiers: {}
|
|
@@ -5528,7 +5529,7 @@ var Sa = {
|
|
|
5528
5529
|
l.value = e;
|
|
5529
5530
|
}), V(l, (e) => {
|
|
5530
5531
|
e !== c.value && (c.value = e);
|
|
5531
|
-
}), D(Pa, l), D(Fa, r(() => !!i.enableCascadeSelection));
|
|
5532
|
+
}), D(Pa, l), D(Fa, r(() => !!i.enableCascadeSelection)), D(Va, r(() => !!i.readOnly)), D(Ha, r(() => !!i.readOnly && !!i.hideUnselectedInReadOnly));
|
|
5532
5533
|
let d = m(Ia, void 0), f = m(za, O(!1)), p = m(La, void 0), h = m(Ra, void 0), g = r(() => i.singleSelect || i.config?.variant === "radio"), v = (e) => {
|
|
5533
5534
|
if (i.readOnly) return;
|
|
5534
5535
|
let t = e.option, n;
|
|
@@ -5565,13 +5566,13 @@ var Sa = {
|
|
|
5565
5566
|
}, b = r(() => new Set(l.value.map((e) => e.id))), x = (e) => {
|
|
5566
5567
|
for (let t of e) if (b.value.has(t.id) || t.children?.length && x(t.children)) return !0;
|
|
5567
5568
|
return !1;
|
|
5568
|
-
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
5569
|
-
return (n, r) => (E(), o("ul",
|
|
5569
|
+
}, S = (e) => b.value.has(e.id) || i.enableCascadeSelection && p?.value?.has(e.id) || i.enableCascadeSelection && e.children?.length && x(e.children) ? !0 : null, C = r(() => !!i.readOnly && !!i.hideUnselectedInReadOnly), w = (e, t) => !!(!t || b.value.has(e.id) || p?.value?.has(e.id) || e.children?.length && x(e.children));
|
|
5570
|
+
return (n, r) => (E(), o("ul", Za, [(E(!0), o(t, null, k(e.options, (t) => U((E(), o("li", {
|
|
5570
5571
|
key: t.id,
|
|
5571
5572
|
"data-active": S(t),
|
|
5572
5573
|
"data-testid": e.itemTestId,
|
|
5573
5574
|
class: y(e.itemClass)
|
|
5574
|
-
}, [u(
|
|
5575
|
+
}, [u(Xa, _({ ref_for: !0 }, t, {
|
|
5575
5576
|
disabled: i.readOnly || t.disabled,
|
|
5576
5577
|
config: e.config,
|
|
5577
5578
|
itemClass: e.itemClass,
|
|
@@ -5583,7 +5584,7 @@ var Sa = {
|
|
|
5583
5584
|
"config",
|
|
5584
5585
|
"itemClass",
|
|
5585
5586
|
"queryText"
|
|
5586
|
-
])], 10,
|
|
5587
|
+
])], 10, Qa)), [[ne, w(t, e.isLoading || C.value)]])), 128)), e.hasMoreOptions && !C.value ? (E(), o("li", $a, [u(An, {
|
|
5587
5588
|
class: "pv-text-brand",
|
|
5588
5589
|
variant: "ghost",
|
|
5589
5590
|
label: "See more",
|
|
@@ -5593,10 +5594,10 @@ var Sa = {
|
|
|
5593
5594
|
onClick: r[1] ||= (e) => s("see-more", { parentId: void 0 })
|
|
5594
5595
|
}, null, 8, ["loading", "disabled"])])) : a("", !0)]));
|
|
5595
5596
|
}
|
|
5596
|
-
}),
|
|
5597
|
+
}), to = {
|
|
5597
5598
|
key: 0,
|
|
5598
5599
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
5599
|
-
},
|
|
5600
|
+
}, no = /* @__PURE__ */ d({
|
|
5600
5601
|
__name: "PvSelectButton",
|
|
5601
5602
|
props: /* @__PURE__ */ g({
|
|
5602
5603
|
defaultOpen: { type: Boolean },
|
|
@@ -5732,12 +5733,12 @@ var Sa = {
|
|
|
5732
5733
|
class: "pv-popover",
|
|
5733
5734
|
"data-test-id": "pv-popover",
|
|
5734
5735
|
style: x([e.popoverCssProperties, { position: "unset" }])
|
|
5735
|
-
}, [e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
5736
|
+
}, [e.disableSearchInput ? a("", !0) : (E(), o("div", to, [u(qi, {
|
|
5736
5737
|
"model-value": p.value,
|
|
5737
5738
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
5738
5739
|
class: "pv-stack-4",
|
|
5739
5740
|
placeholder: e.searchPlaceholder
|
|
5740
|
-
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(
|
|
5741
|
+
}, null, 8, ["model-value", "placeholder"])])), b.value.length > 0 ? (E(), i(eo, {
|
|
5741
5742
|
key: 1,
|
|
5742
5743
|
selectedItems: S.value,
|
|
5743
5744
|
"onUpdate:selectedItems": n[1] ||= (e) => S.value = e,
|
|
@@ -5755,7 +5756,7 @@ var Sa = {
|
|
|
5755
5756
|
_: 1
|
|
5756
5757
|
}, 16, ["modelValue"]));
|
|
5757
5758
|
}
|
|
5758
|
-
}),
|
|
5759
|
+
}), ro = /* @__PURE__ */ d({
|
|
5759
5760
|
__name: "MapRegionSelector",
|
|
5760
5761
|
props: /* @__PURE__ */ g({
|
|
5761
5762
|
topologyType: {},
|
|
@@ -5780,7 +5781,7 @@ var Sa = {
|
|
|
5780
5781
|
e === t.value || e?.id === t.value || (t.value = e?.id);
|
|
5781
5782
|
}), V(t, (e) => {
|
|
5782
5783
|
e === n.value || e === n.value?.id || (n.value = o.value.find((t) => t.id === e));
|
|
5783
|
-
}), (e, t) => (E(), i(
|
|
5784
|
+
}), (e, t) => (E(), i(no, {
|
|
5784
5785
|
style: { width: "125px" },
|
|
5785
5786
|
popoverCssProperties: { "max-width": "150px" },
|
|
5786
5787
|
disabled: o.value.length < 2,
|
|
@@ -5794,11 +5795,11 @@ var Sa = {
|
|
|
5794
5795
|
"options"
|
|
5795
5796
|
]));
|
|
5796
5797
|
}
|
|
5797
|
-
}),
|
|
5798
|
+
}), io = {
|
|
5798
5799
|
key: 0,
|
|
5799
5800
|
class: "pv-flex pv-space-between pv-stack-20",
|
|
5800
5801
|
style: { width: "100%" }
|
|
5801
|
-
},
|
|
5802
|
+
}, ao = /* @__PURE__ */ d({
|
|
5802
5803
|
__name: "PvMapChart",
|
|
5803
5804
|
props: /* @__PURE__ */ g({
|
|
5804
5805
|
seriesKey: {},
|
|
@@ -5875,7 +5876,7 @@ var Sa = {
|
|
|
5875
5876
|
overlays: { noData: { text: s.noDataMessage || "No data to display" } },
|
|
5876
5877
|
gradientLegend: { enabled: !1 }
|
|
5877
5878
|
}));
|
|
5878
|
-
return (n, r) => (E(), o(t, null, [e.displayRegionSelector || e.displayGradientLegend ? (E(), o("div",
|
|
5879
|
+
return (n, r) => (E(), o(t, null, [e.displayRegionSelector || e.displayGradientLegend ? (E(), o("div", io, [e.displayRegionSelector ? (E(), i(ro, {
|
|
5879
5880
|
key: 0,
|
|
5880
5881
|
modelValue: l.value,
|
|
5881
5882
|
"onUpdate:modelValue": r[0] ||= (e) => l.value = e,
|
|
@@ -5901,19 +5902,19 @@ var Sa = {
|
|
|
5901
5902
|
isLoading: e.isLoading
|
|
5902
5903
|
}, null, 8, ["options", "isLoading"])], 64));
|
|
5903
5904
|
}
|
|
5904
|
-
}),
|
|
5905
|
+
}), oo = { class: "pv-table pv-full-width" }, so = /* @__PURE__ */ d({
|
|
5905
5906
|
__name: "PvDataWidgetTable",
|
|
5906
5907
|
props: {
|
|
5907
5908
|
headers: {},
|
|
5908
5909
|
rows: {}
|
|
5909
5910
|
},
|
|
5910
5911
|
setup(e) {
|
|
5911
|
-
return (n, r) => (E(), o("table",
|
|
5912
|
+
return (n, r) => (E(), o("table", oo, [s("thead", null, [s("tr", null, [(E(!0), o(t, null, k(e.headers, (e) => (E(), o("th", {
|
|
5912
5913
|
key: e.field,
|
|
5913
5914
|
scope: "col"
|
|
5914
5915
|
}, P(e.label), 1))), 128))])]), s("tbody", null, [(E(!0), o(t, null, k(e.rows, (e, n) => (E(), o("tr", { key: n }, [(E(!0), o(t, null, k(e, (e, t) => (E(), o("td", { key: t }, P(e), 1))), 128))]))), 128))])]));
|
|
5915
5916
|
}
|
|
5916
|
-
}),
|
|
5917
|
+
}), co = [
|
|
5917
5918
|
{
|
|
5918
5919
|
value: "column",
|
|
5919
5920
|
label: "Column",
|
|
@@ -5959,19 +5960,19 @@ var Sa = {
|
|
|
5959
5960
|
label: "Table",
|
|
5960
5961
|
icon: "table"
|
|
5961
5962
|
}
|
|
5962
|
-
],
|
|
5963
|
+
], lo = [
|
|
5963
5964
|
"column",
|
|
5964
5965
|
"bar",
|
|
5965
5966
|
"line",
|
|
5966
5967
|
"area",
|
|
5967
5968
|
"table"
|
|
5968
|
-
],
|
|
5969
|
+
], uo = "column", fo = "table", po = new Set([
|
|
5969
5970
|
"currency",
|
|
5970
5971
|
"number",
|
|
5971
5972
|
"numeric",
|
|
5972
5973
|
"percent",
|
|
5973
5974
|
"percentage"
|
|
5974
|
-
]),
|
|
5975
|
+
]), mo = "bucketCount", ho = [
|
|
5975
5976
|
{
|
|
5976
5977
|
text: "Column",
|
|
5977
5978
|
id: "column",
|
|
@@ -5997,7 +5998,7 @@ var Sa = {
|
|
|
5997
5998
|
id: "pie",
|
|
5998
5999
|
icon: "chart-pie"
|
|
5999
6000
|
}
|
|
6000
|
-
],
|
|
6001
|
+
], go = [
|
|
6001
6002
|
{
|
|
6002
6003
|
text: "Grouped Column",
|
|
6003
6004
|
id: "column",
|
|
@@ -6018,45 +6019,45 @@ var Sa = {
|
|
|
6018
6019
|
id: "bar_stacked",
|
|
6019
6020
|
icon: "chart-bar-stacked"
|
|
6020
6021
|
}
|
|
6021
|
-
],
|
|
6022
|
+
], _o = {
|
|
6022
6023
|
text: "Histogram",
|
|
6023
6024
|
id: "histogram",
|
|
6024
6025
|
icon: "chart-column"
|
|
6025
|
-
},
|
|
6026
|
+
}, vo = {
|
|
6026
6027
|
text: "Map",
|
|
6027
6028
|
id: "map",
|
|
6028
6029
|
icon: "map"
|
|
6029
|
-
},
|
|
6030
|
+
}, yo = "state", bo = "--SEPARATOR--", xo = "_sort_total", So = /* @__PURE__ */ function(e) {
|
|
6030
6031
|
return e.String = "string", e.Number = "number", e.Boolean = "boolean", e.Date = "date", e.Currency = "currency", e.Formula = "formula", e.Select = "select", e.Percent = "percent", e.Entity = "entity", e.Id = "id", e.Integer = "integer", e.User = "user", e.Link = "link", e.Location = "location", e.Status = "status", e.Tag = "tag", e.File = "file", e.None = "none", e;
|
|
6031
|
-
}({}),
|
|
6032
|
+
}({}), Co = (e) => {
|
|
6032
6033
|
switch (e) {
|
|
6033
|
-
case
|
|
6034
|
-
case
|
|
6035
|
-
case
|
|
6036
|
-
case
|
|
6037
|
-
case
|
|
6038
|
-
case
|
|
6039
|
-
case
|
|
6040
|
-
case
|
|
6041
|
-
case
|
|
6042
|
-
case
|
|
6043
|
-
case
|
|
6044
|
-
case
|
|
6045
|
-
case
|
|
6046
|
-
case
|
|
6047
|
-
case
|
|
6048
|
-
case
|
|
6049
|
-
case
|
|
6050
|
-
case
|
|
6034
|
+
case So.String: return "fonts";
|
|
6035
|
+
case So.Number: return "hash";
|
|
6036
|
+
case So.Boolean: return "list";
|
|
6037
|
+
case So.Date: return "calendar";
|
|
6038
|
+
case So.Currency: return "currency-dollar";
|
|
6039
|
+
case So.Formula: return "formula";
|
|
6040
|
+
case So.Select: return "list";
|
|
6041
|
+
case So.Percent: return "percent";
|
|
6042
|
+
case So.Entity: return "building";
|
|
6043
|
+
case So.Id: return "id-2";
|
|
6044
|
+
case So.Link: return "link";
|
|
6045
|
+
case So.Location: return "location";
|
|
6046
|
+
case So.Integer: return "hash";
|
|
6047
|
+
case So.User: return "user";
|
|
6048
|
+
case So.Status: return "circle-chevron-down";
|
|
6049
|
+
case So.Tag: return "circle-chevron-down";
|
|
6050
|
+
case So.File: return "file";
|
|
6051
|
+
case So.None: return null;
|
|
6051
6052
|
default: return null;
|
|
6052
6053
|
}
|
|
6053
|
-
},
|
|
6054
|
+
}, wo = (e, t) => {
|
|
6054
6055
|
if (!e) return e;
|
|
6055
6056
|
switch (t) {
|
|
6056
|
-
case
|
|
6057
|
+
case So.Percent: return e.replace(/^%+/, "").trim();
|
|
6057
6058
|
default: return e;
|
|
6058
6059
|
}
|
|
6059
|
-
},
|
|
6060
|
+
}, To = (e) => e.includes(".") ? e.replace(/\.?0+$/, "") : e, Eo = (e, t = !1, n = 0) => {
|
|
6060
6061
|
let r = [
|
|
6061
6062
|
"",
|
|
6062
6063
|
"K",
|
|
@@ -6065,61 +6066,61 @@ var Sa = {
|
|
|
6065
6066
|
"T"
|
|
6066
6067
|
], i = Math.abs(e), a = Math.abs(n), o = t ? 2 : 0, s = Math.floor(Math.log10(i) / 3);
|
|
6067
6068
|
if ((Math.floor(Math.log10(a) / 3) >= s || s > 3) && (o = 2), i < 1e3) return {
|
|
6068
|
-
newValue:
|
|
6069
|
+
newValue: To(e.toFixed(o)),
|
|
6069
6070
|
newSuffix: ""
|
|
6070
6071
|
};
|
|
6071
6072
|
let c = r[s] || `e${s * 3}`;
|
|
6072
6073
|
return {
|
|
6073
|
-
newValue:
|
|
6074
|
+
newValue: To((e / 10 ** (s * 3)).toFixed(o)),
|
|
6074
6075
|
newSuffix: c
|
|
6075
6076
|
};
|
|
6076
|
-
},
|
|
6077
|
+
}, Do = (e, t, n) => !e || e.length === 0 ? e : e.slice().sort((e, r) => !n.includes(e[t]) - +!n.includes(r[t])), $ = (e) => e && e.context || {}, Oo = (e) => {
|
|
6077
6078
|
let t = $(e);
|
|
6078
6079
|
return t.filterValueFormatter && typeof t.filterValueFormatter == "function" ? t.filterValueFormatter : typeof e.valueFormatter == "function" ? e.valueFormatter : null;
|
|
6079
|
-
},
|
|
6080
|
+
}, ko = (e) => $(e).filterSelectMax || null, Ao = (e) => {
|
|
6080
6081
|
let t = $(e);
|
|
6081
6082
|
if (t.filterSelectMin) {
|
|
6082
|
-
let n =
|
|
6083
|
+
let n = ko(e);
|
|
6083
6084
|
return t.filterSelectMin === 1 && n === 1;
|
|
6084
6085
|
}
|
|
6085
6086
|
return !1;
|
|
6086
|
-
},
|
|
6087
|
+
}, jo = (e) => {
|
|
6087
6088
|
let t = $(e).dataType;
|
|
6088
6089
|
return t ? [
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6090
|
+
So.Currency,
|
|
6091
|
+
So.Percent,
|
|
6092
|
+
So.Number,
|
|
6093
|
+
So.Integer,
|
|
6094
|
+
So.Formula
|
|
6094
6095
|
].includes(t) : !1;
|
|
6095
|
-
},
|
|
6096
|
+
}, Mo = (e) => e ? [e.field, ...(e.children || []).flatMap(Mo)] : [], No = (e) => {
|
|
6096
6097
|
let t = $(e);
|
|
6097
|
-
return t.aggregateFieldHierarchy ?
|
|
6098
|
-
},
|
|
6098
|
+
return t.aggregateFieldHierarchy ? Mo(t.aggregateFieldHierarchy) : t.aggregateFields || [];
|
|
6099
|
+
}, Po = (e) => {
|
|
6099
6100
|
let t = $(e);
|
|
6100
6101
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
6101
|
-
},
|
|
6102
|
+
}, Fo = (e) => No(e).length > 0, Io = (e, t) => !e || !t ? e || [] : e.map((e) => {
|
|
6102
6103
|
let n = t.find((t) => t?.field === e.field);
|
|
6103
|
-
return n &&
|
|
6104
|
+
return n && jo(n) ? {
|
|
6104
6105
|
...e,
|
|
6105
|
-
aggFunc:
|
|
6106
|
+
aggFunc: mo
|
|
6106
6107
|
} : {
|
|
6107
6108
|
...e,
|
|
6108
6109
|
aggFunc: void 0
|
|
6109
6110
|
};
|
|
6110
|
-
}),
|
|
6111
|
+
}), Lo = (e) => e.map((e) => ({
|
|
6111
6112
|
id: e.getColId(),
|
|
6112
6113
|
displayName: e.getColDef().headerName || "",
|
|
6113
6114
|
field: e.getColDef().field || "",
|
|
6114
6115
|
aggFunc: e.getAggFunc() || void 0
|
|
6115
|
-
})),
|
|
6116
|
+
})), Ro = (e) => {
|
|
6116
6117
|
let t = $(e);
|
|
6117
6118
|
return t.chartOnSecondaryAxes === !0 && !t.hideFromCharting;
|
|
6118
|
-
},
|
|
6119
|
+
}, zo = (e, t, n) => n.has(e) && typeof t == "string" ? `${e}_${t}` : e, Bo = (e, t) => {
|
|
6119
6120
|
if (!Number.isFinite(e) || e <= 0 || t <= 0) return 0;
|
|
6120
6121
|
let n = e / t, r = 10 ** Math.floor(Math.log10(n)), i = n / r;
|
|
6121
6122
|
return (i <= 1 ? 1 : i <= 2 ? 2 : i <= 2.5 ? 2.5 : i <= 5 ? 5 : 10) * r * t;
|
|
6122
|
-
},
|
|
6123
|
+
}, Vo = ({ currentRowGroupColumnsLength: e, shouldShowFocusOverlayText: t, chartDataEmpty: n, missingFocusText: r, displayGroupByName: i, yAxisName: a, yAxisOptionCount: o }) => e === 0 ? "No groups selected. Select at least one group to display data." : n ? t ? r ?? `Select focus ${i} to view Visualization.` : a && (o ?? 0) > 1 ? `No data available for ${a}, please select a different one.` : jt : "", Ho = (e, t) => `${e}_${t}`, Uo = (e) => `secondaryCategory_${e}`, Wo = (e, t, n, r, i = []) => {
|
|
6123
6124
|
if (!e || e.length === 0) return {
|
|
6124
6125
|
data: [],
|
|
6125
6126
|
uniqueFieldValues: []
|
|
@@ -6132,7 +6133,7 @@ var Sa = {
|
|
|
6132
6133
|
let o = e.reduce((e, o) => {
|
|
6133
6134
|
let s = o[t];
|
|
6134
6135
|
e[s] || (e[s] = {});
|
|
6135
|
-
let c = o[n], l =
|
|
6136
|
+
let c = o[n], l = Uo(c);
|
|
6136
6137
|
e[s][l] = `${s}-${c}`;
|
|
6137
6138
|
for (let t of r) {
|
|
6138
6139
|
let r = t.value, i = 0;
|
|
@@ -6140,9 +6141,9 @@ var Sa = {
|
|
|
6140
6141
|
let l = o[r];
|
|
6141
6142
|
if (a.add(c), n && l) {
|
|
6142
6143
|
let t = l ?? 0;
|
|
6143
|
-
e[s][
|
|
6144
|
+
e[s][Ho(r, c)] = t, i += t;
|
|
6144
6145
|
}
|
|
6145
|
-
e[s][`${r}${
|
|
6146
|
+
e[s][`${r}${xo}`] = i;
|
|
6146
6147
|
}
|
|
6147
6148
|
for (let t of i) e[s][t.value] = o[t.value];
|
|
6148
6149
|
return e;
|
|
@@ -6154,30 +6155,30 @@ var Sa = {
|
|
|
6154
6155
|
})),
|
|
6155
6156
|
uniqueFieldValues: Array.from(a)
|
|
6156
6157
|
};
|
|
6157
|
-
},
|
|
6158
|
+
}, Go = (e, t, n) => {
|
|
6158
6159
|
let r = -Infinity;
|
|
6159
6160
|
return !e || e.length === 0 || (n ? e.forEach((e) => {
|
|
6160
|
-
let n = e[t +
|
|
6161
|
+
let n = e[t + xo];
|
|
6161
6162
|
typeof n == "number" && n > r && (r = n);
|
|
6162
6163
|
}) : e.forEach((e) => {
|
|
6163
6164
|
let n = e[t];
|
|
6164
6165
|
typeof n == "number" && n > r && (r = n);
|
|
6165
6166
|
})), r;
|
|
6166
|
-
},
|
|
6167
|
+
}, Ko = (e, t, n) => {
|
|
6167
6168
|
let r = Infinity;
|
|
6168
6169
|
if (!e || e.length === 0) return r;
|
|
6169
|
-
let i = n ? t +
|
|
6170
|
+
let i = n ? t + xo : t;
|
|
6170
6171
|
return e.forEach((e) => {
|
|
6171
6172
|
let t = e[i];
|
|
6172
6173
|
typeof t == "number" && t < r && (r = t);
|
|
6173
6174
|
}), r;
|
|
6174
|
-
},
|
|
6175
|
+
}, qo = new Map(co.map((e) => [e.value, e])), Jo = (e) => e !== null, Yo = (e) => {
|
|
6175
6176
|
let t = Number(e ?? 0);
|
|
6176
6177
|
return Number.isFinite(t) ? t : 0;
|
|
6177
|
-
},
|
|
6178
|
+
}, Xo = (e) => {
|
|
6178
6179
|
let t = typeof e == "string" ? { value: e } : e, n = t.value;
|
|
6179
6180
|
if (!n) return null;
|
|
6180
|
-
let r =
|
|
6181
|
+
let r = qo.get(n), i = t.label ?? r?.label ?? n;
|
|
6181
6182
|
return {
|
|
6182
6183
|
ariaLabel: t.ariaLabel ?? i,
|
|
6183
6184
|
icon: t.icon ?? r?.icon,
|
|
@@ -6185,14 +6186,14 @@ var Sa = {
|
|
|
6185
6186
|
label: i,
|
|
6186
6187
|
value: n
|
|
6187
6188
|
};
|
|
6188
|
-
},
|
|
6189
|
-
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e :
|
|
6189
|
+
}, Zo = (e = [], t = {}) => {
|
|
6190
|
+
let n = t.useDefaultChartTypesWhenEmpty ?? !0, r = (e.length > 0 || !n ? e : lo).map(Xo).filter(Jo);
|
|
6190
6191
|
if (!r.some((e) => e.value !== "table")) {
|
|
6191
|
-
let e =
|
|
6192
|
+
let e = Xo(uo);
|
|
6192
6193
|
e && (r = [e, ...r]);
|
|
6193
6194
|
}
|
|
6194
6195
|
if (!e.some((e) => typeof e == "object" && !!e)) {
|
|
6195
|
-
let e = r.filter((e) => e.value !==
|
|
6196
|
+
let e = r.filter((e) => e.value !== fo);
|
|
6196
6197
|
if (e.length === 1) {
|
|
6197
6198
|
let t = e[0]?.value;
|
|
6198
6199
|
r = r.map((e) => e.value === t ? {
|
|
@@ -6203,21 +6204,21 @@ var Sa = {
|
|
|
6203
6204
|
}
|
|
6204
6205
|
}
|
|
6205
6206
|
return r;
|
|
6206
|
-
},
|
|
6207
|
+
}, Qo = (e, t) => t.find((t) => t.value === e)?.value ?? t[0]?.value ?? "table", $o = (e, t = []) => {
|
|
6207
6208
|
if (t.length > 0) return t.filter((e) => !e.hide);
|
|
6208
6209
|
let n = e[0];
|
|
6209
6210
|
return n ? Object.keys(n).map((e) => ({
|
|
6210
6211
|
field: e,
|
|
6211
6212
|
headerName: e
|
|
6212
6213
|
})) : [];
|
|
6213
|
-
},
|
|
6214
|
+
}, es = (e, t = "") => e?.context?.chartSeriesDisplayName ?? e?.headerName ?? e?.field ?? t, ts = (e) => String(e?.context?.dataType ?? e?.dataType ?? e?.type ?? "").toLowerCase(), ns = (e, t) => {
|
|
6214
6215
|
if (!e) return !1;
|
|
6215
|
-
let n =
|
|
6216
|
-
return
|
|
6217
|
-
},
|
|
6216
|
+
let n = ts(e);
|
|
6217
|
+
return po.has(n) ? !0 : t.some((t) => typeof t[e.field] == "number");
|
|
6218
|
+
}, rs = (e, t) => {
|
|
6218
6219
|
let n = e[t];
|
|
6219
6220
|
return n == null ? "" : String(n);
|
|
6220
|
-
},
|
|
6221
|
+
}, is = (e, t) => {
|
|
6221
6222
|
let n = e, r = { ...n };
|
|
6222
6223
|
if (t.noDataOverlayText) {
|
|
6223
6224
|
let e = on(n.overlays), i = on(e?.noData);
|
|
@@ -6238,26 +6239,26 @@ var Sa = {
|
|
|
6238
6239
|
hideValueAxis: t.hideValueAxis,
|
|
6239
6240
|
showAxes: !t.hideAxes
|
|
6240
6241
|
});
|
|
6241
|
-
},
|
|
6242
|
+
}, as = ({ dataRows: e, categoryColumn: t, seriesColumn: n, stackColumn: r }) => {
|
|
6242
6243
|
if (!t || !n || !r) return {
|
|
6243
6244
|
data: e,
|
|
6244
6245
|
stackValues: []
|
|
6245
6246
|
};
|
|
6246
6247
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set();
|
|
6247
6248
|
return e.forEach((e) => {
|
|
6248
|
-
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c =
|
|
6249
|
+
let o = String(e[t.field] ?? ""), s = String(e[r.field] ?? ""), c = Ho(n.field, s);
|
|
6249
6250
|
a.add(s);
|
|
6250
6251
|
let l = i.get(o) ?? { [t.field]: o };
|
|
6251
|
-
l[c] = Number(l[c] ?? 0) +
|
|
6252
|
+
l[c] = Number(l[c] ?? 0) + Yo(e[n.field]), i.set(o, l);
|
|
6252
6253
|
}), {
|
|
6253
6254
|
data: Array.from(i.values()),
|
|
6254
6255
|
stackValues: Array.from(a)
|
|
6255
6256
|
};
|
|
6256
|
-
},
|
|
6257
|
+
}, os = ({ dataRows: e, categoryColumn: t, seriesColumn: n }) => {
|
|
6257
6258
|
if (!t || !n) return e;
|
|
6258
6259
|
let r = /* @__PURE__ */ new Map();
|
|
6259
6260
|
return e.forEach((e) => {
|
|
6260
|
-
let i = e[t.field] ?? "", a = String(i), o =
|
|
6261
|
+
let i = e[t.field] ?? "", a = String(i), o = Yo(e[n.field]), s = r.get(a);
|
|
6261
6262
|
if (s) {
|
|
6262
6263
|
s[n.field] = Number(s[n.field] ?? 0) + o;
|
|
6263
6264
|
return;
|
|
@@ -6268,16 +6269,16 @@ var Sa = {
|
|
|
6268
6269
|
[n.field]: o
|
|
6269
6270
|
});
|
|
6270
6271
|
}), Array.from(r.values());
|
|
6271
|
-
},
|
|
6272
|
+
}, ss = ({ dataRows: e, mapColumn: t, seriesColumn: n }) => {
|
|
6272
6273
|
if (!t || !n) return [];
|
|
6273
6274
|
let r = /* @__PURE__ */ new Map();
|
|
6274
6275
|
return e.forEach((e) => {
|
|
6275
6276
|
let i = String(e[t.field] ?? "");
|
|
6276
6277
|
if (!i) return;
|
|
6277
6278
|
let a = r.get(i) ?? { state: i };
|
|
6278
|
-
a[n.field] = Number(a[n.field] ?? 0) +
|
|
6279
|
+
a[n.field] = Number(a[n.field] ?? 0) + Yo(e[n.field]), r.set(i, a);
|
|
6279
6280
|
}), Array.from(r.values());
|
|
6280
|
-
},
|
|
6281
|
+
}, cs = (e, t) => {
|
|
6281
6282
|
if (!t || e.length === 0) return {
|
|
6282
6283
|
min: 0,
|
|
6283
6284
|
max: 0
|
|
@@ -6293,8 +6294,8 @@ var Sa = {
|
|
|
6293
6294
|
min: 0,
|
|
6294
6295
|
max: 0
|
|
6295
6296
|
};
|
|
6296
|
-
},
|
|
6297
|
-
let t =
|
|
6297
|
+
}, ls = (e) => {
|
|
6298
|
+
let t = ts(e);
|
|
6298
6299
|
return t === "currency" ? (e) => e.toLocaleString("en-US", {
|
|
6299
6300
|
currency: "USD",
|
|
6300
6301
|
maximumFractionDigits: 0,
|
|
@@ -6303,7 +6304,7 @@ var Sa = {
|
|
|
6303
6304
|
maximumFractionDigits: 0,
|
|
6304
6305
|
style: "percent"
|
|
6305
6306
|
}) : (e) => e.toLocaleString("en-US");
|
|
6306
|
-
},
|
|
6307
|
+
}, us = ({ aggregatedCategoryChartData: e, categoryColumn: t, dataLimit: n, displayDataRows: r, hideAxes: i, hideAxisTitles: a, hideLegend: o, hideValueAxis: s, noDataOverlayText: c, numericColumns: l, providedChartOptions: u, secondarySeriesColumn: d, selectedChartType: f, seriesColumn: p, showSeriesLabels: m, stackColumn: h, stackedChartData: g, useDisplayDataRows: _, xKey: v, yKey: y }) => {
|
|
6307
6308
|
let b = {
|
|
6308
6309
|
dataLimit: n,
|
|
6309
6310
|
hideAxes: i,
|
|
@@ -6312,12 +6313,12 @@ var Sa = {
|
|
|
6312
6313
|
hideValueAxis: s,
|
|
6313
6314
|
noDataOverlayText: c
|
|
6314
6315
|
};
|
|
6315
|
-
if (u) return
|
|
6316
|
+
if (u) return is({
|
|
6316
6317
|
...u,
|
|
6317
6318
|
data: _ ? r : u.data ?? r
|
|
6318
6319
|
}, b);
|
|
6319
|
-
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w =
|
|
6320
|
-
if (x === "pie") return
|
|
6320
|
+
let x = f === "map" ? "column" : f, S = t?.field ?? "category", C = p?.field ?? "value", w = es(t, S), T = es(p, C);
|
|
6321
|
+
if (x === "pie") return is({
|
|
6321
6322
|
data: e,
|
|
6322
6323
|
series: [{
|
|
6323
6324
|
type: "pie",
|
|
@@ -6329,34 +6330,34 @@ var Sa = {
|
|
|
6329
6330
|
}, b);
|
|
6330
6331
|
if (x === "scatter") {
|
|
6331
6332
|
let e = v === void 0 ? l[0] ?? t : t, n = y === void 0 ? l.find((t) => t.field !== e?.field) ?? d ?? p : p, i = e?.field ?? S, a = n?.field ?? C;
|
|
6332
|
-
return
|
|
6333
|
+
return is({
|
|
6333
6334
|
data: r,
|
|
6334
6335
|
series: [{
|
|
6335
6336
|
type: "scatter",
|
|
6336
6337
|
xKey: i,
|
|
6337
|
-
xName:
|
|
6338
|
+
xName: es(e, i),
|
|
6338
6339
|
yKey: a,
|
|
6339
|
-
yName:
|
|
6340
|
+
yName: es(n, a)
|
|
6340
6341
|
}],
|
|
6341
6342
|
axes: [{
|
|
6342
6343
|
type: "number",
|
|
6343
6344
|
position: "bottom",
|
|
6344
|
-
title: { text:
|
|
6345
|
+
title: { text: es(e, i) }
|
|
6345
6346
|
}, {
|
|
6346
6347
|
type: "number",
|
|
6347
6348
|
position: "left",
|
|
6348
|
-
title: { text:
|
|
6349
|
+
title: { text: es(n, a) }
|
|
6349
6350
|
}]
|
|
6350
6351
|
}, b);
|
|
6351
6352
|
}
|
|
6352
6353
|
if (x === "histogram") {
|
|
6353
6354
|
let e = v === void 0 ? l[0] ?? p ?? t : t, n = e?.field ?? C;
|
|
6354
|
-
return
|
|
6355
|
+
return is({
|
|
6355
6356
|
data: r,
|
|
6356
6357
|
series: [{
|
|
6357
6358
|
type: "histogram",
|
|
6358
6359
|
xKey: n,
|
|
6359
|
-
xName:
|
|
6360
|
+
xName: es(e, n)
|
|
6360
6361
|
}]
|
|
6361
6362
|
}, b);
|
|
6362
6363
|
}
|
|
@@ -6364,13 +6365,13 @@ var Sa = {
|
|
|
6364
6365
|
enabled: !0,
|
|
6365
6366
|
...D === "bar" ? { placement: "outside-end" } : {}
|
|
6366
6367
|
} } : {}, A = x.endsWith("_stacked") && !!h, j = !!h && (A || g.stackValues.length > 1);
|
|
6367
|
-
return
|
|
6368
|
+
return is({
|
|
6368
6369
|
data: j ? g.data : e,
|
|
6369
6370
|
series: j ? g.stackValues.map((e) => ({
|
|
6370
6371
|
type: D,
|
|
6371
6372
|
xKey: S,
|
|
6372
6373
|
xName: w,
|
|
6373
|
-
yKey:
|
|
6374
|
+
yKey: Ho(C, e),
|
|
6374
6375
|
yName: e,
|
|
6375
6376
|
...D === "bar" ? { direction: O ? "horizontal" : "vertical" } : {},
|
|
6376
6377
|
...A ? { stacked: !0 } : {},
|
|
@@ -6394,16 +6395,16 @@ var Sa = {
|
|
|
6394
6395
|
title: { text: T }
|
|
6395
6396
|
}]
|
|
6396
6397
|
}, b);
|
|
6397
|
-
},
|
|
6398
|
+
}, ds = {
|
|
6398
6399
|
key: 0,
|
|
6399
6400
|
class: "pv-flex pv-space-between pv-stack-12"
|
|
6400
|
-
},
|
|
6401
|
+
}, fs = {
|
|
6401
6402
|
key: 0,
|
|
6402
6403
|
class: "pv-heading-2"
|
|
6403
|
-
},
|
|
6404
|
+
}, ps = {
|
|
6404
6405
|
key: 1,
|
|
6405
6406
|
class: "pv-stack-12"
|
|
6406
|
-
},
|
|
6407
|
+
}, ms = { class: "pv-data-widget__body" }, hs = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6407
6408
|
__name: "PvDataWidget",
|
|
6408
6409
|
props: /* @__PURE__ */ g({
|
|
6409
6410
|
appliedFilters: { default: () => [] },
|
|
@@ -6473,12 +6474,12 @@ var Sa = {
|
|
|
6473
6474
|
let n = e, c = R(e, "chartType"), l = (e) => {
|
|
6474
6475
|
let t = e?.data;
|
|
6475
6476
|
return Array.isArray(t) ? t : [];
|
|
6476
|
-
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() =>
|
|
6477
|
-
get: () =>
|
|
6477
|
+
}, d = (e) => typeof e == "string" ? e === "map" : e.value === "map", f = r(() => Zo(F.value ? n.chartTypes : n.chartTypes.filter((e) => !d(e)), { useDefaultChartTypesWhenEmpty: n.chartTypes.length === 0 })), p = r({
|
|
6478
|
+
get: () => Qo(c.value, f.value),
|
|
6478
6479
|
set: (e) => {
|
|
6479
6480
|
c.value = e;
|
|
6480
6481
|
}
|
|
6481
|
-
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => cn(_.value, n.dataLimit)), b = r(() =>
|
|
6482
|
+
}), m = r(() => n.showWidgetTypeToggle && f.value.length > 1), h = r(() => !!n.title || m.value), g = r(() => n.appliedFilters.length > 0), _ = r(() => n.chartData === void 0 ? l(n.chartOptions) : n.chartData ?? []), v = r(() => cn(_.value, n.dataLimit)), b = r(() => $o(_.value, n.colDefs)), S = (e) => ns(e, _.value), C = r(() => b.value.filter((e) => !e.context?.hideFromCharting)), w = r(() => C.value.filter(S)), T = r(() => {
|
|
6482
6483
|
if (n.xKey !== void 0) {
|
|
6483
6484
|
let e = n.xKey;
|
|
6484
6485
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
@@ -6501,34 +6502,34 @@ var Sa = {
|
|
|
6501
6502
|
let e = n.mapKey;
|
|
6502
6503
|
return C.value.find((t) => t.field === e) ?? { field: e };
|
|
6503
6504
|
}
|
|
6504
|
-
return C.value.find((e) => e.field === "state") ?? C.value.find((e) =>
|
|
6505
|
+
return C.value.find((e) => e.field === "state") ?? C.value.find((e) => ts(e) === "location");
|
|
6505
6506
|
}), F = r(() => {
|
|
6506
6507
|
let e = N.value?.field;
|
|
6507
6508
|
return !!(e && T.value?.field === e);
|
|
6508
|
-
}), I = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), L = r(() => p.value ===
|
|
6509
|
+
}), I = r(() => !!n.chartOptions || _.value.length > 0 || b.value.length > 0), L = r(() => p.value === fo), ee = r(() => p.value === "map" && F.value), z = O(), B = r(() => b.value.map((e) => ({
|
|
6509
6510
|
field: e.field,
|
|
6510
|
-
label:
|
|
6511
|
-
}))), te = r(() => v.value.map((e) => b.value.map((t) =>
|
|
6511
|
+
label: es(e, e.field)
|
|
6512
|
+
}))), te = r(() => v.value.map((e) => b.value.map((t) => rs(e, t.field)))), ne = r(() => n.showTableBelowChart && !L.value && b.value.length > 0), V = r(() => tn(n) || !!(n.enableTableScrolling && n.tableMaxHeight)), U = r(() => en(n)), W = r(() => {
|
|
6512
6513
|
if (!n.enableTableScrolling) return;
|
|
6513
6514
|
let e = {
|
|
6514
6515
|
overflowX: "auto",
|
|
6515
6516
|
overflowY: "auto"
|
|
6516
6517
|
}, t = $t(n.tableMaxHeight);
|
|
6517
6518
|
return t && (e.maxHeight = t), e;
|
|
6518
|
-
}), G = r(() =>
|
|
6519
|
+
}), G = r(() => as({
|
|
6519
6520
|
dataRows: v.value,
|
|
6520
6521
|
categoryColumn: T.value,
|
|
6521
6522
|
seriesColumn: D.value,
|
|
6522
6523
|
stackColumn: M.value
|
|
6523
|
-
})), re = r(() =>
|
|
6524
|
+
})), re = r(() => os({
|
|
6524
6525
|
dataRows: v.value,
|
|
6525
6526
|
categoryColumn: T.value,
|
|
6526
6527
|
seriesColumn: D.value
|
|
6527
|
-
})), ie = r(() =>
|
|
6528
|
+
})), ie = r(() => ss({
|
|
6528
6529
|
dataRows: v.value,
|
|
6529
6530
|
mapColumn: N.value,
|
|
6530
6531
|
seriesColumn: D.value
|
|
6531
|
-
})), ae = r(() =>
|
|
6532
|
+
})), ae = r(() => cs(ie.value, D.value?.field)), K = r(() => ls(D.value)), q = r(() => us({
|
|
6532
6533
|
aggregatedCategoryChartData: re.value,
|
|
6533
6534
|
categoryColumn: T.value,
|
|
6534
6535
|
dataLimit: n.dataLimit,
|
|
@@ -6568,25 +6569,25 @@ var Sa = {
|
|
|
6568
6569
|
style: x(U.value)
|
|
6569
6570
|
}, {
|
|
6570
6571
|
default: H(() => [
|
|
6571
|
-
h.value ? (E(), o("div",
|
|
6572
|
+
h.value ? (E(), o("div", ds, [s("div", null, [e.title ? (E(), o("span", fs, P(e.title), 1)) : a("", !0)]), s("div", null, [m.value ? (E(), i(Ei, {
|
|
6572
6573
|
key: 0,
|
|
6573
6574
|
modelValue: p.value,
|
|
6574
6575
|
"onUpdate:modelValue": r[0] ||= (e) => p.value = e,
|
|
6575
6576
|
options: f.value,
|
|
6576
6577
|
size: "lg"
|
|
6577
6578
|
}, null, 8, ["modelValue", "options"])) : a("", !0)])])) : a("", !0),
|
|
6578
|
-
g.value ? (E(), o("div",
|
|
6579
|
-
s("div",
|
|
6579
|
+
g.value ? (E(), o("div", ps, [(E(!0), o(t, null, k(e.appliedFilters, (e) => (E(), o("span", { key: e }, P(e), 1))), 128))])) : a("", !0),
|
|
6580
|
+
s("div", ms, [A(n.$slots, "default", {}, void 0, !0), I.value ? (E(), o(t, { key: 0 }, [L.value ? (E(), o("div", {
|
|
6580
6581
|
key: 0,
|
|
6581
6582
|
class: y(["pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
6582
6583
|
style: x(W.value)
|
|
6583
|
-
}, [u(
|
|
6584
|
+
}, [u(so, {
|
|
6584
6585
|
headers: B.value,
|
|
6585
6586
|
rows: te.value
|
|
6586
6587
|
}, null, 8, ["headers", "rows"])], 6)) : ee.value ? (E(), o("div", {
|
|
6587
6588
|
key: 1,
|
|
6588
6589
|
style: x({ minHeight: `${e.minHeight}px` })
|
|
6589
|
-
}, [u(
|
|
6590
|
+
}, [u(ao, {
|
|
6590
6591
|
selectedRegion: z.value,
|
|
6591
6592
|
"onUpdate:selectedRegion": r[1] ||= (e) => z.value = e,
|
|
6592
6593
|
chartData: ie.value,
|
|
@@ -6625,7 +6626,7 @@ var Sa = {
|
|
|
6625
6626
|
key: 3,
|
|
6626
6627
|
class: y(["pv-data-widget__below-table pv-data-widget__table-container", { "pv-scroll": e.enableTableScrolling }]),
|
|
6627
6628
|
style: x(W.value)
|
|
6628
|
-
}, [u(
|
|
6629
|
+
}, [u(so, {
|
|
6629
6630
|
headers: B.value,
|
|
6630
6631
|
rows: te.value
|
|
6631
6632
|
}, null, 8, ["headers", "rows"])], 6)) : a("", !0)], 64)) : a("", !0)]),
|
|
@@ -6634,7 +6635,7 @@ var Sa = {
|
|
|
6634
6635
|
_: 3
|
|
6635
6636
|
}, 8, ["class", "style"]));
|
|
6636
6637
|
}
|
|
6637
|
-
}), [["__scopeId", "data-v-1681e679"]]),
|
|
6638
|
+
}), [["__scopeId", "data-v-1681e679"]]), gs = ["data-align"], _s = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6638
6639
|
__name: "PvPopover",
|
|
6639
6640
|
props: {
|
|
6640
6641
|
alignment: { default: void 0 },
|
|
@@ -6667,15 +6668,15 @@ var Sa = {
|
|
|
6667
6668
|
role: "list",
|
|
6668
6669
|
class: "pv-popover-list",
|
|
6669
6670
|
style: x(e.cssCustomListProperties)
|
|
6670
|
-
}, [A(t.$slots, "default", {}, void 0, !0)], 4)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 12,
|
|
6671
|
+
}, [A(t.$slots, "default", {}, void 0, !0)], 4)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 12, gs));
|
|
6671
6672
|
}
|
|
6672
|
-
}), [["__scopeId", "data-v-c6181252"]]),
|
|
6673
|
+
}), [["__scopeId", "data-v-c6181252"]]), vs = {
|
|
6673
6674
|
class: "pv-relative",
|
|
6674
6675
|
style: { width: "fit-content" }
|
|
6675
|
-
},
|
|
6676
|
+
}, ys = ["disabled"], bs = {
|
|
6676
6677
|
key: 0,
|
|
6677
6678
|
class: "pv-shimmer"
|
|
6678
|
-
},
|
|
6679
|
+
}, xs = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
6679
6680
|
__name: "PvDropdown",
|
|
6680
6681
|
props: {
|
|
6681
6682
|
defaultOpen: {
|
|
@@ -6729,7 +6730,7 @@ var Sa = {
|
|
|
6729
6730
|
zIndex: 10,
|
|
6730
6731
|
...d.popoverCssProperties
|
|
6731
6732
|
} : d.popoverCssProperties);
|
|
6732
|
-
return (t, r) => U((E(), o("div",
|
|
6733
|
+
return (t, r) => U((E(), o("div", vs, [s("button", {
|
|
6733
6734
|
ref_key: "triggerRef",
|
|
6734
6735
|
ref: m,
|
|
6735
6736
|
class: y({
|
|
@@ -6739,10 +6740,10 @@ var Sa = {
|
|
|
6739
6740
|
style: { width: "auto" },
|
|
6740
6741
|
onClick: S,
|
|
6741
6742
|
disabled: e.disabled
|
|
6742
|
-
}, [A(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10,
|
|
6743
|
+
}, [A(t.$slots, "trigger", {}, () => [r[1] ||= l("Open", -1)], !0)], 10, ys), (E(), i(n, {
|
|
6743
6744
|
to: e.teleportLocation,
|
|
6744
6745
|
disabled: !e.useTeleport
|
|
6745
|
-
}, [u(
|
|
6746
|
+
}, [u(_s, {
|
|
6746
6747
|
ref_key: "popoverRef",
|
|
6747
6748
|
ref: h,
|
|
6748
6749
|
class: y(x.value),
|
|
@@ -6752,7 +6753,7 @@ var Sa = {
|
|
|
6752
6753
|
isSortable: e.isSortable,
|
|
6753
6754
|
onListOrderUpdated: r[0] ||= (e) => t.$emit("list-order-updated", e)
|
|
6754
6755
|
}, {
|
|
6755
|
-
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span",
|
|
6756
|
+
default: H(() => [A(t.$slots, "default", {}, () => [e.isLoading ? (E(), o("span", bs, "Loading...")) : a("", !0)], !0)]),
|
|
6756
6757
|
_: 3
|
|
6757
6758
|
}, 8, [
|
|
6758
6759
|
"class",
|
|
@@ -6762,7 +6763,7 @@ var Sa = {
|
|
|
6762
6763
|
"isSortable"
|
|
6763
6764
|
])], 8, ["to", "disabled"]))])), [[I(Y), C]]);
|
|
6764
6765
|
}
|
|
6765
|
-
}), [["__scopeId", "data-v-79a7def3"]]),
|
|
6766
|
+
}), [["__scopeId", "data-v-79a7def3"]]), Ss = ["data-style"], Cs = /* @__PURE__ */ d({
|
|
6766
6767
|
__name: "PvTag",
|
|
6767
6768
|
props: {
|
|
6768
6769
|
size: { default: "md" },
|
|
@@ -6822,20 +6823,20 @@ var Sa = {
|
|
|
6822
6823
|
name: "close",
|
|
6823
6824
|
onClick: r[0] ||= W((n) => t.$emit("handle-close", e.label), ["stop"])
|
|
6824
6825
|
})) : a("", !0)
|
|
6825
|
-
], 14,
|
|
6826
|
+
], 14, Ss));
|
|
6826
6827
|
}
|
|
6827
|
-
}),
|
|
6828
|
+
}), ws = { class: "pv-inset-squish-12" }, Ts = {
|
|
6828
6829
|
key: 0,
|
|
6829
6830
|
class: "pv-flex pv-flex-vertical pv-stack-16",
|
|
6830
6831
|
style: { "--flex-align": "flex-start" }
|
|
6831
|
-
},
|
|
6832
|
+
}, Es = { class: "pv-heading-3" }, Ds = {
|
|
6832
6833
|
key: 0,
|
|
6833
6834
|
class: "pv-text-body-md"
|
|
6834
|
-
},
|
|
6835
|
+
}, Os = {
|
|
6835
6836
|
key: 0,
|
|
6836
6837
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6837
6838
|
style: { "--color-border": "#d2d8dc" }
|
|
6838
|
-
},
|
|
6839
|
+
}, ks = /* @__PURE__ */ d({
|
|
6839
6840
|
__name: "PvModal",
|
|
6840
6841
|
props: /* @__PURE__ */ g({
|
|
6841
6842
|
header: {},
|
|
@@ -6873,21 +6874,21 @@ var Sa = {
|
|
|
6873
6874
|
style: { "--max-width": "480px" },
|
|
6874
6875
|
onClose: i,
|
|
6875
6876
|
onClick: c
|
|
6876
|
-
}, [s("div",
|
|
6877
|
+
}, [s("div", ws, [e.hideHeader ? a("", !0) : (E(), o("div", Ts, [s("span", Es, P(e.header), 1), e.subheader ? (E(), o("span", Ds, P(e.subheader), 1)) : a("", !0)])), A(t.$slots, "body")]), e.hideFooter ? a("", !0) : (E(), o("div", Os, [A(t.$slots, "footer")]))], 544));
|
|
6877
6878
|
}
|
|
6878
|
-
}),
|
|
6879
|
+
}), As = /* @__PURE__ */ function(e) {
|
|
6879
6880
|
return e.Vertical = "Vertical", e.Horizontal = "Horizontal", e;
|
|
6880
6881
|
}({});
|
|
6881
6882
|
(/* @__PURE__ */ (function(e) {
|
|
6882
6883
|
return e.Primary = "Primary", e.Secondary = "Secondary", e.Tertiary = "Tertiary", e;
|
|
6883
|
-
})({})).Primary,
|
|
6884
|
+
})({})).Primary, As.Horizontal;
|
|
6884
6885
|
//#endregion
|
|
6885
6886
|
//#region src/components/base/PvSuggestionTag/PvSuggestionTag.vue?vue&type=script&setup=true&lang.ts
|
|
6886
|
-
var
|
|
6887
|
+
var js = [
|
|
6887
6888
|
"data-style",
|
|
6888
6889
|
"disabled",
|
|
6889
6890
|
"title"
|
|
6890
|
-
],
|
|
6891
|
+
], Ms = { class: "pv-truncate" }, Ns = /* @__PURE__ */ d({
|
|
6891
6892
|
__name: "PvSuggestionTag",
|
|
6892
6893
|
props: {
|
|
6893
6894
|
size: { default: "md" },
|
|
@@ -6923,36 +6924,36 @@ var ks = [
|
|
|
6923
6924
|
name: e.icon,
|
|
6924
6925
|
size: 12,
|
|
6925
6926
|
class: y(e.iconClasses)
|
|
6926
|
-
}, null, 8, ["name", "class"])) : a("", !0), s("span",
|
|
6927
|
+
}, null, 8, ["name", "class"])) : a("", !0), s("span", Ms, P(e.label), 1)], 10, js));
|
|
6927
6928
|
}
|
|
6928
6929
|
});
|
|
6929
6930
|
Ze.extend(et), Ze.extend(Qe), Ze.extend($e);
|
|
6930
6931
|
//#endregion
|
|
6931
6932
|
//#region src/components/base/PvDrawer/PvDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
6932
|
-
var
|
|
6933
|
+
var Ps = {
|
|
6933
6934
|
class: "pv-inset-squish-12 pv-border-bottom",
|
|
6934
6935
|
style: { "flex-shrink": "0" }
|
|
6935
|
-
},
|
|
6936
|
+
}, Fs = {
|
|
6936
6937
|
class: "pv-flex-vertical pv-stack-16",
|
|
6937
6938
|
style: { "--flex-align": "flex-start" }
|
|
6938
|
-
},
|
|
6939
|
+
}, Is = { class: "pv-flex pv-full-width" }, Ls = { class: "pv-full-width pv-heading-3" }, Rs = {
|
|
6939
6940
|
key: 0,
|
|
6940
6941
|
class: "pv-text-body-md"
|
|
6941
|
-
},
|
|
6942
|
+
}, zs = {
|
|
6942
6943
|
key: 0,
|
|
6943
6944
|
class: "pv-inset-inline-16"
|
|
6944
|
-
},
|
|
6945
|
+
}, Bs = {
|
|
6945
6946
|
class: "pv-inset-inline-16",
|
|
6946
6947
|
style: {
|
|
6947
6948
|
flex: "1",
|
|
6948
6949
|
"overflow-y": "auto",
|
|
6949
6950
|
"min-height": "0"
|
|
6950
6951
|
}
|
|
6951
|
-
},
|
|
6952
|
+
}, Vs = {
|
|
6952
6953
|
key: 0,
|
|
6953
6954
|
class: "pv-inset-squish-12 pv-border-top",
|
|
6954
6955
|
style: { "flex-shrink": "0" }
|
|
6955
|
-
},
|
|
6956
|
+
}, Hs = /* @__PURE__ */ d({
|
|
6956
6957
|
__name: "PvDrawer",
|
|
6957
6958
|
props: /* @__PURE__ */ g({
|
|
6958
6959
|
header: {},
|
|
@@ -7000,26 +7001,26 @@ var Ms = {
|
|
|
7000
7001
|
height: "100%"
|
|
7001
7002
|
}
|
|
7002
7003
|
}, [
|
|
7003
|
-
s("div",
|
|
7004
|
+
s("div", Ps, [n.$slots.header ? A(n.$slots, "header", { key: 0 }) : (E(), o(t, { key: 1 }, [s("div", Fs, [s("div", Is, [s("span", Ls, P(e.header), 1), u(An, {
|
|
7004
7005
|
"left-icon": "close",
|
|
7005
7006
|
ariaLabel: "Close",
|
|
7006
7007
|
size: "md",
|
|
7007
7008
|
onClick: p,
|
|
7008
7009
|
"data-testid": "pv-side-panel-close-button",
|
|
7009
7010
|
variant: "ghost"
|
|
7010
|
-
})]), e.subheader ? (E(), o("span",
|
|
7011
|
+
})]), e.subheader ? (E(), o("span", Rs, P(e.subheader), 1)) : a("", !0)]), e.showSearchbar && l.value !== void 0 ? (E(), o("div", zs, [u(qi, _({
|
|
7011
7012
|
"data-testid": "pv-side-panel-input-search",
|
|
7012
7013
|
modelValue: l.value,
|
|
7013
7014
|
"onUpdate:modelValue": i[0] ||= (e) => l.value = e
|
|
7014
7015
|
}, r.searchInputProps), null, 16, ["modelValue"])])) : a("", !0)], 64))]),
|
|
7015
|
-
s("div",
|
|
7016
|
-
n.$slots.footer ? (E(), o("div",
|
|
7016
|
+
s("div", Bs, [A(n.$slots, "default")]),
|
|
7017
|
+
n.$slots.footer ? (E(), o("div", Vs, [A(n.$slots, "footer")])) : a("", !0)
|
|
7017
7018
|
], 512));
|
|
7018
7019
|
}
|
|
7019
|
-
}),
|
|
7020
|
+
}), Us = {
|
|
7020
7021
|
"data-testid": "pv-select-menu-control-panel",
|
|
7021
7022
|
class: "pv-flex pv-space-between"
|
|
7022
|
-
},
|
|
7023
|
+
}, Ws = /* @__PURE__ */ d({
|
|
7023
7024
|
__name: "PvMenuControlPanel",
|
|
7024
7025
|
props: {
|
|
7025
7026
|
variant: {},
|
|
@@ -7032,7 +7033,7 @@ var Ms = {
|
|
|
7032
7033
|
"handle-confirm"
|
|
7033
7034
|
],
|
|
7034
7035
|
setup(e) {
|
|
7035
|
-
return (n, r) => (E(), o("div",
|
|
7036
|
+
return (n, r) => (E(), o("div", Us, [e.variant === "select-clear" ? (E(), o(t, { key: 0 }, [u(An, {
|
|
7036
7037
|
variant: "ghost",
|
|
7037
7038
|
"data-testid": "pv-select-menu-item-select-all",
|
|
7038
7039
|
onClick: r[0] ||= (e) => n.$emit("handle-select-all"),
|
|
@@ -7057,34 +7058,34 @@ var Ms = {
|
|
|
7057
7058
|
disabled: e.disabled
|
|
7058
7059
|
}, null, 8, ["disabled"])], 64)) : a("", !0)]));
|
|
7059
7060
|
}
|
|
7060
|
-
}),
|
|
7061
|
+
}), Gs = {
|
|
7061
7062
|
key: 0,
|
|
7062
7063
|
class: "pv-inset-square-8 pv-border-bottom"
|
|
7063
|
-
},
|
|
7064
|
+
}, Ks = {
|
|
7064
7065
|
key: 1,
|
|
7065
7066
|
class: "pv-inset-square-8"
|
|
7066
|
-
},
|
|
7067
|
+
}, qs = {
|
|
7067
7068
|
key: 1,
|
|
7068
7069
|
class: "pv-text-body-sm pv-inset-inline",
|
|
7069
7070
|
style: {
|
|
7070
7071
|
color: "#89989b",
|
|
7071
7072
|
"--inset-size": "8px"
|
|
7072
7073
|
}
|
|
7073
|
-
},
|
|
7074
|
+
}, Js = {
|
|
7074
7075
|
key: 2,
|
|
7075
7076
|
class: "pv-border-top",
|
|
7076
7077
|
style: { margin: "8px 0" }
|
|
7077
|
-
},
|
|
7078
|
+
}, Ys = {
|
|
7078
7079
|
key: 3,
|
|
7079
7080
|
class: "pv-flex pv-inset-square-8",
|
|
7080
7081
|
style: { "justify-content": "center" }
|
|
7081
|
-
},
|
|
7082
|
+
}, Xs = {
|
|
7082
7083
|
class: "pv-sticky pv-surface pv-border-top pv-inset-square-8",
|
|
7083
7084
|
style: {
|
|
7084
7085
|
"--flex-justify": "space-between",
|
|
7085
7086
|
"--bottom": "0"
|
|
7086
7087
|
}
|
|
7087
|
-
},
|
|
7088
|
+
}, Zs = /* @__PURE__ */ d({
|
|
7088
7089
|
__name: "PvMultiSelectButton",
|
|
7089
7090
|
props: /* @__PURE__ */ g({
|
|
7090
7091
|
companyLogo: {},
|
|
@@ -7109,6 +7110,10 @@ var Ms = {
|
|
|
7109
7110
|
type: Boolean,
|
|
7110
7111
|
default: !1
|
|
7111
7112
|
},
|
|
7113
|
+
hideUnselectedInReadOnly: {
|
|
7114
|
+
type: Boolean,
|
|
7115
|
+
default: !1
|
|
7116
|
+
},
|
|
7112
7117
|
enableCascadeSelection: {
|
|
7113
7118
|
type: Boolean,
|
|
7114
7119
|
default: !1
|
|
@@ -7356,7 +7361,7 @@ var Ms = {
|
|
|
7356
7361
|
...e.popoverCssProperties
|
|
7357
7362
|
})
|
|
7358
7363
|
}, [
|
|
7359
|
-
e.disableSearchInput ? a("", !0) : (E(), o("div",
|
|
7364
|
+
e.disableSearchInput ? a("", !0) : (E(), o("div", Gs, [u(qi, {
|
|
7360
7365
|
ref: "searchInputRef",
|
|
7361
7366
|
"model-value": B.value,
|
|
7362
7367
|
"onUpdate:modelValue": r[1] ||= (e) => B.value = e,
|
|
@@ -7368,10 +7373,10 @@ var Ms = {
|
|
|
7368
7373
|
"placeholder",
|
|
7369
7374
|
"disabled"
|
|
7370
7375
|
])])),
|
|
7371
|
-
n.$slots.header || I(ge) ? (E(), o("div",
|
|
7376
|
+
n.$slots.header || I(ge) ? (E(), o("div", Ks, [A(n.$slots, "header", b(p(pe.value)))])) : a("", !0),
|
|
7372
7377
|
se.value.length > 0 ? (E(), o(t, { key: 2 }, [fe.value ? (E(!0), o(t, { key: 0 }, k(de.value, ([t, i], s) => (E(), o("div", { key: t }, [
|
|
7373
|
-
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span",
|
|
7374
|
-
u(
|
|
7378
|
+
n.$slots[t] ? A(n.$slots, t, { key: 0 }) : t === "other" ? a("", !0) : (E(), o("span", qs, P(t), 1)),
|
|
7379
|
+
u(eo, {
|
|
7375
7380
|
selectedItems: K.value,
|
|
7376
7381
|
"onUpdate:selectedItems": r[2] ||= (e) => K.value = e,
|
|
7377
7382
|
options: i,
|
|
@@ -7384,6 +7389,7 @@ var Ms = {
|
|
|
7384
7389
|
enableCascadeSelection: e.enableCascadeSelection,
|
|
7385
7390
|
hasMoreOptions: s === de.value.length - 1 && C.value && !e.isLoading,
|
|
7386
7391
|
readOnly: e.readOnly,
|
|
7392
|
+
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
7387
7393
|
onSeeMore: O
|
|
7388
7394
|
}, null, 8, [
|
|
7389
7395
|
"selectedItems",
|
|
@@ -7395,10 +7401,11 @@ var Ms = {
|
|
|
7395
7401
|
"isSeeMoreLoading",
|
|
7396
7402
|
"enableCascadeSelection",
|
|
7397
7403
|
"hasMoreOptions",
|
|
7398
|
-
"readOnly"
|
|
7404
|
+
"readOnly",
|
|
7405
|
+
"hideUnselectedInReadOnly"
|
|
7399
7406
|
]),
|
|
7400
|
-
de.value && s !== de.value.length - 1 ? (E(), o("div",
|
|
7401
|
-
]))), 128)) : (E(), i(
|
|
7407
|
+
de.value && s !== de.value.length - 1 ? (E(), o("div", Js)) : a("", !0)
|
|
7408
|
+
]))), 128)) : (E(), i(eo, {
|
|
7402
7409
|
key: 1,
|
|
7403
7410
|
selectedItems: K.value,
|
|
7404
7411
|
"onUpdate:selectedItems": r[3] ||= (e) => K.value = e,
|
|
@@ -7411,6 +7418,7 @@ var Ms = {
|
|
|
7411
7418
|
isSeeMoreLoading: e.isSeeMoreLoading,
|
|
7412
7419
|
hasMoreOptions: C.value && !e.isLoading,
|
|
7413
7420
|
readOnly: e.readOnly,
|
|
7421
|
+
hideUnselectedInReadOnly: e.hideUnselectedInReadOnly,
|
|
7414
7422
|
onSeeMore: O
|
|
7415
7423
|
}, null, 8, [
|
|
7416
7424
|
"selectedItems",
|
|
@@ -7421,10 +7429,11 @@ var Ms = {
|
|
|
7421
7429
|
"enableCascadeSelection",
|
|
7422
7430
|
"isSeeMoreLoading",
|
|
7423
7431
|
"hasMoreOptions",
|
|
7424
|
-
"readOnly"
|
|
7432
|
+
"readOnly",
|
|
7433
|
+
"hideUnselectedInReadOnly"
|
|
7425
7434
|
]))], 64)) : a("", !0),
|
|
7426
|
-
e.isLoading ? (E(), o("div",
|
|
7427
|
-
s("div",
|
|
7435
|
+
e.isLoading ? (E(), o("div", Ys, [u(St, { variant: "dark" })])) : se.value.length === 0 ? (E(), o(t, { key: 4 }, [I(_e) ? A(n.$slots, "no-results", b(_({ key: 0 }, pe.value))) : (E(), i(ha, { key: 1 }))], 64)) : a("", !0),
|
|
7436
|
+
s("div", Xs, [I(ve) ? A(n.$slots, "footer", b(_({ key: 0 }, pe.value))) : a("", !0), e.menuActionsVariant && !e.readOnly ? (E(), i(Ws, {
|
|
7428
7437
|
key: 1,
|
|
7429
7438
|
variant: e.menuActionsVariant,
|
|
7430
7439
|
disabled: e.isLoading,
|
|
@@ -7444,7 +7453,7 @@ Math.random().toString(), Math.random().toString(), new Intl.NumberFormat("en-US
|
|
|
7444
7453
|
});
|
|
7445
7454
|
//#endregion
|
|
7446
7455
|
//#region src/components/base/PvFilterPanel/filterOptionValue.ts
|
|
7447
|
-
var
|
|
7456
|
+
var Qs = "__pv_filter_panel_scoped_value__", $s = (e) => typeof e == "object" && !!e, ec = (e) => {
|
|
7448
7457
|
try {
|
|
7449
7458
|
let t = JSON.parse(decodeURIComponent(e));
|
|
7450
7459
|
return Array.isArray(t) ? t.flatMap((e) => {
|
|
@@ -7458,7 +7467,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7458
7467
|
} catch {
|
|
7459
7468
|
return [];
|
|
7460
7469
|
}
|
|
7461
|
-
},
|
|
7470
|
+
}, tc = (e) => {
|
|
7462
7471
|
if (!e.startsWith("__")) return null;
|
|
7463
7472
|
let t = e.slice(2).split("__");
|
|
7464
7473
|
if (t.length < 2 || !t[0] || !t[1]) return null;
|
|
@@ -7471,68 +7480,68 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7471
7480
|
pairs: n,
|
|
7472
7481
|
value: n[0].value
|
|
7473
7482
|
};
|
|
7474
|
-
},
|
|
7483
|
+
}, nc = (e) => {
|
|
7475
7484
|
if (e == null) return null;
|
|
7476
|
-
if (!e.startsWith(
|
|
7485
|
+
if (!e.startsWith(Qs)) return tc(e) ?? {
|
|
7477
7486
|
pairs: [],
|
|
7478
7487
|
value: e
|
|
7479
7488
|
};
|
|
7480
|
-
let t =
|
|
7489
|
+
let t = ec(e.slice(32));
|
|
7481
7490
|
return {
|
|
7482
7491
|
field: t[0]?.field,
|
|
7483
7492
|
pairs: t,
|
|
7484
7493
|
value: t[0]?.value ?? e
|
|
7485
7494
|
};
|
|
7486
|
-
},
|
|
7495
|
+
}, rc = (e) => e ? e.rawValue !== null && e.rawValue !== void 0 ? String(e.rawValue) : $s(e.metadata) && e.metadata.rawValue !== null && e.metadata.rawValue !== void 0 ? String(e.metadata.rawValue) : e.matchedValue !== null && e.matchedValue !== void 0 ? String(e.matchedValue) : nc(e.value)?.value ?? e.value : null, ic = (e, t) => e?.field ? e.field : e?.colField ? e.colField : nc(e?.value)?.field ?? t, ac = (e, t, n, r) => ic(e, r) === t && rc(e) === n, oc = (e) => {
|
|
7487
7496
|
let t = e;
|
|
7488
7497
|
return t?.filterType === "join" && Array.isArray(t.conditions);
|
|
7489
|
-
},
|
|
7498
|
+
}, sc = (e) => {
|
|
7490
7499
|
let t = e;
|
|
7491
|
-
return
|
|
7500
|
+
return oc(e) ? {
|
|
7492
7501
|
...t,
|
|
7493
|
-
conditions: (t.conditions ?? []).map(
|
|
7502
|
+
conditions: (t.conditions ?? []).map(sc)
|
|
7494
7503
|
} : { ...t };
|
|
7495
|
-
},
|
|
7504
|
+
}, cc = (e, t) => {
|
|
7496
7505
|
if (!e) return null;
|
|
7497
7506
|
let n = t instanceof Set ? t : new Set(t);
|
|
7498
|
-
if (!n.size) return
|
|
7499
|
-
if (!
|
|
7507
|
+
if (!n.size) return sc(e);
|
|
7508
|
+
if (!oc(e)) {
|
|
7500
7509
|
let t = e;
|
|
7501
|
-
return typeof t.colId == "string" && n.has(t.colId) ? null :
|
|
7510
|
+
return typeof t.colId == "string" && n.has(t.colId) ? null : sc(e);
|
|
7502
7511
|
}
|
|
7503
|
-
let r = e, i = (r.conditions ?? []).map((e) =>
|
|
7512
|
+
let r = e, i = (r.conditions ?? []).map((e) => cc(e, n)).filter((e) => !!e);
|
|
7504
7513
|
return i.length ? i.length === 1 ? i[0] : {
|
|
7505
7514
|
...r,
|
|
7506
7515
|
conditions: i
|
|
7507
7516
|
} : null;
|
|
7508
|
-
},
|
|
7517
|
+
}, lc = (e) => e ? [e.field, ...(e.children ?? []).flatMap(lc)] : [], uc = (e) => e ? e.children?.length ? e.children.flatMap(uc) : [e.field] : [], dc = (e) => {
|
|
7509
7518
|
let t = e?.context ?? {};
|
|
7510
|
-
return t.aggregateFieldHierarchy ?
|
|
7511
|
-
},
|
|
7519
|
+
return t.aggregateFieldHierarchy ? lc(t.aggregateFieldHierarchy) : t.aggregateFields ?? [];
|
|
7520
|
+
}, fc = (e) => {
|
|
7512
7521
|
let t = e?.context ?? {};
|
|
7513
7522
|
return t.aggregateFieldHierarchy ? t.aggregateFieldHierarchy.field : t.aggregateFields?.[t.aggregateFields.length - 1];
|
|
7514
|
-
},
|
|
7523
|
+
}, pc = (e, t) => {
|
|
7515
7524
|
for (let n of e ?? []) {
|
|
7516
7525
|
if (!n) continue;
|
|
7517
7526
|
if (n.value === t) return n;
|
|
7518
|
-
let e =
|
|
7527
|
+
let e = pc(n.children, t);
|
|
7519
7528
|
if (e) return e;
|
|
7520
7529
|
}
|
|
7521
|
-
},
|
|
7522
|
-
let n =
|
|
7530
|
+
}, mc = (e, t) => {
|
|
7531
|
+
let n = pc(t, e), r = n ? ic(n, "") : void 0, i = n ? rc(n) : null;
|
|
7523
7532
|
if (r && i !== null) return {
|
|
7524
7533
|
field: r,
|
|
7525
7534
|
value: i
|
|
7526
7535
|
};
|
|
7527
|
-
let a =
|
|
7536
|
+
let a = nc(e);
|
|
7528
7537
|
return {
|
|
7529
7538
|
field: a?.field,
|
|
7530
7539
|
value: a?.value ?? e
|
|
7531
7540
|
};
|
|
7532
|
-
},
|
|
7541
|
+
}, hc = (e, t, n) => {
|
|
7533
7542
|
let r = (e) => {
|
|
7534
7543
|
if (!e) return;
|
|
7535
|
-
let i =
|
|
7544
|
+
let i = ic(e, ""), a = rc(e);
|
|
7536
7545
|
if (i === t && a === n) return e.value;
|
|
7537
7546
|
for (let t of e.children ?? []) {
|
|
7538
7547
|
let e = r(t);
|
|
@@ -7544,9 +7553,9 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7544
7553
|
if (e) return e;
|
|
7545
7554
|
}
|
|
7546
7555
|
return `__${t}__${n}`;
|
|
7547
|
-
},
|
|
7556
|
+
}, gc = (e) => (e ?? []).flatMap((e) => [...e.state === "deselected" ? [e] : [], ...gc(e.children)]), _c = (e, t) => {
|
|
7548
7557
|
if (e.state !== "selected") return null;
|
|
7549
|
-
let { field: n, value: r } =
|
|
7558
|
+
let { field: n, value: r } = mc(e.id, t);
|
|
7550
7559
|
if (!n) return null;
|
|
7551
7560
|
let i = [{
|
|
7552
7561
|
colId: n,
|
|
@@ -7554,8 +7563,8 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7554
7563
|
filterType: "text",
|
|
7555
7564
|
type: "equals"
|
|
7556
7565
|
}];
|
|
7557
|
-
for (let n of
|
|
7558
|
-
let e =
|
|
7566
|
+
for (let n of gc(e.children)) {
|
|
7567
|
+
let e = mc(n.id, t);
|
|
7559
7568
|
e.field && i.push({
|
|
7560
7569
|
colId: e.field,
|
|
7561
7570
|
filter: e.value,
|
|
@@ -7568,10 +7577,10 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7568
7577
|
filterType: "join",
|
|
7569
7578
|
type: "AND"
|
|
7570
7579
|
};
|
|
7571
|
-
},
|
|
7572
|
-
let t =
|
|
7580
|
+
}, vc = (e) => {
|
|
7581
|
+
let t = dc(e.colDef), n = cc(e.baseModel, t);
|
|
7573
7582
|
if (!t.length) return n;
|
|
7574
|
-
let r = e.state.map((t) =>
|
|
7583
|
+
let r = e.state.map((t) => _c(t, e.options)).filter((e) => !!e);
|
|
7575
7584
|
if (!r.length) return n;
|
|
7576
7585
|
let i = r.length === 1 ? r[0] : {
|
|
7577
7586
|
conditions: r,
|
|
@@ -7583,17 +7592,17 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7583
7592
|
filterType: "join",
|
|
7584
7593
|
type: "AND"
|
|
7585
7594
|
} : i;
|
|
7586
|
-
},
|
|
7595
|
+
}, yc = (e, t, n) => {
|
|
7587
7596
|
if (!e) return [];
|
|
7588
7597
|
let r = e;
|
|
7589
|
-
if (
|
|
7598
|
+
if (oc(e)) {
|
|
7590
7599
|
let e = r.conditions ?? [];
|
|
7591
7600
|
if (r.type === "AND") {
|
|
7592
7601
|
let r = e.find((e) => {
|
|
7593
7602
|
let r = e;
|
|
7594
7603
|
return r.filterType !== "join" && typeof r.colId == "string" && t.has(r.colId) && r.type === "equals" && !n.has(r.colId);
|
|
7595
7604
|
});
|
|
7596
|
-
return e.flatMap((e) =>
|
|
7605
|
+
return e.flatMap((e) => yc(e, t, n).map((e) => ({
|
|
7597
7606
|
...e,
|
|
7598
7607
|
parentEquals: e.parentEquals || (r?.colId ? {
|
|
7599
7608
|
colId: r.colId,
|
|
@@ -7601,20 +7610,20 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7601
7610
|
} : void 0)
|
|
7602
7611
|
})));
|
|
7603
7612
|
}
|
|
7604
|
-
return e.flatMap((e) =>
|
|
7613
|
+
return e.flatMap((e) => yc(e, t, n));
|
|
7605
7614
|
}
|
|
7606
7615
|
return r.colId && t.has(r.colId) ? [{
|
|
7607
7616
|
colId: r.colId,
|
|
7608
7617
|
filter: r.filter == null ? void 0 : String(r.filter),
|
|
7609
7618
|
type: r.type
|
|
7610
7619
|
}] : [];
|
|
7611
|
-
},
|
|
7612
|
-
let t =
|
|
7620
|
+
}, bc = (e) => {
|
|
7621
|
+
let t = dc(e.colDef);
|
|
7613
7622
|
if (!t.length) return [];
|
|
7614
|
-
let n = new Set(
|
|
7623
|
+
let n = new Set(uc(e.colDef.context?.aggregateFieldHierarchy)), r = fc(e.colDef), i = yc(e.model, new Set(t), n), a = /* @__PURE__ */ new Map();
|
|
7615
7624
|
for (let t of i) {
|
|
7616
7625
|
if (!t.filter) continue;
|
|
7617
|
-
let n =
|
|
7626
|
+
let n = hc(e.options, t.colId, String(t.filter));
|
|
7618
7627
|
if (t.type === "equals") {
|
|
7619
7628
|
let e = a.get(n);
|
|
7620
7629
|
a.set(n, {
|
|
@@ -7625,7 +7634,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7625
7634
|
continue;
|
|
7626
7635
|
}
|
|
7627
7636
|
if (t.type === "notEqual" && t.parentEquals?.filter && r) {
|
|
7628
|
-
let r =
|
|
7637
|
+
let r = hc(e.options, t.parentEquals.colId, String(t.parentEquals.filter)), i = a.get(r) ?? {
|
|
7629
7638
|
children: [],
|
|
7630
7639
|
id: r,
|
|
7631
7640
|
state: "selected"
|
|
@@ -7637,17 +7646,17 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7637
7646
|
}
|
|
7638
7647
|
}
|
|
7639
7648
|
return [...a.values()];
|
|
7640
|
-
},
|
|
7649
|
+
}, xc = (e, t, n) => {
|
|
7641
7650
|
let r = [e, ...t ?? []].filter((e) => !!e);
|
|
7642
7651
|
if (r.length <= 1) return "Search";
|
|
7643
7652
|
let i = /* @__PURE__ */ new Set(), a = r.flatMap((e) => i.has(e) ? [] : (i.add(e), [n(e) || e]));
|
|
7644
7653
|
return a.length ? `Search ${a.join(", ")}` : "Search";
|
|
7645
|
-
},
|
|
7646
|
-
if (!r ||
|
|
7654
|
+
}, Sc = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLocaleLowerCase(), Cc = ({ fallbackSubText: e, getDisplayName: t, matchedField: n, matchedValue: r, primaryText: i, showPrefix: a = !0 }) => {
|
|
7655
|
+
if (!r || Sc(i) === Sc(r)) return e;
|
|
7647
7656
|
if (!a || !n) return r;
|
|
7648
7657
|
let o = t(n);
|
|
7649
7658
|
return o ? `${o}: ${r}` : r;
|
|
7650
|
-
},
|
|
7659
|
+
}, wc = (e) => e ? Array.isArray(e) ? { values: e } : e : { values: [] }, Tc = (e, t) => t ?? e, Ec = (e) => Object.fromEntries(Object.entries(e).map(([e, t]) => [e, [...t]])), Dc = (e) => {
|
|
7651
7660
|
let t = /* @__PURE__ */ new Map();
|
|
7652
7661
|
for (let n of e) {
|
|
7653
7662
|
if (!n) continue;
|
|
@@ -7659,34 +7668,34 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7659
7668
|
t.set(n.value, {
|
|
7660
7669
|
...e,
|
|
7661
7670
|
...n,
|
|
7662
|
-
children:
|
|
7663
|
-
totalChildCount:
|
|
7671
|
+
children: Dc([...e.children ?? [], ...n.children ?? []]),
|
|
7672
|
+
totalChildCount: Tc(e.totalChildCount, n.totalChildCount)
|
|
7664
7673
|
});
|
|
7665
7674
|
}
|
|
7666
7675
|
return [...t.values()];
|
|
7667
|
-
},
|
|
7676
|
+
}, Oc = (e, t) => {
|
|
7668
7677
|
for (let n of e ?? []) {
|
|
7669
7678
|
if (!n) continue;
|
|
7670
7679
|
if (n.value === t) return n;
|
|
7671
|
-
let e =
|
|
7680
|
+
let e = Oc(n.children, t);
|
|
7672
7681
|
if (e) return e;
|
|
7673
7682
|
}
|
|
7674
|
-
},
|
|
7683
|
+
}, kc = (e, t, n) => {
|
|
7675
7684
|
if (!e || t === null) return !1;
|
|
7676
7685
|
if (e.value === t) return !0;
|
|
7677
|
-
let r =
|
|
7678
|
-
return r !== null && r === t ||
|
|
7679
|
-
},
|
|
7680
|
-
let r =
|
|
7686
|
+
let r = rc(e);
|
|
7687
|
+
return r !== null && r === t || ac(e, e.colField ?? n, t, n) ? !0 : e.children?.some((e) => kc(e, t, n)) ?? !1;
|
|
7688
|
+
}, Ac = (e, t, n) => {
|
|
7689
|
+
let r = Oc(n, t) ?? null, i = r?.children ?? n.filter(Boolean);
|
|
7681
7690
|
return e.map((e) => e && (e.value === t ? {
|
|
7682
7691
|
...e,
|
|
7683
|
-
children:
|
|
7684
|
-
totalChildCount:
|
|
7692
|
+
children: Dc([...e.children ?? [], ...i]),
|
|
7693
|
+
totalChildCount: Tc(e.totalChildCount, r?.totalChildCount)
|
|
7685
7694
|
} : e.children?.length ? {
|
|
7686
7695
|
...e,
|
|
7687
|
-
children:
|
|
7696
|
+
children: Ac(e.children, t, n).filter((e) => !!e)
|
|
7688
7697
|
} : e));
|
|
7689
|
-
},
|
|
7698
|
+
}, jc = (e, t) => `${e}::${t}`, Mc = () => {
|
|
7690
7699
|
let e = O(null), t = O(null), n = O(), r = O({}), i = O({}), a = O({}), o = O({}), s = O({}), c = O({}), l = O({}), u = O({}), d = O({}), f = O({}), p = O({}), m = O({}), h = O({}), g = O({}), _ = O(), v = O({}), y = (e) => {
|
|
7691
7700
|
_.value = e;
|
|
7692
7701
|
}, b = (e) => r.value[e] ?? [], x = (e, t) => {
|
|
@@ -7695,11 +7704,11 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7695
7704
|
let r = n ? o : i;
|
|
7696
7705
|
r.value[e] = t;
|
|
7697
7706
|
}, w = () => {
|
|
7698
|
-
o.value =
|
|
7707
|
+
o.value = Ec(i.value), s.value = Ec(a.value);
|
|
7699
7708
|
}, T = () => {
|
|
7700
7709
|
o.value = {}, s.value = {};
|
|
7701
7710
|
}, E = () => {
|
|
7702
|
-
i.value =
|
|
7711
|
+
i.value = Ec(o.value), a.value = Ec(s.value), T();
|
|
7703
7712
|
}, D = (e, t) => {
|
|
7704
7713
|
c.value[e] = t;
|
|
7705
7714
|
}, k = (e, t) => `${t ? "append" : "initial"}::${e}`, A = (e, t) => {
|
|
@@ -7721,7 +7730,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7721
7730
|
if (!o) return [];
|
|
7722
7731
|
let s = n.query ?? c.value[n.field] ?? void 0;
|
|
7723
7732
|
c.value[n.field] = s;
|
|
7724
|
-
let l = n.parentId ?
|
|
7733
|
+
let l = n.parentId ? Oc(r.value[n.field], n.parentId) : void 0, u = n.offset ?? (n.parentId ? l?.children?.length ?? 0 : n.reason === "load-more" ? (r.value[n.field] ?? []).filter(Boolean).length : 0), v = n.reason === "load-more" || n.reason === "child-load-more", y = A(n.field, v), b = n.parentId ? jc(n.field, n.parentId) : n.field, x = (h.value[b] ?? 0) + 1;
|
|
7725
7734
|
h.value[b] = x;
|
|
7726
7735
|
try {
|
|
7727
7736
|
let c = await o({
|
|
@@ -7732,17 +7741,17 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7732
7741
|
selectedValues: n.selectedValues ?? i.value[n.field] ?? []
|
|
7733
7742
|
});
|
|
7734
7743
|
if (h.value[b] !== x) return [];
|
|
7735
|
-
let l =
|
|
7744
|
+
let l = wc(c);
|
|
7736
7745
|
if (n.parentId) {
|
|
7737
|
-
let e =
|
|
7746
|
+
let e = jc(n.field, n.parentId);
|
|
7738
7747
|
p.value[e] = l.hasMore, m.value[e] = l.totalCount;
|
|
7739
7748
|
} else d.value[n.field] = l.hasMore, f.value[n.field] = l.totalCount;
|
|
7740
7749
|
let _ = a.value[n.field] ?? [], y;
|
|
7741
|
-
y = n.parentId ?
|
|
7750
|
+
y = n.parentId ? Ac(r.value[n.field] ?? [], n.parentId, l.values) : v ? Dc([...r.value[n.field] ?? [], ...l.values]) : l.values;
|
|
7742
7751
|
for (let e of _) {
|
|
7743
7752
|
if (!e) continue;
|
|
7744
|
-
let t =
|
|
7745
|
-
y.some((e) =>
|
|
7753
|
+
let t = rc(e) ?? e.value;
|
|
7754
|
+
y.some((e) => kc(e, t, n.field)) || y.push(e);
|
|
7746
7755
|
}
|
|
7747
7756
|
return r.value[n.field] = y, g.value[n.field] = !1, y.filter((e) => !!e).map((e) => e.value);
|
|
7748
7757
|
} finally {
|
|
@@ -7775,7 +7784,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7775
7784
|
stagedFilterSelectedMetadataMap: s,
|
|
7776
7785
|
stagedFilterSelectedValueMap: o
|
|
7777
7786
|
};
|
|
7778
|
-
},
|
|
7787
|
+
}, Nc = () => {
|
|
7779
7788
|
let e = (e, n) => {
|
|
7780
7789
|
let i = e || { queryTerms: [] }, a = n.queryTerm || {};
|
|
7781
7790
|
return t(n) && !r(e, n) && i.queryTerms.push(a), i;
|
|
@@ -7789,13 +7798,13 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7789
7798
|
return r !== -1 && e.queryTerms.splice(r, 1), e;
|
|
7790
7799
|
}
|
|
7791
7800
|
};
|
|
7792
|
-
},
|
|
7801
|
+
}, Pc = { class: "pv-flex" }, Fc = { class: "pv-text-body-md" }, Ic = ["textContent"], Lc = {
|
|
7793
7802
|
key: 0,
|
|
7794
7803
|
class: "pv-text-body-xs"
|
|
7795
|
-
},
|
|
7804
|
+
}, Rc = { key: 0 }, zc = {
|
|
7796
7805
|
class: "pv-text-subdued pv-text-body-xs",
|
|
7797
7806
|
style: { "font-weight": "500" }
|
|
7798
|
-
},
|
|
7807
|
+
}, Bc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7799
7808
|
__name: "QueryBuilderMenuOptionRenderer",
|
|
7800
7809
|
props: {
|
|
7801
7810
|
id: {},
|
|
@@ -7841,13 +7850,13 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7841
7850
|
bold: !1
|
|
7842
7851
|
}), n;
|
|
7843
7852
|
});
|
|
7844
|
-
return (e, n) => (E(), o("div", null, [s("div",
|
|
7853
|
+
return (e, n) => (E(), o("div", null, [s("div", Pc, [u(En, { name: p.value }, null, 8, ["name"]), s("div", null, [s("p", Fc, [(E(!0), o(t, null, k(m.value, (e, t) => (E(), o("span", {
|
|
7845
7854
|
key: t,
|
|
7846
7855
|
style: x({ fontWeight: e.bold ? "bold" : void 0 }),
|
|
7847
7856
|
textContent: P(e.text)
|
|
7848
|
-
}, null, 12,
|
|
7857
|
+
}, null, 12, Ic))), 128))]), f.value ? (E(), o("p", Lc, [c.value ? a("", !0) : (E(), o("span", Rc, "Search in ")), s("span", zc, P(f.value), 1)])) : a("", !0)])])]));
|
|
7849
7858
|
}
|
|
7850
|
-
}), [["__scopeId", "data-v-ff951d17"]]),
|
|
7859
|
+
}), [["__scopeId", "data-v-ff951d17"]]), Vc = /* @__PURE__ */ d({
|
|
7851
7860
|
__name: "QueryFormatter",
|
|
7852
7861
|
props: /* @__PURE__ */ g({ queryTermDisplayLimit: { default: 3 } }, {
|
|
7853
7862
|
modelValue: { required: !0 },
|
|
@@ -7861,7 +7870,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7861
7870
|
}),
|
|
7862
7871
|
emits: ["update:modelValue", "update:wrap-content"],
|
|
7863
7872
|
setup(e) {
|
|
7864
|
-
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } =
|
|
7873
|
+
let n = e, s = R(e, "modelValue"), c = R(e, "wrap-content"), { removeQueryOption: l } = Nc(), u = r(() => {
|
|
7865
7874
|
let e = s.value?.queryTerms || [];
|
|
7866
7875
|
return c.value ? e : e.slice(0, n.queryTermDisplayLimit);
|
|
7867
7876
|
}), d = r(() => (s.value?.queryTerms.length || 0) - u.value.length), f = (e) => e.queryField && !e.exactMatch ? `${e.queryDisplayField || e.queryField}: '${e.queryText}'` : e.queryText || "", p = (e) => e.exactMatch ? "primary" : "tertiary", m = (e) => {
|
|
@@ -7877,7 +7886,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7877
7886
|
};
|
|
7878
7887
|
l(s.value, t);
|
|
7879
7888
|
};
|
|
7880
|
-
return (e, n) => (E(), o(t, null, [(E(!0), o(t, null, k(u.value, (e, t) => (E(), i(
|
|
7889
|
+
return (e, n) => (E(), o(t, null, [(E(!0), o(t, null, k(u.value, (e, t) => (E(), i(Cs, {
|
|
7881
7890
|
key: `${t}-${e.queryText}`,
|
|
7882
7891
|
variant: p(e),
|
|
7883
7892
|
label: f(e),
|
|
@@ -7887,23 +7896,23 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7887
7896
|
"variant",
|
|
7888
7897
|
"label",
|
|
7889
7898
|
"onHandleClose"
|
|
7890
|
-
]))), 128)), d.value > 0 ? (E(), i(
|
|
7899
|
+
]))), 128)), d.value > 0 ? (E(), i(Cs, {
|
|
7891
7900
|
key: 0,
|
|
7892
7901
|
label: `+${d.value}`,
|
|
7893
7902
|
onHandleClick: n[0] ||= (e) => c.value = !0
|
|
7894
7903
|
}, null, 8, ["label"])) : a("", !0)], 64));
|
|
7895
7904
|
}
|
|
7896
|
-
}),
|
|
7905
|
+
}), Hc = [
|
|
7897
7906
|
"disabled",
|
|
7898
7907
|
"placeholder",
|
|
7899
7908
|
"data-invalid"
|
|
7900
|
-
],
|
|
7909
|
+
], Uc = {
|
|
7901
7910
|
key: 2,
|
|
7902
7911
|
class: "pv-text-red pv-text-body-xs"
|
|
7903
|
-
},
|
|
7912
|
+
}, Wc = {
|
|
7904
7913
|
key: 1,
|
|
7905
7914
|
class: "pv-text-center"
|
|
7906
|
-
},
|
|
7915
|
+
}, Gc = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
7907
7916
|
__name: "PvQueryBuilderInput",
|
|
7908
7917
|
props: /* @__PURE__ */ g({
|
|
7909
7918
|
placeholder: { default: "Search" },
|
|
@@ -7951,7 +7960,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
7951
7960
|
"update:options"
|
|
7952
7961
|
],
|
|
7953
7962
|
setup(e) {
|
|
7954
|
-
let n = e, c = { renderer:
|
|
7963
|
+
let n = e, c = { renderer: Bc }, l = z("search-input"), d = R(e, "searchText"), f = R(e, "query"), p = R(e, "options"), { addQueryOption: m, containsQueryOption: h } = Nc(), g = O(!1), v = O(!1), b = O(!1), S = r(() => f.value === null ? n.placeholder : ""), C = O(null), w = r(() => C.value !== null && C.value !== "" && !v.value), T = () => {
|
|
7955
7964
|
f.value = null, d.value = "", C.value = null, b.value = !1;
|
|
7956
7965
|
};
|
|
7957
7966
|
n.enableCustomOptionsInput && ae("Enter", () => {
|
|
@@ -8025,7 +8034,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8025
8034
|
"--inset-size": "4px",
|
|
8026
8035
|
"--flex-gap": "4px"
|
|
8027
8036
|
}, e.enableWrapQueryTerms || b.value ? "flex-wrap: wrap;" : "flex-wrap: nowrap;"])
|
|
8028
|
-
}, [u(
|
|
8037
|
+
}, [u(Vc, {
|
|
8029
8038
|
modelValue: f.value,
|
|
8030
8039
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = e,
|
|
8031
8040
|
"wrap-content": b.value,
|
|
@@ -8045,7 +8054,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8045
8054
|
"data-invalid": w.value ? "true" : void 0,
|
|
8046
8055
|
onFocus: F,
|
|
8047
8056
|
onBlur: F
|
|
8048
|
-
}, null, 40,
|
|
8057
|
+
}, null, 40, Hc), [[te, d.value]])], 4),
|
|
8049
8058
|
f.value && !e.hideClearButton ? (E(), i(An, {
|
|
8050
8059
|
key: 1,
|
|
8051
8060
|
variant: "ghost",
|
|
@@ -8053,8 +8062,8 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8053
8062
|
size: "md",
|
|
8054
8063
|
onClick: T
|
|
8055
8064
|
})) : a("", !0),
|
|
8056
|
-
w.value ? (E(), o("p",
|
|
8057
|
-
A.value.length > 0 || e.optionsLoading ? (E(), i(
|
|
8065
|
+
w.value ? (E(), o("p", Uc, P(C.value), 1)) : a("", !0),
|
|
8066
|
+
A.value.length > 0 || e.optionsLoading ? (E(), i(_s, {
|
|
8058
8067
|
key: 3,
|
|
8059
8068
|
class: y({ "pv-hide": !g.value }),
|
|
8060
8069
|
"css-custom-properties": {
|
|
@@ -8063,7 +8072,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8063
8072
|
},
|
|
8064
8073
|
isList: !0
|
|
8065
8074
|
}, {
|
|
8066
|
-
default: H(() => [e.optionsLoading ? (E(), o("div",
|
|
8075
|
+
default: H(() => [e.optionsLoading ? (E(), o("div", Wc, [u(St, { variant: "dark" })])) : (E(!0), o(t, { key: 0 }, k(A.value, (e, t) => (E(), i(Xa, _({
|
|
8067
8076
|
key: `${t}-${e.searchText}`,
|
|
8068
8077
|
ref_for: !0
|
|
8069
8078
|
}, e, {
|
|
@@ -8074,27 +8083,27 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8074
8083
|
}, 8, ["class"])) : a("", !0)
|
|
8075
8084
|
], 32)), [[I(Y), j]]);
|
|
8076
8085
|
}
|
|
8077
|
-
}), [["__scopeId", "data-v-4decbec2"]]),
|
|
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 = {
|
|
8078
8087
|
class: "pv-flex",
|
|
8079
8088
|
style: { "--flex-wrap": "nowrap" }
|
|
8080
|
-
},
|
|
8089
|
+
}, xl = ["id"], Sl = {
|
|
8081
8090
|
key: 1,
|
|
8082
8091
|
style: { "padding-left": "16px" }
|
|
8083
|
-
},
|
|
8092
|
+
}, Cl = [
|
|
8084
8093
|
"checked",
|
|
8085
8094
|
"disabled",
|
|
8086
8095
|
"onChange"
|
|
8087
|
-
],
|
|
8096
|
+
], wl = { class: "pv-text-body-md" }, Tl = { key: 2 }, El = {
|
|
8088
8097
|
key: 0,
|
|
8089
8098
|
class: "pv-text-subdued pv-text-body-xxs"
|
|
8090
|
-
},
|
|
8099
|
+
}, Dl = /* @__PURE__ */ d({
|
|
8091
8100
|
__name: "GroupBySelector",
|
|
8092
8101
|
props: {
|
|
8093
8102
|
rowGroupLimit: {},
|
|
8094
8103
|
enableFocusView: { type: Boolean }
|
|
8095
8104
|
},
|
|
8096
8105
|
setup(e) {
|
|
8097
|
-
let n = m(
|
|
8106
|
+
let n = m(Yc, O(null)), c = m($c, O([])), l = m(el, O([])), u = e;
|
|
8098
8107
|
V(l, () => {}, { deep: !0 });
|
|
8099
8108
|
let d = (e) => l.value.includes(e || ""), f = (e, t) => {
|
|
8100
8109
|
n.value && (t ? n.value.addRowGroupColumns([e]) : n.value.removeRowGroupColumns([e]));
|
|
@@ -8118,7 +8127,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8118
8127
|
let t = e.findIndex((e) => e === "divider"), r = e.slice(0, t).slice(0, u.rowGroupLimit).map((e) => e.replace("group-by-list-item-", ""));
|
|
8119
8128
|
n.value && n.value.setRowGroupColumns(r);
|
|
8120
8129
|
};
|
|
8121
|
-
return (n, r) => (E(), i(
|
|
8130
|
+
return (n, r) => (E(), i(xs, {
|
|
8122
8131
|
isList: !0,
|
|
8123
8132
|
isSortable: !0,
|
|
8124
8133
|
popoverCssProperties: { width: "auto" },
|
|
@@ -8126,7 +8135,7 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8126
8135
|
class: y(p.value),
|
|
8127
8136
|
onListOrderUpdated: x
|
|
8128
8137
|
}, {
|
|
8129
|
-
trigger: H(() => [s("div",
|
|
8138
|
+
trigger: H(() => [s("div", bl, [r[0] ||= s("p", { class: "pv-truncate pv-text-body-md" }, "Compare", -1), I(l).length > 0 ? (E(), i(I(Dn), {
|
|
8130
8139
|
key: 0,
|
|
8131
8140
|
value: I(l).length,
|
|
8132
8141
|
variant: "tertiary"
|
|
@@ -8139,25 +8148,25 @@ var Xs = "__pv_filter_panel_scoped_value__", Zs = (e) => typeof e == "object" &&
|
|
|
8139
8148
|
key: 0,
|
|
8140
8149
|
name: "reorder",
|
|
8141
8150
|
class: "pv-text-subdued"
|
|
8142
|
-
})) : (E(), o("span",
|
|
8151
|
+
})) : (E(), o("span", Sl)),
|
|
8143
8152
|
s("input", {
|
|
8144
8153
|
type: "checkbox",
|
|
8145
8154
|
class: "pv-checkbox",
|
|
8146
8155
|
checked: d(e.value),
|
|
8147
8156
|
disabled: !d(e.value) && h.value,
|
|
8148
8157
|
onChange: (t) => f(e.value, t.target.checked)
|
|
8149
|
-
}, null, 40,
|
|
8150
|
-
s("span",
|
|
8151
|
-
d(e.value) ? (E(), o("sup",
|
|
8152
|
-
], 2)], 8,
|
|
8158
|
+
}, null, 40, Cl),
|
|
8159
|
+
s("span", wl, P(e.label), 1),
|
|
8160
|
+
d(e.value) ? (E(), o("sup", Tl, P(n + 1), 1)) : a("", !0)
|
|
8161
|
+
], 2)], 8, xl))], 64))), 128)), h.value ? (E(), o("p", El, " Supports " + P(e.rowGroupLimit) + " compare levels ", 1)) : a("", !0)]),
|
|
8153
8162
|
_: 1
|
|
8154
8163
|
}, 8, ["class"]));
|
|
8155
8164
|
}
|
|
8156
|
-
}),
|
|
8157
|
-
function
|
|
8158
|
-
return E(), o("div",
|
|
8165
|
+
}), Ol = {}, kl = { class: "ag-custom-loading-cell pv-shimmer" };
|
|
8166
|
+
function Al(e, t) {
|
|
8167
|
+
return E(), o("div", kl);
|
|
8159
8168
|
}
|
|
8160
|
-
var
|
|
8169
|
+
var jl = /* @__PURE__ */ Xt(Ol, [["render", Al]]), Ml = ["innerHTML"], Nl = { key: 2 }, Pl = /* @__PURE__ */ d({
|
|
8161
8170
|
__name: "ColDefCellRenderer",
|
|
8162
8171
|
props: {
|
|
8163
8172
|
colDef: {},
|
|
@@ -8171,9 +8180,9 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8171
8180
|
}, null, 8, ["params"])) : a.value === "function" && typeof c.value == "string" ? (E(), o("span", {
|
|
8172
8181
|
key: 1,
|
|
8173
8182
|
innerHTML: c.value
|
|
8174
|
-
}, null, 8,
|
|
8183
|
+
}, null, 8, Ml)) : a.value === "string" ? (E(), o("span", Nl, P(s.value), 1)) : A(t.$slots, "default", { key: 3 });
|
|
8175
8184
|
}
|
|
8176
|
-
}),
|
|
8185
|
+
}), Fl = (e = null, t = !1) => {
|
|
8177
8186
|
let n = O(e?.focuses || []), i = O(e?.focusType || null), a = e?.focusRequired ?? !1, o = r(() => n.value), s = r(() => i.value), c = (e) => {
|
|
8178
8187
|
e !== i.value && (i.value = e || null, n.value = []);
|
|
8179
8188
|
}, l = (e) => {
|
|
@@ -8197,21 +8206,21 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8197
8206
|
setFocuses: l,
|
|
8198
8207
|
canRemoveFocus: () => a ? n.value.length > 1 : !0
|
|
8199
8208
|
};
|
|
8200
|
-
},
|
|
8209
|
+
}, Il = () => m(qc, null) || Fl(), Ll = { class: "pv-table-group-cell" }, Rl = { class: "pv-text-body-xxs pv-text-subdued" }, zl = { key: 0 }, Bl = { style: { "line-height": "20px" } }, Vl = { class: "pv-text-title-md" }, Hl = {
|
|
8201
8210
|
key: 0,
|
|
8202
8211
|
class: "pv-flex",
|
|
8203
8212
|
style: {
|
|
8204
8213
|
flex: "1",
|
|
8205
8214
|
"--flex-justify": "flex-end"
|
|
8206
8215
|
}
|
|
8207
|
-
},
|
|
8216
|
+
}, Ul = {
|
|
8208
8217
|
key: 0,
|
|
8209
8218
|
class: "pv-table-row-number"
|
|
8210
|
-
},
|
|
8219
|
+
}, Wl = /* @__PURE__ */ d({
|
|
8211
8220
|
__name: "GroupedCellRenderer",
|
|
8212
8221
|
props: { params: {} },
|
|
8213
8222
|
setup(e) {
|
|
8214
|
-
let n = e, i = m(
|
|
8223
|
+
let n = e, i = m(el, O([])), c = m(tl, O(null)), d = m(nl, O({})), f = K(n.params, "rowNode"), p = r(() => !n.params.displayBaseAggregationsOnly || f.value.level === i.value.length - 1), h = r(() => n.params.rowNode.group), g = r(() => {
|
|
8215
8224
|
let e = f.value.data;
|
|
8216
8225
|
if (e?.bucketMin !== void 0 && e?.bucketMax !== void 0) {
|
|
8217
8226
|
let t = f.value.rowGroupColumn?.getColDef()?.valueFormatter;
|
|
@@ -8233,7 +8242,7 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8233
8242
|
}), S = (e) => {
|
|
8234
8243
|
let t = e.node.expanded, n = e.node.rowIndex;
|
|
8235
8244
|
n != null && (d.value[n] = t);
|
|
8236
|
-
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } =
|
|
8245
|
+
}, { isFocused: T, computedFocuses: D, removeFocus: k, canRemoveFocus: A } = Il(), j = r(() => T(f.value.key, f.value.field) ? "pv-flex" : ""), M = r(() => {
|
|
8237
8246
|
let e = D.value;
|
|
8238
8247
|
return f.value.key && e.includes(f.value.key);
|
|
8239
8248
|
});
|
|
@@ -8248,7 +8257,7 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8248
8257
|
}), (n, r) => (E(), o(t, null, [h.value ? (E(), o("div", {
|
|
8249
8258
|
key: 0,
|
|
8250
8259
|
class: y(j.value)
|
|
8251
|
-
}, [s("div",
|
|
8260
|
+
}, [s("div", Ll, [s("p", Rl, [l(P(I(f).rowGroupColumn?.getColDef().headerName) + " ", 1), e.params.displayCount && p.value && b.value > 0 ? (E(), o("span", zl, " (" + P(b.value.toLocaleString()) + ") ", 1)) : a("", !0)]), s("div", Bl, [s("p", Vl, P(g.value), 1)])]), M.value && I(A)() ? (E(), o("div", Hl, [u(oa, {
|
|
8252
8261
|
variant: "dark",
|
|
8253
8262
|
tooltipPosition: "center-left",
|
|
8254
8263
|
size: "sm"
|
|
@@ -8262,13 +8271,13 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8262
8271
|
}, null, 8, ["class"])]),
|
|
8263
8272
|
"tooltip-content": H(() => [s("span", null, " Remove " + P(e.params.focusText || "Focus"), 1)]),
|
|
8264
8273
|
_: 1
|
|
8265
|
-
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span",
|
|
8274
|
+
})])) : a("", !0)], 2)) : a("", !0), s("div", null, [s("p", null, [e.params.displayRowNumber && x.value ? (E(), o("span", Ul, P(x.value), 1)) : a("", !0), l(" " + P(v.value), 1)])])], 64));
|
|
8266
8275
|
}
|
|
8267
|
-
}),
|
|
8276
|
+
}), Gl = /* @__PURE__ */ d({
|
|
8268
8277
|
__name: "AutoGroupColDefRenderer",
|
|
8269
8278
|
props: { params: {} },
|
|
8270
8279
|
setup(e) {
|
|
8271
|
-
let t = e, n = m(
|
|
8280
|
+
let t = e, n = m(tl, O(null)), a = r(() => t.params.rowNode.group), o = r(() => a.value ? t.params.cellParams.node?.rowGroupColumn?.getColDef() ?? null : null), s = r(() => a.value ? null : n.value?.getColDef() ?? null), c = r(() => {
|
|
8272
8281
|
let e = n.value;
|
|
8273
8282
|
if (!e) return t.params.cellParams;
|
|
8274
8283
|
let r = e.getColDef(), i = e.getColId(), a = t.params.cellParams.data, o = a?.[i] ?? null, s = r.valueFormatter, c = null;
|
|
@@ -8287,36 +8296,36 @@ var kl = /* @__PURE__ */ Xt(El, [["render", Ol]]), Al = ["innerHTML"], jl = { ke
|
|
|
8287
8296
|
valueFormatted: c
|
|
8288
8297
|
};
|
|
8289
8298
|
});
|
|
8290
|
-
return (t, n) => a.value ? (E(), i(
|
|
8299
|
+
return (t, n) => a.value ? (E(), i(Pl, {
|
|
8291
8300
|
key: 0,
|
|
8292
8301
|
"col-def": o.value,
|
|
8293
8302
|
"cell-params": e.params.cellParams
|
|
8294
8303
|
}, {
|
|
8295
|
-
default: H(() => [u(
|
|
8304
|
+
default: H(() => [u(Wl, { params: e.params }, null, 8, ["params"])]),
|
|
8296
8305
|
_: 1
|
|
8297
|
-
}, 8, ["col-def", "cell-params"])) : (E(), i(
|
|
8306
|
+
}, 8, ["col-def", "cell-params"])) : (E(), i(Pl, {
|
|
8298
8307
|
key: 1,
|
|
8299
8308
|
"col-def": s.value,
|
|
8300
8309
|
"cell-params": c.value
|
|
8301
8310
|
}, {
|
|
8302
|
-
default: H(() => [u(
|
|
8311
|
+
default: H(() => [u(Wl, { params: e.params }, null, 8, ["params"])]),
|
|
8303
8312
|
_: 1
|
|
8304
8313
|
}, 8, ["col-def", "cell-params"]));
|
|
8305
8314
|
}
|
|
8306
8315
|
});
|
|
8307
8316
|
//#endregion
|
|
8308
8317
|
//#region src/functions/aggregations.ts
|
|
8309
|
-
function
|
|
8318
|
+
function Kl(e) {
|
|
8310
8319
|
let t = e.filter((e) => e != null && !isNaN(e)).sort((e, t) => e - t), n = t.length;
|
|
8311
8320
|
return n === 0 ? null : t[Math.floor(n / 2)];
|
|
8312
8321
|
}
|
|
8313
8322
|
//#endregion
|
|
8314
8323
|
//#region src/components/tables/PvDataTable/table-components/GroupAggCellRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
8315
|
-
var
|
|
8324
|
+
var ql = { style: { "line-height": "20px" } }, Jl = { class: "pv-text-subdued pv-text-body-xxs pv-relative" }, Yl = /* @__PURE__ */ d({
|
|
8316
8325
|
__name: "GroupAggCellRenderer",
|
|
8317
8326
|
props: { params: {} },
|
|
8318
8327
|
setup(e) {
|
|
8319
|
-
let t = e, n = m(
|
|
8328
|
+
let t = e, n = m(nl, O({})), i = r(() => {
|
|
8320
8329
|
let e = t.params.column?.getColDef(), n = $(e);
|
|
8321
8330
|
if (n.aggFuncDisplayName) return n.aggFuncDisplayName;
|
|
8322
8331
|
let r = t.params.column?.getAggFunc() || "agg";
|
|
@@ -8330,9 +8339,9 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8330
8339
|
}, c = r(() => t.params.node?.rowIndex), l = r(() => {
|
|
8331
8340
|
let e = !1;
|
|
8332
8341
|
return c.value != null && (e = c.value in n.value ? n.value[c.value] : !1), e;
|
|
8333
|
-
}), u = r(() =>
|
|
8342
|
+
}), u = r(() => jo(t.params.column?.getColDef())), d = r(() => {
|
|
8334
8343
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value || "";
|
|
8335
|
-
return e &&
|
|
8344
|
+
return e && jo(e) ? n.toLocaleString() : n;
|
|
8336
8345
|
}), f = r(() => ({
|
|
8337
8346
|
"flex-direction": u.value ? "row-reverse" : "row",
|
|
8338
8347
|
"--flex-justify": "space-between"
|
|
@@ -8343,20 +8352,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8343
8352
|
style: x(f.value),
|
|
8344
8353
|
class: "pv-flex",
|
|
8345
8354
|
ondblclick: a
|
|
8346
|
-
}, [s("div",
|
|
8355
|
+
}, [s("div", ql, [s("p", null, P(d.value), 1), s("p", Jl, P(i.value), 1)])], 4));
|
|
8347
8356
|
}
|
|
8348
|
-
}),
|
|
8357
|
+
}), Xl = {
|
|
8349
8358
|
agSetColumnFilter: "set",
|
|
8350
8359
|
agMultiColumnFilter: "multi",
|
|
8351
8360
|
agTextColumnFilter: "text"
|
|
8352
|
-
},
|
|
8361
|
+
}, Zl = (e) => !e || !e.filter ? null : e.filter in Xl ? Xl[e.filter] : null, Ql = (e) => e.filterParams?.filters?.findIndex((e) => e.filter === "agSetColumnFilter"), $l = (e, t) => {
|
|
8353
8362
|
if (!t || !t.field || !e || Object.keys(e).length === 0) return e;
|
|
8354
|
-
let n = e?.filterType || null, r =
|
|
8363
|
+
let n = e?.filterType || null, r = Zl(t);
|
|
8355
8364
|
if (!r || r === n) return e;
|
|
8356
8365
|
if (r !== "multi") return console.warn(`Cannot map filter for column ${t.field} with type ${n} to col def ${r}`), {};
|
|
8357
8366
|
let i = t.filterParams?.filters?.length, a = Array(i).fill(null);
|
|
8358
8367
|
if (e.filterType == "set") {
|
|
8359
|
-
let n = e.values || [], r =
|
|
8368
|
+
let n = e.values || [], r = Ql(t);
|
|
8360
8369
|
r > -1 && r < a.length && (a[r] = {
|
|
8361
8370
|
filterType: "set",
|
|
8362
8371
|
values: n
|
|
@@ -8366,7 +8375,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8366
8375
|
filterType: "multi",
|
|
8367
8376
|
filterModels: a
|
|
8368
8377
|
};
|
|
8369
|
-
},
|
|
8378
|
+
}, eu = (e, t) => {
|
|
8370
8379
|
let n = t.filter((e) => e !== null && e !== "");
|
|
8371
8380
|
return n.length === 0 ? null : n.length === 1 ? {
|
|
8372
8381
|
filterType: "text",
|
|
@@ -8383,18 +8392,18 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8383
8392
|
filter: t
|
|
8384
8393
|
}))
|
|
8385
8394
|
};
|
|
8386
|
-
},
|
|
8395
|
+
}, tu = (e) => {
|
|
8387
8396
|
let t = [];
|
|
8388
8397
|
return Object.keys(e).forEach((n) => {
|
|
8389
8398
|
let r = e[n];
|
|
8390
8399
|
if (r) {
|
|
8391
8400
|
if (r.filterType === "set" && r.values) {
|
|
8392
|
-
let e =
|
|
8401
|
+
let e = eu(n, r.values);
|
|
8393
8402
|
e && t.push(e);
|
|
8394
8403
|
} else if (r.filterType === "multi" && r.filterModels) {
|
|
8395
8404
|
let e = r.filterModels.find((e) => e && e.filterType === "set");
|
|
8396
8405
|
if (e?.values) {
|
|
8397
|
-
let r =
|
|
8406
|
+
let r = eu(n, e.values);
|
|
8398
8407
|
r && t.push(r);
|
|
8399
8408
|
}
|
|
8400
8409
|
}
|
|
@@ -8404,11 +8413,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8404
8413
|
type: "AND",
|
|
8405
8414
|
conditions: t
|
|
8406
8415
|
};
|
|
8407
|
-
},
|
|
8416
|
+
}, nu = (e, t, n = !1) => {
|
|
8408
8417
|
if (!e) return e;
|
|
8409
8418
|
let r = { ...e }, i = r.filter?.filterModel || {};
|
|
8410
8419
|
if (n) {
|
|
8411
|
-
let t = e?.filter?.advancedFilterModel, n =
|
|
8420
|
+
let t = e?.filter?.advancedFilterModel, n = tu(i), a = t || null, o = null;
|
|
8412
8421
|
return o = a && n ? {
|
|
8413
8422
|
filterType: "join",
|
|
8414
8423
|
type: "AND",
|
|
@@ -8421,12 +8430,12 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8421
8430
|
}
|
|
8422
8431
|
let a = {};
|
|
8423
8432
|
return Object.keys(i).forEach((e) => {
|
|
8424
|
-
a[e] =
|
|
8433
|
+
a[e] = $l(i[e] || {}, t.find((t) => t.field === e));
|
|
8425
8434
|
}), r.filter = {
|
|
8426
8435
|
...r.filter,
|
|
8427
8436
|
filterModel: a
|
|
8428
8437
|
}, r;
|
|
8429
|
-
},
|
|
8438
|
+
}, ru = (e) => {
|
|
8430
8439
|
if (!e || e.queryTerms.length === 0) return {};
|
|
8431
8440
|
let t = {};
|
|
8432
8441
|
return e.queryTerms.forEach((e) => {
|
|
@@ -8458,7 +8467,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8458
8467
|
};
|
|
8459
8468
|
}
|
|
8460
8469
|
}), t;
|
|
8461
|
-
},
|
|
8470
|
+
}, iu = (e) => {
|
|
8462
8471
|
if (!e || e.queryTerms.length === 0) return null;
|
|
8463
8472
|
let t = /* @__PURE__ */ new Map();
|
|
8464
8473
|
e.queryTerms.forEach((e) => {
|
|
@@ -8493,7 +8502,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8493
8502
|
type: "AND",
|
|
8494
8503
|
conditions: n
|
|
8495
8504
|
};
|
|
8496
|
-
},
|
|
8505
|
+
}, au = (e, t) => {
|
|
8497
8506
|
if (!e || e.filter == "agTextColumnFilter" && t.filterType == "text" || e.filter == "agSetColumnFilter" && t.filterType == "set" || e.filter == "agMultiColumnFilter" && t.filterType == "multi") return t;
|
|
8498
8507
|
if (e.filter != "agMultiColumnFilter") return console.error("Unsupported filter type for column", e, t), t;
|
|
8499
8508
|
let n = e.filterParams?.filters || [], r = Array(n.length).fill(null), i = n.findIndex((e) => e.filter == "agTextColumnFilter" && t.filterType == "text" ? !0 : e.filter == "agSetColumnFilter" && t.filterType == "set");
|
|
@@ -8501,26 +8510,26 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8501
8510
|
filterType: "multi",
|
|
8502
8511
|
filterModels: r
|
|
8503
8512
|
};
|
|
8504
|
-
},
|
|
8513
|
+
}, ou = (e, t) => {
|
|
8505
8514
|
if (!e || Object.keys(e).length === 0) return t;
|
|
8506
8515
|
if (e.filterType != t.filterType || e.filterType != "multi") return e;
|
|
8507
8516
|
let n = { ...e };
|
|
8508
8517
|
return t.filterModels?.forEach((e, t) => {
|
|
8509
8518
|
n.filterModels ||= [], n.filterModels[t] || (n.filterModels[t] = e);
|
|
8510
8519
|
}), n;
|
|
8511
|
-
},
|
|
8520
|
+
}, su = (e, t) => e ? "filterType" in e ? e.filterType === "join" ? e.conditions.some((e) => su(e, t)) : e.colId === t : t in e : !1, cu = (e, t, n) => {
|
|
8512
8521
|
let r = { ...t };
|
|
8513
8522
|
return !t || Object.keys(t).length === 0 ? n || {} : (!n || Object.keys(n).length === 0 || Object.keys(n).forEach((t) => {
|
|
8514
|
-
let i =
|
|
8515
|
-
r[t] =
|
|
8523
|
+
let i = au(e.find((e) => e.field === t), n[t]), a = r[t];
|
|
8524
|
+
r[t] = ou(a, i);
|
|
8516
8525
|
}), r);
|
|
8517
|
-
},
|
|
8526
|
+
}, lu = (e) => e.filter == "agSetColumnFilter" ? !0 : e.filter == "agMultiColumnFilter" ? Ql(e) !== void 0 && Ql(e) > -1 : !1, uu = (e, t) => {
|
|
8518
8527
|
let n = { ...e };
|
|
8519
8528
|
if (n.filter == "agSetColumnFilter") return n.filterParams = {
|
|
8520
8529
|
...n.filterParams,
|
|
8521
8530
|
values: t
|
|
8522
8531
|
}, n;
|
|
8523
|
-
let r =
|
|
8532
|
+
let r = Ql(e);
|
|
8524
8533
|
if (r !== void 0 && r > -1) {
|
|
8525
8534
|
let e = n.filterParams || {}, i = e.filters || [], a = i[r];
|
|
8526
8535
|
a.filterParams = {
|
|
@@ -8534,13 +8543,13 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8534
8543
|
};
|
|
8535
8544
|
}
|
|
8536
8545
|
return n;
|
|
8537
|
-
},
|
|
8546
|
+
}, du = async (e, t) => {
|
|
8538
8547
|
let n = t.field || "", r = await e.getColumnFilterInstance(n);
|
|
8539
8548
|
if (r?.filterType == "set") return r;
|
|
8540
8549
|
if (r?.filterType != "multi") return null;
|
|
8541
|
-
let i =
|
|
8550
|
+
let i = Ql(t);
|
|
8542
8551
|
return i !== void 0 && i > -1 ? r.getChildFilterInstance(i) : null;
|
|
8543
|
-
},
|
|
8552
|
+
}, fu = async (e, t, n) => {
|
|
8544
8553
|
let r = t.field || "", i = await e.getColumnFilterInstance(r);
|
|
8545
8554
|
if (i?.filterType == "set") return !n || n.length === 0 ? null : { values: n };
|
|
8546
8555
|
if (i?.filterType != "multi") return null;
|
|
@@ -8549,50 +8558,50 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8549
8558
|
filterType: "multi",
|
|
8550
8559
|
filterModels: Array(t.filterParams?.filters?.length).fill(null)
|
|
8551
8560
|
};
|
|
8552
|
-
let o =
|
|
8561
|
+
let o = Ql(t), s = !n || n.length === 0 ? null : {
|
|
8553
8562
|
filterType: "set",
|
|
8554
8563
|
values: n
|
|
8555
8564
|
};
|
|
8556
8565
|
return o !== void 0 && o > -1 && a && a.filterModels && (a.filterModels[o] = s), a;
|
|
8557
|
-
},
|
|
8566
|
+
}, pu = (e, t) => {
|
|
8558
8567
|
if (!e.field || !t || Object.entries(t).length === 0) return [];
|
|
8559
8568
|
let n = t[e.field];
|
|
8560
8569
|
if (!n) return [];
|
|
8561
8570
|
if (n.filterType === "set" && "values" in n) return n.values || [];
|
|
8562
8571
|
if (n.filterType === "multi") {
|
|
8563
|
-
let t =
|
|
8572
|
+
let t = Ql(e);
|
|
8564
8573
|
if (t !== void 0 && t > -1) {
|
|
8565
8574
|
let e = n.filterModels[t];
|
|
8566
8575
|
if (e && e.filterType === "set" && "values" in e) return e.values || [];
|
|
8567
8576
|
}
|
|
8568
8577
|
}
|
|
8569
8578
|
return [];
|
|
8570
|
-
},
|
|
8579
|
+
}, mu = (e) => !!e && "filterType" in e, hu = (e) => e.filterType === "join" ? e.conditions.some(hu) : "colId" in e, gu = (e) => e ? mu(e) ? !hu(e) : Object.keys(e).length === 0 : !0, _u = (e) => {
|
|
8571
8580
|
if (e === void 0) return "undefined";
|
|
8572
8581
|
if (typeof e != "object" || !e) return JSON.stringify(e) ?? String(e);
|
|
8573
|
-
if (Array.isArray(e)) return `[${e.map(
|
|
8582
|
+
if (Array.isArray(e)) return `[${e.map(_u).join(",")}]`;
|
|
8574
8583
|
let t = e;
|
|
8575
|
-
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${
|
|
8576
|
-
},
|
|
8584
|
+
return `{${Object.keys(t).sort().map((e) => `${JSON.stringify(e)}:${_u(t[e])}`).join(",")}}`;
|
|
8585
|
+
}, vu = (e) => {
|
|
8577
8586
|
if (e.filterType !== "join") return e;
|
|
8578
|
-
let t = e, n = [...t.conditions ?? []].map(
|
|
8587
|
+
let t = e, n = [...t.conditions ?? []].map(vu).sort((e, t) => _u(e).localeCompare(_u(t)));
|
|
8579
8588
|
return {
|
|
8580
8589
|
...t,
|
|
8581
8590
|
conditions: n
|
|
8582
8591
|
};
|
|
8583
|
-
},
|
|
8584
|
-
if (
|
|
8585
|
-
let n =
|
|
8586
|
-
if (n !==
|
|
8587
|
-
if (n) return tt(
|
|
8592
|
+
}, yu = (e, t) => {
|
|
8593
|
+
if (gu(e) && gu(t)) return !0;
|
|
8594
|
+
let n = mu(e);
|
|
8595
|
+
if (n !== mu(t)) return !1;
|
|
8596
|
+
if (n) return tt(vu(e), vu(t));
|
|
8588
8597
|
let r = e, i = t, a = r ? Object.keys(r) : [], o = i ? Object.keys(i) : [];
|
|
8589
8598
|
if (a.length !== o.length) return !1;
|
|
8590
8599
|
for (let e of a) if (!tt(r?.[e], i?.[e])) return !1;
|
|
8591
8600
|
return !0;
|
|
8592
|
-
},
|
|
8593
|
-
if (!t) return
|
|
8601
|
+
}, bu = (e, t, n) => {
|
|
8602
|
+
if (!t) return xu(e, n);
|
|
8594
8603
|
if (!e) return t;
|
|
8595
|
-
let r =
|
|
8604
|
+
let r = xu(e, n);
|
|
8596
8605
|
return r ? r.filterType === "join" && r.type === "AND" ? {
|
|
8597
8606
|
filterType: "join",
|
|
8598
8607
|
type: "AND",
|
|
@@ -8602,53 +8611,53 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8602
8611
|
type: "AND",
|
|
8603
8612
|
conditions: [r, t]
|
|
8604
8613
|
} : t;
|
|
8605
|
-
},
|
|
8614
|
+
}, xu = (e, t) => {
|
|
8606
8615
|
if (!e) return null;
|
|
8607
8616
|
if (e.filterType !== "join") return e.colId === t ? null : e;
|
|
8608
|
-
let n = e, r = n.conditions.map((e) =>
|
|
8617
|
+
let n = e, r = n.conditions.map((e) => xu(e, t)).filter((e) => e !== null);
|
|
8609
8618
|
return r.length === 0 ? null : r.length === 1 ? r[0] : {
|
|
8610
8619
|
filterType: "join",
|
|
8611
8620
|
type: n.type,
|
|
8612
8621
|
conditions: r
|
|
8613
8622
|
};
|
|
8614
|
-
},
|
|
8623
|
+
}, Su = (e, t) => {
|
|
8615
8624
|
if (!t) return [];
|
|
8616
8625
|
if (t.filterType !== "join") {
|
|
8617
8626
|
let n = t;
|
|
8618
8627
|
return n.colId === e && n.type === "equals" && n.filter ? [String(n.filter)] : [];
|
|
8619
8628
|
}
|
|
8620
8629
|
let n = t, r = [];
|
|
8621
|
-
for (let t of n.conditions) r.push(...
|
|
8630
|
+
for (let t of n.conditions) r.push(...Su(e, t));
|
|
8622
8631
|
return r;
|
|
8623
|
-
},
|
|
8632
|
+
}, Cu = (e, t) => {
|
|
8624
8633
|
if (!e || !t || Object.keys(t).length === 0) return [];
|
|
8625
8634
|
let n = t[e];
|
|
8626
8635
|
return n ? n.filterType === "set" && "values" in n ? n.values || [] : n.filterType === "multi" && n.filterModels ? n.filterModels.find((e) => e?.filterType === "set")?.values ?? [] : [] : [];
|
|
8627
|
-
},
|
|
8636
|
+
}, wu = (e, t) => {
|
|
8628
8637
|
if (!e) return null;
|
|
8629
|
-
if (
|
|
8630
|
-
let n =
|
|
8638
|
+
if (mu(e)) {
|
|
8639
|
+
let n = Su(t, e);
|
|
8631
8640
|
return n.length > 0 ? n : null;
|
|
8632
8641
|
}
|
|
8633
|
-
let n =
|
|
8642
|
+
let n = Cu(t, e);
|
|
8634
8643
|
return n.length > 0 ? n : null;
|
|
8635
|
-
},
|
|
8644
|
+
}, Tu = (e, t) => {
|
|
8636
8645
|
if (!e) return e;
|
|
8637
|
-
if (
|
|
8646
|
+
if (mu(e)) return xu(e, t);
|
|
8638
8647
|
let n = { ...e };
|
|
8639
8648
|
return delete n[t], n;
|
|
8640
|
-
},
|
|
8641
|
-
if (
|
|
8642
|
-
let r =
|
|
8643
|
-
return
|
|
8649
|
+
}, Eu = (e, t, n, r) => {
|
|
8650
|
+
if (mu(e) || !e && r) {
|
|
8651
|
+
let r = eu(t, n);
|
|
8652
|
+
return bu(e ?? null, r, t);
|
|
8644
8653
|
}
|
|
8645
8654
|
let i = { ...e || {} };
|
|
8646
8655
|
return i[t] = {
|
|
8647
8656
|
filterType: "set",
|
|
8648
8657
|
values: n
|
|
8649
8658
|
}, i;
|
|
8650
|
-
},
|
|
8651
|
-
if (
|
|
8659
|
+
}, Du = (e, t, n, r) => {
|
|
8660
|
+
if (mu(e) || !e && r) return Eu(e, t, n, r);
|
|
8652
8661
|
let i = { ...e || {} }, a = i[t];
|
|
8653
8662
|
if (a?.filterType === "multi" && a?.filterModels) {
|
|
8654
8663
|
let e = a.filterModels.map((e) => e?.filterType === "set" ? {
|
|
@@ -8664,11 +8673,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8664
8673
|
values: n
|
|
8665
8674
|
};
|
|
8666
8675
|
return i;
|
|
8667
|
-
},
|
|
8668
|
-
let i = (
|
|
8669
|
-
return i.length === 0 ?
|
|
8670
|
-
},
|
|
8671
|
-
let e =
|
|
8676
|
+
}, Ou = (e, t, n, r) => {
|
|
8677
|
+
let i = (wu(e, t) ?? []).filter((e) => e !== n);
|
|
8678
|
+
return i.length === 0 ? Tu(e, t) : Du(e, t, i, r);
|
|
8679
|
+
}, ku = (e) => !!(e && "filterType" in e), Au = (e) => !!(e && !ku(e)), ju = (e) => !!(e && !ku(e)), Mu = () => {
|
|
8680
|
+
let e = Mc(), t = N(null), n = e.filterModel, i = e.stagedFilterModel, a = O(null), o = O({}), s = O({}), c = e.filterRequestIdMap, l = O(0), u = e.filterLoadingMap, d = O(void 0), f = e.filterHasMoreMap, p = e.filterTotalCountMap, m = O(void 0), h = (t) => ({
|
|
8672
8681
|
hasMore: e.filterHasMoreMap.value[t],
|
|
8673
8682
|
totalCount: e.filterTotalCountMap.value[t],
|
|
8674
8683
|
values: e.filterOptionsMap.value[t] ?? []
|
|
@@ -8683,7 +8692,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8683
8692
|
});
|
|
8684
8693
|
let g = r(() => d.value != null), _ = r(() => {
|
|
8685
8694
|
let e = n.value;
|
|
8686
|
-
return e ?
|
|
8695
|
+
return e ? ku(e) ? !hu(e) : Object.keys(e).length === 0 : !0;
|
|
8687
8696
|
}), v = r(() => {
|
|
8688
8697
|
let e = a.value || {};
|
|
8689
8698
|
return Object.keys(e).length === 0;
|
|
@@ -8721,9 +8730,9 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8721
8730
|
c.value[e] = (c.value[e] || 0) + 1;
|
|
8722
8731
|
}, z = async (e, t) => {
|
|
8723
8732
|
let r = S.value[e.field] || void 0, a = b.value[e.field] || [], o = t?.filterModel;
|
|
8724
|
-
if (t?.useStaged !== !1 && i.value != null) if (
|
|
8733
|
+
if (t?.useStaged !== !1 && i.value != null) if (Au(i.value)) {
|
|
8725
8734
|
let e = t?.filterModel ?? n.value ?? void 0;
|
|
8726
|
-
o = F(e &&
|
|
8735
|
+
o = F(e && Au(e) ? e : void 0);
|
|
8727
8736
|
} else o = i.value;
|
|
8728
8737
|
let l = {
|
|
8729
8738
|
api: t?.api,
|
|
@@ -8805,7 +8814,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8805
8814
|
}, ne = (e, t) => {
|
|
8806
8815
|
b.value[e] = t;
|
|
8807
8816
|
let r = [], i = n.value;
|
|
8808
|
-
if (
|
|
8817
|
+
if (ju(i)) {
|
|
8809
8818
|
let t = i[e];
|
|
8810
8819
|
if (t?.values) {
|
|
8811
8820
|
let e = t.values || [];
|
|
@@ -8822,7 +8831,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8822
8831
|
let t = n.value;
|
|
8823
8832
|
if (!t) return x.value;
|
|
8824
8833
|
let r = e.map((e) => {
|
|
8825
|
-
let n = e.field ?? e.colId ?? "", r = n ?
|
|
8834
|
+
let n = e.field ?? e.colId ?? "", r = n ? wu(t, n) : null;
|
|
8826
8835
|
return r && r.length > 0 ? {
|
|
8827
8836
|
colDef: e,
|
|
8828
8837
|
colId: n,
|
|
@@ -8939,14 +8948,14 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8939
8948
|
filterValuesHasMoreMap: f,
|
|
8940
8949
|
filterValuesTotalCountMap: p
|
|
8941
8950
|
};
|
|
8942
|
-
},
|
|
8943
|
-
D(
|
|
8944
|
-
},
|
|
8945
|
-
let e = m(
|
|
8951
|
+
}, Nu = Mu, Pu = (e) => {
|
|
8952
|
+
D(Kc, e);
|
|
8953
|
+
}, Fu = () => m(Kc, null) || Mu(), Iu = () => {
|
|
8954
|
+
let e = m(Kc, null);
|
|
8946
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().");
|
|
8947
8956
|
return e;
|
|
8948
|
-
},
|
|
8949
|
-
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(
|
|
8957
|
+
}, Lu = (e) => {
|
|
8958
|
+
let { filterColDef: t, filterStyle: n, onSelectionChanged: i, filterGroupStagedFields: a, readOnly: o } = e, s = m(Yc, O(null)), c = Fu(), { fetchFilterValues: l, invalidateFilterRequest: u, filterModel: d, stagedFilterModel: f, filterModelCleared: p, filterValuesLoadingStatus: h, filterValueContext: g, getFilterSelectedValues: _, isServerSideFilter: y, setFilterValueSearchText: b, setFilterSelectedValues: x, getFilterValues: S, setFilterValues: C, filterStaleMap: E, refreshFiltersInBackground: D, stageFilterChangesUntilDropdownCloses: k, filterSearchMinLength: A, markOtherFieldsStale: j, registerAggregateField: M, registerFilterField: N, unregisterFilterField: P, getStagedSelectedValues: F, setStagedSelectedValues: I, filterValueSearchTextMap: L, filterValuesHasMoreMap: R, filterValuesTotalCountMap: ee } = c, { computedFocuses: z, removeFocus: B, computedFocusType: te } = Il(), ne = m(il, O(!1)), H = m(rl, O(!1)), U = m(_l, O(!1)), W = r({
|
|
8950
8959
|
get: () => J.value ? F(q.value) : _(q.value),
|
|
8951
8960
|
set: (e) => {
|
|
8952
8961
|
J.value ? I(q.value, e) : x(q.value, e);
|
|
@@ -8964,7 +8973,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8964
8973
|
}), K = r(() => {
|
|
8965
8974
|
let e = A.value ?? 0, t = ae.value?.length ?? 0;
|
|
8966
8975
|
return e > 0 && t > 0 && t < e;
|
|
8967
|
-
}), q = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), ce = O(!1), Y = O(!1), ue = O([]), de = r(() =>
|
|
8976
|
+
}), q = r(() => t.value.field || ""), oe = r(() => t.value.filter || ""), se = r(() => t.value.headerName || ""), J = r(() => n?.value === "vertical"), ce = O(!1), Y = O(!1), ue = O([]), de = r(() => Oo(t.value)), fe = r(() => ko(t.value)), pe = r(() => Ao(t.value)), me = r(() => $(t.value).filterOptionsSortDescription), he = r(() => $(t.value).filterOptionsSortTooltip), ge = r(() => !$(t.value).filterSearch), _e = r(() => $(t.value).emptyFilterResultsRenderer), ve = r(() => $(t.value).filterOptionsRenderer), ye = r(() => $(t.value).filterHeaderRenderer), X = r(() => $(t.value).filterFooterRenderer), be = r(() => fe.value ? W.value.length >= fe.value : !1), xe = r(() => G.value.filter((e) => e != null && !W.value.includes(e))), Se = r(() => ee.value[q.value]), Ce = r(() => R.value[q.value]), Z = r(() => Fo(t.value)), we = () => new Set([q.value, ...No(t.value)]), Te = (e, t) => {
|
|
8968
8977
|
let n = new Set(e), r = new Set(t);
|
|
8969
8978
|
return n.size === r.size ? [...n].every((e) => r.has(e)) : !1;
|
|
8970
8979
|
}, Ee = O([]), De = O("[]"), Oe = r(() => G.value.length === 1 && G.value[0] === null && W.value.length === 0), ke = (e = !1) => {
|
|
@@ -8972,8 +8981,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8972
8981
|
let n = [];
|
|
8973
8982
|
if (U.value && s.value) {
|
|
8974
8983
|
let e = s.value.getAdvancedFilterModel();
|
|
8975
|
-
n =
|
|
8976
|
-
} else n =
|
|
8984
|
+
n = Su(q.value, e);
|
|
8985
|
+
} else n = pu(t.value, d.value);
|
|
8977
8986
|
e ? W.value = n : W.value = Array.from(new Set([..._(q.value), ...n]));
|
|
8978
8987
|
}, Ae = (e) => {
|
|
8979
8988
|
let t = (n) => {
|
|
@@ -8985,10 +8994,10 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8985
8994
|
let n = W.value.includes(e) || Ae(e), r = W.value.includes(t) || Ae(t);
|
|
8986
8995
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
8987
8996
|
}), Me = async (e = !1, n = !1) => {
|
|
8988
|
-
if (!s.value
|
|
8989
|
-
let r = E.value[q.value] ?? !1, i = h.value[q.value] !== !0, a = (S(q.value) || []).length === 0,
|
|
8997
|
+
if (!s.value) return;
|
|
8998
|
+
let r = E.value[q.value] ?? !1, i = h.value[q.value] !== !0, a = (S(q.value) || []).length === 0, o = e && i && (r || n || a);
|
|
8990
8999
|
if (U.value) {
|
|
8991
|
-
if (y.value &&
|
|
9000
|
+
if (y.value && o) {
|
|
8992
9001
|
let e = await l(t.value, {
|
|
8993
9002
|
api: s.value,
|
|
8994
9003
|
filterModel: d.value ?? void 0,
|
|
@@ -8998,13 +9007,13 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
8998
9007
|
}
|
|
8999
9008
|
return;
|
|
9000
9009
|
}
|
|
9001
|
-
let
|
|
9002
|
-
if (
|
|
9003
|
-
if (y.value &&
|
|
9004
|
-
|
|
9010
|
+
let c = await du(s.value, t.value);
|
|
9011
|
+
if (c) {
|
|
9012
|
+
if (y.value && o) {
|
|
9013
|
+
c.refreshFilterValues();
|
|
9005
9014
|
return;
|
|
9006
9015
|
}
|
|
9007
|
-
C(q.value,
|
|
9016
|
+
C(q.value, c.getFilterValues()), E.value[q.value] = !1;
|
|
9008
9017
|
}
|
|
9009
9018
|
}, Ne = (e) => {
|
|
9010
9019
|
let t = g(q.value, e);
|
|
@@ -9020,7 +9029,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9020
9029
|
let n = de.value, r = t, i = Pe(t);
|
|
9021
9030
|
if (i && Z.value) {
|
|
9022
9031
|
let e = s.value?.getColumnDef(i);
|
|
9023
|
-
n = e ?
|
|
9032
|
+
n = e ? Oo(e) ?? n : n, r = Le(t, e ?? void 0);
|
|
9024
9033
|
}
|
|
9025
9034
|
return n ? n({
|
|
9026
9035
|
value: Ie(e, r),
|
|
@@ -9030,21 +9039,21 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9030
9039
|
if (!$(t.value).metadataDisplayFields?.length || e == null) return !1;
|
|
9031
9040
|
let n = g(q.value, e);
|
|
9032
9041
|
return n == null || n.label == null;
|
|
9033
|
-
}, Ve = (e) => Oe.value || g(q.value, e)?.isSelectable === !1 ? !0 : pe.value ? !1 : be.value && !W.value.includes(e), He = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", Ue = (e, n, r) =>
|
|
9042
|
+
}, Ve = (e) => Oe.value || g(q.value, e)?.isSelectable === !1 ? !0 : pe.value ? !1 : be.value && !W.value.includes(e), He = (e) => e ? s.value && s.value.getColumnDef(e)?.headerName || e : "", Ue = (e, n, r) => Cc({
|
|
9034
9043
|
fallbackSubText: n,
|
|
9035
9044
|
getDisplayName: He,
|
|
9036
9045
|
matchedField: e?.matchedField,
|
|
9037
9046
|
matchedValue: e?.matchedValue ?? e?.menuOption?.searchText,
|
|
9038
9047
|
primaryText: r,
|
|
9039
9048
|
showPrefix: $(t.value).showSearchMatchSubTextPrefix !== !1
|
|
9040
|
-
}), We = r(() =>
|
|
9049
|
+
}), We = r(() => xc(q.value, $(t.value).queryColIds, (e) => e === q.value && se.value || He(e))), Q = (e) => {
|
|
9041
9050
|
if (!e.startsWith("__")) return { value: e };
|
|
9042
9051
|
let t = e.slice(2).split("__");
|
|
9043
9052
|
return t.length < 2 ? { value: e } : {
|
|
9044
9053
|
field: t[0],
|
|
9045
9054
|
value: t[1]
|
|
9046
9055
|
};
|
|
9047
|
-
}, Ge = (e) =>
|
|
9056
|
+
}, Ge = (e) => mc(e, Je()), Ke = (e) => {
|
|
9048
9057
|
let t = Q(e.value), n = { ...e };
|
|
9049
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(Ke)), n;
|
|
9050
9059
|
}, qe = r(() => [...c.filterValueMap.value[q.value] || [], ...c.filterValueSelectedMetadataMap.value[q.value] || []].map((e) => e && Ke(e))), Je = () => qe.value, Ye = (e, t) => {
|
|
@@ -9061,7 +9070,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9061
9070
|
let e = n.children ? Xe(n.children, t) : void 0;
|
|
9062
9071
|
if (e) return e;
|
|
9063
9072
|
}
|
|
9064
|
-
}, Ze = (e, t) =>
|
|
9073
|
+
}, Ze = (e, t) => hc(Je(), e, t), Qe = (e) => {
|
|
9065
9074
|
let t = (n) => {
|
|
9066
9075
|
if (n) {
|
|
9067
9076
|
if (String(Fe(n) ?? Q(n.value).value) === e) return n;
|
|
@@ -9096,7 +9105,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9096
9105
|
};
|
|
9097
9106
|
}, et = (e) => {
|
|
9098
9107
|
let n = Je(), r = Ye(n, (t) => t.value === e.id);
|
|
9099
|
-
return r?.children?.length ? r : Xe(n, e.id) || (r && Pe(r) ===
|
|
9108
|
+
return r?.children?.length ? r : Xe(n, e.id) || (r && Pe(r) === Po(t.value) ? r : $e(e.id) || r);
|
|
9100
9109
|
}, tt = (e) => {
|
|
9101
9110
|
if (!Z.value) return;
|
|
9102
9111
|
let t = c.filterValueSelectedMetadataMap.value[q.value] || [], n = /* @__PURE__ */ new Map();
|
|
@@ -9218,27 +9227,27 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9218
9227
|
if (e !== void 0 && n !== void 0) {
|
|
9219
9228
|
let r = e || q.value, i = n;
|
|
9220
9229
|
if (U.value) {
|
|
9221
|
-
let e =
|
|
9230
|
+
let e = eu(r, i || []);
|
|
9222
9231
|
if (J.value) {
|
|
9223
9232
|
let t = f.value;
|
|
9224
|
-
f.value =
|
|
9233
|
+
f.value = bu(t, e, r), j(new Set([r]));
|
|
9225
9234
|
return;
|
|
9226
9235
|
}
|
|
9227
|
-
let t =
|
|
9236
|
+
let t = bu(s.value.getAdvancedFilterModel(), e, r);
|
|
9228
9237
|
v(() => {
|
|
9229
9238
|
s.value?.setAdvancedFilterModel(t);
|
|
9230
9239
|
}), j(new Set([r]));
|
|
9231
9240
|
return;
|
|
9232
9241
|
}
|
|
9233
9242
|
if (J.value) {
|
|
9234
|
-
let e = await
|
|
9243
|
+
let e = await fu(s.value, t.value, i);
|
|
9235
9244
|
f.value = {
|
|
9236
9245
|
...f.value,
|
|
9237
9246
|
[r]: e
|
|
9238
9247
|
};
|
|
9239
9248
|
return;
|
|
9240
9249
|
}
|
|
9241
|
-
let a = await
|
|
9250
|
+
let a = await fu(s.value, t.value, i);
|
|
9242
9251
|
s.value.setColumnFilterModel(r, a).then(() => {
|
|
9243
9252
|
s.value && s.value.onFilterChanged();
|
|
9244
9253
|
});
|
|
@@ -9248,15 +9257,15 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9248
9257
|
if (U.value) {
|
|
9249
9258
|
let e = J.value ? f.value : s.value.getAdvancedFilterModel(), n = e;
|
|
9250
9259
|
if (Z.value) {
|
|
9251
|
-
let e =
|
|
9260
|
+
let e = No(t.value), r = [];
|
|
9252
9261
|
for (let t of e) {
|
|
9253
9262
|
let e = i[t] || [];
|
|
9254
9263
|
if (e.length > 0) {
|
|
9255
|
-
let n =
|
|
9264
|
+
let n = eu(t, e);
|
|
9256
9265
|
n && r.push(n);
|
|
9257
9266
|
}
|
|
9258
9267
|
}
|
|
9259
|
-
for (let t of e) n =
|
|
9268
|
+
for (let t of e) n = bu(n, null, t);
|
|
9260
9269
|
if (r.length > 0) {
|
|
9261
9270
|
let e = r.length === 1 ? r[0] : {
|
|
9262
9271
|
filterType: "join",
|
|
@@ -9270,23 +9279,23 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9270
9279
|
} : e;
|
|
9271
9280
|
}
|
|
9272
9281
|
} else {
|
|
9273
|
-
let t = W.value.length > 0 ? W.value : null, r =
|
|
9274
|
-
n =
|
|
9282
|
+
let t = W.value.length > 0 ? W.value : null, r = eu(q.value, t || []);
|
|
9283
|
+
n = bu(n, r, q.value);
|
|
9275
9284
|
let i = !1;
|
|
9276
9285
|
if (a?.value) {
|
|
9277
9286
|
let e = o.filterGroup?.fields ?? [];
|
|
9278
9287
|
for (let t of e) {
|
|
9279
9288
|
let e = a.value.has(t);
|
|
9280
|
-
if (e ===
|
|
9289
|
+
if (e === Su(t, n).includes("true")) continue;
|
|
9281
9290
|
i = !0;
|
|
9282
|
-
let r = e ?
|
|
9283
|
-
n =
|
|
9291
|
+
let r = e ? eu(t, ["true"]) : null;
|
|
9292
|
+
n = bu(n, r, t);
|
|
9284
9293
|
}
|
|
9285
9294
|
}
|
|
9286
|
-
let s = W.value.filter((e) => e !== null), c =
|
|
9295
|
+
let s = W.value.filter((e) => e !== null), c = Su(q.value, e), l = new Set(c), u = new Set(s);
|
|
9287
9296
|
if (!(l.size !== u.size || s.some((e) => !l.has(e))) && !i) return;
|
|
9288
9297
|
}
|
|
9289
|
-
if (r?.skipIfUnchanged &&
|
|
9298
|
+
if (r?.skipIfUnchanged && yu(e, n)) return;
|
|
9290
9299
|
let c = Z.value ? we() : new Set([q.value]);
|
|
9291
9300
|
if (J.value) f.value = n, j(c);
|
|
9292
9301
|
else {
|
|
@@ -9299,24 +9308,24 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9299
9308
|
}
|
|
9300
9309
|
let c = W.value.length > 0 ? W.value : null;
|
|
9301
9310
|
if (r?.skipIfUnchanged) {
|
|
9302
|
-
let e =
|
|
9311
|
+
let e = pu(t.value, s.value.getFilterModel());
|
|
9303
9312
|
if (Te(W.value, e)) return;
|
|
9304
9313
|
}
|
|
9305
9314
|
if (J.value) {
|
|
9306
|
-
let e = await
|
|
9315
|
+
let e = await fu(s.value, t.value, c);
|
|
9307
9316
|
f.value = {
|
|
9308
9317
|
...f.value,
|
|
9309
9318
|
[q.value]: e
|
|
9310
9319
|
};
|
|
9311
9320
|
return;
|
|
9312
9321
|
}
|
|
9313
|
-
let l = await
|
|
9322
|
+
let l = await fu(s.value, t.value, c);
|
|
9314
9323
|
s.value.setColumnFilterModel(q.value, l).then(() => {
|
|
9315
9324
|
s.value && s.value.onFilterChanged();
|
|
9316
9325
|
});
|
|
9317
9326
|
}, ct = (e, n) => {
|
|
9318
9327
|
if (e && pe.value ? W.value = [e] : e && !W.value.includes(e) && (W.value = [...W.value, e]), Z.value && e) {
|
|
9319
|
-
let r = n ||
|
|
9328
|
+
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
9320
9329
|
Ee.value.find((e) => e.id === i) || (Ee.value = [...Ee.value, {
|
|
9321
9330
|
id: i,
|
|
9322
9331
|
state: "selected"
|
|
@@ -9325,7 +9334,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9325
9334
|
(!k.value || J.value) && (Z.value && e ? mt(Ee.value) : n && n !== q.value ? st(n, [e]) : st()), i?.();
|
|
9326
9335
|
}, lt = (e, n) => {
|
|
9327
9336
|
if (W.value = W.value.filter((t) => t !== e), Z.value && e) {
|
|
9328
|
-
let r = n ||
|
|
9337
|
+
let r = n || No(t.value)[0] || q.value, i = e.startsWith("__") ? e : Ze(r, e) || e;
|
|
9329
9338
|
Ee.value = Ee.value.filter((e) => e.id !== i);
|
|
9330
9339
|
}
|
|
9331
9340
|
(!k.value || J.value) && (Z.value && e ? mt(Ee.value) : n && n !== q.value ? st(n, null) : st()), i?.();
|
|
@@ -9348,7 +9357,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9348
9357
|
} finally {
|
|
9349
9358
|
r && (Y.value = !1);
|
|
9350
9359
|
}
|
|
9351
|
-
}, pt = (e, n) =>
|
|
9360
|
+
}, pt = (e, n) => vc({
|
|
9352
9361
|
baseModel: n,
|
|
9353
9362
|
colDef: t.value,
|
|
9354
9363
|
options: Je(),
|
|
@@ -9357,9 +9366,9 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9357
9366
|
if (!s.value || !Z.value) return !1;
|
|
9358
9367
|
let r = JSON.stringify(e);
|
|
9359
9368
|
if (n?.skipIfUnchanged && r === De.value) return Ee.value = e, !1;
|
|
9360
|
-
if (Ee.value = e, tt(e),
|
|
9369
|
+
if (Ee.value = e, tt(e), No(t.value).length === 0) return !1;
|
|
9361
9370
|
let a = J.value ? f.value : s.value.getAdvancedFilterModel(), o = pt(e, a);
|
|
9362
|
-
if (n?.skipIfUnchanged &&
|
|
9371
|
+
if (n?.skipIfUnchanged && yu(a, o)) return De.value = r, !1;
|
|
9363
9372
|
if (J.value) f.value = o;
|
|
9364
9373
|
else {
|
|
9365
9374
|
let e = o;
|
|
@@ -9369,8 +9378,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9369
9378
|
}
|
|
9370
9379
|
return De.value = r, j(we()), i?.(), !0;
|
|
9371
9380
|
}, ht = (e) => {
|
|
9372
|
-
if (!Z.value || !
|
|
9373
|
-
let n =
|
|
9381
|
+
if (!Z.value || !No(t.value).length) return;
|
|
9382
|
+
let n = bc({
|
|
9374
9383
|
colDef: t.value,
|
|
9375
9384
|
model: e,
|
|
9376
9385
|
options: Je()
|
|
@@ -9391,12 +9400,12 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9391
9400
|
if (U.value) {
|
|
9392
9401
|
let e = [], n = f.value;
|
|
9393
9402
|
if (Z.value) {
|
|
9394
|
-
let r =
|
|
9403
|
+
let r = No(t.value);
|
|
9395
9404
|
for (let t of r) {
|
|
9396
|
-
let r =
|
|
9405
|
+
let r = Su(t, n);
|
|
9397
9406
|
e.push(...r);
|
|
9398
9407
|
}
|
|
9399
|
-
} else e =
|
|
9408
|
+
} else e = Su(q.value, n);
|
|
9400
9409
|
W.value = e;
|
|
9401
9410
|
return;
|
|
9402
9411
|
}
|
|
@@ -9409,11 +9418,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9409
9418
|
return;
|
|
9410
9419
|
}
|
|
9411
9420
|
if (U.value) {
|
|
9412
|
-
let e = d.value, t =
|
|
9421
|
+
let e = d.value, t = Su(q.value, e);
|
|
9413
9422
|
ke(W.value.some((e) => e !== null && !t.includes(e)));
|
|
9414
9423
|
return;
|
|
9415
9424
|
}
|
|
9416
|
-
let e =
|
|
9425
|
+
let e = pu(t.value, d.value);
|
|
9417
9426
|
ke(W.value.some((t) => !e.includes(t)));
|
|
9418
9427
|
}, { deep: !0 }), V(() => p.value, () => {
|
|
9419
9428
|
W.value = [], Ee.value = [], De.value = "[]";
|
|
@@ -9431,9 +9440,9 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9431
9440
|
await Me(!0, !0);
|
|
9432
9441
|
}, { debounce: 300 }), w(() => {
|
|
9433
9442
|
N(q.value);
|
|
9434
|
-
let e =
|
|
9443
|
+
let e = No(t.value);
|
|
9435
9444
|
if (e.length && M(q.value, e), ke(), Z.value && U.value && ht(d.value), o?.value && y.value && s.value) {
|
|
9436
|
-
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && U.value ?
|
|
9445
|
+
let e = Z.value || ($(t.value).metadataDisplayFields?.length ?? 0) > 0, n = Z.value && U.value ? No(t.value).some((e) => Su(e, d.value).length > 0) : W.value.length > 0;
|
|
9437
9446
|
e && n && l(t.value, {
|
|
9438
9447
|
api: s.value,
|
|
9439
9448
|
filterModel: d.value ?? void 0
|
|
@@ -9489,7 +9498,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9489
9498
|
disableFilterValue: Ve,
|
|
9490
9499
|
updateFilterModelWithSelectedValues: st
|
|
9491
9500
|
};
|
|
9492
|
-
},
|
|
9501
|
+
}, Ru = ({ alignment: e, useTeleport: t = !0, popoverCssProperties: n } = {}) => {
|
|
9493
9502
|
let i = O(null), a = O(null), o = O(null), s = O(null), c = (e) => {
|
|
9494
9503
|
let t = e.parentElement;
|
|
9495
9504
|
for (; t && t !== document.body;) {
|
|
@@ -9540,23 +9549,23 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9540
9549
|
o.value && (i.value = o.value.getBoundingClientRect()), s.value?.popoverRoot && (a.value = s.value.popoverRoot.getBoundingClientRect());
|
|
9541
9550
|
}
|
|
9542
9551
|
};
|
|
9543
|
-
},
|
|
9552
|
+
}, zu = {
|
|
9544
9553
|
key: 0,
|
|
9545
9554
|
role: "list",
|
|
9546
9555
|
class: "pv-popover-list"
|
|
9547
|
-
},
|
|
9556
|
+
}, Bu = ["data-active"], Vu = { key: 1 }, Hu = {
|
|
9548
9557
|
key: 1,
|
|
9549
9558
|
class: "pv-flex pv-inset-square-8",
|
|
9550
9559
|
style: { "justify-content": "center" }
|
|
9551
|
-
},
|
|
9560
|
+
}, Uu = /* @__PURE__ */ d({
|
|
9552
9561
|
__name: "FilterGroupMenu",
|
|
9553
9562
|
props: { filterColDef: {} },
|
|
9554
9563
|
setup(e, { expose: n }) {
|
|
9555
|
-
let s = e, c = m(
|
|
9564
|
+
let s = e, c = m(Yc, O(null)), d = m(il, O(!1)), { filterModel: f, filterStoreHandler: p, markOtherFieldsStale: h, stageFilterChangesUntilDropdownCloses: g } = Fu(), _ = O(/* @__PURE__ */ new Set()), b = O(/* @__PURE__ */ new Set()), x = O(!1), S = O(null), C = r(() => $(s.filterColDef).filterGroup), { popoverPositionStyle: w, updateRects: D, triggerRef: A, popoverRef: j } = Ru({
|
|
9556
9565
|
alignment: "top right",
|
|
9557
9566
|
useTeleport: !0
|
|
9558
9567
|
}), M = (e) => {
|
|
9559
|
-
let t =
|
|
9568
|
+
let t = wu(f.value, e);
|
|
9560
9569
|
return t !== null && t.length > 0 && t.includes("true");
|
|
9561
9570
|
}, N = (e) => c.value?.getColumnDef(e)?.headerName ?? e, P = async () => {
|
|
9562
9571
|
if (!p.value || !c.value) return;
|
|
@@ -9578,7 +9587,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9578
9587
|
if (!c.value) return;
|
|
9579
9588
|
let t = _.value.has(e);
|
|
9580
9589
|
if (t ? _.value.delete(e) : _.value.add(e), g.value) return;
|
|
9581
|
-
let n =
|
|
9590
|
+
let n = bu(c.value.getAdvancedFilterModel(), t ? null : eu(e, ["true"]), e);
|
|
9582
9591
|
v(() => {
|
|
9583
9592
|
c.value?.setAdvancedFilterModel(n);
|
|
9584
9593
|
}), h(new Set([e]));
|
|
@@ -9590,7 +9599,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9590
9599
|
return;
|
|
9591
9600
|
}
|
|
9592
9601
|
let t = c.value.getAdvancedFilterModel(), n = /* @__PURE__ */ new Set();
|
|
9593
|
-
for (let r of e) _.value.has(r) || (t =
|
|
9602
|
+
for (let r of e) _.value.has(r) || (t = bu(t, eu(r, ["true"]), r), _.value.add(r), n.add(r));
|
|
9594
9603
|
n.size > 0 && (v(() => {
|
|
9595
9604
|
c.value?.setAdvancedFilterModel(t);
|
|
9596
9605
|
}), h(n));
|
|
@@ -9601,7 +9610,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9601
9610
|
return;
|
|
9602
9611
|
}
|
|
9603
9612
|
let e = c.value.getAdvancedFilterModel(), t = /* @__PURE__ */ new Set();
|
|
9604
|
-
for (let n of C.value.fields) e =
|
|
9613
|
+
for (let n of C.value.fields) e = xu(e, n), _.value.delete(n), t.add(n);
|
|
9605
9614
|
v(() => {
|
|
9606
9615
|
c.value?.setAdvancedFilterModel(e);
|
|
9607
9616
|
}), h(t);
|
|
@@ -9638,7 +9647,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9638
9647
|
class: "pv-border-bottom",
|
|
9639
9648
|
onMouseenter: z,
|
|
9640
9649
|
onClick: z
|
|
9641
|
-
}, [u(
|
|
9650
|
+
}, [u(Xa, {
|
|
9642
9651
|
config: {
|
|
9643
9652
|
variant: "icon",
|
|
9644
9653
|
counterBadgeVariant: "tertiary"
|
|
@@ -9651,7 +9660,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9651
9660
|
"id",
|
|
9652
9661
|
"text",
|
|
9653
9662
|
"secondary-text"
|
|
9654
|
-
]), u(
|
|
9663
|
+
]), u(_s, {
|
|
9655
9664
|
ref_key: "popoverRef",
|
|
9656
9665
|
ref: j,
|
|
9657
9666
|
class: y({ "pv-hide": !x.value }),
|
|
@@ -9661,10 +9670,10 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9661
9670
|
}
|
|
9662
9671
|
}, {
|
|
9663
9672
|
default: H(() => [
|
|
9664
|
-
x.value && ne.value.length > 0 ? (E(), o("ul",
|
|
9673
|
+
x.value && ne.value.length > 0 ? (E(), o("ul", zu, [(E(!0), o(t, null, k(ne.value, (e) => (E(), o(t, { key: e.field }, [e.isAvailable ? (E(), o("li", {
|
|
9665
9674
|
key: 0,
|
|
9666
9675
|
"data-active": e.isSelected ? "true" : null
|
|
9667
|
-
}, [u(
|
|
9676
|
+
}, [u(Xa, {
|
|
9668
9677
|
config: { variant: "checkbox" },
|
|
9669
9678
|
id: e.field,
|
|
9670
9679
|
text: e.label,
|
|
@@ -9676,14 +9685,14 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9676
9685
|
"text",
|
|
9677
9686
|
"selectedIds",
|
|
9678
9687
|
"onHandleSelected"
|
|
9679
|
-
])], 8,
|
|
9688
|
+
])], 8, Bu)) : (E(), o("li", Vu, [u(oa, {
|
|
9680
9689
|
variant: "dark",
|
|
9681
9690
|
size: "sm",
|
|
9682
9691
|
"tooltip-position": "bottom-right",
|
|
9683
9692
|
"disable-interactive": !0,
|
|
9684
9693
|
style: { width: "100%" }
|
|
9685
9694
|
}, {
|
|
9686
|
-
label: H(() => [u(
|
|
9695
|
+
label: H(() => [u(Xa, {
|
|
9687
9696
|
config: { variant: "checkbox" },
|
|
9688
9697
|
id: e.field,
|
|
9689
9698
|
text: e.label,
|
|
@@ -9693,8 +9702,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9693
9702
|
"tooltip-content": H(() => [...n[0] ||= [l("No entries in the result set", -1)]]),
|
|
9694
9703
|
_: 2
|
|
9695
9704
|
}, 1024)]))], 64))), 128))])) : a("", !0),
|
|
9696
|
-
x.value && B.value ? (E(), o("div",
|
|
9697
|
-
x.value ? (E(), i(
|
|
9705
|
+
x.value && B.value ? (E(), o("div", Hu, [u(St, { variant: "dark" })])) : a("", !0),
|
|
9706
|
+
x.value ? (E(), i(Ws, {
|
|
9698
9707
|
key: 2,
|
|
9699
9708
|
class: "pv-border-top pv-inset-square-8",
|
|
9700
9709
|
style: { "padding-top": "8px" },
|
|
@@ -9707,7 +9716,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9707
9716
|
_: 1
|
|
9708
9717
|
}, 8, ["class", "css-custom-properties"])], 32)), [[I(Y), [ee, { ignore: [".pv-popover"] }]]]);
|
|
9709
9718
|
}
|
|
9710
|
-
}),
|
|
9719
|
+
}), Wu = {
|
|
9711
9720
|
key: 0,
|
|
9712
9721
|
role: "list",
|
|
9713
9722
|
class: "pv-flex pv-stack-4",
|
|
@@ -9715,37 +9724,37 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9715
9724
|
"--flex-wrap": "wrap",
|
|
9716
9725
|
"max-width": "100%"
|
|
9717
9726
|
}
|
|
9718
|
-
},
|
|
9727
|
+
}, Gu = {
|
|
9719
9728
|
key: 0,
|
|
9720
9729
|
style: {
|
|
9721
9730
|
"max-width": "100%",
|
|
9722
9731
|
"line-height": "1rem"
|
|
9723
9732
|
}
|
|
9724
|
-
},
|
|
9733
|
+
}, Ku = {
|
|
9725
9734
|
key: 0,
|
|
9726
9735
|
class: "pv-text-subdued pv-text-body-xxs pv-inset-inline",
|
|
9727
9736
|
style: { "--inset-size": "4px" }
|
|
9728
|
-
},
|
|
9737
|
+
}, qu = {
|
|
9729
9738
|
class: "pv-full-width pv-flex pv-space-between pv-inset-inline",
|
|
9730
9739
|
style: { "--inset-size": "8px" }
|
|
9731
|
-
},
|
|
9740
|
+
}, Ju = {
|
|
9732
9741
|
class: "pv-inset-inline",
|
|
9733
9742
|
style: { "--inset-size": "8px" }
|
|
9734
|
-
},
|
|
9743
|
+
}, Yu = {
|
|
9735
9744
|
key: 0,
|
|
9736
9745
|
class: "pv-full-width"
|
|
9737
|
-
},
|
|
9746
|
+
}, Xu = {
|
|
9738
9747
|
key: 0,
|
|
9739
9748
|
class: "pv-flex-inline",
|
|
9740
9749
|
style: { "max-width": "100%" }
|
|
9741
|
-
},
|
|
9750
|
+
}, Zu = {
|
|
9742
9751
|
role: "list",
|
|
9743
9752
|
class: "pv-flex",
|
|
9744
9753
|
style: {
|
|
9745
9754
|
"--flex-wrap": "wrap",
|
|
9746
9755
|
"max-width": "100%"
|
|
9747
9756
|
}
|
|
9748
|
-
},
|
|
9757
|
+
}, Qu = { class: "pv-text-subdued pv-text-body-xxs" }, $u = 4, ed = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9749
9758
|
__name: "SetFilter",
|
|
9750
9759
|
props: {
|
|
9751
9760
|
enableFocusView: {
|
|
@@ -9774,13 +9783,13 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9774
9783
|
"handle-settings-icon"
|
|
9775
9784
|
],
|
|
9776
9785
|
setup(e, { emit: n }) {
|
|
9777
|
-
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: q, formatDisplayValue: oe, resolvedFilterValueContext: se, isUnresolvedMetadataValue: J, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: Y, handleDropdownOpen: ue, handleDropdownClosed: de, handleSeeMore: fe, getColDisplayNameForField: pe, hasMoreOptions: me, totalOptionCount: he, isAggregate: ge, cascadeSelectionState: _e } =
|
|
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: q, formatDisplayValue: oe, resolvedFilterValueContext: se, isUnresolvedMetadataValue: J, getLatestFilterValues: ce, addSelectedValue: le, removeSelectedValue: Y, handleDropdownOpen: ue, handleDropdownClosed: de, handleSeeMore: fe, getColDisplayNameForField: pe, hasMoreOptions: me, totalOptionCount: he, isAggregate: ge, cascadeSelectionState: _e } = Lu({
|
|
9778
9787
|
filterColDef: F(d, "filterColDef"),
|
|
9779
9788
|
filterStyle: F(d, "filterStyle"),
|
|
9780
9789
|
onSelectionChanged: () => f("filter-selection-changed"),
|
|
9781
9790
|
filterGroupStagedFields: x,
|
|
9782
9791
|
readOnly: F(d, "readOnly")
|
|
9783
|
-
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } =
|
|
9792
|
+
}), { handleFocusUpdate: ve, isFocused: ye, removeFocus: X, isFocusable: be, canRemoveFocus: xe } = Il(), Se = (e) => {
|
|
9784
9793
|
if (e.context?.metadata?.rawValue != null) return String(e.context.metadata.rawValue);
|
|
9785
9794
|
if (e.id.startsWith("__")) {
|
|
9786
9795
|
let t = e.id.slice(2).split("__");
|
|
@@ -9788,7 +9797,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9788
9797
|
}
|
|
9789
9798
|
return e.id;
|
|
9790
9799
|
}, Ce = r(() => {
|
|
9791
|
-
if (be(
|
|
9800
|
+
if (be(Fo(d.filterColDef) ? No(d.filterColDef) : [R.value])) return {
|
|
9792
9801
|
icon: "focus",
|
|
9793
9802
|
isDisabled: (e) => !be([e.context?.colField || R.value]),
|
|
9794
9803
|
tooltipText: (e) => {
|
|
@@ -9821,7 +9830,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9821
9830
|
Y(e);
|
|
9822
9831
|
let t = se(e)?.colField || R.value, n = Z(e);
|
|
9823
9832
|
ye(n, t) && xe() && X(n);
|
|
9824
|
-
}, Te = m(
|
|
9833
|
+
}, Te = m(_l, O(!1)), Ee = r(() => !!$(d.filterColDef).filterGroup && Te.value), De = () => {
|
|
9825
9834
|
ue(), ce(!0);
|
|
9826
9835
|
}, Oe = () => {
|
|
9827
9836
|
v(() => {
|
|
@@ -9831,7 +9840,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9831
9840
|
let t = se(e)?.colField || R.value;
|
|
9832
9841
|
return ye(Z(e), t);
|
|
9833
9842
|
}, Ae = r(() => S.value > 0 ? !0 : ge.value ? _e.value.length > 0 : C.value.length > 0);
|
|
9834
|
-
return (n, r) => (E(), o(t, null, [s("div", null, [I(z) && I(C).length > 0 ? (E(), o("ul",
|
|
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(J)(n) ? a("", !0) : (E(), o("li", Gu, [u(Cs, {
|
|
9835
9844
|
label: I(oe)(n) || "",
|
|
9836
9845
|
showClear: !e.readOnly && (!ke(n) || I(xe)()),
|
|
9837
9846
|
disabled: e.readOnly,
|
|
@@ -9841,10 +9850,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9841
9850
|
"showClear",
|
|
9842
9851
|
"disabled",
|
|
9843
9852
|
"onHandleClose"
|
|
9844
|
-
])]))], 64))), 128))])) : a("", !0), u(I(
|
|
9853
|
+
])]))], 64))), 128))])) : a("", !0), u(I(Zs), {
|
|
9845
9854
|
modelValue: I(ne),
|
|
9846
9855
|
"onUpdate:modelValue": r[1] ||= (e) => h(ne) ? ne.value = e : null,
|
|
9847
9856
|
readOnly: e.readOnly,
|
|
9857
|
+
hideUnselectedInReadOnly: e.disableUnselected,
|
|
9848
9858
|
disabled: !I(z) && e.readOnly && e.disableUnselected && !Ae.value,
|
|
9849
9859
|
searchInput: I(D),
|
|
9850
9860
|
"onUpdate:searchInput": r[2] ||= (e) => h(D) ? D.value = e : null,
|
|
@@ -9891,7 +9901,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9891
9901
|
onDropdownClosed: Oe,
|
|
9892
9902
|
onSeeMore: I(fe)
|
|
9893
9903
|
}, c({
|
|
9894
|
-
preferences: H(() => [s("div",
|
|
9904
|
+
preferences: H(() => [s("div", qu, [r[5] ||= s("p", { class: "pv-text-subdued pv-text-body-xxs" }, "Your Preferences", -1), u(I(Ti), {
|
|
9895
9905
|
variant: "dark",
|
|
9896
9906
|
size: "sm",
|
|
9897
9907
|
"use-teleport": !0
|
|
@@ -9905,7 +9915,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9905
9915
|
content: H(() => [...r[4] ||= [l(" Open Preferences ", -1)]]),
|
|
9906
9916
|
_: 1
|
|
9907
9917
|
})])]),
|
|
9908
|
-
suggestions: H(() => [s("div",
|
|
9918
|
+
suggestions: H(() => [s("div", Ju, [u(I(Ti), {
|
|
9909
9919
|
variant: "dark",
|
|
9910
9920
|
disableInteractive: !0,
|
|
9911
9921
|
position: "top-left",
|
|
@@ -9925,8 +9935,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9925
9935
|
I(re) || Ee.value || I(j) ? {
|
|
9926
9936
|
name: "header",
|
|
9927
9937
|
fn: H((t) => [
|
|
9928
|
-
I(j) ? (E(), o("p",
|
|
9929
|
-
Ee.value ? (E(), i(
|
|
9938
|
+
I(j) ? (E(), o("p", Ku, " Type " + P(I(A)) + " or more characters to search ", 1)) : a("", !0),
|
|
9939
|
+
Ee.value ? (E(), i(Uu, {
|
|
9930
9940
|
key: 1,
|
|
9931
9941
|
ref_key: "filterGroupMenuRef",
|
|
9932
9942
|
ref: g,
|
|
@@ -9947,7 +9957,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9947
9957
|
fn: H((e) => [(E(), i(M(I(ie)), b(p(e)), null, 16))]),
|
|
9948
9958
|
key: "2"
|
|
9949
9959
|
} : void 0
|
|
9950
|
-
]), 1032, /* @__PURE__ */ "modelValue.readOnly.disabled.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div",
|
|
9960
|
+
]), 1032, /* @__PURE__ */ "modelValue.readOnly.hideUnselectedInReadOnly.disabled.searchInput.selectionState.data-horizontal-filter-field.label.icon.variant.counterPosition.showClear.showSearchInput.searchPlaceholder.showDropdown.overlayTrigger.options.optionsRenderer.optionsAction.popoverCssProperties.disableClearIcon.disableDropdownIcon.isLoading.isSeeMoreLoading.hasMoreOptions.totalOptionCount.enableCascadeSelection.enableChildExpansion.parentSelectsAllChildren.countSelectedParents.additionalCounter.slotContext.onSeeMore".split("."))]), I(z) && !e.readOnly ? (E(), o("div", Yu, [I(B).length > 0 ? (E(), o("div", Xu, [s("ul", Zu, [u(I(Ti), {
|
|
9951
9961
|
variant: "dark",
|
|
9952
9962
|
disableInteractive: !0,
|
|
9953
9963
|
position: "bottom-left",
|
|
@@ -9955,20 +9965,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9955
9965
|
"use-teleport": !0,
|
|
9956
9966
|
style: { "--max-width": "200px" }
|
|
9957
9967
|
}, c({
|
|
9958
|
-
trigger: H(() => [s("li",
|
|
9968
|
+
trigger: H(() => [s("li", Qu, [s("p", { class: y(["pv-text-subdued pv-text-body-md", I(K) ? "suggested-title-label" : ""]) }, " Suggested: ", 2)])]),
|
|
9959
9969
|
_: 2
|
|
9960
9970
|
}, [I(K) ? {
|
|
9961
9971
|
name: "content",
|
|
9962
9972
|
fn: H(() => [l(P(I(K)), 1)]),
|
|
9963
9973
|
key: "0"
|
|
9964
|
-
} : void 0]), 1024), (E(!0), o(t, null, k(I(B).filter((e) => e !== "" && e != null).slice(0,
|
|
9974
|
+
} : void 0]), 1024), (E(!0), o(t, null, k(I(B).filter((e) => e !== "" && e != null).slice(0, $u), (e) => (E(), o("li", {
|
|
9965
9975
|
key: `${I(ee)}-${e}-suggest`,
|
|
9966
9976
|
class: y(I(w) ? "pv-shimmer" : ""),
|
|
9967
9977
|
style: {
|
|
9968
9978
|
"max-width": "100%",
|
|
9969
9979
|
"line-height": "1rem"
|
|
9970
9980
|
}
|
|
9971
|
-
}, [u(I(
|
|
9981
|
+
}, [u(I(Ns), {
|
|
9972
9982
|
disabled: I(w),
|
|
9973
9983
|
label: I(oe)(e) || "",
|
|
9974
9984
|
onHandleClick: (t) => I(le)(e, I(q)(I(R), e)?.colField)
|
|
@@ -9978,18 +9988,18 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
9978
9988
|
"onHandleClick"
|
|
9979
9989
|
])], 2))), 128))])])) : a("", !0)])) : a("", !0)], 64));
|
|
9980
9990
|
}
|
|
9981
|
-
}), [["__scopeId", "data-v-
|
|
9991
|
+
}), [["__scopeId", "data-v-2b28800a"]]), 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 = {
|
|
9982
9992
|
id: "filter-vertical-drawer",
|
|
9983
9993
|
class: "pv-flex-vertical pv-space-between pv-full-width pv-inset-block-16",
|
|
9984
9994
|
style: { height: "100%" }
|
|
9985
|
-
},
|
|
9995
|
+
}, od = { class: "pv-full-width" }, sd = ["open"], cd = ["onClick"], ld = { class: "pv-text-title-lg" }, ud = { class: "pv-flex pv-space-between" }, dd = { class: "pv-flex" }, fd = {
|
|
9986
9996
|
class: "pv-flex",
|
|
9987
9997
|
style: {
|
|
9988
9998
|
"--flex-justify": "end",
|
|
9989
9999
|
"--flex-gap": "8px",
|
|
9990
10000
|
"margin-top": "auto"
|
|
9991
10001
|
}
|
|
9992
|
-
},
|
|
10002
|
+
}, pd = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
9993
10003
|
__name: "FilterPanel",
|
|
9994
10004
|
props: {
|
|
9995
10005
|
enableFocusView: {
|
|
@@ -10018,18 +10028,18 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10018
10028
|
},
|
|
10019
10029
|
emits: ["handle-settings-icon"],
|
|
10020
10030
|
setup(e) {
|
|
10021
|
-
let n = m(
|
|
10031
|
+
let n = m(Yc, O(null)), c = m(Qc, O([])), d = m(Zc, O(null)), f = m(_l, O(!1)), p = e, { filterModelCleared: h, stagedFilterModel: g, filterModel: _, initStagedSelectedValues: v, clearStagedSelectedValues: b, filterValuesMap: x, fetchFilterValues: S, filterValuesLoadingStatus: C } = Fu(), w = O(!1), T = O(!1), D = O(""), A = r(() => c.value.flatMap((e) => No(e))), j = r(() => c.value.flatMap((e) => $(e).filterGroup?.fields ?? [])), M = (e) => {
|
|
10022
10032
|
let t = _.value;
|
|
10023
10033
|
if (!t) return !1;
|
|
10024
|
-
let n =
|
|
10034
|
+
let n = Fo(e) ? No(e) : [e.field || ""];
|
|
10025
10035
|
if (f.value) {
|
|
10026
10036
|
let e = /* @__PURE__ */ new Set();
|
|
10027
10037
|
return z(t, e), n.some((t) => e.has(t));
|
|
10028
10038
|
}
|
|
10029
10039
|
let r = t;
|
|
10030
10040
|
return n.some((e) => !!r[e]);
|
|
10031
|
-
}, N = (e) => p.readOnly && !M(e), F = r(() => c.value.filter((e) =>
|
|
10032
|
-
let n =
|
|
10041
|
+
}, N = (e) => p.readOnly && !M(e), F = r(() => c.value.filter((e) => lu(e) && !A.value.includes(e.field || "") && !j.value.includes(e.field || "")).sort((e, t) => {
|
|
10042
|
+
let n = Fo(e), r = Fo(t);
|
|
10033
10043
|
return n && !r ? -1 : !n && r ? 1 : 0;
|
|
10034
10044
|
})), L = r(() => F.value), R = r(() => {
|
|
10035
10045
|
let e = D.value?.trim().toLowerCase() || "";
|
|
@@ -10072,7 +10082,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10072
10082
|
});
|
|
10073
10083
|
}
|
|
10074
10084
|
}
|
|
10075
|
-
}, { clearAllFocuses: U } =
|
|
10085
|
+
}, { clearAllFocuses: U } = Il(), W = () => {
|
|
10076
10086
|
n.value && (g.value = null, f.value ? n.value.setAdvancedFilterModel(null) : (n.value.setFilterModel(null), n.value.onFilterChanged()), h.value += 1, U(), T.value = !1);
|
|
10077
10087
|
}, G = () => {
|
|
10078
10088
|
w.value = !1, D.value = "";
|
|
@@ -10081,8 +10091,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10081
10091
|
}, ie = () => {
|
|
10082
10092
|
b(), te.value && n.value && (f.value ? n.value.setAdvancedFilterModel(g.value) : (n.value.setFilterModel(g.value), n.value.onFilterChanged())), g.value = null, G();
|
|
10083
10093
|
};
|
|
10084
|
-
return (e, r) => (E(), o(t, null, [s("div",
|
|
10085
|
-
(E(!0), o(t, null, k(ee.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(
|
|
10094
|
+
return (e, r) => (E(), o(t, null, [s("div", td, [
|
|
10095
|
+
(E(!0), o(t, null, k(ee.value, (s) => (E(), o(t, { key: s.field }, [I(n) ? (E(), i(ed, {
|
|
10086
10096
|
key: 0,
|
|
10087
10097
|
"enable-focus-view": p.enableFocusView,
|
|
10088
10098
|
"display-preferences-icon": p.displayPreferencesIcon,
|
|
@@ -10099,7 +10109,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10099
10109
|
"read-only",
|
|
10100
10110
|
"disable-unselected"
|
|
10101
10111
|
])) : a("", !0)], 64))), 128)),
|
|
10102
|
-
s("div",
|
|
10112
|
+
s("div", nd, [p.enableVerticalPanel ? (E(), i(I(An), {
|
|
10103
10113
|
key: 0,
|
|
10104
10114
|
label: "All Filters",
|
|
10105
10115
|
onClick: V,
|
|
@@ -10119,7 +10129,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10119
10129
|
variant: "tertiary"
|
|
10120
10130
|
}, null, 8, ["value"])) : a("", !0)
|
|
10121
10131
|
])) : a("", !0)]),
|
|
10122
|
-
p.enableVerticalPanel ? (E(), i(I(
|
|
10132
|
+
p.enableVerticalPanel ? (E(), i(I(Hs), {
|
|
10123
10133
|
key: 0,
|
|
10124
10134
|
modelValue: w.value,
|
|
10125
10135
|
"onUpdate:modelValue": r[9] ||= (e) => w.value = e,
|
|
@@ -10131,7 +10141,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10131
10141
|
"z-index": "10"
|
|
10132
10142
|
}
|
|
10133
10143
|
}, {
|
|
10134
|
-
header: H(() => [s("div",
|
|
10144
|
+
header: H(() => [s("div", rd, [s("p", id, "All Filters (" + P(L.value.length) + ")", 1), s("button", {
|
|
10135
10145
|
class: "pv-button-ghost",
|
|
10136
10146
|
"aria-label": "Close",
|
|
10137
10147
|
onClick: r[2] ||= (e) => re()
|
|
@@ -10140,7 +10150,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10140
10150
|
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
10141
10151
|
placeholder: "Search Filters"
|
|
10142
10152
|
}, null, 8, ["modelValue"])]),
|
|
10143
|
-
footer: H(() => [s("div",
|
|
10153
|
+
footer: H(() => [s("div", ud, [p.readOnly ? (E(), i(I(An), {
|
|
10144
10154
|
key: 1,
|
|
10145
10155
|
variant: "ghost",
|
|
10146
10156
|
label: "Close",
|
|
@@ -10148,7 +10158,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10148
10158
|
})) : (E(), o(t, { key: 0 }, [s("button", {
|
|
10149
10159
|
class: "pv-button-ghost",
|
|
10150
10160
|
onClick: r[5] ||= (e) => W()
|
|
10151
|
-
}, "Clear All"), s("div",
|
|
10161
|
+
}, "Clear All"), s("div", dd, [u(I(An), {
|
|
10152
10162
|
variant: "ghost",
|
|
10153
10163
|
label: "Cancel",
|
|
10154
10164
|
onClick: r[6] ||= (e) => re()
|
|
@@ -10163,7 +10173,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10163
10173
|
label: "No Changes",
|
|
10164
10174
|
disabled: ""
|
|
10165
10175
|
}))])], 64))])]),
|
|
10166
|
-
default: H(() => [s("div",
|
|
10176
|
+
default: H(() => [s("div", ad, [s("div", od, [(E(!0), o(t, null, k(R.value, (t, c) => (E(), o("div", {
|
|
10167
10177
|
key: t.field,
|
|
10168
10178
|
class: y([{ "pv-border-bottom": c < R.value.length - 1 }, "pv-stack-12"])
|
|
10169
10179
|
}, [s("details", {
|
|
@@ -10172,7 +10182,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10172
10182
|
}, [s("summary", {
|
|
10173
10183
|
class: "pv-flex pv-full-width",
|
|
10174
10184
|
onClick: (e) => N(t) && e.preventDefault()
|
|
10175
|
-
}, [s("span",
|
|
10185
|
+
}, [s("span", ld, P(t.headerName), 1)], 8, cd), s("div", null, [I(n) ? (E(), i(ed, {
|
|
10176
10186
|
key: 0,
|
|
10177
10187
|
"filter-style": "vertical",
|
|
10178
10188
|
"enable-focus-view": p.enableFocusView,
|
|
@@ -10190,17 +10200,17 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10190
10200
|
"focus-text",
|
|
10191
10201
|
"read-only",
|
|
10192
10202
|
"disable-unselected"
|
|
10193
|
-
])) : a("", !0)])], 10,
|
|
10203
|
+
])) : a("", !0)])], 10, sd)], 2))), 128))])])]),
|
|
10194
10204
|
_: 1
|
|
10195
10205
|
}, 8, ["modelValue"])) : a("", !0)
|
|
10196
|
-
]), u(I(
|
|
10206
|
+
]), u(I(ks), {
|
|
10197
10207
|
modelValue: T.value,
|
|
10198
10208
|
"onUpdate:modelValue": r[12] ||= (e) => T.value = e,
|
|
10199
10209
|
header: "Clear All Filters",
|
|
10200
10210
|
style: { top: "50%" }
|
|
10201
10211
|
}, {
|
|
10202
10212
|
body: H(() => [...r[14] ||= [s("p", { class: "pv-text-body-lg" }, "This action will remove all currently applied filters. Would you like to continue?", -1)]]),
|
|
10203
|
-
footer: H(() => [s("div",
|
|
10213
|
+
footer: H(() => [s("div", fd, [u(I(An), {
|
|
10204
10214
|
label: "Cancel",
|
|
10205
10215
|
variant: "secondary",
|
|
10206
10216
|
size: "lg",
|
|
@@ -10214,21 +10224,21 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10214
10224
|
_: 1
|
|
10215
10225
|
}, 8, ["modelValue"])], 64));
|
|
10216
10226
|
}
|
|
10217
|
-
}), [["__scopeId", "data-v-91375005"]]),
|
|
10227
|
+
}), [["__scopeId", "data-v-91375005"]]), md = { key: 2 }, hd = {
|
|
10218
10228
|
key: 0,
|
|
10219
10229
|
class: "pv-flex ag-header-actions"
|
|
10220
|
-
},
|
|
10230
|
+
}, gd = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10221
10231
|
__name: "HeaderCellRenderer",
|
|
10222
10232
|
props: { params: {} },
|
|
10223
10233
|
setup(e, { expose: t }) {
|
|
10224
|
-
let n = m(
|
|
10234
|
+
let n = m(Jc, O([])), c = m(el, O([])), l = e, d = O(!1), f = O(!1), p = O(null), h = O(null), g = O(null), _ = O(!1), v = r(() => {
|
|
10225
10235
|
let e = l.params.column.getColDef();
|
|
10226
10236
|
return e.sortable || e.filter || e.enableRowGroup;
|
|
10227
10237
|
}), b = r(() => {
|
|
10228
10238
|
if (!n.value || n.value.length === 0) return "";
|
|
10229
10239
|
let e = n.value.find((e) => e.colId === l.params.column.getColId()), t = e ? e.sort : "";
|
|
10230
10240
|
return t === "asc" ? "arrow-up" : t === "desc" ? "arrow-down" : "";
|
|
10231
|
-
}), C = r(() =>
|
|
10241
|
+
}), C = r(() => jo(l.params.column.getColDef())), w = r(() => {
|
|
10232
10242
|
let e = l.params.column.getColDef(), t = e.allowedAggFuncs;
|
|
10233
10243
|
if (!t || t.length <= 1) return [];
|
|
10234
10244
|
let n = $(e).aggFuncDisplayNameMap || {};
|
|
@@ -10244,7 +10254,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10244
10254
|
}, N = () => {
|
|
10245
10255
|
_.value = !0, g.value && l.params.showColumnMenu(g.value, M);
|
|
10246
10256
|
}, F = (e) => {
|
|
10247
|
-
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value =
|
|
10257
|
+
d.value = e.enableFilterButton, f.value = e.enableSorting || !1, p.value = e.displayName, h.value = Co(e.column.getColDef().context?.dataType), p.value = wo(p.value, e.column.getColDef().context?.dataType);
|
|
10248
10258
|
}, I = () => {
|
|
10249
10259
|
f.value && l.params.progressSort(!1);
|
|
10250
10260
|
};
|
|
@@ -10280,7 +10290,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10280
10290
|
name: h.value,
|
|
10281
10291
|
class: "pv-text-tertiary"
|
|
10282
10292
|
}, null, 8, ["name"])) : a("", !0),
|
|
10283
|
-
j.value ? (E(), i(
|
|
10293
|
+
j.value ? (E(), i(no, {
|
|
10284
10294
|
key: 1,
|
|
10285
10295
|
modelValue: D.value,
|
|
10286
10296
|
"onUpdate:modelValue": t[0] ||= (e) => D.value = e,
|
|
@@ -10297,12 +10307,12 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10297
10307
|
"modelValue",
|
|
10298
10308
|
"options",
|
|
10299
10309
|
"label"
|
|
10300
|
-
])) : (E(), o("p",
|
|
10310
|
+
])) : (E(), o("p", md, P(p.value), 1)),
|
|
10301
10311
|
f.value && b.value !== "" ? (E(), i(En, {
|
|
10302
10312
|
key: 3,
|
|
10303
10313
|
name: b.value
|
|
10304
10314
|
}, null, 8, ["name"])) : a("", !0)
|
|
10305
|
-
], 6), v.value ? (E(), o("div",
|
|
10315
|
+
], 6), v.value ? (E(), o("div", hd, [s("div", {
|
|
10306
10316
|
ref_key: "menuButton",
|
|
10307
10317
|
ref: g,
|
|
10308
10318
|
class: "ag-header-cell-menu-button",
|
|
@@ -10315,7 +10325,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10315
10325
|
onClick: W(N, ["stop", "prevent"])
|
|
10316
10326
|
})], 4)])) : a("", !0)], 4));
|
|
10317
10327
|
}
|
|
10318
|
-
}), [["__scopeId", "data-v-385ad98a"]]),
|
|
10328
|
+
}), [["__scopeId", "data-v-385ad98a"]]), _d = {
|
|
10319
10329
|
headerHeight: "30px",
|
|
10320
10330
|
headerBackgroundColor: "white",
|
|
10321
10331
|
headerCellHoverBackgroundColor: "#F7F8F8",
|
|
@@ -10330,14 +10340,14 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10330
10340
|
rangeSelectionBorderStyle: "solid",
|
|
10331
10341
|
menuBackgroundColor: "white",
|
|
10332
10342
|
accentColor: "#36C5BA"
|
|
10333
|
-
},
|
|
10334
|
-
...
|
|
10343
|
+
}, vd = Me.withParams({
|
|
10344
|
+
..._d,
|
|
10335
10345
|
headerRowBorder: !0,
|
|
10336
10346
|
rowHoverColor: "#F7F8F8",
|
|
10337
10347
|
wrapperBorder: !0,
|
|
10338
10348
|
wrapperBorderRadius: "8px"
|
|
10339
|
-
}),
|
|
10340
|
-
...
|
|
10349
|
+
}), yd = Me.withParams({
|
|
10350
|
+
..._d,
|
|
10341
10351
|
headerRowBorder: !1,
|
|
10342
10352
|
rowHoverColor: "transparent",
|
|
10343
10353
|
wrapperBorder: !1,
|
|
@@ -10345,20 +10355,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10345
10355
|
rowBorder: !1,
|
|
10346
10356
|
columnBorder: !1,
|
|
10347
10357
|
rowHeight: "50px"
|
|
10348
|
-
}),
|
|
10349
|
-
"pv-data-table-base":
|
|
10358
|
+
}), bd = {
|
|
10359
|
+
"pv-data-table-base": vd,
|
|
10350
10360
|
"pv-data-table-grouped": Me.withParams({
|
|
10351
|
-
...
|
|
10361
|
+
..._d,
|
|
10352
10362
|
headerRowBorder: !0,
|
|
10353
10363
|
rowHoverColor: "#F7F8F8",
|
|
10354
10364
|
wrapperBorder: !0,
|
|
10355
10365
|
wrapperBorderRadius: "8px"
|
|
10356
10366
|
}),
|
|
10357
|
-
"pv-data-table-grouped-card":
|
|
10358
|
-
},
|
|
10367
|
+
"pv-data-table-grouped-card": yd
|
|
10368
|
+
}, xd = { class: "pv-popover-menu" }, Sd = {
|
|
10359
10369
|
class: "pv-popover",
|
|
10360
10370
|
style: { "--height": "auto" }
|
|
10361
|
-
},
|
|
10371
|
+
}, Cd = ["disabled"], wd = /* @__PURE__ */ d({
|
|
10362
10372
|
__name: "ExportMenu",
|
|
10363
10373
|
props: { getCsvData: { type: Function } },
|
|
10364
10374
|
setup(e) {
|
|
@@ -10373,27 +10383,27 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10373
10383
|
let t = new Blob([e], { type: "text/csv;charset=utf-8;" }), i = document.createElement("a");
|
|
10374
10384
|
i.href = URL.createObjectURL(t), i.setAttribute("download", "datatable_export.csv"), i.click(), r.value = !1;
|
|
10375
10385
|
}
|
|
10376
|
-
return (e, n) => (E(), o("nav",
|
|
10386
|
+
return (e, n) => (E(), o("nav", xd, [n[0] ||= s("button", {
|
|
10377
10387
|
type: "button",
|
|
10378
10388
|
class: "pv-button-icon"
|
|
10379
10389
|
}, [s("svg", {
|
|
10380
10390
|
"aria-hidden": "true",
|
|
10381
10391
|
class: "pv-icon-24"
|
|
10382
|
-
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div",
|
|
10392
|
+
}, [s("title", null, "ellipsis"), s("use", { "xlink:href": "#ellipsis" })])], -1), s("div", Sd, [s("button", {
|
|
10383
10393
|
class: "pv-button pv-text-body-sm pv-inset-square-8",
|
|
10384
10394
|
onClick: W(i, ["prevent"]),
|
|
10385
10395
|
disabled: r.value
|
|
10386
|
-
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8,
|
|
10396
|
+
}, [r.value ? (E(), o(t, { key: 0 }, [l("Exporting...")], 64)) : (E(), o(t, { key: 1 }, [l("Download CSV")], 64))], 8, Cd)])]));
|
|
10387
10397
|
}
|
|
10388
|
-
}),
|
|
10398
|
+
}), Td = {
|
|
10389
10399
|
key: 1,
|
|
10390
10400
|
class: ""
|
|
10391
|
-
},
|
|
10401
|
+
}, Ed = /* @__PURE__ */ d({
|
|
10392
10402
|
__name: "PaginationPanel",
|
|
10393
10403
|
props: { panelSize: { default: "xl" } },
|
|
10394
10404
|
setup(e) {
|
|
10395
10405
|
Se.registerModules([X]);
|
|
10396
|
-
let n = m(
|
|
10406
|
+
let n = m(Yc, O(null)), a = m(al, O(1)), s = m(ol, O(0)), c = e, l = r(() => {
|
|
10397
10407
|
let e = s.value, t = a.value;
|
|
10398
10408
|
if (e <= 7) return Array.from({ length: e }, (e, t) => t + 1);
|
|
10399
10409
|
let n = [];
|
|
@@ -10425,7 +10435,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10425
10435
|
"size",
|
|
10426
10436
|
"onClick",
|
|
10427
10437
|
"label"
|
|
10428
|
-
])) : (E(), o("span",
|
|
10438
|
+
])) : (E(), o("span", Td, "..."))], 64))), 128)),
|
|
10429
10439
|
u(An, {
|
|
10430
10440
|
variant: "ghost",
|
|
10431
10441
|
onClick: f,
|
|
@@ -10436,10 +10446,10 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10436
10446
|
}, null, 8, ["disabled", "size"])
|
|
10437
10447
|
], 2));
|
|
10438
10448
|
}
|
|
10439
|
-
}),
|
|
10449
|
+
}), Dd = {
|
|
10440
10450
|
key: 0,
|
|
10441
10451
|
class: "pv-tag"
|
|
10442
|
-
},
|
|
10452
|
+
}, Od = /* @__PURE__ */ d({
|
|
10443
10453
|
__name: "TagCellRenderer",
|
|
10444
10454
|
props: { params: {} },
|
|
10445
10455
|
setup(e) {
|
|
@@ -10447,29 +10457,29 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10447
10457
|
let e = t.params.valueFormatted || t.params.value || "";
|
|
10448
10458
|
return e.trim() === "" ? null : e;
|
|
10449
10459
|
});
|
|
10450
|
-
return (e, t) => n.value ? (E(), o("div",
|
|
10460
|
+
return (e, t) => n.value ? (E(), o("div", Dd, P(n.value), 1)) : a("", !0);
|
|
10451
10461
|
}
|
|
10452
|
-
}),
|
|
10462
|
+
}), kd = {
|
|
10453
10463
|
key: 0,
|
|
10454
10464
|
class: "pv-table-row-number"
|
|
10455
|
-
},
|
|
10465
|
+
}, Ad = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
10456
10466
|
__name: "RowCountCellRenderer",
|
|
10457
10467
|
props: { params: {} },
|
|
10458
10468
|
setup(e) {
|
|
10459
10469
|
let t = e, n = r(() => (t.params.node?.rowIndex || 0) + 1), i = r(() => {
|
|
10460
10470
|
let e = t.params.column?.getColDef(), n = t.params.valueFormatted || t.params.value;
|
|
10461
|
-
return e &&
|
|
10471
|
+
return e && jo(e) ? n.toLocaleString() : n;
|
|
10462
10472
|
});
|
|
10463
|
-
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span",
|
|
10473
|
+
return (e, t) => (E(), o("div", null, [s("p", null, [n.value ? (E(), o("span", kd, P(n.value), 1)) : a("", !0), l(" " + P(i.value), 1)])]));
|
|
10464
10474
|
}
|
|
10465
|
-
}), [["__scopeId", "data-v-686928ce"]]),
|
|
10475
|
+
}), [["__scopeId", "data-v-686928ce"]]), jd = /* @__PURE__ */ d({
|
|
10466
10476
|
__name: "TableSearch",
|
|
10467
10477
|
props: {
|
|
10468
10478
|
placeholder: {},
|
|
10469
10479
|
searchStyle: {}
|
|
10470
10480
|
},
|
|
10471
10481
|
setup(e) {
|
|
10472
|
-
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(
|
|
10482
|
+
let t = e, n = O(null), r = O(""), a = O([]), o = O(!1), s = m(Yc, O(null)), c = m(_l, O(!1)), { isServerSideFilter: l, filterModel: u, tableSearchHandler: d, applyTableSearchFilterModel: f } = Fu(), p = (e) => {
|
|
10473
10483
|
!s?.value || typeof s.value.setGridOption != "function" || (l.value ? console.error("Server-side filtering with table free text search is not yet supported.") : s.value.setGridOption("quickFilterText", e));
|
|
10474
10484
|
}, h = (e) => {
|
|
10475
10485
|
if (s?.value) {
|
|
@@ -10477,7 +10487,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10477
10487
|
console.error("Client-side filtering with query builder is not yet supported");
|
|
10478
10488
|
return;
|
|
10479
10489
|
}
|
|
10480
|
-
f(c.value ?
|
|
10490
|
+
f(c.value ? iu(e) : ru(e));
|
|
10481
10491
|
}
|
|
10482
10492
|
}, g = async (e) => {
|
|
10483
10493
|
if (!e || e.length < 2) {
|
|
@@ -10492,7 +10502,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10492
10502
|
};
|
|
10493
10503
|
o.value = !0, a.value = ((await d.value?.(t))?.filter((e) => e !== null) || []).map((e) => {
|
|
10494
10504
|
let t = "search", n = s.value?.getColumnDef(e.queryField || "");
|
|
10495
|
-
return n && (t =
|
|
10505
|
+
return n && (t = Co(n.context?.dataType || null) || "search"), {
|
|
10496
10506
|
id: `${e.queryField}-${e.queryText}`,
|
|
10497
10507
|
text: e.queryText,
|
|
10498
10508
|
icon: t,
|
|
@@ -10511,7 +10521,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10511
10521
|
debounce: 300,
|
|
10512
10522
|
immediate: !0,
|
|
10513
10523
|
deep: !0
|
|
10514
|
-
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(
|
|
10524
|
+
}), (t, s) => e.searchStyle === "query-builder" ? (E(), i(Gc, {
|
|
10515
10525
|
key: 0,
|
|
10516
10526
|
placeholder: e.placeholder,
|
|
10517
10527
|
"search-text": r.value,
|
|
@@ -10534,28 +10544,28 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10534
10544
|
"onUpdate:modelValue": s[3] ||= (e) => r.value = e
|
|
10535
10545
|
}, null, 8, ["placeholder", "modelValue"]));
|
|
10536
10546
|
}
|
|
10537
|
-
}),
|
|
10547
|
+
}), Md = {
|
|
10538
10548
|
style: {
|
|
10539
10549
|
"background-color": "white",
|
|
10540
10550
|
"max-width": "300px"
|
|
10541
10551
|
},
|
|
10542
10552
|
class: "pv-inset-square-8 pv-bordered-md pv-text-md"
|
|
10543
|
-
},
|
|
10553
|
+
}, Nd = { style: { color: "black" } }, Pd = /* @__PURE__ */ d({
|
|
10544
10554
|
__name: "TableTooltip",
|
|
10545
10555
|
props: { params: {} },
|
|
10546
10556
|
setup(e) {
|
|
10547
|
-
return (t, n) => (E(), o("div",
|
|
10557
|
+
return (t, n) => (E(), o("div", Md, [s("p", Nd, P(e.params.value), 1)]));
|
|
10548
10558
|
}
|
|
10549
|
-
}),
|
|
10559
|
+
}), Fd = { class: "pv-stack-16" }, Id = { class: "pv-flex pv-space-between" }, Ld = { class: "pv-flex" }, Rd = { style: {
|
|
10550
10560
|
width: "30%",
|
|
10551
10561
|
"max-width": "50%"
|
|
10552
|
-
} },
|
|
10562
|
+
} }, zd = {
|
|
10553
10563
|
key: 0,
|
|
10554
10564
|
class: "pv-table-overlay"
|
|
10555
|
-
},
|
|
10565
|
+
}, Bd = {
|
|
10556
10566
|
class: "pv-text-body-xs pv-text-center",
|
|
10557
10567
|
style: { "padding-top": "16px" }
|
|
10558
|
-
},
|
|
10568
|
+
}, Vd = /* @__PURE__ */ d({
|
|
10559
10569
|
__name: "PvDataTable",
|
|
10560
10570
|
props: {
|
|
10561
10571
|
allFieldsAreFocusable: {
|
|
@@ -10784,17 +10794,17 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10784
10794
|
let p = r(() => f.layout ? {} : {
|
|
10785
10795
|
height: f.containerHeight,
|
|
10786
10796
|
minHeight: f.containerMinHeight
|
|
10787
|
-
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme :
|
|
10788
|
-
let t =
|
|
10797
|
+
}), h = r(() => f.theme != null && typeof f.theme != "string"), g = r(() => f.theme && typeof f.theme == "string" ? f.theme : K.value.length > 0 ? "pv-data-table-grouped" : "pv-data-table-base"), b = f.theme && typeof f.theme == "string" ? f.theme : "pv-data-table-base", w = r(() => h.value ? f.theme : bd[g.value]), T = c, k = O(!1), j = (e) => {
|
|
10798
|
+
let t = No(e), n = e.context;
|
|
10789
10799
|
return Array.from(new Set([
|
|
10790
10800
|
...t,
|
|
10791
10801
|
...n?.queryColIds || [],
|
|
10792
10802
|
...t.flatMap((e) => G.find((t) => t.field === e || t.colId === e)?.context?.queryColIds || [])
|
|
10793
10803
|
]));
|
|
10794
10804
|
}, M = (e, t) => {
|
|
10795
|
-
if (
|
|
10796
|
-
let n = G.find((e) =>
|
|
10797
|
-
return !!n && j(n).some((t) =>
|
|
10805
|
+
if (su(e, t)) return !0;
|
|
10806
|
+
let n = G.find((e) => Po(e) === t);
|
|
10807
|
+
return !!n && j(n).some((t) => su(e, t));
|
|
10798
10808
|
}, F = "serverSideRowHandler" in f && f.serverSideRowHandler ? { getRows: (e) => {
|
|
10799
10809
|
if (!J.value) {
|
|
10800
10810
|
e.success({ rowData: [] }), q.value = !0;
|
|
@@ -10806,7 +10816,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10806
10816
|
let t = e.request.rowGroupCols[0].id;
|
|
10807
10817
|
o = M(s, t);
|
|
10808
10818
|
}
|
|
10809
|
-
if (e.request.rowGroupCols =
|
|
10819
|
+
if (e.request.rowGroupCols = Io(e.request.rowGroupCols, e.api.getColumnDefs?.()), (e.request.groupKeys?.length || 0) > 0) {
|
|
10810
10820
|
let t = e.parentNode?.data;
|
|
10811
10821
|
if (t?.bucketMin != null && t?.bucketMax != null) {
|
|
10812
10822
|
if (f.enableAdvancedFilter) {
|
|
@@ -10828,7 +10838,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10828
10838
|
filter: t.bucketMax
|
|
10829
10839
|
}]
|
|
10830
10840
|
};
|
|
10831
|
-
n =
|
|
10841
|
+
n = bu(n, i, e);
|
|
10832
10842
|
}
|
|
10833
10843
|
}), n && (e.request.filterModel = n);
|
|
10834
10844
|
} else {
|
|
@@ -10852,7 +10862,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10852
10862
|
}
|
|
10853
10863
|
}), e.request.filterModel = n;
|
|
10854
10864
|
}
|
|
10855
|
-
e.request.groupKeys = e.request.groupKeys.filter((t, n) => e.request.rowGroupCols?.[n]?.aggFunc !==
|
|
10865
|
+
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);
|
|
10856
10866
|
}
|
|
10857
10867
|
}
|
|
10858
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) && !Se.tableSearchFilterModelEmpty.value) if (f.enableAdvancedFilter) {
|
|
@@ -10864,11 +10874,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10864
10874
|
} : e.request.filterModel = s;
|
|
10865
10875
|
} else {
|
|
10866
10876
|
let t = e.request.filterModel;
|
|
10867
|
-
e.request.filterModel =
|
|
10877
|
+
e.request.filterModel = cu(G, t, s);
|
|
10868
10878
|
}
|
|
10869
10879
|
e.success = (e) => {
|
|
10870
10880
|
if (oe.value = !1, f.enableFocusView && ct.value.length > 0 && st.value && e.rowData) {
|
|
10871
|
-
let n =
|
|
10881
|
+
let n = Do(e.rowData, st.value, ct.value);
|
|
10872
10882
|
if (n) {
|
|
10873
10883
|
e.rowData = n, t(e);
|
|
10874
10884
|
return;
|
|
@@ -10880,7 +10890,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10880
10890
|
}, f.serverSideRowHandler?.(e);
|
|
10881
10891
|
} } : null, L = "filterValuesSetHandler" in f && f.filterValuesSetHandler ? async (e) => {
|
|
10882
10892
|
let t = [], n = { ...Ze.value };
|
|
10883
|
-
t = !q.value && ie ?
|
|
10893
|
+
t = !q.value && ie ? wu(n, e.colDef.field ?? e.colDef.colId ?? "") || [] : await rt(e.colDef, {
|
|
10884
10894
|
api: e.api,
|
|
10885
10895
|
filterModel: n,
|
|
10886
10896
|
useStaged: !1
|
|
@@ -10899,19 +10909,19 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10899
10909
|
suppressColumnsToolPanel: !0,
|
|
10900
10910
|
minWidth: 150,
|
|
10901
10911
|
flex: 1,
|
|
10902
|
-
headerComponent: f.enableInlineFilters ? void 0 :
|
|
10912
|
+
headerComponent: f.enableInlineFilters ? void 0 : gd,
|
|
10903
10913
|
cellDataType: !1,
|
|
10904
|
-
tooltipComponent:
|
|
10905
|
-
cellClass: (e) => bt(e.column) ? "" :
|
|
10914
|
+
tooltipComponent: Pd,
|
|
10915
|
+
cellClass: (e) => bt(e.column) ? "" : jo(e.column?.getColDef()) ? "pv-text-right" : "",
|
|
10906
10916
|
cellRendererSelector: (e) => {
|
|
10907
10917
|
if (R(e)) return e.column?.getColDef().cellRenderer ? void 0 : {
|
|
10908
|
-
component:
|
|
10918
|
+
component: Yl,
|
|
10909
10919
|
params: e
|
|
10910
10920
|
};
|
|
10911
10921
|
if (!e.column?.getColDef().cellRenderer && f.displayRowNumber && K.value.length === 0) {
|
|
10912
10922
|
let t = e.api.getAllDisplayedColumns() || [], n = e.column;
|
|
10913
10923
|
if (t.findIndex((e) => e === n) === 0) return {
|
|
10914
|
-
component:
|
|
10924
|
+
component: Ad,
|
|
10915
10925
|
params: e
|
|
10916
10926
|
};
|
|
10917
10927
|
}
|
|
@@ -10936,7 +10946,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10936
10946
|
}
|
|
10937
10947
|
}, W = (e, t) => {
|
|
10938
10948
|
if (!e) return null;
|
|
10939
|
-
let n = { ...e }, r = t, i =
|
|
10949
|
+
let n = { ...e }, r = t, i = No(e);
|
|
10940
10950
|
if (r.devOnly) if (f.devMode) n.hide = !0;
|
|
10941
10951
|
else return null;
|
|
10942
10952
|
if (i.length > 0) {
|
|
@@ -10947,21 +10957,21 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10947
10957
|
let t = e.headerValueGetter;
|
|
10948
10958
|
n.headerValueGetter = (e) => e.location === "advancedFilter" ? n.colId || n.field || "" : t && typeof t == "function" ? t(e) : t && typeof t == "string" ? t : n.headerName || n.field || "";
|
|
10949
10959
|
}
|
|
10950
|
-
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType ===
|
|
10960
|
+
return r.isArrayField && !e.valueFormatter ? n.valueFormatter = (e) => kt(e, r.dataType) : r.dataType === So.Percent && !e.valueFormatter ? n.valueFormatter = (e) => Dt(e, r.valueDecimals || 0) : r.dataType === So.Currency && !e.valueFormatter ? n.valueFormatter = (e) => Et(e, r.valueDecimals || 0) : r.dataType === So.Integer && !e.valueFormatter ? n.valueFormatter = Ot : r.dataType === So.Tag && !e.cellRenderer && (n.cellRenderer = Od), n;
|
|
10951
10961
|
}, G = f.colDefs?.map((e) => {
|
|
10952
10962
|
let t = { ...e };
|
|
10953
|
-
F && L &&
|
|
10963
|
+
F && L && lu(e) && (t = uu(e, L));
|
|
10954
10964
|
let n = e.context;
|
|
10955
10965
|
return n && (t = W(t, n)), t;
|
|
10956
10966
|
}).filter((e) => e != null) || [], re = new Set(f.colDefs?.map((e) => e.field || e.colId).filter(Boolean) || []);
|
|
10957
|
-
for (let e of G) for (let t of
|
|
10958
|
-
let ie =
|
|
10967
|
+
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([]), q = m(rl, O(!1)), oe = O(!1), se = r(() => {
|
|
10959
10969
|
if (K.value.length > 0) {
|
|
10960
10970
|
let e = K.value[0], t = G.find((t) => t.field === e), n = Ze.value, r = !n;
|
|
10961
|
-
if (!r &&
|
|
10971
|
+
if (!r && Au(n) && (r = !n[e]), r && t?.context?.filterRequiredToGroup) return t.headerName;
|
|
10962
10972
|
}
|
|
10963
10973
|
return null;
|
|
10964
|
-
}), J = r(() => Se.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : se.value === null), ce = r(() => se.value ? `Select at least one value for "${se.value}" to view data.` : "Select a filter to view data."), Y = N(null), X = O([]), Se = f.filterStore ||
|
|
10974
|
+
}), J = r(() => Se.filterModelEmpty.value && f.requireFiltersToShowData ? !1 : se.value === null), ce = r(() => se.value ? `Select at least one value for "${se.value}" to view data.` : "Select a filter to view data."), Y = N(null), X = O([]), Se = f.filterStore || Fu(), Me = m(qc, null), Xe = Me || Fl(null, f.allFieldsAreFocusable), Ze = Se.filterModel, Qe = Se.tableSearchFilterModel, $e = Se.filterValueMap, et = Se.filterValuesMap, nt = Se.filterValueSelectedMetadataMap, rt = Se.fetchFilterValues, it = Se.filterStoreHandler, at = Se.tableSearchHandler;
|
|
10965
10975
|
if (it.value = f.filterValuesSetHandler, it.value) {
|
|
10966
10976
|
let e = (e) => ({
|
|
10967
10977
|
hasMore: Se.filterHasMoreMap.value[e],
|
|
@@ -10990,8 +11000,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
10990
11000
|
debounce: 250
|
|
10991
11001
|
});
|
|
10992
11002
|
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);
|
|
10993
|
-
D(
|
|
10994
|
-
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData :
|
|
11003
|
+
D(Kc, Se), D(qc, Xe), D(Jc, X), D(Yc, Y), D(Xc, ot), D(Zc, ae), D(Qc, lt), D($c, ut), D(el, K), D(tl, ft), D(nl, pt), D(rl, q), D(il, oe), D(al, mt), D(ol, ht), D(_l, r(() => f.enableAdvancedFilter));
|
|
11004
|
+
let gt = r(() => !f.enableFocusView && !f.rowData || f.enableFocusView && !ct.value.length && !st.value ? f.rowData : Do(f.rowData, st.value, ct.value));
|
|
10995
11005
|
V(() => ct.value, (e) => {
|
|
10996
11006
|
T("focus-update", {
|
|
10997
11007
|
filterField: st.value,
|
|
@@ -11013,7 +11023,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11013
11023
|
}, vt = (e) => {
|
|
11014
11024
|
if (Y.value) {
|
|
11015
11025
|
let t = Tt();
|
|
11016
|
-
|
|
11026
|
+
yu(Ze.value, t) || (Ze.value = t, T("filter-changed", e));
|
|
11017
11027
|
}
|
|
11018
11028
|
}, yt = (e) => {
|
|
11019
11029
|
X.value = e.api?.getState()?.sort?.sortModel || [], q.value && T("sort-changed", e);
|
|
@@ -11094,10 +11104,10 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11094
11104
|
}, Tt = () => Y.value ? f.enableAdvancedFilter ? Y.value.getAdvancedFilterModel() : Y.value.getFilterModel() : Ze.value, At = (e) => {
|
|
11095
11105
|
if (!Y.value) return !1;
|
|
11096
11106
|
if (f.enableAdvancedFilter) {
|
|
11097
|
-
let t = e &&
|
|
11107
|
+
let t = e && Au(e) ? tu(e) : e;
|
|
11098
11108
|
Y.value.setAdvancedFilterModel(t);
|
|
11099
11109
|
} else {
|
|
11100
|
-
if (e && !
|
|
11110
|
+
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;
|
|
11101
11111
|
Y.value.setFilterModel(e);
|
|
11102
11112
|
}
|
|
11103
11113
|
return !0;
|
|
@@ -11153,7 +11163,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11153
11163
|
if (e) return e.click(), !0;
|
|
11154
11164
|
}
|
|
11155
11165
|
return !1;
|
|
11156
|
-
}, Bt = O(
|
|
11166
|
+
}, Bt = O(jl), Vt = O({ loadingMessage: "One moment please..." }), Ht = O((() => {
|
|
11157
11167
|
let e = {
|
|
11158
11168
|
headerName: "",
|
|
11159
11169
|
minWidth: 200,
|
|
@@ -11163,7 +11173,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11163
11173
|
headerComponent: void 0,
|
|
11164
11174
|
cellRendererParams: {
|
|
11165
11175
|
suppressCount: !0,
|
|
11166
|
-
innerRenderer:
|
|
11176
|
+
innerRenderer: Gl,
|
|
11167
11177
|
innerRendererParams: (e) => ({
|
|
11168
11178
|
displayBaseAggregationsOnly: f.displayBaseAggregationsOnly,
|
|
11169
11179
|
displayRowNumber: f.displayRowNumber,
|
|
@@ -11182,7 +11192,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11182
11192
|
Ht.value.headerName = "", Ht.value.headerComponent = void 0, Ht.value.context = null, Ht.value.sortable = !1, Ht.value.filter = void 0, Ht.value.enableRowGroup = void 0;
|
|
11183
11193
|
return;
|
|
11184
11194
|
}
|
|
11185
|
-
Ht.value.field = e.field, Ht.value.headerName = e.headerName, Ht.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 :
|
|
11195
|
+
Ht.value.field = e.field, Ht.value.headerName = e.headerName, Ht.value.headerComponent = e.headerComponent ?? (f.enableInlineFilters ? void 0 : gd), Ht.value.context = { dataType: e.context?.dataType || null }, Ht.value.sortable = e.sortable, Ht.value.filter = e.filter, Ht.value.enableRowGroup = e.enableRowGroup, Ht.value.onCellClicked = e.onCellClicked;
|
|
11186
11196
|
}, Wt = (e) => {
|
|
11187
11197
|
if (e.node.group) return {
|
|
11188
11198
|
backgroundColor: "#F7F8F8",
|
|
@@ -11192,12 +11202,12 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11192
11202
|
let t = e.values;
|
|
11193
11203
|
if (e.rowNode.leafGroup) return {
|
|
11194
11204
|
values: t,
|
|
11195
|
-
value:
|
|
11205
|
+
value: Kl(t)
|
|
11196
11206
|
};
|
|
11197
11207
|
let n = e.values.flatMap((e) => e.values || []);
|
|
11198
11208
|
return {
|
|
11199
11209
|
values: n,
|
|
11200
|
-
value:
|
|
11210
|
+
value: Kl(n)
|
|
11201
11211
|
};
|
|
11202
11212
|
} };
|
|
11203
11213
|
S(() => {
|
|
@@ -11217,11 +11227,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11217
11227
|
let t = Y.value;
|
|
11218
11228
|
if (!t) return;
|
|
11219
11229
|
let n = e.filter?.filterModel || null, r = e.rowGroup?.groupColIds || null, i = e.columnVisibility || null;
|
|
11220
|
-
n && !
|
|
11230
|
+
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);
|
|
11221
11231
|
};
|
|
11222
11232
|
V(() => f.initialGridState, () => {
|
|
11223
11233
|
if (f.initialGridState) {
|
|
11224
|
-
let e =
|
|
11234
|
+
let e = nu(f.initialGridState, G, f.enableAdvancedFilter);
|
|
11225
11235
|
e && Kt(e);
|
|
11226
11236
|
}
|
|
11227
11237
|
}, { deep: !0 });
|
|
@@ -11254,10 +11264,10 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11254
11264
|
content: H(() => [...r[11] ||= [l(" Dev Mode ", -1)]]),
|
|
11255
11265
|
_: 1
|
|
11256
11266
|
})) : a("", !0),
|
|
11257
|
-
U(s("div",
|
|
11267
|
+
U(s("div", Fd, [s("div", Id, [(E(), i(n, {
|
|
11258
11268
|
to: e.filterTeleportLocation,
|
|
11259
11269
|
disabled: !e.filterTeleportLocation
|
|
11260
|
-
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(
|
|
11270
|
+
}, [lt.value.length > 0 && !f.enableInlineFilters ? (E(), i(pd, {
|
|
11261
11271
|
key: 0,
|
|
11262
11272
|
"enable-focus-view": e.enableFocusView,
|
|
11263
11273
|
"enable-vertical-panel": e.enableVerticalFilterPanel,
|
|
@@ -11277,11 +11287,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11277
11287
|
"max-horizontal-filters",
|
|
11278
11288
|
"read-only",
|
|
11279
11289
|
"disable-unselected-filters"
|
|
11280
|
-
])) : a("", !0)], 8, ["to", "disabled"])), s("div",
|
|
11290
|
+
])) : a("", !0)], 8, ["to", "disabled"])), s("div", Ld, [e.enableGroupBySelector && e.rowGroupLimit !== 0 ? (E(), i(Dl, {
|
|
11281
11291
|
key: 0,
|
|
11282
11292
|
rowGroupLimit: e.rowGroupLimit,
|
|
11283
11293
|
enableFocusView: e.enableFocusView
|
|
11284
|
-
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(
|
|
11294
|
+
}, null, 8, ["rowGroupLimit", "enableFocusView"])) : a("", !0), e.enableCsvExport ? (E(), i(wd, {
|
|
11285
11295
|
key: 1,
|
|
11286
11296
|
getCsvData: wt
|
|
11287
11297
|
})) : a("", !0)])])], 512), [[ne, e.enableGroupBySelector || !e.filterTeleportLocation]]),
|
|
@@ -11293,7 +11303,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11293
11303
|
e.enableTableSearch || e.enableTopSlot ? (E(), o("div", {
|
|
11294
11304
|
key: 1,
|
|
11295
11305
|
class: y(["pv-stack-8 pv-flex pv-space-between", e.hideTable ? "pv-hide" : ""])
|
|
11296
|
-
}, [s("div",
|
|
11306
|
+
}, [s("div", Rd, [e.enableTableSearch ? (E(), i(jd, {
|
|
11297
11307
|
key: 0,
|
|
11298
11308
|
placeholder: e.tableSearchPlaceholder,
|
|
11299
11309
|
disabled: !J.value,
|
|
@@ -11389,14 +11399,14 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11389
11399
|
undoRedoCellEditingLimit: e.undoRedoCellEditingLimit,
|
|
11390
11400
|
enableAdvancedFilter: e.enableAdvancedFilter,
|
|
11391
11401
|
advancedFilterParent: Zt.value
|
|
11392
|
-
}), 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 && !J.value ? (E(), o("div",
|
|
11393
|
-
e.pagination ? (E(), i(
|
|
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 && !J.value ? (E(), o("div", zd, [s("p", Bd, P(ce.value), 1)])) : a("", !0)], 2),
|
|
11403
|
+
e.pagination ? (E(), i(Ed, { key: 2 })) : a("", !0)
|
|
11394
11404
|
], 4));
|
|
11395
11405
|
}
|
|
11396
|
-
}),
|
|
11406
|
+
}), Hd = {
|
|
11397
11407
|
class: "pv-flex",
|
|
11398
11408
|
style: { "white-space": "nowrap" }
|
|
11399
|
-
},
|
|
11409
|
+
}, Ud = { class: "pv-text-body-md" }, Wd = /* @__PURE__ */ d({
|
|
11400
11410
|
inheritAttrs: !1,
|
|
11401
11411
|
__name: "PvTableOverlayMenuItemRenderer",
|
|
11402
11412
|
props: {
|
|
@@ -11405,16 +11415,16 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11405
11415
|
context: {}
|
|
11406
11416
|
},
|
|
11407
11417
|
setup(e) {
|
|
11408
|
-
return (t, n) => (E(), o("div",
|
|
11418
|
+
return (t, n) => (E(), o("div", Hd, [s("span", Ud, P(e.text), 1), e.context?.rightIcon ? (E(), i(En, {
|
|
11409
11419
|
key: 0,
|
|
11410
11420
|
name: e.context.rightIcon,
|
|
11411
11421
|
class: "pv-text-subdued"
|
|
11412
11422
|
}, null, 8, ["name"])) : a("", !0)]));
|
|
11413
11423
|
}
|
|
11414
|
-
}),
|
|
11424
|
+
}), Gd = { class: "pv-relative" }, Kd = {
|
|
11415
11425
|
role: "list",
|
|
11416
11426
|
class: "pv-relative"
|
|
11417
|
-
},
|
|
11427
|
+
}, qd = ["data-active"], Jd = { style: { cursor: "pointer" } }, Yd = { role: "list" }, Xd = /* @__PURE__ */ d({
|
|
11418
11428
|
__name: "PvTableOptionsPanel",
|
|
11419
11429
|
props: {
|
|
11420
11430
|
groupedModeEnabled: { type: Boolean },
|
|
@@ -11422,7 +11432,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11422
11432
|
},
|
|
11423
11433
|
emits: ["toggle-group", "table-overlay-change"],
|
|
11424
11434
|
setup(e, { emit: n }) {
|
|
11425
|
-
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
11435
|
+
let i = e, c = n, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = Ru({
|
|
11426
11436
|
alignment: "top",
|
|
11427
11437
|
popoverCssProperties: {
|
|
11428
11438
|
maxWidth: "300px",
|
|
@@ -11449,13 +11459,13 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11449
11459
|
}, C = () => {
|
|
11450
11460
|
v.value && (h.value = !0, f.value = document.getElementById("table-config-overlay"), d());
|
|
11451
11461
|
};
|
|
11452
|
-
return (n, r) => (E(), o(t, null, [U((E(), o("div",
|
|
11462
|
+
return (n, r) => (E(), o(t, null, [U((E(), o("div", Gd, [u(da, {
|
|
11453
11463
|
open: m.value,
|
|
11454
11464
|
label: "Table Configuration",
|
|
11455
11465
|
icon: "settings",
|
|
11456
11466
|
onClick: r[0] ||= (e) => m.value = !m.value,
|
|
11457
11467
|
onHandleToggleDropdown: r[1] ||= (e) => h.value = !1
|
|
11458
|
-
}, null, 8, ["open"]), u(
|
|
11468
|
+
}, null, 8, ["open"]), u(_s, {
|
|
11459
11469
|
class: y({ "pv-hide": !m.value }),
|
|
11460
11470
|
"css-custom-properties": {
|
|
11461
11471
|
minWidth: "240px",
|
|
@@ -11470,20 +11480,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11470
11480
|
"padding-top": "4px",
|
|
11471
11481
|
"padding-bottom": "12px"
|
|
11472
11482
|
}
|
|
11473
|
-
}, " Table Configuration ")], -1), s("ul",
|
|
11483
|
+
}, " Table Configuration ")], -1), s("ul", Kd, [v.value ? (E(), o("li", {
|
|
11474
11484
|
key: 0,
|
|
11475
11485
|
id: "table-config-overlay",
|
|
11476
11486
|
"data-active": h.value ? !0 : null,
|
|
11477
11487
|
style: { cursor: "pointer" },
|
|
11478
11488
|
onMouseenter: C,
|
|
11479
11489
|
onClick: C
|
|
11480
|
-
}, [u(
|
|
11490
|
+
}, [u(Xa, {
|
|
11481
11491
|
config: { variant: "icon" },
|
|
11482
11492
|
id: "table-config-overlay-item",
|
|
11483
11493
|
text: "Table Overlay",
|
|
11484
11494
|
icon: "layers-2",
|
|
11485
11495
|
"class-list": ["pv-menu-nested", h.value ? "pv-menu-nested-active" : ""]
|
|
11486
|
-
}, null, 8, ["class-list"])], 40,
|
|
11496
|
+
}, null, 8, ["class-list"])], 40, qd)) : a("", !0), s("li", Jd, [u(Xa, {
|
|
11487
11497
|
config: { variant: "icon" },
|
|
11488
11498
|
id: "table-config-group-toggle",
|
|
11489
11499
|
class: "pv-text-subdued",
|
|
@@ -11492,7 +11502,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11492
11502
|
onHandleSelected: S
|
|
11493
11503
|
}, null, 8, ["text", "icon"])])])]),
|
|
11494
11504
|
_: 1
|
|
11495
|
-
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(
|
|
11505
|
+
}, 8, ["class"])])), [[I(Y), [x, { ignore: [".pv-popover"] }]]]), u(_s, {
|
|
11496
11506
|
ref_key: "nestedMenuPopoverRef",
|
|
11497
11507
|
ref: g,
|
|
11498
11508
|
class: y({ "pv-hide": !(m.value && h.value) }),
|
|
@@ -11503,11 +11513,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11503
11513
|
},
|
|
11504
11514
|
isList: !0
|
|
11505
11515
|
}, {
|
|
11506
|
-
default: H(() => [s("ul",
|
|
11516
|
+
default: H(() => [s("ul", Yd, [(E(!0), o(t, null, k(_.value, (e) => (E(), o("li", { key: e.id }, [u(Xa, {
|
|
11507
11517
|
id: e.id,
|
|
11508
11518
|
config: {
|
|
11509
11519
|
variant: "checkbox",
|
|
11510
|
-
renderer:
|
|
11520
|
+
renderer: Wd
|
|
11511
11521
|
},
|
|
11512
11522
|
text: e.text,
|
|
11513
11523
|
context: e.context,
|
|
@@ -11524,13 +11534,13 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11524
11534
|
_: 1
|
|
11525
11535
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
11526
11536
|
}
|
|
11527
|
-
}),
|
|
11537
|
+
}), Zd = ["id"], Qd = {
|
|
11528
11538
|
key: 0,
|
|
11529
11539
|
class: "sort-divider-container"
|
|
11530
|
-
},
|
|
11540
|
+
}, $d = ["data-label"], ef = ["onDrop"], tf = { class: "pv-full-width pv-bordered pv-radius-md pv-flex pv-center pv-placeholder-dropzone" }, nf = { class: "pv-text-body-sm pv-text-tertiary" }, rf = { class: "pv-flex pv-full-width pv-sort-option" }, af = { class: "pv-text-body-sm" }, of = {
|
|
11531
11541
|
key: 1,
|
|
11532
11542
|
class: "pv-button-placeholder"
|
|
11533
|
-
},
|
|
11543
|
+
}, sf = "--divider--", cf = "placeholder-", lf = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11534
11544
|
__name: "PvSortableList",
|
|
11535
11545
|
props: /* @__PURE__ */ g({
|
|
11536
11546
|
options: { default: () => [] },
|
|
@@ -11550,11 +11560,11 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11550
11560
|
emits: ["update:modelValue"],
|
|
11551
11561
|
setup(e) {
|
|
11552
11562
|
let n = e, c = R(e, "modelValue"), l = {
|
|
11553
|
-
id:
|
|
11563
|
+
id: sf,
|
|
11554
11564
|
text: "",
|
|
11555
11565
|
disabled: !0
|
|
11556
11566
|
}, d = r(() => n.activeOptionLimit ? Math.max(0, n.activeOptionLimit - c.value.length) : 0), f = r(() => !n.showPlaceholders || d.value === 0 ? [] : Array.from({ length: d.value }, (e, t) => ({
|
|
11557
|
-
id: `${
|
|
11567
|
+
id: `${cf}${t}`,
|
|
11558
11568
|
text: "",
|
|
11559
11569
|
disabled: !0,
|
|
11560
11570
|
isPlaceholder: !0
|
|
@@ -11568,20 +11578,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11568
11578
|
];
|
|
11569
11579
|
}), m = z("sortableListRef"), h = z("containerRef"), g = null, _ = null, v = () => {
|
|
11570
11580
|
if (!m.value) return;
|
|
11571
|
-
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e ===
|
|
11581
|
+
let e = Array.from(m.value.children).map((e) => e.id), t = e.findIndex((e) => e === sf);
|
|
11572
11582
|
t !== -1 && (e = e.slice(0, t)), e = e.filter((e) => !e.startsWith("placeholder-")), c.value = e.map((e) => n.options.find((t) => t.id === e) || null).filter(Boolean).slice(0, n.activeOptionLimit || Infinity);
|
|
11573
11583
|
};
|
|
11574
11584
|
w(() => {
|
|
11575
11585
|
m.value && (g = new nt(m.value, {
|
|
11576
11586
|
animation: 200,
|
|
11577
|
-
filter: `#${
|
|
11587
|
+
filter: `#${sf}, [id^="placeholder-"]`,
|
|
11578
11588
|
dragoverBubble: !0,
|
|
11579
11589
|
onStart: (e) => {
|
|
11580
11590
|
_ = e.item;
|
|
11581
11591
|
},
|
|
11582
11592
|
onMove: (e) => {
|
|
11583
11593
|
let t = e.related;
|
|
11584
|
-
if (t?.id ===
|
|
11594
|
+
if (t?.id === sf || t?.id?.startsWith("placeholder-")) return !1;
|
|
11585
11595
|
let r = n.options.find((t) => t.id === e.dragged.id);
|
|
11586
11596
|
return r && D(r);
|
|
11587
11597
|
},
|
|
@@ -11629,20 +11639,20 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11629
11639
|
key: e.id,
|
|
11630
11640
|
id: e.id,
|
|
11631
11641
|
class: "pv-stack-4"
|
|
11632
|
-
}, [e.id ===
|
|
11642
|
+
}, [e.id === sf ? (E(), o("div", Qd, [s("div", {
|
|
11633
11643
|
class: "sort-divider pv-text-default pv-text-body-xs pv-text-tertiary",
|
|
11634
11644
|
"data-label": O.value ? `Maximum of ${n.activeOptionLimit}` : ""
|
|
11635
|
-
}, null, 8,
|
|
11645
|
+
}, null, 8, $d)])) : e.id.includes(cf) ? (E(), o("div", {
|
|
11636
11646
|
key: 1,
|
|
11637
11647
|
class: "placeholder-zone",
|
|
11638
11648
|
onDragover: r[0] ||= (e) => b(e),
|
|
11639
11649
|
onDragleave: r[1] ||= (e) => S(e),
|
|
11640
11650
|
onDrop: (t) => C(t, parseInt(e.id.split("-")[1]) + 1)
|
|
11641
|
-
}, [s("div",
|
|
11651
|
+
}, [s("div", tf, [s("span", nf, P(n.placeholderText), 1)])], 40, ef)) : (E(), o("div", {
|
|
11642
11652
|
key: 2,
|
|
11643
11653
|
class: y(["pv-full-width pv-bordered pv-radius-md pv-flex pv-space-between", !D(e) && O.value ? "pv-menu-item-disabled" : ""]),
|
|
11644
11654
|
style: x(M(e))
|
|
11645
|
-
}, [s("div",
|
|
11655
|
+
}, [s("div", rf, [
|
|
11646
11656
|
u(En, {
|
|
11647
11657
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11648
11658
|
name: "reorder"
|
|
@@ -11652,8 +11662,8 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11652
11662
|
class: y(D(e) ? "pv-text-brand" : "pv-text-tertiary"),
|
|
11653
11663
|
name: e.icon
|
|
11654
11664
|
}, null, 8, ["class", "name"])) : a("", !0),
|
|
11655
|
-
s("span",
|
|
11656
|
-
]), j(e) ? (E(), o("div",
|
|
11665
|
+
s("span", af, P(e.text), 1)
|
|
11666
|
+
]), j(e) ? (E(), o("div", of)) : (E(), i(An, {
|
|
11657
11667
|
key: 0,
|
|
11658
11668
|
"left-icon": D(e) ? "remove-circle" : "add-circle",
|
|
11659
11669
|
ariaLabel: D(e) ? `Remove ${e.text}` : `Add ${e.text}`,
|
|
@@ -11665,16 +11675,16 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11665
11675
|
"ariaLabel",
|
|
11666
11676
|
"style",
|
|
11667
11677
|
"onClick"
|
|
11668
|
-
]))], 6))], 8,
|
|
11678
|
+
]))], 6))], 8, Zd))), 128))], 512)], 512));
|
|
11669
11679
|
}
|
|
11670
|
-
}), [["__scopeId", "data-v-34615cd0"]]),
|
|
11680
|
+
}), [["__scopeId", "data-v-34615cd0"]]), uf = (e) => e.field === "state" || $(e).dataType === So.Location, df = (e) => e, ff = (e, t, n) => {
|
|
11671
11681
|
if (!n || t.length === 0) return e;
|
|
11672
11682
|
let r = new Set(n(t).map((e) => e.field));
|
|
11673
11683
|
return e.filter((e) => r.has(e));
|
|
11674
|
-
},
|
|
11684
|
+
}, pf = (e) => e.filter((e) => !jo(e)), mf = (e) => e.filter((e) => jo(e)), hf = {
|
|
11675
11685
|
xAxis: {
|
|
11676
11686
|
selectMode: "sortable",
|
|
11677
|
-
filterColumns:
|
|
11687
|
+
filterColumns: pf
|
|
11678
11688
|
},
|
|
11679
11689
|
yAxis: {},
|
|
11680
11690
|
secondaryYAxis: {},
|
|
@@ -11683,16 +11693,16 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11683
11693
|
rowGroupLimit: 2,
|
|
11684
11694
|
supportsFocusView: !0,
|
|
11685
11695
|
storeBeforeChange: !0
|
|
11686
|
-
},
|
|
11696
|
+
}, gf = [
|
|
11687
11697
|
{
|
|
11688
|
-
...
|
|
11698
|
+
...hf,
|
|
11689
11699
|
id: "column",
|
|
11690
11700
|
text: "Column",
|
|
11691
11701
|
icon: "chart-column",
|
|
11692
11702
|
agChartType: "bar"
|
|
11693
11703
|
},
|
|
11694
11704
|
{
|
|
11695
|
-
...
|
|
11705
|
+
...hf,
|
|
11696
11706
|
id: "bar",
|
|
11697
11707
|
text: "Bar",
|
|
11698
11708
|
icon: "chart-bar",
|
|
@@ -11700,28 +11710,28 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11700
11710
|
isHorizontal: !0
|
|
11701
11711
|
},
|
|
11702
11712
|
{
|
|
11703
|
-
...
|
|
11713
|
+
...hf,
|
|
11704
11714
|
id: "line",
|
|
11705
11715
|
text: "Line",
|
|
11706
11716
|
icon: "chart-line",
|
|
11707
11717
|
agChartType: "line"
|
|
11708
11718
|
},
|
|
11709
11719
|
{
|
|
11710
|
-
...
|
|
11720
|
+
...hf,
|
|
11711
11721
|
id: "area",
|
|
11712
11722
|
text: "Area",
|
|
11713
11723
|
icon: "chart-area",
|
|
11714
11724
|
agChartType: "area"
|
|
11715
11725
|
},
|
|
11716
11726
|
{
|
|
11717
|
-
...
|
|
11727
|
+
...hf,
|
|
11718
11728
|
id: "column_stacked",
|
|
11719
11729
|
text: "Stacked Column",
|
|
11720
11730
|
icon: "chart-column-stacked",
|
|
11721
11731
|
agChartType: "bar"
|
|
11722
11732
|
},
|
|
11723
11733
|
{
|
|
11724
|
-
...
|
|
11734
|
+
...hf,
|
|
11725
11735
|
id: "bar_stacked",
|
|
11726
11736
|
text: "Stacked Bar",
|
|
11727
11737
|
icon: "chart-bar-stacked",
|
|
@@ -11729,7 +11739,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11729
11739
|
isHorizontal: !0
|
|
11730
11740
|
},
|
|
11731
11741
|
{
|
|
11732
|
-
...
|
|
11742
|
+
...hf,
|
|
11733
11743
|
id: "pie",
|
|
11734
11744
|
text: "Pie",
|
|
11735
11745
|
icon: "chart-pie",
|
|
@@ -11743,12 +11753,12 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11743
11753
|
icon: "chart-column",
|
|
11744
11754
|
xAxis: {
|
|
11745
11755
|
selectMode: "single",
|
|
11746
|
-
filterColumns:
|
|
11756
|
+
filterColumns: mf,
|
|
11747
11757
|
hideLabel: !0
|
|
11748
11758
|
},
|
|
11749
11759
|
yAxis: {
|
|
11750
11760
|
hidden: !0,
|
|
11751
|
-
defaultValue:
|
|
11761
|
+
defaultValue: mo
|
|
11752
11762
|
},
|
|
11753
11763
|
secondaryYAxis: { hidden: !0 },
|
|
11754
11764
|
sort: {},
|
|
@@ -11764,7 +11774,7 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11764
11774
|
icon: "map",
|
|
11765
11775
|
xAxis: {
|
|
11766
11776
|
selectMode: "single",
|
|
11767
|
-
filterColumns:
|
|
11777
|
+
filterColumns: pf,
|
|
11768
11778
|
hideLabel: !0
|
|
11769
11779
|
},
|
|
11770
11780
|
yAxis: {},
|
|
@@ -11776,16 +11786,16 @@ var Gl = { style: { "line-height": "20px" } }, Kl = { class: "pv-text-subdued pv
|
|
|
11776
11786
|
supportsFocusView: !1,
|
|
11777
11787
|
storeBeforeChange: !1
|
|
11778
11788
|
}
|
|
11779
|
-
],
|
|
11780
|
-
function
|
|
11781
|
-
return
|
|
11789
|
+
], _f = new Map(gf.map((e) => [e.id, e])), vf = _f.get("column");
|
|
11790
|
+
function yf(e) {
|
|
11791
|
+
return _f.get(e) || vf;
|
|
11782
11792
|
}
|
|
11783
11793
|
//#endregion
|
|
11784
11794
|
//#region src/components/charts/PvDataTableWithChart/table-chart-components/PvChartOptionMenuItemRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
11785
|
-
var
|
|
11795
|
+
var bf = {
|
|
11786
11796
|
class: "pv-full-width pv-flex",
|
|
11787
11797
|
style: { "--flex-gap": "8px" }
|
|
11788
|
-
},
|
|
11798
|
+
}, xf = ["title"], Sf = { style: { "max-width": "220px" } }, Cf = /* @__PURE__ */ d({
|
|
11789
11799
|
inheritAttrs: !1,
|
|
11790
11800
|
__name: "PvChartOptionMenuItemRenderer",
|
|
11791
11801
|
props: {
|
|
@@ -11793,10 +11803,10 @@ var vf = {
|
|
|
11793
11803
|
context: {}
|
|
11794
11804
|
},
|
|
11795
11805
|
setup(e) {
|
|
11796
|
-
return (t, n) => (E(), o("div",
|
|
11806
|
+
return (t, n) => (E(), o("div", bf, [s("span", {
|
|
11797
11807
|
class: "pv-text-body-md pv-truncate",
|
|
11798
11808
|
title: e.text
|
|
11799
|
-
}, P(e.text), 9,
|
|
11809
|
+
}, P(e.text), 9, xf), e.context?.description ? (E(), i(I(Ti), {
|
|
11800
11810
|
key: 0,
|
|
11801
11811
|
variant: "dark",
|
|
11802
11812
|
position: "center-right",
|
|
@@ -11810,25 +11820,25 @@ var vf = {
|
|
|
11810
11820
|
name: "info-circle",
|
|
11811
11821
|
class: "pv-text-subdued"
|
|
11812
11822
|
})]),
|
|
11813
|
-
content: H(() => [s("div",
|
|
11823
|
+
content: H(() => [s("div", Sf, P(e.context.description), 1)]),
|
|
11814
11824
|
_: 1
|
|
11815
11825
|
})) : a("", !0)]));
|
|
11816
11826
|
}
|
|
11817
|
-
}),
|
|
11827
|
+
}), wf = { class: "pv-stack-16 pv-chart-options-panel" }, Tf = { class: "pv-flex pv-relative" }, Ef = {
|
|
11818
11828
|
role: "list",
|
|
11819
11829
|
class: "pv-relative"
|
|
11820
|
-
},
|
|
11830
|
+
}, Df = [
|
|
11821
11831
|
"id",
|
|
11822
11832
|
"data-active",
|
|
11823
11833
|
"onMouseenter",
|
|
11824
11834
|
"onClick"
|
|
11825
|
-
],
|
|
11835
|
+
], Of = { style: { "max-width": "100px" } }, kf = {
|
|
11826
11836
|
key: 1,
|
|
11827
11837
|
class: "pv-flex"
|
|
11828
|
-
},
|
|
11838
|
+
}, Af = {
|
|
11829
11839
|
key: 1,
|
|
11830
11840
|
role: "list"
|
|
11831
|
-
},
|
|
11841
|
+
}, jf = ["data-active"], Mf = /* @__PURE__ */ Xt(/* @__PURE__ */ d({
|
|
11832
11842
|
__name: "PvChartOptionsPanel",
|
|
11833
11843
|
props: {
|
|
11834
11844
|
enablePanel: { type: Boolean },
|
|
@@ -11839,17 +11849,17 @@ var vf = {
|
|
|
11839
11849
|
readOnly: { type: Boolean }
|
|
11840
11850
|
},
|
|
11841
11851
|
setup(e) {
|
|
11842
|
-
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } =
|
|
11852
|
+
let n = e, { popoverPositionStyle: l, updateRects: d, triggerRef: f, popoverRef: p } = Ru({
|
|
11843
11853
|
alignment: "top right",
|
|
11844
11854
|
popoverCssProperties: {
|
|
11845
11855
|
maxWidth: "500px",
|
|
11846
11856
|
maxHeight: "900px"
|
|
11847
11857
|
},
|
|
11848
11858
|
useTeleport: !0
|
|
11849
|
-
}), g = O(!1), _ = O(void 0), v = O(null), b = m(
|
|
11859
|
+
}), g = O(!1), _ = O(void 0), v = O(null), b = m(dl, O(void 0)), S = m(ll, O([])), C = m(fl, O(void 0)), w = m(ul, O([])), T = m(cl, O([])), D = m($c, O([])), A = r(() => yf(b.value?.id || "")), j = r(() => {
|
|
11850
11860
|
let e = b.value?.id ?? "";
|
|
11851
11861
|
return T.value.length > 1 && !e.endsWith("_stacked");
|
|
11852
|
-
}), M = m(
|
|
11862
|
+
}), M = m(pl, O("")), N = m(ml, O([])), F = m(hl, O(void 0)), L = m(gl, O([])), R = m(vl, O(/* @__PURE__ */ new Set())), ee = m(yl, O([])), z = r(() => ee.value.filter((e) => R.value.has(e.id)).map((e) => ({
|
|
11853
11863
|
id: e.id,
|
|
11854
11864
|
text: e.label,
|
|
11855
11865
|
disabled: e.disabled,
|
|
@@ -11860,7 +11870,7 @@ var vf = {
|
|
|
11860
11870
|
V(j, (e) => {
|
|
11861
11871
|
e && F.value && (F.value = void 0);
|
|
11862
11872
|
}, { immediate: !0 });
|
|
11863
|
-
let te = m(
|
|
11873
|
+
let te = m(sl, O("")), ne = r(() => n.chartFilter && n.chartFilter.options ? n.chartFilter.options.map((e) => ({
|
|
11864
11874
|
label: e.label,
|
|
11865
11875
|
value: e.value
|
|
11866
11876
|
})) : []), W = r(() => {
|
|
@@ -11905,7 +11915,7 @@ var vf = {
|
|
|
11905
11915
|
}))), ae = r(() => D.value.map((e) => ({
|
|
11906
11916
|
id: e.field || "",
|
|
11907
11917
|
text: e.headerName || e.field || "",
|
|
11908
|
-
icon:
|
|
11918
|
+
icon: Co(e.context?.dataType || null) || "circle-chevron-down"
|
|
11909
11919
|
}))), K = r({
|
|
11910
11920
|
get: () => T.value.map((e) => ae.value.find((t) => t.id === e)).filter(Boolean),
|
|
11911
11921
|
set: (e) => {
|
|
@@ -12016,22 +12026,22 @@ var vf = {
|
|
|
12016
12026
|
return t ? t.activeOptionIds ? t.activeOptionIds.has(e.id) ? !0 : null : t.currentOption?.id === e.id ? !0 : null : null;
|
|
12017
12027
|
}, J = (e) => oe.value?.isMultiSelect ? null : se(e), ce = (e) => oe.value?.isMultiSelect ? {
|
|
12018
12028
|
variant: "checkbox",
|
|
12019
|
-
renderer:
|
|
12020
|
-
} : G(e) ? { renderer:
|
|
12029
|
+
renderer: Cf
|
|
12030
|
+
} : G(e) ? { renderer: Cf } : { variant: "icon" }, le = (e) => {
|
|
12021
12031
|
_.value = e, f.value = document.getElementById(`pv-chart-config-${e}`), d();
|
|
12022
12032
|
}, ue = () => {
|
|
12023
12033
|
g.value = !1, _.value = void 0;
|
|
12024
12034
|
}, de = () => {
|
|
12025
12035
|
_.value = void 0;
|
|
12026
12036
|
};
|
|
12027
|
-
return (n, r) => (E(), o(t, null, [s("div",
|
|
12037
|
+
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, {
|
|
12028
12038
|
open: g.value,
|
|
12029
12039
|
label: "Chart Configuration",
|
|
12030
12040
|
icon: "chart-area",
|
|
12031
12041
|
disabled: e.readOnly,
|
|
12032
12042
|
onClick: r[0] ||= (t) => e.readOnly ? null : g.value = !g.value,
|
|
12033
12043
|
onHandleToggleDropdown: de
|
|
12034
|
-
}, null, 8, ["open", "disabled"]), u(
|
|
12044
|
+
}, null, 8, ["open", "disabled"]), u(_s, {
|
|
12035
12045
|
class: y({ "pv-hide": !g.value }),
|
|
12036
12046
|
"css-custom-properties": {
|
|
12037
12047
|
width: "171px",
|
|
@@ -12046,7 +12056,7 @@ var vf = {
|
|
|
12046
12056
|
"padding-top": "4px",
|
|
12047
12057
|
"padding-bottom": "12px"
|
|
12048
12058
|
}
|
|
12049
|
-
}, " Chart Configuration ")], -1), s("ul",
|
|
12059
|
+
}, " Chart Configuration ")], -1), s("ul", Ef, [(E(!0), o(t, null, k(q.value, (e) => (E(), o("li", {
|
|
12050
12060
|
id: `pv-chart-config-${e.value}`,
|
|
12051
12061
|
key: e.value,
|
|
12052
12062
|
"data-active": _.value === e.value ? !0 : null,
|
|
@@ -12059,7 +12069,7 @@ var vf = {
|
|
|
12059
12069
|
style: { width: "100%" },
|
|
12060
12070
|
variant: "white"
|
|
12061
12071
|
}, c({
|
|
12062
|
-
trigger: H(() => [u(
|
|
12072
|
+
trigger: H(() => [u(Xa, {
|
|
12063
12073
|
config: { variant: "icon" },
|
|
12064
12074
|
disabled: e.disabled,
|
|
12065
12075
|
id: e.value,
|
|
@@ -12076,9 +12086,9 @@ var vf = {
|
|
|
12076
12086
|
_: 2
|
|
12077
12087
|
}, [e.disabled && e.disabledReason ? {
|
|
12078
12088
|
name: "content",
|
|
12079
|
-
fn: H(() => [s("div",
|
|
12089
|
+
fn: H(() => [s("div", Of, P(e.disabledReason), 1)]),
|
|
12080
12090
|
key: "0"
|
|
12081
|
-
} : void 0]), 1024)], 40,
|
|
12091
|
+
} : void 0]), 1024)], 40, Df))), 128))])]),
|
|
12082
12092
|
_: 1
|
|
12083
12093
|
}, 8, ["class"])], 64)) : a("", !0)])], 2)), [[I(Y), [ue, { ignore: [".pv-popover"] }]]]), s("div", {
|
|
12084
12094
|
class: "pv-flex pv-space-between",
|
|
@@ -12088,7 +12098,7 @@ var vf = {
|
|
|
12088
12098
|
options: ne.value,
|
|
12089
12099
|
modelValue: I(te),
|
|
12090
12100
|
"onUpdate:modelValue": r[1] ||= (e) => h(te) ? te.value = e : null
|
|
12091
|
-
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div",
|
|
12101
|
+
}, null, 8, ["options", "modelValue"])) : a("", !0), e.useCombinedButton ? a("", !0) : (E(), o("div", kf, [(E(!0), o(t, null, k(q.value, (n) => (E(), o(t, { key: n.value }, [n.isMultiSelect && n.activeOptions && n.activeOptionIds ? (E(), i(Zs, {
|
|
12092
12102
|
key: 0,
|
|
12093
12103
|
label: n.label,
|
|
12094
12104
|
prefixLabel: n.prefixLabel,
|
|
@@ -12098,7 +12108,7 @@ var vf = {
|
|
|
12098
12108
|
disableSearchInput: !0,
|
|
12099
12109
|
disabled: n.disabled || e.readOnly,
|
|
12100
12110
|
optionsVariant: "checkbox",
|
|
12101
|
-
optionsRenderer:
|
|
12111
|
+
optionsRenderer: Cf
|
|
12102
12112
|
}, null, 8, [
|
|
12103
12113
|
"label",
|
|
12104
12114
|
"prefixLabel",
|
|
@@ -12106,7 +12116,7 @@ var vf = {
|
|
|
12106
12116
|
"onUpdate:modelValue",
|
|
12107
12117
|
"options",
|
|
12108
12118
|
"disabled"
|
|
12109
|
-
])) : n.isSortableList ? a("", !0) : (E(), i(
|
|
12119
|
+
])) : n.isSortableList ? a("", !0) : (E(), i(no, {
|
|
12110
12120
|
key: 1,
|
|
12111
12121
|
label: n.label,
|
|
12112
12122
|
prefixLabel: n.prefixLabel,
|
|
@@ -12125,7 +12135,7 @@ var vf = {
|
|
|
12125
12135
|
"options",
|
|
12126
12136
|
"disableDeselect",
|
|
12127
12137
|
"disabled"
|
|
12128
|
-
]))], 64))), 128))]))], 4)])]), u(
|
|
12138
|
+
]))], 64))), 128))]))], 4)])]), u(_s, {
|
|
12129
12139
|
ref_key: "nestedMenuPopoverRef",
|
|
12130
12140
|
ref: v,
|
|
12131
12141
|
class: y({ "pv-hide": !(g.value && _.value !== void 0) }),
|
|
@@ -12142,7 +12152,7 @@ var vf = {
|
|
|
12142
12152
|
"padding-left": "2px",
|
|
12143
12153
|
"padding-bottom": "6px"
|
|
12144
12154
|
}
|
|
12145
|
-
}, " Viewing ", -1), u(
|
|
12155
|
+
}, " Viewing ", -1), u(lf, {
|
|
12146
12156
|
modelValue: oe.value.activeOptions.value,
|
|
12147
12157
|
"onUpdate:modelValue": r[2] ||= (e) => oe.value.activeOptions.value = e,
|
|
12148
12158
|
options: oe.value.availableOptions || [],
|
|
@@ -12152,10 +12162,10 @@ var vf = {
|
|
|
12152
12162
|
"modelValue",
|
|
12153
12163
|
"options",
|
|
12154
12164
|
"activeOptionLimit"
|
|
12155
|
-
])], 64)) : (E(), o("ul",
|
|
12165
|
+
])], 64)) : (E(), o("ul", Af, [(E(!0), o(t, null, k(oe.value.availableOptions, (e) => (E(), o("li", {
|
|
12156
12166
|
key: e.id,
|
|
12157
12167
|
"data-active": J(e)
|
|
12158
|
-
}, [u(
|
|
12168
|
+
}, [u(Xa, {
|
|
12159
12169
|
id: e.id,
|
|
12160
12170
|
config: ce(e),
|
|
12161
12171
|
text: e.text,
|
|
@@ -12177,14 +12187,14 @@ var vf = {
|
|
|
12177
12187
|
"disabled",
|
|
12178
12188
|
"selectedIds",
|
|
12179
12189
|
"onHandleSelected"
|
|
12180
|
-
])], 8,
|
|
12190
|
+
])], 8, jf))), 128))]))], 64)) : a("", !0)]),
|
|
12181
12191
|
_: 1
|
|
12182
12192
|
}, 8, ["class", "css-custom-properties"])], 64));
|
|
12183
12193
|
}
|
|
12184
12194
|
}), [["__scopeId", "data-v-4a384de9"]]);
|
|
12185
12195
|
//#endregion
|
|
12186
12196
|
//#region src/components/charts/PvDataTableWithChart/scatterAxisUtils.ts
|
|
12187
|
-
function
|
|
12197
|
+
function Nf(e, t, n, r, i) {
|
|
12188
12198
|
return i ? {
|
|
12189
12199
|
xKey: n,
|
|
12190
12200
|
xName: r,
|
|
@@ -12199,19 +12209,19 @@ function jf(e, t, n, r, i) {
|
|
|
12199
12209
|
}
|
|
12200
12210
|
//#endregion
|
|
12201
12211
|
//#region src/components/charts/PvDataTableWithChart/PvDataTableWithChart.vue?vue&type=script&setup=true&lang.ts
|
|
12202
|
-
var
|
|
12212
|
+
var Pf = { style: {
|
|
12203
12213
|
height: "100%",
|
|
12204
12214
|
width: "100%"
|
|
12205
|
-
} },
|
|
12215
|
+
} }, Ff = {
|
|
12206
12216
|
key: 0,
|
|
12207
12217
|
class: "pv-bordered pv-radius-lg pv-inset-square-12 pv-stack-16"
|
|
12208
|
-
},
|
|
12218
|
+
}, If = { class: "pv-flex" }, Lf = { class: "pv-relative pv-margin-auto" }, Rf = {
|
|
12209
12219
|
key: 2,
|
|
12210
12220
|
class: "pv-chart-overlay pv-flex pv-align-center"
|
|
12211
|
-
},
|
|
12221
|
+
}, zf = { key: 0 }, Bf = {
|
|
12212
12222
|
key: 1,
|
|
12213
12223
|
class: "pv-text-body-xs"
|
|
12214
|
-
},
|
|
12224
|
+
}, Vf = /* @__PURE__ */ d({
|
|
12215
12225
|
__name: "PvDataTableWithChart",
|
|
12216
12226
|
props: {
|
|
12217
12227
|
allFieldsAreFocusable: { type: Boolean },
|
|
@@ -12413,7 +12423,7 @@ var Mf = { style: {
|
|
|
12413
12423
|
if (!e) return !1;
|
|
12414
12424
|
if (e === "state") return !0;
|
|
12415
12425
|
let t = k.value.find((t) => t.field === e);
|
|
12416
|
-
return !!(t &&
|
|
12426
|
+
return !!(t && uf(t));
|
|
12417
12427
|
}), I = (e) => $(e).chartSeriesDisplayName || e.headerName || e.field || "", L = r(() => {
|
|
12418
12428
|
let e = me.value;
|
|
12419
12429
|
return e.yAxis.hidden && e.yAxis.defaultValue ? [{
|
|
@@ -12434,9 +12444,9 @@ var Mf = { style: {
|
|
|
12434
12444
|
});
|
|
12435
12445
|
}), R = r(() => {
|
|
12436
12446
|
let e = m.value?.availableAggFuncColumns || [], t = new Set(j.value);
|
|
12437
|
-
return e.filter((e) =>
|
|
12447
|
+
return e.filter((e) => Ro(e)).map((e) => ({
|
|
12438
12448
|
label: I(e),
|
|
12439
|
-
value:
|
|
12449
|
+
value: zo(e.field || "", e.aggFunc, t),
|
|
12440
12450
|
formatter: e.valueFormatter,
|
|
12441
12451
|
dataType: e.context?.dataType,
|
|
12442
12452
|
tooltipRenderer: e.context?.customTooltipRenderer,
|
|
@@ -12453,16 +12463,16 @@ var Mf = { style: {
|
|
|
12453
12463
|
formatter: n.valueFormatter,
|
|
12454
12464
|
dataType: n.context?.dataType
|
|
12455
12465
|
};
|
|
12456
|
-
})), z = l.filterStore ||
|
|
12457
|
-
D(
|
|
12458
|
-
let B =
|
|
12466
|
+
})), z = l.filterStore || Fu();
|
|
12467
|
+
D(Kc, z);
|
|
12468
|
+
let B = Fl({
|
|
12459
12469
|
focusType: l.initialFocusData?.focusType,
|
|
12460
12470
|
focuses: l.initialFocusData?.focuses || [],
|
|
12461
12471
|
focusRequired: l.focusRequired
|
|
12462
12472
|
}, l.allFieldsAreFocusable);
|
|
12463
|
-
D(
|
|
12473
|
+
D(qc, B);
|
|
12464
12474
|
let { setFilterSelectedValues: te } = z, ne = O(!1);
|
|
12465
|
-
D(
|
|
12475
|
+
D(rl, ne);
|
|
12466
12476
|
let U = O(l.isTableGrouped), W = (e) => {
|
|
12467
12477
|
d("table-overlay-change", e);
|
|
12468
12478
|
}, G = r(() => ut.value ? !1 : !!(l.emptyChartFilterRenderer && l.requireFiltersToShowData && z.filterModelEmpty.value)), re = r(() => B?.computedFocusType.value || null), ie = r(() => B?.computedFocuses.value || []), ae = (e) => {
|
|
@@ -12503,12 +12513,12 @@ var Mf = { style: {
|
|
|
12503
12513
|
return (r) => {
|
|
12504
12514
|
if (r.data = ve.value?.find((t) => t[e] === r.value), r.value === 123e-6) return "";
|
|
12505
12515
|
let i = "", a = ce(e);
|
|
12506
|
-
if (l.truncateLabelValues && n && a &&
|
|
12516
|
+
if (l.truncateLabelValues && n && a && jo(a) && !isNaN(Number(r.value))) {
|
|
12507
12517
|
if (Fe.value) {
|
|
12508
12518
|
let e = r.datum?.[N.value], t = ye.value?.find((t) => t[N.value] === e)?.[`${X.value}_sort_total`] || Infinity;
|
|
12509
12519
|
if (r.value / t < .05) return "";
|
|
12510
12520
|
}
|
|
12511
|
-
let { newValue: e, newSuffix: t } =
|
|
12521
|
+
let { newValue: e, newSuffix: t } = Eo(r.value, So.Percent === $(a).dataType, et.value);
|
|
12512
12522
|
r.value = e, i = t;
|
|
12513
12523
|
}
|
|
12514
12524
|
let o = r.value;
|
|
@@ -12523,9 +12533,9 @@ var Mf = { style: {
|
|
|
12523
12533
|
let n = ce(N.value);
|
|
12524
12534
|
return n && typeof n.valueFormatter == "function" ? `${n.valueFormatter({ value: e })} - ${n.valueFormatter({ value: t })}` : `${e} - ${t}`;
|
|
12525
12535
|
}, Y = r(() => {
|
|
12526
|
-
let e = [...j.value.length > 1 ?
|
|
12527
|
-
return
|
|
12528
|
-
}), ue = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() =>
|
|
12536
|
+
let e = [...j.value.length > 1 ? go : ho, _o];
|
|
12537
|
+
return df(F.value) && e.push(vo), e.filter((e) => l.enabledChartTypes?.includes(e.id));
|
|
12538
|
+
}), ue = O(void 0), de = O(void 0), fe = O(void 0), pe = !1, me = r(() => yf(ue.value?.id || "")), he = r(() => Math.min(me.value.rowGroupLimit, l.rowGroupLimit)), ge = r(() => {
|
|
12529
12539
|
let e = me.value.xAxis.filterColumns;
|
|
12530
12540
|
return e ? e(k.value) : k.value;
|
|
12531
12541
|
}), _e = O([{
|
|
@@ -12537,18 +12547,18 @@ var Mf = { style: {
|
|
|
12537
12547
|
id: "desc",
|
|
12538
12548
|
icon: "arrow-down-narrow-wide"
|
|
12539
12549
|
}]), ve = O([]), ye = O([]), X = O(l.yKey), be = O(R.value[0]?.value), xe = r(() => l.crosslineOverlayGroups ?? []), Se = O(new Set(xe.value.filter((e) => e.visible && !e.disabled).map((e) => e.id))), Ce = r(() => xe.value.filter((e) => Se.value.has(e.id)).flatMap((e) => e.overlays)), Z = O(null), we = O(_e.value.find((e) => e.id === l.initialSort || "")), Te = O("");
|
|
12540
|
-
D(
|
|
12550
|
+
D(Yc, p), D(sl, Te), D($c, ge), D(cl, j), D(ll, Y), D(ul, _e), D(dl, ue), D(fl, we), D(pl, X), D(ml, L), D(hl, be), D(gl, R), D(vl, Se), D(yl, xe);
|
|
12541
12551
|
let Ee = (e) => {
|
|
12542
12552
|
ue.value = Y.value.find((t) => t.id === e) ?? Y.value[0];
|
|
12543
12553
|
}, De = (e) => {
|
|
12544
12554
|
let t = j.value.length, n = (e) => {
|
|
12545
|
-
let n =
|
|
12555
|
+
let n = yf(e.id);
|
|
12546
12556
|
return t <= Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12547
12557
|
}, r = Y.value.find((t) => t.id === e);
|
|
12548
12558
|
return r && n(r) ? r.id : Y.value.find(n)?.id ?? Y.value[0]?.id;
|
|
12549
12559
|
};
|
|
12550
12560
|
V(() => Y.value, () => {
|
|
12551
|
-
let e = Ie.value, t = e !== pe, n =
|
|
12561
|
+
let e = Ie.value, t = e !== pe, n = yf(ue.value?.id || ""), r = Y.value.some((e) => e.id === ue.value?.id), i = j.value.length > Math.min(n.rowGroupLimit, l.rowGroupLimit);
|
|
12552
12562
|
if (pe = e, r && !i && (!t || !n.storeBeforeChange)) return;
|
|
12553
12563
|
let a = De((e ? fe?.value : de?.value) ?? l.chartType);
|
|
12554
12564
|
a && Ee(a);
|
|
@@ -12558,7 +12568,7 @@ var Mf = { style: {
|
|
|
12558
12568
|
if (l.chartFilter && p.value) {
|
|
12559
12569
|
let t = l.chartFilter.colId, n = l.chartFilter.options.find((t) => t.value === e)?.filterValues || null;
|
|
12560
12570
|
n && n.length === 0 && (n = null), te(t, n || []);
|
|
12561
|
-
let r =
|
|
12571
|
+
let r = $l({
|
|
12562
12572
|
filterType: "set",
|
|
12563
12573
|
values: n
|
|
12564
12574
|
}, ce(t));
|
|
@@ -12579,7 +12589,7 @@ var Mf = { style: {
|
|
|
12579
12589
|
let o = {
|
|
12580
12590
|
type: t,
|
|
12581
12591
|
xKey: N.value,
|
|
12582
|
-
yKey:
|
|
12592
|
+
yKey: Ho(X.value, a),
|
|
12583
12593
|
yName: typeof i == "function" ? i({ value: a }) : a,
|
|
12584
12594
|
stacked: e,
|
|
12585
12595
|
label: {
|
|
@@ -12635,7 +12645,7 @@ var Mf = { style: {
|
|
|
12635
12645
|
}))), be.value) {
|
|
12636
12646
|
let t;
|
|
12637
12647
|
t = e ? `${be.value}_sort_total` : be.value;
|
|
12638
|
-
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i =
|
|
12648
|
+
let r = ce(N.value)?.context?.metadataDisplayFields?.[0] || N.value, i = Nf(N.value, r, t, Ae.value, je.value), a = {
|
|
12639
12649
|
type: "scatter",
|
|
12640
12650
|
id: "metric-overlay",
|
|
12641
12651
|
data: Qe.value,
|
|
@@ -12727,8 +12737,8 @@ var Mf = { style: {
|
|
|
12727
12737
|
oldState: { secondarySeriesField: t }
|
|
12728
12738
|
});
|
|
12729
12739
|
}), V(ue, (e, t) => {
|
|
12730
|
-
e?.id &&
|
|
12731
|
-
let n =
|
|
12740
|
+
e?.id && yf(e.id).storeBeforeChange && (Ie.value ? fe.value = e.id : de.value = e.id);
|
|
12741
|
+
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));
|
|
12732
12742
|
tt(i, j.value) || (j.value = i), n.yAxis.defaultValue ? X.value = n.yAxis.defaultValue : r.yAxis.defaultValue && !n.yAxis.defaultValue && v(() => {
|
|
12733
12743
|
l.yKey ? X.value = l.yKey : L.value.length > 0 && (X.value = L.value[0].value);
|
|
12734
12744
|
}), d("chart-state-changed", {
|
|
@@ -12780,7 +12790,7 @@ var Mf = { style: {
|
|
|
12780
12790
|
return;
|
|
12781
12791
|
}
|
|
12782
12792
|
if (t) {
|
|
12783
|
-
let { stackedData: n, uniqueFieldValues: r } =
|
|
12793
|
+
let { stackedData: n, uniqueFieldValues: r } = Wo(e, N.value, t, He.value, ee.value);
|
|
12784
12794
|
ye.value = n, Z.value = {
|
|
12785
12795
|
fieldName: t,
|
|
12786
12796
|
fieldValues: r
|
|
@@ -12793,13 +12803,13 @@ var Mf = { style: {
|
|
|
12793
12803
|
if (l.serverSideChartHandler) {
|
|
12794
12804
|
let e = z.filterModel.value, n = p.value?.getColumnDefs() || [];
|
|
12795
12805
|
if (e === null && l.initialGridState) {
|
|
12796
|
-
let t =
|
|
12806
|
+
let t = nu(l.initialGridState, n, l.enableAdvancedFilter);
|
|
12797
12807
|
e = (l.enableAdvancedFilter ? t?.filter?.advancedFilterModel : t?.filter?.filterModel) || {};
|
|
12798
12808
|
}
|
|
12799
12809
|
e ||= {};
|
|
12800
|
-
let r =
|
|
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() === X.value || i.has(e.getColId())), o = {
|
|
12801
12811
|
rowGroupCols: r || [],
|
|
12802
|
-
valueCols:
|
|
12812
|
+
valueCols: Lo(a || []),
|
|
12803
12813
|
filterModel: e
|
|
12804
12814
|
};
|
|
12805
12815
|
C.value = !0, l.serverSideChartHandler(o).then((e) => {
|
|
@@ -12841,19 +12851,19 @@ var Mf = { style: {
|
|
|
12841
12851
|
n.add(o);
|
|
12842
12852
|
let s = t.aggData;
|
|
12843
12853
|
if (o && s) {
|
|
12844
|
-
let n = String(o), s =
|
|
12854
|
+
let n = String(o), s = Uo(n);
|
|
12845
12855
|
r[s] = `${e.key}-${n}`;
|
|
12846
12856
|
let c = t.aggData[a.value]?.value ?? t.aggData[a.value];
|
|
12847
|
-
r[
|
|
12857
|
+
r[Ho(a.value, n)] = c, i += c;
|
|
12848
12858
|
}
|
|
12849
|
-
}), r[`${a.value}${
|
|
12859
|
+
}), r[`${a.value}${xo}`] = i;
|
|
12850
12860
|
return {
|
|
12851
12861
|
rowData: r,
|
|
12852
12862
|
fieldValues: n
|
|
12853
12863
|
};
|
|
12854
12864
|
}, Q = r(() => {
|
|
12855
12865
|
let e = Me.value ? ye.value : ve.value, t = null;
|
|
12856
|
-
if (we.value && (t = Me.value ? `${X.value}${
|
|
12866
|
+
if (we.value && (t = Me.value ? `${X.value}${xo}` : X.value), t && e && we.value) {
|
|
12857
12867
|
let n = we.value?.id.includes("desc") ? -1 : 1;
|
|
12858
12868
|
e = [...e].sort((e, r) => ((e[t] || 0) - (r[t] || 0)) * n);
|
|
12859
12869
|
}
|
|
@@ -12865,7 +12875,7 @@ var Mf = { style: {
|
|
|
12865
12875
|
let t = e?.filter((e) => ie.value.includes(e[N.value])), n = e?.filter((e) => !ie.value.includes(e[N.value]));
|
|
12866
12876
|
e = [
|
|
12867
12877
|
...t || [],
|
|
12868
|
-
{ [N.value]:
|
|
12878
|
+
{ [N.value]: bo },
|
|
12869
12879
|
...n || []
|
|
12870
12880
|
];
|
|
12871
12881
|
}
|
|
@@ -12876,7 +12886,7 @@ var Mf = { style: {
|
|
|
12876
12886
|
let n = String(t?.[e] ?? "");
|
|
12877
12887
|
return !Ge.has(n) && n !== "--SEPARATOR--";
|
|
12878
12888
|
}).map((n) => ({
|
|
12879
|
-
[
|
|
12889
|
+
[yo]: String(n[e] ?? ""),
|
|
12880
12890
|
[t]: Number(n[t] ?? 0)
|
|
12881
12891
|
}));
|
|
12882
12892
|
}), Xe = r(() => {
|
|
@@ -12907,23 +12917,23 @@ var Mf = { style: {
|
|
|
12907
12917
|
if (!Me.value || !t || !Z.value) return e;
|
|
12908
12918
|
let n = ce(t);
|
|
12909
12919
|
if ((typeof n?.aggFunc == "string" ? n.aggFunc : "") === "sum") return e;
|
|
12910
|
-
let r = `${t}${
|
|
12920
|
+
let r = `${t}${xo}`, i = Z.value.fieldValues;
|
|
12911
12921
|
return e.map((e) => {
|
|
12912
12922
|
let n = e[r];
|
|
12913
12923
|
if (typeof n != "number") return e;
|
|
12914
12924
|
let a = 0;
|
|
12915
|
-
for (let n of i) typeof e[
|
|
12925
|
+
for (let n of i) typeof e[Ho(t, String(n))] == "number" && a++;
|
|
12916
12926
|
return {
|
|
12917
12927
|
...e,
|
|
12918
12928
|
[r]: a > 0 ? n / a : null
|
|
12919
12929
|
};
|
|
12920
12930
|
});
|
|
12921
|
-
}), $e = r(() => Q.value?.length || 0), et = r(() =>
|
|
12931
|
+
}), $e = r(() => Q.value?.length || 0), et = r(() => Go(Me.value ? ye.value : Q.value, X.value, Me.value)), nt = r(() => be.value ? Go(Me.value ? ye.value : Q.value, be.value, Me.value) : -Infinity), rt = r(() => Ko(Me.value ? ye.value : Q.value, X.value, Me.value)), it = r(() => be.value ? Ko(Me.value ? ye.value : Q.value, be.value, Me.value) : Infinity), at = r(() => Z.value?.fieldValues?.length || 0), ot = r(() => {
|
|
12922
12932
|
let e = .25 * Math.exp(-.12 * $e.value);
|
|
12923
12933
|
return Math.min(Math.max(e, .05), .75);
|
|
12924
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 && X.value && X.value === l.percentOfFocusViewYKey)), dt = r(() => {
|
|
12925
12935
|
let e = ce(re.value || ""), t = e?.headerName || e?.field || "Compare Field";
|
|
12926
|
-
return
|
|
12936
|
+
return Vo({
|
|
12927
12937
|
currentRowGroupColumnsLength: j.value.length,
|
|
12928
12938
|
shouldShowFocusOverlayText: ut.value || l.focusRequired && ie.value.length === 0,
|
|
12929
12939
|
chartDataEmpty: lt.value,
|
|
@@ -12949,10 +12959,10 @@ var Mf = { style: {
|
|
|
12949
12959
|
preventHidingAll: !0,
|
|
12950
12960
|
enabled: j.value.length > 1
|
|
12951
12961
|
};
|
|
12952
|
-
let t = Me.value ? Z.value?.fieldValues.map((e) =>
|
|
12962
|
+
let t = Me.value ? Z.value?.fieldValues.map((e) => Ho(X.value, e)) || [] : X.value ? [X.value] : [], n = (() => {
|
|
12953
12963
|
if (!be.value) return [];
|
|
12954
12964
|
let e = be.value;
|
|
12955
|
-
return Fe.value ? [`${e}${
|
|
12965
|
+
return Fe.value ? [`${e}${xo}`] : Me.value ? Z.value?.fieldValues.map((t) => Ho(e, String(t))) || [] : [e];
|
|
12956
12966
|
})(), r = me.value.xAxis.hideLabel === !0, i = ue.value?.id === "histogram" && Q.value && Q.value.length > 0 && typeof Q.value[0]?.bucketMin == "number" && typeof Q.value[0]?.bucketMax == "number", a = [];
|
|
12957
12967
|
if (a.push({
|
|
12958
12968
|
type: "category",
|
|
@@ -12960,7 +12970,7 @@ var Mf = { style: {
|
|
|
12960
12970
|
position: je.value ? "left" : "bottom",
|
|
12961
12971
|
crossLines: [{
|
|
12962
12972
|
type: "line",
|
|
12963
|
-
value:
|
|
12973
|
+
value: bo,
|
|
12964
12974
|
stroke: "#666666",
|
|
12965
12975
|
strokeWidth: 1,
|
|
12966
12976
|
lineDash: [4, 4],
|
|
@@ -13015,7 +13025,7 @@ var Mf = { style: {
|
|
|
13015
13025
|
}).filter((e) => e !== null)
|
|
13016
13026
|
});
|
|
13017
13027
|
}
|
|
13018
|
-
let o = !!be.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 ?
|
|
13028
|
+
let o = !!be.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;
|
|
13019
13029
|
if (a.push({
|
|
13020
13030
|
type: "number",
|
|
13021
13031
|
keys: t,
|
|
@@ -13094,12 +13104,12 @@ var Mf = { style: {
|
|
|
13094
13104
|
}
|
|
13095
13105
|
}), w(async () => {
|
|
13096
13106
|
await v(), x.value = l.filterPanelAboveChart;
|
|
13097
|
-
}), (n, r) => (E(), o("div",
|
|
13107
|
+
}), (n, r) => (E(), o("div", Pf, [
|
|
13098
13108
|
s("div", {
|
|
13099
13109
|
class: "pv-stack-16",
|
|
13100
13110
|
id: b
|
|
13101
13111
|
}),
|
|
13102
|
-
e.hideChart ? a("", !0) : (E(), o("div",
|
|
13112
|
+
e.hideChart ? a("", !0) : (E(), o("div", Ff, [
|
|
13103
13113
|
u(An, {
|
|
13104
13114
|
rightIcon: "chevrons-down-up",
|
|
13105
13115
|
label: "Collapse",
|
|
@@ -13111,7 +13121,7 @@ var Mf = { style: {
|
|
|
13111
13121
|
onClick: r[0] ||= (e) => vt(!g.value),
|
|
13112
13122
|
class: y(e.hideChart || g.value ? "pv-hide" : "")
|
|
13113
13123
|
}, null, 8, ["class"]),
|
|
13114
|
-
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div",
|
|
13124
|
+
s("div", { class: y(e.hideChart || !g.value ? "pv-hide" : "pv-space-between") }, [s("div", If, [u(En, {
|
|
13115
13125
|
name: "chart-line",
|
|
13116
13126
|
size: 20,
|
|
13117
13127
|
class: "pv-text-subdued"
|
|
@@ -13124,7 +13134,7 @@ var Mf = { style: {
|
|
|
13124
13134
|
variant: "secondary",
|
|
13125
13135
|
onClick: r[1] ||= (e) => vt(!g.value)
|
|
13126
13136
|
})], 2),
|
|
13127
|
-
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(
|
|
13137
|
+
s("div", { class: y(e.hideChart || g.value ? "pv-hide" : "") }, [u(Mf, {
|
|
13128
13138
|
enablePanel: Q.value != null && Q.value.length > 0,
|
|
13129
13139
|
chartFilter: e.chartFilter,
|
|
13130
13140
|
rowGroupLimit: he.value,
|
|
@@ -13138,7 +13148,7 @@ var Mf = { style: {
|
|
|
13138
13148
|
"use-combined-button",
|
|
13139
13149
|
"chart-config-options",
|
|
13140
13150
|
"read-only"
|
|
13141
|
-
]), s("div",
|
|
13151
|
+
]), s("div", Lf, [qe.value ? (E(), i(ao, {
|
|
13142
13152
|
key: 0,
|
|
13143
13153
|
selectedRegion: Ke.value,
|
|
13144
13154
|
"onUpdate:selectedRegion": r[2] ||= (e) => Ke.value = e,
|
|
@@ -13170,9 +13180,9 @@ var Mf = { style: {
|
|
|
13170
13180
|
"isLoading",
|
|
13171
13181
|
"options",
|
|
13172
13182
|
"enableFocusView"
|
|
13173
|
-
])), qe.value ? a("", !0) : (E(), o("div",
|
|
13183
|
+
])), qe.value ? a("", !0) : (E(), o("div", Rf, [G.value ? (E(), o("div", zf, [(E(), i(M(e.emptyChartFilterRenderer)))])) : _t.value ? (E(), o("p", Bf, P(dt.value), 1)) : a("", !0)]))])], 2)
|
|
13174
13184
|
])),
|
|
13175
|
-
u(
|
|
13185
|
+
u(Vd, _({
|
|
13176
13186
|
ref_key: "pvDataTableRef",
|
|
13177
13187
|
ref: m
|
|
13178
13188
|
}, n.$props, {
|
|
@@ -13189,7 +13199,7 @@ var Mf = { style: {
|
|
|
13189
13199
|
onHandleSettingsIcon: r[8] ||= (e) => d("handle-settings-icon", e),
|
|
13190
13200
|
onFocusUpdate: r[9] ||= (e) => d("focus-update", e)
|
|
13191
13201
|
}), {
|
|
13192
|
-
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(
|
|
13202
|
+
"top-slot": H(() => [e.enableGroupingToggle ? (E(), o(t, { key: 0 }, [e.tableConfigOptions ? (E(), i(Xd, {
|
|
13193
13203
|
key: 0,
|
|
13194
13204
|
groupedModeEnabled: U.value,
|
|
13195
13205
|
tableConfigOptions: l.tableConfigOptions,
|
|
@@ -13207,7 +13217,7 @@ var Mf = { style: {
|
|
|
13207
13217
|
}, 16, ["filterTeleportLocation", "pagination"])
|
|
13208
13218
|
]));
|
|
13209
13219
|
}
|
|
13210
|
-
}),
|
|
13220
|
+
}), Hf = "Unable to load data", Uf = (e, t = {}) => {
|
|
13211
13221
|
let n = O([]), i = O(!1), a = O(), o = 0, s = async () => {
|
|
13212
13222
|
let t = ++o;
|
|
13213
13223
|
i.value = !0;
|
|
@@ -13237,6 +13247,6 @@ var Mf = { style: {
|
|
|
13237
13247
|
};
|
|
13238
13248
|
};
|
|
13239
13249
|
//#endregion
|
|
13240
|
-
export {
|
|
13250
|
+
export { Hf as DEFAULT_DATA_WIDGET_ERROR_TEXT, yt as PitViperAGChartsMonochromeTheme, vt as PitViperAGChartsMonochromeThemeName, xt as PitViperAGChartsMulticolorTheme, bt as PitViperAGChartsMulticolorThemeName, Zt as PvChart, _n as PvChartWidget, Vd as PvDataTable, Vf as PvDataTableWithChart, hs as PvDataWidget, ao as PvMapChart, ft as SCATTER_MARKER_STROKE, eu as constructAdvancedFilterCondition, tu as convertFilterModelToAdvanced, Nu as createPvDataTableFilterStore, Ou as excludeValueFromSetFilter, su as filterModelContainsColId, yu as filterModelsEqual, wu as getSelectedValues, Su as getSelectedValuesFromAdvancedFilterModel, pu as getSelectedValuesFromFilterModel, Cu as getSelectedValuesFromFilterModelByColId, mu as isAdvancedFilterModel, gu as isFilterModelEmpty, bu as mergeAdvancedFilterCondition, cu as mergeFilterModels, Pu as providePvDataTableFilterStore, Tu as removeColumnFilter, xu as removeColumnFromAdvancedFilter, Du as updateMultiOrSetFilter, Eu as updateSetFilter, Iu as usePvDataTableFilterStore, Uf as usePvDataWidgetData };
|
|
13241
13251
|
|
|
13242
13252
|
//# sourceMappingURL=pv-components-visualizations.mjs.map
|