@daffodil/design 0.74.0 → 0.75.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 (579) hide show
  1. package/accordion/accordion/accordion/accordion.component.d.ts +3 -19
  2. package/article/README.md +19 -13
  3. package/article/examples/article-blockquote/article-blockquote.component.d.ts +1 -1
  4. package/article/examples/article-code-block/article-code-block.component.d.ts +1 -1
  5. package/article/examples/article-code-inline/article-code-inline.component.d.ts +1 -1
  6. package/article/examples/article-headings/article-headings.component.d.ts +1 -1
  7. package/article/examples/article-hr/article-hr.component.d.ts +1 -1
  8. package/article/examples/article-link/article-link.component.d.ts +1 -1
  9. package/article/examples/article-meta/article-meta.component.d.ts +1 -1
  10. package/article/examples/article-ol/article-ol.component.d.ts +1 -1
  11. package/article/examples/article-table/article-table.component.d.ts +1 -1
  12. package/article/examples/article-ul/article-ul.component.d.ts +1 -1
  13. package/article/examples/public_api.d.ts +0 -1
  14. package/button/button/button-sizable.directive.d.ts +10 -0
  15. package/button/button/button.component.d.ts +17 -27
  16. package/button/examples/basic-button/basic-button.component.d.ts +1 -1
  17. package/button/examples/flat-button/flat-button.component.d.ts +1 -1
  18. package/button/examples/icon-button/icon-button.component.d.ts +1 -1
  19. package/button/examples/public_api.d.ts +0 -8
  20. package/button/examples/raised-button/raised-button.component.d.ts +1 -1
  21. package/button/examples/sizeable-button/sizeable-button.component.d.ts +1 -1
  22. package/button/examples/statusable-button/statusable-button.component.d.ts +1 -1
  23. package/button/examples/stroked-button/stroked-button.component.d.ts +1 -1
  24. package/button/examples/underline-button/underline-button.component.d.ts +1 -1
  25. package/button/public_api.d.ts +1 -0
  26. package/callout/callout/callout.component.d.ts +6 -38
  27. package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +1 -1
  28. package/callout/examples/callout-theming/callout-theming.component.d.ts +1 -1
  29. package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +1 -1
  30. package/callout/examples/compact-callout/compact-callout.component.d.ts +1 -1
  31. package/callout/examples/public_api.d.ts +0 -4
  32. package/card/card/card.component.d.ts +3 -21
  33. package/card/examples/basic-card/basic-card.component.d.ts +1 -1
  34. package/card/examples/card-orientation/card-orientation.component.d.ts +1 -1
  35. package/card/examples/card-theming/card-theming.component.d.ts +1 -1
  36. package/card/examples/linkable-card/linkable-card.component.d.ts +1 -1
  37. package/card/examples/public_api.d.ts +0 -6
  38. package/card/examples/raised-card/raised-card.component.d.ts +1 -1
  39. package/card/examples/stroked-card/stroked-card.component.d.ts +1 -1
  40. package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +1 -1
  41. package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +1 -1
  42. package/checkbox/examples/examples.d.ts +0 -2
  43. package/checkbox/examples/public_api.d.ts +0 -1
  44. package/container/container/container.component.d.ts +3 -22
  45. package/container/examples/container-sizes/container-sizes.component.d.ts +1 -1
  46. package/container/examples/public_api.d.ts +0 -1
  47. package/core/article-encapsulated/article-encapsulated.directive.d.ts +19 -0
  48. package/core/article-encapsulated/public_api.d.ts +1 -1
  49. package/core/breakpoints/noop.service.d.ts +13 -0
  50. package/core/breakpoints/provider.d.ts +6 -0
  51. package/core/breakpoints/public_api.d.ts +3 -0
  52. package/core/colorable/colorable.d.ts +36 -2
  53. package/core/colorable/colorable.directive.d.ts +55 -0
  54. package/core/colorable/public_api.d.ts +1 -1
  55. package/core/compactable/compactable.directive.d.ts +25 -0
  56. package/core/compactable/public_api.d.ts +1 -1
  57. package/core/manage-container-layout/manage-container-layout.directive.d.ts +29 -0
  58. package/core/manage-container-layout/public_api.d.ts +1 -1
  59. package/core/public_api.d.ts +1 -1
  60. package/core/sizable/public_api.d.ts +1 -1
  61. package/core/sizable/sizable.d.ts +4 -2
  62. package/core/sizable/sizable.directive.d.ts +38 -0
  63. package/core/skeletonable/public_api.d.ts +1 -1
  64. package/core/skeletonable/skeletonable.d.ts +0 -1
  65. package/core/skeletonable/skeletonable.directive.d.ts +17 -0
  66. package/core/statusable/public_api.d.ts +1 -1
  67. package/core/statusable/statusable.d.ts +16 -0
  68. package/core/statusable/statusable.directive.d.ts +38 -0
  69. package/core/text-alignable/public_api.d.ts +1 -1
  70. package/core/text-alignable/text-alignable.d.ts +1 -2
  71. package/core/text-alignable/text-alignable.directive.d.ts +42 -0
  72. package/esm2022/accordion/accordion/accordion/accordion.component.mjs +11 -23
  73. package/esm2022/article/examples/article-blockquote/article-blockquote.component.mjs +4 -3
  74. package/esm2022/article/examples/article-code-block/article-code-block.component.mjs +4 -3
  75. package/esm2022/article/examples/article-code-inline/article-code-inline.component.mjs +4 -3
  76. package/esm2022/article/examples/article-headings/article-headings.component.mjs +3 -3
  77. package/esm2022/article/examples/article-hr/article-hr.component.mjs +4 -3
  78. package/esm2022/article/examples/article-link/article-link.component.mjs +4 -3
  79. package/esm2022/article/examples/article-meta/article-meta.component.mjs +4 -3
  80. package/esm2022/article/examples/article-ol/article-ol.component.mjs +4 -3
  81. package/esm2022/article/examples/article-table/article-table.component.mjs +4 -3
  82. package/esm2022/article/examples/article-ul/article-ul.component.mjs +4 -3
  83. package/esm2022/article/examples/public_api.mjs +1 -2
  84. package/esm2022/button/button/button-sizable.directive.mjs +14 -0
  85. package/esm2022/button/button/button.component.mjs +32 -10
  86. package/esm2022/button/examples/basic-button/basic-button.component.mjs +10 -4
  87. package/esm2022/button/examples/flat-button/flat-button.component.mjs +10 -4
  88. package/esm2022/button/examples/icon-button/icon-button.component.mjs +5 -4
  89. package/esm2022/button/examples/public_api.mjs +1 -9
  90. package/esm2022/button/examples/raised-button/raised-button.component.mjs +10 -4
  91. package/esm2022/button/examples/sizeable-button/sizeable-button.component.mjs +5 -4
  92. package/esm2022/button/examples/statusable-button/statusable-button.component.mjs +5 -4
  93. package/esm2022/button/examples/stroked-button/stroked-button.component.mjs +10 -4
  94. package/esm2022/button/examples/underline-button/underline-button.component.mjs +10 -4
  95. package/esm2022/button/public_api.mjs +2 -1
  96. package/esm2022/callout/callout/callout.component.mjs +28 -22
  97. package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +20 -10
  98. package/esm2022/callout/examples/callout-theming/callout-theming.component.mjs +17 -9
  99. package/esm2022/callout/examples/callout-with-grid/callout-with-grid.component.mjs +12 -4
  100. package/esm2022/callout/examples/compact-callout/compact-callout.component.mjs +12 -4
  101. package/esm2022/callout/examples/public_api.mjs +1 -5
  102. package/esm2022/card/card/card.component.mjs +12 -16
  103. package/esm2022/card/examples/basic-card/basic-card.component.mjs +12 -4
  104. package/esm2022/card/examples/card-orientation/card-orientation.component.mjs +20 -10
  105. package/esm2022/card/examples/card-theming/card-theming.component.mjs +11 -6
  106. package/esm2022/card/examples/linkable-card/linkable-card.component.mjs +15 -8
  107. package/esm2022/card/examples/public_api.mjs +1 -7
  108. package/esm2022/card/examples/raised-card/raised-card.component.mjs +15 -8
  109. package/esm2022/card/examples/stroked-card/stroked-card.component.mjs +15 -8
  110. package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +12 -6
  111. package/esm2022/checkbox/examples/checkbox-set/checkbox-set.component.mjs +12 -7
  112. package/esm2022/checkbox/examples/examples.mjs +1 -7
  113. package/esm2022/checkbox/examples/public_api.mjs +1 -2
  114. package/esm2022/container/container/container.component.mjs +15 -22
  115. package/esm2022/container/examples/container-sizes/container-sizes.component.mjs +11 -6
  116. package/esm2022/container/examples/public_api.mjs +1 -2
  117. package/esm2022/core/article-encapsulated/article-encapsulated.directive.mjs +33 -0
  118. package/esm2022/core/article-encapsulated/public_api.mjs +2 -2
  119. package/esm2022/core/breakpoints/noop.service.mjs +25 -0
  120. package/esm2022/core/breakpoints/provider.mjs +13 -0
  121. package/esm2022/core/breakpoints/public_api.mjs +4 -0
  122. package/esm2022/core/colorable/colorable.directive.mjs +77 -0
  123. package/esm2022/core/colorable/colorable.mjs +37 -2
  124. package/esm2022/core/colorable/public_api.mjs +2 -2
  125. package/esm2022/core/compactable/compactable.directive.mjs +41 -0
  126. package/esm2022/core/compactable/public_api.mjs +2 -2
  127. package/esm2022/core/manage-container-layout/manage-container-layout.directive.mjs +43 -0
  128. package/esm2022/core/manage-container-layout/public_api.mjs +2 -2
  129. package/esm2022/core/public_api.mjs +2 -2
  130. package/esm2022/core/sizable/public_api.mjs +2 -2
  131. package/esm2022/core/sizable/sizable.directive.mjs +53 -0
  132. package/esm2022/core/sizable/sizable.mjs +2 -3
  133. package/esm2022/core/skeletonable/public_api.mjs +2 -2
  134. package/esm2022/core/skeletonable/skeletonable.directive.mjs +33 -0
  135. package/esm2022/core/skeletonable/skeletonable.mjs +1 -1
  136. package/esm2022/core/statusable/public_api.mjs +2 -2
  137. package/esm2022/core/statusable/statusable.directive.mjs +50 -0
  138. package/esm2022/core/statusable/statusable.mjs +4 -1
  139. package/esm2022/core/text-alignable/public_api.mjs +2 -2
  140. package/esm2022/core/text-alignable/text-alignable.directive.mjs +53 -0
  141. package/esm2022/core/text-alignable/text-alignable.mjs +1 -1
  142. package/esm2022/hero/examples/compact-hero/compact-hero.component.mjs +10 -4
  143. package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +20 -10
  144. package/esm2022/hero/examples/hero-theming/hero-theming.component.mjs +15 -8
  145. package/esm2022/hero/examples/hero-with-grid/hero-with-grid.component.mjs +12 -4
  146. package/esm2022/hero/examples/public_api.mjs +1 -5
  147. package/esm2022/hero/hero/hero.component.mjs +28 -22
  148. package/esm2022/image/examples/basic-image/basic-image.component.mjs +4 -3
  149. package/esm2022/image/examples/load-image/load-image.component.mjs +6 -5
  150. package/esm2022/image/examples/public_api.mjs +4 -7
  151. package/esm2022/image/examples/skeleton-image/skeleton-image.component.mjs +4 -3
  152. package/esm2022/image/image/image.component.mjs +14 -23
  153. package/esm2022/input/examples/basic-input/basic-input.component.mjs +4 -3
  154. package/esm2022/input/examples/examples.mjs +5 -9
  155. package/esm2022/input/examples/input-disabled/input-disabled.component.mjs +4 -3
  156. package/esm2022/input/examples/input-error/input-error.component.mjs +9 -4
  157. package/esm2022/input/examples/input-with-form-field/input-with-form-field.component.mjs +4 -3
  158. package/esm2022/link-set/link-set/link-set.component.mjs +12 -22
  159. package/esm2022/list/examples/basic-list/basic-list.component.mjs +4 -3
  160. package/esm2022/list/examples/icon-list/icon-list.component.mjs +10 -4
  161. package/esm2022/list/examples/multiline-list/multiline-list.component.mjs +4 -3
  162. package/esm2022/list/examples/nav-list/nav-list.component.mjs +10 -4
  163. package/esm2022/list/examples/public_api.mjs +1 -2
  164. package/esm2022/list/list/list.component.mjs +12 -21
  165. package/esm2022/loading-icon/examples/examples.mjs +1 -3
  166. package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +12 -7
  167. package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +4 -3
  168. package/esm2022/loading-icon/loading-icon/loading-icon.component.mjs +21 -28
  169. package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +7 -5
  170. package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +7 -5
  171. package/esm2022/media-gallery/examples/public_api.mjs +1 -4
  172. package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.mjs +7 -5
  173. package/esm2022/media-gallery/media-gallery/media-gallery.component.mjs +17 -23
  174. package/esm2022/menu/examples/basic-menu/basic-menu.component.mjs +5 -3
  175. package/esm2022/menu/examples/basic-menu/menu-content/menu-content.component.mjs +5 -4
  176. package/esm2022/menu/examples/public_api.mjs +2 -3
  177. package/esm2022/modal/examples/basic-modal/basic-modal.component.mjs +5 -4
  178. package/esm2022/modal/examples/basic-modal/modal-content.component.mjs +5 -3
  179. package/esm2022/modal/examples/public_api.mjs +2 -3
  180. package/esm2022/modal/modal/modal.component.mjs +42 -6
  181. package/esm2022/modal/modal-actions/modal-actions.component.mjs +15 -5
  182. package/esm2022/modal/modal-close/modal-close.directive.mjs +47 -0
  183. package/esm2022/modal/modal-content/modal-content.component.mjs +15 -5
  184. package/esm2022/modal/modal-header/modal-header.component.mjs +16 -4
  185. package/esm2022/modal/modal-title/modal-title.directive.mjs +33 -6
  186. package/esm2022/modal/modal.module.mjs +18 -5
  187. package/esm2022/modal/public_api.mjs +2 -1
  188. package/esm2022/modal/service/modal.service.mjs +3 -2
  189. package/esm2022/navbar/examples/basic-navbar/basic-navbar.component.mjs +5 -3
  190. package/esm2022/navbar/examples/contained-navbar/contained-navbar.component.mjs +12 -5
  191. package/esm2022/navbar/examples/navbar-theming/navbar-theming.component.mjs +15 -8
  192. package/esm2022/navbar/examples/public_api.mjs +1 -5
  193. package/esm2022/navbar/examples/raised-navbar/raised-navbar.component.mjs +5 -3
  194. package/esm2022/navbar/navbar/navbar.component.mjs +22 -28
  195. package/esm2022/notification/examples/default-notification/default-notification.component.mjs +16 -8
  196. package/esm2022/notification/examples/dismissible-notification/dismissible-notification.component.mjs +14 -7
  197. package/esm2022/notification/examples/notification-orientations/notification-orientations.component.mjs +15 -6
  198. package/esm2022/notification/examples/notification-status/notification-status.component.mjs +19 -9
  199. package/esm2022/notification/examples/notification-with-actions/notification-with-actions.component.mjs +14 -8
  200. package/esm2022/notification/examples/public_api.mjs +6 -11
  201. package/esm2022/notification/notification/notification.component.mjs +31 -36
  202. package/esm2022/paginator/examples/basic-paginator/basic-paginator.component.mjs +6 -3
  203. package/esm2022/paginator/examples/link-paginator/link-paginator.component.mjs +8 -4
  204. package/esm2022/paginator/examples/public_api.mjs +1 -2
  205. package/esm2022/paginator/paginator/paginator.component.mjs +1 -1
  206. package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.component.mjs +4 -3
  207. package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.mjs +4 -3
  208. package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.mjs +5 -4
  209. package/esm2022/progress-bar/examples/public_api.mjs +4 -7
  210. package/esm2022/progress-bar/progress-bar.component.mjs +18 -23
  211. package/esm2022/public_api.mjs +1 -3
  212. package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.mjs +11 -6
  213. package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.mjs +11 -6
  214. package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.mjs +11 -6
  215. package/esm2022/quantity-field/examples/public_api.mjs +1 -5
  216. package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.mjs +11 -6
  217. package/esm2022/radio/examples/basic-radio/basic-radio.component.mjs +5 -4
  218. package/esm2022/radio/examples/examples.mjs +1 -5
  219. package/esm2022/radio/examples/public_api.mjs +1 -2
  220. package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.component.mjs +4 -3
  221. package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.mjs +15 -8
  222. package/esm2022/sidebar/examples/public_api.mjs +5 -9
  223. package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.mjs +5 -3
  224. package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.mjs +4 -3
  225. package/esm2022/toast/examples/default-toast/default-toast.component.mjs +4 -3
  226. package/esm2022/toast/examples/public_api.mjs +5 -9
  227. package/esm2022/toast/examples/toast-positions/toast-positions.component.mjs +22 -5
  228. package/esm2022/toast/examples/toast-status/toast-status.component.mjs +5 -4
  229. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.mjs +4 -3
  230. package/esm2022/toast/toast/toast-template.component.mjs +2 -2
  231. package/esm2022/toast/toast/toast.component.mjs +16 -22
  232. package/esm2022/tree/examples/basic-tree/basic-tree.component.mjs +6 -5
  233. package/esm2022/tree/examples/public_api.mjs +1 -2
  234. package/esm2022/tree/tree/tree.component.mjs +13 -23
  235. package/fesm2022/daffodil-design-accordion.mjs +9 -21
  236. package/fesm2022/daffodil-design-accordion.mjs.map +1 -1
  237. package/fesm2022/daffodil-design-article-examples.mjs +22 -43
  238. package/fesm2022/daffodil-design-article-examples.mjs.map +1 -1
  239. package/fesm2022/daffodil-design-button-examples.mjs +41 -205
  240. package/fesm2022/daffodil-design-button-examples.mjs.map +1 -1
  241. package/fesm2022/daffodil-design-button.mjs +42 -11
  242. package/fesm2022/daffodil-design-button.mjs.map +1 -1
  243. package/fesm2022/daffodil-design-callout-examples.mjs +29 -130
  244. package/fesm2022/daffodil-design-callout-examples.mjs.map +1 -1
  245. package/fesm2022/daffodil-design-callout.mjs +25 -20
  246. package/fesm2022/daffodil-design-callout.mjs.map +1 -1
  247. package/fesm2022/daffodil-design-card-examples.mjs +39 -209
  248. package/fesm2022/daffodil-design-card-examples.mjs.map +1 -1
  249. package/fesm2022/daffodil-design-card.mjs +11 -15
  250. package/fesm2022/daffodil-design-card.mjs.map +1 -1
  251. package/fesm2022/daffodil-design-checkbox-examples.mjs +14 -64
  252. package/fesm2022/daffodil-design-checkbox-examples.mjs.map +1 -1
  253. package/fesm2022/daffodil-design-container-examples.mjs +9 -32
  254. package/fesm2022/daffodil-design-container-examples.mjs.map +1 -1
  255. package/fesm2022/daffodil-design-container.mjs +13 -20
  256. package/fesm2022/daffodil-design-container.mjs.map +1 -1
  257. package/fesm2022/daffodil-design-hero-examples.mjs +27 -136
  258. package/fesm2022/daffodil-design-hero-examples.mjs.map +1 -1
  259. package/fesm2022/daffodil-design-hero.mjs +25 -20
  260. package/fesm2022/daffodil-design-hero.mjs.map +1 -1
  261. package/fesm2022/daffodil-design-image-examples.mjs +11 -75
  262. package/fesm2022/daffodil-design-image-examples.mjs.map +1 -1
  263. package/fesm2022/daffodil-design-image.mjs +12 -21
  264. package/fesm2022/daffodil-design-image.mjs.map +1 -1
  265. package/fesm2022/daffodil-design-input-examples.mjs +15 -94
  266. package/fesm2022/daffodil-design-input-examples.mjs.map +1 -1
  267. package/fesm2022/daffodil-design-link-set.mjs +10 -20
  268. package/fesm2022/daffodil-design-link-set.mjs.map +1 -1
  269. package/fesm2022/daffodil-design-list-examples.mjs +20 -140
  270. package/fesm2022/daffodil-design-list-examples.mjs.map +1 -1
  271. package/fesm2022/daffodil-design-list.mjs +12 -21
  272. package/fesm2022/daffodil-design-list.mjs.map +1 -1
  273. package/fesm2022/daffodil-design-loading-icon-examples.mjs +10 -53
  274. package/fesm2022/daffodil-design-loading-icon-examples.mjs.map +1 -1
  275. package/fesm2022/daffodil-design-loading-icon.mjs +19 -26
  276. package/fesm2022/daffodil-design-loading-icon.mjs.map +1 -1
  277. package/fesm2022/daffodil-design-media-gallery-examples.mjs +10 -82
  278. package/fesm2022/daffodil-design-media-gallery-examples.mjs.map +1 -1
  279. package/fesm2022/daffodil-design-media-gallery.mjs +14 -20
  280. package/fesm2022/daffodil-design-media-gallery.mjs.map +1 -1
  281. package/fesm2022/daffodil-design-menu-examples.mjs +10 -39
  282. package/fesm2022/daffodil-design-menu-examples.mjs.map +1 -1
  283. package/fesm2022/daffodil-design-modal-examples.mjs +8 -33
  284. package/fesm2022/daffodil-design-modal-examples.mjs.map +1 -1
  285. package/fesm2022/daffodil-design-modal.mjs +169 -23
  286. package/fesm2022/daffodil-design-modal.mjs.map +1 -1
  287. package/fesm2022/daffodil-design-navbar-examples.mjs +20 -113
  288. package/fesm2022/daffodil-design-navbar-examples.mjs.map +1 -1
  289. package/fesm2022/daffodil-design-navbar.mjs +20 -26
  290. package/fesm2022/daffodil-design-navbar.mjs.map +1 -1
  291. package/fesm2022/daffodil-design-notification-examples.mjs +41 -164
  292. package/fesm2022/daffodil-design-notification-examples.mjs.map +1 -1
  293. package/fesm2022/daffodil-design-notification.mjs +29 -34
  294. package/fesm2022/daffodil-design-notification.mjs.map +1 -1
  295. package/fesm2022/daffodil-design-paginator-examples.mjs +12 -28
  296. package/fesm2022/daffodil-design-paginator-examples.mjs.map +1 -1
  297. package/fesm2022/daffodil-design-paginator.mjs.map +1 -1
  298. package/fesm2022/daffodil-design-progress-bar-examples.mjs +10 -73
  299. package/fesm2022/daffodil-design-progress-bar-examples.mjs.map +1 -1
  300. package/fesm2022/daffodil-design-progress-bar.mjs +16 -21
  301. package/fesm2022/daffodil-design-progress-bar.mjs.map +1 -1
  302. package/fesm2022/daffodil-design-quantity-field-examples.mjs +25 -126
  303. package/fesm2022/daffodil-design-quantity-field-examples.mjs.map +1 -1
  304. package/fesm2022/daffodil-design-radio-examples.mjs +4 -31
  305. package/fesm2022/daffodil-design-radio-examples.mjs.map +1 -1
  306. package/fesm2022/daffodil-design-sidebar-examples.mjs +22 -130
  307. package/fesm2022/daffodil-design-sidebar-examples.mjs.map +1 -1
  308. package/fesm2022/daffodil-design-toast-examples.mjs +20 -142
  309. package/fesm2022/daffodil-design-toast-examples.mjs.map +1 -1
  310. package/fesm2022/daffodil-design-toast.mjs +15 -21
  311. package/fesm2022/daffodil-design-toast.mjs.map +1 -1
  312. package/fesm2022/daffodil-design-tree-examples.mjs +6 -34
  313. package/fesm2022/daffodil-design-tree-examples.mjs.map +1 -1
  314. package/fesm2022/daffodil-design-tree.mjs +11 -21
  315. package/fesm2022/daffodil-design-tree.mjs.map +1 -1
  316. package/fesm2022/daffodil-design.mjs +404 -199
  317. package/fesm2022/daffodil-design.mjs.map +1 -1
  318. package/hero/examples/compact-hero/compact-hero.component.d.ts +1 -1
  319. package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +1 -1
  320. package/hero/examples/hero-theming/hero-theming.component.d.ts +1 -1
  321. package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +1 -1
  322. package/hero/examples/public_api.d.ts +0 -4
  323. package/hero/hero/hero.component.d.ts +6 -38
  324. package/image/examples/basic-image/basic-image.component.d.ts +1 -1
  325. package/image/examples/load-image/load-image.component.d.ts +1 -1
  326. package/image/examples/public_api.d.ts +2 -2
  327. package/image/examples/skeleton-image/skeleton-image.component.d.ts +1 -1
  328. package/image/image/image.component.d.ts +5 -22
  329. package/input/examples/basic-input/basic-input.component.d.ts +1 -1
  330. package/input/examples/examples.d.ts +2 -2
  331. package/input/examples/input-disabled/input-disabled.component.d.ts +1 -1
  332. package/input/examples/input-error/input-error.component.d.ts +1 -1
  333. package/input/examples/input-with-form-field/input-with-form-field.component.d.ts +1 -1
  334. package/link-set/link-set/link-set.component.d.ts +3 -22
  335. package/list/examples/basic-list/basic-list.component.d.ts +1 -1
  336. package/list/examples/icon-list/icon-list.component.d.ts +1 -1
  337. package/list/examples/multiline-list/multiline-list.component.d.ts +1 -1
  338. package/list/examples/nav-list/nav-list.component.d.ts +1 -1
  339. package/list/examples/public_api.d.ts +0 -1
  340. package/list/list/list.component.d.ts +5 -18
  341. package/loading-icon/examples/examples.d.ts +0 -2
  342. package/loading-icon/examples/loading-icon-color/loading-icon-color.component.d.ts +1 -1
  343. package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +1 -1
  344. package/loading-icon/loading-icon/loading-icon.component.d.ts +3 -22
  345. package/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.d.ts +1 -1
  346. package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.d.ts +1 -1
  347. package/media-gallery/examples/public_api.d.ts +0 -3
  348. package/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.component.d.ts +1 -1
  349. package/media-gallery/media-gallery/media-gallery.component.d.ts +5 -25
  350. package/menu/examples/basic-menu/basic-menu.component.d.ts +1 -1
  351. package/menu/examples/basic-menu/menu-content/menu-content.component.d.ts +1 -1
  352. package/menu/examples/public_api.d.ts +2 -2
  353. package/modal/README.md +22 -37
  354. package/modal/examples/basic-modal/basic-modal.component.d.ts +1 -1
  355. package/modal/examples/basic-modal/modal-content.component.d.ts +1 -1
  356. package/modal/examples/public_api.d.ts +2 -2
  357. package/modal/modal/modal.component.d.ts +17 -1
  358. package/modal/modal-actions/modal-actions.component.d.ts +1 -0
  359. package/modal/modal-close/modal-close.directive.d.ts +24 -0
  360. package/modal/modal-content/modal-content.component.d.ts +1 -0
  361. package/modal/modal-header/modal-header.component.d.ts +6 -1
  362. package/modal/modal-title/modal-title.directive.d.ts +12 -1
  363. package/modal/modal.module.d.ts +7 -4
  364. package/modal/public_api.d.ts +1 -0
  365. package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +1 -1
  366. package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +1 -1
  367. package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +1 -1
  368. package/navbar/examples/public_api.d.ts +0 -4
  369. package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +1 -1
  370. package/navbar/navbar/navbar.component.d.ts +3 -25
  371. package/notification/examples/default-notification/default-notification.component.d.ts +1 -1
  372. package/notification/examples/dismissible-notification/dismissible-notification.component.d.ts +1 -1
  373. package/notification/examples/notification-orientations/notification-orientations.component.d.ts +1 -1
  374. package/notification/examples/notification-status/notification-status.component.d.ts +1 -1
  375. package/notification/examples/notification-with-actions/notification-with-actions.component.d.ts +1 -1
  376. package/notification/examples/public_api.d.ts +6 -2
  377. package/notification/notification/notification.component.d.ts +7 -25
  378. package/notification/src/notification-theme.scss +1 -1
  379. package/package.json +1 -1
  380. package/paginator/examples/basic-paginator/basic-paginator.component.d.ts +1 -1
  381. package/paginator/examples/link-paginator/link-paginator.component.d.ts +1 -1
  382. package/paginator/examples/public_api.d.ts +0 -1
  383. package/progress-bar/examples/progress-bar-default/progress-bar-default.component.d.ts +1 -1
  384. package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.component.d.ts +1 -1
  385. package/progress-bar/examples/progress-bar-themes/progress-bar-themes.component.d.ts +1 -1
  386. package/progress-bar/examples/public_api.d.ts +2 -2
  387. package/progress-bar/progress-bar.component.d.ts +7 -22
  388. package/public_api.d.ts +0 -1
  389. package/quantity-field/examples/basic-quantity-field/basic-quantity-field.component.d.ts +1 -1
  390. package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.component.d.ts +1 -1
  391. package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.component.d.ts +1 -1
  392. package/quantity-field/examples/public_api.d.ts +0 -4
  393. package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.component.d.ts +1 -1
  394. package/radio/examples/basic-radio/basic-radio.component.d.ts +1 -1
  395. package/radio/examples/examples.d.ts +0 -2
  396. package/radio/examples/public_api.d.ts +0 -1
  397. package/scss/state/skeleton/_mixins.scss +1 -1
  398. package/sidebar/examples/basic-sidebar/basic-sidebar.component.d.ts +1 -1
  399. package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.component.d.ts +1 -1
  400. package/sidebar/examples/public_api.d.ts +2 -2
  401. package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.component.d.ts +1 -1
  402. package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.component.d.ts +1 -1
  403. package/toast/examples/default-toast/default-toast.component.d.ts +1 -1
  404. package/toast/examples/public_api.d.ts +5 -2
  405. package/toast/examples/toast-positions/toast-positions.component.d.ts +1 -1
  406. package/toast/examples/toast-status/toast-status.component.d.ts +1 -1
  407. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.component.d.ts +1 -1
  408. package/toast/toast/toast.component.d.ts +7 -25
  409. package/tree/examples/basic-tree/basic-tree.component.d.ts +1 -1
  410. package/tree/examples/public_api.d.ts +0 -1
  411. package/tree/tree/tree.component.d.ts +5 -19
  412. package/article/examples/article-examples.module.d.ts +0 -18
  413. package/button/examples/basic-button/basic-button.module.d.ts +0 -9
  414. package/button/examples/flat-button/flat-button.module.d.ts +0 -9
  415. package/button/examples/icon-button/icon-button.module.d.ts +0 -9
  416. package/button/examples/raised-button/raised-button.module.d.ts +0 -9
  417. package/button/examples/sizeable-button/sizeable-button.module.d.ts +0 -9
  418. package/button/examples/statusable-button/statusable-button.module.d.ts +0 -9
  419. package/button/examples/stroked-button/stroked-button.module.d.ts +0 -9
  420. package/button/examples/underline-button/underline-button.module.d.ts +0 -9
  421. package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +0 -13
  422. package/callout/examples/callout-theming/callout-theming.module.d.ts +0 -12
  423. package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +0 -13
  424. package/callout/examples/compact-callout/compact-callout.module.d.ts +0 -12
  425. package/card/examples/basic-card/basic-card.module.d.ts +0 -12
  426. package/card/examples/card-orientation/card-orientation.module.d.ts +0 -13
  427. package/card/examples/card-theming/card-theming.module.d.ts +0 -11
  428. package/card/examples/linkable-card/linkable-card.module.d.ts +0 -13
  429. package/card/examples/raised-card/raised-card.module.d.ts +0 -12
  430. package/card/examples/stroked-card/stroked-card.module.d.ts +0 -13
  431. package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +0 -10
  432. package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +0 -10
  433. package/container/examples/container-sizes/container-sizes.module.d.ts +0 -10
  434. package/core/article-encapsulated/article-encapsulated-mixin.d.ts +0 -15
  435. package/core/colorable/color-in-palette.d.ts +0 -1
  436. package/core/colorable/colorable-enum.d.ts +0 -10
  437. package/core/colorable/colorable-mixin.d.ts +0 -23
  438. package/core/compactable/compactable-mixin.d.ts +0 -14
  439. package/core/manage-container-layout/manage-container-layout-mixin.d.ts +0 -17
  440. package/core/sizable/sizable-mixin.d.ts +0 -15
  441. package/core/skeletonable/skeletonable-mixin.d.ts +0 -15
  442. package/core/statusable/statusable-mixin.d.ts +0 -16
  443. package/core/text-alignable/text-alignable-mixin.d.ts +0 -19
  444. package/esm2022/article/examples/article-examples.module.mjs +0 -35
  445. package/esm2022/button/examples/basic-button/basic-button.module.mjs +0 -28
  446. package/esm2022/button/examples/flat-button/flat-button.module.mjs +0 -28
  447. package/esm2022/button/examples/icon-button/icon-button.module.mjs +0 -28
  448. package/esm2022/button/examples/raised-button/raised-button.module.mjs +0 -28
  449. package/esm2022/button/examples/sizeable-button/sizeable-button.module.mjs +0 -28
  450. package/esm2022/button/examples/statusable-button/statusable-button.module.mjs +0 -28
  451. package/esm2022/button/examples/stroked-button/stroked-button.module.mjs +0 -28
  452. package/esm2022/button/examples/underline-button/underline-button.module.mjs +0 -28
  453. package/esm2022/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +0 -41
  454. package/esm2022/callout/examples/callout-theming/callout-theming.module.mjs +0 -37
  455. package/esm2022/callout/examples/callout-with-grid/callout-with-grid.module.mjs +0 -41
  456. package/esm2022/callout/examples/compact-callout/compact-callout.module.mjs +0 -37
  457. package/esm2022/card/examples/basic-card/basic-card.module.mjs +0 -40
  458. package/esm2022/card/examples/card-orientation/card-orientation.module.mjs +0 -44
  459. package/esm2022/card/examples/card-theming/card-theming.module.mjs +0 -36
  460. package/esm2022/card/examples/linkable-card/linkable-card.module.mjs +0 -44
  461. package/esm2022/card/examples/raised-card/raised-card.module.mjs +0 -40
  462. package/esm2022/card/examples/stroked-card/stroked-card.module.mjs +0 -44
  463. package/esm2022/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +0 -33
  464. package/esm2022/checkbox/examples/checkbox-set/checkbox-set.module.mjs +0 -33
  465. package/esm2022/container/examples/container-sizes/container-sizes.module.mjs +0 -32
  466. package/esm2022/core/article-encapsulated/article-encapsulated-mixin.mjs +0 -12
  467. package/esm2022/core/colorable/color-in-palette.mjs +0 -5
  468. package/esm2022/core/colorable/colorable-enum.mjs +0 -12
  469. package/esm2022/core/colorable/colorable-mixin.mjs +0 -42
  470. package/esm2022/core/compactable/compactable-mixin.mjs +0 -26
  471. package/esm2022/core/manage-container-layout/manage-container-layout-mixin.mjs +0 -14
  472. package/esm2022/core/sizable/sizable-mixin.mjs +0 -31
  473. package/esm2022/core/skeletonable/skeletonable-mixin.mjs +0 -26
  474. package/esm2022/core/statusable/statusable-mixin.mjs +0 -32
  475. package/esm2022/core/text-alignable/text-alignable-mixin.mjs +0 -35
  476. package/esm2022/examples/examples.mjs +0 -2
  477. package/esm2022/examples/public_api.mjs +0 -2
  478. package/esm2022/hero/examples/compact-hero/compact-hero.module.mjs +0 -40
  479. package/esm2022/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +0 -41
  480. package/esm2022/hero/examples/hero-theming/hero-theming.module.mjs +0 -40
  481. package/esm2022/hero/examples/hero-with-grid/hero-with-grid.module.mjs +0 -41
  482. package/esm2022/image/examples/basic-image/basic-image.module.mjs +0 -24
  483. package/esm2022/image/examples/load-image/load-image.module.mjs +0 -28
  484. package/esm2022/image/examples/skeleton-image/skeleton-image.module.mjs +0 -24
  485. package/esm2022/input/examples/basic-input/basic-input.module.mjs +0 -24
  486. package/esm2022/input/examples/input-disabled/input-disabled.module.mjs +0 -24
  487. package/esm2022/input/examples/input-error/input-error.module.mjs +0 -28
  488. package/esm2022/input/examples/input-with-form-field/input-with-form-field.module.mjs +0 -24
  489. package/esm2022/list/examples/basic-list/basic-list.module.mjs +0 -28
  490. package/esm2022/list/examples/icon-list/icon-list.module.mjs +0 -32
  491. package/esm2022/list/examples/list-examples.module.mjs +0 -33
  492. package/esm2022/list/examples/multiline-list/multiline-list.module.mjs +0 -32
  493. package/esm2022/list/examples/nav-list/nav-list.module.mjs +0 -32
  494. package/esm2022/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +0 -32
  495. package/esm2022/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +0 -24
  496. package/esm2022/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +0 -29
  497. package/esm2022/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +0 -29
  498. package/esm2022/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.mjs +0 -29
  499. package/esm2022/menu/examples/basic-menu/basic-menu.module.mjs +0 -35
  500. package/esm2022/modal/examples/basic-modal/basic-modal.module.mjs +0 -31
  501. package/esm2022/navbar/examples/basic-navbar/basic-navbar.module.mjs +0 -33
  502. package/esm2022/navbar/examples/contained-navbar/contained-navbar.module.mjs +0 -33
  503. package/esm2022/navbar/examples/navbar-theming/navbar-theming.module.mjs +0 -33
  504. package/esm2022/navbar/examples/raised-navbar/raised-navbar.module.mjs +0 -29
  505. package/esm2022/notification/examples/default-notification/default-notification.module.mjs +0 -36
  506. package/esm2022/notification/examples/dismissible-notification/dismissible-notification.module.mjs +0 -36
  507. package/esm2022/notification/examples/notification-orientations/notification-orientations.module.mjs +0 -40
  508. package/esm2022/notification/examples/notification-status/notification-status.module.mjs +0 -40
  509. package/esm2022/notification/examples/notification-with-actions/notification-with-actions.module.mjs +0 -36
  510. package/esm2022/paginator/examples/paginator-examples.module.mjs +0 -27
  511. package/esm2022/progress-bar/examples/progress-bar-default/progress-bar-default.module.mjs +0 -24
  512. package/esm2022/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.mjs +0 -24
  513. package/esm2022/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.mjs +0 -28
  514. package/esm2022/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.mjs +0 -35
  515. package/esm2022/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.mjs +0 -35
  516. package/esm2022/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.mjs +0 -35
  517. package/esm2022/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.mjs +0 -35
  518. package/esm2022/radio/examples/basic-radio/basic-radio.module.mjs +0 -29
  519. package/esm2022/sidebar/examples/basic-sidebar/basic-sidebar.module.mjs +0 -32
  520. package/esm2022/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.mjs +0 -44
  521. package/esm2022/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.mjs +0 -32
  522. package/esm2022/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.mjs +0 -28
  523. package/esm2022/toast/examples/default-toast/default-toast.module.mjs +0 -36
  524. package/esm2022/toast/examples/toast-positions/toast-positions.module.mjs +0 -57
  525. package/esm2022/toast/examples/toast-status/toast-status.module.mjs +0 -40
  526. package/esm2022/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.mjs +0 -32
  527. package/esm2022/tree/examples/basic-tree/basic-tree.module.mjs +0 -32
  528. package/examples/examples.d.ts +0 -12
  529. package/examples/public_api.d.ts +0 -1
  530. package/hero/examples/compact-hero/compact-hero.module.d.ts +0 -12
  531. package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +0 -13
  532. package/hero/examples/hero-theming/hero-theming.module.d.ts +0 -12
  533. package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +0 -13
  534. package/image/examples/basic-image/basic-image.module.d.ts +0 -8
  535. package/image/examples/load-image/load-image.module.d.ts +0 -9
  536. package/image/examples/skeleton-image/skeleton-image.module.d.ts +0 -8
  537. package/input/examples/basic-input/basic-input.module.d.ts +0 -8
  538. package/input/examples/input-disabled/input-disabled.module.d.ts +0 -8
  539. package/input/examples/input-error/input-error.module.d.ts +0 -9
  540. package/input/examples/input-with-form-field/input-with-form-field.module.d.ts +0 -8
  541. package/list/examples/basic-list/basic-list.module.d.ts +0 -9
  542. package/list/examples/icon-list/icon-list.module.d.ts +0 -10
  543. package/list/examples/list-examples.module.d.ts +0 -11
  544. package/list/examples/multiline-list/multiline-list.module.d.ts +0 -10
  545. package/list/examples/nav-list/nav-list.module.d.ts +0 -10
  546. package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +0 -10
  547. package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +0 -8
  548. package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +0 -9
  549. package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +0 -9
  550. package/media-gallery/examples/skeleton-media-gallery/skeleton-media-gallery.module.d.ts +0 -9
  551. package/menu/examples/basic-menu/basic-menu.module.d.ts +0 -11
  552. package/modal/examples/basic-modal/basic-modal.module.d.ts +0 -10
  553. package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +0 -11
  554. package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +0 -11
  555. package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +0 -11
  556. package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +0 -10
  557. package/notification/examples/default-notification/default-notification.module.d.ts +0 -11
  558. package/notification/examples/dismissible-notification/dismissible-notification.module.d.ts +0 -11
  559. package/notification/examples/notification-orientations/notification-orientations.module.d.ts +0 -12
  560. package/notification/examples/notification-status/notification-status.module.d.ts +0 -12
  561. package/notification/examples/notification-with-actions/notification-with-actions.module.d.ts +0 -11
  562. package/paginator/examples/paginator-examples.module.d.ts +0 -10
  563. package/progress-bar/examples/progress-bar-default/progress-bar-default.module.d.ts +0 -8
  564. package/progress-bar/examples/progress-bar-indeterminate/progress-bar-indeterminate.module.d.ts +0 -8
  565. package/progress-bar/examples/progress-bar-themes/progress-bar-themes.module.d.ts +0 -9
  566. package/quantity-field/examples/basic-quantity-field/basic-quantity-field.module.d.ts +0 -10
  567. package/quantity-field/examples/custom-range-quantity-field/custom-range-quantity-field.module.d.ts +0 -10
  568. package/quantity-field/examples/disabled-quantity-field/disabled-quantity-field.module.d.ts +0 -10
  569. package/quantity-field/examples/select-max-quantity-field/select-max-quantity-field.module.d.ts +0 -10
  570. package/radio/examples/basic-radio/basic-radio.module.d.ts +0 -9
  571. package/sidebar/examples/basic-sidebar/basic-sidebar.module.d.ts +0 -10
  572. package/sidebar/examples/over-and-under-sidebars/over-and-under-sidebars.module.d.ts +0 -13
  573. package/sidebar/examples/side-fixed-sidebar/side-fixed-sidebar.module.d.ts +0 -10
  574. package/sidebar/examples/sidebar-with-sticky-content/sidebar-with-sticky-content.module.d.ts +0 -9
  575. package/toast/examples/default-toast/default-toast.module.d.ts +0 -11
  576. package/toast/examples/toast-positions/toast-positions.module.d.ts +0 -12
  577. package/toast/examples/toast-status/toast-status.module.d.ts +0 -12
  578. package/toast/examples/toast-with-custom-duration/toast-with-custom-duration.module.d.ts +0 -10
  579. package/tree/examples/basic-tree/basic-tree.module.d.ts +0 -10
