@qualcomm-ui/angular 1.19.0 → 2.0.0

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 (248) hide show
  1. package/fesm2022/qualcomm-ui-angular-accordion.mjs +45 -47
  2. package/fesm2022/qualcomm-ui-angular-accordion.mjs.map +1 -1
  3. package/fesm2022/qualcomm-ui-angular-action-group.mjs +3 -3
  4. package/fesm2022/qualcomm-ui-angular-action-group.mjs.map +1 -1
  5. package/fesm2022/qualcomm-ui-angular-alert-banner.mjs +38 -40
  6. package/fesm2022/qualcomm-ui-angular-alert-banner.mjs.map +1 -1
  7. package/fesm2022/qualcomm-ui-angular-avatar.mjs +24 -24
  8. package/fesm2022/qualcomm-ui-angular-avatar.mjs.map +1 -1
  9. package/fesm2022/qualcomm-ui-angular-badge.mjs +35 -47
  10. package/fesm2022/qualcomm-ui-angular-badge.mjs.map +1 -1
  11. package/fesm2022/qualcomm-ui-angular-breadcrumbs.mjs +29 -31
  12. package/fesm2022/qualcomm-ui-angular-breadcrumbs.mjs.map +1 -1
  13. package/fesm2022/qualcomm-ui-angular-button.mjs +48 -54
  14. package/fesm2022/qualcomm-ui-angular-button.mjs.map +1 -1
  15. package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs +10 -10
  16. package/fesm2022/qualcomm-ui-angular-checkbox-group.mjs.map +1 -1
  17. package/fesm2022/qualcomm-ui-angular-checkbox.mjs +36 -36
  18. package/fesm2022/qualcomm-ui-angular-checkbox.mjs.map +1 -1
  19. package/fesm2022/qualcomm-ui-angular-checkmark.mjs +5 -7
  20. package/fesm2022/qualcomm-ui-angular-checkmark.mjs.map +1 -1
  21. package/fesm2022/qualcomm-ui-angular-collapsible.mjs +13 -13
  22. package/fesm2022/qualcomm-ui-angular-collapsible.mjs.map +1 -1
  23. package/fesm2022/qualcomm-ui-angular-combobox.mjs +97 -107
  24. package/fesm2022/qualcomm-ui-angular-combobox.mjs.map +1 -1
  25. package/fesm2022/qualcomm-ui-angular-dialog.mjs +57 -61
  26. package/fesm2022/qualcomm-ui-angular-dialog.mjs.map +1 -1
  27. package/fesm2022/qualcomm-ui-angular-divider.mjs +6 -6
  28. package/fesm2022/qualcomm-ui-angular-divider.mjs.map +1 -1
  29. package/fesm2022/qualcomm-ui-angular-drawer.mjs +53 -53
  30. package/fesm2022/qualcomm-ui-angular-drawer.mjs.map +1 -1
  31. package/fesm2022/qualcomm-ui-angular-field-group.mjs +28 -32
  32. package/fesm2022/qualcomm-ui-angular-field-group.mjs.map +1 -1
  33. package/fesm2022/qualcomm-ui-angular-header-bar.mjs +52 -54
  34. package/fesm2022/qualcomm-ui-angular-header-bar.mjs.map +1 -1
  35. package/fesm2022/qualcomm-ui-angular-icon.mjs +19 -21
  36. package/fesm2022/qualcomm-ui-angular-icon.mjs.map +1 -1
  37. package/fesm2022/qualcomm-ui-angular-inline-icon-button.mjs +7 -7
  38. package/fesm2022/qualcomm-ui-angular-inline-icon-button.mjs.map +1 -1
  39. package/fesm2022/qualcomm-ui-angular-inline-notification.mjs +35 -37
  40. package/fesm2022/qualcomm-ui-angular-inline-notification.mjs.map +1 -1
  41. package/fesm2022/qualcomm-ui-angular-input.mjs +18 -18
  42. package/fesm2022/qualcomm-ui-angular-input.mjs.map +1 -1
  43. package/fesm2022/qualcomm-ui-angular-kbd.mjs +3 -3
  44. package/fesm2022/qualcomm-ui-angular-kbd.mjs.map +1 -1
  45. package/fesm2022/qualcomm-ui-angular-link.mjs +10 -12
  46. package/fesm2022/qualcomm-ui-angular-link.mjs.map +1 -1
  47. package/fesm2022/qualcomm-ui-angular-menu.mjs +68 -68
  48. package/fesm2022/qualcomm-ui-angular-menu.mjs.map +1 -1
  49. package/fesm2022/qualcomm-ui-angular-number-input.mjs +54 -54
  50. package/fesm2022/qualcomm-ui-angular-number-input.mjs.map +1 -1
  51. package/fesm2022/qualcomm-ui-angular-pagination.mjs +42 -42
  52. package/fesm2022/qualcomm-ui-angular-pagination.mjs.map +1 -1
  53. package/fesm2022/qualcomm-ui-angular-password-input.mjs +48 -50
  54. package/fesm2022/qualcomm-ui-angular-password-input.mjs.map +1 -1
  55. package/fesm2022/qualcomm-ui-angular-popover.mjs +48 -52
  56. package/fesm2022/qualcomm-ui-angular-popover.mjs.map +1 -1
  57. package/fesm2022/qualcomm-ui-angular-progress-ring.mjs +43 -43
  58. package/fesm2022/qualcomm-ui-angular-progress-ring.mjs.map +1 -1
  59. package/fesm2022/qualcomm-ui-angular-progress.mjs +42 -42
  60. package/fesm2022/qualcomm-ui-angular-progress.mjs.map +1 -1
  61. package/fesm2022/qualcomm-ui-angular-radio.mjs +47 -49
  62. package/fesm2022/qualcomm-ui-angular-radio.mjs.map +1 -1
  63. package/fesm2022/qualcomm-ui-angular-segmented-control.mjs +28 -28
  64. package/fesm2022/qualcomm-ui-angular-segmented-control.mjs.map +1 -1
  65. package/fesm2022/qualcomm-ui-angular-select.mjs +76 -82
  66. package/fesm2022/qualcomm-ui-angular-select.mjs.map +1 -1
  67. package/fesm2022/qualcomm-ui-angular-side-nav.mjs +103 -105
  68. package/fesm2022/qualcomm-ui-angular-side-nav.mjs.map +1 -1
  69. package/fesm2022/qualcomm-ui-angular-slider.mjs +85 -99
  70. package/fesm2022/qualcomm-ui-angular-slider.mjs.map +1 -1
  71. package/fesm2022/qualcomm-ui-angular-switch-group.mjs +10 -10
  72. package/fesm2022/qualcomm-ui-angular-switch-group.mjs.map +1 -1
  73. package/fesm2022/qualcomm-ui-angular-switch.mjs +36 -36
  74. package/fesm2022/qualcomm-ui-angular-switch.mjs.map +1 -1
  75. package/fesm2022/qualcomm-ui-angular-table.mjs +136 -170
  76. package/fesm2022/qualcomm-ui-angular-table.mjs.map +1 -1
  77. package/fesm2022/qualcomm-ui-angular-tabs.mjs +37 -39
  78. package/fesm2022/qualcomm-ui-angular-tabs.mjs.map +1 -1
  79. package/fesm2022/qualcomm-ui-angular-tag.mjs +14 -16
  80. package/fesm2022/qualcomm-ui-angular-tag.mjs.map +1 -1
  81. package/fesm2022/qualcomm-ui-angular-text-area.mjs +41 -47
  82. package/fesm2022/qualcomm-ui-angular-text-area.mjs.map +1 -1
  83. package/fesm2022/qualcomm-ui-angular-text-input.mjs +42 -44
  84. package/fesm2022/qualcomm-ui-angular-text-input.mjs.map +1 -1
  85. package/fesm2022/qualcomm-ui-angular-theme.mjs +5 -5
  86. package/fesm2022/qualcomm-ui-angular-theme.mjs.map +1 -1
  87. package/fesm2022/qualcomm-ui-angular-toast.mjs +43 -43
  88. package/fesm2022/qualcomm-ui-angular-toast.mjs.map +1 -1
  89. package/fesm2022/qualcomm-ui-angular-tooltip.mjs +33 -37
  90. package/fesm2022/qualcomm-ui-angular-tooltip.mjs.map +1 -1
  91. package/fesm2022/qualcomm-ui-angular-transitions.mjs +4 -4
  92. package/fesm2022/qualcomm-ui-angular-transitions.mjs.map +1 -1
  93. package/fesm2022/qualcomm-ui-angular-tree.mjs +79 -79
  94. package/fesm2022/qualcomm-ui-angular-tree.mjs.map +1 -1
  95. package/package.json +64 -64
  96. package/{accordion/index.d.ts → types/qualcomm-ui-angular-accordion.d.ts} +1 -1
  97. package/types/qualcomm-ui-angular-accordion.d.ts.map +1 -0
  98. package/{action-group/index.d.ts → types/qualcomm-ui-angular-action-group.d.ts} +1 -1
  99. package/types/qualcomm-ui-angular-action-group.d.ts.map +1 -0
  100. package/{alert-banner/index.d.ts → types/qualcomm-ui-angular-alert-banner.d.ts} +1 -1
  101. package/types/qualcomm-ui-angular-alert-banner.d.ts.map +1 -0
  102. package/{avatar/index.d.ts → types/qualcomm-ui-angular-avatar.d.ts} +1 -1
  103. package/types/qualcomm-ui-angular-avatar.d.ts.map +1 -0
  104. package/{badge/index.d.ts → types/qualcomm-ui-angular-badge.d.ts} +1 -1
  105. package/types/qualcomm-ui-angular-badge.d.ts.map +1 -0
  106. package/{breadcrumbs/index.d.ts → types/qualcomm-ui-angular-breadcrumbs.d.ts} +1 -1
  107. package/types/qualcomm-ui-angular-breadcrumbs.d.ts.map +1 -0
  108. package/{button/index.d.ts → types/qualcomm-ui-angular-button.d.ts} +1 -1
  109. package/types/qualcomm-ui-angular-button.d.ts.map +1 -0
  110. package/{checkbox-group/index.d.ts → types/qualcomm-ui-angular-checkbox-group.d.ts} +1 -1
  111. package/types/qualcomm-ui-angular-checkbox-group.d.ts.map +1 -0
  112. package/{checkbox/index.d.ts → types/qualcomm-ui-angular-checkbox.d.ts} +1 -1
  113. package/types/qualcomm-ui-angular-checkbox.d.ts.map +1 -0
  114. package/{checkmark/index.d.ts → types/qualcomm-ui-angular-checkmark.d.ts} +1 -1
  115. package/types/qualcomm-ui-angular-checkmark.d.ts.map +1 -0
  116. package/{collapsible/index.d.ts → types/qualcomm-ui-angular-collapsible.d.ts} +1 -1
  117. package/types/qualcomm-ui-angular-collapsible.d.ts.map +1 -0
  118. package/{combobox/index.d.ts → types/qualcomm-ui-angular-combobox.d.ts} +1 -1
  119. package/types/qualcomm-ui-angular-combobox.d.ts.map +1 -0
  120. package/{dialog/index.d.ts → types/qualcomm-ui-angular-dialog.d.ts} +1 -1
  121. package/types/qualcomm-ui-angular-dialog.d.ts.map +1 -0
  122. package/{divider/index.d.ts → types/qualcomm-ui-angular-divider.d.ts} +1 -1
  123. package/types/qualcomm-ui-angular-divider.d.ts.map +1 -0
  124. package/{drawer/index.d.ts → types/qualcomm-ui-angular-drawer.d.ts} +1 -1
  125. package/types/qualcomm-ui-angular-drawer.d.ts.map +1 -0
  126. package/{field-group/index.d.ts → types/qualcomm-ui-angular-field-group.d.ts} +1 -1
  127. package/types/qualcomm-ui-angular-field-group.d.ts.map +1 -0
  128. package/types/qualcomm-ui-angular-footer.d.ts +3 -0
  129. package/types/qualcomm-ui-angular-footer.d.ts.map +1 -0
  130. package/{header-bar/index.d.ts → types/qualcomm-ui-angular-header-bar.d.ts} +1 -1
  131. package/types/qualcomm-ui-angular-header-bar.d.ts.map +1 -0
  132. package/types/qualcomm-ui-angular-header.d.ts +3 -0
  133. package/types/qualcomm-ui-angular-header.d.ts.map +1 -0
  134. package/{icon/index.d.ts → types/qualcomm-ui-angular-icon.d.ts} +2 -2
  135. package/types/qualcomm-ui-angular-icon.d.ts.map +1 -0
  136. package/{inline-icon-button/index.d.ts → types/qualcomm-ui-angular-inline-icon-button.d.ts} +1 -1
  137. package/types/qualcomm-ui-angular-inline-icon-button.d.ts.map +1 -0
  138. package/{inline-notification/index.d.ts → types/qualcomm-ui-angular-inline-notification.d.ts} +1 -1
  139. package/types/qualcomm-ui-angular-inline-notification.d.ts.map +1 -0
  140. package/{input/index.d.ts → types/qualcomm-ui-angular-input.d.ts} +2 -2
  141. package/types/qualcomm-ui-angular-input.d.ts.map +1 -0
  142. package/{kbd/index.d.ts → types/qualcomm-ui-angular-kbd.d.ts} +1 -1
  143. package/types/qualcomm-ui-angular-kbd.d.ts.map +1 -0
  144. package/{link/index.d.ts → types/qualcomm-ui-angular-link.d.ts} +1 -1
  145. package/types/qualcomm-ui-angular-link.d.ts.map +1 -0
  146. package/{menu/index.d.ts → types/qualcomm-ui-angular-menu.d.ts} +1 -1
  147. package/types/qualcomm-ui-angular-menu.d.ts.map +1 -0
  148. package/{number-input/index.d.ts → types/qualcomm-ui-angular-number-input.d.ts} +1 -1
  149. package/types/qualcomm-ui-angular-number-input.d.ts.map +1 -0
  150. package/{pagination/index.d.ts → types/qualcomm-ui-angular-pagination.d.ts} +1 -1
  151. package/types/qualcomm-ui-angular-pagination.d.ts.map +1 -0
  152. package/{password-input/index.d.ts → types/qualcomm-ui-angular-password-input.d.ts} +1 -1
  153. package/types/qualcomm-ui-angular-password-input.d.ts.map +1 -0
  154. package/{popover/index.d.ts → types/qualcomm-ui-angular-popover.d.ts} +1 -1
  155. package/types/qualcomm-ui-angular-popover.d.ts.map +1 -0
  156. package/{progress-ring/index.d.ts → types/qualcomm-ui-angular-progress-ring.d.ts} +1 -1
  157. package/types/qualcomm-ui-angular-progress-ring.d.ts.map +1 -0
  158. package/{progress/index.d.ts → types/qualcomm-ui-angular-progress.d.ts} +1 -1
  159. package/types/qualcomm-ui-angular-progress.d.ts.map +1 -0
  160. package/{radio/index.d.ts → types/qualcomm-ui-angular-radio.d.ts} +1 -1
  161. package/types/qualcomm-ui-angular-radio.d.ts.map +1 -0
  162. package/{segmented-control/index.d.ts → types/qualcomm-ui-angular-segmented-control.d.ts} +1 -1
  163. package/types/qualcomm-ui-angular-segmented-control.d.ts.map +1 -0
  164. package/{select/index.d.ts → types/qualcomm-ui-angular-select.d.ts} +1 -1
  165. package/types/qualcomm-ui-angular-select.d.ts.map +1 -0
  166. package/{side-nav/index.d.ts → types/qualcomm-ui-angular-side-nav.d.ts} +1 -1
  167. package/types/qualcomm-ui-angular-side-nav.d.ts.map +1 -0
  168. package/{slider/index.d.ts → types/qualcomm-ui-angular-slider.d.ts} +1 -1
  169. package/types/qualcomm-ui-angular-slider.d.ts.map +1 -0
  170. package/{switch-group/index.d.ts → types/qualcomm-ui-angular-switch-group.d.ts} +1 -1
  171. package/types/qualcomm-ui-angular-switch-group.d.ts.map +1 -0
  172. package/{switch/index.d.ts → types/qualcomm-ui-angular-switch.d.ts} +1 -1
  173. package/types/qualcomm-ui-angular-switch.d.ts.map +1 -0
  174. package/{table/index.d.ts → types/qualcomm-ui-angular-table.d.ts} +1 -1
  175. package/types/qualcomm-ui-angular-table.d.ts.map +1 -0
  176. package/{tabs/index.d.ts → types/qualcomm-ui-angular-tabs.d.ts} +1 -1
  177. package/types/qualcomm-ui-angular-tabs.d.ts.map +1 -0
  178. package/{tag/index.d.ts → types/qualcomm-ui-angular-tag.d.ts} +1 -1
  179. package/types/qualcomm-ui-angular-tag.d.ts.map +1 -0
  180. package/{text-area/index.d.ts → types/qualcomm-ui-angular-text-area.d.ts} +1 -1
  181. package/types/qualcomm-ui-angular-text-area.d.ts.map +1 -0
  182. package/{text-input/index.d.ts → types/qualcomm-ui-angular-text-input.d.ts} +1 -1
  183. package/types/qualcomm-ui-angular-text-input.d.ts.map +1 -0
  184. package/{theme/index.d.ts → types/qualcomm-ui-angular-theme.d.ts} +1 -1
  185. package/types/qualcomm-ui-angular-theme.d.ts.map +1 -0
  186. package/{toast/index.d.ts → types/qualcomm-ui-angular-toast.d.ts} +2 -2
  187. package/types/qualcomm-ui-angular-toast.d.ts.map +1 -0
  188. package/{tooltip/index.d.ts → types/qualcomm-ui-angular-tooltip.d.ts} +1 -1
  189. package/types/qualcomm-ui-angular-tooltip.d.ts.map +1 -0
  190. package/{transitions/index.d.ts → types/qualcomm-ui-angular-transitions.d.ts} +1 -1
  191. package/types/qualcomm-ui-angular-transitions.d.ts.map +1 -0
  192. package/{tree/index.d.ts → types/qualcomm-ui-angular-tree.d.ts} +1 -1
  193. package/types/qualcomm-ui-angular-tree.d.ts.map +1 -0
  194. package/types/qualcomm-ui-angular.d.ts +3 -0
  195. package/types/qualcomm-ui-angular.d.ts.map +1 -0
  196. package/accordion/index.d.ts.map +0 -1
  197. package/action-group/index.d.ts.map +0 -1
  198. package/alert-banner/index.d.ts.map +0 -1
  199. package/avatar/index.d.ts.map +0 -1
  200. package/badge/index.d.ts.map +0 -1
  201. package/breadcrumbs/index.d.ts.map +0 -1
  202. package/button/index.d.ts.map +0 -1
  203. package/checkbox/index.d.ts.map +0 -1
  204. package/checkbox-group/index.d.ts.map +0 -1
  205. package/checkmark/index.d.ts.map +0 -1
  206. package/collapsible/index.d.ts.map +0 -1
  207. package/combobox/index.d.ts.map +0 -1
  208. package/dialog/index.d.ts.map +0 -1
  209. package/divider/index.d.ts.map +0 -1
  210. package/drawer/index.d.ts.map +0 -1
  211. package/field-group/index.d.ts.map +0 -1
  212. package/footer/index.d.ts +0 -3
  213. package/footer/index.d.ts.map +0 -1
  214. package/header/index.d.ts +0 -3
  215. package/header/index.d.ts.map +0 -1
  216. package/header-bar/index.d.ts.map +0 -1
  217. package/icon/index.d.ts.map +0 -1
  218. package/index.d.ts +0 -3
  219. package/index.d.ts.map +0 -1
  220. package/inline-icon-button/index.d.ts.map +0 -1
  221. package/inline-notification/index.d.ts.map +0 -1
  222. package/input/index.d.ts.map +0 -1
  223. package/kbd/index.d.ts.map +0 -1
  224. package/link/index.d.ts.map +0 -1
  225. package/menu/index.d.ts.map +0 -1
  226. package/number-input/index.d.ts.map +0 -1
  227. package/pagination/index.d.ts.map +0 -1
  228. package/password-input/index.d.ts.map +0 -1
  229. package/popover/index.d.ts.map +0 -1
  230. package/progress/index.d.ts.map +0 -1
  231. package/progress-ring/index.d.ts.map +0 -1
  232. package/radio/index.d.ts.map +0 -1
  233. package/segmented-control/index.d.ts.map +0 -1
  234. package/select/index.d.ts.map +0 -1
  235. package/side-nav/index.d.ts.map +0 -1
  236. package/slider/index.d.ts.map +0 -1
  237. package/switch/index.d.ts.map +0 -1
  238. package/switch-group/index.d.ts.map +0 -1
  239. package/table/index.d.ts.map +0 -1
  240. package/tabs/index.d.ts.map +0 -1
  241. package/tag/index.d.ts.map +0 -1
  242. package/text-area/index.d.ts.map +0 -1
  243. package/text-input/index.d.ts.map +0 -1
  244. package/theme/index.d.ts.map +0 -1
  245. package/toast/index.d.ts.map +0 -1
  246. package/tooltip/index.d.ts.map +0 -1
  247. package/transitions/index.d.ts.map +0 -1
  248. package/tree/index.d.ts.map +0 -1
