@lucca-front/ng 16.5.1 → 17.0.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 (294) hide show
  1. package/esm2022/a11y/skip-links/skip-links.component.mjs +7 -8
  2. package/esm2022/api/api.module.mjs +6 -7
  3. package/esm2022/api/select/api-select.module.mjs +6 -7
  4. package/esm2022/api/select/feeder/api-feeder.component.mjs +7 -8
  5. package/esm2022/api/select/feeder/api-feeder.module.mjs +6 -7
  6. package/esm2022/api/select/input/api-select-input.component.mjs +6 -7
  7. package/esm2022/api/select/input/api-select-input.module.mjs +6 -7
  8. package/esm2022/api/select/pager/api-pager.component.mjs +7 -8
  9. package/esm2022/api/select/pager/api-pager.module.mjs +6 -7
  10. package/esm2022/api/select/searcher/api-searcher.component.mjs +13 -15
  11. package/esm2022/api/select/searcher/api-searcher.module.mjs +6 -7
  12. package/esm2022/api/service/api-hybrid.service.mjs +6 -7
  13. package/esm2022/api/service/api-v3.service.mjs +6 -7
  14. package/esm2022/api/service/api-v4.service.mjs +6 -7
  15. package/esm2022/button/button.component.mjs +5 -6
  16. package/esm2022/callout/callout/callout.component.mjs +5 -6
  17. package/esm2022/callout/callout-disclosure/callout-disclosure.component.mjs +5 -6
  18. package/esm2022/callout/callout-feedback-item/callout-feedback-item.component.mjs +5 -6
  19. package/esm2022/callout/callout-feedback-list/callout-feedback-list.component.mjs +5 -6
  20. package/esm2022/callout/callout-popover/callout-popover.component.mjs +5 -6
  21. package/esm2022/core/date/native/native-date.adapter.mjs +7 -8
  22. package/esm2022/core/date/string/string-date.adapter.mjs +7 -8
  23. package/esm2022/core/portal/portal.directive.mjs +5 -6
  24. package/esm2022/core/tools/ng-clazz.directive.mjs +7 -7
  25. package/esm2022/core-select/displayer/displayer.directive.mjs +6 -7
  26. package/esm2022/core-select/input/select-input.component.mjs +5 -6
  27. package/esm2022/core-select/input/select-input.models.mjs +4 -4
  28. package/esm2022/core-select/option/default-option.component.mjs +5 -6
  29. package/esm2022/core-select/option/disabled.directive.mjs +5 -6
  30. package/esm2022/core-select/option/option-outlet.directive.mjs +5 -6
  31. package/esm2022/core-select/option/option.component.mjs +5 -6
  32. package/esm2022/core-select/option/option.directive.mjs +6 -7
  33. package/esm2022/date/adapter/date-adapter.module.mjs +6 -7
  34. package/esm2022/date/adapter/date-adapter.pipe.mjs +6 -7
  35. package/esm2022/date/calendar/calendar-input.component.mjs +7 -8
  36. package/esm2022/date/calendar/calendar-input.module.mjs +6 -7
  37. package/esm2022/date/calendar/calendar-item.factory.mjs +6 -7
  38. package/esm2022/date/date.module.mjs +6 -7
  39. package/esm2022/date/input/date-input.directive.mjs +6 -7
  40. package/esm2022/date/input/date-input.module.mjs +6 -7
  41. package/esm2022/date/picker/date-picker.component.mjs +6 -7
  42. package/esm2022/date/picker/date-picker.module.mjs +6 -7
  43. package/esm2022/date/select/date-select-input.component.mjs +6 -7
  44. package/esm2022/date/select/date-select-input.module.mjs +6 -7
  45. package/esm2022/department/department.module.mjs +6 -7
  46. package/esm2022/department/select/department-select.module.mjs +6 -7
  47. package/esm2022/department/select/feeder/department-feeder.component.mjs +7 -8
  48. package/esm2022/department/select/feeder/department-feeder.module.mjs +6 -7
  49. package/esm2022/department/select/input/department-select-input.component.mjs +6 -7
  50. package/esm2022/department/select/input/department-select-input.module.mjs +6 -7
  51. package/esm2022/department/service/department-v3.service.mjs +6 -7
  52. package/esm2022/dropdown/dropdown.module.mjs +6 -7
  53. package/esm2022/dropdown/item/dropdown-item.directive.mjs +6 -7
  54. package/esm2022/dropdown/item/dropdown-item.module.mjs +6 -7
  55. package/esm2022/dropdown/panel/dropdown-panel.component.mjs +6 -7
  56. package/esm2022/dropdown/panel/dropdown-panel.module.mjs +6 -7
  57. package/esm2022/dropdown/trigger/dropdown-trigger.directive.mjs +6 -7
  58. package/esm2022/dropdown/trigger/dropdown-trigger.module.mjs +6 -7
  59. package/esm2022/establishment/establishment.module.mjs +6 -7
  60. package/esm2022/establishment/select/establishment-select.module.mjs +6 -7
  61. package/esm2022/establishment/select/for-legal-units/for-legal-units.directive.mjs +6 -7
  62. package/esm2022/establishment/select/for-legal-units/for-legal-units.module.mjs +6 -7
  63. package/esm2022/establishment/select/input/establishment-select-input.component.mjs +7 -8
  64. package/esm2022/establishment/select/input/establishment-select-input.module.mjs +6 -7
  65. package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +7 -8
  66. package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.module.mjs +6 -7
  67. package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +7 -8
  68. package/esm2022/establishment/select/searcher/establishment-searcher.module.mjs +6 -7
  69. package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +7 -8
  70. package/esm2022/establishment/select/select-all/establishment-select-all.module.mjs +6 -7
  71. package/esm2022/establishment/service/establishment.service.mjs +6 -7
  72. package/esm2022/establishment/service/legal-unit.service.mjs +6 -7
  73. package/esm2022/form-field/form-field.component.mjs +5 -6
  74. package/esm2022/form-field/input.directive.mjs +5 -6
  75. package/esm2022/formly/formly.module.mjs +6 -7
  76. package/esm2022/formly/types/api.mjs +6 -6
  77. package/esm2022/formly/types/checkbox.mjs +6 -6
  78. package/esm2022/formly/types/date.mjs +6 -6
  79. package/esm2022/formly/types/department.mjs +6 -6
  80. package/esm2022/formly/types/establishment.mjs +6 -6
  81. package/esm2022/formly/types/input.mjs +6 -6
  82. package/esm2022/formly/types/qualification.mjs +6 -6
  83. package/esm2022/formly/types/radios.mjs +6 -6
  84. package/esm2022/formly/types/select.mjs +6 -6
  85. package/esm2022/formly/types/textarea.mjs +6 -6
  86. package/esm2022/formly/types/user.mjs +6 -6
  87. package/esm2022/formly/wrappers/checkbox-layout.mjs +6 -6
  88. package/esm2022/formly/wrappers/error.mjs +11 -11
  89. package/esm2022/formly/wrappers/helper.mjs +6 -6
  90. package/esm2022/formly/wrappers/icon.mjs +6 -6
  91. package/esm2022/formly/wrappers/radiosfield-layout.mjs +6 -6
  92. package/esm2022/formly/wrappers/suffix.mjs +6 -6
  93. package/esm2022/formly/wrappers/textfield-layout.mjs +6 -6
  94. package/esm2022/forms/abstract-field-component.mjs +5 -6
  95. package/esm2022/forms/checkboxfield/checkboxfield.component.mjs +5 -6
  96. package/esm2022/forms/form-field-id.directive.mjs +6 -7
  97. package/esm2022/forms/noop-value-accessor.directive.mjs +5 -6
  98. package/esm2022/forms/switchfield/switchfield.component.mjs +5 -6
  99. package/esm2022/forms/textfield/textfield.component.mjs +5 -6
  100. package/esm2022/icon/icon.component.mjs +5 -6
  101. package/esm2022/inline-message/inline-message.component.mjs +5 -6
  102. package/esm2022/input/clearer/clearer.component.mjs +5 -6
  103. package/esm2022/input/clearer/clearer.module.mjs +6 -7
  104. package/esm2022/input/displayer/input-displayer.directive.mjs +6 -7
  105. package/esm2022/input/displayer/input-displayer.module.mjs +6 -7
  106. package/esm2022/input/input.directive.mjs +6 -7
  107. package/esm2022/input/input.module.mjs +6 -7
  108. package/esm2022/modal/modal-panel.component.mjs +17 -19
  109. package/esm2022/modal/modal-ref.factory.mjs +6 -7
  110. package/esm2022/modal/modal.module.mjs +6 -7
  111. package/esm2022/modal/modal.service.mjs +5 -6
  112. package/esm2022/multi-select/displayer/default-displayer.component.mjs +5 -6
  113. package/esm2022/multi-select/displayer/displayer.directive.mjs +6 -7
  114. package/esm2022/multi-select/input/panel-ref.factory.mjs +5 -6
  115. package/esm2022/multi-select/input/select-input.component.mjs +5 -6
  116. package/esm2022/multi-select/panel/option-selected.pipe.mjs +5 -6
  117. package/esm2022/multi-select/panel/panel.component.mjs +5 -6
  118. package/esm2022/multi-select/panel/selected-chip.directive.mjs +5 -6
  119. package/esm2022/new-badge/new-badge.component.mjs +5 -6
  120. package/esm2022/number/number.module.mjs +6 -7
  121. package/esm2022/number/number.pipe.mjs +7 -8
  122. package/esm2022/numeric-badge/numeric-badge.component.mjs +5 -6
  123. package/esm2022/option/item/option-item.component.mjs +6 -7
  124. package/esm2022/option/item/option-item.module.mjs +6 -7
  125. package/esm2022/option/item/tree-option-item.component.mjs +6 -7
  126. package/esm2022/option/item/tree-option-item.module.mjs +6 -7
  127. package/esm2022/option/operator/feeder/option-feeder.component.mjs +5 -6
  128. package/esm2022/option/operator/feeder/option-feeder.module.mjs +6 -7
  129. package/esm2022/option/operator/feeder/tree-option-feeder.component.mjs +5 -6
  130. package/esm2022/option/operator/feeder/tree-option-feeder.module.mjs +6 -7
  131. package/esm2022/option/operator/for-groups/for-groups.directive.mjs +6 -7
  132. package/esm2022/option/operator/for-groups/for-groups.module.mjs +6 -7
  133. package/esm2022/option/operator/for-options/for-options.directive.mjs +6 -7
  134. package/esm2022/option/operator/for-options/for-options.module.mjs +6 -7
  135. package/esm2022/option/operator/for-options/for-tree-options.directive.mjs +5 -6
  136. package/esm2022/option/operator/for-options/for-tree-options.module.mjs +6 -7
  137. package/esm2022/option/operator/option-operator.module.mjs +6 -7
  138. package/esm2022/option/operator/pager/option-pager.component.mjs +5 -6
  139. package/esm2022/option/operator/pager/option-pager.module.mjs +6 -7
  140. package/esm2022/option/operator/pager/tree-option-pager.component.mjs +5 -6
  141. package/esm2022/option/operator/pager/tree-option-pager.module.mjs +6 -7
  142. package/esm2022/option/operator/searcher/option-searcher.component.mjs +5 -6
  143. package/esm2022/option/operator/searcher/option-searcher.module.mjs +6 -7
  144. package/esm2022/option/operator/searcher/tree-option-searcher.component.mjs +5 -6
  145. package/esm2022/option/operator/searcher/tree-option-searcher.module.mjs +6 -7
  146. package/esm2022/option/operator/tree-option-operator.module.mjs +6 -7
  147. package/esm2022/option/option.module.mjs +6 -7
  148. package/esm2022/option/picker/option-picker-advanced.component.mjs +13 -15
  149. package/esm2022/option/picker/option-picker.component.mjs +13 -15
  150. package/esm2022/option/picker/option-picker.module.mjs +6 -7
  151. package/esm2022/option/picker/tree-option-picker-advanced.component.mjs +13 -15
  152. package/esm2022/option/picker/tree-option-picker.component.mjs +13 -15
  153. package/esm2022/option/picker/tree-option-picker.module.mjs +6 -7
  154. package/esm2022/option/placeholder/option-placeholder.component.mjs +5 -6
  155. package/esm2022/option/placeholder/option-placeholder.module.mjs +6 -7
  156. package/esm2022/option/selector/all/select-all.component.mjs +5 -6
  157. package/esm2022/option/selector/all/select-all.module.mjs +6 -7
  158. package/esm2022/option/selector/all/tree-select-all.component.mjs +5 -6
  159. package/esm2022/option/selector/all/tree-select-all.module.mjs +6 -7
  160. package/esm2022/option/selector/option-selector.module.mjs +6 -7
  161. package/esm2022/option/selector/tree-option-selector.module.mjs +6 -7
  162. package/esm2022/option/tree-option.module.mjs +6 -7
  163. package/esm2022/popover/panel/popover-panel.component.mjs +6 -7
  164. package/esm2022/popover/panel/popover-panel.module.mjs +6 -7
  165. package/esm2022/popover/popover.module.mjs +6 -7
  166. package/esm2022/popover/target/popover-target.directive.mjs +6 -7
  167. package/esm2022/popover/target/popover-target.module.mjs +6 -7
  168. package/esm2022/popover/trigger/popover-trigger.directive.mjs +6 -7
  169. package/esm2022/popover/trigger/popover-trigger.module.mjs +6 -7
  170. package/esm2022/popup/popup-ref.factory.mjs +6 -7
  171. package/esm2022/popup/popup.module.mjs +6 -7
  172. package/esm2022/popup/popup.service.mjs +5 -6
  173. package/esm2022/qualification/qualification.module.mjs +6 -7
  174. package/esm2022/qualification/select/input/qualification-select-input.component.mjs +6 -7
  175. package/esm2022/qualification/select/input/qualification-select-input.module.mjs +6 -7
  176. package/esm2022/qualification/select/qualification-select.module.mjs +6 -7
  177. package/esm2022/safe-content/safe-content.module.mjs +6 -7
  178. package/esm2022/safe-content/safe-html.pipe.mjs +6 -7
  179. package/esm2022/scroll/scroll.directive.mjs +6 -7
  180. package/esm2022/scroll/scroll.module.mjs +6 -7
  181. package/esm2022/select/input/select-input.component.mjs +11 -13
  182. package/esm2022/select/input/select-input.module.mjs +6 -7
  183. package/esm2022/select/select.module.mjs +6 -7
  184. package/esm2022/sidepanel/sidepanel.module.mjs +6 -7
  185. package/esm2022/sidepanel/sidepanel.service.mjs +5 -6
  186. package/esm2022/simple-select/api/api-v3.directive.mjs +5 -6
  187. package/esm2022/simple-select/api/api-v4.directive.mjs +5 -6
  188. package/esm2022/simple-select/api/api.directive.mjs +5 -6
  189. package/esm2022/simple-select/input/panel-ref.factory.mjs +5 -6
  190. package/esm2022/simple-select/input/select-input.component.mjs +5 -6
  191. package/esm2022/simple-select/panel/panel.component.mjs +5 -6
  192. package/esm2022/title/title.module.mjs +6 -7
  193. package/esm2022/title/title.service.mjs +7 -8
  194. package/esm2022/title/title.strategy.mjs +7 -8
  195. package/esm2022/toast/toasts.component.mjs +6 -7
  196. package/esm2022/toast/toasts.module.mjs +6 -7
  197. package/esm2022/toast/toasts.service.mjs +5 -6
  198. package/esm2022/tooltip/panel/tooltip-panel.component.mjs +6 -7
  199. package/esm2022/tooltip/panel/tooltip-panel.module.mjs +6 -7
  200. package/esm2022/tooltip/tooltip.module.mjs +6 -7
  201. package/esm2022/tooltip/trigger/tooltip-trigger.directive.mjs +6 -7
  202. package/esm2022/tooltip/trigger/tooltip-trigger.module.mjs +6 -7
  203. package/esm2022/user/display/user-display.module.mjs +6 -7
  204. package/esm2022/user/display/user-display.pipe.mjs +5 -6
  205. package/esm2022/user/picture/user-picture.component.mjs +6 -7
  206. package/esm2022/user/picture/user-picture.module.mjs +6 -7
  207. package/esm2022/user/select/homonyms/user-homonyms.component.mjs +7 -8
  208. package/esm2022/user/select/homonyms/user-homonyms.module.mjs +6 -7
  209. package/esm2022/user/select/homonyms/user-homonyms.service.mjs +6 -7
  210. package/esm2022/user/select/input/user-select-input.component.mjs +6 -7
  211. package/esm2022/user/select/input/user-select-input.module.mjs +6 -7
  212. package/esm2022/user/select/me/me-option.directive.mjs +7 -8
  213. package/esm2022/user/select/me/me-option.module.mjs +6 -7
  214. package/esm2022/user/select/searcher/user-searcher.component.mjs +7 -8
  215. package/esm2022/user/select/searcher/user-searcher.module.mjs +6 -7
  216. package/esm2022/user/select/user-select.module.mjs +6 -7
  217. package/esm2022/user/service/user-v3.service.mjs +6 -7
  218. package/esm2022/user/tile/user-tile.component.mjs +6 -7
  219. package/esm2022/user/tile/user-tile.module.mjs +6 -7
  220. package/esm2022/user/user.module.mjs +6 -7
  221. package/fesm2022/lucca-front-ng-a11y.mjs +5 -5
  222. package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
  223. package/fesm2022/lucca-front-ng-animations.mjs +1 -1
  224. package/fesm2022/lucca-front-ng-api.mjs +60 -60
  225. package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
  226. package/fesm2022/lucca-front-ng-button.mjs +3 -3
  227. package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
  228. package/fesm2022/lucca-front-ng-callout.mjs +16 -16
  229. package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
  230. package/fesm2022/lucca-front-ng-core-select.mjs +28 -28
  231. package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
  232. package/fesm2022/lucca-front-ng-core.mjs +19 -18
  233. package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
  234. package/fesm2022/lucca-front-ng-date.mjs +52 -50
  235. package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
  236. package/fesm2022/lucca-front-ng-department.mjs +29 -29
  237. package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
  238. package/fesm2022/lucca-front-ng-dropdown.mjs +28 -28
  239. package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
  240. package/fesm2022/lucca-front-ng-establishment.mjs +61 -61
  241. package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
  242. package/fesm2022/lucca-front-ng-form-field.mjs +7 -7
  243. package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
  244. package/fesm2022/lucca-front-ng-formly.mjs +80 -61
  245. package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
  246. package/fesm2022/lucca-front-ng-forms.mjs +21 -20
  247. package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
  248. package/fesm2022/lucca-front-ng-icon.mjs +3 -3
  249. package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
  250. package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
  251. package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
  252. package/fesm2022/lucca-front-ng-input.mjs +23 -23
  253. package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
  254. package/fesm2022/lucca-front-ng-modal.mjs +25 -24
  255. package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
  256. package/fesm2022/lucca-front-ng-multi-select.mjs +24 -24
  257. package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
  258. package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
  259. package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
  260. package/fesm2022/lucca-front-ng-number.mjs +10 -10
  261. package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
  262. package/fesm2022/lucca-front-ng-numeric-badge.mjs +3 -3
  263. package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
  264. package/fesm2022/lucca-front-ng-option.mjs +175 -175
  265. package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
  266. package/fesm2022/lucca-front-ng-popover.mjs +29 -29
  267. package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
  268. package/fesm2022/lucca-front-ng-popup.mjs +11 -11
  269. package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
  270. package/fesm2022/lucca-front-ng-qualification.mjs +16 -16
  271. package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
  272. package/fesm2022/lucca-front-ng-safe-content.mjs +8 -8
  273. package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
  274. package/fesm2022/lucca-front-ng-scroll.mjs +8 -8
  275. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  276. package/fesm2022/lucca-front-ng-select.mjs +16 -16
  277. package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
  278. package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
  279. package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
  280. package/fesm2022/lucca-front-ng-simple-select-api.mjs +10 -10
  281. package/fesm2022/lucca-front-ng-simple-select-api.mjs.map +1 -1
  282. package/fesm2022/lucca-front-ng-simple-select.mjs +10 -10
  283. package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
  284. package/fesm2022/lucca-front-ng-title.mjs +15 -15
  285. package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
  286. package/fesm2022/lucca-front-ng-toast.mjs +11 -11
  287. package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
  288. package/fesm2022/lucca-front-ng-tooltip.mjs +21 -21
  289. package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
  290. package/fesm2022/lucca-front-ng-user.mjs +75 -75
  291. package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
  292. package/package.json +31 -31
  293. package/schematics/lib/local-deps/package.json +0 -23
  294. /package/{dockerRegistry-42781e58-2adb-4149-b8aa-04ec1df56c6b.env → dockerRegistry-a64fee7f-1bfc-49ea-b07d-9ccbdbf6fd83.env} +0 -0
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Inject, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/router';
4
4
  import { ActivationEnd, RouterModule, TitleStrategy } from '@angular/router';
