@tft/crispr-forms 13.0.22 → 14.0.1-rc.1

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 (83) hide show
  1. package/README.md +77 -76
  2. package/esm2020/lib/abstracts/autocomplete-field.abstract.mjs +3 -3
  3. package/esm2020/lib/abstracts/crispr-field.abstract.mjs +8 -5
  4. package/esm2020/lib/crispr-forms.module.mjs +27 -36
  5. package/esm2020/lib/field-container/field-container.component.mjs +12 -34
  6. package/esm2020/lib/field.directive.mjs +7 -28
  7. package/esm2020/lib/form/form.component.mjs +20 -11
  8. package/esm2020/lib/form-group-list/form-group-list.component.mjs +25 -10
  9. package/esm2020/lib/form-group-list/index.mjs +1 -2
  10. package/esm2020/lib/form.helpers.mjs +1 -1
  11. package/esm2020/lib/material/autocomplete-chiplist-field/autocomplete-chiplist-field.component.mjs +34 -18
  12. package/esm2020/lib/material/autocomplete-field/autocomplete-field.component.mjs +28 -16
  13. package/esm2020/lib/material/button/button.component.mjs +21 -11
  14. package/esm2020/lib/material/checkbox-field/checkbox-field.component.mjs +20 -11
  15. package/esm2020/lib/material/datepicker-field/datepicker-field.component.mjs +27 -13
  16. package/esm2020/lib/material/divider/divider.component.mjs +12 -7
  17. package/esm2020/lib/material/file-upload/file-dropzone.directive.mjs +6 -5
  18. package/esm2020/lib/material/file-upload/file-upload.component.mjs +24 -62
  19. package/esm2020/lib/material/heading/heading.component.mjs +13 -37
  20. package/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +25 -65
  21. package/esm2020/lib/material/index.mjs +1 -2
  22. package/esm2020/lib/material/info/info.component.mjs +12 -35
  23. package/esm2020/lib/material/input-field/input-field.component.mjs +22 -12
  24. package/esm2020/lib/material/option/option.component.mjs +11 -7
  25. package/esm2020/lib/material/radio-field/radio-field.component.mjs +17 -10
  26. package/esm2020/lib/material/select-field/select-field.component.mjs +29 -15
  27. package/esm2020/lib/material/selected-file/selected-file.component.mjs +11 -32
  28. package/esm2020/lib/material/slider-field/slider-field.component.mjs +20 -10
  29. package/esm2020/lib/material/textarea-field/textarea-field.component.mjs +22 -12
  30. package/esm2020/lib/material/unit-conversion-field/unit-conversion-field.component.mjs +28 -16
  31. package/esm2020/lib/models/button.config.mjs +1 -1
  32. package/esm2020/lib/models/crispr-field.config.mjs +1 -1
  33. package/esm2020/lib/models/datepicker-field.config.mjs +1 -1
  34. package/esm2020/lib/pipes/crispr-pipes.module.mjs +5 -7
  35. package/esm2020/lib/pipes/initial-control-value.pipe.mjs +3 -3
  36. package/esm2020/lib/sub-group/sub-group.component.mjs +8 -8
  37. package/esm2020/lib/sub-group/sub-group.module.mjs +15 -18
  38. package/fesm2015/tft-crispr-forms.mjs +428 -718
  39. package/fesm2015/tft-crispr-forms.mjs.map +1 -1
  40. package/fesm2020/tft-crispr-forms.mjs +422 -712
  41. package/fesm2020/tft-crispr-forms.mjs.map +1 -1
  42. package/lib/abstracts/autocomplete-field.abstract.d.ts +4 -4
  43. package/lib/abstracts/crispr-field.abstract.d.ts +1 -1
  44. package/lib/crispr-forms.module.d.ts +10 -11
  45. package/lib/field-container/field-container.component.d.ts +2 -9
  46. package/lib/field.directive.d.ts +1 -7
  47. package/lib/form/form.component.d.ts +2 -2
  48. package/lib/form-group-list/form-group-list.component.d.ts +3 -3
  49. package/lib/form-group-list/index.d.ts +0 -1
  50. package/lib/form.helpers.d.ts +2 -2
  51. package/lib/material/autocomplete-chiplist-field/autocomplete-chiplist-field.component.d.ts +1 -1
  52. package/lib/material/autocomplete-field/autocomplete-field.component.d.ts +1 -1
  53. package/lib/material/button/button.component.d.ts +1 -1
  54. package/lib/material/checkbox-field/checkbox-field.component.d.ts +3 -3
  55. package/lib/material/datepicker-field/datepicker-field.component.d.ts +5 -6
  56. package/lib/material/divider/divider.component.d.ts +1 -1
  57. package/lib/material/file-upload/file-dropzone.directive.d.ts +1 -1
  58. package/lib/material/file-upload/file-upload.component.d.ts +3 -18
  59. package/lib/material/heading/heading.component.d.ts +1 -9
  60. package/lib/material/image-upload-field/image-upload-field.component.d.ts +3 -18
  61. package/lib/material/index.d.ts +0 -1
  62. package/lib/material/info/info.component.d.ts +1 -9
  63. package/lib/material/input-field/input-field.component.d.ts +3 -3
  64. package/lib/material/option/option.component.d.ts +1 -1
  65. package/lib/material/radio-field/radio-field.component.d.ts +3 -3
  66. package/lib/material/select-field/select-field.component.d.ts +3 -3
  67. package/lib/material/selected-file/selected-file.component.d.ts +1 -8
  68. package/lib/material/slider-field/slider-field.component.d.ts +3 -3
  69. package/lib/material/textarea-field/textarea-field.component.d.ts +3 -4
  70. package/lib/material/unit-conversion-field/unit-conversion-field.component.d.ts +5 -5
  71. package/lib/models/crispr-field.config.d.ts +8 -1
  72. package/lib/models/datepicker-field.config.d.ts +3 -4
  73. package/lib/pipes/initial-control-value.pipe.d.ts +1 -1
  74. package/lib/sub-group/sub-group.component.d.ts +3 -3
  75. package/lib/sub-group/sub-group.module.d.ts +1 -1
  76. package/package.json +12 -14
  77. package/tft-crispr-forms-14.0.1-rc.1.tgz +0 -0
  78. package/esm2020/lib/form-group-list/form-group-list.module.mjs +0 -54
  79. package/esm2020/lib/material/material.module.mjs +0 -200
  80. package/lib/form-group-list/form-group-list.module.d.ts +0 -15
  81. package/lib/material/material.module.d.ts +0 -44
  82. package/tft-crispr-forms-13.0.22.tgz +0 -0
  83. package/tft-crispr-forms.d.ts +0 -5