@@ -1,15 +1,16 @@
1
1
  import * as i2 from '@angular/common';
2
- import { CommonModule, DOCUMENT } from '@angular/common';
2
+ import { CommonModule, isPlatformBrowser, DOCUMENT } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, ViewEncapsulation, HostBinding, Input, ContentChild, ChangeDetectionStrategy, NgModule, Optional, Self, HostListener, EventEmitter, ElementRef, ViewChild, Output, Directive, ContentChildren, Injectable, Inject, APP_INITIALIZER } from '@angular/core';
4
+ import { Component, ViewEncapsulation, HostBinding, Input, ContentChild, ChangeDetectionStrategy, NgModule, Optional, Self, HostListener, EventEmitter, ElementRef, ViewChild, Output, Directive, ContentChildren, Injectable, InjectionToken, inject, PLATFORM_ID, Inject, APP_INITIALIZER } from '@angular/core';
5
5
  import * as i2$1 from '@fortawesome/angular-fontawesome';
6
6
  import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
7
7
  import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
8
8
  import * as i1 from '@angular/forms';
9
9
  import { UntypedFormControl, ReactiveFormsModule } from '@angular/forms';
10
10
  import { coerceNumberProperty } from '@angular/cdk/coercion';
11
- import { Subject, fromEventPattern, of, merge, fromEvent, EMPTY, combineLatest } from 'rxjs';
11
+ import { Subject, of, fromEventPattern, merge, fromEvent, EMPTY, combineLatest } from 'rxjs';
12
12
  import { takeUntil, startWith, map, catchError, filter, shareReplay } from 'rxjs/operators';
