@daffodil/design 0.39.5 → 0.39.9

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 (281) hide show
  1. package/README.md +62 -34
  2. package/accordion/examples/daffodil-design-accordion-examples.metadata.json +1 -1
  3. package/article/examples/daffodil-design-article-examples.metadata.json +1 -1
  4. package/bundles/daffodil-design-accordion-examples.umd.js +4 -2
  5. package/bundles/daffodil-design-accordion-examples.umd.js.map +1 -1
  6. package/bundles/daffodil-design-accordion-examples.umd.min.js +1 -1
  7. package/bundles/daffodil-design-accordion-examples.umd.min.js.map +1 -1
  8. package/bundles/daffodil-design-article-examples.umd.js +22 -11
  9. package/bundles/daffodil-design-article-examples.umd.js.map +1 -1
  10. package/bundles/daffodil-design-article-examples.umd.min.js +1 -1
  11. package/bundles/daffodil-design-article-examples.umd.min.js.map +1 -1
  12. package/bundles/daffodil-design-button-examples.umd.js +7 -0
  13. package/bundles/daffodil-design-button-examples.umd.js.map +1 -1
  14. package/bundles/daffodil-design-button-examples.umd.min.js +1 -1
  15. package/bundles/daffodil-design-button-examples.umd.min.js.map +1 -1
  16. package/bundles/daffodil-design-callout-examples.umd.js +60 -9
  17. package/bundles/daffodil-design-callout-examples.umd.js.map +1 -1
  18. package/bundles/daffodil-design-callout-examples.umd.min.js +1 -1
  19. package/bundles/daffodil-design-callout-examples.umd.min.js.map +1 -1
  20. package/bundles/daffodil-design-card-examples.umd.js +156 -14
  21. package/bundles/daffodil-design-card-examples.umd.js.map +1 -1
  22. package/bundles/daffodil-design-card-examples.umd.min.js +1 -1
  23. package/bundles/daffodil-design-card-examples.umd.min.js.map +1 -1
  24. package/bundles/daffodil-design-checkbox-examples.umd.js +4 -2
  25. package/bundles/daffodil-design-checkbox-examples.umd.js.map +1 -1
  26. package/bundles/daffodil-design-checkbox-examples.umd.min.js +1 -1
  27. package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +1 -1
  28. package/bundles/daffodil-design-container-examples.umd.js +65 -0
  29. package/bundles/daffodil-design-container-examples.umd.js.map +1 -0
  30. package/bundles/daffodil-design-container-examples.umd.min.js +2 -0
  31. package/bundles/daffodil-design-container-examples.umd.min.js.map +1 -0
  32. package/bundles/daffodil-design-hero-examples.umd.js +63 -8
  33. package/bundles/daffodil-design-hero-examples.umd.js.map +1 -1
  34. package/bundles/daffodil-design-hero-examples.umd.min.js +1 -1
  35. package/bundles/daffodil-design-hero-examples.umd.min.js.map +1 -1
  36. package/bundles/daffodil-design-list-examples.umd.js +8 -4
  37. package/bundles/daffodil-design-list-examples.umd.js.map +1 -1
  38. package/bundles/daffodil-design-list-examples.umd.min.js +1 -1
  39. package/bundles/daffodil-design-list-examples.umd.min.js.map +1 -1
  40. package/bundles/daffodil-design-loading-icon-examples.umd.js +4 -2
  41. package/bundles/daffodil-design-loading-icon-examples.umd.js.map +1 -1
  42. package/bundles/daffodil-design-loading-icon-examples.umd.min.js +1 -1
  43. package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +1 -1
  44. package/bundles/daffodil-design-media-gallery-examples.umd.js +4 -2
  45. package/bundles/daffodil-design-media-gallery-examples.umd.js.map +1 -1
  46. package/bundles/daffodil-design-media-gallery-examples.umd.min.js +1 -1
  47. package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +1 -1
  48. package/bundles/daffodil-design-modal-examples.umd.js +4 -2
  49. package/bundles/daffodil-design-modal-examples.umd.js.map +1 -1
  50. package/bundles/daffodil-design-modal-examples.umd.min.js +1 -1
  51. package/bundles/daffodil-design-modal-examples.umd.min.js.map +1 -1
  52. package/bundles/daffodil-design-quantity-field-examples.umd.js +4 -0
  53. package/bundles/daffodil-design-quantity-field-examples.umd.js.map +1 -1
  54. package/bundles/daffodil-design-quantity-field-examples.umd.min.js +1 -1
  55. package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +1 -1
  56. package/bundles/daffodil-design-radio-examples.umd.js +2 -1
  57. package/bundles/daffodil-design-radio-examples.umd.js.map +1 -1
  58. package/bundles/daffodil-design-radio-examples.umd.min.js +1 -1
  59. package/bundles/daffodil-design-radio-examples.umd.min.js.map +1 -1
  60. package/bundles/daffodil-design.umd.js +397 -98
  61. package/bundles/daffodil-design.umd.js.map +1 -1
  62. package/bundles/daffodil-design.umd.min.js +2 -2
  63. package/bundles/daffodil-design.umd.min.js.map +1 -1
  64. package/button/examples/daffodil-design-button-examples.metadata.json +1 -1
  65. package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +1 -0
  66. package/callout/examples/callout-theming/callout-theming.component.d.ts +1 -0
  67. package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +1 -0
  68. package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
  69. package/callout/examples/compact-callout/compact-callout.module.d.ts +2 -0
  70. package/callout/examples/daffodil-design-callout-examples.metadata.json +1 -1
  71. package/callout/examples/public_api.d.ts +2 -0
  72. package/card/examples/basic-card/basic-card.component.d.ts +1 -0
  73. package/card/examples/card-orientation/card-orientation.component.d.ts +9 -0
  74. package/card/examples/card-orientation/card-orientation.module.d.ts +2 -0
  75. package/card/examples/card-theming/card-theming.component.d.ts +4 -2
  76. package/card/examples/daffodil-design-card-examples.d.ts +2 -0
  77. package/card/examples/daffodil-design-card-examples.metadata.json +1 -1
  78. package/card/examples/linkable-card/linkable-card.component.d.ts +8 -0
  79. package/card/examples/public_api.d.ts +5 -1
  80. package/card/examples/raised-card/raised-card.component.d.ts +6 -0
  81. package/card/examples/stroked-card/stroked-card.component.d.ts +8 -0
  82. package/card/examples/stroked-card/stroked-card.module.d.ts +2 -0
  83. package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +1 -1
  84. package/container/examples/container-sizes/container-sizes.component.d.ts +8 -0
  85. package/container/examples/container-sizes/container-sizes.module.d.ts +2 -0
  86. package/container/examples/daffodil-design-container-examples.d.ts +4 -0
  87. package/container/examples/daffodil-design-container-examples.metadata.json +1 -0
  88. package/container/examples/examples.d.ts +2 -0
  89. package/container/examples/index.d.ts +1 -0
  90. package/container/examples/package.json +11 -0
  91. package/container/examples/public_api.d.ts +3 -0
  92. package/core/compactable/compactable-mixin.d.ts +14 -0
  93. package/core/compactable/compactable.d.ts +7 -0
  94. package/core/compactable/public_api.d.ts +2 -0
  95. package/core/manage-container-layout/manage-container-layout-mixin.d.ts +17 -0
  96. package/core/manage-container-layout/public_api.d.ts +1 -0
  97. package/core/public_api.d.ts +2 -0
  98. package/daff-theme.scss +190 -27
  99. package/daff-typography.scss +5 -4
  100. package/daff-util.scss +5 -4
  101. package/daffodil-design.metadata.json +1 -1
  102. package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +4 -3
  103. package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +4 -3
  104. package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +4 -3
  105. package/esm2015/article/examples/article-code-block/article-code-block.component.js +4 -3
  106. package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +4 -3
  107. package/esm2015/article/examples/article-headings/article-headings.component.js +4 -3
  108. package/esm2015/article/examples/article-hr/article-hr.component.js +4 -3
  109. package/esm2015/article/examples/article-lead/article-lead.component.js +4 -3
  110. package/esm2015/article/examples/article-link/article-link.component.js +4 -3
  111. package/esm2015/article/examples/article-meta/article-meta.component.js +4 -3
  112. package/esm2015/article/examples/article-ol/article-ol.component.js +4 -3
  113. package/esm2015/article/examples/article-table/article-table.component.js +4 -3
  114. package/esm2015/article/examples/article-ul/article-ul.component.js +4 -3
  115. package/esm2015/atoms/container/container.component.js +1 -1
  116. package/esm2015/atoms/form/form-field/form-field/form-field.component.js +3 -1
  117. package/esm2015/atoms/form/input/input.component.js +3 -2
  118. package/esm2015/atoms/form/select/select/select.component.js +3 -2
  119. package/esm2015/atoms/image/image.component.js +2 -2
  120. package/esm2015/button/examples/basic-button/basic-button.component.js +3 -2
  121. package/esm2015/button/examples/icon-button/icon-button.component.js +3 -2
  122. package/esm2015/button/examples/raised-button/raised-button.component.js +3 -2
  123. package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +3 -2
  124. package/esm2015/button/examples/statusable-button/statusable-button.component.js +3 -2
  125. package/esm2015/button/examples/stroked-button/stroked-button.component.js +3 -2
  126. package/esm2015/button/examples/underline-button/underline-button.component.js +3 -2
  127. package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +7 -3
  128. package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +5 -3
  129. package/esm2015/callout/examples/callout-theming/callout-theming.component.js +7 -3
  130. package/esm2015/callout/examples/callout-theming/callout-theming.module.js +5 -2
  131. package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +9 -4
  132. package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +3 -1
  133. package/esm2015/callout/examples/compact-callout/compact-callout.component.js +17 -0
  134. package/esm2015/callout/examples/compact-callout/compact-callout.module.js +22 -0
  135. package/esm2015/callout/examples/examples.js +3 -1
  136. package/esm2015/callout/examples/public_api.js +3 -1
  137. package/esm2015/card/examples/basic-card/basic-card.component.js +9 -4
  138. package/esm2015/card/examples/basic-card/basic-card.module.js +3 -1
  139. package/esm2015/card/examples/card-orientation/card-orientation.component.js +24 -0
  140. package/esm2015/card/examples/card-orientation/card-orientation.module.js +27 -0
  141. package/esm2015/card/examples/card-theming/card-theming.component.js +15 -5
  142. package/esm2015/card/examples/daffodil-design-card-examples.js +3 -1
  143. package/esm2015/card/examples/linkable-card/linkable-card.component.js +21 -4
  144. package/esm2015/card/examples/linkable-card/linkable-card.module.js +3 -1
  145. package/esm2015/card/examples/public_api.js +7 -1
  146. package/esm2015/card/examples/raised-card/raised-card.component.js +19 -4
  147. package/esm2015/card/examples/raised-card/raised-card.module.js +3 -3
  148. package/esm2015/card/examples/stroked-card/stroked-card.component.js +27 -0
  149. package/esm2015/card/examples/stroked-card/stroked-card.module.js +27 -0
  150. package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +4 -3
  151. package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +4 -3
  152. package/esm2015/container/examples/container-sizes/container-sizes.component.js +23 -0
  153. package/esm2015/container/examples/container-sizes/container-sizes.module.js +23 -0
  154. package/esm2015/container/examples/daffodil-design-container-examples.js +5 -0
  155. package/esm2015/container/examples/examples.js +5 -0
  156. package/esm2015/container/examples/index.js +2 -0
  157. package/esm2015/container/examples/public_api.js +4 -0
  158. package/esm2015/core/compactable/compactable-mixin.js +26 -0
  159. package/esm2015/core/compactable/compactable.js +2 -0
  160. package/esm2015/core/compactable/public_api.js +2 -0
  161. package/esm2015/core/manage-container-layout/manage-container-layout-mixin.js +14 -0
  162. package/esm2015/core/manage-container-layout/public_api.js +2 -0
  163. package/esm2015/core/public_api.js +3 -1
  164. package/esm2015/hero/examples/compact-hero/compact-hero.component.js +17 -0
  165. package/esm2015/hero/examples/compact-hero/compact-hero.module.js +26 -0
  166. package/esm2015/hero/examples/examples.js +3 -1
  167. package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +7 -3
  168. package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +5 -2
  169. package/esm2015/hero/examples/hero-theming/hero-theming.component.js +7 -3
  170. package/esm2015/hero/examples/hero-theming/hero-theming.module.js +5 -2
  171. package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +9 -4
  172. package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +3 -1
  173. package/esm2015/hero/examples/public_api.js +3 -1
  174. package/esm2015/list/examples/basic-list/basic-list.component.js +4 -3
  175. package/esm2015/list/examples/icon-list/icon-list.component.js +4 -3
  176. package/esm2015/list/examples/multiline-list/multiline-list.component.js +4 -3
  177. package/esm2015/list/examples/nav-list/nav-list.component.js +4 -3
  178. package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +4 -3
  179. package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +4 -3
  180. package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +4 -3
  181. package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +4 -3
  182. package/esm2015/modal/examples/basic-modal/basic-modal.component.js +4 -3
  183. package/esm2015/modal/examples/basic-modal/modal-content.component.js +4 -3
  184. package/esm2015/molecules/accordion/accordion/accordion.component.js +3 -2
  185. package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +3 -2
  186. package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +3 -2
  187. package/esm2015/molecules/article/article/article.component.js +4 -3
  188. package/esm2015/molecules/button-set/button-set.component.js +3 -2
  189. package/esm2015/molecules/callout/callout/callout.component.js +10 -12
  190. package/esm2015/molecules/callout/callout-body/callout-body.directive.js +18 -0
  191. package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +18 -0
  192. package/esm2015/molecules/callout/callout.module.js +7 -1
  193. package/esm2015/molecules/callout/public_api.js +4 -2
  194. package/esm2015/molecules/card/card/card.component.js +76 -14
  195. package/esm2015/molecules/card/card-content/card-content.directive.js +18 -0
  196. package/esm2015/molecules/card/card-icon/card-icon.directive.js +18 -0
  197. package/esm2015/molecules/card/card.module.js +9 -3
  198. package/esm2015/molecules/card/public_api.js +4 -2
  199. package/esm2015/molecules/hero/hero/hero.component.js +12 -23
  200. package/esm2015/molecules/hero/hero-body/hero-body.directive.js +18 -0
  201. package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +18 -0
  202. package/esm2015/molecules/hero/hero.module.js +7 -1
  203. package/esm2015/molecules/hero/public_api.js +3 -1
  204. package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +7 -3
  205. package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +6 -2
  206. package/esm2015/molecules/image-list/image-list.component.js +3 -2
  207. package/esm2015/molecules/media-gallery/media-gallery.component.js +13 -3
  208. package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +22 -8
  209. package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +2 -2
  210. package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +3 -2
  211. package/esm2015/molecules/navbar/navbar.component.js +3 -2
  212. package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +6 -1
  213. package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +3 -2
  214. package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +3 -2
  215. package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +3 -2
  216. package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +3 -2
  217. package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +3 -2
  218. package/esm2015/radio/examples/basic-radio/basic-radio.component.js +4 -3
  219. package/fesm2015/daffodil-design-accordion-examples.js +5 -3
  220. package/fesm2015/daffodil-design-accordion-examples.js.map +1 -1
  221. package/fesm2015/daffodil-design-article-examples.js +23 -12
  222. package/fesm2015/daffodil-design-article-examples.js.map +1 -1
  223. package/fesm2015/daffodil-design-button-examples.js +8 -1
  224. package/fesm2015/daffodil-design-button-examples.js.map +1 -1
  225. package/fesm2015/daffodil-design-callout-examples.js +57 -8
  226. package/fesm2015/daffodil-design-callout-examples.js.map +1 -1
  227. package/fesm2015/daffodil-design-card-examples.js +150 -12
  228. package/fesm2015/daffodil-design-card-examples.js.map +1 -1
  229. package/fesm2015/daffodil-design-checkbox-examples.js +5 -3
  230. package/fesm2015/daffodil-design-checkbox-examples.js.map +1 -1
  231. package/fesm2015/daffodil-design-container-examples.js +54 -0
  232. package/fesm2015/daffodil-design-container-examples.js.map +1 -0
  233. package/fesm2015/daffodil-design-hero-examples.js +60 -7
  234. package/fesm2015/daffodil-design-hero-examples.js.map +1 -1
  235. package/fesm2015/daffodil-design-list-examples.js +9 -5
  236. package/fesm2015/daffodil-design-list-examples.js.map +1 -1
  237. package/fesm2015/daffodil-design-loading-icon-examples.js +5 -3
  238. package/fesm2015/daffodil-design-loading-icon-examples.js.map +1 -1
  239. package/fesm2015/daffodil-design-media-gallery-examples.js +5 -3
  240. package/fesm2015/daffodil-design-media-gallery-examples.js.map +1 -1
  241. package/fesm2015/daffodil-design-modal-examples.js +5 -3
  242. package/fesm2015/daffodil-design-modal-examples.js.map +1 -1
  243. package/fesm2015/daffodil-design-quantity-field-examples.js +5 -1
  244. package/fesm2015/daffodil-design-quantity-field-examples.js.map +1 -1
  245. package/fesm2015/daffodil-design-radio-examples.js +3 -2
  246. package/fesm2015/daffodil-design-radio-examples.js.map +1 -1
  247. package/fesm2015/daffodil-design.js +342 -95
  248. package/fesm2015/daffodil-design.js.map +1 -1
  249. package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
  250. package/hero/examples/compact-hero/compact-hero.module.d.ts +2 -0
  251. package/hero/examples/daffodil-design-hero-examples.metadata.json +1 -1
  252. package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +1 -0
  253. package/hero/examples/hero-theming/hero-theming.component.d.ts +1 -0
  254. package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +1 -0
  255. package/hero/examples/public_api.d.ts +2 -0
  256. package/list/examples/daffodil-design-list-examples.metadata.json +1 -1
  257. package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +1 -1
  258. package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +1 -1
  259. package/modal/examples/daffodil-design-modal-examples.metadata.json +1 -1
  260. package/molecules/callout/callout/callout.component.d.ts +32 -11
  261. package/molecules/callout/callout-body/callout-body.directive.d.ts +6 -0
  262. package/molecules/callout/callout-icon/callout-icon.directive.d.ts +6 -0
  263. package/molecules/callout/public_api.d.ts +3 -1
  264. package/molecules/card/card/card.component.d.ts +37 -11
  265. package/molecules/card/card-content/card-content.directive.d.ts +6 -0
  266. package/molecules/card/card-icon/card-icon.directive.d.ts +6 -0
  267. package/molecules/card/public_api.d.ts +3 -1
  268. package/molecules/hero/hero/hero.component.d.ts +35 -20
  269. package/molecules/hero/hero-body/hero-body.directive.d.ts +6 -0
  270. package/molecules/hero/hero-icon/hero-icon.directive.d.ts +6 -0
  271. package/molecules/hero/public_api.d.ts +2 -0
  272. package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +3 -0
  273. package/molecules/image-gallery/image-gallery/image-gallery.component.d.ts +3 -0
  274. package/molecules/media-gallery/media-gallery.component.d.ts +7 -2
  275. package/molecules/media-gallery/registry/media-gallery.registry.d.ts +6 -3
  276. package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +1 -1
  277. package/molecules/navbar/navbar.component.d.ts +5 -0
  278. package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
  279. package/package.json +1 -1
  280. package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +1 -1
  281. package/radio/examples/daffodil-design-radio-examples.metadata.json +1 -1
