udp-stencil-component-library 26.3.0-beta.2 → 26.3.0-beta.21
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/dist/cjs/add-map-feature-popup_4.cjs.entry.js +12 -12
- package/dist/cjs/address-search_6.cjs.entry.js +18 -18
- package/dist/cjs/advanced-search_12.cjs.entry.js +13 -13
- package/dist/cjs/ag-grid-base_63.cjs.entry.js +404 -164
- package/dist/cjs/ambient-template-grid.cjs.entry.js +16 -16
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +2 -2
- package/dist/cjs/app-bar.cjs.entry.js +1 -1
- package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
- package/dist/cjs/charts-theme-DmrbXz3l.js +386 -0
- package/dist/cjs/check-box.cjs.entry.js +2 -2
- package/dist/cjs/chip-section.cjs.entry.js +2 -2
- package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
- package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
- package/dist/cjs/file-upload_2.cjs.entry.js +5 -5
- package/dist/cjs/filter-conditions_7.cjs.entry.js +5 -5
- package/dist/cjs/form-metadata-display_10.cjs.entry.js +8 -8
- package/dist/cjs/icon-grid.cjs.entry.js +1 -1
- package/dist/cjs/index-G1ccGqOs.js +44 -4
- package/dist/cjs/index.cjs.js +6 -154
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-component_2.cjs.entry.js +2 -2
- package/dist/cjs/primary-action-header_2.cjs.entry.js +4 -4
- package/dist/cjs/question-configs-renderer_4.cjs.entry.js +15 -15
- package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
- package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +3 -3
- package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
- package/dist/cjs/server-side-grid.cjs.entry.js +1 -1
- package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
- package/dist/cjs/simple-card.cjs.entry.js +1 -1
- package/dist/cjs/slot-helpers-C-ntX3IL.js +11 -0
- package/dist/cjs/status-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/stencil-chip.cjs.entry.js +2 -2
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/cjs/stencil-toggle.cjs.entry.js +4 -4
- package/dist/cjs/text-field_2.cjs.entry.js +7 -7
- package/dist/cjs/theme-manager-vLJfQYn8.js +157 -0
- package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
- package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +7 -4
- package/dist/cjs/udp-ag-area-chart.cjs.entry.js +120 -0
- package/dist/cjs/{udp-bar-chart_4.cjs.entry.js → udp-ag-bar-chart_4.cjs.entry.js} +123 -44
- package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +118 -0
- package/dist/cjs/udp-ag-line-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +118 -0
- package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +120 -0
- package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
- package/dist/cjs/udp-bar-chart.cjs.entry.js +41 -0
- package/dist/cjs/udp-calendar-base.cjs.entry.js +44 -71
- package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -3
- package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -3
- package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
- package/dist/cjs/udp-card_6.cjs.entry.js +7 -7
- package/dist/cjs/udp-charts-example.cjs.entry.js +14 -1
- package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query.cjs.entry.js +2 -2
- package/dist/cjs/udp-container.cjs.entry.js +2 -2
- package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-file-input.cjs.entry.js +4 -4
- package/dist/cjs/udp-fluent-image.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-inline-edit.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-location-input.cjs.entry.js +3 -3
- package/dist/cjs/udp-fluent-number-input.cjs.entry.js +99 -0
- package/dist/cjs/udp-fluent-signature-input.cjs.entry.js +4 -4
- package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +2 -2
- package/dist/cjs/udp-forms-list-card.cjs.entry.js +4 -4
- package/dist/cjs/udp-forms-list.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +1 -1
- package/dist/cjs/udp-kpi-card.cjs.entry.js +1 -1
- package/dist/cjs/udp-kpi-cards.cjs.entry.js +2 -2
- package/dist/cjs/udp-map.cjs.entry.js +3 -3
- package/dist/cjs/udp-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-page.cjs.entry.js +1 -1
- package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-sidebar-layout.cjs.entry.js +67 -0
- package/dist/cjs/udp-skeleton-loading.cjs.entry.js +1 -1
- package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
- package/dist/cjs/udp-tab.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-connector.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-dot.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/udp-timeline-separator.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +7 -4
- package/dist/collection/components/calendar/udp-calendar-base.js +100 -77
- package/dist/collection/components/calendar/udp-calendar-day.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-month.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-week.js +10 -9
- package/dist/collection/components/calendar/udp-calendar-year.js +10 -9
- package/dist/collection/components/charts/chart-container/chart-container.js +7 -0
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js +6 -1
- package/dist/collection/components/charts/charts-theme.js +380 -0
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +312 -0
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +302 -0
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +308 -0
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +320 -0
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +309 -0
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +314 -0
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +310 -0
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.css +13 -0
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +314 -0
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +5 -1
- package/dist/collection/components/charts/udp-charts-example.js +15 -2
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +5 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +5 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +5 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +6 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +6 -1
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +5 -1
- package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +1 -1
- package/dist/collection/components/data-display/badge/udp-badge.js +1 -1
- package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card.js +3 -3
- package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +1 -1
- package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +2 -2
- package/dist/collection/components/data-display/chips/udp-chip.js +1 -1
- package/dist/collection/components/data-display/divider/udp-divider.js +1 -1
- package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +1 -1
- package/dist/collection/components/data-display/headers/udp-column-header.js +1 -1
- package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +1 -1
- package/dist/collection/components/data-display/hint-panel/hint-panel.js +1 -1
- package/dist/collection/components/data-display/kpi/kpi-list.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-card.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
- package/dist/collection/components/data-display/list-item/list-item.js +2 -2
- package/dist/collection/components/data-display/pop-over/udp-pop-over.js +1 -1
- package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +1 -1
- package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +2 -2
- package/dist/collection/components/data-display/simple-card/simple-card.js +1 -1
- package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +2 -2
- package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +1 -1
- package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +1 -1
- package/dist/collection/components/dialogs/udp-dialog.js +1 -1
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +9 -9
- package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +1 -1
- package/dist/collection/components/feedback/udp-notification/udp-notification.js +2 -2
- package/dist/collection/components/fluent-ui/autocomplete/udp-autocomplete.js +74 -13
- package/dist/collection/components/fluent-ui/avatar/udp-fluent-avatar.js +1 -1
- package/dist/collection/components/fluent-ui/badge/udp-fluent-badge.js +1 -1
- package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +1 -1
- package/dist/collection/components/fluent-ui/card/udp-fluent-card.js +3 -3
- package/dist/collection/components/fluent-ui/checkbox/udp-fluent-checkbox.js +1 -1
- package/dist/collection/components/fluent-ui/compound-button/udp-compound-button.js +1 -1
- package/dist/collection/components/fluent-ui/counter-badge/udp-fluent-counter-badge.js +1 -1
- package/dist/collection/components/fluent-ui/date-input/udp-date-input.js +61 -11
- package/dist/collection/components/fluent-ui/date-time-input/udp-date-time-input.js +40 -3
- package/dist/collection/components/fluent-ui/dialog/udp-fluent-dialog.js +1 -1
- package/dist/collection/components/fluent-ui/divider/udp-fluent-divider.js +1 -1
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +1 -1
- package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +63 -12
- package/dist/collection/components/fluent-ui/file-input/udp-fluent-file-input.js +4 -4
- package/dist/collection/components/fluent-ui/icon/icon-grid/icon-grid.js +1 -1
- package/dist/collection/components/fluent-ui/icon-button/udp-fluent-icon-button.js +1 -1
- package/dist/collection/components/fluent-ui/image/udp-fluent-image.js +1 -1
- package/dist/collection/components/fluent-ui/inline-edit/udp-fluent-inline-edit.js +1 -1
- package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
- package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
- package/dist/collection/components/fluent-ui/message-bar/udp-message-bar.js +1 -1
- package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.css +68 -0
- package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.js +547 -0
- package/dist/collection/components/fluent-ui/progress-bar/udp-progress-bar.js +1 -1
- package/dist/collection/components/fluent-ui/radio-group/udp-fluent-radio-group.js +1 -1
- package/dist/collection/components/fluent-ui/search-input/udp-search-input.js +3 -3
- package/dist/collection/components/fluent-ui/signature-input/udp-fluent-signature-input.js +4 -4
- package/dist/collection/components/fluent-ui/slider/udp-slider.js +1 -1
- package/dist/collection/components/fluent-ui/spinner/udp-spinner.js +1 -1
- package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
- package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.css +43 -10
- package/dist/collection/components/fluent-ui/text-input/udp-fluent-text-input.js +2 -2
- package/dist/collection/components/fluent-ui/textarea/udp-textarea.js +2 -2
- package/dist/collection/components/fluent-ui/time-input/udp-time-input.js +1 -1
- package/dist/collection/components/fluent-ui/toggle-button/udp-fluent-toggle-button.js +1 -1
- package/dist/collection/components/fluent-ui/tooltip/udp-tooltip.js +2 -2
- package/dist/collection/components/fluent-ui/tree/udp-tree.css +53 -0
- package/dist/collection/components/fluent-ui/tree/udp-tree.js +256 -4
- package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +1 -1
- package/dist/collection/components/forms/edit-view-form/edit-view-form.js +2 -2
- package/dist/collection/components/forms/form/stencil-form.js +1 -1
- package/dist/collection/components/forms/save-view-form/save-view-form.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/location-renderer/location-renderer.js +6 -6
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +7 -7
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/table-columns-renderer/table-columns-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-question/table-input/table-input.js +1 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +16 -16
- package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -2
- package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
- package/dist/collection/components/grid/new-grid/ag-grid-base.js +1 -1
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +2 -2
- package/dist/collection/components/grid/new-grid/client-side-grid.js +1 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/bulkActions.js +45 -6
- package/dist/collection/components/grid/new-grid/search-method-grid.js +1 -1
- package/dist/collection/components/grid/new-grid/server-side-grid.js +1 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +3 -3
- package/dist/collection/components/inputs/address-search/address-search.js +3 -3
- package/dist/collection/components/inputs/checkbox/check-box.js +2 -2
- package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +2 -2
- package/dist/collection/components/inputs/date-selector/udp-date-selector.js +3 -3
- package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +3 -3
- package/dist/collection/components/inputs/file-upload/file-upload.js +4 -4
- package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +1 -1
- package/dist/collection/components/inputs/image-upload/image-upload.js +1 -1
- package/dist/collection/components/inputs/numeric-field/numeric-field.js +3 -3
- package/dist/collection/components/inputs/signature-input/signature-input.js +2 -2
- package/dist/collection/components/inputs/tally/tally.js +2 -2
- package/dist/collection/components/inputs/text-area/text-area.js +3 -3
- package/dist/collection/components/inputs/text-field/text-field.js +3 -3
- package/dist/collection/components/inputs/time-selector/udp-time-selector.js +3 -3
- package/dist/collection/components/inputs/toggle/stencil-toggle.js +4 -4
- package/dist/collection/components/inputs/udp-selector/udp-selector.js +4 -4
- package/dist/collection/components/layout/udp-container/udp-container.js +2 -2
- package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -2
- package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
- package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
- package/dist/collection/components/layout/udp-page/udp-page.js +1 -1
- package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.css +139 -0
- package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.js +264 -0
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
- package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
- package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
- package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -1
- package/dist/collection/components/map/udp-map/map-component.js +1 -1
- package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -3
- package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
- package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -1
- package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -2
- package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -1
- package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +6 -6
- package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -1
- package/dist/collection/components/map/udp-map/udp-map.js +3 -3
- package/dist/collection/components/menu/menu-item/udp-menu-item.js +1 -1
- package/dist/collection/components/menu/udp-menu.js +1 -1
- package/dist/collection/components/new-form/field/udp-field.js +1 -1
- package/dist/collection/components/new-form/form/udp-form-component.js +2 -2
- package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
- package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -2
- package/dist/collection/components/tabs/tab/udp-tab.js +1 -1
- package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-connector.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-dot.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-item.js +2 -2
- package/dist/collection/components/timeline/udp-timeline-separator.js +1 -1
- package/dist/collection/components/timeline/udp-timeline.js +1 -1
- package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -1
- package/dist/collection/components/util/ghost-render/ghost-render.js +1 -1
- package/dist/collection/components/util/lazy-loader/udp-lazy-loader.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -1
- package/dist/collection/test-pages/test-components-page.js +28 -28
- package/dist/collection/test-pages/test-form.js +4 -4
- package/dist/collection/theme/ag-grid-theme-bridge.js +1 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
- package/dist/components/add-map-feature-popup2.js +1 -1
- package/dist/components/address-search2.js +1 -1
- package/dist/components/ag-grid-base2.js +1 -1
- package/dist/components/ambient-template-grid.js +1 -1
- package/dist/components/api-method-instance-grid.js +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/chart-kpi2.js +1 -1
- package/dist/components/charts-theme.js +1 -0
- package/dist/components/check-box.js +1 -1
- package/dist/components/chip-section.js +1 -1
- package/dist/components/client-side-grid2.js +1 -1
- package/dist/components/edit-view-form.js +1 -1
- package/dist/components/feature-details-card2.js +1 -1
- package/dist/components/feature-details-popup2.js +1 -1
- package/dist/components/file-upload-renderer2.js +1 -1
- package/dist/components/file-upload2.js +1 -1
- package/dist/components/form-metadata-display-renderer2.js +1 -1
- package/dist/components/form-metadata-display2.js +1 -1
- package/dist/components/ghost-render2.js +1 -1
- package/dist/components/grid-primary-bar2.js +1 -1
- package/dist/components/hint-panel2.js +1 -1
- package/dist/components/icon-grid.js +1 -1
- package/dist/components/image-upload2.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kpi-list2.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/list-options-renderer2.js +1 -1
- package/dist/components/location-renderer2.js +1 -1
- package/dist/components/map-component2.js +1 -1
- package/dist/components/map-toolbar2.js +1 -1
- package/dist/components/numeric-field2.js +1 -1
- package/dist/components/primary-action-header2.js +1 -1
- package/dist/components/question-configs-renderer2.js +1 -1
- package/dist/components/resource-timeline-calendar.js +1 -1
- package/dist/components/resource-timeline-primary-bar2.js +1 -1
- package/dist/components/save-view-form.js +1 -1
- package/dist/components/search-list-item2.js +1 -1
- package/dist/components/search-method-grid2.js +1 -1
- package/dist/components/section-configs-renderer2.js +1 -1
- package/dist/components/select-layer-popup2.js +1 -1
- package/dist/components/server-side-grid2.js +1 -1
- package/dist/components/side-sheet-container2.js +1 -1
- package/dist/components/side-sheet2.js +1 -1
- package/dist/components/signature-input2.js +1 -1
- package/dist/components/signature-renderer2.js +1 -1
- package/dist/components/simple-card.js +1 -1
- package/dist/components/split-line-popup2.js +1 -1
- package/dist/components/status-chip2.js +1 -1
- package/dist/components/stencil-chip2.js +1 -1
- package/dist/components/stencil-form2.js +1 -1
- package/dist/components/stencil-toggle2.js +1 -1
- package/dist/components/table-columns-renderer2.js +1 -1
- package/dist/components/table-input2.js +1 -1
- package/dist/components/tally.js +1 -1
- package/dist/components/test-components-page.js +1 -1
- package/dist/components/test-form2.js +1 -1
- package/dist/components/text-area2.js +1 -1
- package/dist/components/text-field2.js +1 -1
- package/dist/components/text-input-renderer2.js +1 -1
- package/dist/components/theme-manager.js +1 -0
- package/dist/components/udp-adornment2.js +1 -1
- package/dist/components/udp-advanced-search-builder.js +1 -1
- package/dist/components/udp-ag-area-chart.d.ts +11 -0
- package/dist/components/udp-ag-area-chart.js +2 -0
- package/dist/components/udp-ag-bar-chart.d.ts +11 -0
- package/dist/components/udp-ag-bar-chart.js +2 -0
- package/dist/components/udp-ag-bar-chart2.js +1 -0
- package/dist/components/udp-ag-bubble-chart.d.ts +11 -0
- package/dist/components/udp-ag-bubble-chart.js +2 -0
- package/dist/components/udp-ag-combo-chart.d.ts +11 -0
- package/dist/components/udp-ag-combo-chart.js +2 -0
- package/dist/components/udp-ag-donut-chart.d.ts +11 -0
- package/dist/components/udp-ag-donut-chart.js +2 -0
- package/dist/components/udp-ag-line-chart.d.ts +11 -0
- package/dist/components/udp-ag-line-chart.js +2 -0
- package/dist/components/udp-ag-pie-chart.d.ts +11 -0
- package/dist/components/udp-ag-pie-chart.js +2 -0
- package/dist/components/udp-ag-scatter-chart.d.ts +11 -0
- package/dist/components/udp-ag-scatter-chart.js +2 -0
- package/dist/components/udp-ambient-card2.js +1 -1
- package/dist/components/udp-ambient-tool-tip2.js +1 -1
- package/dist/components/udp-autocomplete2.js +1 -1
- package/dist/components/udp-avatar2.js +1 -1
- package/dist/components/udp-badge2.js +1 -1
- package/dist/components/udp-bar-chart.js +1 -1
- package/dist/components/udp-calendar-base2.js +1 -1
- package/dist/components/udp-calendar-day.js +1 -1
- package/dist/components/udp-calendar-month.js +1 -1
- package/dist/components/udp-calendar-week.js +1 -1
- package/dist/components/udp-calendar-year.js +1 -1
- package/dist/components/udp-card-action-area.js +1 -1
- package/dist/components/udp-card-actions2.js +1 -1
- package/dist/components/udp-card-content2.js +1 -1
- package/dist/components/udp-card-header2.js +1 -1
- package/dist/components/udp-card-media2.js +1 -1
- package/dist/components/udp-card2.js +1 -1
- package/dist/components/udp-charts-example.js +1 -1
- package/dist/components/udp-chip2.js +1 -1
- package/dist/components/udp-column-header2.js +1 -1
- package/dist/components/udp-compound-button2.js +1 -1
- package/dist/components/udp-container-query-grid-item.js +1 -1
- package/dist/components/udp-container-query-grid.js +1 -1
- package/dist/components/udp-container-query2.js +1 -1
- package/dist/components/udp-container2.js +1 -1
- package/dist/components/udp-date-input2.js +1 -1
- package/dist/components/udp-date-range-selector2.js +1 -1
- package/dist/components/udp-date-selector2.js +1 -1
- package/dist/components/udp-date-time-input2.js +1 -1
- package/dist/components/udp-datetime-selector2.js +1 -1
- package/dist/components/udp-dialog2.js +1 -1
- package/dist/components/udp-distribution-chart2.js +1 -1
- package/dist/components/udp-divider2.js +1 -1
- package/dist/components/udp-donut-chart2.js +1 -1
- package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
- package/dist/components/udp-dynamic-form.js +1 -1
- package/dist/components/udp-empty-state-display2.js +1 -1
- package/dist/components/udp-field2.js +1 -1
- package/dist/components/udp-fluent-avatar2.js +1 -1
- package/dist/components/udp-fluent-badge2.js +1 -1
- package/dist/components/udp-fluent-button2.js +1 -1
- package/dist/components/udp-fluent-card2.js +1 -1
- package/dist/components/udp-fluent-checkbox2.js +1 -1
- package/dist/components/udp-fluent-counter-badge2.js +1 -1
- package/dist/components/udp-fluent-dialog2.js +1 -1
- package/dist/components/udp-fluent-divider2.js +1 -1
- package/dist/components/udp-fluent-drawer2.js +1 -1
- package/dist/components/udp-fluent-dropdown2.js +1 -1
- package/dist/components/udp-fluent-file-input.js +1 -1
- package/dist/components/udp-fluent-icon-button2.js +1 -1
- package/dist/components/udp-fluent-image.js +1 -1
- package/dist/components/udp-fluent-inline-edit.js +1 -1
- package/dist/components/udp-fluent-link.js +1 -1
- package/dist/components/udp-fluent-location-input.js +1 -1
- package/dist/components/udp-fluent-number-input.d.ts +11 -0
- package/dist/components/udp-fluent-number-input.js +2 -0
- package/dist/components/udp-fluent-radio-group2.js +1 -1
- package/dist/components/udp-fluent-signature-input.js +1 -1
- package/dist/components/udp-fluent-switch2.js +1 -1
- package/dist/components/udp-fluent-tablist2.js +1 -1
- package/dist/components/udp-fluent-text-input2.js +1 -1
- package/dist/components/udp-fluent-toggle-button2.js +1 -1
- package/dist/components/udp-form-component2.js +1 -1
- package/dist/components/udp-forms-builder-menu2.js +1 -1
- package/dist/components/udp-forms-builder-question-item2.js +1 -1
- package/dist/components/udp-forms-builder-style-override.js +1 -1
- package/dist/components/udp-forms-follow-up-list-card.js +1 -1
- package/dist/components/udp-forms-list-card2.js +1 -1
- package/dist/components/udp-forms-list.js +1 -1
- package/dist/components/udp-forms-renderer.js +1 -1
- package/dist/components/udp-grid-loader2.js +1 -1
- package/dist/components/udp-hotlist-form2.js +1 -1
- package/dist/components/udp-kpi-card2.js +1 -1
- package/dist/components/udp-kpi-cards.js +1 -1
- package/dist/components/udp-lazy-loader2.js +1 -1
- package/dist/components/udp-line-chart2.js +1 -1
- package/dist/components/udp-linear-loader2.js +1 -1
- package/dist/components/udp-map-toolbar2.js +1 -1
- package/dist/components/udp-map.js +1 -1
- package/dist/components/udp-menu-item2.js +1 -1
- package/dist/components/udp-menu.js +1 -1
- package/dist/components/udp-message-bar2.js +1 -1
- package/dist/components/udp-notification2.js +1 -1
- package/dist/components/udp-page-header2.js +1 -1
- package/dist/components/udp-page.js +1 -1
- package/dist/components/udp-pop-over-grid-action-header2.js +1 -1
- package/dist/components/udp-pop-over2.js +1 -1
- package/dist/components/udp-progress-bar2.js +1 -1
- package/dist/components/udp-sankey-chart.js +1 -1
- package/dist/components/udp-search-input2.js +1 -1
- package/dist/components/udp-selector2.js +1 -1
- package/dist/components/udp-side-sheet2.js +1 -1
- package/dist/components/udp-sidebar-layout.d.ts +11 -0
- package/dist/components/udp-sidebar-layout.js +2 -0
- package/dist/components/udp-skeleton-loading2.js +1 -1
- package/dist/components/udp-slider2.js +1 -1
- package/dist/components/udp-spinner2.js +1 -1
- package/dist/components/udp-split-screen.js +1 -1
- package/dist/components/udp-stepper-demo.js +1 -1
- package/dist/components/udp-tab-panel2.js +1 -1
- package/dist/components/udp-tab.js +1 -1
- package/dist/components/udp-tabs2.js +1 -1
- package/dist/components/udp-textarea2.js +1 -1
- package/dist/components/udp-time-input2.js +1 -1
- package/dist/components/udp-time-selector2.js +1 -1
- package/dist/components/udp-timeline-connector.js +1 -1
- package/dist/components/udp-timeline-dot.js +1 -1
- package/dist/components/udp-timeline-item.js +1 -1
- package/dist/components/udp-timeline-separator.js +1 -1
- package/dist/components/udp-timeline.js +1 -1
- package/dist/components/udp-tooltip2.js +1 -1
- package/dist/components/udp-tree2.js +1 -1
- package/dist/components/udp-xy-chart2.js +1 -1
- package/dist/components/udp-xy-multi-series-chart.js +1 -1
- package/dist/components/upd-alert-banner2.js +1 -1
- package/dist/docs.json +13789 -10151
- package/dist/esm/add-map-feature-popup_4.entry.js +12 -12
- package/dist/esm/address-search_6.entry.js +18 -18
- package/dist/esm/advanced-search_12.entry.js +13 -13
- package/dist/esm/ag-grid-base_63.entry.js +388 -148
- package/dist/esm/ambient-template-grid.entry.js +16 -16
- package/dist/esm/api-method-instance-grid.entry.js +2 -2
- package/dist/esm/app-bar.entry.js +1 -1
- package/dist/esm/chart-container_3.entry.js +2 -2
- package/dist/esm/charts-theme-B2HoYVMf.js +383 -0
- package/dist/esm/check-box.entry.js +2 -2
- package/dist/esm/chip-section.entry.js +2 -2
- package/dist/esm/date-time-renderer_9.entry.js +21 -21
- package/dist/esm/feature-details-card_2.entry.js +5 -5
- package/dist/esm/file-upload_2.entry.js +5 -5
- package/dist/esm/filter-conditions_7.entry.js +5 -5
- package/dist/esm/form-metadata-display_10.entry.js +8 -8
- package/dist/esm/icon-grid.entry.js +1 -1
- package/dist/esm/index-Cgpvu-iV.js +44 -4
- package/dist/esm/index.js +4 -152
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-component_2.entry.js +2 -2
- package/dist/esm/primary-action-header_2.entry.js +4 -4
- package/dist/esm/question-configs-renderer_4.entry.js +15 -15
- package/dist/esm/resource-timeline-calendar.entry.js +1 -1
- package/dist/esm/resource-timeline-primary-bar.entry.js +3 -3
- package/dist/esm/search-method-grid.entry.js +1 -1
- package/dist/esm/server-side-grid.entry.js +1 -1
- package/dist/esm/side-sheet-container.entry.js +1 -1
- package/dist/esm/simple-card.entry.js +1 -1
- package/dist/esm/slot-helpers-Dx6EW-PP.js +9 -0
- package/dist/esm/status-chip_2.entry.js +1 -1
- package/dist/esm/stencil-chip.entry.js +2 -2
- package/dist/esm/stencil-library.js +1 -1
- package/dist/esm/stencil-toggle.entry.js +4 -4
- package/dist/esm/text-field_2.entry.js +7 -7
- package/dist/esm/theme-manager-DeVqiL0i.js +153 -0
- package/dist/esm/udp-adornment.entry.js +1 -1
- package/dist/esm/udp-advanced-search-builder.entry.js +7 -4
- package/dist/esm/udp-ag-area-chart.entry.js +118 -0
- package/dist/esm/{udp-bar-chart_4.entry.js → udp-ag-bar-chart_4.entry.js} +110 -31
- package/dist/esm/udp-ag-bubble-chart.entry.js +118 -0
- package/dist/esm/udp-ag-combo-chart.entry.js +118 -0
- package/dist/esm/udp-ag-donut-chart.entry.js +116 -0
- package/dist/esm/udp-ag-line-chart.entry.js +118 -0
- package/dist/esm/udp-ag-pie-chart.entry.js +116 -0
- package/dist/esm/udp-ag-scatter-chart.entry.js +118 -0
- package/dist/esm/udp-attachment-item_2.entry.js +1 -1
- package/dist/esm/udp-bar-chart.entry.js +39 -0
- package/dist/esm/udp-calendar-base.entry.js +44 -71
- package/dist/esm/udp-calendar-day.entry.js +1 -3
- package/dist/esm/udp-calendar-month.entry.js +1 -3
- package/dist/esm/udp-calendar-week.entry.js +1 -3
- package/dist/esm/udp-calendar-year.entry.js +1 -3
- package/dist/esm/udp-card-action-area.entry.js +1 -1
- package/dist/esm/udp-card_6.entry.js +7 -7
- package/dist/esm/udp-charts-example.entry.js +14 -1
- package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
- package/dist/esm/udp-container-query-grid.entry.js +1 -1
- package/dist/esm/udp-container-query.entry.js +2 -2
- package/dist/esm/udp-container.entry.js +2 -2
- package/dist/esm/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/esm/udp-dynamic-form.entry.js +1 -1
- package/dist/esm/udp-fluent-file-input.entry.js +4 -4
- package/dist/esm/udp-fluent-image.entry.js +1 -1
- package/dist/esm/udp-fluent-inline-edit.entry.js +1 -1
- package/dist/esm/udp-fluent-link.entry.js +1 -1
- package/dist/esm/udp-fluent-location-input.entry.js +3 -3
- package/dist/esm/udp-fluent-number-input.entry.js +97 -0
- package/dist/esm/udp-fluent-signature-input.entry.js +4 -4
- package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/esm/udp-forms-follow-up-list-card.entry.js +2 -2
- package/dist/esm/udp-forms-list-card.entry.js +4 -4
- package/dist/esm/udp-forms-list.entry.js +1 -1
- package/dist/esm/udp-forms-renderer.entry.js +1 -1
- package/dist/esm/udp-kpi-card.entry.js +1 -1
- package/dist/esm/udp-kpi-cards.entry.js +2 -2
- package/dist/esm/udp-map.entry.js +3 -3
- package/dist/esm/udp-menu.entry.js +1 -1
- package/dist/esm/udp-page.entry.js +1 -1
- package/dist/esm/udp-sankey-chart.entry.js +1 -1
- package/dist/esm/udp-sidebar-layout.entry.js +65 -0
- package/dist/esm/udp-skeleton-loading.entry.js +1 -1
- package/dist/esm/udp-split-screen.entry.js +1 -1
- package/dist/esm/udp-stepper-demo.entry.js +1 -1
- package/dist/esm/udp-tab.entry.js +1 -1
- package/dist/esm/udp-timeline-connector.entry.js +1 -1
- package/dist/esm/udp-timeline-dot.entry.js +1 -1
- package/dist/esm/udp-timeline-item.entry.js +2 -2
- package/dist/esm/udp-timeline-separator.entry.js +1 -1
- package/dist/esm/udp-timeline.entry.js +1 -1
- package/dist/esm/udp-xy-chart.entry.js +1 -1
- package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
- package/dist/stencil-library/address-search_6.entry.js +1 -1
- package/dist/stencil-library/advanced-search_12.entry.js +1 -1
- package/dist/stencil-library/ag-grid-base_63.entry.js +1 -1
- package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
- package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
- package/dist/stencil-library/app-bar.entry.js +1 -1
- package/dist/stencil-library/chart-container_3.entry.js +1 -1
- package/dist/stencil-library/charts-theme-B2HoYVMf.js +1 -0
- package/dist/stencil-library/check-box.entry.js +1 -1
- package/dist/stencil-library/chip-section.entry.js +1 -1
- package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
- package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
- package/dist/stencil-library/file-upload_2.entry.js +1 -1
- package/dist/stencil-library/filter-conditions_7.entry.js +1 -1
- package/dist/stencil-library/form-metadata-display_10.entry.js +1 -1
- package/dist/stencil-library/icon-grid.entry.js +1 -1
- package/dist/stencil-library/index.esm.js +1 -1
- package/dist/stencil-library/map-component_2.entry.js +1 -1
- package/dist/stencil-library/primary-action-header_2.entry.js +1 -1
- package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-primary-bar.entry.js +1 -1
- package/dist/stencil-library/search-method-grid.entry.js +1 -1
- package/dist/stencil-library/server-side-grid.entry.js +1 -1
- package/dist/stencil-library/side-sheet-container.entry.js +1 -1
- package/dist/stencil-library/simple-card.entry.js +1 -1
- package/dist/stencil-library/slot-helpers-Dx6EW-PP.js +1 -0
- package/dist/stencil-library/status-chip_2.entry.js +1 -1
- package/dist/stencil-library/stencil-chip.entry.js +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/stencil-toggle.entry.js +1 -1
- package/dist/stencil-library/text-field_2.entry.js +1 -1
- package/dist/stencil-library/theme-manager-DeVqiL0i.js +1 -0
- package/dist/stencil-library/udp-adornment.entry.js +1 -1
- package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
- package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -0
- package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -0
- package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -0
- package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
- package/dist/stencil-library/udp-bar-chart.entry.js +1 -0
- package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
- package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
- package/dist/stencil-library/udp-card_6.entry.js +1 -1
- package/dist/stencil-library/udp-charts-example.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
- package/dist/stencil-library/udp-container-query.entry.js +1 -1
- package/dist/stencil-library/udp-container.entry.js +1 -1
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-file-input.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-image.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-inline-edit.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-location-input.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-number-input.entry.js +1 -0
- package/dist/stencil-library/udp-fluent-signature-input.entry.js +1 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list.entry.js +1 -1
- package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
- package/dist/stencil-library/udp-kpi-card.entry.js +1 -1
- package/dist/stencil-library/udp-kpi-cards.entry.js +1 -1
- package/dist/stencil-library/udp-map.entry.js +1 -1
- package/dist/stencil-library/udp-menu.entry.js +1 -1
- package/dist/stencil-library/udp-page.entry.js +1 -1
- package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
- package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -0
- package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -1
- package/dist/stencil-library/udp-split-screen.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
- package/dist/stencil-library/udp-tab.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-connector.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-dot.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-item.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-separator.entry.js +1 -1
- package/dist/stencil-library/udp-timeline.entry.js +1 -1
- package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/types/components/calendar/udp-calendar-base.d.ts +5 -2
- package/dist/types/components/calendar/udp-calendar-day.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-month.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-week.d.ts +1 -2
- package/dist/types/components/calendar/udp-calendar-year.d.ts +1 -2
- package/dist/types/components/charts/chart-container/chart-container.d.ts +7 -0
- package/dist/types/components/charts/chart-kpi/chart-kpi.d.ts +5 -0
- package/dist/types/components/charts/charts-theme.d.ts +80 -0
- package/dist/types/components/charts/udp-ag-area-chart/udp-ag-area-chart.d.ts +73 -0
- package/dist/types/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.d.ts +62 -0
- package/dist/types/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.d.ts +70 -0
- package/dist/types/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.d.ts +83 -0
- package/dist/types/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.d.ts +70 -0
- package/dist/types/components/charts/udp-ag-line-chart/udp-ag-line-chart.d.ts +75 -0
- package/dist/types/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.d.ts +72 -0
- package/dist/types/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.d.ts +76 -0
- package/dist/types/components/charts/udp-bar-chart/udp-bar-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-charts-example.d.ts +1 -1
- package/dist/types/components/charts/udp-distribution-chart/udp-distribution-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-donut-chart/udp-donut-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-line-chart/udp-line-chart.d.ts +4 -0
- package/dist/types/components/charts/udp-sankey-chart/udp-sankey-chart.d.ts +5 -0
- package/dist/types/components/charts/udp-xy-chart/udp-xy-chart.d.ts +5 -0
- package/dist/types/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.d.ts +4 -0
- package/dist/types/components/fluent-ui/autocomplete/udp-autocomplete.d.ts +39 -7
- package/dist/types/components/fluent-ui/date-input/udp-date-input.d.ts +15 -1
- package/dist/types/components/fluent-ui/date-time-input/udp-date-time-input.d.ts +10 -1
- package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +33 -5
- package/dist/types/components/fluent-ui/number-input/udp-fluent-number-input.d.ts +66 -0
- package/dist/types/components/fluent-ui/tree/udp-tree.d.ts +78 -0
- package/dist/types/components/grid/new-grid/gridFunctions/bulkActions.d.ts +20 -0
- package/dist/types/components/layout/udp-sidebar-layout/udp-sidebar-layout.d.ts +54 -0
- package/dist/types/components.d.ts +1912 -76
- package/package.json +2 -1
- package/dist/components/udp-bar-chart2.js +0 -1
- package/dist/stencil-library/udp-bar-chart_4.entry.js +0 -1
|
@@ -114,17 +114,17 @@ export class TestForm {
|
|
|
114
114
|
{ label: 'Medium', value: 'medium' },
|
|
115
115
|
{ label: 'Large', value: 'large' },
|
|
116
116
|
];
|
|
117
|
-
return (h("div", { key: '
|
|
117
|
+
return (h("div", { key: '78b78911bd056a508320960916f7b0104e9f7dcf' }, h("udp-form-component", { key: 'a99232c1c4b9e84b941d2fcaf595032236b24b77', formId: this.formId, validate: this.validateForm, onFormReady: this.handleFormReady, onSubmit: this.handleFormSubmit, initialValues: this.formData }, h("udp-flexbox", { key: '3a45771136231dc99d00880c852d782062d70a4d' }, h("udp-flexbox", { key: '1777ecd1e444cf3be936b517270cb87a508c216a', style: { display: 'none' } }, h("h3", { key: '5ae9fff156c7465cdcb0a58cb1a5606e274e45e4', style: { margin: '0 0 1rem 0', fontSize: '16px', fontWeight: '600' } }, "Global Property Controls"), h("udp-flexbox", { key: 'f85125e69d026ece32ba64997d75b31a928e7ad5' }, h("udp-fluent-dropdown", { key: 'e3e098aff935d9ef58f53f74a334954a3c38f9ab', label: "Appearance", value: this.controlAppearance, options: appearanceOptions, optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.controlAppearance = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); } }), h("udp-fluent-dropdown", { key: 'ab1baea650adf9acd9fff5a52d1a909ae011264b', label: "Control Size", value: this.controlSize, options: sizeOptions, optionValue: "value", optionLabel: "label", onValueChanged: (e) => { var _a; return (this.controlSize = ((_a = e.detail) === null || _a === void 0 ? void 0 : _a.value) || e.detail); }, style: { minWidth: '120px' } }), h("udp-fluent-switch", { key: '3e219e40ac6d247d2f5405e260837aee884208da', label: "Required", labelPosition: "after", checked: this.controlRequired, onValueChanged: (e) => (this.controlRequired = e.detail) }), h("udp-fluent-switch", { key: '0c0b16c3430b03f9243181f25bf27fc6008be2d9', label: "Disabled", labelPosition: "after", checked: this.controlDisabled, onValueChanged: (e) => (this.controlDisabled = e.detail) }), h("udp-fluent-switch", { key: 'f7ec67444927b64a393cc8588938c96d6c8b7d15', label: "Readonly", labelPosition: "after", checked: this.controlReadonly, onValueChanged: (e) => (this.controlReadonly = e.detail) })), h("p", { key: '1c9094a5b717b06f9b8e2fa529bdce379ee8c927', style: {
|
|
118
118
|
margin: '0.75rem 0 0',
|
|
119
119
|
fontSize: '12px',
|
|
120
120
|
color: 'var(--colorNeutralForeground3)',
|
|
121
|
-
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), h("udp-field", { key: '
|
|
121
|
+
} }, "Note: Not all props apply to all components. readonly only applies to text inputs.")), h("udp-field", { key: '1f3218930f463504e4d3e78d5544d5af0308dfad', name: "searchText" }, h("udp-search-input", { key: '32f52709af9f8ed6c3f0ad906faef97b3a356d3a', disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize, placeholder: "Search for something...", includeErrorPadding: false })), h("udp-field", { key: 'f3302fdbb91f87aa886ab48b68fb4dad9c814d6c', name: "firstName" }, h("udp-fluent-text-input", { key: '657eda1498334fb13e5ca7aeac8a48b0ace97c97', label: "First Name", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize, placeholder: "Enter your first name", popupHint: "Enter your first name, this should appear above the input" })), h("div", { key: '63d0a3a79bda4e19c1c42489c1511f409e9d71c8', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, h("udp-field", { key: '9217aaa885ce4b3f0bc351be85e407b3daa640bc', name: "email" }, h("udp-fluent-text-input", { key: '55d6986faa45e32c5c7d3a9b1d2e53f6e145f172', label: "Email Address", type: "email", value: "jordanatchison@univerus.com", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), h("udp-field", { key: '30b3bc790e61e9e50242f7ff97ceeccd11b30478', name: "age" }, h("udp-fluent-text-input", { key: '2e1cfc9bab2c0d7309efcaa78f2c6a52a454fb02', label: "Age", type: "number", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize }))), h("udp-field", { key: 'c47f175c6d7ce797b5b74fe250a05dc9708e56c5', name: "birthday" }, h("udp-date-input", { key: '8613ffa0b043d04dcc15e8a2d902b0aadb4ce5fc', label: "Birthday", minDate: "2026-01-11", maxDate: "2026-01-22", dateSelectionType: "range", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), h("udp-field", { key: '26be842252a2a196af372b07fef6c78e4f100b63', name: "appointment" }, h("udp-date-time-input", { key: 'd745a121bf64e22c7ebf4eabcb3fc283373dc686', label: "Appointment (Combined Date/Time)", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), h("div", { key: 'fefbc37f981f26a6de2dbc2a16802cdbc0642081', style: { display: 'flex', gap: '1rem', flexDirection: 'row', flex: '1' } }, h("udp-field", { key: '5456c7f8483217141fe30058c8518d650f917cc0', name: "startTime" }, h("udp-time-input", { key: 'f87512e4632ecc791befbe826d4a6d49960e9de8', label: "Start Time (Freeform)", placeholder: "e.g. 2:30pm", hint: "Type any time or select from list", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize })), h("udp-field", { key: '1e1e1077fe91ff91ebe4e065a658ed82a204fbff', name: "endTime", validate: () => 'always invalid' }, h("udp-time-input", { key: 'a6624072c283569c1b75a1c03eb910353535807f', label: "End Time", placeholder: "e.g. 5:30pm", minuteStep: 30, hint: "Type any time or select from list", required: true, disabled: this.controlDisabled, appearance: this.controlAppearance, controlSize: this.controlSize }))), h("udp-field", { key: '5e18d1e10ef2e3e768dedf7429d09b3471df24aa', name: "bio" }, h("udp-textarea", { key: 'd7ec1c9e85fa855c9d74ce9669f26c7ea747608a', label: "Bio", placeholder: "Tell us about yourself", autoResize: true, required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), h("udp-field", { key: '3b4f342a8a25afdb40b75d9a23122813b60321ca', name: "exclamation", validate: mustHaveExclamation }, h("udp-fluent-text-input", { key: '7a186300a8cf4096e5199418c0c4189de86ac7e4', label: "Exclamation", hint: "exclamation mark please", required: true, disabled: this.controlDisabled, readonly: this.controlReadonly, appearance: this.controlAppearance, controlSize: this.controlSize })), h("udp-field", { key: '83b4e0e693a03f6aacab33ae50535bc0e5051217', name: "favoriteAnimal" }, h("udp-fluent-dropdown", { key: 'd0c6d51ed8e0997f15ce363f0ad0734423c8c5ee', placeholder: "Select an animal", label: "Favorite Animal (Dropdown)", appearance: this.controlAppearance, disabled: this.controlDisabled, required: true, optionValue: 'value', optionLabel: (data) => data.label, options: animals, controlSize: this.controlSize })), h("udp-field", { key: '0e87635dc8f2cf870aad4f6afa5ef23849b5921b', name: "favoriteAnimalAutoComplete" }, h("udp-autocomplete", { key: 'feb02ef8eb4b8913de0e9411331e1624c6cfb5cc', placeholder: "Select an animal", label: "Favorite Animal", appearance: this.controlAppearance, disabled: this.controlDisabled, required: true, optionValue: 'value', optionLabel: (data) => data.label,
|
|
122
122
|
// multiple={true}
|
|
123
|
-
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), h("udp-field", { key: '
|
|
123
|
+
options: animals, controlSize: this.controlSize, popupHint: "Select an animal" })), h("udp-field", { key: 'a80552ad161ff4133059afa6ae0d58287e3ff570', name: "serverSideUser" }, h("udp-autocomplete", { key: '73d97143d7ecf82659b8641321e2207a99a94006', required: true, placeholder: "Search for an actor...", label: "Server Side Actor", appearance: this.controlAppearance, disabled: this.controlDisabled, optionValue: "id", optionLabel: (option) => option.firstName + ' ' + option.lastName, searchFunction: this.searchFunction, controlSize: this.controlSize, multiple: true })), h("udp-field", { key: '474418370a9404b1361866a533df9ce7f3725a91', name: "newsletter" }, h("udp-fluent-checkbox", { key: '37ef0b9b1e50fb8445e438e0eea16a9028618406', label: "Subscribe to newsletter", hint: "We will only send you emails about important updates", disabled: this.controlDisabled, controlSize: this.controlSize })), h("udp-field", { key: 'fd904a841f78761100a63ba5e744f02886599300', name: "commitment" }, h("udp-slider", { key: '75586c644a239954779b34ccf8f60ea3c2b06549', label: "Commitment Level", disabled: this.controlDisabled })), h("udp-field", { key: 'f30242266279384e87a9b59eb8209cda57dbf0d5', name: "active" }, h("udp-fluent-switch", { key: 'e5d342187efa24a5cc8dad1daec88dfab9490667', label: "Active", labelPosition: "after", disabled: this.controlDisabled })), h("udp-field", { key: '55f3ef27debb9b35367fb71eea0d0b9870231082', name: "favoriteColor" }, h("udp-fluent-radio-group", { key: '7714e7558cf305d0570af651f2e8724a83b26808', label: "Favorite Colo", disabled: this.controlDisabled, hint: "Favorite Color", items: [
|
|
124
124
|
{ label: 'Red', value: 'red' },
|
|
125
125
|
{ label: 'Green', value: 'green' },
|
|
126
126
|
{ label: 'Blue', value: 'blue' },
|
|
127
|
-
] })), h("udp-field", { key: '
|
|
127
|
+
] })), h("udp-field", { key: '4f4cc14c8aaf6ed456ca5931b56448f67f7e84cc', name: "swatchColor" }, h("udp-swatch-picker", { key: '2ef8f017b1f2d60ff9268fc4b0fb5ba440a8049f', label: "Pick a Color (Swatch)", hint: "Pick a color", swatches: colorSwatches, layout: "row", shape: "square", size: this.controlSize === 'small'
|
|
128
128
|
? 'small'
|
|
129
129
|
: this.controlSize === 'large'
|
|
130
130
|
? 'large'
|
|
@@ -15,7 +15,7 @@ function createAgGridTheme() {
|
|
|
15
15
|
wrapperBorderRadius: 0,
|
|
16
16
|
wrapperBorder: false,
|
|
17
17
|
headerCellHoverBackgroundColor: 'var(--udp-grid-column-header-bg-hover)',
|
|
18
|
-
borderColor: '
|
|
18
|
+
borderColor: '#E9ECEF',
|
|
19
19
|
accentColor: 'var(--primary-color)',
|
|
20
20
|
browserColorScheme: 'light',
|
|
21
21
|
}, 'light')
|
|
@@ -94,13 +94,13 @@ export class ChipSection {
|
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
96
|
console.log("Rendering ChipSection", this.visibleFilterChips);
|
|
97
|
-
return (h("div", { key: '
|
|
97
|
+
return (h("div", { key: '682d90efd9def02e31111a7213268a78e1192ece', class: "wrapper", id: "chipSectionContainer" }, h("div", { key: 'b1604e89dd0863d30d7b6da49896fba101ce9db9', class: "chipHolder" }, h("div", { key: '21908fddfcab881cbc7f6fc95e5fcc6ffee2bfac', id: "viewChipsContainer" }, this.viewChips.map((chip, index) => (h("stencil-chip", { onOnDelete: () => this.handleDelete('view', index), text: chip.label, class: "viewChip" })))), h("udp-dynamic-container-with-menu", { key: 'c1273403c82ca1b92a7a2a03fc2743281b5732a7', id: "filterChipsContainer", menuItems: this.menuItems }, this.selectedFilterChip && (h("stencil-chip", { key: 'ec5a481306fa1aee40d919727eaab27043f2056e', onOnDelete: this.handleFilterChipUntoggle, text: this.selectedFilterChip.label, class: "viewChip" })), console.log('filtering here...', this.filterChips), this.filterChips.map((chip) => {
|
|
98
98
|
if (this.selectedFilterChip && chip.id === this.selectedFilterChip.id) {
|
|
99
99
|
console.log('returning null...');
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
102
|
return (h("stencil-chip", { text: `${chip.label} ${chip.value}`, class: "filterChip", onClick: () => this.handleFilterChipToggle(chip) }));
|
|
103
|
-
})), h("div", { key: '
|
|
103
|
+
})), h("div", { key: 'bda333aded786e38ec42084733a0f6be6c27bf7c', id: "additionalFilterChipsContainer" }, this.additionalFilterChips.map((chip, index) => (h("stencil-chip", { onOnDelete: () => this.handleDelete('additionalFilter', index), text: chip.label, class: "additionalFilterChip" })))), !this.hideKpiSection && (h("div", { key: '06151e31fc3cda55a639103c3597f3671f2d7ed5', class: "KPI", id: "kpiContainer" }, this.kpiValues.slice(0, this.maxKPIsDisplayed).map((kpi) => (h("div", { class: "kpiItem" }, h("span", { class: "kpiLabel" }, this.abbreviateLabel(kpi.label) || kpi.label), h("span", { class: "kpiValue" }, this.abbrNum(kpi.value, 1))))))))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "chip-section"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -114,7 +114,7 @@ export class DynamicContainerWithMenu {
|
|
|
114
114
|
this.udpChipClicked.emit(chipText);
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h("div", { key: '
|
|
117
|
+
return (h("div", { key: 'd564c0a886d6f6b02c1ab4611a17067057021ded', class: "container" }, h("div", { key: '7bce725d034a1ab47e4af5304c0bb1bc8672b3d6', class: "chips" }, console.log('Received data for chips via executeQwith', this.visibleChildren), this.visibleChildren && this.visibleChildren.map((child, index) => (h("stencil-chip", { color: "secondary", key: index, text: child.description, "show-delete": "false", externalToggleString: this.externalToggle })))), h("div", { key: '3edf0874a248dd35f6c7d2266aa24cc7b9b2fb67', class: "overflow" }, h("udp-pop-over", { key: 'a8bc2e954746aa89bdcceee623412a8d9d55abc4', isOpen: this.popoverOpen, anchorElement: document.getElementById('anchorElement') }, h("div", { key: '8bb01e6a8256754fcbc5c01d2d8179467016729a', class: "menu" }, this.menuChildren && this.menuChildren.map((child, index) => (h("stencil-chip", { key: index, text: child.label, "show-delete": "false" }, " "))))))));
|
|
118
118
|
}
|
|
119
119
|
static get is() { return "udp-dynamic-container-with-menu"; }
|
|
120
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as e,t,H as a,h as i}from"./index2.js";import{d as n}from"./custom-button2.js";import{d as o}from"./udp-selector2.js";import{d as s}from"./unity-typography2.js";const l=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.typeOptions=[{label:"Point",value:"Point"},{label:"LineString",value:"LineString"},{label:"Polygon",value:"Polygon"}],this.vectorLayerOptions=[],this.selectedLayer=null,this.selectedType=null,this.panelConfig=null,this.layerToAddOptions=[],this.drawingTypeOptions=null,this.handleSetSelectedLayer=e=>{this.selectedLayer=e},this.handleSetSelectedType=e=>{this.selectedType=e},this.getlayerOptions=()=>{var e,t;this.layerToAddOptions=(null===(e=this.panelConfig)||void 0===e?void 0:e.getLayerOptionsFromLayerValues)?null===(t=this.panelConfig)||void 0===t?void 0:t.getLayerOptionsFromLayerValues(this.vectorLayerOptions):this.vectorLayerOptions.map((e=>({label:e,value:e})))},this.getDrawingTypeOptions=()=>{var e,t,a;this.drawingTypeOptions=(null===(e=this.panelConfig)||void 0===e?void 0:e.getFeatureTypeOptionsFromLayerValue)&&null!==(a=null===(t=this.panelConfig)||void 0===t?void 0:t.getFeatureTypeOptionsFromLayerValue(this.selectedLayer))&&void 0!==a?a:this.typeOptions}}watchPanelConfig(){var e;(null===(e=this.panelConfig)||void 0===e?void 0:e.hideLayerSelector)?(this.selectedLayer=null,this.layerToAddOptions=[]):this.getlayerOptions()}updateDrawingTypeOptions(){this.getDrawingTypeOptions()}componentWillLoad(){this.getlayerOptions(),this.getDrawingTypeOptions()}render(){var e,t,a;return i("div",{key:"efb4a8828c1e91eab72304568bc8c0c59856b39e",class:"popoverContent"},!(null===(e=this.panelConfig)||void 0===e?void 0:e.hideLayerSelector)&&i("udp-selector",{key:"60cbfcab9935f8b921c74e3f3155f3a62eeede2d",id:"layer",options:this.layerToAddOptions,initialValue:this.selectedLayer,label:"Layer",onChange:e=>{this.handleSetSelectedLayer(e.detail)},large:!1}),i("udp-selector",{key:"f14269862675d3e2b479624ab500a1a43c234417",id:"type",options:null!==(t=this.drawingTypeOptions)&&void 0!==t?t:[],initialValue:this.selectedType,label:"Type",onChange:e=>{this.handleSetSelectedType(e.detail)},large:!1}),i("div",{key:"afe51c7dbb7b54de453ea6542af2b9ea5e643873",class:"formButton"},i("custom-button",{key:"814323cf711eef475819edbbec6f3a40e5eec628",label:i("unity-typography",{variant:"button"},"Draw feature"),onClick:()=>this.handleStartDrawingMapFeature(this.selectedLayer,this.selectedType),variant:"outline",disabled:null===this.selectedLayer&&!(null===(a=this.panelConfig)||void 0===a?void 0:a.hideLayerSelector)||null===this.selectedType})))}static get watchers(){return{panelConfig:[{watchPanelConfig:0}],selectedLayer:[{updateDrawingTypeOptions:0}],typeOptions:[{updateDrawingTypeOptions:0}]}}static get style(){return".popoverContent{display:flex;flex-direction:column;column-gap:var(--spacing-04);padding:var(--spacing-04);z-index:1}.featureDetailsPopOverContent{min-width:300px;z-index:1}.data-row{display:flex;column-gap:var(--spacing-04)}.data-section{display:flex;flex-direction:column;column-gap:var(--spacing-02)}.key{font-weight:bold;color:var(--accent-color-two)}.header{display:flex;background-color:var(--accent-color-three);color:var(--accent-color-two);padding-left:var(--spacing-02);margin-bottom:var(--spacing-04)}.closeButton{display:flex;align-items:center;justify-content:flex-end}.options{display:flex;justify-content:flex-end;column-gap:var(--spacing-04)}.mapType{margin-bottom:var(--spacing-02)}"}},[1,"add-map-feature-popup",{typeOptions:[16],vectorLayerOptions:[16],handleStartDrawingMapFeature:[8,"handle-start-drawing-map-feature"],selectedLayer:[8,"selected-layer"],selectedType:[8,"selected-type"],panelConfig:[16],layerToAddOptions:[32],drawingTypeOptions:[32]},void 0,{panelConfig:[{watchPanelConfig:0}],selectedLayer:[{updateDrawingTypeOptions:0}],typeOptions:[{updateDrawingTypeOptions:0}]}]);function r(){"undefined"!=typeof customElements&&["add-map-feature-popup","custom-button","udp-selector","unity-typography"].forEach((e=>{switch(e){case"add-map-feature-popup":customElements.get(t(e))||customElements.define(t(e),l);break;case"custom-button":customElements.get(t(e))||n();break;case"udp-selector":customElements.get(t(e))||o();break;case"unity-typography":customElements.get(t(e))||s()}}))}export{l as A,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as s,d as r,t as a}from"./index2.js";import{m as n}from"./makeApiCall.js";import{d as o}from"./udp-pop-over2.js";import{d as p}from"./unity-typography2.js";import{C as d}from"./configService.js";const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.addressSelected=i(this,"addressSelected",7),this.searchCleared=i(this,"searchCleared",7),this.placeholder="Search for an address...",this.disabled=!1,this.readonly=!1,this.language="en-US",this.countrySet="",this.searchMinChars=3,this.debounceDelay=300,this.loading=!1,this.error="",this.appendSuggestionsToBody=!1,this.required="",this.searchQuery="",this.suggestions=[],this.showSuggestions=!1,this.isLoading=!1,this.internalError="",this.handleSearchInput=t=>{this.searchQuery=t.target.value,this.showSuggestions=!0,this.internalError="",this.searchQuery.length<this.searchMinChars?this.suggestions=[]:(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>{this.fetchAddressSuggestions()}),this.debounceDelay))},this.handleFocus=()=>{this.suggestions.length>0&&(this.showSuggestions=!0)},this.clearSearch=()=>{this.searchQuery="",this.suggestions=[],this.showSuggestions=!1,this.internalError="",this.searchCleared.emit()},this.selectAddress=t=>{this.searchQuery=t.address.freeformAddress,this.showSuggestions=!1,this.suggestions=[],this.internalError="",this.addressSelected.emit(t)}}componentWillLoad(){"string"==typeof this.value&&(this.searchQuery=this.value)}handleValueChange(t){"string"==typeof t&&(this.searchQuery=t)}async setQuery(t){this.searchQuery=t||""}async clear(){this.clearSearch()}handleOutsideClick(t){t.composedPath().includes(this.el)||(this.showSuggestions=!1)}async fetchAddressSuggestions(){this.isLoading=!0,this.internalError="";try{const t=d.config.AZURE_MAP_SUBSCRIPTION_KEY;if(!t||0===t.trim().length)throw new Error("Azure Map Subscription Key is required.");const e=new URL("https://atlas.microsoft.com/search/address/json");e.searchParams.append("api-version","1.0"),e.searchParams.append("subscription-key",t),e.searchParams.append("query",this.searchQuery),e.searchParams.append("language",this.language),e.searchParams.append("typeahead","true"),this.countrySet&&e.searchParams.append("countrySet",this.countrySet);const i=await n("GET",e.toString());if(!i)throw new Error("Failed to search addresses");this.suggestions=i.results||[]}catch(t){this.internalError=t instanceof Error&&t.message.length>0?t.message:"Failed to search addresses",this.suggestions=[]}finally{this.isLoading=!1}}render(){const t=this.error||this.internalError,e=this.loading||this.isLoading,i=Boolean(t),a=this.showSuggestions&&this.suggestions.length>0,n=this.searchInputEl?`${Math.round(this.searchInputEl.getBoundingClientRect().width)}px`:void 0,o=this.appendSuggestionsToBody?{margin:"0",padding:"0",listStyle:"none"}:void 0,p=this.appendSuggestionsToBody?{padding:"var(--spacing-03, 8px) var(--spacing-04, 16px)",cursor:"pointer",borderBottom:"1px solid var(--gray-02, #f0f0f0)"}:void 0;return s(r,{key:"1571600d3d494d313f93582b4498ef887ec7a99b",class:{"udp-input":!0,"udp-input--error":i,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly,"address-search--suggestions-open":a}},s("div",{key:"b70fcc7b2e81cd61c0d90b8e47ccd816a2a68657",class:"bx--form-item map-input-search-field"},s("unity-typography",{key:"b0364f1191437caa0841d6b77da9cd01ee674ce9",variant:"caption-text"},s("label",{key:"282b8eee40e96b1f19390770b9ef829cb62438da",htmlFor:this.inputId+"-search",class:"bx--label"},this.label,this.required?"*":"")),s("div",{key:"c78d5e03afe8695ce3aa48134ea461857354b5fd",class:"search-container"},s("div",{key:"857cbac7e7f2e2945d4ea0726345767b25ff18db",class:"search-wrapper"},s("input",{key:"map-search-input",type:"text",id:this.inputId+"-search",class:"search-input bx--text-input",placeholder:this.placeholder,value:this.searchQuery,onInput:this.handleSearchInput,onFocus:this.handleFocus,disabled:this.disabled,readOnly:this.readonly,ref:t=>this.searchInputEl=t}),s("div",{key:"3761ae348cc1cdd1640ac5e980ff91bfe39e4e53",class:"search-actions"},s("button",{key:"76f224bf745d29e999a8f40207132cbf052527c7",type:"button",class:{"clear-button":!0,hidden:!this.searchQuery},onClick:this.clearSearch,"aria-label":"Clear search",disabled:this.disabled||this.readonly},"✕"),s("div",{key:"bbd142a58bad4bc190c1fff1d36fc318bd587980",class:{"loading-indicator":!0,hidden:!e}},s("div",{key:"37ea79440c9acff7086d7dbbd824dabb960abe66",class:"spinner"}))),s("udp-pop-over",{key:"ac0ef8d4a234e91cebdc6806a4996d3f83477ed1",anchorElement:this.searchInputEl,isOpen:a,appendToBody:this.appendSuggestionsToBody,popoverPlacement:"bottom-start",popoverWidth:n,popoverMaxHeight:"var(--address-search-suggestions-max-height)",overflow:"auto",handleOnClose:()=>this.showSuggestions=!1},s("ul",{key:"0228f5977d73bcdaa3b4104c453c946839fc27a7",class:"suggestions-list",style:o},this.suggestions.map((t=>s("li",{key:t.id,class:"suggestion-item",style:p,onClick:()=>this.selectAddress(t)},s("unity-typography",{variant:"body"},s("div",{class:"suggestion-content"},s("span",{class:"suggestion-address"},t.address.freeformAddress)))))))))),t?s("div",{class:"error-message"},s("unity-typography",{variant:"caption-text",color:"error"},t)):null))}get el(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}static get style(){return':host(.udp-input){display:block;box-sizing:border-box;position:relative}:host(.udp-input--full-width){width:100%}:host(.udp-input--error){--input-border-color:var(--input-underline-color-error)}:host(.udp-input--disabled){pointer-events:none;opacity:0.5;cursor:not-allowed}:host(.udp-input--required){position:relative}:host(.udp-input--readonly){--input-background:var(--gray-02)}:host(.udp-input--hidden){display:none}:host(.udp-input--checked){--input-accent-color:var(--primary-color)}:host(.udp-input--multi-select){--list-max-height:200px}:host(.udp-input) .bx--text-input:focus{outline:none;}:host(.udp-input) .bx--form-item{margin-bottom:var(--spacing-05)}:host(.udp-input) .bx--label{display:block;margin-bottom:var(--spacing-03);color:var(--text-main);font-size:var(--caption-text-font-size);font-weight:var(--caption-text-font-weight);line-height:var(--caption-text-line-height)}@media (max-width: var(--breakpoint-xs-max)){:host(.udp-input){margin-bottom:var(--spacing-04)}:host(.udp-input) .bx--form-item{margin-bottom:var(--spacing-04)}}@media (min-width: var(--breakpoint-sm-min)){:host(.udp-input){min-height:2.5rem;}}:host(.udp-input--size-small) .bx--text-input,:host(.udp-input--size-small) textarea,:host(.udp-input--size-small) input[type="text"],:host(.udp-input--size-small) input[type="number"],:host(.udp-input--size-small) input[type="email"],:host(.udp-input--size-small) input[type="password"],:host(.udp-input--size-small) input[type="tel"],:host(.udp-input--size-small) input[type="url"],:host(.udp-input--size-small) input[type="search"]{padding:var(--spacing-02);padding-bottom:6px;font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--size-normal) .bx--text-input,:host(.udp-input--size-normal) textarea,:host(.udp-input--size-normal) input[type="text"],:host(.udp-input--size-normal) input[type="number"],:host(.udp-input--size-normal) input[type="email"],:host(.udp-input--size-normal) input[type="password"],:host(.udp-input--size-normal) input[type="tel"],:host(.udp-input--size-normal) input[type="url"],:host(.udp-input--size-normal) input[type="search"]{padding:var(--spacing-03);padding-bottom:9px;font-size:var(--body-font-size)}:host(.udp-input--size-large) .bx--text-input,:host(.udp-input--size-large) textarea,:host(.udp-input--size-large) input[type="text"],:host(.udp-input--size-large) input[type="number"],:host(.udp-input--size-large) input[type="email"],:host(.udp-input--size-large) input[type="password"],:host(.udp-input--size-large) input[type="tel"],:host(.udp-input--size-large) input[type="url"],:host(.udp-input--size-large) input[type="search"]{padding:var(--spacing-04);padding-bottom:12px;font-size:var(--body-font-size)}:host(.udp-input--margin-none){margin:0}:host(.udp-input--margin-dense){margin:var(--spacing-02) 0}:host(.udp-input--margin-normal){margin:var(--spacing-03) 0}:host(.udp-input--margin-comfortable){margin:var(--spacing-04) 0}:host(.udp-input--size-small) .bx--label{margin-bottom:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--size-normal) .bx--label{margin-bottom:var(--spacing-03);font-size:var(--body-font-size)}:host(.udp-input--size-large) .bx--label{margin-bottom:var(--spacing-04);font-size:var(--body-font-size)}.bx--text-input,textarea,input[type="text"],input[type="number"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="search"]{display:inline-block;padding:var(--spacing-03);padding-bottom:9px;box-sizing:border-box;border:none;font-size:var(--body-font-size);background:var(--input-background);border-bottom:var(--underline-standard) solid var(--input-underline-color, var(--gray-08));width:100%;font-family:var(--font-family);transition:border-bottom-color 0.15s ease-in-out}.bx--text-input:focus,textarea:focus,input[type="text"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="password"]:focus,input[type="tel"]:focus,input[type="url"]:focus,input[type="search"]:focus{border-bottom-color:var(--input-underline-color-focus, var(--primary-color));border-bottom-width:2px}.bx--text-input--error,.bx--text-input:user-invalid,:host(.udp-input--error) .bx--text-input,:host(.udp-input--error) textarea,:host(.udp-input--error) input[type="text"],:host(.udp-input--error) input[type="number"],:host(.udp-input--error) input[type="email"],:host(.udp-input--error) input[type="password"],:host(.udp-input--error) input[type="tel"],:host(.udp-input--error) input[type="url"],:host(.udp-input--error) input[type="search"],input[type="text"]:user-invalid,input[type="number"]:user-invalid,input[type="email"]:user-invalid,input[type="password"]:user-invalid,input[type="tel"]:user-invalid,input[type="url"]:user-invalid,input[type="search"]:user-invalid{border-bottom-color:var(--input-underline-color-error, var(--error-color-main)) !important}:host(.udp-input--disabled) .bx--text-input,:host(.udp-input--disabled) textarea,:host(.udp-input--disabled) input[type="text"],:host(.udp-input--disabled) input[type="number"],:host(.udp-input--disabled) input[type="email"],:host(.udp-input--disabled) input[type="password"],:host(.udp-input--disabled) input[type="tel"],:host(.udp-input--disabled) input[type="url"],:host(.udp-input--disabled) input[type="search"]{border-bottom-color:var(--input-underline-color-disabled, var(--gray-08))}textarea.bx--text-input{resize:vertical;min-height:var(--spacing-08)}.bx--text-input::placeholder,textarea::placeholder,input[type="text"]::placeholder,input[type="number"]::placeholder,input[type="email"]::placeholder,input[type="password"]::placeholder,input[type="tel"]::placeholder,input[type="url"]::placeholder,input[type="search"]::placeholder{color:var(--placeholder-color, #999);opacity:1}:host(.udp-input),:host{display:block;width:100%;box-sizing:border-box}.bx--form-item{margin-bottom:var(--spacing-05)}.bx--label{display:block;margin-bottom:var(--spacing-03)}.error-message,.bx--form-requirement,:host(.udp-input--error) .error-message,:host(.udp-input--error) .bx--form-requirement{color:var(--error-color-main, #d32f2f) !important;margin-top:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem);--unity-typography-inherit-color:var(--error-color-main, #d32f2f)}.helper-text{color:var(--text-02, #525252);margin-top:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--disabled) .bx--text-input,:host(.udp-input--disabled) textarea,:host(.udp-input--disabled) input,:host(.udp-input--disabled){cursor:not-allowed;opacity:0.6}:host(.udp-input--readonly) .bx--text-input,:host(.udp-input--readonly) textarea,:host(.udp-input--readonly) input{background-color:var(--field-01, #f4f4f4);cursor:default}:host{--address-search-suggestions-max-height:300px;--address-search-dropdown-z-index:var(--z-index-dropdown, 1000)}:host(.address-search--suggestions-open){--address-search-dropdown-z-index:100000}.hidden{display:none !important}.search-container{position:relative;z-index:var(--address-search-dropdown-z-index)}.search-wrapper{position:relative;display:flex;align-items:center}.search-input{padding-right:var(--spacing-10, 4rem)}.search-actions{position:absolute;right:var(--spacing-03, 8px);display:flex;align-items:center;gap:var(--spacing-03, 8px)}.clear-button{background:none;border:none;color:var(--text-secondary, #666);cursor:pointer;font-size:var(--body1-font-size, 1rem);padding:var(--spacing-02, 4px);line-height:1;transition:color 0.2s}.clear-button:hover{color:var(--text-primary, #000)}.loading-indicator{display:flex;align-items:center}.spinner{width:var(--spacing-05, 1rem);height:var(--spacing-05, 1rem);border:var(--underline-standard, var(--spacing-01, 0.125rem)) solid var(--gray-02, #f3f3f3);border-top:var(--underline-standard, var(--spacing-01, 0.125rem)) solid var(--primary-color, #2196f3);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.suggestions-list{margin:0;padding:0;list-style:none}.suggestion-item{padding:var(--spacing-03) var(--spacing-04);cursor:pointer;border-bottom:1px solid var(--gray-02, #f0f0f0);transition:background-color 0.2s;min-width:0}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background-color:var(--gray-02, #f5f5f5)}.suggestion-content{display:flex;flex-direction:column;min-width:0}.suggestion-address{line-height:1.4;white-space:normal;overflow-wrap:anywhere;word-break:break-word}@media (max-width: 768px){:host{--address-search-suggestions-max-height:200px}.suggestion-item{padding:var(--spacing-02) var(--spacing-03)}}'}},[1,"address-search",{inputId:[1,"input-id"],placeholder:[1],disabled:[4],readonly:[4],language:[1],countrySet:[1,"country-set"],searchMinChars:[2,"search-min-chars"],debounceDelay:[2,"debounce-delay"],loading:[4],error:[1],value:[1],label:[1],appendSuggestionsToBody:[4,"append-suggestions-to-body"],required:[1],searchQuery:[32],suggestions:[32],showSuggestions:[32],isLoading:[32],internalError:[32],setQuery:[64],clear:[64]},[[4,"click","handleOutsideClick"]],{value:[{handleValueChange:0}]}]);function l(){"undefined"!=typeof customElements&&["address-search","udp-pop-over","unity-typography"].forEach((t=>{switch(t){case"address-search":customElements.get(a(t))||customElements.define(a(t),u);break;case"udp-pop-over":customElements.get(a(t))||o();break;case"unity-typography":customElements.get(a(t))||p()}}))}export{u as A,l as d}
|
|
1
|
+
import{p as t,H as e,c as i,h as s,d as r,t as a}from"./index2.js";import{m as n}from"./makeApiCall.js";import{d as o}from"./udp-pop-over2.js";import{d as p}from"./unity-typography2.js";import{C as d}from"./configService.js";const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.addressSelected=i(this,"addressSelected",7),this.searchCleared=i(this,"searchCleared",7),this.placeholder="Search for an address...",this.disabled=!1,this.readonly=!1,this.language="en-US",this.countrySet="",this.searchMinChars=3,this.debounceDelay=300,this.loading=!1,this.error="",this.appendSuggestionsToBody=!1,this.required="",this.searchQuery="",this.suggestions=[],this.showSuggestions=!1,this.isLoading=!1,this.internalError="",this.handleSearchInput=t=>{this.searchQuery=t.target.value,this.showSuggestions=!0,this.internalError="",this.searchQuery.length<this.searchMinChars?this.suggestions=[]:(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((()=>{this.fetchAddressSuggestions()}),this.debounceDelay))},this.handleFocus=()=>{this.suggestions.length>0&&(this.showSuggestions=!0)},this.clearSearch=()=>{this.searchQuery="",this.suggestions=[],this.showSuggestions=!1,this.internalError="",this.searchCleared.emit()},this.selectAddress=t=>{this.searchQuery=t.address.freeformAddress,this.showSuggestions=!1,this.suggestions=[],this.internalError="",this.addressSelected.emit(t)}}componentWillLoad(){"string"==typeof this.value&&(this.searchQuery=this.value)}handleValueChange(t){"string"==typeof t&&(this.searchQuery=t)}async setQuery(t){this.searchQuery=t||""}async clear(){this.clearSearch()}handleOutsideClick(t){t.composedPath().includes(this.el)||(this.showSuggestions=!1)}async fetchAddressSuggestions(){this.isLoading=!0,this.internalError="";try{const t=d.config.AZURE_MAP_SUBSCRIPTION_KEY;if(!t||0===t.trim().length)throw new Error("Azure Map Subscription Key is required.");const e=new URL("https://atlas.microsoft.com/search/address/json");e.searchParams.append("api-version","1.0"),e.searchParams.append("subscription-key",t),e.searchParams.append("query",this.searchQuery),e.searchParams.append("language",this.language),e.searchParams.append("typeahead","true"),this.countrySet&&e.searchParams.append("countrySet",this.countrySet);const i=await n("GET",e.toString());if(!i)throw new Error("Failed to search addresses");this.suggestions=i.results||[]}catch(t){this.internalError=t instanceof Error&&t.message.length>0?t.message:"Failed to search addresses",this.suggestions=[]}finally{this.isLoading=!1}}render(){const t=this.error||this.internalError,e=this.loading||this.isLoading,i=Boolean(t),a=this.showSuggestions&&this.suggestions.length>0,n=this.searchInputEl?`${Math.round(this.searchInputEl.getBoundingClientRect().width)}px`:void 0,o=this.appendSuggestionsToBody?{margin:"0",padding:"0",listStyle:"none"}:void 0,p=this.appendSuggestionsToBody?{padding:"var(--spacing-03, 8px) var(--spacing-04, 16px)",cursor:"pointer",borderBottom:"1px solid var(--gray-02, #f0f0f0)"}:void 0;return s(r,{key:"54c1b5ced8b1feb8f09a0106cbf5ed44e2b52358",class:{"udp-input":!0,"udp-input--error":i,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly,"address-search--suggestions-open":a}},s("div",{key:"71ab567177663be2428a7230a6c77adbc1bc779f",class:"bx--form-item map-input-search-field"},s("unity-typography",{key:"62d419bd641583b49601c6e1224e40b852edb56a",variant:"caption-text"},s("label",{key:"0444fe564d25002d536b113a54a29803e596d460",htmlFor:this.inputId+"-search",class:"bx--label"},this.label,this.required?"*":"")),s("div",{key:"3596d562635950ae34ffff929bda657003332b0d",class:"search-container"},s("div",{key:"598d0c22795a35930385d4cd158166830fc605ff",class:"search-wrapper"},s("input",{key:"map-search-input",type:"text",id:this.inputId+"-search",class:"search-input bx--text-input",placeholder:this.placeholder,value:this.searchQuery,onInput:this.handleSearchInput,onFocus:this.handleFocus,disabled:this.disabled,readOnly:this.readonly,ref:t=>this.searchInputEl=t}),s("div",{key:"9c7bbed5e77ef3402ea06cce661a1d0ff04662ca",class:"search-actions"},s("button",{key:"fe2b9e6c2657f614951b4d36f346e5f7277cf89b",type:"button",class:{"clear-button":!0,hidden:!this.searchQuery},onClick:this.clearSearch,"aria-label":"Clear search",disabled:this.disabled||this.readonly},"✕"),s("div",{key:"57f8996c3813a5ff4bf62d373522eacc2f33c469",class:{"loading-indicator":!0,hidden:!e}},s("div",{key:"c9209dd794c3cb393609cbb44a6f720200e95ce7",class:"spinner"}))),s("udp-pop-over",{key:"db70afb735bbdab669e0591d663e6d18f2a5dbbe",anchorElement:this.searchInputEl,isOpen:a,appendToBody:this.appendSuggestionsToBody,popoverPlacement:"bottom-start",popoverWidth:n,popoverMaxHeight:"var(--address-search-suggestions-max-height)",overflow:"auto",handleOnClose:()=>this.showSuggestions=!1},s("ul",{key:"23262f78c690fc311e94bc10b26a7fdcc6fd73ab",class:"suggestions-list",style:o},this.suggestions.map((t=>s("li",{key:t.id,class:"suggestion-item",style:p,onClick:()=>this.selectAddress(t)},s("unity-typography",{variant:"body"},s("div",{class:"suggestion-content"},s("span",{class:"suggestion-address"},t.address.freeformAddress)))))))))),t?s("div",{class:"error-message"},s("unity-typography",{variant:"caption-text",color:"error"},t)):null))}get el(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}static get style(){return':host(.udp-input){display:block;box-sizing:border-box;position:relative}:host(.udp-input--full-width){width:100%}:host(.udp-input--error){--input-border-color:var(--input-underline-color-error)}:host(.udp-input--disabled){pointer-events:none;opacity:0.5;cursor:not-allowed}:host(.udp-input--required){position:relative}:host(.udp-input--readonly){--input-background:var(--gray-02)}:host(.udp-input--hidden){display:none}:host(.udp-input--checked){--input-accent-color:var(--primary-color)}:host(.udp-input--multi-select){--list-max-height:200px}:host(.udp-input) .bx--text-input:focus{outline:none;}:host(.udp-input) .bx--form-item{margin-bottom:var(--spacing-05)}:host(.udp-input) .bx--label{display:block;margin-bottom:var(--spacing-03);color:var(--text-main);font-size:var(--caption-text-font-size);font-weight:var(--caption-text-font-weight);line-height:var(--caption-text-line-height)}@media (max-width: var(--breakpoint-xs-max)){:host(.udp-input){margin-bottom:var(--spacing-04)}:host(.udp-input) .bx--form-item{margin-bottom:var(--spacing-04)}}@media (min-width: var(--breakpoint-sm-min)){:host(.udp-input){min-height:2.5rem;}}:host(.udp-input--size-small) .bx--text-input,:host(.udp-input--size-small) textarea,:host(.udp-input--size-small) input[type="text"],:host(.udp-input--size-small) input[type="number"],:host(.udp-input--size-small) input[type="email"],:host(.udp-input--size-small) input[type="password"],:host(.udp-input--size-small) input[type="tel"],:host(.udp-input--size-small) input[type="url"],:host(.udp-input--size-small) input[type="search"]{padding:var(--spacing-02);padding-bottom:6px;font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--size-normal) .bx--text-input,:host(.udp-input--size-normal) textarea,:host(.udp-input--size-normal) input[type="text"],:host(.udp-input--size-normal) input[type="number"],:host(.udp-input--size-normal) input[type="email"],:host(.udp-input--size-normal) input[type="password"],:host(.udp-input--size-normal) input[type="tel"],:host(.udp-input--size-normal) input[type="url"],:host(.udp-input--size-normal) input[type="search"]{padding:var(--spacing-03);padding-bottom:9px;font-size:var(--body-font-size)}:host(.udp-input--size-large) .bx--text-input,:host(.udp-input--size-large) textarea,:host(.udp-input--size-large) input[type="text"],:host(.udp-input--size-large) input[type="number"],:host(.udp-input--size-large) input[type="email"],:host(.udp-input--size-large) input[type="password"],:host(.udp-input--size-large) input[type="tel"],:host(.udp-input--size-large) input[type="url"],:host(.udp-input--size-large) input[type="search"]{padding:var(--spacing-04);padding-bottom:12px;font-size:var(--body-font-size)}:host(.udp-input--margin-none){margin:0}:host(.udp-input--margin-dense){margin:var(--spacing-02) 0}:host(.udp-input--margin-normal){margin:var(--spacing-03) 0}:host(.udp-input--margin-comfortable){margin:var(--spacing-04) 0}:host(.udp-input--size-small) .bx--label{margin-bottom:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--size-normal) .bx--label{margin-bottom:var(--spacing-03);font-size:var(--body-font-size)}:host(.udp-input--size-large) .bx--label{margin-bottom:var(--spacing-04);font-size:var(--body-font-size)}.bx--text-input,textarea,input[type="text"],input[type="number"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="search"]{display:inline-block;padding:var(--spacing-03);padding-bottom:9px;box-sizing:border-box;border:none;font-size:var(--body-font-size);background:var(--input-background);border-bottom:var(--underline-standard) solid var(--input-underline-color, var(--gray-08));width:100%;font-family:var(--font-family);transition:border-bottom-color 0.15s ease-in-out}.bx--text-input:focus,textarea:focus,input[type="text"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="password"]:focus,input[type="tel"]:focus,input[type="url"]:focus,input[type="search"]:focus{border-bottom-color:var(--input-underline-color-focus, var(--primary-color));border-bottom-width:2px}.bx--text-input--error,.bx--text-input:user-invalid,:host(.udp-input--error) .bx--text-input,:host(.udp-input--error) textarea,:host(.udp-input--error) input[type="text"],:host(.udp-input--error) input[type="number"],:host(.udp-input--error) input[type="email"],:host(.udp-input--error) input[type="password"],:host(.udp-input--error) input[type="tel"],:host(.udp-input--error) input[type="url"],:host(.udp-input--error) input[type="search"],input[type="text"]:user-invalid,input[type="number"]:user-invalid,input[type="email"]:user-invalid,input[type="password"]:user-invalid,input[type="tel"]:user-invalid,input[type="url"]:user-invalid,input[type="search"]:user-invalid{border-bottom-color:var(--input-underline-color-error, var(--error-color-main)) !important}:host(.udp-input--disabled) .bx--text-input,:host(.udp-input--disabled) textarea,:host(.udp-input--disabled) input[type="text"],:host(.udp-input--disabled) input[type="number"],:host(.udp-input--disabled) input[type="email"],:host(.udp-input--disabled) input[type="password"],:host(.udp-input--disabled) input[type="tel"],:host(.udp-input--disabled) input[type="url"],:host(.udp-input--disabled) input[type="search"]{border-bottom-color:var(--input-underline-color-disabled, var(--gray-08))}textarea.bx--text-input{resize:vertical;min-height:var(--spacing-08)}.bx--text-input::placeholder,textarea::placeholder,input[type="text"]::placeholder,input[type="number"]::placeholder,input[type="email"]::placeholder,input[type="password"]::placeholder,input[type="tel"]::placeholder,input[type="url"]::placeholder,input[type="search"]::placeholder{color:var(--placeholder-color, #999);opacity:1}:host(.udp-input),:host{display:block;width:100%;box-sizing:border-box}.bx--form-item{margin-bottom:var(--spacing-05)}.bx--label{display:block;margin-bottom:var(--spacing-03)}.error-message,.bx--form-requirement,:host(.udp-input--error) .error-message,:host(.udp-input--error) .bx--form-requirement{color:var(--error-color-main, #d32f2f) !important;margin-top:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem);--unity-typography-inherit-color:var(--error-color-main, #d32f2f)}.helper-text{color:var(--text-02, #525252);margin-top:var(--spacing-02);font-size:var(--caption-font-size, 0.875rem)}:host(.udp-input--disabled) .bx--text-input,:host(.udp-input--disabled) textarea,:host(.udp-input--disabled) input,:host(.udp-input--disabled){cursor:not-allowed;opacity:0.6}:host(.udp-input--readonly) .bx--text-input,:host(.udp-input--readonly) textarea,:host(.udp-input--readonly) input{background-color:var(--field-01, #f4f4f4);cursor:default}:host{--address-search-suggestions-max-height:300px;--address-search-dropdown-z-index:var(--z-index-dropdown, 1000)}:host(.address-search--suggestions-open){--address-search-dropdown-z-index:100000}.hidden{display:none !important}.search-container{position:relative;z-index:var(--address-search-dropdown-z-index)}.search-wrapper{position:relative;display:flex;align-items:center}.search-input{padding-right:var(--spacing-10, 4rem)}.search-actions{position:absolute;right:var(--spacing-03, 8px);display:flex;align-items:center;gap:var(--spacing-03, 8px)}.clear-button{background:none;border:none;color:var(--text-secondary, #666);cursor:pointer;font-size:var(--body1-font-size, 1rem);padding:var(--spacing-02, 4px);line-height:1;transition:color 0.2s}.clear-button:hover{color:var(--text-primary, #000)}.loading-indicator{display:flex;align-items:center}.spinner{width:var(--spacing-05, 1rem);height:var(--spacing-05, 1rem);border:var(--underline-standard, var(--spacing-01, 0.125rem)) solid var(--gray-02, #f3f3f3);border-top:var(--underline-standard, var(--spacing-01, 0.125rem)) solid var(--primary-color, #2196f3);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.suggestions-list{margin:0;padding:0;list-style:none}.suggestion-item{padding:var(--spacing-03) var(--spacing-04);cursor:pointer;border-bottom:1px solid var(--gray-02, #f0f0f0);transition:background-color 0.2s;min-width:0}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background-color:var(--gray-02, #f5f5f5)}.suggestion-content{display:flex;flex-direction:column;min-width:0}.suggestion-address{line-height:1.4;white-space:normal;overflow-wrap:anywhere;word-break:break-word}@media (max-width: 768px){:host{--address-search-suggestions-max-height:200px}.suggestion-item{padding:var(--spacing-02) var(--spacing-03)}}'}},[1,"address-search",{inputId:[1,"input-id"],placeholder:[1],disabled:[4],readonly:[4],language:[1],countrySet:[1,"country-set"],searchMinChars:[2,"search-min-chars"],debounceDelay:[2,"debounce-delay"],loading:[4],error:[1],value:[1],label:[1],appendSuggestionsToBody:[4,"append-suggestions-to-body"],required:[1],searchQuery:[32],suggestions:[32],showSuggestions:[32],isLoading:[32],internalError:[32],setQuery:[64],clear:[64]},[[4,"click","handleOutsideClick"]],{value:[{handleValueChange:0}]}]);function l(){"undefined"!=typeof customElements&&["address-search","udp-pop-over","unity-typography"].forEach((t=>{switch(t){case"address-search":customElements.get(a(t))||customElements.define(a(t),u);break;case"udp-pop-over":customElements.get(a(t))||o();break;case"unity-typography":customElements.get(a(t))||p()}}))}export{u as A,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t,p as e,H as i,c as s,t as o}from"./index2.js";import{themeQuartz as a,ModuleRegistry as n,AllEnterpriseModule as l,LicenseManager as r,createGrid as d}from"ag-grid-enterprise-v33";import{w as h,i as c,r as u,s as p,u as m,p as g}from"./apiUtils.js";import{g as v,c as f}from"./configureUdpColumnMods.js";import{g as b}from"./tenantUtils.js";import{S as y,I as w,A as k}from"./status-renderer.js";import{isEqual as C}from"lodash-es";import{d as _}from"./ghost-render2.js";import{d as S}from"./grid-header2.js";import{d as x}from"./hint-panel2.js";import{d as N}from"./stencil-icon-button2.js";import{d as E}from"./udp-ambient-tool-tip2.js";import{d as j}from"./udp-avatar2.js";import{d as O}from"./udp-badge2.js";import{d as F}from"./udp-button2.js";import{d as A}from"./udp-dialog2.js";import{d as D}from"./udp-flexbox2.js";import{d as T}from"./udp-fluent-avatar2.js";import{d as R}from"./udp-fluent-badge2.js";import{d as G}from"./udp-fluent-button2.js";import{d as I}from"./udp-fluent-dialog2.js";import{d as B}from"./udp-fluent-icon2.js";import{d as J}from"./udp-fluent-icon-button2.js";import{d as P}from"./udp-fluent-menu2.js";import{d as M}from"./udp-fluent-switch2.js";import{d as V}from"./udp-fluent-text-input2.js";import{d as $}from"./udp-icon2.js";import{d as U}from"./udp-linear-loader2.js";import{d as H}from"./list-item.js";import{d as z}from"./udp-menu-item2.js";import{d as L}from"./udp-pop-over2.js";import{d as W}from"./udp-primary-action-header2.js";import{d as Y}from"./udp-search-input2.js";import{d as q}from"./udp-side-sheet2.js";import{d as K}from"./udp-spinner2.js";import{d as Q}from"./udp-text2.js";import{d as X}from"./udp-tooltip2.js";import{d as Z}from"./unity-typography2.js";let tt=null;function et(){return a.withParams({wrapperBorderRadius:0,wrapperBorder:!1,headerCellHoverBackgroundColor:"var(--udp-grid-column-header-bg-hover)",borderColor:"var(--divider-color)",accentColor:"var(--primary-color)",browserColorScheme:"light"},"light").withParams({wrapperBorderRadius:0,wrapperBorder:!1,headerCellHoverBackgroundColor:"var(--udp-grid-column-header-bg-hover)",borderColor:"var(--divider-color)",accentColor:"var(--primary-color)",browserColorScheme:"dark"},"dark")}function it(t){tt||(tt=et()),document.documentElement.setAttribute("data-ag-theme-mode",t)}function st(){return sessionStorage.getItem("user-id")}const ot=async t=>{(null===document||void 0===document?void 0:document.startViewTransition)?(document.viewTransition&&await document.viewTransition.finished.catch((()=>{})),document.startViewTransition(t)):t()};function at(t){const e=new Date(t),i=Math.floor((Date.now()-e.getTime())/1e3);if(i<60)return`${i} second${1!==i?"s":""} ago`;const s=Math.floor(i/60);if(s<60)return`${s} minute${1!==s?"s":""} ago`;const o=Math.floor(s/60);if(o<24)return`${o} hour${1!==o?"s":""} ago`;const a=Math.floor(o/24);return`${a} day${1!==a?"s":""} ago`}function nt(t){var e;return null===(e=t.gridViewGridViewGridConfiguration)||void 0===e?void 0:e.find((t=>1===t.gridViewGridConfigurationGridConfiguration.gridStateTypeId))}function lt(t){var e;return null===(e=t.gridViewGridViewGridConfiguration)||void 0===e?void 0:e.find((t=>4===t.gridViewGridConfigurationGridConfiguration.gridStateTypeId))}function rt(t){switch(t){case"primary":return"primary";case"ghost":return"subtle";default:return"secondary"}}const dt={agGridExport:class{constructor(t="export.csv"){this.fileName=t}init(t){this.gridApi=t}onAction(t){"agGridExport"===t&&this.gridApi.exportDataAsCsv({fileName:this.fileName})}},openSavedViews:class{constructor(){this.filteredViews=[],this.allViewData=[],this.activeViewId=null,this.activeViewState=null,this.loading=!1,this.isDirty=!1,this.viewDialogMode=null,this.hoveredViewId=null,this.loadingViewId=null,this.deleteConfirmView=null,this.editingView=null,this.dialogName="",this.dialogIsPublic=!1,this.dialogMode="create",this.baseColumnState=null,this.localRestoredState=null,this.localStorageDebounceId=null,this.baselineRecaptureId=null,this.initialLoad=!0,this.dirtyListenerTimeoutId=null,this.scheduleDirtyListeners=()=>{null!==this.dirtyListenerTimeoutId&&clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=setTimeout((()=>{this.dirtyListenerTimeoutId=null,this.addDirtyListeners()}),300)},this.addDirtyListeners=()=>{this.api.addEventListener("columnVisible",this.checkIfDirty),this.api.addEventListener("columnPinned",this.checkIfDirty),this.api.addEventListener("columnMoved",this.checkIfDirty),this.api.addEventListener("columnPivotChanged",this.checkIfDirty),this.api.addEventListener("columnRowGroupChanged",this.checkIfDirty),this.api.addEventListener("columnValueChanged",this.checkIfDirty),this.api.addEventListener("columnsReset",this.checkIfDirty),this.api.addEventListener("filterChanged",this.checkIfDirty),this.api.addEventListener("sortChanged",this.checkIfDirty)},this.removeDirtyListeners=()=>{this.api.removeEventListener("columnVisible",this.checkIfDirty),this.api.removeEventListener("columnPinned",this.checkIfDirty),this.api.removeEventListener("columnMoved",this.checkIfDirty),this.api.removeEventListener("columnPivotChanged",this.checkIfDirty),this.api.removeEventListener("columnRowGroupChanged",this.checkIfDirty),this.api.removeEventListener("columnValueChanged",this.checkIfDirty),this.api.removeEventListener("columnsReset",this.checkIfDirty),this.api.removeEventListener("filterChanged",this.checkIfDirty),this.api.removeEventListener("sortChanged",this.checkIfDirty)},this.onColumnsChanged=()=>{var t;if(!this.baseColumnState)return;const e=this.getPrimaryColIds(),i=t=>t.filter((t=>e.has(t.colId))).map((t=>t.colId)).join(",");i(null!==(t=this.api.getColumnState())&&void 0!==t?t:[])!==i(JSON.parse(this.baseColumnState))&&(this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.isDirty&&(this.isDirty=!1,this.refresh()))},this.getStorageKey=()=>{const t=b();return`saved-grid-state-${this.gridId}-${t}`},this.saveCurrentStateToLocalStorage=()=>{null!==this.localStorageDebounceId&&clearTimeout(this.localStorageDebounceId),this.localStorageDebounceId=setTimeout((()=>{if(this.localStorageDebounceId=null,!this.gridId)return;const t=this.getStorageKey(),e={date:(new Date).toISOString(),columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())};localStorage.setItem(t,JSON.stringify(e))}),500)},this.applyLocalRestoredState=()=>{if(this.localRestoredState){this.removeDirtyListeners(),this.api.setGridOption("loading",!0);try{const t=JSON.parse(this.localRestoredState.columnState);t&&this.api.applyColumnState({state:t,applyOrder:!0});const e=JSON.parse(this.localRestoredState.filterModel);this.api.setFilterModel(e)}catch(t){console.error("Failed to apply restored state",t)}this.localRestoredState=null,this.isDirty=!0,ot((()=>{this.api.setGridOption("loading",!1),this.refresh(),this.scheduleDirtyListeners(),this.saveCurrentStateToLocalStorage()}))}},this.getPrimaryColIds=()=>{var t;return new Set((null!==(t=this.api.getColumns())&&void 0!==t?t:[]).filter((t=>t.isPrimary())).map((t=>t.getColId())))},this.serializeUserColumnState=t=>{const e=this.getPrimaryColIds();return JSON.stringify(t.filter((t=>e.has(t.colId))))},this.checkIfDirty=()=>{var t,e;if(null!==this.baselineRecaptureId)return;let i;if(this.activeViewId&&this.activeViewState){const e=this.serializeUserColumnState(null!==(t=this.api.getColumnState())&&void 0!==t?t:[]),s=this.serializeUserColumnState(JSON.parse(this.activeViewState.columnState)),o=JSON.stringify(this.api.getFilterModel());i=e!==s||o!==this.activeViewState.filterModel}else{const t=this.api.getFilterModel(),s=Object.keys(null!=t?t:{}).length>0,o=this.serializeUserColumnState(null!==(e=this.api.getColumnState())&&void 0!==e?e:[]),a=null!==this.baseColumnState?this.serializeUserColumnState(JSON.parse(this.baseColumnState)):null;i=s||null!==a&&o!==a}i!==this.isDirty&&(this.isDirty=i,this.refresh()),this.saveCurrentStateToLocalStorage()},this.scheduleBaselineRecapture=()=>{null!==this.baselineRecaptureId&&clearTimeout(this.baselineRecaptureId),this.baselineRecaptureId=setTimeout((()=>{this.baselineRecaptureId=null,this.activeViewId||(this.baseColumnState=JSON.stringify(this.api.getColumnState())),this.isDirty&&(this.isDirty=!1,this.refresh())}),0)},this.fetchViews=async()=>{var t;this.loading=!0,this.refresh();const e=this.api.getGridOption("context");if(this.gridId=null!==(t=null==e?void 0:e.gridId)&&void 0!==t?t:"",!this.gridId)return console.warn("[SavedViews] No gridId provided in grid context — saved views will not work."),this.loading=!1,void this.refresh();const i=this.getStorageKey(),s=localStorage.getItem(i);if(s)try{this.localRestoredState=JSON.parse(s)}catch(t){console.warn("[SavedViews] Failed to parse local restored state",t)}this.allViewData=await h(st(),this.gridId),this.filterData(),this.initialLoad&&(this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.applyDefaultView()),this.loading=!1,this.refresh()},this.filterData=()=>{var t,e,i;const s=this.api.getGridOption("context");this.entityName=null!==(t=null==s?void 0:s.entityName)&&void 0!==t?t:"",this.filteredViews=this.entityName?(null!==(e=this.allViewData)&&void 0!==e?e:[]).filter((t=>t.domain===this.entityName)):null!==(i=this.allViewData)&&void 0!==i?i:[],this.activeViewId&&!this.filteredViews.some((t=>t.gridViewId===this.activeViewId))&&(this.activeViewId=null,this.activeViewState=null,this.isDirty=!1),this.refresh()},this.pendingReapplyFilter=null,this.removeReapplyFilterListener=()=>{this.pendingReapplyFilter&&(this.api.removeEventListener("rowDataUpdated",this.pendingReapplyFilter),this.pendingReapplyFilter=null)},this.applyDefaultView=()=>{const t=this.filteredViews.find((t=>t.isDefault));if(t&&(this.setActiveView(t),"clientSide"===this.api.getGridOption("rowModelType"))){const e=lt(t),i=this.api.getGridOption("rowData");if(e&&(!i||0===i.length)){const t=JSON.parse(e.gridViewGridConfigurationGridConfiguration.values);this.api.setGridOption("loading",!0);const i=()=>{const e=this.api.getGridOption("rowData");e&&0!==e.length&&(null!==this.dirtyListenerTimeoutId&&(clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=null),this.removeDirtyListeners(),this.api.setFilterModel(t),this.activeViewState={columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())},this.isDirty=!1,this.scheduleDirtyListeners(),this.removeReapplyFilterListener(),this.api.setGridOption("loading",!1),this.refresh())};this.pendingReapplyFilter=i,this.api.addEventListener("rowDataUpdated",i),null!==this.dirtyListenerTimeoutId&&(clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=null),this.removeDirtyListeners()}}this.initialLoad=!1},this.setActiveView=t=>{this.removeDirtyListeners();const e=nt(t),i=lt(t);e&&this.api.applyColumnState({state:JSON.parse(e.gridViewGridConfigurationGridConfiguration.values),applyOrder:!0});const s=i?JSON.parse(i.gridViewGridConfigurationGridConfiguration.values):null;this.api.setFilterModel(s),this.activeViewId=t.gridViewId,this.activeViewState={columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())},this.isDirty=!1,this.saveCurrentStateToLocalStorage(),ot((()=>{this.refresh(),this.scheduleDirtyListeners()}))},this.clearView=()=>{this.removeDirtyListeners(),this.baseColumnState?this.api.applyColumnState({state:JSON.parse(this.baseColumnState),applyOrder:!0}):this.api.resetColumnState(),this.api.setFilterModel(null),this.activeViewId=null,this.activeViewState=null,this.isDirty=!1,this.saveCurrentStateToLocalStorage(),ot((()=>{this.refresh(),this.scheduleDirtyListeners()}))},this.deleteView=async t=>{this.loading=!0,this.refresh();const e=this.activeViewId===t.gridViewId;try{await c(t.gridViewId,(()=>null)),e&&this.clearView(),await this.fetchViews()}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}},this.handleDirtyReset=()=>{const t=this.activeView;t&&(this.isDirty=!1,this.setActiveView(t))},this.handleUpdateCurrentView=async()=>{var t;const e=this.activeView;if(!e)return;this.loading=!0,this.refresh();const i=this.api.getGridOption("context"),s=nt(e),o=lt(e),a=[{gridConfigurationId:null==s?void 0:s.gridViewGridConfigurationGridConfiguration.gridConfigurationId,gridStateTypeId:1,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getColumnState())},{gridConfigurationId:null==o?void 0:o.gridViewGridConfigurationGridConfiguration.gridConfigurationId,gridStateTypeId:4,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getFilterModel())}];try{await u(e.gridViewId,st(),null==i?void 0:i.gridId,v(),e.name,a,e.isDefault?1:0,null==i?void 0:i.entityName,null!==(t=e.gridViewVisibilityTypeId)&&void 0!==t?t:1,(()=>null)),await this.fetchViews();const s=this.filteredViews.find((t=>t.gridViewId===e.gridViewId));s&&this.setActiveView(s)}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}},this.handleSaveAsNew=()=>{this.dialogName="",this.dialogIsPublic=!1,this.dialogMode="create",this.viewDialogMode="create",this.refresh()},this.handleEditRequest=t=>{this.dialogName=t.name,this.dialogIsPublic=2===t.gridViewVisibilityTypeId,this.dialogMode="edit",this.editingView=t,this.viewDialogMode="edit",this.refresh()},this.handleDialogNameInput=t=>{this.dialogName=t.detail,this.refresh()},this.handleDialogIsPublicChange=t=>{this.dialogIsPublic=t.detail,this.refresh()},this.handleDialogConfirm=async()=>{const t=this.dialogName.trim();if(!t)return;const e=this.dialogIsPublic?2:1,i=this.editingView;"edit"===this.viewDialogMode&&i?await this.renameView(i,t,e):await this.postView(t,e),this.viewDialogMode=null,this.refresh()},this.handleDialogCancel=()=>{this.viewDialogMode=null,this.refresh()},this.handleDeleteRequest=t=>{this.deleteConfirmView=t,this.refresh()},this.handleDeleteConfirm=async()=>{const t=this.deleteConfirmView;t&&(this.deleteConfirmView=null,await this.deleteView(t))},this.handleDeleteCancel=()=>{this.deleteConfirmView=null,this.refresh()}}get activeView(){var t;return null!==(t=this.filteredViews.find((t=>t.gridViewId===this.activeViewId)))&&void 0!==t?t:null}async init(t,e){var i,s,o;this.api=t,this.refresh=e;const a=this.api.getGridOption("context");if(this.gridId=null!==(i=null==a?void 0:a.gridId)&&void 0!==i?i:"",!this.gridId)return void console.warn("[SavedViews] No gridId provided in grid context — saved views will not work.");const n=this.getStorageKey(),l=localStorage.getItem(n);if(l)try{this.localRestoredState=JSON.parse(l)}catch(t){console.warn("[SavedViews] Failed to parse local restored state",t)}this.loading=!0,this.refresh();const r=h(st(),this.gridId);0===(null!==(o=null===(s=this.api.getColumnDefs())||void 0===s?void 0:s.length)&&void 0!==o?o:0)&&await new Promise((t=>{const e=()=>{var i,s;(null!==(s=null===(i=this.api.getColumnDefs())||void 0===i?void 0:i.length)&&void 0!==s?s:0)>0&&(this.api.removeEventListener("gridColumnsChanged",e),t())};this.api.addEventListener("gridColumnsChanged",e)})),this.allViewData=await r,this.filterData(),this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.applyDefaultView(),this.initialLoad=!1,this.loading=!1,this.refresh(),this.api.addEventListener("gridColumnsChanged",this.onColumnsChanged),this.scheduleDirtyListeners(),this.pendingReapplyFilter||this.addDirtyListeners(),this.scheduleBaselineRecapture()}destroy(){null!==this.baselineRecaptureId&&clearTimeout(this.baselineRecaptureId),this.removeDirtyListeners(),this.removeReapplyFilterListener(),this.api.removeEventListener("gridColumnsChanged",this.onColumnsChanged)}onAction(t){}async postView(t,e){this.loading=!0,this.refresh();const i=this.api.getGridOption("context"),s=[{gridStateTypeId:1,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getColumnState())},{gridStateTypeId:4,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getFilterModel())}];try{await p(st(),null==i?void 0:i.gridId,v(),t,null==i?void 0:i.entityName,s,e,0,(()=>null)),await this.fetchViews();const o=this.filteredViews.find((e=>e.name===t));o&&this.setActiveView(o)}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}}async renameView(t,e,i){this.loading=!0,this.refresh();const s=this.api.getGridOption("context");try{await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),e,t.isDefault?1:0,null==s?void 0:s.entityName,i,(()=>null)),await this.fetchViews()}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}}async setViewAsDefault(t){var e,i;this.loadingViewId=t.gridViewId,this.refresh();const s=this.api.getGridOption("context"),o=t.isDefault;try{if(await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),t.name,o?0:1,null==s?void 0:s.entityName,null!==(e=t.gridViewVisibilityTypeId)&&void 0!==e?e:1,(()=>null)),!o){const t=this.filteredViews.find((t=>t.isDefault));t&&await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),t.name,0,null==s?void 0:s.entityName,null!==(i=t.gridViewVisibilityTypeId)&&void 0!==i?i:1,(()=>null)).catch((t=>console.log(t)))}await this.fetchViews()}catch(t){console.log(t)}finally{this.loadingViewId=null,this.refresh()}}render(){var e;const i=this.activeView,s=!!i,o=s?this.isDirty?`${i.name} *`:i.name:this.isDirty?"All Records *":"All Records",a=this.filteredViews,n=[...this.localRestoredState?[{id:"restore-local-state",text:`Restore state from ${at(this.localRestoredState.date)}`,startIconName:"clock",sectionNumber:1,onClick:()=>this.applyLocalRestoredState()}]:[],...a.map((t=>({id:`view-${t.gridViewId}`,text:t.name,sectionNumber:2,onClick:()=>{this.setActiveView(t)},onMouseEnter:()=>{this.hoveredViewId=t.gridViewId,this.refresh()},onMouseLeave:()=>{this.hoveredViewId=null,this.refresh()}}))),...this.isDirty&&s?[{id:"update-view",startIconName:"save",text:"Update current view",sectionNumber:3,onClick:()=>this.handleUpdateCurrentView()}]:[],{id:"save-view",startIconName:"add",text:"Create new view",sectionNumber:3,onClick:()=>this.handleSaveAsNew()},{id:"clear-view",text:"Clear active view",startIconName:"dismiss",disabled:!s,sectionNumber:3,onClick:()=>this.clearView()}];return t("div",{class:"view-selector-wrapper"},t("udp-fluent-menu",{class:s?"has-active-view":void 0,label:o,items:n,style:{"--udp-menu-min-width":"200px"}},t("span",{slot:"clear-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Clear Active View"),t("span",{slot:"save-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Create View"),t("span",{slot:"update-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Update Current View"),t("span",{slot:"restore-local-state-body",style:{fontStyle:"italic",color:"var(--colorNeutralForeground2)"}},"Restore unsaved state "+(this.localRestoredState?`(${at(this.localRestoredState.date)})`:"")),a.map((e=>t("div",{key:`start-${e.gridViewId}`,slot:`view-${e.gridViewId}-start`,class:"view-slot-action",style:{opacity:e.isDefault||this.hoveredViewId===e.gridViewId?"1":"0",transition:"opacity 100ms ease"},onClick:t=>t.stopPropagation()},t("udp-fluent-icon-button",{iconName:"star",iconVariant:e.isDefault?"filled":"regular",size:"small",appearance:"transparent",loading:this.loadingViewId===e.gridViewId,onClick:()=>{this.setViewAsDefault(e)}})))),a.map((e=>t("div",{key:`end-${e.gridViewId}`,slot:`view-${e.gridViewId}-end`,class:"view-slot-action",style:{opacity:this.hoveredViewId===e.gridViewId?"1":"0",transition:"opacity 100ms ease"},onClick:t=>t.stopPropagation()},e.userId===st()&&t("udp-fluent-icon-button",{iconName:"edit",size:"small",appearance:"transparent",onClick:()=>this.handleEditRequest(e)}),e.userId===st()&&t("udp-fluent-icon-button",{iconName:"delete",size:"small",appearance:"transparent",onClick:()=>this.handleDeleteRequest(e)}))))),(s||this.isDirty)&&t("div",{class:"view-dirty-actions"},t("udp-tooltip",{content:s&&this.isDirty?"Reset to saved view":s?"Clear active view":"Reset to default"},t("udp-fluent-icon-button",{iconName:this.isDirty?"arrow-reset":"dismiss",appearance:"subtle",disabled:this.loading,onClick:s&&this.isDirty?this.handleDirtyReset:this.clearView,shape:"rounded"})),this.isDirty&&(s?t("udp-fluent-menu",{buttonType:"icon",startIconName:"save",shape:"rounded",appearance:"subtle",disabled:this.loading,items:[{text:"Update Current View",startIconName:"save",onClick:()=>{this.handleUpdateCurrentView()}},{text:"Create View",startIconName:"add",onClick:()=>this.handleSaveAsNew()}]}):t("udp-tooltip",{content:"Create View"},t("udp-fluent-icon-button",{iconName:"save",shape:"rounded",appearance:"subtle",disabled:this.loading,onClick:this.handleSaveAsNew})))),t("udp-fluent-dialog",{open:!!this.deleteConfirmView,dialogTitle:"Delete View",onDialogClose:this.handleDeleteCancel},t("udp-fluent-text",null,'Are you sure you want to delete "',null===(e=this.deleteConfirmView)||void 0===e?void 0:e.name,'"?'),t("udp-fluent-button",{slot:"action",appearance:"subtle",onClick:this.handleDeleteCancel},"Cancel"),t("udp-fluent-button",{slot:"action",appearance:"primary",loading:this.loading,onClick:()=>{this.handleDeleteConfirm()}},"Delete")),t("udp-fluent-dialog",{open:!!this.viewDialogMode,dialogTitle:"edit"===this.dialogMode?"Edit View":"Save View",onDialogClose:this.handleDialogCancel},t("udp-fluent-text-input",{value:this.dialogName,label:"Name",onValueChanged:this.handleDialogNameInput,onKeyDown:t=>{"Enter"===t.key&&this.dialogName.trim()&&(t.preventDefault(),this.handleDialogConfirm())}}),t("udp-fluent-switch",{checked:this.dialogIsPublic,label:"Public",onValueChanged:this.handleDialogIsPublicChange}),t("udp-fluent-button",{slot:"action",appearance:"subtle",onClick:this.handleDialogCancel},"Cancel"),t("udp-fluent-button",{slot:"action",appearance:"primary",disabled:!this.dialogName.trim(),loading:this.loading,onClick:()=>{this.handleDialogConfirm()}},"edit"===this.dialogMode?"Update":"Save")))}},agGridSizeColumnsToFit:class{init(t){this.gridApi=t}onAction(t){"agGridSizeColumnsToFit"===t&&this.gridApi.sizeColumnsToFit()}},agGridAutoSizeColumns:class{init(t){this.gridApi=t}onAction(t){"agGridAutoSizeColumns"===t&&this.gridApi.autoSizeAllColumns()}},bulkActions:class{constructor(){this.bulkActions=[],this.selectedRowCount=0,this.fetchedData=!1,this.serverActionData=[],this.onRowSelectionChanged=()=>{var t;ot((()=>{const t=this.api.getSelectedRows();this.selectedRows=t,this.selectedRowCount=t.length,this.refresh()})),(!this.fetchedData&&this.gridId||this.gridId&&(null===(t=this.api.getGridOption("context"))||void 0===t?void 0:t.gridId)!==this.gridId)&&this.fetchBulkActions()},this.setBulkActions=t=>{this.serverActionData=t;const e=t.map((t=>({text:t.name,onClick:()=>this.executeActionProviderAction(t.actionId)}))),i=this.localFunctions.map((t=>({text:t.label,startIconName:t.startIconName,buttonIntent:t.buttonIntent,loading:t.loading,onClick:()=>this.executeLocalFunction(t.label)})));this.bulkActions=[...e,...i],this.fetchedData=!0,this.refresh()},this.executeLocalFunction=t=>{const e=this.localFunctions.find((e=>e.label===t));e&&e.callback(this.selectedRows),this.refresh()},this.executeActionProviderAction=t=>{this.actionProviderCallback&&this.actionProviderCallback(t,this.selectedRows),this.refresh()},this.clearSelection=()=>{this.api.deselectAll()}}init(t,e,i){var s,o;this.api=t,this.refresh=e,this.actionProviderCallback=null==i?void 0:i.actionProviderCallback,this.localFunctions=null!==(s=null==i?void 0:i.localFunctions)&&void 0!==s?s:[];const a=this.api.getGridOption("rowModelType");this.api.setGridOption("rowSelection","clientSide"===a?{mode:"multiRow",enableClickSelection:!0}:{mode:"multiRow",enableClickSelection:!0,headerCheckbox:!1}),this.gridId=null===(o=this.api.getGridOption("context"))||void 0===o?void 0:o.gridId,this.gridId?this.fetchBulkActions():this.setBulkActions([]),this.api.addEventListener("selectionChanged",this.onRowSelectionChanged)}update(t){var e,i;this.localFunctions=null!==(e=null==t?void 0:t.localFunctions)&&void 0!==e?e:[],this.actionProviderCallback=null!==(i=null==t?void 0:t.actionProviderCallback)&&void 0!==i?i:this.actionProviderCallback,this.setBulkActions(this.serverActionData)}onAction(t){"executeBulkAction"===t&&this.refresh()}async fetchBulkActions(){var t;try{this.gridId=null===(t=this.api.getGridOption("context"))||void 0===t?void 0:t.gridId,await g(this.gridId,!1,[],this.setBulkActions)}catch(t){console.error(t)}}isActive(){return this.selectedRowCount>0}render(){return t("div",{class:"bulk-actions-bar"},t("udp-fluent-icon-button",{iconName:"dismiss",appearance:"subtle",shape:"circular",ariaLabel:"Clear selection",onClick:this.clearSelection,style:{animationDelay:"10ms"}}),t("udp-text",{variant:"body1",style:{animationDelay:"20ms"}},this.selectedRowCount," Selected"),this.bulkActions.length>0&&t("div",{class:"bulk-actions-divider",style:{animationDelay:"20ms"}}),this.bulkActions.map((e=>t("udp-fluent-button",{appearance:rt(e.buttonIntent),class:"danger"===e.buttonIntent?"bulk-action-danger":void 0,startIconName:e.startIconName,onClick:e.onClick,style:{animationDelay:"20ms"},loading:e.loading},e.text))))}},agGridResetColumns:class{init(t){this.gridApi=t}onAction(t){"agGridResetColumns"===t&&this.gridApi.resetColumnState()}},advancedSearch:class{init(t,e,i){this.onOpenCallback=null==i?void 0:i.callback}onAction(t){var e;"advancedSearch"===t&&(null===(e=this.onOpenCallback)||void 0===e||e.call(this))}},agGridHideShowColumns:class{init(t){this.gridApi=t}onAction(t){"agGridHideShowColumns"===t&&this.gridApi.showColumnChooser()}},udpExport:class{init(t,e,i){this.onOpenCallback=null==i?void 0:i.callback,this.api=t}onAction(t){var e;if("udpExport"===t){const t=this.api.getGridOption("context");null===(e=this.onOpenCallback)||void 0===e||e.call(this,null==t?void 0:t.searchObject,null==t?void 0:t.entityName)}}},quickFilter:class{constructor(){this.searchValue="",this.debounce=0,this.applyFilter=t=>{var e;this.api.setGridOption("quickFilterText",t),null===(e=this.callback)||void 0===e||e.call(this,t),this.refresh()},this.handleSearch=t=>{this.searchValue=t.detail,clearTimeout(this.debounceTimer),this.debounce>0?this.debounceTimer=setTimeout((()=>this.applyFilter(this.searchValue)),this.debounce):this.applyFilter(this.searchValue)}}init(t,e,i){var s;this.api=t,this.refresh=e,this.callback=null==i?void 0:i.callback,this.debounce=null!==(s=null==i?void 0:i.debounce)&&void 0!==s?s:0}update(t){var e;this.callback=null==t?void 0:t.callback,this.debounce=null!==(e=null==t?void 0:t.debounce)&&void 0!==e?e:0}destroy(){clearTimeout(this.debounceTimer),this.api.setGridOption("quickFilterText","")}render(){return t("div",{style:{width:"200px"}},t("udp-search-input",{value:this.searchValue,placeholder:"Search",onValueChanged:this.handleSearch,includeErrorPadding:!1,autocomplete:"off"}))}},agGridRefreshData:class{constructor(){this.loading=!1,this.handleStoreRefreshed=()=>{var t;this.loading=!1,this.refresh(),null===(t=this.onRefreshComplete)||void 0===t||t.call(this)}}init(t,e,i){this.api=t,this.refresh=e,this.onRefreshStart=null==i?void 0:i.onRefreshStart,this.onRefreshComplete=null==i?void 0:i.onRefreshComplete,this.api.addEventListener("storeRefreshed",this.handleStoreRefreshed),this.api.addEventListener("rowDataUpdated",this.handleStoreRefreshed)}update(t){this.onRefreshStart=null==t?void 0:t.onRefreshStart,this.onRefreshComplete=null==t?void 0:t.onRefreshComplete}destroy(){this.api.removeEventListener("storeRefreshed",this.handleStoreRefreshed),this.api.removeEventListener("rowDataUpdated",this.handleStoreRefreshed)}isRefreshing(){return this.loading}onAction(t){var e;"agGridRefreshData"===t&&(this.loading=!0,this.refresh(),null===(e=this.onRefreshStart)||void 0===e||e.call(this),"serverSide"===this.api.getGridOption("rowModelType")&&this.api.refreshServerSide())}},agGridExpandCollapseAll:class{constructor(){this.expanded=!1}init(t,e){this.api=t,this.refresh=e}isExpanded(){return this.expanded}onAction(t){"agGridExpandCollapseAll"===t&&(this.expanded?this.api.collapseAll():this.api.expandAll(),this.expanded=!this.expanded,this.refresh())}}};function ht(t,e){const i=document.createElement("div");i.style.cssText="display: flex; flex-direction: column; justify-content: center; line-height: 1; gap: 2px;";const s=document.createElement("span");if(s.textContent=null!=t?t:"-",s.style.cssText="display: block;",i.appendChild(s),e){const t=document.createElement("span");t.textContent=e,t.style.cssText="display: block; font-size: 0.9em; opacity: 0.65;",i.appendChild(t)}return i}class ct{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; align-items: center; gap: 8px;";const s=document.createElement("udp-fluent-avatar");t.getSrc&&(s.src=t.getSrc(t)),t.getIconName&&(s.iconName=t.getIconName(t),t.iconVariant&&(s.iconVariant=t.iconVariant)),t.getName&&(s.name=t.getName(t)),t.getInitials&&(s.initials=t.getInitials(t)),s.size=null!==(e=t.size)&&void 0!==e?e:28,t.shape&&(s.shape=t.shape),t.getColor?s.color=t.getColor(t):t.color&&(s.color=t.color);const o=`${null!==(i=t.size)&&void 0!==i?i:28}px`;if(s.style.cssText=`align-self: center; flex-shrink: 0; width: ${o}; height: ${o};`,this.eGui.appendChild(s),t.getValues){const e=t.getValues(t);e&&this.eGui.appendChild(ht(e.title,e.subtitle))}}getGui(){return this.eGui}refresh(){return!1}}class ut{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; width: 100%; align-items: center; overflow: hidden;";const s=t.getSrc(t),o=document.createElement("udp-fluent-image");t.fit&&(o.fit=t.fit),t.shape&&(o.shape=t.shape),o.style.cssText="display: block; height: 100%; width: 100%; overflow: hidden;";const a=document.createElement("img");a.src=s,a.alt=null!==(e=t.alt)&&void 0!==e?e:"",a.style.cssText=`height: 100%; width: 100%; max-height: 100%; max-width: 100%; object-fit: ${null!==(i=t.fit)&&void 0!==i?i:"contain"}; display: block;`,o.appendChild(a),this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}class pt{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; align-items: center;";const s=t.getHref?t.getHref(t):null!==(e=t.href)&&void 0!==e?e:"",o=document.createElement("udp-fluent-link");o.href=s,o.target=null!==(i=t.target)&&void 0!==i?i:"_self",o.textContent=t.value,this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}class mt{init(t){this.node=t.node,this.eGui=document.createElement("div"),this.eGui.setAttribute("style","display: flex; align-items: center; height: 100%;"),this.eValueContainer=document.createElement("span"),this.eValueContainer.setAttribute("class","eValueContainer"),this.eGui.appendChild(this.eValueContainer),this.renderContent(t)}getGui(){return this.eGui}refresh(t){return!(!this.eValueContainer||!this.node||(this.renderContent(t),0))}renderContent(t){this.eValueContainer.innerHTML="";let e=null;if(this.node.group&&(null==t?void 0:t.getHeaderValues)?e=t.getHeaderValues(t):!this.node.group&&(null==t?void 0:t.getValues)&&(e=t.getValues(t)),!e)return;const i=document.createElement("div");i.className="custom-group-column",i.appendChild(ht(e.title,e.subtitle)),this.eValueContainer.appendChild(i)}destroy(){}}const gt=t=>{const e=t.value;if(null==e)return"";const i=new Date(e);return i?`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")} ${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`:""},vt=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.gridReady=s(this,"gridReady",7),this.gridFunctions=[],this.refreshKey=0,this.gridFunctionInstances=[],this.updateGridHeight=()=>{if(this.gridEl&&this.gridContainerEl.clientWidth>0){const t=this.gridEl.getBoundingClientRect(),e=window.innerHeight-t.top,i=10;this.gridEl.style.height=(e-i>400?e-i:400)+"px"}},this.scheduleHeightUpdate=()=>{clearTimeout(this.resizeDebounce),this.resizeDebounce=setTimeout(this.updateGridHeight,100)},this.attachAutoHeight=()=>{this.resizeObserver||(this.updateGridHeight(),this.resizeObserver=new ResizeObserver(this.scheduleHeightUpdate),this.resizeObserver.observe(this.gridContainerEl),window.addEventListener("resize",this.scheduleHeightUpdate))},this.detachAutoHeight=()=>{var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=void 0,window.removeEventListener("resize",this.scheduleHeightUpdate),clearTimeout(this.resizeDebounce)},this.refreshGridFunctions=()=>{this.refreshKey++},this.themeChangedHandler=t=>{it(t.detail.mode)},this.onGridReady=async t=>{this.gridApi=t.api,this.updateGridContextValues(),this.columnDefs&&this.setColumnDefs();const e=[];this.gridFunctionInstances=this.gridFunctions.map((t=>{const i=dt[t.name];if(!i)return null;const s=new i,o=s.init(this.gridApi,this.refreshGridFunctions,t.params);return o&&e.push(o),s})).filter((t=>!!t)),await Promise.all(e),this.gridApiCallback&&this.gridApiCallback({refreshServerSide:()=>this.gridApi.refreshServerSide(),applyTransaction:t=>this.gridApi.applyTransaction(t),ensureIndexVisible:(t,e)=>this.gridApi.ensureIndexVisible(t,e),getSelectedRows:()=>this.gridApi.getSelectedRows(),getSelectedNodes:()=>this.gridApi.getSelectedNodes(),getSearchObject:()=>this.gridApi.getGridOption("context").searchObject,getEntityName:()=>this.gridApi.getGridOption("context").entityName,getRowCount:()=>this.gridApi.getGridOption("context").rowCount,getFilterModel:()=>this.gridApi.getFilterModel(),setFilterModel:t=>this.gridApi.setFilterModel(t),onFilterChanged:()=>this.gridApi.onFilterChanged(),expandAll:()=>this.gridApi.expandAll(),collapseAll:()=>this.gridApi.collapseAll(),toggleLoadingOverlay:t=>this.gridApi.setGridOption("loading",t),refreshCells:()=>this.gridApi.refreshCells(),refreshClientSideRowModel:t=>this.gridApi.refreshClientSideRowModel(t),selectAll:(t,e)=>this.gridApi.selectAll(t,e),deselectAll:(t,e)=>this.gridApi.deselectAll(t,e),getServerSideSelectionState:()=>this.gridApi.getServerSideSelectionState(),setServerSideSelectionState:t=>this.gridApi.setServerSideSelectionState(t),forEachNode:t=>this.gridApi.forEachNode(t),forEachNodeAfterFilterAndSort:t=>this.gridApi.forEachNodeAfterFilterAndSort(t),stopEditing:t=>this.gridApi.stopEditing(t),getFocusedCell:()=>this.gridApi.getFocusedCell()}),this.gridReady.emit(this.gridApi)},this.onHeaderAction=t=>{this.gridFunctionInstances.forEach((e=>{var i;return null===(i=e.onAction)||void 0===i?void 0:i.call(e,t.detail.name,t.detail.payload)}))},this.updateGridContextValues=()=>{this.gridApi.setGridOption("context",Object.assign(Object.assign({},this.gridApi.getGridOption("context")),{entityName:this.entityName,gridId:this.gridId}))}}componentWillLoad(){n.registerModules([l]),it("light"),r.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-080613}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Univerus_Software_Inc}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{MAIS_eRec}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{MAIS_eRec}_need_to_be_licensed___{MAIS_eRec}_has_not_been_granted_a_Deployment_License_Add-on___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{28_June_2026}____[v3]_[01]_MTc4MjYwMTIwMDAwMA==5c7d1487ecb13b28e75415d34b7cf694")}componentDidLoad(){var t,e,i,s;const o=Object.assign(Object.assign({tooltipShowMode:"whenTruncated",tooltipShowDelay:500},this.gridOptions),{columnTypes:{booleanChip:{cellRenderer:"iconRenderer",cellRendererParams:{iconMappingConfig:{true:{iconName:"checkMark24",color:"success"},false:{iconName:"close24",color:"error"}}}}},dataTypeDefinitions:{dateTimeString:{baseDataType:"dateTimeString",extendsDataType:"dateTimeString",valueFormatter:gt},boolean:{baseDataType:"boolean",extendsDataType:"boolean",columnTypes:"booleanChip"}},gridId:this.gridId,onGridReady:t=>{this.onGridReady(t)},theme:(tt||(tt=et()),tt),components:Object.assign({actionsRenderer:k,avatarRenderer:ct,iconRenderer:w,imageRenderer:ut,linkRenderer:pt,statusRenderer:y,subtitleRenderer:mt},null===(t=this.gridOptions)||void 0===t?void 0:t.components),domLayout:"normal",defaultColDef:Object.assign(Object.assign({cellDataType:!1,sortable:!0,filter:!0,flex:1,minWidth:150,suppressHeaderMenuButton:!0},null===(e=this.gridOptions)||void 0===e?void 0:e.defaultColDef),{filterParams:Object.assign({buttons:["reset","apply"],closeOnApply:!0,maxNumConditions:10},null===(s=null===(i=this.gridOptions)||void 0===i?void 0:i.defaultColDef)||void 0===s?void 0:s.filterParams)})});d(this.gridEl,o),window.addEventListener("theme-changed",this.themeChangedHandler),this.gridHeight?this.gridEl.style.height=this.gridHeight:this.attachAutoHeight()}disconnectedCallback(){var t;null===(t=this.gridApi)||void 0===t||t.destroy(),this.detachAutoHeight(),window.removeEventListener("theme-changed",this.themeChangedHandler)}handleUpdateGridFunctions(t,e){this.gridApi&&t!==e&&t.forEach(((t,e)=>{var i,s;null===(s=null===(i=this.gridFunctionInstances[e])||void 0===i?void 0:i.update)||void 0===s||s.call(i,t.params)}))}handleUpdateGridHeight(t){this.gridEl&&(t?(this.detachAutoHeight(),this.gridEl.style.height=t):this.attachAutoHeight())}handleUpdateColumnDefs(t,e){this.gridApi&&!C(t,e)&&this.setColumnDefs()}setColumnDefs(){var t;const e=f(this.columnDefs,null===(t=this.gridFunctions)||void 0===t?void 0:t.some((t=>"advancedSearch"===(null==t?void 0:t.name))));this.gridApi.setGridOption("columnDefs",e)}handleEntityNameChange(){this.updateGridContextValues()}render(){return t("div",{key:"9a16d8b90b805ed1451eb48db0ba7df90c714457",ref:t=>this.gridContainerEl=t},t("ghost-render",{key:"fe0119315b8b73cd3e49f7521f3c794fc1250238"},t("div",{key:"6a6346c130cc32488ed2e790877e07c1ad5bff89"},t("udp-dialog",{key:"cf73e98bda7a6aa8de4d1c9b5a958927ec1f4a84"}),t("udp-list-item",{key:"d77aa780107896612c5f9f1a07230aa8b1b9b33a"}),t("hint-panel",{key:"c2050efb63fdba5ecf99842550ae067c1206c6e9"}),t("udp-side-sheet",{key:"0ec1f693d133f81a236719dee3c627926057acbc"}),t("udp-fluent-dialog",{key:"eea6076a4fdda9606cd6623f4a38ceab61a56171"}),t("udp-fluent-text",{key:"c12db7b6556f1a8a5972888600deb0d6d09dedc6"}),t("udp-fluent-text-input",{key:"1171561b4331bff6e0e3aea9417e2996ae007811"}),t("udp-fluent-switch",{key:"148678c460ee96cf4015d031241709527490dfc9"}),t("udp-fluent-button",{key:"8e43757246063a8087b362a43004c25c900f8b34"}),t("udp-text",{key:"d6653a02fe0030e288a564296b2422976d1a34ce"}),t("udp-search-input",{key:"9f50750b415c1501ceecc4c4854660556edcb7de"}),t("udp-fluent-avatar",{key:"559183c3e5a1711a7d0cd65d0f7a87c76b4f2c43"}),t("udp-fluent-icon-button",{key:"77e871ca66f2d4177cbaf5a057f1ff4d5e28f8b2"}),t("udp-fluent-icon",{key:"579b0bec7e771bfe6bac0ae649238cfb8e9c317e"}),t("udp-fluent-badge",{key:"7d5a070cfa141e90b4c593cabcd77c401e0376b3"}))),t("grid-header",{key:"6174b78b2359bd4c1693000e5f9aefc969aac885",headerConfig:this.headerConfig,gridFunctions:this.gridFunctions,gridFunctionInstances:this.gridFunctionInstances,refreshKey:this.refreshKey,onHeaderAction:this.onHeaderAction}),t("div",{key:"26f0e971996dddaf3bbe8bac1c0dda70b6388661",ref:t=>this.gridEl=t}))}static get watchers(){return{gridFunctions:[{handleUpdateGridFunctions:0}],gridHeight:[{handleUpdateGridHeight:0}],columnDefs:[{handleUpdateColumnDefs:0}],entityName:[{handleEntityNameChange:0}],gridId:[{handleEntityNameChange:0}]}}static get style(){return".variant-dark{--udp-grid-column-header-bg:#F8F9FA;--udp-grid-column-header-bg-hover:#dce6f2;--udp-grid-column-header-text:var(--primary-color-dark)}.variant-light{--udp-grid-column-header-bg:#f2f4f5;--udp-grid-column-header-bg-hover:#eef3f9;--udp-grid-column-header-text:var(--primary-color-dark)}::view-transition-group(*){animation-duration:0.2s}.grid-wrapper{display:flex;flex-direction:column;height:100%}#myNewGrid{flex:1}.ag-cell.udp-col-brand{background-color:var(--colorBrandBackground2) !important;color:var(--colorBrandForeground2)}.ag-header-cell.udp-col-brand-header{background-color:var(--colorBrandBackground2) !important}.ag-header-cell.udp-col-brand-header .ag-header-cell-text{color:var(--colorBrandForeground2)}.ag-cell.udp-col-danger{background-color:var(--colorPaletteRedBackground1) !important;color:var(--colorPaletteRedForeground1)}.ag-header-cell.udp-col-danger-header{background-color:var(--colorPaletteRedBackground1) !important}.ag-header-cell.udp-col-danger-header .ag-header-cell-text{color:var(--colorPaletteRedForeground1)}.ag-cell.udp-col-important{background-color:color-mix(in srgb, var(--colorNeutralForeground1) 20%, transparent) !important;color:var(--colorNeutralForeground1)}.ag-header-cell.udp-col-important-header{background-color:color-mix(in srgb, var(--colorNeutralForeground1) 20%, transparent) !important}.ag-header-cell.udp-col-important-header .ag-header-cell-text{color:var(--colorNeutralForeground1)}.ag-cell.udp-col-informative{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent) !important;color:color-mix(in srgb, var(--colorPaletteBlueForeground2) 85%, transparent)}.ag-header-cell.udp-col-informative-header{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent) !important}.ag-header-cell.udp-col-informative-header .ag-header-cell-text{color:color-mix(in srgb, var(--colorPaletteBlueForeground2) 85%, transparent)}.ag-cell.udp-col-severe{background-color:var(--colorPaletteDarkOrangeBackground1) !important;color:var(--colorPaletteDarkOrangeForeground1)}.ag-header-cell.udp-col-severe-header{background-color:var(--colorPaletteDarkOrangeBackground1) !important}.ag-header-cell.udp-col-severe-header .ag-header-cell-text{color:var(--colorPaletteDarkOrangeForeground1)}.ag-cell.udp-col-subtle{background-color:var(--colorNeutralBackground1) !important;color:var(--colorNeutralForeground3)}.ag-header-cell.udp-col-subtle-header{background-color:var(--colorNeutralBackground1) !important}.ag-header-cell.udp-col-subtle-header .ag-header-cell-text{color:var(--colorNeutralForeground3)}.ag-cell.udp-col-success{background-color:var(--colorPaletteGreenBackground1) !important;color:var(--colorPaletteGreenForeground1)}.ag-header-cell.udp-col-success-header{background-color:var(--colorPaletteGreenBackground1) !important}.ag-header-cell.udp-col-success-header .ag-header-cell-text{color:var(--colorPaletteGreenForeground1)}.ag-cell.udp-col-warning{background-color:var(--colorPaletteYellowBackground1) !important;color:var(--colorPaletteYellowForeground2)}.ag-header-cell.udp-col-warning-header{background-color:var(--colorPaletteYellowBackground1) !important}.ag-header-cell.udp-col-warning-header .ag-header-cell-text{color:var(--colorPaletteYellowForeground2)}"}},[0,"ag-grid-base",{columnDefs:[16],gridOptions:[16],headerConfig:[16],gridHeight:[1,"grid-height"],gridFunctions:[16],gridId:[1,"grid-id"],entityName:[1,"entity-name"],gridApiCallback:[16],refreshKey:[32],gridFunctionInstances:[32]},void 0,{gridFunctions:[{handleUpdateGridFunctions:0}],gridHeight:[{handleUpdateGridHeight:0}],columnDefs:[{handleUpdateColumnDefs:0}],entityName:[{handleEntityNameChange:0}],gridId:[{handleEntityNameChange:0}]}]);function ft(){"undefined"!=typeof customElements&&["ag-grid-base","ghost-render","grid-header","hint-panel","stencil-icon-button","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-dialog","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-dialog","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-linear-loader","udp-list-item","udp-menu-item","udp-pop-over","udp-primary-action-header","udp-search-input","udp-side-sheet","udp-spinner","udp-text","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"ag-grid-base":customElements.get(o(t))||customElements.define(o(t),vt);break;case"ghost-render":customElements.get(o(t))||_();break;case"grid-header":customElements.get(o(t))||S();break;case"hint-panel":customElements.get(o(t))||x();break;case"stencil-icon-button":customElements.get(o(t))||N();break;case"udp-ambient-tool-tip":customElements.get(o(t))||E();break;case"udp-avatar":customElements.get(o(t))||j();break;case"udp-badge":customElements.get(o(t))||O();break;case"udp-button":customElements.get(o(t))||F();break;case"udp-dialog":customElements.get(o(t))||A();break;case"udp-flexbox":customElements.get(o(t))||D();break;case"udp-fluent-avatar":customElements.get(o(t))||T();break;case"udp-fluent-badge":customElements.get(o(t))||R();break;case"udp-fluent-button":customElements.get(o(t))||G();break;case"udp-fluent-dialog":customElements.get(o(t))||I();break;case"udp-fluent-icon":customElements.get(o(t))||B();break;case"udp-fluent-icon-button":customElements.get(o(t))||J();break;case"udp-fluent-menu":customElements.get(o(t))||P();break;case"udp-fluent-switch":customElements.get(o(t))||M();break;case"udp-fluent-text-input":customElements.get(o(t))||V();break;case"udp-icon":customElements.get(o(t))||$();break;case"udp-linear-loader":customElements.get(o(t))||U();break;case"udp-list-item":customElements.get(o(t))||H();break;case"udp-menu-item":customElements.get(o(t))||z();break;case"udp-pop-over":customElements.get(o(t))||L();break;case"udp-primary-action-header":customElements.get(o(t))||W();break;case"udp-search-input":customElements.get(o(t))||Y();break;case"udp-side-sheet":customElements.get(o(t))||q();break;case"udp-spinner":customElements.get(o(t))||K();break;case"udp-text":customElements.get(o(t))||Q();break;case"udp-tooltip":customElements.get(o(t))||X();break;case"unity-typography":customElements.get(o(t))||Z()}}))}export{vt as A,ft as d}
|
|
1
|
+
import{h as t,p as e,H as i,c as s,t as o}from"./index2.js";import{themeQuartz as n,ModuleRegistry as a,AllEnterpriseModule as l,LicenseManager as r,createGrid as d}from"ag-grid-enterprise-v33";import{w as h,i as c,r as u,s as p,u as m,p as g}from"./apiUtils.js";import{g as v,c as f}from"./configureUdpColumnMods.js";import{g as b}from"./tenantUtils.js";import{S as y,I as w,A as k}from"./status-renderer.js";import{isEqual as C}from"lodash-es";import{d as S}from"./ghost-render2.js";import{d as _}from"./grid-header2.js";import{d as x}from"./hint-panel2.js";import{d as N}from"./stencil-icon-button2.js";import{d as E}from"./udp-ambient-tool-tip2.js";import{d as A}from"./udp-avatar2.js";import{d as O}from"./udp-badge2.js";import{d as j}from"./udp-button2.js";import{d as F}from"./udp-dialog2.js";import{d as T}from"./udp-flexbox2.js";import{d as D}from"./udp-fluent-avatar2.js";import{d as R}from"./udp-fluent-badge2.js";import{d as I}from"./udp-fluent-button2.js";import{d as G}from"./udp-fluent-dialog2.js";import{d as M}from"./udp-fluent-icon2.js";import{d as B}from"./udp-fluent-icon-button2.js";import{d as J}from"./udp-fluent-menu2.js";import{d as P}from"./udp-fluent-switch2.js";import{d as V}from"./udp-fluent-text-input2.js";import{d as $}from"./udp-icon2.js";import{d as U}from"./udp-linear-loader2.js";import{d as H}from"./list-item.js";import{d as z}from"./udp-menu-item2.js";import{d as W}from"./udp-pop-over2.js";import{d as L}from"./udp-primary-action-header2.js";import{d as Y}from"./udp-search-input2.js";import{d as q}from"./udp-side-sheet2.js";import{d as K}from"./udp-spinner2.js";import{d as Q}from"./udp-text2.js";import{d as X}from"./udp-tooltip2.js";import{d as Z}from"./unity-typography2.js";let tt=null;function et(){return n.withParams({wrapperBorderRadius:0,wrapperBorder:!1,headerCellHoverBackgroundColor:"var(--udp-grid-column-header-bg-hover)",borderColor:"#E9ECEF",accentColor:"var(--primary-color)",browserColorScheme:"light"},"light").withParams({wrapperBorderRadius:0,wrapperBorder:!1,headerCellHoverBackgroundColor:"var(--udp-grid-column-header-bg-hover)",borderColor:"var(--divider-color)",accentColor:"var(--primary-color)",browserColorScheme:"dark"},"dark")}function it(t){tt||(tt=et()),document.documentElement.setAttribute("data-ag-theme-mode",t)}function st(){return sessionStorage.getItem("user-id")}const ot=async t=>{(null===document||void 0===document?void 0:document.startViewTransition)?(document.viewTransition&&await document.viewTransition.finished.catch((()=>{})),document.startViewTransition(t)):t()};function nt(t){const e=new Date(t),i=Math.floor((Date.now()-e.getTime())/1e3);if(i<60)return`${i} second${1!==i?"s":""} ago`;const s=Math.floor(i/60);if(s<60)return`${s} minute${1!==s?"s":""} ago`;const o=Math.floor(s/60);if(o<24)return`${o} hour${1!==o?"s":""} ago`;const n=Math.floor(o/24);return`${n} day${1!==n?"s":""} ago`}function at(t){var e;return null===(e=t.gridViewGridViewGridConfiguration)||void 0===e?void 0:e.find((t=>1===t.gridViewGridConfigurationGridConfiguration.gridStateTypeId))}function lt(t){var e;return null===(e=t.gridViewGridViewGridConfiguration)||void 0===e?void 0:e.find((t=>4===t.gridViewGridConfigurationGridConfiguration.gridStateTypeId))}function rt(t){switch(t){case"primary":return"primary";case"ghost":return"subtle";default:return"secondary"}}const dt={agGridExport:class{constructor(t="export.csv"){this.fileName=t}init(t){this.gridApi=t}onAction(t){"agGridExport"===t&&this.gridApi.exportDataAsCsv({fileName:this.fileName})}},openSavedViews:class{constructor(){this.filteredViews=[],this.allViewData=[],this.activeViewId=null,this.activeViewState=null,this.loading=!1,this.isDirty=!1,this.viewDialogMode=null,this.hoveredViewId=null,this.loadingViewId=null,this.deleteConfirmView=null,this.editingView=null,this.dialogName="",this.dialogIsPublic=!1,this.dialogMode="create",this.baseColumnState=null,this.localRestoredState=null,this.localStorageDebounceId=null,this.baselineRecaptureId=null,this.initialLoad=!0,this.dirtyListenerTimeoutId=null,this.scheduleDirtyListeners=()=>{null!==this.dirtyListenerTimeoutId&&clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=setTimeout((()=>{this.dirtyListenerTimeoutId=null,this.addDirtyListeners()}),300)},this.addDirtyListeners=()=>{this.api.addEventListener("columnVisible",this.checkIfDirty),this.api.addEventListener("columnPinned",this.checkIfDirty),this.api.addEventListener("columnMoved",this.checkIfDirty),this.api.addEventListener("columnPivotChanged",this.checkIfDirty),this.api.addEventListener("columnRowGroupChanged",this.checkIfDirty),this.api.addEventListener("columnValueChanged",this.checkIfDirty),this.api.addEventListener("columnsReset",this.checkIfDirty),this.api.addEventListener("filterChanged",this.checkIfDirty),this.api.addEventListener("sortChanged",this.checkIfDirty)},this.removeDirtyListeners=()=>{this.api.removeEventListener("columnVisible",this.checkIfDirty),this.api.removeEventListener("columnPinned",this.checkIfDirty),this.api.removeEventListener("columnMoved",this.checkIfDirty),this.api.removeEventListener("columnPivotChanged",this.checkIfDirty),this.api.removeEventListener("columnRowGroupChanged",this.checkIfDirty),this.api.removeEventListener("columnValueChanged",this.checkIfDirty),this.api.removeEventListener("columnsReset",this.checkIfDirty),this.api.removeEventListener("filterChanged",this.checkIfDirty),this.api.removeEventListener("sortChanged",this.checkIfDirty)},this.onColumnsChanged=()=>{var t;if(!this.baseColumnState)return;const e=this.getPrimaryColIds(),i=t=>t.filter((t=>e.has(t.colId))).map((t=>t.colId)).join(",");i(null!==(t=this.api.getColumnState())&&void 0!==t?t:[])!==i(JSON.parse(this.baseColumnState))&&(this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.isDirty&&(this.isDirty=!1,this.refresh()))},this.getStorageKey=()=>{const t=b();return`saved-grid-state-${this.gridId}-${t}`},this.saveCurrentStateToLocalStorage=()=>{null!==this.localStorageDebounceId&&clearTimeout(this.localStorageDebounceId),this.localStorageDebounceId=setTimeout((()=>{if(this.localStorageDebounceId=null,!this.gridId)return;const t=this.getStorageKey(),e={date:(new Date).toISOString(),columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())};localStorage.setItem(t,JSON.stringify(e))}),500)},this.applyLocalRestoredState=()=>{if(this.localRestoredState){this.removeDirtyListeners(),this.api.setGridOption("loading",!0);try{const t=JSON.parse(this.localRestoredState.columnState);t&&this.api.applyColumnState({state:t,applyOrder:!0});const e=JSON.parse(this.localRestoredState.filterModel);this.api.setFilterModel(e)}catch(t){console.error("Failed to apply restored state",t)}this.localRestoredState=null,this.isDirty=!0,ot((()=>{this.api.setGridOption("loading",!1),this.refresh(),this.scheduleDirtyListeners(),this.saveCurrentStateToLocalStorage()}))}},this.getPrimaryColIds=()=>{var t;return new Set((null!==(t=this.api.getColumns())&&void 0!==t?t:[]).filter((t=>t.isPrimary())).map((t=>t.getColId())))},this.serializeUserColumnState=t=>{const e=this.getPrimaryColIds();return JSON.stringify(t.filter((t=>e.has(t.colId))))},this.checkIfDirty=()=>{var t,e;if(null!==this.baselineRecaptureId)return;let i;if(this.activeViewId&&this.activeViewState){const e=this.serializeUserColumnState(null!==(t=this.api.getColumnState())&&void 0!==t?t:[]),s=this.serializeUserColumnState(JSON.parse(this.activeViewState.columnState)),o=JSON.stringify(this.api.getFilterModel());i=e!==s||o!==this.activeViewState.filterModel}else{const t=this.api.getFilterModel(),s=Object.keys(null!=t?t:{}).length>0,o=this.serializeUserColumnState(null!==(e=this.api.getColumnState())&&void 0!==e?e:[]),n=null!==this.baseColumnState?this.serializeUserColumnState(JSON.parse(this.baseColumnState)):null;i=s||null!==n&&o!==n}i!==this.isDirty&&(this.isDirty=i,this.refresh()),this.saveCurrentStateToLocalStorage()},this.scheduleBaselineRecapture=()=>{null!==this.baselineRecaptureId&&clearTimeout(this.baselineRecaptureId),this.baselineRecaptureId=setTimeout((()=>{this.baselineRecaptureId=null,this.activeViewId||(this.baseColumnState=JSON.stringify(this.api.getColumnState())),this.isDirty&&(this.isDirty=!1,this.refresh())}),0)},this.fetchViews=async()=>{var t;this.loading=!0,this.refresh();const e=this.api.getGridOption("context");if(this.gridId=null!==(t=null==e?void 0:e.gridId)&&void 0!==t?t:"",!this.gridId)return console.warn("[SavedViews] No gridId provided in grid context — saved views will not work."),this.loading=!1,void this.refresh();const i=this.getStorageKey(),s=localStorage.getItem(i);if(s)try{this.localRestoredState=JSON.parse(s)}catch(t){console.warn("[SavedViews] Failed to parse local restored state",t)}this.allViewData=await h(st(),this.gridId),this.filterData(),this.initialLoad&&(this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.applyDefaultView()),this.loading=!1,this.refresh()},this.filterData=()=>{var t,e,i;const s=this.api.getGridOption("context");this.entityName=null!==(t=null==s?void 0:s.entityName)&&void 0!==t?t:"",this.filteredViews=this.entityName?(null!==(e=this.allViewData)&&void 0!==e?e:[]).filter((t=>t.domain===this.entityName)):null!==(i=this.allViewData)&&void 0!==i?i:[],this.activeViewId&&!this.filteredViews.some((t=>t.gridViewId===this.activeViewId))&&(this.activeViewId=null,this.activeViewState=null,this.isDirty=!1),this.refresh()},this.pendingReapplyFilter=null,this.removeReapplyFilterListener=()=>{this.pendingReapplyFilter&&(this.api.removeEventListener("rowDataUpdated",this.pendingReapplyFilter),this.pendingReapplyFilter=null)},this.applyDefaultView=()=>{const t=this.filteredViews.find((t=>t.isDefault));if(t&&(this.setActiveView(t),"clientSide"===this.api.getGridOption("rowModelType"))){const e=lt(t),i=this.api.getGridOption("rowData");if(e&&(!i||0===i.length)){const t=JSON.parse(e.gridViewGridConfigurationGridConfiguration.values);this.api.setGridOption("loading",!0);const i=()=>{const e=this.api.getGridOption("rowData");e&&0!==e.length&&(null!==this.dirtyListenerTimeoutId&&(clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=null),this.removeDirtyListeners(),this.api.setFilterModel(t),this.activeViewState={columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())},this.isDirty=!1,this.scheduleDirtyListeners(),this.removeReapplyFilterListener(),this.api.setGridOption("loading",!1),this.refresh())};this.pendingReapplyFilter=i,this.api.addEventListener("rowDataUpdated",i),null!==this.dirtyListenerTimeoutId&&(clearTimeout(this.dirtyListenerTimeoutId),this.dirtyListenerTimeoutId=null),this.removeDirtyListeners()}}this.initialLoad=!1},this.setActiveView=t=>{this.removeDirtyListeners();const e=at(t),i=lt(t);e&&this.api.applyColumnState({state:JSON.parse(e.gridViewGridConfigurationGridConfiguration.values),applyOrder:!0});const s=i?JSON.parse(i.gridViewGridConfigurationGridConfiguration.values):null;this.api.setFilterModel(s),this.activeViewId=t.gridViewId,this.activeViewState={columnState:JSON.stringify(this.api.getColumnState()),filterModel:JSON.stringify(this.api.getFilterModel())},this.isDirty=!1,this.saveCurrentStateToLocalStorage(),ot((()=>{this.refresh(),this.scheduleDirtyListeners()}))},this.clearView=()=>{this.removeDirtyListeners(),this.baseColumnState?this.api.applyColumnState({state:JSON.parse(this.baseColumnState),applyOrder:!0}):this.api.resetColumnState(),this.api.setFilterModel(null),this.activeViewId=null,this.activeViewState=null,this.isDirty=!1,this.saveCurrentStateToLocalStorage(),ot((()=>{this.refresh(),this.scheduleDirtyListeners()}))},this.deleteView=async t=>{this.loading=!0,this.refresh();const e=this.activeViewId===t.gridViewId;try{await c(t.gridViewId,(()=>null)),e&&this.clearView(),await this.fetchViews()}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}},this.handleDirtyReset=()=>{const t=this.activeView;t&&(this.isDirty=!1,this.setActiveView(t))},this.handleUpdateCurrentView=async()=>{var t;const e=this.activeView;if(!e)return;this.loading=!0,this.refresh();const i=this.api.getGridOption("context"),s=at(e),o=lt(e),n=[{gridConfigurationId:null==s?void 0:s.gridViewGridConfigurationGridConfiguration.gridConfigurationId,gridStateTypeId:1,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getColumnState())},{gridConfigurationId:null==o?void 0:o.gridViewGridConfigurationGridConfiguration.gridConfigurationId,gridStateTypeId:4,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getFilterModel())}];try{await u(e.gridViewId,st(),null==i?void 0:i.gridId,v(),e.name,n,e.isDefault?1:0,null==i?void 0:i.entityName,null!==(t=e.gridViewVisibilityTypeId)&&void 0!==t?t:1,(()=>null)),await this.fetchViews();const s=this.filteredViews.find((t=>t.gridViewId===e.gridViewId));s&&this.setActiveView(s)}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}},this.handleSaveAsNew=()=>{this.dialogName="",this.dialogIsPublic=!1,this.dialogMode="create",this.viewDialogMode="create",this.refresh()},this.handleEditRequest=t=>{this.dialogName=t.name,this.dialogIsPublic=2===t.gridViewVisibilityTypeId,this.dialogMode="edit",this.editingView=t,this.viewDialogMode="edit",this.refresh()},this.handleDialogNameInput=t=>{this.dialogName=t.detail,this.refresh()},this.handleDialogIsPublicChange=t=>{this.dialogIsPublic=t.detail,this.refresh()},this.handleDialogConfirm=async()=>{const t=this.dialogName.trim();if(!t)return;const e=this.dialogIsPublic?2:1,i=this.editingView;"edit"===this.viewDialogMode&&i?await this.renameView(i,t,e):await this.postView(t,e),this.viewDialogMode=null,this.refresh()},this.handleDialogCancel=()=>{this.viewDialogMode=null,this.refresh()},this.handleDeleteRequest=t=>{this.deleteConfirmView=t,this.refresh()},this.handleDeleteConfirm=async()=>{const t=this.deleteConfirmView;t&&(this.deleteConfirmView=null,await this.deleteView(t))},this.handleDeleteCancel=()=>{this.deleteConfirmView=null,this.refresh()}}get activeView(){var t;return null!==(t=this.filteredViews.find((t=>t.gridViewId===this.activeViewId)))&&void 0!==t?t:null}async init(t,e){var i,s,o;this.api=t,this.refresh=e;const n=this.api.getGridOption("context");if(this.gridId=null!==(i=null==n?void 0:n.gridId)&&void 0!==i?i:"",!this.gridId)return void console.warn("[SavedViews] No gridId provided in grid context — saved views will not work.");const a=this.getStorageKey(),l=localStorage.getItem(a);if(l)try{this.localRestoredState=JSON.parse(l)}catch(t){console.warn("[SavedViews] Failed to parse local restored state",t)}this.loading=!0,this.refresh();const r=h(st(),this.gridId);0===(null!==(o=null===(s=this.api.getColumnDefs())||void 0===s?void 0:s.length)&&void 0!==o?o:0)&&await new Promise((t=>{const e=()=>{var i,s;(null!==(s=null===(i=this.api.getColumnDefs())||void 0===i?void 0:i.length)&&void 0!==s?s:0)>0&&(this.api.removeEventListener("gridColumnsChanged",e),t())};this.api.addEventListener("gridColumnsChanged",e)})),this.allViewData=await r,this.filterData(),this.baseColumnState=JSON.stringify(this.api.getColumnState()),this.applyDefaultView(),this.initialLoad=!1,this.loading=!1,this.refresh(),this.api.addEventListener("gridColumnsChanged",this.onColumnsChanged),this.scheduleDirtyListeners(),this.pendingReapplyFilter||this.addDirtyListeners(),this.scheduleBaselineRecapture()}destroy(){null!==this.baselineRecaptureId&&clearTimeout(this.baselineRecaptureId),this.removeDirtyListeners(),this.removeReapplyFilterListener(),this.api.removeEventListener("gridColumnsChanged",this.onColumnsChanged)}onAction(t){}async postView(t,e){this.loading=!0,this.refresh();const i=this.api.getGridOption("context"),s=[{gridStateTypeId:1,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getColumnState())},{gridStateTypeId:4,gridId:null==i?void 0:i.gridId,values:JSON.stringify(this.api.getFilterModel())}];try{await p(st(),null==i?void 0:i.gridId,v(),t,null==i?void 0:i.entityName,s,e,0,(()=>null)),await this.fetchViews();const o=this.filteredViews.find((e=>e.name===t));o&&this.setActiveView(o)}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}}async renameView(t,e,i){this.loading=!0,this.refresh();const s=this.api.getGridOption("context");try{await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),e,t.isDefault?1:0,null==s?void 0:s.entityName,i,(()=>null)),await this.fetchViews()}catch(t){console.error(t)}finally{this.loading=!1,this.refresh()}}async setViewAsDefault(t){var e,i;this.loadingViewId=t.gridViewId,this.refresh();const s=this.api.getGridOption("context"),o=t.isDefault;try{if(await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),t.name,o?0:1,null==s?void 0:s.entityName,null!==(e=t.gridViewVisibilityTypeId)&&void 0!==e?e:1,(()=>null)),!o){const t=this.filteredViews.find((t=>t.isDefault));t&&await m(t.gridViewId,st(),null==s?void 0:s.gridId,v(),t.name,0,null==s?void 0:s.entityName,null!==(i=t.gridViewVisibilityTypeId)&&void 0!==i?i:1,(()=>null)).catch((t=>console.log(t)))}await this.fetchViews()}catch(t){console.log(t)}finally{this.loadingViewId=null,this.refresh()}}render(){var e;const i=this.activeView,s=!!i,o=s?this.isDirty?`${i.name} *`:i.name:this.isDirty?"All Records *":"All Records",n=this.filteredViews,a=[...this.localRestoredState?[{id:"restore-local-state",text:`Restore state from ${nt(this.localRestoredState.date)}`,startIconName:"clock",sectionNumber:1,onClick:()=>this.applyLocalRestoredState()}]:[],...n.map((t=>({id:`view-${t.gridViewId}`,text:t.name,sectionNumber:2,onClick:()=>{this.setActiveView(t)},onMouseEnter:()=>{this.hoveredViewId=t.gridViewId,this.refresh()},onMouseLeave:()=>{this.hoveredViewId=null,this.refresh()}}))),...this.isDirty&&s?[{id:"update-view",startIconName:"save",text:"Update current view",sectionNumber:3,onClick:()=>this.handleUpdateCurrentView()}]:[],{id:"save-view",startIconName:"add",text:"Create new view",sectionNumber:3,onClick:()=>this.handleSaveAsNew()},{id:"clear-view",text:"Clear active view",startIconName:"dismiss",disabled:!s,sectionNumber:3,onClick:()=>this.clearView()}];return t("div",{class:"view-selector-wrapper"},t("udp-fluent-menu",{class:s?"has-active-view":void 0,label:o,items:a,style:{"--udp-menu-min-width":"200px"}},t("span",{slot:"clear-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Clear Active View"),t("span",{slot:"save-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Create View"),t("span",{slot:"update-view-body",style:{fontWeight:"var(--fontWeightSemibold)"}},"Update Current View"),t("span",{slot:"restore-local-state-body",style:{fontStyle:"italic",color:"var(--colorNeutralForeground2)"}},"Restore unsaved state "+(this.localRestoredState?`(${nt(this.localRestoredState.date)})`:"")),n.map((e=>t("div",{key:`start-${e.gridViewId}`,slot:`view-${e.gridViewId}-start`,class:"view-slot-action",style:{opacity:e.isDefault||this.hoveredViewId===e.gridViewId?"1":"0",transition:"opacity 100ms ease"},onClick:t=>t.stopPropagation()},t("udp-fluent-icon-button",{iconName:"star",iconVariant:e.isDefault?"filled":"regular",size:"small",appearance:"transparent",loading:this.loadingViewId===e.gridViewId,onClick:()=>{this.setViewAsDefault(e)}})))),n.map((e=>t("div",{key:`end-${e.gridViewId}`,slot:`view-${e.gridViewId}-end`,class:"view-slot-action",style:{opacity:this.hoveredViewId===e.gridViewId?"1":"0",transition:"opacity 100ms ease"},onClick:t=>t.stopPropagation()},e.userId===st()&&t("udp-fluent-icon-button",{iconName:"edit",size:"small",appearance:"transparent",onClick:()=>this.handleEditRequest(e)}),e.userId===st()&&t("udp-fluent-icon-button",{iconName:"delete",size:"small",appearance:"transparent",onClick:()=>this.handleDeleteRequest(e)}))))),(s||this.isDirty)&&t("div",{class:"view-dirty-actions"},t("udp-tooltip",{content:s&&this.isDirty?"Reset to saved view":s?"Clear active view":"Reset to default"},t("udp-fluent-icon-button",{iconName:this.isDirty?"arrow-reset":"dismiss",appearance:"subtle",disabled:this.loading,onClick:s&&this.isDirty?this.handleDirtyReset:this.clearView,shape:"rounded"})),this.isDirty&&(s?t("udp-fluent-menu",{buttonType:"icon",startIconName:"save",shape:"rounded",appearance:"subtle",disabled:this.loading,items:[{text:"Update Current View",startIconName:"save",onClick:()=>{this.handleUpdateCurrentView()}},{text:"Create View",startIconName:"add",onClick:()=>this.handleSaveAsNew()}]}):t("udp-tooltip",{content:"Create View"},t("udp-fluent-icon-button",{iconName:"save",shape:"rounded",appearance:"subtle",disabled:this.loading,onClick:this.handleSaveAsNew})))),t("udp-fluent-dialog",{open:!!this.deleteConfirmView,dialogTitle:"Delete View",onDialogClose:this.handleDeleteCancel},t("udp-fluent-text",null,'Are you sure you want to delete "',null===(e=this.deleteConfirmView)||void 0===e?void 0:e.name,'"?'),t("udp-fluent-button",{slot:"action",appearance:"subtle",onClick:this.handleDeleteCancel},"Cancel"),t("udp-fluent-button",{slot:"action",appearance:"primary",loading:this.loading,onClick:()=>{this.handleDeleteConfirm()}},"Delete")),t("udp-fluent-dialog",{open:!!this.viewDialogMode,dialogTitle:"edit"===this.dialogMode?"Edit View":"Save View",onDialogClose:this.handleDialogCancel},t("udp-fluent-text-input",{value:this.dialogName,label:"Name",onValueChanged:this.handleDialogNameInput,onKeyDown:t=>{"Enter"===t.key&&this.dialogName.trim()&&(t.preventDefault(),this.handleDialogConfirm())}}),t("udp-fluent-switch",{checked:this.dialogIsPublic,label:"Public",onValueChanged:this.handleDialogIsPublicChange}),t("udp-fluent-button",{slot:"action",appearance:"subtle",onClick:this.handleDialogCancel},"Cancel"),t("udp-fluent-button",{slot:"action",appearance:"primary",disabled:!this.dialogName.trim(),loading:this.loading,onClick:()=>{this.handleDialogConfirm()}},"edit"===this.dialogMode?"Update":"Save")))}},agGridSizeColumnsToFit:class{init(t){this.gridApi=t}onAction(t){"agGridSizeColumnsToFit"===t&&this.gridApi.sizeColumnsToFit()}},agGridAutoSizeColumns:class{init(t){this.gridApi=t}onAction(t){"agGridAutoSizeColumns"===t&&this.gridApi.autoSizeAllColumns()}},bulkActions:class{constructor(){this.bulkActions=[],this.selectedRowCount=0,this.fetchedData=!1,this.serverActionData=[],this.onRowSelectionChanged=()=>{var t;ot((()=>{var t,e,i,s;if("serverSide"===this.api.getGridOption("rowModelType")){const o=this.api.getServerSideSelectionState(),n=null!==(e=null===(t=this.api.getGridOption("context"))||void 0===t?void 0:t.rowCount)&&void 0!==e?e:0,a=null!==(i=null==o?void 0:o.toggledNodes)&&void 0!==i?i:[],l=null!==(s=null==o?void 0:o.selectAll)&&void 0!==s&&s;this.selectedRows=l?[]:this.api.getSelectedRows(),this.selectedRowCount=l?Math.max(n-a.length,0):a.length,this.selectionState={rowModelType:"serverSide",selectAll:l,toggledNodes:a,selectedCount:this.selectedRowCount}}else{const t=this.api.getSelectedRows();this.selectedRows=t,this.selectedRowCount=t.length,this.selectionState={rowModelType:"clientSide",selectAll:!1,toggledNodes:[],selectedCount:t.length}}this.refresh()})),(!this.fetchedData&&this.gridId||this.gridId&&(null===(t=this.api.getGridOption("context"))||void 0===t?void 0:t.gridId)!==this.gridId)&&this.fetchBulkActions()},this.setBulkActions=t=>{this.serverActionData=t;const e=t.map((t=>({text:t.name,onClick:()=>this.executeActionProviderAction(t.actionId)}))),i=this.localFunctions.map((t=>({text:t.label,startIconName:t.startIconName,buttonIntent:t.buttonIntent,loading:t.loading,onClick:()=>this.executeLocalFunction(t.label)})));this.bulkActions=[...e,...i],this.fetchedData=!0,this.refresh()},this.executeLocalFunction=t=>{const e=this.localFunctions.find((e=>e.label===t));e&&e.callback(this.selectedRows,this.selectionState),this.refresh()},this.executeActionProviderAction=t=>{this.actionProviderCallback&&this.actionProviderCallback(t,this.selectedRows,this.selectionState),this.refresh()},this.clearSelection=()=>{this.api.deselectAll()}}init(t,e,i){var s,o;this.api=t,this.refresh=e,this.actionProviderCallback=null==i?void 0:i.actionProviderCallback,this.localFunctions=null!==(s=null==i?void 0:i.localFunctions)&&void 0!==s?s:[],"clientSide"===this.api.getGridOption("rowModelType")?this.api.setGridOption("rowSelection",{mode:"multiRow",enableClickSelection:!0}):(this.api.setGridOption("rowSelection",{mode:"multiRow",enableClickSelection:!0,headerCheckbox:!0}),this.api.getGridOption("getRowId")||console.warn("[bulkActions] Server-side row selection requires `getRowId` in gridOptions. Without it the header checkbox select-all and selection state are unreliable.")),this.gridId=null===(o=this.api.getGridOption("context"))||void 0===o?void 0:o.gridId,this.gridId?this.fetchBulkActions():this.setBulkActions([]),this.api.addEventListener("selectionChanged",this.onRowSelectionChanged)}update(t){var e,i;this.localFunctions=null!==(e=null==t?void 0:t.localFunctions)&&void 0!==e?e:[],this.actionProviderCallback=null!==(i=null==t?void 0:t.actionProviderCallback)&&void 0!==i?i:this.actionProviderCallback,this.setBulkActions(this.serverActionData)}onAction(t){"executeBulkAction"===t&&this.refresh()}async fetchBulkActions(){var t;try{this.gridId=null===(t=this.api.getGridOption("context"))||void 0===t?void 0:t.gridId,await g(this.gridId,!1,[],this.setBulkActions)}catch(t){console.error(t)}}isActive(){return this.selectedRowCount>0}render(){return t("div",{class:"bulk-actions-bar"},t("udp-fluent-icon-button",{iconName:"dismiss",appearance:"subtle",shape:"circular",ariaLabel:"Clear selection",onClick:this.clearSelection,style:{animationDelay:"10ms"}}),t("udp-text",{variant:"body1",style:{animationDelay:"20ms"}},this.selectedRowCount," Selected"),this.bulkActions.length>0&&t("div",{class:"bulk-actions-divider",style:{animationDelay:"20ms"}}),this.bulkActions.map((e=>t("udp-fluent-button",{appearance:rt(e.buttonIntent),class:"danger"===e.buttonIntent?"bulk-action-danger":void 0,startIconName:e.startIconName,onClick:e.onClick,style:{animationDelay:"20ms"},loading:e.loading},e.text))))}},agGridResetColumns:class{init(t){this.gridApi=t}onAction(t){"agGridResetColumns"===t&&this.gridApi.resetColumnState()}},advancedSearch:class{init(t,e,i){this.onOpenCallback=null==i?void 0:i.callback}onAction(t){var e;"advancedSearch"===t&&(null===(e=this.onOpenCallback)||void 0===e||e.call(this))}},agGridHideShowColumns:class{init(t){this.gridApi=t}onAction(t){"agGridHideShowColumns"===t&&this.gridApi.showColumnChooser()}},udpExport:class{init(t,e,i){this.onOpenCallback=null==i?void 0:i.callback,this.api=t}onAction(t){var e;if("udpExport"===t){const t=this.api.getGridOption("context");null===(e=this.onOpenCallback)||void 0===e||e.call(this,null==t?void 0:t.searchObject,null==t?void 0:t.entityName)}}},quickFilter:class{constructor(){this.searchValue="",this.debounce=0,this.applyFilter=t=>{var e;this.api.setGridOption("quickFilterText",t),null===(e=this.callback)||void 0===e||e.call(this,t),this.refresh()},this.handleSearch=t=>{this.searchValue=t.detail,clearTimeout(this.debounceTimer),this.debounce>0?this.debounceTimer=setTimeout((()=>this.applyFilter(this.searchValue)),this.debounce):this.applyFilter(this.searchValue)}}init(t,e,i){var s;this.api=t,this.refresh=e,this.callback=null==i?void 0:i.callback,this.debounce=null!==(s=null==i?void 0:i.debounce)&&void 0!==s?s:0}update(t){var e;this.callback=null==t?void 0:t.callback,this.debounce=null!==(e=null==t?void 0:t.debounce)&&void 0!==e?e:0}destroy(){clearTimeout(this.debounceTimer),this.api.setGridOption("quickFilterText","")}render(){return t("div",{style:{width:"200px"}},t("udp-search-input",{value:this.searchValue,placeholder:"Search",onValueChanged:this.handleSearch,includeErrorPadding:!1,autocomplete:"off"}))}},agGridRefreshData:class{constructor(){this.loading=!1,this.handleStoreRefreshed=()=>{var t;this.loading=!1,this.refresh(),null===(t=this.onRefreshComplete)||void 0===t||t.call(this)}}init(t,e,i){this.api=t,this.refresh=e,this.onRefreshStart=null==i?void 0:i.onRefreshStart,this.onRefreshComplete=null==i?void 0:i.onRefreshComplete,this.api.addEventListener("storeRefreshed",this.handleStoreRefreshed),this.api.addEventListener("rowDataUpdated",this.handleStoreRefreshed)}update(t){this.onRefreshStart=null==t?void 0:t.onRefreshStart,this.onRefreshComplete=null==t?void 0:t.onRefreshComplete}destroy(){this.api.removeEventListener("storeRefreshed",this.handleStoreRefreshed),this.api.removeEventListener("rowDataUpdated",this.handleStoreRefreshed)}isRefreshing(){return this.loading}onAction(t){var e;"agGridRefreshData"===t&&(this.loading=!0,this.refresh(),null===(e=this.onRefreshStart)||void 0===e||e.call(this),"serverSide"===this.api.getGridOption("rowModelType")&&this.api.refreshServerSide())}},agGridExpandCollapseAll:class{constructor(){this.expanded=!1}init(t,e){this.api=t,this.refresh=e}isExpanded(){return this.expanded}onAction(t){"agGridExpandCollapseAll"===t&&(this.expanded?this.api.collapseAll():this.api.expandAll(),this.expanded=!this.expanded,this.refresh())}}};function ht(t,e){const i=document.createElement("div");i.style.cssText="display: flex; flex-direction: column; justify-content: center; line-height: 1; gap: 2px;";const s=document.createElement("span");if(s.textContent=null!=t?t:"-",s.style.cssText="display: block;",i.appendChild(s),e){const t=document.createElement("span");t.textContent=e,t.style.cssText="display: block; font-size: 0.9em; opacity: 0.65;",i.appendChild(t)}return i}class ct{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; align-items: center; gap: 8px;";const s=document.createElement("udp-fluent-avatar");t.getSrc&&(s.src=t.getSrc(t)),t.getIconName&&(s.iconName=t.getIconName(t),t.iconVariant&&(s.iconVariant=t.iconVariant)),t.getName&&(s.name=t.getName(t)),t.getInitials&&(s.initials=t.getInitials(t)),s.size=null!==(e=t.size)&&void 0!==e?e:28,t.shape&&(s.shape=t.shape),t.getColor?s.color=t.getColor(t):t.color&&(s.color=t.color);const o=`${null!==(i=t.size)&&void 0!==i?i:28}px`;if(s.style.cssText=`align-self: center; flex-shrink: 0; width: ${o}; height: ${o};`,this.eGui.appendChild(s),t.getValues){const e=t.getValues(t);e&&this.eGui.appendChild(ht(e.title,e.subtitle))}}getGui(){return this.eGui}refresh(){return!1}}class ut{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; width: 100%; align-items: center; overflow: hidden;";const s=t.getSrc(t),o=document.createElement("udp-fluent-image");t.fit&&(o.fit=t.fit),t.shape&&(o.shape=t.shape),o.style.cssText="display: block; height: 100%; width: 100%; overflow: hidden;";const n=document.createElement("img");n.src=s,n.alt=null!==(e=t.alt)&&void 0!==e?e:"",n.style.cssText=`height: 100%; width: 100%; max-height: 100%; max-width: 100%; object-fit: ${null!==(i=t.fit)&&void 0!==i?i:"contain"}; display: block;`,o.appendChild(n),this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}class pt{init(t){var e,i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; align-items: center;";const s=t.getHref?t.getHref(t):null!==(e=t.href)&&void 0!==e?e:"",o=document.createElement("udp-fluent-link");o.href=s,o.target=null!==(i=t.target)&&void 0!==i?i:"_self",o.textContent=t.value,this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}class mt{init(t){this.node=t.node,this.eGui=document.createElement("div"),this.eGui.setAttribute("style","display: flex; align-items: center; height: 100%;"),this.eValueContainer=document.createElement("span"),this.eValueContainer.setAttribute("class","eValueContainer"),this.eGui.appendChild(this.eValueContainer),this.renderContent(t)}getGui(){return this.eGui}refresh(t){return!(!this.eValueContainer||!this.node||(this.renderContent(t),0))}renderContent(t){this.eValueContainer.innerHTML="";let e=null;if(this.node.group&&(null==t?void 0:t.getHeaderValues)?e=t.getHeaderValues(t):!this.node.group&&(null==t?void 0:t.getValues)&&(e=t.getValues(t)),!e)return;const i=document.createElement("div");i.className="custom-group-column",i.appendChild(ht(e.title,e.subtitle)),this.eValueContainer.appendChild(i)}destroy(){}}const gt=t=>{const e=t.value;if(null==e)return"";const i=new Date(e);return i?`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")} ${String(i.getHours()).padStart(2,"0")}:${String(i.getMinutes()).padStart(2,"0")}`:""},vt=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.gridReady=s(this,"gridReady",7),this.gridFunctions=[],this.refreshKey=0,this.gridFunctionInstances=[],this.updateGridHeight=()=>{if(this.gridEl&&this.gridContainerEl.clientWidth>0){const t=this.gridEl.getBoundingClientRect(),e=window.innerHeight-t.top,i=10;this.gridEl.style.height=(e-i>400?e-i:400)+"px"}},this.scheduleHeightUpdate=()=>{clearTimeout(this.resizeDebounce),this.resizeDebounce=setTimeout(this.updateGridHeight,100)},this.attachAutoHeight=()=>{this.resizeObserver||(this.updateGridHeight(),this.resizeObserver=new ResizeObserver(this.scheduleHeightUpdate),this.resizeObserver.observe(this.gridContainerEl),window.addEventListener("resize",this.scheduleHeightUpdate))},this.detachAutoHeight=()=>{var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),this.resizeObserver=void 0,window.removeEventListener("resize",this.scheduleHeightUpdate),clearTimeout(this.resizeDebounce)},this.refreshGridFunctions=()=>{this.refreshKey++},this.themeChangedHandler=t=>{it(t.detail.mode)},this.onGridReady=async t=>{this.gridApi=t.api,this.updateGridContextValues(),this.columnDefs&&this.setColumnDefs();const e=[];this.gridFunctionInstances=this.gridFunctions.map((t=>{const i=dt[t.name];if(!i)return null;const s=new i,o=s.init(this.gridApi,this.refreshGridFunctions,t.params);return o&&e.push(o),s})).filter((t=>!!t)),await Promise.all(e),this.gridApiCallback&&this.gridApiCallback({refreshServerSide:()=>this.gridApi.refreshServerSide(),applyTransaction:t=>this.gridApi.applyTransaction(t),ensureIndexVisible:(t,e)=>this.gridApi.ensureIndexVisible(t,e),getSelectedRows:()=>this.gridApi.getSelectedRows(),getSelectedNodes:()=>this.gridApi.getSelectedNodes(),getSearchObject:()=>this.gridApi.getGridOption("context").searchObject,getEntityName:()=>this.gridApi.getGridOption("context").entityName,getRowCount:()=>this.gridApi.getGridOption("context").rowCount,getFilterModel:()=>this.gridApi.getFilterModel(),setFilterModel:t=>this.gridApi.setFilterModel(t),onFilterChanged:()=>this.gridApi.onFilterChanged(),expandAll:()=>this.gridApi.expandAll(),collapseAll:()=>this.gridApi.collapseAll(),toggleLoadingOverlay:t=>this.gridApi.setGridOption("loading",t),refreshCells:()=>this.gridApi.refreshCells(),refreshClientSideRowModel:t=>this.gridApi.refreshClientSideRowModel(t),selectAll:(t,e)=>this.gridApi.selectAll(t,e),deselectAll:(t,e)=>this.gridApi.deselectAll(t,e),getServerSideSelectionState:()=>this.gridApi.getServerSideSelectionState(),setServerSideSelectionState:t=>this.gridApi.setServerSideSelectionState(t),forEachNode:t=>this.gridApi.forEachNode(t),forEachNodeAfterFilterAndSort:t=>this.gridApi.forEachNodeAfterFilterAndSort(t),stopEditing:t=>this.gridApi.stopEditing(t),getFocusedCell:()=>this.gridApi.getFocusedCell()}),this.gridReady.emit(this.gridApi)},this.onHeaderAction=t=>{this.gridFunctionInstances.forEach((e=>{var i;return null===(i=e.onAction)||void 0===i?void 0:i.call(e,t.detail.name,t.detail.payload)}))},this.updateGridContextValues=()=>{this.gridApi.setGridOption("context",Object.assign(Object.assign({},this.gridApi.getGridOption("context")),{entityName:this.entityName,gridId:this.gridId}))}}componentWillLoad(){a.registerModules([l]),it("light"),r.setLicenseKey("Using_this_{AG_Grid}_Enterprise_key_{AG-080613}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{Univerus_Software_Inc}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{MAIS_eRec}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{MAIS_eRec}_need_to_be_licensed___{MAIS_eRec}_has_not_been_granted_a_Deployment_License_Add-on___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{28_June_2026}____[v3]_[01]_MTc4MjYwMTIwMDAwMA==5c7d1487ecb13b28e75415d34b7cf694")}componentDidLoad(){var t,e,i,s;const o=Object.assign(Object.assign({tooltipShowMode:"whenTruncated",tooltipShowDelay:500},this.gridOptions),{columnTypes:{booleanChip:{cellRenderer:"iconRenderer",cellRendererParams:{iconMappingConfig:{true:{iconName:"checkMark24",color:"success"},false:{iconName:"close24",color:"error"}}}}},dataTypeDefinitions:{dateTimeString:{baseDataType:"dateTimeString",extendsDataType:"dateTimeString",valueFormatter:gt},boolean:{baseDataType:"boolean",extendsDataType:"boolean",columnTypes:"booleanChip"}},gridId:this.gridId,onGridReady:t=>{this.onGridReady(t)},theme:(tt||(tt=et()),tt),components:Object.assign({actionsRenderer:k,avatarRenderer:ct,iconRenderer:w,imageRenderer:ut,linkRenderer:pt,statusRenderer:y,subtitleRenderer:mt},null===(t=this.gridOptions)||void 0===t?void 0:t.components),domLayout:"normal",defaultColDef:Object.assign(Object.assign({cellDataType:!1,sortable:!0,filter:!0,flex:1,minWidth:150,suppressHeaderMenuButton:!0},null===(e=this.gridOptions)||void 0===e?void 0:e.defaultColDef),{filterParams:Object.assign({buttons:["reset","apply"],closeOnApply:!0,maxNumConditions:10},null===(s=null===(i=this.gridOptions)||void 0===i?void 0:i.defaultColDef)||void 0===s?void 0:s.filterParams)})});d(this.gridEl,o),window.addEventListener("theme-changed",this.themeChangedHandler),this.gridHeight?this.gridEl.style.height=this.gridHeight:this.attachAutoHeight()}disconnectedCallback(){var t;null===(t=this.gridApi)||void 0===t||t.destroy(),this.detachAutoHeight(),window.removeEventListener("theme-changed",this.themeChangedHandler)}handleUpdateGridFunctions(t,e){this.gridApi&&t!==e&&t.forEach(((t,e)=>{var i,s;null===(s=null===(i=this.gridFunctionInstances[e])||void 0===i?void 0:i.update)||void 0===s||s.call(i,t.params)}))}handleUpdateGridHeight(t){this.gridEl&&(t?(this.detachAutoHeight(),this.gridEl.style.height=t):this.attachAutoHeight())}handleUpdateColumnDefs(t,e){this.gridApi&&!C(t,e)&&this.setColumnDefs()}setColumnDefs(){var t;const e=f(this.columnDefs,null===(t=this.gridFunctions)||void 0===t?void 0:t.some((t=>"advancedSearch"===(null==t?void 0:t.name))));this.gridApi.setGridOption("columnDefs",e)}handleEntityNameChange(){this.updateGridContextValues()}render(){return t("div",{key:"104459ae3bbc35124905c375284deea7fd4a18e2",ref:t=>this.gridContainerEl=t},t("ghost-render",{key:"9246393a0abf0f32551fc7783747328dbba99ec7"},t("div",{key:"b8e6d1fdb1ff7884e6723a0ff9421bd12ad63740"},t("udp-dialog",{key:"4e2de434c26d11fa47104e6c8f06d76d3e617500"}),t("udp-list-item",{key:"c46d7dec91a2bae694631f095c9904f85d607ba6"}),t("hint-panel",{key:"4177e50ac5fedda3f15de57153de46201f104454"}),t("udp-side-sheet",{key:"2e8914c6d8ea1bb83e48cce4489fd2d636884498"}),t("udp-fluent-dialog",{key:"482719dc0f89bdbe4749d28aa1d2509343de1ca7"}),t("udp-fluent-text",{key:"03a30ea4a724b2d003befd88f4fa8eba27685411"}),t("udp-fluent-text-input",{key:"a6e25454b5bd17db8ed441363c81b66902987323"}),t("udp-fluent-switch",{key:"b547bd01dda86ba3b1c94a5973de9b562cf7cb59"}),t("udp-fluent-button",{key:"9d5b809d46caaedf783b42598adb23f2d181a8b8"}),t("udp-text",{key:"f4ce740ea9998d756f4e9518a1c304dd5e4208a3"}),t("udp-search-input",{key:"8192e2ac08b3ee6052578677c3361e9dc7648ec5"}),t("udp-fluent-avatar",{key:"8e7f9bb0c6e9dee5d50b5740a9599a7a1271f677"}),t("udp-fluent-icon-button",{key:"059f897ae01e52266e938f77c70dd848efd12f43"}),t("udp-fluent-icon",{key:"33b02e8a98bb6fee997ac180942dbb2545ea2c21"}),t("udp-fluent-badge",{key:"5b0ca3ac9944d662c9593602fe8adfd13da4a2b8"}))),t("grid-header",{key:"5a1a52b5e07dd84dbc5f7b0c8d6ac3cca3faa2d9",headerConfig:this.headerConfig,gridFunctions:this.gridFunctions,gridFunctionInstances:this.gridFunctionInstances,refreshKey:this.refreshKey,onHeaderAction:this.onHeaderAction}),t("div",{key:"ea69fb43b9a875f35ef7851662af90474321ef81",ref:t=>this.gridEl=t}))}static get watchers(){return{gridFunctions:[{handleUpdateGridFunctions:0}],gridHeight:[{handleUpdateGridHeight:0}],columnDefs:[{handleUpdateColumnDefs:0}],entityName:[{handleEntityNameChange:0}],gridId:[{handleEntityNameChange:0}]}}static get style(){return".variant-dark{--udp-grid-column-header-bg:#F8F9FA;--udp-grid-column-header-bg-hover:#dce6f2;--udp-grid-column-header-text:var(--primary-color-dark)}.variant-light{--udp-grid-column-header-bg:#f2f4f5;--udp-grid-column-header-bg-hover:#eef3f9;--udp-grid-column-header-text:var(--primary-color-dark)}::view-transition-group(*){animation-duration:0.2s}.grid-wrapper{display:flex;flex-direction:column;height:100%}#myNewGrid{flex:1}.ag-cell.udp-col-brand{background-color:var(--colorBrandBackground2) !important;color:var(--colorBrandForeground2)}.ag-header-cell.udp-col-brand-header{background-color:var(--colorBrandBackground2) !important}.ag-header-cell.udp-col-brand-header .ag-header-cell-text{color:var(--colorBrandForeground2)}.ag-cell.udp-col-danger{background-color:var(--colorPaletteRedBackground1) !important;color:var(--colorPaletteRedForeground1)}.ag-header-cell.udp-col-danger-header{background-color:var(--colorPaletteRedBackground1) !important}.ag-header-cell.udp-col-danger-header .ag-header-cell-text{color:var(--colorPaletteRedForeground1)}.ag-cell.udp-col-important{background-color:color-mix(in srgb, var(--colorNeutralForeground1) 20%, transparent) !important;color:var(--colorNeutralForeground1)}.ag-header-cell.udp-col-important-header{background-color:color-mix(in srgb, var(--colorNeutralForeground1) 20%, transparent) !important}.ag-header-cell.udp-col-important-header .ag-header-cell-text{color:var(--colorNeutralForeground1)}.ag-cell.udp-col-informative{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent) !important;color:color-mix(in srgb, var(--colorPaletteBlueForeground2) 85%, transparent)}.ag-header-cell.udp-col-informative-header{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent) !important}.ag-header-cell.udp-col-informative-header .ag-header-cell-text{color:color-mix(in srgb, var(--colorPaletteBlueForeground2) 85%, transparent)}.ag-cell.udp-col-severe{background-color:var(--colorPaletteDarkOrangeBackground1) !important;color:var(--colorPaletteDarkOrangeForeground1)}.ag-header-cell.udp-col-severe-header{background-color:var(--colorPaletteDarkOrangeBackground1) !important}.ag-header-cell.udp-col-severe-header .ag-header-cell-text{color:var(--colorPaletteDarkOrangeForeground1)}.ag-cell.udp-col-subtle{background-color:var(--colorNeutralBackground1) !important;color:var(--colorNeutralForeground3)}.ag-header-cell.udp-col-subtle-header{background-color:var(--colorNeutralBackground1) !important}.ag-header-cell.udp-col-subtle-header .ag-header-cell-text{color:var(--colorNeutralForeground3)}.ag-cell.udp-col-success{background-color:var(--colorPaletteGreenBackground1) !important;color:var(--colorPaletteGreenForeground1)}.ag-header-cell.udp-col-success-header{background-color:var(--colorPaletteGreenBackground1) !important}.ag-header-cell.udp-col-success-header .ag-header-cell-text{color:var(--colorPaletteGreenForeground1)}.ag-cell.udp-col-warning{background-color:var(--colorPaletteYellowBackground1) !important;color:var(--colorPaletteYellowForeground2)}.ag-header-cell.udp-col-warning-header{background-color:var(--colorPaletteYellowBackground1) !important}.ag-header-cell.udp-col-warning-header .ag-header-cell-text{color:var(--colorPaletteYellowForeground2)}"}},[0,"ag-grid-base",{columnDefs:[16],gridOptions:[16],headerConfig:[16],gridHeight:[1,"grid-height"],gridFunctions:[16],gridId:[1,"grid-id"],entityName:[1,"entity-name"],gridApiCallback:[16],refreshKey:[32],gridFunctionInstances:[32]},void 0,{gridFunctions:[{handleUpdateGridFunctions:0}],gridHeight:[{handleUpdateGridHeight:0}],columnDefs:[{handleUpdateColumnDefs:0}],entityName:[{handleEntityNameChange:0}],gridId:[{handleEntityNameChange:0}]}]);function ft(){"undefined"!=typeof customElements&&["ag-grid-base","ghost-render","grid-header","hint-panel","stencil-icon-button","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-dialog","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-dialog","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-linear-loader","udp-list-item","udp-menu-item","udp-pop-over","udp-primary-action-header","udp-search-input","udp-side-sheet","udp-spinner","udp-text","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"ag-grid-base":customElements.get(o(t))||customElements.define(o(t),vt);break;case"ghost-render":customElements.get(o(t))||S();break;case"grid-header":customElements.get(o(t))||_();break;case"hint-panel":customElements.get(o(t))||x();break;case"stencil-icon-button":customElements.get(o(t))||N();break;case"udp-ambient-tool-tip":customElements.get(o(t))||E();break;case"udp-avatar":customElements.get(o(t))||A();break;case"udp-badge":customElements.get(o(t))||O();break;case"udp-button":customElements.get(o(t))||j();break;case"udp-dialog":customElements.get(o(t))||F();break;case"udp-flexbox":customElements.get(o(t))||T();break;case"udp-fluent-avatar":customElements.get(o(t))||D();break;case"udp-fluent-badge":customElements.get(o(t))||R();break;case"udp-fluent-button":customElements.get(o(t))||I();break;case"udp-fluent-dialog":customElements.get(o(t))||G();break;case"udp-fluent-icon":customElements.get(o(t))||M();break;case"udp-fluent-icon-button":customElements.get(o(t))||B();break;case"udp-fluent-menu":customElements.get(o(t))||J();break;case"udp-fluent-switch":customElements.get(o(t))||P();break;case"udp-fluent-text-input":customElements.get(o(t))||V();break;case"udp-icon":customElements.get(o(t))||$();break;case"udp-linear-loader":customElements.get(o(t))||U();break;case"udp-list-item":customElements.get(o(t))||H();break;case"udp-menu-item":customElements.get(o(t))||z();break;case"udp-pop-over":customElements.get(o(t))||W();break;case"udp-primary-action-header":customElements.get(o(t))||L();break;case"udp-search-input":customElements.get(o(t))||Y();break;case"udp-side-sheet":customElements.get(o(t))||q();break;case"udp-spinner":customElements.get(o(t))||K();break;case"udp-text":customElements.get(o(t))||Q();break;case"udp-tooltip":customElements.get(o(t))||X();break;case"unity-typography":customElements.get(o(t))||Z()}}))}export{vt as A,ft as d}
|