@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,114 @@
|
|
|
1
|
+
# switchfield β Code & Implementation
|
|
2
|
+
|
|
3
|
+
π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-switchfield-angular--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Mots-clΓ©s : interrupteur, toggle, on, off, activation
|
|
8
|
+
|
|
9
|
+
Component selector : `lu-switch-input`
|
|
10
|
+
|
|
11
|
+
### Field
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { FormsModule } from '@angular/forms';
|
|
15
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
16
|
+
import { FORM_FIELD_SIZE, FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
17
|
+
import { CheckboxInputComponent, SwitchInputComponent } from '@lucca-front/ng/forms';
|
|
18
|
+
import { INLINE_MESSAGE_STATE } from '@lucca-front/ng/inline-message';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<lu-form-field label="Label" tooltip="Tooltip message" inlineMessage="Helper text" inlineMessageState="default">
|
|
23
|
+
<lu-switch-input [(ngModel)]="model.example" required />
|
|
24
|
+
</lu-form-field>
|
|
25
|
+
<pr-story-model-display>{{ model.example }}</pr-story-model-display>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## HTML/CSS
|
|
29
|
+
|
|
30
|
+
Classe CSS : `.switchField`
|
|
31
|
+
|
|
32
|
+
### Field disabled
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
@forward '@lucca-front/scss/src/components/switchField';
|
|
36
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
37
|
+
@forward '@lucca-front/scss/src/components/inlineMessage';
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<div class="form-field">
|
|
42
|
+
<label class="formLabel" for="ID">Label</label>
|
|
43
|
+
<span class="switchField">
|
|
44
|
+
<input type="checkbox" class="switchField-input" id="ID" aria-describedby="IDmessage" disabled />
|
|
45
|
+
<span class="switchField-icon" aria-hidden="true"><span class="switchField-icon-check"></span></span>
|
|
46
|
+
</span>
|
|
47
|
+
<div class="inlineMessage" id="IDmessage">
|
|
48
|
+
<p class="inlineMessage-content">Helper text</p>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Field invalid
|
|
54
|
+
|
|
55
|
+
```css
|
|
56
|
+
@forward '@lucca-front/scss/src/components/switchField';
|
|
57
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
58
|
+
@forward '@lucca-front/scss/src/components/inlineMessage';
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
```html
|
|
62
|
+
<div class="form-field">
|
|
63
|
+
<label class="formLabel" for="ID">Label</label>
|
|
64
|
+
<span class="switchField">
|
|
65
|
+
<input type="checkbox" class="switchField-input" id="ID" aria-describedby="IDmessage" aria-invalid="true" />
|
|
66
|
+
<span class="switchField-icon" aria-hidden="true"><span class="switchField-icon-check"></span></span>
|
|
67
|
+
</span>
|
|
68
|
+
<div class="inlineMessage" id="IDmessage">
|
|
69
|
+
<p class="inlineMessage-content">Helper text</p>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Field size
|
|
75
|
+
|
|
76
|
+
```css
|
|
77
|
+
@forward '@lucca-front/scss/src/components/switchField';
|
|
78
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
79
|
+
@forward '@lucca-front/scss/src/components/inlineMessage';
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```html
|
|
83
|
+
<div class="form-field mod-S">
|
|
84
|
+
<label class="formLabel" for="ID">Label</label>
|
|
85
|
+
<span class="switchField">
|
|
86
|
+
<input type="checkbox" class="switchField-input" id="ID" aria-describedby="IDmessage" />
|
|
87
|
+
<span class="switchField-icon" aria-hidden="true"><span class="switchField-icon-check"></span></span>
|
|
88
|
+
</span>
|
|
89
|
+
<div class="inlineMessage" id="IDmessage">
|
|
90
|
+
<p class="inlineMessage-content">Helper text</p>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Field
|
|
96
|
+
|
|
97
|
+
```css
|
|
98
|
+
@forward '@lucca-front/scss/src/components/switchField';
|
|
99
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
100
|
+
@forward '@lucca-front/scss/src/components/inlineMessage';
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
```html
|
|
104
|
+
<div class="form-field">
|
|
105
|
+
<label class="formLabel" for="ID">Label</label>
|
|
106
|
+
<span class="switchField">
|
|
107
|
+
<input type="checkbox" class="switchField-input" id="ID" aria-describedby="IDmessage" />
|
|
108
|
+
<span class="switchField-icon" aria-hidden="true"><span class="switchField-icon-check"></span></span>
|
|
109
|
+
</span>
|
|
110
|
+
<div class="inlineMessage" id="IDmessage">
|
|
111
|
+
<p class="inlineMessage-content">Helper text</p>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# switchfield
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { SwitchInputComponent } from '@lucca-front/ng/forms';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### SwitchInputComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selector:** `lu-switch-input`
|
|
14
|
+
|
|
15
|
+
## Related files
|
|
16
|
+
|
|
17
|
+
- π [Code & implementation](./switchfield.component.md)
|
|
18
|
+
|
|
19
|
+
- π― [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/switchfield/switchfield.figma.md)
|
|
20
|
+
- π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-switchfield-angular--docs)
|
|
21
|
+
|
|
22
|
+
## Changelog
|
|
23
|
+
|
|
24
|
+
_Aucun changement d'API entre v21.4.2 et v22.0.0._
|
|
25
|
+
|
|
26
|
+
### Notes de release (ZeroHeight)
|
|
27
|
+
|
|
28
|
+
#### 21.1.0
|
|
29
|
+
|
|
30
|
+
##### Added
|
|
31
|
+
|
|
32
|
+
- `presentation`: when the parent `lu-form-field` is switched to presentation mode, the switch now renders its state as a readable `yes`/`no` value instead of the interactive control.
|
|
33
|
+
|
|
34
|
+
#### 20.3.3
|
|
35
|
+
|
|
36
|
+
##### Fixed
|
|
37
|
+
|
|
38
|
+
- `styles`: corrected the bundled SCSS import to point at the `switchField` styles so the control is displayed correctly.
|
|
39
|
+
|
|
40
|
+
#### 20.2.3
|
|
41
|
+
|
|
42
|
+
##### Fixed
|
|
43
|
+
|
|
44
|
+
- `styles`: the component now imports its own styles through `styleUrl`, so switch styling no longer needs to be pulled in globally.
|
|
45
|
+
|
|
46
|
+
#### 20.2.0
|
|
47
|
+
|
|
48
|
+
##### Changed
|
|
49
|
+
|
|
50
|
+
- `hover`/`active`: updated the hover and active state colors to use darker palette shades.
|
|
51
|
+
|
|
52
|
+
#### 18.2.4
|
|
53
|
+
|
|
54
|
+
##### Fixed
|
|
55
|
+
|
|
56
|
+
- `opacity`: the native input now uses `opacity: 0.0001` instead of `0`, keeping it focusable and announced by screen readers in Safari.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# tableofcontent β Code & Implementation
|
|
2
|
+
|
|
3
|
+
π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-navigation-tableofcontent-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Mots-clés : table des matières, sommaire, ancres
|
|
8
|
+
|
|
9
|
+
Component selector : `lu-table-of-content`
|
|
10
|
+
|
|
11
|
+
### Of content
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { TableOfContentComponent, TableOfContentLinkDirective } from '@lucca-front/ng/table-of-content';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<lu-table-of-content>
|
|
19
|
+
<a *luTableOfContentLink class="is-active" href="#" (click)="$event.preventDefault()">Section 1</a>
|
|
20
|
+
<a *luTableOfContentLink href="#" (click)="$event.preventDefault()">Section 2</a>
|
|
21
|
+
<a *luTableOfContentLink href="#" (click)="$event.preventDefault()">Section 3</a>
|
|
22
|
+
<a *luTableOfContentLink href="#" (click)="$event.preventDefault()">Section 4</a>
|
|
23
|
+
</lu-table-of-content>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## HTML/CSS
|
|
27
|
+
|
|
28
|
+
Classe CSS : `.tableOfContent`
|
|
29
|
+
|
|
30
|
+
La table des matière est sticky par défaut. Ajoutez une valeur top à  `tableOfContent` pour l'activer.
|
|
31
|
+
|
|
32
|
+
### Of content
|
|
33
|
+
|
|
34
|
+
```css
|
|
35
|
+
@forward '@lucca-front/scss/src/components/tableOfContent';
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<nav class="tableOfContent">
|
|
40
|
+
<ul class="tableOfContent-list">
|
|
41
|
+
<li class="tableOfContent-list-item">
|
|
42
|
+
<a href="#" class="tableOfContent-list-item-action is-active">Section 1</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li class="tableOfContent-list-item">
|
|
45
|
+
<a href="#" class="tableOfContent-list-item-action">Section 2</a>
|
|
46
|
+
</li>
|
|
47
|
+
<li class="tableOfContent-list-item">
|
|
48
|
+
<a href="#" class="tableOfContent-list-item-action">Section 3</a>
|
|
49
|
+
</li>
|
|
50
|
+
<li class="tableOfContent-list-item">
|
|
51
|
+
<a href="#" class="tableOfContent-list-item-action">Section 4</a>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</nav>
|
|
55
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# tableofcontent
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { TableOfContentLinkDirective, TableOfContentComponent } from '@lucca-front/ng/table-of-content';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### TableOfContentLinkDirective (directive)
|
|
12
|
+
|
|
13
|
+
**Selector:** `[luTableOfContentLink]`
|
|
14
|
+
|
|
15
|
+
### TableOfContentComponent (component)
|
|
16
|
+
|
|
17
|
+
**Selector:** `lu-table-of-content`
|
|
18
|
+
|
|
19
|
+
## Related files
|
|
20
|
+
|
|
21
|
+
- π [Code & implementation](./tableofcontent.component.md)
|
|
22
|
+
|
|
23
|
+
- π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-navigation-tableofcontent-angular-basic--docs)
|
|
24
|
+
|
|
25
|
+
## Changelog
|
|
26
|
+
|
|
27
|
+
_Aucun changement d'API entre v21.4.2 et v22.0.0._
|
|
28
|
+
|
|
29
|
+
### Notes de release (ZeroHeight)
|
|
30
|
+
|
|
31
|
+
#### 21.0.0
|
|
32
|
+
|
|
33
|
+
##### Added
|
|
34
|
+
|
|
35
|
+
- `lu-table-of-content` component (`tableOfContent`) and the `[luTableOfContentLink]` directive to declare each entry.
|
|
36
|
+
|
|
37
|
+
#### 18.2.0
|
|
38
|
+
|
|
39
|
+
##### Changed
|
|
40
|
+
|
|
41
|
+
- Colors of the disabled entries.
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# tags β Code & Implementation
|
|
2
|
+
|
|
3
|
+
π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-tags-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-tag`
|
|
8
|
+
|
|
9
|
+
### Tag
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { TAG_SIZE, TagComponent } from '@lucca-front/ng/tag';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<lu-tag label="Text" />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## HTML/CSS
|
|
20
|
+
|
|
21
|
+
Classe CSS : `.tag`
|
|
22
|
+
|
|
23
|
+
### Basic
|
|
24
|
+
|
|
25
|
+
```css
|
|
26
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<span class="tag">Text</span>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Clickable
|
|
34
|
+
|
|
35
|
+
```css
|
|
36
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<a href="#" class="tag">Text</a>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Ia
|
|
44
|
+
|
|
45
|
+
```css
|
|
46
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<span class="tag mod-AI">Text</span>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Icon
|
|
54
|
+
|
|
55
|
+
```css
|
|
56
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```html
|
|
60
|
+
<span class="tag">
|
|
61
|
+
<span class="lucca-icon icon-heart" aria-hidden="true"></span>
|
|
62
|
+
<span class="tag-content">Text</span>
|
|
63
|
+
</span>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Outlined
|
|
67
|
+
|
|
68
|
+
```css
|
|
69
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<span class="tag mod-outlined">Text</span>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Palettes
|
|
77
|
+
|
|
78
|
+
```css
|
|
79
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```html
|
|
83
|
+
<span class="tag palette-product">Text</span>
|
|
84
|
+
<span class="tag palette-success">Text</span>
|
|
85
|
+
<span class="tag palette-warning">Text</span>
|
|
86
|
+
<span class="tag palette-error">Text</span>
|
|
87
|
+
<span class="tag palette-kiwi">Text</span>
|
|
88
|
+
<span class="tag palette-lime">Text</span>
|
|
89
|
+
<span class="tag palette-cucumber">Text</span>
|
|
90
|
+
<span class="tag palette-mint">Text</span>
|
|
91
|
+
<span class="tag palette-glacier">Text</span>
|
|
92
|
+
<span class="tag palette-lagoon">Text</span>
|
|
93
|
+
<span class="tag palette-blueberry">Text</span>
|
|
94
|
+
<span class="tag palette-lavender">Text</span>
|
|
95
|
+
<span class="tag palette-grape">Text</span>
|
|
96
|
+
<span class="tag palette-watermelon">Text</span>
|
|
97
|
+
<span class="tag palette-pumpkin">Text</span>
|
|
98
|
+
<span class="tag palette-pineapple">Text</span>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Sizes
|
|
102
|
+
|
|
103
|
+
```css
|
|
104
|
+
@forward '@lucca-front/scss/src/components/tag';
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<span class="tag mod-L">Text</span>
|
|
109
|
+
<span class="tag mod-M">Text</span>
|
|
110
|
+
<!-- 20.3 -->
|
|
111
|
+
<span class="tag mod-S">Text</span>
|
|
112
|
+
```
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# tags
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { TagComponent } from '@lucca-front/ng/tag';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## API Reference
|
|
10
|
+
|
|
11
|
+
### TagComponent (component)
|
|
12
|
+
|
|
13
|
+
**Selectors:** `lu-tag`, `pr-tag`
|
|
14
|
+
|
|
15
|
+
#### Inputs
|
|
16
|
+
|
|
17
|
+
| Property | Binding name | Type | Default | Required | Transform | Description |
|
|
18
|
+
|----------|-------------|------|---------|----------|-----------|-------------|
|
|
19
|
+
| `label` | `label` | `string` | β | β
| β | Modifie le texte affichΓ© par le composant. |
|
|
20
|
+
| `size` | `size` | `'S' \| 'M' \| 'L'` | `'M'` | β | β | Modifie la taille du tag. |
|
|
21
|
+
| `palette` | `palette` | `Palette \| DecorativePalette` | `'none'` | β | β | β |
|
|
22
|
+
| `outlined` | `outlined` | `boolean` | `false` | β | `booleanAttribute` | Applique un style secondaire au tag. |
|
|
23
|
+
| `link` | `link` | `string` | β | β | β | β |
|
|
24
|
+
| `icon` | `icon` | `LuccaIcon \| null` | `null` | β | β | Ajoute une icΓ΄ne au tag. |
|
|
25
|
+
| `withEllipsis` | `withEllipsis` | `boolean` | `false` | β | `booleanAttribute` | [v20.3] Ellipse le texte et ajoute une tooltip lorsque le label est trop long. |
|
|
26
|
+
| `AI` | `AI` | `boolean` | `false` | β | `booleanAttribute` | [v20.3] Applique les couleurs IA. |
|
|
27
|
+
|
|
28
|
+
## Type definitions
|
|
29
|
+
|
|
30
|
+
- [`DecorativePalette`](../../types/DecorativePalette.md) β 12 available values
|
|
31
|
+
- [`LuccaIcon`](../../types/LuccaIcon.md) β 585 available values
|
|
32
|
+
|
|
33
|
+
## Related files
|
|
34
|
+
|
|
35
|
+
- π [Code & implementation](./tags.component.md)
|
|
36
|
+
- π¨ [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/tags/tags.design.md)
|
|
37
|
+
- π― [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/tags/tags.figma.md)
|
|
38
|
+
- π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-tags-angular-basic--docs)
|
|
39
|
+
|
|
40
|
+
## Changelog
|
|
41
|
+
|
|
42
|
+
> 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.
|
|
43
|
+
|
|
44
|
+
### 22.0.0
|
|
45
|
+
|
|
46
|
+
+ selector `pr-tag`
|
|
47
|
+
|
|
48
|
+
### Notes de release (ZeroHeight)
|
|
49
|
+
|
|
50
|
+
#### 20.3.0
|
|
51
|
+
|
|
52
|
+
##### Added
|
|
53
|
+
|
|
54
|
+
- `AI` input to render the tag with the AI styling (`mod-AI`).
|
|
55
|
+
- `withEllipsis` input to truncate the label with an ellipsis and reveal the full text in a tooltip when it overflows.
|
|
56
|
+
- `size` now supports the `S` (small) value.
|
|
57
|
+
|
|
58
|
+
#### 20.2.3
|
|
59
|
+
|
|
60
|
+
##### Fixed
|
|
61
|
+
|
|
62
|
+
- `position` now defaults to `static` to prevent the tag from creating an unintended stacking context.
|
|
63
|
+
|
|
64
|
+
#### 19.2.6
|
|
65
|
+
|
|
66
|
+
##### Changed
|
|
67
|
+
|
|
68
|
+
- `.tag-content` element is now always rendered around the label, even when no icon is displayed.
|
|
69
|
+
|
|
70
|
+
##### Fixed
|
|
71
|
+
|
|
72
|
+
- `cursor` now inherits from the parent instead of being forced to `default`.
|
|
73
|
+
|
|
74
|
+
#### 19.2.4
|
|
75
|
+
|
|
76
|
+
##### Fixed
|
|
77
|
+
|
|
78
|
+
- `icon` display size corrected (default `XS`, and `S` for the large tag).
|
|
79
|
+
|
|
80
|
+
#### 19.2.1
|
|
81
|
+
|
|
82
|
+
##### Fixed
|
|
83
|
+
|
|
84
|
+
- `icon` vertical alignment fixed by centering the tag content.
|
|
85
|
+
|
|
86
|
+
#### 19.1.5
|
|
87
|
+
|
|
88
|
+
##### Changed
|
|
89
|
+
|
|
90
|
+
- `icon` input now accepts `undefined`.
|
|
91
|
+
|
|
92
|
+
#### 18.3.0
|
|
93
|
+
|
|
94
|
+
##### Changed
|
|
95
|
+
|
|
96
|
+
- `size` input replaces the `S` option with `L`.
|
|
97
|
+
- `palette` input now also accepts `DecorativePalette` values.
|
|
98
|
+
|
|
99
|
+
#### 18.2.1
|
|
100
|
+
|
|
101
|
+
##### Fixed
|
|
102
|
+
|
|
103
|
+
- `mod-outlined` text color now uses the palette's 800 shade for correct contrast.
|
|
104
|
+
|
|
105
|
+
#### 18.1.4
|
|
106
|
+
|
|
107
|
+
##### Fixed
|
|
108
|
+
|
|
109
|
+
- `size` no longer produces an invalid `mod-undefined` CSS class when left unset.
|
|
110
|
+
|
|
111
|
+
#### 18.1.0
|
|
112
|
+
|
|
113
|
+
##### Added
|
|
114
|
+
|
|
115
|
+
- `lu-tag` component (selector `lu-tag`) with `label`, `size`, `palette`, `outlined`, `link` and `icon` inputs.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# text-flow β Code & Implementation
|
|
2
|
+
|
|
3
|
+
π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-text-flow-angular-basic--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-text-flow`
|
|
8
|
+
|
|
9
|
+
### Basic
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { TextFlowComponent } from '@lucca-front/ng/text-flow';
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<lu-text-flow>
|
|
17
|
+
<h1>Heading 1</h1>
|
|
18
|
+
<h2>Heading 2</h2>
|
|
19
|
+
<p>Paragraph</p>
|
|
20
|
+
<p>Paragraph</p>
|
|
21
|
+
<h2>Heading 2</h2>
|
|
22
|
+
<p>Paragraph</p>
|
|
23
|
+
<ul>
|
|
24
|
+
<li>List item</li>
|
|
25
|
+
<li>List item</li>
|
|
26
|
+
<li>List item</li>
|
|
27
|
+
</ul>
|
|
28
|
+
<h3>Heading 3</h3>
|
|
29
|
+
<p>Paragraph</p>
|
|
30
|
+
<h4>Heading 4</h4>
|
|
31
|
+
<ol>
|
|
32
|
+
<li>List item</li>
|
|
33
|
+
<li>List item</li>
|
|
34
|
+
<li>List item</li>
|
|
35
|
+
</ol>
|
|
36
|
+
</lu-text-flow>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## HTML/CSS
|
|
40
|
+
|
|
41
|
+
Classe CSS : `.textFlow`
|
|
42
|
+
|
|
43
|
+
### Basic
|
|
44
|
+
|
|
45
|
+
```css
|
|
46
|
+
@forward '@lucca-front/scss/src/components/textFlow';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```html
|
|
50
|
+
<div class="textFlow">
|
|
51
|
+
<h1>Heading 1</h1>
|
|
52
|
+
<h2>Heading 2</h2>
|
|
53
|
+
<p>Paragraph</p>
|
|
54
|
+
<p>Paragraph</p>
|
|
55
|
+
<h2>Heading 2</h2>
|
|
56
|
+
<p>Paragraph</p>
|
|
57
|
+
<ul>
|
|
58
|
+
<li>List item</li>
|
|
59
|
+
<li>List item</li>
|
|
60
|
+
<li>List item</li>
|
|
61
|
+
</ul>
|
|
62
|
+
<h3>Heading 3</h3>
|
|
63
|
+
<p>Paragraph</p>
|
|
64
|
+
<h4>Heading 4</h4>
|
|
65
|
+
<ol>
|
|
66
|
+
<li>List item</li>
|
|
67
|
+
<li>List item</li>
|
|
68
|
+
<li>List item</li>
|
|
69
|
+
</ol>
|
|
70
|
+
</div>
|
|
71
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# text-flow
|
|
2
|
+
|
|
3
|
+
## Import
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { TextFlowComponent } from '@lucca-front/ng/text-flow';
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Basic Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<lu-text-flow> <h1>Heading 1</h1> <h2>Heading 2</h2> <p>Paragraph</p> <p>Paragraph</p> <h2>Heading 2</h2> <p>Paragraph</p> <ul> <li>List item</li> <li>List item</li> <li>List item</li> </ul> <h3>Heading 3</h3> <p>Paragraph</p> <h4>Heading 4</h4> <ol> <li>List item</li> <li>List item</li> <li>List item</li> </ol>
|
|
13
|
+
</lu-text-flow>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## API Reference
|
|
17
|
+
|
|
18
|
+
### TextFlowComponent (component)
|
|
19
|
+
|
|
20
|
+
**Selector:** `lu-text-flow`
|
|
21
|
+
|
|
22
|
+
## Related files
|
|
23
|
+
|
|
24
|
+
- π [Code & implementation](./text-flow.component.md)
|
|
25
|
+
- π¨ [Design guidelines](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/text-flow/text-flow.design.md)
|
|
26
|
+
- π― [Figma design tokens](https://lucca-front.lucca.io/v22.0.6-rc.1/storybook/llms/references/components/text-flow/text-flow.figma.md)
|
|
27
|
+
- π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-texts-text-flow-angular-basic--docs)
|
|
28
|
+
|
|
29
|
+
## Changelog
|
|
30
|
+
|
|
31
|
+
_Aucun changement d'API entre v21.4.2 et v22.0.0._
|
|
32
|
+
|
|
33
|
+
### Notes de release (ZeroHeight)
|
|
34
|
+
|
|
35
|
+
#### 21.3.0
|
|
36
|
+
|
|
37
|
+
##### Changed
|
|
38
|
+
|
|
39
|
+
- Long words now wrap (`overflow-wrap`) instead of overflowing their container.
|
|
40
|
+
|
|
41
|
+
#### 21.1.0
|
|
42
|
+
|
|
43
|
+
##### Added
|
|
44
|
+
|
|
45
|
+
- `lu-text-flow` component (`textFlow`) wrapping the `textFlow` CSS component.
|
|
46
|
+
|
|
47
|
+
#### 19.3.0
|
|
48
|
+
|
|
49
|
+
##### Changed
|
|
50
|
+
|
|
51
|
+
- Margins on both ends of `.textFlow` are removed.
|
|
52
|
+
|
|
53
|
+
#### 19.2.3
|
|
54
|
+
|
|
55
|
+
##### Added
|
|
56
|
+
|
|
57
|
+
- `ol` lists support.
|
|
58
|
+
|
|
59
|
+
#### 19.2.0
|
|
60
|
+
|
|
61
|
+
##### Changed
|
|
62
|
+
|
|
63
|
+
- Titles no longer add their own spacing and inner margins were harmonized.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# textareafield β Code & Implementation
|
|
2
|
+
|
|
3
|
+
π [Storybook documentation](https://lucca-front.lucca.io/v22.0.0/storybook/?path=/docs/documentation-forms-fields-textareafield-angular--docs)
|
|
4
|
+
|
|
5
|
+
## Angular
|
|
6
|
+
|
|
7
|
+
Component selector : `lu-textarea-input`
|
|
8
|
+
|
|
9
|
+
### Field
|
|
10
|
+
|
|
11
|
+
```js
|
|
12
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
13
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
14
|
+
import { FORM_FIELD_SIZE, FormFieldComponent } from '@lucca-front/ng/form-field';
|
|
15
|
+
import { TextareaInputComponent } from '@lucca-front/ng/forms';
|
|
16
|
+
import { INLINE_MESSAGE_STATE } from '@lucca-front/ng/inline-message';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<lu-form-field
|
|
21
|
+
label="Label"
|
|
22
|
+
tooltip="Je suis un message dβaide"
|
|
23
|
+
inlineMessage="Helper text"
|
|
24
|
+
inlineMessageState="default"
|
|
25
|
+
counter="0"
|
|
26
|
+
>
|
|
27
|
+
<lu-textarea-input
|
|
28
|
+
autoResizeScrollIntoView="false"
|
|
29
|
+
autoResize="false"
|
|
30
|
+
required
|
|
31
|
+
placeholder="Placeholder"
|
|
32
|
+
rows="3"
|
|
33
|
+
[(ngModel)]="model.example"
|
|
34
|
+
/>
|
|
35
|
+
</lu-form-field>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## HTML/CSS
|
|
39
|
+
|
|
40
|
+
### Field
|
|
41
|
+
|
|
42
|
+
```css
|
|
43
|
+
@forward '@lucca-front/scss/src/components/formLabel';
|
|
44
|
+
@forward '@lucca-front/scss/src/components/inlineMessage';
|
|
45
|
+
@forward '@lucca-front/scss/src/components/textField';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<div class="form-field">
|
|
50
|
+
<label class="formLabel" id="IDlabel" for="ID">Label</label>
|
|
51
|
+
<div class="textField">
|
|
52
|
+
<div class="textField-input">
|
|
53
|
+
<textarea
|
|
54
|
+
rows="3"
|
|
55
|
+
id="ID"
|
|
56
|
+
class="textField-input-value"
|
|
57
|
+
aria-labelledby="IDlabel"
|
|
58
|
+
aria-describedby="IDmessage"
|
|
59
|
+
placeholder="Placeholder"
|
|
60
|
+
aria-invalid="false"
|
|
61
|
+
></textarea>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="inlineMessage" id="IDmessage">
|
|
65
|
+
<span aria-hidden="true" class="lucca-icon inlineMessage-statusIcon"></span>
|
|
66
|
+
<p class="inlineMessage-content">Helper text</p>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
```
|