@lucca-front/ng 15.0.4-alpha1 → 15.1.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/core/lib/date/string/string-date.adapter.d.ts +1 -1
  2. package/esm2020/a11y/lib/skip-links/skip-links.component.mjs +6 -5
  3. package/esm2020/api/lib/api.module.mjs +4 -4
  4. package/esm2020/api/lib/select/api-select.module.mjs +4 -4
  5. package/esm2020/api/lib/select/feeder/api-feeder.component.mjs +3 -3
  6. package/esm2020/api/lib/select/feeder/api-feeder.module.mjs +4 -4
  7. package/esm2020/api/lib/select/input/api-select-input.component.mjs +6 -6
  8. package/esm2020/api/lib/select/input/api-select-input.module.mjs +4 -4
  9. package/esm2020/api/lib/select/pager/api-pager.component.mjs +3 -3
  10. package/esm2020/api/lib/select/pager/api-pager.module.mjs +4 -4
  11. package/esm2020/api/lib/select/searcher/api-searcher.component.mjs +11 -11
  12. package/esm2020/api/lib/select/searcher/api-searcher.module.mjs +4 -4
  13. package/esm2020/api/lib/service/api-hybrid.service.mjs +3 -3
  14. package/esm2020/api/lib/service/api-v3.service.mjs +3 -3
  15. package/esm2020/api/lib/service/api-v4.service.mjs +3 -3
  16. package/esm2020/core/lib/date/native/native-date.adapter.mjs +5 -5
  17. package/esm2020/core/lib/date/string/string-date.adapter.mjs +6 -6
  18. package/esm2020/date/lib/adapter/date-adapter.module.mjs +4 -4
  19. package/esm2020/date/lib/adapter/date-adapter.pipe.mjs +3 -3
  20. package/esm2020/date/lib/calendar/calendar-input.component.mjs +6 -6
  21. package/esm2020/date/lib/calendar/calendar-input.module.mjs +4 -4
  22. package/esm2020/date/lib/calendar/calendar-item.factory.mjs +3 -3
  23. package/esm2020/date/lib/date.module.mjs +4 -4
  24. package/esm2020/date/lib/input/date-input.directive.mjs +3 -3
  25. package/esm2020/date/lib/input/date-input.module.mjs +4 -4
  26. package/esm2020/date/lib/picker/date-picker.component.mjs +3 -3
  27. package/esm2020/date/lib/picker/date-picker.module.mjs +4 -4
  28. package/esm2020/date/lib/select/date-select-input.component.mjs +6 -6
  29. package/esm2020/date/lib/select/date-select-input.module.mjs +4 -4
  30. package/esm2020/department/lib/department.module.mjs +4 -4
  31. package/esm2020/department/lib/select/department-select.module.mjs +4 -4
  32. package/esm2020/department/lib/select/feeder/department-feeder.component.mjs +3 -3
  33. package/esm2020/department/lib/select/feeder/department-feeder.module.mjs +4 -4
  34. package/esm2020/department/lib/select/input/department-select-input.component.mjs +6 -6
  35. package/esm2020/department/lib/select/input/department-select-input.module.mjs +4 -4
  36. package/esm2020/department/lib/service/department-v3.service.mjs +3 -3
  37. package/esm2020/dropdown/lib/dropdown.module.mjs +4 -4
  38. package/esm2020/dropdown/lib/item/dropdown-item.directive.mjs +3 -3
  39. package/esm2020/dropdown/lib/item/dropdown-item.module.mjs +4 -4
  40. package/esm2020/dropdown/lib/panel/dropdown-panel.component.mjs +3 -3
  41. package/esm2020/dropdown/lib/panel/dropdown-panel.module.mjs +4 -4
  42. package/esm2020/dropdown/lib/trigger/dropdown-trigger.directive.mjs +3 -3
  43. package/esm2020/dropdown/lib/trigger/dropdown-trigger.module.mjs +4 -4
  44. package/esm2020/establishment/lib/establishment.module.mjs +4 -4
  45. package/esm2020/establishment/lib/select/establishment-select.module.mjs +4 -4
  46. package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.directive.mjs +3 -3
  47. package/esm2020/establishment/lib/select/for-legal-units/for-legal-units.module.mjs +4 -4
  48. package/esm2020/establishment/lib/select/input/establishment-select-input.component.mjs +6 -6
  49. package/esm2020/establishment/lib/select/input/establishment-select-input.module.mjs +4 -4
  50. package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.directive.mjs +3 -3
  51. package/esm2020/establishment/lib/select/legal-unit-selector/legal-unit-selector.module.mjs +4 -4
  52. package/esm2020/establishment/lib/select/searcher/establishment-searcher.component.mjs +18 -20
  53. package/esm2020/establishment/lib/select/searcher/establishment-searcher.module.mjs +4 -4
  54. package/esm2020/establishment/lib/select/select-all/establishment-select-all.component.mjs +6 -6
  55. package/esm2020/establishment/lib/select/select-all/establishment-select-all.module.mjs +4 -4
  56. package/esm2020/establishment/lib/service/establishment.service.mjs +3 -3
  57. package/esm2020/establishment/lib/service/legal-unit.service.mjs +3 -3
  58. package/esm2020/formly/lib/formly.module.mjs +4 -4
  59. package/esm2020/formly/lib/types/api.mjs +3 -3
  60. package/esm2020/formly/lib/types/checkbox.mjs +3 -3
  61. package/esm2020/formly/lib/types/date.mjs +3 -3
  62. package/esm2020/formly/lib/types/department.mjs +3 -3
  63. package/esm2020/formly/lib/types/establishment.mjs +3 -3
  64. package/esm2020/formly/lib/types/input.mjs +3 -3
  65. package/esm2020/formly/lib/types/qualification.mjs +3 -3
  66. package/esm2020/formly/lib/types/radios.mjs +3 -3
  67. package/esm2020/formly/lib/types/select.mjs +3 -3
  68. package/esm2020/formly/lib/types/textarea.mjs +3 -3
  69. package/esm2020/formly/lib/types/user.mjs +3 -3
  70. package/esm2020/formly/lib/wrappers/checkbox-layout.mjs +3 -3
  71. package/esm2020/formly/lib/wrappers/error.mjs +6 -6
  72. package/esm2020/formly/lib/wrappers/helper.mjs +3 -3
  73. package/esm2020/formly/lib/wrappers/icon.mjs +3 -3
  74. package/esm2020/formly/lib/wrappers/radiosfield-layout.mjs +3 -3
  75. package/esm2020/formly/lib/wrappers/suffix.mjs +3 -3
  76. package/esm2020/formly/lib/wrappers/textfield-layout.mjs +3 -3
  77. package/esm2020/input/lib/clearer/clearer.component.mjs +6 -6
  78. package/esm2020/input/lib/clearer/clearer.module.mjs +4 -4
  79. package/esm2020/input/lib/displayer/input-displayer.directive.mjs +3 -3
  80. package/esm2020/input/lib/displayer/input-displayer.module.mjs +4 -4
  81. package/esm2020/input/lib/input.directive.mjs +3 -3
  82. package/esm2020/input/lib/input.module.mjs +4 -4
  83. package/esm2020/material/lib/module.mjs +4 -4
  84. package/esm2020/modal/lib/modal-panel.component.mjs +12 -12
  85. package/esm2020/modal/lib/modal-ref.factory.mjs +3 -3
  86. package/esm2020/modal/lib/modal.module.mjs +4 -4
  87. package/esm2020/modal/lib/modal.service.mjs +3 -3
  88. package/esm2020/number/lib/number.module.mjs +4 -4
  89. package/esm2020/number/lib/number.pipe.mjs +3 -3
  90. package/esm2020/option/lib/item/option-item.component.mjs +6 -6
  91. package/esm2020/option/lib/item/option-item.module.mjs +4 -4
  92. package/esm2020/option/lib/item/tree-option-item.component.mjs +6 -6
  93. package/esm2020/option/lib/item/tree-option-item.module.mjs +4 -4
  94. package/esm2020/option/lib/operator/feeder/option-feeder.component.mjs +3 -3
  95. package/esm2020/option/lib/operator/feeder/option-feeder.module.mjs +4 -4
  96. package/esm2020/option/lib/operator/feeder/tree-option-feeder.component.mjs +3 -3
  97. package/esm2020/option/lib/operator/feeder/tree-option-feeder.module.mjs +4 -4
  98. package/esm2020/option/lib/operator/for-groups/for-groups.directive.mjs +3 -3
  99. package/esm2020/option/lib/operator/for-groups/for-groups.module.mjs +4 -4
  100. package/esm2020/option/lib/operator/for-options/for-options.directive.mjs +3 -3
  101. package/esm2020/option/lib/operator/for-options/for-options.module.mjs +4 -4
  102. package/esm2020/option/lib/operator/for-options/for-tree-options.directive.mjs +3 -3
  103. package/esm2020/option/lib/operator/for-options/for-tree-options.module.mjs +4 -4
  104. package/esm2020/option/lib/operator/option-operator.module.mjs +4 -4
  105. package/esm2020/option/lib/operator/pager/option-pager.component.mjs +3 -3
  106. package/esm2020/option/lib/operator/pager/option-pager.module.mjs +4 -4
  107. package/esm2020/option/lib/operator/pager/tree-option-pager.component.mjs +3 -3
  108. package/esm2020/option/lib/operator/pager/tree-option-pager.module.mjs +4 -4
  109. package/esm2020/option/lib/operator/searcher/option-searcher.component.mjs +6 -6
  110. package/esm2020/option/lib/operator/searcher/option-searcher.module.mjs +4 -4
  111. package/esm2020/option/lib/operator/searcher/tree-option-searcher.component.mjs +6 -6
  112. package/esm2020/option/lib/operator/searcher/tree-option-searcher.module.mjs +4 -4
  113. package/esm2020/option/lib/operator/tree-option-operator.module.mjs +4 -4
  114. package/esm2020/option/lib/option.module.mjs +4 -4
  115. package/esm2020/option/lib/picker/option-picker-advanced.component.mjs +6 -6
  116. package/esm2020/option/lib/picker/option-picker.component.mjs +6 -6
  117. package/esm2020/option/lib/picker/option-picker.module.mjs +4 -4
  118. package/esm2020/option/lib/picker/tree-option-picker-advanced.component.mjs +6 -6
  119. package/esm2020/option/lib/picker/tree-option-picker.component.mjs +6 -6
  120. package/esm2020/option/lib/picker/tree-option-picker.module.mjs +4 -4
  121. package/esm2020/option/lib/placeholder/option-placeholder.component.mjs +5 -5
  122. package/esm2020/option/lib/placeholder/option-placeholder.module.mjs +4 -4
  123. package/esm2020/option/lib/selector/all/select-all.component.mjs +6 -6
  124. package/esm2020/option/lib/selector/all/select-all.module.mjs +4 -4
  125. package/esm2020/option/lib/selector/all/tree-select-all.component.mjs +6 -6
  126. package/esm2020/option/lib/selector/all/tree-select-all.module.mjs +4 -4
  127. package/esm2020/option/lib/selector/option-selector.module.mjs +4 -4
  128. package/esm2020/option/lib/selector/tree-option-selector.module.mjs +4 -4
  129. package/esm2020/option/lib/tree-option.module.mjs +4 -4
  130. package/esm2020/popover/lib/panel/popover-panel.component.mjs +3 -3
  131. package/esm2020/popover/lib/panel/popover-panel.module.mjs +4 -4
  132. package/esm2020/popover/lib/popover.module.mjs +4 -4
  133. package/esm2020/popover/lib/target/popover-target.directive.mjs +3 -3
  134. package/esm2020/popover/lib/target/popover-target.module.mjs +4 -4
  135. package/esm2020/popover/lib/trigger/popover-trigger.directive.mjs +3 -3
  136. package/esm2020/popover/lib/trigger/popover-trigger.module.mjs +4 -4
  137. package/esm2020/popup/lib/popup-ref.factory.mjs +3 -3
  138. package/esm2020/popup/lib/popup.module.mjs +4 -4
  139. package/esm2020/popup/lib/popup.service.mjs +3 -3
  140. package/esm2020/qualification/lib/qualification.module.mjs +4 -4
  141. package/esm2020/qualification/lib/select/input/qualification-select-input.component.mjs +6 -6
  142. package/esm2020/qualification/lib/select/input/qualification-select-input.module.mjs +4 -4
  143. package/esm2020/qualification/lib/select/qualification-select.module.mjs +4 -4
  144. package/esm2020/safe-content/lib/safe-content.module.mjs +4 -4
  145. package/esm2020/safe-content/lib/safe-html.pipe.mjs +3 -3
  146. package/esm2020/scroll/lib/scroll.directive.mjs +3 -3
  147. package/esm2020/scroll/lib/scroll.module.mjs +4 -4
  148. package/esm2020/select/lib/input/select-input.component.mjs +8 -8
  149. package/esm2020/select/lib/input/select-input.module.mjs +4 -4
  150. package/esm2020/select/lib/select.module.mjs +4 -4
  151. package/esm2020/sidepanel/lib/sidepanel-panel.component.mjs +9 -9
  152. package/esm2020/sidepanel/lib/sidepanel-ref.factory.mjs +3 -3
  153. package/esm2020/sidepanel/lib/sidepanel.module.mjs +4 -4
  154. package/esm2020/sidepanel/lib/sidepanel.service.mjs +3 -3
  155. package/esm2020/simple-select/lib/input/select-input.component.mjs +11 -10
  156. package/esm2020/simple-select/lib/option/displayer.directive.mjs +3 -3
  157. package/esm2020/simple-select/lib/option/option.component.mjs +5 -5
  158. package/esm2020/simple-select/lib/option/option.directive.mjs +3 -3
  159. package/esm2020/simple-select/lib/panel/panel.component.mjs +7 -6
  160. package/esm2020/title/lib/title.module.mjs +4 -4
  161. package/esm2020/title/lib/title.service.mjs +3 -3
  162. package/esm2020/title/lib/title.strategy.mjs +3 -3
  163. package/esm2020/toast/public-api.mjs +2 -2
  164. package/esm2020/toast/toasts.component.mjs +5 -5
  165. package/esm2020/toast/toasts.model.mjs +1 -1
  166. package/esm2020/toast/toasts.module.mjs +4 -4
  167. package/esm2020/toast/toasts.service.mjs +7 -7
  168. package/esm2020/tooltip/lib/panel/tooltip-panel.component.mjs +5 -5
  169. package/esm2020/tooltip/lib/panel/tooltip-panel.module.mjs +4 -4
  170. package/esm2020/tooltip/lib/tooltip.module.mjs +4 -4
  171. package/esm2020/tooltip/lib/trigger/tooltip-trigger.directive.mjs +3 -3
  172. package/esm2020/tooltip/lib/trigger/tooltip-trigger.module.mjs +4 -4
  173. package/esm2020/user/lib/display/display-format.model.mjs +4 -1
  174. package/esm2020/user/lib/display/user-display.module.mjs +4 -4
  175. package/esm2020/user/lib/display/user-display.pipe.mjs +61 -51
  176. package/esm2020/user/lib/picture/user-picture.component.mjs +4 -4
  177. package/esm2020/user/lib/picture/user-picture.module.mjs +4 -4
  178. package/esm2020/user/lib/select/homonyms/user-homonyms.component.mjs +3 -3
  179. package/esm2020/user/lib/select/homonyms/user-homonyms.module.mjs +4 -4
  180. package/esm2020/user/lib/select/homonyms/user-homonyms.service.mjs +3 -3
  181. package/esm2020/user/lib/select/input/user-select-input.component.mjs +6 -6
  182. package/esm2020/user/lib/select/input/user-select-input.module.mjs +4 -4
  183. package/esm2020/user/lib/select/me/me-option.directive.mjs +3 -3
  184. package/esm2020/user/lib/select/me/me-option.module.mjs +4 -4
  185. package/esm2020/user/lib/select/searcher/user-searcher.component.mjs +6 -6
  186. package/esm2020/user/lib/select/searcher/user-searcher.module.mjs +4 -4
  187. package/esm2020/user/lib/select/user-select.module.mjs +4 -4
  188. package/esm2020/user/lib/service/user-v3.service.mjs +3 -3
  189. package/esm2020/user/lib/tile/user-tile.component.mjs +4 -4
  190. package/esm2020/user/lib/tile/user-tile.module.mjs +4 -4
  191. package/esm2020/user/lib/user.module.mjs +4 -4
  192. package/establishment/lib/select/searcher/establishment-searcher.component.d.ts +6 -6
  193. package/fesm2015/lucca-front-ng-a11y.mjs +5 -4
  194. package/fesm2015/lucca-front-ng-a11y.mjs.map +1 -1
  195. package/fesm2015/lucca-front-ng-api.mjs +54 -54
  196. package/fesm2015/lucca-front-ng-api.mjs.map +1 -1
  197. package/fesm2015/lucca-front-ng-core.mjs +9 -9
  198. package/fesm2015/lucca-front-ng-core.mjs.map +1 -1
  199. package/fesm2015/lucca-front-ng-date.mjs +46 -46
  200. package/fesm2015/lucca-front-ng-date.mjs.map +1 -1
  201. package/fesm2015/lucca-front-ng-department.mjs +27 -27
  202. package/fesm2015/lucca-front-ng-department.mjs.map +1 -1
  203. package/fesm2015/lucca-front-ng-dropdown.mjs +25 -25
  204. package/fesm2015/lucca-front-ng-establishment.mjs +67 -69
  205. package/fesm2015/lucca-front-ng-establishment.mjs.map +1 -1
  206. package/fesm2015/lucca-front-ng-formly.mjs +61 -61
  207. package/fesm2015/lucca-front-ng-input.mjs +23 -23
  208. package/fesm2015/lucca-front-ng-input.mjs.map +1 -1
  209. package/fesm2015/lucca-front-ng-material.mjs +4 -4
  210. package/fesm2015/lucca-front-ng-modal.mjs +21 -21
  211. package/fesm2015/lucca-front-ng-modal.mjs.map +1 -1
  212. package/fesm2015/lucca-front-ng-number.mjs +7 -7
  213. package/fesm2015/lucca-front-ng-option.mjs +167 -167
  214. package/fesm2015/lucca-front-ng-option.mjs.map +1 -1
  215. package/fesm2015/lucca-front-ng-popover.mjs +25 -25
  216. package/fesm2015/lucca-front-ng-popup.mjs +10 -10
  217. package/fesm2015/lucca-front-ng-qualification.mjs +17 -17
  218. package/fesm2015/lucca-front-ng-qualification.mjs.map +1 -1
  219. package/fesm2015/lucca-front-ng-safe-content.mjs +7 -7
  220. package/fesm2015/lucca-front-ng-scroll.mjs +7 -7
  221. package/fesm2015/lucca-front-ng-select.mjs +16 -16
  222. package/fesm2015/lucca-front-ng-select.mjs.map +1 -1
  223. package/fesm2015/lucca-front-ng-sidepanel.mjs +18 -18
  224. package/fesm2015/lucca-front-ng-sidepanel.mjs.map +1 -1
  225. package/fesm2015/lucca-front-ng-simple-select.mjs +24 -23
  226. package/fesm2015/lucca-front-ng-simple-select.mjs.map +1 -1
  227. package/fesm2015/lucca-front-ng-title.mjs +10 -10
  228. package/fesm2015/lucca-front-ng-toast.mjs +15 -15
  229. package/fesm2015/lucca-front-ng-toast.mjs.map +1 -1
  230. package/fesm2015/lucca-front-ng-tooltip.mjs +19 -19
  231. package/fesm2015/lucca-front-ng-tooltip.mjs.map +1 -1
  232. package/fesm2015/lucca-front-ng-user.mjs +129 -117
  233. package/fesm2015/lucca-front-ng-user.mjs.map +1 -1
  234. package/fesm2020/lucca-front-ng-a11y.mjs +5 -4
  235. package/fesm2020/lucca-front-ng-a11y.mjs.map +1 -1
  236. package/fesm2020/lucca-front-ng-api.mjs +54 -54
  237. package/fesm2020/lucca-front-ng-api.mjs.map +1 -1
  238. package/fesm2020/lucca-front-ng-core.mjs +9 -9
  239. package/fesm2020/lucca-front-ng-core.mjs.map +1 -1
  240. package/fesm2020/lucca-front-ng-date.mjs +46 -46
  241. package/fesm2020/lucca-front-ng-date.mjs.map +1 -1
  242. package/fesm2020/lucca-front-ng-department.mjs +27 -27
  243. package/fesm2020/lucca-front-ng-department.mjs.map +1 -1
  244. package/fesm2020/lucca-front-ng-dropdown.mjs +25 -25
  245. package/fesm2020/lucca-front-ng-establishment.mjs +67 -69
  246. package/fesm2020/lucca-front-ng-establishment.mjs.map +1 -1
  247. package/fesm2020/lucca-front-ng-formly.mjs +61 -61
  248. package/fesm2020/lucca-front-ng-input.mjs +23 -23
  249. package/fesm2020/lucca-front-ng-input.mjs.map +1 -1
  250. package/fesm2020/lucca-front-ng-material.mjs +4 -4
  251. package/fesm2020/lucca-front-ng-modal.mjs +21 -21
  252. package/fesm2020/lucca-front-ng-modal.mjs.map +1 -1
  253. package/fesm2020/lucca-front-ng-number.mjs +7 -7
  254. package/fesm2020/lucca-front-ng-option.mjs +167 -167
  255. package/fesm2020/lucca-front-ng-option.mjs.map +1 -1
  256. package/fesm2020/lucca-front-ng-popover.mjs +25 -25
  257. package/fesm2020/lucca-front-ng-popup.mjs +10 -10
  258. package/fesm2020/lucca-front-ng-qualification.mjs +17 -17
  259. package/fesm2020/lucca-front-ng-qualification.mjs.map +1 -1
  260. package/fesm2020/lucca-front-ng-safe-content.mjs +7 -7
  261. package/fesm2020/lucca-front-ng-scroll.mjs +7 -7
  262. package/fesm2020/lucca-front-ng-select.mjs +16 -16
  263. package/fesm2020/lucca-front-ng-select.mjs.map +1 -1
  264. package/fesm2020/lucca-front-ng-sidepanel.mjs +18 -18
  265. package/fesm2020/lucca-front-ng-sidepanel.mjs.map +1 -1
  266. package/fesm2020/lucca-front-ng-simple-select.mjs +24 -23
  267. package/fesm2020/lucca-front-ng-simple-select.mjs.map +1 -1
  268. package/fesm2020/lucca-front-ng-title.mjs +10 -10
  269. package/fesm2020/lucca-front-ng-toast.mjs +15 -15
  270. package/fesm2020/lucca-front-ng-toast.mjs.map +1 -1
  271. package/fesm2020/lucca-front-ng-tooltip.mjs +19 -19
  272. package/fesm2020/lucca-front-ng-tooltip.mjs.map +1 -1
  273. package/fesm2020/lucca-front-ng-user.mjs +129 -117
  274. package/fesm2020/lucca-front-ng-user.mjs.map +1 -1
  275. package/material/style/components/_dialog.scss +2 -2
  276. package/material/style/components/_select.scss +4 -4
  277. package/material/style/components/_tooltip.scss +5 -5
  278. package/package.json +3 -3
  279. package/schematics/lib/local-deps/package-lock.json +54 -0
  280. package/schematics/lib/local-deps/package.json +1 -0
  281. package/schematics/lib/local-deps/postcss-selector-parser.js +5 -0
  282. package/schematics/lib/local-deps/postcss-value-parser.js +2 -5
  283. package/schematics/lib/local-deps/postcss.js +1 -24
  284. package/schematics/lib/migration-test.js +50 -0
  285. package/schematics/lib/schematics.js +19 -0
  286. package/schematics/lib/scss-ast.js +37 -3
  287. package/schematics/migrations/tshirt-size/index.js +43 -0
  288. package/schematics/migrations/tshirt-size/mapping.js +194 -0
  289. package/schematics/migrations/tshirt-size/migration.js +31 -0
  290. package/schematics/migrations/tshirt-size/migration.spec.js +43 -0
  291. package/schematics/migrations.json +4 -4
  292. package/src/components/_dropdown.scss +5 -5
  293. package/src/components/_picker.scss +1 -1
  294. package/src/components/_popup.scss +42 -45
  295. package/src/components/_sidepanel.scss +17 -14
  296. package/src/components/cdk/_dragDrop.scss +7 -7
  297. package/src/components/cdk/_textarea.scss +1 -1
  298. package/src/definitions/option/_option-item.scss +6 -6
  299. package/src/definitions/option/_option-searcher.scss +1 -1
  300. package/src/definitions/option/_option-selector.scss +1 -1
  301. package/src/definitions/select/_select-clearer.scss +1 -1
  302. package/src/definitions/select/_select-input.scss +29 -29
  303. package/src/definitions/tooltip/_tooltip.scss +4 -4
  304. package/src/definitions/user/user-picture.scss +34 -34
  305. package/src/definitions/user/user-tile.scss +26 -26
  306. package/toast/public-api.d.ts +1 -1
  307. package/toast/toasts.model.d.ts +10 -2
  308. package/toast/toasts.service.d.ts +1 -1
  309. package/user/lib/display/display-format.model.d.ts +3 -0
  310. package/user/lib/display/user-display.pipe.d.ts +6 -0
  311. package/schematics/migrations/css-vars/css-class-registry.js +0 -88
  312. package/schematics/migrations/css-vars/index.js +0 -109
  313. package/schematics/migrations/css-vars/migration.js +0 -149
  314. package/schematics/migrations/css-vars/migration.spec.js +0 -153
  315. package/schematics/migrations/css-vars/mixin-registry.js +0 -41
  316. package/schematics/migrations/css-vars/updaters/color.js +0 -95
  317. package/schematics/migrations/css-vars/updaters/elevation.js +0 -18
  318. package/schematics/migrations/css-vars/updaters/get-set.js +0 -26
  319. package/schematics/migrations/css-vars/updaters/icon-sizing.js +0 -17
  320. package/schematics/migrations/css-vars/updaters/ie11.js +0 -21
  321. package/schematics/migrations/css-vars/updaters/main-import.js +0 -40
  322. package/schematics/migrations/css-vars/updaters/mixins.js +0 -56
  323. package/schematics/migrations/css-vars/updaters/remove-scss-placeholder.js +0 -40
  324. package/schematics/migrations/css-vars/updaters/theme.js +0 -59
  325. package/schematics/migrations/css-vars/updaters/warning.js +0 -9
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateGetSetFunctions = void 0;
4
- const scss_ast_js_1 = require("../../../lib/scss-ast.js");
5
- const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
6
- function updateGetSetFunctions(root, postCss, postcssValueParser) {
7
- root.walkAtRules((atRule) => {
8
- new scss_value_ast_js_1.ScssValueAst(atRule.params, postcssValueParser).walkFunction('_getMap', () => {
9
- (0, scss_ast_js_1.commentNode)(atRule, 'Passer directement par des variables CSS.', postCss);
10
- return false;
11
- });
12
- });
13
- root.walkDecls((decl) => {
14
- const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
15
- valueNode.walkFunction('_safeGet', () => {
16
- (0, scss_ast_js_1.commentNode)(decl, 'Passer directement par des variables CSS.', postCss);
17
- return false;
18
- });
19
- valueNode.walkFunction('_set', () => {
20
- (0, scss_ast_js_1.commentNode)(decl, 'Créer directement des variables CSS.', postCss);
21
- return false;
22
- });
23
- decl.value = valueNode.toString();
24
- });
25
- }
26
- exports.updateGetSetFunctions = updateGetSetFunctions;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateIconSizing = void 0;
4
- const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
5
- function updateIconSizing(root, postCss, postcssValueParser) {
6
- root.walkAtRules('include', (atRule) => {
7
- const valueNode = new scss_value_ast_js_1.ScssValueAst(atRule.params, postcssValueParser);
8
- valueNode.walkFunction('iconSizing', (funcNode) => {
9
- const size = funcNode.nodes[0].value;
10
- atRule.replaceWith(new postCss.Declaration({
11
- prop: 'font-size',
12
- value: `calc(var(--sizes-${size}-font-size) * 1.25)`,
13
- }));
14
- });
15
- });
16
- }
17
- exports.updateIconSizing = updateIconSizing;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeIE11ThemeSupport = void 0;
4
- const scss_ast_js_1 = require("../../../lib/scss-ast.js");
5
- const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
6
- function removeIE11ThemeSupport(root, postcssValueParser) {
7
- root.walkDecls((decl) => {
8
- const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
9
- valueNode.walkFunction(/(_theme|_color|_safeGet)/, (funcNode) => {
10
- const hasModeIE = funcNode.nodes[funcNode.nodes.length - 1]?.value === 'true';
11
- if (hasModeIE) {
12
- const { parent } = decl;
13
- decl.remove();
14
- (0, scss_ast_js_1.removeContainerIfEmpty)(parent);
15
- return false;
16
- }
17
- return undefined;
18
- });
19
- });
20
- }
21
- exports.removeIE11ThemeSupport = removeIE11ThemeSupport;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateMainImport = void 0;
4
- const scss_ast_js_1 = require("../../../lib/scss-ast.js");
5
- function updateMainImport(root, postCss, postCssValueParser) {
6
- let hasMainScss = false;
7
- let hasMainNg = false;
8
- root.walkAtRules('import', (atRule) => {
9
- if (atRule.params.includes('scss/src/theming.overridable')) {
10
- (0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/theming.overridable', postCssValueParser);
11
- }
12
- if (atRule.params.includes('scss/src/main.overridable')) {
13
- (0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/main.overridable', postCssValueParser);
14
- hasMainScss = true;
15
- }
16
- if (atRule.params.includes('ng/style/main.overridable')) {
17
- (0, scss_ast_js_1.removeImportNode)(atRule, 'ng/style/main.overridable', postCssValueParser);
18
- hasMainNg = true;
19
- }
20
- if (atRule.params.includes('scss/src/theming')) {
21
- (0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/theming', postCssValueParser);
22
- }
23
- if (atRule.params.includes('scss/src/main')) {
24
- (0, scss_ast_js_1.removeImportNode)(atRule, 'scss/src/main', postCssValueParser);
25
- hasMainScss = true;
26
- }
27
- if (atRule.params.includes('ng/style/main')) {
28
- (0, scss_ast_js_1.removeImportNode)(atRule, 'ng/style/main', postCssValueParser);
29
- hasMainNg = true;
30
- }
31
- });
32
- if (hasMainScss) {
33
- (0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/icons/src/main', postCss);
34
- (0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/scss/src/main', postCss);
35
- }
36
- if (hasMainNg) {
37
- (0, scss_ast_js_1.addForwardRule)(root, '@lucca-front/ng/src/main', postCss);
38
- }
39
- }
40
- exports.updateMainImport = updateMainImport;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.replaceIncludedMixin = exports.replaceFuncMixinsWithoutInclude = void 0;
4
- const scss_ast_js_1 = require("../../../lib/scss-ast.js");
5
- const funcMixins = [
6
- {
7
- legacy: 'fakeborderoverlay',
8
- register: 'fakeBorderOverlay',
9
- },
10
- ];
11
- function replaceFuncMixinsWithoutInclude(root, registry, postCss) {
12
- const neededNamespaceByImport = {};
13
- root.walkDecls((decl) => {
14
- for (const specialMixin of funcMixins) {
15
- if (!decl.value.includes(specialMixin.legacy)) {
16
- continue;
17
- }
18
- const mixin = registry.getByName(specialMixin.register);
19
- if (mixin) {
20
- neededNamespaceByImport[mixin.import] = mixin.namespace;
21
- decl.value = decl.value.replace(specialMixin.legacy, `${mixin.prefix}.${mixin.newName}`);
22
- continue;
23
- }
24
- (0, scss_ast_js_1.commentNode)(decl, 'Mixins avec fonction non gérée par la migration auto.', postCss);
25
- }
26
- });
27
- updateMixinImport(root, postCss, neededNamespaceByImport);
28
- }
29
- exports.replaceFuncMixinsWithoutInclude = replaceFuncMixinsWithoutInclude;
30
- function replaceIncludedMixin(root, registry, postCss, postcssValueParser) {
31
- const neededNamespaceByImport = {};
32
- root.walkAtRules('include', (rule) => {
33
- rule.params = postcssValueParser(rule.params)
34
- .walk((node) => {
35
- if (!['function', 'word'].includes(node.type)) {
36
- return undefined;
37
- }
38
- const mixin = registry.getByName(node.value);
39
- if (mixin) {
40
- neededNamespaceByImport[mixin.import] = mixin.namespace;
41
- node.value = `${mixin.prefix}.${mixin.newName}`;
42
- return false;
43
- }
44
- (0, scss_ast_js_1.commentNode)(rule, 'Mixins non gérée par la migration auto.', postCss);
45
- return false;
46
- })
47
- .toString();
48
- });
49
- updateMixinImport(root, postCss, neededNamespaceByImport);
50
- }
51
- exports.replaceIncludedMixin = replaceIncludedMixin;
52
- function updateMixinImport(root, postCss, neededNamespaceByImport = {}) {
53
- for (const [neededImport, namespace] of Object.entries(neededNamespaceByImport)) {
54
- (0, scss_ast_js_1.addMixinImport)(root, neededImport, postCss, namespace);
55
- }
56
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeScssPlaceholders = void 0;
4
- const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
5
- /**
6
- * Replace: calc(100vh - #{_theme(\"commons.banner-height\")} - 3.5rem)
7
- * With: calc(100vh - _theme(\"commons.banner-height\") - 3.5rem)
8
- */
9
- function removeScssPlaceholders(root, postcssValueParser) {
10
- root.walkDecls((decl) => {
11
- const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
12
- valueNode.walkFunction(/.*/, (func) => {
13
- let removeNextClosingBracket = 0;
14
- if (func.value.startsWith('#{')) {
15
- removeNextClosingBracket++;
16
- func.value = func.value.slice(2);
17
- }
18
- const newNodes = [];
19
- for (const child of func.nodes) {
20
- if (removeNextClosingBracket && child.type === 'word' && child.value.endsWith('}')) {
21
- removeNextClosingBracket--;
22
- if (child.value !== '}') {
23
- newNodes.push({ ...child, value: child.value.slice(0, -1) });
24
- }
25
- // else, do not keep child
26
- }
27
- else if (child.type === 'function' && child.value.startsWith('#{')) {
28
- removeNextClosingBracket++;
29
- newNodes.push({ ...child, value: child.value.slice(2) });
30
- }
31
- else {
32
- newNodes.push(child);
33
- }
34
- }
35
- func.nodes = newNodes;
36
- });
37
- decl.value = valueNode.toString();
38
- });
39
- }
40
- exports.removeScssPlaceholders = removeScssPlaceholders;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getVariableFromThemeArg = exports.updateThemeMixin = void 0;
4
- const scss_ast_js_1 = require("../../../lib/scss-ast.js");
5
- const scss_value_ast_js_1 = require("../../../lib/scss-value-ast.js");
6
- const color_js_1 = require("./color.js");
7
- function updateThemeMixin(root, postCss, postcssValueParser) {
8
- root.walkDecls((decl) => {
9
- const valueNode = new scss_value_ast_js_1.ScssValueAst(decl.value, postcssValueParser);
10
- // _theme("spacings.smallest") => var(--spacings-smallest)
11
- valueNode.walkFunction('_theme', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
12
- funcNode.value = 'var';
13
- if (funcNode.nodes[0]?.value.startsWith('palette.')) {
14
- funcNode.nodes = (0, color_js_1.getPaletteNodes)(funcNode.nodes[0].value.replace('palette.', ''), undefined, postcssValueParser);
15
- }
16
- else {
17
- funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--${themeVar}`, postcssValueParser).nodes;
18
- const siblings = valueNode.getSiblings(funcNode);
19
- if (siblings.some((s) => s.type === 'word' && s.value === '*')) {
20
- (0, scss_ast_js_1.wrapWithCalcFunctionNode)(valueNode, funcNode, postcssValueParser);
21
- }
22
- }
23
- }, postCss));
24
- // _component("navSide.width") => var(--components-navSide-width)
25
- valueNode.walkFunction('_component', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
26
- funcNode.value = 'var';
27
- funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`--components-${themeVar}`, postcssValueParser).nodes;
28
- const siblings = valueNode.getSiblings(funcNode);
29
- if (siblings.some((s) => s.type === 'word' && s.value === '*')) {
30
- (0, scss_ast_js_1.wrapWithCalcFunctionNode)(valueNode, funcNode, postcssValueParser);
31
- }
32
- }, postCss));
33
- // -_theme("spacings.smallest") => calc(var(--spacings-smallest) * -1)
34
- valueNode.walkFunction('-_theme', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
35
- funcNode.value = 'calc';
36
- funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`var(--${themeVar}) * -1`, postcssValueParser).nodes;
37
- }, postCss));
38
- // -_component("navSide.width") => calc(var(--components-navSide-width) -1)
39
- valueNode.walkFunction('-_component', (funcNode) => updateThemeNode(funcNode, decl, (themeVar) => {
40
- funcNode.value = 'calc';
41
- funcNode.nodes = new scss_value_ast_js_1.ScssValueAst(`var(--components-${themeVar}) * -1`, postcssValueParser).nodes;
42
- }, postCss));
43
- decl.value = valueNode.toString();
44
- });
45
- }
46
- exports.updateThemeMixin = updateThemeMixin;
47
- function updateThemeNode(funcNode, declaration, updater, postCss) {
48
- const isUnsupported = funcNode.nodes.length > 1;
49
- if (isUnsupported) {
50
- (0, scss_ast_js_1.commentNode)(declaration, `Utilisation de ${funcNode.value} non gérée par la migration automatique`, postCss);
51
- return false;
52
- }
53
- updater(getVariableFromThemeArg(funcNode.nodes[0].value));
54
- return undefined;
55
- }
56
- function getVariableFromThemeArg(arg) {
57
- return arg?.replace?.(/\./g, '-') || '';
58
- }
59
- exports.getVariableFromThemeArg = getVariableFromThemeArg;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.addWarnings = void 0;
4
- function addWarnings(root) {
5
- root.walkAtRules('each', (rule) => {
6
- rule.raws.before = (rule.raws.before || '') + '// [LF NEXT] Vérifier le contenu de la boucle.\n';
7
- });
8
- }
9
- exports.addWarnings = addWarnings;