@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,337 @@
|
|
|
1
|
+
# API Angular hors composants
|
|
2
|
+
|
|
3
|
+
> Providers, injection tokens, pipes et services exportés par `@lucca-front/ng/*` qui ne sont documentés sur la page d'aucun composant (package sans composant, ou symbole éloigné des composants du package). Extraits du code source au tag `v22.0.0` (JSDoc `@deprecated` inclus).
|
|
4
|
+
|
|
5
|
+
## api (`@lucca-front/ng/api`)
|
|
6
|
+
|
|
7
|
+
### Services
|
|
8
|
+
|
|
9
|
+
#### LuApiV3Service
|
|
10
|
+
|
|
11
|
+
- `getAll(filters: string[] = []): Observable<T[]>`
|
|
12
|
+
- `getPaged(page: number, filters: string[] = []): Observable<T[]>`
|
|
13
|
+
- `searchAll(clue: string, filters: string[] = []): Observable<T[]>`
|
|
14
|
+
- `searchPaged(clue: string, page: number, filters: string[] = []): Observable<T[]>`
|
|
15
|
+
|
|
16
|
+
#### LuApiV4Service
|
|
17
|
+
|
|
18
|
+
- `getAll(filters: string[] = []): Observable<T[]>`
|
|
19
|
+
- `getPaged(page = 0, filters: string[] = []): Observable<T[]>`
|
|
20
|
+
- `searchAll(clue = '', filters: string[] = []): Observable<T[]>`
|
|
21
|
+
- `searchPaged(clue = '', page = 0, filters: string[] = []): Observable<T[]>`
|
|
22
|
+
- `count(): Observable<number>`
|
|
23
|
+
|
|
24
|
+
#### LuApiHybridService
|
|
25
|
+
|
|
26
|
+
- `getAll(filters: string[] = []): Observable<T[]>`
|
|
27
|
+
- `getPaged(page: number, filters: string[] = []): Observable<T[]>`
|
|
28
|
+
- `searchAll(clue: string, filters: string[] = []): Observable<T[]>`
|
|
29
|
+
- `searchPaged(clue: string, page: number, filters: string[] = []): Observable<T[]>`
|
|
30
|
+
|
|
31
|
+
### Modules dépréciés
|
|
32
|
+
|
|
33
|
+
- ⚠️ `LuApiSearcherModule` — use `LuApiPagedSearcherComponent, LuApiSearcherComponent` instead
|
|
34
|
+
|
|
35
|
+
## core (`@lucca-front/ng/core`)
|
|
36
|
+
|
|
37
|
+
### Injection tokens
|
|
38
|
+
|
|
39
|
+
| Token | Type | Description |
|
|
40
|
+
|-------|------|-------------|
|
|
41
|
+
| `LU_NATIVE_DATE_ADAPTER_OPTIONS` | `ILuNativeDateAdapterOptions` | — |
|
|
42
|
+
| `PORTAL_CONTEXT` | `unknown` | — |
|
|
43
|
+
| `LOCALE_PLURAL_RULES` | `unknown` | — |
|
|
44
|
+
|
|
45
|
+
### Pipes
|
|
46
|
+
|
|
47
|
+
| Pipe | Classe | transform | Description |
|
|
48
|
+
|------|--------|-----------|-------------|
|
|
49
|
+
| `intlParams` | `IntlParamsPipe` | `(value: string, args: Record<string, string \| number>): string` | — |
|
|
50
|
+
| `intlPluralLabel` | `IntlPluralLabelPipe` | `(value: string \| LuPluralForms, count: number): string` | — |
|
|
51
|
+
| `luTypeGuard` | `LuTypeGuardPipe` | `(obj: T, typeGuardFn: (arg: T) => arg is U): obj is U` | — |
|
|
52
|
+
|
|
53
|
+
### Services
|
|
54
|
+
|
|
55
|
+
#### LuNativeDateAdapter
|
|
56
|
+
|
|
57
|
+
- `isParsable(text: string, granularity: LuDateGranularity = ELuDateGranularity.day): boolean`
|
|
58
|
+
- `parse(text: string, granularity: LuDateGranularity = ELuDateGranularity.day): Date | undefined`
|
|
59
|
+
- `format(d: Date, format: string): string`
|
|
60
|
+
- `forge(year: number, month: number, date: number): Date`
|
|
61
|
+
- `forgeToday(): Date`
|
|
62
|
+
- `forgeInvalid(): Date`
|
|
63
|
+
- `isValid(d: Date): boolean`
|
|
64
|
+
- `clone(d: Date): Date`
|
|
65
|
+
- `getYear(d: Date): number`
|
|
66
|
+
- `getMonth(d: Date): number`
|
|
67
|
+
- `getDate(d: Date): number`
|
|
68
|
+
- `getDay(d: Date): number`
|
|
69
|
+
- `add(d: Date, count: number, granularity: LuDateGranularity): Date`
|
|
70
|
+
|
|
71
|
+
#### LuStringDateAdapter
|
|
72
|
+
|
|
73
|
+
bind to a string with iso 26001 format YYYY-MM-DD
|
|
74
|
+
|
|
75
|
+
- `forge(year: number, month: number, date: number): string`
|
|
76
|
+
- `forgeToday(): string`
|
|
77
|
+
- `forgeInvalid(): string`
|
|
78
|
+
- `isValid(d: string): boolean`
|
|
79
|
+
- `compare(a: string, b: string, granularity: LuDateGranularity): number`
|
|
80
|
+
- `isParsable(text: string): boolean`
|
|
81
|
+
- `parse(text: string, granularity: LuDateGranularity): string | undefined`
|
|
82
|
+
- `format(d: string, format: string): string`
|
|
83
|
+
- `clone(d: string): string`
|
|
84
|
+
- `getYear(d: string): number`
|
|
85
|
+
- `getMonth(d: string): number`
|
|
86
|
+
- `getDate(d: string): number`
|
|
87
|
+
- `getDay(d: string): number`
|
|
88
|
+
- `add(d: string, count: number, granularity: LuDateGranularity): string`
|
|
89
|
+
|
|
90
|
+
## core-select/legal-units (`@lucca-front/ng/core-select/legal-units`)
|
|
91
|
+
|
|
92
|
+
### Injection tokens
|
|
93
|
+
|
|
94
|
+
| Token | Type | Description |
|
|
95
|
+
|-------|------|-------------|
|
|
96
|
+
| `ARCHIVED_LEGAL_UNITS_CONTEXT` | `ArchivedLegalUnitsContext` | — |
|
|
97
|
+
|
|
98
|
+
## department (`@lucca-front/ng/department`)
|
|
99
|
+
|
|
100
|
+
### Services
|
|
101
|
+
|
|
102
|
+
#### LuDepartmentV3Service — ⚠️ Déprécié : use {LuDepartmentService} instead.
|
|
103
|
+
|
|
104
|
+
- `getTrees()`
|
|
105
|
+
|
|
106
|
+
#### LuDepartmentV4Service
|
|
107
|
+
|
|
108
|
+
- `getTrees()`
|
|
109
|
+
|
|
110
|
+
## dialog/testing (`@lucca-front/ng/dialog/testing`)
|
|
111
|
+
|
|
112
|
+
### Providers
|
|
113
|
+
|
|
114
|
+
| Fonction | Signature | Description |
|
|
115
|
+
|----------|-----------|-------------|
|
|
116
|
+
| `provideLuDialogDataTesting` | `<T = unknown>(data: LuDialogData<T>)` | — |
|
|
117
|
+
|
|
118
|
+
## establishment (`@lucca-front/ng/establishment`)
|
|
119
|
+
|
|
120
|
+
### Services
|
|
121
|
+
|
|
122
|
+
#### LuEstablishmentService
|
|
123
|
+
|
|
124
|
+
#### LuLegalUnitService
|
|
125
|
+
|
|
126
|
+
## formly (`@lucca-front/ng/formly`)
|
|
127
|
+
|
|
128
|
+
### Providers
|
|
129
|
+
|
|
130
|
+
| Fonction | Signature | Description |
|
|
131
|
+
|----------|-----------|-------------|
|
|
132
|
+
| `provideLuFormly` | `(): EnvironmentProviders` | — |
|
|
133
|
+
|
|
134
|
+
### Modules dépréciés
|
|
135
|
+
|
|
136
|
+
- ⚠️ `LuFormlyModule` — use provideLuFormly() in a lazy loaded route (and stop using formly please)
|
|
137
|
+
|
|
138
|
+
## forms/rich-text-input/formatters/html (`@lucca-front/ng/forms/rich-text-input/formatters/html`)
|
|
139
|
+
|
|
140
|
+
### Providers
|
|
141
|
+
|
|
142
|
+
| Fonction | Signature | Description |
|
|
143
|
+
|----------|-----------|-------------|
|
|
144
|
+
| `provideLuRichTextHTMLFormatter` | `(): Provider` | — |
|
|
145
|
+
|
|
146
|
+
## forms/rich-text-input/formatters/markdown (`@lucca-front/ng/forms/rich-text-input/formatters/markdown`)
|
|
147
|
+
|
|
148
|
+
### Providers
|
|
149
|
+
|
|
150
|
+
| Fonction | Signature | Description |
|
|
151
|
+
|----------|-----------|-------------|
|
|
152
|
+
| `provideLuRichTextMarkdownFormatter` | `(transformers?: Transformer[]): Provider` | — |
|
|
153
|
+
|
|
154
|
+
## forms/rich-text-input/formatters/plain-text (`@lucca-front/ng/forms/rich-text-input/formatters/plain-text`)
|
|
155
|
+
|
|
156
|
+
### Providers
|
|
157
|
+
|
|
158
|
+
| Fonction | Signature | Description |
|
|
159
|
+
|----------|-----------|-------------|
|
|
160
|
+
| `provideLuRichTextPlainTextFormatter` | `(transformers?: PlainTextTransformer[]): Provider` | — |
|
|
161
|
+
|
|
162
|
+
## input (`@lucca-front/ng/input`)
|
|
163
|
+
|
|
164
|
+
### Modules dépréciés
|
|
165
|
+
|
|
166
|
+
- ⚠️ `LuInputClearerModule` — use `LuInputClearerComponent` instead
|
|
167
|
+
- ⚠️ `LuInputDisplayerModule` — use `LuInputDisplayerDirective` instead
|
|
168
|
+
- ⚠️ `LuInputModule` — use `LuInputDirective, LuInputDisplayerDirective, LuInputClearerComponent` instead
|
|
169
|
+
|
|
170
|
+
## number (`@lucca-front/ng/number`)
|
|
171
|
+
|
|
172
|
+
### Pipes
|
|
173
|
+
|
|
174
|
+
| Pipe | Classe | transform | Description |
|
|
175
|
+
|------|--------|-----------|-------------|
|
|
176
|
+
| `luNumber` | `LuNumberPipe` | `(number: number, precision = 2)` | — |
|
|
177
|
+
|
|
178
|
+
### Modules dépréciés
|
|
179
|
+
|
|
180
|
+
- ⚠️ `LuNumberModule` — use `LuNumberPipe` instead
|
|
181
|
+
|
|
182
|
+
## number-format (`@lucca-front/ng/number-format`)
|
|
183
|
+
|
|
184
|
+
### Pipes
|
|
185
|
+
|
|
186
|
+
| Pipe | Classe | transform | Description |
|
|
187
|
+
|------|--------|-----------|-------------|
|
|
188
|
+
| `luNumberFormat` | `LuFormatNumberPipe` | `(value: number, options: NumberFormatOptions)` | — |
|
|
189
|
+
|
|
190
|
+
## option (`@lucca-front/ng/option`)
|
|
191
|
+
|
|
192
|
+
### Injection tokens
|
|
193
|
+
|
|
194
|
+
| Token | Type | Description |
|
|
195
|
+
|-------|------|-------------|
|
|
196
|
+
| `LU_TREE_OPTION_ITEM_TRANSLATIONS` | `unknown` | — |
|
|
197
|
+
| `LU_OPTION_SELECT_ALL_TRANSLATIONS` | `unknown` | — |
|
|
198
|
+
| `LU_OPTION_PLACEHOLDER_TRANSLATIONS` | `unknown` | — |
|
|
199
|
+
|
|
200
|
+
### Modules dépréciés
|
|
201
|
+
|
|
202
|
+
- ⚠️ `LuOptionItemModule` — use `LuOptionItemComponent` instead
|
|
203
|
+
- ⚠️ `LuTreeOptionItemModule` — use `LuTreeOptionItemComponent` instead
|
|
204
|
+
- ⚠️ `LuOptionPickerModule` — use `LuOptionPickerComponent, LuOptionPickerAdvancedComponent, LuOptionItemComponent` instead
|
|
205
|
+
- ⚠️ `LuTreeOptionPickerModule` — use `LuTreeOptionPickerComponent, LuTreeOptionPickerAdvancedComponent` instead
|
|
206
|
+
- ⚠️ `LuOptionFeederModule` — use `LuOptionFeederComponent` instead
|
|
207
|
+
- ⚠️ `LuTreeOptionFeederModule` — use `LuTreeOptionFeederComponent` instead
|
|
208
|
+
- ⚠️ `LuForOptionsModule` — use `LuForOptionsDirective` instead
|
|
209
|
+
- ⚠️ `LuForTreeOptionsModule` — use `LuForTreeOptionsDirective` instead
|
|
210
|
+
- ⚠️ `LuOptionPagerModule` — use `LuOptionPagerComponent` instead
|
|
211
|
+
- ⚠️ `LuOptionSearcherModule` — use `LuOptionSearcherComponent` instead
|
|
212
|
+
- ⚠️ `LuTreeOptionSearcherModule` — use `LuTreeOptionSearcherComponent` instead
|
|
213
|
+
- ⚠️ `LuTreeOptionOperatorModule` — use `LuTreeOptionFeederComponent, LuForTreeOptionsDirective, LuTreeOptionPagerComponent, LuTreeOptionSearcherComponent` instead
|
|
214
|
+
- ⚠️ `LuOptionSelectAllModule` — use `LuOptionSelectAllComponent` instead
|
|
215
|
+
- ⚠️ `LuOptionModule` — use `LuOptionItemComponent, LuOptionPickerComponent, LuOptionPickerAdvancedComponent, LuOptionPagerComponent, LuOptionFeederComponent, LuOptionSearcherComponent, LuForOptionsDirective, LuForGroupsDirective, LuOptionSelectAllComponent, LuOptionPlaceholderComponent` instead
|
|
216
|
+
- ⚠️ `LuTreeOptionModule` — use `LuTreeOptionItemComponent, LuTreeOptionPickerComponent, LuTreeOptionPickerAdvancedComponent, LuTreeOptionFeederComponent, LuForTreeOptionsDirective, LuTreeOptionPagerComponent, LuTreeOptionSearcherComponent, LuTreeOptionSelectAllComponent` instead
|
|
217
|
+
|
|
218
|
+
## popup (`@lucca-front/ng/popup`)
|
|
219
|
+
|
|
220
|
+
### Injection tokens
|
|
221
|
+
|
|
222
|
+
| Token | Type | Description |
|
|
223
|
+
|-------|------|-------------|
|
|
224
|
+
| `LU_POPUP_REF_FACTORY` | `ILuPopupRefFactory` | — |
|
|
225
|
+
| `LU_POPUP_DATA` | `unknown` | Injection token that can be used to access the data that was passed in to a dialog. |
|
|
226
|
+
| `LU_POPUP_CONFIG` | `ILuPopupConfig` | — |
|
|
227
|
+
|
|
228
|
+
### Services
|
|
229
|
+
|
|
230
|
+
#### LuPopupRefFactory
|
|
231
|
+
|
|
232
|
+
- `forge<T, D, R>(component: ComponentType<T>, config: ILuPopupConfig)`
|
|
233
|
+
|
|
234
|
+
#### LuPopup
|
|
235
|
+
|
|
236
|
+
- `open<T, D, R>(component: ComponentType<T>, data: D | undefined = undefined, config: Partial<ILuPopupConfig> = {}): ILuPopupRef<D, R>`
|
|
237
|
+
|
|
238
|
+
### Modules dépréciés
|
|
239
|
+
|
|
240
|
+
- ⚠️ `LuPopupModule` — use `OverlayModule` imports && `LuPopup, { provide: LU_POPUP_CONFIG, useValue: luDefaultPopupConfig }, { provide: LU_POPUP_REF_FACTORY, useClass: LuPopupRefFactory }` providers instead
|
|
241
|
+
|
|
242
|
+
## safe-content (`@lucca-front/ng/safe-content`)
|
|
243
|
+
|
|
244
|
+
### Pipes
|
|
245
|
+
|
|
246
|
+
| Pipe | Classe | transform | Description |
|
|
247
|
+
|------|--------|-----------|-------------|
|
|
248
|
+
| `luSafeExternalSvg` | `LuSafeExternalSvgPipe` | `(url: string): SafeHtml` | — |
|
|
249
|
+
| `luSafeHtml` | `LuSafeHtmlPipe` | `(value: string, config?: SanitizerConfig): SafeHtml` | — |
|
|
250
|
+
|
|
251
|
+
### Modules dépréciés
|
|
252
|
+
|
|
253
|
+
- ⚠️ `LuSafeContentModule` — use `LuSafeHtmlPipe` instead
|
|
254
|
+
|
|
255
|
+
## sidepanel (`@lucca-front/ng/sidepanel`)
|
|
256
|
+
|
|
257
|
+
### Services
|
|
258
|
+
|
|
259
|
+
#### LuSidepanel — ⚠️ Déprécié : Use LuModal with `modal.open(component, data, { mode: 'sidepanel' })` instead.
|
|
260
|
+
|
|
261
|
+
- `open<T extends ILuModalContent, D>(component: ComponentType<T>, data: D | undefined = undefined, config: Partial<LuModalConfig> = {}): ILuSidepanelRef<D, LuModalContentResult<T>>`
|
|
262
|
+
|
|
263
|
+
### Modules dépréciés
|
|
264
|
+
|
|
265
|
+
- ⚠️ `LuSidepanelModule` — Use LuModal with `modal.open(component, data, { mode: 'sidepanel' })` instead.
|
|
266
|
+
|
|
267
|
+
## software-icon-wrapper (`@lucca-front/ng/software-icon-wrapper`)
|
|
268
|
+
|
|
269
|
+
### Injection tokens
|
|
270
|
+
|
|
271
|
+
| Token | Type | Description |
|
|
272
|
+
|-------|------|-------------|
|
|
273
|
+
| `LU_SOFTWARE_ICON_WRAPPER_TRANSLATIONS` | `unknown` | — |
|
|
274
|
+
|
|
275
|
+
## title (`@lucca-front/ng/title`)
|
|
276
|
+
|
|
277
|
+
### Providers
|
|
278
|
+
|
|
279
|
+
| Fonction | Signature | Description |
|
|
280
|
+
|----------|-----------|-------------|
|
|
281
|
+
| `provideLuTitleStrategy` | `(options: LuTitleStrategyOptions): Provider[]` | — |
|
|
282
|
+
|
|
283
|
+
### Injection tokens
|
|
284
|
+
|
|
285
|
+
| Token | Type | Description |
|
|
286
|
+
|-------|------|-------------|
|
|
287
|
+
| `LU_TITLE_TRANSLATE_SERVICE` | `ILuTitleTranslateService` | — |
|
|
288
|
+
|
|
289
|
+
### Services
|
|
290
|
+
|
|
291
|
+
#### LuTitleService — ⚠️ Déprécié : use Title strategy instead
|
|
292
|
+
|
|
293
|
+
- `init(applicationNameTranslationKey: string)`
|
|
294
|
+
- `prependTitle(title: string | ObservableInput<string>)`
|
|
295
|
+
- `overrideFirstTitlePart(title: string | ObservableInput<string>)`
|
|
296
|
+
|
|
297
|
+
#### LuTitleStrategy
|
|
298
|
+
|
|
299
|
+
- `updateTitle(routerState: RouterStateSnapshot)`
|
|
300
|
+
- `prependTitle(title: string | ObservableInput<string>)`
|
|
301
|
+
- `overrideFirstTitlePart(title: string | ObservableInput<string>)`
|
|
302
|
+
|
|
303
|
+
### Modules dépréciés
|
|
304
|
+
|
|
305
|
+
- ⚠️ `LuTitleModule` — use title streatgy instead
|
|
306
|
+
|
|
307
|
+
## user (`@lucca-front/ng/user`)
|
|
308
|
+
|
|
309
|
+
### Injection tokens
|
|
310
|
+
|
|
311
|
+
| Token | Type | Description |
|
|
312
|
+
|-------|------|-------------|
|
|
313
|
+
| `LU_DEFAULT_DISPLAY_POLICY` | `LuDisplayFormat` | Injection token that can be used to change the default displayed user format. |
|
|
314
|
+
| `LU_USER_SEARCHER_TRANSLATIONS` | `unknown` | — |
|
|
315
|
+
|
|
316
|
+
### Pipes
|
|
317
|
+
|
|
318
|
+
| Pipe | Classe | transform | Description |
|
|
319
|
+
|------|--------|-----------|-------------|
|
|
320
|
+
| `luUserDisplay` | `LuUserDisplayPipe` | `(user: T, options?: Partial<LuUserDisplaySingleOptions>)` | Displays a user name according to specified format. Supported formats: f for first name, F for first initial, l for last name, L for last initial. |
|
|
321
|
+
|
|
322
|
+
### Services
|
|
323
|
+
|
|
324
|
+
#### LuUserHomonymsService
|
|
325
|
+
|
|
326
|
+
- `extractHomonyms(users: U[]): U[]`
|
|
327
|
+
- `enrichHomonyms(homonyms: U[]): Observable<U[]>`
|
|
328
|
+
|
|
329
|
+
#### LuUserV3Service
|
|
330
|
+
|
|
331
|
+
- `getMe(): Observable<U>`
|
|
332
|
+
|
|
333
|
+
### Modules dépréciés
|
|
334
|
+
|
|
335
|
+
- ⚠️ `LuUserDisplayModule` — use `LuUserDisplayPipe` imports && `LuUserDisplayPipe` providers instead
|
|
336
|
+
- ⚠️ `LuUserMeOptionModule` — use `LuUserMeOptionDirective` instead
|
|
337
|
+
- ⚠️ `LuUserSearcherModule` — use `LuUserPagedSearcherComponent` instead
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Animations
|
|
2
|
+
|
|
3
|
+
# Content
|
|
4
|
+
|
|
5
|
+
**Exemple : Fade**
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
/* 1. Appeler provideAnimations */
|
|
9
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
10
|
+
|
|
11
|
+
@NgModule({
|
|
12
|
+
providers: [provideAnimations()]
|
|
13
|
+
})
|
|
14
|
+
class AppModule {}
|
|
15
|
+
|
|
16
|
+
/* 2. Utiliser luFadeAnimationFactory() */
|
|
17
|
+
@Component({
|
|
18
|
+
selector: 'story-fade-animation',
|
|
19
|
+
template: \`
|
|
20
|
+
<div class="grid">
|
|
21
|
+
<div class="grid-column ng-demo-block" style="--grid-colspan: 3">
|
|
22
|
+
<h3 class="pr-u-margin0">
|
|
23
|
+
Fade
|
|
24
|
+
<button class="button mod-S" (click)="fading = !fading">{{ fading ? 'Show' : 'Hide' }}</button>
|
|
25
|
+
</h3>
|
|
26
|
+
@if (!fading) {
|
|
27
|
+
<div class="animated-block" [@fadeAnimation]>Fade</div>
|
|
28
|
+
}
|
|
29
|
+
</div>
|
|
30
|
+
</div>\`,
|
|
31
|
+
styleUrl: './animations.scss',
|
|
32
|
+
animations: [luFadeAnimationFactory()],
|
|
33
|
+
})
|
|
34
|
+
class FadeAnimationStory {
|
|
35
|
+
fading = false;
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
**Exemple : Scale**
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
/* 1. Appeler provideAnimations */
|
|
42
|
+
Appeler { provideAnimations } from '@angular/platform-browser/animations';
|
|
43
|
+
|
|
44
|
+
@NgModule({
|
|
45
|
+
providers: [provideAnimations()]
|
|
46
|
+
})
|
|
47
|
+
class AppModule {}
|
|
48
|
+
|
|
49
|
+
/* 2. Utiliser luScaleAnimationFactory() */
|
|
50
|
+
@Component({
|
|
51
|
+
selector: 'story-scale-animation',
|
|
52
|
+
template: \`
|
|
53
|
+
<div class="grid">
|
|
54
|
+
<div class="grid-column ng-demo-block">
|
|
55
|
+
<h3 class="pr-u-margin0">
|
|
56
|
+
Scale
|
|
57
|
+
<button class="button mod-S" (click)="scalingCenter = !scalingCenter">{{ scalingCenter ? 'Show' : 'Hide' }}</button>
|
|
58
|
+
</h3>
|
|
59
|
+
@if (!scalingCenter) {
|
|
60
|
+
<div class="animated-block" [@scaleAnimation]>Scale from center</div>
|
|
61
|
+
}
|
|
62
|
+
</div>
|
|
63
|
+
<div class="grid-column ng-demo-block">
|
|
64
|
+
<h3 class="pr-u-margin0">
|
|
65
|
+
Left <button class="button mod-S" (click)="scalingLeft = !scalingLeft">{{ scalingLeft ? 'Show' : 'Hide' }}</button>
|
|
66
|
+
</h3>
|
|
67
|
+
@if (!scalingLeft) {
|
|
68
|
+
<div class="animated-block" [@scaleAnimation]="'left'">Scale from left</div>
|
|
69
|
+
}
|
|
70
|
+
</div>
|
|
71
|
+
<div class="grid-column ng-demo-block">
|
|
72
|
+
<h3 class="pr-u-margin0">
|
|
73
|
+
Right
|
|
74
|
+
<button class="button mod-S" (click)="scalingRight = !scalingRight">{{ scalingRight ? 'Show' : 'Hide' }}</button>
|
|
75
|
+
</h3>
|
|
76
|
+
@if (!scalingRight) {
|
|
77
|
+
<div class="animated-block" [@scaleAnimation]="'right'">Scale from right</div>
|
|
78
|
+
}
|
|
79
|
+
</div>
|
|
80
|
+
<div class="grid-column ng-demo-block">
|
|
81
|
+
<h3 class="pr-u-margin0">
|
|
82
|
+
Top
|
|
83
|
+
<button class="button mod-S" (click)="scalingTop = !scalingTop">{{ scalingTop ? 'Show' : 'Hide' }}</button>
|
|
84
|
+
</h3>
|
|
85
|
+
@if (!scalingTop) {
|
|
86
|
+
<div class="animated-block" [@scaleAnimation]="'top'">Scale from top</div>
|
|
87
|
+
}
|
|
88
|
+
</div>
|
|
89
|
+
<div class="grid-column ng-demo-block">
|
|
90
|
+
<h3 class="pr-u-margin0">
|
|
91
|
+
Bottom
|
|
92
|
+
<button class="button mod-S" (click)="scalingBottom = !scalingBottom">{{ scalingBottom ? 'Show' : 'Hide' }}</button>
|
|
93
|
+
</h3>
|
|
94
|
+
@if (!scalingBottom) {
|
|
95
|
+
<div class="animated-block" [@scaleAnimation]="'bottom'">Scale from bottom</div>
|
|
96
|
+
}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
\`,
|
|
100
|
+
styleUrl: './animations.scss',
|
|
101
|
+
animations: [luScaleAnimationFactory()],
|
|
102
|
+
})
|
|
103
|
+
class ScaleAnimationStory {
|
|
104
|
+
scalingLeft = false;
|
|
105
|
+
scalingRight = false;
|
|
106
|
+
scalingTop = false;
|
|
107
|
+
scalingBottom = false;
|
|
108
|
+
scalingCenter = false;
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
**Exemple : Slide**
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
/* 1. Appeler provideAnimations */
|
|
115
|
+
import { provideAnimations } from '@angular/platform-browser/animations';
|
|
116
|
+
|
|
117
|
+
@NgModule({
|
|
118
|
+
providers: [provideAnimations()]
|
|
119
|
+
})
|
|
120
|
+
class AppModule {}
|
|
121
|
+
|
|
122
|
+
/* 2. Utiliser luSlideAnimationFactory() */
|
|
123
|
+
@Component({
|
|
124
|
+
selector: 'story-slide-animation',
|
|
125
|
+
template: \`
|
|
126
|
+
<div class="grid">
|
|
127
|
+
<div class="grid-column ng-demo-block">
|
|
128
|
+
<h3 class="pr-u-margin0">
|
|
129
|
+
Left <button class="button mod-S" (click)="slidingLeft = !slidingLeft">{{ slidingLeft ? 'Show' : 'Hide' }}</button>
|
|
130
|
+
</h3>
|
|
131
|
+
@if (!slidingLeft) {
|
|
132
|
+
<div class="animated-block" [@slideAnimation]="'left'">Slide from left</div>
|
|
133
|
+
}
|
|
134
|
+
</div>
|
|
135
|
+
<div class="grid-column ng-demo-block">
|
|
136
|
+
<h3 class="pr-u-margin0">
|
|
137
|
+
Right
|
|
138
|
+
<button class="button mod-S" (click)="slidingRight = !slidingRight">{{ slidingRight ? 'Show' : 'Hide' }}</button>
|
|
139
|
+
</h3>
|
|
140
|
+
@if (!slidingRight) {
|
|
141
|
+
<div class="animated-block" [@slideAnimation]="'right'">Slide from right</div>
|
|
142
|
+
}
|
|
143
|
+
</div>
|
|
144
|
+
<div class="grid-column ng-demo-block">
|
|
145
|
+
<h3 class="pr-u-margin0">
|
|
146
|
+
Top
|
|
147
|
+
<button class="button mod-S" (click)="slidingTop = !slidingTop">{{ slidingTop ? 'Show' : 'Hide' }}</button>
|
|
148
|
+
</h3>
|
|
149
|
+
@if (!slidingTop) {
|
|
150
|
+
<div class="animated-block" [@slideAnimation]="'top'">Slide from top</div>
|
|
151
|
+
}
|
|
152
|
+
</div>
|
|
153
|
+
<div class="grid-column ng-demo-block">
|
|
154
|
+
<h3 class="pr-u-margin0">
|
|
155
|
+
Bottom
|
|
156
|
+
<button class="button mod-S" (click)="slidingBottom = !slidingBottom">{{ slidingBottom ? 'Show' : 'Hide' }}</button>
|
|
157
|
+
</h3>
|
|
158
|
+
@if (!slidingBottom) {
|
|
159
|
+
<div class="animated-block" [@slideAnimation]="'bottom'">Slide from bottom</div>
|
|
160
|
+
}
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
\`,
|
|
164
|
+
styleUrl: './animations.scss',
|
|
165
|
+
animations: [luSlideAnimationFactory()],
|
|
166
|
+
})
|
|
167
|
+
class SlideAnimationStory {
|
|
168
|
+
slidingLeft = false;
|
|
169
|
+
slidingRight = false;
|
|
170
|
+
slidingTop = false;
|
|
171
|
+
slidingBottom = false;
|
|
172
|
+
}
|
|
173
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Mixins SCSS
|
|
2
|
+
|
|
3
|
+
# Icônes
|
|
4
|
+
|
|
5
|
+
Génère une icône grâce à la mixin `icon.generate`.
|
|
6
|
+
|
|
7
|
+
```css
|
|
8
|
+
@use '@lucca-front/icons/src/commons/utils/icon';
|
|
9
|
+
@include icon.generate('heart');
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Il est très souvent utile d'utiliser la mixin generate dans un `::before`
|
|
13
|
+
|
|
14
|
+
# Loadings
|
|
15
|
+
|
|
16
|
+
## Spinner
|
|
17
|
+
|
|
18
|
+
```css
|
|
19
|
+
@use '@lucca-front/scss/src/commons/utils/loading';
|
|
20
|
+
@include loading.spinner();
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
| Propriété | Valeur par défaut | Description |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| `$size` | `1.5rem` | Taille du spinner |
|
|
26
|
+
|
|
27
|
+
## Gradient
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
@use '@lucca-front/scss/src/commons/utils/loading';
|
|
31
|
+
@include loading.gradient();
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
| Propriété | Valeur par défaut | Description |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| `$backgroundColor` | `transparent` | Couleur de fond |
|
|
37
|
+
| `$color` | `color.transparentize(var(--palettes-neutral-900), 0.1)` | Couleur du dégradé |
|
|
38
|
+
|
|
39
|
+
# Media et container queries
|
|
40
|
+
|
|
41
|
+
Vous pouvez utiliser les breakpoints via les mixins `max` et `min`ou `between` disponibles pour les medias ou les containers.
|
|
42
|
+
|
|
43
|
+
```css
|
|
44
|
+
@use '@lucca-front/scss/src/commons/utils/media';
|
|
45
|
+
@use '@lucca-front/scss/src/commons/utils/container';
|
|
46
|
+
|
|
47
|
+
@include media.max('M') {…}
|
|
48
|
+
@include media.min('M') {…}
|
|
49
|
+
@include media.between('S', 'L') {…}
|
|
50
|
+
|
|
51
|
+
@include container.max('M') {…}
|
|
52
|
+
@include container.min('M') {…}
|
|
53
|
+
@include container.between('S', 'L') {…}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Si les valeurs prédéfinies ne conviennent pas, les valeurs personnalisées des breakpoints sont autorisées et converties automatiquement de `px` en `em`.
|
|
57
|
+
|
|
58
|
+
Il est possible pour les containers queries de nommer le container avec le paramètre `$name`.
|
|
59
|
+
|
|
60
|
+
Le paramètre `$property: height` permet de basculer les tests de la largeur à la hauteur.
|
|
61
|
+
|
|
62
|
+
# Masquage
|
|
63
|
+
|
|
64
|
+
Masque visuellement un élément sans pour autant le retirer de la couche sémantique du document.
|
|
65
|
+
|
|
66
|
+
```css
|
|
67
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
68
|
+
@include a11y.mask;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
La classe `.pr-u-mask` fait directement appel à cette mixin.
|
|
72
|
+
|
|
73
|
+
# Focus
|
|
74
|
+
|
|
75
|
+
Marque le focus d'un élément de la page. Il est recommandé d'utiliser `:focus-visible` plutôt que `:focus` afin de n'afficher le contour de sélection seulement lors de la navigation clavier ainsi que pour les éléments nécessitant une saisie clavier (ex: textfield).
|
|
76
|
+
|
|
77
|
+
```css
|
|
78
|
+
@use '@lucca-front/scss/src/commons/utils/a11y';
|
|
79
|
+
@include a11y.focusVisible();
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
| Propriété | Valeur par défaut | Description |
|
|
83
|
+
| --- | --- | --- |
|
|
84
|
+
| `$borderRadius` | `false` | `border-radius` du composant au focus. |
|
|
85
|
+
| `$offset` | `2px` | Espace entre le composant et l'outline. |
|
|
86
|
+
| `$color` | `var(--palettes-product-700)` | Couleur de l'outline. |
|
|
87
|
+
|
|
88
|
+
# Colors
|
|
89
|
+
|
|
90
|
+
## Transparantize
|
|
91
|
+
|
|
92
|
+
Permet d'appliquer une transparence à une couleur.
|
|
93
|
+
|
|
94
|
+
```css
|
|
95
|
+
@use '@lucca-front/scss/src/commons/utils/color';
|
|
96
|
+
color.transparentize(var(--palettes-neutral-900), 0.6);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
# Overflow scrollblock [v19.2]
|
|
100
|
+
|
|
101
|
+
Permet de bloquer l'affichage de la barre de scroll sur le body, afin d'éviter un double scroll lors de l'affichage d'une fenêtre de dialogue.
|
|
102
|
+
|
|
103
|
+
```css
|
|
104
|
+
@use '@lucca-front/scss/src/commons/utils/overflow';
|
|
105
|
+
@include overflow.scrollblock;
|
|
106
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Nombres / LuNumber
|
|
2
|
+
|
|
3
|
+
# Content
|
|
4
|
+
|
|
5
|
+
**Exemple : Base**
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
/* 1. Importer LuNumberPipe */
|
|
9
|
+
import { LuNumberPipe } from '@lucca-front/ng/number';
|
|
10
|
+
|
|
11
|
+
@NgModule({
|
|
12
|
+
imports: [LuNumberPipe]
|
|
13
|
+
})
|
|
14
|
+
class StoriesModule {}
|
|
15
|
+
|
|
16
|
+
/* 2. Template */
|
|
17
|
+
<table class="table">
|
|
18
|
+
<thead class="table-head">
|
|
19
|
+
<tr class="table-head-row">
|
|
20
|
+
<th class="table-head-row-cell">Number</th>
|
|
21
|
+
<th class="table-head-row-cell mod-alignRight">Value</th>
|
|
22
|
+
<th class="table-head-row-cell mod-alignRight">Value aligned</th>
|
|
23
|
+
</tr>
|
|
24
|
+
</thead>
|
|
25
|
+
<tbody class="table-body">
|
|
26
|
+
<tr class="table-body-row">
|
|
27
|
+
<td class="table-body-row-cell">π</td>
|
|
28
|
+
<td class="table-body-row-cell mod-alignRight">{{ pi }}</td>
|
|
29
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="pi | luNumber"></td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr class="table-body-row">
|
|
32
|
+
<td class="table-body-row-cell">Dix</td>
|
|
33
|
+
<td class="table-body-row-cell mod-alignRight">{{ ten }}</td>
|
|
34
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="ten | luNumber"></td>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr class="table-body-row">
|
|
37
|
+
<td class="table-body-row-cell"><span>e</span></td>
|
|
38
|
+
<td class="table-body-row-cell mod-alignRight">{{ e }}</td>
|
|
39
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="e | luNumber"></td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr class="table-body-row">
|
|
42
|
+
<td class="table-body-row-cell">Milliers</td>
|
|
43
|
+
<td class="table-body-row-cell mod-alignRight">{{ thousands }}</td>
|
|
44
|
+
<td class="table-body-row-cell mod-alignRight" [innerHtml]="thousands | luNumber"></td>
|
|
45
|
+
</tr>
|
|
46
|
+
</tbody>
|
|
47
|
+
</table>
|
|
48
|
+
|
|
49
|
+
/* 3. Utiliser le pipe luNumber */
|
|
50
|
+
@Component({
|
|
51
|
+
selector: 'numbers-stories',
|
|
52
|
+
templateUrl: './numbers.stories.html',
|
|
53
|
+
})
|
|
54
|
+
class NumbersStory {
|
|
55
|
+
public pi = 3.141592;
|
|
56
|
+
public ten = 10;
|
|
57
|
+
public e = 2.71727;
|
|
58
|
+
public thousands = 12345;
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
**Exemple : Décimaux**
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
/* 1. Importer LuNumberPipe */
|
|
65
|
+
import { LuNumberPipe } from '@lucca-front/ng/number';
|
|
66
|
+
|
|
67
|
+
@NgModule({
|
|
68
|
+
imports: [LuNumberPipe]
|
|
69
|
+
})
|
|
70
|
+
class StoriesModule {}
|
|
71
|
+
|
|
72
|
+
/* 2. Utiliser le pipe luNumber */
|
|
73
|
+
@Component({
|
|
74
|
+
selector: 'precision-stories',
|
|
75
|
+
template: \`<code [innerHTML]="value | luNumber: precision"></code>\`,
|
|
76
|
+
})
|
|
77
|
+
class PrecisionStory {
|
|
78
|
+
value = input<number>();
|
|
79
|
+
precision = input<number>();
|
|
80
|
+
}
|
|
81
|
+
```
|