@ng-formworks/material 16.5.7 → 16.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.
Files changed (35) hide show
  1. package/esm2022/lib/material-design-framework.component.mjs +3 -3
  2. package/esm2022/lib/widgets/flex-layout-root.component.mjs +23 -5
  3. package/esm2022/lib/widgets/material-button-group.component.mjs +4 -1
  4. package/esm2022/lib/widgets/material-button.component.mjs +2 -1
  5. package/esm2022/lib/widgets/material-checkbox.component.mjs +4 -1
  6. package/esm2022/lib/widgets/material-checkboxes.component.mjs +8 -1
  7. package/esm2022/lib/widgets/material-chip-list.component.mjs +4 -1
  8. package/esm2022/lib/widgets/material-datepicker.component.mjs +4 -1
  9. package/esm2022/lib/widgets/material-file.component.mjs +4 -1
  10. package/esm2022/lib/widgets/material-input.component.mjs +4 -1
  11. package/esm2022/lib/widgets/material-number.component.mjs +4 -1
  12. package/esm2022/lib/widgets/material-one-of.component.mjs +76 -5
  13. package/esm2022/lib/widgets/material-radios.component.mjs +4 -1
  14. package/esm2022/lib/widgets/material-select.component.mjs +99 -5
  15. package/esm2022/lib/widgets/material-stepper.component.mjs +4 -1
  16. package/esm2022/lib/widgets/material-tabs.component.mjs +102 -24
  17. package/esm2022/lib/widgets/material-textarea.component.mjs +4 -1
  18. package/fesm2022/ng-formworks-material.mjs +397 -102
  19. package/fesm2022/ng-formworks-material.mjs.map +1 -1
  20. package/lib/widgets/flex-layout-root.component.d.ts +9 -1
  21. package/lib/widgets/material-button-group.component.d.ts +1 -0
  22. package/lib/widgets/material-checkbox.component.d.ts +1 -0
  23. package/lib/widgets/material-checkboxes.component.d.ts +1 -0
  24. package/lib/widgets/material-chip-list.component.d.ts +1 -0
  25. package/lib/widgets/material-datepicker.component.d.ts +1 -0
  26. package/lib/widgets/material-file.component.d.ts +1 -0
  27. package/lib/widgets/material-input.component.d.ts +1 -0
  28. package/lib/widgets/material-number.component.d.ts +1 -0
  29. package/lib/widgets/material-one-of.component.d.ts +4 -1
  30. package/lib/widgets/material-radios.component.d.ts +1 -0
  31. package/lib/widgets/material-select.component.d.ts +3 -0
  32. package/lib/widgets/material-stepper.component.d.ts +1 -0
  33. package/lib/widgets/material-textarea.component.d.ts +1 -0
  34. package/lib/widgets/public_api.d.ts +1 -1
  35. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
