@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,290 @@
|
|
|
1
|
+
# data-table
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { DataTableBodyComponent, DataTableRowCellHeaderComponent, DataTableRowCellComponent, DataTableFootComponent, DataTableHeadComponent, DataTableRowComponent, DataTableComponent } from '@lucca-front/ng/data-table';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-data-table> <thead luDataTableHead> <tr luDataTableRow> <th luDataTableCell>header</th> <th luDataTableCell>header</th> </tr> </thead> <tbody luDataTableBody> <tr luDataTableRow> <th luDataTableCell>header</th> <td luDataTableCell>cell</td> </tr> <tr luDataTableRow> <th luDataTableCell>header</th> <td luDataTableCell>cell</td> </tr> </tbody>
|
|
13
|
+
</lu-data-table>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API Reference
|
|
17
|
+
|
|
18
|
+
### DataTableBodyComponent (component)
|
|
19
|
+
|
|
20
|
+
**Selector:** `tbody[luDataTableBody]`
|
|
21
|
+
|
|
22
|
+
#### Inputs
|
|
23
|
+
|
|
24
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
25
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
26
|
+
| `group` | `group` | `PortalContent \| null` | `null` | — | — | — |
|
|
27
|
+
| `groupButtonAlt` | `groupButtonAlt` | `string \| null` | `null` | — | — | — |
|
|
28
|
+
|
|
29
|
+
#### Models (two-way binding)
|
|
30
|
+
|
|
31
|
+
| Property | Type | Required | Notes |
|
|
32
|
+
|----------|------|----------|-------|
|
|
33
|
+
| `expanded` | `unknown` | — | — |
|
|
34
|
+
|
|
35
|
+
### DataTableRowCellHeaderComponent (component)
|
|
36
|
+
|
|
37
|
+
**Selector:** `th[luDataTableCell]`
|
|
38
|
+
|
|
39
|
+
#### Inputs
|
|
40
|
+
|
|
41
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
42
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
43
|
+
| `editable` | `editable` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
44
|
+
| `align` | `align` | `DataTableAlign \| null` | `null` | — | — | Aligne le contenu des cellules horizontalement. |
|
|
45
|
+
| `fixedWidth` | `fixedWidth` | `string \| null` | `null` | — | — | — |
|
|
46
|
+
| `inlineSize` | `inlineSize` | `string \| null` | `null` | — | — | Modifie la largeur d’une colonne lorsque layoutFixed est activé. |
|
|
47
|
+
|
|
48
|
+
#### Models (two-way binding)
|
|
49
|
+
|
|
50
|
+
| Property | Type | Required | Notes |
|
|
51
|
+
|----------|------|----------|-------|
|
|
52
|
+
| `sort` | `DataTableSort \| null` | — | — |
|
|
53
|
+
|
|
54
|
+
### DataTableRowCellComponent (component)
|
|
55
|
+
|
|
56
|
+
**Selector:** `td[luDataTableCell]`
|
|
57
|
+
|
|
58
|
+
#### Inputs
|
|
59
|
+
|
|
60
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
61
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
62
|
+
| `editable` | `editable` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
63
|
+
| `align` | `align` | `DataTableAlign \| null` | `null` | — | — | Aligne le contenu des cellules horizontalement. |
|
|
64
|
+
| `actions` | `actions` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
65
|
+
|
|
66
|
+
### DataTableFootComponent (component)
|
|
67
|
+
|
|
68
|
+
**Selector:** `tfoot[luDataTableFoot]`
|
|
69
|
+
|
|
70
|
+
### DataTableHeadComponent (component)
|
|
71
|
+
|
|
72
|
+
**Selector:** `thead[luDataTableHead]`
|
|
73
|
+
|
|
74
|
+
#### Inputs
|
|
75
|
+
|
|
76
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
77
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
78
|
+
| `sticky` | `sticky` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
79
|
+
|
|
80
|
+
### DataTableRowComponent (component)
|
|
81
|
+
|
|
82
|
+
**Selector:** `tr[luDataTableRow]`
|
|
83
|
+
|
|
84
|
+
#### Inputs
|
|
85
|
+
|
|
86
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
87
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
88
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
89
|
+
| `selectedLabel` | `selectedLabel` | `string \| null` | `null` | — | — | Texte alternatif restitué à la sélection d’une ligne. |
|
|
90
|
+
| `mixed` | `mixed` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
91
|
+
| `disabled` | `disabled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
92
|
+
|
|
93
|
+
#### Models (two-way binding)
|
|
94
|
+
|
|
95
|
+
| Property | Type | Required | Notes |
|
|
96
|
+
|----------|------|----------|-------|
|
|
97
|
+
| `selected` | `boolean` | — | — |
|
|
98
|
+
|
|
99
|
+
### DataTableComponent (component)
|
|
100
|
+
|
|
101
|
+
**Selector:** `lu-data-table`
|
|
102
|
+
|
|
103
|
+
#### Inputs
|
|
104
|
+
|
|
105
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
106
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
107
|
+
| `hover` | `hover` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
108
|
+
| `selectable` | `selectable` | `boolean` | `false` | — | `luBooleanAttribute` | Rend les lignes du tableau sélectionnables via des checkbox. |
|
|
109
|
+
| `layoutFixed` | `layoutFixed` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
110
|
+
| `cellBorder` | `cellBorder` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
111
|
+
| `nested` | `nested` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
112
|
+
| `drag` | `drag` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
113
|
+
| `noOverflow` | `noOverflow` | `boolean` | `false` | — | `luBooleanAttribute` | Désactive le défilement horizontal du tableau. Celui-ci prendra alors la place nécessaire pour afficher tout son contenu… |
|
|
114
|
+
| `responsive` | `responsive` | `ResponsiveConfig<'layoutFixed', true>` | — | — | — | — |
|
|
115
|
+
| `verticalAlign` | `verticalAlign` | `DataTableVerticalAlign \| null` | `null` | — | — | Aligne le contenu des cellules verticalement. |
|
|
116
|
+
| `stickyColsStart` | `stickyColsStart` | `number` | `0` | — | `luNumberAttribute` | Nombre de colonnes figées depuis la gauche. Non compatible avec l’usage de colspan. |
|
|
117
|
+
| `stickyColsEnd` | `stickyColsEnd` | `number` | `0` | — | `luNumberAttribute` | Nombre de colonnes figées depuis la droite. Non compatible avec l’usage de colspan. |
|
|
118
|
+
|
|
119
|
+
### Injection tokens
|
|
120
|
+
|
|
121
|
+
| Token | Type | Description |
|
|
122
|
+
|-------|------|-------------|
|
|
123
|
+
| `LU_DATA_TABLE_INSTANCE` | `DataTableComponent` | — |
|
|
124
|
+
|
|
125
|
+
## Related files
|
|
126
|
+
|
|
127
|
+
- 📝 [Code & implementation](./data-table.component.md)
|
|
128
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/data-table/data-table.design.md)
|
|
129
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/data-table/data-table.figma.md)
|
|
130
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-listings-data-table-angular-basic--docs)
|
|
131
|
+
|
|
132
|
+
## Changelog
|
|
133
|
+
|
|
134
|
+
> 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.
|
|
135
|
+
|
|
136
|
+
### 22.0.0
|
|
137
|
+
|
|
138
|
+
`DataTableRowCellHeaderComponent` :
|
|
139
|
+
~ `editable` : transform booleanAttribute → luBooleanAttribute
|
|
140
|
+
`DataTableRowCellComponent` :
|
|
141
|
+
~ `editable` : transform booleanAttribute → luBooleanAttribute
|
|
142
|
+
~ `actions` : transform booleanAttribute → luBooleanAttribute
|
|
143
|
+
`DataTableHeadComponent` :
|
|
144
|
+
~ `sticky` : transform booleanAttribute → luBooleanAttribute
|
|
145
|
+
`DataTableRowComponent` :
|
|
146
|
+
+ `mixed` : boolean
|
|
147
|
+
~ `disabled` : transform booleanAttribute → luBooleanAttribute
|
|
148
|
+
`DataTableComponent` :
|
|
149
|
+
~ `hover` : transform booleanAttribute → luBooleanAttribute
|
|
150
|
+
~ `selectable` : transform booleanAttribute → luBooleanAttribute
|
|
151
|
+
~ `layoutFixed` : transform booleanAttribute → luBooleanAttribute
|
|
152
|
+
~ `cellBorder` : transform booleanAttribute → luBooleanAttribute
|
|
153
|
+
~ `nested` : transform booleanAttribute → luBooleanAttribute
|
|
154
|
+
~ `drag` : transform booleanAttribute → luBooleanAttribute
|
|
155
|
+
~ `noOverflow` : transform booleanAttribute → luBooleanAttribute
|
|
156
|
+
~ `stickyColsStart` : transform numberAttribute → luNumberAttribute
|
|
157
|
+
~ `stickyColsEnd` : transform numberAttribute → luNumberAttribute
|
|
158
|
+
|
|
159
|
+
### Notes de release (ZeroHeight)
|
|
160
|
+
|
|
161
|
+
#### 21.3.1
|
|
162
|
+
|
|
163
|
+
##### Fixed
|
|
164
|
+
|
|
165
|
+
- `mod-cellBorder` now applies the correct inline padding to `mod-editable` cells.
|
|
166
|
+
- ResizeObserver instances are now disconnected on destroy to prevent memory leaks.
|
|
167
|
+
|
|
168
|
+
#### 21.3.0
|
|
169
|
+
|
|
170
|
+
##### Fixed
|
|
171
|
+
|
|
172
|
+
- `sort` header now toggles reliably on click (`none` → `ascending` → `descending`) instead of relying on the `ngModel` binding.
|
|
173
|
+
- Sticky columns no longer add offsets to the first and last columns, fixing their positioning.
|
|
174
|
+
|
|
175
|
+
#### 21.2.0
|
|
176
|
+
|
|
177
|
+
##### Added
|
|
178
|
+
|
|
179
|
+
- `mod-critical` modifier for action buttons.
|
|
180
|
+
|
|
181
|
+
##### Deprecated
|
|
182
|
+
|
|
183
|
+
- `mod-delete` modifier for action buttons, use `mod-critical` instead.
|
|
184
|
+
|
|
185
|
+
#### 21.1.0
|
|
186
|
+
|
|
187
|
+
##### Added
|
|
188
|
+
|
|
189
|
+
- `intl` input on `tr[luDataTableRow]` to override the component's translations.
|
|
190
|
+
|
|
191
|
+
#### 21.0.4
|
|
192
|
+
|
|
193
|
+
##### Fixed
|
|
194
|
+
|
|
195
|
+
- `mod-verticalAlignMiddle` now works (fixed a broken `@include` that prevented the modifier from being applied).
|
|
196
|
+
|
|
197
|
+
#### 21.0.0
|
|
198
|
+
|
|
199
|
+
##### Added
|
|
200
|
+
|
|
201
|
+
- Sticky columns support: `stickyColsStart` and `stickyColsEnd` inputs on `lu-data-table`, plus an `inlineSize` input on `th[luDataTableCell]`.
|
|
202
|
+
- `noOverflow` input on `lu-data-table` (rendered as `mod-noOverflow`) to let the table size to its content instead of scrolling.
|
|
203
|
+
- `drag` input on `lu-data-table` to enable drag & drop of rows, adding a drag handle (with a translated `move` label) and the `mod-draggable` row modifier.
|
|
204
|
+
|
|
205
|
+
##### Changed
|
|
206
|
+
|
|
207
|
+
- The pagination slot now stays sticky at the bottom of the scrollable table.
|
|
208
|
+
|
|
209
|
+
##### Fixed
|
|
210
|
+
|
|
211
|
+
- Scroll shadows are now recomputed when the table is resized.
|
|
212
|
+
- Prevent runtime errors when data-table sub-components are rendered without their expected parent (table, row and cell references are now injected optionally).
|
|
213
|
+
|
|
214
|
+
#### 20.3.4
|
|
215
|
+
|
|
216
|
+
##### Changed
|
|
217
|
+
|
|
218
|
+
- `sort` model now uses `'none'` (with a default of `null`) instead of `undefined` for the unsorted state.
|
|
219
|
+
|
|
220
|
+
##### Fixed
|
|
221
|
+
|
|
222
|
+
- Selected-row background is no longer applied to header rows.
|
|
223
|
+
|
|
224
|
+
#### 20.3.2
|
|
225
|
+
|
|
226
|
+
##### Changed
|
|
227
|
+
|
|
228
|
+
- `sort` on `th[luDataTableCell]` is now a two-way bindable `model()` instead of an input.
|
|
229
|
+
- Group headers (`group` input on `tbody[luDataTableBody]`) now render `PortalContent` (templates or components) instead of plain text only.
|
|
230
|
+
|
|
231
|
+
##### Fixed
|
|
232
|
+
|
|
233
|
+
- Checkbox vertical alignment in the first cell of a selectable row.
|
|
234
|
+
- `mod-actions` cells now use symmetric inline padding.
|
|
235
|
+
|
|
236
|
+
#### 20.3.1
|
|
237
|
+
|
|
238
|
+
##### Added
|
|
239
|
+
|
|
240
|
+
- Pagination content slot via the `[dataTablePagination]` selector.
|
|
241
|
+
|
|
242
|
+
#### 20.3.0
|
|
243
|
+
|
|
244
|
+
##### Added
|
|
245
|
+
|
|
246
|
+
- Initial Angular wrapper for the data table:
|
|
247
|
+
- `lu-data-table` (`DataTableComponent`) with inputs `hover`, `selectable`, `layoutFixed`, `cellBorder`, `nested`, `verticalAlign` and `responsive`.
|
|
248
|
+
- `thead[luDataTableHead]` with a `sticky` input.
|
|
249
|
+
- `tbody[luDataTableBody]` with `group`, `groupButtonAlt` and `expanded` inputs.
|
|
250
|
+
- `tfoot[luDataTableFoot]`.
|
|
251
|
+
- `tr[luDataTableRow]` with `selected`, `selectedLabel` and `disabled` inputs.
|
|
252
|
+
- `td[luDataTableCell]` with `align`, `editable` and `actions` inputs.
|
|
253
|
+
- `th[luDataTableCell]` (header cell) with `sort`, `fixedWidth`, `editable` and `align` inputs.
|
|
254
|
+
|
|
255
|
+
#### 20.2.3
|
|
256
|
+
|
|
257
|
+
##### Fixed
|
|
258
|
+
|
|
259
|
+
- z-index and tag positioning inside sticky tables.
|
|
260
|
+
|
|
261
|
+
#### 20.2.2
|
|
262
|
+
|
|
263
|
+
##### Fixed
|
|
264
|
+
|
|
265
|
+
- Background color of grouped rows.
|
|
266
|
+
|
|
267
|
+
#### 19.2.6
|
|
268
|
+
|
|
269
|
+
##### Fixed
|
|
270
|
+
|
|
271
|
+
- Alignment of tags, statuses and avatars inside cells.
|
|
272
|
+
|
|
273
|
+
#### 19.2.1
|
|
274
|
+
|
|
275
|
+
##### Fixed
|
|
276
|
+
|
|
277
|
+
- Sticky header combined with sortable columns.
|
|
278
|
+
- Horizontal overflow on WebKit browsers.
|
|
279
|
+
|
|
280
|
+
#### 19.1.1
|
|
281
|
+
|
|
282
|
+
##### Fixed
|
|
283
|
+
|
|
284
|
+
- White shadow rendering on Chrome.
|
|
285
|
+
|
|
286
|
+
#### 19.1.0
|
|
287
|
+
|
|
288
|
+
##### Added
|
|
289
|
+
|
|
290
|
+
- Initial `dataTable` HTML/SCSS component, including its modifiers (`mod-cellBorder`, `mod-alignTop`, `mod-layoutFixed`, `mod-selectable`, `mod-draggable`, ...) and the companion `dataTableSticked` sticky styles.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# date — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-filterspills-date-angular--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
### Filter pill
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { LOCALE_ID } from '@angular/core';
|
|
11
|
+
import { FormsModule } from '@angular/forms';
|
|
12
|
+
import { DateInputComponent, DateRangeInputComponent } from '@lucca-front/ng/date2';
|
|
13
|
+
import { FilterPillComponent } from '@lucca-front/ng/filter-pills';
|
|
14
|
+
import { CheckboxInputComponent } from '@lucca-front/ng/forms';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<lu-filter-pill label="Date de début" name="startDate">
|
|
19
|
+
<lu-date-input [(ngModel)]="example" clearable />
|
|
20
|
+
</lu-filter-pill>
|
|
21
|
+
|
|
22
|
+
<pr-story-model-display>{{ example }}</pr-story-model-display>
|
|
23
|
+
|
|
24
|
+
<hr class="divider pr-u-marginBlock400" />
|
|
25
|
+
|
|
26
|
+
<lu-filter-pill label="Période" name="periode">
|
|
27
|
+
<lu-date-range-input [(ngModel)]="examplePeriod" clearable />
|
|
28
|
+
</lu-filter-pill>
|
|
29
|
+
|
|
30
|
+
<pr-story-model-display>{{ examplePeriod | json }}</pr-story-model-display>
|
|
31
|
+
```
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# date
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { LuCalendarInputComponent, LuDateInputDirective, LuDatePickerComponent, LuDateSelectInputComponent } from '@lucca-front/ng/date';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### LuCalendarInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-calendar`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
20
|
+
| `min` | `min` | `D` | — | — | — | — |
|
|
21
|
+
| `max` | `max` | `D` | — | — | — | — |
|
|
22
|
+
| `granularity` | `granularity` | `LuDateGranularity` | `ELuDateGranularity.day` | — | — | — |
|
|
23
|
+
| `startOn` | `startOn` | `D` | — | — | — | — |
|
|
24
|
+
|
|
25
|
+
### LuDateInputDirective (directive)
|
|
26
|
+
|
|
27
|
+
**Selector:** `input[luDateInput]`
|
|
28
|
+
|
|
29
|
+
#### Inputs
|
|
30
|
+
|
|
31
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
32
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
33
|
+
| `min` | `min` | `D` | — | — | — | — |
|
|
34
|
+
| `max` | `max` | `D` | — | — | — | — |
|
|
35
|
+
| `granularity` | `granularity` | `LuDateGranularity` | `ELuDateGranularity.day` | — | — | — |
|
|
36
|
+
| `placeHolderInput` | `placeholder` | `string` | `''` | — | — | — |
|
|
37
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
38
|
+
|
|
39
|
+
### LuDatePickerComponent (component)
|
|
40
|
+
|
|
41
|
+
**Selector:** `lu-date-picker`
|
|
42
|
+
|
|
43
|
+
**exportAs:** `LuDatePicker`
|
|
44
|
+
|
|
45
|
+
#### Inputs
|
|
46
|
+
|
|
47
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
48
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
49
|
+
| `min` | `min` | `D` | — | — | — | — |
|
|
50
|
+
| `max` | `max` | `D` | — | — | — | — |
|
|
51
|
+
| `granularity` | `granularity` | `LuDateGranularity` | `ELuDateGranularity.day` | — | — | — |
|
|
52
|
+
| `startOn` | `startOn` | `D` | — | — | — | — |
|
|
53
|
+
|
|
54
|
+
#### Outputs
|
|
55
|
+
|
|
56
|
+
| Property | Binding name | Type | Notes |
|
|
57
|
+
|----------|-------------|------|-------|
|
|
58
|
+
| `closeOutput` | `closeOutput` | `void` | — |
|
|
59
|
+
| `openOutput` | `openOutput` | `void` | — |
|
|
60
|
+
| `hoveredOutput` | `hoveredOutput` | `void` | — |
|
|
61
|
+
| `onSelectValueOutput` | `onSelectValueOutput` | `void` | — |
|
|
62
|
+
|
|
63
|
+
### LuDateSelectInputComponent (component)
|
|
64
|
+
|
|
65
|
+
**Selector:** `lu-date-select`
|
|
66
|
+
|
|
67
|
+
#### Inputs
|
|
68
|
+
|
|
69
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
70
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
71
|
+
| `min` | `min` | `D` | — | — | — | — |
|
|
72
|
+
| `max` | `max` | `D` | — | — | — | — |
|
|
73
|
+
| `granularity` | `granularity` | `LuDateGranularity` | `ELuDateGranularity.day` | — | — | — |
|
|
74
|
+
| `hideClearer` | `hideClearer` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
75
|
+
| `startOn` | `startOn` | `D` | — | — | — | — |
|
|
76
|
+
|
|
77
|
+
### Injection tokens
|
|
78
|
+
|
|
79
|
+
| Token | Type | Description |
|
|
80
|
+
|-------|------|-------------|
|
|
81
|
+
| `LU_DATE_INPUT_TRANSLATIONS` | `unknown` | — |
|
|
82
|
+
| `LU_DATE_SELECT_INPUT_TRANSLATIONS` | `unknown` | — |
|
|
83
|
+
|
|
84
|
+
### Pipes
|
|
85
|
+
|
|
86
|
+
| Pipe | Classe | transform | Description |
|
|
87
|
+
|------|--------|-----------|-------------|
|
|
88
|
+
| `luDate` | `LuDateAdapterPipe` | `(d: D, format = 'mediumDate'): string` | — |
|
|
89
|
+
| `luHumanizeDate` | `LuHumanizeDatePipe` | `(value: Date \| string \| number, allowedUnits?: readonly LuRelativeTimeFormatUnit[]): Observable<string>` | — |
|
|
90
|
+
|
|
91
|
+
### Services
|
|
92
|
+
|
|
93
|
+
#### LuHumanizeDateFormatter
|
|
94
|
+
|
|
95
|
+
- `format(relativeTime: LuRelativeTime): string`
|
|
96
|
+
|
|
97
|
+
### Modules dépréciés
|
|
98
|
+
|
|
99
|
+
- ⚠️ `LuDateAdapterModule` — use `LuDateAdapterPipe` instead
|
|
100
|
+
- ⚠️ `LuDateModule` — use `LuCalendarInputComponent, LuDatePickerComponent, LuDateInputDirective, LuDateAdapterPipe, LuDateSelectInputComponent` instead
|
|
101
|
+
- ⚠️ `LuDatePickerModule` — use `LuDatePickerComponent` instead
|
|
102
|
+
- ⚠️ `LuDateSelectInputModule` — use `LuDateSelectInputComponent` instead
|
|
103
|
+
|
|
104
|
+
## Related files
|
|
105
|
+
|
|
106
|
+
- 📝 [Code & implementation](./date.component.md)
|
|
107
|
+
|
|
108
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-filterspills-date-angular--docs)
|
|
109
|
+
|
|
110
|
+
## Changelog
|
|
111
|
+
|
|
112
|
+
> 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.
|
|
113
|
+
|
|
114
|
+
### 22.0.0
|
|
115
|
+
|
|
116
|
+
`LuCalendarInputComponent` :
|
|
117
|
+
~ `min` : unknown → D
|
|
118
|
+
~ `max` : unknown → D
|
|
119
|
+
~ `startOn` : défaut this._adapter.forgeToday() → ∅
|
|
120
|
+
`LuDateInputDirective` :
|
|
121
|
+
~ `min` : unknown → D
|
|
122
|
+
~ `max` : unknown → D
|
|
123
|
+
~ `placeholder` : défaut ∅ → ''
|
|
124
|
+
`LuDatePickerComponent` :
|
|
125
|
+
~ `min` : unknown → D
|
|
126
|
+
~ `max` : unknown → D
|
|
127
|
+
~ `startOn` : défaut this._adapter.forgeToday() → ∅
|
|
128
|
+
+ (output) `closeOutput` : void
|
|
129
|
+
+ (output) `openOutput` : void
|
|
130
|
+
+ (output) `hoveredOutput` : void
|
|
131
|
+
+ (output) `onSelectValueOutput` : void
|
|
132
|
+
- (output) `close`
|
|
133
|
+
- (output) `open`
|
|
134
|
+
- (output) `hovered`
|
|
135
|
+
- (output) `onSelectValue`
|
|
136
|
+
`LuDateSelectInputComponent` :
|
|
137
|
+
- `placeholder`
|
|
138
|
+
~ `min` : unknown → D
|
|
139
|
+
~ `max` : unknown → D
|
|
140
|
+
~ `hideClearer` : transform ∅ → luBooleanAttribute
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# dateinput — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-date2-dateinput--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-date-input`
|
|
8
|
+
|
|
9
|
+
DateInput (`lu-date-input`) est le composant qui vient remplacer et moderniser `lu-date-picker`, il est fait pour s'intégrer dans un `lu-form-field` comme tous les composants `lu-***-input`.
|
|
10
|
+
|
|
11
|
+
### Utilisation
|
|
12
|
+
|
|
13
|
+
Le composant s'utilise via la balise `lu-form-field` et supporte `ngModel` ainsi que `formControl` comme tous les composants d'input nouvelle génération au sein de lucca-front.
|
|
14
|
+
|
|
15
|
+
### Configuration
|
|
16
|
+
|
|
17
|
+
Il est possible d'utiliser `lu-date-input` de plusieurs façons différentes, via ses inputs, tout d'abord:
|
|
18
|
+
|
|
19
|
+
- `min` et `max`, servent à définir des dates minimales et maximales pour la sélection, **ils ne constituent pas un validateur**, ainsi, vous devrez spécficier un `Validator` à la main pour traiter une sélection hors limites comme erreur.
|
|
20
|
+
- `hideToday` permet de désactiver le style spécifique appliqué au jour en cours.
|
|
21
|
+
- `hasTodayButton` permet d'ajouter un bouton "aujourd'hui", automatiquement traduit via `Intl`, qui sélectionne la date d'aujourd'hui.
|
|
22
|
+
- `hideWeekend` permet de désactiver le style spécifiques des jours du weekend.
|
|
23
|
+
- `clearable` permet d'ajouter un bouton "clear" à la fin de l'input.
|
|
24
|
+
|
|
25
|
+
Le composant utilise uniquement des objets de type `Date`, le premier jour de la semaine ainsi que les jours du weekend sont récupérés via la locale Angular, car à ce jour, l'implémentation proposée dans `Intl` n'est pas présente dans Firefox.
|
|
26
|
+
|
|
27
|
+
### Configuration avancée
|
|
28
|
+
|
|
29
|
+
Dans le cas ou la donnée attendue doit être un mois ou une année, il est possible de passer par l'input `mode` et spécifier `day`, `month` ou `year` (ce qui correspond au type `CalendarMode`) en fonction de la donnée attendue.
|
|
30
|
+
Dans tous les cas, le date sera au début de la période sélectionnée, exemples:
|
|
31
|
+
|
|
32
|
+
- Si l’utilisateur sélectionne le 8/10/2024 en mode `day`, la date sélectionnée sera `Tue Oct 08 2024 00:00:00 GMT+0200 (heure d’été d’Europe centrale)`
|
|
33
|
+
- Si l’utilisateur sélectionne 10/2024 en mode `month`, la date sélectionnée sera `Tue Oct 01 2024 00:00:00 GMT+0200 (heure d’été d’Europe centrale)`
|
|
34
|
+
- Si l’utilisateur sélectionne 2024 en mode `year`, la date sélectionnée sera `Mon Jan 01 2024 00:00:00 GMT+0100 (heure normale d’Europe centrale)`
|
|
35
|
+
|
|
36
|
+
Il vous reste donc à appeler la méthode que vous souhaitez sur l'objet date pour récupérer ce qui compte dans votre contexte.
|
|
37
|
+
|
|
38
|
+
Il est également possible, via l'input `getCellInfo`, de mettre des classes ou états personnalisés sur des cellules spécifiques.
|
|
39
|
+
|
|
40
|
+
La signature de cette méthode est `(day: Date, mode: CalendarMode) => CellStatus`, voici un exemple:
|
|
41
|
+
|
|
42
|
+
Enfin, il est possible de spécifier des `ranges` via l'input du même nom. Chaque range (de type `DateRange`) sera alors affiché dans le calendrier, au niveau spécifié par sa variable `scope`, ou, à défaut, en vue `day` uniquement.
|
|
43
|
+
|
|
44
|
+
### Input
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import { LOCALE_ID } from '@angular/core';
|
|
48
|
+
import { FormsModule } from '@angular/forms';
|
|
49
|
+
import { CALENDAR_MODE, DATE2_CLEAR_BEHAVIOR, DATE_FORMAT_CONST, DateInputComponent } from '@lucca-front/ng/date2';
|
|
50
|
+
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
51
|
+
import { IconComponent } from '@lucca-front/ng/icon';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<lu-form-field label="Date input example" inlineMessage="Inline message example">
|
|
56
|
+
<lu-date-input
|
|
57
|
+
[(ngModel)]="selected"
|
|
58
|
+
[min]="min"
|
|
59
|
+
[max]="max"
|
|
60
|
+
[focusedDate]="focusedDate"
|
|
61
|
+
autocomplete="off"
|
|
62
|
+
format="date"
|
|
63
|
+
/>
|
|
64
|
+
</lu-form-field>
|
|
65
|
+
|
|
66
|
+
<pr-story-model-display>{{ selected }}</pr-story-model-display>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<lu-form-field label="Date input example" inlineMessage="Inline message example">
|
|
71
|
+
<lu-date-input
|
|
72
|
+
[(ngModel)]="selected"
|
|
73
|
+
[min]="min"
|
|
74
|
+
[max]="max"
|
|
75
|
+
[focusedDate]="focusedDate"
|
|
76
|
+
autocomplete="off"
|
|
77
|
+
mode="week"
|
|
78
|
+
format="date"
|
|
79
|
+
/>
|
|
80
|
+
</lu-form-field>
|
|
81
|
+
|
|
82
|
+
<pr-story-model-display>{{ selected }}</pr-story-model-display>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Input field
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
import { LOCALE_ID } from '@angular/core';
|
|
89
|
+
import { FormsModule } from '@angular/forms';
|
|
90
|
+
import { CALENDAR_MODE, DATE2_CLEAR_BEHAVIOR, DateInputComponent } from '@lucca-front/ng/date2';
|
|
91
|
+
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
```html
|
|
95
|
+
<lu-form-field>
|
|
96
|
+
<lu-date-input [(ngModel)]="selected" [min]="min" [max]="max" autocomplete="off" />
|
|
97
|
+
</lu-form-field>
|
|
98
|
+
<pr-story-model-display>{{ selected }}</pr-story-model-display>
|
|
99
|
+
```
|