@suntelecoms/ngx-dynamic-form 1.1.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.
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import type { SavedFormSchema } from '../models/saved-form.model';
3
+ export declare abstract class FormStorageAdapter {
4
+ abstract list(): Observable<SavedFormSchema[]>;
5
+ abstract get(id: string): Observable<SavedFormSchema | null>;
6
+ abstract save(schema: SavedFormSchema): Observable<SavedFormSchema>;
7
+ abstract delete(id: string): Observable<void>;
8
+ generateId(): string;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FormStorageAdapter } from './form-storage.adapter';
4
+ import type { SavedFormSchema } from '../models/saved-form.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare const FORM_API_URL: InjectionToken<string>;
7
+ export declare class HttpStorageAdapter extends FormStorageAdapter {
8
+ private http;
9
+ private apiUrl;
10
+ list(): Observable<SavedFormSchema[]>;
11
+ get(id: string): Observable<SavedFormSchema | null>;
12
+ save(schema: SavedFormSchema): Observable<SavedFormSchema>;
13
+ delete(id: string): Observable<void>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpStorageAdapter, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpStorageAdapter>;
16
+ }
@@ -0,0 +1,14 @@
1
+ import { Observable } from 'rxjs';
2
+ import { FormStorageAdapter } from './form-storage.adapter';
3
+ import type { SavedFormSchema } from '../models/saved-form.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LocalStorageAdapter extends FormStorageAdapter {
6
+ list(): Observable<SavedFormSchema[]>;
7
+ get(id: string): Observable<SavedFormSchema | null>;
8
+ save(schema: SavedFormSchema): Observable<SavedFormSchema>;
9
+ delete(id: string): Observable<void>;
10
+ private _read;
11
+ private _write;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageAdapter, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageAdapter>;
14
+ }
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@suntelecoms/ngx-dynamic-form",
3
+ "version": "1.1.0",
4
+ "description": "Générateur de formulaires Angular dynamiques — SUNTELECOMS",
5
+ "author": "Amadou Diallo <amadoumacbookpro38@gmail.com>",
6
+ "license": "MIT",
7
+ "peerDependencies": {
8
+ "@angular/common": ">=19.0.0",
9
+ "@angular/core": ">=19.0.0",
10
+ "@angular/forms": ">=19.0.0",
11
+ "@angular/router": ">=19.0.0",
12
+ "@angular/material": ">=19.0.0",
13
+ "@angular/cdk": ">=19.0.0"
14
+ },
15
+ "keywords": [
16
+ "angular",
17
+ "dynamic-form",
18
+ "reactive-forms",
19
+ "angular-material",
20
+ "suntelecoms"
21
+ ],
22
+ "module": "fesm2022/suntelecoms-ngx-dynamic-form.mjs",
23
+ "typings": "index.d.ts",
24
+ "exports": {
25
+ "./package.json": {
26
+ "default": "./package.json"
27
+ },
28
+ ".": {
29
+ "types": "./index.d.ts",
30
+ "default": "./fesm2022/suntelecoms-ngx-dynamic-form.mjs"
31
+ }
32
+ },
33
+ "sideEffects": false,
34
+ "dependencies": {
35
+ "tslib": "^2.3.0"
36
+ }
37
+ }
@@ -0,0 +1,15 @@
1
+ export { DynamicFormComponent } from './lib/components/dynamic-form/dynamic-form.component';
2
+ export { DynamicFieldComponent } from './lib/components/dynamic-field/dynamic-field.component';
3
+ export { FormBuilderComponent } from './lib/components/form-builder/form-builder.component';
4
+ export { MesFormulairesComponent } from './lib/components/mes-formulaires/mes-formulaires.component';
5
+ export { FormLoaderComponent } from './lib/components/form-loader/form-loader.component';
6
+ export { DynamicFormBuilderService } from './lib/services/dynamic-form-builder.service';
7
+ export { ConditionEvaluatorService } from './lib/services/condition-evaluator.service';
8
+ export { FormConfigService } from './lib/services/form-config.service';
9
+ export { FormStorageAdapter } from './lib/storage/form-storage.adapter';
10
+ export { LocalStorageAdapter } from './lib/storage/local-storage.adapter';
11
+ export { HttpStorageAdapter, FORM_API_URL } from './lib/storage/http-storage.adapter';
12
+ export { provideNgxForms } from './lib/providers';
13
+ export type { NgxFormsOptions, NgxFormsLocalOptions, NgxFormsHttpOptions } from './lib/providers';
14
+ export type { DynamicFormField, DynamicFormConfig, DynamicFormSubmitEvent, FieldType, FieldValidation, FieldCondition, SelectOption, } from './lib/models/form-field.model';
15
+ export type { SavedFormSchema } from './lib/models/saved-form.model';