udp-stencil-component-library 26.9.0-beta.2 → 26.9.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{SearchBuilder-CyR7DyPc.js → SearchBuilder-Ca9_ur9o.js} +1 -1
- package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +8 -8
- package/dist/cjs/address-search_6.cjs.entry.js +19 -19
- package/dist/cjs/advanced-search_12.cjs.entry.js +20 -20
- package/dist/cjs/{ag-grid-base_65.cjs.entry.js → ag-grid-base_66.cjs.entry.js} +458 -183
- package/dist/cjs/ambient-template-grid.cjs.entry.js +20 -20
- package/dist/cjs/api-method-instance-grid.cjs.entry.js +11 -10
- package/dist/cjs/{apiMethodInstance-D65NIw8S.js → apiMethodInstance-DTeNcmNq.js} +3 -32
- package/dist/cjs/{apiUtils-0pkNuvqf.js → apiUtils-tzjwn5aw.js} +29 -28
- package/dist/cjs/app-bar.cjs.entry.js +1 -1
- package/dist/cjs/{catalog-store-B_YMkXRh.js → catalog-store-CzG8hINB.js} +1 -1
- package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
- package/dist/cjs/check-box.cjs.entry.js +2 -2
- package/dist/cjs/chip-section.cjs.entry.js +2 -2
- package/dist/cjs/{codecs-ClSB_OaD.js → codecs-Dyka7kpz.js} +407 -7
- package/dist/cjs/{configService-N6ke1_s4.js → configService-DbfLqId2.js} +2 -6
- package/dist/cjs/{configureUdpColumnMods-BT7UbQPh.js → configureUdpColumnMods-Cqxn_OaF.js} +23 -7
- package/dist/cjs/convertBackendTypeToAgGridType-CZEQIj7A.js +33 -0
- package/dist/cjs/{createAzureMapsProviders-b1fKbjhG.js → createAzureMapsProviders-CURScysk.js} +14 -0
- package/dist/cjs/custom-button.cjs.entry.js +1 -1
- package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
- package/dist/cjs/domain-table-snapshot-DXs9ceFE.js +339 -0
- package/dist/cjs/extraFields-CNvT2Qyf.js +109 -0
- package/dist/cjs/extraFieldsHelper-Clk9u_FW.js +211 -0
- package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
- package/dist/cjs/file-upload_2.cjs.entry.js +7 -7
- package/dist/cjs/filter-conditions_7.cjs.entry.js +7 -7
- package/dist/cjs/{fluent-icons-DLY_DCOh.js → fluent-icons-Cs6J6uVm.js} +20 -0
- package/dist/cjs/form-metadata-display_2.cjs.entry.js +3 -3
- package/dist/cjs/getCurrentApiCatalogId-D7xHCEzs.js +7 -0
- package/dist/cjs/icon-grid.cjs.entry.js +2 -2
- package/dist/cjs/image-upload_8.cjs.entry.js +7 -7
- package/dist/cjs/index-CZB9dMeB.js +12 -8
- package/dist/cjs/index.cjs.js +26 -23
- package/dist/cjs/{load-icons-BAAH3v1o.js → load-icons-JeRXx4O7.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/logical-search-indicator.cjs.entry.js +1 -1
- package/dist/cjs/lookupHelper-DACjrAcP.js +694 -0
- package/dist/cjs/map-component_2.cjs.entry.js +2 -2
- package/dist/cjs/primary-action-header_2.cjs.entry.js +4 -4
- package/dist/cjs/question-configs-renderer_4.cjs.entry.js +15 -15
- package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
- package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +3 -3
- package/dist/cjs/rich-text-schema-Dhani4hA.js +58 -0
- package/dist/cjs/search-method-grid.cjs.entry.js +121 -264
- package/dist/cjs/server-side-grid.cjs.entry.js +85 -3
- package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
- package/dist/cjs/simple-card.cjs.entry.js +1 -1
- package/dist/cjs/status-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/{status-renderer-9CQ-hhq8.js → status-renderer-be4boc5r.js} +83 -55
- package/dist/cjs/stencil-chip.cjs.entry.js +2 -2
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/cjs/stencil-toggle.cjs.entry.js +4 -4
- package/dist/cjs/text-field_2.cjs.entry.js +7 -7
- package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
- package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +102 -5
- package/dist/cjs/udp-advanced-search-field-picker_3.cjs.entry.js +3 -3
- package/dist/cjs/udp-ag-area-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-bar-chart_4.cjs.entry.js +5 -5
- package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +2 -2
- package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
- package/dist/cjs/udp-attachment-list.cjs.entry.js +1 -1
- package/dist/cjs/udp-bar-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-base.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -1
- package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -1
- package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
- package/dist/cjs/udp-card_6.cjs.entry.js +7 -7
- package/dist/cjs/udp-charts-example.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
- package/dist/cjs/udp-container-query.cjs.entry.js +2 -2
- package/dist/cjs/udp-container.cjs.entry.js +2 -2
- package/dist/cjs/{udp-detail-list_9.cjs.entry.js → udp-detail-list_10.cjs.entry.js} +606 -73
- package/dist/cjs/{udp-drive-utils-DM1l6XMm.js → udp-drive-utils-BuTLI35n.js} +1 -1
- package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-icon-picker.cjs.entry.js +2 -2
- package/dist/cjs/udp-fluent-inline-edit_5.cjs.entry.js +494 -45
- package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
- package/dist/cjs/udp-fluent-list-item_2.cjs.entry.js +3 -3
- package/dist/cjs/{udp-form-api-utils-zMPk_IT1.js → udp-form-api-utils-ZY88igvH.js} +1 -1
- package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-builder.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +2 -2
- package/dist/cjs/udp-forms-list-card.cjs.entry.js +4 -4
- package/dist/cjs/udp-forms-list.cjs.entry.js +3 -3
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +4 -4
- package/dist/cjs/udp-import-sheet.cjs.entry.js +244 -0
- package/dist/cjs/udp-kpi-card.cjs.entry.js +1 -1
- package/dist/cjs/udp-kpi-cards.cjs.entry.js +2 -2
- package/dist/cjs/udp-map.cjs.entry.js +3 -3
- package/dist/cjs/udp-menu.cjs.entry.js +1 -1
- package/dist/cjs/udp-page.cjs.entry.js +1 -1
- package/dist/cjs/udp-question-form-builder.cjs.entry.js +35 -258
- package/dist/cjs/udp-rich-text-field.cjs.entry.js +28 -53
- package/dist/cjs/udp-rich-text.cjs.entry.js +61 -0
- package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-sidebar-layout.cjs.entry.js +3 -3
- package/dist/cjs/udp-skeleton-loading.cjs.entry.js +1 -1
- package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-actions.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-content.cjs.entry.js +2 -2
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-nav.cjs.entry.js +1 -1
- package/dist/cjs/udp-tab.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-connector.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-dot.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/udp-timeline-separator.cjs.entry.js +1 -1
- package/dist/cjs/udp-timeline.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline-connector.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline-dot.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/udp-vertical-timeline-separator.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-timeline.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
- package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
- package/dist/cjs/valueFormatters-CUoOypK3.js +17 -0
- package/dist/collection/__mocks__/jest-setup.js +3 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/advanced-search/advanced-search-grouped.js +2 -2
- package/dist/collection/components/advanced-search/advanced-search.js +2 -2
- package/dist/collection/components/advanced-search/filter-conditions/filter-conditions.js +1 -1
- package/dist/collection/components/advanced-search/ui/logical-search-indicator/logical-search-indicator.js +1 -1
- package/dist/collection/components/advanced-search-builder/field-picker/field-picker.js +1 -1
- package/dist/collection/components/advanced-search-builder/field-picker-tree/field-picker-tree.js +2 -2
- package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +125 -2
- package/dist/collection/components/attachment-list/udp-attachment-list.js +1 -1
- package/dist/collection/components/buttons/icon-button/function-button/udp-function-button.js +1 -1
- package/dist/collection/components/buttons/icon-button/primary-button/custom-button.js +1 -1
- package/dist/collection/components/buttons/icon-button/radio-button/udp-radio-button.js +1 -1
- package/dist/collection/components/buttons/udp-button/udp-button.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-base.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-day.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-month.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-week.js +1 -1
- package/dist/collection/components/calendar/udp-calendar-year.js +1 -1
- package/dist/collection/components/charts/chart-kpi/chart-kpi.js +1 -1
- package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +2 -2
- package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +2 -2
- package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +1 -1
- package/dist/collection/components/charts/udp-charts-example.js +1 -1
- package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +1 -1
- package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +1 -1
- package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +1 -1
- package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +1 -1
- package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +1 -1
- package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +1 -1
- package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +1 -1
- package/dist/collection/components/data-display/badge/udp-badge.js +1 -1
- package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +1 -1
- package/dist/collection/components/data-display/cards/udp-card/udp-card.js +3 -3
- package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +1 -1
- package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +2 -2
- package/dist/collection/components/data-display/chips/udp-chip.js +1 -1
- package/dist/collection/components/data-display/detail-list-item/udp-detail-list-item.js +1 -1
- package/dist/collection/components/data-display/divider/udp-divider.js +1 -1
- package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +1 -1
- package/dist/collection/components/data-display/headers/udp-column-header.js +1 -1
- package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +1 -1
- package/dist/collection/components/data-display/hint-panel/hint-panel.js +1 -1
- package/dist/collection/components/data-display/kpi/kpi-list.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-card.js +1 -1
- package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
- package/dist/collection/components/data-display/list-item/list-item.js +2 -2
- package/dist/collection/components/data-display/pop-over/udp-pop-over.js +1 -1
- package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +1 -1
- package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +2 -2
- package/dist/collection/components/data-display/simple-card/simple-card.js +1 -1
- package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +2 -2
- package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +1 -1
- package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +1 -1
- package/dist/collection/components/dialogs/udp-dialog.js +1 -1
- package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +9 -9
- package/dist/collection/components/export/udp-export-sheet/udp-export-sheet.css +0 -1
- package/dist/collection/components/export/udp-export-sheet/udp-export-sheet.js +10 -5
- package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +1 -1
- package/dist/collection/components/feedback/udp-notification/udp-notification.js +2 -2
- package/dist/collection/components/fluent-ui/autocomplete/udp-autocomplete.js +8 -8
- package/dist/collection/components/fluent-ui/avatar/udp-fluent-avatar.js +1 -1
- package/dist/collection/components/fluent-ui/badge/udp-fluent-badge.js +1 -1
- package/dist/collection/components/fluent-ui/button/udp-fluent-button.css +10 -0
- package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +26 -1
- package/dist/collection/components/fluent-ui/card/udp-fluent-card.js +3 -3
- package/dist/collection/components/fluent-ui/checkbox/udp-fluent-checkbox.js +1 -1
- package/dist/collection/components/fluent-ui/compound-button/udp-compound-button.js +1 -1
- package/dist/collection/components/fluent-ui/counter-badge/udp-fluent-counter-badge.js +1 -1
- package/dist/collection/components/fluent-ui/date-time-input/udp-date-time-input.js +1 -1
- package/dist/collection/components/fluent-ui/dialog/udp-fluent-dialog.js +1 -1
- package/dist/collection/components/fluent-ui/divider/udp-fluent-divider.js +1 -1
- package/dist/collection/components/fluent-ui/domain-table-input/domain-table-snapshot.js +78 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.css +67 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.js +871 -0
- package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.js +1 -0
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.css +4 -0
- package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +26 -1
- package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +28 -10
- package/dist/collection/components/fluent-ui/empty-state/udp-empty-state.js +1 -1
- package/dist/collection/components/fluent-ui/file-input/udp-fluent-file-input.js +4 -4
- package/dist/collection/components/fluent-ui/icon/icon-grid/icon-grid.js +1 -1
- package/dist/collection/components/fluent-ui/icon/udp-fluent-icon.js +1 -1
- package/dist/collection/components/fluent-ui/icon-picker/udp-fluent-icon-picker.js +2 -2
- package/dist/collection/components/fluent-ui/image/udp-fluent-image.js +1 -1
- package/dist/collection/components/fluent-ui/inline-edit/udp-fluent-inline-edit.js +2 -2
- package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
- package/dist/collection/components/fluent-ui/list/udp-list.js +1 -1
- package/dist/collection/components/fluent-ui/list-input/udp-fluent-list-input.js +1 -1
- package/dist/collection/components/fluent-ui/list-item/udp-list-item.js +2 -2
- package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
- package/dist/collection/components/fluent-ui/menu/udp-fluent-menu.js +2 -2
- package/dist/collection/components/fluent-ui/message-bar/udp-message-bar.js +1 -1
- package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.js +1 -1
- package/dist/collection/components/fluent-ui/popover/udp-popover.js +4 -4
- package/dist/collection/components/fluent-ui/progress-bar/udp-progress-bar.js +1 -1
- package/dist/collection/components/fluent-ui/radio-group/udp-fluent-radio-group.js +21 -8
- package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.css +9 -0
- package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.js +81 -0
- package/dist/collection/components/fluent-ui/rich-text-field/rich-text-content.css +97 -0
- package/dist/collection/components/fluent-ui/rich-text-field/rich-text-schema.js +39 -0
- package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.css +1 -92
- package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.js +12 -39
- package/dist/collection/components/fluent-ui/search-input/udp-search-input.css +6 -0
- package/dist/collection/components/fluent-ui/search-input/udp-search-input.js +3 -3
- package/dist/collection/components/fluent-ui/signature-input/udp-fluent-signature-input.js +4 -4
- package/dist/collection/components/fluent-ui/slider/udp-slider.js +1 -1
- package/dist/collection/components/fluent-ui/spinner/udp-spinner.js +1 -1
- package/dist/collection/components/fluent-ui/swatch-picker/udp-swatch-picker.js +1 -1
- package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
- package/dist/collection/components/fluent-ui/table-input/table-aggregates.js +57 -0
- package/dist/collection/components/fluent-ui/table-input/udp-fluent-table-input.js +12 -56
- package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.js +13 -2
- package/dist/collection/components/fluent-ui/text/udp-text.js +1 -1
- package/dist/collection/components/fluent-ui/text-input/udp-fluent-text-input.js +2 -2
- package/dist/collection/components/fluent-ui/textarea/udp-textarea.js +2 -2
- package/dist/collection/components/fluent-ui/time-input/udp-time-input.js +7 -2
- package/dist/collection/components/fluent-ui/toggle-button/udp-fluent-toggle-button.js +1 -1
- package/dist/collection/components/fluent-ui/tooltip/udp-tooltip.js +2 -2
- package/dist/collection/components/fluent-ui/tree/udp-tree.js +1 -1
- package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +1 -1
- package/dist/collection/components/forms/edit-view-form/edit-view-form.js +2 -2
- package/dist/collection/components/forms/form/stencil-form.js +1 -1
- package/dist/collection/components/forms/save-view-form/save-view-form.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +3 -3
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/location-renderer/location-renderer.js +6 -6
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +7 -7
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/table-columns-renderer/table-columns-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +4 -4
- package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +2 -2
- package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +1 -1
- package/dist/collection/components/forms/udp-forms/udp-question/table-input/table-input.js +1 -1
- package/dist/collection/components/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.js +200 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/configure-question-drawer.js +7 -1
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.js +309 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/TableConfig.js +32 -1
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.css +50 -0
- package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.js +33 -3
- package/dist/collection/components/forms/udp-question-form/builder/udp-question-form-builder.js +7 -1
- package/dist/collection/components/forms/udp-question-form/builder/utils/builder-api.js +85 -0
- package/dist/collection/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.js +9 -1
- package/dist/collection/components/forms/udp-question-form/core/field-properties.js +6 -1
- package/dist/collection/components/forms/udp-question-form/core/validation/intrinsic.js +52 -3
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/codecs.js +10 -4
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.js +50 -0
- package/dist/collection/components/forms/udp-question-form/renderer/runtime/index.js +1 -0
- package/dist/collection/components/forms/udp-question-form/renderer/udp-question-form-renderer.js +62 -16
- package/dist/collection/components/forms/udp-question-form/renderer/ui/adapters/udp-question-tally-adapter.js +1 -1
- package/dist/collection/components/forms/udp-question-form/renderer/ui/form-shell.js +2 -1
- package/dist/collection/components/forms/udp-question-form/renderer/ui/question-renderer.js +7 -3
- package/dist/collection/components/forms/udp-question-form/renderer/ui/question-view-renderer.js +17 -11
- package/dist/collection/components/forms/udp-question-form/version-drawer/udp-form-version-drawer.js +1 -1
- package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +16 -16
- package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -2
- package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
- package/dist/collection/components/grid/new-grid/ag-grid-base.css +7 -0
- package/dist/collection/components/grid/new-grid/ag-grid-base.js +13 -4
- package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +27 -3
- package/dist/collection/components/grid/new-grid/client-side-grid.js +2 -2
- package/dist/collection/components/grid/new-grid/datasources/searchMethodDatasource.js +20 -6
- package/dist/collection/components/grid/new-grid/gridFunctions/advancedSearch.js +3 -2
- package/dist/collection/components/grid/new-grid/gridFunctions/savedViews.js +7 -5
- package/dist/collection/components/grid/new-grid/gridFunctions/udpExport.js +12 -1
- package/dist/collection/components/grid/new-grid/helperFunctions/buildSearchObject.js +17 -16
- package/dist/collection/components/grid/new-grid/helperFunctions/configureUdpColumnMods.js +23 -7
- package/dist/collection/components/grid/new-grid/helperFunctions/domainRowsHelper.js +177 -0
- package/dist/collection/components/grid/new-grid/helperFunctions/extraFieldsHelper.js +203 -0
- package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +256 -16
- package/dist/collection/components/grid/new-grid/search-method-grid.js +124 -11
- package/dist/collection/components/grid/new-grid/server-side-grid.js +107 -4
- package/dist/collection/components/grid/renderers/actions-renderer.js +83 -55
- package/dist/collection/components/grid/renderers/input-renderer.js +66 -0
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
- package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +3 -3
- package/dist/collection/components/import/udp-import-sheet/udp-import-sheet.css +38 -0
- package/dist/collection/components/import/udp-import-sheet/udp-import-sheet.js +425 -0
- package/dist/collection/components/inputs/address-search/address-search.js +3 -3
- package/dist/collection/components/inputs/checkbox/check-box.js +2 -2
- package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +2 -2
- package/dist/collection/components/inputs/date-selector/udp-date-selector.js +3 -3
- package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +3 -3
- package/dist/collection/components/inputs/file-upload/file-upload.js +4 -4
- package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +1 -1
- package/dist/collection/components/inputs/image-upload/image-upload.js +1 -1
- package/dist/collection/components/inputs/numeric-field/numeric-field.js +3 -3
- package/dist/collection/components/inputs/signature-input/signature-input.js +2 -2
- package/dist/collection/components/inputs/tally/tally.js +2 -2
- package/dist/collection/components/inputs/text-area/text-area.js +3 -3
- package/dist/collection/components/inputs/text-field/text-field.js +3 -3
- package/dist/collection/components/inputs/time-selector/udp-time-selector.js +3 -3
- package/dist/collection/components/inputs/toggle/stencil-toggle.js +4 -4
- package/dist/collection/components/inputs/udp-selector/udp-selector.js +4 -4
- package/dist/collection/components/layout/primary-action-header/udp-primary-action-header.js +1 -1
- package/dist/collection/components/layout/udp-container/udp-container.js +2 -2
- package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -2
- package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
- package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
- package/dist/collection/components/layout/udp-page/udp-page.js +1 -1
- package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.js +3 -3
- package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
- package/dist/collection/components/layout/udp-vertical-spacer.js +1 -1
- package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
- package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
- package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -1
- package/dist/collection/components/map/udp-map/map-component.js +1 -1
- package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -3
- package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
- package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -1
- package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -2
- package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -1
- package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +2 -2
- package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -1
- package/dist/collection/components/map/udp-map/udp-map.js +3 -3
- package/dist/collection/components/menu/menu-item/udp-menu-item.js +1 -1
- package/dist/collection/components/menu/udp-menu.js +1 -1
- package/dist/collection/components/new-form/field/udp-field.js +1 -1
- package/dist/collection/components/new-form/form/udp-form-component.js +2 -2
- package/dist/collection/components/stepper/udp-stepper-actions/udp-stepper-actions.js +1 -1
- package/dist/collection/components/stepper/udp-stepper-content/udp-stepper-content.js +2 -2
- package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
- package/dist/collection/components/stepper/udp-stepper-nav/udp-stepper-nav.js +1 -1
- package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -2
- package/dist/collection/components/tabs/tab/udp-tab.js +1 -1
- package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +1 -2
- package/dist/collection/components/timeline/udp-timeline-connector.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-dot.js +1 -1
- package/dist/collection/components/timeline/udp-timeline-item.js +2 -2
- package/dist/collection/components/timeline/udp-timeline-separator.js +1 -1
- package/dist/collection/components/timeline/udp-timeline.js +1 -1
- package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -1
- package/dist/collection/components/util/ghost-render/ghost-render.js +1 -1
- package/dist/collection/components/util/lazy-loader/udp-lazy-loader.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-connector.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-dot.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-item.js +2 -2
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline-separator.js +1 -1
- package/dist/collection/components/vertical-timeline/udp-vertical-timeline.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -1
- package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -1
- package/dist/collection/icons/fluent-icons.js +16 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/store/execution-store.js +6 -5
- package/dist/collection/test-pages/test-components-page.js +28 -28
- package/dist/collection/test-pages/test-form.js +4 -4
- package/dist/collection/udp-utilities/api-config/configService.js +0 -4
- package/dist/collection/udp-utilities/extra-fields/extraFields.js +94 -0
- package/dist/collection/udp-utilities/extra-fields/index.js +1 -0
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
- package/dist/components/add-map-feature-popup2.js +1 -1
- package/dist/components/address-search2.js +1 -1
- package/dist/components/advanced-search-grouped2.js +1 -1
- package/dist/components/advanced-search2.js +1 -1
- package/dist/components/ag-grid-base2.js +1 -1
- package/dist/components/ambient-template-grid.js +1 -1
- package/dist/components/api-method-instance-grid.js +1 -1
- package/dist/components/apiMethodInstance.js +1 -1
- package/dist/components/apiUtils.js +1 -1
- package/dist/components/app-bar.js +1 -1
- package/dist/components/chart-kpi2.js +1 -1
- package/dist/components/check-box.js +1 -1
- package/dist/components/chip-section.js +1 -1
- package/dist/components/client-side-grid2.js +1 -1
- package/dist/components/configService.js +1 -1
- package/dist/components/configureUdpColumnMods.js +1 -1
- package/dist/components/convertBackendTypeToAgGridType.js +1 -0
- package/dist/components/custom-button2.js +1 -1
- package/dist/components/edit-view-form.js +1 -1
- package/dist/components/extraFields.js +1 -0
- package/dist/components/feature-details-card2.js +1 -1
- package/dist/components/feature-details-popup2.js +1 -1
- package/dist/components/field-picker-tree.js +1 -1
- package/dist/components/field-picker.js +1 -1
- package/dist/components/file-upload-renderer2.js +1 -1
- package/dist/components/file-upload2.js +1 -1
- package/dist/components/filter-conditions2.js +1 -1
- package/dist/components/fluent-icons.js +1 -1
- package/dist/components/form-metadata-display-renderer2.js +1 -1
- package/dist/components/form-metadata-display2.js +1 -1
- package/dist/components/getCachedAzureMapsProviders.js +1 -1
- package/dist/components/ghost-render2.js +1 -1
- package/dist/components/grid-primary-bar2.js +1 -1
- package/dist/components/hint-panel2.js +1 -1
- package/dist/components/icon-grid2.js +1 -1
- package/dist/components/image-upload2.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kpi-list2.js +1 -1
- package/dist/components/list-item.js +1 -1
- package/dist/components/list-options-renderer2.js +1 -1
- package/dist/components/location-renderer2.js +1 -1
- package/dist/components/logical-search-indicator.js +1 -1
- package/dist/components/lookup.js +1 -0
- package/dist/components/map-component2.js +1 -1
- package/dist/components/map-toolbar2.js +1 -1
- package/dist/components/numeric-field2.js +1 -1
- package/dist/components/primary-action-header2.js +1 -1
- package/dist/components/question-configs-renderer2.js +1 -1
- package/dist/components/resource-timeline-calendar.js +1 -1
- package/dist/components/resource-timeline-primary-bar2.js +1 -1
- package/dist/components/rich-text-schema.js +1 -0
- package/dist/components/save-view-form.js +1 -1
- package/dist/components/search-list-item2.js +1 -1
- package/dist/components/search-method-grid2.js +1 -1
- package/dist/components/section-configs-renderer2.js +1 -1
- package/dist/components/select-layer-popup2.js +1 -1
- package/dist/components/server-side-grid2.js +1 -1
- package/dist/components/side-sheet-container2.js +1 -1
- package/dist/components/side-sheet2.js +1 -1
- package/dist/components/signature-input2.js +1 -1
- package/dist/components/signature-renderer2.js +1 -1
- package/dist/components/simple-card.js +1 -1
- package/dist/components/split-line-popup2.js +1 -1
- package/dist/components/status-chip2.js +1 -1
- package/dist/components/status-renderer.js +1 -1
- package/dist/components/stencil-chip2.js +1 -1
- package/dist/components/stencil-form2.js +1 -1
- package/dist/components/stencil-toggle2.js +1 -1
- package/dist/components/table-aggregates.js +1 -0
- package/dist/components/table-columns-renderer2.js +1 -1
- package/dist/components/table-input2.js +1 -1
- package/dist/components/tally.js +1 -1
- package/dist/components/test-components-page.js +1 -1
- package/dist/components/test-form2.js +1 -1
- package/dist/components/text-area2.js +1 -1
- package/dist/components/text-field2.js +1 -1
- package/dist/components/text-input-renderer2.js +1 -1
- package/dist/components/types.js +1 -1
- package/dist/components/udp-adornment2.js +1 -1
- package/dist/components/udp-advanced-search-builder.js +1 -1
- package/dist/components/udp-ag-area-chart.js +1 -1
- package/dist/components/udp-ag-bar-chart2.js +1 -1
- package/dist/components/udp-ag-bubble-chart.js +1 -1
- package/dist/components/udp-ag-combo-chart.js +1 -1
- package/dist/components/udp-ag-donut-chart.js +1 -1
- package/dist/components/udp-ag-line-chart.js +1 -1
- package/dist/components/udp-ag-pie-chart.js +1 -1
- package/dist/components/udp-ag-scatter-chart.js +1 -1
- package/dist/components/udp-ambient-card2.js +1 -1
- package/dist/components/udp-ambient-tool-tip2.js +1 -1
- package/dist/components/udp-attachment-list.js +1 -1
- package/dist/components/udp-autocomplete2.js +1 -1
- package/dist/components/udp-avatar2.js +1 -1
- package/dist/components/udp-badge2.js +1 -1
- package/dist/components/udp-bar-chart.js +1 -1
- package/dist/components/udp-button2.js +1 -1
- package/dist/components/udp-calendar-base2.js +1 -1
- package/dist/components/udp-calendar-day.js +1 -1
- package/dist/components/udp-calendar-month.js +1 -1
- package/dist/components/udp-calendar-week.js +1 -1
- package/dist/components/udp-calendar-year.js +1 -1
- package/dist/components/udp-card-action-area.js +1 -1
- package/dist/components/udp-card-actions2.js +1 -1
- package/dist/components/udp-card-content2.js +1 -1
- package/dist/components/udp-card-header2.js +1 -1
- package/dist/components/udp-card-media2.js +1 -1
- package/dist/components/udp-card2.js +1 -1
- package/dist/components/udp-charts-example.js +1 -1
- package/dist/components/udp-chip2.js +1 -1
- package/dist/components/udp-column-header2.js +1 -1
- package/dist/components/udp-compound-button2.js +1 -1
- package/dist/components/udp-container-query-grid-item.js +1 -1
- package/dist/components/udp-container-query-grid2.js +1 -1
- package/dist/components/udp-container-query2.js +1 -1
- package/dist/components/udp-container2.js +1 -1
- package/dist/components/udp-date-range-selector2.js +1 -1
- package/dist/components/udp-date-selector2.js +1 -1
- package/dist/components/udp-date-time-input2.js +1 -1
- package/dist/components/udp-datetime-selector2.js +1 -1
- package/dist/components/udp-detail-list-item2.js +1 -1
- package/dist/components/udp-dialog2.js +1 -1
- package/dist/components/udp-distribution-chart2.js +1 -1
- package/dist/components/udp-divider2.js +1 -1
- package/dist/components/udp-donut-chart2.js +1 -1
- package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
- package/dist/components/udp-dynamic-form.js +1 -1
- package/dist/components/udp-empty-state-display2.js +1 -1
- package/dist/components/udp-empty-state2.js +1 -1
- package/dist/components/udp-export-sheet2.js +1 -1
- package/dist/components/udp-field2.js +1 -1
- package/dist/components/udp-fluent-avatar2.js +1 -1
- package/dist/components/udp-fluent-badge2.js +1 -1
- package/dist/components/udp-fluent-button2.js +1 -1
- package/dist/components/udp-fluent-card2.js +1 -1
- package/dist/components/udp-fluent-checkbox2.js +1 -1
- package/dist/components/udp-fluent-counter-badge2.js +1 -1
- package/dist/components/udp-fluent-dialog2.js +1 -1
- package/dist/components/udp-fluent-divider2.js +1 -1
- package/dist/components/udp-fluent-domain-table-input.d.ts +11 -0
- package/dist/components/udp-fluent-domain-table-input.js +2 -0
- package/dist/components/udp-fluent-domain-table-input2.js +1 -0
- package/dist/components/udp-fluent-drawer2.js +1 -1
- package/dist/components/udp-fluent-dropdown2.js +1 -1
- package/dist/components/udp-fluent-file-input2.js +1 -1
- package/dist/components/udp-fluent-icon-picker.js +1 -1
- package/dist/components/udp-fluent-icon2.js +1 -1
- package/dist/components/udp-fluent-image2.js +1 -1
- package/dist/components/udp-fluent-inline-edit2.js +1 -1
- package/dist/components/udp-fluent-link.js +1 -1
- package/dist/components/udp-fluent-list-input2.js +1 -1
- package/dist/components/udp-fluent-location-input2.js +1 -1
- package/dist/components/udp-fluent-menu2.js +1 -1
- package/dist/components/udp-fluent-number-input.js +1 -1
- package/dist/components/udp-fluent-number-input2.js +1 -0
- package/dist/components/udp-fluent-radio-group2.js +1 -1
- package/dist/components/udp-fluent-signature-input2.js +1 -1
- package/dist/components/udp-fluent-switch2.js +1 -1
- package/dist/components/udp-fluent-table-input2.js +1 -1
- package/dist/components/udp-fluent-tablist2.js +1 -1
- package/dist/components/udp-fluent-text-input2.js +1 -1
- package/dist/components/udp-fluent-toggle-button2.js +1 -1
- package/dist/components/udp-form-component2.js +1 -1
- package/dist/components/udp-form-version-drawer2.js +1 -1
- package/dist/components/udp-forms-builder-menu2.js +1 -1
- package/dist/components/udp-forms-builder-question-item2.js +1 -1
- package/dist/components/udp-forms-builder-style-override.js +1 -1
- package/dist/components/udp-forms-follow-up-list-card.js +1 -1
- package/dist/components/udp-forms-list-card2.js +1 -1
- package/dist/components/udp-forms-list.js +1 -1
- package/dist/components/udp-forms-renderer.js +1 -1
- package/dist/components/udp-forms-ui2.js +1 -1
- package/dist/components/udp-function-button2.js +1 -1
- package/dist/components/udp-grid-loader2.js +1 -1
- package/dist/components/udp-hotlist-form2.js +1 -1
- package/dist/components/udp-import-sheet.d.ts +11 -0
- package/dist/components/udp-import-sheet.js +2 -0
- package/dist/components/udp-kpi-card2.js +1 -1
- package/dist/components/udp-kpi-cards.js +1 -1
- package/dist/components/udp-lazy-loader2.js +1 -1
- package/dist/components/udp-line-chart2.js +1 -1
- package/dist/components/udp-linear-loader2.js +1 -1
- package/dist/components/udp-list-item2.js +1 -1
- package/dist/components/udp-list2.js +1 -1
- package/dist/components/udp-map-toolbar2.js +1 -1
- package/dist/components/udp-map.js +1 -1
- package/dist/components/udp-menu-item2.js +1 -1
- package/dist/components/udp-menu.js +1 -1
- package/dist/components/udp-message-bar2.js +1 -1
- package/dist/components/udp-notification2.js +1 -1
- package/dist/components/udp-page-header2.js +1 -1
- package/dist/components/udp-page.js +1 -1
- package/dist/components/udp-pop-over-grid-action-header2.js +1 -1
- package/dist/components/udp-pop-over2.js +1 -1
- package/dist/components/udp-popover2.js +1 -1
- package/dist/components/udp-primary-action-header2.js +1 -1
- package/dist/components/udp-progress-bar2.js +1 -1
- package/dist/components/udp-question-config-fluent2.js +1 -1
- package/dist/components/udp-question-form-builder.js +1 -1
- package/dist/components/udp-question-form-renderer2.js +1 -1
- package/dist/components/udp-question-tally-adapter2.js +1 -1
- package/dist/components/udp-question2.js +1 -1
- package/dist/components/udp-radio-button2.js +1 -1
- package/dist/components/udp-rich-text-field.js +1 -1
- package/dist/components/udp-rich-text.d.ts +11 -0
- package/dist/components/udp-rich-text.js +2 -0
- package/dist/components/udp-sankey-chart.js +1 -1
- package/dist/components/udp-search-input2.js +1 -1
- package/dist/components/udp-selector2.js +1 -1
- package/dist/components/udp-side-sheet2.js +1 -1
- package/dist/components/udp-sidebar-layout2.js +1 -1
- package/dist/components/udp-skeleton-loading2.js +1 -1
- package/dist/components/udp-slider2.js +1 -1
- package/dist/components/udp-spinner2.js +1 -1
- package/dist/components/udp-split-screen.js +1 -1
- package/dist/components/udp-stepper-actions.js +1 -1
- package/dist/components/udp-stepper-content.js +1 -1
- package/dist/components/udp-stepper-demo.js +1 -1
- package/dist/components/udp-stepper-nav.js +1 -1
- package/dist/components/udp-swatch-picker2.js +1 -1
- package/dist/components/udp-tab-panel2.js +1 -1
- package/dist/components/udp-tab.js +1 -1
- package/dist/components/udp-tabs2.js +1 -1
- package/dist/components/udp-text2.js +1 -1
- package/dist/components/udp-textarea2.js +1 -1
- package/dist/components/udp-time-input2.js +1 -1
- package/dist/components/udp-time-selector2.js +1 -1
- package/dist/components/udp-timeline-connector.js +1 -1
- package/dist/components/udp-timeline-dot.js +1 -1
- package/dist/components/udp-timeline-item.js +1 -1
- package/dist/components/udp-timeline-separator.js +1 -1
- package/dist/components/udp-timeline.js +1 -1
- package/dist/components/udp-tooltip2.js +1 -1
- package/dist/components/udp-tree2.js +1 -1
- package/dist/components/udp-vertical-spacer2.js +1 -1
- package/dist/components/udp-vertical-timeline-connector.js +1 -1
- package/dist/components/udp-vertical-timeline-dot.js +1 -1
- package/dist/components/udp-vertical-timeline-item.js +1 -1
- package/dist/components/udp-vertical-timeline-separator.js +1 -1
- package/dist/components/udp-vertical-timeline.js +1 -1
- package/dist/components/udp-xy-chart2.js +1 -1
- package/dist/components/udp-xy-multi-series-chart.js +1 -1
- package/dist/components/upd-alert-banner2.js +1 -1
- package/dist/docs.json +1805 -112
- package/dist/esm/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.js} +1 -1
- package/dist/esm/add-map-feature-popup_4.entry.js +8 -8
- package/dist/esm/address-search_6.entry.js +19 -19
- package/dist/esm/advanced-search_12.entry.js +20 -20
- package/dist/esm/{ag-grid-base_65.entry.js → ag-grid-base_66.entry.js} +450 -176
- package/dist/esm/ambient-template-grid.entry.js +20 -20
- package/dist/esm/api-method-instance-grid.entry.js +10 -9
- package/dist/esm/{apiMethodInstance-BunReWfq.js → apiMethodInstance-qaGbXDNr.js} +2 -31
- package/dist/esm/{apiUtils-Cq-WuEqc.js → apiUtils-CXqsYwOQ.js} +29 -28
- package/dist/esm/app-bar.entry.js +1 -1
- package/dist/esm/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
- package/dist/esm/chart-container_3.entry.js +2 -2
- package/dist/esm/check-box.entry.js +2 -2
- package/dist/esm/chip-section.entry.js +2 -2
- package/dist/esm/{codecs-CI_fHfY1.js → codecs-BWyrM561.js} +400 -9
- package/dist/esm/{configService-D_9j963S.js → configService-CehZzjhw.js} +0 -4
- package/dist/esm/{configureUdpColumnMods-UWccWlH6.js → configureUdpColumnMods-bMO0_--H.js} +23 -7
- package/dist/esm/convertBackendTypeToAgGridType-B8xfl_wR.js +31 -0
- package/dist/esm/{createAzureMapsProviders-CLLCmr8f.js → createAzureMapsProviders-CtQryp1H.js} +13 -1
- package/dist/esm/custom-button.entry.js +1 -1
- package/dist/esm/date-time-renderer_9.entry.js +21 -21
- package/dist/esm/domain-table-snapshot-H3o5mjFB.js +331 -0
- package/dist/esm/extraFields-Cnpy_Bm7.js +97 -0
- package/dist/esm/extraFieldsHelper-CaBMA4HJ.js +205 -0
- package/dist/esm/feature-details-card_2.entry.js +5 -5
- package/dist/esm/file-upload_2.entry.js +7 -7
- package/dist/esm/filter-conditions_7.entry.js +7 -7
- package/dist/esm/{fluent-icons-pWFJyrRm.js → fluent-icons-wRyOZqj2.js} +20 -0
- package/dist/esm/form-metadata-display_2.entry.js +3 -3
- package/dist/esm/getCurrentApiCatalogId-DeurXd9l.js +5 -0
- package/dist/esm/icon-grid.entry.js +2 -2
- package/dist/esm/image-upload_8.entry.js +7 -7
- package/dist/esm/index-15aY63VA.js +12 -8
- package/dist/esm/index.js +13 -22
- package/dist/esm/{load-icons-BHSNRRRA.js → load-icons-D2ZhiHp6.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/logical-search-indicator.entry.js +1 -1
- package/dist/esm/lookupHelper-D3LSjaES.js +682 -0
- package/dist/esm/map-component_2.entry.js +2 -2
- package/dist/esm/primary-action-header_2.entry.js +4 -4
- package/dist/esm/question-configs-renderer_4.entry.js +15 -15
- package/dist/esm/resource-timeline-calendar.entry.js +1 -1
- package/dist/esm/resource-timeline-primary-bar.entry.js +3 -3
- package/dist/esm/rich-text-schema-DCUYo610.js +42 -0
- package/dist/esm/search-method-grid.entry.js +120 -263
- package/dist/esm/server-side-grid.entry.js +85 -3
- package/dist/esm/side-sheet-container.entry.js +1 -1
- package/dist/esm/simple-card.entry.js +1 -1
- package/dist/esm/status-chip_2.entry.js +2 -2
- package/dist/esm/{status-renderer-BoY7sar9.js → status-renderer-Evo0rTNU.js} +83 -55
- package/dist/esm/stencil-chip.entry.js +2 -2
- package/dist/esm/stencil-library.js +1 -1
- package/dist/esm/stencil-toggle.entry.js +4 -4
- package/dist/esm/text-field_2.entry.js +7 -7
- package/dist/esm/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
- package/dist/esm/udp-adornment.entry.js +1 -1
- package/dist/esm/udp-advanced-search-builder.entry.js +102 -5
- package/dist/esm/udp-advanced-search-field-picker_3.entry.js +3 -3
- package/dist/esm/udp-ag-area-chart.entry.js +2 -2
- package/dist/esm/udp-ag-bar-chart_4.entry.js +5 -5
- package/dist/esm/udp-ag-bubble-chart.entry.js +2 -2
- package/dist/esm/udp-ag-combo-chart.entry.js +2 -2
- package/dist/esm/udp-ag-donut-chart.entry.js +2 -2
- package/dist/esm/udp-ag-line-chart.entry.js +2 -2
- package/dist/esm/udp-ag-pie-chart.entry.js +2 -2
- package/dist/esm/udp-ag-scatter-chart.entry.js +2 -2
- package/dist/esm/udp-attachment-item_2.entry.js +1 -1
- package/dist/esm/udp-attachment-list.entry.js +1 -1
- package/dist/esm/udp-bar-chart.entry.js +1 -1
- package/dist/esm/udp-calendar-base.entry.js +1 -1
- package/dist/esm/udp-calendar-day.entry.js +1 -1
- package/dist/esm/udp-calendar-month.entry.js +1 -1
- package/dist/esm/udp-calendar-week.entry.js +1 -1
- package/dist/esm/udp-calendar-year.entry.js +1 -1
- package/dist/esm/udp-card-action-area.entry.js +1 -1
- package/dist/esm/udp-card_6.entry.js +7 -7
- package/dist/esm/udp-charts-example.entry.js +1 -1
- package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
- package/dist/esm/udp-container-query-grid.entry.js +1 -1
- package/dist/esm/udp-container-query.entry.js +2 -2
- package/dist/esm/udp-container.entry.js +2 -2
- package/dist/esm/{udp-detail-list_9.entry.js → udp-detail-list_10.entry.js} +606 -74
- package/dist/esm/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.js} +1 -1
- package/dist/esm/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/esm/udp-dynamic-form.entry.js +1 -1
- package/dist/esm/udp-fluent-icon-picker.entry.js +2 -2
- package/dist/esm/udp-fluent-inline-edit_5.entry.js +491 -42
- package/dist/esm/udp-fluent-link.entry.js +1 -1
- package/dist/esm/udp-fluent-list-item_2.entry.js +3 -3
- package/dist/esm/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
- package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/esm/udp-forms-builder.entry.js +1 -1
- package/dist/esm/udp-forms-follow-up-list-card.entry.js +2 -2
- package/dist/esm/udp-forms-list-card.entry.js +4 -4
- package/dist/esm/udp-forms-list.entry.js +3 -3
- package/dist/esm/udp-forms-renderer.entry.js +4 -4
- package/dist/esm/udp-import-sheet.entry.js +242 -0
- package/dist/esm/udp-kpi-card.entry.js +1 -1
- package/dist/esm/udp-kpi-cards.entry.js +2 -2
- package/dist/esm/udp-map.entry.js +3 -3
- package/dist/esm/udp-menu.entry.js +1 -1
- package/dist/esm/udp-page.entry.js +1 -1
- package/dist/esm/udp-question-form-builder.entry.js +28 -251
- package/dist/esm/udp-rich-text-field.entry.js +28 -39
- package/dist/esm/udp-rich-text.entry.js +59 -0
- package/dist/esm/udp-sankey-chart.entry.js +1 -1
- package/dist/esm/udp-sidebar-layout.entry.js +3 -3
- package/dist/esm/udp-skeleton-loading.entry.js +1 -1
- package/dist/esm/udp-split-screen.entry.js +1 -1
- package/dist/esm/udp-stepper-actions.entry.js +1 -1
- package/dist/esm/udp-stepper-content.entry.js +2 -2
- package/dist/esm/udp-stepper-demo.entry.js +1 -1
- package/dist/esm/udp-stepper-nav.entry.js +1 -1
- package/dist/esm/udp-tab.entry.js +1 -1
- package/dist/esm/udp-timeline-connector.entry.js +1 -1
- package/dist/esm/udp-timeline-dot.entry.js +1 -1
- package/dist/esm/udp-timeline-item.entry.js +2 -2
- package/dist/esm/udp-timeline-separator.entry.js +1 -1
- package/dist/esm/udp-timeline.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline-connector.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline-dot.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline-item.entry.js +2 -2
- package/dist/esm/udp-vertical-timeline-separator.entry.js +1 -1
- package/dist/esm/udp-vertical-timeline.entry.js +1 -1
- package/dist/esm/udp-xy-chart.entry.js +1 -1
- package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/esm/valueFormatters-BbY_Q8IE.js +15 -0
- package/dist/stencil-library/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.js} +1 -1
- package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
- package/dist/stencil-library/address-search_6.entry.js +1 -1
- package/dist/stencil-library/advanced-search_12.entry.js +1 -1
- package/dist/stencil-library/ag-grid-base_66.entry.js +1 -0
- package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
- package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
- package/dist/stencil-library/apiMethodInstance-qaGbXDNr.js +1 -0
- package/dist/stencil-library/apiUtils-CXqsYwOQ.js +1 -0
- package/dist/stencil-library/app-bar.entry.js +1 -1
- package/dist/stencil-library/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
- package/dist/stencil-library/chart-container_3.entry.js +1 -1
- package/dist/stencil-library/check-box.entry.js +1 -1
- package/dist/stencil-library/chip-section.entry.js +1 -1
- package/dist/stencil-library/codecs-BWyrM561.js +1 -0
- package/dist/stencil-library/configService-CehZzjhw.js +1 -0
- package/dist/stencil-library/configureUdpColumnMods-bMO0_--H.js +1 -0
- package/dist/stencil-library/convertBackendTypeToAgGridType-B8xfl_wR.js +1 -0
- package/dist/stencil-library/createAzureMapsProviders-CtQryp1H.js +1 -0
- package/dist/stencil-library/custom-button.entry.js +1 -1
- package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
- package/dist/stencil-library/domain-table-snapshot-H3o5mjFB.js +1 -0
- package/dist/stencil-library/extraFields-Cnpy_Bm7.js +1 -0
- package/dist/stencil-library/extraFieldsHelper-CaBMA4HJ.js +1 -0
- package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
- package/dist/stencil-library/file-upload_2.entry.js +1 -1
- package/dist/stencil-library/filter-conditions_7.entry.js +1 -1
- package/dist/stencil-library/fluent-icons-wRyOZqj2.js +1 -0
- package/dist/stencil-library/form-metadata-display_2.entry.js +1 -1
- package/dist/stencil-library/getCurrentApiCatalogId-DeurXd9l.js +1 -0
- package/dist/stencil-library/icon-grid.entry.js +1 -1
- package/dist/stencil-library/image-upload_8.entry.js +1 -1
- package/dist/stencil-library/index.esm.js +1 -1
- package/dist/stencil-library/load-icons-D2ZhiHp6.js +1 -0
- package/dist/stencil-library/logical-search-indicator.entry.js +1 -1
- package/dist/stencil-library/lookupHelper-D3LSjaES.js +1 -0
- package/dist/stencil-library/map-component_2.entry.js +1 -1
- package/dist/stencil-library/primary-action-header_2.entry.js +1 -1
- package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
- package/dist/stencil-library/resource-timeline-primary-bar.entry.js +1 -1
- package/dist/stencil-library/rich-text-schema-DCUYo610.js +1 -0
- package/dist/stencil-library/search-method-grid.entry.js +1 -1
- package/dist/stencil-library/server-side-grid.entry.js +1 -1
- package/dist/stencil-library/side-sheet-container.entry.js +1 -1
- package/dist/stencil-library/simple-card.entry.js +1 -1
- package/dist/stencil-library/status-chip_2.entry.js +1 -1
- package/dist/stencil-library/status-renderer-Evo0rTNU.js +1 -0
- package/dist/stencil-library/stencil-chip.entry.js +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/stencil-toggle.entry.js +1 -1
- package/dist/stencil-library/text-field_2.entry.js +1 -1
- package/dist/stencil-library/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
- package/dist/stencil-library/udp-adornment.entry.js +1 -1
- package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
- package/dist/stencil-library/udp-advanced-search-field-picker_3.entry.js +1 -1
- package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -1
- package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -1
- package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -1
- package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
- package/dist/stencil-library/udp-attachment-list.entry.js +1 -1
- package/dist/stencil-library/udp-bar-chart.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
- package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
- package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
- package/dist/stencil-library/udp-card_6.entry.js +1 -1
- package/dist/stencil-library/udp-charts-example.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
- package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
- package/dist/stencil-library/udp-container-query.entry.js +1 -1
- package/dist/stencil-library/udp-container.entry.js +1 -1
- package/dist/stencil-library/udp-detail-list_10.entry.js +1 -0
- package/dist/stencil-library/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.js} +1 -1
- package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -1
- package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-icon-picker.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-inline-edit_5.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
- package/dist/stencil-library/udp-fluent-list-item_2.entry.js +1 -1
- package/dist/stencil-library/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
- package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
- package/dist/stencil-library/udp-forms-builder.entry.js +1 -1
- package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
- package/dist/stencil-library/udp-forms-list.entry.js +1 -1
- package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
- package/dist/stencil-library/udp-import-sheet.entry.js +1 -0
- package/dist/stencil-library/udp-kpi-card.entry.js +1 -1
- package/dist/stencil-library/udp-kpi-cards.entry.js +1 -1
- package/dist/stencil-library/udp-map.entry.js +1 -1
- package/dist/stencil-library/udp-menu.entry.js +1 -1
- package/dist/stencil-library/udp-page.entry.js +1 -1
- package/dist/stencil-library/udp-question-form-builder.entry.js +1 -1
- package/dist/stencil-library/udp-rich-text-field.entry.js +1 -1
- package/dist/stencil-library/udp-rich-text.entry.js +1 -0
- package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
- package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -1
- package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -1
- package/dist/stencil-library/udp-split-screen.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-actions.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-content.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
- package/dist/stencil-library/udp-stepper-nav.entry.js +1 -1
- package/dist/stencil-library/udp-tab.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-connector.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-dot.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-item.entry.js +1 -1
- package/dist/stencil-library/udp-timeline-separator.entry.js +1 -1
- package/dist/stencil-library/udp-timeline.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-connector.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-dot.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-item.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline-separator.entry.js +1 -1
- package/dist/stencil-library/udp-vertical-timeline.entry.js +1 -1
- package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
- package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
- package/dist/stencil-library/valueFormatters-BbY_Q8IE.js +1 -0
- package/dist/types/components/advanced-search-builder/udp-advanced-search-builder.d.ts +25 -0
- package/dist/types/components/fluent-ui/button/udp-fluent-button.d.ts +5 -0
- package/dist/types/components/fluent-ui/domain-table-input/domain-table-snapshot.d.ts +32 -0
- package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.d.ts +137 -0
- package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.d.ts +46 -0
- package/dist/types/components/fluent-ui/drawer/udp-fluent-drawer.d.ts +5 -0
- package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +12 -1
- package/dist/types/components/fluent-ui/radio-group/udp-fluent-radio-group.d.ts +6 -0
- package/dist/types/components/fluent-ui/rich-text/udp-rich-text.d.ts +19 -0
- package/dist/types/components/fluent-ui/rich-text-field/rich-text-schema.d.ts +6 -0
- package/dist/types/components/fluent-ui/table-input/table-aggregates.d.ts +16 -0
- package/dist/types/components/fluent-ui/table-input/udp-fluent-table-input.d.ts +0 -8
- package/dist/types/components/fluent-ui/tablist/udp-fluent-tablist.d.ts +3 -0
- package/dist/types/components/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.d.ts +22 -0
- package/dist/types/components/forms/udp-question-form/builder/components/configure-question-drawer.d.ts +2 -1
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.d.ts +2 -0
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/types.d.ts +17 -0
- package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.d.ts +9 -0
- package/dist/types/components/forms/udp-question-form/builder/udp-question-form-builder.d.ts +1 -0
- package/dist/types/components/forms/udp-question-form/builder/utils/builder-api.d.ts +37 -0
- package/dist/types/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.d.ts +5 -0
- package/dist/types/components/forms/udp-question-form/core/field-properties.d.ts +31 -1
- package/dist/types/components/forms/udp-question-form/core/validation/intrinsic.d.ts +15 -3
- package/dist/types/components/forms/udp-question-form/renderer/runtime/codecs.d.ts +12 -1
- package/dist/types/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.d.ts +20 -0
- package/dist/types/components/forms/udp-question-form/renderer/runtime/index.d.ts +1 -0
- package/dist/types/components/forms/udp-question-form/renderer/udp-question-form-renderer.d.ts +9 -0
- package/dist/types/components/forms/udp-question-form/renderer/ui/form-shell.d.ts +3 -0
- package/dist/types/components/forms/udp-question-form/renderer/ui/question-renderer.d.ts +7 -0
- package/dist/types/components/grid/new-grid/ag-grid-base.d.ts +3 -1
- package/dist/types/components/grid/new-grid/api-method-instance-grid.d.ts +9 -1
- package/dist/types/components/grid/new-grid/client-side-grid.d.ts +3 -1
- package/dist/types/components/grid/new-grid/datasources/searchMethodDatasource.d.ts +3 -0
- package/dist/types/components/grid/new-grid/gridFunctions/advancedSearch.d.ts +6 -3
- package/dist/types/components/grid/new-grid/gridFunctions/savedViews.d.ts +1 -0
- package/dist/types/components/grid/new-grid/gridFunctions/udpExport.d.ts +6 -0
- package/dist/types/components/grid/new-grid/helperFunctions/buildSearchObject.d.ts +13 -3
- package/dist/types/components/grid/new-grid/helperFunctions/domainRowsHelper.d.ts +60 -0
- package/dist/types/components/grid/new-grid/helperFunctions/extraFieldsHelper.d.ts +49 -0
- package/dist/types/components/grid/new-grid/helperFunctions/lookupHelper.d.ts +57 -0
- package/dist/types/components/grid/new-grid/helperFunctions/savedViewsHelpers.d.ts +2 -0
- package/dist/types/components/grid/new-grid/search-method-grid.d.ts +35 -1
- package/dist/types/components/grid/new-grid/server-side-grid.d.ts +27 -1
- package/dist/types/components/grid/renderers/actions-renderer.d.ts +15 -0
- package/dist/types/components/grid/renderers/input-renderer.d.ts +36 -0
- package/dist/types/components/import/udp-import-sheet/udp-import-sheet.d.ts +85 -0
- package/dist/types/components.d.ts +411 -12
- package/dist/types/icons/fluent-icons.d.ts +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/store/execution-store.d.ts +4 -5
- package/dist/types/udp-utilities/api-config/configService.d.ts +0 -2
- package/dist/types/udp-utilities/extra-fields/extraFields.d.ts +105 -0
- package/dist/types/udp-utilities/extra-fields/index.d.ts +1 -0
- package/dist/types/udp-utilities/search/searchObject.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cjs/lookupHelper-ClpMWN_g.js +0 -101
- package/dist/cjs/searchObjectHelper-DYpPEIzz.js +0 -110
- package/dist/cjs/slot-index-Dzl7Zum5.js +0 -77
- package/dist/cjs/udp-fluent-number-input.cjs.entry.js +0 -146
- package/dist/esm/lookupHelper-CSo9DNLr.js +0 -96
- package/dist/esm/searchObjectHelper-BjA6OHxg.js +0 -107
- package/dist/esm/slot-index-aYrr8BJl.js +0 -74
- package/dist/esm/udp-fluent-number-input.entry.js +0 -144
- package/dist/stencil-library/ag-grid-base_65.entry.js +0 -1
- package/dist/stencil-library/apiMethodInstance-BunReWfq.js +0 -1
- package/dist/stencil-library/apiUtils-Cq-WuEqc.js +0 -1
- package/dist/stencil-library/codecs-CI_fHfY1.js +0 -1
- package/dist/stencil-library/configService-D_9j963S.js +0 -1
- package/dist/stencil-library/configureUdpColumnMods-UWccWlH6.js +0 -1
- package/dist/stencil-library/createAzureMapsProviders-CLLCmr8f.js +0 -1
- package/dist/stencil-library/fluent-icons-pWFJyrRm.js +0 -1
- package/dist/stencil-library/load-icons-BHSNRRRA.js +0 -1
- package/dist/stencil-library/lookupHelper-CSo9DNLr.js +0 -1
- package/dist/stencil-library/searchObjectHelper-BjA6OHxg.js +0 -1
- package/dist/stencil-library/slot-index-aYrr8BJl.js +0 -1
- package/dist/stencil-library/status-renderer-BoY7sar9.js +0 -1
- package/dist/stencil-library/udp-detail-list_9.entry.js +0 -1
- package/dist/stencil-library/udp-fluent-number-input.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./index-15aY63VA.js";import{m as i}from"./makeApiCall-B-daVutk.js";import{m as s}from"./
|
|
1
|
+
import{r as t,h as e}from"./index-15aY63VA.js";import{m as i}from"./makeApiCall-B-daVutk.js";import{m as s}from"./lookupHelper-D3LSjaES.js";import{isEqual as a}from"lodash-es";import{b as o}from"./apiMethodInstance-qaGbXDNr.js";import{C as r}from"./configService-CehZzjhw.js";import"axios";import"./apiUtils-CXqsYwOQ.js";import"lodash-es/isEqual";import"./tenantUtils-Basdb1b1.js";import"./getCurrentApiCatalogId-DeurXd9l.js";import"./searchObject-DpUZkcYC.js";import"./convertBackendTypeToAgGridType-B8xfl_wR.js";import"./configureUdpColumnMods-bMO0_--H.js";const d=class{constructor(e){t(this,e),this.gridFunctions=[],this.isLoading=!0,this.apiMethodInstanceData={},this.searchMethodConfig=null}get entityName(){var t,e;return null!==(e=null===(t=this.apiMethodInstanceData)||void 0===t?void 0:t.returnObject)&&void 0!==e?e:""}get querySearchObject(){var t;const e={pageNumber:1,pageSize:50,logicalSearchOperator:1,orderElements:[],filterElements:[],filterGroups:[],groupOperationList:[]};try{return(null===(t=this.apiMethodInstanceData)||void 0===t?void 0:t.body)?JSON.parse(this.apiMethodInstanceData.body):e}catch(t){return console.error("Failed to parse apiMethodInstanceData.body:",t),e}}handleGridReady(t){this.gridApi=t.detail,t.preventDefault()}async getApiMethodInstanceData(){if(!this.apiMethodInstanceId)return;const t=await i("GET",r.integrationV1ApiUrl+`/apiMethodInstance/${this.apiMethodInstanceId}`);this.apiMethodInstanceData=t}createColumnDefs(t,e){var i;(null===(i=this.apiMethodInstanceData)||void 0===i?void 0:i.catalogModification)&&(a(t,e)||(this.gridApi&&this.gridApi.setGridOption("context",Object.assign(Object.assign({},this.gridApi.getGridOption("context")),{apiMethodInstanceId:this.apiMethodInstanceId})),this.columnDefs=o(JSON.parse(this.apiMethodInstanceData.catalogModification),this.querySearchObject,this.columnDefOverrides),this.isLoading=!1))}updateSearchMethodConfig(){var t;if(!(null===(t=this.apiMethodInstanceData)||void 0===t?void 0:t.apiMethodId))return void(this.searchMethodConfig=null);const e=s(this.querySearchObject,this.defaultSearchObject),{apiMethodId:i}=this.apiMethodInstanceData;this.searchMethodConfig={apiMethodId:i,customSearchObject:e}}updateApiMethodInstanceId(){this.getApiMethodInstanceData()}componentWillLoad(){this.getApiMethodInstanceData()}render(){return e("div",{key:"76da9b5c16ea5e357ce996f2e8ca59dff9a33e3c",style:{position:"relative"}},this.isLoading&&e("div",{key:"d1c5eb2ef012e9cae3996a68becf542306816de5",style:{position:"absolute",inset:"0",display:"flex",alignItems:"center",justifyContent:"center",zIndex:"10"}},e("udp-spinner",{key:"c6e340629b09eb96111d2769c71b2ea03a6d7896",size:"large"})),e("search-method-grid",{key:"91b3799c4bd16eff975fd491a9bb83d5bab9879b",onGridReady:t=>this.handleGridReady(t),gridFunctions:this.gridFunctions,gridOptions:this.gridOptions,gridHeaderConfig:this.gridHeaderConfig,gridId:this.gridId,entityName:this.entityName,gridHeight:this.gridHeight,searchMethodConfig:this.searchMethodConfig,gridApiCallback:this.gridApiCallback,columnDefs:this.columnDefs,extraFields:this.extraFields}))}static get watchers(){return{apiMethodInstanceData:[{createColumnDefs:0},{updateSearchMethodConfig:0}],columnDefOverrides:[{createColumnDefs:0}],defaultSearchObject:[{updateSearchMethodConfig:0}],apiMethodInstanceId:[{updateApiMethodInstanceId:0}]}}};export{d as api_method_instance_grid}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as o}from"./convertBackendTypeToAgGridType-B8xfl_wR.js";import{c as e}from"./configureUdpColumnMods-bMO0_--H.js";function t(t,r,n,l){var a;const c=new Set(null!==(a=null==r?void 0:r.groupProperty)&&void 0!==a?a:[]);let i=t.filter((o=>!1!==o.extendedProperties.defaultVisible)).map((e=>{var t;const r=c.has(e.name);return{headerName:e.alias||(n=e.name,n.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^[a-z]/,(o=>o.toUpperCase()))),field:e.name,tooltipField:e.name,sortable:e.extendedProperties.orderable,rowGroup:r,hide:r,cellDataType:e.extendedProperties.lookup?"text":o(null!==(t=e.type)&&void 0!==t?t:""),context:Object.assign({lookupId:e.extendedProperties.lookup},e)};var n}));return n&&n.length>0&&n.forEach((o=>{const e=i.findIndex((e=>e.field===o.field));e>-1?i[e]=Object.assign(Object.assign({},i[e]),o):"actions"===o.field&&i.push(o)})),e(i,l)}export{t as b}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"lodash-es/isEqual";import{m as e}from"./makeApiCall-B-daVutk.js";import{C as n}from"./configService-CehZzjhw.js";import{d as a,f as o}from"./index-15aY63VA.js";import{g as s}from"./tenantUtils-Basdb1b1.js";let i=null;const r=async()=>(i||await(async()=>{await n.waitForConfig(),i={baseURL:n.integrationV1ApiUrl,baseURLV2:n.integrationV2ApiUrl,baseURLTenantV1:n.tenantV1ApiUrl,baseURLTenantV2:n.tenantV2ApiUrl,baseURLHost:n.productV1ApiUrl,securityServiceV1:n.securityV1ApiUrl}})(),i),c=t=>!("isConnected"in t)||t.isConnected,u=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(c))})(...e)}),2e3)}})(),l=t=>"function"==typeof t?t():t,d=(t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)},p=(t,e)=>{const n=((t,e=(t,e)=>t!==e)=>{const n=l(t);let a=new Map(Object.entries(n??{}));const o={dispose:[],get:[],set:[],reset:[]},s=new Map,i=()=>{a=new Map(Object.entries(l(t)??{})),o.reset.forEach((t=>t()))},r=t=>(o.get.forEach((e=>e(t))),a.get(t)),c=(t,n)=>{const s=a.get(t);e(n,s,t)&&(a.set(t,n),o.set.forEach((e=>e(t,n,s))))},u="undefined"==typeof Proxy?{}:new Proxy(n,{get:(t,e)=>r(e),ownKeys:()=>Array.from(a.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>a.has(e),set:(t,e,n)=>(c(e,n),!0)}),p=(t,e)=>(o[t].push(e),()=>{d(o[t],e)});return{state:u,get:r,set:c,on:p,onChange:(e,n)=>{const a=(t,a)=>{t===e&&n(a)},o=()=>n(l(t)[e]),i=p("set",a),r=p("reset",o);return s.set(n,{setHandler:a,resetHandler:o,propName:e}),()=>{i(),r(),s.delete(n)}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(p("set",e.set)),e.get&&t.push(p("get",e.get)),e.reset&&t.push(p("reset",e.reset)),e.dispose&&t.push(p("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{o.dispose.forEach((t=>t())),i()},reset:i,forceUpdate:t=>{const e=a.get(t);o.set.forEach((n=>n(t,e,e)))},removeListener:(t,e)=>{const n=s.get(e);n&&n.propName===t&&(d(o.set,n.setHandler),d(o.reset,n.resetHandler),s.delete(e))}}})(t,e);return n.use((()=>{if("function"!=typeof a)return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const n=a();n&&((t,e,n)=>{const a=t.get(e);a?a.includes(n)||a.push(n):t.set(e,[n])})(t,e,n)},set:e=>{const n=t.get(e);n&&t.set(e,n.filter(o)),u(t)},reset:()=>{t.forEach((t=>t.forEach(o))),u(t)}}})()),n},{state:f,onChange:y}=p({lookupsDataMap:null});function m(t,e=!1){f.lookupsDataMap=e?t:Object.assign(Object.assign({},f.lookupsDataMap),t)}var b,w,$,g,U,L,T,v=Object.freeze({__proto__:null,onChange:y,setLookupsDataMap:m,state:f});const h=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],O="__udpQueryExecutionState__",E=globalThis,R=null!==(b=E[O])&&void 0!==b?b:E[O]={queryExecution:null,directEligibleApiMethodIds:[],integrationOnlyIds:[],integrationFallbackStatuses:{},descriptorKnown:!1,eligibilityKnown:!1,descriptorResolving:!1,descriptorWaiters:[]};null!==(w=R.integrationOnlyIds)&&void 0!==w||(R.integrationOnlyIds=[]),null!==($=R.integrationFallbackStatuses)&&void 0!==$||(R.integrationFallbackStatuses={}),null!==(g=R.descriptorKnown)&&void 0!==g||(R.descriptorKnown=!1),null!==(U=R.eligibilityKnown)&&void 0!==U||(R.eligibilityKnown=!1),null!==(L=R.descriptorResolving)&&void 0!==L||(R.descriptorResolving=!1),null!==(T=R.descriptorWaiters)&&void 0!==T||(R.descriptorWaiters=[]);const j=t=>{let e=t.length;for(;e>0&&"/"===t[e-1];)e--;return t.slice(0,e)},P=(t,e)=>`${j(t)}/api/v1/UdpQuery/adhoc/${e}`,V=(t,e)=>`${j(t)}/api/v1/UdpQuery/${e}/executeWithParameters`,S=(t,e)=>`${j(t)}/api/v1/UdpQuery/${e}/execute`,G="x-udpquery-runtime",x=(t,e,n={})=>501===t||503===t&&!n.mayWrite||404===t&&!e,I=async(t,e,n,a={})=>{try{const e=await t();return function(t){if(t&&t in R.integrationFallbackStatuses){const e=Object.assign({},R.integrationFallbackStatuses);delete e[t],R.integrationFallbackStatuses=e}}(n),e}catch(t){const o=null==t?void 0:t.response,s=null==o?void 0:o.status,i=null==o?void 0:o.headers,r=!(!i||!("function"==typeof i.get?i.get(G):i[G]));if(x(s,r,a))return console.warn(`Direct UdpQuery execution answered ${s}; falling back to Integration`,t),503===s?function(t,e){t&&(R.integrationFallbackStatuses=Object.assign(Object.assign({},R.integrationFallbackStatuses),{[t]:e}))}(n,s):H(n,s),e();throw t}};function H(t,e){t&&!R.integrationOnlyIds.includes(t)&&(R.integrationOnlyIds=[...R.integrationOnlyIds,t],"number"==typeof e&&(R.integrationFallbackStatuses=Object.assign(Object.assign({},R.integrationFallbackStatuses),{[t]:e})))}function A(t){return t?R.integrationFallbackStatuses[t]:void 0}function C(t){return!!t&&R.integrationOnlyIds.includes(t)}function k(){Q()||(R.descriptorResolving=!0)}function Q(){var t;return R.descriptorKnown&&("direct"!==(null===(t=R.queryExecution)||void 0===t?void 0:t.mode)||R.eligibilityKnown)}function M(){Q()&&D()}const N=1e4;function D(){R.descriptorResolving=!1;const t=R.descriptorWaiters;R.descriptorWaiters=[],t.forEach((t=>t()))}function K(){R.queryExecution=null,R.descriptorKnown=!1,R.integrationOnlyIds=[],R.integrationFallbackStatuses={},R.descriptorResolving=!0}function _(t=1e4){return Q()||!R.descriptorResolving?Promise.resolve():new Promise((e=>{const n=setTimeout((()=>{console.warn(`Query execution routing did not settle within ${t}ms; executing via Integration`),D()}),t);R.descriptorWaiters.push((()=>{clearTimeout(n),e()}))}))}function q(t){R.queryExecution=null!=t?t:null,R.descriptorKnown=!0,M()}function F(){return R.queryExecution}function W(t){R.directEligibleApiMethodIds=(null!=t?t:[]).filter((t=>!!t)),R.eligibilityKnown=!0,M()}function z(){return R.directEligibleApiMethodIds}function B(t){const e=(null!=t?t:[]).filter((t=>!!t));e.length&&(R.directEligibleApiMethodIds=Array.from(new Set([...R.directEligibleApiMethodIds,...e])))}function J(t){const e=R.queryExecution;if("direct"===(null==e?void 0:e.mode)&&e.url&&t&&!C(t)&&R.directEligibleApiMethodIds.includes(t)){const n=j(e.url);return{mode:"direct",url:n,requestUrl:P(n,t)}}return{mode:"integration"}}const Y=async()=>{const{baseURL:t}=await r();console.log("baseURL from External config:",t);const a=`${t}/tenantProductApiCatalogBase/tenant/${s()}/product/${n.config.UNITY_PRODUCT_ID}`;return e("GET",a)},Z=async(t,a,o=!1)=>{const{baseURL:s}=await r();return console.log("baseURL from External config:",s),e("GET",`${s}/apicatalog/${t}/promotedMethodEntities/${a}/product/${n.config.UNITY_PRODUCT_ID}?compareSanitizedName=${o}`)};let X;const tt=(n,a,o,i=!1)=>{const c=[n,a,s(),"hotlist"!=o];if(!i&&X){if(t(X.args,c)){const{response:t}=X;return console.info(`Using prefetch for /apimethod/executeQueryAdHoc/${a} prefetch`,X.args,c),X=void 0,t}console.warn(`Failed to match arguments for /apimethod/executeQueryAdHoc/${a} prefetch:\nPrefetch args: %o\nExecute args: %o`,X.args,c),X=void 0}const u=r().then((async({baseURL:t,baseURLHost:s})=>{"hotlist"!=o&&await _();const i="hotlist"!=o?J(a):{mode:"integration"},r="hotlist"==o?`${s}/UdpHotList/containingRecord`:`${t}/apimethod/executeQueryAdHoc/${a}`;return"direct"===i.mode?I((()=>e("POST",i.requestUrl,n)),(()=>e("POST",r,n)),a):e("POST",r,n)}));return i&&(console.info(`Prefetching /apimethod/executeQueryAdHoc/${a}`),X={args:c,response:u}),u},et=async t=>{const{baseURL:n}=await r();return e("GET",`${n}/apiCatalog/${t}`)},nt=async(t,n)=>{console.log("executeQueryWithParameters called",n);const{baseURL:a}=await r(),o=`${a}/apimethod/executeQueryWithParameters/${n}`;await _();const s=J(n);return"direct"===s.mode?I((()=>e("POST",V(s.url,n),t)),(()=>e("POST",o,t)),n,{mayWrite:!0}):e("POST",o,t)},at=async(t,n,a)=>{const{baseURL:o}=await r(),s=`${o}/apimethod/executeQueryAdHoc/${n}`;return C(n)?e("POST",s,t):I((()=>e("POST",a,t)),(()=>e("POST",s,t)),n)};class ot{constructor(){this.pageList=[]}}function st(t){const{state:e}=v;return e.lookupsDataMap&&t?e.lookupsDataMap[t]:null}function it(t,e){let n=Object.assign({},t);return e&&n&&Object.keys(e).forEach((t=>{var a;const o=st(e[t].value);if(Array.isArray(n))n.forEach(((e,a)=>{var s,i;let r=e[t];const c=null!==(s=o.udpLookupUdpLookupKey)&&void 0!==s?s:o.keyName?[{name:o.keyName}]:[];let u=null===(i=null==o?void 0:o.data)||void 0===i?void 0:i.find((t=>t[o.valueName]===r));null!=u&&c.forEach((t=>{n[a][t.name]=u[t.name]}))}));else if(n[t]){let e=n[t];const s=null!==(a=o.udpLookupUdpLookupKey)&&void 0!==a?a:o.keyName?[{name:o.keyName}]:[];let i=o.data.find((t=>t[o.valueName]===e));null!=i&&s.forEach((t=>{n[t.name]=i[t.name]}))}})),n}const rt=async(t={},e={},n,a,o,s,i)=>{const{lookupApiMethodId:r,prefetch:c=!1}=i;console.info("Udp Lookup Api Method Id IS Set",r),t[0].logicalSearchOperator=n;const u=Object.assign({},...t);let l=Object.assign({},u);e&&Array.isArray(e)&&e.length>0&&(l=Object.assign(Object.assign({},l),{filterElements:[...u.filterElements,...e]})),console.log("filter object AUI",JSON.stringify(l,null,2));const d=await tt(l,a,"",c);return console.log("response from QUAD",d),r?await async function(t,e,n,a){let o=new ot,s={};if(!e)return console.error("Could not retrieve query data"),null;s=a||(null==e?void 0:e.lookupsMap)||{},o=e;const i=[],r={};Object.keys(s).forEach((e=>{const a=s[e];if(null==a?void 0:a.value){const o=!n&&st(a.value),c={id:a.value};o?r[e]=Object.assign({data:o.data,keyName:a.lookupKeyName||o.keyName,udpLookupUdpLookupKey:o.udpLookupUdpLookupKey,valueName:a.lookupValueName||o.valueName,businessObjectKey:o.businessObjectKey},o):i.push(Promise.resolve(t).then((t=>nt({data:c},t))).then((t=>{if(t){const a=s[e];r[e]=Object.assign({data:t.data,keyName:a.lookupKeyName||t.keyName,udpLookupUdpLookupKey:t.udpLookupUdpLookupKey,valueName:a.lookupValueName||t.valueName,businessObjectKey:t.businessObjectKey},t),m({[t.id]:t},n)}})).catch((t=>t)))}})),await Promise.all(i);const c=((t={},e=[])=>{const n=e.map((e=>{const n=Object.assign({},e);return Object.keys(t).forEach((a=>{var o;const s=t[a];if(null!=e[a]){const t=null===(o=null==s?void 0:s.data)||void 0===o?void 0:o.find((t=>{var n;const a=null!==(n=s.udpLookupUdpLookupKey)&&void 0!==n?n:s.keyName?[{name:s.keyName}]:[];return!!a.length&&a.every((n=>null!=t[n.name]&&String(t[n.name])===String(e[n.name])))}));t&&s.valueName&&(n[a]=t[s.valueName])}})),n}));return n})(r,o.pageList);return o.pageList=c,o}(r,d,s,o):(console.log("response from executeQueryAdHocAndMapLookups",d),null==d?void 0:d.data)},ct=async(t,n)=>{const{baseURLTenantV2:a}=await r(),o=`${a}/GridView/${t}/PartiallyFull`,s=await e("GET",o);console.log("data from utils:",s),n(s)},ut=async(t,n)=>{const{baseURLTenantV2:a}=await r(),o=`${a}/GridView/${t}`,s=await e("DELETE",o);console.log("data from utils:",s),n(s)},lt=async(t,n,a,o,s)=>{const{baseURLTenantV2:i}=await r(),c=`${i}/GridView/getFromUser/${t}/${n}?domainName=${o}&apiCatalogId=${a}`;s(await e("GET",c))},dt=async(t,n)=>{const{baseURLTenantV2:a}=await r(),o=`${a}/GridView/gridConfigurations/${t}/${n}`;return await e("GET",o)},pt=async(t,n,a,o,i,c,u,l,d)=>{const{baseURLTenantV2:p}=await r(),f=`${p}/GridView/createGridView`,y={gridView:{Name:o,GridViewVisibilityTypeId:u,isDefault:l,tenantId:s(),userId:t,gridId:n,domain:i,apiCatalogId:a},gridConfigurations:c};d(await e("POST",f,y))},ft=async(t,n,a,o,i,c,u,l,d,p)=>{const{baseURLTenantV2:f}=await r(),y=`${f}/GridView/updateGridView/${t}`,m={gridView:{Name:i,GridViewVisibilityTypeId:d,isDefault:u,tenantId:s(),userId:n,gridId:a,domain:l,apiCatalogId:o},gridConfigurations:c};try{p(await e("PUT",y,m))}catch(t){console.error("Error updating view:",t)}},yt=async(t,n,a,o,i,c,u,l,d)=>{const{baseURLTenantV2:p}=await r(),f=`${p}/GridView/${t}`,y={Name:i,GridViewVisibilityTypeId:l,isDefault:c,tenantId:s(),userId:n,gridId:a,domain:u,apiCatalogId:o};try{const t=await e("PUT",f,y);return d(t),t}catch(t){console.error("Error updating view:",t)}},mt=async(t,n,a,o)=>{const{baseURLV2:s}=await r(),i=`${s}/action/grid/${t}`,c=await e("GET",i);if(n){const t=(await e("GET",`${s}/actionPermission`)).filter((t=>a.some((e=>e.permissionId===t.permissionId))));o(c.filter((e=>t.some((t=>t.actionId===e.actionId)))))}else o(c)},bt=async t=>{const{baseURL:n}=await r();return console.log("baseURL from External config:",n),e("GET",`${n}/apimethodinstance/${t}`,{data:{}})},wt=async t=>{const{baseURL:n}=await r();return console.log("baseURL from External config:",n),e("GET",`${n}/apimethod/${t}`)},$t=async t=>{const a=`lookupMethod-${t}`,o=sessionStorage.getItem(a);if(o)return JSON.parse(o);const{baseURL:s}=await r(),i=await e("GET",`${s}/apiCatalog/${t}?includeCatalogObjectList=false&includePromotedMethods=false`),c=`${s}/apicatalog/${t}/promotedMethodEntities/UdpLookup/product/${i.productId?i.productId:n.config.UNITY_PRODUCT_ID}?compareSanitizedName=true`,u=await e("GET",c);return u&&sessionStorage.setItem(a,JSON.stringify(u)),u},gt=async()=>{const{baseURLHost:t}=await r();return e("GET",`${t}/UdpHotList`,null)},Ut=async t=>{const{baseURLHost:n}=await r();return e("POST",`${n}/UdpHotList`,t)},Lt=async t=>{const{baseURLHost:n}=await r();return e("DELETE",`${n}/UdpHotList/${t}`,null)},Tt=async t=>{const{baseURLHost:n}=await r();return e("POST",`${n}/UdpHotListRecord`,t,!0)},vt=async t=>{const{baseURLHost:n}=await r();return e("GET",`${n}/UdpHotList/${t}/full`,null,!0)},ht=async t=>{const{baseURLHost:n}=await r();return e("DELETE",`${n}/udphotlistrecord/${t}`,null,!0)};export{tt as A,it as B,Y as C,h as D,N as E,bt as F,wt as G,$t as H,et as I,lt as J,ct as K,gt as L,Tt as M,Lt as N,vt as O,Ut as P,ht as Q,rt as R,p as S,at as T,G as U,V as a,P as b,S as c,I as d,k as e,K as f,A as g,q as h,C as i,F as j,W as k,z as l,H as m,B as n,J as o,dt as p,ut as q,D as r,x as s,pt as t,ft as u,yt as v,_ as w,mt as x,nt as y,Z as z}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,h as a}from"./index-15aY63VA.js";import c from"@carbon/icons/es/menu/24";const d=class{constructor(a){e(this,a)}render(){return a("div",{key:"eac71bb72ef51d93c67b9eb012f9b5c055733cea",class:"header"},a("stencil-icon-button",{key:"0e05de778fbf8c3298f5bb67e302a345b835de74",noBackground:!0,darkIcon:!1,icon:c}),a("unity-typography",{key:"5e382ddffd3ace6a28e7a3c2cf25f63b36e6b899",variant:"data-display-one"}," ",a("slot",{key:"6c4aac723b333c918e8ad6c73bb69cc6c1a7d64c"})," "),a("a",{key:"4f4f36987728f8cd9a67a6b6a6c18d8d3f8c64f3",class:"skip-to-content",href:"#main-content"},"Skip to main content"),a("div",{key:"d4b4399bd02c441ea5fbd3d926110f4f2f2ad40b",class:"header__logo"}),a("div",{key:"9c44c322ede85c563f20a42e81398c0950a3c99d",class:"header__nav",role:"navigation","aria-label":"Carbon Design System"}),a("div",{key:"b5824fe28ff712f3159d1cf6322fe40bfac19b4a",class:"header__global"},a("udp-avatar",{key:"961decb7f49822308f22aa9298217cf06dbd1863",username:this.username})))}};d.style=".header{display:flex;align-items:center;height:3rem;background-color:#262626;color:#fff;padding-right:1rem}.skip-to-content{position:absolute;top:-40px}.header__logo{}.header__nav{flex:1;display:flex;justify-content:space-between}.header__global{}";export{d as app_bar}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as a,I as t}from"./apiUtils-
|
|
1
|
+
import{S as a,I as t}from"./apiUtils-CXqsYwOQ.js";const{state:o,onChange:s}=a({catalogData:null,isLoadingCatalogData:!1,hotListActive:""});async function l(a){o.isLoadingCatalogData=!0;try{const s=await t(a);console.log("store state was"),o.catalogData=s}catch(a){console.error("Error loading catalog data:",a),o.catalogData=null}finally{o.isLoadingCatalogData=!1}}export{l,s as o,o as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a
|
|
1
|
+
import{r as t,h as e,a,H as i}from"./index-15aY63VA.js";import n from"@carbon/icons/es/chevron--down/16";import r from"@carbon/icons/es/chevron--up/16";const d=class{constructor(e){t(this,e),this.kpisPosition="left",this.hideAdornment=!1,this.hideBorder=!1,this.removePadding=!1,this.chartHeight="100%",this.chartWidth="100%"}componentWillLoad(){this.chartId||console.error("chartId prop is required on component chart-container")}resizeChart(){var t=document.querySelector(".wrapper"),e=document.getElementById(this.chartId);if(!e)return void this.resizeChart();const a=Math.min(t.clientWidth/e.clientWidth,t.clientHeight/e.clientHeight);e.style.transform=`scale(${a})`}componentDidLoad(){this.resizeChart()}render(){var t;if(!this.chartId)return null;const a="number"==typeof this.chartWidth?`${this.chartWidth}px`:this.chartWidth,i="number"==typeof this.chartHeight?`${this.chartHeight}px`:this.chartHeight;return e("udp-ambient-card",{width:"number"==typeof this.cardWidth?`${this.cardWidth}px`:this.cardWidth,hideAdornment:this.hideAdornment,hideBorder:this.hideBorder,removePadding:this.removePadding},e("div",{class:"header"},e("unity-typography",{variant:"h3"},this.title),e("unity-typography",null,this.subheader)),e("div",{class:{"chart-container-data-container":!0,"chart-container-data-container-top":"top"===this.kpisPosition}},(null===(t=this.kpis)||void 0===t?void 0:t.length)>0&&e("div",{class:{"chart-container-kpi-container":!0,"chart-container-kpi-container-top":"top"===this.kpisPosition,"padding-top-kpis":"top"===this.kpisPosition&&!this.title&&!this.subheader}},this.kpis.map((t=>e("chart-kpi",Object.assign({},t))))),e("div",{id:this.chartId,style:{height:i,width:a},class:"chartContainer"})))}get el(){return a(this)}};d.style=".chart-container-data-container{display:flex;width:'100%';height:'100%';gap:8px}.chart-container-data-container-top{flex-direction:column}.chart-container-kpi-container{display:flex;flex-direction:column;justify-content:flex-start;gap:30px;padding-top:20px;align-items:center}.chart-container-kpi-container-top{flex-direction:row;justify-content:space-evenly}.padding-top-kpis{padding-top:8px}.chart-container-spacer{flex-grow:1}.chart-container{width:'100%';height:'100%'}:host{display:block;width:100%;height:100%;margin:0;padding:0}";const s=class{constructor(e){t(this,e)}render(){return e(i,{key:"0849ed423e2b786924235da541b9add56576363e",class:"chart-kpi-container"},e("unity-typography",{key:"d6e7a902e8727d080657306de5c277f589326fa1",class:"element",variant:"data-display-four"},this.value),e("unity-typography",{key:"30f98f7655b7ba5e56656a630f8209c0cb46ce91",class:"element",variant:"caption-text"},this.label))}};s.style=":host{display:flex;flex-direction:column;align-items:center;width:20%}.element{line-height:1}";const c=class{constructor(e){t(this,e),this.isExpanded=!1,this.title="",this.overflow="",this.moreText="",this.hideAdornment=!1,this.hideBorder=!1,this.removePadding=!1,this.toggleExpand=()=>{this.isExpanded=!this.isExpanded}}render(){return e("div",{key:"1eb7e2a125191f3791f860a368072885631efbb5",class:"wrapper",style:{width:this.width}},!this.hideAdornment&&e("div",{key:"d18f84c8219054ca7b2c43585d164015820060e8",class:"adornment"},e("udp-adornment",{key:"16bf3d63aa9392777c380dce2420c8376a1cff95",status:"info"})),e("div",{key:"232536473acd64510e44611cbc2beb9861d0a79d",class:{card:!0,"card-border":!this.hideBorder,"no-padding":this.removePadding}},e("div",{key:"8d70a81a099cee8239fb104f4c9e52c69c49b34f",class:"card-data"},e("div",{key:"3ea2466b915918abbd3c489be59dbbe76f7189b6",class:"title"},e("unity-typography",{key:"b0d9d8c40057c5c6dfb6de5669f9de256e873fc6",variant:"data-display-four"},this.title)),e("div",{key:"994b7cf162d1562759e0113c848a30a2827cc85e",class:"body"},e("slot",{key:"89d43506f5bcd9e1554a77e672614383332127ad"})),e("div",{key:"eb28c3b54e631477c31b1bff91636d38578cefa1",class:"footer"},this.overflow&&e("div",{key:"7aa97ab7b3d7388e8b24ce93d6aa9ae4bd2a0934",class:"more-button"},e("unity-typography",{key:"bd570480d03a25aab516c87d35cc859496399350",variant:"caption-text"},this.moreText," "),e("stencil-icon-button",{key:"51fe79e53fb72a2a7e06ce54355e41f1c77382e3",onClick:this.toggleExpand,icon:this.isExpanded?r:n,showLabel:!1}))),e("div",{key:"4ad01f1173d89a5300401aae5954961f8e6bbe79",class:"expandable "+(this.isExpanded?"expanded":"")},e("unity-typography",{key:"4d203fa4b247795717a7737d9adedc90ff83451b",variant:"body"},this.overflow)))))}};c.style=".card{display:flex;position:relative;flex-direction:column;padding:16px;background-color:white;width:100%}.no-padding{padding:0}.card-border{border:var(--udp-ambient-card-border, 1px solid #ccc)}.udp-adornment{position:absolute;right:0;top:0;bottom:0}.title,.body,.footer{}.expandable{max-height:0;overflow:hidden;transition:max-height 0.3s ease-out}.expanded{max-height:100px;}.wrapper{display:flex;margin:var(--wrapper-margin, 16px);height:var(--wrapper-height)}.more-button{display:flex;align-items:center}.adornment{display:var(--adornment-display, block)}";export{d as chart_container,s as chart_kpi,c as udp_ambient_card}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,H as s}from"./index-15aY63VA.js";const h=class{constructor(e){i(this,e),this.change=t(this,"change",7),this.checked=!1,this.disabled=!1,this.internalChecked=!1,this.handleChange=i=>{const t=i.target.checked;this.internalChecked=t,void 0!==this.checked&&(this.checked=t),this.change.emit(t?"true":"false")}}updateError(){this.errorMessage=this.error}initialValueChanged(i){this.internalChecked&&void 0!==this.checked||void 0!==i&&(this.internalChecked="true"===i||"1"===i||"on"===i)}checkedChanged(){void 0!==this.checked&&this.checked!==this.internalChecked&&(this.internalChecked=this.checked)}componentWillLoad(){this.internalChecked=void 0!==this.checked?this.checked:void 0!==this.initialValue&&("true"===this.initialValue||"1"===this.initialValue||"on"===this.initialValue),this.error&&(this.errorMessage=this.error)}render(){const i=!!this.errorMessage;return e(s,{key:"
|
|
1
|
+
import{r as i,c as t,h as e,H as s}from"./index-15aY63VA.js";const h=class{constructor(e){i(this,e),this.change=t(this,"change",7),this.checked=!1,this.disabled=!1,this.internalChecked=!1,this.handleChange=i=>{const t=i.target.checked;this.internalChecked=t,void 0!==this.checked&&(this.checked=t),this.change.emit(t?"true":"false")}}updateError(){this.errorMessage=this.error}initialValueChanged(i){this.internalChecked&&void 0!==this.checked||void 0!==i&&(this.internalChecked="true"===i||"1"===i||"on"===i)}checkedChanged(){void 0!==this.checked&&this.checked!==this.internalChecked&&(this.internalChecked=this.checked)}componentWillLoad(){this.internalChecked=void 0!==this.checked?this.checked:void 0!==this.initialValue&&("true"===this.initialValue||"1"===this.initialValue||"on"===this.initialValue),this.error&&(this.errorMessage=this.error)}render(){const i=!!this.errorMessage;return e(s,{key:"1584579a997d070bcfbcd08d618d155a7cee4117",class:{"udp-input":!0,"udp-input--error":i,"udp-input--disabled":this.disabled,"udp-input--required":this.required,"udp-input--checked":this.internalChecked},"aria-invalid":i?"true":"false","aria-required":this.required?"true":"false"},e("div",{key:"f87c1333f94f78ac3d638801eb056d2406298d24",class:"checkbox-container"},e("input",{key:"1469a86996549101418a693fe449f66941fcc689",type:"checkbox",checked:this.internalChecked,onChange:this.handleChange,id:this.id,name:this.name,disabled:this.disabled,required:this.required}),this.label&&e("label",{key:"a0bcc93fe0ef44a80458858e6458cefe5874e391",htmlFor:this.id},this.label),this.errorMessage&&e("div",{key:"48b02b8ff7708d0c6fe00c08ce388e964fb1223b",class:"error-message"},this.errorMessage)))}static get watchers(){return{error:[{updateError:0}],initialValue:[{initialValueChanged:0}],checked:[{checkedChanged:0}]}}};h.style='.checkbox-container{display:flex;align-items:center}.checkbox-container input[type="checkbox"]{margin-right:8px}';export{h as check_box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as t,a as e}from"./index-15aY63VA.js";const s=class{constructor(t){i(this,t),this.filterChips=[],this.viewChips=[],this.menuItems=[],this.additionalFilterChips=[],this.hideKpiSection=!1,this.kpiValues=[],this.maxKPIsDisplayed=4,this.anchorEl=null,this.chipsReceived=!1,this.selectedFilterChip=null,this.abbrNum=(i,t)=>{if("string"!=typeof i||isNaN(Number(i))){if("number"!=typeof i)throw new Error("The input must be a number or a string that can be converted to a number.")}else i=Number(i);if("number"!=typeof t)return null;t=Math.pow(10,t);let e=["k","m","b","t"];for(let s=e.length-1;s>=0;s--){let n=Math.pow(10,3*(s+1));if(n<=i){1e3==(i=Math.round(i*t/n)/t)&&s<e.length-1&&(i=1,s++),i+=e[s];break}}return i},this.isEmpty=i=>Array.isArray(i)&&0===i.length,this.abbreviateLabel=i=>i.length>10?i.slice(0,7)+"...":null,this.handleFilterChipToggle=i=>{this.selectedFilterChip=i,"function"==typeof i.onToggle&&i.onToggle()},this.handleFilterChipUntoggle=()=>{this.selectedFilterChip&&("function"==typeof this.selectedFilterChip.onUntoggle&&this.selectedFilterChip.onUntoggle(),this.selectedFilterChip=null)}}filterChipsChanged(i){!this.chipsReceived&&i.length>0&&(this.allFilterChips=i,this.visibleFilterChips=i)}componentWillLoad(){console.log("componentWillLoad in ChipSection",this.filterChips),!this.chipsReceived&&this.filterChips.length>0&&(this.allFilterChips=this.filterChips,this.visibleFilterChips=this.filterChips)}componentDidLoad(){console.log("componentDidLoad in ChipSection"),this.chipSectionContainer=this.el.shadowRoot.querySelector("#chipSectionContainer"),this.viewChipsContainer=this.el.shadowRoot.querySelector("#viewChipsContainer"),this.filterChipsContainer=this.el.shadowRoot.querySelector("#filterChipsContainer"),this.additionalFilterChipsContainer=this.el.shadowRoot.querySelector("#additionalFilterChipsContainer"),this.kpiContainer=this.el.shadowRoot.querySelector("#kpiContainer")}handleClick(i){console.log("Click event",i)}render(){return console.log("Rendering ChipSection",this.visibleFilterChips),t("div",{key:"
|
|
1
|
+
import{r as i,h as t,a as e}from"./index-15aY63VA.js";const s=class{constructor(t){i(this,t),this.filterChips=[],this.viewChips=[],this.menuItems=[],this.additionalFilterChips=[],this.hideKpiSection=!1,this.kpiValues=[],this.maxKPIsDisplayed=4,this.anchorEl=null,this.chipsReceived=!1,this.selectedFilterChip=null,this.abbrNum=(i,t)=>{if("string"!=typeof i||isNaN(Number(i))){if("number"!=typeof i)throw new Error("The input must be a number or a string that can be converted to a number.")}else i=Number(i);if("number"!=typeof t)return null;t=Math.pow(10,t);let e=["k","m","b","t"];for(let s=e.length-1;s>=0;s--){let n=Math.pow(10,3*(s+1));if(n<=i){1e3==(i=Math.round(i*t/n)/t)&&s<e.length-1&&(i=1,s++),i+=e[s];break}}return i},this.isEmpty=i=>Array.isArray(i)&&0===i.length,this.abbreviateLabel=i=>i.length>10?i.slice(0,7)+"...":null,this.handleFilterChipToggle=i=>{this.selectedFilterChip=i,"function"==typeof i.onToggle&&i.onToggle()},this.handleFilterChipUntoggle=()=>{this.selectedFilterChip&&("function"==typeof this.selectedFilterChip.onUntoggle&&this.selectedFilterChip.onUntoggle(),this.selectedFilterChip=null)}}filterChipsChanged(i){!this.chipsReceived&&i.length>0&&(this.allFilterChips=i,this.visibleFilterChips=i)}componentWillLoad(){console.log("componentWillLoad in ChipSection",this.filterChips),!this.chipsReceived&&this.filterChips.length>0&&(this.allFilterChips=this.filterChips,this.visibleFilterChips=this.filterChips)}componentDidLoad(){console.log("componentDidLoad in ChipSection"),this.chipSectionContainer=this.el.shadowRoot.querySelector("#chipSectionContainer"),this.viewChipsContainer=this.el.shadowRoot.querySelector("#viewChipsContainer"),this.filterChipsContainer=this.el.shadowRoot.querySelector("#filterChipsContainer"),this.additionalFilterChipsContainer=this.el.shadowRoot.querySelector("#additionalFilterChipsContainer"),this.kpiContainer=this.el.shadowRoot.querySelector("#kpiContainer")}handleClick(i){console.log("Click event",i)}render(){return console.log("Rendering ChipSection",this.visibleFilterChips),t("div",{key:"05c3e1982b4acdd844fe4f5cb5729b9a298038d6",class:"wrapper",id:"chipSectionContainer"},t("div",{key:"47196fd314eb7d82c9c6a19b9d474f1172033e0f",class:"chipHolder"},t("div",{key:"6bc7852df5bd245db00bdff6af733e5fae740709",id:"viewChipsContainer"},this.viewChips.map(((i,e)=>t("stencil-chip",{onOnDelete:()=>this.handleDelete("view",e),text:i.label,class:"viewChip"})))),t("udp-dynamic-container-with-menu",{key:"3e40ebe18872f1538c8584b5e042090e0e4ab56f",id:"filterChipsContainer",menuItems:this.menuItems},this.selectedFilterChip&&t("stencil-chip",{key:"da1a4a9727e76d4e24bdab784c18411e38700801",onOnDelete:this.handleFilterChipUntoggle,text:this.selectedFilterChip.label,class:"viewChip"}),console.log("filtering here...",this.filterChips),this.filterChips.map((i=>this.selectedFilterChip&&i.id===this.selectedFilterChip.id?(console.log("returning null..."),null):t("stencil-chip",{text:`${i.label} ${i.value}`,class:"filterChip",onClick:()=>this.handleFilterChipToggle(i)})))),t("div",{key:"f57c3c67b0ca7846888ed03666a847cafdc1421a",id:"additionalFilterChipsContainer"},this.additionalFilterChips.map(((i,e)=>t("stencil-chip",{onOnDelete:()=>this.handleDelete("additionalFilter",e),text:i.label,class:"additionalFilterChip"})))),!this.hideKpiSection&&t("div",{key:"384a9458b54af2f91c8f6cf7b113b2e031831555",class:"KPI",id:"kpiContainer"},this.kpiValues.slice(0,this.maxKPIsDisplayed).map((i=>t("div",{class:"kpiItem"},t("span",{class:"kpiLabel"},this.abbreviateLabel(i.label)||i.label),t("span",{class:"kpiValue"},this.abbrNum(i.value,1))))))))}get el(){return e(this)}static get watchers(){return{filterChips:[{filterChipsChanged:0}]}}};s.style=".wrapper{display:flex;gap:8px;flex-wrap:no-wrap;align-items:center;flex-grow:1;width:100%;}.chipHolder{display:flex;gap:8px;flex-wrap:no-wrap;align-items:center;flex:1 1 auto;overflow:scroll}.chipHolder::-webkit-scrollbar{display:none}.viewChip{background-color:var(--primary-color);color:white;max-width:150px;transition:opacity 0.3s ease}.filterChipMenuIcon{background:grey;padding:8px;color:#3f51b5;}.additionalFilterChip{}.KPI{margin-left:auto;display:flex;gap:8px;color:grey;width:auto}.kpiValue{color:black;font-size:1.1em}.kpiItem{display:flex;justify-content:center;width:max-content}.kpiLabel{width:max-content;margin-right:8px;}.clickedChip{background-color:var(--primary-color);color:white;max-width:150px}";export{s as chip_section}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as e,a as r}from"./types-NqFGtWPW.js";import{m as l}from"./makeApiCall-B-daVutk.js";import{g as t}from"./tenantUtils-Basdb1b1.js";import{C as n}from"./configService-CehZzjhw.js";import{H as o,y as a}from"./apiUtils-CXqsYwOQ.js";import{g as i}from"./getCurrentApiCatalogId-DeurXd9l.js";import{m as u}from"./convertBackendTypeToAgGridType-B8xfl_wR.js";import{v4 as s}from"uuid";function d(r,l){return r===e.Table&&"domain"===(null==l?void 0:l.dataSource)}class m extends Error{constructor(e,r){super(e),this.questionId=r,this.name="FormParseError"}}function c(e){var r,l;const t={id:e.id,version:e.version,type:e.type,isPrivate:e.isPrivate,isActive:e.isActive,name:e.name,description:null!==(r=e.description)&&void 0!==r?r:null,tenantId:e.tenantId,styleOverrides:b(e.styleOverrides),createdOn:e.createdOn},n=e.udpFormUdpFormSection.map(f).sort(((e,r)=>e.order-r.order)),o=new Map;for(const r of e.formQuestions){const e=p(r);if(null==e.formSectionId)continue;const t=null!==(l=o.get(e.formSectionId))&&void 0!==l?l:[];t.push(e),o.set(e.formSectionId,t)}for(const e of o.values())e.sort(((e,r)=>e.questionOrder-r.questionOrder));const a=n.map((e=>{var r;return Object.assign(Object.assign({},e),{questions:null!==(r=o.get(e.id))&&void 0!==r?r:[]})}));return{form:t,sections:a}}function f(e){var r,l,t;return{id:e.id,formId:e.formId,formVersion:e.formVersion,title:null!==(r=e.title)&&void 0!==r?r:null,sectionText:null!==(l=e.sectionText)&&void 0!==l?l:null,order:e.order,sectionProperties:y(e.sectionProperties),name:e.name,referenceCode:null!==(t=e.referenceCode)&&void 0!==t?t:null}}function p(r){var l,t,n;if(!Object.prototype.hasOwnProperty.call(e,String(r.fieldTypeId)))throw new m(`Question ${r.id}: unknown fieldTypeId ${r.fieldTypeId}. The schema may be from a newer form version than this renderer supports.`,r.id);const o=r.fieldProperties;if(null!=o&&("object"!=typeof o||Array.isArray(o)))throw new m(`Question ${r.id}: fieldProperties must be an object, got ${Array.isArray(o)?"array":typeof o}.`,r.id);const{fieldProperties:a,lookupItems:i}=function(e){const r=e.lookupId;if(!("string"==typeof r&&r.length>0&&Array.isArray(e.items)))return{fieldProperties:e};const{items:l}=e;return{fieldProperties:function(e,r){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(l[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)r.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(l[t[n]]=e[t[n]])}return l}(e,["items"]),lookupItems:l}}(null!=o?o:{});return Object.assign({id:r.id,formId:r.formId,formVersion:r.formVersion,formSectionId:null!==(l=r.formSectionId)&&void 0!==l?l:null,name:r.name,questionText:r.questionText,fieldTypeId:r.fieldTypeId,fieldProperties:a,helperText:null!==(t=r.helperText)&&void 0!==t?t:null,questionOrder:r.questionOrder,required:r.required,referenceCode:null!==(n=r.referenceCode)&&void 0!==n?n:null},i?{lookupItems:i}:{})}function b(e){if(!e)return null;try{return JSON.parse(e)}catch(r){return console.warn("[udp-question-form] Failed to parse form.styleOverrides JSON; defaulting to null.",{raw:e,err:r}),null}}function y(e){if(!e)return{};try{return JSON.parse(e)}catch(r){return console.warn("[udp-question-form] Failed to parse section.sectionProperties JSON; defaulting to {}.",{raw:e,err:r}),{}}}const v={background:{backgroundImage:null,backgroundColor:null},headerBackgroundColor:null,fontFamily:null,helperText:{variant:null,fontFamily:null},questionText:{variant:null,fontFamily:null},titleText:{variant:null,fontFamily:null},paragraphText:{variant:null,fontFamily:null}};function g({tenantId:e}){return{id:"",version:1,type:r.Standard,isPrivate:!0,isActive:!0,name:"",description:null,tenantId:e,styleOverrides:v,createdOn:(new Date).toISOString()}}function P(e){const{order:r,formId:l="",formVersion:t=1,title:n=`Section ${r}`}=e;return{id:s(),formId:l,formVersion:t,title:n,sectionText:null,order:r,sectionProperties:{},name:`section${r}`,referenceCode:null,questions:[]}}function w(e){const{fieldTypeId:r,fieldProperties:l,questionOrder:t,formSectionId:n,formId:o="",formVersion:a=1}=e;return{id:s(),formId:o,formVersion:a,formSectionId:n,name:`question${t}`,questionText:"",fieldTypeId:r,fieldProperties:l,helperText:null,questionOrder:t,required:!1,referenceCode:null}}function h({tenantId:e}){return{form:g({tenantId:e}),sections:[P({order:1})]}}function T(e){if(null==e)return!0;if("string"==typeof e)return""===e.trim();if(Array.isArray(e))return 0===e.length;if("object"==typeof e){if("file"in e&&"fullName"in e)return!(e.file instanceof File);if("latitude"in e&&"longitude"in e)return null==e.latitude&&null==e.longitude;if("rows"in e&&Array.isArray(e.rows))return 0===e.rows.length}return!1}const N=/^\d{4}-\d{2}-\d{2}$/,F=/^\d{4}-\d{2}-\d{2}$/,M=/^\d{2}:\d{2}(?::\d{2})?$/,k=e=>5===e.length?`${e}:00`:e,$=/^\d{2}:\d{2}(?::\d{2})?$/,x=e=>5===e.length?`${e}:00`:e,O=/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}(?::\d{2})?$/,I=e=>{const r=e.replace(" ","T");return 16===r.length?`${r}:00`:r},D=/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}(?::\d{2})?$/,C=e=>{const r=e.replace(" ","T");return 16===r.length?`${r}:00`:r};function S(e){return`Select at least ${e} option${1===e?"":"s"}`}function q(e){return`Select at most ${e} option${1===e?"":"s"}`}function A(e){return`Add at least ${e} row${1===e?"":"s"}`}function j(e){return`No more than ${e} row${1===e?"":"s"} allowed`}function E(e){return`Must be a multiple of ${e}`}function U(e){return`Must have at most ${e} decimal place${1===e?"":"s"}`}function R(e,r){if("string"!=typeof e||!/^\d{4}-\d{2}-\d{2}$/.test(e))return null;const[l,t,n]=e.split("-").map(Number);let o=r.getFullYear()-l;const a=r.getMonth()+1-t;return(a<0||0===a&&r.getDate()<n)&&o--,o}function Y(e){return`Must be at least ${e} year${1===e?"":"s"} old`}function V(e){return`Must be at most ${e} year${1===e?"":"s"} old`}const L=[{ruleType:"required",appliesTo:[e.SingleLineText,e.MultiLineText,e.Checkbox,e.RadioButton,e.DropdownSingleSelect,e.DropdownMultipleSelect,e.ListMultiSelect,e.DateSelector,e.TimeSelector,e.DateTimeSelector,e.FileUpload,e.YesNo,e.Signature,e.Number,e.ImageUpload,e.Location,e.Table],runOnEmpty:!0,readParams:e=>!0===e.required||null,validateParams:()=>null,check:e=>T(e)?{message:"Required"}:null,defaultMessage:()=>"Required",builder:{label:"Required",description:"Block submit unless the user provides a value.",params:[],defaultParams:!0,enable:e=>e("required",!0),disable:e=>e("required",!1)}},{ruleType:"minLength",appliesTo:[e.SingleLineText,e.MultiLineText],readParams:e=>{const r=e.fieldProperties.minCharacter;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?e<0?"Minimum length must be 0 or greater.":null:"Enter a minimum length.",check:(e,r)=>("string"==typeof e?e.length:0)<r?{message:`Must be at least ${r} characters`}:null,defaultMessage:e=>`Must be at least ${e} characters`,builder:{label:"Minimum length",params:[{key:"value",formPath:"fieldProperties.minCharacter",label:"Minimum characters",type:"number",min:0}],defaultParams:1,enable:e=>e("fieldProperties.minCharacter",1),disable:e=>e("fieldProperties.minCharacter",void 0)}},{ruleType:"maxLength",appliesTo:[e.SingleLineText,e.MultiLineText],readParams:e=>{const r=e.fieldProperties.maxCharacter;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?e<0?"Maximum length must be 0 or greater.":null:"Enter a maximum length.",check:(e,r)=>("string"==typeof e?e.length:0)>r?{message:`Must be at most ${r} characters`}:null,defaultMessage:e=>`Must be at most ${e} characters`,builder:{label:"Maximum length",params:[{key:"value",formPath:"fieldProperties.maxCharacter",label:"Maximum characters",type:"number",min:0}],defaultParams:100,enable:e=>e("fieldProperties.maxCharacter",100),disable:e=>e("fieldProperties.maxCharacter",void 0)}},{ruleType:"pattern",appliesTo:[e.SingleLineText,e.MultiLineText],readParams:e=>{const r=e.fieldProperties,l=null==r?void 0:r.pattern;return"string"!=typeof l||0===l.length?null:{pattern:l,message:"string"==typeof(null==r?void 0:r.patternMessage)?r.patternMessage:void 0}},validateParams:({})=>{try{return null}catch(e){return`Invalid pattern: ${e.message}`}},check:(e,r)=>{var l;const t="string"==typeof e?e:String(null!=e?e:"");let n;try{n=new RegExp(r.pattern)}catch(e){return null}return n.test(t)?null:{message:null!==(l=r.message)&&void 0!==l?l:"Does not match the required format"}},defaultMessage:e=>{var r;return null!==(r=e.message)&&void 0!==r?r:"Does not match the required format"},builder:{label:"Pattern (regex)",description:"Block submit unless the value matches a regular expression.",params:[{key:"pattern",formPath:"fieldProperties.pattern",label:"Regular expression",type:"regex"},{key:"message",formPath:"fieldProperties.patternMessage",label:"Error message (optional)",type:"string"}],defaultParams:{pattern:""},enable:e=>e("fieldProperties.pattern",".*"),disable:e=>{e("fieldProperties.pattern",void 0),e("fieldProperties.patternMessage",void 0)}}},{ruleType:"minValue",appliesTo:[e.Number],readParams:e=>{const r=e.fieldProperties.minValue;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a minimum value.",check:(e,r)=>{const l="number"==typeof e?e:Number(e);return Number.isFinite(l)&&l<r?{message:`Must be at least ${r}`}:null},defaultMessage:e=>`Must be at least ${e}`,builder:{label:"Minimum value",params:[{key:"value",formPath:"fieldProperties.minValue",label:"Minimum value",type:"number"}],defaultParams:0,enable:e=>e("fieldProperties.minValue",0),disable:e=>e("fieldProperties.minValue",void 0)}},{ruleType:"maxValue",appliesTo:[e.Number],readParams:e=>{const r=e.fieldProperties.maxValue;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a maximum value.",check:(e,r)=>{const l="number"==typeof e?e:Number(e);return Number.isFinite(l)&&l>r?{message:`Must be at most ${r}`}:null},defaultMessage:e=>`Must be at most ${e}`,builder:{label:"Maximum value",params:[{key:"value",formPath:"fieldProperties.maxValue",label:"Maximum value",type:"number"}],defaultParams:100,enable:e=>e("fieldProperties.maxValue",100),disable:e=>e("fieldProperties.maxValue",void 0)}},{ruleType:"minDate",appliesTo:[e.DateSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.minDate;return"string"==typeof l&&N.test(l)?l:null},validateParams:e=>N.test(e)?null:"Must be a YYYY-MM-DD date.",check:(e,r)=>("string"==typeof e?e:"")<r?{message:`Must be on or after ${r}`}:null,defaultMessage:e=>`Must be on or after ${e}`,builder:{label:"Earliest date",params:[{key:"value",formPath:"fieldProperties.minDate",label:"Earliest allowed date",type:"date"}],defaultParams:"",enable:e=>e("fieldProperties.minDate",(new Date).toISOString().slice(0,10)),disable:e=>e("fieldProperties.minDate",void 0)}},{ruleType:"maxDate",appliesTo:[e.DateSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.maxDate;return"string"==typeof l&&F.test(l)?l:null},validateParams:e=>F.test(e)?null:"Must be a YYYY-MM-DD date.",check:(e,r)=>("string"==typeof e?e:"")>r?{message:`Must be on or before ${r}`}:null,defaultMessage:e=>`Must be on or before ${e}`,builder:{label:"Latest date",params:[{key:"value",formPath:"fieldProperties.maxDate",label:"Latest allowed date",type:"date"}],defaultParams:"",enable:e=>e("fieldProperties.maxDate",(new Date).toISOString().slice(0,10)),disable:e=>e("fieldProperties.maxDate",void 0)}},{ruleType:"noFutureDate",appliesTo:[e.DateSelector],readParams:e=>{var r;return!0===(null===(r=e.fieldProperties)||void 0===r?void 0:r.noFutureDate)||null},validateParams:()=>null,check:(e,r,l,t)=>("string"==typeof e?e:"")>t.now().toISOString().slice(0,10)?{message:"Future dates are not allowed"}:null,defaultMessage:()=>"Future dates are not allowed",builder:{label:"Disallow future dates",params:[],defaultParams:!0,enable:e=>e("fieldProperties.noFutureDate",!0),disable:e=>e("fieldProperties.noFutureDate",void 0)}},{ruleType:"minTime",appliesTo:[e.TimeSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.minTime;return"string"==typeof l&&M.test(l)?l:null},validateParams:e=>M.test(e)?null:"Must be a HH:mm[:ss] time.",check:(e,r)=>k("string"==typeof e?e:"")<k(r)?{message:`Must be at or after ${r}`}:null,defaultMessage:e=>`Must be at or after ${e}`,builder:{label:"Earliest time",params:[{key:"value",formPath:"fieldProperties.minTime",label:"Earliest allowed time",type:"time"}],defaultParams:"",enable:e=>e("fieldProperties.minTime","00:00"),disable:e=>e("fieldProperties.minTime",void 0)}},{ruleType:"maxTime",appliesTo:[e.TimeSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.maxTime;return"string"==typeof l&&$.test(l)?l:null},validateParams:e=>$.test(e)?null:"Must be a HH:mm[:ss] time.",check:(e,r)=>x("string"==typeof e?e:"")>x(r)?{message:`Must be at or before ${r}`}:null,defaultMessage:e=>`Must be at or before ${e}`,builder:{label:"Latest time",params:[{key:"value",formPath:"fieldProperties.maxTime",label:"Latest allowed time",type:"time"}],defaultParams:"",enable:e=>e("fieldProperties.maxTime","23:59"),disable:e=>e("fieldProperties.maxTime",void 0)}},{ruleType:"minDateTime",appliesTo:[e.DateTimeSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.minDateTime;return"string"==typeof l&&O.test(l)?l:null},validateParams:e=>O.test(e)?null:"Must be a YYYY-MM-DD HH:mm[:ss] datetime.",check:(e,r)=>I("string"==typeof e?e:"")<I(r)?{message:`Must be on or after ${r}`}:null,defaultMessage:e=>`Must be on or after ${e}`,builder:{label:"Earliest date/time",params:[{key:"value",formPath:"fieldProperties.minDateTime",label:"Earliest allowed date/time",type:"datetime"}],defaultParams:"",enable:e=>e("fieldProperties.minDateTime",`${(new Date).toISOString().slice(0,10)}T00:00`),disable:e=>e("fieldProperties.minDateTime",void 0)}},{ruleType:"maxDateTime",appliesTo:[e.DateTimeSelector],readParams:e=>{var r;const l=null===(r=e.fieldProperties)||void 0===r?void 0:r.maxDateTime;return"string"==typeof l&&D.test(l)?l:null},validateParams:e=>D.test(e)?null:"Must be a YYYY-MM-DD HH:mm[:ss] datetime.",check:(e,r)=>C("string"==typeof e?e:"")>C(r)?{message:`Must be on or before ${r}`}:null,defaultMessage:e=>`Must be on or before ${e}`,builder:{label:"Latest date/time",params:[{key:"value",formPath:"fieldProperties.maxDateTime",label:"Latest allowed date/time",type:"datetime"}],defaultParams:"",enable:e=>e("fieldProperties.maxDateTime",`${(new Date).toISOString().slice(0,10)}T23:59`),disable:e=>e("fieldProperties.maxDateTime",void 0)}},{ruleType:"noFutureDateTime",appliesTo:[e.DateTimeSelector],readParams:e=>{var r;return!0===(null===(r=e.fieldProperties)||void 0===r?void 0:r.noFutureDate)||null},validateParams:()=>null,check:(e,r,l,t)=>{const n="string"==typeof e?e:"",o=t.now().toISOString().slice(0,10);return n.slice(0,10)>o?{message:"Future dates are not allowed"}:null},defaultMessage:()=>"Future dates are not allowed",builder:{label:"Disallow future dates",params:[],defaultParams:!0,enable:e=>e("fieldProperties.noFutureDate",!0),disable:e=>e("fieldProperties.noFutureDate",void 0)}},{ruleType:"minSelections",appliesTo:[e.Checkbox,e.DropdownMultipleSelect,e.ListMultiSelect],runOnEmpty:!0,readParams:e=>{const r=e.fieldProperties.minSelections;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a minimum number of selections.",check:(e,r)=>Number.isFinite(r)&&(Array.isArray(e)?e.length:0)<r?{message:S(r)}:null,defaultMessage:S,builder:{label:"Minimum selections",description:"Require at least N options to be selected.",params:[{key:"value",formPath:"fieldProperties.minSelections",label:"Minimum selections",type:"number",min:0}],defaultParams:1,enable:e=>e("fieldProperties.minSelections",1),disable:e=>e("fieldProperties.minSelections",void 0)}},{ruleType:"maxSelections",appliesTo:[e.Checkbox,e.DropdownMultipleSelect,e.ListMultiSelect],readParams:e=>{const r=e.fieldProperties.maxSelections;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a maximum number of selections.",check:(e,r)=>Number.isFinite(r)&&(Array.isArray(e)?e.length:0)>r?{message:q(r)}:null,defaultMessage:q,builder:{label:"Maximum selections",description:"Limit how many options may be selected.",params:[{key:"value",formPath:"fieldProperties.maxSelections",label:"Maximum selections",type:"number",min:1}],defaultParams:1,enable:e=>e("fieldProperties.maxSelections",1),disable:e=>e("fieldProperties.maxSelections",void 0)}},{ruleType:"minRows",appliesTo:[e.Table],runOnEmpty:!0,readParams:e=>{const r=e.fieldProperties.minRows;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a minimum number of rows.",check:(e,r)=>{if(!Number.isFinite(r))return null;const l=function(e){const r=null==e?void 0:e.rows;return Array.isArray(r)?r.length:0}(e);return l<r?{message:A(r)}:null},defaultMessage:A,builder:{label:"Minimum rows",description:"Require at least N rows in the table.",params:[{key:"value",formPath:"fieldProperties.minRows",label:"Minimum rows",type:"number",min:0}],defaultParams:1,enable:e=>e("fieldProperties.minRows",1),disable:e=>e("fieldProperties.minRows",void 0)}},{ruleType:"maxRows",appliesTo:[e.Table],readParams:e=>{const r=e.fieldProperties.maxRows;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)?null:"Enter a maximum number of rows.",check:(e,r)=>{if(!Number.isFinite(r))return null;const l=function(e){const r=null==e?void 0:e.rows;return Array.isArray(r)?r.length:0}(e);return l>r?{message:j(r)}:null},defaultMessage:j,builder:{label:"Maximum rows",description:"Limit how many rows the table may contain.",params:[{key:"value",formPath:"fieldProperties.maxRows",label:"Maximum rows",type:"number",min:1}],defaultParams:1,enable:e=>e("fieldProperties.maxRows",1),disable:e=>e("fieldProperties.maxRows",void 0)}},{ruleType:"step",appliesTo:[e.Number],readParams:e=>{const r=e.fieldProperties.step;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)&&e>0?null:"Enter a positive step value.",check:(e,r)=>{if(!Number.isFinite(r)||r<=0)return null;const l="number"==typeof e?e:Number(e);if(!Number.isFinite(l))return null;const t=l/r;return Math.abs(t-Math.round(t))>1e-9?{message:E(r)}:null},defaultMessage:E,builder:{label:"Step (multiple of)",description:"Require the value to be a multiple of a given step.",params:[{key:"value",formPath:"fieldProperties.step",label:"Step",type:"number",min:0}],defaultParams:1,enable:e=>e("fieldProperties.step",1),disable:e=>e("fieldProperties.step",void 0)}},{ruleType:"maxDecimalPlaces",appliesTo:[e.Number],readParams:e=>{const r=e.fieldProperties.maxDecimalPlaces;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isInteger(e)&&e>=0?null:"Enter a whole number of decimal places (0 or more).",check:(e,r)=>{if(!Number.isInteger(r)||r<0)return null;const l="number"==typeof e?e:Number(e);return Number.isFinite(l)&&function(e){var r;if(Number.isInteger(e))return 0;const l=Math.abs(e).toString(),t=l.indexOf("e");if(-1!==t){const e=Number(l.slice(t+1)),n=(null!==(r=l.slice(0,t).split(".")[1])&&void 0!==r?r:"").length;return Math.max(0,n-e)}const n=l.indexOf(".");return-1===n?0:l.length-n-1}(l)>r?{message:U(r)}:null},defaultMessage:U,builder:{label:"Maximum decimal places",description:"Limit how many digits may follow the decimal point.",params:[{key:"value",formPath:"fieldProperties.maxDecimalPlaces",label:"Maximum decimal places",type:"number",min:0}],defaultParams:2,enable:e=>e("fieldProperties.maxDecimalPlaces",2),disable:e=>e("fieldProperties.maxDecimalPlaces",void 0)}},{ruleType:"minAge",appliesTo:[e.DateSelector],readParams:e=>{const r=e.fieldProperties.minAge;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)&&e>=0?null:"Enter a minimum age.",check:(e,r,l,t)=>{if(!Number.isFinite(r))return null;const n=R(e,t.now());return null==n?null:n<r?{message:Y(r)}:null},defaultMessage:Y,builder:{label:"Minimum age",description:"Require the date of birth to be at least N years ago.",params:[{key:"value",formPath:"fieldProperties.minAge",label:"Minimum age (years)",type:"number",min:0}],defaultParams:18,enable:e=>e("fieldProperties.minAge",18),disable:e=>e("fieldProperties.minAge",void 0)}},{ruleType:"maxAge",appliesTo:[e.DateSelector],readParams:e=>{const r=e.fieldProperties.maxAge;if(void 0===r)return null;if("number"==typeof r&&Number.isFinite(r))return r;if("string"==typeof r&&""!==r.trim()){const e=Number(r);if(Number.isFinite(e))return e}return Number.NaN},validateParams:e=>Number.isFinite(e)&&e>=0?null:"Enter a maximum age.",check:(e,r,l,t)=>{if(!Number.isFinite(r))return null;const n=R(e,t.now());return null==n?null:n>r?{message:V(r)}:null},defaultMessage:V,builder:{label:"Maximum age",description:"Require the date of birth to be at most N years ago.",params:[{key:"value",formPath:"fieldProperties.maxAge",label:"Maximum age (years)",type:"number",min:0}],defaultParams:120,enable:e=>e("fieldProperties.maxAge",120),disable:e=>e("fieldProperties.maxAge",void 0)}},{ruleType:"integerOnly",appliesTo:[e.Number],readParams:e=>!0===e.fieldProperties.integerOnly||null,validateParams:()=>null,check:e=>{const r="number"==typeof e?e:Number(e);return Number.isFinite(r)?Number.isInteger(r)?null:{message:"Must be a whole number"}:null},defaultMessage:()=>"Must be a whole number",builder:{label:"Whole numbers only",description:"Reject values with a decimal part.",params:[],defaultParams:!0,enable:e=>e("fieldProperties.integerOnly",!0),disable:e=>e("fieldProperties.integerOnly",void 0)}},{ruleType:"noPastDate",appliesTo:[e.DateSelector],readParams:e=>{var r;return!0===(null===(r=e.fieldProperties)||void 0===r?void 0:r.noPastDate)||null},validateParams:()=>null,check:(e,r,l,t)=>{const n="string"==typeof e?e:"",o=t.now().toISOString().slice(0,10);return""!==n&&n<o?{message:"Past dates are not allowed"}:null},defaultMessage:()=>"Past dates are not allowed",builder:{label:"Disallow past dates",params:[],defaultParams:!0,enable:e=>e("fieldProperties.noPastDate",!0),disable:e=>e("fieldProperties.noPastDate",void 0)}},{ruleType:"noPastDateTime",appliesTo:[e.DateTimeSelector],readParams:e=>{var r;return!0===(null===(r=e.fieldProperties)||void 0===r?void 0:r.noPastDate)||null},validateParams:()=>null,check:(e,r,l,t)=>{const n="string"==typeof e?e:"",o=t.now().toISOString().slice(0,10);return""!==n&&n.slice(0,10)<o?{message:"Past dates are not allowed"}:null},defaultMessage:()=>"Past dates are not allowed",builder:{label:"Disallow past dates",params:[],defaultParams:!0,enable:e=>e("fieldProperties.noPastDate",!0),disable:e=>e("fieldProperties.noPastDate",void 0)}},{ruleType:"mustBeYes",appliesTo:[e.YesNo],runOnEmpty:!0,readParams:e=>!0===e.fieldProperties.mustBeYes||null,validateParams:()=>null,check:e=>"true"===e||!0===e?null:{message:"This must be set to Yes"},defaultMessage:()=>"This must be set to Yes",builder:{label:"Must be Yes",description:"Require the answer to be Yes (e.g. consent / attestation).",params:[],defaultParams:!0,enable:e=>e("fieldProperties.mustBeYes",!0),disable:e=>e("fieldProperties.mustBeYes",void 0)}}];function B(e,r){if(Array.isArray(e.items)&&e.items.length>0)return new Set(e.items.map((e=>String(e.value))));if("string"==typeof e.lookupId&&e.lookupId.length>0){const l=r.resolveLookupOptions(e.lookupId);return l?new Set(l.map(String)):null}return null}const J={ruleType:"table.cellShape",appliesTo:[e.Table],check:(e,r,l)=>{var t,n;if(d(r.fieldTypeId,r.fieldProperties))return H.check(e,r,l);const o=null!==(t=r.fieldProperties.columns)&&void 0!==t?t:[],a=Array.isArray(null==e?void 0:e.rows)?e.rows:[];for(let e=0;e<a.length;e++){const r=a[e];for(const l of o){const t=null!==(n=l.id)&&void 0!==n?n:l.name;if(!t)continue;const o=null==r?void 0:r[t],a=null==o||"string"==typeof o&&""===o.trim();if(l.required&&a)return{message:`Row ${e+1}: ${l.name} is required`};if("number"===l.type&&!a){const r="number"==typeof o?o:Number(o);if(!Number.isFinite(r))return{message:`Row ${e+1}: ${l.name} must be a number`}}}}return null}},H={ruleType:"domainTable.cellShape",appliesTo:[],check:(e,r)=>{var l;const t=null!==(l=r.fieldProperties.columns)&&void 0!==l?l:[],n=t.filter((e=>e.editable)),o=t.filter((e=>e.show&&(!e.isKey||"lookup"===e.type&&!!e.lookupId))),a=Array.isArray(null==e?void 0:e.rows)?e.rows:[],i=!0===r.required;for(let e=0;e<a.length;e++){const r=a[e];for(const l of!0===(null==r?void 0:r._added)?o:n){const t=null==r?void 0:r[l.key],n=null==t||"string"==typeof t&&""===t.trim();if((l.required||i)&&n)return{message:`Row ${e+1}: ${l.displayName||l.key} is required`};if("number"===l.type&&!n){const r="number"==typeof t?t:Number(t);if(!Number.isFinite(r))return{message:`Row ${e+1}: ${l.displayName||l.key} must be a number`}}}}return null}},G=[{ruleType:"choice.singleMembership",appliesTo:[e.RadioButton,e.DropdownSingleSelect],check:(e,r,l)=>{const t=B(r.fieldProperties,l);return t?t.has(String(e))?null:{message:"Selected option is no longer valid"}:null}},{ruleType:"choice.multiMembership",appliesTo:[e.Checkbox,e.DropdownMultipleSelect,e.ListMultiSelect],check:(e,r,l)=>{const t=B(r.fieldProperties,l);if(!t)return null;if(!Array.isArray(e))return null;for(const r of e)if(!t.has(String(r)))return{message:"One or more selected options are no longer valid"};return null}},J],Q=new Map,z=[];function W(e){Q.set(e.ruleType,e)}function K(e){z.push(e)}function X(e){return Q.get(e)}function Z(e){const r=[];for(const l of Q.values())l.appliesTo.includes(e)&&r.push(l);return r}function _(e){return z.filter((r=>r.appliesTo.includes(e)))}for(const e of L)W(e);for(const e of G)K(e);const ee=e=>"number"===e,re=(e,r,l)=>{const t=`${e}-${(e=>String(e||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"column")(r)}`;let n=t,o=2;for(;l.has(n);)n=`${t}-${o}`,o+=1;return l.add(n),n},le=e=>{const r=new Set;for(const l of e||[])"string"==typeof(null==l?void 0:l.id)&&l.id.length>0&&r.add(l.id);return(e||[]).map(((e,l)=>Object.assign(Object.assign({},e),{uiKey:(null==e?void 0:e.uiKey)||`table-col-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,id:"string"==typeof(null==e?void 0:e.id)&&e.id.length>0?e.id:re(l+1,null==e?void 0:e.name,r)})))},te=()=>({name:"Column 1",type:"text",required:!1}),ne=[{fieldTypeId:e.Hidden,questionTypeName:"Hidden",icon:"eye-off",category:"Display",keywords:["hidden","metadata","system"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.SingleLineText,questionTypeName:"Single Line Text",icon:"text-font",category:"Text",keywords:["text","short","input","single line"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.MultiLineText,questionTypeName:"Multi Line Text",icon:"text-paragraph",category:"Text",keywords:["text","long","textarea","multiline","paragraph"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.Checkbox,questionTypeName:"Checkbox",icon:"checkbox-checked",category:"Choice",keywords:["checkbox","check","multi","options","list"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:e.RadioButton,questionTypeName:"Radio Button",icon:"radio-button",category:"Choice",keywords:["option","select","radio","single"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:e.DropdownSingleSelect,questionTypeName:"Single Select Dropdown",icon:"chevron-down",category:"Choice",keywords:["dropdown","select","single","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:e.DropdownMultipleSelect,questionTypeName:"Multiselect Dropdown",icon:"list",category:"Choice",keywords:["dropdown","select","multiple","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:e.ListMultiSelect,questionTypeName:"List",icon:"apps-list-detail",category:"Choice",keywords:["list","select","multiple","options"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:e.DateSelector,questionTypeName:"Date Selector",icon:"calendar",category:"Date & Time",keywords:["date","calendar","day"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.TimeSelector,questionTypeName:"Time Selector",icon:"clock",category:"Date & Time",keywords:["time","clock","hour"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.DateTimeSelector,questionTypeName:"DateTime Selector",icon:"calendar-clock",category:"Date & Time",keywords:["date","time","datetime","calendar"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.FileUpload,questionTypeName:"File Upload",icon:"cloud-upload",category:"File & Signature",keywords:["file","upload","attachment","document"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideDragAndDrop:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:e.YesNo,questionTypeName:"Yes/No",icon:"checkmark",category:"Choice",keywords:["yes","no","boolean","toggle","binary"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.Signature,questionTypeName:"Signature",icon:"document",category:"File & Signature",keywords:["signature","sign","capture"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,includeLocation:!1,readOnly:!1}},{fieldTypeId:e.Tally,questionTypeName:"Tally Display",icon:"apps-list",category:"Display",keywords:["tally","count","display","read-only","number"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,ignoreRequiredConfig:!0,readOnly:!1,tallyMode:"all",includeFields:[],excludeFields:[]}},{fieldTypeId:e.Number,questionTypeName:"Numeric",icon:"number",category:"Text",keywords:["number","numeric","integer","quantity"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.Paragraph,questionTypeName:"Paragraph",icon:"text-paragraph",category:"Text",keywords:["paragraph","static","display","content","richtext"],defaultFieldProperties:{paragraphText:""},questionTextOptional:!0},{fieldTypeId:e.ImageUpload,questionTypeName:"Image Upload",icon:"cloud-upload",category:"File & Signature",keywords:["image","photo","picture","upload"],defaultFieldProperties:{hideDragAndDrop:!1,allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:e.FormMetadataDisplay,questionTypeName:"Form Metadata Display",icon:"person",category:"Display",keywords:["metadata","submitter","owner","submission date","display"],defaultFieldProperties:{displayOwnerFullName:!0,displayOwnerEmail:!0,displaySubmissionDate:!0,allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:e.Location,questionTypeName:"Location",icon:"location",category:"Location",keywords:["address","location","map","geolocation","place"],defaultFieldProperties:{readOnly:!1}},{fieldTypeId:e.Table,questionTypeName:"Table",icon:"table",category:"Display",keywords:["table","columns","grid","rows","data"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1,columns:le([{name:"Column 1",type:"text",required:!1}])}}];function oe(e){return ne.find((r=>r.fieldTypeId===e))}function ae(e){var r;if(e.some((e=>{var r,l;return!(null===(r=e.display)||void 0===r?void 0:r.trim())||!(null===(l=e.value)||void 0===l?void 0:l.trim())})))return"Every option needs both a display label and a value.";const l=new Set;for(const t of e){const e=(null!==(r=t.value)&&void 0!==r?r:"").trim();if(l.has(e))return"Each option must have a unique value.";l.add(e)}return null}function ie(e,r){var l,t;const n=r(e.fieldTypeId);if(!(n&&n.questionTextOptional||(null===(l=e.questionText)||void 0===l?void 0:l.trim())))return"Question text is required.";if(null==n?void 0:n.isContainsOptionItems){const r=null!==(t=e.fieldProperties)&&void 0!==t?t:{};if(!r.lookupId){if(!Array.isArray(r.items)||0===r.items.length)return"This choice question needs at least one option, or a lookup source.";const e=ae(r.items);if(e)return e}}if(null==n?void 0:n.validate){const r=n.validate(e);if(r)return r}return null}function ue(e,r,l){const t=function(e){var r;return(null===(r=e.name)||void 0===r?void 0:r.trim())?{valid:!0}:{valid:!1,firstError:"Please enter a form name."}}(e);if(!t.valid)return t;const n=function(e){var r;if(e.length<1)return{valid:!1,firstError:"Please add at least one section to the form."};for(let l=0;l<e.length;l++){const t=e[l];if((null!==(r=null==t?void 0:t.questions)&&void 0!==r?r:[]).length<1)return{valid:!1,firstError:`Section ${(null==t?void 0:t.title)?`"${t.title}"`:`#${l+1}`} must contain at least one question.`}}return{valid:!0}}(r);return n.valid?function(e,r){var l,t,n;for(let o=0;o<e.length;o++){const a=e[o],i=null!==(l=a.questions)&&void 0!==l?l:[];for(let e=0;e<i.length;e++){const l=i[e],u=ie(l,r);if(u)return{valid:!1,firstError:`Section ${(null===(t=a.title)||void 0===t?void 0:t.trim())?`"${a.title}"`:`#${o+1}`}, question ${(null===(n=l.questionText)||void 0===n?void 0:n.trim())?`"${l.questionText}"`:`#${e+1}`}: ${u}`}}}return{valid:!0}}(r,l):n}async function se(){try{const e=t();return function(e){if(Array.isArray(e))return e;if(e&&"object"==typeof e){if("pageList"in e&&Array.isArray(e.pageList))return e.pageList;if("data"in e){const r=e.data;if(Array.isArray(r))return r;if(r&&"object"==typeof r&&"pageList"in r){const e=r.pageList;if(Array.isArray(e))return e}}}return[]}(await l("POST",`${n.productV1ApiUrl}/UdpFormLatestVersionView/search`,{eagerLoad:!1,pageNumber:1,pageSize:200,filterElements:[{searchField:"type",searchOperator:"=",searchValue:r.FollowUp},{searchField:"tenantId",searchOperator:"=",searchValue:e}],orderElements:[{sortColumn:"name",sortDirection:"ASC"}]})).filter((e=>"string"==typeof(null==e?void 0:e.id)&&e.id.length>0)).map((e=>{var r;return{value:e.id,label:(null===(r=e.name)||void 0===r?void 0:r.trim())||"(untitled form)"}}))}catch(e){return[]}}class de extends Error{constructor(e){super(`Form not found: ${e}`),this.formId=e,this.name="FormNotFoundError"}}async function me(e,r,t){var o,a;if(!e)return{loadedForm:h({tenantId:null!==(a=null===(o=null==t?void 0:t())||void 0===o?void 0:o.id)&&void 0!==a?a:""}),isNewForm:!0,isMostRecentFormVersion:!1};const i=await l("GET",`${n.productV1ApiUrl}/UdpForm/${e}/describe`);if(!(null==i?void 0:i.id))throw new de(e);if(null==r||i.version===r)return{loadedForm:c(i),isNewForm:!1,isMostRecentFormVersion:!0};const u=await l("GET",`${n.productV1ApiUrl}/UdpForm/${e}/describe?formVersion=${r}`);if(!(null==u?void 0:u.id))throw new de(e);return{loadedForm:c(u),isNewForm:!1,isMostRecentFormVersion:!1}}async function ce(){try{const e=await l("GET",`${n.productV1ApiUrl}/UdpLookup`);return Array.isArray(e)?e.map((e=>Object.assign(Object.assign({},e),{value:e.id,label:e.name}))):[]}catch(e){return[]}}async function fe(e){var r,l;try{const t=null===(l=null===(r=await o(i()))||void 0===r?void 0:r.unityBaseGetDescriptionMethod)||void 0===l?void 0:l.apiMethodId;if(!t)return[];const n=await a({data:{id:e}},t);return Array.isArray(n)?n:[]}catch(e){return[]}}async function pe(e){try{const r=await l("GET",`${n.productV1ApiUrl}/UdpObjectInfo/domain/${encodeURIComponent(e)}`);return Array.isArray(null==r?void 0:r.objectFieldInfo)?r.objectFieldInfo:[]}catch(e){return[]}}function be(e){const r=u(null!=e?e:"");return"number"===r?"number":"boolean"===r?"boolean":"dateTimeString"===r||"dateString"===r?"datetime":"text"}async function ye(e,r){if(!r)return fe(e);const[l,t]=await Promise.all([fe(e),pe(r)]);if(0===t.length)return l;const n=new Map(l.filter((e=>"string"==typeof(null==e?void 0:e.key))).map((e=>[e.key.toLowerCase(),e])));return t.filter((e=>"string"==typeof(null==e?void 0:e.name)&&e.name)).map((e=>{var r,l,t,o;const a=null!==(r=n.get(e.name.toLowerCase()))&&void 0!==r?r:e.sanitizedName?n.get(e.sanitizedName.toLowerCase()):void 0;return{key:null!==(l=null==a?void 0:a.key)&&void 0!==l?l:(i=e.sanitizedName||e.name,i.charAt(0).toLowerCase()+i.slice(1)),displayName:null!==(t=null==a?void 0:a.displayName)&&void 0!==t?t:e.name,type:"lookup"===(null==a?void 0:a.type)?"lookup":be(e.dataType),lookupId:null==a?void 0:a.lookupId,isKey:null!==(o=null==a?void 0:a.isKey)&&void 0!==o?o:e.isPrimaryKey};var i}))}async function ve(e,r){const t=function(e){let r=0;const l=function(e){var r;const l="string"==typeof e.id?e.id.trim():"",t={version:e.version,type:e.type,isPrivate:e.isPrivate,isActive:e.isActive,name:e.name,description:e.description,tenantId:e.tenantId,styleOverrides:JSON.stringify(null!==(r=e.styleOverrides)&&void 0!==r?r:{})};return l.length>0&&(t.id=l),t}(e.form),t=e.sections.map(((e,r)=>function(e,r){var l;return{id:e.id,title:e.title,sectionText:e.sectionText,order:r,sectionProperties:JSON.stringify(null!==(l=e.sectionProperties)&&void 0!==l?l:{}),name:`section${r}`,referenceCode:e.referenceCode}}(e,r+1))),n=e.sections.flatMap((e=>e.questions.map((l=>(r+=1,Object.assign(Object.assign({},function(e,r){var l;return{id:e.id,name:`question${r}`,questionText:e.questionText,fieldTypeId:e.fieldTypeId,fieldProperties:null!==(l=e.fieldProperties)&&void 0!==l?l:{},helperText:e.helperText,questionOrder:r,required:e.required,referenceCode:e.referenceCode}}(l,r)),{formSectionId:e.id}))))));return Object.assign(Object.assign({},l),{udpFormUdpFormSection:t,formQuestions:n})}(e),o="string"==typeof t.id?t.id.trim():"",a=r&&o.length>0,i=a?`${n.productV1ApiUrl}/UdpForm/${o}/full`:`${n.productV1ApiUrl}/UdpForm/full`,u=a?"PUT":"POST",s=await l(u,i,t);if(!(null==s?void 0:s.id)||null==s.version)throw new Error(`Invalid form response: ${JSON.stringify(s)}`);return{formId:s.id,formVersion:s.version,loadedForm:c(s)}}function ge(e){if(!(e instanceof File))return null;const r=e.driveFileId;return"string"==typeof r&&r.length>0?r:null}function Pe(e,r){return e.legacyValueToken=r,e}function we(e){const r=null==e?void 0:e.legacyValueToken;return"string"==typeof r&&r.length>0?r:null}var he;!function(e){e[e.InProgress=1]="InProgress",e[e.Submitted=2]="Submitted",e[e.Created=3]="Created"}(he||(he={}));const Te={decode:()=>null,encode:()=>""},Ne={decode:e=>null==e||""===e?null:e,encode:e=>null!=e?e:""},Fe={decode:e=>{if(null==e||""===e)return null;const r=Number(e);return Number.isFinite(r)?r:null},encode:e=>null==e?"":String(e)},Me={decode:e=>null==e||""===e?null:e.split(",").map((e=>e.trim())).filter((e=>e.length>0)),encode:e=>null==e||0===e.length?"":e.join(",")};function ke(e){var r,l,t,n,o,a,i;const u=null!==(r=e.address)&&void 0!==r?r:"";return u.length>0||null!=e.streetNumber||null!=e.streetName||null!=e.municipality||null!=e.countrySubdivisionName||null!=e.postalCode||null!=e.country?{freeformAddress:u,streetNumber:null!==(l=e.streetNumber)&&void 0!==l?l:void 0,streetName:null!==(t=e.streetName)&&void 0!==t?t:void 0,municipality:null!==(n=e.municipality)&&void 0!==n?n:void 0,countrySubdivisionName:null!==(o=e.countrySubdivisionName)&&void 0!==o?o:void 0,postalCode:null!==(a=e.postalCode)&&void 0!==a?a:void 0,country:null!==(i=e.country)&&void 0!==i?i:void 0}:null}const $e={decode:e=>{var r,l,t;if(null==e||""===e)return null;let n;try{n=JSON.parse(e)}catch(r){return Pe({latitude:null,longitude:null,address:null,timestamp:null},e)}return{latitude:null!==(r=n.latitude)&&void 0!==r?r:null,longitude:null!==(l=n.longitude)&&void 0!==l?l:null,address:ke(n),timestamp:null!==(t=n.timestamp)&&void 0!==t?t:null}},encode:e=>{var r,l,t,n,o,a,i,u,s,d,m;if(null==e)return"";const c=we(e);if(null!=c)return c;if(null==e.latitude&&null==e.longitude&&!e.address)return"";const f={latitude:null!==(r=e.latitude)&&void 0!==r?r:null,longitude:null!==(l=e.longitude)&&void 0!==l?l:null,address:null!==(n=null===(t=e.address)||void 0===t?void 0:t.freeformAddress)&&void 0!==n?n:null,streetNumber:null===(o=e.address)||void 0===o?void 0:o.streetNumber,streetName:null===(a=e.address)||void 0===a?void 0:a.streetName,municipality:null===(i=e.address)||void 0===i?void 0:i.municipality,countrySubdivisionName:null===(u=e.address)||void 0===u?void 0:u.countrySubdivisionName,postalCode:null===(s=e.address)||void 0===s?void 0:s.postalCode,country:null===(d=e.address)||void 0===d?void 0:d.country,timestamp:null!==(m=e.timestamp)&&void 0!==m?m:null};return JSON.stringify(f)}},xe={decode:e=>{if(null==e||""===e)return null;const r=e.split(",").map((e=>e.trim())).filter((e=>e.length>0));if(0===r.length)return null;const l=[];for(const e of r){const r=Oe(e);r&&l.push(r)}return l.length>0?l:null},encode:e=>null==e||0===e.length?"":e.map((e=>"pending"===e.kind?encodeURIComponent(e.file.name):`${encodeURIComponent(e.name)}|udp:${e.driveFileId}`)).join(",")};function Oe(e){const r=e.indexOf("|");if(r<0){let r=e;try{r=decodeURIComponent(e)}catch(e){}return{kind:"stored",name:r,driveFileId:""}}const l=e.slice(0,r),t=e.slice(r+1);let n=l;try{n=decodeURIComponent(l)}catch(e){n=l}return t.startsWith("udp:")?{kind:"stored",name:n,driveFileId:t.slice(4)}:t.startsWith("b64:")?{kind:"stored",name:n,driveFileId:""}:null}const Ie={decode:e=>{if(null==e||""===e)return null;const r=function(e){const r=e.indexOf("|");let l=e,t="";if(r>=0){l=e.slice(0,r);const n=e.slice(r+1);n.startsWith("udp:")&&(t=n.slice(4))}let n=l;try{n=decodeURIComponent(l)}catch(e){n=l}const o=new Blob([""],{type:"image/png"}),a=new File([o],n,{type:"image/png"});return t&&(a.driveFileId=t),a}(e);return{file:r,fullName:null,metadata:null}},encode:e=>{if(null==e)return"";if(!(e.file instanceof File))return"";const r=ge(e.file);return r?`${encodeURIComponent(e.file.name)}|udp:${r}`:encodeURIComponent(e.file.name)}},De={decode:e=>{var r;if(null==e||""===e)return{rows:[]};let l;try{l=JSON.parse(e)}catch(e){return{rows:[]}}const t=l,n=null!==(r=null==t?void 0:t.rows)&&void 0!==r?r:null==t?void 0:t.Rows;if(!Array.isArray(n))return{rows:[]};const o={rows:n.filter((e=>null!=e&&"object"==typeof e&&!Array.isArray(e)))};return!0===(null==t?void 0:t.snapshot)&&(o.snapshot=!0),o},encode:e=>e&&Array.isArray(e.rows)?0===e.rows.length&&!0!==e.snapshot?"":JSON.stringify(Object.assign({rows:e.rows},e.snapshot?{snapshot:!0}:{})):""},Ce={[e.Hidden]:Ne,[e.Paragraph]:Te,[e.Tally]:Te,[e.FormMetadataDisplay]:Te,[e.SingleLineText]:Ne,[e.MultiLineText]:Ne,[e.RadioButton]:Ne,[e.DropdownSingleSelect]:Ne,[e.YesNo]:{decode:e=>"true"===e||"false"===e||"na"===e?e:null,encode:e=>null==e?"":"boolean"==typeof e?e?"true":"false":"true"===e||"false"===e||"na"===e?e:""},[e.Checkbox]:Me,[e.DropdownMultipleSelect]:Me,[e.ListMultiSelect]:Me,[e.Number]:Fe,[e.DateSelector]:Ne,[e.TimeSelector]:Ne,[e.DateTimeSelector]:Ne,[e.Location]:$e,[e.FileUpload]:xe,[e.ImageUpload]:xe,[e.Signature]:Ie,[e.Table]:De};function Se(e,r){const l=Ce[e];return l?l.decode(r):null}function qe(e,r){const l=Ce[e];return l?l.encode(r):""}function Ae(e){return void 0!==Ce[e]}function je(r,l,t){var n,o,a,i,u,s,d,m,c;if(r===e.Signature){const e=null!==(n=null==t?void 0:t.signature)&&void 0!==n?n:null,r=null!=l?l:null;return e||r?{file:null!==(o=null==r?void 0:r.file)&&void 0!==o?o:null,fullName:null!==(i=null!==(a=null==e?void 0:e.fullName)&&void 0!==a?a:null==r?void 0:r.fullName)&&void 0!==i?i:null,metadata:null!=e?{timestamp:null!==(u=e.timestamp)&&void 0!==u?u:null,latitude:null!==(s=e.latitude)&&void 0!==s?s:null,longitude:null!==(d=e.longitude)&&void 0!==d?d:null}:null!==(m=null==r?void 0:r.metadata)&&void 0!==m?m:null}:null}return r===e.Location?function(e,r){var l,t,n;if(e&&(null!=e.latitude||null!=e.longitude||null!=e.address))return e;if(!r)return e;const o={latitude:null!==(l=r.latitude)&&void 0!==l?l:null,longitude:null!==(t=r.longitude)&&void 0!==t?t:null,address:ke(r),timestamp:null!==(n=r.timestamp)&&void 0!==n?n:null},a=we(e);return null!=a?Pe(o,a):o}(l,null!==(c=null==t?void 0:t.location)&&void 0!==c?c:null):l}function Ee(r){const l=[];for(const{fieldTypeId:t,value:n}of r)switch(t){case e.FileUpload:case e.ImageUpload:if(!Array.isArray(n))break;for(const e of n)"pending"===(null==e?void 0:e.kind)&&e.file instanceof File&&l.push(e.file);break;case e.Signature:{const e=n;(null==e?void 0:e.file)instanceof File&&null==ge(e.file)&&l.push(e.file);break}}return l}function Ue(e,r){const l=[];for(const t of e.sections)for(const e of t.questions)l.push({fieldTypeId:e.fieldTypeId,value:r[e.id]});return Ee(l)}function Re(r,l,t){var n,o,a,i,u;if(r===e.Signature){const e=(null==l?void 0:l.file)instanceof File,r=null!==(n=null==l?void 0:l.fullName)&&void 0!==n?n:null,s=null!==(o=null==l?void 0:l.metadata)&&void 0!==o?o:null;return e||null!=r&&""!==r||null!=s?Object.assign(Object.assign({},null!=t&&"object"==typeof t?t:{}),{signature:{latitude:null!==(a=null==s?void 0:s.latitude)&&void 0!==a?a:null,longitude:null!==(i=null==s?void 0:s.longitude)&&void 0!==i?i:null,timestamp:null!==(u=null==s?void 0:s.timestamp)&&void 0!==u?u:null,fullName:r}}):t}return r===e.Location?function(e,r){var l,t,n,o,a,i,u,s,d,m,c,f,p,b,y,v,g;if(null!=we(e))return r;const P=null!=r&&"object"==typeof r?r:{};return null==e||null==e.latitude&&null==e.longitude&&null==e.address?null==P.location?r:Object.assign(Object.assign({},P),{location:null}):Object.assign(Object.assign({},P),{location:{latitude:null!==(l=e.latitude)&&void 0!==l?l:null,longitude:null!==(t=e.longitude)&&void 0!==t?t:null,timestamp:null!==(n=e.timestamp)&&void 0!==n?n:null,address:null!==(a=null===(o=e.address)||void 0===o?void 0:o.freeformAddress)&&void 0!==a?a:null,streetNumber:null!==(u=null===(i=e.address)||void 0===i?void 0:i.streetNumber)&&void 0!==u?u:null,streetName:null!==(d=null===(s=e.address)||void 0===s?void 0:s.streetName)&&void 0!==d?d:null,municipality:null!==(c=null===(m=e.address)||void 0===m?void 0:m.municipality)&&void 0!==c?c:null,countrySubdivisionName:null!==(p=null===(f=e.address)||void 0===f?void 0:f.countrySubdivisionName)&&void 0!==p?p:null,country:null!==(y=null===(b=e.address)||void 0===b?void 0:b.country)&&void 0!==y?y:null,postalCode:null!==(g=null===(v=e.address)||void 0===v?void 0:v.postalCode)&&void 0!==g?g:null}})}(l,t):t}export{Ue as A,c as B,d as C,ge as D,de as F,he as S,oe as a,Z as b,h as c,Se as d,qe as e,ne as f,X as g,P as h,w as i,ce as j,se as k,me as l,ie as m,T as n,_ as o,ae as p,le as q,te as r,ve as s,ee as t,ye as u,ue as v,je as w,Re as x,Ae as y,Ee as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t;class _{static set config(t){this._config=Object.assign(Object.assign({},this._config),t),this._isConfigSet=!0,this._resolveConfigPromise()}static get config(){return this._config}static async waitForConfig(){this._isConfigSet||await this._configPromise}static get integrationV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.INTEGRATION_V1_API_BASE}static get integrationV2ApiUrl(){return this._config.UNITY_API_DOMAIN+this.INTEGRATION_V2_API_BASE}static get securityV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.SECURITY_SERVICE_V1_API_BASE}static get securityV2ApiUrl(){return this._config.UNITY_API_DOMAIN+this.SECURITY_SERVICE_V2_API_BASE}static get tenantV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.TENANT_V1_API_BASE}static get tenantV2ApiUrl(){return this._config.UNITY_API_DOMAIN+this.TENANT_V2_API_BASE}static get productV1ApiUrl(){return this._config.PRODUCT_API_DOMAIN+this.V1_API_BASE}static get supportV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.SUPPORT_V1_API_BASE}static get builderV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.BUILDER__V1_API_BASE}static get pgV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.PG_V1_API_BASE}static get maestroV1ApiUrl(){return this._config.UNITY_API_DOMAIN+this.MAESTRO_V1_API_BASE}static loadConfig(t,_="VITE_"){const i=import.meta,A=t||(void 0!==import.meta&&i.env?i.env:"undefined"!=typeof process?process.env:{}),I=(t,i)=>{var I;return null!==(I=A[`${_}${t}`])&&void 0!==I?I:i};this.config={UNITY_API_DOMAIN:I("UNITY_API_DOMAIN",this._config.UNITY_API_DOMAIN),PRODUCT_API_DOMAIN:I("PRODUCT_API_DOMAIN",this._config.PRODUCT_API_DOMAIN),UNITY_PRODUCT_ID:I("UNITY_PRODUCT_ID",this._config.UNITY_PRODUCT_ID),MSAL_CLIENT_ID:I("MSAL_CLIENT_ID",this._config.MSAL_CLIENT_ID),MSAL_TENANT:I("MSAL_TENANT",this._config.MSAL_TENANT),MSAL_API_ACCESS_SCOPE:I("MSAL_API_ACCESS_SCOPE",this._config.MSAL_API_ACCESS_SCOPE),UNITY_URL:I("UNITY_URL",this._config.UNITY_URL),UNITY_TENANT_ID:I("UNITY_TENANT_ID",this._config.UNITY_TENANT_ID),UNITY_VERTICAL_ID:I("UNITY_VERTICAL_ID",this._config.UNITY_VERTICAL_ID),USE_AAD_REDIRECT:((t,i=!1)=>{const I=A[`${_}${"USE_AAD_REDIRECT"}`];return"true"===I||void 0===I&&i})(0,this._config.USE_AAD_REDIRECT),UNITY_ENVIRONMENT:(()=>{const t=A[`${_}UNITY_ENVIRONMENT`];if(void 0===t)return this._config.UNITY_ENVIRONMENT;const i=t.toLowerCase();if(![void 0,"development","production","staging","build"].includes(i))throw new Error(`Invalid UNITY_ENVIRONMENT value: "${t}". Must be one of: development, production, staging, build`);return i})(),SIGN_IN_POLICY:I("SIGN_IN_POLICY",this._config.SIGN_IN_POLICY),UDPAI_API_BASE:I("UDPAI_API_BASE",this._config.UDPAI_API_BASE),UDP_AI_GATEWAY_BASE:I("UDP_AI_GATEWAY_BASE",this._config.UDP_AI_GATEWAY_BASE),AI_SEARCH_URL:I("AI_SEARCH_URL",this._config.AI_SEARCH_URL),AI_SEARCH_KEY:I("AI_SEARCH_KEY",this._config.AI_SEARCH_KEY),AI_SEARCH_INDEX_NAME:I("AI_SEARCH_INDEX_NAME",this._config.AI_SEARCH_INDEX_NAME),AZURE_MAP_SUBSCRIPTION_KEY:I("AZURE_MAP_SUBSCRIPTION_KEY",this._config.AZURE_MAP_SUBSCRIPTION_KEY)},console.log({config:this.config})}static loadConfigObject(t){const _=[void 0,"development","production","staging","build"];let i=t.UNITY_ENVIRONMENT;if("string"==typeof i){const t=i.toLowerCase();i=_.includes(t)?t:void 0}this.config={UNITY_API_DOMAIN:t.UNITY_API_DOMAIN,PRODUCT_API_DOMAIN:t.PRODUCT_API_DOMAIN,UNITY_PRODUCT_ID:t.UNITY_PRODUCT_ID,MSAL_CLIENT_ID:t.MSAL_CLIENT_ID,MSAL_TENANT:t.MSAL_TENANT,MSAL_API_ACCESS_SCOPE:t.MSAL_API_ACCESS_SCOPE,UNITY_URL:t.UNITY_URL,UNITY_TENANT_ID:t.UNITY_TENANT_ID,UNITY_VERTICAL_ID:t.UNITY_VERTICAL_ID,USE_AAD_REDIRECT:!!t.USE_AAD_REDIRECT,UNITY_ENVIRONMENT:i,SIGN_IN_POLICY:t.SIGN_IN_POLICY,UDPAI_API_BASE:t.UDPAI_API_BASE,UDP_AI_GATEWAY_BASE:t.UDP_AI_GATEWAY_BASE,AI_SEARCH_URL:t.AI_SEARCH_URL,AI_SEARCH_KEY:t.AI_SEARCH_KEY,AI_SEARCH_INDEX_NAME:t.AI_SEARCH_INDEX_NAME,AZURE_MAP_SUBSCRIPTION_KEY:t.AZURE_MAP_SUBSCRIPTION_KEY}}}t=_,_._config={UNITY_API_DOMAIN:"https://gateway.unitydev.ca",PRODUCT_API_DOMAIN:"",UNITY_PRODUCT_ID:"",MSAL_CLIENT_ID:"",MSAL_TENANT:"",MSAL_API_ACCESS_SCOPE:"",UNITY_URL:"https://unitydev.ca",UNITY_TENANT_ID:"",UNITY_VERTICAL_ID:"",USE_AAD_REDIRECT:!1,UNITY_ENVIRONMENT:void 0,SIGN_IN_POLICY:"B2C_1A_signup_signin_v2",UDPAI_API_BASE:"",UDP_AI_GATEWAY_BASE:"",AI_SEARCH_URL:"",AI_SEARCH_KEY:"",AI_SEARCH_INDEX_NAME:"",AZURE_MAP_SUBSCRIPTION_KEY:""},_._isConfigSet=!1,t._configPromise=new Promise((_=>{t._resolveConfigPromise=_})),_.INTEGRATION_V1_API_BASE="/IntegrationService/api/v1",_.INTEGRATION_V2_API_BASE="/IntegrationService/api/v2",_.SECURITY_SERVICE_V1_API_BASE="/SecurityService/api/v1",_.SECURITY_SERVICE_V2_API_BASE="/SecurityService/api/v2",_.TENANT_V1_API_BASE="/TenantService/api/v1",_.TENANT_V2_API_BASE="/TenantService/api/v2",_.V1_API_BASE="/api/v1",_.SUPPORT_V1_API_BASE="/SupportService/api/v1",_.BUILDER__V1_API_BASE="/BuilderService/api/v1",_.PG_V1_API_BASE="/PaymentGatewayService/api/v1",_.MAESTRO_V1_API_BASE="/MaestroService/api/v1";export{_ as C}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l,g as t,b as e}from"./lookupHelper-D3LSjaES.js";function r(r,o=!1){return r.map((r=>{var n,i,u;if("actions"===r.field){const l=r.cellRendererParams,t=null!==(i=null===(n=null==l?void 0:l.actionList)||void 0===n?void 0:n.length)&&void 0!==i?i:0,e=null!==(u=null==l?void 0:l.maxVisibleActions)&&void 0!==u?u:5,o=t<=e?t:Math.max(e,1);if(0===o)return r;let v=30*o+4*(o-1)+40;return v<80&&(v=80),Object.assign(Object.assign({},r),{pinned:"right",width:v,minWidth:v,maxWidth:v,sortable:!1,filter:!1,suppressHeaderMenuButton:!0,suppressMovable:!0})}const v=l(r);if(v&&"entity"in v){const l=r.field,t=t=>{var e,r,o;return null!==(r=null===(e=t.data)||void 0===e?void 0:e[l+"LookupValue"])&&void 0!==r?r:null===(o=t.data)||void 0===o?void 0:o[l]},e=!o&&r.filter;return Object.assign(Object.assign({},r),v.path?{colId:v.path,valueGetter:t,filter:e}:{valueGetter:t,sortable:!1,filter:e})}if(v&&"lookupId"in v){const l=v.lookupId,o=r.field;return Object.assign(Object.assign({},r),!1===r.filter?{valueGetter:l=>l.data[o+"LookupValue"],sortable:!1}:{valueGetter:l=>l.data[o+"LookupValue"],filterValueGetter:l=>{var t;return null===(t=l.data)||void 0===t?void 0:t[o]},filter:"agSetColumnFilter",filterParams:Object.assign({values:t=>{e(l).then((l=>{var e,r,n,i;const u=null!==(i=null!==(r=null===(e=l.keys.find((l=>l.name.toLowerCase()===(null!=o?o:"").toLowerCase())))||void 0===e?void 0:e.name)&&void 0!==r?r:null===(n=l.keys[0])||void 0===n?void 0:n.name)&&void 0!==i?i:"",v=new Set(Array.from(l.valueMap.keys()).map((l=>{var t;return null!==(t=l.get(u))&&void 0!==t?t:""})));t.success(Array.from(v))})).catch((()=>t.success([])))},valueFormatter:e=>{var r,n,i,u,v;const a=null==e.value?"":String(e.value),d=t(l);if(!d)return a;const s=null!==(u=null!==(n=null===(r=d.keys.find((l=>l.name.toLowerCase()===(null!=o?o:"").toLowerCase())))||void 0===r?void 0:r.name)&&void 0!==n?n:null===(i=d.keys[0])||void 0===i?void 0:i.name)&&void 0!==u?u:"";for(const[l,t]of d.valueMap.entries())if(String(null!==(v=l.get(s))&&void 0!==v?v:"")===a)return t;return a}},r.filterParams),sortable:!1})}return o?Object.assign(Object.assign({},r),{filter:!1}):r}))}export{r as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){const e=t.replace(/\?$/,"").trim().toLowerCase();return"byte"===e||"short"===e||"int"===e||"long"===e||"float"===e||"double"===e||"decimal"===e?"number":"string"===e||"guid"===e?"text":"bool"===e||"boolean"===e?"boolean":"date"===e?"dateString":"datetime"===e?"dateTimeString":e.startsWith("dictionary")||"object"===e?"object":"text"}export{t as m}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={Domain:3,Lookup:4},e={String:1,Long:2,Boolean:3,DateTime:4,Double:5},i=o=>o?{tileUrlTemplate:`https://atlas.microsoft.com/map/tile?subscription-key=${o}&api-version=2024-04-01&tilesetId=microsoft.base.road&zoom={z}&x={x}&y={y}`,searchAddresses:async(e,i)=>{var l;const r=new URL("https://atlas.microsoft.com/search/address/json");r.searchParams.set("api-version","1.0"),r.searchParams.set("subscription-key",o),r.searchParams.set("query",e),r.searchParams.set("typeahead","true"),r.searchParams.set("limit","8"),(null==i?void 0:i.countrySet)&&r.searchParams.set("countrySet",i.countrySet),(null==i?void 0:i.language)&&r.searchParams.set("language",i.language);const n=await fetch(r.toString(),{signal:null==i?void 0:i.signal});if(!n.ok)throw new Error(`Azure search failed: ${n.status}`);return(null!==(l=(await n.json()).results)&&void 0!==l?l:[]).filter((o=>o.address&&o.position)).map(((o,e)=>{var i,l,r,n,s,t,a,d,u,v,c;return{id:null!==(i=o.id)&&void 0!==i?i:`azure-${e}`,address:{freeformAddress:null!==(r=null===(l=o.address)||void 0===l?void 0:l.freeformAddress)&&void 0!==r?r:"",streetNumber:null===(n=o.address)||void 0===n?void 0:n.streetNumber,streetName:null===(s=o.address)||void 0===s?void 0:s.streetName,municipality:null===(t=o.address)||void 0===t?void 0:t.municipality,countrySubdivisionName:null===(a=o.address)||void 0===a?void 0:a.countrySubdivisionName,postalCode:null!==(u=null===(d=o.address)||void 0===d?void 0:d.extendedPostalCode)&&void 0!==u?u:null===(v=o.address)||void 0===v?void 0:v.postalCode,country:null===(c=o.address)||void 0===c?void 0:c.country},position:{lat:o.position.lat,lng:o.position.lon}}}))},reverseGeocode:async(e,i,l)=>{var r,n,s,t;const a=new URL("https://atlas.microsoft.com/search/address/reverse/json");a.searchParams.set("api-version","1.0"),a.searchParams.set("subscription-key",o),a.searchParams.set("query",`${e},${i}`),(null==l?void 0:l.language)&&a.searchParams.set("language",l.language);const d=await fetch(a.toString(),{signal:null==l?void 0:l.signal});if(!d.ok)throw new Error(`Azure reverse geocode failed: ${d.status}`);const u=null===(n=null===(r=(await d.json()).addresses)||void 0===r?void 0:r[0])||void 0===n?void 0:n.address;return u?{freeformAddress:null!==(s=u.freeformAddress)&&void 0!==s?s:"",streetNumber:u.streetNumber,streetName:u.streetName,municipality:u.municipality,countrySubdivisionName:u.countrySubdivisionName,postalCode:null!==(t=u.extendedPostalCode)&&void 0!==t?t:u.postalCode,country:u.country}:null}}:null;export{o as L,e as a,i as c}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as o,h as r,a as n}from"./index-15aY63VA.js";const
|
|
1
|
+
import{r as t,c as o,h as r,a as n}from"./index-15aY63VA.js";const e=class{constructor(r){t(this,r),this.customClick=o(this,"customClick",7),this.variant="default",this.secondary=!1,this.type="button",this.disabled=!1,this.size="default",this.handleButtonClick=t=>{"submit"===this.type&&t.preventDefault(),this.disabled||(this.handleClick&&this.handleClick(t),this.customClick.emit())}}render(){let t="my-button";return"outline"===this.variant?t+=" my-button--outline":"text"===this.variant?t+=" my-button--text":this.secondary&&(t+=" my-button--secondary"),"short"===this.size?t+=" my-button--short":"tall"===this.size&&(t+=" my-button--tall"),r("button",{key:"4a1589ef628941f583970e6e972644e70edb6a60",type:this.type,class:t,onClick:this.handleButtonClick,disabled:this.disabled},this.label,r("slot",{key:"b84e8f7f0428f81589ea9f6e1cfc8b3e986f381e"}))}get el(){return n(this)}};e.style=".my-button{background-color:var(--primary-color);box-sizing:border-box;border:none;color:white;padding:8px 24px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color 0.3s ease;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:48px;min-height:24px;}.my-button:hover{background-color:var(--primary-color-dark)}.my-button:disabled{background-color:#c6c6c6;color:#6f6f6f;cursor:not-allowed}.my-button--outline{background-color:transparent;border:1px solid var(--primary-color);color:var(--primary-color);padding:5px 15px;min-width:64px}.my-button--outline:hover{background-color:rgba(0, 0, 0, 0.1)}.my-button--secondary{background-color:var(--accent-color-two)}.my-button--secondary:hover{background-color:brightness(var(--accent-color-two, 90%))}.my-button--text{background-color:transparent;color:var(--primary-color);padding:5px 15px;min-width:64px;border:none}.my-button--text:hover{background-color:rgba(0, 0, 0, 0.1);}.my-button--short{min-height:24px;}.my-button--tall{min-height:48px;}";export{e as custom_button}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,F as t,H as s,a as o}from"./index-15aY63VA.js";import{b as a}from"./enums-Bn8TXZfi.js";import{g as n}from"./iconUtils-BzY-c9Op.js";import{q as r}from"./udp-forms-builder-question-template-6SrycAP3.js";import l from"sortablejs";import"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const d=class{constructor(i){e(this,i)}renderSwitch(){var e;switch(this.question.fieldTypeId){case a.DateSelector:return i("div",{class:"question-item-date-inputs-container"},i("div",{class:"question-item-date-inputs-container-date-range"},i("udp-date-selector",{label:"Min Date",value:this.question.fieldProperties.minDate,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minDate");this.onFormSectionsDraftChange(i)}}),i("udp-date-selector",{label:"Max Date",value:this.question.fieldProperties.maxDate,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxDate");this.onFormSectionsDraftChange(i)}})),i("stencil-toggle",{label:"Allow Future Date",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowFutureDate,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFutureDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"}));case a.TimeSelector:return i("div",{class:"question-item-time-inputs-container"},i("div",{class:"question-item-date-inputs-container-time-range"},i("udp-time-selector",{label:"Min Time",value:this.question.fieldProperties.minTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minTime");this.onFormSectionsDraftChange(i)}}),i("udp-time-selector",{label:"Max Time",value:this.question.fieldProperties.maxTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxTime");this.onFormSectionsDraftChange(i)}})));case a.DateTimeSelector:return i(t,null,i("div",{class:"question-item-date-time-inputs-container"},i("div",{class:"question-item-date-inputs-container-datetime-range"},i("udp-datetime-selector",{label:"Min Datetime",value:this.question.fieldProperties.minDateTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minDateTime");this.onFormSectionsDraftChange(i)}}),i("udp-datetime-selector",{label:"Max Datetime",value:this.question.fieldProperties.maxDateTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxDateTime");this.onFormSectionsDraftChange(i)}})),i("div",{class:"question-item-future-date-container"},i("stencil-toggle",{label:"Allow Future Date",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.allowFutureDate),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFutureDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"}))));default:return null}}render(){return this.renderSwitch()}};d.style=":host{display:block}.question-item-date-inputs-container,.question-item-time-inputs-container,.question-item-date-time-inputs-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-date-inputs-container-date-range,.question-item-date-inputs-container-time-range,.question-item-date-inputs-container-datetime-range{display:flex;flex-direction:row;gap:var(--spacing-04, 16px)}";const c=class{constructor(i){e(this,i)}render(){var e,t,s,o;return i("div",{key:"0ad2a4dca0fe563994453ce6d178c6945e16f3bd",class:"file-upload-input-container"},i("div",{key:"24031a28a3b7f45a5974923a9529102504eb8957"},i("stencil-toggle",{key:"bc159b27e81208349fbdd1c200d8a7e012d176c4",label:"Allow Multiple Items",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.allowMultiple),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowMultiple");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"a45f2aba4ee4628edc94d26a306fa4ee9e02ccf7"},i("stencil-toggle",{key:"6b94d8074afc787d0807bf7a1b90e0e12e3eafbf",label:"Display Upload Time",disabled:this.isViewOnly,checked:!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.displayUploadTime),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayUploadTime");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"be5450ef8017410f9dc16544566f6eb3b076328b"},i("stencil-toggle",{key:"dd2083ac01b810d3f8df52ca27e296278bcc363f",label:"Hide and Disable Drag And Drop",disabled:this.isViewOnly,checked:!!(null===(s=this.question.fieldProperties)||void 0===s?void 0:s.hideDragAndDrop),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"hideDragAndDrop");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"d31c7da7533f48990f37f9c4ba0dcf861ba83e00"},i("stencil-toggle",{key:"981835f2bc704bfb9b9fea616aef990b32534060",label:"Hide and Disable Upload Button",disabled:this.isViewOnly,checked:!!(null===(o=this.question.fieldProperties)||void 0===o?void 0:o.hideButton),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"hideButton");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};c.style=".file-upload-input-container{display:flex;flex-direction:column;}";const h=class{constructor(i){e(this,i)}render(){var e,t,s;return i("div",{key:"1633f04a402f5180d14d3c0a8e13d1991e4647bb",class:"form-metadata-display-input-container"},i("div",{key:"8ed61b560df5fac9d5cafab8fb5f0cbd4f636393"},i("stencil-toggle",{key:"5cb68ecc510bfea2e99f04a796eb826ffa1abbb2",label:"Show Form Responder Full Name",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.displayOwnerFullName),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayOwnerFullName");this.onFormSectionsDraftChange(e)},labelPosition:"right"}),i("stencil-toggle",{key:"df91a8f963caf37ac0602c73b495bd19152cd47a",label:"Show Form Responder Email",disabled:this.isViewOnly,checked:!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.displayOwnerEmail),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayOwnerEmail");this.onFormSectionsDraftChange(e)},labelPosition:"right"}),i("stencil-toggle",{key:"7471bb6ae9538f80fce201fbe853f9690893778a",label:"Show Submission Date",disabled:this.isViewOnly,checked:!!(null===(s=this.question.fieldProperties)||void 0===s?void 0:s.displaySubmissionDate),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displaySubmissionDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};h.style=".form-metadata-display-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);}";const u=class{constructor(i){e(this,i)}render(){var e,t,o,a,r;return i(s,{key:"7d9cd03a81174a80b18e83aa684b2d7cd2d693fd"},i("div",{key:"21989ca5b655afb2ef411b8719f65ed78c76fca7",class:"question-item-options-list-container"},(null===(e=this.lookupOptions)||void 0===e?void 0:e.length)>1&&i("stencil-toggle",{key:"86b5ac110fd9e732b0d9ad2c14e5b1b2f0c71bcc",label:"Use Lookup Options",disabled:this.isViewOnly,checked:!(!(null===(t=this.question)||void 0===t?void 0:t.fieldProperties)||!("lookupId"in this.question.fieldProperties)),labelPosition:"right",onToggledChange:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyToggleManualOrLookupOptions")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)}}),"lookupId"in this.question.fieldProperties&&i("div",{key:"ffabe88b5d555ada799b100393d04733e1e9b42f"},i("udp-selector",{label:"Lookup Source",key:"lookup-selector",initialValue:(null===(o=this.question.fieldProperties)||void 0===o?void 0:o.lookupId)||"",options:this.lookupOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyLookupChange")(e.detail,this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(i)}})),"items"in this.question.fieldProperties&&i("div",{key:"6ed1ad81f46dc6b051085d96ddd4207de945ba4d"},i("div",{key:"2bebd721578c19ff07e65f34061c55949299f4b4",class:"list-options-header"},i("unity-typography",{key:"26360a59028e2e7820bba1a9558b6789256d7a40",variant:"h6"},"Configure Select Options"),!this.isViewOnly&&"items"in this.question.fieldProperties&&i("udp-button",{key:"f0d69881a13fa74ed038c9b3faea2a3a14ecbe77",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddListItem")(this.formSectionsDraft,this.sIndex,this.qIndex,"","");this.onFormSectionsDraftChange(e)},startIcon:i("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add an Option"},"Add an Option")),null===(r=null===(a=this.question.fieldProperties)||void 0===a?void 0:a.items)||void 0===r?void 0:r.map(((e,t)=>i("div",{key:t,class:"question-item-options-item"},i("div",{class:"question-item-options-item-fields"},i("text-field",{label:"Display Text",value:e.display,disabled:this.isViewOnly,placeholder:"Display Text",required:!0,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyListItemChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,t,"display");this.onFormSectionsDraftChange(i)}}),i("text-field",{label:"Option Value",value:e.value,disabled:this.isViewOnly,placeholder:"Option Value",required:!0,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyListItemChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,t,"value");this.onFormSectionsDraftChange(i)}})),this.question.fieldProperties.items.length>1&&!this.isViewOnly&&i("stencil-icon-button",{icon:n("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveListItem")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}})))))))}};u.style=":host{padding:0;display:block;.question-item-options-list-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0;}.question-item-options-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.question-item-options-item-fields{display:flex;flex-direction:row;gap:var(--spacing-04, 16px);flex-grow:1}.list-options-header{display:flex;justify-content:space-between;align-items:center}}";const b=class{constructor(i){e(this,i),this.pendingInitialAddressQuery=null}handleAddressSelected(e){if(e.detail){const i=e.detail,t=this.getHandler(this.question.fieldTypeId,"handleAddressFieldValueChange")({latitude:i.position.lat,longitude:i.position.lon,address:i.address.freeformAddress,streetNumber:i.address.streetNumber,streetName:i.address.streetName,municipality:i.address.municipality,countrySubdivisionName:i.address.countrySubdivisionName,postalCode:i.address.extendedPostalCode,country:i.address.country},this.formSectionsDraft,this.sIndex,this.qIndex,"defaultLocation");this.onFormSectionsDraftChange(t)}}handleAddressSearchCleared(){const e=this.getHandler(this.question.fieldTypeId,"handleAddressFieldValueChange")(null,this.formSectionsDraft,this.sIndex,this.qIndex,"defaultLocation");this.onFormSectionsDraftChange(e)}getDefaultLocationAddressQuery(){var e;const i=null===(e=this.question.fieldProperties)||void 0===e?void 0:e.defaultLocation;if(!i)return null;if("string"==typeof i)try{const e=JSON.parse(i);if(e&&"object"==typeof e&&"address"in e&&"string"==typeof e.address)return e.address}catch(e){return i}return null}async applyPendingInitialAddressQuery(){const e=this.pendingInitialAddressQuery;e&&this.addressSearchEl&&(await this.addressSearchEl.setQuery(e),this.pendingInitialAddressQuery=null)}async handleLoadIntialAddressQuery(){this.pendingInitialAddressQuery=this.getDefaultLocationAddressQuery(),await this.applyPendingInitialAddressQuery()}async handleQuestionChange(){await this.handleLoadIntialAddressQuery()}async componentWillLoad(){await this.handleLoadIntialAddressQuery()}componentDidLoad(){this.applyPendingInitialAddressQuery()}render(){var e,t,s,o,a,n;const r=!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.showMap),l=!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.hideAddressSearch),d=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle");return i("div",{key:"dee44acd59094105dacfe1d15c7ccb789d3067b0",class:"question-item-map-input-container"},i("div",{key:"7bfe378d72283a8a7873e2a149a39f1cb0f67f84"},i("stencil-toggle",{key:"64871e039a5f8f4cb1d19b7ca8581680fafd1e51",label:"Hide Address Search Bar",disabled:this.isViewOnly,checked:l,onToggledChange:e=>{var i;if(this.isViewOnly)return;const t=null!==(i=null==e?void 0:e.detail)&&void 0!==i&&i,s=r;let o=this.formSectionsDraft;t!==l&&(o=d(o,this.sIndex,this.qIndex,"hideAddressSearch")),t&&!s&&(o=d(o,this.sIndex,this.qIndex,"showMap")),this.onFormSectionsDraftChange(o)},labelPosition:"right"})),i("div",{key:"1bdaebd3f30534eb40ed512600e15f3336a306fa"},i("stencil-toggle",{key:"2cc7cadb733495da5154ec3248ac088975704d9f",label:"Show Map",disabled:this.isViewOnly,checked:r,onToggledChange:e=>{var i;if(this.isViewOnly)return;const t=null!==(i=null==e?void 0:e.detail)&&void 0!==i&&i,s=l;let o=this.formSectionsDraft;t!==r&&(o=d(o,this.sIndex,this.qIndex,"showMap")),!t&&s&&(o=d(o,this.sIndex,this.qIndex,"hideAddressSearch")),this.onFormSectionsDraftChange(o)},labelPosition:"right"})),r&&i("div",{key:"f6cd9d45f930dea1460612bafa8a30b769c2a558"},i("div",{key:"578f19cc7e2d6642c600f1e58a06c9e57d7126e1"},i("address-search",{key:"8c7b75806123f86d8ad56fd5a70f7d6a741cd8d5",ref:e=>{this.addressSearchEl=e,this.applyPendingInitialAddressQuery()},inputId:"address-search-field",disabled:this.isViewOnly,appendSuggestionsToBody:!0,onAddressSelected:this.handleAddressSelected.bind(this),onSearchCleared:this.handleAddressSearchCleared.bind(this),label:"Default Location"})),i("div",{key:"5361f88f65f2490eff2fc2e217fdb4226ecdc958"},i("numeric-field",{key:"f5aa0edcc3f6b30c30ec3cd77e607aa64b0d9c7d",label:"Map Zoom",initialValue:"17",value:null===(o=null===(s=this.question.fieldProperties)||void 0===s?void 0:s.mapZoom)||void 0===o?void 0:o.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"mapZoom");this.onFormSectionsDraftChange(i)},min:"1",max:"20"})),i("div",{key:"3382140eb2cf831e52381b24d06af2f2e968fe66"},i("text-field",{key:"4c63236f79536c851b3d3a34869f7f2f984ba11a",label:"Projection",value:null===(a=this.question.fieldProperties)||void 0===a?void 0:a.projection,disabled:this.isViewOnly,placeholder:"Enter map projection here",required:!1,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"projection");this.onFormSectionsDraftChange(i)}})),i("div",{key:"9719251ca29c2a8f871363b174412f7fc9b9f06a"},i("text-field",{key:"b632c725a651fc1d6363c80a7157dc7168716d24",label:"Projection Definition",value:null===(n=this.question.fieldProperties)||void 0===n?void 0:n.projectionDefs,disabled:this.isViewOnly,placeholder:"Enter map projection definition here",required:!1,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"projectionDefs");this.onFormSectionsDraftChange(i)}}))))}static get watchers(){return{question:[{handleQuestionChange:0}]}}};b.style=".question-item-text-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-text-input-container>div{width:100%}";const p=class{constructor(i){e(this,i),this.getHandler=(e,i)=>{var t;const s=r.find((i=>i.fieldTypeId===e));return null===(t=null==s?void 0:s.handlers)||void 0===t?void 0:t[i]}}get question(){var e,i;return null===(i=null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex].formQuestions)||void 0===i?void 0:i[this.qIndex]}render(){var e;switch(this.question.fieldTypeId){case a.Paragraph:return i("text-area",{label:"Paragraph Text",value:(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.paragraphText)||"",disabled:this.isViewOnly,placeholder:"Enter the paragraph text here",rows:3,maxRows:10,fullWidth:!0,margin:"dense",onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleParagraphValueChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(i)}});case a.SingleLineText:case a.MultiLineText:return i("text-input-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Checkbox:case a.RadioButton:case a.DropdownSingleSelect:case a.DropdownMultipleSelect:case a.ListMultiSelect:return i("list-options-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler,lookupOptions:this.lookupOptions});case a.DateSelector:case a.TimeSelector:case a.DateTimeSelector:return i("date-time-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.FileUpload:case a.ImageUpload:return i("file-upload-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Signature:return i("signature-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.FormMetadataDisplay:return i("form-metadata-display-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Location:return i("location-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Table:return i("table-columns-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});default:return null}}};p.style="";const m=class{constructor(i){e(this,i)}render(){var e;return i("div",{key:"32d5471faac4b7f5dc955d8c07b46f09cabb9de1",class:"signature-input-container"},i("div",{key:"4c5040e0e453a85a002b5d99aa6b1fc002dc504e"},i("stencil-toggle",{key:"6bfcbc01d4157d3e225d4a326625f10936eb0e33",label:"Include Location",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.includeLocation),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"includeLocation");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};m.style=".signature-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);}";const g=class{constructor(i){e(this,i),this.sortableInstance=null,this.sortableSignature="",this.columnTypeOptions=[{value:"text",label:"Text"},{value:"number",label:"Number"}],this.aggregateOptions=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],this.aggregateDecimalPlacesOptions=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}]}updateColumnField(e,i,t){const s=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTableColumnChange")(t,this.formSectionsDraft,this.sIndex,this.qIndex,e,i);this.onFormSectionsDraftChange(s)}isNumericColumnType(e){return"number"===e}moveColumn(e,i){const t=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,e,i);this.onFormSectionsDraftChange(t)}componentDidLoad(){this.initializeSortable()}componentDidUpdate(){this.initializeSortable()}disconnectedCallback(){this.destroySortable()}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null),this.sortableSignature=""}initializeSortable(){var e,i,t,s;const o=Array.isArray(null===(i=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===i?void 0:i.columns)?this.question.fieldProperties.columns:[],a=`${this.isViewOnly}-${o.length}`;if(this.sortableInstance&&this.sortableSignature===a)return;if(this.destroySortable(),this.isViewOnly)return;const n=null===(s=null===(t=this.hostEl)||void 0===t?void 0:t.shadowRoot)||void 0===s?void 0:s.querySelector(".table-columns-list");n&&(this.sortableInstance=new l(n,{animation:200,easing:"cubic-bezier(0.25, 1, 0.5, 1)",draggable:".table-column-item",handle:".table-column-drag-handle",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",direction:"vertical",forceFallback:!1,dragoverBubble:!1,swapThreshold:.6,onEnd:e=>{const i=e.oldIndex,t=e.newIndex;null!=i&&null!=t&&i!==t&&this.moveColumn(i,t)}}),this.sortableSignature=a)}render(){var e,t;const o=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[];return i(s,{key:"de77c2a5ae369a6691a4b413ea28790112a0db37"},i("div",{key:"84008770651d740db5edb57865c370da9f1b88c8",class:"table-columns-container"},i("div",{key:"4ec851959a16fbfa974e72a19251c258c4ceea22",class:"table-columns-header"},i("unity-typography",{key:"21d8f92aa744516d2330f732046bd24821fb9482",variant:"h6"},"Configure Table Columns"),!this.isViewOnly&&i("udp-button",{key:"140618f72eee45618c895d9b75cb8cd625adaae4",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)},startIcon:i("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add a Column"},"Add a Column")),i("div",{key:"7a000ff4daedd2cf431b3ce1fdef9d82416029df",class:"table-columns-list"},o.map(((e,t)=>{const s="number"===(null==e?void 0:e.type)?"number":"text",a=!!(null==e?void 0:e.required),r=(null==e?void 0:e.aggregate)||"sum",l=this.isNumericColumnType(s)&&!!(null==e?void 0:e.aggregate),d=Number.isInteger(Number(null==e?void 0:e.aggregateDecimalPlaces))?Math.min(6,Math.max(0,Number(e.aggregateDecimalPlaces))):1;return i("div",{key:(null==e?void 0:e.uiKey)||(null==e?void 0:e.id)||t,class:"table-column-item"},!this.isViewOnly&&i("div",{class:"table-column-reorder-actions"},i("stencil-icon-button",{class:"table-column-drag-handle",icon:n("draggable"),tooltip:"Drag to Reorder",noBackground:!0})),i("div",{class:"table-column-fields"},i("text-field",{label:"Column Name",value:(null==e?void 0:e.name)||"",disabled:this.isViewOnly,placeholder:"Column Name",required:!0,onInput:e=>{this.updateColumnField(t,"name",e.target.value)}}),i("udp-selector",{label:"Column Type",key:`table-column-type-${t}`,initialValue:s,options:this.columnTypeOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"type",e.detail)}}),i("stencil-toggle",{label:"Required Field",disabled:this.isViewOnly,checked:a,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"required",!a)}}),i("div",null),this.isNumericColumnType(s)&&i("stencil-toggle",{label:"Display Aggregate in Table",disabled:this.isViewOnly,checked:l,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"aggregate",l?"":r)}}),this.isNumericColumnType(s)&&l&&i("div",{class:"table-column-fields-row-break","aria-hidden":"true"}),this.isNumericColumnType(s)&&l&&i("udp-selector",{label:"Aggregate Function",key:`table-column-aggregate-${t}`,initialValue:r,options:this.aggregateOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregate",e.detail)}}),this.isNumericColumnType(s)&&l&&i("udp-selector",{label:"Aggregate Decimal Places",key:`table-column-aggregate-decimal-places-${t}`,initialValue:String(d),options:this.aggregateDecimalPlacesOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregateDecimalPlaces",e.detail)}})),o.length>1&&!this.isViewOnly&&i("stencil-icon-button",{icon:n("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}}))})))))}get hostEl(){return o(this)}};g.style=":host{display:block;.table-columns-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0}.table-columns-header{display:flex;justify-content:space-between;align-items:center}.table-columns-list{display:flex;flex-direction:column;gap:0}.table-column-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.table-column-item.sortable-ghost{opacity:0.45;border-style:dashed}.table-column-item.sortable-chosen{box-shadow:var(--elevation-03)}.table-column-reorder-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.table-column-drag-handle{cursor:grab}.table-column-drag-handle:active{cursor:grabbing}.table-column-fields{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));column-gap:var(--spacing-04, 16px);row-gap:0;width:100%}.table-column-fields-row-break{grid-column:1 / -1;height:0;padding:0;margin:0}}";const f=class{constructor(i){e(this,i)}render(){var e,t;return i("div",{key:"5673c87932d08a3218d5ca86e0fee9b2c30ec07b",class:"question-item-text-input-container"},i("div",{key:"858abf0e6f68e285544af51f28eeef2c5b7879df"},i("numeric-field",{key:"2ef7f3c41ecf755ee2340953ab55cbc8734325bb",label:"Min Character Length",value:null===(e=this.question.fieldProperties.minCharacter)||void 0===e?void 0:e.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMinMaxCharacter")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"minCharacter");this.onFormSectionsDraftChange(i)}})),i("div",{key:"99f18f05d92d8742ec3465019527974c517e10db"},i("numeric-field",{key:"0c05cde0d4d0a433727cd984aef4b58ebba3ea66",label:"Max Character Length",value:null===(t=this.question.fieldProperties.maxCharacter)||void 0===t?void 0:t.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMinMaxCharacter")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"maxCharacter");this.onFormSectionsDraftChange(i)}})))}};f.style=".question-item-text-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-text-input-container>div{width:100%}";export{d as date_time_renderer,c as file_upload_renderer,h as form_metadata_display_renderer,u as list_options_renderer,b as location_renderer,p as question_specific_configs_renderer,m as signature_renderer,g as table_columns_renderer,f as text_input_renderer}
|
|
1
|
+
import{r as e,h as i,F as t,H as s,a as o}from"./index-15aY63VA.js";import{b as a}from"./enums-Bn8TXZfi.js";import{g as n}from"./iconUtils-BzY-c9Op.js";import{q as r}from"./udp-forms-builder-question-template-6SrycAP3.js";import l from"sortablejs";import"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const c=class{constructor(i){e(this,i)}renderSwitch(){var e;switch(this.question.fieldTypeId){case a.DateSelector:return i("div",{class:"question-item-date-inputs-container"},i("div",{class:"question-item-date-inputs-container-date-range"},i("udp-date-selector",{label:"Min Date",value:this.question.fieldProperties.minDate,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minDate");this.onFormSectionsDraftChange(i)}}),i("udp-date-selector",{label:"Max Date",value:this.question.fieldProperties.maxDate,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxDate");this.onFormSectionsDraftChange(i)}})),i("stencil-toggle",{label:"Allow Future Date",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowFutureDate,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFutureDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"}));case a.TimeSelector:return i("div",{class:"question-item-time-inputs-container"},i("div",{class:"question-item-date-inputs-container-time-range"},i("udp-time-selector",{label:"Min Time",value:this.question.fieldProperties.minTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minTime");this.onFormSectionsDraftChange(i)}}),i("udp-time-selector",{label:"Max Time",value:this.question.fieldProperties.maxTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxTime");this.onFormSectionsDraftChange(i)}})));case a.DateTimeSelector:return i(t,null,i("div",{class:"question-item-date-time-inputs-container"},i("div",{class:"question-item-date-inputs-container-datetime-range"},i("udp-datetime-selector",{label:"Min Datetime",value:this.question.fieldProperties.minDateTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"minDateTime");this.onFormSectionsDraftChange(i)}}),i("udp-datetime-selector",{label:"Max Datetime",value:this.question.fieldProperties.maxDateTime,fullWidth:!0,onChange:e=>{if(this.isViewOnly)return;const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyDateTime")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"maxDateTime");this.onFormSectionsDraftChange(i)}})),i("div",{class:"question-item-future-date-container"},i("stencil-toggle",{label:"Allow Future Date",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.allowFutureDate),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFutureDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"}))));default:return null}}render(){return this.renderSwitch()}};c.style=":host{display:block}.question-item-date-inputs-container,.question-item-time-inputs-container,.question-item-date-time-inputs-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-date-inputs-container-date-range,.question-item-date-inputs-container-time-range,.question-item-date-inputs-container-datetime-range{display:flex;flex-direction:row;gap:var(--spacing-04, 16px)}";const d=class{constructor(i){e(this,i)}render(){var e,t,s,o;return i("div",{key:"2866721d7a27331d46f341af371e35487f7d4cbe",class:"file-upload-input-container"},i("div",{key:"775936de6294ecfa1c8411961a15765d065b0642"},i("stencil-toggle",{key:"57e424b160b299dbc837bcf43761588eb553f1a6",label:"Allow Multiple Items",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.allowMultiple),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowMultiple");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"c8fb99d351ba1e8c6c1a3b607878badb98a26189"},i("stencil-toggle",{key:"7d072e7992a798bf358f74ed2ed5935af6e777fd",label:"Display Upload Time",disabled:this.isViewOnly,checked:!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.displayUploadTime),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayUploadTime");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"dce76b005c05737f9b41c4cb2bcd63231f2ac474"},i("stencil-toggle",{key:"deaa995e043c361de77dc24b0bd0c8930df33ae8",label:"Hide and Disable Drag And Drop",disabled:this.isViewOnly,checked:!!(null===(s=this.question.fieldProperties)||void 0===s?void 0:s.hideDragAndDrop),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"hideDragAndDrop");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),i("div",{key:"e061f818cd0adc4860f9f81bf7bf43f5d1d398df"},i("stencil-toggle",{key:"9ce4473ed966f6e61647f964a9e7b33f4e99687c",label:"Hide and Disable Upload Button",disabled:this.isViewOnly,checked:!!(null===(o=this.question.fieldProperties)||void 0===o?void 0:o.hideButton),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"hideButton");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};d.style=".file-upload-input-container{display:flex;flex-direction:column;}";const h=class{constructor(i){e(this,i)}render(){var e,t,s;return i("div",{key:"08006d5d43deebefaa7e1a3b232cb4c7f9df379f",class:"form-metadata-display-input-container"},i("div",{key:"106e543de6e5e769d72a8692da1901b7cc969b70"},i("stencil-toggle",{key:"e8620f1788a1fa8f39f8b50da492e8bf74738310",label:"Show Form Responder Full Name",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.displayOwnerFullName),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayOwnerFullName");this.onFormSectionsDraftChange(e)},labelPosition:"right"}),i("stencil-toggle",{key:"b6de4fdbbbd207dd5b562667fd242d0dcb99579b",label:"Show Form Responder Email",disabled:this.isViewOnly,checked:!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.displayOwnerEmail),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displayOwnerEmail");this.onFormSectionsDraftChange(e)},labelPosition:"right"}),i("stencil-toggle",{key:"95760e27b059f308d1ce8dd6b8eefd647ad2e259",label:"Show Submission Date",disabled:this.isViewOnly,checked:!!(null===(s=this.question.fieldProperties)||void 0===s?void 0:s.displaySubmissionDate),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"displaySubmissionDate");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};h.style=".form-metadata-display-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);}";const u=class{constructor(i){e(this,i)}render(){var e,t,o,a,r;return i(s,{key:"0e150aeae169d0c329d82780a373e912380374b4"},i("div",{key:"0f8a26bb71d8360a18476176e5641ba3a90710a3",class:"question-item-options-list-container"},(null===(e=this.lookupOptions)||void 0===e?void 0:e.length)>1&&i("stencil-toggle",{key:"c72ec278d738065f76cbcd72e4ef72af69edaad4",label:"Use Lookup Options",disabled:this.isViewOnly,checked:!(!(null===(t=this.question)||void 0===t?void 0:t.fieldProperties)||!("lookupId"in this.question.fieldProperties)),labelPosition:"right",onToggledChange:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyToggleManualOrLookupOptions")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)}}),"lookupId"in this.question.fieldProperties&&i("div",{key:"4582ec51dd1e8fb67c4c3e7b917223d49793377b"},i("udp-selector",{label:"Lookup Source",key:"lookup-selector",initialValue:(null===(o=this.question.fieldProperties)||void 0===o?void 0:o.lookupId)||"",options:this.lookupOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyLookupChange")(e.detail,this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(i)}})),"items"in this.question.fieldProperties&&i("div",{key:"4e9d05bee591139663d8f4b85cc8c02458acf6dc"},i("div",{key:"c65f625b5ff453c71c8e91af9fa9a72be12e9b05",class:"list-options-header"},i("unity-typography",{key:"24d2a7e5580adb46442e63c77edd46bdb8bb7b6c",variant:"h6"},"Configure Select Options"),!this.isViewOnly&&"items"in this.question.fieldProperties&&i("udp-button",{key:"2e998e28c0210aa4024904374c559e8d86d843e5",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddListItem")(this.formSectionsDraft,this.sIndex,this.qIndex,"","");this.onFormSectionsDraftChange(e)},startIcon:i("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add an Option"},"Add an Option")),null===(r=null===(a=this.question.fieldProperties)||void 0===a?void 0:a.items)||void 0===r?void 0:r.map(((e,t)=>i("div",{key:t,class:"question-item-options-item"},i("div",{class:"question-item-options-item-fields"},i("text-field",{label:"Display Text",value:e.display,disabled:this.isViewOnly,placeholder:"Display Text",required:!0,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyListItemChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,t,"display");this.onFormSectionsDraftChange(i)}}),i("text-field",{label:"Option Value",value:e.value,disabled:this.isViewOnly,placeholder:"Option Value",required:!0,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyListItemChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,t,"value");this.onFormSectionsDraftChange(i)}})),this.question.fieldProperties.items.length>1&&!this.isViewOnly&&i("stencil-icon-button",{icon:n("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveListItem")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}})))))))}};u.style=":host{padding:0;display:block;.question-item-options-list-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0;}.question-item-options-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.question-item-options-item-fields{display:flex;flex-direction:row;gap:var(--spacing-04, 16px);flex-grow:1}.list-options-header{display:flex;justify-content:space-between;align-items:center}}";const b=class{constructor(i){e(this,i),this.pendingInitialAddressQuery=null}handleAddressSelected(e){if(e.detail){const i=e.detail,t=this.getHandler(this.question.fieldTypeId,"handleAddressFieldValueChange")({latitude:i.position.lat,longitude:i.position.lon,address:i.address.freeformAddress,streetNumber:i.address.streetNumber,streetName:i.address.streetName,municipality:i.address.municipality,countrySubdivisionName:i.address.countrySubdivisionName,postalCode:i.address.extendedPostalCode,country:i.address.country},this.formSectionsDraft,this.sIndex,this.qIndex,"defaultLocation");this.onFormSectionsDraftChange(t)}}handleAddressSearchCleared(){const e=this.getHandler(this.question.fieldTypeId,"handleAddressFieldValueChange")(null,this.formSectionsDraft,this.sIndex,this.qIndex,"defaultLocation");this.onFormSectionsDraftChange(e)}getDefaultLocationAddressQuery(){var e;const i=null===(e=this.question.fieldProperties)||void 0===e?void 0:e.defaultLocation;if(!i)return null;if("string"==typeof i)try{const e=JSON.parse(i);if(e&&"object"==typeof e&&"address"in e&&"string"==typeof e.address)return e.address}catch(e){return i}return null}async applyPendingInitialAddressQuery(){const e=this.pendingInitialAddressQuery;e&&this.addressSearchEl&&(await this.addressSearchEl.setQuery(e),this.pendingInitialAddressQuery=null)}async handleLoadIntialAddressQuery(){this.pendingInitialAddressQuery=this.getDefaultLocationAddressQuery(),await this.applyPendingInitialAddressQuery()}async handleQuestionChange(){await this.handleLoadIntialAddressQuery()}async componentWillLoad(){await this.handleLoadIntialAddressQuery()}componentDidLoad(){this.applyPendingInitialAddressQuery()}render(){var e,t,s,o,a,n;const r=!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.showMap),l=!!(null===(t=this.question.fieldProperties)||void 0===t?void 0:t.hideAddressSearch),c=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle");return i("div",{key:"b34a9cba5112cb8320fad3914eeb2d84ebe9b6e0",class:"question-item-map-input-container"},i("div",{key:"7f6ec7c81ad4579ab039742c32090926fad87768"},i("stencil-toggle",{key:"3c88aaeb8146a10ccf0c869cc64f9d735ddb7b0e",label:"Hide Address Search Bar",disabled:this.isViewOnly,checked:l,onToggledChange:e=>{var i;if(this.isViewOnly)return;const t=null!==(i=null==e?void 0:e.detail)&&void 0!==i&&i,s=r;let o=this.formSectionsDraft;t!==l&&(o=c(o,this.sIndex,this.qIndex,"hideAddressSearch")),t&&!s&&(o=c(o,this.sIndex,this.qIndex,"showMap")),this.onFormSectionsDraftChange(o)},labelPosition:"right"})),i("div",{key:"d85d29c6c2b0a3b022b29ec4d4d6ace8ff795932"},i("stencil-toggle",{key:"1699cec5371cc4954bc8c133f77dcf9cc78147b4",label:"Show Map",disabled:this.isViewOnly,checked:r,onToggledChange:e=>{var i;if(this.isViewOnly)return;const t=null!==(i=null==e?void 0:e.detail)&&void 0!==i&&i,s=l;let o=this.formSectionsDraft;t!==r&&(o=c(o,this.sIndex,this.qIndex,"showMap")),!t&&s&&(o=c(o,this.sIndex,this.qIndex,"hideAddressSearch")),this.onFormSectionsDraftChange(o)},labelPosition:"right"})),r&&i("div",{key:"d343c47a3f737f6186b855115c3a4064a98b558a"},i("div",{key:"b83450f4c82242b1b67e6cebeeb1a710b4bc1174"},i("address-search",{key:"560f09f5660f1a167eee8991f4538c0a845d64a8",ref:e=>{this.addressSearchEl=e,this.applyPendingInitialAddressQuery()},inputId:"address-search-field",disabled:this.isViewOnly,appendSuggestionsToBody:!0,onAddressSelected:this.handleAddressSelected.bind(this),onSearchCleared:this.handleAddressSearchCleared.bind(this),label:"Default Location"})),i("div",{key:"eb964a59e908de57a037edab2f2266f780078897"},i("numeric-field",{key:"76926e74a46c788a255817026196dd5d6a83e478",label:"Map Zoom",initialValue:"17",value:null===(o=null===(s=this.question.fieldProperties)||void 0===s?void 0:s.mapZoom)||void 0===o?void 0:o.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"mapZoom");this.onFormSectionsDraftChange(i)},min:"1",max:"20"})),i("div",{key:"cb2efb4a226ad59347f8927a918e856f61afc1ab"},i("text-field",{key:"1f60bcaa099a41c8602bf967559a6a0cbf1dc269",label:"Projection",value:null===(a=this.question.fieldProperties)||void 0===a?void 0:a.projection,disabled:this.isViewOnly,placeholder:"Enter map projection here",required:!1,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"projection");this.onFormSectionsDraftChange(i)}})),i("div",{key:"38ce3b733621fea1e0fb88da985dc71798af65c7"},i("text-field",{key:"b363af477642fad9f7aaeaa6c1f8f8837d6a7157",label:"Projection Definition",value:null===(n=this.question.fieldProperties)||void 0===n?void 0:n.projectionDefs,disabled:this.isViewOnly,placeholder:"Enter map projection definition here",required:!1,onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTextChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"projectionDefs");this.onFormSectionsDraftChange(i)}}))))}static get watchers(){return{question:[{handleQuestionChange:0}]}}};b.style=".question-item-text-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-text-input-container>div{width:100%}";const p=class{constructor(i){e(this,i),this.getHandler=(e,i)=>{var t;const s=r.find((i=>i.fieldTypeId===e));return null===(t=null==s?void 0:s.handlers)||void 0===t?void 0:t[i]}}get question(){var e,i;return null===(i=null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex].formQuestions)||void 0===i?void 0:i[this.qIndex]}render(){var e;switch(this.question.fieldTypeId){case a.Paragraph:return i("text-area",{label:"Paragraph Text",value:(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.paragraphText)||"",disabled:this.isViewOnly,placeholder:"Enter the paragraph text here",rows:3,maxRows:10,fullWidth:!0,margin:"dense",onInput:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleParagraphValueChange")(e,this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(i)}});case a.SingleLineText:case a.MultiLineText:return i("text-input-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Checkbox:case a.RadioButton:case a.DropdownSingleSelect:case a.DropdownMultipleSelect:case a.ListMultiSelect:return i("list-options-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler,lookupOptions:this.lookupOptions});case a.DateSelector:case a.TimeSelector:case a.DateTimeSelector:return i("date-time-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.FileUpload:case a.ImageUpload:return i("file-upload-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Signature:return i("signature-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.FormMetadataDisplay:return i("form-metadata-display-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Location:return i("location-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});case a.Table:return i("table-columns-renderer",{question:this.question,isViewOnly:this.isViewOnly,formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,onFormSectionsDraftChange:this.onFormSectionsDraftChange,getHandler:this.getHandler});default:return null}}};p.style="";const m=class{constructor(i){e(this,i)}render(){var e;return i("div",{key:"14cb482a86327293cebf872c3eeac81349c9eb7d",class:"signature-input-container"},i("div",{key:"650afb024204d9f19aafa0b91991d44c45df4c00"},i("stencil-toggle",{key:"69db3dd7f1eb5085f91509ea9ec3a1156587129a",label:"Include Location",disabled:this.isViewOnly,checked:!!(null===(e=this.question.fieldProperties)||void 0===e?void 0:e.includeLocation),onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"includeLocation");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};m.style=".signature-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);}";const g=class{constructor(i){e(this,i),this.sortableInstance=null,this.sortableSignature="",this.columnTypeOptions=[{value:"text",label:"Text"},{value:"number",label:"Number"}],this.aggregateOptions=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],this.aggregateDecimalPlacesOptions=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}]}updateColumnField(e,i,t){const s=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTableColumnChange")(t,this.formSectionsDraft,this.sIndex,this.qIndex,e,i);this.onFormSectionsDraftChange(s)}isNumericColumnType(e){return"number"===e}moveColumn(e,i){const t=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,e,i);this.onFormSectionsDraftChange(t)}componentDidLoad(){this.initializeSortable()}componentDidUpdate(){this.initializeSortable()}disconnectedCallback(){this.destroySortable()}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null),this.sortableSignature=""}initializeSortable(){var e,i,t,s;const o=Array.isArray(null===(i=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===i?void 0:i.columns)?this.question.fieldProperties.columns:[],a=`${this.isViewOnly}-${o.length}`;if(this.sortableInstance&&this.sortableSignature===a)return;if(this.destroySortable(),this.isViewOnly)return;const n=null===(s=null===(t=this.hostEl)||void 0===t?void 0:t.shadowRoot)||void 0===s?void 0:s.querySelector(".table-columns-list");n&&(this.sortableInstance=new l(n,{animation:200,easing:"cubic-bezier(0.25, 1, 0.5, 1)",draggable:".table-column-item",handle:".table-column-drag-handle",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",direction:"vertical",forceFallback:!1,dragoverBubble:!1,swapThreshold:.6,onEnd:e=>{const i=e.oldIndex,t=e.newIndex;null!=i&&null!=t&&i!==t&&this.moveColumn(i,t)}}),this.sortableSignature=a)}render(){var e,t;const o=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[];return i(s,{key:"f56ac83e0ab69e8ecfed8a79f9d25645eeb5f507"},i("div",{key:"6be17e4af1b8e74bc22c24db3c2c19a624c85772",class:"table-columns-container"},i("div",{key:"1eb3d7670a56d7b17a40d55e33837271bb7cdbe2",class:"table-columns-header"},i("unity-typography",{key:"0226a599ed650e4a2fa6b74fff49b88a05e51424",variant:"h6"},"Configure Table Columns"),!this.isViewOnly&&i("udp-button",{key:"caea9461e5539cfacae827aaef826179634ba879",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)},startIcon:i("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add a Column"},"Add a Column")),i("div",{key:"46381b2f06dbcb81ac1690284a9bb677b9eec718",class:"table-columns-list"},o.map(((e,t)=>{const s="number"===(null==e?void 0:e.type)?"number":"text",a=!!(null==e?void 0:e.required),r=(null==e?void 0:e.aggregate)||"sum",l=this.isNumericColumnType(s)&&!!(null==e?void 0:e.aggregate),c=Number.isInteger(Number(null==e?void 0:e.aggregateDecimalPlaces))?Math.min(6,Math.max(0,Number(e.aggregateDecimalPlaces))):1;return i("div",{key:(null==e?void 0:e.uiKey)||(null==e?void 0:e.id)||t,class:"table-column-item"},!this.isViewOnly&&i("div",{class:"table-column-reorder-actions"},i("stencil-icon-button",{class:"table-column-drag-handle",icon:n("draggable"),tooltip:"Drag to Reorder",noBackground:!0})),i("div",{class:"table-column-fields"},i("text-field",{label:"Column Name",value:(null==e?void 0:e.name)||"",disabled:this.isViewOnly,placeholder:"Column Name",required:!0,onInput:e=>{this.updateColumnField(t,"name",e.target.value)}}),i("udp-selector",{label:"Column Type",key:`table-column-type-${t}`,initialValue:s,options:this.columnTypeOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"type",e.detail)}}),i("stencil-toggle",{label:"Required Field",disabled:this.isViewOnly,checked:a,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"required",!a)}}),i("div",null),this.isNumericColumnType(s)&&i("stencil-toggle",{label:"Display Aggregate in Table",disabled:this.isViewOnly,checked:l,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"aggregate",l?"":r)}}),this.isNumericColumnType(s)&&l&&i("div",{class:"table-column-fields-row-break","aria-hidden":"true"}),this.isNumericColumnType(s)&&l&&i("udp-selector",{label:"Aggregate Function",key:`table-column-aggregate-${t}`,initialValue:r,options:this.aggregateOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregate",e.detail)}}),this.isNumericColumnType(s)&&l&&i("udp-selector",{label:"Aggregate Decimal Places",key:`table-column-aggregate-decimal-places-${t}`,initialValue:String(c),options:this.aggregateDecimalPlacesOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregateDecimalPlaces",e.detail)}})),o.length>1&&!this.isViewOnly&&i("stencil-icon-button",{icon:n("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}}))})))))}get hostEl(){return o(this)}};g.style=":host{display:block;.table-columns-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0}.table-columns-header{display:flex;justify-content:space-between;align-items:center}.table-columns-list{display:flex;flex-direction:column;gap:0}.table-column-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.table-column-item.sortable-ghost{opacity:0.45;border-style:dashed}.table-column-item.sortable-chosen{box-shadow:var(--elevation-03)}.table-column-reorder-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.table-column-drag-handle{cursor:grab}.table-column-drag-handle:active{cursor:grabbing}.table-column-fields{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));column-gap:var(--spacing-04, 16px);row-gap:0;width:100%}.table-column-fields-row-break{grid-column:1 / -1;height:0;padding:0;margin:0}}";const f=class{constructor(i){e(this,i)}render(){var e,t;return i("div",{key:"887aa57d4ca200ad9b92aea478879b637279e056",class:"question-item-text-input-container"},i("div",{key:"1dece143fe56440e7701414245fdb174fc92192d"},i("numeric-field",{key:"ff1f527c33360f2620e95a8ab87bc8922f77d1c7",label:"Min Character Length",value:null===(e=this.question.fieldProperties.minCharacter)||void 0===e?void 0:e.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMinMaxCharacter")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"minCharacter");this.onFormSectionsDraftChange(i)}})),i("div",{key:"4e0021987774c80fa20f0e883aa522c1e915e61e"},i("numeric-field",{key:"3aa9c45841ad5fb4fc050c6a02be6567011bf063",label:"Max Character Length",value:null===(t=this.question.fieldProperties.maxCharacter)||void 0===t?void 0:t.toString(),disabled:this.isViewOnly,onChange:e=>{const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMinMaxCharacter")({target:{value:e.detail}},this.formSectionsDraft,this.sIndex,this.qIndex,"maxCharacter");this.onFormSectionsDraftChange(i)}})))}};f.style=".question-item-text-input-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px)}.question-item-text-input-container>div{width:100%}";export{c as date_time_renderer,d as file_upload_renderer,h as form_metadata_display_renderer,u as list_options_renderer,b as location_renderer,p as question_specific_configs_renderer,m as signature_renderer,g as table_columns_renderer,f as text_input_renderer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as n,A as t,H as o,y as r}from"./apiUtils-CXqsYwOQ.js";import{g as e}from"./getCurrentApiCatalogId-DeurXd9l.js";import{m as a}from"./makeApiCall-B-daVutk.js";import{S as s}from"./SearchBuilder-BxLXFEeR.js";import{a as i}from"./searchObject-DpUZkcYC.js";import{f as u}from"./lookupHelper-D3LSjaES.js";import{C as c}from"./configService-CehZzjhw.js";function l(n){return n.replace(/_\d+$/,"")}const d="\0",f=new WeakMap;function p(n){const t=f.get(n);if(t)return t;const o=function(n){const t=new Map,o=new Map;for(const r of n.sections)if(r.name)for(const n of r.questions){if(!n.name)continue;t.set(`${r.name}${d}${n.name}`,n);const e=`${r.name.toLowerCase()}${d}${n.name.toLowerCase()}`;o.has(e)?console.warn(`[udp-question-form] Slot collision under lowercased key "${e.replace(d,".")}". Two questions share the same case-insensitive slot path; URL seeds and other case-insensitive lookups will land on the first-indexed question.`):o.set(e,n)}return{byExact:(n,o)=>t.get(`${n}${d}${o}`),byLowercased:(n,t)=>o.get(`${n.toLowerCase()}${d}${t.toLowerCase()}`)}}(n);return f.set(n,o),o}const m=new Map,w=new Map;async function v(l,d=[]){const f=`${l}::${JSON.stringify(d)}`,p=w.get(f);if(p&&Date.now()-p.at<1e4)return p.rows;w.delete(f);const v=m.get(f);if(void 0!==v)return v;const y=(async()=>{try{const f=d.length>0?await async function(n){const t=null!=h?h:h=a("GET",`${c.productV1ApiUrl}/UdpLookup`).then((n=>new Map((Array.isArray(n)?n:[]).map((n=>[n.id,n.domainName])))));try{return(await t).get(n)}catch(n){throw h=null,n}}(l):void 0,p=function(n,t){const o=null==n?void 0:n.toLowerCase(),r=t.filter((n=>n.domainName&&n.domainName.toLowerCase()===o)),e=new Set(r.map((n=>n.fieldName.toLowerCase())));return[...t.filter((n=>!n.domainName&&!e.has(n.fieldName.toLowerCase()))),...r].map((n=>{var t;return{searchField:n.fieldName,searchOperator:null!==(t=n.searchOperator)&&void 0!==t?t:i.EQUALS,searchValue:null==n.value?"":String(n.value)}}))}(f,d),m=p.length>0?await async function(o,r,a){var i;if(!r)return console.warn(`getDomainRows: lookup ${o} has no domain name — not fetched.`),null;const u=await n(e(),r,!0),l=null===(i=null==u?void 0:u.unityBaseSearchMethod)||void 0===i?void 0:i.apiMethodId;if(!l)return console.warn(`getDomainRows: ${r}'s search method must be promoted — not fetched.`),null;const d=Object.assign(Object.assign({},(new s).addFilters(a).build()),{getAll:!0}),f=await t(d,l,c.integrationV1ApiUrl);return{rows:null==f?void 0:f.pageList}}(l,f,p):await async function(n){var t,a;const s=e(),i=null===(a=null===(t=await o(s))||void 0===t?void 0:t.unityBaseGetDataMethod)||void 0===a?void 0:a.apiMethodId;if(!i)return console.warn(`getDomainRows: no lookup data method for API catalog "${s}" — domain ${n} not fetched.`),null;const u=await r({data:{id:n}},i),{keyName:c,udpLookupUdpLookupKey:l,data:d}=null!=u?u:{};return{rows:d,keyNames:c?[String(c)]:(Array.isArray(l)?l:[]).map((n=>null==n?void 0:n.name)).filter((n=>"string"==typeof n&&""!==n))}}(l);return m?function({rows:n,keyNames:t=[]}){if(!Array.isArray(n))return[];const o=(n,t)=>{if(null!=n.businessObjectKey&&""!==n.businessObjectKey)return n.businessObjectKey;const o=t.map((t=>{const o=u(n,String(t));return o?n[o]:void 0}));return o.some((n=>null==n||""===n))?void 0:o.join("|")},r=n=>{const r=(n=>{const t=n.businessObjectKeyFields;if(Array.isArray(t)&&1===t.length){const o=u(n,String(t[0]));return o?n[o]:void 0}return Array.isArray(t)&&t.length>1?o(n,t):n.businessObjectKey})(n);if(null!=r&&""!==r)return r;if(t.length>1)return o(n,t);const e=1===t.length?u(n,t[0]):void 0;return e?n[e]:void 0};return n.flatMap((n=>{const t=r(n);return null==t||""===t?[]:[Object.assign(Object.assign({},n),{recordId:String(t)})]}))}(m):null}catch(n){return console.warn(`getDomainRows: failed to fetch domain ${l}.`,n),null}})();m.set(f,y);try{const n=await y;return n&&w.set(f,{rows:n,at:Date.now()}),n}finally{m.delete(f)}}let h=null;function y(n,t){if(0===n.length||0===t.length)return n;const o=t.filter((t=>!t.custom&&!(t.key in n[0]))).map((t=>[t.key,u(n[0],t.key)])).filter((n=>!!n[1]));return 0===o.length?n:n.map((n=>{const t=Object.assign({},n);for(const[r,e]of o)t[r]=n[e];return t}))}function $(n,t){return"number"===n.type?""===t||null==t?null:"number"==typeof t?t:Number(t):"boolean"===n.type?""===t||null==t?null:!0===t||1===t||"true"===String(t).toLowerCase()||"1"===t:null==t?"":String(t)}function g(n){return!0===(null==n?void 0:n.snapshot)}function j(n,t,o){var r;if(t&&g(t))return t;const e=null!==(r=null==t?void 0:t.rows)&&void 0!==r?r:[],a=new Map(e.map((n=>[n._recordId,n]))),s=y(n,o).map((n=>Object.assign(Object.assign({},function(n,t){const o={_recordId:n.recordId};for(const r of t)o[r.key]=$(r,r.custom?void 0:n[r.key]);return o}(n,o)),a.get(n.recordId)))),i=new Set(s.map((n=>n._recordId)));for(const n of e)i.has(n._recordId)||s.push(n);return{rows:s,snapshot:!0}}export{v as a,j as b,y as c,$ as d,p as g,g as i,l as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as n}from"./makeApiCall-B-daVutk.js";import{C as e}from"./configService-CehZzjhw.js";const a="_UdpExtraField",t={String:1,Number:2,Date:3,Boolean:4};function r(n,e){return`${n}.${e}`}async function i(a){return s(await n("GET",`${e.productV1ApiUrl}/UdpExtraField/domain/${encodeURIComponent(a)}`))}function s(n){return(null!=n?n:[]).filter((n=>!1!==n.enabled)).sort(((n,e)=>{var a,t;return(null!==(a=n.order)&&void 0!==a?a:0)-(null!==(t=e.order)&&void 0!==t?t:0)}))}async function u(a){return s(await n("GET",`${e.productV1ApiUrl}/UdpExtraField/applicable?entityBusinessKey=${encodeURIComponent(a)}`))}async function o(a,t){return s(await n("POST",`${e.productV1ApiUrl}/UdpExtraField/domain/${encodeURIComponent(a)}/applicable`,t,!0))}async function l(a,t){const r=await n("PUT",`${e.productV1ApiUrl}/UdpExtraField/values`,{entityBusinessKey:a,values:t},!0);return null!=r?r:[]}async function c(a){const t=await n("GET",`${e.productV1ApiUrl}/UdpExtraField/values?entityBusinessKey=${encodeURIComponent(a)}`);return null!=t?t:[]}function d(n){switch(n.extraFieldValueTypeId){case t.Number:return"number";case t.Date:return"date";case t.Boolean:return"boolean";default:return"string"}}function p(n,e=a,t=""){return n.length?{path:t,name:e,label:"Extra fields",fields:[...n].sort(((n,e)=>{var a,t;return(null!==(a=n.order)&&void 0!==a?a:0)-(null!==(t=e.order)&&void 0!==t?t:0)})).map((n=>({name:n.name,type:d(n)})))}:null}export{a as E,t as a,s as b,u as c,o as d,r as e,i as f,c as g,d as h,p as i,l as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as n,f as r,a as t,e,E as o,g as a}from"./extraFields-Cnpy_Bm7.js";async function i(t,e){var o;if(!t)return[];if(t.definitions)return s(n(t.definitions),t);const a=null!==(o=t.domainName)&&void 0!==o?o:e;if(!a)return[];try{return s(await r(a),t)}catch(n){return console.error("Failed to load extra-field definitions:",n),[]}}function l(n,r,t){var e,o;if(0===r||(null!==(o=null===(e=n.getColumnDefs())||void 0===e?void 0:e.length)&&void 0!==o?o:0)===r)return void t();const a=()=>{var e,o;(null!==(o=null===(e=n.getColumnDefs())||void 0===e?void 0:e.length)&&void 0!==o?o:0)===r&&(n.removeEventListener("gridColumnsChanged",a),t())};n.addEventListener("gridColumnsChanged",a)}const u={True:{iconName:"checkMark24",color:"success"},False:{iconName:"close24",color:"error"}};function s(n,r){var a;const i=null!==(a=r.prefix)&&void 0!==a?a:o,l=Array.isArray(r.columns)?new Set(r.columns):void 0;return n.filter((n=>!l||l.has(n.name))).sort(((n,r)=>{var t,e;return(null!==(t=n.order)&&void 0!==t?t:0)-(null!==(e=r.order)&&void 0!==e?e:0)})).map((n=>{var r;const o=e(i,n.name),a={colId:o,field:o,headerName:n.label,sortable:!0,valueGetter:n=>{var r;return null===(r=n.data)||void 0===r?void 0:r[o]},context:{searchField:o,lookupId:null!==(r=n.lookupId)&&void 0!==r?r:void 0,extraField:n}};switch(n.extraFieldValueTypeId){case t.Number:a.cellDataType="number";break;case t.Date:a.cellDataType="dateString";break;case t.Boolean:a.cellDataType="text",a.filter="agSetColumnFilter",a.filterParams={values:["True","False"]},a.cellRenderer="iconRenderer",a.cellRendererParams={iconMappingConfig:u};break;default:a.cellDataType="text"}return a}))}function c(n,r,t="end"){if(!r.length)return n;const e=null!=n?n:[],o="end"===t?e.length:Math.max(0,Math.min(t,e.length));return[...e.slice(0,o),...r,...e.slice(o)]}async function d(n,r,o={}){const i=n=>{const r=n.udpExtraFieldValues;return!Array.isArray(r)||!0===o.refetchEmpty&&0===r.length},l=new Set;for(const r of n){const n=r.businessObjectKey;i(r)&&"string"==typeof n&&n&&l.add(n)}let u=n;if(l.size){const r=await async function(n,r,t){const e=new Array(n.length);let o=0;return await Promise.all(Array.from({length:Math.min(6,n.length)},(async()=>{for(;o<n.length;){const r=o++;e[r]=await t(n[r])}}))),e}(Array.from(l),0,(async n=>{try{return[n,await a(n)]}catch(r){return console.error(`Failed to load extra-field values for ${n}:`,r),[n,[]]}})),t=new Map(r);u=n.map((n=>{var r;const e=n.businessObjectKey;return i(n)&&"string"==typeof e?Object.assign(Object.assign({},n),{udpExtraFieldValues:null!==(r=t.get(e))&&void 0!==r?r:[]}):n}))}return function(n,r){return n.map((n=>{const o=n.udpExtraFieldValues;if(!(null==o?void 0:o.length))return n;const a=Object.assign({},n);for(const n of o){const o=n.udpExtraFieldValueUdpExtraField;if(!(null==o?void 0:o.name))continue;const i=o.extraFieldValueTypeId===t.Number;a[e(r,o.name)]=i&&null!=n.value&&""!==n.value?Number(n.value):n.value}return a}))}(u,r)}function v(n){var r,t;const e=new Map;for(const o of null!=n?n:[]){const n=null===(r=o.context)||void 0===r?void 0:r.searchField,a=null!==(t=o.colId)&&void 0!==t?t:o.field;a&&"string"==typeof n&&e.set(a,n)}return n=>{var r;return null!==(r=e.get(n))&&void 0!==r?r:n.charAt(0).toUpperCase()+n.slice(1)}}export{d as a,c as i,i as l,v as s,l as w}
|