udp-stencil-component-library 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +11 -11
- package/dist/cjs/advanced-search_50.cjs.entry.js +109 -41
- package/dist/cjs/advanced-search_50.cjs.entry.js.map +1 -1
- package/dist/cjs/ag-grid-base_2.cjs.entry.js +2 -2
- package/dist/cjs/api-method-grid.cjs.entry.js +1 -1
- package/dist/cjs/check-box.cjs.entry.js +2 -2
- package/dist/cjs/chip-section.cjs.entry.js +2 -2
- package/dist/cjs/client-side-grid.cjs.entry.js +1 -1
- package/dist/cjs/color-preview.cjs.entry.js +1 -1
- package/dist/cjs/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.text-input-renderer.entry.cjs.js.map +1 -1
- package/dist/cjs/date-time-renderer_5.cjs.entry.js +17 -16
- package/dist/cjs/date-time-renderer_5.cjs.entry.js.map +1 -1
- package/dist/cjs/enums-CA1UjPVU.js +25 -0
- package/dist/cjs/enums-CA1UjPVU.js.map +1 -0
- package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
- package/dist/cjs/file-upload.selectable-list.stencil-field.entry.cjs.js.map +1 -1
- package/dist/cjs/file-upload_3.cjs.entry.js +73 -29
- package/dist/cjs/file-upload_3.cjs.entry.js.map +1 -1
- package/dist/cjs/index-Bu1pSYrV.js +8 -8
- package/dist/cjs/inputs-example.cjs.entry.js +2 -2
- package/dist/cjs/inputs-example.cjs.entry.js.map +1 -1
- package/dist/cjs/inputs-example.entry.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-component_2.cjs.entry.js +2 -2
- package/dist/cjs/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.cjs.js.map +1 -1
- package/dist/cjs/numeric-field_5.cjs.entry.js +194 -19
- package/dist/cjs/numeric-field_5.cjs.entry.js.map +1 -1
- package/dist/cjs/page-renderer.cjs.entry.js +1 -1
- package/dist/cjs/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.udp-forms-builder-style-override.entry.cjs.js.map +1 -1
- package/dist/cjs/question-configs-renderer_5.cjs.entry.js +17 -4
- package/dist/cjs/question-configs-renderer_5.cjs.entry.js.map +1 -1
- package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
- package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +1 -1
- package/dist/cjs/server-side-grid.cjs.entry.js +1 -1
- package/dist/cjs/signature-input.stencil-form.tally-display.udp-icon-button.udp-question.udp-save-draft-button.entry.cjs.js.map +1 -0
- package/dist/cjs/{signature-input_4.cjs.entry.js → signature-input_6.cjs.entry.js} +359 -157
- package/dist/cjs/signature-input_6.cjs.entry.js.map +1 -0
- package/dist/cjs/stencil-library.cjs.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-drive-utils-BOyI3h7K.js +180 -0
- package/dist/cjs/udp-drive-utils-BOyI3h7K.js.map +1 -0
- package/dist/cjs/udp-forms-builder.cjs.entry.js +133 -152
- package/dist/cjs/udp-forms-builder.cjs.entry.js.map +1 -1
- package/dist/cjs/udp-forms-builder.entry.cjs.js.map +1 -1
- package/dist/cjs/udp-forms-list-card_2.cjs.entry.js +5 -5
- package/dist/cjs/udp-forms-list.cjs.entry.js +1 -1
- package/dist/cjs/udp-forms-renderer.cjs.entry.js +185 -175
- package/dist/cjs/udp-forms-renderer.cjs.entry.js.map +1 -1
- package/dist/cjs/udp-forms-renderer.entry.cjs.js.map +1 -1
- package/dist/cjs/udp-forms-ui.cjs.entry.js +113 -82
- package/dist/cjs/udp-forms-ui.cjs.entry.js.map +1 -1
- package/dist/cjs/udp-forms-ui.entry.cjs.js.map +1 -1
- package/dist/cjs/udp-map.cjs.entry.js +3 -3
- package/dist/cjs/udp-page.cjs.entry.js +1 -1
- package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
- package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
- package/dist/cjs/udp-vertical-spacer.cjs.entry.js +1 -1
- package/dist/cjs/utils-CdiEmuDf.js +34 -0
- package/dist/cjs/utils-CdiEmuDf.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/my-component/UI/buttons/icon-button/stencil-icon-button.js +22 -0
- package/dist/collection/components/my-component/UI/buttons/icon-button/stencil-icon-button.js.map +1 -1
- package/dist/collection/components/my-component/UI/buttons/udp-icon-button/udp-icon-button.css +269 -0
- package/dist/collection/components/my-component/UI/buttons/udp-icon-button/udp-icon-button.js +392 -0
- package/dist/collection/components/my-component/UI/buttons/udp-icon-button/udp-icon-button.js.map +1 -0
- package/dist/collection/components/my-component/UI/forms/form/stencil-field.js +38 -14
- package/dist/collection/components/my-component/UI/forms/form/stencil-field.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/form/stencil-form.js +81 -28
- package/dist/collection/components/my-component/UI/forms/form/stencil-form.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/mockData.js +1 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/mockData.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/types.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer.js +13 -17
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/date-time-renderer.js +4 -3
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/date-time-renderer.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.css +0 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.js +16 -3
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/text-input-renderer.js +2 -2
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder.js +135 -159
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-list/udp-forms-list-card.js +5 -5
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/form-handler/PrivateFormHandler.js +1 -5
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/form-handler/PrivateFormHandler.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/form-handler/PublicFormHandler.js +1 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/form-handler/PublicFormHandler.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +188 -172
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-ui.css +175 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-ui.js +211 -88
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-ui.js.map +1 -1
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.css +166 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.js +215 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.js.map +1 -0
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-question/udp-question.js +5 -5
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-question/udp-question.js.map +1 -1
- package/dist/collection/components/my-component/UI/grid/ag-table/ag-table.js +1 -1
- package/dist/collection/components/my-component/UI/grid/ambient-template-grid/ambient-template-grid.js +15 -15
- package/dist/collection/components/my-component/UI/grid/grid-primary-bar/grid-primary-bar.js +2 -2
- package/dist/collection/components/my-component/UI/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
- package/dist/collection/components/my-component/UI/grid/new-grid/ag-grid-base.js +1 -1
- package/dist/collection/components/my-component/UI/grid/new-grid/api-method-grid.js +1 -1
- package/dist/collection/components/my-component/UI/grid/new-grid/client-side-grid.js +1 -1
- package/dist/collection/components/my-component/UI/grid/new-grid/grid-header.js +1 -1
- package/dist/collection/components/my-component/UI/grid/new-grid/server-side-grid.js +1 -1
- package/dist/collection/components/my-component/UI/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
- package/dist/collection/components/my-component/UI/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +1 -1
- package/dist/collection/components/my-component/UI/inputs/checkbox/check-box.js +2 -2
- package/dist/collection/components/my-component/UI/inputs/date-selector/udp-date-selector.js +3 -3
- package/dist/collection/components/my-component/UI/inputs/date-time-selector/udp-datetime-selector.js +3 -3
- package/dist/collection/components/my-component/UI/inputs/file-upload/file-upload.js +35 -22
- package/dist/collection/components/my-component/UI/inputs/file-upload/file-upload.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/file-upload/udp-drive-utils.js +202 -10
- package/dist/collection/components/my-component/UI/inputs/file-upload/udp-drive-utils.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/numeric-field/numeric-field.js +6 -6
- package/dist/collection/components/my-component/UI/inputs/numeric-field/numeric-field.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/signature-input/signature-input.js +52 -22
- package/dist/collection/components/my-component/UI/inputs/signature-input/signature-input.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/tally/tally.js +2 -2
- package/dist/collection/components/my-component/UI/inputs/text-area/text-area.js +99 -3
- package/dist/collection/components/my-component/UI/inputs/text-area/text-area.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/text-field/text-field.js +99 -3
- package/dist/collection/components/my-component/UI/inputs/text-field/text-field.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/time-selector/udp-time-selector.js +132 -6
- package/dist/collection/components/my-component/UI/inputs/time-selector/udp-time-selector.js.map +1 -1
- package/dist/collection/components/my-component/UI/inputs/toggle/stencil-toggle.js +4 -4
- package/dist/collection/components/my-component/UI/inputs/udp-selector/udp-selector.js +4 -4
- package/dist/collection/components/my-component/UI/layout/udp-container/udp-container.js +2 -2
- package/dist/collection/components/my-component/UI/layout/udp-container-query/udp-container-query.js +2 -2
- package/dist/collection/components/my-component/UI/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
- package/dist/collection/components/my-component/UI/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
- package/dist/collection/components/my-component/UI/layout/udp-page/udp-page.js +1 -1
- package/dist/collection/components/my-component/UI/layout/udp-split-screen/udp-split-screen.js +1 -1
- package/dist/collection/components/my-component/UI/layout/udp-vertical-spacer.js +1 -1
- package/dist/collection/components/my-component/UI/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
- package/dist/collection/components/my-component/UI/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
- package/dist/collection/components/my-component/UI/loaders/udp-skeleton-loading.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/map-component.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/popups/add-map-feature-popup.js +3 -3
- package/dist/collection/components/my-component/UI/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
- package/dist/collection/components/my-component/UI/map/udp-map/popups/feature-details-popup.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/popups/select-layer-popup.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/popups/split-line-popup.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/toolbar/map-toolbar.js +6 -6
- package/dist/collection/components/my-component/UI/map/udp-map/udp-map-toolbar.js +1 -1
- package/dist/collection/components/my-component/UI/map/udp-map/udp-map.js +3 -3
- package/dist/collection/components/my-component/UI/menu/menu-item/udp-menu-item.js +2 -2
- package/dist/collection/components/my-component/UI/stepper/udp-stepper-demo.js +1 -1
- package/dist/collection/components/my-component/UI/tabs/tab/tabs/udp-tabs.js +1 -1
- package/dist/collection/components/my-component/UI/tabs/tab/udp-tab.js +1 -1
- package/dist/collection/components/my-component/UI/toolbars/app-bar/app-bar.js +1 -1
- package/dist/collection/components/my-component/demo/ambient-demo-container.js +1 -1
- package/dist/collection/components/test-component/inputs-example/inputs-example.js +2 -2
- package/dist/collection/components/test-component/inputs-example/inputs-example.js.map +1 -1
- package/dist/collection/page-renderer/page-renderer.js +1 -1
- package/dist/collection/theme/color-preview/color-preview.js +1 -1
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
- package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
- package/dist/components/add-map-feature-popup.js +1 -1
- package/dist/components/advanced-search-grouped.js +1 -1
- package/dist/components/advanced-search.js +1 -1
- package/dist/components/ag-grid-base.js +1 -1
- package/dist/components/ag-table.js +1 -1
- package/dist/components/ambient-demo-container.js +1 -1
- package/dist/components/ambient-template-grid.js +1 -1
- package/dist/components/api-method-grid.js +4 -4
- package/dist/components/app-bar.js +1 -1
- package/dist/components/chart-container.js +1 -1
- package/dist/components/check-box-group.js +1 -1
- package/dist/components/check-box.js +1 -1
- package/dist/components/chip-section.js +3 -3
- package/dist/components/client-side-grid.js +3 -3
- package/dist/components/color-preview.js +1 -1
- package/dist/components/date-time-renderer.js +1 -1
- package/dist/components/edit-view-form-dialog.js +1 -1
- package/dist/components/feature-details-card.js +1 -1
- package/dist/components/feature-details-popup.js +1 -1
- package/dist/components/file-upload-renderer.js +1 -1
- package/dist/components/file-upload.js +1 -1
- package/dist/components/grid-header.js +1 -1
- package/dist/components/grid-primary-bar.js +1 -1
- package/dist/components/inputs-example.js +15 -15
- package/dist/components/inputs-example.js.map +1 -1
- package/dist/components/list-options-renderer.js +1 -1
- package/dist/components/map-component.js +1 -1
- package/dist/components/map-toolbar.js +1 -1
- package/dist/components/my-component.js +26 -26
- package/dist/components/numeric-field.js +1 -1
- package/dist/components/{p-CfZR5rek.js → p-0F2I6Qvn.js} +3 -3
- package/dist/components/{p-CfZR5rek.js.map → p-0F2I6Qvn.js.map} +1 -1
- package/dist/components/{p-BbC2Itep.js → p-1CPON0Xx.js} +5 -5
- package/dist/components/{p-BbC2Itep.js.map → p-1CPON0Xx.js.map} +1 -1
- package/dist/components/{p-IlXn87Ki.js → p-1Cv4cku0.js} +4 -14
- package/dist/components/p-1Cv4cku0.js.map +1 -0
- package/dist/components/{p-CTn3c76I.js → p-1uly65Sv.js} +3 -3
- package/dist/components/{p-CTn3c76I.js.map → p-1uly65Sv.js.map} +1 -1
- package/dist/components/{p-C8cWVxBF.js → p-26jyxB7s.js} +66 -27
- package/dist/components/p-26jyxB7s.js.map +1 -0
- package/dist/components/{p-GQEOUb0c.js → p-4hWvEEZf.js} +5 -5
- package/dist/components/{p-GQEOUb0c.js.map → p-4hWvEEZf.js.map} +1 -1
- package/dist/components/{p-HrsHnWeG.js → p-6EzLtNtq.js} +6 -6
- package/dist/components/{p-HrsHnWeG.js.map → p-6EzLtNtq.js.map} +1 -1
- package/dist/components/{p-syf9yo9-.js → p-8avkq8Fj.js} +4 -4
- package/dist/components/{p-syf9yo9-.js.map → p-8avkq8Fj.js.map} +1 -1
- package/dist/components/{p-B8k9GGZB.js → p-8paOuPay.js} +4 -4
- package/dist/components/{p-B8k9GGZB.js.map → p-8paOuPay.js.map} +1 -1
- package/dist/components/{p-DntePo7I.js → p-B2mj8zmp.js} +3 -3
- package/dist/components/{p-DntePo7I.js.map → p-B2mj8zmp.js.map} +1 -1
- package/dist/components/{p-Bv1MGbhE.js → p-B3gbGwCE.js} +50 -83
- package/dist/components/p-B3gbGwCE.js.map +1 -0
- package/dist/components/{p-ves_LtSN.js → p-B6A-djr0.js} +4 -4
- package/dist/components/{p-ves_LtSN.js.map → p-B6A-djr0.js.map} +1 -1
- package/dist/components/{p-D0T6NTw2.js → p-BANMRVyZ.js} +3 -3
- package/dist/components/{p-D0T6NTw2.js.map → p-BANMRVyZ.js.map} +1 -1
- package/dist/components/{p-D-JeGky8.js → p-BB2sALAW.js} +3 -3
- package/dist/components/{p-D-JeGky8.js.map → p-BB2sALAW.js.map} +1 -1
- package/dist/components/{p-DehJN46u.js → p-BLWvjl_b.js} +6 -6
- package/dist/components/{p-DehJN46u.js.map → p-BLWvjl_b.js.map} +1 -1
- package/dist/components/{p-y6ddPVSK.js → p-BO3Kzy6x.js} +6 -6
- package/dist/components/{p-y6ddPVSK.js.map → p-BO3Kzy6x.js.map} +1 -1
- package/dist/components/p-BY5RQ-T1.js +16 -0
- package/dist/components/p-BY5RQ-T1.js.map +1 -0
- package/dist/components/{p-ClToknIK.js → p-BbOHuqrJ.js} +5 -5
- package/dist/components/{p-ClToknIK.js.map → p-BbOHuqrJ.js.map} +1 -1
- package/dist/components/{p-CJsnV8uM.js → p-BfT3KUJC.js} +4 -4
- package/dist/components/{p-CJsnV8uM.js.map → p-BfT3KUJC.js.map} +1 -1
- package/dist/components/{p-BdWgc1UD.js → p-Bi8lqIP-.js} +8 -7
- package/dist/components/p-Bi8lqIP-.js.map +1 -0
- package/dist/components/{p-DNxY-i6k.js → p-BpD1NQKC.js} +5 -5
- package/dist/components/{p-DNxY-i6k.js.map → p-BpD1NQKC.js.map} +1 -1
- package/dist/components/p-BtOBW9_N.js +142 -0
- package/dist/components/p-BtOBW9_N.js.map +1 -0
- package/dist/components/{p-Akx0UDMW.js → p-BwPAbBUr.js} +4 -4
- package/dist/components/{p-Akx0UDMW.js.map → p-BwPAbBUr.js.map} +1 -1
- package/dist/components/p-BzH4NpB-.js +301 -0
- package/dist/components/p-BzH4NpB-.js.map +1 -0
- package/dist/components/{p-CSunqYw8.js → p-C-E6e6mL.js} +17 -17
- package/dist/components/{p-CSunqYw8.js.map → p-C-E6e6mL.js.map} +1 -1
- package/dist/components/{p-DWJbhjYR.js → p-C1K2NBql.js} +5 -5
- package/dist/components/{p-DWJbhjYR.js.map → p-C1K2NBql.js.map} +1 -1
- package/dist/components/{p-CNC3rtXm.js → p-C2j9tPIU.js} +4 -4
- package/dist/components/{p-CNC3rtXm.js.map → p-C2j9tPIU.js.map} +1 -1
- package/dist/components/p-C5aOw4Ij.js +168 -0
- package/dist/components/p-C5aOw4Ij.js.map +1 -0
- package/dist/components/{p-CJINZgmD.js → p-C6bm8Rs4.js} +17 -17
- package/dist/components/{p-CJINZgmD.js.map → p-C6bm8Rs4.js.map} +1 -1
- package/dist/components/{p-PqypuW_Q.js → p-CL4gkS6u.js} +22 -84
- package/dist/components/p-CL4gkS6u.js.map +1 -0
- package/dist/components/{p-DeS7YSzc.js → p-CMTLAuz8.js} +3 -3
- package/dist/components/{p-DeS7YSzc.js.map → p-CMTLAuz8.js.map} +1 -1
- package/dist/components/p-CWAWWTnd.js +47 -0
- package/dist/components/p-CWAWWTnd.js.map +1 -0
- package/dist/components/{p-B3-pcvgV.js → p-Cdz5sX_v.js} +38 -25
- package/dist/components/p-Cdz5sX_v.js.map +1 -0
- package/dist/components/{p-byKLubNE.js → p-Coa3kO6W.js} +3 -3
- package/dist/components/{p-byKLubNE.js.map → p-Coa3kO6W.js.map} +1 -1
- package/dist/components/{p-DzaN4l_Y.js → p-Cp1kbBGM.js} +5 -5
- package/dist/components/{p-DzaN4l_Y.js.map → p-Cp1kbBGM.js.map} +1 -1
- package/dist/components/{p-BYsLvu6g.js → p-CpMdhv3j.js} +69 -5
- package/dist/components/p-CpMdhv3j.js.map +1 -0
- package/dist/components/{p-BWI0GtPn.js → p-CpQin4NC.js} +7 -7
- package/dist/components/{p-BWI0GtPn.js.map → p-CpQin4NC.js.map} +1 -1
- package/dist/components/{p-DIPIddaO.js → p-CqiZ9SAU.js} +3 -3
- package/dist/components/{p-DIPIddaO.js.map → p-CqiZ9SAU.js.map} +1 -1
- package/dist/components/{p-DxJCXXmE.js → p-Cr_ifuX-.js} +27 -26
- package/dist/components/p-Cr_ifuX-.js.map +1 -0
- package/dist/components/{p-bLKTEsIH.js → p-CsMmUkoQ.js} +8 -8
- package/dist/components/{p-bLKTEsIH.js.map → p-CsMmUkoQ.js.map} +1 -1
- package/dist/components/{p-Cf-3pInV.js → p-Ct7EvUCI.js} +3 -3
- package/dist/components/{p-Cf-3pInV.js.map → p-Ct7EvUCI.js.map} +1 -1
- package/dist/components/{p-BbHv2Hzb.js → p-CvQ8X76F.js} +8 -8
- package/dist/components/{p-BbHv2Hzb.js.map → p-CvQ8X76F.js.map} +1 -1
- package/dist/components/{p-BEwTqpWE.js → p-CxOYMG-r.js} +4 -4
- package/dist/components/{p-BEwTqpWE.js.map → p-CxOYMG-r.js.map} +1 -1
- package/dist/components/{p-DOKGpXin.js → p-Cyigv-iT.js} +27 -8
- package/dist/components/p-Cyigv-iT.js.map +1 -0
- package/dist/components/{p-hRee3qYx.js → p-D6Wo7quX.js} +7 -2
- package/dist/components/p-D6Wo7quX.js.map +1 -0
- package/dist/components/{p-BUw3R0Ql.js → p-D9A5l8BE.js} +7 -7
- package/dist/components/{p-BUw3R0Ql.js.map → p-D9A5l8BE.js.map} +1 -1
- package/dist/components/{p-CDnOrzs3.js → p-DBtdo56U.js} +4 -4
- package/dist/components/{p-CDnOrzs3.js.map → p-DBtdo56U.js.map} +1 -1
- package/dist/components/{p-BIc3R4fE.js → p-DFKz-3Nr.js} +5 -5
- package/dist/components/{p-BIc3R4fE.js.map → p-DFKz-3Nr.js.map} +1 -1
- package/dist/components/{p-BJerffMg.js → p-DL9uHt-7.js} +5 -5
- package/dist/components/{p-BJerffMg.js.map → p-DL9uHt-7.js.map} +1 -1
- package/dist/components/{p-DIcPqQkn.js → p-DSIcWNUB.js} +5 -4
- package/dist/components/p-DSIcWNUB.js.map +1 -0
- package/dist/components/{p-CRiQA7Cy.js → p-DZaCCOXB.js} +69 -5
- package/dist/components/p-DZaCCOXB.js.map +1 -0
- package/dist/components/{p-BwHEv1Kb.js → p-DaMmzX_J.js} +13 -13
- package/dist/components/{p-BwHEv1Kb.js.map → p-DaMmzX_J.js.map} +1 -1
- package/dist/components/{p-CY0PAhIT.js → p-Dmmz74K2.js} +4 -4
- package/dist/components/{p-CY0PAhIT.js.map → p-Dmmz74K2.js.map} +1 -1
- package/dist/components/{p-DMcaGgHq.js → p-DnMRLbBX.js} +5 -5
- package/dist/components/{p-DMcaGgHq.js.map → p-DnMRLbBX.js.map} +1 -1
- package/dist/components/{p-ChdtzL8Z.js → p-Dpvhge5H.js} +10 -9
- package/dist/components/p-Dpvhge5H.js.map +1 -0
- package/dist/components/p-DtiAfg0X.js +25 -0
- package/dist/components/p-DtiAfg0X.js.map +1 -0
- package/dist/components/{p-XoXMxeuq.js → p-Dwnxv7WO.js} +3 -3
- package/dist/components/{p-XoXMxeuq.js.map → p-Dwnxv7WO.js.map} +1 -1
- package/dist/components/{p-BvSuY3tY.js → p-Dx5ehH3t.js} +7 -7
- package/dist/components/{p-BvSuY3tY.js.map → p-Dx5ehH3t.js.map} +1 -1
- package/dist/components/{p-DueJnVH4.js → p-DyC6jVV8.js} +10 -9
- package/dist/components/p-DyC6jVV8.js.map +1 -0
- package/dist/components/{p-Bdt-oOnd.js → p-Oil5iqFm.js} +120 -8
- package/dist/components/p-Oil5iqFm.js.map +1 -0
- package/dist/components/{p-C6aDnKNm.js → p-P3YTnOWe.js} +5 -5
- package/dist/components/{p-C6aDnKNm.js.map → p-P3YTnOWe.js.map} +1 -1
- package/dist/components/{p-CLvAjrtw.js → p-Qxi-zxd0.js} +8 -8
- package/dist/components/{p-CLvAjrtw.js.map → p-Qxi-zxd0.js.map} +1 -1
- package/dist/components/{p-DRO3I7Mm.js → p-Qxw1cxga.js} +8 -8
- package/dist/components/{p-DRO3I7Mm.js.map → p-Qxw1cxga.js.map} +1 -1
- package/dist/components/{p-DLWUrvpt.js → p-Tu9UB-v3.js} +5 -5
- package/dist/components/{p-DLWUrvpt.js.map → p-Tu9UB-v3.js.map} +1 -1
- package/dist/components/{p-DQIj9UI7.js → p-Ut5zP7nE.js} +5 -5
- package/dist/components/{p-DQIj9UI7.js.map → p-Ut5zP7nE.js.map} +1 -1
- package/dist/components/{p-Thx6k3Xp.js → p-WLd9SWLl.js} +4 -4
- package/dist/components/{p-Thx6k3Xp.js.map → p-WLd9SWLl.js.map} +1 -1
- package/dist/components/{p-BTIWOttf.js → p-W_kxEzVl.js} +6 -6
- package/dist/components/{p-BTIWOttf.js.map → p-W_kxEzVl.js.map} +1 -1
- package/dist/components/{p-BOW03S7b.js → p-XP8tp0pm.js} +5 -5
- package/dist/components/{p-BOW03S7b.js.map → p-XP8tp0pm.js.map} +1 -1
- package/dist/components/{p-w2FTnlQG.js → p-_HuUfybA.js} +3 -3
- package/dist/components/{p-w2FTnlQG.js.map → p-_HuUfybA.js.map} +1 -1
- package/dist/components/{p-BU706xtx.js → p-hWgAmNsF.js} +3 -3
- package/dist/components/{p-BU706xtx.js.map → p-hWgAmNsF.js.map} +1 -1
- package/dist/components/{p-Bykep8mm.js → p-ibwbE8nI.js} +4 -4
- package/dist/components/{p-Bykep8mm.js.map → p-ibwbE8nI.js.map} +1 -1
- package/dist/components/{p-CA-v1fbV.js → p-ill5r6eV.js} +40 -9
- package/dist/components/p-ill5r6eV.js.map +1 -0
- package/dist/components/{p-DqYsDDHy.js → p-jdqTpLxN.js} +4 -4
- package/dist/components/{p-DqYsDDHy.js.map → p-jdqTpLxN.js.map} +1 -1
- package/dist/components/{p-ByM88ZWk.js → p-jpt3zFdi.js} +3 -3
- package/dist/components/{p-ByM88ZWk.js.map → p-jpt3zFdi.js.map} +1 -1
- package/dist/components/{p-BEtm34A3.js → p-ncemY4Wx.js} +37 -36
- package/dist/components/p-ncemY4Wx.js.map +1 -0
- package/dist/components/{p-DqPGCQm2.js → p-s8qXxEgi.js} +3 -3
- package/dist/components/{p-DqPGCQm2.js.map → p-s8qXxEgi.js.map} +1 -1
- package/dist/components/p-vrP9HZiW.js +156 -0
- package/dist/components/p-vrP9HZiW.js.map +1 -0
- package/dist/components/{p-D32jPxWa.js → p-ycrk0Lr4.js} +5 -5
- package/dist/components/{p-D32jPxWa.js.map → p-ycrk0Lr4.js.map} +1 -1
- package/dist/components/page-renderer.js +21 -21
- package/dist/components/primary-action-header.js +1 -1
- package/dist/components/question-configs-renderer.js +1 -1
- package/dist/components/question-specific-configs-renderer.js +1 -1
- package/dist/components/resource-timeline-calendar.js +5 -5
- package/dist/components/resource-timeline-primary-bar.js +1 -1
- package/dist/components/save-view-form-dialog.js +1 -1
- package/dist/components/search-list-item.js +1 -1
- package/dist/components/section-configs-renderer.js +1 -1
- package/dist/components/select-layer-popup.js +1 -1
- package/dist/components/server-side-grid.js +1 -1
- package/dist/components/side-sheet.js +1 -1
- package/dist/components/signature-input.js +1 -1
- package/dist/components/split-line-popup.js +1 -1
- package/dist/components/stencil-field.js +1 -1
- package/dist/components/stencil-form.js +1 -1
- package/dist/components/stencil-icon-button.js +1 -1
- package/dist/components/stencil-toggle.js +1 -1
- package/dist/components/tally-display.js +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-field.js +1 -1
- package/dist/components/text-input-renderer.js +1 -1
- package/dist/components/udp-ambient-card.js +1 -1
- package/dist/components/udp-avatar.js +1 -1
- package/dist/components/udp-bar-chart.js +1 -1
- package/dist/components/udp-charts-example.js +7 -7
- package/dist/components/udp-container-query-grid-item.js +1 -1
- package/dist/components/udp-container-query-grid.js +2 -2
- package/dist/components/udp-container-query.js +1 -1
- package/dist/components/udp-container.js +1 -1
- package/dist/components/udp-date-selector.js +1 -1
- package/dist/components/udp-datetime-selector.js +1 -1
- package/dist/components/udp-distribution-chart.js +1 -1
- package/dist/components/udp-donut-chart.js +1 -1
- package/dist/components/udp-dynamic-container-with-menu.js +1 -1
- package/dist/components/udp-dynamic-form.js +4 -4
- package/dist/components/udp-forms-builder-menu.js +1 -1
- package/dist/components/udp-forms-builder-question-item.js +1 -1
- package/dist/components/udp-forms-builder-style-override.js +1 -1
- package/dist/components/udp-forms-builder.js +162 -183
- package/dist/components/udp-forms-builder.js.map +1 -1
- package/dist/components/udp-forms-list-card.js +1 -1
- package/dist/components/udp-forms-list.js +10 -10
- package/dist/components/udp-forms-renderer.js +244 -219
- package/dist/components/udp-forms-renderer.js.map +1 -1
- package/dist/components/udp-forms-ui.js +1 -1
- package/dist/components/udp-grid-loader.js +1 -1
- package/dist/components/udp-hotlist-form.js +1 -1
- package/dist/components/udp-icon-button.d.ts +11 -0
- package/dist/components/udp-icon-button.js +9 -0
- package/dist/components/udp-icon-button.js.map +1 -0
- package/dist/components/udp-icon.js +1 -1
- package/dist/components/udp-line-chart.js +1 -1
- package/dist/components/udp-linear-loader.js +1 -1
- package/dist/components/udp-list-item.js +2 -2
- package/dist/components/udp-map-toolbar.js +1 -1
- package/dist/components/udp-map.js +17 -17
- package/dist/components/udp-menu-item.js +1 -1
- package/dist/components/udp-page.js +1 -1
- package/dist/components/udp-question.js +1 -1
- package/dist/components/udp-save-draft-button.d.ts +11 -0
- package/dist/components/udp-save-draft-button.js +9 -0
- package/dist/components/udp-save-draft-button.js.map +1 -0
- package/dist/components/udp-selector.js +1 -1
- package/dist/components/udp-side-sheet.js +1 -1
- package/dist/components/udp-skeleton-loading.js +1 -1
- package/dist/components/udp-split-screen.js +1 -1
- package/dist/components/udp-stepper-demo.js +1 -1
- package/dist/components/udp-tab.js +1 -1
- package/dist/components/udp-tabs.js +1 -1
- package/dist/components/udp-time-selector.js +1 -1
- package/dist/components/udp-vertical-spacer.js +1 -1
- package/dist/esm/add-map-feature-popup_4.entry.js +11 -11
- package/dist/esm/advanced-search_50.entry.js +109 -41
- package/dist/esm/advanced-search_50.entry.js.map +1 -1
- package/dist/esm/ag-grid-base_2.entry.js +2 -2
- package/dist/esm/api-method-grid.entry.js +1 -1
- package/dist/esm/check-box.entry.js +2 -2
- package/dist/esm/chip-section.entry.js +2 -2
- package/dist/esm/client-side-grid.entry.js +1 -1
- package/dist/esm/color-preview.entry.js +1 -1
- package/dist/esm/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.text-input-renderer.entry.js.map +1 -1
- package/dist/esm/date-time-renderer_5.entry.js +17 -16
- package/dist/esm/date-time-renderer_5.entry.js.map +1 -1
- package/dist/esm/enums-DtiAfg0X.js +25 -0
- package/dist/esm/enums-DtiAfg0X.js.map +1 -0
- package/dist/esm/feature-details-card_2.entry.js +5 -5
- package/dist/esm/file-upload.selectable-list.stencil-field.entry.js.map +1 -1
- package/dist/esm/file-upload_3.entry.js +73 -29
- package/dist/esm/file-upload_3.entry.js.map +1 -1
- package/dist/esm/index-CaIWDYyq.js +8 -8
- package/dist/esm/inputs-example.entry.js +2 -2
- package/dist/esm/inputs-example.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-component_2.entry.js +2 -2
- package/dist/esm/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.js.map +1 -1
- package/dist/esm/numeric-field_5.entry.js +195 -20
- package/dist/esm/numeric-field_5.entry.js.map +1 -1
- package/dist/esm/page-renderer.entry.js +1 -1
- package/dist/esm/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.udp-forms-builder-style-override.entry.js.map +1 -1
- package/dist/esm/question-configs-renderer_5.entry.js +17 -4
- package/dist/esm/question-configs-renderer_5.entry.js.map +1 -1
- package/dist/esm/resource-timeline-calendar.entry.js +1 -1
- package/dist/esm/resource-timeline-primary-bar.entry.js +1 -1
- package/dist/esm/server-side-grid.entry.js +1 -1
- package/dist/esm/signature-input.stencil-form.tally-display.udp-icon-button.udp-question.udp-save-draft-button.entry.js.map +1 -0
- package/dist/esm/{signature-input_4.entry.js → signature-input_6.entry.js} +315 -115
- package/dist/esm/signature-input_6.entry.js.map +1 -0
- package/dist/esm/stencil-library.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-drive-utils-Cm3Sms8t.js +168 -0
- package/dist/esm/udp-drive-utils-Cm3Sms8t.js.map +1 -0
- package/dist/esm/udp-forms-builder.entry.js +133 -152
- package/dist/esm/udp-forms-builder.entry.js.map +1 -1
- package/dist/esm/udp-forms-list-card_2.entry.js +5 -5
- package/dist/esm/udp-forms-list.entry.js +1 -1
- package/dist/esm/udp-forms-renderer.entry.js +186 -176
- package/dist/esm/udp-forms-renderer.entry.js.map +1 -1
- package/dist/esm/udp-forms-ui.entry.js +113 -82
- package/dist/esm/udp-forms-ui.entry.js.map +1 -1
- package/dist/esm/udp-map.entry.js +3 -3
- package/dist/esm/udp-page.entry.js +1 -1
- package/dist/esm/udp-split-screen.entry.js +1 -1
- package/dist/esm/udp-stepper-demo.entry.js +1 -1
- package/dist/esm/udp-vertical-spacer.entry.js +1 -1
- package/dist/esm/utils-DZv4MqyU.js +31 -0
- package/dist/esm/utils-DZv4MqyU.js.map +1 -0
- package/dist/stencil-library/date-time-renderer.file-upload-renderer.list-options-renderer.question-specific-configs-renderer.text-input-renderer.entry.esm.js.map +1 -1
- package/dist/stencil-library/file-upload.selectable-list.stencil-field.entry.esm.js.map +1 -1
- package/dist/stencil-library/inputs-example.entry.esm.js.map +1 -1
- package/dist/stencil-library/numeric-field.text-area.udp-date-selector.udp-datetime-selector.udp-time-selector.entry.esm.js.map +1 -1
- package/dist/stencil-library/p-09319660.entry.js +2 -0
- package/dist/stencil-library/p-09319660.entry.js.map +1 -0
- package/dist/stencil-library/p-146bc917.entry.js +2 -0
- package/dist/stencil-library/{p-b3b6310e.entry.js → p-147c4595.entry.js} +2 -2
- package/dist/stencil-library/{p-06ca29e0.entry.js → p-1b001f78.entry.js} +2 -2
- package/dist/stencil-library/{p-762591f6.entry.js → p-2635a6cc.entry.js} +2 -2
- package/dist/stencil-library/p-2f2fd111.entry.js +2 -0
- package/dist/stencil-library/{p-368be454.entry.js → p-2fc495ce.entry.js} +2 -2
- package/dist/stencil-library/{p-fdfa7087.entry.js → p-476c08df.entry.js} +2 -2
- package/dist/stencil-library/{p-ee1610d3.entry.js → p-4ab893a0.entry.js} +2 -2
- package/dist/stencil-library/p-4dac2b6d.entry.js +2 -0
- package/dist/stencil-library/p-4dac2b6d.entry.js.map +1 -0
- package/dist/stencil-library/p-556a182f.entry.js +2 -0
- package/dist/stencil-library/p-556a182f.entry.js.map +1 -0
- package/dist/stencil-library/p-5ac16f81.entry.js +2 -0
- package/dist/stencil-library/p-5ac16f81.entry.js.map +1 -0
- package/dist/stencil-library/p-609236fc.entry.js +2 -0
- package/dist/stencil-library/p-609236fc.entry.js.map +1 -0
- package/dist/stencil-library/{p-9b0b311b.entry.js → p-64330dbb.entry.js} +2 -2
- package/dist/stencil-library/p-65a5cce3.entry.js +2 -0
- package/dist/stencil-library/{p-5a946191.entry.js → p-70d8a0d8.entry.js} +2 -2
- package/dist/stencil-library/{p-79065768.entry.js → p-8119eb18.entry.js} +2 -2
- package/dist/stencil-library/{p-2f99476a.entry.js → p-86cd0134.entry.js} +2 -2
- package/dist/stencil-library/p-89aa56f1.entry.js +2 -0
- package/dist/stencil-library/p-89aa56f1.entry.js.map +1 -0
- package/dist/stencil-library/{p-767b7be7.entry.js → p-8a0b6bd4.entry.js} +2 -2
- package/dist/stencil-library/{p-40127f9f.entry.js → p-90fbca0f.entry.js} +2 -2
- package/dist/stencil-library/p-C5aOw4Ij.js +2 -0
- package/dist/stencil-library/p-C5aOw4Ij.js.map +1 -0
- package/dist/stencil-library/p-DZv4MqyU.js +2 -0
- package/dist/stencil-library/p-DZv4MqyU.js.map +1 -0
- package/dist/stencil-library/p-DtiAfg0X.js +2 -0
- package/dist/stencil-library/p-DtiAfg0X.js.map +1 -0
- package/dist/stencil-library/{p-f4f4ba61.entry.js → p-a98b033e.entry.js} +2 -2
- package/dist/stencil-library/p-a98b033e.entry.js.map +1 -0
- package/dist/stencil-library/{p-2a11c543.entry.js → p-ae167d4b.entry.js} +2 -2
- package/dist/stencil-library/{p-55459135.entry.js → p-b53e1b9a.entry.js} +2 -2
- package/dist/stencil-library/p-c1966f2c.entry.js +2 -0
- package/dist/stencil-library/p-c1966f2c.entry.js.map +1 -0
- package/dist/stencil-library/{p-0de6045a.entry.js → p-c9046d64.entry.js} +2 -2
- package/dist/stencil-library/{p-c1809ef3.entry.js → p-ca53be83.entry.js} +2 -2
- package/dist/stencil-library/p-d46dd16c.entry.js +2 -0
- package/dist/stencil-library/{p-09186dea.entry.js → p-d48b5599.entry.js} +2 -2
- package/dist/stencil-library/p-d4f31146.entry.js +2 -0
- package/dist/stencil-library/p-d4f31146.entry.js.map +1 -0
- package/dist/stencil-library/{p-b0b70c0b.entry.js → p-e7e8a8a3.entry.js} +2 -2
- package/dist/stencil-library/p-ea6e9a24.entry.js +2 -0
- package/dist/stencil-library/p-ea6e9a24.entry.js.map +1 -0
- package/dist/stencil-library/{p-79587009.entry.js → p-f4b5879d.entry.js} +2 -2
- package/dist/stencil-library/p-fbfbbcf1.entry.js +2 -0
- package/dist/stencil-library/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.udp-forms-builder-style-override.entry.esm.js.map +1 -1
- package/dist/stencil-library/signature-input.stencil-form.tally-display.udp-icon-button.udp-question.udp-save-draft-button.entry.esm.js.map +1 -0
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/udp-forms-builder.entry.esm.js.map +1 -1
- package/dist/stencil-library/udp-forms-renderer.entry.esm.js.map +1 -1
- package/dist/stencil-library/udp-forms-ui.entry.esm.js.map +1 -1
- package/dist/types/components/my-component/UI/buttons/icon-button/stencil-icon-button.d.ts +14 -0
- package/dist/types/components/my-component/UI/buttons/udp-icon-button/udp-icon-button.d.ts +91 -0
- package/dist/types/components/my-component/UI/forms/form/stencil-field.d.ts +2 -1
- package/dist/types/components/my-component/UI/forms/form/stencil-form.d.ts +7 -5
- package/dist/types/components/my-component/UI/forms/udp-forms/types.d.ts +16 -0
- package/dist/types/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.d.ts +1 -0
- package/dist/types/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder.d.ts +16 -19
- package/dist/types/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.d.ts +14 -26
- package/dist/types/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-ui.d.ts +21 -7
- package/dist/types/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-save-draft-button/udp-save-draft-button.d.ts +20 -0
- package/dist/types/components/my-component/UI/inputs/file-upload/file-upload.d.ts +1 -1
- package/dist/types/components/my-component/UI/inputs/file-upload/udp-drive-utils.d.ts +68 -1
- package/dist/types/components/my-component/UI/inputs/numeric-field/numeric-field.d.ts +1 -1
- package/dist/types/components/my-component/UI/inputs/signature-input/signature-input.d.ts +1 -1
- package/dist/types/components/my-component/UI/inputs/text-area/text-area.d.ts +21 -0
- package/dist/types/components/my-component/UI/inputs/text-field/text-field.d.ts +21 -0
- package/dist/types/components/my-component/UI/inputs/time-selector/udp-time-selector.d.ts +33 -1
- package/dist/types/components.d.ts +384 -14
- package/package.json +1 -1
- package/dist/cjs/signature-input.stencil-form.tally-display.udp-question.entry.cjs.js.map +0 -1
- package/dist/cjs/signature-input_4.cjs.entry.js.map +0 -1
- package/dist/cjs/utils-DMhqs00g.js +0 -55
- package/dist/cjs/utils-DMhqs00g.js.map +0 -1
- package/dist/collection/components/my-component/UI/forms/form/stencil-field.css +0 -70
- package/dist/collection/components/my-component/UI/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.css +0 -89
- package/dist/components/p-B3-pcvgV.js.map +0 -1
- package/dist/components/p-BEtm34A3.js.map +0 -1
- package/dist/components/p-BYsLvu6g.js.map +0 -1
- package/dist/components/p-BdWgc1UD.js.map +0 -1
- package/dist/components/p-Bdt-oOnd.js.map +0 -1
- package/dist/components/p-Bv1MGbhE.js.map +0 -1
- package/dist/components/p-C8cWVxBF.js.map +0 -1
- package/dist/components/p-C9cEH65u.js +0 -307
- package/dist/components/p-C9cEH65u.js.map +0 -1
- package/dist/components/p-CA-v1fbV.js.map +0 -1
- package/dist/components/p-CRiQA7Cy.js.map +0 -1
- package/dist/components/p-ChdtzL8Z.js.map +0 -1
- package/dist/components/p-DIcPqQkn.js.map +0 -1
- package/dist/components/p-DOKGpXin.js.map +0 -1
- package/dist/components/p-DueJnVH4.js.map +0 -1
- package/dist/components/p-DxJCXXmE.js.map +0 -1
- package/dist/components/p-IlXn87Ki.js.map +0 -1
- package/dist/components/p-PqypuW_Q.js.map +0 -1
- package/dist/components/p-hRee3qYx.js.map +0 -1
- package/dist/esm/signature-input.stencil-form.tally-display.udp-question.entry.js.map +0 -1
- package/dist/esm/signature-input_4.entry.js.map +0 -1
- package/dist/esm/utils-vXSpJxEK.js +0 -52
- package/dist/esm/utils-vXSpJxEK.js.map +0 -1
- package/dist/stencil-library/p-00c1ce44.entry.js +0 -2
- package/dist/stencil-library/p-00c1ce44.entry.js.map +0 -1
- package/dist/stencil-library/p-250a8400.entry.js +0 -2
- package/dist/stencil-library/p-2fda98ee.entry.js +0 -2
- package/dist/stencil-library/p-2fda98ee.entry.js.map +0 -1
- package/dist/stencil-library/p-50f67815.entry.js +0 -2
- package/dist/stencil-library/p-50f67815.entry.js.map +0 -1
- package/dist/stencil-library/p-584552e6.entry.js +0 -2
- package/dist/stencil-library/p-5e96c57a.entry.js +0 -2
- package/dist/stencil-library/p-5e96c57a.entry.js.map +0 -1
- package/dist/stencil-library/p-6a1febc9.entry.js +0 -2
- package/dist/stencil-library/p-6ed5258c.entry.js +0 -2
- package/dist/stencil-library/p-6ed5258c.entry.js.map +0 -1
- package/dist/stencil-library/p-77739d4b.entry.js +0 -2
- package/dist/stencil-library/p-77739d4b.entry.js.map +0 -1
- package/dist/stencil-library/p-7a2202b9.entry.js +0 -2
- package/dist/stencil-library/p-7a2202b9.entry.js.map +0 -1
- package/dist/stencil-library/p-84109194.entry.js +0 -2
- package/dist/stencil-library/p-b1d412a7.entry.js +0 -2
- package/dist/stencil-library/p-b1d412a7.entry.js.map +0 -1
- package/dist/stencil-library/p-f4f4ba61.entry.js.map +0 -1
- package/dist/stencil-library/p-f7c855d0.entry.js +0 -2
- package/dist/stencil-library/p-f889438a.entry.js +0 -2
- package/dist/stencil-library/p-f889438a.entry.js.map +0 -1
- package/dist/stencil-library/p-vXSpJxEK.js +0 -2
- package/dist/stencil-library/p-vXSpJxEK.js.map +0 -1
- package/dist/stencil-library/signature-input.stencil-form.tally-display.udp-question.entry.esm.js.map +0 -1
- /package/dist/stencil-library/{p-84109194.entry.js.map → p-146bc917.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-b3b6310e.entry.js.map → p-147c4595.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-06ca29e0.entry.js.map → p-1b001f78.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-762591f6.entry.js.map → p-2635a6cc.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-6a1febc9.entry.js.map → p-2f2fd111.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-368be454.entry.js.map → p-2fc495ce.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-fdfa7087.entry.js.map → p-476c08df.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-ee1610d3.entry.js.map → p-4ab893a0.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-9b0b311b.entry.js.map → p-64330dbb.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-584552e6.entry.js.map → p-65a5cce3.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-5a946191.entry.js.map → p-70d8a0d8.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-79065768.entry.js.map → p-8119eb18.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-2f99476a.entry.js.map → p-86cd0134.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-767b7be7.entry.js.map → p-8a0b6bd4.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-40127f9f.entry.js.map → p-90fbca0f.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-2a11c543.entry.js.map → p-ae167d4b.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-55459135.entry.js.map → p-b53e1b9a.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-0de6045a.entry.js.map → p-c9046d64.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-c1809ef3.entry.js.map → p-ca53be83.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-f7c855d0.entry.js.map → p-d46dd16c.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-09186dea.entry.js.map → p-d48b5599.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-b0b70c0b.entry.js.map → p-e7e8a8a3.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-79587009.entry.js.map → p-f4b5879d.entry.js.map} +0 -0
- /package/dist/stencil-library/{p-250a8400.entry.js.map → p-fbfbbcf1.entry.js.map} +0 -0
|
@@ -11,16 +11,29 @@ export class SectionConfigsRenderer {
|
|
|
11
11
|
sectionsCopy[sIndex] = updatedSection;
|
|
12
12
|
return sectionsCopy;
|
|
13
13
|
}
|
|
14
|
+
handleSectionRepeatablePropertyChange(sIndex, value) {
|
|
15
|
+
const sectionsCopy = deepCloneFormSections(this.formSectionsDraft);
|
|
16
|
+
const oldSection = Object.assign({}, sectionsCopy[sIndex]);
|
|
17
|
+
const updatedProperties = Object.assign(Object.assign({}, oldSection.sectionProperties), { isRepeatable: value });
|
|
18
|
+
const updatedSection = Object.assign(Object.assign({}, oldSection), { sectionProperties: updatedProperties });
|
|
19
|
+
sectionsCopy[sIndex] = updatedSection;
|
|
20
|
+
return sectionsCopy;
|
|
21
|
+
}
|
|
14
22
|
render() {
|
|
15
|
-
|
|
23
|
+
var _a;
|
|
24
|
+
return (h("div", { key: '1caf2cddda917bc5995b0ec0ec56bf3e5bb88e67', class: "generic-configs-container" }, h("text-area", { key: '5985a043366d88f49c8eb02b30220211c8f8a7e8', label: "Title", value: this.section.title || "", disabled: this.isViewOnly, placeholder: "Enter the section title here", rows: 2, maxRows: 5, fullWidth: true, onInput: (e) => {
|
|
16
25
|
const newValue = e.target.value;
|
|
17
26
|
const updated = this.handleSectionFieldChange(this.sIndex, 'title', newValue);
|
|
18
27
|
this.onFormSectionsDraftChange(updated);
|
|
19
|
-
} }), h("text-area", { key: '
|
|
28
|
+
} }), h("text-area", { key: '68599f20817fd65e76839f6cb7034c4e166699af', label: "Section Text", value: this.section.sectionText || "", disabled: this.isViewOnly, placeholder: "Enter the section text here", rows: 2, maxRows: 4, fullWidth: true, onInput: (e) => {
|
|
20
29
|
const newValue = e.target.value;
|
|
21
30
|
const updated = this.handleSectionFieldChange(this.sIndex, 'sectionText', newValue);
|
|
22
31
|
this.onFormSectionsDraftChange(updated);
|
|
23
|
-
} })))
|
|
32
|
+
} }), h("stencil-toggle", { key: '3990fe8500311ce8048b20dc3bb1661536d5495e', label: "Repeatable", disabled: this.isViewOnly, checked: ((_a = this.section.sectionProperties) === null || _a === void 0 ? void 0 : _a.isRepeatable) === true || false, onToggledChange: () => {
|
|
33
|
+
const newValue = !this.section.sectionProperties.isRepeatable;
|
|
34
|
+
const updated = this.handleSectionRepeatablePropertyChange(this.sIndex, newValue);
|
|
35
|
+
this.onFormSectionsDraftChange(updated);
|
|
36
|
+
}, labelPosition: "right" })));
|
|
24
37
|
}
|
|
25
38
|
static get is() { return "section-configs-renderer"; }
|
|
26
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-configs-renderer.js","sourceRoot":"","sources":["../../../../../../../../../src/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAOlE,MAAM,OAAO,sBAAsB;IAMjC,IAAY,OAAO;;QACjB,OAAO,MAAA,IAAI,CAAC,iBAAiB,0CAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEO,wBAAwB,CAAC,MAAc,EAAE,KAAoD,EAAE,KAAa;QAClH,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnE,MAAM,cAAc,mCAAQ,YAAY,CAAC,MAAM,CAAC,KAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAE,CAAC;QACnE,YAAY,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;QACtC,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,MAAM
|
|
1
|
+
{"version":3,"file":"section-configs-renderer.js","sourceRoot":"","sources":["../../../../../../../../../src/components/my-component/UI/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question_type_renderers/section-configs-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAOlE,MAAM,OAAO,sBAAsB;IAMjC,IAAY,OAAO;;QACjB,OAAO,MAAA,IAAI,CAAC,iBAAiB,0CAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEO,wBAAwB,CAAC,MAAc,EAAE,KAAoD,EAAE,KAAa;QAClH,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnE,MAAM,cAAc,mCAAQ,YAAY,CAAC,MAAM,CAAC,KAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAE,CAAC;QACnE,YAAY,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;QACtC,OAAO,YAAY,CAAA;IACrB,CAAC;IAEO,qCAAqC,CAAC,MAAc,EAAE,KAAc;QAC1E,MAAM,YAAY,GAAG,qBAAqB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnE,MAAM,UAAU,qBAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAA;QAC5C,MAAM,iBAAiB,mCAAQ,UAAU,CAAC,iBAAiB,KAAE,YAAY,EAAE,KAAK,GAAC,CAAA;QACjF,MAAM,cAAc,mCAAQ,UAAU,KAAE,iBAAiB,EAAE,iBAAiB,GAAE,CAAC;QAC/E,YAAY,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;QACtC,OAAO,YAAY,CAAA;IACrB,CAAC;IAED,MAAM;;QACJ,OAAO,CACL,4DAAK,KAAK,EAAC,2BAA2B;YAEpC,kEACE,KAAK,EAAC,OAAO,EACb,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,EAC/B,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,WAAW,EAAC,8BAA8B,EAC1C,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,CAAC,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,MAAM,QAAQ,GAAI,CAAC,CAAC,MAA8B,CAAC,KAAK,CAAC;oBACzD,MAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;oBAC9E,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;gBAC1C,CAAC,GACD;YACF,kEACE,KAAK,EAAC,cAAc,EACpB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,EACrC,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,WAAW,EAAC,6BAA6B,EACzC,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,CAAC,EACV,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,MAAM,QAAQ,GAAI,CAAC,CAAC,MAA8B,CAAC,KAAK,CAAC;oBACzD,MAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;oBACpF,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;gBAC1C,CAAC,GACD;YAEF,uEACM,KAAK,EAAC,YAAY,EAClB,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,CAAA,MAAA,IAAI,CAAC,OAAO,CAAC,iBAAiB,0CAAE,YAAY,MAAK,IAAI,IAAI,KAAK,EACvE,eAAe,EAAE,GAAG,EAAE;oBACpB,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC;oBAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,qCAAqC,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;oBAClF,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;gBAC1C,CAAC,EACD,aAAa,EAAC,OAAO,GACrB,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\nimport { deepCloneFormSections } from '../../forms-builder-utils';\n\n@Component({\n tag: 'section-configs-renderer',\n styleUrl: 'section-configs-renderer.css',\n shadow: true,\n})\nexport class SectionConfigsRenderer {\n @Prop() formSectionsDraft: any[];\n @Prop() sIndex: number;\n @Prop() isViewOnly: boolean;\n @Prop() onFormSectionsDraftChange: (updatedSections: any[]) => void;\n\n private get section() {\n return this.formSectionsDraft?.[this.sIndex];\n }\n \n private handleSectionFieldChange(sIndex: number, field: 'title' | 'sectionText' | 'sectionProperties', value: string) {\n const sectionsCopy = deepCloneFormSections(this.formSectionsDraft);\n const updatedSection = { ...sectionsCopy[sIndex], [field]: value };\n sectionsCopy[sIndex] = updatedSection;\n return sectionsCopy\n }\n\n private handleSectionRepeatablePropertyChange(sIndex: number, value: boolean) {\n const sectionsCopy = deepCloneFormSections(this.formSectionsDraft);\n const oldSection = {...sectionsCopy[sIndex]}\n const updatedProperties = {... oldSection.sectionProperties, isRepeatable: value}\n const updatedSection = { ...oldSection, sectionProperties: updatedProperties };\n sectionsCopy[sIndex] = updatedSection;\n return sectionsCopy\n }\n\n render() {\n return (\n <div class=\"generic-configs-container\">\n\n <text-area\n label=\"Title\"\n value={this.section.title || \"\"}\n disabled={this.isViewOnly}\n placeholder=\"Enter the section title here\"\n rows={2}\n maxRows={5}\n fullWidth={true}\n onInput={(e) => {\n const newValue = (e.target as HTMLTextAreaElement).value;\n const updated = this.handleSectionFieldChange(this.sIndex, 'title', newValue);\n this.onFormSectionsDraftChange(updated);\n }}\n />\n <text-area\n label=\"Section Text\"\n value={this.section.sectionText || \"\"}\n disabled={this.isViewOnly}\n placeholder=\"Enter the section text here\"\n rows={2}\n maxRows={4}\n fullWidth={true}\n onInput={(e) => {\n const newValue = (e.target as HTMLTextAreaElement).value;\n const updated = this.handleSectionFieldChange(this.sIndex, 'sectionText', newValue);\n this.onFormSectionsDraftChange(updated);\n }}\n />\n\n <stencil-toggle\n label=\"Repeatable\"\n disabled={this.isViewOnly}\n checked={this.section.sectionProperties?.isRepeatable === true || false}\n onToggledChange={() => {\n const newValue = !this.section.sectionProperties.isRepeatable;\n const updated = this.handleSectionRepeatablePropertyChange(this.sIndex, newValue);\n this.onFormSectionsDraftChange(updated);\n }}\n labelPosition=\"right\"\n />\n </div>\n );\n }\n}\n"]}
|
|
@@ -2,12 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
export class TextInputRenderer {
|
|
3
3
|
render() {
|
|
4
4
|
var _a, _b;
|
|
5
|
-
return (h("div", { key: '
|
|
5
|
+
return (h("div", { key: '00b2d4624cec8abd91e54323078a3d3edb6a8d81', class: "question-item-text-input-container" }, h("div", { key: '93a9c27a1c404c36b0c9ccf57a8b96da792f9d85' }, h("numeric-field", { key: '52027c652a80a9b2a72b2c610bdfed65d0b7db46', label: "Min Character Length", value: (_a = this.question.fieldProperties.minCharacter) === null || _a === void 0 ? void 0 : _a.toString(), disabled: this.isViewOnly, onChange: e => {
|
|
6
6
|
const handler = this.getHandler(this.question.fieldTypeId, 'handleFieldPropertyMinMaxCharacter');
|
|
7
7
|
const mockEvent = { target: { value: e.detail } };
|
|
8
8
|
const updated = handler(mockEvent, this.formSectionsDraft, this.sIndex, this.qIndex, 'minCharacter');
|
|
9
9
|
this.onFormSectionsDraftChange(updated);
|
|
10
|
-
} })), h("div", { key: '
|
|
10
|
+
} })), h("div", { key: 'f39ac7216923d620d368dbfd491286aa8e6d1d3d' }, h("numeric-field", { key: '2b4d90d2b40a19de2d935b92c7b8b4e767e76a83', label: "Max Character Length", value: (_b = this.question.fieldProperties.maxCharacter) === null || _b === void 0 ? void 0 : _b.toString(), disabled: this.isViewOnly, onChange: e => {
|
|
11
11
|
const handler = this.getHandler(this.question.fieldTypeId, 'handleFieldPropertyMinMaxCharacter');
|
|
12
12
|
const mockEvent = { target: { value: e.detail } };
|
|
13
13
|
const updated = handler(mockEvent, this.formSectionsDraft, this.sIndex, this.qIndex, 'maxCharacter');
|
|
@@ -46,7 +46,7 @@ const emptyStyleOverrides = {
|
|
|
46
46
|
const formSectionDefault = {
|
|
47
47
|
title: '',
|
|
48
48
|
sectionText: '',
|
|
49
|
-
sectionProperties: '',
|
|
49
|
+
sectionProperties: '{}',
|
|
50
50
|
formQuestions: [],
|
|
51
51
|
};
|
|
52
52
|
export class UdpFormsBuilder {
|
|
@@ -67,16 +67,13 @@ export class UdpFormsBuilder {
|
|
|
67
67
|
this.isQuestionEditorOpen = false;
|
|
68
68
|
this.isSectionEditorOpen = false;
|
|
69
69
|
this.dialogMessage = 'Are you sure you want to delete this?';
|
|
70
|
+
this.sortableInstances = [];
|
|
70
71
|
this.pageBuilderId = 'c77aa2c8-f8b8-41af-aa77-c8612fc918c1';
|
|
71
|
-
// ********************************** API CALLS **********************************
|
|
72
|
-
// ********************************** STENCIL RELATED **********************************
|
|
73
|
-
// ********************************** SORTABLE LOGIC **********************************
|
|
74
72
|
// ********************************** SIDE SHEET LOGIC **********************************
|
|
73
|
+
this.toggleStyleSheet = () => {
|
|
74
|
+
this.isStyleSheetOpen = !this.isStyleSheetOpen;
|
|
75
|
+
};
|
|
75
76
|
// ********************************** QUESTION HANDLERS **********************************
|
|
76
|
-
// ********************************** SECTION HANDLERS **********************************
|
|
77
|
-
// ********************************** FORM VALIDATION HELPERS **********************************
|
|
78
|
-
this.sortableInstances = [];
|
|
79
|
-
this.needsSortableInit = true;
|
|
80
77
|
this.getQuestionTypeName = fieldTypeId => {
|
|
81
78
|
const question = questionsTemplate.find(q => q.fieldTypeId === fieldTypeId);
|
|
82
79
|
return question ? question.questionTypeName : 'Unknown';
|
|
@@ -111,24 +108,6 @@ export class UdpFormsBuilder {
|
|
|
111
108
|
this.editingQuestion = null;
|
|
112
109
|
this.formSectionsDraft = null;
|
|
113
110
|
};
|
|
114
|
-
this.updateFormSectionsWithDraft = () => {
|
|
115
|
-
this.formSections = this.formSectionsDraft;
|
|
116
|
-
this.formSectionsDraft = null;
|
|
117
|
-
};
|
|
118
|
-
this.hasUnsavedFormSectionsChanges = () => {
|
|
119
|
-
// return !isEqual(this.formSections, this.formSectionsDraft); // NEED TO INSTALL PACKAGE
|
|
120
|
-
return JSON.stringify(this.formSections) !== JSON.stringify(this.formSectionsDraft); // Breaks on circular refs or non-serializable types (like Dates, Maps, etc.)
|
|
121
|
-
};
|
|
122
|
-
this.handleSectionEditClick = (sIndex) => {
|
|
123
|
-
this.editingSection = { sIndex };
|
|
124
|
-
this.isSectionEditorOpen = true;
|
|
125
|
-
this.formSectionsDraft = deepCloneFormSections(this.formSections);
|
|
126
|
-
};
|
|
127
|
-
this.closeSectionEditor = () => {
|
|
128
|
-
this.isSectionEditorOpen = false;
|
|
129
|
-
this.editingSection = null;
|
|
130
|
-
this.formSectionsDraft = null;
|
|
131
|
-
};
|
|
132
111
|
this.addQuestionOfType = (defaultQuestionObj, sIndex, qIndex) => {
|
|
133
112
|
const newQuestion = {
|
|
134
113
|
questionTypeName: defaultQuestionObj.questionTypeName,
|
|
@@ -142,7 +121,7 @@ export class UdpFormsBuilder {
|
|
|
142
121
|
required: true,
|
|
143
122
|
form: null,
|
|
144
123
|
isPrivate: true,
|
|
145
|
-
id: uuidv4()
|
|
124
|
+
id: uuidv4(),
|
|
146
125
|
};
|
|
147
126
|
const newFormSections = deepCloneFormSections(this.formSections); // Use helper to get a deep copy
|
|
148
127
|
let actualSIndex = sIndex;
|
|
@@ -180,15 +159,12 @@ export class UdpFormsBuilder {
|
|
|
180
159
|
this.showMenuAtIndex = null;
|
|
181
160
|
return { sIndex: actualSIndex, qIndex: actualQIndex };
|
|
182
161
|
};
|
|
183
|
-
|
|
184
|
-
this.isStyleSheetOpen = !this.isStyleSheetOpen;
|
|
185
|
-
};
|
|
162
|
+
// ********************************** SECTION HANDLERS **********************************
|
|
186
163
|
this.handleSectionMoveDown = (sIndex) => {
|
|
187
164
|
if (sIndex >= this.formSections.length - 1)
|
|
188
165
|
return;
|
|
189
166
|
const sectionsCopy = [...this.formSections];
|
|
190
167
|
[sectionsCopy[sIndex], sectionsCopy[sIndex + 1]] = [sectionsCopy[sIndex + 1], sectionsCopy[sIndex]];
|
|
191
|
-
this.needsSortableInit = true;
|
|
192
168
|
this.formSections = sectionsCopy;
|
|
193
169
|
};
|
|
194
170
|
this.handleSectionMoveUp = (sIndex) => {
|
|
@@ -196,75 +172,33 @@ export class UdpFormsBuilder {
|
|
|
196
172
|
return;
|
|
197
173
|
const sectionsCopy = [...this.formSections];
|
|
198
174
|
[sectionsCopy[sIndex], sectionsCopy[sIndex - 1]] = [sectionsCopy[sIndex - 1], sectionsCopy[sIndex]];
|
|
199
|
-
this.needsSortableInit = true;
|
|
200
175
|
this.formSections = sectionsCopy;
|
|
201
176
|
};
|
|
202
177
|
this.handleSectionDelete = (sIndex) => {
|
|
203
178
|
const newFormSections = [...this.formSections];
|
|
204
179
|
newFormSections.splice(sIndex, 1);
|
|
205
|
-
this.needsSortableInit = true;
|
|
206
180
|
this.formSections = newFormSections;
|
|
207
181
|
};
|
|
182
|
+
this.updateFormSectionsWithDraft = () => {
|
|
183
|
+
this.formSections = this.formSectionsDraft;
|
|
184
|
+
this.formSectionsDraft = null;
|
|
185
|
+
};
|
|
186
|
+
this.hasUnsavedFormSectionsChanges = () => {
|
|
187
|
+
// return !isEqual(this.formSections, this.formSectionsDraft); // NEED TO INSTALL PACKAGE
|
|
188
|
+
return JSON.stringify(this.formSections) !== JSON.stringify(this.formSectionsDraft); // Breaks on circular refs or non-serializable types (like Dates, Maps, etc.)
|
|
189
|
+
};
|
|
190
|
+
this.handleSectionEditClick = (sIndex) => {
|
|
191
|
+
this.editingSection = { sIndex };
|
|
192
|
+
this.isSectionEditorOpen = true;
|
|
193
|
+
this.formSectionsDraft = deepCloneFormSections(this.formSections);
|
|
194
|
+
};
|
|
195
|
+
this.closeSectionEditor = () => {
|
|
196
|
+
this.isSectionEditorOpen = false;
|
|
197
|
+
this.editingSection = null;
|
|
198
|
+
this.formSectionsDraft = null;
|
|
199
|
+
};
|
|
208
200
|
}
|
|
209
|
-
|
|
210
|
-
// sortable only if the form is editable
|
|
211
|
-
if (!(this.isNewForm || this.isMostRecentFormVersion)) {
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
this.sortableInstances.forEach(instance => instance.destroy());
|
|
215
|
-
this.sortableInstances = [];
|
|
216
|
-
this.formSections.forEach((_, sIndex) => {
|
|
217
|
-
const el = this.hostEl.shadowRoot.querySelector(`#section-${sIndex}`);
|
|
218
|
-
if (el) {
|
|
219
|
-
const sortable = new Sortable(el, {
|
|
220
|
-
animation: 200,
|
|
221
|
-
easing: 'cubic-bezier(0.25, 1, 0.5, 1)',
|
|
222
|
-
draggable: 'udp-forms-builder-question-item',
|
|
223
|
-
handle: '.form-question-drag-handle',
|
|
224
|
-
ghostClass: 'sortable-ghost',
|
|
225
|
-
chosenClass: 'sortable-chosen',
|
|
226
|
-
direction: 'vertical',
|
|
227
|
-
forceFallback: false,
|
|
228
|
-
dragoverBubble: false,
|
|
229
|
-
swapThreshold: 0.6,
|
|
230
|
-
onEnd: evt => this.handleDragEnd(evt, sIndex),
|
|
231
|
-
});
|
|
232
|
-
this.sortableInstances.push(sortable);
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
handleDragEnd(evt, sIndex) {
|
|
237
|
-
const oldIndex = evt.oldIndex;
|
|
238
|
-
const newIndex = evt.newIndex;
|
|
239
|
-
if (oldIndex === newIndex || oldIndex == null || newIndex == null)
|
|
240
|
-
return;
|
|
241
|
-
const sectionCopy = structuredClone(this.formSections[sIndex]);
|
|
242
|
-
const [moved] = sectionCopy.formQuestions.splice(oldIndex, 1);
|
|
243
|
-
sectionCopy.formQuestions.splice(newIndex, 0, moved);
|
|
244
|
-
// const newFormSections = [...this.formSections];
|
|
245
|
-
const newFormSections = deepCloneFormSections(this.formSections);
|
|
246
|
-
newFormSections[sIndex] = sectionCopy;
|
|
247
|
-
console.log(`Moved question in section ${sIndex} from ${oldIndex} to ${newIndex}`);
|
|
248
|
-
this.formSections = newFormSections;
|
|
249
|
-
}
|
|
250
|
-
componentDidLoad() {
|
|
251
|
-
this.initializeSortable();
|
|
252
|
-
}
|
|
253
|
-
componentDidUpdate() {
|
|
254
|
-
this.initializeSortable();
|
|
255
|
-
}
|
|
256
|
-
componentWillLoad() {
|
|
257
|
-
this.initializeForm();
|
|
258
|
-
}
|
|
259
|
-
onFormSectionsChange(newValue) {
|
|
260
|
-
console.log(newValue);
|
|
261
|
-
}
|
|
262
|
-
onFormMetadataChange(newValue) {
|
|
263
|
-
console.log(newValue);
|
|
264
|
-
}
|
|
265
|
-
onFormIdOrVersionChange() {
|
|
266
|
-
this.initializeForm();
|
|
267
|
-
}
|
|
201
|
+
// ********************************** API CALLS **********************************
|
|
268
202
|
async initializeForm() {
|
|
269
203
|
// set default form values
|
|
270
204
|
this.formMetadata.isPrivate = true;
|
|
@@ -298,6 +232,14 @@ export class UdpFormsBuilder {
|
|
|
298
232
|
}
|
|
299
233
|
// Clone formSections and initialize empty question arrays
|
|
300
234
|
const tempSections = structuredClone(formDataResponse.udpFormUdpFormSection).map(section => (Object.assign(Object.assign({}, section), { formQuestions: [] })));
|
|
235
|
+
tempSections.forEach(section => {
|
|
236
|
+
if (!section.sectionProperties) {
|
|
237
|
+
section.sectionProperties = {};
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
section.sectionProperties = JSON.parse(section.sectionProperties);
|
|
241
|
+
}
|
|
242
|
+
});
|
|
301
243
|
// Map questions into their respective sections
|
|
302
244
|
formDataResponse.formQuestions.forEach(question => {
|
|
303
245
|
const section = tempSections.find(s => s.id === question.formSectionId);
|
|
@@ -314,6 +256,8 @@ export class UdpFormsBuilder {
|
|
|
314
256
|
tempSections.forEach(section => {
|
|
315
257
|
section.formQuestions.sort((a, b) => a.questionOrder - b.questionOrder);
|
|
316
258
|
});
|
|
259
|
+
// Sort sections
|
|
260
|
+
tempSections.sort((a, b) => a.order - b.order);
|
|
317
261
|
const metadata = __rest(formDataResponse, []);
|
|
318
262
|
// Merge fetched styleOverrides with defaults
|
|
319
263
|
metadata.styleOverrides = this.deepMerge(emptyStyleOverrides, JSON.parse(metadata.styleOverrides) || {});
|
|
@@ -334,7 +278,6 @@ export class UdpFormsBuilder {
|
|
|
334
278
|
this.isLoading = false;
|
|
335
279
|
}
|
|
336
280
|
}
|
|
337
|
-
// ********************************** HELPERS **********************************
|
|
338
281
|
async submitForm() {
|
|
339
282
|
this.isLoading = true;
|
|
340
283
|
try {
|
|
@@ -350,12 +293,10 @@ export class UdpFormsBuilder {
|
|
|
350
293
|
type: this.formMetadata.type,
|
|
351
294
|
styleOverrides: JSON.stringify(this.formMetadata.styleOverrides),
|
|
352
295
|
id: this.formMetadata.id,
|
|
353
|
-
version: this.formMetadata.version
|
|
296
|
+
version: this.formMetadata.version,
|
|
354
297
|
};
|
|
355
|
-
console.log('Submitting form metadata:', processedFormMetadata);
|
|
356
298
|
const formUrl = `${ConfigService.productV1ApiUrl}/UdpForm${this.isMostRecentFormVersion ? '/versions' : ''}`;
|
|
357
299
|
const formResponse = await makeApiCall('POST', formUrl, processedFormMetadata);
|
|
358
|
-
console.log('Form response:', formResponse);
|
|
359
300
|
const formId = formResponse.id;
|
|
360
301
|
const formVersion = formResponse.version;
|
|
361
302
|
if (!formResponse || !formResponse.id || !formResponse.version) {
|
|
@@ -368,8 +309,7 @@ export class UdpFormsBuilder {
|
|
|
368
309
|
for (const [sIndex, section] of this.formSections.entries()) {
|
|
369
310
|
sectionOrder += 1;
|
|
370
311
|
const processedSectionData = Object.assign(Object.assign({}, section), { formId,
|
|
371
|
-
formVersion, order: sectionOrder });
|
|
372
|
-
console.log('Submitting section:', processedSectionData);
|
|
312
|
+
formVersion, order: sectionOrder, sectionProperties: JSON.stringify(section.sectionProperties) });
|
|
373
313
|
const sectionResponse = await makeApiCall('POST', `${ConfigService.productV1ApiUrl}/UdpFormSection`, processedSectionData);
|
|
374
314
|
if (!sectionResponse || !sectionResponse.id) {
|
|
375
315
|
throw new Error(`Invalid section response: ${JSON.stringify(sectionResponse)}`);
|
|
@@ -379,7 +319,6 @@ export class UdpFormsBuilder {
|
|
|
379
319
|
questionOrder += 1;
|
|
380
320
|
const processedQuestionData = Object.assign(Object.assign({}, question), { formId,
|
|
381
321
|
formVersion, section: sIndex + 1, questionOrder, formSectionId: sectionId, name: `question${questionOrder}` });
|
|
382
|
-
console.log('Submitting question:', processedQuestionData);
|
|
383
322
|
const questionRequest = makeApiCall('POST', `${ConfigService.productV1ApiUrl}/UdpFormQuestion`, processedQuestionData);
|
|
384
323
|
questionRequests.push(questionRequest);
|
|
385
324
|
}
|
|
@@ -403,6 +342,68 @@ export class UdpFormsBuilder {
|
|
|
403
342
|
this.isLoading = false;
|
|
404
343
|
}
|
|
405
344
|
}
|
|
345
|
+
// ********************************** STENCIL RELATED **********************************
|
|
346
|
+
componentDidLoad() {
|
|
347
|
+
this.initializeSortable();
|
|
348
|
+
}
|
|
349
|
+
componentDidUpdate() {
|
|
350
|
+
this.initializeSortable();
|
|
351
|
+
}
|
|
352
|
+
componentWillLoad() {
|
|
353
|
+
this.initializeForm();
|
|
354
|
+
}
|
|
355
|
+
// @Watch('formSections')
|
|
356
|
+
// onFormSectionsChange(newValue: any[]) {
|
|
357
|
+
// console.log(newValue);
|
|
358
|
+
// }
|
|
359
|
+
// @Watch('formMetadata')
|
|
360
|
+
// onFormMetadataChange(newValue) {
|
|
361
|
+
// console.log(newValue);
|
|
362
|
+
// }
|
|
363
|
+
onFormIdOrVersionChange() {
|
|
364
|
+
this.initializeForm();
|
|
365
|
+
}
|
|
366
|
+
// ********************************** SORTABLE LOGIC **********************************
|
|
367
|
+
initializeSortable() {
|
|
368
|
+
// sortable only if the form is editable
|
|
369
|
+
if (!(this.isNewForm || this.isMostRecentFormVersion)) {
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
this.sortableInstances.forEach(instance => instance.destroy());
|
|
373
|
+
this.sortableInstances = [];
|
|
374
|
+
this.formSections.forEach((_, sIndex) => {
|
|
375
|
+
const el = this.hostEl.shadowRoot.querySelector(`#section-${sIndex}`);
|
|
376
|
+
if (el) {
|
|
377
|
+
const sortable = new Sortable(el, {
|
|
378
|
+
animation: 200,
|
|
379
|
+
easing: 'cubic-bezier(0.25, 1, 0.5, 1)',
|
|
380
|
+
draggable: 'udp-forms-builder-question-item',
|
|
381
|
+
handle: '.form-question-drag-handle',
|
|
382
|
+
ghostClass: 'sortable-ghost',
|
|
383
|
+
chosenClass: 'sortable-chosen',
|
|
384
|
+
direction: 'vertical',
|
|
385
|
+
forceFallback: false,
|
|
386
|
+
dragoverBubble: false,
|
|
387
|
+
swapThreshold: 0.6,
|
|
388
|
+
onEnd: evt => this.handleDragEnd(evt, sIndex),
|
|
389
|
+
});
|
|
390
|
+
this.sortableInstances.push(sortable);
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
handleDragEnd(evt, sIndex) {
|
|
395
|
+
const oldIndex = evt.oldIndex;
|
|
396
|
+
const newIndex = evt.newIndex;
|
|
397
|
+
if (oldIndex === newIndex || oldIndex == null || newIndex == null)
|
|
398
|
+
return;
|
|
399
|
+
const sectionCopy = structuredClone(this.formSections[sIndex]);
|
|
400
|
+
const [moved] = sectionCopy.formQuestions.splice(oldIndex, 1);
|
|
401
|
+
sectionCopy.formQuestions.splice(newIndex, 0, moved);
|
|
402
|
+
// const newFormSections = [...this.formSections];
|
|
403
|
+
const newFormSections = deepCloneFormSections(this.formSections);
|
|
404
|
+
newFormSections[sIndex] = sectionCopy;
|
|
405
|
+
this.formSections = newFormSections;
|
|
406
|
+
}
|
|
406
407
|
deepMerge(target, source) {
|
|
407
408
|
const output = Object.assign({}, target);
|
|
408
409
|
for (const key in source) {
|
|
@@ -415,6 +416,27 @@ export class UdpFormsBuilder {
|
|
|
415
416
|
}
|
|
416
417
|
return output;
|
|
417
418
|
}
|
|
419
|
+
// ********************************** FORM VALIDATION HELPERS **********************************
|
|
420
|
+
validateForm() {
|
|
421
|
+
return this.validateFormMetadata() && this.validateAllQuestions();
|
|
422
|
+
}
|
|
423
|
+
validateFormMetadata() {
|
|
424
|
+
if (!this.formMetadata.title || !this.formMetadata.description) {
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
return true;
|
|
428
|
+
}
|
|
429
|
+
validateAllQuestions() {
|
|
430
|
+
for (let sIndex = 0; sIndex < this.formSections.length; sIndex++) {
|
|
431
|
+
const formSection = this.formSections[sIndex];
|
|
432
|
+
for (let qIndex = 0; qIndex < formSection.length; qIndex++) {
|
|
433
|
+
if (!this.validateQuestionItem(sIndex, qIndex)) {
|
|
434
|
+
return false;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return true;
|
|
439
|
+
}
|
|
418
440
|
validateQuestionItem(sIndex, qIndex) {
|
|
419
441
|
const questionItem = this.formSections[sIndex].formQuestions[qIndex];
|
|
420
442
|
if (!questionItem.questionText) {
|
|
@@ -437,80 +459,41 @@ export class UdpFormsBuilder {
|
|
|
437
459
|
}
|
|
438
460
|
return true;
|
|
439
461
|
}
|
|
440
|
-
validateForm() {
|
|
441
|
-
return this.validateFormMetadata() && this.validateAllQuestions();
|
|
442
|
-
}
|
|
443
|
-
validateFormMetadata() {
|
|
444
|
-
if (!this.formMetadata.title || !this.formMetadata.description) {
|
|
445
|
-
return false;
|
|
446
|
-
}
|
|
447
|
-
return true;
|
|
448
|
-
}
|
|
449
|
-
validateAllQuestions() {
|
|
450
|
-
for (let sIndex = 0; sIndex < this.formSections.length; sIndex++) {
|
|
451
|
-
const formSection = this.formSections[sIndex];
|
|
452
|
-
for (let qIndex = 0; qIndex < formSection.length; qIndex++) {
|
|
453
|
-
if (!this.validateQuestionItem(sIndex, qIndex)) {
|
|
454
|
-
return false;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return true;
|
|
459
|
-
}
|
|
460
|
-
// private handleSectionAdd = (sIndex: number) => {
|
|
461
|
-
// return
|
|
462
|
-
// }
|
|
463
462
|
render() {
|
|
464
|
-
console.log('[UDP Forms Builder] render called. isStyleSheetOpen:', this.isStyleSheetOpen);
|
|
465
463
|
if (this.isError) {
|
|
466
464
|
return h("div", null, " Error With the Form Builder");
|
|
467
465
|
}
|
|
468
466
|
const isEditable = this.isNewForm || this.isMostRecentFormVersion;
|
|
469
|
-
// const editingQuestionData =
|
|
470
|
-
// this.editingQuestion && this.formSections[this.editingQuestion.sIndex].formQuestions
|
|
471
|
-
// ? this.formSections[this.editingQuestion.sIndex].formQuestions[this.editingQuestion.qIndex]
|
|
472
|
-
// : null;
|
|
473
|
-
// console.log(this.editingSection);
|
|
474
|
-
// const editingSectionData = this.editingSection && this.formSections[this.editingSection.sIndex] ? this.formSections[this.editingSection.sIndex] : null;
|
|
475
467
|
return (h("div", null, h("primary-action-header", { title: 'UDP Form Builder', actionButtonLabel: isEditable ? (this.isMostRecentFormVersion ? `Create New Version (v.${this.version + 1})` : 'Create New Form') : '', primaryActionClick: isEditable ? () => this.submitForm() : null,
|
|
476
468
|
// HIDE STYLE OVERRIDE IN UI
|
|
477
469
|
defaultActionButtons: isEditable ? [{ label: 'Style Overrides', clickHandler: this.toggleStyleSheet, tooltip: 'Style Overrides', visible: false, icon: getIconFromName('settings') }] : [], tabs: false }), h("udp-side-sheet", { open: this.isStyleSheetOpen, onUdpSideSheetClose: () => (this.isStyleSheetOpen = false), title: "Style Overrides", position: "right", width: "md" }, h("udp-forms-builder-style-override", { formMetadata: this.formMetadata, onFormMetadataChange: updated => (this.formMetadata = updated) })), h("udp-side-sheet", { open: this.isQuestionEditorOpen, onUdpSideSheetClose: () => this.closeQuestionEditor(), onUdpPrimaryButtonClick: () => {
|
|
478
|
-
//
|
|
470
|
+
// don't do anything if no changes are made.
|
|
471
|
+
// it'll close the side sheet without this
|
|
479
472
|
if (!this.hasUnsavedFormSectionsChanges()) {
|
|
480
473
|
return;
|
|
481
474
|
}
|
|
482
475
|
this.updateFormSectionsWithDraft();
|
|
483
476
|
this.closeQuestionEditor();
|
|
484
477
|
}, primaryButtonDisabled: !this.hasUnsavedFormSectionsChanges(), title: "Edit Question", position: "right", width: "md", primaryButtonLabel: "Update" }, this.isQuestionEditorOpen && (h("div", { class: "question-editor-container" }, h("question-configs-renderer", { formSectionsDraft: this.formSectionsDraft, sIndex: this.editingQuestion.sIndex, qIndex: this.editingQuestion.qIndex, isViewOnly: !isEditable, onFormSectionsDraftChange: updated => (this.formSectionsDraft = updated), lookupOptions: this.lookupOptionsDataProcessed })))), h("udp-side-sheet", { open: this.isSectionEditorOpen, onUdpSideSheetClose: () => this.closeSectionEditor(), title: "Edit Section Fields", position: "right", width: "md", primaryButtonDisabled: !this.hasUnsavedFormSectionsChanges(), primaryButtonLabel: "Update", onUdpPrimaryButtonClick: () => {
|
|
485
|
-
//
|
|
478
|
+
// don't do anything if no changes are made.
|
|
479
|
+
// it'll close the side sheet without this
|
|
486
480
|
if (!this.hasUnsavedFormSectionsChanges()) {
|
|
487
481
|
return;
|
|
488
482
|
}
|
|
489
483
|
this.updateFormSectionsWithDraft();
|
|
490
484
|
this.closeSectionEditor();
|
|
491
|
-
} }, this.isSectionEditorOpen && (h("div", { class: "section-editor-container" }, h("section-configs-renderer", {
|
|
492
|
-
// sectionData={editingSectionData}
|
|
493
|
-
formSectionsDraft: this.formSectionsDraft, sIndex: this.editingSection.sIndex, isViewOnly: !isEditable, onFormSectionsDraftChange: updated => (this.formSectionsDraft = updated)
|
|
494
|
-
})))), h("fluent-dialog", { open: this.isDialogOpen,
|
|
495
|
-
// message={'Are you sure you want to delete this question?'}
|
|
496
|
-
message: this.dialogMessage, labelOne: 'Cancel', labelTwo: 'Confirm', actionOne: () => (this.isDialogOpen = false), actionTwo: () => this.dialogActionTwo() }), this.isLoading && h("udp-linear-loader", null), !this.isLoading && (h("udp-container", { maxWidth: "lg" }, h("div", { class: "udp-forms-page" }, h("div", { class: "form-details-container" }, h("div", { class: "form-details-name-container" }, isEditable ? (h("div", { class: "form-details-name-input" }, h("text-field", { label: "Form Title", value: this.formMetadata.name, placeholder: " Form Title", disabled: !isEditable, required: true, margin: 'none',
|
|
485
|
+
} }, this.isSectionEditorOpen && (h("div", { class: "section-editor-container" }, h("section-configs-renderer", { formSectionsDraft: this.formSectionsDraft, sIndex: this.editingSection.sIndex, isViewOnly: !isEditable, onFormSectionsDraftChange: updated => (this.formSectionsDraft = updated) })))), h("fluent-dialog", { open: this.isDialogOpen, message: this.dialogMessage, labelOne: 'Confirm', labelTwo: 'Cancel', actionOne: () => this.dialogAction(), actionTwo: () => (this.isDialogOpen = false) }), this.isLoading && h("udp-linear-loader", null), !this.isLoading && (h("udp-container", { maxWidth: "lg" }, h("div", { class: "udp-forms-page" }, h("div", { class: "form-details-container" }, h("div", { class: "form-details-name-container" }, isEditable ? (h("div", { class: "form-details-name-input" }, h("text-field", { label: "Form Title", value: this.formMetadata.name, placeholder: " Form Title", disabled: !isEditable, required: true, margin: "none",
|
|
497
486
|
// size='small'
|
|
498
|
-
onInput:
|
|
487
|
+
onInput: e => {
|
|
499
488
|
this.formMetadata = Object.assign(Object.assign({}, this.formMetadata), { name: e.target.value });
|
|
500
|
-
} }))) : (h("div", { class: "form-details-name-display" }, h("unity-typography", { variant: 'h2' }, this.formMetadata.name + ' (View Only)')))), h("div", { class: "form-details-description-container" }, isEditable ? (h("div", { class: "form-details-details-input" }, h("text-area", { label: "Form Description", value: this.formMetadata.description, placeholder: "Form Description", disabled: !isEditable, required: true, margin:
|
|
489
|
+
} }))) : (h("div", { class: "form-details-name-display" }, h("unity-typography", { variant: 'h2' }, this.formMetadata.name + ' (View Only)')))), h("div", { class: "form-details-description-container" }, isEditable ? (h("div", { class: "form-details-details-input" }, h("text-area", { label: "Form Description", value: this.formMetadata.description, placeholder: "Form Description", disabled: !isEditable, required: true, margin: "none",
|
|
501
490
|
// size='small'
|
|
502
|
-
onInput:
|
|
491
|
+
onInput: e => {
|
|
503
492
|
this.formMetadata = Object.assign(Object.assign({}, this.formMetadata), { description: e.target.value });
|
|
504
|
-
} }))) : (h("div", { class: "form-details-description-display" }, h("unity-typography", null, this.formMetadata.description)))), h("div", { class: "form-details-version-container" }, h("unity-typography", null, "Version: ", this.formMetadata.version)), h("div", { class: "form-details-private-container" }, h("div", { class: "toggle-container" }, h("stencil-toggle", { label: "Private Form", margin:
|
|
493
|
+
} }))) : (h("div", { class: "form-details-description-display" }, h("unity-typography", null, this.formMetadata.description)))), h("div", { class: "form-details-version-container" }, h("unity-typography", null, "Version: ", this.formMetadata.version)), h("div", { class: "form-details-private-container" }, h("div", { class: "toggle-container" }, h("stencil-toggle", { label: "Private Form", margin: "none", disabled: !isEditable, checked: this.formMetadata.isPrivate === true, labelPosition: "right", onToggledChange: () => {
|
|
505
494
|
let newIsPrivate = !this.formMetadata.isPrivate;
|
|
506
495
|
this.formMetadata = Object.assign(Object.assign({}, this.formMetadata), { isPrivate: newIsPrivate });
|
|
507
496
|
} })))), isEditable && (h("div", { class: "add-question-button-container" }, h("udp-button", { startIcon: h("udp-icon", { iconName: 'add', color: 'inherit' }), onClick: () => {
|
|
508
|
-
// this.formSections = [[]];
|
|
509
|
-
// const newSectionIndex = this.formSections.length;
|
|
510
|
-
// const newFormSections = deepCloneFormSections(this.formSections)
|
|
511
|
-
// newFormSections.push()
|
|
512
|
-
// this.formSections = [...this.formSections, []];
|
|
513
|
-
// this.showMenuAtIndex = { sIndex: newSectionIndex, qIndex: 0 };
|
|
514
497
|
const newSectionIndex = this.formSections.length;
|
|
515
498
|
const newFormSections = deepCloneFormSections(this.formSections);
|
|
516
499
|
newFormSections.push(Object.assign(Object.assign({}, formSectionDefault), { order: newSectionIndex + 1, title: `Section ${newSectionIndex + 1}` }));
|
|
@@ -521,10 +504,10 @@ export class UdpFormsBuilder {
|
|
|
521
504
|
this.handleSectionMoveUp(sIndex);
|
|
522
505
|
} })), sIndex < this.formSections.length - 1 && (h("stencil-icon-button", { icon: getIconFromName('arrowDown'), tooltip: "Move Section Down", onClick: () => {
|
|
523
506
|
this.handleSectionMoveDown(sIndex);
|
|
524
|
-
} })), h("stencil-icon-button", { icon: getIconFromName('edit'), tooltip: `Edit Section Fields`, onClick: () => this.handleSectionEditClick(sIndex) }), h("stencil-icon-button", { icon: getIconFromName('trashCan'), tooltip: "Delete Section", onClick:
|
|
507
|
+
} })), h("stencil-icon-button", { icon: getIconFromName('edit'), tooltip: `Edit Section Fields`, onClick: () => this.handleSectionEditClick(sIndex) }), h("stencil-icon-button", { icon: getIconFromName('trashCan'), tooltip: "Delete Section", onClick: e => {
|
|
525
508
|
e.stopPropagation();
|
|
526
509
|
this.dialogMessage = 'Are you sure you want to delete this section?';
|
|
527
|
-
this.
|
|
510
|
+
this.dialogAction = () => {
|
|
528
511
|
this.handleSectionDelete(sIndex);
|
|
529
512
|
this.isDialogOpen = false;
|
|
530
513
|
};
|
|
@@ -551,7 +534,7 @@ export class UdpFormsBuilder {
|
|
|
551
534
|
}, noBackground: true }), h("stencil-icon-button", { icon: getIconFromName('trashCan'), tooltip: "Delete Question", onClick: e => {
|
|
552
535
|
e.stopPropagation();
|
|
553
536
|
this.dialogMessage = 'Are you sure you want to delete this question?';
|
|
554
|
-
this.
|
|
537
|
+
this.dialogAction = () => {
|
|
555
538
|
this.handleQuestionDelete(sIndex, qIndex);
|
|
556
539
|
this.isDialogOpen = false;
|
|
557
540
|
};
|
|
@@ -716,20 +699,13 @@ export class UdpFormsBuilder {
|
|
|
716
699
|
"isQuestionEditorOpen": {},
|
|
717
700
|
"isSectionEditorOpen": {},
|
|
718
701
|
"lookupOptionsDataProcessed": {},
|
|
719
|
-
"
|
|
720
|
-
"dialogMessage": {}
|
|
721
|
-
"needsSortableInit": {}
|
|
702
|
+
"dialogAction": {},
|
|
703
|
+
"dialogMessage": {}
|
|
722
704
|
};
|
|
723
705
|
}
|
|
724
706
|
static get elementRef() { return "hostEl"; }
|
|
725
707
|
static get watchers() {
|
|
726
708
|
return [{
|
|
727
|
-
"propName": "formSections",
|
|
728
|
-
"methodName": "onFormSectionsChange"
|
|
729
|
-
}, {
|
|
730
|
-
"propName": "formMetadata",
|
|
731
|
-
"methodName": "onFormMetadataChange"
|
|
732
|
-
}, {
|
|
733
709
|
"propName": "formId",
|
|
734
710
|
"methodName": "onFormIdOrVersionChange"
|
|
735
711
|
}, {
|