mapa-library-ui 0.44.2 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/esm2020/lib/core/elements/element-base.mjs +2 -1
  2. package/esm2020/src/lib/components/capability/lib/core/elements/element-base.mjs +2 -1
  3. package/esm2020/src/lib/components/chart/lib/core/elements/element-base.mjs +2 -1
  4. package/esm2020/src/lib/components/dropdown/dropdown.mjs +2 -1
  5. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.mjs +6 -0
  6. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/checklist-database.mjs +57 -0
  7. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.mjs +178 -0
  8. package/esm2020/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.mjs +83 -0
  9. package/esm2020/src/lib/components/dropdown/lib/core/elements/dropdown-tree.mjs +8 -0
  10. package/esm2020/src/lib/components/dropdown/lib/core/elements/element-base.mjs +2 -1
  11. package/esm2020/src/lib/components/dropdown-tree/dropdown.mjs +9 -0
  12. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/public-api.mjs +6 -0
  13. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.component.mjs +23 -0
  14. package/esm2020/src/lib/components/dropdown-tree/lib/components/button/src/button.module.mjs +19 -0
  15. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.mjs +6 -0
  16. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.mjs +168 -0
  17. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.mjs +71 -0
  18. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/public-api.mjs +6 -0
  19. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/checklist-database.mjs +57 -0
  20. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.mjs +178 -0
  21. package/esm2020/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.mjs +83 -0
  22. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/action-button.mjs +2 -0
  23. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/dropdown-tree.mjs +8 -0
  24. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/dropdown.mjs +8 -0
  25. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/element-base.mjs +33 -0
  26. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/element-search.mjs +2 -0
  27. package/esm2020/src/lib/components/dropdown-tree/lib/core/elements/errors.mjs +2 -0
  28. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/element-group.interface.mjs +2 -0
  29. package/esm2020/src/lib/components/dropdown-tree/lib/core/interfaces/element-option.interface.mjs +2 -0
  30. package/esm2020/src/lib/components/dropdown-tree/mapa-library-ui-src-lib-components-dropdown-tree.mjs +5 -0
  31. package/esm2020/src/lib/components/form/lib/components/form/src/form.component.mjs +3 -3
  32. package/esm2020/src/lib/components/form/lib/components/form/src/form.module.mjs +4 -2
  33. package/esm2020/src/lib/components/form/lib/core/elements/element-base.mjs +2 -1
  34. package/esm2020/src/lib/components/group-report/lib/core/elements/element-base.mjs +2 -1
  35. package/esm2020/src/lib/components/group-report/lib/core/interfaces/classification.interface.mjs +1 -1
  36. package/esm2020/src/lib/components/radio-button/lib/core/elements/element-base.mjs +2 -1
  37. package/esm2020/src/lib/components/scale/filters.mjs +7 -0
  38. package/esm2020/src/lib/components/scale/lib/components/button/public-api.mjs +6 -0
  39. package/esm2020/src/lib/components/scale/lib/components/button/src/button.component.mjs +23 -0
  40. package/esm2020/src/lib/components/scale/lib/components/button/src/button.module.mjs +19 -0
  41. package/esm2020/src/lib/components/scale/lib/components/capability/public-api.mjs +26 -0
  42. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.component.mjs +17 -0
  43. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.module.mjs +32 -0
  44. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.mjs +24 -0
  45. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.mjs +19 -0
  46. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.mjs +20 -0
  47. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.mjs +19 -0
  48. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.mjs +19 -0
  49. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.mjs +19 -0
  50. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.component.mjs +73 -0
  51. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.module.mjs +64 -0
  52. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.component.mjs +31 -0
  53. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.module.mjs +22 -0
  54. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.component.mjs +27 -0
  55. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.module.mjs +22 -0
  56. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.component.mjs +14 -0
  57. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.module.mjs +18 -0
  58. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.mjs +33 -0
  59. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.mjs +21 -0
  60. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.mjs +27 -0
  61. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.mjs +21 -0
  62. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval/capability-interval.component.mjs +81 -0
  63. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval/capability-interval.module.mjs +18 -0
  64. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.mjs +31 -0
  65. package/esm2020/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.mjs +20 -0
  66. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/consts/capability-classification.const.mjs +57 -0
  67. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-classification.interface.mjs +2 -0
  68. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.mjs +2 -0
  69. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-item.interface.mjs +2 -0
  70. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability.interface.mjs +2 -0
  71. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/index.mjs +4 -0
  72. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/services/capability-classification.service.mjs +14 -0
  73. package/esm2020/src/lib/components/scale/lib/components/capability/src/essentials/services/reusable-interval-bar.service.mjs +32 -0
  74. package/esm2020/src/lib/components/scale/lib/components/dropdown/public-api.mjs +6 -0
  75. package/esm2020/src/lib/components/scale/lib/components/dropdown/src/dropdown.component.mjs +168 -0
  76. package/esm2020/src/lib/components/scale/lib/components/dropdown/src/dropdown.module.mjs +71 -0
  77. package/esm2020/src/lib/components/scale/lib/components/filters/public-api.mjs +6 -0
  78. package/esm2020/src/lib/components/scale/lib/components/filters/src/filters.component.mjs +34 -0
  79. package/esm2020/src/lib/components/scale/lib/components/filters/src/filters.module.mjs +38 -0
  80. package/esm2020/src/lib/components/scale/lib/components/icon/public-api.mjs +6 -0
  81. package/esm2020/src/lib/components/scale/lib/components/icon/src/icon.component.mjs +26 -0
  82. package/esm2020/src/lib/components/scale/lib/components/icon/src/icon.module.mjs +19 -0
  83. package/esm2020/src/lib/components/scale/lib/components/scale/src/scale.component.mjs +12 -4
  84. package/esm2020/src/lib/components/scale/lib/components/scale/src/scale.module.mjs +6 -11
  85. package/esm2020/src/lib/components/scale/lib/components/tag/public-api.mjs +6 -0
  86. package/esm2020/src/lib/components/scale/lib/components/tag/src/tag.component.mjs +14 -0
  87. package/esm2020/src/lib/components/scale/lib/components/tag/src/tag.module.mjs +24 -0
  88. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.component.mjs +21 -0
  89. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.directive.mjs +140 -0
  90. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.enums.mjs +16 -0
  91. package/esm2020/src/lib/components/scale/lib/components/tooltip/src/tooltip.module.mjs +19 -0
  92. package/esm2020/src/lib/components/scale/lib/core/elements/action-button.mjs +2 -0
  93. package/esm2020/src/lib/components/scale/lib/core/elements/dropdown.mjs +8 -0
  94. package/esm2020/src/lib/components/scale/lib/core/elements/element-base.mjs +33 -0
  95. package/esm2020/src/lib/components/scale/lib/core/elements/element-search.mjs +2 -0
  96. package/esm2020/src/lib/components/scale/lib/core/elements/errors.mjs +2 -0
  97. package/esm2020/src/lib/components/scale/lib/core/interfaces/classification.interface.mjs +1 -1
  98. package/esm2020/src/lib/components/scale/lib/core/interfaces/element-group.interface.mjs +2 -0
  99. package/esm2020/src/lib/components/scale/lib/core/interfaces/element-option.interface.mjs +2 -0
  100. package/esm2020/src/lib/components/slide-toggle/lib/core/elements/element-base.mjs +2 -1
  101. package/esm2020/src/lib/components/table/lib/core/interfaces/classification.interface.mjs +1 -1
  102. package/esm2020/src/lib/components/textarea/lib/core/elements/element-base.mjs +2 -1
  103. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs +632 -0
  104. package/fesm2015/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -0
  105. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs +305 -5
  106. package/fesm2015/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  107. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs +5 -3
  108. package/fesm2015/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  109. package/fesm2015/mapa-library-ui-src-lib-components-scale.mjs +304 -13
  110. package/fesm2015/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  111. package/fesm2015/mapa-library-ui.mjs +1 -0
  112. package/fesm2015/mapa-library-ui.mjs.map +1 -1
  113. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs +627 -0
  114. package/fesm2020/mapa-library-ui-src-lib-components-dropdown-tree.mjs.map +1 -0
  115. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs +305 -5
  116. package/fesm2020/mapa-library-ui-src-lib-components-dropdown.mjs.map +1 -1
  117. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs +5 -3
  118. package/fesm2020/mapa-library-ui-src-lib-components-form.mjs.map +1 -1
  119. package/fesm2020/mapa-library-ui-src-lib-components-scale.mjs +303 -13
  120. package/fesm2020/mapa-library-ui-src-lib-components-scale.mjs.map +1 -1
  121. package/fesm2020/mapa-library-ui.mjs +1 -0
  122. package/fesm2020/mapa-library-ui.mjs.map +1 -1
  123. package/lib/core/elements/element-base.d.ts +2 -0
  124. package/mapa-library-ui-0.46.0.tgz +0 -0
  125. package/package.json +9 -1
  126. package/src/lib/components/capability/lib/core/elements/element-base.d.ts +2 -0
  127. package/src/lib/components/chart/lib/core/elements/element-base.d.ts +2 -0
  128. package/src/lib/components/dropdown/dropdown.d.ts +1 -0
  129. package/src/lib/components/dropdown/lib/components/dropdown-tree/public-api.d.ts +2 -0
  130. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/checklist-database.d.ts +13 -0
  131. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.component.d.ts +71 -0
  132. package/src/lib/components/dropdown/lib/components/dropdown-tree/src/dropdown.module.d.ts +18 -0
  133. package/src/lib/components/dropdown/lib/core/elements/dropdown-tree.d.ts +4 -0
  134. package/src/lib/components/dropdown/lib/core/elements/element-base.d.ts +2 -0
  135. package/src/lib/components/dropdown-tree/dropdown.d.ts +5 -0
  136. package/src/lib/components/dropdown-tree/index.d.ts +5 -0
  137. package/src/lib/components/dropdown-tree/lib/components/button/public-api.d.ts +2 -0
  138. package/src/lib/components/dropdown-tree/lib/components/button/src/button.component.d.ts +10 -0
  139. package/src/lib/components/dropdown-tree/lib/components/button/src/button.module.d.ts +9 -0
  140. package/src/lib/components/dropdown-tree/lib/components/dropdown/public-api.d.ts +2 -0
  141. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.component.d.ts +40 -0
  142. package/src/lib/components/dropdown-tree/lib/components/dropdown/src/dropdown.module.d.ts +15 -0
  143. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/public-api.d.ts +2 -0
  144. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/checklist-database.d.ts +13 -0
  145. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.component.d.ts +71 -0
  146. package/src/lib/components/dropdown-tree/lib/components/dropdown-tree/src/dropdown.module.d.ts +18 -0
  147. package/src/lib/components/dropdown-tree/lib/core/elements/action-button.d.ts +5 -0
  148. package/src/lib/components/dropdown-tree/lib/core/elements/dropdown-tree.d.ts +4 -0
  149. package/src/lib/components/dropdown-tree/lib/core/elements/dropdown.d.ts +4 -0
  150. package/src/lib/components/dropdown-tree/lib/core/elements/element-base.d.ts +66 -0
  151. package/src/lib/components/dropdown-tree/lib/core/elements/element-search.d.ts +6 -0
  152. package/src/lib/components/dropdown-tree/lib/core/elements/errors.d.ts +12 -0
  153. package/src/lib/components/dropdown-tree/lib/core/interfaces/element-group.interface.d.ts +5 -0
  154. package/src/lib/components/dropdown-tree/lib/core/interfaces/element-option.interface.d.ts +4 -0
  155. package/src/lib/components/form/lib/components/form/src/form.module.d.ts +1 -1
  156. package/src/lib/components/form/lib/core/elements/element-base.d.ts +2 -0
  157. package/src/lib/components/group-report/lib/core/elements/element-base.d.ts +2 -0
  158. package/src/lib/components/group-report/lib/core/interfaces/classification.interface.d.ts +1 -0
  159. package/src/lib/components/radio-button/lib/core/elements/element-base.d.ts +2 -0
  160. package/src/lib/components/scale/filters.d.ts +3 -0
  161. package/src/lib/components/scale/lib/components/button/public-api.d.ts +2 -0
  162. package/src/lib/components/scale/lib/components/button/src/button.component.d.ts +10 -0
  163. package/src/lib/components/scale/lib/components/button/src/button.module.d.ts +9 -0
  164. package/src/lib/components/scale/lib/components/capability/public-api.d.ts +22 -0
  165. package/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.component.d.ts +10 -0
  166. package/src/lib/components/scale/lib/components/capability/src/capability-comparative/capability-comparative.module.d.ts +11 -0
  167. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.component.d.ts +9 -0
  168. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-chart/capability-comparative-chart.module.d.ts +9 -0
  169. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.component.d.ts +9 -0
  170. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-header/capability-comparative-header.module.d.ts +9 -0
  171. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.component.d.ts +9 -0
  172. package/src/lib/components/scale/lib/components/capability/src/capability-comparative-indicator/capability-comparative-indicator.module.d.ts +9 -0
  173. package/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.component.d.ts +29 -0
  174. package/src/lib/components/scale/lib/components/capability/src/capability-detail/capability-detail.module.d.ts +17 -0
  175. package/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.component.d.ts +17 -0
  176. package/src/lib/components/scale/lib/components/capability/src/capability-dot/capability-dot.module.d.ts +10 -0
  177. package/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.component.d.ts +16 -0
  178. package/src/lib/components/scale/lib/components/capability/src/capability-expand/capability-expand.module.d.ts +10 -0
  179. package/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.component.d.ts +7 -0
  180. package/src/lib/components/scale/lib/components/capability/src/capability-indicator/capability-indicator.module.d.ts +8 -0
  181. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.component.d.ts +12 -0
  182. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-chart/capability-indicator-chart.module.d.ts +9 -0
  183. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.component.d.ts +14 -0
  184. package/src/lib/components/scale/lib/components/capability/src/capability-indicator-list/capability-indicator-list.module.d.ts +9 -0
  185. package/src/lib/components/scale/lib/components/capability/src/capability-interval/capability-interval.component.d.ts +29 -0
  186. package/src/lib/components/scale/lib/components/capability/src/capability-interval/capability-interval.module.d.ts +8 -0
  187. package/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.component.d.ts +16 -0
  188. package/src/lib/components/scale/lib/components/capability/src/capability-interval-bar/capability-interval-bar.module.d.ts +10 -0
  189. package/src/lib/components/scale/lib/components/capability/src/essentials/consts/capability-classification.const.d.ts +2 -0
  190. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-classification.interface.d.ts +6 -0
  191. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-comparative.interface.d.ts +10 -0
  192. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability-item.interface.d.ts +20 -0
  193. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/capability.interface.d.ts +8 -0
  194. package/src/lib/components/scale/lib/components/capability/src/essentials/interfaces/index.d.ts +3 -0
  195. package/src/lib/components/scale/lib/components/capability/src/essentials/services/capability-classification.service.d.ts +8 -0
  196. package/src/lib/components/scale/lib/components/capability/src/essentials/services/reusable-interval-bar.service.d.ts +15 -0
  197. package/src/lib/components/scale/lib/components/dropdown/public-api.d.ts +2 -0
  198. package/src/lib/components/scale/lib/components/dropdown/src/dropdown.component.d.ts +40 -0
  199. package/src/lib/components/scale/lib/components/dropdown/src/dropdown.module.d.ts +15 -0
  200. package/src/lib/components/scale/lib/components/filters/public-api.d.ts +2 -0
  201. package/src/lib/components/scale/lib/components/filters/src/filters.component.d.ts +14 -0
  202. package/src/lib/components/scale/lib/components/filters/src/filters.module.d.ts +12 -0
  203. package/src/lib/components/scale/lib/components/icon/public-api.d.ts +2 -0
  204. package/src/lib/components/scale/lib/components/icon/src/icon.component.d.ts +13 -0
  205. package/src/lib/components/scale/lib/components/icon/src/icon.module.d.ts +9 -0
  206. package/src/lib/components/scale/lib/components/scale/src/scale.component.d.ts +2 -0
  207. package/src/lib/components/scale/lib/components/scale/src/scale.module.d.ts +2 -1
  208. package/src/lib/components/scale/lib/components/tag/public-api.d.ts +2 -0
  209. package/src/lib/components/scale/lib/components/tag/src/tag.component.d.ts +12 -0
  210. package/src/lib/components/scale/lib/components/tag/src/tag.module.d.ts +8 -0
  211. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.component.d.ts +15 -0
  212. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.directive.d.ts +32 -0
  213. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.enums.d.ts +13 -0
  214. package/src/lib/components/scale/lib/components/tooltip/src/tooltip.module.d.ts +9 -0
  215. package/src/lib/components/scale/lib/core/elements/action-button.d.ts +5 -0
  216. package/src/lib/components/scale/lib/core/elements/dropdown.d.ts +4 -0
  217. package/src/lib/components/scale/lib/core/elements/element-base.d.ts +66 -0
  218. package/src/lib/components/scale/lib/core/elements/element-search.d.ts +6 -0
  219. package/src/lib/components/scale/lib/core/elements/errors.d.ts +12 -0
  220. package/src/lib/components/scale/lib/core/interfaces/classification.interface.d.ts +1 -0
  221. package/src/lib/components/scale/lib/core/interfaces/element-group.interface.d.ts +5 -0
  222. package/src/lib/components/scale/lib/core/interfaces/element-option.interface.d.ts +4 -0
  223. package/src/lib/components/slide-toggle/lib/core/elements/element-base.d.ts +2 -0
  224. package/src/lib/components/table/lib/core/interfaces/classification.interface.d.ts +1 -0
  225. package/src/lib/components/textarea/lib/core/elements/element-base.d.ts +2 -0
  226. package/mapa-library-ui-0.44.2.tgz +0 -0
