@o3r/forms 14.1.0-prerelease.2 → 14.1.0-prerelease.4

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/index.d.ts ADDED
@@ -0,0 +1,414 @@
1
+ import { AbstractControl, Validator, ValidatorFn, ValidationErrors, FormGroup } from '@angular/forms';
2
+ import { Observable } from 'rxjs';
3
+ import * as _ngrx_store from '@ngrx/store';
4
+ import { ActionReducer, Action, ReducerTypes, ActionCreator } from '@ngrx/store';
5
+ import { SetEntitiesActionPayload } from '@o3r/core';
6
+ import * as i0 from '@angular/core';
7
+ import { InjectionToken, ModuleWithProviders, OnChanges, SimpleChanges } from '@angular/core';
8
+ import * as _ngrx_entity from '@ngrx/entity';
9
+ import { EntityState, EntityAdapter } from '@ngrx/entity';
10
+ import * as _o3r_forms from '@o3r/forms';
11
+ import * as i1 from '@angular/common';
12
+ import { utils } from '@ama-sdk/core';
13
+
14
+ /**
15
+ * Decorator for @Input property
16
+ * It considers the input as an async one.
17
+ * When a change in the input happens, it unsubscribe from the previous value
18
+ * and subscribe to the next one
19
+ * @param privateFieldName
20
+ * @example
21
+ * ```typescript
22
+ * \@Input()
23
+ * \@AsyncInput()
24
+ * myStream$: Observable<number>;
25
+ * ```
26
+ */
27
+ declare function AsyncInput(privateFieldName?: string): (target: any, key: string) => void;
28
+
29
+ /** The error object saved in the store for a specific element/formControl */
30
+ interface ErrorMessageObject {
31
+ /**
32
+ * Translation key of the short error message (e.g. used for inline errors)
33
+ * @example
34
+ * ```typescript
35
+ * translationKey = 'travelerForm.firstName.required'; // => corresponds to {'travelerForm.firstName.required': 'First name is required!'} in localization json;
36
+ * ```
37
+ */
38
+ translationKey: string;
39
+ /**
40
+ * Translation key of the long error message (e.g. used on a message panel)
41
+ * @example
42
+ * ```typescript
43
+ * longTranslationKey = 'travelerForm.firstName.required.long'; // => corresponds to {'travelerForm.firstName.required.long': 'The first name in the registration form cannot be empty!'}
44
+ * // in localization json;
45
+ * ```
46
+ */
47
+ longTranslationKey?: string;
48
+ /** Translation parameters of the error message; Used in the short message but also in the long message if needed */
49
+ translationParams?: {
50
+ [key: string]: any;
51
+ };
52
+ /**
53
+ * Original error object defined by the corresponding validator
54
+ * @note It's optional since custom errors don't need to provide the validation error
55
+ * @example
56
+ * ```typescript
57
+ * {required: true}
58
+ * ```
59
+ * @example
60
+ * ```typescript
61
+ * {max: {max 12, actual: 31}}
62
+ * ```
63
+ */
64
+ validationError?: {
65
+ [key: string]: any;
66
+ };
67
+ /**
68
+ * An attribute which will be the combination of component name, form control name and the name of the error
69
+ */
70
+ code?: string;
71
+ /**
72
+ * English translation inline error message
73
+ */
74
+ title?: string;
75
+ /**
76
+ * The name of the formControl which gave the error
77
+ */
78
+ formControlName?: string;
79
+ /**
80
+ * The name of error
81
+ */
82
+ errorName?: string;
83
+ }
84
+ /** Error messages of the html element identified by it's id */
85
+ interface ElementError {
86
+ /** Id of the html element on which the validation has failed */
87
+ htmlElementId: string;
88
+ /** Element's error message objects */
89
+ errorMessages: ErrorMessageObject[];
90
+ }
91
+ /** Form's error messages identified by form id */
92
+ interface FormError {
93
+ /** Id of the form containing the form field/fields */
94
+ formId: string;
95
+ /** Component's elements errors */
96
+ errors: ElementError[];
97
+ }
98
+
99
+ /**
100
+ * The return of a custom validation
101
+ */
102
+ interface CustomErrors {
103
+ /** The custom errors coming from a validation fn */
104
+ customErrors: ErrorMessageObject[];
105
+ }
106
+ /** Custom validation function */
107
+ type CustomValidationFn = (control: AbstractControl) => CustomErrors | null;
108
+ /** Custom async validation function */
109
+ type AsyncCustomValidationFn = (control: AbstractControl) => Observable<CustomErrors | null> | Promise<CustomErrors | null>;
110
+ /** Custom validation functions for each field of T model */
111
+ type CustomFieldsValidation<T> = {
112
+ [K in keyof T]?: CustomValidationFn;
113
+ };
114
+ /** Custom async validation function for each field of T model */
115
+ type AsyncCustomFieldsValidation<T> = {
116
+ [K in keyof T]?: AsyncCustomValidationFn;
117
+ };
118
+ /** Custom validation for the form */
119
+ interface CustomFormValidation<T> {
120
+ /** Validation for each field */
121
+ fields?: CustomFieldsValidation<T>;
122
+ /** Global validation for the form */
123
+ global?: CustomValidationFn;
124
+ }
125
+ /**
126
+ * Custom async validation for the form
127
+ */
128
+ interface AsyncCustomFormValidation<T> {
129
+ /** Validation for each field */
130
+ fields?: AsyncCustomFieldsValidation<T>;
131
+ /** Global validation for the form */
132
+ global?: AsyncCustomValidationFn;
133
+ }
134
+
135
+ declare abstract class ExtendedValidator implements Validator {
136
+ /**
137
+ * Full list of validator functions
138
+ */
139
+ abstract validators: ValidatorFn[];
140
+ /**
141
+ * Apply the list of validators on a specific Control
142
+ * @param control
143
+ */
144
+ validate(control: AbstractControl): ValidationErrors | null;
145
+ }
146
+
147
+ /** Flat representation of Angular's ValidationError */
148
+ interface FlatError {
149
+ /** The key that identifies the validation error */
150
+ errorKey: string;
151
+ /** The value linked to the validation error */
152
+ errorValue: any;
153
+ /** The original validation error */
154
+ validationError: ValidationErrors;
155
+ }
156
+ /**
157
+ * Represents all errors (validation or custom ones) from a control.
158
+ * Useful for working with form errors
159
+ * @note The control may be form, therefore the controlName may be undefined
160
+ */
161
+ interface ControlFlatErrors {
162
+ /**
163
+ * The name of a field. e.g firstName, cardNumber. If it's a form, should be undefined
164
+ * @note For child fields, use [parentControlName].[fieldName]. e.g expiryDate.month
165
+ */
166
+ controlName?: string;
167
+ /** List of customErrors (coming from custom validation) linked to the control */
168
+ customErrors?: ErrorMessageObject[] | null;
169
+ /** The list of flatten errors linked to the control */
170
+ errors: FlatError[];
171
+ }
172
+
173
+ /**
174
+ * Checks if controls is a FormGroup
175
+ * @param control
176
+ */
177
+ declare function isFormGroup(control: AbstractControl): control is FormGroup;
178
+ /**
179
+ * Mark the controls in the given form as touched and dirty
180
+ * @param control
181
+ */
182
+ declare function markAllControlsDirtyAndTouched(control: AbstractControl): void;
183
+ /**
184
+ * Mark the controls in the given form as untouched and pristine
185
+ * @param control
186
+ */
187
+ declare function markAllControlsPristineAndUntouched(control: AbstractControl): void;
188
+ /**
189
+ * Gets a flat list of all the errors in the form and it's descendents
190
+ * @param form Form to be checked
191
+ */
192
+ declare function getFlatControlErrors(form: AbstractControl): ControlFlatErrors[];
193
+
194
+ /**
195
+ * Interface for the submittable component
196
+ */
197
+ interface Submittable {
198
+ /**
199
+ * Function call on submit action
200
+ * This will commit and send the information relative to the component to the server
201
+ */
202
+ submit: () => Observable<boolean>;
203
+ /**
204
+ * Form group of the submittable component
205
+ */
206
+ formGroup: AbstractControl;
207
+ }
208
+
209
+ /** The payload of remove entity */
210
+ interface RemoveFormErrorMessagesPayload {
211
+ /** id of the FormErrorMessages to be removed */
212
+ id: string;
213
+ }
214
+ /**
215
+ * Action to remove an entity from the store
216
+ */
217
+ declare const removeFormErrorMessagesEntity: _ngrx_store.ActionCreator<"[FormErrorMessages] remove entities", (props: RemoveFormErrorMessagesPayload) => RemoveFormErrorMessagesPayload & _ngrx_store.Action<"[FormErrorMessages] remove entities">>;
218
+ /**
219
+ * Action to reset the whole state, by returning it to initial state.
220
+ */
221
+ declare const resetFormErrorMessages: _ngrx_store.ActionCreator<"[FormErrorMessages] reset", () => _ngrx_store.Action<"[FormErrorMessages] reset">>;
222
+ /**
223
+ * Clear all formErrorMessages and fill the store with the payload
224
+ */
225
+ declare const setFormErrorMessagesEntities: _ngrx_store.ActionCreator<"[FormErrorMessages] set entities", (props: SetEntitiesActionPayload<FormError>) => SetEntitiesActionPayload<FormError> & _ngrx_store.Action<"[FormErrorMessages] set entities">>;
226
+ /**
227
+ * Update formErrorMessages with known IDs, insert the new ones
228
+ */
229
+ declare const upsertFormErrorMessagesEntities: _ngrx_store.ActionCreator<"[FormErrorMessages] upsert entities", (props: SetEntitiesActionPayload<FormError>) => SetEntitiesActionPayload<FormError> & _ngrx_store.Action<"[FormErrorMessages] upsert entities">>;
230
+ /**
231
+ * Clear only the entities, keeps the other attributes in the state
232
+ */
233
+ declare const clearFormErrorMessagesEntities: _ngrx_store.ActionCreator<"[FormErrorMessages] clear entities", () => _ngrx_store.Action<"[FormErrorMessages] clear entities">>;
234
+
235
+ /**
236
+ * FormError model
237
+ */
238
+ interface FormErrorModel extends FormError {
239
+ }
240
+ /**
241
+ * FormError store state
242
+ */
243
+ interface FormErrorMessagesState extends EntityState<FormErrorModel> {
244
+ }
245
+ /**
246
+ * Name of the FormError Store
247
+ */
248
+ declare const FORM_ERROR_MESSAGES_STORE_NAME = "formErrorMessages";
249
+ /**
250
+ * FormError Store Interface
251
+ */
252
+ interface FormErrorMessagesStore {
253
+ /** FormErrorMessages state */
254
+ [FORM_ERROR_MESSAGES_STORE_NAME]: FormErrorMessagesState;
255
+ }
256
+
257
+ /** Token of the FormErrorMessages reducer */
258
+ declare const FORM_ERROR_MESSAGES_REDUCER_TOKEN: InjectionToken<ActionReducer<FormErrorMessagesState, Action<string>>>;
259
+ /** Provide default reducer for FormErrorMessages store */
260
+ declare function getDefaultFormErrorMessagesReducer(): ActionReducer<FormErrorMessagesState, Action<string>>;
261
+ declare class FormErrorMessagesStoreModule {
262
+ static forRoot<T extends FormErrorMessagesState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<FormErrorMessagesStoreModule>;
263
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorMessagesStoreModule, never>;
264
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormErrorMessagesStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
265
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormErrorMessagesStoreModule>;
266
+ }
267
+
268
+ /**
269
+ * FormErrorMessages Store adapter
270
+ */
271
+ declare const formErrorMessagesAdapter: EntityAdapter<FormErrorModel>;
272
+ /**
273
+ * FormErrorMessages Store initial value
274
+ */
275
+ declare const formErrorMessagesInitialState: FormErrorMessagesState;
276
+ /**
277
+ * List of basic actions for FormErrorMessages Store
278
+ */
279
+ declare const formErrorMessagesReducerFeatures: ReducerTypes<FormErrorMessagesState, ActionCreator[]>[];
280
+ /**
281
+ * FormErrorMessages Store reducer
282
+ */
283
+ declare const formErrorMessagesReducer: _ngrx_store.ActionReducer<FormErrorMessagesState, _ngrx_store.Action<string>>;
284
+
285
+ /** Select FormErrorMessages State */
286
+ declare const selectFormErrorMessagesState: _ngrx_store.MemoizedSelector<object, FormErrorMessagesState, _ngrx_store.DefaultProjectorFn<FormErrorMessagesState>>;
287
+ /** Select the array of FormErrorMessages ids */
288
+ declare const selectFormErrorMessagesIds: _ngrx_store.MemoizedSelector<object, string[] | number[], (s1: FormErrorMessagesState) => string[] | number[]>;
289
+ /** Select the array of FormErrorMessages */
290
+ declare const selectAllFormErrorMessages: _ngrx_store.MemoizedSelector<object, _o3r_forms.FormErrorModel[], (s1: FormErrorMessagesState) => _o3r_forms.FormErrorModel[]>;
291
+ /** Select the dictionary of FormErrorMessages entities */
292
+ declare const selectFormErrorMessagesEntities: _ngrx_store.MemoizedSelector<object, _ngrx_entity.Dictionary<_o3r_forms.FormErrorModel>, (s1: FormErrorMessagesState) => _ngrx_entity.Dictionary<_o3r_forms.FormErrorModel>>;
293
+ /** Select the total FormErrorMessages count */
294
+ declare const selectFormErrorMessagesTotal: _ngrx_store.MemoizedSelector<object, number, (s1: FormErrorMessagesState) => number>;
295
+ /** Select the array of all ElementErrors */
296
+ declare const selectAllElementErrors: _ngrx_store.MemoizedSelector<object, ElementError[], (s1: _o3r_forms.FormErrorModel[]) => ElementError[]>;
297
+ /** Select the array of all ErrorMessageObjects */
298
+ declare const selectAllErrorMessageObjects: _ngrx_store.MemoizedSelector<object, ErrorMessageObject[], (s1: ElementError[]) => ErrorMessageObject[]>;
299
+
300
+ /**
301
+ * A directive which installs the `MaxDateValidator` for any `formControlName,
302
+ * `formControl`,
303
+ * or control with `ngModel` that also has a `maxdate` attribute.
304
+ */
305
+ declare class MaxDateValidator implements Validator, OnChanges {
306
+ /** Maximum date to compare to */
307
+ maxdate: utils.Date | null;
308
+ private validator;
309
+ private onChange;
310
+ private createValidator;
311
+ /** @inheritDoc */
312
+ ngOnChanges(changes: SimpleChanges): void;
313
+ /** @inheritDoc */
314
+ validate(c: AbstractControl): ValidationErrors | null;
315
+ /** @inheritDoc */
316
+ registerOnValidatorChange(fn: () => void): void;
317
+ /**
318
+ * Maximum Date validator
319
+ * @param maxDate Maximum date to compare to
320
+ */
321
+ static maxDate(maxDate: utils.Date | null): ValidatorFn;
322
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidator, never>;
323
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidator, "[maxdate][formControlName],[maxdate][formControl],[maxdate][ngModel]", never, { "maxdate": { "alias": "maxdate"; "required": false; }; }, {}, never, never, true, never>;
324
+ }
325
+
326
+ /**
327
+ * A directive which installs the `MinDateValidator` for any `formControlName,
328
+ * `formControl`,
329
+ * or control with `ngModel` that also has a `mindate` attribute.
330
+ */
331
+ declare class MinDateValidator implements Validator, OnChanges {
332
+ /** Minimum date to compare to */
333
+ mindate: utils.Date | null;
334
+ private validator;
335
+ private onChange;
336
+ private createValidator;
337
+ /** @inheritDoc */
338
+ ngOnChanges(changes: SimpleChanges): void;
339
+ /** @inheritDoc */
340
+ validate(c: AbstractControl): ValidationErrors | null;
341
+ /** @inheritDoc */
342
+ registerOnValidatorChange(fn: () => void): void;
343
+ /**
344
+ * Minimum Date validator
345
+ * @param minDate Minimum date to compare to
346
+ */
347
+ static minDate(minDate: utils.Date | null): ValidatorFn;
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinDateValidator, never>;
349
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinDateValidator, "[mindate][formControlName],[mindate][formControl],[mindate][ngModel]", never, { "mindate": { "alias": "mindate"; "required": false; }; }, {}, never, never, true, never>;
350
+ }
351
+
352
+ /**
353
+ * @deprecated MaxDateValidator and MinDateValidator are now standalone, this module will be removed in v14
354
+ */
355
+ declare class DateValidatorsModule {
356
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateValidatorsModule, never>;
357
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateValidatorsModule, never, [typeof i1.CommonModule, typeof MaxDateValidator, typeof MinDateValidator], [typeof MaxDateValidator, typeof MinDateValidator]>;
358
+ static ɵinj: i0.ɵɵInjectorDeclaration<DateValidatorsModule>;
359
+ }
360
+
361
+ /**
362
+ * A directive which installs the `MaxValidator` for any `formControlName,
363
+ * `formControl`,
364
+ * or control with `ngModel` that also has a `max` attribute.
365
+ */
366
+ declare class MaxValidator implements Validator, OnChanges {
367
+ /** Maximum date to compare to */
368
+ max: string | number | null;
369
+ private validator;
370
+ private onChange;
371
+ private createValidator;
372
+ /** @inheritDoc */
373
+ ngOnChanges(changes: SimpleChanges): void;
374
+ /** @inheritDoc */
375
+ validate(c: AbstractControl): ValidationErrors | null;
376
+ /** @inheritDoc */
377
+ registerOnValidatorChange(fn: () => void): void;
378
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidator, never>;
379
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidator, "[max][formControlName],[max][formControl],[max][ngModel]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
380
+ }
381
+
382
+ /**
383
+ * A directive which installs the `MinValidator` for any `formControlName,
384
+ * `formControl`,
385
+ * or control with `ngModel` that also has a `min` attribute.
386
+ */
387
+ declare class MinValidator implements Validator, OnChanges {
388
+ /** Minimum date to compare to */
389
+ min: string | number | null;
390
+ private validator;
391
+ private onChange;
392
+ private createValidator;
393
+ /** @inheritDoc */
394
+ ngOnChanges(changes: SimpleChanges): void;
395
+ /** @inheritDoc */
396
+ validate(c: AbstractControl): ValidationErrors | null;
397
+ /** @inheritDoc */
398
+ registerOnValidatorChange(fn: () => void): void;
399
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinValidator, never>;
400
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidator, "[min][formControlName],[min][formControl],[min][ngModel]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, true, never>;
401
+ }
402
+
403
+ /**
404
+ * @deprecated MaxValidator and MinValidator are now standalone, this module will be removed in v14
405
+ */
406
+ declare class NumberValidatorsModule {
407
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberValidatorsModule, never>;
408
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NumberValidatorsModule, never, [typeof i1.CommonModule, typeof MaxValidator, typeof MinValidator], [typeof MaxValidator, typeof MinValidator]>;
409
+ static ɵinj: i0.ɵɵInjectorDeclaration<NumberValidatorsModule>;
410
+ }
411
+
412
+ export { AsyncInput, DateValidatorsModule, ExtendedValidator, FORM_ERROR_MESSAGES_REDUCER_TOKEN, FORM_ERROR_MESSAGES_STORE_NAME, FormErrorMessagesStoreModule, MaxDateValidator, MaxValidator, MinDateValidator, MinValidator, NumberValidatorsModule, clearFormErrorMessagesEntities, formErrorMessagesAdapter, formErrorMessagesInitialState, formErrorMessagesReducer, formErrorMessagesReducerFeatures, getDefaultFormErrorMessagesReducer, getFlatControlErrors, isFormGroup, markAllControlsDirtyAndTouched, markAllControlsPristineAndUntouched, removeFormErrorMessagesEntity, resetFormErrorMessages, selectAllElementErrors, selectAllErrorMessageObjects, selectAllFormErrorMessages, selectFormErrorMessagesEntities, selectFormErrorMessagesIds, selectFormErrorMessagesState, selectFormErrorMessagesTotal, setFormErrorMessagesEntities, upsertFormErrorMessagesEntities };
413
+ export type { AsyncCustomFieldsValidation, AsyncCustomFormValidation, AsyncCustomValidationFn, ControlFlatErrors, CustomErrors, CustomFieldsValidation, CustomFormValidation, CustomValidationFn, ElementError, ErrorMessageObject, FlatError, FormError, FormErrorMessagesState, FormErrorMessagesStore, FormErrorModel, RemoveFormErrorMessagesPayload, Submittable };
414
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sources":["../src/annotations/async-input.ts","../src/core/errors.ts","../src/core/custom-validation.ts","../src/core/extended-validator.ts","../src/core/flat-errors.ts","../src/core/helpers.ts","../src/core/submit.ts","../src/stores/form-error-messages/form-error-messages.actions.ts","../src/stores/form-error-messages/form-error-messages.state.ts","../src/stores/form-error-messages/form-error-messages-module.ts","../src/stores/form-error-messages/form-error-messages.reducer.ts","../src/stores/form-error-messages/form-error-messages.selectors.ts","../src/validators/date/max-date-validator.ts","../src/validators/date/min-date-validator.ts","../src/validators/date/date-validators-module.ts","../src/validators/number/max-validator.ts","../src/validators/number/min-validator.ts","../src/validators/number/number-validators-module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAQA;;;;;;;;;;;;AAYG;AAEH,iBAAA,UAAA;;ACtBA;;AAEE;;;;;;AAMG;;AAGH;;;;;;;AAOG;;;AAIH;AAAsB;;AAEtB;;;;;;;;;;;AAWG;AACH;AAAoB;;AAEpB;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAEJ;AAED;;;;;;AAOC;AAED;;;;;;AAOC;;ACjED;;AAEG;;;;AAIF;AAED;AACM,KAAA,kBAAA,aAAA,eAAA,KAAA,YAAA;AAEN;AACM,KAAA,uBAAA,aAAA,eAAA,KAAA,UAAA,CAAA,YAAA,WAAA,OAAA,CAAA,YAAA;AAEN;AACM,KAAA,sBAAA;AAAqC,qBAAA,kBAAA;;AAE3C;AACM,KAAA,2BAAA;AAA0C,qBAAA,uBAAA;;AAEhD;AACM,UAAA,oBAAA;;AAEJ,aAAA,sBAAA;;;AAGD;AAED;;AAEG;AACG,UAAA,yBAAA;;AAEJ,aAAA,2BAAA;;;AAGD;;ACvCD,uBAAA,iBAAA,YAAA,SAAA;AACE;;AAEG;AACH,yBAAA,WAAA;AAEA;;;AAGG;AACI,sBAAA,eAAA,GAAA,gBAAA;AAKR;;ACfD;;;;;;;;AAQC;AAED;;;;AAIG;;AAED;;;AAGG;;;AAGH,mBAAA,kBAAA;;;AAGD;;ACtBD;;;AAGG;AACH,iBAAA,WAAA,UAAA,eAAA,cAAA,SA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AAA,SAAA,EAAA,SAAA;;AAakB;;;AAKhB;;AAOO,yBAAA,aAAA;;AAWA,gBAAA,eAAA,GAAA,gBAAA;;AAKA;;;AAGR;;ACpDD;;AAEG;AACH,cAAA,sBAAA;;;;AAIsC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/forms",
3
- "version": "14.1.0-prerelease.2",
3
+ "version": "14.1.0-prerelease.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,15 +11,15 @@
11
11
  "otter-module"
