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{p as e,H as t,h as l,d as i,t as a}from"./index2.js";import{g as s}from"./iconUtils.js";import o from"sortablejs";import{d as n}from"./stencil-icon-button2.js";import{d as r}from"./stencil-toggle2.js";import{d}from"./text-field2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as u}from"./udp-badge2.js";import{d as b}from"./udp-button2.js";import{d as m}from"./udp-icon2.js";import{d as h}from"./udp-selector2.js";import{d as g}from"./unity-typography2.js";const p=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.sortableInstance=null,this.sortableSignature="",this.columnTypeOptions=[{value:"text",label:"Text"},{value:"number",label:"Number"}],this.aggregateOptions=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],this.aggregateDecimalPlacesOptions=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}]}updateColumnField(e,t,l){const i=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTableColumnChange")(l,this.formSectionsDraft,this.sIndex,this.qIndex,e,t);this.onFormSectionsDraftChange(i)}isNumericColumnType(e){return"number"===e}moveColumn(e,t){const l=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,e,t);this.onFormSectionsDraftChange(l)}componentDidLoad(){this.initializeSortable()}componentDidUpdate(){this.initializeSortable()}disconnectedCallback(){this.destroySortable()}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null),this.sortableSignature=""}initializeSortable(){var e,t,l,i;const a=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[],s=`${this.isViewOnly}-${a.length}`;if(this.sortableInstance&&this.sortableSignature===s)return;if(this.destroySortable(),this.isViewOnly)return;const n=null===(i=null===(l=this.hostEl)||void 0===l?void 0:l.shadowRoot)||void 0===i?void 0:i.querySelector(".table-columns-list");n&&(this.sortableInstance=new o(n,{animation:200,easing:"cubic-bezier(0.25, 1, 0.5, 1)",draggable:".table-column-item",handle:".table-column-drag-handle",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",direction:"vertical",forceFallback:!1,dragoverBubble:!1,swapThreshold:.6,onEnd:e=>{const t=e.oldIndex,l=e.newIndex;null!=t&&null!=l&&t!==l&&this.moveColumn(t,l)}}),this.sortableSignature=s)}render(){var e,t;const a=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[];return l(i,{key:"eef51eb2728f8c43cc4d97dfd266f9587d2bad28"},l("div",{key:"ccb25ff961c6af6b39c78ecacefc3c7e9749352b",class:"table-columns-container"},l("div",{key:"5b9918427706e34b6f1945598c40f41e67f83f43",class:"table-columns-header"},l("unity-typography",{key:"7bc1233b825c11eea5689c1346958c1f0b0c7cd5",variant:"h6"},"Configure Table Columns"),!this.isViewOnly&&l("udp-button",{key:"0ad57c746bb7a5193ec80dc5129c5b5f4945ad3f",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)},startIcon:l("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add a Column"},"Add a Column")),l("div",{key:"686c293b67d47ca9b2f456e020dbaf81152695c9",class:"table-columns-list"},a.map(((e,t)=>{const i="number"===(null==e?void 0:e.type)?"number":"text",o=!!(null==e?void 0:e.required),n=(null==e?void 0:e.aggregate)||"sum",r=this.isNumericColumnType(i)&&!!(null==e?void 0:e.aggregate),d=Number.isInteger(Number(null==e?void 0:e.aggregateDecimalPlaces))?Math.min(6,Math.max(0,Number(e.aggregateDecimalPlaces))):1;return l("div",{key:(null==e?void 0:e.uiKey)||(null==e?void 0:e.id)||t,class:"table-column-item"},!this.isViewOnly&&l("div",{class:"table-column-reorder-actions"},l("stencil-icon-button",{class:"table-column-drag-handle",icon:s("draggable"),tooltip:"Drag to Reorder",noBackground:!0})),l("div",{class:"table-column-fields"},l("text-field",{label:"Column Name",value:(null==e?void 0:e.name)||"",disabled:this.isViewOnly,placeholder:"Column Name",required:!0,onInput:e=>{this.updateColumnField(t,"name",e.target.value)}}),l("udp-selector",{label:"Column Type",key:`table-column-type-${t}`,initialValue:i,options:this.columnTypeOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"type",e.detail)}}),l("stencil-toggle",{label:"Required Field",disabled:this.isViewOnly,checked:o,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"required",!o)}}),l("div",null),this.isNumericColumnType(i)&&l("stencil-toggle",{label:"Display Aggregate in Table",disabled:this.isViewOnly,checked:r,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"aggregate",r?"":n)}}),this.isNumericColumnType(i)&&r&&l("div",{class:"table-column-fields-row-break","aria-hidden":"true"}),this.isNumericColumnType(i)&&r&&l("udp-selector",{label:"Aggregate Function",key:`table-column-aggregate-${t}`,initialValue:n,options:this.aggregateOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregate",e.detail)}}),this.isNumericColumnType(i)&&r&&l("udp-selector",{label:"Aggregate Decimal Places",key:`table-column-aggregate-decimal-places-${t}`,initialValue:String(d),options:this.aggregateDecimalPlacesOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregateDecimalPlaces",e.detail)}})),a.length>1&&!this.isViewOnly&&l("stencil-icon-button",{icon:s("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}}))})))))}get hostEl(){return this}static get style(){return":host{display:block;.table-columns-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0}.table-columns-header{display:flex;justify-content:space-between;align-items:center}.table-columns-list{display:flex;flex-direction:column;gap:0}.table-column-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.table-column-item.sortable-ghost{opacity:0.45;border-style:dashed}.table-column-item.sortable-chosen{box-shadow:var(--elevation-03)}.table-column-reorder-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.table-column-drag-handle{cursor:grab}.table-column-drag-handle:active{cursor:grabbing}.table-column-fields{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));column-gap:var(--spacing-04, 16px);row-gap:0;width:100%}.table-column-fields-row-break{grid-column:1 / -1;height:0;padding:0;margin:0}}"}},[1,"table-columns-renderer",{question:[16],isViewOnly:[4,"is-view-only"],formSectionsDraft:[16],sIndex:[2,"s-index"],qIndex:[2,"q-index"],onFormSectionsDraftChange:[16],getHandler:[16]}]);function v(){"undefined"!=typeof customElements&&["table-columns-renderer","stencil-icon-button","stencil-toggle","text-field","udp-ambient-tool-tip","udp-badge","udp-button","udp-icon","udp-selector","unity-typography"].forEach((e=>{switch(e){case"table-columns-renderer":customElements.get(a(e))||customElements.define(a(e),p);break;case"stencil-icon-button":customElements.get(a(e))||n();break;case"stencil-toggle":customElements.get(a(e))||r();break;case"text-field":customElements.get(a(e))||d();break;case"udp-ambient-tool-tip":customElements.get(a(e))||c();break;case"udp-badge":customElements.get(a(e))||u();break;case"udp-button":customElements.get(a(e))||b();break;case"udp-icon":customElements.get(a(e))||m();break;case"udp-selector":customElements.get(a(e))||h();break;case"unity-typography":customElements.get(a(e))||g()}}))}export{p as T,v as d}
1
+ import{p as e,H as t,h as l,d as a,t as i}from"./index2.js";import{g as s}from"./iconUtils.js";import o from"sortablejs";import{d as n}from"./stencil-icon-button2.js";import{d as r}from"./stencil-toggle2.js";import{d}from"./text-field2.js";import{d as c}from"./udp-ambient-tool-tip2.js";import{d as u}from"./udp-badge2.js";import{d as m}from"./udp-button2.js";import{d as b}from"./udp-icon2.js";import{d as h}from"./udp-selector2.js";import{d as g}from"./unity-typography2.js";const p=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.sortableInstance=null,this.sortableSignature="",this.columnTypeOptions=[{value:"text",label:"Text"},{value:"number",label:"Number"}],this.aggregateOptions=[{value:"sum",label:"Sum"},{value:"avg",label:"Average"},{value:"min",label:"Min"},{value:"max",label:"Max"}],this.aggregateDecimalPlacesOptions=[{value:"0",label:"0"},{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"}]}updateColumnField(e,t,l){const a=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyTableColumnChange")(l,this.formSectionsDraft,this.sIndex,this.qIndex,e,t);this.onFormSectionsDraftChange(a)}isNumericColumnType(e){return"number"===e}moveColumn(e,t){const l=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyMoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,e,t);this.onFormSectionsDraftChange(l)}componentDidLoad(){this.initializeSortable()}componentDidUpdate(){this.initializeSortable()}disconnectedCallback(){this.destroySortable()}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null),this.sortableSignature=""}initializeSortable(){var e,t,l,a;const i=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[],s=`${this.isViewOnly}-${i.length}`;if(this.sortableInstance&&this.sortableSignature===s)return;if(this.destroySortable(),this.isViewOnly)return;const n=null===(a=null===(l=this.hostEl)||void 0===l?void 0:l.shadowRoot)||void 0===a?void 0:a.querySelector(".table-columns-list");n&&(this.sortableInstance=new o(n,{animation:200,easing:"cubic-bezier(0.25, 1, 0.5, 1)",draggable:".table-column-item",handle:".table-column-drag-handle",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",direction:"vertical",forceFallback:!1,dragoverBubble:!1,swapThreshold:.6,onEnd:e=>{const t=e.oldIndex,l=e.newIndex;null!=t&&null!=l&&t!==l&&this.moveColumn(t,l)}}),this.sortableSignature=s)}render(){var e,t;const i=Array.isArray(null===(t=null===(e=this.question)||void 0===e?void 0:e.fieldProperties)||void 0===t?void 0:t.columns)?this.question.fieldProperties.columns:[];return l(a,{key:"127b85757e2b9b7e710768f51c1e328d49b33dc7"},l("div",{key:"d6ed277cf1cd5fe3fd28df1ab30e363770658d03",class:"table-columns-container"},l("div",{key:"aee949c45709af4cfced27725f2957adefb7aafe",class:"table-columns-header"},l("unity-typography",{key:"979ad3fda4903e709a6ad2b33c91d8c7ba6d3cab",variant:"h6"},"Configure Table Columns"),!this.isViewOnly&&l("udp-button",{key:"a4f865900ab5e86485ffcc1cfbe3089e0a702e44",variant:"text",onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyAddTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex);this.onFormSectionsDraftChange(e)},startIcon:l("udp-icon",{iconName:"add",darkIcon:!0}),title:"Add a Column"},"Add a Column")),l("div",{key:"11c23d800c04d1ad000ee4f397471433e6d96cd6",class:"table-columns-list"},i.map(((e,t)=>{const a="number"===(null==e?void 0:e.type)?"number":"text",o=!!(null==e?void 0:e.required),n=(null==e?void 0:e.aggregate)||"sum",r=this.isNumericColumnType(a)&&!!(null==e?void 0:e.aggregate),d=Number.isInteger(Number(null==e?void 0:e.aggregateDecimalPlaces))?Math.min(6,Math.max(0,Number(e.aggregateDecimalPlaces))):1;return l("div",{key:(null==e?void 0:e.uiKey)||(null==e?void 0:e.id)||t,class:"table-column-item"},!this.isViewOnly&&l("div",{class:"table-column-reorder-actions"},l("stencil-icon-button",{class:"table-column-drag-handle",icon:s("draggable"),tooltip:"Drag to Reorder",noBackground:!0})),l("div",{class:"table-column-fields"},l("text-field",{label:"Column Name",value:(null==e?void 0:e.name)||"",disabled:this.isViewOnly,placeholder:"Column Name",required:!0,onInput:e=>{this.updateColumnField(t,"name",e.target.value)}}),l("udp-selector",{label:"Column Type",key:`table-column-type-${t}`,initialValue:a,options:this.columnTypeOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"type",e.detail)}}),l("stencil-toggle",{label:"Required Field",disabled:this.isViewOnly,checked:o,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"required",!o)}}),l("div",null),this.isNumericColumnType(a)&&l("stencil-toggle",{label:"Display Aggregate in Table",disabled:this.isViewOnly,checked:r,labelPosition:"right",onToggledChange:()=>{this.updateColumnField(t,"aggregate",r?"":n)}}),this.isNumericColumnType(a)&&r&&l("div",{class:"table-column-fields-row-break","aria-hidden":"true"}),this.isNumericColumnType(a)&&r&&l("udp-selector",{label:"Aggregate Function",key:`table-column-aggregate-${t}`,initialValue:n,options:this.aggregateOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregate",e.detail)}}),this.isNumericColumnType(a)&&r&&l("udp-selector",{label:"Aggregate Decimal Places",key:`table-column-aggregate-decimal-places-${t}`,initialValue:String(d),options:this.aggregateDecimalPlacesOptions,disabled:this.isViewOnly,required:!0,onChange:e=>{this.updateColumnField(t,"aggregateDecimalPlaces",e.detail)}})),i.length>1&&!this.isViewOnly&&l("stencil-icon-button",{icon:s("trashCan"),onClick:()=>{const e=this.getHandler(this.question.fieldTypeId,"handleFieldPropertyRemoveTableColumn")(this.formSectionsDraft,this.sIndex,this.qIndex,t);this.onFormSectionsDraftChange(e)}}))})))))}get hostEl(){return this}static get style(){return":host{display:block;.table-columns-container{display:flex;flex-direction:column;gap:var(--spacing-04, 16px);padding:var(--spacing-04, 16px) 0}.table-columns-header{display:flex;justify-content:space-between;align-items:center}.table-columns-list{display:flex;flex-direction:column;gap:0}.table-column-item{display:flex;flex-direction:row;align-items:center;gap:var(--spacing-04, 16px);padding:var(--spacing-03, 16px);width:100%;border-radius:var(--border-radius);border:1px solid var(--gray-03);box-sizing:border-box;box-shadow:var(--elevation-01);background-color:var(--card-background-color, #fff);margin:0.3em 0}.table-column-item.sortable-ghost{opacity:0.45;border-style:dashed}.table-column-item.sortable-chosen{box-shadow:var(--elevation-03)}.table-column-reorder-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}.table-column-drag-handle{cursor:grab}.table-column-drag-handle:active{cursor:grabbing}.table-column-fields{display:grid;grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));column-gap:var(--spacing-04, 16px);row-gap:0;width:100%}.table-column-fields-row-break{grid-column:1 / -1;height:0;padding:0;margin:0}}"}},[1,"table-columns-renderer",{question:[16],isViewOnly:[4,"is-view-only"],formSectionsDraft:[16],sIndex:[2,"s-index"],qIndex:[2,"q-index"],onFormSectionsDraftChange:[16],getHandler:[16]}]);function v(){"undefined"!=typeof customElements&&["table-columns-renderer","stencil-icon-button","stencil-toggle","text-field","udp-ambient-tool-tip","udp-badge","udp-button","udp-icon","udp-selector","unity-typography"].forEach((e=>{switch(e){case"table-columns-renderer":customElements.get(i(e))||customElements.define(i(e),p);break;case"stencil-icon-button":customElements.get(i(e))||n();break;case"stencil-toggle":customElements.get(i(e))||r();break;case"text-field":customElements.get(i(e))||d();break;case"udp-ambient-tool-tip":customElements.get(i(e))||c();break;case"udp-badge":customElements.get(i(e))||u();break;case"udp-button":customElements.get(i(e))||m();break;case"udp-icon":customElements.get(i(e))||b();break;case"udp-selector":customElements.get(i(e))||h();break;case"unity-typography":customElements.get(i(e))||g()}}))}export{p as T,v as d}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,t as s}from"./index2.js";import{d as r}from"./ag-grid-base2.js";import{d as n}from"./client-side-grid2.js";import{d as o}from"./ghost-render2.js";import{d as a}from"./grid-header2.js";import{d as u}from"./hint-panel2.js";import{d as l}from"./stencil-icon-button2.js";import{d}from"./udp-ambient-tool-tip2.js";import{d as h}from"./udp-avatar2.js";import{d as m}from"./udp-badge2.js";import{d as c}from"./udp-button2.js";import{d as p}from"./udp-dialog2.js";import{d as g}from"./udp-flexbox2.js";import{d as f}from"./udp-fluent-avatar2.js";import{d as b}from"./udp-fluent-badge2.js";import{d as v}from"./udp-fluent-button2.js";import{d as y}from"./udp-fluent-dialog2.js";import{d as E}from"./udp-fluent-icon2.js";import{d as w}from"./udp-fluent-icon-button2.js";import{d as C}from"./udp-fluent-menu2.js";import{d as j}from"./udp-fluent-switch2.js";import{d as k}from"./udp-fluent-text-input2.js";import{d as x}from"./udp-icon2.js";import{d as R}from"./udp-linear-loader2.js";import{d as N}from"./list-item.js";import{d as S}from"./udp-menu-item2.js";import{d as A}from"./udp-pop-over2.js";import{d as V}from"./udp-primary-action-header2.js";import{d as q}from"./udp-search-input2.js";import{d as F}from"./udp-side-sheet2.js";import{d as I}from"./udp-spinner2.js";import{d as M}from"./udp-text2.js";import{d as G}from"./udp-tooltip2.js";import{d as D}from"./unity-typography2.js";const $=t=>"number"===t,O=()=>`grid-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,P=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.columns=[],this.initialValue=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.initialGridRows=[],this.gridRowCount=0,this.gridRenderNonce=O(),this.validationError="",this.hasHydratedFromInitialValue=!1,this.columnsSignature="",this.cachedGridColumns=[],this.cachedGridColumnsKey="",this.hasSubmitValidationAttempt=!1,this.gridOptions={suppressContextMenu:!0,stopEditingWhenCellsLoseFocus:!0,suppressAggFuncInHeader:!0,editType:"fullRow",singleClickEdit:!0,rowDragManaged:!0,animateRows:!0,defaultColDef:{sortable:!1,filter:!1,suppressHeaderMenuButton:!0,editable:!0,minWidth:80,resizable:!0},getRowStyle:t=>{var e;if("bottom"===(null===(e=null==t?void 0:t.node)||void 0===e?void 0:e.rowPinned))return{backgroundColor:"var(--gray-01, #f8f8f8)",fontWeight:"600",borderTop:"1px solid var(--gray-03, #d8d8d8)"}},onCellValueChanged:()=>this.handleGridDataChanged(),onCellEditingStopped:()=>this.handleGridDataChanged(),onRowEditingStopped:()=>this.handleGridDataChanged(),onPasteEnd:()=>this.handleGridDataChanged(),onRowDragEnd:()=>this.handleGridDataChanged()},this.handleAddRow=()=>{if(this.gridApiMethods)try{return this.gridApiMethods.applyTransaction({add:[this.createEmptyRow()]}),void requestAnimationFrame((()=>{var t;this.handleGridDataChanged();const e=Math.max(this.getRowsFromGrid().length-1,0);null===(t=this.gridApiMethods)||void 0===t||t.ensureIndexVisible(e,"bottom")}))}catch(t){this.gridApiMethods=void 0}this.initialGridRows=[...this.initialGridRows,this.createEmptyRow()],this.validateAndEmitError(),this.emitValue()},this.handleRemoveRow=t=>{if(this.gridApiMethods)try{const e=this.getRawRowsFromGrid()[t];return e&&this.gridApiMethods.applyTransaction({remove:[e]}),void this.handleGridDataChanged()}catch(t){this.gridApiMethods=void 0}const e=[...this.initialGridRows];e.splice(t,1),this.initialGridRows=e,this.validateAndEmitError(),this.emitValue()},this.handleGridApiCallback=t=>{var e;this.gridApiMethods=t,this.gridRowCount=this.getRowsFromGrid().length||this.initialGridRows.length,this.validateAndEmitError(),null===(e=this.gridApiMethods)||void 0===e||e.refreshCells(),this.refreshAggregateFooter(),requestAnimationFrame((()=>this.refreshAggregateFooter()))}}handleNestedInput(t){(t.composedPath&&t.composedPath()[0]||t.target)!==this.el&&(t.stopImmediatePropagation(),t.stopPropagation())}handleNestedChange(t){(t.composedPath&&t.composedPath()[0]||t.target)!==this.el&&(t.stopImmediatePropagation(),t.stopPropagation())}handleGridPaste(t){var e,i,s,r;if(this.readonly||this.disabled||!this.gridApiMethods)return;const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text/plain");if(!(null==n?void 0:n.trim()))return;t.preventDefault();const o=n.split(/\r?\n/).map((t=>t.split("\t"))).filter((t=>t.some((t=>""!==t))));if(!o.length)return;this.gridApiMethods.stopEditing(!0);const a=this.gridApiMethods.getFocusedCell(),u=null!==(i=null==a?void 0:a.rowIndex)&&void 0!==i?i:0,l=null===(r=null===(s=null==a?void 0:a.column)||void 0===s?void 0:s.getColId)||void 0===r?void 0:r.call(s),d=this.columns||[],h=l?Math.max(0,d.findIndex((t=>t.id===l))):0,m=this.getRawRowsFromGrid(),c=[];o.forEach(((t,e)=>{const i=u+e;if(i<m.length)t.forEach(((t,e)=>{const s=d[h+e];s&&(m[i][s.id]=this.parsePastedCellValue(s,t))}));else{const e=this.createEmptyRow();t.forEach(((t,i)=>{const s=d[h+i];s&&(e[s.id]=this.parsePastedCellValue(s,t))})),c.push(e)}})),c.length&&this.gridApiMethods.applyTransaction({add:c}),this.handleGridDataChanged(),this.gridApiMethods.refreshCells()}handleSubmitInvalid(){this.hasSubmitValidationAttempt=!0,requestAnimationFrame((()=>{var t;this.validateAndEmitError(),null===(t=this.gridApiMethods)||void 0===t||t.refreshCells()}))}componentWillLoad(){this.columnsSignature=this.getColumnsSignature(this.columns),this.initializeRows(this.initialValue,!1)}disconnectedCallback(){this.gridApiMethods=void 0}onInitialValueChange(t){if(!this.hasHydratedFromInitialValue)return"string"!=typeof t||this.hasUsableInitialValue(t)?void(this.hasUsableInitialValue(t)&&(this.recreateGridInstance(),this.initializeRows(t,!0))):(this.hasHydratedFromInitialValue=!0,void this.recreateGridInstance())}onColumnsChange(){const t=this.getColumnsSignature(this.columns);if(t===this.columnsSignature)return;if(this.columnsSignature=t,!Array.isArray(this.columns)||0===this.columns.length)return this.initialGridRows=[],this.gridRowCount=0,void this.emitValue();const e=this.initialGridRows.map((t=>this.normalizeRow(t)));this.initialGridRows=e,this.validateAndEmitError(),this.emitValue()}onErrorChange(){var t;null===(t=this.gridApiMethods)||void 0===t||t.refreshCells()}onSeedRowsChange(){this.gridRowCount=this.initialGridRows.length,this.refreshAggregateFooter()}getColumnsSignature(t=[]){return JSON.stringify(t.map((t=>({id:null==t?void 0:t.id,name:null==t?void 0:t.name,type:null==t?void 0:t.type,required:null==t?void 0:t.required,aggregate:null==t?void 0:t.aggregate,aggregateDecimalPlaces:null==t?void 0:t.aggregateDecimalPlaces}))))}recreateGridInstance(){this.gridApiMethods=void 0,this.cachedGridColumns=[],this.cachedGridColumnsKey="",this.gridRenderNonce=O()}hasUsableInitialValue(t){return null!=t&&("string"==typeof t?t.trim().length>0:!!Array.isArray(t))}createEmptyRow(){const t={};return(this.columns||[]).forEach((e=>{t[e.id]=$(e.type)?null:""})),t}normalizeRow(t){const e=this.createEmptyRow();return t&&"object"==typeof t?((this.columns||[]).forEach((i=>{const s=t[i.id];if(null!=s&&""!==String(s).trim())if($(i.type)){const t=Number(String(s).trim());e[i.id]=Number.isFinite(t)?t:void 0}else e[i.id]=String(s);else e[i.id]=$(i.type)?void 0:""})),e):e}parseInitialValue(t){var e,i;if(!t)return[];let s=t;if("string"==typeof t){try{s=JSON.parse(t)}catch(t){return[]}if("string"==typeof s)try{s=JSON.parse(s)}catch(t){return[]}}return Array.isArray(s)?s.filter((t=>t&&"object"==typeof t)):s&&"object"==typeof s&&Array.isArray(null!==(e=s.rows)&&void 0!==e?e:s.Rows)?(null!==(i=s.rows)&&void 0!==i?i:s.Rows).filter((t=>t&&"object"==typeof t)):[]}hasMissingRequiredColumnValue(t){return this.getRequiredColumns().some((e=>{const i=null==t?void 0:t[e.id];return null==i||0===String(i).trim().length}))}hasAnyColumnLevelRequired(){return(this.columns||[]).some((t=>!!(null==t?void 0:t.required)))}hasAnyRequiredConfig(){return this.required||this.hasAnyColumnLevelRequired()}getRequiredColumns(){return(this.columns||[]).filter((t=>!!(null==t?void 0:t.required)))}getRowsForValidation(){const t=this.getRowsFromGrid();return this.gridApiMethods?t:this.initialGridRows}isRequiredCellInvalid(t,e){if(!(null==e?void 0:e.required))return!1;const i=null==t?void 0:t[e.id];return null==i||0===String(i).trim().length}shouldShowRequiredCellHighlights(){return this.hasSubmitValidationAttempt&&!!this.validationError}parsePastedCellValue(t,e){const i=e.trim();if($(t.type)){if(!i)return;const t=Number(i);return Number.isFinite(t)?t:void 0}return i}coerceCellValueForSubmission(t,e){if(!$(t.type))return e;if(null==e)return"";const i=String(e).trim();if(!i)return"";const s=Number(i);return Number.isFinite(s)?s:""}getRowsFromGrid(){if(!this.gridApiMethods)return[];try{const t=[];return this.gridApiMethods.forEachNode((e=>{(null==e?void 0:e.data)&&"object"==typeof e.data&&t.push(this.normalizeRow(e.data))})),t}catch(t){return[]}}getRawRowsFromGrid(){if(!this.gridApiMethods)return[];try{const t=[];return this.gridApiMethods.forEachNode((e=>{(null==e?void 0:e.data)&&"object"==typeof e.data&&t.push(e.data)})),t}catch(t){return[]}}buildSubmissionPayloadString(){const t=this.getRowsFromGrid(),e=(this.gridApiMethods?t:this.initialGridRows).map((t=>{const e={};return(this.columns||[]).forEach((i=>{var s;e[i.id]=this.coerceCellValueForSubmission(i,null!==(s=null==t?void 0:t[i.id])&&void 0!==s?s:"")})),e}));return JSON.stringify({rows:e})}initializeRows(t,e){const i=this.parseInitialValue(t);if(!Array.isArray(this.columns)||0===this.columns.length)return this.initialGridRows=[],void(e&&(this.hasHydratedFromInitialValue=!0));let s;s=i.length>0?i.map((t=>this.normalizeRow(t))):[],this.initialGridRows=[...s],e&&(this.hasHydratedFromInitialValue=!0),this.validateAndEmitError(),this.emitValue()}emitValue(){const t=this.buildSubmissionPayloadString();this.el.dispatchEvent(new CustomEvent("input",{bubbles:!0,detail:t})),this.el.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:t}))}validateAndEmitError(){var t;const e=this.getValidationError();this.validationError=e,null===(t=this.gridApiMethods)||void 0===t||t.refreshCells(),this.el.dispatchEvent(new CustomEvent("error",{bubbles:!0,detail:e}))}getValidationError(){const t=this.getRowsForValidation(),e=this.hasAnyRequiredConfig();return e&&t.length<1?"At least one row is required":e&&t.some((t=>this.hasMissingRequiredColumnValue(t)))?"Please complete all required columns in each row":""}getGridHeight(){return`${Math.min(600,Math.max(400,120+44*(this.gridApiMethods?this.gridRowCount:this.initialGridRows.length)))}px`}hasConfiguredAggregates(){return(this.columns||[]).some((t=>$(t.type)&&!!t.aggregate))}getAggregateDecimalPlaces(t){const e=Number(null==t?void 0:t.aggregateDecimalPlaces);return!Number.isInteger(e)||e<0?1:e}getAggregateValue(t){if(!$(t.type)||!t.aggregate)return null;const e=this.getRowsForAggregation().map((e=>Number(null==e?void 0:e[t.id]))).filter((t=>Number.isFinite(t)));if(0===e.length)return null;switch(t.aggregate){case"sum":return e.reduce(((t,e)=>t+e),0);case"avg":return e.reduce(((t,e)=>t+e),0)/e.length;case"min":return Math.min(...e);case"max":return Math.max(...e);default:return null}}getRowsForAggregation(){const t=this.getRowsFromGrid();return this.gridApiMethods?0===t.length&&this.gridRowCount>0?this.initialGridRows:t:this.initialGridRows}hasAnyRowsForAggregation(){return this.getRowsForAggregation().length>0}getAggregateLabel(t){switch(t.aggregate){case"sum":return"Sum";case"avg":return"Avg";case"min":return"Min";case"max":return"Max";default:return""}}getFooterCellDisplayValue(t,e){if($(t.type)&&t.aggregate){const e=this.getAggregateValue(t);return null==e?null:e}return 0===e&&this.hasConfiguredAggregates()&&!$(t.type)?"Summary":null}getGridOptions(){return this.hasConfiguredAggregates()?Object.assign(Object.assign({},this.gridOptions),{pinnedBottomRowData:[{}]}):this.gridOptions}refreshAggregateFooter(){if(this.hasConfiguredAggregates()&&this.gridApiMethods)try{this.gridApiMethods.refreshCells()}catch(t){this.gridApiMethods=void 0}}buildGridColumns(t){const e=(this.columns||[]).map(((e,i)=>({headerName:e.required?`${e.name} *`:e.name,field:e.id,editable:e=>{var i;return!t&&"bottom"!==(null===(i=null==e?void 0:e.node)||void 0===i?void 0:i.rowPinned)},suppressHeaderMenuButton:!0,sortable:!1,rowDrag:0==i&&!t,filter:!1,cellClassRules:{"table-input-required-invalid":t=>{var i;if("bottom"===(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return!1;const s=null==t?void 0:t.data;return!(!s||"object"!=typeof s)&&this.shouldShowRequiredCellHighlights()&&this.isRequiredCellInvalid(s,e)}},cellDataType:$(e.type)?"number":"text",autoHeight:!0,wrapText:!0,cellStyle:{display:"flex",alignItems:"center"},valueGetter:t=>{var s,r;return"bottom"===(null===(s=null==t?void 0:t.node)||void 0===s?void 0:s.rowPinned)?this.getFooterCellDisplayValue(e,i):null===(r=null==t?void 0:t.data)||void 0===r?void 0:r[e.id]},valueFormatter:t=>{var i,s;if("bottom"!==(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return null==t?void 0:t.value;if($(e.type)&&e.aggregate){if(!this.hasAnyRowsForAggregation())return`${this.getAggregateLabel(e)}: N/A`;const i=Number(null==t?void 0:t.value);if(!Number.isFinite(i))return"";const s=this.getAggregateDecimalPlaces(e);return`${this.getAggregateLabel(e)}: ${i.toFixed(s)}`}return null!==(s=null==t?void 0:t.value)&&void 0!==s?s:""},valueSetter:t=>{var i,s;if("bottom"===(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return!1;const r=null===(s=null==t?void 0:t.data)||void 0===s?void 0:s[e.id];let n=null==(null==t?void 0:t.newValue)?"":String(t.newValue);if($(e.type)){const t=String(n||"").trim();if(t){const e=Number(t);if(!Number.isFinite(e))return!1;n=e}else n=void 0}return r!==n&&(t.data[e.id]=n,!0)}})));if(t)return e;const i={headerName:"Actions",field:"actions",editable:!1,sortable:!1,filter:!1,suppressHeaderMenuButton:!0,resizable:!1,cellRenderer:"actionsRenderer",cellRendererParams:{hideActions:t=>"bottom"===(null==t?void 0:t.rowPinned),actionList:[{id:"remove-row",iconName:"trashCan",title:"Remove Row",handleOnClick:(t,e)=>{const i=Number(null==e?void 0:e.rowIndex);!Number.isInteger(i)||i<0||this.handleRemoveRow(i)}}]}};return[...e,i]}getGridColumns(t){const e=`${t}::${this.columnsSignature}`;return this.cachedGridColumnsKey===e&&this.cachedGridColumns.length>0||(this.cachedGridColumnsKey=e,this.cachedGridColumns=this.buildGridColumns(t)),this.cachedGridColumns}handleGridDataChanged(){const t=this.getRowsFromGrid();this.gridRowCount=t.length,this.emitValue(),this.validateAndEmitError(),this.refreshAggregateFooter()}render(){const t=this.readonly||this.disabled;return i("div",{key:"1567aefbf4f467f3a9c6e012811c5bf927a65bfb",class:"table-input-container"},this.columns.length>0?i("div",null,i("div",{class:"table-grid-wrapper"},i("client-side-grid",{key:`table-grid-${this.gridRenderNonce}`,columnDefs:this.getGridColumns(t),rowData:this.initialGridRows,gridHeight:this.getGridHeight(),gridOptions:this.getGridOptions(),gridApiCallback:this.handleGridApiCallback})),!t&&i("div",{class:"table-input-add-row-button"},i("udp-button",{variant:"text",onClick:()=>this.handleAddRow(),startIcon:i("udp-icon",{iconName:"add",color:"inherit"})},"Add a Row"))):i("div",{class:"table-empty-state"},"No columns configured."))}get el(){return this}static get watchers(){return{initialValue:[{onInitialValueChange:0}],columns:[{onColumnsChange:0}],error:[{onErrorChange:0}],initialGridRows:[{onSeedRowsChange:0}]}}static get style(){return":host{display:block}.table-input-container{display:flex;flex-direction:column;gap:var(--spacing-03, 12px)}.table-grid-wrapper{overflow:hidden}.table-grid-wrapper .ag-cell.table-input-required-invalid{background-color:#fff5f5;box-shadow:inset 0 0 0 1px #d32f2f}.table-empty-state{color:var(--gray-07, #666);font-size:0.875rem}.table-input-add-row-button{display:flex;justify-content:center;margin:var(--spacing-03) 0}.aggregate-summary-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:8px;background:var(--gray-01, #f8f8f8);border:1px solid var(--gray-03);border-radius:4px;padding:8px}.aggregate-summary-cell{font-weight:600;font-size:0.875rem}"}},[1,"table-input",{columns:[16],initialValue:[1,"initial-value"],required:[4],disabled:[4],readonly:[4],error:[1],initialGridRows:[32],gridRowCount:[32],gridRenderNonce:[32],validationError:[32]},[[0,"input","handleNestedInput"],[0,"change","handleNestedChange"],[2,"paste","handleGridPaste"],[16,"udpFormsSubmitInvalid","handleSubmitInvalid"]],{initialValue:[{onInitialValueChange:0}],columns:[{onColumnsChange:0}],error:[{onErrorChange:0}],initialGridRows:[{onSeedRowsChange:0}]}]);function H(){"undefined"!=typeof customElements&&["table-input","ag-grid-base","client-side-grid","ghost-render","grid-header","hint-panel","stencil-icon-button","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-dialog","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-dialog","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-linear-loader","udp-list-item","udp-menu-item","udp-pop-over","udp-primary-action-header","udp-search-input","udp-side-sheet","udp-spinner","udp-text","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"table-input":customElements.get(s(t))||customElements.define(s(t),P);break;case"ag-grid-base":customElements.get(s(t))||r();break;case"client-side-grid":customElements.get(s(t))||n();break;case"ghost-render":customElements.get(s(t))||o();break;case"grid-header":customElements.get(s(t))||a();break;case"hint-panel":customElements.get(s(t))||u();break;case"stencil-icon-button":customElements.get(s(t))||l();break;case"udp-ambient-tool-tip":customElements.get(s(t))||d();break;case"udp-avatar":customElements.get(s(t))||h();break;case"udp-badge":customElements.get(s(t))||m();break;case"udp-button":customElements.get(s(t))||c();break;case"udp-dialog":customElements.get(s(t))||p();break;case"udp-flexbox":customElements.get(s(t))||g();break;case"udp-fluent-avatar":customElements.get(s(t))||f();break;case"udp-fluent-badge":customElements.get(s(t))||b();break;case"udp-fluent-button":customElements.get(s(t))||v();break;case"udp-fluent-dialog":customElements.get(s(t))||y();break;case"udp-fluent-icon":customElements.get(s(t))||E();break;case"udp-fluent-icon-button":customElements.get(s(t))||w();break;case"udp-fluent-menu":customElements.get(s(t))||C();break;case"udp-fluent-switch":customElements.get(s(t))||j();break;case"udp-fluent-text-input":customElements.get(s(t))||k();break;case"udp-icon":customElements.get(s(t))||x();break;case"udp-linear-loader":customElements.get(s(t))||R();break;case"udp-list-item":customElements.get(s(t))||N();break;case"udp-menu-item":customElements.get(s(t))||S();break;case"udp-pop-over":customElements.get(s(t))||A();break;case"udp-primary-action-header":customElements.get(s(t))||V();break;case"udp-search-input":customElements.get(s(t))||q();break;case"udp-side-sheet":customElements.get(s(t))||F();break;case"udp-spinner":customElements.get(s(t))||I();break;case"udp-text":customElements.get(s(t))||M();break;case"udp-tooltip":customElements.get(s(t))||G();break;case"unity-typography":customElements.get(s(t))||D()}}))}export{P as T,H as d}
1
+ import{p as t,H as e,h as i,t as s}from"./index2.js";import{d as r}from"./ag-grid-base2.js";import{d as n}from"./client-side-grid2.js";import{d as o}from"./ghost-render2.js";import{d as a}from"./grid-header2.js";import{d as u}from"./hint-panel2.js";import{d as l}from"./stencil-icon-button2.js";import{d}from"./udp-ambient-tool-tip2.js";import{d as h}from"./udp-avatar2.js";import{d as m}from"./udp-badge2.js";import{d as c}from"./udp-button2.js";import{d as p}from"./udp-dialog2.js";import{d as g}from"./udp-flexbox2.js";import{d as f}from"./udp-fluent-avatar2.js";import{d as b}from"./udp-fluent-badge2.js";import{d as v}from"./udp-fluent-button2.js";import{d as y}from"./udp-fluent-dialog2.js";import{d as E}from"./udp-fluent-icon2.js";import{d as w}from"./udp-fluent-icon-button2.js";import{d as C}from"./udp-fluent-menu2.js";import{d as j}from"./udp-fluent-switch2.js";import{d as k}from"./udp-fluent-text-input2.js";import{d as x}from"./udp-icon2.js";import{d as R}from"./udp-linear-loader2.js";import{d as N}from"./list-item.js";import{d as S}from"./udp-menu-item2.js";import{d as A}from"./udp-pop-over2.js";import{d as V}from"./udp-primary-action-header2.js";import{d as q}from"./udp-search-input2.js";import{d as F}from"./udp-side-sheet2.js";import{d as I}from"./udp-spinner2.js";import{d as M}from"./udp-text2.js";import{d as G}from"./udp-tooltip2.js";import{d as D}from"./unity-typography2.js";const $=t=>"number"===t,O=()=>`grid-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,P=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.columns=[],this.initialValue=null,this.required=!1,this.disabled=!1,this.readonly=!1,this.initialGridRows=[],this.gridRowCount=0,this.gridRenderNonce=O(),this.validationError="",this.hasHydratedFromInitialValue=!1,this.columnsSignature="",this.cachedGridColumns=[],this.cachedGridColumnsKey="",this.hasSubmitValidationAttempt=!1,this.gridOptions={suppressContextMenu:!0,stopEditingWhenCellsLoseFocus:!0,suppressAggFuncInHeader:!0,editType:"fullRow",singleClickEdit:!0,rowDragManaged:!0,animateRows:!0,defaultColDef:{sortable:!1,filter:!1,suppressHeaderMenuButton:!0,editable:!0,minWidth:80,resizable:!0},getRowStyle:t=>{var e;if("bottom"===(null===(e=null==t?void 0:t.node)||void 0===e?void 0:e.rowPinned))return{backgroundColor:"var(--gray-01, #f8f8f8)",fontWeight:"600",borderTop:"1px solid var(--gray-03, #d8d8d8)"}},onCellValueChanged:()=>this.handleGridDataChanged(),onCellEditingStopped:()=>this.handleGridDataChanged(),onRowEditingStopped:()=>this.handleGridDataChanged(),onPasteEnd:()=>this.handleGridDataChanged(),onRowDragEnd:()=>this.handleGridDataChanged()},this.handleAddRow=()=>{if(this.gridApiMethods)try{return this.gridApiMethods.applyTransaction({add:[this.createEmptyRow()]}),void requestAnimationFrame((()=>{var t;this.handleGridDataChanged();const e=Math.max(this.getRowsFromGrid().length-1,0);null===(t=this.gridApiMethods)||void 0===t||t.ensureIndexVisible(e,"bottom")}))}catch(t){this.gridApiMethods=void 0}this.initialGridRows=[...this.initialGridRows,this.createEmptyRow()],this.validateAndEmitError(),this.emitValue()},this.handleRemoveRow=t=>{if(this.gridApiMethods)try{const e=this.getRawRowsFromGrid()[t];return e&&this.gridApiMethods.applyTransaction({remove:[e]}),void this.handleGridDataChanged()}catch(t){this.gridApiMethods=void 0}const e=[...this.initialGridRows];e.splice(t,1),this.initialGridRows=e,this.validateAndEmitError(),this.emitValue()},this.handleGridApiCallback=t=>{var e;this.gridApiMethods=t,this.gridRowCount=this.getRowsFromGrid().length||this.initialGridRows.length,this.validateAndEmitError(),null===(e=this.gridApiMethods)||void 0===e||e.refreshCells(),this.refreshAggregateFooter(),requestAnimationFrame((()=>this.refreshAggregateFooter()))}}handleNestedInput(t){(t.composedPath&&t.composedPath()[0]||t.target)!==this.el&&(t.stopImmediatePropagation(),t.stopPropagation())}handleNestedChange(t){(t.composedPath&&t.composedPath()[0]||t.target)!==this.el&&(t.stopImmediatePropagation(),t.stopPropagation())}handleGridPaste(t){var e,i,s,r;if(this.readonly||this.disabled||!this.gridApiMethods)return;const n=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text/plain");if(!(null==n?void 0:n.trim()))return;t.preventDefault();const o=n.split(/\r?\n/).map((t=>t.split("\t"))).filter((t=>t.some((t=>""!==t))));if(!o.length)return;this.gridApiMethods.stopEditing(!0);const a=this.gridApiMethods.getFocusedCell(),u=null!==(i=null==a?void 0:a.rowIndex)&&void 0!==i?i:0,l=null===(r=null===(s=null==a?void 0:a.column)||void 0===s?void 0:s.getColId)||void 0===r?void 0:r.call(s),d=this.columns||[],h=l?Math.max(0,d.findIndex((t=>t.id===l))):0,m=this.getRawRowsFromGrid(),c=[];o.forEach(((t,e)=>{const i=u+e;if(i<m.length)t.forEach(((t,e)=>{const s=d[h+e];s&&(m[i][s.id]=this.parsePastedCellValue(s,t))}));else{const e=this.createEmptyRow();t.forEach(((t,i)=>{const s=d[h+i];s&&(e[s.id]=this.parsePastedCellValue(s,t))})),c.push(e)}})),c.length&&this.gridApiMethods.applyTransaction({add:c}),this.handleGridDataChanged(),this.gridApiMethods.refreshCells()}handleSubmitInvalid(){this.hasSubmitValidationAttempt=!0,requestAnimationFrame((()=>{var t;this.validateAndEmitError(),null===(t=this.gridApiMethods)||void 0===t||t.refreshCells()}))}componentWillLoad(){this.columnsSignature=this.getColumnsSignature(this.columns),this.initializeRows(this.initialValue,!1)}disconnectedCallback(){this.gridApiMethods=void 0}onInitialValueChange(t){if(!this.hasHydratedFromInitialValue)return"string"!=typeof t||this.hasUsableInitialValue(t)?void(this.hasUsableInitialValue(t)&&(this.recreateGridInstance(),this.initializeRows(t,!0))):(this.hasHydratedFromInitialValue=!0,void this.recreateGridInstance())}onColumnsChange(){const t=this.getColumnsSignature(this.columns);if(t===this.columnsSignature)return;if(this.columnsSignature=t,!Array.isArray(this.columns)||0===this.columns.length)return this.initialGridRows=[],this.gridRowCount=0,void this.emitValue();const e=this.initialGridRows.map((t=>this.normalizeRow(t)));this.initialGridRows=e,this.validateAndEmitError(),this.emitValue()}onErrorChange(){var t;null===(t=this.gridApiMethods)||void 0===t||t.refreshCells()}onSeedRowsChange(){this.gridRowCount=this.initialGridRows.length,this.refreshAggregateFooter()}getColumnsSignature(t=[]){return JSON.stringify(t.map((t=>({id:null==t?void 0:t.id,name:null==t?void 0:t.name,type:null==t?void 0:t.type,required:null==t?void 0:t.required,aggregate:null==t?void 0:t.aggregate,aggregateDecimalPlaces:null==t?void 0:t.aggregateDecimalPlaces}))))}recreateGridInstance(){this.gridApiMethods=void 0,this.cachedGridColumns=[],this.cachedGridColumnsKey="",this.gridRenderNonce=O()}hasUsableInitialValue(t){return null!=t&&("string"==typeof t?t.trim().length>0:!!Array.isArray(t))}createEmptyRow(){const t={};return(this.columns||[]).forEach((e=>{t[e.id]=$(e.type)?null:""})),t}normalizeRow(t){const e=this.createEmptyRow();return t&&"object"==typeof t?((this.columns||[]).forEach((i=>{const s=t[i.id];if(null!=s&&""!==String(s).trim())if($(i.type)){const t=Number(String(s).trim());e[i.id]=Number.isFinite(t)?t:void 0}else e[i.id]=String(s);else e[i.id]=$(i.type)?void 0:""})),e):e}parseInitialValue(t){var e,i;if(!t)return[];let s=t;if("string"==typeof t){try{s=JSON.parse(t)}catch(t){return[]}if("string"==typeof s)try{s=JSON.parse(s)}catch(t){return[]}}return Array.isArray(s)?s.filter((t=>t&&"object"==typeof t)):s&&"object"==typeof s&&Array.isArray(null!==(e=s.rows)&&void 0!==e?e:s.Rows)?(null!==(i=s.rows)&&void 0!==i?i:s.Rows).filter((t=>t&&"object"==typeof t)):[]}hasMissingRequiredColumnValue(t){return this.getRequiredColumns().some((e=>{const i=null==t?void 0:t[e.id];return null==i||0===String(i).trim().length}))}hasAnyColumnLevelRequired(){return(this.columns||[]).some((t=>!!(null==t?void 0:t.required)))}hasAnyRequiredConfig(){return this.required||this.hasAnyColumnLevelRequired()}getRequiredColumns(){return(this.columns||[]).filter((t=>!!(null==t?void 0:t.required)))}getRowsForValidation(){const t=this.getRowsFromGrid();return this.gridApiMethods?t:this.initialGridRows}isRequiredCellInvalid(t,e){if(!(null==e?void 0:e.required))return!1;const i=null==t?void 0:t[e.id];return null==i||0===String(i).trim().length}shouldShowRequiredCellHighlights(){return this.hasSubmitValidationAttempt&&!!this.validationError}parsePastedCellValue(t,e){const i=e.trim();if($(t.type)){if(!i)return;const t=Number(i);return Number.isFinite(t)?t:void 0}return i}coerceCellValueForSubmission(t,e){if(!$(t.type))return e;if(null==e)return"";const i=String(e).trim();if(!i)return"";const s=Number(i);return Number.isFinite(s)?s:""}getRowsFromGrid(){if(!this.gridApiMethods)return[];try{const t=[];return this.gridApiMethods.forEachNode((e=>{(null==e?void 0:e.data)&&"object"==typeof e.data&&t.push(this.normalizeRow(e.data))})),t}catch(t){return[]}}getRawRowsFromGrid(){if(!this.gridApiMethods)return[];try{const t=[];return this.gridApiMethods.forEachNode((e=>{(null==e?void 0:e.data)&&"object"==typeof e.data&&t.push(e.data)})),t}catch(t){return[]}}buildSubmissionPayloadString(){const t=this.getRowsFromGrid(),e=(this.gridApiMethods?t:this.initialGridRows).map((t=>{const e={};return(this.columns||[]).forEach((i=>{var s;e[i.id]=this.coerceCellValueForSubmission(i,null!==(s=null==t?void 0:t[i.id])&&void 0!==s?s:"")})),e}));return JSON.stringify({rows:e})}initializeRows(t,e){const i=this.parseInitialValue(t);if(!Array.isArray(this.columns)||0===this.columns.length)return this.initialGridRows=[],void(e&&(this.hasHydratedFromInitialValue=!0));let s;s=i.length>0?i.map((t=>this.normalizeRow(t))):[],this.initialGridRows=[...s],e&&(this.hasHydratedFromInitialValue=!0),this.validateAndEmitError(),this.emitValue()}emitValue(){const t=this.buildSubmissionPayloadString();this.el.dispatchEvent(new CustomEvent("input",{bubbles:!0,detail:t})),this.el.dispatchEvent(new CustomEvent("change",{bubbles:!0,detail:t}))}validateAndEmitError(){var t;const e=this.getValidationError();this.validationError=e,null===(t=this.gridApiMethods)||void 0===t||t.refreshCells(),this.el.dispatchEvent(new CustomEvent("error",{bubbles:!0,detail:e}))}getValidationError(){const t=this.getRowsForValidation(),e=this.hasAnyRequiredConfig();return e&&t.length<1?"At least one row is required":e&&t.some((t=>this.hasMissingRequiredColumnValue(t)))?"Please complete all required columns in each row":""}getGridHeight(){return`${Math.min(600,Math.max(400,120+44*(this.gridApiMethods?this.gridRowCount:this.initialGridRows.length)))}px`}hasConfiguredAggregates(){return(this.columns||[]).some((t=>$(t.type)&&!!t.aggregate))}getAggregateDecimalPlaces(t){const e=Number(null==t?void 0:t.aggregateDecimalPlaces);return!Number.isInteger(e)||e<0?1:e}getAggregateValue(t){if(!$(t.type)||!t.aggregate)return null;const e=this.getRowsForAggregation().map((e=>Number(null==e?void 0:e[t.id]))).filter((t=>Number.isFinite(t)));if(0===e.length)return null;switch(t.aggregate){case"sum":return e.reduce(((t,e)=>t+e),0);case"avg":return e.reduce(((t,e)=>t+e),0)/e.length;case"min":return Math.min(...e);case"max":return Math.max(...e);default:return null}}getRowsForAggregation(){const t=this.getRowsFromGrid();return this.gridApiMethods?0===t.length&&this.gridRowCount>0?this.initialGridRows:t:this.initialGridRows}hasAnyRowsForAggregation(){return this.getRowsForAggregation().length>0}getAggregateLabel(t){switch(t.aggregate){case"sum":return"Sum";case"avg":return"Avg";case"min":return"Min";case"max":return"Max";default:return""}}getFooterCellDisplayValue(t,e){if($(t.type)&&t.aggregate){const e=this.getAggregateValue(t);return null==e?null:e}return 0===e&&this.hasConfiguredAggregates()&&!$(t.type)?"Summary":null}getGridOptions(){return this.hasConfiguredAggregates()?Object.assign(Object.assign({},this.gridOptions),{pinnedBottomRowData:[{}]}):this.gridOptions}refreshAggregateFooter(){if(this.hasConfiguredAggregates()&&this.gridApiMethods)try{this.gridApiMethods.refreshCells()}catch(t){this.gridApiMethods=void 0}}buildGridColumns(t){const e=(this.columns||[]).map(((e,i)=>({headerName:e.required?`${e.name} *`:e.name,field:e.id,editable:e=>{var i;return!t&&"bottom"!==(null===(i=null==e?void 0:e.node)||void 0===i?void 0:i.rowPinned)},suppressHeaderMenuButton:!0,sortable:!1,rowDrag:0==i&&!t,filter:!1,cellClassRules:{"table-input-required-invalid":t=>{var i;if("bottom"===(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return!1;const s=null==t?void 0:t.data;return!(!s||"object"!=typeof s)&&this.shouldShowRequiredCellHighlights()&&this.isRequiredCellInvalid(s,e)}},cellDataType:$(e.type)?"number":"text",autoHeight:!0,wrapText:!0,cellStyle:{display:"flex",alignItems:"center"},valueGetter:t=>{var s,r;return"bottom"===(null===(s=null==t?void 0:t.node)||void 0===s?void 0:s.rowPinned)?this.getFooterCellDisplayValue(e,i):null===(r=null==t?void 0:t.data)||void 0===r?void 0:r[e.id]},valueFormatter:t=>{var i,s;if("bottom"!==(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return null==t?void 0:t.value;if($(e.type)&&e.aggregate){if(!this.hasAnyRowsForAggregation())return`${this.getAggregateLabel(e)}: N/A`;const i=Number(null==t?void 0:t.value);if(!Number.isFinite(i))return"";const s=this.getAggregateDecimalPlaces(e);return`${this.getAggregateLabel(e)}: ${i.toFixed(s)}`}return null!==(s=null==t?void 0:t.value)&&void 0!==s?s:""},valueSetter:t=>{var i,s;if("bottom"===(null===(i=null==t?void 0:t.node)||void 0===i?void 0:i.rowPinned))return!1;const r=null===(s=null==t?void 0:t.data)||void 0===s?void 0:s[e.id];let n=null==(null==t?void 0:t.newValue)?"":String(t.newValue);if($(e.type)){const t=String(n||"").trim();if(t){const e=Number(t);if(!Number.isFinite(e))return!1;n=e}else n=void 0}return r!==n&&(t.data[e.id]=n,!0)}})));if(t)return e;const i={headerName:"Actions",field:"actions",editable:!1,sortable:!1,filter:!1,suppressHeaderMenuButton:!0,resizable:!1,cellRenderer:"actionsRenderer",cellRendererParams:{hideActions:t=>"bottom"===(null==t?void 0:t.rowPinned),actionList:[{id:"remove-row",iconName:"trashCan",title:"Remove Row",handleOnClick:(t,e)=>{const i=Number(null==e?void 0:e.rowIndex);!Number.isInteger(i)||i<0||this.handleRemoveRow(i)}}]}};return[...e,i]}getGridColumns(t){const e=`${t}::${this.columnsSignature}`;return this.cachedGridColumnsKey===e&&this.cachedGridColumns.length>0||(this.cachedGridColumnsKey=e,this.cachedGridColumns=this.buildGridColumns(t)),this.cachedGridColumns}handleGridDataChanged(){const t=this.getRowsFromGrid();this.gridRowCount=t.length,this.emitValue(),this.validateAndEmitError(),this.refreshAggregateFooter()}render(){const t=this.readonly||this.disabled;return i("div",{key:"3a213efec352e7d39b1088761f05af3fa4a20325",class:"table-input-container"},this.columns.length>0?i("div",null,i("div",{class:"table-grid-wrapper"},i("client-side-grid",{key:`table-grid-${this.gridRenderNonce}`,columnDefs:this.getGridColumns(t),rowData:this.initialGridRows,gridHeight:this.getGridHeight(),gridOptions:this.getGridOptions(),gridApiCallback:this.handleGridApiCallback})),!t&&i("div",{class:"table-input-add-row-button"},i("udp-button",{variant:"text",onClick:()=>this.handleAddRow(),startIcon:i("udp-icon",{iconName:"add",color:"inherit"})},"Add a Row"))):i("div",{class:"table-empty-state"},"No columns configured."))}get el(){return this}static get watchers(){return{initialValue:[{onInitialValueChange:0}],columns:[{onColumnsChange:0}],error:[{onErrorChange:0}],initialGridRows:[{onSeedRowsChange:0}]}}static get style(){return":host{display:block}.table-input-container{display:flex;flex-direction:column;gap:var(--spacing-03, 12px)}.table-grid-wrapper{overflow:hidden}.table-grid-wrapper .ag-cell.table-input-required-invalid{background-color:#fff5f5;box-shadow:inset 0 0 0 1px #d32f2f}.table-empty-state{color:var(--gray-07, #666);font-size:0.875rem}.table-input-add-row-button{display:flex;justify-content:center;margin:var(--spacing-03) 0}.aggregate-summary-row{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:8px;background:var(--gray-01, #f8f8f8);border:1px solid var(--gray-03);border-radius:4px;padding:8px}.aggregate-summary-cell{font-weight:600;font-size:0.875rem}"}},[1,"table-input",{columns:[16],initialValue:[1,"initial-value"],required:[4],disabled:[4],readonly:[4],error:[1],initialGridRows:[32],gridRowCount:[32],gridRenderNonce:[32],validationError:[32]},[[0,"input","handleNestedInput"],[0,"change","handleNestedChange"],[2,"paste","handleGridPaste"],[16,"udpFormsSubmitInvalid","handleSubmitInvalid"]],{initialValue:[{onInitialValueChange:0}],columns:[{onColumnsChange:0}],error:[{onErrorChange:0}],initialGridRows:[{onSeedRowsChange:0}]}]);function H(){"undefined"!=typeof customElements&&["table-input","ag-grid-base","client-side-grid","ghost-render","grid-header","hint-panel","stencil-icon-button","udp-ambient-tool-tip","udp-avatar","udp-badge","udp-button","udp-dialog","udp-flexbox","udp-fluent-avatar","udp-fluent-badge","udp-fluent-button","udp-fluent-dialog","udp-fluent-icon","udp-fluent-icon-button","udp-fluent-menu","udp-fluent-switch","udp-fluent-text-input","udp-icon","udp-linear-loader","udp-list-item","udp-menu-item","udp-pop-over","udp-primary-action-header","udp-search-input","udp-side-sheet","udp-spinner","udp-text","udp-tooltip","unity-typography"].forEach((t=>{switch(t){case"table-input":customElements.get(s(t))||customElements.define(s(t),P);break;case"ag-grid-base":customElements.get(s(t))||r();break;case"client-side-grid":customElements.get(s(t))||n();break;case"ghost-render":customElements.get(s(t))||o();break;case"grid-header":customElements.get(s(t))||a();break;case"hint-panel":customElements.get(s(t))||u();break;case"stencil-icon-button":customElements.get(s(t))||l();break;case"udp-ambient-tool-tip":customElements.get(s(t))||d();break;case"udp-avatar":customElements.get(s(t))||h();break;case"udp-badge":customElements.get(s(t))||m();break;case"udp-button":customElements.get(s(t))||c();break;case"udp-dialog":customElements.get(s(t))||p();break;case"udp-flexbox":customElements.get(s(t))||g();break;case"udp-fluent-avatar":customElements.get(s(t))||f();break;case"udp-fluent-badge":customElements.get(s(t))||b();break;case"udp-fluent-button":customElements.get(s(t))||v();break;case"udp-fluent-dialog":customElements.get(s(t))||y();break;case"udp-fluent-icon":customElements.get(s(t))||E();break;case"udp-fluent-icon-button":customElements.get(s(t))||w();break;case"udp-fluent-menu":customElements.get(s(t))||C();break;case"udp-fluent-switch":customElements.get(s(t))||j();break;case"udp-fluent-text-input":customElements.get(s(t))||k();break;case"udp-icon":customElements.get(s(t))||x();break;case"udp-linear-loader":customElements.get(s(t))||R();break;case"udp-list-item":customElements.get(s(t))||N();break;case"udp-menu-item":customElements.get(s(t))||S();break;case"udp-pop-over":customElements.get(s(t))||A();break;case"udp-primary-action-header":customElements.get(s(t))||V();break;case"udp-search-input":customElements.get(s(t))||q();break;case"udp-side-sheet":customElements.get(s(t))||F();break;case"udp-spinner":customElements.get(s(t))||I();break;case"udp-text":customElements.get(s(t))||M();break;case"udp-tooltip":customElements.get(s(t))||G();break;case"unity-typography":customElements.get(s(t))||D()}}))}export{P as T,H as d}
@@ -1,2 +1,2 @@
1
1
  import "../stencil-library/stencil-library.css";
2
- import{p as a,H as t,h as e,d as l,t as r}from"./index2.js";import{d as i}from"./unity-typography2.js";const s=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.label="Response Tally",this.yesCount=0,this.noCount=0,this.naCount=0,this.totalFields=0,this.disabled=!1,this.readonly=!1,this.size="normal",this.margin="normal"}render(){const a=!!this.error,t=this.totalFields-(this.yesCount+this.noCount+this.naCount);return e(l,{key:"786b5c03c99141a8748903f0774f11ace85f5919",class:{"udp-input":!0,"udp-input--error":a,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly,[`udp-input--size-${this.size}`]:!0,[`udp-input--margin-${this.margin}`]:!0}},e("div",{key:"f4c78c29cf31735f51b240656b7d8cf7e57be3ee",class:"tally-container"},this.label&&e("unity-typography",{key:"3190e645dcfc05cfff0383226789772c85cd49f8",variant:"caption-text"},e("label",{key:"1849876e3f91ea58445466b39b93f39b628b2f1b",htmlFor:this.id,class:"tally-label"},this.label)),e("div",{key:"ea05a601e0a637382d28a7df1606881aceea477f",class:"tally-content",id:this.id},e("div",{key:"f0f50415cb8b6fc02e98ce69f8b90b4be6a982db",class:"tally-stats"},e("div",{key:"17c79e127248f374525763f0ad8aef44efd583f5",class:"tally-item tally-yes"},e("unity-typography",{key:"c6fefef0c2d2ed5674b9a1b8a33a82fe63385a21",variant:"h4",class:"tally-count"},this.yesCount),e("unity-typography",{key:"4c3941792fb91bddc62784232657e5e8180dc16f",variant:"caption-text",class:"tally-label"},"Yes")),e("div",{key:"22d6cf2a1994a54c996363e4789777cc24d659c5",class:"tally-item tally-no"},e("unity-typography",{key:"dc4015cfd53dfb122ccbad61fc34913ec62b2b76",variant:"h4",class:"tally-count"},this.noCount),e("unity-typography",{key:"0695eca7a58b03b1c531ef61934f81ca01247e94",variant:"caption-text",class:"tally-label"},"No")),e("div",{key:"23faa1ff699cc8c667100e4a8f678efac50af145",class:"tally-item tally-na"},e("unity-typography",{key:"228e3e62c36f159fe40157f950cb679c718d5c20",variant:"h4",class:"tally-count"},this.naCount),e("unity-typography",{key:"1ca40cd0471647bdf97abeeccf471ef959aa3dea",variant:"caption-text",class:"tally-label"},"Not Applicable")),t>0&&e("div",{key:"7e397057a121192dbb43bbb72eb7f905105f4e76",class:"tally-item tally-unanswered"},e("unity-typography",{key:"f3a6bdb016986659913d702b71b7058f84b67851",variant:"h4",class:"tally-count"},t),e("unity-typography",{key:"5e7caa8d0d3e7befc000759ac9cd61caeab476a4",variant:"caption-text",class:"tally-label"},"Unanswered"))),e("div",{key:"689f65675f9078d2db8c3bc2d39cf376c9d5473b",class:"tally-summary"},e("unity-typography",{key:"98d20bfacdcf884af50354365486d0dd154612bc",variant:"caption-text"},"Total Questions: ",this.totalFields))),a&&e("div",{key:"0b64e68843056739c707f2fade834c0a316defd9",class:"error-message"},e("unity-typography",{key:"3cad3e846ee55c6aea07c5ebf513c782c20807fb",variant:"caption-text",color:"error"},this.error))))}static get style(){return":host{display:block;width:100%}.tally-container{display:flex;flex-direction:column;gap:var(--spacing-02, 8px)}.tally-label{font-weight:600;margin-bottom:var(--spacing-02, 8px)}.tally-loading{display:flex;align-items:center;justify-content:center;padding:var(--spacing-04, 16px);color:var(--text-secondary, #6b7280)}.tally-content{display:flex;flex-direction:column;gap:var(--spacing-03, 12px)}.tally-stats{display:flex;gap:var(--spacing-04, 16px);flex-wrap:wrap}.tally-item{display:flex;flex-direction:column;align-items:center;padding:var(--spacing-03, 12px) var(--spacing-04, 16px);border-radius:var(--border-radius-01, 4px);border:1px solid var(--border-subtle, #e5e7eb);background-color:var(--layer-01, #ffffff);min-width:80px;flex:1;max-width:120px}.tally-item.tally-yes{border-color:var(--support-success, #42be65);background-color:var(--support-success-hover, #f6f8ff)}.tally-item.tally-no{border-color:var(--support-error, #da1e28);background-color:var(--support-error-hover, #fff1f1)}.tally-item.tally-unanswered{border-color:var(--support-warning, #f1c21b);background-color:var(--support-warning-hover, #fcf4d6)}.tally-count{font-weight:700;line-height:1.2;margin-bottom:var(--spacing-01, 4px)}.tally-yes .tally-count{color:var(--support-success, #42be65)}.tally-no .tally-count{color:var(--support-error, #da1e28)}.tally-unanswered .tally-count{color:var(--support-warning, #f1c21b)}.tally-item .tally-label{margin:0;font-weight:500;text-transform:uppercase;font-size:0.75rem;letter-spacing:0.02em}.tally-summary{padding:var(--spacing-02, 8px) 0;border-top:1px solid var(--border-subtle, #e5e7eb);text-align:center}.error-message{margin-top:var(--spacing-02, 8px);padding:var(--spacing-02, 8px);border-radius:var(--border-radius-01, 4px);background-color:var(--support-error-hover, #fff1f1);border:1px solid var(--support-error, #da1e28)}:host(.udp-input--size-small) .tally-item{padding:var(--spacing-02, 8px) var(--spacing-03, 12px);min-width:60px;max-width:90px}:host(.udp-input--size-small) .tally-count{font-size:1.25rem}:host(.udp-input--size-large) .tally-item{padding:var(--spacing-04, 16px) var(--spacing-05, 20px);min-width:100px;max-width:150px}:host(.udp-input--size-large) .tally-count{font-size:2rem}:host(.udp-input--margin-none) .tally-container{gap:0}:host(.udp-input--margin-dense) .tally-container{gap:var(--spacing-01, 4px)}:host(.udp-input--margin-comfortable) .tally-container{gap:var(--spacing-04, 16px)}:host(.udp-input--disabled) .tally-item{opacity:0.5;pointer-events:none}:host(.udp-input--readonly) .tally-item{background-color:var(--field-01, #f4f4f4)}@media (max-width: 480px){.tally-stats{flex-direction:column}.tally-item{max-width:none;flex:none}}"}},[1,"tally-display",{label:[1],id:[1],yesCount:[2,"yes-count"],noCount:[2,"no-count"],naCount:[2,"na-count"],totalFields:[2,"total-fields"],disabled:[4],readonly:[4],error:[1],size:[1],margin:[1]}]);function n(){"undefined"!=typeof customElements&&["tally-display","unity-typography"].forEach((a=>{switch(a){case"tally-display":customElements.get(r(a))||customElements.define(r(a),s);break;case"unity-typography":customElements.get(r(a))||i()}}))}export{s as T,n as d}
2
+ import{p as a,H as t,h as e,d as l,t as r}from"./index2.js";import{d as i}from"./unity-typography2.js";const s=a(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.label="Response Tally",this.yesCount=0,this.noCount=0,this.naCount=0,this.totalFields=0,this.disabled=!1,this.readonly=!1,this.size="normal",this.margin="normal"}render(){const a=!!this.error,t=this.totalFields-(this.yesCount+this.noCount+this.naCount);return e(l,{key:"525face8f1e74cfd9eb06867f713cb51a9bec738",class:{"udp-input":!0,"udp-input--error":a,"udp-input--disabled":this.disabled,"udp-input--readonly":this.readonly,[`udp-input--size-${this.size}`]:!0,[`udp-input--margin-${this.margin}`]:!0}},e("div",{key:"bb4bb72acb1f1922e9a3b4a08178d132c28fa6f6",class:"tally-container"},this.label&&e("unity-typography",{key:"7be2fb2395c872a94e64cfe8e7eeeb0bc61e47c0",variant:"caption-text"},e("label",{key:"3ddbaf02c2df4152d76e5c5c594f573fbac84c5f",htmlFor:this.id,class:"tally-label"},this.label)),e("div",{key:"4bdcc43095d9e232f55e143b2ba39e793f835a86",class:"tally-content",id:this.id},e("div",{key:"34f55525209b5af057eb416a83d8363332eb2f1e",class:"tally-stats"},e("div",{key:"e6af1e645206ddaf906c3f584a1c14fd0e277617",class:"tally-item tally-yes"},e("unity-typography",{key:"9b0388792c594f6bc622cd9cf565eccb6a61681b",variant:"h4",class:"tally-count"},this.yesCount),e("unity-typography",{key:"73bcc34114de22156b8d9f0e3e4d95c2e3ed9646",variant:"caption-text",class:"tally-label"},"Yes")),e("div",{key:"a701c781916660e640d32707acd3fb22543f2fea",class:"tally-item tally-no"},e("unity-typography",{key:"24f8db19e0233b92abcd7060e9cd9713fef32558",variant:"h4",class:"tally-count"},this.noCount),e("unity-typography",{key:"6652950cdbde2e6cf93161d34c16d5ba84d92fd4",variant:"caption-text",class:"tally-label"},"No")),e("div",{key:"4e98bb1e25e796668f7228b3857c961ed61152c0",class:"tally-item tally-na"},e("unity-typography",{key:"42faac58f4a10186d3f291039e83f440d558e15c",variant:"h4",class:"tally-count"},this.naCount),e("unity-typography",{key:"2af06b524eceec6a3ae4ee83574b6e546937cc1f",variant:"caption-text",class:"tally-label"},"Not Applicable")),t>0&&e("div",{key:"357b7a87f32b37e7480b219b05bd80b12d8f3aaf",class:"tally-item tally-unanswered"},e("unity-typography",{key:"9fe811c0274ad67f1ba2f70a30f77c0c2664f064",variant:"h4",class:"tally-count"},t),e("unity-typography",{key:"89d4905e8d375f10a605c25de930230798891356",variant:"caption-text",class:"tally-label"},"Unanswered"))),e("div",{key:"57bf6f2a2ee665e6fff88aab30c78cd6d1e7dcba",class:"tally-summary"},e("unity-typography",{key:"0453a1fedda691eb7faf6d9a72261d9ffe1a9fab",variant:"caption-text"},"Total Questions: ",this.totalFields))),a&&e("div",{key:"7c01434a5a51526b66c098fba799e755305cc569",class:"error-message"},e("unity-typography",{key:"037400916c79ac2f03b9359f4b18559b54ea81fc",variant:"caption-text",color:"error"},this.error))))}static get style(){return":host{display:block;width:100%}.tally-container{display:flex;flex-direction:column;gap:var(--spacing-02, 8px)}.tally-label{font-weight:600;margin-bottom:var(--spacing-02, 8px)}.tally-loading{display:flex;align-items:center;justify-content:center;padding:var(--spacing-04, 16px);color:var(--text-secondary, #6b7280)}.tally-content{display:flex;flex-direction:column;gap:var(--spacing-03, 12px)}.tally-stats{display:flex;gap:var(--spacing-04, 16px);flex-wrap:wrap}.tally-item{display:flex;flex-direction:column;align-items:center;padding:var(--spacing-03, 12px) var(--spacing-04, 16px);border-radius:var(--border-radius-01, 4px);border:1px solid var(--border-subtle, #e5e7eb);background-color:var(--layer-01, #ffffff);min-width:80px;flex:1;max-width:120px}.tally-item.tally-yes{border-color:var(--support-success, #42be65);background-color:var(--support-success-hover, #f6f8ff)}.tally-item.tally-no{border-color:var(--support-error, #da1e28);background-color:var(--support-error-hover, #fff1f1)}.tally-item.tally-unanswered{border-color:var(--support-warning, #f1c21b);background-color:var(--support-warning-hover, #fcf4d6)}.tally-count{font-weight:700;line-height:1.2;margin-bottom:var(--spacing-01, 4px)}.tally-yes .tally-count{color:var(--support-success, #42be65)}.tally-no .tally-count{color:var(--support-error, #da1e28)}.tally-unanswered .tally-count{color:var(--support-warning, #f1c21b)}.tally-item .tally-label{margin:0;font-weight:500;text-transform:uppercase;font-size:0.75rem;letter-spacing:0.02em}.tally-summary{padding:var(--spacing-02, 8px) 0;border-top:1px solid var(--border-subtle, #e5e7eb);text-align:center}.error-message{margin-top:var(--spacing-02, 8px);padding:var(--spacing-02, 8px);border-radius:var(--border-radius-01, 4px);background-color:var(--support-error-hover, #fff1f1);border:1px solid var(--support-error, #da1e28)}:host(.udp-input--size-small) .tally-item{padding:var(--spacing-02, 8px) var(--spacing-03, 12px);min-width:60px;max-width:90px}:host(.udp-input--size-small) .tally-count{font-size:1.25rem}:host(.udp-input--size-large) .tally-item{padding:var(--spacing-04, 16px) var(--spacing-05, 20px);min-width:100px;max-width:150px}:host(.udp-input--size-large) .tally-count{font-size:2rem}:host(.udp-input--margin-none) .tally-container{gap:0}:host(.udp-input--margin-dense) .tally-container{gap:var(--spacing-01, 4px)}:host(.udp-input--margin-comfortable) .tally-container{gap:var(--spacing-04, 16px)}:host(.udp-input--disabled) .tally-item{opacity:0.5;pointer-events:none}:host(.udp-input--readonly) .tally-item{background-color:var(--field-01, #f4f4f4)}@media (max-width: 480px){.tally-stats{flex-direction:column}.tally-item{max-width:none;flex:none}}"}},[1,"tally-display",{label:[1],id:[1],yesCount:[2,"yes-count"],noCount:[2,"no-count"],naCount:[2,"na-count"],totalFields:[2,"total-fields"],disabled:[4],readonly:[4],error:[1],size:[1],margin:[1]}]);function n(){"undefined"!=typeof customElements&&["tally-display","unity-typography"].forEach((a=>{switch(a){case"tally-display":customElements.get(r(a))||customElements.define(r(a),s);break;case"unity-typography":customElements.get(r(a))||i()}}))}export{s as T,n as d}