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{r as t,h as i,a as s}from"./index-15aY63VA.js";import e from"ol/Map";import h from"ol/View";import o from"ol/layer/Tile";import n from"ol/source/OSM";import l from"ol/layer/Vector";import a from"ol/source/Vector";import{Zoom as r,FullScreen as d}from"ol/control";import p from"proj4";import{register as u}from"ol/proj/proj4";import{Select as c,Draw as v,defaults as f,DragRotateAndZoom as m}from"ol/interaction";import{Feature as y,Overlay as w}from"ol";import{h as b,g as S,a as g,b as O,c as M,d as F,s as P}from"./udp-map-utils-v_NyJK7e.js";import{Point as L,LineString as C,Polygon as j}from"ol/geom";import*as x from"@turf/turf";import{createBox as z}from"ol/interaction/Draw";import{transformExtent as B}from"ol/proj";import{click as T}from"ol/events/condition";import{first as V,debounce as A}from"lodash-es";import{S as D,D as k,P as Z}from"./common-CwN0FuAf.js";import"ol/format/GeoJSON";const I=class{constructor(i){t(this,i),this.data=[],this.isGeoJsonFormat=!0,this.enableZoom=!0,this.mapZoom=17,this.mapCenter=[0,0],this.mapHeight="80vh",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.initialSelectedLayers=[],this.bulkSelectedFeaturesActionPanel="",this.filterLayersByRole=!1,this.layerKeySeparator="",this.filteredLayerOptionsByRole=[],this.readOnlyMap=!1,this.enableViewFeature=!0,this.bulkSelectionActive=!1,this.splitActive=!1,this.enableDragBox=!1,this.enableAddNewFeature=!0,this.readOnlyLayers=[],this.popoverPrimaryActions=[],this.popoverMoreIconButtonActions=[],this.hideMessageIconPopover=!1,this.popoverCardConfig={},this.minZoom=0,this.maxZoom=28,this.definedProjection=!1,this.popoverContainer=null,this.showPopOver=!1,this.isReadOnlyFeature=!1,this.mapFeatures=[],this.initializeMap=(t,i)=>{var s;this.definedProjection=this.registerProjection(this.crs),this.filterLayerOptions();let p=[];if(this.tileLayersOptions&&(null===(s=this.tileLayersOptions)||void 0===s?void 0:s.length)>0)for(let t of this.tileLayersOptions){const i=new o({source:null==t?void 0:t.source,properties:{value:null==t?void 0:t.name,isBaseTile:!0},visible:!this.defaultTileOptionName||(null==t?void 0:t.name)===this.defaultTileOptionName});p[p.length]=i}else{const t=new o({source:new n,properties:{value:"Open Street Map",isBaseTile:!0},visible:!0});p[p.length]=t}p.push(new l({source:new a({}),properties:{id:k}}));const u=new h({center:this.mapCenter,zoom:this.mapZoom,projection:this.mapProjection,minZoom:this.minZoom,maxZoom:this.maxZoom});this.mapInstance=new e({target:i,layers:p,view:u,interactions:f().extend([new m]),controls:[new r,new d],overlays:[new w({element:t,autoPan:{animation:{duration:250}},id:Z})]}),this.mapInstance.on("moveend",A((()=>{this.getMapExtentAndZoom()}),500)),this.setVectorLayers(),this.addSelectInteraction(),this.handleSetMapComponent&&this.handleSetMapComponent(this.mapInstance)},this.setVectorLayers=()=>{let t=S(this.data,this.isGeoJsonFormat,this.geoJsonMappingConfig,this.filterPanel,this.filterPanelCallback);this.mapFeatures=g(t,this.crs,this.definedProjection,this.mapProjection,this.mapDataProjection,this.getFilteredMapData);let i=this.getVisibleLayersOnLoad(this.layerOptions);this.addVectorLayersToMap(this.mapFeatures,i),this.updateIntialSelectedLayersVisibility()},this.clearVectorLayers=()=>{var t,i,s;(null!==(s=null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getLayers())||void 0===i?void 0:i.getArray())&&void 0!==s?s:[]).forEach((t=>{t instanceof l&&t.get("id")!==k&&this.mapInstance.removeLayer(t)}))},this.registerProjection=t=>(null==t?void 0:t.length)>0&&(p.defs(t),u(p),!0),this.filterLayerOptions=()=>{let t=this.filterLayersByRole?O(this.user,this.layerRoles,this.layerOptions):this.layerOptions;this.handleSetFilteredLayerOptionsByRole(t)},this.addVectorLayersToMap=(t,i)=>{var s;if(t&&this.mapInstance)if(this.getVectorLayerSources)null===(s=this.getVectorLayerSources(i,t))||void 0===s||s.forEach((t=>{var i;const s=new a({features:null!==(i=null==t?void 0:t.features)&&void 0!==i?i:[]}),e=new l({source:s,properties:{value:null==t?void 0:t.layer},style:this.getFeatureStyles});this.mapInstance.addLayer(e)}));else for(let s of i){const i=null==t?void 0:t.filter((t=>{const i=t.getProperties();if(this.getFeatureStyles){let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)}const e=M(this.layerKeys,this.layerKeySeparator,i);return s===e})),e=new a({features:i}),h=new l({source:e,properties:{value:s}});this.mapInstance.addLayer(h)}},this.getVisibleLayersOnLoad=t=>{const i=this.filterLayersByRole?O(this.user,this.layerRoles,t):t;return F(i)},this.updateLayerVisibility=(t,i=!1)=>{var s,e;let h=i?o:l;null===(e=null===(s=this.mapInstance)||void 0===s?void 0:s.getLayers())||void 0===e||e.forEach((i=>{i instanceof h&&(t.includes(i.get("value"))||i.get("id")===k?i.setVisible(!0):i.setVisible(!1))}))},this.insertFeatureStyles=()=>{this.getFeatureStyles&&this.mapInstance.getLayers().forEach((t=>{t instanceof l&&t.getSource().getFeatures().forEach((t=>{let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)}))}))},this.addSelectInteraction=()=>{((t,i,s,e,h,o,n,l,a,r,d)=>{const p=new c({condition:t=>T(t),multi:!1,hitTolerance:30});p.set("id",D),p.on("select",(async l=>{if(!a&&!t)if(l.selected.length>0){const t=V(l.selected);if(d){let i=await d(l.selected);i&&"object"==typeof i&&Object.keys(i).forEach((s=>{t.values_[`${s}`]=i[s]}))}if(i(t),h&&h(t),s(t),o(t),n){let i=n(t);b(i)&&t.setStyle(i)}}else s(null),e()})),r(p),l(p)})(this.splitActive,this.handleSetCurrentSelectedFeature,this.handleSetSelectedFeatureProperties,this.handleOnCloseFeaturePopover,this.handleSetSelectedFeatureOnSelect,this.showPopper,this.getSelectedFeatureStyles,this.handleAddInteraction,this.enableDragBox,this.handleUpdateSelectInteraction,this.handleGetAdditionalFeaturePropertiesOnSelect)},this.handleUpdateSelectInteraction=t=>{this.selectInteraction=t},this.handleSetCurrentSelectedFeature=t=>{this.currentSelectedFeature=t},this.handleSetShowPopOver=t=>{this.showPopOver=t},this.showPopper=t=>{if(!this.enableDragBox&&!this.enableAddNewFeature&&!this.splitActive&&t){const i=this.mapInstance.getOverlayById(Z),s=t.getGeometry();i&&s&&i.setPosition(s.getFirstCoordinate()),this.showPopOver=!0}},this.handleOnCloseFeaturePopover=t=>{this.additionalOnclosePopover&&this.additionalOnclosePopover(t),this.setSelectedFeatureIdExternal&&this.setSelectedFeatureIdExternal(null),this.showPopOver=!1},this.handleAddInteraction=t=>{this.mapInstance.addInteraction(t)},this.handleShowMarkerFromExternal=t=>{var i,s;if(t&&this.mapFeatures&&this.selectInteraction){const e=null===(i=this.mapFeatures)||void 0===i?void 0:i.find((i=>(null==i?void 0:i.getId())===t)),h=null==e?void 0:e.getProperties();if(e){this.handleSetSelectedFeatureProperties(e);const t=M(this.layerKeys,this.layerKeySeparator,h),i=F(this.filteredLayerOptionsByRole);if(!(null===(s=this.selectedLayers)||void 0===s?void 0:s.includes(t))&&(null==i?void 0:i.includes(t))&&this.handleSetSelectedLayers){const i=[...this.selectedLayers,t];this.handleSetSelectedLayers(i),this.updateLayerVisibility(i)}const o=this.selectInteraction.getFeatures(),n=o.getArray().slice();o.clear(),o.push(e),this.selectInteraction.dispatchEvent({type:"select",selected:[e],deselected:n,mapBrowserEvent:null})}}}}componentDidLoad(){requestAnimationFrame((()=>{this.popoverContainer=this.el.shadowRoot.querySelector("#featureDetailsPopOverContainer");const t=this.el.shadowRoot.querySelector("#map");this.popoverContainer&&t&&this.initializeMap(this.popoverContainer,t)}))}reinitializeMap(){this.clearVectorLayers(),this.setVectorLayers()}resetPopover(){this.showPopOver=!1}updateProjection(){this.crs&&(this.definedProjection=this.registerProjection(this.crs))}updateFilteredLayerOptions(){this.filterLayerOptions()}handleSelectFeatureOnMap(){var t;this.selectedFeatureIdExternal&&(null===(t=this.selectInteraction)||void 0===t?void 0:t.getActive())?this.handleShowMarkerFromExternal(this.selectedFeatureIdExternal):this.selectedFeatureIdExternal&&this.setSelectedFeatureIdExternal&&this.setSelectedFeatureIdExternal(null)}updateReadOnlyLayers(){var t;if(this.selectedFeatureProperties){const i=M(this.layerKeys,this.layerKeySeparator,this.selectedFeatureProperties);this.isReadOnlyFeature=null===(t=this.readOnlyLayers)||void 0===t?void 0:t.includes(i)}}handleUpdateInitialSelectedLayersVisibility(){this.updateIntialSelectedLayersVisibility()}updateMapView(){if(this.mapInstance){const t=this.mapInstance.getView().getCenter(),i=this.mapInstance.getView().getZoom();this.mapInstance.setView(new h({center:t,zoom:i,projection:this.mapProjection}))}}updateMapCenter(){var t;this.mapInstance&&this.mapCenter&&(null===(t=this.mapInstance.getView())||void 0===t||t.setCenter(this.mapCenter))}updateFeatureStyles(){this.mapInstance&&this.insertFeatureStyles()}updateMinZoom(){var t,i;this.mapInstance&&this.minZoom&&(null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getView())||void 0===i||i.setMinZoom(this.minZoom))}updateMaxZoom(){var t,i;this.mapInstance&&this.maxZoom&&(null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getView())||void 0===i||i.setMaxZoom(this.maxZoom))}getMapExtentAndZoom(){if(this.handleGetZoomExtent){const t=this.mapInstance.getView().calculateExtent(this.mapInstance.getSize()),i=this.mapInstance.getView().getZoom();this.handleGetZoomExtent(i,t)}}updateIntialSelectedLayersVisibility(){let t=P(this.filteredLayerOptionsByRole,this.initialSelectedLayers);this.updateLayerVisibility(t),this.handleSetSelectedLayers&&this.handleSetSelectedLayers(t)}render(){return i("div",{key:"af326aafba5b13c1da492c4da6867aa934642339"},i("div",{key:"4ef90808195e89211e804b4ceb78b4de46ce9133",id:"map",style:{height:this.mapHeight,width:"100%",overflow:"hidden"}},i("slot",{key:"2921ede12765fb76467b0061fb05b026ef66bba2"})),i("div",{key:"9d3ae45f8d635d0274b8e6101087f508d3f8c0d0",id:"featureDetailsPopOverContainer"},i("feature-details-popup",{key:"8a58c6dd1d2202f1975b344b3ef35e9d323a885a",currentSelectedFeature:this.currentSelectedFeature,data:this.selectedFeatureProperties,coordinates:this.selectedFeatureCoordinates,enableViewFeature:this.enableViewFeature,handleViewFeature:this.handleViewFeature,showPopOver:this.showPopOver,isReadOnly:this.isReadOnlyFeature,additionalOnclosePopover:this.handleOnCloseFeaturePopover,primaryActions:this.popoverPrimaryActions,moreIconActions:this.popoverMoreIconButtonActions,getMessage:this.getMessagePopover,getMessageIcon:this.getMessageIconPopover,hideMessageIcon:this.hideMessageIconPopover,cardConfig:this.popoverCardConfig,popoverWidth:this.popoverWidth,popoverContainer:this.popoverContainer})))}get el(){return s(this)}static get watchers(){return{data:[{reinitializeMap:0},{resetPopover:0}],layerOptions:[{reinitializeMap:0},{updateFilteredLayerOptions:0}],mapDataProjection:[{reinitializeMap:0}],mapProjection:[{reinitializeMap:0},{updateMapView:0}],crs:[{updateProjection:0}],layerRoles:[{updateFilteredLayerOptions:0}],user:[{updateFilteredLayerOptions:0}],selectedFeatureIdExternal:[{handleSelectFeatureOnMap:0}],readOnlyLayers:[{updateReadOnlyLayers:0}],selectedFeatureProperties:[{updateReadOnlyLayers:0}],initialSelectedLayers:[{handleUpdateInitialSelectedLayersVisibility:0}],mapCenter:[{updateMapCenter:0}],getMapStyles:[{updateFeatureStyles:0}],minZoom:[{updateMinZoom:0}],maxZoom:[{updateMaxZoom:0}]}}};I.style=":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}";const N=class{constructor(i){t(this,i),this.mapTitle="",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.bulkSelectedFeaturesActionPanel="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.filteredLayerOptionsByRole=[],this.enableDragBox=!1,this.splitActive=!1,this.enableAddNewFeature=!1,this.readOnlyLayers=[],this.selectedTile={label:"Open Street Map",value:"Open Street Map"},this.selectedBulkSelectionType="box",this.selectedFeatureByBoxSelection=[],this.tileSelectOptions=[{label:"Open Street Map",value:"Open Street Map"}],this.newFeatureObjectsAdded=[],this.showSplitButton=!1,this.setEnableDragBox=t=>{this.handleSetEnableDragBox(t)},this.setBulkSelectonActive=t=>{this.handleSetBulkSelectionActive(t)},this.getTileLayerOptions=()=>{var t;this.tileSelectOptions=this.tileLayersOptions.map((t=>({label:null==t?void 0:t.name,value:null==t?void 0:t.name}))),this.selectedTile=null!==(t=this.tileSelectOptions.find((t=>t.value===this.defaultTileOptionName)))&&void 0!==t?t:this.tileSelectOptions[0]},this.handleSelectTile=t=>{var i,s;if(t&&(this.selectedTile=null!==(i=this.tileSelectOptions.find((i=>i.value===t)))&&void 0!==i?i:{label:t,value:t},this.enableTileSelection&&(null===(s=this.tileLayersOptions)||void 0===s?void 0:s.length)>0)){const i=this.tileLayersOptions.find((i=>(null==i?void 0:i.name)===t));if(!i)return;this.map.getLayers().getArray().filter((t=>t.get("isBaseTile"))).forEach((t=>{this.map.removeLayer(t)}));const s=new o({source:i.source,visible:!0,zIndex:0,properties:{value:i.name,isBaseTile:!0}});this.map.getLayers().insertAt(0,s)}},this.handleSelectLayers=t=>{this.handleSetSelectedLayers&&this.handleSetSelectedLayers(t),this.updateLayerVisibility(t),this.handleSelectLayersCallback&&this.handleSelectLayersCallback(t)},this.updateLayerVisibility=(t,i=!1)=>{var s,e;let h=i?o:l;null===(e=null===(s=this.map)||void 0===s?void 0:s.getLayers())||void 0===e||e.forEach((i=>{i instanceof h&&(t.includes(i.get("value"))||i.get("id")===k?i.setVisible(!0):i.setVisible(!1))}))},this.bulkSelectDraw=(t,i)=>{this.enableAddNewFeature&&this.cancelAddNewFeature(),this.showSplitButton&&this.handleCancelSplit(),((t,i,s,e,h,o,n,a,r,d,p,u,c,f,m,y)=>{if((0,this.setBulkSelectonActive)(!0),h(!0),o(null),c([]),f(i),n(),t){a&&d(a);const e={type:"Circle"};"box"===i?e.geometryFunction=z():"polygon"===i?e.type="Polygon":"lasso"===i&&(e.type="Polygon",e.freehand=!0);const o=new v(e);r(o),p(o),o.setActive(!0);let n=[];o.on("drawend",(i=>{d(a);let e=i.feature.getGeometry().getExtent();if(e=B(e,t.getView().getProjection(),s),t.getLayers().forEach((t=>{if(t instanceof l&&t.getVisible()){const i=t.getSource().getFeaturesInExtent(e).filter((t=>t.getGeometry().intersectsExtent(e)&&!u.includes(t)));m&&i.forEach((t=>{let i=m(t);b(i)&&t.setStyle(i)})),n.push(...i)}})),n.length>0){let t=(null==u?void 0:u.length)>0?[...u,...n]:n;c(t),y&&y(u)}h(!1),o.setActive(!1)})),r(o)}})(this.map,t,i,0,this.setEnableDragBox,this.handleSetSelectedFeatureProperties,this.clearSelectFeatureInteraction,this.currentBulkSelectDrawInteraction,this.handleSetCurrentBulkSelectDrawInteraction,this.handleRemoveInteraction,this.handleAddInteraction,this.selectedFeatureByBoxSelection,this.handleSetSelectedFeatureByBoxSelection,this.handleSetSelectedBulkSelectionType,this.getSelectedFeatureStyles,this.handleSetSelectedFeaturesOnBulkSelect)},this.clearSelectFeatureInteraction=()=>{this.selectFeatureInteraction&&(this.selectFeatureInteraction.getFeatures().clear(),this.selectFeatureInteraction.setActive(!1))},this.handleSetCurrentBulkSelectDrawInteraction=t=>{this.currentBulkSelectDrawInteraction=t},this.handleSetSelectedFeatureByBoxSelection=t=>{this.selectedFeatureByBoxSelection=t},this.handleSetSelectedBulkSelectionType=t=>{this.selectedBulkSelectionType=t},this.handleCancelBulkSelectDraw=()=>{this.setBulkSelectonActive(!1),this.setEnableDragBox(!1),this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)},this.exitBulkSelectMode=()=>{this.currentBulkSelectDrawInteraction&&(this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)),this.handleBulkUnselectFeatures()},this.handleBulkUnselectFeatures=()=>{this.selectedFeatureByBoxSelection.length>0&&this.getFeatureStyles&&this.selectedFeatureByBoxSelection.forEach((t=>{let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)})),this.setEnableDragBox(!1),this.setBulkSelectonActive(!1),this.selectedFeatureByBoxSelection=[],this.handleSetSelectedFeaturesOnBulkSelect&&this.handleSetSelectedFeaturesOnBulkSelect([])},this.startDrawingMapFeature=(t,i="Point")=>{var s;(this.enableDragBox||(null===(s=this.selectedFeatureByBoxSelection)||void 0===s?void 0:s.length)>0)&&this.exitBulkSelectMode(),this.showSplitButton&&this.handleCancelSplit(),((t,i,s="Point",e,h,o,n,r,d,p,u,c)=>{var f,m,y,w;d&&d(null),r(!0),h&&e(h);let b=new a;i?null===(f=null==t?void 0:t.getLayers())||void 0===f||f.forEach((t=>{t instanceof l&&i.value===t.getProperties().value&&(b=t.getSource())})):b=null===(w=null===(y=null===(m=null==t?void 0:t.getLayers())||void 0===m?void 0:m.getArray())||void 0===y?void 0:y.find((t=>t instanceof l&&t.get("id")===k)))||void 0===w?void 0:w.getSource();const S=new v({source:b,type:s});o(S),S.on("drawend",(function(t){const e=t.feature;let h=e.getGeometry();if(h instanceof L||h instanceof C||h instanceof j){let t={feature:e,type:s,coordinates:h.getCoordinates(),geometry:h,layer:i,source:b};n&&n(t),u||c()}})),p(S)})(this.map,t,i,this.handleRemoveInteraction,this.currentAddFeatureDrawInteraction,this.handleSetCurrentInteraction,this.handleGetFeatureObject,this.handleEnableAddNewFeature,this.handleSetSelectedFeatureProperties,this.handleAddInteraction,this.addMultipleFeatures,this.addNewFeature)},this.handleGetFeatureObject=t=>{this.newFeatureObjectsAdded=[...this.newFeatureObjectsAdded,t]},this.handleAddInteraction=t=>{this.map.addInteraction(t)},this.handleRemoveInteraction=t=>{this.map.removeInteraction(t),this.currentAddFeatureDrawInteraction=null},this.handleSetCurrentInteraction=t=>{this.currentAddFeatureDrawInteraction=t},this.cancelAddNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction)},this.addNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction),this.handleAddNewFeatures&&this.handleAddNewFeatures(this.newFeatureObjectsAdded)},this.handleStartSplitting=t=>{var i;(this.enableDragBox||(null===(i=this.selectedFeatureByBoxSelection)||void 0===i?void 0:i.length)>0)&&this.exitBulkSelectMode(),this.enableAddNewFeature&&this.cancelAddNewFeature(),this.handleSetSplit(!0),this.splitActive=!0,((t,i,s,e,h,o,n,r)=>{s&&(0,this.handleRemoveInteraction)(s),e(null),h(!0);let d=new a;t.getLayers().forEach((t=>{t instanceof l&&i.value===t.getProperties().value&&(d=t.getSource())}));const p=new v({source:d,type:"LineString"});e(p),p.on("drawend",(function(t){const i=t.feature,s=i.getGeometry();if(s instanceof C){const e=s.getCoordinates(),h=x.lineString(e);let o,n=new y,l=new y;d.getFeatures().forEach((t=>{const i=t.getGeometry();if(i instanceof C){let t=i.getCoordinates();const s=x.lineString(t);if(o=x.lineIntersect(s,h),o.features.length>0){const t=o.features[0].geometry.coordinates,i=[t,s.geometry.coordinates[1]];n=new y({geometry:new C([s.geometry.coordinates[0],t]),name:"Split LineString 1"}),l=new y({geometry:new C(i),name:"Split LineString 2"})}}})),d.removeFeature(i),d.removeFeature(t.feature),d.addFeature(n),d.addFeature(l),r&&r({originalFeature:i,newFeature1:n,newFeature2:l})}})),n(p),e(p)})(this.map,t,this.currentSplitInteraction,this.handleSetCurrentSplitInteraction,this.handleSetSplit,0,this.handleAddInteraction,this.handleRetrieveSplitFeature)},this.handleSetSplit=t=>{this.handleSetSplitActive(t),this.showSplitButton=t},this.handleRetrieveSplitFeature=t=>{this.splitFeatureDetails=t},this.handleSetCurrentSplitInteraction=t=>{this.currentSplitInteraction=t},this.handleCancelSplit=()=>{this.handleSetSplit(!1),this.splitActive=!1,this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null},this.handleSaveSplit=()=>{this.handleSetSplit(!1),this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null,this.handleSplitFeature(this.splitFeatureDetails)}}componentWillLoad(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}updateTileSelectOptions(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}render(){return i("map-toolbar",{key:"843247770f582bc1a425280e01a98ecad410bcfd",map:this.map,mapTitle:this.mapTitle,layerOptions:this.layerOptions,handleSelectLayers:this.handleSelectLayers,visibleLayers:this.selectedLayers,tileOptions:this.tileSelectOptions,handleSelectTile:this.handleSelectTile,selectedTile:this.selectedTile,enableTileSelection:this.enableTileSelection,filterPanel:this.filterPanel,enableDragBox:this.enableDragBox,selectedFeatureByBoxSelection:this.selectedFeatureByBoxSelection,handleUnselectFeatures:this.handleBulkUnselectFeatures,selectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleCancelBoxSelection:this.handleCancelBulkSelectDraw,handleBulkSelectionTypeOnChange:this.bulkSelectDraw,mapProjection:this.mapProjection,refreshEvent:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,enableAddNewFeature:this.enableAddNewFeature,handleStartDrawingMapFeature:this.startDrawingMapFeature,cancelAddNewFeature:this.cancelAddNewFeature,addNewFeature:this.addNewFeature,enableSplit:this.enableSplitFeature,handleStartSplitting:this.handleStartSplitting,handleCancelSplit:this.handleCancelSplit,handleSaveSplit:this.handleSaveSplit,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,addMultipleFeatures:this.addMultipleFeatures,showSplitButton:this.showSplitButton,readOnlyLayers:this.readOnlyLayers,addFeaturePanelConfig:this.addFeaturePanelConfig})}get el(){return s(this)}static get watchers(){return{tileLayersOptions:[{updateTileSelectOptions:0}]}}};N.style=":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}";export{I as map_component,N as udp_map_toolbar}
1
+ import{r as t,h as i,a as s}from"./index-15aY63VA.js";import e from"ol/Map";import h from"ol/View";import o from"ol/layer/Tile";import n from"ol/source/OSM";import l from"ol/layer/Vector";import a from"ol/source/Vector";import{Zoom as r,FullScreen as d}from"ol/control";import c from"proj4";import{register as p}from"ol/proj/proj4";import{Select as u,Draw as v,defaults as f,DragRotateAndZoom as m}from"ol/interaction";import{Feature as y,Overlay as w}from"ol";import{h as b,g as S,a as g,b as O,c as M,d as F,s as P}from"./udp-map-utils-v_NyJK7e.js";import{Point as L,LineString as C,Polygon as j}from"ol/geom";import*as x from"@turf/turf";import{createBox as z}from"ol/interaction/Draw";import{transformExtent as B}from"ol/proj";import{click as T}from"ol/events/condition";import{first as V,debounce as A}from"lodash-es";import{S as D,D as k,P as Z}from"./common-CwN0FuAf.js";import"ol/format/GeoJSON";const I=class{constructor(i){t(this,i),this.data=[],this.isGeoJsonFormat=!0,this.enableZoom=!0,this.mapZoom=17,this.mapCenter=[0,0],this.mapHeight="80vh",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.initialSelectedLayers=[],this.bulkSelectedFeaturesActionPanel="",this.filterLayersByRole=!1,this.layerKeySeparator="",this.filteredLayerOptionsByRole=[],this.readOnlyMap=!1,this.enableViewFeature=!0,this.bulkSelectionActive=!1,this.splitActive=!1,this.enableDragBox=!1,this.enableAddNewFeature=!0,this.readOnlyLayers=[],this.popoverPrimaryActions=[],this.popoverMoreIconButtonActions=[],this.hideMessageIconPopover=!1,this.popoverCardConfig={},this.minZoom=0,this.maxZoom=28,this.definedProjection=!1,this.popoverContainer=null,this.showPopOver=!1,this.isReadOnlyFeature=!1,this.mapFeatures=[],this.initializeMap=(t,i)=>{var s;this.definedProjection=this.registerProjection(this.crs),this.filterLayerOptions();let c=[];if(this.tileLayersOptions&&(null===(s=this.tileLayersOptions)||void 0===s?void 0:s.length)>0)for(let t of this.tileLayersOptions){const i=new o({source:null==t?void 0:t.source,properties:{value:null==t?void 0:t.name,isBaseTile:!0},visible:!this.defaultTileOptionName||(null==t?void 0:t.name)===this.defaultTileOptionName});c[c.length]=i}else{const t=new o({source:new n,properties:{value:"Open Street Map",isBaseTile:!0},visible:!0});c[c.length]=t}c.push(new l({source:new a({}),properties:{id:k}}));const p=new h({center:this.mapCenter,zoom:this.mapZoom,projection:this.mapProjection,minZoom:this.minZoom,maxZoom:this.maxZoom});this.mapInstance=new e({target:i,layers:c,view:p,interactions:f().extend([new m]),controls:[new r,new d],overlays:[new w({element:t,autoPan:{animation:{duration:250}},id:Z})]}),this.mapInstance.on("moveend",A((()=>{this.getMapExtentAndZoom()}),500)),this.setVectorLayers(),this.addSelectInteraction(),this.handleSetMapComponent&&this.handleSetMapComponent(this.mapInstance)},this.setVectorLayers=()=>{let t=S(this.data,this.isGeoJsonFormat,this.geoJsonMappingConfig,this.filterPanel,this.filterPanelCallback);this.mapFeatures=g(t,this.crs,this.definedProjection,this.mapProjection,this.mapDataProjection,this.getFilteredMapData);let i=this.getVisibleLayersOnLoad(this.layerOptions);this.addVectorLayersToMap(this.mapFeatures,i),this.updateIntialSelectedLayersVisibility()},this.clearVectorLayers=()=>{var t,i,s;(null!==(s=null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getLayers())||void 0===i?void 0:i.getArray())&&void 0!==s?s:[]).forEach((t=>{t instanceof l&&t.get("id")!==k&&this.mapInstance.removeLayer(t)}))},this.registerProjection=t=>(null==t?void 0:t.length)>0&&(c.defs(t),p(c),!0),this.filterLayerOptions=()=>{let t=this.filterLayersByRole?O(this.user,this.layerRoles,this.layerOptions):this.layerOptions;this.handleSetFilteredLayerOptionsByRole(t)},this.addVectorLayersToMap=(t,i)=>{var s;if(t&&this.mapInstance)if(this.getVectorLayerSources)null===(s=this.getVectorLayerSources(i,t))||void 0===s||s.forEach((t=>{var i;const s=new a({features:null!==(i=null==t?void 0:t.features)&&void 0!==i?i:[]}),e=new l({source:s,properties:{value:null==t?void 0:t.layer},style:this.getFeatureStyles});this.mapInstance.addLayer(e)}));else for(let s of i){const i=null==t?void 0:t.filter((t=>{const i=t.getProperties();if(this.getFeatureStyles){let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)}const e=M(this.layerKeys,this.layerKeySeparator,i);return s===e})),e=new a({features:i}),h=new l({source:e,properties:{value:s}});this.mapInstance.addLayer(h)}},this.getVisibleLayersOnLoad=t=>{const i=this.filterLayersByRole?O(this.user,this.layerRoles,t):t;return F(i)},this.updateLayerVisibility=(t,i=!1)=>{var s,e;let h=i?o:l;null===(e=null===(s=this.mapInstance)||void 0===s?void 0:s.getLayers())||void 0===e||e.forEach((i=>{i instanceof h&&(t.includes(i.get("value"))||i.get("id")===k?i.setVisible(!0):i.setVisible(!1))}))},this.insertFeatureStyles=()=>{this.getFeatureStyles&&this.mapInstance.getLayers().forEach((t=>{t instanceof l&&t.getSource().getFeatures().forEach((t=>{let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)}))}))},this.addSelectInteraction=()=>{((t,i,s,e,h,o,n,l,a,r,d)=>{const c=new u({condition:t=>T(t),multi:!1,hitTolerance:30});c.set("id",D),c.on("select",(async l=>{if(!a&&!t)if(l.selected.length>0){const t=V(l.selected);if(d){let i=await d(l.selected);i&&"object"==typeof i&&Object.keys(i).forEach((s=>{t.values_[`${s}`]=i[s]}))}if(i(t),h&&h(t),s(t),o(t),n){let i=n(t);b(i)&&t.setStyle(i)}}else s(null),e()})),r(c),l(c)})(this.splitActive,this.handleSetCurrentSelectedFeature,this.handleSetSelectedFeatureProperties,this.handleOnCloseFeaturePopover,this.handleSetSelectedFeatureOnSelect,this.showPopper,this.getSelectedFeatureStyles,this.handleAddInteraction,this.enableDragBox,this.handleUpdateSelectInteraction,this.handleGetAdditionalFeaturePropertiesOnSelect)},this.handleUpdateSelectInteraction=t=>{this.selectInteraction=t},this.handleSetCurrentSelectedFeature=t=>{this.currentSelectedFeature=t},this.handleSetShowPopOver=t=>{this.showPopOver=t},this.showPopper=t=>{if(!this.enableDragBox&&!this.enableAddNewFeature&&!this.splitActive&&t){const i=this.mapInstance.getOverlayById(Z),s=t.getGeometry();i&&s&&i.setPosition(s.getFirstCoordinate()),this.showPopOver=!0}},this.handleOnCloseFeaturePopover=t=>{this.additionalOnclosePopover&&this.additionalOnclosePopover(t),this.setSelectedFeatureIdExternal&&this.setSelectedFeatureIdExternal(null),this.showPopOver=!1},this.handleAddInteraction=t=>{this.mapInstance.addInteraction(t)},this.handleShowMarkerFromExternal=t=>{var i,s;if(t&&this.mapFeatures&&this.selectInteraction){const e=null===(i=this.mapFeatures)||void 0===i?void 0:i.find((i=>(null==i?void 0:i.getId())===t)),h=null==e?void 0:e.getProperties();if(e){this.handleSetSelectedFeatureProperties(e);const t=M(this.layerKeys,this.layerKeySeparator,h),i=F(this.filteredLayerOptionsByRole);if(!(null===(s=this.selectedLayers)||void 0===s?void 0:s.includes(t))&&(null==i?void 0:i.includes(t))&&this.handleSetSelectedLayers){const i=[...this.selectedLayers,t];this.handleSetSelectedLayers(i),this.updateLayerVisibility(i)}const o=this.selectInteraction.getFeatures(),n=o.getArray().slice();o.clear(),o.push(e),this.selectInteraction.dispatchEvent({type:"select",selected:[e],deselected:n,mapBrowserEvent:null})}}}}componentDidLoad(){requestAnimationFrame((()=>{this.popoverContainer=this.el.shadowRoot.querySelector("#featureDetailsPopOverContainer");const t=this.el.shadowRoot.querySelector("#map");this.popoverContainer&&t&&this.initializeMap(this.popoverContainer,t)}))}reinitializeMap(){this.clearVectorLayers(),this.setVectorLayers()}resetPopover(){this.showPopOver=!1}updateProjection(){this.crs&&(this.definedProjection=this.registerProjection(this.crs))}updateFilteredLayerOptions(){this.filterLayerOptions()}handleSelectFeatureOnMap(){var t;this.selectedFeatureIdExternal&&(null===(t=this.selectInteraction)||void 0===t?void 0:t.getActive())?this.handleShowMarkerFromExternal(this.selectedFeatureIdExternal):this.selectedFeatureIdExternal&&this.setSelectedFeatureIdExternal&&this.setSelectedFeatureIdExternal(null)}updateReadOnlyLayers(){var t;if(this.selectedFeatureProperties){const i=M(this.layerKeys,this.layerKeySeparator,this.selectedFeatureProperties);this.isReadOnlyFeature=null===(t=this.readOnlyLayers)||void 0===t?void 0:t.includes(i)}}handleUpdateInitialSelectedLayersVisibility(){this.updateIntialSelectedLayersVisibility()}updateMapView(){if(this.mapInstance){const t=this.mapInstance.getView().getCenter(),i=this.mapInstance.getView().getZoom();this.mapInstance.setView(new h({center:t,zoom:i,projection:this.mapProjection}))}}updateMapCenter(){var t;this.mapInstance&&this.mapCenter&&(null===(t=this.mapInstance.getView())||void 0===t||t.setCenter(this.mapCenter))}updateFeatureStyles(){this.mapInstance&&this.insertFeatureStyles()}updateMinZoom(){var t,i;this.mapInstance&&this.minZoom&&(null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getView())||void 0===i||i.setMinZoom(this.minZoom))}updateMaxZoom(){var t,i;this.mapInstance&&this.maxZoom&&(null===(i=null===(t=this.mapInstance)||void 0===t?void 0:t.getView())||void 0===i||i.setMaxZoom(this.maxZoom))}getMapExtentAndZoom(){if(this.handleGetZoomExtent){const t=this.mapInstance.getView().calculateExtent(this.mapInstance.getSize()),i=this.mapInstance.getView().getZoom();this.handleGetZoomExtent(i,t)}}updateIntialSelectedLayersVisibility(){let t=P(this.filteredLayerOptionsByRole,this.initialSelectedLayers);this.updateLayerVisibility(t),this.handleSetSelectedLayers&&this.handleSetSelectedLayers(t)}render(){return i("div",{key:"ea0d6e906da90bc74e148aec3e8503062dd939d2"},i("div",{key:"b5dc860646507c8db62c9b5ae1bcb21f53bb5000",id:"map",style:{height:this.mapHeight,width:"100%",overflow:"hidden"}},i("slot",{key:"a086f03ca752fa4efcae35ba25cebdda97fc4ac8"})),i("div",{key:"37688410d633e9513c5a1c37e10561ae6991718a",id:"featureDetailsPopOverContainer"},i("feature-details-popup",{key:"a87df598af6c11f81a672c295eb1af6540eb271a",currentSelectedFeature:this.currentSelectedFeature,data:this.selectedFeatureProperties,coordinates:this.selectedFeatureCoordinates,enableViewFeature:this.enableViewFeature,handleViewFeature:this.handleViewFeature,showPopOver:this.showPopOver,isReadOnly:this.isReadOnlyFeature,additionalOnclosePopover:this.handleOnCloseFeaturePopover,primaryActions:this.popoverPrimaryActions,moreIconActions:this.popoverMoreIconButtonActions,getMessage:this.getMessagePopover,getMessageIcon:this.getMessageIconPopover,hideMessageIcon:this.hideMessageIconPopover,cardConfig:this.popoverCardConfig,popoverWidth:this.popoverWidth,popoverContainer:this.popoverContainer})))}get el(){return s(this)}static get watchers(){return{data:[{reinitializeMap:0},{resetPopover:0}],layerOptions:[{reinitializeMap:0},{updateFilteredLayerOptions:0}],mapDataProjection:[{reinitializeMap:0}],mapProjection:[{reinitializeMap:0},{updateMapView:0}],crs:[{updateProjection:0}],layerRoles:[{updateFilteredLayerOptions:0}],user:[{updateFilteredLayerOptions:0}],selectedFeatureIdExternal:[{handleSelectFeatureOnMap:0}],readOnlyLayers:[{updateReadOnlyLayers:0}],selectedFeatureProperties:[{updateReadOnlyLayers:0}],initialSelectedLayers:[{handleUpdateInitialSelectedLayersVisibility:0}],mapCenter:[{updateMapCenter:0}],getMapStyles:[{updateFeatureStyles:0}],minZoom:[{updateMinZoom:0}],maxZoom:[{updateMaxZoom:0}]}}};I.style=":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}";const N=class{constructor(i){t(this,i),this.mapTitle="",this.mapProjection="",this.filterPanel="",this.enableTileSelection=!0,this.tileLayersOptions=[],this.defaultTileOptionName="",this.layerOptions=[],this.bulkSelectedFeaturesActionPanel="",this.refreshButtonTooltip="",this.readOnlyMap=!1,this.enableAdd=!0,this.addMultipleFeatures=!0,this.enableSplitFeature=!0,this.filteredLayerOptionsByRole=[],this.enableDragBox=!1,this.splitActive=!1,this.enableAddNewFeature=!1,this.readOnlyLayers=[],this.selectedTile={label:"Open Street Map",value:"Open Street Map"},this.selectedBulkSelectionType="box",this.selectedFeatureByBoxSelection=[],this.tileSelectOptions=[{label:"Open Street Map",value:"Open Street Map"}],this.newFeatureObjectsAdded=[],this.showSplitButton=!1,this.setEnableDragBox=t=>{this.handleSetEnableDragBox(t)},this.setBulkSelectonActive=t=>{this.handleSetBulkSelectionActive(t)},this.getTileLayerOptions=()=>{var t;this.tileSelectOptions=this.tileLayersOptions.map((t=>({label:null==t?void 0:t.name,value:null==t?void 0:t.name}))),this.selectedTile=null!==(t=this.tileSelectOptions.find((t=>t.value===this.defaultTileOptionName)))&&void 0!==t?t:this.tileSelectOptions[0]},this.handleSelectTile=t=>{var i,s;if(t&&(this.selectedTile=null!==(i=this.tileSelectOptions.find((i=>i.value===t)))&&void 0!==i?i:{label:t,value:t},this.enableTileSelection&&(null===(s=this.tileLayersOptions)||void 0===s?void 0:s.length)>0)){const i=this.tileLayersOptions.find((i=>(null==i?void 0:i.name)===t));if(!i)return;this.map.getLayers().getArray().filter((t=>t.get("isBaseTile"))).forEach((t=>{this.map.removeLayer(t)}));const s=new o({source:i.source,visible:!0,zIndex:0,properties:{value:i.name,isBaseTile:!0}});this.map.getLayers().insertAt(0,s)}},this.handleSelectLayers=t=>{this.handleSetSelectedLayers&&this.handleSetSelectedLayers(t),this.updateLayerVisibility(t),this.handleSelectLayersCallback&&this.handleSelectLayersCallback(t)},this.updateLayerVisibility=(t,i=!1)=>{var s,e;let h=i?o:l;null===(e=null===(s=this.map)||void 0===s?void 0:s.getLayers())||void 0===e||e.forEach((i=>{i instanceof h&&(t.includes(i.get("value"))||i.get("id")===k?i.setVisible(!0):i.setVisible(!1))}))},this.bulkSelectDraw=(t,i)=>{this.enableAddNewFeature&&this.cancelAddNewFeature(),this.showSplitButton&&this.handleCancelSplit(),((t,i,s,e,h,o,n,a,r,d,c,p,u,f,m,y)=>{if((0,this.setBulkSelectonActive)(!0),h(!0),o(null),u([]),f(i),n(),t){a&&d(a);const e={type:"Circle"};"box"===i?e.geometryFunction=z():"polygon"===i?e.type="Polygon":"lasso"===i&&(e.type="Polygon",e.freehand=!0);const o=new v(e);r(o),c(o),o.setActive(!0);let n=[];o.on("drawend",(i=>{d(a);let e=i.feature.getGeometry().getExtent();if(e=B(e,t.getView().getProjection(),s),t.getLayers().forEach((t=>{if(t instanceof l&&t.getVisible()){const i=t.getSource().getFeaturesInExtent(e).filter((t=>t.getGeometry().intersectsExtent(e)&&!p.includes(t)));m&&i.forEach((t=>{let i=m(t);b(i)&&t.setStyle(i)})),n.push(...i)}})),n.length>0){let t=(null==p?void 0:p.length)>0?[...p,...n]:n;u(t),y&&y(p)}h(!1),o.setActive(!1)})),r(o)}})(this.map,t,i,0,this.setEnableDragBox,this.handleSetSelectedFeatureProperties,this.clearSelectFeatureInteraction,this.currentBulkSelectDrawInteraction,this.handleSetCurrentBulkSelectDrawInteraction,this.handleRemoveInteraction,this.handleAddInteraction,this.selectedFeatureByBoxSelection,this.handleSetSelectedFeatureByBoxSelection,this.handleSetSelectedBulkSelectionType,this.getSelectedFeatureStyles,this.handleSetSelectedFeaturesOnBulkSelect)},this.clearSelectFeatureInteraction=()=>{this.selectFeatureInteraction&&(this.selectFeatureInteraction.getFeatures().clear(),this.selectFeatureInteraction.setActive(!1))},this.handleSetCurrentBulkSelectDrawInteraction=t=>{this.currentBulkSelectDrawInteraction=t},this.handleSetSelectedFeatureByBoxSelection=t=>{this.selectedFeatureByBoxSelection=t},this.handleSetSelectedBulkSelectionType=t=>{this.selectedBulkSelectionType=t},this.handleCancelBulkSelectDraw=()=>{this.setBulkSelectonActive(!1),this.setEnableDragBox(!1),this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)},this.exitBulkSelectMode=()=>{this.currentBulkSelectDrawInteraction&&(this.currentBulkSelectDrawInteraction.setActive(!1),this.map.removeInteraction(this.currentBulkSelectDrawInteraction)),this.handleBulkUnselectFeatures()},this.handleBulkUnselectFeatures=()=>{this.selectedFeatureByBoxSelection.length>0&&this.getFeatureStyles&&this.selectedFeatureByBoxSelection.forEach((t=>{let i=this.getFeatureStyles(t);b(i)&&t.setStyle(i)})),this.setEnableDragBox(!1),this.setBulkSelectonActive(!1),this.selectedFeatureByBoxSelection=[],this.handleSetSelectedFeaturesOnBulkSelect&&this.handleSetSelectedFeaturesOnBulkSelect([])},this.startDrawingMapFeature=(t,i="Point")=>{var s;(this.enableDragBox||(null===(s=this.selectedFeatureByBoxSelection)||void 0===s?void 0:s.length)>0)&&this.exitBulkSelectMode(),this.showSplitButton&&this.handleCancelSplit(),((t,i,s="Point",e,h,o,n,r,d,c,p,u)=>{var f,m,y,w;d&&d(null),r(!0),h&&e(h);let b=new a;i?null===(f=null==t?void 0:t.getLayers())||void 0===f||f.forEach((t=>{t instanceof l&&i.value===t.getProperties().value&&(b=t.getSource())})):b=null===(w=null===(y=null===(m=null==t?void 0:t.getLayers())||void 0===m?void 0:m.getArray())||void 0===y?void 0:y.find((t=>t instanceof l&&t.get("id")===k)))||void 0===w?void 0:w.getSource();const S=new v({source:b,type:s});o(S),S.on("drawend",(function(t){const e=t.feature;let h=e.getGeometry();if(h instanceof L||h instanceof C||h instanceof j){let t={feature:e,type:s,coordinates:h.getCoordinates(),geometry:h,layer:i,source:b};n&&n(t),p||u()}})),c(S)})(this.map,t,i,this.handleRemoveInteraction,this.currentAddFeatureDrawInteraction,this.handleSetCurrentInteraction,this.handleGetFeatureObject,this.handleEnableAddNewFeature,this.handleSetSelectedFeatureProperties,this.handleAddInteraction,this.addMultipleFeatures,this.addNewFeature)},this.handleGetFeatureObject=t=>{this.newFeatureObjectsAdded=[...this.newFeatureObjectsAdded,t]},this.handleAddInteraction=t=>{this.map.addInteraction(t)},this.handleRemoveInteraction=t=>{this.map.removeInteraction(t),this.currentAddFeatureDrawInteraction=null},this.handleSetCurrentInteraction=t=>{this.currentAddFeatureDrawInteraction=t},this.cancelAddNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction)},this.addNewFeature=()=>{this.handleEnableAddNewFeature(!1),this.map.removeInteraction(this.currentAddFeatureDrawInteraction),this.handleAddNewFeatures&&this.handleAddNewFeatures(this.newFeatureObjectsAdded)},this.handleStartSplitting=t=>{var i;(this.enableDragBox||(null===(i=this.selectedFeatureByBoxSelection)||void 0===i?void 0:i.length)>0)&&this.exitBulkSelectMode(),this.enableAddNewFeature&&this.cancelAddNewFeature(),this.handleSetSplit(!0),this.splitActive=!0,((t,i,s,e,h,o,n,r)=>{s&&(0,this.handleRemoveInteraction)(s),e(null),h(!0);let d=new a;t.getLayers().forEach((t=>{t instanceof l&&i.value===t.getProperties().value&&(d=t.getSource())}));const c=new v({source:d,type:"LineString"});e(c),c.on("drawend",(function(t){const i=t.feature,s=i.getGeometry();if(s instanceof C){const e=s.getCoordinates(),h=x.lineString(e);let o,n=new y,l=new y;d.getFeatures().forEach((t=>{const i=t.getGeometry();if(i instanceof C){let t=i.getCoordinates();const s=x.lineString(t);if(o=x.lineIntersect(s,h),o.features.length>0){const t=o.features[0].geometry.coordinates,i=[t,s.geometry.coordinates[1]];n=new y({geometry:new C([s.geometry.coordinates[0],t]),name:"Split LineString 1"}),l=new y({geometry:new C(i),name:"Split LineString 2"})}}})),d.removeFeature(i),d.removeFeature(t.feature),d.addFeature(n),d.addFeature(l),r&&r({originalFeature:i,newFeature1:n,newFeature2:l})}})),n(c),e(c)})(this.map,t,this.currentSplitInteraction,this.handleSetCurrentSplitInteraction,this.handleSetSplit,0,this.handleAddInteraction,this.handleRetrieveSplitFeature)},this.handleSetSplit=t=>{this.handleSetSplitActive(t),this.showSplitButton=t},this.handleRetrieveSplitFeature=t=>{this.splitFeatureDetails=t},this.handleSetCurrentSplitInteraction=t=>{this.currentSplitInteraction=t},this.handleCancelSplit=()=>{this.handleSetSplit(!1),this.splitActive=!1,this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null},this.handleSaveSplit=()=>{this.handleSetSplit(!1),this.handleRemoveInteraction(this.currentSplitInteraction),this.currentSplitInteraction=null,this.handleSplitFeature(this.splitFeatureDetails)}}componentWillLoad(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}updateTileSelectOptions(){var t;this.tileLayersOptions&&(null===(t=this.tileLayersOptions)||void 0===t?void 0:t.length)>0&&this.getTileLayerOptions()}render(){return i("map-toolbar",{key:"b90def915ca6f94a2f3c5cee896decbb668ada88",map:this.map,mapTitle:this.mapTitle,layerOptions:this.layerOptions,handleSelectLayers:this.handleSelectLayers,visibleLayers:this.selectedLayers,tileOptions:this.tileSelectOptions,handleSelectTile:this.handleSelectTile,selectedTile:this.selectedTile,enableTileSelection:this.enableTileSelection,filterPanel:this.filterPanel,enableDragBox:this.enableDragBox,selectedFeatureByBoxSelection:this.selectedFeatureByBoxSelection,handleUnselectFeatures:this.handleBulkUnselectFeatures,selectedFeaturesActionPanel:this.bulkSelectedFeaturesActionPanel,handleCancelBoxSelection:this.handleCancelBulkSelectDraw,handleBulkSelectionTypeOnChange:this.bulkSelectDraw,mapProjection:this.mapProjection,refreshEvent:this.handleRefresh,refreshButtonTooltip:this.refreshButtonTooltip,enableAddNewFeature:this.enableAddNewFeature,handleStartDrawingMapFeature:this.startDrawingMapFeature,cancelAddNewFeature:this.cancelAddNewFeature,addNewFeature:this.addNewFeature,enableSplit:this.enableSplitFeature,handleStartSplitting:this.handleStartSplitting,handleCancelSplit:this.handleCancelSplit,handleSaveSplit:this.handleSaveSplit,readOnlyMap:this.readOnlyMap,enableAdd:this.enableAdd,addMultipleFeatures:this.addMultipleFeatures,showSplitButton:this.showSplitButton,readOnlyLayers:this.readOnlyLayers,addFeaturePanelConfig:this.addFeaturePanelConfig})}get el(){return s(this)}static get watchers(){return{tileLayersOptions:[{updateTileSelectOptions:0}]}}};N.style=":host{display:block}.zoomControl{left:'auto';right:'20';top:'20'}.iconButtonWrapper{padding:var(--spacing-04)}#featureDetailsPopOverContainer{position:absolute;z-index:1000}.hidden-controls .ol-zoom,.hidden-controls .ol-attribution{display:none}.ol-control{width:fit-content !important}";export{I as map_component,N as udp_map_toolbar}
@@ -1 +1 @@
1
- import{r as o,h as t,c as i,a as e}from"./index-15aY63VA.js";import{i as r}from"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const a=class{constructor(t){o(this,t),this.hiddenActionButtons=[],this.hiddenLabels=[],this.actionButtons=[],this.defaultActionButtons=[],this.tabs=!0,this.actionButtonLabel=""}getIconComponent(o,t){return t||("string"==typeof o?r[o]:o)}renderIcon(o){return o&&"svg"===o.elem?t("svg",Object.assign({},o.attrs),o.content.map(((o,i)=>t("path",Object.assign({key:i},o.attrs))))):null}render(){return console.log("active tab",this.activeTabIndex),t("div",{key:"b067b93e57c27104b0d5d2329a70b3538ba74acd",class:"header-bar"},t("div",{key:"bb4b6cb3e21b65d2fa20725b1a612991f035806e",class:"title-section"},t("unity-typography",{key:"5780ba16e95e71799b827ba7b16c23f27cd1f6a6",variant:"h4"},this.title)),this.tabs&&t("div",{key:"8dbd155078876d225656d39bb5666f5ec0e6447e",class:"tabs"},t("udp-tabs",{key:"2f0d9c29cc5544bd7e153fcaafb653b112260c11"},t("button",{key:"bd00badf88398dbd799a30a5eaaa2700c98b2fd1",class:0===this.activeTabIndex?"active":"",slot:"tab-title",onClick:()=>this.selectTab(0)},"Demo Grid"),t("button",{key:"97a24976f87b71b37e6e494648895fdf986a73de",class:1===this.activeTabIndex?"active":"",slot:"tab-title",onClick:()=>this.selectTab(1)},"Other Content"))),t("div",{key:"706bb35e868d947eedeae8a0543dabbc8f8133a0",class:"button-section"},this.defaultActionButtons.map((o=>{const i=this.getIconComponent(o.icon,o.customIcon);return!this.hiddenActionButtons.includes(o.label)&&o.visible?t("stencil-icon-button",{secondary:o.secondary,onClick:t=>{o.clickHandler?o.clickHandler(t):console.log(`${o.label} Clicked but no custom handler defined`)},tooltip:o.tooltip},this.renderIcon(i),!this.hiddenLabels.includes(o.label)&&o.showLabel&&t("span",null,o.label)):null})),!this.actionButtonLabel&&t("div",{key:"753165fd609eedd18fc8e536c3c53b2e440e7dcf",class:"right-margin"}),this.actionButtonLabel&&t("udp-button",{key:"3bc1d993147d752e6e60c2c3cdfa42dd3d8f6da5",variant:"contained",color:"secondary",onClick:o=>this.primaryActionClick(o)},this.actionButtonLabel)))}};a.style=":host{display:block;font-family:var(--font-family-base, sans-serif);background-color:var(--primary-action-header-background, #ffffff);color:var(--primary-action-header-text-color, rgba(0, 0, 0, 0.87));box-shadow:var(--primary-action-header-shadow, 0px 2px 4px -1px rgba(0,0,0,0.2));height:var(--primary-action-header-height, 48px);padding:var(--primary-action-header-padding, 0 var(--spacing-04));box-sizing:border-box}.header-bar{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.title-section{flex-shrink:0;margin-right:var(--spacing-md, 16px)}.tabs{flex-grow:1;display:flex;justify-content:center;align-items:stretch;min-width:0}.tabs udp-tabs{width:100%;display:flex;justify-content:center}.tabs udp-tabs::part(tab-list){}.tabs udp-tabs button{padding:0 16px;margin:0 var(--spacing-xxs, 4px);height:100%;border:none;background-color:transparent;cursor:pointer;font-size:var(--font-size-sm, 0.875rem);color:var(--text-color-secondary, rgba(0, 0, 0, 0.6));text-transform:uppercase;font-weight:var(--font-weight-medium, 500);border-bottom:2px solid transparent;transition:color 0.3s ease, border-bottom-color 0.3s ease}.tabs udp-tabs button:hover{color:var(--primary-color-hover, var(--primary-color, #1976d2))}.tabs udp-tabs button.active{color:var(--primary-color, #1976d2);border-bottom:2px solid var(--primary-color, #1976d2)}.button-section{display:flex;align-items:center;flex-shrink:0;gap:var(--spacing-sm, 8px)}.button-section stencil-icon-button{color:var(--primary-action-header-icon-color, var(--text-color-primary, rgba(0, 0, 0, 0.54)))}.button-section stencil-icon-button:hover{background-color:rgba(0,0,0,0.04)}.button-section custom-button{}";const n=class{constructor(t){o(this,t),this.udpTabChange=i(this,"udpTabChange",7),this.variant="fill",this.tabs=[],this.internalActiveTab=0,this.tabDetails=[],this.sliderStyle={width:"0",transform:"translateX(0)"},this.showScrollLeft=!1,this.showScrollRight=!1,this.slottedTabs=[],this.buttonRefs=[]}get isControlled(){return null!=this.value}get useTabsProp(){return this.tabs&&this.tabs.length>0}get activeTab(){return this.isControlled?this.value:this.internalActiveTab}handleSlotChange(){this.useTabsProp||this.initializeTabs()}handleResize(){requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}componentDidLoad(){this.initializeTabs()}onActiveTabChange(o){this.updateActiveTabs(),this.updateSliderPosition(),this.scrollTabIntoView(o)}onValueChange(o){this.updateActiveTabs(),this.updateSliderPosition(),this.scrollTabIntoView(o)}onTabsPropChange(){this.initializeTabs()}onVariantChange(){requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}initializeTabs(){var o,t;if(this.buttonRefs=[],this.useTabsProp?(this.tabDetails=this.tabs.map((o=>Object.assign({},o))),this.slottedTabs=[]):(this.slottedTabs=Array.from(this.el.children).filter((o=>"udp-tab"===o.tagName.toLowerCase())),this.tabDetails=this.slottedTabs.map((o=>({label:o.label,icon:o.icon,iconPlacement:o.iconPlacement,hidden:o.hidden,disabled:o.disabled})))),!this.isControlled&&((null===(o=this.tabDetails[this.internalActiveTab])||void 0===o?void 0:o.hidden)||(null===(t=this.tabDetails[this.internalActiveTab])||void 0===t?void 0:t.disabled))){const o=this.tabDetails.findIndex((o=>!o.hidden&&!o.disabled));this.internalActiveTab=o>-1?o:0}this.updateActiveTabs(),requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}updateActiveTabs(){if(!this.useTabsProp){const o=this.activeTab;this.slottedTabs.forEach(((t,i)=>{t.active=i===o}))}}updateSliderPosition(){const o=this.buttonRefs[this.activeTab];this.sliderStyle=o?{width:`${o.offsetWidth}px`,transform:`translateX(${o.offsetLeft}px)`}:{width:"0px",transform:"translateX(0px)"}}checkScroll(){if(!this.scrollContainerRef)return;const{scrollLeft:o,scrollWidth:t,clientWidth:i}=this.scrollContainerRef,e=t>i;this.showScrollLeft=e&&o>1,this.showScrollRight=e&&o<t-i-1}tabClicked(o){var t;(null===(t=this.tabDetails[o])||void 0===t?void 0:t.disabled)||(this.isControlled?this.udpTabChange.emit(o):this.internalActiveTab=o)}scrollTabIntoView(o){const t=this.buttonRefs[o],i=this.scrollContainerRef;if(!t||!i)return;const{scrollLeft:e,clientWidth:r}=i,a=t.offsetLeft,n=a+t.offsetWidth,s=e+r-70;a<e+70?i.scrollTo({left:a-70,behavior:"smooth"}):n>s&&i.scrollTo({left:n-r+70,behavior:"smooth"})}scrollToStart(){this.scrollContainerRef&&this.scrollContainerRef.scrollTo({left:0,behavior:"smooth"})}scrollToEnd(){if(!this.scrollContainerRef)return;const o=this.scrollContainerRef,{scrollWidth:t,clientWidth:i}=o;o.scrollTo({left:t-i,behavior:"smooth"})}render(){const o=this.activeTab;return t("div",{key:"f831f52b3f24f982d042142efdbef514863d73b4",class:"tab-container"},t("div",{key:"147b5043665fd9d3148806845cba435f4dae6809",class:`tab-header ${this.variant}`},this.showScrollLeft&&t("button",{key:"497ec7ef3a061038de7000942f4425ee05da7eb1",class:"scroll-arrow left",onClick:()=>this.scrollToStart(),"aria-label":"Scroll to first tab"},t("udp-icon",{key:"4ea7b559f21af213f9af36d75e51b113c8251bec",iconName:"chevronLeft16",color:"inherit"})),this.showScrollLeft&&t("div",{key:"d4b9190424b60c488c6307acb3478b0679155ccd",class:"scroll-fade left"}),t("div",{key:"1dd60a5dae79ca3320bb1c4b7dd8d997d02fe8bb",class:"tab-scroll-container",ref:o=>this.scrollContainerRef=o,onScroll:()=>this.checkScroll()},this.tabDetails.map(((i,e)=>{if(i.hidden)return null;const r=i.icon?t("udp-icon",{iconName:i.icon,color:"inherit"}):null,a=t("span",null,i.label);return t("button",{class:{active:e===o,"has-icon":!!i.icon,[`icon-${i.iconPlacement}`]:!!i.icon,disabled:i.disabled},disabled:i.disabled,onClick:()=>this.tabClicked(e),role:"tab","aria-selected":e===o?"true":"false","aria-disabled":i.disabled?"true":"false",ref:o=>this.buttonRefs[e]=o},r,a)})),t("div",{key:"6bf65b498887361e2a2dd08ccd6009f6565c22bc",class:"slider",style:this.sliderStyle})),this.showScrollRight&&t("div",{key:"45fe89ee34f557daae073cadc340a898d17c68d6",class:"scroll-fade right"}),this.showScrollRight&&t("button",{key:"9562d8cc06d478498badcc76a2575eb78df97a31",class:"scroll-arrow right",onClick:()=>this.scrollToEnd(),"aria-label":"Scroll to last tab"},t("udp-icon",{key:"ccd399b1854520a40a64a87fca1946658d38ef36",iconName:"chevronRight16",color:"inherit"}))),!this.isControlled&&!this.useTabsProp&&t("div",{key:"c5a0e260de992ab90997fa61ac8058c570357933"},t("slot",{key:"6ab55e9c3668f91f7ce58dd7155c9383d3fc7ecd"})))}get el(){return e(this)}static get watchers(){return{internalActiveTab:[{onActiveTabChange:0}],value:[{onValueChange:0}],tabs:[{onTabsPropChange:0}],variant:[{onVariantChange:0}]}}};n.style=".tab-container{display:flex;flex-direction:column}.tab-header{background-color:#ffffff;position:relative;display:flex;align-items:center}.tab-scroll-container{display:flex;position:relative;overflow-x:auto;overflow-y:hidden;flex:1;min-width:0}.tab-scroll-container::-webkit-scrollbar{height:4px}.tab-scroll-container::-webkit-scrollbar-track{background:transparent}.tab-scroll-container::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.2);border-radius:4px}.tab-scroll-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3)}.tab-header::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--divider-color, #e0e0e0)}.tab-header button{padding:16px;font-size:14px;text-align:center;border:none;background:none;cursor:pointer;outline:none;transition:all 0.22s ease;color:#555555;font-weight:600;opacity:0.9;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px}.tab-header.fill .tab-scroll-container{width:100%}.tab-header.fill .tab-scroll-container button{flex-grow:1}.tab-header button.active{color:var(--secondary-color, #344861);opacity:1.0}.tab-header button.scroll-arrow{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:40px;padding:0;background:#ffffff;cursor:pointer;font-size:16px;font-weight:bold;color:#757575;z-index:2;transition:color 0.2s ease;flex-shrink:0;opacity:1;gap:0}.tab-header button.scroll-arrow:hover{color:#000}.tab-header button.scroll-arrow.left{left:0}.tab-header button.scroll-arrow.right{right:0}.scroll-fade{position:absolute;top:0;bottom:0;width:30px;z-index:1;pointer-events:none}.scroll-fade.left{left:40px;background:linear-gradient( to right, #ffffff, rgba(255, 255, 255, 0) )}.scroll-fade.right{right:40px;background:linear-gradient( to left, #ffffff, rgba(255, 255, 255, 0) )}.tab-header button udp-icon{font-size:1.2em;line-height:1}.tab-header button.icon-start{flex-direction:row}.tab-header button.icon-end{flex-direction:row-reverse}.tab-header button.icon-top{flex-direction:column;gap:4px}.tab-header button.icon-bottom{flex-direction:column-reverse;gap:4px}.slider{position:absolute;bottom:0;left:0;height:2px;background-color:var(--secondary-color, #344861);transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1);z-index:1}.tab-header button.disabled{opacity:0.5;cursor:not-allowed}.tab-header button.disabled.active{color:#757575;opacity:0.5}";export{a as primary_action_header,n as udp_tabs}
1
+ import{r as o,h as t,c as i,a as e}from"./index-15aY63VA.js";import{i as r}from"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const a=class{constructor(t){o(this,t),this.hiddenActionButtons=[],this.hiddenLabels=[],this.actionButtons=[],this.defaultActionButtons=[],this.tabs=!0,this.actionButtonLabel=""}getIconComponent(o,t){return t||("string"==typeof o?r[o]:o)}renderIcon(o){return o&&"svg"===o.elem?t("svg",Object.assign({},o.attrs),o.content.map(((o,i)=>t("path",Object.assign({key:i},o.attrs))))):null}render(){return console.log("active tab",this.activeTabIndex),t("div",{key:"e216437fa35e47124b988918de8fd16918f8ba78",class:"header-bar"},t("div",{key:"b21a1df2b5221c60040a74dcd5b3521a7f1e8bee",class:"title-section"},t("unity-typography",{key:"8c9b01ad4ea893bfb7df85ff393a1289bd6ea806",variant:"h4"},this.title)),this.tabs&&t("div",{key:"cfe7f1d4f212dbf3ebc78a21b677ab3c9ee8285d",class:"tabs"},t("udp-tabs",{key:"bb95abf471cd400124dd8be75f2307243788910e"},t("button",{key:"fb6c037b6a8c96216bbb7ce175403bc95051759f",class:0===this.activeTabIndex?"active":"",slot:"tab-title",onClick:()=>this.selectTab(0)},"Demo Grid"),t("button",{key:"894a42af6dd6b54d408db7f980055161e32a1fd0",class:1===this.activeTabIndex?"active":"",slot:"tab-title",onClick:()=>this.selectTab(1)},"Other Content"))),t("div",{key:"3d003d2a67830808e4822fb1b37946d943614ead",class:"button-section"},this.defaultActionButtons.map((o=>{const i=this.getIconComponent(o.icon,o.customIcon);return!this.hiddenActionButtons.includes(o.label)&&o.visible?t("stencil-icon-button",{secondary:o.secondary,onClick:t=>{o.clickHandler?o.clickHandler(t):console.log(`${o.label} Clicked but no custom handler defined`)},tooltip:o.tooltip},this.renderIcon(i),!this.hiddenLabels.includes(o.label)&&o.showLabel&&t("span",null,o.label)):null})),!this.actionButtonLabel&&t("div",{key:"0c36481ab89bfaca908258a3635e9a878009abea",class:"right-margin"}),this.actionButtonLabel&&t("udp-button",{key:"b3513bae2c8d2610cefb79fe1ee5762bfd299dc3",variant:"contained",color:"secondary",onClick:o=>this.primaryActionClick(o)},this.actionButtonLabel)))}};a.style=":host{display:block;font-family:var(--font-family-base, sans-serif);background-color:var(--primary-action-header-background, #ffffff);color:var(--primary-action-header-text-color, rgba(0, 0, 0, 0.87));box-shadow:var(--primary-action-header-shadow, 0px 2px 4px -1px rgba(0,0,0,0.2));height:var(--primary-action-header-height, 48px);padding:var(--primary-action-header-padding, 0 var(--spacing-04));box-sizing:border-box}.header-bar{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.title-section{flex-shrink:0;margin-right:var(--spacing-md, 16px)}.tabs{flex-grow:1;display:flex;justify-content:center;align-items:stretch;min-width:0}.tabs udp-tabs{width:100%;display:flex;justify-content:center}.tabs udp-tabs::part(tab-list){}.tabs udp-tabs button{padding:0 16px;margin:0 var(--spacing-xxs, 4px);height:100%;border:none;background-color:transparent;cursor:pointer;font-size:var(--font-size-sm, 0.875rem);color:var(--text-color-secondary, rgba(0, 0, 0, 0.6));text-transform:uppercase;font-weight:var(--font-weight-medium, 500);border-bottom:2px solid transparent;transition:color 0.3s ease, border-bottom-color 0.3s ease}.tabs udp-tabs button:hover{color:var(--primary-color-hover, var(--primary-color, #1976d2))}.tabs udp-tabs button.active{color:var(--primary-color, #1976d2);border-bottom:2px solid var(--primary-color, #1976d2)}.button-section{display:flex;align-items:center;flex-shrink:0;gap:var(--spacing-sm, 8px)}.button-section stencil-icon-button{color:var(--primary-action-header-icon-color, var(--text-color-primary, rgba(0, 0, 0, 0.54)))}.button-section stencil-icon-button:hover{background-color:rgba(0,0,0,0.04)}.button-section custom-button{}";const n=class{constructor(t){o(this,t),this.udpTabChange=i(this,"udpTabChange",7),this.variant="fill",this.tabs=[],this.internalActiveTab=0,this.tabDetails=[],this.sliderStyle={width:"0",transform:"translateX(0)"},this.showScrollLeft=!1,this.showScrollRight=!1,this.slottedTabs=[],this.buttonRefs=[]}get isControlled(){return null!=this.value}get useTabsProp(){return this.tabs&&this.tabs.length>0}get activeTab(){return this.isControlled?this.value:this.internalActiveTab}handleSlotChange(){this.useTabsProp||this.initializeTabs()}handleResize(){requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}componentDidLoad(){this.initializeTabs()}onActiveTabChange(o){this.updateActiveTabs(),this.updateSliderPosition(),this.scrollTabIntoView(o)}onValueChange(o){this.updateActiveTabs(),this.updateSliderPosition(),this.scrollTabIntoView(o)}onTabsPropChange(){this.initializeTabs()}onVariantChange(){requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}initializeTabs(){var o,t;if(this.buttonRefs=[],this.useTabsProp?(this.tabDetails=this.tabs.map((o=>Object.assign({},o))),this.slottedTabs=[]):(this.slottedTabs=Array.from(this.el.children).filter((o=>"udp-tab"===o.tagName.toLowerCase())),this.tabDetails=this.slottedTabs.map((o=>({label:o.label,icon:o.icon,iconPlacement:o.iconPlacement,hidden:o.hidden,disabled:o.disabled})))),!this.isControlled&&((null===(o=this.tabDetails[this.internalActiveTab])||void 0===o?void 0:o.hidden)||(null===(t=this.tabDetails[this.internalActiveTab])||void 0===t?void 0:t.disabled))){const o=this.tabDetails.findIndex((o=>!o.hidden&&!o.disabled));this.internalActiveTab=o>-1?o:0}this.updateActiveTabs(),requestAnimationFrame((()=>{this.updateSliderPosition(),this.checkScroll()}))}updateActiveTabs(){if(!this.useTabsProp){const o=this.activeTab;this.slottedTabs.forEach(((t,i)=>{t.active=i===o}))}}updateSliderPosition(){const o=this.buttonRefs[this.activeTab];this.sliderStyle=o?{width:`${o.offsetWidth}px`,transform:`translateX(${o.offsetLeft}px)`}:{width:"0px",transform:"translateX(0px)"}}checkScroll(){if(!this.scrollContainerRef)return;const{scrollLeft:o,scrollWidth:t,clientWidth:i}=this.scrollContainerRef,e=t>i;this.showScrollLeft=e&&o>1,this.showScrollRight=e&&o<t-i-1}tabClicked(o){var t;(null===(t=this.tabDetails[o])||void 0===t?void 0:t.disabled)||(this.isControlled?this.udpTabChange.emit(o):this.internalActiveTab=o)}scrollTabIntoView(o){const t=this.buttonRefs[o],i=this.scrollContainerRef;if(!t||!i)return;const{scrollLeft:e,clientWidth:r}=i,a=t.offsetLeft,n=a+t.offsetWidth,s=e+r-70;a<e+70?i.scrollTo({left:a-70,behavior:"smooth"}):n>s&&i.scrollTo({left:n-r+70,behavior:"smooth"})}scrollToStart(){this.scrollContainerRef&&this.scrollContainerRef.scrollTo({left:0,behavior:"smooth"})}scrollToEnd(){if(!this.scrollContainerRef)return;const o=this.scrollContainerRef,{scrollWidth:t,clientWidth:i}=o;o.scrollTo({left:t-i,behavior:"smooth"})}render(){const o=this.activeTab;return t("div",{key:"7e61317133ced7b1e5ae362e27259ba00463943f",class:"tab-container"},t("div",{key:"b566238b0fc214810ce00c054859618439fb6ca5",class:`tab-header ${this.variant}`},this.showScrollLeft&&t("button",{key:"fa915014b5497b94716d634a4307409d869e80ab",class:"scroll-arrow left",onClick:()=>this.scrollToStart(),"aria-label":"Scroll to first tab"},t("udp-icon",{key:"58725b90692622b2453eccf4d0d2fa24e8e16faa",iconName:"chevronLeft16",color:"inherit"})),this.showScrollLeft&&t("div",{key:"c752b221a273acec13ab08c608a6b27ae8d68732",class:"scroll-fade left"}),t("div",{key:"dd9f51d0474887506c4ad737e4693c60ac7be155",class:"tab-scroll-container",ref:o=>this.scrollContainerRef=o,onScroll:()=>this.checkScroll()},this.tabDetails.map(((i,e)=>{if(i.hidden)return null;const r=i.icon?t("udp-icon",{iconName:i.icon,color:"inherit"}):null,a=t("span",null,i.label);return t("button",{class:{active:e===o,"has-icon":!!i.icon,[`icon-${i.iconPlacement}`]:!!i.icon,disabled:i.disabled},disabled:i.disabled,onClick:()=>this.tabClicked(e),role:"tab","aria-selected":e===o?"true":"false","aria-disabled":i.disabled?"true":"false",ref:o=>this.buttonRefs[e]=o},r,a)})),t("div",{key:"7148647a342e75c00f5e3b393c3763c15d0042d6",class:"slider",style:this.sliderStyle})),this.showScrollRight&&t("div",{key:"2945ac5a5946ce16107edb44c1d41b47494885b1",class:"scroll-fade right"}),this.showScrollRight&&t("button",{key:"bb635bf74355e6d92dcdfcb9ea7f80b9027a4844",class:"scroll-arrow right",onClick:()=>this.scrollToEnd(),"aria-label":"Scroll to last tab"},t("udp-icon",{key:"bc01f1966b3e476968c43d9492d6da4f02a8e2bb",iconName:"chevronRight16",color:"inherit"}))),!this.isControlled&&!this.useTabsProp&&t("div",{key:"7b05adcfd383fb764c682e63c9da1c05e30150e1"},t("slot",{key:"63dcda478f5c33969ffa26e73d5af68c0722d5bd"})))}get el(){return e(this)}static get watchers(){return{internalActiveTab:[{onActiveTabChange:0}],value:[{onValueChange:0}],tabs:[{onTabsPropChange:0}],variant:[{onVariantChange:0}]}}};n.style=".tab-container{display:flex;flex-direction:column}.tab-header{background-color:#ffffff;position:relative;display:flex;align-items:center}.tab-scroll-container{display:flex;position:relative;overflow-x:auto;overflow-y:hidden;flex:1;min-width:0}.tab-scroll-container::-webkit-scrollbar{height:4px}.tab-scroll-container::-webkit-scrollbar-track{background:transparent}.tab-scroll-container::-webkit-scrollbar-thumb{background-color:rgba(0, 0, 0, 0.2);border-radius:4px}.tab-scroll-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0, 0, 0, 0.3)}.tab-header::after{content:'';position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:var(--divider-color, #e0e0e0)}.tab-header button{padding:16px;font-size:14px;text-align:center;border:none;background:none;cursor:pointer;outline:none;transition:all 0.22s ease;color:#555555;font-weight:600;opacity:0.9;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px}.tab-header.fill .tab-scroll-container{width:100%}.tab-header.fill .tab-scroll-container button{flex-grow:1}.tab-header button.active{color:var(--secondary-color, #344861);opacity:1.0}.tab-header button.scroll-arrow{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:40px;padding:0;background:#ffffff;cursor:pointer;font-size:16px;font-weight:bold;color:#757575;z-index:2;transition:color 0.2s ease;flex-shrink:0;opacity:1;gap:0}.tab-header button.scroll-arrow:hover{color:#000}.tab-header button.scroll-arrow.left{left:0}.tab-header button.scroll-arrow.right{right:0}.scroll-fade{position:absolute;top:0;bottom:0;width:30px;z-index:1;pointer-events:none}.scroll-fade.left{left:40px;background:linear-gradient( to right, #ffffff, rgba(255, 255, 255, 0) )}.scroll-fade.right{right:40px;background:linear-gradient( to left, #ffffff, rgba(255, 255, 255, 0) )}.tab-header button udp-icon{font-size:1.2em;line-height:1}.tab-header button.icon-start{flex-direction:row}.tab-header button.icon-end{flex-direction:row-reverse}.tab-header button.icon-top{flex-direction:column;gap:4px}.tab-header button.icon-bottom{flex-direction:column-reverse;gap:4px}.slider{position:absolute;bottom:0;left:0;height:2px;background-color:var(--secondary-color, #344861);transition:transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1);z-index:1}.tab-header button.disabled{opacity:0.5;cursor:not-allowed}.tab-header button.disabled.active{color:#757575;opacity:0.5}";export{a as primary_action_header,n as udp_tabs}
@@ -1 +1 @@
1
- import{r as e,h as o,c as i,H as t,a as s}from"./index-15aY63VA.js";import{q as c,d as n}from"./udp-forms-builder-question-template-6SrycAP3.js";import{a}from"./enums-Bn8TXZfi.js";import{g as r}from"./iconUtils-BzY-c9Op.js";import"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const d=class{constructor(o){e(this,o),this.isFollowUpFormConfigOn=!1,this.isCommentingConfigOn=!1,this.getHandler=(e,o)=>{var i;const t=c.find((o=>o.fieldTypeId===e));return null===(i=null==t?void 0:t.handlers)||void 0===i?void 0:i[o]}}get question(){var e,o;return null===(o=null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex].formQuestions)||void 0===o?void 0:o[this.qIndex]}render(){var e;const i=c.find((e=>e.fieldTypeId===this.question.fieldTypeId)),t=!(i&&i.questionTextOptional);return o("div",{key:"1e4a915c5726d6ad166a363f4b8e1bc6cc67e6a8",class:"generic-configs-container"},o("div",{key:"4f54c3ee6c588c5ca950770083d31a7b01933333",class:"question-configs-header"},o("unity-typography",{key:"1c0692acb343e7e6f3a756e5d3c55be9e70187b0",variant:"h6"},this.question.questionTypeName," Question"),o("div",{key:"8a913f3cd3b9d7238fd7fa1e1d8b862a43279266"},!this.question.fieldProperties.ignoreRequiredConfig&&o("stencil-toggle",{key:"afb5b575e347cb25dc851f313fbdba38a322ebac",label:"Required",disabled:this.isViewOnly,checked:!0===this.question.required,onToggledChange:()=>{const e=!this.question.required,o=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"required");this.onFormSectionsDraftChange(o)},labelPosition:"right"}))),o("text-area",{key:"b8e763f73550fc3ac41b3324a8685552b3a0fd66",label:"Question Text",value:this.question.questionText,disabled:this.isViewOnly,placeholder:"Enter the question text here",rows:2,maxRows:5,required:t,fullWidth:!0,margin:"dense",onInput:e=>{const o=e.target.value,i=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(o,this.formSectionsDraft,this.sIndex,this.qIndex,"questionText");this.onFormSectionsDraftChange(i)}}),o("text-area",{key:"628f9979a3df5e2612e92ba7804f8a6bf40550e2",label:"Helper Text",value:this.question.helperText,disabled:this.isViewOnly,placeholder:"Enter the question's helper text here",rows:2,maxRows:4,fullWidth:!0,margin:"dense",onInput:e=>{const o=e.target.value,i=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(o,this.formSectionsDraft,this.sIndex,this.qIndex,"helperText");this.onFormSectionsDraftChange(i)}}),o("text-field",{key:"836b0af403cf98856d741c5a94fc9a8829cd8873",label:"Reference Code",value:null!==(e=this.question.referenceCode)&&void 0!==e?e:"",disabled:this.isViewOnly,placeholder:"Enter an optional reference code (32 character limit)",required:!1,margin:"dense",maxCharacter:32,onInput:e=>{const o=e.target.value.trim(),i=o.length>0?o:null,t=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(i,this.formSectionsDraft,this.sIndex,this.qIndex,"referenceCode");this.onFormSectionsDraftChange(t)}}),o("question-specific-configs-renderer",{key:"d54443a24edd911422321a7ef3fda0825fb55202",formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,isViewOnly:this.isViewOnly,onFormSectionsDraftChange:this.onFormSectionsDraftChange,lookupOptions:this.lookupOptions}),o("div",{key:"c9fe06b2b76432490b52e0b0bd66098c868f9282"},o("stencil-toggle",{key:"b6fd106e92a85ee52e05c908c036c0b12666daa7",label:"Read Only",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.readOnly,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"readOnly");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),this.isCommentingConfigOn&&o("div",{key:"f816fe4cac7c56618ee5f74df24571810871cdbf"},o("stencil-toggle",{key:"1c7dd7cc03ce5fd4700ee03e347c0d5566680bd1",label:"Allow Comments",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowComments,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowComments");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),this.formType==a.Standard&&this.isFollowUpFormConfigOn&&o("div",{key:"48885c366c8596d02ce2dc029fcf52b09b928111"},o("stencil-toggle",{key:"daf3336dafe219b3553d385bfd5bf3fd70dbdae2",label:"Allow Follow Up Forms",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowFollowUpForms,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFollowUpForms");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};d.style=".generic-configs-container{display:flex;flex-direction:column;}.question-configs-header{display:flex;justify-content:space-between;align-items:center}";const l=class{constructor(o){e(this,o)}get section(){var e;return null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex]}handleSectionFieldChange(e,o,i){const t=n(this.formSectionsDraft),s=Object.assign(Object.assign({},t[e]),{[o]:i});return t[e]=s,t}handleSectionRepeatablePropertyChange(e,o){const i=n(this.formSectionsDraft),t=Object.assign({},i[e]),s=Object.assign(Object.assign({},t.sectionProperties),{isRepeatable:o}),c=Object.assign(Object.assign({},t),{sectionProperties:s});return i[e]=c,i}render(){var e,i;return o("div",{key:"60010cbb012dded53571b2e0887053f3d6a92875",class:"generic-configs-container"},o("text-area",{key:"574557e22ceb2a7e68078bde0933db4d5af014e9",label:"Title",value:this.section.title||"",disabled:this.isViewOnly,placeholder:"Enter the section title here",rows:2,maxRows:5,fullWidth:!0,onInput:e=>{const o=this.handleSectionFieldChange(this.sIndex,"title",e.target.value);this.onFormSectionsDraftChange(o)}}),o("text-field",{key:"043866da959767d53cdc13b71db4c8fc7006c18d",label:"Reference Code",value:null!==(e=this.section.referenceCode)&&void 0!==e?e:"",disabled:this.isViewOnly,placeholder:"Enter an optional reference code (32 character limit)",maxCharacter:32,onInput:e=>{const o=e.target.value.trim(),i=this.handleSectionFieldChange(this.sIndex,"referenceCode",o.length>0?o:null);this.onFormSectionsDraftChange(i)}}),o("text-area",{key:"d6282df53fd69495654af7ba88030a6327b1cc40",label:"Section Text",value:this.section.sectionText||"",disabled:this.isViewOnly,placeholder:"Enter the section text here",rows:2,maxRows:4,fullWidth:!0,onInput:e=>{const o=this.handleSectionFieldChange(this.sIndex,"sectionText",e.target.value);this.onFormSectionsDraftChange(o)}}),o("stencil-toggle",{key:"4b7840bb11a905da96f51aaa93e22b7a70dd573d",label:"Repeatable",disabled:this.isViewOnly,checked:!0===(null===(i=this.section.sectionProperties)||void 0===i?void 0:i.isRepeatable)||!1,onToggledChange:()=>{const e=this.handleSectionRepeatablePropertyChange(this.sIndex,!this.section.sectionProperties.isRepeatable);this.onFormSectionsDraftChange(e)},labelPosition:"right"}))}};l.style=".generic-configs-container{display:flex;flex-direction:column}";const b=class{constructor(o){e(this,o),this.addSection=i(this,"addSection",7),this.addQuestion=i(this,"addQuestion",7),this.cancelClick=i(this,"cancelClick",7),this.questionsTemplate=[]}render(){return[o("div",{key:"ff60ca7a863499f0718251c7060336510eeb3842",class:"menu-header-container"},o("unity-typography",{key:"70cb9cbae68b095b85ea0113202d2530655cd62a",variant:"body1"},"Choose a Question Type"),o("stencil-icon-button",{key:"c4fc410e543fed0ee6ddf5762b34a99fcb356b25",icon:r("close16"),onClick:()=>this.cancelClick.emit()})),o("div",{key:"1ae5f348bedba56cae67003177938b5eb5389073",class:"menu-options-container"},this.questionsTemplate.map((e=>o("udp-button",{variant:"contained",color:"primary",onClick:()=>this.addQuestion.emit(e),startIcon:o("udp-icon",{iconName:e.icon,color:"inherit"})},e.questionTypeName))))]}};b.style=":host{display:flex;flex-direction:column;gap:var(--spacing-05, 24px);border:1px dashed var(--primary-color);padding:var(--spacing-05, 24px);box-sizing:border-box;background-color:var(--card-background-color, #fff);}.menu-options-container{display:flex;flex:row;flex-wrap:wrap;gap:var(--spacing-03, 8px)}.menu-header-container{display:flex;align-items:center;justify-content:space-between}";const h=class{constructor(o){e(this,o),this.hasPrimaryTextSlot=!1,this.hasSecondaryTextSlot=!1,this.hasActionsSlot=!1,this.hasStatusChipSlot=!1,this.avatarBackgroundColor="info",this.avatarVariant="rounded",this.clickable=!1,this.handleKeyPress=e=>{!this.clickable||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.onClick(e))}}componentWillLoad(){this.hasPrimaryTextSlot=!!this.hostEl.querySelector('[slot="primary-text"]'),this.hasSecondaryTextSlot=!!this.hostEl.querySelector('[slot="secondary-text"]'),this.hasActionsSlot=!!this.hostEl.querySelector('[slot="actions"]'),this.hasStatusChipSlot=!!this.hostEl.querySelector('[slot="status-chip"]')}render(){const e=this.primaryText||this.hasPrimaryTextSlot,i=this.secondaryText||this.hasSecondaryTextSlot;return o(t,{key:"e1402449aef1cedd6aebc0f8af7771cf90c9272e"},o("div",{key:"8a2f43015e132b2723ba61b6edfe901aa89a2cea",class:{"list-item":!0,clickable:this.clickable},onClick:this.onClick,onKeyPress:this.handleKeyPress,role:this.clickable?"button":void 0,tabindex:this.clickable?0:-1},o("div",{key:"c656b18f65058088469d9a9173d044e57742423f",class:"upload-container"},o("slot",{key:"b61e989325e190adb3d498f5d5027bba51863f9b",name:"drag-and-drop"})),this.iconName&&o("div",{key:"12d01851d0165aa187704c3036927e7be47e052e",class:"avatar-container"},o("udp-avatar",{key:"d2525a9d87d0c3fccf38fa40c713d22cb7f5e8d7",iconName:this.iconName,variant:this.avatarVariant,color:this.avatarBackgroundColor})),o("div",{key:"8853b979274bd4f8a0ef0cd13bcf4a6265aed18e",class:"text-container"},e&&o("div",{key:"04315c4a036eb803c1c438805c7f7b52ba4f2b26",class:"primary-text",title:this.primaryText},o("slot",{key:"22513705c95466bbdf11ec1f7c57d3822badad85",name:"primary-text"},o("unity-typography",{key:"46873fd4d1664e50c54408138ac586e6db0575dd",variant:"body"},this.primaryText))),i&&o("div",{key:"992b731bafe5073a31913499e25f4f0af1c70d41",class:"secondary-text",title:this.secondaryText},o("slot",{key:"09452493362f12740c47c84cc38bf555d32a167e",name:"secondary-text"},o("unity-typography",{key:"260b1a0e337a53d59dd02a7bcec0b00b0b2dc5de",variant:"body",color:"textSecondary"},this.secondaryText)))),this.hasStatusChipSlot&&o("div",{key:"327403bec22cae0e4a28fcac7b5703144f3212bc",class:"status-chip-container"},o("slot",{key:"451a603d308ad77d579fa185d0c737118691ecde",name:"status-chip"})),this.hasActionsSlot&&o("div",{key:"1a269f4c7ae6e0b597f568395f706851141b19d6",class:"actions-container"},o("slot",{key:"938be0479d1d7dcfc6d4a1117ce0bcb9440bba7d",name:"actions"}))))}get hostEl(){return s(this)}};h.style=".list-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-4, 16px);padding:var(--spacing-3, 12px) var(--spacing-4, 16px);border-bottom:1px solid var(--border-color, #e0e0e0);background-color:var(--card-background-color, #FFF);transition:background-color 0.1s}.list-item.clickable{cursor:grab}.list-item.clickable:hover{background-color:var(--primary-color-alpha-15, #f5f5f5)}.avatar-container{align-items:center}.text-container{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:4px}.primary-text,.secondary-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary-text{font-weight:500}.status-chip-container{display:flex;align-items:center;flex-shrink:0}.actions-container{display:flex;flex-shrink:0}";export{d as question_configs_renderer,l as section_configs_renderer,b as udp_forms_builder_menu,h as udp_forms_builder_question_item}
1
+ import{r as e,h as o,c as i,H as t,a as s}from"./index-15aY63VA.js";import{q as a,d as c}from"./udp-forms-builder-question-template-6SrycAP3.js";import{a as n}from"./enums-Bn8TXZfi.js";import{g as r}from"./iconUtils-BzY-c9Op.js";import"./iconMapping-C3k5yilV.js";import"@carbon/icons/es/add/16";import"@carbon/icons/es/add/32";import"@carbon/icons/es/add--alt/16";import"@carbon/icons/es/add--filled/16";import"@carbon/icons/es/arrows--horizontal/16";import"@carbon/icons/es/attachment/16";import"@carbon/icons/es/batch-job/16";import"@carbon/icons/es/box/16";import"@carbon/icons/es/close/16";import"@carbon/icons/es/close/24";import"@carbon/icons/es/close/32";import"@carbon/icons/es/close--filled/16";import"@carbon/icons/es/close--outline/16";import"@carbon/icons/es/checkmark/16";import"@carbon/icons/es/checkmark/24";import"@carbon/icons/es/checkmark/32";import"@carbon/icons/es/chevron--left/16";import"@carbon/icons/es/chevron--right/16";import"@carbon/icons/es/chevron--down/16";import"@carbon/icons/es/data-enrichment/16";import"@carbon/icons/es/document/16";import"@carbon/icons/es/document--add/16";import"@carbon/icons/es/document--attachment/16";import"@carbon/icons/es/document--pdf/16";import"@carbon/icons/es/document--video/16";import"@carbon/icons/es/document--audio/16";import"@carbon/icons/es/draggable/16";import"@carbon/icons/es/edit/16";import"@carbon/icons/es/export/16";import"@carbon/icons/es/flag/16";import"@carbon/icons/es/information/16";import"@carbon/icons/es/information/32";import"@carbon/icons/es/link/16";import"@carbon/icons/es/location/16";import"@carbon/icons/es/overflow-menu--vertical/16";import"@carbon/icons/es/overflow-menu--vertical/32";import"@carbon/icons/es/return/16";import"@carbon/icons/es/save/16";import"@carbon/icons/es/settings/16";import"@carbon/icons/es/subtract/16";import"@carbon/icons/es/subtract--alt/16";import"@carbon/icons/es/subtract--filled/16";import"@carbon/icons/es/trash-can/16";import"@carbon/icons/es/user/16";import"@carbon/icons/es/view/16";import"@carbon/icons/es/warning/16";import"@carbon/icons/es/warning/32";import"@carbon/icons/es/warning--alt/16";import"@carbon/icons/es/warning--alt/32";import"@carbon/icons/es/product/16";import"@carbon/icons/es/workspace/16";import"@carbon/icons/es/arrow--up/16";import"@carbon/icons/es/arrow--down/16";import"@carbon/icons/es/arrow--right/16";import"@carbon/icons/es/arrow--left/16";import"@carbon/icons/es/copy/16";import"@carbon/icons/es/star/16";import"@carbon/icons/es/data-table/16";import"@carbon/icons/es/fit-to-width/16";import"@carbon/icons/es/search--advanced/16";import"@carbon/icons/es/reset/16";import"@carbon/icons/es/column/16";import"@carbon/icons/es/column--delete/16";import"@carbon/icons/es/watson-health/rotate--360/16";import"@carbon/icons/es/filter/16";import"@carbon/icons/es/app-connectivity/16";import"@carbon/icons/es/text--font/16";import"@carbon/icons/es/text--long-paragraph/16";import"@carbon/icons/es/character--whole-number/16";import"@carbon/icons/es/checkbox--checked/16";import"@carbon/icons/es/radio-button--checked/16";import"@carbon/icons/es/event--schedule/16";import"@carbon/icons/es/view--off/16";import"@carbon/icons/es/time/16";import"@carbon/icons/es/calendar/16";import"@carbon/icons/es/list--checked/16";import"@carbon/icons/es/list--bulleted/16";import"@carbon/icons/es/cloud--upload/16";import"@carbon/icons/es/locked/16";import"@carbon/icons/es/pause/16";import"@carbon/icons/es/unlocked/16";import"@carbon/icons/es/send/16";import"@carbon/icons/es/email/16";import"@carbon/icons/es/checkmark--outline/16";import"@carbon/icons/es/migrate--alt/16";import"@carbon/icons/es/checkbox--checked--filled/16";import"@carbon/icons/es/checkbox/16";import"@carbon/icons/es/ZIP/16";import"@carbon/icons/es/image/16";import"@carbon/icons/es/PPT/16";import"@carbon/icons/es/XLS/16";import"@carbon/icons/es/ibm--elo--method-composer/16";import"@carbon/icons/es/undo/16";import"@carbon/icons/es/catalog/16";import"@carbon/icons/es/table--split/16";const d=class{constructor(o){e(this,o),this.isFollowUpFormConfigOn=!1,this.isCommentingConfigOn=!1,this.getHandler=(e,o)=>{var i;const t=a.find((o=>o.fieldTypeId===e));return null===(i=null==t?void 0:t.handlers)||void 0===i?void 0:i[o]}}get question(){var e,o;return null===(o=null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex].formQuestions)||void 0===o?void 0:o[this.qIndex]}render(){var e;const i=a.find((e=>e.fieldTypeId===this.question.fieldTypeId)),t=!(i&&i.questionTextOptional);return o("div",{key:"95068b043a14a247dd9b19d7dfbf51e12fb921dd",class:"generic-configs-container"},o("div",{key:"e24021f68e2aa2a88bed1311d5278602ffc17857",class:"question-configs-header"},o("unity-typography",{key:"56d1375ed1470ae6ba2f70b0c61f7e63b2f93a35",variant:"h6"},this.question.questionTypeName," Question"),o("div",{key:"6a13390af40bc0ab60b2c6e8bb87e6bdf3c7d4c4"},!this.question.fieldProperties.ignoreRequiredConfig&&o("stencil-toggle",{key:"7e586c593599b9e769f199d6e640c8c591df6bc9",label:"Required",disabled:this.isViewOnly,checked:!0===this.question.required,onToggledChange:()=>{const e=!this.question.required,o=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(e,this.formSectionsDraft,this.sIndex,this.qIndex,"required");this.onFormSectionsDraftChange(o)},labelPosition:"right"}))),o("text-area",{key:"2d2bb7382a9357eacaff66f9685a999c5c303af9",label:"Question Text",value:this.question.questionText,disabled:this.isViewOnly,placeholder:"Enter the question text here",rows:2,maxRows:5,required:t,fullWidth:!0,margin:"dense",onInput:e=>{const o=e.target.value,i=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(o,this.formSectionsDraft,this.sIndex,this.qIndex,"questionText");this.onFormSectionsDraftChange(i)}}),o("text-area",{key:"34b7a2f68e321dc81eb5e888278fee9311b3562e",label:"Helper Text",value:this.question.helperText,disabled:this.isViewOnly,placeholder:"Enter the question's helper text here",rows:2,maxRows:4,fullWidth:!0,margin:"dense",onInput:e=>{const o=e.target.value,i=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(o,this.formSectionsDraft,this.sIndex,this.qIndex,"helperText");this.onFormSectionsDraftChange(i)}}),o("text-field",{key:"db83aa71b09d67ada7237c6c15b2eda64857b9ff",label:"Reference Code",value:null!==(e=this.question.referenceCode)&&void 0!==e?e:"",disabled:this.isViewOnly,placeholder:"Enter an optional reference code (32 character limit)",required:!1,margin:"dense",maxCharacter:32,onInput:e=>{const o=e.target.value.trim(),i=o.length>0?o:null,t=this.getHandler(this.question.fieldTypeId,"handleGenericProperty")(i,this.formSectionsDraft,this.sIndex,this.qIndex,"referenceCode");this.onFormSectionsDraftChange(t)}}),o("question-specific-configs-renderer",{key:"d42760cfffcf7e5f96c6a3e1d5225616162d6f72",formSectionsDraft:this.formSectionsDraft,sIndex:this.sIndex,qIndex:this.qIndex,isViewOnly:this.isViewOnly,onFormSectionsDraftChange:this.onFormSectionsDraftChange,lookupOptions:this.lookupOptions}),o("div",{key:"b84cc4f921571c0bfefe7e64a16c858e5a46ba91"},o("stencil-toggle",{key:"87b09135050f2dab8eb720e8ea9c2825f6e62ef8",label:"Read Only",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.readOnly,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"readOnly");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),this.isCommentingConfigOn&&o("div",{key:"73c01418e3f8fe6af6cb6313eaea5b74bb06d1bb"},o("stencil-toggle",{key:"6cc47f7bb341f43c9cedcbb598bf0a4c41f9422c",label:"Allow Comments",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowComments,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowComments");this.onFormSectionsDraftChange(e)},labelPosition:"right"})),this.formType==n.Standard&&this.isFollowUpFormConfigOn&&o("div",{key:"711b1d6096e5f074f12358648ee72ee7183eab31"},o("stencil-toggle",{key:"fa58cc1d51844583e59be4566c4329b9cc7bb754",label:"Allow Follow Up Forms",disabled:this.isViewOnly,checked:!0===this.question.fieldProperties.allowFollowUpForms,onToggledChange:()=>{if(this.isViewOnly)return;const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyBooleanToggle")(this.formSectionsDraft,this.sIndex,this.qIndex,"allowFollowUpForms");this.onFormSectionsDraftChange(e)},labelPosition:"right"})))}};d.style=".generic-configs-container{display:flex;flex-direction:column;}.question-configs-header{display:flex;justify-content:space-between;align-items:center}";const l=class{constructor(o){e(this,o)}get section(){var e;return null===(e=this.formSectionsDraft)||void 0===e?void 0:e[this.sIndex]}handleSectionFieldChange(e,o,i){const t=c(this.formSectionsDraft),s=Object.assign(Object.assign({},t[e]),{[o]:i});return t[e]=s,t}handleSectionRepeatablePropertyChange(e,o){const i=c(this.formSectionsDraft),t=Object.assign({},i[e]),s=Object.assign(Object.assign({},t.sectionProperties),{isRepeatable:o}),a=Object.assign(Object.assign({},t),{sectionProperties:s});return i[e]=a,i}render(){var e,i;return o("div",{key:"4b21597f784d38863713ab924e2d5ea5ca67dde6",class:"generic-configs-container"},o("text-area",{key:"10248d628022074795e1bfede542516f041cd29f",label:"Title",value:this.section.title||"",disabled:this.isViewOnly,placeholder:"Enter the section title here",rows:2,maxRows:5,fullWidth:!0,onInput:e=>{const o=this.handleSectionFieldChange(this.sIndex,"title",e.target.value);this.onFormSectionsDraftChange(o)}}),o("text-field",{key:"d3f21080e4d21f5a59f3342633c6a815d455ae49",label:"Reference Code",value:null!==(e=this.section.referenceCode)&&void 0!==e?e:"",disabled:this.isViewOnly,placeholder:"Enter an optional reference code (32 character limit)",maxCharacter:32,onInput:e=>{const o=e.target.value.trim(),i=this.handleSectionFieldChange(this.sIndex,"referenceCode",o.length>0?o:null);this.onFormSectionsDraftChange(i)}}),o("text-area",{key:"083ad784d62013e173bf81afefb2658a6d9baa16",label:"Section Text",value:this.section.sectionText||"",disabled:this.isViewOnly,placeholder:"Enter the section text here",rows:2,maxRows:4,fullWidth:!0,onInput:e=>{const o=this.handleSectionFieldChange(this.sIndex,"sectionText",e.target.value);this.onFormSectionsDraftChange(o)}}),o("stencil-toggle",{key:"29d2e6d198771fd864946cf4c1be23b76a1c90a6",label:"Repeatable",disabled:this.isViewOnly,checked:!0===(null===(i=this.section.sectionProperties)||void 0===i?void 0:i.isRepeatable)||!1,onToggledChange:()=>{const e=this.handleSectionRepeatablePropertyChange(this.sIndex,!this.section.sectionProperties.isRepeatable);this.onFormSectionsDraftChange(e)},labelPosition:"right"}))}};l.style=".generic-configs-container{display:flex;flex-direction:column}";const b=class{constructor(o){e(this,o),this.addSection=i(this,"addSection",7),this.addQuestion=i(this,"addQuestion",7),this.cancelClick=i(this,"cancelClick",7),this.questionsTemplate=[]}render(){return[o("div",{key:"2b9df2454125b427547a01cff651b44c6693fd43",class:"menu-header-container"},o("unity-typography",{key:"27502bb557425de481b558eb2d52afab3e8d0d46",variant:"body1"},"Choose a Question Type"),o("stencil-icon-button",{key:"93113c9a2e34d2201a68a0926530c9410f69b083",icon:r("close16"),onClick:()=>this.cancelClick.emit()})),o("div",{key:"aedd2994d5481f9f4258a7a67ea7a4525246bb9f",class:"menu-options-container"},this.questionsTemplate.map((e=>o("udp-button",{variant:"contained",color:"primary",onClick:()=>this.addQuestion.emit(e),startIcon:o("udp-icon",{iconName:e.icon,color:"inherit"})},e.questionTypeName))))]}};b.style=":host{display:flex;flex-direction:column;gap:var(--spacing-05, 24px);border:1px dashed var(--primary-color);padding:var(--spacing-05, 24px);box-sizing:border-box;background-color:var(--card-background-color, #fff);}.menu-options-container{display:flex;flex:row;flex-wrap:wrap;gap:var(--spacing-03, 8px)}.menu-header-container{display:flex;align-items:center;justify-content:space-between}";const h=class{constructor(o){e(this,o),this.hasPrimaryTextSlot=!1,this.hasSecondaryTextSlot=!1,this.hasActionsSlot=!1,this.hasStatusChipSlot=!1,this.avatarBackgroundColor="info",this.avatarVariant="rounded",this.clickable=!1,this.handleKeyPress=e=>{!this.clickable||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.onClick(e))}}componentWillLoad(){this.hasPrimaryTextSlot=!!this.hostEl.querySelector('[slot="primary-text"]'),this.hasSecondaryTextSlot=!!this.hostEl.querySelector('[slot="secondary-text"]'),this.hasActionsSlot=!!this.hostEl.querySelector('[slot="actions"]'),this.hasStatusChipSlot=!!this.hostEl.querySelector('[slot="status-chip"]')}render(){const e=this.primaryText||this.hasPrimaryTextSlot,i=this.secondaryText||this.hasSecondaryTextSlot;return o(t,{key:"056543123ba48b4e66e967df10333a13a2ed0642"},o("div",{key:"b34a2626fa5dafb80e3dd700678c0b4621af08d8",class:{"list-item":!0,clickable:this.clickable},onClick:this.onClick,onKeyPress:this.handleKeyPress,role:this.clickable?"button":void 0,tabindex:this.clickable?0:-1},o("div",{key:"ca922410ded5ab1cba72d0f1b1f0f46a720c6a6c",class:"upload-container"},o("slot",{key:"c7f2c591e9c112e6a5f8fd0acb1b42d52f72ecde",name:"drag-and-drop"})),this.iconName&&o("div",{key:"76014a00671cd7bfd5b6bfe8e09d93fc374c9aaa",class:"avatar-container"},o("udp-avatar",{key:"59800348a9eb0321c86d1b78586ce3b61ca07ccc",iconName:this.iconName,variant:this.avatarVariant,color:this.avatarBackgroundColor})),o("div",{key:"bfdd7a843645684f73ade799e8b84649beaa757a",class:"text-container"},e&&o("div",{key:"22a1e7cf76adab805f092abfdf7a0c44e9632d78",class:"primary-text",title:this.primaryText},o("slot",{key:"d4d02350731f2af375200890c075ee5afaf101cf",name:"primary-text"},o("unity-typography",{key:"f41c8438d8ef9331e0f0fde48a47fbc031b5f993",variant:"body"},this.primaryText))),i&&o("div",{key:"e66c1bea3654a2a44889ec8a43ca08fd089bec4b",class:"secondary-text",title:this.secondaryText},o("slot",{key:"dc0c38532e2f7ab14c8b9603e63e235da9f61766",name:"secondary-text"},o("unity-typography",{key:"ec7b1b01dd84c815f06eb0cc5bc00697ac0e0b71",variant:"body",color:"textSecondary"},this.secondaryText)))),this.hasStatusChipSlot&&o("div",{key:"7550eafaecf3a1f84614a61af27944b4f44ec1e8",class:"status-chip-container"},o("slot",{key:"4704f3c379a44f59b504f3aa00867710d0e43bf7",name:"status-chip"})),this.hasActionsSlot&&o("div",{key:"c91f98f464f8b4a6968d55f07eb926e0ab1d2a3d",class:"actions-container"},o("slot",{key:"880629a99da303acbed9ca869010823b1aceae87",name:"actions"}))))}get hostEl(){return s(this)}};h.style=".list-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-4, 16px);padding:var(--spacing-3, 12px) var(--spacing-4, 16px);border-bottom:1px solid var(--border-color, #e0e0e0);background-color:var(--card-background-color, #FFF);transition:background-color 0.1s}.list-item.clickable{cursor:grab}.list-item.clickable:hover{background-color:var(--primary-color-alpha-15, #f5f5f5)}.avatar-container{align-items:center}.text-container{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:4px}.primary-text,.secondary-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.primary-text{font-weight:500}.status-chip-container{display:flex;align-items:center;flex-shrink:0}.actions-container{display:flex;flex-shrink:0}";export{d as question_configs_renderer,l as section_configs_renderer,b as udp_forms_builder_menu,h as udp_forms_builder_question_item}
@@ -1 +1 @@
1
- import{r as e,h as t,a as i}from"./index-15aY63VA.js";class r{init(e){this.eGui=document.createElement("div"),this.eGui.classList.add("custom-header");const t=new Date(e.column.colDef.pivotKeys[0]),i=t.toLocaleString(void 0,{weekday:"short"}),r=t.toLocaleString(void 0,{month:"short",day:"numeric"}),o=document.createElement("div");o.classList.add("header-group");const s=document.createElement("div");s.classList.add("title"),s.textContent=i,o.appendChild(s);const l=document.createElement("div");l.classList.add("sub-title"),l.textContent=r,o.appendChild(l),this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}const o=class{constructor(t){e(this,t),this.rowData=[],this.gridBarTitle="",this.subTitle="",this.dateKey="",this.columnDefs=[],this.additionalGridOptions={},this.subtitleStatusMappingClasses={},this.showRowTotals=!0,this.dataLoading=!1,this.convertDatesFromUTC=!1,this.showLockedIcon=!1,this.rowGroupPanelShow="never",this.gridFunctions=[],this.filledRowData=[],this.formattedColumnDefs=[],this.externalFilterText="",this.handleGridApi=e=>{this.gridApi=e,this.gridApiCallback(e),this.gridApi.toggleLoadingOverlay(this.dataLoading)}}getDates(e,t){let i=[],r=new Date(e);for(;r<=t;)i.push(new Date(r)),r.setDate(r.getDate()+1);return i}fillInEmptyDates(e,t){let i=[...e];return t.forEach((e=>{i.push({[this.dateKey]:e.toISOString().split(".")[0],isDateRangePlaceholder:!0})})),i}updateRowData(){if(this.rowData&&this.startDate&&this.endDate){let e=this.getDates(new Date(this.startDate),new Date(this.endDate));const t=this.fillInEmptyDates(this.rowData,e);this.filledRowData=t}}dateCompare(e,t){const i=new Date(e);i.setHours(0,0,0,0);const r=new Date(t);return r.setHours(0,0,0,0),i.getTime()-r.getTime()}createColumnDefs(){let e=[...this.columnDefs];e.push({field:this.dateKey,pivot:!0,pivotComparator:this.dateCompare,suppressFiltersToolPanel:!0,valueGetter:e=>{let t="";return t=this.convertDatesFromUTC?new Date(e.data[this.dateKey]+"Z").toLocaleDateString("en-US"):new Date(e.data[this.dateKey]).toLocaleDateString("en-US"),t}}),this.formattedColumnDefs=e}toggleDataLoading(){var e;this.dataLoading?null===(e=this.gridApi)||void 0===e||e.toggleLoadingOverlay(!0):requestAnimationFrame((()=>{var e;this.dataLoading||null===(e=this.gridApi)||void 0===e||e.toggleLoadingOverlay(!1)}))}getGridFunctions(){return this.gridFunctions.map((e=>"quickFilter"!==e.name?e:Object.assign(Object.assign({},e),{params:Object.assign(Object.assign({},e.params),{callback:t=>{var i,r,o;this.externalFilterText=t,null===(i=this.gridApi)||void 0===i||i.onFilterChanged(),null===(o=null===(r=e.params)||void 0===r?void 0:r.callback)||void 0===o||o.call(r,t)}})})))}componentDidLoad(){this.createColumnDefs(),this.updateRowData()}render(){const e=(new Date).toLocaleDateString("en-US");return t("div",{key:"53ecd76b845d9da571cb9012dec4f0b1c914b715",class:"resource-timeline-calendar"},t("resource-timeline-primary-bar",{key:"612c81a82bea47081e33dd19917d42ddd9ae8597",gridBarTitle:this.gridBarTitle,subTitle:this.subTitle,primaryAction:this.primaryAction,secondaryAction:this.secondaryAction,clickBackward:this.handleClickBackward,clickForward:this.handleClickForward,clickToday:this.handleClickToday,subtitleStatus:this.subtitleStatus,subtitleStatusMappingClasses:this.subtitleStatusMappingClasses,disableHeaderActions:this.disableHeaderActions,showLockedIcon:this.showLockedIcon},t("slot",{key:"3f51ca9c80f33163cff4aebbd1d0e3208a47223a",name:"inline",slot:"inline"})),t("client-side-grid",{key:"42c524524f3362f4b68bf8c9c501f4288126ebb1",rowData:this.filledRowData,columnDefs:this.formattedColumnDefs,gridFunctions:this.getGridFunctions(),gridId:this.gridId,gridOptions:Object.assign(Object.assign({},this.additionalGridOptions),{components:{resourceTimelineCalendarHeader:r},processPivotResultColDef:t=>{if(t.suppressHeaderContextMenu=!0,!t.pivotTotalColumnIds&&t.pivotKeys){const i=t.pivotKeys[0],r=new Date(i).getDay();let o=[];i===e&&(o.push("today-header"),t.cellClass="today-column-border"),0!==r&&6!==r||o.push("weekend-header"),o.length>0&&(t.headerClass=o),t.headerComponent="resourceTimelineCalendarHeader",t.minWidth=70,t.resizable=!1}this.processPivotResultColDef&&this.processPivotResultColDef(t)},getRowHeight:e=>{var t,i,r;return e.node.group&&!0===(null===(r=null===(i=null===(t=e.node.allLeafChildren)||void 0===t?void 0:t[0])||void 0===i?void 0:i.data)||void 0===r?void 0:r.isDateRangePlaceholder)?0:null},rowClassRules:{"placeholder-group-row":e=>{var t,i,r;return e.node.group&&!0===(null===(r=null===(i=null===(t=e.node.allLeafChildren)||void 0===t?void 0:t[0])||void 0===i?void 0:i.data)||void 0===r?void 0:r.isDateRangePlaceholder)}},pivotMode:!0,alwaysPassFilter:e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.isDateRangePlaceholder)},quickFilterMatcher:()=>!0,isExternalFilterPresent:()=>this.externalFilterText.length>0,doesExternalFilterPass:e=>{var t,i;if(null===(t=e.data)||void 0===t?void 0:t.isDateRangePlaceholder)return!0;const r=this.externalFilterText.toLowerCase();return Object.values(null!==(i=e.data)&&void 0!==i?i:{}).some((e=>null!=e&&("object"==typeof e?Object.values(e).some((e=>"string"==typeof e&&e.toLowerCase().includes(r))):"string"==typeof e&&e.toLowerCase().includes(r))))},removePivotHeaderRowWhenSingleValueColumn:!0,suppressAggFuncInHeader:!0,pivotRowTotals:"after",suppressMovableColumns:!0,enableStrictPivotColumnOrder:!0,rowGroupPanelShow:this.rowGroupPanelShow,sideBar:{toolPanels:[{id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressPivotMode:!0,suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:""}}),gridApiCallback:this.handleGridApi}))}get el(){return i(this)}static get watchers(){return{rowData:[{updateRowData:0}],columnDefs:[{createColumnDefs:0}],dataLoading:[{toggleDataLoading:0}]}}};o.style='.resource-timeline-calendar{.header-group{display:flex;flex-direction:column;align-items:center}.header-group .title{color:var(--colorNeutralForeground3)}.custom-header{font-size:12px}.ag-header-cell,.ag-cell{border-right:1px solid var(--colorNeutralStroke3)}.ag-header-cell:last-of-type,.ag-cell:last-of-type{border-right:none}.ag-cell-wrapper{align-items:center;height:100%}.ag-group-value{height:100%}.today-header{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent);border-top:1px solid var(--colorPaletteBlueBorderActive)}.weekend-header{background-color:var(--colorNeutralBackground1Hover)}.ag-cell[col-id*="pivot"]{font-size:12px}.ag-header-cell-comp-wrapper{justify-content:center}.placeholder-group-row{overflow:hidden;border:none}}';export{o as resource_timeline_calendar}
1
+ import{r as e,h as t,a as i}from"./index-15aY63VA.js";class r{init(e){this.eGui=document.createElement("div"),this.eGui.classList.add("custom-header");const t=new Date(e.column.colDef.pivotKeys[0]),i=t.toLocaleString(void 0,{weekday:"short"}),r=t.toLocaleString(void 0,{month:"short",day:"numeric"}),o=document.createElement("div");o.classList.add("header-group");const s=document.createElement("div");s.classList.add("title"),s.textContent=i,o.appendChild(s);const l=document.createElement("div");l.classList.add("sub-title"),l.textContent=r,o.appendChild(l),this.eGui.appendChild(o)}getGui(){return this.eGui}refresh(){return!1}}const o=class{constructor(t){e(this,t),this.rowData=[],this.gridBarTitle="",this.subTitle="",this.dateKey="",this.columnDefs=[],this.additionalGridOptions={},this.subtitleStatusMappingClasses={},this.showRowTotals=!0,this.dataLoading=!1,this.convertDatesFromUTC=!1,this.showLockedIcon=!1,this.rowGroupPanelShow="never",this.gridFunctions=[],this.filledRowData=[],this.formattedColumnDefs=[],this.externalFilterText="",this.handleGridApi=e=>{this.gridApi=e,this.gridApiCallback(e),this.gridApi.toggleLoadingOverlay(this.dataLoading)}}getDates(e,t){let i=[],r=new Date(e);for(;r<=t;)i.push(new Date(r)),r.setDate(r.getDate()+1);return i}fillInEmptyDates(e,t){let i=[...e];return t.forEach((e=>{i.push({[this.dateKey]:e.toISOString().split(".")[0],isDateRangePlaceholder:!0})})),i}updateRowData(){if(this.rowData&&this.startDate&&this.endDate){let e=this.getDates(new Date(this.startDate),new Date(this.endDate));const t=this.fillInEmptyDates(this.rowData,e);this.filledRowData=t}}dateCompare(e,t){const i=new Date(e);i.setHours(0,0,0,0);const r=new Date(t);return r.setHours(0,0,0,0),i.getTime()-r.getTime()}createColumnDefs(){let e=[...this.columnDefs];e.push({field:this.dateKey,pivot:!0,pivotComparator:this.dateCompare,suppressFiltersToolPanel:!0,valueGetter:e=>{let t="";return t=this.convertDatesFromUTC?new Date(e.data[this.dateKey]+"Z").toLocaleDateString("en-US"):new Date(e.data[this.dateKey]).toLocaleDateString("en-US"),t}}),this.formattedColumnDefs=e}toggleDataLoading(){var e;this.dataLoading?null===(e=this.gridApi)||void 0===e||e.toggleLoadingOverlay(!0):requestAnimationFrame((()=>{var e;this.dataLoading||null===(e=this.gridApi)||void 0===e||e.toggleLoadingOverlay(!1)}))}getGridFunctions(){return this.gridFunctions.map((e=>"quickFilter"!==e.name?e:Object.assign(Object.assign({},e),{params:Object.assign(Object.assign({},e.params),{callback:t=>{var i,r,o;this.externalFilterText=t,null===(i=this.gridApi)||void 0===i||i.onFilterChanged(),null===(o=null===(r=e.params)||void 0===r?void 0:r.callback)||void 0===o||o.call(r,t)}})})))}componentDidLoad(){this.createColumnDefs(),this.updateRowData()}render(){const e=(new Date).toLocaleDateString("en-US");return t("div",{key:"68bf10c2a22e699035aa362e3c7141d05b0b4d10",class:"resource-timeline-calendar"},t("resource-timeline-primary-bar",{key:"3db7cf90376a407d7da369fd0eb4e90ea7abf4e5",gridBarTitle:this.gridBarTitle,subTitle:this.subTitle,primaryAction:this.primaryAction,secondaryAction:this.secondaryAction,clickBackward:this.handleClickBackward,clickForward:this.handleClickForward,clickToday:this.handleClickToday,subtitleStatus:this.subtitleStatus,subtitleStatusMappingClasses:this.subtitleStatusMappingClasses,disableHeaderActions:this.disableHeaderActions,showLockedIcon:this.showLockedIcon},t("slot",{key:"b1f1bd625f1331d1003f2432ed2e0d1ab8da9cb6",name:"inline",slot:"inline"})),t("client-side-grid",{key:"26f132b1077de719c03b8b732efc26d0722bf8b2",rowData:this.filledRowData,columnDefs:this.formattedColumnDefs,gridFunctions:this.getGridFunctions(),gridId:this.gridId,gridOptions:Object.assign(Object.assign({},this.additionalGridOptions),{components:{resourceTimelineCalendarHeader:r},processPivotResultColDef:t=>{if(t.suppressHeaderContextMenu=!0,!t.pivotTotalColumnIds&&t.pivotKeys){const i=t.pivotKeys[0],r=new Date(i).getDay();let o=[];i===e&&(o.push("today-header"),t.cellClass="today-column-border"),0!==r&&6!==r||o.push("weekend-header"),o.length>0&&(t.headerClass=o),t.headerComponent="resourceTimelineCalendarHeader",t.minWidth=70,t.resizable=!1}this.processPivotResultColDef&&this.processPivotResultColDef(t)},getRowHeight:e=>{var t,i,r;return e.node.group&&!0===(null===(r=null===(i=null===(t=e.node.allLeafChildren)||void 0===t?void 0:t[0])||void 0===i?void 0:i.data)||void 0===r?void 0:r.isDateRangePlaceholder)?0:null},rowClassRules:{"placeholder-group-row":e=>{var t,i,r;return e.node.group&&!0===(null===(r=null===(i=null===(t=e.node.allLeafChildren)||void 0===t?void 0:t[0])||void 0===i?void 0:i.data)||void 0===r?void 0:r.isDateRangePlaceholder)}},pivotMode:!0,alwaysPassFilter:e=>{var t;return!0===(null===(t=e.data)||void 0===t?void 0:t.isDateRangePlaceholder)},quickFilterMatcher:()=>!0,isExternalFilterPresent:()=>this.externalFilterText.length>0,doesExternalFilterPass:e=>{var t,i;if(null===(t=e.data)||void 0===t?void 0:t.isDateRangePlaceholder)return!0;const r=this.externalFilterText.toLowerCase();return Object.values(null!==(i=e.data)&&void 0!==i?i:{}).some((e=>null!=e&&("object"==typeof e?Object.values(e).some((e=>"string"==typeof e&&e.toLowerCase().includes(r))):"string"==typeof e&&e.toLowerCase().includes(r))))},removePivotHeaderRowWhenSingleValueColumn:!0,suppressAggFuncInHeader:!0,pivotRowTotals:"after",suppressMovableColumns:!0,enableStrictPivotColumnOrder:!0,rowGroupPanelShow:this.rowGroupPanelShow,sideBar:{toolPanels:[{id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},{id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel",toolPanelParams:{suppressPivotMode:!0,suppressRowGroups:!0,suppressValues:!0,suppressPivots:!0,suppressColumnSelectAll:!0,suppressColumnExpandAll:!0}}],defaultToolPanel:""}}),gridApiCallback:this.handleGridApi}))}get el(){return i(this)}static get watchers(){return{rowData:[{updateRowData:0}],columnDefs:[{createColumnDefs:0}],dataLoading:[{toggleDataLoading:0}]}}};o.style='.resource-timeline-calendar{.header-group{display:flex;flex-direction:column;align-items:center}.header-group .title{color:var(--colorNeutralForeground3)}.custom-header{font-size:12px}.ag-header-cell,.ag-cell{border-right:1px solid var(--colorNeutralStroke3)}.ag-header-cell:last-of-type,.ag-cell:last-of-type{border-right:none}.ag-cell-wrapper{align-items:center;height:100%}.ag-group-value{height:100%}.today-header{background-color:color-mix(in srgb, var(--colorPaletteBlueBackground2) 20%, transparent);border-top:1px solid var(--colorPaletteBlueBorderActive)}.weekend-header{background-color:var(--colorNeutralBackground1Hover)}.ag-cell[col-id*="pivot"]{font-size:12px}.ag-header-cell-comp-wrapper{justify-content:center}.placeholder-group-row{overflow:hidden;border:none}}';export{o as resource_timeline_calendar}
@@ -1 +1 @@
1
- import{r as e,h as i}from"./index-15aY63VA.js";const a={primary:"brand",secondary:"informative",error:"danger",success:"success",warning:"warning",info:"informative",monochrome:"subtle",gray:"subtle"},t=class{constructor(i){e(this,i),this.subtitleStatusMappingClasses={}}render(){var e,t,n,d;const s=(null===(e=this.primaryAction)||void 0===e?void 0:e.onClick)?Object.assign(Object.assign({},this.primaryAction),{label:null!==(t=this.primaryAction.label)&&void 0!==t?t:"",disabled:this.primaryAction.disabled||this.disableHeaderActions}):void 0,o=(null===(n=this.secondaryAction)||void 0===n?void 0:n.onClick)?[Object.assign(Object.assign({},this.secondaryAction),{label:null!==(d=this.secondaryAction.label)&&void 0!==d?d:"",disabled:this.secondaryAction.disabled||this.disableHeaderActions})]:[];return i("udp-primary-action-header",{key:"001aaaf33014bae0dc040dc99cd3c345204e7598",primaryAction:s,secondaryActions:o},i("span",{key:"b5e75e3afc403d7e058d3ad8b5724bb864bcfa86",slot:"title"},null!=this.gridBarTitle?i("udp-text",{variant:"subtitle1",block:!1},this.gridBarTitle):i("udp-skeleton-loading",{width:"200px"})),i("span",{key:"c65c7fa847e2eff367af51eb541dc6b924f20299",slot:"subtitle"},null!=this.subTitle?i("udp-text",{variant:"caption1"},this.subTitle):i("udp-skeleton-loading",{width:"200px"})),i("span",{key:"b5dbed68605112c682eea3dd9632bf3b337c4ce9",slot:"inline",class:"inline-status"},i("slot",{key:"830ca85bb725c2c9802467c5b94cee7d750b7ffe",name:"inline"}),this.subtitleStatus&&i("udp-fluent-badge",{key:"a46f95b0e925b234c93d15d7fa81d1fa0cbea205",appearance:"outline",color:a[this.subtitleStatusMappingClasses[this.subtitleStatus]]},this.subtitleStatus),this.showLockedIcon&&i("udp-fluent-icon-button",{key:"6dc72bda521544d4e8e97f55177bb4d645f150cd",iconName:"lock",appearance:"outline",size:"small",disabled:!0,ariaLabel:"Locked"})),this.clickBackward&&i("div",{key:"76cf8ed9e40002c90610d70c9c1565d45c90ec49",slot:"actions",class:"date-navigation"},i("udp-fluent-icon-button",{key:"5f1cf8e0c1d97120ac9ebc0fd9065fb601468119",ariaLabel:"Previous period",iconName:"chevron-left",appearance:"subtle",shape:"rounded",disabled:this.disableHeaderActions,onClick:this.clickBackward}),this.clickToday&&i("udp-fluent-button",{key:"015f175642eb926298b05024bacef19177e73e11",appearance:"subtle",disabled:this.disableHeaderActions,onClick:this.clickToday},"Today"),i("udp-fluent-icon-button",{key:"0b152648a9cc9e972b43f7a075185b6bc0ec4c93",ariaLabel:"Next period",iconName:"chevron-right",appearance:"subtle",shape:"rounded",disabled:this.disableHeaderActions,onClick:this.clickForward})))}};t.style=".inline-status{display:flex;align-items:center;gap:4px}.date-navigation{display:flex;align-items:center;border-radius:var(--borderRadiusMedium);border:1px solid var(--colorNeutralStroke1);overflow:hidden}.date-navigation udp-fluent-icon-button{position:relative;z-index:1;margin:0 -4px}.date-navigation udp-fluent-button{position:relative;z-index:0}";export{t as resource_timeline_primary_bar}
1
+ import{r as e,h as a}from"./index-15aY63VA.js";const i={primary:"brand",secondary:"informative",error:"danger",success:"success",warning:"warning",info:"informative",monochrome:"subtle",gray:"subtle"},t=class{constructor(a){e(this,a),this.subtitleStatusMappingClasses={}}render(){var e,t,n,s;const d=(null===(e=this.primaryAction)||void 0===e?void 0:e.onClick)?Object.assign(Object.assign({},this.primaryAction),{label:null!==(t=this.primaryAction.label)&&void 0!==t?t:"",disabled:this.primaryAction.disabled||this.disableHeaderActions}):void 0,o=(null===(n=this.secondaryAction)||void 0===n?void 0:n.onClick)?[Object.assign(Object.assign({},this.secondaryAction),{label:null!==(s=this.secondaryAction.label)&&void 0!==s?s:"",disabled:this.secondaryAction.disabled||this.disableHeaderActions})]:[];return a("udp-primary-action-header",{key:"46489bfbccb43fe45626d92a512c8a3fbbf09631",primaryAction:d,secondaryActions:o},a("span",{key:"723a458e520b6d030c2edd08125bb6f61e1b6517",slot:"title"},null!=this.gridBarTitle?a("udp-text",{variant:"subtitle1",block:!1},this.gridBarTitle):a("udp-skeleton-loading",{width:"200px"})),a("span",{key:"2fee3fc67636922ad450befc70aeb56c8c1ab5f7",slot:"subtitle"},null!=this.subTitle?a("udp-text",{variant:"caption1"},this.subTitle):a("udp-skeleton-loading",{width:"200px"})),a("span",{key:"347a26dc9983405f613270abdffc80017f72478c",slot:"inline",class:"inline-status"},a("slot",{key:"bb47383c2eeae6df970afca449fbc98be25e09e5",name:"inline"}),this.subtitleStatus&&a("udp-fluent-badge",{key:"b50ed04ecfe5af3ed8e9f7f50d6648668bf11945",appearance:"outline",color:i[this.subtitleStatusMappingClasses[this.subtitleStatus]]},this.subtitleStatus),this.showLockedIcon&&a("udp-fluent-icon-button",{key:"3001ffebd8fd35746e2dae76f9ea10705ff87495",iconName:"lock",appearance:"outline",size:"small",disabled:!0,ariaLabel:"Locked"})),this.clickBackward&&a("div",{key:"bc268b6328bacba27a74e81b4db46acc748b461b",slot:"actions",class:"date-navigation"},a("udp-fluent-icon-button",{key:"5e9be7e6bc66f2c71ee5b1e2258b6fdc15b332af",ariaLabel:"Previous period",iconName:"chevron-left",appearance:"subtle",shape:"rounded",disabled:this.disableHeaderActions,onClick:this.clickBackward}),this.clickToday&&a("udp-fluent-button",{key:"1c0e614f8fe81c767abb1380ab2e23bcfaafde5e",appearance:"subtle",disabled:this.disableHeaderActions,onClick:this.clickToday},"Today"),a("udp-fluent-icon-button",{key:"ca220fe8edd6734b25e7ba2bda978ec36681c326",ariaLabel:"Next period",iconName:"chevron-right",appearance:"subtle",shape:"rounded",disabled:this.disableHeaderActions,onClick:this.clickForward})))}};t.style=".inline-status{display:flex;align-items:center;gap:4px}.date-navigation{display:flex;align-items:center;border-radius:var(--borderRadiusMedium);border:1px solid var(--colorNeutralStroke1);overflow:hidden}.date-navigation udp-fluent-icon-button{position:relative;z-index:1;margin:0 -4px}.date-navigation udp-fluent-button{position:relative;z-index:0}";export{t as resource_timeline_primary_bar}
@@ -0,0 +1 @@
1
+ import t from"@tiptap/extension-document";import i from"@tiptap/extension-paragraph";import o from"@tiptap/extension-text";import p from"@tiptap/extension-bold";import e from"@tiptap/extension-italic";import n from"@tiptap/extension-underline";import r from"@tiptap/extension-strike";import{Link as m}from"@tiptap/extension-link";import{BulletList as a,OrderedList as s,ListItem as x}from"@tiptap/extension-list";import f from"@tiptap/extension-blockquote";import l from"@tiptap/extension-heading";import k from"@tiptap/extension-hard-break";import{Table as b,TableRow as c,TableHeader as d,TableCell as u}from"@tiptap/extension-table";import g from"@tiptap/extension-image";const h=()=>[t,i,o,p,e,n,r,l.configure({levels:[1,2,3]}),a,s,x,f,k,b.configure({resizable:!0}),c,d,u,g.configure({allowBase64:!0}),m.configure({openOnClick:!1,autolink:!0})];export{h as r}
@@ -1 +1 @@
1
- import{r as o,c as r,h as t}from"./index-15aY63VA.js";import{T as e,A as l}from"./apiUtils-Cq-WuEqc.js";import{p as i}from"./lookupHelper-CSo9DNLr.js";import{S as n,a,L as s,d as u}from"./searchObject-DpUZkcYC.js";import{c as d}from"./searchObjectHelper-BjA6OHxg.js";import{m as c}from"./makeApiCall-B-daVutk.js";import{C as h}from"./configService-D_9j963S.js";import p from"lodash-es/isEqual";import"./tenantUtils-Basdb1b1.js";import"axios";const v={equals:a.EQUALS,contains:a.LIKE,notContains:a.NOT_LIKE,notEqual:a.NOT_EQUALS,greaterThan:a.GREATER_THAN,lessThan:a.LESS_THAN,greaterThanOrEqual:a.GREATER_THAN_OR_EQUAL,lessThanOrEqual:a.LESS_THAN_OR_EQUAL,between:a.BETWEEN,inRange:a.BETWEEN,blank:a.NULL,notBlank:a.NOT_NULL,startsWith:a.STARTSWITH,endsWith:a.ENDSWITH};function f(o){return o.charAt(0).toUpperCase()+o.slice(1)}function g(o){const r=[],t=[];let e=1;if(!o)return{filterElements:r,filterGroups:t};function l(o,i,n){var d,c,h,p,g,m,O;if(!o)return-1;if("join"===o.filterType&&Array.isArray(o.conditions)){const r=e++;t.push({groupId:r,logicalSearchOperator:"AND"===o.type?s.AND:s.OR,parentGroupId:i});for(const t of o.conditions)l(t,r);return r}if(o.conditions){const r=e++;t.push({groupId:r,logicalSearchOperator:"AND"===o.operator?s.AND:s.OR,parentGroupId:i});for(const t of o.conditions)l(t,r,n);return-1}if("text"!==o.filterType&&"number"!==o.filterType||r.push("true"===o.type||"false"===o.type?{searchField:f(null!==(d=null!=n?n:o.colId)&&void 0!==d?d:""),searchValue:o.type,searchOperator:a.EQUALS,groupId:i}:{searchField:f(null!==(c=null!=n?n:o.colId)&&void 0!==c?c:""),searchValue:`${o.filter}${o.filterTo?`,${o.filterTo}`:""}`,searchOperator:v[null!==(h=o.type)&&void 0!==h?h:""],groupId:i}),"date"===o.filterType&&r.push({searchField:f(null!==(p=null!=n?n:o.colId)&&void 0!==p?p:""),searchValue:`${o.dateFrom}${o.dateTo?`,${o.dateTo}`:""}`,searchOperator:v[null!==(g=o.type)&&void 0!==g?g:""],groupId:i}),"set"===o.filterType){const t=null!==(O=null===(m=o.values)||void 0===m?void 0:m.slice(0,u.IN_CLAUSE_MAX_ELEMENTS))&&void 0!==O?O:[];r.push({searchField:f(null!=n?n:""),searchValue:t.join(),searchOperator:a.IN,groupId:i})}return-1}if(o.filterType)l(o,null);else{const r=o;for(const o of Object.keys(r))l(r[o],null,o)}return{filterElements:r,filterGroups:t}}function m(o){var r,t;const{rowGroupCols:e,groupKeys:l}=o;return(null!==(r=null==e?void 0:e.length)&&void 0!==r?r:0)>0&&(null!==(t=null==l?void 0:l.length)&&void 0!==t?t:0)<e.length}const O=class{constructor(t){o(this,t),this.gridReady=r(this,"gridReady",7),this.columnDefs=[],this.gridFunctions=[]}handleGridReady(o){this.gridApi=o.detail,this.setDatasource(),this.setGridModel()}handleSearchMethodUpdate(o,r){p(o,r)||(this.setDatasource(),this.setGridModel())}setDatasource(){var o;if(!this.searchMethodConfig||!this.gridApi)return;const{apiMethodId:r,customSearchObject:t,requestUrl:s,integrationFallbackApiMethodId:u}=this.searchMethodConfig;t&&(null==t?void 0:t.pageSize)&&this.gridApi.setGridOption("cacheBlockSize",null==t?void 0:t.pageSize),(r||s)&&(this.dataSource=(o=>{const{apiMethodId:r,requestUrl:t,integrationFallbackApiMethodId:s,externalSearchObject:u={}}=o;return{async getRows(o){var p,v;const{rowGroupCols:O,groupKeys:b}=o.request,j=o.api.getGridOption("context"),S=function(o,r={},t){var e;const{startRow:l,endRow:i,filterModel:s,sortModel:u,rowGroupCols:c,groupKeys:h,valueCols:p}=o,v=null!=l?l:0,O=(null!=i?i:v+100)-v,b=Math.floor(v/O)+1,j=null==t?void 0:t.quickFilterSearch,S=null==t?void 0:t.advancedSearch,I=d([{filterElements:null==r?void 0:r.filterElements,filterGroups:null==r?void 0:r.filterGroups,logicalSearchOperator:null==r?void 0:r.logicalSearchOperator},s&&Object.keys(s).length?g(s):{},{filterElements:null==j?void 0:j.filterElements,filterGroups:null==j?void 0:j.filterGroups,logicalSearchOperator:null==j?void 0:j.logicalSearchOperator},{filterElements:null==S?void 0:S.filterElements,filterGroups:null==S?void 0:S.filterGroups,logicalSearchOperator:null==S?void 0:S.logicalSearchOperator}]),w={pageNumber:b,pageSize:O,orderElements:[],filterElements:I.filterElements,filterGroups:I.filterGroups,groupProperty:[],groupOperationList:[],groupingType:"",eagerLoad:null!==(e=null==r?void 0:r.eagerLoad)&&void 0!==e&&e,getAll:null==r?void 0:r.getAll,logicalSearchOperator:I.logicalSearchOperator};return(null==u?void 0:u.length)&&function(o,r){var t;o.orderElements=[...null!==(t=o.orderElements)&&void 0!==t?t:[],...r.map((o=>({sortColumn:f(o.colId),sortDirection:o.sort.toUpperCase()})))]}(w,u),(null==c?void 0:c.length)>0&&function(o,r,t){var e,l,i;const n=t.length;if(!(n>=r.length)){const t=f(r[n].field);o.groupProperty=[t],(null===(e=o.orderElements)||void 0===e?void 0:e.some((o=>o.sortColumn===t)))||(o.orderElements=[...null!==(l=o.orderElements)&&void 0!==l?l:[],{sortColumn:t,sortDirection:"ASC"}])}if(t.length>0){const e=t.map(((o,t)=>{var e,l;return{searchField:f(null!==(l=null===(e=r[t])||void 0===e?void 0:e.field)&&void 0!==l?l:""),searchOperator:a.EQUALS,searchValue:o,groupId:null}}));o.filterElements=[...null!==(i=o.filterElements)&&void 0!==i?i:[],...e]}}(w,c,h),m(o)&&((null==p?void 0:p.length)>0?(w.groupingType=n.Aggregate,w.groupOperationList=p.map((o=>{var r,t;return{operation:(null!==(r=o.aggFunc)&&void 0!==r?r:"count").toUpperCase(),property:f(null!==(t=o.field)&&void 0!==t?t:o.id)}}))):w.groupingType=n.Distinct),w}(o.request,u,j),I=m(o.request);o.api.setGridOption("context",Object.assign(Object.assign({},o.api.getGridOption("context")),{searchObject:S}));try{let n;if(t&&s?n=await e(S,s,t):t?n=await c("POST",t,S):r?n=await l(S,r,h.config.UNITY_API_DOMAIN+h.integrationV1ApiUrl,!1):(console.error("No apiMethodId or url provided to search grid"),o.fail()),null===(p=null==n?void 0:n.pageList)||void 0===p?void 0:p.length){let r;if(I){const o=null===(v=O[b.length])||void 0===v?void 0:v.field;r=n.pageList.map((r=>({[o]:r[o]})))}else{const t=o.api.getColumnDefs();r=await i(n.pageList,t)}o.success({rowData:r,rowCount:Number(n.total)})}else o.success({rowData:[],rowCount:0});o.api.setGridOption("context",Object.assign(Object.assign({},o.api.getGridOption("context")),{rowCount:Number(n.total)}))}catch(r){console.error("Failed to fetch data:",r),o.fail()}}}})({apiMethodId:r,requestUrl:s,integrationFallbackApiMethodId:u,externalSearchObject:t?{filterElements:t.filterElements,filterGroups:t.filterGroups,logicalSearchOperator:t.logicalSearchOperator,eagerLoad:null!==(o=t.eagerLoad)&&void 0!==o&&o,getAll:t.getAll}:void 0}))}setGridModel(){if(!this.searchMethodConfig||!this.gridApi)return;const{customSearchObject:o}=this.searchMethodConfig;if(o){const r=function(o){var r,t,e;const l=[];return(null===(r=null==o?void 0:o.orderElements)||void 0===r?void 0:r.length)&&l.push(...o.orderElements.map(((o,r)=>({colId:o.sortColumn,sort:o.sortDirection.toLowerCase(),sortIndex:r})))),(null===(t=null==o?void 0:o.groupProperty)||void 0===t?void 0:t.length)&&l.push(...o.groupProperty.map(((o,r)=>({colId:o,rowGroup:!0,rowGroupIndex:r})))),(null===(e=null==o?void 0:o.groupOperationList)||void 0===e?void 0:e.length)&&l.push(...o.groupOperationList.map((o=>({colId:o.property,aggFunc:o.operation.toLowerCase()})))),l}(o);this.gridApi.applyColumnState({state:r,defaultState:{sort:null,rowGroup:!1,aggFunc:null}})}}render(){return t("server-side-grid",{key:"b9065e682294dcf8b7d7af167dfa54887dda7c31",onGridReady:o=>this.handleGridReady(o),dataSource:this.dataSource,gridFunctions:this.gridFunctions,columnDefs:this.columnDefs,gridOptions:this.gridOptions,gridHeaderConfig:this.gridHeaderConfig,gridId:this.gridId,entityName:this.entityName,gridHeight:this.gridHeight,gridApiCallback:this.gridApiCallback})}static get watchers(){return{searchMethodConfig:[{handleSearchMethodUpdate:0}]}}};export{O as search_method_grid}
1
+ import{r as t,c as i,h as e}from"./index-15aY63VA.js";import{T as s,A as o}from"./apiUtils-CXqsYwOQ.js";import{r as a,d as r,p as d,e as l}from"./lookupHelper-D3LSjaES.js";import{m as h}from"./makeApiCall-B-daVutk.js";import{s as n,a as c,l as u,w as p,i as m}from"./extraFieldsHelper-CaBMA4HJ.js";import{C as v}from"./configService-CehZzjhw.js";import{E as g}from"./extraFields-Cnpy_Bm7.js";import f from"lodash-es/isEqual";import"./tenantUtils-Basdb1b1.js";import"./getCurrentApiCatalogId-DeurXd9l.js";import"./searchObject-DpUZkcYC.js";import"axios";const x=class{constructor(e){t(this,e),this.gridReady=i(this,"gridReady",7),this.columnDefs=[],this.gridFunctions=[],this.extraFieldColumnDefs=[],this.extraFieldsReady=!0,this.extraFieldsRequestId=0}handleGridReady(t){this.gridApi=t.detail,this.writeExtraFieldsContext(),this.setDatasource(),this.setGridModel()}writeExtraFieldsContext(){this.gridApi&&this.gridApi.setGridOption("context",Object.assign(Object.assign({},this.gridApi.getGridOption("context")),{extraFields:this.extraFields}))}handleSearchMethodUpdate(t,i){f(t,i)||(this.setDatasource(),this.setGridModel())}componentWillLoad(){this.loadExtraFieldColumns()}handleExtraFieldsUpdate(t,i){f(t,i)||this.reloadExtraFields()}handleEntityNameUpdate(t,i){this.extraFields&&t!==i&&this.reloadExtraFields()}reloadExtraFields(){this.loadExtraFieldColumns(),this.writeExtraFieldsContext(),this.setDatasource()}async loadExtraFieldColumns(){const t=++this.extraFieldsRequestId;if(!this.extraFields)return this.extraFieldColumnDefs=[],void(this.extraFieldsReady=!0);this.extraFieldsReady=!1;const i=await u(this.extraFields,this.entityName);t===this.extraFieldsRequestId&&(this.extraFieldColumnDefs=i,this.extraFieldsReady=!0,this.gridApi&&p(this.gridApi,this.mergedColumnDefs().length,(()=>{t===this.extraFieldsRequestId&&(this.setDatasource(),this.setGridModel())})))}mergedColumnDefs(){var t,i,e;return this.extraFieldsReady?(null===(t=this.columnDefs)||void 0===t?void 0:t.length)?m(this.columnDefs,this.extraFieldColumnDefs,null===(e=this.extraFields)||void 0===e?void 0:e.position):null!==(i=this.columnDefs)&&void 0!==i?i:[]:[]}setDatasource(){var t;if(!this.searchMethodConfig||!this.gridApi||!this.extraFieldsReady)return;const{apiMethodId:i,customSearchObject:e,requestUrl:u,integrationFallbackApiMethodId:p}=this.searchMethodConfig;e&&(null==e?void 0:e.pageSize)&&this.gridApi.setGridOption("cacheBlockSize",null==e?void 0:e.pageSize),(i||u)&&(this.dataSource=(t=>{const{apiMethodId:i,requestUrl:e,integrationFallbackApiMethodId:u,externalSearchObject:p={},extraFields:m}=t;return{async getRows(t){var f,x,j;const{rowGroupCols:b,groupKeys:w}=t.request,C=t.api.getGridOption("context"),F=t.api.getColumnDefs(),O=await a(t.request.filterModel,null!=F?F:[]);if(void 0===O)return void t.success({rowData:[],rowCount:0});const I=r(Object.assign(Object.assign({},t.request),{filterModel:O}),p,C,n(F));m&&(I.includeUdpExtraFieldValues=!0);const S=l(t.request);t.api.setGridOption("context",Object.assign(Object.assign({},t.api.getGridOption("context")),{searchObject:I}));try{let a;if(e&&u?a=await s(I,u,e):e?a=await h("POST",e,I):i?a=await o(I,i,v.config.UNITY_API_DOMAIN+v.integrationV1ApiUrl,!1):(console.error("No apiMethodId or url provided to search grid"),t.fail()),null===(f=null==a?void 0:a.pageList)||void 0===f?void 0:f.length){let i;if(S){const t=null===(x=b[w.length])||void 0===x?void 0:x.field;i=a.pageList.map((i=>({[t]:i[t]})))}else{const t=m?await c(a.pageList,null!==(j=m.prefix)&&void 0!==j?j:g):a.pageList;i=await d(t,F)}t.success({rowData:i,rowCount:Number(a.total)})}else t.success({rowData:[],rowCount:0});t.api.setGridOption("context",Object.assign(Object.assign({},t.api.getGridOption("context")),{rowCount:Number(a.total)}))}catch(i){console.error("Failed to fetch data:",i),t.fail()}}}})({apiMethodId:i,requestUrl:u,integrationFallbackApiMethodId:p,extraFields:this.extraFields?{prefix:this.extraFields.prefix}:void 0,externalSearchObject:e?{filterElements:e.filterElements,filterGroups:e.filterGroups,logicalSearchOperator:e.logicalSearchOperator,eagerLoad:null!==(t=e.eagerLoad)&&void 0!==t&&t,getAll:e.getAll}:void 0}))}setGridModel(){if(!this.searchMethodConfig||!this.gridApi)return;const{customSearchObject:t}=this.searchMethodConfig;if(t){const i=function(t){var i,e,s;const o=[];return(null===(i=null==t?void 0:t.orderElements)||void 0===i?void 0:i.length)&&o.push(...t.orderElements.map(((t,i)=>({colId:t.sortColumn,sort:t.sortDirection.toLowerCase(),sortIndex:i})))),(null===(e=null==t?void 0:t.groupProperty)||void 0===e?void 0:e.length)&&o.push(...t.groupProperty.map(((t,i)=>({colId:t,rowGroup:!0,rowGroupIndex:i})))),(null===(s=null==t?void 0:t.groupOperationList)||void 0===s?void 0:s.length)&&o.push(...t.groupOperationList.map((t=>({colId:t.property,aggFunc:t.operation.toLowerCase()})))),o}(t);this.gridApi.applyColumnState({state:i,defaultState:{sort:null,rowGroup:!1,aggFunc:null}})}}render(){return e("server-side-grid",{key:"7ebf7ba23217830a5e42766c94481fa2a9645cae",onGridReady:t=>this.handleGridReady(t),dataSource:this.dataSource,gridFunctions:this.gridFunctions,columnDefs:this.mergedColumnDefs(),gridOptions:this.gridOptions,gridHeaderConfig:this.gridHeaderConfig,gridId:this.gridId,entityName:this.entityName,gridHeight:this.gridHeight,gridApiCallback:this.gridApiCallback})}static get watchers(){return{searchMethodConfig:[{handleSearchMethodUpdate:0}],extraFields:[{handleExtraFieldsUpdate:0}],entityName:[{handleEntityNameUpdate:0}]}}};export{x as search_method_grid}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./index-15aY63VA.js";const s=class{constructor(e){t(this,e),this.gridReady=i(this,"gridReady",7),this.gridFunctions=[],this.gridOptions={}}handleGridReady(t){this.gridApi=t.detail,this.updateDataSource()}updateDataSource(){this.gridApi&&this.dataSource&&this.gridApi.setGridOption("serverSideDatasource",this.dataSource)}componentWillLoad(){this.serverSideConfig=Object.assign(Object.assign({paginationAutoPageSize:!0,suppressSetFilterByDefault:!0},this.gridOptions),{rowModelType:"serverSide"})}render(){return e("ag-grid-base",{key:"a0f00965f808a710a422032e8c923b387592026f",columnDefs:this.columnDefs,gridOptions:this.serverSideConfig,headerConfig:this.gridHeaderConfig,onGridReady:t=>this.handleGridReady(t),gridFunctions:this.gridFunctions,gridId:this.gridId,entityName:this.entityName,gridHeight:this.gridHeight,gridApiCallback:this.gridApiCallback})}static get watchers(){return{dataSource:[{updateDataSource:0}]}}};export{s as server_side_grid}
1
+ import{r as t,c as i,h as s}from"./index-15aY63VA.js";import{a as e,l as r,w as a,i as h}from"./extraFieldsHelper-CaBMA4HJ.js";import{p as o}from"./lookupHelper-D3LSjaES.js";import{E as d}from"./extraFields-Cnpy_Bm7.js";import"./apiUtils-CXqsYwOQ.js";import"lodash-es/isEqual";import"./makeApiCall-B-daVutk.js";import"axios";import"./configService-CehZzjhw.js";import"./tenantUtils-Basdb1b1.js";import"./getCurrentApiCatalogId-DeurXd9l.js";import"./searchObject-DpUZkcYC.js";const l=class{constructor(s){t(this,s),this.gridReady=i(this,"gridReady",7),this.gridFunctions=[],this.gridOptions={},this.extraFieldColumnDefs=[],this.extraFieldsReady=!0,this.extraFieldsRequestId=0,this.publishedExtraFields=!1}handleGridReady(t){this.gridApi=t.detail,this.writeExtraFieldsContext(),this.updateDataSource()}updateDataSource(){this.gridApi&&this.dataSource&&this.extraFieldsReady&&this.gridApi.setGridOption("serverSideDatasource",this.withExtraFieldValues(this.dataSource))}writeExtraFieldsContext(){this.gridApi&&(this.extraFields||this.publishedExtraFields)&&(this.gridApi.setGridOption("context",Object.assign(Object.assign({},this.gridApi.getGridOption("context")),{extraFields:this.extraFields})),this.publishedExtraFields=!!this.extraFields)}withExtraFieldValues(t){var i;if(!this.extraFields)return t;const s=null!==(i=this.extraFields.prefix)&&void 0!==i?i:d;return Object.assign(Object.assign({},t),{getRows:i=>t.getRows(Object.assign(Object.assign({},i),{success:t=>{var r;e(null!==(r=t.rowData)&&void 0!==r?r:[],s,{refetchEmpty:!0}).then((t=>{var s;return o(t,null!==(s=i.api.getColumnDefs())&&void 0!==s?s:[])})).then((s=>i.success(Object.assign(Object.assign({},t),{rowData:s}))))}}))})}componentWillLoad(){this.loadExtraFieldColumns(),this.serverSideConfig=Object.assign(Object.assign({paginationAutoPageSize:!0,suppressSetFilterByDefault:!0},this.gridOptions),{rowModelType:"serverSide"})}async loadExtraFieldColumns(){const t=++this.extraFieldsRequestId;if(this.writeExtraFieldsContext(),!this.extraFields)return this.extraFieldColumnDefs=[],this.extraFieldsReady=!0,void this.updateDataSource();this.extraFieldsReady=!1;const i=await r(this.extraFields,this.entityName);t===this.extraFieldsRequestId&&(this.extraFieldColumnDefs=i,this.extraFieldsReady=!0,this.gridApi&&a(this.gridApi,this.mergedColumnDefs().length,(()=>{t===this.extraFieldsRequestId&&this.updateDataSource()})))}mergedColumnDefs(){var t;return this.extraFieldsReady?h(this.columnDefs,this.extraFieldColumnDefs,null===(t=this.extraFields)||void 0===t?void 0:t.position):[]}render(){return s("ag-grid-base",{key:"cbcd476ed56cf02572e12af7749adbb6d10512a3",columnDefs:this.mergedColumnDefs(),gridOptions:this.serverSideConfig,headerConfig:this.gridHeaderConfig,onGridReady:t=>this.handleGridReady(t),gridFunctions:this.gridFunctions,gridId:this.gridId,entityName:this.entityName,gridHeight:this.gridHeight,gridApiCallback:this.gridApiCallback})}static get watchers(){return{dataSource:[{updateDataSource:0}],extraFields:[{loadExtraFieldColumns:0}],entityName:[{loadExtraFieldColumns:0}]}}};export{l as server_side_grid}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./index-15aY63VA.js";const o=class{constructor(a){e(this,a),this.padding=!0}render(){return a("div",{key:"ae73a7da027d3266f0911de1588da40e22c22b0e",class:"container",style:this.padding?{padding:"16px"}:{}},a("slot",{key:"898476d6c24adf295254409deaeaebfb0a9c9eea"}))}};o.style=".container{width:100%;height:100%;background-color:#f2f2f2;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;::-webkit-scrollbar{display:none}}";export{o as side_sheet_container}
1
+ import{r as e,h as o}from"./index-15aY63VA.js";const r=class{constructor(o){e(this,o),this.padding=!0}render(){return o("div",{key:"f161082991b0dc9cf4176ee894cecae19250fe02",class:"container",style:this.padding?{padding:"16px"}:{}},o("slot",{key:"e6f420725aa9b3b81a29938cb7706bbced3befd7"}))}};r.style=".container{width:100%;height:100%;background-color:#f2f2f2;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;::-webkit-scrollbar{display:none}}";export{r as side_sheet_container}
@@ -1 +1 @@
1
- import{r,h as a}from"./index-15aY63VA.js";const d=class{constructor(a){r(this,a)}render(){return a("div",{key:"40192ecb055fe745bb0df8fa708b4a1fad60548d",class:"card"},a("slot",{key:"b30f3edb117f00dd79d973a207acb4ead584458a"}))}};d.style=".card{border:1px solid #ccc;border-radius:8px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);padding:20px;background-color:#fff;}.card h2{font-size:1.5rem;margin-top:0}.card p{margin-bottom:0}";export{d as simple_card}
1
+ import{r,h as a}from"./index-15aY63VA.js";const d=class{constructor(a){r(this,a)}render(){return a("div",{key:"5172b4404589a8ec71d05449abefb0da98f6e9c6",class:"card"},a("slot",{key:"f96a9fd6d20b10f682510fa57aebf2c53c8a43b8"}))}};d.style=".card{border:1px solid #ccc;border-radius:8px;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);padding:20px;background-color:#fff;}.card h2{font-size:1.5rem;margin-top:0}.card p{margin-bottom:0}";export{d as simple_card}
@@ -1 +1 @@
1
- import{r as o,h as t}from"./index-15aY63VA.js";import r from"@carbon/icons/es/add/16";import n from"@carbon/icons/es/chevron--down/16";import a from"@carbon/icons/es/view/16";import c from"@carbon/icons/es/trash-can/16";import s from"@carbon/icons/es/star/16";import e from"@carbon/icons/es/star--filled/16";import i from"@carbon/icons/es/edit/16";const d=class{constructor(t){o(this,t),this.statusClasses={},this.dense=!1}statusValueWatcher(o){const t="boolean"==typeof o?o.toString():o;this.internalStatusClass=this.statusClasses&&this.statusClasses[t]?this.statusClasses[t]:"default"}componentWillLoad(){this.statusValueWatcher(this.statusValue)}render(){return t("div",{key:"04f5332de37954de41e0e88754bdf93c5573cd55",class:`chip ${this.internalStatusClass} ${this.dense?"dense":""}`},t("p",{key:"dd968627bbf6dda31f654c3aabdcfefbfd954d76"},t("slot",{key:"8a29fbda6ff9a4665af31f1006a9d9ffb85aebfa"})," "))}static get watchers(){return{statusValue:[{statusValueWatcher:0}]}}};d.style=".chip{padding:0.3em 1em;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;transition:background-color 0.3s, color 0.3s;max-width:100%;max-height:100%}.success{background-color:#4caf50;color:white}.warning{background-color:#ffeb3b;color:#212121;}.error{background-color:#f44336;color:white}.info{background-color:rgb(52, 120, 176);color:white}.default{background-color:rgb(207, 207, 207);color:black;}.dense{padding-top:0;padding-bottom:0}p{margin-top:0;margin-bottom:0}";const b=class{constructor(t){o(this,t),this.expand=!1,this.view=!1,this.add=!1,this.edit=!1,this.delete=!1,this.isDefault=!1,this.noBackground=!1}renderIcon(){let o,d={};return this.delete?(o=c,d={padding:"5px"}):this.view?(o=a,d={padding:"5px"}):this.isDefault?(o=e,d={padding:"5px"}):this.add?(o=r,d={padding:"5px"}):this.edit?(o=i,d={padding:"5px"}):this.expand?(o=n,d={padding:"5px",color:"black"}):(o=s,d={padding:"5px"}),t("svg",Object.assign({},o.attrs,{style:d}),o.content.map(((o,r)=>"path"===o.elem?t("path",Object.assign({},o.attrs,{key:r})):null)))}render(){return t("button",{key:"1586406ad547b6773373c8cfea18aee39b282a00",class:this.noBackground?"udp-btn no-bg":"udp-btn"},t("span",{key:"61cb71bbadd68375e0d2a95ed98d891749d0e2fc",class:"btn-content"},this.renderIcon()))}};b.style=".udp-btn{border:0;border-radius:50%;padding:1px 3px;cursor:pointer;background-color:var(--accent-color-three);transition:background-color 0.3s}.udp-btn.no-bg{background-color:transparent;}.udp-btn:hover{background-color:#f0f0f0}.btn-content{color:var(--accent-color-four)}.btn-content svg{fill:currentColor}";export{d as status_chip,b as udp_function_button}
1
+ import{r as o,h as t}from"./index-15aY63VA.js";import r from"@carbon/icons/es/add/16";import n from"@carbon/icons/es/chevron--down/16";import c from"@carbon/icons/es/view/16";import s from"@carbon/icons/es/trash-can/16";import e from"@carbon/icons/es/star/16";import i from"@carbon/icons/es/star--filled/16";import a from"@carbon/icons/es/edit/16";const d=class{constructor(t){o(this,t),this.statusClasses={},this.dense=!1}statusValueWatcher(o){const t="boolean"==typeof o?o.toString():o;this.internalStatusClass=this.statusClasses&&this.statusClasses[t]?this.statusClasses[t]:"default"}componentWillLoad(){this.statusValueWatcher(this.statusValue)}render(){return t("div",{key:"c23f3d400e7b4db88f2420e4d16719bbc4b8bedd",class:`chip ${this.internalStatusClass} ${this.dense?"dense":""}`},t("p",{key:"810b4b4e9ba216300e737489c796cfdff7cc33c9"},t("slot",{key:"48d93a9060e269b50937b211264fdee4b775d38d"})," "))}static get watchers(){return{statusValue:[{statusValueWatcher:0}]}}};d.style=".chip{padding:0.3em 1em;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;transition:background-color 0.3s, color 0.3s;max-width:100%;max-height:100%}.success{background-color:#4caf50;color:white}.warning{background-color:#ffeb3b;color:#212121;}.error{background-color:#f44336;color:white}.info{background-color:rgb(52, 120, 176);color:white}.default{background-color:rgb(207, 207, 207);color:black;}.dense{padding-top:0;padding-bottom:0}p{margin-top:0;margin-bottom:0}";const b=class{constructor(t){o(this,t),this.expand=!1,this.view=!1,this.add=!1,this.edit=!1,this.delete=!1,this.isDefault=!1,this.noBackground=!1}renderIcon(){let o,d={};return this.delete?(o=s,d={padding:"5px"}):this.view?(o=c,d={padding:"5px"}):this.isDefault?(o=i,d={padding:"5px"}):this.add?(o=r,d={padding:"5px"}):this.edit?(o=a,d={padding:"5px"}):this.expand?(o=n,d={padding:"5px",color:"black"}):(o=e,d={padding:"5px"}),t("svg",Object.assign({},o.attrs,{style:d}),o.content.map(((o,r)=>"path"===o.elem?t("path",Object.assign({},o.attrs,{key:r})):null)))}render(){return t("button",{key:"25d3c7b50c557543a2174f493544f87f1848d480",class:this.noBackground?"udp-btn no-bg":"udp-btn"},t("span",{key:"c38aa018c8389367511453750cde3f7debee124d",class:"btn-content"},this.renderIcon()))}};b.style=".udp-btn{border:0;border-radius:50%;padding:1px 3px;cursor:pointer;background-color:var(--accent-color-three);transition:background-color 0.3s}.udp-btn.no-bg{background-color:transparent;}.udp-btn:hover{background-color:#f0f0f0}.btn-content{color:var(--accent-color-four)}.btn-content svg{fill:currentColor}";export{d as status_chip,b as udp_function_button}
@@ -0,0 +1 @@
1
+ const t=(t,i)=>{var n;return{title:t.getTitle?t.getTitle(i):t.title,iconName:t.getIconName?t.getIconName(i):t.iconName,disabled:t.checkDisabled?t.checkDisabled(i):null!==(n=t.disabled)&&void 0!==n&&n}};class i{constructor(){this.actionList=[],this.layout="",this.buttons=new Map}init(t){this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex;\n width: 100%;\n height: 100%;\n gap: 4px;\n justify-content: start;\n align-items: center;\n ",this.params=t,this.render()}visibleActions(t){return(null==t?void 0:t.hideActions)&&t.hideActions(t.node)?[]:((null==t?void 0:t.actionList)||[]).filter((i=>{var n;return(null==i?void 0:i.visibleAction)?i.visibleAction(t.node):null===(n=null==i?void 0:i.visible)||void 0===n||n}))}layoutOf(t,i){var n;return`${null!==(n=null==t?void 0:t.maxVisibleActions)&&void 0!==n?n:5}|${i.map((t=>t.id)).join(",")}`}run(t,i){const n=this.actionList.find((i=>i.id===t));null==n||n.handleOnClick(i,this.params.node)}render(){var t,i;this.eGui.innerHTML="",this.buttons.clear(),this.moreMenu=void 0,this.actionList=this.visibleActions(this.params),this.layout=this.layoutOf(this.params,this.actionList);const n=null!==(i=null===(t=this.params)||void 0===t?void 0:t.maxVisibleActions)&&void 0!==i?i:5,s=this.actionList.length<=n?this.actionList.length:Math.max(n-1,0);if(this.actionList.slice(0,s).forEach((t=>{const i=this.createIconButton(t);this.buttons.set(String(t.id),i),this.eGui.appendChild(i)})),s<this.actionList.length){const t=document.createElement("udp-fluent-menu");t.buttonType="icon",t.endIconName="overflowMenuVertical",t.appearance="transparent",t.size="medium",t.shape="circular",t.onclick=t=>t.stopPropagation(),this.moreMenu=t,this.updateMenu(),this.eGui.appendChild(t)}}updateMenu(){var i,n;if(!this.moreMenu)return;const s=this.actionList.filter((t=>!this.buttons.has(String(t.id))));this.moreMenu.label=null!==(n=null===(i=this.params)||void 0===i?void 0:i.moreActionsLabel)&&void 0!==n?n:"More actions",this.moreMenu.items=s.map((i=>{const{title:n,iconName:s,disabled:r}=t(i,this.params.node);return{text:n,startIconName:s,disabled:r,onClick:()=>this.run(i.id,new MouseEvent("click"))}}))}updateButton(i,n){const{title:s,iconName:r,disabled:o}=t(n,this.params.node),e=i.firstElementChild;e.iconName=r,e.ariaLabel=s,e.disabled=o,i.content=s}createIconButton(t){const i=document.createElement("udp-fluent-icon-button");i.id=t.id.toString(),i.size="medium",i.appearance="transparent",i.onclick=i=>{i.stopPropagation(),this.run(t.id,i)};const n=document.createElement("udp-tooltip");return n.delay=0,n.appendChild(i),this.updateButton(n,t),n}getGui(){return this.eGui}refresh(t){const i=this.actionList.length,n=this.visibleActions(t);if(this.params=t,this.layoutOf(t,n)!==this.layout)return this.render(),this.actionList.length!==i&&setTimeout((()=>t.api.autoSizeColumns([t.column.getColId()])),0),!0;this.actionList=n;for(const t of n){const i=this.buttons.get(String(t.id));i&&this.updateButton(i,t)}return this.updateMenu(),!0}}const n={success:"var(--colorStatusSuccessForeground1)",error:"var(--colorStatusDangerForeground1)",warning:"var(--colorStatusWarningForeground1)",info:"var(--colorBrandForeground1)",primary:"var(--colorBrandForeground1)",secondary:"var(--colorNeutralForeground2)"};class s{init(t){var i,s,r;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex;\n width: 100%;\n height: 100%;\n gap: 8px;\n justify-content: start;\n align-items: center;\n ";const o=t.getIconConfig?t.getIconConfig(t):null!==(s=null===(i=t.iconMappingConfig)||void 0===i?void 0:i[t.value])&&void 0!==s?s:null;if(!o)return;const e=document.createElement("udp-fluent-icon");if(e.name=o.iconName,e.size="sm",e.color=null!==(r=n[o.color])&&void 0!==r?r:o.color,this.eGui.appendChild(e),o.label){const t=document.createElement("p");t.innerHTML=o.label,t.style.cssText="margin: 0px",this.eGui.appendChild(t)}}getGui(){return this.eGui}refresh(){return!1}}const r={error:"danger",warning:"warning",success:"success",info:"informative",primary:"brand",secondary:"subtle",monochrome:"subtle",gray:"subtle"};class o{constructor(){this.statusMappingClasses={error:"error",warning:"warning",success:"success",info:"info"}}init(t){var i;this.eGui=document.createElement("div"),this.eGui.style.cssText="display: flex; height: 100%; align-items: center; gap: 8px;",null!==(null==t?void 0:t.statusMappingConfig)&&(this.statusMappingClasses=null==t?void 0:t.statusMappingConfig);const n=document.createElement("udp-fluent-badge");let s,o,e,u;if(t.getStatusConfig){const i=t.getStatusConfig(t);if(!i)return;s=i.label,o=i.color,e=i.prefixText,u=i.suffixText}else{const i=(null==t?void 0:t.getStatusValue)?null==t?void 0:t.getStatusValue(null==t?void 0:t.node):t.value;if(!i)return;s=i,o=this.statusMappingClasses[i],e=t.prefixText,u=t.suffixText}if(e){const t=document.createElement("p");t.textContent=e,t.style.cssText="margin: 0px",this.eGui.appendChild(t)}if(s&&(n.appearance="tint",n.shape="circular",n.size="large",n.color=null!==(i=r[o])&&void 0!==i?i:"subtle",n.textContent=s,this.eGui.appendChild(n),t.setTooltip(s,(()=>this.eGui.scrollWidth>this.eGui.clientWidth))),u){const t=document.createElement("p");t.textContent=u,t.style.cssText="margin: 0px",this.eGui.appendChild(t)}}getGui(){return this.eGui}refresh(){return!1}}export{i as A,s as I,o as S}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i}from"./index-15aY63VA.js";import s from"@carbon/icons/es/close/16";const r=class{constructor(i){t(this,i),this.onDelete=e(this,"onDelete",7),this.onToggle=e(this,"onToggle",7),this.udpChipClicked=e(this,"udpChipClicked",7),this.color="primary",this.level=0,this.defaultToggled=!1,this.showLeftIcon=!1,this.showDelete=!0,this.clickable=!0,this.handleClick=()=>{this.toggled=!this.toggled,this.udpChipClicked.emit(this.text)},this.handleDelete=t=>{t.stopPropagation(),this.onDelete.emit()}}externalStringChanged(t){t&&t===this.text&&this.toggleOff()}toggleOff(){this.toggled&&(this.toggled=!1,this.onToggle.emit(this.toggled))}componentWillLoad(){this.toggled=this.defaultToggled}getLightenedColor(t,e){const{hue:i,saturation:s,lightness:r}={primary:{hue:156,saturation:58,lightness:67},secondary:{hue:156,saturation:58,lightness:67}}[t];return`hsl(${(i+50*e)%360}, ${s}%, ${Math.min(100,r+15*e)}%)`}render(){const t=Object.assign(this.toggled?{backgroundColor:this.getLightenedColor(this.color,this.level),color:"#000",border:"1px solid var(--secondary-color)"}:{backgroundColor:"transparent",color:"#393939",border:"1px solid var(--secondary-color)"},this.showDelete?{}:{paddingRight:"8px"}),e=this.toggled?{backgroundColor:"#fff",color:"#333"}:{backgroundColor:"#d3d3d3",color:"#393939"},r=this.toggled?{backgroundColor:"#fff",color:"#333"}:{backgroundColor:"var(--primary-color)",color:"#fff"},o=this.leftIcon||s;return i("div",{key:"579929dafce3cea1993642f3e3e81f79e030c160",class:"chip"+(this.clickable?"":" chip--unclickable"),style:t,onClick:this.clickable?this.handleClick:void 0},this.leftIcon&&i("span",{key:"af2da354afb4459ddee11500f6b17381e844dd46",class:"left-icon",style:r},i("svg",Object.assign({key:"62a88b559b85f6d11efed865e74d918cdb222561"},o.attrs,{fill:r.color}),o.content.map(((t,e)=>"path"===t.elem?i("path",Object.assign({},t.attrs,{key:e})):null)))),i("unity-typography",{key:"041dca4a35175e32d7e0ddc395d85985210268b4",variant:"caption-text"},i("span",{key:"74671ecdd1a848568b99ff38a36a2d4bde0a7fbb",class:"remove-height"},this.text)),this.showDelete&&i("button",{key:"92b7e5d1bd85d5ba3765fd299c607a7799972fed",class:"delete-button",style:e,onClick:this.handleDelete},i("svg",Object.assign({key:"530afcd153f970b17dde1d9b36dd8056b2346bd0"},s.attrs,{fill:e.color}),s.content.map(((t,e)=>"path"===t.elem?i("path",Object.assign({},t.attrs,{key:e})):null)))))}static get watchers(){return{externalToggleString:[{externalStringChanged:0}]}}};r.style=".chip{display:inline-flex;align-items:center;padding:3px;padding-left:8px;font-size:14px;border-radius:16px;color:#333;cursor:pointer;background-color:transparent;height:26px}.chip--unclickable{cursor:default}.delete-button{margin-left:12px;background-color:#fff;border:none;border-radius:50%;cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.delete-button svg{width:20px;height:20px;fill:#333;}.left-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:24px;height:24px;margin-right:8px;}";export{r as stencil_chip}
1
+ import{r as t,c as e,h as i}from"./index-15aY63VA.js";import s from"@carbon/icons/es/close/16";const r=class{constructor(i){t(this,i),this.onDelete=e(this,"onDelete",7),this.onToggle=e(this,"onToggle",7),this.udpChipClicked=e(this,"udpChipClicked",7),this.color="primary",this.level=0,this.defaultToggled=!1,this.showLeftIcon=!1,this.showDelete=!0,this.clickable=!0,this.handleClick=()=>{this.toggled=!this.toggled,this.udpChipClicked.emit(this.text)},this.handleDelete=t=>{t.stopPropagation(),this.onDelete.emit()}}externalStringChanged(t){t&&t===this.text&&this.toggleOff()}toggleOff(){this.toggled&&(this.toggled=!1,this.onToggle.emit(this.toggled))}componentWillLoad(){this.toggled=this.defaultToggled}getLightenedColor(t,e){const{hue:i,saturation:s,lightness:r}={primary:{hue:156,saturation:58,lightness:67},secondary:{hue:156,saturation:58,lightness:67}}[t];return`hsl(${(i+50*e)%360}, ${s}%, ${Math.min(100,r+15*e)}%)`}render(){const t=Object.assign(this.toggled?{backgroundColor:this.getLightenedColor(this.color,this.level),color:"#000",border:"1px solid var(--secondary-color)"}:{backgroundColor:"transparent",color:"#393939",border:"1px solid var(--secondary-color)"},this.showDelete?{}:{paddingRight:"8px"}),e=this.toggled?{backgroundColor:"#fff",color:"#333"}:{backgroundColor:"#d3d3d3",color:"#393939"},r=this.toggled?{backgroundColor:"#fff",color:"#333"}:{backgroundColor:"var(--primary-color)",color:"#fff"},o=this.leftIcon||s;return i("div",{key:"5dd7da01e4cafa940a2e6b6c86cceb964ee60091",class:"chip"+(this.clickable?"":" chip--unclickable"),style:t,onClick:this.clickable?this.handleClick:void 0},this.leftIcon&&i("span",{key:"d935c34956a5c95ce21fb2ab1321ef993eab1171",class:"left-icon",style:r},i("svg",Object.assign({key:"8e3ce39b78f1941905a97d89e7dcfbf462f1ae37"},o.attrs,{fill:r.color}),o.content.map(((t,e)=>"path"===t.elem?i("path",Object.assign({},t.attrs,{key:e})):null)))),i("unity-typography",{key:"0c9f61573144a3bce8d6f92d09a00903cdfdddfa",variant:"caption-text"},i("span",{key:"3110b912eddfea1772318a60c3bada13fa883e56",class:"remove-height"},this.text)),this.showDelete&&i("button",{key:"1c5771f2286b4cb3c98c636b917ecff16cd34dcb",class:"delete-button",style:e,onClick:this.handleDelete},i("svg",Object.assign({key:"1daa2e698b33bfde8125e332534446cb85179fda"},s.attrs,{fill:e.color}),s.content.map(((t,e)=>"path"===t.elem?i("path",Object.assign({},t.attrs,{key:e})):null)))))}static get watchers(){return{externalToggleString:[{externalStringChanged:0}]}}};r.style=".chip{display:inline-flex;align-items:center;padding:3px;padding-left:8px;font-size:14px;border-radius:16px;color:#333;cursor:pointer;background-color:transparent;height:26px}.chip--unclickable{cursor:default}.delete-button{margin-left:12px;background-color:#fff;border:none;border-radius:50%;cursor:pointer;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.delete-button svg{width:20px;height:20px;fill:#333;}.left-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:24px;height:24px;margin-right:8px;}";export{r as stencil_chip}