13
+ import { BreakpointObserver } from '@angular/cdk/layout';
13
14
  import { DaffServerSafePersistenceServiceToken } from '@daffodil/core';
14
15
 
15
16
  class DaffErrorStateMatcher {
@@ -1415,61 +1416,116 @@ function daffPrefixableMixin(Base) {
1415
1416
  return PrefixableDirective;
1416
1417
  }
1417
1418
 
1419
+ /**
1420
+ * Enumerates the available color palette options for a component.
1421
+ * These values can be used to apply specific color styles to components within the
1422
+ * application.
1423
+ */
1418
1424
  var DaffPaletteEnum;
1419
1425
  (function (DaffPaletteEnum) {
1420
- DaffPaletteEnum["PRIMARY"] = "primary";
1421
- DaffPaletteEnum["SECONDARY"] = "secondary";
1422
- DaffPaletteEnum["ACCENT"] = "accent";
1423
- DaffPaletteEnum["TERTIARY"] = "tertiary";
1424
- DaffPaletteEnum["BLACK"] = "black";
1425
- DaffPaletteEnum["WHITE"] = "white";
1426
- DaffPaletteEnum["THEME"] = "theme";
1427
- DaffPaletteEnum["THEMECONTRAST"] = "theme-contrast";
1426
+ /**
1427
+ * Your primary color.
1428
+ */
1429
+ DaffPaletteEnum["Primary"] = "primary";
1430
+ /**
1431
+ * Your secondary color.
1432
+ */
1433
+ DaffPaletteEnum["Secondary"] = "secondary";
1434
+ /**
1435
+ * Your tertiary color.
1436
+ */
1437
+ DaffPaletteEnum["Tertiary"] = "tertiary";
1438
+ /**
1439
+ * Black. It's dark.
1440
+ */
1441
+ DaffPaletteEnum["Black"] = "black";
1442
+ /**
1443
+ * White. It's bright.
1444
+ */
1445
+ DaffPaletteEnum["White"] = "white";
1446
+ /**
1447
+ * The default color for your theme.
1448
+ */
1449
+ DaffPaletteEnum["Theme"] = "theme";
1450
+ /**
1451
+ * A color that constrats against your defined theme.
1452
+ */
1453
+ DaffPaletteEnum["ThemeContrast"] = "theme-contrast";
1428
1454
  })(DaffPaletteEnum || (DaffPaletteEnum = {}));
1429
1455
 
1430
- function colorInPalette(color) {
1431
- return Object.values(DaffPaletteEnum).includes(color);
1432
- }
1433
-
1456
+ const colorInPalette = (color) => Object.values(DaffPaletteEnum).includes(color);
1457
+ const validateColor = (color) => {
1458
+ if (color !== undefined && !colorInPalette(color)) {
1459
+ console.warn(color + ' is not a valid color in DaffPalette');
1460
+ }
1461
+ };
1434
1462
  /**
1435
- * This should be a trait, but typescript only supports mixins.
1436
- * See: https://github.com/Microsoft/TypeScript/issues/311
1463
+ * The `DaffColorableDirective` allows a component to conditionally apply color-specific
1464
+ * styles by setting CSS classes based on the specified color. This directive is useful
1465
+ * for applying different color palettes to a component in an Angular application.
1466
+ *
1467
+ * ## Usage
1437
1468
  *
1438
- * Turns out the material team followed the same path with the color mixin.
1439
- * https://github.com/angular/material2/blob/master/src/lib/core/common-behaviors/color.ts
1469
+ * ## Example
1470
+ *
1471
+ * ```html
1472
+ * <div daffColorable [color]="componentColor">Colored content</div>
1473
+ * ```
1474
+ *
1475
+ * ## Styles
1476
+ *
1477
+ * The directive applies the following CSS classes based on the color:
1478
+ *
1479
+ * - `daff-primary`: Applied when the color is `primary`.
1480
+ * - `daff-secondary`: Applied when the color is `secondary`.
1481
+ * - `daff-tertiary`: Applied when the color is `tertiary`.
1482
+ * - `daff-black`: Applied when the color is `black`.
1483
+ * - `daff-white`: Applied when the color is `white`.
1484
+ * - `daff-theme`: Applied when the color is `theme`.
1485
+ * - `daff-theme-contrast`: Applied when the color is `theme-contrast`.
1440
1486
  */
1441
- function daffColorMixin(Base, defaultColor) {
1442
- class DaffColorableMixinClass extends Base {
1443
- get color() {
1444
- return this._color;
1445
- }
1446
- set color(value) {
1447
- //Handle the default color
1448
- const incomingColor = value || defaultColor;
1449
- if (incomingColor !== undefined && !colorInPalette(incomingColor)) {
1450
- throw new TypeError(incomingColor + ' is not a valid color for the DaffPalette');
1451
- }
1452
- if (incomingColor !== this._color) { //Only run the dom-render if a change occurs
1453
- //Remove the old color
1454
- if (this._color) {
1455
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._color}`);
1456
- }
1457
- if (incomingColor) {
1458
- this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingColor}`);
1459
- }
1460
- this._color = incomingColor;
1461
- }
1487
+ class DaffColorableDirective {
1488
+ /**
1489
+ * Dynamically sets the CSS classes based on the color.
1490
+ * @docs-private
1491
+ */
1492
+ get class() {
1493
+ return {
1494
+ 'daff-primary': this.color === DaffPaletteEnum.Primary,
1495
+ 'daff-secondary': this.color === DaffPaletteEnum.Secondary,
1496
+ 'daff-tertiary': this.color === DaffPaletteEnum.Tertiary,
1497
+ 'daff-black': this.color === DaffPaletteEnum.Black,
1498
+ 'daff-white': this.color === DaffPaletteEnum.White,
1499
+ 'daff-theme': this.color === DaffPaletteEnum.Theme,
1500
+ 'daff-theme-contrast': this.color === DaffPaletteEnum.ThemeContrast,
1501
+ };
1502
+ }
1503
+ ngOnChanges(changes) {
1504
+ if (!changes.color.currentValue) {
1505
+ this.color = this.defaultColor;
1462
1506
  }
1463
- constructor(...args) {
1464
- super(...args);
1465
- this.color = defaultColor;
1507
+ }
1508
+ ngOnInit() {
1509
+ validateColor(this.color);
1510
+ if (!this.color) {
1511
+ this.color = this.defaultColor;
1466
1512
  }
1467
1513
  }
1468
- ;
1469
- // TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
1470
- Input()(DaffColorableMixinClass.prototype, 'color');
1471
- return DaffColorableMixinClass;
1514
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffColorableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1515
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffColorableDirective, isStandalone: true, selector: "[daffColorable]", inputs: { color: "color" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
1472
1516
  }
1517
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffColorableDirective, decorators: [{
1518
+ type: Directive,
1519
+ args: [{
1520
+ selector: '[daffColorable]',
1521
+ standalone: true,
1522
+ }]
1523
+ }], propDecorators: { class: [{
1524
+ type: HostBinding,
1525
+ args: ['class']
1526
+ }], color: [{
1527
+ type: Input
1528
+ }] } });
1473
1529
 
1474
1530
  var DaffBreakpoints;
1475
1531
  (function (DaffBreakpoints) {
@@ -1481,12 +1537,46 @@ var DaffBreakpoints;
1481
1537
  DaffBreakpoints["MOBILE"] = "(min-width: 480px)";
1482
1538
  })(DaffBreakpoints || (DaffBreakpoints = {}));
1483
1539
 
1540
+ /**
1541
+ * A stubbed out breakpoint observer service.
1542
+ */
1543
+ class NoopBreakpointObserver {
1544
+ // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method, @angular-eslint/use-lifecycle-interface
1545
+ ngOnDestroy() { }
1546
+ isMatched(value) {
1547
+ return false;
1548
+ }
1549
+ observe(value) {
1550
+ return of();
1551
+ }
1552
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1553
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, providedIn: 'root' }); }
1554
+ }
1555
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: NoopBreakpointObserver, decorators: [{
1556
+ type: Injectable,
1557
+ args: [{
1558
+ providedIn: 'root',
1559
+ }]
1560
+ }] });
1561
+
1562
+ /**
1563
+ * Provides a {@link NoopBreakpointObserver} if the platform is not browser.
1564
+ */
1565
+ const SERVER_SAFE_BREAKPOINT_OBSERVER = new InjectionToken('SERVER_SAFE_BREAKPOINT_OBSERVER', {
1566
+ factory: () => isPlatformBrowser(inject(PLATFORM_ID))
1567
+ ? inject(BreakpointObserver)
1568
+ : inject(NoopBreakpointObserver),
1569
+ });
1570
+
1484
1571
  /**
1485
1572
  * A basic constructor type useful for mixins
1486
1573
  * See https://blog.mariusschulz.com/2017/05/26/typescript-2-2-mixin-classes
1487
1574
  * for a really good explanation of why mixins are useful.
1488
1575
  */
