@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,84 @@
|
|
|
1
|
+
# numericbadge
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { NumericBadgeComponent } from '@lucca-front/ng/numeric-badge';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### NumericBadgeComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selectors:** `lu-numeric-badge`, `pr-numeric-badge`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `value` | `value` | `number \| string` | — | ✅ | — | Valeur affichée par le composant. Doit obligatoirement contenir une valeur numérique (ex: 7, "3/5", "999+", etc.) |
|
|
20
|
+
| `size` | `size` | `'XS' \| 'S' \| 'M'` | — | — | — | Modifie la taille du composant. |
|
|
21
|
+
| `palette` | `palette` | `'success' \| 'warning' \| 'error' \| 'product' \| 'neutral' \| 'none' \| 'brand'` | `'none'` | — | — | Applique une palette de couleurs au composant. |
|
|
22
|
+
| `loading` | `loading` | `boolean` | `false` | — | `booleanAttribute` | [v19.1] Applique l’état de chargement. |
|
|
23
|
+
| `maxValue` | `maxValue` | `number` | `999` | — | `numberAttribute` | [v19.2] Valeur maximale affichée au format "999+". |
|
|
24
|
+
| `disableTooltip` | `disableTooltip` | `boolean` | `false` | — | `booleanAttribute` | Empêche le déclenchement d’une tooltip si la valeur est supérieure à maxValue. |
|
|
25
|
+
|
|
26
|
+
## Related files
|
|
27
|
+
|
|
28
|
+
- 📝 [Code & implementation](./numericbadge.component.md)
|
|
29
|
+
|
|
30
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/numericbadge/numericbadge.figma.md)
|
|
31
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-numericbadge-angular-basic--docs)
|
|
32
|
+
|
|
33
|
+
## Changelog
|
|
34
|
+
|
|
35
|
+
> 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.
|
|
36
|
+
|
|
37
|
+
### 22.0.0
|
|
38
|
+
|
|
39
|
+
+ selector `pr-numeric-badge`
|
|
40
|
+
~ `palette` : Palette → 'success' | 'warning' | 'error' | 'product' | 'neutral' | 'none' | 'brand'
|
|
41
|
+
~ `maxValue` : transform ∅ → numberAttribute
|
|
42
|
+
|
|
43
|
+
### Notes de release (ZeroHeight)
|
|
44
|
+
|
|
45
|
+
#### 21.3.0
|
|
46
|
+
|
|
47
|
+
##### Removed
|
|
48
|
+
|
|
49
|
+
- `--components-numericBadge-fontSize` and `--components-numericBadge-lineHeight` deprecated CSS custom properties have been removed.
|
|
50
|
+
|
|
51
|
+
#### 20.1.1
|
|
52
|
+
|
|
53
|
+
##### Fixed
|
|
54
|
+
|
|
55
|
+
- `loading` state CSS specificity so the spinner is displayed reliably.
|
|
56
|
+
|
|
57
|
+
#### 20.1.0
|
|
58
|
+
|
|
59
|
+
##### Fixed
|
|
60
|
+
|
|
61
|
+
- Empty badges no longer expose their placeholder whitespace to screen readers.
|
|
62
|
+
|
|
63
|
+
#### 19.2.0
|
|
64
|
+
|
|
65
|
+
##### Added
|
|
66
|
+
|
|
67
|
+
- `maxValue` input to cap the displayed value, rendering `{maxValue}+` and revealing the full value in a tooltip.
|
|
68
|
+
- `disableTooltip` input to prevent the full value from being shown in a tooltip.
|
|
69
|
+
|
|
70
|
+
##### Fixed
|
|
71
|
+
|
|
72
|
+
- Inherited text color now uses the correct palette shade.
|
|
73
|
+
|
|
74
|
+
#### 19.1.0
|
|
75
|
+
|
|
76
|
+
##### Added
|
|
77
|
+
|
|
78
|
+
- `loading` input to display a spinner in place of the value.
|
|
79
|
+
|
|
80
|
+
#### 18.1.4
|
|
81
|
+
|
|
82
|
+
##### Fixed
|
|
83
|
+
|
|
84
|
+
- The badge value no longer wraps onto multiple lines.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# onboarding-empty-state
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { EmptyStatePageComponent } from '@lucca-front/ng/empty-state';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### EmptyStatePageComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-empty-state-page`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `icon` | `icon` | `string \| null` | `null` | — | — | — |
|
|
20
|
+
| `topRightBackground` | `topRightBackground` | `string \| null` | — | — | — | — |
|
|
21
|
+
| `topRightForeground` | `topRightForeground` | `string \| null` | — | — | — | — |
|
|
22
|
+
| `bottomLeftBackground` | `bottomLeftBackground` | `string \| null` | — | — | — | — |
|
|
23
|
+
| `bottomLeftForeground` | `bottomLeftForeground` | `string \| null` | — | — | — | — |
|
|
24
|
+
| `contentBackgroundColor` | `contentBackgroundColor` | `string` | `'var(--pr-t-elevation-surface-default)'` | — | — | — |
|
|
25
|
+
| `slotTop` | `slotTop` | `PortalContent` | — | — | — | — |
|
|
26
|
+
| `illustration` | `illustration` | `PortalContent` | — | — | — | — |
|
|
27
|
+
| `heading` | `heading` | `string` | — | — | — | — |
|
|
28
|
+
| `description` | `description` | `PortalContent` | — | — | — | — |
|
|
29
|
+
| `hx` | `hx` | `number` | `1` | — | `luNumberAttribute` | — |
|
|
30
|
+
| `hxStyle` | `hxStyle` | `number` | `1` | — | `luNumberAttribute` | — |
|
|
31
|
+
|
|
32
|
+
## Related files
|
|
33
|
+
|
|
34
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/onboarding-empty-state/onboarding-empty-state.design.md)
|
|
35
|
+
|
|
36
|
+
## Changelog
|
|
37
|
+
|
|
38
|
+
> Diff structurel de l'API (selectors, inputs, outputs, models) entre versions stables, depuis `v21.4.2` jusqu'à `v22.0.0`. Les versions sans changement d'API sont omises.
|
|
39
|
+
|
|
40
|
+
### 22.0.0
|
|
41
|
+
|
|
42
|
+
~ `topRightBackground` : string → string | null, défaut 'https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-top-right-01.svg' → ∅
|
|
43
|
+
~ `topRightForeground` : string → string | null, défaut 'https://cdn.lucca.fr/lucca-front/assets/empty-states/generic/coffee-01.svg' → ∅
|
|
44
|
+
~ `bottomLeftBackground` : string → string | null, défaut 'https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/bubbles-bottom-left-01.svg' → ∅
|
|
45
|
+
~ `bottomLeftForeground` : string → string | null, défaut 'https://cdn.lucca.fr/lucca-front/assets/empty-states/poplee/core-hr-01.svg' → ∅
|
|
46
|
+
~ `hx` : transform numberAttribute → luNumberAttribute
|
|
47
|
+
~ `hxStyle` : transform numberAttribute → luNumberAttribute
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
# pageheader — Code & Implementation
|
|
2
|
+
|
|
3
|
+
📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-structure-pageheader-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-page-header`
|
|
8
|
+
|
|
9
|
+
### Header basic
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { JsonPipe } from '@angular/common';
|
|
13
|
+
import { provideHttpClient } from '@angular/common/http';
|
|
14
|
+
import { FormsModule } from '@angular/forms';
|
|
15
|
+
import { provideRouter } from '@angular/router';
|
|
16
|
+
import { BreadcrumbsComponent, BreadcrumbsLinkDirective } from '@lucca-front/ng/breadcrumbs';
|
|
17
|
+
import { ButtonComponent } from '@lucca-front/ng/button';
|
|
18
|
+
import { provideCoreSelectCurrentUserId } from '@lucca-front/ng/core-select/user';
|
|
19
|
+
import { FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
20
|
+
import { TextInputComponent } from '@lucca-front/ng/forms';
|
|
21
|
+
import { HorizontalNavigationComponent, HorizontalNavigationLinkDirective } from '@lucca-front/ng/horizontal-navigation';
|
|
22
|
+
import { IconComponent } from '@lucca-front/ng/icon';
|
|
23
|
+
import { ImpersonationComponent } from '@lucca-front/ng/impersonation';
|
|
24
|
+
import { LinkComponent } from '@lucca-front/ng/link';
|
|
25
|
+
import { PageHeaderComponent } from '@lucca-front/ng/page-header';
|
|
26
|
+
import { LuTooltipModule } from '@lucca-front/ng/tooltip';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<lu-page-header
|
|
31
|
+
label="H1. Page title"
|
|
32
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet justo. Nullam condimentum nulla et neque ultricies bibendum."
|
|
33
|
+
/>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## HTML/CSS
|
|
37
|
+
|
|
38
|
+
Classe CSS : `.pageHeader`
|
|
39
|
+
|
|
40
|
+
Les exemples ci-dessous sont affichés dans leur vue compact par défaut compte tenu de l'espace disponible :
|
|
41
|
+
|
|
42
|
+
### Header back
|
|
43
|
+
|
|
44
|
+
```css
|
|
45
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
46
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<header class="pageHeader">
|
|
51
|
+
<div class="pageHeader-content">
|
|
52
|
+
<div class="pageHeader-content-title">
|
|
53
|
+
<nav role="presentation" class="pageHeader-content-title-back">
|
|
54
|
+
<a href="#" class="button mod-onlyIcon mod-ghost">
|
|
55
|
+
<span class="lucca-icon icon-arrowLeft" aria-hidden="true"></span>
|
|
56
|
+
<span class="pr-u-mask">Page parente</span>
|
|
57
|
+
</a>
|
|
58
|
+
</nav>
|
|
59
|
+
<h1 class="pr-u-margin0">Page courante</h1>
|
|
60
|
+
<div>
|
|
61
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
62
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
63
|
+
<span class="pr-u-mask">Modifier</span>
|
|
64
|
+
</button>
|
|
65
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
66
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
67
|
+
<span class="pr-u-mask">Copier</span>
|
|
68
|
+
</button>
|
|
69
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
70
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
71
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
72
|
+
</button>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="pageHeader-content-actions">
|
|
76
|
+
<label class="textfield mod-search">
|
|
77
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
78
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
79
|
+
</label>
|
|
80
|
+
<button type="button" class="button">Button</button>
|
|
81
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
82
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
83
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
84
|
+
<span class="pr-u-mask">Voir plus</span>
|
|
85
|
+
</button>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="pageHeader-description">
|
|
89
|
+
<p class="pr-u-marginBlockEnd0">
|
|
90
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
91
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum.
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
</header>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Header basic
|
|
98
|
+
|
|
99
|
+
```css
|
|
100
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
101
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
<header class="pageHeader">
|
|
106
|
+
<div class="pageHeader-content">
|
|
107
|
+
<div class="pageHeader-content-title">
|
|
108
|
+
<h1 class="pr-u-margin0">H1. Page title</h1>
|
|
109
|
+
<div>
|
|
110
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
111
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
112
|
+
<span class="pr-u-mask">Modifier</span>
|
|
113
|
+
</button>
|
|
114
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
115
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
116
|
+
<span class="pr-u-mask">Copier</span>
|
|
117
|
+
</button>
|
|
118
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
119
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
120
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
121
|
+
</button>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="pageHeader-content-actions">
|
|
125
|
+
<label class="textfield mod-search">
|
|
126
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
127
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
128
|
+
</label>
|
|
129
|
+
<button type="button" class="button">Button</button>
|
|
130
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
131
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
132
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
133
|
+
<span class="pr-u-mask">voir plus</span>
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="pageHeader-description">
|
|
138
|
+
<p class="pr-u-marginBlockEnd0">
|
|
139
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
140
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum
|
|
141
|
+
<a target="_blank">
|
|
142
|
+
Lien
|
|
143
|
+
<span aria-hidden="true" class="lucca-icon icon-arrowExternal mod-XS pr-u-marginInlineStart50"></span>
|
|
144
|
+
</a>
|
|
145
|
+
.
|
|
146
|
+
</p>
|
|
147
|
+
</div>
|
|
148
|
+
</header>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Header breadcrumb
|
|
152
|
+
|
|
153
|
+
```css
|
|
154
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
155
|
+
@forward '@lucca-front/scss/src/components/breadcrumbs';
|
|
156
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
```html
|
|
160
|
+
<header class="pageHeader mod-withBreadcrumbs">
|
|
161
|
+
<nav class="breadcrumbs" aria-describedby="breadcrumbs-title">
|
|
162
|
+
<p id="breadcrumbs-title" class="pr-u-mask">Breadcrumbs</p>
|
|
163
|
+
<ol class="breadcrumbs-list">
|
|
164
|
+
<li class="breadcrumbs-list-item"><a class="breadcrumbs-list-item-action">Page 0</a></li>
|
|
165
|
+
<li class="breadcrumbs-list-item"><a class="breadcrumbs-list-item-action">Page 1</a></li>
|
|
166
|
+
<li class="breadcrumbs-list-item">
|
|
167
|
+
<span aria-current="page" class="breadcrumbs-list-item-action">Page 2</span>
|
|
168
|
+
</li>
|
|
169
|
+
</ol>
|
|
170
|
+
</nav>
|
|
171
|
+
<div class="pageHeader-content">
|
|
172
|
+
<div class="pageHeader-content-title">
|
|
173
|
+
<h1 class="pr-u-margin0">H1. Page title</h1>
|
|
174
|
+
<div>
|
|
175
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
176
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
177
|
+
<span class="pr-u-mask">Modifier</span>
|
|
178
|
+
</button>
|
|
179
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
180
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
181
|
+
<span class="pr-u-mask">Copier</span>
|
|
182
|
+
</button>
|
|
183
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
184
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
185
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
186
|
+
</button>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
<div class="pageHeader-content-actions">
|
|
190
|
+
<label class="textfield mod-search">
|
|
191
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
192
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
193
|
+
</label>
|
|
194
|
+
<button type="button" class="button">Button</button>
|
|
195
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
196
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
197
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
198
|
+
<span class="pr-u-mask">voir plus</span>
|
|
199
|
+
</button>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
<div class="pageHeader-description">
|
|
203
|
+
<p class="pr-u-marginBlockEnd0">
|
|
204
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
205
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum
|
|
206
|
+
<a target="_blank">
|
|
207
|
+
Lien
|
|
208
|
+
<span aria-hidden="true" class="lucca-icon icon-arrowExternal mod-XS pr-u-marginInlineStart50"></span>
|
|
209
|
+
</a>
|
|
210
|
+
.
|
|
211
|
+
</p>
|
|
212
|
+
</div>
|
|
213
|
+
</header>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Header container
|
|
217
|
+
|
|
218
|
+
```css
|
|
219
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
220
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
```html
|
|
224
|
+
<header class="pageHeader">
|
|
225
|
+
<div class="pageHeader-containerOptional">
|
|
226
|
+
<div class="pageHeader-content">
|
|
227
|
+
<div class="pageHeader-content-title">
|
|
228
|
+
<h1 class="pr-u-margin0">H1. Page title</h1>
|
|
229
|
+
<div>
|
|
230
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
231
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
232
|
+
<span class="pr-u-mask">Modifier</span>
|
|
233
|
+
</button>
|
|
234
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
235
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
236
|
+
<span class="pr-u-mask">Copier</span>
|
|
237
|
+
</button>
|
|
238
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
239
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
240
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
241
|
+
</button>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
<div class="pageHeader-content-actions">
|
|
245
|
+
<label class="textfield mod-search">
|
|
246
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
247
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
248
|
+
</label>
|
|
249
|
+
<button type="button" class="button">Button</button>
|
|
250
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
251
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
252
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
253
|
+
<span class="pr-u-mask">voir plus</span>
|
|
254
|
+
</button>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
<div class="pageHeader-description">
|
|
258
|
+
<p class="pr-u-marginBlockEnd0">
|
|
259
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
260
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum
|
|
261
|
+
<a target="_blank">
|
|
262
|
+
Lien
|
|
263
|
+
<span aria-hidden="true" class="lucca-icon icon-arrowExternal mod-XS pr-u-marginInlineStart50"></span>
|
|
264
|
+
</a>
|
|
265
|
+
.
|
|
266
|
+
</p>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</header>
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### Header leading trailing
|
|
273
|
+
|
|
274
|
+
```css
|
|
275
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
276
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
```html
|
|
280
|
+
<header class="pageHeader">
|
|
281
|
+
<div class="pageHeader-content">
|
|
282
|
+
<div class="pageHeader-content-title">
|
|
283
|
+
<div class="pageHeader-content-title-leading">leading</div>
|
|
284
|
+
<h1 class="pr-u-margin0">Page courante</h1>
|
|
285
|
+
<div class="pageHeader-content-title-trailing">trailing</div>
|
|
286
|
+
<div>
|
|
287
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
288
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
289
|
+
<span class="pr-u-mask">Modifier</span>
|
|
290
|
+
</button>
|
|
291
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
292
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
293
|
+
<span class="pr-u-mask">Copier</span>
|
|
294
|
+
</button>
|
|
295
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
296
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
297
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
298
|
+
</button>
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
<div class="pageHeader-content-actions">
|
|
302
|
+
<label class="textfield mod-search">
|
|
303
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
304
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
305
|
+
</label>
|
|
306
|
+
<button type="button" class="button">Button</button>
|
|
307
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
308
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
309
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
310
|
+
<span class="pr-u-mask">Voir plus</span>
|
|
311
|
+
</button>
|
|
312
|
+
</div>
|
|
313
|
+
</div>
|
|
314
|
+
<div class="pageHeader-description">
|
|
315
|
+
<p class="pr-u-marginBlockEnd0">
|
|
316
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
317
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum.
|
|
318
|
+
</p>
|
|
319
|
+
</div>
|
|
320
|
+
</header>
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Header menu
|
|
324
|
+
|
|
325
|
+
```css
|
|
326
|
+
@forward '@lucca-front/scss/src/components/pageHeader';
|
|
327
|
+
@forward '@lucca-front/scss/src/components/button';
|
|
328
|
+
@forward '@lucca-front/scss/src/components/horizontalNavigation';
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
```html
|
|
332
|
+
<header class="pageHeader mod-withHorizontalNavigation">
|
|
333
|
+
<div class="pageHeader-content">
|
|
334
|
+
<div class="pageHeader-content-title">
|
|
335
|
+
<h1 class="pr-u-margin0">H1. Page title</h1>
|
|
336
|
+
<div>
|
|
337
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Modifier">
|
|
338
|
+
<span aria-hidden="true" class="lucca-icon icon-officePen"></span>
|
|
339
|
+
<span class="pr-u-mask">Modifier</span>
|
|
340
|
+
</button>
|
|
341
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Copier">
|
|
342
|
+
<span aria-hidden="true" class="lucca-icon icon-fileCopy"></span>
|
|
343
|
+
<span class="pr-u-mask">Copier</span>
|
|
344
|
+
</button>
|
|
345
|
+
<button type="button" class="button mod-onlyIcon mod-ghost" luTooltip="Supprimer">
|
|
346
|
+
<span aria-hidden="true" class="lucca-icon icon-trashDelete"></span>
|
|
347
|
+
<span class="pr-u-mask">Supprimer</span>
|
|
348
|
+
</button>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
<div class="pageHeader-content-actions">
|
|
352
|
+
<label class="textfield mod-search">
|
|
353
|
+
<input class="textfield-input" type="text" placeholder="ex : Mon précieux" />
|
|
354
|
+
<span class="textfield-label pr-u-mask">Rechercher</span>
|
|
355
|
+
</label>
|
|
356
|
+
<button type="button" class="button">Button</button>
|
|
357
|
+
<button type="button" class="button mod-outline">Button</button>
|
|
358
|
+
<button type="button" class="button mod-onlyIcon mod-ghost">
|
|
359
|
+
<span aria-hidden="true" class="lucca-icon icon-menuDots"></span>
|
|
360
|
+
<span class="pr-u-mask">voir plus</span>
|
|
361
|
+
</button>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
<div class="pageHeader-description">
|
|
365
|
+
<p class="pr-u-marginBlockEnd0">
|
|
366
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet
|
|
367
|
+
justo. Nullam condimentum nulla et neque ultricies bibendum
|
|
368
|
+
<a target="_blank">
|
|
369
|
+
Lien
|
|
370
|
+
<span aria-hidden="true" class="lucca-icon icon-arrowExternal mod-XS pr-u-marginInlineStart50"></span>
|
|
371
|
+
</a>
|
|
372
|
+
.
|
|
373
|
+
</p>
|
|
374
|
+
</div>
|
|
375
|
+
<div class="horizontalNavigation">
|
|
376
|
+
<ul class="horizontalNavigation-list">
|
|
377
|
+
<li class="horizontalNavigation-list-item">
|
|
378
|
+
<a class="horizontalNavigation-list-item-action" href="#" aria-current="page">Page</a>
|
|
379
|
+
</li>
|
|
380
|
+
<li class="horizontalNavigation-list-item">
|
|
381
|
+
<a class="horizontalNavigation-list-item-action" href="#">Page</a>
|
|
382
|
+
</li>
|
|
383
|
+
<li class="horizontalNavigation-list-item">
|
|
384
|
+
<a class="horizontalNavigation-list-item-action" href="#">Page</a>
|
|
385
|
+
</li>
|
|
386
|
+
</ul>
|
|
387
|
+
</div>
|
|
388
|
+
</header>
|
|
389
|
+
```
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# pageheader
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { PageHeaderComponent } from '@lucca-front/ng/page-header';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-page-header label="H1. Page title" description="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac justo scelerisque, blandit nibh quis, imperdiet justo. Nullam condimentum nulla et neque ultricies bibendum." />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## API Reference
|
|
16
|
+
|
|
17
|
+
### PageHeaderComponent (component)
|
|
18
|
+
|
|
19
|
+
**Selector:** `lu-page-header`
|
|
20
|
+
|
|
21
|
+
#### Inputs
|
|
22
|
+
|
|
23
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
24
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
25
|
+
| `description` | `description` | `PortalContent \| null` | `null` | — | — | Description du composant. [PortalContent] |
|
|
26
|
+
| `label` | `label` | `PortalContent \| null` | `null` | — | — | Titre du composant. [PortalContent] |
|
|
27
|
+
| `container` | `container` | `boolean` | `false` | — | `luBooleanAttribute` | [v20.1] Applique un container autour du contenu de Page Header. |
|
|
28
|
+
| `sticky` | `sticky` | `boolean` | `false` | — | `luBooleanAttribute` | [v21.2] Applique un comportement sticky au Page Header quand celui ci n’est pas géré par le Main Layout |
|
|
29
|
+
|
|
30
|
+
## Related files
|
|
31
|
+
|
|
32
|
+
- 📝 [Code & implementation](./pageheader.component.md)
|
|
33
|
+
- 🎨 [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/pageheader/pageheader.design.md)
|
|
34
|
+
- 🎯 [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/pageheader/pageheader.figma.md)
|
|
35
|
+
- 📖 [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-structure-pageheader-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
|
+
~ `container` : transform booleanAttribute → luBooleanAttribute
|
|
44
|
+
~ `sticky` : transform booleanAttribute → luBooleanAttribute
|
|
45
|
+
|
|
46
|
+
### Notes de release (ZeroHeight)
|
|
47
|
+
|
|
48
|
+
#### 21.3.0
|
|
49
|
+
|
|
50
|
+
##### Changed
|
|
51
|
+
|
|
52
|
+
- The responsive behaviour introduced in `21.2.5` for long titles has been reverted.
|
|
53
|
+
|
|
54
|
+
#### 21.2.5
|
|
55
|
+
|
|
56
|
+
##### Fixed
|
|
57
|
+
|
|
58
|
+
- Responsive behaviour of long titles.
|
|
59
|
+
|
|
60
|
+
#### 21.2.0
|
|
61
|
+
|
|
62
|
+
##### Added
|
|
63
|
+
|
|
64
|
+
- `sticky` input to keep the page header visible while scrolling.
|
|
65
|
+
|
|
66
|
+
#### 21.0.4
|
|
67
|
+
|
|
68
|
+
##### Changed
|
|
69
|
+
|
|
70
|
+
- `description` color.
|
|
71
|
+
|
|
72
|
+
#### 21.0.0
|
|
73
|
+
|
|
74
|
+
##### Changed
|
|
75
|
+
|
|
76
|
+
- Back button redesign.
|
|
77
|
+
|
|
78
|
+
#### 20.3.1
|
|
79
|
+
|
|
80
|
+
##### Fixed
|
|
81
|
+
|
|
82
|
+
- The component now imports the `title` SCSS component it relies on.
|
|
83
|
+
|
|
84
|
+
#### 20.1.3
|
|
85
|
+
|
|
86
|
+
##### Fixed
|
|
87
|
+
|
|
88
|
+
- Gap between the title and the surrounding elements.
|
|
89
|
+
|
|
90
|
+
#### 20.1.2
|
|
91
|
+
|
|
92
|
+
##### Fixed
|
|
93
|
+
|
|
94
|
+
- Conditions under which the header becomes sticky.
|
|
95
|
+
|
|
96
|
+
#### 20.1.0
|
|
97
|
+
|
|
98
|
+
##### Added
|
|
99
|
+
|
|
100
|
+
- `container` support to align the header content with the page container.
|
|
101
|
+
|
|
102
|
+
#### 19.3.3
|
|
103
|
+
|
|
104
|
+
##### Added
|
|
105
|
+
|
|
106
|
+
- Leading and trailing content slots.
|
|
107
|
+
|
|
108
|
+
##### Fixed
|
|
109
|
+
|
|
110
|
+
- Heading padding and outer margin.
|
|
111
|
+
|
|
112
|
+
#### 19.3.0
|
|
113
|
+
|
|
114
|
+
##### Added
|
|
115
|
+
|
|
116
|
+
- `lu-page-header` component (`pageHeader`) with the `label`, `description` and `container` inputs.
|
|
117
|
+
|
|
118
|
+
#### 19.1.6
|
|
119
|
+
|
|
120
|
+
##### Fixed
|
|
121
|
+
|
|
122
|
+
- Gap between the header actions.
|
|
123
|
+
|
|
124
|
+
#### 18.2.4
|
|
125
|
+
|
|
126
|
+
##### Changed
|
|
127
|
+
|
|
128
|
+
- Title `max-inline-size` capped to `50rem`.
|
|
129
|
+
|
|
130
|
+
#### 18.2.0
|
|
131
|
+
|
|
132
|
+
##### Added
|
|
133
|
+
|
|
134
|
+
- Back button.
|
|
135
|
+
|
|
136
|
+
##### Changed
|
|
137
|
+
|
|
138
|
+
- Component padding.
|
|
139
|
+
|
|
140
|
+
#### 18.1.1
|
|
141
|
+
|
|
142
|
+
##### Changed
|
|
143
|
+
|
|
144
|
+
- `description` `max-inline-size` reduced from `50rem` to `33.5rem`.
|