@@ -849,6 +849,8 @@
849
849
 
850
850
  var DaffFormFieldMissingControlMessage = 'A DaffFormFieldComponent must contain a DaffFormFieldControl';
851
851
 
852
+ // ChangeDetection is ignored because this component needs to be refactored
853
+ // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
852
854
  var DaffFormFieldComponent = /** @class */ (function () {
853
855
  function DaffFormFieldComponent() {
854
856
  /**
@@ -972,40 +974,7 @@
972
974
 
973
975
  var DAFF_MEDIA_GALLERY_TOKEN = new i0.InjectionToken('DAFF_MEDIA_GALLERY_TOKEN');
974
976
 
975
- var uniqueGalleryId = 0;
976
- var DaffMediaGalleryComponent = /** @class */ (function () {
977
- function DaffMediaGalleryComponent() {
978
- /**
979
- * Adds a class for styling the media gallery
980
- */
981
- this.class = true;
982
- /**
983
- * The name of the gallery
984
- */
985
- this.name = "" + uniqueGalleryId;
986
- uniqueGalleryId++;
987
- }
988
- return DaffMediaGalleryComponent;
989
- }());
990
- DaffMediaGalleryComponent.decorators = [
991
- { type: i0.Component, args: [{
992
- selector: 'daff-media-gallery',
993
- template: "<div class=\"daff-media-gallery__thumbnails\">\n\t<ng-content select=\"[daffThumbnail]\"></ng-content>\n</div>\n<div class=\"daff-media-gallery__selected-thumbnail\">\n\t<daff-media-renderer></daff-media-renderer>\n</div>",
994
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
995
- providers: [
996
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
997
- { provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
998
- ],
999
- styles: [":host(.daff-media-gallery){display:flex;flex-direction:column}@media (min-width:1024px){:host(.daff-media-gallery){flex-direction:row}}:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;display:inline-block;height:64px;width:64px;margin:0 2px;max-width:100%;overflow:hidden;user-select:none}@media (min-width:480px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{height:72px;width:72px}}@media (min-width:1024px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{display:block;margin:0 0 4px;height:80px;width:80px}}.daff-media-gallery__thumbnails{margin:0 -2px;max-height:100%;order:2}@media (min-width:1024px){.daff-media-gallery__thumbnails{margin:0 8px 0 0;order:1}}.daff-media-gallery__selected-thumbnail{display:block;flex-grow:1;order:1}@media (min-width:1024px){.daff-media-gallery__selected-thumbnail{order:2}}"]
1000
- },] }
1001
- ];
1002
- /** @nocollapse */
1003
- DaffMediaGalleryComponent.ctorParameters = function () { return []; };
1004
- DaffMediaGalleryComponent.propDecorators = {
1005
- class: [{ type: i0.HostBinding, args: ['class.daff-media-gallery',] }],
1006
- name: [{ type: i0.Input }]
1007
- };
1008
-
977
+ var isGallery = function (element) { return !('gallery' in element); };
1009
978
  var DaffMediaGalleryRegistry = /** @class */ (function () {
1010
979
  function DaffMediaGalleryRegistry() {
1011
980
  this.galleries = {};
@@ -1017,15 +986,17 @@
1017
986
  DaffMediaGalleryRegistry.prototype.add = function (gallery, thumbnail) {
1018
987
  if (this.galleries[gallery.name]) {
1019
988
  var newGallery = this.galleries[gallery.name].getValue();
1020
- newGallery = Object.assign(Object.assign({}, newGallery), { thumbnails: __spread(newGallery.thumbnails.filter(function (t) { return t !== thumbnail; }), [
1021
- thumbnail,
1022
- ]) });
989
+ if (thumbnail) {
990
+ newGallery = Object.assign(Object.assign({}, newGallery), { thumbnails: __spread(newGallery.thumbnails.filter(function (t) { return t !== thumbnail; }), [
991
+ thumbnail,
992
+ ]) });
993
+ }
1023
994
  this.galleries[gallery.name].next(newGallery);
1024
995
  }
1025
996
  else {
1026
997
  this.galleries[gallery.name] = new rxjs.BehaviorSubject({
1027
998
  gallery: gallery,
1028
- thumbnails: [thumbnail],
999
+ thumbnails: thumbnail ? [thumbnail] : [],
1029
1000
  });
1030
1001
  }
1031
1002
  if (this.galleries[gallery.name].getValue().thumbnails.length === 1) {
@@ -1034,9 +1005,17 @@
1034
1005
  };
1035
1006
  /**
1036
1007
  * @description
1037
- * Removes a media element from the internal registry.
1008
+ * Removes a thumbnail or gallery from the internal registry.
1038
1009
  */
1039
- DaffMediaGalleryRegistry.prototype.remove = function (thumbnail) {
1010
+ DaffMediaGalleryRegistry.prototype.remove = function (element) {
1011
+ if (isGallery(element)) {
1012
+ this.removeGallery(element);
1013
+ }
1014
+ else {
1015
+ this.removeThumbnail(element);
1016
+ }
1017
+ };
1018
+ DaffMediaGalleryRegistry.prototype.removeThumbnail = function (thumbnail) {
1040
1019
  if (!this.galleries[thumbnail.gallery.name]) {
1041
1020
  return;
1042
1021
  }
@@ -1047,6 +1026,9 @@
1047
1026
  }
1048
1027
  this.galleries[thumbnail.gallery.name].next(Object.assign(Object.assign({}, gallery), { thumbnails: __spread(gallery.thumbnails.slice(0, index), gallery.thumbnails.slice(index + 1)) }));
1049
1028
  };
1029
+ DaffMediaGalleryRegistry.prototype.removeGallery = function (gallery) {
1030
+ delete this.galleries[gallery.name];
1031
+ };
1050
1032
  /**
1051
1033
  * @description
1052
1034
  * Selects a media element for a given gallery.
@@ -1071,6 +1053,49 @@
1071
1053
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1072
1054
  ];
1073
1055
 
1056
+ var uniqueGalleryId = 0;
1057
+ var DaffMediaGalleryComponent = /** @class */ (function () {
1058
+ function DaffMediaGalleryComponent(registry) {
1059
+ this.registry = registry;
1060
+ /**
1061
+ * Adds a class for styling the media gallery
1062
+ */
1063
+ this.class = true;
1064
+ /**
1065
+ * The name of the gallery
1066
+ */
1067
+ this.name = "" + uniqueGalleryId;
1068
+ uniqueGalleryId++;
1069
+ }
1070
+ DaffMediaGalleryComponent.prototype.ngOnInit = function () {
1071
+ this.registry.add(this);
1072
+ };
1073
+ DaffMediaGalleryComponent.prototype.ngOnDestroy = function () {
1074
+ this.registry.remove(this);
1075
+ };
1076
+ return DaffMediaGalleryComponent;
1077
+ }());
1078
+ DaffMediaGalleryComponent.decorators = [
1079
+ { type: i0.Component, args: [{
1080
+ selector: 'daff-media-gallery',
1081
+ template: "<div class=\"daff-media-gallery__thumbnails\">\n\t<ng-content select=\"[daffThumbnail]\"></ng-content>\n</div>\n<div class=\"daff-media-gallery__selected-thumbnail\">\n\t<daff-media-renderer></daff-media-renderer>\n</div>",
1082
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1083
+ providers: [
1084
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
1085
+ { provide: DAFF_MEDIA_GALLERY_TOKEN, useExisting: DaffMediaGalleryComponent },
1086
+ ],
1087
+ styles: [":host(.daff-media-gallery){display:flex;flex-direction:column}@media (min-width:1024px){:host(.daff-media-gallery){flex-direction:row}}:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;display:inline-block;height:64px;width:64px;margin:0 2px;max-width:100%;overflow:hidden;user-select:none}@media (min-width:480px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{height:72px;width:72px}}@media (min-width:1024px){:host(.daff-media-gallery) ::ng-deep .daff-thumbnail{display:block;margin:0 0 4px;height:80px;width:80px}}.daff-media-gallery__thumbnails{margin:0 -2px;max-height:100%;order:2}@media (min-width:1024px){.daff-media-gallery__thumbnails{margin:0 8px 0 0;order:1}}.daff-media-gallery__selected-thumbnail{display:block;flex-grow:1;order:1}@media (min-width:1024px){.daff-media-gallery__selected-thumbnail{order:2}}"]
1088
+ },] }
1089
+ ];
1090
+ /** @nocollapse */
1091
+ DaffMediaGalleryComponent.ctorParameters = function () { return [
1092
+ { type: DaffMediaGalleryRegistry }
1093
+ ]; };
1094
+ DaffMediaGalleryComponent.propDecorators = {
1095
+ class: [{ type: i0.HostBinding, args: ['class.daff-media-gallery',] }],
1096
+ name: [{ type: i0.Input }]
1097
+ };
1098
+
1074
1099
  /**
1075
1100
  * Dynamically renders the selected `DaffThumbnailDirective` in a `daff-media-gallery` any time the selected thumbnail
1076
1101
  * changes.
@@ -1188,7 +1213,7 @@
1188
1213
  /**
1189
1214
  * Adds a click event to trigger selection of the media element.
1190
1215
  *
1191
- * @param $event
1216
+ * @param event: MouseEvent
1192
1217
  */
1193
1218
  DaffThumbnailDirective.prototype.onClick = function ($event) {
1194
1219
  this.registry.select(this);
@@ -1359,7 +1384,7 @@
1359
1384
  DaffImageComponent.decorators = [
1360
1385
  { type: i0.Component, args: [{
1361
1386
  selector: 'daff-image',
1362
- template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" />\n</div>",
1387
+ template: "<div class=\"daff-image__wrapper\" [style.paddingTop]=\"_paddingTop\">\n\t<img [src]=\"src\" [alt]=\"alt\" (load)=\"load.emit\" loading=\"lazy\"/>\n</div>",
1363
1388
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
1364
1389
  providers: [
1365
1390
  {
@@ -1440,6 +1465,7 @@
1440
1465
  // eslint-disable-next-line @angular-eslint/component-selector
1441
1466
  selector: 'input[daff-input]',
1442
1467
  template: '<ng-content></ng-content>',
1468
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1443
1469
  providers: [
1444
1470
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
1445
1471
  { provide: DaffFormFieldControl, useExisting: DaffInputComponent },
@@ -1515,6 +1541,7 @@
1515
1541
  selector: 'select[daff-native-select]',
1516
1542
  template: '<ng-content></ng-content>',
1517
1543
  encapsulation: i0.ViewEncapsulation.None,
1544
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1518
1545
  providers: [
1519
1546
  // eslint-disable-next-line @typescript-eslint/no-use-before-define
1520
1547
  { provide: DaffFormFieldControl, useExisting: DaffNativeSelectComponent },
@@ -2233,7 +2260,7 @@
2233
2260
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
2234
2261
  inputs: ['size'],
2235
2262
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
2236
- styles: [":host{display:block;margin:0 auto;padding:0;width:100%}:host.daff-xs{max-width:640px}:host.daff-sm{max-width:800px}:host.daff-md{max-width:1040px}:host.daff-lg{max-width:1340px}:host.daff-xl{max-width:1920px}"]
2263
+ styles: [":host-context(.daff-manage-container-layout){display:inherit;flex:inherit;flex-direction:inherit;flex-flow:inherit;flex-wrap:inherit;justify-content:inherit;justify-items:inherit;align-items:inherit;align-content:inherit;gap:inherit;grid-template-columns:inherit;grid-template-rows:inherit;grid-template-areas:inherit;grid-template:inherit;grid-auto-columns:inherit;grid-auto-rows:inherit;grid-auto-flow:inherit;grid:inherit;-moz-column-gap:inherit;column-gap:inherit;row-gap:inherit;grid-gap:inherit;grid-column-gap:inherit;grid-row-gap:inherit;place-items:inherit;place-content:inherit}:host{display:block;margin:0 auto;padding:0;width:100%}:host.daff-xs{max-width:640px}:host.daff-sm{max-width:800px}:host.daff-md{max-width:1040px}:host.daff-lg{max-width:1340px}:host.daff-xl{max-width:1920px}"]
2237
2264
  },] }
2238
2265
  ];
2239
2266
  /** @nocollapse */
@@ -2876,6 +2903,7 @@
2876
2903
  selector: 'daff-accordion-item',
2877
2904
  template: "<div class=\"daff-accordion-item__header\" (click)=\"toggleActive()\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n <span [hidden]=\"_open\" daffSuffix>\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </span>\n <span [hidden]=\"!_open\" daffSuffix>\n <fa-icon [icon]=\"faChevronUp\"></fa-icon>\n </span>\n</div>\n<div [@openAccordion]=\"_animationState\">\n <ng-content></ng-content>\n</div>",
2878
2905
  encapsulation: i0.ViewEncapsulation.None,
2906
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2879
2907
  animations: [
2880
2908
  daffAccordionAnimations.openAccordion,
2881
2909
  ],
@@ -2896,6 +2924,7 @@
2896
2924
  { type: i0.Component, args: [{
2897
2925
  selector: 'daff-accordion',
2898
2926
  template: "<ng-content></ng-content>",
2927
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2899
2928
  styles: [":host{display:block;width:100%}"]
2900
2929
  },] }
2901
2930
  ];
@@ -2954,6 +2983,7 @@
2954
2983
  { type: i0.Component, args: [{
2955
2984
  selector: 'daff-nav-accordion-item',
2956
2985
  template: "<div class=\"daff-nav-accordion-item__header\" (click)=\"toggleActive()\">\n <ng-content select=\"[daffAccordionItemTitle]\"></ng-content>\n <span [hidden]=\"_open\" daffSuffix *ngIf=\"_navAccordionItemChild.toArray().length\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </span>\n <span [hidden]=\"!_open\" daffSuffix *ngIf=\"_navAccordionItemChild.toArray().length\">\n <fa-icon [icon]=\"faChevronUp\"></fa-icon>\n </span>\n</div>\n<div [@openAccordion]=\"_animationState\">\n <ng-content></ng-content>\n</div>\n",
2986
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
2957
2987
  animations: [
2958
2988
  daffAccordionAnimations.openAccordion,
2959
2989
  ],
@@ -3021,7 +3051,8 @@
3021
3051
  selector: 'daff-article',
3022
3052
  template: '<ng-content></ng-content>',
3023
3053
  encapsulation: i0.ViewEncapsulation.None,
3024
- styles: [".daff-article{display:block}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{margin:0}.daff-article__lead,.daff-article__lead code{font-size:1.25rem;line-height:1.75rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article>h1,.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-bottom:.5rem}.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-top:1.5rem}.daff-article>h1{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article>h1{font-size:3rem;line-height:3.5rem}}.daff-article>h2{font-weight:700;font-size:1.5rem;line-height:1.75rem}@media (min-width:768px){.daff-article>h2{font-size:2rem;line-height:2.5rem}}.daff-article>h3{font-weight:700;font-size:1.25rem;line-height:1.5rem}@media (min-width:768px){.daff-article>h3{font-size:1.5rem;line-height:2rem}}.daff-article>h4{font-size:1.25rem;line-height:1.5rem}@media (min-width:768px){.daff-article>h4{font-size:1.5rem;line-height:2rem}}.daff-article>h5{font-size:1.125rem;line-height:1.5rem}.daff-article>h6{font-size:1rem;line-height:1.5rem}.daff-article>ol,.daff-article>ul{padding-left:1rem}.daff-article>strong{font-weight:700}.daff-article pre{display:block;border-radius:4px;font-size:.875rem;line-height:1.5rem;margin:0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre code{display:block;padding:0}.daff-article code{display:inline-block;border-radius:4px;font-size:.875rem;line-height:1rem;padding:4px}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{font-size:1.25rem;margin:0;padding:1rem 1.5rem}.daff-article blockquote cite{text-transform:uppercase;font-weight:700;display:block;font-size:.875rem;margin-top:1rem}.daff-article table{display:block;border-collapse:collapse;overflow:auto;width:100%}.daff-article table th{font-weight:600;outline:0;padding:16px;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;padding:8px 16px;word-break:break-word;vertical-align:top;box-sizing:border-box}"]
3054
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
3055
+ styles: [".daff-article{display:block}.daff-article>h1,.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-bottom:.5rem}.daff-article>h2,.daff-article>h3,.daff-article>h4,.daff-article>h5,.daff-article>h6{margin-top:2rem}.daff-article>h1{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article>h1{font-size:3rem;line-height:3.5rem}}.daff-article>h2{font-size:2rem;line-height:2.5rem}.daff-article>h3{font-size:1.5rem;line-height:2rem}.daff-article>h4{font-size:1.25rem;line-height:1.5rem}.daff-article>h5{font-size:1.125rem;line-height:1.5rem}.daff-article>h6{font-size:1rem;line-height:1.5rem}.daff-article>p{margin:0 0 1rem}.daff-article>strong{font-weight:700}.daff-article a{font-weight:500}.daff-article pre{display:block;border-radius:4px;font-size:.875rem;line-height:1.5rem;margin:0;padding:1.5rem;overflow:auto;white-space:pre-wrap}.daff-article pre code{display:block;padding:0}.daff-article code{display:inline-block;border-radius:4px;font-size:.875rem;line-height:1rem;padding:.25rem}.daff-article__title{font-weight:700;font-size:2rem;line-height:2.25rem}@media (min-width:768px){.daff-article__title{font-size:3rem;line-height:3.5rem}}.daff-article__lead{font-size:1.25rem;line-height:1.75rem;font-weight:400;margin:0}.daff-article__lead code{font-size:1.25rem;line-height:1.5rem;font-weight:400}.daff-article__meta{font-size:.875rem}.daff-article hr{border:0;height:1px;margin:2rem 0}.daff-article blockquote{border-radius:4px;margin:0;padding:1rem 1.5rem}.daff-article blockquote cite{font-size:.875rem;font-weight:400;line-height:1.25rem;display:block;margin-top:1rem}.daff-article table{display:block;border-collapse:collapse;margin:1.5rem 0;overflow:auto;width:100%}.daff-article table th{font-weight:600;outline:0;padding:1rem;text-align:left;vertical-align:bottom;box-sizing:border-box}.daff-article table td{padding:8px 16px;vertical-align:top;box-sizing:border-box}"]
3025
3056
  },] }
3026
3057
  ];
3027
3058
  DaffArticleComponent.propDecorators = {
@@ -3204,6 +3235,7 @@
3204
3235
  selector: 'daff-button-set',
3205
3236
  template: '<ng-content></ng-content>',
3206
3237
  encapsulation: i0.ViewEncapsulation.None,
3238
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
3207
3239
  styles: [".daff-button-set{display:flex;flex-direction:column;flex-wrap:wrap}@media (min-width:480px){.daff-button-set{flex-direction:row}}.daff-button-set>*{margin:0 0 5px}.daff-button-set>:last-child{margin:0}@media (min-width:480px){.daff-button-set>*{margin:0 5px 0 0}.daff-button-set>:last-child{margin:0}}"]
3208
3240
  },] }
3209
3241
  ];
@@ -3227,6 +3259,9 @@
3227
3259
  },] }
3228
3260
  ];
3229
3261
 
3262
+ /**
3263
+ * @deprecated See {@link DaffMediaGalleryComponent}
3264
+ */
3230
3265
  var DaffImageGalleryComponent = /** @class */ (function () {
3231
3266
  function DaffImageGalleryComponent() {
3232
3267
  }
@@ -3237,10 +3272,14 @@
3237
3272
  selector: 'daff-image-gallery',
3238
3273
  template: "<div class=\"daff-image-gallery\">\n <div class=\"daff-image-gallery__active-image\">\n <ng-content select=\"[daff-active-image]\"></ng-content>\n </div>\n\n <daff-image-list class=\"daff-image-gallery__image-list\">\n <ng-content select=\"daff-gallery-image\"></ng-content>\n </daff-image-list>\n</div>\n",
3239
3274
  encapsulation: i0.ViewEncapsulation.None,
3275
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
3240
3276
  styles: [".daff-image-gallery{display:grid;flex-direction:column;grid-template-areas:\"active-image\" \"image-list\";max-height:100%}@media (min-width:1024px){.daff-image-gallery{grid-template-areas:\"image-list active-image\";max-height:-webkit-min-content;max-height:-moz-min-content;max-height:min-content}}.daff-image-gallery__active-image{grid-area:active-image}.daff-image-gallery__active-image img{display:block;max-width:100%}.daff-image-gallery__image-list{grid-area:image-list;margin:5px 0 0;max-height:100%}@media (min-width:1024px){.daff-image-gallery__image-list{margin:0 25px 0 0;max-height:-webkit-fill-available}}.daff-image-gallery__daff-gallery-image img{display:block;opacity:.6;width:90px}.daff-image-gallery__daff-gallery-image--selected img{opacity:1}"]
3241
3277
  },] }
3242
3278
  ];
3243
3279
 
3280
+ /**
3281
+ * @deprecated See {@link DaffThumbnailDirective}
3282
+ */
3244
3283
  var DaffGalleryImageComponent = /** @class */ (function () {
3245
3284
  function DaffGalleryImageComponent() {
3246
3285
  this.class = true;
@@ -3250,7 +3289,8 @@
3250
3289
  DaffGalleryImageComponent.decorators = [
3251
3290
  { type: i0.Component, args: [{
3252
3291
  selector: 'daff-gallery-image',
3253
- template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>"
3292
+ template: "<div class=\"gallery-image__wrapper\">\n <ng-content></ng-content>\n</div>",
3293
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
3254
3294
  },] }
3255
3295
  ];
3256
3296
  DaffGalleryImageComponent.propDecorators = {
@@ -3272,6 +3312,7 @@
3272
3312
  selector: 'daff-image-list',
3273
3313
  template: '<ng-content></ng-content>',
3274
3314
  encapsulation: i0.ViewEncapsulation.None,
3315
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
3275
3316
  styles: [".daff-image-list{overflow:scroll;white-space:nowrap}.daff-image-list>*{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;margin:0 5px 0 0}@media (min-width:1024px){.daff-image-list>*{display:block;margin:0 0 5px}}.daff-image-list>:last-child{margin:0}::-webkit-scrollbar{height:2px;width:2px}::-webkit-scrollbar-thumb{box-shadow:inset 0 0 3px #b6b6b6;-webkit-box-shadow:inset 0 0 3px #b6b6b6}"]
3276
3317
  },] }
3277
3318
  ];
@@ -3741,6 +3782,7 @@
3741
3782
  { type: i0.Component, args: [{
3742
3783
  selector: 'daff-modal-actions',
3743
3784
  template: '<ng-content></ng-content>',
3785
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
3744
3786
  styles: [":host{display:block;padding-top:24px}"]
3745
3787
  },] }
3746
3788
  ];
@@ -3895,6 +3937,27 @@
3895
3937
  { type: i1.Overlay }
3896
3938
  ]; };
