@ng-formworks/material 19.5.7 → 19.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
1
+ import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { OnInit } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FlexLayoutRootComponent implements OnInit {
@@ -13,6 +13,14 @@ export declare class FlexLayoutRootComponent implements OnInit {
13
13
  sortableConfig: any;
14
14
  sortableInit(sortable: any): void;
15
15
  drop(event: CdkDragDrop<string[]>): void;
16
+ /**
17
+ * Predicate function that disallows '$ref' item sorts
18
+ * NB declared as a var instead of a function
19
+ * like sortPredicate(index: number, item: CdkDrag<number>){..}
20
+ * since 'this' is bound to the draglist and doesn't reference the
21
+ * FlexLayoutRootComponent instance
22
+ */
23
+ sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
16
24
  getFlexAttribute(node: any, attribute: string): any;
17
25
  showWidget(layoutNode: any): boolean;
18
26
  static ɵfac: i0.ɵɵFactoryDeclaration<FlexLayoutRootComponent, never>;
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialButtonGroupComponent implements OnInit {
4
+ export declare class MaterialButtonGroupComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -16,6 +16,7 @@ export declare class MaterialButtonGroupComponent implements OnInit {
16
16
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
17
17
  ngOnInit(): void;
18
18
  updateValue(value: any): void;
19
+ ngOnDestroy(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialButtonGroupComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialButtonGroupComponent, "material-button-group-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
21
22
  }
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialCheckboxComponent implements OnInit {
4
+ export declare class MaterialCheckboxComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -18,6 +18,7 @@ export declare class MaterialCheckboxComponent implements OnInit {
18
18
  ngOnInit(): void;
19
19
  updateValue(event: any): void;
20
20
  get isChecked(): boolean;
21
+ ngOnDestroy(): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialCheckboxComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialCheckboxComponent, "material-checkbox-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
23
24
  }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { TitleMapItem } from '@ng-formworks/core';
4
4
  import * as i0 from "@angular/core";
5
- export declare class MaterialCheckboxesComponent implements OnInit {
5
+ export declare class MaterialCheckboxesComponent implements OnInit, OnDestroy {
6
6
  private jsf;
7
7
  formControl: AbstractControl;
8
8
  controlName: string;
@@ -21,6 +21,7 @@ export declare class MaterialCheckboxesComponent implements OnInit {
21
21
  get someChecked(): boolean;
22
22
  updateValue(): void;
23
23
  updateAllValues(event: any): void;
24
+ ngOnDestroy(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialCheckboxesComponent, never>;
25
26
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialCheckboxesComponent, "material-checkboxes-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
26
27
  }
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialChipListComponent implements OnInit {
4
+ export declare class MaterialChipListComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -14,6 +14,7 @@ export declare class MaterialChipListComponent implements OnInit {
14
14
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
15
15
  ngOnInit(): void;
16
16
  updateValue(event: any): void;
17
+ ngOnDestroy(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialChipListComponent, never>;
18
19
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialChipListComponent, "material-chip-list-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
20
  }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialDatepickerComponent implements OnInit {
5
- matFormFieldDefaultOptions: import("@angular/material/form-field.d-4c1ce1c5").h;
4
+ export declare class MaterialDatepickerComponent implements OnInit, OnDestroy {
5
+ matFormFieldDefaultOptions: import("@angular/material/form-field.d-CMA_QQ0R").i;
6
6
  private jsf;
7
7
  formControl: AbstractControl;
8
8
  controlName: string;
@@ -15,6 +15,7 @@ export declare class MaterialDatepickerComponent implements OnInit {
15
15
  readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
16
16
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
17
17
  ngOnInit(): void;
18
+ ngOnDestroy(): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDatepickerComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDatepickerComponent, "material-datepicker-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
20
21
  }
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialFileComponent implements OnInit {
4
+ export declare class MaterialFileComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -14,6 +14,7 @@ export declare class MaterialFileComponent implements OnInit {
14
14
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
15
15
  ngOnInit(): void;
16
16
  updateValue(event: any): void;
17
+ ngOnDestroy(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialFileComponent, never>;
18
19
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialFileComponent, "material-file-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
20
  }
@@ -1,8 +1,8 @@
1
- import { ElementRef, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialInputComponent implements OnInit {
5
- matFormFieldDefaultOptions: import("@angular/material/form-field.d-4c1ce1c5").h;
4
+ export declare class MaterialInputComponent implements OnInit, OnDestroy {
5
+ matFormFieldDefaultOptions: import("@angular/material/form-field.d-CMA_QQ0R").i;
6
6
  private jsf;
7
7
  formControl: AbstractControl;
8
8
  controlName: string;
@@ -20,6 +20,7 @@ export declare class MaterialInputComponent implements OnInit {
20
20
  onTouchStart(e: any): void;
21
21
  ngOnInit(): void;
22
22
  updateValue(event: any): void;
23
+ ngOnDestroy(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialInputComponent, never>;
24
25
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialInputComponent, "material-input-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
25
26
  }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialNumberComponent implements OnInit {
5
- matFormFieldDefaultOptions: import("@angular/material/form-field.d-4c1ce1c5").h;
4
+ export declare class MaterialNumberComponent implements OnInit, OnDestroy {
5
+ matFormFieldDefaultOptions: import("@angular/material/form-field.d-CMA_QQ0R").i;
6
6
  private jsf;
7
7
  formControl: AbstractControl;
8
8
  controlName: string;
@@ -22,6 +22,7 @@ export declare class MaterialNumberComponent implements OnInit {
22
22
  onTouchStart(e: any): void;
23
23
  ngOnInit(): void;
24
24
  updateValue(event: any): void;
25
+ ngOnDestroy(): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialNumberComponent, never>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialNumberComponent, "material-number-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
27
28
  }
@@ -1,7 +1,9 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
+ import { MaterialTabsComponent } from './material-tabs.component';
3
4
  import * as i0 from "@angular/core";
4
- export declare class MaterialOneOfComponent implements OnInit {
5
+ export declare class MaterialOneOfComponent implements OnInit, OnDestroy {
6
+ readonly tabs: import("@angular/core").Signal<MaterialTabsComponent>;
5
7
  private jsf;
6
8
  formControl: AbstractControl;
7
9
  controlName: string;
@@ -13,7 +15,9 @@ export declare class MaterialOneOfComponent implements OnInit {
13
15
  readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
14
16
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
15
17
  ngOnInit(): void;
18
+ findSelectedTab(): number;
16
19
  updateValue(event: any): void;
20
+ ngOnDestroy(): void;
17
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialOneOfComponent, never>;
18
22
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialOneOfComponent, "material-one-of-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
23
  }
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialRadiosComponent implements OnInit {
4
+ export declare class MaterialRadiosComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -16,6 +16,7 @@ export declare class MaterialRadiosComponent implements OnInit {
16
16
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
17
17
  ngOnInit(): void;
18
18
  updateValue(value: any): void;
19
+ ngOnDestroy(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialRadiosComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialRadiosComponent, "material-radios-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
21
22
  }
@@ -1,9 +1,9 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { isArray } from '@ng-formworks/core';
4
4
  import * as i0 from "@angular/core";
5
- export declare class MaterialSelectComponent implements OnInit {
6
- matFormFieldDefaultOptions: import("@angular/material/form-field.d-4c1ce1c5").h;
5
+ export declare class MaterialSelectComponent implements OnInit, OnDestroy {
6
+ matFormFieldDefaultOptions: import("@angular/material/form-field.d-CMA_QQ0R").i;
7
7
  private jsf;
8
8
  formControl: AbstractControl;
9
9
  controlName: string;
@@ -12,12 +12,15 @@ export declare class MaterialSelectComponent implements OnInit {
12
12
  boundControl: boolean;
13
13
  options: any;
14
14
  selectList: any[];
15
+ selectListFlatGroup: any[];
15
16
  isArray: typeof isArray;
16
17
  readonly layoutNode: import("@angular/core").InputSignal<any>;
17
18
  readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
18
19
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
19
20
  ngOnInit(): void;
21
+ deselectAll(): void;
20
22
  updateValue(event: any): void;
23
+ ngOnDestroy(): void;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialSelectComponent, never>;
22
25
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialSelectComponent, "material-select-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
23
26
  }
@@ -1,7 +1,7 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialStepperComponent implements OnInit {
4
+ export declare class MaterialStepperComponent implements OnInit, OnDestroy {
5
5
  private jsf;
6
6
  formControl: AbstractControl;
7
7
  controlName: string;
@@ -14,6 +14,7 @@ export declare class MaterialStepperComponent implements OnInit {
14
14
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
15
15
  ngOnInit(): void;
16
16
  updateValue(event: any): void;
17
+ ngOnDestroy(): void;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialStepperComponent, never>;
18
19
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialStepperComponent, "material-stepper-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
19
20
  }
@@ -1,8 +1,8 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MaterialTextareaComponent implements OnInit {
5
- matFormFieldDefaultOptions: import("@angular/material/form-field.d-4c1ce1c5").h;
4
+ export declare class MaterialTextareaComponent implements OnInit, OnDestroy {
5
+ matFormFieldDefaultOptions: import("@angular/material/form-field.d-CMA_QQ0R").i;
6
6
  private jsf;
7
7
  formControl: AbstractControl;
8
8
  controlName: string;
@@ -15,6 +15,7 @@ export declare class MaterialTextareaComponent implements OnInit {
15
15
  readonly dataIndex: import("@angular/core").InputSignal<number[]>;
16
16
  ngOnInit(): void;
17
17
  updateValue(event: any): void;
18
+ ngOnDestroy(): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTextareaComponent, never>;
19
20
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTextareaComponent, "material-textarea-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
20
21
  }
@@ -18,7 +18,7 @@ import { MaterialSliderComponent } from './material-slider.component';
18
18
  import { MaterialStepperComponent } from './material-stepper.component';
19
19
  import { MaterialTabsComponent } from './material-tabs.component';
20
20
  import { MaterialTextareaComponent } from './material-textarea.component';
21
- export declare const MATERIAL_FRAMEWORK_COMPONENTS: (typeof MaterialDesignFrameworkComponent | typeof FlexLayoutRootComponent | typeof FlexLayoutSectionComponent | typeof MaterialAddReferenceComponent | typeof MaterialButtonComponent | typeof MaterialButtonGroupComponent | typeof MaterialCheckboxComponent | typeof MaterialCheckboxesComponent | typeof MaterialChipListComponent | typeof MaterialDatepickerComponent | typeof MaterialFileComponent | typeof MaterialInputComponent | typeof MaterialNumberComponent | typeof MaterialOneOfComponent | typeof MaterialRadiosComponent | typeof MaterialSelectComponent | typeof MaterialSliderComponent | typeof MaterialStepperComponent | typeof MaterialTabsComponent | typeof MaterialTextareaComponent)[];
21
+ export declare const MATERIAL_FRAMEWORK_COMPONENTS: (typeof MaterialDesignFrameworkComponent | typeof FlexLayoutRootComponent | typeof FlexLayoutSectionComponent | typeof MaterialAddReferenceComponent | typeof MaterialButtonComponent | typeof MaterialButtonGroupComponent | typeof MaterialCheckboxComponent | typeof MaterialCheckboxesComponent | typeof MaterialChipListComponent | typeof MaterialDatepickerComponent | typeof MaterialFileComponent | typeof MaterialInputComponent | typeof MaterialNumberComponent | typeof MaterialTabsComponent | typeof MaterialOneOfComponent | typeof MaterialRadiosComponent | typeof MaterialSelectComponent | typeof MaterialSliderComponent | typeof MaterialStepperComponent | typeof MaterialTextareaComponent)[];
22
22
  export { FlexLayoutRootComponent } from './flex-layout-root.component';
23
23
  export { FlexLayoutSectionComponent } from './flex-layout-section.component';
24
24
  export { MaterialAddReferenceComponent } from './material-add-reference.component';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-formworks/material",
3
- "version": "19.5.7",
3
+ "version": "19.6.0",
4
4
  "description": "Angular ng-formworks - JSON Schema Form builder using Angular Material UI",
5
5
  "author": "https://github.com/zahmo/ng-formworks/graphs/contributors",
6
6
  "keywords": [
@@ -40,8 +40,8 @@
40
40
  "private": false,
41
41
  "dependencies": {
42
42
  "lodash-es": "~4.17.21",
43
- "@ng-formworks/core": "~19.5.7",
44
- "@ng-formworks/cssframework": "~19.5.7",
43
+ "@ng-formworks/core": "~19.6.0",
44
+ "@ng-formworks/cssframework": "~19.6.0",
45
45
  "tslib": "^2.7.0"
46
46
  },
47
47
  "peerDependencies": {