@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,198 @@
|
|
|
1
|
+
# dateinput
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { DateInputComponent } from '@lucca-front/ng/date2';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### DateInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-date-input`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
20
|
+
| `format` | `format` | `(typeof DATE_FORMAT)[keyof typeof DATE_FORMAT]` | `DATE_FORMAT.DATE` | — | — | Modifie le format de date. |
|
|
21
|
+
| `ranges` | `ranges` | `unknown` | `[]` | — | — | — |
|
|
22
|
+
| `hideToday` | `hideToday` | `boolean` | `false` | — | `luBooleanAttribute` | Retire la mise en valeur de la date du jour. |
|
|
23
|
+
| `hasTodayButton` | `hasTodayButton` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
24
|
+
| `clearable` | `clearable` | `unknown` | `null` | — | `luNullableBooleanAttribute` | Ajoute un bouton de suppression lorsqu’une date est sélectionnée. |
|
|
25
|
+
| `clearBehavior` | `clearBehavior` | `'clear' \| 'reset'` | `'clear'` | — | — | [v20.1] Change le comportement au clic sur la croix de suppression |
|
|
26
|
+
| `hideWeekend` | `hideWeekend` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
27
|
+
| `mode` | `mode` | `'day' \| 'week' \| 'month' \| 'year'` | `'day'` | — | — | Modifie le mode de sélection au mois ou à l'année. |
|
|
28
|
+
| `getCellInfo` | `getCellInfo` | `((day: Date, mode: CalendarMode) => CellStatus) \| null` | — | — | — | — |
|
|
29
|
+
| `min` | `min` | `unknown` | `new Date('1/1/1000')` | — | `transformDateInputToDate` | Définit une date minimum de sélection. |
|
|
30
|
+
| `max` | `max` | `unknown` | `null` | — | `transformDateInputToDate` | Définit une date maximum de sélection. |
|
|
31
|
+
| `focusedDate` | `focusedDate` | `unknown` | `null` | — | `transformDateInputToDate` | — |
|
|
32
|
+
| `autocomplete` | `autocomplete` | `AutoFill` | `'off'` | — | — | — |
|
|
33
|
+
| `placeholder` | `placeholder` | `string` | — | — | — | — |
|
|
34
|
+
| `disableOverflow` | `disableOverflow` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
35
|
+
| `hideOverflow` | `hideOverflow` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
36
|
+
| `widthAuto` | `widthAuto` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
37
|
+
|
|
38
|
+
#### Outputs
|
|
39
|
+
|
|
40
|
+
| Property | Binding name | Type | Notes |
|
|
41
|
+
|----------|-------------|------|-------|
|
|
42
|
+
| `panelOpened` | `panelOpened` | `void` | — |
|
|
43
|
+
| `panelClosed` | `panelClosed` | `void` | — |
|
|
44
|
+
|
|
45
|
+
#### Models (two-way binding)
|
|
46
|
+
|
|
47
|
+
| Property | Type | Required | Notes |
|
|
48
|
+
|----------|------|----------|-------|
|
|
49
|
+
| `calendarMode` | `CalendarMode \| null` | — | — |
|
|
50
|
+
|
|
51
|
+
## Related files
|
|
52
|
+
|
|
53
|
+
- 📝 [Code & implementation](./dateinput.component.md)
|
|
54
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/dateinput/dateinput.design.md)
|
|
55
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/dateinput/dateinput.figma.md)
|
|
56
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-date2-dateinput--docs)
|
|
57
|
+
|
|
58
|
+
## Changelog
|
|
59
|
+
|
|
60
|
+
> 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.
|
|
61
|
+
|
|
62
|
+
### 22.0.0
|
|
63
|
+
|
|
64
|
+
~ `hideToday` : transform booleanAttribute → luBooleanAttribute
|
|
65
|
+
~ `hasTodayButton` : transform booleanAttribute → luBooleanAttribute
|
|
66
|
+
~ `clearable` : transform booleanAttribute → luNullableBooleanAttribute
|
|
67
|
+
~ `hideWeekend` : transform booleanAttribute → luBooleanAttribute
|
|
68
|
+
~ `mode` : 'day' | 'month' | 'year' → 'day' | 'week' | 'month' | 'year'
|
|
69
|
+
~ `disableOverflow` : transform booleanAttribute → luBooleanAttribute
|
|
70
|
+
~ `hideOverflow` : transform booleanAttribute → luBooleanAttribute
|
|
71
|
+
~ `widthAuto` : transform booleanAttribute → luBooleanAttribute
|
|
72
|
+
~ (model) `calendarMode` : CalendarMode → CalendarMode | null
|
|
73
|
+
|
|
74
|
+
### Notes de release (ZeroHeight)
|
|
75
|
+
|
|
76
|
+
#### 21.2.3
|
|
77
|
+
|
|
78
|
+
##### Fixed
|
|
79
|
+
|
|
80
|
+
- `lu-date-input`: validation error state and value are now correctly triggered on write value.
|
|
81
|
+
|
|
82
|
+
#### 21.2.0
|
|
83
|
+
|
|
84
|
+
##### Fixed
|
|
85
|
+
|
|
86
|
+
- `lu-date-input`: no longer marks the control as touched when the text input changes.
|
|
87
|
+
|
|
88
|
+
#### 21.1.0
|
|
89
|
+
|
|
90
|
+
##### Added
|
|
91
|
+
|
|
92
|
+
- `intl`: new input on `lu-date-input` and `input[luDateInput]` to override component translations.
|
|
93
|
+
- `*luPresentationDisplay`: `lu-date-input` now supports the form-field presentation display mode.
|
|
94
|
+
|
|
95
|
+
##### Fixed
|
|
96
|
+
|
|
97
|
+
- `lu-date-input`: parsing now uses the mode-specific date format (`dateFormatWithMode`) so values are read according to the current mode.
|
|
98
|
+
|
|
99
|
+
#### 21.0.0
|
|
100
|
+
|
|
101
|
+
##### Deprecated
|
|
102
|
+
|
|
103
|
+
- `LuDatePickerModule`: deprecated, import the standalone `LuDatePickerComponent` directly instead.
|
|
104
|
+
|
|
105
|
+
#### 20.3.1
|
|
106
|
+
|
|
107
|
+
##### Fixed
|
|
108
|
+
|
|
109
|
+
- `lu-date-input`: the calendar display mode is now kept in sync with the `mode` input.
|
|
110
|
+
|
|
111
|
+
#### 20.3.0
|
|
112
|
+
|
|
113
|
+
##### Added
|
|
114
|
+
|
|
115
|
+
- `panelOpened` / `panelClosed`: new outputs on `lu-date-input` emitted when the calendar panel opens or closes.
|
|
116
|
+
|
|
117
|
+
##### Fixed
|
|
118
|
+
|
|
119
|
+
- `lu-date-input`: better handling of single-digit input in month and day segments.
|
|
120
|
+
|
|
121
|
+
#### 20.1.0
|
|
122
|
+
|
|
123
|
+
##### Added
|
|
124
|
+
|
|
125
|
+
- `clearBehavior`: new input on `lu-date-input` (`'clear'` | `'reset'`) allowing the clear button to reset to the initial value instead of emptying the field, along with a public `reset()` method.
|
|
126
|
+
|
|
127
|
+
#### 19.3.4
|
|
128
|
+
|
|
129
|
+
##### Fixed
|
|
130
|
+
|
|
131
|
+
- `lu-date-input`: invalid text input is now converted correctly to a date ISO value.
|
|
132
|
+
|
|
133
|
+
#### 19.3.3
|
|
134
|
+
|
|
135
|
+
##### Added
|
|
136
|
+
|
|
137
|
+
- `widthAuto`: new boolean input on `lu-date-input` to size the field to its content.
|
|
138
|
+
|
|
139
|
+
##### Fixed
|
|
140
|
+
|
|
141
|
+
- `lu-date-input`: `writeValue` no longer calls `onChange`.
|
|
142
|
+
|
|
143
|
+
#### 19.3.1
|
|
144
|
+
|
|
145
|
+
##### Fixed
|
|
146
|
+
|
|
147
|
+
- `lu-date-input`: selecting an initial value after a change is now reflected on the model.
|
|
148
|
+
|
|
149
|
+
#### 19.2.6
|
|
150
|
+
|
|
151
|
+
##### Fixed
|
|
152
|
+
|
|
153
|
+
- `lu-date-input`: correct handling of `min`/`max` in month mode.
|
|
154
|
+
- `lu-date-input`: disabled state now uses a signal so the view re-renders correctly.
|
|
155
|
+
- `lu-date-input`: clearing now sends `null` on change and moves the calendar accordingly.
|
|
156
|
+
|
|
157
|
+
#### 19.2.5
|
|
158
|
+
|
|
159
|
+
##### Fixed
|
|
160
|
+
|
|
161
|
+
- `lu-date-input`: the disabled state of the date picker panel is now updated correctly.
|
|
162
|
+
|
|
163
|
+
#### 19.2.3
|
|
164
|
+
|
|
165
|
+
##### Fixed
|
|
166
|
+
|
|
167
|
+
- `lu-date-input`: a `null` value at initialisation is now handled correctly.
|
|
168
|
+
|
|
169
|
+
#### 19.2.2
|
|
170
|
+
|
|
171
|
+
##### Added
|
|
172
|
+
|
|
173
|
+
- `inDateISOFormat`: `lu-date-input` can now emit and consume date ISO string values instead of `Date` objects.
|
|
174
|
+
|
|
175
|
+
#### 18.3.3
|
|
176
|
+
|
|
177
|
+
##### Fixed
|
|
178
|
+
|
|
179
|
+
- `lu-date-input`: `min`/`max` are now handled properly in a month picker configuration.
|
|
180
|
+
- `lu-date-input`: validators logic fixes for `min`/`max`.
|
|
181
|
+
|
|
182
|
+
#### 18.3.2
|
|
183
|
+
|
|
184
|
+
##### Fixed
|
|
185
|
+
|
|
186
|
+
- `lu-date-input`: now accepts `null` as a value.
|
|
187
|
+
|
|
188
|
+
#### 18.3.0
|
|
189
|
+
|
|
190
|
+
##### Added
|
|
191
|
+
|
|
192
|
+
- `lu-date-input`: new date input component built on the calendar2 stack. Exposes inputs such as `format`, `mode`, `min`, `max`, `ranges`, `clearable`, `hideToday`, `hasTodayButton`, `disableOverflow` and `hideOverflow`.
|
|
193
|
+
|
|
194
|
+
#### 18.1.0
|
|
195
|
+
|
|
196
|
+
##### Changed
|
|
197
|
+
|
|
198
|
+
- `granularity`: on `lu-date-picker` and `input[luDateInput]`, the input now also accepts the `LuDateGranularity` string union type in addition to the `ELuDateGranularity` enum.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# daterangeinput — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-date2-daterangeinput--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-date-range-input`
|
|
8
|
+
|
|
9
|
+
### Range input
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { LOCALE_ID } from '@angular/core';
|
|
13
|
+
import { FormsModule } from '@angular/forms';
|
|
14
|
+
import { CALENDAR_MODE, CalendarShortcut, DATE2_CLEAR_BEHAVIOR, DATE_FORMAT_CONST, DateRange, DateRangeInputComponent, PremadeShortcuts } from '@lucca-front/ng/date2';
|
|
15
|
+
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
shortcuts: [
|
|
20
|
+
{
|
|
21
|
+
label: 'Since start of week',
|
|
22
|
+
range: PremadeShortcuts['SinceStartOfWeek']('fr'),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: 'Last week',
|
|
26
|
+
range: PremadeShortcuts['LastWeek']('fr'),
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: 'Last month',
|
|
30
|
+
range: PremadeShortcuts['LastMonth']('fr'),
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<lu-form-field label="Date range input example" inlineMessage="Inline message example">
|
|
37
|
+
<lu-date-range-input [(ngModel)]="selected" [min]="min" [max]="max" [focusedDate]="focusedDate" format="date" />
|
|
38
|
+
</lu-form-field>
|
|
39
|
+
|
|
40
|
+
<pr-story-model-display>{{ selected | json }}</pr-story-model-display>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<lu-form-field label="Date range input example" inlineMessage="Inline message example">
|
|
45
|
+
<lu-date-range-input [(ngModel)]="selected" [min]="min" [max]="max" [shortcuts]="shortcuts" />
|
|
46
|
+
</lu-form-field>
|
|
47
|
+
|
|
48
|
+
<pr-story-model-display>{{ selected | json }}</pr-story-model-display>
|
|
49
|
+
```
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# daterangeinput
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { DateRangeInputComponent } from '@lucca-front/ng/date2';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### DateRangeInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-date-range-input`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
20
|
+
| `format` | `format` | `(typeof DATE_FORMAT)[keyof typeof DATE_FORMAT]` | `DATE_FORMAT.DATE` | — | — | Modifie le format de date. |
|
|
21
|
+
| `ranges` | `ranges` | `unknown` | `[]` | — | — | — |
|
|
22
|
+
| `hideToday` | `hideToday` | `boolean` | `false` | — | `luBooleanAttribute` | Retire la mise en valeur de la date du jour. |
|
|
23
|
+
| `hasTodayButton` | `hasTodayButton` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
24
|
+
| `clearable` | `clearable` | `unknown` | `null` | — | `luNullableBooleanAttribute` | Ajoute un bouton de suppression lorsqu’une date est sélectionnée. |
|
|
25
|
+
| `clearBehavior` | `clearBehavior` | `'clear' \| 'reset'` | `'clear'` | — | — | [v20.1] Change le comportement au clic sur la croix de suppression |
|
|
26
|
+
| `hideWeekend` | `hideWeekend` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
27
|
+
| `mode` | `mode` | `'day' \| 'week' \| 'month' \| 'year'` | `'day'` | — | — | Modifie le mode de sélection au mois ou à l'année. |
|
|
28
|
+
| `getCellInfo` | `getCellInfo` | `((day: Date, mode: CalendarMode) => CellStatus) \| null` | — | — | — | — |
|
|
29
|
+
| `min` | `min` | `unknown` | `new Date('1/1/1000')` | — | `transformDateInputToDate` | Définit une date minimum de sélection. |
|
|
30
|
+
| `max` | `max` | `unknown` | `null` | — | `transformDateInputToDate` | Définit une date maximum de sélection. |
|
|
31
|
+
| `focusedDate` | `focusedDate` | `unknown` | `null` | — | `transformDateInputToDate` | Définit la date préselectionnée à l’ouverture du calendrier. |
|
|
32
|
+
| `placeholder` | `placeholder` | `string` | — | — | — | — |
|
|
33
|
+
| `widthAuto` | `widthAuto` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
34
|
+
| `shortcuts` | `shortcuts` | `readonly CalendarShortcut[]` | — | — | — | — |
|
|
35
|
+
| `autocomplete` | `autocomplete` | `AutoFill` | `'off'` | — | — | — |
|
|
36
|
+
|
|
37
|
+
#### Outputs
|
|
38
|
+
|
|
39
|
+
| Property | Binding name | Type | Notes |
|
|
40
|
+
|----------|-------------|------|-------|
|
|
41
|
+
| `panelOpened` | `panelOpened` | `void` | — |
|
|
42
|
+
| `panelClosed` | `panelClosed` | `void` | — |
|
|
43
|
+
|
|
44
|
+
#### Models (two-way binding)
|
|
45
|
+
|
|
46
|
+
| Property | Type | Required | Notes |
|
|
47
|
+
|----------|------|----------|-------|
|
|
48
|
+
| `calendarMode` | `CalendarMode \| null` | — | — |
|
|
49
|
+
|
|
50
|
+
## Related files
|
|
51
|
+
|
|
52
|
+
- 📝 [Code & implementation](./daterangeinput.component.md)
|
|
53
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/daterangeinput/daterangeinput.design.md)
|
|
54
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/daterangeinput/daterangeinput.figma.md)
|
|
55
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-date2-daterangeinput--docs)
|
|
56
|
+
|
|
57
|
+
## Changelog
|
|
58
|
+
|
|
59
|
+
> 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.
|
|
60
|
+
|
|
61
|
+
### 22.0.0
|
|
62
|
+
|
|
63
|
+
~ `hideToday` : transform booleanAttribute → luBooleanAttribute
|
|
64
|
+
~ `hasTodayButton` : transform booleanAttribute → luBooleanAttribute
|
|
65
|
+
~ `clearable` : transform booleanAttribute → luNullableBooleanAttribute
|
|
66
|
+
~ `hideWeekend` : transform booleanAttribute → luBooleanAttribute
|
|
67
|
+
~ `mode` : 'day' | 'month' | 'year' → 'day' | 'week' | 'month' | 'year'
|
|
68
|
+
~ `widthAuto` : transform booleanAttribute → luBooleanAttribute
|
|
69
|
+
~ (model) `calendarMode` : CalendarMode → CalendarMode | null
|
|
70
|
+
|
|
71
|
+
### Notes de release (ZeroHeight)
|
|
72
|
+
|
|
73
|
+
#### 21.3.0
|
|
74
|
+
|
|
75
|
+
##### Changed
|
|
76
|
+
|
|
77
|
+
- `presentation display` uses plain text separators (`from`/`to` labels) instead of a masked span and arrow icon in the read-only presentation mode.
|
|
78
|
+
|
|
79
|
+
#### 21.2.1
|
|
80
|
+
|
|
81
|
+
##### Fixed
|
|
82
|
+
|
|
83
|
+
- `segment width` corrected the width calculation of the start/end input segments.
|
|
84
|
+
|
|
85
|
+
#### 21.1.4
|
|
86
|
+
|
|
87
|
+
##### Fixed
|
|
88
|
+
|
|
89
|
+
- `end input` the end field's input event now reads its own value instead of the start field's value.
|
|
90
|
+
|
|
91
|
+
#### 21.1.3
|
|
92
|
+
|
|
93
|
+
##### Fixed
|
|
94
|
+
|
|
95
|
+
- `empty value` empty value display now matches the other inputs, showing a dash placeholder.
|
|
96
|
+
|
|
97
|
+
#### 21.1.1
|
|
98
|
+
|
|
99
|
+
##### Fixed
|
|
100
|
+
|
|
101
|
+
- `filled label` the label is now correctly considered as filled even when the field is not static.
|
|
102
|
+
|
|
103
|
+
#### 21.1.0
|
|
104
|
+
|
|
105
|
+
##### Added
|
|
106
|
+
|
|
107
|
+
- `intl` translation override support: every label and message can now be overridden through the `intl` inputs.
|
|
108
|
+
- `presentation` presentation display mode for the range input, rendering a read-only formatted value inside a presentation form field.
|
|
109
|
+
|
|
110
|
+
##### Changed
|
|
111
|
+
|
|
112
|
+
- `empty presentation` displays a dash (`–`) when a presentation value is empty.
|
|
113
|
+
|
|
114
|
+
##### Fixed
|
|
115
|
+
|
|
116
|
+
- `keyboard input` typing in the field no longer moves the caret once the value is parsed.
|
|
117
|
+
|
|
118
|
+
#### 21.0.0
|
|
119
|
+
|
|
120
|
+
##### Fixed
|
|
121
|
+
|
|
122
|
+
- `filter pill reset` fixed the reset of the value when used inside a filter pill.
|
|
123
|
+
|
|
124
|
+
#### 20.3.0
|
|
125
|
+
|
|
126
|
+
##### Added
|
|
127
|
+
|
|
128
|
+
- `panelOpened` / `panelClosed` outputs emitted when the calendar panel opens and closes.
|
|
129
|
+
|
|
130
|
+
#### 20.2.3
|
|
131
|
+
|
|
132
|
+
##### Fixed
|
|
133
|
+
|
|
134
|
+
- `value emission` removed an internal effect that could emit a spurious `null` value.
|
|
135
|
+
|
|
136
|
+
#### 20.1.0
|
|
137
|
+
|
|
138
|
+
##### Added
|
|
139
|
+
|
|
140
|
+
- `clearBehavior` input accepting `reset` to restore the initial value instead of clearing to `null` when the clear button is used.
|
|
141
|
+
|
|
142
|
+
#### 19.3.3
|
|
143
|
+
|
|
144
|
+
##### Added
|
|
145
|
+
|
|
146
|
+
- `widthAuto` input to let the field size itself to its content instead of taking the full available width.
|
|
147
|
+
|
|
148
|
+
#### 19.3.1
|
|
149
|
+
|
|
150
|
+
##### Fixed
|
|
151
|
+
|
|
152
|
+
- `disabled state` fixed the input always being rendered as disabled.
|
|
153
|
+
|
|
154
|
+
#### 19.2.6
|
|
155
|
+
|
|
156
|
+
##### Fixed
|
|
157
|
+
|
|
158
|
+
- `filter pill clearable` fixed the clearable behaviour when hosted in a filter pill.
|
|
159
|
+
|
|
160
|
+
#### 19.2.5
|
|
161
|
+
|
|
162
|
+
##### Fixed
|
|
163
|
+
|
|
164
|
+
- `disabled state` the date picker disabled state is now kept in sync with the control.
|
|
165
|
+
|
|
166
|
+
#### 19.2.2
|
|
167
|
+
|
|
168
|
+
##### Changed
|
|
169
|
+
|
|
170
|
+
- `inDateISOFormat` the value accessor now accepts and emits ISO date string ranges when the ISO format is enabled.
|
|
171
|
+
|
|
172
|
+
#### 19.2.0
|
|
173
|
+
|
|
174
|
+
##### Added
|
|
175
|
+
|
|
176
|
+
- `filter pill` support for being used as a filter pill input, integrating with `filter-pills` / `filter-pills-bar`.
|
|
177
|
+
|
|
178
|
+
##### Fixed
|
|
179
|
+
|
|
180
|
+
- `keyboard navigation` fixed period keyboard navigation when used as a filter pill.
|
|
181
|
+
|
|
182
|
+
#### 19.1.0
|
|
183
|
+
|
|
184
|
+
##### Added
|
|
185
|
+
|
|
186
|
+
- `lu-date-range-input` new component providing a date range picker input with a dual-calendar panel, `shortcuts`, `placeholder`, `mode` (day / month / year), min/max bounds and calendar cell customization.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# departmentselect — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-departmentselect--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
### Select
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
11
|
+
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
12
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
13
|
+
import { LuDepartmentSelectInputComponent } from '@lucca-front/ng/department';
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<label class="textfield mod-inline">
|
|
18
|
+
<lu-department-select
|
|
19
|
+
class="textfield-input"
|
|
20
|
+
[appInstanceId]="appInstanceId()"
|
|
21
|
+
[operations]="operations()"
|
|
22
|
+
[filters]="filters()"
|
|
23
|
+
[uniqueOperation]="uniqueOperation()"
|
|
24
|
+
placeholder="Select a departement"
|
|
25
|
+
data-testid="lu-select"
|
|
26
|
+
/>
|
|
27
|
+
<div class="textfield-label">Departement</div>
|
|
28
|
+
</label>
|
|
29
|
+
|
|
30
|
+
<label class="textfield mod-inline">
|
|
31
|
+
<lu-department-select
|
|
32
|
+
class="textfield-input"
|
|
33
|
+
[appInstanceId]="appInstanceId()"
|
|
34
|
+
[operations]="operations()"
|
|
35
|
+
[filters]="filters()"
|
|
36
|
+
[uniqueOperation]="uniqueOperation()"
|
|
37
|
+
placeholder="Select a departement"
|
|
38
|
+
multiple="true"
|
|
39
|
+
data-testid="lu-select"
|
|
40
|
+
/>
|
|
41
|
+
<div class="textfield-label">Departement multiple</div>
|
|
42
|
+
</label>
|
|
43
|
+
```
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# departmentselect
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { LuDepartmentSelectInputComponent } from '@lucca-front/ng/department';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### LuDepartmentSelectInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-department-select`
|
|
14
|
+
|
|
15
|
+
> ⚠️ **Déprécié** : Déprécié.
|
|
16
|
+
|
|
17
|
+
#### Inputs
|
|
18
|
+
|
|
19
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
20
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
21
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
22
|
+
| `appInstanceId` | `appInstanceId` | `number \| string` | — | — | — | — |
|
|
23
|
+
| `operations` | `operations` | `number[]` | — | — | — | — |
|
|
24
|
+
| `filters` | `filters` | `string[]` | `[]` | — | — | — |
|
|
25
|
+
| `uniqueOperation` | `uniqueOperation` | `number` | — | — | — | — |
|
|
26
|
+
|
|
27
|
+
### Injection tokens
|
|
28
|
+
|
|
29
|
+
| Token | Type | Description |
|
|
30
|
+
|-------|------|-------------|
|
|
31
|
+
| `LU_DEPARTMENT_SELECT_INPUT_TRANSLATIONS` | `unknown` | — |
|
|
32
|
+
|
|
33
|
+
### Modules dépréciés
|
|
34
|
+
|
|
35
|
+
- ⚠️ `LuDepartmentModule` — use `LuDepartmentFeederComponent, LuDepartmentSelectInputComponent` instead
|
|
36
|
+
- ⚠️ `LuDepartmentSelectModule` — use `LuDepartmentFeederComponent, LuDepartmentSelectInputComponent` instead
|
|
37
|
+
- ⚠️ `LuDepartmentSelectInputModule` — use `LuDepartmentSelectInputComponent` instead
|
|
38
|
+
|
|
39
|
+
## Related files
|
|
40
|
+
|
|
41
|
+
- 📝 [Code & implementation](./departmentselect.component.md)
|
|
42
|
+
|
|
43
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-departmentselect--docs)
|