5
- import { BehaviorSubject, combineLatest, of } from 'rxjs';
5
+ import { BehaviorSubject, of, combineLatest } from 'rxjs';
6
6
  import { switchMap, map, filter, distinctUntilChanged, tap } from 'rxjs/operators';
7
7
  import * as i2 from '@angular/platform-browser';
8
8
 
@@ -36,15 +36,15 @@ class LuTitleService {
36
36
  overrideFirstTitlePart(title) {
37
37
  this.titlePartsSubject.next([title, ...this.titlePartsSubject.value.slice(1)]);
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleService, deps: [{ token: i1.Router }, { token: i2.Title }, { token: LU_TITLE_TRANSLATE_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable }); }
40
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleService }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleService, deps: [{ token: i1.Router }, { token: i2.Title }, { token: LU_TITLE_TRANSLATE_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable }); }
40
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleService }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleService, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleService, decorators: [{
43
43
  type: Injectable
44
- }], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.Title }, { type: undefined, decorators: [{
44
+ }], ctorParameters: () => [{ type: i1.Router }, { type: i2.Title }, { type: undefined, decorators: [{
45
45
  type: Inject,
46
46
  args: [LU_TITLE_TRANSLATE_SERVICE]
47
- }] }]; } });
47
+ }] }] });
48
48
  function getPageTitleParts(snapshot) {
49
49
  const pageTitle = {
50
50
  title: (snapshot.data?.['title'] || ''),
@@ -60,11 +60,11 @@ function uniqTitle$1(titleParts) {
60
60
  * @deprecated use title streatgy instead
61
61
  */
62
62
  class LuTitleModule {
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
64
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: LuTitleModule, imports: [RouterModule] }); }
65
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleModule, providers: [LuTitleService], imports: [RouterModule] }); }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
64
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: LuTitleModule, imports: [RouterModule] }); }
65
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleModule, providers: [LuTitleService], imports: [RouterModule] }); }
66
66
  }
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleModule, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleModule, decorators: [{
68
68
  type: NgModule,
69
69
  args: [{
70
70
  imports: [RouterModule],
@@ -107,19 +107,19 @@ class LuTitleStrategy extends TitleStrategy {
107
107
  };
108
108
  return snapshot.firstChild ? [pageTitle, ...this.#getPageTitleParts(snapshot.firstChild)] : [pageTitle];
109
109
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleStrategy, deps: [{ token: i2.Title }, { token: LU_TITLE_TRANSLATE_SERVICE }, { token: APP_TITLE }], target: i0.ɵɵFactoryTarget.Injectable }); }
111
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleStrategy, providedIn: 'root' }); }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleStrategy, deps: [{ token: i2.Title }, { token: LU_TITLE_TRANSLATE_SERVICE }, { token: APP_TITLE }], target: i0.ɵɵFactoryTarget.Injectable }); }
111
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleStrategy, providedIn: 'root' }); }
112
112
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTitleStrategy, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTitleStrategy, decorators: [{
114
114
  type: Injectable,
115
115
  args: [{ providedIn: 'root' }]
116
- }], ctorParameters: function () { return [{ type: i2.Title }, { type: undefined, decorators: [{
116
+ }], ctorParameters: () => [{ type: i2.Title }, { type: undefined, decorators: [{
117
117
  type: Inject,
118
118
  args: [LU_TITLE_TRANSLATE_SERVICE]
119
119
  }] }, { type: undefined, decorators: [{
120
120
  type: Inject,
121
121
  args: [APP_TITLE]
122
- }] }]; } });
122
+ }] }] });
123
123
  function uniqTitle(titleParts) {
124
124
  return titleParts.filter(({ title }, index) => titleParts.findIndex((pageTitle) => pageTitle.title === title) === index);
125
125
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-title.mjs","sources":["../../../packages/ng/title/title-translate.service.ts","../../../packages/ng/title/title.model.ts","../../../packages/ng/title/title.service.ts","../../../packages/ng/title/title.module.ts","../../../packages/ng/title/title.strategy.ts","../../../packages/ng/title/lucca-front-ng-title.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const LU_TITLE_TRANSLATE_SERVICE = new InjectionToken<ILuTitleTranslateService>('LU_TITLE_TRANSLATE_SERVICE');\n\nexport interface ILuTitleTranslateService {\n\ttranslate(key: string, args?: Record<string, unknown>): string;\n}\n","export type PageTitle = { title: string; params?: { [param: string]: string } };\nexport const TitleSeparator = ' – ';\n","import { Inject, Injectable } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { ActivatedRouteSnapshot, ActivationEnd, Router } from '@angular/router';\nimport { BehaviorSubject, combineLatest, ObservableInput, of } from 'rxjs';\nimport { distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { ILuTitleTranslateService, LU_TITLE_TRANSLATE_SERVICE } from './title-translate.service';\nimport { PageTitle, TitleSeparator } from './title.model';\n\n/**\n * @deprecated use Title strategy instead\n */\n@Injectable()\nexport class LuTitleService {\n\tprivate titlePartsSubject = new BehaviorSubject<Array<string | ObservableInput<string>>>(['Lucca']);\n\ttitleParts$ = this.titlePartsSubject.asObservable();\n\ttitle$ = this.titleParts$.pipe(\n\t\tswitchMap((titleParts) => combineLatest(titleParts.map((part) => (typeof part === 'string' ? of(part) : part)))),\n\t\tmap((parts) => parts.join(TitleSeparator)),\n\t);\n\n\tconstructor(private router: Router, private title: Title, @Inject(LU_TITLE_TRANSLATE_SERVICE) private translateService: ILuTitleTranslateService) {}\n\n\tinit(applicationNameTranslationKey: string) {\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event) => {\n\t\t\t\t\treturn event instanceof ActivationEnd && event.snapshot.children.length === 0;\n\t\t\t\t}),\n\t\t\t\tmap((event: ActivationEnd) => getPageTitleParts(event.snapshot)),\n\t\t\t\tmap((titleParts) => uniqTitle(titleParts)),\n\t\t\t\tmap((titleParts) => titleParts.filter(({ title }) => title !== '').map(({ title, params }) => this.translateService.translate(title, params))),\n\t\t\t\tmap((titleParts: Array<string>) => [...titleParts, this.translateService.translate(applicationNameTranslationKey, {}), 'Lucca'].filter((x) => !!x)),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttap((titleParts) => this.titlePartsSubject.next(titleParts)),\n\t\t\t)\n\t\t\t.subscribe();\n\n\t\tthis.title$.pipe(tap((title) => this.title.setTitle(title))).subscribe();\n\t}\n\n\tprependTitle(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value]);\n\t}\n\n\toverrideFirstTitlePart(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value.slice(1)]);\n\t}\n}\n\nfunction getPageTitleParts(snapshot: ActivatedRouteSnapshot): Array<PageTitle> {\n\tconst pageTitle: PageTitle = {\n\t\ttitle: (snapshot.data?.['title'] || '') as string,\n\t\tparams: { ...snapshot.params, ...snapshot.data },\n\t};\n\treturn snapshot.parent ? [pageTitle, ...getPageTitleParts(snapshot.parent)] : [pageTitle];\n}\n\nfunction uniqTitle(titleParts: Array<PageTitle>): Array<PageTitle> {\n\treturn titleParts.filter(({ title }, index) => titleParts.findIndex((pageTitle) => pageTitle.title === title) === index);\n}\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { LuTitleService } from './title.service';\n\n/**\n * @deprecated use title streatgy instead\n */\n@NgModule({\n\timports: [RouterModule],\n\tproviders: [LuTitleService],\n})\nexport class LuTitleModule {}\n","import { Inject, Injectable, InjectionToken } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, TitleStrategy } from '@angular/router';\nimport { BehaviorSubject, combineLatest, ObservableInput, of } from 'rxjs';\nimport { distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { ILuTitleTranslateService, LU_TITLE_TRANSLATE_SERVICE } from './title-translate.service';\nimport { PageTitle, TitleSeparator } from './title.model';\n\nexport const APP_TITLE = new InjectionToken('APP_TITLE');\n\n@Injectable({ providedIn: 'root' })\nexport class LuTitleStrategy extends TitleStrategy {\n\tprivate titlePartsSubject = new BehaviorSubject<Array<string | ObservableInput<string>>>(['Lucca']);\n\ttitleParts$ = this.titlePartsSubject.asObservable();\n\ttitle$ = this.titleParts$.pipe(\n\t\tswitchMap((titleParts) => combineLatest(titleParts.map((part) => (typeof part === 'string' ? of(part) : part)))),\n\t\tmap((parts) => parts.join(TitleSeparator)),\n\t\tdistinctUntilChanged(),\n\t);\n\tconstructor(private title: Title, @Inject(LU_TITLE_TRANSLATE_SERVICE) private translateService: ILuTitleTranslateService, @Inject(APP_TITLE) private appTitle: string) {\n\t\tsuper();\n\t\tthis.title$.pipe(tap((title) => this.title.setTitle(title))).subscribe();\n\t}\n\n\toverride updateTitle(routerState: RouterStateSnapshot) {\n\t\t// Title page is display from child to root\n\t\tconst pageTitles = this.#getPageTitleParts(routerState.root).reverse();\n\t\tconst translatedPageTitles = uniqTitle(pageTitles)\n\t\t\t.filter(({ title }) => title !== '')\n\t\t\t.map(({ title, params }) => this.translateService.translate(title, params));\n\t\t// Add the name app and 'Lucca' at the end of the title\n\t\tconst titleParts = [...translatedPageTitles, this.translateService.translate(this.appTitle), 'Lucca'].filter((x) => !!x);\n\t\tthis.titlePartsSubject.next(titleParts);\n\t}\n\n\tprependTitle(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value]);\n\t}\n\n\toverrideFirstTitlePart(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value.slice(1)]);\n\t}\n\n\t#getPageTitleParts(snapshot: ActivatedRouteSnapshot): Array<PageTitle> {\n\t\tconst pageTitle: PageTitle = {\n\t\t\ttitle: this.getResolvedTitleForRoute(snapshot) as string,\n\t\t\tparams: { ...snapshot.params, ...snapshot.data },\n\t\t};\n\t\treturn snapshot.firstChild ? [pageTitle, ...this.#getPageTitleParts(snapshot.firstChild)] : [pageTitle];\n\t}\n}\n\nfunction uniqTitle(titleParts: Array<PageTitle>): Array<PageTitle> {\n\treturn titleParts.filter(({ title }, index) => titleParts.findIndex((pageTitle) => pageTitle.title === title) === index);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["uniqTitle","i1"],"mappings":";;;;;;;;MAEa,0BAA0B,GAAG,IAAI,cAAc,CAA2B,4BAA4B;;ACD5G,MAAM,cAAc,GAAG;;ACO9B;;AAEG;AACH,MACa,cAAc,CAAA;AAQ1B,IAAA,WAAA,CAAoB,MAAc,EAAU,KAAY,EAA8C,gBAA0C,EAAA;QAA5H,IAAM,CAAA,MAAA,GAAN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ACxD,MAAM,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE;SAChD,CAAC;QACF,OAAO,QAAQ,CAAC,UAAU,GAAG,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;KACxG;8GAtCW,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAC,EAAA,CAAA,KAAA,EAAA,EAAA,EAAA,KAAA,EAQe,0BAA0B,EAAA,EAAA,EAAA,KAAA,EAA8D,SAAS,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAR/H,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA,CAAA,EAAA;;2FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BASE,MAAM;2BAAC,0BAA0B,CAAA;;0BAAuD,MAAM;2BAAC,SAAS,CAAA;;AAiC5I,SAAS,SAAS,CAAC,UAA4B,EAAA;AAC9C,IAAA,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1H;;ACtDA;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-title.mjs","sources":["../../../packages/ng/title/title-translate.service.ts","../../../packages/ng/title/title.model.ts","../../../packages/ng/title/title.service.ts","../../../packages/ng/title/title.module.ts","../../../packages/ng/title/title.strategy.ts","../../../packages/ng/title/lucca-front-ng-title.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const LU_TITLE_TRANSLATE_SERVICE = new InjectionToken<ILuTitleTranslateService>('LU_TITLE_TRANSLATE_SERVICE');\n\nexport interface ILuTitleTranslateService {\n\ttranslate(key: string, args?: Record<string, unknown>): string;\n}\n","export type PageTitle = { title: string; params?: { [param: string]: string } };\nexport const TitleSeparator = ' – ';\n","import { Inject, Injectable } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { ActivatedRouteSnapshot, ActivationEnd, Router } from '@angular/router';\nimport { BehaviorSubject, combineLatest, ObservableInput, of } from 'rxjs';\nimport { distinctUntilChanged, filter, map, switchMap, tap } from 'rxjs/operators';\nimport { ILuTitleTranslateService, LU_TITLE_TRANSLATE_SERVICE } from './title-translate.service';\nimport { PageTitle, TitleSeparator } from './title.model';\n\n/**\n * @deprecated use Title strategy instead\n */\n@Injectable()\nexport class LuTitleService {\n\tprivate titlePartsSubject = new BehaviorSubject<Array<string | ObservableInput<string>>>(['Lucca']);\n\ttitleParts$ = this.titlePartsSubject.asObservable();\n\ttitle$ = this.titleParts$.pipe(\n\t\tswitchMap((titleParts) => combineLatest(titleParts.map((part) => (typeof part === 'string' ? of(part) : part)))),\n\t\tmap((parts) => parts.join(TitleSeparator)),\n\t);\n\n\tconstructor(private router: Router, private title: Title, @Inject(LU_TITLE_TRANSLATE_SERVICE) private translateService: ILuTitleTranslateService) {}\n\n\tinit(applicationNameTranslationKey: string) {\n\t\tthis.router.events\n\t\t\t.pipe(\n\t\t\t\tfilter((event) => {\n\t\t\t\t\treturn event instanceof ActivationEnd && event.snapshot.children.length === 0;\n\t\t\t\t}),\n\t\t\t\tmap((event: ActivationEnd) => getPageTitleParts(event.snapshot)),\n\t\t\t\tmap((titleParts) => uniqTitle(titleParts)),\n\t\t\t\tmap((titleParts) => titleParts.filter(({ title }) => title !== '').map(({ title, params }) => this.translateService.translate(title, params))),\n\t\t\t\tmap((titleParts: Array<string>) => [...titleParts, this.translateService.translate(applicationNameTranslationKey, {}), 'Lucca'].filter((x) => !!x)),\n\t\t\t\tdistinctUntilChanged(),\n\t\t\t\ttap((titleParts) => this.titlePartsSubject.next(titleParts)),\n\t\t\t)\n\t\t\t.subscribe();\n\n\t\tthis.title$.pipe(tap((title) => this.title.setTitle(title))).subscribe();\n\t}\n\n\tprependTitle(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value]);\n\t}\n\n\toverrideFirstTitlePart(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value.slice(1)]);\n\t}\n}\n\nfunction getPageTitleParts(snapshot: ActivatedRouteSnapshot): Array<PageTitle> {\n\tconst pageTitle: PageTitle = {\n\t\ttitle: (snapshot.data?.['title'] || '') as string,\n\t\tparams: { ...snapshot.params, ...snapshot.data },\n\t};\n\treturn snapshot.parent ? [pageTitle, ...getPageTitleParts(snapshot.parent)] : [pageTitle];\n}\n\nfunction uniqTitle(titleParts: Array<PageTitle>): Array<PageTitle> {\n\treturn titleParts.filter(({ title }, index) => titleParts.findIndex((pageTitle) => pageTitle.title === title) === index);\n}\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { LuTitleService } from './title.service';\n\n/**\n * @deprecated use title streatgy instead\n */\n@NgModule({\n\timports: [RouterModule],\n\tproviders: [LuTitleService],\n})\nexport class LuTitleModule {}\n","import { Inject, Injectable, InjectionToken } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { ActivatedRouteSnapshot, RouterStateSnapshot, TitleStrategy } from '@angular/router';\nimport { BehaviorSubject, combineLatest, ObservableInput, of } from 'rxjs';\nimport { distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators';\nimport { ILuTitleTranslateService, LU_TITLE_TRANSLATE_SERVICE } from './title-translate.service';\nimport { PageTitle, TitleSeparator } from './title.model';\n\nexport const APP_TITLE = new InjectionToken('APP_TITLE');\n\n@Injectable({ providedIn: 'root' })\nexport class LuTitleStrategy extends TitleStrategy {\n\tprivate titlePartsSubject = new BehaviorSubject<Array<string | ObservableInput<string>>>(['Lucca']);\n\ttitleParts$ = this.titlePartsSubject.asObservable();\n\ttitle$ = this.titleParts$.pipe(\n\t\tswitchMap((titleParts) => combineLatest(titleParts.map((part) => (typeof part === 'string' ? of(part) : part)))),\n\t\tmap((parts) => parts.join(TitleSeparator)),\n\t\tdistinctUntilChanged(),\n\t);\n\tconstructor(private title: Title, @Inject(LU_TITLE_TRANSLATE_SERVICE) private translateService: ILuTitleTranslateService, @Inject(APP_TITLE) private appTitle: string) {\n\t\tsuper();\n\t\tthis.title$.pipe(tap((title) => this.title.setTitle(title))).subscribe();\n\t}\n\n\toverride updateTitle(routerState: RouterStateSnapshot) {\n\t\t// Title page is display from child to root\n\t\tconst pageTitles = this.#getPageTitleParts(routerState.root).reverse();\n\t\tconst translatedPageTitles = uniqTitle(pageTitles)\n\t\t\t.filter(({ title }) => title !== '')\n\t\t\t.map(({ title, params }) => this.translateService.translate(title, params));\n\t\t// Add the name app and 'Lucca' at the end of the title\n\t\tconst titleParts = [...translatedPageTitles, this.translateService.translate(this.appTitle), 'Lucca'].filter((x) => !!x);\n\t\tthis.titlePartsSubject.next(titleParts);\n\t}\n\n\tprependTitle(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value]);\n\t}\n\n\toverrideFirstTitlePart(title: string | ObservableInput<string>) {\n\t\tthis.titlePartsSubject.next([title, ...this.titlePartsSubject.value.slice(1)]);\n\t}\n\n\t#getPageTitleParts(snapshot: ActivatedRouteSnapshot): Array<PageTitle> {\n\t\tconst pageTitle: PageTitle = {\n\t\t\ttitle: this.getResolvedTitleForRoute(snapshot) as string,\n\t\t\tparams: { ...snapshot.params, ...snapshot.data },\n\t\t};\n\t\treturn snapshot.firstChild ? [pageTitle, ...this.#getPageTitleParts(snapshot.firstChild)] : [pageTitle];\n\t}\n}\n\nfunction uniqTitle(titleParts: Array<PageTitle>): Array<PageTitle> {\n\treturn titleParts.filter(({ title }, index) => titleParts.findIndex((pageTitle) => pageTitle.title === title) === index);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["uniqTitle","i1"],"mappings":";;;;;;;;MAEa,0BAA0B,GAAG,IAAI,cAAc,CAA2B,4BAA4B;;ACD5G,MAAM,cAAc,GAAG;;ACO9B;;AAEG;MAEU,cAAc,CAAA;AAQ1B,IAAA,WAAA,CAAoB,MAAc,EAAU,KAAY,EAA8C,gBAA0C,EAAA;QAA5H,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAAU,IAAK,CAAA,KAAA,GAAL,KAAK,CAAO;QAA8C,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAA0B;QAPxI,IAAiB,CAAA,iBAAA,GAAG,IAAI,eAAe,CAA0C,CAAC,OAAO,CAAC,CAAC,CAAC;AACpG,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;AACpD,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAC7B,SAAS,CAAC,CAAC,UAAU,KAAK,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,OAAO,IAAI,KAAK,QAAQ,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,EAChH,GAAG,CAAC,CAAC,KAAK,KAAK,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAC1C,CAAC;KAEkJ;AAEpJ,IAAA,IAAI,CAAC,6BAAqC,EAAA;QACzC,IAAI,CAAC,MAAM,CAAC,MAAM;AAChB,aAAA,IAAI,CACJ,MAAM,CAAC,CAAC,KAAK,KAAI;AAChB,YAAA,OAAO,KAAK,YAAY,aAAa,IAAI,KAAK,C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0BAA0B,CAAA;;0BAAuD,MAAM;2BAAC,SAAS,CAAA;;AAiC5I,SAAS,SAAS,CAAC,UAA4B,EAAA;AAC9C,IAAA,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1H;;ACtDA;;AAEG;;;;"}
@@ -48,10 +48,10 @@ class LuToastsService {
48
48
  const randomString = Math.random().toString(36).substring(2, 9);
49
49
  return `_${randomString}`;
50
50
  }
51
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
52
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsService, providedIn: 'root' }); }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
52
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsService, providedIn: 'root' }); }
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsService, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsService, decorators: [{
55
55
  type: Injectable,
56
56
  args: [{ providedIn: 'root' }]
57
57
  }] });
