@lucca-front/ng 22.0.5 → 22.0.6-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/README.md +6 -0
  2. package/fesm2022/lucca-front-ng-approbation-inbox.mjs +5 -4
  3. package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
  4. package/fesm2022/lucca-front-ng-dialog.mjs +22 -15
  5. package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
  6. package/fesm2022/lucca-front-ng-filter-pills.mjs +4 -4
  7. package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
  8. package/fesm2022/lucca-front-ng-scroll.mjs +2 -3
  9. package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
  10. package/llms/SKILL.md +248 -0
  11. package/llms/references/components/activity-feed/activity-feed.component.md +292 -0
  12. package/llms/references/components/activity-feed/activity-feed.md +90 -0
  13. package/llms/references/components/animations/animations.component.md +11 -0
  14. package/llms/references/components/animations/animations.md +7 -0
  15. package/llms/references/components/api-select/api-select.md +40 -0
  16. package/llms/references/components/app-layout/app-layout.component.md +65 -0
  17. package/llms/references/components/app-layout/app-layout.md +81 -0
  18. package/llms/references/components/approbation-inbox/approbation-inbox.component.md +960 -0
  19. package/llms/references/components/approbation-inbox/approbation-inbox.md +135 -0
  20. package/llms/references/components/avatar/avatar.component.md +563 -0
  21. package/llms/references/components/avatar/avatar.md +93 -0
  22. package/llms/references/components/box/box.component.md +119 -0
  23. package/llms/references/components/box/box.md +88 -0
  24. package/llms/references/components/breadcrumbs/breadcrumbs.component.md +59 -0
  25. package/llms/references/components/breadcrumbs/breadcrumbs.md +87 -0
  26. package/llms/references/components/bubble-icon/bubble-icon.component.md +56 -0
  27. package/llms/references/components/bubble-icon/bubble-icon.md +72 -0
  28. package/llms/references/components/bubble-illustration/bubble-illustration.component.md +54 -0
  29. package/llms/references/components/bubble-illustration/bubble-illustration.md +77 -0
  30. package/llms/references/components/button/button.component.md +252 -0
  31. package/llms/references/components/button/button.md +124 -0
  32. package/llms/references/components/calendar/calendar.component.md +708 -0
  33. package/llms/references/components/calendar/calendar.md +104 -0
  34. package/llms/references/components/calendar2/calendar2.md +64 -0
  35. package/llms/references/components/callout/callout.component.md +237 -0
  36. package/llms/references/components/callout/callout.md +243 -0
  37. package/llms/references/components/callout-disclosure/callout-disclosure.component.md +230 -0
  38. package/llms/references/components/callout-disclosure/callout-disclosure.md +196 -0
  39. package/llms/references/components/callout-popover/callout-popover.component.md +170 -0
  40. package/llms/references/components/callout-popover/callout-popover.md +201 -0
  41. package/llms/references/components/card/card.component.md +62 -0
  42. package/llms/references/components/card/card.md +8 -0
  43. package/llms/references/components/checkbox/checkbox.component.md +50 -0
  44. package/llms/references/components/checkbox/checkbox.md +74 -0
  45. package/llms/references/components/chip/chip.component.md +131 -0
  46. package/llms/references/components/chip/chip.md +95 -0
  47. package/llms/references/components/clear/clear.component.md +38 -0
  48. package/llms/references/components/clear/clear.md +79 -0
  49. package/llms/references/components/code/code.component.md +33 -0
  50. package/llms/references/components/code/code.md +47 -0
  51. package/llms/references/components/color/color.md +32 -0
  52. package/llms/references/components/color-input/color-input.md +33 -0
  53. package/llms/references/components/color-picker/color-picker.component.md +29 -0
  54. package/llms/references/components/color-picker/color-picker.md +25 -0
  55. package/llms/references/components/comment/comment.component.md +436 -0
  56. package/llms/references/components/comment/comment.md +125 -0
  57. package/llms/references/components/container/container.component.md +41 -0
  58. package/llms/references/components/container/container.md +74 -0
  59. package/llms/references/components/core-select-department/core-select-department.md +37 -0
  60. package/llms/references/components/core-select-establishment/core-select-establishment.md +40 -0
  61. package/llms/references/components/core-select-job-qualification/core-select-job-qualification.md +25 -0
  62. package/llms/references/components/core-select-occupation-category/core-select-occupation-category.md +25 -0
  63. package/llms/references/components/core-select-user/core-select-user.md +75 -0
  64. package/llms/references/components/data-presentation/data-presentation.component.md +47 -0
  65. package/llms/references/components/data-presentation/data-presentation.md +49 -0
  66. package/llms/references/components/data-table/data-table.component.md +1603 -0
  67. package/llms/references/components/data-table/data-table.md +290 -0
  68. package/llms/references/components/date/date.component.md +31 -0
  69. package/llms/references/components/date/date.md +140 -0
  70. package/llms/references/components/dateinput/dateinput.component.md +99 -0
  71. package/llms/references/components/dateinput/dateinput.md +198 -0
  72. package/llms/references/components/daterangeinput/daterangeinput.component.md +49 -0
  73. package/llms/references/components/daterangeinput/daterangeinput.md +186 -0
  74. package/llms/references/components/departmentselect/departmentselect.component.md +43 -0
  75. package/llms/references/components/departmentselect/departmentselect.md +43 -0
  76. package/llms/references/components/dialog/dialog.component.md +462 -0
  77. package/llms/references/components/dialog/dialog.md +335 -0
  78. package/llms/references/components/divider/divider.component.md +35 -0
  79. package/llms/references/components/divider/divider.md +88 -0
  80. package/llms/references/components/dropdown/dropdown.component.md +272 -0
  81. package/llms/references/components/dropdown/dropdown.md +172 -0
  82. package/llms/references/components/duration-picker/duration-picker.md +155 -0
  83. package/llms/references/components/empty-state/empty-state.component.md +226 -0
  84. package/llms/references/components/empty-state/empty-state.md +62 -0
  85. package/llms/references/components/errorpage/errorpage.component.md +57 -0
  86. package/llms/references/components/errorpage/errorpage.md +75 -0
  87. package/llms/references/components/establishmentselect/establishmentselect.component.md +30 -0
  88. package/llms/references/components/establishmentselect/establishmentselect.md +42 -0
  89. package/llms/references/components/fancy-dialog/fancy-dialog.component.md +9 -0
  90. package/llms/references/components/fancy-dialog/fancy-dialog.md +107 -0
  91. package/llms/references/components/fancybox/fancybox.component.md +48 -0
  92. package/llms/references/components/fancybox/fancybox.md +75 -0
  93. package/llms/references/components/fieldset/fieldset.component.md +86 -0
  94. package/llms/references/components/fieldset/fieldset.md +119 -0
  95. package/llms/references/components/filedropzone/filedropzone.component.md +16 -0
  96. package/llms/references/components/filedropzone/filedropzone.md +61 -0
  97. package/llms/references/components/fileentry/fileentry.component.md +58 -0
  98. package/llms/references/components/fileentry/fileentry.md +246 -0
  99. package/llms/references/components/fileupload/fileupload.component.md +91 -0
  100. package/llms/references/components/fileupload/fileupload.md +246 -0
  101. package/llms/references/components/filterbar/filterbar.component.md +302 -0
  102. package/llms/references/components/filterbar/filterbar.md +134 -0
  103. package/llms/references/components/filterpills/filterpills.component.md +60 -0
  104. package/llms/references/components/filterpills/filterpills.md +180 -0
  105. package/llms/references/components/footer/footer.component.md +66 -0
  106. package/llms/references/components/footer/footer.md +115 -0
  107. package/llms/references/components/form/form.md +37 -0
  108. package/llms/references/components/form-field/form-field.component.md +46 -0
  109. package/llms/references/components/form-field/form-field.md +231 -0
  110. package/llms/references/components/form-header/form-header.md +29 -0
  111. package/llms/references/components/form-label/form-label.component.md +106 -0
  112. package/llms/references/components/form-label/form-label.md +98 -0
  113. package/llms/references/components/gauge/gauge.component.md +55 -0
  114. package/llms/references/components/gauge/gauge.md +73 -0
  115. package/llms/references/components/grid/grid.component.md +15 -0
  116. package/llms/references/components/grid/grid.md +112 -0
  117. package/llms/references/components/highlight-data/highlight-data.component.md +279 -0
  118. package/llms/references/components/highlight-data/highlight-data.md +115 -0
  119. package/llms/references/components/highlight-section/highlight-section.component.md +185 -0
  120. package/llms/references/components/highlight-section/highlight-section.md +48 -0
  121. package/llms/references/components/highlight-text/highlight-text.component.md +49 -0
  122. package/llms/references/components/highlight-text/highlight-text.md +29 -0
  123. package/llms/references/components/horizontalnavigation/horizontalnavigation.component.md +232 -0
  124. package/llms/references/components/horizontalnavigation/horizontalnavigation.md +95 -0
  125. package/llms/references/components/icons/icons.component.md +59 -0
  126. package/llms/references/components/icons/icons.md +185 -0
  127. package/llms/references/components/impersonation/impersonation.component.md +52 -0
  128. package/llms/references/components/impersonation/impersonation.md +52 -0
  129. package/llms/references/components/index-table/index-table.component.md +2528 -0
  130. package/llms/references/components/index-table/index-table.md +243 -0
  131. package/llms/references/components/inlinemessage/inlinemessage.component.md +58 -0
  132. package/llms/references/components/inlinemessage/inlinemessage.md +57 -0
  133. package/llms/references/components/input-framed/input-framed.component.md +714 -0
  134. package/llms/references/components/input-framed/input-framed.md +50 -0
  135. package/llms/references/components/link/link.component.md +153 -0
  136. package/llms/references/components/link/link.md +124 -0
  137. package/llms/references/components/listbox/listbox.component.md +11 -0
  138. package/llms/references/components/listbox/listbox.md +101 -0
  139. package/llms/references/components/listing/listing.component.md +366 -0
  140. package/llms/references/components/listing/listing.md +105 -0
  141. package/llms/references/components/loading/loading.component.md +37 -0
  142. package/llms/references/components/loading/loading.md +91 -0
  143. package/llms/references/components/main-layout/main-layout.component.md +146 -0
  144. package/llms/references/components/main-layout/main-layout.md +78 -0
  145. package/llms/references/components/mobile-push/mobile-push.component.md +62 -0
  146. package/llms/references/components/mobile-push/mobile-push.md +70 -0
  147. package/llms/references/components/mobileheader/mobileheader.component.md +31 -0
  148. package/llms/references/components/mobileheader/mobileheader.md +8 -0
  149. package/llms/references/components/mobilenavigation/mobilenavigation.component.md +43 -0
  150. package/llms/references/components/mobilenavigation/mobilenavigation.md +8 -0
  151. package/llms/references/components/modal/modal.component.md +37 -0
  152. package/llms/references/components/modal/modal.md +61 -0
  153. package/llms/references/components/multi-select/multi-select.component.md +39 -0
  154. package/llms/references/components/multi-select/multi-select.md +426 -0
  155. package/llms/references/components/multilanguagefield/multilanguagefield.component.md +84 -0
  156. package/llms/references/components/multilanguagefield/multilanguagefield.md +362 -0
  157. package/llms/references/components/newbadge/newbadge.component.md +23 -0
  158. package/llms/references/components/newbadge/newbadge.md +38 -0
  159. package/llms/references/components/number-format-input/number-format-input.md +46 -0
  160. package/llms/references/components/number-input/number-input.md +49 -0
  161. package/llms/references/components/numbers/numbers.component.md +46 -0
  162. package/llms/references/components/numbers/numbers.md +7 -0
  163. package/llms/references/components/numericbadge/numericbadge.component.md +66 -0
  164. package/llms/references/components/numericbadge/numericbadge.md +84 -0
  165. package/llms/references/components/onboarding-empty-state/onboarding-empty-state.md +47 -0
  166. package/llms/references/components/pageheader/pageheader.component.md +389 -0
  167. package/llms/references/components/pageheader/pageheader.md +144 -0
  168. package/llms/references/components/pagination/pagination.component.md +96 -0
  169. package/llms/references/components/pagination/pagination.md +107 -0
  170. package/llms/references/components/phonenumberfield/phonenumberfield.component.md +35 -0
  171. package/llms/references/components/phonenumberfield/phonenumberfield.md +131 -0
  172. package/llms/references/components/plg-push/plg-push.component.md +91 -0
  173. package/llms/references/components/plg-push/plg-push.md +82 -0
  174. package/llms/references/components/popover/popover.component.md +130 -0
  175. package/llms/references/components/popover/popover.md +235 -0
  176. package/llms/references/components/popover2/popover2.component.md +103 -0
  177. package/llms/references/components/popover2/popover2.md +89 -0
  178. package/llms/references/components/progress-bar/progress-bar.component.md +33 -0
  179. package/llms/references/components/progress-bar/progress-bar.md +51 -0
  180. package/llms/references/components/progress-stepper/progress-stepper.component.md +281 -0
  181. package/llms/references/components/progress-stepper/progress-stepper.md +70 -0
  182. package/llms/references/components/radiofield/radiofield.component.md +295 -0
  183. package/llms/references/components/radiofield/radiofield.md +122 -0
  184. package/llms/references/components/readmore/readmore.component.md +60 -0
  185. package/llms/references/components/readmore/readmore.md +88 -0
  186. package/llms/references/components/resource-card/resource-card.component.md +216 -0
  187. package/llms/references/components/resource-card/resource-card.md +106 -0
  188. package/llms/references/components/richtextinput/richtextinput.component.md +298 -0
  189. package/llms/references/components/richtextinput/richtextinput.md +275 -0
  190. package/llms/references/components/scroll/scroll.md +45 -0
  191. package/llms/references/components/scrollbox/scrollbox.component.md +63 -0
  192. package/llms/references/components/scrollbox/scrollbox.md +49 -0
  193. package/llms/references/components/section-empty-state/section-empty-state.component.md +9 -0
  194. package/llms/references/components/section-empty-state/section-empty-state.md +41 -0
  195. package/llms/references/components/segmented-control-tabs/segmented-control-tabs.md +50 -0
  196. package/llms/references/components/segmentedcontrol/segmentedcontrol.component.md +198 -0
  197. package/llms/references/components/segmentedcontrol/segmentedcontrol.md +108 -0
  198. package/llms/references/components/select/select.component.md +237 -0
  199. package/llms/references/components/select/select.md +57 -0
  200. package/llms/references/components/select-templating/select-templating.md +117 -0
  201. package/llms/references/components/sidepanel/sidepanel.component.md +56 -0
  202. package/llms/references/components/sidepanel/sidepanel.md +7 -0
  203. package/llms/references/components/simple-select/simple-select.component.md +39 -0
  204. package/llms/references/components/simple-select/simple-select.md +291 -0
  205. package/llms/references/components/skeleton/skeleton.component.md +133 -0
  206. package/llms/references/components/skeleton/skeleton.md +212 -0
  207. package/llms/references/components/skiplinks/skiplinks.component.md +91 -0
  208. package/llms/references/components/skiplinks/skiplinks.md +73 -0
  209. package/llms/references/components/software-icon/software-icon.component.md +61 -0
  210. package/llms/references/components/software-icon/software-icon.md +107 -0
  211. package/llms/references/components/sortable-list/sortable-list.component.md +141 -0
  212. package/llms/references/components/sortable-list/sortable-list.md +84 -0
  213. package/llms/references/components/statusbadge/statusbadge.component.md +56 -0
  214. package/llms/references/components/statusbadge/statusbadge.md +63 -0
  215. package/llms/references/components/switchfield/switchfield.component.md +114 -0
  216. package/llms/references/components/switchfield/switchfield.md +56 -0
  217. package/llms/references/components/tableofcontent/tableofcontent.component.md +55 -0
  218. package/llms/references/components/tableofcontent/tableofcontent.md +41 -0
  219. package/llms/references/components/tags/tags.component.md +112 -0
  220. package/llms/references/components/tags/tags.md +115 -0
  221. package/llms/references/components/text-flow/text-flow.component.md +71 -0
  222. package/llms/references/components/text-flow/text-flow.md +63 -0
  223. package/llms/references/components/textareafield/textareafield.component.md +69 -0
  224. package/llms/references/components/textareafield/textareafield.md +113 -0
  225. package/llms/references/components/textfield/textfield.component.md +617 -0
  226. package/llms/references/components/textfield/textfield.md +161 -0
  227. package/llms/references/components/tile/tile.component.md +91 -0
  228. package/llms/references/components/tile/tile.md +92 -0
  229. package/llms/references/components/time/time.component.md +270 -0
  230. package/llms/references/components/time/time.md +127 -0
  231. package/llms/references/components/time-picker/time-picker.md +63 -0
  232. package/llms/references/components/timelines/timelines.component.md +159 -0
  233. package/llms/references/components/timelines/timelines.md +8 -0
  234. package/llms/references/components/title-and-text/title-and-text.component.md +14 -0
  235. package/llms/references/components/title-and-text/title-and-text.md +60 -0
  236. package/llms/references/components/toasts/toasts.component.md +54 -0
  237. package/llms/references/components/toasts/toasts.md +112 -0
  238. package/llms/references/components/tooltip/tooltip.component.md +86 -0
  239. package/llms/references/components/tooltip/tooltip.md +217 -0
  240. package/llms/references/components/treeselect/treeselect.component.md +62 -0
  241. package/llms/references/components/treeselect/treeselect.md +58 -0
  242. package/llms/references/components/user-select/user-select.md +52 -0
  243. package/llms/references/components/userpopover/userpopover.component.md +50 -0
  244. package/llms/references/components/userpopover/userpopover.md +136 -0
  245. package/llms/references/components/verticalnavigation/verticalnavigation.component.md +236 -0
  246. package/llms/references/components/verticalnavigation/verticalnavigation.md +115 -0
  247. package/llms/references/migrations.md +32 -0
  248. package/llms/references/tools/angular-api.md +337 -0
  249. package/llms/references/tools/animations.md +173 -0
  250. package/llms/references/tools/mixins.md +106 -0
  251. package/llms/references/tools/numbers.md +81 -0
  252. package/llms/references/tools/scrollbox.md +59 -0
  253. package/llms/references/tools/utilitaires.md +951 -0
  254. package/llms/references/types/BubbleIllustration.md +5 -0
  255. package/llms/references/types/DecorativePalette.md +5 -0
  256. package/llms/references/types/Gap.md +5 -0
  257. package/llms/references/types/HighlightDataIllustration.md +5 -0
  258. package/llms/references/types/HighlightSectionIllustration.md +5 -0
  259. package/llms/references/types/LuccaIcon.md +5 -0
  260. package/llms/references/types/MainLayoutIllustrationEndStart.md +5 -0
  261. package/llms/references/types/MainLayoutIllustrationStartEnd.md +5 -0
  262. package/llms.txt +221 -0
  263. package/package.json +12 -6
  264. package/types/lucca-front-ng-approbation-inbox.d.ts +3 -3
