@cityway/bo-ui 1.1.0-beta028 → 1.1.0-beta029
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/cityway-bo-ui-1.1.0-beta029.tgz +0 -0
- package/docs/components/custom-list.md +177 -151
- package/docs/components/drag-n-drop-list.md +4 -4
- package/docs/components/drag-n-drop-nested-list.md +1 -1
- package/docs/components/page-header.md +18 -3
- package/docs/components/pagination.md +1 -1
- package/fesm2022/cityway-bo-ui.mjs +41 -11
- package/fesm2022/cityway-bo-ui.mjs.map +1 -1
- package/index.d.ts +220 -191
- package/package.json +2 -2
- package/styles/bo-ui.styles.min.css +1 -1
- package/styles/bo-ui.styles.min.css.map +1 -1
- package/cityway-bo-ui-1.1.0-beta028.tgz +0 -0
|
Binary file
|
|
@@ -1,151 +1,177 @@
|
|
|
1
|
-
# `cw-custom-list` — Liste descriptive
|
|
2
|
-
|
|
3
|
-
> Lib : `@cityway/bo-ui` · Sélecteur : `cw-custom-list` · Standalone : oui
|
|
4
|
-
> Import : `import { CustomListComponent } from '@cityway/bo-ui';`
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 1. Rôle & quand l'utiliser
|
|
9
|
-
|
|
10
|
-
Liste descriptive en lecture seule : affiche une suite de couples **libellé / valeur**, organisés en **groupes** optionnellement titrés, dans une carte. Couvre :
|
|
11
|
-
|
|
12
|
-
- l'affichage d'une fiche de **détail** (récapitulatif d'une entité) ;
|
|
13
|
-
- le rendu **typé** des valeurs : texte, date, booléen (Oui/Non), HTML ;
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
| `'
|
|
47
|
-
| `'
|
|
48
|
-
| `'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
{ label: '_LABEL.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
1
|
+
# `cw-custom-list` — Liste descriptive
|
|
2
|
+
|
|
3
|
+
> Lib : `@cityway/bo-ui` · Sélecteur : `cw-custom-list` · Standalone : oui
|
|
4
|
+
> Import : `import { CustomListComponent } from '@cityway/bo-ui';`
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 1. Rôle & quand l'utiliser
|
|
9
|
+
|
|
10
|
+
Liste descriptive en lecture seule : affiche une suite de couples **libellé / valeur**, organisés en **groupes** optionnellement titrés, dans une carte. Couvre :
|
|
11
|
+
|
|
12
|
+
- l'affichage d'une fiche de **détail** (récapitulatif d'une entité) ;
|
|
13
|
+
- le rendu **typé** des valeurs : texte, date, booléen (Oui/Non), HTML, badge de statut ;
|
|
14
|
+
- une **action** en bout de ligne (lien « Réinitialiser », « Modifier »…) ;
|
|
15
|
+
- le **masquage automatique** des champs vides (`hideIfEmpty`) ;
|
|
16
|
+
- la **traduction** des libellés, et optionnellement des valeurs (`translateValue`).
|
|
17
|
+
|
|
18
|
+
À ne PAS utiliser pour : un tableau de données paginé/triable (utiliser `cw-table`), un formulaire éditable (utiliser `cw-form-field`).
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. API
|
|
23
|
+
|
|
24
|
+
### Inputs
|
|
25
|
+
|
|
26
|
+
| Input | Type | Défaut | Description |
|
|
27
|
+
|-------|------|--------|-------------|
|
|
28
|
+
| `customListData` | `DataCustomListGroup[]` | `[]` | Signal input (`input()`). Liste des groupes à afficher. Chaque groupe contient un titre optionnel et un tableau de champs. Voir types §3. |
|
|
29
|
+
|
|
30
|
+
> Composant en lecture seule : **aucun Output**.
|
|
31
|
+
|
|
32
|
+
### Méthode interne
|
|
33
|
+
|
|
34
|
+
| Méthode | Signature | Description |
|
|
35
|
+
|---------|-----------|-------------|
|
|
36
|
+
| `hasValue` | `(value: any): boolean` | Utilisée par le template pour `hideIfEmpty`. Renvoie `false` pour `null`/`undefined`, chaîne vide (après `trim`), tableau vide, objet sans clés. |
|
|
37
|
+
|
|
38
|
+
### Contenu projeté
|
|
39
|
+
|
|
40
|
+
Aucun (`ng-content`). Tout le rendu est piloté par `customListData`.
|
|
41
|
+
|
|
42
|
+
### Rendu par type de champ (`field.type`)
|
|
43
|
+
|
|
44
|
+
| `type` | Rendu |
|
|
45
|
+
|--------|-------|
|
|
46
|
+
| `'date'` | `field.value` via le pipe `date: 'short'`. |
|
|
47
|
+
| `'boolean'` | clé i18n `_COMMON._PRO_SENTENCE.YES` / `.NO` selon la valeur, via `translate`. |
|
|
48
|
+
| `'html'` | `field.value` injecté tel quel via `[innerHTML]`. |
|
|
49
|
+
| `'badge'` | `cw-badge` choisi dans `field.badges` par `value` (même mapping que `TableColumn.badges`). Libellé : `badge.label` (clé i18n), sinon la valeur. Valeur hors mapping : badge `light-light` portant la valeur. Depuis la beta029. |
|
|
50
|
+
| `'text'` / absent (défaut) | `field.value` brut ; traduit via `translate` si `translateValue` est `true`. |
|
|
51
|
+
|
|
52
|
+
> Le **libellé** de chaque champ est rendu via la clé i18n `_LABEL.COLON` (interpolation `{ label }`), le `label` lui-même étant d'abord passé au pipe `translate`.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 3. Types
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
interface DataCustomListGroup {
|
|
60
|
+
title?: string; // clé i18n du titre de groupe (passée à translate) ; titre masqué si absent
|
|
61
|
+
fields: DataCustomList[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface DataCustomList {
|
|
65
|
+
label: string; // clé i18n du libellé (passée à translate)
|
|
66
|
+
value: any; // valeur affichée (string, Date, boolean, HTML…)
|
|
67
|
+
type?: 'date' | 'boolean' | 'text' | 'html' | 'badge'; // mode de rendu ; défaut = texte brut
|
|
68
|
+
badges?: BadgeConfig[]; // type 'badge' : mapping valeur -> badge (cf. TableColumn.badges)
|
|
69
|
+
action?: DataCustomListAction; // action en bout de ligne
|
|
70
|
+
translateValue?: boolean; // si true et type texte : value est une clé i18n (passée à translate)
|
|
71
|
+
context?: any; // champ libre (non utilisé par le rendu actuel)
|
|
72
|
+
hideIfEmpty?: boolean; // si true : champ masqué quand hasValue(value) est false
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface DataCustomListAction {
|
|
76
|
+
label: string; // clé i18n
|
|
77
|
+
click: () => void;
|
|
78
|
+
disabled?: boolean | (() => boolean); // fonction réévaluée à chaque détection de changements
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`BadgeConfig` est celui de `cw-table` (`{ value, label?, type, withIcon?, iconPosition? }`).
|
|
83
|
+
|
|
84
|
+
**Action de ligne** : rendue en `cw-button` de type `link`, à droite de la ligne (libellé et valeur restent à gauche). Ne pas la combiner avec `hideIfEmpty` si l'action doit rester accessible quand la valeur est vide.
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
fields: [
|
|
88
|
+
{ label: 'ACCOUNT.STATUS', value: account.status, type: 'badge', badges: [
|
|
89
|
+
{ value: 'ACTIVE', label: 'ACCOUNT.STATUS_ACTIVE', type: BadgeTypeEnum.lightSuccess },
|
|
90
|
+
{ value: 'LOCKED', label: 'ACCOUNT.STATUS_LOCKED', type: BadgeTypeEnum.lightDanger },
|
|
91
|
+
] },
|
|
92
|
+
{ label: 'ACCOUNT.PASSWORD', value: '••••••', action: {
|
|
93
|
+
label: 'ACCOUNT.RESET_PASSWORD', click: () => this.resetPassword(), disabled: () => this.resetting(),
|
|
94
|
+
} },
|
|
95
|
+
]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
> ℹ️ `context` est présent dans le modèle mais **non consommé** par le template actuel.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 4. Exemples
|
|
103
|
+
|
|
104
|
+
### Fiche de détail (groupes titrés, types variés)
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<cw-custom-list [customListData]="details"></cw-custom-list>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
import { CustomListComponent, DataCustomListGroup } from '@cityway/bo-ui';
|
|
112
|
+
|
|
113
|
+
// imports: [CustomListComponent]
|
|
114
|
+
|
|
115
|
+
details: DataCustomListGroup[] = [
|
|
116
|
+
{
|
|
117
|
+
title: '_SECTION.IDENTITY',
|
|
118
|
+
fields: [
|
|
119
|
+
{ label: '_LABEL.LAST_NAME', value: 'Dupont', type: 'text' },
|
|
120
|
+
{ label: '_LABEL.BIRTHDATE', value: new Date('1985-06-15'), type: 'date' },
|
|
121
|
+
{ label: '_LABEL.STATUS', value: true, type: 'boolean' },
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Champs masqués si vides
|
|
128
|
+
|
|
129
|
+
```ts
|
|
130
|
+
details: DataCustomListGroup[] = [
|
|
131
|
+
{
|
|
132
|
+
title: '_SECTION.IDENTITY',
|
|
133
|
+
fields: [
|
|
134
|
+
{ label: '_LABEL.LAST_NAME', value: 'Martin', type: 'text' },
|
|
135
|
+
{ label: '_LABEL.FIRST_NAME', value: '', type: 'text', hideIfEmpty: true }, // masqué
|
|
136
|
+
{ label: '_LABEL.EMAIL', value: null, type: 'text', hideIfEmpty: true }, // masqué
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
];
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Valeur traduite (clé i18n en valeur)
|
|
143
|
+
|
|
144
|
+
```ts
|
|
145
|
+
{ label: '_LABEL.ROLE', value: '_ROLE.ADMIN', type: 'text', translateValue: true }
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Valeur HTML
|
|
149
|
+
|
|
150
|
+
```ts
|
|
151
|
+
{ label: '_LABEL.NOTES', value: '<strong>Note</strong> : à rappeler.', type: 'html' }
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 5. Notes d'intégration
|
|
157
|
+
|
|
158
|
+
- **i18n** : `group.title` et `field.label` passent par `translate` → fournir des **clés**, pas du texte en dur. Idem `field.value` quand `translateValue` est `true`.
|
|
159
|
+
- **Clés requises** : le template s'appuie sur `_LABEL.COLON` (format « libellé : ») et, pour les booléens, sur `_COMMON._PRO_SENTENCE.YES` / `_COMMON._PRO_SENTENCE.NO` — ces clés doivent exister dans les fichiers de traduction de l'app.
|
|
160
|
+
- **Sécurité HTML** : `type: 'html'` injecte la valeur via `[innerHTML]` → ne jamais y mettre de contenu utilisateur non assaini.
|
|
161
|
+
- **Titre de groupe** : un groupe sans `title` n'affiche pas de `<h3>` mais rend bien ses champs.
|
|
162
|
+
- **Signal input** : `customListData` est un `input()` (Angular signals) → binder via `[customListData]="..."`.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 6. Prompts-types (génération assistée)
|
|
167
|
+
|
|
168
|
+
> Exemples de formulation pour demander à Claude de générer du code consommant ce composant.
|
|
169
|
+
|
|
170
|
+
- « Affiche une fiche de détail *Identité* (nom, prénom, date de naissance, statut actif/inactif) avec `cw-custom-list`, libellés en clés i18n. »
|
|
171
|
+
- « Ajoute un groupe *Contact* avec email et téléphone, en masquant les champs vides. »
|
|
172
|
+
- « Rends une valeur de rôle traduite (clé i18n) et une note en HTML dans la liste descriptive. »
|
|
173
|
+
|
|
174
|
+
**Rappels pour Claude :**
|
|
175
|
+
- Importer `CustomListComponent` (standalone) dans les `imports` du composant hôte.
|
|
176
|
+
- Typer les données avec `DataCustomListGroup[]` ; binder via `[customListData]`.
|
|
177
|
+
- Utiliser des clés i18n pour `title`, `label` (et `value` si `translateValue: true`) ; vérifier la présence des clés `_LABEL.COLON` et `_COMMON._PRO_SENTENCE.YES/NO`.
|
|
@@ -52,8 +52,8 @@ Le rendu d'une carte est délégué à `itemTemplate`. Chaque carte est envelopp
|
|
|
52
52
|
</cw-drag-n-drop-list>
|
|
53
53
|
|
|
54
54
|
<ng-template #tpl let-item>
|
|
55
|
-
<div class="d-flex justify-
|
|
56
|
-
<span>{{ item.label }} <span class="text-
|
|
55
|
+
<div class="d-flex-h justify-between w-100">
|
|
56
|
+
<span>{{ item.label }} <span class="text-light">({{ item.code }})</span></span>
|
|
57
57
|
<span class="fw-bold">#{{ item.order }}</span>
|
|
58
58
|
</div>
|
|
59
59
|
</ng-template>
|
|
@@ -157,9 +157,9 @@ available: DragItem[] = [
|
|
|
157
157
|
</cw-drag-n-drop-list>
|
|
158
158
|
|
|
159
159
|
<ng-template #tpl let-item>
|
|
160
|
-
<div class="d-flex justify-
|
|
160
|
+
<div class="d-flex-h justify-between w-100">
|
|
161
161
|
<span><strong>{{ item.label }}</strong></span>
|
|
162
|
-
<span class="text-
|
|
162
|
+
<span class="text-light">({{ item.code }}) — #{{ item.order }}</span>
|
|
163
163
|
</div>
|
|
164
164
|
</ng-template>
|
|
165
165
|
```
|
|
@@ -312,7 +312,7 @@ onReorder(items: DragItem[]) { this.items = items; }
|
|
|
312
312
|
<cw-drag-n-drop-nested-list [items]="items" [column]="column" [itemTemplate]="tpl" />
|
|
313
313
|
|
|
314
314
|
<ng-template #tpl let-item let-depth="depth">
|
|
315
|
-
<p class="fs
|
|
315
|
+
<p class="fs-xs">
|
|
316
316
|
{{ item.title ?? item.label }} <small>(niveau {{ depth + 1 }})</small>
|
|
317
317
|
</p>
|
|
318
318
|
</ng-template>
|
|
@@ -28,7 +28,7 @@ En-tête de page transverse du back-office. Couvre :
|
|
|
28
28
|
| Input | Type | Défaut | Description |
|
|
29
29
|
|-------|------|--------|-------------|
|
|
30
30
|
| `title` | `string` | — (**requis**) | Titre de la page. Passé au pipe `translate` (fournir une **clé i18n**). |
|
|
31
|
-
| `description` | `string` | — | Description sous le titre.
|
|
31
|
+
| `description` | `string` | — | Description sous le titre : clé i18n traduite par le composant, rendue **en texte** (interpolation). ⚠️ Depuis la beta029 ; elle était rendue en `[innerHTML]`. Contenu riche (badges, lien) : slot `[cwPageHeaderDescription]`, prioritaire (§2 bis). |
|
|
32
32
|
| `showBack` | `boolean` | `true` | Affiche le bouton retour (libellé `_COMMON._FORM.BACK`, icône `left1`). |
|
|
33
33
|
| `actions` | `PageHeaderActionEnum[]` | `[]` | Liste des actions à afficher. Voir enum §3. L'ordre d'affichage est imposé par le template (cf. §5). |
|
|
34
34
|
| `isLoading` | `PageHeaderActionState` | `{}` | Map action → `boolean` ; passe l'action en état chargement. |
|
|
@@ -45,13 +45,14 @@ En-tête de page transverse du back-office. Couvre :
|
|
|
45
45
|
|
|
46
46
|
## 2 bis. Slots de projection
|
|
47
47
|
|
|
48
|
-
Trois emplacements, dans l'ordre du template :
|
|
48
|
+
Trois emplacements dans la barre d'actions, dans l'ordre du template, plus un sous le titre (description riche) :
|
|
49
49
|
|
|
50
50
|
| Slot | Sélecteur | Position dans la barre | Usage |
|
|
51
51
|
|------|-----------|------------------------|-------|
|
|
52
52
|
| Import | `cwPageHeaderImport` | en tête de barre, avant l'export | `<cw-import-button>` |
|
|
53
53
|
| Export | `cwPageHeaderExport` | après l'import, avant le slot libre | `<cw-export-button>` |
|
|
54
54
|
| Libre | *(aucun)* | après l'export, avant *Réinitialiser* | tout le reste |
|
|
55
|
+
| Description | `cwPageHeaderDescription` | sous le titre, à la place de `description` (même classe `page-header-description`) | badges `cw-badge`, lien, donnée mise en forme. **L'emporte sur l'input `description`** s'il est rempli. Depuis la beta029. |
|
|
55
56
|
|
|
56
57
|
```html
|
|
57
58
|
<cw-page-header [title]="'DOMAIN.USERS.TITLE'" [actions]="[actionEnum.add]" (action)="onAction($event)">
|
|
@@ -209,6 +210,19 @@ Configuration de `importConfig` / `exportOptions` : voir `import-button.md` et
|
|
|
209
210
|
<cw-page-header [title]="'DOMAIN.DASHBOARD.TITLE'" [showBack]="false" />
|
|
210
211
|
```
|
|
211
212
|
|
|
213
|
+
### Description riche (badges, donnée)
|
|
214
|
+
|
|
215
|
+
```html
|
|
216
|
+
<cw-page-header [title]="'USERS.DETAIL.TITLE'">
|
|
217
|
+
<span cwPageHeaderDescription class="d-flex-h gap-xs items-center">
|
|
218
|
+
{{ user().email }}
|
|
219
|
+
<cw-badge [type]="badgeType.lightSuccess" [label]="'USERS.STATUS.ACTIVE'" />
|
|
220
|
+
</span>
|
|
221
|
+
</cw-page-header>
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
`{{ user().email }}` est interpolé : `&` et `<` s'affichent tels quels, sans échappement manuel.
|
|
225
|
+
|
|
212
226
|
### Action personnalisée projetée
|
|
213
227
|
|
|
214
228
|
```html
|
|
@@ -221,7 +235,8 @@ Configuration de `importConfig` / `exportOptions` : voir `import-button.md` et
|
|
|
221
235
|
|
|
222
236
|
## 5. Notes d'intégration
|
|
223
237
|
|
|
224
|
-
- **i18n** : `title` et `description` passent par `translate` → fournir des **clés**, pas du texte en dur.
|
|
238
|
+
- **i18n** : `title` et `description` passent par `translate` → fournir des **clés**, pas du texte en dur.
|
|
239
|
+
- **Description en texte brut (beta029, ⚠️ breaking)** : `description` est interpolée, plus rendue en `[innerHTML]` (même modèle que `cw-card.subtitle` en beta024). Une donnée (email, nom saisi) s'affiche telle quelle, sans échappement côté appelant ; en revanche du HTML dans la valeur **ou dans sa traduction** s'affiche désormais en texte. Migration : déplacer ce contenu dans `<span cwPageHeaderDescription>…</span>` ; pour des badges, utiliser `cw-badge` plutôt que recopier le balisage `<span class="badge …">`. Retirer aussi tout échappement manuel ajouté pour l'ancien `innerHTML`.
|
|
225
240
|
- **Libellés des actions** : non paramétrables. Ils sont câblés sur les clés `_COMMON._ACTION.*` (`ADD`, `SAVE`, `RESET`) et `_COMMON._FORM.BACK` pour le retour. Ces clés doivent exister dans les bundles i18n de l'app.
|
|
226
241
|
- **Ordre d'affichage** : imposé par le template, indépendant de l'ordre du tableau `actions` et de l'ordre d'écriture du contenu projeté → *slot import*, *slot export*, *slot libre*, Réinitialiser, Ajouter, Enregistrer. Lu de droite à gauche : Enregistrer, Réinitialiser, zone custom, Exporter, Importer — les actions sur le formulaire au plus près de l'action principale, les échanges de données à l'extérieur.
|
|
227
242
|
- **Bouton retour** : navigue via `Location.back()` (historique du navigateur). Aucune sortie ni cible configurable ; masquer avec `[showBack]="false"` si non pertinent.
|