@@ -94,24 +94,24 @@ class LuToastsComponent {
94
94
  isOnlyDismissibleManually(toast) {
95
95
  return this.toastsService.isOnlyDismissibleManually(toast);
96
96
  }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsComponent, deps: [{ token: LuToastsService }], target: i0.ɵɵFactoryTarget.Component }); }
98
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: LuToastsComponent, isStandalone: true, selector: "lu-toasts", inputs: { bottom: "bottom", sources: "sources" }, ngImport: i0, template: "<div class=\"toasts mod-withCircularGauge\" aria-live=\"polite\" [class.mod-bottom]=\"bottom\">\n\t<div *ngFor=\"let toast of toasts$ | async; trackBy: trackToast\" class=\"toasts-item\" [ngClass]=\"paletteClassByToastType[toast.type]\">\n\t\t<span *ngIf=\"toast.type\" class=\"toast-item-icon lucca-icon\" aria-hidden=\"true\" [ngClass]=\"iconClassByToastType[toast.type]\"></span>\n\t\t<div class=\"toast-item-content\">\n\t\t\t<div *ngIf=\"toast.title\"><strong>{{ toast.title }}</strong></div>\n\t\t\t<div [innerHtml]=\"toast.message\"></div>\n\t\t</div>\n\t\t<button type=\"button\" class=\"toasts-item-kill\" (click)=\"removeToast(toast)\" (animationend)=\"removeToast(toast)\">\n\t\t\t<span class=\"lucca-icon icon-signClose mod-XS\" aria-hidden=\"true\"></span>\n\t\t\t<div class=\"circularGauge\" *ngIf=\"!isOnlyDismissibleManually(toast) && toast.duration > 0\">\n\t\t\t\t<svg viewBox=\"0 0 32 32\">\n\t\t\t\t\t<circle r=\"16\" cx=\"16\" cy=\"16\" [style.animation-duration]=\"toast.duration + 'ms'\" />\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<span class=\"u-mask\">{{ intl.close }}</span>\n\t\t</button>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsComponent, deps: [{ token: LuToastsService }], target: i0.ɵɵFactoryTarget.Component }); }
98
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: LuToastsComponent, isStandalone: true, selector: "lu-toasts", inputs: { bottom: "bottom", sources: "sources" }, ngImport: i0, template: "<div class=\"toasts mod-withCircularGauge\" aria-live=\"polite\" [class.mod-bottom]=\"bottom\">\n\t<div *ngFor=\"let toast of toasts$ | async; trackBy: trackToast\" class=\"toasts-item\" [ngClass]=\"paletteClassByToastType[toast.type]\">\n\t\t<span *ngIf=\"toast.type\" class=\"toast-item-icon lucca-icon\" aria-hidden=\"true\" [ngClass]=\"iconClassByToastType[toast.type]\"></span>\n\t\t<div class=\"toast-item-content\">\n\t\t\t<div *ngIf=\"toast.title\"><strong>{{ toast.title }}</strong></div>\n\t\t\t<div [innerHtml]=\"toast.message\"></div>\n\t\t</div>\n\t\t<button type=\"button\" class=\"toasts-item-kill\" (click)=\"removeToast(toast)\" (animationend)=\"removeToast(toast)\">\n\t\t\t<span class=\"lucca-icon icon-signClose mod-XS\" aria-hidden=\"true\"></span>\n\t\t\t<div class=\"circularGauge\" *ngIf=\"!isOnlyDismissibleManually(toast) && toast.duration > 0\">\n\t\t\t\t<svg viewBox=\"0 0 32 32\">\n\t\t\t\t\t<circle r=\"16\" cx=\"16\" cy=\"16\" [style.animation-duration]=\"toast.duration + 'ms'\" />\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<span class=\"u-mask\">{{ intl.close }}</span>\n\t\t</button>\n\t</div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
99
99
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsComponent, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsComponent, decorators: [{
101
101
  type: Component,
102
102
  args: [{ selector: 'lu-toasts', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule], template: "<div class=\"toasts mod-withCircularGauge\" aria-live=\"polite\" [class.mod-bottom]=\"bottom\">\n\t<div *ngFor=\"let toast of toasts$ | async; trackBy: trackToast\" class=\"toasts-item\" [ngClass]=\"paletteClassByToastType[toast.type]\">\n\t\t<span *ngIf=\"toast.type\" class=\"toast-item-icon lucca-icon\" aria-hidden=\"true\" [ngClass]=\"iconClassByToastType[toast.type]\"></span>\n\t\t<div class=\"toast-item-content\">\n\t\t\t<div *ngIf=\"toast.title\"><strong>{{ toast.title }}</strong></div>\n\t\t\t<div [innerHtml]=\"toast.message\"></div>\n\t\t</div>\n\t\t<button type=\"button\" class=\"toasts-item-kill\" (click)=\"removeToast(toast)\" (animationend)=\"removeToast(toast)\">\n\t\t\t<span class=\"lucca-icon icon-signClose mod-XS\" aria-hidden=\"true\"></span>\n\t\t\t<div class=\"circularGauge\" *ngIf=\"!isOnlyDismissibleManually(toast) && toast.duration > 0\">\n\t\t\t\t<svg viewBox=\"0 0 32 32\">\n\t\t\t\t\t<circle r=\"16\" cx=\"16\" cy=\"16\" [style.animation-duration]=\"toast.duration + 'ms'\" />\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<span class=\"u-mask\">{{ intl.close }}</span>\n\t\t</button>\n\t</div>\n</div>\n" }]
103
- }], ctorParameters: function () { return [{ type: LuToastsService }]; }, propDecorators: { bottom: [{
103
+ }], ctorParameters: () => [{ type: LuToastsService }], propDecorators: { bottom: [{
104
104
  type: Input
105
105
  }], sources: [{
106
106
  type: Input
107
107
  }] } });