@@ -0,0 +1,272 @@
1
+ # dropdown — Code & Implementation
2
+
3
+ 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-overlays-dropdown-angular-basic--docs)
4
+
5
+ ## Angular
6
+
7
+ Mots-clés : menu déroulant, actions contextuelles
8
+
9
+ Directive selector : `luDropdown`
10
+
11
+ Depuis la version [20.3](https://github.com/LuccaSA/lucca-front/releases/tag/v20.3.0), l'utilisation de `<lu-dropdown>` a été dépréciée au profit d'un template pour des questions de performances.
12
+
13
+ ### Basic
14
+
15
+ ```js
16
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
17
+ import { provideAnimations } from '@angular/platform-browser/animations';
18
+ import { LuDropdownModule } from '@lucca-front/ng/dropdown';
19
+ ```
20
+
21
+ ```html
22
+ <button type="button" class="button" [luDropdown]="dropdown">Dropdown with options</button>
23
+ <lu-dropdown #dropdown>
24
+ <li class="dropdown-list-option">
25
+ <span class="dropdown-list-option-action is-disabled" luDropdownItem>
26
+ <span aria-hidden="true" class="lucca-icon icon-eye"></span>
27
+ Prévisualiser
28
+ </span>
29
+ </li>
30
+ <li class="dropdown-list-option mod-divider" aria-hidden="true">
31
+ <hr class="divider" />
32
+ </li>
33
+ <li class="dropdown-list-option">
34
+ <a routerLink="." fragment="link2" class="dropdown-list-option-action" luDropdownItem>
35
+ <span aria-hidden="true" class="lucca-icon icon-officePen"></span>
36
+ Éditer
37
+ </a>
38
+ </li>
39
+ <li class="dropdown-list-option">
40
+ <button type="button" class="dropdown-list-option-action mod-critical" luDropdownItem>
41
+ <span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
42
+ Supprimer
43
+ </button>
44
+ </li>
45
+ </lu-dropdown>
46
+ ```
47
+
48
+ ### Component
49
+
50
+ ```js
51
+ import { Component as AngularComponent } from '@angular/core';
52
+ import { provideAnimations } from '@angular/platform-browser/animations';
53
+ import { LuDropdownModule } from '@lucca-front/ng/dropdown';
54
+ ```
55
+
56
+ ```html
57
+ <button type="button" class="button" [luDropdown]="dropdown">Dropdown with options</button>
58
+ <lu-dropdown #dropdown>
59
+ <li class="dropdown-list-option">
60
+ <span class="dropdown-list-option-action is-disabled" luDropdownItem>
61
+ <span aria-hidden="true" class="lucca-icon icon-eye"></span>
62
+ Prévisualiser
63
+ </span>
64
+ </li>
65
+ <li class="dropdown-list-option mod-divider" aria-hidden="true">
66
+ <hr class="divider" />
67
+ </li>
68
+ <li class="dropdown-list-option">
69
+ <a routerLink="." fragment="link2" class="dropdown-list-option-action" luDropdownItem>
70
+ <span aria-hidden="true" class="lucca-icon icon-officePen"></span>
71
+ Éditer
72
+ </a>
73
+ </li>
74
+ <li class="dropdown-list-option">
75
+ <button type="button" class="dropdown-list-option-action mod-critical" luDropdownItem>
76
+ <span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
77
+ Supprimer
78
+ </button>
79
+ </li>
80
+ </lu-dropdown>
81
+ ```
82
+
83
+ ### Directive legacy
84
+
85
+ ```js
86
+ import { ButtonComponent } from '@lucca-front/ng/button';
87
+ import { LuDropdownModule, LuDropdownTriggerDirective } from '@lucca-front/ng/dropdown';
88
+ import { IconComponent } from '@lucca-front/ng/icon';
89
+ ```
90
+
91
+ ```html
92
+ <button type="button" luButton [luDropdown]="dropdown">Dropdown</button>
93
+
94
+ <lu-dropdown #dropdown>
95
+ <li class="dropdown-list-option">
96
+ <span class="dropdown-list-option-action is-disabled" luDropdownItem>
97
+ <lu-icon icon="eye" />
98
+ Prévisualiser
99
+ </span>
100
+ </li>
101
+ <li class="dropdown-list-option">
102
+ <a routerLink="." fragment="link2" class="dropdown-list-option-action" luDropdownItem>
103
+ <lu-icon icon="officePen" />
104
+ Éditer
105
+ </a>
106
+ </li>
107
+ <li class="dropdown-list-option">
108
+ <button type="button" class="dropdown-list-option-action mod-critical" luDropdownItem>
109
+ <lu-icon icon="trashDelete" />
110
+ Supprimer
111
+ </button>
112
+ </li>
113
+ </lu-dropdown>
114
+ ```
115
+
116
+ ### Directive
117
+
118
+ ```js
119
+ import { ButtonComponent } from '@lucca-front/ng/button';
120
+ import { DropdownActionComponent, DropdownDividerComponent, DropdownGroupComponent, DropdownItemComponent, DropdownMenuComponent, LuDropdownTriggerDirective } from '@lucca-front/ng/dropdown';
121
+ import { IconComponent } from '@lucca-front/ng/icon';
122
+ import { PopoverPosition } from '@lucca-front/ng/popover2';
123
+ ```
124
+
125
+ ```html
126
+ <div class="demo">
127
+ <button type="button" luButton disclosure [luDropdown]="dropdownSample">
128
+ Dropdown
129
+ <lu-icon icon="arrowChevronBottom" />
130
+ </button>
131
+ <ng-template #dropdownSample>
132
+ <lu-dropdown-menu>
133
+ <lu-dropdown-item>
134
+ <button lu-dropdown-action type="button">
135
+ <lu-icon icon="heart" />
136
+ Lorem
137
+ </button>
138
+ </lu-dropdown-item>
139
+ <lu-dropdown-item>
140
+ <button lu-dropdown-action disabled type="button">
141
+ <lu-icon icon="cross" />
142
+ Lorem
143
+ </button>
144
+ </lu-dropdown-item>
145
+ <lu-dropdown-divider />
146
+ <lu-dropdown-item>
147
+ <button lu-dropdown-action type="button">
148
+ <lu-icon icon="star" />
149
+ Ipsum
150
+ </button>
151
+ </lu-dropdown-item>
152
+ <lu-dropdown-group label="Group">
153
+ <lu-dropdown-item>
154
+ <button lu-dropdown-action type="button">
155
+ <lu-icon icon="buildingHouse" />
156
+ Dolor
157
+ </button>
158
+ </lu-dropdown-item>
159
+ <lu-dropdown-item>
160
+ <a lu-dropdown-action critical href="#">
161
+ <lu-icon icon="trashDelete" />
162
+ Sit amet
163
+ </a>
164
+ </lu-dropdown-item>
165
+ <lu-dropdown-item>
166
+ <span lu-dropdown-action disabled class="dropdown-list-option-action">
167
+ <lu-icon icon="cross" />
168
+ Sit amet
169
+ </span>
170
+ </lu-dropdown-item>
171
+ </lu-dropdown-group>
172
+ </lu-dropdown-menu>
173
+ </ng-template>
174
+ </div>
175
+ ```
176
+
177
+ ## HTML/CSS
178
+
179
+ ### Basic
180
+
181
+ ```css
182
+ @forward '@lucca-front/scss/src/components/dropdown';
183
+ @forward '@lucca-front/scss/src/components/divider';
184
+ ```
185
+
186
+ ```html
187
+ <div class="dropdown">
188
+ <ul class="dropdown-list">
189
+ <li class="dropdown-list-option">
190
+ <button type="button" class="dropdown-list-option-action">
191
+ <span class="lucca-icon icon-eye" aria-hidden="true"></span>
192
+ Prévisualiser
193
+ </button>
194
+ </li>
195
+ <li class="dropdown-list-option" aria-hidden="true">
196
+ <div class="divider dropdown-list-option-divider"></div>
197
+ </li>
198
+ <li class="dropdown-list-option">
199
+ <button type="button" class="dropdown-list-option-action">
200
+ <span class="lucca-icon icon-officePen" aria-hidden="true"></span>
201
+ Modifier
202
+ </button>
203
+ </li>
204
+ <li class="dropdown-list-option">
205
+ <button type="button" class="dropdown-list-option-action">
206
+ <span class="lucca-icon icon-fileCopy" aria-hidden="true"></span>
207
+ Copier
208
+ </button>
209
+ </li>
210
+ <li class="dropdown-list-option" aria-hidden="true">
211
+ <div class="divider dropdown-list-option-divider"></div>
212
+ </li>
213
+ <li class="dropdown-list-option">
214
+ Groupe
215
+ <ul class="dropdown-list">
216
+ <li class="dropdown-list-option">
217
+ <button type="button" class="dropdown-list-option-action" disabled="disabled">
218
+ <span class="lucca-icon icon-boxArchive" aria-hidden="true"></span>
219
+ Archiver
220
+ </button>
221
+ </li>
222
+ <li class="dropdown-list-option">
223
+ <button type="button" class="dropdown-list-option-action mod-critical">
224
+ <span class="lucca-icon icon-trashDelete" aria-hidden="true"></span>
225
+ Supprimer
226
+ </button>
227
+ </li>
228
+ </ul>
229
+ </li>
230
+ </ul>
231
+ </div>
232
+ ```
233
+
234
+ ### WithoutIcons
235
+
236
+ ```css
237
+ @forward '@lucca-front/scss/src/components/dropdown';
238
+ @forward '@lucca-front/scss/src/components/divider';
239
+ ```
240
+
241
+ ```html
242
+ <div class="dropdown">
243
+ <ul class="dropdown-list">
244
+ <li class="dropdown-list-option">
245
+ <button type="button" class="dropdown-list-option-action">Prévisualiser</button>
246
+ </li>
247
+ <li class="dropdown-list-option" aria-hidden="true">
248
+ <div class="divider dropdown-list-option-divider"></div>
249
+ </li>
250
+ <li class="dropdown-list-option">
251
+ <button type="button" class="dropdown-list-option-action">Modifier</button>
252
+ </li>
253
+ <li class="dropdown-list-option">
254
+ <button type="button" class="dropdown-list-option-action">Copier</button>
255
+ </li>
256
+ <li class="dropdown-list-option" aria-hidden="true">
257
+ <div class="divider dropdown-list-option-divider"></div>
258
+ </li>
259
+ <li class="dropdown-list-option">
260
+ Groupe
261
+ <ul class="dropdown-list">
262
+ <li class="dropdown-list-option">
263
+ <button type="button" class="dropdown-list-option-action" disabled="disabled">Archiver</button>
264
+ </li>
265
+ <li class="dropdown-list-option">
266
+ <button type="button" class="dropdown-list-option-action mod-critical">Supprimer</button>
267
+ </li>
268
+ </ul>
269
+ </li>
270
+ </ul>
271
+ </div>
272
+ ```
@@ -0,0 +1,172 @@
1
+ # dropdown
2
+
3
+ ## Import
4
+
5
+ ```typescript
6
+ import { DropdownActionComponent, DropdownDividerComponent, DropdownGroupComponent, DropdownItemComponent, DropdownMenuComponent, LuDropdownItemDirective, LuDropdownPanelComponent, LuDropdownTriggerDirective } from '@lucca-front/ng/dropdown';
7
+ ```
8
+
9
+ ## API Reference
10
+
11
+ ### DropdownActionComponent (component)
12
+
13
+ **Selector:** `[lu-dropdown-action]`
14
+
15
+ #### Inputs
16
+
17
+ | Property | Binding name | Type | Default | Required | Transform | Description |
18
+ |----------|-------------|------|---------|----------|-----------|-------------|
19
+ | `disabled` | `disabled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
20
+ | `critical` | `critical` | `boolean` | `false` | — | `luBooleanAttribute` | — |
21
+
22
+ ### DropdownDividerComponent (component)
23
+
24
+ **Selector:** `lu-dropdown-divider`
25
+
26
+ ### DropdownGroupComponent (component)
27
+
28
+ **Selector:** `lu-dropdown-group`
29
+
30
+ #### Inputs
31
+
32
+ | Property | Binding name | Type | Default | Required | Transform | Description |
33
+ |----------|-------------|------|---------|----------|-----------|-------------|
34
+ | `label` | `label` | `string \| null` | `null` | — | — | — |
35
+
36
+ ### DropdownItemComponent (component)
37
+
38
+ **Selector:** `lu-dropdown-item`
39
+
40
+ ### DropdownMenuComponent (component)
41
+
42
+ **Selector:** `lu-dropdown-menu`
43
+
44
+ ### LuDropdownItemDirective (directive)
45
+
46
+ **Selector:** `[luDropdownItem]`
47
+
48
+ **exportAs:** `LuDropdownItem`
49
+
50
+ #### Outputs
51
+
52
+ | Property | Binding name | Type | Notes |
53
+ |----------|-------------|------|-------|
54
+ | `onSelectOutput` | `onSelectOutput` | `void` | — |
55
+
56
+ ### LuDropdownPanelComponent (component)
57
+
58
+ **Selector:** `lu-dropdown`
59
+
60
+ > ⚠️ **Déprécié** : prefer the new menu approach: https://prisme.lucca.io/94310e217/p/557682-dropdown
61
+
62
+ **exportAs:** `LuDropdownPanel`
63
+
64
+ #### Inputs
65
+
66
+ | Property | Binding name | Type | Default | Required | Transform | Description |
67
+ |----------|-------------|------|---------|----------|-----------|-------------|
68
+ | `inputPanelClasses` | `panel-classes` | `string` | — | — | — | — |
69
+ | `inputContentClasses` | `content-classes` | `string` | — | — | — | — |
70
+
71
+ #### Outputs
72
+
73
+ | Property | Binding name | Type | Notes |
74
+ |----------|-------------|------|-------|
75
+ | `close` | `close` | `void` | — |
76
+ | `open` | `open` | `void` | — |
77
+ | `hovered` | `hovered` | `boolean` | — |
78
+
79
+ ### LuDropdownTriggerDirective (directive)
80
+
81
+ **Selector:** `[luDropdown]`
82
+
83
+ **exportAs:** `LuDropdownTrigger`
84
+
85
+ #### Inputs
86
+
87
+ | Property | Binding name | Type | Default | Required | Transform | Description |
88
+ |----------|-------------|------|---------|----------|-----------|-------------|
89
+ | `inputPanel` | `luDropdown` | `TemplateRef<unknown> \| Type<unknown> \| ALuPopoverPanel` | `undefined` | — | — | — |
90
+
91
+ ### Modules dépréciés
92
+
93
+ - ⚠️ `LuDropdownModule` — use `LuDropdownTriggerDirective, LuDropdownPanelComponent, LuDropdownItemDirective` instead
94
+ - ⚠️ `LuDropdownItemModule` — use `LuDropdownItemDirective` instead
95
+ - ⚠️ `LuDropdownPanelModule` — use `LuDropdownPanelComponent` instead
96
+ - ⚠️ `LuDropdownTriggerModule` — use `LuDropdownTriggerDirective` instead
97
+
98
+ ## Related files
99
+
100
+ - 📝 [Code & implementation](./dropdown.component.md)
101
+
102
+ - 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/dropdown/dropdown.figma.md)
103
+ - 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-overlays-dropdown-angular-basic--docs)
104
+
105
+ ## Changelog
106
+
107
+ > Diff structurel de l'API (selectors, inputs, outputs, models) entre versions stables, depuis `v21.4.2` jusqu'à `v22.0.0`. Les versions sans changement d'API sont omises.
108
+
109
+ ### 22.0.0
110
+
111
+ `DropdownActionComponent` :
112
+ ~ `disabled` : transform booleanAttribute → luBooleanAttribute
113
+ ~ `critical` : transform booleanAttribute → luBooleanAttribute
114
+ `LuDropdownItemDirective` :
115
+ + (output) `onSelectOutput` : void
116
+ - (output) `onSelect`
117
+ `LuDropdownTriggerDirective` :
118
+ ~ `luDropdown` : défaut ∅ → undefined
119
+
120
+ ### Notes de release (ZeroHeight)
121
+
122
+ #### 21.0.4
123
+
124
+ ##### Changed
125
+
126
+ - `disabled` now takes priority over `critical` on a dropdown item.
127
+
128
+ ##### Fixed
129
+
130
+ - Opening position of the dropdown panel when the trigger is close to the viewport edge.
131
+
132
+ #### 21.0.0
133
+
134
+ ##### Deprecated
135
+
136
+ - `LuDropdownModule` — import the standalone `LuDropdownTriggerDirective`, `LuDropdownPanelComponent` and `LuDropdownItemDirective` instead.
137
+
138
+ #### 20.3.2
139
+
140
+ ##### Added
141
+
142
+ - `critical` input on the dropdown items, for destructive actions.
143
+
144
+ ##### Fixed
145
+
146
+ - Color of the critical items.
147
+
148
+ #### 20.3.1
149
+
150
+ ##### Fixed
151
+
152
+ - The panel closes when an item is clicked.
153
+ - SCSS import of the component.
154
+ - Close management of the legacy `lu-dropdown`.
155
+
156
+ #### 20.3.0
157
+
158
+ ##### Added
159
+
160
+ - Reworked dropdown: `[luDropdown]` trigger directive with the `lu-dropdown-menu`, `lu-dropdown-item`, `lu-dropdown-group` and `lu-dropdown-divider` components, plus the `[luDropdownItem]` directive.
161
+
162
+ #### 19.3.0
163
+
164
+ ##### Changed
165
+
166
+ - Dropdown UI updated.
167
+
168
+ #### 19.2.0
169
+
170
+ ##### Added
171
+
172
+ - `dropdown` SCSS component, usable without Angular.
@@ -0,0 +1,155 @@
1
+ # duration-picker
2
+
3
+ ## Import
4
+
5
+ ```typescript
6
+ import { DurationPickerComponent } from '@lucca-front/ng/time';
7
+ ```
8
+
9
+ ## API Reference
10
+
11
+ ### DurationPickerComponent (component)
12
+
13
+ **Selector:** `lu-duration-picker`
14
+
15
+ #### Inputs
16
+
17
+ | Property | Binding name | Type | Default | Required | Transform | Description |
18
+ |----------|-------------|------|---------|----------|-----------|-------------|
19
+ | `step` | `step` | `ISO8601Duration \| null` | `null` | — | — | — |
20
+ | `size` | `size` | `'S' \| 'M'` | — | — | — | — |
21
+ | `intl` | `intl` | `unknown` | — | — | — | — |
22
+ | `max` | `max` | ``${string}P${string}`` | `'PT99H'` | — | — | — |
23
+ | `displayArrows` | `displayArrows` | `boolean` | `false` | — | `luBooleanAttribute` | — |
24
+ | `label` | `label` | `string` | — | — | — | — |
25
+ | `hideZeroValue` | `hideZeroValue` | `boolean` | `false` | — | `luBooleanAttribute` | — |
26
+
27
+ #### Outputs
28
+
29
+ | Property | Binding name | Type | Notes |
30
+ |----------|-------------|------|-------|
31
+ | `durationChange` | `durationChange` | `DurationChangeEvent` | — |
32
+
33
+ #### Models (two-way binding)
34
+
35
+ | Property | Type | Required | Notes |
36
+ |----------|------|----------|-------|
37
+ | `disabled` | `unknown` | — | — |
38
+ | `value` | `ISO8601Duration` | — | — |
39
+
40
+ ### Injection tokens
41
+
42
+ | Token | Type | Description |
43
+ |-------|------|-------------|
44
+ | `LU_DURATION_PICKER_TRANSLATIONS` | `unknown` | — |
45
+
46
+ ## Related files
47
+
48
+ - 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/duration-picker/duration-picker.design.md)
49
+ - 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/duration-picker/duration-picker.figma.md)
50
+
51
+ ## Changelog
52
+
53
+ > Diff structurel de l'API (selectors, inputs, outputs, models) entre versions stables, depuis `v21.4.2` jusqu'à `v22.0.0`. Les versions sans changement d'API sont omises.
54
+
55
+ ### 22.0.0
56
+
57
+ ~ `step` : `${string}P${string}` → ISO8601Duration | null
58
+ ~ `displayArrows` : transform booleanAttribute → luBooleanAttribute
59
+ ~ `hideZeroValue` : transform booleanAttribute → luBooleanAttribute
60
+
61
+ ### Notes de release (ZeroHeight)
62
+
63
+ #### 21.3.1
64
+
65
+ ##### Changed
66
+
67
+ - `lu-duration-picker` / `lu-time-picker`: support longer time/unit separators (e.g. Dutch).
68
+
69
+ ##### Fixed
70
+
71
+ - `lu-time-picker`: allow typing `0` in the hours field when the value is empty, so the picker can be set to midnight.
72
+
73
+ #### 21.3.0
74
+
75
+ ##### Added
76
+
77
+ - `lu-time-range-picker`: new component to pick a start and end time, with the exported `endTimeBeforeStartTimeValidator` to flag an end time earlier than the start time.
78
+
79
+ ##### Fixed
80
+
81
+ - `lu-time-range-picker`: focus handling and `onTouched` behavior.
82
+
83
+ #### 21.2.3
84
+
85
+ ##### Fixed
86
+
87
+ - `lu-time-picker` / `lu-duration-picker`: no longer keep a stale `0` in the underlying input before a value is set, preventing wrong values (e.g. `10`) when typing.
88
+
89
+ #### 21.1.1
90
+
91
+ ##### Fixed
92
+
93
+ - `lu-duration-picker`: correctly display the minutes part.
94
+ - `intl` input is now public on `lu-time-picker` and `lu-duration-picker`.
95
+
96
+ #### 21.1.0
97
+
98
+ ##### Added
99
+
100
+ - `intl` input on `lu-time-picker` and `lu-duration-picker` to override the component translations.
101
+
102
+ ##### Changed
103
+
104
+ - `lu-duration-picker`: support durations longer than 99 hours.
105
+
106
+ ##### Fixed
107
+
108
+ - `lu-duration-picker`: fix wrong incrementation that skipped an hour digit.
109
+
110
+ #### 20.1.1
111
+
112
+ ##### Fixed
113
+
114
+ - Export `date-primitives` from the public API.
115
+
116
+ #### 19.1.5
117
+
118
+ ##### Fixed
119
+
120
+ - `lu-time-picker`: fix the `name` attribute on the AM/PM (meridiem) inputs.
121
+
122
+ #### 19.1.4
123
+
124
+ ##### Fixed
125
+
126
+ - `lu-time-picker`: generate unique `id` values for the inner inputs.
127
+
128
+ #### 18.2.4
129
+
130
+ ##### Fixed
131
+
132
+ - Export the `lu-duration-picker` component type from the public API.
133
+
134
+ #### 18.2.0
135
+
136
+ ##### Added
137
+
138
+ - `lu-time-picker`: AM/PM (meridiem) support, with a `forceMeridiemDisplay` input to force the 12h display.
139
+
140
+ ##### Fixed
141
+
142
+ - Export the missing translation tokens from the public API.
143
+
144
+ #### 18.1.5
145
+
146
+ ##### Fixed
147
+
148
+ - `lu-time-picker`: the `max` input now defaults to `23:59:59`.
149
+
150
+ #### 18.1.0
151
+
152
+ ##### Added
153
+
154
+ - `lu-time-picker`: new component to pick a time of day.
155
+ - `lu-duration-picker`: new component to pick a duration.