udp-stencil-component-library 26.3.0-beta.2 → 26.3.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 (701) hide show
  1. package/dist/cjs/add-map-feature-popup_4.cjs.entry.js +12 -12
  2. package/dist/cjs/address-search_6.cjs.entry.js +18 -18
  3. package/dist/cjs/advanced-search_12.cjs.entry.js +13 -13
  4. package/dist/cjs/ag-grid-base_63.cjs.entry.js +404 -164
  5. package/dist/cjs/ambient-template-grid.cjs.entry.js +16 -16
  6. package/dist/cjs/api-method-instance-grid.cjs.entry.js +2 -2
  7. package/dist/cjs/app-bar.cjs.entry.js +1 -1
  8. package/dist/cjs/chart-container_3.cjs.entry.js +2 -2
  9. package/dist/cjs/charts-theme-DmrbXz3l.js +386 -0
  10. package/dist/cjs/check-box.cjs.entry.js +2 -2
  11. package/dist/cjs/chip-section.cjs.entry.js +2 -2
  12. package/dist/cjs/date-time-renderer_9.cjs.entry.js +21 -21
  13. package/dist/cjs/feature-details-card_2.cjs.entry.js +5 -5
  14. package/dist/cjs/file-upload_2.cjs.entry.js +5 -5
  15. package/dist/cjs/filter-conditions_7.cjs.entry.js +5 -5
  16. package/dist/cjs/form-metadata-display_10.cjs.entry.js +8 -8
  17. package/dist/cjs/icon-grid.cjs.entry.js +1 -1
  18. package/dist/cjs/index-G1ccGqOs.js +44 -4
  19. package/dist/cjs/index.cjs.js +6 -154
  20. package/dist/cjs/loader.cjs.js +1 -1
  21. package/dist/cjs/map-component_2.cjs.entry.js +2 -2
  22. package/dist/cjs/primary-action-header_2.cjs.entry.js +4 -4
  23. package/dist/cjs/question-configs-renderer_4.cjs.entry.js +15 -15
  24. package/dist/cjs/resource-timeline-calendar.cjs.entry.js +1 -1
  25. package/dist/cjs/resource-timeline-primary-bar.cjs.entry.js +3 -3
  26. package/dist/cjs/search-method-grid.cjs.entry.js +1 -1
  27. package/dist/cjs/server-side-grid.cjs.entry.js +1 -1
  28. package/dist/cjs/side-sheet-container.cjs.entry.js +1 -1
  29. package/dist/cjs/simple-card.cjs.entry.js +1 -1
  30. package/dist/cjs/slot-helpers-C-ntX3IL.js +11 -0
  31. package/dist/cjs/status-chip_2.cjs.entry.js +1 -1
  32. package/dist/cjs/stencil-chip.cjs.entry.js +2 -2
  33. package/dist/cjs/stencil-library.cjs.js +1 -1
  34. package/dist/cjs/stencil-toggle.cjs.entry.js +4 -4
  35. package/dist/cjs/text-field_2.cjs.entry.js +7 -7
  36. package/dist/cjs/theme-manager-vLJfQYn8.js +157 -0
  37. package/dist/cjs/udp-adornment.cjs.entry.js +1 -1
  38. package/dist/cjs/udp-advanced-search-builder.cjs.entry.js +7 -4
  39. package/dist/cjs/udp-ag-area-chart.cjs.entry.js +120 -0
  40. package/dist/cjs/{udp-bar-chart_4.cjs.entry.js → udp-ag-bar-chart_4.cjs.entry.js} +123 -44
  41. package/dist/cjs/udp-ag-bubble-chart.cjs.entry.js +120 -0
  42. package/dist/cjs/udp-ag-combo-chart.cjs.entry.js +120 -0
  43. package/dist/cjs/udp-ag-donut-chart.cjs.entry.js +118 -0
  44. package/dist/cjs/udp-ag-line-chart.cjs.entry.js +120 -0
  45. package/dist/cjs/udp-ag-pie-chart.cjs.entry.js +118 -0
  46. package/dist/cjs/udp-ag-scatter-chart.cjs.entry.js +120 -0
  47. package/dist/cjs/udp-attachment-item_2.cjs.entry.js +1 -1
  48. package/dist/cjs/udp-bar-chart.cjs.entry.js +41 -0
  49. package/dist/cjs/udp-calendar-base.cjs.entry.js +44 -71
  50. package/dist/cjs/udp-calendar-day.cjs.entry.js +1 -3
  51. package/dist/cjs/udp-calendar-month.cjs.entry.js +1 -3
  52. package/dist/cjs/udp-calendar-week.cjs.entry.js +1 -3
  53. package/dist/cjs/udp-calendar-year.cjs.entry.js +1 -3
  54. package/dist/cjs/udp-card-action-area.cjs.entry.js +1 -1
  55. package/dist/cjs/udp-card_6.cjs.entry.js +7 -7
  56. package/dist/cjs/udp-charts-example.cjs.entry.js +14 -1
  57. package/dist/cjs/udp-container-query-grid-item.cjs.entry.js +1 -1
  58. package/dist/cjs/udp-container-query-grid.cjs.entry.js +1 -1
  59. package/dist/cjs/udp-container-query.cjs.entry.js +2 -2
  60. package/dist/cjs/udp-container.cjs.entry.js +2 -2
  61. package/dist/cjs/udp-dynamic-container-with-menu.cjs.entry.js +1 -1
  62. package/dist/cjs/udp-dynamic-form.cjs.entry.js +1 -1
  63. package/dist/cjs/udp-fluent-file-input.cjs.entry.js +4 -4
  64. package/dist/cjs/udp-fluent-image.cjs.entry.js +1 -1
  65. package/dist/cjs/udp-fluent-inline-edit.cjs.entry.js +1 -1
  66. package/dist/cjs/udp-fluent-link.cjs.entry.js +1 -1
  67. package/dist/cjs/udp-fluent-location-input.cjs.entry.js +3 -3
  68. package/dist/cjs/udp-fluent-number-input.cjs.entry.js +99 -0
  69. package/dist/cjs/udp-fluent-signature-input.cjs.entry.js +4 -4
  70. package/dist/cjs/udp-forms-builder-style-override.cjs.entry.js +1 -1
  71. package/dist/cjs/udp-forms-follow-up-list-card.cjs.entry.js +2 -2
  72. package/dist/cjs/udp-forms-list-card.cjs.entry.js +4 -4
  73. package/dist/cjs/udp-forms-list.cjs.entry.js +1 -1
  74. package/dist/cjs/udp-forms-renderer.cjs.entry.js +1 -1
  75. package/dist/cjs/udp-kpi-card.cjs.entry.js +1 -1
  76. package/dist/cjs/udp-kpi-cards.cjs.entry.js +2 -2
  77. package/dist/cjs/udp-map.cjs.entry.js +3 -3
  78. package/dist/cjs/udp-menu.cjs.entry.js +1 -1
  79. package/dist/cjs/udp-page.cjs.entry.js +1 -1
  80. package/dist/cjs/udp-sankey-chart.cjs.entry.js +1 -1
  81. package/dist/cjs/udp-sidebar-layout.cjs.entry.js +67 -0
  82. package/dist/cjs/udp-skeleton-loading.cjs.entry.js +1 -1
  83. package/dist/cjs/udp-split-screen.cjs.entry.js +1 -1
  84. package/dist/cjs/udp-stepper-demo.cjs.entry.js +1 -1
  85. package/dist/cjs/udp-tab.cjs.entry.js +1 -1
  86. package/dist/cjs/udp-timeline-connector.cjs.entry.js +1 -1
  87. package/dist/cjs/udp-timeline-dot.cjs.entry.js +1 -1
  88. package/dist/cjs/udp-timeline-item.cjs.entry.js +2 -2
  89. package/dist/cjs/udp-timeline-separator.cjs.entry.js +1 -1
  90. package/dist/cjs/udp-timeline.cjs.entry.js +1 -1
  91. package/dist/cjs/udp-xy-chart.cjs.entry.js +1 -1
  92. package/dist/cjs/udp-xy-multi-series-chart.cjs.entry.js +1 -1
  93. package/dist/collection/collection-manifest.json +10 -0
  94. package/dist/collection/components/advanced-search-builder/udp-advanced-search-builder.js +7 -4
  95. package/dist/collection/components/calendar/udp-calendar-base.js +100 -77
  96. package/dist/collection/components/calendar/udp-calendar-day.js +10 -9
  97. package/dist/collection/components/calendar/udp-calendar-month.js +10 -9
  98. package/dist/collection/components/calendar/udp-calendar-week.js +10 -9
  99. package/dist/collection/components/calendar/udp-calendar-year.js +10 -9
  100. package/dist/collection/components/charts/chart-container/chart-container.js +7 -0
  101. package/dist/collection/components/charts/chart-kpi/chart-kpi.js +6 -1
  102. package/dist/collection/components/charts/charts-theme.js +380 -0
  103. package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.css +13 -0
  104. package/dist/collection/components/charts/udp-ag-area-chart/udp-ag-area-chart.js +312 -0
  105. package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.css +13 -0
  106. package/dist/collection/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.js +302 -0
  107. package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.css +13 -0
  108. package/dist/collection/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.js +308 -0
  109. package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.css +13 -0
  110. package/dist/collection/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.js +320 -0
  111. package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.css +13 -0
  112. package/dist/collection/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.js +309 -0
  113. package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.css +13 -0
  114. package/dist/collection/components/charts/udp-ag-line-chart/udp-ag-line-chart.js +314 -0
  115. package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.css +13 -0
  116. package/dist/collection/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.js +310 -0
  117. package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.css +13 -0
  118. package/dist/collection/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.js +314 -0
  119. package/dist/collection/components/charts/udp-bar-chart/udp-bar-chart.js +5 -1
  120. package/dist/collection/components/charts/udp-charts-example.js +15 -2
  121. package/dist/collection/components/charts/udp-distribution-chart/udp-distribution-chart.js +5 -1
  122. package/dist/collection/components/charts/udp-donut-chart/udp-donut-chart.js +5 -1
  123. package/dist/collection/components/charts/udp-line-chart/udp-line-chart.js +5 -1
  124. package/dist/collection/components/charts/udp-sankey-chart/udp-sankey-chart.js +6 -1
  125. package/dist/collection/components/charts/udp-xy-chart/udp-xy-chart.js +6 -1
  126. package/dist/collection/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.js +5 -1
  127. package/dist/collection/components/data-display/adornment/udp-adornment/udp-adornment.js +1 -1
  128. package/dist/collection/components/data-display/badge/udp-badge.js +1 -1
  129. package/dist/collection/components/data-display/cards/udp-ambient-card/udp-ambient-card.js +1 -1
  130. package/dist/collection/components/data-display/cards/udp-card/udp-card-action-area/udp-card-action-area.js +1 -1
  131. package/dist/collection/components/data-display/cards/udp-card/udp-card-actions/udp-card-actions.js +1 -1
  132. package/dist/collection/components/data-display/cards/udp-card/udp-card-content/udp-card-content.js +1 -1
  133. package/dist/collection/components/data-display/cards/udp-card/udp-card-header/udp-card-header.js +1 -1
  134. package/dist/collection/components/data-display/cards/udp-card/udp-card-media/udp-card-media.js +1 -1
  135. package/dist/collection/components/data-display/cards/udp-card/udp-card.js +3 -3
  136. package/dist/collection/components/data-display/chips/stencil-chip/status-chip/status-chip.js +1 -1
  137. package/dist/collection/components/data-display/chips/stencil-chip/stencil-chip.js +2 -2
  138. package/dist/collection/components/data-display/chips/udp-chip.js +1 -1
  139. package/dist/collection/components/data-display/divider/udp-divider.js +1 -1
  140. package/dist/collection/components/data-display/empty-state-display/udp-empty-state-display.js +1 -1
  141. package/dist/collection/components/data-display/headers/udp-column-header.js +1 -1
  142. package/dist/collection/components/data-display/headers/udp-page-header/udp-page-header.js +1 -1
  143. package/dist/collection/components/data-display/hint-panel/hint-panel.js +1 -1
  144. package/dist/collection/components/data-display/kpi/kpi-list.js +1 -1
  145. package/dist/collection/components/data-display/kpi/udp-kpi-card.js +1 -1
  146. package/dist/collection/components/data-display/kpi/udp-kpi-cards.js +2 -2
  147. package/dist/collection/components/data-display/list-item/list-item.js +2 -2
  148. package/dist/collection/components/data-display/pop-over/udp-pop-over.js +1 -1
  149. package/dist/collection/components/data-display/pop-over-grid-action-header/udp-pop-over-grid-action-header.js +1 -1
  150. package/dist/collection/components/data-display/primary-action-header/primary-action-header.js +2 -2
  151. package/dist/collection/components/data-display/simple-card/simple-card.js +1 -1
  152. package/dist/collection/components/data-display/tool-tip/udp-ambient-tool-tip.js +2 -2
  153. package/dist/collection/components/data-display/tree/tree-list-item/search-item/search-list-item.js +1 -1
  154. package/dist/collection/components/data-display/udp-avatar/udp-avatar.js +1 -1
  155. package/dist/collection/components/dialogs/udp-dialog.js +1 -1
  156. package/dist/collection/components/drawers/udp-side-sheet/udp-side-sheet.js +9 -9
  157. package/dist/collection/components/feedback/udp-notification/alerts/upd-alert-banner.js +1 -1
  158. package/dist/collection/components/feedback/udp-notification/udp-notification.js +2 -2
  159. package/dist/collection/components/fluent-ui/autocomplete/udp-autocomplete.js +74 -13
  160. package/dist/collection/components/fluent-ui/avatar/udp-fluent-avatar.js +1 -1
  161. package/dist/collection/components/fluent-ui/badge/udp-fluent-badge.js +1 -1
  162. package/dist/collection/components/fluent-ui/button/udp-fluent-button.js +1 -1
  163. package/dist/collection/components/fluent-ui/card/udp-fluent-card.js +3 -3
  164. package/dist/collection/components/fluent-ui/checkbox/udp-fluent-checkbox.js +1 -1
  165. package/dist/collection/components/fluent-ui/compound-button/udp-compound-button.js +1 -1
  166. package/dist/collection/components/fluent-ui/counter-badge/udp-fluent-counter-badge.js +1 -1
  167. package/dist/collection/components/fluent-ui/date-input/udp-date-input.js +61 -11
  168. package/dist/collection/components/fluent-ui/date-time-input/udp-date-time-input.js +40 -3
  169. package/dist/collection/components/fluent-ui/dialog/udp-fluent-dialog.js +1 -1
  170. package/dist/collection/components/fluent-ui/divider/udp-fluent-divider.js +1 -1
  171. package/dist/collection/components/fluent-ui/drawer/udp-fluent-drawer.js +1 -1
  172. package/dist/collection/components/fluent-ui/dropdown/udp-fluent-dropdown.js +63 -12
  173. package/dist/collection/components/fluent-ui/file-input/udp-fluent-file-input.js +4 -4
  174. package/dist/collection/components/fluent-ui/icon/icon-grid/icon-grid.js +1 -1
  175. package/dist/collection/components/fluent-ui/icon-button/udp-fluent-icon-button.js +1 -1
  176. package/dist/collection/components/fluent-ui/image/udp-fluent-image.js +1 -1
  177. package/dist/collection/components/fluent-ui/inline-edit/udp-fluent-inline-edit.js +1 -1
  178. package/dist/collection/components/fluent-ui/link/udp-fluent-link.js +1 -1
  179. package/dist/collection/components/fluent-ui/location-input/udp-fluent-location-input.js +3 -3
  180. package/dist/collection/components/fluent-ui/message-bar/udp-message-bar.js +1 -1
  181. package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.css +68 -0
  182. package/dist/collection/components/fluent-ui/number-input/udp-fluent-number-input.js +547 -0
  183. package/dist/collection/components/fluent-ui/progress-bar/udp-progress-bar.js +1 -1
  184. package/dist/collection/components/fluent-ui/radio-group/udp-fluent-radio-group.js +1 -1
  185. package/dist/collection/components/fluent-ui/search-input/udp-search-input.js +3 -3
  186. package/dist/collection/components/fluent-ui/signature-input/udp-fluent-signature-input.js +4 -4
  187. package/dist/collection/components/fluent-ui/slider/udp-slider.js +1 -1
  188. package/dist/collection/components/fluent-ui/spinner/udp-spinner.js +1 -1
  189. package/dist/collection/components/fluent-ui/switch/udp-fluent-switch.js +1 -1
  190. package/dist/collection/components/fluent-ui/tablist/udp-fluent-tablist.css +43 -10
  191. package/dist/collection/components/fluent-ui/text-input/udp-fluent-text-input.js +2 -2
  192. package/dist/collection/components/fluent-ui/textarea/udp-textarea.js +2 -2
  193. package/dist/collection/components/fluent-ui/time-input/udp-time-input.js +1 -1
  194. package/dist/collection/components/fluent-ui/toggle-button/udp-fluent-toggle-button.js +1 -1
  195. package/dist/collection/components/fluent-ui/tooltip/udp-tooltip.js +2 -2
  196. package/dist/collection/components/fluent-ui/tree/udp-tree.css +53 -0
  197. package/dist/collection/components/fluent-ui/tree/udp-tree.js +256 -4
  198. package/dist/collection/components/forms/dynamic-form/udp-dynamic-form.js +1 -1
  199. package/dist/collection/components/forms/edit-view-form/edit-view-form.js +2 -2
  200. package/dist/collection/components/forms/form/stencil-form.js +1 -1
  201. package/dist/collection/components/forms/save-view-form/save-view-form.js +2 -2
  202. package/dist/collection/components/forms/udp-forms/udp-forms-builder/forms-question-item/udp-forms-builder-question-item.js +2 -2
  203. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/file-upload-renderer/file-upload-renderer.js +4 -4
  204. 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
  205. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/list-option-renderer/list-options-renderer.js +3 -3
  206. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/location-renderer/location-renderer.js +6 -6
  207. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/question-configs-renderer/question-configs-renderer.js +7 -7
  208. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/section-configs-renderer/section-configs-renderer.js +4 -4
  209. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/signature-renderer/signature-renderer.js +1 -1
  210. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/table-columns-renderer/table-columns-renderer.js +2 -2
  211. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-item/text-input-renderer/text-input-renderer.js +2 -2
  212. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-menu/udp-forms-builder-menu.js +2 -2
  213. package/dist/collection/components/forms/udp-forms/udp-forms-builder/udp-forms-builder-style-override/udp-forms-builder-style-override.js +1 -1
  214. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list-card/udp-forms-list-card.js +4 -4
  215. package/dist/collection/components/forms/udp-forms/udp-forms-list/udp-forms-list.js +1 -1
  216. 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
  217. package/dist/collection/components/forms/udp-forms/udp-forms-renderer/udp-forms-renderer.js +1 -1
  218. package/dist/collection/components/forms/udp-forms/udp-question/table-input/table-input.js +1 -1
  219. package/dist/collection/components/grid/ambient-template-grid/ambient-template-grid.js +16 -16
  220. package/dist/collection/components/grid/grid-primary-bar/grid-primary-bar.js +2 -2
  221. package/dist/collection/components/grid/hotlists/udp-hotlist-form/udp-hotlist-form.js +1 -1
  222. package/dist/collection/components/grid/new-grid/ag-grid-base.js +1 -1
  223. package/dist/collection/components/grid/new-grid/api-method-instance-grid.js +2 -2
  224. package/dist/collection/components/grid/new-grid/client-side-grid.js +1 -1
  225. package/dist/collection/components/grid/new-grid/gridFunctions/bulkActions.js +45 -6
  226. package/dist/collection/components/grid/new-grid/search-method-grid.js +1 -1
  227. package/dist/collection/components/grid/new-grid/server-side-grid.js +1 -1
  228. package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-calendar.js +1 -1
  229. package/dist/collection/components/grid/resource-timeline-calendar/resource-timeline-primary-bar.js +3 -3
  230. package/dist/collection/components/inputs/address-search/address-search.js +3 -3
  231. package/dist/collection/components/inputs/checkbox/check-box.js +2 -2
  232. package/dist/collection/components/inputs/date-range-selector/udp-date-range-selector.js +2 -2
  233. package/dist/collection/components/inputs/date-selector/udp-date-selector.js +3 -3
  234. package/dist/collection/components/inputs/date-time-selector/udp-datetime-selector.js +3 -3
  235. package/dist/collection/components/inputs/file-upload/file-upload.js +4 -4
  236. package/dist/collection/components/inputs/form metadata display/form-metadata-display.js +1 -1
  237. package/dist/collection/components/inputs/image-upload/image-upload.js +1 -1
  238. package/dist/collection/components/inputs/numeric-field/numeric-field.js +3 -3
  239. package/dist/collection/components/inputs/signature-input/signature-input.js +2 -2
  240. package/dist/collection/components/inputs/tally/tally.js +2 -2
  241. package/dist/collection/components/inputs/text-area/text-area.js +3 -3
  242. package/dist/collection/components/inputs/text-field/text-field.js +3 -3
  243. package/dist/collection/components/inputs/time-selector/udp-time-selector.js +3 -3
  244. package/dist/collection/components/inputs/toggle/stencil-toggle.js +4 -4
  245. package/dist/collection/components/inputs/udp-selector/udp-selector.js +4 -4
  246. package/dist/collection/components/layout/udp-container/udp-container.js +2 -2
  247. package/dist/collection/components/layout/udp-container-query/udp-container-query.js +2 -2
  248. package/dist/collection/components/layout/udp-container-query-grid/udp-container-query-grid.js +1 -1
  249. package/dist/collection/components/layout/udp-container-query-grid-item/udp-container-query-grid-item.js +1 -1
  250. package/dist/collection/components/layout/udp-page/udp-page.js +1 -1
  251. package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.css +139 -0
  252. package/dist/collection/components/layout/udp-sidebar-layout/udp-sidebar-layout.js +264 -0
  253. package/dist/collection/components/layout/udp-split-screen/udp-split-screen.js +1 -1
  254. package/dist/collection/components/loaders/udp-grid-loader/udp-grid-loader.js +2 -2
  255. package/dist/collection/components/loaders/udp-linear-loader/udp-linear-loader.js +1 -1
  256. package/dist/collection/components/loaders/udp-skeleton-loading.js +1 -1
  257. package/dist/collection/components/map/udp-map/map-component.js +1 -1
  258. package/dist/collection/components/map/udp-map/popups/add-map-feature-popup.js +3 -3
  259. package/dist/collection/components/map/udp-map/popups/feature-details-card/feature-details-card.js +4 -4
  260. package/dist/collection/components/map/udp-map/popups/feature-details-popup.js +1 -1
  261. package/dist/collection/components/map/udp-map/popups/select-layer-popup.js +2 -2
  262. package/dist/collection/components/map/udp-map/popups/split-line-popup.js +1 -1
  263. package/dist/collection/components/map/udp-map/toolbar/map-toolbar.js +6 -6
  264. package/dist/collection/components/map/udp-map/udp-map-toolbar.js +1 -1
  265. package/dist/collection/components/map/udp-map/udp-map.js +3 -3
  266. package/dist/collection/components/menu/menu-item/udp-menu-item.js +1 -1
  267. package/dist/collection/components/menu/udp-menu.js +1 -1
  268. package/dist/collection/components/new-form/field/udp-field.js +1 -1
  269. package/dist/collection/components/new-form/form/udp-form-component.js +2 -2
  270. package/dist/collection/components/stepper/udp-stepper-demo.js +1 -1
  271. package/dist/collection/components/tabs/tab/tabs/udp-tabs.js +2 -2
  272. package/dist/collection/components/tabs/tab/udp-tab.js +1 -1
  273. package/dist/collection/components/tabs/udp-tab-panel/udp-tab-panel.js +1 -1
  274. package/dist/collection/components/timeline/udp-timeline-connector.js +1 -1
  275. package/dist/collection/components/timeline/udp-timeline-dot.js +1 -1
  276. package/dist/collection/components/timeline/udp-timeline-item.js +2 -2
  277. package/dist/collection/components/timeline/udp-timeline-separator.js +1 -1
  278. package/dist/collection/components/timeline/udp-timeline.js +1 -1
  279. package/dist/collection/components/toolbars/app-bar/app-bar.js +1 -1
  280. package/dist/collection/components/util/ghost-render/ghost-render.js +1 -1
  281. package/dist/collection/components/util/lazy-loader/udp-lazy-loader.js +1 -1
  282. package/dist/collection/deprecated/components/side-sheet/side-sheet-container.js +1 -1
  283. package/dist/collection/deprecated/components/side-sheet/side-sheet.js +1 -1
  284. package/dist/collection/test-pages/test-components-page.js +28 -28
  285. package/dist/collection/test-pages/test-form.js +4 -4
  286. package/dist/collection/theme/ag-grid-theme-bridge.js +1 -1
  287. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/chip-section/chip-section.js +2 -2
  288. package/dist/collection/udp-utilities/layout/udp-dynamic-container-with-menu/udp-dynamic-container-with-menu.js +1 -1
  289. package/dist/components/add-map-feature-popup2.js +1 -1
  290. package/dist/components/address-search2.js +1 -1
  291. package/dist/components/ag-grid-base2.js +1 -1
  292. package/dist/components/ambient-template-grid.js +1 -1
  293. package/dist/components/api-method-instance-grid.js +1 -1
  294. package/dist/components/app-bar.js +1 -1
  295. package/dist/components/chart-kpi2.js +1 -1
  296. package/dist/components/charts-theme.js +1 -0
  297. package/dist/components/check-box.js +1 -1
  298. package/dist/components/chip-section.js +1 -1
  299. package/dist/components/client-side-grid2.js +1 -1
  300. package/dist/components/edit-view-form.js +1 -1
  301. package/dist/components/feature-details-card2.js +1 -1
  302. package/dist/components/feature-details-popup2.js +1 -1
  303. package/dist/components/file-upload-renderer2.js +1 -1
  304. package/dist/components/file-upload2.js +1 -1
  305. package/dist/components/form-metadata-display-renderer2.js +1 -1
  306. package/dist/components/form-metadata-display2.js +1 -1
  307. package/dist/components/ghost-render2.js +1 -1
  308. package/dist/components/grid-primary-bar2.js +1 -1
  309. package/dist/components/hint-panel2.js +1 -1
  310. package/dist/components/icon-grid.js +1 -1
  311. package/dist/components/image-upload2.js +1 -1
  312. package/dist/components/index.js +1 -1
  313. package/dist/components/kpi-list2.js +1 -1
  314. package/dist/components/list-item.js +1 -1
  315. package/dist/components/list-options-renderer2.js +1 -1
  316. package/dist/components/location-renderer2.js +1 -1
  317. package/dist/components/map-component2.js +1 -1
  318. package/dist/components/map-toolbar2.js +1 -1
  319. package/dist/components/numeric-field2.js +1 -1
  320. package/dist/components/primary-action-header2.js +1 -1
  321. package/dist/components/question-configs-renderer2.js +1 -1
  322. package/dist/components/resource-timeline-calendar.js +1 -1
  323. package/dist/components/resource-timeline-primary-bar2.js +1 -1
  324. package/dist/components/save-view-form.js +1 -1
  325. package/dist/components/search-list-item2.js +1 -1
  326. package/dist/components/search-method-grid2.js +1 -1
  327. package/dist/components/section-configs-renderer2.js +1 -1
  328. package/dist/components/select-layer-popup2.js +1 -1
  329. package/dist/components/server-side-grid2.js +1 -1
  330. package/dist/components/side-sheet-container2.js +1 -1
  331. package/dist/components/side-sheet2.js +1 -1
  332. package/dist/components/signature-input2.js +1 -1
  333. package/dist/components/signature-renderer2.js +1 -1
  334. package/dist/components/simple-card.js +1 -1
  335. package/dist/components/split-line-popup2.js +1 -1
  336. package/dist/components/status-chip2.js +1 -1
  337. package/dist/components/stencil-chip2.js +1 -1
  338. package/dist/components/stencil-form2.js +1 -1
  339. package/dist/components/stencil-toggle2.js +1 -1
  340. package/dist/components/table-columns-renderer2.js +1 -1
  341. package/dist/components/table-input2.js +1 -1
  342. package/dist/components/tally.js +1 -1
  343. package/dist/components/test-components-page.js +1 -1
  344. package/dist/components/test-form2.js +1 -1
  345. package/dist/components/text-area2.js +1 -1
  346. package/dist/components/text-field2.js +1 -1
  347. package/dist/components/text-input-renderer2.js +1 -1
  348. package/dist/components/theme-manager.js +1 -0
  349. package/dist/components/udp-adornment2.js +1 -1
  350. package/dist/components/udp-advanced-search-builder.js +1 -1
  351. package/dist/components/udp-ag-area-chart.d.ts +11 -0
  352. package/dist/components/udp-ag-area-chart.js +2 -0
  353. package/dist/components/udp-ag-bar-chart.d.ts +11 -0
  354. package/dist/components/udp-ag-bar-chart.js +2 -0
  355. package/dist/components/udp-ag-bar-chart2.js +1 -0
  356. package/dist/components/udp-ag-bubble-chart.d.ts +11 -0
  357. package/dist/components/udp-ag-bubble-chart.js +2 -0
  358. package/dist/components/udp-ag-combo-chart.d.ts +11 -0
  359. package/dist/components/udp-ag-combo-chart.js +2 -0
  360. package/dist/components/udp-ag-donut-chart.d.ts +11 -0
  361. package/dist/components/udp-ag-donut-chart.js +2 -0
  362. package/dist/components/udp-ag-line-chart.d.ts +11 -0
  363. package/dist/components/udp-ag-line-chart.js +2 -0
  364. package/dist/components/udp-ag-pie-chart.d.ts +11 -0
  365. package/dist/components/udp-ag-pie-chart.js +2 -0
  366. package/dist/components/udp-ag-scatter-chart.d.ts +11 -0
  367. package/dist/components/udp-ag-scatter-chart.js +2 -0
  368. package/dist/components/udp-ambient-card2.js +1 -1
  369. package/dist/components/udp-ambient-tool-tip2.js +1 -1
  370. package/dist/components/udp-autocomplete2.js +1 -1
  371. package/dist/components/udp-avatar2.js +1 -1
  372. package/dist/components/udp-badge2.js +1 -1
  373. package/dist/components/udp-bar-chart.js +1 -1
  374. package/dist/components/udp-calendar-base2.js +1 -1
  375. package/dist/components/udp-calendar-day.js +1 -1
  376. package/dist/components/udp-calendar-month.js +1 -1
  377. package/dist/components/udp-calendar-week.js +1 -1
  378. package/dist/components/udp-calendar-year.js +1 -1
  379. package/dist/components/udp-card-action-area.js +1 -1
  380. package/dist/components/udp-card-actions2.js +1 -1
  381. package/dist/components/udp-card-content2.js +1 -1
  382. package/dist/components/udp-card-header2.js +1 -1
  383. package/dist/components/udp-card-media2.js +1 -1
  384. package/dist/components/udp-card2.js +1 -1
  385. package/dist/components/udp-charts-example.js +1 -1
  386. package/dist/components/udp-chip2.js +1 -1
  387. package/dist/components/udp-column-header2.js +1 -1
  388. package/dist/components/udp-compound-button2.js +1 -1
  389. package/dist/components/udp-container-query-grid-item.js +1 -1
  390. package/dist/components/udp-container-query-grid.js +1 -1
  391. package/dist/components/udp-container-query2.js +1 -1
  392. package/dist/components/udp-container2.js +1 -1
  393. package/dist/components/udp-date-input2.js +1 -1
  394. package/dist/components/udp-date-range-selector2.js +1 -1
  395. package/dist/components/udp-date-selector2.js +1 -1
  396. package/dist/components/udp-date-time-input2.js +1 -1
  397. package/dist/components/udp-datetime-selector2.js +1 -1
  398. package/dist/components/udp-dialog2.js +1 -1
  399. package/dist/components/udp-distribution-chart2.js +1 -1
  400. package/dist/components/udp-divider2.js +1 -1
  401. package/dist/components/udp-donut-chart2.js +1 -1
  402. package/dist/components/udp-dynamic-container-with-menu2.js +1 -1
  403. package/dist/components/udp-dynamic-form.js +1 -1
  404. package/dist/components/udp-empty-state-display2.js +1 -1
  405. package/dist/components/udp-field2.js +1 -1
  406. package/dist/components/udp-fluent-avatar2.js +1 -1
  407. package/dist/components/udp-fluent-badge2.js +1 -1
  408. package/dist/components/udp-fluent-button2.js +1 -1
  409. package/dist/components/udp-fluent-card2.js +1 -1
  410. package/dist/components/udp-fluent-checkbox2.js +1 -1
  411. package/dist/components/udp-fluent-counter-badge2.js +1 -1
  412. package/dist/components/udp-fluent-dialog2.js +1 -1
  413. package/dist/components/udp-fluent-divider2.js +1 -1
  414. package/dist/components/udp-fluent-drawer2.js +1 -1
  415. package/dist/components/udp-fluent-dropdown2.js +1 -1
  416. package/dist/components/udp-fluent-file-input.js +1 -1
  417. package/dist/components/udp-fluent-icon-button2.js +1 -1
  418. package/dist/components/udp-fluent-image.js +1 -1
  419. package/dist/components/udp-fluent-inline-edit.js +1 -1
  420. package/dist/components/udp-fluent-link.js +1 -1
  421. package/dist/components/udp-fluent-location-input.js +1 -1
  422. package/dist/components/udp-fluent-number-input.d.ts +11 -0
  423. package/dist/components/udp-fluent-number-input.js +2 -0
  424. package/dist/components/udp-fluent-radio-group2.js +1 -1
  425. package/dist/components/udp-fluent-signature-input.js +1 -1
  426. package/dist/components/udp-fluent-switch2.js +1 -1
  427. package/dist/components/udp-fluent-tablist2.js +1 -1
  428. package/dist/components/udp-fluent-text-input2.js +1 -1
  429. package/dist/components/udp-fluent-toggle-button2.js +1 -1
  430. package/dist/components/udp-form-component2.js +1 -1
  431. package/dist/components/udp-forms-builder-menu2.js +1 -1
  432. package/dist/components/udp-forms-builder-question-item2.js +1 -1
  433. package/dist/components/udp-forms-builder-style-override.js +1 -1
  434. package/dist/components/udp-forms-follow-up-list-card.js +1 -1
  435. package/dist/components/udp-forms-list-card2.js +1 -1
  436. package/dist/components/udp-forms-list.js +1 -1
  437. package/dist/components/udp-forms-renderer.js +1 -1
  438. package/dist/components/udp-grid-loader2.js +1 -1
  439. package/dist/components/udp-hotlist-form2.js +1 -1
  440. package/dist/components/udp-kpi-card2.js +1 -1
  441. package/dist/components/udp-kpi-cards.js +1 -1
  442. package/dist/components/udp-lazy-loader2.js +1 -1
  443. package/dist/components/udp-line-chart2.js +1 -1
  444. package/dist/components/udp-linear-loader2.js +1 -1
  445. package/dist/components/udp-map-toolbar2.js +1 -1
  446. package/dist/components/udp-map.js +1 -1
  447. package/dist/components/udp-menu-item2.js +1 -1
  448. package/dist/components/udp-menu.js +1 -1
  449. package/dist/components/udp-message-bar2.js +1 -1
  450. package/dist/components/udp-notification2.js +1 -1
  451. package/dist/components/udp-page-header2.js +1 -1
  452. package/dist/components/udp-page.js +1 -1
  453. package/dist/components/udp-pop-over-grid-action-header2.js +1 -1
  454. package/dist/components/udp-pop-over2.js +1 -1
  455. package/dist/components/udp-progress-bar2.js +1 -1
  456. package/dist/components/udp-sankey-chart.js +1 -1
  457. package/dist/components/udp-search-input2.js +1 -1
  458. package/dist/components/udp-selector2.js +1 -1
  459. package/dist/components/udp-side-sheet2.js +1 -1
  460. package/dist/components/udp-sidebar-layout.d.ts +11 -0
  461. package/dist/components/udp-sidebar-layout.js +2 -0
  462. package/dist/components/udp-skeleton-loading2.js +1 -1
  463. package/dist/components/udp-slider2.js +1 -1
  464. package/dist/components/udp-spinner2.js +1 -1
  465. package/dist/components/udp-split-screen.js +1 -1
  466. package/dist/components/udp-stepper-demo.js +1 -1
  467. package/dist/components/udp-tab-panel2.js +1 -1
  468. package/dist/components/udp-tab.js +1 -1
  469. package/dist/components/udp-tabs2.js +1 -1
  470. package/dist/components/udp-textarea2.js +1 -1
  471. package/dist/components/udp-time-input2.js +1 -1
  472. package/dist/components/udp-time-selector2.js +1 -1
  473. package/dist/components/udp-timeline-connector.js +1 -1
  474. package/dist/components/udp-timeline-dot.js +1 -1
  475. package/dist/components/udp-timeline-item.js +1 -1
  476. package/dist/components/udp-timeline-separator.js +1 -1
  477. package/dist/components/udp-timeline.js +1 -1
  478. package/dist/components/udp-tooltip2.js +1 -1
  479. package/dist/components/udp-tree2.js +1 -1
  480. package/dist/components/udp-xy-chart2.js +1 -1
  481. package/dist/components/udp-xy-multi-series-chart.js +1 -1
  482. package/dist/components/upd-alert-banner2.js +1 -1
  483. package/dist/docs.json +13789 -10151
  484. package/dist/esm/add-map-feature-popup_4.entry.js +12 -12
  485. package/dist/esm/address-search_6.entry.js +18 -18
  486. package/dist/esm/advanced-search_12.entry.js +13 -13
  487. package/dist/esm/ag-grid-base_63.entry.js +388 -148
  488. package/dist/esm/ambient-template-grid.entry.js +16 -16
  489. package/dist/esm/api-method-instance-grid.entry.js +2 -2
  490. package/dist/esm/app-bar.entry.js +1 -1
  491. package/dist/esm/chart-container_3.entry.js +2 -2
  492. package/dist/esm/charts-theme-B2HoYVMf.js +383 -0
  493. package/dist/esm/check-box.entry.js +2 -2
  494. package/dist/esm/chip-section.entry.js +2 -2
  495. package/dist/esm/date-time-renderer_9.entry.js +21 -21
  496. package/dist/esm/feature-details-card_2.entry.js +5 -5
  497. package/dist/esm/file-upload_2.entry.js +5 -5
  498. package/dist/esm/filter-conditions_7.entry.js +5 -5
  499. package/dist/esm/form-metadata-display_10.entry.js +8 -8
  500. package/dist/esm/icon-grid.entry.js +1 -1
  501. package/dist/esm/index-Cgpvu-iV.js +44 -4
  502. package/dist/esm/index.js +4 -152
  503. package/dist/esm/loader.js +1 -1
  504. package/dist/esm/map-component_2.entry.js +2 -2
  505. package/dist/esm/primary-action-header_2.entry.js +4 -4
  506. package/dist/esm/question-configs-renderer_4.entry.js +15 -15
  507. package/dist/esm/resource-timeline-calendar.entry.js +1 -1
  508. package/dist/esm/resource-timeline-primary-bar.entry.js +3 -3
  509. package/dist/esm/search-method-grid.entry.js +1 -1
  510. package/dist/esm/server-side-grid.entry.js +1 -1
  511. package/dist/esm/side-sheet-container.entry.js +1 -1
  512. package/dist/esm/simple-card.entry.js +1 -1
  513. package/dist/esm/slot-helpers-Dx6EW-PP.js +9 -0
  514. package/dist/esm/status-chip_2.entry.js +1 -1
  515. package/dist/esm/stencil-chip.entry.js +2 -2
  516. package/dist/esm/stencil-library.js +1 -1
  517. package/dist/esm/stencil-toggle.entry.js +4 -4
  518. package/dist/esm/text-field_2.entry.js +7 -7
  519. package/dist/esm/theme-manager-DeVqiL0i.js +153 -0
  520. package/dist/esm/udp-adornment.entry.js +1 -1
  521. package/dist/esm/udp-advanced-search-builder.entry.js +7 -4
  522. package/dist/esm/udp-ag-area-chart.entry.js +118 -0
  523. package/dist/esm/{udp-bar-chart_4.entry.js → udp-ag-bar-chart_4.entry.js} +110 -31
  524. package/dist/esm/udp-ag-bubble-chart.entry.js +118 -0
  525. package/dist/esm/udp-ag-combo-chart.entry.js +118 -0
  526. package/dist/esm/udp-ag-donut-chart.entry.js +116 -0
  527. package/dist/esm/udp-ag-line-chart.entry.js +118 -0
  528. package/dist/esm/udp-ag-pie-chart.entry.js +116 -0
  529. package/dist/esm/udp-ag-scatter-chart.entry.js +118 -0
  530. package/dist/esm/udp-attachment-item_2.entry.js +1 -1
  531. package/dist/esm/udp-bar-chart.entry.js +39 -0
  532. package/dist/esm/udp-calendar-base.entry.js +44 -71
  533. package/dist/esm/udp-calendar-day.entry.js +1 -3
  534. package/dist/esm/udp-calendar-month.entry.js +1 -3
  535. package/dist/esm/udp-calendar-week.entry.js +1 -3
  536. package/dist/esm/udp-calendar-year.entry.js +1 -3
  537. package/dist/esm/udp-card-action-area.entry.js +1 -1
  538. package/dist/esm/udp-card_6.entry.js +7 -7
  539. package/dist/esm/udp-charts-example.entry.js +14 -1
  540. package/dist/esm/udp-container-query-grid-item.entry.js +1 -1
  541. package/dist/esm/udp-container-query-grid.entry.js +1 -1
  542. package/dist/esm/udp-container-query.entry.js +2 -2
  543. package/dist/esm/udp-container.entry.js +2 -2
  544. package/dist/esm/udp-dynamic-container-with-menu.entry.js +1 -1
  545. package/dist/esm/udp-dynamic-form.entry.js +1 -1
  546. package/dist/esm/udp-fluent-file-input.entry.js +4 -4
  547. package/dist/esm/udp-fluent-image.entry.js +1 -1
  548. package/dist/esm/udp-fluent-inline-edit.entry.js +1 -1
  549. package/dist/esm/udp-fluent-link.entry.js +1 -1
  550. package/dist/esm/udp-fluent-location-input.entry.js +3 -3
  551. package/dist/esm/udp-fluent-number-input.entry.js +97 -0
  552. package/dist/esm/udp-fluent-signature-input.entry.js +4 -4
  553. package/dist/esm/udp-forms-builder-style-override.entry.js +1 -1
  554. package/dist/esm/udp-forms-follow-up-list-card.entry.js +2 -2
  555. package/dist/esm/udp-forms-list-card.entry.js +4 -4
  556. package/dist/esm/udp-forms-list.entry.js +1 -1
  557. package/dist/esm/udp-forms-renderer.entry.js +1 -1
  558. package/dist/esm/udp-kpi-card.entry.js +1 -1
  559. package/dist/esm/udp-kpi-cards.entry.js +2 -2
  560. package/dist/esm/udp-map.entry.js +3 -3
  561. package/dist/esm/udp-menu.entry.js +1 -1
  562. package/dist/esm/udp-page.entry.js +1 -1
  563. package/dist/esm/udp-sankey-chart.entry.js +1 -1
  564. package/dist/esm/udp-sidebar-layout.entry.js +65 -0
  565. package/dist/esm/udp-skeleton-loading.entry.js +1 -1
  566. package/dist/esm/udp-split-screen.entry.js +1 -1
  567. package/dist/esm/udp-stepper-demo.entry.js +1 -1
  568. package/dist/esm/udp-tab.entry.js +1 -1
  569. package/dist/esm/udp-timeline-connector.entry.js +1 -1
  570. package/dist/esm/udp-timeline-dot.entry.js +1 -1
  571. package/dist/esm/udp-timeline-item.entry.js +2 -2
  572. package/dist/esm/udp-timeline-separator.entry.js +1 -1
  573. package/dist/esm/udp-timeline.entry.js +1 -1
  574. package/dist/esm/udp-xy-chart.entry.js +1 -1
  575. package/dist/esm/udp-xy-multi-series-chart.entry.js +1 -1
  576. package/dist/stencil-library/add-map-feature-popup_4.entry.js +1 -1
  577. package/dist/stencil-library/address-search_6.entry.js +1 -1
  578. package/dist/stencil-library/advanced-search_12.entry.js +1 -1
  579. package/dist/stencil-library/ag-grid-base_63.entry.js +1 -1
  580. package/dist/stencil-library/ambient-template-grid.entry.js +1 -1
  581. package/dist/stencil-library/api-method-instance-grid.entry.js +1 -1
  582. package/dist/stencil-library/app-bar.entry.js +1 -1
  583. package/dist/stencil-library/chart-container_3.entry.js +1 -1
  584. package/dist/stencil-library/charts-theme-B2HoYVMf.js +1 -0
  585. package/dist/stencil-library/check-box.entry.js +1 -1
  586. package/dist/stencil-library/chip-section.entry.js +1 -1
  587. package/dist/stencil-library/date-time-renderer_9.entry.js +1 -1
  588. package/dist/stencil-library/feature-details-card_2.entry.js +1 -1
  589. package/dist/stencil-library/file-upload_2.entry.js +1 -1
  590. package/dist/stencil-library/filter-conditions_7.entry.js +1 -1
  591. package/dist/stencil-library/form-metadata-display_10.entry.js +1 -1
  592. package/dist/stencil-library/icon-grid.entry.js +1 -1
  593. package/dist/stencil-library/index.esm.js +1 -1
  594. package/dist/stencil-library/map-component_2.entry.js +1 -1
  595. package/dist/stencil-library/primary-action-header_2.entry.js +1 -1
  596. package/dist/stencil-library/question-configs-renderer_4.entry.js +1 -1
  597. package/dist/stencil-library/resource-timeline-calendar.entry.js +1 -1
  598. package/dist/stencil-library/resource-timeline-primary-bar.entry.js +1 -1
  599. package/dist/stencil-library/search-method-grid.entry.js +1 -1
  600. package/dist/stencil-library/server-side-grid.entry.js +1 -1
  601. package/dist/stencil-library/side-sheet-container.entry.js +1 -1
  602. package/dist/stencil-library/simple-card.entry.js +1 -1
  603. package/dist/stencil-library/slot-helpers-Dx6EW-PP.js +1 -0
  604. package/dist/stencil-library/status-chip_2.entry.js +1 -1
  605. package/dist/stencil-library/stencil-chip.entry.js +1 -1
  606. package/dist/stencil-library/stencil-library.esm.js +1 -1
  607. package/dist/stencil-library/stencil-toggle.entry.js +1 -1
  608. package/dist/stencil-library/text-field_2.entry.js +1 -1
  609. package/dist/stencil-library/theme-manager-DeVqiL0i.js +1 -0
  610. package/dist/stencil-library/udp-adornment.entry.js +1 -1
  611. package/dist/stencil-library/udp-advanced-search-builder.entry.js +1 -1
  612. package/dist/stencil-library/udp-ag-area-chart.entry.js +1 -0
  613. package/dist/stencil-library/udp-ag-bar-chart_4.entry.js +1 -0
  614. package/dist/stencil-library/udp-ag-bubble-chart.entry.js +1 -0
  615. package/dist/stencil-library/udp-ag-combo-chart.entry.js +1 -0
  616. package/dist/stencil-library/udp-ag-donut-chart.entry.js +1 -0
  617. package/dist/stencil-library/udp-ag-line-chart.entry.js +1 -0
  618. package/dist/stencil-library/udp-ag-pie-chart.entry.js +1 -0
  619. package/dist/stencil-library/udp-ag-scatter-chart.entry.js +1 -0
  620. package/dist/stencil-library/udp-attachment-item_2.entry.js +1 -1
  621. package/dist/stencil-library/udp-bar-chart.entry.js +1 -0
  622. package/dist/stencil-library/udp-calendar-base.entry.js +1 -1
  623. package/dist/stencil-library/udp-calendar-day.entry.js +1 -1
  624. package/dist/stencil-library/udp-calendar-month.entry.js +1 -1
  625. package/dist/stencil-library/udp-calendar-week.entry.js +1 -1
  626. package/dist/stencil-library/udp-calendar-year.entry.js +1 -1
  627. package/dist/stencil-library/udp-card-action-area.entry.js +1 -1
  628. package/dist/stencil-library/udp-card_6.entry.js +1 -1
  629. package/dist/stencil-library/udp-charts-example.entry.js +1 -1
  630. package/dist/stencil-library/udp-container-query-grid-item.entry.js +1 -1
  631. package/dist/stencil-library/udp-container-query-grid.entry.js +1 -1
  632. package/dist/stencil-library/udp-container-query.entry.js +1 -1
  633. package/dist/stencil-library/udp-container.entry.js +1 -1
  634. package/dist/stencil-library/udp-dynamic-container-with-menu.entry.js +1 -1
  635. package/dist/stencil-library/udp-dynamic-form.entry.js +1 -1
  636. package/dist/stencil-library/udp-fluent-file-input.entry.js +1 -1
  637. package/dist/stencil-library/udp-fluent-image.entry.js +1 -1
  638. package/dist/stencil-library/udp-fluent-inline-edit.entry.js +1 -1
  639. package/dist/stencil-library/udp-fluent-link.entry.js +1 -1
  640. package/dist/stencil-library/udp-fluent-location-input.entry.js +1 -1
  641. package/dist/stencil-library/udp-fluent-number-input.entry.js +1 -0
  642. package/dist/stencil-library/udp-fluent-signature-input.entry.js +1 -1
  643. package/dist/stencil-library/udp-forms-builder-style-override.entry.js +1 -1
  644. package/dist/stencil-library/udp-forms-follow-up-list-card.entry.js +1 -1
  645. package/dist/stencil-library/udp-forms-list-card.entry.js +1 -1
  646. package/dist/stencil-library/udp-forms-list.entry.js +1 -1
  647. package/dist/stencil-library/udp-forms-renderer.entry.js +1 -1
  648. package/dist/stencil-library/udp-kpi-card.entry.js +1 -1
  649. package/dist/stencil-library/udp-kpi-cards.entry.js +1 -1
  650. package/dist/stencil-library/udp-map.entry.js +1 -1
  651. package/dist/stencil-library/udp-menu.entry.js +1 -1
  652. package/dist/stencil-library/udp-page.entry.js +1 -1
  653. package/dist/stencil-library/udp-sankey-chart.entry.js +1 -1
  654. package/dist/stencil-library/udp-sidebar-layout.entry.js +1 -0
  655. package/dist/stencil-library/udp-skeleton-loading.entry.js +1 -1
  656. package/dist/stencil-library/udp-split-screen.entry.js +1 -1
  657. package/dist/stencil-library/udp-stepper-demo.entry.js +1 -1
  658. package/dist/stencil-library/udp-tab.entry.js +1 -1
  659. package/dist/stencil-library/udp-timeline-connector.entry.js +1 -1
  660. package/dist/stencil-library/udp-timeline-dot.entry.js +1 -1
  661. package/dist/stencil-library/udp-timeline-item.entry.js +1 -1
  662. package/dist/stencil-library/udp-timeline-separator.entry.js +1 -1
  663. package/dist/stencil-library/udp-timeline.entry.js +1 -1
  664. package/dist/stencil-library/udp-xy-chart.entry.js +1 -1
  665. package/dist/stencil-library/udp-xy-multi-series-chart.entry.js +1 -1
  666. package/dist/types/components/calendar/udp-calendar-base.d.ts +5 -2
  667. package/dist/types/components/calendar/udp-calendar-day.d.ts +1 -2
  668. package/dist/types/components/calendar/udp-calendar-month.d.ts +1 -2
  669. package/dist/types/components/calendar/udp-calendar-week.d.ts +1 -2
  670. package/dist/types/components/calendar/udp-calendar-year.d.ts +1 -2
  671. package/dist/types/components/charts/chart-container/chart-container.d.ts +7 -0
  672. package/dist/types/components/charts/chart-kpi/chart-kpi.d.ts +5 -0
  673. package/dist/types/components/charts/charts-theme.d.ts +80 -0
  674. package/dist/types/components/charts/udp-ag-area-chart/udp-ag-area-chart.d.ts +73 -0
  675. package/dist/types/components/charts/udp-ag-bar-chart/udp-ag-bar-chart.d.ts +62 -0
  676. package/dist/types/components/charts/udp-ag-bubble-chart/udp-ag-bubble-chart.d.ts +70 -0
  677. package/dist/types/components/charts/udp-ag-combo-chart/udp-ag-combo-chart.d.ts +83 -0
  678. package/dist/types/components/charts/udp-ag-donut-chart/udp-ag-donut-chart.d.ts +70 -0
  679. package/dist/types/components/charts/udp-ag-line-chart/udp-ag-line-chart.d.ts +75 -0
  680. package/dist/types/components/charts/udp-ag-pie-chart/udp-ag-pie-chart.d.ts +72 -0
  681. package/dist/types/components/charts/udp-ag-scatter-chart/udp-ag-scatter-chart.d.ts +76 -0
  682. package/dist/types/components/charts/udp-bar-chart/udp-bar-chart.d.ts +4 -0
  683. package/dist/types/components/charts/udp-charts-example.d.ts +1 -1
  684. package/dist/types/components/charts/udp-distribution-chart/udp-distribution-chart.d.ts +4 -0
  685. package/dist/types/components/charts/udp-donut-chart/udp-donut-chart.d.ts +4 -0
  686. package/dist/types/components/charts/udp-line-chart/udp-line-chart.d.ts +4 -0
  687. package/dist/types/components/charts/udp-sankey-chart/udp-sankey-chart.d.ts +5 -0
  688. package/dist/types/components/charts/udp-xy-chart/udp-xy-chart.d.ts +5 -0
  689. package/dist/types/components/charts/udp-xy-multi-series-chart/udp-xy-multi-series-chart.d.ts +4 -0
  690. package/dist/types/components/fluent-ui/autocomplete/udp-autocomplete.d.ts +39 -7
  691. package/dist/types/components/fluent-ui/date-input/udp-date-input.d.ts +15 -1
  692. package/dist/types/components/fluent-ui/date-time-input/udp-date-time-input.d.ts +10 -1
  693. package/dist/types/components/fluent-ui/dropdown/udp-fluent-dropdown.d.ts +33 -5
  694. package/dist/types/components/fluent-ui/number-input/udp-fluent-number-input.d.ts +66 -0
  695. package/dist/types/components/fluent-ui/tree/udp-tree.d.ts +78 -0
  696. package/dist/types/components/grid/new-grid/gridFunctions/bulkActions.d.ts +20 -0
  697. package/dist/types/components/layout/udp-sidebar-layout/udp-sidebar-layout.d.ts +54 -0
  698. package/dist/types/components.d.ts +1912 -76
  699. package/package.json +2 -1
  700. package/dist/components/udp-bar-chart2.js +0 -1
  701. package/dist/stencil-library/udp-bar-chart_4.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as i,c as t,h as e,H as o,a as s}from"./index-Cgpvu-iV.js";import n from"@carbon/icons/es/close/24";import a from"axios";import{i as r,e as l,g as c}from"./udp-drive-utils-BwlXaZc5.js";import{d as h}from"./utils-kwLwITIE.js";import{g as d}from"./iconUtils-BzY-c9Op.js";import{C as p}from"./configService-DgYnEcjx.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/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 m=class{constructor(e){i(this,e),this.change=t(this,"change",7),this.metadataEmit=t(this,"metadataEmit",7),this.fullWidth=!1,this.hideDragAndDrop=!1,this.hideButton=!1,this.disabled=!1,this.readonly=!1,this.renderImage=!1,this.displayUploadTime=!1,this.files=[],this.fileWindowOpen=!1,this.existingFileReferences=new Map,this.imagePreviewUrl=null,this.imagePreviewUrls=[],this.imagePreviewLoading=[],this.isImageModalOpen=!1,this.selectedImageModalUrl=null,this.selectedImageModalName=null,this.isInitialized=!1,this.previewLoadRequestId=0,this.modalLayoutResizeObserver=null,this.modalLayoutRafId=null,this.uploadTimestampsByFileName=new Map,this.dragCounter=0,this.handleDragOver=i=>{this.disabled||this.readonly||this.hideDragAndDrop||(i.preventDefault(),i.stopPropagation())},this.handleDragEnter=i=>{if(this.disabled||this.readonly||this.hideDragAndDrop)return;i.preventDefault(),i.stopPropagation();const t=i.currentTarget;this.dragCounter++,t.classList.add("highlight")},this.handleDragLeave=i=>{if(this.disabled||this.readonly||this.hideDragAndDrop)return;i.preventDefault(),i.stopPropagation();const t=i.currentTarget;this.dragCounter--,0===this.dragCounter&&t.classList.remove("highlight")},this.handleDrop=i=>{if(this.hideDragAndDrop)return i.preventDefault(),void i.stopPropagation();this.disabled||this.readonly||(i.preventDefault(),i.stopPropagation(),i.currentTarget.classList.remove("highlight"),this.handleFiles(i.dataTransfer.files))},this.handleFileInput=i=>{const t=i.target;t.files&&t.files.length>0&&this.handleFiles(t.files),t.value="",this.fileWindowOpen=!1},this.handleFiles=i=>{if(0===i.length)return;const t=[...this.files],e=[],o=new Set,s=new Set;for(let n=0;n<i.length;n++){const a=i[n];if(!a.name||""===a.name.trim())continue;const r=this.normalizeFileName(a.name);if(this.allowMultiple){const i=t.some((i=>this.normalizeFileName(i.name)===r)),e=s.has(r);if(i||e){o.add(a.name.trim());continue}}if(s.add(r),!t.some((i=>i.name===a.name&&i.size===a.size))&&this.isFileTypeAllowed(a)&&(e.push(a),!this.allowMultiple))break}o.size>0?this.showDuplicateFileError(Array.from(o)):this.errorMessage=this.error,e.length>0&&(this.files=this.allowMultiple?[...t,...e]:[e[0]],this.updateImagePreview(),this.emitFileChangeEvents())},this.handleBrowseFiles=i=>{if(!this.disabled&&!this.readonly){if(i.preventDefault(),i.stopPropagation(),!this.hiddenInput){console.error("File input not initialized yet, attempting to create it now...");try{this.hiddenInput=document.createElement("input"),this.hiddenInput.type="file",this.hiddenInput.multiple=this.allowMultiple,this.hiddenInput.style.display="none",this.hiddenInput.addEventListener("change",this.handleFileInput),document.body.appendChild(this.hiddenInput)}catch(i){return void console.error("Failed to create file input:",i)}}this.fileWindowOpen=!0,this.hiddenInput.click()}},this.handleRemoveFile=i=>{if(this.disabled||this.readonly)return;const t=this.files[i];this.existingFileReferences.has(t.name)&&this.existingFileReferences.delete(t.name),this.files.splice(i,1),this.files=[...this.files],this.updateImagePreview(),this.files.length||(this.isImageModalOpen=!1),this.emitFileChangeEvents()},this.syncModalLayoutToLayoutContainer=()=>{const i=this.findLayoutContainer();if(!i)return void this.clearModalLayoutVars();const t=i.getBoundingClientRect(),e=getComputedStyle(document.documentElement),o=Number.parseFloat(e.getPropertyValue("--udp-image-modal-safe-top-offset"))||48,s=Number.parseFloat(e.getPropertyValue("--udp-image-modal-safe-bottom-offset"))||0,n=Math.max(0,o),a=Math.max(n,window.innerHeight-Math.max(0,s)),r=Math.max(t.top,n),l=Math.min(t.bottom,a),c=Math.max(0,Math.round(r)),h=Math.max(0,Math.round(t.left)),d=Math.max(0,Math.round(window.innerWidth-t.right)),p=Math.max(0,Math.round(window.innerHeight-l));this.el.style.setProperty("--udp-image-modal-top-offset",`${c}px`),this.el.style.setProperty("--udp-image-modal-left-offset",`${h}px`),this.el.style.setProperty("--udp-image-modal-right-offset",`${d}px`),this.el.style.setProperty("--udp-image-modal-bottom-offset",`${p}px`)},this.scheduleModalLayoutSync=()=>{null!==this.modalLayoutRafId&&cancelAnimationFrame(this.modalLayoutRafId),this.modalLayoutRafId=requestAnimationFrame((()=>{this.modalLayoutRafId=null,this.syncModalLayoutToLayoutContainer()}))},this.openImageModal=(i,t)=>{var e,o;if(this.disabled)return;const s=i||this.imagePreviewUrl;s&&(this.selectedImageModalUrl=s,this.selectedImageModalName=t||(null===(o=null===(e=this.files)||void 0===e?void 0:e[0])||void 0===o?void 0:o.name)||null,this.isImageModalOpen=!0,this.startModalLayoutSync())},this.closeImageModal=i=>{i&&(i.stopPropagation(),i.preventDefault()),this.isImageModalOpen=!1,this.selectedImageModalUrl=null,this.selectedImageModalName=null,this.stopModalLayoutSync()}}updateError(){this.errorMessage=this.error}async initialValueChanged(i){var t,e,o,s,n;let a=i;if(a&&"object"==typeof a&&"value"in a&&"files"in a){const i=a,t=Array.isArray(i.files)?i.files:[];let e=[];"string"==typeof i.value&&r(i.value)&&(e=(await l(i.value)).filter((i=>!!(null==i?void 0:i.driveFileId))));const o=new Map;e.forEach((i=>{(null==i?void 0:i.name)&&o.set(i.name,i)})),t.forEach((i=>{(null==i?void 0:i.name)&&o.set(i.name,i)})),a=Array.from(o.values())}if(!a)return this.files=[],this.updateImagePreview(),this.existingFileReferences.clear(),void this.uploadTimestampsByFileName.clear();try{this.existingFileReferences.clear();let i=[];if("string"==typeof a&&r(a)){const r=await l(a);if(this.renderImage&&!this.allowMultiple&&r.length>0){const n=r[0],a=(null==n?void 0:n.type)||this.getMimeTypeFromExtension((null==n?void 0:n.extension)||(null===(e=null===(t=null==n?void 0:n.name)||void 0===t?void 0:t.split("."))||void 0===e?void 0:e.pop())||"");if(this.isRenderableImageFromNameOrMime(null==n?void 0:n.name,a)&&(null==n?void 0:n.driveFileId))try{const t={driveFileId:n.driveFileId,name:n.name,extension:n.extension||(null===(s=null===(o=n.name)||void 0===o?void 0:o.split("."))||void 0===s?void 0:s.pop())||""},e=await this.createFileFromUdpDriveFile(t);this.existingFileReferences.set(e.name,t),i=[e]}catch(i){console.warn("Eager image fetch from reference failed, using placeholders:",i)}}if(!i||0===i.length){i=r;for(const t of i)if(t.driveFileId){const i={driveFileId:t.driveFileId,name:t.name,extension:t.extension||(null===(n=t.name.split("."))||void 0===n?void 0:n.pop())||"",tenantId:null,productId:0,path:""};this.existingFileReferences.set(t.name,i)}}}else if(Array.isArray(a))i=(await Promise.all(a.map((i=>this.processInitialFile(i))))).filter((i=>null!==i));else if("object"==typeof a){const t=await this.processInitialFile(a);i=t?[t]:[]}this.files=i,this.updateImagePreview(),this.updateValueProp(),this.uploadTimestampsByFileName.clear()}catch(i){console.error("Error processing initial files:",i),this.files=[],this.updateImagePreview(),this.existingFileReferences.clear(),this.uploadTimestampsByFileName.clear()}}async processInitialFile(i){if(console.log(i),!i)return null;if(!this.isUdpDriveFile(i))return i instanceof File?i:null;{const t=this.getMimeTypeFromExtension(i.extension);if(this.renderImage&&!this.allowMultiple&&this.isRenderableImageFromNameOrMime(i.name,t))try{const t=await this.createFileFromUdpDriveFile(i);return this.existingFileReferences.set(t.name,i),t}catch(i){console.warn("Eager fetch failed, using placeholder:",i)}try{const t=this.createPlaceholderFileFromUdpDriveFile(i);return this.existingFileReferences.set(t.name,i),t}catch(i){return console.error("Error creating placeholder file from UdpDriveFile:",i),null}}}isUdpDriveFile(i){return i&&"object"==typeof i&&"driveFileId"in i}createPlaceholderFileFromUdpDriveFile(i){const t=i.extension||"bin",e=i.name||`file.${t}`,o=new Blob([""],{type:this.getMimeTypeFromExtension(t)});let s=Date.now();return i.lastUpdated&&("string"==typeof i.lastUpdated||"number"==typeof i.lastUpdated?s=new Date(i.lastUpdated).getTime():i.lastUpdated instanceof Date&&(s=i.lastUpdated.getTime())),new File([o],e,{type:o.type,lastModified:s})}async createFileFromUdpDriveFile(i){try{const t=`${p.tenantV1ApiUrl}/UdpDrive/${i.driveFileId}/stream`,e=(await a({method:"GET",url:t,responseType:"blob",timeout:3e5,headers:{}})).data,o=i.name||`file.${i.extension}`;return new File([e],o,{type:e.type||this.getMimeTypeFromExtension(i.extension),lastModified:i.lastUpdated?new Date(i.lastUpdated).getTime():Date.now()})}catch(t){return console.error("Error creating file from UdpDriveFile:",t),new File([""],i.name||`file.${i.extension}`,{type:"application/octet-stream"})}}async updateImagePreview(){const i=++this.previewLoadRequestId;if(this.clearImagePreviewUrls(),!this.renderImage||0===this.files.length)return this.imagePreviewUrl=null,this.imagePreviewUrls=[],void(this.imagePreviewLoading=[]);if(this.allowMultiple)this.imagePreviewUrl=null,this.imagePreviewUrls=this.files.map((()=>"")),this.imagePreviewLoading=this.files.map((()=>!0)),this.files.forEach(((t,e)=>{(async()=>{let o="";const s=this.existingFileReferences.get(t.name);if(s)try{const i=await this.createFileFromUdpDriveFile(s);this.isImageFile(i)&&(o=URL.createObjectURL(i))}catch(i){console.warn("Failed to load existing image preview:",i)}else this.isImageFile(t)&&(o=URL.createObjectURL(t));if(i!==this.previewLoadRequestId){if(o)try{URL.revokeObjectURL(o)}catch(i){}return}const n=[...this.imagePreviewUrls];n[e]=o,this.imagePreviewUrls=n;const a=[...this.imagePreviewLoading];a[e]=!1,this.imagePreviewLoading=a})().catch((()=>{if(i!==this.previewLoadRequestId)return;const t=[...this.imagePreviewLoading];t[e]=!1,this.imagePreviewLoading=t}))}));else{this.imagePreviewLoading=[];const i=this.files[0];if(this.isImageFile(i)){if(this.imagePreviewUrl)try{URL.revokeObjectURL(this.imagePreviewUrl)}catch(i){}this.imagePreviewUrl=URL.createObjectURL(i)}else this.imagePreviewUrl=null}}clearImagePreviewUrls(){Array.isArray(this.imagePreviewUrls)&&0!==this.imagePreviewUrls.length&&(this.imagePreviewUrls.forEach((i=>{try{URL.revokeObjectURL(i)}catch(i){}})),this.imagePreviewUrls=[],this.imagePreviewLoading=[])}isImageFile(i){return!!i&&i.type.startsWith("image/")&&i.size>0}getMimeTypeFromExtension(i){return i&&{pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",txt:"text/plain",csv:"text/csv",json:"application/json",xml:"application/xml",html:"text/html",css:"text/css",js:"application/javascript",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",zip:"application/zip",rar:"application/x-rar-compressed","7z":"application/x-7z-compressed"}[i.toLowerCase()]||"application/octet-stream"}isRenderableImageFromNameOrMime(i,t){var e,o;if(t&&t.toLowerCase().startsWith("image/"))return!0;const s=null===(o=null===(e=null==i?void 0:i.split("."))||void 0===e?void 0:e.pop())||void 0===o?void 0:o.toLowerCase();return!!s&&new Set(["png","jpg","jpeg","gif","svg","webp","bmp"]).has(s)}async componentWillLoad(){if(!this.isInitialized){if(this.dragCounter=0,this.hiddenInput=document.createElement("input"),this.hiddenInput.type="file",this.hiddenInput.multiple=this.allowMultiple,this.hiddenInput.style.display="none",this.hiddenInput.addEventListener("change",this.handleFileInput),document.body.appendChild(this.hiddenInput),this.allowedMimeTypes&&this.disallowedMimeTypes)throw new Error("allowedMimeTypes and disallowedMimeTypes are mutually exclusive, you cannot use both props");if(!this.allowedMimeTypes&&!this.disallowedMimeTypes&&this.allowedFileTypes&&this.disallowedFileTypes)throw new Error("allowedFileTypes and disallowedFileTypes are mutually exclusive, you cannot use both props");this.allowedFileTypes&&console.warn("allowedFileTypes prop is deprecated. Use allowedMimeTypes for better security and validation."),this.disallowedFileTypes&&console.warn("disallowedFileTypes prop is deprecated. Use disallowedMimeTypes for better security and validation."),this.error&&(this.errorMessage=this.error),null!=this.initialValue&&""!==this.initialValue?await this.initialValueChanged(this.initialValue):null!=this.value&&await this.processValueProp(this.value),this.isInitialized=!0}}async processValueProp(i){let t=i;if(t&&"object"==typeof t&&"value"in t&&"files"in t){const i=t,e=Array.isArray(i.files)?i.files:[];let o=[];"string"==typeof i.value&&r(i.value)&&(o=(await l(i.value)).filter((i=>!!(null==i?void 0:i.driveFileId))));const s=new Map;o.forEach((i=>{(null==i?void 0:i.name)&&s.set(i.name,i)})),e.forEach((i=>{(null==i?void 0:i.name)&&s.set(i.name,i)})),t=Array.from(s.values())}if(null==t)return this.files=[],void this.uploadTimestampsByFileName.clear();try{if(Array.isArray(t)){if(0===t.length)return void(this.files=[]);const i=[];for(const e of t){const t=await this.processInitialFile(e);t&&i.push(t)}this.files=i}else{const i=await this.processInitialFile(t);this.files=i?[i]:[]}this.updateValueProp(),this.uploadTimestampsByFileName.clear()}catch(i){console.error("Error in processValueProp:",i),this.files=[],this.uploadTimestampsByFileName.clear()}}emitFileChangeEvents(){this.updateValueProp();const i=this.files.filter((i=>!this.existingFileReferences.has(i.name))),t=this.files.filter((i=>this.existingFileReferences.has(i.name)));if(0===i.length&&0===t.length)return this.change.emit(null),this.uploadTimestampsByFileName.clear(),void(this.metadataTimestampKey&&this.metadataEmit.emit({key:this.metadataTimestampKey,value:null}));const e=[];i.forEach((i=>{i.name&&""!==i.name.trim()&&e.push(encodeURIComponent(i.name.trim()))})),t.forEach((i=>{if(i.name&&""!==i.name.trim()){const t=this.existingFileReferences.get(i.name);t&&e.push(`${encodeURIComponent(i.name.trim())}|udp:${t.driveFileId}`)}}));const o=e.join(","),s={toString:()=>o,valueOf:()=>o,value:o,files:i.filter((i=>i.name&&""!==i.name.trim()))};this.change.emit(s),this.metadataTimestampKey&&this.metadataEmit.emit({key:this.metadataTimestampKey,value:this.buildUploadTimestampMetadata(this.files)})}getExternalUploadTimestampForFileName(i){if(!i||!this.uploadTimestamps)return null;if("string"==typeof this.uploadTimestamps)return this.uploadTimestamps;const t=i.trim(),e=encodeURIComponent(t);return this.uploadTimestamps[e]||this.uploadTimestamps[t]||null}buildUploadTimestampMetadata(i){if(!Array.isArray(i)||0===i.length)return this.uploadTimestampsByFileName.clear(),null;const t=new Set(i.map((i=>this.normalizeFileName(i.name))).filter(Boolean));Array.from(this.uploadTimestampsByFileName.keys()).forEach((i=>{t.has(i)||this.uploadTimestampsByFileName.delete(i)}));const e=(new Date).toISOString();i.forEach((i=>{const t=this.normalizeFileName(i.name);if(!t||this.uploadTimestampsByFileName.has(t))return;const o=this.getExternalUploadTimestampForFileName(i.name);o?this.uploadTimestampsByFileName.set(t,o):this.existingFileReferences.has(i.name)||this.uploadTimestampsByFileName.set(t,e)}));const o={};return i.forEach((i=>{const t=this.normalizeFileName(i.name),e=this.uploadTimestampsByFileName.get(t)||this.getExternalUploadTimestampForFileName(i.name);e&&i.name&&(o[encodeURIComponent(i.name.trim())]=e)})),0===Object.keys(o).length?null:o}getUploadTimestampForFile(i){if(!(null==i?void 0:i.name))return null;const t=this.uploadTimestampsByFileName.get(this.normalizeFileName(i.name));if(t)return t;if(!this.uploadTimestamps)return null;if("string"==typeof this.uploadTimestamps)return this.uploadTimestamps;const e=i.name.trim(),o=encodeURIComponent(e);return this.uploadTimestamps[o]||this.uploadTimestamps[e]||null}formatUploadTimestamp(i){if(!i)return"N/A";const t=h(i,"long");return!t||t.includes("Invalid Date")?i:t}getResolvedDragAndDropMessage(){var i;return(null===(i=this.dragAndDropMessage)||void 0===i?void 0:i.trim())?this.dragAndDropMessage:`Drag and drop your ${this.allowMultiple?"files":"file"} here`}getResolvedBrowseFileMessage(){var i;return(null===(i=this.browseFileMessage)||void 0===i?void 0:i.trim())?this.browseFileMessage:"Browse "+(this.allowMultiple?"Files":"File")}updateValueProp(){}normalizeFileName(i){return i.trim().toLowerCase()}showDuplicateFileError(i){const t=Array.from(new Set(i.map((i=>i.trim())).filter(Boolean))),e=t.length>0?`Duplicate file name${t.length>1?"s":""} not allowed. The following ${t.length>1?"files have":"file has"} already been added: ${t.join(", ")}.`:"Duplicate file names are not allowed.";this.errorMessage=e}isFileTypeAllowed(i){var t;if(!i.name)return!1;const e=null===(t=i.name.split(".").pop())||void 0===t?void 0:t.toLowerCase(),o=i.type||c(e);return this.allowedMimeTypes&&this.allowedMimeTypes.length>0?this.allowedMimeTypes.some((i=>this.isMimeTypeMatch(o,i))):this.disallowedMimeTypes&&this.disallowedMimeTypes.length>0?!this.disallowedMimeTypes.some((i=>this.isMimeTypeMatch(o,i))):!!e&&(this.allowedFileTypes&&this.allowedFileTypes.length>0?this.allowedFileTypes.map((i=>i.toLowerCase())).includes(e):!(this.disallowedFileTypes&&this.disallowedFileTypes.length>0&&this.disallowedFileTypes.map((i=>i.toLowerCase())).includes(e)))}isMimeTypeMatch(i,t){if(!i||!t)return!1;if(i.toLowerCase()===t.toLowerCase())return!0;if(t.endsWith("/*")){const e=t.slice(0,-2).toLowerCase();return i.toLowerCase().startsWith(e+"/")}return!1}async downloadFile(i){if(!this.disabled)try{const t=this.existingFileReferences.get(i.name);if(t){const i=await this.createFileFromUdpDriveFile(t),e=URL.createObjectURL(i),o=document.createElement("a");o.href=e,o.download=i.name,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(e)}else{const t=URL.createObjectURL(i),e=document.createElement("a");e.href=t,e.download=i.name,e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(t)}}catch(i){console.error("Error downloading file:",i)}}disconnectedCallback(){if(this.stopModalLayoutSync(),this.hiddenInput&&(document.body.removeChild(this.hiddenInput),this.hiddenInput=null),this.imagePreviewUrl){try{URL.revokeObjectURL(this.imagePreviewUrl)}catch(i){}this.imagePreviewUrl=null}this.clearImagePreviewUrls()}findLayoutContainer(){var i,t;const e=".forms-renderer-container";let o=this.el;for(;o;){if(o instanceof HTMLElement&&o.matches(e))return o;if(o instanceof ShadowRoot){const i=o.querySelector(e);if(i)return i}if(o.parentNode){o=o.parentNode;continue}const s=null===(t=(i=o).getRootNode)||void 0===t?void 0:t.call(i);o=s instanceof ShadowRoot&&s.host?s.host:null}return document.querySelector(e)}clearModalLayoutVars(){this.el.style.removeProperty("--udp-image-modal-top-offset"),this.el.style.removeProperty("--udp-image-modal-left-offset"),this.el.style.removeProperty("--udp-image-modal-right-offset"),this.el.style.removeProperty("--udp-image-modal-bottom-offset")}startModalLayoutSync(){this.syncModalLayoutToLayoutContainer(),window.addEventListener("resize",this.scheduleModalLayoutSync),window.addEventListener("scroll",this.scheduleModalLayoutSync,{passive:!0,capture:!0});const i=this.findLayoutContainer();i&&"undefined"!=typeof ResizeObserver&&(this.modalLayoutResizeObserver||(this.modalLayoutResizeObserver=new ResizeObserver(this.scheduleModalLayoutSync)),this.modalLayoutResizeObserver.observe(i))}stopModalLayoutSync(){window.removeEventListener("resize",this.scheduleModalLayoutSync),window.removeEventListener("scroll",this.scheduleModalLayoutSync,!0),this.modalLayoutResizeObserver&&this.modalLayoutResizeObserver.disconnect(),null!==this.modalLayoutRafId&&(cancelAnimationFrame(this.modalLayoutRafId),this.modalLayoutRafId=null),this.clearModalLayoutVars()}renderImageModal(){return this.isImageModalOpen&&this.selectedImageModalUrl?e("div",{class:"image-modal-backdrop",onClick:this.closeImageModal},e("div",{class:"image-modal-content",onClick:i=>i.stopPropagation()},e("img",{src:this.selectedImageModalUrl,alt:"Full image"}),this.selectedImageModalName&&e("div",{class:"image-modal-title",title:this.selectedImageModalName},this.selectedImageModalName),e("div",{class:"image-modal-close"},e("stencil-icon-button",{showLabel:!1,icon:n,onClick:this.closeImageModal})))):null}render(){const i=!!this.errorMessage,t=!this.allowMultiple&&this.files.length>0,s=this.renderImage&&this.files.length>0,n=!this.readonly&&!t,a=this.readonly&&0===this.files.length;return e(o,{key:"59dbc334b9de909336f1413a3322ad0ffa10930f",class:{"udp-input":!0,"udp-input--error":i,"udp-input--full-width":this.fullWidth,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly},"aria-invalid":i?"true":"false","aria-disabled":this.disabled?"true":"false"},e("div",{key:"0dacf08f99d086f4d5a1e1b7c04573e51d29ffcc",id:"drop-area",onDragOver:t?void 0:this.handleDragOver,onDrop:t?void 0:this.handleDrop,onDragEnter:t?void 0:this.handleDragEnter,onDragLeave:t?void 0:this.handleDragLeave,class:this.fullWidth?"full-width":"contained-width"},s&&e("div",{key:"743a20b577700fe26fc9025761dfbd8489636714",class:"image-gallery","aria-label":"Uploaded image previews",style:{gridTemplateColumns:`repeat(${Math.min(this.files.length,3)}, minmax(0, 1fr))`}},this.files.map(((i,t)=>{const o=this.allowMultiple?this.imagePreviewUrls[t]:this.imagePreviewUrl,s=!!this.allowMultiple&&!0===this.imagePreviewLoading[t],n=this.getUploadTimestampForFile(i);return e("div",{class:"image-gallery-card",key:`image-preview-${t}`},e("div",{class:"image-gallery-item",onClick:()=>o&&this.openImageModal(o,i.name)},o?e("img",{src:o,alt:`Uploaded image ${t+1}`,class:"image-gallery-thumbnail"}):s?e("udp-spinner",{size:"small",appearance:"primary"}):e("unity-typography",{variant:"caption-text"},"No preview"),!this.readonly&&e("div",{class:"image-gallery-item-actions",onClick:i=>i.stopPropagation()},e("stencil-icon-button",{showLabel:!1,icon:d("trashCan"),onClick:()=>this.handleRemoveFile(t),disabled:this.disabled||this.readonly}))),e("div",{class:"image-gallery-meta"},e("div",{class:"image-gallery-file-details"},e("button",{type:"button",class:"image-gallery-file-name",onClick:()=>this.downloadFile(i),disabled:this.disabled,title:i.name},e("span",{class:"file-name-ellipsis"},i.name)),this.displayUploadTime&&e("unity-typography",{variant:"caption-text"},this.formatUploadTimestamp(n)))))}))),!s&&this.files.length>0&&e("div",{key:"e59c0a642e6b158019cceab77f18e2f424076da0",class:"upload-container"},e("div",{key:"f30e358962c323b3300c3eb7c7cb7077eb935b97",class:"file-list"},this.files.map(((i,t)=>{const o=this.existingFileReferences.has(i.name),s=this.getUploadTimestampForFile(i);return e("div",{class:"file-container",key:t},e("div",{class:"file-details "+(this.displayUploadTime?"with-timestamp":"without-timestamp")},e("div",{class:"file-text",onClick:()=>this.downloadFile(i)},e("unity-typography",null,e("span",{class:"file-name-ellipsis",title:i.name},i.name," ",o&&e("span",{style:{fontSize:"0.8em",opacity:"0.7"}}," (saved)")))),this.displayUploadTime&&e("div",{class:"timestamp-text"},e("unity-typography",{variant:"caption-text",color:"inherit"},this.formatUploadTimestamp(s)))),!this.readonly&&e("div",null,e("stencil-icon-button",{showLabel:!1,icon:d("trashCan"),onClick:()=>this.handleRemoveFile(t),disabled:this.disabled||this.readonly})))})))),this.files.length>0&&!this.readonly&&n&&e("udp-divider",{key:"9fc50dbd44a7462ab43e3fa6d74205dfaf55cdb9",size:"100%"}),a?e("div",{class:"upload-container"},e("unity-typography",{variant:"h4"},"No item"+(this.allowMultiple?"s":""))):n&&e("div",{class:"upload-container"},e("div",null,this.hideDragAndDrop?"":e("unity-typography",null,e("p",null,this.getResolvedDragAndDropMessage()),this.hideButton?"":e("p",null,"or")),this.hideButton?"":e("custom-button",{label:this.getResolvedBrowseFileMessage(),onClick:i=>this.handleBrowseFiles(i),id:"udpRecord-file-upload-"+this.id,disabled:this.disabled||this.readonly,udprecordid:"udpRecord-file-upload-"+this.id}))),this.renderImageModal(),this.errorMessage&&!this.fileWindowOpen?e("div",{id:"error-text"},e("unity-typography",{color:"error"},this.errorMessage)):""))}get el(){return s(this)}static get watchers(){return{error:[{updateError:0}],initialValue:[{initialValueChanged:0}]}}};m.style="#drop-area{min-height:200px;height:auto;display:flex;flex-direction:column;border:2px dashed #ccc;border-radius:5px;padding:20px;text-align:center;font-family:Arial, sans-serif;overflow:hidden;margin-top:10px;margin-bottom:10px}#outer-container{padding:10px 5px;display:flex;justify-content:center}#drop-area.highlight{border-color:var(--primary-color)}#error-text{color:var(--error-color-main)}#add-button{border-radius:5}#remove-button{width:10px;height:10px;margin-left:5px;border:'none';background:'none';cursor:'pointer'}.file-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:8px}.full-width{width:auto}.contained-width{width:300px}.file-text{float:none;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;flex:1;gap:2px;text-decoration:underline;cursor:pointer}.file-details{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}.file-details.without-timestamp{align-self:center}.file-text unity-typography{display:block;width:100%;min-width:0}.file-list{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:6px}.inner-container{display:flex;justify-content:center;flex-direction:row}.container{display:flex;flex-direction:row;justify-content:center;overflow-y:auto}.image-preview-container{position:relative;width:100%;min-height:200px;height:240px;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;margin-top:12px}.image-remove-button{background-color:white}.image-preview-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.image-preview{max-width:100%;max-height:100%;object-fit:contain;display:block}.image-gallery{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:8px;margin:12px 0;width:100%}.image-gallery-item{position:relative;width:100%;aspect-ratio:1 / 1;border:1px solid var(--border-color-primary);border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-gallery-item-actions{position:absolute;top:8px;right:8px;z-index:1}.image-gallery-item-actions stencil-icon-button{display:block;transform:scale(0.75);transform-origin:top right}.image-gallery-card{display:flex;flex-direction:column;gap:6px}.image-gallery-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.image-gallery-file-details{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;width:100%;flex:1}.image-gallery-file-name{background:transparent;border:none;display:block;width:100%;min-width:0;padding:0;margin:0;text-align:left;text-decoration:underline;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.file-name-ellipsis{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-gallery-file-name:disabled{cursor:not-allowed;text-decoration:none}.image-gallery-thumbnail{width:100%;height:100%;object-fit:cover;display:block}.image-preview-actions{position:absolute;top:8px;right:8px;display:flex;gap:8px}.upload-container{display:flex;flex-direction:column;flex:1;min-height:200px;align-items:center;justify-content:center;gap:0;padding:0}.image-modal-backdrop{--image-modal-top-offset:var(--udp-image-modal-top-offset, 48px);--image-modal-right-offset:var(--udp-image-modal-right-offset, 0px);--image-modal-bottom-offset:var(--udp-image-modal-bottom-offset, 0px);--image-modal-left-offset:var(--udp-image-modal-left-offset, 0px);--image-modal-available-width:calc(100vw - var(--image-modal-left-offset) - var(--image-modal-right-offset));--image-modal-available-height:calc(100vh - var(--image-modal-top-offset) - var(--image-modal-bottom-offset));position:fixed;inset:var(--image-modal-top-offset) var(--image-modal-right-offset) var(--image-modal-bottom-offset) var(--image-modal-left-offset);background:rgba(0, 0, 0, 0.6);display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px;box-sizing:border-box}.image-modal-content{position:relative;max-width:min(90vw, calc(var(--image-modal-available-width) - 32px));max-height:min(90vh, calc(var(--image-modal-available-height) - 32px));background:#000;border-radius:8px;overflow:hidden}.image-modal-title{position:absolute;bottom:8px;left:8px;right:8px;color:#fff;background:rgba(0, 0, 0, 0.45);border-radius:4px;padding:4px 8px;font-size:12px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:1}.image-modal-content img{display:block;max-width:min(90vw, calc(var(--image-modal-available-width) - 32px));max-height:min(90vh, calc(var(--image-modal-available-height) - 32px));object-fit:contain}.image-modal-close{position:absolute;top:8px;right:8px}";const f=class{constructor(t){i(this,t),this.variant="horizontal"}render(){return e(o,{key:"7098357dddf76357a01c3ad5c257ff3715b038ea",style:"vertical"===this.variant?{height:this.size}:{width:this.size}},e("div",{key:"7bfa4bf839676fb2f6a01e1da280c51535818ae5",class:"horizontal"===this.variant?"horizontal":"vertical"}))}};f.style=":host{display:block}.horizontal{width:100%;height:1px;background-color:rgba(0, 0, 0, 0.12);min-width:1px}.vertical{width:1px;background-color:rgba(0, 0, 0, 0.12);min-height:1px}";export{m as file_upload,f as udp_divider}
1
+ import{r as i,c as t,h as e,H as o,a as s}from"./index-Cgpvu-iV.js";import n from"@carbon/icons/es/close/24";import a from"axios";import{i as r,e as l,g as c}from"./udp-drive-utils-BwlXaZc5.js";import{d as h}from"./utils-kwLwITIE.js";import{g as d}from"./iconUtils-BzY-c9Op.js";import{C as p}from"./configService-DgYnEcjx.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/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 m=class{constructor(e){i(this,e),this.change=t(this,"change",7),this.metadataEmit=t(this,"metadataEmit",7),this.fullWidth=!1,this.hideDragAndDrop=!1,this.hideButton=!1,this.disabled=!1,this.readonly=!1,this.renderImage=!1,this.displayUploadTime=!1,this.files=[],this.fileWindowOpen=!1,this.existingFileReferences=new Map,this.imagePreviewUrl=null,this.imagePreviewUrls=[],this.imagePreviewLoading=[],this.isImageModalOpen=!1,this.selectedImageModalUrl=null,this.selectedImageModalName=null,this.isInitialized=!1,this.previewLoadRequestId=0,this.modalLayoutResizeObserver=null,this.modalLayoutRafId=null,this.uploadTimestampsByFileName=new Map,this.dragCounter=0,this.handleDragOver=i=>{this.disabled||this.readonly||this.hideDragAndDrop||(i.preventDefault(),i.stopPropagation())},this.handleDragEnter=i=>{if(this.disabled||this.readonly||this.hideDragAndDrop)return;i.preventDefault(),i.stopPropagation();const t=i.currentTarget;this.dragCounter++,t.classList.add("highlight")},this.handleDragLeave=i=>{if(this.disabled||this.readonly||this.hideDragAndDrop)return;i.preventDefault(),i.stopPropagation();const t=i.currentTarget;this.dragCounter--,0===this.dragCounter&&t.classList.remove("highlight")},this.handleDrop=i=>{if(this.hideDragAndDrop)return i.preventDefault(),void i.stopPropagation();this.disabled||this.readonly||(i.preventDefault(),i.stopPropagation(),i.currentTarget.classList.remove("highlight"),this.handleFiles(i.dataTransfer.files))},this.handleFileInput=i=>{const t=i.target;t.files&&t.files.length>0&&this.handleFiles(t.files),t.value="",this.fileWindowOpen=!1},this.handleFiles=i=>{if(0===i.length)return;const t=[...this.files],e=[],o=new Set,s=new Set;for(let n=0;n<i.length;n++){const a=i[n];if(!a.name||""===a.name.trim())continue;const r=this.normalizeFileName(a.name);if(this.allowMultiple){const i=t.some((i=>this.normalizeFileName(i.name)===r)),e=s.has(r);if(i||e){o.add(a.name.trim());continue}}if(s.add(r),!t.some((i=>i.name===a.name&&i.size===a.size))&&this.isFileTypeAllowed(a)&&(e.push(a),!this.allowMultiple))break}o.size>0?this.showDuplicateFileError(Array.from(o)):this.errorMessage=this.error,e.length>0&&(this.files=this.allowMultiple?[...t,...e]:[e[0]],this.updateImagePreview(),this.emitFileChangeEvents())},this.handleBrowseFiles=i=>{if(!this.disabled&&!this.readonly){if(i.preventDefault(),i.stopPropagation(),!this.hiddenInput){console.error("File input not initialized yet, attempting to create it now...");try{this.hiddenInput=document.createElement("input"),this.hiddenInput.type="file",this.hiddenInput.multiple=this.allowMultiple,this.hiddenInput.style.display="none",this.hiddenInput.addEventListener("change",this.handleFileInput),document.body.appendChild(this.hiddenInput)}catch(i){return void console.error("Failed to create file input:",i)}}this.fileWindowOpen=!0,this.hiddenInput.click()}},this.handleRemoveFile=i=>{if(this.disabled||this.readonly)return;const t=this.files[i];this.existingFileReferences.has(t.name)&&this.existingFileReferences.delete(t.name),this.files.splice(i,1),this.files=[...this.files],this.updateImagePreview(),this.files.length||(this.isImageModalOpen=!1),this.emitFileChangeEvents()},this.syncModalLayoutToLayoutContainer=()=>{const i=this.findLayoutContainer();if(!i)return void this.clearModalLayoutVars();const t=i.getBoundingClientRect(),e=getComputedStyle(document.documentElement),o=Number.parseFloat(e.getPropertyValue("--udp-image-modal-safe-top-offset"))||48,s=Number.parseFloat(e.getPropertyValue("--udp-image-modal-safe-bottom-offset"))||0,n=Math.max(0,o),a=Math.max(n,window.innerHeight-Math.max(0,s)),r=Math.max(t.top,n),l=Math.min(t.bottom,a),c=Math.max(0,Math.round(r)),h=Math.max(0,Math.round(t.left)),d=Math.max(0,Math.round(window.innerWidth-t.right)),p=Math.max(0,Math.round(window.innerHeight-l));this.el.style.setProperty("--udp-image-modal-top-offset",`${c}px`),this.el.style.setProperty("--udp-image-modal-left-offset",`${h}px`),this.el.style.setProperty("--udp-image-modal-right-offset",`${d}px`),this.el.style.setProperty("--udp-image-modal-bottom-offset",`${p}px`)},this.scheduleModalLayoutSync=()=>{null!==this.modalLayoutRafId&&cancelAnimationFrame(this.modalLayoutRafId),this.modalLayoutRafId=requestAnimationFrame((()=>{this.modalLayoutRafId=null,this.syncModalLayoutToLayoutContainer()}))},this.openImageModal=(i,t)=>{var e,o;if(this.disabled)return;const s=i||this.imagePreviewUrl;s&&(this.selectedImageModalUrl=s,this.selectedImageModalName=t||(null===(o=null===(e=this.files)||void 0===e?void 0:e[0])||void 0===o?void 0:o.name)||null,this.isImageModalOpen=!0,this.startModalLayoutSync())},this.closeImageModal=i=>{i&&(i.stopPropagation(),i.preventDefault()),this.isImageModalOpen=!1,this.selectedImageModalUrl=null,this.selectedImageModalName=null,this.stopModalLayoutSync()}}updateError(){this.errorMessage=this.error}async initialValueChanged(i){var t,e,o,s,n;let a=i;if(a&&"object"==typeof a&&"value"in a&&"files"in a){const i=a,t=Array.isArray(i.files)?i.files:[];let e=[];"string"==typeof i.value&&r(i.value)&&(e=(await l(i.value)).filter((i=>!!(null==i?void 0:i.driveFileId))));const o=new Map;e.forEach((i=>{(null==i?void 0:i.name)&&o.set(i.name,i)})),t.forEach((i=>{(null==i?void 0:i.name)&&o.set(i.name,i)})),a=Array.from(o.values())}if(!a)return this.files=[],this.updateImagePreview(),this.existingFileReferences.clear(),void this.uploadTimestampsByFileName.clear();try{this.existingFileReferences.clear();let i=[];if("string"==typeof a&&r(a)){const r=await l(a);if(this.renderImage&&!this.allowMultiple&&r.length>0){const n=r[0],a=(null==n?void 0:n.type)||this.getMimeTypeFromExtension((null==n?void 0:n.extension)||(null===(e=null===(t=null==n?void 0:n.name)||void 0===t?void 0:t.split("."))||void 0===e?void 0:e.pop())||"");if(this.isRenderableImageFromNameOrMime(null==n?void 0:n.name,a)&&(null==n?void 0:n.driveFileId))try{const t={driveFileId:n.driveFileId,name:n.name,extension:n.extension||(null===(s=null===(o=n.name)||void 0===o?void 0:o.split("."))||void 0===s?void 0:s.pop())||""},e=await this.createFileFromUdpDriveFile(t);this.existingFileReferences.set(e.name,t),i=[e]}catch(i){console.warn("Eager image fetch from reference failed, using placeholders:",i)}}if(!i||0===i.length){i=r;for(const t of i)if(t.driveFileId){const i={driveFileId:t.driveFileId,name:t.name,extension:t.extension||(null===(n=t.name.split("."))||void 0===n?void 0:n.pop())||"",tenantId:null,productId:0,path:""};this.existingFileReferences.set(t.name,i)}}}else if(Array.isArray(a))i=(await Promise.all(a.map((i=>this.processInitialFile(i))))).filter((i=>null!==i));else if("object"==typeof a){const t=await this.processInitialFile(a);i=t?[t]:[]}this.files=i,this.updateImagePreview(),this.updateValueProp(),this.uploadTimestampsByFileName.clear()}catch(i){console.error("Error processing initial files:",i),this.files=[],this.updateImagePreview(),this.existingFileReferences.clear(),this.uploadTimestampsByFileName.clear()}}async processInitialFile(i){if(console.log(i),!i)return null;if(!this.isUdpDriveFile(i))return i instanceof File?i:null;{const t=this.getMimeTypeFromExtension(i.extension);if(this.renderImage&&!this.allowMultiple&&this.isRenderableImageFromNameOrMime(i.name,t))try{const t=await this.createFileFromUdpDriveFile(i);return this.existingFileReferences.set(t.name,i),t}catch(i){console.warn("Eager fetch failed, using placeholder:",i)}try{const t=this.createPlaceholderFileFromUdpDriveFile(i);return this.existingFileReferences.set(t.name,i),t}catch(i){return console.error("Error creating placeholder file from UdpDriveFile:",i),null}}}isUdpDriveFile(i){return i&&"object"==typeof i&&"driveFileId"in i}createPlaceholderFileFromUdpDriveFile(i){const t=i.extension||"bin",e=i.name||`file.${t}`,o=new Blob([""],{type:this.getMimeTypeFromExtension(t)});let s=Date.now();return i.lastUpdated&&("string"==typeof i.lastUpdated||"number"==typeof i.lastUpdated?s=new Date(i.lastUpdated).getTime():i.lastUpdated instanceof Date&&(s=i.lastUpdated.getTime())),new File([o],e,{type:o.type,lastModified:s})}async createFileFromUdpDriveFile(i){try{const t=`${p.tenantV1ApiUrl}/UdpDrive/${i.driveFileId}/stream`,e=(await a({method:"GET",url:t,responseType:"blob",timeout:3e5,headers:{}})).data,o=i.name||`file.${i.extension}`;return new File([e],o,{type:e.type||this.getMimeTypeFromExtension(i.extension),lastModified:i.lastUpdated?new Date(i.lastUpdated).getTime():Date.now()})}catch(t){return console.error("Error creating file from UdpDriveFile:",t),new File([""],i.name||`file.${i.extension}`,{type:"application/octet-stream"})}}async updateImagePreview(){const i=++this.previewLoadRequestId;if(this.clearImagePreviewUrls(),!this.renderImage||0===this.files.length)return this.imagePreviewUrl=null,this.imagePreviewUrls=[],void(this.imagePreviewLoading=[]);if(this.allowMultiple)this.imagePreviewUrl=null,this.imagePreviewUrls=this.files.map((()=>"")),this.imagePreviewLoading=this.files.map((()=>!0)),this.files.forEach(((t,e)=>{(async()=>{let o="";const s=this.existingFileReferences.get(t.name);if(s)try{const i=await this.createFileFromUdpDriveFile(s);this.isImageFile(i)&&(o=URL.createObjectURL(i))}catch(i){console.warn("Failed to load existing image preview:",i)}else this.isImageFile(t)&&(o=URL.createObjectURL(t));if(i!==this.previewLoadRequestId){if(o)try{URL.revokeObjectURL(o)}catch(i){}return}const n=[...this.imagePreviewUrls];n[e]=o,this.imagePreviewUrls=n;const a=[...this.imagePreviewLoading];a[e]=!1,this.imagePreviewLoading=a})().catch((()=>{if(i!==this.previewLoadRequestId)return;const t=[...this.imagePreviewLoading];t[e]=!1,this.imagePreviewLoading=t}))}));else{this.imagePreviewLoading=[];const i=this.files[0];if(this.isImageFile(i)){if(this.imagePreviewUrl)try{URL.revokeObjectURL(this.imagePreviewUrl)}catch(i){}this.imagePreviewUrl=URL.createObjectURL(i)}else this.imagePreviewUrl=null}}clearImagePreviewUrls(){Array.isArray(this.imagePreviewUrls)&&0!==this.imagePreviewUrls.length&&(this.imagePreviewUrls.forEach((i=>{try{URL.revokeObjectURL(i)}catch(i){}})),this.imagePreviewUrls=[],this.imagePreviewLoading=[])}isImageFile(i){return!!i&&i.type.startsWith("image/")&&i.size>0}getMimeTypeFromExtension(i){return i&&{pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",txt:"text/plain",csv:"text/csv",json:"application/json",xml:"application/xml",html:"text/html",css:"text/css",js:"application/javascript",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",svg:"image/svg+xml",zip:"application/zip",rar:"application/x-rar-compressed","7z":"application/x-7z-compressed"}[i.toLowerCase()]||"application/octet-stream"}isRenderableImageFromNameOrMime(i,t){var e,o;if(t&&t.toLowerCase().startsWith("image/"))return!0;const s=null===(o=null===(e=null==i?void 0:i.split("."))||void 0===e?void 0:e.pop())||void 0===o?void 0:o.toLowerCase();return!!s&&new Set(["png","jpg","jpeg","gif","svg","webp","bmp"]).has(s)}async componentWillLoad(){if(!this.isInitialized){if(this.dragCounter=0,this.hiddenInput=document.createElement("input"),this.hiddenInput.type="file",this.hiddenInput.multiple=this.allowMultiple,this.hiddenInput.style.display="none",this.hiddenInput.addEventListener("change",this.handleFileInput),document.body.appendChild(this.hiddenInput),this.allowedMimeTypes&&this.disallowedMimeTypes)throw new Error("allowedMimeTypes and disallowedMimeTypes are mutually exclusive, you cannot use both props");if(!this.allowedMimeTypes&&!this.disallowedMimeTypes&&this.allowedFileTypes&&this.disallowedFileTypes)throw new Error("allowedFileTypes and disallowedFileTypes are mutually exclusive, you cannot use both props");this.allowedFileTypes&&console.warn("allowedFileTypes prop is deprecated. Use allowedMimeTypes for better security and validation."),this.disallowedFileTypes&&console.warn("disallowedFileTypes prop is deprecated. Use disallowedMimeTypes for better security and validation."),this.error&&(this.errorMessage=this.error),null!=this.initialValue&&""!==this.initialValue?await this.initialValueChanged(this.initialValue):null!=this.value&&await this.processValueProp(this.value),this.isInitialized=!0}}async processValueProp(i){let t=i;if(t&&"object"==typeof t&&"value"in t&&"files"in t){const i=t,e=Array.isArray(i.files)?i.files:[];let o=[];"string"==typeof i.value&&r(i.value)&&(o=(await l(i.value)).filter((i=>!!(null==i?void 0:i.driveFileId))));const s=new Map;o.forEach((i=>{(null==i?void 0:i.name)&&s.set(i.name,i)})),e.forEach((i=>{(null==i?void 0:i.name)&&s.set(i.name,i)})),t=Array.from(s.values())}if(null==t)return this.files=[],void this.uploadTimestampsByFileName.clear();try{if(Array.isArray(t)){if(0===t.length)return void(this.files=[]);const i=[];for(const e of t){const t=await this.processInitialFile(e);t&&i.push(t)}this.files=i}else{const i=await this.processInitialFile(t);this.files=i?[i]:[]}this.updateValueProp(),this.uploadTimestampsByFileName.clear()}catch(i){console.error("Error in processValueProp:",i),this.files=[],this.uploadTimestampsByFileName.clear()}}emitFileChangeEvents(){this.updateValueProp();const i=this.files.filter((i=>!this.existingFileReferences.has(i.name))),t=this.files.filter((i=>this.existingFileReferences.has(i.name)));if(0===i.length&&0===t.length)return this.change.emit(null),this.uploadTimestampsByFileName.clear(),void(this.metadataTimestampKey&&this.metadataEmit.emit({key:this.metadataTimestampKey,value:null}));const e=[];i.forEach((i=>{i.name&&""!==i.name.trim()&&e.push(encodeURIComponent(i.name.trim()))})),t.forEach((i=>{if(i.name&&""!==i.name.trim()){const t=this.existingFileReferences.get(i.name);t&&e.push(`${encodeURIComponent(i.name.trim())}|udp:${t.driveFileId}`)}}));const o=e.join(","),s={toString:()=>o,valueOf:()=>o,value:o,files:i.filter((i=>i.name&&""!==i.name.trim()))};this.change.emit(s),this.metadataTimestampKey&&this.metadataEmit.emit({key:this.metadataTimestampKey,value:this.buildUploadTimestampMetadata(this.files)})}getExternalUploadTimestampForFileName(i){if(!i||!this.uploadTimestamps)return null;if("string"==typeof this.uploadTimestamps)return this.uploadTimestamps;const t=i.trim(),e=encodeURIComponent(t);return this.uploadTimestamps[e]||this.uploadTimestamps[t]||null}buildUploadTimestampMetadata(i){if(!Array.isArray(i)||0===i.length)return this.uploadTimestampsByFileName.clear(),null;const t=new Set(i.map((i=>this.normalizeFileName(i.name))).filter(Boolean));Array.from(this.uploadTimestampsByFileName.keys()).forEach((i=>{t.has(i)||this.uploadTimestampsByFileName.delete(i)}));const e=(new Date).toISOString();i.forEach((i=>{const t=this.normalizeFileName(i.name);if(!t||this.uploadTimestampsByFileName.has(t))return;const o=this.getExternalUploadTimestampForFileName(i.name);o?this.uploadTimestampsByFileName.set(t,o):this.existingFileReferences.has(i.name)||this.uploadTimestampsByFileName.set(t,e)}));const o={};return i.forEach((i=>{const t=this.normalizeFileName(i.name),e=this.uploadTimestampsByFileName.get(t)||this.getExternalUploadTimestampForFileName(i.name);e&&i.name&&(o[encodeURIComponent(i.name.trim())]=e)})),0===Object.keys(o).length?null:o}getUploadTimestampForFile(i){if(!(null==i?void 0:i.name))return null;const t=this.uploadTimestampsByFileName.get(this.normalizeFileName(i.name));if(t)return t;if(!this.uploadTimestamps)return null;if("string"==typeof this.uploadTimestamps)return this.uploadTimestamps;const e=i.name.trim(),o=encodeURIComponent(e);return this.uploadTimestamps[o]||this.uploadTimestamps[e]||null}formatUploadTimestamp(i){if(!i)return"N/A";const t=h(i,"long");return!t||t.includes("Invalid Date")?i:t}getResolvedDragAndDropMessage(){var i;return(null===(i=this.dragAndDropMessage)||void 0===i?void 0:i.trim())?this.dragAndDropMessage:`Drag and drop your ${this.allowMultiple?"files":"file"} here`}getResolvedBrowseFileMessage(){var i;return(null===(i=this.browseFileMessage)||void 0===i?void 0:i.trim())?this.browseFileMessage:"Browse "+(this.allowMultiple?"Files":"File")}updateValueProp(){}normalizeFileName(i){return i.trim().toLowerCase()}showDuplicateFileError(i){const t=Array.from(new Set(i.map((i=>i.trim())).filter(Boolean))),e=t.length>0?`Duplicate file name${t.length>1?"s":""} not allowed. The following ${t.length>1?"files have":"file has"} already been added: ${t.join(", ")}.`:"Duplicate file names are not allowed.";this.errorMessage=e}isFileTypeAllowed(i){var t;if(!i.name)return!1;const e=null===(t=i.name.split(".").pop())||void 0===t?void 0:t.toLowerCase(),o=i.type||c(e);return this.allowedMimeTypes&&this.allowedMimeTypes.length>0?this.allowedMimeTypes.some((i=>this.isMimeTypeMatch(o,i))):this.disallowedMimeTypes&&this.disallowedMimeTypes.length>0?!this.disallowedMimeTypes.some((i=>this.isMimeTypeMatch(o,i))):!!e&&(this.allowedFileTypes&&this.allowedFileTypes.length>0?this.allowedFileTypes.map((i=>i.toLowerCase())).includes(e):!(this.disallowedFileTypes&&this.disallowedFileTypes.length>0&&this.disallowedFileTypes.map((i=>i.toLowerCase())).includes(e)))}isMimeTypeMatch(i,t){if(!i||!t)return!1;if(i.toLowerCase()===t.toLowerCase())return!0;if(t.endsWith("/*")){const e=t.slice(0,-2).toLowerCase();return i.toLowerCase().startsWith(e+"/")}return!1}async downloadFile(i){if(!this.disabled)try{const t=this.existingFileReferences.get(i.name);if(t){const i=await this.createFileFromUdpDriveFile(t),e=URL.createObjectURL(i),o=document.createElement("a");o.href=e,o.download=i.name,o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(e)}else{const t=URL.createObjectURL(i),e=document.createElement("a");e.href=t,e.download=i.name,e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),URL.revokeObjectURL(t)}}catch(i){console.error("Error downloading file:",i)}}disconnectedCallback(){if(this.stopModalLayoutSync(),this.hiddenInput&&(document.body.removeChild(this.hiddenInput),this.hiddenInput=null),this.imagePreviewUrl){try{URL.revokeObjectURL(this.imagePreviewUrl)}catch(i){}this.imagePreviewUrl=null}this.clearImagePreviewUrls()}findLayoutContainer(){var i,t;const e=".forms-renderer-container";let o=this.el;for(;o;){if(o instanceof HTMLElement&&o.matches(e))return o;if(o instanceof ShadowRoot){const i=o.querySelector(e);if(i)return i}if(o.parentNode){o=o.parentNode;continue}const s=null===(t=(i=o).getRootNode)||void 0===t?void 0:t.call(i);o=s instanceof ShadowRoot&&s.host?s.host:null}return document.querySelector(e)}clearModalLayoutVars(){this.el.style.removeProperty("--udp-image-modal-top-offset"),this.el.style.removeProperty("--udp-image-modal-left-offset"),this.el.style.removeProperty("--udp-image-modal-right-offset"),this.el.style.removeProperty("--udp-image-modal-bottom-offset")}startModalLayoutSync(){this.syncModalLayoutToLayoutContainer(),window.addEventListener("resize",this.scheduleModalLayoutSync),window.addEventListener("scroll",this.scheduleModalLayoutSync,{passive:!0,capture:!0});const i=this.findLayoutContainer();i&&"undefined"!=typeof ResizeObserver&&(this.modalLayoutResizeObserver||(this.modalLayoutResizeObserver=new ResizeObserver(this.scheduleModalLayoutSync)),this.modalLayoutResizeObserver.observe(i))}stopModalLayoutSync(){window.removeEventListener("resize",this.scheduleModalLayoutSync),window.removeEventListener("scroll",this.scheduleModalLayoutSync,!0),this.modalLayoutResizeObserver&&this.modalLayoutResizeObserver.disconnect(),null!==this.modalLayoutRafId&&(cancelAnimationFrame(this.modalLayoutRafId),this.modalLayoutRafId=null),this.clearModalLayoutVars()}renderImageModal(){return this.isImageModalOpen&&this.selectedImageModalUrl?e("div",{class:"image-modal-backdrop",onClick:this.closeImageModal},e("div",{class:"image-modal-content",onClick:i=>i.stopPropagation()},e("img",{src:this.selectedImageModalUrl,alt:"Full image"}),this.selectedImageModalName&&e("div",{class:"image-modal-title",title:this.selectedImageModalName},this.selectedImageModalName),e("div",{class:"image-modal-close"},e("stencil-icon-button",{showLabel:!1,icon:n,onClick:this.closeImageModal})))):null}render(){const i=!!this.errorMessage,t=!this.allowMultiple&&this.files.length>0,s=this.renderImage&&this.files.length>0,n=!this.readonly&&!t,a=this.readonly&&0===this.files.length;return e(o,{key:"1b5fc48b4d05e0a30906f1e1bfb24a22804c98b8",class:{"udp-input":!0,"udp-input--error":i,"udp-input--full-width":this.fullWidth,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly},"aria-invalid":i?"true":"false","aria-disabled":this.disabled?"true":"false"},e("div",{key:"29c9fc2516788d23cd66846486337a411295f142",id:"drop-area",onDragOver:t?void 0:this.handleDragOver,onDrop:t?void 0:this.handleDrop,onDragEnter:t?void 0:this.handleDragEnter,onDragLeave:t?void 0:this.handleDragLeave,class:this.fullWidth?"full-width":"contained-width"},s&&e("div",{key:"66324232e451f94870e5e47d59fc9aaa87b8be5d",class:"image-gallery","aria-label":"Uploaded image previews",style:{gridTemplateColumns:`repeat(${Math.min(this.files.length,3)}, minmax(0, 1fr))`}},this.files.map(((i,t)=>{const o=this.allowMultiple?this.imagePreviewUrls[t]:this.imagePreviewUrl,s=!!this.allowMultiple&&!0===this.imagePreviewLoading[t],n=this.getUploadTimestampForFile(i);return e("div",{class:"image-gallery-card",key:`image-preview-${t}`},e("div",{class:"image-gallery-item",onClick:()=>o&&this.openImageModal(o,i.name)},o?e("img",{src:o,alt:`Uploaded image ${t+1}`,class:"image-gallery-thumbnail"}):s?e("udp-spinner",{size:"small",appearance:"primary"}):e("unity-typography",{variant:"caption-text"},"No preview"),!this.readonly&&e("div",{class:"image-gallery-item-actions",onClick:i=>i.stopPropagation()},e("stencil-icon-button",{showLabel:!1,icon:d("trashCan"),onClick:()=>this.handleRemoveFile(t),disabled:this.disabled||this.readonly}))),e("div",{class:"image-gallery-meta"},e("div",{class:"image-gallery-file-details"},e("button",{type:"button",class:"image-gallery-file-name",onClick:()=>this.downloadFile(i),disabled:this.disabled,title:i.name},e("span",{class:"file-name-ellipsis"},i.name)),this.displayUploadTime&&e("unity-typography",{variant:"caption-text"},this.formatUploadTimestamp(n)))))}))),!s&&this.files.length>0&&e("div",{key:"02b6a6bd23b1497bfa717c678757c170833ccea2",class:"upload-container"},e("div",{key:"1273441664b098c6308b4758fedbcc1c91de63c5",class:"file-list"},this.files.map(((i,t)=>{const o=this.existingFileReferences.has(i.name),s=this.getUploadTimestampForFile(i);return e("div",{class:"file-container",key:t},e("div",{class:"file-details "+(this.displayUploadTime?"with-timestamp":"without-timestamp")},e("div",{class:"file-text",onClick:()=>this.downloadFile(i)},e("unity-typography",null,e("span",{class:"file-name-ellipsis",title:i.name},i.name," ",o&&e("span",{style:{fontSize:"0.8em",opacity:"0.7"}}," (saved)")))),this.displayUploadTime&&e("div",{class:"timestamp-text"},e("unity-typography",{variant:"caption-text",color:"inherit"},this.formatUploadTimestamp(s)))),!this.readonly&&e("div",null,e("stencil-icon-button",{showLabel:!1,icon:d("trashCan"),onClick:()=>this.handleRemoveFile(t),disabled:this.disabled||this.readonly})))})))),this.files.length>0&&!this.readonly&&n&&e("udp-divider",{key:"030ae95ecf23e75d56d75bb32142881570adbeaf",size:"100%"}),a?e("div",{class:"upload-container"},e("unity-typography",{variant:"h4"},"No item"+(this.allowMultiple?"s":""))):n&&e("div",{class:"upload-container"},e("div",null,this.hideDragAndDrop?"":e("unity-typography",null,e("p",null,this.getResolvedDragAndDropMessage()),this.hideButton?"":e("p",null,"or")),this.hideButton?"":e("custom-button",{label:this.getResolvedBrowseFileMessage(),onClick:i=>this.handleBrowseFiles(i),id:"udpRecord-file-upload-"+this.id,disabled:this.disabled||this.readonly,udprecordid:"udpRecord-file-upload-"+this.id}))),this.renderImageModal(),this.errorMessage&&!this.fileWindowOpen?e("div",{id:"error-text"},e("unity-typography",{color:"error"},this.errorMessage)):""))}get el(){return s(this)}static get watchers(){return{error:[{updateError:0}],initialValue:[{initialValueChanged:0}]}}};m.style="#drop-area{min-height:200px;height:auto;display:flex;flex-direction:column;border:2px dashed #ccc;border-radius:5px;padding:20px;text-align:center;font-family:Arial, sans-serif;overflow:hidden;margin-top:10px;margin-bottom:10px}#outer-container{padding:10px 5px;display:flex;justify-content:center}#drop-area.highlight{border-color:var(--primary-color)}#error-text{color:var(--error-color-main)}#add-button{border-radius:5}#remove-button{width:10px;height:10px;margin-left:5px;border:'none';background:'none';cursor:'pointer'}.file-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;width:100%;gap:8px}.full-width{width:auto}.contained-width{width:300px}.file-text{float:none;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;flex:1;gap:2px;text-decoration:underline;cursor:pointer}.file-details{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}.file-details.without-timestamp{align-self:center}.file-text unity-typography{display:block;width:100%;min-width:0}.file-list{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:6px}.inner-container{display:flex;justify-content:center;flex-direction:row}.container{display:flex;flex-direction:row;justify-content:center;overflow-y:auto}.image-preview-container{position:relative;width:100%;min-height:200px;height:240px;border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;margin-top:12px}.image-remove-button{background-color:white}.image-preview-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.image-preview{max-width:100%;max-height:100%;object-fit:contain;display:block}.image-gallery{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:8px;margin:12px 0;width:100%}.image-gallery-item{position:relative;width:100%;aspect-ratio:1 / 1;border:1px solid var(--border-color-primary);border-radius:6px;overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-gallery-item-actions{position:absolute;top:8px;right:8px;z-index:1}.image-gallery-item-actions stencil-icon-button{display:block;transform:scale(0.75);transform-origin:top right}.image-gallery-card{display:flex;flex-direction:column;gap:6px}.image-gallery-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}.image-gallery-file-details{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;width:100%;flex:1}.image-gallery-file-name{background:transparent;border:none;display:block;width:100%;min-width:0;padding:0;margin:0;text-align:left;text-decoration:underline;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.file-name-ellipsis{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-gallery-file-name:disabled{cursor:not-allowed;text-decoration:none}.image-gallery-thumbnail{width:100%;height:100%;object-fit:cover;display:block}.image-preview-actions{position:absolute;top:8px;right:8px;display:flex;gap:8px}.upload-container{display:flex;flex-direction:column;flex:1;min-height:200px;align-items:center;justify-content:center;gap:0;padding:0}.image-modal-backdrop{--image-modal-top-offset:var(--udp-image-modal-top-offset, 48px);--image-modal-right-offset:var(--udp-image-modal-right-offset, 0px);--image-modal-bottom-offset:var(--udp-image-modal-bottom-offset, 0px);--image-modal-left-offset:var(--udp-image-modal-left-offset, 0px);--image-modal-available-width:calc(100vw - var(--image-modal-left-offset) - var(--image-modal-right-offset));--image-modal-available-height:calc(100vh - var(--image-modal-top-offset) - var(--image-modal-bottom-offset));position:fixed;inset:var(--image-modal-top-offset) var(--image-modal-right-offset) var(--image-modal-bottom-offset) var(--image-modal-left-offset);background:rgba(0, 0, 0, 0.6);display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px;box-sizing:border-box}.image-modal-content{position:relative;max-width:min(90vw, calc(var(--image-modal-available-width) - 32px));max-height:min(90vh, calc(var(--image-modal-available-height) - 32px));background:#000;border-radius:8px;overflow:hidden}.image-modal-title{position:absolute;bottom:8px;left:8px;right:8px;color:#fff;background:rgba(0, 0, 0, 0.45);border-radius:4px;padding:4px 8px;font-size:12px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:1}.image-modal-content img{display:block;max-width:min(90vw, calc(var(--image-modal-available-width) - 32px));max-height:min(90vh, calc(var(--image-modal-available-height) - 32px));object-fit:contain}.image-modal-close{position:absolute;top:8px;right:8px}";const u=class{constructor(t){i(this,t),this.variant="horizontal"}render(){return e(o,{key:"e8ce72f30f6a569310639e1c691dfeb65d298463",style:"vertical"===this.variant?{height:this.size}:{width:this.size}},e("div",{key:"8d374e55f2bf41d5e35a13dd3e9fc8d631ab2483",class:"horizontal"===this.variant?"horizontal":"vertical"}))}};u.style=":host{display:block}.horizontal{width:100%;height:1px;background-color:rgba(0, 0, 0, 0.12);min-width:1px}.vertical{width:1px;background-color:rgba(0, 0, 0, 0.12);min-height:1px}";export{m as file_upload,u as udp_divider}
@@ -1 +1 @@
1
- import{r as e,h as t,c as i,a,f as s}from"./index-Cgpvu-iV.js";import l from"@carbon/icons/es/close/24";const n=class{constructor(t){e(this,t)}render(){return t("div",{key:"b3106cd4c44b95869410e75a40e4cfc9e471e4cc",class:"container"},t("udp-column-header",{key:"b400521c19a60df73aec613671ae47fb98fbe8d8"}))}};n.style="";const r=class{constructor(t){e(this,t),this.searchItemChanged=i(this,"searchItemChanged",7),this.isDefault=!1,this.searchOperator="=",this.handleInputBlur=e=>{const t=e.target.value;t!==this.name&&this.searchItemChanged.emit({id:this.id,searchField:this.label,filterGroupId:this.filterGroupId,searchOperator:this.searchOperator,searchValue:t})},this.selectorOptions=[{value:"=",label:"Equals"},{value:"IN",label:"Contains"},{value:"<>",label:"Does not Equal"},{value:">",label:"Greater Than"},{value:"<",label:"Less Than"},{value:">=",label:"Greater Than or Equal To"},{value:"<=",label:"Less Than or Equal To"},{value:"LIKE",label:"Like"},{value:"STARTSWITH",label:"Starts With"},{value:"BETWEEN",label:"Between"}]}operatorChanged(e){e!==this.searchOperator&&null!==e&&(this.searchOperator=e,console.log("Operator changed:",e))}componentWillUpdate(){this.operator&&this.operator.length>0&&(this.searchOperator=this.operator)}conponentDidLoad(){console.log("Component did load:",this.operator)}handleOperatorSelected(e){console.log("event.detail",e.detail.value),this.searchOperator=e.detail.value,this.emitChange()}emitChange(e=this.name){this.searchItemChanged.emit({id:this.id,searchField:this.label,filterGroupId:this.filterGroupId,searchOperator:this.searchOperator||"=",searchValue:e})}render(){return t("div",{key:"2f9faea0db2a5169b65604d68f9ca20eafd6f861",class:"list-item"},t("div",{key:"b82093bc34c325f67524a1d3186539caa36e2152",class:"list-body"},t("div",{key:"b3dafb84904a51cea0056bce923a568a0aec5be4",class:"name"},t("unity-typography",{key:"6601c3002021d53aa9e538184160a7f60e92a520",variant:"button"},this.label)),t("div",{key:"0062f55adaff01fb3c04542bda56c06ce0af5391",style:{width:"200px"}},t("udp-selector",{key:this.searchOperator,initialValue:this.searchOperator,options:this.selectorOptions,disabled:this.isInitialSearchItem||this.isDefault,onChange:e=>this.handleOperatorSelected(e)})),t("div",{key:"f2138827a4cb3a16a366c7fca18f60ca39106004",class:"input"},t("text-field",{key:"ee52bc7081269037056c185a0ed7f491c0d5db24",value:this.name,disabled:this.isInitialSearchItem,onBlur:this.handleInputBlur}))),(!this.isInitialSearchItem||!this.isDefault)&&t("stencil-icon-button",{key:"2894cf78c8a2ee6ea23db2485bf5807d6d3374c6",icon:l,onClick:this.handleDelete}))}get el(){return a(this)}static get watchers(){return{operator:[{operatorChanged:0}]}}};r.style='.list-item{display:flex;gap:8px;align-items:center;background-color:white;border-bottom:1px solid rgba(0,0,0,.12)}.list-body{display:flex;padding-left:16px;gap:8px;align-items:center;flex:1}.input{margin-top:5.5px}.list-inputs{display:flex;flex:1;gap:24px;align-items:center}.close-button{display:flex;align-items:center}.name{min-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:215px}.select-container{width:"200px"}';const d=class{constructor(t){e(this,t),this.itemClick=i(this,"itemClick",7),this.referenceClicked=i(this,"reference-clicked",7),this.showNested=!1,this.level=0,this.parentName="defaultParentName",this.showChildren=!1,this.updateTrigger=!1,this.showViewOption=!1,this.showDeleteOption=!1,this.showEditOption=!1,this.showUpdateDefaultOption=!1,this.showAdd=!0,this.isDefault=!1,this.add=!1,this.handleButtonClick=e=>{this.showChildren=!this.showChildren,e.stopPropagation(),this.reference&&(this.showNested=!this.showNested,this.updateTrigger=!this.updateTrigger,this.referenceClicked.emit({reference:this.reference,name:this.fieldName,parentReference:this.parentName,parentFilter:this.parentFilter,parent:this.parent,parentPath:this.parentPath}),s(this))},this.onSelfClick=()=>{var e;this.reference||this.itemClick.emit({searchLabel:null!==(e=this.label)&&void 0!==e?e:this.fieldName,searchField:this.fieldName,searchOperator:"",searchValue:"",parentName:this.parentName,parentPath:this.parentPath})},this.handleViewClick=e=>{e.stopPropagation(),this.viewHandler&&this.viewHandler(e)},this.handleDeleteClick=e=>{e.stopPropagation(),this.deleteHandler&&this.deleteHandler(e)},this.handleEditClick=e=>{e.stopPropagation(),this.editHandler&&this.editHandler(e)},this.handleUpdateDefaultClick=e=>{e.stopPropagation(),this.updateDefaultHandler&&this.updateDefaultHandler(e)}}nestedItemsChanged(e,t){e!==t&&(console.log("Nested items have changed"),s(this))}render(){return t("div",{class:"tree-list-item",style:{marginLeft:20*this.level+"px"}},t("div",{class:"label-icon-container",onClick:this.onSelfClick},t("div",{class:"tree-label-select"},t("unity-typography",{variant:"data-display-three"},this.label)),this.gridViewVisibilityTypeId&&t("status-chip",{statusClasses:{Private:"error",Public:"success"},statusValue:1===this.gridViewVisibilityTypeId?"Private":"Public"},1===this.gridViewVisibilityTypeId?"Private":"Public"),this.showEditOption&&t("udp-function-button",{edit:!0,onClick:this.handleEditClick},"Edit"),this.showDeleteOption&&t("udp-function-button",{delete:!0,onClick:this.handleDeleteClick},"Delete"),this.showUpdateDefaultOption&&t("udp-function-button",{isDefault:this.isDefault,onClick:this.handleUpdateDefaultClick},"Make Default"),this.showViewOption&&t("udp-function-button",{view:!0,onClick:this.handleViewClick},"Other Action"),this.reference?t("udp-function-button",{expand:!0,noBackground:!0,onClick:this.handleButtonClick},"Details"):this.showAdd&&t("udp-function-button",{add:!0})),this.showNested&&this.nestedItems&&t("div",{class:"nested-list"},((e,i)=>this.nestedItems.map(((e,a)=>{var s,l,n;return t("tree-list-item",{key:`${e.name}-${i}-${a}`,label:e.name,reference:e.reference,nestedItems:e.referenceNode,level:i+1,parentName:this.fieldName,parentFilter:null===(s=e.extendedProperties)||void 0===s?void 0:s.parentFilter,parent:null===(l=e.extendedProperties)||void 0===l?void 0:l.parent,parentPath:null===(n=e.extendedProperties)||void 0===n?void 0:n.parentPath,"onReference-clicked":e=>{e.stopPropagation(),this.referenceClicked.emit({reference:e.detail.reference,name:e.detail.name,parentReference:this.fieldName,parentFilter:e.detail.parentFilter,parent:e.detail.parent,parentPath:e.detail.parentPath})}})})))(0,this.level)))}static get watchers(){return{nestedItems:[{nestedItemsChanged:0}]}}};d.style='.tree-item{display:flex;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:8px;margin-bottom:6px}.label{flex:1;padding-left:8px}.arrow-icon{cursor:pointer;font-size:20px;}.tree-item-label{display:flex;justify-content:space-between;width:100%;gap:16px}.tree-label-select{flex:1;display:flex;padding-right:8px;align-items:center}.tree-item{border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:8px;margin-bottom:6px}.tree-item-label{display:flex;width:100%;cursor:pointer}.nested-list{margin-left:20px}.label-icon-container{display:flex;align-items:center;border-bottom:1px solid rgba(0,0,0,.12);padding:4px}[level="1"] .nested-list{margin-left:10px}[level="2"] .nested-list{margin-left:20px}[level="3"] .nested-list{margin-left:30px}[level="4"] .nested-list{margin-left:40px}[level="5"] .nested-list{margin-left:50px}[level="6"] .nested-list{margin-left:60px}';const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"ed2225009af64caa876a0c081d1e56381a8a6de8",class:"header-container"},t("div",{key:"8d67bf82824ecb8462c5706e45e30be51e67fc78",class:"column"}," ",t("unity-typography",{key:"c2e0ea2bf4971250c024f5fbc7a2f9d40ce06130",variant:"button"},"Column ")," "),t("div",{key:"cf6757dfb88cff79ad1080c28ff0e6f9471b59b0",class:"operator"},t("unity-typography",{key:"115ed5771ea8082e8819d87e6ae1ceba7532703d",variant:"button"},"Operator ")," "),t("div",{key:"1e8067a55748baa0e83a2cc3c50092662f04d7f0",class:"criteria"},t("unity-typography",{key:"2bbf70196f33feacdbd64416d702f75a8661bece",variant:"button"},"Criteria ")," "))}};o.style=".header-container{display:flex;justify-content:space-between;align-items:center;padding:8px;border-bottom:1px solid #ccc;background-color:var(--accent-color-two);color:white}.column,.operator,.criteria{flex:1;text-align:left;padding:4px}";const c=class{constructor(t){e(this,t),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"e8c1fa77778ac8bbf48352ee32cfec9042358318",class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"55px"})))),i=Array.from({length:this.numRows}).map((()=>t("div",{class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"30px"}))))));return t("div",{key:"2b228740ac2d6be319d1d4c3e8af2b04bf57be91",style:{width:this.width}},e,i)}};c.style=":host{display:block}.grid-row{display:flex;justify-content:space-between}udp-skeleton-loading{flex-grow:1;margin:2px}";const h=class{constructor(t){e(this,t),this.valueChanged=i(this,"valueChanged",7),this.selectedValue="1"}radioClicked(e){this.selectedValue=e,this.valueChanged.emit(e)}render(){return t("div",{key:"0626fa753415972173714db8fb9823f568e90fa4",class:"header-container"},t("div",{key:"b9d5a1c1923ec1416bf70a0a25abf4baa8aa7b08",class:"title"},t("unity-typography",{key:"154fcd0a77a11a08bc9f64438aa7c5d244330415",variant:"button"},"Filter Conditions ")),t("div",{key:"c8494138146eb7ceae4187e27a2617a9a874ed70",class:"radio-group"},t("div",{key:"c48f9ba67f87099c3c6df4cab8442e75d2735ffa",onClick:()=>this.radioClicked("1")},t("udp-radio-button",{key:"8f840a932e655ad4239e8f9d775775f1d002f5df",name:"group1",value:"1",label:"And",checked:"1"===this.selectedValue})),t("div",{key:"656f209733139dcd0ed9ec2b451240a9114d6a82",onClick:()=>this.radioClicked("2")},t("udp-radio-button",{key:"d57281d553b73ed44674a76f78446be2906b47d9",name:"group1",value:"2",label:"Or",checked:"2"===this.selectedValue}))))}};h.style=".header-container{display:flex;width:100%;padding:16px;padding-left:0px}.title{flex:1;width:100%;display:'none'}.radio-group{display:flex;gap:16px}";const p=class{constructor(t){e(this,t),this.checked=!1,this.disabled=!1}render(){return t("div",{key:"b10004b69523fcb76b1a9202541862ff28bc70ae",class:"udp-radio-button"},t("slot",{key:"bb7e07a8f1839bd10083d40874ca65b218634cf4"},t("input",{key:"1dcef901fd68580d2076e0a7a88c854f46877238",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,id:`radio-${this.name}-${this.value}`}),t("label",{key:"772e79e12c04efdaab7a8551dd3e69b4c70445b3",htmlFor:`radio-${this.name}-${this.value}`}," ",t("unity-typography",{key:"3fa3bf64cfa5cbb61f10c9bcaa274b81d732b3e3",variant:"caption-text"}," ",this.label," ")," ")))}};p.style='.udp-radio-button{display:inline-flex;align-items:center}input[type="radio"]{opacity:0;width:0;height:0;margin:0;z-index:-1}input[type="radio"]+label{position:relative;padding-left:20px;cursor:pointer;font-size:16px;font-family:\'Roboto\', sans-serif}input[type="radio"]+label:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:17px;height:17px;border:1px solid #000;border-radius:50%}input[type="radio"]:checked+label:after{content:"";position:absolute;left:4px;top:50%;transform:translateY(-50%);width:10px;height:10px;background-color:#000;border-radius:50%}input[type="radio"]:disabled+label{opacity:0.5;cursor:not-allowed}';export{n as filter_conditions,r as search_list_item,d as tree_list_item,o as udp_column_header,c as udp_grid_loader,h as udp_page_header,p as udp_radio_button}
1
+ import{r as e,h as t,c as i,a,f as s}from"./index-Cgpvu-iV.js";import l from"@carbon/icons/es/close/24";const n=class{constructor(t){e(this,t)}render(){return t("div",{key:"b3106cd4c44b95869410e75a40e4cfc9e471e4cc",class:"container"},t("udp-column-header",{key:"b400521c19a60df73aec613671ae47fb98fbe8d8"}))}};n.style="";const r=class{constructor(t){e(this,t),this.searchItemChanged=i(this,"searchItemChanged",7),this.isDefault=!1,this.searchOperator="=",this.handleInputBlur=e=>{const t=e.target.value;t!==this.name&&this.searchItemChanged.emit({id:this.id,searchField:this.label,filterGroupId:this.filterGroupId,searchOperator:this.searchOperator,searchValue:t})},this.selectorOptions=[{value:"=",label:"Equals"},{value:"IN",label:"Contains"},{value:"<>",label:"Does not Equal"},{value:">",label:"Greater Than"},{value:"<",label:"Less Than"},{value:">=",label:"Greater Than or Equal To"},{value:"<=",label:"Less Than or Equal To"},{value:"LIKE",label:"Like"},{value:"STARTSWITH",label:"Starts With"},{value:"BETWEEN",label:"Between"}]}operatorChanged(e){e!==this.searchOperator&&null!==e&&(this.searchOperator=e,console.log("Operator changed:",e))}componentWillUpdate(){this.operator&&this.operator.length>0&&(this.searchOperator=this.operator)}conponentDidLoad(){console.log("Component did load:",this.operator)}handleOperatorSelected(e){console.log("event.detail",e.detail.value),this.searchOperator=e.detail.value,this.emitChange()}emitChange(e=this.name){this.searchItemChanged.emit({id:this.id,searchField:this.label,filterGroupId:this.filterGroupId,searchOperator:this.searchOperator||"=",searchValue:e})}render(){return t("div",{key:"713dd4209e447c194f3581ae4412272fdc4fb5a2",class:"list-item"},t("div",{key:"6d39870c650cc07f34d1cc27dd69865c48489c9b",class:"list-body"},t("div",{key:"2c363fce59bda6932cbb26111583cbab417a2e13",class:"name"},t("unity-typography",{key:"dd50d28fa97fe198c3e413b8c75770428a2e8583",variant:"button"},this.label)),t("div",{key:"5f7c1513a97115b3a50a43a2f65a0664475bfb0c",style:{width:"200px"}},t("udp-selector",{key:this.searchOperator,initialValue:this.searchOperator,options:this.selectorOptions,disabled:this.isInitialSearchItem||this.isDefault,onChange:e=>this.handleOperatorSelected(e)})),t("div",{key:"5eb6b9ebb7fc13468d8ddf44795068d2324bef1e",class:"input"},t("text-field",{key:"10cfc17bcb6cd1a7a4ea81ca1471b0d268ea25c2",value:this.name,disabled:this.isInitialSearchItem,onBlur:this.handleInputBlur}))),(!this.isInitialSearchItem||!this.isDefault)&&t("stencil-icon-button",{key:"bcb4f5a36d27679f03a55fb61af28f373b3b884d",icon:l,onClick:this.handleDelete}))}get el(){return a(this)}static get watchers(){return{operator:[{operatorChanged:0}]}}};r.style='.list-item{display:flex;gap:8px;align-items:center;background-color:white;border-bottom:1px solid rgba(0,0,0,.12)}.list-body{display:flex;padding-left:16px;gap:8px;align-items:center;flex:1}.input{margin-top:5.5px}.list-inputs{display:flex;flex:1;gap:24px;align-items:center}.close-button{display:flex;align-items:center}.name{min-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:215px}.select-container{width:"200px"}';const d=class{constructor(t){e(this,t),this.itemClick=i(this,"itemClick",7),this.referenceClicked=i(this,"reference-clicked",7),this.showNested=!1,this.level=0,this.parentName="defaultParentName",this.showChildren=!1,this.updateTrigger=!1,this.showViewOption=!1,this.showDeleteOption=!1,this.showEditOption=!1,this.showUpdateDefaultOption=!1,this.showAdd=!0,this.isDefault=!1,this.add=!1,this.handleButtonClick=e=>{this.showChildren=!this.showChildren,e.stopPropagation(),this.reference&&(this.showNested=!this.showNested,this.updateTrigger=!this.updateTrigger,this.referenceClicked.emit({reference:this.reference,name:this.fieldName,parentReference:this.parentName,parentFilter:this.parentFilter,parent:this.parent,parentPath:this.parentPath}),s(this))},this.onSelfClick=()=>{var e;this.reference||this.itemClick.emit({searchLabel:null!==(e=this.label)&&void 0!==e?e:this.fieldName,searchField:this.fieldName,searchOperator:"",searchValue:"",parentName:this.parentName,parentPath:this.parentPath})},this.handleViewClick=e=>{e.stopPropagation(),this.viewHandler&&this.viewHandler(e)},this.handleDeleteClick=e=>{e.stopPropagation(),this.deleteHandler&&this.deleteHandler(e)},this.handleEditClick=e=>{e.stopPropagation(),this.editHandler&&this.editHandler(e)},this.handleUpdateDefaultClick=e=>{e.stopPropagation(),this.updateDefaultHandler&&this.updateDefaultHandler(e)}}nestedItemsChanged(e,t){e!==t&&(console.log("Nested items have changed"),s(this))}render(){return t("div",{class:"tree-list-item",style:{marginLeft:20*this.level+"px"}},t("div",{class:"label-icon-container",onClick:this.onSelfClick},t("div",{class:"tree-label-select"},t("unity-typography",{variant:"data-display-three"},this.label)),this.gridViewVisibilityTypeId&&t("status-chip",{statusClasses:{Private:"error",Public:"success"},statusValue:1===this.gridViewVisibilityTypeId?"Private":"Public"},1===this.gridViewVisibilityTypeId?"Private":"Public"),this.showEditOption&&t("udp-function-button",{edit:!0,onClick:this.handleEditClick},"Edit"),this.showDeleteOption&&t("udp-function-button",{delete:!0,onClick:this.handleDeleteClick},"Delete"),this.showUpdateDefaultOption&&t("udp-function-button",{isDefault:this.isDefault,onClick:this.handleUpdateDefaultClick},"Make Default"),this.showViewOption&&t("udp-function-button",{view:!0,onClick:this.handleViewClick},"Other Action"),this.reference?t("udp-function-button",{expand:!0,noBackground:!0,onClick:this.handleButtonClick},"Details"):this.showAdd&&t("udp-function-button",{add:!0})),this.showNested&&this.nestedItems&&t("div",{class:"nested-list"},((e,i)=>this.nestedItems.map(((e,a)=>{var s,l,n;return t("tree-list-item",{key:`${e.name}-${i}-${a}`,label:e.name,reference:e.reference,nestedItems:e.referenceNode,level:i+1,parentName:this.fieldName,parentFilter:null===(s=e.extendedProperties)||void 0===s?void 0:s.parentFilter,parent:null===(l=e.extendedProperties)||void 0===l?void 0:l.parent,parentPath:null===(n=e.extendedProperties)||void 0===n?void 0:n.parentPath,"onReference-clicked":e=>{e.stopPropagation(),this.referenceClicked.emit({reference:e.detail.reference,name:e.detail.name,parentReference:this.fieldName,parentFilter:e.detail.parentFilter,parent:e.detail.parent,parentPath:e.detail.parentPath})}})})))(0,this.level)))}static get watchers(){return{nestedItems:[{nestedItemsChanged:0}]}}};d.style='.tree-item{display:flex;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:8px;margin-bottom:6px}.label{flex:1;padding-left:8px}.arrow-icon{cursor:pointer;font-size:20px;}.tree-item-label{display:flex;justify-content:space-between;width:100%;gap:16px}.tree-label-select{flex:1;display:flex;padding-right:8px;align-items:center}.tree-item{border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:8px;margin-bottom:6px}.tree-item-label{display:flex;width:100%;cursor:pointer}.nested-list{margin-left:20px}.label-icon-container{display:flex;align-items:center;border-bottom:1px solid rgba(0,0,0,.12);padding:4px}[level="1"] .nested-list{margin-left:10px}[level="2"] .nested-list{margin-left:20px}[level="3"] .nested-list{margin-left:30px}[level="4"] .nested-list{margin-left:40px}[level="5"] .nested-list{margin-left:50px}[level="6"] .nested-list{margin-left:60px}';const o=class{constructor(t){e(this,t)}render(){return t("div",{key:"a05806fd13c3dcf2596736acad82f4f36f9b1fd7",class:"header-container"},t("div",{key:"b5a327eb3c15546268a35d4507a77234952ce697",class:"column"}," ",t("unity-typography",{key:"d8cde18dea25bc890ba179c1f8e293ab24cd1508",variant:"button"},"Column ")," "),t("div",{key:"f9b4fd41e0e61d8647f48a1676d28602763888b3",class:"operator"},t("unity-typography",{key:"b7853e9d227ac94b8bc490c4f9e70c18ee526bec",variant:"button"},"Operator ")," "),t("div",{key:"1672f8bd14a1a65d59668d19b805334b7aa061c9",class:"criteria"},t("unity-typography",{key:"3296ba5928a83f92eb27bef93270168ea1da1ea8",variant:"button"},"Criteria ")," "))}};o.style=".header-container{display:flex;justify-content:space-between;align-items:center;padding:8px;border-bottom:1px solid #ccc;background-color:var(--accent-color-two);color:white}.column,.operator,.criteria{flex:1;text-align:left;padding:4px}";const c=class{constructor(t){e(this,t),this.numColumns=8,this.numRows=5,this.width="calc(100vw - 70px)"}render(){const e=t("div",{key:"1d7b2fe802951231ad127d3bb2505e1fb84351e3",class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"55px"})))),i=Array.from({length:this.numRows}).map((()=>t("div",{class:"grid-row"},Array.from({length:this.numColumns}).map((()=>t("udp-skeleton-loading",{width:"100%",height:"30px"}))))));return t("div",{key:"0df24b6402a33185ede13460d4a142c15a302b0b",style:{width:this.width}},e,i)}};c.style=":host{display:block}.grid-row{display:flex;justify-content:space-between}udp-skeleton-loading{flex-grow:1;margin:2px}";const h=class{constructor(t){e(this,t),this.valueChanged=i(this,"valueChanged",7),this.selectedValue="1"}radioClicked(e){this.selectedValue=e,this.valueChanged.emit(e)}render(){return t("div",{key:"010a7b790f13cd139d83d17ce2e2fcc6ac8ab8de",class:"header-container"},t("div",{key:"33e7d855c08f6e51068baf3307036fa3b4007cbe",class:"title"},t("unity-typography",{key:"1033df1181c176c309186f4a0e2b769d746d77b9",variant:"button"},"Filter Conditions ")),t("div",{key:"309c5598ab618dfb6105813ab9bcac79903b5cdf",class:"radio-group"},t("div",{key:"6b88b4bc7fe7485113078caa865e67c0f5cf6636",onClick:()=>this.radioClicked("1")},t("udp-radio-button",{key:"1f76d0dd01201d15bbf1289ac6772d6674826e0f",name:"group1",value:"1",label:"And",checked:"1"===this.selectedValue})),t("div",{key:"aa20fe4f38cf46784027d7cd2726f491c73b356b",onClick:()=>this.radioClicked("2")},t("udp-radio-button",{key:"86350922577ed97398b78b52b6ed54543f24259d",name:"group1",value:"2",label:"Or",checked:"2"===this.selectedValue}))))}};h.style=".header-container{display:flex;width:100%;padding:16px;padding-left:0px}.title{flex:1;width:100%;display:'none'}.radio-group{display:flex;gap:16px}";const p=class{constructor(t){e(this,t),this.checked=!1,this.disabled=!1}render(){return t("div",{key:"b10004b69523fcb76b1a9202541862ff28bc70ae",class:"udp-radio-button"},t("slot",{key:"bb7e07a8f1839bd10083d40874ca65b218634cf4"},t("input",{key:"1dcef901fd68580d2076e0a7a88c854f46877238",type:"radio",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,id:`radio-${this.name}-${this.value}`}),t("label",{key:"772e79e12c04efdaab7a8551dd3e69b4c70445b3",htmlFor:`radio-${this.name}-${this.value}`}," ",t("unity-typography",{key:"3fa3bf64cfa5cbb61f10c9bcaa274b81d732b3e3",variant:"caption-text"}," ",this.label," ")," ")))}};p.style='.udp-radio-button{display:inline-flex;align-items:center}input[type="radio"]{opacity:0;width:0;height:0;margin:0;z-index:-1}input[type="radio"]+label{position:relative;padding-left:20px;cursor:pointer;font-size:16px;font-family:\'Roboto\', sans-serif}input[type="radio"]+label:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:17px;height:17px;border:1px solid #000;border-radius:50%}input[type="radio"]:checked+label:after{content:"";position:absolute;left:4px;top:50%;transform:translateY(-50%);width:10px;height:10px;background-color:#000;border-radius:50%}input[type="radio"]:disabled+label{opacity:0.5;cursor:not-allowed}';export{n as filter_conditions,r as search_list_item,d as tree_list_item,o as udp_column_header,c as udp_grid_loader,h as udp_page_header,p as udp_radio_button}