@agorapulse/ui-components 0.0.3 → 1.0.0-SNAPSHOT-YOUTUBE.2

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 (561) hide show
  1. package/add-comment/add-comment.component.d.ts +21 -0
  2. package/add-comment/index.d.ts +5 -0
  3. package/add-comment/public_api.d.ts +1 -0
  4. package/autocomplete/autocomplete.component.d.ts +40 -0
  5. package/autocomplete/index.d.ts +5 -0
  6. package/autocomplete/public_api.d.ts +1 -0
  7. package/avatar/avatar.component.d.ts +48 -0
  8. package/avatar/index.d.ts +5 -0
  9. package/avatar/public_api.d.ts +1 -0
  10. package/badge/badge.component.d.ts +7 -0
  11. package/badge/index.d.ts +5 -0
  12. package/badge/public_api.d.ts +1 -0
  13. package/button/button.component.d.ts +49 -0
  14. package/button/index.d.ts +5 -0
  15. package/button/public_api.d.ts +1 -0
  16. package/checkbox/checkbox.component.d.ts +51 -0
  17. package/checkbox/index.d.ts +5 -0
  18. package/checkbox/public_api.d.ts +1 -0
  19. package/confirm-modal/confirm-modal.component.d.ts +20 -0
  20. package/confirm-modal/index.d.ts +5 -0
  21. package/confirm-modal/public_api.d.ts +2 -0
  22. package/counter/counter.component.d.ts +17 -0
  23. package/counter/index.d.ts +5 -0
  24. package/counter/public_api.d.ts +1 -0
  25. package/datepicker/datepicker.component.d.ts +84 -0
  26. package/datepicker/index.d.ts +5 -0
  27. package/datepicker/public_api.d.ts +1 -0
  28. package/{src/lib/directives → directives}/autosize-textarea.directive.d.ts +3 -0
  29. package/directives/base-button.directive.d.ts +13 -0
  30. package/directives/default-image.directive.d.ts +8 -0
  31. package/{src/lib/directives → directives}/ellipsis.directive.d.ts +3 -1
  32. package/directives/equal-validator.directive.d.ts +13 -0
  33. package/{src/lib/directives → directives}/frozen-gif.directive.d.ts +6 -3
  34. package/directives/index.d.ts +5 -0
  35. package/directives/multi-style-text.directive.d.ts +16 -0
  36. package/directives/public_api.d.ts +7 -0
  37. package/dot-stepper/dot-stepper.component.d.ts +20 -0
  38. package/dot-stepper/index.d.ts +5 -0
  39. package/dot-stepper/public_api.d.ts +1 -0
  40. package/esm2022/add-comment/add-comment.component.mjs +72 -0
  41. package/esm2022/add-comment/agorapulse-ui-components-add-comment.mjs +5 -0
  42. package/esm2022/add-comment/public_api.mjs +2 -0
  43. package/esm2022/agorapulse-ui-components.mjs +5 -0
  44. package/esm2022/autocomplete/agorapulse-ui-components-autocomplete.mjs +5 -0
  45. package/esm2022/autocomplete/autocomplete.component.mjs +127 -0
  46. package/esm2022/autocomplete/public_api.mjs +2 -0
  47. package/esm2022/avatar/agorapulse-ui-components-avatar.mjs +5 -0
  48. package/esm2022/avatar/avatar.component.mjs +228 -0
  49. package/esm2022/avatar/public_api.mjs +2 -0
  50. package/esm2022/badge/agorapulse-ui-components-badge.mjs +5 -0
  51. package/esm2022/badge/badge.component.mjs +17 -0
  52. package/esm2022/badge/public_api.mjs +2 -0
  53. package/esm2022/button/agorapulse-ui-components-button.mjs +5 -0
  54. package/esm2022/button/button.component.mjs +111 -0
  55. package/esm2022/button/public_api.mjs +2 -0
  56. package/esm2022/checkbox/agorapulse-ui-components-checkbox.mjs +5 -0
  57. package/esm2022/checkbox/checkbox.component.mjs +177 -0
  58. package/esm2022/checkbox/public_api.mjs +2 -0
  59. package/esm2022/confirm-modal/agorapulse-ui-components-confirm-modal.mjs +5 -0
  60. package/esm2022/confirm-modal/confirm-modal-texts.model.mjs +2 -0
  61. package/esm2022/confirm-modal/confirm-modal.component.mjs +61 -0
  62. package/esm2022/confirm-modal/public_api.mjs +3 -0
  63. package/esm2022/counter/agorapulse-ui-components-counter.mjs +5 -0
  64. package/esm2022/counter/counter.component.mjs +59 -0
  65. package/esm2022/counter/public_api.mjs +2 -0
  66. package/esm2022/datepicker/agorapulse-ui-components-datepicker.mjs +5 -0
  67. package/esm2022/datepicker/datepicker.component.mjs +270 -0
  68. package/esm2022/datepicker/public_api.mjs +2 -0
  69. package/esm2022/directives/agorapulse-ui-components-directives.mjs +5 -0
  70. package/esm2022/directives/autosize-textarea.directive.mjs +45 -0
  71. package/esm2022/directives/base-button.directive.mjs +47 -0
  72. package/esm2022/directives/default-image.directive.mjs +37 -0
  73. package/esm2022/directives/ellipsis.directive.mjs +90 -0
  74. package/esm2022/directives/equal-validator.directive.mjs +73 -0
  75. package/esm2022/directives/frozen-gif.directive.mjs +125 -0
  76. package/esm2022/directives/multi-style-text.directive.mjs +61 -0
  77. package/esm2022/directives/public_api.mjs +8 -0
  78. package/esm2022/dot-stepper/agorapulse-ui-components-dot-stepper.mjs +5 -0
  79. package/esm2022/dot-stepper/dot-stepper.component.mjs +46 -0
  80. package/esm2022/dot-stepper/public_api.mjs +2 -0
  81. package/esm2022/form-field/agorapulse-ui-components-form-field.mjs +5 -0
  82. package/esm2022/form-field/form-field.component.mjs +11 -0
  83. package/esm2022/form-field/public_api.mjs +2 -0
  84. package/esm2022/form-message/agorapulse-ui-components-form-message.mjs +5 -0
  85. package/esm2022/form-message/form-message.component.mjs +34 -0
  86. package/esm2022/form-message/public_api.mjs +2 -0
  87. package/esm2022/icon-button/agorapulse-ui-components-icon-button.mjs +5 -0
  88. package/esm2022/icon-button/icon-button.component.mjs +124 -0
  89. package/esm2022/icon-button/public_api.mjs +2 -0
  90. package/esm2022/index.mjs +48 -0
  91. package/esm2022/infobox/agorapulse-ui-components-infobox.mjs +5 -0
  92. package/esm2022/infobox/infobox.component.mjs +78 -0
  93. package/esm2022/infobox/public_api.mjs +2 -0
  94. package/esm2022/input/agorapulse-ui-components-input.mjs +5 -0
  95. package/esm2022/input/input.directive.mjs +19 -0
  96. package/esm2022/input/public_api.mjs +2 -0
  97. package/esm2022/input-group/agorapulse-ui-components-input-group.mjs +5 -0
  98. package/esm2022/input-group/input-group.component.mjs +14 -0
  99. package/esm2022/input-group/input-prefix/input-prefix.component.mjs +11 -0
  100. package/esm2022/input-group/public_api.mjs +3 -0
  101. package/esm2022/input-search/agorapulse-ui-components-input-search.mjs +5 -0
  102. package/esm2022/input-search/input-search.component.mjs +77 -0
  103. package/esm2022/input-search/public_api.mjs +2 -0
  104. package/esm2022/labels/agorapulse-ui-components-labels.mjs +5 -0
  105. package/esm2022/labels/label-list.component.mjs +108 -0
  106. package/esm2022/labels/label.component.mjs +56 -0
  107. package/esm2022/labels/public_api.mjs +3 -0
  108. package/esm2022/labels-selector/agorapulse-ui-components-labels-selector.mjs +5 -0
  109. package/esm2022/labels-selector/labels-selector.component.mjs +122 -0
  110. package/esm2022/labels-selector/public_api.mjs +2 -0
  111. package/esm2022/legacy/input/agorapulse-ui-components-legacy-input.mjs +5 -0
  112. package/esm2022/legacy/input/input.component.mjs +189 -0
  113. package/esm2022/legacy/input/public_api.mjs +2 -0
  114. package/esm2022/legacy/select/agorapulse-ui-components-legacy-select.mjs +5 -0
  115. package/esm2022/legacy/select/public_api.mjs +2 -0
  116. package/esm2022/legacy/select/select.component.mjs +451 -0
  117. package/esm2022/legacy/textarea/agorapulse-ui-components-legacy-textarea.mjs +5 -0
  118. package/esm2022/legacy/textarea/public_api.mjs +2 -0
  119. package/esm2022/legacy/textarea/textarea.component.mjs +154 -0
  120. package/esm2022/media-display-overlay/agorapulse-ui-components-media-display-overlay.mjs +5 -0
  121. package/esm2022/media-display-overlay/media-display-overlay-dialog.component.mjs +122 -0
  122. package/esm2022/media-display-overlay/public_api.mjs +2 -0
  123. package/esm2022/modal/agorapulse-ui-components-modal.mjs +5 -0
  124. package/esm2022/modal/modal.component.mjs +116 -0
  125. package/esm2022/modal/public_api.mjs +2 -0
  126. package/esm2022/neo-datepicker/agorapulse-ui-components-neo-datepicker.mjs +5 -0
  127. package/esm2022/neo-datepicker/day-detail.model.mjs +2 -0
  128. package/esm2022/neo-datepicker/day-disabled.pipe.mjs +21 -0
  129. package/esm2022/neo-datepicker/neo-datepicker.component.mjs +241 -0
  130. package/esm2022/neo-datepicker/public_api.mjs +4 -0
  131. package/esm2022/notification/agorapulse-ui-components-notification.mjs +5 -0
  132. package/esm2022/notification/notification.component.mjs +15 -0
  133. package/esm2022/notification/public_api.mjs +2 -0
  134. package/esm2022/paginator/agorapulse-ui-components-paginator.mjs +5 -0
  135. package/esm2022/paginator/paginator-button/paginator-button.component.mjs +51 -0
  136. package/esm2022/paginator/paginator.component.mjs +116 -0
  137. package/esm2022/paginator/public_api.mjs +3 -0
  138. package/esm2022/password-input/agorapulse-ui-components-password-input.mjs +5 -0
  139. package/esm2022/password-input/password-input.component.mjs +78 -0
  140. package/esm2022/password-input/public_api.mjs +2 -0
  141. package/esm2022/phone-number-input/agorapulse-ui-components-phone-number-input.mjs +5 -0
  142. package/esm2022/phone-number-input/phone-number-input.component.mjs +181 -0
  143. package/esm2022/phone-number-input/public_api.mjs +2 -0
  144. package/esm2022/popmenu/agorapulse-ui-components-popmenu.mjs +5 -0
  145. package/esm2022/popmenu/options.mjs +17 -0
  146. package/esm2022/popmenu/popmenu-options.interface.mjs +2 -0
  147. package/esm2022/popmenu/popmenu-options.service.mjs +7 -0
  148. package/esm2022/popmenu/popmenu.component.mjs +383 -0
  149. package/esm2022/popmenu/popmenu.directive.mjs +292 -0
  150. package/esm2022/popmenu/popmenu.module.mjs +29 -0
  151. package/esm2022/popmenu/public_api.mjs +5 -0
  152. package/esm2022/radio/agorapulse-ui-components-radio.mjs +5 -0
  153. package/esm2022/radio/public_api.mjs +2 -0
  154. package/esm2022/radio/radio.component.mjs +320 -0
  155. package/esm2022/range-slider/agorapulse-ui-components-range-slider.mjs +5 -0
  156. package/esm2022/range-slider/public_api.mjs +2 -0
  157. package/esm2022/range-slider/range-slider.component.mjs +155 -0
  158. package/esm2022/select/agorapulse-ui-components-select.mjs +5 -0
  159. package/esm2022/select/ap-select.module.mjs +78 -0
  160. package/esm2022/select/dropdown-group-item/dropdown-group-item.component.mjs +51 -0
  161. package/esm2022/select/dropdown-item-multiple-one-line/dropdown-item-multiple-one-line.component.mjs +75 -0
  162. package/esm2022/select/dropdown-item-multiple-two-lines/dropdown-item-multiple-two-lines.component.mjs +79 -0
  163. package/esm2022/select/dropdown-item-single-one-line/dropdown-item-single-one-line.component.mjs +59 -0
  164. package/esm2022/select/dropdown-item-single-two-lines/dropdown-item-single-two-lines.component.mjs +60 -0
  165. package/esm2022/select/dropdown-search-form/dropdown-search-form.component.mjs +104 -0
  166. package/esm2022/select/public_api.mjs +13 -0
  167. package/esm2022/select/select-base.directive.mjs +69 -0
  168. package/esm2022/select/select-label-multiple/select-label-multiple.component.mjs +95 -0
  169. package/esm2022/select/select-label-single/select-label-single.component.mjs +33 -0
  170. package/esm2022/select/select-multiple.directive.mjs +35 -0
  171. package/esm2022/select/select-single.directive.mjs +34 -0
  172. package/esm2022/slide-toggle/agorapulse-ui-components-slide-toggle.mjs +5 -0
  173. package/esm2022/slide-toggle/public_api.mjs +2 -0
  174. package/esm2022/slide-toggle/slide-toggle.component.mjs +66 -0
  175. package/esm2022/snackbars-thread/agorapulse-ui-components-snackbars-thread.mjs +5 -0
  176. package/esm2022/snackbars-thread/component/snackbars-thread.component.mjs +92 -0
  177. package/esm2022/snackbars-thread/model/snackbars-thread.model.mjs +44 -0
  178. package/esm2022/snackbars-thread/public_api.mjs +4 -0
  179. package/esm2022/snackbars-thread/service/snackbars-thread.service.mjs +47 -0
  180. package/esm2022/snackbars-thread/utils/const/snackbars-thread.const.mjs +13 -0
  181. package/esm2022/social-button/agorapulse-ui-components-social-button.mjs +5 -0
  182. package/esm2022/social-button/public_api.mjs +2 -0
  183. package/esm2022/social-button/social-button.component.mjs +152 -0
  184. package/esm2022/split-button/agorapulse-ui-components-split-button.mjs +5 -0
  185. package/esm2022/split-button/public_api.mjs +2 -0
  186. package/esm2022/split-button/split-button.component.mjs +128 -0
  187. package/esm2022/src/lib/agorapulse-ui-components.module.mjs +200 -0
  188. package/esm2022/status/agorapulse-ui-components-status.mjs +5 -0
  189. package/esm2022/status/public_api.mjs +2 -0
  190. package/esm2022/status/status.component.mjs +21 -0
  191. package/esm2022/status-card/agorapulse-ui-components-status-card.mjs +5 -0
  192. package/esm2022/status-card/public_api.mjs +2 -0
  193. package/esm2022/status-card/status-card.component.mjs +24 -0
  194. package/esm2022/stepper/agorapulse-ui-components-stepper.mjs +5 -0
  195. package/esm2022/stepper/public_api.mjs +3 -0
  196. package/esm2022/stepper/step.model.mjs +2 -0
  197. package/esm2022/stepper/stepper.component.mjs +38 -0
  198. package/esm2022/tag/agorapulse-ui-components-tag.mjs +5 -0
  199. package/esm2022/tag/public_api.mjs +2 -0
  200. package/esm2022/tag/tag.component.mjs +35 -0
  201. package/esm2022/text-measurement/agorapulse-ui-components-text-measurement.mjs +5 -0
  202. package/esm2022/text-measurement/public_api.mjs +2 -0
  203. package/esm2022/text-measurement/text-measurement.service.mjs +29 -0
  204. package/esm2022/textarea/agorapulse-ui-components-textarea.mjs +5 -0
  205. package/esm2022/textarea/public_api.mjs +2 -0
  206. package/esm2022/textarea/textarea.directive.mjs +37 -0
  207. package/esm2022/toggle/agorapulse-ui-components-toggle.mjs +5 -0
  208. package/esm2022/toggle/public_api.mjs +2 -0
  209. package/esm2022/toggle/toggle.component.mjs +208 -0
  210. package/esm2022/tooltip/agorapulse-ui-components-tooltip.mjs +5 -0
  211. package/esm2022/tooltip/public_api.mjs +2 -0
  212. package/esm2022/tooltip/tooltip.directive.mjs +401 -0
  213. package/esm2022/tooltip/tooltip.service.mjs +29 -0
  214. package/fesm2022/agorapulse-ui-components-add-comment.mjs +79 -0
  215. package/fesm2022/agorapulse-ui-components-add-comment.mjs.map +1 -0
  216. package/fesm2022/agorapulse-ui-components-autocomplete.mjs +134 -0
  217. package/fesm2022/agorapulse-ui-components-autocomplete.mjs.map +1 -0
  218. package/fesm2022/agorapulse-ui-components-avatar.mjs +235 -0
  219. package/fesm2022/agorapulse-ui-components-avatar.mjs.map +1 -0
  220. package/fesm2022/agorapulse-ui-components-badge.mjs +24 -0
  221. package/fesm2022/agorapulse-ui-components-badge.mjs.map +1 -0
  222. package/fesm2022/agorapulse-ui-components-button.mjs +118 -0
  223. package/fesm2022/agorapulse-ui-components-button.mjs.map +1 -0
  224. package/fesm2022/agorapulse-ui-components-checkbox.mjs +184 -0
  225. package/fesm2022/agorapulse-ui-components-checkbox.mjs.map +1 -0
  226. package/fesm2022/agorapulse-ui-components-confirm-modal.mjs +68 -0
  227. package/fesm2022/agorapulse-ui-components-confirm-modal.mjs.map +1 -0
  228. package/fesm2022/agorapulse-ui-components-counter.mjs +66 -0
  229. package/fesm2022/agorapulse-ui-components-counter.mjs.map +1 -0
  230. package/fesm2022/agorapulse-ui-components-datepicker.mjs +277 -0
  231. package/fesm2022/agorapulse-ui-components-datepicker.mjs.map +1 -0
  232. package/fesm2022/agorapulse-ui-components-directives.mjs +473 -0
  233. package/fesm2022/agorapulse-ui-components-directives.mjs.map +1 -0
  234. package/fesm2022/agorapulse-ui-components-dot-stepper.mjs +53 -0
  235. package/fesm2022/agorapulse-ui-components-dot-stepper.mjs.map +1 -0
  236. package/fesm2022/agorapulse-ui-components-form-field.mjs +18 -0
  237. package/fesm2022/agorapulse-ui-components-form-field.mjs.map +1 -0
  238. package/fesm2022/agorapulse-ui-components-form-message.mjs +41 -0
  239. package/fesm2022/agorapulse-ui-components-form-message.mjs.map +1 -0
  240. package/fesm2022/agorapulse-ui-components-icon-button.mjs +131 -0
  241. package/fesm2022/agorapulse-ui-components-icon-button.mjs.map +1 -0
  242. package/fesm2022/agorapulse-ui-components-infobox.mjs +85 -0
  243. package/fesm2022/agorapulse-ui-components-infobox.mjs.map +1 -0
  244. package/fesm2022/agorapulse-ui-components-input-group.mjs +30 -0
  245. package/fesm2022/agorapulse-ui-components-input-group.mjs.map +1 -0
  246. package/fesm2022/agorapulse-ui-components-input-search.mjs +84 -0
  247. package/fesm2022/agorapulse-ui-components-input-search.mjs.map +1 -0
  248. package/fesm2022/agorapulse-ui-components-input.mjs +26 -0
  249. package/fesm2022/agorapulse-ui-components-input.mjs.map +1 -0
  250. package/fesm2022/agorapulse-ui-components-labels-selector.mjs +129 -0
  251. package/fesm2022/agorapulse-ui-components-labels-selector.mjs.map +1 -0
  252. package/fesm2022/agorapulse-ui-components-labels.mjs +168 -0
  253. package/fesm2022/agorapulse-ui-components-labels.mjs.map +1 -0
  254. package/fesm2022/agorapulse-ui-components-legacy-input.mjs +196 -0
  255. package/fesm2022/agorapulse-ui-components-legacy-input.mjs.map +1 -0
  256. package/fesm2022/agorapulse-ui-components-legacy-select.mjs +458 -0
  257. package/fesm2022/agorapulse-ui-components-legacy-select.mjs.map +1 -0
  258. package/fesm2022/agorapulse-ui-components-legacy-textarea.mjs +161 -0
  259. package/fesm2022/agorapulse-ui-components-legacy-textarea.mjs.map +1 -0
  260. package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs +129 -0
  261. package/fesm2022/agorapulse-ui-components-media-display-overlay.mjs.map +1 -0
  262. package/fesm2022/agorapulse-ui-components-modal.mjs +123 -0
  263. package/fesm2022/agorapulse-ui-components-modal.mjs.map +1 -0
  264. package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs +266 -0
  265. package/fesm2022/agorapulse-ui-components-neo-datepicker.mjs.map +1 -0
  266. package/fesm2022/agorapulse-ui-components-notification.mjs +22 -0
  267. package/fesm2022/agorapulse-ui-components-notification.mjs.map +1 -0
  268. package/fesm2022/agorapulse-ui-components-paginator.mjs +171 -0
  269. package/fesm2022/agorapulse-ui-components-paginator.mjs.map +1 -0
  270. package/fesm2022/agorapulse-ui-components-password-input.mjs +85 -0
  271. package/fesm2022/agorapulse-ui-components-password-input.mjs.map +1 -0
  272. package/fesm2022/agorapulse-ui-components-phone-number-input.mjs +188 -0
  273. package/fesm2022/agorapulse-ui-components-phone-number-input.mjs.map +1 -0
  274. package/fesm2022/agorapulse-ui-components-popmenu.mjs +724 -0
  275. package/fesm2022/agorapulse-ui-components-popmenu.mjs.map +1 -0
  276. package/fesm2022/agorapulse-ui-components-radio.mjs +327 -0
  277. package/fesm2022/agorapulse-ui-components-radio.mjs.map +1 -0
  278. package/fesm2022/agorapulse-ui-components-range-slider.mjs +162 -0
  279. package/fesm2022/agorapulse-ui-components-range-slider.mjs.map +1 -0
  280. package/fesm2022/agorapulse-ui-components-select.mjs +717 -0
  281. package/fesm2022/agorapulse-ui-components-select.mjs.map +1 -0
  282. package/fesm2022/agorapulse-ui-components-slide-toggle.mjs +73 -0
  283. package/fesm2022/agorapulse-ui-components-slide-toggle.mjs.map +1 -0
  284. package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs +199 -0
  285. package/fesm2022/agorapulse-ui-components-snackbars-thread.mjs.map +1 -0
  286. package/fesm2022/agorapulse-ui-components-social-button.mjs +158 -0
  287. package/fesm2022/agorapulse-ui-components-social-button.mjs.map +1 -0
  288. package/fesm2022/agorapulse-ui-components-split-button.mjs +135 -0
  289. package/fesm2022/agorapulse-ui-components-split-button.mjs.map +1 -0
  290. package/fesm2022/agorapulse-ui-components-status-card.mjs +31 -0
  291. package/fesm2022/agorapulse-ui-components-status-card.mjs.map +1 -0
  292. package/fesm2022/agorapulse-ui-components-status.mjs +28 -0
  293. package/fesm2022/agorapulse-ui-components-status.mjs.map +1 -0
  294. package/fesm2022/agorapulse-ui-components-stepper.mjs +45 -0
  295. package/fesm2022/agorapulse-ui-components-stepper.mjs.map +1 -0
  296. package/fesm2022/agorapulse-ui-components-tag.mjs +42 -0
  297. package/fesm2022/agorapulse-ui-components-tag.mjs.map +1 -0
  298. package/fesm2022/agorapulse-ui-components-text-measurement.mjs +36 -0
  299. package/fesm2022/agorapulse-ui-components-text-measurement.mjs.map +1 -0
  300. package/fesm2022/agorapulse-ui-components-textarea.mjs +44 -0
  301. package/fesm2022/agorapulse-ui-components-textarea.mjs.map +1 -0
  302. package/fesm2022/agorapulse-ui-components-toggle.mjs +215 -0
  303. package/fesm2022/agorapulse-ui-components-toggle.mjs.map +1 -0
  304. package/fesm2022/agorapulse-ui-components-tooltip.mjs +434 -0
  305. package/fesm2022/agorapulse-ui-components-tooltip.mjs.map +1 -0
  306. package/fesm2022/agorapulse-ui-components.mjs +247 -0
  307. package/fesm2022/agorapulse-ui-components.mjs.map +1 -0
  308. package/form-field/form-field.component.d.ts +5 -0
  309. package/form-field/index.d.ts +5 -0
  310. package/form-field/public_api.d.ts +1 -0
  311. package/form-message/form-message.component.d.ts +12 -0
  312. package/form-message/index.d.ts +5 -0
  313. package/form-message/public_api.d.ts +1 -0
  314. package/icon-button/icon-button.component.d.ts +39 -0
  315. package/icon-button/index.d.ts +5 -0
  316. package/icon-button/public_api.d.ts +1 -0
  317. package/index.d.ts +41 -53
  318. package/infobox/index.d.ts +5 -0
  319. package/infobox/infobox.component.d.ts +32 -0
  320. package/infobox/public_api.d.ts +1 -0
  321. package/input/index.d.ts +5 -0
  322. package/input/input.directive.d.ts +7 -0
  323. package/input/public_api.d.ts +1 -0
  324. package/input-group/index.d.ts +5 -0
  325. package/input-group/input-group.component.d.ts +6 -0
  326. package/input-group/input-prefix/input-prefix.component.d.ts +5 -0
  327. package/input-group/public_api.d.ts +2 -0
  328. package/input-search/index.d.ts +5 -0
  329. package/input-search/input-search.component.d.ts +32 -0
  330. package/input-search/public_api.d.ts +1 -0
  331. package/labels/index.d.ts +5 -0
  332. package/labels/label-list.component.d.ts +34 -0
  333. package/labels/label.component.d.ts +23 -0
  334. package/labels/public_api.d.ts +2 -0
  335. package/labels-selector/index.d.ts +5 -0
  336. package/labels-selector/labels-selector.component.d.ts +42 -0
  337. package/labels-selector/public_api.d.ts +1 -0
  338. package/legacy/input/index.d.ts +5 -0
  339. package/legacy/input/input.component.d.ts +64 -0
  340. package/legacy/input/public_api.d.ts +1 -0
  341. package/legacy/select/index.d.ts +5 -0
  342. package/legacy/select/public_api.d.ts +1 -0
  343. package/legacy/select/select.component.d.ts +122 -0
  344. package/legacy/textarea/index.d.ts +5 -0
  345. package/legacy/textarea/public_api.d.ts +1 -0
  346. package/legacy/textarea/textarea.component.d.ts +53 -0
  347. package/media-display-overlay/index.d.ts +5 -0
  348. package/media-display-overlay/media-display-overlay-dialog.component.d.ts +42 -0
  349. package/media-display-overlay/public_api.d.ts +1 -0
  350. package/modal/index.d.ts +5 -0
  351. package/modal/modal.component.d.ts +54 -0
  352. package/modal/public_api.d.ts +1 -0
  353. package/neo-datepicker/day-detail.model.d.ts +9 -0
  354. package/neo-datepicker/day-disabled.pipe.d.ts +8 -0
  355. package/neo-datepicker/index.d.ts +5 -0
  356. package/neo-datepicker/neo-datepicker.component.d.ts +61 -0
  357. package/neo-datepicker/public_api.d.ts +3 -0
  358. package/notification/index.d.ts +5 -0
  359. package/notification/notification.component.d.ts +6 -0
  360. package/notification/public_api.d.ts +1 -0
  361. package/package.json +303 -20
  362. package/paginator/index.d.ts +5 -0
  363. package/paginator/paginator-button/paginator-button.component.d.ts +17 -0
  364. package/paginator/paginator.component.d.ts +38 -0
  365. package/paginator/public_api.d.ts +2 -0
  366. package/password-input/index.d.ts +5 -0
  367. package/password-input/password-input.component.d.ts +33 -0
  368. package/password-input/public_api.d.ts +1 -0
  369. package/phone-number-input/index.d.ts +5 -0
  370. package/phone-number-input/phone-number-input.component.d.ts +48 -0
  371. package/phone-number-input/public_api.d.ts +1 -0
  372. package/popmenu/index.d.ts +5 -0
  373. package/{src/lib/popmenu → popmenu}/options.d.ts +1 -0
  374. package/popmenu/popmenu-options.interface.d.ts +48 -0
  375. package/{src/lib/popmenu → popmenu}/popmenu.component.d.ts +17 -9
  376. package/popmenu/popmenu.directive.d.ts +84 -0
  377. package/popmenu/popmenu.module.d.ts +11 -0
  378. package/popmenu/public_api.d.ts +4 -0
  379. package/radio/index.d.ts +5 -0
  380. package/radio/public_api.d.ts +1 -0
  381. package/radio/radio.component.d.ts +77 -0
  382. package/range-slider/index.d.ts +5 -0
  383. package/range-slider/public_api.d.ts +1 -0
  384. package/range-slider/range-slider.component.d.ts +35 -0
  385. package/select/ap-select.module.d.ts +17 -0
  386. package/select/dropdown-group-item/dropdown-group-item.component.d.ts +16 -0
  387. package/select/dropdown-item-multiple-one-line/dropdown-item-multiple-one-line.component.d.ts +25 -0
  388. package/select/dropdown-item-multiple-two-lines/dropdown-item-multiple-two-lines.component.d.ts +26 -0
  389. package/select/dropdown-item-single-one-line/dropdown-item-single-one-line.component.d.ts +20 -0
  390. package/select/dropdown-item-single-two-lines/dropdown-item-single-two-lines.component.d.ts +20 -0
  391. package/select/dropdown-search-form/dropdown-search-form.component.d.ts +32 -0
  392. package/select/index.d.ts +5 -0
  393. package/select/public_api.d.ts +12 -0
  394. package/select/select-base.directive.d.ts +18 -0
  395. package/select/select-label-multiple/select-label-multiple.component.d.ts +27 -0
  396. package/select/select-label-single/select-label-single.component.d.ts +12 -0
  397. package/select/select-multiple.directive.d.ts +10 -0
  398. package/select/select-single.directive.d.ts +10 -0
  399. package/slide-toggle/index.d.ts +5 -0
  400. package/slide-toggle/public_api.d.ts +1 -0
  401. package/{src/lib/slide-toggle → slide-toggle}/slide-toggle.component.d.ts +4 -0
  402. package/snackbars-thread/component/snackbars-thread.component.d.ts +24 -0
  403. package/snackbars-thread/index.d.ts +5 -0
  404. package/{src/lib/snackbars-thread → snackbars-thread}/model/snackbars-thread.model.d.ts +10 -6
  405. package/snackbars-thread/public_api.d.ts +3 -0
  406. package/snackbars-thread/service/snackbars-thread.service.d.ts +15 -0
  407. package/{src/lib/snackbars-thread → snackbars-thread}/utils/const/snackbars-thread.const.d.ts +2 -4
  408. package/social-button/index.d.ts +5 -0
  409. package/social-button/public_api.d.ts +1 -0
  410. package/social-button/social-button.component.d.ts +32 -0
  411. package/split-button/index.d.ts +5 -0
  412. package/split-button/public_api.d.ts +1 -0
  413. package/split-button/split-button.component.d.ts +43 -0
  414. package/src/lib/agorapulse-ui-components.module.d.ts +27 -0
  415. package/status/index.d.ts +5 -0
  416. package/status/public_api.d.ts +1 -0
  417. package/status/status.component.d.ts +9 -0
  418. package/status-card/index.d.ts +5 -0
  419. package/status-card/public_api.d.ts +1 -0
  420. package/status-card/status-card.component.d.ts +13 -0
  421. package/stepper/index.d.ts +5 -0
  422. package/stepper/public_api.d.ts +2 -0
  423. package/{src/lib/stepper → stepper}/step.model.d.ts +1 -0
  424. package/stepper/stepper.component.d.ts +16 -0
  425. package/tag/index.d.ts +5 -0
  426. package/tag/public_api.d.ts +1 -0
  427. package/tag/tag.component.d.ts +18 -0
  428. package/text-measurement/index.d.ts +5 -0
  429. package/text-measurement/public_api.d.ts +1 -0
  430. package/text-measurement/text-measurement.service.d.ts +8 -0
  431. package/textarea/index.d.ts +5 -0
  432. package/textarea/public_api.d.ts +1 -0
  433. package/textarea/textarea.directive.d.ts +11 -0
  434. package/toggle/index.d.ts +5 -0
  435. package/toggle/public_api.d.ts +1 -0
  436. package/toggle/toggle.component.d.ts +52 -0
  437. package/tooltip/index.d.ts +5 -0
  438. package/tooltip/public_api.d.ts +1 -0
  439. package/tooltip/tooltip.directive.d.ts +59 -0
  440. package/tooltip/tooltip.service.d.ts +11 -0
  441. package/agorapulse-ui-components-0.0.3.tgz +0 -0
  442. package/agorapulse-ui-components.d.ts +0 -9
  443. package/agorapulse-ui-components.metadata.json +0 -1
  444. package/bundles/agorapulse-ui-components.umd.js +0 -4448
  445. package/bundles/agorapulse-ui-components.umd.js.map +0 -1
  446. package/esm2015/agorapulse-ui-components.js +0 -10
  447. package/esm2015/index.js +0 -57
  448. package/esm2015/src/lib/add-comment/add-comment.component.js +0 -54
  449. package/esm2015/src/lib/agorapulse-ui-components.module.js +0 -279
  450. package/esm2015/src/lib/avatar/avatar.component.js +0 -82
  451. package/esm2015/src/lib/confirm-modal/confirm-modal-texts.model.js +0 -2
  452. package/esm2015/src/lib/confirm-modal/confirm-modal.component.js +0 -59
  453. package/esm2015/src/lib/datepicker/datepicker.component.js +0 -213
  454. package/esm2015/src/lib/directives/autosize-textarea.directive.js +0 -43
  455. package/esm2015/src/lib/directives/default-image.directive.js +0 -25
  456. package/esm2015/src/lib/directives/ellipsis.directive.js +0 -82
  457. package/esm2015/src/lib/directives/equal-validator.directive.js +0 -53
  458. package/esm2015/src/lib/directives/frozen-gif.directive.js +0 -113
  459. package/esm2015/src/lib/directives/multi-style-text.directive.js +0 -103
  460. package/esm2015/src/lib/directives/truncate-tooltip.directive.js +0 -36
  461. package/esm2015/src/lib/dots-stepper/dots-stepper.component.js +0 -41
  462. package/esm2015/src/lib/edit-tag-modal/edit-tags-modal.component.js +0 -129
  463. package/esm2015/src/lib/edit-tag-modal/model/edit-tags-modal.model.js +0 -2
  464. package/esm2015/src/lib/feature-onboarding/feature-onboarding.component.js +0 -35
  465. package/esm2015/src/lib/image-carousel/image-carousel.component.js +0 -143
  466. package/esm2015/src/lib/lead-modal/lead-info.model.js +0 -2
  467. package/esm2015/src/lib/lead-modal/lead-modal.component.js +0 -47
  468. package/esm2015/src/lib/media-display-overlay/media-display-overlay-dialog.component.js +0 -87
  469. package/esm2015/src/lib/modal/modal.component.js +0 -88
  470. package/esm2015/src/lib/notification/notification.component.js +0 -18
  471. package/esm2015/src/lib/overlay/overlay-dialog-service.component.js +0 -62
  472. package/esm2015/src/lib/overlay/overlay-dialog.component.js +0 -33
  473. package/esm2015/src/lib/overlay-in-div/overlay-in-div.component.js +0 -23
  474. package/esm2015/src/lib/paginator/paginator-button/paginator-button.component.js +0 -22
  475. package/esm2015/src/lib/paginator/paginator.component.js +0 -47
  476. package/esm2015/src/lib/password-input/password-input.component.js +0 -65
  477. package/esm2015/src/lib/password-strength-bar/password-strength-bar.component.js +0 -82
  478. package/esm2015/src/lib/password-strength-display-bar/password-strength-display-bar.component.js +0 -41
  479. package/esm2015/src/lib/phone-number-input/phone-number-input.component.js +0 -123
  480. package/esm2015/src/lib/places/place-list.component.js +0 -12
  481. package/esm2015/src/lib/places/place.component.js +0 -15
  482. package/esm2015/src/lib/popmenu/options.js +0 -16
  483. package/esm2015/src/lib/popmenu/popmenu-options.interface.js +0 -2
  484. package/esm2015/src/lib/popmenu/popmenu-options.service.js +0 -7
  485. package/esm2015/src/lib/popmenu/popmenu.component.js +0 -322
  486. package/esm2015/src/lib/popmenu/popmenu.directive.js +0 -215
  487. package/esm2015/src/lib/popmenu/popmenu.module.js +0 -38
  488. package/esm2015/src/lib/slide-toggle/slide-toggle.component.js +0 -59
  489. package/esm2015/src/lib/snackbar/snackbar.component.js +0 -22
  490. package/esm2015/src/lib/snackbars-thread/component/snackbars-thread.component.js +0 -50
  491. package/esm2015/src/lib/snackbars-thread/model/snackbars-thread.model.js +0 -41
  492. package/esm2015/src/lib/snackbars-thread/service/snackbars-thread.service.js +0 -44
  493. package/esm2015/src/lib/snackbars-thread/utils/const/snackbars-thread.const.js +0 -13
  494. package/esm2015/src/lib/splashscreen/splashscreen.component.js +0 -37
  495. package/esm2015/src/lib/star-rating/star-rating.component.js +0 -38
  496. package/esm2015/src/lib/stepper/step.model.js +0 -2
  497. package/esm2015/src/lib/stepper/stepper.component.js +0 -37
  498. package/esm2015/src/lib/tags/tag-list.component.js +0 -12
  499. package/esm2015/src/lib/tags/tag.component.js +0 -20
  500. package/esm2015/src/lib/tags-selector/tags-selector.component.js +0 -73
  501. package/esm2015/src/lib/timepicker/timepicker.component.js +0 -375
  502. package/esm2015/src/lib/tooltip-neo/tooltip-neo.component.js +0 -46
  503. package/esm2015/src/lib/tooltip-neo/tooltip-neo.const.js +0 -67
  504. package/esm2015/src/lib/tooltip-neo/tooltip-neo.directive.js +0 -107
  505. package/esm2015/src/lib/tooltip-neo/tooltip-neo.model.js +0 -2
  506. package/esm2015/src/lib/tooltip-neo/tooltip-neo.service.js +0 -15
  507. package/esm2015/src/lib/try-popup/try-popup-texts.model.js +0 -2
  508. package/esm2015/src/lib/try-popup/try-popup.component.js +0 -33
  509. package/fesm2015/agorapulse-ui-components.js +0 -3805
  510. package/fesm2015/agorapulse-ui-components.js.map +0 -1
  511. package/src/lib/add-comment/add-comment.component.d.ts +0 -17
  512. package/src/lib/avatar/avatar.component.d.ts +0 -23
  513. package/src/lib/confirm-modal/confirm-modal.component.d.ts +0 -17
  514. package/src/lib/datepicker/datepicker.component.d.ts +0 -69
  515. package/src/lib/directives/default-image.directive.d.ts +0 -5
  516. package/src/lib/directives/equal-validator.directive.d.ts +0 -10
  517. package/src/lib/directives/multi-style-text.directive.d.ts +0 -15
  518. package/src/lib/directives/truncate-tooltip.directive.d.ts +0 -13
  519. package/src/lib/dots-stepper/dots-stepper.component.d.ts +0 -13
  520. package/src/lib/edit-tag-modal/edit-tags-modal.component.d.ts +0 -29
  521. package/src/lib/edit-tag-modal/model/edit-tags-modal.model.d.ts +0 -21
  522. package/src/lib/feature-onboarding/feature-onboarding.component.d.ts +0 -15
  523. package/src/lib/image-carousel/image-carousel.component.d.ts +0 -45
  524. package/src/lib/lead-modal/lead-info.model.d.ts +0 -7
  525. package/src/lib/lead-modal/lead-modal.component.d.ts +0 -28
  526. package/src/lib/media-display-overlay/media-display-overlay-dialog.component.d.ts +0 -28
  527. package/src/lib/modal/modal.component.d.ts +0 -47
  528. package/src/lib/notification/notification.component.d.ts +0 -3
  529. package/src/lib/overlay/overlay-dialog-service.component.d.ts +0 -20
  530. package/src/lib/overlay/overlay-dialog.component.d.ts +0 -17
  531. package/src/lib/overlay-in-div/overlay-in-div.component.d.ts +0 -8
  532. package/src/lib/paginator/paginator-button/paginator-button.component.d.ts +0 -6
  533. package/src/lib/paginator/paginator.component.d.ts +0 -14
  534. package/src/lib/password-input/password-input.component.d.ts +0 -28
  535. package/src/lib/password-strength-bar/password-strength-bar.component.d.ts +0 -21
  536. package/src/lib/password-strength-display-bar/password-strength-display-bar.component.d.ts +0 -14
  537. package/src/lib/phone-number-input/phone-number-input.component.d.ts +0 -42
  538. package/src/lib/places/place-list.component.d.ts +0 -2
  539. package/src/lib/places/place.component.d.ts +0 -3
  540. package/src/lib/popmenu/popmenu-options.interface.d.ts +0 -24
  541. package/src/lib/popmenu/popmenu.directive.d.ts +0 -69
  542. package/src/lib/popmenu/popmenu.module.d.ts +0 -5
  543. package/src/lib/snackbar/snackbar.component.d.ts +0 -6
  544. package/src/lib/snackbars-thread/component/snackbars-thread.component.d.ts +0 -18
  545. package/src/lib/snackbars-thread/service/snackbars-thread.service.d.ts +0 -12
  546. package/src/lib/splashscreen/splashscreen.component.d.ts +0 -15
  547. package/src/lib/star-rating/star-rating.component.d.ts +0 -10
  548. package/src/lib/stepper/stepper.component.d.ts +0 -14
  549. package/src/lib/tags/tag-list.component.d.ts +0 -2
  550. package/src/lib/tags/tag.component.d.ts +0 -4
  551. package/src/lib/tags-selector/tags-selector.component.d.ts +0 -29
  552. package/src/lib/timepicker/timepicker.component.d.ts +0 -68
  553. package/src/lib/tooltip-neo/tooltip-neo.component.d.ts +0 -12
  554. package/src/lib/tooltip-neo/tooltip-neo.const.d.ts +0 -4
  555. package/src/lib/tooltip-neo/tooltip-neo.directive.d.ts +0 -29
  556. package/src/lib/tooltip-neo/tooltip-neo.model.d.ts +0 -12
  557. package/src/lib/tooltip-neo/tooltip-neo.service.d.ts +0 -4
  558. package/src/lib/try-popup/try-popup-texts.model.d.ts +0 -4
  559. package/src/lib/try-popup/try-popup.component.d.ts +0 -12
  560. /package/{src/lib/confirm-modal → confirm-modal}/confirm-modal-texts.model.d.ts +0 -0
  561. /package/{src/lib/popmenu → popmenu}/popmenu-options.service.d.ts +0 -0
