Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LF18.1 #2829

Merged
merged 66 commits into from
Jun 18, 2024
Merged

LF18.1 #2829

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
547f465
Merge remote-tracking branch 'origin/master' into master-to-rc
GuillaumeNury Apr 22, 2024
0ff9a5d
feat(date): add humanize pipe
GuillaumeNury Apr 19, 2024
6ac7343
Merge pull request #2751 from LuccaSA/master-to-rc
GuillaumeNury Apr 22, 2024
16bda22
ref(date): rename luHumanize to luHumanizeDate
GuillaumeNury Apr 22, 2024
490ab87
Merge pull request #2753 from LuccaSA/humanize
GuillaumeNury Apr 23, 2024
e09bd29
feat(button): add `delete` input that adds `mod-delete` to button cla…
Supamiu May 6, 2024
78b3aeb
feat(user): allow string union type for luUserInput format (#2789)
GuillaumeNury May 14, 2024
401d21a
Add support for the `rows` attribute (#2788)
vvalentin-lucca May 14, 2024
0202f50
docs(core): fix EnumValue example (#2793)
GuillaumeNury May 16, 2024
dc98027
fixed(lu-dialog): handled canClose option in LuDialogService (#2733)
obraud May 16, 2024
1cb5212
Remove invalid properties (#2792)
vvalentin-lucca May 17, 2024
c28b0cc
refactor(lu-tooltip): simplify code and implement ellipsis system (#2…
Supamiu May 23, 2024
656b1e9
feat(button): apply default type set to `button` when not present on …
Supamiu May 23, 2024
fdfbfef
Focus visible for tooltip informations in labels (#2803)
vvalentin-lucca May 23, 2024
daf98ed
docs(readme): replace quotes in code blocks (#2813)
belabb-z May 23, 2024
67cfa22
Table.layout fixed.and.sticked.overhaul.2 (#2743)
BertrandPodevin May 27, 2024
f0ea878
Remove border for prefix and suffix and add mod-alignRight (#2810)
vvalentin-lucca May 28, 2024
07c93ee
User Popover : adjustments + HTML story (#2812)
vvalentin-lucca May 28, 2024
d9811c2
Empty state titles (#2814)
vvalentin-lucca May 28, 2024
ea6c6b8
Merge remote-tracking branch 'origin/master' into rc.master.update
GuillaumeNury May 28, 2024
aa1135a
Component loading refacto (#2626)
vvalentin-lucca May 28, 2024
6258855
Merge pull request #2817 from LuccaSA/rc.master.update
GuillaumeNury May 28, 2024
8a5f022
fix(tooltip): wrong disable transform
GuillaumeNury May 28, 2024
3301255
Merge pull request #2818 from LuccaSA/fix/tooltip.disabled
GuillaumeNury May 28, 2024
28bd512
feat(multi-select): new counter displayer (#2800)
Supamiu May 28, 2024
4c8f192
docs: add missing information about sorting input
lmullot May 28, 2024
28c3eae
Merge pull request #2820 from LuccaSA/update-simple-select-stories
GuillaumeNury May 28, 2024
e2f55e2
[comment] New component (#2796)
LucasPat May 28, 2024
92bfcb5
[Table] Reduce shadow intensity (#2824)
jeremie-lucca May 29, 2024
f68850d
refactor(empty-states): make title and description optional (#2774)
Supamiu May 30, 2024
9e91449
Add an option to change font family (#2801)
vvalentin-lucca May 30, 2024
a050a5d
[User popover] longDate > shortDate (#2825)
jeremie-lucca May 30, 2024
3e2d538
Fix small typo (#2808)
vvalentin-lucca May 30, 2024
63128c8
[Form] Full form example & header classes (#2563)
jeremie-lucca May 31, 2024
684c8c5
feat(date): allow string union type for `lu-date-select`,`lu-date-pic…
F2X May 31, 2024
cc6dbc6
Merge pull request #2826 from LuccaSA/feat/granularity-as-string
GuillaumeNury May 31, 2024
85430b2
[Error page] Title color, font size & apostrophe (#2827)
jeremie-lucca May 31, 2024
8ea8902
[Breadcrumb] Icon & color (#2828)
jeremie-lucca May 31, 2024
2aee2a6
Refacto menu + mod-vertical + scrollBox (#2565)
vvalentin-lucca May 31, 2024
7cf8b20
chore(docs): fix indent in dialog.md
g-drouard Jun 3, 2024
ee9d013
Merge remote-tracking branch 'origin/rc' into rc.to.master
GuillaumeNury Jun 3, 2024
3a3df40
chore: fix post angular 18 lint issue
GuillaumeNury Jun 3, 2024
3bfb235
fix(radio): add name attribute for keyboard navigation with Firefox (…
vvalentin-lucca Jun 3, 2024
8377ad9
fix(select): replace search by clue story user select (#2836)
JeanBeaurepaire Jun 4, 2024
9dcad56
fix(dialog): autofocus first-input (#2837)
g-drouard Jun 4, 2024
8cca3ed
Merge pull request #2833 from LuccaSA/rc.to.master
GuillaumeNury Jun 4, 2024
a963e1e
feat: add german translations
g-drouard Jun 6, 2024
297a583
Merge pull request #2849 from LuccaSA/add-german-translations
GuillaumeNury Jun 6, 2024
c16be37
feat(components): add time-picker and duration-picker inputs (#2669)
lfaldalucca Jun 10, 2024
0140c58
[Avatar] Update size mods (#2848)
jeremie-lucca Jun 10, 2024
916c3a5
Rosetta mixin (#2840)
vvalentin-lucca Jun 10, 2024
2456e0c
[Toasts] PortalContent as message (#2853)
guillerot Jun 10, 2024
5ea0125
[Callout] Cover actions container (#2845)
jeremie-lucca Jun 11, 2024
a3a6a15
[Select multi] Align checkbox on top (#2854)
jeremie-lucca Jun 11, 2024
3ab3c0f
[Toast] UI refactor (#2841)
jeremie-lucca Jun 11, 2024
cbae43b
[Multiselect] Fix +N chip S size (#2855)
jeremie-lucca Jun 11, 2024
38179c7
FEAT skeleton components batch 1 (#2762)
MarcFairbrother Jun 11, 2024
67a01c1
feat(popover): new `luPopover2` directive for better DX, better acces…
Supamiu Jun 17, 2024
f77ab47
feat(portal): handle templateRef context update
GuillaumeNury Jun 17, 2024
4664d64
ref(core-select): do not replace option outlet context as it is depre…
GuillaumeNury Jun 17, 2024
4b0b066
Merge pull request #2862 from LuccaSA/ref/embedded.view.deprecation
GuillaumeNury Jun 17, 2024
33a258f
Footer: responsive + container + css vars + story (#2843)
vvalentin-lucca Jun 17, 2024
176977d
[2078] Add multiple users param on LuUserDisplayPipe (#2088)
g-drouard Jun 17, 2024
343f067
[Table] Rename sticky & fixed legacy > deprecated (#2864)
jeremie-lucca Jun 18, 2024
cbd937b
18.1 deprecated elements : removed (#2865)
jeremie-lucca Jun 18, 2024
ab5de59
[Tag] Angular component (#2850)
jeremie-lucca Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .storybook/msw/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ const usersSearchHandler = genericHandler(
// Get and parse params from query params
{
paging: (p) => p,
search: (search) => search.toLowerCase(),
clue: (clue) => clue.toLowerCase(),
id: (ids) => ids.split(',').map((id) => parseInt(id)),
},
{
// Apply filters to items
search: applyFilter((user, { search }) => `${user.firstName} ${user.lastName}`.includes(search)),
clue: applyFilter((user, { clue }) => `${user.firstName.toLowerCase()} ${user.lastName.toLowerCase()}`.includes(clue)),
id: applyFilter((user, { id }) => id.includes(user.id)),
// Then paging/limiting
paging: applyV3Paging,
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"source.fixAll.markdownlint": "explicit"
}
}
}
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ To import all components, replace the previous code by the 3 following lines (no

```
// Import styles
@forward '@lucca-front/icons/src/main;
@forward '@lucca-front/scss/src/main-all;
@forward '@lucca-front/ng/src/main;
@forward '@lucca-front/icons/src/main';
@forward '@lucca-front/scss/src/main-all';
@forward '@lucca-front/ng/src/main';
```

For custom imports, check our [advanced usage documentation](https://prisme.lucca.io/94310e217/p/950783-chargement-des-composants).
Expand All @@ -113,9 +113,9 @@ In angular.json, we suggest to add a couple of entries to your paths:
"build": {
"options": {
"stylePreprocessorOptions": {
includePaths": [
"includePaths": [
"src/scss",
"node_modules",
"node_modules"
]
},
},
Expand Down
44 changes: 22 additions & 22 deletions docs/dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,25 +181,25 @@ Dans le cas où vous souhaitez utiliser un formulaire au sein d’une dialog box

```html
<lu-dialog>
<!--form = new FormGroup({
example: new FormControl('', Validators.required)
})-->
<form [formControl]="form" class="dialog-formOptionnal">
<lu-dialog-header>Header with Form inside</lu-dialog-header>

<lu-dialog-content>
<lu-form-field label="Example input">
<lu-text-input formControlName="example" placeholder="This will be focused if autoFocus is set to first-input"></lu-text-input>
</lu-form-field>
</lu-dialog-content>

<lu-dialog-footer>
<div class="footer-content">Optional footer text</div>
<div class="footer-actions">
<button type="submit" luButton [disabled]="!form.valid" luDialogClose>Submit</button>
<button type="button" luButton="text" luDialogDismiss>Cancel</button>
</div>
</lu-dialog-footer>
</form>
</lu-dialog>
```
<!--form = new FormGroup({
example: new FormControl('', Validators.required)
})-->
<form [formControl]="form" class="dialog-formOptionnal">
<lu-dialog-header>Header with Form inside</lu-dialog-header>

<lu-dialog-content>
<lu-form-field label="Example input">
<lu-text-input formControlName="example" placeholder="This will be focused if autoFocus is set to first-input"></lu-text-input>
</lu-form-field>
</lu-dialog-content>

<lu-dialog-footer>
<div class="footer-content">Optional footer text</div>
<div class="footer-actions">
<button type="submit" luButton [disabled]="!form.valid" luDialogClose>Submit</button>
<button type="button" luButton="text" luDialogDismiss>Cancel</button>
</div>
</lu-dialog-footer>
</form>
</lu-dialog>
```
63 changes: 63 additions & 0 deletions docs/popover2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Popover2

Popover2 est la nouvelle version de LuPopover, il a été choisi de partir sur une implémentation différente et donc, afin d'éviter les impacts d'un breaking change,
une nouvelle directive a vu le jour `luPopover2`, dans un nouveau point d'entrée, `@lucca-front/ng/popover2`.

## Mise en place

Popover2 est fait pour être simple à utiliser, il suffit de l'importer dans votre environement avec `configureLuPopover()` (à placer dans les providers de votre `AppModule` ou lors du bootstrap de `AppComponent` si vous êtes en full standalone).

## Utilisation

Pour utiliser `Popover2` dans un template, il suffit d'appliquer la directive `[luPopover2]` en renseignant en input une référence à un `ng-template`, exemple:

```angular2html

<button luButton [luPopover2]="popoverTpl"></button>
<ng-template #popoverTpl>
Je suis le contenu du popover !
<button luButton>Et je suis un bouton accessible au clavier !</button>
</ng-template>
```

## Paramètres et position

Seule la référence au `ng-template` est obligatoire, mais la directive propose des paramètres pour divers usages:

- `luPopoverPosition` par défaut à `above`, permet de régler la position voulue du popover, en cas d'espace manquant dans le rendu, le composant tentera de se positionner d'abord à l'opposé de la position demandée, puis les deux autres à tour de rôle.
- `luPopoverDisabled` permet de désactiver totalement le popover.
- `customPositions` à utiliser avec précaution, permet de renseigner des `ConnectionPositionPair` pour totalement remplacer la logique de positionnement, très utile pour les menus qui doivent être `below` mais alignés sur un côté plutôt que l'autre.

Les positions custom doivent être déclarées dans le `component.ts` sous forme d'un tableau et passés dans le template en input, exemple pour un menu qui s'ouvre en dessous à gauche (ou au dessus à gauche si pas de place):

component.ts:

```typescript
import { ConnectionPositionPair } from "@angular/cdk/overlay";

export class ExampleComponent {
protected positions: ConnectionPositionPair[] = [
// En dessous, aligné à gauche
new ConnectionPositionPair(
{ originX: "left", originY: "bottom" },
{ overlayX: "left", overlayY: "top" }
),
// Au dessus, aligné à gauche
new ConnectionPositionPair(
{ originX: "left", originY: "top" },
{ overlayX: "left", overlayY: "bottom" }
)
]
}
```

component.html:

```angular2html

<button luButton [luPopover2]="popoverTpl" [customPositions]="positions"></button>
<ng-template #popoverTpl>
Je suis le contenu du popover !
<button luButton>Et je suis un bouton accessible au clavier !</button>
</ng-template>
```
Loading