@suntelecoms/ngx-dynamic-form 1.19.0 → 1.20.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.
@@ -22,6 +22,20 @@ export declare const ICON_OPTIONS: {
22
22
  }[];
23
23
  export declare class FormBuilderComponent {
24
24
  backRoute: string;
25
+ readonly LARGEUR_PROPS_MIN = 300;
26
+ readonly LARGEUR_PROPS_MAX = 760;
27
+ private static readonly LARGEUR_PROPS_DEFAUT;
28
+ private static readonly CLE_LARGEUR_PROPS;
29
+ readonly largeurProps: import("@angular/core").WritableSignal<number>;
30
+ readonly redimEnCours: import("@angular/core").WritableSignal<boolean>;
31
+ private static lireLargeurProps;
32
+ private poserLargeurProps;
33
+ /** Glisser la poignée : le panneau est ancré à droite, la largeur suit le pointeur. */
34
+ private dernierAppuiPoignee;
35
+ debutRedim(e: PointerEvent): void;
36
+ /** Clavier : flèche gauche élargit, droite réduit (le panneau est à droite). */
37
+ redimClavier(e: KeyboardEvent): void;
38
+ largeurParDefaut(): void;
25
39
  private formService;
26
40
  /** Noms des composants déclarés pour les champs « Composant personnalisé » (provideNgxForms customFields). */
27
41
  readonly customFieldNames: string[];
@@ -0,0 +1,51 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /** Analyse d'un texte JSON : valide, vide, ou erreur située (ligne, colonne). */
4
+ export interface EtatJson {
5
+ etat: 'vide' | 'valide' | 'erreur';
6
+ message?: string;
7
+ ligne?: number;
8
+ colonne?: number;
9
+ }
10
+ export declare function analyserJson(texte: string): EtatJson;
11
+ /** Coloration : clés, textes (modèles {{…}} en pastille), nombres, booléens / null, ponctuation. */
12
+ export declare function colorerJson(texte: string): string;
13
+ /**
14
+ * Éditeur JSON du Form Builder (façon Postman) : numéros de ligne, coloration, modèles {{…}} mis en
15
+ * évidence, « Formater », état (valide / erreur avec ligne et colonne) et plein écran.
16
+ * Texte en entrée (`texte`), texte saisi en sortie (`texteChange`) : l'analyse et l'enregistrement
17
+ * restent faits par l'appelant.
18
+ */
19
+ export declare class JsonEditorComponent implements OnChanges {
20
+ /** Texte affiché (ex. JSON.stringify de la valeur actuelle). */
21
+ texte: string;
22
+ /** Exemple affiché quand la zone est vide. */
23
+ exemple: string;
24
+ /** Nom de la zone (titre du plein écran, libellé accessible). */
25
+ titre: string;
26
+ /** Hauteur minimale, en lignes. */
27
+ lignesMin: number;
28
+ /** Texte saisi, à chaque frappe (l'appelant l'analyse et l'enregistre). */
29
+ texteChange: EventEmitter<string>;
30
+ private saisieRef;
31
+ private couleurRef;
32
+ private gouttiereRef;
33
+ protected focus: boolean;
34
+ protected readonly texteCourant: import("@angular/core").WritableSignal<string>;
35
+ protected readonly plein: import("@angular/core").WritableSignal<boolean>;
36
+ protected readonly html: import("@angular/core").WritableSignal<string>;
37
+ protected readonly etat: import("@angular/core").WritableSignal<EtatJson>;
38
+ protected readonly numeros: import("@angular/core").WritableSignal<number[]>;
39
+ ngOnChanges(ch: SimpleChanges): void;
40
+ protected saisir(t: string): void;
41
+ protected formater(): void;
42
+ protected basculerPlein(): void;
43
+ protected echap(): void;
44
+ /** Tab insère deux espaces ; Ctrl / ⌘ + Maj + F formate. */
45
+ protected clavier(e: KeyboardEvent): void;
46
+ protected synchroniser(): void;
47
+ private appliquer;
48
+ private memeContenu;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<JsonEditorComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<JsonEditorComponent, "ngx-json-editor", never, { "texte": { "alias": "texte"; "required": false; }; "exemple": { "alias": "exemple"; "required": false; }; "titre": { "alias": "titre"; "required": false; }; "lignesMin": { "alias": "lignesMin"; "required": false; }; }, { "texteChange": "texteChange"; }, never, never, true, never>;
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suntelecoms/ngx-dynamic-form",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Générateur de formulaires Angular dynamiques — SUNTELECOMS",
5
5
  "author": "Amadou Diallo <amadoumacbookpro38@gmail.com>",
6
6
  "license": "MIT",