@@ -0,0 +1,724 @@
1
+ import { ButtonComponent } from '@agorapulse/ui-components/button';
2
+ import { NgStyle, NgTemplateOutlet } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { EventEmitter, Component, ChangeDetectionStrategy, Input, Output, ViewChild, HostBinding, InjectionToken, Directive, Optional, Inject, HostListener, NgModule } from '@angular/core';
5
+ import * as i1 from '@angular/material/menu';
6
+ import { MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
7
+ import { merge } from 'rxjs';
8
+
9
+ class PopmenuComponent {
10
+ renderer;
11
+ elementRef;
12
+ changeDetectorRef;
13
+ data;
14
+ events = new EventEmitter();
15
+ arrowTopPosition = '50%';
16
+ arrowBottomPosition = '50%';
17
+ arrowLeftPosition = undefined;
18
+ arrowRightPosition = undefined;
19
+ arrowClass = undefined;
20
+ below = false;
21
+ before = false;
22
+ menuClosed = new EventEmitter();
23
+ menuOpened = new EventEmitter();
24
+ trigger;
25
+ hostStyleTop = '';
26
+ hostStyleBorderRadius = '';
27
+ hostStyleLeft = '';
28
+ hostStyleZIndex = 0;
29
+ hostStyleTransition = '';
30
+ hostStyleWidth = '';
31
+ hostStyleMaxWidth = '';
32
+ hostStylePointerEvents = '';
33
+ hostClassShow = false;
34
+ hostClassShadow = false;
35
+ hostClassLight = false;
36
+ viewInit = false;
37
+ _show = false;
38
+ get show() {
39
+ return this._show;
40
+ }
41
+ set show(value) {
42
+ if (value) {
43
+ this.setPosition();
44
+ }
45
+ this._show = value;
46
+ }
47
+ set close(value) {
48
+ if (value) {
49
+ setTimeout(() => {
50
+ this.trigger.closeMenu();
51
+ }, 100);
52
+ }
53
+ }
54
+ menuOpen = false;
55
+ get arrow() {
56
+ return this.data.options.arrow && this.border;
57
+ }
58
+ get arrowOffset() {
59
+ return this.data.options.arrowOffset;
60
+ }
61
+ get arrowPosition() {
62
+ return this.data.options.arrowPosition;
63
+ }
64
+ get autoPlacement() {
65
+ return this.data.options.autoPlacement;
66
+ }
67
+ get background() {
68
+ return this.data.options.apPopmenuBackground;
69
+ }
70
+ get border() {
71
+ return this.data.options.apPopmenuBorder;
72
+ }
73
+ get element() {
74
+ return this.data.element;
75
+ }
76
+ get elementPosition() {
77
+ return this.data.elementPosition;
78
+ }
79
+ get hasBackdrop() {
80
+ return this.data.options.hasBackdrop;
81
+ }
82
+ get backdropClass() {
83
+ return this.data.options.backdropClass;
84
+ }
85
+ get isThemeLight() {
86
+ return this.options['theme'] === 'light';
87
+ }
88
+ get options() {
89
+ return this.data.options;
90
+ }
91
+ get panelClass() {
92
+ return this.data.options.panelClass;
93
+ }
94
+ get placement() {
95
+ return this.data.options.placement;
96
+ }
97
+ get rounded() {
98
+ return this.data.options.rounded;
99
+ }
100
+ get shadow() {
101
+ return this.data.options.shadow;
102
+ }
103
+ get tooltipOffset() {
104
+ return Number(this.data.options.offset);
105
+ }
106
+ get offsetSkidding() {
107
+ return Number(this.data.options.offsets.skidding) || 0;
108
+ }
109
+ get offsetDistance() {
110
+ return Number(this.data.options.offsets.distance || 0);
111
+ }
112
+ get value() {
113
+ return this.data.value;
114
+ }
115
+ constructor(renderer, elementRef, changeDetectorRef) {
116
+ this.renderer = renderer;
117
+ this.elementRef = elementRef;
118
+ this.changeDetectorRef = changeDetectorRef;
119
+ }
120
+ ngAfterViewInit() {
121
+ this.viewInit = true;
122
+ merge(this.trigger.menuOpened, this.trigger.menuClosed).subscribe(() => {
123
+ this.menuOpen = this.trigger.menuOpen;
124
+ });
125
+ }
126
+ onMenuClosed() {
127
+ // we set a timeout to wait for the menu to be really closed
128
+ setTimeout(() => this.menuClosed.emit(), 200);
129
+ }
130
+ onMenuOpened() {
131
+ // we set a timeout to wait for the menu to be really opened
132
+ setTimeout(() => this.menuOpened.emit(), 100);
133
+ }
134
+ setHostStyle(placement) {
135
+ const tooltip = this.elementRef.nativeElement;
136
+ const isCustomPosition = !this.elementPosition.x;
137
+ let elementHeight = !this.element.offsetHeight ? this.element.getBoundingClientRect().height : this.element.offsetHeight;
138
+ let elementWidth = !this.element.offsetWidth ? this.element.getBoundingClientRect().width : this.element.offsetWidth;
139
+ const tooltipHeight = tooltip.clientHeight;
140
+ const tooltipWidth = tooltip.clientWidth;
141
+ const scrollY = window.pageYOffset;
142
+ let topStyle;
143
+ let leftStyle;
144
+ if (isCustomPosition) {
145
+ if (placement && placement.split(' ')[0] === 'top') {
146
+ this.below = false;
147
+ }
148
+ if (placement && placement.split(' ')[0] === 'bottom') {
149
+ this.below = true;
150
+ }
151
+ elementHeight = 0;
152
+ elementWidth = 0;
153
+ topStyle = this.elementPosition.top;
154
+ leftStyle = this.elementPosition.left;
155
+ if (this.arrow && this.arrowPosition) {
156
+ this.arrowClass = 'arrow-' + this.arrowPosition;
157
+ switch (this.arrowPosition) {
158
+ case 'left':
159
+ case 'right':
160
+ this.arrowLeftPosition = undefined;
161
+ this.arrowRightPosition = undefined;
162
+ this.arrowBottomPosition = 'auto';
163
+ this.arrowTopPosition = this.arrowOffset + '%';
164
+ break;
165
+ case 'top':
166
+ case 'bottom':
167
+ this.arrowLeftPosition = this.arrowOffset + '%';
168
+ this.arrowRightPosition = 'auto';
169
+ this.arrowBottomPosition = undefined;
170
+ this.arrowTopPosition = undefined;
171
+ break;
172
+ }
173
+ }
174
+ }
175
+ else {
176
+ if (placement.split(' ')[0] === 'top') {
177
+ this.below = false;
178
+ topStyle = this.elementPosition.top - this.tooltipOffset - this.offsetDistance;
179
+ topStyle += 8;
180
+ }
181
+ if (placement.split(' ')[0] === 'bottom') {
182
+ this.below = true;
183
+ topStyle = this.elementPosition.bottom + this.tooltipOffset + this.offsetDistance;
184
+ // We remove 8px due to the margin-top we put to display the arrow.
185
+ topStyle -= 8;
186
+ }
187
+ if (placement.split(' ')[0] === 'left') {
188
+ leftStyle = this.elementPosition.left - tooltipWidth - this.tooltipOffset - this.offsetDistance;
189
+ }
190
+ if (placement.split(' ')[0] === 'right') {
191
+ leftStyle = this.elementPosition.left + elementWidth + this.tooltipOffset + this.offsetDistance;
192
+ }
193
+ if (placement.split(' ')[0] === 'left' || placement.split(' ')[0] === 'right') {
194
+ topStyle = this.elementPosition.top + scrollY + elementHeight / 2 - tooltip.clientHeight / 2;
195
+ }
196
+ if (placement === 'right bottom') {
197
+ this.below = true;
198
+ this.before = false;
199
+ this.arrowClass = 'arrow-left';
200
+ topStyle = this.elementPosition.top + scrollY + this.offsetSkidding;
201
+ this.arrowRightPosition = undefined;
202
+ this.arrowLeftPosition = undefined;
203
+ this.arrowBottomPosition = 'auto';
204
+ this.arrowTopPosition = this.arrowOffset ? this.arrowOffset + '%' : elementHeight / 2 + 'px';
205
+ }
206
+ if (placement === 'left bottom') {
207
+ this.below = true;
208
+ this.before = true;
209
+ this.arrowClass = 'arrow-right';
210
+ topStyle = this.elementPosition.top + scrollY + this.offsetSkidding;
211
+ this.arrowLeftPosition = undefined;
212
+ this.arrowRightPosition = undefined;
213
+ this.arrowBottomPosition = 'auto';
214
+ this.arrowTopPosition = this.arrowOffset ? this.arrowOffset + '%' : elementHeight / 2 + 'px';
215
+ }
216
+ if (placement === 'right top') {
217
+ this.below = false;
218
+ this.before = false;
219
+ this.arrowClass = 'arrow-left';
220
+ topStyle = this.elementPosition.top + elementHeight + scrollY + this.offsetSkidding;
221
+ this.arrowLeftPosition = undefined;
222
+ this.arrowRightPosition = undefined;
223
+ this.arrowTopPosition = 'auto';
224
+ this.arrowBottomPosition = this.arrowOffset ? this.arrowOffset + '%' : -(tooltip.clientHeight - elementHeight / 2) + 'px';
225
+ }
226
+ if (placement === 'left top') {
227
+ this.below = false;
228
+ this.before = true;
229
+ this.arrowClass = 'arrow-right';
230
+ topStyle = this.elementPosition.top + elementHeight + scrollY + this.offsetSkidding;
231
+ this.arrowRightPosition = undefined;
232
+ this.arrowLeftPosition = undefined;
233
+ this.arrowTopPosition = 'auto';
234
+ this.arrowBottomPosition = this.arrowOffset ? this.arrowOffset + '%' : -(tooltip.clientHeight - elementHeight / 2) + 'px';
235
+ }
236
+ if (placement === 'bottom right') {
237
+ this.before = false;
238
+ this.below = true;
239
+ this.arrowClass = 'arrow-top';
240
+ leftStyle = this.elementPosition.left + this.offsetSkidding;
241
+ this.arrowTopPosition = undefined;
242
+ this.arrowRightPosition = 'auto';
243
+ this.arrowLeftPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 4.5 + 'px';
244
+ }
245
+ if (placement === 'bottom left') {
246
+ this.before = true;
247
+ this.below = true;
248
+ this.arrowClass = 'arrow-top';
249
+ leftStyle = this.elementPosition.right + this.offsetSkidding;
250
+ this.arrowTopPosition = undefined;
251
+ this.arrowLeftPosition = 'auto';
252
+ this.arrowRightPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 2.5 + 'px';
253
+ }
254
+ if (placement === 'top right') {
255
+ this.before = false;
256
+ this.below = false;
257
+ this.arrowClass = 'arrow-bottom';
258
+ leftStyle = this.elementPosition.left + this.offsetSkidding;
259
+ this.arrowBottomPosition = undefined;
260
+ this.arrowTopPosition = undefined;
261
+ this.arrowRightPosition = 'auto';
262
+ this.arrowLeftPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 4.5 + 'px';
263
+ }
264
+ if (placement === 'top left') {
265
+ this.before = true;
266
+ this.below = false;
267
+ this.arrowClass = 'arrow-bottom';
268
+ leftStyle = this.elementPosition.right + this.offsetSkidding;
269
+ this.arrowBottomPosition = undefined;
270
+ this.arrowTopPosition = undefined;
271
+ this.arrowLeftPosition = 'auto';
272
+ this.arrowRightPosition = this.arrowOffset ? this.arrowOffset + '%' : elementWidth / 2 - 2.5 + 'px';
273
+ }
274
+ }
275
+ // This line is PURE MAGIC and super important. It allows to force mat-menu
276
+ // to reposition the menu with the new xPosition / yPosition.
277
+ this.changeDetectorRef.detectChanges();
278
+ const topEdge = topStyle;
279
+ const bottomEdge = topStyle + tooltipHeight;
280
+ const leftEdge = leftStyle;
281
+ const rightEdge = leftStyle + tooltipWidth;
282
+ if ((topEdge < 0 || bottomEdge > document.body.clientHeight || leftEdge < 0 || rightEdge > document.body.clientWidth) &&
283
+ this.autoPlacement) {
284
+ return false;
285
+ }
286
+ this.hostStyleTop = topStyle + 'px';
287
+ this.hostStyleLeft = leftStyle + 'px';
288
+ return true;
289
+ }
290
+ setPlacementClass(placement) {
291
+ this.renderer.addClass(this.elementRef.nativeElement, 'tooltip-' + (placement ? placement.split(' ')[0] : placement));
292
+ this.renderer.addClass(this.elementRef.nativeElement, 'yPosition-' + (placement && placement.split(' ').length === 2 ? placement.split(' ')[1] : 'center'));
293
+ if (this.elementRef.nativeElement.children && this.elementRef.nativeElement.children.length > 1) {
294
+ const tooltipArrow = Array.from(this.elementRef.nativeElement.children).filter((child) => child.getAttribute('id') === 'tooltipArrow');
295
+ if (tooltipArrow && tooltipArrow.length === 1) {
296
+ if (placement && placement.split(' ').length === 2 && placement.split(' ')[1] === 'bottom') {
297
+ this.renderer.setStyle(tooltipArrow[0], 'top', this.arrowTopPosition);
298
+ }
299
+ else if (placement && placement.split(' ').length === 2 && placement.split(' ')[1] === 'top') {
300
+ this.renderer.setStyle(tooltipArrow[0], 'top', this.arrowBottomPosition);
301
+ }
302
+ }
303
+ }
304
+ }
305
+ setPosition() {
306
+ if (this.setHostStyle(this.placement)) {
307
+ this.setPlacementClass(this.placement);
308
+ if (this.viewInit) {
309
+ // We did this in order to reset overlayRef (multi web component needed with matmenu and cdk overlay)
310
+ if (this.trigger['_overlayRef']) {
311
+ this.trigger['_overlayRef'].dispose();
312
+ this.trigger['_overlayRef'] = null;
313
+ }
314
+ this.trigger.openMenu();
315
+ }
316
+ return;
317
+ }
318
+ else {
319
+ const placements = ['top', 'right', 'bottom', 'left'];
320
+ for (const placement of placements) {
321
+ if (this.setHostStyle(placement)) {
322
+ this.setPlacementClass(placement);
323
+ if (this.viewInit) {
324
+ this.trigger.openMenu();
325
+ }
326
+ return;
327
+ }
328
+ }
329
+ }
330
+ }
331
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
332
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: PopmenuComponent, isStandalone: true, selector: "ap-popmenu", inputs: { data: "data", show: "show", close: "close" }, outputs: { menuClosed: "menuClosed", menuOpened: "menuOpened" }, host: { properties: { "style.top": "this.hostStyleTop", "style.border-radius": "this.hostStyleBorderRadius", "style.left": "this.hostStyleLeft", "style.z-index": "this.hostStyleZIndex", "style.transition": "this.hostStyleTransition", "style.width": "this.hostStyleWidth", "style.max-width": "this.hostStyleMaxWidth", "style.pointer-events": "this.hostStylePointerEvents", "class.tooltip-show": "this.hostClassShow", "class.tooltip-shadow": "this.hostClassShadow", "class.tooltip-light": "this.hostClassLight" } }, viewQueries: [{ propertyName: "trigger", first: true, predicate: MatMenuTrigger, descendants: true }], ngImport: i0, template: "<button\n id=\"menuTrigger\"\n class=\"button-trigger\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n (menuClosed)=\"onMenuClosed()\"\n (menuOpened)=\"onMenuOpened()\"></button>\n<mat-menu\n #menu=\"matMenu\"\n [yPosition]=\"!below ? 'above' : 'below'\"\n [xPosition]=\"!before ? 'after' : 'before'\"\n [overlapTrigger]=\"false\"\n [hasBackdrop]=\"hasBackdrop\"\n [backdropClass]=\"backdropClass\"\n class=\"pop-menu {{ arrow ? 'arrow-before ' + arrowClass : '' }} {{ shadow ? 'shadow' : '' }} {{\n border ? '' : shadow ? 'shadow-no-border' : ''\n }} {{ rounded ? 'rounded-component' : '' }} {{ background ? '' : 'no-background' }} {{ panelClass }}\">\n @if (arrow) {\n <div\n class=\"{{ arrow ? 'arrow-before ' + arrowClass : '' }}\"\n [ngStyle]=\"{ left: arrowLeftPosition, right: arrowRightPosition, top: arrowTopPosition, bottom: arrowBottomPosition }\"></div>\n }\n <div\n class=\"{{ rounded ? 'rounded-component' : '' }} outline-none\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"{{ border ? 'popover-content ' : '' }} {{ rounded ? 'rounded-component' : '' }}\">\n <ng-container *ngTemplateOutlet=\"value; context: { menu: this }\" />\n </div>\n </div>\n</mat-menu>\n", styles: ["[color=facebook]{color:#0866ff}[bgcolor=facebook],[hcolor=facebook]:hover{background-color:#0866ff}[border=facebook]{border:1px solid #0866ff}[color=google]{color:#4e85e8}[bgcolor=google],[hcolor=google]:hover{background-color:#4e85e8}[border=google]{border:1px solid #4e85e8}[color=instagram]{color:#e1306c}[bgcolor=instagram],[hcolor=instagram]:hover{background-color:#e1306c}[border=instagram]{border:1px solid #e1306c}[color=instagrammagenta]{color:#c13584}[bgcolor=instagrammagenta],[hcolor=instagrammagenta]:hover{background-color:#c13584}[border=instagrammagenta]{border:1px solid #c13584}[color=instagramblue]{color:#5851db}[bgcolor=instagramblue],[hcolor=instagramblue]:hover{background-color:#5851db}[border=instagramblue]{border:1px solid #5851db}[color=instagrampurple]{color:#833ab4}[bgcolor=instagrampurple],[hcolor=instagrampurple]:hover{background-color:#833ab4}[border=instagrampurple]{border:1px solid #833ab4}[color=instagramorange]{color:#f56040}[bgcolor=instagramorange],[hcolor=instagramorange]:hover{background-color:#f56040}[border=instagramorange]{border:1px solid #f56040}[color=instagramyellow]{color:#ffdc80}[bgcolor=instagramyellow],[hcolor=instagramyellow]:hover{background-color:#ffdc80}[border=instagramyellow]{border:1px solid #ffdc80}[color=linkedin]{color:#2c67bc}[bgcolor=linkedin],[hcolor=linkedin]:hover{background-color:#2c67bc}[border=linkedin]{border:1px solid #2c67bc}[color=twitter]{color:#55acee}[bgcolor=twitter],[hcolor=twitter]:hover{background-color:#55acee}[border=twitter]{border:1px solid #55acee}[color=youtube]{color:red}[bgcolor=youtube],[hcolor=youtube]:hover{background-color:red}[border=youtube]{border:1px solid #ff0000}[color=blood-orange]{color:#ff4d00}[bgcolor=blood-orange],[hcolor=blood-orange]:hover{background-color:#ff4d00}[border=blood-orange]{border:1px solid #ff4d00}[color=pinkish-orange]{color:#ff7b49}[bgcolor=pinkish-orange],[hcolor=pinkish-orange]:hover{background-color:#ff7b49}[border=pinkish-orange]{border:1px solid #ff7b49}[color=charcoal-grey]{color:#2a2f34}[bgcolor=charcoal-grey],[hcolor=charcoal-grey]:hover{background-color:#2a2f34}[border=charcoal-grey]{border:1px solid #2a2f34}[color=azure]{color:#00aeef}[bgcolor=azure],[hcolor=azure]:hover{background-color:#00aeef}[border=azure]{border:1px solid #00aeef}[color=light-azure]{color:#eaf5fd}[bgcolor=light-azure],[hcolor=light-azure]:hover{background-color:#eaf5fd}[border=light-azure]{border:1px solid #eaf5fd}[color=blue-grey]{color:#8d98a9}[bgcolor=blue-grey],[hcolor=blue-grey]:hover{background-color:#8d98a9}[border=blue-grey]{border:1px solid #8d98a9}[color=silver]{color:#ced0da}[bgcolor=silver],[hcolor=silver]:hover{background-color:#ced0da}[border=silver]{border:1px solid #ced0da}[color=pale-grey]{color:#dfe3e9}[bgcolor=pale-grey],[hcolor=pale-grey]:hover{background-color:#dfe3e9}[border=pale-grey]{border:1px solid #dfe3e9}[color=grey-white]{color:#f5f7f8}[bgcolor=grey-white],[hcolor=grey-white]:hover{background-color:#f5f7f8}[border=grey-white]{border:1px solid #f5f7f8}[color=cool-grey]{color:#b4bbc6}[bgcolor=cool-grey],[hcolor=cool-grey]:hover{background-color:#b4bbc6}[border=cool-grey]{border:1px solid #b4bbc6}[color=black]{color:#344563}[bgcolor=black],[hcolor=black]:hover{background-color:#344563}[border=black]{border:1px solid #344563}[color=grey-blue]{color:#68768c}[bgcolor=grey-blue],[hcolor=grey-blue]:hover{background-color:#68768c}[border=grey-blue]{border:1px solid #68768c}[color=strawberry]{color:#f4282d}[bgcolor=strawberry],[hcolor=strawberry]:hover{background-color:#f4282d}[border=strawberry]{border:1px solid #f4282d}[color=light-strawberry]{color:#f8eded}[bgcolor=light-strawberry],[hcolor=light-strawberry]:hover{background-color:#f8eded}[border=light-strawberry]{border:1px solid #f8eded}[color=white]{color:#fff}[bgcolor=white],[hcolor=white]:hover{background-color:#fff}[border=white]{border:1px solid #ffffff}[color=cool-green]{color:#33c15d}[bgcolor=cool-green],[hcolor=cool-green]:hover{background-color:#33c15d}[border=cool-green]{border:1px solid #33c15d}[color=light-green]{color:#ebfaef}[bgcolor=light-green],[hcolor=light-green]:hover{background-color:#ebfaef}[border=light-green]{border:1px solid #ebfaef}[color=transparent]{color:transparent}[bgcolor=transparent],[hcolor=transparent]:hover{background-color:transparent}[border=transparent]{border:1px solid transparent}[color=c0]{color:#a566a5}[bgcolor=c0],[hcolor=c0]:hover{background-color:#a566a5}[border=c0]{border:1px solid #a566a5}[color=c1]{color:#c7ab82}[bgcolor=c1],[hcolor=c1]:hover{background-color:#c7ab82}[border=c1]{border:1px solid #c7ab82}[color=c2]{color:#f2713c}[bgcolor=c2],[hcolor=c2]:hover{background-color:#f2713c}[border=c2]{border:1px solid #f2713c}[color=c3]{color:#ffd006}[bgcolor=c3],[hcolor=c3]:hover{background-color:#ffd006}[border=c3]{border:1px solid #ffd006}[color=c4]{color:#94c5aa}[bgcolor=c4],[hcolor=c4]:hover{background-color:#94c5aa}[border=c4]{border:1px solid #94c5aa}[color=c5]{color:#2a9d8f}[bgcolor=c5],[hcolor=c5]:hover{background-color:#2a9d8f}[border=c5]{border:1px solid #2a9d8f}[color=c6]{color:#78acd8}[bgcolor=c6],[hcolor=c6]:hover{background-color:#78acd8}[border=c6]{border:1px solid #78acd8}[color=c7]{color:#525a9e}[bgcolor=c7],[hcolor=c7]:hover{background-color:#525a9e}[border=c7]{border:1px solid #525a9e}[color=c8]{color:#6a2459}[bgcolor=c8],[hcolor=c8]:hover{background-color:#6a2459}[border=c8]{border:1px solid #6a2459}[color=c9]{color:#74729e}[bgcolor=c9],[hcolor=c9]:hover{background-color:#74729e}[border=c9]{border:1px solid #74729e}.mat-mdc-menu-content{padding:0}.mat-mdc-menu-item{height:inherit;width:inherit;background-color:#fff;padding:0;cursor:default;box-shadow:0 4px 10px #0000001c}.mat-mdc-menu-item:hover{background-color:#fff!important;cursor:default;box-shadow:none!important}.outline-none{outline:none}.mat-mdc-menu-item:hover:not([disabled]),.mat-mdc-menu-item.cdk-program-focused:not([disabled]),.mat-mdc-menu-item.cdk-keyboard-focused:not([disabled]),.mat-mdc-menu-item-highlighted:not([disabled]){background-color:#fff!important;cursor:default;box-shadow:none!important}:host ::ng-deep .mat-mdc-button{max-width:1px;max-height:1px;min-width:1px;min-height:1px;padding:0;margin:0}:host{position:absolute;max-width:1px;max-height:1px;display:flex}.button-trigger{padding:0;border:none;height:1px;width:1px}::ng-deep .no-background .rounded-component{position:fixed}.popover-content{border:1px solid #dfe3e9}\n"], dependencies: [{ kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
333
+ }
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuComponent, decorators: [{
335
+ type: Component,
336
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'ap-popmenu', standalone: true, imports: [ButtonComponent, MatMenuModule, NgStyle, NgTemplateOutlet], template: "<button\n id=\"menuTrigger\"\n class=\"button-trigger\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n (menuClosed)=\"onMenuClosed()\"\n (menuOpened)=\"onMenuOpened()\"></button>\n<mat-menu\n #menu=\"matMenu\"\n [yPosition]=\"!below ? 'above' : 'below'\"\n [xPosition]=\"!before ? 'after' : 'before'\"\n [overlapTrigger]=\"false\"\n [hasBackdrop]=\"hasBackdrop\"\n [backdropClass]=\"backdropClass\"\n class=\"pop-menu {{ arrow ? 'arrow-before ' + arrowClass : '' }} {{ shadow ? 'shadow' : '' }} {{\n border ? '' : shadow ? 'shadow-no-border' : ''\n }} {{ rounded ? 'rounded-component' : '' }} {{ background ? '' : 'no-background' }} {{ panelClass }}\">\n @if (arrow) {\n <div\n class=\"{{ arrow ? 'arrow-before ' + arrowClass : '' }}\"\n [ngStyle]=\"{ left: arrowLeftPosition, right: arrowRightPosition, top: arrowTopPosition, bottom: arrowBottomPosition }\"></div>\n }\n <div\n class=\"{{ rounded ? 'rounded-component' : '' }} outline-none\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"{{ border ? 'popover-content ' : '' }} {{ rounded ? 'rounded-component' : '' }}\">\n <ng-container *ngTemplateOutlet=\"value; context: { menu: this }\" />\n </div>\n </div>\n</mat-menu>\n", styles: ["[color=facebook]{color:#0866ff}[bgcolor=facebook],[hcolor=facebook]:hover{background-color:#0866ff}[border=facebook]{border:1px solid #0866ff}[color=google]{color:#4e85e8}[bgcolor=google],[hcolor=google]:hover{background-color:#4e85e8}[border=google]{border:1px solid #4e85e8}[color=instagram]{color:#e1306c}[bgcolor=instagram],[hcolor=instagram]:hover{background-color:#e1306c}[border=instagram]{border:1px solid #e1306c}[color=instagrammagenta]{color:#c13584}[bgcolor=instagrammagenta],[hcolor=instagrammagenta]:hover{background-color:#c13584}[border=instagrammagenta]{border:1px solid #c13584}[color=instagramblue]{color:#5851db}[bgcolor=instagramblue],[hcolor=instagramblue]:hover{background-color:#5851db}[border=instagramblue]{border:1px solid #5851db}[color=instagrampurple]{color:#833ab4}[bgcolor=instagrampurple],[hcolor=instagrampurple]:hover{background-color:#833ab4}[border=instagrampurple]{border:1px solid #833ab4}[color=instagramorange]{color:#f56040}[bgcolor=instagramorange],[hcolor=instagramorange]:hover{background-color:#f56040}[border=instagramorange]{border:1px solid #f56040}[color=instagramyellow]{color:#ffdc80}[bgcolor=instagramyellow],[hcolor=instagramyellow]:hover{background-color:#ffdc80}[border=instagramyellow]{border:1px solid #ffdc80}[color=linkedin]{color:#2c67bc}[bgcolor=linkedin],[hcolor=linkedin]:hover{background-color:#2c67bc}[border=linkedin]{border:1px solid #2c67bc}[color=twitter]{color:#55acee}[bgcolor=twitter],[hcolor=twitter]:hover{background-color:#55acee}[border=twitter]{border:1px solid #55acee}[color=youtube]{color:red}[bgcolor=youtube],[hcolor=youtube]:hover{background-color:red}[border=youtube]{border:1px solid #ff0000}[color=blood-orange]{color:#ff4d00}[bgcolor=blood-orange],[hcolor=blood-orange]:hover{background-color:#ff4d00}[border=blood-orange]{border:1px solid #ff4d00}[color=pinkish-orange]{color:#ff7b49}[bgcolor=pinkish-orange],[hcolor=pinkish-orange]:hover{background-color:#ff7b49}[border=pinkish-orange]{border:1px solid #ff7b49}[color=charcoal-grey]{color:#2a2f34}[bgcolor=charcoal-grey],[hcolor=charcoal-grey]:hover{background-color:#2a2f34}[border=charcoal-grey]{border:1px solid #2a2f34}[color=azure]{color:#00aeef}[bgcolor=azure],[hcolor=azure]:hover{background-color:#00aeef}[border=azure]{border:1px solid #00aeef}[color=light-azure]{color:#eaf5fd}[bgcolor=light-azure],[hcolor=light-azure]:hover{background-color:#eaf5fd}[border=light-azure]{border:1px solid #eaf5fd}[color=blue-grey]{color:#8d98a9}[bgcolor=blue-grey],[hcolor=blue-grey]:hover{background-color:#8d98a9}[border=blue-grey]{border:1px solid #8d98a9}[color=silver]{color:#ced0da}[bgcolor=silver],[hcolor=silver]:hover{background-color:#ced0da}[border=silver]{border:1px solid #ced0da}[color=pale-grey]{color:#dfe3e9}[bgcolor=pale-grey],[hcolor=pale-grey]:hover{background-color:#dfe3e9}[border=pale-grey]{border:1px solid #dfe3e9}[color=grey-white]{color:#f5f7f8}[bgcolor=grey-white],[hcolor=grey-white]:hover{background-color:#f5f7f8}[border=grey-white]{border:1px solid #f5f7f8}[color=cool-grey]{color:#b4bbc6}[bgcolor=cool-grey],[hcolor=cool-grey]:hover{background-color:#b4bbc6}[border=cool-grey]{border:1px solid #b4bbc6}[color=black]{color:#344563}[bgcolor=black],[hcolor=black]:hover{background-color:#344563}[border=black]{border:1px solid #344563}[color=grey-blue]{color:#68768c}[bgcolor=grey-blue],[hcolor=grey-blue]:hover{background-color:#68768c}[border=grey-blue]{border:1px solid #68768c}[color=strawberry]{color:#f4282d}[bgcolor=strawberry],[hcolor=strawberry]:hover{background-color:#f4282d}[border=strawberry]{border:1px solid #f4282d}[color=light-strawberry]{color:#f8eded}[bgcolor=light-strawberry],[hcolor=light-strawberry]:hover{background-color:#f8eded}[border=light-strawberry]{border:1px solid #f8eded}[color=white]{color:#fff}[bgcolor=white],[hcolor=white]:hover{background-color:#fff}[border=white]{border:1px solid #ffffff}[color=cool-green]{color:#33c15d}[bgcolor=cool-green],[hcolor=cool-green]:hover{background-color:#33c15d}[border=cool-green]{border:1px solid #33c15d}[color=light-green]{color:#ebfaef}[bgcolor=light-green],[hcolor=light-green]:hover{background-color:#ebfaef}[border=light-green]{border:1px solid #ebfaef}[color=transparent]{color:transparent}[bgcolor=transparent],[hcolor=transparent]:hover{background-color:transparent}[border=transparent]{border:1px solid transparent}[color=c0]{color:#a566a5}[bgcolor=c0],[hcolor=c0]:hover{background-color:#a566a5}[border=c0]{border:1px solid #a566a5}[color=c1]{color:#c7ab82}[bgcolor=c1],[hcolor=c1]:hover{background-color:#c7ab82}[border=c1]{border:1px solid #c7ab82}[color=c2]{color:#f2713c}[bgcolor=c2],[hcolor=c2]:hover{background-color:#f2713c}[border=c2]{border:1px solid #f2713c}[color=c3]{color:#ffd006}[bgcolor=c3],[hcolor=c3]:hover{background-color:#ffd006}[border=c3]{border:1px solid #ffd006}[color=c4]{color:#94c5aa}[bgcolor=c4],[hcolor=c4]:hover{background-color:#94c5aa}[border=c4]{border:1px solid #94c5aa}[color=c5]{color:#2a9d8f}[bgcolor=c5],[hcolor=c5]:hover{background-color:#2a9d8f}[border=c5]{border:1px solid #2a9d8f}[color=c6]{color:#78acd8}[bgcolor=c6],[hcolor=c6]:hover{background-color:#78acd8}[border=c6]{border:1px solid #78acd8}[color=c7]{color:#525a9e}[bgcolor=c7],[hcolor=c7]:hover{background-color:#525a9e}[border=c7]{border:1px solid #525a9e}[color=c8]{color:#6a2459}[bgcolor=c8],[hcolor=c8]:hover{background-color:#6a2459}[border=c8]{border:1px solid #6a2459}[color=c9]{color:#74729e}[bgcolor=c9],[hcolor=c9]:hover{background-color:#74729e}[border=c9]{border:1px solid #74729e}.mat-mdc-menu-content{padding:0}.mat-mdc-menu-item{height:inherit;width:inherit;background-color:#fff;padding:0;cursor:default;box-shadow:0 4px 10px #0000001c}.mat-mdc-menu-item:hover{background-color:#fff!important;cursor:default;box-shadow:none!important}.outline-none{outline:none}.mat-mdc-menu-item:hover:not([disabled]),.mat-mdc-menu-item.cdk-program-focused:not([disabled]),.mat-mdc-menu-item.cdk-keyboard-focused:not([disabled]),.mat-mdc-menu-item-highlighted:not([disabled]){background-color:#fff!important;cursor:default;box-shadow:none!important}:host ::ng-deep .mat-mdc-button{max-width:1px;max-height:1px;min-width:1px;min-height:1px;padding:0;margin:0}:host{position:absolute;max-width:1px;max-height:1px;display:flex}.button-trigger{padding:0;border:none;height:1px;width:1px}::ng-deep .no-background .rounded-component{position:fixed}.popover-content{border:1px solid #dfe3e9}\n"] }]
337
+ }], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { data: [{
338
+ type: Input
339
+ }], menuClosed: [{
340
+ type: Output
341
+ }], menuOpened: [{
342
+ type: Output
343
+ }], trigger: [{
344
+ type: ViewChild,
345
+ args: [MatMenuTrigger]
346
+ }], hostStyleTop: [{
347
+ type: HostBinding,
348
+ args: ['style.top']
349
+ }], hostStyleBorderRadius: [{
350
+ type: HostBinding,
351
+ args: ['style.border-radius']
352
+ }], hostStyleLeft: [{
353
+ type: HostBinding,
354
+ args: ['style.left']
355
+ }], hostStyleZIndex: [{
356
+ type: HostBinding,
357
+ args: ['style.z-index']
358
+ }], hostStyleTransition: [{
359
+ type: HostBinding,
360
+ args: ['style.transition']
361
+ }], hostStyleWidth: [{
362
+ type: HostBinding,
363
+ args: ['style.width']
364
+ }], hostStyleMaxWidth: [{
365
+ type: HostBinding,
366
+ args: ['style.max-width']
367
+ }], hostStylePointerEvents: [{
368
+ type: HostBinding,
369
+ args: ['style.pointer-events']
370
+ }], hostClassShow: [{
371
+ type: HostBinding,
372
+ args: ['class.tooltip-show']
373
+ }], hostClassShadow: [{
374
+ type: HostBinding,
375
+ args: ['class.tooltip-shadow']
376
+ }], hostClassLight: [{
377
+ type: HostBinding,
378
+ args: ['class.tooltip-light']
379
+ }], show: [{
380
+ type: Input
381
+ }], close: [{
382
+ type: Input
383
+ }] } });
384
+
385
+ const defaultOptions = {
386
+ apPopmenuBorder: true,
387
+ apPopmenuDisabled: false,
388
+ apPopmenuBackground: true,
389
+ hasBackdrop: true,
390
+ placement: 'top',
391
+ rounded: true,
392
+ showDelay: 0,
393
+ hideDelay: 10,
394
+ hideDelayMobile: 0,
395
+ shadow: true,
396
+ theme: 'dark',
397
+ offset: 8,
398
+ offsets: {},
399
+ maxWidth: '600',
400
+ };
401
+
402
+ /**
403
+ * This is not a real service, but it looks like it from the outside.
404
+ * It's just an InjectionToken used to import the config (initOptions) object, provided from the outside
405
+ */
406
+ const PopmenuOptionsService = new InjectionToken('PopmenuOptions');
407
+
408
+ class PopmenuDirective {
409
+ initOptions;
410
+ renderer;
411
+ elementRef;
412
+ componentFactoryResolver;
413
+ appRef;
414
+ injector;
415
+ apPopmenuBorder = false;
416
+ apPopmenuDisabled = false;
417
+ apPopmenuBackground = true;
418
+ arrow = false;
419
+ arrowOffset;
420
+ arrowPosition;
421
+ close = false;
422
+ hasBackdrop = true;
423
+ backdropClass = '';
424
+ panelClass;
425
+ offset;
426
+ offsets;
427
+ placement = 'bottom';
428
+ pointer = true;
429
+ popMenuValue;
430
+ position;
431
+ rounded = false;
432
+ shadow = false;
433
+ menuClosed = new EventEmitter();
434
+ menuOpened = new EventEmitter();
435
+ componentElement;
436
+ hideTimeoutId;
437
+ destroyTimeoutId;
438
+ createTimeoutId;
439
+ showTimeoutId;
440
+ componentRef;
441
+ elementPosition;
442
+ componentSubscribe;
443
+ _defaultOptions;
444
+ _options = {};
445
+ get options() {
446
+ return this._options;
447
+ }
448
+ set options(value) {
449
+ if (value && defaultOptions) {
450
+ this._options = value;
451
+ }
452
+ }
453
+ get destroyDelay() {
454
+ return Number(this.getHideDelay()) + Number(this.options['animationDuration']);
455
+ }
456
+ get isDisplayOnHover() {
457
+ if (this.options['display'] === false) {
458
+ return false;
459
+ }
460
+ if (this.options['displayTouchscreen'] === false) {
461
+ return false;
462
+ }
463
+ if (this.options['trigger'] !== 'hover') {
464
+ return false;
465
+ }
466
+ return true;
467
+ }
468
+ get isTooltipDestroyed() {
469
+ return this.componentRef && this.componentRef.hostView.destroyed;
470
+ }
471
+ get tooltipPosition() {
472
+ if (this.options['position']) {
473
+ return this.options['position'];
474
+ }
475
+ else {
476
+ return this.elementPosition;
477
+ }
478
+ }
479
+ constructor(initOptions, renderer, elementRef, componentFactoryResolver, appRef, injector) {
480
+ this.initOptions = initOptions;
481
+ this.renderer = renderer;
482
+ this.elementRef = elementRef;
483
+ this.componentFactoryResolver = componentFactoryResolver;
484
+ this.appRef = appRef;
485
+ this.injector = injector;
486
+ }
487
+ appendComponentToBody(component) {
488
+ this.componentRef = this.componentFactoryResolver.resolveComponentFactory(component).create(this.injector);
489
+ this.componentRef.instance.data = {
490
+ value: this.popMenuValue,
491
+ element: this.elementRef.nativeElement,
492
+ elementPosition: this.tooltipPosition,
493
+ options: this.options,
494
+ };
495
+ this.appRef.attachView(this.componentRef.hostView);
496
+ this.componentElement = this.componentRef.hostView.rootNodes[0];
497
+ document.body.appendChild(this.componentElement);
498
+ this.componentSubscribe = this.componentRef.instance.menuClosed.subscribe(() => {
499
+ this.handleClose();
500
+ this.menuOpen = this.componentRef.instance.menuOpen;
501
+ });
502
+ this.componentSubscribe = this.componentRef.instance.menuOpened.subscribe(() => {
503
+ this.handleOpen();
504
+ this.menuOpen = this.componentRef.instance.menuOpen;
505
+ });
506
+ }
507
+ menuOpenChange = new EventEmitter();
508
+ #menuOpen = false;
509
+ get menuOpen() {
510
+ return this.#menuOpen;
511
+ }
512
+ set menuOpen(menuOpen) {
513
+ this.menuOpenChange.emit(menuOpen);
514
+ this.#menuOpen = menuOpen;
515
+ if (this.#menuOpen) {
516
+ this.elementRef.nativeElement.classList.add('popmenu-open');
517
+ this.elementRef.nativeElement.classList.remove('popmenu-close');
518
+ }
519
+ else {
520
+ this.elementRef.nativeElement.classList.remove('popmenu-open');
521
+ this.elementRef.nativeElement.classList.add('popmenu-close');
522
+ }
523
+ }
524
+ handleClose() {
525
+ this.menuClosed.emit();
526
+ }
527
+ handleOpen() {
528
+ this.menuOpened.emit();
529
+ }
530
+ applyOptionsDefault(defaultOptions, options) {
531
+ this.options = Object.assign({}, defaultOptions, this.initOptions || {}, options);
532
+ }
533
+ clearTimeouts() {
534
+ if (this.createTimeoutId) {
535
+ clearTimeout(this.createTimeoutId);
536
+ }
537
+ if (this.showTimeoutId) {
538
+ clearTimeout(this.showTimeoutId);
539
+ }
540
+ if (this.hideTimeoutId) {
541
+ clearTimeout(this.hideTimeoutId);
542
+ }
543
+ if (this.destroyTimeoutId) {
544
+ clearTimeout(this.destroyTimeoutId);
545
+ }
546
+ }
547
+ createPopMenu() {
548
+ this.clearTimeouts();
549
+ this.createTimeoutId = window.setTimeout(() => {
550
+ this.appendComponentToBody(PopmenuComponent);
551
+ }, this.getShowDelay());
552
+ this.showTimeoutId = window.setTimeout(() => {
553
+ this.showTooltipElem();
554
+ }, this.getShowDelay());
555
+ }
556
+ getElementPosition() {
557
+ this.elementPosition = this.elementRef.nativeElement.getBoundingClientRect();
558
+ }
559
+ getHideDelay() {
560
+ return this.options['hideDelay'];
561
+ }
562
+ getProperties(changes) {
563
+ let properties = {};
564
+ for (const prop in changes) {
565
+ if (prop !== 'options' && prop !== 'tooltipValue') {
566
+ properties[prop] = changes[prop].currentValue;
567
+ }
568
+ if (prop === 'options') {
569
+ properties = changes[prop].currentValue;
570
+ }
571
+ }
572
+ return properties;
573
+ }
574
+ getShowDelay() {
575
+ return this.options['showDelay'];
576
+ }
577
+ ngOnChanges(changes) {
578
+ if (changes.pointer) {
579
+ if (!this.pointer) {
580
+ this.renderer.removeStyle(this.elementRef.nativeElement, 'cursor');
581
+ }
582
+ else {
583
+ this.renderer.setStyle(this.elementRef.nativeElement, 'cursor', 'pointer');
584
+ }
585
+ }
586
+ if (changes.close && changes.close.currentValue) {
587
+ this.hideTooltipElem();
588
+ }
589
+ const changedOptions = this.getProperties(changes);
590
+ this.applyOptionsDefault(this.options && Object.keys(this.options).length > 0 ? this.options : defaultOptions, changedOptions);
591
+ }
592
+ ngOnInit() {
593
+ if (this.pointer) {
594
+ this.renderer.setStyle(this.elementRef.nativeElement, 'cursor', 'pointer');
595
+ }
596
+ this.menuOpen = false;
597
+ }
598
+ onClick() {
599
+ if (this.apPopmenuDisabled) {
600
+ return;
601
+ }
602
+ this.show();
603
+ this.close = false;
604
+ }
605
+ show() {
606
+ this.getElementPosition();
607
+ if (!this.componentRef || this.isTooltipDestroyed) {
608
+ this.createPopMenu();
609
+ }
610
+ else if (!this.isTooltipDestroyed) {
611
+ this.showTooltipElem();
612
+ }
613
+ }
614
+ showTooltipElem() {
615
+ this.componentRef.instance.data = {
616
+ value: this.popMenuValue,
617
+ element: this.elementRef.nativeElement,
618
+ elementPosition: this.tooltipPosition,
619
+ options: this.options,
620
+ };
621
+ this.clearTimeouts();
622
+ this.componentRef.instance.show = true;
623
+ }
624
+ hideTooltipElem() {
625
+ if (this.componentRef) {
626
+ this.componentRef.instance.close = true;
627
+ }
628
+ }
629
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuDirective, deps: [{ token: PopmenuOptionsService, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
630
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.3", type: PopmenuDirective, isStandalone: true, selector: "[apPopmenu]", inputs: { apPopmenuBorder: "apPopmenuBorder", apPopmenuDisabled: "apPopmenuDisabled", apPopmenuBackground: "apPopmenuBackground", arrow: "arrow", arrowOffset: "arrowOffset", arrowPosition: "arrowPosition", close: "close", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass", panelClass: "panelClass", offset: "offset", offsets: "offsets", placement: "placement", pointer: "pointer", popMenuValue: ["apPopmenu", "popMenuValue"], position: "position", rounded: "rounded", shadow: "shadow", options: "options", menuOpen: "menuOpen" }, outputs: { menuClosed: "menuClosed", menuOpened: "menuOpened", menuOpenChange: "menuOpenChange" }, host: { listeners: { "click": "onClick()" } }, usesOnChanges: true, ngImport: i0 });
631
+ }
632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuDirective, decorators: [{
633
+ type: Directive,
634
+ args: [{
635
+ selector: '[apPopmenu]',
636
+ standalone: true,
637
+ }]
638
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
639
+ type: Optional
640
+ }, {
641
+ type: Inject,
642
+ args: [PopmenuOptionsService]
643
+ }] }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }], propDecorators: { apPopmenuBorder: [{
644
+ type: Input
645
+ }], apPopmenuDisabled: [{
646
+ type: Input
647
+ }], apPopmenuBackground: [{
648
+ type: Input
649
+ }], arrow: [{
650
+ type: Input
651
+ }], arrowOffset: [{
652
+ type: Input
653
+ }], arrowPosition: [{
654
+ type: Input
655
+ }], close: [{
656
+ type: Input
657
+ }], hasBackdrop: [{
658
+ type: Input
659
+ }], backdropClass: [{
660
+ type: Input
661
+ }], panelClass: [{
662
+ type: Input
663
+ }], offset: [{
664
+ type: Input
665
+ }], offsets: [{
666
+ type: Input
667
+ }], placement: [{
668
+ type: Input
669
+ }], pointer: [{
670
+ type: Input
671
+ }], popMenuValue: [{
672
+ type: Input,
673
+ args: ['apPopmenu']
674
+ }], position: [{
675
+ type: Input
676
+ }], rounded: [{
677
+ type: Input
678
+ }], shadow: [{
679
+ type: Input
680
+ }], menuClosed: [{
681
+ type: Output
682
+ }], menuOpened: [{
683
+ type: Output
684
+ }], options: [{
685
+ type: Input
686
+ }], menuOpenChange: [{
687
+ type: Output
688
+ }], menuOpen: [{
689
+ type: Input
690
+ }], onClick: [{
691
+ type: HostListener,
692
+ args: ['click']
693
+ }] } });
694
+
695
+ class PopmenuModule {
696
+ static forRoot(initOptions) {
697
+ return {
698
+ ngModule: PopmenuModule,
699
+ providers: [
700
+ {
701
+ provide: PopmenuOptionsService,
702
+ useValue: initOptions,
703
+ },
704
+ ],
705
+ };
706
+ }
707
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
708
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: PopmenuModule, imports: [PopmenuDirective, PopmenuComponent], exports: [PopmenuDirective] });
709
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuModule, imports: [PopmenuComponent] });
710
+ }
711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PopmenuModule, decorators: [{
712
+ type: NgModule,
713
+ args: [{
714
+ imports: [PopmenuDirective, PopmenuComponent],
715
+ exports: [PopmenuDirective],
716
+ }]
717
+ }] });
718
+
719
+ /**
720
+ * Generated bundle index. Do not edit.
721
+ */
722
+
723
+ export { PopmenuComponent, PopmenuDirective, PopmenuModule };
724
+ //# sourceMappingURL=agorapulse-ui-components-popmenu.mjs.map