3897
3939
 
3940
+ /**
3941
+ * A mixin for giving a component the ability to manage a DaffContainerComponent's layout.
3942
+ * It passes predetermined layout styles down to the container. In order for a component to
3943
+ * do this, it must implement this mixin.
3944
+ */
3945
+ function daffManageContainerLayoutMixin(Base) {
3946
+ return /** @class */ (function (_super) {
3947
+ __extends(class_1, _super);
3948
+ function class_1() {
3949
+ var args = [];
3950
+ for (var _i = 0; _i < arguments.length; _i++) {
3951
+ args[_i] = arguments[_i];
3952
+ }
3953
+ var _this = _super.apply(this, __spread(args)) || this;
3954
+ _this._renderer.addClass(_this._elementRef.nativeElement, "daff-manage-container-layout");
3955
+ return _this;
3956
+ }
3957
+ return class_1;
3958
+ }(Base));
3959
+ }
3960
+
3898
3961
  /**
3899
3962
  * An _elementRef is needed for the Colorable mixin
3900
3963
  */
@@ -3905,7 +3968,7 @@
3905
3968
  }
3906
3969
  return DaffNavbarBase;
3907
3970
  }());
3908
- var _daffNavbarBase = daffColorMixin(DaffNavbarBase);
3971
+ var _daffNavbarBase = daffManageContainerLayoutMixin(daffColorMixin(DaffNavbarBase));
3909
3972
  /**
3910
3973
  * @inheritdoc
3911
3974
  */
