@suntelecoms/ngx-dynamic-form 1.20.0 → 1.21.0

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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Angular](https://img.shields.io/badge/Angular-19-red?logo=angular)](https://angular.dev)
6
6
  [![Angular Material](https://img.shields.io/badge/Angular_Material-19-blue?logo=material-design)](https://material.angular.io)
7
- [![Version](https://img.shields.io/badge/version-1.20.0-brightgreen)](#changelog)
7
+ [![Version](https://img.shields.io/badge/version-1.21.0-brightgreen)](#changelog)
8
8
  [![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)
9
9
  [![Author](https://img.shields.io/badge/Author-Amadou%20Diallo-purple)](mailto:amadoumacbookpro38@gmail.com)
10
10
 
@@ -28,6 +28,7 @@
28
28
  - [Questionnaire Oui / Non — type questionnaire](#questionnaire-oui--non--type-questionnaire)
29
29
  - [Recherche d'une entité — type recherche](#recherche-dune-entité--type-recherche)
30
30
  - [Appel API et affichage de la réponse — type calcul](#appel-api-et-affichage-de-la-réponse--type-calcul)
31
+ - [Paires clé / valeur — type cle-valeur](#paires-clé--valeur--type-cle-valeur)
31
32
  - [Résumé d'un champ pour les récapitulatifs — resumeChamp](#résumé-dun-champ-pour-les-récapitulatifs--resumechamp)
32
33
  - [Envoi de fichiers vers une API — upload](#envoi-de-fichiers-vers-une-api--upload)
33
34
  - [Envoi, conversion et règles de saisie](#envoi-conversion-et-règles-de-saisie)
@@ -300,6 +301,7 @@ Pour disposer du **Form Builder + gestionnaire + rendu par URL** dans votre appl
300
301
  | `country-dial-code` | `mat-autocomplete` — recherche pays | Choix de l'indicatif téléphonique d'un pays comme attribut autonome (ex: `Pays.indicatifTel = '+221'`) — distinct de `phone` (qui saisit un numéro complet E.164) ; recherche par nom, indicatif ou code sur le même référentiel `PHONE_COUNTRIES`, drapeau SVG (`flag-icons`, même rendu que `phone`) dans chaque résultat, `formControl.value` = l'indicatif choisi (ex: `'+221'`) _(v1.7.13, drapeau SVG en v1.7.15)_ |
301
302
  | `recherche` | Barre de recherche + résultats + fiche | Recherche d'une entité via une API (serveur avec `{{q}}`, ou liste filtrée localement), fiche de la sélection avec « Changer » ; valeur = id de l'item, `champs` recopiés à plat — voir [type recherche](#recherche-dune-entité--type-recherche) _(v1.13.0)_ |
302
303
  | `calcul` | Bloc « résultat d'API » (lignes, total, messages) | Appelle une API à chaque changement des champs utilisés et affiche ce que la réponse contient (décompte de prime…) ; aucun montant calculé dans le navigateur — voir [type calcul](#appel-api-et-affichage-de-la-réponse--type-calcul) _(v1.16.0)_ |
304
+ | `cle-valeur` | Liste de paires Clé / Valeur (ajout, retrait) | Valeur : objet `{ clé: valeur }` (texte), `null` sans entrée ; clé manquante ou en double refusée — voir [type cle-valeur](#paires-clé--valeur--type-cle-valeur) _(v1.20.0)_ |
303
305
  | `questionnaire` | Questions Oui / Non + précision | Questionnaire de santé / d'activité ; valeur `{ q1: 'OUI', q1Precision: '…' }` ; masqué par `showWhen`, il n'est pas validé — voir [type questionnaire](#questionnaire-oui--non--type-questionnaire) _(v1.11.0, v1.16.3)_ |
304
306
 
305
307
  ### Mise en page
@@ -1111,6 +1113,31 @@ Aucun montant n'est calculé dans le navigateur : tout vient de l'API ; une erre
1111
1113
 
1112
1114
  ---
1113
1115
 
1116
+ ## Paires clé / valeur — type cle-valeur
1117
+
1118
+ _(v1.20.0)_ Saisie libre de paires clé / valeur, pour un objet `Map<String, String>` côté API (ex. propriétés
1119
+ complémentaires `others` d'un paramètre). Chaque ligne a une clé et une valeur, avec ajout et retrait.
1120
+
1121
+ ```json
1122
+ { "key": "others", "type": "cle-valeur", "label": "Propriétés complémentaires", "col": 12,
1123
+ "addLabel": "Ajouter une entrée", "emptyLabel": "Aucune propriété.",
1124
+ "cleValeur": { "libelleCle": "Propriété", "libelleValeur": "Valeur" } }
1125
+ ```
1126
+
1127
+ - **Valeur du champ** : objet `{ "couleur": "rouge", "taille": "XL" }`. Clés rognées, lignes entièrement vides
1128
+ ignorées ; sans aucune entrée la valeur est `null`, donc `validation.required` / `requiredWhen` s'appliquent tels quels.
1129
+ Une valeur posée de l'extérieur (valeurs initiales, `patchValue` en modification) reconstruit les lignes ; une
1130
+ valeur non textuelle est affichée en texte.
1131
+ - **Erreurs** (`errors.cleValeur`) : valeur sans clé (« Clé manquante à la ligne 2. ») ou clé en double
1132
+ (« Clé en double : « couleur ». »). Affichées une fois le champ touché ou l'envoi tenté.
1133
+ - **Options** : `cleValeur.libelleCle` / `cleValeur.libelleValeur` (défaut « Clé » / « Valeur »), `addLabel`,
1134
+ `emptyLabel`, `maxItems` (nombre maximum d'entrées), `hint`, `disabled` / `disabledWhen`.
1135
+ - **Récapitulatif** (`resumeChamp`) : « n entrée(s) », une ligne par clé.
1136
+ - Utilitaires purs exportés : `lignesDepuisObjet`, `objetDepuisLignes`, `erreurCleValeur`.
1137
+ - Form Builder : type « Clé / valeur » (groupe Choix).
1138
+
1139
+ ---
1140
+
1114
1141
  ## Résumé d'un champ pour les récapitulatifs — resumeChamp
1115
1142
 
1116
1143
  _(v1.17.0)_ `resumeChamp(field, valeur, valeurs)` renvoie le texte lisible d'un champ (`{ texte, lignes? }`, ou
@@ -1127,6 +1154,7 @@ plugin apparaît donc correctement partout sans autre changement.
1127
1154
  | file (+ upload) | noms des fichiers |
1128
1155
  | questionnaire | « 3 réponse(s), dont 1 « Oui » » + `lignes` : une par question (« Oui · précision ») |
1129
1156
  | calcul | `label` de la valeur |
1157
+ | cle-valeur | « n entrée(s) » + `lignes` : une par clé |
1130
1158
  | recherche | la valeur recopiée (`champs`) qui correspond au titre (ex. `souscripteurNom`), sinon la valeur |
1131
1159
  | repeater | « n ligne(s) » + `lignes` : une par ligne |
1132
1160
 
@@ -2625,6 +2653,9 @@ export type { StepGuard } // { url, method?, withFormValues?, resultKey?, e
2625
2653
 
2626
2654
  ## Changelog
2627
2655
 
2656
+ ### v1.21.0
2657
+ - Nouveau type **`cle-valeur`** : paires clé / valeur saisies librement, valeur du champ en objet `{ clé: valeur }` (ex. `others` d'un paramètre, `Map<String, String>` côté API) ; clé manquante ou en double refusée ; libellés des colonnes (`cleValeur`), `addLabel`, `emptyLabel`, `maxItems` ; récapitulatif « n entrée(s) » ; disponible dans le Form Builder.
2658
+
2628
2659
  ### v1.20.0
2629
2660
  - **Form Builder — éditeur JSON** (corps / affichage / valeur du calcul, componentConfig, optionDefaults, options avancées de la recherche, upload, remoteSearch.params) : numéros de ligne, coloration (clés, textes, nombres, booléens), modèles `{{…}}` mis en évidence, « Formater » (Ctrl / ⌘ + Maj + F), Tab = 2 espaces, état « JSON valide » ou erreur avec ligne et colonne, plein écran (Échap pour fermer).
2630
2661
  - **Form Builder — panneau de propriétés** plus large par défaut (380 px) et redimensionnable : poignée sur son bord gauche (glisser, flèches du clavier, double-clic = largeur par défaut), largeur gardée sur le poste.
@@ -3,7 +3,7 @@ import { inject, Injectable, InjectionToken, signal, makeEnvironmentProviders, E
3
3
  import { NgComponentOutlet, JsonPipe } from '@angular/common';
4
4
  import * as i1 from '@angular/forms';
5
5
  import { FormControl, FormGroup, FormArray, Validators, NG_VALUE_ACCESSOR, ReactiveFormsModule, FormsModule } from '@angular/forms';
6
- import { MatIconButton, MatButton } from '@angular/material/button';
6
+ import { MatButton, MatIconButton } from '@angular/material/button';
7
7
  import { MatIcon } from '@angular/material/icon';
8
8
  import * as i3$1 from '@angular/common/http';
9
9
  import { HttpClient, HttpErrorResponse, HttpBackend, HttpHeaders, HttpEventType, HttpParams } from '@angular/common/http';
@@ -37,7 +37,7 @@ function lirePath(obj, path) {
37
37
  return path.split('.').reduce((o, k) => o?.[k], obj);
38
38
  }
39
39
  const vide$5 = (v) => v === null || v === undefined || v === '';
40
- const estObjet = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
40
+ const estObjet$1 = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
41
41
  // ── Conditions ──────────────────────────────────────────────────────────────────
42
42
  function compareCondition(operator, value, conditionValue) {
43
43
  switch (operator) {
@@ -75,7 +75,7 @@ function withoutFields(config, keys) {
75
75
  const AVEC_OPTIONS = ['select', 'multiselect', 'radio'];
76
76
  /** Objet reçu pour un champ à valeur simple → sa valeur (displayValue, sinon value, sinon id). */
77
77
  function valeurDe(field, item) {
78
- if (!estObjet(item))
78
+ if (!estObjet$1(item))
79
79
  return item;
80
80
  for (const cle of [field.displayValue, 'value', 'id']) {
81
81
  if (cle && item[cle] !== undefined)
@@ -2280,6 +2280,221 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
2280
2280
  args: [{ required: true }]
2281
2281
  }] } });
2282
2282
 
2283
+ // Logique pure du type 'cle-valeur' (sans Angular) — testée par cle-valeur.spec.ts.
2284
+ const estObjet = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
2285
+ /** Objet { clé: valeur } → lignes (valeur initiale ou patch). Valeurs non textuelles converties en texte. */
2286
+ function lignesDepuisObjet(v) {
2287
+ if (!estObjet(v))
2288
+ return [];
2289
+ return Object.entries(v).map(([cle, valeur]) => ({
2290
+ cle,
2291
+ valeur: valeur === null || valeur === undefined ? '' : String(valeur),
2292
+ }));
2293
+ }
2294
+ /**
2295
+ * Lignes → objet { clé: valeur } : clés rognées, lignes entièrement vides ignorées.
2296
+ * Aucune entrée → null (la validation `required` habituelle s'applique alors telle quelle).
2297
+ */
2298
+ function objetDepuisLignes(lignes) {
2299
+ const out = {};
2300
+ for (const l of lignes) {
2301
+ const cle = (l.cle ?? '').trim();
2302
+ if (cle)
2303
+ out[cle] = l.valeur ?? '';
2304
+ }
2305
+ return Object.keys(out).length ? out : null;
2306
+ }
2307
+ /**
2308
+ * Erreur de saisie des lignes, sinon null : valeur sans clé, ou clé en double (une clé ne peut figurer
2309
+ * qu'une fois dans l'objet). `libelleCle` personnalise le mot « Clé » du message.
2310
+ */
2311
+ function erreurCleValeur(lignes, libelleCle = 'Clé') {
2312
+ const vues = new Set();
2313
+ for (let i = 0; i < lignes.length; i++) {
2314
+ const cle = (lignes[i].cle ?? '').trim();
2315
+ const valeur = lignes[i].valeur ?? '';
2316
+ if (!cle) {
2317
+ if (valeur !== '')
2318
+ return `${libelleCle} manquant${libelleCle === 'Clé' ? 'e' : ''} à la ligne ${i + 1}.`;
2319
+ continue;
2320
+ }
2321
+ if (vues.has(cle))
2322
+ return `${libelleCle} en double : « ${cle} ».`;
2323
+ vues.add(cle);
2324
+ }
2325
+ return null;
2326
+ }
2327
+
2328
+ /**
2329
+ * type: 'cle-valeur' — paires clé / valeur saisies librement (ex. propriétés `others` d'un paramètre).
2330
+ * Valeur du champ : objet { clé: valeur } (texte), null sans entrée — la validation `required` habituelle
2331
+ * s'applique donc telle quelle. Clé manquante ou en double : erreur `cleValeur` sur le champ.
2332
+ */
2333
+ class CleValeurFieldComponent {
2334
+ constructor() {
2335
+ /** Apparence des saisies (celle du formulaire, 'simple' rendu en 'outline'). */
2336
+ this.appearance = 'outline';
2337
+ this.cdr = inject(ChangeDetectorRef);
2338
+ this.subs = [];
2339
+ /** Dernière valeur écrite par ce composant (JSON) : un patch externe différent reconstruit les lignes. */
2340
+ this.dernier = 'null';
2341
+ this.lignes = signal([]);
2342
+ /** Clé manquante ou en double : le champ est invalide (l'objet ne peut pas les représenter). */
2343
+ this.validateur = () => {
2344
+ const e = erreurCleValeur(this.lignes(), this.libelleCle);
2345
+ return e ? { cleValeur: e } : null;
2346
+ };
2347
+ }
2348
+ get control() { return this.form.get(this.field.key); }
2349
+ get libelleCle() { return this.field.cleValeur?.libelleCle || 'Clé'; }
2350
+ get libelleValeur() { return this.field.cleValeur?.libelleValeur || 'Valeur'; }
2351
+ get obligatoire() { return !!this.field.validation?.required; }
2352
+ ngOnInit() {
2353
+ const c = this.control;
2354
+ this.lignes.set(lignesDepuisObjet(c.value));
2355
+ this.dernier = JSON.stringify(c.value ?? null);
2356
+ c.addValidators(this.validateur);
2357
+ c.updateValueAndValidity({ emitEvent: false });
2358
+ // Valeur posée de l'extérieur (valeurs initiales, patch en modification) : lignes reconstruites.
2359
+ this.subs.push(c.valueChanges.subscribe((v) => {
2360
+ const json = JSON.stringify(v ?? null);
2361
+ if (json !== this.dernier) {
2362
+ this.dernier = json;
2363
+ this.lignes.set(lignesDepuisObjet(v));
2364
+ }
2365
+ this.cdr.markForCheck();
2366
+ }));
2367
+ // Touché à l'envoi, activé / désactivé : réaffichage de l'erreur et de l'état.
2368
+ this.subs.push(c.events.subscribe(() => this.cdr.markForCheck()));
2369
+ }
2370
+ ngOnDestroy() {
2371
+ this.subs.forEach((s) => s.unsubscribe());
2372
+ this.control?.removeValidators(this.validateur);
2373
+ }
2374
+ peutAjouter() { return !this.field.maxItems || this.lignes().length < this.field.maxItems; }
2375
+ ajouter() {
2376
+ this.lignes.update((l) => [...l, { cle: '', valeur: '' }]);
2377
+ this.control.markAsDirty();
2378
+ }
2379
+ retirer(i) {
2380
+ this.lignes.update((l) => l.filter((_, j) => j !== i));
2381
+ this.ecrire();
2382
+ this.control.markAsTouched();
2383
+ }
2384
+ modifier(i, cle, valeur) {
2385
+ this.lignes.update((l) => l.map((ligne, j) => (j === i ? { ...ligne, [cle]: valeur } : ligne)));
2386
+ this.ecrire();
2387
+ }
2388
+ toucher() {
2389
+ this.control.markAsTouched();
2390
+ this.cdr.markForCheck();
2391
+ }
2392
+ /** Erreur du champ, affichée une fois touché (ou l'envoi tenté) : clé manquante / en double, puis requis. */
2393
+ erreur() {
2394
+ const c = this.control;
2395
+ if (!c.touched || !c.errors)
2396
+ return null;
2397
+ if (c.errors['cleValeur'])
2398
+ return c.errors['cleValeur'];
2399
+ if (c.errors['required'])
2400
+ return this.field.validation?.messages?.required || 'Ce champ est obligatoire';
2401
+ return null;
2402
+ }
2403
+ /** Lignes → objet écrit dans le contrôle (la validation relit les lignes courantes). */
2404
+ ecrire() {
2405
+ const objet = objetDepuisLignes(this.lignes());
2406
+ this.dernier = JSON.stringify(objet);
2407
+ this.control.setValue(objet);
2408
+ this.control.markAsDirty();
2409
+ }
2410
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CleValeurFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
2411
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: CleValeurFieldComponent, isStandalone: true, selector: "ngx-cle-valeur-field", inputs: { field: "field", form: "form", appearance: "appearance" }, ngImport: i0, template: `
2412
+ <fieldset class="ngx-cv" [class.ngx-cv--erreur]="erreur()" [disabled]="control.disabled">
2413
+ @if (field.label) {
2414
+ <legend class="ngx-cv__titre">{{ field.label }}@if (obligatoire) {<span aria-hidden="true"> *</span>}</legend>
2415
+ }
2416
+ @if (field.hint) { <p class="ngx-cv__aide">{{ field.hint }}</p> }
2417
+
2418
+ @if (!lignes().length) {
2419
+ <p class="ngx-cv__vide">{{ field.emptyLabel || 'Aucune entrée pour le moment.' }}</p>
2420
+ }
2421
+ <ol class="ngx-cv__lignes">
2422
+ @for (ligne of lignes(); track $index; let i = $index) {
2423
+ <li class="ngx-cv__ligne">
2424
+ <mat-form-field [appearance]="appearance" subscriptSizing="dynamic" class="ngx-cv__champ">
2425
+ <mat-label>{{ libelleCle }}</mat-label>
2426
+ <input matInput [id]="field.key + '-cle-' + (i + 1)" [value]="ligne.cle" autocomplete="off"
2427
+ (input)="modifier(i, 'cle', $any($event.target).value)" (blur)="toucher()" />
2428
+ </mat-form-field>
2429
+ <mat-form-field [appearance]="appearance" subscriptSizing="dynamic" class="ngx-cv__champ">
2430
+ <mat-label>{{ libelleValeur }}</mat-label>
2431
+ <input matInput [id]="field.key + '-valeur-' + (i + 1)" [value]="ligne.valeur" autocomplete="off"
2432
+ (input)="modifier(i, 'valeur', $any($event.target).value)" (blur)="toucher()" />
2433
+ </mat-form-field>
2434
+ <button mat-icon-button type="button" class="ngx-cv__suppr" (click)="retirer(i)"
2435
+ [attr.aria-label]="'Retirer l’entrée ' + (i + 1)">
2436
+ <mat-icon>delete_outline</mat-icon>
2437
+ </button>
2438
+ </li>
2439
+ }
2440
+ </ol>
2441
+
2442
+ <button mat-stroked-button type="button" class="ngx-cv__ajout" [disabled]="!peutAjouter()" (click)="ajouter()">
2443
+ <mat-icon>add</mat-icon> {{ field.addLabel || 'Ajouter une entrée' }}
2444
+ </button>
2445
+ @if (erreur(); as e) { <p class="ngx-cv__erreur" role="alert">{{ e }}</p> }
2446
+ </fieldset>
2447
+ `, isInline: true, styles: [":host{display:block}.ngx-cv{margin:0;padding:12px 16px 16px;border:1px solid rgba(0,0,0,.12);border-radius:12px;min-width:0}.ngx-cv--erreur{border-color:var(--mat-sys-error, #b3261e)}.ngx-cv__titre{padding:0 6px;font-weight:600}.ngx-cv__aide,.ngx-cv__vide{margin:4px 0 8px;color:#0009;font-size:.875rem}.ngx-cv__lignes{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.ngx-cv__ligne{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr) 40px;gap:8px;align-items:center}.ngx-cv__champ{width:100%}.ngx-cv__erreur{margin:8px 0 0;color:var(--mat-sys-error, #b3261e);font-size:.8125rem}@media(max-width:600px){.ngx-cv__ligne{grid-template-columns:1fr 40px}.ngx-cv__ligne>.ngx-cv__champ:nth-child(2){grid-column:1}.ngx-cv__suppr{grid-row:1 / span 2;grid-column:2}}\n"], dependencies: [{ kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
2448
+ }
2449
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: CleValeurFieldComponent, decorators: [{
2450
+ type: Component,
2451
+ args: [{ selector: 'ngx-cle-valeur-field', standalone: true, imports: [MatFormField, MatLabel, MatInput, MatButton, MatIconButton, MatIcon], changeDetection: ChangeDetectionStrategy.OnPush, template: `
2452
+ <fieldset class="ngx-cv" [class.ngx-cv--erreur]="erreur()" [disabled]="control.disabled">
2453
+ @if (field.label) {
2454
+ <legend class="ngx-cv__titre">{{ field.label }}@if (obligatoire) {<span aria-hidden="true"> *</span>}</legend>
2455
+ }
2456
+ @if (field.hint) { <p class="ngx-cv__aide">{{ field.hint }}</p> }
2457
+
2458
+ @if (!lignes().length) {
2459
+ <p class="ngx-cv__vide">{{ field.emptyLabel || 'Aucune entrée pour le moment.' }}</p>
2460
+ }
2461
+ <ol class="ngx-cv__lignes">
2462
+ @for (ligne of lignes(); track $index; let i = $index) {
2463
+ <li class="ngx-cv__ligne">
2464
+ <mat-form-field [appearance]="appearance" subscriptSizing="dynamic" class="ngx-cv__champ">
2465
+ <mat-label>{{ libelleCle }}</mat-label>
2466
+ <input matInput [id]="field.key + '-cle-' + (i + 1)" [value]="ligne.cle" autocomplete="off"
2467
+ (input)="modifier(i, 'cle', $any($event.target).value)" (blur)="toucher()" />
2468
+ </mat-form-field>
2469
+ <mat-form-field [appearance]="appearance" subscriptSizing="dynamic" class="ngx-cv__champ">
2470
+ <mat-label>{{ libelleValeur }}</mat-label>
2471
+ <input matInput [id]="field.key + '-valeur-' + (i + 1)" [value]="ligne.valeur" autocomplete="off"
2472
+ (input)="modifier(i, 'valeur', $any($event.target).value)" (blur)="toucher()" />
2473
+ </mat-form-field>
2474
+ <button mat-icon-button type="button" class="ngx-cv__suppr" (click)="retirer(i)"
2475
+ [attr.aria-label]="'Retirer l’entrée ' + (i + 1)">
2476
+ <mat-icon>delete_outline</mat-icon>
2477
+ </button>
2478
+ </li>
2479
+ }
2480
+ </ol>
2481
+
2482
+ <button mat-stroked-button type="button" class="ngx-cv__ajout" [disabled]="!peutAjouter()" (click)="ajouter()">
2483
+ <mat-icon>add</mat-icon> {{ field.addLabel || 'Ajouter une entrée' }}
2484
+ </button>
2485
+ @if (erreur(); as e) { <p class="ngx-cv__erreur" role="alert">{{ e }}</p> }
2486
+ </fieldset>
2487
+ `, styles: [":host{display:block}.ngx-cv{margin:0;padding:12px 16px 16px;border:1px solid rgba(0,0,0,.12);border-radius:12px;min-width:0}.ngx-cv--erreur{border-color:var(--mat-sys-error, #b3261e)}.ngx-cv__titre{padding:0 6px;font-weight:600}.ngx-cv__aide,.ngx-cv__vide{margin:4px 0 8px;color:#0009;font-size:.875rem}.ngx-cv__lignes{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}.ngx-cv__ligne{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr) 40px;gap:8px;align-items:center}.ngx-cv__champ{width:100%}.ngx-cv__erreur{margin:8px 0 0;color:var(--mat-sys-error, #b3261e);font-size:.8125rem}@media(max-width:600px){.ngx-cv__ligne{grid-template-columns:1fr 40px}.ngx-cv__ligne>.ngx-cv__champ:nth-child(2){grid-column:1}.ngx-cv__suppr{grid-row:1 / span 2;grid-column:2}}\n"] }]
2488
+ }], propDecorators: { field: [{
2489
+ type: Input,
2490
+ args: [{ required: true }]
2491
+ }], form: [{
2492
+ type: Input,
2493
+ args: [{ required: true }]
2494
+ }], appearance: [{
2495
+ type: Input
2496
+ }] } });
2497
+
2283
2498
  class DynamicFieldComponent {
2284
2499
  constructor() {
2285
2500
  /** Apparence héritée du formulaire parent — surchargeable par field.appearance */
@@ -3249,7 +3464,7 @@ class DynamicFieldComponent {
3249
3464
  this.formControl.setValue(complet, { emitEvent: true });
3250
3465
  }
3251
3466
  get isInputField() {
3252
- return !['divider', 'heading', 'custom', 'recherche', 'calcul'].includes(this.field.type);
3467
+ return !['divider', 'heading', 'custom', 'recherche', 'calcul', 'cle-valeur'].includes(this.field.type);
3253
3468
  }
3254
3469
  /** type: 'custom' — composant déclaré par l'application (provideNgxForms({ customFields })). */
3255
3470
  get customComponent() {
@@ -3424,6 +3639,10 @@ class DynamicFieldComponent {
3424
3639
  <ngx-calcul-field [field]="field" [form]="form" />
3425
3640
  }
3426
3641
 
3642
+ @if (field.type === 'cle-valeur') {
3643
+ <ngx-cle-valeur-field [field]="field" [form]="form" [appearance]="matAppearance" />
3644
+ }
3645
+
3427
3646
  @if (isInputField) {
3428
3647
  @if (field.type === 'checkbox') {
3429
3648
  <div class="ngx-checkbox-wrapper">
@@ -4140,7 +4359,7 @@ class DynamicFieldComponent {
4140
4359
  }
4141
4360
  }
4142
4361
  }
4143
- `, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%;--ngx-field-color: inherit;--ngx-field-bg: transparent;--ngx-field-align: left}:host ::ng-deep .mat-mdc-input-element{color:var(--ngx-field-color)!important;text-align:var(--ngx-field-align)!important}:host ::ng-deep .mat-mdc-text-field-wrapper{background-color:var(--ngx-field-bg)!important}:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__leading,:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__notch,:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__trailing{border-color:var(--ngx-border-color)!important}:host[style*=--ngx-border-color] ::ng-deep .mdc-line-ripple:before,:host[style*=--ngx-border-color] ::ng-deep .mdc-line-ripple:after{border-bottom-color:var(--ngx-border-color)!important}:host[style*=--ngx-label-color] ::ng-deep .mdc-floating-label,:host[style*=--ngx-label-color] ::ng-deep .mat-mdc-floating-label{color:var(--ngx-label-color)!important}::ng-deep .ngx-phone-menu{min-width:280px}.ngx-affix-text{font-size:.9em;color:#0000008a;padding:0 2px}.ngx-mat-field{width:100%}.ngx-simple-field{display:flex;flex-direction:column;gap:.375rem;width:100%;padding-bottom:.75rem}.ngx-simple-label{font-size:.875rem;font-weight:500;color:var(--ngx-label-color, #374151);line-height:1.25}.ngx-simple-required{color:#ef4444}.ngx-simple-input-row{display:flex;align-items:center;border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s;overflow:hidden;&:focus-within{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f}&.ngx-simple-error-border{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef44441a}}.ngx-simple-input,.ngx-simple-select,textarea.ngx-simple-input{flex:1;min-width:0;padding:.625rem .875rem;border:none;outline:none;background:transparent;font-size:.9375rem;color:#111827;font-family:inherit;resize:vertical;&::placeholder{color:#9ca3af}&:disabled{background:#f9fafb;cursor:not-allowed;color:#6b7280}}textarea.ngx-simple-input{border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;padding:.625rem .875rem;transition:border-color .15s,box-shadow .15s;width:100%;box-sizing:border-box;&:focus{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f;outline:none}&.ngx-simple-error-border{border-color:#ef4444!important}}.ngx-simple-select{border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;padding:.625rem .875rem;width:100%;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right .75rem center;background-size:1.25em;appearance:none;-webkit-appearance:none;&:focus{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f;outline:none}&.ngx-simple-error-border{border-color:#ef4444!important}}.ngx-simple-icon{font-size:1.1rem;width:1.1rem;height:1.1rem;color:#9ca3af;padding:0 0 0 .75rem;flex-shrink:0}.ngx-simple-affix{font-size:.9rem;color:#6b7280;flex-shrink:0;white-space:nowrap}.ngx-simple-prefix{padding-left:.75rem}.ngx-simple-suffix{padding-right:.75rem}.ngx-simple-hint{font-size:.75rem;color:#6b7280}.ngx-simple-error-msg{font-size:.75rem;color:#ef4444}.ngx-simple-loading{display:flex;align-items:center;gap:.5rem;padding:.5rem 0;font-size:.8125rem;color:#9ca3af}.ngx-radio-wrapper{display:flex;flex-direction:column;gap:.5rem;padding:.25rem 0 .75rem}.ngx-radio-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-radio-group{display:flex;flex-wrap:wrap;gap:.75rem}.ngx-cards{--ngx-cards-primary: var(--ngx-df-primary, var(--mat-sys-primary, #0c1a4a))}.ngx-cards__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ngx-cards__label{color:var(--ngx-cards-primary);font-size:1rem;font-weight:700}.ngx-cards__counter{padding:4px 12px;border-radius:999px;background:#eef0f5;color:var(--ngx-cards-primary);font-size:.8125rem;font-weight:700;white-space:nowrap}.ngx-cards__hint{margin:8px 0 0;color:#64748b;font-size:.875rem}.ngx-cards__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:12px;margin-top:12px}.ngx-custom-missing{margin:0;padding:10px 14px;border:1px dashed #ef9a9a;border-radius:8px;color:#b71c1c;font-size:.875rem}.ngx-cards__section--group{margin-top:16px;padding:12px 16px 16px;border:1px dashed #d5dae5;border-radius:12px}.ngx-cards__section--group .ngx-cards__grid{margin-top:10px}.ngx-cards__group-head{display:flex;align-items:center;gap:10px}.ngx-cards__group-title{color:var(--ngx-cards-primary);font-weight:700}.ngx-cards__group-badge{padding:2px 10px;border-radius:999px;background:#fdf0dc;color:#b8680d;font-size:.75rem;font-weight:700}.ngx-card{display:flex;align-items:center;gap:8px;min-height:56px;padding:4px 12px 4px 4px;border:1px solid #e3e6ee;border-radius:12px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ngx-card:hover:not(.ngx-card--disabled){border-color:#c7cddb}.ngx-card--checked{border:2px solid var(--ngx-cards-primary);padding:3px 11px 3px 3px}.ngx-card--locked{background:#fafbfd}.ngx-card__check{flex:1 1 auto;min-width:0}.ngx-card__check ::ng-deep .mdc-form-field{display:flex;flex-wrap:nowrap;align-items:center;width:100%;min-width:0}.ngx-card__check ::ng-deep .mdc-form-field>.mdc-checkbox{flex:0 0 auto}.ngx-card__check ::ng-deep label{flex:1 1 auto;min-width:0;font-weight:600;line-height:1.3;color:#0f172a;cursor:pointer}.ngx-card__texte{overflow-wrap:break-word}.ngx-card--disabled .ngx-card__check ::ng-deep label{cursor:default}.ngx-card--locked .ngx-card__check ::ng-deep .mdc-checkbox--disabled.mat-mdc-checkbox-checked .mdc-checkbox__background,.ngx-card--locked .ngx-card__check ::ng-deep .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background{background-color:var(--ngx-cards-primary)!important;border-color:var(--ngx-cards-primary)!important}.ngx-card--locked .ngx-card__check ::ng-deep label{color:#0f172a!important}.ngx-card__badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:0 2px;color:#64748b;font-size:.8125rem;font-weight:700;white-space:nowrap}.ngx-card__badge mat-icon{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;font-size:14px!important;line-height:14px!important;overflow:hidden}@media(prefers-reduced-motion:reduce){.ngx-card{transition:none}}.ngx-checkbox-wrapper{display:flex;flex-direction:column;gap:.25rem;padding:.25rem 0}.ngx-file-wrapper{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem}.ngx-file-label{font-size:.875rem;font-weight:500;color:#000000de}.ngx-file-input-native{display:none}.ngx-file-dropzone{display:flex;flex-direction:column;align-items:center;gap:.375rem;width:100%;border:1.5px dashed rgba(0,0,0,.23);border-radius:6px;padding:1.25rem 1rem;font-size:.8125rem;color:#0009;text-align:center;cursor:pointer;background:#00000004;transition:border-color .15s,background-color .15s}.ngx-file-dropzone:hover:not(:disabled){border-color:#6366f1;background:#6366f10a}.ngx-file-dropzone-active{border-color:#6366f1;background:#6366f10f}.ngx-file-dropzone:disabled{cursor:not-allowed;opacity:.6}.ngx-file-dropzone mat-icon{color:#0006}.ngx-file-list{display:flex;flex-direction:column;gap:.375rem}.ngx-file-chip{display:flex;align-items:center;gap:.5rem;border:1px solid rgba(0,0,0,.12);border-radius:6px;padding:.5rem .625rem;background:#00000004}.ngx-file-chip mat-icon{color:#6366f1;flex-shrink:0}.ngx-file-chip{position:relative;overflow:hidden}.ngx-file-chip[data-status=error]{border-color:#dc262659;background:#dc262608}.ngx-file-chip mat-icon.ngx-file-chip-icon-error{color:#dc2626}.ngx-file-chip mat-icon.ngx-file-chip-icon-done{color:#16a34a}.ngx-file-chip-spinner{flex-shrink:0}.ngx-file-chip-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.ngx-file-chip-name{display:block;font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-file-chip-link{max-width:100%;padding:0;border:none;background:none;text-align:left;font:inherit;font-size:.8125rem;color:#4f46e5;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.ngx-file-chip-error{font-size:.75rem;color:#dc2626}.ngx-file-chip-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:#6366f1;transform-origin:left center;transition:transform .16s cubic-bezier(.23,1,.32,1)}.ngx-file-dropzone-max{font-size:.75rem;color:#00000073}@media(prefers-reduced-motion:reduce){.ngx-file-chip-progress{transition:none}}.ngx-file-chip-size{font-size:.75rem;color:#00000080;flex-shrink:0}.ngx-file-chip-remove{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;color:#0006;flex-shrink:0}.ngx-file-chip-remove:hover{color:#dc2626}.ngx-file-chip-remove mat-icon{font-size:18px;width:18px;height:18px}.ngx-file-add-more{display:flex;align-items:center;gap:.25rem;align-self:flex-start;border:none;background:transparent;color:#6366f1;font-size:.8125rem;cursor:pointer;padding:.25rem 0}.ngx-geo-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:transparent;cursor:pointer;color:#6366f1;border-radius:0 7px 7px 0;flex-shrink:0;transition:background .15s;mat-icon{font-size:1.1rem;width:1.1rem;height:1.1rem}&:hover:not(:disabled){background:#6366f11a}&:disabled{color:#9ca3af;cursor:not-allowed}}.ngx-switch-wrapper{display:flex;flex-direction:column;gap:.25rem;padding:.375rem 0 .75rem}.ngx-range-wrapper{display:flex;flex-direction:column;gap:.25rem;padding-bottom:.75rem;width:100%}.ngx-range-header{display:flex;align-items:center;justify-content:space-between}.ngx-range-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-range-value{font-size:.875rem;font-weight:600;color:#6366f1;min-width:2.5rem;text-align:right}.ngx-slider{width:100%}.ngx-range-limits{display:flex;justify-content:space-between;font-size:.7rem;color:#00000061;margin-top:-.25rem}.ngx-color-field{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem}.ngx-color-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-color-row{display:flex;align-items:center;gap:.75rem}.ngx-color-input{width:48px;height:40px;border:1px solid rgba(0,0,0,.23);border-radius:6px;padding:2px;cursor:pointer;background:transparent}.ngx-color-hex{font-size:.875rem;color:#0009;font-family:monospace}.ngx-mat-standalone-error{font-size:.75rem;color:var(--mat-sys-error, #b00020)}.ngx-amount-input{font-variant-numeric:tabular-nums}.ngx-phone-wrapper{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem;width:100%}.ngx-phone-label{font-size:.875rem;font-weight:500;color:var(--ngx-label-color, #374151)}.ngx-phone-row{display:flex;border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s;&:focus-within{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f}&.ngx-phone-error{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef44441a}}.ngx-phone-country{border:none;border-right:1px solid #e5e7eb;background:#f9fafb;padding:0 8px;font-size:.875rem;cursor:pointer;outline:none;min-width:90px;color:#374151;appearance:none;-webkit-appearance:none;&:focus{background:#f3f4f6}}.ngx-phone-input{flex:1;min-width:0;padding:.625rem .875rem;border:none;outline:none;background:transparent;font-size:.9375rem;color:#111827;font-family:inherit;&::placeholder{color:#9ca3af}&:disabled{background:#f9fafb;cursor:not-allowed;color:#6b7280}}.ngx-phone-flag-trigger{display:flex;align-items:center;gap:.375rem;border:none;background:transparent;padding:0 .375rem;margin-right:.375rem;cursor:pointer;border-radius:4px;&:hover{background:#0000000a}&:focus-visible{outline:2px solid rgba(99,102,241,.5);outline-offset:1px}}.ngx-phone-flag{font-size:1.25rem;vertical-align:middle;border-radius:2px;box-shadow:0 0 0 1px #00000014}.ngx-phone-menu-list .ngx-phone-flag{font-size:1.125rem}.ngx-phone-dial-code{font-size:.875rem;color:#0009}.ngx-phone-caret{width:1.125rem;height:1.125rem;font-size:1.125rem;color:#00000073}.ngx-phone-menu-search{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid rgba(0,0,0,.08);.ngx-phone-menu-search-icon{width:1.125rem;height:1.125rem;font-size:1.125rem;color:#0006}input{flex:1;min-width:0;border:none;outline:none;font-size:.875rem;background:transparent;&::placeholder{color:#0006}}}.ngx-phone-menu-list{max-height:260px;overflow-y:auto}.ngx-phone-menu-list ::ng-deep .mat-mdc-menu-item-text{display:flex;align-items:center;gap:.625rem;width:100%}.ngx-phone-menu-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}.ngx-phone-menu-dial{font-size:.8125rem;color:#00000080}.ngx-phone-menu-empty{padding:.75rem;text-align:center;font-size:.8125rem;color:#00000073}.ngx-options-loading,.ngx-options-loading-inline{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:#00000073}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i4.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i4.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i5.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: ThousandsInputDirective, selector: "input[ngxThousands]", inputs: ["ngxThousands"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: RechercheFieldComponent, selector: "ngx-recherche-field", inputs: ["field", "form"] }, { kind: "component", type: CalculFieldComponent, selector: "ngx-calcul-field", inputs: ["field", "form"] }] }); }
4362
+ `, isInline: true, styles: [":host{display:flex;flex-direction:column;width:100%;--ngx-field-color: inherit;--ngx-field-bg: transparent;--ngx-field-align: left}:host ::ng-deep .mat-mdc-input-element{color:var(--ngx-field-color)!important;text-align:var(--ngx-field-align)!important}:host ::ng-deep .mat-mdc-text-field-wrapper{background-color:var(--ngx-field-bg)!important}:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__leading,:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__notch,:host[style*=--ngx-border-color] ::ng-deep .mdc-notched-outline__trailing{border-color:var(--ngx-border-color)!important}:host[style*=--ngx-border-color] ::ng-deep .mdc-line-ripple:before,:host[style*=--ngx-border-color] ::ng-deep .mdc-line-ripple:after{border-bottom-color:var(--ngx-border-color)!important}:host[style*=--ngx-label-color] ::ng-deep .mdc-floating-label,:host[style*=--ngx-label-color] ::ng-deep .mat-mdc-floating-label{color:var(--ngx-label-color)!important}::ng-deep .ngx-phone-menu{min-width:280px}.ngx-affix-text{font-size:.9em;color:#0000008a;padding:0 2px}.ngx-mat-field{width:100%}.ngx-simple-field{display:flex;flex-direction:column;gap:.375rem;width:100%;padding-bottom:.75rem}.ngx-simple-label{font-size:.875rem;font-weight:500;color:var(--ngx-label-color, #374151);line-height:1.25}.ngx-simple-required{color:#ef4444}.ngx-simple-input-row{display:flex;align-items:center;border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;background:#fff;transition:border-color .15s,box-shadow .15s;overflow:hidden;&:focus-within{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f}&.ngx-simple-error-border{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef44441a}}.ngx-simple-input,.ngx-simple-select,textarea.ngx-simple-input{flex:1;min-width:0;padding:.625rem .875rem;border:none;outline:none;background:transparent;font-size:.9375rem;color:#111827;font-family:inherit;resize:vertical;&::placeholder{color:#9ca3af}&:disabled{background:#f9fafb;cursor:not-allowed;color:#6b7280}}textarea.ngx-simple-input{border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;padding:.625rem .875rem;transition:border-color .15s,box-shadow .15s;width:100%;box-sizing:border-box;&:focus{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f;outline:none}&.ngx-simple-error-border{border-color:#ef4444!important}}.ngx-simple-select{border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;padding:.625rem .875rem;width:100%;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right .75rem center;background-size:1.25em;appearance:none;-webkit-appearance:none;&:focus{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f;outline:none}&.ngx-simple-error-border{border-color:#ef4444!important}}.ngx-simple-icon{font-size:1.1rem;width:1.1rem;height:1.1rem;color:#9ca3af;padding:0 0 0 .75rem;flex-shrink:0}.ngx-simple-affix{font-size:.9rem;color:#6b7280;flex-shrink:0;white-space:nowrap}.ngx-simple-prefix{padding-left:.75rem}.ngx-simple-suffix{padding-right:.75rem}.ngx-simple-hint{font-size:.75rem;color:#6b7280}.ngx-simple-error-msg{font-size:.75rem;color:#ef4444}.ngx-simple-loading{display:flex;align-items:center;gap:.5rem;padding:.5rem 0;font-size:.8125rem;color:#9ca3af}.ngx-radio-wrapper{display:flex;flex-direction:column;gap:.5rem;padding:.25rem 0 .75rem}.ngx-radio-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-radio-group{display:flex;flex-wrap:wrap;gap:.75rem}.ngx-cards{--ngx-cards-primary: var(--ngx-df-primary, var(--mat-sys-primary, #0c1a4a))}.ngx-cards__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ngx-cards__label{color:var(--ngx-cards-primary);font-size:1rem;font-weight:700}.ngx-cards__counter{padding:4px 12px;border-radius:999px;background:#eef0f5;color:var(--ngx-cards-primary);font-size:.8125rem;font-weight:700;white-space:nowrap}.ngx-cards__hint{margin:8px 0 0;color:#64748b;font-size:.875rem}.ngx-cards__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:12px;margin-top:12px}.ngx-custom-missing{margin:0;padding:10px 14px;border:1px dashed #ef9a9a;border-radius:8px;color:#b71c1c;font-size:.875rem}.ngx-cards__section--group{margin-top:16px;padding:12px 16px 16px;border:1px dashed #d5dae5;border-radius:12px}.ngx-cards__section--group .ngx-cards__grid{margin-top:10px}.ngx-cards__group-head{display:flex;align-items:center;gap:10px}.ngx-cards__group-title{color:var(--ngx-cards-primary);font-weight:700}.ngx-cards__group-badge{padding:2px 10px;border-radius:999px;background:#fdf0dc;color:#b8680d;font-size:.75rem;font-weight:700}.ngx-card{display:flex;align-items:center;gap:8px;min-height:56px;padding:4px 12px 4px 4px;border:1px solid #e3e6ee;border-radius:12px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ngx-card:hover:not(.ngx-card--disabled){border-color:#c7cddb}.ngx-card--checked{border:2px solid var(--ngx-cards-primary);padding:3px 11px 3px 3px}.ngx-card--locked{background:#fafbfd}.ngx-card__check{flex:1 1 auto;min-width:0}.ngx-card__check ::ng-deep .mdc-form-field{display:flex;flex-wrap:nowrap;align-items:center;width:100%;min-width:0}.ngx-card__check ::ng-deep .mdc-form-field>.mdc-checkbox{flex:0 0 auto}.ngx-card__check ::ng-deep label{flex:1 1 auto;min-width:0;font-weight:600;line-height:1.3;color:#0f172a;cursor:pointer}.ngx-card__texte{overflow-wrap:break-word}.ngx-card--disabled .ngx-card__check ::ng-deep label{cursor:default}.ngx-card--locked .ngx-card__check ::ng-deep .mdc-checkbox--disabled.mat-mdc-checkbox-checked .mdc-checkbox__background,.ngx-card--locked .ngx-card__check ::ng-deep .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background{background-color:var(--ngx-cards-primary)!important;border-color:var(--ngx-cards-primary)!important}.ngx-card--locked .ngx-card__check ::ng-deep label{color:#0f172a!important}.ngx-card__badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:0 2px;color:#64748b;font-size:.8125rem;font-weight:700;white-space:nowrap}.ngx-card__badge mat-icon{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;font-size:14px!important;line-height:14px!important;overflow:hidden}@media(prefers-reduced-motion:reduce){.ngx-card{transition:none}}.ngx-checkbox-wrapper{display:flex;flex-direction:column;gap:.25rem;padding:.25rem 0}.ngx-file-wrapper{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem}.ngx-file-label{font-size:.875rem;font-weight:500;color:#000000de}.ngx-file-input-native{display:none}.ngx-file-dropzone{display:flex;flex-direction:column;align-items:center;gap:.375rem;width:100%;border:1.5px dashed rgba(0,0,0,.23);border-radius:6px;padding:1.25rem 1rem;font-size:.8125rem;color:#0009;text-align:center;cursor:pointer;background:#00000004;transition:border-color .15s,background-color .15s}.ngx-file-dropzone:hover:not(:disabled){border-color:#6366f1;background:#6366f10a}.ngx-file-dropzone-active{border-color:#6366f1;background:#6366f10f}.ngx-file-dropzone:disabled{cursor:not-allowed;opacity:.6}.ngx-file-dropzone mat-icon{color:#0006}.ngx-file-list{display:flex;flex-direction:column;gap:.375rem}.ngx-file-chip{display:flex;align-items:center;gap:.5rem;border:1px solid rgba(0,0,0,.12);border-radius:6px;padding:.5rem .625rem;background:#00000004}.ngx-file-chip mat-icon{color:#6366f1;flex-shrink:0}.ngx-file-chip{position:relative;overflow:hidden}.ngx-file-chip[data-status=error]{border-color:#dc262659;background:#dc262608}.ngx-file-chip mat-icon.ngx-file-chip-icon-error{color:#dc2626}.ngx-file-chip mat-icon.ngx-file-chip-icon-done{color:#16a34a}.ngx-file-chip-spinner{flex-shrink:0}.ngx-file-chip-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.ngx-file-chip-name{display:block;font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-file-chip-link{max-width:100%;padding:0;border:none;background:none;text-align:left;font:inherit;font-size:.8125rem;color:#4f46e5;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.ngx-file-chip-error{font-size:.75rem;color:#dc2626}.ngx-file-chip-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:#6366f1;transform-origin:left center;transition:transform .16s cubic-bezier(.23,1,.32,1)}.ngx-file-dropzone-max{font-size:.75rem;color:#00000073}@media(prefers-reduced-motion:reduce){.ngx-file-chip-progress{transition:none}}.ngx-file-chip-size{font-size:.75rem;color:#00000080;flex-shrink:0}.ngx-file-chip-remove{display:flex;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;color:#0006;flex-shrink:0}.ngx-file-chip-remove:hover{color:#dc2626}.ngx-file-chip-remove mat-icon{font-size:18px;width:18px;height:18px}.ngx-file-add-more{display:flex;align-items:center;gap:.25rem;align-self:flex-start;border:none;background:transparent;color:#6366f1;font-size:.8125rem;cursor:pointer;padding:.25rem 0}.ngx-geo-btn{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:none;background:transparent;cursor:pointer;color:#6366f1;border-radius:0 7px 7px 0;flex-shrink:0;transition:background .15s;mat-icon{font-size:1.1rem;width:1.1rem;height:1.1rem}&:hover:not(:disabled){background:#6366f11a}&:disabled{color:#9ca3af;cursor:not-allowed}}.ngx-switch-wrapper{display:flex;flex-direction:column;gap:.25rem;padding:.375rem 0 .75rem}.ngx-range-wrapper{display:flex;flex-direction:column;gap:.25rem;padding-bottom:.75rem;width:100%}.ngx-range-header{display:flex;align-items:center;justify-content:space-between}.ngx-range-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-range-value{font-size:.875rem;font-weight:600;color:#6366f1;min-width:2.5rem;text-align:right}.ngx-slider{width:100%}.ngx-range-limits{display:flex;justify-content:space-between;font-size:.7rem;color:#00000061;margin-top:-.25rem}.ngx-color-field{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem}.ngx-color-label{font-size:.875rem;font-weight:500;color:#0009}.ngx-color-row{display:flex;align-items:center;gap:.75rem}.ngx-color-input{width:48px;height:40px;border:1px solid rgba(0,0,0,.23);border-radius:6px;padding:2px;cursor:pointer;background:transparent}.ngx-color-hex{font-size:.875rem;color:#0009;font-family:monospace}.ngx-mat-standalone-error{font-size:.75rem;color:var(--mat-sys-error, #b00020)}.ngx-amount-input{font-variant-numeric:tabular-nums}.ngx-phone-wrapper{display:flex;flex-direction:column;gap:.375rem;padding-bottom:.75rem;width:100%}.ngx-phone-label{font-size:.875rem;font-weight:500;color:var(--ngx-label-color, #374151)}.ngx-phone-row{display:flex;border:1px solid var(--ngx-border-color, #d1d5db);border-radius:8px;overflow:hidden;background:#fff;transition:border-color .15s,box-shadow .15s;&:focus-within{border-color:var(--ngx-border-color, #6366f1);box-shadow:0 0 0 3px #6366f11f}&.ngx-phone-error{border-color:#ef4444!important;box-shadow:0 0 0 3px #ef44441a}}.ngx-phone-country{border:none;border-right:1px solid #e5e7eb;background:#f9fafb;padding:0 8px;font-size:.875rem;cursor:pointer;outline:none;min-width:90px;color:#374151;appearance:none;-webkit-appearance:none;&:focus{background:#f3f4f6}}.ngx-phone-input{flex:1;min-width:0;padding:.625rem .875rem;border:none;outline:none;background:transparent;font-size:.9375rem;color:#111827;font-family:inherit;&::placeholder{color:#9ca3af}&:disabled{background:#f9fafb;cursor:not-allowed;color:#6b7280}}.ngx-phone-flag-trigger{display:flex;align-items:center;gap:.375rem;border:none;background:transparent;padding:0 .375rem;margin-right:.375rem;cursor:pointer;border-radius:4px;&:hover{background:#0000000a}&:focus-visible{outline:2px solid rgba(99,102,241,.5);outline-offset:1px}}.ngx-phone-flag{font-size:1.25rem;vertical-align:middle;border-radius:2px;box-shadow:0 0 0 1px #00000014}.ngx-phone-menu-list .ngx-phone-flag{font-size:1.125rem}.ngx-phone-dial-code{font-size:.875rem;color:#0009}.ngx-phone-caret{width:1.125rem;height:1.125rem;font-size:1.125rem;color:#00000073}.ngx-phone-menu-search{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid rgba(0,0,0,.08);.ngx-phone-menu-search-icon{width:1.125rem;height:1.125rem;font-size:1.125rem;color:#0006}input{flex:1;min-width:0;border:none;outline:none;font-size:.875rem;background:transparent;&::placeholder{color:#0006}}}.ngx-phone-menu-list{max-height:260px;overflow-y:auto}.ngx-phone-menu-list ::ng-deep .mat-mdc-menu-item-text{display:flex;align-items:center;gap:.625rem;width:100%}.ngx-phone-menu-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem}.ngx-phone-menu-dial{font-size:.8125rem;color:#00000080}.ngx-phone-menu-empty{padding:.75rem;text-align:center;font-size:.8125rem;color:#00000073}.ngx-options-loading,.ngx-options-loading-inline{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:#00000073}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i3.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i4.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i4.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i5.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i6.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: ThousandsInputDirective, selector: "input[ngxThousands]", inputs: ["ngxThousands"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "component", type: RechercheFieldComponent, selector: "ngx-recherche-field", inputs: ["field", "form"] }, { kind: "component", type: CalculFieldComponent, selector: "ngx-calcul-field", inputs: ["field", "form"] }, { kind: "component", type: CleValeurFieldComponent, selector: "ngx-cle-valeur-field", inputs: ["field", "form", "appearance"] }] }); }
4144
4363
  }
4145
4364
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: DynamicFieldComponent, decorators: [{
4146
4365
  type: Component,
@@ -4163,6 +4382,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
4163
4382
  NgComponentOutlet,
4164
4383
  RechercheFieldComponent,
4165
4384
  CalculFieldComponent,
4385
+ CleValeurFieldComponent,
4166
4386
  ], template: `
4167
4387
  @if (field.type === 'divider') {
4168
4388
  <hr class="ngx-divider"
@@ -4200,6 +4420,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
4200
4420
  <ngx-calcul-field [field]="field" [form]="form" />
4201
4421
  }
4202
4422
 
4423
+ @if (field.type === 'cle-valeur') {
4424
+ <ngx-cle-valeur-field [field]="field" [form]="form" [appearance]="matAppearance" />
4425
+ }
4426
+
4203
4427
  @if (isInputField) {
4204
4428
  @if (field.type === 'checkbox') {
4205
4429
  <div class="ngx-checkbox-wrapper">
@@ -5688,6 +5912,10 @@ function resumeChamp(field, value, valeurs = {}) {
5688
5912
  }
5689
5913
  case 'calcul':
5690
5914
  return texte(typeof value === 'object' ? libelleObjet(value) : String(value));
5915
+ case 'cle-valeur': {
5916
+ const lignes = lignesDepuisObjet(value).map((l) => ({ libelle: l.cle, valeur: l.valeur || '—' }));
5917
+ return lignes.length ? { texte: `${lignes.length} entrée(s)`, lignes } : null;
5918
+ }
5691
5919
  case 'recherche':
5692
5920
  return texte(texteRecherche(field, valeurs) ?? (typeof value === 'object' ? libelleObjet(value) : String(value)));
5693
5921
  case 'repeater': {
@@ -6575,6 +6803,7 @@ const FIELD_TYPES = [
6575
6803
  { type: 'questionnaire', label: 'Questionnaire Oui / Non', icon: 'assignment', group: 'Choix' },
6576
6804
  { type: 'recherche', label: 'Recherche (API)', icon: 'manage_search', group: 'Choix' },
6577
6805
  { type: 'calcul', label: 'Calcul (API)', icon: 'calculate', group: 'Choix' },
6806
+ { type: 'cle-valeur', label: 'Clé / valeur', icon: 'data_object', group: 'Choix' },
6578
6807
  // ── Mise en page ────────────────────────────────────────────────────────────
6579
6808
  { type: 'heading', label: 'Titre de section', icon: 'title', group: 'Mise en page' },
6580
6809
  { type: 'divider', label: 'Séparateur', icon: 'horizontal_rule', group: 'Mise en page' },
@@ -6941,6 +7170,13 @@ class FormBuilderComponent {
6941
7170
  { key: 'montant', type: 'number', label: 'Montant', col: 6, thousandSeparator: true, validation: { required: true } },
6942
7171
  ],
6943
7172
  });
7173
+ if (type === 'cle-valeur')
7174
+ Object.assign(base, {
7175
+ label: 'Propriétés',
7176
+ col: 12,
7177
+ addLabel: 'Ajouter une entrée',
7178
+ cleValeur: { libelleCle: 'Clé', libelleValeur: 'Valeur' },
7179
+ });
6944
7180
  this.mutateFields(f => [...f, base]);
6945
7181
  this.selectedIdx.set(this.fields().length - 1);
6946
7182
  this.activeTab.set('schema');
@@ -8011,5 +8247,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
8011
8247
  * Generated bundle index. Do not edit.
8012
8248
  */
8013
8249
 
8014
- export { CalculFieldComponent, ConditionEvaluatorService, DynamicFieldComponent, DynamicFormBuilderService, DynamicFormComponent, FORM_API_URL, FormBuilderComponent, FormConfigService, FormLoaderComponent, FormStorageAdapter, HttpStorageAdapter, LocalStorageAdapter, MesFormulairesComponent, NGX_CUSTOM_FIELDS, NGX_DATA_API_URL, NGX_FORMS_AUTH, NGX_FORMS_LIST_PAGE_SIZE, NgxFormsAuthService, PHONE_COUNTRIES, QuestionnaireFieldComponent, RechercheFieldComponent, RepeaterFieldComponent, StepperFormComponent, ThousandsInputDirective, UniquenessValidatorService, anneesRevolues, answerQuestion, answeredCount, champDansRecap, champsManquants, donneesCalcul, evaluateRules, filtrerResultats, formatDate, formatMontant$1 as formatMontant, getFirstPath, getPath, includedBy, keepAnswers, libelleObjet, libelleRecap, matchesConditions, ngxFormsAuthInterceptor, optionLabel, prepareSubmit, provideNgxForms, questionErrors, rechercheChamps, rechercheItem, rechercheItems, rechercheTexte, resoudreCorps, resumeChamp, toFormValues, toQuestions, toggleWithIncludes, valeurCalcul, versDate, versJour, versResultat, vueCalcul, withLockedIncludes, withoutFields };
8250
+ export { CalculFieldComponent, CleValeurFieldComponent, ConditionEvaluatorService, DynamicFieldComponent, DynamicFormBuilderService, DynamicFormComponent, FORM_API_URL, FormBuilderComponent, FormConfigService, FormLoaderComponent, FormStorageAdapter, HttpStorageAdapter, LocalStorageAdapter, MesFormulairesComponent, NGX_CUSTOM_FIELDS, NGX_DATA_API_URL, NGX_FORMS_AUTH, NGX_FORMS_LIST_PAGE_SIZE, NgxFormsAuthService, PHONE_COUNTRIES, QuestionnaireFieldComponent, RechercheFieldComponent, RepeaterFieldComponent, StepperFormComponent, ThousandsInputDirective, UniquenessValidatorService, anneesRevolues, answerQuestion, answeredCount, champDansRecap, champsManquants, donneesCalcul, erreurCleValeur, evaluateRules, filtrerResultats, formatDate, formatMontant$1 as formatMontant, getFirstPath, getPath, includedBy, keepAnswers, libelleObjet, libelleRecap, lignesDepuisObjet, matchesConditions, ngxFormsAuthInterceptor, objetDepuisLignes, optionLabel, prepareSubmit, provideNgxForms, questionErrors, rechercheChamps, rechercheItem, rechercheItems, rechercheTexte, resoudreCorps, resumeChamp, toFormValues, toQuestions, toggleWithIncludes, valeurCalcul, versDate, versJour, versResultat, vueCalcul, withLockedIncludes, withoutFields };
8015
8251
  //# sourceMappingURL=suntelecoms-ngx-dynamic-form.mjs.map