udp-stencil-component-library 25.18.1 → 25.18.2-beta.10
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-C1sUitjQ.js +0 -3
- package/dist/cjs/action-column-util-CQRWvOT6.js +0 -3
- package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +45 -30
- package/dist/cjs/advanced-search-builder.cjs.entry.js +3 -4
- package/dist/cjs/advanced-search_12.cjs.entry.js +57 -40
- package/dist/cjs/ag-grid-base_6.cjs.entry.js +53 -28
- package/dist/cjs/ambient-template-grid.cjs.entry.js +86 -41
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +16 -7
- package/dist/cjs/apiUtils-DT-fLJOw.js +0 -3
- package/dist/cjs/app-bar.cjs.entry.js +4 -5
- package/dist/cjs/catalog-store-BOiNPWZB.js +0 -3
- package/dist/cjs/chart-container_3.cjs.entry.js +7 -8
- package/dist/cjs/chartUtils-Gg3D2Moc.js +0 -3
- package/dist/cjs/check-box-group.cjs.entry.js +6 -5
- package/dist/cjs/check-box.cjs.entry.js +14 -9
- package/dist/cjs/chip-section.cjs.entry.js +8 -7
- package/dist/cjs/client-side-grid_2.cjs.entry.js +9 -8
- package/dist/cjs/common-By_kzIQM.js +0 -3
- package/dist/cjs/configService-BmGAegZf.js +0 -3
- package/dist/cjs/configureUdpColumnMods-CQMOB8IW.js +0 -3
- package/dist/cjs/conversionFunctions-B_9y17KE.js +0 -3
- package/dist/cjs/currency-renderer-xzaldEo2.js +0 -3
- package/dist/cjs/custom-button.cjs.entry.js +3 -4
- package/dist/cjs/{date-time-renderer_6.cjs.entry.js → date-time-renderer_7.cjs.entry.js} +57 -24
- package/dist/cjs/entity-maintenance-grid.cjs.entry.js +2 -3
- package/dist/cjs/{enums-ibNZ4cZ4.js → enums-B3aaCQaV.js} +8 -4
- package/dist/cjs/feature-details-card_2.cjs.entry.js +24 -15
- package/dist/cjs/file-upload_3.cjs.entry.js +23 -12
- package/dist/cjs/filter-conditions_7.cjs.entry.js +23 -20
- package/dist/cjs/filter-group_2.cjs.entry.js +5 -6
- package/dist/cjs/fluent-dialog.cjs.entry.js +3 -4
- package/dist/cjs/{image-upload_7.cjs.entry.js → form-metadata-display_8.cjs.entry.js} +121 -42
- package/dist/cjs/getCurrentApiCatalogId-D7xHCEzs.js +0 -3
- package/dist/cjs/iconMapping-CkHR1LGY.js +0 -3
- package/dist/cjs/iconUtils-BuDk48Xh.js +0 -3
- package/dist/cjs/{index-CGCOXUJE.js → index-SNloIaSR.js} +325 -202
- package/dist/cjs/index.cjs.js +138 -1
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/logical-search-indicator.cjs.entry.js +3 -4
- package/dist/cjs/makeApiCall-CFfg9gI0.js +0 -3
- package/dist/cjs/map-component_2.cjs.entry.js +61 -24
- package/dist/cjs/numeric-field_5.cjs.entry.js +71 -42
- package/dist/cjs/primary-action-header_2.cjs.entry.js +395 -0
- package/dist/cjs/question-configs-renderer_4.cjs.entry.js +21 -22
- package/dist/cjs/resource-timeline-calendar.cjs.entry.js +13 -8
- package/dist/cjs/search-method-grid.cjs.entry.js +7 -4
- package/dist/cjs/server-side-grid.cjs.entry.js +5 -4
- package/dist/cjs/side-sheet-container.cjs.entry.js +4 -5
- package/dist/cjs/simple-card.cjs.entry.js +3 -4
- package/dist/cjs/status-chip_2.cjs.entry.js +8 -7
- package/dist/cjs/stencil-chip.cjs.entry.js +6 -5
- package/dist/cjs/stencil-icon-button-grid-action-header.cjs.entry.js +3 -4
- package/dist/cjs/stencil-icon-button_3.cjs.entry.js +7 -8
- package/dist/cjs/stencil-library.cjs.js +3 -4
- package/dist/cjs/stencil-toggle.cjs.entry.js +16 -11
- package/dist/cjs/tenantUtils-BCKSE0vq.js +0 -3
- package/dist/cjs/text-field_2.cjs.entry.js +36 -21
- package/dist/cjs/transformSearchData-B4bk4Aik.js +0 -3
- package/dist/cjs/udp-adornment.cjs.entry.js +3 -4
- package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +7 -4
- package/dist/cjs/udp-attachment-item_2.cjs.entry.js +5 -6
- package/dist/cjs/udp-attachment-list.cjs.entry.js +1 -2
- package/dist/cjs/udp-avatar.cjs.entry.js +3 -4
- package/dist/cjs/udp-bar-chart_4.cjs.entry.js +45 -22
- package/dist/cjs/udp-button.cjs.entry.js +3 -4
- package/dist/cjs/udp-calendar-base.cjs.entry.js +6 -5
- package/dist/cjs/udp-calendar-day.cjs.entry.js +3 -4
- package/dist/cjs/udp-calendar-month.cjs.entry.js +3 -4
- package/dist/cjs/udp-calendar-week.cjs.entry.js +3 -4
- package/dist/cjs/udp-calendar-year.cjs.entry.js +3 -4
- package/dist/cjs/udp-card-action-area.cjs.entry.js +3 -4
- package/dist/cjs/udp-card_6.cjs.entry.js +13 -14
- package/dist/cjs/udp-charts-example.cjs.entry.js +1 -2
- package/dist/cjs/udp-chip_3.cjs.entry.js +11 -10
- package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +4 -5
- package/dist/cjs/udp-container-query-grid.cjs.entry.js +4 -5
- package/dist/cjs/udp-container-query.cjs.entry.js +5 -6
- package/dist/cjs/udp-container.cjs.entry.js +34 -0
- package/dist/cjs/udp-date-range-selector.cjs.entry.js +4 -5
- package/dist/cjs/udp-divider.cjs.entry.js +3 -4
- package/dist/cjs/udp-drive-utils-B8uPAKzW.js +0 -3
- package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +7 -6
- package/dist/cjs/udp-dynamic-form.cjs.entry.js +3 -4
- package/dist/cjs/udp-form-api-utils-BwNeblH_.js +0 -3
- package/dist/cjs/{udp-forms-builder-question-template-BlgDh7P5.js → udp-forms-builder-question-template-BS5ijef_.js} +8 -4
- package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +4 -5
- package/dist/cjs/udp-forms-builder.cjs.entry.js +12 -9
- package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +4 -5
- package/dist/cjs/udp-forms-list-card.cjs.entry.js +7 -8
- package/dist/cjs/udp-forms-list.cjs.entry.js +10 -9
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +830 -772
- package/dist/cjs/udp-forms-ui.cjs.entry.js +18 -17
- package/dist/cjs/udp-icon.cjs.entry.js +3 -4
- package/dist/cjs/udp-kpi-card.cjs.entry.js +3 -4
- package/dist/cjs/udp-kpi-cards.cjs.entry.js +3 -4
- package/dist/cjs/udp-linear-loader_2.cjs.entry.js +292 -0
- package/dist/cjs/udp-list-renderer_2.cjs.entry.js +8 -7
- package/dist/cjs/udp-map-utils-BXqQmr-h.js +0 -3
- package/dist/cjs/udp-map.cjs.entry.js +12 -9
- package/dist/cjs/{udp-pop-over.cjs.entry.js → udp-menu-item_2.cjs.entry.js} +28 -5
- package/dist/cjs/udp-page.cjs.entry.js +4 -5
- package/dist/cjs/udp-sankey-chart.cjs.entry.js +30 -13
- package/dist/cjs/udp-skeleton-loading.cjs.entry.js +4 -5
- package/dist/cjs/udp-split-screen.cjs.entry.js +4 -5
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +2 -3
- package/dist/cjs/udp-stepper.cjs.entry.js +6 -5
- package/dist/cjs/udp-tab-panel.cjs.entry.js +5 -6
- package/dist/cjs/udp-tab.cjs.entry.js +4 -5
- package/dist/cjs/udp-timeline-connector.cjs.entry.js +4 -5
- package/dist/cjs/udp-timeline-dot.cjs.entry.js +4 -5
- package/dist/cjs/udp-timeline-item.cjs.entry.js +5 -6
- package/dist/cjs/udp-timeline-separator.cjs.entry.js +4 -5
- package/dist/cjs/udp-timeline.cjs.entry.js +4 -5
- package/dist/cjs/udp-vertical-spacer.cjs.entry.js +4 -5
- package/dist/cjs/udp-xy-chart.cjs.entry.js +39 -16
- package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +27 -12
- package/dist/cjs/udpFieldHelper-0jB0kwFN.js +0 -3
- package/dist/cjs/udpOperatorHelper-MMG_hrZS.js +0 -3
- package/dist/cjs/unity-typography.cjs.entry.js +3 -4
- package/dist/cjs/{utils-DZ_OMtAy.js → utils-Bp02BX38.js} +6 -9
- package/dist/collection/collection-manifest.json +4 -2
- package/dist/collection/components/advanced-search/advanced-search-grouped.js +12 -11
- package/dist/collection/components/advanced-search/advanced-search.js +0 -1
- package/dist/collection/components/advanced-search/filter-conditions/filter-conditions.js +0 -1
- package/dist/collection/components/advanced-search/types.js +0 -1
- package/dist/collection/components/advanced-search/ui/logical-search-indicator/logical-search-indicator.js +0 -1
- package/dist/collection/components/advanced-search-builder/advanced-search-builder.js +10 -6
- package/dist/collection/components/advanced-search-builder/filter-group.js +4 -3
- package/dist/collection/components/advanced-search-builder/helperFunctions/createStringFromSearchObject.js +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/fieldRenderer.js +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/udpFieldHelper.js +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/udpOperatorHelper.js +0 -1
- package/dist/collection/components/advanced-search-builder/models.js +0 -1
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +8 -5
- package/dist/collection/components/advanced-search-builder/validation-chip.js +0 -1
- package/dist/collection/components/attachment-list/type.js +0 -1
- package/dist/collection/components/attachment-list/udp-attachment-item.js +0 -1
- package/dist/collection/components/attachment-list/udp-attachment-list.js +2 -2
- package/dist/collection/components/buttons/icon-button/function-button/udp-function-button.js +0 -1
- package/dist/collection/components/buttons/icon-button/primary-button/custom-button.js +0 -1
- package/dist/collection/components/buttons/icon-button/radio-button/udp-radio-button.js +0 -1
- package/dist/collection/components/buttons/icon-button/stencil-icon-button-grid-action-header.js +0 -1
- package/dist/collection/components/buttons/icon-button/stencil-icon-button.js +0 -1
- package/dist/collection/components/buttons/udp-button/udp-button.js +0 -1
- package/dist/collection/components/buttons/udp-icon-button/udp-icon-button.js +0 -1
- package/dist/collection/components/calendar/udp-calendar-base.js +0 -1
- package/dist/collection/components/calendar/udp-calendar-day.js +0 -1
- package/dist/collection/components/calendar/udp-calendar-month.js +0 -1
- package/dist/collection/components/calendar/udp-calendar-week.js +0 -1
- package/dist/collection/components/calendar/udp-calendar-year.js +0 -1
- package/dist/collection/components/charts/chart-container/chart-container.js +0 -1
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js +0 -1
- package/dist/collection/components/charts/chartUtils.js +0 -1
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +0 -1
- package/dist/collection/components/charts/udp-charts-example.js +0 -1
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +0 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +0 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +0 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +0 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +2 -2
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +8 -5
- package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +0 -1
- package/dist/collection/components/data-display/badge/udp-badge.js +0 -1
- package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +2 -2
- package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card.js +2 -2
- package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +0 -1
- package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +0 -1
- package/dist/collection/components/data-display/chips/udp-chip.js +0 -1
- package/dist/collection/components/data-display/divider/udp-divider.js +0 -1
- package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +0 -1
- package/dist/collection/components/data-display/headers/udp-column-header.js +0 -1
- package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +0 -1
- package/dist/collection/components/data-display/hint-panel/hint-panel.js +0 -1
- package/dist/collection/components/data-display/icons/CarbonIcon.js +0 -1
- package/dist/collection/components/data-display/icons/iconMapping.js +0 -1
- package/dist/collection/components/data-display/icons/iconUtils.js +0 -1
- package/dist/collection/components/data-display/icons/udp-icon.js +0 -1
- package/dist/collection/components/data-display/kpi/kpi-list.js +0 -1
- package/dist/collection/components/data-display/kpi/types.js +0 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-card.js +4 -3
- package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
- package/dist/collection/components/data-display/list-item/list-item.js +0 -1
- package/dist/collection/components/data-display/list-renderer/udp-list-renderer.js +0 -1
- package/dist/collection/components/data-display/pop-over/interfaces/popoverInterfaces.js +0 -1
- package/dist/collection/components/data-display/pop-over/udp-pop-over.js +0 -1
- package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +0 -1
- package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +0 -1
- package/dist/collection/components/data-display/simple-card/simple-card.js +0 -1
- package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +0 -1
- package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +0 -1
- package/dist/collection/components/data-display/tree/tree-list-item/tree-list-item.js +0 -1
- package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +0 -1
- package/dist/collection/components/dialogs/fluent-dialog/fluent-dialog.js +0 -1
- package/dist/collection/components/dialogs/udp-dialog.css +11 -3
- package/dist/collection/components/dialogs/udp-dialog.js +0 -1
- package/dist/collection/components/drawers/udp-side-sheet/types.js +0 -1
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.css +34 -14
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +4 -3
- package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +0 -1
- package/dist/collection/components/feedback/udp-notification/udp-notification.js +0 -1
- package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +0 -1
- package/dist/collection/components/forms/edit-view-form/edit-view-form.js +0 -1
- package/dist/collection/components/forms/form/stencil-field.js +0 -1
- package/dist/collection/components/forms/form/stencil-form.js +2 -2
- package/dist/collection/components/forms/form/useFormApi.js +0 -1
- package/dist/collection/components/forms/save-view-form/save-view-form.js +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.js +1 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/typographyVariantsList.js +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +5 -5
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.css +8 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +173 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-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 +6 -7
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer/question-specific-configs-renderer.js +3 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +3 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +5 -5
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.js +8 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.js +6 -6
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-form-api-utils.js +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +7 -8
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +4 -5
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +3 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.js +28 -54
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/comments-crud-utils.js +152 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/repeated-section-utils.js +103 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/utils.js +240 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +245 -516
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.js +0 -1
- package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpForm.js +0 -1
- package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpFormSubmission.js +5 -13
- package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/enums.js +8 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-handler/IFormHandler.js +1 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-handler/UdpFormHandler.js +27 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/FormSubmissionHandler.js +141 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/FormSubmissionHandlerFactory.js +9 -0
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/IFormSubmissionHandler.js +1 -0
- package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/formUtils.js +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-utils/types.js +1 -0
- package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/utils.js +5 -6
- package/dist/collection/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.js +12 -11
- package/dist/collection/components/forms/udp-forms/udp-question/udp-question.js +53 -37
- package/dist/collection/components/grid/ag-table/ag-table.js +3 -3
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-functions/buildGroupedSearchPayload.js +0 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +18 -18
- package/dist/collection/components/grid/ambient-template-grid/enums/gridEnums.js +0 -1
- package/dist/collection/components/grid/ambient-template-grid/interfaces/gridInterfaces.js +0 -1
- package/dist/collection/components/grid/ambient-template-grid/license/licenseKey.js +0 -1
- package/dist/collection/components/grid/ambient-template-grid/static-data/get-all-hotlists.js +0 -1
- package/dist/collection/components/grid/conversionFunctions/conversionFunctions.js +0 -1
- package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -3
- package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -2
- package/dist/collection/components/grid/new-grid/ag-grid-base.js +14 -8
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +13 -8
- package/dist/collection/components/grid/new-grid/client-side-grid.js +13 -8
- package/dist/collection/components/grid/new-grid/datasources/searchMethodDatasource.js +1 -1
- package/dist/collection/components/grid/new-grid/entity-maintenance-grid.js +3 -3
- package/dist/collection/components/grid/new-grid/grid-header.js +4 -3
- package/dist/collection/components/grid/new-grid/gridFunctionRegistry.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/advancedSearch.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridAutoSizeColumns.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridExport.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridHideShowColumns.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridResetColumns.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridSizeColumnsToFit.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/bulkActions.js +24 -10
- package/dist/collection/components/grid/new-grid/gridFunctions/chipFilter.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/restoreGridState.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/savedViews.js +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/udpExport.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/configureUdpColumnMods.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/convertBackendTypeToAgGridType.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/convertSearchObjectToAgGridModel.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/guardedViewTransitions.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/searchObjectHelper.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/toggleAgGridColumnFilter.js +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/valueFormatters.js +0 -1
- package/dist/collection/components/grid/new-grid/interfaces/grid.js +0 -1
- package/dist/collection/components/grid/new-grid/interfaces/gridFunction.js +0 -1
- package/dist/collection/components/grid/new-grid/search-method-grid.js +16 -9
- package/dist/collection/components/grid/new-grid/server-side-grid.js +15 -9
- package/dist/collection/components/grid/renderers/actions-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/ag-grid-subtitle-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/currency-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/custom-actions-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/custom-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/date-time-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/email-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/hot-list-add-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/hover-content-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/icon-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/open-function-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/return-search-data-cell-renderer.js +0 -1
- package/dist/collection/components/grid/renderers/sharedContext.js +0 -1
- package/dist/collection/components/grid/renderers/status-renderer.js +0 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +5 -4
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-column-header.js +0 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +6 -5
- package/dist/collection/components/inputs/checkbox/check-box.js +2 -3
- package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +1 -2
- package/dist/collection/components/inputs/date-selector/udp-date-selector.js +7 -6
- package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +7 -6
- package/dist/collection/components/inputs/file-upload/file-upload.js +2 -2
- package/dist/collection/components/inputs/file-upload/udp-drive-utils.js +0 -1
- package/dist/collection/components/inputs/form metadata display/form-metadata-display.css +37 -0
- package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +190 -0
- package/dist/collection/components/inputs/image-upload/image-upload.js +3 -3
- package/dist/collection/components/inputs/input-types.js +0 -1
- package/dist/collection/components/inputs/numeric-field/numeric-field.js +7 -6
- package/dist/collection/components/inputs/selectable-list/selectable-list.js +4 -3
- package/dist/collection/components/inputs/signature-input/signature-input.js +10 -7
- package/dist/collection/components/inputs/tally/tally.js +6 -5
- package/dist/collection/components/inputs/text-area/text-area.js +7 -6
- package/dist/collection/components/inputs/text-field/text-field.js +7 -6
- package/dist/collection/components/inputs/time-selector/udp-time-selector.js +7 -6
- package/dist/collection/components/inputs/toggle/stencil-toggle.js +8 -7
- package/dist/collection/components/inputs/udp-selector/udp-selector.js +8 -7
- package/dist/collection/components/layout/udp-container/udp-container.js +2 -3
- package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -3
- package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -2
- package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -2
- package/dist/collection/components/layout/udp-page/udp-page.js +1 -2
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -2
- package/dist/collection/components/layout/udp-vertical-spacer.js +1 -2
- package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -3
- package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -2
- package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -2
- package/dist/collection/components/map/udp-map/map-component.js +1 -2
- package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -4
- package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -5
- package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -2
- package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -3
- package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -2
- package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +6 -7
- package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -2
- package/dist/collection/components/map/udp-map/udp-map.js +3 -4
- package/dist/collection/components/map/udp-map/utils/check-box-group.js +0 -1
- package/dist/collection/components/map/udp-map/utils/common.js +0 -1
- package/dist/collection/components/map/udp-map/utils/map-interactions.js +0 -1
- package/dist/collection/components/map/udp-map/utils/udp-map-utils.js +0 -1
- package/dist/collection/components/menu/menu-item/udp-menu-item.js +3 -3
- package/dist/collection/components/menu/udp-menu.js +1 -2
- package/dist/collection/components/navigation/pagination/udp-pagination.js +0 -1
- package/dist/collection/components/navigation/udp-link/udp-link.js +0 -1
- package/dist/collection/components/stepper/types.js +0 -1
- package/dist/collection/components/stepper/udp-stepper-demo.js +1 -2
- package/dist/collection/components/stepper/udp-stepper.js +6 -4
- package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -3
- package/dist/collection/components/tabs/tab/udp-tab.js +1 -2
- package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +2 -3
- package/dist/collection/components/timeline/udp-timeline-connector.js +1 -2
- package/dist/collection/components/timeline/udp-timeline-dot.js +1 -2
- package/dist/collection/components/timeline/udp-timeline-item.js +2 -3
- package/dist/collection/components/timeline/udp-timeline-separator.js +1 -2
- package/dist/collection/components/timeline/udp-timeline.js +1 -2
- package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -2
- package/dist/collection/components/unity-typography/types.js +0 -1
- package/dist/collection/components/unity-typography/unity-typography.js +4 -3
- package/dist/collection/components/util/ghost-render/ghost-render.js +1 -2
- package/dist/collection/components.stories.js +0 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -2
- package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -2
- package/dist/collection/global/configService.js +0 -1
- package/dist/collection/global/types.js +0 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/store/catalog-store.js +0 -1
- package/dist/collection/store/lookups-store.js +0 -1
- package/dist/collection/udp-utilities/api/makeApiCall/examples.js +0 -1
- package/dist/collection/udp-utilities/api/makeApiCall/makeApiCall.js +0 -1
- package/dist/collection/udp-utilities/api-config/configService.js +0 -1
- package/dist/collection/udp-utilities/api-config/index.js +0 -1
- package/dist/collection/udp-utilities/api-udp/apiMutate.js +0 -1
- package/dist/collection/udp-utilities/api-udp/apiUtils.js +0 -1
- package/dist/collection/udp-utilities/api-udp/baseUrls.js +0 -1
- package/dist/collection/udp-utilities/catalog/getCurrentApiCatalogId.js +0 -1
- package/dist/collection/udp-utilities/entityUtilities.js +0 -1
- package/dist/collection/udp-utilities/enums/unity-system-enums.js +0 -1
- package/dist/collection/udp-utilities/grid/action-renderers/action-column-util.js +0 -1
- package/dist/collection/udp-utilities/grid/convertToAgGridColumns.js +0 -1
- package/dist/collection/udp-utilities/grid/data-converters/transformSearchData.js +0 -1
- package/dist/collection/udp-utilities/grid/data-source/SearchServiceDatasource.js +0 -1
- package/dist/collection/udp-utilities/grid/models/udp-models.js +0 -1
- package/dist/collection/udp-utilities/grid/search/inquiry-search-datasource.js +0 -1
- package/dist/collection/udp-utilities/grid/search/search-utilities.js +0 -1
- package/dist/collection/udp-utilities/grid/udp-grid-enums.js +0 -1
- package/dist/collection/udp-utilities/interfaces/searchObject.js +0 -1
- package/dist/collection/udp-utilities/layout/breakpoints/breakpoints.js +0 -1
- package/dist/collection/udp-utilities/layout/breakpoints/useMatchBreakpoint.js +0 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -3
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -2
- package/dist/collection/udp-utilities/search/SearchBuilder.js +0 -1
- package/dist/collection/udp-utilities/search/index.js +0 -1
- package/dist/collection/udp-utilities/string-utilities.js +0 -1
- package/dist/collection/udp-utilities/tenant/tenantUtils.js +0 -1
- package/dist/collection/udp-utilities/udp-websocket-client/udp-websocket-client.js +136 -0
- package/dist/collection/udp-utilities/unity-session-storage.js +0 -1
- package/dist/collection/udp-utilities/user/getUserId.js +0 -1
- package/dist/components/SearchBuilder.js +1 -366
- package/dist/components/action-column-util.js +1 -42
- package/dist/components/add-map-feature-popup.js +1 -9
- package/dist/components/add-map-feature-popup2.js +1 -144
- package/dist/components/advanced-search-builder.js +1 -9
- package/dist/components/advanced-search-builder2.js +1 -458
- package/dist/components/advanced-search-grouped.js +1 -9
- package/dist/components/advanced-search-grouped2.js +1 -366
- package/dist/components/advanced-search.js +1 -9
- package/dist/components/advanced-search2.js +1 -270
- package/dist/components/ag-grid-base.js +1 -9
- package/dist/components/ag-grid-base2.js +1 -1087
- package/dist/components/ag-table.js +1 -9
- package/dist/components/ag-table2.js +1 -37
- package/dist/components/ambient-template-grid.js +1 -4395
- package/dist/components/api-method-instance-grid.js +1 -331
- package/dist/components/apiUtils.js +1 -431
- package/dist/components/app-bar.js +1 -77
- package/dist/components/catalog-store.js +1 -30
- package/dist/components/chart-container.js +1 -9
- package/dist/components/chart-container2.js +1 -129
- package/dist/components/chart-kpi.js +1 -9
- package/dist/components/chart-kpi2.js +1 -44
- package/dist/components/chartUtils.js +1 -574
- package/dist/components/check-box-group.js +1 -9
- package/dist/components/check-box-group2.js +1 -172
- package/dist/components/check-box.js +1 -152
- package/dist/components/chip-section.js +1 -179
- package/dist/components/client-side-grid.js +1 -9
- package/dist/components/client-side-grid2.js +1 -158
- package/dist/components/common.js +1 -8
- package/dist/components/configService.js +1 -173
- package/dist/components/conversionFunctions.js +1 -132
- package/dist/components/custom-button.js +1 -9
- package/dist/components/custom-button2.js +1 -77
- package/dist/components/date-time-renderer.js +1 -9
- package/dist/components/date-time-renderer2.js +1 -135
- package/dist/components/edit-view-form-dialog.js +1 -9
- package/dist/components/edit-view-form.js +1 -133
- package/dist/components/entity-maintenance-grid.js +1 -64
- package/dist/components/enums.js +1 -36
- package/dist/components/feature-details-card.js +1 -9
- package/dist/components/feature-details-card2.js +1 -221
- package/dist/components/feature-details-popup.js +1 -9
- package/dist/components/feature-details-popup2.js +1 -155
- package/dist/components/file-upload-renderer.js +1 -9
- package/dist/components/file-upload-renderer2.js +1 -68
- package/dist/components/file-upload.js +1 -9
- package/dist/components/file-upload2.js +1 -991
- package/dist/components/filter-conditions.js +1 -9
- package/dist/components/filter-conditions2.js +1 -47
- package/dist/components/filter-group.js +1 -9
- package/dist/components/filter-group2.js +1 -452
- package/dist/components/fluent-dialog.js +1 -9
- package/dist/components/fluent-dialog2.js +1 -74
- package/dist/components/form-metadata-display-renderer.d.ts +11 -0
- package/dist/components/form-metadata-display-renderer.js +1 -0
- package/dist/components/form-metadata-display-renderer2.js +1 -0
- package/dist/components/form-metadata-display.d.ts +11 -0
- package/dist/components/form-metadata-display.js +1 -0
- package/dist/components/form-metadata-display2.js +1 -0
- package/dist/components/forms-builder-utils.js +1 -47
- package/dist/components/ghost-render.js +1 -9
- package/dist/components/ghost-render2.js +1 -102
- package/dist/components/grid-header.js +1 -9
- package/dist/components/grid-header2.js +1 -126
- package/dist/components/grid-primary-bar.js +1 -9
- package/dist/components/grid-primary-bar2.js +1 -268
- package/dist/components/hint-panel.js +1 -9
- package/dist/components/hint-panel2.js +1 -55
- package/dist/components/image-upload.js +1 -9
- package/dist/components/image-upload2.js +1 -126
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -74
- package/dist/components/index2.js +1 -1762
- package/dist/components/kpi-list.js +1 -9
- package/dist/components/kpi-list2.js +1 -52
- package/dist/components/list-item.js +1 -118
- package/dist/components/list-options-renderer.js +1 -9
- package/dist/components/list-options-renderer2.js +1 -124
- package/dist/components/logical-search-indicator.js +1 -46
- package/dist/components/makeApiCall.js +1 -120
- package/dist/components/map-component.js +1 -9
- package/dist/components/map-component2.js +1 -583
- package/dist/components/map-interactions.js +1 -236
- package/dist/components/map-toolbar.js +1 -9
- package/dist/components/map-toolbar2.js +1 -359
- package/dist/components/numeric-field.js +1 -9
- package/dist/components/numeric-field2.js +1 -197
- package/dist/components/primary-action-header.js +1 -9
- package/dist/components/primary-action-header2.js +1 -140
- package/dist/components/question-configs-renderer.js +1 -9
- package/dist/components/question-configs-renderer2.js +1 -206
- package/dist/components/question-specific-configs-renderer.js +1 -9
- package/dist/components/question-specific-configs-renderer2.js +1 -528
- package/dist/components/resource-timeline-calendar.js +1 -407
- package/dist/components/resource-timeline-primary-bar.js +1 -9
- package/dist/components/resource-timeline-primary-bar2.js +1 -124
- package/dist/components/save-view-form-dialog.js +1 -9
- package/dist/components/save-view-form.js +1 -140
- package/dist/components/search-list-item.js +1 -9
- package/dist/components/search-list-item2.js +1 -177
- package/dist/components/search-method-grid.js +1 -9
- package/dist/components/search-method-grid2.js +1 -515
- package/dist/components/section-configs-renderer.js +1 -9
- package/dist/components/section-configs-renderer2.js +1 -90
- package/dist/components/select-layer-popup.js +1 -9
- package/dist/components/select-layer-popup2.js +1 -94
- package/dist/components/selectable-list.js +1 -9
- package/dist/components/selectable-list2.js +1 -284
- package/dist/components/server-side-grid.js +1 -9
- package/dist/components/server-side-grid2.js +1 -157
- package/dist/components/side-sheet-container.js +1 -9
- package/dist/components/side-sheet-container2.js +1 -39
- package/dist/components/side-sheet.js +1 -9
- package/dist/components/side-sheet2.js +1 -90
- package/dist/components/signature-input.js +1 -9
- package/dist/components/signature-input2.js +1 -371
- package/dist/components/signature-renderer.js +1 -9
- package/dist/components/signature-renderer2.js +1 -62
- package/dist/components/simple-card.js +1 -38
- package/dist/components/split-line-popup.js +1 -9
- package/dist/components/split-line-popup2.js +1 -61
- package/dist/components/status-chip.js +1 -9
- package/dist/components/status-chip2.js +1 -57
- package/dist/components/status-renderer.js +1 -288
- package/dist/components/stencil-chip.js +1 -9
- package/dist/components/stencil-chip2.js +1 -144
- package/dist/components/stencil-field.js +1 -9
- package/dist/components/stencil-field2.js +1 -285
- package/dist/components/stencil-form.js +1 -9
- package/dist/components/stencil-form2.js +1 -270
- package/dist/components/stencil-icon-button-grid-action-header.js +1 -9
- package/dist/components/stencil-icon-button-grid-action-header2.js +1 -84
- package/dist/components/stencil-icon-button.js +1 -9
- package/dist/components/stencil-icon-button2.js +1 -99
- package/dist/components/stencil-toggle.js +1 -9
- package/dist/components/stencil-toggle2.js +1 -192
- package/dist/components/tally-display.js +1 -9
- package/dist/components/tally.js +1 -99
- package/dist/components/tenantUtils.js +1 -8
- package/dist/components/text-area.js +1 -9
- package/dist/components/text-area2.js +1 -288
- package/dist/components/text-field.js +1 -9
- package/dist/components/text-field2.js +1 -241
- package/dist/components/text-input-renderer.js +1 -9
- package/dist/components/text-input-renderer2.js +1 -66
- package/dist/components/transformSearchData.js +1 -782
- package/dist/components/tree-list-item.js +1 -9
- package/dist/components/tree-list-item2.js +1 -194
- package/dist/components/udp-adornment.js +1 -9
- package/dist/components/udp-adornment2.js +1 -55
- package/dist/components/udp-advanced-search-builder.js +1 -157
- package/dist/components/udp-ambient-card.js +1 -9
- package/dist/components/udp-ambient-card2.js +1 -86
- package/dist/components/udp-ambient-tool-tip.js +1 -9
- package/dist/components/udp-ambient-tool-tip2.js +1 -124
- package/dist/components/udp-attachment-item.js +1 -9
- package/dist/components/udp-attachment-item2.js +1 -154
- package/dist/components/udp-attachment-list.js +1 -138
- package/dist/components/udp-avatar.js +1 -9
- package/dist/components/udp-avatar2.js +1 -91
- package/dist/components/udp-badge.js +1 -9
- package/dist/components/udp-badge2.js +1 -47
- package/dist/components/udp-bar-chart.js +1 -9
- package/dist/components/udp-bar-chart2.js +1 -139
- package/dist/components/udp-button.js +1 -9
- package/dist/components/udp-button2.js +1 -144
- package/dist/components/udp-calendar-base.js +1 -9
- package/dist/components/udp-calendar-base2.js +1 -204
- package/dist/components/udp-calendar-day.js +1 -49
- package/dist/components/udp-calendar-month.js +1 -49
- package/dist/components/udp-calendar-week.js +1 -49
- package/dist/components/udp-calendar-year.js +1 -49
- package/dist/components/udp-card-action-area.js +1 -38
- package/dist/components/udp-card-actions.js +1 -9
- package/dist/components/udp-card-actions2.js +1 -41
- package/dist/components/udp-card-content.js +1 -9
- package/dist/components/udp-card-content2.js +1 -40
- package/dist/components/udp-card-header.js +1 -9
- package/dist/components/udp-card-header2.js +1 -72
- package/dist/components/udp-card-media.js +1 -9
- package/dist/components/udp-card-media2.js +1 -38
- package/dist/components/udp-card.js +1 -9
- package/dist/components/udp-card2.js +1 -119
- package/dist/components/udp-charts-example.js +1 -112
- package/dist/components/udp-chip.js +1 -9
- package/dist/components/udp-chip2.js +1 -87
- package/dist/components/udp-column-header.js +1 -9
- package/dist/components/udp-column-header2.js +1 -41
- package/dist/components/udp-container-query-grid-item.js +1 -51
- package/dist/components/udp-container-query-grid.js +1 -79
- package/dist/components/udp-container-query.js +1 -9
- package/dist/components/udp-container-query2.js +1 -58
- package/dist/components/udp-container.js +1 -9
- package/dist/components/udp-container2.js +1 -56
- package/dist/components/udp-date-range-selector.js +1 -80
- package/dist/components/udp-date-selector.js +1 -9
- package/dist/components/udp-date-selector2.js +1 -195
- package/dist/components/udp-datetime-selector.js +1 -9
- package/dist/components/udp-datetime-selector2.js +1 -224
- package/dist/components/udp-dialog.js +1 -9
- package/dist/components/udp-dialog2.js +1 -119
- package/dist/components/udp-distribution-chart.js +1 -9
- package/dist/components/udp-distribution-chart2.js +1 -187
- package/dist/components/udp-divider.js +1 -9
- package/dist/components/udp-divider2.js +1 -42
- package/dist/components/udp-donut-chart.js +1 -9
- package/dist/components/udp-donut-chart2.js +1 -180
- package/dist/components/udp-drive-utils.js +1 -168
- package/dist/components/udp-dynamic-container-with-menu.js +1 -9
- package/dist/components/udp-dynamic-container-with-menu2.js +1 -181
- package/dist/components/udp-dynamic-form.js +1 -339
- package/dist/components/udp-empty-state-display.js +1 -9
- package/dist/components/udp-empty-state-display2.js +1 -68
- package/dist/components/udp-form-api-utils.js +1 -37
- package/dist/components/udp-forms-builder-menu.js +1 -9
- package/dist/components/udp-forms-builder-menu2.js +1 -81
- package/dist/components/udp-forms-builder-question-item.js +1 -9
- package/dist/components/udp-forms-builder-question-item2.js +1 -90
- package/dist/components/udp-forms-builder-style-override.js +1 -121
- package/dist/components/udp-forms-builder.js +1 -868
- package/dist/components/udp-forms-follow-up-list-card.js +1 -89
- package/dist/components/udp-forms-list-card.js +1 -9
- package/dist/components/udp-forms-list-card2.js +1 -186
- package/dist/components/udp-forms-list.js +1 -427
- package/dist/components/udp-forms-renderer.js +1 -1545
- package/dist/components/udp-forms-ui.js +1 -9
- package/dist/components/udp-forms-ui2.js +1 -376
- package/dist/components/udp-function-button.js +1 -9
- package/dist/components/udp-function-button2.js +1 -96
- package/dist/components/udp-grid-loader.js +1 -9
- package/dist/components/udp-grid-loader2.js +1 -52
- package/dist/components/udp-hotlist-form.js +1 -9
- package/dist/components/udp-hotlist-form2.js +1 -91
- package/dist/components/udp-icon-button.js +1 -9
- package/dist/components/udp-icon-button2.js +1 -161
- package/dist/components/udp-icon.js +1 -9
- package/dist/components/udp-icon2.js +1 -284
- package/dist/components/udp-kpi-card.js +1 -9
- package/dist/components/udp-kpi-card2.js +1 -156
- package/dist/components/udp-kpi-cards.js +1 -84
- package/dist/components/udp-line-chart.js +1 -9
- package/dist/components/udp-line-chart2.js +1 -134
- package/dist/components/udp-linear-loader.js +1 -9
- package/dist/components/udp-linear-loader2.js +1 -45
- package/dist/components/udp-link.js +1 -9
- package/dist/components/udp-link2.js +1 -70
- package/dist/components/udp-list-item.js +1 -9
- package/dist/components/udp-list-renderer.js +1 -9
- package/dist/components/udp-list-renderer2.js +1 -175
- package/dist/components/udp-map-toolbar.js +1 -9
- package/dist/components/udp-map-toolbar2.js +1 -387
- package/dist/components/udp-map-utils.js +1 -174
- package/dist/components/udp-map.js +1 -328
- package/dist/components/udp-menu-item.js +1 -9
- package/dist/components/udp-menu-item2.js +1 -61
- package/dist/components/udp-menu.js +1 -9
- package/dist/components/udp-menu2.js +1 -132
- package/dist/components/udp-notification.js +1 -9
- package/dist/components/udp-notification2.js +1 -64
- package/dist/components/udp-page-header.js +1 -9
- package/dist/components/udp-page-header2.js +1 -55
- package/dist/components/udp-page.js +1 -54
- package/dist/components/udp-pagination.js +1 -9
- package/dist/components/udp-pagination2.js +1 -104
- package/dist/components/udp-pop-over-grid-action-header.js +1 -9
- package/dist/components/udp-pop-over-grid-action-header2.js +1 -82
- package/dist/components/udp-pop-over.js +1 -9
- package/dist/components/udp-pop-over2.js +1 -161
- package/dist/components/udp-question-comments.js +1 -9
- package/dist/components/udp-question-comments2.js +1 -139
- package/dist/components/udp-question.js +1 -9
- package/dist/components/udp-question2.js +1 -400
- package/dist/components/udp-radio-button.js +1 -9
- package/dist/components/udp-radio-button2.js +1 -48
- package/dist/components/udp-sankey-chart.js +1 -186
- package/dist/components/udp-save-draft-button.js +1 -9
- package/dist/components/udp-save-draft-button2.js +1 -144
- package/dist/components/udp-selector.js +1 -9
- package/dist/components/udp-selector2.js +1 -425
- package/dist/components/udp-side-sheet.js +1 -9
- package/dist/components/udp-side-sheet2.js +1 -358
- package/dist/components/udp-skeleton-loading.js +1 -9
- package/dist/components/udp-skeleton-loading2.js +1 -43
- package/dist/components/udp-split-screen.js +1 -92
- package/dist/components/udp-stepper-demo.js +1 -143
- package/dist/components/udp-stepper.js +1 -9
- package/dist/components/udp-stepper2.js +1 -154
- package/dist/components/udp-tab-panel.js +1 -45
- package/dist/components/udp-tab.js +1 -64
- package/dist/components/udp-tabs.js +1 -9
- package/dist/components/udp-tabs2.js +1 -278
- package/dist/components/udp-time-selector.js +1 -9
- package/dist/components/udp-time-selector2.js +1 -296
- package/dist/components/udp-timeline-connector.js +1 -38
- package/dist/components/udp-timeline-dot.js +1 -72
- package/dist/components/udp-timeline-item.js +1 -120
- package/dist/components/udp-timeline-separator.js +1 -38
- package/dist/components/udp-timeline.js +1 -42
- package/dist/components/udp-vertical-spacer.js +1 -46
- package/dist/components/udp-xy-chart.js +1 -9
- package/dist/components/udp-xy-chart2.js +1 -230
- package/dist/components/udp-xy-multi-series-chart.js +1 -230
- package/dist/components/unity-typography.js +1 -9
- package/dist/components/unity-typography2.js +1 -85
- package/dist/components/upd-alert-banner.js +1 -9
- package/dist/components/upd-alert-banner2.js +1 -48
- package/dist/components/useFormApi.js +1 -47
- package/dist/components/utils.js +1 -87
- package/dist/components/validation-chip.js +1 -9
- package/dist/components/validation-chip2.js +1 -58
- package/dist/docs.d.ts +11 -0
- package/dist/docs.json +957 -398
- package/dist/esm/SearchBuilder-CvKqGlUH.js +0 -3
- package/dist/esm/action-column-util-DUK_9dnF.js +0 -3
- package/dist/esm/add-map-feature-popup_4.entry.js +45 -30
- package/dist/esm/advanced-search-builder.entry.js +3 -4
- package/dist/esm/advanced-search_12.entry.js +57 -40
- package/dist/esm/ag-grid-base_6.entry.js +53 -28
- package/dist/esm/ambient-template-grid.entry.js +86 -41
- package/dist/esm/api-method-instance-grid.entry.js +16 -7
- package/dist/esm/apiUtils-cUHs50y0.js +0 -3
- package/dist/esm/app-bar.entry.js +4 -5
- package/dist/esm/catalog-store-BhgNAUY6.js +0 -3
- package/dist/esm/chart-container_3.entry.js +7 -8
- package/dist/esm/chartUtils-DFIyEsL1.js +0 -3
- package/dist/esm/check-box-group.entry.js +6 -5
- package/dist/esm/check-box.entry.js +14 -9
- package/dist/esm/chip-section.entry.js +8 -7
- package/dist/esm/client-side-grid_2.entry.js +9 -8
- package/dist/esm/common-CwN0FuAf.js +0 -3
- package/dist/esm/configService-BqLfkVKh.js +0 -3
- package/dist/esm/configureUdpColumnMods-CoCTzhve.js +0 -3
- package/dist/esm/conversionFunctions-CNWYTvRs.js +0 -3
- package/dist/esm/currency-renderer-D6zBtP2s.js +0 -3
- package/dist/esm/custom-button.entry.js +3 -4
- package/dist/esm/{date-time-renderer_6.entry.js → date-time-renderer_7.entry.js} +57 -25
- package/dist/esm/entity-maintenance-grid.entry.js +2 -3
- package/dist/esm/{enums-BnKmfKJT.js → enums-D5dod6Ie.js} +9 -5
- package/dist/esm/feature-details-card_2.entry.js +24 -15
- package/dist/esm/file-upload_3.entry.js +23 -12
- package/dist/esm/filter-conditions_7.entry.js +23 -20
- package/dist/esm/filter-group_2.entry.js +5 -6
- package/dist/esm/fluent-dialog.entry.js +3 -4
- package/dist/esm/{image-upload_7.entry.js → form-metadata-display_8.entry.js} +121 -43
- package/dist/esm/getCurrentApiCatalogId-DeurXd9l.js +0 -3
- package/dist/esm/iconMapping-CPerGeNF.js +0 -3
- package/dist/esm/iconUtils-DcPvHO4A.js +0 -3
- package/dist/esm/{index-CaZq3YdB.js → index-DFnjA9NX.js} +325 -202
- package/dist/esm/index.js +138 -2
- package/dist/esm/loader.js +3 -4
- package/dist/esm/logical-search-indicator.entry.js +3 -4
- package/dist/esm/makeApiCall-B-daVutk.js +0 -3
- package/dist/esm/map-component_2.entry.js +61 -24
- package/dist/esm/numeric-field_5.entry.js +71 -42
- package/dist/esm/primary-action-header_2.entry.js +392 -0
- package/dist/esm/question-configs-renderer_4.entry.js +21 -22
- package/dist/esm/resource-timeline-calendar.entry.js +13 -8
- package/dist/esm/search-method-grid.entry.js +7 -4
- package/dist/esm/server-side-grid.entry.js +5 -4
- package/dist/esm/side-sheet-container.entry.js +4 -5
- package/dist/esm/simple-card.entry.js +3 -4
- package/dist/esm/status-chip_2.entry.js +8 -7
- package/dist/esm/stencil-chip.entry.js +6 -5
- package/dist/esm/stencil-icon-button-grid-action-header.entry.js +3 -4
- package/dist/esm/stencil-icon-button_3.entry.js +7 -8
- package/dist/esm/stencil-library.js +4 -5
- package/dist/esm/stencil-toggle.entry.js +16 -11
- package/dist/esm/tenantUtils-Basdb1b1.js +0 -3
- package/dist/esm/text-field_2.entry.js +36 -21
- package/dist/esm/transformSearchData-DBjFnXu6.js +0 -3
- package/dist/esm/udp-adornment.entry.js +3 -4
- package/dist/esm/udp-advanced-search-builder.entry.js +7 -4
- package/dist/esm/udp-attachment-item_2.entry.js +5 -6
- package/dist/esm/udp-attachment-list.entry.js +1 -2
- package/dist/esm/udp-avatar.entry.js +3 -4
- package/dist/esm/udp-bar-chart_4.entry.js +45 -22
- package/dist/esm/udp-button.entry.js +3 -4
- package/dist/esm/udp-calendar-base.entry.js +6 -5
- package/dist/esm/udp-calendar-day.entry.js +3 -4
- package/dist/esm/udp-calendar-month.entry.js +3 -4
- package/dist/esm/udp-calendar-week.entry.js +3 -4
- package/dist/esm/udp-calendar-year.entry.js +3 -4
- package/dist/esm/udp-card-action-area.entry.js +3 -4
- package/dist/esm/udp-card_6.entry.js +13 -14
- package/dist/esm/udp-charts-example.entry.js +1 -2
- package/dist/esm/udp-chip_3.entry.js +11 -10
- package/dist/esm/udp-container-query-grid-item.entry.js +4 -5
- package/dist/esm/udp-container-query-grid.entry.js +4 -5
- package/dist/esm/udp-container-query.entry.js +5 -6
- package/dist/esm/udp-container.entry.js +32 -0
- package/dist/esm/udp-date-range-selector.entry.js +4 -5
- package/dist/esm/udp-divider.entry.js +3 -4
- package/dist/esm/udp-drive-utils-CIrjVGiJ.js +0 -3
- package/dist/esm/udp-dynamic-container-with-menu.entry.js +7 -6
- package/dist/esm/udp-dynamic-form.entry.js +3 -4
- package/dist/esm/udp-form-api-utils-vPSYCvIA.js +0 -3
- package/dist/esm/{udp-forms-builder-question-template-C60LMUS4.js → udp-forms-builder-question-template-BsYOju9V.js} +8 -4
- package/dist/esm/udp-forms-builder-style-override.entry.js +4 -5
- package/dist/esm/udp-forms-builder.entry.js +12 -9
- package/dist/esm/udp-forms-follow-up-list-card.entry.js +4 -5
- package/dist/esm/udp-forms-list-card.entry.js +7 -8
- package/dist/esm/udp-forms-list.entry.js +10 -9
- package/dist/esm/udp-forms-renderer.entry.js +830 -772
- package/dist/esm/udp-forms-ui.entry.js +18 -17
- package/dist/esm/udp-icon.entry.js +3 -4
- package/dist/esm/udp-kpi-card.entry.js +3 -4
- package/dist/esm/udp-kpi-cards.entry.js +3 -4
- package/dist/esm/udp-linear-loader_2.entry.js +285 -0
- package/dist/esm/udp-list-renderer_2.entry.js +8 -7
- package/dist/esm/udp-map-utils-DNAUNI5U.js +0 -3
- package/dist/esm/udp-map.entry.js +12 -9
- package/dist/esm/{udp-pop-over.entry.js → udp-menu-item_2.entry.js} +28 -6
- package/dist/esm/udp-page.entry.js +4 -5
- package/dist/esm/udp-sankey-chart.entry.js +30 -13
- package/dist/esm/udp-skeleton-loading.entry.js +4 -5
- package/dist/esm/udp-split-screen.entry.js +4 -5
- package/dist/esm/udp-stepper-demo.entry.js +2 -3
- package/dist/esm/udp-stepper.entry.js +6 -5
- package/dist/esm/udp-tab-panel.entry.js +5 -6
- package/dist/esm/udp-tab.entry.js +4 -5
- package/dist/esm/udp-timeline-connector.entry.js +4 -5
- package/dist/esm/udp-timeline-dot.entry.js +4 -5
- package/dist/esm/udp-timeline-item.entry.js +5 -6
- package/dist/esm/udp-timeline-separator.entry.js +4 -5
- package/dist/esm/udp-timeline.entry.js +4 -5
- package/dist/esm/udp-vertical-spacer.entry.js +4 -5
- package/dist/esm/udp-xy-chart.entry.js +39 -16
- package/dist/esm/udp-xy-multi-series-chart.entry.js +27 -12
- package/dist/esm/udpFieldHelper-qPBcfmrH.js +0 -3
- package/dist/esm/udpOperatorHelper-BsvDrT81.js +0 -3
- package/dist/esm/unity-typography.entry.js +3 -4
- package/dist/esm/{utils-CiUp9KGZ.js → utils-kwLwITIE.js} +6 -9
- package/dist/stencil-library/SearchBuilder-CvKqGlUH.js +1 -2
- package/dist/stencil-library/action-column-util-DUK_9dnF.js +1 -2
- package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -2
- package/dist/stencil-library/advanced-search-builder.entry.js +1 -2
- package/dist/stencil-library/advanced-search_12.entry.js +1 -2
- package/dist/stencil-library/ag-grid-base_6.entry.js +1 -2
- package/dist/stencil-library/ambient-template-grid.entry.js +1 -2
- package/dist/stencil-library/api-method-instance-grid.entry.js +1 -2
- package/dist/stencil-library/apiUtils-cUHs50y0.js +1 -2
- package/dist/stencil-library/app-bar.entry.js +1 -2
- package/dist/stencil-library/catalog-store-BhgNAUY6.js +1 -2
- package/dist/stencil-library/chart-container_3.entry.js +1 -2
- package/dist/stencil-library/chartUtils-DFIyEsL1.js +1 -2
- package/dist/stencil-library/check-box-group.entry.js +1 -2
- package/dist/stencil-library/check-box.entry.js +1 -2
- package/dist/stencil-library/chip-section.entry.js +1 -2
- package/dist/stencil-library/client-side-grid_2.entry.js +1 -2
- package/dist/stencil-library/common-CwN0FuAf.js +1 -2
- package/dist/stencil-library/configService-BqLfkVKh.js +1 -2
- package/dist/stencil-library/configureUdpColumnMods-CoCTzhve.js +1 -2
- package/dist/stencil-library/conversionFunctions-CNWYTvRs.js +1 -2
- package/dist/stencil-library/currency-renderer-D6zBtP2s.js +1 -2
- package/dist/stencil-library/custom-button.entry.js +1 -2
- package/dist/stencil-library/date-time-renderer_7.entry.js +1 -0
- package/dist/stencil-library/entity-maintenance-grid.entry.js +1 -2
- package/dist/stencil-library/enums-D5dod6Ie.js +1 -0
- package/dist/stencil-library/feature-details-card_2.entry.js +1 -2
- package/dist/stencil-library/file-upload_3.entry.js +1 -2
- package/dist/stencil-library/filter-conditions_7.entry.js +1 -2
- package/dist/stencil-library/filter-group_2.entry.js +1 -2
- package/dist/stencil-library/fluent-dialog.entry.js +1 -2
- package/dist/stencil-library/form-metadata-display_8.entry.js +1 -0
- package/dist/stencil-library/getCurrentApiCatalogId-DeurXd9l.js +1 -2
- package/dist/stencil-library/iconMapping-CPerGeNF.js +1 -2
- package/dist/stencil-library/iconUtils-DcPvHO4A.js +1 -2
- package/dist/stencil-library/index-DFnjA9NX.js +2 -0
- package/dist/stencil-library/index.esm.js +1 -2
- package/dist/stencil-library/logical-search-indicator.entry.js +1 -2
- package/dist/stencil-library/makeApiCall-B-daVutk.js +1 -2
- package/dist/stencil-library/map-component_2.entry.js +1 -2
- package/dist/stencil-library/numeric-field_5.entry.js +1 -2
- package/dist/stencil-library/primary-action-header_2.entry.js +1 -0
- package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -2
- package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -2
- package/dist/stencil-library/search-method-grid.entry.js +1 -2
- package/dist/stencil-library/server-side-grid.entry.js +1 -2
- package/dist/stencil-library/side-sheet-container.entry.js +1 -2
- package/dist/stencil-library/simple-card.entry.js +1 -2
- package/dist/stencil-library/status-chip_2.entry.js +1 -2
- package/dist/stencil-library/stencil-chip.entry.js +1 -2
- package/dist/stencil-library/stencil-icon-button-grid-action-header.entry.js +1 -2
- package/dist/stencil-library/stencil-icon-button_3.entry.js +1 -2
- package/dist/stencil-library/stencil-library.esm.js +1 -2
- package/dist/stencil-library/stencil-toggle.entry.js +1 -2
- package/dist/stencil-library/tenantUtils-Basdb1b1.js +1 -2
- package/dist/stencil-library/text-field_2.entry.js +1 -2
- package/dist/stencil-library/transformSearchData-DBjFnXu6.js +1 -2
- package/dist/stencil-library/udp-adornment.entry.js +1 -2
- package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -2
- package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -2
- package/dist/stencil-library/udp-attachment-list.entry.js +1 -2
- package/dist/stencil-library/udp-avatar.entry.js +1 -2
- package/dist/stencil-library/udp-bar-chart_4.entry.js +1 -2
- package/dist/stencil-library/udp-button.entry.js +1 -2
- package/dist/stencil-library/udp-calendar-base.entry.js +1 -2
- package/dist/stencil-library/udp-calendar-day.entry.js +1 -2
- package/dist/stencil-library/udp-calendar-month.entry.js +1 -2
- package/dist/stencil-library/udp-calendar-week.entry.js +1 -2
- package/dist/stencil-library/udp-calendar-year.entry.js +1 -2
- package/dist/stencil-library/udp-card-action-area.entry.js +1 -2
- package/dist/stencil-library/udp-card_6.entry.js +1 -2
- package/dist/stencil-library/udp-charts-example.entry.js +1 -2
- package/dist/stencil-library/udp-chip_3.entry.js +1 -2
- package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -2
- package/dist/stencil-library/udp-container-query-grid.entry.js +1 -2
- package/dist/stencil-library/udp-container-query.entry.js +1 -2
- package/dist/stencil-library/udp-container.entry.js +1 -0
- package/dist/stencil-library/udp-date-range-selector.entry.js +1 -2
- package/dist/stencil-library/udp-divider.entry.js +1 -2
- package/dist/stencil-library/udp-drive-utils-CIrjVGiJ.js +1 -2
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -2
- package/dist/stencil-library/udp-dynamic-form.entry.js +1 -2
- package/dist/stencil-library/udp-form-api-utils-vPSYCvIA.js +1 -2
- package/dist/stencil-library/udp-forms-builder-question-template-BsYOju9V.js +1 -0
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -2
- package/dist/stencil-library/udp-forms-builder.entry.js +1 -2
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -2
- package/dist/stencil-library/udp-forms-list-card.entry.js +1 -2
- package/dist/stencil-library/udp-forms-list.entry.js +1 -2
- package/dist/stencil-library/udp-forms-renderer.entry.js +1 -2
- package/dist/stencil-library/udp-forms-ui.entry.js +1 -2
- package/dist/stencil-library/udp-icon.entry.js +1 -2
- package/dist/stencil-library/udp-kpi-card.entry.js +1 -2
- package/dist/stencil-library/udp-kpi-cards.entry.js +1 -2
- package/dist/stencil-library/udp-linear-loader_2.entry.js +1 -0
- package/dist/stencil-library/udp-list-renderer_2.entry.js +1 -2
- package/dist/stencil-library/udp-map-utils-DNAUNI5U.js +1 -2
- package/dist/stencil-library/udp-map.entry.js +1 -2
- package/dist/stencil-library/udp-menu-item_2.entry.js +1 -0
- package/dist/stencil-library/udp-page.entry.js +1 -2
- package/dist/stencil-library/udp-sankey-chart.entry.js +1 -2
- package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -2
- package/dist/stencil-library/udp-split-screen.entry.js +1 -2
- package/dist/stencil-library/udp-stepper-demo.entry.js +1 -2
- package/dist/stencil-library/udp-stepper.entry.js +1 -2
- package/dist/stencil-library/udp-tab-panel.entry.js +1 -2
- package/dist/stencil-library/udp-tab.entry.js +1 -2
- package/dist/stencil-library/udp-timeline-connector.entry.js +1 -2
- package/dist/stencil-library/udp-timeline-dot.entry.js +1 -2
- package/dist/stencil-library/udp-timeline-item.entry.js +1 -2
- package/dist/stencil-library/udp-timeline-separator.entry.js +1 -2
- package/dist/stencil-library/udp-timeline.entry.js +1 -2
- package/dist/stencil-library/udp-vertical-spacer.entry.js +1 -2
- package/dist/stencil-library/udp-xy-chart.entry.js +1 -2
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -2
- package/dist/stencil-library/udpFieldHelper-qPBcfmrH.js +1 -2
- package/dist/stencil-library/udpOperatorHelper-BsvDrT81.js +1 -2
- package/dist/stencil-library/unity-typography.entry.js +1 -2
- package/dist/stencil-library/utils-kwLwITIE.js +1 -0
- package/dist/types/components/advanced-search/advanced-search-grouped.d.ts +5 -5
- package/dist/types/components/advanced-search/types.d.ts +39 -4
- package/dist/types/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.d.ts +2 -2
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.d.ts +11 -0
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.d.ts +71 -1
- package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.d.ts +2 -2
- package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.d.ts +9 -6
- package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/comments-crud-utils.d.ts +31 -0
- package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/repeated-section-utils.d.ts +17 -0
- package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils/utils.d.ts +16 -0
- package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.d.ts +9 -20
- package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpFormSubmission.d.ts +5 -5
- package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/enums.d.ts +8 -2
- package/dist/types/components/forms/udp-forms/udp-forms-utils/form-handler/UdpFormHandler.d.ts +10 -0
- package/dist/types/components/forms/udp-forms/udp-forms-utils/form-submission-handler/FormSubmissionHandler.d.ts +42 -0
- package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/FormSubmissionHandlerFactory.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-forms-utils/form-submission-handler/IFormSubmissionHandler.d.ts +54 -0
- package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/types.d.ts +16 -1
- package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/utils.d.ts +1 -1
- package/dist/types/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.d.ts +2 -2
- package/dist/types/components/forms/udp-forms/udp-question/udp-question.d.ts +10 -5
- package/dist/types/components/grid/new-grid/gridFunctions/bulkActions.d.ts +4 -2
- package/dist/types/components/grid/new-grid/interfaces/grid.d.ts +1 -0
- package/dist/types/components/inputs/form metadata display/form-metadata-display.d.ts +62 -0
- package/dist/types/components.d.ts +208 -56
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +88 -5
- package/dist/types/udp-utilities/udp-websocket-client/udp-websocket-client.d.ts +34 -0
- package/package.json +3 -3
- package/dist/cjs/SearchBuilder-C1sUitjQ.js.map +0 -1
- package/dist/cjs/action-column-util-CQRWvOT6.js.map +0 -1
- package/dist/cjs/add-map-feature-popup.map-toolbar.select-layer-popup.split-line-popup.entry.cjs.js.map +0 -1
- package/dist/cjs/advanced-search-builder.entry.cjs.js.map +0 -1
- package/dist/cjs/advanced-search.advanced-search-grouped.ag-table.edit-view-form-dialog.grid-primary-bar.kpi-list.save-view-form-dialog.side-sheet.udp-hotlist-form.udp-notification.udp-pop-over-grid-action-header.upd-alert-banner.entry.cjs.js.map +0 -1
- package/dist/cjs/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.cjs.js.map +0 -1
- package/dist/cjs/ambient-template-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/api-method-instance-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/apiUtils-DT-fLJOw.js.map +0 -1
- package/dist/cjs/app-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/catalog-store-BOiNPWZB.js.map +0 -1
- package/dist/cjs/chart-container.chart-kpi.udp-ambient-card.entry.cjs.js.map +0 -1
- package/dist/cjs/chartUtils-Gg3D2Moc.js.map +0 -1
- package/dist/cjs/check-box-group.entry.cjs.js.map +0 -1
- package/dist/cjs/check-box.entry.cjs.js.map +0 -1
- package/dist/cjs/chip-section.entry.cjs.js.map +0 -1
- package/dist/cjs/client-side-grid.resource-timeline-primary-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/common-By_kzIQM.js.map +0 -1
- package/dist/cjs/configService-BmGAegZf.js.map +0 -1
- package/dist/cjs/configureUdpColumnMods-CQMOB8IW.js.map +0 -1
- package/dist/cjs/conversionFunctions-B_9y17KE.js.map +0 -1
- package/dist/cjs/currency-renderer-xzaldEo2.js.map +0 -1
- package/dist/cjs/custom-button.entry.cjs.js.map +0 -1
- package/dist/cjs/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.cjs.js.map +0 -1
- package/dist/cjs/entity-maintenance-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/enums-ibNZ4cZ4.js.map +0 -1
- package/dist/cjs/feature-details-card.feature-details-popup.entry.cjs.js.map +0 -1
- package/dist/cjs/file-upload.selectable-list.stencil-field.entry.cjs.js.map +0 -1
- package/dist/cjs/filter-conditions.search-list-item.tree-list-item.udp-column-header.udp-grid-loader.udp-page-header.udp-radio-button.entry.cjs.js.map +0 -1
- package/dist/cjs/filter-group.validation-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/fluent-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/getCurrentApiCatalogId-D7xHCEzs.js.map +0 -1
- package/dist/cjs/iconMapping-CkHR1LGY.js.map +0 -1
- package/dist/cjs/iconUtils-BuDk48Xh.js.map +0 -1
- package/dist/cjs/image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.cjs.js.map +0 -1
- package/dist/cjs/index-CGCOXUJE.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/logical-search-indicator.entry.cjs.js.map +0 -1
- package/dist/cjs/makeApiCall-CFfg9gI0.js.map +0 -1
- package/dist/cjs/map-component.udp-map-toolbar.entry.cjs.js.map +0 -1
- package/dist/cjs/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.cjs.js.map +0 -1
- package/dist/cjs/primary-action-header.udp-side-sheet.udp-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/primary-action-header_3.cjs.entry.js +0 -650
- package/dist/cjs/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.cjs.js.map +0 -1
- package/dist/cjs/resource-timeline-calendar.entry.cjs.js.map +0 -1
- package/dist/cjs/search-method-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/server-side-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/side-sheet-container.entry.cjs.js.map +0 -1
- package/dist/cjs/simple-card.entry.cjs.js.map +0 -1
- package/dist/cjs/status-chip.udp-function-button.entry.cjs.js.map +0 -1
- package/dist/cjs/stencil-chip.entry.cjs.js.map +0 -1
- package/dist/cjs/stencil-icon-button-grid-action-header.entry.cjs.js.map +0 -1
- package/dist/cjs/stencil-icon-button.udp-ambient-tool-tip.udp-badge.entry.cjs.js.map +0 -1
- package/dist/cjs/stencil-library.cjs.js.map +0 -1
- package/dist/cjs/stencil-toggle.entry.cjs.js.map +0 -1
- package/dist/cjs/tenantUtils-BCKSE0vq.js.map +0 -1
- package/dist/cjs/text-field.udp-selector.entry.cjs.js.map +0 -1
- package/dist/cjs/transformSearchData-B4bk4Aik.js.map +0 -1
- package/dist/cjs/udp-adornment.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-advanced-search-builder.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-attachment-item.udp-empty-state-display.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-attachment-list.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-bar-chart.udp-distribution-chart.udp-donut-chart.udp-line-chart.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-button.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-calendar-base.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-calendar-day.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-calendar-month.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-calendar-week.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-calendar-year.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-card-action-area.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-charts-example.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-chip.udp-icon-button.udp-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-container-query-grid-item.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-container-query-grid.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-container-query.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-container.udp-linear-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-container_2.cjs.entry.js +0 -56
- package/dist/cjs/udp-date-range-selector.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-divider.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-drive-utils-B8uPAKzW.js.map +0 -1
- package/dist/cjs/udp-dynamic-container-with-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-dynamic-form.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-form-api-utils-BwNeblH_.js.map +0 -1
- package/dist/cjs/udp-forms-builder-question-template-BlgDh7P5.js.map +0 -1
- package/dist/cjs/udp-forms-builder-style-override.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-builder.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-follow-up-list-card.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-list-card.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-list.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-renderer.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-forms-ui.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-kpi-card.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-kpi-cards.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-list-renderer.udp-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-map-utils-BXqQmr-h.js.map +0 -1
- package/dist/cjs/udp-map.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-menu-item.cjs.entry.js +0 -27
- package/dist/cjs/udp-menu-item.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-page.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-pop-over.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-sankey-chart.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-skeleton-loading.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-split-screen.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-stepper-demo.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-stepper.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-tab-panel.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-timeline-connector.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-timeline-dot.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-timeline-item.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-timeline-separator.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-timeline.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-vertical-spacer.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-xy-chart.entry.cjs.js.map +0 -1
- package/dist/cjs/udp-xy-multi-series-chart.entry.cjs.js.map +0 -1
- package/dist/cjs/udpFieldHelper-0jB0kwFN.js.map +0 -1
- package/dist/cjs/udpOperatorHelper-MMG_hrZS.js.map +0 -1
- package/dist/cjs/unity-typography.entry.cjs.js.map +0 -1
- package/dist/cjs/utils-DZ_OMtAy.js.map +0 -1
- package/dist/collection/components/advanced-search/advanced-search-grouped.js.map +0 -1
- package/dist/collection/components/advanced-search/advanced-search.js.map +0 -1
- package/dist/collection/components/advanced-search/filter-conditions/filter-conditions.js.map +0 -1
- package/dist/collection/components/advanced-search/types.js.map +0 -1
- package/dist/collection/components/advanced-search/ui/logical-search-indicator/logical-search-indicator.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/advanced-search-builder.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/filter-group.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/createStringFromSearchObject.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/fieldRenderer.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/udpFieldHelper.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/helperFunctions/udpOperatorHelper.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/models.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js.map +0 -1
- package/dist/collection/components/advanced-search-builder/validation-chip.js.map +0 -1
- package/dist/collection/components/attachment-list/type.js.map +0 -1
- package/dist/collection/components/attachment-list/udp-attachment-item.js.map +0 -1
- package/dist/collection/components/attachment-list/udp-attachment-list.js.map +0 -1
- package/dist/collection/components/buttons/icon-button/function-button/udp-function-button.js.map +0 -1
- package/dist/collection/components/buttons/icon-button/primary-button/custom-button.js.map +0 -1
- package/dist/collection/components/buttons/icon-button/radio-button/udp-radio-button.js.map +0 -1
- package/dist/collection/components/buttons/icon-button/stencil-icon-button-grid-action-header.js.map +0 -1
- package/dist/collection/components/buttons/icon-button/stencil-icon-button.js.map +0 -1
- package/dist/collection/components/buttons/udp-button/udp-button.js.map +0 -1
- package/dist/collection/components/buttons/udp-icon-button/udp-icon-button.js.map +0 -1
- package/dist/collection/components/calendar/udp-calendar-base.js.map +0 -1
- package/dist/collection/components/calendar/udp-calendar-day.js.map +0 -1
- package/dist/collection/components/calendar/udp-calendar-month.js.map +0 -1
- package/dist/collection/components/calendar/udp-calendar-week.js.map +0 -1
- package/dist/collection/components/calendar/udp-calendar-year.js.map +0 -1
- package/dist/collection/components/charts/chart-container/chart-container.js.map +0 -1
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js.map +0 -1
- package/dist/collection/components/charts/chartUtils.js.map +0 -1
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-charts-example.js.map +0 -1
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js.map +0 -1
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js.map +0 -1
- package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js.map +0 -1
- package/dist/collection/components/data-display/badge/udp-badge.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js.map +0 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card.js.map +0 -1
- package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js.map +0 -1
- package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js.map +0 -1
- package/dist/collection/components/data-display/chips/udp-chip.js.map +0 -1
- package/dist/collection/components/data-display/divider/udp-divider.js.map +0 -1
- package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js.map +0 -1
- package/dist/collection/components/data-display/headers/udp-column-header.js.map +0 -1
- package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js.map +0 -1
- package/dist/collection/components/data-display/hint-panel/hint-panel.js.map +0 -1
- package/dist/collection/components/data-display/icons/CarbonIcon.js.map +0 -1
- package/dist/collection/components/data-display/icons/iconMapping.js.map +0 -1
- package/dist/collection/components/data-display/icons/iconUtils.js.map +0 -1
- package/dist/collection/components/data-display/icons/udp-icon.js.map +0 -1
- package/dist/collection/components/data-display/kpi/kpi-list.js.map +0 -1
- package/dist/collection/components/data-display/kpi/types.js.map +0 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-card.js.map +0 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-cards.js.map +0 -1
- package/dist/collection/components/data-display/list-item/list-item.js.map +0 -1
- package/dist/collection/components/data-display/list-renderer/udp-list-renderer.js.map +0 -1
- package/dist/collection/components/data-display/pop-over/interfaces/popoverInterfaces.js.map +0 -1
- package/dist/collection/components/data-display/pop-over/udp-pop-over.js.map +0 -1
- package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js.map +0 -1
- package/dist/collection/components/data-display/primary-action-header/primary-action-header.js.map +0 -1
- package/dist/collection/components/data-display/simple-card/simple-card.js.map +0 -1
- package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js.map +0 -1
- package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js.map +0 -1
- package/dist/collection/components/data-display/tree/tree-list-item/tree-list-item.js.map +0 -1
- package/dist/collection/components/data-display/udp-avatar/udp-avatar.js.map +0 -1
- package/dist/collection/components/dialogs/fluent-dialog/fluent-dialog.js.map +0 -1
- package/dist/collection/components/dialogs/udp-dialog.js.map +0 -1
- package/dist/collection/components/drawers/udp-side-sheet/types.js.map +0 -1
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js.map +0 -1
- package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js.map +0 -1
- package/dist/collection/components/feedback/udp-notification/udp-notification.js.map +0 -1
- package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js.map +0 -1
- package/dist/collection/components/forms/edit-view-form/edit-view-form.js.map +0 -1
- package/dist/collection/components/forms/form/stencil-field.js.map +0 -1
- package/dist/collection/components/forms/form/stencil-form.js.map +0 -1
- package/dist/collection/components/forms/form/useFormApi.js.map +0 -1
- package/dist/collection/components/forms/save-view-form/save-view-form.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/typographyVariantsList.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer/question-specific-configs-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-form-api-utils.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js.map +0 -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.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/udp-question/udp-question.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/classes/UdpForm.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/classes/UdpFormSubmission.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/enums.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-handler/IFormHandler.js +0 -2
- package/dist/collection/components/forms/udp-forms/utils/form-handler/IFormHandler.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-handler/UdpFormHandler.js +0 -28
- package/dist/collection/components/forms/udp-forms/utils/form-handler/UdpFormHandler.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/FormSubmissionHandlerFactory.js +0 -17
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/FormSubmissionHandlerFactory.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/IFormSubmissionHandler.js +0 -2
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/IFormSubmissionHandler.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PrivateFormSubmissionHandler.js +0 -262
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PrivateFormSubmissionHandler.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PublicFormSubmissionHandler.js +0 -63
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PublicFormSubmissionHandler.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/formUtils.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/types.js +0 -2
- package/dist/collection/components/forms/udp-forms/utils/types.js.map +0 -1
- package/dist/collection/components/forms/udp-forms/utils/utils.js.map +0 -1
- package/dist/collection/components/grid/ag-table/ag-table.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-functions/buildGroupedSearchPayload.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/enums/gridEnums.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/interfaces/gridInterfaces.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/license/licenseKey.js.map +0 -1
- package/dist/collection/components/grid/ambient-template-grid/static-data/get-all-hotlists.js.map +0 -1
- package/dist/collection/components/grid/conversionFunctions/conversionFunctions.js.map +0 -1
- package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js.map +0 -1
- package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js.map +0 -1
- package/dist/collection/components/grid/new-grid/ag-grid-base.js.map +0 -1
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js.map +0 -1
- package/dist/collection/components/grid/new-grid/client-side-grid.js.map +0 -1
- package/dist/collection/components/grid/new-grid/datasources/searchMethodDatasource.js.map +0 -1
- package/dist/collection/components/grid/new-grid/entity-maintenance-grid.js.map +0 -1
- package/dist/collection/components/grid/new-grid/grid-header.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctionRegistry.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/advancedSearch.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridAutoSizeColumns.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridExport.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridHideShowColumns.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridResetColumns.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/agGridSizeColumnsToFit.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/bulkActions.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/chipFilter.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/restoreGridState.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/savedViews.js.map +0 -1
- package/dist/collection/components/grid/new-grid/gridFunctions/udpExport.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/configureUdpColumnMods.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/convertBackendTypeToAgGridType.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/convertSearchObjectToAgGridModel.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/guardedViewTransitions.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/searchObjectHelper.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/toggleAgGridColumnFilter.js.map +0 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/valueFormatters.js.map +0 -1
- package/dist/collection/components/grid/new-grid/interfaces/grid.js.map +0 -1
- package/dist/collection/components/grid/new-grid/interfaces/gridFunction.js.map +0 -1
- package/dist/collection/components/grid/new-grid/search-method-grid.js.map +0 -1
- package/dist/collection/components/grid/new-grid/server-side-grid.js.map +0 -1
- package/dist/collection/components/grid/renderers/actions-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/ag-grid-subtitle-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/currency-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/custom-actions-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/custom-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/date-time-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/email-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/hot-list-add-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/hover-content-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/icon-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/open-function-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/return-search-data-cell-renderer.js.map +0 -1
- package/dist/collection/components/grid/renderers/sharedContext.js.map +0 -1
- package/dist/collection/components/grid/renderers/status-renderer.js.map +0 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js.map +0 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-column-header.js.map +0 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js.map +0 -1
- package/dist/collection/components/inputs/checkbox/check-box.js.map +0 -1
- package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js.map +0 -1
- package/dist/collection/components/inputs/date-selector/udp-date-selector.js.map +0 -1
- package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js.map +0 -1
- package/dist/collection/components/inputs/file-upload/file-upload.js.map +0 -1
- package/dist/collection/components/inputs/file-upload/udp-drive-utils.js.map +0 -1
- package/dist/collection/components/inputs/image-upload/image-upload.js.map +0 -1
- package/dist/collection/components/inputs/input-types.js.map +0 -1
- package/dist/collection/components/inputs/numeric-field/numeric-field.js.map +0 -1
- package/dist/collection/components/inputs/selectable-list/selectable-list.js.map +0 -1
- package/dist/collection/components/inputs/signature-input/signature-input.js.map +0 -1
- package/dist/collection/components/inputs/tally/tally.js.map +0 -1
- package/dist/collection/components/inputs/text-area/text-area.js.map +0 -1
- package/dist/collection/components/inputs/text-field/text-field.js.map +0 -1
- package/dist/collection/components/inputs/time-selector/udp-time-selector.js.map +0 -1
- package/dist/collection/components/inputs/toggle/stencil-toggle.js.map +0 -1
- package/dist/collection/components/inputs/udp-selector/udp-selector.js.map +0 -1
- package/dist/collection/components/layout/udp-container/udp-container.js.map +0 -1
- package/dist/collection/components/layout/udp-container-query/udp-container-query.js.map +0 -1
- package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js.map +0 -1
- package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js.map +0 -1
- package/dist/collection/components/layout/udp-page/udp-page.js.map +0 -1
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js.map +0 -1
- package/dist/collection/components/layout/udp-vertical-spacer.js.map +0 -1
- package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js.map +0 -1
- package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js.map +0 -1
- package/dist/collection/components/loaders/udp-skeleton-loading.js.map +0 -1
- package/dist/collection/components/map/udp-map/map-component.js.map +0 -1
- package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js.map +0 -1
- package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js.map +0 -1
- package/dist/collection/components/map/udp-map/popups/feature-details-popup.js.map +0 -1
- package/dist/collection/components/map/udp-map/popups/select-layer-popup.js.map +0 -1
- package/dist/collection/components/map/udp-map/popups/split-line-popup.js.map +0 -1
- package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js.map +0 -1
- package/dist/collection/components/map/udp-map/udp-map-toolbar.js.map +0 -1
- package/dist/collection/components/map/udp-map/udp-map.js.map +0 -1
- package/dist/collection/components/map/udp-map/utils/check-box-group.js.map +0 -1
- package/dist/collection/components/map/udp-map/utils/common.js.map +0 -1
- package/dist/collection/components/map/udp-map/utils/map-interactions.js.map +0 -1
- package/dist/collection/components/map/udp-map/utils/udp-map-utils.js.map +0 -1
- package/dist/collection/components/menu/menu-item/udp-menu-item.js.map +0 -1
- package/dist/collection/components/menu/udp-menu.js.map +0 -1
- package/dist/collection/components/navigation/pagination/udp-pagination.js.map +0 -1
- package/dist/collection/components/navigation/udp-link/udp-link.js.map +0 -1
- package/dist/collection/components/stepper/types.js.map +0 -1
- package/dist/collection/components/stepper/udp-stepper-demo.js.map +0 -1
- package/dist/collection/components/stepper/udp-stepper.js.map +0 -1
- package/dist/collection/components/tabs/tab/tabs/udp-tabs.js.map +0 -1
- package/dist/collection/components/tabs/tab/udp-tab.js.map +0 -1
- package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js.map +0 -1
- package/dist/collection/components/timeline/udp-timeline-connector.js.map +0 -1
- package/dist/collection/components/timeline/udp-timeline-dot.js.map +0 -1
- package/dist/collection/components/timeline/udp-timeline-item.js.map +0 -1
- package/dist/collection/components/timeline/udp-timeline-separator.js.map +0 -1
- package/dist/collection/components/timeline/udp-timeline.js.map +0 -1
- package/dist/collection/components/toolbars/app-bar/app-bar.js.map +0 -1
- package/dist/collection/components/unity-typography/types.js.map +0 -1
- package/dist/collection/components/unity-typography/unity-typography.js.map +0 -1
- package/dist/collection/components/util/ghost-render/ghost-render.js.map +0 -1
- package/dist/collection/components.stories.js.map +0 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js.map +0 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet.js.map +0 -1
- package/dist/collection/global/configService.js.map +0 -1
- package/dist/collection/global/types.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/store/catalog-store.js.map +0 -1
- package/dist/collection/store/lookups-store.js.map +0 -1
- package/dist/collection/udp-utilities/api/makeApiCall/examples.js.map +0 -1
- package/dist/collection/udp-utilities/api/makeApiCall/makeApiCall.js.map +0 -1
- package/dist/collection/udp-utilities/api-config/configService.js.map +0 -1
- package/dist/collection/udp-utilities/api-config/index.js.map +0 -1
- package/dist/collection/udp-utilities/api-udp/apiMutate.js.map +0 -1
- package/dist/collection/udp-utilities/api-udp/apiUtils.js.map +0 -1
- package/dist/collection/udp-utilities/api-udp/baseUrls.js.map +0 -1
- package/dist/collection/udp-utilities/catalog/getCurrentApiCatalogId.js.map +0 -1
- package/dist/collection/udp-utilities/entityUtilities.js.map +0 -1
- package/dist/collection/udp-utilities/enums/unity-system-enums.js.map +0 -1
- package/dist/collection/udp-utilities/grid/action-renderers/action-column-util.js.map +0 -1
- package/dist/collection/udp-utilities/grid/convertToAgGridColumns.js.map +0 -1
- package/dist/collection/udp-utilities/grid/data-converters/transformSearchData.js.map +0 -1
- package/dist/collection/udp-utilities/grid/data-source/SearchServiceDatasource.js.map +0 -1
- package/dist/collection/udp-utilities/grid/models/udp-models.js.map +0 -1
- package/dist/collection/udp-utilities/grid/search/inquiry-search-datasource.js.map +0 -1
- package/dist/collection/udp-utilities/grid/search/search-utilities.js.map +0 -1
- package/dist/collection/udp-utilities/grid/udp-grid-enums.js.map +0 -1
- package/dist/collection/udp-utilities/interfaces/searchObject.js.map +0 -1
- package/dist/collection/udp-utilities/layout/breakpoints/breakpoints.js.map +0 -1
- package/dist/collection/udp-utilities/layout/breakpoints/useMatchBreakpoint.js.map +0 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js.map +0 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js.map +0 -1
- package/dist/collection/udp-utilities/search/SearchBuilder.js.map +0 -1
- package/dist/collection/udp-utilities/search/index.js.map +0 -1
- package/dist/collection/udp-utilities/string-utilities.js.map +0 -1
- package/dist/collection/udp-utilities/tenant/tenantUtils.js.map +0 -1
- package/dist/collection/udp-utilities/unity-session-storage.js.map +0 -1
- package/dist/collection/udp-utilities/user/getUserId.js.map +0 -1
- package/dist/components/SearchBuilder.js.map +0 -1
- package/dist/components/action-column-util.js.map +0 -1
- package/dist/components/add-map-feature-popup.js.map +0 -1
- package/dist/components/add-map-feature-popup2.js.map +0 -1
- package/dist/components/advanced-search-builder.js.map +0 -1
- package/dist/components/advanced-search-builder2.js.map +0 -1
- package/dist/components/advanced-search-grouped.js.map +0 -1
- package/dist/components/advanced-search-grouped2.js.map +0 -1
- package/dist/components/advanced-search.js.map +0 -1
- package/dist/components/advanced-search2.js.map +0 -1
- package/dist/components/ag-grid-base.js.map +0 -1
- package/dist/components/ag-grid-base2.js.map +0 -1
- package/dist/components/ag-table.js.map +0 -1
- package/dist/components/ag-table2.js.map +0 -1
- package/dist/components/ambient-template-grid.js.map +0 -1
- package/dist/components/api-method-instance-grid.js.map +0 -1
- package/dist/components/apiUtils.js.map +0 -1
- package/dist/components/app-bar.js.map +0 -1
- package/dist/components/catalog-store.js.map +0 -1
- package/dist/components/chart-container.js.map +0 -1
- package/dist/components/chart-container2.js.map +0 -1
- package/dist/components/chart-kpi.js.map +0 -1
- package/dist/components/chart-kpi2.js.map +0 -1
- package/dist/components/chartUtils.js.map +0 -1
- package/dist/components/check-box-group.js.map +0 -1
- package/dist/components/check-box-group2.js.map +0 -1
- package/dist/components/check-box.js.map +0 -1
- package/dist/components/chip-section.js.map +0 -1
- package/dist/components/client-side-grid.js.map +0 -1
- package/dist/components/client-side-grid2.js.map +0 -1
- package/dist/components/common.js.map +0 -1
- package/dist/components/configService.js.map +0 -1
- package/dist/components/conversionFunctions.js.map +0 -1
- package/dist/components/custom-button.js.map +0 -1
- package/dist/components/custom-button2.js.map +0 -1
- package/dist/components/date-time-renderer.js.map +0 -1
- package/dist/components/date-time-renderer2.js.map +0 -1
- package/dist/components/edit-view-form-dialog.js.map +0 -1
- package/dist/components/edit-view-form.js.map +0 -1
- package/dist/components/entity-maintenance-grid.js.map +0 -1
- package/dist/components/enums.js.map +0 -1
- package/dist/components/feature-details-card.js.map +0 -1
- package/dist/components/feature-details-card2.js.map +0 -1
- package/dist/components/feature-details-popup.js.map +0 -1
- package/dist/components/feature-details-popup2.js.map +0 -1
- package/dist/components/file-upload-renderer.js.map +0 -1
- package/dist/components/file-upload-renderer2.js.map +0 -1
- package/dist/components/file-upload.js.map +0 -1
- package/dist/components/file-upload2.js.map +0 -1
- package/dist/components/filter-conditions.js.map +0 -1
- package/dist/components/filter-conditions2.js.map +0 -1
- package/dist/components/filter-group.js.map +0 -1
- package/dist/components/filter-group2.js.map +0 -1
- package/dist/components/fluent-dialog.js.map +0 -1
- package/dist/components/fluent-dialog2.js.map +0 -1
- package/dist/components/forms-builder-utils.js.map +0 -1
- package/dist/components/ghost-render.js.map +0 -1
- package/dist/components/ghost-render2.js.map +0 -1
- package/dist/components/grid-header.js.map +0 -1
- package/dist/components/grid-header2.js.map +0 -1
- package/dist/components/grid-primary-bar.js.map +0 -1
- package/dist/components/grid-primary-bar2.js.map +0 -1
- package/dist/components/hint-panel.js.map +0 -1
- package/dist/components/hint-panel2.js.map +0 -1
- package/dist/components/image-upload.js.map +0 -1
- package/dist/components/image-upload2.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/index2.js.map +0 -1
- package/dist/components/kpi-list.js.map +0 -1
- package/dist/components/kpi-list2.js.map +0 -1
- package/dist/components/list-item.js.map +0 -1
- package/dist/components/list-options-renderer.js.map +0 -1
- package/dist/components/list-options-renderer2.js.map +0 -1
- package/dist/components/logical-search-indicator.js.map +0 -1
- package/dist/components/makeApiCall.js.map +0 -1
- package/dist/components/map-component.js.map +0 -1
- package/dist/components/map-component2.js.map +0 -1
- package/dist/components/map-interactions.js.map +0 -1
- package/dist/components/map-toolbar.js.map +0 -1
- package/dist/components/map-toolbar2.js.map +0 -1
- package/dist/components/numeric-field.js.map +0 -1
- package/dist/components/numeric-field2.js.map +0 -1
- package/dist/components/primary-action-header.js.map +0 -1
- package/dist/components/primary-action-header2.js.map +0 -1
- package/dist/components/question-configs-renderer.js.map +0 -1
- package/dist/components/question-configs-renderer2.js.map +0 -1
- package/dist/components/question-specific-configs-renderer.js.map +0 -1
- package/dist/components/question-specific-configs-renderer2.js.map +0 -1
- package/dist/components/resource-timeline-calendar.js.map +0 -1
- package/dist/components/resource-timeline-primary-bar.js.map +0 -1
- package/dist/components/resource-timeline-primary-bar2.js.map +0 -1
- package/dist/components/save-view-form-dialog.js.map +0 -1
- package/dist/components/save-view-form.js.map +0 -1
- package/dist/components/search-list-item.js.map +0 -1
- package/dist/components/search-list-item2.js.map +0 -1
- package/dist/components/search-method-grid.js.map +0 -1
- package/dist/components/search-method-grid2.js.map +0 -1
- package/dist/components/section-configs-renderer.js.map +0 -1
- package/dist/components/section-configs-renderer2.js.map +0 -1
- package/dist/components/select-layer-popup.js.map +0 -1
- package/dist/components/select-layer-popup2.js.map +0 -1
- package/dist/components/selectable-list.js.map +0 -1
- package/dist/components/selectable-list2.js.map +0 -1
- package/dist/components/server-side-grid.js.map +0 -1
- package/dist/components/server-side-grid2.js.map +0 -1
- package/dist/components/side-sheet-container.js.map +0 -1
- package/dist/components/side-sheet-container2.js.map +0 -1
- package/dist/components/side-sheet.js.map +0 -1
- package/dist/components/side-sheet2.js.map +0 -1
- package/dist/components/signature-input.js.map +0 -1
- package/dist/components/signature-input2.js.map +0 -1
- package/dist/components/signature-renderer.js.map +0 -1
- package/dist/components/signature-renderer2.js.map +0 -1
- package/dist/components/simple-card.js.map +0 -1
- package/dist/components/split-line-popup.js.map +0 -1
- package/dist/components/split-line-popup2.js.map +0 -1
- package/dist/components/status-chip.js.map +0 -1
- package/dist/components/status-chip2.js.map +0 -1
- package/dist/components/status-renderer.js.map +0 -1
- package/dist/components/stencil-chip.js.map +0 -1
- package/dist/components/stencil-chip2.js.map +0 -1
- package/dist/components/stencil-field.js.map +0 -1
- package/dist/components/stencil-field2.js.map +0 -1
- package/dist/components/stencil-form.js.map +0 -1
- package/dist/components/stencil-form2.js.map +0 -1
- package/dist/components/stencil-icon-button-grid-action-header.js.map +0 -1
- package/dist/components/stencil-icon-button-grid-action-header2.js.map +0 -1
- package/dist/components/stencil-icon-button.js.map +0 -1
- package/dist/components/stencil-icon-button2.js.map +0 -1
- package/dist/components/stencil-toggle.js.map +0 -1
- package/dist/components/stencil-toggle2.js.map +0 -1
- package/dist/components/tally-display.js.map +0 -1
- package/dist/components/tally.js.map +0 -1
- package/dist/components/tenantUtils.js.map +0 -1
- package/dist/components/text-area.js.map +0 -1
- package/dist/components/text-area2.js.map +0 -1
- package/dist/components/text-field.js.map +0 -1
- package/dist/components/text-field2.js.map +0 -1
- package/dist/components/text-input-renderer.js.map +0 -1
- package/dist/components/text-input-renderer2.js.map +0 -1
- package/dist/components/transformSearchData.js.map +0 -1
- package/dist/components/tree-list-item.js.map +0 -1
- package/dist/components/tree-list-item2.js.map +0 -1
- package/dist/components/udp-adornment.js.map +0 -1
- package/dist/components/udp-adornment2.js.map +0 -1
- package/dist/components/udp-advanced-search-builder.js.map +0 -1
- package/dist/components/udp-ambient-card.js.map +0 -1
- package/dist/components/udp-ambient-card2.js.map +0 -1
- package/dist/components/udp-ambient-tool-tip.js.map +0 -1
- package/dist/components/udp-ambient-tool-tip2.js.map +0 -1
- package/dist/components/udp-attachment-item.js.map +0 -1
- package/dist/components/udp-attachment-item2.js.map +0 -1
- package/dist/components/udp-attachment-list.js.map +0 -1
- package/dist/components/udp-avatar.js.map +0 -1
- package/dist/components/udp-avatar2.js.map +0 -1
- package/dist/components/udp-badge.js.map +0 -1
- package/dist/components/udp-badge2.js.map +0 -1
- package/dist/components/udp-bar-chart.js.map +0 -1
- package/dist/components/udp-bar-chart2.js.map +0 -1
- package/dist/components/udp-button.js.map +0 -1
- package/dist/components/udp-button2.js.map +0 -1
- package/dist/components/udp-calendar-base.js.map +0 -1
- package/dist/components/udp-calendar-base2.js.map +0 -1
- package/dist/components/udp-calendar-day.js.map +0 -1
- package/dist/components/udp-calendar-month.js.map +0 -1
- package/dist/components/udp-calendar-week.js.map +0 -1
- package/dist/components/udp-calendar-year.js.map +0 -1
- package/dist/components/udp-card-action-area.js.map +0 -1
- package/dist/components/udp-card-actions.js.map +0 -1
- package/dist/components/udp-card-actions2.js.map +0 -1
- package/dist/components/udp-card-content.js.map +0 -1
- package/dist/components/udp-card-content2.js.map +0 -1
- package/dist/components/udp-card-header.js.map +0 -1
- package/dist/components/udp-card-header2.js.map +0 -1
- package/dist/components/udp-card-media.js.map +0 -1
- package/dist/components/udp-card-media2.js.map +0 -1
- package/dist/components/udp-card.js.map +0 -1
- package/dist/components/udp-card2.js.map +0 -1
- package/dist/components/udp-charts-example.js.map +0 -1
- package/dist/components/udp-chip.js.map +0 -1
- package/dist/components/udp-chip2.js.map +0 -1
- package/dist/components/udp-column-header.js.map +0 -1
- package/dist/components/udp-column-header2.js.map +0 -1
- package/dist/components/udp-container-query-grid-item.js.map +0 -1
- package/dist/components/udp-container-query-grid.js.map +0 -1
- package/dist/components/udp-container-query.js.map +0 -1
- package/dist/components/udp-container-query2.js.map +0 -1
- package/dist/components/udp-container.js.map +0 -1
- package/dist/components/udp-container2.js.map +0 -1
- package/dist/components/udp-date-range-selector.js.map +0 -1
- package/dist/components/udp-date-selector.js.map +0 -1
- package/dist/components/udp-date-selector2.js.map +0 -1
- package/dist/components/udp-datetime-selector.js.map +0 -1
- package/dist/components/udp-datetime-selector2.js.map +0 -1
- package/dist/components/udp-dialog.js.map +0 -1
- package/dist/components/udp-dialog2.js.map +0 -1
- package/dist/components/udp-distribution-chart.js.map +0 -1
- package/dist/components/udp-distribution-chart2.js.map +0 -1
- package/dist/components/udp-divider.js.map +0 -1
- package/dist/components/udp-divider2.js.map +0 -1
- package/dist/components/udp-donut-chart.js.map +0 -1
- package/dist/components/udp-donut-chart2.js.map +0 -1
- package/dist/components/udp-drive-utils.js.map +0 -1
- package/dist/components/udp-dynamic-container-with-menu.js.map +0 -1
- package/dist/components/udp-dynamic-container-with-menu2.js.map +0 -1
- package/dist/components/udp-dynamic-form.js.map +0 -1
- package/dist/components/udp-empty-state-display.js.map +0 -1
- package/dist/components/udp-empty-state-display2.js.map +0 -1
- package/dist/components/udp-form-api-utils.js.map +0 -1
- package/dist/components/udp-forms-builder-menu.js.map +0 -1
- package/dist/components/udp-forms-builder-menu2.js.map +0 -1
- package/dist/components/udp-forms-builder-question-item.js.map +0 -1
- package/dist/components/udp-forms-builder-question-item2.js.map +0 -1
- package/dist/components/udp-forms-builder-style-override.js.map +0 -1
- package/dist/components/udp-forms-builder.js.map +0 -1
- package/dist/components/udp-forms-follow-up-list-card.js.map +0 -1
- package/dist/components/udp-forms-list-card.js.map +0 -1
- package/dist/components/udp-forms-list-card2.js.map +0 -1
- package/dist/components/udp-forms-list.js.map +0 -1
- package/dist/components/udp-forms-renderer.js.map +0 -1
- package/dist/components/udp-forms-ui.js.map +0 -1
- package/dist/components/udp-forms-ui2.js.map +0 -1
- package/dist/components/udp-function-button.js.map +0 -1
- package/dist/components/udp-function-button2.js.map +0 -1
- package/dist/components/udp-grid-loader.js.map +0 -1
- package/dist/components/udp-grid-loader2.js.map +0 -1
- package/dist/components/udp-hotlist-form.js.map +0 -1
- package/dist/components/udp-hotlist-form2.js.map +0 -1
- package/dist/components/udp-icon-button.js.map +0 -1
- package/dist/components/udp-icon-button2.js.map +0 -1
- package/dist/components/udp-icon.js.map +0 -1
- package/dist/components/udp-icon2.js.map +0 -1
- package/dist/components/udp-kpi-card.js.map +0 -1
- package/dist/components/udp-kpi-card2.js.map +0 -1
- package/dist/components/udp-kpi-cards.js.map +0 -1
- package/dist/components/udp-line-chart.js.map +0 -1
- package/dist/components/udp-line-chart2.js.map +0 -1
- package/dist/components/udp-linear-loader.js.map +0 -1
- package/dist/components/udp-linear-loader2.js.map +0 -1
- package/dist/components/udp-link.js.map +0 -1
- package/dist/components/udp-link2.js.map +0 -1
- package/dist/components/udp-list-item.js.map +0 -1
- package/dist/components/udp-list-renderer.js.map +0 -1
- package/dist/components/udp-list-renderer2.js.map +0 -1
- package/dist/components/udp-map-toolbar.js.map +0 -1
- package/dist/components/udp-map-toolbar2.js.map +0 -1
- package/dist/components/udp-map-utils.js.map +0 -1
- package/dist/components/udp-map.js.map +0 -1
- package/dist/components/udp-menu-item.js.map +0 -1
- package/dist/components/udp-menu-item2.js.map +0 -1
- package/dist/components/udp-menu.js.map +0 -1
- package/dist/components/udp-menu2.js.map +0 -1
- package/dist/components/udp-notification.js.map +0 -1
- package/dist/components/udp-notification2.js.map +0 -1
- package/dist/components/udp-page-header.js.map +0 -1
- package/dist/components/udp-page-header2.js.map +0 -1
- package/dist/components/udp-page.js.map +0 -1
- package/dist/components/udp-pagination.js.map +0 -1
- package/dist/components/udp-pagination2.js.map +0 -1
- package/dist/components/udp-pop-over-grid-action-header.js.map +0 -1
- package/dist/components/udp-pop-over-grid-action-header2.js.map +0 -1
- package/dist/components/udp-pop-over.js.map +0 -1
- package/dist/components/udp-pop-over2.js.map +0 -1
- package/dist/components/udp-question-comments.js.map +0 -1
- package/dist/components/udp-question-comments2.js.map +0 -1
- package/dist/components/udp-question.js.map +0 -1
- package/dist/components/udp-question2.js.map +0 -1
- package/dist/components/udp-radio-button.js.map +0 -1
- package/dist/components/udp-radio-button2.js.map +0 -1
- package/dist/components/udp-sankey-chart.js.map +0 -1
- package/dist/components/udp-save-draft-button.js.map +0 -1
- package/dist/components/udp-save-draft-button2.js.map +0 -1
- package/dist/components/udp-selector.js.map +0 -1
- package/dist/components/udp-selector2.js.map +0 -1
- package/dist/components/udp-side-sheet.js.map +0 -1
- package/dist/components/udp-side-sheet2.js.map +0 -1
- package/dist/components/udp-skeleton-loading.js.map +0 -1
- package/dist/components/udp-skeleton-loading2.js.map +0 -1
- package/dist/components/udp-split-screen.js.map +0 -1
- package/dist/components/udp-stepper-demo.js.map +0 -1
- package/dist/components/udp-stepper.js.map +0 -1
- package/dist/components/udp-stepper2.js.map +0 -1
- package/dist/components/udp-tab-panel.js.map +0 -1
- package/dist/components/udp-tab.js.map +0 -1
- package/dist/components/udp-tabs.js.map +0 -1
- package/dist/components/udp-tabs2.js.map +0 -1
- package/dist/components/udp-time-selector.js.map +0 -1
- package/dist/components/udp-time-selector2.js.map +0 -1
- package/dist/components/udp-timeline-connector.js.map +0 -1
- package/dist/components/udp-timeline-dot.js.map +0 -1
- package/dist/components/udp-timeline-item.js.map +0 -1
- package/dist/components/udp-timeline-separator.js.map +0 -1
- package/dist/components/udp-timeline.js.map +0 -1
- package/dist/components/udp-vertical-spacer.js.map +0 -1
- package/dist/components/udp-xy-chart.js.map +0 -1
- package/dist/components/udp-xy-chart2.js.map +0 -1
- package/dist/components/udp-xy-multi-series-chart.js.map +0 -1
- package/dist/components/unity-typography.js.map +0 -1
- package/dist/components/unity-typography2.js.map +0 -1
- package/dist/components/upd-alert-banner.js.map +0 -1
- package/dist/components/upd-alert-banner2.js.map +0 -1
- package/dist/components/useFormApi.js.map +0 -1
- package/dist/components/utils.js.map +0 -1
- package/dist/components/validation-chip.js.map +0 -1
- package/dist/components/validation-chip2.js.map +0 -1
- package/dist/esm/SearchBuilder-CvKqGlUH.js.map +0 -1
- package/dist/esm/action-column-util-DUK_9dnF.js.map +0 -1
- package/dist/esm/add-map-feature-popup.map-toolbar.select-layer-popup.split-line-popup.entry.js.map +0 -1
- package/dist/esm/advanced-search-builder.entry.js.map +0 -1
- package/dist/esm/advanced-search.advanced-search-grouped.ag-table.edit-view-form-dialog.grid-primary-bar.kpi-list.save-view-form-dialog.side-sheet.udp-hotlist-form.udp-notification.udp-pop-over-grid-action-header.upd-alert-banner.entry.js.map +0 -1
- package/dist/esm/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.js.map +0 -1
- package/dist/esm/ambient-template-grid.entry.js.map +0 -1
- package/dist/esm/api-method-instance-grid.entry.js.map +0 -1
- package/dist/esm/apiUtils-cUHs50y0.js.map +0 -1
- package/dist/esm/app-bar.entry.js.map +0 -1
- package/dist/esm/catalog-store-BhgNAUY6.js.map +0 -1
- package/dist/esm/chart-container.chart-kpi.udp-ambient-card.entry.js.map +0 -1
- package/dist/esm/chartUtils-DFIyEsL1.js.map +0 -1
- package/dist/esm/check-box-group.entry.js.map +0 -1
- package/dist/esm/check-box.entry.js.map +0 -1
- package/dist/esm/chip-section.entry.js.map +0 -1
- package/dist/esm/client-side-grid.resource-timeline-primary-bar.entry.js.map +0 -1
- package/dist/esm/common-CwN0FuAf.js.map +0 -1
- package/dist/esm/configService-BqLfkVKh.js.map +0 -1
- package/dist/esm/configureUdpColumnMods-CoCTzhve.js.map +0 -1
- package/dist/esm/conversionFunctions-CNWYTvRs.js.map +0 -1
- package/dist/esm/currency-renderer-D6zBtP2s.js.map +0 -1
- package/dist/esm/custom-button.entry.js.map +0 -1
- package/dist/esm/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.js.map +0 -1
- package/dist/esm/entity-maintenance-grid.entry.js.map +0 -1
- package/dist/esm/enums-BnKmfKJT.js.map +0 -1
- package/dist/esm/feature-details-card.feature-details-popup.entry.js.map +0 -1
- package/dist/esm/file-upload.selectable-list.stencil-field.entry.js.map +0 -1
- package/dist/esm/filter-conditions.search-list-item.tree-list-item.udp-column-header.udp-grid-loader.udp-page-header.udp-radio-button.entry.js.map +0 -1
- package/dist/esm/filter-group.validation-chip.entry.js.map +0 -1
- package/dist/esm/fluent-dialog.entry.js.map +0 -1
- package/dist/esm/getCurrentApiCatalogId-DeurXd9l.js.map +0 -1
- package/dist/esm/iconMapping-CPerGeNF.js.map +0 -1
- package/dist/esm/iconUtils-DcPvHO4A.js.map +0 -1
- package/dist/esm/image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.js.map +0 -1
- package/dist/esm/index-CaZq3YdB.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/logical-search-indicator.entry.js.map +0 -1
- package/dist/esm/makeApiCall-B-daVutk.js.map +0 -1
- package/dist/esm/map-component.udp-map-toolbar.entry.js.map +0 -1
- package/dist/esm/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.js.map +0 -1
- package/dist/esm/primary-action-header.udp-side-sheet.udp-tabs.entry.js.map +0 -1
- package/dist/esm/primary-action-header_3.entry.js +0 -642
- package/dist/esm/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.js.map +0 -1
- package/dist/esm/resource-timeline-calendar.entry.js.map +0 -1
- package/dist/esm/search-method-grid.entry.js.map +0 -1
- package/dist/esm/server-side-grid.entry.js.map +0 -1
- package/dist/esm/side-sheet-container.entry.js.map +0 -1
- package/dist/esm/simple-card.entry.js.map +0 -1
- package/dist/esm/status-chip.udp-function-button.entry.js.map +0 -1
- package/dist/esm/stencil-chip.entry.js.map +0 -1
- package/dist/esm/stencil-icon-button-grid-action-header.entry.js.map +0 -1
- package/dist/esm/stencil-icon-button.udp-ambient-tool-tip.udp-badge.entry.js.map +0 -1
- package/dist/esm/stencil-library.js.map +0 -1
- package/dist/esm/stencil-toggle.entry.js.map +0 -1
- package/dist/esm/tenantUtils-Basdb1b1.js.map +0 -1
- package/dist/esm/text-field.udp-selector.entry.js.map +0 -1
- package/dist/esm/transformSearchData-DBjFnXu6.js.map +0 -1
- package/dist/esm/udp-adornment.entry.js.map +0 -1
- package/dist/esm/udp-advanced-search-builder.entry.js.map +0 -1
- package/dist/esm/udp-attachment-item.udp-empty-state-display.entry.js.map +0 -1
- package/dist/esm/udp-attachment-list.entry.js.map +0 -1
- package/dist/esm/udp-avatar.entry.js.map +0 -1
- package/dist/esm/udp-bar-chart.udp-distribution-chart.udp-donut-chart.udp-line-chart.entry.js.map +0 -1
- package/dist/esm/udp-button.entry.js.map +0 -1
- package/dist/esm/udp-calendar-base.entry.js.map +0 -1
- package/dist/esm/udp-calendar-day.entry.js.map +0 -1
- package/dist/esm/udp-calendar-month.entry.js.map +0 -1
- package/dist/esm/udp-calendar-week.entry.js.map +0 -1
- package/dist/esm/udp-calendar-year.entry.js.map +0 -1
- package/dist/esm/udp-card-action-area.entry.js.map +0 -1
- package/dist/esm/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.js.map +0 -1
- package/dist/esm/udp-charts-example.entry.js.map +0 -1
- package/dist/esm/udp-chip.udp-icon-button.udp-menu.entry.js.map +0 -1
- package/dist/esm/udp-container-query-grid-item.entry.js.map +0 -1
- package/dist/esm/udp-container-query-grid.entry.js.map +0 -1
- package/dist/esm/udp-container-query.entry.js.map +0 -1
- package/dist/esm/udp-container.udp-linear-loader.entry.js.map +0 -1
- package/dist/esm/udp-container_2.entry.js +0 -53
- package/dist/esm/udp-date-range-selector.entry.js.map +0 -1
- package/dist/esm/udp-divider.entry.js.map +0 -1
- package/dist/esm/udp-drive-utils-CIrjVGiJ.js.map +0 -1
- package/dist/esm/udp-dynamic-container-with-menu.entry.js.map +0 -1
- package/dist/esm/udp-dynamic-form.entry.js.map +0 -1
- package/dist/esm/udp-form-api-utils-vPSYCvIA.js.map +0 -1
- package/dist/esm/udp-forms-builder-question-template-C60LMUS4.js.map +0 -1
- package/dist/esm/udp-forms-builder-style-override.entry.js.map +0 -1
- package/dist/esm/udp-forms-builder.entry.js.map +0 -1
- package/dist/esm/udp-forms-follow-up-list-card.entry.js.map +0 -1
- package/dist/esm/udp-forms-list-card.entry.js.map +0 -1
- package/dist/esm/udp-forms-list.entry.js.map +0 -1
- package/dist/esm/udp-forms-renderer.entry.js.map +0 -1
- package/dist/esm/udp-forms-ui.entry.js.map +0 -1
- package/dist/esm/udp-icon.entry.js.map +0 -1
- package/dist/esm/udp-kpi-card.entry.js.map +0 -1
- package/dist/esm/udp-kpi-cards.entry.js.map +0 -1
- package/dist/esm/udp-list-renderer.udp-pagination.entry.js.map +0 -1
- package/dist/esm/udp-map-utils-DNAUNI5U.js.map +0 -1
- package/dist/esm/udp-map.entry.js.map +0 -1
- package/dist/esm/udp-menu-item.entry.js +0 -25
- package/dist/esm/udp-menu-item.entry.js.map +0 -1
- package/dist/esm/udp-page.entry.js.map +0 -1
- package/dist/esm/udp-pop-over.entry.js.map +0 -1
- package/dist/esm/udp-sankey-chart.entry.js.map +0 -1
- package/dist/esm/udp-skeleton-loading.entry.js.map +0 -1
- package/dist/esm/udp-split-screen.entry.js.map +0 -1
- package/dist/esm/udp-stepper-demo.entry.js.map +0 -1
- package/dist/esm/udp-stepper.entry.js.map +0 -1
- package/dist/esm/udp-tab-panel.entry.js.map +0 -1
- package/dist/esm/udp-tab.entry.js.map +0 -1
- package/dist/esm/udp-timeline-connector.entry.js.map +0 -1
- package/dist/esm/udp-timeline-dot.entry.js.map +0 -1
- package/dist/esm/udp-timeline-item.entry.js.map +0 -1
- package/dist/esm/udp-timeline-separator.entry.js.map +0 -1
- package/dist/esm/udp-timeline.entry.js.map +0 -1
- package/dist/esm/udp-vertical-spacer.entry.js.map +0 -1
- package/dist/esm/udp-xy-chart.entry.js.map +0 -1
- package/dist/esm/udp-xy-multi-series-chart.entry.js.map +0 -1
- package/dist/esm/udpFieldHelper-qPBcfmrH.js.map +0 -1
- package/dist/esm/udpOperatorHelper-BsvDrT81.js.map +0 -1
- package/dist/esm/unity-typography.entry.js.map +0 -1
- package/dist/esm/utils-CiUp9KGZ.js.map +0 -1
- package/dist/stencil-library/SearchBuilder-CvKqGlUH.js.map +0 -1
- package/dist/stencil-library/action-column-util-DUK_9dnF.js.map +0 -1
- package/dist/stencil-library/add-map-feature-popup.map-toolbar.select-layer-popup.split-line-popup.entry.esm.js.map +0 -1
- package/dist/stencil-library/add-map-feature-popup_4.entry.js.map +0 -1
- package/dist/stencil-library/advanced-search-builder.entry.esm.js.map +0 -1
- package/dist/stencil-library/advanced-search-builder.entry.js.map +0 -1
- package/dist/stencil-library/advanced-search.advanced-search-grouped.ag-table.edit-view-form-dialog.grid-primary-bar.kpi-list.save-view-form-dialog.side-sheet.udp-hotlist-form.udp-notification.udp-pop-over-grid-action-header.upd-alert-banner.entry.esm.js.map +0 -1
- package/dist/stencil-library/advanced-search_12.entry.js.map +0 -1
- package/dist/stencil-library/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.esm.js.map +0 -1
- package/dist/stencil-library/ag-grid-base_6.entry.js.map +0 -1
- package/dist/stencil-library/ambient-template-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/ambient-template-grid.entry.js.map +0 -1
- package/dist/stencil-library/api-method-instance-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/api-method-instance-grid.entry.js.map +0 -1
- package/dist/stencil-library/apiUtils-cUHs50y0.js.map +0 -1
- package/dist/stencil-library/app-bar.entry.esm.js.map +0 -1
- package/dist/stencil-library/app-bar.entry.js.map +0 -1
- package/dist/stencil-library/catalog-store-BhgNAUY6.js.map +0 -1
- package/dist/stencil-library/chart-container.chart-kpi.udp-ambient-card.entry.esm.js.map +0 -1
- package/dist/stencil-library/chart-container_3.entry.js.map +0 -1
- package/dist/stencil-library/chartUtils-DFIyEsL1.js.map +0 -1
- package/dist/stencil-library/check-box-group.entry.esm.js.map +0 -1
- package/dist/stencil-library/check-box-group.entry.js.map +0 -1
- package/dist/stencil-library/check-box.entry.esm.js.map +0 -1
- package/dist/stencil-library/check-box.entry.js.map +0 -1
- package/dist/stencil-library/chip-section.entry.esm.js.map +0 -1
- package/dist/stencil-library/chip-section.entry.js.map +0 -1
- package/dist/stencil-library/client-side-grid.resource-timeline-primary-bar.entry.esm.js.map +0 -1
- package/dist/stencil-library/client-side-grid_2.entry.js.map +0 -1
- package/dist/stencil-library/common-CwN0FuAf.js.map +0 -1
- package/dist/stencil-library/configService-BqLfkVKh.js.map +0 -1
- package/dist/stencil-library/configureUdpColumnMods-CoCTzhve.js.map +0 -1
- package/dist/stencil-library/conversionFunctions-CNWYTvRs.js.map +0 -1
- package/dist/stencil-library/currency-renderer-D6zBtP2s.js.map +0 -1
- package/dist/stencil-library/custom-button.entry.esm.js.map +0 -1
- package/dist/stencil-library/custom-button.entry.js.map +0 -1
- package/dist/stencil-library/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.esm.js.map +0 -1
- package/dist/stencil-library/date-time-renderer_6.entry.js +0 -2
- package/dist/stencil-library/date-time-renderer_6.entry.js.map +0 -1
- package/dist/stencil-library/entity-maintenance-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/entity-maintenance-grid.entry.js.map +0 -1
- package/dist/stencil-library/enums-BnKmfKJT.js +0 -2
- package/dist/stencil-library/enums-BnKmfKJT.js.map +0 -1
- package/dist/stencil-library/feature-details-card.feature-details-popup.entry.esm.js.map +0 -1
- package/dist/stencil-library/feature-details-card_2.entry.js.map +0 -1
- package/dist/stencil-library/file-upload.selectable-list.stencil-field.entry.esm.js.map +0 -1
- package/dist/stencil-library/file-upload_3.entry.js.map +0 -1
- package/dist/stencil-library/filter-conditions.search-list-item.tree-list-item.udp-column-header.udp-grid-loader.udp-page-header.udp-radio-button.entry.esm.js.map +0 -1
- package/dist/stencil-library/filter-conditions_7.entry.js.map +0 -1
- package/dist/stencil-library/filter-group.validation-chip.entry.esm.js.map +0 -1
- package/dist/stencil-library/filter-group_2.entry.js.map +0 -1
- package/dist/stencil-library/fluent-dialog.entry.esm.js.map +0 -1
- package/dist/stencil-library/fluent-dialog.entry.js.map +0 -1
- package/dist/stencil-library/getCurrentApiCatalogId-DeurXd9l.js.map +0 -1
- package/dist/stencil-library/iconMapping-CPerGeNF.js.map +0 -1
- package/dist/stencil-library/iconUtils-DcPvHO4A.js.map +0 -1
- package/dist/stencil-library/image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.esm.js.map +0 -1
- package/dist/stencil-library/image-upload_7.entry.js +0 -2
- package/dist/stencil-library/image-upload_7.entry.js.map +0 -1
- package/dist/stencil-library/index-CaZq3YdB.js +0 -3
- package/dist/stencil-library/index-CaZq3YdB.js.map +0 -1
- package/dist/stencil-library/index.esm.js.map +0 -1
- package/dist/stencil-library/loader.esm.js.map +0 -1
- package/dist/stencil-library/logical-search-indicator.entry.esm.js.map +0 -1
- package/dist/stencil-library/logical-search-indicator.entry.js.map +0 -1
- package/dist/stencil-library/makeApiCall-B-daVutk.js.map +0 -1
- package/dist/stencil-library/map-component.udp-map-toolbar.entry.esm.js.map +0 -1
- package/dist/stencil-library/map-component_2.entry.js.map +0 -1
- package/dist/stencil-library/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.esm.js.map +0 -1
- package/dist/stencil-library/numeric-field_5.entry.js.map +0 -1
- package/dist/stencil-library/primary-action-header.udp-side-sheet.udp-tabs.entry.esm.js.map +0 -1
- package/dist/stencil-library/primary-action-header_3.entry.js +0 -2
- package/dist/stencil-library/primary-action-header_3.entry.js.map +0 -1
- package/dist/stencil-library/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.esm.js.map +0 -1
- package/dist/stencil-library/question-configs-renderer_4.entry.js.map +0 -1
- package/dist/stencil-library/resource-timeline-calendar.entry.esm.js.map +0 -1
- package/dist/stencil-library/resource-timeline-calendar.entry.js.map +0 -1
- package/dist/stencil-library/search-method-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/search-method-grid.entry.js.map +0 -1
- package/dist/stencil-library/server-side-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/server-side-grid.entry.js.map +0 -1
- package/dist/stencil-library/side-sheet-container.entry.esm.js.map +0 -1
- package/dist/stencil-library/side-sheet-container.entry.js.map +0 -1
- package/dist/stencil-library/simple-card.entry.esm.js.map +0 -1
- package/dist/stencil-library/simple-card.entry.js.map +0 -1
- package/dist/stencil-library/status-chip.udp-function-button.entry.esm.js.map +0 -1
- package/dist/stencil-library/status-chip_2.entry.js.map +0 -1
- package/dist/stencil-library/stencil-chip.entry.esm.js.map +0 -1
- package/dist/stencil-library/stencil-chip.entry.js.map +0 -1
- package/dist/stencil-library/stencil-icon-button-grid-action-header.entry.esm.js.map +0 -1
- package/dist/stencil-library/stencil-icon-button-grid-action-header.entry.js.map +0 -1
- package/dist/stencil-library/stencil-icon-button.udp-ambient-tool-tip.udp-badge.entry.esm.js.map +0 -1
- package/dist/stencil-library/stencil-icon-button_3.entry.js.map +0 -1
- package/dist/stencil-library/stencil-library.esm.js.map +0 -1
- package/dist/stencil-library/stencil-toggle.entry.esm.js.map +0 -1
- package/dist/stencil-library/stencil-toggle.entry.js.map +0 -1
- package/dist/stencil-library/tenantUtils-Basdb1b1.js.map +0 -1
- package/dist/stencil-library/text-field.udp-selector.entry.esm.js.map +0 -1
- package/dist/stencil-library/text-field_2.entry.js.map +0 -1
- package/dist/stencil-library/transformSearchData-DBjFnXu6.js.map +0 -1
- package/dist/stencil-library/udp-adornment.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-adornment.entry.js.map +0 -1
- package/dist/stencil-library/udp-advanced-search-builder.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-advanced-search-builder.entry.js.map +0 -1
- package/dist/stencil-library/udp-attachment-item.udp-empty-state-display.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-attachment-item_2.entry.js.map +0 -1
- package/dist/stencil-library/udp-attachment-list.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-attachment-list.entry.js.map +0 -1
- package/dist/stencil-library/udp-avatar.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-avatar.entry.js.map +0 -1
- package/dist/stencil-library/udp-bar-chart.udp-distribution-chart.udp-donut-chart.udp-line-chart.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-bar-chart_4.entry.js.map +0 -1
- package/dist/stencil-library/udp-button.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-button.entry.js.map +0 -1
- package/dist/stencil-library/udp-calendar-base.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-calendar-base.entry.js.map +0 -1
- package/dist/stencil-library/udp-calendar-day.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-calendar-day.entry.js.map +0 -1
- package/dist/stencil-library/udp-calendar-month.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-calendar-month.entry.js.map +0 -1
- package/dist/stencil-library/udp-calendar-week.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-calendar-week.entry.js.map +0 -1
- package/dist/stencil-library/udp-calendar-year.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-calendar-year.entry.js.map +0 -1
- package/dist/stencil-library/udp-card-action-area.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-card-action-area.entry.js.map +0 -1
- package/dist/stencil-library/udp-card.udp-card-actions.udp-card-content.udp-card-header.udp-card-media.udp-link.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-card_6.entry.js.map +0 -1
- package/dist/stencil-library/udp-charts-example.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-charts-example.entry.js.map +0 -1
- package/dist/stencil-library/udp-chip.udp-icon-button.udp-menu.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-chip_3.entry.js.map +0 -1
- package/dist/stencil-library/udp-container-query-grid-item.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-container-query-grid-item.entry.js.map +0 -1
- package/dist/stencil-library/udp-container-query-grid.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-container-query-grid.entry.js.map +0 -1
- package/dist/stencil-library/udp-container-query.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-container-query.entry.js.map +0 -1
- package/dist/stencil-library/udp-container.udp-linear-loader.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-container_2.entry.js +0 -2
- package/dist/stencil-library/udp-container_2.entry.js.map +0 -1
- package/dist/stencil-library/udp-date-range-selector.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-date-range-selector.entry.js.map +0 -1
- package/dist/stencil-library/udp-divider.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-divider.entry.js.map +0 -1
- package/dist/stencil-library/udp-drive-utils-CIrjVGiJ.js.map +0 -1
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js.map +0 -1
- package/dist/stencil-library/udp-dynamic-form.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-dynamic-form.entry.js.map +0 -1
- package/dist/stencil-library/udp-form-api-utils-vPSYCvIA.js.map +0 -1
- package/dist/stencil-library/udp-forms-builder-question-template-C60LMUS4.js +0 -2
- package/dist/stencil-library/udp-forms-builder-question-template-C60LMUS4.js.map +0 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-builder.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-builder.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-list-card.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-list-card.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-list.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-list.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-renderer.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-renderer.entry.js.map +0 -1
- package/dist/stencil-library/udp-forms-ui.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-forms-ui.entry.js.map +0 -1
- package/dist/stencil-library/udp-icon.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-icon.entry.js.map +0 -1
- package/dist/stencil-library/udp-kpi-card.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-kpi-card.entry.js.map +0 -1
- package/dist/stencil-library/udp-kpi-cards.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-kpi-cards.entry.js.map +0 -1
- package/dist/stencil-library/udp-list-renderer.udp-pagination.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-list-renderer_2.entry.js.map +0 -1
- package/dist/stencil-library/udp-map-utils-DNAUNI5U.js.map +0 -1
- package/dist/stencil-library/udp-map.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-map.entry.js.map +0 -1
- package/dist/stencil-library/udp-menu-item.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-menu-item.entry.js +0 -2
- package/dist/stencil-library/udp-menu-item.entry.js.map +0 -1
- package/dist/stencil-library/udp-page.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-page.entry.js.map +0 -1
- package/dist/stencil-library/udp-pop-over.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-pop-over.entry.js +0 -2
- package/dist/stencil-library/udp-pop-over.entry.js.map +0 -1
- package/dist/stencil-library/udp-sankey-chart.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-sankey-chart.entry.js.map +0 -1
- package/dist/stencil-library/udp-skeleton-loading.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-skeleton-loading.entry.js.map +0 -1
- package/dist/stencil-library/udp-split-screen.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-split-screen.entry.js.map +0 -1
- package/dist/stencil-library/udp-stepper-demo.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-stepper-demo.entry.js.map +0 -1
- package/dist/stencil-library/udp-stepper.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-stepper.entry.js.map +0 -1
- package/dist/stencil-library/udp-tab-panel.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-tab-panel.entry.js.map +0 -1
- package/dist/stencil-library/udp-tab.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-tab.entry.js.map +0 -1
- package/dist/stencil-library/udp-timeline-connector.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-timeline-connector.entry.js.map +0 -1
- package/dist/stencil-library/udp-timeline-dot.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-timeline-dot.entry.js.map +0 -1
- package/dist/stencil-library/udp-timeline-item.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-timeline-item.entry.js.map +0 -1
- package/dist/stencil-library/udp-timeline-separator.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-timeline-separator.entry.js.map +0 -1
- package/dist/stencil-library/udp-timeline.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-timeline.entry.js.map +0 -1
- package/dist/stencil-library/udp-vertical-spacer.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-vertical-spacer.entry.js.map +0 -1
- package/dist/stencil-library/udp-xy-chart.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-xy-chart.entry.js.map +0 -1
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.esm.js.map +0 -1
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.js.map +0 -1
- package/dist/stencil-library/udpFieldHelper-qPBcfmrH.js.map +0 -1
- package/dist/stencil-library/udpOperatorHelper-BsvDrT81.js.map +0 -1
- package/dist/stencil-library/unity-typography.entry.esm.js.map +0 -1
- package/dist/stencil-library/unity-typography.entry.js.map +0 -1
- package/dist/stencil-library/utils-CiUp9KGZ.js +0 -2
- package/dist/stencil-library/utils-CiUp9KGZ.js.map +0 -1
- package/dist/types/components/forms/udp-forms/utils/form-handler/UdpFormHandler.d.ts +0 -11
- package/dist/types/components/forms/udp-forms/utils/form-submission-handler/IFormSubmissionHandler.d.ts +0 -15
- package/dist/types/components/forms/udp-forms/utils/form-submission-handler/PrivateFormSubmissionHandler.d.ts +0 -131
- package/dist/types/components/forms/udp-forms/utils/form-submission-handler/PublicFormSubmissionHandler.d.ts +0 -15
- /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpForm.d.ts +0 -0
- /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-handler/IFormHandler.d.ts +0 -0
- /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/formUtils.d.ts +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-SNloIaSR.js');
|
|
4
4
|
var lodash = require('lodash');
|
|
5
|
-
var enums = require('./enums-ibNZ4cZ4.js');
|
|
6
5
|
var tenantUtils = require('./tenantUtils-BCKSE0vq.js');
|
|
7
6
|
var udpFormApiUtils = require('./udp-form-api-utils-BwNeblH_.js');
|
|
8
|
-
var
|
|
7
|
+
var enums = require('./enums-B3aaCQaV.js');
|
|
8
|
+
var utils = require('./utils-Bp02BX38.js');
|
|
9
9
|
var makeApiCall = require('./makeApiCall-CFfg9gI0.js');
|
|
10
10
|
var SearchBuilder = require('./SearchBuilder-C1sUitjQ.js');
|
|
11
11
|
var configService = require('./configService-BmGAegZf.js');
|
|
@@ -24,67 +24,6 @@ function isFileArray(array) {
|
|
|
24
24
|
return array.every(item => item instanceof File);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// TODO: This handler needs to be updated with new public form logic.
|
|
28
|
-
// ******* THIS HANDLER IS OUTDATED, AND WILL LIKELY NOT WORK *********
|
|
29
|
-
/**
|
|
30
|
-
* Handles submission for *public* (unauthenticated) forms.
|
|
31
|
-
*/
|
|
32
|
-
class PublicFormSubmissionHandler {
|
|
33
|
-
constructor(formId, formVersion, tenantId) { }
|
|
34
|
-
async fetchAndPopulateUdpFormSubmissionObj(submission) {
|
|
35
|
-
return submission;
|
|
36
|
-
}
|
|
37
|
-
objectToFormData(obj) {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
const files = [];
|
|
40
|
-
const formObj = {};
|
|
41
|
-
for (const key in obj) {
|
|
42
|
-
let value = (_b = (_a = obj[key]) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : obj[key];
|
|
43
|
-
if (isFileArray(value)) {
|
|
44
|
-
if (value.length > 0) {
|
|
45
|
-
files.push(value[0]);
|
|
46
|
-
formObj[key] = value[0].name;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
else if (Array.isArray(value)) {
|
|
50
|
-
formObj[key] = value.map(v => (typeof v === 'string' ? v : v.value)).join(',');
|
|
51
|
-
}
|
|
52
|
-
else if (value !== null && value !== undefined && value !== '') {
|
|
53
|
-
formObj[key] = value;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return makeApiCall.createFormData({
|
|
57
|
-
formData: JSON.stringify(formObj),
|
|
58
|
-
formFiles: files[0] || null
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
async saveCurrentFormSubmissionState(values, submission) {
|
|
62
|
-
return submission;
|
|
63
|
-
}
|
|
64
|
-
async saveFormSubmissionComments(values, submission) {
|
|
65
|
-
return submission;
|
|
66
|
-
}
|
|
67
|
-
async createNewLinkedFollowUpFormSubmission(submission) {
|
|
68
|
-
return submission;
|
|
69
|
-
}
|
|
70
|
-
async finalizeFormSubmissionState(values, submission) {
|
|
71
|
-
try {
|
|
72
|
-
// const formData = this.objectToFormData(values);
|
|
73
|
-
// await makeApiCall(
|
|
74
|
-
// 'POST',
|
|
75
|
-
// `${ConfigService.productV1ApiUrl}/UdpForm/${this.formId}/${this.formVersion}/submit/public?tenantId=${this.tenantId}`,
|
|
76
|
-
// formData,
|
|
77
|
-
// true
|
|
78
|
-
// );
|
|
79
|
-
return submission;
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
console.error('Public form submission failed:', error);
|
|
83
|
-
throw error;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
27
|
class UdpFormSubmission {
|
|
89
28
|
constructor(initialData = {}) {
|
|
90
29
|
this.id = null;
|
|
@@ -104,21 +43,20 @@ class UdpFormSubmission {
|
|
|
104
43
|
this.generic1 = null;
|
|
105
44
|
this.generic2 = null;
|
|
106
45
|
this.generic3 = null;
|
|
46
|
+
this.userEmail = null;
|
|
107
47
|
Object.assign(this, initialData);
|
|
108
48
|
}
|
|
109
49
|
// =============================
|
|
110
50
|
// Form Data Processing
|
|
111
51
|
// =============================
|
|
112
52
|
processSubmissionIntoFormDataWithoutValues(status) {
|
|
113
|
-
const
|
|
114
|
-
const baseData = this.buildBaseSubmissionData(statusValue);
|
|
53
|
+
const baseData = this.buildBaseSubmissionData(status);
|
|
115
54
|
const formData = makeApiCall.createFormData(baseData);
|
|
116
55
|
formData.append('Data', JSON.stringify(this.data));
|
|
117
56
|
return formData;
|
|
118
57
|
}
|
|
119
58
|
processSubmissionIntoFormData(formInputValuesAndMetadata, status) {
|
|
120
|
-
const
|
|
121
|
-
const baseData = this.buildBaseSubmissionData(statusValue);
|
|
59
|
+
const baseData = this.buildBaseSubmissionData(status);
|
|
122
60
|
const { cleanedData, files } = this.extractCleanedDataAndFiles(formInputValuesAndMetadata);
|
|
123
61
|
const formData = makeApiCall.createFormData(baseData);
|
|
124
62
|
files.forEach(file => formData.append('FormFiles', file));
|
|
@@ -129,18 +67,11 @@ class UdpFormSubmission {
|
|
|
129
67
|
formData.append('Data', JSON.stringify(submissionDataObject));
|
|
130
68
|
return formData;
|
|
131
69
|
}
|
|
132
|
-
resolveSubmissionStatus(status) {
|
|
133
|
-
if (status === 'submitted')
|
|
134
|
-
return 2;
|
|
135
|
-
if (status === 'in-progress')
|
|
136
|
-
return 1;
|
|
137
|
-
return typeof status === 'number' ? status : 1;
|
|
138
|
-
}
|
|
139
70
|
buildBaseSubmissionData(statusValue) {
|
|
140
71
|
const baseData = {
|
|
141
72
|
FormId: this.formId,
|
|
142
73
|
FormVersion: this.formVersion.toString(),
|
|
143
|
-
Status: statusValue
|
|
74
|
+
Status: statusValue,
|
|
144
75
|
};
|
|
145
76
|
if (this.id) {
|
|
146
77
|
baseData.Id = this.id;
|
|
@@ -225,259 +156,138 @@ class UdpFormSubmission {
|
|
|
225
156
|
}
|
|
226
157
|
|
|
227
158
|
/**
|
|
228
|
-
*
|
|
159
|
+
* Single handler for UdpFormSubmission operations.
|
|
160
|
+
*
|
|
161
|
+
* Behavior changes by access mode:
|
|
162
|
+
* - private: supports draft save and follow-ups; comments are saved via standard draft-save until submitted,
|
|
163
|
+
* and via dedicated comment endpoints when submitted or viewed by a non-owner.
|
|
164
|
+
* - public : no draft save, no follow-ups; submit uses the `/UdpFormSubmission/public` endpoint;
|
|
165
|
+
* comments use dedicated comment endpoints once a submission exists.
|
|
229
166
|
*/
|
|
230
|
-
class
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
* Fetch and refresh an existing UdpFormSubmission instance.
|
|
236
|
-
*
|
|
237
|
-
* Attempts to load the latest server representation of the provided
|
|
238
|
-
* udpFormSubmission. Uses generic fields (generic1/2/3) when present to
|
|
239
|
-
* disambiguate records, otherwise falls back to a simple id lookup.
|
|
240
|
-
*
|
|
241
|
-
* @param udpFormSubmission - local UdpFormSubmission object to refresh
|
|
242
|
-
* @returns a new UdpFormSubmission merged with server data, or the original on failure
|
|
243
|
-
* @throws network or unexpected errors
|
|
244
|
-
*/
|
|
245
|
-
async fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission) {
|
|
167
|
+
class FormSubmissionHandler {
|
|
168
|
+
constructor(accessMode) {
|
|
169
|
+
this.accessMode = accessMode;
|
|
170
|
+
}
|
|
171
|
+
async addComment(udpFormSubmission, comment) {
|
|
246
172
|
if (!(udpFormSubmission === null || udpFormSubmission === void 0 ? void 0 : udpFormSubmission.id)) {
|
|
247
|
-
|
|
248
|
-
return udpFormSubmission;
|
|
249
|
-
}
|
|
250
|
-
try {
|
|
251
|
-
const { id, generic1, generic2, generic3 } = udpFormSubmission;
|
|
252
|
-
let response = null;
|
|
253
|
-
// Prefer the generics-aware lookup if any generic values are present
|
|
254
|
-
if (generic1 || generic2 || generic3) {
|
|
255
|
-
response = await this.getFormSubmissionByIdAndGenerics(id, generic1 || undefined, generic2 || undefined, generic3 || undefined);
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
response = await this.getFormSubmissionById(id);
|
|
259
|
-
}
|
|
260
|
-
if (!response) {
|
|
261
|
-
console.warn('No form submission found for the provided object.');
|
|
262
|
-
return udpFormSubmission;
|
|
263
|
-
}
|
|
264
|
-
return new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
265
|
-
}
|
|
266
|
-
catch (error) {
|
|
267
|
-
console.error('Error fetching form submission:', error);
|
|
268
|
-
throw error;
|
|
173
|
+
throw new Error('Cannot add a comment without a submission ID.');
|
|
269
174
|
}
|
|
175
|
+
// Backend contract:
|
|
176
|
+
// - public : POST /UdpFormSubmission/{submissionId}/comments/public
|
|
177
|
+
// - private: POST /UdpFormSubmission/{submissionId}/comments/private
|
|
178
|
+
const url = `${configService.ConfigService.productV1ApiUrl}/UdpFormSubmission/${udpFormSubmission.id}/comments/${this.accessMode}`;
|
|
179
|
+
await makeApiCall.makeApiCall('POST', url, comment, true);
|
|
270
180
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
* Performs a minimal search (page size 1) for the given id and returns
|
|
275
|
-
* the first match or null if not found. Logs and returns null on errors.
|
|
276
|
-
*
|
|
277
|
-
* @param id - submission id to query
|
|
278
|
-
* @returns UdpFormSubmission or null
|
|
279
|
-
*/
|
|
280
|
-
async getFormSubmissionById(id) {
|
|
281
|
-
var _a;
|
|
282
|
-
try {
|
|
283
|
-
const search = new SearchBuilder.SearchBuilder(1, 1)
|
|
284
|
-
.addFilter('id', id, SearchBuilder.SearchOperators.EQUALS);
|
|
285
|
-
const response = await search.execute('UdpFormSubmission');
|
|
286
|
-
return ((_a = response === null || response === void 0 ? void 0 : response.pageList) === null || _a === void 0 ? void 0 : _a[0]) || null;
|
|
181
|
+
async updateComment(udpFormSubmission, args) {
|
|
182
|
+
if (!(udpFormSubmission === null || udpFormSubmission === void 0 ? void 0 : udpFormSubmission.id)) {
|
|
183
|
+
throw new Error('Cannot update a comment without a submission ID.');
|
|
287
184
|
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
185
|
+
const { sectionKey, questionKey, commentId, value } = args;
|
|
186
|
+
// Backend contract: PUT /UdpFormSubmission/{submissionId}/comments/{commentId}
|
|
187
|
+
// Body: { value, sectionKey, questionKey }
|
|
188
|
+
const url = `${configService.ConfigService.productV1ApiUrl}/UdpFormSubmission/${udpFormSubmission.id}/comments/${commentId}`;
|
|
189
|
+
await makeApiCall.makeApiCall('PUT', url, { value, sectionKey, questionKey }, true);
|
|
190
|
+
}
|
|
191
|
+
async deleteComment(udpFormSubmission, args) {
|
|
192
|
+
if (!(udpFormSubmission === null || udpFormSubmission === void 0 ? void 0 : udpFormSubmission.id)) {
|
|
193
|
+
throw new Error('Cannot delete a comment without a submission ID.');
|
|
291
194
|
}
|
|
195
|
+
const { commentId } = args;
|
|
196
|
+
// Backend contract: DELETE /UdpFormSubmission/{submissionId}/comments/{commentId}
|
|
197
|
+
const url = `${configService.ConfigService.productV1ApiUrl}/UdpFormSubmission/${udpFormSubmission.id}/comments/${commentId}`;
|
|
198
|
+
await makeApiCall.makeApiCall('DELETE', url, null, true);
|
|
292
199
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
* then executes a minimal search and returns the first match or null.
|
|
298
|
-
*
|
|
299
|
-
* @param id - submission id to query
|
|
300
|
-
* @param generic1 - optional generic1 value to filter by
|
|
301
|
-
* @param generic2 - optional generic2 value to filter by
|
|
302
|
-
* @param generic3 - optional generic3 value to filter by
|
|
303
|
-
* @returns UdpFormSubmission or null
|
|
304
|
-
*/
|
|
305
|
-
async getFormSubmissionByIdAndGenerics(id, generic1, generic2, generic3) {
|
|
306
|
-
var _a;
|
|
307
|
-
try {
|
|
308
|
-
const search = new SearchBuilder.SearchBuilder(1, 1)
|
|
309
|
-
.addFilter('id', id, SearchBuilder.SearchOperators.EQUALS);
|
|
310
|
-
if (generic1) {
|
|
311
|
-
search.addFilter('generic1', generic1, SearchBuilder.SearchOperators.EQUALS);
|
|
312
|
-
}
|
|
313
|
-
if (generic2) {
|
|
314
|
-
search.addFilter('generic2', generic2, SearchBuilder.SearchOperators.EQUALS);
|
|
315
|
-
}
|
|
316
|
-
if (generic3) {
|
|
317
|
-
search.addFilter('generic3', generic3, SearchBuilder.SearchOperators.EQUALS);
|
|
318
|
-
}
|
|
319
|
-
const response = await search.execute('UdpFormSubmission');
|
|
320
|
-
return ((_a = response === null || response === void 0 ? void 0 : response.pageList) === null || _a === void 0 ? void 0 : _a[0]) || null;
|
|
200
|
+
async fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission) {
|
|
201
|
+
if (!(udpFormSubmission === null || udpFormSubmission === void 0 ? void 0 : udpFormSubmission.id)) {
|
|
202
|
+
console.warn('Cannot fetch form submission without an ID.');
|
|
203
|
+
return udpFormSubmission;
|
|
321
204
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
205
|
+
// Public reads should not leak other users' submissions.
|
|
206
|
+
if (this.accessMode === 'public') {
|
|
207
|
+
const response = await this.getFormSubmissionByIdAndUser(udpFormSubmission.id, udpFormSubmission.unityUserId);
|
|
208
|
+
return response ? new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response)) : udpFormSubmission;
|
|
325
209
|
}
|
|
210
|
+
// Private: fetch by id.
|
|
211
|
+
const { id } = udpFormSubmission;
|
|
212
|
+
const response = await this.getFormSubmissionById(id);
|
|
213
|
+
return response ? new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response)) : udpFormSubmission;
|
|
326
214
|
}
|
|
327
|
-
// =============================
|
|
328
|
-
// Save & Submit Methods
|
|
329
|
-
// =============================
|
|
330
|
-
/**
|
|
331
|
-
* Create a new follow-up form submission that is linked to an existing submission.
|
|
332
|
-
*
|
|
333
|
-
* Saves a new UdpFormSubmission in 'in-progress' state without populating field values
|
|
334
|
-
* (only metadata/links), and returns the created submission object.
|
|
335
|
-
*
|
|
336
|
-
* @param udpFormSubmission - template/parent submission to base the new follow-up on
|
|
337
|
-
* @returns newly created UdpFormSubmission
|
|
338
|
-
*/
|
|
339
215
|
async createNewLinkedFollowUpFormSubmission(udpFormSubmission) {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* Persist submission metadata (without full field values).
|
|
345
|
-
*
|
|
346
|
-
* Converts provided udpFormSubmission into formData excluding field values,
|
|
347
|
-
* determines whether to POST or PUT based on presence of id, and merges the
|
|
348
|
-
* server response into a new UdpFormSubmission instance.
|
|
349
|
-
*
|
|
350
|
-
* @param udpFormSubmission - the submission to save
|
|
351
|
-
* @param status - desired status to save (e.g., 'in-progress' or 'submitted')
|
|
352
|
-
* @returns saved UdpFormSubmission (refetches if server returns empty PUT response)
|
|
353
|
-
*/
|
|
354
|
-
async saveFormDataWithoutValues(udpFormSubmission, status) {
|
|
355
|
-
try {
|
|
356
|
-
const formData = udpFormSubmission.processSubmissionIntoFormDataWithoutValues(status);
|
|
357
|
-
const { method, url } = this.getApiRequestInfo(udpFormSubmission);
|
|
358
|
-
const response = await makeApiCall.makeApiCall(method, url, formData, true);
|
|
359
|
-
// PUT returns an empty string; refetch to refresh local data
|
|
360
|
-
if (response === '') {
|
|
361
|
-
return await this.fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission);
|
|
362
|
-
}
|
|
363
|
-
return new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
364
|
-
}
|
|
365
|
-
catch (error) {
|
|
366
|
-
console.error('Failed to save form udpFormSubmission:', error);
|
|
367
|
-
throw error;
|
|
216
|
+
if (this.accessMode === 'public') {
|
|
217
|
+
throw new Error('Follow-up form submissions are not supported for public forms.');
|
|
368
218
|
}
|
|
219
|
+
return this.saveFormDataWithoutValues(udpFormSubmission, enums.UdpFormsSubmissionStatusEnum.InProgress);
|
|
369
220
|
}
|
|
370
|
-
/**
|
|
371
|
-
* Save only comment-related fields for a submission.
|
|
372
|
-
*
|
|
373
|
-
* Delegates to the lower-level saveCommentsToDB helper to persist comment changes
|
|
374
|
-
* while preserving existing submission state and metadata.
|
|
375
|
-
*
|
|
376
|
-
* @param values - comment values to persist
|
|
377
|
-
* @param udpFormSubmission - target submission object
|
|
378
|
-
* @returns updated UdpFormSubmission
|
|
379
|
-
*/
|
|
380
|
-
async saveFormSubmissionComments(values, udpFormSubmission) {
|
|
381
|
-
return this.saveCommentsToDB(values, udpFormSubmission);
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Save the current state of the form's data as a draft ('in-progress').
|
|
385
|
-
*
|
|
386
|
-
* Converts the provided values into the required form payload and persists them.
|
|
387
|
-
* Determines POST vs PUT automatically and refreshes local object on empty PUT responses.
|
|
388
|
-
*
|
|
389
|
-
* @param values - field data to save
|
|
390
|
-
* @param udpFormSubmission - submission being updated
|
|
391
|
-
* @returns updated UdpFormSubmission
|
|
392
|
-
*/
|
|
393
221
|
async saveCurrentFormSubmissionState(values, udpFormSubmission) {
|
|
394
|
-
|
|
222
|
+
if (this.accessMode === 'public') {
|
|
223
|
+
// Public forms do not support draft save / return-later.
|
|
224
|
+
return udpFormSubmission;
|
|
225
|
+
}
|
|
226
|
+
return this.saveSubmissionToDB(values, udpFormSubmission, enums.UdpFormsSubmissionStatusEnum.InProgress);
|
|
395
227
|
}
|
|
396
|
-
/**
|
|
397
|
-
* Finalize and submit the form (set state to 'submitted').
|
|
398
|
-
*
|
|
399
|
-
* Persists the provided values and marks the submission as 'submitted'.
|
|
400
|
-
*
|
|
401
|
-
* @param values - final form values to submit
|
|
402
|
-
* @param udpFormSubmission - submission being finalized
|
|
403
|
-
* @returns updated UdpFormSubmission
|
|
404
|
-
*/
|
|
405
228
|
async finalizeFormSubmissionState(values, udpFormSubmission) {
|
|
406
|
-
return this.saveSubmissionToDB(values, udpFormSubmission,
|
|
229
|
+
return this.saveSubmissionToDB(values, udpFormSubmission, enums.UdpFormsSubmissionStatusEnum.Submitted);
|
|
407
230
|
}
|
|
408
231
|
// =============================
|
|
409
232
|
// Helpers
|
|
410
233
|
// =============================
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
234
|
+
async saveFormDataWithoutValues(udpFormSubmission, status) {
|
|
235
|
+
const formData = udpFormSubmission.processSubmissionIntoFormDataWithoutValues(status);
|
|
236
|
+
const { method, url } = this.getApiRequestInfo(udpFormSubmission);
|
|
237
|
+
const response = await makeApiCall.makeApiCall(method, url, formData, true);
|
|
238
|
+
if (response === '') {
|
|
239
|
+
return await this.fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission);
|
|
240
|
+
}
|
|
241
|
+
return new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
242
|
+
}
|
|
420
243
|
getApiRequestInfo(udpFormSubmission) {
|
|
421
|
-
const baseUrl = `${configService.ConfigService.productV1ApiUrl}/UdpFormSubmission`;
|
|
244
|
+
const baseUrl = `${configService.ConfigService.productV1ApiUrl}/UdpFormSubmission/${this.accessMode}`;
|
|
245
|
+
// Public mode does not support draft saves or updates; only a single submit (POST /public).
|
|
246
|
+
// Private mode supports POST (create) and PUT (update).
|
|
247
|
+
if (this.accessMode === 'public') {
|
|
248
|
+
return { method: 'POST', url: baseUrl };
|
|
249
|
+
}
|
|
422
250
|
return udpFormSubmission.id
|
|
423
|
-
? { method: 'PUT', url:
|
|
251
|
+
? { method: 'PUT', url: baseUrl }
|
|
424
252
|
: { method: 'POST', url: baseUrl };
|
|
425
253
|
}
|
|
426
|
-
/**
|
|
427
|
-
* Persist form values and metadata to the backend.
|
|
428
|
-
*
|
|
429
|
-
* Builds the form payload using udpFormSubmission.processSubmissionIntoFormData,
|
|
430
|
-
* resolves POST vs PUT using getApiRequestInfo, and returns a merged UdpFormSubmission.
|
|
431
|
-
* If the server returns an empty string for PUT, the method refetches the record.
|
|
432
|
-
*
|
|
433
|
-
* @param values - field values to be saved
|
|
434
|
-
* @param udpFormSubmission - submission being updated
|
|
435
|
-
* @param status - status to persist (e.g., 'in-progress' | 'submitted')
|
|
436
|
-
* @returns updated UdpFormSubmission
|
|
437
|
-
*/
|
|
438
254
|
async saveSubmissionToDB(values, udpFormSubmission, status) {
|
|
255
|
+
const formData = udpFormSubmission.processSubmissionIntoFormData(values, status);
|
|
256
|
+
const { method, url } = this.getApiRequestInfo(udpFormSubmission);
|
|
257
|
+
const response = await makeApiCall.makeApiCall(method, url, formData, true);
|
|
258
|
+
if (response === '') {
|
|
259
|
+
return await this.fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission);
|
|
260
|
+
}
|
|
261
|
+
const updated = new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
262
|
+
// IMPORTANT: callers often pass a shared `udpFormSubmission` instance and do not use the return value.
|
|
263
|
+
// Ensure the original instance gets the new server-assigned id/status when the first save/submit creates it.
|
|
264
|
+
Object.assign(udpFormSubmission, updated);
|
|
265
|
+
return updated;
|
|
266
|
+
}
|
|
267
|
+
async getFormSubmissionById(id) {
|
|
268
|
+
var _a;
|
|
439
269
|
try {
|
|
440
|
-
const
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
// PUT returns an empty string; refetch to refresh local data
|
|
444
|
-
if (response === '') {
|
|
445
|
-
return await this.fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission);
|
|
446
|
-
}
|
|
447
|
-
return new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
270
|
+
const search = new SearchBuilder.SearchBuilder(1, 1).addFilter('id', id, SearchBuilder.SearchOperators.EQUALS);
|
|
271
|
+
const response = await search.execute('UdpFormSubmission');
|
|
272
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.pageList) === null || _a === void 0 ? void 0 : _a[0]) || null;
|
|
448
273
|
}
|
|
449
274
|
catch (error) {
|
|
450
|
-
console.error('
|
|
451
|
-
|
|
275
|
+
console.error('Error fetching form submission by ID:', error);
|
|
276
|
+
return null;
|
|
452
277
|
}
|
|
453
278
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
*
|
|
457
|
-
* Forces a PUT to the specific submission id, builds a form payload containing
|
|
458
|
-
* the provided comment values, and returns the updated submission. If the API
|
|
459
|
-
* returns an empty string (PUT shorthand), the method refetches the record.
|
|
460
|
-
*
|
|
461
|
-
* @param values - comment fields to persist
|
|
462
|
-
* @param udpFormSubmission - target submission (must have id)
|
|
463
|
-
* @returns updated UdpFormSubmission
|
|
464
|
-
*/
|
|
465
|
-
async saveCommentsToDB(values, udpFormSubmission) {
|
|
279
|
+
async getFormSubmissionByIdAndUser(id, unityUserId) {
|
|
280
|
+
var _a;
|
|
466
281
|
try {
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
const
|
|
471
|
-
|
|
472
|
-
// PUT returns an empty string; refetch to refresh local data
|
|
473
|
-
if (response === '') {
|
|
474
|
-
return await this.fetchAndPopulateUdpFormSubmissionObj(udpFormSubmission);
|
|
475
|
-
}
|
|
476
|
-
return new UdpFormSubmission(Object.assign(Object.assign({}, udpFormSubmission), response));
|
|
282
|
+
const search = new SearchBuilder.SearchBuilder(1, 1)
|
|
283
|
+
.addFilter('id', id, SearchBuilder.SearchOperators.EQUALS)
|
|
284
|
+
.addFilter('unityUserId', unityUserId, SearchBuilder.SearchOperators.EQUALS);
|
|
285
|
+
const response = await search.execute('UdpFormSubmission');
|
|
286
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.pageList) === null || _a === void 0 ? void 0 : _a[0]) || null;
|
|
477
287
|
}
|
|
478
288
|
catch (error) {
|
|
479
|
-
console.error('
|
|
480
|
-
|
|
289
|
+
console.error('Error fetching form submission by ID:', error);
|
|
290
|
+
return null;
|
|
481
291
|
}
|
|
482
292
|
}
|
|
483
293
|
}
|
|
@@ -486,36 +296,28 @@ class PrivateFormSubmissionHandler {
|
|
|
486
296
|
* Factory for creating form submission handlers.
|
|
487
297
|
*/
|
|
488
298
|
class FormSubmissionHandlerFactory {
|
|
489
|
-
static create(isPublic, userId
|
|
490
|
-
|
|
491
|
-
return new PublicFormSubmissionHandler(formId, version, tenantId);
|
|
492
|
-
}
|
|
493
|
-
if (!userId) {
|
|
494
|
-
throw new Error('User ID is required for private forms');
|
|
495
|
-
}
|
|
496
|
-
return new PrivateFormSubmissionHandler();
|
|
299
|
+
static create(isPublic, userId) {
|
|
300
|
+
return new FormSubmissionHandler(isPublic ? 'public' : 'private');
|
|
497
301
|
}
|
|
498
302
|
}
|
|
499
303
|
|
|
500
|
-
/**
|
|
501
|
-
* UDP Form handler (new UdpFormSubmission endpoint)
|
|
502
|
-
*/
|
|
503
304
|
class UdpFormHandler {
|
|
504
|
-
constructor(tenantId) {
|
|
305
|
+
constructor(tenantId, isPublic = false) {
|
|
505
306
|
this.tenantId = tenantId;
|
|
307
|
+
this.isPublic = isPublic;
|
|
506
308
|
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
309
|
+
buildDescribeUrl(formId, formVersion) {
|
|
310
|
+
const base = configService.ConfigService.productV1ApiUrl;
|
|
311
|
+
if (this.isPublic) {
|
|
312
|
+
return `${base}/UdpForm/${formId}/${formVersion}/describe/public`;
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
return `${base}/UdpForm/${formId}/${formVersion}/describe`;
|
|
514
316
|
}
|
|
515
|
-
return formData;
|
|
516
317
|
}
|
|
517
318
|
async getFormByFormIdAndFormVersion(formId, formVersion) {
|
|
518
|
-
const
|
|
319
|
+
const url = this.buildDescribeUrl(formId, formVersion);
|
|
320
|
+
const formData = await makeApiCall.makeApiCall('GET', url);
|
|
519
321
|
if (formData.styleOverrides && typeof formData.styleOverrides === 'string') {
|
|
520
322
|
formData.styleOverrides = JSON.parse(formData.styleOverrides);
|
|
521
323
|
}
|
|
@@ -531,23 +333,515 @@ class UdpForm {
|
|
|
531
333
|
}
|
|
532
334
|
}
|
|
533
335
|
|
|
336
|
+
// utility to find repeat group keys from current values
|
|
337
|
+
const findRepeatGroupKeys = (sectionName, values) => {
|
|
338
|
+
const keys = Object.keys(values);
|
|
339
|
+
const repeatGroupSet = new Set();
|
|
340
|
+
// Match: sectionName_2
|
|
341
|
+
const regex = new RegExp(`^${sectionName}_(\\d+)`);
|
|
342
|
+
keys.forEach(key => {
|
|
343
|
+
const match = key.match(regex);
|
|
344
|
+
if (match && match[1]) {
|
|
345
|
+
repeatGroupSet.add(Number(match[1]));
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
return Array.from(repeatGroupSet).sort((a, b) => a - b);
|
|
349
|
+
};
|
|
350
|
+
// build dynamic sections based on the master form
|
|
351
|
+
const initializeDynamicSections = (udpForm, currentValues) => {
|
|
352
|
+
var _a;
|
|
353
|
+
const dynamicSections = [];
|
|
354
|
+
const sortedSections = structuredClone(udpForm.udpFormUdpFormSection).sort((a, b) => a.order - b.order);
|
|
355
|
+
for (const section of sortedSections) {
|
|
356
|
+
section.sectionProperties = JSON.parse(section.sectionProperties || {});
|
|
357
|
+
const repeatGroupKeys = findRepeatGroupKeys(section.name, currentValues);
|
|
358
|
+
section.isOriginalSection = true;
|
|
359
|
+
section.sectionPositionSuffix = 1; // default position
|
|
360
|
+
// always add the original section into dynamic sections
|
|
361
|
+
dynamicSections.push(Object.assign(Object.assign({}, structuredClone(section)), {
|
|
362
|
+
// dynamicSectionName: section.name,
|
|
363
|
+
formQuestions: structuredClone(udpForm.formQuestions)
|
|
364
|
+
.filter(q => q.formSectionId === section.id)
|
|
365
|
+
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
366
|
+
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}.${q.name}`, isShowCommentInput: true })))
|
|
367
|
+
}));
|
|
368
|
+
// create then add additional sections if there are repeated sections
|
|
369
|
+
if (((_a = section.sectionProperties) === null || _a === void 0 ? void 0 : _a.isRepeatable) && repeatGroupKeys.length > 0) {
|
|
370
|
+
const maxRepeatedSectionSuffix = Math.max(...repeatGroupKeys); // create a new section for the max value of repeat group keys, even if there are no saved answers
|
|
371
|
+
// for (const repeatKey of repeatGroupKeys) { // create a section only for the suffix saved
|
|
372
|
+
for (let repeatKey = 2; repeatKey <= maxRepeatedSectionSuffix; repeatKey++) {
|
|
373
|
+
const clonedSection = Object.assign(Object.assign({}, structuredClone(section)), { formQuestions: structuredClone(udpForm.formQuestions)
|
|
374
|
+
.filter(q => q.formSectionId === section.id)
|
|
375
|
+
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
376
|
+
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}_${repeatKey}.${q.name}`, isShowCommentInput: true }))), isOriginalSection: false, sectionPositionSuffix: repeatKey });
|
|
377
|
+
dynamicSections.push(clonedSection);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return dynamicSections;
|
|
382
|
+
};
|
|
383
|
+
// urlContext is derived from query params that start with `udpf_` (see useUdpFormParameters).
|
|
384
|
+
// Keys are stored without the prefix, e.g. `udpf_section1_3.question1=val` -> urlContext['section1_3.question1'] = 'val'
|
|
385
|
+
// This helper finds the maximum repeat suffix requested by urlContext for a given section base name.
|
|
386
|
+
// Example: { 'sectionA_3.q1': 'x', 'sectionA_2.q2': 'y' } -> { sectionA: 3 }
|
|
387
|
+
const getMaxRepeatSuffixBySectionFromUrlContext = (urlContext) => {
|
|
388
|
+
const context = (urlContext && typeof urlContext === 'object') ? urlContext : {};
|
|
389
|
+
const maxBySection = {};
|
|
390
|
+
Object.keys(context).forEach(key => {
|
|
391
|
+
var _a;
|
|
392
|
+
// Expect keys like: sectionName_3.questionName
|
|
393
|
+
// Only treat it as a repeat hint if it has a dot after the suffix.
|
|
394
|
+
const match = key.match(/^([^._?&#]+)_(\d+)\./);
|
|
395
|
+
if (!match)
|
|
396
|
+
return;
|
|
397
|
+
const baseSectionName = match[1];
|
|
398
|
+
const suffix = Number(match[2]);
|
|
399
|
+
if (!Number.isFinite(suffix) || suffix < 2)
|
|
400
|
+
return;
|
|
401
|
+
const existing = (_a = maxBySection[baseSectionName]) !== null && _a !== void 0 ? _a : 1;
|
|
402
|
+
if (suffix > existing)
|
|
403
|
+
maxBySection[baseSectionName] = suffix;
|
|
404
|
+
});
|
|
405
|
+
return maxBySection;
|
|
406
|
+
};
|
|
407
|
+
// build dynamic sections based on the master form plus optional repeat hints from URL context
|
|
408
|
+
const initializeDynamicSectionsWithUrlContext = (udpForm, currentValues, urlContext) => {
|
|
409
|
+
var _a, _b;
|
|
410
|
+
const maxRepeatFromUrl = getMaxRepeatSuffixBySectionFromUrlContext(urlContext);
|
|
411
|
+
const dynamicSections = [];
|
|
412
|
+
const sortedSections = structuredClone(udpForm.udpFormUdpFormSection).sort((a, b) => a.order - b.order);
|
|
413
|
+
for (const section of sortedSections) {
|
|
414
|
+
section.sectionProperties = JSON.parse(section.sectionProperties || {});
|
|
415
|
+
const repeatGroupKeys = findRepeatGroupKeys(section.name, currentValues);
|
|
416
|
+
const maxRepeatedFromValues = repeatGroupKeys.length > 0 ? Math.max(...repeatGroupKeys) : 1;
|
|
417
|
+
const maxRepeatedFromUrl = (_a = maxRepeatFromUrl === null || maxRepeatFromUrl === void 0 ? void 0 : maxRepeatFromUrl[section.name]) !== null && _a !== void 0 ? _a : 1;
|
|
418
|
+
const maxRepeatedSectionSuffix = Math.max(maxRepeatedFromValues, maxRepeatedFromUrl);
|
|
419
|
+
section.isOriginalSection = true;
|
|
420
|
+
section.sectionPositionSuffix = 1; // default position
|
|
421
|
+
// always add the original section into dynamic sections
|
|
422
|
+
dynamicSections.push(Object.assign(Object.assign({}, structuredClone(section)), { formQuestions: structuredClone(udpForm.formQuestions)
|
|
423
|
+
.filter(q => q.formSectionId === section.id)
|
|
424
|
+
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
425
|
+
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}.${q.name}`, isShowCommentInput: true }))) }));
|
|
426
|
+
// create then add additional sections if repeatable and suffix requested by saved values or url
|
|
427
|
+
if (((_b = section.sectionProperties) === null || _b === void 0 ? void 0 : _b.isRepeatable) && maxRepeatedSectionSuffix >= 2) {
|
|
428
|
+
for (let repeatKey = 2; repeatKey <= maxRepeatedSectionSuffix; repeatKey++) {
|
|
429
|
+
const clonedSection = Object.assign(Object.assign({}, structuredClone(section)), { formQuestions: structuredClone(udpForm.formQuestions)
|
|
430
|
+
.filter(q => q.formSectionId === section.id)
|
|
431
|
+
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
432
|
+
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}_${repeatKey}.${q.name}`, isShowCommentInput: true }))), isOriginalSection: false, sectionPositionSuffix: repeatKey });
|
|
433
|
+
dynamicSections.push(clonedSection);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
return dynamicSections;
|
|
438
|
+
};
|
|
439
|
+
const applyUrlSeedValuesForAll = (dynamicSections, urlContext) => {
|
|
440
|
+
if (!Array.isArray(dynamicSections))
|
|
441
|
+
return;
|
|
442
|
+
// urlContext is derived from query params that start with `udpf_` (see useUdpFormParameters).
|
|
443
|
+
// Keys are stored without the prefix, e.g. `udpf_section1.question1=val` -> urlContext['section1.question1'] = 'val'
|
|
444
|
+
const context = (urlContext && typeof urlContext === 'object') ? urlContext : {};
|
|
445
|
+
// Build a case-insensitive view of urlContext so callers can use udpf_ keys without worrying about case.
|
|
446
|
+
// If duplicate keys exist with different casing, the last one encountered wins.
|
|
447
|
+
const contextCI = {};
|
|
448
|
+
Object.keys(context).forEach(k => {
|
|
449
|
+
contextCI[String(k).toLowerCase()] = context[k];
|
|
450
|
+
});
|
|
451
|
+
// 1) Collect URL values into nested structure: { [sectionKey]: { [questionName]: { value, comments: [] } } }
|
|
452
|
+
const urlValuesNested = {};
|
|
453
|
+
dynamicSections.forEach(section => {
|
|
454
|
+
const sectionKey = section.isOriginalSection
|
|
455
|
+
? section.name
|
|
456
|
+
: `${section.name}_${section.sectionPositionSuffix}`;
|
|
457
|
+
(section.formQuestions || []).forEach(q => {
|
|
458
|
+
if (!q)
|
|
459
|
+
return;
|
|
460
|
+
const candidates = [q.processedSubmissionName, q.questionIdentifierKey, q.name].filter(Boolean);
|
|
461
|
+
let urlVal = undefined;
|
|
462
|
+
for (const c of candidates) {
|
|
463
|
+
const key = String(c).toLowerCase();
|
|
464
|
+
if (Object.prototype.hasOwnProperty.call(contextCI, key)) {
|
|
465
|
+
urlVal = contextCI[key];
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
if (urlVal !== undefined && urlVal !== null) {
|
|
470
|
+
if (!urlValuesNested[sectionKey])
|
|
471
|
+
urlValuesNested[sectionKey] = {};
|
|
472
|
+
urlValuesNested[sectionKey][q.name] = { value: urlVal, comments: [] };
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
});
|
|
476
|
+
// Caller is responsible for merging with saved submissionResponseData.
|
|
477
|
+
// Here we only return the url-derived seed values + paragraph defaults.
|
|
478
|
+
const merged = {};
|
|
479
|
+
Object.entries(urlValuesNested).forEach(([sectionKey, qMap]) => {
|
|
480
|
+
if (!merged[sectionKey])
|
|
481
|
+
merged[sectionKey] = {};
|
|
482
|
+
Object.entries(qMap).forEach(([qName, valObj]) => {
|
|
483
|
+
const existing = merged[sectionKey][qName];
|
|
484
|
+
// Only set from URL if no saved value exists (null/undefined/empty-string)
|
|
485
|
+
const isMissing = existing == null ||
|
|
486
|
+
existing.value == null ||
|
|
487
|
+
(typeof existing.value === 'string' && existing.value.trim() === '');
|
|
488
|
+
if (isMissing) {
|
|
489
|
+
merged[sectionKey][qName] = valObj;
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
// 3) Paragraph defaults: if still undefined/null, use fieldProperties.paragraphText
|
|
494
|
+
dynamicSections.forEach(section => {
|
|
495
|
+
const sectionKey = section.isOriginalSection
|
|
496
|
+
? section.name
|
|
497
|
+
: `${section.name}_${section.sectionPositionSuffix}`;
|
|
498
|
+
if (!merged[sectionKey])
|
|
499
|
+
merged[sectionKey] = {};
|
|
500
|
+
(section.formQuestions || []).forEach(q => {
|
|
501
|
+
var _a;
|
|
502
|
+
if (!q)
|
|
503
|
+
return;
|
|
504
|
+
if (q.fieldTypeId === enums.UdpFormsFieldTypeEnum.Paragraph) {
|
|
505
|
+
const existing = merged[sectionKey][q.name];
|
|
506
|
+
const isMissing = existing == null ||
|
|
507
|
+
existing.value == null ||
|
|
508
|
+
(typeof existing.value === 'string' && existing.value.trim() === '');
|
|
509
|
+
if (isMissing) {
|
|
510
|
+
let fieldProps = q === null || q === void 0 ? void 0 : q.fieldProperties;
|
|
511
|
+
if (typeof fieldProps === 'string') {
|
|
512
|
+
try {
|
|
513
|
+
fieldProps = JSON.parse(fieldProps || '{}');
|
|
514
|
+
}
|
|
515
|
+
catch (_b) {
|
|
516
|
+
fieldProps = {};
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
merged[sectionKey][q.name] = {
|
|
520
|
+
value: (_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.paragraphText) !== null && _a !== void 0 ? _a : '',
|
|
521
|
+
comments: [],
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
});
|
|
527
|
+
return merged;
|
|
528
|
+
};
|
|
529
|
+
const replaceUrlWithSubmissionId = (submissionId, history) => {
|
|
530
|
+
// build a URL that preserves the current pathname + hash but replaces the query string
|
|
531
|
+
const pathname = typeof window !== 'undefined' ? window.location.pathname : `/page/${enums.UdpFormsPageIdEnum.FormRendererPageId}`;
|
|
532
|
+
const hash = typeof window !== 'undefined' ? window.location.hash : '';
|
|
533
|
+
const newUrl = `${pathname}?udpf_submissionId=${submissionId}${hash}`;
|
|
534
|
+
const h = history;
|
|
535
|
+
// Prefer history.replace when available, handle react-router v6 navigate function, fallback to push or native replaceState
|
|
536
|
+
if (h) {
|
|
537
|
+
if (typeof h.replace === 'function') {
|
|
538
|
+
h.replace(newUrl);
|
|
539
|
+
return;
|
|
540
|
+
}
|
|
541
|
+
if (typeof h.push === 'function') {
|
|
542
|
+
h.push(newUrl);
|
|
543
|
+
return;
|
|
544
|
+
}
|
|
545
|
+
// react-router v6 exposes a navigate function
|
|
546
|
+
if (typeof h === 'function') {
|
|
547
|
+
try {
|
|
548
|
+
h(newUrl, { replace: true });
|
|
549
|
+
}
|
|
550
|
+
catch (_a) {
|
|
551
|
+
h(newUrl);
|
|
552
|
+
}
|
|
553
|
+
return;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (typeof window !== 'undefined' && window.history && typeof window.history.replaceState === 'function') {
|
|
557
|
+
window.history.replaceState({}, '', newUrl);
|
|
558
|
+
}
|
|
559
|
+
else if (typeof window !== 'undefined') {
|
|
560
|
+
window.location.href = newUrl;
|
|
561
|
+
}
|
|
562
|
+
};
|
|
563
|
+
const enqueueSnackbarSuccess = (message, enqueueSnackbar) => {
|
|
564
|
+
enqueueSnackbar === null || enqueueSnackbar === void 0 ? void 0 : enqueueSnackbar(message, {
|
|
565
|
+
variant: 'success',
|
|
566
|
+
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
const enqueueSnackbarError = (message, enqueueSnackbar) => {
|
|
570
|
+
enqueueSnackbar === null || enqueueSnackbar === void 0 ? void 0 : enqueueSnackbar(message, {
|
|
571
|
+
variant: 'error',
|
|
572
|
+
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
const getSectionKey = (section) => {
|
|
577
|
+
return section.isOriginalSection ? section.name : `${section.name}_${section.sectionPositionSuffix}`;
|
|
578
|
+
};
|
|
579
|
+
const safeParseFieldProperties = (fieldProperties) => {
|
|
580
|
+
if (!fieldProperties)
|
|
581
|
+
return {};
|
|
582
|
+
if (typeof fieldProperties === 'object')
|
|
583
|
+
return fieldProperties;
|
|
584
|
+
if (typeof fieldProperties !== 'string')
|
|
585
|
+
return {};
|
|
586
|
+
try {
|
|
587
|
+
return JSON.parse(fieldProperties || '{}');
|
|
588
|
+
}
|
|
589
|
+
catch (_a) {
|
|
590
|
+
return {};
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const computeDuplicateRepeatableSection = (params) => {
|
|
594
|
+
var _a, _b, _c;
|
|
595
|
+
const { dynamicSections, values, index } = params;
|
|
596
|
+
const sectionToClone = dynamicSections[index];
|
|
597
|
+
if (!sectionToClone)
|
|
598
|
+
return { nextDynamicSections: dynamicSections, nextValues: values };
|
|
599
|
+
const cloningSectionName = sectionToClone.name;
|
|
600
|
+
// Find existing repeat group indices
|
|
601
|
+
const repeatKeys = findRepeatGroupKeys(cloningSectionName, values);
|
|
602
|
+
const nextRepeatIndex = repeatKeys.length > 0 ? Math.max(...repeatKeys) + 1 : 2;
|
|
603
|
+
const clonedSection = Object.assign(Object.assign({}, structuredClone(sectionToClone)), { formQuestions: (sectionToClone.formQuestions || []).map(q => {
|
|
604
|
+
const newQuestionObj = structuredClone(q);
|
|
605
|
+
newQuestionObj.questionIdentifierKey = `${cloningSectionName}_${nextRepeatIndex}.${q.name}`;
|
|
606
|
+
return newQuestionObj;
|
|
607
|
+
}), isOriginalSection: false, sectionPositionSuffix: nextRepeatIndex });
|
|
608
|
+
// Find the last index of this section group
|
|
609
|
+
let insertAtIndex = index;
|
|
610
|
+
for (let i = index + 1; i < dynamicSections.length; i++) {
|
|
611
|
+
const s = dynamicSections[i];
|
|
612
|
+
if (s.name === cloningSectionName)
|
|
613
|
+
insertAtIndex = i;
|
|
614
|
+
else
|
|
615
|
+
break;
|
|
616
|
+
}
|
|
617
|
+
const nextDynamicSections = [
|
|
618
|
+
...dynamicSections.slice(0, insertAtIndex + 1),
|
|
619
|
+
clonedSection,
|
|
620
|
+
...dynamicSections.slice(insertAtIndex + 1),
|
|
621
|
+
];
|
|
622
|
+
const nextValues = structuredClone(values || {});
|
|
623
|
+
const newSectionKey = `${cloningSectionName}_${nextRepeatIndex}`;
|
|
624
|
+
const sourceSectionKey = getSectionKey(sectionToClone);
|
|
625
|
+
for (const q of clonedSection.formQuestions || []) {
|
|
626
|
+
if (!nextValues[newSectionKey])
|
|
627
|
+
nextValues[newSectionKey] = {};
|
|
628
|
+
let value = '';
|
|
629
|
+
if (q.fieldTypeId === enums.UdpFormsFieldTypeEnum.Paragraph) {
|
|
630
|
+
const sourceVal = (_b = (_a = values === null || values === void 0 ? void 0 : values[sourceSectionKey]) === null || _a === void 0 ? void 0 : _a[q.name]) === null || _b === void 0 ? void 0 : _b.value;
|
|
631
|
+
const props = safeParseFieldProperties(q.fieldProperties);
|
|
632
|
+
const paragraphDefault = (_c = props === null || props === void 0 ? void 0 : props.paragraphText) !== null && _c !== void 0 ? _c : '';
|
|
633
|
+
value = sourceVal !== null && sourceVal !== void 0 ? sourceVal : paragraphDefault;
|
|
634
|
+
}
|
|
635
|
+
nextValues[newSectionKey][q.name] = { value, comments: [], metadata: {} };
|
|
636
|
+
}
|
|
637
|
+
return { nextDynamicSections, nextValues };
|
|
638
|
+
};
|
|
639
|
+
const computeDeleteRepeatableSection = (params) => {
|
|
640
|
+
const { dynamicSections, values, index } = params;
|
|
641
|
+
const sectionToDelete = dynamicSections[index];
|
|
642
|
+
if (!sectionToDelete || sectionToDelete.isOriginalSection) {
|
|
643
|
+
return { nextDynamicSections: dynamicSections, nextValues: values };
|
|
644
|
+
}
|
|
645
|
+
const deleteSectionName = sectionToDelete.name;
|
|
646
|
+
const deleteSuffix = sectionToDelete.sectionPositionSuffix;
|
|
647
|
+
const sectionKeyToDelete = `${deleteSectionName}_${deleteSuffix}`;
|
|
648
|
+
const nextValues = Object.assign({}, (values || {}));
|
|
649
|
+
delete nextValues[sectionKeyToDelete];
|
|
650
|
+
const updatedSections = structuredClone(dynamicSections);
|
|
651
|
+
updatedSections.splice(index, 1);
|
|
652
|
+
// Shift all later repeatable sections backward by 1
|
|
653
|
+
updatedSections.forEach(section => {
|
|
654
|
+
var _a;
|
|
655
|
+
if (section.name !== deleteSectionName ||
|
|
656
|
+
section.isOriginalSection ||
|
|
657
|
+
((_a = section.sectionPositionSuffix) !== null && _a !== void 0 ? _a : 0) <= (deleteSuffix !== null && deleteSuffix !== void 0 ? deleteSuffix : 0)) {
|
|
658
|
+
return;
|
|
659
|
+
}
|
|
660
|
+
const oldSuffix = section.sectionPositionSuffix;
|
|
661
|
+
const oldSectionKey = `${deleteSectionName}_${oldSuffix}`;
|
|
662
|
+
const newSuffix = oldSuffix - 1;
|
|
663
|
+
const newSectionKey = `${deleteSectionName}_${newSuffix}`;
|
|
664
|
+
section.sectionPositionSuffix = newSuffix;
|
|
665
|
+
section.formQuestions = (section.formQuestions || []).map(q => {
|
|
666
|
+
const newSectionQuestion = structuredClone(q);
|
|
667
|
+
newSectionQuestion.questionIdentifierKey = `${newSectionKey}.${q.name}`;
|
|
668
|
+
return newSectionQuestion;
|
|
669
|
+
});
|
|
670
|
+
if (nextValues[oldSectionKey]) {
|
|
671
|
+
nextValues[newSectionKey] = structuredClone(nextValues[oldSectionKey]);
|
|
672
|
+
delete nextValues[oldSectionKey];
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
return { nextDynamicSections: updatedSections, nextValues };
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Pure comment CRUD logic.
|
|
680
|
+
*
|
|
681
|
+
* - Updates submissionResponseData structure for comments/draftComments.
|
|
682
|
+
* - Does NOT perform any network calls.
|
|
683
|
+
* - Returns persistence intent for caller.
|
|
684
|
+
*/
|
|
685
|
+
function applyQuestionCommentCrud(params) {
|
|
686
|
+
var _a, _b, _c, _d, _e;
|
|
687
|
+
const { actionType, questionIdentifierKey, commentId, currentSubmissionResponseData, clientUserInfo } = params;
|
|
688
|
+
const parts = (questionIdentifierKey || '').split('.');
|
|
689
|
+
const sectionKey = parts[0] || '';
|
|
690
|
+
const questionKey = parts[1] || '';
|
|
691
|
+
// Defensive: if malformed key, do nothing.
|
|
692
|
+
if (!sectionKey || !questionKey) {
|
|
693
|
+
return {
|
|
694
|
+
sectionKey,
|
|
695
|
+
questionKey,
|
|
696
|
+
nextSubmissionResponseData: currentSubmissionResponseData || {},
|
|
697
|
+
didMutate: false,
|
|
698
|
+
shouldPersist: false,
|
|
699
|
+
persistIntent: 'none',
|
|
700
|
+
commentId,
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
const next = structuredClone(currentSubmissionResponseData || {});
|
|
704
|
+
// ensure structure exists WITHOUT overwriting existing data
|
|
705
|
+
if (!next[sectionKey])
|
|
706
|
+
next[sectionKey] = {};
|
|
707
|
+
if (!next[sectionKey][questionKey]) {
|
|
708
|
+
// create defaults but do not clobber any existing saved shape from submissionResponseData
|
|
709
|
+
next[sectionKey][questionKey] = {
|
|
710
|
+
value: '',
|
|
711
|
+
comments: [],
|
|
712
|
+
draftComments: [],
|
|
713
|
+
metadata: {},
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
// ensure arrays/objects exist so later code can safely push/filter
|
|
718
|
+
next[sectionKey][questionKey].comments = (_a = next[sectionKey][questionKey].comments) !== null && _a !== void 0 ? _a : [];
|
|
719
|
+
next[sectionKey][questionKey].draftComments = (_b = next[sectionKey][questionKey].draftComments) !== null && _b !== void 0 ? _b : [];
|
|
720
|
+
next[sectionKey][questionKey].metadata = (_c = next[sectionKey][questionKey].metadata) !== null && _c !== void 0 ? _c : {};
|
|
721
|
+
}
|
|
722
|
+
// normalize draftComments to array if needed (back-compat)
|
|
723
|
+
const maybeDraft = next[sectionKey][questionKey].draftComments;
|
|
724
|
+
if (maybeDraft && !Array.isArray(maybeDraft)) {
|
|
725
|
+
next[sectionKey][questionKey].draftComments = [maybeDraft];
|
|
726
|
+
}
|
|
727
|
+
else if (!maybeDraft) {
|
|
728
|
+
next[sectionKey][questionKey].draftComments = [];
|
|
729
|
+
}
|
|
730
|
+
const commentsArr = next[sectionKey][questionKey].comments || [];
|
|
731
|
+
const draftsArr = next[sectionKey][questionKey].draftComments || [];
|
|
732
|
+
let didMutate = false;
|
|
733
|
+
switch (actionType) {
|
|
734
|
+
case 'add': {
|
|
735
|
+
const newDraft = {
|
|
736
|
+
value: '',
|
|
737
|
+
commentId: uuid.v4(),
|
|
738
|
+
isTempComment: true,
|
|
739
|
+
timestamp: null,
|
|
740
|
+
};
|
|
741
|
+
// put new draft first so activeDraft === draftComments[0] matches UX
|
|
742
|
+
next[sectionKey][questionKey].draftComments = [newDraft, ...draftsArr];
|
|
743
|
+
didMutate = true;
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
case 'save': {
|
|
747
|
+
const draftIdx = draftsArr.findIndex((d) => d.commentId === commentId);
|
|
748
|
+
if (draftIdx === -1) {
|
|
749
|
+
return {
|
|
750
|
+
sectionKey,
|
|
751
|
+
questionKey,
|
|
752
|
+
nextSubmissionResponseData: next,
|
|
753
|
+
didMutate: false,
|
|
754
|
+
shouldPersist: false,
|
|
755
|
+
persistIntent: 'none',
|
|
756
|
+
commentId,
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
const draft = draftsArr[draftIdx];
|
|
760
|
+
const saveTimestamp = draft.timestamp || new Date().toISOString();
|
|
761
|
+
const savedComment = Object.assign(Object.assign({}, draft), { timestamp: saveTimestamp, editedTimestamp: new Date().toISOString(), userId: clientUserInfo === null || clientUserInfo === void 0 ? void 0 : clientUserInfo.id, userDisplayName: clientUserInfo === null || clientUserInfo === void 0 ? void 0 : clientUserInfo.displayName, isDraftComment: false });
|
|
762
|
+
const existingIdx = commentsArr.findIndex((c) => c.commentId === commentId);
|
|
763
|
+
if (existingIdx !== -1) {
|
|
764
|
+
const newComments = [...commentsArr];
|
|
765
|
+
newComments[existingIdx] = Object.assign({}, savedComment);
|
|
766
|
+
next[sectionKey][questionKey].comments = newComments;
|
|
767
|
+
}
|
|
768
|
+
else {
|
|
769
|
+
next[sectionKey][questionKey].comments = [...commentsArr, savedComment];
|
|
770
|
+
}
|
|
771
|
+
next[sectionKey][questionKey].draftComments = draftsArr.filter((d) => d.commentId !== commentId);
|
|
772
|
+
didMutate = true;
|
|
773
|
+
break;
|
|
774
|
+
}
|
|
775
|
+
case 'edit': {
|
|
776
|
+
const saved = commentsArr.find((c) => c.commentId === commentId);
|
|
777
|
+
if (!saved) {
|
|
778
|
+
return {
|
|
779
|
+
sectionKey,
|
|
780
|
+
questionKey,
|
|
781
|
+
nextSubmissionResponseData: next,
|
|
782
|
+
didMutate: false,
|
|
783
|
+
shouldPersist: false,
|
|
784
|
+
persistIntent: 'none',
|
|
785
|
+
commentId,
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
const draftFromSaved = Object.assign(Object.assign({}, saved), { isDraftComment: true, timestamp: null });
|
|
789
|
+
next[sectionKey][questionKey].draftComments = [draftFromSaved, ...draftsArr];
|
|
790
|
+
next[sectionKey][questionKey].comments = commentsArr;
|
|
791
|
+
didMutate = true;
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
case 'delete': {
|
|
795
|
+
next[sectionKey][questionKey].comments = commentsArr.map((c) => {
|
|
796
|
+
if (c.commentId === commentId) {
|
|
797
|
+
return Object.assign(Object.assign({}, c), { isDeleted: true, value: '', editedTimestamp: new Date().toISOString() });
|
|
798
|
+
}
|
|
799
|
+
return c;
|
|
800
|
+
});
|
|
801
|
+
didMutate = true;
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
case 'editClose': {
|
|
805
|
+
next[sectionKey][questionKey].draftComments = draftsArr.filter((d) => d.commentId !== commentId);
|
|
806
|
+
didMutate = true;
|
|
807
|
+
break;
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
const shouldPersist = actionType === 'save' || actionType === 'delete';
|
|
811
|
+
// For the dedicated comments API we only ever need the saved comment value.
|
|
812
|
+
let valueToPersist;
|
|
813
|
+
if (actionType === 'save') {
|
|
814
|
+
const saved = (((_e = (_d = next === null || next === void 0 ? void 0 : next[sectionKey]) === null || _d === void 0 ? void 0 : _d[questionKey]) === null || _e === void 0 ? void 0 : _e.comments) || []).find((c) => c.commentId === commentId);
|
|
815
|
+
valueToPersist = saved === null || saved === void 0 ? void 0 : saved.value;
|
|
816
|
+
}
|
|
817
|
+
return {
|
|
818
|
+
sectionKey,
|
|
819
|
+
questionKey,
|
|
820
|
+
nextSubmissionResponseData: next,
|
|
821
|
+
didMutate,
|
|
822
|
+
shouldPersist,
|
|
823
|
+
// Caller decides if this becomes public-add vs private-update.
|
|
824
|
+
persistIntent: 'none',
|
|
825
|
+
commentId,
|
|
826
|
+
valueToPersist,
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
|
|
534
830
|
const UdpFormsRenderer = class {
|
|
535
831
|
constructor(hostRef) {
|
|
536
832
|
index.registerInstance(this, hostRef);
|
|
537
833
|
this.isPublic = false;
|
|
538
834
|
this.autoSaveDelay = 2000; // Debounce delay for auto-save in milliseconds (currently disabled)
|
|
539
|
-
this.
|
|
835
|
+
this.urlContext = {}; // additional context from URL if needed, eg. generic1, gernic2, generic3, or any initial prepopulated values for form inputs. eg section1.question1 = 'some value'
|
|
836
|
+
this.currentValues = {}; // values of the current form state
|
|
540
837
|
this.submitSuccessful = false;
|
|
541
|
-
this.currentFormData = {};
|
|
542
838
|
this.isLoading = false;
|
|
543
839
|
this.isSaving = false;
|
|
544
840
|
this.isSubmitted = false;
|
|
545
|
-
this.saveErrorMessage = null;
|
|
546
841
|
this.dynamicSections = [];
|
|
547
842
|
this.isUpdatingSections = false;
|
|
548
843
|
this.reRenderKey = 0;
|
|
549
|
-
this.
|
|
550
|
-
this.isUserUpdatedSections = false;
|
|
844
|
+
this.hasUnsavedChanges = false;
|
|
551
845
|
this.sideSheetFollowUpFormsList = []; // used for follow up forms.
|
|
552
846
|
this.followUpSideSheetTotalItems = 0; // used for follow up forms.
|
|
553
847
|
this.isFollowUpFormsSideSheetOpen = false; // used for follow up forms.
|
|
@@ -559,13 +853,27 @@ const UdpFormsRenderer = class {
|
|
|
559
853
|
handleLaunchFollowUpForm: 'handleLaunchFollowUpForm'
|
|
560
854
|
};
|
|
561
855
|
this.tenantId = tenantUtils.getCurrentTenantId();
|
|
562
|
-
|
|
563
|
-
this.
|
|
856
|
+
// info for the current logged in user on the client side
|
|
857
|
+
this.clientUserInfo = {
|
|
858
|
+
id: null,
|
|
859
|
+
displayName: null,
|
|
860
|
+
email: null,
|
|
861
|
+
};
|
|
564
862
|
this.followUpParentSectionKey = ''; // used for follow up forms.
|
|
565
863
|
this.followUpParentQuestionKey = ''; // used for follow up forms.
|
|
864
|
+
// Feature flags for public mode. Keep capabilities in the handlers,
|
|
865
|
+
// but disable UX / automatic flows for now.
|
|
866
|
+
this.publicFeatures = {
|
|
867
|
+
allowDraftSave: false, // public cannot save and return later
|
|
868
|
+
allowComments: true, // public can add comments locally; persistence handled by backend rules
|
|
869
|
+
allowFollowUpForms: false, // public does not support follow-up forms
|
|
870
|
+
};
|
|
566
871
|
this.handleLaunchFollowUpFormSideSheet = async (e) => {
|
|
567
872
|
try {
|
|
568
|
-
|
|
873
|
+
// Public forms do not support follow-up forms.
|
|
874
|
+
if (this.isPublic) {
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
569
877
|
this.followUpParentSectionKey = e.detail.sectionKey;
|
|
570
878
|
this.followUpParentQuestionKey = e.detail.questionKey;
|
|
571
879
|
await this.loadFollowUpForms(this.followUpParentSectionKey, this.followUpParentQuestionKey);
|
|
@@ -584,75 +892,20 @@ const UdpFormsRenderer = class {
|
|
|
584
892
|
this.isUpdatingSections = true;
|
|
585
893
|
this.isLoading = true;
|
|
586
894
|
try {
|
|
587
|
-
const
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
// Find existing repeat group indices
|
|
592
|
-
const repeatKeys = this.findRepeatGroupKeys(cloningSectionName, this.initialValues);
|
|
593
|
-
const nextRepeatIndex = repeatKeys.length > 0 ? Math.max(...repeatKeys) + 1 : 2;
|
|
594
|
-
const clonedSection = Object.assign(Object.assign({}, structuredClone(sectionToClone)), { formQuestions: sectionToClone.formQuestions.map(q => {
|
|
595
|
-
const newQuestionObj = structuredClone(q);
|
|
596
|
-
newQuestionObj.questionIdentifierKey = `${cloningSectionName}_${nextRepeatIndex}.${q.name}`;
|
|
597
|
-
return newQuestionObj;
|
|
598
|
-
}), isOriginalSection: false, sectionPositionSuffix: nextRepeatIndex });
|
|
599
|
-
// Find the last index of this section group
|
|
600
|
-
let insertAtIndex = index;
|
|
601
|
-
for (let i = index + 1; i < this.dynamicSections.length; i++) {
|
|
602
|
-
const s = this.dynamicSections[i];
|
|
603
|
-
if (s.name === cloningSectionName) {
|
|
604
|
-
insertAtIndex = i;
|
|
605
|
-
}
|
|
606
|
-
else {
|
|
607
|
-
break;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
// Insert after the last repeat of the section group
|
|
611
|
-
this.dynamicSections = [
|
|
612
|
-
...this.dynamicSections.slice(0, insertAtIndex + 1),
|
|
613
|
-
clonedSection,
|
|
614
|
-
...this.dynamicSections.slice(insertAtIndex + 1),
|
|
615
|
-
];
|
|
616
|
-
// Create new initial values structure
|
|
617
|
-
const newInitialValues = structuredClone(this.udpFormSubmission.data.submissionResponseData);
|
|
618
|
-
clonedSection.formQuestions.forEach(q => {
|
|
619
|
-
var _a, _b, _c, _d;
|
|
620
|
-
const newSectionNameWithSuffix = `${cloningSectionName}_${nextRepeatIndex}`;
|
|
621
|
-
const newQuestionName = q.name;
|
|
622
|
-
if (!newInitialValues[newSectionNameWithSuffix]) {
|
|
623
|
-
newInitialValues[newSectionNameWithSuffix] = {};
|
|
624
|
-
}
|
|
625
|
-
// Preserve only Paragraph values from the source section; clear others
|
|
626
|
-
let value = '';
|
|
627
|
-
if (q.fieldTypeId === enums.UdpFormsFieldTypeEnum.Paragraph) {
|
|
628
|
-
// Determine source section key (the section being duplicated)
|
|
629
|
-
const sourceSectionKey = sectionToClone.isOriginalSection
|
|
630
|
-
? cloningSectionName
|
|
631
|
-
: `${cloningSectionName}_${sectionToClone.sectionPositionSuffix}`;
|
|
632
|
-
const sourceVal = (_c = (_b = (_a = this.udpFormSubmission.data.submissionResponseData) === null || _a === void 0 ? void 0 : _a[sourceSectionKey]) === null || _b === void 0 ? void 0 : _b[newQuestionName]) === null || _c === void 0 ? void 0 : _c.value;
|
|
633
|
-
let fieldProps = q === null || q === void 0 ? void 0 : q.fieldProperties;
|
|
634
|
-
if (typeof fieldProps === 'string') {
|
|
635
|
-
try {
|
|
636
|
-
fieldProps = JSON.parse(fieldProps || '{}');
|
|
637
|
-
}
|
|
638
|
-
catch (_e) {
|
|
639
|
-
fieldProps = {};
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
const paragraphDefault = (_d = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.paragraphText) !== null && _d !== void 0 ? _d : '';
|
|
643
|
-
value = sourceVal !== null && sourceVal !== void 0 ? sourceVal : paragraphDefault;
|
|
644
|
-
}
|
|
645
|
-
newInitialValues[newSectionNameWithSuffix][newQuestionName] = { value, comments: [], metadata: {} };
|
|
895
|
+
const { nextDynamicSections, nextValues } = computeDuplicateRepeatableSection({
|
|
896
|
+
dynamicSections: this.dynamicSections,
|
|
897
|
+
values: structuredClone(this.udpFormSubmission.data.submissionResponseData || {}),
|
|
898
|
+
index,
|
|
646
899
|
});
|
|
647
|
-
|
|
648
|
-
this.
|
|
649
|
-
this.udpFormSubmission.data.submissionResponseData = Object.assign({},
|
|
900
|
+
this.dynamicSections = nextDynamicSections;
|
|
901
|
+
this.currentValues = Object.assign({}, nextValues);
|
|
902
|
+
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, nextValues);
|
|
650
903
|
this.triggerFormRerender();
|
|
651
904
|
}
|
|
652
905
|
finally {
|
|
653
906
|
this.isUpdatingSections = false;
|
|
654
907
|
this.isLoading = false;
|
|
655
|
-
this.
|
|
908
|
+
this.hasUnsavedChanges = true;
|
|
656
909
|
}
|
|
657
910
|
};
|
|
658
911
|
/**
|
|
@@ -667,137 +920,90 @@ const UdpFormsRenderer = class {
|
|
|
667
920
|
this.isUpdatingSections = true;
|
|
668
921
|
this.isLoading = true;
|
|
669
922
|
try {
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
delete newInitialValues[sectionKeyToDelete];
|
|
675
|
-
// Remove the section from dynamicSections
|
|
676
|
-
const updatedSections = structuredClone(this.dynamicSections);
|
|
677
|
-
updatedSections.splice(index, 1);
|
|
678
|
-
// Shift all later repeatable sections backward by 1
|
|
679
|
-
updatedSections.forEach(section => {
|
|
680
|
-
if (section.name !== deleteSectionName ||
|
|
681
|
-
section.isOriginalSection ||
|
|
682
|
-
section.sectionPositionSuffix <= deleteSuffix) {
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
const oldSuffix = section.sectionPositionSuffix;
|
|
686
|
-
const oldSectionKey = `${deleteSectionName}_${oldSuffix}`;
|
|
687
|
-
const newSuffix = oldSuffix - 1;
|
|
688
|
-
const newSectionKey = `${deleteSectionName}_${newSuffix}`;
|
|
689
|
-
// Update suffix
|
|
690
|
-
section.sectionPositionSuffix = newSuffix;
|
|
691
|
-
// Update questionIdentifierKeys
|
|
692
|
-
section.formQuestions = section.formQuestions.map(q => {
|
|
693
|
-
const newSectionQuestion = structuredClone(q);
|
|
694
|
-
newSectionQuestion.questionIdentifierKey = `${newSectionKey}.${q.name}`;
|
|
695
|
-
return newSectionQuestion;
|
|
696
|
-
});
|
|
697
|
-
// Move data in initial values
|
|
698
|
-
if (newInitialValues[oldSectionKey]) {
|
|
699
|
-
newInitialValues[newSectionKey] = structuredClone(newInitialValues[oldSectionKey]);
|
|
700
|
-
delete newInitialValues[oldSectionKey];
|
|
701
|
-
}
|
|
923
|
+
const { nextDynamicSections, nextValues } = computeDeleteRepeatableSection({
|
|
924
|
+
dynamicSections: this.dynamicSections,
|
|
925
|
+
values: Object.assign({}, (this.udpFormSubmission.data.submissionResponseData || {})),
|
|
926
|
+
index,
|
|
702
927
|
});
|
|
703
|
-
this.dynamicSections =
|
|
704
|
-
this.
|
|
705
|
-
this.udpFormSubmission.data.submissionResponseData = Object.assign({},
|
|
928
|
+
this.dynamicSections = nextDynamicSections;
|
|
929
|
+
this.currentValues = Object.assign({}, nextValues);
|
|
930
|
+
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, nextValues);
|
|
706
931
|
this.triggerFormRerender();
|
|
707
932
|
}
|
|
708
933
|
finally {
|
|
709
934
|
this.isUpdatingSections = false;
|
|
710
935
|
this.isLoading = false;
|
|
711
|
-
this.
|
|
936
|
+
this.hasUnsavedChanges = true;
|
|
712
937
|
}
|
|
713
938
|
};
|
|
714
939
|
/**
|
|
715
940
|
* Auto save (background save)
|
|
716
941
|
*/
|
|
717
942
|
this.performBackgroundSaveAndUpdateLocalSubmissionState = async (values) => {
|
|
718
|
-
|
|
719
|
-
|
|
943
|
+
return this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal(values);
|
|
944
|
+
};
|
|
945
|
+
this.performBackgroundSaveAndUpdateLocalSubmissionStateInternal = async (values, opts) => {
|
|
946
|
+
var _a, _b;
|
|
947
|
+
const allowUrlReplace = (_a = opts === null || opts === void 0 ? void 0 : opts.allowUrlReplace) !== null && _a !== void 0 ? _a : !this.isPublic;
|
|
948
|
+
const forceCreateDraftIfMissingId = (_b = opts === null || opts === void 0 ? void 0 : opts.forceCreateDraftIfMissingId) !== null && _b !== void 0 ? _b : false;
|
|
949
|
+
// Public mode: disable draft save flows by default
|
|
950
|
+
if (this.isPublic && !this.publicFeatures.allowDraftSave && !forceCreateDraftIfMissingId) {
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
720
953
|
try {
|
|
721
|
-
|
|
722
|
-
this.
|
|
723
|
-
|
|
724
|
-
if (!new URLSearchParams(window.location.search).has('udpf_submissionId')) {
|
|
954
|
+
await this.formSubmissionHandler.saveCurrentFormSubmissionState(values, this.udpFormSubmission);
|
|
955
|
+
await this.refreshSubmissionAndSyncState();
|
|
956
|
+
if (allowUrlReplace && !new URLSearchParams(window.location.search).has('udpf_submissionId')) {
|
|
725
957
|
// replace the current entry's query string with udpf_submissionId without needing to know the path
|
|
726
|
-
|
|
958
|
+
replaceUrlWithSubmissionId(this.udpFormSubmission.id, this.history);
|
|
727
959
|
}
|
|
728
960
|
}
|
|
729
961
|
catch (error) {
|
|
730
|
-
this.saveErrorMessage = 'Failed to save form data';
|
|
731
962
|
}
|
|
732
963
|
finally {
|
|
733
964
|
this.isSaving = false;
|
|
734
|
-
this.
|
|
735
|
-
this.isFormDirty = false;
|
|
965
|
+
this.hasUnsavedChanges = false;
|
|
736
966
|
}
|
|
737
967
|
};
|
|
968
|
+
this.refreshSubmissionAndSyncState = async () => {
|
|
969
|
+
var _a, _b;
|
|
970
|
+
if (!((_a = this.udpFormSubmission) === null || _a === void 0 ? void 0 : _a.id))
|
|
971
|
+
return;
|
|
972
|
+
const updated = await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);
|
|
973
|
+
this.udpFormSubmission = updated;
|
|
974
|
+
this.currentValues = Object.assign({}, (((_b = updated.data) === null || _b === void 0 ? void 0 : _b.submissionResponseData) || {}));
|
|
975
|
+
this.isSubmitted = updated.status === enums.UdpFormsSubmissionStatusEnum.Submitted;
|
|
976
|
+
};
|
|
738
977
|
/**
|
|
739
|
-
* Handle the user saving or deleting a comment
|
|
978
|
+
* Handle the user saving or deleting a comment (pre-submit, private forms only)
|
|
740
979
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
const updatedUdpFormSubmission = await this.formSubmissionHandler.saveFormSubmissionComments(values, this.udpFormSubmission);
|
|
747
|
-
this.udpFormSubmission = updatedUdpFormSubmission;
|
|
748
|
-
this.initialValues = Object.assign({}, (((_a = updatedUdpFormSubmission.data) === null || _a === void 0 ? void 0 : _a.submissionResponseData) || {}));
|
|
749
|
-
this.enqueueSnackbar('Saved sucessfully.', {
|
|
750
|
-
variant: 'success',
|
|
751
|
-
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
catch (error) {
|
|
755
|
-
this.enqueueSnackbar('There was an error saving.', {
|
|
756
|
-
variant: 'error',
|
|
757
|
-
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
finally {
|
|
761
|
-
this.isSaving = false;
|
|
762
|
-
this.isUserUpdatedSections = false;
|
|
763
|
-
this.isFormDirty = false;
|
|
764
|
-
}
|
|
765
|
-
};
|
|
980
|
+
// NOTE: comment saves for non-submitted owner flows are now handled by the standard
|
|
981
|
+
// draft save path (manual/background save). Dedicated comment endpoints are used
|
|
982
|
+
// only for:
|
|
983
|
+
// 1) submitted submissions, OR
|
|
984
|
+
// 2) non-owner viewers adding/updating/deleting comments.
|
|
766
985
|
/**
|
|
767
|
-
* Manual save function - debounced to 5 seconds
|
|
986
|
+
* Manual save function - debounced to 5 seconds (private forms only)
|
|
768
987
|
*/
|
|
769
988
|
this.handleManualSave = async (values) => {
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
// return;
|
|
773
|
-
// }
|
|
774
|
-
var _a;
|
|
989
|
+
if (this.isPublic && !this.publicFeatures.allowDraftSave)
|
|
990
|
+
return;
|
|
775
991
|
this.isSaving = true;
|
|
776
|
-
this.saveErrorMessage = null;
|
|
777
992
|
try {
|
|
778
|
-
|
|
779
|
-
this.
|
|
780
|
-
this.initialValues = Object.assign({}, (((_a = updatedUdpFormSubmission.data) === null || _a === void 0 ? void 0 : _a.submissionResponseData) || {}));
|
|
993
|
+
await this.formSubmissionHandler.saveCurrentFormSubmissionState(values, this.udpFormSubmission);
|
|
994
|
+
await this.refreshSubmissionAndSyncState();
|
|
781
995
|
if (!new URLSearchParams(window.location.search).has('udpf_submissionId')) {
|
|
782
996
|
// replace the current entry's query string with udpf_submissionId without needing to know the path
|
|
783
|
-
|
|
997
|
+
replaceUrlWithSubmissionId(this.udpFormSubmission.id, this.history);
|
|
784
998
|
}
|
|
785
|
-
|
|
786
|
-
variant: 'success',
|
|
787
|
-
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
788
|
-
});
|
|
999
|
+
enqueueSnackbarSuccess('Form saved successfully.', this.enqueueSnackbar);
|
|
789
1000
|
}
|
|
790
1001
|
catch (error) {
|
|
791
|
-
|
|
792
|
-
variant: 'error',
|
|
793
|
-
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
794
|
-
});
|
|
795
|
-
this.saveErrorMessage = 'Failed to save form data';
|
|
1002
|
+
enqueueSnackbarError('There was an error saving this form', this.enqueueSnackbar);
|
|
796
1003
|
}
|
|
797
1004
|
finally {
|
|
798
1005
|
this.isSaving = false;
|
|
799
|
-
this.
|
|
800
|
-
this.isFormDirty = false;
|
|
1006
|
+
this.hasUnsavedChanges = false;
|
|
801
1007
|
}
|
|
802
1008
|
};
|
|
803
1009
|
this.handleFormChange = (values) => {
|
|
@@ -827,7 +1033,7 @@ const UdpFormsRenderer = class {
|
|
|
827
1033
|
// create a new follow up form submission instance wiht a link to the parent form submission
|
|
828
1034
|
const followUpMasterForm = await this.formHandler.getFormByFormIdAndFormVersion(followUpFormId, followUpFormVersion);
|
|
829
1035
|
const followUpSubmissionData = {
|
|
830
|
-
submissionResponseData: utils.
|
|
1036
|
+
submissionResponseData: utils.buildEmptyCurrentValues(followUpMasterForm),
|
|
831
1037
|
submissionMetadata: {
|
|
832
1038
|
ParentSubmission: {
|
|
833
1039
|
submissionId: parentFormSubmissionId,
|
|
@@ -836,8 +1042,8 @@ const UdpFormsRenderer = class {
|
|
|
836
1042
|
}
|
|
837
1043
|
}
|
|
838
1044
|
};
|
|
839
|
-
const followUpFormSubmission = new UdpFormSubmission({ formId: followUpFormId, formVersion: followUpFormVersion, unityUserId: this.
|
|
840
|
-
const followUpFormSubmissionHandler = FormSubmissionHandlerFactory.create(false, this.
|
|
1045
|
+
const followUpFormSubmission = new UdpFormSubmission({ formId: followUpFormId, formVersion: followUpFormVersion, unityUserId: this.clientUserInfo.id, data: followUpSubmissionData });
|
|
1046
|
+
const followUpFormSubmissionHandler = FormSubmissionHandlerFactory.create(false, this.clientUserInfo.id);
|
|
841
1047
|
const response = await followUpFormSubmissionHandler.createNewLinkedFollowUpFormSubmission(followUpFormSubmission);
|
|
842
1048
|
// update the current form submission state with the follow up form submission id in the metadata
|
|
843
1049
|
const itemMetadata = this.udpFormSubmission.data.submissionResponseData[sectionKey][questionKey].metadata;
|
|
@@ -864,7 +1070,9 @@ const UdpFormsRenderer = class {
|
|
|
864
1070
|
// Listen for launchFollowUpFormSideSheet event from udp-question
|
|
865
1071
|
this.el.addEventListener('launchFollowUpFormSideSheet', (e) => this.handleLaunchFollowUpFormSideSheet(e));
|
|
866
1072
|
this.el.addEventListener('formDirtyChange', (e) => {
|
|
867
|
-
|
|
1073
|
+
// Preserve any previously-detected unsaved changes (e.g. repeatable section add/delete)
|
|
1074
|
+
// so a later false emission doesn't hide the save icon.
|
|
1075
|
+
this.hasUnsavedChanges = this.hasUnsavedChanges || e.detail;
|
|
868
1076
|
});
|
|
869
1077
|
}
|
|
870
1078
|
}
|
|
@@ -872,17 +1080,25 @@ const UdpFormsRenderer = class {
|
|
|
872
1080
|
var _a;
|
|
873
1081
|
this.isLoading = true;
|
|
874
1082
|
try {
|
|
875
|
-
// Get user info if available
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
this.
|
|
879
|
-
this.userDisplayName = user.name || null;
|
|
1083
|
+
// Get client user info if available
|
|
1084
|
+
if (this.isPublic) {
|
|
1085
|
+
this.clientUserInfo.id = '00000000-0000-0000-0000-000000000001';
|
|
1086
|
+
this.clientUserInfo.displayName = 'Anonymous';
|
|
880
1087
|
}
|
|
881
|
-
|
|
882
|
-
|
|
1088
|
+
else {
|
|
1089
|
+
const user = (_a = this.getUserCallback) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1090
|
+
if (user) {
|
|
1091
|
+
this.clientUserInfo.id = user.id || null;
|
|
1092
|
+
this.clientUserInfo.displayName = user.name || null;
|
|
1093
|
+
this.clientUserInfo.email = user.email || null;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
this.formSubmissionHandler = FormSubmissionHandlerFactory.create(this.isPublic, this.clientUserInfo.id);
|
|
1097
|
+
this.udpFormSubmission = new UdpFormSubmission({ id: this.submissionId, formId: this.formId, formVersion: this.version, unityUserId: this.clientUserInfo.id, generic1: this.urlContext.generic1, generic2: this.urlContext.generic2, generic3: this.urlContext.generic3 });
|
|
883
1098
|
// fetch existing submission from Udp.FormSubmission if submissionId is provided
|
|
884
1099
|
// take exisitng object, and populate with db values, and return new obj with updated values
|
|
885
1100
|
if (this.submissionId) {
|
|
1101
|
+
// Public users should not open private forms; we rely on backend auth to block.
|
|
886
1102
|
this.udpFormSubmission = await this.formSubmissionHandler.fetchAndPopulateUdpFormSubmissionObj(this.udpFormSubmission);
|
|
887
1103
|
}
|
|
888
1104
|
// get the master form from Udp.Form
|
|
@@ -899,18 +1115,29 @@ const UdpFormsRenderer = class {
|
|
|
899
1115
|
this.formHandler = new UdpFormHandler(this.tenantId);
|
|
900
1116
|
const formData = await this.formHandler.getFormByFormIdAndFormVersion(formId, formVersion);
|
|
901
1117
|
this.udpForm = new UdpForm(formData);
|
|
902
|
-
this.
|
|
1118
|
+
this.currentValues = utils.buildEmptyCurrentValues(this.udpForm);
|
|
903
1119
|
// if there's existing data, update the form's state
|
|
904
1120
|
if (this.udpFormSubmission.data.submissionResponseData) {
|
|
905
|
-
this.
|
|
906
|
-
if (this.udpFormSubmission.status ===
|
|
1121
|
+
this.currentValues = Object.assign({}, this.udpFormSubmission.data.submissionResponseData);
|
|
1122
|
+
if (this.udpFormSubmission.status === enums.UdpFormsSubmissionStatusEnum.Submitted) {
|
|
907
1123
|
this.isSubmitted = true;
|
|
908
1124
|
}
|
|
909
1125
|
}
|
|
910
|
-
|
|
911
|
-
//
|
|
912
|
-
//
|
|
913
|
-
|
|
1126
|
+
// For new submissions (un-instiantiated or in the 'created' status), we allow the seeding of initial values from URL params
|
|
1127
|
+
// So we build dynamicSections with urlContext first, then seed values.
|
|
1128
|
+
// URL params (udpf_*) may imply repeatable section instances (e.g. section1_3.question1).
|
|
1129
|
+
// For existing submissions that are in progress, skip URL-based seeding and do not create additional sections from URL.
|
|
1130
|
+
if ((!this.udpFormSubmission.id || this.udpFormSubmission.status === enums.UdpFormsSubmissionStatusEnum.Created) && this.urlContext && Object.keys(this.urlContext).length > 0) {
|
|
1131
|
+
this.dynamicSections = initializeDynamicSectionsWithUrlContext(this.udpForm, this.currentValues, this.urlContext);
|
|
1132
|
+
const seeded = applyUrlSeedValuesForAll(this.dynamicSections, this.urlContext);
|
|
1133
|
+
if (seeded) {
|
|
1134
|
+
this.currentValues = seeded;
|
|
1135
|
+
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, seeded);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
else {
|
|
1139
|
+
this.dynamicSections = initializeDynamicSections(this.udpForm, this.currentValues);
|
|
1140
|
+
}
|
|
914
1141
|
// Set up throttled manual save function (5 seconds) - fires immediately, then throttles
|
|
915
1142
|
this.debouncedManualSave = lodash.throttle(async (values) => {
|
|
916
1143
|
await this.handleManualSave(values);
|
|
@@ -927,290 +1154,120 @@ const UdpFormsRenderer = class {
|
|
|
927
1154
|
this.isLoading = false;
|
|
928
1155
|
}
|
|
929
1156
|
}
|
|
930
|
-
// build dynamic sections based on the
|
|
931
|
-
initializeDynamicSections() {
|
|
932
|
-
var _a;
|
|
933
|
-
const tempDynamicSection = [];
|
|
934
|
-
const sortedSections = structuredClone(this.udpForm.udpFormUdpFormSection).sort((a, b) => a.order - b.order);
|
|
935
|
-
for (const section of sortedSections) {
|
|
936
|
-
section.sectionProperties = JSON.parse(section.sectionProperties || {});
|
|
937
|
-
const repeatGroupKeys = this.findRepeatGroupKeys(section.name, this.initialValues);
|
|
938
|
-
section.isOriginalSection = true;
|
|
939
|
-
section.sectionPositionSuffix = 1; // default position
|
|
940
|
-
// always add the original section into dynamic sections
|
|
941
|
-
tempDynamicSection.push(Object.assign(Object.assign({}, structuredClone(section)), {
|
|
942
|
-
// dynamicSectionName: section.name,
|
|
943
|
-
formQuestions: structuredClone(this.udpForm.formQuestions)
|
|
944
|
-
.filter(q => q.formSectionId === section.id)
|
|
945
|
-
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
946
|
-
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}.${q.name}`, isShowCommentInput: true })))
|
|
947
|
-
}));
|
|
948
|
-
// create then add additional sections if there are repeated sections
|
|
949
|
-
if (((_a = section.sectionProperties) === null || _a === void 0 ? void 0 : _a.isRepeatable) && repeatGroupKeys.length > 0) {
|
|
950
|
-
const maxRepeatedSectionSuffix = Math.max(...repeatGroupKeys); // create a new section for the max value of repeat group keys, even if there are no saved answers
|
|
951
|
-
// for (const repeatKey of repeatGroupKeys) { // create a section only for the suffix saved
|
|
952
|
-
for (let repeatKey = 2; repeatKey <= maxRepeatedSectionSuffix; repeatKey++) {
|
|
953
|
-
const clonedSection = Object.assign(Object.assign({}, structuredClone(section)), { formQuestions: structuredClone(this.udpForm.formQuestions)
|
|
954
|
-
.filter(q => q.formSectionId === section.id)
|
|
955
|
-
.sort((a, b) => a.questionOrder - b.questionOrder)
|
|
956
|
-
.map(q => (Object.assign(Object.assign({}, q), { questionIdentifierKey: `${section.name}_${repeatKey}.${q.name}`, isShowCommentInput: true }))), isOriginalSection: false, sectionPositionSuffix: repeatKey });
|
|
957
|
-
tempDynamicSection.push(clonedSection);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
this.dynamicSections = tempDynamicSection;
|
|
962
|
-
}
|
|
963
|
-
findRepeatGroupKeys(sectionName, values) {
|
|
964
|
-
const keys = Object.keys(values);
|
|
965
|
-
const repeatGroupSet = new Set();
|
|
966
|
-
// Match: sectionName_2
|
|
967
|
-
const regex = new RegExp(`^${sectionName}_(\\d+)`);
|
|
968
|
-
keys.forEach(key => {
|
|
969
|
-
const match = key.match(regex);
|
|
970
|
-
if (match && match[1]) {
|
|
971
|
-
repeatGroupSet.add(Number(match[1]));
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
return Array.from(repeatGroupSet).sort((a, b) => a - b);
|
|
975
|
-
}
|
|
976
|
-
// Build initial values from URL for ALL fields, but do NOT override saved values.
|
|
977
|
-
// For Paragraph, also fall back to the builder's default text when nothing else provided.
|
|
978
|
-
applyUrlInitialValuesForAll() {
|
|
979
|
-
if (!Array.isArray(this.dynamicSections))
|
|
980
|
-
return;
|
|
981
|
-
const urlParams = typeof window !== 'undefined' ? new URLSearchParams(window.location.search) : null;
|
|
982
|
-
// 1) Collect URL values into nested structure: { [sectionKey]: { [questionName]: { value, comments: [] } } }
|
|
983
|
-
const urlValuesNested = {};
|
|
984
|
-
if (urlParams) {
|
|
985
|
-
this.dynamicSections.forEach(section => {
|
|
986
|
-
const sectionKey = section.isOriginalSection
|
|
987
|
-
? section.name
|
|
988
|
-
: `${section.name}_${section.sectionPositionSuffix}`;
|
|
989
|
-
(section.formQuestions || []).forEach(q => {
|
|
990
|
-
if (!q)
|
|
991
|
-
return;
|
|
992
|
-
const candidates = [q.processedSubmissionName, q.questionIdentifierKey, q.name].filter(Boolean);
|
|
993
|
-
let urlVal = null;
|
|
994
|
-
for (const c of candidates) {
|
|
995
|
-
urlVal = urlParams.get(c);
|
|
996
|
-
if (urlVal !== null)
|
|
997
|
-
break;
|
|
998
|
-
}
|
|
999
|
-
if (urlVal !== null) {
|
|
1000
|
-
if (!urlValuesNested[sectionKey])
|
|
1001
|
-
urlValuesNested[sectionKey] = {};
|
|
1002
|
-
urlValuesNested[sectionKey][q.name] = { value: urlVal, comments: [] };
|
|
1003
|
-
}
|
|
1004
|
-
});
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
// 2) Merge with saved values (this.initialValues) taking precedence
|
|
1008
|
-
const merged = structuredClone(this.initialValues) || {};
|
|
1009
|
-
Object.entries(urlValuesNested).forEach(([sectionKey, qMap]) => {
|
|
1010
|
-
if (!merged[sectionKey])
|
|
1011
|
-
merged[sectionKey] = {};
|
|
1012
|
-
Object.entries(qMap).forEach(([qName, valObj]) => {
|
|
1013
|
-
const existing = merged[sectionKey][qName];
|
|
1014
|
-
// Only set from URL if no saved value exists (null/undefined/empty-string)
|
|
1015
|
-
const isMissing = existing == null ||
|
|
1016
|
-
existing.value == null ||
|
|
1017
|
-
(typeof existing.value === 'string' && existing.value.trim() === '');
|
|
1018
|
-
if (isMissing) {
|
|
1019
|
-
merged[sectionKey][qName] = valObj;
|
|
1020
|
-
}
|
|
1021
|
-
});
|
|
1022
|
-
});
|
|
1023
|
-
// 3) Paragraph defaults: if still undefined/null, use fieldProperties.paragraphText
|
|
1024
|
-
this.dynamicSections.forEach(section => {
|
|
1025
|
-
const sectionKey = section.isOriginalSection
|
|
1026
|
-
? section.name
|
|
1027
|
-
: `${section.name}_${section.sectionPositionSuffix}`;
|
|
1028
|
-
if (!merged[sectionKey])
|
|
1029
|
-
merged[sectionKey] = {};
|
|
1030
|
-
(section.formQuestions || []).forEach(q => {
|
|
1031
|
-
var _a;
|
|
1032
|
-
if (!q)
|
|
1033
|
-
return;
|
|
1034
|
-
if (q.fieldTypeId === enums.UdpFormsFieldTypeEnum.Paragraph) {
|
|
1035
|
-
const existing = merged[sectionKey][q.name];
|
|
1036
|
-
const isMissing = existing == null ||
|
|
1037
|
-
existing.value == null ||
|
|
1038
|
-
(typeof existing.value === 'string' && existing.value.trim() === '');
|
|
1039
|
-
if (isMissing) {
|
|
1040
|
-
let fieldProps = q === null || q === void 0 ? void 0 : q.fieldProperties;
|
|
1041
|
-
if (typeof fieldProps === 'string') {
|
|
1042
|
-
try {
|
|
1043
|
-
fieldProps = JSON.parse(fieldProps || '{}');
|
|
1044
|
-
}
|
|
1045
|
-
catch (_b) {
|
|
1046
|
-
fieldProps = {};
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
merged[sectionKey][q.name] = {
|
|
1050
|
-
value: (_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.paragraphText) !== null && _a !== void 0 ? _a : '',
|
|
1051
|
-
comments: [],
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
});
|
|
1057
|
-
this.initialValues = merged;
|
|
1058
|
-
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, merged);
|
|
1059
|
-
}
|
|
1060
1157
|
async handleSubmit(values) {
|
|
1061
1158
|
this.isLoading = true;
|
|
1062
1159
|
try {
|
|
1063
|
-
|
|
1160
|
+
await this.formSubmissionHandler.finalizeFormSubmissionState(values, this.udpFormSubmission);
|
|
1161
|
+
await this.refreshSubmissionAndSyncState();
|
|
1064
1162
|
this.submitSuccessful = true;
|
|
1065
1163
|
}
|
|
1066
1164
|
catch (error) {
|
|
1067
|
-
|
|
1068
|
-
variant: 'error',
|
|
1069
|
-
anchorOrigin: { vertical: 'top', horizontal: 'center' },
|
|
1070
|
-
});
|
|
1165
|
+
enqueueSnackbarError('There was an error submitting this form', this.enqueueSnackbar);
|
|
1071
1166
|
throw error;
|
|
1072
1167
|
}
|
|
1073
1168
|
finally {
|
|
1074
1169
|
this.isLoading = false;
|
|
1075
1170
|
}
|
|
1076
1171
|
}
|
|
1077
|
-
replaceUrlWithSubmissionId(submissionId) {
|
|
1078
|
-
// build a URL that preserves the current pathname + hash but replaces the query string
|
|
1079
|
-
const pathname = typeof window !== 'undefined' ? window.location.pathname : `/page/${enums.UdpFormsPageIdEnum.FormRendererPageId}`;
|
|
1080
|
-
const hash = typeof window !== 'undefined' ? window.location.hash : '';
|
|
1081
|
-
const newUrl = `${pathname}?udpf_submissionId=${submissionId}${hash}`;
|
|
1082
|
-
const h = this.history;
|
|
1083
|
-
// Prefer history.replace when available, handle react-router v6 navigate function, fallback to push or native replaceState
|
|
1084
|
-
if (h) {
|
|
1085
|
-
if (typeof h.replace === 'function') {
|
|
1086
|
-
h.replace(newUrl);
|
|
1087
|
-
return;
|
|
1088
|
-
}
|
|
1089
|
-
if (typeof h.push === 'function') {
|
|
1090
|
-
h.push(newUrl);
|
|
1091
|
-
return;
|
|
1092
|
-
}
|
|
1093
|
-
// react-router v6 exposes a navigate function
|
|
1094
|
-
if (typeof h === 'function') {
|
|
1095
|
-
try {
|
|
1096
|
-
h(newUrl, { replace: true });
|
|
1097
|
-
}
|
|
1098
|
-
catch (_a) {
|
|
1099
|
-
h(newUrl);
|
|
1100
|
-
}
|
|
1101
|
-
return;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
if (typeof window !== 'undefined' && window.history && typeof window.history.replaceState === 'function') {
|
|
1105
|
-
window.history.replaceState({}, '', newUrl);
|
|
1106
|
-
}
|
|
1107
|
-
else if (typeof window !== 'undefined') {
|
|
1108
|
-
window.location.href = newUrl;
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
1172
|
async handleQuestionCommentLiveCRUD(e) {
|
|
1112
|
-
var _a, _b, _c;
|
|
1173
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1174
|
+
if (this.isPublic && !this.publicFeatures.allowComments)
|
|
1175
|
+
return;
|
|
1113
1176
|
try {
|
|
1114
1177
|
const { type, questionIdentifierKey, commentId } = e.detail;
|
|
1115
|
-
const
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
else {
|
|
1130
|
-
// ensure arrays/objects exist so later code can safely push/filter
|
|
1131
|
-
newInitialValues[sectionName][questionName].comments = (_a = newInitialValues[sectionName][questionName].comments) !== null && _a !== void 0 ? _a : [];
|
|
1132
|
-
newInitialValues[sectionName][questionName].draftComments = (_b = newInitialValues[sectionName][questionName].draftComments) !== null && _b !== void 0 ? _b : [];
|
|
1133
|
-
newInitialValues[sectionName][questionName].metadata = (_c = newInitialValues[sectionName][questionName].metadata) !== null && _c !== void 0 ? _c : {};
|
|
1134
|
-
}
|
|
1135
|
-
// normalize draftComments to array if needed (back-compat)
|
|
1136
|
-
const maybeDraft = newInitialValues[sectionName][questionName].draftComments;
|
|
1137
|
-
if (maybeDraft && !Array.isArray(maybeDraft)) {
|
|
1138
|
-
newInitialValues[sectionName][questionName].draftComments = [maybeDraft];
|
|
1139
|
-
}
|
|
1140
|
-
else if (!maybeDraft) {
|
|
1141
|
-
newInitialValues[sectionName][questionName].draftComments = [];
|
|
1178
|
+
const result = applyQuestionCommentCrud({
|
|
1179
|
+
actionType: type,
|
|
1180
|
+
questionIdentifierKey,
|
|
1181
|
+
commentId,
|
|
1182
|
+
currentSubmissionResponseData: this.udpFormSubmission.data.submissionResponseData || {},
|
|
1183
|
+
clientUserInfo: this.clientUserInfo,
|
|
1184
|
+
});
|
|
1185
|
+
const newCurrentValues = result.nextSubmissionResponseData;
|
|
1186
|
+
// keep submission state in sync
|
|
1187
|
+
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, newCurrentValues);
|
|
1188
|
+
// Edit-ish actions are UI-only (open/close draft editor). They must update currentValues
|
|
1189
|
+
// even though they don't persist.
|
|
1190
|
+
if (type === 'edit' || type === 'editClose' || type === 'add') {
|
|
1191
|
+
this.currentValues = Object.assign({}, newCurrentValues);
|
|
1142
1192
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
const draftIdx = draftsArr.findIndex(d => d.commentId === commentId);
|
|
1160
|
-
if (draftIdx === -1)
|
|
1161
|
-
return;
|
|
1162
|
-
const draft = draftsArr[draftIdx];
|
|
1163
|
-
const saveTimestamp = draft.timestamp || new Date().toISOString();
|
|
1164
|
-
const savedComment = Object.assign(Object.assign({}, draft), { timestamp: saveTimestamp, editedTimestamp: new Date().toISOString(), userId: this.userId, userDisplayName: this.userDisplayName, isDraftComment: false });
|
|
1165
|
-
// If a saved comment with same id exists, replace it. Otherwise append.
|
|
1166
|
-
const existingIdx = commentsArr.findIndex(c => c.commentId === commentId);
|
|
1167
|
-
if (existingIdx !== -1) {
|
|
1168
|
-
const newComments = [...commentsArr];
|
|
1169
|
-
newComments[existingIdx] = Object.assign({}, savedComment);
|
|
1170
|
-
newInitialValues[sectionName][questionName].comments = newComments;
|
|
1193
|
+
// if it's a save or delete action, persist immediately
|
|
1194
|
+
if (result.shouldPersist) {
|
|
1195
|
+
const submissionIsSubmitted = ((_a = this.udpFormSubmission) === null || _a === void 0 ? void 0 : _a.status) === enums.UdpFormsSubmissionStatusEnum.Submitted;
|
|
1196
|
+
const submissionIsOwnedByCurrentUser = ((_b = this.udpFormSubmission) === null || _b === void 0 ? void 0 : _b.unityUserId) === this.clientUserInfo.id;
|
|
1197
|
+
// Detect whether this save is updating an existing saved comment vs creating a new one.
|
|
1198
|
+
// IMPORTANT: check against the *previous* persisted state (before applyQuestionCommentCrud),
|
|
1199
|
+
// because once we apply 'save' locally the comment will exist locally even if it's new.
|
|
1200
|
+
const existingSavedComment = (((_e = (_d = (_c = ((this.currentValues || {}))) === null || _c === void 0 ? void 0 : _c[result.sectionKey]) === null || _d === void 0 ? void 0 : _d[result.questionKey]) === null || _e === void 0 ? void 0 : _e.comments) || [])
|
|
1201
|
+
.find((c) => (c === null || c === void 0 ? void 0 : c.commentId) === result.commentId && !(c === null || c === void 0 ? void 0 : c.isDeleted));
|
|
1202
|
+
// Use dedicated comment APIs in 2 scenarios:
|
|
1203
|
+
// 1) Once submitted (public+private) to avoid overwriting submission data.
|
|
1204
|
+
// 2) When viewed by a non-owner (read-only mode), since they can't save the whole submission.
|
|
1205
|
+
if (submissionIsSubmitted || !submissionIsOwnedByCurrentUser) {
|
|
1206
|
+
if (!((_f = this.udpFormSubmission) === null || _f === void 0 ? void 0 : _f.id)) {
|
|
1207
|
+
// can't persist without an ID; keep local only
|
|
1208
|
+
this.currentValues = Object.assign({}, newCurrentValues);
|
|
1171
1209
|
}
|
|
1172
|
-
else {
|
|
1173
|
-
|
|
1210
|
+
else if (type === 'save') {
|
|
1211
|
+
const valueToPersist = result.valueToPersist;
|
|
1212
|
+
if (valueToPersist) {
|
|
1213
|
+
try {
|
|
1214
|
+
// If this comment already exists, update it; otherwise add it.
|
|
1215
|
+
if (existingSavedComment) {
|
|
1216
|
+
await this.formSubmissionHandler.updateComment(this.udpFormSubmission, {
|
|
1217
|
+
sectionKey: result.sectionKey,
|
|
1218
|
+
questionKey: result.questionKey,
|
|
1219
|
+
value: valueToPersist,
|
|
1220
|
+
commentId: result.commentId,
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
else {
|
|
1224
|
+
await this.formSubmissionHandler.addComment(this.udpFormSubmission, {
|
|
1225
|
+
sectionKey: result.sectionKey,
|
|
1226
|
+
questionKey: result.questionKey,
|
|
1227
|
+
value: valueToPersist,
|
|
1228
|
+
commentId: result.commentId,
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
await this.refreshSubmissionAndSyncState();
|
|
1232
|
+
enqueueSnackbarSuccess(existingSavedComment ? 'Comment updated.' : 'Comment added.', this.enqueueSnackbar);
|
|
1233
|
+
}
|
|
1234
|
+
catch (error) {
|
|
1235
|
+
enqueueSnackbarError(existingSavedComment ? 'Failed to update comment.' : 'Failed to add comment.', this.enqueueSnackbar);
|
|
1236
|
+
throw error;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1174
1239
|
}
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
const draftFromSaved = Object.assign(Object.assign({}, saved), { isDraftComment: true, timestamp: null });
|
|
1185
|
-
// Add this draft at the front; keep saved comment intact so content doesn't disappear.
|
|
1186
|
-
newInitialValues[sectionName][questionName].draftComments = [draftFromSaved, ...draftsArr];
|
|
1187
|
-
newInitialValues[sectionName][questionName].comments = commentsArr;
|
|
1188
|
-
break;
|
|
1189
|
-
}
|
|
1190
|
-
case 'delete': {
|
|
1191
|
-
// mark the comment as deleted and clear its value, then persist.
|
|
1192
|
-
newInitialValues[sectionName][questionName].comments = commentsArr.map(c => {
|
|
1193
|
-
if (c.commentId === commentId) {
|
|
1194
|
-
return Object.assign(Object.assign({}, c), { isDeleted: true, value: '', editedTimestamp: new Date().toISOString() });
|
|
1240
|
+
else if (type === 'delete') {
|
|
1241
|
+
try {
|
|
1242
|
+
await this.formSubmissionHandler.deleteComment(this.udpFormSubmission, {
|
|
1243
|
+
sectionKey: result.sectionKey,
|
|
1244
|
+
questionKey: result.questionKey,
|
|
1245
|
+
commentId: result.commentId,
|
|
1246
|
+
});
|
|
1247
|
+
await this.refreshSubmissionAndSyncState();
|
|
1248
|
+
enqueueSnackbarSuccess('Comment deleted.', this.enqueueSnackbar);
|
|
1195
1249
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1250
|
+
catch (error) {
|
|
1251
|
+
enqueueSnackbarError('Failed to delete comment.', this.enqueueSnackbar);
|
|
1252
|
+
throw error;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1199
1255
|
}
|
|
1200
|
-
|
|
1201
|
-
//
|
|
1202
|
-
|
|
1203
|
-
|
|
1256
|
+
else {
|
|
1257
|
+
// Not submitted yet:
|
|
1258
|
+
// - public: persist nothing beyond local state (submission is created on submit)
|
|
1259
|
+
// - private + owner: comment edits are persisted via standard submission save
|
|
1260
|
+
if (this.isPublic) {
|
|
1261
|
+
this.currentValues = Object.assign({}, newCurrentValues);
|
|
1262
|
+
}
|
|
1263
|
+
else {
|
|
1264
|
+
await this.handleManualSave(newCurrentValues);
|
|
1265
|
+
}
|
|
1204
1266
|
}
|
|
1205
1267
|
}
|
|
1206
|
-
// if it's a save or delete action, persist immediately
|
|
1207
|
-
if (type === 'save' || type === 'delete') {
|
|
1208
|
-
this.udpFormSubmission.data.submissionResponseData = Object.assign({}, newInitialValues);
|
|
1209
|
-
await this.handleCommmentUpdate(newInitialValues);
|
|
1210
|
-
}
|
|
1211
1268
|
else {
|
|
1212
|
-
|
|
1213
|
-
this.
|
|
1269
|
+
// Non-persisting actions update UI state only
|
|
1270
|
+
this.currentValues = Object.assign({}, newCurrentValues);
|
|
1214
1271
|
}
|
|
1215
1272
|
}
|
|
1216
1273
|
catch (error) {
|
|
@@ -1223,7 +1280,6 @@ const UdpFormsRenderer = class {
|
|
|
1223
1280
|
async loadFollowUpForms(sectionKey, questionKey) {
|
|
1224
1281
|
var _a;
|
|
1225
1282
|
this.isLoading = true;
|
|
1226
|
-
this.saveErrorMessage = '';
|
|
1227
1283
|
try {
|
|
1228
1284
|
const response = await udpFormApiUtils.fetchLatestForms(this.followUpSideSheetListPageNumber, this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE, [{ searchField: 'type', searchOperator: '=', searchValue: enums.UdpFormsTypeEnum.FollowUp }], { sortDirection: 'DESC', sortColumn: 'lastModifiedOn' });
|
|
1229
1285
|
const data = response.data;
|
|
@@ -1235,7 +1291,6 @@ const UdpFormsRenderer = class {
|
|
|
1235
1291
|
}
|
|
1236
1292
|
catch (err) {
|
|
1237
1293
|
console.error('Failed to follow up form.', err);
|
|
1238
|
-
this.saveErrorMessage = 'Failed to follow up forms.';
|
|
1239
1294
|
}
|
|
1240
1295
|
finally {
|
|
1241
1296
|
this.isLoading = false;
|
|
@@ -1253,27 +1308,30 @@ const UdpFormsRenderer = class {
|
|
|
1253
1308
|
await this.loadFollowUpForms(this.followUpParentSectionKey, this.followUpParentQuestionKey);
|
|
1254
1309
|
}
|
|
1255
1310
|
renderFollowUpSideSheet() {
|
|
1311
|
+
if (this.isPublic)
|
|
1312
|
+
return null;
|
|
1256
1313
|
return (index.h("udp-side-sheet", { title: "Link a Follow Up Form", open: this.isFollowUpFormsSideSheetOpen, onUdpSideSheetClose: () => this.handleSideSheetClose(), position: "right", width: "md" }, this.isLoading && this.isFollowUpFormsSideSheetOpen && index.h("udp-linear-loader", null), index.h("udp-list-renderer", { itemComponent: "udp-forms-follow-up-list-card", data: this.sideSheetFollowUpFormsList, pagination: true, isServerSide: true, isLoading: this.isLoading, itemsPerPage: this.FOLLOW_UP_SIDE_SHEET_PAGE_SIZE, currentPage: this.followUpSideSheetListPageNumber, totalItems: this.followUpSideSheetTotalItems, onPageChange: e => this.handleSideSheetPageChange(e.detail), componentDataMap: this.componentMap, spacing: 'md' })));
|
|
1257
1314
|
}
|
|
1258
1315
|
isShowManualSaveIcon() {
|
|
1259
|
-
|
|
1260
|
-
|
|
1316
|
+
if (this.isPublic)
|
|
1317
|
+
return false; // cannot save a form in public mode. can only submit.
|
|
1318
|
+
// NOTE: repeatable section add/delete sets hasUnsavedChanges=true, but udp-forms-ui likely
|
|
1319
|
+
// also emits a formDirtyChange event that can override the value back to false.
|
|
1320
|
+
// Keep the save icon sticky once we've detected any unsaved change.
|
|
1321
|
+
const showSaveIcon = !!this.clientUserInfo.id && (this.hasUnsavedChanges);
|
|
1261
1322
|
return showSaveIcon;
|
|
1262
1323
|
}
|
|
1263
1324
|
;
|
|
1264
1325
|
get isReadOnlyMode() {
|
|
1265
|
-
return this.isSubmitted || this.udpFormSubmission.unityUserId !== this.
|
|
1266
|
-
}
|
|
1267
|
-
get isShowCommentUI() {
|
|
1268
|
-
return this.isSubmitted;
|
|
1326
|
+
return this.isSubmitted || this.udpFormSubmission.unityUserId !== this.clientUserInfo.id;
|
|
1269
1327
|
}
|
|
1270
1328
|
render() {
|
|
1271
|
-
return (index.h("div", { key: '
|
|
1329
|
+
return (index.h("div", { key: '37ec47fc7f3ecec70ba7ca3e12717789285be5d8', class: "forms-renderer-container", style: this.isLoading ? { minHeight: '100vh' } : {} }, this.renderFollowUpSideSheet(), index.h("udp-forms-ui", { udpForm: this.udpForm, currentValues: this.currentValues, udpFormSubmission: this.udpFormSubmission, submitSuccessful: this.submitSuccessful, isSaving: this.isSaving,
|
|
1330
|
+
// saveErrorMessage={this.saveErrorMessage}
|
|
1272
1331
|
// showAutoSaveStatus={this.formSubmissionHandler.supportsAutoSave() && !!this.userId}
|
|
1273
|
-
readonly: this.isReadOnlyMode, handleSubmit: this.handleSubmit.bind(this), handleSave: values => Promise.resolve(this.debouncedManualSave(values)), handleChange: this.handleFormChange, handleAction: this.triggerAction, handleFinish: this.handleFinish,
|
|
1332
|
+
readonly: this.isReadOnlyMode, handleSubmit: this.handleSubmit.bind(this), handleSave: values => Promise.resolve(this.debouncedManualSave(values)), 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 })));
|
|
1274
1333
|
}
|
|
1275
1334
|
get el() { return index.getElement(this); }
|
|
1276
1335
|
};
|
|
1277
1336
|
|
|
1278
1337
|
exports.udp_forms_renderer = UdpFormsRenderer;
|
|
1279
|
-
//# sourceMappingURL=udp-forms-renderer.entry.cjs.js.map
|