@ng-formworks/material 20.6.5 → 20.6.7
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 +267 -233
- package/fesm2022/ng-formworks-material.mjs.map +1 -1
- package/index.d.ts +21 -17
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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';
|
|
@@ -33,10 +33,9 @@ import * as i40 from '@angular/material/tabs';
|
|
|
33
33
|
import * as i41 from '@angular/material/tooltip';
|
|
34
34
|
import * as i42 from '@angular/material/toolbar';
|
|
35
35
|
import * as i43 from '@angular/material/menu';
|
|
36
|
-
import * as i47 from 'nxt-sortablejs';
|
|
37
36
|
|
|
38
37
|
declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnDestroy {
|
|
39
|
-
private
|
|
38
|
+
private cdr;
|
|
40
39
|
private jsf;
|
|
41
40
|
jsfFLService: FrameworkLibraryService;
|
|
42
41
|
cssFWService: CssframeworkService;
|
|
@@ -58,7 +57,7 @@ declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnD
|
|
|
58
57
|
ngOnDestroy(): void;
|
|
59
58
|
get showRemoveButton(): boolean;
|
|
60
59
|
ngOnInit(): void;
|
|
61
|
-
ngOnChanges(): void;
|
|
60
|
+
ngOnChanges(changes: any): void;
|
|
62
61
|
initializeFramework(): void;
|
|
63
62
|
updateTitle(): void;
|
|
64
63
|
removeItem(): void;
|
|
@@ -66,18 +65,18 @@ declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnD
|
|
|
66
65
|
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
66
|
}
|
|
68
67
|
|
|
69
|
-
declare class FlexLayoutRootComponent implements OnInit {
|
|
68
|
+
declare class FlexLayoutRootComponent implements OnInit, OnDestroy, OnChanges {
|
|
70
69
|
private jsf;
|
|
71
70
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
72
71
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
73
72
|
readonly layout: _angular_core.InputSignal<any[]>;
|
|
73
|
+
readonly isOrderable: _angular_core.InputSignal<boolean>;
|
|
74
74
|
readonly isFlexItem: _angular_core.InputSignal<boolean>;
|
|
75
|
+
readonly memoizationEnabled: _angular_core.InputSignal<boolean>;
|
|
75
76
|
ngOnInit(): void;
|
|
76
77
|
removeItem(item: any): void;
|
|
77
|
-
sortableObj: any;
|
|
78
|
-
sortableConfig: any;
|
|
79
|
-
sortableInit(sortable: any): void;
|
|
80
78
|
drop(event: CdkDragDrop<string[]>): void;
|
|
79
|
+
isDraggable(node: any): boolean;
|
|
81
80
|
/**
|
|
82
81
|
* Predicate function that disallows '$ref' item sorts
|
|
83
82
|
* NB declared as a var instead of a function
|
|
@@ -87,9 +86,19 @@ declare class FlexLayoutRootComponent implements OnInit {
|
|
|
87
86
|
*/
|
|
88
87
|
sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
|
|
89
88
|
getFlexAttribute(node: any, attribute: string): any;
|
|
89
|
+
private _getSelectFrameworkInputsRaw;
|
|
90
|
+
private _getSelectFrameworkInputsMemoized;
|
|
91
|
+
getSelectFrameworkInputs(layoutItem: any, i: number): {
|
|
92
|
+
layoutNode: any;
|
|
93
|
+
layoutIndex: number[];
|
|
94
|
+
dataIndex: number[];
|
|
95
|
+
};
|
|
96
|
+
trackByFn(index: number, item: any): any;
|
|
90
97
|
showWidget(layoutNode: any): boolean;
|
|
98
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
99
|
+
ngOnDestroy(): void;
|
|
91
100
|
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>;
|
|
101
|
+
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
102
|
}
|
|
94
103
|
|
|
95
104
|
declare class FlexLayoutSectionComponent implements OnInit {
|
|
@@ -316,14 +325,13 @@ declare class MaterialInputComponent implements OnInit, OnDestroy {
|
|
|
316
325
|
controlDisabled: boolean;
|
|
317
326
|
boundControl: boolean;
|
|
318
327
|
options: any;
|
|
328
|
+
layoutNodeRef: any;
|
|
319
329
|
autoCompleteList: string[];
|
|
320
330
|
readonly layoutNode: _angular_core.InputSignal<any>;
|
|
321
331
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
322
332
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
323
333
|
readonly input: _angular_core.Signal<ElementRef<any>>;
|
|
324
334
|
get inputAttributes(): any;
|
|
325
|
-
onMouseDown(e: any): void;
|
|
326
|
-
onTouchStart(e: any): void;
|
|
327
335
|
ngOnInit(): void;
|
|
328
336
|
updateValue(event: any): void;
|
|
329
337
|
ngOnDestroy(): void;
|
|
@@ -348,8 +356,6 @@ declare class MaterialNumberComponent implements OnInit, OnDestroy {
|
|
|
348
356
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
349
357
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
350
358
|
get inputAttributes(): any;
|
|
351
|
-
onMouseDown(e: any): void;
|
|
352
|
-
onTouchStart(e: any): void;
|
|
353
359
|
ngOnInit(): void;
|
|
354
360
|
updateValue(event: any): void;
|
|
355
361
|
ngOnDestroy(): void;
|
|
@@ -416,8 +422,6 @@ declare class MaterialSliderComponent implements OnInit, OnDestroy {
|
|
|
416
422
|
readonly layoutIndex: _angular_core.InputSignal<number[]>;
|
|
417
423
|
readonly dataIndex: _angular_core.InputSignal<number[]>;
|
|
418
424
|
get inputAttributes(): any;
|
|
419
|
-
onMouseDown(e: any): void;
|
|
420
|
-
onTouchStart(e: any): void;
|
|
421
425
|
ngOnInit(): void;
|
|
422
426
|
updateValue(event: any): void;
|
|
423
427
|
ngOnDestroy(): void;
|
|
@@ -473,11 +477,11 @@ declare const ANGULAR_MATERIAL_MODULES: (typeof MatAutocompleteModule)[];
|
|
|
473
477
|
declare class MaterialDesignFrameworkModule {
|
|
474
478
|
constructor();
|
|
475
479
|
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
|
|
480
|
+
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
481
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<MaterialDesignFrameworkModule>;
|
|
478
482
|
}
|
|
479
483
|
|
|
480
|
-
declare const MATERIAL_FRAMEWORK_COMPONENTS: (typeof
|
|
484
|
+
declare const MATERIAL_FRAMEWORK_COMPONENTS: (typeof MaterialTextareaComponent | typeof MaterialStepperComponent | typeof MaterialSliderComponent | typeof MaterialSelectComponent | typeof MaterialRadiosComponent | typeof MaterialOneOfComponent | typeof MaterialTabsComponent | typeof MaterialNumberComponent | typeof MaterialInputComponent | typeof MaterialFileComponent | typeof MaterialDatepickerComponent | typeof MaterialChipListComponent | typeof MaterialCheckboxesComponent | typeof MaterialCheckboxComponent | typeof MaterialButtonGroupComponent | typeof MaterialButtonComponent | typeof MaterialAddReferenceComponent | typeof FlexLayoutSectionComponent | typeof FlexLayoutRootComponent | typeof MaterialDesignFrameworkComponent)[];
|
|
481
485
|
|
|
482
486
|
declare class MaterialDesignFramework extends CssFramework {
|
|
483
487
|
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.7",
|
|
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.7",
|
|
51
|
+
"@ng-formworks/cssframework": "~20.6.7",
|
|
52
52
|
"tslib": "^2.7.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|