108
108
 
109
109
  class LuToastsModule {
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
111
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: LuToastsModule, imports: [LuToastsComponent], exports: [LuToastsComponent] }); }
112
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsModule, imports: [LuToastsComponent] }); }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
111
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: LuToastsModule, imports: [LuToastsComponent], exports: [LuToastsComponent] }); }
112
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsModule, imports: [LuToastsComponent] }); }
113
113
  }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuToastsModule, decorators: [{
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuToastsModule, decorators: [{
115
115
  type: NgModule,
116
116
  args: [{
117
117
  imports: [LuToastsComponent],
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-toast.mjs","sources":["../../../packages/ng/toast/toasts.translate.ts","../../../packages/ng/toast/toasts.model.ts","../../../packages/ng/toast/toasts.service.ts","../../../packages/ng/toast/toasts.component.ts","../../../packages/ng/toast/toasts.component.html","../../../packages/ng/toast/toasts.module.ts","../../../packages/ng/toast/public-api.ts","../../../packages/ng/toast/lucca-front-ng-toast.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { ILuTranslation } from '@lucca-front/ng/core';\n\nexport const LU_TOAST_TRANSLATIONS = new InjectionToken('LuToastTranslations', {\n\tfactory: () => luToastTranslations,\n});\n\nexport interface ILuToastLabel {\n\tclose: string;\n}\n\nexport const luToastTranslations: ILuTranslation<ILuToastLabel> = {\n\ten: {\n\t\tclose: 'Close',\n\t},\n\tfr: {\n\t\tclose: 'Fermer',\n\t},\n\tes: {\n\t\tclose: 'Cerrar',\n\t},\n};\n","export type LuToastType = 'Info' | 'Error' | 'Success' | 'Warning';\n\nexport const defaultToastDuration = 5000;\n\nexport interface LuToastInput {\n\t/**\n\t * InnerHTML supported.\n\t */\n\tmessage: string;\n\t/**\n\t * Bold title.\n\t * InnerHTML not supported.\n\t */\n\ttitle?: string;\n\ttype?: LuToastType;\n\t/**\n\t * Auto kill default duration is 5000ms.\n\t * Null means manual dismiss only.\n\t */\n\tduration?: number | null;\n}\n\nexport interface LuToast extends LuToastInput {\n\tid: string;\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { defaultToastDuration, LuToast, LuToastInput } from './toasts.model';\n\n@Injectable({ providedIn: 'root' })\nexport class LuToastsService {\n\tpublic toasts$ = new BehaviorSubject<LuToast[]>([]);\n\n\tpublic addToast(toastInput: LuToastInput): LuToast {\n\t\tconst toast = this.getToast(toastInput);\n\n\t\tthis.toasts$.next([...this.toasts$.value, toast]);\n\n\t\treturn toast;\n\t}\n\n\tpublic removeToast(toast: LuToast): void {\n\t\tconst updatedToasts = this.toasts$.value.filter(({ id }) => id !== toast.id);\n\t\tthis.toasts$.next(updatedToasts);\n\t}\n\n\tpublic isOnlyDismissibleManually({ duration }: LuToastInput): boolean {\n\t\treturn duration === null;\n\t}\n\n\tprivate getToast(toastInput: LuToastInput): LuToast {\n\t\tconst id = this.generateId();\n\t\tconst duration = this.isOnlyDismissibleManually(toastInput) ? toastInput.duration : toastInput.duration ?? defaultToastDuration;\n\n\t\treturn { ...toastInput, id, duration };\n\t}\n\n\tprivate generateId(): string {\n\t\tconst randomString = Math.random().toString(36).substring(2, 9);\n\t\treturn `_${randomString}`;\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, OnDestroy } from '@angular/core';\nimport { getIntl } from '@lucca-front/ng/core';\nimport { merge, Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { LuToast, LuToastInput, LuToastType } from './toasts.model';\nimport { LuToastsService } from './toasts.service';\nimport { LU_TOAST_TRANSLATIONS } from './toasts.translate';\n\n@Component({\n\tselector: 'lu-toasts',\n\ttemplateUrl: './toasts.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [CommonModule],\n})\nexport class LuToastsComponent implements OnDestroy {\n\t@Input() public bottom = false;\n\t@Input() public set sources(sources: Array<Observable<LuToastInput>>) {\n\t\tmerge(...sources)\n\t\t\t.pipe(takeUntil(this.destroy$))\n\t\t\t.subscribe((toast) => this.toastsService.addToast(toast));\n\t}\n\n\tpublic toasts$ = this.toastsService.toasts$;\n\n\tprivate destroy$ = new Subject<void>();\n\n\tpublic intl = getIntl(LU_TOAST_TRANSLATIONS);\n\n\tconstructor(private toastsService: LuToastsService) {}\n\n\tpublic ngOnDestroy(): void {\n\t\tthis.destroy$.next();\n\t\tthis.destroy$.complete();\n\t}\n\n\tpublic iconClassByToastType: Record<LuToastType, string> = {\n\t\tInfo: 'icon-info',\n\t\tSuccess: 'icon-success',\n\t\tError: 'icon-error',\n\t\tWarning: 'icon-warning',\n\t};\n\n\tpublic paletteClassByToastType: Record<LuToastType, string> = {\n\t\tInfo: '',\n\t\tSuccess: 'palette-success',\n\t\tError: 'palette-error',\n\t\tWarning: 'palette-warning',\n\t};\n\n\tpublic removeToast(toast: LuToast): void {\n\t\tthis.toastsService.removeToast(toast);\n\t}\n\n\tpublic trackToast(_index: number, toast: LuToast): string {\n\t\treturn toast.id;\n\t}\n\n\tpublic isOnlyDismissibleManually(toast: LuToast): boolean {\n\t\treturn this.toastsService.isOnlyDismissibleManually(toast);\n\t}\n}\n","<div class=\"toasts mod-withCircularGauge\" aria-live=\"polite\" [class.mod-bottom]=\"bottom\">\n\t<div *ngFor=\"let toast of toasts$ | async; trackBy: trackToast\" class=\"toasts-item\" [ngClass]=\"paletteClassByToastType[toast.type]\">\n\t\t<span *ngIf=\"toast.type\" class=\"toast-item-icon lucca-icon\" aria-hidden=\"true\" [ngClass]=\"iconClassByToastType[toast.type]\"></span>\n\t\t<div class=\"toast-item-content\">\n\t\t\t<div *ngIf=\"toast.title\"><strong>{{ toast.title }}</strong></div>\n\t\t\t<div [innerHtml]=\"toast.message\"></div>\n\t\t</div>\n\t\t<button type=\"button\" class=\"toasts-item-kill\" (click)=\"removeToast(toast)\" (animationend)=\"removeToast(toast)\">\n\t\t\t<span class=\"lucca-icon icon-signClose mod-XS\" aria-hidden=\"true\"></span>\n\t\t\t<div class=\"circularGauge\" *ngIf=\"!isOnlyDismissibleManually(toast) && toast.duration > 0\">\n\t\t\t\t<svg viewBox=\"0 0 32 32\">\n\t\t\t\t\t<circle r=\"16\" cx=\"16\" cy=\"16\" [style.animation-duration]=\"toast.duration + 'ms'\" />\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<span class=\"u-mask\">{{ intl.close }}</span>\n\t\t</button>\n\t</div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { LuToastsComponent } from './toasts.component';\n\n@NgModule({\n\timports: [LuToastsComponent],\n\texports: [LuToastsComponent],\n})\nexport class LuToastsModule {}\n","/*\n * Public API Surface of toast\n */\n\nexport * from './toasts.component';\nexport * from './toasts.model';\nexport * from './toasts.module';\nexport * from './toasts.service';\nexport * from './toasts.translate';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LuToastsService"],"mappings":";;;;;;;;MAGa,qBAAqB,GAAG,IAAI,cAAc,CAAC,qBAAqB,EAAE;AAC9E,IAAA,OAAO,EAAE,MAAM,mBAAmB;AAClC,CAAA,EAAE;AAMU,MAAA,mBAAmB,GAAkC;AACjE,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,OAAO;AACd,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,QAAQ;AACf,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,QAAQ;AACf,KAAA;;;AClBK,MAAM,oBAAoB,GAAG;;ACEpC,MACa,eAAe,CAAA;AAD5B,IAAA,WAAA,GAAA;AAEQ,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,eAAe,CAAY,EAAE,CAAC,CAAC;AA8BpD,KAAA;AA5BO,IAAA,QAAQ,CAAC,UAAwB,EAAA;QACvC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAExC,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAElD,QAAA,OAAO,KAAK,CAAC;KACb;AAEM,IAAA,WAAW,CAAC,KAAc,EAAA;QAChC,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC,CAAC;AAC7E,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KACjC;IAEM,yBAAyB,CAAC,EAAE,QAAQ,EAAgB,EAAA;QAC1D,OAAO,QAAQ,KAAK,IAAI,CAAC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cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAd,cAAc,EAAA,OAAA,EAAA,CAHhB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CACjB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;AAEf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAHhB,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGf,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC5B,iBAAA,CAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-toast.mjs","sources":["../../../packages/ng/toast/toasts.translate.ts","../../../packages/ng/toast/toasts.model.ts","../../../packages/ng/toast/toasts.service.ts","../../../packages/ng/toast/toasts.component.ts","../../../packages/ng/toast/toasts.component.html","../../../packages/ng/toast/toasts.module.ts","../../../packages/ng/toast/public-api.ts","../../../packages/ng/toast/lucca-front-ng-toast.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { ILuTranslation } from '@lucca-front/ng/core';\n\nexport const LU_TOAST_TRANSLATIONS = new InjectionToken('LuToastTranslations', {\n\tfactory: () => luToastTranslations,\n});\n\nexport interface ILuToastLabel {\n\tclose: string;\n}\n\nexport const luToastTranslations: ILuTranslation<ILuToastLabel> = {\n\ten: {\n\t\tclose: 'Close',\n\t},\n\tfr: {\n\t\tclose: 'Fermer',\n\t},\n\tes: {\n\t\tclose: 'Cerrar',\n\t},\n};\n","export type LuToastType = 'Info' | 'Error' | 'Success' | 'Warning';\n\nexport const defaultToastDuration = 5000;\n\nexport interface LuToastInput {\n\t/**\n\t * InnerHTML supported.\n\t */\n\tmessage: string;\n\t/**\n\t * Bold title.\n\t * InnerHTML not supported.\n\t */\n\ttitle?: string;\n\ttype?: LuToastType;\n\t/**\n\t * Auto kill default duration is 5000ms.\n\t * Null means manual dismiss only.\n\t */\n\tduration?: number | null;\n}\n\nexport interface LuToast extends LuToastInput {\n\tid: string;\n}\n","import { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { defaultToastDuration, LuToast, LuToastInput } from './toasts.model';\n\n@Injectable({ providedIn: 'root' })\nexport class LuToastsService {\n\tpublic toasts$ = new BehaviorSubject<LuToast[]>([]);\n\n\tpublic addToast(toastInput: LuToastInput): LuToast {\n\t\tconst toast = this.getToast(toastInput);\n\n\t\tthis.toasts$.next([...this.toasts$.value, toast]);\n\n\t\treturn toast;\n\t}\n\n\tpublic removeToast(toast: LuToast): void {\n\t\tconst updatedToasts = this.toasts$.value.filter(({ id }) => id !== toast.id);\n\t\tthis.toasts$.next(updatedToasts);\n\t}\n\n\tpublic isOnlyDismissibleManually({ duration }: LuToastInput): boolean {\n\t\treturn duration === null;\n\t}\n\n\tprivate getToast(toastInput: LuToastInput): LuToast {\n\t\tconst id = this.generateId();\n\t\tconst duration = this.isOnlyDismissibleManually(toastInput) ? toastInput.duration : toastInput.duration ?? defaultToastDuration;\n\n\t\treturn { ...toastInput, id, duration };\n\t}\n\n\tprivate generateId(): string {\n\t\tconst randomString = Math.random().toString(36).substring(2, 9);\n\t\treturn `_${randomString}`;\n\t}\n}\n","import { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, OnDestroy } from '@angular/core';\nimport { getIntl } from '@lucca-front/ng/core';\nimport { merge, Observable, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { LuToast, LuToastInput, LuToastType } from './toasts.model';\nimport { LuToastsService } from './toasts.service';\nimport { LU_TOAST_TRANSLATIONS } from './toasts.translate';\n\n@Component({\n\tselector: 'lu-toasts',\n\ttemplateUrl: './toasts.component.html',\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [CommonModule],\n})\nexport class LuToastsComponent implements OnDestroy {\n\t@Input() public bottom = false;\n\t@Input() public set sources(sources: Array<Observable<LuToastInput>>) {\n\t\tmerge(...sources)\n\t\t\t.pipe(takeUntil(this.destroy$))\n\t\t\t.subscribe((toast) => this.toastsService.addToast(toast));\n\t}\n\n\tpublic toasts$ = this.toastsService.toasts$;\n\n\tprivate destroy$ = new Subject<void>();\n\n\tpublic intl = getIntl(LU_TOAST_TRANSLATIONS);\n\n\tconstructor(private toastsService: LuToastsService) {}\n\n\tpublic ngOnDestroy(): void {\n\t\tthis.destroy$.next();\n\t\tthis.destroy$.complete();\n\t}\n\n\tpublic iconClassByToastType: Record<LuToastType, string> = {\n\t\tInfo: 'icon-info',\n\t\tSuccess: 'icon-success',\n\t\tError: 'icon-error',\n\t\tWarning: 'icon-warning',\n\t};\n\n\tpublic paletteClassByToastType: Record<LuToastType, string> = {\n\t\tInfo: '',\n\t\tSuccess: 'palette-success',\n\t\tError: 'palette-error',\n\t\tWarning: 'palette-warning',\n\t};\n\n\tpublic removeToast(toast: LuToast): void {\n\t\tthis.toastsService.removeToast(toast);\n\t}\n\n\tpublic trackToast(_index: number, toast: LuToast): string {\n\t\treturn toast.id;\n\t}\n\n\tpublic isOnlyDismissibleManually(toast: LuToast): boolean {\n\t\treturn this.toastsService.isOnlyDismissibleManually(toast);\n\t}\n}\n","<div class=\"toasts mod-withCircularGauge\" aria-live=\"polite\" [class.mod-bottom]=\"bottom\">\n\t<div *ngFor=\"let toast of toasts$ | async; trackBy: trackToast\" class=\"toasts-item\" [ngClass]=\"paletteClassByToastType[toast.type]\">\n\t\t<span *ngIf=\"toast.type\" class=\"toast-item-icon lucca-icon\" aria-hidden=\"true\" [ngClass]=\"iconClassByToastType[toast.type]\"></span>\n\t\t<div class=\"toast-item-content\">\n\t\t\t<div *ngIf=\"toast.title\"><strong>{{ toast.title }}</strong></div>\n\t\t\t<div [innerHtml]=\"toast.message\"></div>\n\t\t</div>\n\t\t<button type=\"button\" class=\"toasts-item-kill\" (click)=\"removeToast(toast)\" (animationend)=\"removeToast(toast)\">\n\t\t\t<span class=\"lucca-icon icon-signClose mod-XS\" aria-hidden=\"true\"></span>\n\t\t\t<div class=\"circularGauge\" *ngIf=\"!isOnlyDismissibleManually(toast) && toast.duration > 0\">\n\t\t\t\t<svg viewBox=\"0 0 32 32\">\n\t\t\t\t\t<circle r=\"16\" cx=\"16\" cy=\"16\" [style.animation-duration]=\"toast.duration + 'ms'\" />\n\t\t\t\t</svg>\n\t\t\t</div>\n\t\t\t<span class=\"u-mask\">{{ intl.close }}</span>\n\t\t</button>\n\t</div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { LuToastsComponent } from './toasts.component';\n\n@NgModule({\n\timports: [LuToastsComponent],\n\texports: [LuToastsComponent],\n})\nexport class LuToastsModule {}\n","/*\n * Public API Surface of toast\n */\n\nexport * from './toasts.component';\nexport * from './toasts.model';\nexport * from './toasts.module';\nexport * from './toasts.service';\nexport * from './toasts.translate';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.LuToastsService"],"mappings":";;;;;;;;MAGa,qBAAqB,GAAG,IAAI,cAAc,CAAC,qBAAqB,EAAE;AAC9E,IAAA,OAAO,EAAE,MAAM,mBAAmB;AAClC,CAAA,EAAE;AAMU,MAAA,mBAAmB,GAAkC;AACjE,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,OAAO;AACd,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,QAAQ;AACf,KAAA;AACD,IAAA,EAAE,EAAE;AACH,QAAA,KAAK,EAAE,QAAQ;AACf,KAAA;;;AClBK,MAAM,oBAAoB,GAAG;;MCG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AAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,iBAAiB,CAAC;oBAC5B,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC5B,iBAAA,CAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,4 +1,4 @@
1
- import { trigger, state, style, transition, animate } from '@angular/animations';
1
+ import { style, state, animate, transition, trigger } from '@angular/animations';
2
2
  import * as i1$1 from '@angular/cdk/overlay';
3
3
  import { OverlayModule } from '@angular/cdk/overlay';
4
4
  import * as i1 from '@angular/common';
@@ -55,13 +55,13 @@ class LuTooltipPanelComponent extends ALuPopoverPanel {
55
55
  _emitHoveredEvent(hovered) {
56
56
  this.hovered.emit(hovered);
57
57
  }
58
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
59
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: LuTooltipPanelComponent, isStandalone: true, selector: "lu-tooltip-panel", outputs: { close: "close", open: "open", hovered: "hovered" }, host: { properties: { "@transformTooltip": "this.animationState" } }, viewQueries: [{ propertyName: "vcTemplateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\n\tclass=\"lu-tooltip-panel\"\n\trole=\"tooltip\"\n\t[ngClass]=\"panelClassesMap\"\n\t(mouseover)=\"onMouseOver()\"\n\t(mouseleave)=\"onMouseLeave()\"\n\t[attr.id]=\"panelId\"\n\t[@transformTooltip]=\"'enter'\"\n>\n\t<div class=\"lu-tooltip-content\" [ngClass]=\"contentClassesMap\" [innerHtml]=\"content\"></div>\n</div>\n", styles: [":root{--components-options-item-padding-vertical: var(--spacings-XS);--components-options-item-padding-horizontal: var(--spacings-XS);--components-options-item-multiple-padding: 2.25rem;--components-options-item-icon-color: var(--palettes-grey-800);--components-options-checkbox-left: .5rem;--components-options-checkbox-size: 1.25rem;--components-options-checkbox-color: var(--palettes-primary-700);--components-options-checkbox-border-radius: 6px;--components-options-checkbox-border-color: var(--palettes-grey-700);--components-options-establishment-multiple-padding: 2rem}.lu-tooltip-panel{--components-tooltip-background-color: var(--palettes-grey-900);--components-tooltip-color: var(--colors-white-color);--components-tooltip-max-width: 15rem;background:var(--components-tooltip-background-color);color:var(--components-tooltip-color);padding:var(--spacings-XXS) var(--spacings-XS);max-width:var(--components-tooltip-max-width);border-radius:var(--commons-borderRadius-M);font-size:var(--sizes-XS-fontSize);line-height:var(--sizes-XS-lineHeight);display:block;text-align:center}.lu-tooltip-panel.is-above{transform-origin:bottom center}.lu-tooltip-panel.is-below{transform-origin:top center;margin-top:2px}.lu-tooltip-panel.is-before{transform-origin:center right;margin-right:5px}.lu-tooltip-panel.is-after{transform-origin:center left;margin-left:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }], animations: [luTransformTooltip], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
59
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: LuTooltipPanelComponent, isStandalone: true, selector: "lu-tooltip-panel", outputs: { close: "close", open: "open", hovered: "hovered" }, host: { properties: { "@transformTooltip": "this.animationState" } }, viewQueries: [{ propertyName: "vcTemplateRef", first: true, predicate: TemplateRef, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\n\tclass=\"lu-tooltip-panel\"\n\trole=\"tooltip\"\n\t[ngClass]=\"panelClassesMap\"\n\t(mouseover)=\"onMouseOver()\"\n\t(mouseleave)=\"onMouseLeave()\"\n\t[attr.id]=\"panelId\"\n\t[@transformTooltip]=\"'enter'\"\n>\n\t<div class=\"lu-tooltip-content\" [ngClass]=\"contentClassesMap\" [innerHtml]=\"content\"></div>\n</div>\n", styles: [":root{--components-options-item-padding-vertical: var(--spacings-XS);--components-options-item-padding-horizontal: var(--spacings-XS);--components-options-item-multiple-padding: 2.25rem;--components-options-item-icon-color: var(--palettes-grey-800);--components-options-checkbox-left: .5rem;--components-options-checkbox-size: 1.25rem;--components-options-checkbox-color: var(--palettes-primary-700);--components-options-checkbox-border-radius: 6px;--components-options-checkbox-border-color: var(--palettes-grey-700);--components-options-establishment-multiple-padding: 2rem}.lu-tooltip-panel{--components-tooltip-background-color: var(--palettes-grey-900);--components-tooltip-color: var(--colors-white-color);--components-tooltip-max-width: 15rem;background:var(--components-tooltip-background-color);color:var(--components-tooltip-color);padding:var(--spacings-XXS) var(--spacings-XS);max-width:var(--components-tooltip-max-width);border-radius:var(--commons-borderRadius-M);font-size:var(--sizes-XS-fontSize);line-height:var(--sizes-XS-lineHeight);display:block;text-align:center}.lu-tooltip-panel.is-above{transform-origin:bottom center}.lu-tooltip-panel.is-below{transform-origin:top center;margin-top:2px}.lu-tooltip-panel.is-before{transform-origin:center right;margin-right:5px}.lu-tooltip-panel.is-after{transform-origin:center left;margin-left:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: OverlayModule }], animations: [luTransformTooltip], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
60
60
  }
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelComponent, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelComponent, decorators: [{
62
62
  type: Component,
63
63
  args: [{ selector: 'lu-tooltip-panel', animations: [luTransformTooltip], standalone: true, imports: [CommonModule, OverlayModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n\tclass=\"lu-tooltip-panel\"\n\trole=\"tooltip\"\n\t[ngClass]=\"panelClassesMap\"\n\t(mouseover)=\"onMouseOver()\"\n\t(mouseleave)=\"onMouseLeave()\"\n\t[attr.id]=\"panelId\"\n\t[@transformTooltip]=\"'enter'\"\n>\n\t<div class=\"lu-tooltip-content\" [ngClass]=\"contentClassesMap\" [innerHtml]=\"content\"></div>\n</div>\n", styles: [":root{--components-options-item-padding-vertical: var(--spacings-XS);--components-options-item-padding-horizontal: var(--spacings-XS);--components-options-item-multiple-padding: 2.25rem;--components-options-item-icon-color: var(--palettes-grey-800);--components-options-checkbox-left: .5rem;--components-options-checkbox-size: 1.25rem;--components-options-checkbox-color: var(--palettes-primary-700);--components-options-checkbox-border-radius: 6px;--components-options-checkbox-border-color: var(--palettes-grey-700);--components-options-establishment-multiple-padding: 2rem}.lu-tooltip-panel{--components-tooltip-background-color: var(--palettes-grey-900);--components-tooltip-color: var(--colors-white-color);--components-tooltip-max-width: 15rem;background:var(--components-tooltip-background-color);color:var(--components-tooltip-color);padding:var(--spacings-XXS) var(--spacings-XS);max-width:var(--components-tooltip-max-width);border-radius:var(--commons-borderRadius-M);font-size:var(--sizes-XS-fontSize);line-height:var(--sizes-XS-lineHeight);display:block;text-align:center}.lu-tooltip-panel.is-above{transform-origin:bottom center}.lu-tooltip-panel.is-below{transform-origin:top center;margin-top:2px}.lu-tooltip-panel.is-before{transform-origin:center right;margin-right:5px}.lu-tooltip-panel.is-after{transform-origin:center left;margin-left:5px}\n"] }]
64
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { animationState: [{
64
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { animationState: [{
65
65
  type: HostBinding,
66
66
  args: ['@transformTooltip']
67
67
  }], close: [{
@@ -76,11 +76,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
76
76
  }] } });
77
77
 
78
78
  class LuTooltipPanelModule {
79
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
80
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelModule, imports: [LuTooltipPanelComponent], exports: [LuTooltipPanelComponent] }); }
81
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelModule, imports: [LuTooltipPanelComponent] }); }
79
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
80
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelModule, imports: [LuTooltipPanelComponent], exports: [LuTooltipPanelComponent] }); }
81
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelModule, imports: [LuTooltipPanelComponent] }); }
82
82
  }
83
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipPanelModule, decorators: [{
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipPanelModule, decorators: [{
84
84
  type: NgModule,
85
85
  args: [{
86
86
  imports: [LuTooltipPanelComponent],
@@ -210,16 +210,16 @@ class LuTooltipTriggerDirective extends ALuPopoverTrigger {
210
210
  _setTabindex(i = null) {
211
211
  this._elementRef.nativeElement.setAttribute('tabindex', `${i}`);
212
212
  }
213
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerDirective, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
214
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: LuTooltipTriggerDirective, isStandalone: true, selector: "[luTooltip]", inputs: { tooltipContent: ["luTooltip", "tooltipContent"], inputEnterDelay: ["luTooltipEnterDelay", "inputEnterDelay"], inputLeaveDelay: ["luTooltipLeaveDelay", "inputLeaveDelay"], inputDisabled: ["luTooltipDisabled", "inputDisabled"], inputPosition: ["luTooltipPosition", "inputPosition"], inputWhenEllipsis: ["luTooltipWhenEllipsis", "inputWhenEllipsis"] }, outputs: { onOpen: "luTooltipOnOpen", onClose: "luTooltipOnClose" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "focus": "onFocus()", "blur": "onBlur()" }, properties: { "attr.id": "this._attrId", "attr.aria-describedby": "this._attrAriaDescribedBy" } }, usesInheritance: true, ngImport: i0 }); }
213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerDirective, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
214
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.2", type: LuTooltipTriggerDirective, isStandalone: true, selector: "[luTooltip]", inputs: { tooltipContent: ["luTooltip", "tooltipContent"], inputEnterDelay: ["luTooltipEnterDelay", "inputEnterDelay"], inputLeaveDelay: ["luTooltipLeaveDelay", "inputLeaveDelay"], inputDisabled: ["luTooltipDisabled", "inputDisabled"], inputPosition: ["luTooltipPosition", "inputPosition"], inputWhenEllipsis: ["luTooltipWhenEllipsis", "inputWhenEllipsis"] }, outputs: { onOpen: "luTooltipOnOpen", onClose: "luTooltipOnClose" }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()", "focus": "onFocus()", "blur": "onBlur()" }, properties: { "attr.id": "this._attrId", "attr.aria-describedby": "this._attrAriaDescribedBy" } }, usesInheritance: true, ngImport: i0 }); }
215
215
  }
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerDirective, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerDirective, decorators: [{
217
217
  type: Directive,
218
218
  args: [{
219
219
  selector: '[luTooltip]',
220
220
  standalone: true,
221
221
  }]
222
- }], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { tooltipContent: [{
222
+ }], ctorParameters: () => [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }], propDecorators: { tooltipContent: [{
223
223
  type: Input,
224
224
  args: ['luTooltip']
225
225
  }], inputEnterDelay: [{
@@ -264,11 +264,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
264
264
  }] } });
265
265
 
266
266
  class LuTooltipTriggerModule {
267
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
268
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerModule, imports: [LuTooltipTriggerDirective, OverlayModule], exports: [LuTooltipTriggerDirective] }); }
269
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerModule, imports: [OverlayModule] }); }
267
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
268
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerModule, imports: [LuTooltipTriggerDirective, OverlayModule], exports: [LuTooltipTriggerDirective] }); }
269
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerModule, imports: [OverlayModule] }); }
270
270
  }
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipTriggerModule, decorators: [{
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipTriggerModule, decorators: [{
272
272
  type: NgModule,
273
273
  args: [{
274
274
  imports: [LuTooltipTriggerDirective, OverlayModule],
@@ -277,11 +277,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
277
277
  }] });
278
278
 
279
279
  class LuTooltipModule {
280
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
281
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipModule, imports: [LuTooltipTriggerModule, LuTooltipPanelModule], exports: [LuTooltipTriggerModule, LuTooltipPanelModule] }); }
282
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipModule, imports: [LuTooltipTriggerModule, LuTooltipPanelModule, LuTooltipTriggerModule, LuTooltipPanelModule] }); }
280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
281
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipModule, imports: [LuTooltipTriggerModule, LuTooltipPanelModule], exports: [LuTooltipTriggerModule, LuTooltipPanelModule] }); }
282
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipModule, imports: [LuTooltipTriggerModule, LuTooltipPanelModule, LuTooltipTriggerModule, LuTooltipPanelModule] }); }
283
283
  }
