@mckit/form 19.0.39 → 20.0.3

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.
Files changed (41) hide show
  1. package/fesm2022/mckit-form.mjs +132 -107
  2. package/fesm2022/mckit-form.mjs.map +1 -1
  3. package/index.d.ts +400 -5
  4. package/package.json +5 -5
  5. package/lib/components/footer-modal-form/footer-modal-form.component.d.ts +0 -23
  6. package/lib/components/footer-with-delete-modal-form/footer-with-delete-modal-form.component.d.ts +0 -7
  7. package/lib/components/form/form.component.d.ts +0 -23
  8. package/lib/components/form-modal/form-modal.component.d.ts +0 -21
  9. package/lib/components/http-form-modal/http-form-modal.component.d.ts +0 -17
  10. package/lib/components/print-field/print-field.component.d.ts +0 -16
  11. package/lib/entities/mc-config-form.d.ts +0 -6
  12. package/lib/entities/mc-config-http-modal-form.d.ts +0 -5
  13. package/lib/entities/mc-config-modal-form.d.ts +0 -7
  14. package/lib/entities/mc-event-form.d.ts +0 -5
  15. package/lib/entities/mc-event-modal-form.d.ts +0 -5
  16. package/lib/entities/mc-field.d.ts +0 -16
  17. package/lib/entities/mc-ifta-field.d.ts +0 -14
  18. package/lib/fields/array-field/array-field.component.d.ts +0 -21
  19. package/lib/fields/array-ifta-text-field/array-ifta-text-field.component.d.ts +0 -17
  20. package/lib/fields/column-field/column-field.component.d.ts +0 -10
  21. package/lib/fields/conditional-field/conditional-field.component.d.ts +0 -18
  22. package/lib/fields/divider-field/divider-field.component.d.ts +0 -10
  23. package/lib/fields/fieldset-field/fieldset-field.component.d.ts +0 -10
  24. package/lib/fields/group-field/group-field.component.d.ts +0 -12
  25. package/lib/fields/hidden-field/hidden-field.component.d.ts +0 -10
  26. package/lib/fields/ifta-currency-field/ifta-currency-field.component.d.ts +0 -18
  27. package/lib/fields/ifta-select-field/ifta-select-field.component.d.ts +0 -15
  28. package/lib/fields/ifta-select-obs-field/ifta-select-obs-field.component.d.ts +0 -23
  29. package/lib/fields/ifta-text-conditional-field/ifta-text-conditional-field.component.d.ts +0 -23
  30. package/lib/fields/ifta-text-field/ifta-text-field.component.d.ts +0 -16
  31. package/lib/fields/ifta-textarea-field/ifta-textarea-field.component.d.ts +0 -15
  32. package/lib/fields/mc-field.component.d.ts +0 -13
  33. package/lib/fields/row-field/row-field.component.d.ts +0 -11
  34. package/lib/fields/submit-button-field/submit-button-field.component.d.ts +0 -20
  35. package/lib/fields/tags-field/tags-field.component.d.ts +0 -10
  36. package/lib/rxjs/mc-event-form-modal-operator.d.ts +0 -4
  37. package/lib/services/base-http-form-modal-service.d.ts +0 -21
  38. package/lib/services/form-modal.service.d.ts +0 -15
  39. package/lib/services/http-form-modal.service.d.ts +0 -11
  40. package/lib/services/mc-form.service.d.ts +0 -15
  41. package/public-api.d.ts +0 -49
@@ -33,6 +33,8 @@ import * as i4 from 'primeng/inputgroup';
33
33
  import { InputGroupModule } from 'primeng/inputgroup';
34
34
  import * as i5 from 'primeng/inputgroupaddon';
35
35
  import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
36
+ import * as i3$5 from 'primeng/datepicker';
37
+ import { DatePickerModule } from 'primeng/datepicker';
36
38
 
37
39
  class MCField {
38
40
  key;
@@ -208,10 +210,10 @@ class MCFormService {
208
210
  }
209
211
  }
210
212
  }
211
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
212
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormService, providedIn: 'root' });
213
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
214
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormService, providedIn: 'root' });
213
215
  }
214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormService, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormService, decorators: [{
215
217
  type: Injectable,
216
218
  args: [{
217
219
  providedIn: 'root'
@@ -219,10 +221,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
219
221
  }] });
220
222
 
221
223
  class PrintFieldComponent {
222
- field = input.required();
223
- control = input();
224
- group = input();
225
- eventObs = input();
224
+ field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
225
+ control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
226
+ group = input(...(ngDevMode ? [undefined, { debugName: "group" }] : []));
227
+ eventObs = input(...(ngDevMode ? [undefined, { debugName: "eventObs" }] : []));
226
228
  viewContainerRef = inject(ViewContainerRef);
227
229
  ngOnInit() {
228
230
  const view = this.viewContainerRef.createComponent(this.field().component);
@@ -231,17 +233,17 @@ class PrintFieldComponent {
231
233
  view.setInput('group', this.group());
232
234
  view.setInput('eventObs', this.eventObs());
233
235
  }
234
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: PrintFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
235
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.13", type: PrintFieldComponent, isStandalone: true, selector: "mc-print-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, eventObs: { classPropertyName: "eventObs", publicName: "eventObs", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }] });
236
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrintFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
237
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.4", type: PrintFieldComponent, isStandalone: true, selector: "mc-print-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, eventObs: { classPropertyName: "eventObs", publicName: "eventObs", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true, styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }] });
236
238
  }
237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: PrintFieldComponent, decorators: [{
239
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: PrintFieldComponent, decorators: [{
238
240
  type: Component,
239
241
  args: [{ selector: 'mc-print-field', imports: [CommonModule, ReactiveFormsModule], template: '' }]
240
242
  }] });
241
243
 
242
244
  class MCForm {
243
- config = input.required();
244
- formGroup = signal(undefined);
245
+ config = input.required(...(ngDevMode ? [{ debugName: "config" }] : []));
246
+ formGroup = signal(undefined, ...(ngDevMode ? [{ debugName: "formGroup" }] : []));
245
247
  formService = inject(MCFormService);
246
248
  onEvent = output();
247
249
  eventObs = new Subject();
@@ -273,19 +275,19 @@ class MCForm {
273
275
  getEventObs() {
274
276
  return this.eventObs;
275
277
  }
276
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCForm, deps: [], target: i0.ɵɵFactoryTarget.Component });
277
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: MCForm, isStandalone: true, selector: "mc-form", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onEvent: "onEvent" }, ngImport: i0, template: "@if(formGroup()) {\n <form [formGroup]=\"formGroup()!\" class=\"mc-form\">\n @for (field of config().fields; track $index) {\n <div class=\"{{(config().containerFieldClass || 'mb-3')}}\">\n <mc-print-field [field]=\"field\" [control]=\"formGroup()!.get(field.key ?? '')\" [group]=\"formGroup()!\" [eventObs]=\"eventObs\" />\n </div>\n }\n </form>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
278
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCForm, deps: [], target: i0.ɵɵFactoryTarget.Component });
279
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MCForm, isStandalone: true, selector: "mc-form", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onEvent: "onEvent" }, ngImport: i0, template: "@if(formGroup()) {\n <form [formGroup]=\"formGroup()!\" class=\"mc-form\">\n @for (field of config().fields; track $index) {\n <div class=\"{{(config().containerFieldClass || 'mb-3')}}\">\n <mc-print-field [field]=\"field\" [control]=\"formGroup()!.get(field.key ?? '')\" [group]=\"formGroup()!\" [eventObs]=\"eventObs\" />\n </div>\n }\n </form>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
278
280
  }