@@ -27,7 +27,7 @@ function useLucideIcon(options = {}) {
27
27
  const xmlns = accessSignal(iconProps.xmlns) || "http://www.w3.org/2000/svg";
28
28
  const resolvedIcon = computed(() => {
29
29
  return getIcon(accessSignal(options.icon));
30
- }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : []));
30
+ }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : /* istanbul ignore next */ []));
31
31
  function isSvgHostElement() {
32
32
  return elementRef.nativeElement.tagName === "svg";
33
33
  }
@@ -39,7 +39,7 @@ function useLucideIcon(options = {}) {
39
39
  width: accessSignal(iconProps?.width),
40
40
  xmlns,
41
41
  }, normalizeProps);
42
- }, ...(ngDevMode ? [{ debugName: "getIconBindings" }] : []));
42
+ }, ...(ngDevMode ? [{ debugName: "getIconBindings" }] : /* istanbul ignore next */ []));
43
43
  function getSvgElement() {
44
44
  if (isSvgHostElement()) {
45
45
  return elementRef.nativeElement;
@@ -112,7 +112,7 @@ class EndIconDirective {
112
112
  /**
113
113
  * Lucide Icon or string.
114
114
  */
115
- icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
115
+ icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
116
116
  context = inject(END_ICON_CONTEXT_TOKEN, {
117
117
  optional: true,
118
118
  });
@@ -124,10 +124,10 @@ class EndIconDirective {
124
124
  ngOnInit() {
125
125
  this.trackBindings();
126
126
  }
127
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EndIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
128
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: EndIconDirective, isStandalone: true, selector: "div[q-end-icon],span[q-end-icon],svg[q-end-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
127
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: EndIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
128
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: EndIconDirective, isStandalone: true, selector: "div[q-end-icon],span[q-end-icon],svg[q-end-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
129
129
  }
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EndIconDirective, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: EndIconDirective, decorators: [{
131
131
  type: Directive,
132
132
  args: [{
133
133
  selector: "div[q-end-icon],span[q-end-icon],svg[q-end-icon]",
@@ -140,35 +140,33 @@ class IconDirective {
140
140
  /**
141
141
  * Lucide Icon or string.
142
142
  */
143
- icon = input.required(...(ngDevMode ? [{ debugName: "icon", alias: "qIcon" }] : [{
144
- alias: "qIcon",
145
- }]));
143
+ icon = input.required({ ...(ngDevMode ? { debugName: "icon" } : /* istanbul ignore next */ {}), alias: "qIcon" });
146
144
  /**
147
145
  * @default 'md'
148
146
  */
149
- size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
147
+ size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
150
148
  /**
151
149
  * HTML {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/viewBox viewbox} attribute
152
150
  *
153
151
  * @default '0 0 24 24'
154
152
  */
155
- viewBox = input(...(ngDevMode ? [undefined, { debugName: "viewBox" }] : []));
153
+ viewBox = input(...(ngDevMode ? [undefined, { debugName: "viewBox" }] : /* istanbul ignore next */ []));
156
154
  /**
157
155
  * HTML {@link https://www.w3schools.com/tags/att_html_xmlns.asp xmlns} attribute
158
156
  *
159
157
  * @default 'http://www.w3.org/2000/svg'
160
158
  */
161
- xmlns = input("http://www.w3.org/2000/svg", ...(ngDevMode ? [{ debugName: "xmlns" }] : []));
159
+ xmlns = input("http://www.w3.org/2000/svg", ...(ngDevMode ? [{ debugName: "xmlns" }] : /* istanbul ignore next */ []));
162
160
  /**
163
161
  * Force the height of the icon. This typically isn't required. You should prefer
164
162
  * the {@link size} property for customization instead.
165
163
  */
166
- height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : []));
164
+ height = input(...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
167
165
  /**
168
166
  * Force the width of the icon. This typically isn't required. You should prefer
169
167
  * the {@link size} property for customization instead.
170
168
  */
171
- width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : []));
169
+ width = input(...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
172
170
  elementRef = inject(ElementRef);
173
171
  iconData = useLucideIcon({
174
172
  icon: this.icon,
@@ -185,10 +183,10 @@ class IconDirective {
185
183
  ngOnInit() {
186
184
  this.trackBindings();
187
185
  }
188
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
189
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: IconDirective, isStandalone: true, selector: "svg[qIcon]", inputs: { icon: { classPropertyName: "icon", publicName: "qIcon", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, viewBox: { classPropertyName: "viewBox", publicName: "viewBox", isSignal: true, isRequired: false, transformFunction: null }, xmlns: { classPropertyName: "xmlns", publicName: "xmlns", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.xmlns": "xmlns()" } }, ngImport: i0 });
186
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: IconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
187
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: IconDirective, isStandalone: true, selector: "svg[qIcon]", inputs: { icon: { classPropertyName: "icon", publicName: "qIcon", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, viewBox: { classPropertyName: "viewBox", publicName: "viewBox", isSignal: true, isRequired: false, transformFunction: null }, xmlns: { classPropertyName: "xmlns", publicName: "xmlns", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.xmlns": "xmlns()" } }, ngImport: i0 });
190
188
  }
191
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: IconDirective, decorators: [{
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: IconDirective, decorators: [{
192
190
  type: Directive,
193
191
  args: [{
194
192
  host: {
@@ -212,7 +210,7 @@ class StartIconDirective {
212
210
  /**
213
211
  * Lucide Icon or string.
214
212
  */
215
- icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
213
+ icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
216
214
  context = inject(START_ICON_CONTEXT_TOKEN, {
217
215
  optional: true,
218
216
  });
@@ -224,10 +222,10 @@ class StartIconDirective {
224
222
  ngOnInit() {
225
223
  this.trackBindings();
226
224
  }
227
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StartIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
228
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: StartIconDirective, isStandalone: true, selector: "div[q-start-icon],span[q-start-icon],svg[q-start-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
225
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: StartIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
226
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: StartIconDirective, isStandalone: true, selector: "div[q-start-icon],span[q-start-icon],svg[q-start-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
229
227
  }
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StartIconDirective, decorators: [{
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: StartIconDirective, decorators: [{
231
229
  type: Directive,
232
230
  args: [{
233
231
  selector: "div[q-start-icon],span[q-start-icon],svg[q-start-icon]",
@@ -1 +1 @@
1
- {"version":3,"file":"qualcomm-ui-angular-icon.mjs","sources":["../../src/icon/icon.tokens.ts","../../src/icon/use-lucide-icon.ts","../../src/icon/end-icon.directive.ts","../../src/icon/icon.directive.ts","../../src/icon/start-icon.directive.ts","../../src/icon/qualcomm-ui-angular-icon.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {InjectionToken, type Signal} from \"@angular/core\"\n\nimport type {Dict} from \"@qualcomm-ui/utils/machine\"\n\nexport interface IconTokenContext {\n getBindings: Signal<Dict>\n}\n\nexport const START_ICON_CONTEXT_TOKEN = new InjectionToken<IconTokenContext>(\n \"START_ICON_TOKEN\",\n)\n\nexport const END_ICON_CONTEXT_TOKEN = new InjectionToken<IconTokenContext>(\n \"END_ICON_TOKEN\",\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n effect,\n ElementRef,\n inject,\n Renderer2,\n type Signal,\n} from \"@angular/core\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n LUCIDE_ICONS,\n type LucideIcon,\n type LucideIconOrString,\n type LucideIconPart,\n type LucideIconProviderValue,\n} from \"@qualcomm-ui/angular-core/lucide\"\nimport {applyBindings, normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {accessSignal, type MaybeSignal} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n getQdsIconBindings,\n type QdsIconBindings,\n type QdsIconSize,\n} from \"@qualcomm-ui/qds-core/icon\"\nimport {pascalCase} from \"@qualcomm-ui/utils/change-case\"\nimport type {Dict} from \"@qualcomm-ui/utils/machine\"\n\nexport interface UseLucideIconOptions<\n ThrowOnUnresolvedStringIcon extends boolean | undefined = false,\n> {\n elementRef?: ElementRef<HTMLElement>\n icon?: MaybeSignal<LucideIconOrString | undefined> | undefined\n iconProps?: {\n height?: MaybeSignal<string | number | undefined>\n size?: MaybeSignal<QdsIconSize | undefined>\n viewBox?: MaybeSignal<string | undefined>\n width?: MaybeSignal<string | number | undefined>\n xmlns?: MaybeSignal<string | undefined>\n }\n icons?: LucideIconProviderValue | null\n /**\n * If true, the QDS data-size attribute will not be applied to the icon. This is\n * useful if you want to use the icon in a context where the size binding is\n * already applied.\n */\n renderer2?: Renderer2\n /**\n * Throws an error if the provided icon is undefined or not found (when passed as\n * a string it is resolved against the nearest provider returned from the\n * provideIcons utility function).\n */\n throwOnUnresolvedStringIcon?: ThrowOnUnresolvedStringIcon\n}\n\nexport interface UseLucideIconReturn<\n ThrowOnUnresolvedStringIcon extends boolean = false,\n> {\n getIconBindings: Signal<QdsIconBindings>\n icon: ThrowOnUnresolvedStringIcon extends true\n ? Signal<LucideIcon>\n : Signal<LucideIcon | undefined>\n icons: LucideIconProviderValue | null\n xmlns: string\n}\n\nexport function useLucideIcon<\n ThrowOnUnresolvedStringIcon extends boolean | undefined = false,\n>(\n options: UseLucideIconOptions<ThrowOnUnresolvedStringIcon> = {},\n): UseLucideIconReturn {\n const elementRef: ElementRef<HTMLElement> =\n options.elementRef || inject(ElementRef)\n const renderer = options.renderer2 || inject(Renderer2)\n const onDestroy = useOnDestroy()\n let createdElements: HTMLElement[] = []\n const iconProps = options.iconProps || {}\n\n const providedIcons =\n options.icons ||\n inject<LucideIconProviderValue | null>(LUCIDE_ICONS, {\n optional: true,\n })\n\n const xmlns = accessSignal(iconProps.xmlns) || \"http://www.w3.org/2000/svg\"\n const resolvedIcon = computed(() => {\n return getIcon(accessSignal(options.icon))\n })\n\n function isSvgHostElement(): boolean {\n return elementRef.nativeElement.tagName === \"svg\"\n }\n\n const getIconBindings = computed(() => {\n return getQdsIconBindings(\n {\n height: accessSignal(iconProps?.height),\n size: accessSignal(iconProps?.size),\n viewBox: accessSignal(iconProps?.viewBox),\n width: accessSignal(iconProps?.width),\n xmlns,\n },\n normalizeProps,\n )\n })\n\n function getSvgElement() {\n if (isSvgHostElement()) {\n return elementRef.nativeElement\n }\n return createIconPart(\n [\"svg\", getIconBindings() as Dict],\n elementRef.nativeElement,\n )\n }\n\n function createIconPart(\n [tag, attrs]: LucideIconPart,\n appendTarget: HTMLElement,\n ): HTMLElement {\n const element: HTMLElement = renderer.createElement(tag, xmlns)\n\n applyBindings(element, attrs, renderer)\n\n renderer.appendChild(appendTarget, element)\n createdElements.push(element)\n return element\n }\n\n function clearIconParts(): void {\n createdElements.forEach((element) => {\n if (element.parentNode) {\n renderer.removeChild(element.parentNode, element)\n }\n })\n createdElements = []\n }\n\n function getIcon(\n iconOrName: LucideIcon | string | undefined,\n ): LucideIcon | undefined {\n if (typeof iconOrName !== \"string\") {\n return iconOrName\n }\n const icons = providedIcons || {}\n const iconName = pascalCase(iconOrName)\n const icon =\n icons[iconName] || icons[`${iconName}Icon`] || icons[iconOrName]\n if (options.throwOnUnresolvedStringIcon && !icon) {\n throw new Error(\n `Expected to find an icon named \"${iconName}\" but none was provided. Refer to the provider documentation at https://angular-next.qui.qualcomm.com/components/icon#provider`,\n )\n }\n return icon\n }\n\n effect(() => {\n clearIconParts()\n const data = resolvedIcon()\n if (!data) {\n clearIconParts()\n return\n }\n const svgElement = getSvgElement()\n if (isSvgHostElement()) {\n applyBindings(svgElement, getIconBindings(), renderer)\n }\n if (data) {\n data.forEach((part) => {\n createIconPart(part, svgElement)\n })\n }\n })\n\n onDestroy(() => clearIconParts())\n\n return {\n getIconBindings,\n icon: resolvedIcon,\n icons: providedIcons,\n xmlns,\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {END_ICON_CONTEXT_TOKEN} from \"./icon.tokens\"\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n/**\n * A utility component that renders a Lucide icon or template content. This is used\n * by components that need a leading icon. If this directive is attached to an svg\n * element, the qds icon bindings will be applied to the svg element. Otherwise, an\n * svg element will be created as a child of the element and the icon bindings will\n * be applied to it instead.\n */\n@Directive({\n selector: \"div[q-end-icon],span[q-end-icon],svg[q-end-icon]\",\n})\nexport class EndIconDirective implements OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input<LucideIconOrString>()\n\n protected readonly context = inject(END_ICON_CONTEXT_TOKEN, {\n optional: true,\n })\n\n protected readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n })\n\n protected readonly trackBindings = useTrackBindings(\n () => this.context?.getBindings?.() ?? {},\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport {type LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n type QdsIconApiProps,\n type QdsIconSize,\n} from \"@qualcomm-ui/qds-core/icon\"\n\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n@Directive({\n host: {\n // even though the machine provides this, we still need it here for some reason.\n \"[attr.xmlns]\": \"xmlns()\",\n },\n selector: \"svg[qIcon]\",\n})\nexport class IconDirective implements SignalifyInput<QdsIconApiProps>, OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input.required<LucideIconOrString>({\n alias: \"qIcon\",\n })\n\n /**\n * @default 'md'\n */\n readonly size = input<QdsIconSize | undefined>()\n\n /**\n * HTML {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/viewBox viewbox} attribute\n *\n * @default '0 0 24 24'\n */\n readonly viewBox = input<string>()\n\n /**\n * HTML {@link https://www.w3schools.com/tags/att_html_xmlns.asp xmlns} attribute\n *\n * @default 'http://www.w3.org/2000/svg'\n */\n readonly xmlns = input<string>(\"http://www.w3.org/2000/svg\")\n\n /**\n * Force the height of the icon. This typically isn't required. You should prefer\n * the {@link size} property for customization instead.\n */\n readonly height = input<string | number | undefined>()\n\n /**\n * Force the width of the icon. This typically isn't required. You should prefer\n * the {@link size} property for customization instead.\n */\n readonly width = input<string | number | undefined>()\n\n readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n iconProps: {\n height: this.height,\n size: this.size,\n viewBox: this.viewBox,\n width: this.width,\n xmlns: this.xmlns,\n },\n throwOnUnresolvedStringIcon: true,\n })\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.iconData.getIconBindings(),\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {START_ICON_CONTEXT_TOKEN} from \"./icon.tokens\"\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n/**\n * A utility component that renders a Lucide icon or template content. This is used\n * by components that need a leading icon. If this directive is attached to an svg\n * element, the qds icon bindings will be applied to the svg element. Otherwise, an\n * svg element will be created as a child of the element and the icon bindings will\n * be applied to it instead.\n */\n@Directive({\n selector: \"div[q-start-icon],span[q-start-icon],svg[q-start-icon]\",\n})\nexport class StartIconDirective implements OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input<LucideIconOrString>()\n\n protected readonly context = inject(START_ICON_CONTEXT_TOKEN, {\n optional: true,\n })\n\n protected readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n })\n\n protected readonly trackBindings = useTrackBindings(\n () => this.context?.getBindings?.() ?? {},\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;MAUa,wBAAwB,GAAG,IAAI,cAAc,CACxD,kBAAkB;MAGP,sBAAsB,GAAG,IAAI,cAAc,CACtD,gBAAgB;;AChBlB;AACA;AAmEM,SAAU,aAAa,CAG3B,OAAA,GAA6D,EAAE,EAAA;IAE/D,MAAM,UAAU,GACd,OAAO,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC;IAC1C,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC;AACvD,IAAA,MAAM,SAAS,GAAG,YAAY,EAAE;IAChC,IAAI,eAAe,GAAkB,EAAE;AACvC,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,EAAE;AAEzC,IAAA,MAAM,aAAa,GACjB,OAAO,CAAC,KAAK;QACb,MAAM,CAAiC,YAAY,EAAE;AACnD,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA,CAAC;IAEJ,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,4BAA4B;AAC3E,IAAA,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAK;QACjC,OAAO,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AA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 {"version":3,"file":"qualcomm-ui-angular-icon.mjs","sources":["../../src/icon/icon.tokens.ts","../../src/icon/use-lucide-icon.ts","../../src/icon/end-icon.directive.ts","../../src/icon/icon.directive.ts","../../src/icon/start-icon.directive.ts","../../src/icon/qualcomm-ui-angular-icon.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {InjectionToken, type Signal} from \"@angular/core\"\n\nimport type {Dict} from \"@qualcomm-ui/utils/machine\"\n\nexport interface IconTokenContext {\n getBindings: Signal<Dict>\n}\n\nexport const START_ICON_CONTEXT_TOKEN = new InjectionToken<IconTokenContext>(\n \"START_ICON_TOKEN\",\n)\n\nexport const END_ICON_CONTEXT_TOKEN = new InjectionToken<IconTokenContext>(\n \"END_ICON_TOKEN\",\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n effect,\n ElementRef,\n inject,\n Renderer2,\n type Signal,\n} from \"@angular/core\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n LUCIDE_ICONS,\n type LucideIcon,\n type LucideIconOrString,\n type LucideIconPart,\n type LucideIconProviderValue,\n} from \"@qualcomm-ui/angular-core/lucide\"\nimport {applyBindings, normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport {accessSignal, type MaybeSignal} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n getQdsIconBindings,\n type QdsIconBindings,\n type QdsIconSize,\n} from \"@qualcomm-ui/qds-core/icon\"\nimport {pascalCase} from \"@qualcomm-ui/utils/change-case\"\nimport type {Dict} from \"@qualcomm-ui/utils/machine\"\n\nexport interface UseLucideIconOptions<\n ThrowOnUnresolvedStringIcon extends boolean | undefined = false,\n> {\n elementRef?: ElementRef<HTMLElement>\n icon?: MaybeSignal<LucideIconOrString | undefined> | undefined\n iconProps?: {\n height?: MaybeSignal<string | number | undefined>\n size?: MaybeSignal<QdsIconSize | undefined>\n viewBox?: MaybeSignal<string | undefined>\n width?: MaybeSignal<string | number | undefined>\n xmlns?: MaybeSignal<string | undefined>\n }\n icons?: LucideIconProviderValue | null\n /**\n * If true, the QDS data-size attribute will not be applied to the icon. This is\n * useful if you want to use the icon in a context where the size binding is\n * already applied.\n */\n renderer2?: Renderer2\n /**\n * Throws an error if the provided icon is undefined or not found (when passed as\n * a string it is resolved against the nearest provider returned from the\n * provideIcons utility function).\n */\n throwOnUnresolvedStringIcon?: ThrowOnUnresolvedStringIcon\n}\n\nexport interface UseLucideIconReturn<\n ThrowOnUnresolvedStringIcon extends boolean = false,\n> {\n getIconBindings: Signal<QdsIconBindings>\n icon: ThrowOnUnresolvedStringIcon extends true\n ? Signal<LucideIcon>\n : Signal<LucideIcon | undefined>\n icons: LucideIconProviderValue | null\n xmlns: string\n}\n\nexport function useLucideIcon<\n ThrowOnUnresolvedStringIcon extends boolean | undefined = false,\n>(\n options: UseLucideIconOptions<ThrowOnUnresolvedStringIcon> = {},\n): UseLucideIconReturn {\n const elementRef: ElementRef<HTMLElement> =\n options.elementRef || inject(ElementRef)\n const renderer = options.renderer2 || inject(Renderer2)\n const onDestroy = useOnDestroy()\n let createdElements: HTMLElement[] = []\n const iconProps = options.iconProps || {}\n\n const providedIcons =\n options.icons ||\n inject<LucideIconProviderValue | null>(LUCIDE_ICONS, {\n optional: true,\n })\n\n const xmlns = accessSignal(iconProps.xmlns) || \"http://www.w3.org/2000/svg\"\n const resolvedIcon = computed(() => {\n return getIcon(accessSignal(options.icon))\n })\n\n function isSvgHostElement(): boolean {\n return elementRef.nativeElement.tagName === \"svg\"\n }\n\n const getIconBindings = computed(() => {\n return getQdsIconBindings(\n {\n height: accessSignal(iconProps?.height),\n size: accessSignal(iconProps?.size),\n viewBox: accessSignal(iconProps?.viewBox),\n width: accessSignal(iconProps?.width),\n xmlns,\n },\n normalizeProps,\n )\n })\n\n function getSvgElement() {\n if (isSvgHostElement()) {\n return elementRef.nativeElement\n }\n return createIconPart(\n [\"svg\", getIconBindings() as Dict],\n elementRef.nativeElement,\n )\n }\n\n function createIconPart(\n [tag, attrs]: LucideIconPart,\n appendTarget: HTMLElement,\n ): HTMLElement {\n const element: HTMLElement = renderer.createElement(tag, xmlns)\n\n applyBindings(element, attrs, renderer)\n\n renderer.appendChild(appendTarget, element)\n createdElements.push(element)\n return element\n }\n\n function clearIconParts(): void {\n createdElements.forEach((element) => {\n if (element.parentNode) {\n renderer.removeChild(element.parentNode, element)\n }\n })\n createdElements = []\n }\n\n function getIcon(\n iconOrName: LucideIcon | string | undefined,\n ): LucideIcon | undefined {\n if (typeof iconOrName !== \"string\") {\n return iconOrName\n }\n const icons = providedIcons || {}\n const iconName = pascalCase(iconOrName)\n const icon =\n icons[iconName] || icons[`${iconName}Icon`] || icons[iconOrName]\n if (options.throwOnUnresolvedStringIcon && !icon) {\n throw new Error(\n `Expected to find an icon named \"${iconName}\" but none was provided. Refer to the provider documentation at https://angular-next.qui.qualcomm.com/components/icon#provider`,\n )\n }\n return icon\n }\n\n effect(() => {\n clearIconParts()\n const data = resolvedIcon()\n if (!data) {\n clearIconParts()\n return\n }\n const svgElement = getSvgElement()\n if (isSvgHostElement()) {\n applyBindings(svgElement, getIconBindings(), renderer)\n }\n if (data) {\n data.forEach((part) => {\n createIconPart(part, svgElement)\n })\n }\n })\n\n onDestroy(() => clearIconParts())\n\n return {\n getIconBindings,\n icon: resolvedIcon,\n icons: providedIcons,\n xmlns,\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {END_ICON_CONTEXT_TOKEN} from \"./icon.tokens\"\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n/**\n * A utility component that renders a Lucide icon or template content. This is used\n * by components that need a leading icon. If this directive is attached to an svg\n * element, the qds icon bindings will be applied to the svg element. Otherwise, an\n * svg element will be created as a child of the element and the icon bindings will\n * be applied to it instead.\n */\n@Directive({\n selector: \"div[q-end-icon],span[q-end-icon],svg[q-end-icon]\",\n})\nexport class EndIconDirective implements OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input<LucideIconOrString>()\n\n protected readonly context = inject(END_ICON_CONTEXT_TOKEN, {\n optional: true,\n })\n\n protected readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n })\n\n protected readonly trackBindings = useTrackBindings(\n () => this.context?.getBindings?.() ?? {},\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport {type LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n type QdsIconApiProps,\n type QdsIconSize,\n} from \"@qualcomm-ui/qds-core/icon\"\n\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n@Directive({\n host: {\n // even though the machine provides this, we still need it here for some reason.\n \"[attr.xmlns]\": \"xmlns()\",\n },\n selector: \"svg[qIcon]\",\n})\nexport class IconDirective implements SignalifyInput<QdsIconApiProps>, OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input.required<LucideIconOrString>({\n alias: \"qIcon\",\n })\n\n /**\n * @default 'md'\n */\n readonly size = input<QdsIconSize | undefined>()\n\n /**\n * HTML {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/viewBox viewbox} attribute\n *\n * @default '0 0 24 24'\n */\n readonly viewBox = input<string>()\n\n /**\n * HTML {@link https://www.w3schools.com/tags/att_html_xmlns.asp xmlns} attribute\n *\n * @default 'http://www.w3.org/2000/svg'\n */\n readonly xmlns = input<string>(\"http://www.w3.org/2000/svg\")\n\n /**\n * Force the height of the icon. This typically isn't required. You should prefer\n * the {@link size} property for customization instead.\n */\n readonly height = input<string | number | undefined>()\n\n /**\n * Force the width of the icon. This typically isn't required. You should prefer\n * the {@link size} property for customization instead.\n */\n readonly width = input<string | number | undefined>()\n\n readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n iconProps: {\n height: this.height,\n size: this.size,\n viewBox: this.viewBox,\n width: this.width,\n xmlns: this.xmlns,\n },\n throwOnUnresolvedStringIcon: true,\n })\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.iconData.getIconBindings(),\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, ElementRef, inject, input, type OnInit} from \"@angular/core\"\n\nimport type {LucideIconOrString} from \"@qualcomm-ui/angular-core/lucide\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {START_ICON_CONTEXT_TOKEN} from \"./icon.tokens\"\nimport {useLucideIcon} from \"./use-lucide-icon\"\n\n/**\n * A utility component that renders a Lucide icon or template content. This is used\n * by components that need a leading icon. If this directive is attached to an svg\n * element, the qds icon bindings will be applied to the svg element. Otherwise, an\n * svg element will be created as a child of the element and the icon bindings will\n * be applied to it instead.\n */\n@Directive({\n selector: \"div[q-start-icon],span[q-start-icon],svg[q-start-icon]\",\n})\nexport class StartIconDirective implements OnInit {\n /**\n * Lucide Icon or string.\n */\n readonly icon = input<LucideIconOrString>()\n\n protected readonly context = inject(START_ICON_CONTEXT_TOKEN, {\n optional: true,\n })\n\n protected readonly elementRef = inject(ElementRef)\n\n protected readonly iconData = useLucideIcon({\n icon: this.icon,\n })\n\n protected readonly trackBindings = useTrackBindings(\n () => this.context?.getBindings?.() ?? {},\n )\n\n ngOnInit(): void {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;MAUa,wBAAwB,GAAG,IAAI,cAAc,CACxD,kBAAkB;MAGP,sBAAsB,GAAG,IAAI,cAAc,CACtD,gBAAgB;;AChBlB;AACA;AAmEM,SAAU,aAAa,CAG3B,OAAA,GAA6D,EAAE,EAAA;IAE/D,MAAM,UAAU,GACd,OAAO,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC;IAC1C,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC;AACvD,IAAA,MAAM,SAAS,GAAG,YAAY,EAAE;IAChC,IAAI,eAAe,GAAkB,EAAE;AACvC,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,EAAE;AAEzC,IAAA,MAAM,aAAa,GACjB,OAAO,CAAC,KAAK;QACb,MAAM,CAAiC,YAAY,EAAE;AACnD,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA,CAAC;IAEJ,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,4BAA4B;AAC3E,IAAA,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAK;QACjC,OAAO,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5C,IAAA,CAAC,mFAAC;AAEF,IAAA,SAAS,gBAAgB,GAAA;AACvB,QAAA,OAAO,UAAU,CAAC,aAAa,CAAC,OAAO,KAAK,KAAK;IACnD;AAEA,IAAA,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAK;AACpC,QAAA,OAAO,kBAAkB,CACvB;AACE,YAAA,MAAM,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC;AACvC,YAAA,IAAI,EAAE,YA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;AAC5D,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC;AAEiB,IAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IAE/B,QAAQ,GAAG,aAAa,CAAC;QAC1C,IAAI,EAAE,IAAI,CAAC,IAAI;AAChB,KAAA,CAAC;AAEiB,IAAA,aAAa,GAAG,gBAAgB,CACjD,MAAM,IAAI,CAAC,OAAO,EAAE,WAAW,IAAI,IAAI,EAAE,CAC1C;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;uGAtBW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wDAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wDAAwD;AACnE,iBAAA;;;ACpBD;;AAEG;;;;"}
@@ -23,19 +23,19 @@ class InlineIconButtonComponent {
23
23
  /**
24
24
  * @default X
25
25
  */
26
- icon = input(X, ...(ngDevMode ? [{ debugName: "icon" }] : []));
26
+ icon = input(X, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
27
27
  /**
28
28
  * The style variant of the button. Governs color.
29
29
  *
30
30
  * @default 'neutral'
31
31
  */
32
- emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
32
+ emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : /* istanbul ignore next */ []));
33
33
  /**
34
34
  * The size of the button and its icon.
35
35
  *
36
36
  * @default 'md'
37
37
  */
38
- size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
38
+ size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : /* istanbul ignore next */ []));
39
39
  /**
40
40
  * The style variant of the button's icon that controls its size
41
41
  *
@@ -44,7 +44,7 @@ class InlineIconButtonComponent {
44
44
  *
45
45
  * @default 'fixed'
46
46
  */
47
- variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
47
+ variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : /* istanbul ignore next */ []));
48
48
  api = useInlineIconButtonApi({
49
49
  emphasis: this.emphasis,
50
50
  size: this.size,
@@ -54,12 +54,12 @@ class InlineIconButtonComponent {
54
54
  ngOnInit() {
55
55
  this.trackBindings();
56
56
  }
57
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.16", type: InlineIconButtonComponent, isStandalone: true, selector: "[q-inline-icon-button]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.QuiPreloadDirective }], ngImport: i0, template: `
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineIconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.2", type: InlineIconButtonComponent, isStandalone: true, selector: "[q-inline-icon-button]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: i1.QuiPreloadDirective }], ngImport: i0, template: `
59
59
  <svg [q-bind]="api().getIconBindings()" [qIcon]="icon()"></svg>
60
60
  `, isInline: true, dependencies: [{ kind: "directive", type: IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
61
61
  }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineIconButtonComponent, decorators: [{
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineIconButtonComponent, decorators: [{
63
63
  type: Component,
64
64
  args: [{
65
65
  hostDirectives: [QuiPreloadDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"qualcomm-ui-angular-inline-icon-button.mjs","sources":["../../src/inline-icon-button/use-inline-icon-button-api.ts","../../src/inline-icon-button/inline-icon-button.component.ts","../../src/inline-icon-button/qualcomm-ui-angular-inline-icon-button.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, isSignal, type Signal} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {MaybeSignalInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsInlineIconButtonApi,\n type QdsInlineIconButtonApi,\n type QdsInlineIconButtonApiProps,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nexport function useInlineIconButtonApi({\n emphasis,\n size,\n variant,\n}: MaybeSignalInput<QdsInlineIconButtonApiProps>): Signal<QdsInlineIconButtonApi> {\n return computed(() =>\n createQdsInlineIconButtonApi(\n {\n emphasis: isSignal(emphasis) ? emphasis() : emphasis,\n size: isSignal(size) ? size() : size,\n variant: isSignal(variant) ? variant() : variant,\n } satisfies Explicit<QdsInlineIconButtonApiProps>,\n normalizeProps,\n ),\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input, type OnInit} from \"@angular/core\"\nimport {X} from \"lucide-angular\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n QBindDirective,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n type QdsInlineIconButtonApiProps,\n type QdsInlineIconButtonEmphasis,\n type QdsInlineIconButtonSize,\n type QdsInlineIconButtonVariant,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\n\nimport {useInlineIconButtonApi} from \"./use-inline-icon-button-api\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n imports: [IconDirective, QBindDirective],\n selector: \"[q-inline-icon-button]\",\n template: `\n <svg [q-bind]=\"api().getIconBindings()\" [qIcon]=\"icon()\"></svg>\n `,\n})\nexport class InlineIconButtonComponent\n implements SignalifyInput<QdsInlineIconButtonApiProps>, OnInit\n{\n /**\n * @default X\n */\n readonly icon = input<LucideIcon>(X)\n\n /**\n * The style variant of the button. Governs color.\n *\n * @default 'neutral'\n */\n readonly emphasis = input<QdsInlineIconButtonEmphasis>()\n\n /**\n * The size of the button and its icon.\n *\n * @default 'md'\n */\n readonly size = input<QdsInlineIconButtonSize>()\n\n /**\n * The style variant of the button's icon that controls its size\n *\n * @option `scale`: The icon size scales with the button's size\n * @option `fixed`: The icon size is constant, regardless of the button's size\n *\n * @default 'fixed'\n */\n readonly variant = input<QdsInlineIconButtonVariant | undefined>()\n\n protected readonly api = useInlineIconButtonApi({\n emphasis: this.emphasis,\n size: this.size,\n variant: this.variant,\n })\n\n readonly trackBindings = useTrackBindings(() => this.api().getRootBindings())\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AAaM,SAAU,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,OAAO,GACuC,EAAA;AAC9C,IAAA,OAAO,QAAQ,CAAC,MACd,4BAA4B,CAC1B;AACE,QAAA,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,EAAE,GAAG,QAAQ;AACpD,QAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,IAAI;AACpC,QAAA,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO;KACD,EACjD,cAAc,CACf,CACF;AACH;;AC7BA;AACA;MA8Ba,yBAAyB,CAAA;AAGpC;;AAEG;AACM,IAAA,IAAI,GAAG,KAAK,CAAa,CAAC,gDAAC;AAEpC;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAA+B;AAExD;;;;AAIG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAA2B;AAEhD;;;;;;;AAOG;IACM,OAAO,GA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AAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJ1B;;GAET,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAJS,aAAa,yHAAE,cAAc,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FAM5B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBARrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,cAAc,EAAE,CAAC,mBAAmB,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;AACxC,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE;;AAET,EAAA,CAAA;AACF,iBAAA;;;AC9BD;;AAEG;;;;"}
1
+ {"version":3,"file":"qualcomm-ui-angular-inline-icon-button.mjs","sources":["../../src/inline-icon-button/use-inline-icon-button-api.ts","../../src/inline-icon-button/inline-icon-button.component.ts","../../src/inline-icon-button/qualcomm-ui-angular-inline-icon-button.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, isSignal, type Signal} from \"@angular/core\"\n\nimport {normalizeProps} from \"@qualcomm-ui/angular-core/machine\"\nimport type {MaybeSignalInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createQdsInlineIconButtonApi,\n type QdsInlineIconButtonApi,\n type QdsInlineIconButtonApiProps,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nexport function useInlineIconButtonApi({\n emphasis,\n size,\n variant,\n}: MaybeSignalInput<QdsInlineIconButtonApiProps>): Signal<QdsInlineIconButtonApi> {\n return computed(() =>\n createQdsInlineIconButtonApi(\n {\n emphasis: isSignal(emphasis) ? emphasis() : emphasis,\n size: isSignal(size) ? size() : size,\n variant: isSignal(variant) ? variant() : variant,\n } satisfies Explicit<QdsInlineIconButtonApiProps>,\n normalizeProps,\n ),\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Component, input, type OnInit} from \"@angular/core\"\nimport {X} from \"lucide-angular\"\n\nimport {IconDirective} from \"@qualcomm-ui/angular/icon\"\nimport {QuiPreloadDirective} from \"@qualcomm-ui/angular/transitions\"\nimport type {LucideIcon} from \"@qualcomm-ui/angular-core/lucide\"\nimport {\n QBindDirective,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n type QdsInlineIconButtonApiProps,\n type QdsInlineIconButtonEmphasis,\n type QdsInlineIconButtonSize,\n type QdsInlineIconButtonVariant,\n} from \"@qualcomm-ui/qds-core/inline-icon-button\"\n\nimport {useInlineIconButtonApi} from \"./use-inline-icon-button-api\"\n\n@Component({\n hostDirectives: [QuiPreloadDirective],\n imports: [IconDirective, QBindDirective],\n selector: \"[q-inline-icon-button]\",\n template: `\n <svg [q-bind]=\"api().getIconBindings()\" [qIcon]=\"icon()\"></svg>\n `,\n})\nexport class InlineIconButtonComponent\n implements SignalifyInput<QdsInlineIconButtonApiProps>, OnInit\n{\n /**\n * @default X\n */\n readonly icon = input<LucideIcon>(X)\n\n /**\n * The style variant of the button. Governs color.\n *\n * @default 'neutral'\n */\n readonly emphasis = input<QdsInlineIconButtonEmphasis>()\n\n /**\n * The size of the button and its icon.\n *\n * @default 'md'\n */\n readonly size = input<QdsInlineIconButtonSize>()\n\n /**\n * The style variant of the button's icon that controls its size\n *\n * @option `scale`: The icon size scales with the button's size\n * @option `fixed`: The icon size is constant, regardless of the button's size\n *\n * @default 'fixed'\n */\n readonly variant = input<QdsInlineIconButtonVariant | undefined>()\n\n protected readonly api = useInlineIconButtonApi({\n emphasis: this.emphasis,\n size: this.size,\n variant: this.variant,\n })\n\n readonly trackBindings = useTrackBindings(() => this.api().getRootBindings())\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AAaM,SAAU,sBAAsB,CAAC,EACrC,QAAQ,EACR,IAAI,EACJ,OAAO,GACuC,EAAA;AAC9C,IAAA,OAAO,QAAQ,CAAC,MACd,4BAA4B,CAC1B;AACE,QAAA,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,EAAE,GAAG,QAAQ;AACpD,QAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,IAAI;AACpC,QAAA,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO;KACD,EACjD,cAAc,CACf,CACF;AACH;;AC7BA;AACA;MA8Ba,yBAAyB,CAAA;AAGpC;;AAEG;AACM,IAAA,IAAI,GAAG,KAAK,CAAa,CAAC,2EAAC;AAEpC;;;;AAIG;IACM,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA+B;AAExD;;;;AAIG;IACM,IAAI,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA2B;AAEhD;;;;;;;AAOG;IACM,OAAO,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAA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EAAA,IAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJ1B;;GAET,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAJS,aAAa,yHAAE,cAAc,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAM5B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBARrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,cAAc,EAAE,CAAC,mBAAmB,CAAC;AACrC,oBAAA,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;AACxC,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,QAAQ,EAAE;;AAET,EAAA,CAAA;AACF,iBAAA;;;AC9BD;;AAEG;;;;"}
@@ -18,10 +18,10 @@ import { createQdsInlineNotificationApi } from '@qualcomm-ui/qds-core/inline-not
18
18
  // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
19
19
  // SPDX-License-Identifier: BSD-3-Clause-Clear
20
20
  class QdsInlineNotificationContextService extends BaseApiContextService {
21
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsInlineNotificationContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
22
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsInlineNotificationContextService });
21
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInlineNotificationContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
22
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInlineNotificationContextService });
23
23
  }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: QdsInlineNotificationContextService, decorators: [{
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: QdsInlineNotificationContextService, decorators: [{
25
25
  type: Injectable
26
26
  }] });
27
27
  const [QDS_INLINE_NOTIFICATION_CONTEXT, useQdsInlineNotificationContext, provideQdsInlineNotificationContext,] = createApiContext("QdsInlineNotificationContext", QdsInlineNotificationContextService);
@@ -34,10 +34,10 @@ class InlineNotificationActionDirective extends CoreInlineNotificationActionDire
34
34
  super();
35
35
  this.trackBindings.extendWith(computed(() => this.qdsContext().getActionBindings()));
36
36
  }
37
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: InlineNotificationActionDirective, isStandalone: false, selector: "[q-inline-notification-action]", usesInheritance: true, ngImport: i0 });
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
38
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: InlineNotificationActionDirective, isStandalone: false, selector: "[q-inline-notification-action]", usesInheritance: true, ngImport: i0 });
39
39
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationActionDirective, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationActionDirective, decorators: [{
41
41
  type: Directive,
42
42
  args: [{
43
43
  selector: "[q-inline-notification-action]",
@@ -58,14 +58,14 @@ class InlineNotificationCloseButtonDirective extends CoreInlineNotificationClose
58
58
  super();
59
59
  this.trackBindings.extendWith(computed(() => mergeProps(this.qdsContext().getCloseButtonBindings(), this.inlineIconButtonApi().getRootBindings())));
60
60
  }
61
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationCloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
62
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InlineNotificationCloseButtonDirective, isStandalone: false, selector: "[q-inline-notification-close-button]", providers: [provideIcons({ X })], usesInheritance: true, hostDirectives: [{ directive: i1.QuiPreloadDirective }], ngImport: i0, template: `
61
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationCloseButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
62
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.2", type: InlineNotificationCloseButtonDirective, isStandalone: false, selector: "[q-inline-notification-close-button]", providers: [provideIcons({ X })], usesInheritance: true, hostDirectives: [{ directive: i1.QuiPreloadDirective }], ngImport: i0, template: `
63
63
  <ng-content>
64
64
  <svg qIcon="X" [q-bind]="inlineIconButtonApi().getIconBindings()"></svg>
65
65
  </ng-content>
66
66
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "directive", type: i3.QBindDirective, selector: "[q-bind]", inputs: ["q-bind", "q-bind-options"] }] });
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationCloseButtonDirective, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationCloseButtonDirective, decorators: [{
69
69
  type: Component,
70
70
  args: [{
71
71
  hostDirectives: [QuiPreloadDirective],
@@ -88,10 +88,10 @@ class InlineNotificationDescriptionDirective extends CoreInlineNotificationDescr
88
88
  super();
89
89
  this.trackBindings.extendWith(computed(() => this.qdsContext().getDescriptionBindings()));
90
90
  }
91
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
92
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: InlineNotificationDescriptionDirective, isStandalone: false, selector: "[q-inline-notification-description]", usesInheritance: true, ngImport: i0 });
91
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
92
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: InlineNotificationDescriptionDirective, isStandalone: false, selector: "[q-inline-notification-description]", usesInheritance: true, ngImport: i0 });
93
93
  }
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationDescriptionDirective, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationDescriptionDirective, decorators: [{
95
95
  type: Directive,
96
96
  args: [{
97
97
  selector: "[q-inline-notification-description]",
@@ -113,17 +113,17 @@ class InlineNotificationIconDirective extends CoreInlineNotificationIconDirectiv
113
113
  * Override the icon displayed in the notification. When this input is omitted,
114
114
  * the icon is determined by the emphasis prop.
115
115
  */
116
- icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : []));
116
+ icon = input(...(ngDevMode ? [undefined, { debugName: "icon" }] : /* istanbul ignore next */ []));
117
117
  qdsContext = useQdsInlineNotificationContext();
118
118
  resolvedIcon = computed(() => {
119
119
  return this.icon() || icons[this.qdsContext().emphasis];
120
- }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : []));
120
+ }, ...(ngDevMode ? [{ debugName: "resolvedIcon" }] : /* istanbul ignore next */ []));
121
121
  constructor() {
122
122
  super();
123
123
  this.trackBindings.extendWith(computed(() => this.qdsContext().getIconBindings()));
124
124
  }
125
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InlineNotificationIconDirective, isStandalone: false, selector: "[q-inline-notification-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
125
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Component });
126
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: InlineNotificationIconDirective, isStandalone: false, selector: "[q-inline-notification-icon]", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
127
127
  @if (qdsContext().emphasis === "loading") {
128
128
  <div q-progress-ring></div>
129
129
  } @else if (resolvedIcon()) {
@@ -133,7 +133,7 @@ class InlineNotificationIconDirective extends CoreInlineNotificationIconDirectiv
133
133
  }
134
134
  `, isInline: true, dependencies: [{ kind: "directive", type: i2.IconDirective, selector: "svg[qIcon]", inputs: ["qIcon", "size", "viewBox", "xmlns", "height", "width"] }, { kind: "component", type: i2$1.ProgressRingDirective, selector: "[q-progress-ring]", inputs: ["errorText", "label", "valueText"] }] });
135
135
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationIconDirective, decorators: [{
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationIconDirective, decorators: [{
137
137
  type: Component,
138
138
  args: [{
139
139
  selector: "[q-inline-notification-icon]",
@@ -158,10 +158,10 @@ class InlineNotificationLabelDirective extends CoreInlineNotificationLabelDirect
158
158
  super();
159
159
  this.trackBindings.extendWith(computed(() => this.qdsContext().getHeadingBindings()));
160
160
  }
161
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
162
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: InlineNotificationLabelDirective, isStandalone: false, selector: "[q-inline-notification-label]", usesInheritance: true, ngImport: i0 });
161
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
162
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: InlineNotificationLabelDirective, isStandalone: false, selector: "[q-inline-notification-label]", usesInheritance: true, ngImport: i0 });
163
163
  }
164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationLabelDirective, decorators: [{
164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationLabelDirective, decorators: [{
165
165
  type: Directive,
166
166
  args: [{
167
167
  selector: "[q-inline-notification-label]",
@@ -177,7 +177,7 @@ class InlineNotificationRootDirective extends CoreInlineNotificationRootDirectiv
177
177
  *
178
178
  * @default 'info'
179
179
  */
180
- emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : []));
180
+ emphasis = input(...(ngDevMode ? [undefined, { debugName: "emphasis" }] : /* istanbul ignore next */ []));
181
181
  /**
182
182
  * The layout of the notification's elements.
183
183
  * @option `'horizontal'`: The icon, title, description, link, and close button are displayed inline.
@@ -185,7 +185,7 @@ class InlineNotificationRootDirective extends CoreInlineNotificationRootDirectiv
185
185
  *
186
186
  * @default 'horizontal'
187
187
  */
188
- orientation = input(...(ngDevMode ? [undefined, { debugName: "orientation" }] : []));
188
+ orientation = input(...(ngDevMode ? [undefined, { debugName: "orientation" }] : /* istanbul ignore next */ []));
189
189
  qdsInlineNotificationService = inject(QdsInlineNotificationContextService);
190
190
  constructor() {
191
191
  super();
@@ -195,13 +195,13 @@ class InlineNotificationRootDirective extends CoreInlineNotificationRootDirectiv
195
195
  super.ngOnInit();
196
196
  this.qdsInlineNotificationService.init(computed(() => createQdsInlineNotificationApi({ emphasis: this.emphasis(), orientation: this.orientation() }, normalizeProps)));
197
197
  }
198
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
199
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.16", type: InlineNotificationRootDirective, isStandalone: false, selector: "[q-inline-notification-root]", inputs: { emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
198
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
199
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: InlineNotificationRootDirective, isStandalone: false, selector: "[q-inline-notification-root]", inputs: { emphasis: { classPropertyName: "emphasis", publicName: "emphasis", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
200
200
  provideInlineNotificationContext(),
201
201
  provideQdsInlineNotificationContext(),
202
202
  ], usesInheritance: true, ngImport: i0 });
203
203
  }
204
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationRootDirective, decorators: [{
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationRootDirective, decorators: [{
205
205
  type: Directive,
206
206
  args: [{
207
207
  providers: [
@@ -225,7 +225,7 @@ class InlineNotificationDirective extends InlineNotificationRootDirective {
225
225
  * <div q-inline-notification-description>...</div>
226
226
  * ```
227
227
  */
228
- description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : []));
228
+ description = input(...(ngDevMode ? [undefined, { debugName: "description" }] : /* istanbul ignore next */ []));
229
229
  /**
230
230
  * When `true`, renders a close button that dismisses the notification on click.
231
231
  *
@@ -237,9 +237,7 @@ class InlineNotificationDirective extends InlineNotificationRootDirective {
237
237
  *
238
238
  * @default false
239
239
  */
240
- dismissable = input(undefined, ...(ngDevMode ? [{ debugName: "dismissable", transform: booleanAttribute }] : [{
241
- transform: booleanAttribute,
242
- }]));
240
+ dismissable = input(undefined, { ...(ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
243
241
  /**
244
242
  * Optional heading text for the notification.
245
243
  *
@@ -249,9 +247,9 @@ class InlineNotificationDirective extends InlineNotificationRootDirective {
249
247
  * <div q-inline-notification-label>...</div>
250
248
  * ```
251
249
  */
252
- label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : []));
253
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationDirective, deps: null, target: i0.ɵɵFactoryTarget.Component });
254
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: InlineNotificationDirective, isStandalone: false, selector: "[q-inline-notification]", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
250
+ label = input(...(ngDevMode ? [undefined, { debugName: "label" }] : /* istanbul ignore next */ []));
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationDirective, deps: null, target: i0.ɵɵFactoryTarget.Component });
252
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.2", type: InlineNotificationDirective, isStandalone: false, selector: "[q-inline-notification]", inputs: { description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
255
253
  provideInlineNotificationContext(),
256
254
  provideQdsInlineNotificationContext(),
257
255
  ], usesInheritance: true, ngImport: i0, template: `
@@ -280,7 +278,7 @@ class InlineNotificationDirective extends InlineNotificationRootDirective {
280
278
  </ng-content>
281
279
  `, isInline: true, dependencies: [{ kind: "component", type: InlineNotificationCloseButtonDirective, selector: "[q-inline-notification-close-button]" }, { kind: "directive", type: InlineNotificationDescriptionDirective, selector: "[q-inline-notification-description]" }, { kind: "component", type: InlineNotificationIconDirective, selector: "[q-inline-notification-icon]", inputs: ["icon"] }, { kind: "directive", type: InlineNotificationLabelDirective, selector: "[q-inline-notification-label]" }] });
282
280
  }
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationDirective, decorators: [{
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationDirective, decorators: [{
284
282
  type: Component,
285
283
  args: [{
286
284
  providers: [
@@ -320,8 +318,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
320
318
  // Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
321
319
  // SPDX-License-Identifier: BSD-3-Clause-Clear
322
320
  class InlineNotificationModule {
323
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
324
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationModule, declarations: [InlineNotificationDirective,
321
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
322
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationModule, declarations: [InlineNotificationDirective,
325
323
  InlineNotificationRootDirective,
326
324
  InlineNotificationActionDirective,
327
325
  InlineNotificationCloseButtonDirective,
@@ -334,9 +332,9 @@ class InlineNotificationModule {
334
332
  InlineNotificationDescriptionDirective,
335
333
  InlineNotificationIconDirective,
336
334
  InlineNotificationLabelDirective] });
337
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationModule, imports: [ProgressRingModule] });
335
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationModule, imports: [ProgressRingModule] });
338
336
  }
339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InlineNotificationModule, decorators: [{
337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: InlineNotificationModule, decorators: [{
340
338
  type: NgModule,
341
339
  args: [{
342
340
  declarations: [