284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: LuTooltipModule, decorators: [{
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LuTooltipModule, decorators: [{
285
285
  type: NgModule,
286
286
  args: [{
287
287
  imports: [LuTooltipTriggerModule, LuTooltipPanelModule],
@@ -1 +1 @@
1
- {"version":3,"file":"lucca-front-ng-tooltip.mjs","sources":["../../../packages/ng/tooltip/animation/tooltip.animation.ts","../../../packages/ng/tooltip/panel/tooltip-panel.component.ts","../../../packages/ng/tooltip/panel/tooltip-panel.component.html","../../../packages/ng/tooltip/panel/tooltip-panel.module.ts","../../../packages/ng/tooltip/trigger/tooltip-trigger.directive.ts","../../../packages/ng/tooltip/trigger/tooltip-trigger.module.ts","../../../packages/ng/tooltip/tooltip.module.ts","../../../packages/ng/tooltip/lucca-front-ng-tooltip.ts"],"sourcesContent":["import { trigger, state, style, animate, transition, AnimationTriggerMetadata } from '@angular/animations';\n\nexport const luTransformTooltip: AnimationTriggerMetadata = trigger('transformTooltip', [\n\tstate(\n\t\t'enter',\n\t\tstyle({\n\t\t\topacity: 1,\n\t\t\ttransform: `scale(1)`,\n\t\t}),\n\t),\n\ttransition('void => *', [\n\t\tstyle({\n\t\t\topacity: 0,\n\t\t\ttransform: `scale(0)`,\n\t\t}),\n\t\tanimate(`150ms cubic-bezier(0.25, 0.8, 0.25, 1)`),\n\t]),\n\ttransition('* => void', [animate('50ms 100ms linear', style({ opacity: 0 }))]),\n]);\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostBinding, Output, TemplateRef, ViewChild } from '@angular/core';\nimport { SafeHtml } from '@angular/platform-browser';\nimport { ALuPopoverPanel, ILuPopoverPanel } from '@lucca-front/ng/popover';\nimport { luTransformTooltip } from '../animation/index';\n\n@Component({\n\tselector: 'lu-tooltip-panel',\n\ttemplateUrl: './tooltip-panel.component.html',\n\tstyleUrls: ['./tooltip-panel.component.scss'],\n\tanimations: [luTransformTooltip],\n\tstandalone: true,\n\timports: [CommonModule, OverlayModule],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LuTooltipPanelComponent extends ALuPopoverPanel implements ILuPopoverPanel {\n\t@HostBinding('@transformTooltip') animationState = 'enter';\n\n\tprivate _content: string | SafeHtml;\n\tget content() {\n\t\treturn this._content;\n\t}\n\tset content(c) {\n\t\tthis._content = c;\n\t\tthis._changeDetectorRef.markForCheck();\n\t}\n\n\t//FIXME output event\n\t// eslint-disable-next-line @angular-eslint/no-output-native\n\t@Output() override close = new EventEmitter<void>();\n\t// eslint-disable-next-line @angular-eslint/no-output-native\n\t@Output() override open = new EventEmitter<void>();\n\t@Output() override hovered = new EventEmitter<boolean>();\n\t@ViewChild(TemplateRef, { static: true })\n\tset vcTemplateRef(tr: TemplateRef<HTMLDivElement>) {\n\t\tthis.templateRef = tr;\n\t}\n\tconstructor(private _changeDetectorRef: ChangeDetectorRef) {\n\t\tsuper();\n\t\tthis.scrollStrategy = 'close';\n\t}\n\n\t_emitCloseEvent(): void {\n\t\tthis.close.emit();\n\t}\n\n\t_emitOpenEvent(): void {\n\t\tthis.open.emit();\n\t}\n\t_emitHoveredEvent(hovered: boolean): void {\n\t\tthis.hovered.emit(hovered);\n\t}\n}\n","<div\n\tclass=\"lu-tooltip-panel\"\n\trole=\"tooltip\"\n\t[ngClass]=\"panelClassesMap\"\n\t(mouseover)=\"onMouseOver()\"\n\t(mouseleave)=\"onMouseLeave()\"\n\t[attr.id]=\"panelId\"\n\t[@transformTooltip]=\"'enter'\"\n>\n\t<div class=\"lu-tooltip-content\" [ngClass]=\"contentClassesMap\" [innerHtml]=\"content\"></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { LuTooltipPanelComponent } from './tooltip-panel.component';\n\n@NgModule({\n\timports: [LuTooltipPanelComponent],\n\texports: [LuTooltipPanelComponent],\n})\nexport class LuTooltipPanelModule {}\n","import { FlexibleConnectedPositionStrategy, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, Output, ViewContainerRef } from '@angular/core';\nimport { SafeHtml } from '@angular/platform-browser';\nimport { ALuPopoverTrigger, LuPopoverPosition, LuPopoverScrollStrategy, LuPopoverTarget } from '@lucca-front/ng/popover';\nimport { LuTooltipPanelComponent } from '../panel/tooltip-panel.component';\n\n@Directive({\n\tselector: '[luTooltip]',\n\tstandalone: true,\n})\nexport class LuTooltipTriggerDirective extends ALuPopoverTrigger<LuTooltipPanelComponent, LuPopoverTarget> implements AfterViewInit, OnDestroy {\n\t@Input('luTooltip') set tooltipContent(c: string | SafeHtml) {\n\t\tif (this.panel) {\n\t\t\tthis.panel.content = c;\n\t\t}\n\n\t\tthis._tooltipContent = c;\n\t}\n\t/** when trigger = hover, delay before the popover panel appears, default 300ms */\n\t@Input('luTooltipEnterDelay') set inputEnterDelay(d: number) {\n\t\tthis.enterDelay = d;\n\t}\n\t/** when trigger = hover, delay before the popover panel disappears, default 100ms */\n\t@Input('luTooltipLeaveDelay') set inputLeaveDelay(d: number) {\n\t\tthis.leaveDelay = d;\n\t}\n\t/** disable popover apparition */\n\t@Input('luTooltipDisabled') set inputDisabled(d: boolean) {\n\t\tthis.disabled = d;\n\t\tif (this._handleTabindex) {\n\t\t\tthis._setTabindex(d ? null : 0);\n\t\t}\n\t}\n\n\t@Input('luTooltipPosition') set inputPosition(pos: LuPopoverPosition) {\n\t\tthis.target.position = pos;\n\t}\n\n\t@Input('luTooltipWhenEllipsis') public set inputWhenEllipsis(we: boolean) {\n\t\tthis.whenEllipsis = we;\n\t}\n\n\t// FIXME output native\n\t/** Event emitted when the associated popover is opened. */\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output('luTooltipOnOpen') onOpen = new EventEmitter<void>();\n\t/** Event emitted when the associated popover is closed. */\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output('luTooltipOnClose') onClose = new EventEmitter<void>();\n\n\t@HostListener('mouseenter')\n\toverride onMouseEnter() {\n\t\tsuper.onMouseEnter();\n\t}\n\t@HostListener('mouseleave')\n\toverride onMouseLeave() {\n\t\tsuper.onMouseLeave();\n\t}\n\t@HostListener('focus')\n\toverride onFocus() {\n\t\tsuper.onFocus();\n\t}\n\t@HostListener('blur')\n\toverride onBlur() {\n\t\tsuper.onBlur();\n\t}\n\tprivate _handleTabindex = false;\n\t// @HostBinding('attr.tabindex') tabindex;\n\t// private set tabindex(i: number = null) {\n\n\t// }\n\n\t/** accessibility attribute - dont override */\n\t@HostBinding('attr.id') get _attrId() {\n\t\treturn this._triggerId;\n\t}\n\t/** accessibility attribute - dont override */\n\t@HostBinding('attr.aria-describedby') get _attrAriaDescribedBy() {\n\t\treturn this._panelId;\n\t}\n\n\tprotected override _portal: ComponentPortal<LuTooltipPanelComponent>;\n\tprotected _tooltipContent: string | SafeHtml = '';\n\n\tconstructor(protected override _overlay: Overlay, protected override _elementRef: ElementRef<HTMLElement>, protected override _viewContainerRef: ViewContainerRef) {\n\t\tsuper(_overlay, _elementRef, _viewContainerRef);\n\t\tthis.target = new LuPopoverTarget();\n\t\tthis.target.elementRef = this._elementRef;\n\t\tthis._triggerId = this._elementRef.nativeElement.getAttribute('id') || this._triggerId;\n\t\tthis.triggerEvent = 'hover';\n\t\tthis.target.position = 'above';\n\t\tthis.enterDelay = 300;\n\t\tthis.leaveDelay = 100;\n\n\t\tthis._handleTabindex = this._shouldHandleTabindex();\n\n\t\tif (this._handleTabindex) {\n\t\t\tthis._setTabindex(0);\n\t\t}\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._checkTarget();\n\t}\n\tngOnDestroy() {\n\t\tthis._cleanUpSubscriptions();\n\t\tif (this._popoverOpen) {\n\t\t\tthis.closePopover();\n\t\t}\n\t\tthis.destroyPopover();\n\t}\n\tprotected _emitOpen(): void {\n\t\tthis.onOpen.emit();\n\t}\n\tprotected _emitClose(): void {\n\t\tthis.onClose.emit();\n\t}\n\n\tprotected override _createOverlay(): OverlayRef {\n\t\tif (!this._overlayRef) {\n\t\t\tthis._portal = new ComponentPortal(LuTooltipPanelComponent, this._viewContainerRef);\n\t\t\tconst config = this._getOverlayConfig();\n\t\t\tthis._subscribeToPositions(config.positionStrategy as FlexibleConnectedPositionStrategy);\n\t\t\tthis._overlayRef = this._overlay.create(config);\n\t\t}\n\n\t\treturn this._overlayRef;\n\t}\n\n\tprotected override _attachPortalToOverlay(): void {\n\t\tconst componentRef = this._overlayRef.attach(this._portal);\n\t\tthis._panel = componentRef.instance;\n\t\tthis._panel.content = this._tooltipContent;\n\t}\n\n\tprotected override _getPanelScrollStrategy(): LuPopoverScrollStrategy {\n\t\treturn 'close';\n\t}\n\n\tprivate _shouldHandleTabindex(): boolean {\n\t\tconst tag = this._elementRef.nativeElement.tagName?.toLowerCase();\n\t\t// https://allyjs.io/data-tables/focusable.html\n\t\t// i'm choosing to not support area and iframe, dont @ me\n\t\tconst nativelyFocusableTags = ['a', 'button', 'input', 'select', 'textarea'];\n\t\tconst isNatevelyFocusableTag = nativelyFocusableTags.includes(tag);\n\n\t\tconst hasATabIndex = this._elementRef.nativeElement.getAttribute('tabindex') !== null;\n\n\t\treturn !isNatevelyFocusableTag && !hasATabIndex;\n\t}\n\n\tprivate _setTabindex(i: number = null): void {\n\t\tthis._elementRef.nativeElement.setAttribute('tabindex', `${i}`);\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { LuTooltipTriggerDirective } from './tooltip-trigger.directive';\nimport { OverlayModule } from '@angular/cdk/overlay';\n\n@NgModule({\n\timports: [LuTooltipTriggerDirective, OverlayModule],\n\texports: [LuTooltipTriggerDirective],\n})\nexport class LuTooltipTriggerModule {}\n","import { NgModule } from '@angular/core';\nimport { LuTooltipPanelModule } from './panel/index';\nimport { LuTooltipTriggerModule } from './trigger/index';\n\n@NgModule({\n\timports: [LuTooltipTriggerModule, LuTooltipPanelModule],\n\texports: [LuTooltipTriggerModule, LuTooltipPanelModule],\n})\nexport class LuTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAEa,MAAA,kBAAkB,GAA6B,OAAO,CAAC,kBAAkB,EAAE;AACvF,IAAA,KAAK,CACJ,OAAO,EACP,KAAK,CAAC;AACL,QAAA,OAAO,EAAE,CAAC;AACV,QAAA,SAAS,EAAE,CAAU,QAAA,CAAA;AACrB,KAAA,CAAC,CACF;IACD,UAAU,CAAC,WAAW,EAAE;AACvB,QAAA,KAAK,CAAC;AACL,YAAA,OAAO,EAAE,CAAC;AACV,YAAA,SAAS,EAAE,CAAU,QAAA,CAAA;SACrB,CAAC;QACF,OAAO,CAAC,wCAAwC,CAAC;KACjD,CAAC;AACF,IAAA,UAAU,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,mBAAmB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC9E,CAAA;;ACXD,MASa,uBAAwB,SAAQ,eAAe,CAAA;AAI3D,IAAA,IAAI,OAAO,GAAA;QACV,OAAO,IAAI,CAAC,QAAQ,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CAAC;AACvD,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,oBAAoB,CAAC;AACvD,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"lucca-front-ng-tooltip.mjs","sources":["../../../packages/ng/tooltip/animation/tooltip.animation.ts","../../../packages/ng/tooltip/panel/tooltip-panel.component.ts","../../../packages/ng/tooltip/panel/tooltip-panel.component.html","../../../packages/ng/tooltip/panel/tooltip-panel.module.ts","../../../packages/ng/tooltip/trigger/tooltip-trigger.directive.ts","../../../packages/ng/tooltip/trigger/tooltip-trigger.module.ts","../../../packages/ng/tooltip/tooltip.module.ts","../../../packages/ng/tooltip/lucca-front-ng-tooltip.ts"],"sourcesContent":["import { trigger, state, style, animate, transition, AnimationTriggerMetadata } from '@angular/animations';\n\nexport const luTransformTooltip: AnimationTriggerMetadata = trigger('transformTooltip', [\n\tstate(\n\t\t'enter',\n\t\tstyle({\n\t\t\topacity: 1,\n\t\t\ttransform: `scale(1)`,\n\t\t}),\n\t),\n\ttransition('void => *', [\n\t\tstyle({\n\t\t\topacity: 0,\n\t\t\ttransform: `scale(0)`,\n\t\t}),\n\t\tanimate(`150ms cubic-bezier(0.25, 0.8, 0.25, 1)`),\n\t]),\n\ttransition('* => void', [animate('50ms 100ms linear', style({ opacity: 0 }))]),\n]);\n","import { OverlayModule } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostBinding, Output, TemplateRef, ViewChild } from '@angular/core';\nimport { SafeHtml } from '@angular/platform-browser';\nimport { ALuPopoverPanel, ILuPopoverPanel } from '@lucca-front/ng/popover';\nimport { luTransformTooltip } from '../animation/index';\n\n@Component({\n\tselector: 'lu-tooltip-panel',\n\ttemplateUrl: './tooltip-panel.component.html',\n\tstyleUrls: ['./tooltip-panel.component.scss'],\n\tanimations: [luTransformTooltip],\n\tstandalone: true,\n\timports: [CommonModule, OverlayModule],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class LuTooltipPanelComponent extends ALuPopoverPanel implements ILuPopoverPanel {\n\t@HostBinding('@transformTooltip') animationState = 'enter';\n\n\tprivate _content: string | SafeHtml;\n\tget content() {\n\t\treturn this._content;\n\t}\n\tset content(c) {\n\t\tthis._content = c;\n\t\tthis._changeDetectorRef.markForCheck();\n\t}\n\n\t//FIXME output event\n\t// eslint-disable-next-line @angular-eslint/no-output-native\n\t@Output() override close = new EventEmitter<void>();\n\t// eslint-disable-next-line @angular-eslint/no-output-native\n\t@Output() override open = new EventEmitter<void>();\n\t@Output() override hovered = new EventEmitter<boolean>();\n\t@ViewChild(TemplateRef, { static: true })\n\tset vcTemplateRef(tr: TemplateRef<HTMLDivElement>) {\n\t\tthis.templateRef = tr;\n\t}\n\tconstructor(private _changeDetectorRef: ChangeDetectorRef) {\n\t\tsuper();\n\t\tthis.scrollStrategy = 'close';\n\t}\n\n\t_emitCloseEvent(): void {\n\t\tthis.close.emit();\n\t}\n\n\t_emitOpenEvent(): void {\n\t\tthis.open.emit();\n\t}\n\t_emitHoveredEvent(hovered: boolean): void {\n\t\tthis.hovered.emit(hovered);\n\t}\n}\n","<div\n\tclass=\"lu-tooltip-panel\"\n\trole=\"tooltip\"\n\t[ngClass]=\"panelClassesMap\"\n\t(mouseover)=\"onMouseOver()\"\n\t(mouseleave)=\"onMouseLeave()\"\n\t[attr.id]=\"panelId\"\n\t[@transformTooltip]=\"'enter'\"\n>\n\t<div class=\"lu-tooltip-content\" [ngClass]=\"contentClassesMap\" [innerHtml]=\"content\"></div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { LuTooltipPanelComponent } from './tooltip-panel.component';\n\n@NgModule({\n\timports: [LuTooltipPanelComponent],\n\texports: [LuTooltipPanelComponent],\n})\nexport class LuTooltipPanelModule {}\n","import { FlexibleConnectedPositionStrategy, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { AfterViewInit, Directive, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnDestroy, Output, ViewContainerRef } from '@angular/core';\nimport { SafeHtml } from '@angular/platform-browser';\nimport { ALuPopoverTrigger, LuPopoverPosition, LuPopoverScrollStrategy, LuPopoverTarget } from '@lucca-front/ng/popover';\nimport { LuTooltipPanelComponent } from '../panel/tooltip-panel.component';\n\n@Directive({\n\tselector: '[luTooltip]',\n\tstandalone: true,\n})\nexport class LuTooltipTriggerDirective extends ALuPopoverTrigger<LuTooltipPanelComponent, LuPopoverTarget> implements AfterViewInit, OnDestroy {\n\t@Input('luTooltip') set tooltipContent(c: string | SafeHtml) {\n\t\tif (this.panel) {\n\t\t\tthis.panel.content = c;\n\t\t}\n\n\t\tthis._tooltipContent = c;\n\t}\n\t/** when trigger = hover, delay before the popover panel appears, default 300ms */\n\t@Input('luTooltipEnterDelay') set inputEnterDelay(d: number) {\n\t\tthis.enterDelay = d;\n\t}\n\t/** when trigger = hover, delay before the popover panel disappears, default 100ms */\n\t@Input('luTooltipLeaveDelay') set inputLeaveDelay(d: number) {\n\t\tthis.leaveDelay = d;\n\t}\n\t/** disable popover apparition */\n\t@Input('luTooltipDisabled') set inputDisabled(d: boolean) {\n\t\tthis.disabled = d;\n\t\tif (this._handleTabindex) {\n\t\t\tthis._setTabindex(d ? null : 0);\n\t\t}\n\t}\n\n\t@Input('luTooltipPosition') set inputPosition(pos: LuPopoverPosition) {\n\t\tthis.target.position = pos;\n\t}\n\n\t@Input('luTooltipWhenEllipsis') public set inputWhenEllipsis(we: boolean) {\n\t\tthis.whenEllipsis = we;\n\t}\n\n\t// FIXME output native\n\t/** Event emitted when the associated popover is opened. */\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output('luTooltipOnOpen') onOpen = new EventEmitter<void>();\n\t/** Event emitted when the associated popover is closed. */\n\t// eslint-disable-next-line @angular-eslint/no-output-on-prefix\n\t@Output('luTooltipOnClose') onClose = new EventEmitter<void>();\n\n\t@HostListener('mouseenter')\n\toverride onMouseEnter() {\n\t\tsuper.onMouseEnter();\n\t}\n\t@HostListener('mouseleave')\n\toverride onMouseLeave() {\n\t\tsuper.onMouseLeave();\n\t}\n\t@HostListener('focus')\n\toverride onFocus() {\n\t\tsuper.onFocus();\n\t}\n\t@HostListener('blur')\n\toverride onBlur() {\n\t\tsuper.onBlur();\n\t}\n\tprivate _handleTabindex = false;\n\t// @HostBinding('attr.tabindex') tabindex;\n\t// private set tabindex(i: number = null) {\n\n\t// }\n\n\t/** accessibility attribute - dont override */\n\t@HostBinding('attr.id') get _attrId() {\n\t\treturn this._triggerId;\n\t}\n\t/** accessibility attribute - dont override */\n\t@HostBinding('attr.aria-describedby') get _attrAriaDescribedBy() {\n\t\treturn this._panelId;\n\t}\n\n\tprotected override _portal: ComponentPortal<LuTooltipPanelComponent>;\n\tprotected _tooltipContent: string | SafeHtml = '';\n\n\tconstructor(protected override _overlay: Overlay, protected override _elementRef: ElementRef<HTMLElement>, protected override _viewContainerRef: ViewContainerRef) {\n\t\tsuper(_overlay, _elementRef, _viewContainerRef);\n\t\tthis.target = new LuPopoverTarget();\n\t\tthis.target.elementRef = this._elementRef;\n\t\tthis._triggerId = this._elementRef.nativeElement.getAttribute('id') || this._triggerId;\n\t\tthis.triggerEvent = 'hover';\n\t\tthis.target.position = 'above';\n\t\tthis.enterDelay = 300;\n\t\tthis.leaveDelay = 100;\n\n\t\tthis._handleTabindex = this._shouldHandleTabindex();\n\n\t\tif (this._handleTabindex) {\n\t\t\tthis._setTabindex(0);\n\t\t}\n\t}\n\n\tngAfterViewInit() {\n\t\tthis._checkTarget();\n\t}\n\tngOnDestroy() {\n\t\tthis._cleanUpSubscriptions();\n\t\tif (this._popoverOpen) {\n\t\t\tthis.closePopover();\n\t\t}\n\t\tthis.destroyPopover();\n\t}\n\tprotected _emitOpen(): void {\n\t\tthis.onOpen.emit();\n\t}\n\tprotected _emitClose(): void {\n\t\tthis.onClose.emit();\n\t}\n\n\tprotected override _createOverlay(): OverlayRef {\n\t\tif (!this._overlayRef) {\n\t\t\tthis._portal = new ComponentPortal(LuTooltipPanelComponent, this._viewContainerRef);\n\t\t\tconst config = this._getOverlayConfig();\n\t\t\tthis._subscribeToPositions(config.positionStrategy as FlexibleConnectedPositionStrategy);\n\t\t\tthis._overlayRef = this._overlay.create(config);\n\t\t}\n\n\t\treturn this._overlayRef;\n\t}\n\n\tprotected override _attachPortalToOverlay(): void {\n\t\tconst componentRef = this._overlayRef.attach(this._portal);\n\t\tthis._panel = componentRef.instance;\n\t\tthis._panel.content = this._tooltipContent;\n\t}\n\n\tprotected override _getPanelScrollStrategy(): LuPopoverScrollStrategy {\n\t\treturn 'close';\n\t}\n\n\tprivate _shouldHandleTabindex(): boolean {\n\t\tconst tag = this._elementRef.nativeElement.tagName?.toLowerCase();\n\t\t// https://allyjs.io/data-tables/focusable.html\n\t\t// i'm choosing to not support area and iframe, dont @ me\n\t\tconst nativelyFocusableTags = ['a', 'button', 'input', 'select', 'textarea'];\n\t\tconst isNatevelyFocusableTag = nativelyFocusableTags.includes(tag);\n\n\t\tconst hasATabIndex = this._elementRef.nativeElement.getAttribute('tabindex') !== null;\n\n\t\treturn !isNatevelyFocusableTag && !hasATabIndex;\n\t}\n\n\tprivate _setTabindex(i: number = null): void {\n\t\tthis._elementRef.nativeElement.setAttribute('tabindex', `${i}`);\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { LuTooltipTriggerDirective } from './tooltip-trigger.directive';\nimport { OverlayModule } from '@angular/cdk/overlay';\n\n@NgModule({\n\timports: [LuTooltipTriggerDirective, OverlayModule],\n\texports: [LuTooltipTriggerDirective],\n})\nexport class LuTooltipTriggerModule {}\n","import { NgModule } from '@angular/core';\nimport { LuTooltipPanelModule } from './panel/index';\nimport { LuTooltipTriggerModule } from './trigger/index';\n\n@NgModule({\n\timports: [LuTooltipTriggerModule, LuTooltipPanelModule],\n\texports: [LuTooltipTriggerModule, LuTooltipPanelModule],\n})\nexport class LuTooltipModule {}\n","/**\n * Gener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