1489
1576
 
1577
+ /**
1578
+ * The `DaffStatusEnum` enumerates the possible status values for a component.
1579
+ */
1490
1580
  var DaffStatusEnum;
1491
1581
  (function (DaffStatusEnum) {
1492
1582
  DaffStatusEnum["Warn"] = "warn";
@@ -1494,62 +1584,83 @@ var DaffStatusEnum;
1494
1584
  DaffStatusEnum["Success"] = "success";
1495
1585
  })(DaffStatusEnum || (DaffStatusEnum = {}));
1496
1586
 
1497
- function daffStatusMixin(Base, defaultStatus) {
1498
- class DaffStatusMixinClass extends Base {
1499
- get status() {
1500
- return this._status;
1501
- }
1502
- set status(value) {
1503
- // Handles the default status
1504
- const incomingStatus = value || defaultStatus;
1505
- if (incomingStatus === this._status) { // Only run the dom-render if a change occurs
1506
- return;
1507
- }
1508
- // Removes the old status
1509
- if (this._status) {
1510
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._status}`);
1511
- }
1512
- if (incomingStatus) {
1513
- this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingStatus}`);
1514
- }
1515
- this._status = incomingStatus;
1516
- }
1517
- constructor(...args) {
1518
- super(...args);
1519
- this.status = defaultStatus;
1520
- }
1587
+ /**
1588
+ * The `DaffStatusableDirective` allows a component to conditionally apply status-specific
1589
+ * styles by setting CSS classes based on the specified status. This directive is useful
1590
+ * for indicating different statuses such as warnings, errors, or success states.
1591
+ *
1592
+ * ## Example
1593
+ *
1594
+ * ```html
1595
+ * <div daffStatusable [status]="componentStatus">Status content</div>
1596
+ * ```
1597
+ *
1598
+ * ## Styles
1599
+ *
1600
+ * The directive applies the following CSS classes based on the status:
1601
+ *
1602
+ * - `daff-warn`: Applied when the status is `Warn`.
1603
+ * - `daff-danger`: Applied when the status is `Danger`.
1604
+ * - `daff-success`: Applied when the status is `Success`.
1605
+ */
1606
+ class DaffStatusableDirective {
1607
+ /**
1608
+ * Dynamically sets the CSS classes based on the status.
1609
+ * @docs-private
1610
+ */
1611
+ get class() {
1612
+ return {
1613
+ 'daff-warn': this.status === DaffStatusEnum.Warn,
1614
+ 'daff-danger': this.status === DaffStatusEnum.Danger,
1615
+ 'daff-success': this.status === DaffStatusEnum.Success,
1616
+ };
1521
1617
  }
1522
- ;
1523
- // TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
1524
- Input()(DaffStatusMixinClass.prototype, 'status');
1525
- return DaffStatusMixinClass;
1618
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffStatusableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1619
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffStatusableDirective, isStandalone: true, selector: "[daffStatusable]", inputs: { status: "status" }, host: { properties: { "class": "this.class" } }, ngImport: i0 }); }
1526
1620
  }
