@daffodil/design 0.39.13 → 0.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1092) hide show
  1. package/accordion/examples/basic-accordion/basic-accordion.component.d.ts +3 -0
  2. package/accordion/examples/basic-accordion/basic-accordion.module.d.ts +6 -0
  3. package/accordion/examples/daffodil-design-accordion-examples.d.ts +1 -2
  4. package/accordion/examples/nav-accordion/nav-accordion.component.d.ts +3 -0
  5. package/accordion/examples/nav-accordion/nav-accordion.module.d.ts +6 -0
  6. package/accordion/examples/package.json +5 -6
  7. package/accordion/examples/public_api.d.ts +2 -0
  8. package/article/examples/article-blockquote/article-blockquote.component.d.ts +3 -0
  9. package/article/examples/article-code-block/article-code-block.component.d.ts +3 -0
  10. package/article/examples/article-code-inline/article-code-inline.component.d.ts +3 -0
  11. package/article/examples/article-examples.module.d.ts +17 -0
  12. package/article/examples/article-headings/article-headings.component.d.ts +3 -0
  13. package/article/examples/article-hr/article-hr.component.d.ts +3 -0
  14. package/article/examples/article-lead/article-lead.component.d.ts +3 -0
  15. package/article/examples/article-link/article-link.component.d.ts +3 -0
  16. package/article/examples/article-meta/article-meta.component.d.ts +3 -0
  17. package/article/examples/article-ol/article-ol.component.d.ts +3 -0
  18. package/article/examples/article-table/article-table.component.d.ts +3 -0
  19. package/article/examples/article-ul/article-ul.component.d.ts +3 -0
  20. package/article/examples/daffodil-design-article-examples.d.ts +1 -1
  21. package/article/examples/package.json +5 -6
  22. package/atoms/button/button.component.d.ts +4 -1
  23. package/atoms/button/button.module.d.ts +7 -0
  24. package/atoms/container/container.component.d.ts +3 -0
  25. package/atoms/container/container.module.d.ts +6 -0
  26. package/atoms/form/checkbox/checkbox.component.d.ts +3 -0
  27. package/atoms/form/checkbox/checkbox.module.d.ts +8 -0
  28. package/atoms/form/checkbox/cva/checkbox-cva.directive.d.ts +3 -0
  29. package/atoms/form/checkbox-set/checkbox-set.component.d.ts +3 -0
  30. package/atoms/form/error-message/error-message.component.d.ts +3 -0
  31. package/atoms/form/error-message/error-message.module.d.ts +5 -0
  32. package/atoms/form/form-field/form-field/form-field.component.d.ts +3 -0
  33. package/atoms/form/form-field/form-field.module.d.ts +8 -0
  34. package/atoms/form/input/input.component.d.ts +3 -0
  35. package/atoms/form/input/input.module.d.ts +6 -0
  36. package/atoms/form/quantity-field/quantity-field.component.d.ts +3 -0
  37. package/atoms/form/quantity-field/quantity-field.module.d.ts +11 -0
  38. package/atoms/form/quantity-field/quantity-input/quantity-input.component.d.ts +3 -0
  39. package/atoms/form/quantity-field/quantity-select/quantity-select.component.d.ts +3 -0
  40. package/atoms/form/radio/cva/radio-cva.directive.d.ts +3 -0
  41. package/atoms/form/radio/radio.component.d.ts +3 -0
  42. package/atoms/form/radio/radio.module.d.ts +8 -0
  43. package/atoms/form/radio/registry/radio-registry.d.ts +3 -0
  44. package/atoms/form/radio-set/radio-set.component.d.ts +3 -0
  45. package/atoms/form/select/select/select.component.d.ts +3 -0
  46. package/atoms/form/select/select.module.d.ts +6 -0
  47. package/atoms/image/image.component.d.ts +3 -0
  48. package/atoms/image/image.module.d.ts +6 -0
  49. package/atoms/loading-icon/loading-icon.component.d.ts +3 -0
  50. package/atoms/loading-icon/loading-icon.module.d.ts +6 -0
  51. package/atoms/progress-indicator/progress-indicator.component.d.ts +3 -0
  52. package/atoms/progress-indicator/progress-indicator.module.d.ts +6 -0
  53. package/button/examples/basic-button/basic-button.component.d.ts +3 -0
  54. package/button/examples/basic-button/basic-button.module.d.ts +7 -0
  55. package/button/examples/daffodil-design-button-examples.d.ts +1 -7
  56. package/button/examples/icon-button/icon-button.component.d.ts +3 -0
  57. package/button/examples/icon-button/icon-button.module.d.ts +7 -0
  58. package/button/examples/package.json +5 -6
  59. package/button/examples/public_api.d.ts +5 -0
  60. package/button/examples/raised-button/raised-button.component.d.ts +3 -0
  61. package/button/examples/raised-button/raised-button.module.d.ts +7 -0
  62. package/button/examples/sizeable-button/sizeable-button.component.d.ts +3 -0
  63. package/button/examples/sizeable-button/sizeable-button.module.d.ts +7 -0
  64. package/button/examples/statusable-button/statusable-button.component.d.ts +3 -0
  65. package/button/examples/statusable-button/statusable-button.module.d.ts +7 -0
  66. package/button/examples/stroked-button/stroked-button.component.d.ts +3 -0
  67. package/button/examples/stroked-button/stroked-button.module.d.ts +7 -0
  68. package/button/examples/underline-button/underline-button.component.d.ts +3 -0
  69. package/button/examples/underline-button/underline-button.module.d.ts +7 -0
  70. package/callout/examples/callout-text-alignment/callout-text-alignment.component.d.ts +3 -0
  71. package/callout/examples/callout-text-alignment/callout-text-alignment.module.d.ts +9 -0
  72. package/callout/examples/callout-theming/callout-theming.component.d.ts +3 -0
  73. package/callout/examples/callout-theming/callout-theming.module.d.ts +9 -0
  74. package/callout/examples/callout-with-grid/callout-with-grid.component.d.ts +3 -0
  75. package/callout/examples/callout-with-grid/callout-with-grid.module.d.ts +9 -0
  76. package/callout/examples/compact-callout/compact-callout.component.d.ts +3 -0
  77. package/callout/examples/compact-callout/compact-callout.module.d.ts +8 -0
  78. package/callout/examples/daffodil-design-callout-examples.d.ts +1 -0
  79. package/callout/examples/package.json +5 -6
  80. package/card/examples/basic-card/basic-card.component.d.ts +3 -0
  81. package/card/examples/basic-card/basic-card.module.d.ts +8 -0
  82. package/card/examples/card-orientation/card-orientation.component.d.ts +3 -0
  83. package/card/examples/card-orientation/card-orientation.module.d.ts +9 -0
  84. package/card/examples/card-theming/card-theming.component.d.ts +3 -0
  85. package/card/examples/card-theming/card-theming.module.d.ts +8 -0
  86. package/card/examples/daffodil-design-card-examples.d.ts +1 -6
  87. package/card/examples/linkable-card/linkable-card.component.d.ts +3 -0
  88. package/card/examples/linkable-card/linkable-card.module.d.ts +9 -0
  89. package/card/examples/package.json +5 -6
  90. package/card/examples/public_api.d.ts +4 -0
  91. package/card/examples/raised-card/raised-card.component.d.ts +3 -0
  92. package/card/examples/raised-card/raised-card.module.d.ts +8 -0
  93. package/card/examples/stroked-card/stroked-card.component.d.ts +3 -0
  94. package/card/examples/stroked-card/stroked-card.module.d.ts +9 -0
  95. package/checkbox/examples/basic-checkbox/basic-checkbox.component.d.ts +3 -0
  96. package/checkbox/examples/basic-checkbox/basic-checkbox.module.d.ts +7 -0
  97. package/checkbox/examples/checkbox-set/checkbox-set.component.d.ts +3 -0
  98. package/checkbox/examples/checkbox-set/checkbox-set.module.d.ts +7 -0
  99. package/checkbox/examples/daffodil-design-checkbox-examples.d.ts +1 -4
  100. package/checkbox/examples/package.json +5 -6
  101. package/container/examples/container-sizes/container-sizes.component.d.ts +3 -0
  102. package/container/examples/container-sizes/container-sizes.module.d.ts +8 -0
  103. package/container/examples/daffodil-design-container-examples.d.ts +1 -0
  104. package/container/examples/package.json +5 -6
  105. package/core/prefix-suffix/prefix-suffix.module.d.ts +6 -0
  106. package/core/prefix-suffix/prefix.directive.d.ts +3 -0
  107. package/core/prefix-suffix/suffix.directive.d.ts +3 -0
  108. package/core/public_api.d.ts +1 -0
  109. package/core/theming/functions/computer.d.ts +6 -0
  110. package/core/theming/initializer.d.ts +8 -0
  111. package/core/theming/public_api.d.ts +3 -0
  112. package/core/theming/services/class-setter/theme-class-setter.service.d.ts +31 -0
  113. package/core/theming/services/os-theme/ostheme.service.d.ts +20 -0
  114. package/core/theming/services/storage/theme-storage.service.d.ts +28 -0
  115. package/core/theming/services/theming.service.d.ts +33 -0
  116. package/core/theming/types/theme.d.ts +8 -0
  117. package/daff-global.scss +1 -1
  118. package/daff-theme.scss +9 -9
  119. package/daff-typography.scss +2 -0
  120. package/daff-util.scss +2 -0
  121. package/daffodil-design.d.ts +1 -11
  122. package/esm2020/accordion/examples/basic-accordion/basic-accordion.component.mjs +12 -0
  123. package/esm2020/accordion/examples/basic-accordion/basic-accordion.module.mjs +26 -0
  124. package/esm2020/accordion/examples/daffodil-design-accordion-examples.mjs +5 -0
  125. package/{esm2015/accordion/examples/index.js → esm2020/accordion/examples/index.mjs} +0 -0
  126. package/esm2020/accordion/examples/nav-accordion/nav-accordion.component.mjs +12 -0
  127. package/esm2020/accordion/examples/nav-accordion/nav-accordion.module.mjs +26 -0
  128. package/esm2020/accordion/examples/public_api.mjs +10 -0
  129. package/esm2020/article/examples/article-blockquote/article-blockquote.component.mjs +12 -0
  130. package/esm2020/article/examples/article-code-block/article-code-block.component.mjs +12 -0
  131. package/esm2020/article/examples/article-code-inline/article-code-inline.component.mjs +12 -0
  132. package/esm2020/article/examples/article-examples.module.mjs +41 -0
  133. package/esm2020/article/examples/article-headings/article-headings.component.mjs +12 -0
  134. package/esm2020/article/examples/article-hr/article-hr.component.mjs +12 -0
  135. package/esm2020/article/examples/article-lead/article-lead.component.mjs +12 -0
  136. package/esm2020/article/examples/article-link/article-link.component.mjs +12 -0
  137. package/esm2020/article/examples/article-meta/article-meta.component.mjs +12 -0
  138. package/esm2020/article/examples/article-ol/article-ol.component.mjs +12 -0
  139. package/esm2020/article/examples/article-table/article-table.component.mjs +12 -0
  140. package/esm2020/article/examples/article-ul/article-ul.component.mjs +12 -0
  141. package/esm2020/article/examples/daffodil-design-article-examples.mjs +5 -0
  142. package/{esm2015/article/examples/examples.js → esm2020/article/examples/examples.mjs} +0 -0
  143. package/{esm2015/article/examples/index.js → esm2020/article/examples/index.mjs} +0 -0
  144. package/{esm2015/article/examples/public_api.js → esm2020/article/examples/public_api.mjs} +0 -0
  145. package/esm2020/atoms/button/button.component.mjs +132 -0
  146. package/esm2020/atoms/button/button.module.mjs +32 -0
  147. package/{esm2015/atoms/button/public_api.js → esm2020/atoms/button/public_api.mjs} +0 -0
  148. package/esm2020/atoms/container/container.component.mjs +37 -0
  149. package/esm2020/atoms/container/container.module.mjs +26 -0
  150. package/{esm2015/atoms/container/public_api.js → esm2020/atoms/container/public_api.mjs} +0 -0
  151. package/esm2020/atoms/form/checkbox/checkbox.component.mjs +142 -0
  152. package/esm2020/atoms/form/checkbox/checkbox.module.mjs +41 -0
  153. package/esm2020/atoms/form/checkbox/cva/checkbox-cva.directive.mjs +94 -0
  154. package/{esm2015/atoms/form/checkbox/public_api.js → esm2020/atoms/form/checkbox/public_api.mjs} +0 -0
  155. package/esm2020/atoms/form/checkbox-set/checkbox-set.component.mjs +38 -0
  156. package/{esm2015/atoms/form/core/error-state-matcher/error-state-matcher.js → esm2020/atoms/form/core/error-state-matcher/error-state-matcher.mjs} +0 -0
  157. package/{esm2015/atoms/form/core/public_api.js → esm2020/atoms/form/core/public_api.mjs} +0 -0
  158. package/esm2020/atoms/form/error-message/error-message.component.mjs +11 -0
  159. package/esm2020/atoms/form/error-message/error-message.module.mjs +20 -0
  160. package/{esm2015/atoms/form/error-message/public_api.js → esm2020/atoms/form/error-message/public_api.mjs} +0 -0
  161. package/esm2020/atoms/form/form-field/form-field/form-field.component.mjs +102 -0
  162. package/{esm2015/atoms/form/form-field/form-field-control.js → esm2020/atoms/form/form-field/form-field-control.mjs} +0 -0
  163. package/{esm2015/atoms/form/form-field/form-field-errors.js → esm2020/atoms/form/form-field/form-field-errors.mjs} +0 -0
  164. package/esm2020/atoms/form/form-field/form-field.module.mjs +36 -0
  165. package/{esm2015/atoms/form/form-field/public_api.js → esm2020/atoms/form/form-field/public_api.mjs} +0 -0
  166. package/esm2020/atoms/form/input/input.component.mjs +59 -0
  167. package/esm2020/atoms/form/input/input.module.mjs +26 -0
  168. package/{esm2015/atoms/form/input/public_api.js → esm2020/atoms/form/input/public_api.mjs} +0 -0
  169. package/{esm2015/atoms/form/quantity-field/public_api.js → esm2020/atoms/form/quantity-field/public_api.mjs} +0 -0
  170. package/esm2020/atoms/form/quantity-field/quantity-field.component.mjs +133 -0
  171. package/esm2020/atoms/form/quantity-field/quantity-field.module.mjs +48 -0
  172. package/esm2020/atoms/form/quantity-field/quantity-input/quantity-input.component.mjs +99 -0
  173. package/esm2020/atoms/form/quantity-field/quantity-select/quantity-select.component.mjs +81 -0
  174. package/esm2020/atoms/form/radio/cva/radio-cva.directive.mjs +89 -0
  175. package/{esm2015/atoms/form/radio/public_api.js → esm2020/atoms/form/radio/public_api.mjs} +0 -0
  176. package/esm2020/atoms/form/radio/radio.component.mjs +132 -0
  177. package/esm2020/atoms/form/radio/radio.module.mjs +36 -0
  178. package/esm2020/atoms/form/radio/registry/radio-registry.mjs +54 -0
  179. package/esm2020/atoms/form/radio-set/radio-set.component.mjs +22 -0
  180. package/{esm2015/atoms/form/select/public_api.js → esm2020/atoms/form/select/public_api.mjs} +0 -0
  181. package/esm2020/atoms/form/select/select/select.component.mjs +64 -0
  182. package/esm2020/atoms/form/select/select.module.mjs +26 -0
  183. package/esm2020/atoms/image/image.component.mjs +111 -0
  184. package/esm2020/atoms/image/image.module.mjs +29 -0
  185. package/{esm2015/atoms/image/public_api.js → esm2020/atoms/image/public_api.mjs} +0 -0
  186. package/esm2020/atoms/loading-icon/loading-icon.component.mjs +53 -0
  187. package/esm2020/atoms/loading-icon/loading-icon.module.mjs +26 -0
  188. package/{esm2015/atoms/loading-icon/public_api.js → esm2020/atoms/loading-icon/public_api.mjs} +0 -0
  189. package/{esm2015/atoms/progress-indicator/animation/progress-indicator-animation.js → esm2020/atoms/progress-indicator/animation/progress-indicator-animation.mjs} +0 -0
  190. package/esm2020/atoms/progress-indicator/progress-indicator.component.mjs +81 -0
  191. package/esm2020/atoms/progress-indicator/progress-indicator.module.mjs +22 -0
  192. package/{esm2015/atoms/progress-indicator/public_api.js → esm2020/atoms/progress-indicator/public_api.mjs} +0 -0
  193. package/esm2020/button/examples/basic-button/basic-button.component.mjs +23 -0
  194. package/esm2020/button/examples/basic-button/basic-button.module.mjs +30 -0
  195. package/esm2020/button/examples/daffodil-design-button-examples.mjs +5 -0
  196. package/esm2020/button/examples/icon-button/icon-button.component.mjs +22 -0
  197. package/esm2020/button/examples/icon-button/icon-button.module.mjs +30 -0
  198. package/{esm2015/button/examples/index.js → esm2020/button/examples/index.mjs} +0 -0
  199. package/esm2020/button/examples/public_api.mjs +25 -0
  200. package/esm2020/button/examples/raised-button/raised-button.component.mjs +23 -0
  201. package/esm2020/button/examples/raised-button/raised-button.module.mjs +30 -0
  202. package/esm2020/button/examples/sizeable-button/sizeable-button.component.mjs +21 -0
  203. package/esm2020/button/examples/sizeable-button/sizeable-button.module.mjs +30 -0
  204. package/esm2020/button/examples/statusable-button/statusable-button.component.mjs +27 -0
  205. package/esm2020/button/examples/statusable-button/statusable-button.module.mjs +30 -0
  206. package/esm2020/button/examples/stroked-button/stroked-button.component.mjs +23 -0
  207. package/esm2020/button/examples/stroked-button/stroked-button.module.mjs +30 -0
  208. package/esm2020/button/examples/underline-button/underline-button.component.mjs +23 -0
  209. package/esm2020/button/examples/underline-button/underline-button.module.mjs +30 -0
  210. package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.component.mjs +27 -0
  211. package/esm2020/callout/examples/callout-text-alignment/callout-text-alignment.module.mjs +41 -0
  212. package/esm2020/callout/examples/callout-theming/callout-theming.component.mjs +31 -0
  213. package/esm2020/callout/examples/callout-theming/callout-theming.module.mjs +38 -0
  214. package/esm2020/callout/examples/callout-with-grid/callout-with-grid.component.mjs +17 -0
  215. package/esm2020/callout/examples/callout-with-grid/callout-with-grid.module.mjs +41 -0
  216. package/esm2020/callout/examples/compact-callout/compact-callout.component.mjs +17 -0
  217. package/esm2020/callout/examples/compact-callout/compact-callout.module.mjs +37 -0
  218. package/{esm2015/callout/examples/daffodil-design-callout-examples.js → esm2020/callout/examples/daffodil-design-callout-examples.mjs} +0 -0
  219. package/{esm2015/callout/examples/examples.js → esm2020/callout/examples/examples.mjs} +0 -0
  220. package/{esm2015/callout/examples/index.js → esm2020/callout/examples/index.mjs} +0 -0
  221. package/{esm2015/callout/examples/public_api.js → esm2020/callout/examples/public_api.mjs} +0 -0
  222. package/esm2020/card/examples/basic-card/basic-card.component.mjs +17 -0
  223. package/esm2020/card/examples/basic-card/basic-card.module.mjs +40 -0
  224. package/esm2020/card/examples/card-orientation/card-orientation.component.mjs +26 -0
  225. package/esm2020/card/examples/card-orientation/card-orientation.module.mjs +44 -0
  226. package/esm2020/card/examples/card-theming/card-theming.component.mjs +32 -0
  227. package/esm2020/card/examples/card-theming/card-theming.module.mjs +37 -0
  228. package/esm2020/card/examples/daffodil-design-card-examples.mjs +5 -0
  229. package/{esm2015/card/examples/index.js → esm2020/card/examples/index.mjs} +0 -0
  230. package/esm2020/card/examples/linkable-card/linkable-card.component.mjs +30 -0
  231. package/esm2020/card/examples/linkable-card/linkable-card.module.mjs +44 -0
  232. package/esm2020/card/examples/public_api.mjs +22 -0
  233. package/esm2020/card/examples/raised-card/raised-card.component.mjs +28 -0
  234. package/esm2020/card/examples/raised-card/raised-card.module.mjs +40 -0
  235. package/esm2020/card/examples/stroked-card/stroked-card.component.mjs +28 -0
  236. package/esm2020/card/examples/stroked-card/stroked-card.module.mjs +44 -0
  237. package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.component.mjs +26 -0
  238. package/esm2020/checkbox/examples/basic-checkbox/basic-checkbox.module.mjs +34 -0
  239. package/esm2020/checkbox/examples/checkbox-set/checkbox-set.component.mjs +28 -0
  240. package/esm2020/checkbox/examples/checkbox-set/checkbox-set.module.mjs +34 -0
  241. package/esm2020/checkbox/examples/daffodil-design-checkbox-examples.mjs +5 -0
  242. package/{esm2015/checkbox/examples/examples.js → esm2020/checkbox/examples/examples.mjs} +0 -0
  243. package/{esm2015/checkbox/examples/index.js → esm2020/checkbox/examples/index.mjs} +0 -0
  244. package/{esm2015/checkbox/examples/public_api.js → esm2020/checkbox/examples/public_api.mjs} +0 -0
  245. package/esm2020/container/examples/container-sizes/container-sizes.component.mjs +25 -0
  246. package/esm2020/container/examples/container-sizes/container-sizes.module.mjs +34 -0
  247. package/{esm2015/container/examples/daffodil-design-container-examples.js → esm2020/container/examples/daffodil-design-container-examples.mjs} +0 -0
  248. package/{esm2015/container/examples/examples.js → esm2020/container/examples/examples.mjs} +0 -0
  249. package/{esm2015/container/examples/index.js → esm2020/container/examples/index.mjs} +0 -0
  250. package/{esm2015/container/examples/public_api.js → esm2020/container/examples/public_api.mjs} +0 -0
  251. package/{esm2015/core/article-encapsulated/article-encapsulated-mixin.js → esm2020/core/article-encapsulated/article-encapsulated-mixin.mjs} +0 -0
  252. package/{esm2015/core/article-encapsulated/public_api.js → esm2020/core/article-encapsulated/public_api.mjs} +0 -0
  253. package/{esm2015/core/breakpoints/breakpoints.js → esm2020/core/breakpoints/breakpoints.mjs} +0 -0
  254. package/{esm2015/core/colorable/color-in-palette.js → esm2020/core/colorable/color-in-palette.mjs} +0 -0
  255. package/{esm2015/core/colorable/colorable-enum.js → esm2020/core/colorable/colorable-enum.mjs} +0 -0
  256. package/esm2020/core/colorable/colorable-mixin.mjs +42 -0
  257. package/{esm2015/core/colorable/colorable.js → esm2020/core/colorable/colorable.mjs} +0 -0
  258. package/{esm2015/core/colorable/public_api.js → esm2020/core/colorable/public_api.mjs} +0 -0
  259. package/{esm2015/core/compactable/compactable-mixin.js → esm2020/core/compactable/compactable-mixin.mjs} +0 -0
  260. package/{esm2015/core/compactable/compactable.js → esm2020/core/compactable/compactable.mjs} +0 -0
  261. package/{esm2015/core/compactable/public_api.js → esm2020/core/compactable/public_api.mjs} +0 -0
  262. package/{esm2015/core/constructor/constructor.js → esm2020/core/constructor/constructor.mjs} +0 -0
  263. package/{esm2015/core/manage-container-layout/manage-container-layout-mixin.js → esm2020/core/manage-container-layout/manage-container-layout-mixin.mjs} +0 -0
  264. package/{esm2015/core/manage-container-layout/public_api.js → esm2020/core/manage-container-layout/public_api.mjs} +0 -0
  265. package/{esm2015/core/mutable/mutable.js → esm2020/core/mutable/mutable.mjs} +0 -0
  266. package/esm2020/core/prefix-suffix/prefix-suffix.module.mjs +26 -0
  267. package/esm2020/core/prefix-suffix/prefix.directive.mjs +24 -0
  268. package/{esm2015/core/prefix-suffix/prefixable/prefixable-interface.js → esm2020/core/prefix-suffix/prefixable/prefixable-interface.mjs} +0 -0
  269. package/esm2020/core/prefix-suffix/prefixable/prefixable.mjs +23 -0
  270. package/{esm2015/core/prefix-suffix/public_api.js → esm2020/core/prefix-suffix/public_api.mjs} +0 -0
  271. package/esm2020/core/prefix-suffix/suffix.directive.mjs +24 -0
  272. package/{esm2015/core/prefix-suffix/suffixable/suffixable-interface.js → esm2020/core/prefix-suffix/suffixable/suffixable-interface.mjs} +0 -0
  273. package/esm2020/core/prefix-suffix/suffixable/suffixable.mjs +23 -0
  274. package/esm2020/core/public_api.mjs +14 -0
  275. package/esm2020/core/sizeable/sizeable-mixin.mjs +31 -0
  276. package/{esm2015/core/sizeable/sizeable.js → esm2020/core/sizeable/sizeable.mjs} +0 -0
  277. package/{esm2015/core/skeletonable/skeletonable.js → esm2020/core/skeletonable/skeletonable.mjs} +0 -0
  278. package/esm2020/core/statusable/statusable-mixin.mjs +32 -0
  279. package/{esm2015/core/statusable/statusable.js → esm2020/core/statusable/statusable.mjs} +0 -0
  280. package/esm2020/core/text-alignable/text-alignable-mixin.mjs +35 -0
  281. package/{esm2015/core/text-alignable/text-alignable.js → esm2020/core/text-alignable/text-alignable.mjs} +0 -0
  282. package/esm2020/core/theming/functions/computer.mjs +18 -0
  283. package/esm2020/core/theming/initializer.mjs +17 -0
  284. package/esm2020/core/theming/public_api.mjs +4 -0
  285. package/esm2020/core/theming/services/class-setter/theme-class-setter.service.mjs +52 -0
  286. package/esm2020/core/theming/services/os-theme/ostheme.service.mjs +49 -0
  287. package/esm2020/core/theming/services/storage/theme-storage.service.mjs +65 -0
  288. package/esm2020/core/theming/services/theming.service.mjs +61 -0
  289. package/esm2020/core/theming/types/theme.mjs +10 -0
  290. package/esm2020/daffodil-design.mjs +5 -0
  291. package/{esm2015/examples/examples.js → esm2020/examples/examples.mjs} +0 -0
  292. package/{esm2015/examples/public_api.js → esm2020/examples/public_api.mjs} +0 -0
  293. package/esm2020/hero/examples/compact-hero/compact-hero.component.mjs +17 -0
  294. package/esm2020/hero/examples/compact-hero/compact-hero.module.mjs +41 -0
  295. package/{esm2015/hero/examples/daffodil-design-hero-examples.js → esm2020/hero/examples/daffodil-design-hero-examples.mjs} +0 -0
  296. package/{esm2015/hero/examples/examples.js → esm2020/hero/examples/examples.mjs} +0 -0
  297. package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.component.mjs +27 -0
  298. package/esm2020/hero/examples/hero-text-alignment/hero-text-alignment.module.mjs +41 -0
  299. package/esm2020/hero/examples/hero-theming/hero-theming.component.mjs +21 -0
  300. package/esm2020/hero/examples/hero-theming/hero-theming.module.mjs +41 -0
  301. package/esm2020/hero/examples/hero-with-grid/hero-with-grid.component.mjs +17 -0
  302. package/esm2020/hero/examples/hero-with-grid/hero-with-grid.module.mjs +41 -0
  303. package/{esm2015/hero/examples/index.js → esm2020/hero/examples/index.mjs} +0 -0
  304. package/{esm2015/hero/examples/public_api.js → esm2020/hero/examples/public_api.mjs} +0 -0
  305. package/esm2020/list/examples/basic-list/basic-list.component.mjs +12 -0
  306. package/esm2020/list/examples/basic-list/basic-list.module.mjs +30 -0
  307. package/esm2020/list/examples/daffodil-design-list-examples.mjs +5 -0
  308. package/{esm2015/list/examples/examples.js → esm2020/list/examples/examples.mjs} +0 -0
  309. package/esm2020/list/examples/icon-list/icon-list.component.mjs +17 -0
  310. package/esm2020/list/examples/icon-list/icon-list.module.mjs +34 -0
  311. package/{esm2015/list/examples/index.js → esm2020/list/examples/index.mjs} +0 -0
  312. package/esm2020/list/examples/list-examples.module.mjs +39 -0
  313. package/esm2020/list/examples/multiline-list/multiline-list.component.mjs +12 -0
  314. package/esm2020/list/examples/multiline-list/multiline-list.module.mjs +34 -0
  315. package/esm2020/list/examples/nav-list/nav-list.component.mjs +17 -0
  316. package/esm2020/list/examples/nav-list/nav-list.module.mjs +34 -0
  317. package/{esm2015/list/examples/public_api.js → esm2020/list/examples/public_api.mjs} +0 -0
  318. package/esm2020/loading-icon/examples/daffodil-design-loading-icon-examples.mjs +5 -0
  319. package/{esm2015/loading-icon/examples/examples.js → esm2020/loading-icon/examples/examples.mjs} +0 -0
  320. package/{esm2015/loading-icon/examples/index.js → esm2020/loading-icon/examples/index.mjs} +0 -0
  321. package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.component.mjs +19 -0
  322. package/esm2020/loading-icon/examples/loading-icon-color/loading-icon-color.module.mjs +33 -0
  323. package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.mjs +12 -0
  324. package/esm2020/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.mjs +26 -0
  325. package/{esm2015/loading-icon/examples/public_api.js → esm2020/loading-icon/examples/public_api.mjs} +0 -0
  326. package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.mjs +12 -0
  327. package/esm2020/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.mjs +30 -0
  328. package/esm2020/media-gallery/examples/daffodil-design-media-gallery-examples.mjs +5 -0
  329. package/{esm2015/media-gallery/examples/examples.js → esm2020/media-gallery/examples/examples.mjs} +0 -0
  330. package/{esm2015/media-gallery/examples/index.js → esm2020/media-gallery/examples/index.mjs} +0 -0
  331. package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.mjs +12 -0
  332. package/esm2020/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.mjs +30 -0
  333. package/esm2020/media-gallery/examples/public_api.mjs +6 -0
  334. package/esm2020/modal/examples/basic-modal/basic-modal.component.mjs +20 -0
  335. package/esm2020/modal/examples/basic-modal/basic-modal.module.mjs +32 -0
  336. package/esm2020/modal/examples/basic-modal/modal-content.component.mjs +12 -0
  337. package/esm2020/modal/examples/daffodil-design-modal-examples.mjs +5 -0
  338. package/{esm2015/modal/examples/index.js → esm2020/modal/examples/index.mjs} +0 -0
  339. package/{esm2015/modal/examples/public_api.js → esm2020/modal/examples/public_api.mjs} +0 -0
  340. package/esm2020/molecules/accordion/accordion/accordion.component.mjs +27 -0
  341. package/esm2020/molecules/accordion/accordion-item/accordion-item.component.mjs +54 -0
  342. package/esm2020/molecules/accordion/accordion-item-content/accordion-item-content.directive.mjs +22 -0
  343. package/esm2020/molecules/accordion/accordion-item-title/accordion-item-title.directive.mjs +22 -0
  344. package/esm2020/molecules/accordion/accordion.module.mjs +54 -0
  345. package/{esm2015/molecules/accordion/animation/accordion-animation-state.js → esm2020/molecules/accordion/animation/accordion-animation-state.mjs} +0 -0
  346. package/{esm2015/molecules/accordion/animation/accordion-animation.js → esm2020/molecules/accordion/animation/accordion-animation.mjs} +0 -0
  347. package/esm2020/molecules/accordion/nav-accordion-item/nav-accordion-item.component.mjs +78 -0
  348. package/esm2020/molecules/accordion/public_api.mjs +7 -0
  349. package/esm2020/molecules/article/article/article.component.mjs +30 -0
  350. package/esm2020/molecules/article/article-lead/article-lead.directive.mjs +22 -0
  351. package/esm2020/molecules/article/article-meta/article-meta.directive.mjs +22 -0
  352. package/esm2020/molecules/article/article-title/article-title.directive.mjs +22 -0
  353. package/esm2020/molecules/article/article.module.mjs +41 -0
  354. package/{esm2015/molecules/article/public_api.js → esm2020/molecules/article/public_api.mjs} +0 -0
  355. package/{esm2015/molecules/backdrop/animation/backdrop-animation.js → esm2020/molecules/backdrop/animation/backdrop-animation.mjs} +0 -0
  356. package/esm2020/molecules/backdrop/backdrop/backdrop.component.mjs +52 -0
  357. package/esm2020/molecules/backdrop/backdrop.module.mjs +29 -0
  358. package/{esm2015/molecules/backdrop/public_api.js → esm2020/molecules/backdrop/public_api.mjs} +0 -0
  359. package/esm2020/molecules/button-set/button-set.component.mjs +20 -0
  360. package/esm2020/molecules/button-set/button-set.module.mjs +20 -0
  361. package/{esm2015/molecules/button-set/public_api.js → esm2020/molecules/button-set/public_api.mjs} +0 -0
  362. package/esm2020/molecules/callout/callout/callout.component.mjs +71 -0
  363. package/esm2020/molecules/callout/callout-body/callout-body.directive.mjs +22 -0
  364. package/esm2020/molecules/callout/callout-icon/callout-icon.directive.mjs +22 -0
  365. package/esm2020/molecules/callout/callout-subtitle/callout-subtitle.directive.mjs +22 -0
  366. package/esm2020/molecules/callout/callout-tagline/callout-tagline.directive.mjs +22 -0
  367. package/esm2020/molecules/callout/callout-title/callout-title.directive.mjs +22 -0
  368. package/esm2020/molecules/callout/callout.module.mjs +51 -0
  369. package/{esm2015/molecules/callout/public_api.js → esm2020/molecules/callout/public_api.mjs} +0 -0
  370. package/esm2020/molecules/card/card/card.component.mjs +113 -0
  371. package/esm2020/molecules/card/card-actions/card-actions.directive.mjs +22 -0
  372. package/esm2020/molecules/card/card-content/card-content.directive.mjs +22 -0
  373. package/esm2020/molecules/card/card-icon/card-icon.directive.mjs +22 -0
  374. package/esm2020/molecules/card/card-image/card-image.directive.mjs +22 -0
  375. package/esm2020/molecules/card/card-tagline/card-tagline.directive.mjs +22 -0
  376. package/esm2020/molecules/card/card-title/card-title.directive.mjs +22 -0
  377. package/esm2020/molecules/card/card.module.mjs +56 -0
  378. package/{esm2015/molecules/card/public_api.js → esm2020/molecules/card/public_api.mjs} +0 -0
  379. package/esm2020/molecules/feature/feature/feature.component.mjs +49 -0
  380. package/esm2020/molecules/feature/feature-icon/feature-icon.directive.mjs +22 -0
  381. package/esm2020/molecules/feature/feature-subheader/feature-subheader.directive.mjs +22 -0
  382. package/esm2020/molecules/feature/feature-subtitle/feature-subtitle.directive.mjs +22 -0
  383. package/esm2020/molecules/feature/feature-title/feature-title.directive.mjs +22 -0
  384. package/esm2020/molecules/feature/feature.module.mjs +46 -0
  385. package/{esm2015/molecules/feature/public_api.js → esm2020/molecules/feature/public_api.mjs} +0 -0
  386. package/esm2020/molecules/hero/hero/hero.component.mjs +72 -0
  387. package/esm2020/molecules/hero/hero-body/hero-body.directive.mjs +22 -0
  388. package/esm2020/molecules/hero/hero-icon/hero-icon.directive.mjs +22 -0
  389. package/esm2020/molecules/hero/hero-subtitle/hero-subtitle.directive.mjs +22 -0
  390. package/esm2020/molecules/hero/hero-tagline/hero-tagline.directive.mjs +22 -0
  391. package/esm2020/molecules/hero/hero-title/hero-title.directive.mjs +22 -0
  392. package/esm2020/molecules/hero/hero.module.mjs +51 -0
  393. package/{esm2015/molecules/hero/public_api.js → esm2020/molecules/hero/public_api.mjs} +0 -0
  394. package/esm2020/molecules/image-gallery/gallery-image/gallery-image.component.mjs +25 -0
  395. package/esm2020/molecules/image-gallery/image-gallery/image-gallery.component.mjs +15 -0
  396. package/esm2020/molecules/image-gallery/image-gallery.module.mjs +35 -0
  397. package/{esm2015/molecules/image-gallery/public_api.js → esm2020/molecules/image-gallery/public_api.mjs} +0 -0
  398. package/esm2020/molecules/image-list/image-list.component.mjs +20 -0
  399. package/esm2020/molecules/image-list/image-list.module.mjs +26 -0
  400. package/{esm2015/molecules/image-list/public_api.js → esm2020/molecules/image-list/public_api.mjs} +0 -0
  401. package/esm2020/molecules/link-set/link-set/link-set.component.mjs +37 -0
  402. package/esm2020/molecules/link-set/link-set-heading/link-set-heading.directive.mjs +25 -0
  403. package/esm2020/molecules/link-set/link-set-item/link-set-item.component.mjs +26 -0
  404. package/esm2020/molecules/link-set/link-set-subheading/link-set-subheading.directive.mjs +25 -0
  405. package/esm2020/molecules/link-set/link-set.module.mjs +41 -0
  406. package/{esm2015/molecules/link-set/public_api.js → esm2020/molecules/link-set/public_api.mjs} +0 -0
  407. package/esm2020/molecules/list/list/list.component.mjs +110 -0
  408. package/esm2020/molecules/list/list-item/list-item.component.mjs +49 -0
  409. package/esm2020/molecules/list/list-subheader/list-subheader.directive.mjs +25 -0
  410. package/esm2020/molecules/list/list.module.mjs +42 -0
  411. package/{esm2015/molecules/list/public_api.js → esm2020/molecules/list/public_api.mjs} +0 -0
  412. package/{esm2015/molecules/media-gallery/media-gallery-registration.interface.js → esm2020/molecules/media-gallery/media-gallery-registration.interface.mjs} +0 -0
  413. package/{esm2015/molecules/media-gallery/media-gallery-token.js → esm2020/molecules/media-gallery/media-gallery-token.mjs} +0 -0
  414. package/esm2020/molecules/media-gallery/media-gallery.component.mjs +59 -0
  415. package/esm2020/molecules/media-gallery/media-gallery.module.mjs +34 -0
  416. package/esm2020/molecules/media-gallery/media-renderer/media-renderer.component.mjs +76 -0
  417. package/{esm2015/molecules/media-gallery/public_api.js → esm2020/molecules/media-gallery/public_api.mjs} +0 -0
  418. package/esm2020/molecules/media-gallery/registry/media-gallery.registry.mjs +97 -0
  419. package/{esm2015/molecules/media-gallery/thumbnail/thumbnail-compat.token.js → esm2020/molecules/media-gallery/thumbnail/thumbnail-compat.token.mjs} +0 -0
  420. package/{esm2015/molecules/media-gallery/thumbnail/thumbnail-registration.interface.js → esm2020/molecules/media-gallery/thumbnail/thumbnail-registration.interface.mjs} +0 -0
  421. package/esm2020/molecules/media-gallery/thumbnail/thumbnail.directive.mjs +88 -0
  422. package/{esm2015/molecules/modal/animations/modal-animation-state.js → esm2020/molecules/modal/animations/modal-animation-state.mjs} +0 -0
  423. package/{esm2015/molecules/modal/animations/modal-animation.js → esm2020/molecules/modal/animations/modal-animation.mjs} +0 -0
  424. package/{esm2015/molecules/modal/modal/modal-config.js → esm2020/molecules/modal/modal/modal-config.mjs} +0 -0
  425. package/esm2020/molecules/modal/modal/modal.component.mjs +79 -0
  426. package/esm2020/molecules/modal/modal-actions/modal-actions.component.mjs +11 -0
  427. package/esm2020/molecules/modal/modal-content/modal-content.component.mjs +11 -0
  428. package/esm2020/molecules/modal/modal-header/modal-header.component.mjs +20 -0
  429. package/esm2020/molecules/modal/modal-title/modal-title.directive.mjs +22 -0
  430. package/{esm2015/molecules/modal/modal.js → esm2020/molecules/modal/modal.mjs} +0 -0
  431. package/esm2020/molecules/modal/modal.module.mjs +52 -0
  432. package/{esm2015/molecules/modal/public_api.js → esm2020/molecules/modal/public_api.mjs} +0 -0
  433. package/esm2020/molecules/modal/service/modal.service.mjs +70 -0
  434. package/esm2020/molecules/navbar/navbar.component.mjs +51 -0
  435. package/esm2020/molecules/navbar/navbar.module.mjs +20 -0
  436. package/{esm2015/molecules/navbar/public_api.js → esm2020/molecules/navbar/public_api.mjs} +0 -0
  437. package/{esm2015/molecules/paginator/paginator-errors.js → esm2020/molecules/paginator/paginator-errors.mjs} +0 -0
  438. package/esm2020/molecules/paginator/paginator.component.mjs +159 -0
  439. package/esm2020/molecules/paginator/paginator.module.mjs +34 -0
  440. package/{esm2015/molecules/paginator/public_api.js → esm2020/molecules/paginator/public_api.mjs} +0 -0
  441. package/{esm2015/molecules/qty-dropdown/public_api.js → esm2020/molecules/qty-dropdown/public_api.mjs} +0 -0
  442. package/esm2020/molecules/qty-dropdown/qty-dropdown.component.mjs +115 -0
  443. package/esm2020/molecules/qty-dropdown/qty-dropdown.module.mjs +42 -0
  444. package/{esm2015/molecules/sidebar/animation/sidebar-animation-state.js → esm2020/molecules/sidebar/animation/sidebar-animation-state.mjs} +0 -0
  445. package/{esm2015/molecules/sidebar/animation/sidebar-animation.js → esm2020/molecules/sidebar/animation/sidebar-animation.mjs} +0 -0
  446. package/{esm2015/molecules/sidebar/helper/sidebar-mode.js → esm2020/molecules/sidebar/helper/sidebar-mode.mjs} +0 -0
  447. package/{esm2015/molecules/sidebar/public_api.js → esm2020/molecules/sidebar/public_api.mjs} +0 -0
  448. package/esm2020/molecules/sidebar/sidebar/sidebar.component.mjs +44 -0
  449. package/esm2020/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.mjs +121 -0
  450. package/esm2020/molecules/sidebar/sidebar.module.mjs +39 -0
  451. package/esm2020/navbar/examples/basic-navbar/basic-navbar.component.mjs +12 -0
  452. package/esm2020/navbar/examples/basic-navbar/basic-navbar.module.mjs +33 -0
  453. package/esm2020/navbar/examples/contained-navbar/contained-navbar.component.mjs +12 -0
  454. package/esm2020/navbar/examples/contained-navbar/contained-navbar.module.mjs +33 -0
  455. package/{esm2015/navbar/examples/daffodil-design-navbar-examples.js → esm2020/navbar/examples/daffodil-design-navbar-examples.mjs} +0 -0
  456. package/{esm2015/navbar/examples/examples.js → esm2020/navbar/examples/examples.mjs} +0 -0
  457. package/{esm2015/navbar/examples/index.js → esm2020/navbar/examples/index.mjs} +0 -0
  458. package/esm2020/navbar/examples/navbar-theming/navbar-theming.component.mjs +28 -0
  459. package/esm2020/navbar/examples/navbar-theming/navbar-theming.module.mjs +34 -0
  460. package/{esm2015/navbar/examples/public_api.js → esm2020/navbar/examples/public_api.mjs} +0 -0
  461. package/esm2020/navbar/examples/raised-navbar/raised-navbar.component.mjs +12 -0
  462. package/esm2020/navbar/examples/raised-navbar/raised-navbar.module.mjs +30 -0
  463. package/esm2020/paginator/examples/basic-paginator/basic-paginator.component.mjs +19 -0
  464. package/esm2020/paginator/examples/daffodil-design-paginator-examples.mjs +5 -0
  465. package/esm2020/paginator/examples/examples.mjs +5 -0
  466. package/esm2020/paginator/examples/index.mjs +2 -0
  467. package/esm2020/paginator/examples/paginator-examples.module.mjs +31 -0
  468. package/esm2020/paginator/examples/public_api.mjs +4 -0
  469. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  470. package/esm2020/quantity-field/examples/basic/basic-quantity-field.component.mjs +17 -0
  471. package/esm2020/quantity-field/examples/basic/basic-quantity-field.module.mjs +37 -0
  472. package/esm2020/quantity-field/examples/customRange/custom-range-quantity-field.component.mjs +17 -0
  473. package/esm2020/quantity-field/examples/customRange/custom-range-quantity-field.module.mjs +37 -0
  474. package/esm2020/quantity-field/examples/daffodil-design-quantity-field-examples.mjs +5 -0
  475. package/esm2020/quantity-field/examples/disabled/disabled-quantity-field.component.mjs +17 -0
  476. package/esm2020/quantity-field/examples/disabled/disabled-quantity-field.module.mjs +37 -0
  477. package/{esm2015/quantity-field/examples/examples.js → esm2020/quantity-field/examples/examples.mjs} +0 -0
  478. package/{esm2015/quantity-field/examples/index.js → esm2020/quantity-field/examples/index.mjs} +0 -0
  479. package/esm2020/quantity-field/examples/public_api.mjs +10 -0
  480. package/esm2020/quantity-field/examples/selectMax/select-max-quantity-field.component.mjs +17 -0
  481. package/esm2020/quantity-field/examples/selectMax/select-max-quantity-field.module.mjs +37 -0
  482. package/esm2020/radio/examples/basic-radio/basic-radio.component.mjs +21 -0
  483. package/esm2020/radio/examples/basic-radio/basic-radio.module.mjs +31 -0
  484. package/esm2020/radio/examples/daffodil-design-radio-examples.mjs +5 -0
  485. package/{esm2015/radio/examples/examples.js → esm2020/radio/examples/examples.mjs} +0 -0
  486. package/{esm2015/radio/examples/index.js → esm2020/radio/examples/index.mjs} +0 -0
  487. package/{esm2015/radio/examples/public_api.js → esm2020/radio/examples/public_api.mjs} +0 -0
  488. package/fesm2015/daffodil-design-accordion-examples.mjs +78 -0
  489. package/fesm2015/daffodil-design-accordion-examples.mjs.map +1 -0
  490. package/fesm2015/daffodil-design-article-examples.mjs +150 -0
  491. package/fesm2015/daffodil-design-article-examples.mjs.map +1 -0
  492. package/fesm2015/daffodil-design-button-examples.mjs +326 -0
  493. package/fesm2015/daffodil-design-button-examples.mjs.map +1 -0
  494. package/fesm2015/daffodil-design-callout-examples.mjs +221 -0
  495. package/fesm2015/daffodil-design-callout-examples.mjs.map +1 -0
  496. package/fesm2015/daffodil-design-card-examples.mjs +362 -0
  497. package/fesm2015/daffodil-design-card-examples.mjs.map +1 -0
  498. package/fesm2015/daffodil-design-checkbox-examples.mjs +123 -0
  499. package/fesm2015/daffodil-design-checkbox-examples.mjs.map +1 -0
  500. package/fesm2015/daffodil-design-container-examples.mjs +66 -0
  501. package/fesm2015/daffodil-design-container-examples.mjs.map +1 -0
  502. package/fesm2015/daffodil-design-hero-examples.mjs +218 -0
  503. package/fesm2015/daffodil-design-hero-examples.mjs.map +1 -0
  504. package/fesm2015/daffodil-design-list-examples.mjs +204 -0
  505. package/fesm2015/daffodil-design-list-examples.mjs.map +1 -0
  506. package/fesm2015/daffodil-design-loading-icon-examples.mjs +91 -0
  507. package/fesm2015/daffodil-design-loading-icon-examples.mjs.map +1 -0
  508. package/fesm2015/daffodil-design-media-gallery-examples.mjs +86 -0
  509. package/fesm2015/daffodil-design-media-gallery-examples.mjs.map +1 -0
  510. package/fesm2015/daffodil-design-modal-examples.mjs +66 -0
  511. package/fesm2015/daffodil-design-modal-examples.mjs.map +1 -0
  512. package/fesm2015/daffodil-design-navbar-examples.mjs +180 -0
  513. package/fesm2015/daffodil-design-navbar-examples.mjs.map +1 -0
  514. package/fesm2015/daffodil-design-paginator-examples.mjs +57 -0
  515. package/fesm2015/daffodil-design-paginator-examples.mjs.map +1 -0
  516. package/fesm2015/daffodil-design-quantity-field-examples.mjs +193 -0
  517. package/fesm2015/daffodil-design-quantity-field-examples.mjs.map +1 -0
  518. package/fesm2015/daffodil-design-radio-examples.mjs +62 -0
  519. package/fesm2015/daffodil-design-radio-examples.mjs.map +1 -0
  520. package/fesm2015/daffodil-design.mjs +5393 -0
  521. package/fesm2015/daffodil-design.mjs.map +1 -0
  522. package/fesm2020/daffodil-design-accordion-examples.mjs +78 -0
  523. package/fesm2020/daffodil-design-accordion-examples.mjs.map +1 -0
  524. package/fesm2020/daffodil-design-article-examples.mjs +150 -0
  525. package/fesm2020/daffodil-design-article-examples.mjs.map +1 -0
  526. package/fesm2020/daffodil-design-button-examples.mjs +326 -0
  527. package/fesm2020/daffodil-design-button-examples.mjs.map +1 -0
  528. package/fesm2020/daffodil-design-callout-examples.mjs +221 -0
  529. package/fesm2020/daffodil-design-callout-examples.mjs.map +1 -0
  530. package/fesm2020/daffodil-design-card-examples.mjs +362 -0
  531. package/fesm2020/daffodil-design-card-examples.mjs.map +1 -0
  532. package/fesm2020/daffodil-design-checkbox-examples.mjs +123 -0
  533. package/fesm2020/daffodil-design-checkbox-examples.mjs.map +1 -0
  534. package/fesm2020/daffodil-design-container-examples.mjs +66 -0
  535. package/fesm2020/daffodil-design-container-examples.mjs.map +1 -0
  536. package/fesm2020/daffodil-design-hero-examples.mjs +218 -0
  537. package/fesm2020/daffodil-design-hero-examples.mjs.map +1 -0
  538. package/fesm2020/daffodil-design-list-examples.mjs +204 -0
  539. package/fesm2020/daffodil-design-list-examples.mjs.map +1 -0
  540. package/fesm2020/daffodil-design-loading-icon-examples.mjs +91 -0
  541. package/fesm2020/daffodil-design-loading-icon-examples.mjs.map +1 -0
  542. package/fesm2020/daffodil-design-media-gallery-examples.mjs +86 -0
  543. package/fesm2020/daffodil-design-media-gallery-examples.mjs.map +1 -0
  544. package/fesm2020/daffodil-design-modal-examples.mjs +66 -0
  545. package/fesm2020/daffodil-design-modal-examples.mjs.map +1 -0
  546. package/fesm2020/daffodil-design-navbar-examples.mjs +180 -0
  547. package/fesm2020/daffodil-design-navbar-examples.mjs.map +1 -0
  548. package/fesm2020/daffodil-design-paginator-examples.mjs +57 -0
  549. package/fesm2020/daffodil-design-paginator-examples.mjs.map +1 -0
  550. package/fesm2020/daffodil-design-quantity-field-examples.mjs +193 -0
  551. package/fesm2020/daffodil-design-quantity-field-examples.mjs.map +1 -0
  552. package/fesm2020/daffodil-design-radio-examples.mjs +62 -0
  553. package/fesm2020/daffodil-design-radio-examples.mjs.map +1 -0
  554. package/fesm2020/daffodil-design.mjs +5380 -0
  555. package/fesm2020/daffodil-design.mjs.map +1 -0
  556. package/hero/examples/compact-hero/compact-hero.component.d.ts +3 -0
  557. package/hero/examples/compact-hero/compact-hero.module.d.ts +9 -0
  558. package/hero/examples/daffodil-design-hero-examples.d.ts +1 -0
  559. package/hero/examples/hero-text-alignment/hero-text-alignment.component.d.ts +3 -0
  560. package/hero/examples/hero-text-alignment/hero-text-alignment.module.d.ts +9 -0
  561. package/hero/examples/hero-theming/hero-theming.component.d.ts +3 -0
  562. package/hero/examples/hero-theming/hero-theming.module.d.ts +9 -0
  563. package/hero/examples/hero-with-grid/hero-with-grid.component.d.ts +3 -0
  564. package/hero/examples/hero-with-grid/hero-with-grid.module.d.ts +9 -0
  565. package/hero/examples/package.json +5 -6
  566. package/list/examples/basic-list/basic-list.component.d.ts +3 -0
  567. package/list/examples/basic-list/basic-list.module.d.ts +7 -0
  568. package/list/examples/daffodil-design-list-examples.d.ts +1 -4
  569. package/list/examples/icon-list/icon-list.component.d.ts +3 -0
  570. package/list/examples/icon-list/icon-list.module.d.ts +8 -0
  571. package/list/examples/list-examples.module.d.ts +9 -0
  572. package/list/examples/multiline-list/multiline-list.component.d.ts +3 -0
  573. package/list/examples/multiline-list/multiline-list.module.d.ts +8 -0
  574. package/list/examples/nav-list/nav-list.component.d.ts +3 -0
  575. package/list/examples/nav-list/nav-list.module.d.ts +8 -0
  576. package/list/examples/package.json +5 -6
  577. package/loading-icon/examples/daffodil-design-loading-icon-examples.d.ts +1 -1
  578. package/loading-icon/examples/loading-icon-color/loading-icon-color.component.d.ts +3 -0
  579. package/loading-icon/examples/loading-icon-color/loading-icon-color.module.d.ts +7 -0
  580. package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.d.ts +3 -0
  581. package/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.d.ts +6 -0
  582. package/loading-icon/examples/package.json +5 -6
  583. package/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.d.ts +3 -0
  584. package/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.d.ts +6 -0
  585. package/media-gallery/examples/daffodil-design-media-gallery-examples.d.ts +1 -2
  586. package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.d.ts +3 -0
  587. package/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.d.ts +6 -0
  588. package/media-gallery/examples/package.json +5 -6
  589. package/media-gallery/examples/public_api.d.ts +2 -0
  590. package/modal/examples/basic-modal/basic-modal.component.d.ts +3 -0
  591. package/modal/examples/basic-modal/basic-modal.module.d.ts +7 -0
  592. package/modal/examples/basic-modal/modal-content.component.d.ts +3 -0
  593. package/modal/examples/daffodil-design-modal-examples.d.ts +1 -3
  594. package/modal/examples/package.json +5 -6
  595. package/molecules/accordion/accordion/accordion.component.d.ts +3 -0
  596. package/molecules/accordion/accordion-item/accordion-item.component.d.ts +3 -0
  597. package/molecules/accordion/accordion-item-content/accordion-item-content.directive.d.ts +3 -0
  598. package/molecules/accordion/accordion-item-title/accordion-item-title.directive.d.ts +3 -0
  599. package/molecules/accordion/accordion.module.d.ts +12 -0
  600. package/molecules/accordion/nav-accordion-item/nav-accordion-item.component.d.ts +3 -0
  601. package/molecules/accordion/public_api.d.ts +1 -0
  602. package/molecules/article/article/article.component.d.ts +3 -0
  603. package/molecules/article/article-lead/article-lead.directive.d.ts +3 -0
  604. package/molecules/article/article-meta/article-meta.directive.d.ts +3 -0
  605. package/molecules/article/article-title/article-title.directive.d.ts +3 -0
  606. package/molecules/article/article.module.d.ts +9 -0
  607. package/molecules/backdrop/backdrop/backdrop.component.d.ts +3 -0
  608. package/molecules/backdrop/backdrop.module.d.ts +6 -0
  609. package/molecules/button-set/button-set.component.d.ts +3 -0
  610. package/molecules/button-set/button-set.module.d.ts +5 -0
  611. package/molecules/callout/callout/callout.component.d.ts +3 -0
  612. package/molecules/callout/callout-body/callout-body.directive.d.ts +3 -0
  613. package/molecules/callout/callout-icon/callout-icon.directive.d.ts +3 -0
  614. package/molecules/callout/callout-subtitle/callout-subtitle.directive.d.ts +3 -0
  615. package/molecules/callout/callout-tagline/callout-tagline.directive.d.ts +3 -0
  616. package/molecules/callout/callout-title/callout-title.directive.d.ts +3 -0
  617. package/molecules/callout/callout.module.d.ts +11 -0
  618. package/molecules/card/card/card.component.d.ts +3 -0
  619. package/molecules/card/card-actions/card-actions.directive.d.ts +3 -0
  620. package/molecules/card/card-content/card-content.directive.d.ts +3 -0
  621. package/molecules/card/card-icon/card-icon.directive.d.ts +3 -0
  622. package/molecules/card/card-image/card-image.directive.d.ts +3 -0
  623. package/molecules/card/card-tagline/card-tagline.directive.d.ts +3 -0
  624. package/molecules/card/card-title/card-title.directive.d.ts +3 -0
  625. package/molecules/card/card.module.d.ts +12 -0
  626. package/molecules/feature/feature/feature.component.d.ts +3 -0
  627. package/molecules/feature/feature-icon/feature-icon.directive.d.ts +3 -0
  628. package/molecules/feature/feature-subheader/feature-subheader.directive.d.ts +3 -0
  629. package/molecules/feature/feature-subtitle/feature-subtitle.directive.d.ts +3 -0
  630. package/molecules/feature/feature-title/feature-title.directive.d.ts +3 -0
  631. package/molecules/feature/feature.module.d.ts +10 -0
  632. package/molecules/hero/hero/hero.component.d.ts +3 -0
  633. package/molecules/hero/hero-body/hero-body.directive.d.ts +3 -0
  634. package/molecules/hero/hero-icon/hero-icon.directive.d.ts +3 -0
  635. package/molecules/hero/hero-subtitle/hero-subtitle.directive.d.ts +3 -0
  636. package/molecules/hero/hero-tagline/hero-tagline.directive.d.ts +3 -0
  637. package/molecules/hero/hero-title/hero-title.directive.d.ts +3 -0
  638. package/molecules/hero/hero.module.d.ts +11 -0
  639. package/molecules/image-gallery/gallery-image/gallery-image.component.d.ts +3 -0
  640. package/molecules/image-gallery/image-gallery/image-gallery.component.d.ts +3 -0
  641. package/molecules/image-gallery/image-gallery.module.d.ts +8 -0
  642. package/molecules/image-list/image-list.component.d.ts +3 -0
  643. package/molecules/image-list/image-list.module.d.ts +6 -0
  644. package/molecules/link-set/link-set/link-set.component.d.ts +3 -0
  645. package/molecules/link-set/link-set-heading/link-set-heading.directive.d.ts +3 -0
  646. package/molecules/link-set/link-set-item/link-set-item.component.d.ts +3 -0
  647. package/molecules/link-set/link-set-subheading/link-set-subheading.directive.d.ts +3 -0
  648. package/molecules/link-set/link-set.module.d.ts +9 -0
  649. package/molecules/list/list/list.component.d.ts +4 -1
  650. package/molecules/list/list-item/list-item.component.d.ts +3 -0
  651. package/molecules/list/list-subheader/list-subheader.directive.d.ts +3 -0
  652. package/molecules/list/list.module.d.ts +9 -0
  653. package/molecules/media-gallery/media-gallery.component.d.ts +3 -0
  654. package/molecules/media-gallery/media-gallery.module.d.ts +8 -0
  655. package/molecules/media-gallery/media-renderer/media-renderer.component.d.ts +3 -0
  656. package/molecules/media-gallery/registry/media-gallery.registry.d.ts +3 -0
  657. package/molecules/media-gallery/thumbnail/thumbnail.directive.d.ts +3 -0
  658. package/molecules/modal/modal/modal.component.d.ts +3 -0
  659. package/molecules/modal/modal-actions/modal-actions.component.d.ts +3 -0
  660. package/molecules/modal/modal-content/modal-content.component.d.ts +3 -0
  661. package/molecules/modal/modal-header/modal-header.component.d.ts +3 -0
  662. package/molecules/modal/modal-title/modal-title.directive.d.ts +3 -0
  663. package/molecules/modal/modal.module.d.ts +12 -0
  664. package/molecules/modal/service/modal.service.d.ts +3 -0
  665. package/molecules/navbar/navbar.component.d.ts +3 -0
  666. package/molecules/navbar/navbar.module.d.ts +5 -0
  667. package/molecules/paginator/paginator.component.d.ts +3 -0
  668. package/molecules/paginator/paginator.module.d.ts +8 -0
  669. package/molecules/qty-dropdown/qty-dropdown.component.d.ts +3 -0
  670. package/molecules/qty-dropdown/qty-dropdown.module.d.ts +10 -0
  671. package/molecules/sidebar/sidebar/sidebar.component.d.ts +3 -0
  672. package/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.d.ts +3 -0
  673. package/molecules/sidebar/sidebar.module.d.ts +9 -0
  674. package/navbar/examples/basic-navbar/basic-navbar.component.d.ts +3 -0
  675. package/navbar/examples/basic-navbar/basic-navbar.module.d.ts +7 -0
  676. package/navbar/examples/contained-navbar/contained-navbar.component.d.ts +3 -0
  677. package/navbar/examples/contained-navbar/contained-navbar.module.d.ts +7 -0
  678. package/navbar/examples/daffodil-design-navbar-examples.d.ts +1 -0
  679. package/navbar/examples/navbar-theming/navbar-theming.component.d.ts +3 -0
  680. package/navbar/examples/navbar-theming/navbar-theming.module.d.ts +8 -0
  681. package/navbar/examples/package.json +5 -6
  682. package/navbar/examples/raised-navbar/raised-navbar.component.d.ts +3 -0
  683. package/navbar/examples/raised-navbar/raised-navbar.module.d.ts +7 -0
  684. package/package.json +154 -14
  685. package/paginator/examples/basic-paginator/basic-paginator.component.d.ts +8 -0
  686. package/paginator/examples/daffodil-design-paginator-examples.d.ts +5 -0
  687. package/paginator/examples/examples.d.ts +2 -0
  688. package/paginator/examples/index.d.ts +1 -0
  689. package/paginator/examples/package.json +10 -0
  690. package/paginator/examples/paginator-examples.module.d.ts +9 -0
  691. package/paginator/examples/public_api.d.ts +3 -0
  692. package/quantity-field/examples/basic/basic-quantity-field.component.d.ts +3 -0
  693. package/quantity-field/examples/basic/basic-quantity-field.module.d.ts +8 -0
  694. package/quantity-field/examples/customRange/custom-range-quantity-field.component.d.ts +3 -0
  695. package/quantity-field/examples/customRange/custom-range-quantity-field.module.d.ts +8 -0
  696. package/quantity-field/examples/daffodil-design-quantity-field-examples.d.ts +1 -4
  697. package/quantity-field/examples/disabled/disabled-quantity-field.component.d.ts +3 -0
  698. package/quantity-field/examples/disabled/disabled-quantity-field.module.d.ts +8 -0
  699. package/quantity-field/examples/package.json +5 -6
  700. package/quantity-field/examples/public_api.d.ts +4 -0
  701. package/quantity-field/examples/selectMax/select-max-quantity-field.component.d.ts +3 -0
  702. package/quantity-field/examples/selectMax/select-max-quantity-field.module.d.ts +8 -0
  703. package/radio/examples/basic-radio/basic-radio.component.d.ts +3 -0
  704. package/radio/examples/basic-radio/basic-radio.module.d.ts +7 -0
  705. package/radio/examples/daffodil-design-radio-examples.d.ts +1 -2
  706. package/radio/examples/package.json +5 -6
  707. package/src/atoms/button/README.md +53 -0
  708. package/src/atoms/container/README.md +18 -0
  709. package/src/atoms/form/README.md +0 -0
  710. package/src/atoms/form/checkbox/README.md +0 -0
  711. package/src/atoms/form/checkbox-set/README.md +0 -0
  712. package/src/atoms/form/error-message/README.md +11 -0
  713. package/src/atoms/form/form-field/README.md +36 -0
  714. package/src/atoms/form/form-label/README.md +0 -0
  715. package/src/atoms/form/input/README.md +11 -0
  716. package/src/atoms/form/quantity-field/README.md +25 -0
  717. package/src/atoms/form/radio/README.md +55 -0
  718. package/src/atoms/form/radio-set/README.md +0 -0
  719. package/src/atoms/form/select/README.md +13 -0
  720. package/src/atoms/image/README.md +21 -0
  721. package/src/atoms/loading-icon/README.md +7 -0
  722. package/src/atoms/progress-indicator/README.md +2 -0
  723. package/src/molecules/accordion/README.md +21 -0
  724. package/src/molecules/article/README.md +49 -0
  725. package/src/molecules/backdrop/README.md +13 -0
  726. package/src/molecules/button-set/README.md +13 -0
  727. package/src/molecules/callout/README.md +54 -0
  728. package/src/molecules/card/README.md +60 -0
  729. package/src/molecules/feature/README.md +48 -0
  730. package/src/molecules/hero/README.md +54 -0
  731. package/src/molecules/image-gallery/README.md +31 -0
  732. package/src/molecules/image-list/README.md +14 -0
  733. package/src/molecules/link-set/README.md +44 -0
  734. package/src/molecules/list/README.md +69 -0
  735. package/src/molecules/media-gallery/README.md +19 -0
  736. package/src/molecules/modal/README.md +47 -0
  737. package/src/molecules/navbar/README.md +41 -0
  738. package/src/molecules/paginator/README.md +11 -0
  739. package/src/molecules/qty-dropdown/README.md +0 -0
  740. package/src/molecules/sidebar/README.md +10 -0
  741. package/src/scss/README.md +7 -0
  742. package/accordion/examples/daffodil-design-accordion-examples.metadata.json +0 -1
  743. package/article/examples/daffodil-design-article-examples.metadata.json +0 -1
  744. package/bundles/daffodil-design-accordion-examples.umd.js +0 -91
  745. package/bundles/daffodil-design-accordion-examples.umd.js.map +0 -1
  746. package/bundles/daffodil-design-accordion-examples.umd.min.js +0 -2
  747. package/bundles/daffodil-design-accordion-examples.umd.min.js.map +0 -1
  748. package/bundles/daffodil-design-article-examples.umd.js +0 -530
  749. package/bundles/daffodil-design-article-examples.umd.js.map +0 -1
  750. package/bundles/daffodil-design-article-examples.umd.min.js +0 -2
  751. package/bundles/daffodil-design-article-examples.umd.min.js.map +0 -1
  752. package/bundles/daffodil-design-button-examples.umd.js +0 -298
  753. package/bundles/daffodil-design-button-examples.umd.js.map +0 -1
  754. package/bundles/daffodil-design-button-examples.umd.min.js +0 -2
  755. package/bundles/daffodil-design-button-examples.umd.min.js.map +0 -1
  756. package/bundles/daffodil-design-callout-examples.umd.js +0 -195
  757. package/bundles/daffodil-design-callout-examples.umd.js.map +0 -1
  758. package/bundles/daffodil-design-callout-examples.umd.min.js +0 -2
  759. package/bundles/daffodil-design-callout-examples.umd.min.js.map +0 -1
  760. package/bundles/daffodil-design-card-examples.umd.js +0 -321
  761. package/bundles/daffodil-design-card-examples.umd.js.map +0 -1
  762. package/bundles/daffodil-design-card-examples.umd.min.js +0 -2
  763. package/bundles/daffodil-design-card-examples.umd.min.js.map +0 -1
  764. package/bundles/daffodil-design-checkbox-examples.umd.js +0 -123
  765. package/bundles/daffodil-design-checkbox-examples.umd.js.map +0 -1
  766. package/bundles/daffodil-design-checkbox-examples.umd.min.js +0 -2
  767. package/bundles/daffodil-design-checkbox-examples.umd.min.js.map +0 -1
  768. package/bundles/daffodil-design-container-examples.umd.js +0 -65
  769. package/bundles/daffodil-design-container-examples.umd.js.map +0 -1
  770. package/bundles/daffodil-design-container-examples.umd.min.js +0 -2
  771. package/bundles/daffodil-design-container-examples.umd.min.js.map +0 -1
  772. package/bundles/daffodil-design-hero-examples.umd.js +0 -192
  773. package/bundles/daffodil-design-hero-examples.umd.js.map +0 -1
  774. package/bundles/daffodil-design-hero-examples.umd.min.js +0 -2
  775. package/bundles/daffodil-design-hero-examples.umd.min.js.map +0 -1
  776. package/bundles/daffodil-design-list-examples.umd.js +0 -509
  777. package/bundles/daffodil-design-list-examples.umd.js.map +0 -1
  778. package/bundles/daffodil-design-list-examples.umd.min.js +0 -2
  779. package/bundles/daffodil-design-list-examples.umd.min.js.map +0 -1
  780. package/bundles/daffodil-design-loading-icon-examples.umd.js +0 -94
  781. package/bundles/daffodil-design-loading-icon-examples.umd.js.map +0 -1
  782. package/bundles/daffodil-design-loading-icon-examples.umd.min.js +0 -2
  783. package/bundles/daffodil-design-loading-icon-examples.umd.min.js.map +0 -1
  784. package/bundles/daffodil-design-media-gallery-examples.umd.js +0 -95
  785. package/bundles/daffodil-design-media-gallery-examples.umd.js.map +0 -1
  786. package/bundles/daffodil-design-media-gallery-examples.umd.min.js +0 -2
  787. package/bundles/daffodil-design-media-gallery-examples.umd.min.js.map +0 -1
  788. package/bundles/daffodil-design-modal-examples.umd.js +0 -80
  789. package/bundles/daffodil-design-modal-examples.umd.js.map +0 -1
  790. package/bundles/daffodil-design-modal-examples.umd.min.js +0 -2
  791. package/bundles/daffodil-design-modal-examples.umd.min.js.map +0 -1
  792. package/bundles/daffodil-design-navbar-examples.umd.js +0 -177
  793. package/bundles/daffodil-design-navbar-examples.umd.js.map +0 -1
  794. package/bundles/daffodil-design-navbar-examples.umd.min.js +0 -2
  795. package/bundles/daffodil-design-navbar-examples.umd.min.js.map +0 -1
  796. package/bundles/daffodil-design-quantity-field-examples.umd.js +0 -183
  797. package/bundles/daffodil-design-quantity-field-examples.umd.js.map +0 -1
  798. package/bundles/daffodil-design-quantity-field-examples.umd.min.js +0 -2
  799. package/bundles/daffodil-design-quantity-field-examples.umd.min.js.map +0 -1
  800. package/bundles/daffodil-design-radio-examples.umd.js +0 -68
  801. package/bundles/daffodil-design-radio-examples.umd.js.map +0 -1
  802. package/bundles/daffodil-design-radio-examples.umd.min.js +0 -2
  803. package/bundles/daffodil-design-radio-examples.umd.min.js.map +0 -1
  804. package/bundles/daffodil-design.umd.js +0 -5781
  805. package/bundles/daffodil-design.umd.js.map +0 -1
  806. package/bundles/daffodil-design.umd.min.js +0 -16
  807. package/bundles/daffodil-design.umd.min.js.map +0 -1
  808. package/button/examples/daffodil-design-button-examples.metadata.json +0 -1
  809. package/callout/examples/daffodil-design-callout-examples.metadata.json +0 -1
  810. package/card/examples/daffodil-design-card-examples.metadata.json +0 -1
  811. package/checkbox/examples/daffodil-design-checkbox-examples.metadata.json +0 -1
  812. package/container/examples/daffodil-design-container-examples.metadata.json +0 -1
  813. package/daffodil-design.metadata.json +0 -1
  814. package/esm2015/accordion/examples/basic-accordion/basic-accordion.component.js +0 -12
  815. package/esm2015/accordion/examples/basic-accordion/basic-accordion.module.js +0 -19
  816. package/esm2015/accordion/examples/daffodil-design-accordion-examples.js +0 -7
  817. package/esm2015/accordion/examples/nav-accordion/nav-accordion.component.js +0 -12
  818. package/esm2015/accordion/examples/nav-accordion/nav-accordion.module.js +0 -19
  819. package/esm2015/accordion/examples/public_api.js +0 -9
  820. package/esm2015/article/examples/article-blockquote/article-blockquote.component.js +0 -12
  821. package/esm2015/article/examples/article-code-block/article-code-block.component.js +0 -12
  822. package/esm2015/article/examples/article-code-inline/article-code-inline.component.js +0 -12
  823. package/esm2015/article/examples/article-examples.module.js +0 -21
  824. package/esm2015/article/examples/article-headings/article-headings.component.js +0 -12
  825. package/esm2015/article/examples/article-hr/article-hr.component.js +0 -12
  826. package/esm2015/article/examples/article-lead/article-lead.component.js +0 -12
  827. package/esm2015/article/examples/article-link/article-link.component.js +0 -12
  828. package/esm2015/article/examples/article-meta/article-meta.component.js +0 -12
  829. package/esm2015/article/examples/article-ol/article-ol.component.js +0 -12
  830. package/esm2015/article/examples/article-table/article-table.component.js +0 -12
  831. package/esm2015/article/examples/article-ul/article-ul.component.js +0 -12
  832. package/esm2015/article/examples/daffodil-design-article-examples.js +0 -6
  833. package/esm2015/atoms/button/button.component.js +0 -134
  834. package/esm2015/atoms/button/button.module.js +0 -22
  835. package/esm2015/atoms/container/container.component.js +0 -46
  836. package/esm2015/atoms/container/container.module.js +0 -19
  837. package/esm2015/atoms/form/checkbox/checkbox.component.js +0 -131
  838. package/esm2015/atoms/form/checkbox/checkbox.module.js +0 -28
  839. package/esm2015/atoms/form/checkbox/cva/checkbox-cva.directive.js +0 -89
  840. package/esm2015/atoms/form/checkbox-set/checkbox-set.component.js +0 -34
  841. package/esm2015/atoms/form/error-message/error-message.component.js +0 -12
  842. package/esm2015/atoms/form/error-message/error-message.module.js +0 -15
  843. package/esm2015/atoms/form/form-field/form-field/form-field.component.js +0 -100
  844. package/esm2015/atoms/form/form-field/form-field.module.js +0 -24
  845. package/esm2015/atoms/form/input/input.component.js +0 -56
  846. package/esm2015/atoms/form/input/input.module.js +0 -19
  847. package/esm2015/atoms/form/quantity-field/quantity-field.component.js +0 -120
  848. package/esm2015/atoms/form/quantity-field/quantity-field.module.js +0 -31
  849. package/esm2015/atoms/form/quantity-field/quantity-input/quantity-input.component.js +0 -100
  850. package/esm2015/atoms/form/quantity-field/quantity-select/quantity-select.component.js +0 -80
  851. package/esm2015/atoms/form/radio/cva/radio-cva.directive.js +0 -84
  852. package/esm2015/atoms/form/radio/radio.component.js +0 -122
  853. package/esm2015/atoms/form/radio/radio.module.js +0 -25
  854. package/esm2015/atoms/form/radio/registry/radio-registry.js +0 -52
  855. package/esm2015/atoms/form/radio-set/radio-set.component.js +0 -24
  856. package/esm2015/atoms/form/select/select/select.component.js +0 -60
  857. package/esm2015/atoms/form/select/select.module.js +0 -19
  858. package/esm2015/atoms/image/image.component.js +0 -109
  859. package/esm2015/atoms/image/image.module.js +0 -22
  860. package/esm2015/atoms/loading-icon/loading-icon.component.js +0 -59
  861. package/esm2015/atoms/loading-icon/loading-icon.module.js +0 -19
  862. package/esm2015/atoms/progress-indicator/progress-indicator.component.js +0 -87
  863. package/esm2015/atoms/progress-indicator/progress-indicator.module.js +0 -15
  864. package/esm2015/button/examples/basic-button/basic-button.component.js +0 -23
  865. package/esm2015/button/examples/basic-button/basic-button.module.js +0 -21
  866. package/esm2015/button/examples/daffodil-design-button-examples.js +0 -12
  867. package/esm2015/button/examples/icon-button/icon-button.component.js +0 -22
  868. package/esm2015/button/examples/icon-button/icon-button.module.js +0 -21
  869. package/esm2015/button/examples/public_api.js +0 -24
  870. package/esm2015/button/examples/raised-button/raised-button.component.js +0 -23
  871. package/esm2015/button/examples/raised-button/raised-button.module.js +0 -21
  872. package/esm2015/button/examples/sizeable-button/sizeable-button.component.js +0 -21
  873. package/esm2015/button/examples/sizeable-button/sizeable-button.module.js +0 -21
  874. package/esm2015/button/examples/statusable-button/statusable-button.component.js +0 -27
  875. package/esm2015/button/examples/statusable-button/statusable-button.module.js +0 -21
  876. package/esm2015/button/examples/stroked-button/stroked-button.component.js +0 -23
  877. package/esm2015/button/examples/stroked-button/stroked-button.module.js +0 -21
  878. package/esm2015/button/examples/underline-button/underline-button.component.js +0 -23
  879. package/esm2015/button/examples/underline-button/underline-button.module.js +0 -21
  880. package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.component.js +0 -25
  881. package/esm2015/callout/examples/callout-text-alignment/callout-text-alignment.module.js +0 -24
  882. package/esm2015/callout/examples/callout-theming/callout-theming.component.js +0 -29
  883. package/esm2015/callout/examples/callout-theming/callout-theming.module.js +0 -23
  884. package/esm2015/callout/examples/callout-with-grid/callout-with-grid.component.js +0 -17
  885. package/esm2015/callout/examples/callout-with-grid/callout-with-grid.module.js +0 -24
  886. package/esm2015/callout/examples/compact-callout/compact-callout.component.js +0 -17
  887. package/esm2015/callout/examples/compact-callout/compact-callout.module.js +0 -22
  888. package/esm2015/card/examples/basic-card/basic-card.component.js +0 -17
  889. package/esm2015/card/examples/basic-card/basic-card.module.js +0 -25
  890. package/esm2015/card/examples/card-orientation/card-orientation.component.js +0 -24
  891. package/esm2015/card/examples/card-orientation/card-orientation.module.js +0 -27
  892. package/esm2015/card/examples/card-theming/card-theming.component.js +0 -31
  893. package/esm2015/card/examples/card-theming/card-theming.module.js +0 -24
  894. package/esm2015/card/examples/daffodil-design-card-examples.js +0 -11
  895. package/esm2015/card/examples/linkable-card/linkable-card.component.js +0 -29
  896. package/esm2015/card/examples/linkable-card/linkable-card.module.js +0 -27
  897. package/esm2015/card/examples/public_api.js +0 -21
  898. package/esm2015/card/examples/raised-card/raised-card.component.js +0 -27
  899. package/esm2015/card/examples/raised-card/raised-card.module.js +0 -25
  900. package/esm2015/card/examples/stroked-card/stroked-card.component.js +0 -27
  901. package/esm2015/card/examples/stroked-card/stroked-card.module.js +0 -27
  902. package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.component.js +0 -25
  903. package/esm2015/checkbox/examples/basic-checkbox/basic-checkbox.module.js +0 -23
  904. package/esm2015/checkbox/examples/checkbox-set/checkbox-set.component.js +0 -27
  905. package/esm2015/checkbox/examples/checkbox-set/checkbox-set.module.js +0 -23
  906. package/esm2015/checkbox/examples/daffodil-design-checkbox-examples.js +0 -9
  907. package/esm2015/container/examples/container-sizes/container-sizes.component.js +0 -23
  908. package/esm2015/container/examples/container-sizes/container-sizes.module.js +0 -23
  909. package/esm2015/core/colorable/colorable-mixin.js +0 -43
  910. package/esm2015/core/prefix-suffix/prefix-suffix.module.js +0 -19
  911. package/esm2015/core/prefix-suffix/prefix.directive.js +0 -20
  912. package/esm2015/core/prefix-suffix/prefixable/prefixable.js +0 -24
  913. package/esm2015/core/prefix-suffix/suffix.directive.js +0 -20
  914. package/esm2015/core/prefix-suffix/suffixable/suffixable.js +0 -24
  915. package/esm2015/core/public_api.js +0 -13
  916. package/esm2015/core/sizeable/sizeable-mixin.js +0 -32
  917. package/esm2015/core/statusable/statusable-mixin.js +0 -33
  918. package/esm2015/core/text-alignable/text-alignable-mixin.js +0 -36
  919. package/esm2015/daffodil-design.js +0 -15
  920. package/esm2015/hero/examples/compact-hero/compact-hero.component.js +0 -17
  921. package/esm2015/hero/examples/compact-hero/compact-hero.module.js +0 -26
  922. package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.component.js +0 -25
  923. package/esm2015/hero/examples/hero-text-alignment/hero-text-alignment.module.js +0 -24
  924. package/esm2015/hero/examples/hero-theming/hero-theming.component.js +0 -20
  925. package/esm2015/hero/examples/hero-theming/hero-theming.module.js +0 -26
  926. package/esm2015/hero/examples/hero-with-grid/hero-with-grid.component.js +0 -17
  927. package/esm2015/hero/examples/hero-with-grid/hero-with-grid.module.js +0 -24
  928. package/esm2015/list/examples/basic-list/basic-list.component.js +0 -12
  929. package/esm2015/list/examples/basic-list/basic-list.module.js +0 -21
  930. package/esm2015/list/examples/daffodil-design-list-examples.js +0 -9
  931. package/esm2015/list/examples/icon-list/icon-list.component.js +0 -16
  932. package/esm2015/list/examples/icon-list/icon-list.module.js +0 -23
  933. package/esm2015/list/examples/list-examples.module.js +0 -24
  934. package/esm2015/list/examples/multiline-list/multiline-list.component.js +0 -12
  935. package/esm2015/list/examples/multiline-list/multiline-list.module.js +0 -23
  936. package/esm2015/list/examples/nav-list/nav-list.component.js +0 -16
  937. package/esm2015/list/examples/nav-list/nav-list.module.js +0 -23
  938. package/esm2015/loading-icon/examples/daffodil-design-loading-icon-examples.js +0 -6
  939. package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.component.js +0 -18
  940. package/esm2015/loading-icon/examples/loading-icon-color/loading-icon-color.module.js +0 -22
  941. package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.component.js +0 -12
  942. package/esm2015/loading-icon/examples/loading-icon-diameter/loading-icon-diameter.module.js +0 -19
  943. package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.component.js +0 -12
  944. package/esm2015/media-gallery/examples/basic-media-gallery/basic-media-gallery.module.js +0 -21
  945. package/esm2015/media-gallery/examples/daffodil-design-media-gallery-examples.js +0 -7
  946. package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.component.js +0 -12
  947. package/esm2015/media-gallery/examples/mismatched-sizes-media-gallery/mismatched-sizes-media-gallery.module.js +0 -21
  948. package/esm2015/media-gallery/examples/public_api.js +0 -4
  949. package/esm2015/modal/examples/basic-modal/basic-modal.component.js +0 -24
  950. package/esm2015/modal/examples/basic-modal/basic-modal.module.js +0 -22
  951. package/esm2015/modal/examples/basic-modal/modal-content.component.js +0 -12
  952. package/esm2015/modal/examples/daffodil-design-modal-examples.js +0 -8
  953. package/esm2015/molecules/accordion/accordion/accordion.component.js +0 -33
  954. package/esm2015/molecules/accordion/accordion-item/accordion-item.component.js +0 -52
  955. package/esm2015/molecules/accordion/accordion-item-content/accordion-item-content.directive.js +0 -18
  956. package/esm2015/molecules/accordion/accordion-item-title/accordion-item-title.directive.js +0 -18
  957. package/esm2015/molecules/accordion/accordion.module.js +0 -35
  958. package/esm2015/molecules/accordion/nav-accordion-item/nav-accordion-item.component.js +0 -72
  959. package/esm2015/molecules/accordion/public_api.js +0 -6
  960. package/esm2015/molecules/article/article/article.component.js +0 -30
  961. package/esm2015/molecules/article/article-lead/article-lead.directive.js +0 -18
  962. package/esm2015/molecules/article/article-meta/article-meta.directive.js +0 -18
  963. package/esm2015/molecules/article/article-title/article-title.directive.js +0 -18
  964. package/esm2015/molecules/article/article.module.js +0 -28
  965. package/esm2015/molecules/backdrop/backdrop/backdrop.component.js +0 -46
  966. package/esm2015/molecules/backdrop/backdrop.module.js +0 -22
  967. package/esm2015/molecules/button-set/button-set.component.js +0 -22
  968. package/esm2015/molecules/button-set/button-set.module.js +0 -15
  969. package/esm2015/molecules/callout/callout/callout.component.js +0 -75
  970. package/esm2015/molecules/callout/callout-body/callout-body.directive.js +0 -18
  971. package/esm2015/molecules/callout/callout-icon/callout-icon.directive.js +0 -18
  972. package/esm2015/molecules/callout/callout-subtitle/callout-subtitle.directive.js +0 -18
  973. package/esm2015/molecules/callout/callout-tagline/callout-tagline.directive.js +0 -18
  974. package/esm2015/molecules/callout/callout-title/callout-title.directive.js +0 -18
  975. package/esm2015/molecules/callout/callout.module.js +0 -34
  976. package/esm2015/molecules/card/card/card.component.js +0 -118
  977. package/esm2015/molecules/card/card-actions/card-actions.directive.js +0 -18
  978. package/esm2015/molecules/card/card-content/card-content.directive.js +0 -18
  979. package/esm2015/molecules/card/card-icon/card-icon.directive.js +0 -18
  980. package/esm2015/molecules/card/card-image/card-image.directive.js +0 -18
  981. package/esm2015/molecules/card/card-tagline/card-tagline.directive.js +0 -18
  982. package/esm2015/molecules/card/card-title/card-title.directive.js +0 -18
  983. package/esm2015/molecules/card/card.module.js +0 -37
  984. package/esm2015/molecules/feature/feature/feature.component.js +0 -46
  985. package/esm2015/molecules/feature/feature-icon/feature-icon.directive.js +0 -18
  986. package/esm2015/molecules/feature/feature-subheader/feature-subheader.directive.js +0 -18
  987. package/esm2015/molecules/feature/feature-subtitle/feature-subtitle.directive.js +0 -18
  988. package/esm2015/molecules/feature/feature-title/feature-title.directive.js +0 -18
  989. package/esm2015/molecules/feature/feature.module.js +0 -31
  990. package/esm2015/molecules/hero/hero/hero.component.js +0 -76
  991. package/esm2015/molecules/hero/hero-body/hero-body.directive.js +0 -18
  992. package/esm2015/molecules/hero/hero-icon/hero-icon.directive.js +0 -18
  993. package/esm2015/molecules/hero/hero-subtitle/hero-subtitle.directive.js +0 -18
  994. package/esm2015/molecules/hero/hero-tagline/hero-tagline.directive.js +0 -18
  995. package/esm2015/molecules/hero/hero-title/hero-title.directive.js +0 -18
  996. package/esm2015/molecules/hero/hero.module.js +0 -34
  997. package/esm2015/molecules/image-gallery/gallery-image/gallery-image.component.js +0 -21
  998. package/esm2015/molecules/image-gallery/image-gallery/image-gallery.component.js +0 -16
  999. package/esm2015/molecules/image-gallery/image-gallery.module.js +0 -24
  1000. package/esm2015/molecules/image-list/image-list.component.js +0 -22
  1001. package/esm2015/molecules/image-list/image-list.module.js +0 -19
  1002. package/esm2015/molecules/link-set/link-set/link-set.component.js +0 -44
  1003. package/esm2015/molecules/link-set/link-set-heading/link-set-heading.directive.js +0 -21
  1004. package/esm2015/molecules/link-set/link-set-item/link-set-item.component.js +0 -22
  1005. package/esm2015/molecules/link-set/link-set-subheading/link-set-subheading.directive.js +0 -21
  1006. package/esm2015/molecules/link-set/link-set.module.js +0 -28
  1007. package/esm2015/molecules/list/list/list.component.js +0 -106
  1008. package/esm2015/molecules/list/list-item/list-item.component.js +0 -46
  1009. package/esm2015/molecules/list/list-subheader/list-subheader.directive.js +0 -21
  1010. package/esm2015/molecules/list/list.module.js +0 -28
  1011. package/esm2015/molecules/media-gallery/media-gallery.component.js +0 -61
  1012. package/esm2015/molecules/media-gallery/media-gallery.module.js +0 -24
  1013. package/esm2015/molecules/media-gallery/media-renderer/media-renderer.component.js +0 -78
  1014. package/esm2015/molecules/media-gallery/registry/media-gallery.registry.js +0 -86
  1015. package/esm2015/molecules/media-gallery/thumbnail/thumbnail.directive.js +0 -79
  1016. package/esm2015/molecules/modal/modal/modal.component.js +0 -73
  1017. package/esm2015/molecules/modal/modal-actions/modal-actions.component.js +0 -12
  1018. package/esm2015/molecules/modal/modal-content/modal-content.component.js +0 -12
  1019. package/esm2015/molecules/modal/modal-header/modal-header.component.js +0 -22
  1020. package/esm2015/molecules/modal/modal-title/modal-title.directive.js +0 -18
  1021. package/esm2015/molecules/modal/modal.module.js +0 -34
  1022. package/esm2015/molecules/modal/service/modal.service.js +0 -73
  1023. package/esm2015/molecules/navbar/navbar.component.js +0 -58
  1024. package/esm2015/molecules/navbar/navbar.module.js +0 -15
  1025. package/esm2015/molecules/paginator/paginator.component.js +0 -161
  1026. package/esm2015/molecules/paginator/paginator.module.js +0 -23
  1027. package/esm2015/molecules/qty-dropdown/qty-dropdown.component.js +0 -110
  1028. package/esm2015/molecules/qty-dropdown/qty-dropdown.module.js +0 -27
  1029. package/esm2015/molecules/sidebar/sidebar/sidebar.component.js +0 -50
  1030. package/esm2015/molecules/sidebar/sidebar-viewport/sidebar-viewport.component.js +0 -117
  1031. package/esm2015/molecules/sidebar/sidebar.module.js +0 -26
  1032. package/esm2015/navbar/examples/basic-navbar/basic-navbar.component.js +0 -13
  1033. package/esm2015/navbar/examples/basic-navbar/basic-navbar.module.js +0 -20
  1034. package/esm2015/navbar/examples/contained-navbar/contained-navbar.component.js +0 -13
  1035. package/esm2015/navbar/examples/contained-navbar/contained-navbar.module.js +0 -20
  1036. package/esm2015/navbar/examples/navbar-theming/navbar-theming.component.js +0 -27
  1037. package/esm2015/navbar/examples/navbar-theming/navbar-theming.module.js +0 -21
  1038. package/esm2015/navbar/examples/raised-navbar/raised-navbar.component.js +0 -13
  1039. package/esm2015/navbar/examples/raised-navbar/raised-navbar.module.js +0 -19
  1040. package/esm2015/quantity-field/examples/basic/basic-quantity-field.component.js +0 -17
  1041. package/esm2015/quantity-field/examples/basic/basic-quantity-field.module.js +0 -24
  1042. package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.component.js +0 -17
  1043. package/esm2015/quantity-field/examples/customRange/custom-range-quantity-field.module.js +0 -24
  1044. package/esm2015/quantity-field/examples/daffodil-design-quantity-field-examples.js +0 -9
  1045. package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.component.js +0 -17
  1046. package/esm2015/quantity-field/examples/disabled/disabled-quantity-field.module.js +0 -24
  1047. package/esm2015/quantity-field/examples/public_api.js +0 -6
  1048. package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.component.js +0 -17
  1049. package/esm2015/quantity-field/examples/selectMax/select-max-quantity-field.module.js +0 -24
  1050. package/esm2015/radio/examples/basic-radio/basic-radio.component.js +0 -22
  1051. package/esm2015/radio/examples/basic-radio/basic-radio.module.js +0 -22
  1052. package/esm2015/radio/examples/daffodil-design-radio-examples.js +0 -7
  1053. package/fesm2015/daffodil-design-accordion-examples.js +0 -68
  1054. package/fesm2015/daffodil-design-accordion-examples.js.map +0 -1
  1055. package/fesm2015/daffodil-design-article-examples.js +0 -162
  1056. package/fesm2015/daffodil-design-article-examples.js.map +0 -1
  1057. package/fesm2015/daffodil-design-button-examples.js +0 -288
  1058. package/fesm2015/daffodil-design-button-examples.js.map +0 -1
  1059. package/fesm2015/daffodil-design-callout-examples.js +0 -168
  1060. package/fesm2015/daffodil-design-callout-examples.js.map +0 -1
  1061. package/fesm2015/daffodil-design-card-examples.js +0 -287
  1062. package/fesm2015/daffodil-design-card-examples.js.map +0 -1
  1063. package/fesm2015/daffodil-design-checkbox-examples.js +0 -104
  1064. package/fesm2015/daffodil-design-checkbox-examples.js.map +0 -1
  1065. package/fesm2015/daffodil-design-container-examples.js +0 -54
  1066. package/fesm2015/daffodil-design-container-examples.js.map +0 -1
  1067. package/fesm2015/daffodil-design-hero-examples.js +0 -165
  1068. package/fesm2015/daffodil-design-hero-examples.js.map +0 -1
  1069. package/fesm2015/daffodil-design-list-examples.js +0 -157
  1070. package/fesm2015/daffodil-design-list-examples.js.map +0 -1
  1071. package/fesm2015/daffodil-design-loading-icon-examples.js +0 -76
  1072. package/fesm2015/daffodil-design-loading-icon-examples.js.map +0 -1
  1073. package/fesm2015/daffodil-design-media-gallery-examples.js +0 -72
  1074. package/fesm2015/daffodil-design-media-gallery-examples.js.map +0 -1
  1075. package/fesm2015/daffodil-design-modal-examples.js +0 -63
  1076. package/fesm2015/daffodil-design-modal-examples.js.map +0 -1
  1077. package/fesm2015/daffodil-design-navbar-examples.js +0 -142
  1078. package/fesm2015/daffodil-design-navbar-examples.js.map +0 -1
  1079. package/fesm2015/daffodil-design-quantity-field-examples.js +0 -154
  1080. package/fesm2015/daffodil-design-quantity-field-examples.js.map +0 -1
  1081. package/fesm2015/daffodil-design-radio-examples.js +0 -55
  1082. package/fesm2015/daffodil-design-radio-examples.js.map +0 -1
  1083. package/fesm2015/daffodil-design.js +0 -4776
  1084. package/fesm2015/daffodil-design.js.map +0 -1
  1085. package/hero/examples/daffodil-design-hero-examples.metadata.json +0 -1
  1086. package/list/examples/daffodil-design-list-examples.metadata.json +0 -1
  1087. package/loading-icon/examples/daffodil-design-loading-icon-examples.metadata.json +0 -1
  1088. package/media-gallery/examples/daffodil-design-media-gallery-examples.metadata.json +0 -1
  1089. package/modal/examples/daffodil-design-modal-examples.metadata.json +0 -1
  1090. package/navbar/examples/daffodil-design-navbar-examples.metadata.json +0 -1
  1091. package/quantity-field/examples/daffodil-design-quantity-field-examples.metadata.json +0 -1
  1092. package/radio/examples/daffodil-design-radio-examples.metadata.json +0 -1