@@ -4158,6 +4221,11 @@
4158
4221
  },] }
4159
4222
  ];
4160
4223
 
4224
+ /**
4225
+ * @deprecated See {@link DaffQuantityFieldComponent}
4226
+ */
4227
+ // ChangeDetection is ignored because this component is deprecated and will be removed
4228
+ // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
4161
4229
  var DaffQtyDropdownComponent = /** @class */ (function () {
4162
4230
  function DaffQtyDropdownComponent(renderer) {
4163
4231
  this.renderer = renderer;
@@ -4367,6 +4435,7 @@
4367
4435
  selector: 'daff-sidebar',
4368
4436
  template: '<ng-content></ng-content>',
4369
4437
  encapsulation: i0.ViewEncapsulation.None,
4438
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
4370
4439
  styles: [":host{display:block}.daff-sidebar{display:block;height:100%}"]
4371
4440
  },] }
4372
4441
  ];
@@ -4534,6 +4603,42 @@
4534
4603
  },] }
4535
4604
  ];
4536
4605
 
4606
+ var DaffHeroBodyDirective = /** @class */ (function () {
4607
+ function DaffHeroBodyDirective() {
4608
+ /**
4609
+ * @docs-private
4610
+ */
4611
+ this.class = true;
4612
+ }
4613
+ return DaffHeroBodyDirective;
4614
+ }());
4615
+ DaffHeroBodyDirective.decorators = [
4616
+ { type: i0.Directive, args: [{
4617
+ selector: '[daffHeroBody]',
4618
+ },] }
4619
+ ];
4620
+ DaffHeroBodyDirective.propDecorators = {
4621
+ class: [{ type: i0.HostBinding, args: ['class.daff-hero__body',] }]
4622
+ };
4623
+
4624
+ var DaffHeroIconDirective = /** @class */ (function () {
4625
+ function DaffHeroIconDirective() {
4626
+ /**
4627
+ * @docs-private
4628
+ */
4629
+ this.class = true;
4630
+ }
4631
+ return DaffHeroIconDirective;
4632
+ }());
4633
+ DaffHeroIconDirective.decorators = [
4634
+ { type: i0.Directive, args: [{
4635
+ selector: '[daffHeroIcon]',
4636
+ },] }
4637
+ ];
4638
+ DaffHeroIconDirective.propDecorators = {
4639
+ class: [{ type: i0.HostBinding, args: ['class.daff-hero__icon',] }]
4640
+ };
4641
+
4537
4642
  var DaffHeroSubtitleDirective = /** @class */ (function () {
4538
4643
  function DaffHeroSubtitleDirective() {
4539
4644
  /**
@@ -4588,6 +4693,44 @@
4588
4693
  class: [{ type: i0.HostBinding, args: ['class.daff-hero__title',] }]
4589
4694
  };
4590
4695
 
4696
+ function daffCompactableMixin(Base, defaultCompact) {
4697
+ if (defaultCompact === void 0) { defaultCompact = false; }
4698
+ return /** @class */ (function (_super) {
4699
+ __extends(class_1, _super);
4700
+ function class_1() {
4701
+ var args = [];
4702
+ for (var _i = 0; _i < arguments.length; _i++) {
4703
+ args[_i] = arguments[_i];
4704
+ }
4705
+ var _this = _super.apply(this, __spread(args)) || this;
4706
+ _this.compact = defaultCompact;
4707
+ return _this;
4708
+ }
4709
+ Object.defineProperty(class_1.prototype, "compact", {
4710
+ get: function () {
4711
+ return this._compact;
4712
+ },
4713
+ set: function (value) {
4714
+ // Handles the default compact
4715
+ var incomingCompact = value || defaultCompact;
4716
+ if (incomingCompact === this._compact) { // Only run the dom-render if a change occurs
4717
+ return;
4718
+ }
4719
+ if (incomingCompact) {
4720
+ this._renderer.addClass(this._elementRef.nativeElement, "daff-compact");
4721
+ }
4722
+ else {
4723
+ this._renderer.removeClass(this._elementRef.nativeElement, "daff-compact");
4724
+ }
4725
+ this._compact = incomingCompact;
4726
+ },
4727
+ enumerable: false,
4728
+ configurable: true
4729
+ });
4730
+ return class_1;
4731
+ }(Base));
4732
+ }
4733
+
4591
4734
  function daffTextAlignmentMixin(Base, defaultTextAlignment) {
4592
4735
  var DaffTextAlignableMixin = /** @class */ (function (_super) {
4593
4736
  __extends(DaffTextAlignableMixin, _super);
@@ -4639,7 +4782,7 @@
4639
4782
  })(exports.DaffHeroLayoutEnum || (exports.DaffHeroLayoutEnum = {}));
4640
4783
  (function (DaffHeroSizeEnum) {
4641
4784
  DaffHeroSizeEnum["Compact"] = "compact";
4642
- DaffHeroSizeEnum["Small"] = "small"; // Small will be deprecated in v1.0.0
4785
+ DaffHeroSizeEnum["Small"] = "small";
4643
4786
  })(exports.DaffHeroSizeEnum || (exports.DaffHeroSizeEnum = {}));
4644
4787
  /**
4645
4788
  * An _elementRef and an instance of renderer2 are needed for the Colorable mixin
@@ -4651,7 +4794,7 @@
4651
4794
  }
4652
4795
  return DaffHeroBase;
4653
4796
  }());
4654
- var _daffHeroBase = daffColorMixin(daffTextAlignmentMixin(DaffHeroBase));
4797
+ var _daffHeroBase = daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffHeroBase, 'left'))));
4655
4798
  /**
4656
4799
  * @inheritdoc
4657
4800
  */
@@ -4669,9 +4812,7 @@
4669
4812
  }
4670
4813
  Object.defineProperty(DaffHeroComponent.prototype, "centered", {
4671
4814
  /**
4672
- * Will be deprecated in v1.0.0
4673
- *
4674
- * @docs-private
4815
+ * @deprecated See {@link DaffTextAlignable}
4675
4816
  */
4676
4817
  get: function () {
4677
4818
  return this.layout === exports.DaffHeroLayoutEnum.Centered;
@@ -4679,26 +4820,12 @@
4679
4820
  enumerable: false,
4680
4821
  configurable: true
4681
4822
  });
4682
- Object.defineProperty(DaffHeroComponent.prototype, "small", {
4683
- /**
4684
- * Will be deprecated in v1.0.0
4685
- *
4686
- * @docs-private
4687
- */
4688
- get: function () {
4689
- return this.size === exports.DaffHeroSizeEnum.Small;
4690
- },
4691
- enumerable: false,
4692
- configurable: true
4693
- });
4694
- Object.defineProperty(DaffHeroComponent.prototype, "compact", {
4823
+ Object.defineProperty(DaffHeroComponent.prototype, "compactClass", {
4695
4824
  /**
4696
- * Will be deprecated in v1.0.0
4697
- *
4698
- * @docs-private
4825
+ * @deprecated See {@link DaffCompactable}
4699
4826
  */
4700
4827
  get: function () {
4701
- return this.size === exports.DaffHeroSizeEnum.Compact;
4828
+ return this.size === exports.DaffHeroSizeEnum.Compact || this.compact === true || this.size === exports.DaffHeroSizeEnum.Small;
4702
4829
  },
4703
4830
  enumerable: false,
4704
4831
  configurable: true
@@ -4712,9 +4839,9 @@
4712
4839
  encapsulation: i0.ViewEncapsulation.None,
4713
4840
  //todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
4714
4841
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
4715
- inputs: ['color', 'textAlignment'],
4842
+ inputs: ['color', 'compact', 'textAlignment'],
4716
4843
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4717
- styles: [".daff-hero{display:block;padding:64px 24px}@media (min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__tagline{font-weight:700;text-transform:uppercase;font-size:.75rem;line-height:1rem;letter-spacing:1px;margin:0 0 8px;padding:0}.daff-hero__title{font-weight:700;font-size:2.5rem;line-height:2.75rem;margin:0;max-width:1040px;overflow-wrap:break-word;width:100%}@media (min-width:768px){.daff-hero__title{font-size:3.5rem;line-height:4rem}}.daff-hero__subtitle{font-size:1.5rem;line-height:2rem;font-weight:400;margin:16px 0 0;max-width:672px;width:100%}.daff-hero--centered .daff-hero__title{margin:0 auto;text-align:center}.daff-hero--centered .daff-hero__subtitle{margin:24px auto 0;text-align:center}.daff-hero--compact,.daff-hero--small{padding:50px 25px}@media (min-width:480px){.daff-hero--compact,.daff-hero--small{padding:50px}}.daff-hero.daff-left .daff-hero__subtitle,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title{text-align:left}.daff-hero.daff-center .daff-hero__subtitle,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__subtitle,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title{margin-left:auto;text-align:right}"]
4844
+ styles: [".daff-hero{display:block;padding:64px 24px}@media (min-width:480px){.daff-hero{padding:96px 48px}}.daff-hero__icon{margin:0 0 16px}.daff-hero__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;margin:0 0 8px;padding:0}.daff-hero__title{font-weight:700;font-size:2.5rem;line-height:2.5rem;margin:0;max-width:1040px;width:100%}@media (min-width:768px){.daff-hero__title{font-size:4.5rem;line-height:4.5rem}}.daff-hero__subtitle{font-size:1.25rem;font-weight:400;line-height:1.75rem;margin:16px 0 0;max-width:672px;width:100%}@media (min-width:768px){.daff-hero__subtitle{font-size:1.5rem;font-weight:400;line-height:2rem}}.daff-hero__subtitle p:first-of-type{margin-top:0}.daff-hero__subtitle p:last-of-type{margin-bottom:0}.daff-hero__body:not(:last-child){margin-bottom:48px}.daff-hero__body:not(:first-child){margin-top:48px}.daff-hero--centered .daff-hero__title{margin:0 auto;text-align:center}.daff-hero--centered .daff-hero__subtitle{margin:24px auto 0;text-align:center}.daff-hero--compact,.daff-hero--small{padding:50px 25px}@media (min-width:480px){.daff-hero--compact,.daff-hero--small{padding:50px}}.daff-hero.daff-compact{padding:48px 24px}@media (min-width:480px){.daff-hero.daff-compact{padding:48px}}.daff-hero.daff-left .daff-hero__icon,.daff-hero.daff-left .daff-hero__subtitle,.daff-hero.daff-left .daff-hero__tagline,.daff-hero.daff-left .daff-hero__title{text-align:left}.daff-hero.daff-center .daff-hero__icon,.daff-hero.daff-center .daff-hero__subtitle,.daff-hero.daff-center .daff-hero__tagline,.daff-hero.daff-center .daff-hero__title{margin-left:auto;margin-right:auto;text-align:center}.daff-hero.daff-right .daff-hero__icon,.daff-hero.daff-right .daff-hero__subtitle,.daff-hero.daff-right .daff-hero__tagline,.daff-hero.daff-right .daff-hero__title{margin-left:auto;text-align:right}"]
4718
4845
  },] }
4719
4846
  ];
4720
4847
  /** @nocollapse */
@@ -4727,8 +4854,7 @@
4727
4854
  size: [{ type: i0.Input }],
4728
4855
  class: [{ type: i0.HostBinding, args: ['class.daff-hero',] }],
4729
4856
  centered: [{ type: i0.HostBinding, args: ['class.daff-hero--centered',] }],
4730
- small: [{ type: i0.HostBinding, args: ['class.daff-hero--small',] }],
4731
- compact: [{ type: i0.HostBinding, args: ['class.daff-hero--compact',] }]
4857
+ compactClass: [{ type: i0.HostBinding, args: ['class.daff-hero--compact',] }]
4732
4858
  };
4733
4859
 
4734
4860
  var DaffHeroModule = /** @class */ (function () {
@@ -4743,19 +4869,59 @@
4743
4869
  ],
4744
4870
  declarations: [
4745
4871
  DaffHeroComponent,
4872
+ DaffHeroIconDirective,
4746
4873
  DaffHeroTaglineDirective,
4747
4874
  DaffHeroTitleDirective,
4748
4875
  DaffHeroSubtitleDirective,
4876
+ DaffHeroBodyDirective,
4749
4877
  ],
4750
4878
  exports: [
4751
4879
  DaffHeroComponent,
4880
+ DaffHeroIconDirective,
4752
4881
  DaffHeroTaglineDirective,
4753
4882
  DaffHeroTitleDirective,
4754
4883
  DaffHeroSubtitleDirective,
4884
+ DaffHeroBodyDirective,
4755
4885
  ],
4756
4886
  },] }