1
+ import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { JsonSchemaFormService } from '@ng-formworks/core';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class FlexLayoutRootComponent {
@@ -13,6 +13,14 @@ export declare class FlexLayoutRootComponent {
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>;
@@ -18,6 +18,7 @@ export declare class MaterialButtonGroupComponent implements OnInit {
18
18
  constructor(jsf: JsonSchemaFormService);
19
19
  ngOnInit(): void;
20
20
  updateValue(value: any): void;
21
+ ngOnDestroy(): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialButtonGroupComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialButtonGroupComponent, "material-button-group-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
23
24
  }
@@ -20,6 +20,7 @@ export declare class MaterialCheckboxComponent implements OnInit {
20
20
  ngOnInit(): void;
21
21
  updateValue(event: any): void;
22
22
  get isChecked(): boolean;
23
+ ngOnDestroy(): void;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialCheckboxComponent, never>;
24
25
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialCheckboxComponent, "material-checkbox-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
25
26
  }
@@ -22,6 +22,7 @@ export declare class MaterialCheckboxesComponent implements OnInit {
22
22
  get someChecked(): boolean;
23
23
  updateValue(): void;
24
24
  updateAllValues(event: any): void;
25
+ ngOnDestroy(): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialCheckboxesComponent, never>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialCheckboxesComponent, "material-checkboxes-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
27
28
  }
@@ -16,6 +16,7 @@ export declare class MaterialChipListComponent implements OnInit {
16
16
  constructor(jsf: JsonSchemaFormService);
17
17
  ngOnInit(): void;
18
18
  updateValue(event: any): void;
19
+ ngOnDestroy(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialChipListComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialChipListComponent, "material-chip-list-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
22
  }
@@ -17,6 +17,7 @@ export declare class MaterialDatepickerComponent implements OnInit {
17
17
  dataIndex: number[];
18
18
  constructor(matFormFieldDefaultOptions: any, jsf: JsonSchemaFormService);
19
19
  ngOnInit(): void;
20
+ ngOnDestroy(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDatepickerComponent, [{ optional: true; }, null]>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialDatepickerComponent, "material-datepicker-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
22
23
  }
@@ -16,6 +16,7 @@ export declare class MaterialFileComponent implements OnInit {
16
16
  constructor(jsf: JsonSchemaFormService);
17
17
  ngOnInit(): void;
18
18
  updateValue(event: any): void;
19
+ ngOnDestroy(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialFileComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialFileComponent, "material-file-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
22
  }
@@ -22,6 +22,7 @@ export declare class MaterialInputComponent 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<MaterialInputComponent, [{ optional: true; }, null]>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialInputComponent, "material-input-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
27
28
  }
@@ -24,6 +24,7 @@ export declare class MaterialNumberComponent implements OnInit {
24
24
  constructor(matFormFieldDefaultOptions: any, jsf: JsonSchemaFormService);
25
25
  ngOnInit(): void;
26
26
  updateValue(event: any): void;
27
+ ngOnDestroy(): void;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialNumberComponent, [{ optional: true; }, null]>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialNumberComponent, "material-number-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
29
30
  }
@@ -1,9 +1,10 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { JsonSchemaFormService } from '@ng-formworks/core';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MaterialOneOfComponent implements OnInit {
6
6
  private jsf;
7
+ tabs: ElementRef;
7
8
  formControl: AbstractControl;
8
9
  controlName: string;
9
10
  controlValue: any;
@@ -15,7 +16,9 @@ export declare class MaterialOneOfComponent implements OnInit {
15
16
  dataIndex: number[];
16
17
  constructor(jsf: JsonSchemaFormService);
17
18
  ngOnInit(): void;
19
+ findSelectedTab(): number;
18
20
  updateValue(event: any): void;
21
+ ngOnDestroy(): void;
19
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialOneOfComponent, never>;
20
23
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialOneOfComponent, "material-one-of-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
24
  }
@@ -18,6 +18,7 @@ export declare class MaterialRadiosComponent implements OnInit {
18
18
  constructor(jsf: JsonSchemaFormService);
19
19
  ngOnInit(): void;
20
20
  updateValue(value: any): void;
21
+ ngOnDestroy(): void;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialRadiosComponent, never>;
22
23
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialRadiosComponent, "material-radios-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
23
24
  }
@@ -12,13 +12,16 @@ 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
  layoutNode: any;
17
18
  layoutIndex: number[];
18
19
  dataIndex: number[];
19
20
  constructor(matFormFieldDefaultOptions: any, jsf: JsonSchemaFormService);
20
21
  ngOnInit(): void;
22
+ deselectAll(): void;
21
23
  updateValue(event: any): void;
24
+ ngOnDestroy(): void;
22
25
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialSelectComponent, [{ optional: true; }, null]>;
23
26
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialSelectComponent, "material-select-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
24
27
  }
@@ -16,6 +16,7 @@ export declare class MaterialStepperComponent implements OnInit {
16
16
  constructor(jsf: JsonSchemaFormService);
17
17
  ngOnInit(): void;
18
18
  updateValue(event: any): void;
19
+ ngOnDestroy(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialStepperComponent, never>;
20
21
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialStepperComponent, "material-stepper-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
21
22
  }
@@ -17,6 +17,7 @@ export declare class MaterialTextareaComponent implements OnInit {
17
17
  constructor(matFormFieldDefaultOptions: any, jsf: JsonSchemaFormService);
18
18
  ngOnInit(): void;
19
19
  updateValue(event: any): void;
20
+ ngOnDestroy(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<MaterialTextareaComponent, [{ optional: true; }, null]>;
21
22
  static ɵcmp: i0.ɵɵComponentDeclaration<MaterialTextareaComponent, "material-textarea-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
22
23
  }
@@ -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": "16.5.7",
3
+ "version": "16.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": [
@@ -38,8 +38,8 @@
38
38
  "private": false,
39
39
  "dependencies": {
40
40
  "lodash-es": "~4.17.21",
41
- "@ng-formworks/core": "~16.5.7",
42
- "@ng-formworks/cssframework": "~16.5.7",
41
+ "@ng-formworks/core": "~16.6.0",
42
+ "@ng-formworks/cssframework": "~16.6.0",
43
43
  "tslib": "^2.0.0"
44
44
  },
45
45
  "peerDependencies": {