@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,426 @@
|
|
|
1
|
+
# multi-select
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { LuMultiSelectContentDisplayerComponent, LuMultiSelectCounterDisplayerComponent, LuMultiSelectDefaultDisplayerComponent, LuMultiSelectDisplayerInputDirective, LuMultiDisplayerDirective, LuMultiSelectWithSelectAllDirective, LuMultiSelectInputComponent } from '@lucca-front/ng/multi-select';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### LuMultiSelectContentDisplayerComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-multi-select-content-displayer`
|
|
14
|
+
|
|
15
|
+
### LuMultiSelectCounterDisplayerComponent (component)
|
|
16
|
+
|
|
17
|
+
**Selector:** `lu-multi-select-counter-displayer`
|
|
18
|
+
|
|
19
|
+
#### Inputs
|
|
20
|
+
|
|
21
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
22
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
23
|
+
| `selected` | `selected` | `T[]` | `[]` | — | — | — |
|
|
24
|
+
| `label` | `label` | `string` | — | ✅ | — | Modifie le label du champ. |
|
|
25
|
+
|
|
26
|
+
### LuMultiSelectDefaultDisplayerComponent (component)
|
|
27
|
+
|
|
28
|
+
**Selector:** `lu-multi-select-default-displayer`
|
|
29
|
+
|
|
30
|
+
#### Inputs
|
|
31
|
+
|
|
32
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
33
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
34
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
35
|
+
|
|
36
|
+
### LuMultiSelectDisplayerInputDirective (directive)
|
|
37
|
+
|
|
38
|
+
**Selector:** `[luMultiSelectDisplayerInput]`
|
|
39
|
+
|
|
40
|
+
### LuMultiDisplayerDirective (directive)
|
|
41
|
+
|
|
42
|
+
**Selector:** `[luMultiDisplayer]`
|
|
43
|
+
|
|
44
|
+
#### Inputs
|
|
45
|
+
|
|
46
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
47
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
48
|
+
| `select` | `luMultiDisplayerSelect` | `LuMultiSelectInputComponent<T>` | `undefined` | — | — | — |
|
|
49
|
+
|
|
50
|
+
### LuMultiSelectWithSelectAllDirective (directive)
|
|
51
|
+
|
|
52
|
+
**Selector:** `lu-multi-select[withSelectAll]`
|
|
53
|
+
|
|
54
|
+
#### Inputs
|
|
55
|
+
|
|
56
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
57
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
58
|
+
| `displayerLabel` | `withSelectAllDisplayerLabel` | `string` | `undefined` | — | — | ⚠️ **Déprécié** : use withSelectAllDisplayerLabelFn |
|
|
59
|
+
| `displayerLabelFn` | `withSelectAllDisplayerLabelFn` | `(count: number) => string \| LuPluralForms` | `undefined` | — | — | — |
|
|
60
|
+
|
|
61
|
+
### LuMultiSelectInputComponent (component)
|
|
62
|
+
|
|
63
|
+
**Selector:** `lu-multi-select`
|
|
64
|
+
|
|
65
|
+
#### Inputs
|
|
66
|
+
|
|
67
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
68
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
69
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
70
|
+
| `maxValuesShown` | `maxValuesShown` | `number` | `500` | — | `luNumberAttribute` | — |
|
|
71
|
+
| `keepSearchAfterSelection` | `keepSearchAfterSelection` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
72
|
+
| `filterPillLabelPlural` | `filterPillLabelPlural` | `string` | — | — | — | ⚠️ **Déprécié** : use filterPillLabelPluralFn |
|
|
73
|
+
| `filterPillLabelPluralFn` | `filterPillLabelPluralFn` | `(count: number) => string \| LuPluralForms` | — | — | — | — |
|
|
74
|
+
|
|
75
|
+
#### Models (two-way binding)
|
|
76
|
+
|
|
77
|
+
| Property | Type | Required | Notes |
|
|
78
|
+
|----------|------|----------|-------|
|
|
79
|
+
| `valuesTpl` | `TemplateRef<LuOptionContext<T[]>> \| Type<unknown>` | — | — |
|
|
80
|
+
|
|
81
|
+
### Injection tokens
|
|
82
|
+
|
|
83
|
+
| Token | Type | Description |
|
|
84
|
+
|-------|------|-------------|
|
|
85
|
+
| `LU_MULTI_SELECT_DISPLAYER_TRANSLATIONS` | `unknown` | — |
|
|
86
|
+
| `LU_MULTI_SELECT_TRANSLATIONS` | `unknown` | — |
|
|
87
|
+
| `MULTI_SELECT_INPUT` | `LuMultiSelectInputComponent<unknown>` | — |
|
|
88
|
+
|
|
89
|
+
## Related files
|
|
90
|
+
|
|
91
|
+
- 📝 [Code & implementation](./multi-select.component.md)
|
|
92
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/multi-select/multi-select.design.md)
|
|
93
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/multi-select/multi-select.figma.md)
|
|
94
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-multi-select-angular--docs)
|
|
95
|
+
|
|
96
|
+
## Changelog
|
|
97
|
+
|
|
98
|
+
> 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.
|
|
99
|
+
|
|
100
|
+
### 22.0.0
|
|
101
|
+
|
|
102
|
+
`LuMultiSelectCounterDisplayerComponent` :
|
|
103
|
+
~ `selected` : défaut ∅ → []
|
|
104
|
+
`LuMultiDisplayerDirective` :
|
|
105
|
+
~ `luMultiDisplayerSelect` : défaut ∅ → undefined
|
|
106
|
+
`LuMultiSelectWithSelectAllDirective` :
|
|
107
|
+
~ `withSelectAllDisplayerLabelFn` : (count: number) => string → (count: number) => string | LuPluralForms
|
|
108
|
+
`LuMultiSelectInputComponent` :
|
|
109
|
+
~ `maxValuesShown` : transform numberAttribute → luNumberAttribute
|
|
110
|
+
~ `keepSearchAfterSelection` : transform booleanAttribute → luBooleanAttribute
|
|
111
|
+
~ `filterPillLabelPlural` : défaut undefined → ∅
|
|
112
|
+
~ `filterPillLabelPluralFn` : (count: number) => string → (count: number) => string | LuPluralForms, défaut undefined → ∅
|
|
113
|
+
|
|
114
|
+
### Notes de release (ZeroHeight)
|
|
115
|
+
|
|
116
|
+
#### 21.3.1
|
|
117
|
+
|
|
118
|
+
##### Added
|
|
119
|
+
|
|
120
|
+
- `departments`: use a dedicated API call to fetch the total count of departments.
|
|
121
|
+
|
|
122
|
+
##### Fixed
|
|
123
|
+
|
|
124
|
+
- `panel overlay`: keep connected overlays out of the push-panel zone so the panel is positioned correctly.
|
|
125
|
+
- `search`: allow `Ctrl`/`Cmd` + `V` paste in the search field.
|
|
126
|
+
|
|
127
|
+
#### 21.3.0
|
|
128
|
+
|
|
129
|
+
##### Fixed
|
|
130
|
+
|
|
131
|
+
- `displayer`: fix the value displayer rendering.
|
|
132
|
+
- `option highlight`: keep the highlighted option consistent when navigating with both mouse and keyboard.
|
|
133
|
+
- `select-all header`: do not display the select-all header when there are no values.
|
|
134
|
+
- `assistive technologies`: fix the value announced to assistive technologies.
|
|
135
|
+
|
|
136
|
+
#### 21.2.4
|
|
137
|
+
|
|
138
|
+
##### Fixed
|
|
139
|
+
|
|
140
|
+
- `users`: fix the response type used to read the total count of the users directive.
|
|
141
|
+
|
|
142
|
+
#### 21.2.3
|
|
143
|
+
|
|
144
|
+
##### Fixed
|
|
145
|
+
|
|
146
|
+
- `departments`: no longer load infinitely when the API returns a multiple of `pageSize` items.
|
|
147
|
+
|
|
148
|
+
#### 21.2.2
|
|
149
|
+
|
|
150
|
+
##### Fixed
|
|
151
|
+
|
|
152
|
+
- `panel`: fix the loading state of the panel.
|
|
153
|
+
|
|
154
|
+
#### 21.2.1
|
|
155
|
+
|
|
156
|
+
##### Removed
|
|
157
|
+
|
|
158
|
+
- `former employees`: remove the `panelHeader` setting used to display the former employees clue.
|
|
159
|
+
|
|
160
|
+
#### 21.1.3
|
|
161
|
+
|
|
162
|
+
##### Fixed
|
|
163
|
+
|
|
164
|
+
- `displayer`: fix ellipsis on the multi-value displayer.
|
|
165
|
+
- `empty value`: display the empty value the same way as other inputs.
|
|
166
|
+
- `optionComparer`: do not compare options when the value is nil.
|
|
167
|
+
|
|
168
|
+
#### 21.1.1
|
|
169
|
+
|
|
170
|
+
##### Fixed
|
|
171
|
+
|
|
172
|
+
- `intl`: the `intl` inputs are now public.
|
|
173
|
+
|
|
174
|
+
#### 21.1.0
|
|
175
|
+
|
|
176
|
+
##### Added
|
|
177
|
+
|
|
178
|
+
- `intl`: allow overriding translations per instance through the `intl` input.
|
|
179
|
+
- `presentation`: support the presentation display mode when used inside a form field.
|
|
180
|
+
|
|
181
|
+
##### Fixed
|
|
182
|
+
|
|
183
|
+
- `presentation`: fix typo and tooltip in presentation mode.
|
|
184
|
+
|
|
185
|
+
#### 21.0.4
|
|
186
|
+
|
|
187
|
+
##### Fixed
|
|
188
|
+
|
|
189
|
+
- `option highlight`: take panel elements into account when computing the highlighted option.
|
|
190
|
+
|
|
191
|
+
#### 21.0.3
|
|
192
|
+
|
|
193
|
+
##### Changed
|
|
194
|
+
|
|
195
|
+
- `panel`: constrain the panel to a max width aligned with the input.
|
|
196
|
+
|
|
197
|
+
##### Fixed
|
|
198
|
+
|
|
199
|
+
- `placeholder`: keep the input focused and hide the placeholder when all options are selected.
|
|
200
|
+
|
|
201
|
+
#### 21.0.2
|
|
202
|
+
|
|
203
|
+
##### Changed
|
|
204
|
+
|
|
205
|
+
- `api directives`: select directives are consolidated around a common implementation.
|
|
206
|
+
|
|
207
|
+
##### Fixed
|
|
208
|
+
|
|
209
|
+
- `select-all`: do not open the panel when `withSelectAll` is set on init.
|
|
210
|
+
|
|
211
|
+
#### 21.0.0
|
|
212
|
+
|
|
213
|
+
##### Added
|
|
214
|
+
|
|
215
|
+
- `lu-multi-select-content-displayer`: new displayer component that projects arbitrary content for the selected values.
|
|
216
|
+
- `placeholder`: add a default placeholder for the multi-select.
|
|
217
|
+
- `occupation-category`: new select directive, with its mock data.
|
|
218
|
+
|
|
219
|
+
##### Changed
|
|
220
|
+
|
|
221
|
+
- `select-all displayer`: render selected values with `lu-chip`.
|
|
222
|
+
- `no result`: show a more specific message when a search returns no result.
|
|
223
|
+
|
|
224
|
+
#### 20.3.3
|
|
225
|
+
|
|
226
|
+
##### Fixed
|
|
227
|
+
|
|
228
|
+
- `select-all displayer`: fix the numeric badge not showing when the displayer uses text.
|
|
229
|
+
|
|
230
|
+
#### 20.3.2
|
|
231
|
+
|
|
232
|
+
##### Fixed
|
|
233
|
+
|
|
234
|
+
- `grouping`: wait for establishment grouping calls before fetching options.
|
|
235
|
+
- `grouping`: fix a change detection issue on the grouping property.
|
|
236
|
+
|
|
237
|
+
#### 20.3.1
|
|
238
|
+
|
|
239
|
+
##### Fixed
|
|
240
|
+
|
|
241
|
+
- `select-all displayer`: fix the wrong total count shown in the displayer.
|
|
242
|
+
- `filter pill`: fix the filter pill displayer when using select-all.
|
|
243
|
+
- `panel`: improve panel placement update logic.
|
|
244
|
+
|
|
245
|
+
#### 20.2.2
|
|
246
|
+
|
|
247
|
+
##### Fixed
|
|
248
|
+
|
|
249
|
+
- `select-all`: properly handle toggling options of disabled groups.
|
|
250
|
+
- `panel header`: `luSelectPanelHeader` now works with `lu-multi-select`.
|
|
251
|
+
- `departments`: fix the total count in tree mode.
|
|
252
|
+
|
|
253
|
+
#### 20.2.1
|
|
254
|
+
|
|
255
|
+
##### Fixed
|
|
256
|
+
|
|
257
|
+
- `users`: add the missing `uniqueOperationIds` for the `me` lookup.
|
|
258
|
+
|
|
259
|
+
#### 20.2.0
|
|
260
|
+
|
|
261
|
+
##### Added
|
|
262
|
+
|
|
263
|
+
- `tree mode`: display options as a tree, with `Ctrl+Enter` to select the parent only and `Shift+Enter` to select children only.
|
|
264
|
+
|
|
265
|
+
##### Fixed
|
|
266
|
+
|
|
267
|
+
- `a11y`: accessibility audit fixes.
|
|
268
|
+
|
|
269
|
+
#### 20.1.2
|
|
270
|
+
|
|
271
|
+
##### Fixed
|
|
272
|
+
|
|
273
|
+
- `homonyms`: additional data was missing when searching.
|
|
274
|
+
|
|
275
|
+
#### 20.1.1
|
|
276
|
+
|
|
277
|
+
##### Fixed
|
|
278
|
+
|
|
279
|
+
- `filter pill`: make the displayed value match the selected value.
|
|
280
|
+
|
|
281
|
+
#### 20.1.0
|
|
282
|
+
|
|
283
|
+
##### Added
|
|
284
|
+
|
|
285
|
+
- `panel header / footer`: support custom panel headers and footers, with accessibility for the select-all control.
|
|
286
|
+
|
|
287
|
+
##### Changed
|
|
288
|
+
|
|
289
|
+
- `autocomplete`: turn browser autocomplete off by default on the search field.
|
|
290
|
+
|
|
291
|
+
#### 19.3.4
|
|
292
|
+
|
|
293
|
+
##### Added
|
|
294
|
+
|
|
295
|
+
- `optionComparer`: can be overridden for the API v4 directives.
|
|
296
|
+
|
|
297
|
+
#### 19.3.0
|
|
298
|
+
|
|
299
|
+
##### Added
|
|
300
|
+
|
|
301
|
+
- `users`: support a custom user option template.
|
|
302
|
+
|
|
303
|
+
#### 19.2.6
|
|
304
|
+
|
|
305
|
+
##### Fixed
|
|
306
|
+
|
|
307
|
+
- `grouping`: fix the group template not being displayed when a clue was used.
|
|
308
|
+
- `filter pill`: make the filter pill clearable.
|
|
309
|
+
|
|
310
|
+
#### 19.2.4
|
|
311
|
+
|
|
312
|
+
##### Fixed
|
|
313
|
+
|
|
314
|
+
- `api v4`: improve the initialization logic to prevent useless API calls.
|
|
315
|
+
- `grouping`: fix the option id when grouping.
|
|
316
|
+
|
|
317
|
+
#### 19.2.2
|
|
318
|
+
|
|
319
|
+
##### Fixed
|
|
320
|
+
|
|
321
|
+
- `displayer`: fix ellipsis on the displayer.
|
|
322
|
+
|
|
323
|
+
#### 19.2.1
|
|
324
|
+
|
|
325
|
+
##### Changed
|
|
326
|
+
|
|
327
|
+
- `inputs`: accept readonly arrays.
|
|
328
|
+
|
|
329
|
+
#### 19.2.0
|
|
330
|
+
|
|
331
|
+
##### Added
|
|
332
|
+
|
|
333
|
+
- `filter pill mode`: integrate with filter pills, including a `filterPillLabelPlural` input for the pill label.
|
|
334
|
+
- `noClue`: new directive to disable the API v3/v4 search.
|
|
335
|
+
|
|
336
|
+
##### Changed
|
|
337
|
+
|
|
338
|
+
- `search icon`: display a search icon when the component is searchable.
|
|
339
|
+
- `select-all displayer`: option to disable the numeric badge tooltip.
|
|
340
|
+
|
|
341
|
+
##### Fixed
|
|
342
|
+
|
|
343
|
+
- `placeholder`: remove the placeholder when the search input is not used.
|
|
344
|
+
|
|
345
|
+
#### 19.1.6
|
|
346
|
+
|
|
347
|
+
##### Fixed
|
|
348
|
+
|
|
349
|
+
- `select-all`: fix wrong selection/unselection when manually selecting or unselecting all options.
|
|
350
|
+
|
|
351
|
+
#### 19.1.5
|
|
352
|
+
|
|
353
|
+
##### Added
|
|
354
|
+
|
|
355
|
+
- `api directives`: new `uniqueOperationIds` input on the establishments and users directives.
|
|
356
|
+
|
|
357
|
+
#### 19.1.4
|
|
358
|
+
|
|
359
|
+
##### Fixed
|
|
360
|
+
|
|
361
|
+
- `numeric badge`: fix the multi-establishment numeric badge in size S.
|
|
362
|
+
- `users`: fix the wrong API used for the users count, and stop overriding `panelHeaderTpl`.
|
|
363
|
+
|
|
364
|
+
#### 19.1.0
|
|
365
|
+
|
|
366
|
+
##### Added
|
|
367
|
+
|
|
368
|
+
- `LuMultiSelectionValidators`: new `required` validator for the multi-selection control.
|
|
369
|
+
|
|
370
|
+
#### 18.3.3
|
|
371
|
+
|
|
372
|
+
##### Changed
|
|
373
|
+
|
|
374
|
+
- `overlay`: the select no longer overrides the overlay container.
|
|
375
|
+
|
|
376
|
+
##### Fixed
|
|
377
|
+
|
|
378
|
+
- `panel`: fix the searchable state when using `luOptionGroup`.
|
|
379
|
+
|
|
380
|
+
#### 18.3.2
|
|
381
|
+
|
|
382
|
+
##### Added
|
|
383
|
+
|
|
384
|
+
- `keepSearchAfterSelection`: new input to keep the search clue after a value is selected instead of clearing it.
|
|
385
|
+
|
|
386
|
+
##### Fixed
|
|
387
|
+
|
|
388
|
+
- `select-all`: emit mode `none` when selecting all then unselecting each option.
|
|
389
|
+
- `displayer`: fix error display and ARIA attributes on the displayer.
|
|
390
|
+
|
|
391
|
+
#### 18.3.1
|
|
392
|
+
|
|
393
|
+
##### Fixed
|
|
394
|
+
|
|
395
|
+
- `initial value`: take initial values into account.
|
|
396
|
+
- `select-all`: multiple select-all fixes.
|
|
397
|
+
|
|
398
|
+
#### 18.3.0
|
|
399
|
+
|
|
400
|
+
##### Added
|
|
401
|
+
|
|
402
|
+
- `withSelectAll`: new `lu-multi-select[withSelectAll]` directive (`LuMultiSelectWithSelectAllDirective`) enabling a select-all mode, with the `lu-multi-select-all-displayer` and `lu-multi-select-all-header` components.
|
|
403
|
+
- `users`: support `enableFormerEmployees` on the users select directive.
|
|
404
|
+
|
|
405
|
+
#### 18.2.3
|
|
406
|
+
|
|
407
|
+
##### Fixed
|
|
408
|
+
|
|
409
|
+
- `ui`: multi-select UI fixes.
|
|
410
|
+
|
|
411
|
+
#### 18.1.2
|
|
412
|
+
|
|
413
|
+
##### Fixed
|
|
414
|
+
|
|
415
|
+
- `option highlight`: fix the no-highlighted-option issue.
|
|
416
|
+
- `option highlight`: fix the highlighted item not updating after a clue change.
|
|
417
|
+
|
|
418
|
+
#### 18.1.0
|
|
419
|
+
|
|
420
|
+
##### Added
|
|
421
|
+
|
|
422
|
+
- `lu-multi-select-counter-displayer`: new displayer component showing a counter of selected values.
|
|
423
|
+
|
|
424
|
+
##### Fixed
|
|
425
|
+
|
|
426
|
+
- `chip`: fix the "+N" chip in size S.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# multilanguagefield — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-multilanguagefield-angular--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-multilanguage-input`
|
|
8
|
+
|
|
9
|
+
### Paramétrage des langues
|
|
10
|
+
|
|
11
|
+
Pour qu'une locale apparaisse dans le panneau du composant, elles doivent être initialisées à vide dans le `ngModel`. Exemple :
|
|
12
|
+
|
|
13
|
+
### Validateurs
|
|
14
|
+
|
|
15
|
+
`lu-multilanguage-input` expose deux validateurs dédiés pour piloter les erreurs métier liées aux traductions :
|
|
16
|
+
|
|
17
|
+
- `MultiLanguageInputValidators.allLanguagesRequired`
|
|
18
|
+
- `MultiLanguageInputValidators.invariantRequired`
|
|
19
|
+
|
|
20
|
+
Ils sont exportés depuis `@lucca-front/ng/forms`.
|
|
21
|
+
|
|
22
|
+
#### Principe général
|
|
23
|
+
|
|
24
|
+
Le composant manipule une valeur de type `MultilanguageTranslation[]` :
|
|
25
|
+
|
|
26
|
+
Les validateurs retournent des clés d’erreur standard Angular sur le `FormControl`, que vous pouvez ensuite afficher dans le `lu-form-field` parent ou dans votre template.
|
|
27
|
+
|
|
28
|
+
#### Valideur `allLanguagesRequired`
|
|
29
|
+
|
|
30
|
+
Ce valideur vérifie que **toutes** les lignes de traduction contiennent une valeur non vide.
|
|
31
|
+
|
|
32
|
+
- **Succès**: `null`
|
|
33
|
+
- **Erreur**: `{ missingLang: true }`
|
|
34
|
+
|
|
35
|
+
À utiliser quand chaque langue de votre modèle est obligatoire.
|
|
36
|
+
|
|
37
|
+
#### Valideur `invariantRequired`
|
|
38
|
+
|
|
39
|
+
Ce valideur vérifie que la traduction `invariant` est renseignée.
|
|
40
|
+
|
|
41
|
+
- **Succès**: `null`
|
|
42
|
+
- **Erreur**: `{ missingInvariant: true }`
|
|
43
|
+
|
|
44
|
+
À utiliser quand seule la valeur principale (invariante) est obligatoire.
|
|
45
|
+
|
|
46
|
+
#### Erreurs inline dans le popover
|
|
47
|
+
|
|
48
|
+
Indépendamment des validateurs ci-dessus, le composant affiche une erreur inline sur chaque langue du panneau quand :
|
|
49
|
+
|
|
50
|
+
- le champ est marqué `required` au niveau du `lu-form-field`/contrôle,
|
|
51
|
+
- et que la valeur de la langue est vide.
|
|
52
|
+
|
|
53
|
+
Le message utilisé est la traduction `requiredError` (par défaut : `La traduction est obligatoire` en français).
|
|
54
|
+
|
|
55
|
+
#### Cas particulier : invariant manquant dans la valeur
|
|
56
|
+
|
|
57
|
+
Lors de `writeValue`, si vous fournissez un tableau non vide sans entrée `cultureCode: 'invariant'`, le composant lève une erreur :
|
|
58
|
+
|
|
59
|
+
`Please provide an invariant translation in translation array`
|
|
60
|
+
|
|
61
|
+
Même avec `hasNoInvariant`, prévoyez donc une ligne `invariant` dans la valeur technique du contrôle.
|
|
62
|
+
|
|
63
|
+
### Field
|
|
64
|
+
|
|
65
|
+
```js
|
|
66
|
+
import { LOCALE_ID } from '@angular/core';
|
|
67
|
+
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
68
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
69
|
+
import { FORM_FIELD_WIDTH, FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
70
|
+
import { MultilanguageInputComponent, MultilanguageTranslation } from '@lucca-front/ng/forms';
|
|
71
|
+
import { INLINE_MESSAGE_STATE } from '@lucca-front/ng/inline-message';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<lu-form-field
|
|
76
|
+
label="Label"
|
|
77
|
+
tooltip="Je suis un message d’aide"
|
|
78
|
+
inlineMessage="Helper text"
|
|
79
|
+
inlineMessageState="default"
|
|
80
|
+
>
|
|
81
|
+
<lu-multilanguage-input [formControl]="formControl" required placeholder="Placeholder" displayLocale="en-US" />
|
|
82
|
+
</lu-form-field>
|
|
83
|
+
<pr-story-model-display>{{ formControl.value | json }}</pr-story-model-display>
|
|
84
|
+
```
|