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
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as t,H as e,h as s,t as i}from"./index2.js";import{cloneDeep as o,throttle as n}from"lodash-es";import{f as r}from"./udp-form-api-utils.js";import{c as a,b as u,U as l,a as d}from"./enums.js";import{b as c}from"./utils.js";import{c as m,m as h}from"./makeApiCall.js";import{S as p}from"./SearchBuilder.js";import{a as f}from"./searchObject.js";import{C as b}from"./configService.js";import{v4 as v}from"uuid";import{d as y}from"./address-search2.js";import{d as j}from"./ag-grid-base2.js";import{d as w}from"./base-map2.js";import{d as S}from"./client-side-grid2.js";import{d as g}from"./custom-button2.js";import{d as O}from"./file-upload2.js";import{d as E}from"./form-metadata-display2.js";import{d as k}from"./ghost-render2.js";import{d as I}from"./grid-header2.js";import{d as F}from"./hint-panel2.js";import{d as D}from"./image-upload2.js";import{d as $}from"./location-input2.js";import{d as C}from"./numeric-field2.js";import{d as x}from"./selectable-list2.js";import{d as U}from"./signature-input2.js";import{d as P}from"./stencil-field2.js";import{d as q}from"./stencil-form2.js";import{d as A}from"./stencil-icon-button2.js";import{d as K}from"./table-input2.js";import{d as T}from"./tally.js";import{d as V}from"./text-area2.js";import{d as L}from"./text-field2.js";import{d as _}from"./udp-adornment2.js";import{d as N}from"./udp-ambient-card2.js";import{d as R}from"./udp-ambient-tool-tip2.js";import{d as M}from"./udp-avatar2.js";import{d as B}from"./udp-badge2.js";import{d as J}from"./udp-button2.js";import{d as Q}from"./udp-container2.js";import{d as z}from"./udp-date-selector2.js";import{d as W}from"./udp-datetime-selector2.js";import{d as G}from"./udp-dialog2.js";import{d as H}from"./udp-divider2.js";import{d as X}from"./udp-flexbox2.js";import{d as Y}from"./udp-fluent-avatar2.js";import{d as Z}from"./udp-fluent-badge2.js";import{d as tt}from"./udp-fluent-button2.js";import{d as et}from"./udp-fluent-dialog2.js";import{d as st}from"./udp-fluent-icon2.js";import{d as it}from"./udp-fluent-icon-button2.js";import{d as ot}from"./udp-fluent-menu2.js";import{d as nt}from"./udp-fluent-switch2.js";import{d as rt}from"./udp-fluent-text-input2.js";import{d as at}from"./udp-forms-ui2.js";import{d as ut}from"./udp-icon2.js";import{d as lt}from"./udp-icon-button2.js";import{d as dt}from"./udp-linear-loader2.js";import{d as ct}from"./list-item.js";import{d as mt}from"./udp-list-renderer2.js";import{d as ht}from"./udp-menu-item2.js";import{d as pt}from"./udp-pagination2.js";import{d as ft}from"./udp-pop-over2.js";import{d as bt}from"./udp-primary-action-header2.js";import{d as vt}from"./udp-question2.js";import{d as yt}from"./udp-question-comments2.js";import{d as jt}from"./udp-save-draft-button2.js";import{d as wt}from"./udp-search-input2.js";import{d as St}from"./udp-selector2.js";import{d as gt}from"./udp-side-sheet2.js";import{d as Ot}from"./udp-spinner2.js";import{d as Et}from"./udp-text2.js";import{d as kt}from"./udp-time-selector2.js";import{d as It}from"./udp-tooltip2.js";import{d as Ft}from"./unity-typography2.js";class Dt{constructor(t={}){this.id=null,this.formId=null,this.formVersion=null,this.data={},this.unityUserId=null,this.clusterId=null,this.userDisplayName="",this.status=null,this.businessObjectKey="",this.udpTags=[],this.form=null,this.initialCreatedOn=null,this.lastModifiedOn=null,this.submittedOn=null,this.generic1=null,this.generic2=null,this.generic3=null,this.userEmail=null,Object.assign(this,t)}processSubmissionIntoFormDataWithoutValues(t){const e=this.buildBaseSubmissionData(t),s=m(e);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,e){var s;const i=this.buildBaseSubmissionData(e),{cleanedData:o,files:n}=this.extractCleanedDataAndFiles(t),r=m(i);n.forEach((t=>r.append("FormFiles",t)));const a={submissionResponseData:o,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(a)),r}buildBaseSubmissionData(t){var e;const s={FormId:this.formId,FormVersion:""+(null!==(e=this.formVersion)&&void 0!==e?e:""),Status:t};return this.id&&(s.Id=this.id),s.InitialCreatedOn=this.initialCreatedOn?this.initialCreatedOn:(new Date).toISOString(),s.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn:(new Date).toISOString(),this.submittedOn&&(s.submittedOn=this.submittedOn),this.generic1&&(s.generic1=""+this.generic1),this.generic2&&(s.generic2=""+this.generic2),this.generic3&&(s.generic3=""+this.generic3),s}extractCleanedDataAndFiles(t){const e=[],s={};for(const i in t){s[i]={};for(const o in t[i]){const n=t[i][o],{value:r,fieldFiles:a}=this.extractValueAndFiles(n);a&&e.push(...a);const u=this.processComments(n.comments),l=this.processMetadata(n.metadata);s[i][o]=Object.assign({value:r,comments:u},l&&{metadata:l})}}return{cleanedData:s,files:e}}extractValueAndFiles(t){var e,s;let i=(null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.files)?t.value.value:null==t?void 0:t.value;const o=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return o&&Array.isArray(o)?{value:"string"==typeof i&&""!==i.trim()?i:"",fieldFiles:o}:function(t){return!!Array.isArray(t)&&t.every((t=>t instanceof File))}(i)?{value:i.length>0?i.map((t=>t.name)).join(","):"",fieldFiles:i}:i instanceof File?{value:i.name,fieldFiles:[i]}:Array.isArray(i)?{value:i.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:i}}processComments(t){var e;return null!==(e=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==e?e:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class $t{constructor(t,e){this.accessMode=t,this.tenantId=e}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const e=t.includes("?")?"&":"?";return`${t}${e}tenantId=${encodeURIComponent(this.tenantId+"")}`}async addComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await h("POST",s,e,!0)}async updateComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:i,commentId:o,value:n}=e,r=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${o}`;await h("PUT",r,{value:n,sectionKey:s,questionKey:i},!0)}async deleteComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot delete a comment without a submission ID.");const{commentId:s}=e,i=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await h("DELETE",i,null,!0)}async fetchAndPopulateUdpFormSubmissionObj(t){if(!(null==t?void 0:t.id))return console.warn("Cannot fetch form submission without an ID."),t;if("public"===this.accessMode){const e=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return e?new Dt(Object.assign(Object.assign({},t),e)):t}const{id:e}=t,s=await this.getFormSubmissionById(e);return s?new Dt(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,a.InProgress)}async saveCurrentFormSubmissionState(t,e){return"public"===this.accessMode?e:this.saveSubmissionToDB(t,e,a.InProgress)}async finalizeFormSubmissionState(t,e){return this.saveSubmissionToDB(t,e,a.Submitted)}async saveFormDataWithoutValues(t,e){const s=t.processSubmissionIntoFormDataWithoutValues(e),{method:i,url:o}=this.getApiRequestInfo(t),n=this.appendTenantQueryIfPublic(o),r=await h(i,n,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new Dt(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const e=`${b.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:e}:t.id?{method:"PUT",url:e}:{method:"POST",url:e}}async saveSubmissionToDB(t,e,s){const i=e.processSubmissionIntoFormData(t,s),{method:o,url:n}=this.getApiRequestInfo(e),r=this.appendTenantQueryIfPublic(n),a=await h(o,r,i,!0);if(""===a)return await this.fetchAndPopulateUdpFormSubmissionObj(e);const u=new Dt(Object.assign(Object.assign({},e),a));return Object.assign(e,u),u}async getFormSubmissionById(t){var e;try{const s=new p(1,1).addFilter("id",t,f.EQUALS),i=await s.execute("UdpFormSubmission");return(null===(e=null==i?void 0:i.pageList)||void 0===e?void 0:e[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,e){var s;try{const i=new p(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",e,f.EQUALS),o=await i.execute("UdpFormSubmission");return(null===(s=null==o?void 0:o.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class Ct{static create(t,e,s){return new $t(t?"public":"private",null!=s?s:void 0)}}class xt{constructor(t,e=!1){this.tenantId=t,this.isPublicMode=e}buildDescribeUrl(t,e){const s=b.productV1ApiUrl,i=new URLSearchParams;if("number"==typeof e&&i.set("formVersion",e+""),this.isPublicMode){this.tenantId&&i.set("tenantId",this.tenantId+"");const e=""+i;return`${s}/UdpForm/${t}/describe/public${e?"?"+e:""}`}const o=""+i;return`${s}/UdpForm/${t}/describe${o?"?"+o:""}`}async getFormByFormIdAndFormVersion(t,e){const s=this.buildDescribeUrl(t,e),i=await h("GET",s,void 0,!1);return i.styleOverrides&&"string"==typeof i.styleOverrides&&(i.styleOverrides=JSON.parse(i.styleOverrides)),i}async getFormByFormIdLatestVersion(t){const e=this.buildDescribeUrl(t),s=await h("GET",e,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class Ut{constructor(t){t&&Object.assign(this,t)}}const Pt=(t,e)=>{const s=Object.keys(e),i=new Set,o=RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const e=t.match(o);e&&e[1]&&i.add(Number(e[1]))})),Array.from(i).sort(((t,e)=>t-e))},qt=(t,e)=>{const s=`${"undefined"!=typeof window?window.location.pathname:"/page/"+u.FormRendererPrivatePageId}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,i=e;if(i){if("function"==typeof i.replace)return void i.replace(s);if("function"==typeof i.push)return void i.push(s);if("function"==typeof i){try{i(s,{replace:!0})}catch(t){i(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},At=(t,e)=>{null==e||e(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},Kt=(t,e)=>{null==e||e(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},Tt=(t,e)=>{var s;const i=t&&"object"==typeof t?t:{};for(const t of e||[]){const e=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(e){i[e]&&"object"==typeof i[e]||(i[e]={});for(const o of t.formQuestions||[]){const t=null==o?void 0:o.name;if(!t)continue;const n=null===(s=i[e])||void 0===s?void 0:s[t];n&&"object"==typeof n?("comments"in n||(n.comments=[]),"metadata"in n||(n.metadata=null),"value"in n||(n.value=null)):i[e][t]={value:null,comments:[],metadata:null}}}}return i},Vt=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},Lt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tenantId=null,this.isPublicMode=!1,this.autoSaveDelay=2e3,this.urlContext={},this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.isSubmitted=!1,this.dynamicSections=[],this.isUpdatingSections=!1,this.reRenderKey=0,this.hasUnsavedChanges=!1,this.sideSheetFollowUpFormsList=[],this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpSideSheetListPageNumber=1,this.formTemplateOverrides=null,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE=5,this.componentMap={history:"history",listItemData:"listItemData",handleLaunchFollowUpForm:"handleLaunchFollowUpForm"},this.clientUserInfo={id:null,displayName:null,email:null},this.followUpParentSectionKey="",this.followUpParentQuestionKey="",this.publicFeatures={allowDraftSave:!1,allowComments:!0,allowFollowUpForms:!1},this.handleLaunchFollowUpFormSideSheet=async t=>{try{if(this.isPublicMode)return;this.followUpParentSectionKey=t.detail.sectionKey,this.followUpParentQuestionKey=t.detail.questionKey,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey),this.isFollowUpFormsSideSheetOpen=!0}catch(t){console.error("Error loading follow-up forms:",t)}},this.duplicateRepeatableSection=t=>{if(!this.isSubmitted&&!this.isUpdatingSections){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{var e,s,i;const{dynamicSections:n,values:r,index:a}=t,u=n[a];if(!u)return{nextDynamicSections:n,nextValues:r};const d=u.name,c=Pt(d,r),m=c.length>0?Math.max(...c)+1:2,h=Object.assign(Object.assign({},o(u)),{formQuestions:(u.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${d}_${m}.${t.name}`,e})),isOriginalSection:!1,sectionPositionSuffix:m});let p=a;for(let t=a+1;t<n.length&&n[t].name===d;t++)p=t;const f=[...n.slice(0,p+1),h,...n.slice(p+1)],b=Object.assign({},r||{}),v=`${d}_${m}`,y=(t=>t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`)(u);for(const t of h.formQuestions||[]){b[v]||(b[v]={});let o="";if(t.fieldTypeId===l.Paragraph){const n=null===(s=null===(e=null==r?void 0:r[y])||void 0===e?void 0:e[t.name])||void 0===s?void 0:s.value,a=Vt(t.fieldProperties),u=null!==(i=null==a?void 0:a.paragraphText)&&void 0!==i?i:"";o=null!=n?n:u}b[v][t.name]={value:o,comments:[],metadata:{}}}return{nextDynamicSections:f,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.deleteRepeatableSection=t=>{if(this.isSubmitted)return;const e=this.dynamicSections[t];if(e&&!e.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{const{dynamicSections:e,values:s,index:i}=t,n=e[i];if(!n||n.isOriginalSection)return{nextDynamicSections:e,nextValues:s};const r=n.name,a=n.sectionPositionSuffix,u=`${r}_${a}`,l=Object.assign({},s||{});delete l[u];const d=o(e);return d.splice(i,1),d.forEach((t=>{var e;if(t.name!==r||t.isOriginalSection||(null!==(e=t.sectionPositionSuffix)&&void 0!==e?e:0)<=(null!=a?a:0))return;const s=t.sectionPositionSuffix,i=`${r}_${s}`,n=s-1,u=`${r}_${n}`;t.sectionPositionSuffix=n,t.formQuestions=(t.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${u}.${t.name}`,e})),l[i]&&(l[u]=l[i],delete l[i])})),{nextDynamicSections:d,nextValues:l}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.performBackgroundSaveAndUpdateLocalSubmissionState=async t=>{const e=Tt(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(e)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,e)=>{var s,i;const o=null!==(s=null==e?void 0:e.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,n=null!==(i=null==e?void 0:e.forceCreateDraftIfMissingId)&&void 0!==i&&i;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||n){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const e=Tt(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),o&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&qt(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,e;if(!(null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id))return;const s=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);this.udpFormSubmission=s,this.currentValues=Object.assign({},(null===(e=s.data)||void 0===e?void 0:e.submissionResponseData)||{}),this.isSubmitted=s.status===a.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const e=Tt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||qt(this.udpFormSubmission.id,this.history),At("Form saved successfully.",this.enqueueSnackbar)}catch(t){Kt("There was an error saving this form",this.enqueueSnackbar)}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.handleFormChange=t=>{this.isUpdatingSections||(this.udpFormSubmission.data.submissionResponseData=t)},this.handleFinish=()=>{this.triggerAction&&this.triggerAction(null,{action:"finish"})},this.triggerFormRerender=()=>{const t=window.scrollY;this.reRenderKey+=1,requestAnimationFrame((()=>{window.scrollTo({top:t,behavior:"auto"})}))},this.handleLaunchFollowUpForm=async(t,e,s,i,o,n,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,e),l={submissionResponseData:c(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:i,formVersion:o}}},d=new Dt({formId:t,formVersion:e,unityUserId:this.clientUserInfo.id,data:l}),m=Ct.create(!1,this.clientUserInfo.id),h=await m.createNewLinkedFollowUpFormSubmission(d);this.udpFormSubmission.data.submissionResponseData[n][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[n][r].metadata),{followUpFormSubmissionId:h.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${u.FormRendererPrivatePageId}?udpf_submissionId=${h.id}`,"_blank"),this.handleSideSheetClose(),this.triggerFormRerender()},this.handleSideSheetClose=()=>{this.sideSheetFollowUpFormsList=[],this.followUpSideSheetListPageNumber=1,this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpParentSectionKey="",this.followUpParentQuestionKey=""}}initClientUserInfo(){var t;if(this.isPublicMode)this.clientUserInfo.id="00000000-0000-0000-0000-000000000001",this.clientUserInfo.displayName="Anonymous",this.clientUserInfo.email="Anonymous";else{const e=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);e&&(this.clientUserInfo.id=e.id||null,this.clientUserInfo.displayName=e.name||null,this.clientUserInfo.email=e.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=Ct.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new Dt({id:this.submissionId,formId:this.formId,formVersion:this.formVersion,unityUserId:this.clientUserInfo.id,generic1:this.urlContext.generic1,generic2:this.urlContext.generic2,generic3:this.urlContext.generic3})}normalizeOverrideValue(t){if(null==t)return null;const e=(t+"").trim();return e.length>0?e:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,e,s,i;const o=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),n=this.normalizeOverrideValue(null===(e=this.urlContext)||void 0===e?void 0:e.override_formdescription);(o||n)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)!==a.Created||(this.formTemplateOverrides={formName:o,formDescription:n}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,e,s,i;const o=null===(e=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===e?void 0:e.formTemplateOverrides,n=this.normalizeOverrideValue(null!==(s=null==o?void 0:o.formName)&&void 0!==s?s:null==o?void 0:o.FormName),r=this.normalizeOverrideValue(null!==(i=null==o?void 0:o.formDescription)&&void 0!==i?i:null==o?void 0:o.FormDescription);(n||r)&&(this.formTemplateOverrides={formName:n,formDescription:r})}ensureOverridesPersistedToSubmissionData(){if(!this.formTemplateOverrides)return;if(!this.udpFormSubmission)return;this.udpFormSubmission.data&&"object"==typeof this.udpFormSubmission.data||(this.udpFormSubmission.data={});const{formName:t,formDescription:e}=this.formTemplateOverrides;(t||e)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=e?e:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,e;return this.submissionId?(t=this.udpFormSubmission.formId,e=this.udpFormSubmission.formVersion):(t=this.formId,e=this.formVersion),{formId:t,formVersion:e}}async loadFormAndInitValues(t,e){var s,i,o;this.formHandler=new xt(this.tenantId,this.isPublicMode);const n="number"==typeof e?await this.formHandler.getFormByFormIdAndFormVersion(t,e):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new Ut(n),"number"!=typeof e){const t=null!==(i=null!==(s=null==n?void 0:n.version)&&void 0!==s?s:null==n?void 0:n.formVersion)&&void 0!==i?i:null===(o=this.udpForm)||void 0===o?void 0:o.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=c(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===a.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],e=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((e=>{const s=(e+"").toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==a.Created||!e)this.dynamicSections=((t,e)=>{var s;const i=[],o=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const n of o){n.sectionProperties=JSON.parse(n.sectionProperties||{});const o=Pt(n.name,e);if(n.isOriginalSection=!0,n.sectionPositionSuffix=1,i.push(Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=n.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&o.length>0){const e=Math.max(...o);for(let s=2;s<=e;s++){const e=Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});i.push(e)}}}return i})(this.udpForm,this.currentValues);else{const e={};Object.keys(this.urlContext).forEach((s=>{const i=s+"",o=i.toLowerCase(),n=t.find((t=>o.startsWith(t)));n&&(e[i.substring(n.length)]=this.urlContext[s])})),this.dynamicSections=((t,e,s)=>{var i,o;const n=(t=>{const e={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const i=t.match(/^([^._?&#]+)_(\d+)\./);if(!i)return;const o=i[1],n=Number(i[2]);!Number.isFinite(n)||n<2||n>(null!==(s=e[o])&&void 0!==s?s:1)&&(e[o]=n)})),e})(s),r=[],a=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const s of a){s.sectionProperties=JSON.parse(s.sectionProperties||{});const a=Pt(s.name,e),u=a.length>0?Math.max(...a):1,l=null!==(i=null==n?void 0:n[s.name])&&void 0!==i?i:1,d=Math.max(u,l);if(s.isOriginalSection=!0,s.sectionPositionSuffix=1,r.push(Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(o=s.sectionProperties)||void 0===o?void 0:o.isRepeatable)&&d>=2)for(let e=2;e<=d;e++){const i=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${e}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:e});r.push(i)}}return r})(this.udpForm,this.currentValues,e);const s=((t,e)=>{if(!Array.isArray(t))return;const s=e&&"object"==typeof e?e:{},i={};Object.keys(s).forEach((t=>{i[(t+"").toLowerCase()]=s[t]}));const o={};t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;(t.formQuestions||[]).forEach((t=>{if(!t)return;const s=[t.processedSubmissionName,t.questionIdentifierKey,t.name].filter(Boolean);let n;for(const t of s){const e=(t+"").toLowerCase();if(Object.prototype.hasOwnProperty.call(i,e)){n=i[e];break}}null!=n&&(o[e]||(o[e]={}),o[e][t.name]={value:n,comments:[]})}))}));const n={};return Object.entries(o).forEach((([t,e])=>{n[t]||(n[t]={}),Object.entries(e).forEach((([e,s])=>{const i=n[t][e];(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim())&&(n[t][e]=s)}))})),t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;n[e]||(n[e]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===l.Paragraph){const i=n[e][t.name];if(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim()){let i=null==t?void 0:t.fieldProperties;if("string"==typeof i)try{i=JSON.parse(i||"{}")}catch(t){i={}}n[e][t.name]={value:null!==(s=null==i?void 0:i.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),n})(this.dynamicSections,e);s&&(this.currentValues=s,this.udpFormSubmission.data.submissionResponseData=Object.assign({},s))}}initDebouncedFns(){this.debouncedManualSave=n((async t=>{await this.handleManualSave(t)}),2e3,{leading:!0,trailing:!1})}componentDidLoad(){this.el&&(this.el.addEventListener("questionCommentAction",(async t=>this.handleQuestionCommentLiveCRUD(t))),this.el.addEventListener("launchFollowUpFormSideSheet",(t=>this.handleLaunchFollowUpFormSideSheet(t))),this.el.addEventListener("formDirtyChange",(t=>{this.hasUnsavedChanges=this.hasUnsavedChanges||t.detail})),this.el.addEventListener("udpFormsSubmitInvalid",(()=>{Kt("Please fill out all required fields.",this.enqueueSnackbar)})))}async componentWillLoad(){this.isLoading=!0;try{this.initClientUserInfo(),this.initHandlersAndLocalSubmission(),await this.loadExistingSubmissionIfNeeded(),this.initFormTemplateOverridesFromUrlContextIfEligible();const{formId:t,formVersion:e}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,e),this.initDynamicSectionsAndApplyUrlSeed(),this.initDebouncedFns()}catch(t){console.error("Error failed to load form in the form renderer:",t)}finally{this.isLoading=!1}}async handleSubmit(t){this.isLoading=!0;try{const e=Tt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw Kt("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var e,s,i,o,n,r;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:u,questionIdentifierKey:l,commentId:d}=t.detail,c=function(t){var e,s,i,o,n;const{actionType:r,questionIdentifierKey:a,commentId:u,currentSubmissionResponseData:l,clientUserInfo:d}=t,c=(a||"").split("."),m=c[0]||"",h=c[1]||"";if(!m||!h)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:l||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const p=l||{},f=p[m]||{},b=f[h],y=Object.assign(Object.assign({},p),{[m]:Object.assign({},f)});b?(y[m][h]=Object.assign({},b),y[m][h].comments=null!==(e=y[m][h].comments)&&void 0!==e?e:[],y[m][h].draftComments=null!==(s=y[m][h].draftComments)&&void 0!==s?s:[],y[m][h].metadata=null!==(i=y[m][h].metadata)&&void 0!==i?i:{}):y[m][h]={value:"",comments:[],draftComments:[],metadata:{}};const j=y[m][h].draftComments;j&&!Array.isArray(j)?y[m][h].draftComments=[j]:j||(y[m][h].draftComments=[]);const w=Array.isArray(y[m][h].comments)?[...y[m][h].comments]:[],S=Array.isArray(y[m][h].draftComments)?[...y[m][h].draftComments]:[];let g=!1;switch(r){case"add":{const t={value:"",commentId:v(),isTempComment:!0,timestamp:null};y[m][h].draftComments=[t,...S],g=!0;break}case"save":{const t=S.findIndex((t=>t.commentId===u));if(-1===t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=S[t],s=e.timestamp||(new Date).toISOString(),i=Object.assign(Object.assign({},e),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==d?void 0:d.id,userDisplayName:null==d?void 0:d.displayName,isDraftComment:!1}),o=w.findIndex((t=>t.commentId===u));if(-1!==o){const t=[...w];t[o]=Object.assign({},i),y[m][h].comments=t}else y[m][h].comments=[...w,i];y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0;break}case"edit":{const t=w.find((t=>t.commentId===u));if(!t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[m][h].draftComments=[e,...S],y[m][h].comments=w,g=!0;break}case"delete":y[m][h].comments=w.map((t=>t.commentId===u?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),g=!0;break;case"editClose":y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0}const O="save"===r||"delete"===r;let E;if("save"===r){const t=((null===(n=null===(o=null==y?void 0:y[m])||void 0===o?void 0:o[h])||void 0===n?void 0:n.comments)||[]).find((t=>t.commentId===u));E=null==t?void 0:t.value}return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:g,shouldPersist:O,persistIntent:"none",commentId:u,valueToPersist:E}}({actionType:u,questionIdentifierKey:l,commentId:d,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),m=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},m),"edit"!==u&&"editClose"!==u&&"add"!==u||(this.currentValues=Object.assign({},m)),c.shouldPersist){const t=(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)===a.Submitted,l=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,d=((null===(n=null===(o=null===(i=this.currentValues||{})||void 0===i?void 0:i[c.sectionKey])||void 0===o?void 0:o[c.questionKey])||void 0===n?void 0:n.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!l)if(null===(r=this.udpFormSubmission)||void 0===r?void 0:r.id){if("save"===u){const t=c.valueToPersist;if(t)try{d?await this.formSubmissionHandler.updateComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}):await this.formSubmissionHandler.addComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),At(d?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw Kt(d?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===u)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),At("Comment deleted.",this.enqueueSnackbar)}catch(t){throw Kt("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},m);else this.isPublicMode?this.currentValues=Object.assign({},m):await this.handleManualSave(m)}else this.currentValues=Object.assign({},m)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}async loadFollowUpForms(t,e){var s;this.isLoading=!0;try{const i=(await r(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:d.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!i||!Array.isArray(i.pageList))throw Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(i.pageList,t,e),this.followUpSideSheetTotalItems=null!==(s=i.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,e,s){return t.map((t=>({listItemData:t,history:this.history,handleLaunchFollowUpForm:async()=>await this.handleLaunchFollowUpForm(t.id,t.version,this.udpFormSubmission.id,this.udpFormSubmission.formId,this.udpFormSubmission.formVersion,e,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:s("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&s("udp-linear-loader",null),s("udp-list-renderer",{itemComponent:"udp-forms-follow-up-list-card",data:this.sideSheetFollowUpFormsList,pagination:!0,isServerSide:!0,isLoading:this.isLoading,itemsPerPage:this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,currentPage:this.followUpSideSheetListPageNumber,totalItems:this.followUpSideSheetTotalItems,onPageChange:t=>this.handleSideSheetPageChange(t.detail),componentDataMap:this.componentMap,spacing:"md"}))}isShowManualSaveIcon(){return!this.isPublicMode&&(!!this.clientUserInfo.id&&this.hasUnsavedChanges)}get isReadOnlyMode(){return this.isSubmitted||this.udpFormSubmission.unityUserId!==this.clientUserInfo.id}render(){return s("div",{key:"43693c3e7463897dc09265c782d9267ee08f07b4",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),s("udp-forms-ui",{udpForm:this.udpForm,formTemplateOverrides:this.formTemplateOverrides,currentValues:this.currentValues,udpFormSubmission:this.udpFormSubmission,submitSuccessful:this.submitSuccessful,isSaving:this.isSaving,readonly:this.isReadOnlyMode,handleSubmit:this.handleSubmit.bind(this),handleSave:t=>Promise.resolve(this.debouncedManualSave(t)),handleChange:this.handleFormChange,handleAction:this.triggerAction,handleFinish:this.handleFinish,clientUserInfo:this.clientUserInfo,isSubmitted:this.isSubmitted,dynamicSections:this.dynamicSections,duplicateRepeatableSection:this.duplicateRepeatableSection,deleteRepeatableSection:this.deleteRepeatableSection,key:"form-rerender-key-"+this.reRenderKey,isShowManualSaveIcon:this.isShowManualSaveIcon(),isLoading:this.isLoading,performBackgroundSaveAndUpdateLocalSubmissionState:this.performBackgroundSaveAndUpdateLocalSubmissionState}))}get el(){return this}},[1,"udp-forms-renderer",{formId:[1,"form-id"],formVersion:[2,"form-version"],submissionId:[1,"submission-id"],tenantId:[1,"tenant-id"],triggerAction:[16],isPublicMode:[4,"is-public-mode"],callbackUrl:[1,"callback-url"],getUserCallback:[16],enqueueSnackbar:[16],closeSnackbar:[16],autoSaveDelay:[2,"auto-save-delay"],history:[8],urlContext:[16],currentValues:[32],submitSuccessful:[32],isLoading:[32],isSaving:[32],isSubmitted:[32],dynamicSections:[32],isUpdatingSections:[32],reRenderKey:[32],hasUnsavedChanges:[32],sideSheetFollowUpFormsList:[32],followUpSideSheetTotalItems:[32],isFollowUpFormsSideSheetOpen:[32],followUpSideSheetListPageNumber:[32],formTemplateOverrides:[32]}]),_t=Lt,Nt=function(){"undefined"!=typeof customElements&&["udp-forms-renderer","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","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-forms-ui","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-list-renderer","udp-menu-item","udp-pagination","udp-pop-over","udp-primary-action-header","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-renderer":customElements.get(i(t))||customElements.define(i(t),Lt);break;case"address-search":customElements.get(i(t))||y();break;case"ag-grid-base":customElements.get(i(t))||j();break;case"base-map":customElements.get(i(t))||w();break;case"client-side-grid":customElements.get(i(t))||S();break;case"custom-button":customElements.get(i(t))||g();break;case"file-upload":customElements.get(i(t))||O();break;case"form-metadata-display":customElements.get(i(t))||E();break;case"ghost-render":customElements.get(i(t))||k();break;case"grid-header":customElements.get(i(t))||I();break;case"hint-panel":customElements.get(i(t))||F();break;case"image-upload":customElements.get(i(t))||D();break;case"location-input":customElements.get(i(t))||$();break;case"numeric-field":customElements.get(i(t))||C();break;case"selectable-list":customElements.get(i(t))||x();break;case"signature-input":customElements.get(i(t))||U();break;case"stencil-field":customElements.get(i(t))||P();break;case"stencil-form":customElements.get(i(t))||q();break;case"stencil-icon-button":customElements.get(i(t))||A();break;case"table-input":customElements.get(i(t))||K();break;case"tally-display":customElements.get(i(t))||T();break;case"text-area":customElements.get(i(t))||V();break;case"text-field":customElements.get(i(t))||L();break;case"udp-adornment":customElements.get(i(t))||_();break;case"udp-ambient-card":customElements.get(i(t))||N();break;case"udp-ambient-tool-tip":customElements.get(i(t))||R();break;case"udp-avatar":customElements.get(i(t))||M();break;case"udp-badge":customElements.get(i(t))||B();break;case"udp-button":customElements.get(i(t))||J();break;case"udp-container":customElements.get(i(t))||Q();break;case"udp-date-selector":customElements.get(i(t))||z();break;case"udp-datetime-selector":customElements.get(i(t))||W();break;case"udp-dialog":customElements.get(i(t))||G();break;case"udp-divider":customElements.get(i(t))||H();break;case"udp-flexbox":customElements.get(i(t))||X();break;case"udp-fluent-avatar":customElements.get(i(t))||Y();break;case"udp-fluent-badge":customElements.get(i(t))||Z();break;case"udp-fluent-button":customElements.get(i(t))||tt();break;case"udp-fluent-dialog":customElements.get(i(t))||et();break;case"udp-fluent-icon":customElements.get(i(t))||st();break;case"udp-fluent-icon-button":customElements.get(i(t))||it();break;case"udp-fluent-menu":customElements.get(i(t))||ot();break;case"udp-fluent-switch":customElements.get(i(t))||nt();break;case"udp-fluent-text-input":customElements.get(i(t))||rt();break;case"udp-forms-ui":customElements.get(i(t))||at();break;case"udp-icon":customElements.get(i(t))||ut();break;case"udp-icon-button":customElements.get(i(t))||lt();break;case"udp-linear-loader":customElements.get(i(t))||dt();break;case"udp-list-item":customElements.get(i(t))||ct();break;case"udp-list-renderer":customElements.get(i(t))||mt();break;case"udp-menu-item":customElements.get(i(t))||ht();break;case"udp-pagination":customElements.get(i(t))||pt();break;case"udp-pop-over":customElements.get(i(t))||ft();break;case"udp-primary-action-header":customElements.get(i(t))||bt();break;case"udp-question":customElements.get(i(t))||vt();break;case"udp-question-comments":customElements.get(i(t))||yt();break;case"udp-save-draft-button":customElements.get(i(t))||jt();break;case"udp-search-input":customElements.get(i(t))||wt();break;case"udp-selector":customElements.get(i(t))||St();break;case"udp-side-sheet":customElements.get(i(t))||gt();break;case"udp-spinner":customElements.get(i(t))||Ot();break;case"udp-text":customElements.get(i(t))||Et();break;case"udp-time-selector":customElements.get(i(t))||kt();break;case"udp-tooltip":customElements.get(i(t))||It();break;case"unity-typography":customElements.get(i(t))||Ft()}}))};export{_t as UdpFormsRenderer,Nt as defineCustomElement}
|
|
2
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import{cloneDeep as o,throttle as n}from"lodash-es";import{f as r}from"./udp-form-api-utils.js";import{c as a,b as u,U as l,a as d}from"./enums.js";import{b as c}from"./utils.js";import{c as m,m as h}from"./makeApiCall.js";import{S as p}from"./SearchBuilder.js";import{a as f}from"./searchObject.js";import{C as b}from"./configService.js";import{v4 as v}from"uuid";import{d as y}from"./address-search2.js";import{d as j}from"./ag-grid-base2.js";import{d as w}from"./base-map2.js";import{d as S}from"./client-side-grid2.js";import{d as g}from"./custom-button2.js";import{d as O}from"./file-upload2.js";import{d as E}from"./form-metadata-display2.js";import{d as k}from"./ghost-render2.js";import{d as I}from"./grid-header2.js";import{d as F}from"./hint-panel2.js";import{d as D}from"./image-upload2.js";import{d as $}from"./location-input2.js";import{d as C}from"./numeric-field2.js";import{d as x}from"./selectable-list2.js";import{d as U}from"./signature-input2.js";import{d as P}from"./stencil-field2.js";import{d as q}from"./stencil-form2.js";import{d as A}from"./stencil-icon-button2.js";import{d as K}from"./table-input2.js";import{d as T}from"./tally.js";import{d as V}from"./text-area2.js";import{d as L}from"./text-field2.js";import{d as _}from"./udp-adornment2.js";import{d as N}from"./udp-ambient-card2.js";import{d as R}from"./udp-ambient-tool-tip2.js";import{d as M}from"./udp-avatar2.js";import{d as B}from"./udp-badge2.js";import{d as J}from"./udp-button2.js";import{d as Q}from"./udp-container2.js";import{d as z}from"./udp-date-selector2.js";import{d as W}from"./udp-datetime-selector2.js";import{d as G}from"./udp-dialog2.js";import{d as H}from"./udp-divider2.js";import{d as X}from"./udp-flexbox2.js";import{d as Y}from"./udp-fluent-avatar2.js";import{d as Z}from"./udp-fluent-badge2.js";import{d as tt}from"./udp-fluent-button2.js";import{d as et}from"./udp-fluent-dialog2.js";import{d as st}from"./udp-fluent-icon2.js";import{d as it}from"./udp-fluent-icon-button2.js";import{d as ot}from"./udp-fluent-menu2.js";import{d as nt}from"./udp-fluent-switch2.js";import{d as rt}from"./udp-fluent-text-input2.js";import{d as at}from"./udp-forms-ui2.js";import{d as ut}from"./udp-icon2.js";import{d as lt}from"./udp-icon-button2.js";import{d as dt}from"./udp-linear-loader2.js";import{d as ct}from"./list-item.js";import{d as mt}from"./udp-list-renderer2.js";import{d as ht}from"./udp-menu-item2.js";import{d as pt}from"./udp-pagination2.js";import{d as ft}from"./udp-pop-over2.js";import{d as bt}from"./udp-primary-action-header2.js";import{d as vt}from"./udp-question2.js";import{d as yt}from"./udp-question-comments2.js";import{d as jt}from"./udp-save-draft-button2.js";import{d as wt}from"./udp-search-input2.js";import{d as St}from"./udp-selector2.js";import{d as gt}from"./udp-side-sheet2.js";import{d as Ot}from"./udp-spinner2.js";import{d as Et}from"./udp-text2.js";import{d as kt}from"./udp-time-selector2.js";import{d as It}from"./udp-tooltip2.js";import{d as Ft}from"./unity-typography2.js";class Dt{constructor(t={}){this.id=null,this.formId=null,this.formVersion=null,this.data={},this.unityUserId=null,this.clusterId=null,this.userDisplayName="",this.status=null,this.businessObjectKey="",this.udpTags=[],this.form=null,this.initialCreatedOn=null,this.lastModifiedOn=null,this.submittedOn=null,this.generic1=null,this.generic2=null,this.generic3=null,this.userEmail=null,Object.assign(this,t)}processSubmissionIntoFormDataWithoutValues(t){const e=this.buildBaseSubmissionData(t),s=m(e);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,e){var s;const i=this.buildBaseSubmissionData(e),{cleanedData:o,files:n}=this.extractCleanedDataAndFiles(t),r=m(i);n.forEach((t=>r.append("FormFiles",t)));const a={submissionResponseData:o,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(a)),r}buildBaseSubmissionData(t){var e;const s={FormId:this.formId,FormVersion:""+(null!==(e=this.formVersion)&&void 0!==e?e:""),Status:t};return this.id&&(s.Id=this.id),s.InitialCreatedOn=this.initialCreatedOn?this.initialCreatedOn:(new Date).toISOString(),s.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn:(new Date).toISOString(),this.submittedOn&&(s.submittedOn=this.submittedOn),this.generic1&&(s.generic1=""+this.generic1),this.generic2&&(s.generic2=""+this.generic2),this.generic3&&(s.generic3=""+this.generic3),s}extractCleanedDataAndFiles(t){const e=[],s={};for(const i in t){s[i]={};for(const o in t[i]){const n=t[i][o],{value:r,fieldFiles:a}=this.extractValueAndFiles(n);a&&e.push(...a);const u=this.processComments(n.comments),l=this.processMetadata(n.metadata);s[i][o]=Object.assign({value:r,comments:u},l&&{metadata:l})}}return{cleanedData:s,files:e}}extractValueAndFiles(t){var e,s;let i=(null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.files)?t.value.value:null==t?void 0:t.value;const o=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return o&&Array.isArray(o)?{value:"string"==typeof i&&""!==i.trim()?i:"",fieldFiles:o}:function(t){return!!Array.isArray(t)&&t.every((t=>t instanceof File))}(i)?{value:i.length>0?i.map((t=>t.name)).join(","):"",fieldFiles:i}:i instanceof File?{value:i.name,fieldFiles:[i]}:Array.isArray(i)?{value:i.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:i}}processComments(t){var e;return null!==(e=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==e?e:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class $t{constructor(t,e){this.accessMode=t,this.tenantId=e}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const e=t.includes("?")?"&":"?";return`${t}${e}tenantId=${encodeURIComponent(this.tenantId+"")}`}async addComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await h("POST",s,e,!0)}async updateComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:i,commentId:o,value:n}=e,r=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${o}`;await h("PUT",r,{value:n,sectionKey:s,questionKey:i},!0)}async deleteComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot delete a comment without a submission ID.");const{commentId:s}=e,i=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await h("DELETE",i,null,!0)}async fetchAndPopulateUdpFormSubmissionObj(t){if(!(null==t?void 0:t.id))return console.warn("Cannot fetch form submission without an ID."),t;if("public"===this.accessMode){const e=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return e?new Dt(Object.assign(Object.assign({},t),e)):t}const{id:e}=t,s=await this.getFormSubmissionById(e);return s?new Dt(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,a.InProgress)}async saveCurrentFormSubmissionState(t,e){return"public"===this.accessMode?e:this.saveSubmissionToDB(t,e,a.InProgress)}async finalizeFormSubmissionState(t,e){return this.saveSubmissionToDB(t,e,a.Submitted)}async saveFormDataWithoutValues(t,e){const s=t.processSubmissionIntoFormDataWithoutValues(e),{method:i,url:o}=this.getApiRequestInfo(t),n=this.appendTenantQueryIfPublic(o),r=await h(i,n,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new Dt(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const e=`${b.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:e}:t.id?{method:"PUT",url:e}:{method:"POST",url:e}}async saveSubmissionToDB(t,e,s){const i=e.processSubmissionIntoFormData(t,s),{method:o,url:n}=this.getApiRequestInfo(e),r=this.appendTenantQueryIfPublic(n),a=await h(o,r,i,!0);if(""===a)return await this.fetchAndPopulateUdpFormSubmissionObj(e);const u=new Dt(Object.assign(Object.assign({},e),a));return Object.assign(e,u),u}async getFormSubmissionById(t){var e;try{const s=new p(1,1).addFilter("id",t,f.EQUALS),i=await s.execute("UdpFormSubmission");return(null===(e=null==i?void 0:i.pageList)||void 0===e?void 0:e[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,e){var s;try{const i=new p(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",e,f.EQUALS),o=await i.execute("UdpFormSubmission");return(null===(s=null==o?void 0:o.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class Ct{static create(t,e,s){return new $t(t?"public":"private",null!=s?s:void 0)}}class xt{constructor(t,e=!1){this.tenantId=t,this.isPublicMode=e}buildDescribeUrl(t,e){const s=b.productV1ApiUrl,i=new URLSearchParams;if("number"==typeof e&&i.set("formVersion",e+""),this.isPublicMode){this.tenantId&&i.set("tenantId",this.tenantId+"");const e=""+i;return`${s}/UdpForm/${t}/describe/public${e?"?"+e:""}`}const o=""+i;return`${s}/UdpForm/${t}/describe${o?"?"+o:""}`}async getFormByFormIdAndFormVersion(t,e){const s=this.buildDescribeUrl(t,e),i=await h("GET",s,void 0,!1);return i.styleOverrides&&"string"==typeof i.styleOverrides&&(i.styleOverrides=JSON.parse(i.styleOverrides)),i}async getFormByFormIdLatestVersion(t){const e=this.buildDescribeUrl(t),s=await h("GET",e,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class Ut{constructor(t){t&&Object.assign(this,t)}}const Pt=(t,e)=>{const s=Object.keys(e),i=new Set,o=RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const e=t.match(o);e&&e[1]&&i.add(Number(e[1]))})),Array.from(i).sort(((t,e)=>t-e))},qt=(t,e)=>{const s=`${"undefined"!=typeof window?window.location.pathname:"/page/"+u.FormRendererPrivatePageId}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,i=e;if(i){if("function"==typeof i.replace)return void i.replace(s);if("function"==typeof i.push)return void i.push(s);if("function"==typeof i){try{i(s,{replace:!0})}catch(t){i(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},At=(t,e)=>{null==e||e(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},Kt=(t,e)=>{null==e||e(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},Tt=(t,e)=>{var s;const i=t&&"object"==typeof t?t:{};for(const t of e||[]){const e=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(e){i[e]&&"object"==typeof i[e]||(i[e]={});for(const o of t.formQuestions||[]){const t=null==o?void 0:o.name;if(!t)continue;const n=null===(s=i[e])||void 0===s?void 0:s[t];n&&"object"==typeof n?("comments"in n||(n.comments=[]),"metadata"in n||(n.metadata=null),"value"in n||(n.value=null)):i[e][t]={value:null,comments:[],metadata:null}}}}return i},Vt=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},Lt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tenantId=null,this.isPublicMode=!1,this.autoSaveDelay=2e3,this.urlContext={},this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.isSubmitted=!1,this.dynamicSections=[],this.isUpdatingSections=!1,this.reRenderKey=0,this.hasUnsavedChanges=!1,this.sideSheetFollowUpFormsList=[],this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpSideSheetListPageNumber=1,this.formTemplateOverrides=null,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE=5,this.componentMap={history:"history",listItemData:"listItemData",handleLaunchFollowUpForm:"handleLaunchFollowUpForm"},this.clientUserInfo={id:null,displayName:null,email:null},this.followUpParentSectionKey="",this.followUpParentQuestionKey="",this.publicFeatures={allowDraftSave:!1,allowComments:!0,allowFollowUpForms:!1},this.handleLaunchFollowUpFormSideSheet=async t=>{try{if(this.isPublicMode)return;this.followUpParentSectionKey=t.detail.sectionKey,this.followUpParentQuestionKey=t.detail.questionKey,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey),this.isFollowUpFormsSideSheetOpen=!0}catch(t){console.error("Error loading follow-up forms:",t)}},this.duplicateRepeatableSection=t=>{if(!this.isSubmitted&&!this.isUpdatingSections){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{var e,s,i;const{dynamicSections:n,values:r,index:a}=t,u=n[a];if(!u)return{nextDynamicSections:n,nextValues:r};const d=u.name,c=Pt(d,r),m=c.length>0?Math.max(...c)+1:2,h=Object.assign(Object.assign({},o(u)),{formQuestions:(u.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${d}_${m}.${t.name}`,e})),isOriginalSection:!1,sectionPositionSuffix:m});let p=a;for(let t=a+1;t<n.length&&n[t].name===d;t++)p=t;const f=[...n.slice(0,p+1),h,...n.slice(p+1)],b=Object.assign({},r||{}),v=`${d}_${m}`,y=(t=>t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`)(u);for(const t of h.formQuestions||[]){b[v]||(b[v]={});let o="";if(t.fieldTypeId===l.Paragraph){const n=null===(s=null===(e=null==r?void 0:r[y])||void 0===e?void 0:e[t.name])||void 0===s?void 0:s.value,a=Vt(t.fieldProperties),u=null!==(i=null==a?void 0:a.paragraphText)&&void 0!==i?i:"";o=null!=n?n:u}b[v][t.name]={value:o,comments:[],metadata:{}}}return{nextDynamicSections:f,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.deleteRepeatableSection=t=>{if(this.isSubmitted)return;const e=this.dynamicSections[t];if(e&&!e.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{const{dynamicSections:e,values:s,index:i}=t,n=e[i];if(!n||n.isOriginalSection)return{nextDynamicSections:e,nextValues:s};const r=n.name,a=n.sectionPositionSuffix,u=`${r}_${a}`,l=Object.assign({},s||{});delete l[u];const d=o(e);return d.splice(i,1),d.forEach((t=>{var e;if(t.name!==r||t.isOriginalSection||(null!==(e=t.sectionPositionSuffix)&&void 0!==e?e:0)<=(null!=a?a:0))return;const s=t.sectionPositionSuffix,i=`${r}_${s}`,n=s-1,u=`${r}_${n}`;t.sectionPositionSuffix=n,t.formQuestions=(t.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${u}.${t.name}`,e})),l[i]&&(l[u]=l[i],delete l[i])})),{nextDynamicSections:d,nextValues:l}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.performBackgroundSaveAndUpdateLocalSubmissionState=async t=>{const e=Tt(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(e)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,e)=>{var s,i;const o=null!==(s=null==e?void 0:e.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,n=null!==(i=null==e?void 0:e.forceCreateDraftIfMissingId)&&void 0!==i&&i;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||n){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const e=Tt(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),o&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&qt(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,e;if(!(null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id))return;const s=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);this.udpFormSubmission=s,this.currentValues=Object.assign({},(null===(e=s.data)||void 0===e?void 0:e.submissionResponseData)||{}),this.isSubmitted=s.status===a.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const e=Tt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||qt(this.udpFormSubmission.id,this.history),At("Form saved successfully.",this.enqueueSnackbar)}catch(t){Kt("There was an error saving this form",this.enqueueSnackbar)}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.handleFormChange=t=>{this.isUpdatingSections||(this.udpFormSubmission.data.submissionResponseData=t)},this.handleFinish=()=>{this.triggerAction&&this.triggerAction(null,{action:"finish"})},this.triggerFormRerender=()=>{const t=window.scrollY;this.reRenderKey+=1,requestAnimationFrame((()=>{window.scrollTo({top:t,behavior:"auto"})}))},this.handleLaunchFollowUpForm=async(t,e,s,i,o,n,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,e),l={submissionResponseData:c(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:i,formVersion:o}}},d=new Dt({formId:t,formVersion:e,unityUserId:this.clientUserInfo.id,data:l}),m=Ct.create(!1,this.clientUserInfo.id),h=await m.createNewLinkedFollowUpFormSubmission(d);this.udpFormSubmission.data.submissionResponseData[n][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[n][r].metadata),{followUpFormSubmissionId:h.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${u.FormRendererPrivatePageId}?udpf_submissionId=${h.id}`,"_blank"),this.handleSideSheetClose(),this.triggerFormRerender()},this.handleSideSheetClose=()=>{this.sideSheetFollowUpFormsList=[],this.followUpSideSheetListPageNumber=1,this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpParentSectionKey="",this.followUpParentQuestionKey=""}}initClientUserInfo(){var t;if(this.isPublicMode)this.clientUserInfo.id="00000000-0000-0000-0000-000000000001",this.clientUserInfo.displayName="Anonymous",this.clientUserInfo.email="Anonymous";else{const e=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);e&&(this.clientUserInfo.id=e.id||null,this.clientUserInfo.displayName=e.name||null,this.clientUserInfo.email=e.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=Ct.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new Dt({id:this.submissionId,formId:this.formId,formVersion:this.formVersion,unityUserId:this.clientUserInfo.id,generic1:this.urlContext.generic1,generic2:this.urlContext.generic2,generic3:this.urlContext.generic3})}normalizeOverrideValue(t){if(null==t)return null;const e=(t+"").trim();return e.length>0?e:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,e,s,i;const o=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),n=this.normalizeOverrideValue(null===(e=this.urlContext)||void 0===e?void 0:e.override_formdescription);(o||n)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)!==a.Created||(this.formTemplateOverrides={formName:o,formDescription:n}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,e,s,i;const o=null===(e=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===e?void 0:e.formTemplateOverrides,n=this.normalizeOverrideValue(null!==(s=null==o?void 0:o.formName)&&void 0!==s?s:null==o?void 0:o.FormName),r=this.normalizeOverrideValue(null!==(i=null==o?void 0:o.formDescription)&&void 0!==i?i:null==o?void 0:o.FormDescription);(n||r)&&(this.formTemplateOverrides={formName:n,formDescription:r})}ensureOverridesPersistedToSubmissionData(){if(!this.formTemplateOverrides)return;if(!this.udpFormSubmission)return;this.udpFormSubmission.data&&"object"==typeof this.udpFormSubmission.data||(this.udpFormSubmission.data={});const{formName:t,formDescription:e}=this.formTemplateOverrides;(t||e)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=e?e:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,e;return this.submissionId?(t=this.udpFormSubmission.formId,e=this.udpFormSubmission.formVersion):(t=this.formId,e=this.formVersion),{formId:t,formVersion:e}}async loadFormAndInitValues(t,e){var s,i,o;this.formHandler=new xt(this.tenantId,this.isPublicMode);const n="number"==typeof e?await this.formHandler.getFormByFormIdAndFormVersion(t,e):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new Ut(n),"number"!=typeof e){const t=null!==(i=null!==(s=null==n?void 0:n.version)&&void 0!==s?s:null==n?void 0:n.formVersion)&&void 0!==i?i:null===(o=this.udpForm)||void 0===o?void 0:o.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=c(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===a.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],e=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((e=>{const s=(e+"").toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==a.Created||!e)this.dynamicSections=((t,e)=>{var s;const i=[],o=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const n of o){n.sectionProperties=JSON.parse(n.sectionProperties||{});const o=Pt(n.name,e);if(n.isOriginalSection=!0,n.sectionPositionSuffix=1,i.push(Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=n.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&o.length>0){const e=Math.max(...o);for(let s=2;s<=e;s++){const e=Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});i.push(e)}}}return i})(this.udpForm,this.currentValues);else{const e={};Object.keys(this.urlContext).forEach((s=>{const i=s+"",o=i.toLowerCase(),n=t.find((t=>o.startsWith(t)));n&&(e[i.substring(n.length)]=this.urlContext[s])})),this.dynamicSections=((t,e,s)=>{var i,o;const n=(t=>{const e={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const i=t.match(/^([^._?&#]+)_(\d+)\./);if(!i)return;const o=i[1],n=Number(i[2]);!Number.isFinite(n)||n<2||n>(null!==(s=e[o])&&void 0!==s?s:1)&&(e[o]=n)})),e})(s),r=[],a=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const s of a){s.sectionProperties=JSON.parse(s.sectionProperties||{});const a=Pt(s.name,e),u=a.length>0?Math.max(...a):1,l=null!==(i=null==n?void 0:n[s.name])&&void 0!==i?i:1,d=Math.max(u,l);if(s.isOriginalSection=!0,s.sectionPositionSuffix=1,r.push(Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(o=s.sectionProperties)||void 0===o?void 0:o.isRepeatable)&&d>=2)for(let e=2;e<=d;e++){const i=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${e}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:e});r.push(i)}}return r})(this.udpForm,this.currentValues,e);const s=((t,e)=>{if(!Array.isArray(t))return;const s=e&&"object"==typeof e?e:{},i={};Object.keys(s).forEach((t=>{i[(t+"").toLowerCase()]=s[t]}));const o={};t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;(t.formQuestions||[]).forEach((t=>{if(!t)return;const s=[t.processedSubmissionName,t.questionIdentifierKey,t.name].filter(Boolean);let n;for(const t of s){const e=(t+"").toLowerCase();if(Object.prototype.hasOwnProperty.call(i,e)){n=i[e];break}}null!=n&&(o[e]||(o[e]={}),o[e][t.name]={value:n,comments:[]})}))}));const n={};return Object.entries(o).forEach((([t,e])=>{n[t]||(n[t]={}),Object.entries(e).forEach((([e,s])=>{const i=n[t][e];(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim())&&(n[t][e]=s)}))})),t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;n[e]||(n[e]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===l.Paragraph){const i=n[e][t.name];if(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim()){let i=null==t?void 0:t.fieldProperties;if("string"==typeof i)try{i=JSON.parse(i||"{}")}catch(t){i={}}n[e][t.name]={value:null!==(s=null==i?void 0:i.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),n})(this.dynamicSections,e);s&&(this.currentValues=s,this.udpFormSubmission.data.submissionResponseData=Object.assign({},s))}}initDebouncedFns(){this.debouncedManualSave=n((async t=>{await this.handleManualSave(t)}),2e3,{leading:!0,trailing:!1})}componentDidLoad(){this.el&&(this.el.addEventListener("questionCommentAction",(async t=>this.handleQuestionCommentLiveCRUD(t))),this.el.addEventListener("launchFollowUpFormSideSheet",(t=>this.handleLaunchFollowUpFormSideSheet(t))),this.el.addEventListener("formDirtyChange",(t=>{this.hasUnsavedChanges=this.hasUnsavedChanges||t.detail})),this.el.addEventListener("udpFormsSubmitInvalid",(()=>{Kt("Please fill out all required fields.",this.enqueueSnackbar)})))}async componentWillLoad(){this.isLoading=!0;try{this.initClientUserInfo(),this.initHandlersAndLocalSubmission(),await this.loadExistingSubmissionIfNeeded(),this.initFormTemplateOverridesFromUrlContextIfEligible();const{formId:t,formVersion:e}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,e),this.initDynamicSectionsAndApplyUrlSeed(),this.initDebouncedFns()}catch(t){console.error("Error failed to load form in the form renderer:",t)}finally{this.isLoading=!1}}async handleSubmit(t){this.isLoading=!0;try{const e=Tt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw Kt("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var e,s,i,o,n,r;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:u,questionIdentifierKey:l,commentId:d}=t.detail,c=function(t){var e,s,i,o,n;const{actionType:r,questionIdentifierKey:a,commentId:u,currentSubmissionResponseData:l,clientUserInfo:d}=t,c=(a||"").split("."),m=c[0]||"",h=c[1]||"";if(!m||!h)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:l||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const p=l||{},f=p[m]||{},b=f[h],y=Object.assign(Object.assign({},p),{[m]:Object.assign({},f)});b?(y[m][h]=Object.assign({},b),y[m][h].comments=null!==(e=y[m][h].comments)&&void 0!==e?e:[],y[m][h].draftComments=null!==(s=y[m][h].draftComments)&&void 0!==s?s:[],y[m][h].metadata=null!==(i=y[m][h].metadata)&&void 0!==i?i:{}):y[m][h]={value:"",comments:[],draftComments:[],metadata:{}};const j=y[m][h].draftComments;j&&!Array.isArray(j)?y[m][h].draftComments=[j]:j||(y[m][h].draftComments=[]);const w=Array.isArray(y[m][h].comments)?[...y[m][h].comments]:[],S=Array.isArray(y[m][h].draftComments)?[...y[m][h].draftComments]:[];let g=!1;switch(r){case"add":{const t={value:"",commentId:v(),isTempComment:!0,timestamp:null};y[m][h].draftComments=[t,...S],g=!0;break}case"save":{const t=S.findIndex((t=>t.commentId===u));if(-1===t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=S[t],s=e.timestamp||(new Date).toISOString(),i=Object.assign(Object.assign({},e),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==d?void 0:d.id,userDisplayName:null==d?void 0:d.displayName,isDraftComment:!1}),o=w.findIndex((t=>t.commentId===u));if(-1!==o){const t=[...w];t[o]=Object.assign({},i),y[m][h].comments=t}else y[m][h].comments=[...w,i];y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0;break}case"edit":{const t=w.find((t=>t.commentId===u));if(!t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[m][h].draftComments=[e,...S],y[m][h].comments=w,g=!0;break}case"delete":y[m][h].comments=w.map((t=>t.commentId===u?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),g=!0;break;case"editClose":y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0}const O="save"===r||"delete"===r;let E;if("save"===r){const t=((null===(n=null===(o=null==y?void 0:y[m])||void 0===o?void 0:o[h])||void 0===n?void 0:n.comments)||[]).find((t=>t.commentId===u));E=null==t?void 0:t.value}return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:g,shouldPersist:O,persistIntent:"none",commentId:u,valueToPersist:E}}({actionType:u,questionIdentifierKey:l,commentId:d,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),m=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},m),"edit"!==u&&"editClose"!==u&&"add"!==u||(this.currentValues=Object.assign({},m)),c.shouldPersist){const t=(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)===a.Submitted,l=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,d=((null===(n=null===(o=null===(i=this.currentValues||{})||void 0===i?void 0:i[c.sectionKey])||void 0===o?void 0:o[c.questionKey])||void 0===n?void 0:n.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!l)if(null===(r=this.udpFormSubmission)||void 0===r?void 0:r.id){if("save"===u){const t=c.valueToPersist;if(t)try{d?await this.formSubmissionHandler.updateComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}):await this.formSubmissionHandler.addComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),At(d?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw Kt(d?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===u)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),At("Comment deleted.",this.enqueueSnackbar)}catch(t){throw Kt("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},m);else this.isPublicMode?this.currentValues=Object.assign({},m):await this.handleManualSave(m)}else this.currentValues=Object.assign({},m)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}async loadFollowUpForms(t,e){var s;this.isLoading=!0;try{const i=(await r(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:d.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!i||!Array.isArray(i.pageList))throw Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(i.pageList,t,e),this.followUpSideSheetTotalItems=null!==(s=i.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,e,s){return t.map((t=>({listItemData:t,history:this.history,handleLaunchFollowUpForm:async()=>await this.handleLaunchFollowUpForm(t.id,t.version,this.udpFormSubmission.id,this.udpFormSubmission.formId,this.udpFormSubmission.formVersion,e,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:s("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&s("udp-linear-loader",null),s("udp-list-renderer",{itemComponent:"udp-forms-follow-up-list-card",data:this.sideSheetFollowUpFormsList,pagination:!0,isServerSide:!0,isLoading:this.isLoading,itemsPerPage:this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,currentPage:this.followUpSideSheetListPageNumber,totalItems:this.followUpSideSheetTotalItems,onPageChange:t=>this.handleSideSheetPageChange(t.detail),componentDataMap:this.componentMap,spacing:"md"}))}isShowManualSaveIcon(){return!this.isPublicMode&&(!!this.clientUserInfo.id&&this.hasUnsavedChanges)}get isReadOnlyMode(){return this.isSubmitted||this.udpFormSubmission.unityUserId!==this.clientUserInfo.id}render(){return s("div",{key:"d117ef46fabf08d4b961e746cac2ab350d4d1cd5",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),s("udp-forms-ui",{udpForm:this.udpForm,formTemplateOverrides:this.formTemplateOverrides,currentValues:this.currentValues,udpFormSubmission:this.udpFormSubmission,submitSuccessful:this.submitSuccessful,isSaving:this.isSaving,readonly:this.isReadOnlyMode,handleSubmit:this.handleSubmit.bind(this),handleSave:t=>Promise.resolve(this.debouncedManualSave(t)),handleChange:this.handleFormChange,handleAction:this.triggerAction,handleFinish:this.handleFinish,clientUserInfo:this.clientUserInfo,isSubmitted:this.isSubmitted,dynamicSections:this.dynamicSections,duplicateRepeatableSection:this.duplicateRepeatableSection,deleteRepeatableSection:this.deleteRepeatableSection,key:"form-rerender-key-"+this.reRenderKey,isShowManualSaveIcon:this.isShowManualSaveIcon(),isLoading:this.isLoading,performBackgroundSaveAndUpdateLocalSubmissionState:this.performBackgroundSaveAndUpdateLocalSubmissionState}))}get el(){return this}},[1,"udp-forms-renderer",{formId:[1,"form-id"],formVersion:[2,"form-version"],submissionId:[1,"submission-id"],tenantId:[1,"tenant-id"],triggerAction:[16],isPublicMode:[4,"is-public-mode"],callbackUrl:[1,"callback-url"],getUserCallback:[16],enqueueSnackbar:[16],closeSnackbar:[16],autoSaveDelay:[2,"auto-save-delay"],history:[8],urlContext:[16],currentValues:[32],submitSuccessful:[32],isLoading:[32],isSaving:[32],isSubmitted:[32],dynamicSections:[32],isUpdatingSections:[32],reRenderKey:[32],hasUnsavedChanges:[32],sideSheetFollowUpFormsList:[32],followUpSideSheetTotalItems:[32],isFollowUpFormsSideSheetOpen:[32],followUpSideSheetListPageNumber:[32],formTemplateOverrides:[32]}]),_t=Lt,Nt=function(){"undefined"!=typeof customElements&&["udp-forms-renderer","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","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-forms-ui","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-list-renderer","udp-menu-item","udp-pagination","udp-pop-over","udp-primary-action-header","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-renderer":customElements.get(i(t))||customElements.define(i(t),Lt);break;case"address-search":customElements.get(i(t))||y();break;case"ag-grid-base":customElements.get(i(t))||j();break;case"base-map":customElements.get(i(t))||w();break;case"client-side-grid":customElements.get(i(t))||S();break;case"custom-button":customElements.get(i(t))||g();break;case"file-upload":customElements.get(i(t))||O();break;case"form-metadata-display":customElements.get(i(t))||E();break;case"ghost-render":customElements.get(i(t))||k();break;case"grid-header":customElements.get(i(t))||I();break;case"hint-panel":customElements.get(i(t))||F();break;case"image-upload":customElements.get(i(t))||D();break;case"location-input":customElements.get(i(t))||$();break;case"numeric-field":customElements.get(i(t))||C();break;case"selectable-list":customElements.get(i(t))||x();break;case"signature-input":customElements.get(i(t))||U();break;case"stencil-field":customElements.get(i(t))||P();break;case"stencil-form":customElements.get(i(t))||q();break;case"stencil-icon-button":customElements.get(i(t))||A();break;case"table-input":customElements.get(i(t))||K();break;case"tally-display":customElements.get(i(t))||T();break;case"text-area":customElements.get(i(t))||V();break;case"text-field":customElements.get(i(t))||L();break;case"udp-adornment":customElements.get(i(t))||_();break;case"udp-ambient-card":customElements.get(i(t))||N();break;case"udp-ambient-tool-tip":customElements.get(i(t))||R();break;case"udp-avatar":customElements.get(i(t))||M();break;case"udp-badge":customElements.get(i(t))||B();break;case"udp-button":customElements.get(i(t))||J();break;case"udp-container":customElements.get(i(t))||Q();break;case"udp-date-selector":customElements.get(i(t))||z();break;case"udp-datetime-selector":customElements.get(i(t))||W();break;case"udp-dialog":customElements.get(i(t))||G();break;case"udp-divider":customElements.get(i(t))||H();break;case"udp-flexbox":customElements.get(i(t))||X();break;case"udp-fluent-avatar":customElements.get(i(t))||Y();break;case"udp-fluent-badge":customElements.get(i(t))||Z();break;case"udp-fluent-button":customElements.get(i(t))||tt();break;case"udp-fluent-dialog":customElements.get(i(t))||et();break;case"udp-fluent-icon":customElements.get(i(t))||st();break;case"udp-fluent-icon-button":customElements.get(i(t))||it();break;case"udp-fluent-menu":customElements.get(i(t))||ot();break;case"udp-fluent-switch":customElements.get(i(t))||nt();break;case"udp-fluent-text-input":customElements.get(i(t))||rt();break;case"udp-forms-ui":customElements.get(i(t))||at();break;case"udp-icon":customElements.get(i(t))||ut();break;case"udp-icon-button":customElements.get(i(t))||lt();break;case"udp-linear-loader":customElements.get(i(t))||dt();break;case"udp-list-item":customElements.get(i(t))||ct();break;case"udp-list-renderer":customElements.get(i(t))||mt();break;case"udp-menu-item":customElements.get(i(t))||ht();break;case"udp-pagination":customElements.get(i(t))||pt();break;case"udp-pop-over":customElements.get(i(t))||ft();break;case"udp-primary-action-header":customElements.get(i(t))||bt();break;case"udp-question":customElements.get(i(t))||vt();break;case"udp-question-comments":customElements.get(i(t))||yt();break;case"udp-save-draft-button":customElements.get(i(t))||jt();break;case"udp-search-input":customElements.get(i(t))||wt();break;case"udp-selector":customElements.get(i(t))||St();break;case"udp-side-sheet":customElements.get(i(t))||gt();break;case"udp-spinner":customElements.get(i(t))||Ot();break;case"udp-text":customElements.get(i(t))||Et();break;case"udp-time-selector":customElements.get(i(t))||kt();break;case"udp-tooltip":customElements.get(i(t))||It();break;case"unity-typography":customElements.get(i(t))||Ft()}}))};export{_t as UdpFormsRenderer,Nt as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,t as d}from"./index2.js";import{d as i}from"./udp-skeleton-loading2.js";const n=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"
|
|
1
|
+
import{p as e,H as s,h as t,t as d}from"./index2.js";import{d as i}from"./udp-skeleton-loading2.js";const n=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"1d7b2fe802951231ad127d3bb2505e1fb84351e3",class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"55px"})))),s=Array.from({length:this.numRows}).map((()=>t("div",{class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"30px"}))))));return t("div",{key:"0df24b6402a33185ede13460d4a142c15a302b0b",style:{width:this.width}},e,s)}static get style(){return":host{display:block}.grid-row{display:flex;justify-content:space-between}udp-skeleton-loading{flex-grow:1;margin:2px}"}},[1,"udp-grid-loader",{numColumns:[2,"num-columns"],numRows:[2,"num-rows"],width:[1]}]);function o(){"undefined"!=typeof customElements&&["udp-grid-loader","udp-skeleton-loading"].forEach((e=>{switch(e){case"udp-grid-loader":customElements.get(d(e))||customElements.define(d(e),n);break;case"udp-skeleton-loading":customElements.get(d(e))||i()}}))}export{n as U,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as o}from"./custom-button2.js";import{d as a}from"./stencil-toggle2.js";import{d as c}from"./text-field2.js";import{d}from"./unity-typography2.js";const
|
|
1
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as o}from"./custom-button2.js";import{d as a}from"./stencil-toggle2.js";import{d as c}from"./text-field2.js";import{d as n}from"./unity-typography2.js";const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.name="",this.isPrivate=!1,this.handleNameChange=t=>{this.name=t.target.value},this.handlePrivateChange=()=>{this.isPrivate=!this.isPrivate},this.handleSubmit=t=>{t.preventDefault(),this.handleFormSubmit(this.name,this.isPrivate,this.columnState)},this.onCustomButtonClick=()=>{this.handleFormSubmit(this.name,this.isPrivate,this.columnState)}}render(){return s("div",{key:"dbe2ce708da81d22f37c35beeb8fe778859ccac9",class:"wrapper"},s("form",{key:"94c1f7282656d17e4098b9ad7c291cc139015ad8",class:"save-form",onSubmit:this.handleSubmit},s("text-field",{key:"2ada338b3756ba92c03b30f438474ce88f64ed76",label:"Hotlist Name",placeholder:"Create a name for your Hotlist",value:this.name,onChange:t=>this.handleNameChange(t)}),s("stencil-toggle",{key:"cdba4ec398403056f286a41f9442f257075078c5",label:"Private",checked:this.isPrivate,onToggledChange:this.handlePrivateChange}),s("div",{key:"f9a9b340e36cfad725bf9b2d7fababc7ef8395d3",class:"submit-button"},s("custom-button",{key:"535ebdbf9499f36b5f00dc65b702d175b944be71",variant:"outline",type:"submit",onCustomClick:this.handleCancelClick},"Cancel"),s("custom-button",{key:"ed6cf44c5d74f7ccc23614da1f387b1e642cb385",disabled:!this.name,type:"submit",onCustomClick:this.onCustomButtonClick},"Create List"))))}get el(){return this}static get style(){return".submit-button{margin-top:18px;display:flex;justify-content:flex-end;margin-right:24px;gap:8px}.wrapper{border-bottom:1px solid #d9d9d9;padding-bottom:16px;margin-bottom:10px;width:480px}"}},[1,"udp-hotlist-form",{refetchViews:[16],handleFormSubmit:[16],handleCancelClick:[16],name:[32],isPrivate:[32],columnState:[32]}]);function r(){"undefined"!=typeof customElements&&["udp-hotlist-form","custom-button","stencil-toggle","text-field","unity-typography"].forEach((t=>{switch(t){case"udp-hotlist-form":customElements.get(i(t))||customElements.define(i(t),d);break;case"custom-button":customElements.get(i(t))||o();break;case"stencil-toggle":customElements.get(i(t))||a();break;case"text-field":customElements.get(i(t))||c();break;case"unity-typography":customElements.get(i(t))||n()}}))}export{d as U,r as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,H as r,c as a,h as o,d as t,t as e}from"./index2.js";import{d as c}from"./udp-icon2.js";import{d as n}from"./unity-typography2.js";const s=i(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.cardClick=a(this,"cardClick",7),this.color="primary",this.active=!1,this.actionType="display",this.handleClick=()=>{"navigation"===this.actionType&&null!=this.href&&""!==this.href?window.location.href=this.href:this.cardClick.emit()},this.handleKeyDown=i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.handleClick())},this.resolveCardColor=i=>{if(null==i||""===i)return;let r;switch(i){case"secondary":r="--secondary-color";break;case"info":r="--info-color-main";break;case"success":r="--success-color-main";break;case"warning":r="--warning-color-main";break;case"error":r="--error-color-main";break;default:r="--primary-color"}return`var(${r})`},this.renderCardContent=i=>o("div",{class:"kpi-card__wrapper",style:i},o("div",{class:"kpi-card__content"},o("div",{class:"kpi-card__header"},o("unity-typography",{variant:"h6",color:"inherit"},this.value),o("udp-icon",{iconName:this.iconName,color:"inherit"})),o("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),o("div",{class:"kpi-card-caption"},o("unity-typography",{variant:"caption-text",color:"inherit"},this.secondaryText))))}render(){var i;const r="display"!==this.actionType&&("navigation"===this.actionType||"filter"===this.actionType||"action"===this.actionType),a="navigation"===this.actionType&&null!=this.href&&""!==this.href,e={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},c={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(c);return o(t,{key:"
|
|
1
|
+
import{p as i,H as r,c as a,h as o,d as t,t as e}from"./index2.js";import{d as c}from"./udp-icon2.js";import{d as n}from"./unity-typography2.js";const s=i(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.cardClick=a(this,"cardClick",7),this.color="primary",this.active=!1,this.actionType="display",this.handleClick=()=>{"navigation"===this.actionType&&null!=this.href&&""!==this.href?window.location.href=this.href:this.cardClick.emit()},this.handleKeyDown=i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.handleClick())},this.resolveCardColor=i=>{if(null==i||""===i)return;let r;switch(i){case"secondary":r="--secondary-color";break;case"info":r="--info-color-main";break;case"success":r="--success-color-main";break;case"warning":r="--warning-color-main";break;case"error":r="--error-color-main";break;default:r="--primary-color"}return`var(${r})`},this.renderCardContent=i=>o("div",{class:"kpi-card__wrapper",style:i},o("div",{class:"kpi-card__content"},o("div",{class:"kpi-card__header"},o("unity-typography",{variant:"h6",color:"inherit"},this.value),o("udp-icon",{iconName:this.iconName,color:"inherit"})),o("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),o("div",{class:"kpi-card-caption"},o("unity-typography",{variant:"caption-text",color:"inherit"},this.secondaryText))))}render(){var i;const r="display"!==this.actionType&&("navigation"===this.actionType||"filter"===this.actionType||"action"===this.actionType),a="navigation"===this.actionType&&null!=this.href&&""!==this.href,e={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},c={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(c);return o(t,{key:"b1e86135a54505a5c4741f2adaaf2a3b7b11bf76"},a?o("a",{href:this.href,class:e,style:{textDecoration:"none"}},n):o("div",{class:e,onClick:r?this.handleClick:void 0,onKeyDown:r?this.handleKeyDown:void 0,tabIndex:r?0:void 0,"aria-current":null!==(i=this.active)&&void 0!==i?i:void 0,"aria-label":this.primaryText,role:"button"},n))}static get style(){return":host{display:inline-block;height:100%}.kpi-card{display:block;text-decoration:none;color:inherit;height:100%}.kpi-card__wrapper{width:160px;height:100%;min-height:80px;border-radius:var(--border-radius, 4px);box-shadow:var(--elevation-02);border:2px solid transparent;transition:var(--input-transition);position:relative;background:white;box-sizing:border-box}.kpi-card--active .kpi-card__wrapper{box-shadow:var(--elevation-04);border-color:var(--card-color, --info-color-main);transform:scale(1.02);z-index:1}.kpi-card--clickable .kpi-card__wrapper{cursor:pointer}.kpi-card--clickable:hover .kpi-card__wrapper{box-shadow:var(--elevation-04);z-index:1;transform:scale(1.02);border-color:var(--card-color, --info-color-main)}.kpi-card--clickable:focus{outline:none}.kpi-card--clickable:focus-visible .kpi-card__wrapper{box-shadow:var(--elevation-04), 0 0 0 3px color-mix(in srgb, var(--card-color, --info-color-main) 30%, transparent);z-index:1;border-color:var(--card-color, --info-color-main)}.kpi-card--active.kpi-card--clickable:hover .kpi-card__wrapper{box-shadow:var(--elevation-04)}.kpi-card__content{padding:var(--spacing-03) var(--spacing-04);overflow:hidden}.kpi-card__header{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-03);color:var(--card-color, --info-color-main)}.kpi-card-caption{color:var(--text-hint);margin-top:-5px}"}},[1,"udp-kpi-card",{cardId:[1,"card-id"],primaryText:[1,"primary-text"],secondaryText:[1,"secondary-text"],color:[1],value:[8],iconName:[1,"icon-name"],active:[4],actionType:[1,"action-type"],href:[1]}]);function d(){"undefined"!=typeof customElements&&["udp-kpi-card","udp-icon","unity-typography"].forEach((i=>{switch(i){case"udp-kpi-card":customElements.get(e(i))||customElements.define(e(i),s);break;case"udp-icon":customElements.get(e(i))||c();break;case"unity-typography":customElements.get(e(i))||n()}}))}export{s as U,d}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as t,H as i,c as e,h as a,t as s}from"./index2.js";import{d as r}from"./udp-icon2.js";import{d}from"./udp-kpi-card2.js";import{d as c}from"./unity-typography2.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.filterChange=e(this,"filterChange",7)}handleCardClick(t){"action"===(null==t?void 0:t.actionType)&&null!==(null==t?void 0:t.onClick)?t.onClick():"filter"===(null==t?void 0:t.actionType)&&this.filterChange.emit(this.activeFilterId===(null==t?void 0:t.id)||"all"===(null==t?void 0:t.id)?null:null==t?void 0:t.id)}render(){var t;return a("div",{key:"
|
|
2
|
+
import{p as t,H as i,c as e,h as a,t as s}from"./index2.js";import{d as r}from"./udp-icon2.js";import{d}from"./udp-kpi-card2.js";import{d as c}from"./unity-typography2.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.filterChange=e(this,"filterChange",7)}handleCardClick(t){"action"===(null==t?void 0:t.actionType)&&null!==(null==t?void 0:t.onClick)?t.onClick():"filter"===(null==t?void 0:t.actionType)&&this.filterChange.emit(this.activeFilterId===(null==t?void 0:t.id)||"all"===(null==t?void 0:t.id)?null:null==t?void 0:t.id)}render(){var t;return a("div",{key:"e2cf551e61644fb3db2c743c63a2fe74bec1dd7a",class:"kpi-cards-container"},null===(t=this.cards)||void 0===t?void 0:t.map((t=>a("udp-kpi-card",{cardId:t.id,primaryText:t.primaryText,secondaryText:t.secondaryText,color:t.color,value:t.value,active:this.activeFilterId===t.id,actionType:t.actionType,href:t.href,iconName:null==t?void 0:t.iconName,onCardClick:()=>this.handleCardClick(t)}))),a("slot",{key:"84c02f2d8510291e9d058439999418852a8aa91c"}))}static get style(){return".kpi-cards-container{display:grid;grid-template-columns:repeat(auto-fit, 160px);grid-auto-rows:1fr;gap:var(--spacing-03, '8px');align-items:stretch}"}},[257,"udp-kpi-cards",{cards:[16],activeFilterId:[1,"active-filter-id"]}]),n=o,l=function(){"undefined"!=typeof customElements&&["udp-kpi-cards","udp-icon","udp-kpi-card","unity-typography"].forEach((t=>{switch(t){case"udp-kpi-cards":customElements.get(s(t))||customElements.define(s(t),o);break;case"udp-icon":customElements.get(s(t))||r();break;case"udp-kpi-card":customElements.get(s(t))||d();break;case"unity-typography":customElements.get(s(t))||c()}}))};export{n as UdpKpiCards,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as i,t as n}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.if=!1,this.unmountDelay=500,this.shouldRender=!1}handleIfChange(t){t?(this.clearCloseTimeout(),this.shouldRender=!0):this.closeTimeout=setTimeout((()=>{this.shouldRender=!1}),this.unmountDelay)}componentWillLoad(){this.if&&(this.shouldRender=!0)}clearCloseTimeout(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}render(){return s(i,{key:"
|
|
1
|
+
import{p as t,H as e,h as s,d as i,t as n}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.if=!1,this.unmountDelay=500,this.shouldRender=!1}handleIfChange(t){t?(this.clearCloseTimeout(),this.shouldRender=!0):this.closeTimeout=setTimeout((()=>{this.shouldRender=!1}),this.unmountDelay)}componentWillLoad(){this.if&&(this.shouldRender=!0)}clearCloseTimeout(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}render(){return s(i,{key:"d93d224698a89a86e2ab1778bdabe82925428f2b"},this.shouldRender&&this.content?this.content():null)}static get watchers(){return{if:[{handleIfChange:0}]}}},[1,"udp-lazy-loader",{if:[4],unmountDelay:[2,"unmount-delay"],content:[16],shouldRender:[32]},void 0,{if:[{handleIfChange:0}]}]);function h(){"undefined"!=typeof customElements&&["udp-lazy-loader"].forEach((t=>{"udp-lazy-loader"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))}export{a as U,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,t as s}from"./index2.js";import{v4 as a}from"uuid";import{d}from"./chart-container2.js";import{d as o}from"./chart-kpi2.js";import{d as r}from"./stencil-icon-button2.js";import{d as h}from"./udp-adornment2.js";import{d as n}from"./udp-ambient-card2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as m}from"./udp-badge2.js";import{d as u}from"./udp-xy-chart2.js";import{d as p}from"./unity-typography2.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.xAxisField=void 0,this.yAxisField=void 0,this.title=void 0,this.subheader=void 0,this.kpis=void 0,this.xAxisLabel=void 0,this.yAxisLabel=void 0,this.kpisPosition="left",this.hideAdornment=!1,this.hideScrollbarX=!1,this.hideBorder=!1,this.valueYFields=void 0,this.showBullets=!1,this.chartId=a(),this.xDataType="date",this.yDataType="number",this.distBetweenGridLines=void 0,this.hideLegend=!1,this.removePadding=!1}render(){return i("udp-xy-chart",{key:"
|
|
1
|
+
import{p as t,H as e,h as i,t as s}from"./index2.js";import{v4 as a}from"uuid";import{d}from"./chart-container2.js";import{d as o}from"./chart-kpi2.js";import{d as r}from"./stencil-icon-button2.js";import{d as h}from"./udp-adornment2.js";import{d as n}from"./udp-ambient-card2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as m}from"./udp-badge2.js";import{d as u}from"./udp-xy-chart2.js";import{d as p}from"./unity-typography2.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.xAxisField=void 0,this.yAxisField=void 0,this.title=void 0,this.subheader=void 0,this.kpis=void 0,this.xAxisLabel=void 0,this.yAxisLabel=void 0,this.kpisPosition="left",this.hideAdornment=!1,this.hideScrollbarX=!1,this.hideBorder=!1,this.valueYFields=void 0,this.showBullets=!1,this.chartId=a(),this.xDataType="date",this.yDataType="number",this.distBetweenGridLines=void 0,this.hideLegend=!1,this.removePadding=!1}render(){return i("udp-xy-chart",{key:"3b68faf8959da6668cee0a22c1a2241ae878f095",title:this.title,subheader:this.subheader,data:this.data,chartId:this.chartId,kpis:this.kpis,customWidth:this.customWidth,customHeight:this.customHeight,customCardWidth:this.customCardWidth,kpisPosition:this.kpisPosition,hideAdornment:this.hideAdornment,labelField:this.xAxisField,valueField:this.yAxisField,showBullets:this.showBullets,xDataType:this.xDataType,yDataType:this.yDataType,hideLegend:this.hideLegend,xAxisLabel:this.xAxisLabel,yAxisLabel:this.yAxisLabel,chartType:"Line",hideBorder:this.hideBorder,removePadding:this.removePadding})}get el(){return this}static get style(){return"#udp-line-chart{height:500px;width:500px;z-index:1000}"}},[1,"udp-line-chart",{data:[16],xAxisField:[1,"x-axis-field"],yAxisField:[1,"y-axis-field"],title:[1],subheader:[1],kpis:[16],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],customWidth:[8,"custom-width"],customHeight:[8,"custom-height"],customCardWidth:[8,"custom-card-width"],kpisPosition:[1,"kpis-position"],hideAdornment:[4,"hide-adornment"],hideScrollbarX:[4,"hide-scrollbar-x"],hideBorder:[4,"hide-border"],valueYFields:[16],showBullets:[4,"show-bullets"],chartId:[1,"chart-id"],xDataType:[1,"x-data-type"],yDataType:[1,"y-data-type"],distBetweenGridLines:[2,"dist-between-grid-lines"],hideLegend:[4,"hide-legend"],removePadding:[4,"remove-padding"]}]);function b(){"undefined"!=typeof customElements&&["udp-line-chart","chart-container","chart-kpi","stencil-icon-button","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-badge","udp-xy-chart","unity-typography"].forEach((t=>{switch(t){case"udp-line-chart":customElements.get(s(t))||customElements.define(s(t),l);break;case"chart-container":customElements.get(s(t))||d();break;case"chart-kpi":customElements.get(s(t))||o();break;case"stencil-icon-button":customElements.get(s(t))||r();break;case"udp-adornment":customElements.get(s(t))||h();break;case"udp-ambient-card":customElements.get(s(t))||n();break;case"udp-ambient-tool-tip":customElements.get(s(t))||c();break;case"udp-badge":customElements.get(s(t))||m();break;case"udp-xy-chart":customElements.get(s(t))||u();break;case"unity-typography":customElements.get(s(t))||p()}}))}export{l as U,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as o,h as e,d as a,t as d}from"./index2.js";const
|
|
1
|
+
import{p as r,H as o,h as e,d as a,t as d}from"./index2.js";const c=r(class extends o{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.color="primary"}render(){return e(a,{key:"761a94eebc2e9c8805fa82cc61c4a76668f5015b"},e("div",{key:"ab746cfda51c4c64191a91cf9ac7e54dd27b3a2e",class:{loader:!0,[`loader--color-${this.color}`]:!0}},e("div",{key:"4c08ea0a28de807b3836b832bcca9f0557db3804",class:"indeterminate"})))}static get style(){return":host{--udp-loader-primary-color:var(--primary-color, #2953ff);--udp-loader-secondary-color:var(--secondary-color, #6f767a);--udp-loader-success-color:var(--success-color, #0da40d);--udp-loader-error-color:var(--error-color, #ff0000);--udp-loader-warning-color:var(--warning-color, #ffa500);--udp-loader-info-color:var(--info-color, #2953ff)}.loader{position:relative;width:100%;height:4px;background-color:transparent;overflow:hidden;}.indeterminate{background-color:var(--udp-loader-primary-color);position:absolute;width:40%;height:100%;animation:indeterminate 1s linear infinite}.loader--color-primary .indeterminate{background-color:var(--udp-loader-primary-color)}.loader--color-secondary .indeterminate{background-color:var(--udp-loader-secondary-color)}.loader--color-success .indeterminate{background-color:var(--udp-loader-success-color)}.loader--color-error .indeterminate{background-color:var(--udp-loader-error-color)}.loader--color-warning .indeterminate{background-color:var(--udp-loader-warning-color)}.loader--color-info .indeterminate{background-color:var(--udp-loader-info-color)}@keyframes indeterminate{0%{left:-50%;width:50%}100%{left:100%;width:100%}}"}},[1,"udp-linear-loader",{color:[1]}]);function l(){"undefined"!=typeof customElements&&["udp-linear-loader"].forEach((r=>{"udp-linear-loader"===r&&(customElements.get(d(r))||customElements.define(d(r),c))}))}export{c as U,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,h as s,t as i}from"./index2.js";import a from"ol/layer/Tile";import l from"ol/layer/Vector";import{a as o,b as h,c as n}from"./map-interactions.js";import{h as r}from"./udp-map-utils.js";import{D as d}from"./common.js";import{d as p}from"./add-map-feature-popup2.js";import{d as u}from"./check-box-group2.js";import{d as c}from"./custom-button2.js";import{d as m}from"./map-toolbar2.js";import{d as b}from"./select-layer-popup2.js";import{d as f}from"./split-line-popup2.js";import{d as y}from"./stencil-icon-button2.js";import{d as S}from"./stencil-icon-button-grid-action-header2.js";import{d as v}from"./text-field2.js";import{d as g}from"./udp-ambient-tool-tip2.js";import{d as k}from"./udp-badge2.js";import{d as F}from"./udp-icon2.js";import{d as j}from"./udp-menu-item2.js";import{d as O}from"./udp-pop-over2.js";import{d as E}from"./udp-selector2.js";import{d as B}from"./unity-typography2.js";const x=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.mapTitle="",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.bulkSelectedFeaturesActionPanel="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.filteredLayerOptionsByRole=[],this.enableDragBox=!1,this.splitActive=!1,this.enableAddNewFeature=!1,this.readOnlyLayers=[],this.selectedTile={label:"Open Street Map",value:"Open Street Map"},this.selectedBulkSelectionType="box",this.selectedFeatureByBoxSelection=[],this.tileSelectOptions=[{label:"Open Street Map",value:"Open Street Map"}],this.newFeatureObjectsAdded=[],this.showSplitButton=!1,this.setEnableDragBox=e=>{this.handleSetEnableDragBox(e)},this.setBulkSelectonActive=e=>{this.handleSetBulkSelectionActive(e)},this.getTileLayerOptions=()=>{this.tileSelectOptions=this.tileLayersOptions.map((e=>({label:null==e?void 0:e.name,value:null==e?void 0:e.name}))),this.selectedTile=this.tileSelectOptions.filter((e=>e.value===this.defaultTileOptionName))[0]},this.handleSelectTile=e=>{var t;if(e&&(this.selectedTile=e,this.enableTileSelection&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0)){const t=this.tileLayersOptions.find((t=>(null==t?void 0:t.name)===e));if(!t)return;this.map.getLayers().getArray().filter((e=>e.get("isBaseTile"))).forEach((e=>{this.map.removeLayer(e)}));const s=new a({source:t.source,visible:!0,zIndex:0,properties:{value:t.name,isBaseTile:!0}});this.map.getLayers().insertAt(0,s)}},this.handleSelectLayers=e=>{this.handleSetSelectedLayers&&this.handleSetSelectedLayers(e),this.updateLayerVisibility(e),this.handleSelectLayersCallback&&this.handleSelectLayersCallback(e)},this.updateLayerVisibility=(e,t=!1)=>{var s,i;let o=t?a:l;null===(i=null===(s=this.map)||void 0===s?void 0:s.getLayers())||void 0===i||i.forEach((t=>{t instanceof o&&(e.includes(t.get("value"))||t.get("id")===d?t.setVisible(!0):t.setVisible(!1))}))},this.bulkSelectDraw=(e,t)=>{o(this.map,e,t,this.setBulkSelectonActive,this.setEnableDragBox,this.handleSetSelectedFeatureProperties,this.clearSelectFeatureInteraction,this.currentBulkSelectDrawInteraction,this.handleSetCurrentBulkSelectDrawInteraction,this.handleRemoveInteraction,this.handleAddInteraction,this.selectedFeatureByBoxSelection,this.handleSetSelectedFeatureByBoxSelection,this.handleSetSelectedBulkSelectionType,this.getSelectedFeatureStyles,this.handleSetSelectedFeaturesOnBulkSelect)},this.clearSelectFeatureInteraction=()=>{this.selectFeatureInteraction&&(this.selectFeatureInteraction.getFeatures().clear(),this.selectFeatureInteraction.setActive(!1))},this.handleSetCurrentBulkSelectDrawInteraction=e=>{this.currentBulkSelectDrawInteraction=e},this.handleSetSelectedFeatureByBoxSelection=e=>{this.selectedFeatureByBoxSelection=e},this.handleSetSelectedBulkSelectionType=e=>{this.selectedBulkSelectionType=e},this.handleCancelBulkSelectDraw=()=>{this.setBulkSelectonActive(!1),this.setEnableDragBox(!1),this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)},this.handleBulkUnselectFeatures=()=>{this.selectedFeatureByBoxSelection.length>0&&this.getFeatureStyles&&this.selectedFeatureByBoxSelection.forEach((e=>{let t=this.getFeatureStyles(e);r(t)&&e.setStyle(t)})),this.setEnableDragBox(!1),this.setBulkSelectonActive(!1),this.selectedFeatureByBoxSelection=[],this.handleSetSelectedFeaturesOnBulkSelect&&this.handleSetSelectedFeaturesOnBulkSelect([])},this.startDrawingMapFeature=(e,t="Point")=>{h(this.map,e,t,this.handleRemoveInteraction,this.currentAddFeatureDrawInteraction,this.handleSetCurrentInteraction,this.handleGetFeatureObject,this.handleEnableAddNewFeature,this.handleSetSelectedFeatureProperties,this.handleAddInteraction,this.addMultipleFeatures,this.addNewFeature)},this.handleGetFeatureObject=e=>{this.newFeatureObjectsAdded=[...this.newFeatureObjectsAdded,e]},this.handleAddInteraction=e=>{this.map.addInteraction(e)},this.handleRemoveInteraction=e=>{this.map.removeInteraction(e),this.currentAddFeatureDrawInteraction=null},this.handleSetCurrentInteraction=e=>{this.currentAddFeatureDrawInteraction=e},this.cancelAddNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction)},this.addNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction),this.handleAddNewFeatures&&this.handleAddNewFeatures(this.newFeatureObjectsAdded)},this.handleStartSplitting=e=>{this.handleSetSplit(!0),this.splitActive=!0,n(this.map,e,this.currentSplitInteraction,this.handleSetCurrentSplitInteraction,this.handleSetSplit,this.handleRemoveInteraction,this.handleAddInteraction,this.handleRetrieveSplitFeature)},this.handleSetSplit=e=>{this.handleSetSplitActive(e),this.showSplitButton=e},this.handleRetrieveSplitFeature=e=>{this.splitFeatureDetails=e},this.handleSetCurrentSplitInteraction=e=>{this.currentSplitInteraction=e},this.handleCancelSplit=()=>{this.handleSetSplit(!1),this.splitActive=!1,this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null},this.handleSaveSplit=()=>{this.handleSetSplit(!1),this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null,this.handleSplitFeature(this.splitFeatureDetails)}}componentWillLoad(){var e;this.tileLayersOptions&&(null===(e=this.tileLayersOptions)||void 0===e?void 0:e.length)>0&&this.getTileLayerOptions()}updateTileSelectOptions(){var e;this.tileLayersOptions&&(null===(e=this.tileLayersOptions)||void 0===e?void 0:e.length)>0&&this.getTileLayerOptions()}render(){return s("map-toolbar",{key:"e14e2f752d19ab4449ca27237bd75b8dcc776edb",map:this.map,mapTitle:this.mapTitle,layerOptions:this.layerOptions,handleSelectLayers:this.handleSelectLayers,visibleLayers:this.selectedLayers,tileOptions:this.tileSelectOptions,handleSelectTile:this.handleSelectTile,selectedTile:this.selectedTile,enableTileSelection:this.enableTileSelection,filterPanel:this.filterPanel,enableDragBox:this.enableDragBox,selectedFeatureByBoxSelection:this.selectedFeatureByBoxSelection,handleUnselectFeatures:this.handleBulkUnselectFeatures,selectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleCancelBoxSelection:this.handleCancelBulkSelectDraw,handleBulkSelectionTypeOnChange:this.bulkSelectDraw,mapProjection:this.mapProjection,refreshEvent:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,enableAddNewFeature:this.enableAddNewFeature,handleStartDrawingMapFeature:this.startDrawingMapFeature,cancelAddNewFeature:this.cancelAddNewFeature,addNewFeature:this.addNewFeature,enableSplit:this.enableSplitFeature,handleStartSplitting:this.handleStartSplitting,handleCancelSplit:this.handleCancelSplit,handleSaveSplit:this.handleSaveSplit,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,addMultipleFeatures:this.addMultipleFeatures,showSplitButton:this.showSplitButton,readOnlyLayers:this.readOnlyLayers,addFeaturePanelConfig:this.addFeaturePanelConfig})}get el(){return this}static get watchers(){return{tileLayersOptions:[{updateTileSelectOptions:0}]}}static get style(){return":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}"}},[1,"udp-map-toolbar",{map:[8],mapTitle:[1,"map-title"],mapProjection:[1,"map-projection"],getFeatureStyles:[8,"get-feature-styles"],getSelectedFeatureStyles:[8,"get-selected-feature-styles"],filterPanel:[1,"filter-panel"],enableTileSelection:[4,"enable-tile-selection"],tileLayersOptions:[16],defaultTileOptionName:[1,"default-tile-option-name"],layerOptions:[16],bulkSelectedFeaturesActionPanel:[1,"bulk-selected-features-action-panel"],handleSetSelectedFeaturesOnBulkSelect:[8,"handle-set-selected-features-on-bulk-select"],handleRefresh:[8,"handle-refresh"],refreshButtonTooltip:[1,"refresh-button-tooltip"],readOnlyMap:[4,"read-only-map"],enableAdd:[4,"enable-add"],handleAddNewFeatures:[8,"handle-add-new-features"],addMultipleFeatures:[4,"add-multiple-features"],enableSplitFeature:[4,"enable-split-feature"],handleSplitFeature:[8,"handle-split-feature"],handleSetSelectedFeatureProperties:[8,"handle-set-selected-feature-properties"],filteredLayerOptionsByRole:[16],handleSetBulkSelectionActive:[8,"handle-set-bulk-selection-active"],enableDragBox:[4,"enable-drag-box"],handleSetEnableDragBox:[8,"handle-set-enable-drag-box"],splitActive:[4,"split-active"],handleSetSplitActive:[8,"handle-set-split-active"],selectFeatureInteraction:[8,"select-feature-interaction"],enableAddNewFeature:[4,"enable-add-new-feature"],handleEnableAddNewFeature:[8,"handle-enable-add-new-feature"],handleSelectLayersCallback:[8,"handle-select-layers-callback"],readOnlyLayers:[16],selectedLayers:[8,"selected-layers"],handleSetSelectedLayers:[8,"handle-set-selected-layers"],addFeaturePanelConfig:[8,"add-feature-panel-config"],selectedFeatures:[32],selectedTile:[32],selectedBulkSelectionType:[32],mapFeatures:[32],selectedFeatureByBoxSelection:[32],tileSelectOptions:[32],currentBulkSelectDrawInteraction:[32],currentAddFeatureDrawInteraction:[32],currentSplitInteraction:[32],newFeatureObjectsAdded:[32],splitFeatureDetails:[32],showSplitButton:[32]},void 0,{tileLayersOptions:[{updateTileSelectOptions:0}]}]);function w(){"undefined"!=typeof customElements&&["udp-map-toolbar","add-map-feature-popup","check-box-group","custom-button","map-toolbar","select-layer-popup","split-line-popup","stencil-icon-button","stencil-icon-button-grid-action-header","text-field","udp-ambient-tool-tip","udp-badge","udp-icon","udp-menu-item","udp-pop-over","udp-selector","unity-typography"].forEach((e=>{switch(e){case"udp-map-toolbar":customElements.get(i(e))||customElements.define(i(e),x);break;case"add-map-feature-popup":customElements.get(i(e))||p();break;case"check-box-group":customElements.get(i(e))||u();break;case"custom-button":customElements.get(i(e))||c();break;case"map-toolbar":customElements.get(i(e))||m();break;case"select-layer-popup":customElements.get(i(e))||b();break;case"split-line-popup":customElements.get(i(e))||f();break;case"stencil-icon-button":customElements.get(i(e))||y();break;case"stencil-icon-button-grid-action-header":customElements.get(i(e))||S();break;case"text-field":customElements.get(i(e))||v();break;case"udp-ambient-tool-tip":customElements.get(i(e))||g();break;case"udp-badge":customElements.get(i(e))||k();break;case"udp-icon":customElements.get(i(e))||F();break;case"udp-menu-item":customElements.get(i(e))||j();break;case"udp-pop-over":customElements.get(i(e))||O();break;case"udp-selector":customElements.get(i(e))||E();break;case"unity-typography":customElements.get(i(e))||B()}}))}export{x as U,w as d}
|
|
1
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import a from"ol/layer/Tile";import l from"ol/layer/Vector";import{a as o,b as h,c as n}from"./map-interactions.js";import{h as r}from"./udp-map-utils.js";import{D as d}from"./common.js";import{d as p}from"./add-map-feature-popup2.js";import{d as u}from"./check-box-group2.js";import{d as c}from"./custom-button2.js";import{d as m}from"./map-toolbar2.js";import{d as b}from"./select-layer-popup2.js";import{d as f}from"./split-line-popup2.js";import{d as y}from"./stencil-icon-button2.js";import{d as S}from"./stencil-icon-button-grid-action-header2.js";import{d as v}from"./text-field2.js";import{d as g}from"./udp-ambient-tool-tip2.js";import{d as k}from"./udp-badge2.js";import{d as F}from"./udp-icon2.js";import{d as j}from"./udp-menu-item2.js";import{d as O}from"./udp-pop-over2.js";import{d as E}from"./udp-selector2.js";import{d as B}from"./unity-typography2.js";const x=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.mapTitle="",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.bulkSelectedFeaturesActionPanel="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.filteredLayerOptionsByRole=[],this.enableDragBox=!1,this.splitActive=!1,this.enableAddNewFeature=!1,this.readOnlyLayers=[],this.selectedTile={label:"Open Street Map",value:"Open Street Map"},this.selectedBulkSelectionType="box",this.selectedFeatureByBoxSelection=[],this.tileSelectOptions=[{label:"Open Street Map",value:"Open Street Map"}],this.newFeatureObjectsAdded=[],this.showSplitButton=!1,this.setEnableDragBox=t=>{this.handleSetEnableDragBox(t)},this.setBulkSelectonActive=t=>{this.handleSetBulkSelectionActive(t)},this.getTileLayerOptions=()=>{this.tileSelectOptions=this.tileLayersOptions.map((t=>({label:null==t?void 0:t.name,value:null==t?void 0:t.name}))),this.selectedTile=this.tileSelectOptions.filter((t=>t.value===this.defaultTileOptionName))[0]},this.handleSelectTile=t=>{var e;if(t&&(this.selectedTile=t,this.enableTileSelection&&(null===(e=this.tileLayersOptions)||void 0===e?void 0:e.length)>0)){const e=this.tileLayersOptions.find((e=>(null==e?void 0:e.name)===t));if(!e)return;this.map.getLayers().getArray().filter((t=>t.get("isBaseTile"))).forEach((t=>{this.map.removeLayer(t)}));const s=new a({source:e.source,visible:!0,zIndex:0,properties:{value:e.name,isBaseTile:!0}});this.map.getLayers().insertAt(0,s)}},this.handleSelectLayers=t=>{this.handleSetSelectedLayers&&this.handleSetSelectedLayers(t),this.updateLayerVisibility(t),this.handleSelectLayersCallback&&this.handleSelectLayersCallback(t)},this.updateLayerVisibility=(t,e=!1)=>{var s,i;let o=e?a:l;null===(i=null===(s=this.map)||void 0===s?void 0:s.getLayers())||void 0===i||i.forEach((e=>{e instanceof o&&(t.includes(e.get("value"))||e.get("id")===d?e.setVisible(!0):e.setVisible(!1))}))},this.bulkSelectDraw=(t,e)=>{o(this.map,t,e,this.setBulkSelectonActive,this.setEnableDragBox,this.handleSetSelectedFeatureProperties,this.clearSelectFeatureInteraction,this.currentBulkSelectDrawInteraction,this.handleSetCurrentBulkSelectDrawInteraction,this.handleRemoveInteraction,this.handleAddInteraction,this.selectedFeatureByBoxSelection,this.handleSetSelectedFeatureByBoxSelection,this.handleSetSelectedBulkSelectionType,this.getSelectedFeatureStyles,this.handleSetSelectedFeaturesOnBulkSelect)},this.clearSelectFeatureInteraction=()=>{this.selectFeatureInteraction&&(this.selectFeatureInteraction.getFeatures().clear(),this.selectFeatureInteraction.setActive(!1))},this.handleSetCurrentBulkSelectDrawInteraction=t=>{this.currentBulkSelectDrawInteraction=t},this.handleSetSelectedFeatureByBoxSelection=t=>{this.selectedFeatureByBoxSelection=t},this.handleSetSelectedBulkSelectionType=t=>{this.selectedBulkSelectionType=t},this.handleCancelBulkSelectDraw=()=>{this.setBulkSelectonActive(!1),this.setEnableDragBox(!1),this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)},this.handleBulkUnselectFeatures=()=>{this.selectedFeatureByBoxSelection.length>0&&this.getFeatureStyles&&this.selectedFeatureByBoxSelection.forEach((t=>{let e=this.getFeatureStyles(t);r(e)&&t.setStyle(e)})),this.setEnableDragBox(!1),this.setBulkSelectonActive(!1),this.selectedFeatureByBoxSelection=[],this.handleSetSelectedFeaturesOnBulkSelect&&this.handleSetSelectedFeaturesOnBulkSelect([])},this.startDrawingMapFeature=(t,e="Point")=>{h(this.map,t,e,this.handleRemoveInteraction,this.currentAddFeatureDrawInteraction,this.handleSetCurrentInteraction,this.handleGetFeatureObject,this.handleEnableAddNewFeature,this.handleSetSelectedFeatureProperties,this.handleAddInteraction,this.addMultipleFeatures,this.addNewFeature)},this.handleGetFeatureObject=t=>{this.newFeatureObjectsAdded=[...this.newFeatureObjectsAdded,t]},this.handleAddInteraction=t=>{this.map.addInteraction(t)},this.handleRemoveInteraction=t=>{this.map.removeInteraction(t),this.currentAddFeatureDrawInteraction=null},this.handleSetCurrentInteraction=t=>{this.currentAddFeatureDrawInteraction=t},this.cancelAddNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction)},this.addNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction),this.handleAddNewFeatures&&this.handleAddNewFeatures(this.newFeatureObjectsAdded)},this.handleStartSplitting=t=>{this.handleSetSplit(!0),this.splitActive=!0,n(this.map,t,this.currentSplitInteraction,this.handleSetCurrentSplitInteraction,this.handleSetSplit,this.handleRemoveInteraction,this.handleAddInteraction,this.handleRetrieveSplitFeature)},this.handleSetSplit=t=>{this.handleSetSplitActive(t),this.showSplitButton=t},this.handleRetrieveSplitFeature=t=>{this.splitFeatureDetails=t},this.handleSetCurrentSplitInteraction=t=>{this.currentSplitInteraction=t},this.handleCancelSplit=()=>{this.handleSetSplit(!1),this.splitActive=!1,this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null},this.handleSaveSplit=()=>{this.handleSetSplit(!1),this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null,this.handleSplitFeature(this.splitFeatureDetails)}}componentWillLoad(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}updateTileSelectOptions(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}render(){return s("map-toolbar",{key:"060b205b86f9f2d618907e1c60a414b103760300",map:this.map,mapTitle:this.mapTitle,layerOptions:this.layerOptions,handleSelectLayers:this.handleSelectLayers,visibleLayers:this.selectedLayers,tileOptions:this.tileSelectOptions,handleSelectTile:this.handleSelectTile,selectedTile:this.selectedTile,enableTileSelection:this.enableTileSelection,filterPanel:this.filterPanel,enableDragBox:this.enableDragBox,selectedFeatureByBoxSelection:this.selectedFeatureByBoxSelection,handleUnselectFeatures:this.handleBulkUnselectFeatures,selectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleCancelBoxSelection:this.handleCancelBulkSelectDraw,handleBulkSelectionTypeOnChange:this.bulkSelectDraw,mapProjection:this.mapProjection,refreshEvent:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,enableAddNewFeature:this.enableAddNewFeature,handleStartDrawingMapFeature:this.startDrawingMapFeature,cancelAddNewFeature:this.cancelAddNewFeature,addNewFeature:this.addNewFeature,enableSplit:this.enableSplitFeature,handleStartSplitting:this.handleStartSplitting,handleCancelSplit:this.handleCancelSplit,handleSaveSplit:this.handleSaveSplit,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,addMultipleFeatures:this.addMultipleFeatures,showSplitButton:this.showSplitButton,readOnlyLayers:this.readOnlyLayers,addFeaturePanelConfig:this.addFeaturePanelConfig})}get el(){return this}static get watchers(){return{tileLayersOptions:[{updateTileSelectOptions:0}]}}static get style(){return":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}"}},[1,"udp-map-toolbar",{map:[8],mapTitle:[1,"map-title"],mapProjection:[1,"map-projection"],getFeatureStyles:[8,"get-feature-styles"],getSelectedFeatureStyles:[8,"get-selected-feature-styles"],filterPanel:[1,"filter-panel"],enableTileSelection:[4,"enable-tile-selection"],tileLayersOptions:[16],defaultTileOptionName:[1,"default-tile-option-name"],layerOptions:[16],bulkSelectedFeaturesActionPanel:[1,"bulk-selected-features-action-panel"],handleSetSelectedFeaturesOnBulkSelect:[8,"handle-set-selected-features-on-bulk-select"],handleRefresh:[8,"handle-refresh"],refreshButtonTooltip:[1,"refresh-button-tooltip"],readOnlyMap:[4,"read-only-map"],enableAdd:[4,"enable-add"],handleAddNewFeatures:[8,"handle-add-new-features"],addMultipleFeatures:[4,"add-multiple-features"],enableSplitFeature:[4,"enable-split-feature"],handleSplitFeature:[8,"handle-split-feature"],handleSetSelectedFeatureProperties:[8,"handle-set-selected-feature-properties"],filteredLayerOptionsByRole:[16],handleSetBulkSelectionActive:[8,"handle-set-bulk-selection-active"],enableDragBox:[4,"enable-drag-box"],handleSetEnableDragBox:[8,"handle-set-enable-drag-box"],splitActive:[4,"split-active"],handleSetSplitActive:[8,"handle-set-split-active"],selectFeatureInteraction:[8,"select-feature-interaction"],enableAddNewFeature:[4,"enable-add-new-feature"],handleEnableAddNewFeature:[8,"handle-enable-add-new-feature"],handleSelectLayersCallback:[8,"handle-select-layers-callback"],readOnlyLayers:[16],selectedLayers:[8,"selected-layers"],handleSetSelectedLayers:[8,"handle-set-selected-layers"],addFeaturePanelConfig:[8,"add-feature-panel-config"],selectedFeatures:[32],selectedTile:[32],selectedBulkSelectionType:[32],mapFeatures:[32],selectedFeatureByBoxSelection:[32],tileSelectOptions:[32],currentBulkSelectDrawInteraction:[32],currentAddFeatureDrawInteraction:[32],currentSplitInteraction:[32],newFeatureObjectsAdded:[32],splitFeatureDetails:[32],showSplitButton:[32]},void 0,{tileLayersOptions:[{updateTileSelectOptions:0}]}]);function w(){"undefined"!=typeof customElements&&["udp-map-toolbar","add-map-feature-popup","check-box-group","custom-button","map-toolbar","select-layer-popup","split-line-popup","stencil-icon-button","stencil-icon-button-grid-action-header","text-field","udp-ambient-tool-tip","udp-badge","udp-icon","udp-menu-item","udp-pop-over","udp-selector","unity-typography"].forEach((t=>{switch(t){case"udp-map-toolbar":customElements.get(i(t))||customElements.define(i(t),x);break;case"add-map-feature-popup":customElements.get(i(t))||p();break;case"check-box-group":customElements.get(i(t))||u();break;case"custom-button":customElements.get(i(t))||c();break;case"map-toolbar":customElements.get(i(t))||m();break;case"select-layer-popup":customElements.get(i(t))||b();break;case"split-line-popup":customElements.get(i(t))||f();break;case"stencil-icon-button":customElements.get(i(t))||y();break;case"stencil-icon-button-grid-action-header":customElements.get(i(t))||S();break;case"text-field":customElements.get(i(t))||v();break;case"udp-ambient-tool-tip":customElements.get(i(t))||g();break;case"udp-badge":customElements.get(i(t))||k();break;case"udp-icon":customElements.get(i(t))||F();break;case"udp-menu-item":customElements.get(i(t))||j();break;case"udp-pop-over":customElements.get(i(t))||O();break;case"udp-selector":customElements.get(i(t))||E();break;case"unity-typography":customElements.get(i(t))||B()}}))}export{x as U,w as d}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as e,H as t,h as a,t as s}from"./index2.js";import{d as i}from"./add-map-feature-popup2.js";import{d as o}from"./check-box-group2.js";import{d as l}from"./custom-button2.js";import{d as r}from"./feature-details-card2.js";import{d as n}from"./feature-details-popup2.js";import{d}from"./map-component2.js";import{d as p}from"./map-toolbar2.js";import{d as c}from"./select-layer-popup2.js";import{d as h}from"./split-line-popup2.js";import{d as u}from"./stencil-icon-button2.js";import{d as m}from"./stencil-icon-button-grid-action-header2.js";import{d as b}from"./text-field2.js";import{d as f}from"./udp-adornment2.js";import{d as y}from"./udp-ambient-tool-tip2.js";import{d as g}from"./udp-badge2.js";import{d as S}from"./udp-icon2.js";import{d as F}from"./udp-map-toolbar2.js";import{d as k}from"./udp-menu-item2.js";import{d as v}from"./udp-pop-over2.js";import{d as P}from"./udp-selector2.js";import{d as j}from"./unity-typography2.js";const O=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.enableToolbar=!0,this.mapTitle="",this.data=[],this.isGeoJsonFormat=!0,this.enableZoom=!0,this.mapZoom=17,this.mapCenter=[0,0],this.mapHeight="80vh",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.initialSelectedLayers=[],this.bulkSelectedFeaturesActionPanel="",this.filterLayersByRole=!1,this.layerKeySeparator="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.enableViewFeature=!0,this.readOnlyLayers=[],this.popoverPrimaryActions=[],this.popoverMoreIconButtonActions=[],this.hideMessageIconPopover=!1,this.cardConfig={},this.minZoom=0,this.maxZoom=28,this.bulkSelectionActive=!1,this.filteredLayerOptionsByRole=[],this.splitActive=!1,this.enableDragBox=!1,this.selectedFeatureCoordinates=[],this.selectedFeatureProperties=null,this.enableAddNewFeature=!1,this.selectedLayers=[],this.handleSetFilteredLayerOptionsByRole=e=>{this.filteredLayerOptionsByRole=e},this.handleSetMapComponent=e=>{e&&(this.map=e)},this.handleSetBulkSelectionActive=e=>{this.bulkSelectionActive=e},this.handleSetEnableDragBox=e=>{this.enableDragBox=e},this.handleSetSplitActive=e=>{this.splitActive=e},this.handleEnableAddNewFeature=e=>{this.enableAddNewFeature=e},this.handleSetSelectedFeatureProperties=e=>{if(e){let t=null==e?void 0:e.getProperties();t&&(this.selectedFeatureCoordinates=t.geometry.flatCoordinates,this.selectedFeatureProperties=t)}else this.selectedFeatureProperties=null,this.selectedFeatureObjectKeyValuePairs=[]}}watchDragBoxandSelectedFeatureInteraction(){!this.enableDragBox&&this.selectFeatureInteraction&&(this.selectFeatureInteraction.setActive(!0),this.selectFeatureInteraction.getFeatures().clear(),this.selectedFeatureProperties=null,this.selectedFeatureObjectKeyValuePairs=[])}updateSelectedLayers(e){this.selectedLayers=e,this.initialSelectedLayers=e}render(){return a("map-component",{key:"5ac5153bbffd11c443c82711140a6b0f1b884c0d",handleSetMapComponent:this.handleSetMapComponent,data:this.data,isGeoJsonFormat:this.isGeoJsonFormat,geoJsonMappingConfig:this.geoJsonMappingConfig,enableZoom:this.enableZoom,mapZoom:this.mapZoom,mapCenter:this.mapCenter,mapHeight:this.mapHeight,crs:this.crs,mapProjection:this.mapProjection,mapDataProjection:this.mapDataProjection,getFilteredMapData:this.getFilteredMapData,getFeatureStyles:this.getFeatureStyles,getSelectedFeatureStyles:this.getSelectedFeatureStyles,filterPanel:this.filterPanel,filterPanelCallback:this.filterPanelCallback,enableTileSelection:this.enableTileSelection,tileLayersOptions:this.tileLayersOptions,defaultTileOptionName:this.defaultTileOptionName,layerOptions:this.layerOptions,initialSelectedLayers:this.initialSelectedLayers,bulkSelectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleSetSelectedFeaturesOnBulkSelect:this.handleSetSelectedFeaturesOnBulkSelect,handleSetSelectedFeatureOnSelect:this.handleSetSelectedFeatureOnSelect,filterLayersByRole:this.filterLayersByRole,layerKeys:this.layerKeys,layerKeySeparator:this.layerKeySeparator,user:this.user,layerRoles:this.layerRoles,filteredLayerOptionsByRole:this.filteredLayerOptionsByRole,handleSetFilteredLayerOptionsByRole:this.handleSetFilteredLayerOptionsByRole,readOnlyMap:this.readOnlyMap,enableViewFeature:this.enableViewFeature,handleViewFeature:this.handleViewFeature,bulkSelectionActive:this.bulkSelectionActive,splitActive:this.splitActive,enableDragBox:this.enableDragBox,selectFeatureInteraction:this.selectFeatureInteraction,handleSetSelectedFeatureProperties:this.handleSetSelectedFeatureProperties,selectedFeatureCoordinates:this.selectedFeatureCoordinates,selectedFeatureProperties:this.selectedFeatureProperties,enableAddNewFeature:this.enableAddNewFeature,handleGetZoomExtent:this.handleGetZoomExtent,selectedLayers:this.selectedLayers,handleSetSelectedLayers:e=>{this.updateSelectedLayers(e)},readOnlyLayers:this.readOnlyLayers,additionalOnclosePopover:this.additionalOnclosePopover,popoverPrimaryActions:this.popoverPrimaryActions,popoverMoreIconButtonActions:this.popoverMoreIconButtonActions,getMessagePopover:this.getMessagePopover,getMessageIconPopover:this.getMessageIconPopover,hideMessageIconPopover:this.hideMessageIconPopover,popoverCardConfig:this.cardConfig,popoverWidth:this.popoverWidth,handleGetAdditionalFeaturePropertiesOnSelect:this.handleGetAdditionalFeaturePropertiesOnSelect,minZoom:this.minZoom,maxZoom:this.maxZoom},this.enableToolbar&&a("udp-map-toolbar",{key:"c2807b2b6143eac3e4041a33a21ca8427cadf782",map:this.map,mapTitle:this.mapTitle,mapProjection:this.mapProjection,getFeatureStyles:this.getFeatureStyles,getSelectedFeatureStyles:this.getSelectedFeatureStyles,filterPanel:this.filterPanel,enableTileSelection:this.enableTileSelection,tileLayersOptions:this.tileLayersOptions,defaultTileOptionName:this.defaultTileOptionName,layerOptions:this.layerOptions,bulkSelectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleSetSelectedFeaturesOnBulkSelect:this.handleSetSelectedFeaturesOnBulkSelect,handleRefresh:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,handleAddNewFeatures:this.handleAddNewFeatures,addMultipleFeatures:this.addMultipleFeatures,enableSplitFeature:this.enableSplitFeature,handleSplitFeature:this.handleSplitFeature,handleSetSelectedFeatureProperties:this.handleSetSelectedFeatureProperties,filteredLayerOptionsByRole:this.filteredLayerOptionsByRole,handleSetBulkSelectionActive:this.handleSetBulkSelectionActive,enableDragBox:this.enableDragBox,handleSetEnableDragBox:this.handleSetEnableDragBox,splitActive:this.splitActive,handleSetSplitActive:this.handleSetSplitActive,selectFeatureInteraction:this.selectFeatureInteraction,enableAddNewFeature:this.enableAddNewFeature,handleEnableAddNewFeature:this.handleEnableAddNewFeature,handleSelectLayersCallback:this.handleSelectLayersCallback,selectedLayers:this.selectedLayers,handleSetSelectedLayers:e=>{this.updateSelectedLayers(e)},addFeaturePanelConfig:this.addFeaturePanelConfig}),a("slot",{key:"ac9200a2e7d87bfa9cdd38b64675a85c3691c7f7"}))}static get watchers(){return{enableDragBox:[{watchDragBoxandSelectedFeatureInteraction:0}],selectFeatureInteraction:[{watchDragBoxandSelectedFeatureInteraction:0}]}}static get style(){return":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}"}},[257,"udp-map",{enableToolbar:[4,"enable-toolbar"],mapTitle:[1,"map-title"],data:[16],isGeoJsonFormat:[4,"is-geo-json-format"],geoJsonMappingConfig:[8,"geo-json-mapping-config"],enableZoom:[4,"enable-zoom"],mapZoom:[2,"map-zoom"],mapCenter:[8,"map-center"],mapHeight:[1,"map-height"],crs:[8],mapProjection:[1,"map-projection"],mapDataProjection:[1,"map-data-projection"],getFilteredMapData:[8,"get-filtered-map-data"],getFeatureStyles:[8,"get-feature-styles"],getSelectedFeatureStyles:[8,"get-selected-feature-styles"],filterPanel:[1,"filter-panel"],filterPanelCallback:[8,"filter-panel-callback"],enableTileSelection:[4,"enable-tile-selection"],tileLayersOptions:[16],defaultTileOptionName:[1,"default-tile-option-name"],layerOptions:[16],initialSelectedLayers:[16],handleSelectLayersCallback:[8,"handle-select-layers-callback"],bulkSelectedFeaturesActionPanel:[1,"bulk-selected-features-action-panel"],handleSetSelectedFeaturesOnBulkSelect:[8,"handle-set-selected-features-on-bulk-select"],handleSetSelectedFeatureOnSelect:[8,"handle-set-selected-feature-on-select"],filterLayersByRole:[4,"filter-layers-by-role"],layerKeys:[16],layerKeySeparator:[1,"layer-key-separator"],user:[8],layerRoles:[8,"layer-roles"],handleRefresh:[8,"handle-refresh"],refreshButtonTooltip:[1,"refresh-button-tooltip"],readOnlyMap:[4,"read-only-map"],enableAdd:[4,"enable-add"],handleAddNewFeatures:[8,"handle-add-new-features"],addMultipleFeatures:[4,"add-multiple-features"],enableSplitFeature:[4,"enable-split-feature"],handleSplitFeature:[8,"handle-split-feature"],enableViewFeature:[4,"enable-view-feature"],handleViewFeature:[8,"handle-view-feature"],handleGetZoomExtent:[8,"handle-get-zoom-extent"],readOnlyLayers:[16],additionalOnclosePopover:[8,"additional-onclose-popover"],popoverPrimaryActions:[16],popoverMoreIconButtonActions:[16],getMessagePopover:[16],getMessageIconPopover:[16],hideMessageIconPopover:[4,"hide-message-icon-popover"],cardConfig:[8,"card-config"],popoverWidth:[1,"popover-width"],handleGetAdditionalFeaturePropertiesOnSelect:[16],addFeaturePanelConfig:[8,"add-feature-panel-config"],minZoom:[2,"min-zoom"],maxZoom:[2,"max-zoom"],map:[32],bulkSelectionActive:[32],filteredLayerOptionsByRole:[32],splitActive:[32],enableDragBox:[32],selectFeatureInteraction:[32],selectedFeatureCoordinates:[32],selectedFeatureProperties:[32],selectedFeatureObjectKeyValuePairs:[32],enableAddNewFeature:[32],selectedLayers:[32]},void 0,{enableDragBox:[{watchDragBoxandSelectedFeatureInteraction:0}],selectFeatureInteraction:[{watchDragBoxandSelectedFeatureInteraction:0}]}]),E=O,x=function(){"undefined"!=typeof customElements&&["udp-map","add-map-feature-popup","check-box-group","custom-button","feature-details-card","feature-details-popup","map-component","map-toolbar","select-layer-popup","split-line-popup","stencil-icon-button","stencil-icon-button-grid-action-header","text-field","udp-adornment","udp-ambient-tool-tip","udp-badge","udp-icon","udp-map-toolbar","udp-menu-item","udp-pop-over","udp-selector","unity-typography"].forEach((e=>{switch(e){case"udp-map":customElements.get(s(e))||customElements.define(s(e),O);break;case"add-map-feature-popup":customElements.get(s(e))||i();break;case"check-box-group":customElements.get(s(e))||o();break;case"custom-button":customElements.get(s(e))||l();break;case"feature-details-card":customElements.get(s(e))||r();break;case"feature-details-popup":customElements.get(s(e))||n();break;case"map-component":customElements.get(s(e))||d();break;case"map-toolbar":customElements.get(s(e))||p();break;case"select-layer-popup":customElements.get(s(e))||c();break;case"split-line-popup":customElements.get(s(e))||h();break;case"stencil-icon-button":customElements.get(s(e))||u();break;case"stencil-icon-button-grid-action-header":customElements.get(s(e))||m();break;case"text-field":customElements.get(s(e))||b();break;case"udp-adornment":customElements.get(s(e))||f();break;case"udp-ambient-tool-tip":customElements.get(s(e))||y();break;case"udp-badge":customElements.get(s(e))||g();break;case"udp-icon":customElements.get(s(e))||S();break;case"udp-map-toolbar":customElements.get(s(e))||F();break;case"udp-menu-item":customElements.get(s(e))||k();break;case"udp-pop-over":customElements.get(s(e))||v();break;case"udp-selector":customElements.get(s(e))||P();break;case"unity-typography":customElements.get(s(e))||j()}}))};export{E as UdpMap,x as defineCustomElement}
|
|
2
|
+
import{p as e,H as t,h as a,t as s}from"./index2.js";import{d as i}from"./add-map-feature-popup2.js";import{d as o}from"./check-box-group2.js";import{d as l}from"./custom-button2.js";import{d as r}from"./feature-details-card2.js";import{d as n}from"./feature-details-popup2.js";import{d}from"./map-component2.js";import{d as p}from"./map-toolbar2.js";import{d as h}from"./select-layer-popup2.js";import{d as c}from"./split-line-popup2.js";import{d as u}from"./stencil-icon-button2.js";import{d as m}from"./stencil-icon-button-grid-action-header2.js";import{d as b}from"./text-field2.js";import{d as f}from"./udp-adornment2.js";import{d as y}from"./udp-ambient-tool-tip2.js";import{d as g}from"./udp-badge2.js";import{d as S}from"./udp-icon2.js";import{d as F}from"./udp-map-toolbar2.js";import{d as k}from"./udp-menu-item2.js";import{d as v}from"./udp-pop-over2.js";import{d as P}from"./udp-selector2.js";import{d as j}from"./unity-typography2.js";const O=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.enableToolbar=!0,this.mapTitle="",this.data=[],this.isGeoJsonFormat=!0,this.enableZoom=!0,this.mapZoom=17,this.mapCenter=[0,0],this.mapHeight="80vh",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.initialSelectedLayers=[],this.bulkSelectedFeaturesActionPanel="",this.filterLayersByRole=!1,this.layerKeySeparator="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.enableViewFeature=!0,this.readOnlyLayers=[],this.popoverPrimaryActions=[],this.popoverMoreIconButtonActions=[],this.hideMessageIconPopover=!1,this.cardConfig={},this.minZoom=0,this.maxZoom=28,this.bulkSelectionActive=!1,this.filteredLayerOptionsByRole=[],this.splitActive=!1,this.enableDragBox=!1,this.selectedFeatureCoordinates=[],this.selectedFeatureProperties=null,this.enableAddNewFeature=!1,this.selectedLayers=[],this.handleSetFilteredLayerOptionsByRole=e=>{this.filteredLayerOptionsByRole=e},this.handleSetMapComponent=e=>{e&&(this.map=e)},this.handleSetBulkSelectionActive=e=>{this.bulkSelectionActive=e},this.handleSetEnableDragBox=e=>{this.enableDragBox=e},this.handleSetSplitActive=e=>{this.splitActive=e},this.handleEnableAddNewFeature=e=>{this.enableAddNewFeature=e},this.handleSetSelectedFeatureProperties=e=>{if(e){let t=null==e?void 0:e.getProperties();t&&(this.selectedFeatureCoordinates=t.geometry.flatCoordinates,this.selectedFeatureProperties=t)}else this.selectedFeatureProperties=null,this.selectedFeatureObjectKeyValuePairs=[]}}watchDragBoxandSelectedFeatureInteraction(){!this.enableDragBox&&this.selectFeatureInteraction&&(this.selectFeatureInteraction.setActive(!0),this.selectFeatureInteraction.getFeatures().clear(),this.selectedFeatureProperties=null,this.selectedFeatureObjectKeyValuePairs=[])}updateSelectedLayers(e){this.selectedLayers=e,this.initialSelectedLayers=e}render(){return a("map-component",{key:"cc253d797a5543681a02df72864460df9f8bb20d",handleSetMapComponent:this.handleSetMapComponent,data:this.data,isGeoJsonFormat:this.isGeoJsonFormat,geoJsonMappingConfig:this.geoJsonMappingConfig,enableZoom:this.enableZoom,mapZoom:this.mapZoom,mapCenter:this.mapCenter,mapHeight:this.mapHeight,crs:this.crs,mapProjection:this.mapProjection,mapDataProjection:this.mapDataProjection,getFilteredMapData:this.getFilteredMapData,getFeatureStyles:this.getFeatureStyles,getSelectedFeatureStyles:this.getSelectedFeatureStyles,filterPanel:this.filterPanel,filterPanelCallback:this.filterPanelCallback,enableTileSelection:this.enableTileSelection,tileLayersOptions:this.tileLayersOptions,defaultTileOptionName:this.defaultTileOptionName,layerOptions:this.layerOptions,initialSelectedLayers:this.initialSelectedLayers,bulkSelectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleSetSelectedFeaturesOnBulkSelect:this.handleSetSelectedFeaturesOnBulkSelect,handleSetSelectedFeatureOnSelect:this.handleSetSelectedFeatureOnSelect,filterLayersByRole:this.filterLayersByRole,layerKeys:this.layerKeys,layerKeySeparator:this.layerKeySeparator,user:this.user,layerRoles:this.layerRoles,filteredLayerOptionsByRole:this.filteredLayerOptionsByRole,handleSetFilteredLayerOptionsByRole:this.handleSetFilteredLayerOptionsByRole,readOnlyMap:this.readOnlyMap,enableViewFeature:this.enableViewFeature,handleViewFeature:this.handleViewFeature,bulkSelectionActive:this.bulkSelectionActive,splitActive:this.splitActive,enableDragBox:this.enableDragBox,selectFeatureInteraction:this.selectFeatureInteraction,handleSetSelectedFeatureProperties:this.handleSetSelectedFeatureProperties,selectedFeatureCoordinates:this.selectedFeatureCoordinates,selectedFeatureProperties:this.selectedFeatureProperties,enableAddNewFeature:this.enableAddNewFeature,handleGetZoomExtent:this.handleGetZoomExtent,selectedLayers:this.selectedLayers,handleSetSelectedLayers:e=>{this.updateSelectedLayers(e)},readOnlyLayers:this.readOnlyLayers,additionalOnclosePopover:this.additionalOnclosePopover,popoverPrimaryActions:this.popoverPrimaryActions,popoverMoreIconButtonActions:this.popoverMoreIconButtonActions,getMessagePopover:this.getMessagePopover,getMessageIconPopover:this.getMessageIconPopover,hideMessageIconPopover:this.hideMessageIconPopover,popoverCardConfig:this.cardConfig,popoverWidth:this.popoverWidth,handleGetAdditionalFeaturePropertiesOnSelect:this.handleGetAdditionalFeaturePropertiesOnSelect,minZoom:this.minZoom,maxZoom:this.maxZoom},this.enableToolbar&&a("udp-map-toolbar",{key:"207b2fb95b84dbce051dbfabf76703e42d4457f4",map:this.map,mapTitle:this.mapTitle,mapProjection:this.mapProjection,getFeatureStyles:this.getFeatureStyles,getSelectedFeatureStyles:this.getSelectedFeatureStyles,filterPanel:this.filterPanel,enableTileSelection:this.enableTileSelection,tileLayersOptions:this.tileLayersOptions,defaultTileOptionName:this.defaultTileOptionName,layerOptions:this.layerOptions,bulkSelectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleSetSelectedFeaturesOnBulkSelect:this.handleSetSelectedFeaturesOnBulkSelect,handleRefresh:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,handleAddNewFeatures:this.handleAddNewFeatures,addMultipleFeatures:this.addMultipleFeatures,enableSplitFeature:this.enableSplitFeature,handleSplitFeature:this.handleSplitFeature,handleSetSelectedFeatureProperties:this.handleSetSelectedFeatureProperties,filteredLayerOptionsByRole:this.filteredLayerOptionsByRole,handleSetBulkSelectionActive:this.handleSetBulkSelectionActive,enableDragBox:this.enableDragBox,handleSetEnableDragBox:this.handleSetEnableDragBox,splitActive:this.splitActive,handleSetSplitActive:this.handleSetSplitActive,selectFeatureInteraction:this.selectFeatureInteraction,enableAddNewFeature:this.enableAddNewFeature,handleEnableAddNewFeature:this.handleEnableAddNewFeature,handleSelectLayersCallback:this.handleSelectLayersCallback,selectedLayers:this.selectedLayers,handleSetSelectedLayers:e=>{this.updateSelectedLayers(e)},addFeaturePanelConfig:this.addFeaturePanelConfig}),a("slot",{key:"0310274302a09c3afff2222ded32271195a8e006"}))}static get watchers(){return{enableDragBox:[{watchDragBoxandSelectedFeatureInteraction:0}],selectFeatureInteraction:[{watchDragBoxandSelectedFeatureInteraction:0}]}}static get style(){return":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}"}},[257,"udp-map",{enableToolbar:[4,"enable-toolbar"],mapTitle:[1,"map-title"],data:[16],isGeoJsonFormat:[4,"is-geo-json-format"],geoJsonMappingConfig:[8,"geo-json-mapping-config"],enableZoom:[4,"enable-zoom"],mapZoom:[2,"map-zoom"],mapCenter:[8,"map-center"],mapHeight:[1,"map-height"],crs:[8],mapProjection:[1,"map-projection"],mapDataProjection:[1,"map-data-projection"],getFilteredMapData:[8,"get-filtered-map-data"],getFeatureStyles:[8,"get-feature-styles"],getSelectedFeatureStyles:[8,"get-selected-feature-styles"],filterPanel:[1,"filter-panel"],filterPanelCallback:[8,"filter-panel-callback"],enableTileSelection:[4,"enable-tile-selection"],tileLayersOptions:[16],defaultTileOptionName:[1,"default-tile-option-name"],layerOptions:[16],initialSelectedLayers:[16],handleSelectLayersCallback:[8,"handle-select-layers-callback"],bulkSelectedFeaturesActionPanel:[1,"bulk-selected-features-action-panel"],handleSetSelectedFeaturesOnBulkSelect:[8,"handle-set-selected-features-on-bulk-select"],handleSetSelectedFeatureOnSelect:[8,"handle-set-selected-feature-on-select"],filterLayersByRole:[4,"filter-layers-by-role"],layerKeys:[16],layerKeySeparator:[1,"layer-key-separator"],user:[8],layerRoles:[8,"layer-roles"],handleRefresh:[8,"handle-refresh"],refreshButtonTooltip:[1,"refresh-button-tooltip"],readOnlyMap:[4,"read-only-map"],enableAdd:[4,"enable-add"],handleAddNewFeatures:[8,"handle-add-new-features"],addMultipleFeatures:[4,"add-multiple-features"],enableSplitFeature:[4,"enable-split-feature"],handleSplitFeature:[8,"handle-split-feature"],enableViewFeature:[4,"enable-view-feature"],handleViewFeature:[8,"handle-view-feature"],handleGetZoomExtent:[8,"handle-get-zoom-extent"],readOnlyLayers:[16],additionalOnclosePopover:[8,"additional-onclose-popover"],popoverPrimaryActions:[16],popoverMoreIconButtonActions:[16],getMessagePopover:[16],getMessageIconPopover:[16],hideMessageIconPopover:[4,"hide-message-icon-popover"],cardConfig:[8,"card-config"],popoverWidth:[1,"popover-width"],handleGetAdditionalFeaturePropertiesOnSelect:[16],addFeaturePanelConfig:[8,"add-feature-panel-config"],minZoom:[2,"min-zoom"],maxZoom:[2,"max-zoom"],map:[32],bulkSelectionActive:[32],filteredLayerOptionsByRole:[32],splitActive:[32],enableDragBox:[32],selectFeatureInteraction:[32],selectedFeatureCoordinates:[32],selectedFeatureProperties:[32],selectedFeatureObjectKeyValuePairs:[32],enableAddNewFeature:[32],selectedLayers:[32]},void 0,{enableDragBox:[{watchDragBoxandSelectedFeatureInteraction:0}],selectFeatureInteraction:[{watchDragBoxandSelectedFeatureInteraction:0}]}]),E=O,x=function(){"undefined"!=typeof customElements&&["udp-map","add-map-feature-popup","check-box-group","custom-button","feature-details-card","feature-details-popup","map-component","map-toolbar","select-layer-popup","split-line-popup","stencil-icon-button","stencil-icon-button-grid-action-header","text-field","udp-adornment","udp-ambient-tool-tip","udp-badge","udp-icon","udp-map-toolbar","udp-menu-item","udp-pop-over","udp-selector","unity-typography"].forEach((e=>{switch(e){case"udp-map":customElements.get(s(e))||customElements.define(s(e),O);break;case"add-map-feature-popup":customElements.get(s(e))||i();break;case"check-box-group":customElements.get(s(e))||o();break;case"custom-button":customElements.get(s(e))||l();break;case"feature-details-card":customElements.get(s(e))||r();break;case"feature-details-popup":customElements.get(s(e))||n();break;case"map-component":customElements.get(s(e))||d();break;case"map-toolbar":customElements.get(s(e))||p();break;case"select-layer-popup":customElements.get(s(e))||h();break;case"split-line-popup":customElements.get(s(e))||c();break;case"stencil-icon-button":customElements.get(s(e))||u();break;case"stencil-icon-button-grid-action-header":customElements.get(s(e))||m();break;case"text-field":customElements.get(s(e))||b();break;case"udp-adornment":customElements.get(s(e))||f();break;case"udp-ambient-tool-tip":customElements.get(s(e))||y();break;case"udp-badge":customElements.get(s(e))||g();break;case"udp-icon":customElements.get(s(e))||S();break;case"udp-map-toolbar":customElements.get(s(e))||F();break;case"udp-menu-item":customElements.get(s(e))||k();break;case"udp-pop-over":customElements.get(s(e))||v();break;case"udp-selector":customElements.get(s(e))||P();break;case"unity-typography":customElements.get(s(e))||j()}}))};export{E as UdpMap,x as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as i,h as n,t as o}from"./index2.js";import{d as s}from"./udp-icon2.js";import{d as a}from"./unity-typography2.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.itemClick=i(this,"itemClick",7),this.disabled=!1,this.handleItemClick=e=>{this.itemClick.emit(e)}}render(){return n("button",{key:"
|
|
1
|
+
import{p as e,H as t,c as i,h as n,t as o}from"./index2.js";import{d as s}from"./udp-icon2.js";import{d as a}from"./unity-typography2.js";const c=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.itemClick=i(this,"itemClick",7),this.disabled=!1,this.handleItemClick=e=>{this.itemClick.emit(e)}}render(){return n("button",{key:"b26afc2ab755b1b71822b89208e5d45f0733787f",class:"menu-item-root",onClick:this.handleItemClick,disabled:this.disabled,role:"menuitem"},this.iconName&&n("udp-icon",{key:"214be4eabb71a7cf8d3eeec8151ae381012a8e79",iconName:this.iconName,class:"menu-icon"}),n("span",{key:"8604d5cc4d0f3cb5233c06a8408beaf1da98c590",class:"menu-item-label"},n("unity-typography",{key:"6f9352bd35d5cb919968ac7836b77f52b5de0f82",variant:"body1"},this.label)))}static get style(){return".menu-item-root{display:flex;width:100%;padding:8px 16px;gap:8px;align-items:center;background:none;border:none;font-family:inherit;text-align:left;cursor:pointer;transition:background-color 0.15s ease-in-out}.menu-item-root:hover:not(:disabled){background-color:rgba(0, 0, 0, 0.08)}.menu-item-label{font-size:14px}.menu-item-root:disabled{cursor:not-allowed;opacity:0.4}.menu-icon{height:100%}"}},[1,"udp-menu-item",{label:[1],iconName:[1,"icon-name"],disabled:[516],handleOnClick:[16]}]);function r(){"undefined"!=typeof customElements&&["udp-menu-item","udp-icon","unity-typography"].forEach((e=>{switch(e){case"udp-menu-item":customElements.get(o(e))||customElements.define(o(e),c);break;case"udp-icon":customElements.get(o(e))||s();break;case"unity-typography":customElements.get(o(e))||a()}}))}export{c as U,r as d}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as e,H as t,h as s,d as i,t as n}from"./index2.js";import{createPopper as o}from"@popperjs/core";const
|
|
2
|
+
import{p as e,H as t,h as s,d as i,t as n}from"./index2.js";import{createPopper as o}from"@popperjs/core";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.open=!1,this.handleTransitionEnd=()=>{this.open||this.hostEl.parentElement!==document.body||document.body.removeChild(this.hostEl),this.destroyPopper()},this.handleKeyDown=e=>{var t;"Escape"===e.key&&(null===(t=this.handleClose)||void 0===t||t.call(this))},this.handleClickOutside=e=>{var t;const s=e.composedPath(),i=this.getAnchorElement();i&&s.includes(i)||null===(t=this.handleClose)||void 0===t||t.call(this)}}disconnectedCallback(){this.removeListeners(),this.destroyPopper()}handleOpenChange(e){e?this.present():this.dismiss()}present(){document.body.appendChild(this.hostEl),this.addListeners(),requestAnimationFrame((()=>{this.setupPopper(),this.hostEl.classList.add("is-visible")}))}dismiss(){this.removeListeners(),this.hostEl.classList.remove("is-visible"),this.hostEl.addEventListener("transitionend",this.handleTransitionEnd,{once:!0})}addListeners(){document.addEventListener("keydown",this.handleKeyDown),setTimeout((()=>{this.open&&document.addEventListener("click",this.handleClickOutside)}),0)}removeListeners(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClickOutside)}getAnchorElement(){return"string"==typeof this.anchor?document.getElementById(this.anchor):this.anchor}setupPopper(){const e=this.getAnchorElement();e?(this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=o(e,this.hostEl,{strategy:"fixed",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip"}]})):console.error("UdpMenu: Anchor element could not be found.")}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}render(){return s(i,{key:"c9d430ebf74e18ee1fdc00ebbd89fd430fa3725a"},s("div",{key:"b7b959e59ecf997a4b6f18455d428d7288383d16",class:"menu-panel",role:"menu"},s("slot",{key:"4d9e766005b611cb7c50aca6804962a4a70e75ca"})))}get hostEl(){return this}static get watchers(){return{open:[{handleOpenChange:0}]}}static get style(){return":host{display:block;position:fixed;z-index:9999;pointer-events:none;opacity:0;transform:scale(0.95);transition:opacity 0.2s ease-out;border-radius:8px}:host(.is-visible){pointer-events:auto;opacity:1;transform:scale(1)}.menu-panel{background-color:white;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border:1px solid #e0e0e0;overflow:hidden}"}},[257,"udp-menu",{anchor:[1],open:[516],handleClose:[16]},void 0,{open:[{handleOpenChange:0}]}]),d=r,h=function(){"undefined"!=typeof customElements&&["udp-menu"].forEach((e=>{"udp-menu"===e&&(customElements.get(n(e))||customElements.define(n(e),r))}))};export{d as UdpMenu,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as s,H as e,c as t,h as n,d as o,t as i}from"./index2.js";import"@fluentui/web-components/message-bar.js";import{d as a}from"./udp-flexbox2.js";import{d as u}from"./udp-fluent-button2.js";import{d}from"./udp-fluent-icon2.js";import{d as c}from"./udp-fluent-icon-button2.js";import{d as m}from"./udp-spinner2.js";const
|
|
1
|
+
import{p as s,H as e,c as t,h as n,d as o,t as i}from"./index2.js";import"@fluentui/web-components/message-bar.js";import{d as a}from"./udp-flexbox2.js";import{d as u}from"./udp-fluent-button2.js";import{d}from"./udp-fluent-icon2.js";import{d as c}from"./udp-fluent-icon-button2.js";import{d as m}from"./udp-spinner2.js";const l=s(class extends e{constructor(s){super(),!1!==s&&this.__registerHost(),this.__attachShadow(),this.dismissEvent=t(this,"dismiss",3),this.shape="rounded",this.layout="singleline",this.intent="info",this.dismissible=!1,this.handleDismissClick=()=>{this.dismissEvent.emit()}}render(){return n(o,{key:"84eb625214dc77c60004a0a44d4d57242e1f44a9"},n("fluent-message-bar",{key:"62497532a0ffeff30ce08693b91794ecc09c4dc2",shape:this.shape,layout:this.layout,intent:this.intent},n("udp-flexbox",{key:"1208b31ee665592212c6cb48410cdbfa798b2455",direction:"row",gap:"sm",slot:"actions"},n("slot",{key:"257a8c42983d8a12e27cd0deb2634c1f2a0180d2",name:"actions"})),this.dismissible?n("udp-fluent-icon-button",{slot:"dismiss",appearance:"subtle",iconName:"dismiss","aria-label":"Dismiss",onClick:this.handleDismissClick}):n("slot",{name:"dismiss",slot:"dismiss"}),n("slot",{key:"a072d93e6d19f01a44dc62b9024490cb102c749f",name:"icon",slot:"icon"}),n("slot",{key:"55ea279fe5b7d247c9fbe37fe06068a342d6667e"})))}},[257,"udp-message-bar",{shape:[1],layout:[1],intent:[1],dismissible:[4]}]);function p(){"undefined"!=typeof customElements&&["udp-message-bar","udp-flexbox","udp-fluent-button","udp-fluent-icon","udp-fluent-icon-button","udp-spinner"].forEach((s=>{switch(s){case"udp-message-bar":customElements.get(i(s))||customElements.define(i(s),l);break;case"udp-flexbox":customElements.get(i(s))||a();break;case"udp-fluent-button":customElements.get(i(s))||u();break;case"udp-fluent-icon":customElements.get(i(s))||d();break;case"udp-fluent-icon-button":customElements.get(i(s))||c();break;case"udp-spinner":customElements.get(i(s))||m()}}))}export{l as U,p as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as a}from"./unity-typography2.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.userCancel=!1,this.active=!1}activeChanged(t){t&&!this.userCancel&&setTimeout((()=>this.active=!1),3e3)}render(){const t=`status-${this.status}`;return s("div",{key:"
|
|
1
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as a}from"./unity-typography2.js";const n=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.userCancel=!1,this.active=!1}activeChanged(t){t&&!this.userCancel&&setTimeout((()=>this.active=!1),3e3)}render(){const t=`status-${this.status}`;return s("div",{key:"17379efbdace37347b1681c14ce9646352afa8b6",class:{"udp-notification":!0,visible:this.active,[t]:!0}},this.userCancel&&s("button",{key:"188287b8107d70e0664bbec94ae93ecfb86829d2",class:"close-button",onClick:()=>this.active=!1},"×"),s("span",{key:"272d2666af08cd4e208b5cc89c7b66a4a820c308",class:"message"}," ",s("unity-typography",{key:"1cf9ba151a1daa19888cf61e198cb3e3cc93a626",variant:"body"}," ",this.message," ")))}static get watchers(){return{active:[{activeChanged:0}]}}static get style(){return":host{position:fixed;top:1rem;right:1rem;z-index:1000;display:block;}.udp-notification{min-width:250px;margin:0.5rem;padding:0.5rem 1rem;border-radius:4px;box-shadow:0 2px 10px rgba(0, 0, 0, 0.1);display:flex;align-items:center;justify-content:space-between;transition:transform 0.3s ease-in-out, opacity 0.3s ease-in-out;transform:translateY(-100%);opacity:0;visibility:hidden;background-color:#f4f4f4;}.visible{transform:translateY(0);opacity:1;visibility:visible}.status-success{border-left:4px solid #5aa700;}.status-error{border-left:4px solid #e0182d;}.status-warning{border-left:4px solid #ff832b;}.message{flex:1;padding:0 1rem}.close-button{background:none;border:none;font-size:1.5rem;cursor:pointer}"}},[1,"udp-notification",{message:[1],status:[1],userCancel:[4,"user-cancel"],active:[1540]},void 0,{active:[{activeChanged:0}]}]);function o(){"undefined"!=typeof customElements&&["udp-notification","unity-typography"].forEach((t=>{switch(t){case"udp-notification":customElements.get(i(t))||customElements.define(i(t),n);break;case"unity-typography":customElements.get(i(t))||a()}}))}export{n as U,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as
|
|
1
|
+
import{p as e,H as t,c as a,h as d,t as i}from"./index2.js";import{d as s}from"./udp-radio-button2.js";import{d as c}from"./unity-typography2.js";const o=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.valueChanged=a(this,"valueChanged",7),this.selectedValue="1"}radioClicked(e){this.selectedValue=e,this.valueChanged.emit(e)}render(){return d("div",{key:"010a7b790f13cd139d83d17ce2e2fcc6ac8ab8de",class:"header-container"},d("div",{key:"33e7d855c08f6e51068baf3307036fa3b4007cbe",class:"title"},d("unity-typography",{key:"1033df1181c176c309186f4a0e2b769d746d77b9",variant:"button"},"Filter Conditions ")),d("div",{key:"309c5598ab618dfb6105813ab9bcac79903b5cdf",class:"radio-group"},d("div",{key:"6b88b4bc7fe7485113078caa865e67c0f5cf6636",onClick:()=>this.radioClicked("1")},d("udp-radio-button",{key:"1f76d0dd01201d15bbf1289ac6772d6674826e0f",name:"group1",value:"1",label:"And",checked:"1"===this.selectedValue})),d("div",{key:"aa20fe4f38cf46784027d7cd2726f491c73b356b",onClick:()=>this.radioClicked("2")},d("udp-radio-button",{key:"86350922577ed97398b78b52b6ed54543f24259d",name:"group1",value:"2",label:"Or",checked:"2"===this.selectedValue}))))}static get style(){return".header-container{display:flex;width:100%;padding:16px;padding-left:0px}.title{flex:1;width:100%;display:'none'}.radio-group{display:flex;gap:16px}"}},[1,"udp-page-header",{selectedValue:[32]}]);function r(){"undefined"!=typeof customElements&&["udp-page-header","udp-radio-button","unity-typography"].forEach((e=>{switch(e){case"udp-page-header":customElements.get(i(e))||customElements.define(i(e),o);break;case"udp-radio-button":customElements.get(i(e))||s();break;case"unity-typography":customElements.get(i(e))||c()}}))}export{o as U,r as d}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as t,H as e,h as s,t as d}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.maxWidth="1200px",this.padding="16px"}render(){return s("div",{key:"
|
|
2
|
+
import{p as t,H as e,h as s,t as d}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.maxWidth="1200px",this.padding="16px"}render(){return s("div",{key:"42ef32c0e90566201dbca53bd2bef0a7a2039def",style:{maxWidth:this.maxWidth,padding:this.padding,margin:"0 auto"}},s("slot",{key:"b1108c9c61c9d67a5338ad38b6fb1a78b2d8fd49"})," ")}static get style(){return":host{display:block}"}},[257,"udp-page",{maxWidth:[1,"max-width"],padding:[1]}]),i=a,n=function(){"undefined"!=typeof customElements&&["udp-page"].forEach((t=>{"udp-page"===t&&(customElements.get(d(t))||customElements.define(d(t),a))}))};export{i as UdpPage,n as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,t as o}from"./index2.js";import{d as s}from"./unity-typography2.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=!1,this.handleClose=t=>{t&&this.el.shadowRoot.contains(t.target)||(this.isOpen=!1,document.removeEventListener("click",this.handleClose))}}componentWillLoad(){this.isOpen&&document.addEventListener("click",this.handleClose),document.removeEventListener("click",this.handleClose)}watchHandler(t){t?document.addEventListener("click",this.handleClose):document.removeEventListener("click",this.handleClose)}render(){const t={display:this.isOpen?"block":"none",position:"absolute",right:"6px"};if(this.anchorElement){const e=this.anchorElement.getBoundingClientRect();t.top=`${e.bottom}px`,t.left=`${e.left}px`}return i("div",{key:"
|
|
1
|
+
import{p as t,H as e,h as i,t as o}from"./index2.js";import{d as s}from"./unity-typography2.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=!1,this.handleClose=t=>{t&&this.el.shadowRoot.contains(t.target)||(this.isOpen=!1,document.removeEventListener("click",this.handleClose))}}componentWillLoad(){this.isOpen&&document.addEventListener("click",this.handleClose),document.removeEventListener("click",this.handleClose)}watchHandler(t){t?document.addEventListener("click",this.handleClose):document.removeEventListener("click",this.handleClose)}render(){const t={display:this.isOpen?"block":"none",position:"absolute",right:"6px"};if(this.anchorElement){const e=this.anchorElement.getBoundingClientRect();t.top=`${e.bottom}px`,t.left=`${e.left}px`}return i("div",{key:"97bbfe3dd2fb851df62b4f7f67c05ac44d87421e",class:"popover",style:t},i("unity-typography",{key:"d1cc6fc958430ea4e23c39fc5d6cf4f4301cb053",variant:"caption-text"},i("slot",{key:"35935cd9b82821f5e149be50e237005419fad8f5"})))}get el(){return this}static get watchers(){return{isOpen:[{watchHandler:0}]}}static get style(){return".popover{background-color:white;border:1px solid #ccc;padding:10px;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.1);z-index:1000;position:relative}"}},[257,"udp-pop-over-grid-action-header",{isOpen:[4,"is-open"],anchorElement:[16]},void 0,{isOpen:[{watchHandler:0}]}]);function n(){"undefined"!=typeof customElements&&["udp-pop-over-grid-action-header","unity-typography"].forEach((t=>{switch(t){case"udp-pop-over-grid-action-header":customElements.get(o(t))||customElements.define(o(t),c);break;case"unity-typography":customElements.get(o(t))||s()}}))}export{c as U,n as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as i,t as o}from"./index2.js";import{createPopper as n}from"@popperjs/core";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=!1,this.popoverPlacement="bottom-start",this.appendToBody=!0,this.overflow="auto",this.handleTransitionEnd=()=>{this.isOpen||(this.appendToBody&&this.hostEl.parentElement===document.body?document.body.removeChild(this.hostEl):this.container&&this.hostEl.parentElement===this.container&&this.container.removeChild(this.hostEl)),this.destroyPopper()},this.handleKeyDown=t=>{var e;"Escape"===t.key&&(null===(e=this.handleOnClose)||void 0===e||e.call(this,t))},this.handleClickOutside=t=>{var e;const s=t.composedPath(),i=this.getAnchorElement();s.includes(this.hostEl)||i&&s.includes(i)||null===(e=this.handleOnClose)||void 0===e||e.call(this,t)}}disconnectedCallback(){this.removeListeners(),this.destroyPopper()}handleOpenChange(t){t?this.present():this.dismiss()}present(){const t=this.getContainer();t&&t.appendChild(this.hostEl),this.addListeners(),requestAnimationFrame((()=>{this.setupPopper(),this.hostEl.classList.add("is-visible")}))}dismiss(){this.removeListeners(),this.hostEl.classList.remove("is-visible"),this.hostEl.addEventListener("transitionend",this.handleTransitionEnd,{once:!0})}addListeners(){document.addEventListener("keydown",this.handleKeyDown),setTimeout((()=>{this.isOpen&&document.addEventListener("click",this.handleClickOutside)}),0)}removeListeners(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClickOutside)}getAnchorElement(){return"string"==typeof this.anchorElement?document.getElementById(this.anchorElement):this.anchorElement}getContainer(){return this.container?this.container:this.appendToBody?document.body:null}setupPopper(){const t=this.getAnchorElement();t?(this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=n(t,this.hostEl,{strategy:"fixed",placement:this.popoverPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip"}]})):console.error("UdpPopover: Anchor element could not be found.")}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}componentWillLoad(){this.isOpen&&this.present()}render(){return s(i,{key:"
|
|
1
|
+
import{p as t,H as e,h as s,d as i,t as o}from"./index2.js";import{createPopper as n}from"@popperjs/core";const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isOpen=!1,this.popoverPlacement="bottom-start",this.appendToBody=!0,this.overflow="auto",this.handleTransitionEnd=()=>{this.isOpen||(this.appendToBody&&this.hostEl.parentElement===document.body?document.body.removeChild(this.hostEl):this.container&&this.hostEl.parentElement===this.container&&this.container.removeChild(this.hostEl)),this.destroyPopper()},this.handleKeyDown=t=>{var e;"Escape"===t.key&&(null===(e=this.handleOnClose)||void 0===e||e.call(this,t))},this.handleClickOutside=t=>{var e;const s=t.composedPath(),i=this.getAnchorElement();s.includes(this.hostEl)||i&&s.includes(i)||null===(e=this.handleOnClose)||void 0===e||e.call(this,t)}}disconnectedCallback(){this.removeListeners(),this.destroyPopper()}handleOpenChange(t){t?this.present():this.dismiss()}present(){const t=this.getContainer();t&&t.appendChild(this.hostEl),this.addListeners(),requestAnimationFrame((()=>{this.setupPopper(),this.hostEl.classList.add("is-visible")}))}dismiss(){this.removeListeners(),this.hostEl.classList.remove("is-visible"),this.hostEl.addEventListener("transitionend",this.handleTransitionEnd,{once:!0})}addListeners(){document.addEventListener("keydown",this.handleKeyDown),setTimeout((()=>{this.isOpen&&document.addEventListener("click",this.handleClickOutside)}),0)}removeListeners(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClickOutside)}getAnchorElement(){return"string"==typeof this.anchorElement?document.getElementById(this.anchorElement):this.anchorElement}getContainer(){return this.container?this.container:this.appendToBody?document.body:null}setupPopper(){const t=this.getAnchorElement();t?(this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=n(t,this.hostEl,{strategy:"fixed",placement:this.popoverPlacement,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{padding:8}},{name:"flip"}]})):console.error("UdpPopover: Anchor element could not be found.")}destroyPopper(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}componentWillLoad(){this.isOpen&&this.present()}render(){return s(i,{key:"d1dcfc4885536250c52af3e6b05371a7a9fd24d0"},s("div",{key:"c4a0946facfb54a99974e74fb70935ccdcc4fba9",class:"popover",style:{width:this.popoverWidth,maxHeight:this.popoverMaxHeight,overflow:this.overflow}},s("slot",{key:"8b76a9950358a1e5305af4aded8e29b0a927223f"})))}get hostEl(){return this}static get watchers(){return{isOpen:[{handleOpenChange:0}]}}static get style(){return":host{display:block;position:fixed;z-index:9999;pointer-events:none;opacity:0;transform:scale(0.95);transition:opacity 0.2s ease-out}:host(.is-visible){pointer-events:auto;opacity:1;transform:scale(1)}.popover{background-color:white;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border:1px solid #e0e0e0}"}},[257,"udp-pop-over",{anchorElement:[1,"anchor-element"],isOpen:[516,"is-open"],popoverWidth:[1,"popover-width"],popoverMaxHeight:[1,"popover-max-height"],popoverPlacement:[8,"popover-placement"],handleOnClose:[16],appendToBody:[4,"append-to-body"],container:[16],overflow:[1]},void 0,{isOpen:[{handleOpenChange:0}]}]);function r(){"undefined"!=typeof customElements&&["udp-pop-over"].forEach((t=>{"udp-pop-over"===t&&(customElements.get(o(t))||customElements.define(o(t),h))}))}export{h as U,r as d}
|