@fundamental-ngx/ui5-webcomponents 0.65.1-rc.9 → 0.65.1

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 (391) hide show
  1. package/fesm2022/fundamental-ngx-ui5-webcomponents-utils.mjs +3 -3
  2. package/fesm2022/fundamental-ngx-ui5-webcomponents.mjs +387 -387
  3. package/package.json +3 -519
  4. package/types/fundamental-ngx-ui5-webcomponents.d.ts +1 -1
  5. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-badge.mjs +0 -122
  6. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-badge.mjs.map +0 -1
  7. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-group.mjs +0 -191
  8. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar-group.mjs.map +0 -1
  9. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar.mjs +0 -261
  10. package/fesm2022/fundamental-ngx-ui5-webcomponents-avatar.mjs.map +0 -1
  11. package/fesm2022/fundamental-ngx-ui5-webcomponents-bar.mjs +0 -143
  12. package/fesm2022/fundamental-ngx-ui5-webcomponents-bar.mjs.map +0 -1
  13. package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.mjs +0 -162
  14. package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.mjs.map +0 -1
  15. package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs.mjs +0 -151
  16. package/fesm2022/fundamental-ngx-ui5-webcomponents-breadcrumbs.mjs.map +0 -1
  17. package/fesm2022/fundamental-ngx-ui5-webcomponents-busy-indicator.mjs +0 -130
  18. package/fesm2022/fundamental-ngx-ui5-webcomponents-busy-indicator.mjs.map +0 -1
  19. package/fesm2022/fundamental-ngx-ui5-webcomponents-button-badge.mjs +0 -95
  20. package/fesm2022/fundamental-ngx-ui5-webcomponents-button-badge.mjs.map +0 -1
  21. package/fesm2022/fundamental-ngx-ui5-webcomponents-button.mjs +0 -266
  22. package/fesm2022/fundamental-ngx-ui5-webcomponents-button.mjs.map +0 -1
  23. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date-range.mjs +0 -90
  24. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date-range.mjs.map +0 -1
  25. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date.mjs +0 -83
  26. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-date.mjs.map +0 -1
  27. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend-item.mjs +0 -88
  28. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend-item.mjs.map +0 -1
  29. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend.mjs +0 -121
  30. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar-legend.mjs.map +0 -1
  31. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar.mjs +0 -224
  32. package/fesm2022/fundamental-ngx-ui5-webcomponents-calendar.mjs.map +0 -1
  33. package/fesm2022/fundamental-ngx-ui5-webcomponents-card-header.mjs +0 -156
  34. package/fesm2022/fundamental-ngx-ui5-webcomponents-card-header.mjs.map +0 -1
  35. package/fesm2022/fundamental-ngx-ui5-webcomponents-card.mjs +0 -134
  36. package/fesm2022/fundamental-ngx-ui5-webcomponents-card.mjs.map +0 -1
  37. package/fesm2022/fundamental-ngx-ui5-webcomponents-carousel.mjs +0 -218
  38. package/fesm2022/fundamental-ngx-ui5-webcomponents-carousel.mjs.map +0 -1
  39. package/fesm2022/fundamental-ngx-ui5-webcomponents-check-box.mjs +0 -227
  40. package/fesm2022/fundamental-ngx-ui5-webcomponents-check-box.mjs.map +0 -1
  41. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-item.mjs +0 -124
  42. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-item.mjs.map +0 -1
  43. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs +0 -184
  44. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs.map +0 -1
  45. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette.mjs +0 -137
  46. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-palette.mjs.map +0 -1
  47. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-picker.mjs +0 -133
  48. package/fesm2022/fundamental-ngx-ui5-webcomponents-color-picker.mjs.map +0 -1
  49. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-custom.mjs +0 -141
  50. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-custom.mjs.map +0 -1
  51. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-group.mjs +0 -169
  52. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item-group.mjs.map +0 -1
  53. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item.mjs +0 -138
  54. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box-item.mjs.map +0 -1
  55. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box.mjs +0 -287
  56. package/fesm2022/fundamental-ngx-ui5-webcomponents-combo-box.mjs.map +0 -1
  57. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-picker.mjs +0 -329
  58. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-picker.mjs.map +0 -1
  59. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-range-picker.mjs +0 -367
  60. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-range-picker.mjs.map +0 -1
  61. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-input.mjs +0 -321
  62. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-input.mjs.map +0 -1
  63. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-picker.mjs +0 -329
  64. package/fesm2022/fundamental-ngx-ui5-webcomponents-date-time-picker.mjs.map +0 -1
  65. package/fesm2022/fundamental-ngx-ui5-webcomponents-day-picker.mjs +0 -131
  66. package/fesm2022/fundamental-ngx-ui5-webcomponents-day-picker.mjs.map +0 -1
  67. package/fesm2022/fundamental-ngx-ui5-webcomponents-dialog.mjs +0 -267
  68. package/fesm2022/fundamental-ngx-ui5-webcomponents-dialog.mjs.map +0 -1
  69. package/fesm2022/fundamental-ngx-ui5-webcomponents-drop-indicator.mjs +0 -100
  70. package/fesm2022/fundamental-ngx-ui5-webcomponents-drop-indicator.mjs.map +0 -1
  71. package/fesm2022/fundamental-ngx-ui5-webcomponents-dynamic-date-range.mjs +0 -119
  72. package/fesm2022/fundamental-ngx-ui5-webcomponents-dynamic-date-range.mjs.map +0 -1
  73. package/fesm2022/fundamental-ngx-ui5-webcomponents-expandable-text.mjs +0 -100
  74. package/fesm2022/fundamental-ngx-ui5-webcomponents-expandable-text.mjs.map +0 -1
  75. package/fesm2022/fundamental-ngx-ui5-webcomponents-file-uploader.mjs +0 -287
  76. package/fesm2022/fundamental-ngx-ui5-webcomponents-file-uploader.mjs.map +0 -1
  77. package/fesm2022/fundamental-ngx-ui5-webcomponents-form-group.mjs +0 -143
  78. package/fesm2022/fundamental-ngx-ui5-webcomponents-form-group.mjs.map +0 -1
  79. package/fesm2022/fundamental-ngx-ui5-webcomponents-form-item.mjs +0 -118
  80. package/fesm2022/fundamental-ngx-ui5-webcomponents-form-item.mjs.map +0 -1
  81. package/fesm2022/fundamental-ngx-ui5-webcomponents-form.mjs +0 -202
  82. package/fesm2022/fundamental-ngx-ui5-webcomponents-form.mjs.map +0 -1
  83. package/fesm2022/fundamental-ngx-ui5-webcomponents-icon.mjs +0 -197
  84. package/fesm2022/fundamental-ngx-ui5-webcomponents-icon.mjs.map +0 -1
  85. package/fesm2022/fundamental-ngx-ui5-webcomponents-input-icon.mjs +0 -117
  86. package/fesm2022/fundamental-ngx-ui5-webcomponents-input-icon.mjs.map +0 -1
  87. package/fesm2022/fundamental-ngx-ui5-webcomponents-input.mjs +0 -321
  88. package/fesm2022/fundamental-ngx-ui5-webcomponents-input.mjs.map +0 -1
  89. package/fesm2022/fundamental-ngx-ui5-webcomponents-label.mjs +0 -135
  90. package/fesm2022/fundamental-ngx-ui5-webcomponents-label.mjs.map +0 -1
  91. package/fesm2022/fundamental-ngx-ui5-webcomponents-link.mjs +0 -261
  92. package/fesm2022/fundamental-ngx-ui5-webcomponents-link.mjs.map +0 -1
  93. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-custom.mjs +0 -216
  94. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-custom.mjs.map +0 -1
  95. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group-header.mjs +0 -153
  96. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group-header.mjs.map +0 -1
  97. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group.mjs +0 -169
  98. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-group.mjs.map +0 -1
  99. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-standard.mjs +0 -289
  100. package/fesm2022/fundamental-ngx-ui5-webcomponents-list-item-standard.mjs.map +0 -1
  101. package/fesm2022/fundamental-ngx-ui5-webcomponents-list.mjs +0 -322
  102. package/fesm2022/fundamental-ngx-ui5-webcomponents-list.mjs.map +0 -1
  103. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item-group.mjs +0 -108
  104. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item-group.mjs.map +0 -1
  105. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item.mjs +0 -320
  106. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-item.mjs.map +0 -1
  107. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-separator.mjs +0 -52
  108. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu-separator.mjs.map +0 -1
  109. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu.mjs +0 -193
  110. package/fesm2022/fundamental-ngx-ui5-webcomponents-menu.mjs.map +0 -1
  111. package/fesm2022/fundamental-ngx-ui5-webcomponents-message-strip.mjs +0 -165
  112. package/fesm2022/fundamental-ngx-ui5-webcomponents-message-strip.mjs.map +0 -1
  113. package/fesm2022/fundamental-ngx-ui5-webcomponents-month-picker.mjs +0 -131
  114. package/fesm2022/fundamental-ngx-ui5-webcomponents-month-picker.mjs.map +0 -1
  115. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-custom.mjs +0 -141
  116. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-custom.mjs.map +0 -1
  117. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.mjs +0 -169
  118. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.mjs.map +0 -1
  119. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.mjs +0 -129
  120. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.mjs.map +0 -1
  121. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box.mjs +0 -306
  122. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-combo-box.mjs.map +0 -1
  123. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-input.mjs +0 -345
  124. package/fesm2022/fundamental-ngx-ui5-webcomponents-multi-input.mjs.map +0 -1
  125. package/fesm2022/fundamental-ngx-ui5-webcomponents-number-input.mjs +0 -208
  126. package/fesm2022/fundamental-ngx-ui5-webcomponents-number-input.mjs.map +0 -1
  127. package/fesm2022/fundamental-ngx-ui5-webcomponents-option-custom.mjs +0 -152
  128. package/fesm2022/fundamental-ngx-ui5-webcomponents-option-custom.mjs.map +0 -1
  129. package/fesm2022/fundamental-ngx-ui5-webcomponents-option-group.mjs +0 -109
  130. package/fesm2022/fundamental-ngx-ui5-webcomponents-option-group.mjs.map +0 -1
  131. package/fesm2022/fundamental-ngx-ui5-webcomponents-option.mjs +0 -163
  132. package/fesm2022/fundamental-ngx-ui5-webcomponents-option.mjs.map +0 -1
  133. package/fesm2022/fundamental-ngx-ui5-webcomponents-panel.mjs +0 -186
  134. package/fesm2022/fundamental-ngx-ui5-webcomponents-panel.mjs.map +0 -1
  135. package/fesm2022/fundamental-ngx-ui5-webcomponents-popover.mjs +0 -263
  136. package/fesm2022/fundamental-ngx-ui5-webcomponents-popover.mjs.map +0 -1
  137. package/fesm2022/fundamental-ngx-ui5-webcomponents-progress-indicator.mjs +0 -113
  138. package/fesm2022/fundamental-ngx-ui5-webcomponents-progress-indicator.mjs.map +0 -1
  139. package/fesm2022/fundamental-ngx-ui5-webcomponents-radio-button.mjs +0 -205
  140. package/fesm2022/fundamental-ngx-ui5-webcomponents-radio-button.mjs.map +0 -1
  141. package/fesm2022/fundamental-ngx-ui5-webcomponents-range-slider.mjs +0 -226
  142. package/fesm2022/fundamental-ngx-ui5-webcomponents-range-slider.mjs.map +0 -1
  143. package/fesm2022/fundamental-ngx-ui5-webcomponents-rating-indicator.mjs +0 -182
  144. package/fesm2022/fundamental-ngx-ui5-webcomponents-rating-indicator.mjs.map +0 -1
  145. package/fesm2022/fundamental-ngx-ui5-webcomponents-responsive-popover.mjs +0 -263
  146. package/fesm2022/fundamental-ngx-ui5-webcomponents-responsive-popover.mjs.map +0 -1
  147. package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button-item.mjs +0 -183
  148. package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button-item.mjs.map +0 -1
  149. package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button.mjs +0 -199
  150. package/fesm2022/fundamental-ngx-ui5-webcomponents-segmented-button.mjs.map +0 -1
  151. package/fesm2022/fundamental-ngx-ui5-webcomponents-select.mjs +0 -317
  152. package/fesm2022/fundamental-ngx-ui5-webcomponents-select.mjs.map +0 -1
  153. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-handle.mjs +0 -52
  154. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-handle.mjs.map +0 -1
  155. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-tooltip.mjs +0 -52
  156. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider-tooltip.mjs.map +0 -1
  157. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider.mjs +0 -220
  158. package/fesm2022/fundamental-ngx-ui5-webcomponents-slider.mjs.map +0 -1
  159. package/fesm2022/fundamental-ngx-ui5-webcomponents-special-calendar-date.mjs +0 -89
  160. package/fesm2022/fundamental-ngx-ui5-webcomponents-special-calendar-date.mjs.map +0 -1
  161. package/fesm2022/fundamental-ngx-ui5-webcomponents-split-button.mjs +0 -187
  162. package/fesm2022/fundamental-ngx-ui5-webcomponents-split-button.mjs.map +0 -1
  163. package/fesm2022/fundamental-ngx-ui5-webcomponents-step-input.mjs +0 -213
  164. package/fesm2022/fundamental-ngx-ui5-webcomponents-step-input.mjs.map +0 -1
  165. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.mjs +0 -134
  166. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.mjs.map +0 -1
  167. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-group.mjs +0 -169
  168. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item-group.mjs.map +0 -1
  169. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item.mjs +0 -114
  170. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-item.mjs.map +0 -1
  171. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-list-item.mjs +0 -289
  172. package/fesm2022/fundamental-ngx-ui5-webcomponents-suggestion-list-item.mjs.map +0 -1
  173. package/fesm2022/fundamental-ngx-ui5-webcomponents-switch.mjs +0 -212
  174. package/fesm2022/fundamental-ngx-ui5-webcomponents-switch.mjs.map +0 -1
  175. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-container.mjs +0 -209
  176. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-container.mjs.map +0 -1
  177. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-separator.mjs +0 -52
  178. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab-separator.mjs.map +0 -1
  179. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab.mjs +0 -183
  180. package/fesm2022/fundamental-ngx-ui5-webcomponents-tab.mjs.map +0 -1
  181. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-cell.mjs +0 -116
  182. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-cell.mjs.map +0 -1
  183. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-group-row.mjs +0 -140
  184. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-group-row.mjs.map +0 -1
  185. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-growing.mjs +0 -130
  186. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-growing.mjs.map +0 -1
  187. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.mjs +0 -76
  188. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.mjs.map +0 -1
  189. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell.mjs +0 -172
  190. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-cell.mjs.map +0 -1
  191. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-row.mjs +0 -110
  192. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-header-row.mjs.map +0 -1
  193. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.mjs +0 -112
  194. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.mjs.map +0 -1
  195. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action.mjs +0 -126
  196. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row-action.mjs.map +0 -1
  197. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row.mjs +0 -140
  198. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-row.mjs.map +0 -1
  199. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-multi.mjs +0 -118
  200. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-multi.mjs.map +0 -1
  201. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-single.mjs +0 -112
  202. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection-single.mjs.map +0 -1
  203. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection.mjs +0 -112
  204. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-selection.mjs.map +0 -1
  205. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-virtualizer.mjs +0 -124
  206. package/fesm2022/fundamental-ngx-ui5-webcomponents-table-virtualizer.mjs.map +0 -1
  207. package/fesm2022/fundamental-ngx-ui5-webcomponents-table.mjs +0 -229
  208. package/fesm2022/fundamental-ngx-ui5-webcomponents-table.mjs.map +0 -1
  209. package/fesm2022/fundamental-ngx-ui5-webcomponents-tag.mjs +0 -173
  210. package/fesm2022/fundamental-ngx-ui5-webcomponents-tag.mjs.map +0 -1
  211. package/fesm2022/fundamental-ngx-ui5-webcomponents-text-area.mjs +0 -281
  212. package/fesm2022/fundamental-ngx-ui5-webcomponents-text-area.mjs.map +0 -1
  213. package/fesm2022/fundamental-ngx-ui5-webcomponents-text.mjs +0 -113
  214. package/fesm2022/fundamental-ngx-ui5-webcomponents-text.mjs.map +0 -1
  215. package/fesm2022/fundamental-ngx-ui5-webcomponents-theming-bridge.mjs +0 -16
  216. package/fesm2022/fundamental-ngx-ui5-webcomponents-theming-bridge.mjs.map +0 -1
  217. package/fesm2022/fundamental-ngx-ui5-webcomponents-theming.mjs +0 -23
  218. package/fesm2022/fundamental-ngx-ui5-webcomponents-theming.mjs.map +0 -1
  219. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker-clock.mjs +0 -52
  220. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker-clock.mjs.map +0 -1
  221. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker.mjs +0 -270
  222. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-picker.mjs.map +0 -1
  223. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-clocks.mjs +0 -93
  224. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-clocks.mjs.map +0 -1
  225. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-inputs.mjs +0 -93
  226. package/fesm2022/fundamental-ngx-ui5-webcomponents-time-selection-inputs.mjs.map +0 -1
  227. package/fesm2022/fundamental-ngx-ui5-webcomponents-title.mjs +0 -128
  228. package/fesm2022/fundamental-ngx-ui5-webcomponents-title.mjs.map +0 -1
  229. package/fesm2022/fundamental-ngx-ui5-webcomponents-toast.mjs +0 -148
  230. package/fesm2022/fundamental-ngx-ui5-webcomponents-toast.mjs.map +0 -1
  231. package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-button.mjs +0 -271
  232. package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-button.mjs.map +0 -1
  233. package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-spin-button.mjs +0 -271
  234. package/fesm2022/fundamental-ngx-ui5-webcomponents-toggle-spin-button.mjs.map +0 -1
  235. package/fesm2022/fundamental-ngx-ui5-webcomponents-token.mjs +0 -114
  236. package/fesm2022/fundamental-ngx-ui5-webcomponents-token.mjs.map +0 -1
  237. package/fesm2022/fundamental-ngx-ui5-webcomponents-tokenizer.mjs +0 -181
  238. package/fesm2022/fundamental-ngx-ui5-webcomponents-tokenizer.mjs.map +0 -1
  239. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-button.mjs +0 -251
  240. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-button.mjs.map +0 -1
  241. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-item.mjs +0 -137
  242. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-item.mjs.map +0 -1
  243. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select-option.mjs +0 -114
  244. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select-option.mjs.map +0 -1
  245. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select.mjs +0 -221
  246. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-select.mjs.map +0 -1
  247. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-separator.mjs +0 -111
  248. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-separator.mjs.map +0 -1
  249. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-spacer.mjs +0 -119
  250. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar-spacer.mjs.map +0 -1
  251. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar.mjs +0 -143
  252. package/fesm2022/fundamental-ngx-ui5-webcomponents-toolbar.mjs.map +0 -1
  253. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item-custom.mjs +0 -279
  254. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item-custom.mjs.map +0 -1
  255. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item.mjs +0 -281
  256. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree-item.mjs.map +0 -1
  257. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree.mjs +0 -233
  258. package/fesm2022/fundamental-ngx-ui5-webcomponents-tree.mjs.map +0 -1
  259. package/fesm2022/fundamental-ngx-ui5-webcomponents-year-picker.mjs +0 -131
  260. package/fesm2022/fundamental-ngx-ui5-webcomponents-year-picker.mjs.map +0 -1
  261. package/fesm2022/fundamental-ngx-ui5-webcomponents-year-range-picker.mjs +0 -131
  262. package/fesm2022/fundamental-ngx-ui5-webcomponents-year-range-picker.mjs.map +0 -1
  263. package/types/fundamental-ngx-ui5-webcomponents-avatar-badge.d.ts +0 -58
  264. package/types/fundamental-ngx-ui5-webcomponents-avatar-group.d.ts +0 -104
  265. package/types/fundamental-ngx-ui5-webcomponents-avatar.d.ts +0 -161
  266. package/types/fundamental-ngx-ui5-webcomponents-bar.d.ts +0 -69
  267. package/types/fundamental-ngx-ui5-webcomponents-breadcrumbs-item.d.ts +0 -78
  268. package/types/fundamental-ngx-ui5-webcomponents-breadcrumbs.d.ts +0 -69
  269. package/types/fundamental-ngx-ui5-webcomponents-busy-indicator.d.ts +0 -63
  270. package/types/fundamental-ngx-ui5-webcomponents-button-badge.d.ts +0 -35
  271. package/types/fundamental-ngx-ui5-webcomponents-button.d.ts +0 -164
  272. package/types/fundamental-ngx-ui5-webcomponents-calendar-date-range.d.ts +0 -30
  273. package/types/fundamental-ngx-ui5-webcomponents-calendar-date.d.ts +0 -25
  274. package/types/fundamental-ngx-ui5-webcomponents-calendar-legend-item.d.ts +0 -28
  275. package/types/fundamental-ngx-ui5-webcomponents-calendar-legend.d.ts +0 -59
  276. package/types/fundamental-ngx-ui5-webcomponents-calendar.d.ts +0 -119
  277. package/types/fundamental-ngx-ui5-webcomponents-card-header.d.ts +0 -69
  278. package/types/fundamental-ngx-ui5-webcomponents-card.d.ts +0 -69
  279. package/types/fundamental-ngx-ui5-webcomponents-carousel.d.ts +0 -121
  280. package/types/fundamental-ngx-ui5-webcomponents-check-box.d.ts +0 -115
  281. package/types/fundamental-ngx-ui5-webcomponents-color-palette-item.d.ts +0 -45
  282. package/types/fundamental-ngx-ui5-webcomponents-color-palette-popover.d.ts +0 -93
  283. package/types/fundamental-ngx-ui5-webcomponents-color-palette.d.ts +0 -57
  284. package/types/fundamental-ngx-ui5-webcomponents-color-picker.d.ts +0 -50
  285. package/types/fundamental-ngx-ui5-webcomponents-combo-box-item-custom.d.ts +0 -61
  286. package/types/fundamental-ngx-ui5-webcomponents-combo-box-item-group.d.ts +0 -82
  287. package/types/fundamental-ngx-ui5-webcomponents-combo-box-item.d.ts +0 -58
  288. package/types/fundamental-ngx-ui5-webcomponents-combo-box.d.ts +0 -161
  289. package/types/fundamental-ngx-ui5-webcomponents-date-picker.d.ts +0 -189
  290. package/types/fundamental-ngx-ui5-webcomponents-date-range-picker.d.ts +0 -218
  291. package/types/fundamental-ngx-ui5-webcomponents-date-time-input.d.ts +0 -189
  292. package/types/fundamental-ngx-ui5-webcomponents-date-time-picker.d.ts +0 -189
  293. package/types/fundamental-ngx-ui5-webcomponents-day-picker.d.ts +0 -59
  294. package/types/fundamental-ngx-ui5-webcomponents-dialog.d.ts +0 -157
  295. package/types/fundamental-ngx-ui5-webcomponents-drop-indicator.d.ts +0 -36
  296. package/types/fundamental-ngx-ui5-webcomponents-dynamic-date-range.d.ts +0 -40
  297. package/types/fundamental-ngx-ui5-webcomponents-expandable-text.d.ts +0 -36
  298. package/types/fundamental-ngx-ui5-webcomponents-file-uploader.d.ts +0 -143
  299. package/types/fundamental-ngx-ui5-webcomponents-form-group.d.ts +0 -73
  300. package/types/fundamental-ngx-ui5-webcomponents-form-item.d.ts +0 -54
  301. package/types/fundamental-ngx-ui5-webcomponents-form.d.ts +0 -122
  302. package/types/fundamental-ngx-ui5-webcomponents-icon.d.ts +0 -112
  303. package/types/fundamental-ngx-ui5-webcomponents-input-icon.d.ts +0 -39
  304. package/types/fundamental-ngx-ui5-webcomponents-input.d.ts +0 -189
  305. package/types/fundamental-ngx-ui5-webcomponents-label.d.ts +0 -71
  306. package/types/fundamental-ngx-ui5-webcomponents-link.d.ts +0 -157
  307. package/types/fundamental-ngx-ui5-webcomponents-list-item-custom.d.ts +0 -125
  308. package/types/fundamental-ngx-ui5-webcomponents-list-item-group-header.d.ts +0 -73
  309. package/types/fundamental-ngx-ui5-webcomponents-list-item-group.d.ts +0 -82
  310. package/types/fundamental-ngx-ui5-webcomponents-list-item-standard.d.ts +0 -180
  311. package/types/fundamental-ngx-ui5-webcomponents-list.d.ts +0 -204
  312. package/types/fundamental-ngx-ui5-webcomponents-menu-item-group.d.ts +0 -48
  313. package/types/fundamental-ngx-ui5-webcomponents-menu-item.d.ts +0 -209
  314. package/types/fundamental-ngx-ui5-webcomponents-menu-separator.d.ts +0 -20
  315. package/types/fundamental-ngx-ui5-webcomponents-menu.d.ts +0 -101
  316. package/types/fundamental-ngx-ui5-webcomponents-message-strip.d.ts +0 -79
  317. package/types/fundamental-ngx-ui5-webcomponents-month-picker.d.ts +0 -59
  318. package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-custom.d.ts +0 -61
  319. package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box-item-group.d.ts +0 -82
  320. package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box-item.d.ts +0 -48
  321. package/types/fundamental-ngx-ui5-webcomponents-multi-combo-box.d.ts +0 -177
  322. package/types/fundamental-ngx-ui5-webcomponents-multi-input.d.ts +0 -206
  323. package/types/fundamental-ngx-ui5-webcomponents-number-input.d.ts +0 -110
  324. package/types/fundamental-ngx-ui5-webcomponents-option-custom.d.ts +0 -69
  325. package/types/fundamental-ngx-ui5-webcomponents-option-group.d.ts +0 -49
  326. package/types/fundamental-ngx-ui5-webcomponents-option.d.ts +0 -78
  327. package/types/fundamental-ngx-ui5-webcomponents-panel.d.ts +0 -94
  328. package/types/fundamental-ngx-ui5-webcomponents-popover.d.ts +0 -147
  329. package/types/fundamental-ngx-ui5-webcomponents-progress-indicator.d.ts +0 -48
  330. package/types/fundamental-ngx-ui5-webcomponents-radio-button.d.ts +0 -95
  331. package/types/fundamental-ngx-ui5-webcomponents-range-slider.d.ts +0 -112
  332. package/types/fundamental-ngx-ui5-webcomponents-rating-indicator.d.ts +0 -88
  333. package/types/fundamental-ngx-ui5-webcomponents-responsive-popover.d.ts +0 -147
  334. package/types/fundamental-ngx-ui5-webcomponents-segmented-button-item.d.ts +0 -93
  335. package/types/fundamental-ngx-ui5-webcomponents-segmented-button.d.ts +0 -88
  336. package/types/fundamental-ngx-ui5-webcomponents-select.d.ts +0 -163
  337. package/types/fundamental-ngx-ui5-webcomponents-slider-handle.d.ts +0 -20
  338. package/types/fundamental-ngx-ui5-webcomponents-slider-tooltip.d.ts +0 -20
  339. package/types/fundamental-ngx-ui5-webcomponents-slider.d.ts +0 -108
  340. package/types/fundamental-ngx-ui5-webcomponents-special-calendar-date.d.ts +0 -29
  341. package/types/fundamental-ngx-ui5-webcomponents-split-button.d.ts +0 -101
  342. package/types/fundamental-ngx-ui5-webcomponents-step-input.d.ts +0 -112
  343. package/types/fundamental-ngx-ui5-webcomponents-suggestion-item-custom.d.ts +0 -56
  344. package/types/fundamental-ngx-ui5-webcomponents-suggestion-item-group.d.ts +0 -82
  345. package/types/fundamental-ngx-ui5-webcomponents-suggestion-item.d.ts +0 -36
  346. package/types/fundamental-ngx-ui5-webcomponents-suggestion-list-item.d.ts +0 -175
  347. package/types/fundamental-ngx-ui5-webcomponents-switch.d.ts +0 -100
  348. package/types/fundamental-ngx-ui5-webcomponents-tab-container.d.ts +0 -115
  349. package/types/fundamental-ngx-ui5-webcomponents-tab-separator.d.ts +0 -20
  350. package/types/fundamental-ngx-ui5-webcomponents-tab.d.ts +0 -92
  351. package/types/fundamental-ngx-ui5-webcomponents-table-cell.d.ts +0 -55
  352. package/types/fundamental-ngx-ui5-webcomponents-table-group-row.d.ts +0 -75
  353. package/types/fundamental-ngx-ui5-webcomponents-table-growing.d.ts +0 -50
  354. package/types/fundamental-ngx-ui5-webcomponents-table-header-cell-action-a-i.d.ts +0 -26
  355. package/types/fundamental-ngx-ui5-webcomponents-table-header-cell.d.ts +0 -101
  356. package/types/fundamental-ngx-ui5-webcomponents-table-header-row.d.ts +0 -51
  357. package/types/fundamental-ngx-ui5-webcomponents-table-row-action-navigation.d.ts +0 -36
  358. package/types/fundamental-ngx-ui5-webcomponents-table-row-action.d.ts +0 -47
  359. package/types/fundamental-ngx-ui5-webcomponents-table-row.d.ts +0 -75
  360. package/types/fundamental-ngx-ui5-webcomponents-table-selection-multi.d.ts +0 -38
  361. package/types/fundamental-ngx-ui5-webcomponents-table-selection-single.d.ts +0 -34
  362. package/types/fundamental-ngx-ui5-webcomponents-table-selection.d.ts +0 -34
  363. package/types/fundamental-ngx-ui5-webcomponents-table-virtualizer.d.ts +0 -44
  364. package/types/fundamental-ngx-ui5-webcomponents-table.d.ts +0 -124
  365. package/types/fundamental-ngx-ui5-webcomponents-tag.d.ts +0 -83
  366. package/types/fundamental-ngx-ui5-webcomponents-text-area.d.ts +0 -157
  367. package/types/fundamental-ngx-ui5-webcomponents-text.d.ts +0 -51
  368. package/types/fundamental-ngx-ui5-webcomponents-theming-bridge.d.ts +0 -6
  369. package/types/fundamental-ngx-ui5-webcomponents-theming.d.ts +0 -11
  370. package/types/fundamental-ngx-ui5-webcomponents-time-picker-clock.d.ts +0 -20
  371. package/types/fundamental-ngx-ui5-webcomponents-time-picker.d.ts +0 -145
  372. package/types/fundamental-ngx-ui5-webcomponents-time-selection-clocks.d.ts +0 -33
  373. package/types/fundamental-ngx-ui5-webcomponents-time-selection-inputs.d.ts +0 -33
  374. package/types/fundamental-ngx-ui5-webcomponents-title.d.ts +0 -64
  375. package/types/fundamental-ngx-ui5-webcomponents-toast.d.ts +0 -67
  376. package/types/fundamental-ngx-ui5-webcomponents-toggle-button.d.ts +0 -168
  377. package/types/fundamental-ngx-ui5-webcomponents-toggle-spin-button.d.ts +0 -168
  378. package/types/fundamental-ngx-ui5-webcomponents-token.d.ts +0 -53
  379. package/types/fundamental-ngx-ui5-webcomponents-tokenizer.d.ts +0 -94
  380. package/types/fundamental-ngx-ui5-webcomponents-toolbar-button.d.ts +0 -150
  381. package/types/fundamental-ngx-ui5-webcomponents-toolbar-item.d.ts +0 -74
  382. package/types/fundamental-ngx-ui5-webcomponents-toolbar-select-option.d.ts +0 -53
  383. package/types/fundamental-ngx-ui5-webcomponents-toolbar-select.d.ts +0 -127
  384. package/types/fundamental-ngx-ui5-webcomponents-toolbar-separator.d.ts +0 -50
  385. package/types/fundamental-ngx-ui5-webcomponents-toolbar-spacer.d.ts +0 -56
  386. package/types/fundamental-ngx-ui5-webcomponents-toolbar.d.ts +0 -75
  387. package/types/fundamental-ngx-ui5-webcomponents-tree-item-custom.d.ts +0 -171
  388. package/types/fundamental-ngx-ui5-webcomponents-tree-item.d.ts +0 -174
  389. package/types/fundamental-ngx-ui5-webcomponents-tree.d.ts +0 -130
  390. package/types/fundamental-ngx-ui5-webcomponents-year-picker.d.ts +0 -59
  391. package/types/fundamental-ngx-ui5-webcomponents-year-range-picker.d.ts +0 -59