279
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCForm, decorators: [{
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCForm, decorators: [{
280
282
  type: Component,
281
283
  args: [{ selector: 'mc-form', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent], template: "@if(formGroup()) {\n <form [formGroup]=\"formGroup()!\" class=\"mc-form\">\n @for (field of config().fields; track $index) {\n <div class=\"{{(config().containerFieldClass || 'mb-3')}}\">\n <mc-print-field [field]=\"field\" [control]=\"formGroup()!.get(field.key ?? '')\" [group]=\"formGroup()!\" [eventObs]=\"eventObs\" />\n </div>\n }\n </form>\n}\n" }]
282
284
  }] });
283
285
 
284
286
  class MCFormModal {
285
- formComponent = viewChild(MCForm);
287
+ formComponent = viewChild(MCForm, ...(ngDevMode ? [{ debugName: "formComponent" }] : []));
286
288
  dialogService = inject(DialogService);
287
289
  dialogRef = inject(DynamicDialogRef);
288
- formConfig = signal(new MCConfigForm());
290
+ formConfig = signal(new MCConfigForm(), ...(ngDevMode ? [{ debugName: "formConfig" }] : []));
289
291
  ngOnInit() {
290
292
  this.initForm();
291
293
  }
@@ -294,7 +296,7 @@ class MCFormModal {
294
296
  }
295
297
  initForm() {
296
298
  let instance = this.dialogService.getInstance(this.dialogRef);
297
- if (instance.data == undefined) {
299
+ if (instance?.data == undefined) {
298
300
  this.dialogRef.close();
299
301
  return;
300
302
  }
@@ -306,10 +308,10 @@ class MCFormModal {
306
308
  getEventObs() {
307
309
  return this.formComponent().getEventObs();
308
310
  }
309
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.13", type: MCFormModal, isStandalone: true, selector: "mc-form-modal", viewQueries: [{ propertyName: "formComponent", first: true, predicate: MCForm, descendants: true, isSignal: true }], ngImport: i0, template: "<mc-form [config]=\"formConfig()\" />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MCForm, selector: "mc-form", inputs: ["config"], outputs: ["onEvent"] }] });
311
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormModal, deps: [], target: i0.ɵɵFactoryTarget.Component });
312
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.4", type: MCFormModal, isStandalone: true, selector: "mc-form-modal", viewQueries: [{ propertyName: "formComponent", first: true, predicate: MCForm, descendants: true, isSignal: true }], ngImport: i0, template: "<mc-form [config]=\"formConfig()\" />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MCForm, selector: "mc-form", inputs: ["config"], outputs: ["onEvent"] }] });
311
313
  }
312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormModal, decorators: [{
314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormModal, decorators: [{
313
315
  type: Component,
314
316
  args: [{ selector: 'mc-form-modal', imports: [CommonModule, MCForm], template: "<mc-form [config]=\"formConfig()\" />\n" }]
315
317
  }] });
@@ -317,7 +319,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
317
319
  class MCFooterModalForm {
318
320
  dialogService = inject(DialogService);
319
321
  dialogRef = inject((DynamicDialogRef));
320
- isLoading = signal(false);
322
+ isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
321
323
  group;
322
324
  eventObs;
323
325
  eventSubscription;
@@ -343,7 +345,7 @@ class MCFooterModalForm {
343
345
  }
344
346
  initConfig() {
345
347
  let instance = this.dialogService.getInstance(this.dialogRef);
346
- if (instance.data == undefined) {
348
+ if (instance?.data == undefined) {
347
349
  this.dialogRef.close();
348
350
  return;
349
351
  }
@@ -362,10 +364,10 @@ class MCFooterModalForm {
362
364
  }
363
365
  });
364
366
  }
365
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFooterModalForm, deps: [], target: i0.ɵɵFactoryTarget.Component });
366
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: MCFooterModalForm, isStandalone: true, selector: "mc-footer-modal-form", ngImport: i0, template: "<p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n@if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n}\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
367
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFooterModalForm, deps: [], target: i0.ɵɵFactoryTarget.Component });
368
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MCFooterModalForm, isStandalone: true, selector: "mc-footer-modal-form", ngImport: i0, template: "<p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n@if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n}\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
367
369
  }
368
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFooterModalForm, decorators: [{
370
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFooterModalForm, decorators: [{
369
371
  type: Component,
370
372
  args: [{ selector: 'mc-footer-modal-form', imports: [CommonModule, ButtonModule], template: "<p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n@if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n}\n\n" }]
371
373
  }] });
@@ -380,10 +382,10 @@ class MCFooterWithDeleteModalForm extends MCFooterModalForm {
380
382
  }
381
383
  this.eventObs?.next(event);
382
384
  }
383
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFooterWithDeleteModalForm, deps: null, target: i0.ɵɵFactoryTarget.Component });
384
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: MCFooterWithDeleteModalForm, isStandalone: true, selector: "mc-footer-with-delete-modal-form", usesInheritance: true, ngImport: i0, template: "<div class=\"flex justify-between\">\n <div >\n <p-button label=\"Delete\" severity=\"danger\" (onClick)=\"onClickDelete()\" styleClass=\"mr-3\" />\n </div>\n <div>\n <p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n @if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
385
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFooterWithDeleteModalForm, deps: null, target: i0.ɵɵFactoryTarget.Component });
386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: MCFooterWithDeleteModalForm, isStandalone: true, selector: "mc-footer-with-delete-modal-form", usesInheritance: true, ngImport: i0, template: "<div class=\"flex justify-between\">\n <div >\n <p-button label=\"Delete\" severity=\"danger\" (onClick)=\"onClickDelete()\" styleClass=\"mr-3\" />\n </div>\n <div>\n <p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n @if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
385
387
  }
386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFooterWithDeleteModalForm, decorators: [{
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFooterWithDeleteModalForm, decorators: [{
387
389
  type: Component,
388
390
  args: [{ selector: 'mc-footer-with-delete-modal-form', imports: [CommonModule, ButtonModule], template: "<div class=\"flex justify-between\">\n <div >\n <p-button label=\"Delete\" severity=\"danger\" (onClick)=\"onClickDelete()\" styleClass=\"mr-3\" />\n </div>\n <div>\n <p-button label=\"Cancel\" severity=\"secondary\" (onClick)=\"onClickCancel()\" styleClass=\"mr-3\" />\n @if(group != undefined){\n <p-button label=\"Submit\" severity=\"primary\" (onClick)=\"onClickSubmit()\" icon=\"pi pi-send\" [disabled]=\"!group()?.valid || group()?.disabled\" [loading]=\"isLoading()\" />\n }\n </div>\n</div>\n" }]
389
391
  }] });