@@ -7,8 +7,8 @@ declare type AutocompleteConfigTypes = AutocompleteFieldConfig | AutocompleteChi
7
7
  declare const AbstractAutocompleteFieldMixin: {
8
8
  new (): {
9
9
  config: AutocompleteConfigTypes;
10
- group: import("@angular/forms").FormGroup;
11
- control: import("@angular/forms").AbstractControl;
10
+ group: import("@angular/forms").FormGroup<any>;
11
+ control: import("@angular/forms").AbstractControl<any, any>;
12
12
  _value: any;
13
13
  value: any;
14
14
  ngOnInit(): void;
@@ -18,11 +18,11 @@ declare const AbstractAutocompleteFieldMixin: {
18
18
  };
19
19
  };
20
20
  export declare class AbstractAutocompleteComponent<C> extends AbstractAutocompleteFieldMixin implements OnInit {
21
- autocompleteInputControl: FormControl;
21
+ autocompleteInputControl: FormControl<string>;
22
22
  options$: Observable<SelectOption[]>;
23
23
  config: AutocompleteConfigTypes & C;
24
24
  ngOnInit(): void;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAutocompleteComponent<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAutocompleteComponent<any>, never, never, {}, {}, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAutocompleteComponent<any>, never, never, {}, {}, never, never, false>;
27
27
  }
28
28
  export {};
@@ -7,5 +7,5 @@ export declare abstract class CrisprFieldComponent<C extends CrisprFieldConfig>
7
7
  ngOnInit(): void;
8
8
  applyDefaultConfig(): void;
9
9
  static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldComponent<any>, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldComponent<any>, never, never, {}, {}, never, never, true>;
11
11
  }
@@ -1,16 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./form/form.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@tft/form-validation-handler";
6
- import * as i5 from "./form-group-list/form-group-list.module";
7
- import * as i6 from "./field-container/field-container.component";
8
- import * as i7 from "./field.directive";
9
- import * as i8 from "./sub-group/sub-group.module";
10
- import * as i9 from "./material/material.module";
11
- import * as i10 from "./pipes/crispr-pipes.module";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "@tft/form-validation-handler";
5
+ import * as i4 from "./form-group-list/form-group-list.component";
6
+ import * as i5 from "./field-container/field-container.component";
7
+ import * as i6 from "./field.directive";
8
+ import * as i7 from "./sub-group/sub-group.module";
9
+ import * as i8 from "./pipes/crispr-pipes.module";
10
+ import * as i9 from "./form/form.component";
12
11
  export declare class CrisprFormsModule {
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFormsModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<CrisprFormsModule, [typeof i1.CrisprFormComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormValidationHandlerModule, typeof i5.FormGroupListModule, typeof i6.FieldContainerModule, typeof i7.CrisprFieldModule, typeof i8.SubGroupModule, typeof i9.MaterialModule, typeof i10.CrisprPipesModule], [typeof i1.CrisprFormComponent, typeof i6.FieldContainerModule, typeof i9.MaterialModule]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CrisprFormsModule, never, [typeof i1.CommonModule, typeof i2.ReactiveFormsModule, typeof i3.FormValidationHandlerModule, typeof i4.FormGroupListComponent, typeof i5.FieldContainerComponent, typeof i6.CrisprFieldDirective, typeof i7.SubGroupModule, typeof i8.CrisprPipesModule, typeof i9.CrisprFormComponent], [typeof i9.CrisprFormComponent, typeof i5.FieldContainerComponent]>;
15
14
  static ɵinj: i0.ɵɵInjectorDeclaration<CrisprFormsModule>;
16
15
  }