12
12
  ],
13
13
  "peerDependencies": {
14
- "@ama-sdk/core": "~14.1.0-prerelease.2",
14
+ "@ama-sdk/core": "~14.1.0-prerelease.4",
15
15
  "@angular-devkit/schematics": "^21.0.0",
16
16
  "@angular/common": "^21.0.0",
17
17
  "@angular/core": "^21.0.0",
18
18
  "@angular/forms": "^21.0.0",
19
19
  "@ngrx/entity": "^21.0.0",
20
20
  "@ngrx/store": "^21.0.0",
21
- "@o3r/core": "~14.1.0-prerelease.2",
22
- "@o3r/schematics": "~14.1.0-prerelease.2",
21
+ "@o3r/core": "~14.1.0-prerelease.4",
22
+ "@o3r/schematics": "~14.1.0-prerelease.4",
23
23
  "@schematics/angular": "^21.0.0",
24
24
  "rxjs": "^7.8.1",
25
25
  "type-fest": "^5.3.1"
@@ -39,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@o3r/schematics": "~14.1.0-prerelease.2",
42
+ "@o3r/schematics": "~14.1.0-prerelease.4",
43
43
  "tslib": "^2.6.2"
44
44
  },
45
45
  "engines": {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAAA,kCAAkC;AAClC,2DAGoC;AACpC,gDAGyB;AAKzB;;GAEG;AACH,MAAM,qBAAqB,GAAG;IAC5B,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,MAAM;CACP,CAAC;AAEF;;GAEG;AACH,MAAM,wBAAwB,GAAa,EAAE,CAAC;AAE9C,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,kCAAqB,EAAC,OAAO,EAAE,eAAe,EAAE,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,CAAC;KACrG,CAAC,CAAC;AACL,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,IAAA,iCAAoB,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AAAnF,QAAA,KAAK,SAA8E"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}