1621
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffStatusableDirective, decorators: [{
1622
+ type: Directive,
1623
+ args: [{
1624
+ selector: '[daffStatusable]',
1625
+ standalone: true,
1626
+ }]
1627
+ }], propDecorators: { class: [{
1628
+ type: HostBinding,
1629
+ args: ['class']
1630
+ }], status: [{
1631
+ type: Input
1632
+ }] } });
1527
1633
 
1528
- function daffSkeletonableMixin(Base, defaultSkeleton = false) {
1529
- return class extends Base {
1530
- get skeleton() {
1531
- return this._skeleton;
1532
- }
1533
- set skeleton(value) {
1534
- // Handles the default skeleton
1535
- const incomingSkeleton = value || defaultSkeleton;
1536
- if (incomingSkeleton === this._skeleton) { // Only run the dom-render if a change occurs
1537
- return;
1538
- }
1539
- if (incomingSkeleton) {
1540
- this._renderer.addClass(this._elementRef.nativeElement, `daff-skeleton`);
1541
- }
1542
- else {
1543
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-skeleton`);
1544
- }
1545
- this._skeleton = incomingSkeleton;
1546
- }
1547
- constructor(...args) {
1548
- super(...args);
1549
- this.skeleton = defaultSkeleton;
1550
- }
1551
- };
1634
+ /**
1635
+ * The `DaffSkeletonableDirective` allows a component to display a skeleton loading
1636
+ * state by conditionally applying a CSS class. This is useful for indicating to
1637
+ * users that content is loading or being processed. This directive can be used to
1638
+ * apply a skeleton loading state to any component by toggling the `skeleton`
1639
+ * input property. When `skeleton` is `true`, the `daff-skeleton` CSS class
1640
+ * is applied, which should style the component to look like a loading placeholder.
1641
+ *
1642
+ * The styles for the`daff-skeleton` class should be defined component's
1643
+ * stylesheets to display the loading state as desired.
1644
+ */
1645
+ class DaffSkeletonableDirective {
1646
+ constructor() {
1647
+ this.skeleton = false;
1648
+ }
1649
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSkeletonableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1650
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffSkeletonableDirective, isStandalone: true, selector: "[daffSkeletonable]", inputs: { skeleton: "skeleton" }, host: { properties: { "class.daff-skeleton": "this.skeleton" } }, ngImport: i0 }); }
1552
1651
  }
1652
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSkeletonableDirective, decorators: [{
1653
+ type: Directive,
1654
+ args: [{
1655
+ selector: '[daffSkeletonable]',
1656
+ standalone: true,
1657
+ }]
1658
+ }], propDecorators: { skeleton: [{
1659
+ type: Input
1660
+ }, {
1661
+ type: HostBinding,
1662
+ args: ['class.daff-skeleton']
1663
+ }] } });
1553
1664
 
1554
1665
  var DaffTextAlignmentEnum;
1555
1666
  (function (DaffTextAlignmentEnum) {
@@ -1558,91 +1669,166 @@ var DaffTextAlignmentEnum;
1558
1669
  DaffTextAlignmentEnum["Right"] = "right";
1559
1670
  })(DaffTextAlignmentEnum || (DaffTextAlignmentEnum = {}));
1560
1671
 
1561
- function daffTextAlignmentMixin(Base, defaultTextAlignment) {
1562
- class DaffTextAlignableMixin extends Base {
1563
- /**
1564
- * Controls text alignment for component-specific UI
1565
- */
1566
- get textAlignment() {
1567
- return this._textAlignment;
1568
- }
1569
- set textAlignment(value) {
1570
- // Handles the default text alignment
1571
- const incomingTextAlignment = value || defaultTextAlignment;
1572
- if (incomingTextAlignment === this._textAlignment) { // Only run the dom-render if a change occurs
1573
- return;
1574
- }
1575
- // Removes the old text alignment
1576
- if (this._textAlignment) {
1577
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._textAlignment}`);
1578
- }
1579
- if (incomingTextAlignment) {
1580
- this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingTextAlignment}`);
1581
- }
1582
- this._textAlignment = incomingTextAlignment;
1583
- }
1584
- constructor(...args) {
1585
- super(...args);
1586
- this.textAlignment = defaultTextAlignment;
1672
+ /**
1673
+ * The `DaffTextAlignableDirective` allows for dynamic text alignment of a component
1674
+ * by setting CSS classes based on the specified text alignment. This directive is
1675
+ * useful when text alignment needs to be managed dynamically in an Angular component.
1676
+ *
1677
+ * ## Example
1678
+ *
1679
+ * ```html
1680
+ * <div daffTextAlignable textAlignment="center">Aligned text</div>
1681
+ * ```
1682
+ *
1683
+ * ## Why not just use CSS?
1684
+ *
1685
+ * While the native CSS `text-align` property can be used for static text alignment,
1686
+ * the `DaffTextAlignableDirective` provides a structured and consistent way to handle
1687
+ * dynamic text alignment within Angular components in more complex use-cases
1688
+ * application of `text-align:center` would cause unexpected side effects.
1689
+ */
1690
+ class DaffTextAlignableDirective {
1691
+ /**
1692
+ * @docs-private
1693
+ */
1694
+ get class() {
1695
+ return {
1696
+ 'daff-left': this.textAlignment === DaffTextAlignmentEnum.Left,
1697
+ 'daff-center': this.textAlignment === DaffTextAlignmentEnum.Center,
1698
+ 'daff-right': this.textAlignment === DaffTextAlignmentEnum.Right,
1699
+ };
1700
+ }
1701
+ ngOnChanges(changes) {
1702
+ if (!changes.textAlignment?.currentValue) {
1703
+ this.textAlignment = this.defaultAlignment;
1587
1704
  }
1588
1705
  }
1589
- ;
1590
- // TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
1591
- Input()(DaffTextAlignableMixin.prototype, 'textAlignment');
1592
- return DaffTextAlignableMixin;
1706
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffTextAlignableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1707
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffTextAlignableDirective, isStandalone: true, selector: "[daffTextAlignable]", inputs: { textAlignment: "textAlignment" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
1593
1708
  }
1709
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffTextAlignableDirective, decorators: [{
1710
+ type: Directive,
1711
+ args: [{
1712
+ selector: '[daffTextAlignable]',
1713
+ standalone: true,
1714
+ }]
1715
+ }], propDecorators: { class: [{
1716
+ type: HostBinding,
1717
+ args: ['class']
1718
+ }], textAlignment: [{
1719
+ type: Input
1720
+ }] } });
1594
1721
 
1595
- function daffCompactableMixin(Base, defaultCompact = false) {
1596
- return class extends Base {
1597
- get compact() {
1598
- return this._compact;
1599
- }
1600
- set compact(value) {
1601
- // Handles the default compact
1602
- const incomingCompact = value || defaultCompact;
1603
- if (incomingCompact === this._compact) { // Only run the dom-render if a change occurs
1604
- return;
1605
- }
1606
- if (incomingCompact) {
1607
- this._renderer.addClass(this._elementRef.nativeElement, `daff-compact`);
1608
- }
1609
- else {
1610
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-compact`);
1611
- }
1612
- this._compact = incomingCompact;
1613
- }
1614
- constructor(...args) {
1615
- super(...args);
1616
- this.compact = defaultCompact;
1617
- }
1618
- };
1722
+ /**
1723
+ * The `DaffCompactableDirective` allows a component to conditionally apply a compact
1724
+ * style by toggling a CSS class. This is useful for creating components that can
1725
+ * switch between regular and compact styles based on the `compact` property.
1726
+ *
1727
+ * ## Example
1728
+ *
1729
+ * ```html
1730
+ * <div daffCompactable [compact]="isCompact">Content goes here</div>
1731
+ * ```
1732
+ *
1733
+ * In this example, the `daff-compact` class is applied to the `div` element when
1734
+ * `isCompact` is `true`, making the `div` display its compact state.
1735
+ *
1736
+ * ## Styles
1737
+ *
1738
+ * The `daff-compact` class should be defined in your styles to display the compact
1739
+ * state as desired.
1740
+ */
1741
+ class DaffCompactableDirective {
1742
+ constructor() {
1743
+ this.compact = false;
1744
+ }
1745
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCompactableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1746
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffCompactableDirective, isStandalone: true, selector: "[daffCompactable]", inputs: { compact: "compact" }, host: { properties: { "class.daff-compact": "this.compact" } }, ngImport: i0 }); }
1619
1747
  }
