@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,362 @@
|
|
|
1
|
+
# multilanguagefield
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { MultilanguageInputComponent } from '@lucca-front/ng/forms';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### MultilanguageInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-multilanguage-input`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
20
|
+
| `placeholder` | `placeholder` | `string` | `''` | — | — | Modifie le placeholder au champ. |
|
|
21
|
+
| `openOnFocus` | `openOnFocus` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
22
|
+
| `autocomplete` | `autocomplete` | `AutoFill` | `'off'` | — | — | — |
|
|
23
|
+
| `hasNoInvariant` | `hasNoInvariant` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
24
|
+
| `hasAIButtons` | `hasAIButtons` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
25
|
+
| `displayLocale` | `displayLocale` | `string` | `''` | — | — | — |
|
|
26
|
+
|
|
27
|
+
#### Outputs
|
|
28
|
+
|
|
29
|
+
| Property | Binding name | Type | Notes |
|
|
30
|
+
|----------|-------------|------|-------|
|
|
31
|
+
| `translateWithAI` | `translateWithAI` | `string` | — |
|
|
32
|
+
|
|
33
|
+
## Related files
|
|
34
|
+
|
|
35
|
+
- 📝 [Code & implementation](./multilanguagefield.component.md)
|
|
36
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/multilanguagefield/multilanguagefield.design.md)
|
|
37
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/multilanguagefield/multilanguagefield.figma.md)
|
|
38
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-multilanguagefield-angular--docs)
|
|
39
|
+
|
|
40
|
+
## Changelog
|
|
41
|
+
|
|
42
|
+
> 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.
|
|
43
|
+
|
|
44
|
+
### 22.0.0
|
|
45
|
+
|
|
46
|
+
~ `openOnFocus` : transform booleanAttribute → luBooleanAttribute
|
|
47
|
+
~ `hasNoInvariant` : transform booleanAttribute → luBooleanAttribute
|
|
48
|
+
~ `hasAIButtons` : transform booleanAttribute → luBooleanAttribute
|
|
49
|
+
|
|
50
|
+
### Notes de release (ZeroHeight)
|
|
51
|
+
|
|
52
|
+
#### 21.3.1
|
|
53
|
+
|
|
54
|
+
##### Added
|
|
55
|
+
|
|
56
|
+
- `departments`: use a dedicated API call to fetch the total count of departments.
|
|
57
|
+
|
|
58
|
+
##### Fixed
|
|
59
|
+
|
|
60
|
+
- `panel overlay`: keep connected overlays out of the push-panel zone so the panel is positioned correctly.
|
|
61
|
+
- `search`: allow `Ctrl`/`Cmd` + `V` paste in the search field.
|
|
62
|
+
|
|
63
|
+
#### 21.3.0
|
|
64
|
+
|
|
65
|
+
##### Fixed
|
|
66
|
+
|
|
67
|
+
- `displayer`: fix the value displayer rendering.
|
|
68
|
+
- `option highlight`: keep the highlighted option consistent when navigating with both mouse and keyboard.
|
|
69
|
+
- `select-all header`: do not display the select-all header when there are no values.
|
|
70
|
+
- `assistive technologies`: fix the value announced to assistive technologies.
|
|
71
|
+
|
|
72
|
+
#### 21.2.4
|
|
73
|
+
|
|
74
|
+
##### Fixed
|
|
75
|
+
|
|
76
|
+
- `users`: fix the response type used to read the total count of the users directive.
|
|
77
|
+
|
|
78
|
+
#### 21.2.3
|
|
79
|
+
|
|
80
|
+
##### Fixed
|
|
81
|
+
|
|
82
|
+
- `departments`: no longer load infinitely when the API returns a multiple of `pageSize` items.
|
|
83
|
+
|
|
84
|
+
#### 21.2.2
|
|
85
|
+
|
|
86
|
+
##### Fixed
|
|
87
|
+
|
|
88
|
+
- `panel`: fix the loading state of the panel.
|
|
89
|
+
|
|
90
|
+
#### 21.2.1
|
|
91
|
+
|
|
92
|
+
##### Removed
|
|
93
|
+
|
|
94
|
+
- `former employees`: remove the `panelHeader` setting used to display the former employees clue.
|
|
95
|
+
|
|
96
|
+
#### 21.1.3
|
|
97
|
+
|
|
98
|
+
##### Fixed
|
|
99
|
+
|
|
100
|
+
- `displayer`: fix ellipsis on the multi-value displayer.
|
|
101
|
+
- `empty value`: display the empty value the same way as other inputs.
|
|
102
|
+
- `optionComparer`: do not compare options when the value is nil.
|
|
103
|
+
|
|
104
|
+
#### 21.1.1
|
|
105
|
+
|
|
106
|
+
##### Fixed
|
|
107
|
+
|
|
108
|
+
- `intl`: the `intl` inputs are now public.
|
|
109
|
+
|
|
110
|
+
#### 21.1.0
|
|
111
|
+
|
|
112
|
+
##### Added
|
|
113
|
+
|
|
114
|
+
- `intl`: allow overriding translations per instance through the `intl` input.
|
|
115
|
+
- `presentation`: support the presentation display mode when used inside a form field.
|
|
116
|
+
|
|
117
|
+
##### Fixed
|
|
118
|
+
|
|
119
|
+
- `presentation`: fix typo and tooltip in presentation mode.
|
|
120
|
+
|
|
121
|
+
#### 21.0.4
|
|
122
|
+
|
|
123
|
+
##### Fixed
|
|
124
|
+
|
|
125
|
+
- `option highlight`: take panel elements into account when computing the highlighted option.
|
|
126
|
+
|
|
127
|
+
#### 21.0.3
|
|
128
|
+
|
|
129
|
+
##### Changed
|
|
130
|
+
|
|
131
|
+
- `panel`: constrain the panel to a max width aligned with the input.
|
|
132
|
+
|
|
133
|
+
##### Fixed
|
|
134
|
+
|
|
135
|
+
- `placeholder`: keep the input focused and hide the placeholder when all options are selected.
|
|
136
|
+
|
|
137
|
+
#### 21.0.2
|
|
138
|
+
|
|
139
|
+
##### Changed
|
|
140
|
+
|
|
141
|
+
- `api directives`: select directives are consolidated around a common implementation.
|
|
142
|
+
|
|
143
|
+
##### Fixed
|
|
144
|
+
|
|
145
|
+
- `select-all`: do not open the panel when `withSelectAll` is set on init.
|
|
146
|
+
|
|
147
|
+
#### 21.0.0
|
|
148
|
+
|
|
149
|
+
##### Added
|
|
150
|
+
|
|
151
|
+
- `lu-multi-select-content-displayer`: new displayer component that projects arbitrary content for the selected values.
|
|
152
|
+
- `placeholder`: add a default placeholder for the multi-select.
|
|
153
|
+
- `occupation-category`: new select directive, with its mock data.
|
|
154
|
+
|
|
155
|
+
##### Changed
|
|
156
|
+
|
|
157
|
+
- `select-all displayer`: render selected values with `lu-chip`.
|
|
158
|
+
- `no result`: show a more specific message when a search returns no result.
|
|
159
|
+
|
|
160
|
+
#### 20.3.3
|
|
161
|
+
|
|
162
|
+
##### Fixed
|
|
163
|
+
|
|
164
|
+
- `select-all displayer`: fix the numeric badge not showing when the displayer uses text.
|
|
165
|
+
|
|
166
|
+
#### 20.3.2
|
|
167
|
+
|
|
168
|
+
##### Fixed
|
|
169
|
+
|
|
170
|
+
- `grouping`: wait for establishment grouping calls before fetching options.
|
|
171
|
+
- `grouping`: fix a change detection issue on the grouping property.
|
|
172
|
+
|
|
173
|
+
#### 20.3.1
|
|
174
|
+
|
|
175
|
+
##### Fixed
|
|
176
|
+
|
|
177
|
+
- `select-all displayer`: fix the wrong total count shown in the displayer.
|
|
178
|
+
- `filter pill`: fix the filter pill displayer when using select-all.
|
|
179
|
+
- `panel`: improve panel placement update logic.
|
|
180
|
+
|
|
181
|
+
#### 20.2.2
|
|
182
|
+
|
|
183
|
+
##### Fixed
|
|
184
|
+
|
|
185
|
+
- `select-all`: properly handle toggling options of disabled groups.
|
|
186
|
+
- `panel header`: `luSelectPanelHeader` now works with `lu-multi-select`.
|
|
187
|
+
- `departments`: fix the total count in tree mode.
|
|
188
|
+
|
|
189
|
+
#### 20.2.1
|
|
190
|
+
|
|
191
|
+
##### Fixed
|
|
192
|
+
|
|
193
|
+
- `users`: add the missing `uniqueOperationIds` for the `me` lookup.
|
|
194
|
+
|
|
195
|
+
#### 20.2.0
|
|
196
|
+
|
|
197
|
+
##### Added
|
|
198
|
+
|
|
199
|
+
- `tree mode`: display options as a tree, with `Ctrl+Enter` to select the parent only and `Shift+Enter` to select children only.
|
|
200
|
+
|
|
201
|
+
##### Fixed
|
|
202
|
+
|
|
203
|
+
- `a11y`: accessibility audit fixes.
|
|
204
|
+
|
|
205
|
+
#### 20.1.2
|
|
206
|
+
|
|
207
|
+
##### Fixed
|
|
208
|
+
|
|
209
|
+
- `homonyms`: additional data was missing when searching.
|
|
210
|
+
|
|
211
|
+
#### 20.1.1
|
|
212
|
+
|
|
213
|
+
##### Fixed
|
|
214
|
+
|
|
215
|
+
- `filter pill`: make the displayed value match the selected value.
|
|
216
|
+
|
|
217
|
+
#### 20.1.0
|
|
218
|
+
|
|
219
|
+
##### Added
|
|
220
|
+
|
|
221
|
+
- `panel header / footer`: support custom panel headers and footers, with accessibility for the select-all control.
|
|
222
|
+
|
|
223
|
+
##### Changed
|
|
224
|
+
|
|
225
|
+
- `autocomplete`: turn browser autocomplete off by default on the search field.
|
|
226
|
+
|
|
227
|
+
#### 19.3.4
|
|
228
|
+
|
|
229
|
+
##### Added
|
|
230
|
+
|
|
231
|
+
- `optionComparer`: can be overridden for the API v4 directives.
|
|
232
|
+
|
|
233
|
+
#### 19.3.0
|
|
234
|
+
|
|
235
|
+
##### Added
|
|
236
|
+
|
|
237
|
+
- `users`: support a custom user option template.
|
|
238
|
+
|
|
239
|
+
#### 19.2.6
|
|
240
|
+
|
|
241
|
+
##### Fixed
|
|
242
|
+
|
|
243
|
+
- `grouping`: fix the group template not being displayed when a clue was used.
|
|
244
|
+
- `filter pill`: make the filter pill clearable.
|
|
245
|
+
|
|
246
|
+
#### 19.2.4
|
|
247
|
+
|
|
248
|
+
##### Fixed
|
|
249
|
+
|
|
250
|
+
- `api v4`: improve the initialization logic to prevent useless API calls.
|
|
251
|
+
- `grouping`: fix the option id when grouping.
|
|
252
|
+
|
|
253
|
+
#### 19.2.2
|
|
254
|
+
|
|
255
|
+
##### Fixed
|
|
256
|
+
|
|
257
|
+
- `displayer`: fix ellipsis on the displayer.
|
|
258
|
+
|
|
259
|
+
#### 19.2.1
|
|
260
|
+
|
|
261
|
+
##### Changed
|
|
262
|
+
|
|
263
|
+
- `inputs`: accept readonly arrays.
|
|
264
|
+
|
|
265
|
+
#### 19.2.0
|
|
266
|
+
|
|
267
|
+
##### Added
|
|
268
|
+
|
|
269
|
+
- `filter pill mode`: integrate with filter pills, including a `filterPillLabelPlural` input for the pill label.
|
|
270
|
+
- `noClue`: new directive to disable the API v3/v4 search.
|
|
271
|
+
|
|
272
|
+
##### Changed
|
|
273
|
+
|
|
274
|
+
- `search icon`: display a search icon when the component is searchable.
|
|
275
|
+
- `select-all displayer`: option to disable the numeric badge tooltip.
|
|
276
|
+
|
|
277
|
+
##### Fixed
|
|
278
|
+
|
|
279
|
+
- `placeholder`: remove the placeholder when the search input is not used.
|
|
280
|
+
|
|
281
|
+
#### 19.1.6
|
|
282
|
+
|
|
283
|
+
##### Fixed
|
|
284
|
+
|
|
285
|
+
- `select-all`: fix wrong selection/unselection when manually selecting or unselecting all options.
|
|
286
|
+
|
|
287
|
+
#### 19.1.5
|
|
288
|
+
|
|
289
|
+
##### Added
|
|
290
|
+
|
|
291
|
+
- `api directives`: new `uniqueOperationIds` input on the establishments and users directives.
|
|
292
|
+
|
|
293
|
+
#### 19.1.4
|
|
294
|
+
|
|
295
|
+
##### Fixed
|
|
296
|
+
|
|
297
|
+
- `numeric badge`: fix the multi-establishment numeric badge in size S.
|
|
298
|
+
- `users`: fix the wrong API used for the users count, and stop overriding `panelHeaderTpl`.
|
|
299
|
+
|
|
300
|
+
#### 19.1.0
|
|
301
|
+
|
|
302
|
+
##### Added
|
|
303
|
+
|
|
304
|
+
- `LuMultiSelectionValidators`: new `required` validator for the multi-selection control.
|
|
305
|
+
|
|
306
|
+
#### 18.3.3
|
|
307
|
+
|
|
308
|
+
##### Changed
|
|
309
|
+
|
|
310
|
+
- `overlay`: the select no longer overrides the overlay container.
|
|
311
|
+
|
|
312
|
+
##### Fixed
|
|
313
|
+
|
|
314
|
+
- `panel`: fix the searchable state when using `luOptionGroup`.
|
|
315
|
+
|
|
316
|
+
#### 18.3.2
|
|
317
|
+
|
|
318
|
+
##### Added
|
|
319
|
+
|
|
320
|
+
- `keepSearchAfterSelection`: new input to keep the search clue after a value is selected instead of clearing it.
|
|
321
|
+
|
|
322
|
+
##### Fixed
|
|
323
|
+
|
|
324
|
+
- `select-all`: emit mode `none` when selecting all then unselecting each option.
|
|
325
|
+
- `displayer`: fix error display and ARIA attributes on the displayer.
|
|
326
|
+
|
|
327
|
+
#### 18.3.1
|
|
328
|
+
|
|
329
|
+
##### Fixed
|
|
330
|
+
|
|
331
|
+
- `initial value`: take initial values into account.
|
|
332
|
+
- `select-all`: multiple select-all fixes.
|
|
333
|
+
|
|
334
|
+
#### 18.3.0
|
|
335
|
+
|
|
336
|
+
##### Added
|
|
337
|
+
|
|
338
|
+
- `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.
|
|
339
|
+
- `users`: support `enableFormerEmployees` on the users select directive.
|
|
340
|
+
|
|
341
|
+
#### 18.2.3
|
|
342
|
+
|
|
343
|
+
##### Fixed
|
|
344
|
+
|
|
345
|
+
- `ui`: multi-select UI fixes.
|
|
346
|
+
|
|
347
|
+
#### 18.1.2
|
|
348
|
+
|
|
349
|
+
##### Fixed
|
|
350
|
+
|
|
351
|
+
- `option highlight`: fix the no-highlighted-option issue.
|
|
352
|
+
- `option highlight`: fix the highlighted item not updating after a clue change.
|
|
353
|
+
|
|
354
|
+
#### 18.1.0
|
|
355
|
+
|
|
356
|
+
##### Added
|
|
357
|
+
|
|
358
|
+
- `lu-multi-select-counter-displayer`: new displayer component showing a counter of selected values.
|
|
359
|
+
|
|
360
|
+
##### Fixed
|
|
361
|
+
|
|
362
|
+
- `chip`: fix the "+N" chip in size S.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# newbadge — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-newbadge-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Mots-clés : nouveau, nouveauté
|
|
8
|
+
|
|
9
|
+
Component selector : `lu-new-badge`
|
|
10
|
+
|
|
11
|
+
## HTML/CSS
|
|
12
|
+
|
|
13
|
+
Classe CSS : `.newBadge`
|
|
14
|
+
|
|
15
|
+
### Badge
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@forward '@lucca-front/scss/src/components/newBadge';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<span class="newBadge">New</span>
|
|
23
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# newbadge
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { NewBadgeComponent } from '@lucca-front/ng/new-badge';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### NewBadgeComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-new-badge`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `label` | `label` | `string` | — | ✅ | — | Modifie le texte affiché par le composant. |
|
|
20
|
+
|
|
21
|
+
## Related files
|
|
22
|
+
|
|
23
|
+
- 📝 [Code & implementation](./newbadge.component.md)
|
|
24
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/newbadge/newbadge.design.md)
|
|
25
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/newbadge/newbadge.figma.md)
|
|
26
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-newbadge-angular-basic--docs)
|
|
27
|
+
|
|
28
|
+
## Changelog
|
|
29
|
+
|
|
30
|
+
_Aucun changement d'API entre v21.4.2 et v22.0.0._
|
|
31
|
+
|
|
32
|
+
### Notes de release (ZeroHeight)
|
|
33
|
+
|
|
34
|
+
#### 19.3.0
|
|
35
|
+
|
|
36
|
+
##### Added
|
|
37
|
+
|
|
38
|
+
- `mod-inverted` modifier to display the badge with inverted colors (brand background/text swapped) for use on dark surfaces such as the side navigation.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# number-format-input
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { NumberFormatInputComponent } from '@lucca-front/ng/forms';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### NumberFormatInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-number-format-input`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `formatStyle` | `formatStyle` | `NumberFormatStyle` | `'decimal'` | — | — | — |
|
|
20
|
+
| `useAutoPrefixSuffix` | `useAutoPrefixSuffix` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
21
|
+
| `prefix` | `prefix` | `TextInputAddon \| undefined` | `undefined` | — | — | — |
|
|
22
|
+
| `suffix` | `suffix` | `TextInputAddon \| undefined` | `undefined` | — | — | — |
|
|
23
|
+
| `currency` | `currency` | `string \| undefined` | `undefined` | — | — | — |
|
|
24
|
+
| `currencyDisplay` | `currencyDisplay` | `NumberFormatCurrencyDisplay \| undefined` | `undefined` | — | — | — |
|
|
25
|
+
| `unit` | `unit` | `NumberFormatUnit \| undefined` | `undefined` | — | — | — |
|
|
26
|
+
| `unitDisplay` | `unitDisplay` | `NumberFormatUnitDisplay \| undefined` | `undefined` | — | — | — |
|
|
27
|
+
| `min` | `min` | `unknown` | `undefined` | — | `luOptionalNumberAttribute` | — |
|
|
28
|
+
| `max` | `max` | `unknown` | `undefined` | — | `luOptionalNumberAttribute` | — |
|
|
29
|
+
| `placeholder` | `placeholder` | `string` | `''` | — | — | — |
|
|
30
|
+
| `hasClearer` | `hasClearer` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
31
|
+
| `valueAlignRight` | `valueAlignRight` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
32
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
33
|
+
|
|
34
|
+
## Related files
|
|
35
|
+
|
|
36
|
+
## Changelog
|
|
37
|
+
|
|
38
|
+
> 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.
|
|
39
|
+
|
|
40
|
+
### 22.0.0
|
|
41
|
+
|
|
42
|
+
~ `useAutoPrefixSuffix` : transform booleanAttribute → luBooleanAttribute
|
|
43
|
+
~ `min` : number | undefined → unknown, transform ∅ → luOptionalNumberAttribute
|
|
44
|
+
~ `max` : number | undefined → unknown, transform ∅ → luOptionalNumberAttribute
|
|
45
|
+
~ `hasClearer` : transform booleanAttribute → luBooleanAttribute
|
|
46
|
+
~ `valueAlignRight` : transform booleanAttribute → luBooleanAttribute
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# number-input
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { NumberInputComponent } from '@lucca-front/ng/forms';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### NumberInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-number-input`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `placeholder` | `placeholder` | `string` | `''` | — | — | — |
|
|
20
|
+
| `step` | `step` | `number` | `1` | — | `luNumberAttribute` | — |
|
|
21
|
+
| `noSpinButtons` | `noSpinButtons` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
22
|
+
| `hasClearer` | `hasClearer` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
23
|
+
| `prefix` | `prefix` | `TextfieldIconAddon \| TextfieldTextAddon` | — | — | — | — |
|
|
24
|
+
| `suffix` | `suffix` | `TextfieldIconAddon \| TextfieldTextAddon` | — | — | — | — |
|
|
25
|
+
| `min` | `min` | `unknown` | `undefined` | — | `luOptionalNumberAttribute` | — |
|
|
26
|
+
| `max` | `max` | `unknown` | `undefined` | — | `luOptionalNumberAttribute` | — |
|
|
27
|
+
| `valueAlignRight` | `valueAlignRight` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
28
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
29
|
+
|
|
30
|
+
### Injection tokens
|
|
31
|
+
|
|
32
|
+
| Token | Type | Description |
|
|
33
|
+
|-------|------|-------------|
|
|
34
|
+
| `LU_NUMBERFIELD_TRANSLATIONS` | `unknown` | — |
|
|
35
|
+
|
|
36
|
+
## Related files
|
|
37
|
+
|
|
38
|
+
## Changelog
|
|
39
|
+
|
|
40
|
+
> 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.
|
|
41
|
+
|
|
42
|
+
### 22.0.0
|
|
43
|
+
|
|
44
|
+
~ `step` : number, number → number, transform numberAttribute → luNumberAttribute
|
|
45
|
+
~ `noSpinButtons` : transform booleanAttribute → luBooleanAttribute
|
|
46
|
+
~ `hasClearer` : transform booleanAttribute → luBooleanAttribute
|
|
47
|
+
~ `min` : number → unknown, défaut ∅ → undefined, transform ∅ → luOptionalNumberAttribute
|
|
48
|
+
~ `max` : number → unknown, défaut ∅ → undefined, transform ∅ → luOptionalNumberAttribute
|
|
49
|
+
~ `valueAlignRight` : transform booleanAttribute → luBooleanAttribute
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# numbers — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-toolbox-numbers-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
### Numbers
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
11
|
+
import { LuNumberPipe } from '@lucca-front/ng/number';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<table class="table">
|
|
16
|
+
<thead class="table-head">
|
|
17
|
+
<tr class="table-head-row">
|
|
18
|
+
<th class="table-head-row-cell">Number</th>
|
|
19
|
+
<th class="table-head-row-cell mod-alignRight">Value</th>
|
|
20
|
+
<th class="table-head-row-cell mod-alignRight">Value aligned</th>
|
|
21
|
+
</tr>
|
|
22
|
+
</thead>
|
|
23
|
+
<tbody class="table-body">
|
|
24
|
+
<tr class="table-body-row">
|
|
25
|
+
<td class="table-body-row-cell">π</td>
|
|
26
|
+
<td class="table-body-row-cell mod-alignRight">{{ pi }}</td>
|
|
27
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="pi | luNumber"></td>
|
|
28
|
+
</tr>
|
|
29
|
+
<tr class="table-body-row">
|
|
30
|
+
<td class="table-body-row-cell">Dix</td>
|
|
31
|
+
<td class="table-body-row-cell mod-alignRight">{{ ten }}</td>
|
|
32
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="ten | luNumber"></td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr class="table-body-row">
|
|
35
|
+
<td class="table-body-row-cell"><span>e</span></td>
|
|
36
|
+
<td class="table-body-row-cell mod-alignRight">{{ e }}</td>
|
|
37
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="e | luNumber"></td>
|
|
38
|
+
</tr>
|
|
39
|
+
<tr class="table-body-row">
|
|
40
|
+
<td class="table-body-row-cell">Milliers</td>
|
|
41
|
+
<td class="table-body-row-cell mod-alignRight">{{ thousands }}</td>
|
|
42
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="thousands | luNumber"></td>
|
|
43
|
+
</tr>
|
|
44
|
+
</tbody>
|
|
45
|
+
</table>
|
|
46
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# numericbadge — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-numericbadge-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Mots-clés : badge, numérique, compteur, count
|
|
8
|
+
|
|
9
|
+
Component selector : `lu-numeric-badge`
|
|
10
|
+
|
|
11
|
+
### Badge
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { NUMERIC_BADGE_SIZE, NumericBadgeComponent } from '@lucca-front/ng/numeric-badge';
|
|
15
|
+
import { PALETTE } from '@lucca/prisme/core';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<lu-numeric-badge maxValue="999" [value]="7" />
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## HTML/CSS
|
|
23
|
+
|
|
24
|
+
Classe CSS : `.numericBadge`
|
|
25
|
+
|
|
26
|
+
### Badge basic
|
|
27
|
+
|
|
28
|
+
```css
|
|
29
|
+
@forward '@lucca-front/scss/src/components/numericBadge';
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<span class="numericBadge">7</span>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Badge loading
|
|
37
|
+
|
|
38
|
+
```css
|
|
39
|
+
@forward '@lucca-front/scss/src/components/numericBadge';
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<span class="numericBadge is-loading" aria-hidden="true">7</span>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Badge palette
|
|
47
|
+
|
|
48
|
+
```css
|
|
49
|
+
@forward '@lucca-front/scss/src/components/numericBadge';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<span class="numericBadge palette-product">7</span>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Badge size
|
|
57
|
+
|
|
58
|
+
```css
|
|
59
|
+
@forward '@lucca-front/scss/src/components/numericBadge';
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
```html
|
|
63
|
+
<span class="numericBadge">7</span>
|
|
64
|
+
<span class="numericBadge mod-S">7</span>
|
|
65
|
+
<span class="numericBadge mod-XS">7</span>
|
|
66
|
+
```
|