@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,75 @@
|
|
|
1
|
+
# fancybox
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { FancyBoxComponent } from '@lucca-front/ng/fancy-box';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-fancy-box backgroundLeft="https://cdn.lucca.fr/transverse/prisme/visuals/fancy-box/background-left-plant.svg" backgroundRight="https://cdn.lucca.fr/transverse/prisme/visuals/fancy-box/background-right-candies.svg" foreground="https://cdn.lucca.fr/transverse/prisme/visuals/fancy-box/foreground-right-pizza.svg"> Content </lu-fancy-box>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### FancyBoxComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-fancy-box`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `foreground` | `foreground` | `string \| null` | `null` | — | — | URL de l’image au premier plan (200x160). |
|
|
26
|
+
| `backgroundLeft` | `backgroundLeft` | `string` | — | ✅ | — | URL de l’image en arrière plan à gauche (200x160). |
|
|
27
|
+
| `backgroundRight` | `backgroundRight` | `string` | — | ✅ | — | URL de l’image en arrière plan à droite (200x160). |
|
|
28
|
+
| `size` | `size` | `FancyBoxSize \| null` | `null` | — | — | Modifie la taille du composant. |
|
|
29
|
+
|
|
30
|
+
## Related files
|
|
31
|
+
|
|
32
|
+
- 📝 [Code & implementation](./fancybox.component.md)
|
|
33
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/fancybox/fancybox.design.md)
|
|
34
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/fancybox/fancybox.figma.md)
|
|
35
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-structure-fancybox-angular-basic--docs)
|
|
36
|
+
|
|
37
|
+
## Changelog
|
|
38
|
+
|
|
39
|
+
> 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.
|
|
40
|
+
|
|
41
|
+
### 22.0.0
|
|
42
|
+
|
|
43
|
+
~ `foreground` : string → string | null, défaut ∅ → null
|
|
44
|
+
|
|
45
|
+
### Notes de release (ZeroHeight)
|
|
46
|
+
|
|
47
|
+
#### 21.3.0
|
|
48
|
+
|
|
49
|
+
##### Added
|
|
50
|
+
|
|
51
|
+
- `FANCY_BOX_SIZE` constant and `FancyBoxSize` type are now publicly exported and used to type the `size` input.
|
|
52
|
+
|
|
53
|
+
#### 21.1.2
|
|
54
|
+
|
|
55
|
+
##### Fixed
|
|
56
|
+
|
|
57
|
+
- `mod-S` styles are now declared inside the `mods` layer, so they are no longer overridden by the component styles.
|
|
58
|
+
|
|
59
|
+
#### 21.0.0
|
|
60
|
+
|
|
61
|
+
##### Added
|
|
62
|
+
|
|
63
|
+
- `size` input with the `S` value (`mod-S`).
|
|
64
|
+
|
|
65
|
+
#### 19.2.6
|
|
66
|
+
|
|
67
|
+
##### Fixed
|
|
68
|
+
|
|
69
|
+
- Positioning of the fancy box decorations.
|
|
70
|
+
|
|
71
|
+
#### 19.1.0
|
|
72
|
+
|
|
73
|
+
##### Added
|
|
74
|
+
|
|
75
|
+
- `lu-fancy-box` component (`fancyBox`) with the `backgroundLeft`, `backgroundRight` and `foreground` inputs.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# fieldset — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fieldset-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Mots-clés : groupe, champs, section, formulaire
|
|
8
|
+
|
|
9
|
+
Component selector : `lu-fieldset`
|
|
10
|
+
|
|
11
|
+
### Basic
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { FormsModule } from '@angular/forms';
|
|
15
|
+
import { ButtonComponent } from '@lucca-front/ng/button';
|
|
16
|
+
import { FormComponent } from '@lucca-front/ng/form';
|
|
17
|
+
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
18
|
+
import { FIELDSET_SIZE, FieldsetComponent, TextInputComponent } from '@lucca-front/ng/forms';
|
|
19
|
+
import { GridColumnComponent, GridComponent } from '@lucca-front/ng/grid';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<form luForm>
|
|
24
|
+
<lu-fieldset heading="Title">
|
|
25
|
+
<lu-grid mode="form">
|
|
26
|
+
<lu-grid-column colspan="2">
|
|
27
|
+
<lu-form-field label="Label">
|
|
28
|
+
<lu-text-input type="text" ngModel [ngModelOptions]="{ standalone: true }" />
|
|
29
|
+
</lu-form-field>
|
|
30
|
+
</lu-grid-column>
|
|
31
|
+
<lu-grid-column colspan="2">
|
|
32
|
+
<lu-form-field label="Label">
|
|
33
|
+
<lu-text-input type="text" ngModel [ngModelOptions]="{ standalone: true }" />
|
|
34
|
+
</lu-form-field>
|
|
35
|
+
</lu-grid-column>
|
|
36
|
+
</lu-grid>
|
|
37
|
+
</lu-fieldset>
|
|
38
|
+
</form>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## HTML/CSS
|
|
42
|
+
|
|
43
|
+
Classe CSS : `.fieldset`
|
|
44
|
+
|
|
45
|
+
### Basic
|
|
46
|
+
|
|
47
|
+
```css
|
|
48
|
+
@forward '@lucca-front/scss/src/components/fieldset';
|
|
49
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
50
|
+
@forward '@lucca-front/scss/src/components/grid';
|
|
51
|
+
@forward '@lucca-front/scss/src/components/textField';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<fieldset class="fieldset" aria-labelledby="fieldsetTitleContent1">
|
|
56
|
+
<legend class="fieldset-title">
|
|
57
|
+
<span class="fieldset-title-content" id="fieldsetTitleContent1">
|
|
58
|
+
<span class="fieldset-title-content-text">Title</span>
|
|
59
|
+
</span>
|
|
60
|
+
</legend>
|
|
61
|
+
<div class="fieldset-content">
|
|
62
|
+
<div class="grid mod-form" style="--grid-colspan: 4">
|
|
63
|
+
<div class="grid-column" style="--grid-colspanAtMediaMinXXS: 2">
|
|
64
|
+
<div class="form-field">
|
|
65
|
+
<label class="formLabel" id="IDlabel1" for="ID1">Label</label>
|
|
66
|
+
<div class="textField">
|
|
67
|
+
<div class="textField-input">
|
|
68
|
+
<input type="text" id="ID1" class="textField-input-value" aria-labelledby="IDlabel1" />
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="grid-column" style="--grid-colspanAtMediaMinXXS: 2">
|
|
74
|
+
<div class="form-field">
|
|
75
|
+
<label class="formLabel" id="IDlabel2" for="ID2">Label</label>
|
|
76
|
+
<div class="textField">
|
|
77
|
+
<div class="textField-input">
|
|
78
|
+
<input type="text" id="ID2" class="textField-input-value" aria-labelledby="IDlabel2" />
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</fieldset>
|
|
86
|
+
```
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# fieldset
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { FieldsetComponent } from '@lucca-front/ng/forms';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<form luForm> <lu-fieldset heading="Title"> <lu-grid mode="form"> <lu-grid-column colspan="2"> <lu-form-field label="Label"> <lu-text-input type="text" ngModel [ngModelOptions]="{ standalone: true }" /> </lu-form-field> </lu-grid-column> <lu-grid-column colspan="2"> <lu-form-field label="Label"> <lu-text-input type="text" ngModel [ngModelOptions]="{ standalone: true }" /> </lu-form-field> </lu-grid-column> </lu-grid> </lu-fieldset>
|
|
13
|
+
</form>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API Reference
|
|
17
|
+
|
|
18
|
+
### FieldsetComponent (component)
|
|
19
|
+
|
|
20
|
+
**Selector:** `lu-fieldset`
|
|
21
|
+
|
|
22
|
+
#### Inputs
|
|
23
|
+
|
|
24
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
25
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
26
|
+
| `heading` | `heading` | `PortalContent \| null` | `null` | — | — | Titre du fieldset. [PortalContent] |
|
|
27
|
+
| `helper` | `helper` | `PortalContent \| null` | `null` | — | — | Ajoute un sous-titre au fieldset. [PortalContent] |
|
|
28
|
+
| `action` | `action` | `PortalContent \| null` | `null` | — | — | — |
|
|
29
|
+
| `size` | `size` | `FieldsetSize \| null` | `null` | — | — | Modifie la taille du fieldset. |
|
|
30
|
+
| `horizontal` | `horizontal` | `boolean` | `false` | — | `luBooleanAttribute` | Place le titre du fieldset à gauche des champs. |
|
|
31
|
+
| `expandable` | `expandable` | `boolean` | `false` | — | `luBooleanAttribute` | Permet au fieldset de se replier. |
|
|
32
|
+
| `hiddenLegend` | `hiddenLegend` | `boolean` | `false` | — | `luBooleanAttribute` | Masque la légende en la conservant dans le DOM pour les lecteurs d’écrans. |
|
|
33
|
+
|
|
34
|
+
#### Models (two-way binding)
|
|
35
|
+
|
|
36
|
+
| Property | Type | Required | Notes |
|
|
37
|
+
|----------|------|----------|-------|
|
|
38
|
+
| `expanded` | `unknown` | — | — |
|
|
39
|
+
|
|
40
|
+
## Related files
|
|
41
|
+
|
|
42
|
+
- 📝 [Code & implementation](./fieldset.component.md)
|
|
43
|
+
|
|
44
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/fieldset/fieldset.figma.md)
|
|
45
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fieldset-angular-basic--docs)
|
|
46
|
+
|
|
47
|
+
## Changelog
|
|
48
|
+
|
|
49
|
+
> 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.
|
|
50
|
+
|
|
51
|
+
### 22.0.0
|
|
52
|
+
|
|
53
|
+
~ `horizontal` : transform booleanAttribute → luBooleanAttribute
|
|
54
|
+
~ `expandable` : transform booleanAttribute → luBooleanAttribute
|
|
55
|
+
~ `hiddenLegend` : transform booleanAttribute → luBooleanAttribute
|
|
56
|
+
|
|
57
|
+
### Notes de release (ZeroHeight)
|
|
58
|
+
|
|
59
|
+
#### 21.3.0
|
|
60
|
+
|
|
61
|
+
##### Added
|
|
62
|
+
|
|
63
|
+
- `hiddenLegend` input to visually hide the fieldset legend while keeping it accessible.
|
|
64
|
+
|
|
65
|
+
##### Changed
|
|
66
|
+
|
|
67
|
+
- Default content max inline size is now `50rem` and inherits from the surrounding form (`--components-form-maxWidth`) instead of being fixed at `40rem`, with adjusted icon positioning.
|
|
68
|
+
|
|
69
|
+
##### Fixed
|
|
70
|
+
|
|
71
|
+
- Removed a spacing conflict in the fieldset modifiers.
|
|
72
|
+
|
|
73
|
+
#### 21.2.3
|
|
74
|
+
|
|
75
|
+
##### Fixed
|
|
76
|
+
|
|
77
|
+
- Expandable header toggle now renders as a ghost button for a consistent UI.
|
|
78
|
+
|
|
79
|
+
#### 21.2.2
|
|
80
|
+
|
|
81
|
+
##### Fixed
|
|
82
|
+
|
|
83
|
+
- Corrected the expandable chevron icon positioning.
|
|
84
|
+
|
|
85
|
+
#### 21.1.0
|
|
86
|
+
|
|
87
|
+
##### Fixed
|
|
88
|
+
|
|
89
|
+
- Improved accessibility of the header action and its responsive layout.
|
|
90
|
+
|
|
91
|
+
#### 21.0.3
|
|
92
|
+
|
|
93
|
+
##### Fixed
|
|
94
|
+
|
|
95
|
+
- Legend is now hidden when the heading is empty.
|
|
96
|
+
|
|
97
|
+
#### 21.0.0
|
|
98
|
+
|
|
99
|
+
##### Added
|
|
100
|
+
|
|
101
|
+
- `action` input to display a portal-based action in the fieldset header.
|
|
102
|
+
|
|
103
|
+
#### 20.1.0
|
|
104
|
+
|
|
105
|
+
##### Added
|
|
106
|
+
|
|
107
|
+
- `lu-fieldset` component (Angular wrapper) exposing the `heading`, `helper`, `size`, `horizontal` and `expandable` inputs and the `expanded` model.
|
|
108
|
+
|
|
109
|
+
#### 19.1.0
|
|
110
|
+
|
|
111
|
+
##### Changed
|
|
112
|
+
|
|
113
|
+
- Updated the icon used by the expandable variant.
|
|
114
|
+
|
|
115
|
+
#### 18.2.4
|
|
116
|
+
|
|
117
|
+
##### Added
|
|
118
|
+
|
|
119
|
+
- `mod-S` modifier providing a small-size variant for the fieldset.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# filedropzone — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-file-filedropzone-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
### Basic
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
11
|
+
import { FileDropzoneComponent } from '@lucca-front/ng/file-upload';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<lu-file-dropzone />
|
|
16
|
+
```
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# filedropzone
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { FileDropzoneComponent } from '@lucca-front/ng/file-upload';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-file-dropzone />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### FileDropzoneComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-file-dropzone`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
26
|
+
| `accept` | `accept` | `Array<{
|
|
27
|
+
format: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
}>` | `[]` | — | — | — |
|
|
30
|
+
| `structure` | `structure` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
31
|
+
| `fileMaxSize` | `fileMaxSize` | `unknown` | `80 * MEGA_BYTE` | — | `luNumberAttribute` | — |
|
|
32
|
+
| `size` | `size` | `FileUploadSize \| null` | `null` | — | — | — |
|
|
33
|
+
| `password` | `password` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
34
|
+
| `illustration` | `illustration` | `/** @deprecated use 'invoice' instead */
|
|
35
|
+
'paper' \| 'picture' \| 'invoice'` | `'invoice'` | — | — | — |
|
|
36
|
+
| `required` | `required` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
37
|
+
| `buttonFilled` | `buttonFilled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
38
|
+
|
|
39
|
+
#### Outputs
|
|
40
|
+
|
|
41
|
+
| Property | Binding name | Type | Notes |
|
|
42
|
+
|----------|-------------|------|-------|
|
|
43
|
+
| `filePicked` | `filePicked` | `File` | — |
|
|
44
|
+
|
|
45
|
+
## Related files
|
|
46
|
+
|
|
47
|
+
- 📝 [Code & implementation](./filedropzone.component.md)
|
|
48
|
+
|
|
49
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-file-filedropzone-angular-basic--docs)
|
|
50
|
+
|
|
51
|
+
## Changelog
|
|
52
|
+
|
|
53
|
+
> 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.
|
|
54
|
+
|
|
55
|
+
### 22.0.0
|
|
56
|
+
|
|
57
|
+
~ `structure` : transform booleanAttribute → luBooleanAttribute
|
|
58
|
+
~ `fileMaxSize` : number → unknown, transform ∅ → luNumberAttribute
|
|
59
|
+
~ `password` : transform booleanAttribute → luBooleanAttribute
|
|
60
|
+
~ `required` : transform booleanAttribute → luBooleanAttribute
|
|
61
|
+
~ `buttonFilled` : transform booleanAttribute → luBooleanAttribute
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# fileentry — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-file-fileentry-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Les stories "Single file" et "Multiple files" simulent un usage avec Lucca Files. Consultez la section Mise en place en bas de page pour vous aider lors de l'implémentation.
|
|
8
|
+
|
|
9
|
+
## Mise en place
|
|
10
|
+
|
|
11
|
+
FileUpload is a component designed to manage file uploads. It aims to standardize both the technical and visual
|
|
12
|
+
approaches to file uploads.
|
|
13
|
+
|
|
14
|
+
### Utilisation
|
|
15
|
+
|
|
16
|
+
For the purely visual and interactive part, you'll need `lu-single-file-upload` if you only want to manage
|
|
17
|
+
one file at a time, or `lu-multiple-file-upload` if you want to manage multiple files at once.
|
|
18
|
+
|
|
19
|
+
Both of these components come from `@lucca-front/ng/file-upload`.
|
|
20
|
+
|
|
21
|
+
In both components, simply connect to the `filePicked` event to retrieve the files sent by the user, these are of
|
|
22
|
+
the native Javascript File type, and each file will emit an event. In the case of multiple selections, an event
|
|
23
|
+
will be emitted per file.
|
|
24
|
+
|
|
25
|
+
Then, you'll just need to manage the upload of these files via LuccaFiles for most cases.
|
|
26
|
+
|
|
27
|
+
Once the files are sent, the display management changes depending on the approach, single or multi.
|
|
28
|
+
|
|
29
|
+
### Details
|
|
30
|
+
|
|
31
|
+
In both cases, `fileUploadFeature` is simply the SignalStore provided by `@lucca/cdk` for interactions with LuccaFiles,
|
|
32
|
+
`luFileEntry` is a pipe that transforms a `FileUpload` into a `LuccaFileEntry`.
|
|
33
|
+
|
|
34
|
+
It's also possible to specify a list of accepted files, solely for UX purposes, as the file type is not enforced by the
|
|
35
|
+
browser in any way, this list is an `Array<{ format: string; name?: string; }>`, `name` being used for display only.
|
|
36
|
+
|
|
37
|
+
### Basic
|
|
38
|
+
|
|
39
|
+
Component selector : `lu-file-entry`
|
|
40
|
+
|
|
41
|
+
```js
|
|
42
|
+
import { FileEntry, FileEntryComponent } from '@lucca-front/ng/file-upload';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<lu-file-entry
|
|
47
|
+
(deleteFile)="deleteFile()"
|
|
48
|
+
[entry]="{
|
|
49
|
+
name: 'dummyimage.png',
|
|
50
|
+
size: 28420,
|
|
51
|
+
type: 'image/png',
|
|
52
|
+
}"
|
|
53
|
+
withFileSize
|
|
54
|
+
withFileType
|
|
55
|
+
previewUrl="https://dummyimage.com/500"
|
|
56
|
+
inlineMessageError="Virus détecté dans le fichier."
|
|
57
|
+
/>
|
|
58
|
+
```
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# fileentry
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { FileDropzoneComponent, FileEntryComponent, FileEntryWrapperComponent, MultiFileUploadComponent, SingleFileUploadComponent } from '@lucca-front/ng/file-upload';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-file-entry (deleteFile)="deleteFile()" [entry]="{ name: 'dummyimage.png', size: 28420, type: 'image/png', }" withFileSize withFileType previewUrl="https://dummyimage.com/500" inlineMessageError="Virus détecté dans le fichier." />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### FileDropzoneComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-file-dropzone`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
26
|
+
| `accept` | `accept` | `Array<{
|
|
27
|
+
format: string;
|
|
28
|
+
name?: string;
|
|
29
|
+
}>` | `[]` | — | — | — |
|
|
30
|
+
| `structure` | `structure` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
31
|
+
| `fileMaxSize` | `fileMaxSize` | `unknown` | `80 * MEGA_BYTE` | — | `luNumberAttribute` | — |
|
|
32
|
+
| `size` | `size` | `FileUploadSize \| null` | `null` | — | — | Modifie la taille du composant. |
|
|
33
|
+
| `password` | `password` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
34
|
+
| `illustration` | `illustration` | `/** @deprecated use 'invoice' instead */
|
|
35
|
+
'paper' \| 'picture' \| 'invoice'` | `'invoice'` | — | — | — |
|
|
36
|
+
| `required` | `required` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
37
|
+
| `buttonFilled` | `buttonFilled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
38
|
+
|
|
39
|
+
#### Outputs
|
|
40
|
+
|
|
41
|
+
| Property | Binding name | Type | Notes |
|
|
42
|
+
|----------|-------------|------|-------|
|
|
43
|
+
| `filePicked` | `filePicked` | `File` | — |
|
|
44
|
+
|
|
45
|
+
### FileEntryComponent (component)
|
|
46
|
+
|
|
47
|
+
**Selector:** `lu-file-entry`
|
|
48
|
+
|
|
49
|
+
#### Inputs
|
|
50
|
+
|
|
51
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
52
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
53
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
54
|
+
| `state` | `state` | `'success' \| 'loading' \| 'error' \| 'default'` | `'default'` | — | — | Modifie l’état du composant. |
|
|
55
|
+
| `displayFileName` | `displayFileName` | `boolean` | `false` | — | `luBooleanAttribute` | Affiche le nom du fichier sous l’image en vue media. |
|
|
56
|
+
| `structure` | `structure` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
57
|
+
| `inlineMessageError` | `inlineMessageError` | `string \| null` | `null` | — | — | — |
|
|
58
|
+
| `entry` | `entry` | `FileEntry` | — | ✅ | — | — |
|
|
59
|
+
| `size` | `size` | `FileEntrySize \| null` | `null` | — | — | Modifie la taille du composant. |
|
|
60
|
+
| `iconOverride` | `iconOverride` | `string` | `''` | — | — | Remplace l’icône de format de fichier. |
|
|
61
|
+
| `downloadURL` | `downloadURL` | `string` | `''` | — | — | URL de téléchargement du fichier. |
|
|
62
|
+
| `openInNewTab` | `openInNewTab` | `boolean` | `false` | — | `luBooleanAttribute` | Ouvre le fichier dans un nouvel onglet au lieu de le télécharger. Peut varier selon les navigateurs ou les réglages util… |
|
|
63
|
+
| `password` | `password` | `string` | `''` | — | — | — |
|
|
64
|
+
| `media` | `media` | `boolean` | `false` | — | `luBooleanAttribute` | Affiche le fichier avec une mise en forme adaptée aux visuels. |
|
|
65
|
+
| `previewUrl` | `previewUrl` | `string` | `''` | — | — | URL de prévisualisation de l’image uploadée. |
|
|
66
|
+
|
|
67
|
+
#### Outputs
|
|
68
|
+
|
|
69
|
+
| Property | Binding name | Type | Notes |
|
|
70
|
+
|----------|-------------|------|-------|
|
|
71
|
+
| `passwordChange` | `passwordChange` | `void` | — |
|
|
72
|
+
| `deleteFile` | `deleteFile` | `void` | — |
|
|
73
|
+
|
|
74
|
+
### FileEntryWrapperComponent (component)
|
|
75
|
+
|
|
76
|
+
**Selector:** `lu-file-entry-wrapper`
|
|
77
|
+
|
|
78
|
+
### MultiFileUploadComponent (component)
|
|
79
|
+
|
|
80
|
+
**Selector:** `lu-multi-file-upload`
|
|
81
|
+
|
|
82
|
+
#### Inputs
|
|
83
|
+
|
|
84
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
85
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
86
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
87
|
+
| `accept` | `accept` | `Array<{
|
|
88
|
+
format: string;
|
|
89
|
+
name?: string;
|
|
90
|
+
}>` | `[]` | — | — | — |
|
|
91
|
+
| `structure` | `structure` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
92
|
+
| `fileMaxSize` | `fileMaxSize` | `unknown` | `80 * MEGA_BYTE` | — | `luNumberAttribute` | — |
|
|
93
|
+
| `size` | `size` | `FileUploadSize \| null` | `null` | — | — | Modifie la taille du composant. |
|
|
94
|
+
| `password` | `password` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
95
|
+
| `illustration` | `illustration` | `/** @deprecated use 'invoice' instead */
|
|
96
|
+
'paper' \| 'picture' \| 'invoice'` | `'invoice'` | — | — | — |
|
|
97
|
+
| `required` | `required` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
98
|
+
| `buttonFilled` | `buttonFilled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
99
|
+
|
|
100
|
+
#### Outputs
|
|
101
|
+
|
|
102
|
+
| Property | Binding name | Type | Notes |
|
|
103
|
+
|----------|-------------|------|-------|
|
|
104
|
+
| `filePicked` | `filePicked` | `File` | — |
|
|
105
|
+
|
|
106
|
+
### SingleFileUploadComponent (component)
|
|
107
|
+
|
|
108
|
+
**Selector:** `lu-single-file-upload`
|
|
109
|
+
|
|
110
|
+
#### Inputs
|
|
111
|
+
|
|
112
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
113
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
114
|
+
| `intl` | `intl` | `unknown` | — | — | — | — |
|
|
115
|
+
| `accept` | `accept` | `Array<{
|
|
116
|
+
format: string;
|
|
117
|
+
name?: string;
|
|
118
|
+
}>` | `[]` | — | — | — |
|
|
119
|
+
| `structure` | `structure` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
120
|
+
| `fileMaxSize` | `fileMaxSize` | `unknown` | `80 * MEGA_BYTE` | — | `luNumberAttribute` | — |
|
|
121
|
+
| `size` | `size` | `FileUploadSize \| null` | `null` | — | — | Modifie la taille du composant. |
|
|
122
|
+
| `password` | `password` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
123
|
+
| `illustration` | `illustration` | `/** @deprecated use 'invoice' instead */
|
|
124
|
+
'paper' \| 'picture' \| 'invoice'` | `'invoice'` | — | — | — |
|
|
125
|
+
| `required` | `required` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
126
|
+
| `buttonFilled` | `buttonFilled` | `boolean` | `false` | — | `luBooleanAttribute` | — |
|
|
127
|
+
| `entry` | `entry` | `FileEntry \| null` | `null` | — | — | — |
|
|
128
|
+
| `state` | `state` | `'loading' \| 'success' \| 'error' \| 'default'` | `'default'` | — | — | Modifie l’état du composant. |
|
|
129
|
+
| `inlineMessageError` | `inlineMessageError` | `string \| null` | `null` | — | — | — |
|
|
130
|
+
| `previewUrl` | `previewUrl` | `string \| null` | `null` | — | — | URL de prévisualisation de l’image uploadée. |
|
|
131
|
+
| `displayFileName` | `displayFileName` | `boolean` | `false` | — | `luBooleanAttribute` | Affiche le nom du fichier sous l’image en vue media. |
|
|
132
|
+
|
|
133
|
+
#### Outputs
|
|
134
|
+
|
|
135
|
+
| Property | Binding name | Type | Notes |
|
|
136
|
+
|----------|-------------|------|-------|
|
|
137
|
+
| `filePicked` | `filePicked` | `File` | — |
|
|
138
|
+
| `deleteFile` | `deleteFile` | `void` | — |
|
|
139
|
+
|
|
140
|
+
## Related files
|
|
141
|
+
|
|
142
|
+
- 📝 [Code & implementation](./fileentry.component.md)
|
|
143
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/fileentry/fileentry.design.md)
|
|
144
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/fileentry/fileentry.figma.md)
|
|
145
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-file-fileentry-angular-basic--docs)
|
|
146
|
+
|
|
147
|
+
## Changelog
|
|
148
|
+
|
|
149
|
+
> 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.
|
|
150
|
+
|
|
151
|
+
### 22.0.0
|
|
152
|
+
|
|
153
|
+
+ component `FileEntryWrapperComponent` (lu-file-entry-wrapper)
|
|
154
|
+
`FileDropzoneComponent` :
|
|
155
|
+
~ `structure` : transform booleanAttribute → luBooleanAttribute
|
|
156
|
+
~ `fileMaxSize` : number → unknown, transform ∅ → luNumberAttribute
|
|
157
|
+
~ `password` : transform booleanAttribute → luBooleanAttribute
|
|
158
|
+
~ `required` : transform booleanAttribute → luBooleanAttribute
|
|
159
|
+
~ `buttonFilled` : transform booleanAttribute → luBooleanAttribute
|
|
160
|
+
`FileEntryComponent` :
|
|
161
|
+
+ `structure` : boolean
|
|
162
|
+
~ `displayFileName` : transform booleanAttribute → luBooleanAttribute
|
|
163
|
+
~ `openInNewTab` : transform booleanAttribute → luBooleanAttribute
|
|
164
|
+
~ `media` : transform booleanAttribute → luBooleanAttribute
|
|
165
|
+
`MultiFileUploadComponent` :
|
|
166
|
+
~ `structure` : transform booleanAttribute → luBooleanAttribute
|
|
167
|
+
~ `fileMaxSize` : number → unknown, transform ∅ → luNumberAttribute
|
|
168
|
+
~ `password` : transform booleanAttribute → luBooleanAttribute
|
|
169
|
+
~ `required` : transform booleanAttribute → luBooleanAttribute
|
|
170
|
+
~ `buttonFilled` : transform booleanAttribute → luBooleanAttribute
|
|
171
|
+
`SingleFileUploadComponent` :
|
|
172
|
+
~ `structure` : transform booleanAttribute → luBooleanAttribute
|
|
173
|
+
~ `fileMaxSize` : number → unknown, transform ∅ → luNumberAttribute
|
|
174
|
+
~ `password` : transform booleanAttribute → luBooleanAttribute
|
|
175
|
+
~ `required` : transform booleanAttribute → luBooleanAttribute
|
|
176
|
+
~ `buttonFilled` : transform booleanAttribute → luBooleanAttribute
|
|
177
|
+
~ `displayFileName` : transform booleanAttribute → luBooleanAttribute
|
|
178
|
+
|
|
179
|
+
### Notes de release (ZeroHeight)
|
|
180
|
+
|
|
181
|
+
#### 21.3.1
|
|
182
|
+
|
|
183
|
+
##### Added
|
|
184
|
+
|
|
185
|
+
- `openInNewTab` input on `lu-file-entry` to open the `downloadURL` in a new tab.
|
|
186
|
+
|
|
187
|
+
##### Fixed
|
|
188
|
+
|
|
189
|
+
- Icon preview of `lu-file-entry`.
|
|
190
|
+
|
|
191
|
+
#### 21.3.0
|
|
192
|
+
|
|
193
|
+
##### Added
|
|
194
|
+
|
|
195
|
+
- `FILE_ENTRY_STATE`, `FILE_ENTRY_SIZE`, `FILE_UPLOAD_STATE` and `FILE_UPLOAD_SIZE` constants, together with their matching types, are now publicly exported and used to type the `state` and `size` inputs.
|
|
196
|
+
|
|
197
|
+
#### 21.2.2
|
|
198
|
+
|
|
199
|
+
##### Fixed
|
|
200
|
+
|
|
201
|
+
- File size is displayed even when it equals `0`.
|
|
202
|
+
|
|
203
|
+
#### 21.2.0
|
|
204
|
+
|
|
205
|
+
##### Added
|
|
206
|
+
|
|
207
|
+
- Content slot to display a tag next to the file.
|
|
208
|
+
- `media` and `size` of a `lu-file-entry` can now be left undefined.
|
|
209
|
+
|
|
210
|
+
#### 21.1.4
|
|
211
|
+
|
|
212
|
+
##### Fixed
|
|
213
|
+
|
|
214
|
+
- Divider rendering between file entries.
|
|
215
|
+
|
|
216
|
+
#### 21.1.2
|
|
217
|
+
|
|
218
|
+
##### Added
|
|
219
|
+
|
|
220
|
+
- `buttonFilled` input to render the upload button with the filled style instead of the outlined one.
|
|
221
|
+
|
|
222
|
+
#### 21.1.0
|
|
223
|
+
|
|
224
|
+
##### Added
|
|
225
|
+
|
|
226
|
+
- `formatFileSize` function is now publicly exported.
|
|
227
|
+
|
|
228
|
+
##### Changed
|
|
229
|
+
|
|
230
|
+
- `intl` input now accepts partial overrides that are merged with the default translations.
|
|
231
|
+
|
|
232
|
+
##### Fixed
|
|
233
|
+
|
|
234
|
+
- The displayed file type now matches the actual file.
|
|
235
|
+
|
|
236
|
+
#### 20.3.1
|
|
237
|
+
|
|
238
|
+
##### Fixed
|
|
239
|
+
|
|
240
|
+
- Typing of the `state` input.
|
|
241
|
+
|
|
242
|
+
#### 19.3.0
|
|
243
|
+
|
|
244
|
+
##### Added
|
|
245
|
+
|
|
246
|
+
- `lu-single-file-upload`, `lu-multi-file-upload`, `lu-file-dropzone` and `lu-file-entry` components, with the `accept`, `fileMaxSize`, `required`, `state`, `size`, `illustration`, `iconOverride`, `displayFileName`, `downloadURL`, `previewUrl`, `password`, `inlineMessageError` and `intl` inputs, plus the `filePicked`, `deleteFile` and `passwordChange` outputs.
|