1748
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffCompactableDirective, decorators: [{
1749
+ type: Directive,
1750
+ args: [{
1751
+ selector: '[daffCompactable]',
1752
+ standalone: true,
1753
+ }]
1754
+ }], propDecorators: { compact: [{
1755
+ type: Input
1756
+ }, {
1757
+ type: HostBinding,
1758
+ args: ['class.daff-compact']
1759
+ }] } });
1620
1760
 
1621
1761
  /**
1622
- * A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
1623
- * It passes predetermined layout styles down to the container. In order for a component to
1624
- * do this, it must implement this mixin.
1762
+ * A directive that gives a component the ability to manage a DaffContainerComponent's layout.
1763
+ * By including this directive, predetermined layout styles are passed down to the container.
1764
+ *
1765
+ * To understand the motivation for this directive, consider:
1766
+ *
1767
+ * ```html
1768
+ * <daff-container>
1769
+ * <daff-hero></daff-hero>
1770
+ * </daff-container>
1771
+ * ```
1772
+ * vs.
1773
+ *
1774
+ * ```html
1775
+ * <daff-hero>
1776
+ * <daff-container></daff-container>
1777
+ * </daff-hero>
1778
+ * ```
1779
+ *
1780
+ * The former may inappropriately constrain the width of its child elements,
1781
+ * while the latter (without `DaffManageContainerLayoutDirective`) may unexpectedly
1782
+ * interfere in the layout features of its parent element (i.e. display: grid, display: flex).
1625
1783
  */
