udp-stencil-component-library 26.9.0-beta.2 → 26.9.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/{SearchBuilder-CyR7DyPc.js → SearchBuilder-Ca9_ur9o.js} +1 -1
- package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +8 -8
- package/dist/cjs/address-search_6.cjs.entry.js +19 -19
- package/dist/cjs/advanced-search_12.cjs.entry.js +20 -20
- package/dist/cjs/{ag-grid-base_65.cjs.entry.js → ag-grid-base_66.cjs.entry.js} +458 -183
- package/dist/cjs/ambient-template-grid.cjs.entry.js +20 -20
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +11 -10
- package/dist/cjs/{apiMethodInstance-D65NIw8S.js → apiMethodInstance-DTeNcmNq.js} +3 -32
- package/dist/cjs/{apiUtils-0pkNuvqf.js → apiUtils-tzjwn5aw.js} +29 -28
- package/dist/cjs/app-bar.cjs.entry.js +1 -1
- package/dist/cjs/{catalog-store-B_YMkXRh.js → catalog-store-CzG8hINB.js} +1 -1
- package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
- package/dist/cjs/check-box.cjs.entry.js +2 -2
- package/dist/cjs/chip-section.cjs.entry.js +2 -2
- package/dist/cjs/{codecs-ClSB_OaD.js → codecs-Dyka7kpz.js} +407 -7
- package/dist/cjs/{configService-N6ke1_s4.js → configService-DbfLqId2.js} +2 -6
- package/dist/cjs/{configureUdpColumnMods-BT7UbQPh.js → configureUdpColumnMods-Cqxn_OaF.js} +23 -7
- package/dist/cjs/convertBackendTypeToAgGridType-CZEQIj7A.js +33 -0
- package/dist/cjs/{createAzureMapsProviders-b1fKbjhG.js → createAzureMapsProviders-CURScysk.js} +14 -0
- package/dist/cjs/custom-button.cjs.entry.js +1 -1
- package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
- package/dist/cjs/domain-table-snapshot-DXs9ceFE.js +339 -0
- package/dist/cjs/extraFields-CNvT2Qyf.js +109 -0
- package/dist/cjs/extraFieldsHelper-Clk9u_FW.js +211 -0
- package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
- package/dist/cjs/file-upload_2.cjs.entry.js +7 -7
- package/dist/cjs/filter-conditions_7.cjs.entry.js +7 -7
- package/dist/cjs/{fluent-icons-DLY_DCOh.js → fluent-icons-Cs6J6uVm.js} +20 -0
- package/dist/cjs/form-metadata-display_2.cjs.entry.js +3 -3
- package/dist/cjs/getCurrentApiCatalogId-D7xHCEzs.js +7 -0
- package/dist/cjs/icon-grid.cjs.entry.js +2 -2
- package/dist/cjs/image-upload_8.cjs.entry.js +7 -7
- package/dist/cjs/index-CZB9dMeB.js +12 -8
- package/dist/cjs/index.cjs.js +26 -23
- package/dist/cjs/{load-icons-BAAH3v1o.js → load-icons-JeRXx4O7.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logical-search-indicator.cjs.entry.js +1 -1
- package/dist/cjs/lookupHelper-DACjrAcP.js +694 -0
- 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/rich-text-schema-Dhani4hA.js +58 -0
- package/dist/cjs/search-method-grid.cjs.entry.js +121 -264
- package/dist/cjs/server-side-grid.cjs.entry.js +85 -3
- package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
- package/dist/cjs/simple-card.cjs.entry.js +1 -1
- package/dist/cjs/status-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/{status-renderer-9CQ-hhq8.js → status-renderer-be4boc5r.js} +83 -55
- 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/udp-adornment.cjs.entry.js +1 -1
- package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +102 -5
- package/dist/cjs/udp-advanced-search-field-picker_3.cjs.entry.js +3 -3
- package/dist/cjs/udp-ag-area-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-bar-chart_4.cjs.entry.js +5 -5
- package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
- package/dist/cjs/udp-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/udp-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-base.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -1
- 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 +1 -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-detail-list_9.cjs.entry.js → udp-detail-list_10.cjs.entry.js} +606 -73
- package/dist/cjs/{udp-drive-utils-DM1l6XMm.js → udp-drive-utils-BuTLI35n.js} +1 -1
- 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-icon-picker.cjs.entry.js +2 -2
- package/dist/cjs/udp-fluent-inline-edit_5.cjs.entry.js +494 -45
- package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-list-item_2.cjs.entry.js +3 -3
- package/dist/cjs/{udp-form-api-utils-zMPk_IT1.js → udp-form-api-utils-ZY88igvH.js} +1 -1
- package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-builder.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 +3 -3
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +4 -4
- package/dist/cjs/udp-import-sheet.cjs.entry.js +244 -0
- 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-question-form-builder.cjs.entry.js +35 -258
- package/dist/cjs/udp-rich-text-field.cjs.entry.js +28 -53
- package/dist/cjs/udp-rich-text.cjs.entry.js +61 -0
- package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-sidebar-layout.cjs.entry.js +3 -3
- 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-actions.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-content.cjs.entry.js +2 -2
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-nav.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-vertical-timeline-connector.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline-dot.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/udp-vertical-timeline-separator.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-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/cjs/valueFormatters-CUoOypK3.js +17 -0
- package/dist/collection/__mocks__/jest-setup.js +3 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/advanced-search/advanced-search-grouped.js +2 -2
- package/dist/collection/components/advanced-search/advanced-search.js +2 -2
- package/dist/collection/components/advanced-search/filter-conditions/filter-conditions.js +1 -1
- package/dist/collection/components/advanced-search/ui/logical-search-indicator/logical-search-indicator.js +1 -1
- package/dist/collection/components/advanced-search-builder/field-picker/field-picker.js +1 -1
- package/dist/collection/components/advanced-search-builder/field-picker-tree/field-picker-tree.js +2 -2
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +125 -2
- package/dist/collection/components/attachment-list/udp-attachment-list.js +1 -1
- package/dist/collection/components/buttons/icon-button/function-button/udp-function-button.js +1 -1
- package/dist/collection/components/buttons/icon-button/primary-button/custom-button.js +1 -1
- package/dist/collection/components/buttons/icon-button/radio-button/udp-radio-button.js +1 -1
- package/dist/collection/components/buttons/udp-button/udp-button.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-base.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-day.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-month.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-week.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-year.js +1 -1
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js +1 -1
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +2 -2
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +1 -1
- package/dist/collection/components/charts/udp-charts-example.js +1 -1
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +1 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +1 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +1 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +1 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +1 -1
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +1 -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/detail-list-item/udp-detail-list-item.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/export/udp-export-sheet/udp-export-sheet.css +0 -1
- package/dist/collection/components/export/udp-export-sheet/udp-export-sheet.js +10 -5
- 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 +8 -8
- 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.css +10 -0
- package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +26 -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-time-input/udp-date-time-input.js +1 -1
- 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/domain-table-input/domain-table-snapshot.js +78 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.css +67 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.js +871 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.js +1 -0
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.css +4 -0
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +26 -1
- package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +28 -10
- package/dist/collection/components/fluent-ui/empty-state/udp-empty-state.js +1 -1
- 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/udp-fluent-icon.js +1 -1
- package/dist/collection/components/fluent-ui/icon-picker/udp-fluent-icon-picker.js +2 -2
- 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 +2 -2
- package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
- package/dist/collection/components/fluent-ui/list/udp-list.js +1 -1
- package/dist/collection/components/fluent-ui/list-input/udp-fluent-list-input.js +1 -1
- package/dist/collection/components/fluent-ui/list-item/udp-list-item.js +2 -2
- package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
- package/dist/collection/components/fluent-ui/menu/udp-fluent-menu.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/fluent-ui/popover/udp-popover.js +4 -4
- 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 +21 -8
- package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.css +9 -0
- package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.js +81 -0
- package/dist/collection/components/fluent-ui/rich-text-field/rich-text-content.css +97 -0
- package/dist/collection/components/fluent-ui/rich-text-field/rich-text-schema.js +39 -0
- package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.css +1 -92
- package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.js +12 -39
- package/dist/collection/components/fluent-ui/search-input/udp-search-input.css +6 -0
- 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/swatch-picker/udp-swatch-picker.js +1 -1
- package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
- package/dist/collection/components/fluent-ui/table-input/table-aggregates.js +57 -0
- package/dist/collection/components/fluent-ui/table-input/udp-fluent-table-input.js +12 -56
- package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.js +13 -2
- package/dist/collection/components/fluent-ui/text/udp-text.js +1 -1
- 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 +7 -2
- 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.js +1 -1
- 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/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.js +200 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/configure-question-drawer.js +7 -1
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.js +309 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/TableConfig.js +32 -1
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.css +50 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.js +33 -3
- package/dist/collection/components/forms/udp-question-form/builder/udp-question-form-builder.js +7 -1
- package/dist/collection/components/forms/udp-question-form/builder/utils/builder-api.js +85 -0
- package/dist/collection/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.js +9 -1
- package/dist/collection/components/forms/udp-question-form/core/field-properties.js +6 -1
- package/dist/collection/components/forms/udp-question-form/core/validation/intrinsic.js +52 -3
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/codecs.js +10 -4
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.js +50 -0
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/index.js +1 -0
- package/dist/collection/components/forms/udp-question-form/renderer/udp-question-form-renderer.js +62 -16
- package/dist/collection/components/forms/udp-question-form/renderer/ui/adapters/udp-question-tally-adapter.js +1 -1
- package/dist/collection/components/forms/udp-question-form/renderer/ui/form-shell.js +2 -1
- package/dist/collection/components/forms/udp-question-form/renderer/ui/question-renderer.js +7 -3
- package/dist/collection/components/forms/udp-question-form/renderer/ui/question-view-renderer.js +17 -11
- package/dist/collection/components/forms/udp-question-form/version-drawer/udp-form-version-drawer.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.css +7 -0
- package/dist/collection/components/grid/new-grid/ag-grid-base.js +13 -4
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +27 -3
- package/dist/collection/components/grid/new-grid/client-side-grid.js +2 -2
- package/dist/collection/components/grid/new-grid/datasources/searchMethodDatasource.js +20 -6
- package/dist/collection/components/grid/new-grid/gridFunctions/advancedSearch.js +3 -2
- package/dist/collection/components/grid/new-grid/gridFunctions/savedViews.js +7 -5
- package/dist/collection/components/grid/new-grid/gridFunctions/udpExport.js +12 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/buildSearchObject.js +17 -16
- package/dist/collection/components/grid/new-grid/helperFunctions/configureUdpColumnMods.js +23 -7
- package/dist/collection/components/grid/new-grid/helperFunctions/domainRowsHelper.js +177 -0
- package/dist/collection/components/grid/new-grid/helperFunctions/extraFieldsHelper.js +203 -0
- package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +256 -16
- package/dist/collection/components/grid/new-grid/search-method-grid.js +124 -11
- package/dist/collection/components/grid/new-grid/server-side-grid.js +107 -4
- package/dist/collection/components/grid/renderers/actions-renderer.js +83 -55
- package/dist/collection/components/grid/renderers/input-renderer.js +66 -0
- 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/import/udp-import-sheet/udp-import-sheet.css +38 -0
- package/dist/collection/components/import/udp-import-sheet/udp-import-sheet.js +425 -0
- 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/primary-action-header/udp-primary-action-header.js +1 -1
- 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.js +3 -3
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
- package/dist/collection/components/layout/udp-vertical-spacer.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 +2 -2
- 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-actions/udp-stepper-actions.js +1 -1
- package/dist/collection/components/stepper/udp-stepper-content/udp-stepper-content.js +2 -2
- package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
- package/dist/collection/components/stepper/udp-stepper-nav/udp-stepper-nav.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 -2
- 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/components/vertical-timeline/udp-vertical-timeline-connector.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-dot.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-item.js +2 -2
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-separator.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline.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/icons/fluent-icons.js +16 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/store/execution-store.js +6 -5
- package/dist/collection/test-pages/test-components-page.js +28 -28
- package/dist/collection/test-pages/test-form.js +4 -4
- package/dist/collection/udp-utilities/api-config/configService.js +0 -4
- package/dist/collection/udp-utilities/extra-fields/extraFields.js +94 -0
- package/dist/collection/udp-utilities/extra-fields/index.js +1 -0
- 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/advanced-search-grouped2.js +1 -1
- package/dist/components/advanced-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/apiMethodInstance.js +1 -1
- package/dist/components/apiUtils.js +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/chart-kpi2.js +1 -1
- 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/configService.js +1 -1
- package/dist/components/configureUdpColumnMods.js +1 -1
- package/dist/components/convertBackendTypeToAgGridType.js +1 -0
- package/dist/components/custom-button2.js +1 -1
- package/dist/components/edit-view-form.js +1 -1
- package/dist/components/extraFields.js +1 -0
- package/dist/components/feature-details-card2.js +1 -1
- package/dist/components/feature-details-popup2.js +1 -1
- package/dist/components/field-picker-tree.js +1 -1
- package/dist/components/field-picker.js +1 -1
- package/dist/components/file-upload-renderer2.js +1 -1
- package/dist/components/file-upload2.js +1 -1
- package/dist/components/filter-conditions2.js +1 -1
- package/dist/components/fluent-icons.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/getCachedAzureMapsProviders.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-grid2.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/logical-search-indicator.js +1 -1
- package/dist/components/lookup.js +1 -0
- 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/rich-text-schema.js +1 -0
- 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/status-renderer.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-aggregates.js +1 -0
- 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/types.js +1 -1
- 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.js +1 -1
- package/dist/components/udp-ag-bar-chart2.js +1 -1
- package/dist/components/udp-ag-bubble-chart.js +1 -1
- package/dist/components/udp-ag-combo-chart.js +1 -1
- package/dist/components/udp-ag-donut-chart.js +1 -1
- package/dist/components/udp-ag-line-chart.js +1 -1
- package/dist/components/udp-ag-pie-chart.js +1 -1
- package/dist/components/udp-ag-scatter-chart.js +1 -1
- package/dist/components/udp-ambient-card2.js +1 -1
- package/dist/components/udp-ambient-tool-tip2.js +1 -1
- package/dist/components/udp-attachment-list.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-button2.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-grid2.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-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-detail-list-item2.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-empty-state2.js +1 -1
- package/dist/components/udp-export-sheet2.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-domain-table-input.d.ts +11 -0
- package/dist/components/udp-fluent-domain-table-input.js +2 -0
- package/dist/components/udp-fluent-domain-table-input2.js +1 -0
- package/dist/components/udp-fluent-drawer2.js +1 -1
- package/dist/components/udp-fluent-dropdown2.js +1 -1
- package/dist/components/udp-fluent-file-input2.js +1 -1
- package/dist/components/udp-fluent-icon-picker.js +1 -1
- package/dist/components/udp-fluent-icon2.js +1 -1
- package/dist/components/udp-fluent-image2.js +1 -1
- package/dist/components/udp-fluent-inline-edit2.js +1 -1
- package/dist/components/udp-fluent-link.js +1 -1
- package/dist/components/udp-fluent-list-input2.js +1 -1
- package/dist/components/udp-fluent-location-input2.js +1 -1
- package/dist/components/udp-fluent-menu2.js +1 -1
- package/dist/components/udp-fluent-number-input.js +1 -1
- package/dist/components/udp-fluent-number-input2.js +1 -0
- package/dist/components/udp-fluent-radio-group2.js +1 -1
- package/dist/components/udp-fluent-signature-input2.js +1 -1
- package/dist/components/udp-fluent-switch2.js +1 -1
- package/dist/components/udp-fluent-table-input2.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-form-version-drawer2.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-forms-ui2.js +1 -1
- package/dist/components/udp-function-button2.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-import-sheet.d.ts +11 -0
- package/dist/components/udp-import-sheet.js +2 -0
- 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-list-item2.js +1 -1
- package/dist/components/udp-list2.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-popover2.js +1 -1
- package/dist/components/udp-primary-action-header2.js +1 -1
- package/dist/components/udp-progress-bar2.js +1 -1
- package/dist/components/udp-question-config-fluent2.js +1 -1
- package/dist/components/udp-question-form-builder.js +1 -1
- package/dist/components/udp-question-form-renderer2.js +1 -1
- package/dist/components/udp-question-tally-adapter2.js +1 -1
- package/dist/components/udp-question2.js +1 -1
- package/dist/components/udp-radio-button2.js +1 -1
- package/dist/components/udp-rich-text-field.js +1 -1
- package/dist/components/udp-rich-text.d.ts +11 -0
- package/dist/components/udp-rich-text.js +2 -0
- 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-layout2.js +1 -1
- 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-actions.js +1 -1
- package/dist/components/udp-stepper-content.js +1 -1
- package/dist/components/udp-stepper-demo.js +1 -1
- package/dist/components/udp-stepper-nav.js +1 -1
- package/dist/components/udp-swatch-picker2.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-text2.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-vertical-spacer2.js +1 -1
- package/dist/components/udp-vertical-timeline-connector.js +1 -1
- package/dist/components/udp-vertical-timeline-dot.js +1 -1
- package/dist/components/udp-vertical-timeline-item.js +1 -1
- package/dist/components/udp-vertical-timeline-separator.js +1 -1
- package/dist/components/udp-vertical-timeline.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 +1805 -112
- package/dist/esm/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.js} +1 -1
- package/dist/esm/add-map-feature-popup_4.entry.js +8 -8
- package/dist/esm/address-search_6.entry.js +19 -19
- package/dist/esm/advanced-search_12.entry.js +20 -20
- package/dist/esm/{ag-grid-base_65.entry.js → ag-grid-base_66.entry.js} +450 -176
- package/dist/esm/ambient-template-grid.entry.js +20 -20
- package/dist/esm/api-method-instance-grid.entry.js +10 -9
- package/dist/esm/{apiMethodInstance-BunReWfq.js → apiMethodInstance-qaGbXDNr.js} +2 -31
- package/dist/esm/{apiUtils-Cq-WuEqc.js → apiUtils-CXqsYwOQ.js} +29 -28
- package/dist/esm/app-bar.entry.js +1 -1
- package/dist/esm/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
- package/dist/esm/chart-container_3.entry.js +2 -2
- package/dist/esm/check-box.entry.js +2 -2
- package/dist/esm/chip-section.entry.js +2 -2
- package/dist/esm/{codecs-CI_fHfY1.js → codecs-BWyrM561.js} +400 -9
- package/dist/esm/{configService-D_9j963S.js → configService-CehZzjhw.js} +0 -4
- package/dist/esm/{configureUdpColumnMods-UWccWlH6.js → configureUdpColumnMods-bMO0_--H.js} +23 -7
- package/dist/esm/convertBackendTypeToAgGridType-B8xfl_wR.js +31 -0
- package/dist/esm/{createAzureMapsProviders-CLLCmr8f.js → createAzureMapsProviders-CtQryp1H.js} +13 -1
- package/dist/esm/custom-button.entry.js +1 -1
- package/dist/esm/date-time-renderer_9.entry.js +21 -21
- package/dist/esm/domain-table-snapshot-H3o5mjFB.js +331 -0
- package/dist/esm/extraFields-Cnpy_Bm7.js +97 -0
- package/dist/esm/extraFieldsHelper-CaBMA4HJ.js +205 -0
- package/dist/esm/feature-details-card_2.entry.js +5 -5
- package/dist/esm/file-upload_2.entry.js +7 -7
- package/dist/esm/filter-conditions_7.entry.js +7 -7
- package/dist/esm/{fluent-icons-pWFJyrRm.js → fluent-icons-wRyOZqj2.js} +20 -0
- package/dist/esm/form-metadata-display_2.entry.js +3 -3
- package/dist/esm/getCurrentApiCatalogId-DeurXd9l.js +5 -0
- package/dist/esm/icon-grid.entry.js +2 -2
- package/dist/esm/image-upload_8.entry.js +7 -7
- package/dist/esm/index-15aY63VA.js +12 -8
- package/dist/esm/index.js +13 -22
- package/dist/esm/{load-icons-BHSNRRRA.js → load-icons-D2ZhiHp6.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logical-search-indicator.entry.js +1 -1
- package/dist/esm/lookupHelper-D3LSjaES.js +682 -0
- 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/rich-text-schema-DCUYo610.js +42 -0
- package/dist/esm/search-method-grid.entry.js +120 -263
- package/dist/esm/server-side-grid.entry.js +85 -3
- package/dist/esm/side-sheet-container.entry.js +1 -1
- package/dist/esm/simple-card.entry.js +1 -1
- package/dist/esm/status-chip_2.entry.js +2 -2
- package/dist/esm/{status-renderer-BoY7sar9.js → status-renderer-Evo0rTNU.js} +83 -55
- 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/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
- package/dist/esm/udp-adornment.entry.js +1 -1
- package/dist/esm/udp-advanced-search-builder.entry.js +102 -5
- package/dist/esm/udp-advanced-search-field-picker_3.entry.js +3 -3
- package/dist/esm/udp-ag-area-chart.entry.js +2 -2
- package/dist/esm/udp-ag-bar-chart_4.entry.js +5 -5
- package/dist/esm/udp-ag-bubble-chart.entry.js +2 -2
- package/dist/esm/udp-ag-combo-chart.entry.js +2 -2
- package/dist/esm/udp-ag-donut-chart.entry.js +2 -2
- package/dist/esm/udp-ag-line-chart.entry.js +2 -2
- package/dist/esm/udp-ag-pie-chart.entry.js +2 -2
- package/dist/esm/udp-ag-scatter-chart.entry.js +2 -2
- package/dist/esm/udp-attachment-item_2.entry.js +1 -1
- package/dist/esm/udp-attachment-list.entry.js +1 -1
- package/dist/esm/udp-bar-chart.entry.js +1 -1
- package/dist/esm/udp-calendar-base.entry.js +1 -1
- package/dist/esm/udp-calendar-day.entry.js +1 -1
- package/dist/esm/udp-calendar-month.entry.js +1 -1
- package/dist/esm/udp-calendar-week.entry.js +1 -1
- package/dist/esm/udp-calendar-year.entry.js +1 -1
- 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 +1 -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-detail-list_9.entry.js → udp-detail-list_10.entry.js} +606 -74
- package/dist/esm/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.js} +1 -1
- 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-icon-picker.entry.js +2 -2
- package/dist/esm/udp-fluent-inline-edit_5.entry.js +491 -42
- package/dist/esm/udp-fluent-link.entry.js +1 -1
- package/dist/esm/udp-fluent-list-item_2.entry.js +3 -3
- package/dist/esm/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
- package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/esm/udp-forms-builder.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 +3 -3
- package/dist/esm/udp-forms-renderer.entry.js +4 -4
- package/dist/esm/udp-import-sheet.entry.js +242 -0
- 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-question-form-builder.entry.js +28 -251
- package/dist/esm/udp-rich-text-field.entry.js +28 -39
- package/dist/esm/udp-rich-text.entry.js +59 -0
- package/dist/esm/udp-sankey-chart.entry.js +1 -1
- package/dist/esm/udp-sidebar-layout.entry.js +3 -3
- 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-actions.entry.js +1 -1
- package/dist/esm/udp-stepper-content.entry.js +2 -2
- package/dist/esm/udp-stepper-demo.entry.js +1 -1
- package/dist/esm/udp-stepper-nav.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-vertical-timeline-connector.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline-dot.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline-item.entry.js +2 -2
- package/dist/esm/udp-vertical-timeline-separator.entry.js +1 -1
- package/dist/esm/udp-vertical-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/esm/valueFormatters-BbY_Q8IE.js +15 -0
- package/dist/stencil-library/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.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_66.entry.js +1 -0
- 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/apiMethodInstance-qaGbXDNr.js +1 -0
- package/dist/stencil-library/apiUtils-CXqsYwOQ.js +1 -0
- package/dist/stencil-library/app-bar.entry.js +1 -1
- package/dist/stencil-library/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
- package/dist/stencil-library/chart-container_3.entry.js +1 -1
- package/dist/stencil-library/check-box.entry.js +1 -1
- package/dist/stencil-library/chip-section.entry.js +1 -1
- package/dist/stencil-library/codecs-BWyrM561.js +1 -0
- package/dist/stencil-library/configService-CehZzjhw.js +1 -0
- package/dist/stencil-library/configureUdpColumnMods-bMO0_--H.js +1 -0
- package/dist/stencil-library/convertBackendTypeToAgGridType-B8xfl_wR.js +1 -0
- package/dist/stencil-library/createAzureMapsProviders-CtQryp1H.js +1 -0
- package/dist/stencil-library/custom-button.entry.js +1 -1
- package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
- package/dist/stencil-library/domain-table-snapshot-H3o5mjFB.js +1 -0
- package/dist/stencil-library/extraFields-Cnpy_Bm7.js +1 -0
- package/dist/stencil-library/extraFieldsHelper-CaBMA4HJ.js +1 -0
- 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/fluent-icons-wRyOZqj2.js +1 -0
- package/dist/stencil-library/form-metadata-display_2.entry.js +1 -1
- package/dist/stencil-library/getCurrentApiCatalogId-DeurXd9l.js +1 -0
- package/dist/stencil-library/icon-grid.entry.js +1 -1
- package/dist/stencil-library/image-upload_8.entry.js +1 -1
- package/dist/stencil-library/index.esm.js +1 -1
- package/dist/stencil-library/load-icons-D2ZhiHp6.js +1 -0
- package/dist/stencil-library/logical-search-indicator.entry.js +1 -1
- package/dist/stencil-library/lookupHelper-D3LSjaES.js +1 -0
- 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/rich-text-schema-DCUYo610.js +1 -0
- 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/status-chip_2.entry.js +1 -1
- package/dist/stencil-library/status-renderer-Evo0rTNU.js +1 -0
- 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/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
- 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-advanced-search-field-picker_3.entry.js +1 -1
- package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -1
- package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -1
- package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
- package/dist/stencil-library/udp-attachment-list.entry.js +1 -1
- package/dist/stencil-library/udp-bar-chart.entry.js +1 -1
- 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-detail-list_10.entry.js +1 -0
- package/dist/stencil-library/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.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-icon-picker.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-inline-edit_5.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-list-item_2.entry.js +1 -1
- package/dist/stencil-library/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/stencil-library/udp-forms-builder.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-import-sheet.entry.js +1 -0
- 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-question-form-builder.entry.js +1 -1
- package/dist/stencil-library/udp-rich-text-field.entry.js +1 -1
- package/dist/stencil-library/udp-rich-text.entry.js +1 -0
- package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
- package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -1
- 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-actions.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-content.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-nav.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-vertical-timeline-connector.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-dot.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-item.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-separator.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-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/stencil-library/valueFormatters-BbY_Q8IE.js +1 -0
- package/dist/types/components/advanced-search-builder/udp-advanced-search-builder.d.ts +25 -0
- package/dist/types/components/fluent-ui/button/udp-fluent-button.d.ts +5 -0
- package/dist/types/components/fluent-ui/domain-table-input/domain-table-snapshot.d.ts +32 -0
- package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.d.ts +137 -0
- package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.d.ts +46 -0
- package/dist/types/components/fluent-ui/drawer/udp-fluent-drawer.d.ts +5 -0
- package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +12 -1
- package/dist/types/components/fluent-ui/radio-group/udp-fluent-radio-group.d.ts +6 -0
- package/dist/types/components/fluent-ui/rich-text/udp-rich-text.d.ts +19 -0
- package/dist/types/components/fluent-ui/rich-text-field/rich-text-schema.d.ts +6 -0
- package/dist/types/components/fluent-ui/table-input/table-aggregates.d.ts +16 -0
- package/dist/types/components/fluent-ui/table-input/udp-fluent-table-input.d.ts +0 -8
- package/dist/types/components/fluent-ui/tablist/udp-fluent-tablist.d.ts +3 -0
- package/dist/types/components/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.d.ts +22 -0
- package/dist/types/components/forms/udp-question-form/builder/components/configure-question-drawer.d.ts +2 -1
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.d.ts +2 -0
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/types.d.ts +17 -0
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.d.ts +9 -0
- package/dist/types/components/forms/udp-question-form/builder/udp-question-form-builder.d.ts +1 -0
- package/dist/types/components/forms/udp-question-form/builder/utils/builder-api.d.ts +37 -0
- package/dist/types/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.d.ts +5 -0
- package/dist/types/components/forms/udp-question-form/core/field-properties.d.ts +31 -1
- package/dist/types/components/forms/udp-question-form/core/validation/intrinsic.d.ts +15 -3
- package/dist/types/components/forms/udp-question-form/renderer/runtime/codecs.d.ts +12 -1
- package/dist/types/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.d.ts +20 -0
- package/dist/types/components/forms/udp-question-form/renderer/runtime/index.d.ts +1 -0
- package/dist/types/components/forms/udp-question-form/renderer/udp-question-form-renderer.d.ts +9 -0
- package/dist/types/components/forms/udp-question-form/renderer/ui/form-shell.d.ts +3 -0
- package/dist/types/components/forms/udp-question-form/renderer/ui/question-renderer.d.ts +7 -0
- package/dist/types/components/grid/new-grid/ag-grid-base.d.ts +3 -1
- package/dist/types/components/grid/new-grid/api-method-instance-grid.d.ts +9 -1
- package/dist/types/components/grid/new-grid/client-side-grid.d.ts +3 -1
- package/dist/types/components/grid/new-grid/datasources/searchMethodDatasource.d.ts +3 -0
- package/dist/types/components/grid/new-grid/gridFunctions/advancedSearch.d.ts +6 -3
- package/dist/types/components/grid/new-grid/gridFunctions/savedViews.d.ts +1 -0
- package/dist/types/components/grid/new-grid/gridFunctions/udpExport.d.ts +6 -0
- package/dist/types/components/grid/new-grid/helperFunctions/buildSearchObject.d.ts +13 -3
- package/dist/types/components/grid/new-grid/helperFunctions/domainRowsHelper.d.ts +60 -0
- package/dist/types/components/grid/new-grid/helperFunctions/extraFieldsHelper.d.ts +49 -0
- package/dist/types/components/grid/new-grid/helperFunctions/lookupHelper.d.ts +57 -0
- package/dist/types/components/grid/new-grid/helperFunctions/savedViewsHelpers.d.ts +2 -0
- package/dist/types/components/grid/new-grid/search-method-grid.d.ts +35 -1
- package/dist/types/components/grid/new-grid/server-side-grid.d.ts +27 -1
- package/dist/types/components/grid/renderers/actions-renderer.d.ts +15 -0
- package/dist/types/components/grid/renderers/input-renderer.d.ts +36 -0
- package/dist/types/components/import/udp-import-sheet/udp-import-sheet.d.ts +85 -0
- package/dist/types/components.d.ts +411 -12
- package/dist/types/icons/fluent-icons.d.ts +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/store/execution-store.d.ts +4 -5
- package/dist/types/udp-utilities/api-config/configService.d.ts +0 -2
- package/dist/types/udp-utilities/extra-fields/extraFields.d.ts +105 -0
- package/dist/types/udp-utilities/extra-fields/index.d.ts +1 -0
- package/dist/types/udp-utilities/search/searchObject.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/lookupHelper-ClpMWN_g.js +0 -101
- package/dist/cjs/searchObjectHelper-DYpPEIzz.js +0 -110
- package/dist/cjs/slot-index-Dzl7Zum5.js +0 -77
- package/dist/cjs/udp-fluent-number-input.cjs.entry.js +0 -146
- package/dist/esm/lookupHelper-CSo9DNLr.js +0 -96
- package/dist/esm/searchObjectHelper-BjA6OHxg.js +0 -107
- package/dist/esm/slot-index-aYrr8BJl.js +0 -74
- package/dist/esm/udp-fluent-number-input.entry.js +0 -144
- package/dist/stencil-library/ag-grid-base_65.entry.js +0 -1
- package/dist/stencil-library/apiMethodInstance-BunReWfq.js +0 -1
- package/dist/stencil-library/apiUtils-Cq-WuEqc.js +0 -1
- package/dist/stencil-library/codecs-CI_fHfY1.js +0 -1
- package/dist/stencil-library/configService-D_9j963S.js +0 -1
- package/dist/stencil-library/configureUdpColumnMods-UWccWlH6.js +0 -1
- package/dist/stencil-library/createAzureMapsProviders-CLLCmr8f.js +0 -1
- package/dist/stencil-library/fluent-icons-pWFJyrRm.js +0 -1
- package/dist/stencil-library/load-icons-BHSNRRRA.js +0 -1
- package/dist/stencil-library/lookupHelper-CSo9DNLr.js +0 -1
- package/dist/stencil-library/searchObjectHelper-BjA6OHxg.js +0 -1
- package/dist/stencil-library/slot-index-aYrr8BJl.js +0 -1
- package/dist/stencil-library/status-renderer-BoY7sar9.js +0 -1
- package/dist/stencil-library/udp-detail-list_9.entry.js +0 -1
- package/dist/stencil-library/udp-fluent-number-input.entry.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as t,H as e,h as s,t as i}from"./index2.js";import{cloneDeep as o,throttle as n}from"lodash-es";import{f as r}from"./udp-form-api-utils.js";import{c as a,b as u,U as l,a as d}from"./enums.js";import{b as c}from"./utils.js";import{c as m,m as h}from"./makeApiCall.js";import{S as p}from"./SearchBuilder.js";import{a as f}from"./searchObject.js";import{C as b}from"./configService.js";import{v4 as v}from"uuid";import{d as y}from"./address-search2.js";import{d as j}from"./ag-grid-base2.js";import{d as w}from"./base-map2.js";import{d as S}from"./client-side-grid2.js";import{d as g}from"./custom-button2.js";import{d as O}from"./file-upload2.js";import{d as E}from"./form-metadata-display2.js";import{d as k}from"./ghost-render2.js";import{d as I}from"./grid-header2.js";import{d as F}from"./hint-panel2.js";import{d as D}from"./image-upload2.js";import{d as $}from"./location-input2.js";import{d as x}from"./numeric-field2.js";import{d as C}from"./selectable-list2.js";import{d as U}from"./signature-input2.js";import{d as P}from"./stencil-field2.js";import{d as q}from"./stencil-form2.js";import{d as A}from"./stencil-icon-button2.js";import{d as K}from"./table-input2.js";import{d as R}from"./tally.js";import{d as T}from"./text-area2.js";import{d as V}from"./text-field2.js";import{d as L}from"./udp-adornment2.js";import{d as _}from"./udp-ambient-card2.js";import{d as N}from"./udp-ambient-tool-tip2.js";import{d as M}from"./udp-avatar2.js";import{d as B}from"./udp-badge2.js";import{d as J}from"./udp-button2.js";import{d as Q}from"./udp-container2.js";import{d as z}from"./udp-date-selector2.js";import{d as W}from"./udp-datetime-selector2.js";import{d as G}from"./udp-dialog2.js";import{d as H}from"./udp-divider2.js";import{d as X}from"./udp-empty-state2.js";import{d as Y}from"./udp-export-sheet2.js";import{d as Z}from"./udp-flexbox2.js";import{d as tt}from"./udp-fluent-avatar2.js";import{d as et}from"./udp-fluent-badge2.js";import{d as st}from"./udp-fluent-button2.js";import{d as it}from"./udp-fluent-card2.js";import{d as ot}from"./udp-fluent-checkbox2.js";import{d as nt}from"./udp-fluent-dialog2.js";import{d as rt}from"./udp-fluent-drawer2.js";import{d as at}from"./udp-fluent-icon2.js";import{d as ut}from"./udp-fluent-icon-button2.js";import{d as lt}from"./udp-fluent-menu2.js";import{d as dt}from"./udp-fluent-switch2.js";import{d as ct}from"./udp-fluent-text-input2.js";import{d as mt}from"./udp-forms-ui2.js";import{d as ht}from"./udp-icon2.js";import{d as pt}from"./udp-icon-button2.js";import{d as ft}from"./udp-linear-loader2.js";import{d as bt}from"./list-item.js";import{d as vt}from"./udp-list-renderer2.js";import{d as yt}from"./udp-menu-item2.js";import{d as jt}from"./udp-message-bar2.js";import{d as wt}from"./udp-pagination2.js";import{d as St}from"./udp-pop-over2.js";import{d as gt}from"./udp-primary-action-header2.js";import{d as Ot}from"./udp-progress-bar2.js";import{d as Et}from"./udp-question2.js";import{d as kt}from"./udp-question-comments2.js";import{d as It}from"./udp-save-draft-button2.js";import{d as Ft}from"./udp-search-input2.js";import{d as Dt}from"./udp-selector2.js";import{d as $t}from"./udp-side-sheet2.js";import{d as xt}from"./udp-spinner2.js";import{d as Ct}from"./udp-text2.js";import{d as Ut}from"./udp-time-selector2.js";import{d as Pt}from"./udp-tooltip2.js";import{d as qt}from"./unity-typography2.js";class At{constructor(t={}){this.id=null,this.formId=null,this.formVersion=null,this.data={},this.unityUserId=null,this.clusterId=null,this.userDisplayName="",this.status=null,this.businessObjectKey="",this.udpTags=[],this.form=null,this.initialCreatedOn=null,this.lastModifiedOn=null,this.submittedOn=null,this.generic1=null,this.generic2=null,this.generic3=null,this.userEmail=null,Object.assign(this,t)}processSubmissionIntoFormDataWithoutValues(t){const e=this.buildBaseSubmissionData(t),s=m(e);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,e){var s;const i=this.buildBaseSubmissionData(e),{cleanedData:o,files:n}=this.extractCleanedDataAndFiles(t),r=m(i);n.forEach((t=>r.append("FormFiles",t)));const a={submissionResponseData:o,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(a)),r}buildBaseSubmissionData(t){var e;const s={FormId:this.formId,FormVersion:""+(null!==(e=this.formVersion)&&void 0!==e?e:""),Status:t};return this.id&&(s.Id=this.id),s.InitialCreatedOn=this.initialCreatedOn?this.initialCreatedOn:(new Date).toISOString(),s.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn:(new Date).toISOString(),this.submittedOn&&(s.submittedOn=this.submittedOn),this.generic1&&(s.generic1=""+this.generic1),this.generic2&&(s.generic2=""+this.generic2),this.generic3&&(s.generic3=""+this.generic3),s}extractCleanedDataAndFiles(t){const e=[],s={};for(const i in t){s[i]={};for(const o in t[i]){const n=t[i][o],{value:r,fieldFiles:a}=this.extractValueAndFiles(n);a&&e.push(...a);const u=this.processComments(n.comments),l=this.processMetadata(n.metadata);s[i][o]=Object.assign({value:r,comments:u},l&&{metadata:l})}}return{cleanedData:s,files:e}}extractValueAndFiles(t){var e,s;let i=(null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.files)?t.value.value:null==t?void 0:t.value;const o=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return o&&Array.isArray(o)?{value:"string"==typeof i&&""!==i.trim()?i:"",fieldFiles:o}:function(t){return!!Array.isArray(t)&&t.every((t=>t instanceof File))}(i)?{value:i.length>0?i.map((t=>t.name)).join(","):"",fieldFiles:i}:i instanceof File?{value:i.name,fieldFiles:[i]}:Array.isArray(i)?{value:i.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:i}}processComments(t){var e;return null!==(e=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==e?e:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class Kt{constructor(t,e){this.accessMode=t,this.tenantId=e}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const e=t.includes("?")?"&":"?";return`${t}${e}tenantId=${encodeURIComponent(this.tenantId+"")}`}async addComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await h("POST",s,e,!0)}async updateComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:i,commentId:o,value:n}=e,r=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${o}`;await h("PUT",r,{value:n,sectionKey:s,questionKey:i},!0)}async deleteComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot delete a comment without a submission ID.");const{commentId:s}=e,i=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await h("DELETE",i,null,!0)}async fetchAndPopulateUdpFormSubmissionObj(t){if(!(null==t?void 0:t.id))return console.warn("Cannot fetch form submission without an ID."),t;if("public"===this.accessMode){const e=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return e?new At(Object.assign(Object.assign({},t),e)):t}const{id:e}=t,s=await this.getFormSubmissionById(e);return s?new At(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,a.InProgress)}async saveCurrentFormSubmissionState(t,e){return"public"===this.accessMode?e:this.saveSubmissionToDB(t,e,a.InProgress)}async finalizeFormSubmissionState(t,e){return this.saveSubmissionToDB(t,e,a.Submitted)}async saveFormDataWithoutValues(t,e){const s=t.processSubmissionIntoFormDataWithoutValues(e),{method:i,url:o}=this.getApiRequestInfo(t),n=this.appendTenantQueryIfPublic(o),r=await h(i,n,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new At(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const e=`${b.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:e}:t.id?{method:"PUT",url:e}:{method:"POST",url:e}}async saveSubmissionToDB(t,e,s){const i=e.processSubmissionIntoFormData(t,s),{method:o,url:n}=this.getApiRequestInfo(e),r=this.appendTenantQueryIfPublic(n),a=await h(o,r,i,!0);if(""===a)return await this.fetchAndPopulateUdpFormSubmissionObj(e);const u=new At(Object.assign(Object.assign({},e),a));return Object.assign(e,u),u}async getFormSubmissionById(t){var e;try{const s=new p(1,1).addFilter("id",t,f.EQUALS),i=await s.execute("UdpFormSubmission");return(null===(e=null==i?void 0:i.pageList)||void 0===e?void 0:e[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,e){var s;try{const i=new p(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",e,f.EQUALS),o=await i.execute("UdpFormSubmission");return(null===(s=null==o?void 0:o.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class Rt{static create(t,e,s){return new Kt(t?"public":"private",null!=s?s:void 0)}}class Tt{constructor(t,e=!1){this.tenantId=t,this.isPublicMode=e}buildDescribeUrl(t,e){const s=b.productV1ApiUrl,i=new URLSearchParams;if("number"==typeof e&&i.set("formVersion",e+""),this.isPublicMode){this.tenantId&&i.set("tenantId",this.tenantId+"");const e=""+i;return`${s}/UdpForm/${t}/describe/public${e?"?"+e:""}`}const o=""+i;return`${s}/UdpForm/${t}/describe${o?"?"+o:""}`}async getFormByFormIdAndFormVersion(t,e){const s=this.buildDescribeUrl(t,e),i=await h("GET",s,void 0,!1);return i.styleOverrides&&"string"==typeof i.styleOverrides&&(i.styleOverrides=JSON.parse(i.styleOverrides)),i}async getFormByFormIdLatestVersion(t){const e=this.buildDescribeUrl(t),s=await h("GET",e,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class Vt{constructor(t){t&&Object.assign(this,t)}}const Lt=(t,e)=>{const s=Object.keys(e),i=new Set,o=RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const e=t.match(o);e&&e[1]&&i.add(Number(e[1]))})),Array.from(i).sort(((t,e)=>t-e))},_t=(t,e)=>{const s=`${"undefined"!=typeof window?window.location.pathname:"/page/"+u.FormRendererPrivatePageId}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,i=e;if(i){if("function"==typeof i.replace)return void i.replace(s);if("function"==typeof i.push)return void i.push(s);if("function"==typeof i){try{i(s,{replace:!0})}catch(t){i(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},Nt=(t,e)=>{null==e||e(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},Mt=(t,e)=>{null==e||e(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},Bt=(t,e)=>{var s;const i=t&&"object"==typeof t?t:{};for(const t of e||[]){const e=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(e){i[e]&&"object"==typeof i[e]||(i[e]={});for(const o of t.formQuestions||[]){const t=null==o?void 0:o.name;if(!t)continue;const n=null===(s=i[e])||void 0===s?void 0:s[t];n&&"object"==typeof n?("comments"in n||(n.comments=[]),"metadata"in n||(n.metadata=null),"value"in n||(n.value=null)):i[e][t]={value:null,comments:[],metadata:null}}}}return i},Jt=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},Qt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tenantId=null,this.isPublicMode=!1,this.showSubmitSuccessRedirectButton=!1,this.showSubmitSuccessSubmissionId=!1,this.autoSaveDelay=2e3,this.urlContext={},this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.isSubmitted=!1,this.dynamicSections=[],this.isUpdatingSections=!1,this.reRenderKey=0,this.hasUnsavedChanges=!1,this.sideSheetFollowUpFormsList=[],this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpSideSheetListPageNumber=1,this.formTemplateOverrides=null,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE=5,this.componentMap={history:"history",listItemData:"listItemData",handleLaunchFollowUpForm:"handleLaunchFollowUpForm"},this.clientUserInfo={id:null,displayName:null,email:null},this.followUpParentSectionKey="",this.followUpParentQuestionKey="",this.publicFeatures={allowDraftSave:!1,allowComments:!0,allowFollowUpForms:!1},this.handleLaunchFollowUpFormSideSheet=async t=>{try{if(this.isPublicMode)return;this.followUpParentSectionKey=t.detail.sectionKey,this.followUpParentQuestionKey=t.detail.questionKey,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey),this.isFollowUpFormsSideSheetOpen=!0}catch(t){console.error("Error loading follow-up forms:",t)}},this.duplicateRepeatableSection=t=>{if(!this.isSubmitted&&!this.isUpdatingSections){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{var e,s,i;const{dynamicSections:n,values:r,index:a}=t,u=n[a];if(!u)return{nextDynamicSections:n,nextValues:r};const d=u.name,c=Lt(d,r),m=c.length>0?Math.max(...c)+1:2,h=Object.assign(Object.assign({},o(u)),{formQuestions:(u.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${d}_${m}.${t.name}`,e})),isOriginalSection:!1,sectionPositionSuffix:m});let p=a;for(let t=a+1;t<n.length&&n[t].name===d;t++)p=t;const f=[...n.slice(0,p+1),h,...n.slice(p+1)],b=Object.assign({},r||{}),v=`${d}_${m}`,y=(t=>t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`)(u);for(const t of h.formQuestions||[]){b[v]||(b[v]={});let o="";if(t.fieldTypeId===l.Paragraph){const n=null===(s=null===(e=null==r?void 0:r[y])||void 0===e?void 0:e[t.name])||void 0===s?void 0:s.value,a=Jt(t.fieldProperties),u=null!==(i=null==a?void 0:a.paragraphText)&&void 0!==i?i:"";o=null!=n?n:u}b[v][t.name]={value:o,comments:[],metadata:{}}}return{nextDynamicSections:f,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.deleteRepeatableSection=t=>{if(this.isSubmitted)return;const e=this.dynamicSections[t];if(e&&!e.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{const{dynamicSections:e,values:s,index:i}=t,n=e[i];if(!n||n.isOriginalSection)return{nextDynamicSections:e,nextValues:s};const r=n.name,a=n.sectionPositionSuffix,u=`${r}_${a}`,l=Object.assign({},s||{});delete l[u];const d=o(e);return d.splice(i,1),d.forEach((t=>{var e;if(t.name!==r||t.isOriginalSection||(null!==(e=t.sectionPositionSuffix)&&void 0!==e?e:0)<=(null!=a?a:0))return;const s=t.sectionPositionSuffix,i=`${r}_${s}`,n=s-1,u=`${r}_${n}`;t.sectionPositionSuffix=n,t.formQuestions=(t.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${u}.${t.name}`,e})),l[i]&&(l[u]=l[i],delete l[i])})),{nextDynamicSections:d,nextValues:l}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.performBackgroundSaveAndUpdateLocalSubmissionState=async t=>{const e=Bt(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(e)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,e)=>{var s,i;const o=null!==(s=null==e?void 0:e.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,n=null!==(i=null==e?void 0:e.forceCreateDraftIfMissingId)&&void 0!==i&&i;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||n){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const e=Bt(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),o&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&_t(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,e;if(!(null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id))return;const s=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);this.udpFormSubmission=s,this.currentValues=Object.assign({},(null===(e=s.data)||void 0===e?void 0:e.submissionResponseData)||{}),this.isSubmitted=s.status===a.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const e=Bt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||_t(this.udpFormSubmission.id,this.history),Nt("Form saved successfully.",this.enqueueSnackbar)}catch(t){Mt("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.handleRedirect=()=>{const t=this.resolveRedirectUrl(),e=this.history;if(e){if("function"==typeof e.push)return e.push(t);if("function"==typeof e)return e(t);if("function"==typeof e.replace)return e.replace(t)}"undefined"!=typeof window&&window.location.assign(t)},this.triggerFormRerender=()=>{const t=window.scrollY;this.reRenderKey+=1,requestAnimationFrame((()=>{window.scrollTo({top:t,behavior:"auto"})}))},this.handleLaunchFollowUpForm=async(t,e,s,i,o,n,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,e),l={submissionResponseData:c(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:i,formVersion:o}}},d=new At({formId:t,formVersion:e,unityUserId:this.clientUserInfo.id,data:l}),m=Rt.create(!1,this.clientUserInfo.id),h=await m.createNewLinkedFollowUpFormSubmission(d);this.udpFormSubmission.data.submissionResponseData[n][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[n][r].metadata),{followUpFormSubmissionId:h.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${u.FormRendererPrivatePageId}?udpf_submissionId=${h.id}`,"_blank"),this.handleSideSheetClose(),this.triggerFormRerender()},this.handleSideSheetClose=()=>{this.sideSheetFollowUpFormsList=[],this.followUpSideSheetListPageNumber=1,this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpParentSectionKey="",this.followUpParentQuestionKey=""}}initClientUserInfo(){var t;if(this.isPublicMode)this.clientUserInfo.id="00000000-0000-0000-0000-000000000001",this.clientUserInfo.displayName="Anonymous",this.clientUserInfo.email="Anonymous";else{const e=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);e&&(this.clientUserInfo.id=e.id||null,this.clientUserInfo.displayName=e.name||null,this.clientUserInfo.email=e.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=Rt.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new At({id:this.submissionId,formId:this.formId,formVersion:this.formVersion,unityUserId:this.clientUserInfo.id,generic1:this.urlContext.generic1,generic2:this.urlContext.generic2,generic3:this.urlContext.generic3})}normalizeOverrideValue(t){if(null==t)return null;const e=(t+"").trim();return e.length>0?e:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,e,s,i;const o=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),n=this.normalizeOverrideValue(null===(e=this.urlContext)||void 0===e?void 0:e.override_formdescription);(o||n)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)!==a.Created||(this.formTemplateOverrides={formName:o,formDescription:n}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,e,s,i;const o=null===(e=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===e?void 0:e.formTemplateOverrides,n=this.normalizeOverrideValue(null!==(s=null==o?void 0:o.formName)&&void 0!==s?s:null==o?void 0:o.FormName),r=this.normalizeOverrideValue(null!==(i=null==o?void 0:o.formDescription)&&void 0!==i?i:null==o?void 0:o.FormDescription);(n||r)&&(this.formTemplateOverrides={formName:n,formDescription:r})}ensureOverridesPersistedToSubmissionData(){if(!this.formTemplateOverrides)return;if(!this.udpFormSubmission)return;this.udpFormSubmission.data&&"object"==typeof this.udpFormSubmission.data||(this.udpFormSubmission.data={});const{formName:t,formDescription:e}=this.formTemplateOverrides;(t||e)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=e?e:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,e;return this.submissionId?(t=this.udpFormSubmission.formId,e=this.udpFormSubmission.formVersion):(t=this.formId,e=this.formVersion),{formId:t,formVersion:e}}async loadFormAndInitValues(t,e){var s,i,o;this.formHandler=new Tt(this.tenantId,this.isPublicMode);const n="number"==typeof e?await this.formHandler.getFormByFormIdAndFormVersion(t,e):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new Vt(n),"number"!=typeof e){const t=null!==(i=null!==(s=null==n?void 0:n.version)&&void 0!==s?s:null==n?void 0:n.formVersion)&&void 0!==i?i:null===(o=this.udpForm)||void 0===o?void 0:o.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=c(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===a.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],e=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((e=>{const s=(e+"").toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==a.Created||!e)this.dynamicSections=((t,e)=>{var s;const i=[],o=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const n of o){n.sectionProperties=JSON.parse(n.sectionProperties||{});const o=Lt(n.name,e);if(n.isOriginalSection=!0,n.sectionPositionSuffix=1,i.push(Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=n.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&o.length>0){const e=Math.max(...o);for(let s=2;s<=e;s++){const e=Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});i.push(e)}}}return i})(this.udpForm,this.currentValues);else{const e={};Object.keys(this.urlContext).forEach((s=>{const i=s+"",o=i.toLowerCase(),n=t.find((t=>o.startsWith(t)));n&&(e[i.substring(n.length)]=this.urlContext[s])})),this.dynamicSections=((t,e,s)=>{var i,o;const n=(t=>{const e={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const i=t.match(/^([^._?&#]+)_(\d+)\./);if(!i)return;const o=i[1],n=Number(i[2]);!Number.isFinite(n)||n<2||n>(null!==(s=e[o])&&void 0!==s?s:1)&&(e[o]=n)})),e})(s),r=[],a=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const s of a){s.sectionProperties=JSON.parse(s.sectionProperties||{});const a=Lt(s.name,e),u=a.length>0?Math.max(...a):1,l=null!==(i=null==n?void 0:n[s.name])&&void 0!==i?i:1,d=Math.max(u,l);if(s.isOriginalSection=!0,s.sectionPositionSuffix=1,r.push(Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(o=s.sectionProperties)||void 0===o?void 0:o.isRepeatable)&&d>=2)for(let e=2;e<=d;e++){const i=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${e}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:e});r.push(i)}}return r})(this.udpForm,this.currentValues,e);const s=((t,e)=>{if(!Array.isArray(t))return;const s=e&&"object"==typeof e?e:{},i={};Object.keys(s).forEach((t=>{i[(t+"").toLowerCase()]=s[t]}));const o={};t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;(t.formQuestions||[]).forEach((t=>{if(!t)return;const s=[t.processedSubmissionName,t.questionIdentifierKey,t.name].filter(Boolean);let n;for(const t of s){const e=(t+"").toLowerCase();if(Object.prototype.hasOwnProperty.call(i,e)){n=i[e];break}}null!=n&&(o[e]||(o[e]={}),o[e][t.name]={value:n,comments:[]})}))}));const n={};return Object.entries(o).forEach((([t,e])=>{n[t]||(n[t]={}),Object.entries(e).forEach((([e,s])=>{const i=n[t][e];(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim())&&(n[t][e]=s)}))})),t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;n[e]||(n[e]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===l.Paragraph){const i=n[e][t.name];if(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim()){let i=null==t?void 0:t.fieldProperties;if("string"==typeof i)try{i=JSON.parse(i||"{}")}catch(t){i={}}n[e][t.name]={value:null!==(s=null==i?void 0:i.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),n})(this.dynamicSections,e);s&&(this.currentValues=s,this.udpFormSubmission.data.submissionResponseData=Object.assign({},s))}}initDebouncedFns(){this.debouncedManualSave=n((async t=>{await this.handleManualSave(t)}),2e3,{leading:!0,trailing:!1})}componentDidLoad(){this.el&&(this.el.addEventListener("questionCommentAction",(async t=>this.handleQuestionCommentLiveCRUD(t))),this.el.addEventListener("launchFollowUpFormSideSheet",(t=>this.handleLaunchFollowUpFormSideSheet(t))),this.el.addEventListener("formDirtyChange",(t=>{this.hasUnsavedChanges=this.hasUnsavedChanges||t.detail})),this.el.addEventListener("udpFormsSubmitInvalid",(()=>{Mt("Please fill out all required fields.",this.enqueueSnackbar)})))}async componentWillLoad(){this.isLoading=!0;try{this.initClientUserInfo(),this.initHandlersAndLocalSubmission(),await this.loadExistingSubmissionIfNeeded(),this.initFormTemplateOverridesFromUrlContextIfEligible();const{formId:t,formVersion:e}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,e),this.initDynamicSectionsAndApplyUrlSeed(),this.initDebouncedFns()}catch(t){console.error("Error failed to load form in the form renderer:",t)}finally{this.isLoading=!1}}async handleSubmit(t){this.isLoading=!0;try{const e=Bt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw Mt("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var e,s,i,o,n,r;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:u,questionIdentifierKey:l,commentId:d}=t.detail,c=function(t){var e,s,i,o,n;const{actionType:r,questionIdentifierKey:a,commentId:u,currentSubmissionResponseData:l,clientUserInfo:d}=t,c=(a||"").split("."),m=c[0]||"",h=c[1]||"";if(!m||!h)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:l||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const p=l||{},f=p[m]||{},b=f[h],y=Object.assign(Object.assign({},p),{[m]:Object.assign({},f)});b?(y[m][h]=Object.assign({},b),y[m][h].comments=null!==(e=y[m][h].comments)&&void 0!==e?e:[],y[m][h].draftComments=null!==(s=y[m][h].draftComments)&&void 0!==s?s:[],y[m][h].metadata=null!==(i=y[m][h].metadata)&&void 0!==i?i:{}):y[m][h]={value:"",comments:[],draftComments:[],metadata:{}};const j=y[m][h].draftComments;j&&!Array.isArray(j)?y[m][h].draftComments=[j]:j||(y[m][h].draftComments=[]);const w=Array.isArray(y[m][h].comments)?[...y[m][h].comments]:[],S=Array.isArray(y[m][h].draftComments)?[...y[m][h].draftComments]:[];let g=!1;switch(r){case"add":{const t={value:"",commentId:v(),isTempComment:!0,timestamp:null};y[m][h].draftComments=[t,...S],g=!0;break}case"save":{const t=S.findIndex((t=>t.commentId===u));if(-1===t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=S[t],s=e.timestamp||(new Date).toISOString(),i=Object.assign(Object.assign({},e),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==d?void 0:d.id,userDisplayName:null==d?void 0:d.displayName,isDraftComment:!1}),o=w.findIndex((t=>t.commentId===u));if(-1!==o){const t=[...w];t[o]=Object.assign({},i),y[m][h].comments=t}else y[m][h].comments=[...w,i];y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0;break}case"edit":{const t=w.find((t=>t.commentId===u));if(!t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[m][h].draftComments=[e,...S],y[m][h].comments=w,g=!0;break}case"delete":y[m][h].comments=w.map((t=>t.commentId===u?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),g=!0;break;case"editClose":y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0}const O="save"===r||"delete"===r;let E;if("save"===r){const t=((null===(n=null===(o=null==y?void 0:y[m])||void 0===o?void 0:o[h])||void 0===n?void 0:n.comments)||[]).find((t=>t.commentId===u));E=null==t?void 0:t.value}return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:g,shouldPersist:O,persistIntent:"none",commentId:u,valueToPersist:E}}({actionType:u,questionIdentifierKey:l,commentId:d,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),m=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},m),"edit"!==u&&"editClose"!==u&&"add"!==u||(this.currentValues=Object.assign({},m)),c.shouldPersist){const t=(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)===a.Submitted,l=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,d=((null===(n=null===(o=null===(i=this.currentValues||{})||void 0===i?void 0:i[c.sectionKey])||void 0===o?void 0:o[c.questionKey])||void 0===n?void 0:n.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!l)if(null===(r=this.udpFormSubmission)||void 0===r?void 0:r.id){if("save"===u){const t=c.valueToPersist;if(t)try{d?await this.formSubmissionHandler.updateComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}):await this.formSubmissionHandler.addComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),Nt(d?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw Mt(d?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===u)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),Nt("Comment deleted.",this.enqueueSnackbar)}catch(t){throw Mt("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},m);else this.isPublicMode?this.currentValues=Object.assign({},m):await this.handleManualSave(m)}else this.currentValues=Object.assign({},m)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}resolveRedirectUrl(){const t=this.urlContext||{};let e=t.redirecturl;if(null==e){const s=Object.keys(t).find((t=>"redirecturl"===(t+"").toLowerCase()));s&&(e=t[s])}return this.normalizeOverrideValue(e)||"/"}async loadFollowUpForms(t,e){var s;this.isLoading=!0;try{const i=(await r(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:d.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!i||!Array.isArray(i.pageList))throw Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(i.pageList,t,e),this.followUpSideSheetTotalItems=null!==(s=i.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,e,s){return t.map((t=>({listItemData:t,history:this.history,handleLaunchFollowUpForm:async()=>await this.handleLaunchFollowUpForm(t.id,t.version,this.udpFormSubmission.id,this.udpFormSubmission.formId,this.udpFormSubmission.formVersion,e,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:s("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&s("udp-linear-loader",null),s("udp-list-renderer",{itemComponent:"udp-forms-follow-up-list-card",data:this.sideSheetFollowUpFormsList,pagination:!0,isServerSide:!0,isLoading:this.isLoading,itemsPerPage:this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,currentPage:this.followUpSideSheetListPageNumber,totalItems:this.followUpSideSheetTotalItems,onPageChange:t=>this.handleSideSheetPageChange(t.detail),componentDataMap:this.componentMap,spacing:"md"}))}isShowManualSaveIcon(){return!this.isPublicMode&&(!!this.clientUserInfo.id&&this.hasUnsavedChanges)}get isReadOnlyMode(){return this.isSubmitted||this.udpFormSubmission.unityUserId!==this.clientUserInfo.id}render(){var t;return s("div",{key:"f03249020439e7b3412a68c0cb8c64630ba428ec",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),s("udp-forms-ui",{udpForm:this.udpForm,formTemplateOverrides:this.formTemplateOverrides,currentValues:this.currentValues,udpFormSubmission:this.udpFormSubmission,submitSuccessful:this.submitSuccessful,isSaving:this.isSaving,readonly:this.isReadOnlyMode,handleSubmit:this.handleSubmit.bind(this),handleSave:t=>Promise.resolve(this.debouncedManualSave(t)),handleChange:this.handleFormChange,handleAction:this.triggerAction,handleFinish:this.handleFinish,clientUserInfo:this.clientUserInfo,isSubmitted:this.isSubmitted,dynamicSections:this.dynamicSections,duplicateRepeatableSection:this.duplicateRepeatableSection,deleteRepeatableSection:this.deleteRepeatableSection,key:"form-rerender-key-"+this.reRenderKey,isShowManualSaveIcon:this.isShowManualSaveIcon(),isLoading:this.isLoading,performBackgroundSaveAndUpdateLocalSubmissionState:this.performBackgroundSaveAndUpdateLocalSubmissionState,submissionId:null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id,handleRedirect:this.handleRedirect,showSubmitSuccessRedirectButton:this.showSubmitSuccessRedirectButton,showSubmitSuccessSubmissionId:this.showSubmitSuccessSubmissionId}))}get el(){return this}},[1,"udp-forms-renderer",{formId:[1,"form-id"],formVersion:[2,"form-version"],submissionId:[1,"submission-id"],tenantId:[1,"tenant-id"],triggerAction:[16],isPublicMode:[4,"is-public-mode"],showSubmitSuccessRedirectButton:[4,"show-submit-success-redirect-button"],showSubmitSuccessSubmissionId:[4,"show-submit-success-submission-id"],callbackUrl:[1,"callback-url"],getUserCallback:[16],enqueueSnackbar:[16],closeSnackbar:[16],autoSaveDelay:[2,"auto-save-delay"],history:[8],urlContext:[16],currentValues:[32],submitSuccessful:[32],isLoading:[32],isSaving:[32],isSubmitted:[32],dynamicSections:[32],isUpdatingSections:[32],reRenderKey:[32],hasUnsavedChanges:[32],sideSheetFollowUpFormsList:[32],followUpSideSheetTotalItems:[32],isFollowUpFormsSideSheetOpen:[32],followUpSideSheetListPageNumber:[32],formTemplateOverrides:[32]}]),zt=Qt,Wt=function(){"undefined"!=typeof customElements&&["udp-forms-renderer","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","udp-empty-state","udp-export-sheet","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-checkbox","udp-fluent-dialog","udp-fluent-drawer","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-forms-ui","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-list-renderer","udp-menu-item","udp-message-bar","udp-pagination","udp-pop-over","udp-primary-action-header","udp-progress-bar","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-renderer":customElements.get(i(t))||customElements.define(i(t),Qt);break;case"address-search":customElements.get(i(t))||y();break;case"ag-grid-base":customElements.get(i(t))||j();break;case"base-map":customElements.get(i(t))||w();break;case"client-side-grid":customElements.get(i(t))||S();break;case"custom-button":customElements.get(i(t))||g();break;case"file-upload":customElements.get(i(t))||O();break;case"form-metadata-display":customElements.get(i(t))||E();break;case"ghost-render":customElements.get(i(t))||k();break;case"grid-header":customElements.get(i(t))||I();break;case"hint-panel":customElements.get(i(t))||F();break;case"image-upload":customElements.get(i(t))||D();break;case"location-input":customElements.get(i(t))||$();break;case"numeric-field":customElements.get(i(t))||x();break;case"selectable-list":customElements.get(i(t))||C();break;case"signature-input":customElements.get(i(t))||U();break;case"stencil-field":customElements.get(i(t))||P();break;case"stencil-form":customElements.get(i(t))||q();break;case"stencil-icon-button":customElements.get(i(t))||A();break;case"table-input":customElements.get(i(t))||K();break;case"tally-display":customElements.get(i(t))||R();break;case"text-area":customElements.get(i(t))||T();break;case"text-field":customElements.get(i(t))||V();break;case"udp-adornment":customElements.get(i(t))||L();break;case"udp-ambient-card":customElements.get(i(t))||_();break;case"udp-ambient-tool-tip":customElements.get(i(t))||N();break;case"udp-avatar":customElements.get(i(t))||M();break;case"udp-badge":customElements.get(i(t))||B();break;case"udp-button":customElements.get(i(t))||J();break;case"udp-container":customElements.get(i(t))||Q();break;case"udp-date-selector":customElements.get(i(t))||z();break;case"udp-datetime-selector":customElements.get(i(t))||W();break;case"udp-dialog":customElements.get(i(t))||G();break;case"udp-divider":customElements.get(i(t))||H();break;case"udp-empty-state":customElements.get(i(t))||X();break;case"udp-export-sheet":customElements.get(i(t))||Y();break;case"udp-flexbox":customElements.get(i(t))||Z();break;case"udp-fluent-avatar":customElements.get(i(t))||tt();break;case"udp-fluent-badge":customElements.get(i(t))||et();break;case"udp-fluent-button":customElements.get(i(t))||st();break;case"udp-fluent-card":customElements.get(i(t))||it();break;case"udp-fluent-checkbox":customElements.get(i(t))||ot();break;case"udp-fluent-dialog":customElements.get(i(t))||nt();break;case"udp-fluent-drawer":customElements.get(i(t))||rt();break;case"udp-fluent-icon":customElements.get(i(t))||at();break;case"udp-fluent-icon-button":customElements.get(i(t))||ut();break;case"udp-fluent-menu":customElements.get(i(t))||lt();break;case"udp-fluent-switch":customElements.get(i(t))||dt();break;case"udp-fluent-text-input":customElements.get(i(t))||ct();break;case"udp-forms-ui":customElements.get(i(t))||mt();break;case"udp-icon":customElements.get(i(t))||ht();break;case"udp-icon-button":customElements.get(i(t))||pt();break;case"udp-linear-loader":customElements.get(i(t))||ft();break;case"udp-list-item":customElements.get(i(t))||bt();break;case"udp-list-renderer":customElements.get(i(t))||vt();break;case"udp-menu-item":customElements.get(i(t))||yt();break;case"udp-message-bar":customElements.get(i(t))||jt();break;case"udp-pagination":customElements.get(i(t))||wt();break;case"udp-pop-over":customElements.get(i(t))||St();break;case"udp-primary-action-header":customElements.get(i(t))||gt();break;case"udp-progress-bar":customElements.get(i(t))||Ot();break;case"udp-question":customElements.get(i(t))||Et();break;case"udp-question-comments":customElements.get(i(t))||kt();break;case"udp-save-draft-button":customElements.get(i(t))||It();break;case"udp-search-input":customElements.get(i(t))||Ft();break;case"udp-selector":customElements.get(i(t))||Dt();break;case"udp-side-sheet":customElements.get(i(t))||$t();break;case"udp-spinner":customElements.get(i(t))||xt();break;case"udp-text":customElements.get(i(t))||Ct();break;case"udp-time-selector":customElements.get(i(t))||Ut();break;case"udp-tooltip":customElements.get(i(t))||Pt();break;case"unity-typography":customElements.get(i(t))||qt()}}))};export{zt as UdpFormsRenderer,Wt as defineCustomElement}
|
|
2
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import{cloneDeep as o,throttle as n}from"lodash-es";import{f as r}from"./udp-form-api-utils.js";import{c as a,b as u,U as l,a as d}from"./enums.js";import{b as c}from"./utils.js";import{c as m,m as h}from"./makeApiCall.js";import{S as p}from"./SearchBuilder.js";import{a as f}from"./searchObject.js";import{C as b}from"./configService.js";import{v4 as v}from"uuid";import{d as y}from"./address-search2.js";import{d as j}from"./ag-grid-base2.js";import{d as w}from"./base-map2.js";import{d as S}from"./client-side-grid2.js";import{d as g}from"./custom-button2.js";import{d as E}from"./file-upload2.js";import{d as O}from"./form-metadata-display2.js";import{d as k}from"./ghost-render2.js";import{d as I}from"./grid-header2.js";import{d as F}from"./hint-panel2.js";import{d as D}from"./image-upload2.js";import{d as $}from"./location-input2.js";import{d as x}from"./numeric-field2.js";import{d as C}from"./selectable-list2.js";import{d as U}from"./signature-input2.js";import{d as P}from"./stencil-field2.js";import{d as q}from"./stencil-form2.js";import{d as A}from"./stencil-icon-button2.js";import{d as K}from"./table-input2.js";import{d as R}from"./tally.js";import{d as T}from"./text-area2.js";import{d as V}from"./text-field2.js";import{d as L}from"./udp-accordion2.js";import{d as _}from"./udp-adornment2.js";import{d as N}from"./udp-ambient-card2.js";import{d as M}from"./udp-ambient-tool-tip2.js";import{d as B}from"./udp-avatar2.js";import{d as J}from"./udp-badge2.js";import{d as Q}from"./udp-button2.js";import{d as z}from"./udp-container2.js";import{d as W}from"./udp-date-range-selector2.js";import{d as G}from"./udp-date-selector2.js";import{d as H}from"./udp-datetime-selector2.js";import{d as X}from"./udp-dialog2.js";import{d as Y}from"./udp-divider2.js";import{d as Z}from"./udp-empty-state2.js";import{d as tt}from"./udp-export-sheet2.js";import{d as et}from"./udp-flexbox2.js";import{d as st}from"./udp-fluent-avatar2.js";import{d as it}from"./udp-fluent-badge2.js";import{d as ot}from"./udp-fluent-button2.js";import{d as nt}from"./udp-fluent-card2.js";import{d as rt}from"./udp-fluent-checkbox2.js";import{d as at}from"./udp-fluent-dialog2.js";import{d as ut}from"./udp-fluent-drawer2.js";import{d as lt}from"./udp-fluent-dropdown2.js";import{d as dt}from"./udp-fluent-icon2.js";import{d as ct}from"./udp-fluent-icon-button2.js";import{d as mt}from"./udp-fluent-menu2.js";import{d as ht}from"./udp-fluent-number-input2.js";import{d as pt}from"./udp-fluent-switch2.js";import{d as ft}from"./udp-fluent-text-input2.js";import{d as bt}from"./udp-forms-ui2.js";import{d as vt}from"./udp-icon2.js";import{d as yt}from"./udp-icon-button2.js";import{d as jt}from"./udp-linear-loader2.js";import{d as wt}from"./list-item.js";import{d as St}from"./udp-list-renderer2.js";import{d as gt}from"./udp-menu-item2.js";import{d as Et}from"./udp-message-bar2.js";import{d as Ot}from"./udp-pagination2.js";import{d as kt}from"./udp-pop-over2.js";import{d as It}from"./udp-popover2.js";import{d as Ft}from"./udp-primary-action-header2.js";import{d as Dt}from"./udp-progress-bar2.js";import{d as $t}from"./udp-question2.js";import{d as xt}from"./udp-question-comments2.js";import{d as Ct}from"./udp-save-draft-button2.js";import{d as Ut}from"./udp-search-input2.js";import{d as Pt}from"./udp-selector2.js";import{d as qt}from"./udp-side-sheet2.js";import{d as At}from"./udp-spinner2.js";import{d as Kt}from"./udp-text2.js";import{d as Rt}from"./udp-time-selector2.js";import{d as Tt}from"./udp-tooltip2.js";import{d as Vt}from"./unity-typography2.js";class Lt{constructor(t={}){this.id=null,this.formId=null,this.formVersion=null,this.data={},this.unityUserId=null,this.clusterId=null,this.userDisplayName="",this.status=null,this.businessObjectKey="",this.udpTags=[],this.form=null,this.initialCreatedOn=null,this.lastModifiedOn=null,this.submittedOn=null,this.generic1=null,this.generic2=null,this.generic3=null,this.userEmail=null,Object.assign(this,t)}processSubmissionIntoFormDataWithoutValues(t){const e=this.buildBaseSubmissionData(t),s=m(e);return s.append("Data",JSON.stringify(this.data)),s}processSubmissionIntoFormData(t,e){var s;const i=this.buildBaseSubmissionData(e),{cleanedData:o,files:n}=this.extractCleanedDataAndFiles(t),r=m(i);n.forEach((t=>r.append("FormFiles",t)));const a={submissionResponseData:o,submissionMetadata:this.data.submissionMetadata||null,formTemplateOverrides:(null===(s=this.data)||void 0===s?void 0:s.formTemplateOverrides)||null};return r.append("Data",JSON.stringify(a)),r}buildBaseSubmissionData(t){var e;const s={FormId:this.formId,FormVersion:""+(null!==(e=this.formVersion)&&void 0!==e?e:""),Status:t};return this.id&&(s.Id=this.id),s.InitialCreatedOn=this.initialCreatedOn?this.initialCreatedOn:(new Date).toISOString(),s.LastModifiedOn=this.lastModifiedOn?this.lastModifiedOn:(new Date).toISOString(),this.submittedOn&&(s.submittedOn=this.submittedOn),this.generic1&&(s.generic1=""+this.generic1),this.generic2&&(s.generic2=""+this.generic2),this.generic3&&(s.generic3=""+this.generic3),s}extractCleanedDataAndFiles(t){const e=[],s={};for(const i in t){s[i]={};for(const o in t[i]){const n=t[i][o],{value:r,fieldFiles:a}=this.extractValueAndFiles(n);a&&e.push(...a);const u=this.processComments(n.comments),l=this.processMetadata(n.metadata);s[i][o]=Object.assign({value:r,comments:u},l&&{metadata:l})}}return{cleanedData:s,files:e}}extractValueAndFiles(t){var e,s;let i=(null===(e=null==t?void 0:t.value)||void 0===e?void 0:e.files)?t.value.value:null==t?void 0:t.value;const o=null===(s=null==t?void 0:t.value)||void 0===s?void 0:s.files;return o&&Array.isArray(o)?{value:"string"==typeof i&&""!==i.trim()?i:"",fieldFiles:o}:function(t){return!!Array.isArray(t)&&t.every((t=>t instanceof File))}(i)?{value:i.length>0?i.map((t=>t.name)).join(","):"",fieldFiles:i}:i instanceof File?{value:i.name,fieldFiles:[i]}:Array.isArray(i)?{value:i.map((t=>"string"==typeof t?t:null==t?void 0:t.value)).join(",")}:{value:i}}processComments(t){var e;return null!==(e=null==t?void 0:t.map((t=>Object.assign({},t))))&&void 0!==e?e:[]}processMetadata(t){return t&&Object.keys(t).length>0?Object.assign({},t):void 0}}class _t{constructor(t,e){this.accessMode=t,this.tenantId=e}appendTenantQueryIfPublic(t){if("public"!==this.accessMode||!this.tenantId)return t;const e=t.includes("?")?"&":"?";return`${t}${e}tenantId=${encodeURIComponent(this.tenantId+"")}`}async addComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot add a comment without a submission ID.");let s=this.appendTenantQueryIfPublic(`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${this.accessMode}`);await h("POST",s,e,!0)}async updateComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot update a comment without a submission ID.");const{sectionKey:s,questionKey:i,commentId:o,value:n}=e,r=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${o}`;await h("PUT",r,{value:n,sectionKey:s,questionKey:i},!0)}async deleteComment(t,e){if(!(null==t?void 0:t.id))throw Error("Cannot delete a comment without a submission ID.");const{commentId:s}=e,i=`${b.productV1ApiUrl}/UdpFormSubmission/${t.id}/comments/${s}`;await h("DELETE",i,null,!0)}async fetchAndPopulateUdpFormSubmissionObj(t){if(!(null==t?void 0:t.id))return console.warn("Cannot fetch form submission without an ID."),t;if("public"===this.accessMode){const e=await this.getFormSubmissionByIdAndUser(t.id,t.unityUserId);return e?new Lt(Object.assign(Object.assign({},t),e)):t}const{id:e}=t,s=await this.getFormSubmissionById(e);return s?new Lt(Object.assign(Object.assign({},t),s)):t}async createNewLinkedFollowUpFormSubmission(t){if("public"===this.accessMode)throw Error("Follow-up form submissions are not supported for public forms.");return this.saveFormDataWithoutValues(t,a.InProgress)}async saveCurrentFormSubmissionState(t,e){return"public"===this.accessMode?e:this.saveSubmissionToDB(t,e,a.InProgress)}async finalizeFormSubmissionState(t,e){return this.saveSubmissionToDB(t,e,a.Submitted)}async saveFormDataWithoutValues(t,e){const s=t.processSubmissionIntoFormDataWithoutValues(e),{method:i,url:o}=this.getApiRequestInfo(t),n=this.appendTenantQueryIfPublic(o),r=await h(i,n,s,!0);return""===r?await this.fetchAndPopulateUdpFormSubmissionObj(t):new Lt(Object.assign(Object.assign({},t),r))}getApiRequestInfo(t){const e=`${b.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;return"public"===this.accessMode?{method:"POST",url:e}:t.id?{method:"PUT",url:e}:{method:"POST",url:e}}async saveSubmissionToDB(t,e,s){const i=e.processSubmissionIntoFormData(t,s),{method:o,url:n}=this.getApiRequestInfo(e),r=this.appendTenantQueryIfPublic(n),a=await h(o,r,i,!0);if(""===a)return await this.fetchAndPopulateUdpFormSubmissionObj(e);const u=new Lt(Object.assign(Object.assign({},e),a));return Object.assign(e,u),u}async getFormSubmissionById(t){var e;try{const s=new p(1,1).addFilter("id",t,f.EQUALS),i=await s.execute("UdpFormSubmission");return(null===(e=null==i?void 0:i.pageList)||void 0===e?void 0:e[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}async getFormSubmissionByIdAndUser(t,e){var s;try{const i=new p(1,1).addFilter("id",t,f.EQUALS).addFilter("unityUserId",e,f.EQUALS),o=await i.execute("UdpFormSubmission");return(null===(s=null==o?void 0:o.pageList)||void 0===s?void 0:s[0])||null}catch(t){return console.error("Error fetching form submission by ID:",t),null}}}class Nt{static create(t,e,s){return new _t(t?"public":"private",null!=s?s:void 0)}}class Mt{constructor(t,e=!1){this.tenantId=t,this.isPublicMode=e}buildDescribeUrl(t,e){const s=b.productV1ApiUrl,i=new URLSearchParams;if("number"==typeof e&&i.set("formVersion",e+""),this.isPublicMode){this.tenantId&&i.set("tenantId",this.tenantId+"");const e=""+i;return`${s}/UdpForm/${t}/describe/public${e?"?"+e:""}`}const o=""+i;return`${s}/UdpForm/${t}/describe${o?"?"+o:""}`}async getFormByFormIdAndFormVersion(t,e){const s=this.buildDescribeUrl(t,e),i=await h("GET",s,void 0,!1);return i.styleOverrides&&"string"==typeof i.styleOverrides&&(i.styleOverrides=JSON.parse(i.styleOverrides)),i}async getFormByFormIdLatestVersion(t){const e=this.buildDescribeUrl(t),s=await h("GET",e,void 0,!1);return s.styleOverrides&&"string"==typeof s.styleOverrides&&(s.styleOverrides=JSON.parse(s.styleOverrides)),s}}class Bt{constructor(t){t&&Object.assign(this,t)}}const Jt=(t,e)=>{const s=Object.keys(e),i=new Set,o=RegExp(`^${t}_(\\d+)`);return s.forEach((t=>{const e=t.match(o);e&&e[1]&&i.add(Number(e[1]))})),Array.from(i).sort(((t,e)=>t-e))},Qt=(t,e)=>{const s=`${"undefined"!=typeof window?window.location.pathname:"/page/"+u.FormRendererPrivatePageId}?udpf_submissionId=${t}${"undefined"!=typeof window?window.location.hash:""}`,i=e;if(i){if("function"==typeof i.replace)return void i.replace(s);if("function"==typeof i.push)return void i.push(s);if("function"==typeof i){try{i(s,{replace:!0})}catch(t){i(s)}return}}"undefined"!=typeof window&&window.history&&"function"==typeof window.history.replaceState?window.history.replaceState({},"",s):"undefined"!=typeof window&&(window.location.href=s)},zt=(t,e)=>{null==e||e(t,{variant:"success",anchorOrigin:{vertical:"top",horizontal:"center"}})},Wt=(t,e)=>{null==e||e(t,{variant:"error",anchorOrigin:{vertical:"top",horizontal:"center"}})},Gt=(t,e)=>{var s;const i=t&&"object"==typeof t?t:{};for(const t of e||[]){const e=(null==t?void 0:t.sectionPositionSuffix)>1?`${t.name}_${t.sectionPositionSuffix}`:null==t?void 0:t.name;if(e){i[e]&&"object"==typeof i[e]||(i[e]={});for(const o of t.formQuestions||[]){const t=null==o?void 0:o.name;if(!t)continue;const n=null===(s=i[e])||void 0===s?void 0:s[t];n&&"object"==typeof n?("comments"in n||(n.comments=[]),"metadata"in n||(n.metadata=null),"value"in n||(n.value=null)):i[e][t]={value:null,comments:[],metadata:null}}}}return i},Ht=t=>{if(!t)return{};if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t||"{}")}catch(t){return{}}},Xt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tenantId=null,this.isPublicMode=!1,this.showSubmitSuccessRedirectButton=!1,this.showSubmitSuccessSubmissionId=!1,this.autoSaveDelay=2e3,this.urlContext={},this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.isSubmitted=!1,this.dynamicSections=[],this.isUpdatingSections=!1,this.reRenderKey=0,this.hasUnsavedChanges=!1,this.sideSheetFollowUpFormsList=[],this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpSideSheetListPageNumber=1,this.formTemplateOverrides=null,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE=5,this.componentMap={history:"history",listItemData:"listItemData",handleLaunchFollowUpForm:"handleLaunchFollowUpForm"},this.clientUserInfo={id:null,displayName:null,email:null},this.followUpParentSectionKey="",this.followUpParentQuestionKey="",this.publicFeatures={allowDraftSave:!1,allowComments:!0,allowFollowUpForms:!1},this.handleLaunchFollowUpFormSideSheet=async t=>{try{if(this.isPublicMode)return;this.followUpParentSectionKey=t.detail.sectionKey,this.followUpParentQuestionKey=t.detail.questionKey,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey),this.isFollowUpFormsSideSheetOpen=!0}catch(t){console.error("Error loading follow-up forms:",t)}},this.duplicateRepeatableSection=t=>{if(!this.isSubmitted&&!this.isUpdatingSections){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{var e,s,i;const{dynamicSections:n,values:r,index:a}=t,u=n[a];if(!u)return{nextDynamicSections:n,nextValues:r};const d=u.name,c=Jt(d,r),m=c.length>0?Math.max(...c)+1:2,h=Object.assign(Object.assign({},o(u)),{formQuestions:(u.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${d}_${m}.${t.name}`,e})),isOriginalSection:!1,sectionPositionSuffix:m});let p=a;for(let t=a+1;t<n.length&&n[t].name===d;t++)p=t;const f=[...n.slice(0,p+1),h,...n.slice(p+1)],b=Object.assign({},r||{}),v=`${d}_${m}`,y=(t=>t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`)(u);for(const t of h.formQuestions||[]){b[v]||(b[v]={});let o="";if(t.fieldTypeId===l.Paragraph){const n=null===(s=null===(e=null==r?void 0:r[y])||void 0===e?void 0:e[t.name])||void 0===s?void 0:s.value,a=Ht(t.fieldProperties),u=null!==(i=null==a?void 0:a.paragraphText)&&void 0!==i?i:"";o=null!=n?n:u}b[v][t.name]={value:o,comments:[],metadata:{}}}return{nextDynamicSections:f,nextValues:b}})({dynamicSections:this.dynamicSections,values:this.udpFormSubmission.data.submissionResponseData||{},index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.deleteRepeatableSection=t=>{if(this.isSubmitted)return;const e=this.dynamicSections[t];if(e&&!e.isOriginalSection){this.isUpdatingSections=!0,this.isLoading=!0;try{const{nextDynamicSections:e,nextValues:s}=(t=>{const{dynamicSections:e,values:s,index:i}=t,n=e[i];if(!n||n.isOriginalSection)return{nextDynamicSections:e,nextValues:s};const r=n.name,a=n.sectionPositionSuffix,u=`${r}_${a}`,l=Object.assign({},s||{});delete l[u];const d=o(e);return d.splice(i,1),d.forEach((t=>{var e;if(t.name!==r||t.isOriginalSection||(null!==(e=t.sectionPositionSuffix)&&void 0!==e?e:0)<=(null!=a?a:0))return;const s=t.sectionPositionSuffix,i=`${r}_${s}`,n=s-1,u=`${r}_${n}`;t.sectionPositionSuffix=n,t.formQuestions=(t.formQuestions||[]).map((t=>{const e=o(t);return e.questionIdentifierKey=`${u}.${t.name}`,e})),l[i]&&(l[u]=l[i],delete l[i])})),{nextDynamicSections:d,nextValues:l}})({dynamicSections:this.dynamicSections,values:Object.assign({},this.udpFormSubmission.data.submissionResponseData||{}),index:t});this.dynamicSections=e,this.currentValues=Object.assign({},s),this.udpFormSubmission.data.submissionResponseData=Object.assign({},s),this.triggerFormRerender()}finally{this.isUpdatingSections=!1,this.isLoading=!1,this.hasUnsavedChanges=!0}}},this.performBackgroundSaveAndUpdateLocalSubmissionState=async t=>{const e=Gt(t,this.dynamicSections);return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(e)},this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal=async(t,e)=>{var s,i;const o=null!==(s=null==e?void 0:e.allowUrlReplace)&&void 0!==s?s:!this.isPublicMode,n=null!==(i=null==e?void 0:e.forceCreateDraftIfMissingId)&&void 0!==i&&i;if(!this.isPublicMode||this.publicFeatures.allowDraftSave||n){this.isSaving=!0;try{this.ensureOverridesPersistedToSubmissionData();const e=Gt(t,this.dynamicSections);await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),o&&!new URLSearchParams(window.location.search).has("udpf_submissionId")&&Qt(this.udpFormSubmission.id,this.history)}catch(t){}finally{this.isSaving=!1,this.hasUnsavedChanges=!1}}},this.refreshSubmissionAndSyncState=async()=>{var t,e;if(!(null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id))return;const s=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);this.udpFormSubmission=s,this.currentValues=Object.assign({},(null===(e=s.data)||void 0===e?void 0:e.submissionResponseData)||{}),this.isSubmitted=s.status===a.Submitted,this.triggerFormRerender()},this.handleManualSave=async t=>{if(!this.isPublicMode||this.publicFeatures.allowDraftSave){this.isSaving=!0;try{const e=Gt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.saveCurrentFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),new URLSearchParams(window.location.search).has("udpf_submissionId")||Qt(this.udpFormSubmission.id,this.history),zt("Form saved successfully.",this.enqueueSnackbar)}catch(t){Wt("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.handleRedirect=()=>{const t=this.resolveRedirectUrl(),e=this.history;if(e){if("function"==typeof e.push)return e.push(t);if("function"==typeof e)return e(t);if("function"==typeof e.replace)return e.replace(t)}"undefined"!=typeof window&&window.location.assign(t)},this.triggerFormRerender=()=>{const t=window.scrollY;this.reRenderKey+=1,requestAnimationFrame((()=>{window.scrollTo({top:t,behavior:"auto"})}))},this.handleLaunchFollowUpForm=async(t,e,s,i,o,n,r)=>{const a=await this.formHandler.getFormByFormIdAndFormVersion(t,e),l={submissionResponseData:c(a),submissionMetadata:{ParentSubmission:{submissionId:s,formId:i,formVersion:o}}},d=new Lt({formId:t,formVersion:e,unityUserId:this.clientUserInfo.id,data:l}),m=Nt.create(!1,this.clientUserInfo.id),h=await m.createNewLinkedFollowUpFormSubmission(d);this.udpFormSubmission.data.submissionResponseData[n][r].metadata=Object.assign(Object.assign({},this.udpFormSubmission.data.submissionResponseData[n][r].metadata),{followUpFormSubmissionId:h.id}),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),window.open(`/page/${u.FormRendererPrivatePageId}?udpf_submissionId=${h.id}`,"_blank"),this.handleSideSheetClose(),this.triggerFormRerender()},this.handleSideSheetClose=()=>{this.sideSheetFollowUpFormsList=[],this.followUpSideSheetListPageNumber=1,this.followUpSideSheetTotalItems=0,this.isFollowUpFormsSideSheetOpen=!1,this.followUpParentSectionKey="",this.followUpParentQuestionKey=""}}initClientUserInfo(){var t;if(this.isPublicMode)this.clientUserInfo.id="00000000-0000-0000-0000-000000000001",this.clientUserInfo.displayName="Anonymous",this.clientUserInfo.email="Anonymous";else{const e=null===(t=this.getUserCallback)||void 0===t?void 0:t.call(this);e&&(this.clientUserInfo.id=e.id||null,this.clientUserInfo.displayName=e.name||null,this.clientUserInfo.email=e.email||null)}}initHandlersAndLocalSubmission(){this.formSubmissionHandler=Nt.create(this.isPublicMode,this.clientUserInfo.id,this.tenantId),this.udpFormSubmission=new Lt({id:this.submissionId,formId:this.formId,formVersion:this.formVersion,unityUserId:this.clientUserInfo.id,generic1:this.urlContext.generic1,generic2:this.urlContext.generic2,generic3:this.urlContext.generic3})}normalizeOverrideValue(t){if(null==t)return null;const e=(t+"").trim();return e.length>0?e:null}initFormTemplateOverridesFromUrlContextIfEligible(){var t,e,s,i;const o=this.normalizeOverrideValue(null===(t=this.urlContext)||void 0===t?void 0:t.override_formname),n=this.normalizeOverrideValue(null===(e=this.urlContext)||void 0===e?void 0:e.override_formdescription);(o||n)&&((null===(s=this.udpFormSubmission)||void 0===s?void 0:s.id)&&(null===(i=this.udpFormSubmission)||void 0===i?void 0:i.status)!==a.Created||(this.formTemplateOverrides={formName:o,formDescription:n}))}syncOverridesFromLoadedSubmissionIfPresent(){var t,e,s,i;const o=null===(e=null===(t=this.udpFormSubmission)||void 0===t?void 0:t.data)||void 0===e?void 0:e.formTemplateOverrides,n=this.normalizeOverrideValue(null!==(s=null==o?void 0:o.formName)&&void 0!==s?s:null==o?void 0:o.FormName),r=this.normalizeOverrideValue(null!==(i=null==o?void 0:o.formDescription)&&void 0!==i?i:null==o?void 0:o.FormDescription);(n||r)&&(this.formTemplateOverrides={formName:n,formDescription:r})}ensureOverridesPersistedToSubmissionData(){if(!this.formTemplateOverrides)return;if(!this.udpFormSubmission)return;this.udpFormSubmission.data&&"object"==typeof this.udpFormSubmission.data||(this.udpFormSubmission.data={});const{formName:t,formDescription:e}=this.formTemplateOverrides;(t||e)&&(this.udpFormSubmission.data.formTemplateOverrides={formName:null!=t?t:null,formDescription:null!=e?e:null})}async loadExistingSubmissionIfNeeded(){this.submissionId&&(this.udpFormSubmission=await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission),this.syncOverridesFromLoadedSubmissionIfPresent())}resolveEffectiveFormIdentity(){let t,e;return this.submissionId?(t=this.udpFormSubmission.formId,e=this.udpFormSubmission.formVersion):(t=this.formId,e=this.formVersion),{formId:t,formVersion:e}}async loadFormAndInitValues(t,e){var s,i,o;this.formHandler=new Mt(this.tenantId,this.isPublicMode);const n="number"==typeof e?await this.formHandler.getFormByFormIdAndFormVersion(t,e):await this.formHandler.getFormByFormIdLatestVersion(t);if(this.udpForm=new Bt(n),"number"!=typeof e){const t=null!==(i=null!==(s=null==n?void 0:n.version)&&void 0!==s?s:null==n?void 0:n.formVersion)&&void 0!==i?i:null===(o=this.udpForm)||void 0===o?void 0:o.version;null!=t&&""!==t&&(this.udpFormSubmission.formVersion=Number(t))}this.currentValues=c(this.udpForm),this.udpFormSubmission.data.submissionResponseData&&(this.currentValues=Object.assign({},this.udpFormSubmission.data.submissionResponseData),this.udpFormSubmission.status===a.Submitted&&(this.isSubmitted=!0))}initDynamicSectionsAndApplyUrlSeed(){const t=["seed_","udpf_seed_"],e=this.urlContext&&"object"==typeof this.urlContext&&Object.keys(this.urlContext).some((e=>{const s=(e+"").toLowerCase();return t.some((t=>s.startsWith(t)))}));if(this.udpFormSubmission.id&&this.udpFormSubmission.status!==a.Created||!e)this.dynamicSections=((t,e)=>{var s;const i=[],o=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const n of o){n.sectionProperties=JSON.parse(n.sectionProperties||{});const o=Jt(n.name,e);if(n.isOriginalSection=!0,n.sectionPositionSuffix=1,i.push(Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(s=n.sectionProperties)||void 0===s?void 0:s.isRepeatable)&&o.length>0){const e=Math.max(...o);for(let s=2;s<=e;s++){const e=Object.assign(Object.assign({},structuredClone(n)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===n.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${n.name}_${s}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:s});i.push(e)}}}return i})(this.udpForm,this.currentValues);else{const e={};Object.keys(this.urlContext).forEach((s=>{const i=s+"",o=i.toLowerCase(),n=t.find((t=>o.startsWith(t)));n&&(e[i.substring(n.length)]=this.urlContext[s])})),this.dynamicSections=((t,e,s)=>{var i,o;const n=(t=>{const e={};return Object.keys(t&&"object"==typeof t?t:{}).forEach((t=>{var s;const i=t.match(/^([^._?&#]+)_(\d+)\./);if(!i)return;const o=i[1],n=Number(i[2]);!Number.isFinite(n)||n<2||n>(null!==(s=e[o])&&void 0!==s?s:1)&&(e[o]=n)})),e})(s),r=[],a=structuredClone(t.udpFormUdpFormSection).sort(((t,e)=>t.order-e.order));for(const s of a){s.sectionProperties=JSON.parse(s.sectionProperties||{});const a=Jt(s.name,e),u=a.length>0?Math.max(...a):1,l=null!==(i=null==n?void 0:n[s.name])&&void 0!==i?i:1,d=Math.max(u,l);if(s.isOriginalSection=!0,s.sectionPositionSuffix=1,r.push(Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}.${t.name}`,isShowCommentInput:!0})))})),(null===(o=s.sectionProperties)||void 0===o?void 0:o.isRepeatable)&&d>=2)for(let e=2;e<=d;e++){const i=Object.assign(Object.assign({},structuredClone(s)),{formQuestions:structuredClone(t.formQuestions).filter((t=>t.formSectionId===s.id)).sort(((t,e)=>t.questionOrder-e.questionOrder)).map((t=>Object.assign(Object.assign({},t),{questionIdentifierKey:`${s.name}_${e}.${t.name}`,isShowCommentInput:!0}))),isOriginalSection:!1,sectionPositionSuffix:e});r.push(i)}}return r})(this.udpForm,this.currentValues,e);const s=((t,e)=>{if(!Array.isArray(t))return;const s=e&&"object"==typeof e?e:{},i={};Object.keys(s).forEach((t=>{i[(t+"").toLowerCase()]=s[t]}));const o={};t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;(t.formQuestions||[]).forEach((t=>{if(!t)return;const s=[t.processedSubmissionName,t.questionIdentifierKey,t.name].filter(Boolean);let n;for(const t of s){const e=(t+"").toLowerCase();if(Object.prototype.hasOwnProperty.call(i,e)){n=i[e];break}}null!=n&&(o[e]||(o[e]={}),o[e][t.name]={value:n,comments:[]})}))}));const n={};return Object.entries(o).forEach((([t,e])=>{n[t]||(n[t]={}),Object.entries(e).forEach((([e,s])=>{const i=n[t][e];(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim())&&(n[t][e]=s)}))})),t.forEach((t=>{const e=t.isOriginalSection?t.name:`${t.name}_${t.sectionPositionSuffix}`;n[e]||(n[e]={}),(t.formQuestions||[]).forEach((t=>{var s;if(t&&t.fieldTypeId===l.Paragraph){const i=n[e][t.name];if(null==i||null==i.value||"string"==typeof i.value&&""===i.value.trim()){let i=null==t?void 0:t.fieldProperties;if("string"==typeof i)try{i=JSON.parse(i||"{}")}catch(t){i={}}n[e][t.name]={value:null!==(s=null==i?void 0:i.paragraphText)&&void 0!==s?s:"",comments:[]}}}}))})),n})(this.dynamicSections,e);s&&(this.currentValues=s,this.udpFormSubmission.data.submissionResponseData=Object.assign({},s))}}initDebouncedFns(){this.debouncedManualSave=n((async t=>{await this.handleManualSave(t)}),2e3,{leading:!0,trailing:!1})}componentDidLoad(){this.el&&(this.el.addEventListener("questionCommentAction",(async t=>this.handleQuestionCommentLiveCRUD(t))),this.el.addEventListener("launchFollowUpFormSideSheet",(t=>this.handleLaunchFollowUpFormSideSheet(t))),this.el.addEventListener("formDirtyChange",(t=>{this.hasUnsavedChanges=this.hasUnsavedChanges||t.detail})),this.el.addEventListener("udpFormsSubmitInvalid",(()=>{Wt("Please fill out all required fields.",this.enqueueSnackbar)})))}async componentWillLoad(){this.isLoading=!0;try{this.initClientUserInfo(),this.initHandlersAndLocalSubmission(),await this.loadExistingSubmissionIfNeeded(),this.initFormTemplateOverridesFromUrlContextIfEligible();const{formId:t,formVersion:e}=this.resolveEffectiveFormIdentity();await this.loadFormAndInitValues(t,e),this.initDynamicSectionsAndApplyUrlSeed(),this.initDebouncedFns()}catch(t){console.error("Error failed to load form in the form renderer:",t)}finally{this.isLoading=!1}}async handleSubmit(t){this.isLoading=!0;try{const e=Gt(t,this.dynamicSections);this.ensureOverridesPersistedToSubmissionData(),await this.formSubmissionHandler.finalizeFormSubmissionState(e,this.udpFormSubmission),await this.refreshSubmissionAndSyncState(),this.submitSuccessful=!0}catch(t){throw Wt("There was an error submitting this form",this.enqueueSnackbar),t}finally{this.isLoading=!1}}async handleQuestionCommentLiveCRUD(t){var e,s,i,o,n,r;if(!this.isPublicMode||this.publicFeatures.allowComments)try{const{type:u,questionIdentifierKey:l,commentId:d}=t.detail,c=function(t){var e,s,i,o,n;const{actionType:r,questionIdentifierKey:a,commentId:u,currentSubmissionResponseData:l,clientUserInfo:d}=t,c=(a||"").split("."),m=c[0]||"",h=c[1]||"";if(!m||!h)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:l||{},didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const p=l||{},f=p[m]||{},b=f[h],y=Object.assign(Object.assign({},p),{[m]:Object.assign({},f)});b?(y[m][h]=Object.assign({},b),y[m][h].comments=null!==(e=y[m][h].comments)&&void 0!==e?e:[],y[m][h].draftComments=null!==(s=y[m][h].draftComments)&&void 0!==s?s:[],y[m][h].metadata=null!==(i=y[m][h].metadata)&&void 0!==i?i:{}):y[m][h]={value:"",comments:[],draftComments:[],metadata:{}};const j=y[m][h].draftComments;j&&!Array.isArray(j)?y[m][h].draftComments=[j]:j||(y[m][h].draftComments=[]);const w=Array.isArray(y[m][h].comments)?[...y[m][h].comments]:[],S=Array.isArray(y[m][h].draftComments)?[...y[m][h].draftComments]:[];let g=!1;switch(r){case"add":{const t={value:"",commentId:v(),isTempComment:!0,timestamp:null};y[m][h].draftComments=[t,...S],g=!0;break}case"save":{const t=S.findIndex((t=>t.commentId===u));if(-1===t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=S[t],s=e.timestamp||(new Date).toISOString(),i=Object.assign(Object.assign({},e),{timestamp:s,editedTimestamp:(new Date).toISOString(),userId:null==d?void 0:d.id,userDisplayName:null==d?void 0:d.displayName,isDraftComment:!1}),o=w.findIndex((t=>t.commentId===u));if(-1!==o){const t=[...w];t[o]=Object.assign({},i),y[m][h].comments=t}else y[m][h].comments=[...w,i];y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0;break}case"edit":{const t=w.find((t=>t.commentId===u));if(!t)return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:!1,shouldPersist:!1,persistIntent:"none",commentId:u};const e=Object.assign(Object.assign({},t),{isDraftComment:!0,timestamp:null});y[m][h].draftComments=[e,...S],y[m][h].comments=w,g=!0;break}case"delete":y[m][h].comments=w.map((t=>t.commentId===u?Object.assign(Object.assign({},t),{isDeleted:!0,value:"",editedTimestamp:(new Date).toISOString()}):t)),g=!0;break;case"editClose":y[m][h].draftComments=S.filter((t=>t.commentId!==u)),g=!0}const E="save"===r||"delete"===r;let O;if("save"===r){const t=((null===(n=null===(o=null==y?void 0:y[m])||void 0===o?void 0:o[h])||void 0===n?void 0:n.comments)||[]).find((t=>t.commentId===u));O=null==t?void 0:t.value}return{sectionKey:m,questionKey:h,nextSubmissionResponseData:y,didMutate:g,shouldPersist:E,persistIntent:"none",commentId:u,valueToPersist:O}}({actionType:u,questionIdentifierKey:l,commentId:d,currentSubmissionResponseData:this.udpFormSubmission.data.submissionResponseData||{},clientUserInfo:this.clientUserInfo}),m=c.nextSubmissionResponseData;if(this.udpFormSubmission.data.submissionResponseData=Object.assign({},m),"edit"!==u&&"editClose"!==u&&"add"!==u||(this.currentValues=Object.assign({},m)),c.shouldPersist){const t=(null===(e=this.udpFormSubmission)||void 0===e?void 0:e.status)===a.Submitted,l=(null===(s=this.udpFormSubmission)||void 0===s?void 0:s.unityUserId)===this.clientUserInfo.id,d=((null===(n=null===(o=null===(i=this.currentValues||{})||void 0===i?void 0:i[c.sectionKey])||void 0===o?void 0:o[c.questionKey])||void 0===n?void 0:n.comments)||[]).find((t=>(null==t?void 0:t.commentId)===c.commentId&&!(null==t?void 0:t.isDeleted)));if(t||!l)if(null===(r=this.udpFormSubmission)||void 0===r?void 0:r.id){if("save"===u){const t=c.valueToPersist;if(t)try{d?await this.formSubmissionHandler.updateComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}):await this.formSubmissionHandler.addComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,value:t,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),zt(d?"Comment updated.":"Comment added.",this.enqueueSnackbar)}catch(t){throw Wt(d?"Failed to update comment.":"Failed to add comment.",this.enqueueSnackbar),t}}else if("delete"===u)try{await this.formSubmissionHandler.deleteComment(this.udpFormSubmission,{sectionKey:c.sectionKey,questionKey:c.questionKey,commentId:c.commentId}),await this.refreshSubmissionAndSyncState(),zt("Comment deleted.",this.enqueueSnackbar)}catch(t){throw Wt("Failed to delete comment.",this.enqueueSnackbar),t}}else this.currentValues=Object.assign({},m);else this.isPublicMode?this.currentValues=Object.assign({},m):await this.handleManualSave(m)}else this.currentValues=Object.assign({},m)}catch(t){console.error("Error handling live comment CRUD:",t)}finally{this.triggerFormRerender()}}resolveRedirectUrl(){const t=this.urlContext||{};let e=t.redirecturl;if(null==e){const s=Object.keys(t).find((t=>"redirecturl"===(t+"").toLowerCase()));s&&(e=t[s])}return this.normalizeOverrideValue(e)||"/"}async loadFollowUpForms(t,e){var s;this.isLoading=!0;try{const i=(await r(this.followUpSideSheetListPageNumber,this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,[{searchField:"type",searchOperator:"=",searchValue:d.FollowUp}],{sortDirection:"DESC",sortColumn:"lastModifiedOn"})).data;if(!i||!Array.isArray(i.pageList))throw Error("Malformed form versions data.");this.sideSheetFollowUpFormsList=this.formatFollowUpFormsList(i.pageList,t,e),this.followUpSideSheetTotalItems=null!==(s=i.total)&&void 0!==s?s:0}catch(t){console.error("Failed to follow up form.",t)}finally{this.isLoading=!1}}formatFollowUpFormsList(t,e,s){return t.map((t=>({listItemData:t,history:this.history,handleLaunchFollowUpForm:async()=>await this.handleLaunchFollowUpForm(t.id,t.version,this.udpFormSubmission.id,this.udpFormSubmission.formId,this.udpFormSubmission.formVersion,e,s)})))}async handleSideSheetPageChange(t){this.followUpSideSheetListPageNumber=t,await this.loadFollowUpForms(this.followUpParentSectionKey,this.followUpParentQuestionKey)}renderFollowUpSideSheet(){return this.isPublicMode?null:s("udp-side-sheet",{title:"Link a Follow Up Form",open:this.isFollowUpFormsSideSheetOpen,onUdpSideSheetClose:()=>this.handleSideSheetClose(),position:"right",width:"md"},this.isLoading&&this.isFollowUpFormsSideSheetOpen&&s("udp-linear-loader",null),s("udp-list-renderer",{itemComponent:"udp-forms-follow-up-list-card",data:this.sideSheetFollowUpFormsList,pagination:!0,isServerSide:!0,isLoading:this.isLoading,itemsPerPage:this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE,currentPage:this.followUpSideSheetListPageNumber,totalItems:this.followUpSideSheetTotalItems,onPageChange:t=>this.handleSideSheetPageChange(t.detail),componentDataMap:this.componentMap,spacing:"md"}))}isShowManualSaveIcon(){return!this.isPublicMode&&(!!this.clientUserInfo.id&&this.hasUnsavedChanges)}get isReadOnlyMode(){return this.isSubmitted||this.udpFormSubmission.unityUserId!==this.clientUserInfo.id}render(){var t;return s("div",{key:"5a667358f816ddaadc9aa8e74cbb2feaa7ed1c8c",class:"forms-renderer-container",style:this.isLoading?{minHeight:"100vh"}:{}},this.renderFollowUpSideSheet(),s("udp-forms-ui",{udpForm:this.udpForm,formTemplateOverrides:this.formTemplateOverrides,currentValues:this.currentValues,udpFormSubmission:this.udpFormSubmission,submitSuccessful:this.submitSuccessful,isSaving:this.isSaving,readonly:this.isReadOnlyMode,handleSubmit:this.handleSubmit.bind(this),handleSave:t=>Promise.resolve(this.debouncedManualSave(t)),handleChange:this.handleFormChange,handleAction:this.triggerAction,handleFinish:this.handleFinish,clientUserInfo:this.clientUserInfo,isSubmitted:this.isSubmitted,dynamicSections:this.dynamicSections,duplicateRepeatableSection:this.duplicateRepeatableSection,deleteRepeatableSection:this.deleteRepeatableSection,key:"form-rerender-key-"+this.reRenderKey,isShowManualSaveIcon:this.isShowManualSaveIcon(),isLoading:this.isLoading,performBackgroundSaveAndUpdateLocalSubmissionState:this.performBackgroundSaveAndUpdateLocalSubmissionState,submissionId:null===(t=this.udpFormSubmission)||void 0===t?void 0:t.id,handleRedirect:this.handleRedirect,showSubmitSuccessRedirectButton:this.showSubmitSuccessRedirectButton,showSubmitSuccessSubmissionId:this.showSubmitSuccessSubmissionId}))}get el(){return this}},[1,"udp-forms-renderer",{formId:[1,"form-id"],formVersion:[2,"form-version"],submissionId:[1,"submission-id"],tenantId:[1,"tenant-id"],triggerAction:[16],isPublicMode:[4,"is-public-mode"],showSubmitSuccessRedirectButton:[4,"show-submit-success-redirect-button"],showSubmitSuccessSubmissionId:[4,"show-submit-success-submission-id"],callbackUrl:[1,"callback-url"],getUserCallback:[16],enqueueSnackbar:[16],closeSnackbar:[16],autoSaveDelay:[2,"auto-save-delay"],history:[8],urlContext:[16],currentValues:[32],submitSuccessful:[32],isLoading:[32],isSaving:[32],isSubmitted:[32],dynamicSections:[32],isUpdatingSections:[32],reRenderKey:[32],hasUnsavedChanges:[32],sideSheetFollowUpFormsList:[32],followUpSideSheetTotalItems:[32],isFollowUpFormsSideSheetOpen:[32],followUpSideSheetListPageNumber:[32],formTemplateOverrides:[32]}]),Yt=Xt,Zt=function(){"undefined"!=typeof customElements&&["udp-forms-renderer","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-accordion","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-range-selector","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","udp-empty-state","udp-export-sheet","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-checkbox","udp-fluent-dialog","udp-fluent-drawer","udp-fluent-dropdown","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-number-input","udp-fluent-switch","udp-fluent-text-input","udp-forms-ui","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-list-renderer","udp-menu-item","udp-message-bar","udp-pagination","udp-pop-over","udp-popover","udp-primary-action-header","udp-progress-bar","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-renderer":customElements.get(i(t))||customElements.define(i(t),Xt);break;case"address-search":customElements.get(i(t))||y();break;case"ag-grid-base":customElements.get(i(t))||j();break;case"base-map":customElements.get(i(t))||w();break;case"client-side-grid":customElements.get(i(t))||S();break;case"custom-button":customElements.get(i(t))||g();break;case"file-upload":customElements.get(i(t))||E();break;case"form-metadata-display":customElements.get(i(t))||O();break;case"ghost-render":customElements.get(i(t))||k();break;case"grid-header":customElements.get(i(t))||I();break;case"hint-panel":customElements.get(i(t))||F();break;case"image-upload":customElements.get(i(t))||D();break;case"location-input":customElements.get(i(t))||$();break;case"numeric-field":customElements.get(i(t))||x();break;case"selectable-list":customElements.get(i(t))||C();break;case"signature-input":customElements.get(i(t))||U();break;case"stencil-field":customElements.get(i(t))||P();break;case"stencil-form":customElements.get(i(t))||q();break;case"stencil-icon-button":customElements.get(i(t))||A();break;case"table-input":customElements.get(i(t))||K();break;case"tally-display":customElements.get(i(t))||R();break;case"text-area":customElements.get(i(t))||T();break;case"text-field":customElements.get(i(t))||V();break;case"udp-accordion":customElements.get(i(t))||L();break;case"udp-adornment":customElements.get(i(t))||_();break;case"udp-ambient-card":customElements.get(i(t))||N();break;case"udp-ambient-tool-tip":customElements.get(i(t))||M();break;case"udp-avatar":customElements.get(i(t))||B();break;case"udp-badge":customElements.get(i(t))||J();break;case"udp-button":customElements.get(i(t))||Q();break;case"udp-container":customElements.get(i(t))||z();break;case"udp-date-range-selector":customElements.get(i(t))||W();break;case"udp-date-selector":customElements.get(i(t))||G();break;case"udp-datetime-selector":customElements.get(i(t))||H();break;case"udp-dialog":customElements.get(i(t))||X();break;case"udp-divider":customElements.get(i(t))||Y();break;case"udp-empty-state":customElements.get(i(t))||Z();break;case"udp-export-sheet":customElements.get(i(t))||tt();break;case"udp-flexbox":customElements.get(i(t))||et();break;case"udp-fluent-avatar":customElements.get(i(t))||st();break;case"udp-fluent-badge":customElements.get(i(t))||it();break;case"udp-fluent-button":customElements.get(i(t))||ot();break;case"udp-fluent-card":customElements.get(i(t))||nt();break;case"udp-fluent-checkbox":customElements.get(i(t))||rt();break;case"udp-fluent-dialog":customElements.get(i(t))||at();break;case"udp-fluent-drawer":customElements.get(i(t))||ut();break;case"udp-fluent-dropdown":customElements.get(i(t))||lt();break;case"udp-fluent-icon":customElements.get(i(t))||dt();break;case"udp-fluent-icon-button":customElements.get(i(t))||ct();break;case"udp-fluent-menu":customElements.get(i(t))||mt();break;case"udp-fluent-number-input":customElements.get(i(t))||ht();break;case"udp-fluent-switch":customElements.get(i(t))||pt();break;case"udp-fluent-text-input":customElements.get(i(t))||ft();break;case"udp-forms-ui":customElements.get(i(t))||bt();break;case"udp-icon":customElements.get(i(t))||vt();break;case"udp-icon-button":customElements.get(i(t))||yt();break;case"udp-linear-loader":customElements.get(i(t))||jt();break;case"udp-list-item":customElements.get(i(t))||wt();break;case"udp-list-renderer":customElements.get(i(t))||St();break;case"udp-menu-item":customElements.get(i(t))||gt();break;case"udp-message-bar":customElements.get(i(t))||Et();break;case"udp-pagination":customElements.get(i(t))||Ot();break;case"udp-pop-over":customElements.get(i(t))||kt();break;case"udp-popover":customElements.get(i(t))||It();break;case"udp-primary-action-header":customElements.get(i(t))||Ft();break;case"udp-progress-bar":customElements.get(i(t))||Dt();break;case"udp-question":customElements.get(i(t))||$t();break;case"udp-question-comments":customElements.get(i(t))||xt();break;case"udp-save-draft-button":customElements.get(i(t))||Ct();break;case"udp-search-input":customElements.get(i(t))||Ut();break;case"udp-selector":customElements.get(i(t))||Pt();break;case"udp-side-sheet":customElements.get(i(t))||qt();break;case"udp-spinner":customElements.get(i(t))||At();break;case"udp-text":customElements.get(i(t))||Kt();break;case"udp-time-selector":customElements.get(i(t))||Rt();break;case"udp-tooltip":customElements.get(i(t))||Tt();break;case"unity-typography":customElements.get(i(t))||Vt()}}))};export{Yt as UdpFormsRenderer,Zt as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,t as o}from"./index2.js";import{c as a,U as r}from"./enums.js";import{f as n,o as d}from"./utils.js";import{g as l}from"./iconUtils.js";import{d as u}from"./address-search2.js";import{d as m}from"./ag-grid-base2.js";import{d as c}from"./base-map2.js";import{d as p}from"./client-side-grid2.js";import{d as b}from"./custom-button2.js";import{d as h}from"./file-upload2.js";import{d as f}from"./form-metadata-display2.js";import{d as v}from"./ghost-render2.js";import{d as g}from"./grid-header2.js";import{d as y}from"./hint-panel2.js";import{d as k}from"./image-upload2.js";import{d as x}from"./location-input2.js";import{d as j}from"./numeric-field2.js";import{d as E}from"./selectable-list2.js";import{d as w}from"./signature-input2.js";import{d as S}from"./stencil-field2.js";import{d as F}from"./stencil-form2.js";import{d as C}from"./stencil-icon-button2.js";import{d as T}from"./table-input2.js";import{d as I}from"./tally.js";import{d as D}from"./text-area2.js";import{d as q}from"./text-field2.js";import{d as O}from"./udp-adornment2.js";import{d as U}from"./udp-ambient-card2.js";import{d as $}from"./udp-ambient-tool-tip2.js";import{d as R}from"./udp-avatar2.js";import{d as M}from"./udp-badge2.js";import{d as z}from"./udp-button2.js";import{d as A}from"./udp-container2.js";import{d as L}from"./udp-date-selector2.js";import{d as V}from"./udp-datetime-selector2.js";import{d as N}from"./udp-dialog2.js";import{d as B}from"./udp-divider2.js";import{d as _}from"./udp-empty-state2.js";import{d as W}from"./udp-export-sheet2.js";import{d as G}from"./udp-flexbox2.js";import{d as H}from"./udp-fluent-avatar2.js";import{d as J}from"./udp-fluent-badge2.js";import{d as K}from"./udp-fluent-button2.js";import{d as P}from"./udp-fluent-card2.js";import{d as Q}from"./udp-fluent-checkbox2.js";import{d as X}from"./udp-fluent-dialog2.js";import{d as Y}from"./udp-fluent-drawer2.js";import{d as Z}from"./udp-fluent-icon2.js";import{d as tt}from"./udp-fluent-icon-button2.js";import{d as et}from"./udp-fluent-menu2.js";import{d as st}from"./udp-fluent-switch2.js";import{d as it}from"./udp-fluent-text-input2.js";import{d as ot}from"./udp-icon2.js";import{d as at}from"./udp-icon-button2.js";import{d as rt}from"./udp-linear-loader2.js";import{d as nt}from"./list-item.js";import{d as dt}from"./udp-menu-item2.js";import{d as lt}from"./udp-message-bar2.js";import{d as ut}from"./udp-pop-over2.js";import{d as mt}from"./udp-primary-action-header2.js";import{d as ct}from"./udp-progress-bar2.js";import{d as pt}from"./udp-question2.js";import{d as bt}from"./udp-question-comments2.js";import{d as ht}from"./udp-save-draft-button2.js";import{d as ft}from"./udp-search-input2.js";import{d as vt}from"./udp-selector2.js";import{d as gt}from"./udp-side-sheet2.js";import{d as yt}from"./udp-spinner2.js";import{d as kt}from"./udp-text2.js";import{d as xt}from"./udp-time-selector2.js";import{d as jt}from"./udp-tooltip2.js";import{d as Et}from"./unity-typography2.js";const wt=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.formDirtyChange=s(this,"formDirtyChange",7),this.formTemplateOverrides=null,this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.saveErrorMessage=null,this.showAutoSaveStatus=!1,this.disabled=!1,this.readonly=!1,this.clientUserInfo={id:null,displayName:null,email:null},this.isSubmitted=!1,this.isShowManualSaveIcon=!1,this.showSubmitSuccessRedirectButton=!1,this.showSubmitSuccessSubmissionId=!1,this.showSavedMessage=!1,this.isDialogOpen=!1,this.dialogMessage="Are you sure you want to delete this section? This section contains links to follow-up forms. Deleting it will remove those links.",this.titleId="udp-forms-title",this.descriptionId="udp-forms-description",this.handleFormInvalid=()=>{var t;null===(t=this.el)||void 0===t||t.dispatchEvent(new CustomEvent("udpFormsSubmitInvalid",{bubbles:!0,composed:!0}))}}componentDidLoad(){var t,e;this.overrideStyles();const s=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("stencil-form");null==s||s.addEventListener("stencilFormInvalidEvent",this.handleFormInvalid)}componentDidUpdate(){this.overrideStyles()}disconnectedCallback(){var t,e;this.savedMessageTimeoutId&&clearTimeout(this.savedMessageTimeoutId);const s=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("stencil-form");null==s||s.removeEventListener("stencilFormInvalidEvent",this.handleFormInvalid)}watchIsSaving(t,e){!0!==e||!1!==t||this.saveErrorMessage||(this.showSavedMessage=!0,this.savedMessageTimeoutId&&clearTimeout(this.savedMessageTimeoutId),this.savedMessageTimeoutId=setTimeout((()=>{this.showSavedMessage=!1}),5e3))}overrideStyles(){var t;const e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot;null==e||e.querySelectorAll("unity-typography").forEach((t=>{var e,s,i,o;const a=t.id===this.titleId?null===(s=null===(e=this.udpForm)||void 0===e?void 0:e.styleOverrides)||void 0===s?void 0:s.titleText:t.id===this.descriptionId?null===(o=null===(i=this.udpForm)||void 0===i?void 0:i.styleOverrides)||void 0===o?void 0:o.paragraphText:{};(null==a?void 0:a.fontFamily)&&n[a.fontFamily]&&d(t,n[a.fontFamily]),(null==a?void 0:a.variant)&&t.setAttribute("variant",a.variant)}))}isSectionContainsFollowUpFormLink(t){var e;const s=this.udpFormSubmission.data.submissionResponseData[t];for(const[t,i]of Object.entries(s))if((null==i?void 0:i.metadata)&&(null===(e=i.metadata)||void 0===e?void 0:e.followUpFormSubmissionId))return!0;return!1}getDisplayFormName(){var t,e,s;const i=null===(t=this.formTemplateOverrides)||void 0===t?void 0:t.formName;return"string"==typeof i&&""!==i.trim()?i:null!==(s=null===(e=this.udpForm)||void 0===e?void 0:e.name)&&void 0!==s?s:""}getDisplayFormDescription(){var t,e,s;const i=null===(t=this.formTemplateOverrides)||void 0===t?void 0:t.formDescription;return"string"==typeof i&&""!==i.trim()?i:null!==(s=null===(e=this.udpForm)||void 0===e?void 0:e.description)&&void 0!==s?s:""}render(){var t,e,s,o,n,d,u,m,c,p,b,h,f,v,g,y;const k=!!this.udpForm&&(this.isLoading||this.isSaving);if(this.isLoading&&!this.udpForm)return i("udp-linear-loader",null);if(!this.udpForm)return i("div",{class:"error-banner"},i("unity-typography",{variant:"body2"},"Error Loading Form"));let x=1;const j=new Set;this.udpForm.formQuestions.forEach((t=>j.add(t.section)));const E=[r.Hidden,r.Paragraph],w={};return(null===(s=null===(e=null===(t=this.udpForm)||void 0===t?void 0:t.styleOverrides)||void 0===e?void 0:e.background)||void 0===s?void 0:s.backgroundImage)||(null===(d=null===(n=null===(o=this.udpForm)||void 0===o?void 0:o.styleOverrides)||void 0===n?void 0:n.background)||void 0===d?void 0:d.backgroundColor)&&(w.backgroundColor=null===(c=null===(m=null===(u=this.udpForm)||void 0===u?void 0:u.styleOverrides)||void 0===m?void 0:m.background)||void 0===c?void 0:c.backgroundColor),i("div",{class:"background",style:w},i("udp-container",{maxWidth:"md"},i("div",{class:"form-container"},this.submitSuccessful?i("div",{class:"center-div"},i("udp-ambient-card",null,i("div",{class:"submit-card"},i("div",{class:"submit-card-content"},i("unity-typography",null,"Thank you for your submission."),this.showSubmitSuccessRedirectButton&&i("div",{class:"finish-button"},i("custom-button",{onClick:()=>{var t;return null===(t=this.handleRedirect)||void 0===t?void 0:t.call(this)}},"Continue")),this.submissionId&&this.showSubmitSuccessSubmissionId&&i("span",{class:"submission-id"},"Submission ID: ",this.submissionId))))):i("stencil-form",{handleSubmit:this.handleSubmit,initialValues:this.currentValues,handleChange:this.handleChange,onDirtyChange:t=>this.formDirtyChange.emit(t.detail)},this.readonly&&i("div",{class:"error-banner"},i("unity-typography",{variant:"body2"},"View Only Mode. The contents of this form cannot be changed.")),i("fluent-dialog",{open:this.isDialogOpen,message:this.dialogMessage,labelOne:"Confirm",labelTwo:"Cancel",actionOne:()=>this.dialogAction(),actionTwo:()=>this.isDialogOpen=!1}),i("div",null,i("div",{class:"form-section-block"},i("div",{class:"form-renderer-header",style:Object.assign({},(null===(b=null===(p=this.udpForm)||void 0===p?void 0:p.styleOverrides)||void 0===b?void 0:b.headerBackgroundColor)&&{backgroundColor:this.udpForm.styleOverrides.headerBackgroundColor})},i("unity-typography",{id:this.titleId,variant:"h6",color:"inherit"},this.getDisplayFormName()),this.showAutoSaveStatus&&i("div",{class:"auto-save-status"},this.saveErrorMessage&&i("unity-typography",{variant:"body",color:"secondary"},this.saveErrorMessage)),this.isShowManualSaveIcon&&i("udp-save-draft-button",{isVisible:this.isShowManualSaveIcon,isSaving:this.isSaving,showSavedMessage:this.showSavedMessage,handleSave:this.handleSave})),i("div",{class:"form-section-content"},i("div",{class:"items"},i("div",{class:"form-section-text"},i("unity-typography",{id:this.descriptionId,variant:null!==(g=null===(v=null===(f=null===(h=this.udpForm)||void 0===h?void 0:h.styleOverrides)||void 0===f?void 0:f.paragraphText)||void 0===v?void 0:v.variant)&&void 0!==g?g:"body",color:"inherit"},this.getDisplayFormDescription()))))),this.dynamicSections.map(((t,e)=>i("div",{class:"form-section-block"},i("div",{class:"form-section-header"},i("div",{class:"form-section-header-title"},i("unity-typography",{variant:"h6",color:"inherit"},`${t.title}${t.sectionPositionSuffix>1?` (${t.sectionPositionSuffix})`:""}`)),i("div",{class:"form-section-header-actions"},t.sectionProperties.isRepeatable&&this.dynamicSections.filter((e=>e.id===t.id)).length===t.sectionPositionSuffix&&!this.readonly&&i("stencil-icon-button",{icon:l("add"),tooltip:"Repeat This Section",onClick:()=>this.duplicateRepeatableSection(e)}),!t.isOriginalSection&&!this.readonly&&i("stencil-icon-button",{icon:l("subtract"),tooltip:"Delete This Repeated Section",onClick:()=>{this.isSectionContainsFollowUpFormLink(`${t.name}_${t.sectionPositionSuffix}`)?this.dialogAction=async()=>{this.deleteRepeatableSection(e),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),this.isDialogOpen=!1}:this.deleteRepeatableSection(e),this.isDialogOpen=!0}}))),i("div",{class:"form-section-content"},i("div",{class:"items"},i("div",{class:"form-section-text"},i("unity-typography",{variant:"body",color:"inherit"},t.sectionText)),i("div",null,t.formQuestions.map((e=>{var s,o,a,r,n,d,l;const u=E.includes(e.fieldTypeId),m=x;return u||x++,i("div",{class:"item"},i("udp-question",{styleOverrides:{helperText:null===(s=this.udpForm.styleOverrides)||void 0===s?void 0:s.helperText,paragraphText:null===(o=this.udpForm.styleOverrides)||void 0===o?void 0:o.paragraphText,questionText:null===(a=this.udpForm.styleOverrides)||void 0===a?void 0:a.questionText},question:e,questionNumber:m,value:null!==(l=null===(d=null===(n=null===(r=this.currentValues)||void 0===r?void 0:r[t.sectionPositionSuffix>1?`${t.name}_${t.sectionPositionSuffix}`:`${t.name}`])||void 0===n?void 0:n[e.name])||void 0===d?void 0:d.value)&&void 0!==l?l:"",disabled:this.disabled,readonly:this.readonly,key:e.questionIdentifierKey,currentValues:this.currentValues,clientUserInfo:this.clientUserInfo,udpFormSubmission:this.udpFormSubmission}))})))))))),(null===(y=this.udpFormSubmission)||void 0===y?void 0:y.status)!=a.Submitted&&i("div",{class:"footer"},i("input",{disabled:this.isLoading||this.disabled||this.readonly,type:"submit",value:"Submit",class:"submit",id:"udpRecord-udp-forms-renderer-Submit",onClick:()=>{}})))),k&&i("div",{class:"form-processing-overlay","aria-live":"polite","aria-busy":"true"}))))}get el(){return this}static get watchers(){return{isSaving:[{watchIsSaving:0}]}}static get style(){return".background{background-color:var(--gray-01);height:100%;overflow-y:auto;overflow-x:hidden}.item{padding-bottom:var(--spacing-02);}.items{display:flex;flex-direction:column;gap:var(--spacing-05);padding-top:var(--spacing-02);padding-bottom:var(--spacing-02)}.footer{display:flex;flex-direction:row-reverse}.submit{background-color:var(--primary-color);box-sizing:border-box;border:none;color:white;padding:8px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color 0.3s ease;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:48px;min-height:24px;}.submit:disabled{background-color:var(--gray-05);cursor:default}.submit-card{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-05);text-align:center;min-width:360px;padding-top:var(--spacing-06);padding-bottom:var(--spacing-06)}.submit-card-content{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-05)}.submission-id{font-size:0.6875rem;color:var(--text-secondary);font-family:var(--font-family)}.form-section-content{margin-bottom:var(--spacing-05);background-color:white;padding:16px;display:flex;flex-direction:column;gap:var(--spacing-05)}.form-container{padding-top:var(--spacing-05);padding-bottom:var(--spacing-05);min-height:100px;position:relative}.form-processing-overlay{position:absolute;inset:0;z-index:4;background:rgba(255, 255, 255, 0.72);backdrop-filter:blur(1px);display:flex;justify-content:center;align-items:flex-start;padding-top:var(--spacing-08, 32px)}.form-processing-overlay-content{background:#ffffff;border:1px solid var(--gray-04, #d9d9d9);border-radius:8px;min-width:240px;padding:var(--spacing-03, 12px) var(--spacing-04, 16px);box-shadow:0 4px 14px rgba(0, 0, 0, 0.12)}.form-section-block{margin-bottom:var(--spacing-05)}.form-section-header{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--primary-color, #000);color:var(--primary-contrast-text, #FFF);padding:var(--spacing-04, 16px) var(--spacing-05, 24px);align-items:center;min-height:var(--spacing-10, 60px)}.form-section-text{margin-bottom:var(--spacing-03)}.center-div{display:flex;align-items:center;justify-content:center;min-height:60vh}.finish-button{display:flex;flex-direction:column;justify-content:center}.form-renderer-header{padding:var(--spacing-05) var(--spacing-05);background-color:var(--primary-color-dark, #000);color:var(--primary-contrast-text, #FFF);display:flex;justify-content:space-between;align-items:center}.header-content{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-03)}.header-text{flex:1;min-width:0;}.header-save-button{display:block;}.floating-save-button{display:block;}.error-banner{background-color:#fdecea;border:1px solid #f5c6cb;color:#a94442;padding:12px;margin-bottom:12px;border-radius:4px}@media (max-width: 768px){.header-content{flex-direction:column;align-items:stretch;gap:var(--spacing-02)}.header-text{margin-bottom:var(--spacing-02)}}@media (max-height: 600px){.header-save-button{display:block}.floating-save-button{display:none}}.auto-save-status{margin-top:var(--spacing-02);padding:var(--spacing-01) 0;font-size:12px;opacity:0.8}"}},[1,"udp-forms-ui",{udpForm:[16],formTemplateOverrides:[16],currentValues:[16],udpFormSubmission:[16],submitSuccessful:[4,"submit-successful"],isLoading:[4,"is-loading"],isSaving:[4,"is-saving"],saveErrorMessage:[1,"save-error-message"],showAutoSaveStatus:[4,"show-auto-save-status"],disabled:[4],readonly:[4],handleSubmit:[16],handleChange:[16],handleSave:[16],handleAction:[16],handleFinish:[16],clientUserInfo:[16],isSubmitted:[4,"is-submitted"],dynamicSections:[16],duplicateRepeatableSection:[8,"duplicate-repeatable-section"],deleteRepeatableSection:[8,"delete-repeatable-section"],isShowManualSaveIcon:[4,"is-show-manual-save-icon"],performBackgroundSaveAndUpdateLocalSubmissionState:[16],submissionId:[1,"submission-id"],handleRedirect:[16],showSubmitSuccessRedirectButton:[4,"show-submit-success-redirect-button"],showSubmitSuccessSubmissionId:[4,"show-submit-success-submission-id"],showSavedMessage:[32],isDialogOpen:[32],dialogAction:[32],dialogMessage:[32]},void 0,{isSaving:[{watchIsSaving:0}]}]);function St(){"undefined"!=typeof customElements&&["udp-forms-ui","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","udp-empty-state","udp-export-sheet","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-checkbox","udp-fluent-dialog","udp-fluent-drawer","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-menu-item","udp-message-bar","udp-pop-over","udp-primary-action-header","udp-progress-bar","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-ui":customElements.get(o(t))||customElements.define(o(t),wt);break;case"address-search":customElements.get(o(t))||u();break;case"ag-grid-base":customElements.get(o(t))||m();break;case"base-map":customElements.get(o(t))||c();break;case"client-side-grid":customElements.get(o(t))||p();break;case"custom-button":customElements.get(o(t))||b();break;case"file-upload":customElements.get(o(t))||h();break;case"form-metadata-display":customElements.get(o(t))||f();break;case"ghost-render":customElements.get(o(t))||v();break;case"grid-header":customElements.get(o(t))||g();break;case"hint-panel":customElements.get(o(t))||y();break;case"image-upload":customElements.get(o(t))||k();break;case"location-input":customElements.get(o(t))||x();break;case"numeric-field":customElements.get(o(t))||j();break;case"selectable-list":customElements.get(o(t))||E();break;case"signature-input":customElements.get(o(t))||w();break;case"stencil-field":customElements.get(o(t))||S();break;case"stencil-form":customElements.get(o(t))||F();break;case"stencil-icon-button":customElements.get(o(t))||C();break;case"table-input":customElements.get(o(t))||T();break;case"tally-display":customElements.get(o(t))||I();break;case"text-area":customElements.get(o(t))||D();break;case"text-field":customElements.get(o(t))||q();break;case"udp-adornment":customElements.get(o(t))||O();break;case"udp-ambient-card":customElements.get(o(t))||U();break;case"udp-ambient-tool-tip":customElements.get(o(t))||$();break;case"udp-avatar":customElements.get(o(t))||R();break;case"udp-badge":customElements.get(o(t))||M();break;case"udp-button":customElements.get(o(t))||z();break;case"udp-container":customElements.get(o(t))||A();break;case"udp-date-selector":customElements.get(o(t))||L();break;case"udp-datetime-selector":customElements.get(o(t))||V();break;case"udp-dialog":customElements.get(o(t))||N();break;case"udp-divider":customElements.get(o(t))||B();break;case"udp-empty-state":customElements.get(o(t))||_();break;case"udp-export-sheet":customElements.get(o(t))||W();break;case"udp-flexbox":customElements.get(o(t))||G();break;case"udp-fluent-avatar":customElements.get(o(t))||H();break;case"udp-fluent-badge":customElements.get(o(t))||J();break;case"udp-fluent-button":customElements.get(o(t))||K();break;case"udp-fluent-card":customElements.get(o(t))||P();break;case"udp-fluent-checkbox":customElements.get(o(t))||Q();break;case"udp-fluent-dialog":customElements.get(o(t))||X();break;case"udp-fluent-drawer":customElements.get(o(t))||Y();break;case"udp-fluent-icon":customElements.get(o(t))||Z();break;case"udp-fluent-icon-button":customElements.get(o(t))||tt();break;case"udp-fluent-menu":customElements.get(o(t))||et();break;case"udp-fluent-switch":customElements.get(o(t))||st();break;case"udp-fluent-text-input":customElements.get(o(t))||it();break;case"udp-icon":customElements.get(o(t))||ot();break;case"udp-icon-button":customElements.get(o(t))||at();break;case"udp-linear-loader":customElements.get(o(t))||rt();break;case"udp-list-item":customElements.get(o(t))||nt();break;case"udp-menu-item":customElements.get(o(t))||dt();break;case"udp-message-bar":customElements.get(o(t))||lt();break;case"udp-pop-over":customElements.get(o(t))||ut();break;case"udp-primary-action-header":customElements.get(o(t))||mt();break;case"udp-progress-bar":customElements.get(o(t))||ct();break;case"udp-question":customElements.get(o(t))||pt();break;case"udp-question-comments":customElements.get(o(t))||bt();break;case"udp-save-draft-button":customElements.get(o(t))||ht();break;case"udp-search-input":customElements.get(o(t))||ft();break;case"udp-selector":customElements.get(o(t))||vt();break;case"udp-side-sheet":customElements.get(o(t))||gt();break;case"udp-spinner":customElements.get(o(t))||yt();break;case"udp-text":customElements.get(o(t))||kt();break;case"udp-time-selector":customElements.get(o(t))||xt();break;case"udp-tooltip":customElements.get(o(t))||jt();break;case"unity-typography":customElements.get(o(t))||Et()}}))}export{wt as U,St as d}
|
|
1
|
+
import{p as t,H as e,c as s,h as i,t as o}from"./index2.js";import{c as a,U as r}from"./enums.js";import{f as n,o as d}from"./utils.js";import{g as u}from"./iconUtils.js";import{d as l}from"./address-search2.js";import{d as m}from"./ag-grid-base2.js";import{d as c}from"./base-map2.js";import{d as p}from"./client-side-grid2.js";import{d as f}from"./custom-button2.js";import{d as b}from"./file-upload2.js";import{d as h}from"./form-metadata-display2.js";import{d as v}from"./ghost-render2.js";import{d as g}from"./grid-header2.js";import{d as y}from"./hint-panel2.js";import{d as k}from"./image-upload2.js";import{d as x}from"./location-input2.js";import{d as j}from"./numeric-field2.js";import{d as E}from"./selectable-list2.js";import{d as w}from"./signature-input2.js";import{d as S}from"./stencil-field2.js";import{d as F}from"./stencil-form2.js";import{d as C}from"./stencil-icon-button2.js";import{d as T}from"./table-input2.js";import{d as I}from"./tally.js";import{d as D}from"./text-area2.js";import{d as q}from"./text-field2.js";import{d as O}from"./udp-accordion2.js";import{d as U}from"./udp-adornment2.js";import{d as $}from"./udp-ambient-card2.js";import{d as R}from"./udp-ambient-tool-tip2.js";import{d as M}from"./udp-avatar2.js";import{d as z}from"./udp-badge2.js";import{d as A}from"./udp-button2.js";import{d as L}from"./udp-container2.js";import{d as V}from"./udp-date-range-selector2.js";import{d as N}from"./udp-date-selector2.js";import{d as B}from"./udp-datetime-selector2.js";import{d as _}from"./udp-dialog2.js";import{d as W}from"./udp-divider2.js";import{d as G}from"./udp-empty-state2.js";import{d as H}from"./udp-export-sheet2.js";import{d as J}from"./udp-flexbox2.js";import{d as K}from"./udp-fluent-avatar2.js";import{d as P}from"./udp-fluent-badge2.js";import{d as Q}from"./udp-fluent-button2.js";import{d as X}from"./udp-fluent-card2.js";import{d as Y}from"./udp-fluent-checkbox2.js";import{d as Z}from"./udp-fluent-dialog2.js";import{d as tt}from"./udp-fluent-drawer2.js";import{d as et}from"./udp-fluent-dropdown2.js";import{d as st}from"./udp-fluent-icon2.js";import{d as it}from"./udp-fluent-icon-button2.js";import{d as ot}from"./udp-fluent-menu2.js";import{d as at}from"./udp-fluent-number-input2.js";import{d as rt}from"./udp-fluent-switch2.js";import{d as nt}from"./udp-fluent-text-input2.js";import{d as dt}from"./udp-icon2.js";import{d as ut}from"./udp-icon-button2.js";import{d as lt}from"./udp-linear-loader2.js";import{d as mt}from"./list-item.js";import{d as ct}from"./udp-menu-item2.js";import{d as pt}from"./udp-message-bar2.js";import{d as ft}from"./udp-pop-over2.js";import{d as bt}from"./udp-popover2.js";import{d as ht}from"./udp-primary-action-header2.js";import{d as vt}from"./udp-progress-bar2.js";import{d as gt}from"./udp-question2.js";import{d as yt}from"./udp-question-comments2.js";import{d as kt}from"./udp-save-draft-button2.js";import{d as xt}from"./udp-search-input2.js";import{d as jt}from"./udp-selector2.js";import{d as Et}from"./udp-side-sheet2.js";import{d as wt}from"./udp-spinner2.js";import{d as St}from"./udp-text2.js";import{d as Ft}from"./udp-time-selector2.js";import{d as Ct}from"./udp-tooltip2.js";import{d as Tt}from"./unity-typography2.js";const It=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.formDirtyChange=s(this,"formDirtyChange",7),this.formTemplateOverrides=null,this.currentValues={},this.submitSuccessful=!1,this.isLoading=!1,this.isSaving=!1,this.saveErrorMessage=null,this.showAutoSaveStatus=!1,this.disabled=!1,this.readonly=!1,this.clientUserInfo={id:null,displayName:null,email:null},this.isSubmitted=!1,this.isShowManualSaveIcon=!1,this.showSubmitSuccessRedirectButton=!1,this.showSubmitSuccessSubmissionId=!1,this.showSavedMessage=!1,this.isDialogOpen=!1,this.dialogMessage="Are you sure you want to delete this section? This section contains links to follow-up forms. Deleting it will remove those links.",this.titleId="udp-forms-title",this.descriptionId="udp-forms-description",this.handleFormInvalid=()=>{var t;null===(t=this.el)||void 0===t||t.dispatchEvent(new CustomEvent("udpFormsSubmitInvalid",{bubbles:!0,composed:!0}))}}componentDidLoad(){var t,e;this.overrideStyles();const s=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("stencil-form");null==s||s.addEventListener("stencilFormInvalidEvent",this.handleFormInvalid)}componentDidUpdate(){this.overrideStyles()}disconnectedCallback(){var t,e;this.savedMessageTimeoutId&&clearTimeout(this.savedMessageTimeoutId);const s=null===(e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("stencil-form");null==s||s.removeEventListener("stencilFormInvalidEvent",this.handleFormInvalid)}watchIsSaving(t,e){!0!==e||!1!==t||this.saveErrorMessage||(this.showSavedMessage=!0,this.savedMessageTimeoutId&&clearTimeout(this.savedMessageTimeoutId),this.savedMessageTimeoutId=setTimeout((()=>{this.showSavedMessage=!1}),5e3))}overrideStyles(){var t;const e=null===(t=this.el)||void 0===t?void 0:t.shadowRoot;null==e||e.querySelectorAll("unity-typography").forEach((t=>{var e,s,i,o;const a=t.id===this.titleId?null===(s=null===(e=this.udpForm)||void 0===e?void 0:e.styleOverrides)||void 0===s?void 0:s.titleText:t.id===this.descriptionId?null===(o=null===(i=this.udpForm)||void 0===i?void 0:i.styleOverrides)||void 0===o?void 0:o.paragraphText:{};(null==a?void 0:a.fontFamily)&&n[a.fontFamily]&&d(t,n[a.fontFamily]),(null==a?void 0:a.variant)&&t.setAttribute("variant",a.variant)}))}isSectionContainsFollowUpFormLink(t){var e;const s=this.udpFormSubmission.data.submissionResponseData[t];for(const[t,i]of Object.entries(s))if((null==i?void 0:i.metadata)&&(null===(e=i.metadata)||void 0===e?void 0:e.followUpFormSubmissionId))return!0;return!1}getDisplayFormName(){var t,e,s;const i=null===(t=this.formTemplateOverrides)||void 0===t?void 0:t.formName;return"string"==typeof i&&""!==i.trim()?i:null!==(s=null===(e=this.udpForm)||void 0===e?void 0:e.name)&&void 0!==s?s:""}getDisplayFormDescription(){var t,e,s;const i=null===(t=this.formTemplateOverrides)||void 0===t?void 0:t.formDescription;return"string"==typeof i&&""!==i.trim()?i:null!==(s=null===(e=this.udpForm)||void 0===e?void 0:e.description)&&void 0!==s?s:""}render(){var t,e,s,o,n,d,l,m,c,p,f,b,h,v,g,y;const k=!!this.udpForm&&(this.isLoading||this.isSaving);if(this.isLoading&&!this.udpForm)return i("udp-linear-loader",null);if(!this.udpForm)return i("div",{class:"error-banner"},i("unity-typography",{variant:"body2"},"Error Loading Form"));let x=1;const j=new Set;this.udpForm.formQuestions.forEach((t=>j.add(t.section)));const E=[r.Hidden,r.Paragraph],w={};return(null===(s=null===(e=null===(t=this.udpForm)||void 0===t?void 0:t.styleOverrides)||void 0===e?void 0:e.background)||void 0===s?void 0:s.backgroundImage)||(null===(d=null===(n=null===(o=this.udpForm)||void 0===o?void 0:o.styleOverrides)||void 0===n?void 0:n.background)||void 0===d?void 0:d.backgroundColor)&&(w.backgroundColor=null===(c=null===(m=null===(l=this.udpForm)||void 0===l?void 0:l.styleOverrides)||void 0===m?void 0:m.background)||void 0===c?void 0:c.backgroundColor),i("div",{class:"background",style:w},i("udp-container",{maxWidth:"md"},i("div",{class:"form-container"},this.submitSuccessful?i("div",{class:"center-div"},i("udp-ambient-card",null,i("div",{class:"submit-card"},i("div",{class:"submit-card-content"},i("unity-typography",null,"Thank you for your submission."),this.showSubmitSuccessRedirectButton&&i("div",{class:"finish-button"},i("custom-button",{onClick:()=>{var t;return null===(t=this.handleRedirect)||void 0===t?void 0:t.call(this)}},"Continue")),this.submissionId&&this.showSubmitSuccessSubmissionId&&i("span",{class:"submission-id"},"Submission ID: ",this.submissionId))))):i("stencil-form",{handleSubmit:this.handleSubmit,initialValues:this.currentValues,handleChange:this.handleChange,onDirtyChange:t=>this.formDirtyChange.emit(t.detail)},this.readonly&&i("div",{class:"error-banner"},i("unity-typography",{variant:"body2"},"View Only Mode. The contents of this form cannot be changed.")),i("fluent-dialog",{open:this.isDialogOpen,message:this.dialogMessage,labelOne:"Confirm",labelTwo:"Cancel",actionOne:()=>this.dialogAction(),actionTwo:()=>this.isDialogOpen=!1}),i("div",null,i("div",{class:"form-section-block"},i("div",{class:"form-renderer-header",style:Object.assign({},(null===(f=null===(p=this.udpForm)||void 0===p?void 0:p.styleOverrides)||void 0===f?void 0:f.headerBackgroundColor)&&{backgroundColor:this.udpForm.styleOverrides.headerBackgroundColor})},i("unity-typography",{id:this.titleId,variant:"h6",color:"inherit"},this.getDisplayFormName()),this.showAutoSaveStatus&&i("div",{class:"auto-save-status"},this.saveErrorMessage&&i("unity-typography",{variant:"body",color:"secondary"},this.saveErrorMessage)),this.isShowManualSaveIcon&&i("udp-save-draft-button",{isVisible:this.isShowManualSaveIcon,isSaving:this.isSaving,showSavedMessage:this.showSavedMessage,handleSave:this.handleSave})),i("div",{class:"form-section-content"},i("div",{class:"items"},i("div",{class:"form-section-text"},i("unity-typography",{id:this.descriptionId,variant:null!==(g=null===(v=null===(h=null===(b=this.udpForm)||void 0===b?void 0:b.styleOverrides)||void 0===h?void 0:h.paragraphText)||void 0===v?void 0:v.variant)&&void 0!==g?g:"body",color:"inherit"},this.getDisplayFormDescription()))))),this.dynamicSections.map(((t,e)=>i("div",{class:"form-section-block"},i("div",{class:"form-section-header"},i("div",{class:"form-section-header-title"},i("unity-typography",{variant:"h6",color:"inherit"},`${t.title}${t.sectionPositionSuffix>1?` (${t.sectionPositionSuffix})`:""}`)),i("div",{class:"form-section-header-actions"},t.sectionProperties.isRepeatable&&this.dynamicSections.filter((e=>e.id===t.id)).length===t.sectionPositionSuffix&&!this.readonly&&i("stencil-icon-button",{icon:u("add"),tooltip:"Repeat This Section",onClick:()=>this.duplicateRepeatableSection(e)}),!t.isOriginalSection&&!this.readonly&&i("stencil-icon-button",{icon:u("subtract"),tooltip:"Delete This Repeated Section",onClick:()=>{this.isSectionContainsFollowUpFormLink(`${t.name}_${t.sectionPositionSuffix}`)?this.dialogAction=async()=>{this.deleteRepeatableSection(e),await this.performBackgroundSaveAndUpdateLocalSubmissionState(this.udpFormSubmission.data.submissionResponseData),this.isDialogOpen=!1}:this.deleteRepeatableSection(e),this.isDialogOpen=!0}}))),i("div",{class:"form-section-content"},i("div",{class:"items"},i("div",{class:"form-section-text"},i("unity-typography",{variant:"body",color:"inherit"},t.sectionText)),i("div",null,t.formQuestions.map((e=>{var s,o,a,r,n,d,u;const l=E.includes(e.fieldTypeId),m=x;return l||x++,i("div",{class:"item"},i("udp-question",{styleOverrides:{helperText:null===(s=this.udpForm.styleOverrides)||void 0===s?void 0:s.helperText,paragraphText:null===(o=this.udpForm.styleOverrides)||void 0===o?void 0:o.paragraphText,questionText:null===(a=this.udpForm.styleOverrides)||void 0===a?void 0:a.questionText},question:e,questionNumber:m,value:null!==(u=null===(d=null===(n=null===(r=this.currentValues)||void 0===r?void 0:r[t.sectionPositionSuffix>1?`${t.name}_${t.sectionPositionSuffix}`:`${t.name}`])||void 0===n?void 0:n[e.name])||void 0===d?void 0:d.value)&&void 0!==u?u:"",disabled:this.disabled,readonly:this.readonly,key:e.questionIdentifierKey,currentValues:this.currentValues,clientUserInfo:this.clientUserInfo,udpFormSubmission:this.udpFormSubmission}))})))))))),(null===(y=this.udpFormSubmission)||void 0===y?void 0:y.status)!=a.Submitted&&i("div",{class:"footer"},i("input",{disabled:this.isLoading||this.disabled||this.readonly,type:"submit",value:"Submit",class:"submit",id:"udpRecord-udp-forms-renderer-Submit",onClick:()=>{}})))),k&&i("div",{class:"form-processing-overlay","aria-live":"polite","aria-busy":"true"}))))}get el(){return this}static get watchers(){return{isSaving:[{watchIsSaving:0}]}}static get style(){return".background{background-color:var(--gray-01);height:100%;overflow-y:auto;overflow-x:hidden}.item{padding-bottom:var(--spacing-02);}.items{display:flex;flex-direction:column;gap:var(--spacing-05);padding-top:var(--spacing-02);padding-bottom:var(--spacing-02)}.footer{display:flex;flex-direction:row-reverse}.submit{background-color:var(--primary-color);box-sizing:border-box;border:none;color:white;padding:8px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color 0.3s ease;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:48px;min-height:24px;}.submit:disabled{background-color:var(--gray-05);cursor:default}.submit-card{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-05);text-align:center;min-width:360px;padding-top:var(--spacing-06);padding-bottom:var(--spacing-06)}.submit-card-content{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-05)}.submission-id{font-size:0.6875rem;color:var(--text-secondary);font-family:var(--font-family)}.form-section-content{margin-bottom:var(--spacing-05);background-color:white;padding:16px;display:flex;flex-direction:column;gap:var(--spacing-05)}.form-container{padding-top:var(--spacing-05);padding-bottom:var(--spacing-05);min-height:100px;position:relative}.form-processing-overlay{position:absolute;inset:0;z-index:4;background:rgba(255, 255, 255, 0.72);backdrop-filter:blur(1px);display:flex;justify-content:center;align-items:flex-start;padding-top:var(--spacing-08, 32px)}.form-processing-overlay-content{background:#ffffff;border:1px solid var(--gray-04, #d9d9d9);border-radius:8px;min-width:240px;padding:var(--spacing-03, 12px) var(--spacing-04, 16px);box-shadow:0 4px 14px rgba(0, 0, 0, 0.12)}.form-section-block{margin-bottom:var(--spacing-05)}.form-section-header{display:flex;flex-direction:row;justify-content:space-between;background-color:var(--primary-color, #000);color:var(--primary-contrast-text, #FFF);padding:var(--spacing-04, 16px) var(--spacing-05, 24px);align-items:center;min-height:var(--spacing-10, 60px)}.form-section-text{margin-bottom:var(--spacing-03)}.center-div{display:flex;align-items:center;justify-content:center;min-height:60vh}.finish-button{display:flex;flex-direction:column;justify-content:center}.form-renderer-header{padding:var(--spacing-05) var(--spacing-05);background-color:var(--primary-color-dark, #000);color:var(--primary-contrast-text, #FFF);display:flex;justify-content:space-between;align-items:center}.header-content{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--spacing-03)}.header-text{flex:1;min-width:0;}.header-save-button{display:block;}.floating-save-button{display:block;}.error-banner{background-color:#fdecea;border:1px solid #f5c6cb;color:#a94442;padding:12px;margin-bottom:12px;border-radius:4px}@media (max-width: 768px){.header-content{flex-direction:column;align-items:stretch;gap:var(--spacing-02)}.header-text{margin-bottom:var(--spacing-02)}}@media (max-height: 600px){.header-save-button{display:block}.floating-save-button{display:none}}.auto-save-status{margin-top:var(--spacing-02);padding:var(--spacing-01) 0;font-size:12px;opacity:0.8}"}},[1,"udp-forms-ui",{udpForm:[16],formTemplateOverrides:[16],currentValues:[16],udpFormSubmission:[16],submitSuccessful:[4,"submit-successful"],isLoading:[4,"is-loading"],isSaving:[4,"is-saving"],saveErrorMessage:[1,"save-error-message"],showAutoSaveStatus:[4,"show-auto-save-status"],disabled:[4],readonly:[4],handleSubmit:[16],handleChange:[16],handleSave:[16],handleAction:[16],handleFinish:[16],clientUserInfo:[16],isSubmitted:[4,"is-submitted"],dynamicSections:[16],duplicateRepeatableSection:[8,"duplicate-repeatable-section"],deleteRepeatableSection:[8,"delete-repeatable-section"],isShowManualSaveIcon:[4,"is-show-manual-save-icon"],performBackgroundSaveAndUpdateLocalSubmissionState:[16],submissionId:[1,"submission-id"],handleRedirect:[16],showSubmitSuccessRedirectButton:[4,"show-submit-success-redirect-button"],showSubmitSuccessSubmissionId:[4,"show-submit-success-submission-id"],showSavedMessage:[32],isDialogOpen:[32],dialogAction:[32],dialogMessage:[32]},void 0,{isSaving:[{watchIsSaving:0}]}]);function Dt(){"undefined"!=typeof customElements&&["udp-forms-ui","address-search","ag-grid-base","base-map","client-side-grid","custom-button","file-upload","form-metadata-display","ghost-render","grid-header","hint-panel","image-upload","location-input","numeric-field","selectable-list","signature-input","stencil-field","stencil-form","stencil-icon-button","table-input","tally-display","text-area","text-field","udp-accordion","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-container","udp-date-range-selector","udp-date-selector","udp-datetime-selector","udp-dialog","udp-divider","udp-empty-state","udp-export-sheet","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-checkbox","udp-fluent-dialog","udp-fluent-drawer","udp-fluent-dropdown","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-number-input","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-icon-button","udp-linear-loader","udp-list-item","udp-menu-item","udp-message-bar","udp-pop-over","udp-popover","udp-primary-action-header","udp-progress-bar","udp-question","udp-question-comments","udp-save-draft-button","udp-search-input","udp-selector","udp-side-sheet","udp-spinner","udp-text","udp-time-selector","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"udp-forms-ui":customElements.get(o(t))||customElements.define(o(t),It);break;case"address-search":customElements.get(o(t))||l();break;case"ag-grid-base":customElements.get(o(t))||m();break;case"base-map":customElements.get(o(t))||c();break;case"client-side-grid":customElements.get(o(t))||p();break;case"custom-button":customElements.get(o(t))||f();break;case"file-upload":customElements.get(o(t))||b();break;case"form-metadata-display":customElements.get(o(t))||h();break;case"ghost-render":customElements.get(o(t))||v();break;case"grid-header":customElements.get(o(t))||g();break;case"hint-panel":customElements.get(o(t))||y();break;case"image-upload":customElements.get(o(t))||k();break;case"location-input":customElements.get(o(t))||x();break;case"numeric-field":customElements.get(o(t))||j();break;case"selectable-list":customElements.get(o(t))||E();break;case"signature-input":customElements.get(o(t))||w();break;case"stencil-field":customElements.get(o(t))||S();break;case"stencil-form":customElements.get(o(t))||F();break;case"stencil-icon-button":customElements.get(o(t))||C();break;case"table-input":customElements.get(o(t))||T();break;case"tally-display":customElements.get(o(t))||I();break;case"text-area":customElements.get(o(t))||D();break;case"text-field":customElements.get(o(t))||q();break;case"udp-accordion":customElements.get(o(t))||O();break;case"udp-adornment":customElements.get(o(t))||U();break;case"udp-ambient-card":customElements.get(o(t))||$();break;case"udp-ambient-tool-tip":customElements.get(o(t))||R();break;case"udp-avatar":customElements.get(o(t))||M();break;case"udp-badge":customElements.get(o(t))||z();break;case"udp-button":customElements.get(o(t))||A();break;case"udp-container":customElements.get(o(t))||L();break;case"udp-date-range-selector":customElements.get(o(t))||V();break;case"udp-date-selector":customElements.get(o(t))||N();break;case"udp-datetime-selector":customElements.get(o(t))||B();break;case"udp-dialog":customElements.get(o(t))||_();break;case"udp-divider":customElements.get(o(t))||W();break;case"udp-empty-state":customElements.get(o(t))||G();break;case"udp-export-sheet":customElements.get(o(t))||H();break;case"udp-flexbox":customElements.get(o(t))||J();break;case"udp-fluent-avatar":customElements.get(o(t))||K();break;case"udp-fluent-badge":customElements.get(o(t))||P();break;case"udp-fluent-button":customElements.get(o(t))||Q();break;case"udp-fluent-card":customElements.get(o(t))||X();break;case"udp-fluent-checkbox":customElements.get(o(t))||Y();break;case"udp-fluent-dialog":customElements.get(o(t))||Z();break;case"udp-fluent-drawer":customElements.get(o(t))||tt();break;case"udp-fluent-dropdown":customElements.get(o(t))||et();break;case"udp-fluent-icon":customElements.get(o(t))||st();break;case"udp-fluent-icon-button":customElements.get(o(t))||it();break;case"udp-fluent-menu":customElements.get(o(t))||ot();break;case"udp-fluent-number-input":customElements.get(o(t))||at();break;case"udp-fluent-switch":customElements.get(o(t))||rt();break;case"udp-fluent-text-input":customElements.get(o(t))||nt();break;case"udp-icon":customElements.get(o(t))||dt();break;case"udp-icon-button":customElements.get(o(t))||ut();break;case"udp-linear-loader":customElements.get(o(t))||lt();break;case"udp-list-item":customElements.get(o(t))||mt();break;case"udp-menu-item":customElements.get(o(t))||ct();break;case"udp-message-bar":customElements.get(o(t))||pt();break;case"udp-pop-over":customElements.get(o(t))||ft();break;case"udp-popover":customElements.get(o(t))||bt();break;case"udp-primary-action-header":customElements.get(o(t))||ht();break;case"udp-progress-bar":customElements.get(o(t))||vt();break;case"udp-question":customElements.get(o(t))||gt();break;case"udp-question-comments":customElements.get(o(t))||yt();break;case"udp-save-draft-button":customElements.get(o(t))||kt();break;case"udp-search-input":customElements.get(o(t))||xt();break;case"udp-selector":customElements.get(o(t))||jt();break;case"udp-side-sheet":customElements.get(o(t))||Et();break;case"udp-spinner":customElements.get(o(t))||wt();break;case"udp-text":customElements.get(o(t))||St();break;case"udp-time-selector":customElements.get(o(t))||Ft();break;case"udp-tooltip":customElements.get(o(t))||Ct();break;case"unity-typography":customElements.get(o(t))||Tt()}}))}export{It as U,Dt as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as n,h as o,t as r}from"./index2.js";import
|
|
1
|
+
import{p as t,H as n,h as o,t as r}from"./index2.js";import s from"@carbon/icons/es/add/16";import e from"@carbon/icons/es/chevron--down/16";import c from"@carbon/icons/es/view/16";import i from"@carbon/icons/es/trash-can/16";import d from"@carbon/icons/es/star/16";import a from"@carbon/icons/es/star--filled/16";import p from"@carbon/icons/es/edit/16";const u=t(class extends n{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.expand=!1,this.view=!1,this.add=!1,this.edit=!1,this.delete=!1,this.isDefault=!1,this.noBackground=!1}renderIcon(){let t,n={};return this.delete?(t=i,n={padding:"5px"}):this.view?(t=c,n={padding:"5px"}):this.isDefault?(t=a,n={padding:"5px"}):this.add?(t=s,n={padding:"5px"}):this.edit?(t=p,n={padding:"5px"}):this.expand?(t=e,n={padding:"5px",color:"black"}):(t=d,n={padding:"5px"}),o("svg",Object.assign({},t.attrs,{style:n}),t.content.map(((t,n)=>"path"===t.elem?o("path",Object.assign({},t.attrs,{key:n})):null)))}render(){return o("button",{key:"25d3c7b50c557543a2174f493544f87f1848d480",class:this.noBackground?"udp-btn no-bg":"udp-btn"},o("span",{key:"c38aa018c8389367511453750cde3f7debee124d",class:"btn-content"},this.renderIcon()))}static get style(){return".udp-btn{border:0;border-radius:50%;padding:1px 3px;cursor:pointer;background-color:var(--accent-color-three);transition:background-color 0.3s}.udp-btn.no-bg{background-color:transparent;}.udp-btn:hover{background-color:#f0f0f0}.btn-content{color:var(--accent-color-four)}.btn-content svg{fill:currentColor}"}},[1,"udp-function-button",{expand:[4],view:[4],add:[4],edit:[4],delete:[4],isDefault:[4,"is-default"],noBackground:[4,"no-background"]}]);function b(){"undefined"!=typeof customElements&&["udp-function-button"].forEach((t=>{"udp-function-button"===t&&(customElements.get(r(t))||customElements.define(r(t),u))}))}export{u as U,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,h as t,t as d}from"./index2.js";import{d as i}from"./udp-skeleton-loading2.js";const n=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"
|
|
1
|
+
import{p as e,H as s,h as t,t as d}from"./index2.js";import{d as i}from"./udp-skeleton-loading2.js";const n=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"8146893487ea16f807b52d25cee99a41c3c49e94",class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"55px"})))),s=Array.from({length:this.numRows}).map((()=>t("div",{class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"30px"}))))));return t("div",{key:"078ce9581e96be49f06822f1aa6d9a1b7077c088",style:{width:this.width}},e,s)}static get style(){return":host{display:block}.grid-row{display:flex;justify-content:space-between}udp-skeleton-loading{flex-grow:1;margin:2px}"}},[1,"udp-grid-loader",{numColumns:[2,"num-columns"],numRows:[2,"num-rows"],width:[1]}]);function o(){"undefined"!=typeof customElements&&["udp-grid-loader","udp-skeleton-loading"].forEach((e=>{switch(e){case"udp-grid-loader":customElements.get(d(e))||customElements.define(d(e),n);break;case"udp-skeleton-loading":customElements.get(d(e))||i()}}))}export{n as U,o as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as o}from"./custom-button2.js";import{d as a}from"./stencil-toggle2.js";import{d as c}from"./text-field2.js";import{d as n}from"./unity-typography2.js";const r=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.name="",this.isPrivate=!1,this.handleNameChange=t=>{this.name=t.target.value},this.handlePrivateChange=()=>{this.isPrivate=!this.isPrivate},this.handleSubmit=t=>{t.preventDefault(),this.handleFormSubmit(this.name,this.isPrivate,this.columnState)},this.onCustomButtonClick=()=>{this.handleFormSubmit(this.name,this.isPrivate,this.columnState)}}render(){return s("div",{key:"
|
|
1
|
+
import{p as t,H as e,h as s,t as i}from"./index2.js";import{d as o}from"./custom-button2.js";import{d as a}from"./stencil-toggle2.js";import{d as c}from"./text-field2.js";import{d as n}from"./unity-typography2.js";const r=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.name="",this.isPrivate=!1,this.handleNameChange=t=>{this.name=t.target.value},this.handlePrivateChange=()=>{this.isPrivate=!this.isPrivate},this.handleSubmit=t=>{t.preventDefault(),this.handleFormSubmit(this.name,this.isPrivate,this.columnState)},this.onCustomButtonClick=()=>{this.handleFormSubmit(this.name,this.isPrivate,this.columnState)}}render(){return s("div",{key:"a6a831ccaada32b74b39fe17c97e7c1f887920b4",class:"wrapper"},s("form",{key:"af20ac7818d9ecd6c8dd854f69c5f7491c0855c0",class:"save-form",onSubmit:this.handleSubmit},s("text-field",{key:"232888d7643c046c68a5110cb3f9309bde97f97e",label:"Hotlist Name",placeholder:"Create a name for your Hotlist",value:this.name,onChange:t=>this.handleNameChange(t)}),s("stencil-toggle",{key:"f6e7ed9a845047e0528916b927a2e8740c6eee52",label:"Private",checked:this.isPrivate,onToggledChange:this.handlePrivateChange}),s("div",{key:"ddb74f4ab46bfefeaf8472bb5bc938fb7a71288a",class:"submit-button"},s("custom-button",{key:"17bd95feeb0f0ec82c458c19a96b4876b0490ed0",variant:"outline",type:"submit",onCustomClick:this.handleCancelClick},"Cancel"),s("custom-button",{key:"312356fdd2120b1ef3bab054f94404eb2cb5f4e4",disabled:!this.name,type:"submit",onCustomClick:this.onCustomButtonClick},"Create List"))))}get el(){return this}static get style(){return".submit-button{margin-top:18px;display:flex;justify-content:flex-end;margin-right:24px;gap:8px}.wrapper{border-bottom:1px solid #d9d9d9;padding-bottom:16px;margin-bottom:10px;width:480px}"}},[1,"udp-hotlist-form",{refetchViews:[16],handleFormSubmit:[16],handleCancelClick:[16],name:[32],isPrivate:[32],columnState:[32]}]);function m(){"undefined"!=typeof customElements&&["udp-hotlist-form","custom-button","stencil-toggle","text-field","unity-typography"].forEach((t=>{switch(t){case"udp-hotlist-form":customElements.get(i(t))||customElements.define(i(t),r);break;case"custom-button":customElements.get(i(t))||o();break;case"stencil-toggle":customElements.get(i(t))||a();break;case"text-field":customElements.get(i(t))||c();break;case"unity-typography":customElements.get(i(t))||n()}}))}export{r as U,m as d}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface UdpImportSheet extends Components.UdpImportSheet, HTMLElement {}
|
|
4
|
+
export const UdpImportSheet: {
|
|
5
|
+
prototype: UdpImportSheet;
|
|
6
|
+
new (): UdpImportSheet;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import "../stencil-library/stencil-library.css";
|
|
2
|
+
import{p as t,H as e,c as s,h as i,d as a,t as r}from"./index2.js";import{L as o,R as d}from"./apiUtils.js";import{g as n}from"./getCurrentApiCatalogId.js";import{g as l}from"./entityUtilities.js";import{d as u}from"./udp-flexbox2.js";import{d as c}from"./udp-fluent-badge2.js";import{d as p}from"./udp-fluent-button2.js";import{d as h}from"./udp-fluent-card2.js";import{d as f}from"./udp-fluent-drawer2.js";import{d as m}from"./udp-fluent-file-input2.js";import{d as b}from"./udp-fluent-icon2.js";import{d as v}from"./udp-fluent-icon-button2.js";import{d as g}from"./udp-message-bar2.js";import{d as y}from"./udp-progress-bar2.js";import{d as k}from"./udp-spinner2.js";import{d as x}from"./udp-text2.js";const w=t=>new Promise(((e,s)=>{const i=new FileReader;i.onload=()=>e("string"==typeof i.result?i.result.replace(/^data:[^,]*,/,""):""),i.onerror=()=>s(i.error),i.readAsDataURL(t)})),j=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.udpImportClose=s(this,"udpImportClose",7),this.udpImportJobCreated=s(this,"udpImportJobCreated",7),this.udpImportComplete=s(this,"udpImportComplete",7),this.udpImportError=s(this,"udpImportError",7),this.open=!1,this.sheetTitle="Import",this.preparing=!1,this.selectedEntity=null,this.udpJobEntity=null,this.errors=[],this.files=[],this.activeJob=null,this.importLoading=!1,this.phase="summary",this.hasPrepared=!1,this.handleCreateImport=async()=>{var t,e;const s=null===(e=null===(t=this.selectedEntity)||void 0===t?void 0:t.unityBaseImportMethod)||void 0===e?void 0:e.apiMethodId,i=this.pendingFile;if(s&&i){this.importLoading=!0;try{const t=await o({data:{requestBody:{File:await w(i)}}},s);this.activeJob=t,this.phase="progress",this.udpImportJobCreated.emit(t),this.startPolling()}catch(t){this.pushError("importRequest","Error creating the import job.","error")}finally{this.importLoading=!1}}},this.handleDrawerClose=()=>{this.open=!1,this.udpImportClose.emit()}}onOpenChange(t){t?this.maybePrepare():this.onClosed()}componentDidLoad(){this.open&&this.maybePrepare()}disconnectedCallback(){this.stopPolling()}maybePrepare(){this.hasPrepared||(this.hasPrepared=!0,this.resetTransient(),this.prepare())}onClosed(){this.hasPrepared=!1,this.stopPolling()}resetTransient(){this.errors=[],this.files=[],this.activeJob=null,this.phase="summary",this.selectedEntity=null,this.udpJobEntity=null}pushError(t,e,s){if(this.errors.some((e=>e.id===t)))return;const i={id:t,message:e,severity:s};this.errors=[...this.errors,i],this.udpImportError.emit(i)}get pendingFile(){const t=this.files.find((t=>"pending"===t.kind));return"pending"===(null==t?void 0:t.kind)?t.file:void 0}async prepare(){var t,e;if(this.entityName){this.preparing=!0;try{const s=this.apiCatalogId||n();if(!s)return void this.pushError("catalog","No API catalog is available for import.","error");const[i,a]=await Promise.all([d(s,this.entityName,!0),d(s,"udpJob",!0)]);this.selectedEntity=i,this.udpJobEntity=a,(null===(t=null==i?void 0:i.unityBaseImportMethod)||void 0===t?void 0:t.apiMethodId)||this.pushError("import",l(this.entityName)+"'s import method must be promoted.","error"),a&&!(null===(e=null==a?void 0:a.unityBaseGetMethod)||void 0===e?void 0:e.apiMethodId)&&this.pushError("jobGet","UdpJob's Get method must be promoted to view job status.","warning")}catch(t){this.pushError("prepare","Could not load the import configuration.","error")}finally{this.preparing=!1}}else this.pushError("entity","No entity was provided to import into.","error")}startPolling(){var t,e,s;this.stopPolling();const i=null===(e=null===(t=this.udpJobEntity)||void 0===t?void 0:t.unityBaseGetMethod)||void 0===e?void 0:e.apiMethodId;i&&null!=(null===(s=this.activeJob)||void 0===s?void 0:s.id)&&(this.isTerminal(this.activeJob)?this.afterTerminal():this.pollTimer=setInterval((()=>{this.poll(i)}),5e3))}async poll(t){var e;try{const s=await o({data:{id:null===(e=this.activeJob)||void 0===e?void 0:e.id}},t);this.activeJob=s,this.isTerminal(s)&&(this.stopPolling(),this.afterTerminal())}catch(t){this.stopPolling(),this.pushError("jobStatus","Error getting the job status.","error")}}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=void 0)}isTerminal(t){return 3===(null==t?void 0:t.statusId)||4===(null==t?void 0:t.statusId)}afterTerminal(){var t;3===(null===(t=this.activeJob)||void 0===t?void 0:t.statusId)&&this.activeJob&&this.udpImportComplete.emit(this.activeJob)}statusLabel(){var t;switch(null===(t=this.activeJob)||void 0===t?void 0:t.statusId){case 2:return"Running";case 3:return"Completed";case 4:return"Failed";default:return"Pending"}}statusColor(){var t;switch(null===(t=this.activeJob)||void 0===t?void 0:t.statusId){case 2:return"informative";case 3:return"success";case 4:return"danger";default:return"subtle"}}renderRow(t,e){return i("div",{class:"row"},i("udp-text",{variant:"caption1",class:"row-label"},t),i("udp-text",{variant:"body1"},e))}render(){var t,e;const s="progress"===this.phase,r=l(this.entityName||"")+"",o=null===(t=this.activeJob)||void 0===t?void 0:t.statusId,d=this.errors.some((t=>"error"===t.severity));return i(a,{key:"ab36e2899e68437eb152ae6b44d081d08d0b3e1e"},i("udp-fluent-drawer",{key:"9763112c7d933bc51bcc6249ee1d2bc42a9dc5d2",open:this.open,drawerTitle:this.sheetTitle,size:"medium",onDrawerClose:this.handleDrawerClose},i("div",{key:"bad6bf4053915a11d7477f0036ee143eb3f0a3e2",class:"import-sheet"},this.errors.map((t=>i("udp-message-bar",{intent:t.severity,layout:"multiline"},t.message))),!s&&i("div",{key:"c6ad12953fbe8499ec0d4c4d2b48da46aeac8754",class:"stack"},i("udp-fluent-card",{key:"f7710592d684e55c5f435ba58e5d4f19f38f9858",label:"Import Summary"},i("div",{key:"d5dbd1dd931d7d1b525e0e0284c6a29bfb717e77",class:"row-list"},this.renderRow("Table",r||"—"))),i("udp-fluent-card",{key:"147b99679f8b572d9db4894f132a247833fbdc4c",label:"Import Options"},i("udp-flexbox",{key:"02ab796b7c75a51ccbe46ed0111fc1582a297815",direction:"column",gap:"sm"},i("udp-fluent-file-input",{key:"18cc930b39a44fdf85742dbedbdaa7d04ec041ca",label:"File",required:!0,accept:".xlsx",maxFiles:1,disabled:this.preparing||d,value:this.files,onValueChanged:t=>{var e;this.files=null!==(e=t.detail)&&void 0!==e?e:[]}})))),s&&i("div",{key:"fb4d47b990fe0c98e262f635075c0f3581e712a3",class:"stack"},i("udp-fluent-card",{key:"65f98212240320959c57ff2ebda4f7625f925903",label:"Job Details"},i("udp-text",{key:"ef429fa8174054aa4391075463f3cdbd04426706",variant:"body1"},"Imports are handled in the background. You can safely close this window."),i("div",{key:"730689611671c2948c1cfdd316752904ef7ffd15",class:"row-list"},this.renderRow("Job Id",null!=(null===(e=this.activeJob)||void 0===e?void 0:e.id)?this.activeJob.id+"":"—"),i("div",{key:"0df37276161f8f641e55a75ed1686e80bc29c9ad",class:"row"},i("udp-text",{key:"6ddd941631ef06cb6cae262078172a7c4857ffcc",variant:"caption1",class:"row-label"},"Status"),i("udp-fluent-badge",{key:"d07d96507c1781a65b46ea45dfb73ddbfbf01831",appearance:"tint",color:this.statusColor(),shape:"rounded",size:"small"},this.statusLabel())),(1===o||2===o||null==o)&&i("udp-progress-bar",{key:"087dd05717fb123c0c20ae057319b41279975219",thickness:"medium",validationState:"info"}),4===o&&i("udp-text",{key:"ef50912c5c52a18ab52f09f5e4cb69de911872ce",variant:"body1"},"The import failed. Check the file and try again."))))),!s&&i("div",{key:"687c78e3f80b112ebce9894a3cbbabf272cfd609",slot:"footer",class:"import-footer"},i("udp-fluent-button",{key:"4c5b77e36707412d8984cbc87402592193b1e868",appearance:"primary",disabled:d||this.preparing||this.importLoading||!this.pendingFile,loading:this.importLoading,startIconName:"import",onClick:()=>{this.handleCreateImport()}},"Start Import"))))}static get watchers(){return{open:[{onOpenChange:0}]}}static get style(){return":host{display:contents}.import-sheet{display:flex;flex-direction:column;gap:var(--spacingVerticalM, 12px)}.stack{display:flex;flex-direction:column;gap:var(--spacingVerticalM, 12px)}.row-list{display:flex;flex-direction:column;gap:var(--spacingVerticalS, 8px);margin-top:var(--spacingVerticalS, 8px)}.row{display:flex;align-items:center;justify-content:space-between;gap:var(--spacingHorizontalM, 12px)}.row-label{color:var(--colorNeutralForeground3, #616161)}.import-footer{display:flex;width:100%}"}},[1,"udp-import-sheet",{open:[1540],entityName:[1,"entity-name"],apiCatalogId:[1,"api-catalog-id"],sheetTitle:[1,"sheet-title"],preparing:[32],selectedEntity:[32],udpJobEntity:[32],errors:[32],files:[32],activeJob:[32],importLoading:[32],phase:[32]},void 0,{open:[{onOpenChange:0}]}]),E=j,C=function(){"undefined"!=typeof customElements&&["udp-import-sheet","udp-flexbox","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-drawer","udp-fluent-file-input","udp-fluent-icon","udp-fluent-icon-button","udp-message-bar","udp-progress-bar","udp-spinner","udp-text"].forEach((t=>{switch(t){case"udp-import-sheet":customElements.get(r(t))||customElements.define(r(t),j);break;case"udp-flexbox":customElements.get(r(t))||u();break;case"udp-fluent-badge":customElements.get(r(t))||c();break;case"udp-fluent-button":customElements.get(r(t))||p();break;case"udp-fluent-card":customElements.get(r(t))||h();break;case"udp-fluent-drawer":customElements.get(r(t))||f();break;case"udp-fluent-file-input":customElements.get(r(t))||m();break;case"udp-fluent-icon":customElements.get(r(t))||b();break;case"udp-fluent-icon-button":customElements.get(r(t))||v();break;case"udp-message-bar":customElements.get(r(t))||g();break;case"udp-progress-bar":customElements.get(r(t))||y();break;case"udp-spinner":customElements.get(r(t))||k();break;case"udp-text":customElements.get(r(t))||x()}}))};export{E as UdpImportSheet,C as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as i,H as r,c as a,h as o,d as t,t as e}from"./index2.js";import{d as c}from"./udp-icon2.js";import{d as n}from"./unity-typography2.js";const s=i(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.cardClick=a(this,"cardClick",7),this.color="primary",this.active=!1,this.actionType="display",this.handleClick=()=>{"navigation"===this.actionType&&null!=this.href&&""!==this.href?window.location.href=this.href:this.cardClick.emit()},this.handleKeyDown=i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.handleClick())},this.resolveCardColor=i=>{if(null==i||""===i)return;let r;switch(i){case"secondary":r="--secondary-color";break;case"info":r="--info-color-main";break;case"success":r="--success-color-main";break;case"warning":r="--warning-color-main";break;case"error":r="--error-color-main";break;default:r="--primary-color"}return`var(${r})`},this.renderCardContent=i=>o("div",{class:"kpi-card__wrapper",style:i},o("div",{class:"kpi-card__content"},o("div",{class:"kpi-card__header"},o("unity-typography",{variant:"h6",color:"inherit"},this.value),o("udp-icon",{iconName:this.iconName,color:"inherit"})),o("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),o("div",{class:"kpi-card-caption"},o("unity-typography",{variant:"caption-text",color:"inherit"},this.secondaryText))))}render(){var i;const r="display"!==this.actionType&&("navigation"===this.actionType||"filter"===this.actionType||"action"===this.actionType),a="navigation"===this.actionType&&null!=this.href&&""!==this.href,e={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},c={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(c);return o(t,{key:"
|
|
1
|
+
import{p as i,H as r,c as a,h as o,d as t,t as e}from"./index2.js";import{d as c}from"./udp-icon2.js";import{d as n}from"./unity-typography2.js";const s=i(class extends r{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.cardClick=a(this,"cardClick",7),this.color="primary",this.active=!1,this.actionType="display",this.handleClick=()=>{"navigation"===this.actionType&&null!=this.href&&""!==this.href?window.location.href=this.href:this.cardClick.emit()},this.handleKeyDown=i=>{"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),this.handleClick())},this.resolveCardColor=i=>{if(null==i||""===i)return;let r;switch(i){case"secondary":r="--secondary-color";break;case"info":r="--info-color-main";break;case"success":r="--success-color-main";break;case"warning":r="--warning-color-main";break;case"error":r="--error-color-main";break;default:r="--primary-color"}return`var(${r})`},this.renderCardContent=i=>o("div",{class:"kpi-card__wrapper",style:i},o("div",{class:"kpi-card__content"},o("div",{class:"kpi-card__header"},o("unity-typography",{variant:"h6",color:"inherit"},this.value),o("udp-icon",{iconName:this.iconName,color:"inherit"})),o("unity-typography",{variant:"body1",color:"inherit"},this.primaryText),o("div",{class:"kpi-card-caption"},o("unity-typography",{variant:"caption-text",color:"inherit"},this.secondaryText))))}render(){var i;const r="display"!==this.actionType&&("navigation"===this.actionType||"filter"===this.actionType||"action"===this.actionType),a="navigation"===this.actionType&&null!=this.href&&""!==this.href,e={"kpi-card":!0,"kpi-card--active":this.active,"kpi-card--clickable":r},c={"--card-color":this.resolveCardColor(this.color)},n=this.renderCardContent(c);return o(t,{key:"1ff3aa25de50f2c96437ce0c9856051f6c4bdc4a"},a?o("a",{href:this.href,class:e,style:{textDecoration:"none"}},n):o("div",{class:e,onClick:r?this.handleClick:void 0,onKeyDown:r?this.handleKeyDown:void 0,tabIndex:r?0:void 0,"aria-current":null!==(i=this.active)&&void 0!==i?i:void 0,"aria-label":this.primaryText,role:"button"},n))}static get style(){return":host{display:inline-block;height:100%}.kpi-card{display:block;text-decoration:none;color:inherit;height:100%}.kpi-card__wrapper{width:160px;height:100%;min-height:80px;border-radius:var(--border-radius, 4px);box-shadow:var(--elevation-02);border:2px solid transparent;transition:var(--input-transition);position:relative;background:white;box-sizing:border-box}.kpi-card--active .kpi-card__wrapper{box-shadow:var(--elevation-04);border-color:var(--card-color, --info-color-main);transform:scale(1.02);z-index:1}.kpi-card--clickable .kpi-card__wrapper{cursor:pointer}.kpi-card--clickable:hover .kpi-card__wrapper{box-shadow:var(--elevation-04);z-index:1;transform:scale(1.02);border-color:var(--card-color, --info-color-main)}.kpi-card--clickable:focus{outline:none}.kpi-card--clickable:focus-visible .kpi-card__wrapper{box-shadow:var(--elevation-04), 0 0 0 3px color-mix(in srgb, var(--card-color, --info-color-main) 30%, transparent);z-index:1;border-color:var(--card-color, --info-color-main)}.kpi-card--active.kpi-card--clickable:hover .kpi-card__wrapper{box-shadow:var(--elevation-04)}.kpi-card__content{padding:var(--spacing-03) var(--spacing-04);overflow:hidden}.kpi-card__header{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-03);color:var(--card-color, --info-color-main)}.kpi-card-caption{color:var(--text-hint);margin-top:-5px}"}},[1,"udp-kpi-card",{cardId:[1,"card-id"],primaryText:[1,"primary-text"],secondaryText:[1,"secondary-text"],color:[1],value:[8],iconName:[1,"icon-name"],active:[4],actionType:[1,"action-type"],href:[1]}]);function d(){"undefined"!=typeof customElements&&["udp-kpi-card","udp-icon","unity-typography"].forEach((i=>{switch(i){case"udp-kpi-card":customElements.get(e(i))||customElements.define(e(i),s);break;case"udp-icon":customElements.get(e(i))||c();break;case"unity-typography":customElements.get(e(i))||n()}}))}export{s as U,d}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "../stencil-library/stencil-library.css";
|
|
2
|
-
import{p as t,H as i,c as
|
|
2
|
+
import{p as t,H as i,c as a,h as e,t as s}from"./index2.js";import{d as r}from"./udp-icon2.js";import{d}from"./udp-kpi-card2.js";import{d as c}from"./unity-typography2.js";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.filterChange=a(this,"filterChange",7)}handleCardClick(t){"action"===(null==t?void 0:t.actionType)&&null!==(null==t?void 0:t.onClick)?t.onClick():"filter"===(null==t?void 0:t.actionType)&&this.filterChange.emit(this.activeFilterId===(null==t?void 0:t.id)||"all"===(null==t?void 0:t.id)?null:null==t?void 0:t.id)}render(){var t;return e("div",{key:"8fb06c95008541429c27cf711942a7ad241ea2a4",class:"kpi-cards-container"},null===(t=this.cards)||void 0===t?void 0:t.map((t=>e("udp-kpi-card",{cardId:t.id,primaryText:t.primaryText,secondaryText:t.secondaryText,color:t.color,value:t.value,active:this.activeFilterId===t.id,actionType:t.actionType,href:t.href,iconName:null==t?void 0:t.iconName,onCardClick:()=>this.handleCardClick(t)}))),e("slot",{key:"31a17d4dbcb45ac86082eb7d7159c335f2de2db1"}))}static get style(){return".kpi-cards-container{display:grid;grid-template-columns:repeat(auto-fit, 160px);grid-auto-rows:1fr;gap:var(--spacing-03, '8px');align-items:stretch}"}},[257,"udp-kpi-cards",{cards:[16],activeFilterId:[1,"active-filter-id"]}]),n=o,l=function(){"undefined"!=typeof customElements&&["udp-kpi-cards","udp-icon","udp-kpi-card","unity-typography"].forEach((t=>{switch(t){case"udp-kpi-cards":customElements.get(s(t))||customElements.define(s(t),o);break;case"udp-icon":customElements.get(s(t))||r();break;case"udp-kpi-card":customElements.get(s(t))||d();break;case"unity-typography":customElements.get(s(t))||c()}}))};export{n as UdpKpiCards,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as i,t as n}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.if=!1,this.unmountDelay=500,this.shouldRender=!1}handleIfChange(t){t?(this.clearCloseTimeout(),this.shouldRender=!0):this.closeTimeout=setTimeout((()=>{this.shouldRender=!1}),this.unmountDelay)}componentWillLoad(){this.if&&(this.shouldRender=!0)}clearCloseTimeout(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}render(){return s(i,{key:"
|
|
1
|
+
import{p as t,H as e,h as s,d as i,t as n}from"./index2.js";const a=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.if=!1,this.unmountDelay=500,this.shouldRender=!1}handleIfChange(t){t?(this.clearCloseTimeout(),this.shouldRender=!0):this.closeTimeout=setTimeout((()=>{this.shouldRender=!1}),this.unmountDelay)}componentWillLoad(){this.if&&(this.shouldRender=!0)}clearCloseTimeout(){this.closeTimeout&&(clearTimeout(this.closeTimeout),this.closeTimeout=null)}render(){return s(i,{key:"518723cdf088e980df4582c1da10c253d10941c3"},this.shouldRender&&this.content?this.content():null)}static get watchers(){return{if:[{handleIfChange:0}]}}},[1,"udp-lazy-loader",{if:[4],unmountDelay:[2,"unmount-delay"],content:[16],shouldRender:[32]},void 0,{if:[{handleIfChange:0}]}]);function h(){"undefined"!=typeof customElements&&["udp-lazy-loader"].forEach((t=>{"udp-lazy-loader"===t&&(customElements.get(n(t))||customElements.define(n(t),a))}))}export{a as U,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,t as s}from"./index2.js";import{v4 as a}from"uuid";import{d}from"./chart-container2.js";import{d as o}from"./chart-kpi2.js";import{d as r}from"./stencil-icon-button2.js";import{d as h}from"./udp-adornment2.js";import{d as n}from"./udp-ambient-card2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as m}from"./udp-badge2.js";import{d as u}from"./udp-xy-chart2.js";import{d as p}from"./unity-typography2.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.xAxisField=void 0,this.yAxisField=void 0,this.title=void 0,this.subheader=void 0,this.kpis=void 0,this.xAxisLabel=void 0,this.yAxisLabel=void 0,this.kpisPosition="left",this.hideAdornment=!1,this.hideScrollbarX=!1,this.hideBorder=!1,this.valueYFields=void 0,this.showBullets=!1,this.chartId=a(),this.xDataType="date",this.yDataType="number",this.distBetweenGridLines=void 0,this.hideLegend=!1,this.removePadding=!1}render(){return i("udp-xy-chart",{key:"
|
|
1
|
+
import{p as t,H as e,h as i,t as s}from"./index2.js";import{v4 as a}from"uuid";import{d}from"./chart-container2.js";import{d as o}from"./chart-kpi2.js";import{d as r}from"./stencil-icon-button2.js";import{d as h}from"./udp-adornment2.js";import{d as n}from"./udp-ambient-card2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as m}from"./udp-badge2.js";import{d as u}from"./udp-xy-chart2.js";import{d as p}from"./unity-typography2.js";const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.xAxisField=void 0,this.yAxisField=void 0,this.title=void 0,this.subheader=void 0,this.kpis=void 0,this.xAxisLabel=void 0,this.yAxisLabel=void 0,this.kpisPosition="left",this.hideAdornment=!1,this.hideScrollbarX=!1,this.hideBorder=!1,this.valueYFields=void 0,this.showBullets=!1,this.chartId=a(),this.xDataType="date",this.yDataType="number",this.distBetweenGridLines=void 0,this.hideLegend=!1,this.removePadding=!1}render(){return i("udp-xy-chart",{key:"fc0f26ae0fa771da39d28090d46bf501368150fb",title:this.title,subheader:this.subheader,data:this.data,chartId:this.chartId,kpis:this.kpis,customWidth:this.customWidth,customHeight:this.customHeight,customCardWidth:this.customCardWidth,kpisPosition:this.kpisPosition,hideAdornment:this.hideAdornment,labelField:this.xAxisField,valueField:this.yAxisField,showBullets:this.showBullets,xDataType:this.xDataType,yDataType:this.yDataType,hideLegend:this.hideLegend,xAxisLabel:this.xAxisLabel,yAxisLabel:this.yAxisLabel,chartType:"Line",hideBorder:this.hideBorder,removePadding:this.removePadding})}get el(){return this}static get style(){return"#udp-line-chart{height:500px;width:500px;z-index:1000}"}},[1,"udp-line-chart",{data:[16],xAxisField:[1,"x-axis-field"],yAxisField:[1,"y-axis-field"],title:[1],subheader:[1],kpis:[16],xAxisLabel:[1,"x-axis-label"],yAxisLabel:[1,"y-axis-label"],customWidth:[8,"custom-width"],customHeight:[8,"custom-height"],customCardWidth:[8,"custom-card-width"],kpisPosition:[1,"kpis-position"],hideAdornment:[4,"hide-adornment"],hideScrollbarX:[4,"hide-scrollbar-x"],hideBorder:[4,"hide-border"],valueYFields:[16],showBullets:[4,"show-bullets"],chartId:[1,"chart-id"],xDataType:[1,"x-data-type"],yDataType:[1,"y-data-type"],distBetweenGridLines:[2,"dist-between-grid-lines"],hideLegend:[4,"hide-legend"],removePadding:[4,"remove-padding"]}]);function b(){"undefined"!=typeof customElements&&["udp-line-chart","chart-container","chart-kpi","stencil-icon-button","udp-adornment","udp-ambient-card","udp-ambient-tool-tip","udp-badge","udp-xy-chart","unity-typography"].forEach((t=>{switch(t){case"udp-line-chart":customElements.get(s(t))||customElements.define(s(t),l);break;case"chart-container":customElements.get(s(t))||d();break;case"chart-kpi":customElements.get(s(t))||o();break;case"stencil-icon-button":customElements.get(s(t))||r();break;case"udp-adornment":customElements.get(s(t))||h();break;case"udp-ambient-card":customElements.get(s(t))||n();break;case"udp-ambient-tool-tip":customElements.get(s(t))||c();break;case"udp-badge":customElements.get(s(t))||m();break;case"udp-xy-chart":customElements.get(s(t))||u();break;case"unity-typography":customElements.get(s(t))||p()}}))}export{l as U,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as o,h as e,d as a,t as d}from"./index2.js";const
|
|
1
|
+
import{p as r,H as o,h as e,d as a,t as d}from"./index2.js";const c=r(class extends o{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.color="primary"}render(){return e(a,{key:"48257b756fee9b23946539dbc48c9b2a93fd9123"},e("div",{key:"8cf293854214f8ac196c502ac89fe7c222f288aa",class:{loader:!0,[`loader--color-${this.color}`]:!0}},e("div",{key:"a79391bfca1aac861aa84739c59cfe5c9bd179c0",class:"indeterminate"})))}static get style(){return":host{--udp-loader-primary-color:var(--primary-color, #2953ff);--udp-loader-secondary-color:var(--secondary-color, #6f767a);--udp-loader-success-color:var(--success-color, #0da40d);--udp-loader-error-color:var(--error-color, #ff0000);--udp-loader-warning-color:var(--warning-color, #ffa500);--udp-loader-info-color:var(--info-color, #2953ff)}.loader{position:relative;width:100%;height:4px;background-color:transparent;overflow:hidden;}.indeterminate{background-color:var(--udp-loader-primary-color);position:absolute;width:40%;height:100%;animation:indeterminate 1s linear infinite}.loader--color-primary .indeterminate{background-color:var(--udp-loader-primary-color)}.loader--color-secondary .indeterminate{background-color:var(--udp-loader-secondary-color)}.loader--color-success .indeterminate{background-color:var(--udp-loader-success-color)}.loader--color-error .indeterminate{background-color:var(--udp-loader-error-color)}.loader--color-warning .indeterminate{background-color:var(--udp-loader-warning-color)}.loader--color-info .indeterminate{background-color:var(--udp-loader-info-color)}@keyframes indeterminate{0%{left:-50%;width:50%}100%{left:100%;width:100%}}"}},[1,"udp-linear-loader",{color:[1]}]);function l(){"undefined"!=typeof customElements&&["udp-linear-loader"].forEach((r=>{"udp-linear-loader"===r&&(customElements.get(d(r))||customElements.define(d(r),c))}))}export{c as U,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as i,h as s,d as a,t as o}from"./index2.js";import"@fluentui/web-components/checkbox.js";import{d as r}from"./udp-fluent-icon2.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.itemAction=i(this,"itemAction",7),this.itemSelect=i(this,"itemSelect",7),this.selected=!1,this.active=!1,this.disabled=!1,this.interactive=!1,this.disabledSelection=!1,this.selectable=!1,this.selectionAsSecondaryAction=!1,this.itemRole="listitem",this.itemTabIndex=-1,this.showDivider=!1,this.size="medium",this.handleClick=e=>{!this.disabled&&this.interactive&&(this.isCheckmarkAreaClick(e)?this.selectable&&!this.disabledSelection&&this.itemSelect.emit({value:this.value,selected:!this.selected}):this.isEndSlotEvent(e)||(!this.selectable||this.disabledSelection||this.selectionAsSecondaryAction?this.itemAction.emit({value:this.value}):this.itemSelect.emit({value:this.value,selected:!this.selected})))},this.handleKeyDown=e=>{if(!this.disabled&&this.interactive&&!this.isEndSlotEvent(e)&&("Enter"===e.key||" "===e.key)){e.preventDefault();const t=this.selectable&&!this.disabledSelection;t&&this.selectionAsSecondaryAction?"Enter"===e.key?this.itemAction.emit({value:this.value}):this.itemSelect.emit({value:this.value,selected:!this.selected}):t?this.itemSelect.emit({value:this.value,selected:!this.selected}):this.itemAction.emit({value:this.value})}},this.handleCheckboxChange=e=>{e.stopPropagation(),this.disabled||this.disabledSelection||this.itemSelect.emit({value:this.value,selected:!!e.target.checked})}}componentDidRender(){this.checkboxEl&&this.checkboxEl.toggleAttribute("disabled",this.disabled||this.disabledSelection)}isCheckmarkAreaClick(e){return e.composedPath().some((e=>{var t;return"FLUENT-CHECKBOX"===e.tagName||(null===(t=e.classList)||void 0===t?void 0:t.contains("checkmark"))}))}isEndSlotEvent(e){return e.composedPath().some((e=>{var t,i;return"end"===(null===(i=(t=e).getAttribute)||void 0===i?void 0:i.call(t,"slot"))}))}render(){return s(a,{key:"
|
|
1
|
+
import{p as e,H as t,c as i,h as s,d as a,t as o}from"./index2.js";import"@fluentui/web-components/checkbox.js";import{d as r}from"./udp-fluent-icon2.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.itemAction=i(this,"itemAction",7),this.itemSelect=i(this,"itemSelect",7),this.selected=!1,this.active=!1,this.disabled=!1,this.interactive=!1,this.disabledSelection=!1,this.selectable=!1,this.selectionAsSecondaryAction=!1,this.itemRole="listitem",this.itemTabIndex=-1,this.showDivider=!1,this.size="medium",this.handleClick=e=>{!this.disabled&&this.interactive&&(this.isCheckmarkAreaClick(e)?this.selectable&&!this.disabledSelection&&this.itemSelect.emit({value:this.value,selected:!this.selected}):this.isEndSlotEvent(e)||(!this.selectable||this.disabledSelection||this.selectionAsSecondaryAction?this.itemAction.emit({value:this.value}):this.itemSelect.emit({value:this.value,selected:!this.selected})))},this.handleKeyDown=e=>{if(!this.disabled&&this.interactive&&!this.isEndSlotEvent(e)&&("Enter"===e.key||" "===e.key)){e.preventDefault();const t=this.selectable&&!this.disabledSelection;t&&this.selectionAsSecondaryAction?"Enter"===e.key?this.itemAction.emit({value:this.value}):this.itemSelect.emit({value:this.value,selected:!this.selected}):t?this.itemSelect.emit({value:this.value,selected:!this.selected}):this.itemAction.emit({value:this.value})}},this.handleCheckboxChange=e=>{e.stopPropagation(),this.disabled||this.disabledSelection||this.itemSelect.emit({value:this.value,selected:!!e.target.checked})}}componentDidRender(){this.checkboxEl&&this.checkboxEl.toggleAttribute("disabled",this.disabled||this.disabledSelection)}isCheckmarkAreaClick(e){return e.composedPath().some((e=>{var t;return"FLUENT-CHECKBOX"===e.tagName||(null===(t=e.classList)||void 0===t?void 0:t.contains("checkmark"))}))}isEndSlotEvent(e){return e.composedPath().some((e=>{var t,i;return"end"===(null===(i=(t=e).getAttribute)||void 0===i?void 0:i.call(t,"slot"))}))}render(){return s(a,{key:"f29286befd08d87a67e969e39a820682b8e50ac3",role:this.itemRole,"aria-selected":this.selectable?String(this.selected):void 0,"aria-current":this.active?"true":void 0,"aria-disabled":this.disabled?"true":void 0,tabIndex:this.disabled?-1:this.itemTabIndex,class:{"is-selected":this.selected,"is-active":this.active,"is-disabled":this.disabled,"is-selectable":this.selectable,"show-divider":this.showDivider},style:{"--udp-list-item-padding-y":{small:"var(--spacingVerticalXS)",medium:"var(--spacingVerticalS)",large:"var(--spacingVerticalL)"}[this.size]},onClick:this.handleClick,onKeyDown:this.handleKeyDown},this.selectable&&s("div",{key:"803ae98fe873da2b7a5450deca0e940b6ee72e0a",class:"checkmark"},s("fluent-checkbox",{key:"eb339e25207bb2b0efaf051b720b14aff5d27ae5",ref:e=>this.checkboxEl=e,tabindex:"-1","aria-hidden":"true",checked:this.selected,onChange:this.handleCheckboxChange})),s("slot",{key:"3618e55ae462bee757feb4828bdbfcb0f1865fd3",name:"start"},this.startIconName&&s("udp-fluent-icon",{key:"bf76661a39b0cc10d6f3cbafa5112e1436b3d59c",name:this.startIconName,size:"sm"})),s("div",{key:"5fe706b41e5f0b0b8bb7f551990d3352807d2666",class:"content"},s("slot",{key:"88f9ab71c03d10784ea24eb7265cfa99a8c21e04",name:"title"},this.label&&s("span",{key:"a2c5a9693361a460a3cb62444c8ac9ce5f9cb580",class:"prop-label"},this.label)),s("slot",{key:"6713d49eebe6e9f7233c0cfe7384cf3e8ce2e536",name:"subtitle"},this.subtitle&&s("span",{key:"18dab1e6f5339c1328252ad7974729f7a4782c68",class:"prop-subtitle"},this.subtitle)),s("slot",{key:"7be9b7acd932a4c3741ab99906839ba817ab89e2"})),s("div",{key:"9a3710c66b00265e7dde79d85488071a8debaaee",class:"end"},s("slot",{key:"202e57331d752aaef9f9aaf9f84c1702b2c57f90",name:"end"})))}get el(){return this}static get style(){return":host{display:flex;align-items:center;gap:var(--spacingHorizontalS);padding:var(--udp-list-item-padding-y, var(--spacingVerticalS)) var(--spacingHorizontalM);box-sizing:border-box;color:var(--colorNeutralForeground1);background-color:transparent;border-radius:var(--borderRadiusMedium);cursor:pointer;outline:none;user-select:none;list-style-type:none;margin:0;transition:background-color 100ms ease}:host(:hover:not(.is-disabled)){background-color:var(--colorNeutralBackground1Hover)}:host(:active:not(.is-disabled)){background-color:var(--colorNeutralBackground1Pressed)}:host(.is-disabled){cursor:default;opacity:0.4}:host(:not([interactive])),:host(:not([interactive]):hover),:host(:not([interactive]):active){cursor:default;background-color:transparent}:host(:focus-visible){outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);outline-offset:-2px;border-radius:var(--borderRadiusMedium)}:host(.is-active),:host(.is-active:hover){background-color:var(--colorBrandBackground2Hover)}:host(.is-active:active){background-color:var(--colorBrandBackground2Pressed)}:host(.show-divider){background-image:linear-gradient(var(--colorNeutralStroke2), var(--colorNeutralStroke2));background-repeat:no-repeat;background-position:0 bottom;background-size:100% 1px}.checkmark{display:flex;align-items:center;flex-shrink:0}.checkmark fluent-checkbox{pointer-events:none;}.content{display:flex;flex-direction:column;gap:1px;flex-grow:1;min-width:0;}.end{display:flex;align-items:center;flex-shrink:0}::slotted(*){min-width:0}::slotted([slot='start']),slot[name='start']>*{flex-shrink:0}.prop-label{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);min-width:0}.prop-subtitle{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);color:var(--colorNeutralForeground2);min-width:0}"}},[257,"udp-fluent-list-item",{value:[8],selected:[4],active:[516],disabled:[4],interactive:[516],disabledSelection:[4,"disabled-selection"],selectable:[4],selectionAsSecondaryAction:[4,"selection-as-secondary-action"],itemRole:[1,"item-role"],itemTabIndex:[2,"item-tab-index"],showDivider:[4,"show-divider"],size:[1],startIconName:[1,"start-icon-name"],label:[1],subtitle:[1]}]);function l(){"undefined"!=typeof customElements&&["udp-fluent-list-item","udp-fluent-icon"].forEach((e=>{switch(e){case"udp-fluent-list-item":customElements.get(o(e))||customElements.define(o(e),n);break;case"udp-fluent-icon":customElements.get(o(e))||r()}}))}export{n as U,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,d as n,t as l}from"./index2.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.listSelectionChange=s(this,"listSelectionChange",7),this.interactive=!1,this.selectionMode="none",this.defaultSelectedItems=[],this.showDivider=!1,this.selectionAsSecondaryAction=!1,this.internalSelectedItems=[],this.focusedIndex=0}componentWillLoad(){this.internalSelectedItems=null!=this.selectedItems?[...this.selectedItems]:[...this.defaultSelectedItems];const t=this.getItems().findIndex((t=>this.internalSelectedItems.includes(t.value)));this.focusedIndex=t>=0?t:0}componentDidLoad(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");this.handleSlotChange=()=>this.syncChildren(),null==e||e.addEventListener("slotchange",this.handleSlotChange),this.syncChildren()}disconnectedCallback(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");this.handleSlotChange&&(null==e||e.removeEventListener("slotchange",this.handleSlotChange))}componentDidUpdate(){this.syncChildren()}handleSelectedItemsChange(t){this.internalSelectedItems=null!=t?[...t]:[];const e=this.getItems(),s=null!=t?e.findIndex((e=>t.includes(e.value))):-1;s>=0&&(this.focusedIndex=s)}getItems(){return Array.from(this.el.querySelectorAll(":scope > udp-fluent-list-item"))}getListRole(){return"none"!==this.selectionMode?"listbox":"list"}getItemRole(t){return"listbox"===t?"option":"listitem"}syncChildren(){const t=this.getItems(),e=this.getListRole(),s=this.getItemRole(e);t.forEach(((e,i)=>{const n="none"!==this.selectionMode,l=this.interactive||n,o=this.internalSelectedItems.includes(e.value),h=this.showDivider&&i<t.length-1,c=l&&i===this.focusedIndex?0:-1;if(e.interactive!==l&&(e.interactive=l),e.selectable!==n&&(e.selectable=n),e.selected!==o&&(e.selected=o),void 0!==this.activeItem){const t=e.value===this.activeItem;e.active!==t&&(e.active=t)}e.itemRole!==s&&(e.itemRole=s),e.showDivider!==h&&(e.showDivider=h),e.itemTabIndex!==c&&(e.itemTabIndex=c),e.selectionAsSecondaryAction!==this.selectionAsSecondaryAction&&(e.selectionAsSecondaryAction=this.selectionAsSecondaryAction)}))}handleItemSelect(t){t.stopPropagation();const{value:e,selected:s}=t.detail;let i;if("single"===this.selectionMode)i=s?[e]:[];else{if("multiselect"!==this.selectionMode)return;i=s?[...this.internalSelectedItems,e]:this.internalSelectedItems.filter((t=>t!==e))}this.internalSelectedItems=i,this.listSelectionChange.emit({selectedItems:i})}handleKeyDown(t){const e="ArrowUp"===t.key,s="Home"===t.key,i="End"===t.key;if(!(e||"ArrowDown"===t.key||s||i))return;if(t.composedPath().some((t=>{var e,s;return"end"===(null===(s=(e=t).getAttribute)||void 0===s?void 0:s.call(e,"slot"))})))return;t.preventDefault();const n=this.getItems(),l=n.filter((t=>!t.disabled&&t.interactive));if(0===l.length)return;const o=this.el.querySelector("udp-fluent-list-item:focus"),h=o?l.indexOf(o):-1;let c;c=s?0:i?l.length-1:e?h<=0?l.length-1:h-1:h>=l.length-1?0:h+1;const d=l[c];this.focusedIndex=n.indexOf(d),this.syncChildren(),d.focus()}render(){const t=this.getListRole();return i(n,{key:"
|
|
1
|
+
import{p as t,H as e,c as s,h as i,d as n,t as l}from"./index2.js";const o=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.listSelectionChange=s(this,"listSelectionChange",7),this.interactive=!1,this.selectionMode="none",this.defaultSelectedItems=[],this.showDivider=!1,this.selectionAsSecondaryAction=!1,this.internalSelectedItems=[],this.focusedIndex=0}componentWillLoad(){this.internalSelectedItems=null!=this.selectedItems?[...this.selectedItems]:[...this.defaultSelectedItems];const t=this.getItems().findIndex((t=>this.internalSelectedItems.includes(t.value)));this.focusedIndex=t>=0?t:0}componentDidLoad(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");this.handleSlotChange=()=>this.syncChildren(),null==e||e.addEventListener("slotchange",this.handleSlotChange),this.syncChildren()}disconnectedCallback(){var t;const e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector("slot");this.handleSlotChange&&(null==e||e.removeEventListener("slotchange",this.handleSlotChange))}componentDidUpdate(){this.syncChildren()}handleSelectedItemsChange(t){this.internalSelectedItems=null!=t?[...t]:[];const e=this.getItems(),s=null!=t?e.findIndex((e=>t.includes(e.value))):-1;s>=0&&(this.focusedIndex=s)}getItems(){return Array.from(this.el.querySelectorAll(":scope > udp-fluent-list-item"))}getListRole(){return"none"!==this.selectionMode?"listbox":"list"}getItemRole(t){return"listbox"===t?"option":"listitem"}syncChildren(){const t=this.getItems(),e=this.getListRole(),s=this.getItemRole(e);t.forEach(((e,i)=>{const n="none"!==this.selectionMode,l=this.interactive||n,o=this.internalSelectedItems.includes(e.value),h=this.showDivider&&i<t.length-1,c=l&&i===this.focusedIndex?0:-1;if(e.interactive!==l&&(e.interactive=l),e.selectable!==n&&(e.selectable=n),e.selected!==o&&(e.selected=o),void 0!==this.activeItem){const t=e.value===this.activeItem;e.active!==t&&(e.active=t)}e.itemRole!==s&&(e.itemRole=s),e.showDivider!==h&&(e.showDivider=h),e.itemTabIndex!==c&&(e.itemTabIndex=c),e.selectionAsSecondaryAction!==this.selectionAsSecondaryAction&&(e.selectionAsSecondaryAction=this.selectionAsSecondaryAction)}))}handleItemSelect(t){t.stopPropagation();const{value:e,selected:s}=t.detail;let i;if("single"===this.selectionMode)i=s?[e]:[];else{if("multiselect"!==this.selectionMode)return;i=s?[...this.internalSelectedItems,e]:this.internalSelectedItems.filter((t=>t!==e))}this.internalSelectedItems=i,this.listSelectionChange.emit({selectedItems:i})}handleKeyDown(t){const e="ArrowUp"===t.key,s="Home"===t.key,i="End"===t.key;if(!(e||"ArrowDown"===t.key||s||i))return;if(t.composedPath().some((t=>{var e,s;return"end"===(null===(s=(e=t).getAttribute)||void 0===s?void 0:s.call(e,"slot"))})))return;t.preventDefault();const n=this.getItems(),l=n.filter((t=>!t.disabled&&t.interactive));if(0===l.length)return;const o=this.el.querySelector("udp-fluent-list-item:focus"),h=o?l.indexOf(o):-1;let c;c=s?0:i?l.length-1:e?h<=0?l.length-1:h-1:h>=l.length-1?0:h+1;const d=l[c];this.focusedIndex=n.indexOf(d),this.syncChildren(),d.focus()}render(){const t=this.getListRole();return i(n,{key:"91efac9dbfb9634d240c69ea4eef59a67465aa33"},i("list"===t?"ul":"div",Object.assign({},{class:"list-root",role:t,"aria-multiselectable":"multiselect"===this.selectionMode?"true":void 0}),i("slot",null)))}get el(){return this}static get watchers(){return{selectedItems:[{handleSelectedItemsChange:0}]}}static get style(){return":host{display:block}.list-root{display:flex;flex-direction:column;padding:0;margin:0;list-style-type:none}"}},[257,"udp-list",{interactive:[4],selectionMode:[1,"selection-mode"],selectedItems:[16],defaultSelectedItems:[16],activeItem:[8,"active-item"],showDivider:[4,"show-divider"],selectionAsSecondaryAction:[4,"selection-as-secondary-action"],internalSelectedItems:[32]},[[0,"itemSelect","handleItemSelect"],[0,"keydown","handleKeyDown"]],{selectedItems:[{handleSelectedItemsChange:0}]}]);function h(){"undefined"!=typeof customElements&&["udp-list"].forEach((t=>{"udp-list"===t&&(customElements.get(l(t))||customElements.define(l(t),o))}))}export{o as U,h as d}
|