@@ -3,8 +3,6 @@ import type { CrisprControlConfig } from '../models';
3
3
  import { Observable, Subscription } from 'rxjs';
4
4
  import { FormGroup } from '@angular/forms';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "../material/heading/heading.component";
8
6
  export declare class FieldContainerComponent implements OnInit, OnDestroy {
9
7
  config: CrisprControlConfig;
10
8
  group: FormGroup;
@@ -15,17 +13,12 @@ export declare class FieldContainerComponent implements OnInit, OnDestroy {
15
13
  ngOnDestroy(): void;
16
14
  /**
17
15
  * Connects user defined disabledCallback function to the the view, so that the control is enabled/disabled
18
- * appropriately. It also keeps the form will hide disabled fields in the UI unless `hideDisabled` is set to
16
+ * appropriately. It also will hide disabled fields in the UI unless `hideDisabled` is set to
19
17
  * false in the controls config
20
18
  * @param group used to get valueChanges from control
21
19
  * @param config configuration object used to
22
20
  */
23
21
  connectDisabledCallback(group: FormGroup, config?: CrisprControlConfig): Observable<boolean>;
24
22
  static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"]>;
26
- }
27
- export declare class FieldContainerModule {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<FieldContainerModule, never>;
29
- static ɵmod: i0.ɵɵNgModuleDeclaration<FieldContainerModule, [typeof FieldContainerComponent], [typeof i1.CommonModule, typeof i2.HeadingModule], [typeof FieldContainerComponent]>;
30
- static ɵinj: i0.ɵɵInjectorDeclaration<FieldContainerModule>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldContainerComponent, "crispr-field-container", never, { "config": "config"; "group": "group"; "inlineField": "inlineField"; }, {}, never, ["*"], true>;
31
24
  }
@@ -3,7 +3,6 @@ import { FormGroup } from '@angular/forms';
3
3
  import { AnyFieldConfig, ControlValue } from './models';
4
4
  import { CrisprFieldComponent } from './field-component-map.const';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
6
  export declare class CrisprFieldDirective implements OnInit {
8
7
  private container;
9
8
  private renderer;
@@ -21,10 +20,5 @@ export declare class CrisprFieldDirective implements OnInit {
21
20
  ngOnInit(): Promise<void>;
22
21
  updateComponentValue(value: ControlValue | any[]): void;
23
22
  static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldDirective, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldDirective, "[crisprField]", never, { "config": "config"; "group": "group"; "value": "value"; }, {}, never>;
25
- }
26
- export declare class CrisprFieldModule {
27
- static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFieldModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<CrisprFieldModule, [typeof CrisprFieldDirective], [typeof i1.CommonModule], [typeof CrisprFieldDirective]>;
29
- static ɵinj: i0.ɵɵInjectorDeclaration<CrisprFieldModule>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CrisprFieldDirective, "[crisprField]", never, { "config": "config"; "group": "group"; "value": "value"; }, {}, never, never, true>;
30
24
  }
@@ -7,7 +7,7 @@ export declare class CrisprFormComponent implements OnInit {
7
7
  config: FormConfig;
8
8
  form: FormGroup;
9
9
  value: ControlGroupValue;
10
- submitted: EventEmitter<FormGroup>;
10
+ submitted: EventEmitter<FormGroup<any>>;
11
11
  valueChanges: Observable<any>;
12
12
  statusChanges: Observable<string>;
13
13
  submitTrigger: ElementRef<HTMLButtonElement>;
@@ -15,5 +15,5 @@ export declare class CrisprFormComponent implements OnInit {
15
15
  handleSubmit(): void;
16
16
  triggerSubmit(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<CrisprFormComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<CrisprFormComponent, "crispr-form", never, { "config": "config"; "form": "form"; "value": "value"; }, { "submitted": "submitted"; "valueChanges": "valueChanges"; "statusChanges": "statusChanges"; }, never, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<CrisprFormComponent, "crispr-form", never, { "config": "config"; "form": "form"; "value": "value"; }, { "submitted": "submitted"; "valueChanges": "valueChanges"; "statusChanges": "statusChanges"; }, never, never, true>;
19
19
  }
@@ -5,8 +5,8 @@ import * as i0 from "@angular/core";
5
5
  declare const FormGroupListMixin: {
6
6
  new (): {
7
7
  config: FormGroupListConfig;
8
- group: FormGroup;
9
- control: import("@angular/forms").AbstractControl;
8
+ group: FormGroup<any>;
9
+ control: import("@angular/forms").AbstractControl<any, any>;
10
10
  _value: any;
11
11
  value: any;
12
12
  ngOnInit(): void;
@@ -33,6 +33,6 @@ export declare class FormGroupListComponent extends FormGroupListMixin implement
33
33
  addGroup(value?: any): void;
34
34
  deleteGroup(index: number): void;
35
35
  static ɵfac: i0.ɵɵFactoryDeclaration<FormGroupListComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupListComponent, "crispr-form-group-list", never, {}, {}, never, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormGroupListComponent, "crispr-form-group-list", never, {}, {}, never, never, true>;
37
37
  }
38
38
  export {};
@@ -1,2 +1 @@
1
1
  export * from './form-group-list.component';
2
- export * from './form-group-list.module';
@@ -72,14 +72,14 @@ export declare function isControlConfig(fieldConfig: CrisprFieldConfig): fieldCo
72
72
  * @param value an object of initial values to pass in
73
73
  * @param group the form group to modify and build out
74
74
  */
75
- export declare function buildFormGroupFromConfig(config: FormConfig, value?: any, group?: FormGroup): FormGroup;
75
+ export declare function buildFormGroupFromConfig(config: FormConfig, value?: any, group?: FormGroup): FormGroup<any>;
76
76
  /**
77
77
  * Analyze the config and build a form control to spec. Notice we don't use FormBuilder here
78
78
  * as we want to keep this function pure.
79
79
  * @param controlConfig the configuration object for the control to build
80
80
  * @param value an initial value to use if passed in
81
81
  */
82
- export declare function createControlForType(controlConfig: AnyFieldConfig, value?: ControlValue): FormGroup | FormArray | FormControl;
82
+ export declare function createControlForType(controlConfig: AnyFieldConfig, value?: ControlValue): FormGroup<any> | FormArray<any> | FormControl<any>;
83
83
  /**
84
84
  * A basic filter function that filters the search string against the label of the options object
85
85
  * @param options the array of options to filter
@@ -30,5 +30,5 @@ export declare class AutocompleteChiplistFieldComponent extends AbstractAutocomp
30
30
  mapToLabel(option: SelectOption): string;
31
31
  removeChip(removedChip: SelectOption): void;
32
32
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteChiplistFieldComponent, never>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteChiplistFieldComponent, "crispr-autocomplete-chiplist-field", never, {}, {}, never, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteChiplistFieldComponent, "crispr-autocomplete-chiplist-field", never, {}, {}, never, never, true>;
34
34
  }
@@ -22,5 +22,5 @@ export declare class AutocompleteFieldComponent extends AbstractAutocompleteComp
22
22
  displayLabel(options: SelectOption[]): (value: unknown) => string;
23
23
  handleSelect(event: MatAutocompleteSelectedEvent): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteFieldComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent, "crispr-autocomplete-field", never, {}, {}, never, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteFieldComponent, "crispr-autocomplete-field", never, {}, {}, never, never, true>;
26
26
  }
@@ -12,5 +12,5 @@ export declare class ButtonComponent extends CrisprFieldComponent<ButtonConfig>
12
12
  ngOnInit(): void;
13
13
  handleClick(group: FormGroup, event: MouseEvent): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "crispr-button", never, {}, {}, never, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "crispr-button", never, {}, {}, never, never, true>;
16
16
  }
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
4
4
  declare const CheckboxFieldMixin: {
5
5
  new (): {
6
6
  config: CheckboxFieldConfig;
7
- group: import("@angular/forms").FormGroup;
8
- control: import("@angular/forms").AbstractControl;
7
+ group: import("@angular/forms").FormGroup<any>;
8
+ control: import("@angular/forms").AbstractControl<any, any>;
9
9
  _value: any;
10
10
  value: any;
11
11
  ngOnInit(): void;
@@ -18,6 +18,6 @@ export declare class CheckboxFieldComponent extends CheckboxFieldMixin implement
18
18
  defaultConfig: Partial<CheckboxFieldConfig>;
19
19
  ngOnInit(): void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFieldComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxFieldComponent, "crispr-checkbox-field", never, {}, {}, never, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxFieldComponent, "crispr-checkbox-field", never, {}, {}, never, never, true>;
22
22
  }
23
23
  export {};
@@ -1,15 +1,14 @@
1
1
  import { OnInit, AfterContentInit } from '@angular/core';
2
2
  import { DatepickerFieldConfig } from '../../models';
3
3
  import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
4
- import { Moment } from 'moment';
5
4
  import { Observable } from 'rxjs';
6
5
  import { Portal } from '@angular/cdk/portal';
7
6
  import * as i0 from "@angular/core";
8
7
  declare const DatepickerFieldMixin: {
9
8
  new (): {
10
9
  config: DatepickerFieldConfig;
11
- group: import("@angular/forms").FormGroup;
12
- control: import("@angular/forms").AbstractControl;
10
+ group: import("@angular/forms").FormGroup<any>;
11
+ control: import("@angular/forms").AbstractControl<any, any>;
13
12
  _value: any;
14
13
  value: any;
15
14
  ngOnInit(): void;
@@ -20,14 +19,14 @@ declare const DatepickerFieldMixin: {
20
19
  };
21
20
  export declare class DatepickerFieldComponent extends DatepickerFieldMixin implements OnInit, AfterContentInit {
22
21
  defaultConfig: Partial<DatepickerFieldConfig>;
23
- dateClass: MatCalendarCellClassFunction<Moment>;
24
- dateClass$: Observable<MatCalendarCellClassFunction<Moment>>;
22
+ dateClass: MatCalendarCellClassFunction<Date>;
23
+ dateClass$: Observable<MatCalendarCellClassFunction<Date>>;
25
24
  startAt$: Observable<Date>;
26
25
  /** A portal containing the footer component type for this calendar. */
27
26
  calendarFooterPortal: Portal<any>;
28
27
  ngOnInit(): void;
29
28
  ngAfterContentInit(): void;
30
29
  static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerFieldComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerFieldComponent, "crispr-datepicker-field", never, {}, {}, never, never, true>;
32
31
  }
33
32
  export {};
@@ -6,5 +6,5 @@ export declare class DividerComponent extends CrisprFieldComponent<DividerConfig
6
6
  defaultConfig: {};
7
7
  ngOnInit(): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DividerComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DividerComponent, "crispr-divider", never, {}, {}, never, never, true>;
10
10
  }
@@ -6,5 +6,5 @@ export declare class FileDropzoneDirective {
6
6
  onDrop($event: DragEvent): void;
7
7
  onDragOver($event: DragEvent): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzoneDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FileDropzoneDirective, "[crisprFileDropzone]", never, { "crisprFileDropzone": "crisprFileDropzone"; }, { "fileDrop": "fileDrop"; }, never, never, true>;
10
10
  }
@@ -3,21 +3,11 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
4
  import type { FileUploadFieldConfig } from '../../models/file-upload-field.config';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "./file-dropzone.directive";
7
- import * as i2 from "@angular/common";
8
- import * as i3 from "../../field-container/field-container.component";
9
- import * as i4 from "@angular/forms";
10
- import * as i5 from "@angular/material/icon";
11
- import * as i6 from "@angular/material/button";
12
- import * as i7 from "@angular/material/form-field";
13
- import * as i8 from "@angular/material/input";
14
- import * as i9 from "../selected-file/selected-file.component";
15
- import * as i10 from "@tft/form-validation-handler";
16
6
  declare const FileUploadFieldMixin: {
17
7
  new (): {
18
8
  config: FileUploadFieldConfig;
19
- group: import("@angular/forms").FormGroup;
20
- control: import("@angular/forms").AbstractControl;
9
+ group: import("@angular/forms").FormGroup<any>;
10
+ control: import("@angular/forms").AbstractControl<any, any>;
21
11
  _value: any;
22
12
  value: any;
23
13
  ngOnInit(): void;
@@ -44,11 +34,6 @@ export declare class FileUploadFieldComponent extends FileUploadFieldMixin imple
44
34
  registerOnChange(fn: () => void): void;
45
35
  registerOnTouched(fn: () => void): void;
46
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldComponent, [{ optional: true; self: true; }]>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "crispr-file-upload-field", never, {}, {}, never, never>;
48
- }
49
- export declare class FileUploadFieldModule {
50
- static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldModule, never>;
51
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadFieldModule, [typeof FileUploadFieldComponent, typeof i1.FileDropzoneDirective], [typeof i2.CommonModule, typeof i3.FieldContainerModule, typeof i4.ReactiveFormsModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.SelectedFileModule, typeof i10.FormValidationHandlerModule], [typeof FileUploadFieldComponent, typeof i1.FileDropzoneDirective]>;
52
- static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadFieldModule>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "crispr-file-upload-field", never, {}, {}, never, never, true>;
53
38
  }
54
39
  export {};
@@ -1,17 +1,9 @@
1
1
  import type { HeadingConfig } from '../../models/heading.config';
2
2
  import { CrisprFieldComponent } from '../../abstracts';
3
3
  import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "@angular/material/form-field";
6
- import * as i3 from "../info/info.component";
7
4
  export declare class HeadingComponent extends CrisprFieldComponent<HeadingConfig> {
8
5
  config: HeadingConfig;
9
6
  defaultConfig: Partial<HeadingConfig>;
10
7
  static ɵfac: i0.ɵɵFactoryDeclaration<HeadingComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "crispr-heading", never, { "config": "config"; }, {}, never, never>;
12
- }
13
- export declare class HeadingModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<HeadingModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<HeadingModule, [typeof HeadingComponent], [typeof i1.CommonModule, typeof i2.MatFormFieldModule, typeof i3.InfoModule], [typeof HeadingComponent]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<HeadingModule>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeadingComponent, "crispr-heading", never, { "config": "config"; }, {}, never, never, true>;
17
9
  }
@@ -4,21 +4,11 @@ import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { Observable } from 'rxjs';
5
5
  import type { ImageUploadFieldConfig } from '../../models/image-upload-field.config';
6
6
  import * as i0 from "@angular/core";
7
- import * as i1 from "@angular/common";
8
- import * as i2 from "../../field-container/field-container.component";
9
- import * as i3 from "@angular/forms";
10
- import * as i4 from "@angular/material/icon";
11
- import * as i5 from "@angular/material/button";
12
- import * as i6 from "@angular/material/form-field";
13
- import * as i7 from "@angular/material/input";
14
- import * as i8 from "../selected-file/selected-file.component";
15
- import * as i9 from "../file-upload/file-upload.component";
16
- import * as i10 from "@tft/form-validation-handler";
17
7
  declare const ImageUploadFieldMixin: {
18
8
  new (): {
19
9
  config: ImageUploadFieldConfig;
20
- group: import("@angular/forms").FormGroup;
21
- control: import("@angular/forms").AbstractControl;
10
+ group: import("@angular/forms").FormGroup<any>;
11
+ control: import("@angular/forms").AbstractControl<any, any>;
22
12
  _value: any;
23
13
  value: any;
24
14
  ngOnInit(): void;
@@ -55,12 +45,7 @@ export declare class ImageUploadFieldComponent extends ImageUploadFieldMixin imp
55
45
  registerOnChange(fn: () => void): void;
56
46
  registerOnTouched(fn: () => void): void;
57
47
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageUploadFieldComponent, [{ optional: true; self: true; }, null, null]>;
58
- static ɵcmp: i0.ɵɵComponentDeclaration<ImageUploadFieldComponent, "crispr-image-upload-field", never, {}, {}, never, never>;
59
- }
60
- export declare class ImageUploadFieldModule {
61
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageUploadFieldModule, never>;
62
- static ɵmod: i0.ɵɵNgModuleDeclaration<ImageUploadFieldModule, [typeof ImageUploadFieldComponent], [typeof i1.CommonModule, typeof i2.FieldContainerModule, typeof i3.ReactiveFormsModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.SelectedFileModule, typeof i9.FileUploadFieldModule, typeof i10.FormValidationHandlerModule], [typeof ImageUploadFieldComponent]>;
63
- static ɵinj: i0.ɵɵInjectorDeclaration<ImageUploadFieldModule>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageUploadFieldComponent, "crispr-image-upload-field", never, {}, {}, never, never, true>;
64
49
  }
65
50
  export declare function maxFileSizeValidator(maxFileSize: number): ValidatorFn;
66
51
  export declare function allowedFileExtValidator(allowedFileExtensions: string[], onlyAllowFiles?: boolean): ValidatorFn;
@@ -13,5 +13,4 @@ export * from './radio-field/radio-field.component';
13
13
  export * from './unit-conversion-field/unit-conversion-field.component';
14
14
  export * from './image-upload-field';
15
15
  export * from './file-upload';
16
- export * from './material.module';
17
16
  export * from './option';
@@ -1,15 +1,7 @@
1
1
  import type { Info } from '../../models';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/material/icon";
5
- import * as i3 from "@angular/material/tooltip";
6
3
  export declare class InfoComponent {
7
4
  info: Info;
8
5
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "crispr-info", never, { "info": "info"; }, {}, never, never>;
10
- }
11
- export declare class InfoModule {
12
- static ɵfac: i0.ɵɵFactoryDeclaration<InfoModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<InfoModule, [typeof InfoComponent], [typeof i1.CommonModule, typeof i2.MatIconModule, typeof i3.MatTooltipModule], [typeof InfoComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<InfoModule>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<InfoComponent, "crispr-info", never, { "info": "info"; }, {}, never, never, true>;
15
7
  }
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
4
4
  declare const InputFieldMixin: {
5
5
  new (): {
6
6
  config: InputFieldConfig;
7
- group: import("@angular/forms").FormGroup;
8
- control: import("@angular/forms").AbstractControl;
7
+ group: import("@angular/forms").FormGroup<any>;
8
+ control: import("@angular/forms").AbstractControl<any, any>;
9
9
  _value: any;
10
10
  value: any;
11
11
  ngOnInit(): void;
@@ -19,6 +19,6 @@ export declare class InputFieldComponent extends InputFieldMixin implements OnIn
19
19
  constructor();
20
20
  ngOnInit(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<InputFieldComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent, "crispr-input-field", never, {}, {}, never, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputFieldComponent, "crispr-input-field", never, {}, {}, never, never, true>;
23
23
  }
24
24
  export {};
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
3
3
  export declare class OptionComponent {
4
4
  option: SelectOption;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<OptionComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "crispr-option", never, { "option": "option"; }, {}, never, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<OptionComponent, "crispr-option", never, { "option": "option"; }, {}, never, never, true>;
7
7
  }
@@ -6,8 +6,8 @@ import * as i0 from "@angular/core";
6
6
  declare const RadioFieldMixin: {
7
7
  new (): {
8
8
  config: RadioFieldConfig;
9
- group: import("@angular/forms").FormGroup;
10
- control: import("@angular/forms").AbstractControl;
9
+ group: import("@angular/forms").FormGroup<any>;
10
+ control: import("@angular/forms").AbstractControl<any, any>;
11
11
  _value: any;
12
12
  value: any;
13
13
  ngOnInit(): void;
@@ -21,6 +21,6 @@ export declare class RadioFieldComponent extends RadioFieldMixin implements OnIn
21
21
  options$: Observable<SelectOption[]>;
22
22
  ngOnInit(): void;
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioFieldComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioFieldComponent, "crispr-radio-field", never, {}, {}, never, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioFieldComponent, "crispr-radio-field", never, {}, {}, never, never, true>;
25
25
  }
26
26
  export {};
@@ -7,8 +7,8 @@ import * as i0 from "@angular/core";
7
7
  declare const SelectFieldMixin: {
8
8
  new (): {
9
9
  config: SelectFieldConfig;
10
- group: import("@angular/forms").FormGroup;
11
- control: import("@angular/forms").AbstractControl;
10
+ group: import("@angular/forms").FormGroup<any>;
11
+ control: import("@angular/forms").AbstractControl<any, any>;
12
12
  _value: any;
13
13
  value: any;
14
14
  ngOnInit(): void;
@@ -29,6 +29,6 @@ export declare class SelectFieldComponent extends SelectFieldMixin implements On
29
29
  ngAfterViewInit(): void;
30
30
  toggleAll(isSelected: boolean): void;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectFieldComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent, "crispr-select-field", never, {}, {}, never, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectFieldComponent, "crispr-select-field", never, {}, {}, never, never, true>;
33
33
  }
34
34
  export {};
@@ -1,17 +1,10 @@
1
1
  import { ThemePalette } from '@angular/material/core';
2
2
  import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- import * as i2 from "@angular/material/progress-bar";
5
3
  export declare class SelectedFileComponent {
6
4
  fileName: string;
7
5
  progress: number;
8
6
  showProgress: boolean;
9
7
  color: ThemePalette;
10
8
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectedFileComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectedFileComponent, "crispr-selected-file", never, { "fileName": "fileName"; "progress": "progress"; "showProgress": "showProgress"; "color": "color"; }, {}, never, never>;
12
- }
13
- export declare class SelectedFileModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectedFileModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<SelectedFileModule, [typeof SelectedFileComponent], [typeof i1.CommonModule, typeof i2.MatProgressBarModule], [typeof SelectedFileComponent]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<SelectedFileModule>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectedFileComponent, "crispr-selected-file", never, { "fileName": "fileName"; "progress": "progress"; "showProgress": "showProgress"; "color": "color"; }, {}, never, never, true>;
17
10
  }
@@ -4,8 +4,8 @@ import * as i0 from "@angular/core";
4
4
  declare const SliderFieldMixin: {
5
5
  new (): {
6
6
  config: SliderFieldConfig;
7
- group: import("@angular/forms").FormGroup;
8
- control: import("@angular/forms").AbstractControl;
7
+ group: import("@angular/forms").FormGroup<any>;
8
+ control: import("@angular/forms").AbstractControl<any, any>;
9
9
  _value: any;
10
10
  value: any;
11
11
  ngOnInit(): void;
@@ -22,6 +22,6 @@ export declare class SliderFieldComponent extends SliderFieldMixin implements On
22
22
  get flexDirection(): "column" | "row";
23
23
  ngOnInit(): void;
24
24
  static ɵfac: i0.ɵɵFactoryDeclaration<SliderFieldComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<SliderFieldComponent, "crispr-slider-field", never, {}, {}, never, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<SliderFieldComponent, "crispr-slider-field", never, {}, {}, never, never, true>;
26
26
  }
27
27
  export {};
@@ -1,12 +1,11 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
2
  import { TextareaFieldConfig } from '../../models';
4
3
  import * as i0 from "@angular/core";
5
4
  declare const TextareaFieldMixin: {
6
5
  new (): {
7
6
  config: TextareaFieldConfig;
8
- group: FormGroup;
9
- control: import("@angular/forms").AbstractControl;
7
+ group: import("@angular/forms").FormGroup<any>;
8
+ control: import("@angular/forms").AbstractControl<any, any>;
10
9
  _value: any;
11
10
  value: any;
12
11
  ngOnInit(): void;
@@ -19,6 +18,6 @@ export declare class TextareaFieldComponent extends TextareaFieldMixin implement
19
18
  defaultConfig: Partial<TextareaFieldConfig>;
20
19
  ngOnInit(): void;
21
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TextareaFieldComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "crispr-textarea-field", never, {}, {}, never, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaFieldComponent, "crispr-textarea-field", never, {}, {}, never, never, true>;
23
22
  }
24
23
  export {};
@@ -7,8 +7,8 @@ import * as i0 from "@angular/core";
7
7
  declare const UnitConversionFieldMixin: {
8
8
  new (): {
9
9
  config: UnitConversionFieldConfig<unknown, unknown>;
10
- group: import("@angular/forms").FormGroup;
11
- control: import("@angular/forms").AbstractControl;
10
+ group: import("@angular/forms").FormGroup<any>;
11
+ control: import("@angular/forms").AbstractControl<any, any>;
12
12
  _value: any;
13
13
  value: any;
14
14
  ngOnInit(): void;
@@ -19,8 +19,8 @@ declare const UnitConversionFieldMixin: {
19
19
  };
20
20
  export declare class UnitConversionFieldComponent extends UnitConversionFieldMixin implements OnInit, OnDestroy {
21
21
  defaultConfig: Partial<UnitConversionFieldConfig<unknown, unknown>>;
22
- displayValueControl: FormControl;
23
- unitSelectControl: FormControl;
22
+ displayValueControl: FormControl<any>;
23
+ unitSelectControl: FormControl<any>;
24
24
  unitOptions$: Observable<SelectOption[]>;
25
25
  transformationSubscription: Subscription;
26
26
  ngOnInit(): void;
@@ -34,6 +34,6 @@ export declare class UnitConversionFieldComponent extends UnitConversionFieldMix
34
34
  */
35
35
  setControlValue(value: any): void;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<UnitConversionFieldComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<UnitConversionFieldComponent, "crispr-unit-conversion-field", never, {}, {}, never, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<UnitConversionFieldComponent, "crispr-unit-conversion-field", never, {}, {}, never, never, true>;
38
38
  }
39
39
  export {};
@@ -48,7 +48,14 @@ export interface CrisprControlConfig<M = null> extends CrisprFieldConfig {
48
48
  computeFieldConfig?: ComputeFieldConfig;
49
49
  computeValue?: (group: FormGroup) => Observable<unknown>;
50
50
  disabledCallback?: (group: FormGroup, config?: any) => Observable<boolean>;
51
+ /**
52
+ * @deprecated this configuration isn't needed as all situations can be handled using `disabledCallback`
53
+ */
51
54
  disabledCallbackConfig?: CheckControlConfig | CheckControlsConfig | any;
55
+ /**
56
+ * Hide the control when disabled
57
+ * @default false
58
+ */
52
59
  hideDisabled?: boolean;
53
60
  heading?: HeadingConfig;
54
61
  hint?: string;
@@ -85,7 +92,7 @@ export interface FormConfig<C = AnyFieldConfig> extends AbstractGroupConfig<C> {
85
92
  /**
86
93
  * Configuration for SubGroup components
87
94
  */
88
- export interface SubGroupConfig extends CrisprControlConfig, AbstractGroupConfig {
95
+ export interface SubGroupConfig extends CrisprControlConfig, AbstractGroupConfig<any> {
89
96
  controlType: ControlType.SUB_GROUP;
90
97
  }
91
98
  export declare type AnyFieldConfig = InputFieldConfig | SelectFieldConfig | RadioFieldConfig | FormGroupListConfig | SubGroupConfig | AutocompleteFieldConfig | AutocompleteChiplistFieldConfig | TextareaFieldConfig | CheckboxFieldConfig | DatepickerFieldConfig | SliderFieldConfig | FileUploadFieldConfig | ImageUploadFieldConfig | HeadingConfig | ButtonConfig | DividerConfig | UnitConversionFieldConfig;
@@ -1,5 +1,4 @@
1
1
  import { CrisprControlConfig, ControlType } from '../models';
2
- import { Moment } from 'moment';
3
2
  import { FieldDescriptors, MatFieldProperties } from './crispr-field.config';
4
3
  import { MatCalendarCellClassFunction } from '@angular/material/datepicker';
5
4
  import { Observable } from 'rxjs';
@@ -12,9 +11,9 @@ export interface DatepickerFieldConfig extends CrisprControlConfig, Pick<FieldDe
12
11
  startView?: 'month' | 'year' | 'multi-year';
13
12
  startAt?: Date | ((group: FormGroup) => Observable<Date>) | null;
14
13
  touchUi?: boolean;
15
- datepickerFilter?: (date: Moment) => boolean;
16
- cellClassFunction?: MatCalendarCellClassFunction<Moment>;
17
- dateClass?: (parentGroup: FormGroup) => Observable<MatCalendarCellClassFunction<Moment>>;
14
+ datepickerFilter?: (date: Date) => boolean;
15
+ cellClassFunction?: MatCalendarCellClassFunction<Date>;
16
+ dateClass?: (parentGroup: FormGroup) => Observable<MatCalendarCellClassFunction<Date>>;
18
17
  /**
19
18
  * Pass a component into mat-datepicker-actions component see [docs](https://material.angular.io/components/datepicker/overview#confirmation-action-buttons)
20
19
  */
@@ -6,5 +6,5 @@ export declare class InitialControlValuePipe implements PipeTransform {
6
6
  [key: string]: ControlValue | any;
7
7
  }, fieldConfig: AnyFieldConfig): unknown;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<InitialControlValuePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<InitialControlValuePipe, "initialControlValue">;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<InitialControlValuePipe, "initialControlValue", false>;
10
10
  }