@@ -421,10 +423,10 @@ class MCFormModalService {
421
423
  config.styleClass = config.styleClass ?? 'w-full md:w-2xl mc-form-modal';
422
424
  return config;
423
425
  }
424
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
425
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormModalService, providedIn: 'root' });
426
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
427
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormModalService, providedIn: 'root' });
426
428
  }
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFormModalService, decorators: [{
429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFormModalService, decorators: [{
428
430
  type: Injectable,
429
431
  args: [{
430
432
  providedIn: 'root',
@@ -433,7 +435,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
433
435
 
434
436
  class MCHttpFormModal extends MCFormModal {
435
437
  messageService = inject(MessageService);
436
- formConfig = signal(new MCConfigHttpModalForm());
438
+ formConfig = signal(new MCConfigHttpModalForm(), ...(ngDevMode ? [{ debugName: "formConfig" }] : []));
437
439
  httpSubscription;
438
440
  ngAfterViewInit() {
439
441
  this.initEvents();
@@ -461,10 +463,10 @@ class MCHttpFormModal extends MCFormModal {
461
463
  }
462
464
  });
463
465
  }
464
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCHttpFormModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
465
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: MCHttpFormModal, isStandalone: true, selector: "mc-http-form-modal", providers: [MessageService], usesInheritance: true, ngImport: i0, template: "<mc-form [config]=\"formConfig()\" />\n<p-toast />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MCForm, selector: "mc-form", inputs: ["config"], outputs: ["onEvent"] }, { kind: "ngmodule", type: ToastModule }, { kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] });
466
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCHttpFormModal, deps: null, target: i0.ɵɵFactoryTarget.Component });
467
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: MCHttpFormModal, isStandalone: true, selector: "mc-http-form-modal", providers: [MessageService], usesInheritance: true, ngImport: i0, template: "<mc-form [config]=\"formConfig()\" />\n<p-toast />\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: MCForm, selector: "mc-form", inputs: ["config"], outputs: ["onEvent"] }, { kind: "ngmodule", type: ToastModule }, { kind: "component", type: i1$2.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "life", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }] });
466
468
  }
467
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCHttpFormModal, decorators: [{
469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCHttpFormModal, decorators: [{
468
470
  type: Component,
469
471
  args: [{ selector: 'mc-http-form-modal', imports: [CommonModule, MCForm, ToastModule], providers: [MessageService], template: "<mc-form [config]=\"formConfig()\" />\n<p-toast />\n" }]
470
472
  }] });
@@ -489,10 +491,10 @@ class MCHttpFormModalService extends MCFormModalService {
489
491
  openRight(config) {
490
492
  return this.open(MCFormModalService.initConfigRight(config));
491
493
  }
492
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCHttpFormModalService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
493
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCHttpFormModalService, providedIn: 'root' });
494
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCHttpFormModalService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
495
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCHttpFormModalService, providedIn: 'root' });
494
496
  }
