@ng-formworks/material 17.6.6 → 17.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/esm2022/lib/material-design-framework.component.mjs +24 -17
- package/esm2022/lib/material-design-framework.module.mjs +4 -18
- package/esm2022/lib/widgets/flex-layout-root.component.mjs +113 -49
- package/esm2022/lib/widgets/flex-layout-section.component.mjs +1 -1
- package/esm2022/lib/widgets/material-add-reference.component.mjs +8 -5
- package/esm2022/lib/widgets/material-button-group.component.mjs +3 -3
- package/esm2022/lib/widgets/material-button.component.mjs +11 -6
- package/esm2022/lib/widgets/material-checkbox.component.mjs +9 -9
- package/esm2022/lib/widgets/material-checkboxes.component.mjs +3 -3
- package/esm2022/lib/widgets/material-datepicker.component.mjs +7 -7
- package/esm2022/lib/widgets/material-input.component.mjs +30 -30
- package/esm2022/lib/widgets/material-number.component.mjs +14 -26
- package/esm2022/lib/widgets/material-radios.component.mjs +3 -3
- package/esm2022/lib/widgets/material-select.component.mjs +11 -11
- package/esm2022/lib/widgets/material-slider.component.mjs +12 -28
- package/esm2022/lib/widgets/material-tabs.component.mjs +3 -3
- package/esm2022/lib/widgets/material-textarea.component.mjs +7 -7
- package/fesm2022/ng-formworks-material.mjs +265 -231
- package/fesm2022/ng-formworks-material.mjs.map +1 -1
- package/lib/material-design-framework.component.d.ts +2 -2
- package/lib/material-design-framework.module.d.ts +1 -2
- package/lib/widgets/flex-layout-root.component.d.ts +16 -6
- package/lib/widgets/material-input.component.d.ts +1 -2
- package/lib/widgets/material-number.component.d.ts +0 -2
- package/lib/widgets/material-slider.component.d.ts +0 -2
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ import { CssframeworkService } from '@ng-formworks/cssframework';
|
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class MaterialDesignFrameworkComponent implements OnInit, OnChanges, OnDestroy {
|
|
7
|
-
private
|
|
7
|
+
private cdr;
|
|
8
8
|
private jsf;
|
|
9
9
|
jsfFLService: FrameworkLibraryService;
|
|
10
10
|
cssFWService: CssframeworkService;
|
|
@@ -26,7 +26,7 @@ export declare class MaterialDesignFrameworkComponent implements OnInit, OnChang
|
|
|
26
26
|
ngOnDestroy(): void;
|
|
27
27
|
get showRemoveButton(): boolean;
|
|
28
28
|
ngOnInit(): void;
|
|
29
|
-
ngOnChanges(): void;
|
|
29
|
+
ngOnChanges(changes: any): void;
|
|
30
30
|
initializeFramework(): void;
|
|
31
31
|
updateTitle(): void;
|
|
32
32
|
removeItem(): void;
|
|
@@ -46,7 +46,6 @@ import * as i43 from "@angular/material/menu";
|
|
|
46
46
|
import * as i44 from "@angular/cdk/drag-drop";
|
|
47
47
|
import * as i45 from "@ng-formworks/core";
|
|
48
48
|
import * as i46 from "@ng-formworks/cssframework";
|
|
49
|
-
import * as i47 from "nxt-sortablejs";
|
|
50
49
|
/**
|
|
51
50
|
* unused @angular/material modules:
|
|
52
51
|
* MatDialogModule, MatGridListModule, MatListModule, MatMenuModule,
|
|
@@ -58,6 +57,6 @@ export declare const ANGULAR_MATERIAL_MODULES: (typeof MatButtonModule)[];
|
|
|
58
57
|
export declare class MaterialDesignFrameworkModule {
|
|
59
58
|
constructor();
|
|
60
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialDesignFrameworkModule, never>;
|
|
61
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialDesignFrameworkModule, [typeof i1.FlexLayoutRootComponent, typeof i2.FlexLayoutSectionComponent, typeof i3.MaterialAddReferenceComponent, typeof i4.MaterialOneOfComponent, typeof i5.MaterialButtonComponent, typeof i6.MaterialButtonGroupComponent, typeof i7.MaterialCheckboxComponent, typeof i8.MaterialCheckboxesComponent, typeof i9.MaterialChipListComponent, typeof i10.MaterialDatepickerComponent, typeof i11.MaterialFileComponent, typeof i12.MaterialInputComponent, typeof i13.MaterialNumberComponent, typeof i14.MaterialRadiosComponent, typeof i15.MaterialSelectComponent, typeof i16.MaterialSliderComponent, typeof i17.MaterialStepperComponent, typeof i18.MaterialTabsComponent, typeof i19.MaterialTextareaComponent, typeof i20.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
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialDesignFrameworkModule, [typeof i1.FlexLayoutRootComponent, typeof i2.FlexLayoutSectionComponent, typeof i3.MaterialAddReferenceComponent, typeof i4.MaterialOneOfComponent, typeof i5.MaterialButtonComponent, typeof i6.MaterialButtonGroupComponent, typeof i7.MaterialCheckboxComponent, typeof i8.MaterialCheckboxesComponent, typeof i9.MaterialChipListComponent, typeof i10.MaterialDatepickerComponent, typeof i11.MaterialFileComponent, typeof i12.MaterialInputComponent, typeof i13.MaterialNumberComponent, typeof i14.MaterialRadiosComponent, typeof i15.MaterialSelectComponent, typeof i16.MaterialSliderComponent, typeof i17.MaterialStepperComponent, typeof i18.MaterialTabsComponent, typeof i19.MaterialTextareaComponent, typeof i20.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 i1.FlexLayoutRootComponent, typeof i2.FlexLayoutSectionComponent, typeof i3.MaterialAddReferenceComponent, typeof i4.MaterialOneOfComponent, typeof i5.MaterialButtonComponent, typeof i6.MaterialButtonGroupComponent, typeof i7.MaterialCheckboxComponent, typeof i8.MaterialCheckboxesComponent, typeof i9.MaterialChipListComponent, typeof i10.MaterialDatepickerComponent, typeof i11.MaterialFileComponent, typeof i12.MaterialInputComponent, typeof i13.MaterialNumberComponent, typeof i14.MaterialRadiosComponent, typeof i15.MaterialSelectComponent, typeof i16.MaterialSliderComponent, typeof i17.MaterialStepperComponent, typeof i18.MaterialTabsComponent, typeof i19.MaterialTextareaComponent, typeof i20.MaterialDesignFrameworkComponent]>;
|
|
62
61
|
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialDesignFrameworkModule>;
|
|
63
62
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
2
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FlexLayoutRootComponent implements OnInit {
|
|
4
|
+
export declare class FlexLayoutRootComponent implements OnInit, OnDestroy, OnChanges {
|
|
5
5
|
private jsf;
|
|
6
6
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
7
7
|
readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
|
|
8
8
|
readonly layout: import("@angular/core").InputSignal<any[]>;
|
|
9
|
+
readonly isOrderable: import("@angular/core").InputSignal<boolean>;
|
|
9
10
|
readonly isFlexItem: import("@angular/core").InputSignal<boolean>;
|
|
11
|
+
readonly memoizationEnabled: import("@angular/core").InputSignal<boolean>;
|
|
10
12
|
ngOnInit(): void;
|
|
11
13
|
removeItem(item: any): void;
|
|
12
|
-
sortableObj: any;
|
|
13
|
-
sortableConfig: any;
|
|
14
|
-
sortableInit(sortable: any): void;
|
|
15
14
|
drop(event: CdkDragDrop<string[]>): void;
|
|
15
|
+
isDraggable(node: any): boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Predicate function that disallows '$ref' item sorts
|
|
18
18
|
* NB declared as a var instead of a function
|
|
@@ -22,7 +22,17 @@ export declare class FlexLayoutRootComponent implements OnInit {
|
|
|
22
22
|
*/
|
|
23
23
|
sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
|
|
24
24
|
getFlexAttribute(node: any, attribute: string): any;
|
|
25
|
+
private _getSelectFrameworkInputsRaw;
|
|
26
|
+
private _getSelectFrameworkInputsMemoized;
|
|
27
|
+
getSelectFrameworkInputs(layoutItem: any, i: number): {
|
|
28
|
+
layoutNode: any;
|
|
29
|
+
layoutIndex: number[];
|
|
30
|
+
dataIndex: number[];
|
|
31
|
+
};
|
|
32
|
+
trackByFn(index: number, item: any): any;
|
|
25
33
|
showWidget(layoutNode: any): boolean;
|
|
34
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
35
|
+
ngOnDestroy(): void;
|
|
26
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<FlexLayoutRootComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵ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>;
|
|
37
|
+
static ɵcmp: i0.ɵɵ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>;
|
|
28
38
|
}
|
|
@@ -10,14 +10,13 @@ export declare class MaterialInputComponent implements OnInit, OnDestroy {
|
|
|
10
10
|
controlDisabled: boolean;
|
|
11
11
|
boundControl: boolean;
|
|
12
12
|
options: any;
|
|
13
|
+
layoutNodeRef: any;
|
|
13
14
|
autoCompleteList: string[];
|
|
14
15
|
readonly layoutNode: import("@angular/core").InputSignal<any>;
|
|
15
16
|
readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
|
|
16
17
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
17
18
|
readonly input: import("@angular/core").Signal<ElementRef<any>>;
|
|
18
19
|
get inputAttributes(): any;
|
|
19
|
-
onMouseDown(e: any): void;
|
|
20
|
-
onTouchStart(e: any): void;
|
|
21
20
|
ngOnInit(): void;
|
|
22
21
|
updateValue(event: any): void;
|
|
23
22
|
ngOnDestroy(): void;
|
|
@@ -18,8 +18,6 @@ export declare class MaterialNumberComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
|
|
19
19
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
20
20
|
get inputAttributes(): any;
|
|
21
|
-
onMouseDown(e: any): void;
|
|
22
|
-
onTouchStart(e: any): void;
|
|
23
21
|
ngOnInit(): void;
|
|
24
22
|
updateValue(event: any): void;
|
|
25
23
|
ngOnDestroy(): void;
|
|
@@ -17,8 +17,6 @@ export declare class MaterialSliderComponent implements OnInit, OnDestroy {
|
|
|
17
17
|
readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
|
|
18
18
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
19
19
|
get inputAttributes(): any;
|
|
20
|
-
onMouseDown(e: any): void;
|
|
21
|
-
onTouchStart(e: any): void;
|
|
22
20
|
ngOnInit(): void;
|
|
23
21
|
updateValue(event: any): void;
|
|
24
22
|
ngOnDestroy(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-formworks/material",
|
|
3
|
-
"version": "17.6.
|
|
3
|
+
"version": "17.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": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"private": false,
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"lodash-es": "~4.17.21",
|
|
41
|
-
"@ng-formworks/core": "~17.6.
|
|
42
|
-
"@ng-formworks/cssframework": "~17.6.
|
|
41
|
+
"@ng-formworks/core": "~17.6.7",
|
|
42
|
+
"@ng-formworks/cssframework": "~17.6.7",
|
|
43
43
|
"tslib": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|