@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,50 @@
|
|
|
1
|
+
# input-framed
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { InputFramedComponent } from '@lucca-front/ng/form-field';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-form-field label="Label" errorInlineMessage="Error inline message"> <lu-radio-group-input [(ngModel)]="example" framed required> <lu-radio value="A"> Option A </lu-radio> <lu-radio value="B"> Option B </lu-radio> <lu-radio value="C" disabled> Option C </lu-radio> <lu-radio value="D"> Option D </lu-radio> </lu-radio-group-input> </lu-form-field>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### InputFramedComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-input-framed`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `framedPortal` | `framedPortal` | `PortalContent \| null` | `null` | — | — | — |
|
|
26
|
+
| `center` | `center` | `boolean` | `false` | — | `luBooleanAttribute` | Aligne le champ et son illustration verticalement lorsque le label est trop court. |
|
|
27
|
+
| `size` | `size` | `InputFramedSize \| null` | `null` | — | — | — |
|
|
28
|
+
|
|
29
|
+
### Injection tokens
|
|
30
|
+
|
|
31
|
+
| Token | Type | Description |
|
|
32
|
+
|-------|------|-------------|
|
|
33
|
+
| `FORM_FIELD_INSTANCE` | `FormFieldComponent` | — |
|
|
34
|
+
| `LU_FORM_FIELD_TRANSLATIONS` | `unknown` | — |
|
|
35
|
+
| `INPUT_FRAMED_INSTANCE` | `InputFramedComponent` | — |
|
|
36
|
+
|
|
37
|
+
## Related files
|
|
38
|
+
|
|
39
|
+
- 📝 [Code & implementation](./input-framed.component.md)
|
|
40
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/input-framed/input-framed.design.md)
|
|
41
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/input-framed/input-framed.figma.md)
|
|
42
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-input-framed-angular-basic--docs)
|
|
43
|
+
|
|
44
|
+
## Changelog
|
|
45
|
+
|
|
46
|
+
> 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.
|
|
47
|
+
|
|
48
|
+
### 22.0.0
|
|
49
|
+
|
|
50
|
+
~ `center` : transform booleanAttribute → luBooleanAttribute
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# link — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-actions-link-angular-test--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `luLink`
|
|
8
|
+
|
|
9
|
+
### Navigation interne et externe
|
|
10
|
+
|
|
11
|
+
On privilégiera l'utilisation du routing Angular pour la navigation **interne** à l'application. Dans ce cas, la route est à passer directement via `luLink`.
|
|
12
|
+
|
|
13
|
+
Dans le cas d'une navigation **externe** à l'application, l'URL est à renseigner via la propriété `href`.
|
|
14
|
+
|
|
15
|
+
Dans les deux cas, l'ouverture du lien peut se faire dans la même page ou dans une nouvelle page. Dans le second cas, on utilisera la propriété `external`.
|
|
16
|
+
|
|
17
|
+
### Testing
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
21
|
+
import { provideRouter, RouterOutlet, Routes } from '@angular/router';
|
|
22
|
+
import { LinkComponent } from '@lucca-front/ng/link';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<div>
|
|
27
|
+
<a luLink="/first">Go to /first</a>
|
|
28
|
+
<br />
|
|
29
|
+
<a luLink="/second">Go to /second</a>
|
|
30
|
+
<br />
|
|
31
|
+
<a luLink [href]="url" target="_blank" external>Go to https://example.org</a>
|
|
32
|
+
</div>
|
|
33
|
+
<router-outlet />
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Angular
|
|
37
|
+
|
|
38
|
+
```js
|
|
39
|
+
import { AsyncPipe } from '@angular/common';
|
|
40
|
+
import { provideRouter, RouterLink } from '@angular/router';
|
|
41
|
+
import { LinkComponent } from '@lucca-front/ng/link';
|
|
42
|
+
import { timer } from 'rxjs';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
Routing :
|
|
47
|
+
<a luLink="./#example">Text link</a>
|
|
48
|
+
<br />
|
|
49
|
+
Routing (nouvelle fenêtre) :
|
|
50
|
+
<a luLink="./#example" external>Text link</a>
|
|
51
|
+
<br />
|
|
52
|
+
Routing (nouvelle fenêtre) uniquement au survol/focus/touch :
|
|
53
|
+
<a luLink="./#example" external hiddenIcon>Text link</a>
|
|
54
|
+
<br />
|
|
55
|
+
<br />
|
|
56
|
+
Lien :
|
|
57
|
+
<a href="https://www.example.org" luLink>Text link</a>
|
|
58
|
+
<br />
|
|
59
|
+
Lien (nouvelle fenêtre) :
|
|
60
|
+
<a href="https://www.example.org" luLink external>Text link</a>
|
|
61
|
+
<br />
|
|
62
|
+
Lien (nouvelle fenêtre) uniquement au survol/focus/touch :
|
|
63
|
+
<a href="https://www.example.org" luLink external hiddenIcon>Text link</a>
|
|
64
|
+
<br />
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Inside table
|
|
68
|
+
|
|
69
|
+
```js
|
|
70
|
+
import { AsyncPipe } from '@angular/common';
|
|
71
|
+
import { provideRouter, RouterLink } from '@angular/router';
|
|
72
|
+
import { DataTableBodyComponent, DataTableComponent, DataTableHeadComponent, DataTableRowCellComponent, DataTableRowCellHeaderComponent, DataTableRowComponent } from '@lucca-front/ng/data-table';
|
|
73
|
+
import { IndexTableActionComponent, IndexTableBodyComponent, IndexTableComponent, IndexTableHeadComponent, IndexTableRowCellComponent, IndexTableRowCellHeaderComponent, IndexTableRowComponent } from '@lucca-front/ng/index-table';
|
|
74
|
+
import { LinkComponent } from '@lucca-front/ng/link';
|
|
75
|
+
import { timer } from 'rxjs';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
```html
|
|
79
|
+
<lu-data-table>
|
|
80
|
+
<thead luDataTableHead>
|
|
81
|
+
<tr luDataTableRow>
|
|
82
|
+
<th luDataTableCell>header</th>
|
|
83
|
+
<th luDataTableCell>header</th>
|
|
84
|
+
<th luDataTableCell>header</th>
|
|
85
|
+
</tr>
|
|
86
|
+
</thead>
|
|
87
|
+
<tbody luDataTableBody>
|
|
88
|
+
<tr luDataTableRow></tr>
|
|
89
|
+
<tr luDataTableRow>
|
|
90
|
+
<th luDataTableCell>header</th>
|
|
91
|
+
<td luDataTableCell><a luLink href="https://www.example.org" external>External link</a></td>
|
|
92
|
+
<td luDataTableCell>cell</td>
|
|
93
|
+
</tr>
|
|
94
|
+
<tr luDataTableRow>
|
|
95
|
+
<th luDataTableCell>header</th>
|
|
96
|
+
<td luDataTableCell><a luLink href="https://www.example.org" external>External link</a></td>
|
|
97
|
+
<td luDataTableCell>cell</td>
|
|
98
|
+
</tr>
|
|
99
|
+
</tbody>
|
|
100
|
+
</lu-data-table>
|
|
101
|
+
<br />
|
|
102
|
+
<lu-index-table>
|
|
103
|
+
<thead luIndexTableHead>
|
|
104
|
+
<tr luIndexTableRow>
|
|
105
|
+
<th luIndexTableCell>header</th>
|
|
106
|
+
<th luIndexTableCell>header</th>
|
|
107
|
+
<th luIndexTableCell>header</th>
|
|
108
|
+
</tr>
|
|
109
|
+
</thead>
|
|
110
|
+
<tbody luIndexTableBody>
|
|
111
|
+
<tr luIndexTableRow>
|
|
112
|
+
<th luIndexTableCell>
|
|
113
|
+
<a luIndexTableAction href="#">action</a>
|
|
114
|
+
</th>
|
|
115
|
+
<td luIndexTableCell><a luLink href="https://www.example.org" external>External link</a></td>
|
|
116
|
+
<td luIndexTableCell>cell</td>
|
|
117
|
+
</tr>
|
|
118
|
+
<tr luIndexTableRow>
|
|
119
|
+
<th luIndexTableCell>
|
|
120
|
+
<a luIndexTableAction href="#">action</a>
|
|
121
|
+
</th>
|
|
122
|
+
<td luIndexTableCell><a luLink href="https://www.example.org" external>External link</a></td>
|
|
123
|
+
<td luIndexTableCell>cell</td>
|
|
124
|
+
</tr>
|
|
125
|
+
</tbody>
|
|
126
|
+
</lu-index-table>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## HTML/CSS
|
|
130
|
+
|
|
131
|
+
Classe CSS : `.link`
|
|
132
|
+
|
|
133
|
+
### Sécurité
|
|
134
|
+
|
|
135
|
+
Pour des raisons de sécurité il convient de rajouter à nos liens externes, les attributs `rel="noopener noreferrer"`. Ceci évite au navigateur d'ouvrir la ressource cible en donnant au nouveau contexte de navigation l'accès au document précédent. Pour plus de précisions : [https://developer.mozilla.org/fr/docs/Web/HTML/Attributes/rel/noopener](https://developer.mozilla.org/fr/docs/Web/HTML/Attributes/rel/noopener)
|
|
136
|
+
|
|
137
|
+
### Basic
|
|
138
|
+
|
|
139
|
+
```css
|
|
140
|
+
@forward '@lucca-front/scss/src/components/link';
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
```html
|
|
144
|
+
<a href="#" class="link">Text link</a>
|
|
145
|
+
<br />
|
|
146
|
+
<br />
|
|
147
|
+
<a class="link mod-icon" href="#" target="_blank">
|
|
148
|
+
Text link
|
|
149
|
+
<!-- no text node here -->
|
|
150
|
+
<span aria-hidden="true" class="lucca-icon icon-arrowExternal"></span>
|
|
151
|
+
<span class="pr-u-mask">Open in a new window</span>
|
|
152
|
+
</a>
|
|
153
|
+
```
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# link
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { LinkComponent, LuRouterLink } from '@lucca-front/ng/link';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### LinkComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selectors:** `a[luLink]`, `button[luLink]`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
20
|
+
| `luHref` | `href` | `string` | `''` | — | — | Adresse de la page cible. À n’utiliser qu’en lien externe ou non connu par le routeur. |
|
|
21
|
+
| `routerLinkCommands` | `luLink` | `LuRouterLink['routerLink'] \| null` | `null` | — | — | — |
|
|
22
|
+
| `disabled` | `disabled` | `boolean` | `false` | — | `luBooleanAttribute` | Désactive le lien. |
|
|
23
|
+
| `decorationHover` | `decorationHover` | `boolean` | `false` | — | `luBooleanAttribute` | Souligne le lien seulement au survol. |
|
|
24
|
+
| `external` | `external` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
25
|
+
| `hiddenIcon` | `hiddenIcon` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
26
|
+
|
|
27
|
+
### LuRouterLink (directive)
|
|
28
|
+
|
|
29
|
+
**Selector:** `[luRouterLink]`
|
|
30
|
+
|
|
31
|
+
### Injection tokens
|
|
32
|
+
|
|
33
|
+
| Token | Type | Description |
|
|
34
|
+
|-------|------|-------------|
|
|
35
|
+
| `LU_LINK_INSTANCE` | `boolean` | — |
|
|
36
|
+
|
|
37
|
+
## Related files
|
|
38
|
+
|
|
39
|
+
- 📝 [Code & implementation](./link.component.md)
|
|
40
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/link/link.design.md)
|
|
41
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/link/link.figma.md)
|
|
42
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-actions-link-angular-test--docs)
|
|
43
|
+
|
|
44
|
+
## Changelog
|
|
45
|
+
|
|
46
|
+
> 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.
|
|
47
|
+
|
|
48
|
+
### 22.0.0
|
|
49
|
+
|
|
50
|
+
`LinkComponent` :
|
|
51
|
+
~ `disabled` : transform booleanAttribute → luBooleanAttribute
|
|
52
|
+
~ `decorationHover` : transform booleanAttribute → luBooleanAttribute
|
|
53
|
+
~ `external` : transform booleanAttribute → luBooleanAttribute
|
|
54
|
+
~ `hiddenIcon` : transform booleanAttribute → luBooleanAttribute
|
|
55
|
+
|
|
56
|
+
### Notes de release (ZeroHeight)
|
|
57
|
+
|
|
58
|
+
#### 21.3.1
|
|
59
|
+
|
|
60
|
+
##### Fixed
|
|
61
|
+
|
|
62
|
+
- `external` router links now render an `href` attribute, making them reachable via keyboard navigation and showing their destination on hover.
|
|
63
|
+
|
|
64
|
+
#### 21.3.0
|
|
65
|
+
|
|
66
|
+
##### Added
|
|
67
|
+
|
|
68
|
+
- `hiddenIcon` input to display the external icon only on hover/focus. It is also applied automatically when the link is used inside a `data-table` or `index-table`.
|
|
69
|
+
|
|
70
|
+
#### 21.2.0
|
|
71
|
+
|
|
72
|
+
##### Changed
|
|
73
|
+
|
|
74
|
+
- Reworked component styling: theming now relies on dedicated `--components-link-*` CSS custom properties, with support for a `.link-text` inner element.
|
|
75
|
+
|
|
76
|
+
#### 21.1.2
|
|
77
|
+
|
|
78
|
+
##### Fixed
|
|
79
|
+
|
|
80
|
+
- `external` links now prepare the URL with the application base href before opening, fixing external redirection for array link commands.
|
|
81
|
+
|
|
82
|
+
#### 21.1.0
|
|
83
|
+
|
|
84
|
+
##### Added
|
|
85
|
+
|
|
86
|
+
- `intl` input to override the component's translations.
|
|
87
|
+
|
|
88
|
+
##### Fixed
|
|
89
|
+
|
|
90
|
+
- `external` links now honor `navigationExtras` and support `UrlTree` link commands.
|
|
91
|
+
|
|
92
|
+
#### 20.3.3
|
|
93
|
+
|
|
94
|
+
##### Fixed
|
|
95
|
+
|
|
96
|
+
- `external` router links (`external` + `luLink` commands) now open correctly in a new tab.
|
|
97
|
+
|
|
98
|
+
#### 20.1.1
|
|
99
|
+
|
|
100
|
+
##### Fixed
|
|
101
|
+
|
|
102
|
+
- `luLink` no longer breaks with Angular 20.
|
|
103
|
+
|
|
104
|
+
#### 19.1.6
|
|
105
|
+
|
|
106
|
+
##### Added
|
|
107
|
+
|
|
108
|
+
- `button[luLink]` selector support, allowing the directive to be used on `<button>` elements.
|
|
109
|
+
|
|
110
|
+
##### Removed
|
|
111
|
+
|
|
112
|
+
- Required `label` input removed; the link content is now projected via `ng-content` instead.
|
|
113
|
+
|
|
114
|
+
#### 19.1.0
|
|
115
|
+
|
|
116
|
+
##### Added
|
|
117
|
+
|
|
118
|
+
- Angular component (`lu-link` / `luLink`).
|
|
119
|
+
|
|
120
|
+
#### 18.2.1
|
|
121
|
+
|
|
122
|
+
##### Fixed
|
|
123
|
+
|
|
124
|
+
- `link` spacing: corrected the spacing and alignment of the external icon.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# listbox
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { ListboxComponent, Treeitem, OptionComponent } from '@lucca-front/ng/listbox';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### ListboxComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-listbox`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `multiple` | `multiple` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
20
|
+
| `tree` | `tree` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
21
|
+
| `state` | `state` | `ListboxState \| null` | `null` | — | — | — |
|
|
22
|
+
| `statusMsg` | `statusMsg` | `string \| null` | `null` | — | — | — |
|
|
23
|
+
|
|
24
|
+
### Treeitem (directive)
|
|
25
|
+
|
|
26
|
+
**Selector:** `[treeitem]`
|
|
27
|
+
|
|
28
|
+
### OptionComponent (component)
|
|
29
|
+
|
|
30
|
+
**Selector:** `lu-listbox-option`
|
|
31
|
+
|
|
32
|
+
#### Inputs
|
|
33
|
+
|
|
34
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
35
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
36
|
+
| `elementId` | `elementId` | `string \| null` | `null` | — | — | — |
|
|
37
|
+
| `checked` | `checked` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
38
|
+
| `mixed` | `mixed` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
39
|
+
| `disabled` | `disabled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
40
|
+
| `hovered` | `hovered` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
41
|
+
| `add` | `add` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
42
|
+
| `group` | `group` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
43
|
+
| `groupId` | `groupId` | `string \| null` | `null` | — | — | — |
|
|
44
|
+
| `select` | `select` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
45
|
+
| `selectAll` | `selectAll` | `'string' \| null` | — | — | — | — |
|
|
46
|
+
| `treeitemLevel` | `treeitemLevel` | `number \| null` | `null` | — | — | — |
|
|
47
|
+
|
|
48
|
+
### Injection tokens
|
|
49
|
+
|
|
50
|
+
| Token | Type | Description |
|
|
51
|
+
|-------|------|-------------|
|
|
52
|
+
| `LISTBOX_INSTANCE` | `ListboxComponent` | — |
|
|
53
|
+
| `OPTION_INSTANCE` | `OptionComponent` | — |
|
|
54
|
+
|
|
55
|
+
## Related files
|
|
56
|
+
|
|
57
|
+
- 📝 [Code & implementation](./listbox.component.md)
|
|
58
|
+
|
|
59
|
+
## Changelog
|
|
60
|
+
|
|
61
|
+
> 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.
|
|
62
|
+
|
|
63
|
+
### 22.0.0
|
|
64
|
+
|
|
65
|
+
`ListboxComponent` :
|
|
66
|
+
~ `multiple` : transform booleanAttribute → luBooleanAttribute
|
|
67
|
+
~ `tree` : transform booleanAttribute → luBooleanAttribute
|
|
68
|
+
`OptionComponent` :
|
|
69
|
+
+ `elementId` : string | null
|
|
70
|
+
+ `groupId` : string | null
|
|
71
|
+
+ `treeitemLevel` : number | null
|
|
72
|
+
~ `checked` : transform booleanAttribute → luBooleanAttribute
|
|
73
|
+
~ `mixed` : transform booleanAttribute → luBooleanAttribute
|
|
74
|
+
~ `disabled` : transform booleanAttribute → luBooleanAttribute
|
|
75
|
+
~ `hovered` : transform booleanAttribute → luBooleanAttribute
|
|
76
|
+
~ `add` : transform booleanAttribute → luBooleanAttribute
|
|
77
|
+
~ `group` : transform booleanAttribute → luBooleanAttribute
|
|
78
|
+
~ `select` : transform booleanAttribute → luBooleanAttribute
|
|
79
|
+
+ token `LISTBOX_INSTANCE` : ListboxComponent
|
|
80
|
+
+ token `OPTION_INSTANCE` : OptionComponent
|
|
81
|
+
|
|
82
|
+
### Notes de release (ZeroHeight)
|
|
83
|
+
|
|
84
|
+
#### 21.3.0
|
|
85
|
+
|
|
86
|
+
##### Added
|
|
87
|
+
|
|
88
|
+
- `LISTBOX_STATE` constant and `ListboxState` type are now publicly exported and used to type the `state` input.
|
|
89
|
+
|
|
90
|
+
#### 20.3.3
|
|
91
|
+
|
|
92
|
+
##### Fixed
|
|
93
|
+
|
|
94
|
+
- Host `role` of the listbox and its options.
|
|
95
|
+
|
|
96
|
+
#### 20.2.0
|
|
97
|
+
|
|
98
|
+
##### Added
|
|
99
|
+
|
|
100
|
+
- `lu-listbox` component with the `multiple`, `tree`, `state` (`loading`, `empty`) and `statusMsg` inputs, plus the `LISTBOX_INSTANCE` injection token.
|
|
101
|
+
- `lu-listbox-option` component with the `checked`, `mixed`, `disabled`, `hovered`, `group`, `add`, `select` and `selectAll` inputs, plus the `OPTION_INSTANCE` injection token.
|