4757
4887
  ];
4758
4888
 
4889
+ var DaffCalloutBodyDirective = /** @class */ (function () {
4890
+ function DaffCalloutBodyDirective() {
4891
+ /**
4892
+ * @docs-private
4893
+ */
4894
+ this.class = true;
4895
+ }
4896
+ return DaffCalloutBodyDirective;
4897
+ }());
4898
+ DaffCalloutBodyDirective.decorators = [
4899
+ { type: i0.Directive, args: [{
4900
+ selector: '[daffCalloutBody]',
4901
+ },] }
4902
+ ];
4903
+ DaffCalloutBodyDirective.propDecorators = {
4904
+ class: [{ type: i0.HostBinding, args: ['class.daff-callout__body',] }]
4905
+ };
4906
+
4907
+ var DaffCalloutIconDirective = /** @class */ (function () {
4908
+ function DaffCalloutIconDirective() {
4909
+ /**
4910
+ * @docs-private
4911
+ */
4912
+ this.class = true;
4913
+ }
4914
+ return DaffCalloutIconDirective;
4915
+ }());
4916
+ DaffCalloutIconDirective.decorators = [
4917
+ { type: i0.Directive, args: [{
4918
+ selector: '[daffCalloutIcon]',
4919
+ },] }
4920
+ ];
4921
+ DaffCalloutIconDirective.propDecorators = {
4922
+ class: [{ type: i0.HostBinding, args: ['class.daff-callout__icon',] }]
4923
+ };
4924
+
4759
4925
  var DaffCalloutSubtitleDirective = /** @class */ (function () {
4760
4926
  function DaffCalloutSubtitleDirective() {
4761
4927
  /**
@@ -4826,7 +4992,7 @@
4826
4992
  }
4827
4993
  return DaffCalloutBase;
4828
4994
  }());
4829
- var _daffCalloutBase = daffColorMixin(daffTextAlignmentMixin(DaffCalloutBase));
4995
+ var _daffCalloutBase = daffManageContainerLayoutMixin(daffColorMixin(daffCompactableMixin(daffTextAlignmentMixin(DaffCalloutBase, 'left'))));
4830
4996
  /**
4831
4997
  * @inheritdoc
4832
4998
  */
@@ -4844,9 +5010,7 @@
4844
5010
  }
4845
5011
  Object.defineProperty(DaffCalloutComponent.prototype, "centered", {
4846
5012
  /**
4847
- * Will be deprecated in v1.0.0
4848
- *
4849
- * @docs-private
5013
+ * @deprecated See {@link DaffTextAlignable}
4850
5014
  */
4851
5015
  get: function () {
4852
5016
  return this.layout === exports.DaffCalloutLayoutEnum.Centered;
@@ -4854,11 +5018,9 @@
4854
5018
  enumerable: false,
4855
5019
  configurable: true
4856
5020
  });
4857
- Object.defineProperty(DaffCalloutComponent.prototype, "compact", {
5021
+ Object.defineProperty(DaffCalloutComponent.prototype, "compactClass", {
4858
5022
  /**
4859
- * Will be deprecated in v1.0.0
4860
- *
4861
- * @docs-private
5023
+ * @deprecated See {@link DaffCompactable}
4862
5024
  */
4863
5025
  get: function () {
4864
5026
  return this.size === exports.DaffCalloutSizeEnum.Compact;
@@ -4875,9 +5037,9 @@
4875
5037
  encapsulation: i0.ViewEncapsulation.None,
4876
5038
  //todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
4877
5039
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
4878
- inputs: ['color', 'textAlignment'],
5040
+ inputs: ['color', 'compact', 'textAlignment'],
4879
5041
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
4880
- styles: [".daff-callout{display:block;padding:64px 24px}@media (min-width:480px){.daff-callout{padding:96px 48px}}@media (min-width:1024px){.daff-callout{padding:96px 0}}.daff-callout__tagline{font-weight:700;text-transform:uppercase;font-size:.75rem;line-height:1rem;letter-spacing:1px;margin:0 0 8px;padding:0}.daff-callout__title{font-weight:700;font-size:1.75rem;line-height:2rem;margin:0;max-width:1040px;padding:0;width:100%}@media (min-width:480px){.daff-callout__title{font-weight:700;font-size:2rem;line-height:2.25rem}}@media (min-width:480px) and (min-width:768px){.daff-callout__title{font-size:3rem;line-height:3.5rem}}.daff-callout__subtitle{font-size:1.25rem;margin:16px 0 0;max-width:600px;padding:0;width:100%}.daff-callout--centered .daff-callout__title{margin:0 auto;text-align:center}.daff-callout--centered .daff-callout__subtitle{margin:10px auto 0;text-align:center}@media (min-width:480px){.daff-callout--centered .daff-callout__subtitle{margin:25px auto 0}}.daff-callout--compact{padding:25px}@media (min-width:480px){.daff-callout--compact{padding:25px 50px}}.daff-callout.daff-left .daff-callout__subtitle,.daff-callout.daff-left .daff-callout__tagline,.daff-callout.daff-left .daff-callout__title{text-align:left}.daff-callout.daff-center .daff-callout__subtitle,.daff-callout.daff-center .daff-callout__tagline,.daff-callout.daff-center .daff-callout__title{margin-left:auto;margin-right:auto;text-align:center}.daff-callout.daff-right .daff-callout__subtitle,.daff-callout.daff-right .daff-callout__tagline,.daff-callout.daff-right .daff-callout__title{margin-left:auto;text-align:right}"]
5042
+ styles: [".daff-callout{display:block;padding:64px 24px}@media (min-width:480px){.daff-callout{padding:96px 48px}}.daff-callout__icon{margin:0 0 16px}.daff-callout__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;margin:0 0 8px;padding:0}.daff-callout__title{font-weight:700;font-size:1.75rem;line-height:2rem;margin:0;max-width:1040px;overflow-wrap:break-word;padding:0;width:100%}@media (min-width:480px){.daff-callout__title{font-weight:700;font-size:2rem;line-height:2.25rem}}@media (min-width:480px) and (min-width:768px){.daff-callout__title{font-size:3rem;line-height:3.5rem}}.daff-callout__subtitle{font-size:1.25rem;margin:16px 0 0;max-width:592px;padding:0;width:100%}.daff-callout__body:not(:last-child){margin-bottom:48px}.daff-callout__body:not(:first-child){margin-top:48px}.daff-callout__body p:first-of-type{margin-top:0}.daff-callout__body p:last-of-type{margin-bottom:0}.daff-callout--centered .daff-callout__title{margin:0 auto;text-align:center}.daff-callout--centered .daff-callout__subtitle{margin:10px auto 0;text-align:center}@media (min-width:480px){.daff-callout--centered .daff-callout__subtitle{margin:25px auto 0}}.daff-callout--compact{padding:25px}@media (min-width:480px){.daff-callout--compact{padding:25px 50px}}.daff-callout.daff-compact{padding:48px 24px}@media (min-width:480px){.daff-callout.daff-compact{padding:48px}}.daff-callout.daff-left .daff-callout__icon,.daff-callout.daff-left .daff-callout__subtitle,.daff-callout.daff-left .daff-callout__tagline,.daff-callout.daff-left .daff-callout__title{text-align:left}.daff-callout.daff-center .daff-callout__icon,.daff-callout.daff-center .daff-callout__subtitle,.daff-callout.daff-center .daff-callout__tagline,.daff-callout.daff-center .daff-callout__title{margin-left:auto;margin-right:auto;text-align:center}.daff-callout.daff-right .daff-callout__icon,.daff-callout.daff-right .daff-callout__subtitle,.daff-callout.daff-right .daff-callout__tagline,.daff-callout.daff-right .daff-callout__title{margin-left:auto;text-align:right}"]
4881
5043
  },] }
4882
5044
  ];
4883
5045
  /** @nocollapse */
@@ -4890,7 +5052,7 @@
4890
5052
  size: [{ type: i0.Input }],
4891
5053
  class: [{ type: i0.HostBinding, args: ['class.daff-callout',] }],
4892
5054
  centered: [{ type: i0.HostBinding, args: ['class.daff-callout--centered',] }],
4893
- compact: [{ type: i0.HostBinding, args: ['class.daff-callout--compact',] }]
5055
+ compactClass: [{ type: i0.HostBinding, args: ['class.daff-callout--compact',] }]
4894
5056
  };
4895
5057
 
4896
5058
  var DaffCalloutModule = /** @class */ (function () {
@@ -4905,15 +5067,19 @@
4905
5067
  ],
4906
5068
  declarations: [
4907
5069
  DaffCalloutComponent,
5070
+ DaffCalloutIconDirective,
4908
5071
  DaffCalloutTitleDirective,
4909
5072
  DaffCalloutSubtitleDirective,
4910
5073
  DaffCalloutTaglineDirective,
5074
+ DaffCalloutBodyDirective,
4911
5075
  ],
4912
5076
  exports: [
4913
5077
  DaffCalloutComponent,
5078
+ DaffCalloutIconDirective,
4914
5079
  DaffCalloutSubtitleDirective,
4915
5080
  DaffCalloutTitleDirective,
4916
5081
  DaffCalloutTaglineDirective,
5082
+ DaffCalloutBodyDirective,
4917
5083
  ],
4918
5084
  },] }
4919
5085
  ];
