@ng-formworks/material 20.6.6 → 20.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ng-formworks-material.mjs +270 -236
- package/fesm2022/ng-formworks-material.mjs.map +1 -1
- package/index.d.ts +24 -21
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, OnDestroy, ElementRef } from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, OnDestroy, SimpleChanges, ElementRef } from '@angular/core';
|
|
3
3
|
import * as i45 from '@ng-formworks/core';
|
|
4
4
|
import { FrameworkLibraryService, TitleMapItem, isArray } from '@ng-formworks/core';
|
|
5
5
|
import * as i46 from '@ng-formworks/cssframework';
|
|
6
6
|
import { CssframeworkService, CssFramework } from '@ng-formworks/cssframework';
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
|
-
import * as i23 from '@angular/material/autocomplete';
|
|
9
|
-
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
10
8
|
import * as i44 from '@angular/cdk/drag-drop';
|
|
11
|
-
import { CdkDragDrop, CdkDrag } from '@angular/cdk/drag-drop';
|
|
9
|
+
import { CdkDragDrop, CdkDrag, DragDropModule } from '@angular/cdk/drag-drop';
|
|
12
10
|
import * as i22 from '@angular/forms';
|
|
13
11
|
import { AbstractControl } from '@angular/forms';
|
|
14
12
|
import * as _angular_material_form_field_d_DYwAHGRh from '@angular/material/form-field.d-DYwAHGRh';
|
|
15
13
|
import * as i21 from '@angular/common';
|
|
14
|
+
import * as i23 from '@angular/material/autocomplete';
|
|
16
15
|
import * as i24 from '@angular/material/button';
|
|
17
16
|
import * as i25 from '@angular/material/button-toggle';
|
|
18
17
|
import * as i26 from '@angular/material/card';
|
|
@@ -33,10 +32,9 @@ import * as i40 from '@angular/material/tabs';
|
|
|
33
32
|
import * as i41 from '@angular/material/tooltip';
|
|
34
33
|
import * as i42 from '@angular/material/toolbar';
|
|
35
34
|
import * as i43 from '@angular/material/menu';
|
|
36
|
-
import * as i47 from 'nxt-sortablejs';
|
|
37
35
|
|
|
38
36
|
declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnDestroy {
|
|
39
|
-
private
|
|
37
|
+
private cdr;
|
|
40
38
|
private jsf;
|
|
41
39
|
jsfFLService: FrameworkLibraryService;
|
|
42
40
|
cssFWService: CssframeworkService;
|
|
@@ -58,7 +56,7 @@ declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnD
|
|
|
58
56
|
ngOnDestroy(): void;
|
|
59
57
|
get showRemoveButton(): boolean;
|
|
60
58
|
ngOnInit(): void;
|
|
61
|
-
ngOnChanges(): void;
|
|
59
|
+
ngOnChanges(changes: any): void;
|
|
62
60
|
initializeFramework(): void;
|
|
63
61
|
updateTitle(): void;
|
|
64
62
|
removeItem(): void;
|
|
@@ -66,18 +64,18 @@ declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnD
|
|
|
66
64
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaterialDesignFrameworkComponent, "material-design-framework", 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>;
|
|
67
65
|
}
|
|
68
66
|
|
|
69
|
-
declare class FlexLayoutRootComponent implements OnInit {
|
|
67
|
+
declare class FlexLayoutRootComponent implements OnInit, OnDestroy, OnChanges {
|
|
70
68
|
private jsf;
|
|
71
69
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
72
70
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
73
71
|
readonly layout: _angular_core.InputSignal<any[]>;
|
|
72
|
+
readonly isOrderable: _angular_core.InputSignal<boolean>;
|
|
74
73
|
readonly isFlexItem: _angular_core.InputSignal<boolean>;
|
|
74
|
+
readonly memoizationEnabled: _angular_core.InputSignal<boolean>;
|
|
75
75
|
ngOnInit(): void;
|
|
76
76
|
removeItem(item: any): void;
|
|
77
|
-
sortableObj: any;
|
|
78
|
-
sortableConfig: any;
|
|
79
|
-
sortableInit(sortable: any): void;
|
|
80
77
|
drop(event: CdkDragDrop<string[]>): void;
|
|
78
|
+
isDraggable(node: any): boolean;
|
|
81
79
|
/**
|
|
82
80
|
* Predicate function that disallows '$ref' item sorts
|
|
83
81
|
* NB declared as a var instead of a function
|
|
@@ -87,9 +85,19 @@ declare class FlexLayoutRootComponent implements OnInit {
|
|
|
87
85
|
*/
|
|
88
86
|
sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
|
|
89
87
|
getFlexAttribute(node: any, attribute: string): any;
|
|
88
|
+
private _getSelectFrameworkInputsRaw;
|
|
89
|
+
private _getSelectFrameworkInputsMemoized;
|
|
90
|
+
getSelectFrameworkInputs(layoutItem: any, i: number): {
|
|
91
|
+
layoutNode: any;
|
|
92
|
+
layoutIndex: number[];
|
|
93
|
+
dataIndex: number[];
|
|
94
|
+
};
|
|
95
|
+
trackByFn(index: number, item: any): any;
|
|
90
96
|
showWidget(layoutNode: any): boolean;
|
|
97
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
98
|
+
ngOnDestroy(): void;
|
|
91
99
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FlexLayoutRootComponent, never>;
|
|
92
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlexLayoutRootComponent, "flex-layout-root-widget", never, { "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "isFlexItem": { "alias": "isFlexItem"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
100
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FlexLayoutRootComponent, "flex-layout-root-widget", never, { "dataIndex": { "alias": "dataIndex"; "required": false; "isSignal": true; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "isOrderable": { "alias": "isOrderable"; "required": false; "isSignal": true; }; "isFlexItem": { "alias": "isFlexItem"; "required": false; "isSignal": true; }; "memoizationEnabled": { "alias": "memoizationEnabled"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
93
101
|
}
|
|
94
102
|
|
|
95
103
|
declare class FlexLayoutSectionComponent implements OnInit {
|
|
@@ -316,14 +324,13 @@ declare class MaterialInputComponent implements OnInit, OnDestroy {
|
|
|
316
324
|
controlDisabled: boolean;
|
|
317
325
|
boundControl: boolean;
|
|
318
326
|
options: any;
|
|
327
|
+
layoutNodeRef: any;
|
|
319
328
|
autoCompleteList: string[];
|
|
320
329
|
readonly layoutNode: _angular_core.InputSignal<any>;
|
|
321
330
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
322
331
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
323
332
|
readonly input: _angular_core.Signal<ElementRef<any>>;
|
|
324
333
|
get inputAttributes(): any;
|
|
325
|
-
onMouseDown(e: any): void;
|
|
326
|
-
onTouchStart(e: any): void;
|
|
327
334
|
ngOnInit(): void;
|
|
328
335
|
updateValue(event: any): void;
|
|
329
336
|
ngOnDestroy(): void;
|
|
@@ -348,8 +355,6 @@ declare class MaterialNumberComponent implements OnInit, OnDestroy {
|
|
|
348
355
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
349
356
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
350
357
|
get inputAttributes(): any;
|
|
351
|
-
onMouseDown(e: any): void;
|
|
352
|
-
onTouchStart(e: any): void;
|
|
353
358
|
ngOnInit(): void;
|
|
354
359
|
updateValue(event: any): void;
|
|
355
360
|
ngOnDestroy(): void;
|
|
@@ -416,8 +421,6 @@ declare class MaterialSliderComponent implements OnInit, OnDestroy {
|
|
|
416
421
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
417
422
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
418
423
|
get inputAttributes(): any;
|
|
419
|
-
onMouseDown(e: any): void;
|
|
420
|
-
onTouchStart(e: any): void;
|
|
421
424
|
ngOnInit(): void;
|
|
422
425
|
updateValue(event: any): void;
|
|
423
426
|
ngOnDestroy(): void;
|
|
@@ -469,15 +472,15 @@ declare class MaterialTextareaComponent implements OnInit, OnDestroy {
|
|
|
469
472
|
* MatSidenavModule, MatSnackBarModule, MatSortModule, MatTableModule,
|
|
470
473
|
* ,
|
|
471
474
|
*/
|
|
472
|
-
declare const ANGULAR_MATERIAL_MODULES: (typeof
|
|
475
|
+
declare const ANGULAR_MATERIAL_MODULES: (typeof DragDropModule)[];
|
|
473
476
|
declare class MaterialDesignFrameworkModule {
|
|
474
477
|
constructor();
|
|
475
478
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaterialDesignFrameworkModule, never>;
|
|
476
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<MaterialDesignFrameworkModule, [typeof FlexLayoutRootComponent, typeof FlexLayoutSectionComponent, typeof MaterialAddReferenceComponent, typeof MaterialOneOfComponent, typeof MaterialButtonComponent, typeof MaterialButtonGroupComponent, typeof MaterialCheckboxComponent, typeof MaterialCheckboxesComponent, typeof MaterialChipListComponent, typeof MaterialDatepickerComponent, typeof MaterialFileComponent, typeof MaterialInputComponent, typeof MaterialNumberComponent, typeof MaterialRadiosComponent, typeof MaterialSelectComponent, typeof MaterialSliderComponent, typeof MaterialStepperComponent, typeof MaterialTabsComponent, typeof MaterialTextareaComponent, typeof MaterialDesignFrameworkComponent], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i22.ReactiveFormsModule, typeof i23.MatAutocompleteModule, typeof i24.MatButtonModule, typeof i25.MatButtonToggleModule, typeof i26.MatCardModule, typeof i27.MatCheckboxModule, typeof i28.MatChipsModule, typeof i29.MatDatepickerModule, typeof i30.MatExpansionModule, typeof i31.MatFormFieldModule, typeof i32.MatIconModule, typeof i33.MatInputModule, typeof i34.MatNativeDateModule, typeof i35.MatRadioModule, typeof i36.MatSelectModule, typeof i37.MatSliderModule, typeof i38.MatSlideToggleModule, typeof i39.MatStepperModule, typeof i40.MatTabsModule, typeof i41.MatTooltipModule, typeof i42.MatToolbarModule, typeof i43.MatMenuModule, typeof i42.MatToolbarModule, typeof i44.DragDropModule, typeof i45.WidgetLibraryModule, typeof i45.JsonSchemaFormModule, typeof i46.CssFrameworkModule
|
|
479
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<MaterialDesignFrameworkModule, [typeof FlexLayoutRootComponent, typeof FlexLayoutSectionComponent, typeof MaterialAddReferenceComponent, typeof MaterialOneOfComponent, typeof MaterialButtonComponent, typeof MaterialButtonGroupComponent, typeof MaterialCheckboxComponent, typeof MaterialCheckboxesComponent, typeof MaterialChipListComponent, typeof MaterialDatepickerComponent, typeof MaterialFileComponent, typeof MaterialInputComponent, typeof MaterialNumberComponent, typeof MaterialRadiosComponent, typeof MaterialSelectComponent, typeof MaterialSliderComponent, typeof MaterialStepperComponent, typeof MaterialTabsComponent, typeof MaterialTextareaComponent, typeof MaterialDesignFrameworkComponent], [typeof i21.CommonModule, typeof i22.FormsModule, typeof i22.ReactiveFormsModule, typeof i23.MatAutocompleteModule, typeof i24.MatButtonModule, typeof i25.MatButtonToggleModule, typeof i26.MatCardModule, typeof i27.MatCheckboxModule, typeof i28.MatChipsModule, typeof i29.MatDatepickerModule, typeof i30.MatExpansionModule, typeof i31.MatFormFieldModule, typeof i32.MatIconModule, typeof i33.MatInputModule, typeof i34.MatNativeDateModule, typeof i35.MatRadioModule, typeof i36.MatSelectModule, typeof i37.MatSliderModule, typeof i38.MatSlideToggleModule, typeof i39.MatStepperModule, typeof i40.MatTabsModule, typeof i41.MatTooltipModule, typeof i42.MatToolbarModule, typeof i43.MatMenuModule, typeof i42.MatToolbarModule, typeof i44.DragDropModule, typeof i45.WidgetLibraryModule, typeof i45.JsonSchemaFormModule, typeof i46.CssFrameworkModule], [typeof i45.JsonSchemaFormModule, typeof FlexLayoutRootComponent, typeof FlexLayoutSectionComponent, typeof MaterialAddReferenceComponent, typeof MaterialOneOfComponent, typeof MaterialButtonComponent, typeof MaterialButtonGroupComponent, typeof MaterialCheckboxComponent, typeof MaterialCheckboxesComponent, typeof MaterialChipListComponent, typeof MaterialDatepickerComponent, typeof MaterialFileComponent, typeof MaterialInputComponent, typeof MaterialNumberComponent, typeof MaterialRadiosComponent, typeof MaterialSelectComponent, typeof MaterialSliderComponent, typeof MaterialStepperComponent, typeof MaterialTabsComponent, typeof MaterialTextareaComponent, typeof MaterialDesignFrameworkComponent]>;
|
|
477
480
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<MaterialDesignFrameworkModule>;
|
|
478
481
|
}
|
|
479
482
|
|
|
480
|
-
declare const MATERIAL_FRAMEWORK_COMPONENTS: (typeof
|
|
483
|
+
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 MaterialTabsComponent | typeof MaterialRadiosComponent | typeof MaterialSelectComponent | typeof MaterialSliderComponent | typeof MaterialStepperComponent | typeof MaterialTextareaComponent)[];
|
|
481
484
|
|
|
482
485
|
declare class MaterialDesignFramework extends CssFramework {
|
|
483
486
|
cssFWService: CssframeworkService;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-formworks/material",
|
|
3
|
-
"version": "20.6.
|
|
3
|
+
"version": "20.6.8",
|
|
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": [
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"private": false,
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"lodash-es": "~4.17.21",
|
|
50
|
-
"@ng-formworks/core": "~20.6.
|
|
51
|
-
"@ng-formworks/cssframework": "~20.6.
|
|
50
|
+
"@ng-formworks/core": "~20.6.8",
|
|
51
|
+
"@ng-formworks/cssframework": "~20.6.8",
|
|
52
52
|
"tslib": "^2.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|