1626
- function daffManageContainerLayoutMixin(Base) {
1627
- return class extends Base {
1628
- constructor(...args) {
1629
- super(...args);
1630
- this._renderer.addClass(this._elementRef.nativeElement, `daff-manage-container-layout`);
1631
- }
1632
- };
1784
+ class DaffManageContainerLayoutDirective {
1785
+ constructor() {
1786
+ this.class = true;
1787
+ }
1788
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffManageContainerLayoutDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1789
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffManageContainerLayoutDirective, isStandalone: true, selector: "[daffManageContainerLayout]", host: { properties: { "class.daff-manage-container-layout": "this.class" } }, ngImport: i0 }); }
1633
1790
  }
1791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffManageContainerLayoutDirective, decorators: [{
1792
+ type: Directive,
1793
+ args: [{
1794
+ selector: '[daffManageContainerLayout]',
1795
+ standalone: true,
1796
+ }]
1797
+ }], propDecorators: { class: [{
1798
+ type: HostBinding,
1799
+ args: ['class.daff-manage-container-layout']
1800
+ }] } });
1634
1801
 
1635
1802
  /**
1636
- * A mixin for giving a component the ability to prevent article styles from cascading down.
1803
+ * The `DaffArticleEncapsulatedDirective` is used to encapsulate custom components
1804
+ * within an article, preventing article styles from bleeding into the component.
1805
+ *
1806
+ * ## Example
1807
+ *
1808
+ * ```html
1809
+ * <my-custom-component daffArticleEncapsulated></my-custom-component>
1810
+ * ```
1811
+ *
1812
+ * This directive will apply the `daff-ae` class to your component, ensuring that it is encapsulated
1813
+ * from the article's styles.
1637
1814
  */
