udp-stencil-component-library 26.9.0-beta.2 → 26.9.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (968) hide show
  1. package/dist/cjs/{SearchBuilder-CyR7DyPc.js → SearchBuilder-Ca9_ur9o.js} +1 -1
  2. package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +8 -8
  3. package/dist/cjs/address-search_6.cjs.entry.js +19 -19
  4. package/dist/cjs/advanced-search_12.cjs.entry.js +20 -20
  5. package/dist/cjs/{ag-grid-base_65.cjs.entry.js → ag-grid-base_66.cjs.entry.js} +458 -183
  6. package/dist/cjs/ambient-template-grid.cjs.entry.js +20 -20
  7. package/dist/cjs/api-method-instance-grid.cjs.entry.js +11 -10
  8. package/dist/cjs/{apiMethodInstance-D65NIw8S.js → apiMethodInstance-DTeNcmNq.js} +3 -32
  9. package/dist/cjs/{apiUtils-0pkNuvqf.js → apiUtils-tzjwn5aw.js} +29 -28
  10. package/dist/cjs/app-bar.cjs.entry.js +1 -1
  11. package/dist/cjs/{catalog-store-B_YMkXRh.js → catalog-store-CzG8hINB.js} +1 -1
  12. package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
  13. package/dist/cjs/check-box.cjs.entry.js +2 -2
  14. package/dist/cjs/chip-section.cjs.entry.js +2 -2
  15. package/dist/cjs/{codecs-ClSB_OaD.js → codecs-Dyka7kpz.js} +407 -7
  16. package/dist/cjs/{configService-N6ke1_s4.js → configService-DbfLqId2.js} +2 -6
  17. package/dist/cjs/{configureUdpColumnMods-BT7UbQPh.js → configureUdpColumnMods-Cqxn_OaF.js} +23 -7
  18. package/dist/cjs/convertBackendTypeToAgGridType-CZEQIj7A.js +33 -0
  19. package/dist/cjs/{createAzureMapsProviders-b1fKbjhG.js → createAzureMapsProviders-CURScysk.js} +14 -0
  20. package/dist/cjs/custom-button.cjs.entry.js +1 -1
  21. package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
  22. package/dist/cjs/domain-table-snapshot-DXs9ceFE.js +339 -0
  23. package/dist/cjs/extraFields-CNvT2Qyf.js +109 -0
  24. package/dist/cjs/extraFieldsHelper-Clk9u_FW.js +211 -0
  25. package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
  26. package/dist/cjs/file-upload_2.cjs.entry.js +7 -7
  27. package/dist/cjs/filter-conditions_7.cjs.entry.js +7 -7
  28. package/dist/cjs/{fluent-icons-DLY_DCOh.js → fluent-icons-Cs6J6uVm.js} +20 -0
  29. package/dist/cjs/form-metadata-display_2.cjs.entry.js +3 -3
  30. package/dist/cjs/getCurrentApiCatalogId-D7xHCEzs.js +7 -0
  31. package/dist/cjs/icon-grid.cjs.entry.js +2 -2
  32. package/dist/cjs/image-upload_8.cjs.entry.js +7 -7
  33. package/dist/cjs/index-CZB9dMeB.js +12 -8
  34. package/dist/cjs/index.cjs.js +26 -23
  35. package/dist/cjs/{load-icons-BAAH3v1o.js → load-icons-JeRXx4O7.js} +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/cjs/logical-search-indicator.cjs.entry.js +1 -1
  38. package/dist/cjs/lookupHelper-DACjrAcP.js +694 -0
  39. package/dist/cjs/map-component_2.cjs.entry.js +2 -2
  40. package/dist/cjs/primary-action-header_2.cjs.entry.js +4 -4
  41. package/dist/cjs/question-configs-renderer_4.cjs.entry.js +15 -15
  42. package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
  43. package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +3 -3
  44. package/dist/cjs/rich-text-schema-Dhani4hA.js +58 -0
  45. package/dist/cjs/search-method-grid.cjs.entry.js +121 -264
  46. package/dist/cjs/server-side-grid.cjs.entry.js +85 -3
  47. package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
  48. package/dist/cjs/simple-card.cjs.entry.js +1 -1
  49. package/dist/cjs/status-chip_2.cjs.entry.js +2 -2
  50. package/dist/cjs/{status-renderer-9CQ-hhq8.js → status-renderer-be4boc5r.js} +83 -55
  51. package/dist/cjs/stencil-chip.cjs.entry.js +2 -2
  52. package/dist/cjs/stencil-library.cjs.js +1 -1
  53. package/dist/cjs/stencil-toggle.cjs.entry.js +4 -4
  54. package/dist/cjs/text-field_2.cjs.entry.js +7 -7
  55. package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
  56. package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +102 -5
  57. package/dist/cjs/udp-advanced-search-field-picker_3.cjs.entry.js +3 -3
  58. package/dist/cjs/udp-ag-area-chart.cjs.entry.js +2 -2
  59. package/dist/cjs/udp-ag-bar-chart_4.cjs.entry.js +5 -5
  60. package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +2 -2
  61. package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +2 -2
  62. package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +2 -2
  63. package/dist/cjs/udp-ag-line-chart.cjs.entry.js +2 -2
  64. package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +2 -2
  65. package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +2 -2
  66. package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
  67. package/dist/cjs/udp-attachment-list.cjs.entry.js +1 -1
  68. package/dist/cjs/udp-bar-chart.cjs.entry.js +1 -1
  69. package/dist/cjs/udp-calendar-base.cjs.entry.js +1 -1
  70. package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -1
  71. package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -1
  72. package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -1
  73. package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -1
  74. package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
  75. package/dist/cjs/udp-card_6.cjs.entry.js +7 -7
  76. package/dist/cjs/udp-charts-example.cjs.entry.js +1 -1
  77. package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
  78. package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
  79. package/dist/cjs/udp-container-query.cjs.entry.js +2 -2
  80. package/dist/cjs/udp-container.cjs.entry.js +2 -2
  81. package/dist/cjs/{udp-detail-list_9.cjs.entry.js → udp-detail-list_10.cjs.entry.js} +606 -73
  82. package/dist/cjs/{udp-drive-utils-DM1l6XMm.js → udp-drive-utils-BuTLI35n.js} +1 -1
  83. package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +1 -1
  84. package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
  85. package/dist/cjs/udp-fluent-icon-picker.cjs.entry.js +2 -2
  86. package/dist/cjs/udp-fluent-inline-edit_5.cjs.entry.js +494 -45
  87. package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
  88. package/dist/cjs/udp-fluent-list-item_2.cjs.entry.js +3 -3
  89. package/dist/cjs/{udp-form-api-utils-zMPk_IT1.js → udp-form-api-utils-ZY88igvH.js} +1 -1
  90. package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
  91. package/dist/cjs/udp-forms-builder.cjs.entry.js +1 -1
  92. package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +2 -2
  93. package/dist/cjs/udp-forms-list-card.cjs.entry.js +4 -4
  94. package/dist/cjs/udp-forms-list.cjs.entry.js +3 -3
  95. package/dist/cjs/udp-forms-renderer.cjs.entry.js +4 -4
  96. package/dist/cjs/udp-import-sheet.cjs.entry.js +244 -0
  97. package/dist/cjs/udp-kpi-card.cjs.entry.js +1 -1
  98. package/dist/cjs/udp-kpi-cards.cjs.entry.js +2 -2
  99. package/dist/cjs/udp-map.cjs.entry.js +3 -3
  100. package/dist/cjs/udp-menu.cjs.entry.js +1 -1
  101. package/dist/cjs/udp-page.cjs.entry.js +1 -1
  102. package/dist/cjs/udp-question-form-builder.cjs.entry.js +35 -258
  103. package/dist/cjs/udp-rich-text-field.cjs.entry.js +28 -53
  104. package/dist/cjs/udp-rich-text.cjs.entry.js +61 -0
  105. package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
  106. package/dist/cjs/udp-sidebar-layout.cjs.entry.js +3 -3
  107. package/dist/cjs/udp-skeleton-loading.cjs.entry.js +1 -1
  108. package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
  109. package/dist/cjs/udp-stepper-actions.cjs.entry.js +1 -1
  110. package/dist/cjs/udp-stepper-content.cjs.entry.js +2 -2
  111. package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
  112. package/dist/cjs/udp-stepper-nav.cjs.entry.js +1 -1
  113. package/dist/cjs/udp-tab.cjs.entry.js +1 -1
  114. package/dist/cjs/udp-timeline-connector.cjs.entry.js +1 -1
  115. package/dist/cjs/udp-timeline-dot.cjs.entry.js +1 -1
  116. package/dist/cjs/udp-timeline-item.cjs.entry.js +2 -2
  117. package/dist/cjs/udp-timeline-separator.cjs.entry.js +1 -1
  118. package/dist/cjs/udp-timeline.cjs.entry.js +1 -1
  119. package/dist/cjs/udp-vertical-timeline-connector.cjs.entry.js +1 -1
  120. package/dist/cjs/udp-vertical-timeline-dot.cjs.entry.js +1 -1
  121. package/dist/cjs/udp-vertical-timeline-item.cjs.entry.js +2 -2
  122. package/dist/cjs/udp-vertical-timeline-separator.cjs.entry.js +1 -1
  123. package/dist/cjs/udp-vertical-timeline.cjs.entry.js +1 -1
  124. package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
  125. package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
  126. package/dist/cjs/valueFormatters-CUoOypK3.js +17 -0
  127. package/dist/collection/__mocks__/jest-setup.js +3 -0
  128. package/dist/collection/collection-manifest.json +3 -0
  129. package/dist/collection/components/advanced-search/advanced-search-grouped.js +2 -2
  130. package/dist/collection/components/advanced-search/advanced-search.js +2 -2
  131. package/dist/collection/components/advanced-search/filter-conditions/filter-conditions.js +1 -1
  132. package/dist/collection/components/advanced-search/ui/logical-search-indicator/logical-search-indicator.js +1 -1
  133. package/dist/collection/components/advanced-search-builder/field-picker/field-picker.js +1 -1
  134. package/dist/collection/components/advanced-search-builder/field-picker-tree/field-picker-tree.js +2 -2
  135. package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +125 -2
  136. package/dist/collection/components/attachment-list/udp-attachment-list.js +1 -1
  137. package/dist/collection/components/buttons/icon-button/function-button/udp-function-button.js +1 -1
  138. package/dist/collection/components/buttons/icon-button/primary-button/custom-button.js +1 -1
  139. package/dist/collection/components/buttons/icon-button/radio-button/udp-radio-button.js +1 -1
  140. package/dist/collection/components/buttons/udp-button/udp-button.js +1 -1
  141. package/dist/collection/components/calendar/udp-calendar-base.js +1 -1
  142. package/dist/collection/components/calendar/udp-calendar-day.js +1 -1
  143. package/dist/collection/components/calendar/udp-calendar-month.js +1 -1
  144. package/dist/collection/components/calendar/udp-calendar-week.js +1 -1
  145. package/dist/collection/components/calendar/udp-calendar-year.js +1 -1
  146. package/dist/collection/components/charts/chart-kpi/chart-kpi.js +1 -1
  147. package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +2 -2
  148. package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +2 -2
  149. package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +2 -2
  150. package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +2 -2
  151. package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +2 -2
  152. package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +2 -2
  153. package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +2 -2
  154. package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +2 -2
  155. package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +1 -1
  156. package/dist/collection/components/charts/udp-charts-example.js +1 -1
  157. package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +1 -1
  158. package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +1 -1
  159. package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +1 -1
  160. package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +1 -1
  161. package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +1 -1
  162. package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +1 -1
  163. package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +1 -1
  164. package/dist/collection/components/data-display/badge/udp-badge.js +1 -1
  165. package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +1 -1
  166. package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +1 -1
  167. package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +1 -1
  168. package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +1 -1
  169. package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +1 -1
  170. package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +1 -1
  171. package/dist/collection/components/data-display/cards/udp-card/udp-card.js +3 -3
  172. package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +1 -1
  173. package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +2 -2
  174. package/dist/collection/components/data-display/chips/udp-chip.js +1 -1
  175. package/dist/collection/components/data-display/detail-list-item/udp-detail-list-item.js +1 -1
  176. package/dist/collection/components/data-display/divider/udp-divider.js +1 -1
  177. package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +1 -1
  178. package/dist/collection/components/data-display/headers/udp-column-header.js +1 -1
  179. package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +1 -1
  180. package/dist/collection/components/data-display/hint-panel/hint-panel.js +1 -1
  181. package/dist/collection/components/data-display/kpi/kpi-list.js +1 -1
  182. package/dist/collection/components/data-display/kpi/udp-kpi-card.js +1 -1
  183. package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
  184. package/dist/collection/components/data-display/list-item/list-item.js +2 -2
  185. package/dist/collection/components/data-display/pop-over/udp-pop-over.js +1 -1
  186. package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +1 -1
  187. package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +2 -2
  188. package/dist/collection/components/data-display/simple-card/simple-card.js +1 -1
  189. package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +2 -2
  190. package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +1 -1
  191. package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +1 -1
  192. package/dist/collection/components/dialogs/udp-dialog.js +1 -1
  193. package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +9 -9
  194. package/dist/collection/components/export/udp-export-sheet/udp-export-sheet.css +0 -1
  195. package/dist/collection/components/export/udp-export-sheet/udp-export-sheet.js +10 -5
  196. package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +1 -1
  197. package/dist/collection/components/feedback/udp-notification/udp-notification.js +2 -2
  198. package/dist/collection/components/fluent-ui/autocomplete/udp-autocomplete.js +8 -8
  199. package/dist/collection/components/fluent-ui/avatar/udp-fluent-avatar.js +1 -1
  200. package/dist/collection/components/fluent-ui/badge/udp-fluent-badge.js +1 -1
  201. package/dist/collection/components/fluent-ui/button/udp-fluent-button.css +10 -0
  202. package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +26 -1
  203. package/dist/collection/components/fluent-ui/card/udp-fluent-card.js +3 -3
  204. package/dist/collection/components/fluent-ui/checkbox/udp-fluent-checkbox.js +1 -1
  205. package/dist/collection/components/fluent-ui/compound-button/udp-compound-button.js +1 -1
  206. package/dist/collection/components/fluent-ui/counter-badge/udp-fluent-counter-badge.js +1 -1
  207. package/dist/collection/components/fluent-ui/date-time-input/udp-date-time-input.js +1 -1
  208. package/dist/collection/components/fluent-ui/dialog/udp-fluent-dialog.js +1 -1
  209. package/dist/collection/components/fluent-ui/divider/udp-fluent-divider.js +1 -1
  210. package/dist/collection/components/fluent-ui/domain-table-input/domain-table-snapshot.js +78 -0
  211. package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.css +67 -0
  212. package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.js +871 -0
  213. package/dist/collection/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.js +1 -0
  214. package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.css +4 -0
  215. package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +26 -1
  216. package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +28 -10
  217. package/dist/collection/components/fluent-ui/empty-state/udp-empty-state.js +1 -1
  218. package/dist/collection/components/fluent-ui/file-input/udp-fluent-file-input.js +4 -4
  219. package/dist/collection/components/fluent-ui/icon/icon-grid/icon-grid.js +1 -1
  220. package/dist/collection/components/fluent-ui/icon/udp-fluent-icon.js +1 -1
  221. package/dist/collection/components/fluent-ui/icon-picker/udp-fluent-icon-picker.js +2 -2
  222. package/dist/collection/components/fluent-ui/image/udp-fluent-image.js +1 -1
  223. package/dist/collection/components/fluent-ui/inline-edit/udp-fluent-inline-edit.js +2 -2
  224. package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
  225. package/dist/collection/components/fluent-ui/list/udp-list.js +1 -1
  226. package/dist/collection/components/fluent-ui/list-input/udp-fluent-list-input.js +1 -1
  227. package/dist/collection/components/fluent-ui/list-item/udp-list-item.js +2 -2
  228. package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
  229. package/dist/collection/components/fluent-ui/menu/udp-fluent-menu.js +2 -2
  230. package/dist/collection/components/fluent-ui/message-bar/udp-message-bar.js +1 -1
  231. package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.js +1 -1
  232. package/dist/collection/components/fluent-ui/popover/udp-popover.js +4 -4
  233. package/dist/collection/components/fluent-ui/progress-bar/udp-progress-bar.js +1 -1
  234. package/dist/collection/components/fluent-ui/radio-group/udp-fluent-radio-group.js +21 -8
  235. package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.css +9 -0
  236. package/dist/collection/components/fluent-ui/rich-text/udp-rich-text.js +81 -0
  237. package/dist/collection/components/fluent-ui/rich-text-field/rich-text-content.css +97 -0
  238. package/dist/collection/components/fluent-ui/rich-text-field/rich-text-schema.js +39 -0
  239. package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.css +1 -92
  240. package/dist/collection/components/fluent-ui/rich-text-field/udp-rich-text-field.js +12 -39
  241. package/dist/collection/components/fluent-ui/search-input/udp-search-input.css +6 -0
  242. package/dist/collection/components/fluent-ui/search-input/udp-search-input.js +3 -3
  243. package/dist/collection/components/fluent-ui/signature-input/udp-fluent-signature-input.js +4 -4
  244. package/dist/collection/components/fluent-ui/slider/udp-slider.js +1 -1
  245. package/dist/collection/components/fluent-ui/spinner/udp-spinner.js +1 -1
  246. package/dist/collection/components/fluent-ui/swatch-picker/udp-swatch-picker.js +1 -1
  247. package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
  248. package/dist/collection/components/fluent-ui/table-input/table-aggregates.js +57 -0
  249. package/dist/collection/components/fluent-ui/table-input/udp-fluent-table-input.js +12 -56
  250. package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.js +13 -2
  251. package/dist/collection/components/fluent-ui/text/udp-text.js +1 -1
  252. package/dist/collection/components/fluent-ui/text-input/udp-fluent-text-input.js +2 -2
  253. package/dist/collection/components/fluent-ui/textarea/udp-textarea.js +2 -2
  254. package/dist/collection/components/fluent-ui/time-input/udp-time-input.js +7 -2
  255. package/dist/collection/components/fluent-ui/toggle-button/udp-fluent-toggle-button.js +1 -1
  256. package/dist/collection/components/fluent-ui/tooltip/udp-tooltip.js +2 -2
  257. package/dist/collection/components/fluent-ui/tree/udp-tree.js +1 -1
  258. package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +1 -1
  259. package/dist/collection/components/forms/edit-view-form/edit-view-form.js +2 -2
  260. package/dist/collection/components/forms/form/stencil-form.js +1 -1
  261. package/dist/collection/components/forms/save-view-form/save-view-form.js +2 -2
  262. package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +2 -2
  263. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
  264. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/form-metadata-display-renderer/form-metadata-display-renderer.js +3 -3
  265. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +3 -3
  266. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/location-renderer/location-renderer.js +6 -6
  267. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +7 -7
  268. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +4 -4
  269. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +1 -1
  270. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/table-columns-renderer/table-columns-renderer.js +2 -2
  271. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +2 -2
  272. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -2
  273. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -1
  274. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +4 -4
  275. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
  276. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer-follow-up-list-card/udp-forms-follow-up-list-card.js +2 -2
  277. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +1 -1
  278. package/dist/collection/components/forms/udp-forms/udp-question/table-input/table-input.js +1 -1
  279. package/dist/collection/components/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.js +200 -0
  280. package/dist/collection/components/forms/udp-question-form/builder/components/configure-question-drawer.js +7 -1
  281. package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.js +309 -0
  282. package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/TableConfig.js +32 -1
  283. package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.css +50 -0
  284. package/dist/collection/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.js +33 -3
  285. package/dist/collection/components/forms/udp-question-form/builder/udp-question-form-builder.js +7 -1
  286. package/dist/collection/components/forms/udp-question-form/builder/utils/builder-api.js +85 -0
  287. package/dist/collection/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.js +9 -1
  288. package/dist/collection/components/forms/udp-question-form/core/field-properties.js +6 -1
  289. package/dist/collection/components/forms/udp-question-form/core/validation/intrinsic.js +52 -3
  290. package/dist/collection/components/forms/udp-question-form/renderer/runtime/codecs.js +10 -4
  291. package/dist/collection/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.js +50 -0
  292. package/dist/collection/components/forms/udp-question-form/renderer/runtime/index.js +1 -0
  293. package/dist/collection/components/forms/udp-question-form/renderer/udp-question-form-renderer.js +62 -16
  294. package/dist/collection/components/forms/udp-question-form/renderer/ui/adapters/udp-question-tally-adapter.js +1 -1
  295. package/dist/collection/components/forms/udp-question-form/renderer/ui/form-shell.js +2 -1
  296. package/dist/collection/components/forms/udp-question-form/renderer/ui/question-renderer.js +7 -3
  297. package/dist/collection/components/forms/udp-question-form/renderer/ui/question-view-renderer.js +17 -11
  298. package/dist/collection/components/forms/udp-question-form/version-drawer/udp-form-version-drawer.js +1 -1
  299. package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +16 -16
  300. package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -2
  301. package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
  302. package/dist/collection/components/grid/new-grid/ag-grid-base.css +7 -0
  303. package/dist/collection/components/grid/new-grid/ag-grid-base.js +13 -4
  304. package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +27 -3
  305. package/dist/collection/components/grid/new-grid/client-side-grid.js +2 -2
  306. package/dist/collection/components/grid/new-grid/datasources/searchMethodDatasource.js +20 -6
  307. package/dist/collection/components/grid/new-grid/gridFunctions/advancedSearch.js +3 -2
  308. package/dist/collection/components/grid/new-grid/gridFunctions/savedViews.js +7 -5
  309. package/dist/collection/components/grid/new-grid/gridFunctions/udpExport.js +12 -1
  310. package/dist/collection/components/grid/new-grid/helperFunctions/buildSearchObject.js +17 -16
  311. package/dist/collection/components/grid/new-grid/helperFunctions/configureUdpColumnMods.js +23 -7
  312. package/dist/collection/components/grid/new-grid/helperFunctions/domainRowsHelper.js +177 -0
  313. package/dist/collection/components/grid/new-grid/helperFunctions/extraFieldsHelper.js +203 -0
  314. package/dist/collection/components/grid/new-grid/helperFunctions/lookupHelper.js +256 -16
  315. package/dist/collection/components/grid/new-grid/search-method-grid.js +124 -11
  316. package/dist/collection/components/grid/new-grid/server-side-grid.js +107 -4
  317. package/dist/collection/components/grid/renderers/actions-renderer.js +83 -55
  318. package/dist/collection/components/grid/renderers/input-renderer.js +66 -0
  319. package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
  320. package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +3 -3
  321. package/dist/collection/components/import/udp-import-sheet/udp-import-sheet.css +38 -0
  322. package/dist/collection/components/import/udp-import-sheet/udp-import-sheet.js +425 -0
  323. package/dist/collection/components/inputs/address-search/address-search.js +3 -3
  324. package/dist/collection/components/inputs/checkbox/check-box.js +2 -2
  325. package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +2 -2
  326. package/dist/collection/components/inputs/date-selector/udp-date-selector.js +3 -3
  327. package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +3 -3
  328. package/dist/collection/components/inputs/file-upload/file-upload.js +4 -4
  329. package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +1 -1
  330. package/dist/collection/components/inputs/image-upload/image-upload.js +1 -1
  331. package/dist/collection/components/inputs/numeric-field/numeric-field.js +3 -3
  332. package/dist/collection/components/inputs/signature-input/signature-input.js +2 -2
  333. package/dist/collection/components/inputs/tally/tally.js +2 -2
  334. package/dist/collection/components/inputs/text-area/text-area.js +3 -3
  335. package/dist/collection/components/inputs/text-field/text-field.js +3 -3
  336. package/dist/collection/components/inputs/time-selector/udp-time-selector.js +3 -3
  337. package/dist/collection/components/inputs/toggle/stencil-toggle.js +4 -4
  338. package/dist/collection/components/inputs/udp-selector/udp-selector.js +4 -4
  339. package/dist/collection/components/layout/primary-action-header/udp-primary-action-header.js +1 -1
  340. package/dist/collection/components/layout/udp-container/udp-container.js +2 -2
  341. package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -2
  342. package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
  343. package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
  344. package/dist/collection/components/layout/udp-page/udp-page.js +1 -1
  345. package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.js +3 -3
  346. package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
  347. package/dist/collection/components/layout/udp-vertical-spacer.js +1 -1
  348. package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
  349. package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
  350. package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -1
  351. package/dist/collection/components/map/udp-map/map-component.js +1 -1
  352. package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -3
  353. package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
  354. package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -1
  355. package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -2
  356. package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -1
  357. package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +2 -2
  358. package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -1
  359. package/dist/collection/components/map/udp-map/udp-map.js +3 -3
  360. package/dist/collection/components/menu/menu-item/udp-menu-item.js +1 -1
  361. package/dist/collection/components/menu/udp-menu.js +1 -1
  362. package/dist/collection/components/new-form/field/udp-field.js +1 -1
  363. package/dist/collection/components/new-form/form/udp-form-component.js +2 -2
  364. package/dist/collection/components/stepper/udp-stepper-actions/udp-stepper-actions.js +1 -1
  365. package/dist/collection/components/stepper/udp-stepper-content/udp-stepper-content.js +2 -2
  366. package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
  367. package/dist/collection/components/stepper/udp-stepper-nav/udp-stepper-nav.js +1 -1
  368. package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -2
  369. package/dist/collection/components/tabs/tab/udp-tab.js +1 -1
  370. package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +1 -2
  371. package/dist/collection/components/timeline/udp-timeline-connector.js +1 -1
  372. package/dist/collection/components/timeline/udp-timeline-dot.js +1 -1
  373. package/dist/collection/components/timeline/udp-timeline-item.js +2 -2
  374. package/dist/collection/components/timeline/udp-timeline-separator.js +1 -1
  375. package/dist/collection/components/timeline/udp-timeline.js +1 -1
  376. package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -1
  377. package/dist/collection/components/util/ghost-render/ghost-render.js +1 -1
  378. package/dist/collection/components/util/lazy-loader/udp-lazy-loader.js +1 -1
  379. package/dist/collection/components/vertical-timeline/udp-vertical-timeline-connector.js +1 -1
  380. package/dist/collection/components/vertical-timeline/udp-vertical-timeline-dot.js +1 -1
  381. package/dist/collection/components/vertical-timeline/udp-vertical-timeline-item.js +2 -2
  382. package/dist/collection/components/vertical-timeline/udp-vertical-timeline-separator.js +1 -1
  383. package/dist/collection/components/vertical-timeline/udp-vertical-timeline.js +1 -1
  384. package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -1
  385. package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -1
  386. package/dist/collection/icons/fluent-icons.js +16 -0
  387. package/dist/collection/index.js +2 -0
  388. package/dist/collection/store/execution-store.js +6 -5
  389. package/dist/collection/test-pages/test-components-page.js +28 -28
  390. package/dist/collection/test-pages/test-form.js +4 -4
  391. package/dist/collection/udp-utilities/api-config/configService.js +0 -4
  392. package/dist/collection/udp-utilities/extra-fields/extraFields.js +94 -0
  393. package/dist/collection/udp-utilities/extra-fields/index.js +1 -0
  394. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
  395. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
  396. package/dist/components/add-map-feature-popup2.js +1 -1
  397. package/dist/components/address-search2.js +1 -1
  398. package/dist/components/advanced-search-grouped2.js +1 -1
  399. package/dist/components/advanced-search2.js +1 -1
  400. package/dist/components/ag-grid-base2.js +1 -1
  401. package/dist/components/ambient-template-grid.js +1 -1
  402. package/dist/components/api-method-instance-grid.js +1 -1
  403. package/dist/components/apiMethodInstance.js +1 -1
  404. package/dist/components/apiUtils.js +1 -1
  405. package/dist/components/app-bar.js +1 -1
  406. package/dist/components/chart-kpi2.js +1 -1
  407. package/dist/components/check-box.js +1 -1
  408. package/dist/components/chip-section.js +1 -1
  409. package/dist/components/client-side-grid2.js +1 -1
  410. package/dist/components/configService.js +1 -1
  411. package/dist/components/configureUdpColumnMods.js +1 -1
  412. package/dist/components/convertBackendTypeToAgGridType.js +1 -0
  413. package/dist/components/custom-button2.js +1 -1
  414. package/dist/components/edit-view-form.js +1 -1
  415. package/dist/components/extraFields.js +1 -0
  416. package/dist/components/feature-details-card2.js +1 -1
  417. package/dist/components/feature-details-popup2.js +1 -1
  418. package/dist/components/field-picker-tree.js +1 -1
  419. package/dist/components/field-picker.js +1 -1
  420. package/dist/components/file-upload-renderer2.js +1 -1
  421. package/dist/components/file-upload2.js +1 -1
  422. package/dist/components/filter-conditions2.js +1 -1
  423. package/dist/components/fluent-icons.js +1 -1
  424. package/dist/components/form-metadata-display-renderer2.js +1 -1
  425. package/dist/components/form-metadata-display2.js +1 -1
  426. package/dist/components/getCachedAzureMapsProviders.js +1 -1
  427. package/dist/components/ghost-render2.js +1 -1
  428. package/dist/components/grid-primary-bar2.js +1 -1
  429. package/dist/components/hint-panel2.js +1 -1
  430. package/dist/components/icon-grid2.js +1 -1
  431. package/dist/components/image-upload2.js +1 -1
  432. package/dist/components/index.js +1 -1
  433. package/dist/components/kpi-list2.js +1 -1
  434. package/dist/components/list-item.js +1 -1
  435. package/dist/components/list-options-renderer2.js +1 -1
  436. package/dist/components/location-renderer2.js +1 -1
  437. package/dist/components/logical-search-indicator.js +1 -1
  438. package/dist/components/lookup.js +1 -0
  439. package/dist/components/map-component2.js +1 -1
  440. package/dist/components/map-toolbar2.js +1 -1
  441. package/dist/components/numeric-field2.js +1 -1
  442. package/dist/components/primary-action-header2.js +1 -1
  443. package/dist/components/question-configs-renderer2.js +1 -1
  444. package/dist/components/resource-timeline-calendar.js +1 -1
  445. package/dist/components/resource-timeline-primary-bar2.js +1 -1
  446. package/dist/components/rich-text-schema.js +1 -0
  447. package/dist/components/save-view-form.js +1 -1
  448. package/dist/components/search-list-item2.js +1 -1
  449. package/dist/components/search-method-grid2.js +1 -1
  450. package/dist/components/section-configs-renderer2.js +1 -1
  451. package/dist/components/select-layer-popup2.js +1 -1
  452. package/dist/components/server-side-grid2.js +1 -1
  453. package/dist/components/side-sheet-container2.js +1 -1
  454. package/dist/components/side-sheet2.js +1 -1
  455. package/dist/components/signature-input2.js +1 -1
  456. package/dist/components/signature-renderer2.js +1 -1
  457. package/dist/components/simple-card.js +1 -1
  458. package/dist/components/split-line-popup2.js +1 -1
  459. package/dist/components/status-chip2.js +1 -1
  460. package/dist/components/status-renderer.js +1 -1
  461. package/dist/components/stencil-chip2.js +1 -1
  462. package/dist/components/stencil-form2.js +1 -1
  463. package/dist/components/stencil-toggle2.js +1 -1
  464. package/dist/components/table-aggregates.js +1 -0
  465. package/dist/components/table-columns-renderer2.js +1 -1
  466. package/dist/components/table-input2.js +1 -1
  467. package/dist/components/tally.js +1 -1
  468. package/dist/components/test-components-page.js +1 -1
  469. package/dist/components/test-form2.js +1 -1
  470. package/dist/components/text-area2.js +1 -1
  471. package/dist/components/text-field2.js +1 -1
  472. package/dist/components/text-input-renderer2.js +1 -1
  473. package/dist/components/types.js +1 -1
  474. package/dist/components/udp-adornment2.js +1 -1
  475. package/dist/components/udp-advanced-search-builder.js +1 -1
  476. package/dist/components/udp-ag-area-chart.js +1 -1
  477. package/dist/components/udp-ag-bar-chart2.js +1 -1
  478. package/dist/components/udp-ag-bubble-chart.js +1 -1
  479. package/dist/components/udp-ag-combo-chart.js +1 -1
  480. package/dist/components/udp-ag-donut-chart.js +1 -1
  481. package/dist/components/udp-ag-line-chart.js +1 -1
  482. package/dist/components/udp-ag-pie-chart.js +1 -1
  483. package/dist/components/udp-ag-scatter-chart.js +1 -1
  484. package/dist/components/udp-ambient-card2.js +1 -1
  485. package/dist/components/udp-ambient-tool-tip2.js +1 -1
  486. package/dist/components/udp-attachment-list.js +1 -1
  487. package/dist/components/udp-autocomplete2.js +1 -1
  488. package/dist/components/udp-avatar2.js +1 -1
  489. package/dist/components/udp-badge2.js +1 -1
  490. package/dist/components/udp-bar-chart.js +1 -1
  491. package/dist/components/udp-button2.js +1 -1
  492. package/dist/components/udp-calendar-base2.js +1 -1
  493. package/dist/components/udp-calendar-day.js +1 -1
  494. package/dist/components/udp-calendar-month.js +1 -1
  495. package/dist/components/udp-calendar-week.js +1 -1
  496. package/dist/components/udp-calendar-year.js +1 -1
  497. package/dist/components/udp-card-action-area.js +1 -1
  498. package/dist/components/udp-card-actions2.js +1 -1
  499. package/dist/components/udp-card-content2.js +1 -1
  500. package/dist/components/udp-card-header2.js +1 -1
  501. package/dist/components/udp-card-media2.js +1 -1
  502. package/dist/components/udp-card2.js +1 -1
  503. package/dist/components/udp-charts-example.js +1 -1
  504. package/dist/components/udp-chip2.js +1 -1
  505. package/dist/components/udp-column-header2.js +1 -1
  506. package/dist/components/udp-compound-button2.js +1 -1
  507. package/dist/components/udp-container-query-grid-item.js +1 -1
  508. package/dist/components/udp-container-query-grid2.js +1 -1
  509. package/dist/components/udp-container-query2.js +1 -1
  510. package/dist/components/udp-container2.js +1 -1
  511. package/dist/components/udp-date-range-selector2.js +1 -1
  512. package/dist/components/udp-date-selector2.js +1 -1
  513. package/dist/components/udp-date-time-input2.js +1 -1
  514. package/dist/components/udp-datetime-selector2.js +1 -1
  515. package/dist/components/udp-detail-list-item2.js +1 -1
  516. package/dist/components/udp-dialog2.js +1 -1
  517. package/dist/components/udp-distribution-chart2.js +1 -1
  518. package/dist/components/udp-divider2.js +1 -1
  519. package/dist/components/udp-donut-chart2.js +1 -1
  520. package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
  521. package/dist/components/udp-dynamic-form.js +1 -1
  522. package/dist/components/udp-empty-state-display2.js +1 -1
  523. package/dist/components/udp-empty-state2.js +1 -1
  524. package/dist/components/udp-export-sheet2.js +1 -1
  525. package/dist/components/udp-field2.js +1 -1
  526. package/dist/components/udp-fluent-avatar2.js +1 -1
  527. package/dist/components/udp-fluent-badge2.js +1 -1
  528. package/dist/components/udp-fluent-button2.js +1 -1
  529. package/dist/components/udp-fluent-card2.js +1 -1
  530. package/dist/components/udp-fluent-checkbox2.js +1 -1
  531. package/dist/components/udp-fluent-counter-badge2.js +1 -1
  532. package/dist/components/udp-fluent-dialog2.js +1 -1
  533. package/dist/components/udp-fluent-divider2.js +1 -1
  534. package/dist/components/udp-fluent-domain-table-input.d.ts +11 -0
  535. package/dist/components/udp-fluent-domain-table-input.js +2 -0
  536. package/dist/components/udp-fluent-domain-table-input2.js +1 -0
  537. package/dist/components/udp-fluent-drawer2.js +1 -1
  538. package/dist/components/udp-fluent-dropdown2.js +1 -1
  539. package/dist/components/udp-fluent-file-input2.js +1 -1
  540. package/dist/components/udp-fluent-icon-picker.js +1 -1
  541. package/dist/components/udp-fluent-icon2.js +1 -1
  542. package/dist/components/udp-fluent-image2.js +1 -1
  543. package/dist/components/udp-fluent-inline-edit2.js +1 -1
  544. package/dist/components/udp-fluent-link.js +1 -1
  545. package/dist/components/udp-fluent-list-input2.js +1 -1
  546. package/dist/components/udp-fluent-location-input2.js +1 -1
  547. package/dist/components/udp-fluent-menu2.js +1 -1
  548. package/dist/components/udp-fluent-number-input.js +1 -1
  549. package/dist/components/udp-fluent-number-input2.js +1 -0
  550. package/dist/components/udp-fluent-radio-group2.js +1 -1
  551. package/dist/components/udp-fluent-signature-input2.js +1 -1
  552. package/dist/components/udp-fluent-switch2.js +1 -1
  553. package/dist/components/udp-fluent-table-input2.js +1 -1
  554. package/dist/components/udp-fluent-tablist2.js +1 -1
  555. package/dist/components/udp-fluent-text-input2.js +1 -1
  556. package/dist/components/udp-fluent-toggle-button2.js +1 -1
  557. package/dist/components/udp-form-component2.js +1 -1
  558. package/dist/components/udp-form-version-drawer2.js +1 -1
  559. package/dist/components/udp-forms-builder-menu2.js +1 -1
  560. package/dist/components/udp-forms-builder-question-item2.js +1 -1
  561. package/dist/components/udp-forms-builder-style-override.js +1 -1
  562. package/dist/components/udp-forms-follow-up-list-card.js +1 -1
  563. package/dist/components/udp-forms-list-card2.js +1 -1
  564. package/dist/components/udp-forms-list.js +1 -1
  565. package/dist/components/udp-forms-renderer.js +1 -1
  566. package/dist/components/udp-forms-ui2.js +1 -1
  567. package/dist/components/udp-function-button2.js +1 -1
  568. package/dist/components/udp-grid-loader2.js +1 -1
  569. package/dist/components/udp-hotlist-form2.js +1 -1
  570. package/dist/components/udp-import-sheet.d.ts +11 -0
  571. package/dist/components/udp-import-sheet.js +2 -0
  572. package/dist/components/udp-kpi-card2.js +1 -1
  573. package/dist/components/udp-kpi-cards.js +1 -1
  574. package/dist/components/udp-lazy-loader2.js +1 -1
  575. package/dist/components/udp-line-chart2.js +1 -1
  576. package/dist/components/udp-linear-loader2.js +1 -1
  577. package/dist/components/udp-list-item2.js +1 -1
  578. package/dist/components/udp-list2.js +1 -1
  579. package/dist/components/udp-map-toolbar2.js +1 -1
  580. package/dist/components/udp-map.js +1 -1
  581. package/dist/components/udp-menu-item2.js +1 -1
  582. package/dist/components/udp-menu.js +1 -1
  583. package/dist/components/udp-message-bar2.js +1 -1
  584. package/dist/components/udp-notification2.js +1 -1
  585. package/dist/components/udp-page-header2.js +1 -1
  586. package/dist/components/udp-page.js +1 -1
  587. package/dist/components/udp-pop-over-grid-action-header2.js +1 -1
  588. package/dist/components/udp-pop-over2.js +1 -1
  589. package/dist/components/udp-popover2.js +1 -1
  590. package/dist/components/udp-primary-action-header2.js +1 -1
  591. package/dist/components/udp-progress-bar2.js +1 -1
  592. package/dist/components/udp-question-config-fluent2.js +1 -1
  593. package/dist/components/udp-question-form-builder.js +1 -1
  594. package/dist/components/udp-question-form-renderer2.js +1 -1
  595. package/dist/components/udp-question-tally-adapter2.js +1 -1
  596. package/dist/components/udp-question2.js +1 -1
  597. package/dist/components/udp-radio-button2.js +1 -1
  598. package/dist/components/udp-rich-text-field.js +1 -1
  599. package/dist/components/udp-rich-text.d.ts +11 -0
  600. package/dist/components/udp-rich-text.js +2 -0
  601. package/dist/components/udp-sankey-chart.js +1 -1
  602. package/dist/components/udp-search-input2.js +1 -1
  603. package/dist/components/udp-selector2.js +1 -1
  604. package/dist/components/udp-side-sheet2.js +1 -1
  605. package/dist/components/udp-sidebar-layout2.js +1 -1
  606. package/dist/components/udp-skeleton-loading2.js +1 -1
  607. package/dist/components/udp-slider2.js +1 -1
  608. package/dist/components/udp-spinner2.js +1 -1
  609. package/dist/components/udp-split-screen.js +1 -1
  610. package/dist/components/udp-stepper-actions.js +1 -1
  611. package/dist/components/udp-stepper-content.js +1 -1
  612. package/dist/components/udp-stepper-demo.js +1 -1
  613. package/dist/components/udp-stepper-nav.js +1 -1
  614. package/dist/components/udp-swatch-picker2.js +1 -1
  615. package/dist/components/udp-tab-panel2.js +1 -1
  616. package/dist/components/udp-tab.js +1 -1
  617. package/dist/components/udp-tabs2.js +1 -1
  618. package/dist/components/udp-text2.js +1 -1
  619. package/dist/components/udp-textarea2.js +1 -1
  620. package/dist/components/udp-time-input2.js +1 -1
  621. package/dist/components/udp-time-selector2.js +1 -1
  622. package/dist/components/udp-timeline-connector.js +1 -1
  623. package/dist/components/udp-timeline-dot.js +1 -1
  624. package/dist/components/udp-timeline-item.js +1 -1
  625. package/dist/components/udp-timeline-separator.js +1 -1
  626. package/dist/components/udp-timeline.js +1 -1
  627. package/dist/components/udp-tooltip2.js +1 -1
  628. package/dist/components/udp-tree2.js +1 -1
  629. package/dist/components/udp-vertical-spacer2.js +1 -1
  630. package/dist/components/udp-vertical-timeline-connector.js +1 -1
  631. package/dist/components/udp-vertical-timeline-dot.js +1 -1
  632. package/dist/components/udp-vertical-timeline-item.js +1 -1
  633. package/dist/components/udp-vertical-timeline-separator.js +1 -1
  634. package/dist/components/udp-vertical-timeline.js +1 -1
  635. package/dist/components/udp-xy-chart2.js +1 -1
  636. package/dist/components/udp-xy-multi-series-chart.js +1 -1
  637. package/dist/components/upd-alert-banner2.js +1 -1
  638. package/dist/docs.json +1805 -112
  639. package/dist/esm/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.js} +1 -1
  640. package/dist/esm/add-map-feature-popup_4.entry.js +8 -8
  641. package/dist/esm/address-search_6.entry.js +19 -19
  642. package/dist/esm/advanced-search_12.entry.js +20 -20
  643. package/dist/esm/{ag-grid-base_65.entry.js → ag-grid-base_66.entry.js} +450 -176
  644. package/dist/esm/ambient-template-grid.entry.js +20 -20
  645. package/dist/esm/api-method-instance-grid.entry.js +10 -9
  646. package/dist/esm/{apiMethodInstance-BunReWfq.js → apiMethodInstance-qaGbXDNr.js} +2 -31
  647. package/dist/esm/{apiUtils-Cq-WuEqc.js → apiUtils-CXqsYwOQ.js} +29 -28
  648. package/dist/esm/app-bar.entry.js +1 -1
  649. package/dist/esm/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
  650. package/dist/esm/chart-container_3.entry.js +2 -2
  651. package/dist/esm/check-box.entry.js +2 -2
  652. package/dist/esm/chip-section.entry.js +2 -2
  653. package/dist/esm/{codecs-CI_fHfY1.js → codecs-BWyrM561.js} +400 -9
  654. package/dist/esm/{configService-D_9j963S.js → configService-CehZzjhw.js} +0 -4
  655. package/dist/esm/{configureUdpColumnMods-UWccWlH6.js → configureUdpColumnMods-bMO0_--H.js} +23 -7
  656. package/dist/esm/convertBackendTypeToAgGridType-B8xfl_wR.js +31 -0
  657. package/dist/esm/{createAzureMapsProviders-CLLCmr8f.js → createAzureMapsProviders-CtQryp1H.js} +13 -1
  658. package/dist/esm/custom-button.entry.js +1 -1
  659. package/dist/esm/date-time-renderer_9.entry.js +21 -21
  660. package/dist/esm/domain-table-snapshot-H3o5mjFB.js +331 -0
  661. package/dist/esm/extraFields-Cnpy_Bm7.js +97 -0
  662. package/dist/esm/extraFieldsHelper-CaBMA4HJ.js +205 -0
  663. package/dist/esm/feature-details-card_2.entry.js +5 -5
  664. package/dist/esm/file-upload_2.entry.js +7 -7
  665. package/dist/esm/filter-conditions_7.entry.js +7 -7
  666. package/dist/esm/{fluent-icons-pWFJyrRm.js → fluent-icons-wRyOZqj2.js} +20 -0
  667. package/dist/esm/form-metadata-display_2.entry.js +3 -3
  668. package/dist/esm/getCurrentApiCatalogId-DeurXd9l.js +5 -0
  669. package/dist/esm/icon-grid.entry.js +2 -2
  670. package/dist/esm/image-upload_8.entry.js +7 -7
  671. package/dist/esm/index-15aY63VA.js +12 -8
  672. package/dist/esm/index.js +13 -22
  673. package/dist/esm/{load-icons-BHSNRRRA.js → load-icons-D2ZhiHp6.js} +1 -1
  674. package/dist/esm/loader.js +1 -1
  675. package/dist/esm/logical-search-indicator.entry.js +1 -1
  676. package/dist/esm/lookupHelper-D3LSjaES.js +682 -0
  677. package/dist/esm/map-component_2.entry.js +2 -2
  678. package/dist/esm/primary-action-header_2.entry.js +4 -4
  679. package/dist/esm/question-configs-renderer_4.entry.js +15 -15
  680. package/dist/esm/resource-timeline-calendar.entry.js +1 -1
  681. package/dist/esm/resource-timeline-primary-bar.entry.js +3 -3
  682. package/dist/esm/rich-text-schema-DCUYo610.js +42 -0
  683. package/dist/esm/search-method-grid.entry.js +120 -263
  684. package/dist/esm/server-side-grid.entry.js +85 -3
  685. package/dist/esm/side-sheet-container.entry.js +1 -1
  686. package/dist/esm/simple-card.entry.js +1 -1
  687. package/dist/esm/status-chip_2.entry.js +2 -2
  688. package/dist/esm/{status-renderer-BoY7sar9.js → status-renderer-Evo0rTNU.js} +83 -55
  689. package/dist/esm/stencil-chip.entry.js +2 -2
  690. package/dist/esm/stencil-library.js +1 -1
  691. package/dist/esm/stencil-toggle.entry.js +4 -4
  692. package/dist/esm/text-field_2.entry.js +7 -7
  693. package/dist/esm/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
  694. package/dist/esm/udp-adornment.entry.js +1 -1
  695. package/dist/esm/udp-advanced-search-builder.entry.js +102 -5
  696. package/dist/esm/udp-advanced-search-field-picker_3.entry.js +3 -3
  697. package/dist/esm/udp-ag-area-chart.entry.js +2 -2
  698. package/dist/esm/udp-ag-bar-chart_4.entry.js +5 -5
  699. package/dist/esm/udp-ag-bubble-chart.entry.js +2 -2
  700. package/dist/esm/udp-ag-combo-chart.entry.js +2 -2
  701. package/dist/esm/udp-ag-donut-chart.entry.js +2 -2
  702. package/dist/esm/udp-ag-line-chart.entry.js +2 -2
  703. package/dist/esm/udp-ag-pie-chart.entry.js +2 -2
  704. package/dist/esm/udp-ag-scatter-chart.entry.js +2 -2
  705. package/dist/esm/udp-attachment-item_2.entry.js +1 -1
  706. package/dist/esm/udp-attachment-list.entry.js +1 -1
  707. package/dist/esm/udp-bar-chart.entry.js +1 -1
  708. package/dist/esm/udp-calendar-base.entry.js +1 -1
  709. package/dist/esm/udp-calendar-day.entry.js +1 -1
  710. package/dist/esm/udp-calendar-month.entry.js +1 -1
  711. package/dist/esm/udp-calendar-week.entry.js +1 -1
  712. package/dist/esm/udp-calendar-year.entry.js +1 -1
  713. package/dist/esm/udp-card-action-area.entry.js +1 -1
  714. package/dist/esm/udp-card_6.entry.js +7 -7
  715. package/dist/esm/udp-charts-example.entry.js +1 -1
  716. package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
  717. package/dist/esm/udp-container-query-grid.entry.js +1 -1
  718. package/dist/esm/udp-container-query.entry.js +2 -2
  719. package/dist/esm/udp-container.entry.js +2 -2
  720. package/dist/esm/{udp-detail-list_9.entry.js → udp-detail-list_10.entry.js} +606 -74
  721. package/dist/esm/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.js} +1 -1
  722. package/dist/esm/udp-dynamic-container-with-menu.entry.js +1 -1
  723. package/dist/esm/udp-dynamic-form.entry.js +1 -1
  724. package/dist/esm/udp-fluent-icon-picker.entry.js +2 -2
  725. package/dist/esm/udp-fluent-inline-edit_5.entry.js +491 -42
  726. package/dist/esm/udp-fluent-link.entry.js +1 -1
  727. package/dist/esm/udp-fluent-list-item_2.entry.js +3 -3
  728. package/dist/esm/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
  729. package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
  730. package/dist/esm/udp-forms-builder.entry.js +1 -1
  731. package/dist/esm/udp-forms-follow-up-list-card.entry.js +2 -2
  732. package/dist/esm/udp-forms-list-card.entry.js +4 -4
  733. package/dist/esm/udp-forms-list.entry.js +3 -3
  734. package/dist/esm/udp-forms-renderer.entry.js +4 -4
  735. package/dist/esm/udp-import-sheet.entry.js +242 -0
  736. package/dist/esm/udp-kpi-card.entry.js +1 -1
  737. package/dist/esm/udp-kpi-cards.entry.js +2 -2
  738. package/dist/esm/udp-map.entry.js +3 -3
  739. package/dist/esm/udp-menu.entry.js +1 -1
  740. package/dist/esm/udp-page.entry.js +1 -1
  741. package/dist/esm/udp-question-form-builder.entry.js +28 -251
  742. package/dist/esm/udp-rich-text-field.entry.js +28 -39
  743. package/dist/esm/udp-rich-text.entry.js +59 -0
  744. package/dist/esm/udp-sankey-chart.entry.js +1 -1
  745. package/dist/esm/udp-sidebar-layout.entry.js +3 -3
  746. package/dist/esm/udp-skeleton-loading.entry.js +1 -1
  747. package/dist/esm/udp-split-screen.entry.js +1 -1
  748. package/dist/esm/udp-stepper-actions.entry.js +1 -1
  749. package/dist/esm/udp-stepper-content.entry.js +2 -2
  750. package/dist/esm/udp-stepper-demo.entry.js +1 -1
  751. package/dist/esm/udp-stepper-nav.entry.js +1 -1
  752. package/dist/esm/udp-tab.entry.js +1 -1
  753. package/dist/esm/udp-timeline-connector.entry.js +1 -1
  754. package/dist/esm/udp-timeline-dot.entry.js +1 -1
  755. package/dist/esm/udp-timeline-item.entry.js +2 -2
  756. package/dist/esm/udp-timeline-separator.entry.js +1 -1
  757. package/dist/esm/udp-timeline.entry.js +1 -1
  758. package/dist/esm/udp-vertical-timeline-connector.entry.js +1 -1
  759. package/dist/esm/udp-vertical-timeline-dot.entry.js +1 -1
  760. package/dist/esm/udp-vertical-timeline-item.entry.js +2 -2
  761. package/dist/esm/udp-vertical-timeline-separator.entry.js +1 -1
  762. package/dist/esm/udp-vertical-timeline.entry.js +1 -1
  763. package/dist/esm/udp-xy-chart.entry.js +1 -1
  764. package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
  765. package/dist/esm/valueFormatters-BbY_Q8IE.js +15 -0
  766. package/dist/stencil-library/{SearchBuilder-BmqrJvtz.js → SearchBuilder-BxLXFEeR.js} +1 -1
  767. package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
  768. package/dist/stencil-library/address-search_6.entry.js +1 -1
  769. package/dist/stencil-library/advanced-search_12.entry.js +1 -1
  770. package/dist/stencil-library/ag-grid-base_66.entry.js +1 -0
  771. package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
  772. package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
  773. package/dist/stencil-library/apiMethodInstance-qaGbXDNr.js +1 -0
  774. package/dist/stencil-library/apiUtils-CXqsYwOQ.js +1 -0
  775. package/dist/stencil-library/app-bar.entry.js +1 -1
  776. package/dist/stencil-library/{catalog-store-CLsDGUEl.js → catalog-store-BOpo_zaC.js} +1 -1
  777. package/dist/stencil-library/chart-container_3.entry.js +1 -1
  778. package/dist/stencil-library/check-box.entry.js +1 -1
  779. package/dist/stencil-library/chip-section.entry.js +1 -1
  780. package/dist/stencil-library/codecs-BWyrM561.js +1 -0
  781. package/dist/stencil-library/configService-CehZzjhw.js +1 -0
  782. package/dist/stencil-library/configureUdpColumnMods-bMO0_--H.js +1 -0
  783. package/dist/stencil-library/convertBackendTypeToAgGridType-B8xfl_wR.js +1 -0
  784. package/dist/stencil-library/createAzureMapsProviders-CtQryp1H.js +1 -0
  785. package/dist/stencil-library/custom-button.entry.js +1 -1
  786. package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
  787. package/dist/stencil-library/domain-table-snapshot-H3o5mjFB.js +1 -0
  788. package/dist/stencil-library/extraFields-Cnpy_Bm7.js +1 -0
  789. package/dist/stencil-library/extraFieldsHelper-CaBMA4HJ.js +1 -0
  790. package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
  791. package/dist/stencil-library/file-upload_2.entry.js +1 -1
  792. package/dist/stencil-library/filter-conditions_7.entry.js +1 -1
  793. package/dist/stencil-library/fluent-icons-wRyOZqj2.js +1 -0
  794. package/dist/stencil-library/form-metadata-display_2.entry.js +1 -1
  795. package/dist/stencil-library/getCurrentApiCatalogId-DeurXd9l.js +1 -0
  796. package/dist/stencil-library/icon-grid.entry.js +1 -1
  797. package/dist/stencil-library/image-upload_8.entry.js +1 -1
  798. package/dist/stencil-library/index.esm.js +1 -1
  799. package/dist/stencil-library/load-icons-D2ZhiHp6.js +1 -0
  800. package/dist/stencil-library/logical-search-indicator.entry.js +1 -1
  801. package/dist/stencil-library/lookupHelper-D3LSjaES.js +1 -0
  802. package/dist/stencil-library/map-component_2.entry.js +1 -1
  803. package/dist/stencil-library/primary-action-header_2.entry.js +1 -1
  804. package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
  805. package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
  806. package/dist/stencil-library/resource-timeline-primary-bar.entry.js +1 -1
  807. package/dist/stencil-library/rich-text-schema-DCUYo610.js +1 -0
  808. package/dist/stencil-library/search-method-grid.entry.js +1 -1
  809. package/dist/stencil-library/server-side-grid.entry.js +1 -1
  810. package/dist/stencil-library/side-sheet-container.entry.js +1 -1
  811. package/dist/stencil-library/simple-card.entry.js +1 -1
  812. package/dist/stencil-library/status-chip_2.entry.js +1 -1
  813. package/dist/stencil-library/status-renderer-Evo0rTNU.js +1 -0
  814. package/dist/stencil-library/stencil-chip.entry.js +1 -1
  815. package/dist/stencil-library/stencil-library.esm.js +1 -1
  816. package/dist/stencil-library/stencil-toggle.entry.js +1 -1
  817. package/dist/stencil-library/text-field_2.entry.js +1 -1
  818. package/dist/stencil-library/{types-C9Z-dgvN.js → types-NqFGtWPW.js} +1 -1
  819. package/dist/stencil-library/udp-adornment.entry.js +1 -1
  820. package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
  821. package/dist/stencil-library/udp-advanced-search-field-picker_3.entry.js +1 -1
  822. package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -1
  823. package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -1
  824. package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -1
  825. package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -1
  826. package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -1
  827. package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -1
  828. package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -1
  829. package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -1
  830. package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
  831. package/dist/stencil-library/udp-attachment-list.entry.js +1 -1
  832. package/dist/stencil-library/udp-bar-chart.entry.js +1 -1
  833. package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
  834. package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
  835. package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
  836. package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
  837. package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
  838. package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
  839. package/dist/stencil-library/udp-card_6.entry.js +1 -1
  840. package/dist/stencil-library/udp-charts-example.entry.js +1 -1
  841. package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
  842. package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
  843. package/dist/stencil-library/udp-container-query.entry.js +1 -1
  844. package/dist/stencil-library/udp-container.entry.js +1 -1
  845. package/dist/stencil-library/udp-detail-list_10.entry.js +1 -0
  846. package/dist/stencil-library/{udp-drive-utils-DCivw3gq.js → udp-drive-utils-BVTuKAND.js} +1 -1
  847. package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -1
  848. package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
  849. package/dist/stencil-library/udp-fluent-icon-picker.entry.js +1 -1
  850. package/dist/stencil-library/udp-fluent-inline-edit_5.entry.js +1 -1
  851. package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
  852. package/dist/stencil-library/udp-fluent-list-item_2.entry.js +1 -1
  853. package/dist/stencil-library/{udp-form-api-utils-HJ_eUZkX.js → udp-form-api-utils-Bq7Txu0h.js} +1 -1
  854. package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
  855. package/dist/stencil-library/udp-forms-builder.entry.js +1 -1
  856. package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
  857. package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
  858. package/dist/stencil-library/udp-forms-list.entry.js +1 -1
  859. package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
  860. package/dist/stencil-library/udp-import-sheet.entry.js +1 -0
  861. package/dist/stencil-library/udp-kpi-card.entry.js +1 -1
  862. package/dist/stencil-library/udp-kpi-cards.entry.js +1 -1
  863. package/dist/stencil-library/udp-map.entry.js +1 -1
  864. package/dist/stencil-library/udp-menu.entry.js +1 -1
  865. package/dist/stencil-library/udp-page.entry.js +1 -1
  866. package/dist/stencil-library/udp-question-form-builder.entry.js +1 -1
  867. package/dist/stencil-library/udp-rich-text-field.entry.js +1 -1
  868. package/dist/stencil-library/udp-rich-text.entry.js +1 -0
  869. package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
  870. package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -1
  871. package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -1
  872. package/dist/stencil-library/udp-split-screen.entry.js +1 -1
  873. package/dist/stencil-library/udp-stepper-actions.entry.js +1 -1
  874. package/dist/stencil-library/udp-stepper-content.entry.js +1 -1
  875. package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
  876. package/dist/stencil-library/udp-stepper-nav.entry.js +1 -1
  877. package/dist/stencil-library/udp-tab.entry.js +1 -1
  878. package/dist/stencil-library/udp-timeline-connector.entry.js +1 -1
  879. package/dist/stencil-library/udp-timeline-dot.entry.js +1 -1
  880. package/dist/stencil-library/udp-timeline-item.entry.js +1 -1
  881. package/dist/stencil-library/udp-timeline-separator.entry.js +1 -1
  882. package/dist/stencil-library/udp-timeline.entry.js +1 -1
  883. package/dist/stencil-library/udp-vertical-timeline-connector.entry.js +1 -1
  884. package/dist/stencil-library/udp-vertical-timeline-dot.entry.js +1 -1
  885. package/dist/stencil-library/udp-vertical-timeline-item.entry.js +1 -1
  886. package/dist/stencil-library/udp-vertical-timeline-separator.entry.js +1 -1
  887. package/dist/stencil-library/udp-vertical-timeline.entry.js +1 -1
  888. package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
  889. package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
  890. package/dist/stencil-library/valueFormatters-BbY_Q8IE.js +1 -0
  891. package/dist/types/components/advanced-search-builder/udp-advanced-search-builder.d.ts +25 -0
  892. package/dist/types/components/fluent-ui/button/udp-fluent-button.d.ts +5 -0
  893. package/dist/types/components/fluent-ui/domain-table-input/domain-table-snapshot.d.ts +32 -0
  894. package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.d.ts +137 -0
  895. package/dist/types/components/fluent-ui/domain-table-input/udp-fluent-domain-table-input.types.d.ts +46 -0
  896. package/dist/types/components/fluent-ui/drawer/udp-fluent-drawer.d.ts +5 -0
  897. package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +12 -1
  898. package/dist/types/components/fluent-ui/radio-group/udp-fluent-radio-group.d.ts +6 -0
  899. package/dist/types/components/fluent-ui/rich-text/udp-rich-text.d.ts +19 -0
  900. package/dist/types/components/fluent-ui/rich-text-field/rich-text-schema.d.ts +6 -0
  901. package/dist/types/components/fluent-ui/table-input/table-aggregates.d.ts +16 -0
  902. package/dist/types/components/fluent-ui/table-input/udp-fluent-table-input.d.ts +0 -8
  903. package/dist/types/components/fluent-ui/tablist/udp-fluent-tablist.d.ts +3 -0
  904. package/dist/types/components/forms/udp-question-form/__forms-harness__/fixtures/table-domain.fixtures.d.ts +22 -0
  905. package/dist/types/components/forms/udp-question-form/builder/components/configure-question-drawer.d.ts +2 -1
  906. package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/typeSpecific/DomainTableConfig.d.ts +2 -0
  907. package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/types.d.ts +17 -0
  908. package/dist/types/components/forms/udp-question-form/builder/components/questionConfig/udp-question-config-fluent.d.ts +9 -0
  909. package/dist/types/components/forms/udp-question-form/builder/udp-question-form-builder.d.ts +1 -0
  910. package/dist/types/components/forms/udp-question-form/builder/utils/builder-api.d.ts +37 -0
  911. package/dist/types/components/forms/udp-question-form/core/field-properties-schemas/per-type/table.d.ts +5 -0
  912. package/dist/types/components/forms/udp-question-form/core/field-properties.d.ts +31 -1
  913. package/dist/types/components/forms/udp-question-form/core/validation/intrinsic.d.ts +15 -3
  914. package/dist/types/components/forms/udp-question-form/renderer/runtime/codecs.d.ts +12 -1
  915. package/dist/types/components/forms/udp-question-form/renderer/runtime/domain-table-snapshot.d.ts +20 -0
  916. package/dist/types/components/forms/udp-question-form/renderer/runtime/index.d.ts +1 -0
  917. package/dist/types/components/forms/udp-question-form/renderer/udp-question-form-renderer.d.ts +9 -0
  918. package/dist/types/components/forms/udp-question-form/renderer/ui/form-shell.d.ts +3 -0
  919. package/dist/types/components/forms/udp-question-form/renderer/ui/question-renderer.d.ts +7 -0
  920. package/dist/types/components/grid/new-grid/ag-grid-base.d.ts +3 -1
  921. package/dist/types/components/grid/new-grid/api-method-instance-grid.d.ts +9 -1
  922. package/dist/types/components/grid/new-grid/client-side-grid.d.ts +3 -1
  923. package/dist/types/components/grid/new-grid/datasources/searchMethodDatasource.d.ts +3 -0
  924. package/dist/types/components/grid/new-grid/gridFunctions/advancedSearch.d.ts +6 -3
  925. package/dist/types/components/grid/new-grid/gridFunctions/savedViews.d.ts +1 -0
  926. package/dist/types/components/grid/new-grid/gridFunctions/udpExport.d.ts +6 -0
  927. package/dist/types/components/grid/new-grid/helperFunctions/buildSearchObject.d.ts +13 -3
  928. package/dist/types/components/grid/new-grid/helperFunctions/domainRowsHelper.d.ts +60 -0
  929. package/dist/types/components/grid/new-grid/helperFunctions/extraFieldsHelper.d.ts +49 -0
  930. package/dist/types/components/grid/new-grid/helperFunctions/lookupHelper.d.ts +57 -0
  931. package/dist/types/components/grid/new-grid/helperFunctions/savedViewsHelpers.d.ts +2 -0
  932. package/dist/types/components/grid/new-grid/search-method-grid.d.ts +35 -1
  933. package/dist/types/components/grid/new-grid/server-side-grid.d.ts +27 -1
  934. package/dist/types/components/grid/renderers/actions-renderer.d.ts +15 -0
  935. package/dist/types/components/grid/renderers/input-renderer.d.ts +36 -0
  936. package/dist/types/components/import/udp-import-sheet/udp-import-sheet.d.ts +85 -0
  937. package/dist/types/components.d.ts +411 -12
  938. package/dist/types/icons/fluent-icons.d.ts +1 -1
  939. package/dist/types/index.d.ts +3 -0
  940. package/dist/types/store/execution-store.d.ts +4 -5
  941. package/dist/types/udp-utilities/api-config/configService.d.ts +0 -2
  942. package/dist/types/udp-utilities/extra-fields/extraFields.d.ts +105 -0
  943. package/dist/types/udp-utilities/extra-fields/index.d.ts +1 -0
  944. package/dist/types/udp-utilities/search/searchObject.d.ts +2 -0
  945. package/package.json +3 -3
  946. package/dist/cjs/lookupHelper-ClpMWN_g.js +0 -101
  947. package/dist/cjs/searchObjectHelper-DYpPEIzz.js +0 -110
  948. package/dist/cjs/slot-index-Dzl7Zum5.js +0 -77
  949. package/dist/cjs/udp-fluent-number-input.cjs.entry.js +0 -146
  950. package/dist/esm/lookupHelper-CSo9DNLr.js +0 -96
  951. package/dist/esm/searchObjectHelper-BjA6OHxg.js +0 -107
  952. package/dist/esm/slot-index-aYrr8BJl.js +0 -74
  953. package/dist/esm/udp-fluent-number-input.entry.js +0 -144
  954. package/dist/stencil-library/ag-grid-base_65.entry.js +0 -1
  955. package/dist/stencil-library/apiMethodInstance-BunReWfq.js +0 -1
  956. package/dist/stencil-library/apiUtils-Cq-WuEqc.js +0 -1
  957. package/dist/stencil-library/codecs-CI_fHfY1.js +0 -1
  958. package/dist/stencil-library/configService-D_9j963S.js +0 -1
  959. package/dist/stencil-library/configureUdpColumnMods-UWccWlH6.js +0 -1
  960. package/dist/stencil-library/createAzureMapsProviders-CLLCmr8f.js +0 -1
  961. package/dist/stencil-library/fluent-icons-pWFJyrRm.js +0 -1
  962. package/dist/stencil-library/load-icons-BHSNRRRA.js +0 -1
  963. package/dist/stencil-library/lookupHelper-CSo9DNLr.js +0 -1
  964. package/dist/stencil-library/searchObjectHelper-BjA6OHxg.js +0 -1
  965. package/dist/stencil-library/slot-index-aYrr8BJl.js +0 -1
  966. package/dist/stencil-library/status-renderer-BoY7sar9.js +0 -1
  967. package/dist/stencil-library/udp-detail-list_9.entry.js +0 -1
  968. package/dist/stencil-library/udp-fluent-number-input.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as e,p as o,H as l,t}from"./index2.js";import{F as i,a as n}from"./types.js";import a from"sortablejs";import{g as d,a as r}from"./getCachedAzureMapsProviders.js";import{d as s}from"./udp-accordion2.js";import{d as u}from"./udp-date-input2.js";import{d as p}from"./udp-date-range-selector2.js";import{d as c}from"./udp-date-time-input2.js";import{d as m}from"./udp-field2.js";import{d as f}from"./udp-flexbox2.js";import{d as b}from"./udp-fluent-avatar2.js";import{d as v}from"./udp-fluent-badge2.js";import{d as g}from"./udp-fluent-button2.js";import{d as y}from"./udp-fluent-card2.js";import{d as h}from"./udp-fluent-dropdown2.js";import{d as w}from"./udp-fluent-icon2.js";import{d as x}from"./udp-fluent-icon-button2.js";import{d as F}from"./udp-fluent-menu2.js";import{d as k}from"./udp-fluent-switch2.js";import{d as P}from"./udp-fluent-text-input2.js";import{d as O}from"./udp-popover2.js";import{d as C}from"./udp-spinner2.js";import{d as T}from"./udp-text2.js";import{d as q}from"./udp-textarea2.js";import{d as j}from"./udp-time-input2.js";import{d as S}from"./udp-tooltip2.js";const N=(e,o,l)=>{const t=`${e}-${(e=>String(e||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"column")(o)}`;let i=t,n=2;for(;l.has(i);)i=`${t}-${n}`,n+=1;return l.add(i),i},E=e=>{const o=new Set;for(const l of e||[])"string"==typeof(null==l?void 0:l.id)&&l.id.length>0&&o.add(l.id);return(e||[]).map(((e,l)=>Object.assign(Object.assign({},e),{uiKey:(null==e?void 0:e.uiKey)||`table-col-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,id:"string"==typeof(null==e?void 0:e.id)&&e.id.length>0?e.id:N(l+1,null==e?void 0:e.name,o)})))},I=[{fieldTypeId:i.Hidden,questionTypeName:"Hidden",icon:"eye-off",category:"Display",keywords:["hidden","metadata","system"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.SingleLineText,questionTypeName:"Single Line Text",icon:"text-font",category:"Text",keywords:["text","short","input","single line"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.MultiLineText,questionTypeName:"Multi Line Text",icon:"text-paragraph",category:"Text",keywords:["text","long","textarea","multiline","paragraph"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.Checkbox,questionTypeName:"Checkbox",icon:"checkbox-checked",category:"Choice",keywords:["checkbox","check","multi","options","list"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:i.RadioButton,questionTypeName:"Radio Button",icon:"radio-button",category:"Choice",keywords:["option","select","radio","single"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:i.DropdownSingleSelect,questionTypeName:"Single Select Dropdown",icon:"chevron-down",category:"Choice",keywords:["dropdown","select","single","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:i.DropdownMultipleSelect,questionTypeName:"Multiselect Dropdown",icon:"list",category:"Choice",keywords:["dropdown","select","multiple","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:i.ListMultiSelect,questionTypeName:"List",icon:"apps-list-detail",category:"Choice",keywords:["list","select","multiple","options"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:i.DateSelector,questionTypeName:"Date Selector",icon:"calendar",category:"Date & Time",keywords:["date","calendar","day"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.TimeSelector,questionTypeName:"Time Selector",icon:"clock",category:"Date & Time",keywords:["time","clock","hour"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.DateTimeSelector,questionTypeName:"DateTime Selector",icon:"calendar-clock",category:"Date & Time",keywords:["date","time","datetime","calendar"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.FileUpload,questionTypeName:"File Upload",icon:"cloud-upload",category:"File & Signature",keywords:["file","upload","attachment","document"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideDragAndDrop:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:i.YesNo,questionTypeName:"Yes/No",icon:"checkmark",category:"Choice",keywords:["yes","no","boolean","toggle","binary"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.Signature,questionTypeName:"Signature",icon:"document",category:"File & Signature",keywords:["signature","sign","capture"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,includeLocation:!1,readOnly:!1}},{fieldTypeId:i.Tally,questionTypeName:"Tally Display",icon:"apps-list",category:"Display",keywords:["tally","count","display","read-only","number"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,ignoreRequiredConfig:!0,readOnly:!1,tallyMode:"all",includeFields:[],excludeFields:[]}},{fieldTypeId:i.Number,questionTypeName:"Numeric",icon:"number",category:"Text",keywords:["number","numeric","integer","quantity"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.Paragraph,questionTypeName:"Paragraph",icon:"text-paragraph",category:"Text",keywords:["paragraph","static","display","content","richtext"],defaultFieldProperties:{paragraphText:""},questionTextOptional:!0},{fieldTypeId:i.ImageUpload,questionTypeName:"Image Upload",icon:"cloud-upload",category:"File & Signature",keywords:["image","photo","picture","upload"],defaultFieldProperties:{hideDragAndDrop:!1,allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:i.FormMetadataDisplay,questionTypeName:"Form Metadata Display",icon:"person",category:"Display",keywords:["metadata","submitter","owner","submission date","display"],defaultFieldProperties:{displayOwnerFullName:!0,displayOwnerEmail:!0,displaySubmissionDate:!0,allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:i.Location,questionTypeName:"Location",icon:"location",category:"Location",keywords:["address","location","map","geolocation","place"],defaultFieldProperties:{readOnly:!1}},{fieldTypeId:i.Table,questionTypeName:"Table",icon:"table",category:"Display",keywords:["table","columns","grid","rows","data"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1,columns:E([{name:"Column 1",type:"text",required:!1}])}}];function D(e){return I.find((o=>o.fieldTypeId===e))}function V(e){var o;if(e.some((e=>{var o,l;return!(null===(o=e.display)||void 0===o?void 0:o.trim())||!(null===(l=e.value)||void 0===l?void 0:l.trim())})))return"Every option needs both a display label and a value.";const l=new Set;for(const t of e){const e=(null!==(o=t.value)&&void 0!==o?o:"").trim();if(l.has(e))return"Each option must have a unique value.";l.add(e)}return null}function U(e,o){var l,t;const i=o(e.fieldTypeId);if(!(i&&i.questionTextOptional||(null===(l=e.questionText)||void 0===l?void 0:l.trim())))return"Question text is required.";if(null==i?void 0:i.isContainsOptionItems){const o=null!==(t=e.fieldProperties)&&void 0!==t?t:{};if(!o.lookupId){if(!Array.isArray(o.items)||0===o.items.length)return"This choice question needs at least one option, or a lookup source.";const e=V(o.items);if(e)return e}}if(null==i?void 0:i.validate){const o=i.validate(e);if(o)return o}return null}function L(e,o,l){const t=function(e){var o;return(null===(o=e.name)||void 0===o?void 0:o.trim())?{valid:!0}:{valid:!1,firstError:"Please enter a form name."}}(e);if(!t.valid)return t;const i=function(e){var o;if(e.length<1)return{valid:!1,firstError:"Please add at least one section to the form."};for(let l=0;l<e.length;l++){const t=e[l];if((null!==(o=null==t?void 0:t.questions)&&void 0!==o?o:[]).length<1)return{valid:!1,firstError:`Section ${(null==t?void 0:t.title)?`"${t.title}"`:`#${l+1}`} must contain at least one question.`}}return{valid:!0}}(o);return i.valid?function(e,o){var l,t,i;for(let n=0;n<e.length;n++){const a=e[n],d=null!==(l=a.questions)&&void 0!==l?l:[];for(let e=0;e<d.length;e++){const l=d[e],r=U(l,o);if(r)return{valid:!1,firstError:`Section ${(null===(t=a.title)||void 0===t?void 0:t.trim())?`"${a.title}"`:`#${n+1}`}, question ${(null===(i=l.questionText)||void 0===i?void 0:i.trim())?`"${l.questionText}"`:`#${e+1}`}: ${r}`}}}return{valid:!0}}(o,l):i}function A({name:o,label:l,description:t,disabled:i}){return e("udp-field",{name:o},e("udp-fluent-switch",{label:l,labelPosition:"after",hint:t,disabled:i}))}function M(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.paragraphText"},e("udp-textarea",{label:"Paragraph Text",disabled:o.isViewOnly,placeholder:"Enter the paragraph text here",resize:"vertical"})))}function $(e,o){var l,t,i;const n=null!==(t=null===(l=e.formValues)||void 0===l?void 0:l.fieldProperties)&&void 0!==t?t:null;return null!==(i=null==n?void 0:n[o])&&void 0!==i?i:e.fieldProperties[o]}function z(e,o=""){if("string"==typeof e)return e;if(e&&"object"==typeof e){const l=e.value;return null==l?o:String(l)}return o}function R(e,o){return l=>{l&&(l.__onSortEnd=(l,t)=>{o||e(l,t)},l.__sortableInit||(l.__sortableInit=!0,new a(l,{handle:".option-drag-handle",animation:150,ghostClass:"sortable-ghost",onEnd:e=>{var o;const{oldIndex:t,newIndex:i}=e;void 0!==t&&void 0!==i&&t!==i&&(e.to.insertBefore(e.item,t<i?e.to.children[t]:e.to.children[t+1]),null===(o=l.__onSortEnd)||void 0===o||o.call(l,t,i))}})))}}function B(o){var l,t,i;const{items:n,lookupId:a}=function(e){const o=$(e,"items"),l=$(e,"lookupId");return{items:Array.isArray(o)?o:[],lookupId:"string"==typeof l?l:""}}(o),d=null!==(l=o.lookupOptions)&&void 0!==l?l:[],r=0===n.length,s=!r,u=n[n.length-1],p=V(n.length>0&&!(null===(t=null==u?void 0:u.display)||void 0===t?void 0:t.trim())&&!(null===(i=null==u?void 0:u.value)||void 0===i?void 0:i.trim())?n.slice(0,-1):n),c=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.items",e)},m=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.lookupId",e)},f=(e,o,l)=>{var t,i;const a=n.slice(),d=null!==(t=a[e])&&void 0!==t?t:{};if("display"===o){const o=!(null===(i=d.value)||void 0===i?void 0:i.trim())||d.value===d.display;a[e]=Object.assign(Object.assign({},d),{display:l,value:o?l:d.value})}else a[e]=Object.assign(Object.assign({},d),{value:l});c(a)},b=()=>{c([...n,{display:"",value:""}])},v=(e,l)=>{var t,i;if("Enter"!==e.key||o.isViewOnly)return;if(l!==n.length-1||!(null===(i=null===(t=n[l])||void 0===t?void 0:t.display)||void 0===i?void 0:i.trim()))return;e.preventDefault(),b();const a=e.currentTarget.closest(".options-grid--choice");requestAnimationFrame((()=>{var e;const o=null==a?void 0:a.querySelectorAll(".option-row"),l=null==o?void 0:o[o.length-1];null===(e=null==l?void 0:l.querySelector("udp-fluent-text-input"))||void 0===e||e.focus()}))},g=R(((e,o)=>{if(e===o)return;const l=n.slice(),[t]=l.splice(e,1);l.splice(o,0,t),c(l)}),o.isViewOnly);return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},d.length>=1&&e("udp-fluent-switch",{label:"Use Lookup Options",labelPosition:"after",disabled:o.isViewOnly,checked:r,onValueChanged:()=>{o.isViewOnly||(r?(c([{display:"",value:""}]),m("")):(c([]),m("")))}}),r&&e("udp-fluent-dropdown",{label:"Lookup Source",placeholder:"Select a lookup",options:d,value:a,disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||m(z(e.detail))}}),s&&e("div",{class:"options-grid options-grid--choice"},e("div",{class:"options-grid-header"},e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}),e("span",{class:"options-grid-header-label"},"Display Text"),e("span",{class:"options-grid-header-label"},"Option Value"),e("span",null)),e("div",{ref:g},n.map(((l,t)=>e("div",{key:t,class:"option-row"},e("span",{class:"option-drag-handle","aria-label":"Drag to reorder"},e("udp-fluent-icon",{name:"drag",size:"sm"})),e("udp-fluent-text-input",{value:l.display||"",disabled:o.isViewOnly,placeholder:"Display text",autocomplete:"off",includeErrorPadding:!1,onKeyDown:e=>v(e,t),onValueChanged:e=>{o.isViewOnly||f(t,"display",e.detail)}}),e("udp-fluent-text-input",{value:l.value||"",disabled:o.isViewOnly,placeholder:"Value",autocomplete:"off",includeErrorPadding:!1,onKeyDown:e=>v(e,t),onValueChanged:e=>{o.isViewOnly||f(t,"value",e.detail)}}),e("div",{class:"option-row-actions"},e("udp-fluent-icon-button",{iconName:"delete",appearance:"subtle",size:"small",ariaLabel:"Remove option",disabled:o.isViewOnly||n.length<=1,onClick:()=>(e=>{c(n.filter(((o,l)=>l!==e)))})(t)})))))),!o.isViewOnly&&e("div",{class:"options-add-row"},e("udp-fluent-button",{appearance:"subtle",startIconName:"add",onClick:()=>b()},"Add Option")),p&&e("udp-text",{variant:"caption1",block:!0,style:{color:"var(--colorPaletteRedForeground1)"}},p)))}function H(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.allowMultiple"},e("udp-fluent-switch",{label:"Allow Multiple Items",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displayUploadTime"},e("udp-fluent-switch",{label:"Display Upload Time",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.hideDragAndDrop"},e("udp-fluent-switch",{label:"Hide Drag And Drop",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.hideButton"},e("udp-fluent-switch",{label:"Hide Button",labelPosition:"after",disabled:o.isViewOnly})))}function Y(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.includeLocation"},e("udp-fluent-switch",{label:"Include Location",labelPosition:"after",disabled:o.isViewOnly})))}function X(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.displayOwnerFullName"},e("udp-fluent-switch",{label:"Show Form Responder Full Name",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displayOwnerEmail"},e("udp-fluent-switch",{label:"Show Form Responder Email",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displaySubmissionDate"},e("udp-fluent-switch",{label:"Show Submission Date",labelPosition:"after",disabled:o.isViewOnly})))}function Q(o){const l=!!o.fieldProperties.showMap,t=d();return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.defaultLocation"},e("udp-fluent-location-input",{label:"Default Location",disabled:o.isViewOnly,showMap:!1,searchAddresses:null==t?void 0:t.searchAddresses,reverseGeocode:null==t?void 0:t.reverseGeocode})),e("udp-field",{name:"fieldProperties.showMap"},e("udp-fluent-switch",{label:"Show Map",labelPosition:"after",disabled:o.isViewOnly,onValueChanged:e=>{var l;if(!o.isViewOnly&&!e.detail){const e=null===(l=o.getForm)||void 0===l?void 0:l.call(o);null==e||e.change("fieldProperties.hideAddressSearch",!1)}}})),l&&e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.hideAddressSearch"},e("udp-fluent-switch",{label:"Hide Address Search Bar",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.mapZoom"},e("udp-fluent-text-input",{label:"Map Zoom",type:"number",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.projection"},e("udp-fluent-text-input",{label:"Projection",disabled:o.isViewOnly,placeholder:"Enter map projection here"})),e("udp-field",{name:"fieldProperties.projectionDefs"},e("udp-fluent-text-input",{label:"Projection Definition",disabled:o.isViewOnly,placeholder:"Enter map projection definition here"}))))}const K=[{value:"text",label:"Text"},{value:"number",label:"Number"}],W=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],Z=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}];function G(o){const l=function(e){const o=$(e,"columns");return Array.isArray(o)?o:[]}(o),t=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.columns",E(e))},i=(e,o,i)=>{var n;const a=l.slice(),d=null!==(n=a[e])&&void 0!==n?n:{name:"Column 1",type:"text",required:!1};a[e]=Object.assign(Object.assign({},d),{[o]:i}),t(a)},n=(e,o)=>{var i;const n=l.slice(),a=null!==(i=n[e])&&void 0!==i?i:{name:"Column 1",type:"text",required:!1};if(o){const l=Object.assign(Object.assign({},a),{aggregate:o});if("number"===(null==a?void 0:a.type)){const e=Number(a.aggregateDecimalPlaces);l.aggregateDecimalPlaces=Number.isInteger(e)&&e>=0?e:1}n[e]=l}else{const o=function(e,o){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(l[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(l[t[i]]=e[t[i]])}return l}(a,["aggregate","aggregateDecimalPlaces"]);n[e]=o}t(n)},a=R(((e,o)=>{if(e<0||o<0||e>=l.length||o>=l.length||e===o)return;const i=l.slice(),[n]=i.splice(e,1);i.splice(o,0,n),t(i)}),o.isViewOnly);return e("div",null,e("div",{class:"options-grid"},e("div",{class:"options-grid-header"},e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}),e("span",{class:"options-grid-header-label"},"Column Name"),e("span",{class:"options-grid-header-label"},"Type"),e("span",null)),e("div",{ref:a},l.map(((a,d)=>{const r="number"===(null==a?void 0:a.type)?"number":"text",s=!!(null==a?void 0:a.required),u="number"===r,p=u&&!!(null==a?void 0:a.aggregate),c=(null==a?void 0:a.aggregate)||"sum",m=Number.isInteger(Number(null==a?void 0:a.aggregateDecimalPlaces))?String(Math.min(3,Math.max(0,Number(a.aggregateDecimalPlaces)))):"1";return e("div",{class:"table-col-card"},e("div",{class:"table-col-main-row"},o.isViewOnly?e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}):e("span",{class:"option-drag-handle","aria-label":"Drag to reorder"},e("udp-fluent-icon",{name:"drag",size:"sm"})),e("udp-fluent-text-input",{value:(null==a?void 0:a.name)||"",disabled:o.isViewOnly,placeholder:"Column name",autocomplete:"off",includeErrorPadding:!1,onValueChanged:e=>{o.isViewOnly||i(d,"name",e.detail)}}),e("udp-fluent-dropdown",{value:r,options:K,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,includeErrorPadding:!1,onValueChanged:e=>{o.isViewOnly||((e,o)=>{var i;const n="number"===o?"number":"text",a=l.slice(),d=null!==(i=a[e])&&void 0!==i?i:{name:"Column 1",type:"text",required:!1},r=Object.assign(Object.assign({},d),{type:n});"number"!==n&&(delete r.aggregate,delete r.aggregateDecimalPlaces),a[e]=r,t(a)})(d,z(e.detail,"text"))}}),e("div",{class:"option-row-actions"},e("udp-fluent-icon-button",{iconName:"delete",appearance:"subtle",size:"small",ariaLabel:"Remove column",disabled:o.isViewOnly||l.length<=1,onClick:()=>{o.isViewOnly||(e=>{t(l.filter(((o,l)=>l!==e)))})(d)}}))),e("div",{class:"table-col-secondary"},e("udp-fluent-switch",{label:"Required",labelPosition:"after",disabled:o.isViewOnly,checked:s,onValueChanged:()=>{o.isViewOnly||i(d,"required",!s)}}),u&&e("udp-fluent-switch",{label:"Display Aggregate",labelPosition:"after",disabled:o.isViewOnly,checked:p,onValueChanged:()=>{o.isViewOnly||n(d,p?"":c)}})),u&&p&&e("udp-container-query-grid",{columns:{0:1,360:2},gaps:{0:"sm"},class:"table-col-secondary"},e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Aggregate Function",value:c,options:W,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||n(d,z(e.detail,"sum"))}})),e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Decimal Places",value:m,options:Z,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||i(d,"aggregateDecimalPlaces",z(e.detail,"1"))}}))))}))),!o.isViewOnly&&e("div",{class:"options-add-row"},e("udp-fluent-button",{appearance:"subtle",startIconName:"add",onClick:()=>(()=>{const e=l.length+1;t([...l,Object.assign(Object.assign({},{name:"Column 1",type:"text",required:!1}),{name:`Column ${e}`})])})()},"Add Column"))))}function J(o){const l=function(e){const o=$(e,"tallyMode");return"include"===o||"exclude"===o?o:"all"}(o),t=function(e){var o,l,t;const n=[],a=null!==(o=e.sections)&&void 0!==o?o:[];for(const o of a)for(const a of null!==(l=o.questions)&&void 0!==l?l:[])a.fieldTypeId===i.YesNo&&a.id!==e.currentQuestionId&&n.push({value:a.id,label:(null===(t=a.questionText)||void 0===t?void 0:t.trim())||"(untitled question)"});return n}(o),n=t.length>0;return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.tallyMode"},e("udp-fluent-radio-group",{label:"Which Yes/No questions feed this tally?",orientation:"vertical",items:[{value:"all",label:"All Yes/No questions"},{value:"include",label:"Only the selected Yes/No questions"},{value:"exclude",label:"All except the selected Yes/No questions"}],disabled:o.isViewOnly,onValueChanged:e=>{var l;if(o.isViewOnly)return;const t=null===(l=o.getForm)||void 0===l?void 0:l.call(o);if(!t)return;const i=e.detail;"all"===i?(t.change("fieldProperties.includeFields",[]),t.change("fieldProperties.excludeFields",[])):"include"===i?t.change("fieldProperties.excludeFields",[]):"exclude"===i&&t.change("fieldProperties.includeFields",[])}})),!n&&e("udp-text",{variant:"caption1"},"No other Yes/No questions exist in this form yet."),n&&"include"===l&&e("udp-field",{name:"fieldProperties.includeFields"},e("udp-fluent-dropdown",{label:"Include these Yes/No questions",multiple:!0,clearable:!0,options:t,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,placeholder:"Select questions to include..."})),n&&"exclude"===l&&e("udp-field",{name:"fieldProperties.excludeFields"},e("udp-fluent-dropdown",{label:"Exclude these Yes/No questions",multiple:!0,clearable:!0,options:t,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,placeholder:"Select questions to exclude..."})))}function _(e){var o;const l=null===(o=e.getForm)||void 0===o?void 0:o.call(e);return l?(e,o)=>l.change(e,o):null}function ee(o){const{question:l,ctx:t}=o,i=r(l.fieldTypeId).filter((e=>"required"!==e.ruleType));if(0===i.length)return e("udp-text",{variant:"caption1",color:"muted"},"No validation rules available for this field type.");const n=function(e,o){var l;const t=null!==(l=o.formValues)&&void 0!==l?l:{},i="boolean"==typeof t.required?t.required:e.required,n=t.fieldProperties&&"object"==typeof t.fieldProperties?t.fieldProperties:e.fieldProperties;return Object.assign(Object.assign({},e),{required:i,fieldProperties:n})}(l,t),a=e=>null!==e.readParams(n),d=i.filter(a),s=i.filter((e=>!a(e)));return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},d.map((o=>function(o,l){return e("udp-fluent-card",{key:o.ruleType,appearance:"outline",label:o.builder.label,subtitle:o.builder.description},!l.isViewOnly&&e("udp-fluent-icon-button",{slot:"header-action",iconName:"dismiss",appearance:"subtle",ariaLabel:`Remove ${o.builder.label} rule`,onClick:()=>{if(l.isViewOnly)return;const e=_(l);e&&o.builder.disable(e)}}),o.builder.params.length>0&&e("udp-flexbox",{display:"flex",direction:"column",gap:"sm"},o.builder.params.map((o=>function(o,l){const t={disabled:l,label:o.label};switch(o.type){case"number":return e("udp-field",{name:o.formPath},e("udp-fluent-text-input",Object.assign({},t,{type:"number",hint:o.helperText})));case"date":return e("udp-field",{name:o.formPath},e("udp-date-input",Object.assign({},t)));case"time":return e("udp-field",{name:o.formPath},e("udp-time-input",Object.assign({},t)));case"datetime":return e("udp-field",{name:o.formPath},e("udp-date-time-input",Object.assign({},t)));default:return e("udp-field",{name:o.formPath},e("udp-fluent-text-input",Object.assign({},t,{hint:o.helperText})))}}(o,l.isViewOnly)))))}(o,t))),function(o,l){if(l.isViewOnly||0===o.length)return null;const t=o.map((e=>({id:e.ruleType,text:e.builder.label,onClick:()=>{const o=_(l);o&&e.builder.enable(o)}})));return e("udp-fluent-menu",{appearance:"subtle",label:"Add validation rule",startIconName:"add",size:"small",items:t})}(s,t))}const oe=o(class extends l{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.followUpFormOptions=[],this.isFollowUpFormConfigOn=!1,this.isCommentingConfigOn=!1,this.form=null,this.unsubscribeFormValues=null,this.formValues={},this.getForm=()=>this.form}componentDidLoad(){this.el.dispatchEvent(new CustomEvent("fetchFormInstance",{bubbles:!0,composed:!0,detail:e=>{this.form=e,this.unsubscribeFormValues=e.subscribe((e=>{var o;this.formValues=null!==(o=e.values)&&void 0!==o?o:{}}),{values:!0})}}))}disconnectedCallback(){this.unsubscribeFormValues&&(this.unsubscribeFormValues(),this.unsubscribeFormValues=null),this.form=null}get question(){var e,o,l;return null===(l=null===(o=null===(e=this.sections)||void 0===e?void 0:e[this.sIndex])||void 0===o?void 0:o.questions)||void 0===l?void 0:l[this.qIndex]}buildTypeSpecificContext(){var e;const o=this.question;return{fieldProperties:null!==(e=o.fieldProperties)&&void 0!==e?e:{},formValues:this.formValues,getForm:this.getForm,isViewOnly:this.isViewOnly,lookupOptions:this.lookupOptions,sections:this.sections,currentQuestionId:o.id}}render(){const o=this.question;if(!o)return null;const l=D(o.fieldTypeId),t={question:o,isViewOnly:this.isViewOnly,formType:this.formType,isFollowUpFormConfigOn:this.isFollowUpFormConfigOn,isCommentingConfigOn:this.isCommentingConfigOn,isQuestionTextRequired:!(null==l?void 0:l.questionTextOptional),formValues:this.formValues,followUpFormOptions:this.followUpFormOptions},a=this.buildTypeSpecificContext(),d=function(e,o){switch(e){case i.Paragraph:return{label:"Paragraph Text",content:M(o)};case i.Checkbox:case i.RadioButton:case i.DropdownSingleSelect:case i.DropdownMultipleSelect:case i.ListMultiSelect:return{label:"List Options",content:B(o)};case i.FileUpload:case i.ImageUpload:return{label:"Upload options",content:H(o)};case i.Signature:return{label:"Signature options",content:Y(o)};case i.FormMetadataDisplay:return{label:"Display options",content:X(o)};case i.Location:return{label:"Location",content:Q(o)};case i.Table:return{label:"Table Columns",content:G(o)};case i.Tally:return{label:"Tally source",content:J(o)};default:return null}}(o.fieldTypeId,a);return e("div",{class:"config-drawer"},e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},function(o){const{isViewOnly:l,isQuestionTextRequired:t}=o;return e("udp-flexbox",{direction:"column",gap:"md"},e("udp-field",{name:"questionText"},e("udp-textarea",{label:"Question",disabled:l,required:t})),e("udp-field",{name:"helperText"},e("udp-textarea",{label:"Description",disabled:l})))}(t),d&&e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"type-specific",label:d.label,expanded:!0,block:!0}]},e("udp-flexbox",{slot:"type-specific-content",direction:"column",gap:"md"},d.content)),function(o){var l,t,i;const{question:a,isViewOnly:d,formType:r,isFollowUpFormConfigOn:s,isCommentingConfigOn:u,formValues:p,followUpFormOptions:c=[]}=o,m=null!==(l=a.fieldProperties)&&void 0!==l?l:{},f=null!==(t=null==p?void 0:p.fieldProperties)&&void 0!==t?t:null,b=!0===(null!==(i=null==f?void 0:f.allowFollowUpForms)&&void 0!==i?i:m.allowFollowUpForms),v=r===n.Standard&&s&&b;return e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"field-behavior",label:"Field Behavior",expanded:!0,block:!0}]},e("udp-flexbox",{slot:"field-behavior-content",direction:"column",gap:"md"},!(!0===m.ignoreRequiredConfig)&&A({name:"required",label:"Required",description:"End users must answer this question before submitting.",disabled:d}),A({name:"fieldProperties.readOnly",label:"Read Only",description:"Show the value but don't allow end users to edit it.",disabled:d}),u&&A({name:"fieldProperties.allowComments",label:"Allow Comments",description:"Let reviewers attach comments to this answer.",disabled:d}),r===n.Standard&&s&&A({name:"fieldProperties.allowFollowUpForms",label:"Allow Follow Up Forms",description:"Let end users launch another form linked to this question.",disabled:d}),v&&c.length>0&&e("udp-field",{name:"fieldProperties.followUpFormIds"},e("udp-fluent-dropdown",{label:"Limit to specific follow-up forms (optional)",hint:"Leave empty to allow any follow-up form.",multiple:!0,clearable:!0,disabled:d,options:c,optionLabel:"label",optionValue:"value",valueAs:"value",placeholder:"Any follow-up form"})),v&&0===c.length&&e("udp-text",{variant:"caption1"},'No follow-up form templates exist yet. Save another form with "Use as follow-up form template" enabled to populate this list.')))}(t),e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"validation",label:"Validation",expanded:!1,block:!0}]},e("udp-flexbox",{slot:"validation-content",direction:"column",gap:"md"},ee({question:o,ctx:a}))),function(o){const{isViewOnly:l}=o;return e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"advanced",label:"Advanced",expanded:!1,block:!0}]},e("udp-flexbox",{slot:"advanced-content",direction:"column",gap:"sm"},e("udp-field",{name:"referenceCode"},e("udp-fluent-text-input",{label:"Reference Code",disabled:l,placeholder:"Enter an optional reference code",maxLength:32}))))}(t)))}get el(){return this}static get style(){return":host{display:block;width:100%}.options-grid{display:flex;flex-direction:column;gap:var(--spacingVerticalS)}.options-drag-handle-spacer{width:24px;min-width:24px}.option-drag-handle{display:flex;align-items:center;justify-content:center;width:24px;min-width:24px;color:var(--colorNeutralForeground3);cursor:grab;user-select:none;-webkit-user-select:none}.option-drag-handle:active{cursor:grabbing}.sortable-ghost{opacity:0.4;border:2px dashed var(--colorBrandStroke1) !important;background-color:var(--colorBrandBackground2) !important}.sortable-chosen{background-color:var(--colorNeutralBackground1Hover)}.sortable-drag{opacity:0.9;box-shadow:var(--shadow16);cursor:grabbing !important}.options-grid-header{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center}.options-grid-header-label{font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground2)}.option-row{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center;padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalS) 0;background-color:var(--colorNeutralBackground2);border-radius:var(--borderRadiusMedium);margin-bottom:var(--spacingVerticalXS)}.options-grid--choice .options-grid-header,.options-grid--choice .option-row{grid-template-columns:24px 2fr 1fr 32px}.option-row-actions{display:flex;justify-content:center;min-width:32px}.options-add-row{margin-top:4px;padding:2px 0 0 0}.table-col-card{background-color:var(--colorNeutralBackground2);border-radius:var(--borderRadiusMedium);padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalS) 0;margin-bottom:var(--spacingVerticalXS)}.table-col-main-row{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center}.table-col-secondary{display:flex;flex-wrap:wrap;gap:var(--spacingHorizontalS);align-items:center;padding-top:var(--spacingVerticalXS);padding-left:calc(24px + var(--spacingHorizontalXS))}@container (max-width: 400px){.options-grid-header{display:none}.option-row{grid-template-columns:24px 1fr 1fr;gap:var(--spacingHorizontalS) 2px;padding:2px 0}.option-row-actions{grid-column:2 / -1;justify-content:flex-end}}"}},[1,"udp-question-config-fluent",{sections:[16],sIndex:[2,"s-index"],qIndex:[2,"q-index"],isViewOnly:[4,"is-view-only"],lookupOptions:[16],followUpFormOptions:[16],formType:[2,"form-type"],isFollowUpFormConfigOn:[4,"is-follow-up-form-config-on"],isCommentingConfigOn:[4,"is-commenting-config-on"],formValues:[32]}]);function le(){"undefined"!=typeof customElements&&["udp-question-config-fluent","udp-accordion","udp-date-input","udp-date-range-selector","udp-date-time-input","udp-field","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-dropdown","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-popover","udp-spinner","udp-text","udp-textarea","udp-time-input","udp-tooltip"].forEach((e=>{switch(e){case"udp-question-config-fluent":customElements.get(t(e))||customElements.define(t(e),oe);break;case"udp-accordion":customElements.get(t(e))||s();break;case"udp-date-input":customElements.get(t(e))||u();break;case"udp-date-range-selector":customElements.get(t(e))||p();break;case"udp-date-time-input":customElements.get(t(e))||c();break;case"udp-field":customElements.get(t(e))||m();break;case"udp-flexbox":customElements.get(t(e))||f();break;case"udp-fluent-avatar":customElements.get(t(e))||b();break;case"udp-fluent-badge":customElements.get(t(e))||v();break;case"udp-fluent-button":customElements.get(t(e))||g();break;case"udp-fluent-card":customElements.get(t(e))||y();break;case"udp-fluent-dropdown":customElements.get(t(e))||h();break;case"udp-fluent-icon":customElements.get(t(e))||w();break;case"udp-fluent-icon-button":customElements.get(t(e))||x();break;case"udp-fluent-menu":customElements.get(t(e))||F();break;case"udp-fluent-switch":customElements.get(t(e))||k();break;case"udp-fluent-text-input":customElements.get(t(e))||P();break;case"udp-popover":customElements.get(t(e))||O();break;case"udp-spinner":customElements.get(t(e))||C();break;case"udp-text":customElements.get(t(e))||T();break;case"udp-textarea":customElements.get(t(e))||q();break;case"udp-time-input":customElements.get(t(e))||j();break;case"udp-tooltip":customElements.get(t(e))||S()}}))}export{oe as U,U as a,le as d,I as f,D as g,L as v}
1
+ import{h as e,p as o,H as l,t}from"./index2.js";import{m as n}from"./makeApiCall.js";import{v as i,L as a}from"./apiUtils.js";import{g as d}from"./getCurrentApiCatalogId.js";import{m as r}from"./convertBackendTypeToAgGridType.js";import{p as s,g as u,a as p}from"./getCachedAzureMapsProviders.js";import{v4 as c}from"uuid";import{F as m,a as f}from"./types.js";import{C as b}from"./configService.js";import v from"sortablejs";import{L as g}from"./lookup.js";import{d as h}from"./udp-accordion2.js";import{d as y}from"./udp-date-input2.js";import{d as w}from"./udp-date-range-selector2.js";import{d as x}from"./udp-date-time-input2.js";import{d as k}from"./udp-field2.js";import{d as F}from"./udp-flexbox2.js";import{d as P}from"./udp-fluent-avatar2.js";import{d as C}from"./udp-fluent-badge2.js";import{d as T}from"./udp-fluent-button2.js";import{d as O}from"./udp-fluent-card2.js";import{d as q}from"./udp-fluent-dropdown2.js";import{d as j}from"./udp-fluent-icon2.js";import{d as S}from"./udp-fluent-icon-button2.js";import{d as I}from"./udp-fluent-menu2.js";import{d as N}from"./udp-fluent-switch2.js";import{d as V}from"./udp-fluent-text-input2.js";import{d as E}from"./udp-popover2.js";import{d as D}from"./udp-spinner2.js";import{d as L}from"./udp-text2.js";import{d as U}from"./udp-textarea2.js";import{d as A}from"./udp-time-input2.js";import{d as $}from"./udp-tooltip2.js";const M={background:{backgroundImage:null,backgroundColor:null},headerBackgroundColor:null,fontFamily:null,helperText:{variant:null,fontFamily:null},questionText:{variant:null,fontFamily:null},titleText:{variant:null,fontFamily:null},paragraphText:{variant:null,fontFamily:null}};function R({tenantId:e}){return{id:"",version:1,type:m.Standard,isPrivate:!0,isActive:!0,name:"",description:null,tenantId:e,styleOverrides:M,createdOn:(new Date).toISOString()}}function z(e){const{order:o,formId:l="",formVersion:t=1,title:n=`Section ${o}`}=e;return{id:c(),formId:l,formVersion:t,title:n,sectionText:null,order:o,sectionProperties:{},name:`section${o}`,referenceCode:null,questions:[]}}function B(e){const{fieldTypeId:o,fieldProperties:l,questionOrder:t,formSectionId:n,formId:i="",formVersion:a=1}=e;return{id:c(),formId:i,formVersion:a,formSectionId:n,name:`question${t}`,questionText:"",fieldTypeId:o,fieldProperties:l,helperText:null,questionOrder:t,required:!1,referenceCode:null}}function H({tenantId:e}){return{form:R({tenantId:e}),sections:[z({order:1})]}}const Y=(e,o,l)=>{const t=`${e}-${(e=>String(e||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"column")(o)}`;let n=t,i=2;for(;l.has(n);)n=`${t}-${i}`,i+=1;return l.add(n),n},X=e=>{const o=new Set;for(const l of e||[])"string"==typeof(null==l?void 0:l.id)&&l.id.length>0&&o.add(l.id);return(e||[]).map(((e,l)=>Object.assign(Object.assign({},e),{uiKey:(null==e?void 0:e.uiKey)||`table-col-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,id:"string"==typeof(null==e?void 0:e.id)&&e.id.length>0?e.id:Y(l+1,null==e?void 0:e.name,o)})))},G=[{fieldTypeId:f.Hidden,questionTypeName:"Hidden",icon:"eye-off",category:"Display",keywords:["hidden","metadata","system"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.SingleLineText,questionTypeName:"Single Line Text",icon:"text-font",category:"Text",keywords:["text","short","input","single line"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.MultiLineText,questionTypeName:"Multi Line Text",icon:"text-paragraph",category:"Text",keywords:["text","long","textarea","multiline","paragraph"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.Checkbox,questionTypeName:"Checkbox",icon:"checkbox-checked",category:"Choice",keywords:["checkbox","check","multi","options","list"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:f.RadioButton,questionTypeName:"Radio Button",icon:"radio-button",category:"Choice",keywords:["option","select","radio","single"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:f.DropdownSingleSelect,questionTypeName:"Single Select Dropdown",icon:"chevron-down",category:"Choice",keywords:["dropdown","select","single","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:f.DropdownMultipleSelect,questionTypeName:"Multiselect Dropdown",icon:"list",category:"Choice",keywords:["dropdown","select","multiple","pick"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:f.ListMultiSelect,questionTypeName:"List",icon:"apps-list-detail",category:"Choice",keywords:["list","select","multiple","options"],isContainsOptionItems:!0,defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,items:[{display:"",value:""}],readOnly:!1}},{fieldTypeId:f.DateSelector,questionTypeName:"Date Selector",icon:"calendar",category:"Date & Time",keywords:["date","calendar","day"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.TimeSelector,questionTypeName:"Time Selector",icon:"clock",category:"Date & Time",keywords:["time","clock","hour"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.DateTimeSelector,questionTypeName:"DateTime Selector",icon:"calendar-clock",category:"Date & Time",keywords:["date","time","datetime","calendar"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.FileUpload,questionTypeName:"File Upload",icon:"cloud-upload",category:"File & Signature",keywords:["file","upload","attachment","document"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideDragAndDrop:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:f.YesNo,questionTypeName:"Yes/No",icon:"checkmark",category:"Choice",keywords:["yes","no","boolean","toggle","binary"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.Signature,questionTypeName:"Signature",icon:"document",category:"File & Signature",keywords:["signature","sign","capture"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,includeLocation:!1,readOnly:!1}},{fieldTypeId:f.Tally,questionTypeName:"Tally Display",icon:"apps-list",category:"Display",keywords:["tally","count","display","read-only","number"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,ignoreRequiredConfig:!0,readOnly:!1,tallyMode:"all",includeFields:[],excludeFields:[]}},{fieldTypeId:f.Number,questionTypeName:"Numeric",icon:"number",category:"Text",keywords:["number","numeric","integer","quantity"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.Paragraph,questionTypeName:"Paragraph",icon:"text-paragraph",category:"Text",keywords:["paragraph","static","display","content","richtext"],defaultFieldProperties:{paragraphText:""},questionTextOptional:!0},{fieldTypeId:f.ImageUpload,questionTypeName:"Image Upload",icon:"cloud-upload",category:"File & Signature",keywords:["image","photo","picture","upload"],defaultFieldProperties:{hideDragAndDrop:!1,allowComments:!1,allowFollowUpForms:!1,displayUploadTime:!1,hideButton:!1,readOnly:!1,allowMultiple:!1}},{fieldTypeId:f.FormMetadataDisplay,questionTypeName:"Form Metadata Display",icon:"person",category:"Display",keywords:["metadata","submitter","owner","submission date","display"],defaultFieldProperties:{displayOwnerFullName:!0,displayOwnerEmail:!0,displaySubmissionDate:!0,allowComments:!1,allowFollowUpForms:!1,readOnly:!1}},{fieldTypeId:f.Location,questionTypeName:"Location",icon:"location",category:"Location",keywords:["address","location","map","geolocation","place"],defaultFieldProperties:{readOnly:!1}},{fieldTypeId:f.Table,questionTypeName:"Table",icon:"table",category:"Display",keywords:["table","columns","grid","rows","data"],defaultFieldProperties:{allowComments:!1,allowFollowUpForms:!1,readOnly:!1,columns:X([{name:"Column 1",type:"text",required:!1}])}}];function Q(e){return G.find((o=>o.fieldTypeId===e))}function K(e){var o;if(e.some((e=>{var o,l;return!(null===(o=e.display)||void 0===o?void 0:o.trim())||!(null===(l=e.value)||void 0===l?void 0:l.trim())})))return"Every option needs both a display label and a value.";const l=new Set;for(const t of e){const e=(null!==(o=t.value)&&void 0!==o?o:"").trim();if(l.has(e))return"Each option must have a unique value.";l.add(e)}return null}function J(e,o){var l,t;const n=o(e.fieldTypeId);if(!(n&&n.questionTextOptional||(null===(l=e.questionText)||void 0===l?void 0:l.trim())))return"Question text is required.";if(null==n?void 0:n.isContainsOptionItems){const o=null!==(t=e.fieldProperties)&&void 0!==t?t:{};if(!o.lookupId){if(!Array.isArray(o.items)||0===o.items.length)return"This choice question needs at least one option, or a lookup source.";const e=K(o.items);if(e)return e}}if(null==n?void 0:n.validate){const o=n.validate(e);if(o)return o}return null}function W(e,o,l){const t=function(e){var o;return(null===(o=e.name)||void 0===o?void 0:o.trim())?{valid:!0}:{valid:!1,firstError:"Please enter a form name."}}(e);if(!t.valid)return t;const n=function(e){var o;if(e.length<1)return{valid:!1,firstError:"Please add at least one section to the form."};for(let l=0;l<e.length;l++){const t=e[l];if((null!==(o=null==t?void 0:t.questions)&&void 0!==o?o:[]).length<1)return{valid:!1,firstError:`Section ${(null==t?void 0:t.title)?`"${t.title}"`:`#${l+1}`} must contain at least one question.`}}return{valid:!0}}(o);return n.valid?function(e,o){var l,t,n;for(let i=0;i<e.length;i++){const a=e[i],d=null!==(l=a.questions)&&void 0!==l?l:[];for(let e=0;e<d.length;e++){const l=d[e],r=J(l,o);if(r)return{valid:!1,firstError:`Section ${(null===(t=a.title)||void 0===t?void 0:t.trim())?`"${a.title}"`:`#${i+1}`}, question ${(null===(n=l.questionText)||void 0===n?void 0:n.trim())?`"${l.questionText}"`:`#${e+1}`}: ${r}`}}}return{valid:!0}}(o,l):n}class Z extends Error{constructor(e){super(`Form not found: ${e}`),this.formId=e,this.name="FormNotFoundError"}}async function _(e,o,l){var t,i;if(!e)return{loadedForm:H({tenantId:null!==(i=null===(t=null==l?void 0:l())||void 0===t?void 0:t.id)&&void 0!==i?i:""}),isNewForm:!0,isMostRecentFormVersion:!1};const a=await n("GET",`${b.productV1ApiUrl}/UdpForm/${e}/describe`);if(!(null==a?void 0:a.id))throw new Z(e);if(null==o||a.version===o)return{loadedForm:s(a),isNewForm:!1,isMostRecentFormVersion:!0};const d=await n("GET",`${b.productV1ApiUrl}/UdpForm/${e}/describe?formVersion=${o}`);if(!(null==d?void 0:d.id))throw new Z(e);return{loadedForm:s(d),isNewForm:!1,isMostRecentFormVersion:!1}}async function ee(){try{const e=await n("GET",`${b.productV1ApiUrl}/UdpLookup`);return Array.isArray(e)?e.map((e=>Object.assign(Object.assign({},e),{value:e.id,label:e.name}))):[]}catch(e){return[]}}async function oe(e){var o,l;try{const t=null===(l=null===(o=await i(d()))||void 0===o?void 0:o.unityBaseGetDescriptionMethod)||void 0===l?void 0:l.apiMethodId;if(!t)return[];const n=await a({data:{id:e}},t);return Array.isArray(n)?n:[]}catch(e){return[]}}async function le(e){try{const o=await n("GET",`${b.productV1ApiUrl}/UdpObjectInfo/domain/${encodeURIComponent(e)}`);return Array.isArray(null==o?void 0:o.objectFieldInfo)?o.objectFieldInfo:[]}catch(e){return[]}}function te(e){const o=r(null!=e?e:"");return"number"===o?"number":"boolean"===o?"boolean":"dateTimeString"===o||"dateString"===o?"datetime":"text"}async function ne(e,o){const l=function(e){let o=0;const l=function(e){var o;const l="string"==typeof e.id?e.id.trim():"",t={version:e.version,type:e.type,isPrivate:e.isPrivate,isActive:e.isActive,name:e.name,description:e.description,tenantId:e.tenantId,styleOverrides:JSON.stringify(null!==(o=e.styleOverrides)&&void 0!==o?o:{})};return l.length>0&&(t.id=l),t}(e.form),t=e.sections.map(((e,o)=>function(e,o){var l;return{id:e.id,title:e.title,sectionText:e.sectionText,order:o,sectionProperties:JSON.stringify(null!==(l=e.sectionProperties)&&void 0!==l?l:{}),name:`section${o}`,referenceCode:e.referenceCode}}(e,o+1))),n=e.sections.flatMap((e=>e.questions.map((l=>(o+=1,Object.assign(Object.assign({},function(e,o){var l;return{id:e.id,name:`question${o}`,questionText:e.questionText,fieldTypeId:e.fieldTypeId,fieldProperties:null!==(l=e.fieldProperties)&&void 0!==l?l:{},helperText:e.helperText,questionOrder:o,required:e.required,referenceCode:e.referenceCode}}(l,o)),{formSectionId:e.id}))))));return Object.assign(Object.assign({},l),{udpFormUdpFormSection:t,formQuestions:n})}(e),t="string"==typeof l.id?l.id.trim():"",i=o&&t.length>0,a=i?`${b.productV1ApiUrl}/UdpForm/${t}/full`:`${b.productV1ApiUrl}/UdpForm/full`,d=i?"PUT":"POST",r=await n(d,a,l);if(!(null==r?void 0:r.id)||null==r.version)throw new Error(`Invalid form response: ${JSON.stringify(r)}`);return{formId:r.id,formVersion:r.version,loadedForm:s(r)}}function ie({name:o,label:l,description:t,disabled:n}){return e("udp-field",{name:o},e("udp-fluent-switch",{label:l,labelPosition:"after",hint:t,disabled:n}))}function ae(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.paragraphText"},e("udp-textarea",{label:"Paragraph Text",disabled:o.isViewOnly,placeholder:"Enter the paragraph text here",resize:"vertical"})))}function de(e,o){var l,t,n;const i=null!==(t=null===(l=e.formValues)||void 0===l?void 0:l.fieldProperties)&&void 0!==t?t:null;return null!==(n=null==i?void 0:i[o])&&void 0!==n?n:e.fieldProperties[o]}function re(e,o=""){if("string"==typeof e)return e;if(e&&"object"==typeof e){const l=e.value;return null==l?o:String(l)}return o}function se(e,o){return l=>{l&&(l.__onSortEnd=(l,t)=>{o||e(l,t)},l.__sortableInit||(l.__sortableInit=!0,new v(l,{handle:".option-drag-handle",animation:150,ghostClass:"sortable-ghost",onEnd:e=>{var o;const{oldIndex:t,newIndex:n}=e;void 0!==t&&void 0!==n&&t!==n&&(e.to.insertBefore(e.item,t<n?e.to.children[t]:e.to.children[t+1]),null===(o=l.__onSortEnd)||void 0===o||o.call(l,t,n))}})))}}function ue(o){var l,t,n;const{items:i,lookupId:a}=function(e){const o=de(e,"items"),l=de(e,"lookupId");return{items:Array.isArray(o)?o:[],lookupId:"string"==typeof l?l:""}}(o),d=null!==(l=o.lookupOptions)&&void 0!==l?l:[],r=0===i.length,s=!r,u=i[i.length-1],p=K(i.length>0&&!(null===(t=null==u?void 0:u.display)||void 0===t?void 0:t.trim())&&!(null===(n=null==u?void 0:u.value)||void 0===n?void 0:n.trim())?i.slice(0,-1):i),c=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.items",e)},m=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.lookupId",e)},f=(e,o,l)=>{var t,n;const a=i.slice(),d=null!==(t=a[e])&&void 0!==t?t:{};if("display"===o){const o=!(null===(n=d.value)||void 0===n?void 0:n.trim())||d.value===d.display;a[e]=Object.assign(Object.assign({},d),{display:l,value:o?l:d.value})}else a[e]=Object.assign(Object.assign({},d),{value:l});c(a)},b=()=>{c([...i,{display:"",value:""}])},v=(e,l)=>{var t,n;if("Enter"!==e.key||o.isViewOnly)return;if(l!==i.length-1||!(null===(n=null===(t=i[l])||void 0===t?void 0:t.display)||void 0===n?void 0:n.trim()))return;e.preventDefault(),b();const a=e.currentTarget.closest(".options-grid--choice");requestAnimationFrame((()=>{var e;const o=null==a?void 0:a.querySelectorAll(".option-row"),l=null==o?void 0:o[o.length-1];null===(e=null==l?void 0:l.querySelector("udp-fluent-text-input"))||void 0===e||e.focus()}))},g=se(((e,o)=>{if(e===o)return;const l=i.slice(),[t]=l.splice(e,1);l.splice(o,0,t),c(l)}),o.isViewOnly);return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},d.length>=1&&e("udp-fluent-switch",{label:"Use Lookup Options",labelPosition:"after",disabled:o.isViewOnly,checked:r,onValueChanged:()=>{o.isViewOnly||(r?(c([{display:"",value:""}]),m("")):(c([]),m("")))}}),r&&e("udp-fluent-dropdown",{label:"Lookup Source",placeholder:"Select a lookup",options:d,value:a,disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||m(re(e.detail))}}),s&&e("div",{class:"options-grid options-grid--choice"},e("div",{class:"options-grid-header"},e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}),e("span",{class:"options-grid-header-label"},"Display Text"),e("span",{class:"options-grid-header-label"},"Option Value"),e("span",null)),e("div",{ref:g},i.map(((l,t)=>e("div",{key:t,class:"option-row"},e("span",{class:"option-drag-handle","aria-label":"Drag to reorder"},e("udp-fluent-icon",{name:"drag",size:"sm"})),e("udp-fluent-text-input",{value:l.display||"",disabled:o.isViewOnly,placeholder:"Display text",autocomplete:"off",includeErrorPadding:!1,onKeyDown:e=>v(e,t),onValueChanged:e=>{o.isViewOnly||f(t,"display",e.detail)}}),e("udp-fluent-text-input",{value:l.value||"",disabled:o.isViewOnly,placeholder:"Value",autocomplete:"off",includeErrorPadding:!1,onKeyDown:e=>v(e,t),onValueChanged:e=>{o.isViewOnly||f(t,"value",e.detail)}}),e("div",{class:"option-row-actions"},e("udp-fluent-icon-button",{iconName:"delete",appearance:"subtle",size:"small",ariaLabel:"Remove option",disabled:o.isViewOnly||i.length<=1,onClick:()=>(e=>{c(i.filter(((o,l)=>l!==e)))})(t)})))))),!o.isViewOnly&&e("div",{class:"options-add-row"},e("udp-fluent-button",{appearance:"subtle",startIconName:"add",onClick:()=>b()},"Add Option")),p&&e("udp-text",{variant:"caption1",block:!0,style:{color:"var(--colorPaletteRedForeground1)"}},p)))}function pe(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.allowMultiple"},e("udp-fluent-switch",{label:"Allow Multiple Items",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displayUploadTime"},e("udp-fluent-switch",{label:"Display Upload Time",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.hideDragAndDrop"},e("udp-fluent-switch",{label:"Hide Drag And Drop",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.hideButton"},e("udp-fluent-switch",{label:"Hide Button",labelPosition:"after",disabled:o.isViewOnly})))}function ce(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.includeLocation"},e("udp-fluent-switch",{label:"Include Location",labelPosition:"after",disabled:o.isViewOnly})))}function me(o){return e("udp-flexbox",{display:"flex",direction:"column",gap:"none"},e("udp-field",{name:"fieldProperties.displayOwnerFullName"},e("udp-fluent-switch",{label:"Show Form Responder Full Name",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displayOwnerEmail"},e("udp-fluent-switch",{label:"Show Form Responder Email",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.displaySubmissionDate"},e("udp-fluent-switch",{label:"Show Submission Date",labelPosition:"after",disabled:o.isViewOnly})))}function fe(o){const l=!!o.fieldProperties.showMap,t=u();return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.defaultLocation"},e("udp-fluent-location-input",{label:"Default Location",disabled:o.isViewOnly,showMap:!1,searchAddresses:null==t?void 0:t.searchAddresses,reverseGeocode:null==t?void 0:t.reverseGeocode})),e("udp-field",{name:"fieldProperties.showMap"},e("udp-fluent-switch",{label:"Show Map",labelPosition:"after",disabled:o.isViewOnly,onValueChanged:e=>{var l;if(!o.isViewOnly&&!e.detail){const e=null===(l=o.getForm)||void 0===l?void 0:l.call(o);null==e||e.change("fieldProperties.hideAddressSearch",!1)}}})),l&&e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.hideAddressSearch"},e("udp-fluent-switch",{label:"Hide Address Search Bar",labelPosition:"after",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.mapZoom"},e("udp-fluent-text-input",{label:"Map Zoom",type:"number",disabled:o.isViewOnly})),e("udp-field",{name:"fieldProperties.projection"},e("udp-fluent-text-input",{label:"Projection",disabled:o.isViewOnly,placeholder:"Enter map projection here"})),e("udp-field",{name:"fieldProperties.projectionDefs"},e("udp-fluent-text-input",{label:"Projection Definition",disabled:o.isViewOnly,placeholder:"Enter map projection definition here"}))))}const be=[{value:"text",label:"Text"},{value:"number",label:"Number"},{value:"boolean",label:"Boolean"},{value:"date",label:"Date"},{value:"datetime",label:"Date time"}],ve=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],ge=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}];const he=[{value:"text",label:"Text"},{value:"number",label:"Number"}],ye=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],we=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}];function xe(o){const l=function(e){const o=de(e,"columns");return Array.isArray(o)?o:[]}(o),t=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.columns",X(e))},n=(e,o,n)=>{var i;const a=l.slice(),d=null!==(i=a[e])&&void 0!==i?i:{name:"Column 1",type:"text",required:!1};a[e]=Object.assign(Object.assign({},d),{[o]:n}),t(a)},i=(e,o)=>{var n;const i=l.slice(),a=null!==(n=i[e])&&void 0!==n?n:{name:"Column 1",type:"text",required:!1};if(o){const l=Object.assign(Object.assign({},a),{aggregate:o});if("number"===(null==a?void 0:a.type)){const e=Number(a.aggregateDecimalPlaces);l.aggregateDecimalPlaces=Number.isInteger(e)&&e>=0?e:1}i[e]=l}else{const o=function(e,o){var l={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(l[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(t=Object.getOwnPropertySymbols(e);n<t.length;n++)o.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(l[t[n]]=e[t[n]])}return l}(a,["aggregate","aggregateDecimalPlaces"]);i[e]=o}t(i)},a=se(((e,o)=>{if(e<0||o<0||e>=l.length||o>=l.length||e===o)return;const n=l.slice(),[i]=n.splice(e,1);n.splice(o,0,i),t(n)}),o.isViewOnly);return e("div",null,e("div",{class:"options-grid"},e("div",{class:"options-grid-header"},e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}),e("span",{class:"options-grid-header-label"},"Column Name"),e("span",{class:"options-grid-header-label"},"Type"),e("span",null)),e("div",{ref:a},l.map(((a,d)=>{const r="number"===(null==a?void 0:a.type)?"number":"text",s=!!(null==a?void 0:a.required),u="number"===r,p=u&&!!(null==a?void 0:a.aggregate),c=(null==a?void 0:a.aggregate)||"sum",m=Number.isInteger(Number(null==a?void 0:a.aggregateDecimalPlaces))?String(Math.min(3,Math.max(0,Number(a.aggregateDecimalPlaces)))):"1";return e("div",{class:"table-col-card"},e("div",{class:"table-col-main-row"},o.isViewOnly?e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}):e("span",{class:"option-drag-handle","aria-label":"Drag to reorder"},e("udp-fluent-icon",{name:"drag",size:"sm"})),e("udp-fluent-text-input",{value:(null==a?void 0:a.name)||"",disabled:o.isViewOnly,placeholder:"Column name",autocomplete:"off",includeErrorPadding:!1,onValueChanged:e=>{o.isViewOnly||n(d,"name",e.detail)}}),e("udp-fluent-dropdown",{value:r,options:he,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,includeErrorPadding:!1,onValueChanged:e=>{o.isViewOnly||((e,o)=>{var n;const i="number"===o?"number":"text",a=l.slice(),d=null!==(n=a[e])&&void 0!==n?n:{name:"Column 1",type:"text",required:!1},r=Object.assign(Object.assign({},d),{type:i});"number"!==i&&(delete r.aggregate,delete r.aggregateDecimalPlaces),a[e]=r,t(a)})(d,re(e.detail,"text"))}}),e("div",{class:"option-row-actions"},e("udp-fluent-icon-button",{iconName:"delete",appearance:"subtle",size:"small",ariaLabel:"Remove column",disabled:o.isViewOnly||l.length<=1,onClick:()=>{o.isViewOnly||(e=>{t(l.filter(((o,l)=>l!==e)))})(d)}}))),e("div",{class:"table-col-secondary"},e("udp-fluent-switch",{label:"Required",labelPosition:"after",disabled:o.isViewOnly,checked:s,onValueChanged:()=>{o.isViewOnly||n(d,"required",!s)}}),u&&e("udp-fluent-switch",{label:"Display Aggregate",labelPosition:"after",disabled:o.isViewOnly,checked:p,onValueChanged:()=>{o.isViewOnly||i(d,p?"":c)}})),u&&p&&e("udp-container-query-grid",{columns:{0:1,360:2},gaps:{0:"sm"},class:"table-col-secondary"},e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Aggregate Function",value:c,options:ye,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||i(d,re(e.detail,"sum"))}})),e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Decimal Places",value:m,options:we,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||n(d,"aggregateDecimalPlaces",re(e.detail,"1"))}}))))}))),!o.isViewOnly&&e("div",{class:"options-add-row"},e("udp-fluent-button",{appearance:"subtle",startIconName:"add",onClick:()=>(()=>{const e=l.length+1;t([...l,Object.assign(Object.assign({},{name:"Column 1",type:"text",required:!1}),{name:`Column ${e}`})])})()},"Add Column"))))}const ke=[{value:"custom",label:"Simple Table"},{value:"domain",label:"Advanced Table"}];function Fe(o){const l="domain"===de(o,"dataSource")?"domain":"custom";return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-fluent-radio-group",{label:"Table Type",items:ke,value:l,disabled:o.isViewOnly,includeErrorPadding:!1,onValueChanged:e=>{var t;if(o.isViewOnly)return;const n=null===(t=o.getForm)||void 0===t?void 0:t.call(o),i="domain"===e.detail?"domain":"custom";n&&i!==l&&("domain"===i?(n.change("fieldProperties.dataSource","domain"),n.change("fieldProperties.domainLookupId",""),n.change("fieldProperties.columns",[])):(n.change("fieldProperties.dataSource",""),n.change("fieldProperties.domainLookupId",""),n.change("fieldProperties.allowAddRows",void 0),n.change("fieldProperties.columns",X([{name:"Column 1",type:"text",required:!1}]))))}}),"domain"===l?function(o){var l,t,n,i,a,d,r,s;const{domainLookupId:u,columns:p}=function(e){const o=de(e,"domainLookupId"),l=de(e,"columns");return{domainLookupId:"string"==typeof o?o:"",columns:Array.isArray(l)?l:[]}}(o),c=null!==(l=o.lookupOptions)&&void 0!==l?l:[],m=c.filter((e=>e.typeId===g.Domain)),f=c.filter((e=>e.typeId===g.Domain||e.typeId===g.Lookup)),b=null===(t=o.domainSchemaByLookupId)||void 0===t?void 0:t[u],v=!!(null===(n=o.domainSchemaLoading)||void 0===n?void 0:n[u]);!u||b||v||null===(i=o.fetchDomainSchema)||void 0===i||i.call(o,u);const h=e=>{var l,t;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.columns",e)};if(b&&!o.isViewOnly){const e=new Map(b.map((e=>[e.key.toLowerCase(),e.type]))),o=p.map((o=>{const l=e.get(o.key.toLowerCase());return l&&"text"===o.type&&"text"!==l&&"lookup"!==l?Object.assign(Object.assign({},o),{type:l}):o}));o.some(((e,o)=>e!==p[o]))&&h(o)}const y=e=>p.find((o=>o.key===e)),w=(e,o)=>{var l,t,n,i;const a=y(e.key);return a&&!o?a:Object.assign({key:e.key,displayName:null==a?void 0:a.displayName,type:a&&"text"!==a.type?a.type:e.type,lookupId:null!==(l=null==a?void 0:a.lookupId)&&void 0!==l?l:e.lookupId,isKey:e.isKey,custom:null==a?void 0:a.custom,show:null!==(t=null==a?void 0:a.show)&&void 0!==t&&t,editable:null!==(n=null==a?void 0:a.editable)&&void 0!==n&&n,required:null!==(i=null==a?void 0:a.required)&&void 0!==i&&i,locked:null==a?void 0:a.locked,aggregate:null==a?void 0:a.aggregate,aggregateDecimalPlaces:null==a?void 0:a.aggregateDecimalPlaces},o)},x=null===(d=null===(a=m.find((e=>e.value===u)))||void 0===a?void 0:a.valueName)||void 0===d?void 0:d.toLowerCase();if(b&&x&&!o.isViewOnly&&!p.some((e=>!e.custom))){const e=b.find((e=>e.key.toLowerCase()===x&&!e.isKey));e&&h([w(e,{show:!0}),...p])}const k=new Map((null!=b?b:[]).map((e=>[e.key,e]))),F=[...p.map((e=>{var o;return e.custom?{key:e.key,displayName:null!==(o=e.displayName)&&void 0!==o?o:"",type:e.type,lookupId:e.lookupId}:k.get(e.key)})).filter((e=>!!e)),...(null!=b?b:[]).filter((e=>!y(e.key)))],P=p.filter((e=>!e.custom&&!k.has(e.key))),C=(e,o,l)=>{h([...e.map((e=>e.key===o?w(e,l):w(e))),...P])},T=(e,o)=>{C(F,e.key,o)},O=e=>new Set([...(null!=b?b:[]).map((e=>e.key)),...p.map((e=>e.key))].filter((o=>o!==e)).map((e=>e.toLowerCase()))),q=(e,o)=>e?e.startsWith("_")?'Column names can\'t start with "_".':e.includes(".")?'Column names can\'t contain ".".':O(o).has(e.toLowerCase())?"A column with this name already exists.":null:"Column name is required.",j=null!==(s=null===(r=o.formValues)||void 0===r?void 0:r.columnNameDrafts)&&void 0!==s?s:{},S=(e,l)=>{var t,n;const i=Object.assign({},j);void 0===l?delete i[e]:i[e]=l,null===(n=null===(t=o.getForm)||void 0===t?void 0:t.call(o))||void 0===n||n.change("columnNameDrafts",i)},I=se(((e,o)=>{if(e===o||o<0||o>=F.length)return;const l=F.slice(),[t]=l.splice(e,1);l.splice(o,0,t),C(l)}),o.isViewOnly);return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.allowAddRows"},e("udp-fluent-switch",{label:"Allow Adding Rows",labelPosition:"after",hint:"Let users add their own rows and type in every visible column.",disabled:o.isViewOnly})),e("udp-fluent-dropdown",{label:"Lookup",placeholder:"Select a lookup",options:m,value:u,disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||(e=>{var l,t,n,i,a;null===(t=null===(l=o.getForm)||void 0===l?void 0:l.call(o))||void 0===t||t.change("fieldProperties.domainLookupId",e),null===(i=null===(n=o.getForm)||void 0===n?void 0:n.call(o))||void 0===i||i.change("fieldProperties.columns",p.filter((e=>e.custom))),e&&(null===(a=o.fetchDomainSchema)||void 0===a||a.call(o,e))})(re(e.detail))}}),u&&v&&e("udp-flexbox",{display:"flex",direction:"row",gap:"sm",align:"center"},e("udp-spinner",{size:"tiny"}),e("udp-text",{variant:"caption1"},"Loading domain columns…")),u&&!v&&b&&0===F.length&&e("udp-text",{variant:"caption1"},"This domain has no describable columns."),u&&!v&&F.length>0&&e("udp-flexbox",{display:"flex",direction:"column",gap:"xs"},e("div",{class:"domain-table-col-row"},e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}),e("span",{class:"options-grid-header-label"},"Column Name"),e("span",{class:"options-grid-header-label"},"Visible"),e("span",{class:"options-grid-header-label"},"Editable"),e("span",{class:"options-grid-header-label"},"Locked"),e("span",{class:"options-grid-header-label"},"Display Name"),e("span",{class:"options-grid-header-label"},"Value Lookup"),e("span",{"aria-hidden":"true"})),e("div",{ref:I},F.map((l=>{var t,n,i,a,d;const r=y(l.key),s=!!l.isKey,u=!!(null==r?void 0:r.custom),p=!!(null==r?void 0:r.show),c=!!(null==r?void 0:r.editable),m=!!(null==r?void 0:r.required),b=s||!!(null==r?void 0:r.locked),v=null!==(t=null==r?void 0:r.type)&&void 0!==t?t:l.type,g=!s&&"number"===v,h=g&&!!(null==r?void 0:r.aggregate),w=(null==r?void 0:r.aggregate)||"sum",x=Number.isInteger(Number(null==r?void 0:r.aggregateDecimalPlaces))?String(Math.min(3,Math.max(0,Number(null==r?void 0:r.aggregateDecimalPlaces)))):"1";return e("div",{class:"table-col-card"},e("div",{class:"domain-table-col-row"},o.isViewOnly?e("span",{class:"options-drag-handle-spacer","aria-hidden":"true"}):e("span",{class:"option-drag-handle","aria-label":"Drag to reorder"},e("udp-fluent-icon",{name:"drag",size:"sm"})),u?e("udp-fluent-text-input",{"aria-label":"Column name",value:null!==(n=j[l.key])&&void 0!==n?n:l.key,error:l.key in j&&null!==(i=q(j[l.key].trim(),l.key))&&void 0!==i?i:void 0,disabled:o.isViewOnly,autocomplete:"off",includeErrorPadding:!1,onValueChanged:e=>{if(o.isViewOnly)return;const t=e.detail.trim();q(t,l.key)?S(l.key,e.detail):(l.key in j&&S(l.key),t!==l.key&&T(l,{key:t}))}}):e("udp-text",{variant:"body1",truncate:!0,title:l.key},l.key),e("udp-fluent-checkbox",{"aria-label":`${l.key} visible`,includeErrorPadding:!1,disabled:o.isViewOnly||u,checked:p,onValueChanged:()=>{o.isViewOnly||T(l,p?{show:!1,editable:!1,required:!1}:{show:!0})}}),e("udp-fluent-checkbox",{"aria-label":`${l.key} editable`,includeErrorPadding:!1,disabled:o.isViewOnly||!p||s||u,checked:c,onValueChanged:()=>{o.isViewOnly||T(l,{editable:!c})}}),e("udp-fluent-checkbox",{"aria-label":`${l.key} locked`,includeErrorPadding:!1,disabled:o.isViewOnly||!p||s,checked:b,onValueChanged:()=>{o.isViewOnly||T(l,{locked:!b})}}),e("udp-fluent-text-input",{value:null!==(a=null==r?void 0:r.displayName)&&void 0!==a?a:"",disabled:o.isViewOnly||!p,placeholder:l.key,autocomplete:"off",includeErrorPadding:!1,onValueChanged:e=>{o.isViewOnly||T(l,{displayName:e.detail.trim()||void 0})}}),e("udp-fluent-dropdown",{"aria-label":`${l.key} value lookup`,options:f,valueAs:"value",value:null!==(d=null==r?void 0:r.lookupId)&&void 0!==d?d:"",placeholder:"None",clearable:!0,includeErrorPadding:!1,disabled:o.isViewOnly||!p,onValueChanged:e=>{if(o.isViewOnly)return;const t=re(e.detail);T(l,t?{type:"lookup",lookupId:t,aggregate:void 0,aggregateDecimalPlaces:void 0}:{type:"lookup"===l.type?"text":l.type,lookupId:void 0})}}),u?e("udp-fluent-icon-button",{iconName:"delete",appearance:"subtle",size:"small",ariaLabel:"Remove column",disabled:o.isViewOnly,onClick:()=>{var e;o.isViewOnly||((e=l.key)in j&&S(e),C(F.filter((o=>o.key!==e))))}}):e("span",{"aria-hidden":"true"})),p&&(c||g)&&e("div",{class:"table-col-secondary domain-table-col-settings"},c&&u&&"lookup"!==v&&e("udp-fluent-dropdown",{class:"domain-table-col-type",label:"Type",value:v,options:be,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,includeErrorPadding:!1,onValueChanged:e=>{if(o.isViewOnly)return;const t=re(e.detail,"text"),n=be.some((e=>e.value===t))?t:"text";T(l,"number"===n?{type:n}:{type:n,aggregate:void 0,aggregateDecimalPlaces:void 0})}}),c&&e("udp-fluent-switch",{label:"Required",labelPosition:"after",includeErrorPadding:!1,disabled:o.isViewOnly,checked:m,onValueChanged:()=>{o.isViewOnly||T(l,{required:!m})}}),g&&e("udp-fluent-switch",{label:"Display Aggregate",labelPosition:"after",includeErrorPadding:!1,disabled:o.isViewOnly,checked:h,onValueChanged:()=>{o.isViewOnly||T(l,h?{aggregate:void 0,aggregateDecimalPlaces:void 0}:{aggregate:"sum",aggregateDecimalPlaces:1})}})),p&&g&&h&&e("udp-container-query-grid",{columns:{0:1,360:2},gaps:{0:"sm"},class:"table-col-secondary"},e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Aggregate Function",value:w,options:ve,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||T(l,{aggregate:re(e.detail,"sum")})}})),e("udp-container-query-grid-item",null,e("udp-fluent-dropdown",{label:"Decimal Places",value:x,options:ge,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,required:!0,onValueChanged:e=>{o.isViewOnly||T(l,{aggregateDecimalPlaces:Number(re(e.detail,"1"))})}}))))})))),u&&!v&&!o.isViewOnly&&e("div",{class:"options-add-row"},e("udp-fluent-button",{appearance:"subtle",startIconName:"add",onClick:()=>(()=>{const e=(e=>{let o=1;for(;e.has(`customcolumn${o}`);)o++;return o})(O());h([...F.map((e=>w(e))),{key:`customColumn${e}`,displayName:`Column ${e}`,type:"text",custom:!0,show:!0,editable:!0,required:!1},...P])})()},"Add Column")))}(o):xe(o))}function Pe(o){const l=function(e){const o=de(e,"tallyMode");return"include"===o||"exclude"===o?o:"all"}(o),t=function(e){var o,l,t;const n=[],i=null!==(o=e.sections)&&void 0!==o?o:[];for(const o of i)for(const i of null!==(l=o.questions)&&void 0!==l?l:[])i.fieldTypeId===f.YesNo&&i.id!==e.currentQuestionId&&n.push({value:i.id,label:(null===(t=i.questionText)||void 0===t?void 0:t.trim())||"(untitled question)"});return n}(o),n=t.length>0;return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},e("udp-field",{name:"fieldProperties.tallyMode"},e("udp-fluent-radio-group",{label:"Which Yes/No questions feed this tally?",orientation:"vertical",items:[{value:"all",label:"All Yes/No questions"},{value:"include",label:"Only the selected Yes/No questions"},{value:"exclude",label:"All except the selected Yes/No questions"}],disabled:o.isViewOnly,onValueChanged:e=>{var l;if(o.isViewOnly)return;const t=null===(l=o.getForm)||void 0===l?void 0:l.call(o);if(!t)return;const n=e.detail;"all"===n?(t.change("fieldProperties.includeFields",[]),t.change("fieldProperties.excludeFields",[])):"include"===n?t.change("fieldProperties.excludeFields",[]):"exclude"===n&&t.change("fieldProperties.includeFields",[])}})),!n&&e("udp-text",{variant:"caption1"},"No other Yes/No questions exist in this form yet."),n&&"include"===l&&e("udp-field",{name:"fieldProperties.includeFields"},e("udp-fluent-dropdown",{label:"Include these Yes/No questions",multiple:!0,clearable:!0,options:t,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,placeholder:"Select questions to include..."})),n&&"exclude"===l&&e("udp-field",{name:"fieldProperties.excludeFields"},e("udp-fluent-dropdown",{label:"Exclude these Yes/No questions",multiple:!0,clearable:!0,options:t,optionLabel:"label",optionValue:"value",disabled:o.isViewOnly,placeholder:"Select questions to exclude..."})))}function Ce(e){var o;const l=null===(o=e.getForm)||void 0===o?void 0:o.call(e);return l?(e,o)=>l.change(e,o):null}function Te(o){const{question:l,ctx:t}=o,n=p(l.fieldTypeId).filter((e=>"required"!==e.ruleType));if(0===n.length)return e("udp-text",{variant:"caption1",color:"muted"},"No validation rules available for this field type.");const i=function(e,o){var l;const t=null!==(l=o.formValues)&&void 0!==l?l:{},n="boolean"==typeof t.required?t.required:e.required,i=t.fieldProperties&&"object"==typeof t.fieldProperties?t.fieldProperties:e.fieldProperties;return Object.assign(Object.assign({},e),{required:n,fieldProperties:i})}(l,t),a=e=>null!==e.readParams(i),d=n.filter(a),r=n.filter((e=>!a(e)));return e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},d.map((o=>function(o,l){return e("udp-fluent-card",{key:o.ruleType,appearance:"outline",label:o.builder.label,subtitle:o.builder.description},!l.isViewOnly&&e("udp-fluent-icon-button",{slot:"header-action",iconName:"dismiss",appearance:"subtle",ariaLabel:`Remove ${o.builder.label} rule`,onClick:()=>{if(l.isViewOnly)return;const e=Ce(l);e&&o.builder.disable(e)}}),o.builder.params.length>0&&e("udp-flexbox",{display:"flex",direction:"column",gap:"sm"},o.builder.params.map((o=>function(o,l){const t={disabled:l,label:o.label};switch(o.type){case"number":return e("udp-field",{name:o.formPath},e("udp-fluent-text-input",Object.assign({},t,{type:"number",hint:o.helperText})));case"date":return e("udp-field",{name:o.formPath},e("udp-date-input",Object.assign({},t)));case"time":return e("udp-field",{name:o.formPath},e("udp-time-input",Object.assign({},t)));case"datetime":return e("udp-field",{name:o.formPath},e("udp-date-time-input",Object.assign({},t)));default:return e("udp-field",{name:o.formPath},e("udp-fluent-text-input",Object.assign({},t,{hint:o.helperText})))}}(o,l.isViewOnly)))))}(o,t))),function(o,l){if(l.isViewOnly||0===o.length)return null;const t=o.map((e=>({id:e.ruleType,text:e.builder.label,onClick:()=>{const o=Ce(l);o&&e.builder.enable(o)}})));return e("udp-fluent-menu",{appearance:"subtle",label:"Add validation rule",startIconName:"add",size:"small",items:t})}(r,t))}const Oe=o(class extends l{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.followUpFormOptions=[],this.isFollowUpFormConfigOn=!1,this.isCommentingConfigOn=!1,this.form=null,this.unsubscribeFormValues=null,this.formValues={},this.domainSchemaCache={},this.domainSchemaLoading={},this.fetchDomainSchema=e=>{var o;if(this.domainSchemaCache[e]||this.domainSchemaLoading[e])return;const l=null===(o=this.lookupOptions)||void 0===o?void 0:o.find((o=>o.value===e));l&&(this.domainSchemaLoading=Object.assign(Object.assign({},this.domainSchemaLoading),{[e]:!0}),async function(e,o){if(!o)return oe(e);const[l,t]=await Promise.all([oe(e),le(o)]);if(0===t.length)return l;const n=new Map(l.filter((e=>"string"==typeof(null==e?void 0:e.key))).map((e=>[e.key.toLowerCase(),e])));return t.filter((e=>"string"==typeof(null==e?void 0:e.name)&&e.name)).map((e=>{var o,l,t,i;const a=null!==(o=n.get(e.name.toLowerCase()))&&void 0!==o?o:e.sanitizedName?n.get(e.sanitizedName.toLowerCase()):void 0;return{key:null!==(l=null==a?void 0:a.key)&&void 0!==l?l:(d=e.sanitizedName||e.name,d.charAt(0).toLowerCase()+d.slice(1)),displayName:null!==(t=null==a?void 0:a.displayName)&&void 0!==t?t:e.name,type:"lookup"===(null==a?void 0:a.type)?"lookup":te(e.dataType),lookupId:null==a?void 0:a.lookupId,isKey:null!==(i=null==a?void 0:a.isKey)&&void 0!==i?i:e.isPrimaryKey};var d}))}(e,l.domainName).catch((()=>[])).then((o=>{this.domainSchemaCache=Object.assign(Object.assign({},this.domainSchemaCache),{[e]:o}),this.domainSchemaLoading=Object.assign(Object.assign({},this.domainSchemaLoading),{[e]:!1})})))},this.getForm=()=>this.form}componentDidLoad(){this.el.dispatchEvent(new CustomEvent("fetchFormInstance",{bubbles:!0,composed:!0,detail:e=>{this.form=e,this.unsubscribeFormValues=e.subscribe((e=>{var o;this.formValues=null!==(o=e.values)&&void 0!==o?o:{}}),{values:!0})}}))}disconnectedCallback(){this.unsubscribeFormValues&&(this.unsubscribeFormValues(),this.unsubscribeFormValues=null),this.form=null}get question(){var e,o,l;return null===(l=null===(o=null===(e=this.sections)||void 0===e?void 0:e[this.sIndex])||void 0===o?void 0:o.questions)||void 0===l?void 0:l[this.qIndex]}buildTypeSpecificContext(){var e;const o=this.question;return{fieldProperties:null!==(e=o.fieldProperties)&&void 0!==e?e:{},formValues:this.formValues,getForm:this.getForm,isViewOnly:this.isViewOnly,lookupOptions:this.lookupOptions,sections:this.sections,currentQuestionId:o.id,domainSchemaByLookupId:this.domainSchemaCache,domainSchemaLoading:this.domainSchemaLoading,fetchDomainSchema:this.fetchDomainSchema}}render(){const o=this.question;if(!o)return null;const l=Q(o.fieldTypeId),t={question:o,isViewOnly:this.isViewOnly,formType:this.formType,isFollowUpFormConfigOn:this.isFollowUpFormConfigOn,isCommentingConfigOn:this.isCommentingConfigOn,isQuestionTextRequired:!(null==l?void 0:l.questionTextOptional),formValues:this.formValues,followUpFormOptions:this.followUpFormOptions},n=this.buildTypeSpecificContext(),i=function(e,o){switch(e){case f.Paragraph:return{label:"Paragraph Text",content:ae(o)};case f.Checkbox:case f.RadioButton:case f.DropdownSingleSelect:case f.DropdownMultipleSelect:case f.ListMultiSelect:return{label:"List Options",content:ue(o)};case f.FileUpload:case f.ImageUpload:return{label:"Upload options",content:pe(o)};case f.Signature:return{label:"Signature options",content:ce(o)};case f.FormMetadataDisplay:return{label:"Display options",content:me(o)};case f.Location:return{label:"Location",content:fe(o)};case f.Table:return{label:"Table Columns",content:Fe(o)};case f.Tally:return{label:"Tally source",content:Pe(o)};default:return null}}(o.fieldTypeId,n);return e("div",{class:"config-drawer"},e("udp-flexbox",{display:"flex",direction:"column",gap:"md"},function(o){const{isViewOnly:l,isQuestionTextRequired:t}=o;return e("udp-flexbox",{direction:"column",gap:"md"},e("udp-field",{name:"questionText"},e("udp-textarea",{label:"Question",disabled:l,required:t})),e("udp-field",{name:"helperText"},e("udp-textarea",{label:"Description",disabled:l})))}(t),i&&e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"type-specific",label:i.label,expanded:!0,block:!0}]},e("udp-flexbox",{slot:"type-specific-content",direction:"column",gap:"md"},i.content)),function(o){var l,t,n;const{question:i,isViewOnly:a,formType:d,isFollowUpFormConfigOn:r,isCommentingConfigOn:s,formValues:u,followUpFormOptions:p=[]}=o,c=null!==(l=i.fieldProperties)&&void 0!==l?l:{},f=null!==(t=null==u?void 0:u.fieldProperties)&&void 0!==t?t:null,b=!0===(null!==(n=null==f?void 0:f.allowFollowUpForms)&&void 0!==n?n:c.allowFollowUpForms),v=d===m.Standard&&r&&b;return e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"field-behavior",label:"Field Behavior",expanded:!0,block:!0}]},e("udp-flexbox",{slot:"field-behavior-content",direction:"column",gap:"md"},!(!0===c.ignoreRequiredConfig)&&ie({name:"required",label:"Required",description:"End users must answer this question before submitting.",disabled:a}),ie({name:"fieldProperties.readOnly",label:"Read Only",description:"Show the value but don't allow end users to edit it.",disabled:a}),s&&ie({name:"fieldProperties.allowComments",label:"Allow Comments",description:"Let reviewers attach comments to this answer.",disabled:a}),d===m.Standard&&r&&ie({name:"fieldProperties.allowFollowUpForms",label:"Allow Follow Up Forms",description:"Let end users launch another form linked to this question.",disabled:a}),v&&p.length>0&&e("udp-field",{name:"fieldProperties.followUpFormIds"},e("udp-fluent-dropdown",{label:"Limit to specific follow-up forms (optional)",hint:"Leave empty to allow any follow-up form.",multiple:!0,clearable:!0,disabled:a,options:p,optionLabel:"label",optionValue:"value",valueAs:"value",placeholder:"Any follow-up form"})),v&&0===p.length&&e("udp-text",{variant:"caption1"},'No follow-up form templates exist yet. Save another form with "Use as follow-up form template" enabled to populate this list.')))}(t),e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"validation",label:"Validation",expanded:!1,block:!0}]},e("udp-flexbox",{slot:"validation-content",direction:"column",gap:"md"},Te({question:o,ctx:n}))),function(o){const{isViewOnly:l}=o;return e("udp-accordion",{expandmode:"multi",appearance:"contained",items:[{id:"advanced",label:"Advanced",expanded:!1,block:!0}]},e("udp-flexbox",{slot:"advanced-content",direction:"column",gap:"sm"},e("udp-field",{name:"referenceCode"},e("udp-fluent-text-input",{label:"Reference Code",disabled:l,placeholder:"Enter an optional reference code",maxLength:32}))))}(t)))}get el(){return this}static get style(){return":host{display:block;width:100%}.options-grid{display:flex;flex-direction:column;gap:var(--spacingVerticalS)}.options-drag-handle-spacer{width:24px;min-width:24px}.option-drag-handle{display:flex;align-items:center;justify-content:center;width:24px;min-width:24px;color:var(--colorNeutralForeground3);cursor:grab;user-select:none;-webkit-user-select:none}.option-drag-handle:active{cursor:grabbing}.sortable-ghost{opacity:0.4;border:2px dashed var(--colorBrandStroke1) !important;background-color:var(--colorBrandBackground2) !important}.sortable-chosen{background-color:var(--colorNeutralBackground1Hover)}.sortable-drag{opacity:0.9;box-shadow:var(--shadow16);cursor:grabbing !important}.options-grid-header{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center}.options-grid-header-label{font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground2)}.option-row{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center;padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalS) 0;background-color:var(--colorNeutralBackground2);border-radius:var(--borderRadiusMedium);margin-bottom:var(--spacingVerticalXS)}.options-grid--choice .options-grid-header,.options-grid--choice .option-row{grid-template-columns:24px 2fr 1fr 32px}.option-row-actions{display:flex;justify-content:center;min-width:32px}.options-add-row{margin-top:4px;padding:2px 0 0 0}.table-col-card{background-color:var(--colorNeutralBackground2);border-radius:var(--borderRadiusMedium);padding:var(--spacingVerticalXS) var(--spacingHorizontalS) var(--spacingVerticalS) 0;margin-bottom:var(--spacingVerticalXS)}.table-col-main-row{display:grid;grid-template-columns:24px 1fr 1fr 32px;gap:var(--spacingHorizontalS);align-items:center}.domain-table-col-row{display:grid;grid-template-columns:24px minmax(0, 1fr) 56px 56px 56px minmax(0, 1.2fr) minmax(0, 1.2fr) 32px;gap:var(--spacingHorizontalS);align-items:center}.domain-table-col-row:has(>udp-fluent-text-input.has-error){align-items:start}.domain-table-col-row:has(>udp-fluent-text-input.has-error)>:not(udp-fluent-text-input):not(udp-fluent-dropdown){display:flex;align-items:center;min-height:32px}.domain-table-col-row>:nth-child(3),.domain-table-col-row>:nth-child(4),.domain-table-col-row>:nth-child(5){justify-self:center;text-align:center}.table-col-secondary{box-sizing:border-box;display:flex;flex-wrap:wrap;gap:var(--spacingHorizontalS);align-items:center;padding-top:var(--spacingVerticalXS);padding-left:calc(24px + var(--spacingHorizontalXS))}.domain-table-col-type{flex:0 0 auto;width:120px}.domain-table-col-settings{align-items:flex-end}.domain-table-col-settings udp-fluent-switch{margin-bottom:var(--spacingVerticalXS, 4px)}@container (max-width: 400px){.options-grid-header{display:none}.option-row{grid-template-columns:24px 1fr 1fr;gap:var(--spacingHorizontalS) 2px;padding:2px 0}.option-row-actions{grid-column:2 / -1;justify-content:flex-end}}"}},[1,"udp-question-config-fluent",{sections:[16],sIndex:[2,"s-index"],qIndex:[2,"q-index"],isViewOnly:[4,"is-view-only"],lookupOptions:[16],followUpFormOptions:[16],formType:[2,"form-type"],isFollowUpFormConfigOn:[4,"is-follow-up-form-config-on"],isCommentingConfigOn:[4,"is-commenting-config-on"],formValues:[32],domainSchemaCache:[32],domainSchemaLoading:[32]}]);function qe(){"undefined"!=typeof customElements&&["udp-question-config-fluent","udp-accordion","udp-date-input","udp-date-range-selector","udp-date-time-input","udp-field","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-card","udp-fluent-dropdown","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-popover","udp-spinner","udp-text","udp-textarea","udp-time-input","udp-tooltip"].forEach((e=>{switch(e){case"udp-question-config-fluent":customElements.get(t(e))||customElements.define(t(e),Oe);break;case"udp-accordion":customElements.get(t(e))||h();break;case"udp-date-input":customElements.get(t(e))||y();break;case"udp-date-range-selector":customElements.get(t(e))||w();break;case"udp-date-time-input":customElements.get(t(e))||x();break;case"udp-field":customElements.get(t(e))||k();break;case"udp-flexbox":customElements.get(t(e))||F();break;case"udp-fluent-avatar":customElements.get(t(e))||P();break;case"udp-fluent-badge":customElements.get(t(e))||C();break;case"udp-fluent-button":customElements.get(t(e))||T();break;case"udp-fluent-card":customElements.get(t(e))||O();break;case"udp-fluent-dropdown":customElements.get(t(e))||q();break;case"udp-fluent-icon":customElements.get(t(e))||j();break;case"udp-fluent-icon-button":customElements.get(t(e))||S();break;case"udp-fluent-menu":customElements.get(t(e))||I();break;case"udp-fluent-switch":customElements.get(t(e))||N();break;case"udp-fluent-text-input":customElements.get(t(e))||V();break;case"udp-popover":customElements.get(t(e))||E();break;case"udp-spinner":customElements.get(t(e))||D();break;case"udp-text":customElements.get(t(e))||L();break;case"udp-textarea":customElements.get(t(e))||U();break;case"udp-time-input":customElements.get(t(e))||A();break;case"udp-tooltip":customElements.get(t(e))||$()}}))}export{Z as F,Oe as U,z as a,B as b,H as c,qe as d,ee as e,G as f,Q as g,J as h,_ as l,ne as s,W as v}