@ng-formworks/core 19.6.6 → 19.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-core.mjs +485 -327
- package/fesm2022/ng-formworks-core.mjs.map +1 -1
- package/lib/json-schema-form.service.d.ts +0 -3
- package/lib/shared/validator.functions.d.ts +1 -1
- package/lib/widget-library/index.d.ts +1 -0
- package/lib/widget-library/root.component.d.ts +25 -7
- package/lib/widget-library/select-framework.component.d.ts +2 -1
- package/lib/widget-library/select-widget.component.d.ts +2 -2
- package/lib/widget-library/stop-propagation.directive.d.ts +13 -0
- package/lib/widget-library/widget-library.module.d.ts +5 -4
- package/package.json +3 -4
|
@@ -74,9 +74,6 @@ export declare class JsonSchemaFormService implements OnDestroy {
|
|
|
74
74
|
private draggableStateSubject;
|
|
75
75
|
draggableState$: import("rxjs").Observable<boolean>;
|
|
76
76
|
setDraggableState(value: boolean): void;
|
|
77
|
-
private sortableOptionsSubject;
|
|
78
|
-
sortableOptions$: import("rxjs").Observable<any>;
|
|
79
|
-
setSortableOptions(value: any): void;
|
|
80
77
|
createAjvInstance(ajvOptions: any): Ajv2019;
|
|
81
78
|
createAndRegisterAjvInstance(ajvOptions: any, name?: string): {
|
|
82
79
|
name: string;
|
|
@@ -199,7 +199,7 @@ export declare function isSymbol(item: any): boolean;
|
|
|
199
199
|
* // { any = false } strict - if truthy, also checks JavaScript tyoe
|
|
200
200
|
* // { SchemaType }
|
|
201
201
|
*/
|
|
202
|
-
export declare function getType(value: any, strict?: any): "
|
|
202
|
+
export declare function getType(value: any, strict?: any): "array" | "integer" | "boolean" | "null" | "number" | "object" | "string";
|
|
203
203
|
/**
|
|
204
204
|
* 'isType' function
|
|
205
205
|
*
|
|
@@ -21,6 +21,7 @@ export { SelectFrameworkComponent } from './select-framework.component';
|
|
|
21
21
|
export { SelectWidgetComponent } from './select-widget.component';
|
|
22
22
|
export { SelectComponent } from './select.component';
|
|
23
23
|
export { SelectCheckboxComponent } from './selectcheckbox.component';
|
|
24
|
+
export { StopPropagationDirective } from './stop-propagation.directive';
|
|
24
25
|
export { SubmitComponent } from './submit.component';
|
|
25
26
|
export { TabComponent } from './tab.component';
|
|
26
27
|
export { TabsComponent } from './tabs.component';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CdkDrag, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RootComponent implements OnInit, OnDestroy {
|
|
5
|
+
export declare class RootComponent implements OnInit, OnDestroy, OnChanges {
|
|
4
6
|
private jsf;
|
|
5
7
|
options: any;
|
|
6
8
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
@@ -8,16 +10,32 @@ export declare class RootComponent implements OnInit, OnDestroy {
|
|
|
8
10
|
readonly layout: import("@angular/core").InputSignal<any[]>;
|
|
9
11
|
readonly isOrderable: import("@angular/core").InputSignal<boolean>;
|
|
10
12
|
readonly isFlexItem: import("@angular/core").InputSignal<boolean>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
sortableInit(sortable: any): void;
|
|
13
|
+
readonly memoizationEnabled: import("@angular/core").InputSignal<boolean>;
|
|
14
|
+
dataChangesSubs: Subscription;
|
|
15
|
+
drop(event: CdkDragDrop<string[]>): void;
|
|
15
16
|
isDraggable(node: any): boolean;
|
|
16
17
|
isFixed(node: any): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Predicate function that disallows '$ref' item sorts
|
|
20
|
+
* NB declared as a var instead of a function
|
|
21
|
+
* like sortPredicate(index: number, item: CdkDrag<number>){..}
|
|
22
|
+
* since 'this' is bound to the draglist and doesn't reference the
|
|
23
|
+
* FlexLayoutRootComponent instance
|
|
24
|
+
*/
|
|
25
|
+
sortPredicate: (index: number, item: CdkDrag<number>) => boolean;
|
|
17
26
|
getFlexAttribute(node: any, attribute: string): any;
|
|
27
|
+
private _getSelectFrameworkInputsRaw;
|
|
28
|
+
private _getSelectFrameworkInputsMemoized;
|
|
29
|
+
getSelectFrameworkInputs(layoutItem: any, i: number): {
|
|
30
|
+
layoutNode: any;
|
|
31
|
+
layoutIndex: number[];
|
|
32
|
+
dataIndex: number[];
|
|
33
|
+
};
|
|
34
|
+
trackByFn(index: number, item: any): any;
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
36
|
showWidget(layoutNode: any): boolean;
|
|
19
37
|
ngOnInit(): void;
|
|
20
38
|
ngOnDestroy(): void;
|
|
21
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<RootComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "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; }; }, {}, never, never, false, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "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>;
|
|
23
41
|
}
|
|
@@ -2,13 +2,14 @@ import { ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SelectFrameworkComponent implements OnChanges, OnInit {
|
|
4
4
|
private jsf;
|
|
5
|
+
private changeDetectorRef;
|
|
5
6
|
newComponent: ComponentRef<any>;
|
|
6
7
|
readonly layoutNode: import("@angular/core").InputSignal<any>;
|
|
7
8
|
readonly layoutIndex: import("@angular/core").InputSignal<number[]>;
|
|
8
9
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
9
10
|
readonly widgetContainer: import("@angular/core").Signal<ViewContainerRef>;
|
|
10
11
|
ngOnInit(): void;
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
+
ngOnChanges(changes: any): void;
|
|
12
13
|
updateComponent(): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFrameworkComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFrameworkComponent, "select-framework-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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { ComponentRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SelectWidgetComponent implements OnChanges, OnInit {
|
|
4
4
|
private jsf;
|
|
@@ -8,7 +8,7 @@ export declare class SelectWidgetComponent implements OnChanges, OnInit {
|
|
|
8
8
|
readonly dataIndex: import("@angular/core").InputSignal<number[]>;
|
|
9
9
|
readonly widgetContainer: import("@angular/core").Signal<ViewContainerRef>;
|
|
10
10
|
ngOnInit(): void;
|
|
11
|
-
ngOnChanges(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
12
|
updateComponent(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectWidgetComponent, never>;
|
|
14
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectWidgetComponent, "select-widget-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>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StopPropagationDirective implements OnInit, OnDestroy {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
events: string[];
|
|
7
|
+
private unsubscribeFunctions;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StopPropagationDirective, "[appStopPropagation]", never, { "events": { "alias": "appStopPropagation"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -24,11 +24,12 @@ import * as i22 from "./textarea.component";
|
|
|
24
24
|
import * as i23 from "./selectcheckbox.component";
|
|
25
25
|
import * as i24 from "./orderable.directive";
|
|
26
26
|
import * as i25 from "./element-attribute.directive";
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "@angular/
|
|
29
|
-
import * as i28 from "
|
|
27
|
+
import * as i26 from "./stop-propagation.directive";
|
|
28
|
+
import * as i27 from "@angular/common";
|
|
29
|
+
import * as i28 from "@angular/forms";
|
|
30
|
+
import * as i29 from "@angular/cdk/drag-drop";
|
|
30
31
|
export declare class WidgetLibraryModule {
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetLibraryModule, never>;
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetLibraryModule, [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.SelectCheckboxComponent, typeof i24.OrderableDirective, typeof i25.ElementAttributeDirective], [typeof
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetLibraryModule, [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.SelectCheckboxComponent, typeof i24.OrderableDirective, typeof i25.ElementAttributeDirective, typeof i26.StopPropagationDirective], [typeof i27.CommonModule, typeof i28.FormsModule, typeof i28.ReactiveFormsModule, typeof i29.DragDropModule], [typeof i1.AddReferenceComponent, typeof i2.OneOfComponent, typeof i3.ButtonComponent, typeof i4.CheckboxComponent, typeof i5.CheckboxesComponent, typeof i6.FileComponent, typeof i7.HiddenComponent, typeof i8.InputComponent, typeof i9.MessageComponent, typeof i10.NoneComponent, typeof i11.NumberComponent, typeof i12.RadiosComponent, typeof i13.RootComponent, typeof i14.SectionComponent, typeof i15.SelectComponent, typeof i16.SelectFrameworkComponent, typeof i17.SelectWidgetComponent, typeof i18.SubmitComponent, typeof i19.TabComponent, typeof i20.TabsComponent, typeof i21.TemplateComponent, typeof i22.TextareaComponent, typeof i23.SelectCheckboxComponent, typeof i24.OrderableDirective, typeof i25.ElementAttributeDirective, typeof i26.StopPropagationDirective]>;
|
|
33
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<WidgetLibraryModule>;
|
|
34
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-formworks/core",
|
|
3
|
-
"version": "19.6.
|
|
3
|
+
"version": "19.6.7",
|
|
4
4
|
"description": "Angular ng-formworks - JSON Schema Form builder core",
|
|
5
5
|
"author": "https://github.com/zahmo/ng-formworks/graphs/contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -43,11 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"lodash-es": "~4.17.21",
|
|
45
45
|
"ajv": "^8.12.0",
|
|
46
|
-
"tslib": "^2.7.0"
|
|
47
|
-
"nxt-sortablejs": "^19.0.4",
|
|
48
|
-
"sortablejs": "^1.15.6"
|
|
46
|
+
"tslib": "^2.7.0"
|
|
49
47
|
},
|
|
50
48
|
"peerDependencies": {
|
|
49
|
+
"@angular/cdk": ">=19.0.0",
|
|
51
50
|
"@angular/common": ">=19.0.0",
|
|
52
51
|
"@angular/core": ">=19.0.0",
|
|
53
52
|
"@angular/forms": ">=19.0.0",
|