@@ -0,0 +1,632 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, Component, Input, Output, ViewEncapsulation, ViewChild, NgModule, Injectable } from '@angular/core';
3
+ import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
4
+ import { Subject } from 'rxjs/internal/Subject';
5
+ import * as i1 from '@angular/common';
6
+ import { CommonModule } from '@angular/common';
7
+ import * as i3 from '@angular/forms';
8
+ import { FormsModule, ReactiveFormsModule, FormControl } from '@angular/forms';
9
+ import * as i4 from '@angular/material/icon';
10
+ import { MatIconModule } from '@angular/material/icon';
11
+ import * as i5 from '@angular/material/form-field';
12
+ import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
13
+ import * as i6 from '@angular/material/select';
14
+ import { MatSelectModule, MAT_SELECT_CONFIG } from '@angular/material/select';
15
+ import * as i7 from '@angular/material/core';
16
+ import * as i8 from 'ngx-mat-select-search';
17
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
18
+ import { MatListModule } from '@angular/material/list';
19
+ import * as i4$1 from '@angular/material/button';
20
+ import { MatButtonModule } from '@angular/material/button';
21
+ import { SelectionModel } from '@angular/cdk/collections';
22
+ import { FlatTreeControl } from '@angular/cdk/tree';
23
+ import * as i9 from '@angular/material/tree';
24
+ import { MatTreeFlattener, MatTreeFlatDataSource, MatTreeModule } from '@angular/material/tree';
25
+ import { BehaviorSubject } from 'rxjs';
26
+ import * as i7$1 from '@angular/material/input';
27
+ import { MatInputModule } from '@angular/material/input';
28
+ import * as i10 from '@angular/material/checkbox';
29
+ import { MatCheckboxModule } from '@angular/material/checkbox';
30
+ import * as i11 from '@angular/material/autocomplete';
31
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
32
+
33
+ class ElementBase {
34
+ constructor(options = {}) {
35
+ this.value = options.value || "";
36
+ this.key = options.key || "";
37
+ this.label = options.label || "";
38
+ this.required = !!options.required;
39
+ this.order = options.order === undefined ? 1 : options.order;
40
+ this.controlType = options.controlType || "";
41
+ this.type = options.type || "";
42
+ this.placeholder = options.placeholder || "";
43
+ this.hint = options.hint || "";
44
+ this.prefix = options.prefix || "";
45
+ this.suffix = options.suffix || "";
46
+ this.autosize = options.autosize || false;
47
+ this.autosizeMinWidth = options.autosizeMinWidth || "212px";
48
+ this.autosizeMaxWidth = options.autosizeMaxWidth || "400px";
49
+ this.autosizeMinRow = options.autosizeMinRow || 2;
50
+ this.autosizeMaxRow = options.autosizeMaxRow || 5;
51
+ this.options = options.options || [];
52
+ this.tree = options.tree || [];
53
+ this.multiple = options.multiple || false;
54
+ this.search = options.search || undefined;
55
+ this.maxLength = options.maxLength || null;
56
+ this.errors = options.errors || undefined;
57
+ this.actionButton = options.actionButton || undefined;
58
+ this.mask = options.mask || undefined;
59
+ this.autocomplete = options.autocomplete || "";
60
+ this.clearValue =
61
+ options.clearValue !== undefined ? options.clearValue : true;
62
+ this.status = options.status || undefined;
63
+ }
64
+ }
65
+
66
+ class Dropdown extends ElementBase {
67
+ constructor() {
68
+ super(...arguments);
69
+ this.controlType = 'dropdown';
70
+ }
71
+ }
72
+
73
+ class ButtonComponent {
74
+ constructor() {
75
+ this.clicked = new EventEmitter();
76
+ }
77
+ onClick() {
78
+ this.clicked.emit();
79
+ }
80
+ }
81
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
82
+ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ButtonComponent, selector: "mapa-button", inputs: { color: "color", disabled: "disabled" }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ", styles: [".mapa-button{display:flex;padding:14px 42px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;font-weight:500;cursor:pointer;transform-origin:center;transition:transform .2s ease-in-out}.mapa-button:active{transform:scale(1.1)}.mapa-button:disabled{color:#dcdcde!important;background-color:transparent!important}.mapa-button.basic{color:#ea561d;background-color:transparent}.mapa-button.accent{border:2px solid #ea561d!important;color:#ea561d;background-color:#fff}.mapa-button.primary{background-color:#ea561d;color:#fff}\n"] });
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ButtonComponent, decorators: [{
84
+ type: Component,
85
+ args: [{ selector: 'mapa-button', template: "<button\n class=\"mapa-button\"\n (click)=\"onClick()\"\n [class.primary]=\"color === 'primary'\"\n [class.accent]=\"color === 'accent'\"\n [class.basic]=\"color === 'basic'\"\n [disabled]=\"disabled\"\n>\n <ng-content></ng-content>\n</button> ", styles: [".mapa-button{display:flex;padding:14px 42px;justify-content:center;align-items:center;gap:10px;border-radius:28px;border:none;font-family:SF-Pro;font-weight:500;cursor:pointer;transform-origin:center;transition:transform .2s ease-in-out}.mapa-button:active{transform:scale(1.1)}.mapa-button:disabled{color:#dcdcde!important;background-color:transparent!important}.mapa-button.basic{color:#ea561d;background-color:transparent}.mapa-button.accent{border:2px solid #ea561d!important;color:#ea561d;background-color:#fff}.mapa-button.primary{background-color:#ea561d;color:#fff}\n"] }]
86
+ }], propDecorators: { color: [{
87
+ type: Input
88
+ }], disabled: [{
89
+ type: Input
90
+ }], clicked: [{
91
+ type: Output
92
+ }] } });
93
+
94
+ class MapaDropdownComponent {
95
+ get selectedOptions() {
96
+ var _a;
97
+ const value = ((_a = this.formControl) === null || _a === void 0 ? void 0 : _a.value) || [];
98
+ return Array.isArray(value) ? value : [value];
99
+ }
100
+ constructor() {
101
+ this.filteredOptions = new ReplaySubject(1);
102
+ this.filteredGroups = new ReplaySubject(1);
103
+ this.filteredOptionsCache = [];
104
+ this.filteredGroupCache = [];
105
+ this._onDestroy = new Subject();
106
+ this.isIndeterminate = false;
107
+ this.isChecked = false;
108
+ this.isOptionsGroup = false;
109
+ }
110
+ ngOnInit() {
111
+ var _a;
112
+ this.setOptions();
113
+ if (this.element.search) {
114
+ (_a = this.element.search.formControl) === null || _a === void 0 ? void 0 : _a.valueChanges.subscribe(() => {
115
+ this.filterOptions();
116
+ this.setToggleAllCheckboxState();
117
+ });
118
+ }
119
+ }
120
+ ngOnChanges(changes) {
121
+ var _a, _b, _c;
122
+ if (((_a = changes["element"].previousValue) === null || _a === void 0 ? void 0 : _a.controlType) === "dropdown" &&
123
+ ((_b = changes["element"].previousValue) === null || _b === void 0 ? void 0 : _b.options) !== ((_c = changes["element"].currentValue) === null || _c === void 0 ? void 0 : _c.options)) {
124
+ this.element.options = changes["element"].currentValue.options;
125
+ this.setOptions();
126
+ }
127
+ }
128
+ ngOnDestroy() {
129
+ this._onDestroy.next();
130
+ this._onDestroy.complete();
131
+ }
132
+ setOptions() {
133
+ this.isOptionsGroup = this.isElementGroup(this.element.options[0]);
134
+ if (this.isOptionsGroup) {
135
+ this.filteredGroupCache = this.element
136
+ .options.slice();
137
+ this.filteredGroups.next(this.filteredGroupCache);
138
+ }
139
+ else {
140
+ this.filteredOptionsCache = this.element
141
+ .options.slice();
142
+ this.filteredOptions.next(this.filteredOptionsCache);
143
+ }
144
+ }
145
+ filterOptionsFromGroup(group, value) {
146
+ const filterValue = value.toLocaleLowerCase();
147
+ return group.label.toLocaleLowerCase().includes(filterValue)
148
+ ? group.options
149
+ : group.options.filter((item) => item.value.toLocaleLowerCase().includes(filterValue));
150
+ }
151
+ filterOptions() {
152
+ var _a, _b;
153
+ if (!this.element.options) {
154
+ return;
155
+ }
156
+ // get the search keyword
157
+ let search = (_b = (_a = this.element.search) === null || _a === void 0 ? void 0 : _a.formControl) === null || _b === void 0 ? void 0 : _b.value.toLowerCase();
158
+ if (this.isOptionsGroup) {
159
+ const groups = this.element.options;
160
+ this.filteredGroupCache = groups
161
+ .map((group) => ({
162
+ label: group.label,
163
+ options: this.filterOptionsFromGroup(group, search),
164
+ }))
165
+ .filter((group) => group.options.length > 0);
166
+ this.filteredGroups.next(this.filteredGroupCache);
167
+ }
168
+ else {
169
+ const options = this.element.options;
170
+ if (!search) {
171
+ this.filteredOptionsCache = options.slice();
172
+ this.filteredOptions.next(this.filteredOptionsCache);
173
+ return;
174
+ }
175
+ // filter the options
176
+ this.filteredOptionsCache = options.filter((option) => option.value.toLowerCase().indexOf(search) > -1);
177
+ this.filteredOptions.next(this.filteredOptionsCache);
178
+ }
179
+ }
180
+ setToggleAllCheckboxState() {
181
+ var _a, _b;
182
+ let filteredLength = 0;
183
+ let search = (_b = (_a = this.element.search) === null || _a === void 0 ? void 0 : _a.formControl) === null || _b === void 0 ? void 0 : _b.value;
184
+ if (search && search.value) {
185
+ this.filteredOptionsCache.forEach((el) => {
186
+ if (search.value.toLowerCase().indexOf(el) > -1) {
187
+ filteredLength++;
188
+ }
189
+ });
190
+ this.isIndeterminate =
191
+ filteredLength > 0 && filteredLength < this.filteredOptionsCache.length;
192
+ this.isChecked =
193
+ filteredLength > 0 &&
194
+ filteredLength === this.filteredOptionsCache.length;
195
+ }
196
+ }
197
+ toggleSelectAll(selectAllValue) {
198
+ this.filteredOptions.subscribe((options) => {
199
+ var _a, _b;
200
+ if (selectAllValue) {
201
+ (_a = this.formControl) === null || _a === void 0 ? void 0 : _a.patchValue(options);
202
+ }
203
+ else {
204
+ (_b = this.formControl) === null || _b === void 0 ? void 0 : _b.patchValue([]);
205
+ }
206
+ });
207
+ this.filteredGroups.subscribe((groups) => {
208
+ var _a, _b;
209
+ if (selectAllValue) {
210
+ (_a = this.formControl) === null || _a === void 0 ? void 0 : _a.patchValue(groups.map((group) => group.options));
211
+ }
212
+ else {
213
+ (_b = this.formControl) === null || _b === void 0 ? void 0 : _b.patchValue([]);
214
+ }
215
+ });
216
+ }
217
+ isElementGroup(object) {
218
+ try {
219
+ return (object.label !== undefined &&
220
+ object.options !== undefined);
221
+ }
222
+ catch (e) {
223
+ return false;
224
+ }
225
+ }
226
+ compareFn(c1, c2) {
227
+ return c1 && c2 ? c1.key === c2.key : c1 === c2;
228
+ }
229
+ hasValue() {
230
+ return !!this.formControl.value;
231
+ }
232
+ clearValue(event) {
233
+ event.stopPropagation();
234
+ this.formControl.setValue(null);
235
+ }
236
+ }
237
+ MapaDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
238
+ MapaDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaDropdownComponent, selector: "mapa-dropdown", inputs: { formControl: "formControl", formControlSearch: "formControlSearch", element: "element", border: "border" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"element\">\n <label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n </label>\n <div class=\"mapa-form--inline\">\n <mat-form-field\n appearance=\"outline\"\n class=\"mapa-dropdown\"\n [class.mapa-dropdown--highlight]=\"border === 'highlight'\"\n [class.mapa-dropdown--soft-border]=\"border === 'soft'\"\n [class.mapa-dropdown--tag]=\"border === 'tag'\"\n [class.mapa-dropdown--labeled]=\"!!element.label\"\n >\n <mat-select\n #dropdown\n ngDefaultControl\n [formControl]=\"formControl\"\n [multiple]=\"element.multiple\"\n [placeholder]=\"element.placeholder || ''\"\n [compareWith]=\"compareFn\"\n >\n <mat-option *ngIf=\"element.search\" class=\"mapa-dropdown__search\">\n <ngx-mat-select-search\n *ngIf=\"element.search.formControl\"\n [showToggleAllCheckbox]=\"true\"\n [formControl]=\"element.search.formControl\"\n [placeholderLabel]=\"element.search.placeholder || ''\"\n i18n-placeholderLabel\n [noEntriesFoundLabel]=\"element.search.noEntriesFoundLabel || ''\"\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate\"\n [toggleAllCheckboxChecked]=\"isChecked\"\n (toggleAll)=\"toggleSelectAll($event)\"\n ></ngx-mat-select-search>\n </mat-option>\n\n <ng-container *ngIf=\"isOptionsGroup; else isElementOptions\">\n <mat-optgroup\n *ngFor=\"let group of filteredGroups | async\"\n [label]=\"group.label\"\n >\n <mat-option *ngFor=\"let option of group.options\" [value]=\"option\">\n {{ option.value }}\n </mat-option>\n </mat-optgroup>\n </ng-container>\n <ng-template #isElementOptions>\n <mat-option\n *ngFor=\"let option of filteredOptions | async\"\n [value]=\"option\"\n >\n {{ option.value }}\n </mat-option>\n </ng-template>\n \n <mat-option\n *ngFor=\"let option of selectedOptions\"\n hidden\n [value]=\"option\"\n >\n {{ option.value }}\n </mat-option>\n </mat-select>\n <mat-error *ngIf=\"formControl?.hasError('required')\">\n {{ element.errors?.required }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('minlength')\">\n {{ element.errors?.minlength }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('cpf')\">\n {{ element.errors?.cpf }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('cnpj')\">\n {{ element.errors?.cnpj }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('email')\">\n {{ element.errors?.email }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('pattern')\">\n {{ element.errors?.pattern }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('min')\">\n {{ element.errors?.min }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('max')\">\n {{ element.errors?.max }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('minLength')\">\n {{ element.errors?.minLength }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('maxLength')\">\n {{ element.errors?.maxLength }}\n </mat-error>\n <mat-icon\n *ngIf=\"hasValue() && !formControl.disabled && element.clearValue\"\n (click)=\"clearValue($event)\"\n class=\"mapa-input--close\"\n >close</mat-icon\n >\n </mat-form-field>\n <div *ngIf=\"element.actionButton\" class=\"mapa-form--action\">\n <mapa-button\n color=\"basic\"\n (click)=\"element.actionButton.action.emit(true)\"\n >\n {{ element.actionButton.label }}\n </mapa-button>\n </div>\n </div>\n</div>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-select{font-family:SF-Pro!important}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center;position:absolute;right:32px;top:4px}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown--tag .mat-form-field-outline{border-radius:16px!important;height:42px!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown .mat-form-field-infix{border-top:unset!important;padding:unset!important;position:relative}.mapa-dropdown .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown .mat-select-value-text{display:block;width:90%}.mapa-dropdown .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown .mat-select-arrow{border:unset}.mapa-dropdown .mat-select-arrow:before,.mapa-dropdown .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown{transform:translate(-16px) translateY(36px)!important}.mapa-overlay-dropdown .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown .mat-select-panel .mat-option,.mapa-overlay-dropdown .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown .mat-checkbox-frame{border-color:#c3c4c7!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "mapa-button", inputs: ["color", "disabled"], outputs: ["clicked"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i7.MatOptgroup, selector: "mat-optgroup", inputs: ["disabled"], exportAs: ["matOptgroup"] }, { kind: "component", type: i8.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None });
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownComponent, decorators: [{
240
+ type: Component,
241
+ args: [{ selector: "mapa-dropdown", encapsulation: ViewEncapsulation.None, template: "<div *ngIf=\"element\">\n <label *ngIf=\"element.label\" class=\"mapa-dropdown__label\">\n {{ element.label }}\n </label>\n <div class=\"mapa-form--inline\">\n <mat-form-field\n appearance=\"outline\"\n class=\"mapa-dropdown\"\n [class.mapa-dropdown--highlight]=\"border === 'highlight'\"\n [class.mapa-dropdown--soft-border]=\"border === 'soft'\"\n [class.mapa-dropdown--tag]=\"border === 'tag'\"\n [class.mapa-dropdown--labeled]=\"!!element.label\"\n >\n <mat-select\n #dropdown\n ngDefaultControl\n [formControl]=\"formControl\"\n [multiple]=\"element.multiple\"\n [placeholder]=\"element.placeholder || ''\"\n [compareWith]=\"compareFn\"\n >\n <mat-option *ngIf=\"element.search\" class=\"mapa-dropdown__search\">\n <ngx-mat-select-search\n *ngIf=\"element.search.formControl\"\n [showToggleAllCheckbox]=\"true\"\n [formControl]=\"element.search.formControl\"\n [placeholderLabel]=\"element.search.placeholder || ''\"\n i18n-placeholderLabel\n [noEntriesFoundLabel]=\"element.search.noEntriesFoundLabel || ''\"\n [toggleAllCheckboxIndeterminate]=\"isIndeterminate\"\n [toggleAllCheckboxChecked]=\"isChecked\"\n (toggleAll)=\"toggleSelectAll($event)\"\n ></ngx-mat-select-search>\n </mat-option>\n\n <ng-container *ngIf=\"isOptionsGroup; else isElementOptions\">\n <mat-optgroup\n *ngFor=\"let group of filteredGroups | async\"\n [label]=\"group.label\"\n >\n <mat-option *ngFor=\"let option of group.options\" [value]=\"option\">\n {{ option.value }}\n </mat-option>\n </mat-optgroup>\n </ng-container>\n <ng-template #isElementOptions>\n <mat-option\n *ngFor=\"let option of filteredOptions | async\"\n [value]=\"option\"\n >\n {{ option.value }}\n </mat-option>\n </ng-template>\n \n <mat-option\n *ngFor=\"let option of selectedOptions\"\n hidden\n [value]=\"option\"\n >\n {{ option.value }}\n </mat-option>\n </mat-select>\n <mat-error *ngIf=\"formControl?.hasError('required')\">\n {{ element.errors?.required }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('minlength')\">\n {{ element.errors?.minlength }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('cpf')\">\n {{ element.errors?.cpf }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('cnpj')\">\n {{ element.errors?.cnpj }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('email')\">\n {{ element.errors?.email }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('pattern')\">\n {{ element.errors?.pattern }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('min')\">\n {{ element.errors?.min }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('max')\">\n {{ element.errors?.max }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('minLength')\">\n {{ element.errors?.minLength }}\n </mat-error>\n <mat-error *ngIf=\"formControl?.hasError('maxLength')\">\n {{ element.errors?.maxLength }}\n </mat-error>\n <mat-icon\n *ngIf=\"hasValue() && !formControl.disabled && element.clearValue\"\n (click)=\"clearValue($event)\"\n class=\"mapa-input--close\"\n >close</mat-icon\n >\n </mat-form-field>\n <div *ngIf=\"element.actionButton\" class=\"mapa-form--action\">\n <mapa-button\n color=\"basic\"\n (click)=\"element.actionButton.action.emit(true)\"\n >\n {{ element.actionButton.label }}\n </mapa-button>\n </div>\n </div>\n</div>\n", styles: [".mapa-dropdown{max-width:min-content;min-width:235px}.mapa-dropdown .mat-select{font-family:SF-Pro!important}.mapa-dropdown .mat-icon{display:flex;justify-content:center;align-items:center;position:absolute;right:32px;top:4px}.mapa-dropdown__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown--tag .mat-form-field-outline{border-radius:16px!important;height:42px!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown .mat-form-field-infix{border-top:unset!important;padding:unset!important;position:relative}.mapa-dropdown .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown .mat-select-value-text{display:block;width:90%}.mapa-dropdown .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown .mat-select-arrow{border:unset}.mapa-dropdown .mat-select-arrow:before,.mapa-dropdown .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown{transform:translate(-16px) translateY(36px)!important}.mapa-overlay-dropdown .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown .mat-select-panel .mat-option,.mapa-overlay-dropdown .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown .mat-checkbox-frame{border-color:#c3c4c7!important}\n"] }]
242
+ }], ctorParameters: function () { return []; }, propDecorators: { formControl: [{
243
+ type: Input
244
+ }], formControlSearch: [{
245
+ type: Input
246
+ }], element: [{
247
+ type: Input
248
+ }], border: [{
249
+ type: Input
250
+ }], dropdown: [{
251
+ type: ViewChild,
252
+ args: ["dropdown", { static: true }]
253
+ }] } });
254
+
255
+ class MapaButtonModule {
256
+ }
257
+ MapaButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
258
+ MapaButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, declarations: [ButtonComponent], imports: [CommonModule, MatButtonModule], exports: [ButtonComponent] });
259
+ MapaButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, imports: [CommonModule, MatButtonModule] });
260
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaButtonModule, decorators: [{
261
+ type: NgModule,
262
+ args: [{
263
+ declarations: [ButtonComponent],
264
+ exports: [ButtonComponent],
265
+ imports: [CommonModule, MatButtonModule],
266
+ }]
267
+ }] });
268
+
269
+ /*
270
+ * Public API Surface of mapa-library-ui button
271
+ */
272
+
273
+ class MapaDropdownModule {
274
+ }
275
+ MapaDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
276
+ MapaDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, declarations: [MapaDropdownComponent], imports: [CommonModule,
277
+ FormsModule,
278
+ ReactiveFormsModule,
279
+ MatButtonModule,
280
+ MapaButtonModule,
281
+ MatListModule,
282
+ MatIconModule,
283
+ MatSelectModule,
284
+ NgxMatSelectSearchModule], exports: [MapaDropdownComponent] });
285
+ MapaDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, providers: [
286
+ {
287
+ provide: MAT_SELECT_CONFIG,
288
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown" },
289
+ },
290
+ {
291
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
292
+ useValue: { appearance: "outline" },
293
+ },
294
+ ], imports: [CommonModule,
295
+ FormsModule,
296
+ ReactiveFormsModule,
297
+ MatButtonModule,
298
+ MapaButtonModule,
299
+ MatListModule,
300
+ MatIconModule,
301
+ MatSelectModule,
302
+ NgxMatSelectSearchModule] });
303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownModule, decorators: [{
304
+ type: NgModule,
305
+ args: [{
306
+ declarations: [MapaDropdownComponent],
307
+ exports: [MapaDropdownComponent],
308
+ imports: [
309
+ CommonModule,
310
+ FormsModule,
311
+ ReactiveFormsModule,
312
+ MatButtonModule,
313
+ MapaButtonModule,
314
+ MatListModule,
315
+ MatIconModule,
316
+ MatSelectModule,
317
+ NgxMatSelectSearchModule,
318
+ ],
319
+ providers: [
320
+ {
321
+ provide: MAT_SELECT_CONFIG,
322
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown" },
323
+ },
324
+ {
325
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
326
+ useValue: { appearance: "outline" },
327
+ },
328
+ ],
329
+ }]
330
+ }] });
331
+
332
+ /*
333
+ * Public API Surface of mapa-library-ui dropdown
334
+ */
335
+
336
+ class ChecklistDatabase {
337
+ get data() {
338
+ return this.dataChange.value;
339
+ }
340
+ constructor() {
341
+ this.dataChange = new BehaviorSubject([]);
342
+ }
343
+ initialize(treeData) {
344
+ this.treeData = treeData;
345
+ // Build the tree nodes from Json object. The result is a list of `TodoItemNode` with nested
346
+ // file node as children.
347
+ const data = treeData;
348
+ // Notify the change.
349
+ this.dataChange.next(data);
350
+ }
351
+ filter(filterText) {
352
+ let filteredTreeData;
353
+ if (filterText) {
354
+ // Filter the tree
355
+ function filter(array, text) {
356
+ const getChildren = (result, object) => {
357
+ if (object.item.toLowerCase() === text.toLowerCase()) {
358
+ result.push(object);
359
+ return result;
360
+ }
361
+ if (Array.isArray(object.children)) {
362
+ const children = object.children.reduce(getChildren, []);
363
+ if (children.length)
364
+ result.push(Object.assign(Object.assign({}, object), { children }));
365
+ }
366
+ return result;
367
+ };
368
+ return array.reduce(getChildren, []);
369
+ }
370
+ filteredTreeData = filter(this.treeData, filterText);
371
+ }
372
+ else {
373
+ // Return the initial tree
374
+ filteredTreeData = this.treeData;
375
+ }
376
+ // Build the tree nodes from Json object. The result is a list of `TodoItemNode` with nested
377
+ // file node as children.
378
+ const data = filteredTreeData;
379
+ // Notify the change.
380
+ this.dataChange.next(data);
381
+ }
382
+ }
383
+ ChecklistDatabase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChecklistDatabase, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
384
+ ChecklistDatabase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChecklistDatabase, providedIn: "root" });
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ChecklistDatabase, decorators: [{
386
+ type: Injectable,
387
+ args: [{ providedIn: "root" }]
388
+ }], ctorParameters: function () { return []; } });
389
+
390
+ class FoodNode {
391
+ constructor() { }
392
+ }
393
+ /** Flat to-do item node with expandable and level information */
394
+ class FoodFlatNode {
395
+ constructor() { }
396
+ }
397
+ class MapaDropdownTreeComponent {
398
+ constructor(_database) {
399
+ this._database = _database;
400
+ this.isMenuExpanded = false;
401
+ /** Map from flat node to nested node. This helps us finding the nested node to be modified */
402
+ this.flatNodeMap = new Map();
403
+ /** Map from nested node to flattened node. This helps us to keep the same object for selection */
404
+ this.nestedNodeMap = new Map();
405
+ /** A selected parent node to be inserted */
406
+ this.selectedParent = null;
407
+ /** The new item's name */
408
+ this.newItemName = "";
409
+ /** The selection for checklist */
410
+ this.checklistSelection = new SelectionModel(true /* multiple */);
411
+ /// Filtering
412
+ this.myControl = new FormControl();
413
+ this.options = ["One", "Two", "Three"];
414
+ this.getLevel = (node) => node.level;
415
+ this.isExpandable = (node) => node.expandable;
416
+ this.getChildren = (node) => node.children;
417
+ this.hasChild = (_, _nodeData) => _nodeData.expandable;
418
+ this.hasNoContent = (_, _nodeData) => _nodeData.item === "";
419
+ /**
420
+ * Transformer to convert nested node to flat node. Record the nodes in maps for later use.
421
+ */
422
+ this.transformer = (node, level) => {
423
+ const existingNode = this.nestedNodeMap.get(node);
424
+ const flatNode = existingNode && existingNode.item === node.title
425
+ ? existingNode
426
+ : new FoodFlatNode();
427
+ flatNode.item = node.title;
428
+ flatNode.level = level;
429
+ flatNode.expandable = !!node.children;
430
+ this.flatNodeMap.set(flatNode, node);
431
+ this.nestedNodeMap.set(node, flatNode);
432
+ return flatNode;
433
+ };
434
+ }
435
+ ngOnInit() {
436
+ this._database.initialize(this.element.tree);
437
+ this.treeFlattener = new MatTreeFlattener(this.transformer, this.getLevel, this.isExpandable, this.getChildren);
438
+ this.treeControl = new FlatTreeControl(this.getLevel, this.isExpandable);
439
+ this.dataSource = new MatTreeFlatDataSource(this.treeControl, this.treeFlattener);
440
+ this._database.dataChange.subscribe((data) => {
441
+ this.dataSource.data = data;
442
+ });
443
+ }
444
+ filter(array, text) {
445
+ const getNodes = (result, object) => {
446
+ if (object.name.toLowerCase().startsWith(text)) {
447
+ result.push(object);
448
+ return result;
449
+ }
450
+ if (Array.isArray(object.children)) {
451
+ const children = object.children.reduce(getNodes, []);
452
+ if (children.length)
453
+ result.push(Object.assign(Object.assign({}, object), { children }));
454
+ }
455
+ return result;
456
+ };
457
+ this.element.tree = array.reduce(getNodes, []);
458
+ }
459
+ /** Whether all the descendants of the node are selected. */
460
+ descendantsAllSelected(node) {
461
+ const descendants = this.treeControl.getDescendants(node);
462
+ const descAllSelected = descendants.every((child) => this.checklistSelection.isSelected(child));
463
+ return descAllSelected;
464
+ }
465
+ /** Whether part of the descendants are selected */
466
+ descendantsPartiallySelected(node) {
467
+ const descendants = this.treeControl.getDescendants(node);
468
+ const result = descendants.some((child) => this.checklistSelection.isSelected(child));
469
+ return result && !this.descendantsAllSelected(node);
470
+ }
471
+ /** Toggle the to-do item selection. Select/deselect all the descendants node */
472
+ todoItemSelectionToggle(node) {
473
+ this.checklistSelection.toggle(node);
474
+ const descendants = this.treeControl.getDescendants(node);
475
+ this.checklistSelection.isSelected(node)
476
+ ? this.checklistSelection.select(...descendants)
477
+ : this.checklistSelection.deselect(...descendants);
478
+ // Force update for the parent
479
+ descendants.every((child) => this.checklistSelection.isSelected(child));
480
+ this.checkAllParentsSelection(node);
481
+ }
482
+ /** Toggle a leaf to-do item selection. Check all the parents to see if they changed */
483
+ todoLeafItemSelectionToggle(node) {
484
+ this.checklistSelection.toggle(node);
485
+ this.checkAllParentsSelection(node);
486
+ }
487
+ /* Checks all the parents when a leaf node is selected/unselected */
488
+ checkAllParentsSelection(node) {
489
+ let parent = this.getParentNode(node);
490
+ while (parent) {
491
+ this.checkRootNodeSelection(parent);
492
+ parent = this.getParentNode(parent);
493
+ }
494
+ }
495
+ /** Check root node checked state and change it accordingly */
496
+ checkRootNodeSelection(node) {
497
+ const nodeSelected = this.checklistSelection.isSelected(node);
498
+ const descendants = this.treeControl.getDescendants(node);
499
+ const descAllSelected = descendants.every((child) => this.checklistSelection.isSelected(child));
500
+ if (nodeSelected && !descAllSelected) {
501
+ this.checklistSelection.deselect(node);
502
+ }
503
+ else if (!nodeSelected && descAllSelected) {
504
+ this.checklistSelection.select(node);
505
+ }
506
+ }
507
+ /* Get the parent node of a node */
508
+ getParentNode(node) {
509
+ console.log(this.checklistSelection.selected);
510
+ const currentLevel = this.getLevel(node);
511
+ if (currentLevel < 1) {
512
+ return null;
513
+ }
514
+ const startIndex = this.treeControl.dataNodes.indexOf(node) - 1;
515
+ for (let i = startIndex; i >= 0; i--) {
516
+ const currentNode = this.treeControl.dataNodes[i];
517
+ if (this.getLevel(currentNode) < currentLevel) {
518
+ return currentNode;
519
+ }
520
+ }
521
+ return null;
522
+ }
523
+ getSelectedItems() {
524
+ if (!this.checklistSelection.selected.length)
525
+ return "Favorite Food";
526
+ return this.checklistSelection.selected.map((s) => s.item).join(",");
527
+ }
528
+ filterChanged(filterText) {
529
+ console.log("filterChanged", filterText);
530
+ // ChecklistDatabase.filter method which actually filters the tree and gives back a tree structure
531
+ this._database.filter(filterText);
532
+ if (filterText) {
533
+ this.treeControl.expandAll();
534
+ }
535
+ else {
536
+ this.treeControl.collapseAll();
537
+ }
538
+ }
539
+ }
540
+ MapaDropdownTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeComponent, deps: [{ token: ChecklistDatabase }], target: i0.ɵɵFactoryTarget.Component });
541
+ MapaDropdownTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: MapaDropdownTreeComponent, selector: "mapa-dropdown-tree", inputs: { formGroup: "formGroup", element: "element" }, ngImport: i0, template: "<form\n [formGroup]=\"formGroup\"\n *ngIf=\"formGroup && element\"\n class=\"mapa-dropdown-tree\"\n>\n <label *ngIf=\"element.label\" class=\"mapa-dropdown-tree__label\">\n {{ element.label }}\n </label>\n <mat-form-field>\n <input\n type=\"text\"\n placeholder=\"{{getSelectedItems()}}\"\n matInput\n (input)=\"filterChanged($event)\"\n [matAutocomplete]=\"auto\"\n (opened)=\"isMenuExpanded = !isMenuExpanded\"\n />\n <mat-icon matSuffix\n >{{ isMenuExpanded ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\n }}</mat-icon\n >\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\n <mat-option disabled>\n <div class=\"mapa-dropdown-tree__search\" *ngIf=\"element.search\">\n <mat-form-field appearance=\"outline\">\n <input\n matInput\n #searchInput\n [formControl]=\"element.search?.formControl!\"\n [placeholder]=\"element.search?.placeholder || ''\"\n (keydown)=\"$event.stopPropagation()\"\n (keyup)=\"filter(element.tree, searchInput.value)\"\n />\n </mat-form-field>\n </div>\n </mat-option>\n\n <mat-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n <mat-tree-node\n *matTreeNodeDef=\"let node\"\n matTreeNodeToggle\n matTreeNodePadding\n >\n <button mat-icon-button disabled></button>\n <mat-checkbox\n class=\"checklist-leaf-node\"\n [checked]=\"checklistSelection.isSelected(node)\"\n (change)=\"todoLeafItemSelectionToggle(node)\"\n >{{node.item}}</mat-checkbox\n >\n </mat-tree-node>\n\n <mat-tree-node\n *matTreeNodeDef=\"let node; when: hasChild\"\n matTreeNodePadding\n >\n <button\n mat-icon-button\n matTreeNodeToggle\n [attr.aria-label]=\"'toggle ' + node.filename\"\n >\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}\n </mat-icon>\n </button>\n <mat-checkbox\n [checked]=\"descendantsAllSelected(node)\"\n [indeterminate]=\"descendantsPartiallySelected(node)\"\n (change)=\"todoItemSelectionToggle(node)\"\n >\n {{node.item}}</mat-checkbox\n >\n </mat-tree-node>\n </mat-tree>\n <button mat-button class=\"mapa-dropdown-tree__button\" color=\"primary\">\n Limpar todos\n </button>\n </mat-autocomplete>\n </mat-form-field>\n</form>\n", styles: [".mapa-dropdown-tree{max-width:min-content;min-width:235px}.mapa-dropdown-tree .mat-select{font-family:SF-Pro!important}.mapa-dropdown-tree .mat-option{padding:unset!important}.mapa-dropdown-tree__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown-tree__button{padding:9px;width:100%}.mapa-dropdown-tree__search{display:flex;align-items:center;justify-content:center;background:#f6f7f7;width:100%;height:48px}.mapa-dropdown-tree__search .mat-form-field{width:96%}.mapa-dropdown-tree__clean{background:white;border-top:1px solid #dcdcde;bottom:0%;height:36px;position:absolute;width:100%;z-index:9999}.mapa-dropdown-tree__clean button{text-align:left;height:36px;width:100%}.mapa-dropdown-tree--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown-tree--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown-tree--tag .mat-form-field-outline{border-radius:16px!important;height:42px!important}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown-tree .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown-tree .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown-tree .mat-form-field-wrapper{padding-bottom:unset!important}.mapa-dropdown-tree .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown-tree .mat-form-field-infix{border-top:unset!important;padding:unset!important;position:relative}.mapa-dropdown-tree .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown-tree .mat-select-value-text{display:block;width:90%}.mapa-dropdown-tree .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown-tree .mat-select-arrow{border:unset}.mapa-dropdown-tree .mat-select-arrow:before,.mapa-dropdown-tree .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown-tree{transform:translate(0) translateY(2px)!important}.mapa-overlay-dropdown-tree ul{padding-inline-start:20px!important;margin-block-start:0px!important;margin-block-end:0px!important;gap:8px}.mapa-overlay-dropdown-tree .tree-toggle{display:none}.mapa-overlay-dropdown-tree .mat-select-tree-hide{display:block!important}.mapa-overlay-dropdown-tree .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown-tree .mat-select-panel .mat-option,.mapa-overlay-dropdown-tree .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown-tree .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown-tree .mat-checkbox-frame{border-color:#c3c4c7!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i4$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i7$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTreeNodeDef, selector: "[matTreeNodeDef]", inputs: ["matTreeNodeDefWhen", "matTreeNode"] }, { kind: "directive", type: i9.MatTreeNodePadding, selector: "[matTreeNodePadding]", inputs: ["matTreeNodePadding", "matTreeNodePaddingIndent"] }, { kind: "directive", type: i9.MatTreeNodeToggle, selector: "[matTreeNodeToggle]", inputs: ["matTreeNodeToggleRecursive"] }, { kind: "component", type: i9.MatTree, selector: "mat-tree", exportAs: ["matTree"] }, { kind: "directive", type: i9.MatTreeNode, selector: "mat-tree-node", inputs: ["role", "disabled", "tabIndex"], exportAs: ["matTreeNode"] }, { kind: "component", type: i10.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i11.MatAutocomplete, selector: "mat-autocomplete", inputs: ["disableRipple"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i11.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", exportAs: ["matAutocompleteTrigger"] }], encapsulation: i0.ViewEncapsulation.None });
542
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeComponent, decorators: [{
543
+ type: Component,
544
+ args: [{ selector: "mapa-dropdown-tree", encapsulation: ViewEncapsulation.None, template: "<form\n [formGroup]=\"formGroup\"\n *ngIf=\"formGroup && element\"\n class=\"mapa-dropdown-tree\"\n>\n <label *ngIf=\"element.label\" class=\"mapa-dropdown-tree__label\">\n {{ element.label }}\n </label>\n <mat-form-field>\n <input\n type=\"text\"\n placeholder=\"{{getSelectedItems()}}\"\n matInput\n (input)=\"filterChanged($event)\"\n [matAutocomplete]=\"auto\"\n (opened)=\"isMenuExpanded = !isMenuExpanded\"\n />\n <mat-icon matSuffix\n >{{ isMenuExpanded ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\n }}</mat-icon\n >\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\">\n <mat-option disabled>\n <div class=\"mapa-dropdown-tree__search\" *ngIf=\"element.search\">\n <mat-form-field appearance=\"outline\">\n <input\n matInput\n #searchInput\n [formControl]=\"element.search?.formControl!\"\n [placeholder]=\"element.search?.placeholder || ''\"\n (keydown)=\"$event.stopPropagation()\"\n (keyup)=\"filter(element.tree, searchInput.value)\"\n />\n </mat-form-field>\n </div>\n </mat-option>\n\n <mat-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n <mat-tree-node\n *matTreeNodeDef=\"let node\"\n matTreeNodeToggle\n matTreeNodePadding\n >\n <button mat-icon-button disabled></button>\n <mat-checkbox\n class=\"checklist-leaf-node\"\n [checked]=\"checklistSelection.isSelected(node)\"\n (change)=\"todoLeafItemSelectionToggle(node)\"\n >{{node.item}}</mat-checkbox\n >\n </mat-tree-node>\n\n <mat-tree-node\n *matTreeNodeDef=\"let node; when: hasChild\"\n matTreeNodePadding\n >\n <button\n mat-icon-button\n matTreeNodeToggle\n [attr.aria-label]=\"'toggle ' + node.filename\"\n >\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}}\n </mat-icon>\n </button>\n <mat-checkbox\n [checked]=\"descendantsAllSelected(node)\"\n [indeterminate]=\"descendantsPartiallySelected(node)\"\n (change)=\"todoItemSelectionToggle(node)\"\n >\n {{node.item}}</mat-checkbox\n >\n </mat-tree-node>\n </mat-tree>\n <button mat-button class=\"mapa-dropdown-tree__button\" color=\"primary\">\n Limpar todos\n </button>\n </mat-autocomplete>\n </mat-form-field>\n</form>\n", styles: [".mapa-dropdown-tree{max-width:min-content;min-width:235px}.mapa-dropdown-tree .mat-select{font-family:SF-Pro!important}.mapa-dropdown-tree .mat-option{padding:unset!important}.mapa-dropdown-tree__label{display:block;font-size:12px;font-style:normal;font-weight:600;line-height:16px;text-transform:uppercase;margin-bottom:16px}.mapa-dropdown-tree__button{padding:9px;width:100%}.mapa-dropdown-tree__search{display:flex;align-items:center;justify-content:center;background:#f6f7f7;width:100%;height:48px}.mapa-dropdown-tree__search .mat-form-field{width:96%}.mapa-dropdown-tree__clean{background:white;border-top:1px solid #dcdcde;bottom:0%;height:36px;position:absolute;width:100%;z-index:9999}.mapa-dropdown-tree__clean button{text-align:left;height:36px;width:100%}.mapa-dropdown-tree--highlight .mat-form-field-outline{border-radius:16px!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#eedb2a!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown-tree--highlight .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown-tree--soft-border .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--soft-border .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important}.mapa-dropdown-tree--tag .mat-form-field-outline{border-radius:16px!important;height:42px!important}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#cdcdcd}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-start{display:none!important}.mapa-dropdown-tree--tag .mat-form-field-outline .mat-form-field-outline-end{border-radius:16px!important;border-left-style:solid!important}.mapa-dropdown-tree .mat-form-field-outline{background-color:#fff;border-radius:8px}.mapa-dropdown-tree .mat-form-field-outline .mat-form-field-outline-start,.mapa-dropdown-tree .mat-form-field-outline .mat-form-field-outline-end{border-width:2px}.mapa-dropdown-tree .mat-form-field-wrapper{padding-bottom:unset!important}.mapa-dropdown-tree .mat-form-field-flex{display:flex;align-items:center;height:48px}.mapa-dropdown-tree .mat-form-field-infix{border-top:unset!important;padding:unset!important;position:relative}.mapa-dropdown-tree .mat-select-trigger{min-width:50px;padding-top:.3em;height:unset!important}.mapa-dropdown-tree .mat-select-value-text{display:block;width:90%}.mapa-dropdown-tree .mat-select-arrow-wrapper{transform:none!important}.mapa-dropdown-tree .mat-select-arrow{border:unset}.mapa-dropdown-tree .mat-select-arrow:before,.mapa-dropdown-tree .mat-select-arrow:after{content:\"\";display:block;margin-top:-4px;position:absolute;right:10px;top:50%;width:0;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg)}.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow{margin:6px 0 0}.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow:before,.mapa-dropdown-tree [aria-expanded=true] .mat-select-arrow:after{transform:rotate(-135deg)!important;-webkit-transform:rotate(-135deg)!important}.mapa-overlay-dropdown-tree{transform:translate(0) translateY(2px)!important}.mapa-overlay-dropdown-tree ul{padding-inline-start:20px!important;margin-block-start:0px!important;margin-block-end:0px!important;gap:8px}.mapa-overlay-dropdown-tree .tree-toggle{display:none}.mapa-overlay-dropdown-tree .mat-select-tree-hide{display:block!important}.mapa-overlay-dropdown-tree .mat-select-panel{border-radius:8px;min-width:calc(100% + 24px)!important}.mapa-overlay-dropdown-tree .mat-select-panel .mat-option,.mapa-overlay-dropdown-tree .mat-select-panel .mat-option-text{font-family:SF-Pro!important;font-size:16px;font-style:normal;font-weight:400;line-height:2em;height:2em;color:#50575e}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option{display:flex;padding:16px 8px!important;flex-direction:column;justify-content:center;align-items:center;gap:10px;align-self:stretch;background:#f6f7f7;height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-inside-mat-option{height:unset!important;line-height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-clear{top:-3px!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-inner{top:8px;border:2px solid #a7aaad;border-radius:8px!important;width:100%!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-toggle-all-checkbox{padding-left:8px!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-input{padding:8px 8px 8px 6px!important;height:unset!important;line-height:unset!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search.mat-option .mat-select-search-input::placeholder{color:#c3c4c7!important}.mapa-overlay-dropdown-tree .mapa-dropdown__search .mat-option-text{width:100%}.mapa-overlay-dropdown-tree .mat-pseudo-checkbox{color:#c3c4c7!important}.mapa-overlay-dropdown-tree .mat-checkbox-frame{border-color:#c3c4c7!important}\n"] }]
545
+ }], ctorParameters: function () { return [{ type: ChecklistDatabase }]; }, propDecorators: { formGroup: [{
546
+ type: Input
547
+ }], element: [{
548
+ type: Input
549
+ }] } });
550
+
551
+ class MapaDropdownTreeModule {
552
+ }
553
+ MapaDropdownTreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
554
+ MapaDropdownTreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeModule, declarations: [MapaDropdownTreeComponent], imports: [CommonModule,
555
+ FormsModule,
556
+ ReactiveFormsModule,
557
+ MatButtonModule,
558
+ MapaButtonModule,
559
+ MatListModule,
560
+ MatIconModule,
561
+ MatInputModule,
562
+ MatSelectModule,
563
+ MatTreeModule,
564
+ MatCheckboxModule,
565
+ MatAutocompleteModule], exports: [MapaDropdownTreeComponent] });
566
+ MapaDropdownTreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeModule, providers: [
567
+ {
568
+ provide: MAT_SELECT_CONFIG,
569
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown-tree" },
570
+ },
571
+ {
572
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
573
+ useValue: { appearance: "outline" },
574
+ },
575
+ ], imports: [CommonModule,
576
+ FormsModule,
577
+ ReactiveFormsModule,
578
+ MatButtonModule,
579
+ MapaButtonModule,
580
+ MatListModule,
581
+ MatIconModule,
582
+ MatInputModule,
583
+ MatSelectModule,
584
+ MatTreeModule,
585
+ MatCheckboxModule,
586
+ MatAutocompleteModule] });
587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MapaDropdownTreeModule, decorators: [{
588
+ type: NgModule,
589
+ args: [{
590
+ declarations: [MapaDropdownTreeComponent],
591
+ exports: [MapaDropdownTreeComponent],
592
+ imports: [
593
+ CommonModule,
594
+ FormsModule,
595
+ ReactiveFormsModule,
596
+ MatButtonModule,
597
+ MapaButtonModule,
598
+ MatListModule,
599
+ MatIconModule,
600
+ MatInputModule,
601
+ MatSelectModule,
602
+ MatTreeModule,
603
+ MatCheckboxModule,
604
+ MatAutocompleteModule,
605
+ ],
606
+ providers: [
607
+ {
608
+ provide: MAT_SELECT_CONFIG,
609
+ useValue: { overlayPanelClass: "mapa-overlay-dropdown-tree" },
610
+ },
611
+ {
612
+ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
613
+ useValue: { appearance: "outline" },
614
+ },
615
+ ],
616
+ }]
617
+ }] });
618
+
619
+ /*
620
+ * Public API Surface of mapa-library-ui dropdown-tree
621
+ */
622
+
623
+ /*
624
+ * Public API Surface of mapa-library-ui dropdown
625
+ */
626
+
627
+ /**
628
+ * Generated bundle index. Do not edit.
629
+ */
630
+
631
+ export { Dropdown, ElementBase, FoodFlatNode, FoodNode, MapaDropdownComponent, MapaDropdownModule, MapaDropdownTreeComponent, MapaDropdownTreeModule };
632
+ //# sourceMappingURL=mapa-library-ui-src-lib-components-dropdown-tree.mjs.map