@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.
- package/README.md +6 -0
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs +5 -4
- package/fesm2022/lucca-front-ng-approbation-inbox.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +22 -15
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +4 -4
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +2 -3
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/llms/SKILL.md +248 -0
- package/llms/references/components/activity-feed/activity-feed.component.md +292 -0
- package/llms/references/components/activity-feed/activity-feed.md +90 -0
- package/llms/references/components/animations/animations.component.md +11 -0
- package/llms/references/components/animations/animations.md +7 -0
- package/llms/references/components/api-select/api-select.md +40 -0
- package/llms/references/components/app-layout/app-layout.component.md +65 -0
- package/llms/references/components/app-layout/app-layout.md +81 -0
- package/llms/references/components/approbation-inbox/approbation-inbox.component.md +960 -0
- package/llms/references/components/approbation-inbox/approbation-inbox.md +135 -0
- package/llms/references/components/avatar/avatar.component.md +563 -0
- package/llms/references/components/avatar/avatar.md +93 -0
- package/llms/references/components/box/box.component.md +119 -0
- package/llms/references/components/box/box.md +88 -0
- package/llms/references/components/breadcrumbs/breadcrumbs.component.md +59 -0
- package/llms/references/components/breadcrumbs/breadcrumbs.md +87 -0
- package/llms/references/components/bubble-icon/bubble-icon.component.md +56 -0
- package/llms/references/components/bubble-icon/bubble-icon.md +72 -0
- package/llms/references/components/bubble-illustration/bubble-illustration.component.md +54 -0
- package/llms/references/components/bubble-illustration/bubble-illustration.md +77 -0
- package/llms/references/components/button/button.component.md +252 -0
- package/llms/references/components/button/button.md +124 -0
- package/llms/references/components/calendar/calendar.component.md +708 -0
- package/llms/references/components/calendar/calendar.md +104 -0
- package/llms/references/components/calendar2/calendar2.md +64 -0
- package/llms/references/components/callout/callout.component.md +237 -0
- package/llms/references/components/callout/callout.md +243 -0
- package/llms/references/components/callout-disclosure/callout-disclosure.component.md +230 -0
- package/llms/references/components/callout-disclosure/callout-disclosure.md +196 -0
- package/llms/references/components/callout-popover/callout-popover.component.md +170 -0
- package/llms/references/components/callout-popover/callout-popover.md +201 -0
- package/llms/references/components/card/card.component.md +62 -0
- package/llms/references/components/card/card.md +8 -0
- package/llms/references/components/checkbox/checkbox.component.md +50 -0
- package/llms/references/components/checkbox/checkbox.md +74 -0
- package/llms/references/components/chip/chip.component.md +131 -0
- package/llms/references/components/chip/chip.md +95 -0
- package/llms/references/components/clear/clear.component.md +38 -0
- package/llms/references/components/clear/clear.md +79 -0
- package/llms/references/components/code/code.component.md +33 -0
- package/llms/references/components/code/code.md +47 -0
- package/llms/references/components/color/color.md +32 -0
- package/llms/references/components/color-input/color-input.md +33 -0
- package/llms/references/components/color-picker/color-picker.component.md +29 -0
- package/llms/references/components/color-picker/color-picker.md +25 -0
- package/llms/references/components/comment/comment.component.md +436 -0
- package/llms/references/components/comment/comment.md +125 -0
- package/llms/references/components/container/container.component.md +41 -0
- package/llms/references/components/container/container.md +74 -0
- package/llms/references/components/core-select-department/core-select-department.md +37 -0
- package/llms/references/components/core-select-establishment/core-select-establishment.md +40 -0
- package/llms/references/components/core-select-job-qualification/core-select-job-qualification.md +25 -0
- package/llms/references/components/core-select-occupation-category/core-select-occupation-category.md +25 -0
- package/llms/references/components/core-select-user/core-select-user.md +75 -0
- package/llms/references/components/data-presentation/data-presentation.component.md +47 -0
- package/llms/references/components/data-presentation/data-presentation.md +49 -0
- package/llms/references/components/data-table/data-table.component.md +1603 -0
- package/llms/references/components/data-table/data-table.md +290 -0
- package/llms/references/components/date/date.component.md +31 -0
- package/llms/references/components/date/date.md +140 -0
- package/llms/references/components/dateinput/dateinput.component.md +99 -0
- package/llms/references/components/dateinput/dateinput.md +198 -0
- package/llms/references/components/daterangeinput/daterangeinput.component.md +49 -0
- package/llms/references/components/daterangeinput/daterangeinput.md +186 -0
- package/llms/references/components/departmentselect/departmentselect.component.md +43 -0
- package/llms/references/components/departmentselect/departmentselect.md +43 -0
- package/llms/references/components/dialog/dialog.component.md +462 -0
- package/llms/references/components/dialog/dialog.md +335 -0
- package/llms/references/components/divider/divider.component.md +35 -0
- package/llms/references/components/divider/divider.md +88 -0
- package/llms/references/components/dropdown/dropdown.component.md +272 -0
- package/llms/references/components/dropdown/dropdown.md +172 -0
- package/llms/references/components/duration-picker/duration-picker.md +155 -0
- package/llms/references/components/empty-state/empty-state.component.md +226 -0
- package/llms/references/components/empty-state/empty-state.md +62 -0
- package/llms/references/components/errorpage/errorpage.component.md +57 -0
- package/llms/references/components/errorpage/errorpage.md +75 -0
- package/llms/references/components/establishmentselect/establishmentselect.component.md +30 -0
- package/llms/references/components/establishmentselect/establishmentselect.md +42 -0
- package/llms/references/components/fancy-dialog/fancy-dialog.component.md +9 -0
- package/llms/references/components/fancy-dialog/fancy-dialog.md +107 -0
- package/llms/references/components/fancybox/fancybox.component.md +48 -0
- package/llms/references/components/fancybox/fancybox.md +75 -0
- package/llms/references/components/fieldset/fieldset.component.md +86 -0
- package/llms/references/components/fieldset/fieldset.md +119 -0
- package/llms/references/components/filedropzone/filedropzone.component.md +16 -0
- package/llms/references/components/filedropzone/filedropzone.md +61 -0
- package/llms/references/components/fileentry/fileentry.component.md +58 -0
- package/llms/references/components/fileentry/fileentry.md +246 -0
- package/llms/references/components/fileupload/fileupload.component.md +91 -0
- package/llms/references/components/fileupload/fileupload.md +246 -0
- package/llms/references/components/filterbar/filterbar.component.md +302 -0
- package/llms/references/components/filterbar/filterbar.md +134 -0
- package/llms/references/components/filterpills/filterpills.component.md +60 -0
- package/llms/references/components/filterpills/filterpills.md +180 -0
- package/llms/references/components/footer/footer.component.md +66 -0
- package/llms/references/components/footer/footer.md +115 -0
- package/llms/references/components/form/form.md +37 -0
- package/llms/references/components/form-field/form-field.component.md +46 -0
- package/llms/references/components/form-field/form-field.md +231 -0
- package/llms/references/components/form-header/form-header.md +29 -0
- package/llms/references/components/form-label/form-label.component.md +106 -0
- package/llms/references/components/form-label/form-label.md +98 -0
- package/llms/references/components/gauge/gauge.component.md +55 -0
- package/llms/references/components/gauge/gauge.md +73 -0
- package/llms/references/components/grid/grid.component.md +15 -0
- package/llms/references/components/grid/grid.md +112 -0
- package/llms/references/components/highlight-data/highlight-data.component.md +279 -0
- package/llms/references/components/highlight-data/highlight-data.md +115 -0
- package/llms/references/components/highlight-section/highlight-section.component.md +185 -0
- package/llms/references/components/highlight-section/highlight-section.md +48 -0
- package/llms/references/components/highlight-text/highlight-text.component.md +49 -0
- package/llms/references/components/highlight-text/highlight-text.md +29 -0
- package/llms/references/components/horizontalnavigation/horizontalnavigation.component.md +232 -0
- package/llms/references/components/horizontalnavigation/horizontalnavigation.md +95 -0
- package/llms/references/components/icons/icons.component.md +59 -0
- package/llms/references/components/icons/icons.md +185 -0
- package/llms/references/components/impersonation/impersonation.component.md +52 -0
- package/llms/references/components/impersonation/impersonation.md +52 -0
- package/llms/references/components/index-table/index-table.component.md +2528 -0
- package/llms/references/components/index-table/index-table.md +243 -0
- package/llms/references/components/inlinemessage/inlinemessage.component.md +58 -0
- package/llms/references/components/inlinemessage/inlinemessage.md +57 -0
- package/llms/references/components/input-framed/input-framed.component.md +714 -0
- package/llms/references/components/input-framed/input-framed.md +50 -0
- package/llms/references/components/link/link.component.md +153 -0
- package/llms/references/components/link/link.md +124 -0
- package/llms/references/components/listbox/listbox.component.md +11 -0
- package/llms/references/components/listbox/listbox.md +101 -0
- package/llms/references/components/listing/listing.component.md +366 -0
- package/llms/references/components/listing/listing.md +105 -0
- package/llms/references/components/loading/loading.component.md +37 -0
- package/llms/references/components/loading/loading.md +91 -0
- package/llms/references/components/main-layout/main-layout.component.md +146 -0
- package/llms/references/components/main-layout/main-layout.md +78 -0
- package/llms/references/components/mobile-push/mobile-push.component.md +62 -0
- package/llms/references/components/mobile-push/mobile-push.md +70 -0
- package/llms/references/components/mobileheader/mobileheader.component.md +31 -0
- package/llms/references/components/mobileheader/mobileheader.md +8 -0
- package/llms/references/components/mobilenavigation/mobilenavigation.component.md +43 -0
- package/llms/references/components/mobilenavigation/mobilenavigation.md +8 -0
- package/llms/references/components/modal/modal.component.md +37 -0
- package/llms/references/components/modal/modal.md +61 -0
- package/llms/references/components/multi-select/multi-select.component.md +39 -0
- package/llms/references/components/multi-select/multi-select.md +426 -0
- package/llms/references/components/multilanguagefield/multilanguagefield.component.md +84 -0
- package/llms/references/components/multilanguagefield/multilanguagefield.md +362 -0
- package/llms/references/components/newbadge/newbadge.component.md +23 -0
- package/llms/references/components/newbadge/newbadge.md +38 -0
- package/llms/references/components/number-format-input/number-format-input.md +46 -0
- package/llms/references/components/number-input/number-input.md +49 -0
- package/llms/references/components/numbers/numbers.component.md +46 -0
- package/llms/references/components/numbers/numbers.md +7 -0
- package/llms/references/components/numericbadge/numericbadge.component.md +66 -0
- package/llms/references/components/numericbadge/numericbadge.md +84 -0
- package/llms/references/components/onboarding-empty-state/onboarding-empty-state.md +47 -0
- package/llms/references/components/pageheader/pageheader.component.md +389 -0
- package/llms/references/components/pageheader/pageheader.md +144 -0
- package/llms/references/components/pagination/pagination.component.md +96 -0
- package/llms/references/components/pagination/pagination.md +107 -0
- package/llms/references/components/phonenumberfield/phonenumberfield.component.md +35 -0
- package/llms/references/components/phonenumberfield/phonenumberfield.md +131 -0
- package/llms/references/components/plg-push/plg-push.component.md +91 -0
- package/llms/references/components/plg-push/plg-push.md +82 -0
- package/llms/references/components/popover/popover.component.md +130 -0
- package/llms/references/components/popover/popover.md +235 -0
- package/llms/references/components/popover2/popover2.component.md +103 -0
- package/llms/references/components/popover2/popover2.md +89 -0
- package/llms/references/components/progress-bar/progress-bar.component.md +33 -0
- package/llms/references/components/progress-bar/progress-bar.md +51 -0
- package/llms/references/components/progress-stepper/progress-stepper.component.md +281 -0
- package/llms/references/components/progress-stepper/progress-stepper.md +70 -0
- package/llms/references/components/radiofield/radiofield.component.md +295 -0
- package/llms/references/components/radiofield/radiofield.md +122 -0
- package/llms/references/components/readmore/readmore.component.md +60 -0
- package/llms/references/components/readmore/readmore.md +88 -0
- package/llms/references/components/resource-card/resource-card.component.md +216 -0
- package/llms/references/components/resource-card/resource-card.md +106 -0
- package/llms/references/components/richtextinput/richtextinput.component.md +298 -0
- package/llms/references/components/richtextinput/richtextinput.md +275 -0
- package/llms/references/components/scroll/scroll.md +45 -0
- package/llms/references/components/scrollbox/scrollbox.component.md +63 -0
- package/llms/references/components/scrollbox/scrollbox.md +49 -0
- package/llms/references/components/section-empty-state/section-empty-state.component.md +9 -0
- package/llms/references/components/section-empty-state/section-empty-state.md +41 -0
- package/llms/references/components/segmented-control-tabs/segmented-control-tabs.md +50 -0
- package/llms/references/components/segmentedcontrol/segmentedcontrol.component.md +198 -0
- package/llms/references/components/segmentedcontrol/segmentedcontrol.md +108 -0
- package/llms/references/components/select/select.component.md +237 -0
- package/llms/references/components/select/select.md +57 -0
- package/llms/references/components/select-templating/select-templating.md +117 -0
- package/llms/references/components/sidepanel/sidepanel.component.md +56 -0
- package/llms/references/components/sidepanel/sidepanel.md +7 -0
- package/llms/references/components/simple-select/simple-select.component.md +39 -0
- package/llms/references/components/simple-select/simple-select.md +291 -0
- package/llms/references/components/skeleton/skeleton.component.md +133 -0
- package/llms/references/components/skeleton/skeleton.md +212 -0
- package/llms/references/components/skiplinks/skiplinks.component.md +91 -0
- package/llms/references/components/skiplinks/skiplinks.md +73 -0
- package/llms/references/components/software-icon/software-icon.component.md +61 -0
- package/llms/references/components/software-icon/software-icon.md +107 -0
- package/llms/references/components/sortable-list/sortable-list.component.md +141 -0
- package/llms/references/components/sortable-list/sortable-list.md +84 -0
- package/llms/references/components/statusbadge/statusbadge.component.md +56 -0
- package/llms/references/components/statusbadge/statusbadge.md +63 -0
- package/llms/references/components/switchfield/switchfield.component.md +114 -0
- package/llms/references/components/switchfield/switchfield.md +56 -0
- package/llms/references/components/tableofcontent/tableofcontent.component.md +55 -0
- package/llms/references/components/tableofcontent/tableofcontent.md +41 -0
- package/llms/references/components/tags/tags.component.md +112 -0
- package/llms/references/components/tags/tags.md +115 -0
- package/llms/references/components/text-flow/text-flow.component.md +71 -0
- package/llms/references/components/text-flow/text-flow.md +63 -0
- package/llms/references/components/textareafield/textareafield.component.md +69 -0
- package/llms/references/components/textareafield/textareafield.md +113 -0
- package/llms/references/components/textfield/textfield.component.md +617 -0
- package/llms/references/components/textfield/textfield.md +161 -0
- package/llms/references/components/tile/tile.component.md +91 -0
- package/llms/references/components/tile/tile.md +92 -0
- package/llms/references/components/time/time.component.md +270 -0
- package/llms/references/components/time/time.md +127 -0
- package/llms/references/components/time-picker/time-picker.md +63 -0
- package/llms/references/components/timelines/timelines.component.md +159 -0
- package/llms/references/components/timelines/timelines.md +8 -0
- package/llms/references/components/title-and-text/title-and-text.component.md +14 -0
- package/llms/references/components/title-and-text/title-and-text.md +60 -0
- package/llms/references/components/toasts/toasts.component.md +54 -0
- package/llms/references/components/toasts/toasts.md +112 -0
- package/llms/references/components/tooltip/tooltip.component.md +86 -0
- package/llms/references/components/tooltip/tooltip.md +217 -0
- package/llms/references/components/treeselect/treeselect.component.md +62 -0
- package/llms/references/components/treeselect/treeselect.md +58 -0
- package/llms/references/components/user-select/user-select.md +52 -0
- package/llms/references/components/userpopover/userpopover.component.md +50 -0
- package/llms/references/components/userpopover/userpopover.md +136 -0
- package/llms/references/components/verticalnavigation/verticalnavigation.component.md +236 -0
- package/llms/references/components/verticalnavigation/verticalnavigation.md +115 -0
- package/llms/references/migrations.md +32 -0
- package/llms/references/tools/angular-api.md +337 -0
- package/llms/references/tools/animations.md +173 -0
- package/llms/references/tools/mixins.md +106 -0
- package/llms/references/tools/numbers.md +81 -0
- package/llms/references/tools/scrollbox.md +59 -0
- package/llms/references/tools/utilitaires.md +951 -0
- package/llms/references/types/BubbleIllustration.md +5 -0
- package/llms/references/types/DecorativePalette.md +5 -0
- package/llms/references/types/Gap.md +5 -0
- package/llms/references/types/HighlightDataIllustration.md +5 -0
- package/llms/references/types/HighlightSectionIllustration.md +5 -0
- package/llms/references/types/LuccaIcon.md +5 -0
- package/llms/references/types/MainLayoutIllustrationEndStart.md +5 -0
- package/llms/references/types/MainLayoutIllustrationStartEnd.md +5 -0
- package/llms.txt +221 -0
- package/package.json +12 -6
- package/types/lucca-front-ng-approbation-inbox.d.ts +3 -3
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# skiplinks — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-navigation-skiplinks-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
En navigant uniquement au clavier, il est nécessaire de passer par chaque élément des différents menus avant d'arriver au contenu, ce qui peut parfois demander des dizaines d'actions. L'accès rapide permet de cibler plus rapidement chaque section générale avant d'accéder plus rapidement au contenu souhaité.
|
|
8
|
+
|
|
9
|
+
Le composant reste masqué visuellement tant qu'il n'a pas le focus : il n'apparaît qu'au premier `tab`, et disparaît dès que le focus le quitte. Il n'a donc aucun impact sur le rendu de l'interface pour un utilisateur à la souris.
|
|
10
|
+
|
|
11
|
+
ℹ️ Pour tester l'accès rapide, cliquez sur le coin supérieur gauche du composant ci-dessous, puis naviguez avec tab et entrée.
|
|
12
|
+
|
|
13
|
+
## Mise en place
|
|
14
|
+
|
|
15
|
+
Le composant se déclare une seule fois, dans `app.component.html`, **avant** le menu principal et le menu secondaire. Il doit être le premier élément focusable de la page :
|
|
16
|
+
|
|
17
|
+
### Sections cibles intégrées
|
|
18
|
+
|
|
19
|
+
Les trois liens intégrés s'appuient sur les identifiants suivants :
|
|
20
|
+
|
|
21
|
+
| Lien | Identifiant attendu |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Menu principal | `#lucca-banner-solutions-container` |
|
|
24
|
+
| Menu secondaire | `#navSide` |
|
|
25
|
+
| Contenu principal | `#main-content` (à ajouter manuellement si nécessaire) |
|
|
26
|
+
|
|
27
|
+
### Ajouter un accès rapide `v21.3`
|
|
28
|
+
|
|
29
|
+
La directive `luSkipLinkTarget` se pose sur l'élément à atteindre : le lien correspondant est alors ajouté automatiquement au composant SkipLinks. L'identifiant utilisé pour l'ancre est généré automatiquement si aucune valeur n'est passée à la directive.
|
|
30
|
+
|
|
31
|
+
L'input `luSkipLinkLabel` est obligatoire : il renseigne l'intitulé du lien affiché dans SkipLinks.
|
|
32
|
+
|
|
33
|
+
### Links basic
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
37
|
+
import { LuSkipLinksComponent, SkipLinkDirective } from '@lucca-front/ng/a11y';
|
|
38
|
+
import { AppLayoutComponent } from '@lucca-front/ng/app-layout';
|
|
39
|
+
import { ContainerComponent } from '@lucca-front/ng/container';
|
|
40
|
+
import { MainLayoutBlockComponent, MainLayoutComponent } from '@lucca-front/ng/main-layout';
|
|
41
|
+
import { LuSkipLinksComponent } from '@lucca-front/ng/a11y';
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<lu-skip-links />
|
|
46
|
+
<lu-app-layout>
|
|
47
|
+
<ng-container appLayoutBanner>
|
|
48
|
+
<div id="lucca-banner-solutions-container" tabindex="-1">
|
|
49
|
+
<a href="#">banner</a>
|
|
50
|
+
</div>
|
|
51
|
+
</ng-container>
|
|
52
|
+
<ng-container appLayoutNavSide>
|
|
53
|
+
<div id="navSide" tabindex="-1">
|
|
54
|
+
<a href="#">navside</a>
|
|
55
|
+
<a href="#">navside</a>
|
|
56
|
+
<a href="#">navside</a>
|
|
57
|
+
<a href="#">navside</a>
|
|
58
|
+
<a href="#">navside</a>
|
|
59
|
+
</div>
|
|
60
|
+
</ng-container>
|
|
61
|
+
<lu-main-layout>
|
|
62
|
+
<lu-main-layout-block>
|
|
63
|
+
<lu-container>
|
|
64
|
+
<div class="fakeContent"><a href="#">content</a></div>
|
|
65
|
+
</lu-container>
|
|
66
|
+
</lu-main-layout-block>
|
|
67
|
+
<lu-main-layout-block>
|
|
68
|
+
<lu-container>
|
|
69
|
+
<div class="fakeContent"><a href="#">content</a></div>
|
|
70
|
+
</lu-container>
|
|
71
|
+
</lu-main-layout-block>
|
|
72
|
+
<lu-main-layout-block>
|
|
73
|
+
<lu-container>
|
|
74
|
+
<div class="fakeContent"><a href="#">content</a></div>
|
|
75
|
+
</lu-container>
|
|
76
|
+
</lu-main-layout-block>
|
|
77
|
+
<lu-main-layout-block>
|
|
78
|
+
<lu-container>
|
|
79
|
+
<div luSkipLinkTarget luSkipLinkLabel="Go to custom skip link target" class="fakeContent">
|
|
80
|
+
<a href="#">custom skip link target</a>
|
|
81
|
+
</div>
|
|
82
|
+
</lu-container>
|
|
83
|
+
</lu-main-layout-block>
|
|
84
|
+
<lu-main-layout-block>
|
|
85
|
+
<lu-container>
|
|
86
|
+
<div class="fakeContent"><a href="#">content</a></div>
|
|
87
|
+
</lu-container>
|
|
88
|
+
</lu-main-layout-block>
|
|
89
|
+
</lu-main-layout>
|
|
90
|
+
</lu-app-layout>
|
|
91
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# skiplinks
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SkipLinkDirective, LuSkipLinksComponent } from '@lucca-front/ng/a11y';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-skip-links /> <lu-app-layout> <ng-container appLayoutBanner> <div id="lucca-banner-solutions-container" tabindex="-1"> <a href="#">banner</a> </div> </ng-container> <ng-container appLayoutNavSide> <div id="navSide" tabindex="-1"> <a href="#">navside</a> <a href="#">navside</a> <a href="#">navside</a> <a href="#">navside</a> <a href="#">navside</a> </div> </ng-container> <lu-main-layout> <lu-main-layout-block> <lu-container> <div class="fakeContent"><a href="#">content</a></div> </lu-container> </lu-main-layout-block> <lu-main-layout-block> <lu-container> <div class="fakeContent"><a href="#">content</a></div> </lu-container> </lu-main-layout-block> <lu-main-layout-block> <lu-container> <div class="fakeContent"><a href="#">content</a></div> </lu-container> </lu-main-layout-block> <lu-main-layout-block> <lu-container> <div luSkipLinkTarget luSkipLinkLabel="Go to custom skip link target" class="fakeContent"><a href="#">custom skip link target</a></div> </lu-container> </lu-main-layout-block> <lu-main-layout-block> <lu-container> <div class="fakeContent"><a href="#">content</a></div> </lu-container> </lu-main-layout-block> </lu-main-layout> </lu-app-layout>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### SkipLinkDirective (directive)
|
|
18
|
+
|
|
19
|
+
**Selector:** `[luSkipLinkTarget]`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `luSkipLinkLabel` | `luSkipLinkLabel` | `string` | — | ✅ | — | — |
|
|
26
|
+
| `luSkipLinkTarget` | `luSkipLinkTarget` | `string` | `''` | — | — | — |
|
|
27
|
+
|
|
28
|
+
### LuSkipLinksComponent (component)
|
|
29
|
+
|
|
30
|
+
**Selector:** `lu-skip-links`
|
|
31
|
+
|
|
32
|
+
#### Inputs
|
|
33
|
+
|
|
34
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
35
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
36
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
37
|
+
|
|
38
|
+
### Injection tokens
|
|
39
|
+
|
|
40
|
+
| Token | Type | Description |
|
|
41
|
+
|-------|------|-------------|
|
|
42
|
+
| `LU_SKIP_LINKS_TRANSLATIONS` | `LuTranslation<ILuSkipLinksLabel>` | — |
|
|
43
|
+
|
|
44
|
+
### Services
|
|
45
|
+
|
|
46
|
+
#### SkipLinksService
|
|
47
|
+
|
|
48
|
+
- `register(link: LuSkipLink)`
|
|
49
|
+
- `unregister(link: LuSkipLink)`
|
|
50
|
+
|
|
51
|
+
## Related files
|
|
52
|
+
|
|
53
|
+
- 📝 [Code & implementation](./skiplinks.component.md)
|
|
54
|
+
|
|
55
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-navigation-skiplinks-basic--docs)
|
|
56
|
+
|
|
57
|
+
## Changelog
|
|
58
|
+
|
|
59
|
+
_Aucun changement d'API entre v21.4.2 et v22.0.0._
|
|
60
|
+
|
|
61
|
+
### Notes de release (ZeroHeight)
|
|
62
|
+
|
|
63
|
+
#### 21.3.0
|
|
64
|
+
|
|
65
|
+
##### Added
|
|
66
|
+
|
|
67
|
+
- `[luSkipLinkTarget]` directive with the `luSkipLinkTarget` and `luSkipLinkLabel` inputs, to append skip links to the ones already declared on the component.
|
|
68
|
+
|
|
69
|
+
#### 18.2.0
|
|
70
|
+
|
|
71
|
+
##### Changed
|
|
72
|
+
|
|
73
|
+
- Translations are now managed in Lokalise.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# software-icon — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-structure-software-icon-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-software-icon`
|
|
8
|
+
|
|
9
|
+
### Basic
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { SOFTWARE_ICON, SOFTWARE_ICON_SIZE, SoftwareIconComponent } from '@lucca-front/ng/software-icon';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<lu-software-icon icon="absences" iconAlt="Absences" />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Wrapper
|
|
20
|
+
|
|
21
|
+
```js
|
|
22
|
+
import { SoftwareIconComponent } from '@lucca-front/ng/software-icon';
|
|
23
|
+
import { SoftwareIconWrapperComponent, SoftwareIconWrapperItemDirective } from '@lucca-front/ng/software-icon-wrapper';
|
|
24
|
+
import { LuTooltipTriggerDirective } from '@lucca-front/ng/tooltip';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<lu-software-icon-wrapper max="8">
|
|
29
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="faces" iconAlt="Faces" />
|
|
30
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="ask-lucca" iconAlt="Ask Lucca" />
|
|
31
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="office" iconAlt="Office" />
|
|
32
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="sandbox" iconAlt="Sandbox" />
|
|
33
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="absences" iconAlt="Absences" />
|
|
34
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="business-expenses" iconAlt="Expenses" />
|
|
35
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="mood" iconAlt="Mood" />
|
|
36
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="invoices" iconAlt="Invoices" />
|
|
37
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="engagement" iconAlt="Engagement" />
|
|
38
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="timesheet" iconAlt="Timesheet" />
|
|
39
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="compensation" iconAlt="Compensation" />
|
|
40
|
+
<lu-software-icon *luSoftwareIconWrapperItem icon="store" iconAlt="Store" />
|
|
41
|
+
</lu-software-icon-wrapper>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## HTML/CSS
|
|
45
|
+
|
|
46
|
+
Classe CSS : `.softwareIcon`
|
|
47
|
+
|
|
48
|
+
### Basic
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@forward '@lucca-front/scss/src/components/softwareIcon';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<span
|
|
56
|
+
class="softwareIcon"
|
|
57
|
+
aria-hidden="true"
|
|
58
|
+
[innerHtml]="'https://cdn.lucca.fr/transverse/prisme/visuals/software-icon/absences.svg' | luSafeExternalSvg"
|
|
59
|
+
></span>
|
|
60
|
+
<span class="pr-u-mask">Absences</span>
|
|
61
|
+
```
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# software-icon
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SoftwareIconComponent } from '@lucca-front/ng/software-icon';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-software-icon icon="absences" iconAlt="Absences" />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### SoftwareIconComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-software-icon`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `icon` | `icon` | `// Time and Activities
|
|
26
|
+
'absences' \| 'timesheet' \| 'office' \| 'projects' \| 'shifts' \| // Talent Management
|
|
27
|
+
'performance' \| 'engagement' \| 'training' \| 'recruitment' \| 'mood' \| // Employee Administration
|
|
28
|
+
'analytics' \| 'employee-administration' \| 'shared-documents' \| 'faces' \| // Spend Management
|
|
29
|
+
'business-expenses' \| 'invoices' \| 'payment-methods' \| 'accounting-assistant' \| 'certified-einvoicing-platform' \| // Compensation and Benefits
|
|
30
|
+
'compensation' \| 'payslip' \| 'benefits' \| 'payroll-assistant' \| // Lucca
|
|
31
|
+
'cloud-control' \| 'ask-lucca' \| 'ask-salesforce' \| 'calendar' \| 'administration' \| 'client-center' \| 'sandbox' \| 'store' \| 'lucca'` | — | ✅ | — | Modifie l’icône produit. |
|
|
32
|
+
| `disabled` | `disabled` | `boolean` | `false` | — | `luBooleanAttribute` | Marque le produit comme inactif. |
|
|
33
|
+
| `withTooltip` | `withTooltip` | `boolean` | `false` | — | `luBooleanAttribute` | Ajoute une info-bulle qui reprend l’alternative textuelle de l’icône. (Ce paramètre est automatiquement activé quand l’i… |
|
|
34
|
+
| `iconAlt` | `iconAlt` | `string` | `''` | — | — | Texte alternatif de l’illustration restitué par les lecteurs d’écran. |
|
|
35
|
+
| `size` | `size` | `SoftwareIconSize \| ''` | `''` | — | — | Modifie la taille du composant. |
|
|
36
|
+
|
|
37
|
+
### Injection tokens
|
|
38
|
+
|
|
39
|
+
| Token | Type | Description |
|
|
40
|
+
|-------|------|-------------|
|
|
41
|
+
| `LU_SOFTWARE_ICON_WRAPPER` | `boolean` | — |
|
|
42
|
+
|
|
43
|
+
## Related files
|
|
44
|
+
|
|
45
|
+
- 📝 [Code & implementation](./software-icon.component.md)
|
|
46
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/software-icon/software-icon.design.md)
|
|
47
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/software-icon/software-icon.figma.md)
|
|
48
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-structure-software-icon-angular-basic--docs)
|
|
49
|
+
|
|
50
|
+
## Changelog
|
|
51
|
+
|
|
52
|
+
> 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.
|
|
53
|
+
|
|
54
|
+
### 22.0.0
|
|
55
|
+
|
|
56
|
+
~ `disabled` : transform booleanAttribute → luBooleanAttribute
|
|
57
|
+
~ `withTooltip` : transform booleanAttribute → luBooleanAttribute
|
|
58
|
+
|
|
59
|
+
### Notes de release (ZeroHeight)
|
|
60
|
+
|
|
61
|
+
#### 21.3.1
|
|
62
|
+
|
|
63
|
+
##### Added
|
|
64
|
+
|
|
65
|
+
- `salesforce` value for the `icon` input.
|
|
66
|
+
|
|
67
|
+
#### 21.3.0
|
|
68
|
+
|
|
69
|
+
##### Added
|
|
70
|
+
|
|
71
|
+
- `SOFTWARE_ICON` and `SOFTWARE_ICON_SIZE` constants, together with the `SoftwareIcon` and `SoftwareIconSize` types, are now publicly exported and used to type the `icon` and `size` inputs.
|
|
72
|
+
|
|
73
|
+
#### 21.2.3
|
|
74
|
+
|
|
75
|
+
##### Added
|
|
76
|
+
|
|
77
|
+
- `iconAlt` input to provide an alternative text for the icon.
|
|
78
|
+
- `withTooltip` input to reveal the icon label in a tooltip.
|
|
79
|
+
- `LU_SOFTWARE_ICON_WRAPPER` injection token, set when the icon is rendered inside a `lu-software-icon-wrapper`.
|
|
80
|
+
|
|
81
|
+
#### 21.2.2
|
|
82
|
+
|
|
83
|
+
##### Added
|
|
84
|
+
|
|
85
|
+
- New icons in the available software list.
|
|
86
|
+
|
|
87
|
+
#### 21.1.4
|
|
88
|
+
|
|
89
|
+
##### Added
|
|
90
|
+
|
|
91
|
+
- New product icons in the available software list.
|
|
92
|
+
|
|
93
|
+
#### 21.1.1
|
|
94
|
+
|
|
95
|
+
##### Added
|
|
96
|
+
|
|
97
|
+
- Face and mood icons.
|
|
98
|
+
|
|
99
|
+
##### Fixed
|
|
100
|
+
|
|
101
|
+
- Naming of some icons.
|
|
102
|
+
|
|
103
|
+
#### 21.1.0
|
|
104
|
+
|
|
105
|
+
##### Added
|
|
106
|
+
|
|
107
|
+
- `lu-software-icon` component (`softwareIcon`) with the required `icon` input plus `size` and `disabled`.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# sortable-list — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-listings-sortable-list-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Le drag and drop est porté par Angular CDK [drag-drop](https://angular.dev/guide/drag-drop).
|
|
8
|
+
|
|
9
|
+
Mots-clés : triable, drag and drop, réorganisation
|
|
10
|
+
|
|
11
|
+
Component selector : `lu-sortable-list`
|
|
12
|
+
|
|
13
|
+
### Basic
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { SortableListComponent, SortableListItemComponent } from '@lucca-front/ng/sortable-list';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<lu-sortable-list>
|
|
21
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" />
|
|
22
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" />
|
|
23
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" />
|
|
24
|
+
</lu-sortable-list>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Draggable
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import { CdkDrag, CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';
|
|
31
|
+
import { SortableListComponent, SortableListItemComponent } from '@lucca-front/ng/sortable-list';
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<lu-sortable-list cdkDropList (cdkDropListDropped)="drop($event)">
|
|
36
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" drag cdkDrag />
|
|
37
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" drag cdkDrag />
|
|
38
|
+
<lu-sortable-list-item label="Label" helperMessage="Helper message" drag cdkDrag />
|
|
39
|
+
</lu-sortable-list>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## HTML/CSS
|
|
43
|
+
|
|
44
|
+
Classe CSS : `.sortableList`
|
|
45
|
+
|
|
46
|
+
### List
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
@forward '@lucca-front/scss/src/components/sortableList';
|
|
50
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
51
|
+
@forward '@lucca-front/scss/src/components/clear';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<ul class="sortableList">
|
|
56
|
+
<li class="sortableList-item">
|
|
57
|
+
<span class="sortableList-item-handler button">
|
|
58
|
+
<span class="lucca-icon icon-drag" aria-hidden="true"></span>
|
|
59
|
+
<span class="pr-u-mask">Position 1. Utilisez les touches directionnelles pour réordonner</span>
|
|
60
|
+
</span>
|
|
61
|
+
<div class="sortableList-item-content">
|
|
62
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
63
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
64
|
+
</div>
|
|
65
|
+
<button class="clear sortableList-clear" type="button">
|
|
66
|
+
<span class="pr-u-mask">Delete</span>
|
|
67
|
+
</button>
|
|
68
|
+
</li>
|
|
69
|
+
<li class="sortableList-item">
|
|
70
|
+
<span class="sortableList-item-handler button">
|
|
71
|
+
<span class="lucca-icon icon-drag" aria-hidden="true"></span>
|
|
72
|
+
<span class="pr-u-mask">Position 1. Utilisez les touches directionnelles pour réordonner</span>
|
|
73
|
+
</span>
|
|
74
|
+
<div class="sortableList-item-content">
|
|
75
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
76
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
77
|
+
</div>
|
|
78
|
+
<button class="clear sortableList-clear" type="button">
|
|
79
|
+
<span class="pr-u-mask">Delete</span>
|
|
80
|
+
</button>
|
|
81
|
+
</li>
|
|
82
|
+
<li class="sortableList-item">
|
|
83
|
+
<span class="sortableList-item-handler button">
|
|
84
|
+
<span class="lucca-icon icon-drag" aria-hidden="true"></span>
|
|
85
|
+
<span class="pr-u-mask">Position 1. Utilisez les touches directionnelles pour réordonner</span>
|
|
86
|
+
</span>
|
|
87
|
+
<div class="sortableList-item-content">
|
|
88
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
89
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
90
|
+
</div>
|
|
91
|
+
<button class="clear sortableList-clear" type="button">
|
|
92
|
+
<span class="pr-u-mask">Delete</span>
|
|
93
|
+
</button>
|
|
94
|
+
</li>
|
|
95
|
+
</ul>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### List basic
|
|
99
|
+
|
|
100
|
+
```css
|
|
101
|
+
@forward '@lucca-front/scss/src/components/sortableList';
|
|
102
|
+
@forward '@lucca-front/scss/src/components/clear';
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
```html
|
|
106
|
+
<ul class="sortableList">
|
|
107
|
+
<li class="sortableList-item">
|
|
108
|
+
<div class="sortableList-item-handler"></div>
|
|
109
|
+
<div class="sortableList-item-content">
|
|
110
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
111
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
112
|
+
</div>
|
|
113
|
+
<button class="clear sortableList-clear" type="button">
|
|
114
|
+
<span aria-hidden="true" class="lucca-icon icon-signClose"></span>
|
|
115
|
+
<span class="pr-u-mask">Delete</span>
|
|
116
|
+
</button>
|
|
117
|
+
</li>
|
|
118
|
+
<li class="sortableList-item">
|
|
119
|
+
<div class="sortableList-item-handler"></div>
|
|
120
|
+
<div class="sortableList-item-content">
|
|
121
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
122
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
123
|
+
</div>
|
|
124
|
+
<button class="clear sortableList-clear" type="button">
|
|
125
|
+
<span aria-hidden="true" class="lucca-icon icon-signClose"></span>
|
|
126
|
+
<span class="pr-u-mask">Delete</span>
|
|
127
|
+
</button>
|
|
128
|
+
</li>
|
|
129
|
+
<li class="sortableList-item">
|
|
130
|
+
<div class="sortableList-item-handler"></div>
|
|
131
|
+
<div class="sortableList-item-content">
|
|
132
|
+
<p class="sortableList-item-content-description">Label</p>
|
|
133
|
+
<p class="sortableList-item-content-helper">Helper message</p>
|
|
134
|
+
</div>
|
|
135
|
+
<button class="clear sortableList-clear" type="button">
|
|
136
|
+
<span aria-hidden="true" class="lucca-icon icon-signClose"></span>
|
|
137
|
+
<span class="pr-u-mask">Delete</span>
|
|
138
|
+
</button>
|
|
139
|
+
</li>
|
|
140
|
+
</ul>
|
|
141
|
+
```
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# sortable-list
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SortableListItemComponent, SortableListComponent } from '@lucca-front/ng/sortable-list';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-sortable-list> <lu-sortable-list-item label="Label" helperMessage="Helper message" /> <lu-sortable-list-item label="Label" helperMessage="Helper message" /> <lu-sortable-list-item label="Label" helperMessage="Helper message" />
|
|
13
|
+
</lu-sortable-list>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API Reference
|
|
17
|
+
|
|
18
|
+
### SortableListItemComponent (component)
|
|
19
|
+
|
|
20
|
+
**Selector:** `lu-sortable-list-item`
|
|
21
|
+
|
|
22
|
+
#### Inputs
|
|
23
|
+
|
|
24
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
25
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
26
|
+
| `label` | `label` | `PortalContent` | — | ✅ | — | Modifie le texte principal d’un élément de liste. [PortalContent] |
|
|
27
|
+
| `helperMessage` | `helperMessage` | `string` | — | — | — | Ajoute un texte secondaire à l’élément de liste. |
|
|
28
|
+
| `clickable` | `clickable` | `boolean` | `false` | — | `luBooleanAttribute` | Rend les lignes cliquables. |
|
|
29
|
+
| `unclearable` | `unclearable` | `boolean` | `false` | — | `luBooleanAttribute` | Masque la croix de suppression. |
|
|
30
|
+
| `drag` | `drag` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
31
|
+
| `small` | `small` | `boolean` | `false` | — | `luBooleanAttribute` | Modifie la taille du composant. |
|
|
32
|
+
|
|
33
|
+
#### Outputs
|
|
34
|
+
|
|
35
|
+
| Property | Binding name | Type | Notes |
|
|
36
|
+
|----------|-------------|------|-------|
|
|
37
|
+
| `delete` | `delete` | `void` | — |
|
|
38
|
+
|
|
39
|
+
### SortableListComponent (component)
|
|
40
|
+
|
|
41
|
+
**Selector:** `lu-sortable-list`
|
|
42
|
+
|
|
43
|
+
#### Inputs
|
|
44
|
+
|
|
45
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
46
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
47
|
+
| `small` | `small` | `boolean` | `false` | — | `luBooleanAttribute` | Modifie la taille du composant. |
|
|
48
|
+
|
|
49
|
+
## Related files
|
|
50
|
+
|
|
51
|
+
- 📝 [Code & implementation](./sortable-list.component.md)
|
|
52
|
+
|
|
53
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/sortable-list/sortable-list.figma.md)
|
|
54
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-listings-sortable-list-angular-basic--docs)
|
|
55
|
+
|
|
56
|
+
## Changelog
|
|
57
|
+
|
|
58
|
+
> 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.
|
|
59
|
+
|
|
60
|
+
### 22.0.0
|
|
61
|
+
|
|
62
|
+
`SortableListItemComponent` :
|
|
63
|
+
~ `clickable` : transform booleanAttribute → luBooleanAttribute
|
|
64
|
+
~ `unclearable` : transform booleanAttribute → luBooleanAttribute
|
|
65
|
+
~ `drag` : transform booleanAttribute → luBooleanAttribute
|
|
66
|
+
~ `small` : transform booleanAttribute → luBooleanAttribute
|
|
67
|
+
`SortableListComponent` :
|
|
68
|
+
~ `small` : transform booleanAttribute → luBooleanAttribute
|
|
69
|
+
|
|
70
|
+
### Notes de release (ZeroHeight)
|
|
71
|
+
|
|
72
|
+
#### 21.3.1
|
|
73
|
+
|
|
74
|
+
##### Changed
|
|
75
|
+
|
|
76
|
+
- `label` the `lu-sortable-list-item` input now accepts a `PortalContent` instead of a plain `string`, allowing rich templated content.
|
|
77
|
+
|
|
78
|
+
#### 21.0.0
|
|
79
|
+
|
|
80
|
+
##### Added
|
|
81
|
+
|
|
82
|
+
- `lu-sortable-list` new Angular wrapper component exposing a `small` input and projecting `lu-sortable-list-item` children.
|
|
83
|
+
- `lu-sortable-list-item` new Angular wrapper component with `label` (required), `helperMessage`, `clickable`, `unclearable` and `small` inputs and a `delete` output.
|
|
84
|
+
- `drag` a `lu-sortable-list-item` input that displays a drag handle and enables drag-and-drop reordering.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# statusbadge — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-statusbadge-angular--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-status-badge`
|
|
8
|
+
|
|
9
|
+
### Badge angular
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { STATUS_BADGE_SIZE, StatusBadgeComponent } from '@lucca-front/ng/status-badge';
|
|
13
|
+
import { PALETTE } from '@lucca/prisme/core';
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<lu-status-badge label="Status" />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## HTML/CSS
|
|
21
|
+
|
|
22
|
+
Classe CSS : `.statusBadge`
|
|
23
|
+
|
|
24
|
+
### Badge basic
|
|
25
|
+
|
|
26
|
+
```css
|
|
27
|
+
@forward '@lucca-front/scss/src/components/statusBadge';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<div class="statusBadge">Status</div>
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Badge palettes
|
|
35
|
+
|
|
36
|
+
```css
|
|
37
|
+
@forward '@lucca-front/scss/src/components/statusBadge';
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<div class="statusBadge palette-product">Status</div>
|
|
42
|
+
<div class="statusBadge palette-neutral">Status</div>
|
|
43
|
+
<div class="statusBadge palette-success">Status</div>
|
|
44
|
+
<div class="statusBadge palette-warning">Status</div>
|
|
45
|
+
<div class="statusBadge palette-error">Status</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Badge size
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@forward '@lucca-front/scss/src/components/statusBadge';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<div class="statusBadge mod-L">Status</div>
|
|
56
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# statusbadge
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { StatusBadgeComponent } from '@lucca-front/ng/status-badge';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### StatusBadgeComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-status-badge`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `withEllipsis` | `withEllipsis` | `boolean` | `false` | — | `luBooleanAttribute` | [v20.3] Ellipse le texte et ajoute une tooltip lorsque le label est trop long. |
|
|
20
|
+
| `label` | `label` | `string` | — | ✅ | — | Modifie le texte affiché par le composant. |
|
|
21
|
+
| `size` | `size` | `'L' \| 'M'` | `'M'` | — | — | Modifie la taille du composant.[v20.2] Ajout de la taille M |
|
|
22
|
+
| `palette` | `palette` | `Palette \| null` | `null` | — | — | Applique une palette de couleurs au composant.[v19.2] Ajout de Neutral. |
|
|
23
|
+
|
|
24
|
+
## Related files
|
|
25
|
+
|
|
26
|
+
- 📝 [Code & implementation](./statusbadge.component.md)
|
|
27
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/statusbadge/statusbadge.design.md)
|
|
28
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/statusbadge/statusbadge.figma.md)
|
|
29
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-statusbadge-angular--docs)
|
|
30
|
+
|
|
31
|
+
## Changelog
|
|
32
|
+
|
|
33
|
+
> 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.
|
|
34
|
+
|
|
35
|
+
### 22.0.0
|
|
36
|
+
|
|
37
|
+
~ `withEllipsis` : transform booleanAttribute → luBooleanAttribute
|
|
38
|
+
|
|
39
|
+
### Notes de release (ZeroHeight)
|
|
40
|
+
|
|
41
|
+
#### 20.3.0
|
|
42
|
+
|
|
43
|
+
##### Added
|
|
44
|
+
|
|
45
|
+
- `withEllipsis` input that truncates the label with an ellipsis and displays a tooltip when the text is too long.
|
|
46
|
+
|
|
47
|
+
#### 20.2.0
|
|
48
|
+
|
|
49
|
+
##### Changed
|
|
50
|
+
|
|
51
|
+
- `size` input now accepts `'M'` (medium) and uses it as the default size (previously only `'L'` was available).
|
|
52
|
+
|
|
53
|
+
#### 19.1.0
|
|
54
|
+
|
|
55
|
+
##### Added
|
|
56
|
+
|
|
57
|
+
- `lu-status-badge` Angular component (`StatusBadgeComponent`) wrapping the status badge, with `label`, `size` and `palette` inputs.
|
|
58
|
+
|
|
59
|
+
#### 18.2.0
|
|
60
|
+
|
|
61
|
+
##### Fixed
|
|
62
|
+
|
|
63
|
+
- Vertical alignment of the badge dot inside tables and other inline-flex contexts.
|