@@ -1,124 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, inject, ElementRef, Injector, DestroyRef, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import '@ui5/webcomponents/dist/ColorPaletteItem.js';
4
- import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
5
-
6
- class ColorPaletteItem {
7
- constructor() {
8
- /**
9
- * Defines if the component is selected.
10
-
11
- **Note:** Only one item must be selected per <code>ui5-color-palette</code>.
12
- If more than one item is defined as selected, the last one would be considered as the selected one.
13
- */
14
- this.selected = input(false, { ...(ngDevMode ? { debugName: "selected" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
15
- /**
16
- * Defines the tooltip of the component. When not set, the color value is used as the tooltip.
17
- */
18
- this.tooltip = input(/* @ts-ignore */
19
- ...(ngDevMode ? [undefined, { debugName: "tooltip" }] : /* istanbul ignore next */ []));
20
- /**
21
- * Defines the colour of the component.
22
-
23
- **Note:** The value should be a valid CSS color.
24
- */
25
- this.value = input("", /* @ts-ignore */
26
- ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ [])); // className is now passed
27
- /**
28
- * Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.
29
-
30
- **Note:** The event will not be fired if the `disabled` property is set to `true`.
31
- */
32
- this.ui5Click = output();
33
- this.elementRef = inject(ElementRef);
34
- this.injector = inject(Injector);
35
- /**
36
- * Content density observer is injected to activate automatic CSS class and
37
- * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
38
- * @private
39
- */
40
- this._contentDensityObserver = inject(ContentDensityObserver);
41
- this._destroyRef = inject(DestroyRef);
42
- }
43
- get element() {
44
- return this.elementRef.nativeElement;
45
- }
46
- ngAfterViewInit() {
47
- const wcElement = this.element;
48
- const inputsToSync = [
49
- 'selected',
50
- 'tooltip',
51
- 'value',
52
- ];
53
- // Synchronize inputs (properties)
54
- for (const inputName of inputsToSync) {
55
- // Find the corresponding camelCase signal property on the Angular component
56
- const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
57
- // Use the Injector to run the effect in the correct context
58
- if (this[signalName] && typeof this[signalName] === 'function') {
59
- runInInjectionContext(this.injector, () => {
60
- effect(() => {
61
- // Read the signal value
62
- const value = this[signalName]();
63
- if (wcElement) {
64
- // Skip writes when the signal is undefined and the property is already truthy
65
- // This prevents clobbering imperatively-set values (e.g., from RouterLink)
66
- if (value === undefined && wcElement[inputName]) {
67
- return;
68
- }
69
- // Write the value to the Web Component's property
70
- wcElement[inputName] = value;
71
- }
72
- });
73
- });
74
- }
75
- }
76
- const outputsToSync = [
77
- 'ui5Click',
78
- ];
79
- // Synchronize outputs (events)
80
- const _listeners = [];
81
- for (const outputName of outputsToSync) {
82
- // Map Angular output name to UI5 web component event name
83
- const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
84
- // Ensure the output property exists and has an emit function before adding listener
85
- if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
86
- // Cast the listener to the correct type to satisfy TypeScript
87
- const listener = (e) => {
88
- this[outputName].emit(e);
89
- };
90
- wcElement.addEventListener(eventName, listener);
91
- _listeners.push(() => wcElement.removeEventListener(eventName, listener));
92
- }
93
- }
94
- this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));
95
- }
96
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPaletteItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
97
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: ColorPaletteItem, isStandalone: true, selector: "ui5-color-palette-item, [ui5-color-palette-item]", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Click: "ui5Click" }, providers: [
98
- contentDensityObserverProviders({
99
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
100
- })
101
- ], exportAs: ["ui5ColorPaletteItem"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
102
- }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPaletteItem, decorators: [{
104
- type: Component,
105
- args: [{
106
- standalone: true,
107
- selector: 'ui5-color-palette-item, [ui5-color-palette-item]',
108
- template: '<ng-content></ng-content>',
109
- exportAs: 'ui5ColorPaletteItem',
110
- providers: [
111
- contentDensityObserverProviders({
112
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
113
- })
114
- ],
115
- changeDetection: ChangeDetectionStrategy.OnPush,
116
- }]
117
- }], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], ui5Click: [{ type: i0.Output, args: ["ui5Click"] }] } });
118
-
119
- /**
120
- * Generated bundle index. Do not edit.
121
- */
122
-
123
- export { ColorPaletteItem };
124
- //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-color-palette-item.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fundamental-ngx-ui5-webcomponents-color-palette-item.mjs","sources":["../../../../libs/ui5-webcomponents/color-palette-item/index.ts","../../../../libs/ui5-webcomponents/color-palette-item/fundamental-ngx-ui5-webcomponents-color-palette-item.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal,\n DestroyRef\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/ColorPaletteItem.js';\nimport { default as _ColorPaletteItem } from '@ui5/webcomponents/dist/ColorPaletteItem.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\n\n\n\n\n@Component({\n standalone: true,\n selector: 'ui5-color-palette-item, [ui5-color-palette-item]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5ColorPaletteItem',\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n })\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColorPaletteItem implements AfterViewInit {\n\n /**\n * Defines if the component is selected.\n\n**Note:** Only one item must be selected per <code>ui5-color-palette</code>.\nIf more than one item is defined as selected, the last one would be considered as the selected one.\n */\n selected = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the tooltip of the component. When not set, the color value is used as the tooltip.\n */\n tooltip = input<typeof _ColorPaletteItem.prototype.tooltip | undefined>();\n\n /**\n * Defines the colour of the component.\n\n**Note:** The value should be a valid CSS color.\n */\n value = input<typeof _ColorPaletteItem.prototype.value | undefined>(\"\"); // className is now passed\n\n\n\n /**\n * Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event will not be fired if the `disabled` property is set to `true`.\n */\n ui5Click = output<UI5CustomEvent<_ColorPaletteItem, 'click'>>();\n\n\n public elementRef: ElementRef<_ColorPaletteItem> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n private readonly _destroyRef = inject(DestroyRef);\n\n get element(): _ColorPaletteItem {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'selected',\n 'tooltip',\n 'value',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, (): void => {\n effect((): void => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Skip writes when the signal is undefined and the property is already truthy\n // This prevents clobbering imperatively-set values (e.g., from RouterLink)\n if (value === undefined && wcElement[inputName]) {\n return;\n }\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5Click',\n ];\n \n // Synchronize outputs (events)\n const _listeners: Array<() => void> = [];\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n const listener = (e: Event): void => {\n\n this[outputName].emit(e as CustomEvent<any>);\n };\n wcElement.addEventListener(eventName, listener);\n _listeners.push(() => wcElement.removeEventListener(eventName, listener));\n }\n }\n this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));\n \n\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAyCa,gBAAgB,CAAA;AAZ7B,IAAA,WAAA,GAAA;AAcE;;;;;AAKG;QACH,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAExD;;AAEG;AACH,QAAA,IAAA,CAAA,OAAO,GAAG,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BAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI;yBAC9E;AACF,qBAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;ACxCD;;AAEG;;;;"}
@@ -1,184 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, booleanAttribute, output, inject, ElementRef, Injector, DestroyRef, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import '@ui5/webcomponents/dist/ColorPalettePopover.js';
4
- import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
5
-
6
- class ColorPalettePopover {
7
- constructor() {
8
- /**
9
- * Defines the accessible name of the component.
10
- */
11
- this.accessibleName = input(/* @ts-ignore */
12
- ...(ngDevMode ? [undefined, { debugName: "accessibleName" }] : /* istanbul ignore next */ []));
13
- /**
14
- * Receives id(or many ids) of the elements that label the component.
15
- */
16
- this.accessibleNameRef = input(/* @ts-ignore */
17
- ...(ngDevMode ? [undefined, { debugName: "accessibleNameRef" }] : /* istanbul ignore next */ []));
18
- /**
19
- * Defines the default color of the component.
20
-
21
- **Note:** The default color should be a part of the ColorPalette colors`
22
- */
23
- this.defaultColor = input(/* @ts-ignore */
24
- ...(ngDevMode ? [undefined, { debugName: "defaultColor" }] : /* istanbul ignore next */ []));
25
- /**
26
- * Defines the open | closed state of the popover.
27
- */
28
- this.open = input(false, { ...(ngDevMode ? { debugName: "open" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
29
- /**
30
- * Defines the ID or DOM Reference of the element that the popover is shown at.
31
- When using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.
32
- You can only set the `opener` attribute to a DOM Reference when using JavaScript.
33
- */
34
- this.opener = input(/* @ts-ignore */
35
- ...(ngDevMode ? [undefined, { debugName: "opener" }] : /* istanbul ignore next */ []));
36
- /**
37
- * Determines on which side the component is placed at.
38
- */
39
- this.placement = input("Bottom", /* @ts-ignore */
40
- ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
41
- /**
42
- * Defines whether the user can choose the default color from a button.
43
- */
44
- this.showDefaultColor = input(false, { ...(ngDevMode ? { debugName: "showDefaultColor" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
45
- /**
46
- * Defines whether the user can choose a custom color from a component.
47
- */
48
- this.showMoreColors = input(false, { ...(ngDevMode ? { debugName: "showMoreColors" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
49
- /**
50
- * Defines whether the user can see the last used colors in the bottom of the component
51
- */
52
- this.showRecentColors = input(false, { ...(ngDevMode ? { debugName: "showRecentColors" } : /* istanbul ignore next */ {}), transform: booleanAttribute }); // className is now passed
53
- /**
54
- * Fired when the `ui5-color-palette-popover` is closed due to user interaction.
55
- */
56
- this.ui5Close = output();
57
- /**
58
- * Fired when the user selects a color.
59
- */
60
- this.ui5ItemClick = output();
61
- /**
62
- * Available slots for content projection in this component.
63
- *
64
- * Slots allow you to insert custom content into predefined areas of the web component.
65
- * Use the `slot` attribute on child elements to target specific slots.
66
- *
67
- * - **(default)**: Defines the content of the component.
68
- *
69
- * @example
70
- * ```html
71
- * <ui5-color-palette-popover>
72
- * <div slot="header">Custom header content</div>
73
- * <p>Default slot content</p>
74
- * </ui5-color-palette-popover>
75
- * ```
76
- *
77
- * @readonly
78
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
79
- */
80
- this.slots = [
81
- {
82
- "name": "default",
83
- "description": "Defines the content of the component."
84
- }
85
- ];
86
- this.elementRef = inject(ElementRef);
87
- this.injector = inject(Injector);
88
- /**
89
- * Content density observer is injected to activate automatic CSS class and
90
- * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
91
- * @private
92
- */
93
- this._contentDensityObserver = inject(ContentDensityObserver);
94
- this._destroyRef = inject(DestroyRef);
95
- }
96
- get element() {
97
- return this.elementRef.nativeElement;
98
- }
99
- ngAfterViewInit() {
100
- const wcElement = this.element;
101
- const inputsToSync = [
102
- 'accessibleName',
103
- 'accessibleNameRef',
104
- 'defaultColor',
105
- 'open',
106
- 'opener',
107
- 'placement',
108
- 'showDefaultColor',
109
- 'showMoreColors',
110
- 'showRecentColors',
111
- ];
112
- // Synchronize inputs (properties)
113
- for (const inputName of inputsToSync) {
114
- // Find the corresponding camelCase signal property on the Angular component
115
- const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
116
- // Use the Injector to run the effect in the correct context
117
- if (this[signalName] && typeof this[signalName] === 'function') {
118
- runInInjectionContext(this.injector, () => {
119
- effect(() => {
120
- // Read the signal value
121
- const value = this[signalName]();
122
- if (wcElement) {
123
- // Skip writes when the signal is undefined and the property is already truthy
124
- // This prevents clobbering imperatively-set values (e.g., from RouterLink)
125
- if (value === undefined && wcElement[inputName]) {
126
- return;
127
- }
128
- // Write the value to the Web Component's property
129
- wcElement[inputName] = value;
130
- }
131
- });
132
- });
133
- }
134
- }
135
- const outputsToSync = [
136
- 'ui5Close',
137
- 'ui5ItemClick',
138
- ];
139
- // Synchronize outputs (events)
140
- const _listeners = [];
141
- for (const outputName of outputsToSync) {
142
- // Map Angular output name to UI5 web component event name
143
- const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
144
- // Ensure the output property exists and has an emit function before adding listener
145
- if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
146
- // Cast the listener to the correct type to satisfy TypeScript
147
- const listener = (e) => {
148
- this[outputName].emit(e);
149
- };
150
- wcElement.addEventListener(eventName, listener);
151
- _listeners.push(() => wcElement.removeEventListener(eventName, listener));
152
- }
153
- }
154
- this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));
155
- }
156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPalettePopover, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
157
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: ColorPalettePopover, isStandalone: true, selector: "ui5-color-palette-popover, [ui5-color-palette-popover]", inputs: { accessibleName: { classPropertyName: "accessibleName", publicName: "accessibleName", isSignal: true, isRequired: false, transformFunction: null }, accessibleNameRef: { classPropertyName: "accessibleNameRef", publicName: "accessibleNameRef", isSignal: true, isRequired: false, transformFunction: null }, defaultColor: { classPropertyName: "defaultColor", publicName: "defaultColor", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, opener: { classPropertyName: "opener", publicName: "opener", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, showDefaultColor: { classPropertyName: "showDefaultColor", publicName: "showDefaultColor", isSignal: true, isRequired: false, transformFunction: null }, showMoreColors: { classPropertyName: "showMoreColors", publicName: "showMoreColors", isSignal: true, isRequired: false, transformFunction: null }, showRecentColors: { classPropertyName: "showRecentColors", publicName: "showRecentColors", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5Close: "ui5Close", ui5ItemClick: "ui5ItemClick" }, providers: [
158
- contentDensityObserverProviders({
159
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
160
- })
161
- ], exportAs: ["ui5ColorPalettePopover"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
162
- }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPalettePopover, decorators: [{
164
- type: Component,
165
- args: [{
166
- standalone: true,
167
- selector: 'ui5-color-palette-popover, [ui5-color-palette-popover]',
168
- template: '<ng-content></ng-content>',
169
- exportAs: 'ui5ColorPalettePopover',
170
- providers: [
171
- contentDensityObserverProviders({
172
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
173
- })
174
- ],
175
- changeDetection: ChangeDetectionStrategy.OnPush,
176
- }]
177
- }], propDecorators: { accessibleName: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleName", required: false }] }], accessibleNameRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleNameRef", required: false }] }], defaultColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultColor", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], opener: [{ type: i0.Input, args: [{ isSignal: true, alias: "opener", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], showDefaultColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDefaultColor", required: false }] }], showMoreColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMoreColors", required: false }] }], showRecentColors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecentColors", required: false }] }], ui5Close: [{ type: i0.Output, args: ["ui5Close"] }], ui5ItemClick: [{ type: i0.Output, args: ["ui5ItemClick"] }] } });
178
-
179
- /**
180
- * Generated bundle index. Do not edit.
181
- */
182
-
183
- export { ColorPalettePopover };
184
- //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fundamental-ngx-ui5-webcomponents-color-palette-popover.mjs","sources":["../../../../libs/ui5-webcomponents/color-palette-popover/index.ts","../../../../libs/ui5-webcomponents/color-palette-popover/fundamental-ngx-ui5-webcomponents-color-palette-popover.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal,\n DestroyRef\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/ColorPalettePopover.js';\nimport { default as _ColorPalettePopover } from '@ui5/webcomponents/dist/ColorPalettePopover.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\n\n\nimport { default as PopoverPlacement } from '@ui5/webcomponents/dist/types/PopoverPlacement.js';\n\n@Component({\n standalone: true,\n selector: 'ui5-color-palette-popover, [ui5-color-palette-popover]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5ColorPalettePopover',\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n })\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColorPalettePopover implements AfterViewInit {\n\n /**\n * Defines the accessible name of the component.\n */\n accessibleName = input<typeof _ColorPalettePopover.prototype.accessibleName | undefined>();\n\n /**\n * Receives id(or many ids) of the elements that label the component.\n */\n accessibleNameRef = input<typeof _ColorPalettePopover.prototype.accessibleNameRef | undefined>();\n\n /**\n * Defines the default color of the component.\n\n**Note:** The default color should be a part of the ColorPalette colors`\n */\n defaultColor = input<typeof _ColorPalettePopover.prototype.defaultColor | undefined>();\n\n /**\n * Defines the open | closed state of the popover.\n */\n open = input(false, { transform: booleanAttribute });\n\n /**\n * Defines the ID or DOM Reference of the element that the popover is shown at.\nWhen using this attribute in a declarative way, you must only use the `id` (as a string) of the element at which you want to show the popover.\nYou can only set the `opener` attribute to a DOM Reference when using JavaScript.\n */\n opener = input<typeof _ColorPalettePopover.prototype.opener | undefined>();\n\n /**\n * Determines on which side the component is placed at.\n */\n placement = input<typeof _ColorPalettePopover.prototype.placement | undefined>(\"Bottom\");\n\n /**\n * Defines whether the user can choose the default color from a button.\n */\n showDefaultColor = input(false, { transform: booleanAttribute });\n\n /**\n * Defines whether the user can choose a custom color from a component.\n */\n showMoreColors = input(false, { transform: booleanAttribute });\n\n /**\n * Defines whether the user can see the last used colors in the bottom of the component\n */\n showRecentColors = input(false, { transform: booleanAttribute }); // className is now passed\n\n\n\n /**\n * Fired when the `ui5-color-palette-popover` is closed due to user interaction.\n */\n ui5Close = output<UI5CustomEvent<_ColorPalettePopover, 'close'>>();\n\n /**\n * Fired when the user selects a color.\n */\n ui5ItemClick = output<UI5CustomEvent<_ColorPalettePopover, 'item-click'>>();\n\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **(default)**: Defines the content of the component.\n *\n * @example\n * ```html\n * <ui5-color-palette-popover>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-color-palette-popover>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n readonly slots = [\n {\n \"name\": \"default\",\n \"description\": \"Defines the content of the component.\"\n }\n ];\n\n\n public elementRef: ElementRef<_ColorPalettePopover> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n private readonly _destroyRef = inject(DestroyRef);\n\n get element(): _ColorPalettePopover {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'accessibleName',\n 'accessibleNameRef',\n 'defaultColor',\n 'open',\n 'opener',\n 'placement',\n 'showDefaultColor',\n 'showMoreColors',\n 'showRecentColors',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, (): void => {\n effect((): void => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Skip writes when the signal is undefined and the property is already truthy\n // This prevents clobbering imperatively-set values (e.g., from RouterLink)\n if (value === undefined && wcElement[inputName]) {\n return;\n }\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5Close',\n 'ui5ItemClick',\n ];\n \n // Synchronize outputs (events)\n const _listeners: Array<() => void> = [];\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n const listener = (e: Event): void => {\n\n this[outputName].emit(e as CustomEvent<any>);\n };\n wcElement.addEventListener(eventName, listener);\n _listeners.push(() => wcElement.removeEventListener(eventName, listener));\n }\n }\n this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));\n \n\n }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAyCa,mBAAmB,CAAA;AAZhC,IAAA,WAAA,GAAA;AAcE;;AAEG;AACH,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK;sGAAoE;AAE1F;;AAEG;AACH,QAAA,IAAA,CAAA,iBAAiB,GAAG,KAAK;yGAAuE;AAEhG;;;;AAIG;AACH,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK;oGAAkE;AAEtF;;AAEG;QACH,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,KAAK,4EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEpD;;;;AAIG;AACH,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK;8FAA4D;AAE1E;;AAEG;QACH,IAAA,CAAA,SAAS,GAAG,KAAK,CAA8D,QAAQ;sFAAC;AAExF;;AAEG;QACH,IAAA,CAAA,gBAAgB,GAAG,KAAK,CAAC,KAAK,wFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAEhE;;AAEG;QACH,IAAA,CAAA,cAAc,GAAG,KAAK,CAAC,KAAK,sFAAI,SAAS,EAAE,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AAC,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI;yBAC9E;AACF,qBAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;ACxCD;;AAEG;;;;"}
@@ -1,137 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { input, output, inject, ElementRef, Injector, DestroyRef, runInInjectionContext, effect, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import '@ui5/webcomponents/dist/ColorPalette.js';
4
- import { ContentDensityObserver, contentDensityObserverProviders, ContentDensityMode } from '@fundamental-ngx/core/content-density';
5
-
6
- class ColorPalette {
7
- constructor() {
8
- /**
9
- * Defines the accessible name of the component.
10
- */
11
- this.accessibleName = input(/* @ts-ignore */
12
- ...(ngDevMode ? [undefined, { debugName: "accessibleName" }] : /* istanbul ignore next */ []));
13
- /**
14
- * Receives id(or many ids) of the elements that label the component.
15
- */
16
- this.accessibleNameRef = input(/* @ts-ignore */
17
- ...(ngDevMode ? [undefined, { debugName: "accessibleNameRef" }] : /* istanbul ignore next */ [])); // className is now passed
18
- /**
19
- * Fired when the user selects a color.
20
- */
21
- this.ui5ItemClick = output();
22
- /**
23
- * Available slots for content projection in this component.
24
- *
25
- * Slots allow you to insert custom content into predefined areas of the web component.
26
- * Use the `slot` attribute on child elements to target specific slots.
27
- *
28
- * - **(default)**: Defines the `ui5-color-palette-item` elements.
29
- *
30
- * @example
31
- * ```html
32
- * <ui5-color-palette>
33
- * <div slot="header">Custom header content</div>
34
- * <p>Default slot content</p>
35
- * </ui5-color-palette>
36
- * ```
37
- *
38
- * @readonly
39
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}
40
- */
41
- this.slots = [
42
- {
43
- "name": "default",
44
- "description": "Defines the `ui5-color-palette-item` elements."
45
- }
46
- ];
47
- this.elementRef = inject(ElementRef);
48
- this.injector = inject(Injector);
49
- /**
50
- * Content density observer is injected to activate automatic CSS class and
51
- * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.
52
- * @private
53
- */
54
- this._contentDensityObserver = inject(ContentDensityObserver);
55
- this._destroyRef = inject(DestroyRef);
56
- }
57
- get element() {
58
- return this.elementRef.nativeElement;
59
- }
60
- ngAfterViewInit() {
61
- const wcElement = this.element;
62
- const inputsToSync = [
63
- 'accessibleName',
64
- 'accessibleNameRef',
65
- ];
66
- // Synchronize inputs (properties)
67
- for (const inputName of inputsToSync) {
68
- // Find the corresponding camelCase signal property on the Angular component
69
- const signalName = inputName.replace(/-./g, (x) => x[1].toUpperCase());
70
- // Use the Injector to run the effect in the correct context
71
- if (this[signalName] && typeof this[signalName] === 'function') {
72
- runInInjectionContext(this.injector, () => {
73
- effect(() => {
74
- // Read the signal value
75
- const value = this[signalName]();
76
- if (wcElement) {
77
- // Skip writes when the signal is undefined and the property is already truthy
78
- // This prevents clobbering imperatively-set values (e.g., from RouterLink)
79
- if (value === undefined && wcElement[inputName]) {
80
- return;
81
- }
82
- // Write the value to the Web Component's property
83
- wcElement[inputName] = value;
84
- }
85
- });
86
- });
87
- }
88
- }
89
- const outputsToSync = [
90
- 'ui5ItemClick',
91
- ];
92
- // Synchronize outputs (events)
93
- const _listeners = [];
94
- for (const outputName of outputsToSync) {
95
- // Map Angular output name to UI5 web component event name
96
- const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);
97
- // Ensure the output property exists and has an emit function before adding listener
98
- if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {
99
- // Cast the listener to the correct type to satisfy TypeScript
100
- const listener = (e) => {
101
- this[outputName].emit(e);
102
- };
103
- wcElement.addEventListener(eventName, listener);
104
- _listeners.push(() => wcElement.removeEventListener(eventName, listener));
105
- }
106
- }
107
- this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));
108
- }
109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPalette, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
110
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: ColorPalette, isStandalone: true, selector: "ui5-color-palette, [ui5-color-palette]", inputs: { accessibleName: { classPropertyName: "accessibleName", publicName: "accessibleName", isSignal: true, isRequired: false, transformFunction: null }, accessibleNameRef: { classPropertyName: "accessibleNameRef", publicName: "accessibleNameRef", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ui5ItemClick: "ui5ItemClick" }, providers: [
111
- contentDensityObserverProviders({
112
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
113
- })
114
- ], exportAs: ["ui5ColorPalette"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
115
- }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ColorPalette, decorators: [{
117
- type: Component,
118
- args: [{
119
- standalone: true,
120
- selector: 'ui5-color-palette, [ui5-color-palette]',
121
- template: '<ng-content></ng-content>',
122
- exportAs: 'ui5ColorPalette',
123
- providers: [
124
- contentDensityObserverProviders({
125
- supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]
126
- })
127
- ],
128
- changeDetection: ChangeDetectionStrategy.OnPush,
129
- }]
130
- }], propDecorators: { accessibleName: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleName", required: false }] }], accessibleNameRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "accessibleNameRef", required: false }] }], ui5ItemClick: [{ type: i0.Output, args: ["ui5ItemClick"] }] } });
131
-
132
- /**
133
- * Generated bundle index. Do not edit.
134
- */
135
-
136
- export { ColorPalette };
137
- //# sourceMappingURL=fundamental-ngx-ui5-webcomponents-color-palette.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fundamental-ngx-ui5-webcomponents-color-palette.mjs","sources":["../../../../libs/ui5-webcomponents/color-palette/index.ts","../../../../libs/ui5-webcomponents/color-palette/fundamental-ngx-ui5-webcomponents-color-palette.ts"],"sourcesContent":["\nimport {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n input,\n output,\n AfterViewInit,\n effect,\n runInInjectionContext,\n inject,\n Injector,\n booleanAttribute,\n computed,\n signal,\n DestroyRef\n} from '@angular/core';\nimport '@ui5/webcomponents/dist/ColorPalette.js';\nimport { default as _ColorPalette } from '@ui5/webcomponents/dist/ColorPalette.js';\nimport { UI5CustomEvent } from '@ui5/webcomponents-base';\nimport {\n ContentDensityObserver,\n contentDensityObserverProviders,\n ContentDensityMode\n} from '@fundamental-ngx/core/content-density';\n\n\n\n\n@Component({\n standalone: true,\n selector: 'ui5-color-palette, [ui5-color-palette]',\n template: '<ng-content></ng-content>',\n exportAs: 'ui5ColorPalette',\n providers: [\n contentDensityObserverProviders({\n supportedContentDensity: [ContentDensityMode.COMPACT, ContentDensityMode.COZY]\n })\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ColorPalette implements AfterViewInit {\n\n /**\n * Defines the accessible name of the component.\n */\n accessibleName = input<typeof _ColorPalette.prototype.accessibleName | undefined>();\n\n /**\n * Receives id(or many ids) of the elements that label the component.\n */\n accessibleNameRef = input<typeof _ColorPalette.prototype.accessibleNameRef | undefined>(); // className is now passed\n\n\n\n /**\n * Fired when the user selects a color.\n */\n ui5ItemClick = output<UI5CustomEvent<_ColorPalette, 'item-click'>>();\n\n /**\n * Available slots for content projection in this component.\n *\n * Slots allow you to insert custom content into predefined areas of the web component.\n * Use the `slot` attribute on child elements to target specific slots.\n *\n * - **(default)**: Defines the `ui5-color-palette-item` elements.\n *\n * @example\n * ```html\n * <ui5-color-palette>\n * <div slot=\"header\">Custom header content</div>\n * <p>Default slot content</p>\n * </ui5-color-palette>\n * ```\n *\n * @readonly\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots | MDN Web Components Slots}\n */\n readonly slots = [\n {\n \"name\": \"default\",\n \"description\": \"Defines the `ui5-color-palette-item` elements.\"\n }\n ];\n\n\n public elementRef: ElementRef<_ColorPalette> = inject(ElementRef);\n public injector = inject(Injector);\n\n /**\n * Content density observer is injected to activate automatic CSS class and\n * UI5 attribute application. The observer self-initializes, no explicit subscribe() needed.\n * @private\n */\n private readonly _contentDensityObserver = inject(ContentDensityObserver);\n private readonly _destroyRef = inject(DestroyRef);\n\n get element(): _ColorPalette {\n return this.elementRef.nativeElement;\n }\n\n ngAfterViewInit(): void {\n const wcElement = this.element;\n \n const inputsToSync = [\n 'accessibleName',\n 'accessibleNameRef',\n ];\n \n // Synchronize inputs (properties)\n for (const inputName of inputsToSync) {\n // Find the corresponding camelCase signal property on the Angular component\n const signalName = inputName.replace(/-./g, (x: string) => x[1].toUpperCase());\n\n // Use the Injector to run the effect in the correct context\n if (this[signalName] && typeof this[signalName] === 'function') {\n runInInjectionContext(this.injector, (): void => {\n effect((): void => {\n // Read the signal value\n const value = this[signalName]();\n if (wcElement) {\n // Skip writes when the signal is undefined and the property is already truthy\n // This prevents clobbering imperatively-set values (e.g., from RouterLink)\n if (value === undefined && wcElement[inputName]) {\n return;\n }\n // Write the value to the Web Component's property\n wcElement[inputName] = value;\n }\n });\n });\n }\n }\n \n \n const outputsToSync = [\n 'ui5ItemClick',\n ];\n \n // Synchronize outputs (events)\n const _listeners: Array<() => void> = [];\n for (const outputName of outputsToSync) {\n // Map Angular output name to UI5 web component event name\n const eventName = outputName.replace('ui5', '').replace(/([A-Z])/g, '-$1').toLowerCase().substring(1);\n // Ensure the output property exists and has an emit function before adding listener\n if (this[outputName] && typeof this[outputName].emit === 'function' && wcElement.addEventListener) {\n // Cast the listener to the correct type to satisfy TypeScript\n const listener = (e: Event): void => {\n\n this[outputName].emit(e as CustomEvent<any>);\n };\n wcElement.addEventListener(eventName, listener);\n _listeners.push(() => wcElement.removeEventListener(eventName, listener));\n }\n }\n this._destroyRef.onDestroy(() => _listeners.forEach((fn) => fn()));\n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