udp-stencil-component-library 25.18.2-beta.3 → 25.18.2-beta.5

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.
Files changed (251) hide show
  1. package/dist/cjs/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.cjs.js.map +1 -1
  2. package/dist/cjs/ag-grid-base_6.cjs.entry.js +1 -1
  3. package/dist/cjs/date-time-renderer.file-upload-renderer.form-metadata-display-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.cjs.js.map +1 -1
  4. package/dist/cjs/date-time-renderer_7.cjs.entry.js +13 -13
  5. package/dist/cjs/{enums-DVbZnzL8.js → enums-CgcTuQjC.js} +8 -2
  6. package/dist/cjs/enums-CgcTuQjC.js.map +1 -0
  7. package/dist/cjs/form-metadata-display.image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.cjs.js.map +1 -1
  8. package/dist/cjs/form-metadata-display_8.cjs.entry.js +10 -10
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/primary-action-header.udp-side-sheet.udp-tabs.entry.cjs.js.map +1 -1
  11. package/dist/cjs/primary-action-header_3.cjs.entry.js +1 -1
  12. package/dist/cjs/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.cjs.js.map +1 -1
  13. package/dist/cjs/question-configs-renderer_4.cjs.entry.js +7 -7
  14. package/dist/cjs/stencil-library.cjs.js +1 -1
  15. package/dist/cjs/{udp-forms-builder-question-template-CNONS2l5.js → udp-forms-builder-question-template-BMMpObLX.js} +3 -3
  16. package/dist/cjs/udp-forms-builder-question-template-BMMpObLX.js.map +1 -0
  17. package/dist/cjs/udp-forms-builder.cjs.entry.js +2 -2
  18. package/dist/cjs/udp-forms-builder.entry.cjs.js.map +1 -1
  19. package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +3 -3
  20. package/dist/cjs/udp-forms-follow-up-list-card.entry.cjs.js.map +1 -1
  21. package/dist/cjs/udp-forms-list-card.cjs.entry.js +6 -6
  22. package/dist/cjs/udp-forms-list-card.entry.cjs.js.map +1 -1
  23. package/dist/cjs/udp-forms-list.cjs.entry.js +2 -2
  24. package/dist/cjs/udp-forms-list.entry.cjs.js.map +1 -1
  25. package/dist/cjs/udp-forms-renderer.cjs.entry.js +270 -202
  26. package/dist/cjs/udp-forms-renderer.entry.cjs.js.map +1 -1
  27. package/dist/cjs/udp-forms-ui.cjs.entry.js +6 -6
  28. package/dist/cjs/udp-forms-ui.entry.cjs.js.map +1 -1
  29. package/dist/cjs/{utils-DZ_OMtAy.js → utils-Bp02BX38.js} +8 -8
  30. package/dist/cjs/utils-Bp02BX38.js.map +1 -0
  31. package/dist/collection/components/dialogs/udp-dialog.css +11 -3
  32. package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.css +34 -14
  33. package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.js +1 -1
  34. package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.js.map +1 -1
  35. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.js +3 -3
  36. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.js.map +1 -1
  37. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
  38. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js.map +1 -1
  39. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +5 -5
  40. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js.map +1 -1
  41. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +5 -5
  42. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js.map +1 -1
  43. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +6 -6
  44. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js.map +1 -1
  45. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer/question-specific-configs-renderer.js +1 -1
  46. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-specific-configs-renderer/question-specific-configs-renderer.js.map +1 -1
  47. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +3 -3
  48. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js.map +1 -1
  49. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +4 -4
  50. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js.map +1 -1
  51. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.js +1 -1
  52. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.js.map +1 -1
  53. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.js +3 -3
  54. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.js.map +1 -1
  55. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +7 -7
  56. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js.map +1 -1
  57. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +2 -2
  58. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js.map +1 -1
  59. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +3 -3
  60. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js.map +1 -1
  61. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.js +13 -13
  62. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.js.map +1 -1
  63. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils.js +195 -0
  64. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils.js.map +1 -0
  65. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +86 -238
  66. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js.map +1 -1
  67. package/dist/collection/components/forms/udp-forms/udp-forms-utils/classes/UdpForm.js.map +1 -0
  68. package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpFormSubmission.js +4 -12
  69. package/dist/collection/components/forms/udp-forms/udp-forms-utils/classes/UdpFormSubmission.js.map +1 -0
  70. package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/enums.js +6 -0
  71. package/dist/collection/components/forms/udp-forms/udp-forms-utils/enums.js.map +1 -0
  72. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-handler/IFormHandler.js.map +1 -0
  73. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-handler/UdpFormHandler.js.map +1 -0
  74. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/FormSubmissionHandlerFactory.js.map +1 -0
  75. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/IFormSubmissionHandler.js.map +1 -0
  76. package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/PrivateFormSubmissionHandler.js +6 -4
  77. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/PrivateFormSubmissionHandler.js.map +1 -0
  78. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/PublicFormSubmissionHandler.js.map +1 -0
  79. package/dist/collection/components/forms/udp-forms/udp-forms-utils/form-submission-handler/formUtils.js.map +1 -0
  80. package/dist/collection/components/forms/udp-forms/udp-forms-utils/types.js.map +1 -0
  81. package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/utils.js +5 -5
  82. package/dist/collection/components/forms/udp-forms/udp-forms-utils/utils.js.map +1 -0
  83. package/dist/collection/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.js +10 -10
  84. package/dist/collection/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.js.map +1 -1
  85. package/dist/collection/components/forms/udp-forms/udp-question/udp-question.js +13 -13
  86. package/dist/collection/components/forms/udp-forms/udp-question/udp-question.js.map +1 -1
  87. package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +2 -2
  88. package/dist/collection/components/inputs/form metadata display/form-metadata-display.js.map +1 -1
  89. package/dist/components/date-time-renderer2.js.map +1 -1
  90. package/dist/components/enums.js +7 -1
  91. package/dist/components/enums.js.map +1 -1
  92. package/dist/components/file-upload-renderer2.js +2 -2
  93. package/dist/components/file-upload-renderer2.js.map +1 -1
  94. package/dist/components/form-metadata-display-renderer2.js +3 -3
  95. package/dist/components/form-metadata-display-renderer2.js.map +1 -1
  96. package/dist/components/form-metadata-display2.js +1 -1
  97. package/dist/components/form-metadata-display2.js.map +1 -1
  98. package/dist/components/forms-builder-utils.js.map +1 -1
  99. package/dist/components/list-options-renderer2.js +3 -3
  100. package/dist/components/list-options-renderer2.js.map +1 -1
  101. package/dist/components/question-configs-renderer2.js +5 -5
  102. package/dist/components/question-configs-renderer2.js.map +1 -1
  103. package/dist/components/question-specific-configs-renderer2.js.map +1 -1
  104. package/dist/components/signature-renderer2.js +1 -1
  105. package/dist/components/signature-renderer2.js.map +1 -1
  106. package/dist/components/text-input-renderer2.js +2 -2
  107. package/dist/components/text-input-renderer2.js.map +1 -1
  108. package/dist/components/udp-dialog2.js +1 -1
  109. package/dist/components/udp-dialog2.js.map +1 -1
  110. package/dist/components/udp-forms-builder.js.map +1 -1
  111. package/dist/components/udp-forms-follow-up-list-card.js +2 -2
  112. package/dist/components/udp-forms-follow-up-list-card.js.map +1 -1
  113. package/dist/components/udp-forms-list-card2.js +4 -4
  114. package/dist/components/udp-forms-list-card2.js.map +1 -1
  115. package/dist/components/udp-forms-list.js +1 -1
  116. package/dist/components/udp-forms-list.js.map +1 -1
  117. package/dist/components/udp-forms-renderer.js +273 -207
  118. package/dist/components/udp-forms-renderer.js.map +1 -1
  119. package/dist/components/udp-forms-ui2.js +6 -6
  120. package/dist/components/udp-forms-ui2.js.map +1 -1
  121. package/dist/components/udp-question-comments2.js +5 -5
  122. package/dist/components/udp-question-comments2.js.map +1 -1
  123. package/dist/components/udp-question2.js +4 -4
  124. package/dist/components/udp-question2.js.map +1 -1
  125. package/dist/components/udp-side-sheet2.js +1 -1
  126. package/dist/components/udp-side-sheet2.js.map +1 -1
  127. package/dist/components/utils.js +6 -6
  128. package/dist/components/utils.js.map +1 -1
  129. package/dist/docs.json +119 -154
  130. package/dist/esm/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.js.map +1 -1
  131. package/dist/esm/ag-grid-base_6.entry.js +1 -1
  132. package/dist/esm/date-time-renderer.file-upload-renderer.form-metadata-display-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.js.map +1 -1
  133. package/dist/esm/date-time-renderer_7.entry.js +13 -13
  134. package/dist/esm/{enums-CHxgVY-B.js → enums-DHT5wSnX.js} +9 -3
  135. package/dist/esm/enums-DHT5wSnX.js.map +1 -0
  136. package/dist/esm/form-metadata-display.image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.js.map +1 -1
  137. package/dist/esm/form-metadata-display_8.entry.js +10 -10
  138. package/dist/esm/loader.js +1 -1
  139. package/dist/esm/primary-action-header.udp-side-sheet.udp-tabs.entry.js.map +1 -1
  140. package/dist/esm/primary-action-header_3.entry.js +1 -1
  141. package/dist/esm/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.js.map +1 -1
  142. package/dist/esm/question-configs-renderer_4.entry.js +7 -7
  143. package/dist/esm/stencil-library.js +1 -1
  144. package/dist/esm/{udp-forms-builder-question-template-DQJb7f4Y.js → udp-forms-builder-question-template-D6ADNZEG.js} +3 -3
  145. package/dist/esm/udp-forms-builder-question-template-D6ADNZEG.js.map +1 -0
  146. package/dist/esm/udp-forms-builder.entry.js +2 -2
  147. package/dist/esm/udp-forms-builder.entry.js.map +1 -1
  148. package/dist/esm/udp-forms-follow-up-list-card.entry.js +3 -3
  149. package/dist/esm/udp-forms-follow-up-list-card.entry.js.map +1 -1
  150. package/dist/esm/udp-forms-list-card.entry.js +6 -6
  151. package/dist/esm/udp-forms-list-card.entry.js.map +1 -1
  152. package/dist/esm/udp-forms-list.entry.js +2 -2
  153. package/dist/esm/udp-forms-list.entry.js.map +1 -1
  154. package/dist/esm/udp-forms-renderer.entry.js +270 -202
  155. package/dist/esm/udp-forms-renderer.entry.js.map +1 -1
  156. package/dist/esm/udp-forms-ui.entry.js +6 -6
  157. package/dist/esm/udp-forms-ui.entry.js.map +1 -1
  158. package/dist/esm/{utils-CiUp9KGZ.js → utils-kwLwITIE.js} +8 -8
  159. package/dist/esm/utils-kwLwITIE.js.map +1 -0
  160. package/dist/stencil-library/ag-grid-base.ghost-render.grid-header.hint-panel.udp-dialog.udp-list-item.entry.esm.js.map +1 -1
  161. package/dist/stencil-library/ag-grid-base_6.entry.js +1 -1
  162. package/dist/stencil-library/ag-grid-base_6.entry.js.map +1 -1
  163. package/dist/stencil-library/date-time-renderer.file-upload-renderer.form-metadata-display-renderer.list-options-renderer.question-specific-configs-renderer.signature-renderer.text-input-renderer.entry.esm.js.map +1 -1
  164. package/dist/stencil-library/date-time-renderer_7.entry.js +1 -1
  165. package/dist/stencil-library/{enums-CHxgVY-B.js → enums-DHT5wSnX.js} +2 -2
  166. package/dist/stencil-library/enums-DHT5wSnX.js.map +1 -0
  167. package/dist/stencil-library/form-metadata-display.image-upload.signature-input.stencil-form.tally-display.udp-question.udp-question-comments.udp-save-draft-button.entry.esm.js.map +1 -1
  168. package/dist/stencil-library/form-metadata-display_8.entry.js +1 -1
  169. package/dist/stencil-library/form-metadata-display_8.entry.js.map +1 -1
  170. package/dist/stencil-library/primary-action-header.udp-side-sheet.udp-tabs.entry.esm.js.map +1 -1
  171. package/dist/stencil-library/primary-action-header_3.entry.js +1 -1
  172. package/dist/stencil-library/primary-action-header_3.entry.js.map +1 -1
  173. package/dist/stencil-library/question-configs-renderer.section-configs-renderer.udp-forms-builder-menu.udp-forms-builder-question-item.entry.esm.js.map +1 -1
  174. package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
  175. package/dist/stencil-library/stencil-library.esm.js +1 -1
  176. package/dist/stencil-library/{udp-forms-builder-question-template-DQJb7f4Y.js → udp-forms-builder-question-template-D6ADNZEG.js} +2 -2
  177. package/dist/stencil-library/udp-forms-builder-question-template-D6ADNZEG.js.map +1 -0
  178. package/dist/stencil-library/udp-forms-builder.entry.esm.js.map +1 -1
  179. package/dist/stencil-library/udp-forms-builder.entry.js +1 -1
  180. package/dist/stencil-library/udp-forms-follow-up-list-card.entry.esm.js.map +1 -1
  181. package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
  182. package/dist/stencil-library/udp-forms-list-card.entry.esm.js.map +1 -1
  183. package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
  184. package/dist/stencil-library/udp-forms-list-card.entry.js.map +1 -1
  185. package/dist/stencil-library/udp-forms-list.entry.esm.js.map +1 -1
  186. package/dist/stencil-library/udp-forms-list.entry.js +1 -1
  187. package/dist/stencil-library/udp-forms-renderer.entry.esm.js.map +1 -1
  188. package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
  189. package/dist/stencil-library/udp-forms-renderer.entry.js.map +1 -1
  190. package/dist/stencil-library/udp-forms-ui.entry.esm.js.map +1 -1
  191. package/dist/stencil-library/udp-forms-ui.entry.js +1 -1
  192. package/dist/stencil-library/udp-forms-ui.entry.js.map +1 -1
  193. package/dist/stencil-library/{utils-CiUp9KGZ.js → utils-kwLwITIE.js} +1 -1
  194. package/dist/stencil-library/utils-kwLwITIE.js.map +1 -0
  195. package/dist/types/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.d.ts +2 -2
  196. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/date-time-renderer/date-time-renderer.d.ts +1 -1
  197. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.d.ts +1 -1
  198. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.d.ts +1 -1
  199. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.d.ts +1 -1
  200. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.d.ts +1 -1
  201. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.d.ts +1 -1
  202. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.d.ts +1 -1
  203. package/dist/types/components/forms/udp-forms/udp-forms-builder/udp-forms-builder.d.ts +2 -2
  204. package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-ui/udp-forms-ui.d.ts +4 -4
  205. package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-utils.d.ts +12 -0
  206. package/dist/types/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.d.ts +4 -9
  207. package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpFormSubmission.d.ts +4 -5
  208. package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/enums.d.ts +5 -0
  209. package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/types.d.ts +0 -1
  210. package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/utils.d.ts +1 -1
  211. package/dist/types/components/forms/udp-forms/udp-question/udp-question-comment/udp-question-comments.d.ts +2 -2
  212. package/dist/types/components/forms/udp-forms/udp-question/udp-question.d.ts +4 -4
  213. package/dist/types/components.d.ts +32 -30
  214. package/package.json +1 -1
  215. package/dist/cjs/enums-DVbZnzL8.js.map +0 -1
  216. package/dist/cjs/udp-forms-builder-question-template-CNONS2l5.js.map +0 -1
  217. package/dist/cjs/utils-DZ_OMtAy.js.map +0 -1
  218. package/dist/collection/components/forms/udp-forms/utils/classes/UdpForm.js.map +0 -1
  219. package/dist/collection/components/forms/udp-forms/utils/classes/UdpFormSubmission.js.map +0 -1
  220. package/dist/collection/components/forms/udp-forms/utils/enums.js.map +0 -1
  221. package/dist/collection/components/forms/udp-forms/utils/form-handler/IFormHandler.js.map +0 -1
  222. package/dist/collection/components/forms/udp-forms/utils/form-handler/UdpFormHandler.js.map +0 -1
  223. package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/FormSubmissionHandlerFactory.js.map +0 -1
  224. package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/IFormSubmissionHandler.js.map +0 -1
  225. package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PrivateFormSubmissionHandler.js.map +0 -1
  226. package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/PublicFormSubmissionHandler.js.map +0 -1
  227. package/dist/collection/components/forms/udp-forms/utils/form-submission-handler/formUtils.js.map +0 -1
  228. package/dist/collection/components/forms/udp-forms/utils/types.js.map +0 -1
  229. package/dist/collection/components/forms/udp-forms/utils/utils.js.map +0 -1
  230. package/dist/esm/enums-CHxgVY-B.js.map +0 -1
  231. package/dist/esm/udp-forms-builder-question-template-DQJb7f4Y.js.map +0 -1
  232. package/dist/esm/utils-CiUp9KGZ.js.map +0 -1
  233. package/dist/stencil-library/enums-CHxgVY-B.js.map +0 -1
  234. package/dist/stencil-library/udp-forms-builder-question-template-DQJb7f4Y.js.map +0 -1
  235. package/dist/stencil-library/utils-CiUp9KGZ.js.map +0 -1
  236. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpForm.js +0 -0
  237. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-handler/IFormHandler.js +0 -0
  238. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-handler/UdpFormHandler.js +0 -0
  239. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/FormSubmissionHandlerFactory.js +0 -0
  240. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/IFormSubmissionHandler.js +0 -0
  241. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/PublicFormSubmissionHandler.js +0 -0
  242. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/formUtils.js +0 -0
  243. /package/dist/collection/components/forms/udp-forms/{utils → udp-forms-utils}/types.js +0 -0
  244. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/classes/UdpForm.d.ts +0 -0
  245. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-handler/IFormHandler.d.ts +0 -0
  246. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-handler/UdpFormHandler.d.ts +0 -0
  247. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/FormSubmissionHandlerFactory.d.ts +0 -0
  248. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/IFormSubmissionHandler.d.ts +0 -0
  249. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/PrivateFormSubmissionHandler.d.ts +0 -0
  250. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/PublicFormSubmissionHandler.d.ts +0 -0
  251. /package/dist/types/components/forms/udp-forms/{utils → udp-forms-utils}/form-submission-handler/formUtils.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["registerInstance","createEvent","h","getElement","UdpFormsFieldTypeEnum","fontOverrideMapping","overrideFont","getIconFromName","udpFormsUiCss","UdpFormsUi","constructor","hostRef","this","formDirtyChange","initialValues","submitSuccessful","isLoading","isSaving","saveErrorMessage","showAutoSaveStatus","disabled","readonly","clientUserInfo","id","displayName","email","isSubmitted","isShowManualSaveIcon","showSavedMessage","isDialogOpen","dialogMessage","titleId","descriptionId","componentDidLoad","overrideStyles","componentDidUpdate","disconnectedCallback","savedMessageTimeoutId","clearTimeout","watchIsSaving","newValue","oldValue","console","log","setTimeout","_a","shadowRoot","el","querySelectorAll","forEach","element","_b","_c","_d","styleOverride","udpForm","styleOverrides","titleText","paragraphText","fontFamily","variant","setAttribute","isSectionContainsFollowUpFormLink","sectionKey","sectionObject","udpFormSubmission","data","submissionResponseData","_key","questionObject","Object","entries","metadata","followUpFormSubmissionId","render","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","class","questionNumber","sectionSet","Set","formQuestions","fq","add","section","hiddenQuestionTypes","Hidden","Paragraph","backgroundOverrides","background","backgroundImage","backgroundColor","style","maxWidth","handleSubmit","handleChange","onDirtyChange","event","emit","detail","open","message","labelOne","labelTwo","actionOne","dialogAction","actionTwo","assign","headerBackgroundColor","color","name","isVisible","handleSave","description","dynamicSections","map","sIndex","title","sectionPositionSuffix","sectionProperties","isRepeatable","filter","s","length","icon","tooltip","onClick","duplicateRepeatableSection","isOriginalSection","async","deleteRepeatableSection","performBackgroundSaveAndUpdateLocalSubmissionState","sectionText","question","isHidden","includes","fieldTypeId","num","helperText","questionText","value","key","questionIdentifierKey","status","type","watchers"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,MAAkB,kCAC9DC,MAA6B,kCAC7BC,OAA0BC,MAAoB,kCAC9CC,MAAuB,gCAC9B,kCACA,gCACA,gCACA,qCACA,wCACA,+CACA,uCACA,sCACA,gCACA,kCACA,kCACA,kCACA,0CACA,2CACA,sCACA,sCACA,sCACA,0CACA,2CACA,0CACA,4CACA,qCACA,0CACA,iDACA,0CACA,4CACA,4CACA,sCACA,iCACA,mCACA,iCACA,wCACA,wCACA,iCACA,oDACA,oDACA,mCACA,iCACA,qCACA,qCACA,0CACA,6CACA,sCACA,iCACA,iCACA,oCACA,oCACA,yCACA,yCACA,oCACA,sCACA,sCACA,wCACA,yCACA,wCACA,iCACA,iCACA,uCACA,yCACA,6CACA,kCACA,mCACA,2CACA,sDACA,mCACA,6CACA,uCACA,iDACA,oDACA,8CACA,kDACA,4CACA,sCACA,iCACA,qCACA,0CACA,2CACA,0CACA,mCACA,kCACA,qCACA,iCACA,kCACA,+CACA,yCACA,sDACA,qCACA,gCACA,kCACA,gCACA,0BAEP,MAAMC,EAAgB,q4EAEtB,MAAMC,EAAa,MACf,WAAAC,CAAYC,GACRX,EAAiBY,KAAMD,GACvBC,KAAKC,gBAAkBZ,EAAYW,KAAM,mBACzCA,KAAKE,cAAgB,CAAC,EACtBF,KAAKG,iBAAmB,MACxBH,KAAKI,UAAY,MACjBJ,KAAKK,SAAW,MAChBL,KAAKM,iBAAmB,KACxBN,KAAKO,mBAAqB,MAC1BP,KAAKQ,SAAW,MAChBR,KAAKS,SAAW,MAChBT,KAAKU,eAAiB,CAClBC,GAAI,KACJC,YAAa,KACbC,MAAO,MAEXb,KAAKc,YAAc,MACnBd,KAAKe,qBAAuB,MAC5Bf,KAAKgB,iBAAmB,MACxBhB,KAAKiB,aAAe,MACpBjB,KAAKkB,cAAgB,qIACrBlB,KAAKmB,QAAU,kBACfnB,KAAKoB,cAAgB,uBACzB,CACA,gBAAAC,GACIrB,KAAKsB,gBACT,CACA,kBAAAC,GACIvB,KAAKs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AAMtB,EAAKzC,KAAKE,iBAAmB,MAAQuC,SAAY,OAAS,EAAIA,EAAGU,MAAiB,MAAQY,SAAY,OAAS,EAAIA,EAAGoE,EAASvB,SAAW,MAAQ5C,SAAY,OAAS,EAAIA,EAAG0E,SAAW,MAAQzE,SAAY,EAAIA,EAAK,GAAIzD,SAAUR,KAAKQ,SAAUC,SAAUT,KAAKS,SAAUkI,IAAKR,EAASS,sBAAuB1I,cAAeF,KAAKE,cAAeQ,eAAgBV,KAAKU,eAAgB2C,kBAAmBrD,KAAKqD,oBAAsB,YAEnfqB,EAAK1E,KAAKqD,qBAAuB,MAAQqB,SAAY,OAAS,EAAIA,EAAGmE,SAAW,GAAMvJ,EAAE,MAAO,CAAEqF,MAAO,UAAYrF,EAAE,QAAS,CAAEkB,SAAUR,KAAKI,WAAaJ,KAAKQ,UAAYR,KAAKS,SAAUqI,KAAM,SAAUJ,MAAO,SAAU/D,MAAO,SAAUhE,GAAI,sCAAuCiH,QAAS,KACjS9F,QAAQC,IAAI,wBAAwB,OAI5CzC,EAAE,MAAO,CAAEqF,MAAO,cAAgBrF,EAAE,mBAAoB,KAAMA,EAAE,MAAO,CAAEqF,MAAO,eAAiBrF,EAAE,mBAAoB,KAAM,uCACjI,CACA,MAAI6C,GAAO,OAAO5C,EAAWS,KAAO,CACpC,mBAAW+I,GAAa,MAAO,CAC3B1I,SAAY,CAAC,iBACd,GAEPR,EAAW6F,MAAQ9F,SAEVC","ignoreList":[]}
1
+ {"version":3,"names":["registerInstance","createEvent","h","getElement","UdpFormsSubmissionStatusEnum","UdpFormsFieldTypeEnum","fontOverrideMapping","overrideFont","getIconFromName","udpFormsUiCss","UdpFormsUi","constructor","hostRef","this","formDirtyChange","currentValues","submitSuccessful","isLoading","isSaving","saveErrorMessage","showAutoSaveStatus","disabled","readonly","clientUserInfo","id","displayName","email","isSubmitted","isShowManualSaveIcon","showSavedMessage","isDialogOpen","dialogMessage","titleId","descriptionId","componentDidLoad","overrideStyles","componentDidUpdate","disconnectedCallback","savedMessageTimeoutId","clearTimeout","watchIsSaving","newValue","oldValue","console","log","setTimeout","_a","shadowRoot","el","querySelectorAll","forEach","element","_b","_c","_d","styleOverride","udpForm","styleOverrides","titleText","paragraphText","fontFamily","variant","setAttribute","isSectionContainsFollowUpFormLink","sectionKey","sectionObject","udpFormSubmission","data","submissionResponseData","_key","questionObject","Object","entries","metadata","followUpFormSubmissionId","render","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","class","questionNumber","sectionSet","Set","formQuestions","fq","add","section","hiddenQuestionTypes","Hidden","Paragraph","backgroundOverrides","background","backgroundImage","backgroundColor","style","maxWidth","handleSubmit","initialValues","handleChange","onDirtyChange","event","emit","detail","open","message","labelOne","labelTwo","actionOne","dialogAction","actionTwo","assign","headerBackgroundColor","color","name","isVisible","handleSave","description","dynamicSections","map","sIndex","title","sectionPositionSuffix","sectionProperties","isRepeatable","filter","s","length","icon","tooltip","onClick","duplicateRepeatableSection","isOriginalSection","async","deleteRepeatableSection","performBackgroundSaveAndUpdateLocalSubmissionState","sectionText","question","isHidden","includes","fieldTypeId","num","helperText","questionText","value","key","questionIdentifierKey","status","Submitted","type","watchers"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,MAAkB,kCAC9DC,OAAmCC,MAA6B,kCAChEC,OAA0BC,MAAoB,kCAC9CC,MAAuB,gCAC9B,kCACA,gCACA,gCACA,qCACA,wCACA,+CACA,uCACA,sCACA,gCACA,kCACA,kCACA,kCACA,0CACA,2CACA,sCACA,sCACA,sCACA,0CACA,2CACA,0CACA,4CACA,qCACA,0CACA,iDACA,0CACA,4CACA,4CACA,sCACA,iCACA,mCACA,iCACA,wCACA,wCACA,iCACA,oDACA,oDACA,mCACA,iCACA,qCACA,qCACA,0CACA,6CACA,sCACA,iCACA,iCACA,oCACA,oCACA,yCACA,yCACA,oCACA,sCACA,sCACA,wCACA,yCACA,wCACA,iCACA,iCACA,uCACA,yCACA,6CACA,kCACA,mC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O,CAAEsF,MAAO,UAAYtF,EAAE,QAAS,CAAEmB,SAAUR,KAAKI,WAAaJ,KAAKQ,UAAYR,KAAKS,SAAUuI,KAAM,SAAUL,MAAO,SAAUhE,MAAO,SAAUhE,GAAI,sCAAuCkH,QAAS,KACtU/F,QAAQC,IAAI,wBAAwB,OAI5C1C,EAAE,MAAO,CAAEsF,MAAO,cAAgBtF,EAAE,mBAAoB,KAAMA,EAAE,MAAO,CAAEsF,MAAO,eAAiBtF,EAAE,mBAAoB,KAAM,uCACjI,CACA,MAAI8C,GAAO,OAAO7C,EAAWU,KAAO,CACpC,mBAAWiJ,GAAa,MAAO,CAC3B5I,SAAY,CAAC,iBACd,GAEPR,EAAW6F,MAAQ9F,SAEVC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
1
  const o=(o,n="long")=>{let t=o;if(o.includes(" ")){t=o.replace(" ","T")}if(!o.toUpperCase().endsWith("Z")){t=t+"Z"}const i=new Date(t);if(n==="short"){const o=o=>String(o).padStart(2,"0");const n=o(i.getDate());const t=o(i.getMonth()+1);const r=String(i.getFullYear()).slice(-2);const s=i.getHours();const d=o(i.getMinutes());const l=s>=12?"pm":"am";const e=s%12===0?12:s%12;const v=String(e).padStart(2,"0");return`${n}/${t}/${r} ${v}:${d} ${l}`}return i.toLocaleString(undefined,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:true})};const n=o=>{const n={};for(const t of o.udpFormUdpFormSection){n[t.name]={};const i=o.formQuestions.filter((o=>o.formSectionId==t.id));for(const o of i){n[t.name][o.name]={value:"",comments:[],metadata:{}}}}return n};const t=(o,n)=>{var t,i,r,s;if((t=o===null||o===void 0?void 0:o.shadowRoot)===null||t===void 0?void 0:t.lastElementChild){(s=(r=(i=o===null||o===void 0?void 0:o.shadowRoot)===null||i===void 0?void 0:i.lastElementChild)===null||r===void 0?void 0:r.setAttribute)===null||s===void 0?void 0:s.call(r,"style",`font-family: var(${n})`);return}const d=new MutationObserver(((o,t)=>{o.forEach((o=>{if(o.type==="childList"&&o.addedNodes.length>0){o.addedNodes.forEach((o=>{var i;if(o.nodeType===Node.ELEMENT_NODE){(i=o===null||o===void 0?void 0:o.setAttribute)===null||i===void 0?void 0:i.call(o,"style",`font-family: var(${n})`);t.disconnect()}}))}}))}));if(o===null||o===void 0?void 0:o.shadowRoot){d.observe(o.shadowRoot,{childList:true})}};const i={Arial:"--font-override-arial"};export{n as b,o as d,i as f,t as o};
2
- //# sourceMappingURL=utils-CiUp9KGZ.js.map
2
+ //# sourceMappingURL=utils-kwLwITIE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-kwLwITIE.js","sources":["src/components/forms/udp-forms/udp-forms-utils/utils.ts"],"sourcesContent":["// take a masterForm's structure and build the empty currentValues object\nimport { UdpForm } from \"src/components\";\n\n/**\n * Translate and format UTC timestamp to local time.\n */\nexport const dateFormatter = (dateString: string, formatStyle: 'long' | 'short' = 'long' ) => {\n let normalizedDateString = dateString;\n\n // Check if the string is in the 'YYYY-MM-DD HH:mm:ss.sss' format (i.e., contains a space, not 'T')\n // If the input is '2025-12-10T20:23:23.055Z', it passes straight through.\n // This format is assumed to be missing timezone info and needs to be treated as UTC.\n if (dateString.includes(' ')) {\n // Replace the space with 'T' \n normalizedDateString = dateString.replace(' ', 'T');\n }\n\n if (!dateString.toUpperCase().endsWith('Z')) {\n // append Z if not there\n normalizedDateString = normalizedDateString + 'Z';\n }\n\n const date = new Date(normalizedDateString);\n\n // short format: DD/MM/YY HH:MM am/pm (e.g. 05/09/25 03:45 pm)\n if (formatStyle === 'short') {\n const pad = (n: number) => String(n).padStart(2, '0');\n const day = pad(date.getDate());\n const month = pad(date.getMonth() + 1);\n const yearShort = String(date.getFullYear()).slice(-2);\n\n const hours24 = date.getHours();\n const minutes = pad(date.getMinutes());\n const period = hours24 >= 12 ? 'pm' : 'am';\n const hours12 = hours24 % 12 === 0 ? 12 : hours24 % 12;\n const hours = String(hours12).padStart(2, '0');\n\n return `${day}/${month}/${yearShort} ${hours}:${minutes} ${period}`;\n }\n\n // default long format \n return date.toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n });\n};\n\n\n// eg. { section1: { question1: { value: '', comments: [], metadata: {} }, question2: { value: '', comments: [], metadata: {} } }, section2: { question3: { value: '', comments: [], metadata: {} } } }\nexport const buildEmptyCurrentValues = (masterForm: UdpForm) => {\n const currentValues = {};\n\n for (const section of masterForm.udpFormUdpFormSection) {\n currentValues[section.name] = {};\n\n const questionsOfSection = masterForm.formQuestions.filter(\n question => question.formSectionId == section.id,\n );\n\n for (const question of questionsOfSection) {\n currentValues[section.name][question.name] = {\n value: '', // default empty value\n comments: [], // default empty comments array\n metadata: {}, // default metadata object\n };\n }\n }\n\n return currentValues;\n};\n\n\nexport const overrideFont = (element: HTMLElement, cssVariable) => {\n if(element?.shadowRoot?.lastElementChild){ // this returns null in react for some instances\n element?.shadowRoot?.lastElementChild?.setAttribute?.('style', `font-family: var(${cssVariable})`)\n return;\n }\n const observer = new MutationObserver((mutationsList, observer) => {\n mutationsList.forEach(mutation => {\n if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {\n mutation.addedNodes.forEach(node => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n (node as HTMLElement)?.setAttribute?.('style', `font-family: var(${cssVariable})`);\n observer.disconnect(); // Stop observing once the target is found\n }\n });\n }\n });\n });\n\n if (element?.shadowRoot) {\n observer.observe(element.shadowRoot, { childList: true });\n }\n };\n\n\nexport const fontOverrideMapping = {\n Arial: \"--font-override-arial\"\n}"],"names":[],"mappings":"AAGA;;AAEG;AACU,MAAA,aAAa,GAAG,CAAC,UAAkB,EAAE,WAAA,GAAgC,MAAM,KAAK;IAC3F,IAAI,oBAAoB,GAAG,UAAU;;;;AAKrC,IAAA,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;;QAE5B,oBAAoB,GAAG,UAAU,CAAC,OAAO,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/enums';
2
+ import { StyleOverrides } from '../udp-forms-utils/types';
3
3
  export declare const deepCloneFormSections: (formSections: any[]) => any[];
4
4
  export declare const styleOverrideDefault: StyleOverrides;
5
5
  export declare const formSectionDefault: {
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class DateTimeRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class FileUploadRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class FormMetadataDisplayRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class ListOptionsRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class SignatureRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormQuestion } from '../../../utils/types';
1
+ import { UdpFormQuestion } from '../../../udp-forms-utils/types';
2
2
  export declare class TextInputRenderer {
3
3
  question: UdpFormQuestion;
4
4
  isViewOnly: boolean;
@@ -1,4 +1,4 @@
1
- import { UdpFormsFieldTypeEnum } from '../utils/enums';
1
+ import { UdpFormsFieldTypeEnum } from '../udp-forms-utils/enums';
2
2
  type FormSections = any[];
3
3
  declare const questionsTemplate: ({
4
4
  fieldTypeId: UdpFormsFieldTypeEnum;
@@ -1,5 +1,5 @@
1
- import { Guid } from '../utils/types';
2
- import { UdpFormMetadata } from '../utils/types';
1
+ import { Guid } from '../udp-forms-utils/types';
2
+ import { UdpFormMetadata } from '../udp-forms-utils/types';
3
3
  export declare class UdpFormsBuilder {
4
4
  private hostEl;
5
5
  formId: Guid;
@@ -1,10 +1,10 @@
1
1
  import { EventEmitter } from '../../../../../stencil-public-runtime';
2
- import { Guid } from '../../utils/types';
3
- import { UdpFormSubmission } from '../../utils/classes/UdpFormSubmission';
4
- import { UdpForm } from '../../utils/classes/UdpForm';
2
+ import { Guid } from '../../udp-forms-utils/types';
3
+ import { UdpFormSubmission } from '../../udp-forms-utils/classes/UdpFormSubmission';
4
+ import { UdpForm } from '../../udp-forms-utils/classes/UdpForm';
5
5
  export declare class UdpFormsUi {
6
6
  udpForm: UdpForm;
7
- initialValues: {
7
+ currentValues: {
8
8
  [name: string]: any;
9
9
  };
10
10
  udpFormSubmission: UdpFormSubmission;
@@ -0,0 +1,12 @@
1
+ export declare const findRepeatGroupKeys: (sectionName: string, values: Object) => number[];
2
+ export declare const initializeDynamicSections: (udpForm: any, currentValues: any) => any[];
3
+ export declare const getMaxRepeatSuffixBySectionFromUrlContext: (urlContext: Record<string, any> | undefined | null) => Record<string, number>;
4
+ export declare const initializeDynamicSectionsWithUrlContext: (udpForm: any, currentValues: any, urlContext: any) => any[];
5
+ export declare const applyUrlSeedValuesForAll: (dynamicSections: any, urlContext: any) => {
6
+ [sectionKey: string]: {
7
+ [qName: string]: {
8
+ value: any;
9
+ comments: any[];
10
+ };
11
+ };
12
+ };
@@ -12,16 +12,14 @@ export declare class UdpFormsRenderer {
12
12
  closeSnackbar: Function;
13
13
  autoSaveDelay: number;
14
14
  history: any;
15
- generic1: any;
16
- generic2: any;
17
- generic3: any;
18
- initialValues: {
15
+ urlContext: Record<string, any>;
16
+ currentValues: {
19
17
  [name: string]: any;
20
18
  };
21
- submitSuccessful: boolean;
22
- currentFormData: {
19
+ formInputSeedValues: {
23
20
  [name: string]: any;
24
21
  };
22
+ submitSuccessful: boolean;
25
23
  isLoading: boolean;
26
24
  isSaving: boolean;
27
25
  isSubmitted: boolean;
@@ -49,8 +47,6 @@ export declare class UdpFormsRenderer {
49
47
  componentDidLoad(): void;
50
48
  private handleLaunchFollowUpFormSideSheet;
51
49
  componentWillLoad(): Promise<void>;
52
- private initializeDynamicSections;
53
- private findRepeatGroupKeys;
54
50
  /**
55
51
  * Duplicate a repeatable section
56
52
  */
@@ -59,7 +55,6 @@ export declare class UdpFormsRenderer {
59
55
  * Delete a repeatable section
60
56
  */
61
57
  private deleteRepeatableSection;
62
- private applyUrlInitialValuesForAll;
63
58
  private handleSubmit;
64
59
  /**
65
60
  * Auto save (background save)
@@ -1,5 +1,5 @@
1
- import { UdpFormSubmissionStatus } from '../types';
2
1
  import { Guid, UdpTag } from "../../../../../global/types";
2
+ import { UdpFormsSubmissionStatusEnum } from '../enums';
3
3
  export declare class UdpFormSubmission {
4
4
  id: Guid | null;
5
5
  formId: Guid | null;
@@ -8,7 +8,7 @@ export declare class UdpFormSubmission {
8
8
  unityUserId: Guid | null;
9
9
  clusterId: number | null;
10
10
  userDisplayName: string | null;
11
- status: UdpFormSubmissionStatus | null;
11
+ status: UdpFormsSubmissionStatusEnum | null;
12
12
  businessObjectKey: string | null;
13
13
  udpTags: UdpTag[] | null;
14
14
  form: any | null;
@@ -20,14 +20,13 @@ export declare class UdpFormSubmission {
20
20
  generic3: string | null;
21
21
  userEmail: string | null;
22
22
  constructor(initialData?: Partial<UdpFormSubmission>);
23
- processSubmissionIntoFormDataWithoutValues(status: UdpFormSubmissionStatus): FormData;
23
+ processSubmissionIntoFormDataWithoutValues(status: UdpFormsSubmissionStatusEnum): FormData;
24
24
  processSubmissionIntoFormData(formInputValuesAndMetadata: Record<string, Record<string, {
25
25
  value: any;
26
26
  comments?: any[];
27
27
  files?: File[];
28
28
  metadata?: Record<string, any>;
29
- }>>, status: UdpFormSubmissionStatus): FormData;
30
- private resolveSubmissionStatus;
29
+ }>>, status: UdpFormsSubmissionStatusEnum): FormData;
31
30
  private buildBaseSubmissionData;
32
31
  private extractCleanedDataAndFiles;
33
32
  private extractValueAndFiles;
@@ -27,3 +27,8 @@ export declare enum UdpFormsPageIdEnum {
27
27
  FormBuilderPageId = "c77aa2c8-f8b8-41af-aa77-c8612fc918c1",
28
28
  FormRendererPageId = "c696afbd-8d83-4f80-aaa1-9a3530a05a21"
29
29
  }
30
+ export declare enum UdpFormsSubmissionStatusEnum {
31
+ InProgress = 1,
32
+ Submitted = 2,
33
+ Created = 3
34
+ }
@@ -50,7 +50,6 @@ export interface FontOverrides {
50
50
  variant?: TypographyVariant;
51
51
  fontFamily?: string;
52
52
  }
53
- export type UdpFormSubmissionStatus = 'in-progress' | 'submitted' | 1 | 2;
54
53
  export interface UdpFormQuestionComment {
55
54
  timestamp: Date;
56
55
  value: string;
@@ -3,7 +3,7 @@ import { UdpForm } from "../../../../components";
3
3
  * Translate and format UTC timestamp to local time.
4
4
  */
5
5
  export declare const dateFormatter: (dateString: string, formatStyle?: "long" | "short") => string;
6
- export declare const buildEmptyInitialValues: (masterForm: UdpForm) => {};
6
+ export declare const buildEmptyCurrentValues: (masterForm: UdpForm) => {};
7
7
  export declare const overrideFont: (element: HTMLElement, cssVariable: any) => void;
8
8
  export declare const fontOverrideMapping: {
9
9
  Arial: string;
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter } from '../../../../../stencil-public-runtime';
2
- import { UdpFormQuestion, Guid } from '../../utils/types';
2
+ import { UdpFormQuestion, Guid } from '../../udp-forms-utils/types';
3
3
  export declare class UdpQuestionComments {
4
4
  question: UdpFormQuestion;
5
5
  commentFieldProps: object;
6
- initialValues: {
6
+ currentValues: {
7
7
  [name: string]: any;
8
8
  };
9
9
  userId: Guid | null;
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { UdpFormQuestion } from '../utils/types';
3
- import { FontOverrides } from '../utils/types';
4
- import { UdpFormSubmission } from '../utils/classes/UdpFormSubmission';
2
+ import { UdpFormQuestion } from '../udp-forms-utils/types';
3
+ import { FontOverrides } from '../udp-forms-utils/types';
4
+ import { UdpFormSubmission } from '../udp-forms-utils/classes/UdpFormSubmission';
5
5
  export declare class UdpQuestion {
6
6
  question: UdpFormQuestion;
7
7
  questionNumber: number;
@@ -13,7 +13,7 @@ export declare class UdpQuestion {
13
13
  questionText: FontOverrides;
14
14
  paragraphText: FontOverrides;
15
15
  };
16
- initialValues: {
16
+ currentValues: {
17
17
  [name: string]: any;
18
18
  };
19
19
  clientUserInfo: {
@@ -13,7 +13,7 @@ import { GridApiMethods, GridHeaderCustomAction, HeaderConfig } from "./componen
13
13
  import { GridFunctionConfig } from "./components/grid/new-grid/interfaces/gridFunction";
14
14
  import { GridOptions as GridOptions1 } from "ag-grid-enterprise";
15
15
  import { RenderConfig } from "./components/grid/ambient-template-grid/interfaces/gridInterfaces";
16
- import { FontOverrides, Guid, UdpFormQuestion } from "./components/forms/udp-forms/utils/types";
16
+ import { FontOverrides, Guid, UdpFormQuestion } from "./components/forms/udp-forms/udp-forms-utils/types";
17
17
  import { UdpDriveFile } from "./global/types";
18
18
  import { InputMargin, InputSize } from "./components/inputs/input-types";
19
19
  import { GridFunctionConfig as GridFunctionConfig1, GridHeaderCustomAction as GridHeaderCustomAction1 } from "./components.d";
@@ -21,8 +21,8 @@ import { FormApi } from "final-form";
21
21
  import { AttachmentItem } from "./components/attachment-list/type";
22
22
  import { Event, VNode } from "./stencil-public-runtime";
23
23
  import { Guid as Guid1 } from "./global/types";
24
- import { UdpForm } from "./components/forms/udp-forms/utils/classes/UdpForm";
25
- import { UdpFormSubmission } from "./components/forms/udp-forms/utils/classes/UdpFormSubmission";
24
+ import { UdpForm } from "./components/forms/udp-forms/udp-forms-utils/classes/UdpForm";
25
+ import { UdpFormSubmission } from "./components/forms/udp-forms/udp-forms-utils/classes/UdpFormSubmission";
26
26
  import { KPICardActionType, KPICardColor, KPICardData } from "./components/data-display/kpi/types";
27
27
  import { SecondaryButton } from "./components/drawers/udp-side-sheet/types";
28
28
  import { LabelDisplayMode, LabelPosition, Steps } from "./components/stepper/types";
@@ -36,7 +36,7 @@ export { GridApiMethods, GridHeaderCustomAction, HeaderConfig } from "./componen
36
36
  export { GridFunctionConfig } from "./components/grid/new-grid/interfaces/gridFunction";
37
37
  export { GridOptions as GridOptions1 } from "ag-grid-enterprise";
38
38
  export { RenderConfig } from "./components/grid/ambient-template-grid/interfaces/gridInterfaces";
39
- export { FontOverrides, Guid, UdpFormQuestion } from "./components/forms/udp-forms/utils/types";
39
+ export { FontOverrides, Guid, UdpFormQuestion } from "./components/forms/udp-forms/udp-forms-utils/types";
40
40
  export { UdpDriveFile } from "./global/types";
41
41
  export { InputMargin, InputSize } from "./components/inputs/input-types";
42
42
  export { GridFunctionConfig as GridFunctionConfig1, GridHeaderCustomAction as GridHeaderCustomAction1 } from "./components.d";
@@ -44,8 +44,8 @@ export { FormApi } from "final-form";
44
44
  export { AttachmentItem } from "./components/attachment-list/type";
45
45
  export { Event, VNode } from "./stencil-public-runtime";
46
46
  export { Guid as Guid1 } from "./global/types";
47
- export { UdpForm } from "./components/forms/udp-forms/utils/classes/UdpForm";
48
- export { UdpFormSubmission } from "./components/forms/udp-forms/utils/classes/UdpFormSubmission";
47
+ export { UdpForm } from "./components/forms/udp-forms/udp-forms-utils/classes/UdpForm";
48
+ export { UdpFormSubmission } from "./components/forms/udp-forms/udp-forms-utils/classes/UdpFormSubmission";
49
49
  export { KPICardActionType, KPICardColor, KPICardData } from "./components/data-display/kpi/types";
50
50
  export { SecondaryButton } from "./components/drawers/udp-side-sheet/types";
51
51
  export { LabelDisplayMode, LabelPosition, Steps } from "./components/stepper/types";
@@ -3766,9 +3766,6 @@ export namespace Components {
3766
3766
  "closeSnackbar": Function;
3767
3767
  "enqueueSnackbar": Function;
3768
3768
  "formId"?: Guid | null;
3769
- "generic1": any;
3770
- "generic2": any;
3771
- "generic3": any;
3772
3769
  "getUserCallback"?: Function;
3773
3770
  "history": any;
3774
3771
  /**
@@ -3777,6 +3774,10 @@ export namespace Components {
3777
3774
  "isPublic": boolean;
3778
3775
  "submissionId"?: Guid | null;
3779
3776
  "triggerAction": (actionId: Guid, params: Object) => void;
3777
+ /**
3778
+ * @default {}
3779
+ */
3780
+ "urlContext": Record<string, any>;
3780
3781
  "version"?: number | null;
3781
3782
  }
3782
3783
  interface UdpFormsUi {
@@ -3784,6 +3785,10 @@ export namespace Components {
3784
3785
  * @default { id: null, displayName: null, email: null, }
3785
3786
  */
3786
3787
  "clientUserInfo": { id: string | null; displayName: string | null; email: string | null };
3788
+ /**
3789
+ * @default {}
3790
+ */
3791
+ "currentValues": { [name: string]: any };
3787
3792
  "deleteRepeatableSection": any;
3788
3793
  /**
3789
3794
  * @default false
@@ -3796,10 +3801,6 @@ export namespace Components {
3796
3801
  "handleFinish": () => void;
3797
3802
  "handleSave": (values: { [name: string]: any }) => Promise<void>;
3798
3803
  "handleSubmit": (values: any) => Promise<void>;
3799
- /**
3800
- * @default {}
3801
- */
3802
- "initialValues": { [name: string]: any };
3803
3804
  /**
3804
3805
  * @default false
3805
3806
  */
@@ -4578,13 +4579,13 @@ export namespace Components {
4578
4579
  */
4579
4580
  "clientUserInfo": { id: string | null; displayName: string | null; email: string | null };
4580
4581
  /**
4581
- * @default false
4582
+ * @default {}
4582
4583
  */
4583
- "disabled": boolean;
4584
+ "currentValues": { [name: string]: any };
4584
4585
  /**
4585
- * @default {}
4586
+ * @default false
4586
4587
  */
4587
- "initialValues": { [name: string]: any };
4588
+ "disabled": boolean;
4588
4589
  "question": UdpFormQuestion;
4589
4590
  "questionNumber": number;
4590
4591
  /**
@@ -4610,7 +4611,7 @@ export namespace Components {
4610
4611
  /**
4611
4612
  * @default {}
4612
4613
  */
4613
- "initialValues": { [name: string]: any };
4614
+ "currentValues": { [name: string]: any };
4614
4615
  "question": UdpFormQuestion;
4615
4616
  /**
4616
4617
  * @default null
@@ -11811,9 +11812,6 @@ declare namespace LocalJSX {
11811
11812
  "closeSnackbar"?: Function;
11812
11813
  "enqueueSnackbar"?: Function;
11813
11814
  "formId"?: Guid | null;
11814
- "generic1"?: any;
11815
- "generic2"?: any;
11816
- "generic3"?: any;
11817
11815
  "getUserCallback"?: Function;
11818
11816
  "history"?: any;
11819
11817
  /**
@@ -11822,6 +11820,10 @@ declare namespace LocalJSX {
11822
11820
  "isPublic"?: boolean;
11823
11821
  "submissionId"?: Guid | null;
11824
11822
  "triggerAction"?: (actionId: Guid, params: Object) => void;
11823
+ /**
11824
+ * @default {}
11825
+ */
11826
+ "urlContext"?: Record<string, any>;
11825
11827
  "version"?: number | null;
11826
11828
  }
11827
11829
  interface UdpFormsUi {
@@ -11829,6 +11831,10 @@ declare namespace LocalJSX {
11829
11831
  * @default { id: null, displayName: null, email: null, }
11830
11832
  */
11831
11833
  "clientUserInfo"?: { id: string | null; displayName: string | null; email: string | null };
11834
+ /**
11835
+ * @default {}
11836
+ */
11837
+ "currentValues"?: { [name: string]: any };
11832
11838
  "deleteRepeatableSection"?: any;
11833
11839
  /**
11834
11840
  * @default false
@@ -11841,10 +11847,6 @@ declare namespace LocalJSX {
11841
11847
  "handleFinish"?: () => void;
11842
11848
  "handleSave"?: (values: { [name: string]: any }) => Promise<void>;
11843
11849
  "handleSubmit"?: (values: any) => Promise<void>;
11844
- /**
11845
- * @default {}
11846
- */
11847
- "initialValues"?: { [name: string]: any };
11848
11850
  /**
11849
11851
  * @default false
11850
11852
  */
@@ -12654,13 +12656,13 @@ declare namespace LocalJSX {
12654
12656
  */
12655
12657
  "clientUserInfo"?: { id: string | null; displayName: string | null; email: string | null };
12656
12658
  /**
12657
- * @default false
12659
+ * @default {}
12658
12660
  */
12659
- "disabled"?: boolean;
12661
+ "currentValues"?: { [name: string]: any };
12660
12662
  /**
12661
- * @default {}
12663
+ * @default false
12662
12664
  */
12663
- "initialValues"?: { [name: string]: any };
12665
+ "disabled"?: boolean;
12664
12666
  "onLaunchFollowUpFormSideSheet"?: (event: UdpQuestionCustomEvent<any>) => void;
12665
12667
  "question"?: UdpFormQuestion;
12666
12668
  "questionNumber"?: number;
@@ -12687,7 +12689,7 @@ declare namespace LocalJSX {
12687
12689
  /**
12688
12690
  * @default {}
12689
12691
  */
12690
- "initialValues"?: { [name: string]: any };
12692
+ "currentValues"?: { [name: string]: any };
12691
12693
  "onQuestionCommentAction"?: (event: UdpQuestionCommentsCustomEvent<{
12692
12694
  type: 'add' | 'save' | 'edit' | 'delete' | 'editClose';
12693
12695
  questionIdentifierKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udp-stencil-component-library",
3
- "version": "25.18.2-beta.3",
3
+ "version": "25.18.2-beta.5",
4
4
  "description": "A Stencil based component library for UDP",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"enums-DVbZnzL8.js","sources":["src/components/forms/udp-forms/utils/enums.ts"],"sourcesContent":["export enum UdpFormsFieldTypeEnum {\n Hidden = 1,\n SingleLineText = 2,\n MultiLineText = 3,\n Checkbox = 4,\n RadioButton = 5,\n DropdownSingleSelect = 6,\n DropdownMultipleSelect = 7,\n ListMultiSelect = 8,\n DateSelector = 9,\n TimeSelector = 10,\n DateTimeSelector = 11,\n FileUpload = 12,\n YesNo = 13,\n Signature = 14,\n Tally = 15,\n Number = 16,\n Paragraph = 17,\n ImageUpload = 18,\n FormMetadataDisplay = 19,\n}\n\nexport enum UdpFormsTypeEnum {\n Standard = '1',\n FollowUp = '2',\n}\n\nexport enum UdpFormsPageIdEnum {\n FormBuilderPageId = 'c77aa2c8-f8b8-41af-aa77-c8612fc918c1', \n FormRendererPageId = 'c696afbd-8d83-4f80-aaa1-9a3530a05a21', \n}"],"names":["UdpFormsFieldTypeEnum","UdpFormsTypeEnum","UdpFormsPageIdEnum"],"mappings":";;AAAYA;AAAZ,CAAA,UAAY,q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AA,CAAA,qBAAA,CAAA,WAAA,CAAA,GAAA,EAAA,CAAA,GAAA,WAAc;IACd,qBAAA,CAAA,qBAAA,CAAA,aAAA,CAAA,GAAA,EAAA,CAAA,GAAA,aAAgB;IAChB,qBAAA,CAAA,qBAAA,CAAA,qBAAA,CAAA,GAAA,EAAA,CAAA,GAAA,qBAAwB;AAC1B,CAAC,EApBWA,6BAAqB,KAArBA,6BAAqB,GAoBhC,EAAA,CAAA,CAAA;AAEWC;AAAZ,CAAA,UAAY,gBAAgB,EAAA;AAC1B,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,GAAc;AACd,IAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,GAAc;AAChB,CAAC,EAHWA,wBAAgB,KAAhBA,wBAAgB,GAG3B,EAAA,CAAA,CAAA;AAEWC;AAAZ,CAAA,UAAY,kBAAkB,EAAA;AAC5B,IAAA,kBAAA,CAAA,mBAAA,CAAA,GAAA,sCAA0D;AAC1D,IAAA,kBAAA,CAAA,oBAAA,CAAA,GAAA,sCAA2D;AAC7D,CAAC,EAHWA,0BAAkB,KAAlBA,0BAAkB,GAG7B,EAAA,CAAA,CAAA;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"udp-forms-builder-question-template-CNONS2l5.js","sources":["src/components/forms/udp-forms/udp-forms-builder/forms-builder-utils.ts","src/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-question-template.ts"],"sourcesContent":["import { UdpFormsTypeEnum } from '../utils/enums';\nimport { StyleOverrides } from '../utils/types';\n\nexport const deepCloneFormSections = (formSections: any[]): any[] => {\n return structuredClone(formSections);\n};\n\nexport const styleOverrideDefault: StyleOverrides = {\n background: {\n backgroundImage: null,\n backgroundColor: null,\n },\n headerBackgroundColor: null,\n fontFamily: null,\n helperText: {\n variant: null,\n fontFamily: null,\n },\n questionText: {\n variant: null,\n fontFamily: null,\n },\n titleText: {\n variant: null,\n fontFamily: null,\n },\n paragraphText: {\n variant: null,\n fontFamily: null,\n },\n};\n\nexport const formSectionDefault = {\n title: '',\n sectionText: '',\n sectionProperties: {},\n formQuestions: [],\n};\n\nexport const formMetadataDefault = {\n isPrivate: true,\n type: UdpFormsTypeEnum.Standard,\n version: 1,\n name: '',\n description: '',\n};\n","import { UdpFormsFieldTypeEnum } from '../utils/enums';\nimport { deepCloneFormSections } from './forms-builder-utils';\n\ntype FormSections = any[];\n\n// === Helper Functions ===\n\nconst updateFieldProperties = (formSections: FormSections, sIndex: number, qIndex: number, updateFn: (props: any) => any): FormSections => {\n const newSections = deepCloneFormSections(formSections);\n const questionItem = { ...newSections[sIndex].formQuestions[qIndex] };\n const oldProps = questionItem.fieldProperties || {};\n questionItem.fieldProperties = updateFn(oldProps);\n newSections[sIndex].formQuestions[qIndex] = questionItem;\n return newSections;\n};\n\n// === Handlers ===\n\nconst handleFieldPropertyAddListItem = (formSections: FormSections, sIndex: number, qIndex: number, displayText: string, valueText: string) =>\n updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n items: [...(props.items || []), { display: displayText, value: valueText }],\n }));\n\nconst handleFieldPropertyRemoveListItem = (formSections: FormSections, sIndex: number, qIndex: number, itemIndex: number) =>\n updateFieldProperties(formSections, sIndex, qIndex, props => {\n const items = [...(props.items || [])];\n items.splice(itemIndex, 1);\n return { ...props, items };\n });\n\nconst handleFieldPropertyListItemChange = (event: Event, formSections: FormSections, sIndex: number, qIndex: number, idx: number, field: 'display' | 'value') => {\n const input = event.target as HTMLInputElement;\n return updateFieldProperties(formSections, sIndex, qIndex, props => {\n const items = [...(props.items || [])];\n items[idx] = { ...items[idx], [field]: input.value };\n return { ...props, items };\n });\n};\n\nconst handleFieldPropertyLookupChange = (selectedLookupId: string, formSections: FormSections, sIndex: number, qIndex: number) => {\n return updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n lookupId: selectedLookupId,\n }));\n};\n\nconst handleFieldPropertyToggleManualOrLookupOptions = (formSections: FormSections, sIndex: number, qIndex: number) => {\n return updateFieldProperties(formSections, sIndex, qIndex, props => {\n const { items, lookupId, ...otherConfigs } = props;\n\n if (items && !lookupId) {\n return {\n ...otherConfigs,\n lookupId: '',\n };\n } else {\n return {\n ...otherConfigs,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n };\n }\n });\n};\n\nconst handleFieldPropertyMinMaxCharacter = (event: Event, formSections: FormSections, sIndex: number, qIndex: number, fieldName: 'maxCharacter' | 'minCharacter') => {\n const input = event.target as HTMLInputElement;\n return updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n [fieldName]: input.value,\n }));\n};\n\nconst handleFieldPropertyBooleanToggle = (\n formSections: FormSections,\n sIndex: number,\n qIndex: number,\n fieldName: 'allowFutureDate' | 'hideDragAndDrop' | 'hideButton' | 'allowComments' | 'allowFollowUpForms' | 'includeLocation',\n) =>\n updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n [fieldName]: !props[fieldName],\n }));\n\nconst handleFieldPropertyDateTime = (event: Event, formSections: FormSections, sIndex: number, qIndex: number, fieldName: string) => {\n const input = event.target as HTMLInputElement;\n return updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n [fieldName]: input.value,\n }));\n};\n\nconst handleGenericProperty = (value: any, formSections: FormSections, sIndex: number, qIndex: number, fieldName: 'questionText' | 'helperText' | 'required') => {\n const newSections = deepCloneFormSections(formSections);\n const questionItem = { ...newSections[sIndex].formQuestions[qIndex] };\n questionItem[fieldName] = value;\n newSections[sIndex].formQuestions[qIndex] = questionItem;\n return newSections;\n};\n\n// Paragraph-specific: store the paragraph text under fieldProperties.paragraphText\nconst handleParagraphValueChange = (event: Event, formSections: FormSections, sIndex: number, qIndex: number) => {\n const input = event.target as HTMLTextAreaElement | HTMLInputElement;\n const newValue = input?.value ?? '';\n return updateFieldProperties(formSections, sIndex, qIndex, props => ({\n ...props,\n paragraphText: newValue,\n }));\n};\n\n\nconst questionsTemplate = [\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Hidden,\n questionTypeName: 'Hidden',\n icon: 'formHiddenField',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.SingleLineText,\n questionTypeName: 'Single Line Text',\n icon: 'formTextField',\n handlers: {\n handleGenericProperty,\n handleFieldPropertyMinMaxCharacter,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, maxCharacter: 64, minCharacter: 0 },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.MultiLineText,\n questionTypeName: 'Multi Line Text',\n icon: 'formTextArea',\n handlers: {\n handleGenericProperty,\n handleFieldPropertyMinMaxCharacter,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, maxCharacter: 256, minCharacter: 0 },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Checkbox,\n questionTypeName: 'Checkbox',\n icon: 'formCheckbox',\n isContainsOptionItems: true,\n handlers: {\n handleGenericProperty,\n handleFieldPropertyAddListItem,\n handleFieldPropertyRemoveListItem,\n handleFieldPropertyListItemChange,\n handleFieldPropertyToggleManualOrLookupOptions,\n handleFieldPropertyLookupChange,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.RadioButton,\n questionTypeName: 'Radio Button',\n icon: 'formRadioButton',\n isContainsOptionItems: true,\n handlers: {\n handleGenericProperty,\n handleFieldPropertyAddListItem,\n handleFieldPropertyRemoveListItem,\n handleFieldPropertyListItemChange,\n handleFieldPropertyToggleManualOrLookupOptions,\n handleFieldPropertyLookupChange,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.DropdownSingleSelect,\n questionTypeName: 'Dropdown Single Select',\n icon: 'formSingleSelectField',\n isContainsOptionItems: true,\n handlers: {\n handleGenericProperty,\n handleFieldPropertyAddListItem,\n handleFieldPropertyRemoveListItem,\n handleFieldPropertyListItemChange,\n handleFieldPropertyToggleManualOrLookupOptions,\n handleFieldPropertyLookupChange,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.DropdownMultipleSelect,\n questionTypeName: 'Dropdown Multiple Select',\n icon: 'formMultiSelectField',\n isContainsOptionItems: true,\n handlers: {\n handleGenericProperty,\n handleFieldPropertyAddListItem,\n handleFieldPropertyRemoveListItem,\n handleFieldPropertyListItemChange,\n handleFieldPropertyToggleManualOrLookupOptions,\n handleFieldPropertyLookupChange,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.ListMultiSelect,\n questionTypeName: 'List',\n icon: 'list',\n isContainsOptionItems: true,\n handlers: {\n handleGenericProperty,\n handleFieldPropertyAddListItem,\n handleFieldPropertyRemoveListItem,\n handleFieldPropertyListItemChange,\n handleFieldPropertyToggleManualOrLookupOptions,\n handleFieldPropertyLookupChange,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n items: [\n {\n display: '',\n value: '',\n },\n ],\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.DateSelector,\n questionTypeName: 'Date Selector',\n icon: 'formDateField',\n handlers: {\n handleGenericProperty,\n handleFieldPropertyDateTime,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n allowFutureDate: false,\n maxDate: '2099-12-31',\n minDate: '1980-01-01',\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.TimeSelector,\n questionTypeName: 'Time Selector',\n icon: 'formTimeField',\n handlers: {\n handleGenericProperty,\n handleFieldPropertyDateTime,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, maxTime: '17:00:00', minTime: '09:00:00' },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.DateTimeSelector,\n questionTypeName: 'DateTime Selector',\n icon: 'formDateTimeField',\n handlers: {\n handleGenericProperty,\n handleFieldPropertyDateTime,\n handleFieldPropertyBooleanToggle,\n },\n defaultFieldProperties: {\n allowComments: false,\n allowFollowUpForms: false,\n allowFutureDate: false,\n maxDateTime: '2099-12-31 23:59:59',\n minDateTime: '1980-01-01 00:00:00',\n },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.FileUpload,\n questionTypeName: 'File Upload',\n icon: 'formFileUpload',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, hideDragAndDrop: false, hideButton: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.YesNo,\n questionTypeName: 'Yes/No',\n icon: 'checkMark',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Signature,\n questionTypeName: 'Signature',\n icon: 'document',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, includeLocation: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Tally,\n questionTypeName: 'Tally Display',\n icon: 'formNumberField',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false, ignoreRequiredConfig: true },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Number,\n questionTypeName: 'Numeric',\n icon: 'box',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { allowComments: false, allowFollowUpForms: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.Paragraph,\n questionTypeName: 'Paragraph',\n icon: 'formTextArea',\n // Store paragraph text alongside other question properties\n handlers: { handleGenericProperty, handleParagraphValueChange },\n defaultFieldProperties: { paragraphText: '' },\n // Signal that question text is optional for this type; builder UI can use this to relax validation/UX\n questionTextOptional: true,\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.ImageUpload,\n questionTypeName: 'Image Upload',\n icon: 'formFileUpload',\n // Align options/handlers with File Upload\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { hideDragAndDrop: false, allowComments: false, allowFollowUpForms: false, hideButton: false },\n },\n {\n fieldTypeId: UdpFormsFieldTypeEnum.FormMetadataDisplay,\n questionTypeName: 'Form Metadata Display',\n icon: 'user',\n handlers: { handleGenericProperty, handleFieldPropertyBooleanToggle },\n defaultFieldProperties: { displayOwnerFullName: true, displayOwnerEmail: true, displaySubmissionDate: true, allowComments: false, allowFollowUpForms: false},\n }, \n];\n\nexport default questionsTemplate;"],"names":["UdpFormsTypeEnum","UdpFormsFieldTypeEnum"],"mappings":";;;;AAGa,MAAA,qBAAqB,GAAG,CAAC,YAAmB,KAAW;AAClE,IAAA,OAAO,eAAe,CAAC,YAAY,CAAC;AACtC;AAEa,MAAA,oBAAoB,GAAmB;AAClD,IAAA,UAAU,EAAE;AACV,QAAA,eAAe,EAAE,IAAI;AACrB,QAAA,eAAe,EAAE,IAAI;AACtB,KAAA;AACD,IAAA,qBAAqB,EAAE,IAAI;AAC3B,IAAA,UAAU,EAAE,IAAI;AAChB,IAAA,UAAU,EAAE;AACV,QAAA,OAAO,EAAE,IAAI;AACb,QAAA,UAAU,EAAE,IAAI;AACjB,KAAA;AACD,IAAA,YAAY,EAA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zC,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,QAAQ,EAAE,EAAE,qBAAqB,EAAE,gCAAgC,EAAE;QACrE,sBAAsB,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAC;AAC7J,KAAA;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils-DZ_OMtAy.js","sources":["src/components/forms/udp-forms/utils/utils.ts"],"sourcesContent":["// take a masterForm's structure and build the empty initialValues object\nimport { UdpForm } from \"src/components\";\n\n/**\n * Translate and format UTC timestamp to local time.\n */\nexport const dateFormatter = (dateString: string, formatStyle: 'long' | 'short' = 'long' ) => {\n let normalizedDateString = dateString;\n\n // Check if the string is in the 'YYYY-MM-DD HH:mm:ss.sss' format (i.e., contains a space, not 'T')\n // If the input is '2025-12-10T20:23:23.055Z', it passes straight through.\n // This format is assumed to be missing timezone info and needs to be treated as UTC.\n if (dateString.includes(' ')) {\n // Replace the space with 'T' \n normalizedDateString = dateString.replace(' ', 'T');\n }\n\n if (!dateString.toUpperCase().endsWith('Z')) {\n // append Z if not there\n normalizedDateString = normalizedDateString + 'Z';\n }\n\n const date = new Date(normalizedDateString);\n\n // short format: DD/MM/YY HH:MM am/pm (e.g. 05/09/25 03:45 pm)\n if (formatStyle === 'short') {\n const pad = (n: number) => String(n).padStart(2, '0');\n const day = pad(date.getDate());\n const month = pad(date.getMonth() + 1);\n const yearShort = String(date.getFullYear()).slice(-2);\n\n const hours24 = date.getHours();\n const minutes = pad(date.getMinutes());\n const period = hours24 >= 12 ? 'pm' : 'am';\n const hours12 = hours24 % 12 === 0 ? 12 : hours24 % 12;\n const hours = String(hours12).padStart(2, '0');\n\n return `${day}/${month}/${yearShort} ${hours}:${minutes} ${period}`;\n }\n\n // default long format \n return date.toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n });\n};\n\n\n// eg. { section1: { question1: { value: '', comments: [], metadata: {} }, question2: { value: '', comments: [], metadata: {} } }, section2: { question3: { value: '', comments: [], metadata: {} } } }\nexport const buildEmptyInitialValues = (masterForm: UdpForm) => {\n const initialValues = {};\n\n for (const section of masterForm.udpFormUdpFormSection) {\n initialValues[section.name] = {};\n\n const questionsOfSection = masterForm.formQuestions.filter(\n question => question.formSectionId == section.id,\n );\n\n for (const question of questionsOfSection) {\n initialValues[section.name][question.name] = {\n value: '', // default empty value\n comments: [], // default empty comments array\n metadata: {}, // default metadata object\n };\n }\n }\n\n return initialValues;\n};\n\n\nexport const overrideFont = (element: HTMLElement, cssVariable) => {\n if(element?.shadowRoot?.lastElementChild){ // this returns null in react for some instances\n element?.shadowRoot?.lastElementChild?.setAttribute?.('style', `font-family: var(${cssVariable})`)\n return;\n }\n const observer = new MutationObserver((mutationsList, observer) => {\n mutationsList.forEach(mutation => {\n if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {\n mutation.addedNodes.forEach(node => {\n if (node.nodeType === Node.ELEMENT_NODE) {\n (node as HTMLElement)?.setAttribute?.('style', `font-family: var(${cssVariable})`);\n observer.disconnect(); // Stop observing once the target is found\n }\n });\n }\n });\n });\n\n if (element?.shadowRoot) {\n observer.observe(element.shadowRoot, { childList: true });\n }\n };\n\n\nexport const fontOverrideMapping = {\n Arial: \"--font-override-arial\"\n}"],"names":[],"mappings":";;AAGA;;AAEG;AACU,MAAA,aAAa,GAAG,CAAC,UAAkB,EAAE,WAAA,GAAgC,MAAM,KAAK;IAC3F,IAAI,oBAAoB,GAAG,UAAU;;;;AAKrC,IAAA,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;;QAE5B,oBAAoB,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;;IAGrD,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,QAAQ,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MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IACnC,CAAC;CACF","sourcesContent":["import { StyleOverrides, UdpFormSection, UdpFormQuestion } from '../types';\nimport { Guid } from 'src/global/types';\nimport { UdpFormsTypeEnum } from '../enums';\n\nexport class UdpForm {\n id?: Guid;\n version?: number;\n type?: UdpFormsTypeEnum;\n isPrivate?: boolean;\n name?: string;\n description?: string;\n tenantId?: Guid;\n clusterId?: number;\n styleOverrides?: StyleOverrides;\n createdOn?: Date;\n formProperties?: any;\n udpFormUdpFormSection?: UdpFormSection[];\n formQuestions?: UdpFormQuestion[];\n\n constructor(initialData?: Partial<UdpForm>) {\n if (!initialData) return;\n\n Object.assign(this, initialData);\n }\n}\n"]}