@@ -5085,6 +5251,42 @@
5085
5251
  class: [{ type: i0.HostBinding, args: ['class.daff-card__actions',] }]
5086
5252
  };
5087
5253
 
5254
+ var DaffCardContentDirective = /** @class */ (function () {
5255
+ function DaffCardContentDirective() {
5256
+ /**
5257
+ * @docs-private
5258
+ */
5259
+ this.class = true;
5260
+ }
5261
+ return DaffCardContentDirective;
5262
+ }());
5263
+ DaffCardContentDirective.decorators = [
5264
+ { type: i0.Directive, args: [{
5265
+ selector: '[daffCardContent]',
5266
+ },] }
5267
+ ];
5268
+ DaffCardContentDirective.propDecorators = {
5269
+ class: [{ type: i0.HostBinding, args: ['class.daff-card__content',] }]
5270
+ };
5271
+
5272
+ var DaffCardIconDirective = /** @class */ (function () {
5273
+ function DaffCardIconDirective() {
5274
+ /**
5275
+ * @docs-private
5276
+ */
5277
+ this.class = true;
5278
+ }
5279
+ return DaffCardIconDirective;
5280
+ }());
5281
+ DaffCardIconDirective.decorators = [
5282
+ { type: i0.Directive, args: [{
5283
+ selector: '[daffCardIcon]',
5284
+ },] }
5285
+ ];
5286
+ DaffCardIconDirective.propDecorators = {
5287
+ class: [{ type: i0.HostBinding, args: ['class.daff-card__icon',] }]
5288
+ };
5289
+
5088
5290
  var DaffCardImageDirective = /** @class */ (function () {
5089
5291
  function DaffCardImageDirective() {
5090
5292
  /**
@@ -5139,6 +5341,15 @@
5139
5341
  class: [{ type: i0.HostBinding, args: ['class.daff-card__title',] }]
5140
5342
  };
5141
5343
 
5344
+ var DaffCardTypeEnum;
5345
+ (function (DaffCardTypeEnum) {
5346
+ DaffCardTypeEnum["Raised"] = "daff-raised-card";
5347
+ DaffCardTypeEnum["Stroked"] = "daff-stroked-card";
5348
+ })(DaffCardTypeEnum || (DaffCardTypeEnum = {}));
5349
+ (function (DaffCardOrientationEnum) {
5350
+ DaffCardOrientationEnum["Vertical"] = "vertical";
5351
+ DaffCardOrientationEnum["Horizontal"] = "horizontal";
5352
+ })(exports.DaffCardOrientationEnum || (exports.DaffCardOrientationEnum = {}));
5142
5353
  /**
5143
5354
  * An _elementRef and an instance of renderer2 are needed for the Colorable mixin
5144
5355
  */
@@ -5159,34 +5370,109 @@
5159
5370
  var _this = _super.call(this, elementRef, renderer) || this;
5160
5371
  _this.elementRef = elementRef;
5161
5372
  _this.renderer = renderer;
5162
- _this.raised = false;
5163
- /**
5164
- * @docs-private
5165
- */
5373
+ _this._orientation = exports.DaffCardOrientationEnum.Vertical;
5166
5374
  _this.class = true;
5375
+ _this.cardType = _this.initCardType();
5167
5376
  return _this;
5168
5377
  }
5169
- Object.defineProperty(DaffCardComponent.prototype, "raisedClass", {
5378
+ Object.defineProperty(DaffCardComponent.prototype, "orientation", {
5170
5379
  get: function () {
5171
- return this.raised;
5380
+ return this._orientation;
5381
+ },
5382
+ set: function (value) {
5383
+ if (value === null || value === undefined || value === '') {
5384
+ this._orientation = exports.DaffCardOrientationEnum.Vertical;
5385
+ }
5386
+ else {
5387
+ this._orientation = value;
5388
+ }
5172
5389
  },
5173
5390
  enumerable: false,
5174
5391
  configurable: true
5175
5392
  });
5393
+ ;
5394
+ DaffCardComponent.prototype.initCardType = function () {
5395
+ var e_1, _a;
5396
+ var values = Object.keys(DaffCardTypeEnum).map(function (k) { return DaffCardTypeEnum[k]; });
5397
+ if (values.indexOf(this._getHostElement().localName) >= 0) {
5398
+ return this._getHostElement().localName;
5399
+ }
5400
+ try {
5401
+ for (var values_1 = __values(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {
5402
+ var attr = values_1_1.value;
5403
+ if (this._hasHostAttributes(attr)) {
5404
+ return attr;
5405
+ }
5406
+ }
5407
+ }
5408
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5409
+ finally {
5410
+ try {
5411
+ if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);
5412
+ }
5413
+ finally { if (e_1) throw e_1.error; }
5414
+ }
5415
+ return null;
5416
+ };
5417
+ /**
5418
+ * @docs-private
5419
+ */
5420
+ DaffCardComponent.prototype.ngOnInit = function () {
5421
+ if (this.cardType) {
5422
+ this.elementRef.nativeElement.classList.add(this.cardType);
5423
+ }
5424
+ };
5425
+ Object.defineProperty(DaffCardComponent.prototype, "verticalClass", {
5426
+ /**
5427
+ * @docs-private
5428
+ */
5429
+ get: function () {
5430
+ return this.orientation === exports.DaffCardOrientationEnum.Vertical;
5431
+ },
5432
+ enumerable: false,
5433
+ configurable: true
5434
+ });
5435
+ Object.defineProperty(DaffCardComponent.prototype, "horizontalClass", {
5436
+ /**
5437
+ * @docs-private
5438
+ */
5439
+ get: function () {
5440
+ return this.orientation === exports.DaffCardOrientationEnum.Horizontal;
5441
+ },
5442
+ enumerable: false,
5443
+ configurable: true
5444
+ });
5445
+ DaffCardComponent.prototype._getHostElement = function () {
5446
+ return this.elementRef.nativeElement;
5447
+ };
5448
+ /**
5449
+ * Gets whether the button has one of the given attributes.
5450
+ * */
5451
+ DaffCardComponent.prototype._hasHostAttributes = function () {
5452
+ var _this = this;
5453
+ var attributes = [];
5454
+ for (var _i = 0; _i < arguments.length; _i++) {
5455
+ attributes[_i] = arguments[_i];
5456
+ }
5457
+ return attributes.some(function (attribute) { return _this._getHostElement().hasAttribute(attribute); });
5458
+ };
5176
5459
  return DaffCardComponent;
5177
5460
  }(_daffCardBase));
5178
5461
  DaffCardComponent.decorators = [
5179
5462
  { type: i0.Component, args: [{
5180
- selector: '' +
5181
- 'daff-card' + ',' +
5182
- 'a[daff-card]',
5183
- template: "<ng-content select=\"[daffCardImage]\"></ng-content>\n<div class=\"daff-card__content\">\n\t<ng-content select=\"[daffCardTagline]\"></ng-content>\n\t<ng-content select=\"[daffCardTitle]\"></ng-content>\n\t<ng-content></ng-content>\n</div>\n<ng-content select=\"[daffCardActions]\"></ng-content>",
5463
+ selector: 'daff-card' + ',' +
5464
+ 'daff-raised-card' + ',' +
5465
+ 'daff-stroked-card' + ',' +
5466
+ 'a[daff-card]' + ',' +
5467
+ 'a[daff-raised-card]' + ',' +
5468
+ 'a[daff-stroked-card]',
5469
+ template: "<ng-content select=\"[daffCardImage]\"></ng-content>\n<div class=\"daff-card__wrapper\">\n\t<div class=\"daff-card__body\">\n\t\t<ng-content select=\"[daffCardIcon]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTagline]\"></ng-content>\n\t\t<ng-content select=\"[daffCardTitle]\"></ng-content>\n\t\t<ng-content select=\"[daffCardContent]\"></ng-content>\n\t</div>\n\t<ng-content select=\"[daffCardActions]\"></ng-content>\n</div>",
5184
5470
  encapsulation: i0.ViewEncapsulation.None,
5185
5471
  //todo(damienwebdev): remove once decorators hit stage 3 - https://github.com/microsoft/TypeScript/issues/7342
5186
5472
  // eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
5187
5473
  inputs: ['color'],
5188
5474
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5189
- styles: [".daff-card{display:flex;flex-direction:column;border-radius:8px}.daff-card__image{display:inline-block;width:100%}.daff-card__image,.daff-card__image img{border-top-left-radius:inherit;border-top-right-radius:inherit}.daff-card__tagline{font-weight:700;text-transform:uppercase;font-size:.75rem;line-height:1rem;letter-spacing:1px;margin:0 0 4px;padding:0}.daff-card__title{font-weight:700;font-size:1.5rem;line-height:2rem;margin-bottom:16px}.daff-card__content{padding:24px}.daff-card__content p{margin:0;padding:0}.daff-card__actions{padding:0 24px 24px}a.daff-card{text-decoration:none}"]
5475
+ styles: [".daff-card{display:flex;border-radius:8px}.daff-card__image{display:inline-block;width:100%}.daff-card--vertical{flex-direction:column}.daff-card--vertical .daff-card__image,.daff-card--vertical .daff-card__image img{border-top-left-radius:calc(8px - 1px);border-top-right-radius:calc(8px - 1px)}.daff-card--horizontal{flex-wrap:wrap}@media (min-width:480px){.daff-card--horizontal{flex-direction:row;flex-wrap:nowrap}}.daff-card--horizontal .daff-card__image,.daff-card--horizontal .daff-card__image img{border-top-left-radius:calc(8px - 1px);border-bottom-left-radius:calc(8px - 1px)}.daff-card--horizontal .daff-card__image img{-o-object-fit:cover;object-fit:cover;-o-object-position:center center;object-position:center center;height:100%!important;width:100%}.daff-card__icon{display:block;margin:0 0 .5rem}.daff-card__tagline{text-transform:uppercase;font-size:.875rem;font-weight:600;letter-spacing:.03125rem;line-height:1rem;padding:0;margin:0 0 .25rem}.daff-card__title{font-weight:700;font-size:1.5rem;line-height:1.75rem;margin:0 0 1rem}.daff-card__body{padding:1.5rem}.daff-card__content p:first-of-type{margin-top:0}.daff-card__content p:last-of-type{margin-bottom:0}.daff-card__actions{padding:0 1.5rem 1.5rem}a.daff-card,a.daff-raised-card,a.daff-stroked-card{text-decoration:none;transition:background-color .3s,box-shadow .3s}"]
5190
5476
  },] }
5191
5477
  ];
5192
5478
  /** @nocollapse */
@@ -5195,9 +5481,10 @@
5195
5481
  { type: i0.Renderer2 }
5196
5482
  ]; };
5197
5483
  DaffCardComponent.propDecorators = {
5198
- raised: [{ type: i0.Input }],
5484
+ orientation: [{ type: i0.Input }],
5199
5485
  class: [{ type: i0.HostBinding, args: ['class.daff-card',] }],
5200
- raisedClass: [{ type: i0.HostBinding, args: ['class.daff-card--raised',] }]
5486
+ verticalClass: [{ type: i0.HostBinding, args: ['class.daff-card--vertical',] }],
5487
+ horizontalClass: [{ type: i0.HostBinding, args: ['class.daff-card--horizontal',] }]
5201
5488
  };
5202
5489
 
5203
5490
  var DaffCardModule = /** @class */ (function () {
@@ -5212,16 +5499,20 @@
5212
5499
  ],
5213
5500
  declarations: [
5214
5501
  DaffCardComponent,
5502
+ DaffCardIconDirective,
5503
+ DaffCardImageDirective,
5215
5504
  DaffCardTaglineDirective,
5216
5505
  DaffCardTitleDirective,
5217
- DaffCardImageDirective,
5506
+ DaffCardContentDirective,
5218
5507
  DaffCardActionsDirective,
5219
5508
  ],
5220
5509
  exports: [
5221
5510
  DaffCardComponent,
5511
+ DaffCardIconDirective,
5512
+ DaffCardImageDirective,
5222
5513
  DaffCardTaglineDirective,
5223
5514
  DaffCardTitleDirective,
5224
- DaffCardImageDirective,
5515
+ DaffCardContentDirective,
5225
5516
  DaffCardActionsDirective,
5226
5517
  ],
5227
5518
  },] }