1638
- function daffArticleEncapsulatedMixin(Base) {
1639
- return class extends Base {
1640
- constructor(...args) {
1641
- super(...args);
1642
- this._renderer.addClass(this._elementRef.nativeElement, `daff-ae`);
1643
- }
1644
- };
1815
+ class DaffArticleEncapsulatedDirective {
1816
+ constructor() {
1817
+ this.class = true;
1818
+ }
1819
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffArticleEncapsulatedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1820
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffArticleEncapsulatedDirective, isStandalone: true, selector: "[daffArticleEncapsulated]", host: { properties: { "class.daff-ae": "this.class" } }, ngImport: i0 }); }
1645
1821
  }
1822
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffArticleEncapsulatedDirective, decorators: [{
1823
+ type: Directive,
1824
+ args: [{
1825
+ selector: '[daffArticleEncapsulated]',
1826
+ standalone: true,
1827
+ }]
1828
+ }], propDecorators: { class: [{
1829
+ type: HostBinding,
1830
+ args: ['class.daff-ae']
1831
+ }] } });
1646
1832
 
1647
1833
  /**
1648
1834
  * The possible states of a theme.
@@ -1957,8 +2143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
1957
2143
  }] }] });
1958
2144
 
1959
2145
  /**
1960
- * An interface for giving a component the ability to customize sizing for component-specific UI.
1961
- * In order to be sizable, a component class must implement this property.
2146
+ * Interfaces that gives a component the ability to customize sizing for component specific UI.
1962
2147
  */
1963
2148
  var DaffSizableEnum;
1964
2149
  (function (DaffSizableEnum) {
@@ -1969,35 +2154,55 @@ var DaffSizableEnum;
1969
2154
  DaffSizableEnum["XLarge"] = "xl";
1970
2155
  })(DaffSizableEnum || (DaffSizableEnum = {}));
1971
2156
 
1972
- function daffSizeMixin(Base, defaultSize) {
1973
- class DaffSizeMixinClass extends Base {
1974
- get size() {
1975
- return this._size;
1976
- }
1977
- set size(value) {
1978
- // Handles the default size
1979
- const incomingSize = value || defaultSize;
1980
- if (incomingSize !== this._size) { //Only run the dom-render if a change occurs
1981
- //Remove the old size
1982
- if (this._size) {
1983
- this._renderer.removeClass(this._elementRef.nativeElement, `daff-${this._size}`);
1984
- }
1985
- if (incomingSize) {
1986
- this._renderer.addClass(this._elementRef.nativeElement, `daff-${incomingSize}`);
1987
- }
1988
- this._size = incomingSize;
1989
- }
2157
+ /**
2158
+ * The `DaffSizableDirective` allows for dynamic sizing of a component by setting
2159
+ * CSS classes based on the specified size.
2160
+ *
2161
+ * ## Example
2162
+ *
2163
+ * ```html
2164
+ * <div daffSizable [size]="componentSize">Sized content</div>
2165
+ * ```
2166
+ */
2167
+ class DaffSizableDirective {
2168
+ /**
2169
+ * Dynamically sets the CSS classes based on the size.
2170
+ * @docs-private
2171
+ */
2172
+ get class() {
2173
+ return {
2174
+ 'daff-xs': this.size === DaffSizableEnum.XSmall,
2175
+ 'daff-sm': this.size === DaffSizableEnum.Small,
2176
+ 'daff-md': this.size === DaffSizableEnum.Medium,
2177
+ 'daff-lg': this.size === DaffSizableEnum.Large,
2178
+ 'daff-xl': this.size === DaffSizableEnum.XLarge,
2179
+ };
2180
+ }
2181
+ ngOnChanges(changes) {
2182
+ if (!changes.size?.currentValue) {
2183
+ this.size = this.defaultSize;
1990
2184
  }
1991
- constructor(...args) {
1992
- super(...args);
1993
- this.size = defaultSize;
2185
+ }
2186
+ ngOnInit() {
2187
+ if (!this.size) {
2188
+ this.size = this.defaultSize;
1994
2189
  }
1995
2190
  }
1996
- ;
1997
- // TODO: ugly workaround for https://github.com/microsoft/TypeScript/issues/7342#issuecomment-624298133
1998
- Input()(DaffSizeMixinClass.prototype, 'size');
1999
- return DaffSizeMixinClass;
2191
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSizableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
2192
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.10", type: DaffSizableDirective, isStandalone: true, selector: "[daffSizable]", inputs: { size: "size" }, host: { properties: { "class": "this.class" } }, usesOnChanges: true, ngImport: i0 }); }
2000
2193
  }
2194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: DaffSizableDirective, decorators: [{
2195
+ type: Directive,
2196
+ args: [{
2197
+ selector: '[daffSizable]',
2198
+ standalone: true,
2199
+ }]
2200
+ }], propDecorators: { class: [{
2201
+ type: HostBinding,
2202
+ args: ['class']
2203
+ }], size: [{
2204
+ type: Input
2205
+ }] } });
2001
2206
 
2002
2207
  // Core
2003
2208
 
@@ -2015,5 +2220,5 @@ function daffSizeMixin(Base, defaultSize) {
2015
2220
  * Generated bundle index. Do not edit.
2016
2221
  */
2017
2222
 
2018
- export { DAFF_THEME_INITIALIZER, DaffBreakpoints, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffInputComponent, DaffInputModule, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableEnum, DaffStatusEnum, DaffSuffixDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, daffArticleEncapsulatedMixin, daffColorMixin, daffCompactableMixin, daffFocusableElementsSelector, daffManageContainerLayoutMixin, daffPrefixableMixin, daffSizeMixin, daffSkeletonableMixin, daffStatusMixin, daffSuffixableMixin, daffTextAlignmentMixin };
2223
+ export { DAFF_THEME_INITIALIZER, DaffArticleEncapsulatedDirective, DaffBreakpoints, DaffCheckboxComponent, DaffCheckboxControlValueAccessorDirective, DaffCheckboxModule, DaffCheckboxSetComponent, DaffColorableDirective, DaffCompactableDirective, DaffErrorMessageComponent, DaffErrorMessageModule, DaffErrorStateMatcher, DaffFocusStackService, DaffFormFieldComponent, DaffFormFieldControl, DaffFormFieldModule, DaffFormLabelDirective, DaffFormLabelModule, DaffInputComponent, DaffInputModule, DaffManageContainerLayoutDirective, DaffNativeSelectComponent, DaffNativeSelectModule, DaffPrefixDirective, DaffPrefixSuffixModule, DaffQuantityFieldComponent, DaffQuantityFieldModule, DaffQuantityInputComponent, DaffQuantitySelectComponent, DaffRadioComponent, DaffRadioControlValueAccessorDirective, DaffRadioModule, DaffRadioSetComponent, DaffSizableDirective, DaffSizableEnum, DaffSkeletonableDirective, DaffStatusEnum, DaffStatusableDirective, DaffSuffixDirective, DaffTextAlignableDirective, DaffTextAlignmentEnum, DaffTheme, DaffThemingService, NoopBreakpointObserver, SERVER_SAFE_BREAKPOINT_OBSERVER, daffFocusableElementsSelector, daffPrefixableMixin, daffSuffixableMixin };
2019
2224
  //# sourceMappingURL=daffodil-design.mjs.map