495
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCHttpFormModalService, decorators: [{
497
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCHttpFormModalService, decorators: [{
496
498
  type: Injectable,
497
499
  args: [{
498
500
  providedIn: 'root'
@@ -529,14 +531,14 @@ class MCBaseHttpFormModalService {
529
531
  }
530
532
 
531
533
  class MCFieldComponent {
532
- field = input.required();
533
- control = input();
534
- group = input.required();
535
- eventObs = input();
536
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
537
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.13", type: MCFieldComponent, isStandalone: true, selector: "mc-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null }, eventObs: { classPropertyName: "eventObs", publicName: "eventObs", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true });
534
+ field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
535
+ control = input(...(ngDevMode ? [undefined, { debugName: "control" }] : []));
536
+ group = input.required(...(ngDevMode ? [{ debugName: "group" }] : []));
537
+ eventObs = input(...(ngDevMode ? [undefined, { debugName: "eventObs" }] : []));
538
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
539
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.4", type: MCFieldComponent, isStandalone: true, selector: "mc-field", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, control: { classPropertyName: "control", publicName: "control", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null }, eventObs: { classPropertyName: "eventObs", publicName: "eventObs", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true });
538
540
  }
539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: MCFieldComponent, decorators: [{
541
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: MCFieldComponent, decorators: [{
540
542
  type: Component,
541
543
  args: [{
542
544
  selector: 'mc-field',
@@ -545,10 +547,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImpo
545
547
  }] });
546
548
 
547
549
  class IftaTextFieldComponent extends MCFieldComponent {
548
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
549
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: IftaTextFieldComponent, isStandalone: true, selector: "mc-ifta-text-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }] });
550
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
551
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: IftaTextFieldComponent, isStandalone: true, selector: "mc-ifta-text-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }] });
550
552
  }
551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextFieldComponent, decorators: [{
553
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextFieldComponent, decorators: [{
552
554
  type: Component,
553
555
  args: [{ selector: 'mc-ifta-text-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, InputTextModule], template: "<p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n" }]
554
556
  }] });
@@ -567,7 +569,7 @@ class IftaTextField {
567
569
  }
568
570
 
569
571
  class SubmitButtonFieldComponent extends MCFieldComponent {
570
- isLoading = signal(false);
572
+ isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
571
573
  eventSubscription;
572
574
  ngOnInit() {
573
575
  this.eventSubscription = this.eventObs()?.subscribe(event => {
@@ -583,10 +585,10 @@ class SubmitButtonFieldComponent extends MCFieldComponent {
583
585
  this.isLoading.set(true);
584
586
  this.eventObs()?.next(MCEventForm.init(this.field().key ?? 'submit', this.group()?.value));
585
587
  }
586
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: SubmitButtonFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
587
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: SubmitButtonFieldComponent, isStandalone: true, selector: "mc-submit-button-field", usesInheritance: true, ngImport: i0, template: "<div class=\"flex justify-end\">\n <p-button [label]=\"field().config.label\" [disabled]=\"!group().valid || group().disabled\" (onClick)=\"onClick()\" [loading]=\"isLoading()\" [icon]=\"field().config.icon\" />\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
588
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SubmitButtonFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
589
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: SubmitButtonFieldComponent, isStandalone: true, selector: "mc-submit-button-field", usesInheritance: true, ngImport: i0, template: "<div class=\"flex justify-end\">\n <p-button [label]=\"field().config.label\" [disabled]=\"!group().valid || group().disabled\" (onClick)=\"onClick()\" [loading]=\"isLoading()\" [icon]=\"field().config.icon\" />\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
588
590
  }
589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: SubmitButtonFieldComponent, decorators: [{
591
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: SubmitButtonFieldComponent, decorators: [{
590
592
  type: Component,
591
593
  args: [{ selector: 'mc-submit-button-field', imports: [CommonModule, ButtonModule], template: "<div class=\"flex justify-end\">\n <p-button [label]=\"field().config.label\" [disabled]=\"!group().valid || group().disabled\" (onClick)=\"onClick()\" [loading]=\"isLoading()\" [icon]=\"field().config.icon\" />\n</div>\n" }]
592
594
  }] });
@@ -610,11 +612,11 @@ class GroupFieldComponent extends MCFieldComponent {
610
612
  return this.group().get(this.field().key);
611
613
  }
612
614
  return undefined;
613
- });
614
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: GroupFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
615
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: GroupFieldComponent, isStandalone: true, selector: "mc-group-field", usesInheritance: true, ngImport: i0, template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
615
+ }, ...(ngDevMode ? [{ debugName: "newGroup" }] : []));
616
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: GroupFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
617
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: GroupFieldComponent, isStandalone: true, selector: "mc-group-field", usesInheritance: true, ngImport: i0, template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
616
618
  }
617
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: GroupFieldComponent, decorators: [{
619
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: GroupFieldComponent, decorators: [{
618
620
  type: Component,
619
621
  args: [{ selector: 'mc-group-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent], template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n" }]
620
622
  }] });
@@ -634,10 +636,10 @@ class GroupField {
634
636
  }
635
637
 
636
638
  class RowFieldComponent extends GroupFieldComponent {
637
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: RowFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
638
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: RowFieldComponent, isStandalone: true, selector: "mc-row-field", usesInheritance: true, ngImport: i0, template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n} @else {\n <div class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
639
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
640
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: RowFieldComponent, isStandalone: true, selector: "mc-row-field", usesInheritance: true, ngImport: i0, template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n} @else {\n <div class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
639
641
  }
640
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: RowFieldComponent, decorators: [{
642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: RowFieldComponent, decorators: [{
641
643
  type: Component,
642
644
  args: [{ selector: 'mc-row-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent], template: "@if(newGroup()) {\n <div [formGroup]=\"newGroup()!\" class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"newGroup()!.get(field.key ?? '')\" [group]=\"newGroup()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n} @else {\n <div class=\"mc-row-form flex flex-row gap-3\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n}\n" }]
643
645
  }] });
@@ -669,10 +671,10 @@ class RowField {
669
671
  }
670
672
 
671
673
  class HiddenFieldComponent extends MCFieldComponent {
672
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: HiddenFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
673
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: HiddenFieldComponent, isStandalone: true, selector: "mc-hidden-field", usesInheritance: true, ngImport: i0, template: "", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
674
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: HiddenFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
675
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: HiddenFieldComponent, isStandalone: true, selector: "mc-hidden-field", usesInheritance: true, ngImport: i0, template: "", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
674
676
  }
675
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: HiddenFieldComponent, decorators: [{
677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: HiddenFieldComponent, decorators: [{
676
678
  type: Component,
677
679
  args: [{ selector: 'mc-hidden-field', imports: [CommonModule], template: "" }]
678
680
  }] });
@@ -687,10 +689,10 @@ class HiddenField {
687
689
  }
688
690
 
689
691
  class IftaSelectFieldComponent extends MCFieldComponent {
690
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaSelectFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
691
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: IftaSelectFieldComponent, isStandalone: true, selector: "mc-ifta-select-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"field().config.options\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
692
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaSelectFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
693
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: IftaSelectFieldComponent, isStandalone: true, selector: "mc-ifta-select-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"field().config.options\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
692
694
  }
693
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaSelectFieldComponent, decorators: [{
695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaSelectFieldComponent, decorators: [{
694
696
  type: Component,
695
697
  args: [{ selector: 'mc-ifta-select-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, SelectModule], template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"field().config.options\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n" }]
696
698
  }] });
@@ -712,7 +714,7 @@ class IftaSelectField {
712
714
  }
713
715
 
714
716
  class IftaTextConditionalFieldComponent extends MCFieldComponent {
715
- isShow = signal(false);
717
+ isShow = signal(false, ...(ngDevMode ? [{ debugName: "isShow" }] : []));
716
718
  valuesSubscription;
717
719
  ngOnInit() {
718
720
  this.loadObs();
@@ -739,10 +741,10 @@ class IftaTextConditionalFieldComponent extends MCFieldComponent {
739
741
  this.verifyCondition(value);
740
742
  });
741
743
  }
742
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextConditionalFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
743
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: IftaTextConditionalFieldComponent, isStandalone: true, selector: "mc-ifta-text-conditional-field", usesInheritance: true, ngImport: i0, template: "@if(isShow()){\n <p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }] });
744
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextConditionalFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
745
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IftaTextConditionalFieldComponent, isStandalone: true, selector: "mc-ifta-text-conditional-field", usesInheritance: true, ngImport: i0, template: "@if(isShow()){\n <p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }] });
744
746
  }
745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextConditionalFieldComponent, decorators: [{
747
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextConditionalFieldComponent, decorators: [{
746
748
  type: Component,
747
749
  args: [{ selector: 'mc-ifta-text-conditional-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, InputTextModule], template: "@if(isShow()){\n <p-iftalabel>\n <input pInputText id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n}\n" }]
748
750
  }] });
@@ -763,8 +765,8 @@ class IftaTextConditionalField {
763
765
  }
764
766
 
765
767
  class IftaSelectObsFieldComponent extends MCFieldComponent {
766
- isLoading = signal(false);
767
- options = signal([]);
768
+ isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
769
+ options = signal([], ...(ngDevMode ? [{ debugName: "options" }] : []));
768
770
  optionsSubscription;
769
771
  ngOnInit() {
770
772
  this.loadObs();
@@ -781,10 +783,10 @@ class IftaSelectObsFieldComponent extends MCFieldComponent {
781
783
  this.isLoading.set(false);
782
784
  });
783
785
  }
784
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaSelectObsFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
785
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: IftaSelectObsFieldComponent, isStandalone: true, selector: "mc-ifta-select-obs-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"options()\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" [loading]=\"isLoading()\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n ", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
786
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaSelectObsFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
787
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: IftaSelectObsFieldComponent, isStandalone: true, selector: "mc-ifta-select-obs-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"options()\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" [loading]=\"isLoading()\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n ", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: SelectModule }, { kind: "component", type: i3$1.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "panelStyle", "styleClass", "panelStyleClass", "readonly", "editable", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "filterValue", "options", "appendTo"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }] });
786
788
  }
787
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaSelectObsFieldComponent, decorators: [{
789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaSelectObsFieldComponent, decorators: [{
788
790
  type: Component,
789
791
  args: [{ selector: 'mc-ifta-select-obs-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, SelectModule], template: "<p-iftalabel>\n <p-select [formControl]=\"control()!\" inputId=\"{{field().key}}\" [options]=\"options()\" [optionLabel]=\"field().config.optionLabel\" [optionValue]=\"field().config.optionValue\" styleClass=\"w-full\" [appendTo]=\"'body'\" [loading]=\"isLoading()\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n " }]
790
792
  }] });
@@ -806,10 +808,10 @@ class IftaSelectObsField {
806
808
  }
807
809
 
808
810
  class DividerFieldComponent extends MCFieldComponent {
809
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: DividerFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
810
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: DividerFieldComponent, isStandalone: true, selector: "mc-divider-field", usesInheritance: true, ngImport: i0, template: "<p-divider align=\"center\"><b>{{field().config.label}}</b></p-divider>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i1$3.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }] });
811
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: DividerFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
812
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: DividerFieldComponent, isStandalone: true, selector: "mc-divider-field", usesInheritance: true, ngImport: i0, template: "<p-divider align=\"center\"><b>{{field().config.label}}</b></p-divider>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i1$3.Divider, selector: "p-divider", inputs: ["styleClass", "layout", "type", "align"] }] });
811
813
  }
812
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: DividerFieldComponent, decorators: [{
814
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: DividerFieldComponent, decorators: [{
813
815
  type: Component,
814
816
  args: [{ selector: 'mc-divider-field', imports: [CommonModule, DividerModule], template: "<p-divider align=\"center\"><b>{{field().config.label}}</b></p-divider>" }]
815
817
  }] });
@@ -829,7 +831,7 @@ class ArrayFieldComponent extends MCFieldComponent {
829
831
  formArray = computed(() => {
830
832
  let formArray = (this.group().get(this.field().key));
831
833
  return formArray;
832
- });
834
+ }, ...(ngDevMode ? [{ debugName: "formArray" }] : []));
833
835
  onClickAdd() {
834
836
  // Verify if the element is FormArray
835
837
  if (!(this.group().get(this.field().key) instanceof FormArray)) {
@@ -854,12 +856,12 @@ class ArrayFieldComponent extends MCFieldComponent {
854
856
  formArray.insert(newIndex, currentControl);
855
857
  }
856
858
  }
857
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ArrayFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
858
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: ArrayFieldComponent, isStandalone: true, selector: "mc-array-field", usesInheritance: true, ngImport: i0, template: "<div class=\"mc-array-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <p-panel [header]=\"field().config?.labelTitlePanel\" styleClass=\"mb-3\">\n <ng-template #icons>\n <div class=\"flex gap-2\">\n @if(field().config.allow_order) {\n <p-button icon=\"pi pi-arrow-up\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, -1)\"\n [disabled]=\"i === 0\" />\n <p-button icon=\"pi pi-arrow-down\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, 1)\"\n [disabled]=\"i === formArray().length - 1\" />\n }\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" />\n </div>\n </ng-template>\n\n <div [formGroup]=\"row\" class=\"mc-array-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"row.get(field.key ?? '')\" [group]=\"row\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n </p-panel>\n\n </div>\n</div>\n\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\"\n (onClick)=\"onClickAdd()\" />", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }, { kind: "ngmodule", type: PanelModule }, { kind: "component", type: i3$2.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "style", "styleClass", "iconPos", "expandIcon", "collapseIcon", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }] });
859
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ArrayFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
860
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ArrayFieldComponent, isStandalone: true, selector: "mc-array-field", usesInheritance: true, ngImport: i0, template: "<div class=\"mc-array-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <p-panel [header]=\"field().config?.labelTitlePanel\" styleClass=\"mb-3\">\n <ng-template #icons>\n <div class=\"flex gap-2\">\n @if(field().config.allow_order) {\n <p-button icon=\"pi pi-arrow-up\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, -1)\"\n [disabled]=\"i === 0\" />\n <p-button icon=\"pi pi-arrow-down\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, 1)\"\n [disabled]=\"i === formArray().length - 1\" />\n }\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" />\n </div>\n </ng-template>\n\n <div [formGroup]=\"row\" class=\"mc-array-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"row.get(field.key ?? '')\" [group]=\"row\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n </p-panel>\n\n </div>\n</div>\n\n@if(field().config.allow_add) {\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\"\n (onClick)=\"onClickAdd()\" />\n}", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }, { kind: "ngmodule", type: PanelModule }, { kind: "component", type: i3$2.Panel, selector: "p-panel", inputs: ["toggleable", "header", "collapsed", "id", "styleClass", "iconPos", "showHeader", "toggler", "transitionOptions", "toggleButtonProps"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }] });
859
861
  }
860
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ArrayFieldComponent, decorators: [{
862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ArrayFieldComponent, decorators: [{
861
863
  type: Component,
862
- args: [{ selector: 'mc-array-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent, PanelModule, ButtonModule], template: "<div class=\"mc-array-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <p-panel [header]=\"field().config?.labelTitlePanel\" styleClass=\"mb-3\">\n <ng-template #icons>\n <div class=\"flex gap-2\">\n @if(field().config.allow_order) {\n <p-button icon=\"pi pi-arrow-up\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, -1)\"\n [disabled]=\"i === 0\" />\n <p-button icon=\"pi pi-arrow-down\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, 1)\"\n [disabled]=\"i === formArray().length - 1\" />\n }\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" />\n </div>\n </ng-template>\n\n <div [formGroup]=\"row\" class=\"mc-array-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"row.get(field.key ?? '')\" [group]=\"row\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n </p-panel>\n\n </div>\n</div>\n\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\"\n (onClick)=\"onClickAdd()\" />" }]
864
+ args: [{ selector: 'mc-array-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent, PanelModule, ButtonModule], template: "<div class=\"mc-array-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <p-panel [header]=\"field().config?.labelTitlePanel\" styleClass=\"mb-3\">\n <ng-template #icons>\n <div class=\"flex gap-2\">\n @if(field().config.allow_order) {\n <p-button icon=\"pi pi-arrow-up\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, -1)\"\n [disabled]=\"i === 0\" />\n <p-button icon=\"pi pi-arrow-down\" severity=\"secondary\" rounded text (onClick)=\"moveItem(i, 1)\"\n [disabled]=\"i === formArray().length - 1\" />\n }\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" />\n </div>\n </ng-template>\n\n <div [formGroup]=\"row\" class=\"mc-array-group-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"row.get(field.key ?? '')\" [group]=\"row\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n </p-panel>\n\n </div>\n</div>\n\n@if(field().config.allow_add) {\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\"\n (onClick)=\"onClickAdd()\" />\n}" }]
863
865
  }] });
864
866
  class ArrayField {
865
867
  static init(key, fields, data) {
@@ -873,16 +875,17 @@ class ArrayField {
873
875
  labelAddButton: data?.labelAddButton,
874
876
  labelTitlePanel: data?.labelTitlePanel,
875
877
  allow_order: data?.allow_order,
878
+ allow_add: data?.allow_add ?? true,
876
879
  };
877
880
  return field;
878
881
  }
879
882
  }
880
883
 
881
884
  class IftaTextareaFieldComponent extends MCFieldComponent {
882
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextareaFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
883
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: IftaTextareaFieldComponent, isStandalone: true, selector: "mc-ifta-textarea-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <textarea pTextarea id=\"{{field().key}}\" rows=\"5\" cols=\"30\" style=\"resize: none\" class=\"w-full\" [formControl]=\"control()!\"></textarea>\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i3$3.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["autoResize", "variant", "fluid", "pSize"], outputs: ["onResize"] }] });
885
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextareaFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
886
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: IftaTextareaFieldComponent, isStandalone: true, selector: "mc-ifta-textarea-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <textarea pTextarea id=\"{{field().key}}\" rows=\"5\" cols=\"30\" style=\"resize: none\" class=\"w-full\" [formControl]=\"control()!\"></textarea>\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: TextareaModule }, { kind: "directive", type: i3$3.Textarea, selector: "[pTextarea], [pInputTextarea]", inputs: ["autoResize", "pSize", "variant", "fluid", "invalid"], outputs: ["onResize"] }] });
884
887
  }
885
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaTextareaFieldComponent, decorators: [{
888
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaTextareaFieldComponent, decorators: [{
886
889
  type: Component,
887
890
  args: [{ selector: 'mc-ifta-textarea-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, TextareaModule], template: "<p-iftalabel>\n <textarea pTextarea id=\"{{field().key}}\" rows=\"5\" cols=\"30\" style=\"resize: none\" class=\"w-full\" [formControl]=\"control()!\"></textarea>\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>\n" }]
888
891
  }] });
@@ -900,7 +903,7 @@ class IftaTextareaField {
900
903
  }
901
904
 
902
905
  class ConditionalFieldComponent extends MCFieldComponent {
903
- isShow = signal(false);
906
+ isShow = signal(false, ...(ngDevMode ? [{ debugName: "isShow" }] : []));
904
907
  valuesSubscription;
905
908
  ngOnInit() {
906
909
  this.loadObs();
@@ -935,10 +938,10 @@ class ConditionalFieldComponent extends MCFieldComponent {
935
938
  this.verifyCondition(value);
936
939
  });
937
940
  }
938
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ConditionalFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
939
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: ConditionalFieldComponent, isStandalone: true, selector: "mc-conditional-field", usesInheritance: true, ngImport: i0, template: "@if(isShow()){\n @for (field of field().config.fields; track $index) {\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
941
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ConditionalFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
942
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ConditionalFieldComponent, isStandalone: true, selector: "mc-conditional-field", usesInheritance: true, ngImport: i0, template: "@if(isShow()){\n @for (field of field().config.fields; track $index) {\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n }\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
940
943
  }
941
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ConditionalFieldComponent, decorators: [{
944
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ConditionalFieldComponent, decorators: [{
942
945
  type: Component,
943
946
  args: [{ selector: 'mc-conditional-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent], template: "@if(isShow()){\n @for (field of field().config.fields; track $index) {\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n }\n}\n" }]
944
947
  }] });
@@ -963,7 +966,7 @@ class ArrayIftaTextFieldComponent extends MCFieldComponent {
963
966
  formArray = computed(() => {
964
967
  let formArray = (this.group().get(this.field().key));
965
968
  return formArray;
966
- });
969
+ }, ...(ngDevMode ? [{ debugName: "formArray" }] : []));
967
970
  onClickAdd() {
968
971
  let formArray = (this.group().get(this.field().key));
969
972
  formArray.push(new FormControl(''));
@@ -972,10 +975,10 @@ class ArrayIftaTextFieldComponent extends MCFieldComponent {
972
975
  let formArray = (this.group().get(this.field().key));
973
976
  formArray.removeAt(index);
974
977
  }
975
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ArrayIftaTextFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
976
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: ArrayIftaTextFieldComponent, isStandalone: true, selector: "mc-array-ifta-text-field", usesInheritance: true, ngImport: i0, template: "\n<div class=\"mc-array-text-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <div class=\"flex flex-row justify-between mc-array-group-form\">\n <p-iftalabel class=\"mb-3 w-full\">\n <input pInputText id=\"{{field().key}}_{{i}}\" class=\"w-full\" [formControl]=\"row\" />\n <label for=\"{{field().key}}_{{i}}\">Param {{(i+1)}}</label>\n </p-iftalabel>\n\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" styleClass=\"ml-3\" />\n </div>\n\n </div>\n</div>\n\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\" (onClick)=\"onClickAdd()\" />\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PanelModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }] });
978
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ArrayIftaTextFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
979
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: ArrayIftaTextFieldComponent, isStandalone: true, selector: "mc-array-ifta-text-field", usesInheritance: true, ngImport: i0, template: "\n<div class=\"mc-array-text-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <div class=\"flex flex-row justify-between mc-array-group-form\">\n <p-iftalabel class=\"mb-3 w-full\">\n <input pInputText id=\"{{field().key}}_{{i}}\" class=\"w-full\" [formControl]=\"row\" />\n <label for=\"{{field().key}}_{{i}}\">Param {{(i+1)}}</label>\n </p-iftalabel>\n\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" styleClass=\"ml-3\" />\n </div>\n\n </div>\n</div>\n\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\" (onClick)=\"onClickAdd()\" />\n\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: PanelModule }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i1$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "buttonProps", "autofocus", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i3.InputText, selector: "[pInputText]", inputs: ["pSize", "variant", "fluid", "invalid"] }] });
977
980
  }
978
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ArrayIftaTextFieldComponent, decorators: [{
981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ArrayIftaTextFieldComponent, decorators: [{
979
982
  type: Component,
980
983
  args: [{ selector: 'mc-array-ifta-text-field', imports: [CommonModule, ReactiveFormsModule, PanelModule, ButtonModule, IftaLabelModule, InputTextModule], template: "\n<div class=\"mc-array-text-form\">\n <div *ngFor=\"let row of formArray().controls; let i = index\">\n\n <div class=\"flex flex-row justify-between mc-array-group-form\">\n <p-iftalabel class=\"mb-3 w-full\">\n <input pInputText id=\"{{field().key}}_{{i}}\" class=\"w-full\" [formControl]=\"row\" />\n <label for=\"{{field().key}}_{{i}}\">Param {{(i+1)}}</label>\n </p-iftalabel>\n\n <p-button icon=\"pi pi-trash\" severity=\"danger\" rounded text (onClick)=\"onClickRemove(i)\" styleClass=\"ml-3\" />\n </div>\n\n </div>\n</div>\n\n<p-button [label]=\"field().config?.labelAddButton ?? 'Add row'\" [link]=\"true\" icon=\"pi pi-plus-circle\" (onClick)=\"onClickAdd()\" />\n\n" }]
981
984
  }] });
@@ -995,10 +998,10 @@ class ArrayIftaTextField {
995
998
  }
996
999
 
997
1000
  class ColumnFieldComponent extends MCFieldComponent {
998
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ColumnFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
999
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: ColumnFieldComponent, isStandalone: true, selector: "mc-column-field", usesInheritance: true, ngImport: i0, template: "<div class=\"mc-column-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
1001
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1002
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: ColumnFieldComponent, isStandalone: true, selector: "mc-column-field", usesInheritance: true, ngImport: i0, template: "<div class=\"mc-column-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n</div>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
1000
1003
  }
1001
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: ColumnFieldComponent, decorators: [{
1004
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: ColumnFieldComponent, decorators: [{
1002
1005
  type: Component,
1003
1006
  args: [{ selector: 'mc-column-field', imports: [CommonModule, ReactiveFormsModule, PrintFieldComponent], template: "<div class=\"mc-column-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n</div>" }]
1004
1007
  }] });
@@ -1018,10 +1021,10 @@ class ColumnField {
1018
1021
  }
1019
1022
 
1020
1023
  class FieldsetFieldComponent extends MCFieldComponent {
1021
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: FieldsetFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1022
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: FieldsetFieldComponent, isStandalone: true, selector: "mc-fieldset-field", usesInheritance: true, ngImport: i0, template: "<p-fieldset legend=\"{{field().config?.label}}\">\n <div class=\"mc-fieldset-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n</p-fieldset>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FieldsetModule }, { kind: "component", type: i1$5.Fieldset, selector: "p-fieldset", inputs: ["legend", "toggleable", "collapsed", "style", "styleClass", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
1024
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FieldsetFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1025
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: FieldsetFieldComponent, isStandalone: true, selector: "mc-fieldset-field", usesInheritance: true, ngImport: i0, template: "<p-fieldset legend=\"{{field().config?.label}}\">\n <div class=\"mc-fieldset-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n</p-fieldset>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FieldsetModule }, { kind: "component", type: i1$5.Fieldset, selector: "p-fieldset", inputs: ["legend", "toggleable", "collapsed", "style", "styleClass", "transitionOptions"], outputs: ["collapsedChange", "onBeforeToggle", "onAfterToggle"] }, { kind: "component", type: PrintFieldComponent, selector: "mc-print-field", inputs: ["field", "control", "group", "eventObs"] }] });
1023
1026
  }
1024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: FieldsetFieldComponent, decorators: [{
1027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: FieldsetFieldComponent, decorators: [{
1025
1028
  type: Component,
1026
1029
  args: [{ selector: 'mc-fieldset-field', imports: [CommonModule, ReactiveFormsModule, FieldsetModule, PrintFieldComponent], template: "<p-fieldset legend=\"{{field().config?.label}}\">\n <div class=\"mc-fieldset-form\">\n @for (field of field().config.fields; track $index) {\n <div class=\"{{(field.config.containerFieldClass || 'mb-3 w-full')}}\">\n <mc-print-field [field]=\"field\" [control]=\"group()!.get(field.key ?? '')\" [group]=\"group()!\" [eventObs]=\"eventObs()\" />\n </div>\n }\n </div>\n</p-fieldset>" }]
1027
1030
  }] });
@@ -1042,10 +1045,10 @@ class FieldsetField {
1042
1045
  }
1043
1046
 
1044
1047
  class TagsFieldComponent extends MCFieldComponent {
1045
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: TagsFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1046
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.13", type: TagsFieldComponent, isStandalone: true, selector: "mc-tags-field", usesInheritance: true, ngImport: i0, template: "<p-autocomplete inputId=\"{{field().key}}\" [formControl]=\"control()!\" multiple fluid [typeahead]=\"false\" />", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2$1.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "delay", "style", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "disabled", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "maxlength", "name", "required", "size", "appendTo", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "field", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "itemSize", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "variant", "fluid"], outputs: ["completeMethod", "onSelect", "onUnselect", "onFocus", "onBlur", "onDropdownClick", "onClear", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }] });
1048
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TagsFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1049
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: TagsFieldComponent, isStandalone: true, selector: "mc-tags-field", usesInheritance: true, ngImport: i0, template: "<p-autocomplete inputId=\"{{field().key}}\" [formControl]=\"control()!\" multiple fluid [typeahead]=\"false\" />", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: AutoCompleteModule }, { kind: "component", type: i2$1.AutoComplete, selector: "p-autoComplete, p-autocomplete, p-auto-complete", inputs: ["minLength", "minQueryLength", "delay", "panelStyle", "styleClass", "panelStyleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "readonly", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "autoHighlight", "forceSelection", "type", "autoZIndex", "baseZIndex", "ariaLabel", "dropdownAriaLabel", "ariaLabelledBy", "dropdownIcon", "unique", "group", "completeOnFocus", "showClear", "dropdown", "showEmptyMessage", "dropdownMode", "multiple", "addOnTab", "tabindex", "dataKey", "emptyMessage", "showTransitionOptions", "hideTransitionOptions", "autofocus", "autocomplete", "optionGroupChildren", "optionGroupLabel", "overlayOptions", "suggestions", "optionLabel", "optionValue", "id", "searchMessage", "emptySelectionMessage", "selectionMessage", "autoOptionFocus", "selectOnFocus", "searchLocale", "optionDisabled", "focusOnHover", "typeahead", "addOnBlur", "separator", "appendTo"], outputs: ["completeMethod", "onSelect", "onUnselect", "onAdd", "onFocus", "onBlur", "onDropdownClick", "onClear", "onInputKeydown", "onKeyUp", "onShow", "onHide", "onLazyLoad"] }] });
1047
1050
  }
1048
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: TagsFieldComponent, decorators: [{
1051
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: TagsFieldComponent, decorators: [{
1049
1052
  type: Component,
1050
1053
  args: [{ selector: 'mc-tags-field', imports: [CommonModule, ReactiveFormsModule, AutoCompleteModule], template: "<p-autocomplete inputId=\"{{field().key}}\" [formControl]=\"control()!\" multiple fluid [typeahead]=\"false\" />" }]
1051
1054
  }] });
@@ -1059,10 +1062,10 @@ class TagsField {
1059
1062
  }
1060
1063
 
1061
1064
  class IftaCurrencyFieldComponent extends MCFieldComponent {
1062
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaCurrencyFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1063
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.13", type: IftaCurrencyFieldComponent, isStandalone: true, selector: "mc-ifta-currency-field", usesInheritance: true, ngImport: i0, template: "<p-inputgroup>\n @if (field().config.extra?.prepended) {\n <p-inputgroup-addon>{{ field().config.extra.prepended }}</p-inputgroup-addon>\n }\n <p-iftalabel>\n <p-inputnumber id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" [maxFractionDigits]=\"9\" placeholder=\"0.00\" mode=\"currency\" currency=\"USD\" locale=\"en-US\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n @if (field().config.extra?.appended) {\n <p-inputgroup-addon>{{ field().config.extra.appended }}</p-inputgroup-addon>\n }\n</p-inputgroup>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3$4.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "style", "placeholder", "size", "maxlength", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "name", "required", "autocomplete", "min", "max", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "step", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "variant", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus", "disabled", "fluid"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i4.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["style", "styleClass"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i5.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }] });
1065
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaCurrencyFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1066
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.4", type: IftaCurrencyFieldComponent, isStandalone: true, selector: "mc-ifta-currency-field", usesInheritance: true, ngImport: i0, template: "<p-inputgroup>\n @if (field().config.extra?.prepended) {\n <p-inputgroup-addon>{{ field().config.extra.prepended }}</p-inputgroup-addon>\n }\n <p-iftalabel>\n <p-inputnumber id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" [maxFractionDigits]=\"9\" placeholder=\"0.00\" mode=\"currency\" currency=\"USD\" locale=\"en-US\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n @if (field().config.extra?.appended) {\n <p-inputgroup-addon>{{ field().config.extra.appended }}</p-inputgroup-addon>\n }\n</p-inputgroup>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: InputNumberModule }, { kind: "component", type: i3$4.InputNumber, selector: "p-inputNumber, p-inputnumber, p-input-number", inputs: ["showButtons", "format", "buttonLayout", "inputId", "styleClass", "placeholder", "tabindex", "title", "ariaLabelledBy", "ariaDescribedBy", "ariaLabel", "ariaRequired", "autocomplete", "incrementButtonClass", "decrementButtonClass", "incrementButtonIcon", "decrementButtonIcon", "readonly", "allowEmpty", "locale", "localeMatcher", "mode", "currency", "currencyDisplay", "useGrouping", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "inputStyle", "inputStyleClass", "showClear", "autofocus"], outputs: ["onInput", "onFocus", "onBlur", "onKeyDown", "onClear"] }, { kind: "ngmodule", type: InputGroupModule }, { kind: "component", type: i4.InputGroup, selector: "p-inputgroup, p-inputGroup, p-input-group", inputs: ["styleClass"] }, { kind: "ngmodule", type: InputGroupAddonModule }, { kind: "component", type: i5.InputGroupAddon, selector: "p-inputgroup-addon, p-inputGroupAddon", inputs: ["style", "styleClass"] }] });
1064
1067
  }
1065
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.13", ngImport: i0, type: IftaCurrencyFieldComponent, decorators: [{
1068
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaCurrencyFieldComponent, decorators: [{
1066
1069
  type: Component,
1067
1070
  args: [{ selector: 'mc-ifta-currency-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, InputTextModule, InputNumberModule, InputGroupModule, InputGroupAddonModule], template: "<p-inputgroup>\n @if (field().config.extra?.prepended) {\n <p-inputgroup-addon>{{ field().config.extra.prepended }}</p-inputgroup-addon>\n }\n <p-iftalabel>\n <p-inputnumber id=\"{{field().key}}\" class=\"w-full\" [formControl]=\"control()!\" [maxFractionDigits]=\"9\" placeholder=\"0.00\" mode=\"currency\" currency=\"USD\" locale=\"en-US\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n </p-iftalabel>\n @if (field().config.extra?.appended) {\n <p-inputgroup-addon>{{ field().config.extra.appended }}</p-inputgroup-addon>\n }\n</p-inputgroup>" }]
1068
1071
  }] });
@@ -1083,6 +1086,28 @@ class IftaCurrencyField {
1083
1086
  }
1084
1087
  }
1085
1088
 
1089
+ class IftaDateFieldComponent extends MCFieldComponent {
1090
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaDateFieldComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1091
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: IftaDateFieldComponent, isStandalone: true, selector: "mc-ifta-date-field", usesInheritance: true, ngImport: i0, template: "<p-iftalabel>\n <p-datepicker id=\"{{field().key}}\" [formControl]=\"control()!\" dateFormat=\"{{ field().config?.date_format }}\"\n appendTo=\"body\" styleClass=\"w-full\" showIcon iconDisplay=\"input\" dataType=\"string\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: "ngmodule", type: IftaLabelModule }, { kind: "component", type: i2.IftaLabel, selector: "p-iftalabel, p-iftaLabel, p-ifta-label" }, { kind: "ngmodule", type: InputTextModule }, { kind: "ngmodule", type: DatePickerModule }, { kind: "component", type: i3$5.DatePicker, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: ["iconDisplay", "styleClass", "inputStyle", "inputId", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "readonlyInput", "shortYearCutoff", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "view", "defaultDate", "appendTo"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }] });
1092
+ }
1093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: IftaDateFieldComponent, decorators: [{
1094
+ type: Component,
1095
+ args: [{ selector: 'mc-ifta-date-field', imports: [CommonModule, ReactiveFormsModule, IftaLabelModule, InputTextModule, DatePickerModule], template: "<p-iftalabel>\n <p-datepicker id=\"{{field().key}}\" [formControl]=\"control()!\" dateFormat=\"{{ field().config?.date_format }}\"\n appendTo=\"body\" styleClass=\"w-full\" showIcon iconDisplay=\"input\" dataType=\"string\" />\n <label for=\"{{field().key}}\">{{field().config.label}}</label>\n</p-iftalabel>" }]
1096
+ }] });
1097
+ class IftaDateField {
1098
+ static init(key, label, config) {
1099
+ return MCIftaField.init({
1100
+ key: key,
1101
+ component: IftaDateFieldComponent,
1102
+ label: label,
1103
+ validators: config?.validators,
1104
+ default_value: config?.default_value,
1105
+ disabled: config?.disabled,
1106
+ extra: { date_format: config?.date_format ?? 'yy-mm-dd' }
1107
+ });
1108
+ }
1109
+ }
1110
+
1086
1111
  /*
1087
1112
  * Public API Surface of form
1088
1113
  */