@@ -0,0 +1,94 @@
1
+ import { Directive, Input, Self, Optional, } from '@angular/core';
2
+ import { NgControl, } from '@angular/forms';
3
+ import { DaffCheckboxComponent } from '../checkbox.component';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/forms";
6
+ import * as i2 from "../checkbox.component";
7
+ /**
8
+ * A directive for binding the DaffCheckboxComponent and the Control Value Accessor.
9
+ */
10
+ export class DaffCheckboxControlValueAccessorDirective {
11
+ constructor(_control, _checkbox) {
12
+ this._control = _control;
13
+ this._checkbox = _checkbox;
14
+ if (this._control != null) {
15
+ this._control.valueAccessor = this;
16
+ }
17
+ }
18
+ /**
19
+ * A lifecycle method called when the directive is initialized.
20
+ */
21
+ ngOnInit() {
22
+ // See the note about `writeValue` usage.
23
+ this.writeValue(this._control.value);
24
+ // Watch for user events on the component to update the state
25
+ this._checkbox.becameChecked.subscribe(() => {
26
+ this._onChange(true);
27
+ });
28
+ this._checkbox.becameUnchecked.subscribe(() => {
29
+ this._onChange(false);
30
+ });
31
+ }
32
+ /**
33
+ * writes a new value down into the component.
34
+ */
35
+ writeValue(value) {
36
+ value = !!value;
37
+ if (value === true) {
38
+ this.fireSelect();
39
+ }
40
+ else {
41
+ this.fireDeselect();
42
+ }
43
+ }
44
+ /**
45
+ * Registers the change handler
46
+ */
47
+ registerOnChange(fn) {
48
+ this._onChange = (val) => {
49
+ fn(val);
50
+ };
51
+ }
52
+ /**
53
+ * Registers the touched handler
54
+ */
55
+ registerOnTouched(fn) {
56
+ this._onTouched = fn;
57
+ }
58
+ /**
59
+ * Sets the disabled state.
60
+ */
61
+ setDisabledState(isDisabled) {
62
+ this._checkbox.disabled = isDisabled;
63
+ }
64
+ /**
65
+ * calls the child checkbox's select function
66
+ */
67
+ fireSelect() {
68
+ this._checkbox.select();
69
+ }
70
+ /**
71
+ * calls the child checkbox's deselect function
72
+ */
73
+ fireDeselect() {
74
+ this._checkbox.deselect();
75
+ }
76
+ }
77
+ /** @nocollapse */ /** @nocollapse */ DaffCheckboxControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCheckboxControlValueAccessorDirective, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i2.DaffCheckboxComponent }], target: i0.ɵɵFactoryTarget.Directive });
78
+ /** @nocollapse */ /** @nocollapse */ DaffCheckboxControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: DaffCheckboxControlValueAccessorDirective, selector: "daff-checkbox[ngModel], daff-checkbox[formControl], daff-checkbox[formControlName]", inputs: { value: "value", name: "name" }, ngImport: i0 });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCheckboxControlValueAccessorDirective, decorators: [{
80
+ type: Directive,
81
+ args: [{
82
+ // eslint-disable-next-line @angular-eslint/directive-selector
83
+ selector: 'daff-checkbox[ngModel], daff-checkbox[formControl], daff-checkbox[formControlName]',
84
+ }]
85
+ }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
86
+ type: Optional
87
+ }, {
88
+ type: Self
89
+ }] }, { type: i2.DaffCheckboxComponent }]; }, propDecorators: { value: [{
90
+ type: Input
91
+ }], name: [{
92
+ type: Input
93
+ }] } });
94
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtY3ZhLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9hdG9tcy9mb3JtL2NoZWNrYm94L2N2YS9jaGVja2JveC1jdmEuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUVMLElBQUksRUFDSixRQUFRLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUNMLFNBQVMsR0FHVixNQUFNLGdCQUFnQixDQUFDO0FBRXhCLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDOzs7O0FBRTlEOztHQUVHO0FBS0gsTUFBTSxPQUFPLHlDQUF5QztJQWNwRCxZQUM2QixRQUFtQixFQUN0QyxTQUFnQztRQURiLGFBQVEsR0FBUixRQUFRLENBQVc7UUFDdEMsY0FBUyxHQUFULFNBQVMsQ0FBdUI7UUFFeEMsSUFBSSxJQUFJLENBQUMsUUFBUSxJQUFJLElBQUksRUFBRTtZQUN6QixJQUFJLENBQUMsUUFBUSxDQUFDLGFBQWEsR0FBRyxJQUFJLENBQUM7U0FDcEM7SUFDSCxDQUFDO0lBR0Q7O09BRUc7SUFDSCxRQUFRO1FBQ04seUNBQXlDO1FBQ3pDLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLFFBQVEsQ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MgdGhlIGRpc2FibGVkIHN0YXRlLlxuICAgKi9cbiAgc2V0RGlzYWJsZWRTdGF0ZT8oaXNEaXNhYmxlZDogYm9vbGVhbik6IHZvaWQge1xuICAgIHRoaXMuX2NoZWNrYm94LmRpc2FibGVkID0gaXNEaXNhYmxlZDtcbiAgfVxuXG4gIC8qKlxuICAgKiBjYWxscyB0aGUgY2hpbGQgY2hlY2tib3gncyBzZWxlY3QgZnVuY3Rpb25cbiAgICovXG4gIGZpcmVTZWxlY3QoKSB7XG4gICAgdGhpcy5fY2hlY2tib3guc2VsZWN0KCk7XG4gIH1cblxuICAvKipcbiAgICogY2FsbHMgdGhlIGNoaWxkIGNoZWNrYm94J3MgZGVzZWxlY3QgZnVuY3Rpb25cbiAgICovXG4gIGZpcmVEZXNlbGVjdCgpIHtcbiAgICB0aGlzLl9jaGVja2JveC5kZXNlbGVjdCgpO1xuICB9XG5cbn1cbiJdfQ==
@@ -0,0 +1,38 @@
1
+ import { Component, Input, HostBinding, ChangeDetectionStrategy, ContentChildren, QueryList, Output, EventEmitter, } from '@angular/core';
2
+ import { FormArray } from '@angular/forms';
3
+ import { DaffCheckboxComponent } from '../checkbox/checkbox.component';
4
+ import * as i0 from "@angular/core";
5
+ export class DaffCheckboxSetComponent {
6
+ constructor() {
7
+ /**
8
+ * The role of the component. Set to "checkbox".
9
+ *
10
+ * @docs-private
11
+ */
12
+ this.role = 'group';
13
+ this.valueList = new EventEmitter();
14
+ }
15
+ getValues() {
16
+ const checkboxes = this.checkboxes.toArray();
17
+ return this.formArray.value.map((element, index) => element === true ? checkboxes[index].value : false).filter(element => element !== false);
18
+ }
19
+ }
20
+ /** @nocollapse */ /** @nocollapse */ DaffCheckboxSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCheckboxSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ /** @nocollapse */ /** @nocollapse */ DaffCheckboxSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffCheckboxSetComponent, selector: "daff-checkbox-set", inputs: { formArray: "formArray", name: "name" }, outputs: { valueList: "valueList" }, host: { properties: { "attr.role": "this.role" } }, queries: [{ propertyName: "checkboxes", predicate: DaffCheckboxComponent }], ngImport: i0, template: "<ng-content></ng-content>", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffCheckboxSetComponent, decorators: [{
23
+ type: Component,
24
+ args: [{ selector: 'daff-checkbox-set', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>", styles: [""] }]
25
+ }], propDecorators: { formArray: [{
26
+ type: Input
27
+ }], name: [{
28
+ type: Input
29
+ }], role: [{
30
+ type: HostBinding,
31
+ args: ['attr.role']
32
+ }], checkboxes: [{
33
+ type: ContentChildren,
34
+ args: [DaffCheckboxComponent]
35
+ }], valueList: [{
36
+ type: Output
37
+ }] } });
38
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtc2V0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGVzaWduL3NyYy9hdG9tcy9mb3JtL2NoZWNrYm94LXNldC9jaGVja2JveC1zZXQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vY2hlY2tib3gtc2V0L2NoZWNrYm94LXNldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCxXQUFXLEVBQ1gsdUJBQXVCLEVBQ3ZCLGVBQWUsRUFDZixTQUFTLEVBQ1QsT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wJztcblxuICAvKipcbiAgICogVGhlIGxpc3Qgb2YgY2hlY2tib3hlcyBpbiB0aGUgc2V0LlxuICAgKlxuICAgKiBAZG9jcy1wcml2YXRlXG4gICAqL1xuICBAQ29udGVudENoaWxkcmVuKERhZmZDaGVja2JveENvbXBvbmVudCkgY2hlY2tib3hlczogUXVlcnlMaXN0PERhZmZDaGVja2JveENvbXBvbmVudD47XG5cbiAgQE91dHB1dCgpIHZhbHVlTGlzdCA9IG5ldyBFdmVudEVtaXR0ZXI8YW55W10+KCk7XG5cbiAgZ2V0VmFsdWVzKCk6IGFueVtdIHtcbiAgICBjb25zdCBjaGVja2JveGVzID0gdGhpcy5jaGVja2JveGVzLnRvQXJyYXkoKTtcbiAgICByZXR1cm4gdGhpcy5mb3JtQXJyYXkudmFsdWUubWFwKChlbGVtZW50LCBpbmRleCkgPT4gZWxlbWVudCA9PT0gdHJ1ZSA/IGNoZWNrYm94ZXNbaW5kZXhdLnZhbHVlIDogZmFsc2UpLmZpbHRlcihlbGVtZW50ID0+IGVsZW1lbnQgIT09IGZhbHNlKTtcbiAgfVxufVxuIiwiPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PiJdfQ==
@@ -0,0 +1,11 @@
1
+ import { Component, ChangeDetectionStrategy, } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class DaffErrorMessageComponent {
4
+ }
5
+ /** @nocollapse */ /** @nocollapse */ DaffErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
+ /** @nocollapse */ /** @nocollapse */ DaffErrorMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffErrorMessageComponent, selector: "daff-error-message", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block;font-size:.875rem;margin-top:5px}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageComponent, decorators: [{
8
+ type: Component,
9
+ args: [{ selector: 'daff-error-message', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;font-size:.875rem;margin-top:5px}\n"] }]
10
+ }] });
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9lcnJvci1tZXNzYWdlL2Vycm9yLW1lc3NhZ2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEdBQ3hCLE1BQU0sZUFBZSxDQUFDOztBQVF2QixNQUFNLE9BQU8seUJBQXlCOzs0SkFBekIseUJBQXlCO2dKQUF6Qix5QkFBeUIsMERBSjFCLDJCQUEyQjsyRkFJMUIseUJBQXlCO2tCQU5yQyxTQUFTOytCQUNFLG9CQUFvQixZQUNwQiwyQkFBMkIsbUJBRXBCLHVCQUF1QixDQUFDLE1BQU0iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1xuICBDb21wb25lbnQsXG4gIENoYW5nZURldGVjdGlvblN0cmF0ZWd5LFxufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnZGFmZi1lcnJvci1tZXNzYWdlJyxcbiAgdGVtcGxhdGU6ICc8bmctY29udGVudD48L25nLWNvbnRlbnQ+JyxcbiAgc3R5bGVVcmxzOiBbJy4vZXJyb3ItbWVzc2FnZS5jb21wb25lbnQuc2NzcyddLFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZkVycm9yTWVzc2FnZUNvbXBvbmVudCB7fVxuIl19
@@ -0,0 +1,20 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { DaffErrorMessageComponent } from './error-message.component';
3
+ import * as i0 from "@angular/core";
4
+ export class DaffErrorMessageModule {
5
+ }
6
+ /** @nocollapse */ /** @nocollapse */ DaffErrorMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ /** @nocollapse */ /** @nocollapse */ DaffErrorMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageModule, declarations: [DaffErrorMessageComponent], exports: [DaffErrorMessageComponent] });
8
+ /** @nocollapse */ /** @nocollapse */ DaffErrorMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffErrorMessageModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{
12
+ exports: [
13
+ DaffErrorMessageComponent,
14
+ ],
15
+ declarations: [
16
+ DaffErrorMessageComponent,
17
+ ],
18
+ }]
19
+ }] });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3ItbWVzc2FnZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9lcnJvci1tZXNzYWdlL2Vycm9yLW1lc3NhZ2UubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFekMsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sMkJBQTJCLENBQUM7O0FBVXRFLE1BQU0sT0FBTyxzQkFBc0I7O3lKQUF0QixzQkFBc0I7MEpBQXRCLHNCQUFzQixpQkFIL0IseUJBQXlCLGFBSHpCLHlCQUF5QjswSkFNaEIsc0JBQXNCOzJGQUF0QixzQkFBc0I7a0JBUmxDLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFO3dCQUNQLHlCQUF5QjtxQkFDMUI7b0JBQ0QsWUFBWSxFQUFFO3dCQUNaLHlCQUF5QjtxQkFDMUI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgRGFmZkVycm9yTWVzc2FnZUNvbXBvbmVudCB9IGZyb20gJy4vZXJyb3ItbWVzc2FnZS5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBleHBvcnRzOiBbXG4gICAgRGFmZkVycm9yTWVzc2FnZUNvbXBvbmVudCxcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgRGFmZkVycm9yTWVzc2FnZUNvbXBvbmVudCxcbiAgXSxcbn0pXG5leHBvcnQgY2xhc3MgRGFmZkVycm9yTWVzc2FnZU1vZHVsZSB7IH1cbiJdfQ==
@@ -0,0 +1,102 @@
1
+ import { Component, ViewEncapsulation, ContentChild, Input, HostBinding, } from '@angular/core';
2
+ import { faChevronDown } from '@fortawesome/free-solid-svg-icons';
3
+ import { DaffFormFieldControl } from '../form-field-control';
4
+ import { DaffFormFieldMissingControlMessage } from '../form-field-errors';
5
+ import * as i0 from "@angular/core";
6
+ import * as i1 from "@fortawesome/angular-fontawesome";
7
+ import * as i2 from "@angular/common";
8
+ // ChangeDetection is ignored because this component needs to be refactored
9
+ // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
10
+ export class DaffFormFieldComponent {
11
+ constructor() {
12
+ /**
13
+ * @docs-private
14
+ */
15
+ this.faChevronDown = faChevronDown;
16
+ this.class = true;
17
+ /**
18
+ * The tracking property used to determine if the parent form has been submitted,
19
+ * and thus show an error message (even if the field hasn't been touched).
20
+ *
21
+ * @deprecated
22
+ */
23
+ // eslint-disable-next-line @typescript-eslint/no-inferrable-types
24
+ this.formSubmitted = false;
25
+ /**
26
+ * Tracking property to keep a record of whether or not the
27
+ * form field should be marked as error.
28
+ */
29
+ this.isError = false;
30
+ /**
31
+ * Tracking property to keep a record of whether or not the
32
+ * form field should be marked as valid.
33
+ */
34
+ this.isValid = false;
35
+ }
36
+ /**
37
+ * @docs
38
+ *
39
+ * Determines whether or not the form field should display its focused state.
40
+ */
41
+ get isFocused() {
42
+ return this._control?.focused;
43
+ }
44
+ /**
45
+ * Keeps the state of the form field consistent with its child DaffFormControl
46
+ *
47
+ * TODO: consider whether or not this can be refactored to some kind of
48
+ * observable to remove unnecessary change detection.
49
+ *
50
+ * @docs-private
51
+ */
52
+ ngDoCheck() {
53
+ if (this._control?.ngControl) {
54
+ this.isError = this._control.ngControl.errors && (this._control.ngControl.touched);
55
+ this.isValid = !this._control.ngControl.errors && this._control.ngControl.touched;
56
+ }
57
+ }
58
+ /**
59
+ * Validate whether or not the FormField is in
60
+ * a "usable" state.
61
+ */
62
+ _validateFormControl() {
63
+ if (!this._control) {
64
+ throw new Error(DaffFormFieldMissingControlMessage);
65
+ }
66
+ }
67
+ /**
68
+ * Life cycle hook to verify that the form field has an acceptable
69
+ * child control instance. Mostly useful for development-time
70
+ * validation of usage.
71
+ *
72
+ * @docs-private
73
+ */
74
+ ngAfterContentInit() {
75
+ this._validateFormControl();
76
+ }
77
+ /**
78
+ * Life cycle hook to verify that the form field has an acceptable
79
+ * child control instance. Mostly useful for development-time
80
+ * validation of usage.
81
+ *
82
+ * @docs-private
83
+ */
84
+ ngAfterContentChecked() {
85
+ this._validateFormControl();
86
+ }
87
+ }
88
+ /** @nocollapse */ /** @nocollapse */ DaffFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
+ /** @nocollapse */ /** @nocollapse */ DaffFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffFormFieldComponent, selector: "daff-form-field", inputs: { formSubmitted: "formSubmitted" }, host: { properties: { "class.daff-form-field": "this.class" } }, queries: [{ propertyName: "_control", first: true, predicate: DaffFormFieldControl, descendants: true }], ngImport: i0, template: "<div class=\"daff-form-field__control\" [class.daff-error]=\"isError\" [class.daff-valid]=\"isValid\" [class.daff-focus]=\"isFocused\">\n <ng-content></ng-content>\n <div class=\"daff-form-field__icon\" *ngIf=\"_control.controlType === 'native-select'\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </div>\n</div>\n<ng-content select=\"daff-error-message\"></ng-content>\n", styles: [".daff-form-field{display:block;position:relative}.daff-form-field__control{border-radius:3px;display:inline-block;font-size:1rem;height:inherit;line-height:1.5rem;padding:10px 15px;width:100%}.daff-form-field__icon{display:inline-block;pointer-events:none;position:absolute;right:15px}\n"], components: [{ type: i1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldComponent, decorators: [{
91
+ type: Component,
92
+ args: [{ selector: 'daff-form-field', encapsulation: ViewEncapsulation.None, template: "<div class=\"daff-form-field__control\" [class.daff-error]=\"isError\" [class.daff-valid]=\"isValid\" [class.daff-focus]=\"isFocused\">\n <ng-content></ng-content>\n <div class=\"daff-form-field__icon\" *ngIf=\"_control.controlType === 'native-select'\">\n <fa-icon [icon]=\"faChevronDown\"></fa-icon>\n </div>\n</div>\n<ng-content select=\"daff-error-message\"></ng-content>\n", styles: [".daff-form-field{display:block;position:relative}.daff-form-field__control{border-radius:3px;display:inline-block;font-size:1rem;height:inherit;line-height:1.5rem;padding:10px 15px;width:100%}.daff-form-field__icon{display:inline-block;pointer-events:none;position:absolute;right:15px}\n"] }]
93
+ }], propDecorators: { class: [{
94
+ type: HostBinding,
95
+ args: ['class.daff-form-field']
96
+ }], formSubmitted: [{
97
+ type: Input
98
+ }], _control: [{
99
+ type: ContentChild,
100
+ args: [DaffFormFieldControl]
101
+ }] } });
102
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2Rlc2lnbi9zcmMvYXRvbXMvZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUVqQixZQUFZLEVBQ1osS0FBSyxFQUdMLFdBQVcsR0FDWixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPL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nRlbnQ+XG4iXX0=
@@ -0,0 +1,36 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
4
+ import { DaffErrorMessageModule } from '../error-message/error-message.module';
5
+ import { DaffFormFieldComponent } from './form-field/form-field.component';
6
+ import * as i0 from "@angular/core";
7
+ export class DaffFormFieldModule {
8
+ }
9
+ /** @nocollapse */ /** @nocollapse */ DaffFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ /** @nocollapse */ /** @nocollapse */ DaffFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldModule, declarations: [DaffFormFieldComponent], imports: [CommonModule,
11
+ FontAwesomeModule,
12
+ DaffErrorMessageModule], exports: [DaffFormFieldComponent,
13
+ DaffErrorMessageModule] });
14
+ /** @nocollapse */ /** @nocollapse */ DaffFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldModule, imports: [[
15
+ CommonModule,
16
+ FontAwesomeModule,
17
+ DaffErrorMessageModule,
18
+ ], DaffErrorMessageModule] });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffFormFieldModule, decorators: [{
20
+ type: NgModule,
21
+ args: [{
22
+ imports: [
23
+ CommonModule,
24
+ FontAwesomeModule,
25
+ DaffErrorMessageModule,
26
+ ],
27
+ exports: [
28
+ DaffFormFieldComponent,
29
+ DaffErrorMessageModule,
30
+ ],
31
+ declarations: [
32
+ DaffFormFieldComponent,
33
+ ],
34
+ }]
35
+ }] });
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1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yBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEZvbnRBd2Vzb21lTW9kdWxlIH0gZnJvbSAnQGZvcnRhd2Vzb21lL2FuZ3VsYXItZm9udGF3ZXNvbWUnO1xuXG5pbXBvcnQgeyBEYWZmRXJyb3JNZXNzYWdlTW9kdWxlIH0gZnJvbSAnLi4vZXJyb3ItbWVzc2FnZS9lcnJvci1tZXNzYWdlLm1vZHVsZSc7XG5pbXBvcnQgeyBEYWZmRm9ybUZpZWxkQ29tcG9uZW50IH0gZnJvbSAnLi9mb3JtLWZpZWxkL2Zvcm0tZmllbGQuY29tcG9uZW50JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcblxuICAgIEZvbnRBd2Vzb21lTW9kdWxlLFxuICAgIERhZmZFcnJvck1lc3NhZ2VNb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBEYWZmRm9ybUZpZWxkQ29tcG9uZW50LFxuICAgIERhZmZFcnJvck1lc3NhZ2VNb2R1bGUsXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIERhZmZGb3JtRmllbGRDb21wb25lbnQsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIERhZmZGb3JtRmllbGRNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,59 @@
1
+ import { Component, Input, Optional, Self, ElementRef, HostListener, ChangeDetectionStrategy, } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { DaffFormFieldControl } from '../form-field/form-field-control';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/forms";
6
+ /**
7
+ * DaffInputComponent provides the same functionality as a native `<input>` and contains custom styling and functionality.
8
+ */
9
+ export class DaffInputComponent {
10
+ constructor(
11
+ /**
12
+ * @docs-private
13
+ */
14
+ ngControl, _elementRef) {
15
+ this.ngControl = ngControl;
16
+ this._elementRef = _elementRef;
17
+ this.focused = false;
18
+ }
19
+ /**
20
+ * @docs-private
21
+ */
22
+ focus() {
23
+ this.focused = true;
24
+ }
25
+ /**
26
+ * @docs-private
27
+ */
28
+ blur() {
29
+ this.focused = false;
30
+ }
31
+ onFocus() {
32
+ this._elementRef.nativeElement.focus();
33
+ }
34
+ }
35
+ /** @nocollapse */ /** @nocollapse */ DaffInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
36
+ /** @nocollapse */ /** @nocollapse */ DaffInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffInputComponent, selector: "input[daff-input]", inputs: { formSubmitted: "formSubmitted" }, host: { listeners: { "focus": "focus()", "blur": "blur()" } }, providers: [
37
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
38
+ { provide: DaffFormFieldControl, useExisting: DaffInputComponent },
39
+ ], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{border:none;border-radius:4px;box-shadow:none;font-size:1rem;line-height:1.5rem;margin:0;padding:0;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputComponent, decorators: [{
41
+ type: Component,
42
+ args: [{ selector: 'input[daff-input]', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
43
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
44
+ { provide: DaffFormFieldControl, useExisting: DaffInputComponent },
45
+ ], styles: [":host{border:none;border-radius:4px;box-shadow:none;font-size:1rem;line-height:1.5rem;margin:0;padding:0;width:100%;box-sizing:border-box}:host:focus{border:none;box-shadow:none;outline:none}\n"] }]
46
+ }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
47
+ type: Optional
48
+ }, {
49
+ type: Self
50
+ }] }, { type: i0.ElementRef }]; }, propDecorators: { formSubmitted: [{
51
+ type: Input
52
+ }], focus: [{
53
+ type: HostListener,
54
+ args: ['focus']
55
+ }], blur: [{
56
+ type: HostListener,
57
+ args: ['blur']
58
+ }] } });
59
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vaW5wdXQvaW5wdXQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFFBQVEsRUFDUixJQUFJLEVBQ0osVUFBVSxFQUNWLFlBQVksRUFDWix1QkFBdUIsR0FDeEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRTNDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtDQUFrQyxDQUFDOzs7QUFFeEU7O0dBRUc7QUFZSCxNQUFNLE9BQU8sa0JBQWtCO0lBdUI3QjtJQUNBOztPQUVHO0lBQ3dCLFNBQW9CLEVBQ3ZDLFdBQXlDO1FBRHRCLGNBQVMsR0FBVCxTQUFTLENBQVc7UUFDdkMsZ0JBQVcsR0FBWCxXQUFXLENBQThCO1FBckJqRCxZQUFPLEdBQUcsS0FBSyxDQUFDO0lBc0JiLENBQUM7SUFwQko7O09BRUc7SUFDb0IsS0FBSztRQUMxQixJQUFJLENBQUMsT0FBTyxHQUFHL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N0TGlzdGVuZXIoJ2ZvY3VzJykgZm9jdXMoKSB7XG4gICAgdGhpcy5mb2N1c2VkID0gdHJ1ZTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAZG9jcy1wcml2YXRlXG4gICAqL1xuICBASG9zdExpc3RlbmVyKCdibHVyJykgYmx1cigpIHtcbiAgICB0aGlzLmZvY3VzZWQgPSBmYWxzZTtcbiAgfVxuXG4gIGNvbnN0cnVjdG9yKFxuXHRcdC8qKlxuXHRcdCAqIEBkb2NzLXByaXZhdGVcblx0XHQgKi9cblx0XHRAT3B0aW9uYWwoKSBAU2VsZigpIHB1YmxpYyBuZ0NvbnRyb2w6IE5nQ29udHJvbCxcblx0XHRwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmPEhUTUxJbnB1dEVsZW1lbnQ+LFxuICApIHt9XG5cbiAgb25Gb2N1cygpIHtcbiAgICB0aGlzLl9lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQuZm9jdXMoKTtcbiAgfVxufVxuIl19
@@ -0,0 +1,26 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { DaffInputComponent } from './input.component';
4
+ import * as i0 from "@angular/core";
5
+ export class DaffInputModule {
6
+ }
7
+ /** @nocollapse */ /** @nocollapse */ DaffInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ /** @nocollapse */ /** @nocollapse */ DaffInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputModule, declarations: [DaffInputComponent], imports: [CommonModule], exports: [DaffInputComponent] });
9
+ /** @nocollapse */ /** @nocollapse */ DaffInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputModule, imports: [[
10
+ CommonModule,
11
+ ]] });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffInputModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ imports: [
16
+ CommonModule,
17
+ ],
18
+ exports: [
19
+ DaffInputComponent,
20
+ ],
21
+ declarations: [
22
+ DaffInputComponent,
23
+ ],
24
+ }]
25
+ }] });
26
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vaW5wdXQvaW5wdXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLG1CQUFtQixDQUFDOztBQWF2RCxNQUFNLE9BQU8sZUFBZTs7a0pBQWYsZUFBZTttSkFBZixlQUFlLGlCQUh4QixrQkFBa0IsYUFObEIsWUFBWSxhQUdaLGtCQUFrQjttSkFNVCxlQUFlLFlBVmpCO1lBQ1AsWUFBWTtTQUNiOzJGQVFVLGVBQWU7a0JBWDNCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFO3dCQUNQLFlBQVk7cUJBQ2I7b0JBQ0QsT0FBTyxFQUFFO3dCQUNQLGtCQUFrQjtxQkFDbkI7b0JBQ0QsWUFBWSxFQUFFO3dCQUNaLGtCQUFrQjtxQkFDbkI7aUJBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHsgRGFmZklucHV0Q29tcG9uZW50IH0gZnJvbSAnLi9pbnB1dC5jb21wb25lbnQnO1xuXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgRGFmZklucHV0Q29tcG9uZW50LFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBEYWZmSW5wdXRDb21wb25lbnQsXG4gIF0sXG59KVxuZXhwb3J0IGNsYXNzIERhZmZJbnB1dE1vZHVsZSB7IH1cbiJdfQ==
@@ -0,0 +1,133 @@
1
+ import { coerceNumberProperty } from '@angular/cdk/coercion';
2
+ import { Component, Input, ChangeDetectionStrategy, Optional, Self, ViewChild, ChangeDetectorRef, } from '@angular/core';
3
+ import { NgControl, } from '@angular/forms';
4
+ import { DaffFormFieldControl } from '../form-field/form-field-control';
5
+ import { DaffQuantityInputComponent } from './quantity-input/quantity-input.component';
6
+ import { DaffQuantitySelectComponent } from './quantity-select/quantity-select.component';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/forms";
9
+ import * as i2 from "./quantity-select/quantity-select.component";
10
+ import * as i3 from "./quantity-input/quantity-input.component";
11
+ import * as i4 from "@angular/common";
12
+ export class DaffQuantityFieldComponent {
13
+ constructor(ngControl, cd) {
14
+ this.ngControl = ngControl;
15
+ this.cd = cd;
16
+ /**
17
+ * @docs
18
+ * The minimum valid value of the quantity field.
19
+ * Must be greater than or equal to 1.
20
+ */
21
+ this.min = 1;
22
+ /**
23
+ * @docs
24
+ * The maximum valid value of the quantity field.
25
+ * Must be greater than min.
26
+ */
27
+ this.max = 500;
28
+ /**
29
+ * @docs
30
+ * The range of numbers acceptable in a quantity dropdown
31
+ * before it becomes an input element.
32
+ */
33
+ this.selectMax = 10;
34
+ this.focused = false;
35
+ this.disabled = false;
36
+ this._quantity = 1;
37
+ this._inputHasBeenShown = false;
38
+ if (this.ngControl != null) {
39
+ this.ngControl.valueAccessor = this;
40
+ }
41
+ }
42
+ get quantity() {
43
+ return this._quantity;
44
+ }
45
+ set quantity(value) {
46
+ this._quantity = coerceNumberProperty(value, 1);
47
+ }
48
+ /**
49
+ * Returns the lesser of max and selectMax.
50
+ */
51
+ get _maxFloor() {
52
+ return Math.min(this.max, this.selectMax);
53
+ }
54
+ get controlType() {
55
+ // TODO: use enum
56
+ return this.showInputField
57
+ ? 'native-input'
58
+ : 'native-select';
59
+ }
60
+ get showInputField() {
61
+ const ret = this._inputHasBeenShown || (this.ngControl
62
+ ? this.ngControl.value >= this.selectMax
63
+ : this.quantity >= this.selectMax);
64
+ if (ret) {
65
+ this._inputHasBeenShown = true;
66
+ }
67
+ return ret;
68
+ }
69
+ get showSelectField() {
70
+ return !this.showInputField;
71
+ }
72
+ onChange(quantity) { }
73
+ ;
74
+ onTouched(quantity) { }
75
+ ;
76
+ writeValue(quantity) {
77
+ this.quantity = quantity;
78
+ this.cd.markForCheck();
79
+ }
80
+ registerOnChange(fn) {
81
+ this.onChange = fn;
82
+ }
83
+ registerOnTouched(fn) {
84
+ this.onTouched = fn;
85
+ }
86
+ setDisabledState(isDisabled) {
87
+ this.disabled = isDisabled;
88
+ }
89
+ focus() {
90
+ if (this.select) {
91
+ this.select.focus();
92
+ }
93
+ if (this.input) {
94
+ this.input.focus();
95
+ }
96
+ this.focused = true;
97
+ }
98
+ }
99
+ /** @nocollapse */ /** @nocollapse */ DaffQuantityFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffQuantityFieldComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
100
+ /** @nocollapse */ /** @nocollapse */ DaffQuantityFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: DaffQuantityFieldComponent, selector: "daff-quantity-field", inputs: { min: "min", max: "max", selectMax: "selectMax" }, providers: [
101
+ {
102
+ provide: DaffFormFieldControl,
103
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
104
+ useExisting: DaffQuantityFieldComponent,
105
+ },
106
+ ], viewQueries: [{ propertyName: "input", first: true, predicate: DaffQuantityInputComponent, descendants: true }, { propertyName: "select", first: true, predicate: DaffQuantitySelectComponent, descendants: true }], ngImport: i0, template: "<daff-quantity-select\n *ngIf=\"showSelectField\"\n [min]=\"min\" [max]=\"_maxFloor\" [extendable]=\"max > selectMax\">\n</daff-quantity-select>\n<daff-quantity-input\n *ngIf=\"showInputField\"\n [min]=\"min\" [max]=\"max\">\n</daff-quantity-input>\n", components: [{ type: i2.DaffQuantitySelectComponent, selector: "daff-quantity-select", inputs: ["min", "max", "extendable"] }, { type: i3.DaffQuantityInputComponent, selector: "daff-quantity-input", inputs: ["min", "max"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: DaffQuantityFieldComponent, decorators: [{
108
+ type: Component,
109
+ args: [{ selector: 'daff-quantity-field', providers: [
110
+ {
111
+ provide: DaffFormFieldControl,
112
+ // eslint-disable-next-line @typescript-eslint/no-use-before-define
113
+ useExisting: DaffQuantityFieldComponent,
114
+ },
115
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<daff-quantity-select\n *ngIf=\"showSelectField\"\n [min]=\"min\" [max]=\"_maxFloor\" [extendable]=\"max > selectMax\">\n</daff-quantity-select>\n<daff-quantity-input\n *ngIf=\"showInputField\"\n [min]=\"min\" [max]=\"max\">\n</daff-quantity-input>\n" }]
116
+ }], ctorParameters: function () { return [{ type: i1.NgControl, decorators: [{
117
+ type: Optional
118
+ }, {
119
+ type: Self
120
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { input: [{
121
+ type: ViewChild,
122
+ args: [DaffQuantityInputComponent]
123
+ }], select: [{
124
+ type: ViewChild,
125
+ args: [DaffQuantitySelectComponent]
126
+ }], min: [{
127
+ type: Input
128
+ }], max: [{
129
+ type: Input
130
+ }], selectMax: [{
131
+ type: Input
132
+ }] } });
133
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhbnRpdHktZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vcXVhbnRpdHktZmllbGQvcXVhbnRpdHktZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9kZXNpZ24vc3JjL2F0b21zL2Zvcm0vcXVhbnRpdHktZmllbGQvcXVhbnRpdHktZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDN0QsT0FBTyxFQUNMLFNBQVMsRUFDVCxLQUFLLEVBQ0wsdUJBQXVCLEVBQ3ZCLFFBQVEsRUFDUixJQUFJLEVBQ0osU0FBUyxFQUNULGlCQUFpQixHQUNsQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBRUwsU0FBUyxHQUNWLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sa0NBQWtDLENBQUM7QUFDeEUsT0FBTyxFQUFFLDBCQUEwQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDdkYsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sNkNBQTZDLENBQUM7Ozs7OztBQWMxRixNQUFNLE9BQ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