@@ -5274,13 +5565,17 @@
5274
5565
  exports.DaffButtonModule = DaffButtonModule;
5275
5566
  exports.DaffButtonSetComponent = DaffButtonSetComponent;
5276
5567
  exports.DaffButtonSetModule = DaffButtonSetModule;
5568
+ exports.DaffCalloutBodyDirective = DaffCalloutBodyDirective;
5277
5569
  exports.DaffCalloutComponent = DaffCalloutComponent;
5570
+ exports.DaffCalloutIconDirective = DaffCalloutIconDirective;
5278
5571
  exports.DaffCalloutModule = DaffCalloutModule;
5279
5572
  exports.DaffCalloutSubtitleDirective = DaffCalloutSubtitleDirective;
5280
5573
  exports.DaffCalloutTaglineDirective = DaffCalloutTaglineDirective;
5281
5574
  exports.DaffCalloutTitleDirective = DaffCalloutTitleDirective;
5282
5575
  exports.DaffCardActionsDirective = DaffCardActionsDirective;
5283
5576
  exports.DaffCardComponent = DaffCardComponent;
5577
+ exports.DaffCardContentDirective = DaffCardContentDirective;
5578
+ exports.DaffCardIconDirective = DaffCardIconDirective;
5284
5579
  exports.DaffCardImageDirective = DaffCardImageDirective;