@@ -1094,5 +1119,5 @@ class IftaCurrencyField {
1094
1119
  * Generated bundle index. Do not edit.
1095
1120
  */
1096
1121
 
1097
- export { ArrayField, ArrayFieldComponent, ArrayIftaTextField, ArrayIftaTextFieldComponent, ColumnField, ColumnFieldComponent, ConditionalField, ConditionalFieldComponent, DividerField, DividerFieldComponent, FieldsetField, FieldsetFieldComponent, GroupField, GroupFieldComponent, HiddenField, HiddenFieldComponent, IftaCurrencyField, IftaCurrencyFieldComponent, IftaSelectField, IftaSelectFieldComponent, IftaSelectObsField, IftaSelectObsFieldComponent, IftaTextConditionalField, IftaTextConditionalFieldComponent, IftaTextField, IftaTextFieldComponent, IftaTextareaField, IftaTextareaFieldComponent, MCBaseHttpFormModalConfig, MCBaseHttpFormModalService, MCConfigForm, MCConfigHttpModalForm, MCConfigModalForm, MCEventForm, MCEventModalForm, MCField, MCFieldComponent, MCForm, MCFormModal, MCFormModalService, MCFormService, MCHttpFormModal, MCHttpFormModalService, MCIftaField, PrintFieldComponent, RowField, RowFieldComponent, SubmitButtonField, SubmitButtonFieldComponent, TagsField, TagsFieldComponent, mcEventFormOperator, mcSavedEventFormOperator };
1122
+ export { ArrayField, ArrayFieldComponent, ArrayIftaTextField, ArrayIftaTextFieldComponent, ColumnField, ColumnFieldComponent, ConditionalField, ConditionalFieldComponent, DividerField, DividerFieldComponent, FieldsetField, FieldsetFieldComponent, GroupField, GroupFieldComponent, HiddenField, HiddenFieldComponent, IftaCurrencyField, IftaCurrencyFieldComponent, IftaDateField, IftaDateFieldComponent, IftaSelectField, IftaSelectFieldComponent, IftaSelectObsField, IftaSelectObsFieldComponent, IftaTextConditionalField, IftaTextConditionalFieldComponent, IftaTextField, IftaTextFieldComponent, IftaTextareaField, IftaTextareaFieldComponent, MCBaseHttpFormModalConfig, MCBaseHttpFormModalService, MCConfigForm, MCConfigHttpModalForm, MCConfigModalForm, MCEventForm, MCEventModalForm, MCField, MCFieldComponent, MCForm, MCFormModal, MCFormModalService, MCFormService, MCHttpFormModal, MCHttpFormModalService, MCIftaField, PrintFieldComponent, RowField, RowFieldComponent, SubmitButtonField, SubmitButtonFieldComponent, TagsField, TagsFieldComponent, mcEventFormOperator, mcSavedEventFormOperator };
1098
1123
  //# sourceMappingURL=mckit-form.mjs.map