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 +1 @@
|
|
|
1
|
-
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import{cloneDeep as e,throttle as n}from"lodash-es";import{f as o}from"./udp-form-api-utils-DJO9gaOk.js";import{c as r,U as l,b as a,a as h}from"./enums-Bn8TXZfi.js";import{b as u}from"./utils-kwLwITIE.js";import{c,m as d}from"./makeApiCall-B-daVutk.js";import{S as m}from"./SearchBuilder-DDfrKm8m.js";import{a as f}from"./searchObject-CDJVsMG_.js";import{C as v}from"./configService-DgYnEcjx.js";import{v4 as b}from"uuid";import"axios";import"./tenantUtils-Basdb1b1.js";class p{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 i=this.buildBaseSubmissionData(t),s=c(i);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,i){var s;const e=this.buildBaseSubmissionData(i),{cleanedData:n,files:o}=this.extractCleanedDataAndFiles(t),r=c(e);o.forEach((t=>r.append("FormFiles",t)));const l={submissionResponseData:n,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(l)),r}buildBaseSubmissionData(t){var i;const s={FormId:this.formId,FormVersion:(null!==(i=this.formVersion)&&void 0!==i?i:"").toString(),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.toString()),this.generic2&&(s.generic2=this.generic2.toString()),this.generic3&&(s.generic3=this.generic3.toString()),s}extractCleanedDataAndFiles(t){const i=[],s={};for(const e in t){s[e]={};for(const n in t[e]){const o=t[e][n],{value:r,fieldFiles:l}=this.extractValueAndFiles(o);l&&i.push(...l);const a=this.processComments(o.comments),h=this.processMetadata(o.metadata);s[e][n]=Object.assign({value:r,comments:a},h&&{metadata:h})}}return{cleanedData:s,files:i}}extractValueAndFiles(t){var i,s;let e=(null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.files)?t.value.value:null==t?void 0:t.value;const n=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return n&&Array.isArray(n)?{value:"string"==typeof e&&""!==e.trim()?e:"",fieldFiles:n}:(o=e,Array.isArray(o)&&o.every((t=>t instanceof File))?{value:e.length>0?e.map((t=>t.name)).join(","):"",fieldFiles:e}:e instanceof File?{value:e.name,fieldFiles:[e]}:Array.isArray(e)?{value:e.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:e});var o}processComments(t){var i;return null!==(i=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==i?i:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class y{constructor(t,i){this.accessMode=t,this.tenantId=i}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const i=t.includes("?")?"&":"?";return`${t}${i}tenantId=${encodeURIComponent(String(this.tenantId))}`}async addComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await d("POST",s,i,!0)}async updateComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:e,commentId:n,value:o}=i,r=`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${n}`;await d("PUT",r,{value:o,sectionKey:s,questionKey:e},!0)}async deleteComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot delete a comment without a submission ID.");const{commentId:s}=i,e=`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await d("DELETE",e,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 i=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return i?new p(Object.assign(Object.assign({},t),i)):t}const{id:i}=t,s=await this.getFormSubmissionById(i);return s?new p(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw new Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,r.InProgress)}async saveCurrentFormSubmissionState(t,i){return"public"===this.accessMode?i:this.saveSubmissionToDB(t,i,r.InProgress)}async finalizeFormSubmissionState(t,i){return this.saveSubmissionToDB(t,i,r.Submitted)}async saveFormDataWithoutValues(t,i){const s=t.processSubmissionIntoFormDataWithoutValues(i),{method:e,url:n}=this.getApiRequestInfo(t),o=this.appendTenantQueryIfPublic(n),r=await d(e,o,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new p(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const i=`${v.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:i}:t.id?{method:"PUT",url:i}:{method:"POST",url:i}}async saveSubmissionToDB(t,i,s){const e=i.processSubmissionIntoFormData(t,s),{method:n,url:o}=this.getApiRequestInfo(i),r=this.appendTenantQueryIfPublic(o),l=await d(n,r,e,!0);if(""===l)return await this.fetchAndPopulateUdpFormSubmissionObj(i);const a=new p(Object.assign(Object.assign({},i),l));return Object.assign(i,a),a}async getFormSubmissionById(t){var i;try{const s=new m(1,1).addFilter("id",t,f.EQUALS),e=await s.execute("UdpFormSubmission");return(null===(i=null==e?void 0:e.pageList)||void 0===i?void 0:i[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,i){var s;try{const e=new m(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",i,f.EQUALS),n=await e.execute("UdpFormSubmission");return(null===(s=null==n?void 0:n.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class w{static create(t,i,s){return new y(t?"public":"private",null!=s?s:void 0)}}class S{constructor(t,i=!1){this.tenantId=t,this.isPublicMode=i}buildDescribeUrl(t,i){const s=v.productV1ApiUrl,e=new URLSearchParams;if("number"==typeof i&&e.set("formVersion",String(i)),this.isPublicMode){this.tenantId&&e.set("tenantId",String(this.tenantId));const i=e.toString();return`${s}/UdpForm/${t}/describe/public${i?`?${i}`:""}`}const n=e.toString();return`${s}/UdpForm/${t}/describe${n?`?${n}`:""}`}async getFormByFormIdAndFormVersion(t,i){const s=this.buildDescribeUrl(t,i),e=await d("GET",s,void 0,!1);return e.styleOverrides&&"string"==typeof e.styleOverrides&&(e.styleOverrides=JSON.parse(e.styleOverrides)),e}async getFormByFormIdLatestVersion(t){const i=this.buildDescribeUrl(t),s=await d("GET",i,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class O{constructor(t){t&&Object.assign(this,t)}}const j=(t,i)=>{const s=Object.keys(i),e=new Set,n=new RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const i=t.match(n);i&&i[1]&&e.add(Number(i[1]))})),Array.from(e).sort(((t,i)=>t-i))},I=(t,i)=>{const s=`${"undefined"!=typeof window?window.location.pathname:`/page/${l.FormRendererPrivatePageId}`}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,e=i;if(e){if("function"==typeof e.replace)return void e.replace(s);if("function"==typeof e.push)return void e.push(s);if("function"==typeof e){try{e(s,{replace:!0})}catch(t){e(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},F=(t,i)=>{null==i||i(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},g=(t,i)=>{null==i||i(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},D=(t,i)=>{var s;const e=t&&"object"==typeof t?t:{};for(const t of i||[]){const i=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(i){e[i]&&"object"==typeof e[i]||(e[i]={});for(const n of t.formQuestions||[]){const t=null==n?void 0:n.name;if(!t)continue;const o=null===(s=e[i])||void 0===s?void 0:s[t];o&&"object"==typeof o?("comments"in o||(o.comments=[]),"metadata"in o||(o.metadata=null),"value"in o||(o.value=null)):e[i][t]={value:null,comments:[],metadata:null}}}}return e},$=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},C=class{constructor(i){t(this,i),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:i,nextValues:s}=(t=>{var i,s,n;const{dynamicSections:o,values:r,index:l}=t,h=o[l];if(!h)return{nextDynamicSections:o,nextValues:r};const u=h.name,c=j(u,r),d=c.length>0?Math.max(...c)+1:2,m=Object.assign(Object.assign({},e(h)),{formQuestions:(h.formQuestions||[]).map((t=>{const i=e(t);return i.questionIdentifierKey=`${u}_${d}.${t.name}`,i})),isOriginalSection:!1,sectionPositionSuffix:d});let f=l;for(let t=l+1;t<o.length&&o[t].name===u;t++)f=t;const v=[...o.slice(0,f+1),m,...o.slice(f+1)],b=Object.assign({},r||{}),p=`${u}_${d}`,y=(w=h).isOriginalSection?w.name:`${w.name}_${w.sectionPositionSuffix}`;var w;for(const t of m.formQuestions||[]){b[p]||(b[p]={});let e="";if(t.fieldTypeId===a.Paragraph){const o=null===(s=null===(i=null==r?void 0:r[y])||void 0===i?void 0:i[t.name])||void 0===s?void 0:s.value,l=$(t.fieldProperties),a=null!==(n=null==l?void 0:l.paragraphText)&&void 0!==n?n:"";e=null!=o?o:a}b[p][t.name]={value:e,comments:[],metadata:{}}}return{nextDynamicSections:v,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=i,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 i=this.dynamicSections[t];if(i&&!i.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:i,nextValues:s}=(t=>{const{dynamicSections:i,values:s,index:n}=t,o=i[n];if(!o||o.isOriginalSection)return{nextDynamicSections:i,nextValues:s};const r=o.name,l=o.sectionPositionSuffix,a=`${r}_${l}`,h=Object.assign({},s||{});delete h[a];const u=e(i);return u.splice(n,1),u.forEach((t=>{var i;if(t.name!==r||t.isOriginalSection||(null!==(i=t.sectionPositionSuffix)&&void 0!==i?i:0)<=(null!=l?l:0))return;const s=t.sectionPositionSuffix,n=`${r}_${s}`,o=s-1,a=`${r}_${o}`;t.sectionPositionSuffix=o,t.formQuestions=(t.formQuestions||[]).map((t=>{const i=e(t);return i.questionIdentifierKey=`${a}.${t.name}`,i})),h[n]&&(h[a]=h[n],delete h[n])})),{nextDynamicSections:u,nextValues:h}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=i,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 i=D(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(i)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,i)=>{var s,e;const n=null!==(s=null==i?void 0:i.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,o=null!==(e=null==i?void 0:i.forceCreateDraftIfMissingId)&&void 0!==e&&e;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||o){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const i=D(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),n&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&I(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,i;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===(i=s.data)||void 0===i?void 0:i.submissionResponseData)||{}),this.isSubmitted=s.status===r.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const i=D(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||I(this.udpFormSubmission.id,this.history),F("Form saved successfully.",this.enqueueSnackbar)}catch(t){g("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,i,s,e,n,o,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,i),h={submissionResponseData:u(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:e,formVersion:n}}},c=new p({formId:t,formVersion:i,unityUserId:this.clientUserInfo.id,data:h}),d=w.create(!1,this.clientUserInfo.id),m=await d.createNewLinkedFollowUpFormSubmission(c);this.udpFormSubmission.data.submissionResponseData[o][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[o][r].metadata),{followUpFormSubmissionId:m.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${l.FormRendererPrivatePageId}?udpf_submissionId=${m.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 i=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);i&&(this.clientUserInfo.id=i.id||null,this.clientUserInfo.displayName=i.name||null,this.clientUserInfo.email=i.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=w.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new p({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 i=String(t).trim();return i.length>0?i:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,i,s,e;const n=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),o=this.normalizeOverrideValue(null===(i=this.urlContext)||void 0===i?void 0:i.override_formdescription);(n||o)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)!==r.Created||(this.formTemplateOverrides={formName:n,formDescription:o}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,i,s,e;const n=null===(i=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===i?void 0:i.formTemplateOverrides,o=this.normalizeOverrideValue(null!==(s=null==n?void 0:n.formName)&&void 0!==s?s:null==n?void 0:n.FormName),r=this.normalizeOverrideValue(null!==(e=null==n?void 0:n.formDescription)&&void 0!==e?e:null==n?void 0:n.FormDescription);(o||r)&&(this.formTemplateOverrides={formName:o,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:i}=this.formTemplateOverrides;(t||i)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=i?i:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,i;return this.submissionId?(t=this.udpFormSubmission.formId,i=this.udpFormSubmission.formVersion):(t=this.formId,i=this.formVersion),{formId:t,formVersion:i}}async loadFormAndInitValues(t,i){var s,e,n;this.formHandler=new S(this.tenantId,this.isPublicMode);const o="number"==typeof i?await this.formHandler.getFormByFormIdAndFormVersion(t,i):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new O(o),"number"!=typeof i){const t=null!==(e=null!==(s=null==o?void 0:o.version)&&void 0!==s?s:null==o?void 0:o.formVersion)&&void 0!==e?e:null===(n=this.udpForm)||void 0===n?void 0:n.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=u(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===r.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],i=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((i=>{const s=String(i).toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==r.Created||!i)this.dynamicSections=((t,i)=>{var s;const e=[],n=structuredClone(t.udpFormUdpFormSection).sort(((t,i)=>t.order-i.order));for(const o of n){o.sectionProperties=JSON.parse(o.sectionProperties||{});const n=j(o.name,i);if(o.isOriginalSection=!0,o.sectionPositionSuffix=1,e.push(Object.assign(Object.assign({},structuredClone(o)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===o.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${o.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=o.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&n.length>0){const i=Math.max(...n);for(let s=2;s<=i;s++){const i=Object.assign(Object.assign({},structuredClone(o)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===o.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${o.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});e.push(i)}}}return e})(this.udpForm,this.currentValues);else{const i={};Object.keys(this.urlContext).forEach((s=>{const e=String(s),n=e.toLowerCase(),o=t.find((t=>n.startsWith(t)));o&&(i[e.substring(o.length)]=this.urlContext[s])})),this.dynamicSections=((t,i,s)=>{var e,n;const o=(t=>{const i={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const e=t.match(/^([^._?&#]+)_(\d+)\./);if(!e)return;const n=e[1],o=Number(e[2]);!Number.isFinite(o)||o<2||o>(null!==(s=i[n])&&void 0!==s?s:1)&&(i[n]=o)})),i})(s),r=[],l=structuredClone(t.udpFormUdpFormSection).sort(((t,i)=>t.order-i.order));for(const s of l){s.sectionProperties=JSON.parse(s.sectionProperties||{});const l=j(s.name,i),a=l.length>0?Math.max(...l):1,h=null!==(e=null==o?void 0:o[s.name])&&void 0!==e?e:1,u=Math.max(a,h);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,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(n=s.sectionProperties)||void 0===n?void 0:n.isRepeatable)&&u>=2)for(let i=2;i<=u;i++){const e=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${i}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:i});r.push(e)}}return r})(this.udpForm,this.currentValues,i);const s=((t,i)=>{if(!Array.isArray(t))return;const s=i&&"object"==typeof i?i:{},e={};Object.keys(s).forEach((t=>{e[String(t).toLowerCase()]=s[t]}));const n={};t.forEach((t=>{const i=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 o;for(const t of s){const i=String(t).toLowerCase();if(Object.prototype.hasOwnProperty.call(e,i)){o=e[i];break}}null!=o&&(n[i]||(n[i]={}),n[i][t.name]={value:o,comments:[]})}))}));const o={};return Object.entries(n).forEach((([t,i])=>{o[t]||(o[t]={}),Object.entries(i).forEach((([i,s])=>{const e=o[t][i];(null==e||null==e.value||"string"==typeof e.value&&""===e.value.trim())&&(o[t][i]=s)}))})),t.forEach((t=>{const i=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;o[i]||(o[i]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===a.Paragraph){const e=o[i][t.name];if(null==e||null==e.value||"string"==typeof e.value&&""===e.value.trim()){let e=null==t?void 0:t.fieldProperties;if("string"==typeof e)try{e=JSON.parse(e||"{}")}catch(t){e={}}o[i][t.name]={value:null!==(s=null==e?void 0:e.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),o})(this.dynamicSections,i);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",(()=>{g("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:i}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,i),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 i=D(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw g("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var i,s,e,n,o,l;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:a,questionIdentifierKey:h,commentId:u}=t.detail,c=function(t){var i,s,e,n,o;const{actionType:r,questionIdentifierKey:l,commentId:a,currentSubmissionResponseData:h,clientUserInfo:u}=t,c=(l||"").split("."),d=c[0]||"",m=c[1]||"";if(!d||!m)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:h||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const f=h||{},v=f[d]||{},p=v[m],y=Object.assign(Object.assign({},f),{[d]:Object.assign({},v)});p?(y[d][m]=Object.assign({},p),y[d][m].comments=null!==(i=y[d][m].comments)&&void 0!==i?i:[],y[d][m].draftComments=null!==(s=y[d][m].draftComments)&&void 0!==s?s:[],y[d][m].metadata=null!==(e=y[d][m].metadata)&&void 0!==e?e:{}):y[d][m]={value:"",comments:[],draftComments:[],metadata:{}};const w=y[d][m].draftComments;w&&!Array.isArray(w)?y[d][m].draftComments=[w]:w||(y[d][m].draftComments=[]);const S=Array.isArray(y[d][m].comments)?[...y[d][m].comments]:[],O=Array.isArray(y[d][m].draftComments)?[...y[d][m].draftComments]:[];let j=!1;switch(r){case"add":{const t={value:"",commentId:b(),isTempComment:!0,timestamp:null};y[d][m].draftComments=[t,...O],j=!0;break}case"save":{const t=O.findIndex((t=>t.commentId===a));if(-1===t)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const i=O[t],s=i.timestamp||(new Date).toISOString(),e=Object.assign(Object.assign({},i),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==u?void 0:u.id,userDisplayName:null==u?void 0:u.displayName,isDraftComment:!1}),n=S.findIndex((t=>t.commentId===a));if(-1!==n){const t=[...S];t[n]=Object.assign({},e),y[d][m].comments=t}else y[d][m].comments=[...S,e];y[d][m].draftComments=O.filter((t=>t.commentId!==a)),j=!0;break}case"edit":{const t=S.find((t=>t.commentId===a));if(!t)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const i=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[d][m].draftComments=[i,...O],y[d][m].comments=S,j=!0;break}case"delete":y[d][m].comments=S.map((t=>t.commentId===a?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),j=!0;break;case"editClose":y[d][m].draftComments=O.filter((t=>t.commentId!==a)),j=!0}const I="save"===r||"delete"===r;let F;if("save"===r){const t=((null===(o=null===(n=null==y?void 0:y[d])||void 0===n?void 0:n[m])||void 0===o?void 0:o.comments)||[]).find((t=>t.commentId===a));F=null==t?void 0:t.value}return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:j,shouldPersist:I,persistIntent:"none",commentId:a,valueToPersist:F}}({actionType:a,questionIdentifierKey:h,commentId:u,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),d=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},d),"edit"!==a&&"editClose"!==a&&"add"!==a||(this.currentValues=Object.assign({},d)),c.shouldPersist){const t=(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)===r.Submitted,h=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,u=((null===(o=null===(n=null===(e=this.currentValues||{})||void 0===e?void 0:e[c.sectionKey])||void 0===n?void 0:n[c.questionKey])||void 0===o?void 0:o.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!h)if(null===(l=this.udpFormSubmission)||void 0===l?void 0:l.id){if("save"===a){const t=c.valueToPersist;if(t)try{u?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(),F(u?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw g(u?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===a)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),F("Comment deleted.",this.enqueueSnackbar)}catch(t){throw g("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},d);else this.isPublicMode?this.currentValues=Object.assign({},d):await this.handleManualSave(d)}else this.currentValues=Object.assign({},d)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}async loadFollowUpForms(t,i){var s;this.isLoading=!0;try{const e=(await o(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:h.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!e||!Array.isArray(e.pageList))throw new Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(e.pageList,t,i),this.followUpSideSheetTotalItems=null!==(s=e.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,i,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,i,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:i("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&i("udp-linear-loader",null),i("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 i("div",{key:"43693c3e7463897dc09265c782d9267ee08f07b4",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),i("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 s(this)}};export{C as udp_forms_renderer}
|
|
1
|
+
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import{cloneDeep as e,throttle as n}from"lodash-es";import{f as o}from"./udp-form-api-utils-DJO9gaOk.js";import{c as r,U as l,b as a,a as h}from"./enums-Bn8TXZfi.js";import{b as u}from"./utils-kwLwITIE.js";import{c,m as d}from"./makeApiCall-B-daVutk.js";import{S as m}from"./SearchBuilder-DDfrKm8m.js";import{a as f}from"./searchObject-CDJVsMG_.js";import{C as v}from"./configService-DgYnEcjx.js";import{v4 as b}from"uuid";import"axios";import"./tenantUtils-Basdb1b1.js";class p{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 i=this.buildBaseSubmissionData(t),s=c(i);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,i){var s;const e=this.buildBaseSubmissionData(i),{cleanedData:n,files:o}=this.extractCleanedDataAndFiles(t),r=c(e);o.forEach((t=>r.append("FormFiles",t)));const l={submissionResponseData:n,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(l)),r}buildBaseSubmissionData(t){var i;const s={FormId:this.formId,FormVersion:(null!==(i=this.formVersion)&&void 0!==i?i:"").toString(),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.toString()),this.generic2&&(s.generic2=this.generic2.toString()),this.generic3&&(s.generic3=this.generic3.toString()),s}extractCleanedDataAndFiles(t){const i=[],s={};for(const e in t){s[e]={};for(const n in t[e]){const o=t[e][n],{value:r,fieldFiles:l}=this.extractValueAndFiles(o);l&&i.push(...l);const a=this.processComments(o.comments),h=this.processMetadata(o.metadata);s[e][n]=Object.assign({value:r,comments:a},h&&{metadata:h})}}return{cleanedData:s,files:i}}extractValueAndFiles(t){var i,s;let e=(null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.files)?t.value.value:null==t?void 0:t.value;const n=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return n&&Array.isArray(n)?{value:"string"==typeof e&&""!==e.trim()?e:"",fieldFiles:n}:(o=e,Array.isArray(o)&&o.every((t=>t instanceof File))?{value:e.length>0?e.map((t=>t.name)).join(","):"",fieldFiles:e}:e instanceof File?{value:e.name,fieldFiles:[e]}:Array.isArray(e)?{value:e.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:e});var o}processComments(t){var i;return null!==(i=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==i?i:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class y{constructor(t,i){this.accessMode=t,this.tenantId=i}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const i=t.includes("?")?"&":"?";return`${t}${i}tenantId=${encodeURIComponent(String(this.tenantId))}`}async addComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await d("POST",s,i,!0)}async updateComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:e,commentId:n,value:o}=i,r=`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${n}`;await d("PUT",r,{value:o,sectionKey:s,questionKey:e},!0)}async deleteComment(t,i){if(!(null==t?void 0:t.id))throw new Error("Cannot delete a comment without a submission ID.");const{commentId:s}=i,e=`${v.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await d("DELETE",e,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 i=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return i?new p(Object.assign(Object.assign({},t),i)):t}const{id:i}=t,s=await this.getFormSubmissionById(i);return s?new p(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw new Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,r.InProgress)}async saveCurrentFormSubmissionState(t,i){return"public"===this.accessMode?i:this.saveSubmissionToDB(t,i,r.InProgress)}async finalizeFormSubmissionState(t,i){return this.saveSubmissionToDB(t,i,r.Submitted)}async saveFormDataWithoutValues(t,i){const s=t.processSubmissionIntoFormDataWithoutValues(i),{method:e,url:n}=this.getApiRequestInfo(t),o=this.appendTenantQueryIfPublic(n),r=await d(e,o,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new p(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const i=`${v.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:i}:t.id?{method:"PUT",url:i}:{method:"POST",url:i}}async saveSubmissionToDB(t,i,s){const e=i.processSubmissionIntoFormData(t,s),{method:n,url:o}=this.getApiRequestInfo(i),r=this.appendTenantQueryIfPublic(o),l=await d(n,r,e,!0);if(""===l)return await this.fetchAndPopulateUdpFormSubmissionObj(i);const a=new p(Object.assign(Object.assign({},i),l));return Object.assign(i,a),a}async getFormSubmissionById(t){var i;try{const s=new m(1,1).addFilter("id",t,f.EQUALS),e=await s.execute("UdpFormSubmission");return(null===(i=null==e?void 0:e.pageList)||void 0===i?void 0:i[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,i){var s;try{const e=new m(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",i,f.EQUALS),n=await e.execute("UdpFormSubmission");return(null===(s=null==n?void 0:n.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class w{static create(t,i,s){return new y(t?"public":"private",null!=s?s:void 0)}}class S{constructor(t,i=!1){this.tenantId=t,this.isPublicMode=i}buildDescribeUrl(t,i){const s=v.productV1ApiUrl,e=new URLSearchParams;if("number"==typeof i&&e.set("formVersion",String(i)),this.isPublicMode){this.tenantId&&e.set("tenantId",String(this.tenantId));const i=e.toString();return`${s}/UdpForm/${t}/describe/public${i?`?${i}`:""}`}const n=e.toString();return`${s}/UdpForm/${t}/describe${n?`?${n}`:""}`}async getFormByFormIdAndFormVersion(t,i){const s=this.buildDescribeUrl(t,i),e=await d("GET",s,void 0,!1);return e.styleOverrides&&"string"==typeof e.styleOverrides&&(e.styleOverrides=JSON.parse(e.styleOverrides)),e}async getFormByFormIdLatestVersion(t){const i=this.buildDescribeUrl(t),s=await d("GET",i,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class O{constructor(t){t&&Object.assign(this,t)}}const j=(t,i)=>{const s=Object.keys(i),e=new Set,n=new RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const i=t.match(n);i&&i[1]&&e.add(Number(i[1]))})),Array.from(e).sort(((t,i)=>t-i))},I=(t,i)=>{const s=`${"undefined"!=typeof window?window.location.pathname:`/page/${l.FormRendererPrivatePageId}`}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,e=i;if(e){if("function"==typeof e.replace)return void e.replace(s);if("function"==typeof e.push)return void e.push(s);if("function"==typeof e){try{e(s,{replace:!0})}catch(t){e(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},F=(t,i)=>{null==i||i(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},g=(t,i)=>{null==i||i(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},D=(t,i)=>{var s;const e=t&&"object"==typeof t?t:{};for(const t of i||[]){const i=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(i){e[i]&&"object"==typeof e[i]||(e[i]={});for(const n of t.formQuestions||[]){const t=null==n?void 0:n.name;if(!t)continue;const o=null===(s=e[i])||void 0===s?void 0:s[t];o&&"object"==typeof o?("comments"in o||(o.comments=[]),"metadata"in o||(o.metadata=null),"value"in o||(o.value=null)):e[i][t]={value:null,comments:[],metadata:null}}}}return e},$=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},C=class{constructor(i){t(this,i),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:i,nextValues:s}=(t=>{var i,s,n;const{dynamicSections:o,values:r,index:l}=t,h=o[l];if(!h)return{nextDynamicSections:o,nextValues:r};const u=h.name,c=j(u,r),d=c.length>0?Math.max(...c)+1:2,m=Object.assign(Object.assign({},e(h)),{formQuestions:(h.formQuestions||[]).map((t=>{const i=e(t);return i.questionIdentifierKey=`${u}_${d}.${t.name}`,i})),isOriginalSection:!1,sectionPositionSuffix:d});let f=l;for(let t=l+1;t<o.length&&o[t].name===u;t++)f=t;const v=[...o.slice(0,f+1),m,...o.slice(f+1)],b=Object.assign({},r||{}),p=`${u}_${d}`,y=(w=h).isOriginalSection?w.name:`${w.name}_${w.sectionPositionSuffix}`;var w;for(const t of m.formQuestions||[]){b[p]||(b[p]={});let e="";if(t.fieldTypeId===a.Paragraph){const o=null===(s=null===(i=null==r?void 0:r[y])||void 0===i?void 0:i[t.name])||void 0===s?void 0:s.value,l=$(t.fieldProperties),a=null!==(n=null==l?void 0:l.paragraphText)&&void 0!==n?n:"";e=null!=o?o:a}b[p][t.name]={value:e,comments:[],metadata:{}}}return{nextDynamicSections:v,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=i,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 i=this.dynamicSections[t];if(i&&!i.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:i,nextValues:s}=(t=>{const{dynamicSections:i,values:s,index:n}=t,o=i[n];if(!o||o.isOriginalSection)return{nextDynamicSections:i,nextValues:s};const r=o.name,l=o.sectionPositionSuffix,a=`${r}_${l}`,h=Object.assign({},s||{});delete h[a];const u=e(i);return u.splice(n,1),u.forEach((t=>{var i;if(t.name!==r||t.isOriginalSection||(null!==(i=t.sectionPositionSuffix)&&void 0!==i?i:0)<=(null!=l?l:0))return;const s=t.sectionPositionSuffix,n=`${r}_${s}`,o=s-1,a=`${r}_${o}`;t.sectionPositionSuffix=o,t.formQuestions=(t.formQuestions||[]).map((t=>{const i=e(t);return i.questionIdentifierKey=`${a}.${t.name}`,i})),h[n]&&(h[a]=h[n],delete h[n])})),{nextDynamicSections:u,nextValues:h}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=i,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 i=D(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(i)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,i)=>{var s,e;const n=null!==(s=null==i?void 0:i.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,o=null!==(e=null==i?void 0:i.forceCreateDraftIfMissingId)&&void 0!==e&&e;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||o){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const i=D(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),n&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&I(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,i;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===(i=s.data)||void 0===i?void 0:i.submissionResponseData)||{}),this.isSubmitted=s.status===r.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const i=D(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||I(this.udpFormSubmission.id,this.history),F("Form saved successfully.",this.enqueueSnackbar)}catch(t){g("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,i,s,e,n,o,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,i),h={submissionResponseData:u(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:e,formVersion:n}}},c=new p({formId:t,formVersion:i,unityUserId:this.clientUserInfo.id,data:h}),d=w.create(!1,this.clientUserInfo.id),m=await d.createNewLinkedFollowUpFormSubmission(c);this.udpFormSubmission.data.submissionResponseData[o][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[o][r].metadata),{followUpFormSubmissionId:m.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${l.FormRendererPrivatePageId}?udpf_submissionId=${m.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 i=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);i&&(this.clientUserInfo.id=i.id||null,this.clientUserInfo.displayName=i.name||null,this.clientUserInfo.email=i.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=w.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new p({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 i=String(t).trim();return i.length>0?i:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,i,s,e;const n=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),o=this.normalizeOverrideValue(null===(i=this.urlContext)||void 0===i?void 0:i.override_formdescription);(n||o)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)!==r.Created||(this.formTemplateOverrides={formName:n,formDescription:o}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,i,s,e;const n=null===(i=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===i?void 0:i.formTemplateOverrides,o=this.normalizeOverrideValue(null!==(s=null==n?void 0:n.formName)&&void 0!==s?s:null==n?void 0:n.FormName),r=this.normalizeOverrideValue(null!==(e=null==n?void 0:n.formDescription)&&void 0!==e?e:null==n?void 0:n.FormDescription);(o||r)&&(this.formTemplateOverrides={formName:o,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:i}=this.formTemplateOverrides;(t||i)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=i?i:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,i;return this.submissionId?(t=this.udpFormSubmission.formId,i=this.udpFormSubmission.formVersion):(t=this.formId,i=this.formVersion),{formId:t,formVersion:i}}async loadFormAndInitValues(t,i){var s,e,n;this.formHandler=new S(this.tenantId,this.isPublicMode);const o="number"==typeof i?await this.formHandler.getFormByFormIdAndFormVersion(t,i):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new O(o),"number"!=typeof i){const t=null!==(e=null!==(s=null==o?void 0:o.version)&&void 0!==s?s:null==o?void 0:o.formVersion)&&void 0!==e?e:null===(n=this.udpForm)||void 0===n?void 0:n.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=u(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===r.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],i=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((i=>{const s=String(i).toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==r.Created||!i)this.dynamicSections=((t,i)=>{var s;const e=[],n=structuredClone(t.udpFormUdpFormSection).sort(((t,i)=>t.order-i.order));for(const o of n){o.sectionProperties=JSON.parse(o.sectionProperties||{});const n=j(o.name,i);if(o.isOriginalSection=!0,o.sectionPositionSuffix=1,e.push(Object.assign(Object.assign({},structuredClone(o)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===o.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${o.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=o.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&n.length>0){const i=Math.max(...n);for(let s=2;s<=i;s++){const i=Object.assign(Object.assign({},structuredClone(o)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===o.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${o.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});e.push(i)}}}return e})(this.udpForm,this.currentValues);else{const i={};Object.keys(this.urlContext).forEach((s=>{const e=String(s),n=e.toLowerCase(),o=t.find((t=>n.startsWith(t)));o&&(i[e.substring(o.length)]=this.urlContext[s])})),this.dynamicSections=((t,i,s)=>{var e,n;const o=(t=>{const i={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const e=t.match(/^([^._?&#]+)_(\d+)\./);if(!e)return;const n=e[1],o=Number(e[2]);!Number.isFinite(o)||o<2||o>(null!==(s=i[n])&&void 0!==s?s:1)&&(i[n]=o)})),i})(s),r=[],l=structuredClone(t.udpFormUdpFormSection).sort(((t,i)=>t.order-i.order));for(const s of l){s.sectionProperties=JSON.parse(s.sectionProperties||{});const l=j(s.name,i),a=l.length>0?Math.max(...l):1,h=null!==(e=null==o?void 0:o[s.name])&&void 0!==e?e:1,u=Math.max(a,h);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,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(n=s.sectionProperties)||void 0===n?void 0:n.isRepeatable)&&u>=2)for(let i=2;i<=u;i++){const e=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,i)=>t.questionOrder-i.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${i}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:i});r.push(e)}}return r})(this.udpForm,this.currentValues,i);const s=((t,i)=>{if(!Array.isArray(t))return;const s=i&&"object"==typeof i?i:{},e={};Object.keys(s).forEach((t=>{e[String(t).toLowerCase()]=s[t]}));const n={};t.forEach((t=>{const i=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 o;for(const t of s){const i=String(t).toLowerCase();if(Object.prototype.hasOwnProperty.call(e,i)){o=e[i];break}}null!=o&&(n[i]||(n[i]={}),n[i][t.name]={value:o,comments:[]})}))}));const o={};return Object.entries(n).forEach((([t,i])=>{o[t]||(o[t]={}),Object.entries(i).forEach((([i,s])=>{const e=o[t][i];(null==e||null==e.value||"string"==typeof e.value&&""===e.value.trim())&&(o[t][i]=s)}))})),t.forEach((t=>{const i=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;o[i]||(o[i]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===a.Paragraph){const e=o[i][t.name];if(null==e||null==e.value||"string"==typeof e.value&&""===e.value.trim()){let e=null==t?void 0:t.fieldProperties;if("string"==typeof e)try{e=JSON.parse(e||"{}")}catch(t){e={}}o[i][t.name]={value:null!==(s=null==e?void 0:e.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),o})(this.dynamicSections,i);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",(()=>{g("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:i}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,i),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 i=D(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(i,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw g("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var i,s,e,n,o,l;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:a,questionIdentifierKey:h,commentId:u}=t.detail,c=function(t){var i,s,e,n,o;const{actionType:r,questionIdentifierKey:l,commentId:a,currentSubmissionResponseData:h,clientUserInfo:u}=t,c=(l||"").split("."),d=c[0]||"",m=c[1]||"";if(!d||!m)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:h||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const f=h||{},v=f[d]||{},p=v[m],y=Object.assign(Object.assign({},f),{[d]:Object.assign({},v)});p?(y[d][m]=Object.assign({},p),y[d][m].comments=null!==(i=y[d][m].comments)&&void 0!==i?i:[],y[d][m].draftComments=null!==(s=y[d][m].draftComments)&&void 0!==s?s:[],y[d][m].metadata=null!==(e=y[d][m].metadata)&&void 0!==e?e:{}):y[d][m]={value:"",comments:[],draftComments:[],metadata:{}};const w=y[d][m].draftComments;w&&!Array.isArray(w)?y[d][m].draftComments=[w]:w||(y[d][m].draftComments=[]);const S=Array.isArray(y[d][m].comments)?[...y[d][m].comments]:[],O=Array.isArray(y[d][m].draftComments)?[...y[d][m].draftComments]:[];let j=!1;switch(r){case"add":{const t={value:"",commentId:b(),isTempComment:!0,timestamp:null};y[d][m].draftComments=[t,...O],j=!0;break}case"save":{const t=O.findIndex((t=>t.commentId===a));if(-1===t)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const i=O[t],s=i.timestamp||(new Date).toISOString(),e=Object.assign(Object.assign({},i),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==u?void 0:u.id,userDisplayName:null==u?void 0:u.displayName,isDraftComment:!1}),n=S.findIndex((t=>t.commentId===a));if(-1!==n){const t=[...S];t[n]=Object.assign({},e),y[d][m].comments=t}else y[d][m].comments=[...S,e];y[d][m].draftComments=O.filter((t=>t.commentId!==a)),j=!0;break}case"edit":{const t=S.find((t=>t.commentId===a));if(!t)return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:a};const i=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[d][m].draftComments=[i,...O],y[d][m].comments=S,j=!0;break}case"delete":y[d][m].comments=S.map((t=>t.commentId===a?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),j=!0;break;case"editClose":y[d][m].draftComments=O.filter((t=>t.commentId!==a)),j=!0}const I="save"===r||"delete"===r;let F;if("save"===r){const t=((null===(o=null===(n=null==y?void 0:y[d])||void 0===n?void 0:n[m])||void 0===o?void 0:o.comments)||[]).find((t=>t.commentId===a));F=null==t?void 0:t.value}return{sectionKey:d,questionKey:m,nextSubmissionResponseData:y,didMutate:j,shouldPersist:I,persistIntent:"none",commentId:a,valueToPersist:F}}({actionType:a,questionIdentifierKey:h,commentId:u,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),d=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},d),"edit"!==a&&"editClose"!==a&&"add"!==a||(this.currentValues=Object.assign({},d)),c.shouldPersist){const t=(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)===r.Submitted,h=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,u=((null===(o=null===(n=null===(e=this.currentValues||{})||void 0===e?void 0:e[c.sectionKey])||void 0===n?void 0:n[c.questionKey])||void 0===o?void 0:o.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!h)if(null===(l=this.udpFormSubmission)||void 0===l?void 0:l.id){if("save"===a){const t=c.valueToPersist;if(t)try{u?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(),F(u?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw g(u?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===a)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),F("Comment deleted.",this.enqueueSnackbar)}catch(t){throw g("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},d);else this.isPublicMode?this.currentValues=Object.assign({},d):await this.handleManualSave(d)}else this.currentValues=Object.assign({},d)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}async loadFollowUpForms(t,i){var s;this.isLoading=!0;try{const e=(await o(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:h.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!e||!Array.isArray(e.pageList))throw new Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(e.pageList,t,i),this.followUpSideSheetTotalItems=null!==(s=e.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,i,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,i,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:i("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&i("udp-linear-loader",null),i("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 i("div",{key:"d117ef46fabf08d4b961e746cac2ab350d4d1cd5",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),i("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 s(this)}};export{C as udp_forms_renderer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as r,h as a,H as o}from"./index-Cgpvu-iV.js";const t=class{constructor(o){i(this,o),this.cardClick=r(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=>a("div",{class:"kpi-card__wrapper",style:i},a("div",{class:"kpi-card__content"},a("div",{class:"kpi-card__header"},a("unity-typography",{variant:"h6",color:"inherit"},this.value),a("udp-icon",{iconName:this.iconName,color:"inherit"})),a("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),a("div",{class:"kpi-card-caption"},a("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),t="navigation"===this.actionType&&null!=this.href&&""!==this.href,c={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},e={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(e);return a(o,{key:"
|
|
1
|
+
import{r as i,c as r,h as a,H as o}from"./index-Cgpvu-iV.js";const t=class{constructor(o){i(this,o),this.cardClick=r(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=>a("div",{class:"kpi-card__wrapper",style:i},a("div",{class:"kpi-card__content"},a("div",{class:"kpi-card__header"},a("unity-typography",{variant:"h6",color:"inherit"},this.value),a("udp-icon",{iconName:this.iconName,color:"inherit"})),a("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),a("div",{class:"kpi-card-caption"},a("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),t="navigation"===this.actionType&&null!=this.href&&""!==this.href,c={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},e={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(e);return a(o,{key:"b1e86135a54505a5c4741f2adaaf2a3b7b11bf76"},t?a("a",{href:this.href,class:c,style:{textDecoration:"none"}},n):a("div",{class:c,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))}};t.style=":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}";export{t as udp_kpi_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as a,h as l}from"./index-Cgpvu-iV.js";const r=class{constructor(l){i(this,l),this.filterChange=a(this,"filterChange",7)}handleCardClick(i){"action"===(null==i?void 0:i.actionType)&&null!==(null==i?void 0:i.onClick)?i.onClick():"filter"===(null==i?void 0:i.actionType)&&this.filterChange.emit(this.activeFilterId===(null==i?void 0:i.id)||"all"===(null==i?void 0:i.id)?null:null==i?void 0:i.id)}render(){var i;return l("div",{key:"
|
|
1
|
+
import{r as i,c as a,h as l}from"./index-Cgpvu-iV.js";const r=class{constructor(l){i(this,l),this.filterChange=a(this,"filterChange",7)}handleCardClick(i){"action"===(null==i?void 0:i.actionType)&&null!==(null==i?void 0:i.onClick)?i.onClick():"filter"===(null==i?void 0:i.actionType)&&this.filterChange.emit(this.activeFilterId===(null==i?void 0:i.id)||"all"===(null==i?void 0:i.id)?null:null==i?void 0:i.id)}render(){var i;return l("div",{key:"e2cf551e61644fb3db2c743c63a2fe74bec1dd7a",class:"kpi-cards-container"},null===(i=this.cards)||void 0===i?void 0:i.map((i=>l("udp-kpi-card",{cardId:i.id,primaryText:i.primaryText,secondaryText:i.secondaryText,color:i.color,value:i.value,active:this.activeFilterId===i.id,actionType:i.actionType,href:i.href,iconName:null==i?void 0:i.iconName,onCardClick:()=>this.handleCardClick(i)}))),l("slot",{key:"84c02f2d8510291e9d058439999418852a8aa91c"}))}};r.style=".kpi-cards-container{display:grid;grid-template-columns:repeat(auto-fit, 160px);grid-auto-rows:1fr;gap:var(--spacing-03, '8px');align-items:stretch}";export{r as udp_kpi_cards}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,h as t}from"./index-Cgpvu-iV.js";const i=class{constructor(t){e(this,t),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 t("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&&t("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}),t("slot",{key:"0310274302a09c3afff2222ded32271195a8e006"}))}static get watchers(){return{enableDragBox:[{watchDragBoxandSelectedFeatureInteraction:0}],selectFeatureInteraction:[{watchDragBoxandSelectedFeatureInteraction:0}]}}};i.style=":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}";export{i as udp_map}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,h as t,H as s,a as i}from"./index-Cgpvu-iV.js";import{createPopper as o}from"@popperjs/core";const n=class{constructor(t){e(this,t),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 t(s,{key:"c9d430ebf74e18ee1fdc00ebbd89fd430fa3725a"},t("div",{key:"b7b959e59ecf997a4b6f18455d428d7288383d16",class:"menu-panel",role:"menu"},t("slot",{key:"4d9e766005b611cb7c50aca6804962a4a70e75ca"})))}get hostEl(){return i(this)}static get watchers(){return{open:[{handleOpenChange:0}]}}};n.style=":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}";export{n as udp_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./index-Cgpvu-iV.js";const
|
|
1
|
+
import{r as s,h as t}from"./index-Cgpvu-iV.js";const a=class{constructor(t){s(this,t),this.maxWidth="1200px",this.padding="16px"}render(){return t("div",{key:"42ef32c0e90566201dbca53bd2bef0a7a2039def",style:{maxWidth:this.maxWidth,padding:this.padding,margin:"0 auto"}},t("slot",{key:"b1108c9c61c9d67a5338ad38b6fb1a78b2d8fd49"})," ")}};a.style=":host{display:block}";export{a as udp_page}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import*as h from"@amcharts/amcharts4/charts";import*as r from"@amcharts/amcharts4/core";import{s as
|
|
1
|
+
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import*as h from"@amcharts/amcharts4/charts";import*as r from"@amcharts/amcharts4/core";import{s as a,a as e}from"./chartUtils-DFIyEsL1.js";import{v4 as d}from"uuid";const o=class{constructor(i){t(this,i),this.data=void 0,this.valueField="",this.labelField="",this.title=void 0,this.subheader=void 0,this.hideLegend=!1,this.kpisPosition="left",this.kpis=void 0,this.hideAdornment=!1,this.hideBorder=!1,this.sourceIdField="from",this.targetIdField="to",this.labelFormat="{name}: ${value}",this.tooltipTextFormat="{fromName} - {toName}: ${value}",this.nodeTooltipTextFormat=void 0,this.paddingRight=110,this.removePadding=!1,this.chartId=d()}async renderChart(){const t=async()=>{var i,s,d;const o=null===(s=null===(i=this.el)||void 0===i?void 0:i.shadowRoot)||void 0===s?void 0:s.getElementById(this.chartId);if(!o)return await new Promise((t=>setTimeout(t,50))),t();this.valueField&&this.sourceIdField&&this.targetIdField&&(this.chart&&this.chart.dispose(),this.chart=r.create(o,h.SankeyDiagram),a(this.chart,o,this.enableExport),e(this.chart,this.valueField,this.sourceIdField,this.targetIdField,this.paddingRight,this.labelFormat,this.tooltipTextFormat,this.nodeTooltipTextFormat),this.chart.data=null!==(d=this.data)&&void 0!==d?d:[])};await t()}componentDidLoad(){this.renderChart()}disconnectedCallback(){this.chart&&this.chart.dispose()}render(){return i("chart-container",{key:"241dd67a11cc0725daa9a4b6a4c29075a438cfbf",kpis:this.kpis,chartId:this.chartId,title:this.title,subheader:this.subheader,chartHeight:this.customHeight,chartWidth:this.customWidth,cardWidth:this.customCardWidth,kpisPosition:this.kpisPosition,hideAdornment:this.hideAdornment,hideBorder:this.hideBorder,removePadding:this.removePadding})}get el(){return s(this)}static get watchers(){return{valueField:[{renderChart:0}],sourceIdField:[{renderChart:0}],targetIdField:[{renderChart:0}],labelFormat:[{renderChart:0}],tooltipTextFormat:[{renderChart:0}],nodeTooltipTextFormat:[{renderChart:0}],paddingRight:[{renderChart:0}],hideLegend:[{renderChart:0}],data:[{renderChart:0}]}}};o.style=":host{display:block}";export{o as udp_sankey_chart}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,c as e,h as s,H as l,a as i}from"./index-Cgpvu-iV.js";import{h as t}from"./slot-helpers-Dx6EW-PP.js";const r=class{constructor(s){a(this,s),this.openChange=e(this,"openChange",7),this.open=!0,this.sidebarWidth="264px",this.sidebarPosition="start",this.fill=!1,this.collapsible=!0}async toggle(){this.setOpen(!this.open)}setOpen(a){a!==this.open&&(this.open=a,this.openChange.emit(a))}render(){const a=this.fill?void 0:this.stickyOffset,e={"--sbl-sidebar-width":this.sidebarWidth};a&&(e.top=a,e.maxHeight=`calc(100dvh - ${a})`);const i="end"===this.sidebarPosition,r=i?"panel-right-contract":"panel-left-contract",c=i?"panel-right-expand":"panel-left-expand",o=t(this.el,"sidebar-header");return s(l,{key:"7bf0ef79d86a65fc65207cd996229b2f2bd9309a",class:{"sbl-host--fill":this.fill}},s("div",{key:"13479a936e2e07eb2d6b7e1a7c53f86ec3f2d81e",class:{sbl:!0,"sbl--end":i,"sbl--sticky":!!a,"sbl--fill":this.fill,"sbl--collapsed":!this.open}},s("aside",{key:"f360b30b972b667cc4debb87a00b3980994841a7",class:"sbl__sidebar",style:e},s("div",{key:"086c40ae15dbe1ce8b65bc19c8dd18f5e8457670",class:"sbl__panel"},(o||this.sidebarTitle||this.collapsible)&&s("div",{key:"e1e2af716dd83cf75ca81127fd1df53e12fbaac3",class:"sbl__header"},s("div",{key:"0e3ee95ee4e29b1b65b6af98632775642c11f033",class:"sbl__header-content"},s("slot",{key:"aab228738f9dc9a586b6ed52583275db1a12d9fa",name:"sidebar-header"},this.sidebarTitle&&s("udp-text",{key:"8d5963340e87b8ddd0a7579f9d0c01076a8c6e8d",variant:"subtitle2",class:"sbl__title"},this.sidebarTitle))),this.collapsible&&s("udp-fluent-icon-button",{key:"58c0013d20a41a255b5c3d1a076c826568161707",iconName:r,appearance:"subtle",ariaLabel:"Collapse sidebar",onClick:()=>this.setOpen(!1)})),s("div",{key:"a3364b3cf1c707f1880e27a48c7400faf0ec67f7",class:"sbl__body"},s("slot",{key:"bbeaca1c5f008cb1a97dccc14c33632cdc7807f3",name:"sidebar"}))),this.collapsible&&s("div",{key:"c770c06509e92e4f06b2f6c92c5ed0991a342a45",class:"sbl__rail"},s("udp-fluent-icon-button",{key:"3892792c8fd5a89e7d740435a864d03ad60380d6",iconName:c,appearance:"subtle",ariaLabel:"Expand sidebar",onClick:()=>this.setOpen(!0)}))),s("div",{key:"823847d4dc7b2a38686570651f8b85db7fd0dc67",class:"sbl__main"},s("slot",{key:"f8302f403d2b57bb7fc69f5670d3045c3eab3deb"}))))}get el(){return i(this)}};r.style=":host{display:block}:host(.sbl-host--fill){height:100%;min-height:0}.sbl{display:flex;flex-direction:row;align-items:stretch}.sbl--fill{height:100%;min-height:0}.sbl--fill .sbl__sidebar{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--colorNeutralStroke2) transparent}.sbl--fill .sbl__main{min-height:0;overflow-y:auto}.sbl--end{flex-direction:row-reverse}.sbl__sidebar{flex:0 0 auto;box-sizing:border-box;width:var(--sbl-sidebar-width, 264px);background-color:var(--colorNeutralBackground1);border-right:1px solid var(--colorNeutralStroke2)}.sbl--end .sbl__sidebar{border-right:none;border-left:1px solid var(--colorNeutralStroke2)}.sbl--collapsed .sbl__sidebar{width:var(--sbl-rail-width, 44px)}.sbl--sticky .sbl__sidebar{position:sticky;align-self:flex-start;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--colorNeutralStroke2) transparent}.sbl--sticky .sbl__sidebar::-webkit-scrollbar{width:8px}.sbl--sticky .sbl__sidebar::-webkit-scrollbar-thumb{background-color:var(--colorNeutralStroke2);border-radius:4px}.sbl--sticky .sbl__sidebar::-webkit-scrollbar-track{background:transparent}.sbl__header{display:flex;align-items:center;justify-content:space-between;gap:var(--spacingHorizontalS);padding:var(--spacingVerticalS) var(--spacingHorizontalXS) var(--spacingVerticalS) var(--spacingHorizontalM);position:sticky;top:0;z-index:1;background-color:var(--colorNeutralBackground1)}.sbl__header-content{min-width:0;display:flex;align-items:center;gap:var(--spacingHorizontalS)}.sbl__title{color:var(--colorNeutralForeground1);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sbl__body{padding:var(--spacingVerticalXS) var(--spacingHorizontalXS) var(--spacingVerticalM)}.sbl__rail{display:none;justify-content:center;padding:var(--spacingVerticalS) 0;position:sticky;top:0}.sbl--collapsed .sbl__panel{display:none}.sbl--collapsed .sbl__rail{display:flex}.sbl__main{flex:1 1 auto;min-width:0}";export{r as udp_sidebar_layout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./index-Cgpvu-iV.js";const r=class{constructor(t){e(this,t),this.width="100%",this.height="20px",this.borderRadius="4px"}render(){return t("div",{key:"
|
|
1
|
+
import{r as e,h as t}from"./index-Cgpvu-iV.js";const r=class{constructor(t){e(this,t),this.width="100%",this.height="20px",this.borderRadius="4px"}render(){return t("div",{key:"a89938f7f56be7207988c4c01c9c2088fc512dbc",class:"skeleton-loader",style:{width:this.width,height:this.height,borderRadius:this.borderRadius}})}};r.style=".skeleton-loader{background:linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);background-size:1000px 100%;display:inline-block;position:relative;overflow:hidden}.skeleton-loader::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background-image:linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);animation:load 1.5s infinite}@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}";export{r as udp_skeleton_loading}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./index-Cgpvu-iV.js";const
|
|
1
|
+
import{r as e,h as t}from"./index-Cgpvu-iV.js";const o=class{constructor(t){e(this,t),this.isOpen=!0,this.panelWidth=75,this.isDragging=!1,this.handleDrag=e=>{console.log("Dragging");const t=this.element.getBoundingClientRect(),o=Math.max(2,Math.min((e.clientX-t.left)/t.width*100,98));localStorage.setItem("panelWidth",this.panelWidth.toString()),this.panelWidth!==o&&(this.panelWidth=o,localStorage.setItem("panelWidth",this.panelWidth.toString()))}}async toggleOpen(){this.isOpen=!this.isOpen}componentDidLoad(){this.element.addEventListener("mousedown",(e=>{this.isDragging=!0,e.preventDefault()})),document.addEventListener("mousemove",(e=>{if(this.isDragging){if(this.isDragging){const t=this.element.getBoundingClientRect();this.panelWidth=Math.max(2,Math.min((e.clientX-t.left)/t.width*100,98))}this.handleDrag(e)}})),document.addEventListener("mouseup",(()=>{this.isDragging&&(this.isDragging=!1)}))}async componentWillLoad(){const e=localStorage.getItem("panelWidth");e&&(this.panelWidth=parseFloat(e))}render(){return t("div",{key:"339dad7259fc93e79b3649453563c7b219fed148",ref:e=>this.element=e,class:{container:!0,open:this.isOpen}},t("div",{key:"0c280a958b8d0184abefb7848f3ff964037e45c0",class:"panel",style:{width:`${this.panelWidth}%`}},t("slot",{key:"130db581e05460c67d7af041b12fe8ade9e2aeab",name:"first-panel"})),t("div",{key:"8e3f9f87ebb632aa4e9e3d750123300d02d2baae",class:"resizer",onMouseDown:e=>e.preventDefault()},t("div",{key:"6259e6228c187611d9263c1048fa7e29d5cff5d5",class:"drag-handle"})),t("div",{key:"22fc5a5a91de95bbe8f6ea4d5494d91c99de8328",class:"panel",style:{width:100-this.panelWidth+"%"}},t("slot",{key:"24be53aeb8c65a17a277039bbbdd0557a233944d",name:"second-panel"},this.panelContent)))}};o.style=".container{display:flex;height:100%;width:100%}.container:not(.open){display:none}.panel{flex-grow:1;overflow:auto;cursor:default;}.resizer{background-color:transparent;height:100vh;cursor:ew-resize;position:relative;display:flex;align-items:center;justify-content:center;padding:0 2px;box-sizing:content-box;transition:background-color 0.3s ease;}.resizer:hover{background-color:var(--primary-color);cursor:ew-resize;}.resizer:hover::before{background-color:transparent;}.resizer::before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:2px;height:100%;background-color:rgb(219, 219, 219);transition:background-color 0.3s ease;}.drag-handle{content:'';font-size:24px;color:#666;user-select:none;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}";export{o as udp_split_screen}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-Cgpvu-iV.js";const i=class{constructor(i){t(this,i),this.activeStep=0,this.completed={},this.step1=e("div",null,"This is step 1 content - Try clicking next!"),this.step2=e("div",null,"This is step 2 content - You can go back or forward"),this.step3=e("div",null,"This is step 3 content - Final step!"),this.steps=[{stepDisplay:{inProcessIcon:"1",completeIcon:"✓",title:"First Step",subTitle:"Start here"},stepTitle:"Step 1",showTitle:!0,buttons:[{title:"Next",action:2,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{0:!0}),this.activeStep=1}}],content:this.step1},{stepDisplay:{inProcessIcon:"2",completeIcon:"✓",title:"Second Step",subTitle:"Middle step"},stepTitle:"Step 2",showTitle:!0,buttons:[{title:"Back",action:1,variant:"outline",customAction:()=>this.activeStep=0},{title:"Next",action:3,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{1:!0}),this.activeStep=2}}],content:this.step2},{stepDisplay:{inProcessIcon:"3",completeIcon:"✓",title:"Final Step",subTitle:"Complete the process"},stepTitle:"Step 3",showTitle:!0,buttons:[{title:"Back",action:2,customAction:()=>this.activeStep=1},{title:"Finish",action:3,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{2:!0}),console.log("Process completed!")}}],content:this.step3}],this.handleStepChange=t=>{this.activeStep=t}}render(){return e("div",{key:"
|
|
1
|
+
import{r as t,h as e}from"./index-Cgpvu-iV.js";const i=class{constructor(i){t(this,i),this.activeStep=0,this.completed={},this.step1=e("div",null,"This is step 1 content - Try clicking next!"),this.step2=e("div",null,"This is step 2 content - You can go back or forward"),this.step3=e("div",null,"This is step 3 content - Final step!"),this.steps=[{stepDisplay:{inProcessIcon:"1",completeIcon:"✓",title:"First Step",subTitle:"Start here"},stepTitle:"Step 1",showTitle:!0,buttons:[{title:"Next",action:2,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{0:!0}),this.activeStep=1}}],content:this.step1},{stepDisplay:{inProcessIcon:"2",completeIcon:"✓",title:"Second Step",subTitle:"Middle step"},stepTitle:"Step 2",showTitle:!0,buttons:[{title:"Back",action:1,variant:"outline",customAction:()=>this.activeStep=0},{title:"Next",action:3,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{1:!0}),this.activeStep=2}}],content:this.step2},{stepDisplay:{inProcessIcon:"3",completeIcon:"✓",title:"Final Step",subTitle:"Complete the process"},stepTitle:"Step 3",showTitle:!0,buttons:[{title:"Back",action:2,customAction:()=>this.activeStep=1},{title:"Finish",action:3,variant:"default",customAction:()=>{this.completed=Object.assign(Object.assign({},this.completed),{2:!0}),console.log("Process completed!")}}],content:this.step3}],this.handleStepChange=t=>{this.activeStep=t}}render(){return e("div",{key:"eceed53125c8933fa8523208dcfcae23869f5f6c",style:{padding:"2rem"}},e("unity-typography",{key:"136e04780a9964e136e6334fbcb815ab43491b64",variant:"h2"},"Horizontal Stepper with Labels bottom"),e("udp-stepper",{key:"cec70e5ff7db935d01db1e22db141ab3ea08159e",steps:this.steps,activeStep:this.activeStep,completed:this.completed,stepChange:this.handleStepChange,orientation:"horizontal",labelDisplay:"all",labelPosition:"bottom"}),e("unity-typography",{key:"c2912a81981d1c53b9d4de59c2ee26f2b21ed833",variant:"h2"},"Horizontal Stepper without Labels"),e("udp-stepper",{key:"1258d7f1c617e2805a63521d00a9b752dfb5bf79",steps:this.steps,activeStep:this.activeStep,completed:this.completed,stepChange:this.handleStepChange,orientation:"horizontal",labelDisplay:"none",labelPosition:"bottom"}),e("unity-typography",{key:"a564bc605c7a74981b64e2938da24c7ba65762d2",variant:"h2"},"Horizontal Stepper with Labels to Right"),e("udp-stepper",{key:"4689fbba1de58f5b3c565483c37ebf05fbb09a95",steps:this.steps,activeStep:this.activeStep,completed:this.completed,stepChange:this.handleStepChange,orientation:"horizontal",labelDisplay:"all",labelPosition:"right"}),e("unity-typography",{key:"b9cf04b44a489ec5ecee1503c560bc7781b8c044",variant:"h2"},"Vertical Stepper"),e("udp-stepper",{key:"719b1d19d3c2759701b065f7ef97ed323620ff7e",steps:this.steps,activeStep:this.activeStep,completed:this.completed,stepChange:this.handleStepChange,orientation:"vertical",labelDisplay:"all",labelPosition:"right"}))}};export{i as udp_stepper_demo}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as a,h as t}from"./index-Cgpvu-iV.js";const e=class{constructor(t){a(this,t),this.active=!1,this.iconPlacement="start",this.hidden=!1,this.disabled=!1}render(){return t("div",{key:"29fc3f55112bd9c12a148f99bb17ac9e2a8f5c9d",class:{"tab-panel":!0,active:this.active},role:"tabpanel"},t("slot",{key:"79a4524128508ebf0ce027d66d44af3ae5812c75"}))}};e.style=".tab-panel{display:none}.tab-panel.active{display:block}";export{e as udp_tab}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i}from"./index-Cgpvu-iV.js";const n=class{constructor(i){e(this,i)}render(){return i("div",{key:"
|
|
1
|
+
import{r as e,h as i}from"./index-Cgpvu-iV.js";const n=class{constructor(i){e(this,i)}render(){return i("div",{key:"2f60f4aa711fe5bad47dcc74e067f67a42a027d2",class:"connector"})}};n.style=".host{--udp-timeline-line-width:2px;--udp-timeline-connector-color:var(--udp-timeline-line-color, #e0e0e0)}.connector{width:var(--udp-timeline-line-width, 2px);height:100%;background:var(--udp-timeline-connector-color, var(--udp-timeline-line-color, #e0e0e0));margin:8px 0;}";export{n as udp_timeline_connector}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as e}from"./index-Cgpvu-iV.js";const o=class{constructor(e){i(this,e),this.color="primary",this.variant="filled",this.size="medium",this.shape="default"}render(){const i=!["primary","secondary","default","error","info","success","warning"].includes(this.color);return e("div",{key:"
|
|
1
|
+
import{r as i,h as e}from"./index-Cgpvu-iV.js";const o=class{constructor(e){i(this,e),this.color="primary",this.variant="filled",this.size="medium",this.shape="default"}render(){const i=!["primary","secondary","default","error","info","success","warning"].includes(this.color);return e("div",{key:"2e363445c59d5d60eee4ed25cbd5e0fa320e252e",class:{["dot-"+this.size]:!0,["dot-"+this.variant]:!0,["dot-color-"+this.color]:!i,["dot-shape-"+this.shape]:!0},style:i?{"--udp-timeline-dot-bg":this.color,"--udp-timeline-dot-outline-color":this.color}:{}},e("slot",{key:"ae65d63769b6ffb1f447d613e499421b899041f4"}))}};o.style=":host{--udp-timeline-dot-size-small:10px;--udp-timeline-dot-size-medium:14px;--udp-timeline-dot-size-large:20px;--udp-timeline-dot-icon-size:36px;--udp-timeline-dot-filled-bg-default:#e0e0e0;--udp-timeline-dot-outlined-bg:#ffffff;--udp-timeline-dot-outline-width:2px;--udp-timeline-dot-outline-color:var(--udp-timeline-dot-filled-bg-primary);--udp-timeline-dot-bg:var(--udp-timeline-dot-filled-bg-primary);display:inline-block;box-sizing:border-box;align-self:center}.dot-medium{width:var(--udp-timeline-dot-size-medium);height:var(--udp-timeline-dot-size-medium);border-radius:50%;display:inline-block;--udp-timeline-dot-size:var(--udp-timeline-dot-size-medium)}.dot-small{width:var(--udp-timeline-dot-size-small);height:var(--udp-timeline-dot-size-small);--udp-timeline-dot-size:var(--udp-timeline-dot-size-small)}.dot-large{width:var(--udp-timeline-dot-size-large);height:var(--udp-timeline-dot-size-large);--udp-timeline-dot-size:var(--udp-timeline-dot-size-large)}.dot-filled{background:var(--udp-timeline-dot-bg)}.dot-outlined{background:var(--udp-timeline-dot-outlined-bg);border:var(--udp-timeline-dot-outline-width) solid var(--udp-timeline-dot-outline-color)}.dot-medium,.dot-small,.dot-large{box-sizing:border-box;margin:0}.dot-shape-icon{width:var(--udp-timeline-dot-icon-size);height:var(--udp-timeline-dot-icon-size);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--udp-timeline-dot-icon-shadow, 0 2px 6px rgba(0, 0, 0, 0.15));--udp-timeline-dot-size:var(--udp-timeline-dot-icon-size)}.dot-shape-icon.dot-outlined{background:var(--udp-timeline-dot-outlined-bg);border:var(--udp-timeline-dot-outline-width) solid var(--udp-timeline-dot-outline-color)}.dot-shape-icon.dot-filled{background:var(--udp-timeline-dot-bg)}:host{display:inline-block;box-sizing:border-box;margin:0;padding:0}.dot-color-primary{--udp-timeline-dot-bg:var(--primary-color, #344861);--udp-timeline-dot-outline-color:var(--primary-color, #344861)}.dot-color-secondary{--udp-timeline-dot-bg:var(--secondary-color, #4383c3);--udp-timeline-dot-outline-color:var(--secondary-color, #4383c3)}.dot-color-default{--udp-timeline-dot-bg:var(--udp-timeline-dot-filled-bg-default);--udp-timeline-dot-outline-color:var(--udp-timeline-dot-filled-bg-default)}.dot-color-error{--udp-timeline-dot-bg:var(--error-color-main, #d32f2f);--udp-timeline-dot-outline-color:var(--error-color-main, #d32f2f)}.dot-color-info{--udp-timeline-dot-bg:var(--info-color-main, #0288d1);--udp-timeline-dot-outline-color:var(--info-color-main, #0288d1)}.dot-color-success{--udp-timeline-dot-bg:var(--success-color-main, #2e7d32);--udp-timeline-dot-outline-color:var(--success-color-main, #2e7d32)}.dot-color-warning{--udp-timeline-dot-bg:var(--warning-color-main, #ed6c02);--udp-timeline-dot-outline-color:var(--warning-color-main, #ed6c02)}";export{o as udp_timeline_dot}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i,H as n,a as l}from"./index-Cgpvu-iV.js";const a=class{constructor(i){t(this,i),this.itemClick=e(this,"itemClick",7),this.dotShape="default",this.clickable=!1,this.actions=[],this.statusLabel="",this.statusColor="gray",this.hasTitle=!1,this.hasCaption=!1,this.handleClick=()=>{this.clickable&&this.itemClick.emit()}}componentDidLoad(){var t,e,i,n;const l=null!==(e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="title"]'))&&void 0!==e?e:null;if(null!=l){const t=()=>{const t=l.assignedNodes({flatten:!0});this.hasTitle=t.length>0};t(),l.addEventListener("slotchange",t)}const a=null!==(n=null===(i=this.host.shadowRoot)||void 0===i?void 0:i.querySelector('slot[name="caption"]'))&&void 0!==n?n:null;if(null!=a){const t=()=>{const t=a.assignedNodes({flatten:!0});this.hasCaption=t.length>0};t(),a.addEventListener("slotchange",t)}}render(){var t;const e=this.actions.slice(0,4),l=this.actions.slice(4);return i(n,{key:"
|
|
1
|
+
import{r as t,c as e,h as i,H as n,a as l}from"./index-Cgpvu-iV.js";const a=class{constructor(i){t(this,i),this.itemClick=e(this,"itemClick",7),this.dotShape="default",this.clickable=!1,this.actions=[],this.statusLabel="",this.statusColor="gray",this.hasTitle=!1,this.hasCaption=!1,this.handleClick=()=>{this.clickable&&this.itemClick.emit()}}componentDidLoad(){var t,e,i,n;const l=null!==(e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="title"]'))&&void 0!==e?e:null;if(null!=l){const t=()=>{const t=l.assignedNodes({flatten:!0});this.hasTitle=t.length>0};t(),l.addEventListener("slotchange",t)}const a=null!==(n=null===(i=this.host.shadowRoot)||void 0===i?void 0:i.querySelector('slot[name="caption"]'))&&void 0!==n?n:null;if(null!=a){const t=()=>{const t=a.assignedNodes({flatten:!0});this.hasCaption=t.length>0};t(),a.addEventListener("slotchange",t)}}render(){var t;const e=this.actions.slice(0,4),l=this.actions.slice(4);return i(n,{key:"f38eeb9176359f5980133a1cdf923261c5fd92b5",class:{"has-title":this.hasTitle,"has-caption":this.hasCaption,[`dot-shape-${this.dotShape}`]:!0,clickable:this.clickable},onClick:this.handleClick},i("div",{key:"d55ea4582bad05f305ad029a7f783ccd4b2bdbbf",class:"udp-timeline-item"},i("div",{key:"76ed8d242953effab5167d0b3713bc35f25bd938",class:"separator-column"},i("slot",{key:"e6fa4fd3e874e56b49de07dfa8df7e9dc4784ba4",name:"separator"})),i("div",{key:"7cc95965c334c0f4ed8caac1160df8ae35680761",class:"content-column"},i("div",{key:"828d4d5f70792d24ca3d7ac7c0ed880419d76a57",class:"first-row"},i("div",{key:"ff82d6e08ccba60e8d304de0d6c203924a8ac3ed",class:"title-slot"},i("slot",{key:"295bec923360837de4c15cdd80d4ad9ba880eb63",name:"title"})),""!=(null===(t=this.statusLabel)||void 0===t?void 0:t.trim())&&i("udp-chip",{key:"98becb62444dc2a78d42f20050e7b37cb7ea9f73",label:this.statusLabel,color:this.statusColor,size:"small"})),i("div",{key:"f912adda86a8e5593a73377d692cc3dd0925ec45",class:"content-slot"},i("slot",{key:"cdef4e4a7e7e8727d3b18fab5398c7a9bde1874d",name:"content"})),i("div",{key:"7de7bd160542df24add6183e26a8f5aa35e2af71",class:"caption-slot"},i("slot",{key:"ccdc54b3b6fcd42bf60a5760bd0a9777422d2721",name:"caption"})),this.actions.length>0&&i("div",{key:"2325e9ce67c02368fc399493e64995d9892ef909",class:"actions-container"},e.map((t=>i("button",{onClick:t.onClick},t.label))),l.length>0&&i("button",{key:"b83aa3705ab5d137a5cd43203029135321059962"},"...")))))}get host(){return l(this)}};a.style=":host{--udp-timeline-item-hover-bg:rgba(0, 0, 0, 0.04);--udp-timeline-content-margin-icon:12px;--udp-timeline-content-padding-default:12px;--udp-timeline-time-min-width:64px;--udp-timeline-combined-gap:12px;--udp-timeline-dot-wrap-width:40px;--udp-timeline-title-font-size:16px;--udp-timeline-title-font-weight:600;--udp-timeline-title-color:#222;--udp-timeline-title-margin-right:12px;--udp-timeline-caption-font-size:14px;--udp-timeline-caption-color:#666;--udp-timeline-caption-margin-top:8px}:host(.dot-shape-icon) .content-column{margin-top:var(--udp-timeline-content-margin-icon, 12px)}.udp-timeline-item{display:grid;grid-template-columns:var(--udp-timeline-left-column, 60px) 1fr;align-items:flex-start;gap:var(--udp-timeline-item-gap, 8px);padding:var(--udp-timeline-item-padding-vertical, 12px) 0;position:relative}.separator-column{display:flex;align-items:center;justify-content:center;width:var(--udp-timeline-left-column, 60px);height:100%}.separator-column ::slotted(*){width:100%;display:flex;align-items:center;justify-content:center}.content-column{display:block}.title-slot ::slotted(*){display:block;min-width:var(--udp-timeline-time-min-width, 64px);color:var(--udp-timeline-title-color, #222);font-size:var(--udp-timeline-title-font-size, 16px);font-weight:var(--udp-timeline-title-font-weight, 600);text-align:left}.content-slot ::slotted(*){display:block}.caption-slot ::slotted(*){display:block;margin-top:var(--udp-timeline-caption-margin-top, 8px);font-size:var(--udp-timeline-caption-font-size, 14px);color:var(--udp-timeline-caption-color, #666)}.udp-timeline-item ::slotted([slot='separator']){display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.udp-timeline-item .dot-wrap{width:var(--udp-timeline-dot-wrap-width, 40px);display:flex;align-items:center;justify-content:center}:host(:not(.has-title)) .title-slot{display:none}:host(:not(.has-caption)) .caption-slot{display:none}:host(.clickable).content-column{cursor:pointer;display:block}:host(.clickable) .content-column:hover{background-color:var(--udp-timeline-item-hover-bg)}.actions-container{display:flex;gap:8px;margin-top:8px}.first-row{display:flex;gap:8px;align-items:center}";export{a as udp_timeline_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./index-Cgpvu-iV.js";const i=class{constructor(t){e(this,t)}render(){return t("div",{key:"
|
|
1
|
+
import{r as e,h as t}from"./index-Cgpvu-iV.js";const i=class{constructor(t){e(this,t)}render(){return t("div",{key:"a5ec398477306459a2dd8e9a7903da7983fe15cb",class:"udp-timeline-separator"},t("slot",{key:"3b696599cf5db98ddaa1bbaa3606a5f4af82a915"}))}};i.style=":host{--udp-timeline-connector-color:var(--udp-timeline-line-color, #e0e0e0);--udp-timeline-separator-min-height:48px}.udp-timeline-separator{display:flex;flex-direction:column;align-items:stretch;justify-content:center;width:100%;min-height:var(--udp-timeline-separator-min-height);position:relative;flex:1 1 auto}.dot-wrap{display:flex;align-items:center;justify-content:center;margin:6px 0}.udp-timeline-separator ::slotted(udp-timeline-connector){order:2;display:block;width:var(--udp-timeline-line-width, 2px);background:var(--udp-timeline-connector-color);margin:8px 0;flex:1 1 auto;margin:8px 0;align-self:center;}.udp-timeline-separator ::slotted(udp-timeline-dot){z-index:3;display:block;order:1}";export{i as udp_timeline_separator}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as t}from"./index-Cgpvu-iV.js";const l=class{constructor(i){e(this,i),this.align="left"}render(){return i(t,{key:"
|
|
1
|
+
import{r as e,h as i,H as t}from"./index-Cgpvu-iV.js";const l=class{constructor(i){e(this,i),this.align="left"}render(){return i(t,{key:"0b4398e93df39822b64f330622a1d9a7c67c45ab",class:{[`align-${this.align}`]:!0}},i("div",{key:"1b435ab808a109d0c9560ff1c2471586bd96682a",class:"udp-timeline-root"},i("slot",{key:"f4e17f94bb3e4ca097ca180a3618fda8a07b7dfd"})))}};l.style=":host{--udp-timeline-left-column:60px;--udp-timeline-item-gap:8px;--udp-timeline-item-padding-vertical:12px;--udp-timeline-dot-nudge:0px;--udp-timeline-dot-top:14px;--udp-timeline-line-color:#e0e0e0;--udp-timeline-line-width:2px;--udp-timeline-time-color:#222}.udp-timeline-root{display:flex;flex-direction:column;position:relative}.align-left .udp-timeline-root{align-items:flex-start}.align-right .udp-timeline-root{align-items:flex-end}.align-alternate .udp-timeline-root{align-items:stretch}";export{l as udp_timeline}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import*as h from"@amcharts/amcharts4/charts";import*as e from"@amcharts/amcharts4/core";import{s as r,b as a,c as d,d as
|
|
1
|
+
import{r as t,h as i,a as s}from"./index-Cgpvu-iV.js";import*as h from"@amcharts/amcharts4/charts";import*as e from"@amcharts/amcharts4/core";import{s as r,b as a,c as d,d as c,e as o,f as n,k as l}from"./chartUtils-DFIyEsL1.js";const v=class{constructor(i){t(this,i),this.data=void 0,this.valueField="",this.labelField="",this.title=void 0,this.subheader=void 0,this.hideLegend=!1,this.customCardStyle={},this.kpisPosition="left",this.kpis=void 0,this.xAxisLabel=void 0,this.yAxisLabel=void 0,this.hideAdornment=!1,this.ignoreZeroValues=!1,this.hideBorder=!1,this.getColor=void 0,this.showBullets=!1,this.barWidth=void 0,this.xDataType=void 0,this.yDataType=void 0,this.distBetweenGridLines=0,this.chartType=void 0,this.removePadding=!1,this.chartId="udp-xy-chart"}async renderChart(){const t=async()=>{var i,s,v;const u=null===(s=null===(i=this.el)||void 0===i?void 0:i.shadowRoot)||void 0===s?void 0:s.getElementById(this.chartId);if(!u)return await new Promise((t=>setTimeout(t,50))),t();if(!(this.valueField&&this.labelField&&this.xDataType&&this.yDataType))return;let m,p;switch(this.chart&&this.chart.dispose(),this.chart=e.create(u,h.XYChart),r(this.chart,u,this.enableExport),a(this.chart),this.xDataType){case void 0:case null:case"string":m=o(this.chart,"X",this.labelField,[this.xAxisLabel],"X",this.distBetweenGridLines);break;case"date":m=c(this.chart,"X",[this.xAxisLabel],"X",this.distBetweenGridLines);break;default:m=d(this.chart,"X",[this.xAxisLabel],"X")}switch(this.yDataType){case void 0:case null:case"number":p=d(this.chart,"Y",[this.yAxisLabel],"Y");break;case"date":p=c(this.chart,"Y",[this.yAxisLabel],"Y",this.distBetweenGridLines);break;default:p=o(this.chart,"Y",this.valueField,[this.yAxisLabel],"Y",this.distBetweenGridLines)}n(this.chart,"Series 1",this.chartType,m,this.labelField,p,this.valueField),this.hideLegend||l(this.chart),this.chart.data=null!==(v=this.data)&&void 0!==v?v:[]};await t()}disconnectedCallback(){this.chart&&this.chart.dispose()}componentDidLoad(){this.renderChart()}render(){return i("chart-container",{key:"306cdac42d634caccc2edc72f202c2e8375cbd5b",kpis:this.kpis,chartId:this.chartId,title:this.title,subheader:this.subheader,chartHeight:this.customHeight,chartWidth:this.customWidth,cardWidth:this.customCardWidth,kpisPosition:this.kpisPosition,hideAdornment:this.hideAdornment,hideBorder:this.hideBorder,removePadding:this.removePadding})}get el(){return s(this)}static get watchers(){return{valueField:[{renderChart:0}],labelField:[{renderChart:0}],data:[{renderChart:0}],xAxisLabel:[{renderChart:0}],yAxisLabel:[{renderChart:0}],showBullets:[{renderChart:0}],xDataType:[{renderChart:0}],yDataType:[{renderChart:0}],hideLegend:[{renderChart:0}],distBetweenGridLines:[{renderChart:0}],chartType:[{renderChart:0}],chartId:[{renderChart:0}]}}};v.style=":host{display:block}";export{v as udp_xy_chart}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as i}from"./index-Cgpvu-iV.js";import{s as h,b as e,c as r,d as a,e as d,f as o,g as c}from"./chartUtils-DFIyEsL1.js";import*as n from"@amcharts/amcharts4/charts";import*as l from"@amcharts/amcharts4/core";import{v4 as m}from"uuid";const u=class{constructor(s){t(this,s),this.data=void 0,this.title=void 0,this.subheader=void 0,this.hideLegend=!1,this.customCardStyle={},this.kpisPosition="left",this.kpis=void 0,this.hideAdornment=!1,this.ignoreZeroValues=!1,this.hideBorder=!1,this.removePadding=!1,this.getColor=void 0,this.showBullets=!1,this.barWidth=void 0,this.xDataType=void 0,this.yDataType=void 0,this.distBetweenGridLines=0,this.chartType=void 0,this.xAxes=[],this.yAxes=[],this.series=[],this.chartId=m()}async renderChart(){const t=async()=>{var s,i,m;const u=null===(i=null===(s=this.el)||void 0===s?void 0:s.shadowRoot)||void 0===i?void 0:i.getElementById(this.chartId);if(!u)return await new Promise((t=>setTimeout(t,50))),t();if(0!==this.xAxes.length&&0!==this.yAxes.length&&0!==this.series.length){this.chart&&this.chart.dispose(),this.chart=l.create(u,n.XYChart),h(this.chart,u),e(this.chart);for(let t=0;t<this.xAxes.length;t++)switch(this.xAxes[t].dataType){case void 0:case null:case"string":const s=this.series.find((s=>s.xAxisId===this.xAxes[t].id));d(this.chart,this.xAxes[t].id,s?s.xAxisPropertyName:"",this.xAxes[t].titles,this.xAxes[t].position,this.distBetweenGridLines);break;case"date":a(this.chart,this.xAxes[t].id,this.xAxes[t].titles,this.xAxes[t].position,this.distBetweenGridLines);break;default:r(this.chart,this.xAxes[t].id,this.xAxes[t].titles,this.xAxes[t].position)}for(let t=0;t<this.yAxes.length;t++)switch(this.yAxes[t].dataType){case void 0:case null:case"number":r(this.chart,this.yAxes[t].id,this.yAxes[t].titles,this.yAxes[t].position);break;case"date":a(this.chart,this.yAxes[t].id,this.yAxes[t].titles,this.yAxes[t].position,this.distBetweenGridLines);break;default:const s=this.series.find((s=>s.yAxisId===this.yAxes[t].id));d(this.chart,this.yAxes[t].id,s?s.yAxisPropertyName:"",this.yAxes[t].titles,this.yAxes[t].position,this.distBetweenGridLines)}for(let t=0;t<this.series.length;t++){const s=this.chart.xAxes.values.find((s=>s.id===this.series[t].xAxisId)),i=this.chart.yAxes.values.find((s=>s.id===this.series[t].yAxisId));if(s&&i){const h=o(this.chart,this.series[t].name,this.series[t].type,s,this.series[t].xAxisPropertyName,i,this.series[t].yAxisPropertyName);c(this.chart,h,this.series[t].type)}}this.chart.data=null!==(m=this.data)&&void 0!==m?m:[]}};await t()}disconnectedCallback(){this.chart&&this.chart.dispose()}componentDidLoad(){this.renderChart()}render(){return s("chart-container",{key:"
|
|
1
|
+
import{r as t,h as s,a as i}from"./index-Cgpvu-iV.js";import{s as h,b as e,c as r,d as a,e as d,f as o,g as c}from"./chartUtils-DFIyEsL1.js";import*as n from"@amcharts/amcharts4/charts";import*as l from"@amcharts/amcharts4/core";import{v4 as m}from"uuid";const u=class{constructor(s){t(this,s),this.data=void 0,this.title=void 0,this.subheader=void 0,this.hideLegend=!1,this.customCardStyle={},this.kpisPosition="left",this.kpis=void 0,this.hideAdornment=!1,this.ignoreZeroValues=!1,this.hideBorder=!1,this.removePadding=!1,this.getColor=void 0,this.showBullets=!1,this.barWidth=void 0,this.xDataType=void 0,this.yDataType=void 0,this.distBetweenGridLines=0,this.chartType=void 0,this.xAxes=[],this.yAxes=[],this.series=[],this.chartId=m()}async renderChart(){const t=async()=>{var s,i,m;const u=null===(i=null===(s=this.el)||void 0===s?void 0:s.shadowRoot)||void 0===i?void 0:i.getElementById(this.chartId);if(!u)return await new Promise((t=>setTimeout(t,50))),t();if(0!==this.xAxes.length&&0!==this.yAxes.length&&0!==this.series.length){this.chart&&this.chart.dispose(),this.chart=l.create(u,n.XYChart),h(this.chart,u),e(this.chart);for(let t=0;t<this.xAxes.length;t++)switch(this.xAxes[t].dataType){case void 0:case null:case"string":const s=this.series.find((s=>s.xAxisId===this.xAxes[t].id));d(this.chart,this.xAxes[t].id,s?s.xAxisPropertyName:"",this.xAxes[t].titles,this.xAxes[t].position,this.distBetweenGridLines);break;case"date":a(this.chart,this.xAxes[t].id,this.xAxes[t].titles,this.xAxes[t].position,this.distBetweenGridLines);break;default:r(this.chart,this.xAxes[t].id,this.xAxes[t].titles,this.xAxes[t].position)}for(let t=0;t<this.yAxes.length;t++)switch(this.yAxes[t].dataType){case void 0:case null:case"number":r(this.chart,this.yAxes[t].id,this.yAxes[t].titles,this.yAxes[t].position);break;case"date":a(this.chart,this.yAxes[t].id,this.yAxes[t].titles,this.yAxes[t].position,this.distBetweenGridLines);break;default:const s=this.series.find((s=>s.yAxisId===this.yAxes[t].id));d(this.chart,this.yAxes[t].id,s?s.yAxisPropertyName:"",this.yAxes[t].titles,this.yAxes[t].position,this.distBetweenGridLines)}for(let t=0;t<this.series.length;t++){const s=this.chart.xAxes.values.find((s=>s.id===this.series[t].xAxisId)),i=this.chart.yAxes.values.find((s=>s.id===this.series[t].yAxisId));if(s&&i){const h=o(this.chart,this.series[t].name,this.series[t].type,s,this.series[t].xAxisPropertyName,i,this.series[t].yAxisPropertyName);c(this.chart,h,this.series[t].type)}}this.chart.data=null!==(m=this.data)&&void 0!==m?m:[]}};await t()}disconnectedCallback(){this.chart&&this.chart.dispose()}componentDidLoad(){this.renderChart()}render(){return s("chart-container",{key:"988cf391f344a4c24fe930e11e6bf0b568701270",kpis:this.kpis,chartId:this.chartId,title:this.title,subheader:this.subheader,chartWidth:this.customWidth,chartHeight:this.customHeight,cardWidth:this.customCardWidth,kpisPosition:this.kpisPosition,hideAdornment:this.hideAdornment,hideBorder:this.hideBorder,removePadding:this.removePadding})}get el(){return i(this)}static get watchers(){return{data:[{renderChart:0}],showBullets:[{renderChart:0}],xAxes:[{renderChart:0}],yAxes:[{renderChart:0}],series:[{renderChart:0}],hideLegend:[{renderChart:0}],distBetweenGridLines:[{renderChart:0}],chartId:[{renderChart:0}]}}};u.style=":host{display:block}";export{u as udp_xy_multi_series_chart}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Calendar } from '@fullcalendar/core';
|
|
1
|
+
import { Calendar, CalendarOptions, DateInput } from '@fullcalendar/core';
|
|
2
2
|
import './udp-calendar-base.css';
|
|
3
3
|
export declare class UdpCalendarBase {
|
|
4
4
|
calendar: Calendar;
|
|
5
5
|
el: HTMLElement;
|
|
6
6
|
initialView: string;
|
|
7
|
+
initialDate: DateInput;
|
|
7
8
|
height: number;
|
|
8
9
|
contentHeight: number;
|
|
9
10
|
aspectRatio: number;
|
|
@@ -46,8 +47,10 @@ export declare class UdpCalendarBase {
|
|
|
46
47
|
eventContent: any;
|
|
47
48
|
eventSources: any;
|
|
48
49
|
eventOnclick: any;
|
|
49
|
-
|
|
50
|
+
options: Partial<CalendarOptions>;
|
|
50
51
|
componentDidLoad(): void;
|
|
52
|
+
private static readonly RENDER_HOOKS;
|
|
53
|
+
private buildCalendarOptions;
|
|
51
54
|
eventsChanged(newValue: any): void;
|
|
52
55
|
disconnectedCallback(): void;
|
|
53
56
|
render(): any;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This component is deprecated and will be removed in a future version.
|
|
3
|
+
* It backs the legacy amcharts wrappers and relies on cross-shadow DOM queries
|
|
4
|
+
* that no longer work. Use the `udp-ag-*` chart components (e.g.
|
|
5
|
+
* `udp-ag-line-chart`, `udp-ag-bar-chart`, `udp-ag-donut-chart`) instead — they
|
|
6
|
+
* size themselves and need no container.
|
|
7
|
+
*/
|
|
1
8
|
export declare class ChartContainer {
|
|
2
9
|
el: HTMLElement;
|
|
3
10
|
title: string;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated This component is deprecated and will be removed in a future version.
|
|
3
|
+
* It is used only by the deprecated `chart-container`. Use the `udp-ag-*` chart
|
|
4
|
+
* components instead.
|
|
5
|
+
*/
|
|
1
6
|
export declare class ChartKpi {
|
|
2
7
|
label: string;
|
|
3
8
|
value: string;
|