5285
5580
  exports.DaffCardModule = DaffCardModule;
5286
5581
  exports.DaffCardTaglineDirective = DaffCardTaglineDirective;
@@ -5304,7 +5599,9 @@
5304
5599
  exports.DaffFormFieldControl = DaffFormFieldControl;
5305
5600
  exports.DaffFormFieldModule = DaffFormFieldModule;
5306
5601
  exports.DaffGalleryImageComponent = DaffGalleryImageComponent;
5602
+ exports.DaffHeroBodyDirective = DaffHeroBodyDirective;
5307
5603
  exports.DaffHeroComponent = DaffHeroComponent;
5604
+ exports.DaffHeroIconDirective = DaffHeroIconDirective;
5308
5605
  exports.DaffHeroModule = DaffHeroModule;
5309
5606
  exports.DaffHeroSubtitleDirective = DaffHeroSubtitleDirective;
5310
5607
  exports.DaffHeroTaglineDirective = DaffHeroTaglineDirective;
@@ -5362,6 +5659,8 @@
5362
5659
  exports.DaffSidebarViewportComponent = DaffSidebarViewportComponent;
5363
5660
  exports.DaffSuffixDirective = DaffSuffixDirective;
5364
5661
  exports.DaffThumbnailDirective = DaffThumbnailDirective;
5662
+ exports.daffCompactableMixin = daffCompactableMixin;
5663
+ exports.daffManageContainerLayoutMixin = daffManageContainerLayoutMixin;
5365
5664
  exports.daffPrefixableMixin = daffPrefixableMixin;
5366
5665
  exports.daffSuffixableMixin = daffSuffixableMixin;
5367
5666
  exports.daffThumbnailCompatToken = daffThumbnailCompatToken;