@acorex/components 19.1.0-next.2 → 19.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/action-sheet/lib/action-sheet.class.d.ts +10 -0
- package/action-sheet/lib/action-sheet.component.d.ts +22 -3
- package/action-sheet/lib/action-sheet.service.d.ts +5 -2
- package/fesm2022/acorex-components-action-sheet.mjs +225 -67
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +2 -2
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +267 -0
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -0
- package/fesm2022/acorex-components-map.mjs +0 -1
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/grid-layout-builder/README.md +3 -0
- package/grid-layout-builder/index.d.ts +4 -0
- package/grid-layout-builder/lib/grid-layout-builder.module.d.ts +9 -0
- package/grid-layout-builder/lib/grid-layout-container.component.d.ts +51 -0
- package/grid-layout-builder/lib/grid-layout-widget.component.d.ts +12 -0
- package/grid-layout-builder/lib/types.d.ts +33 -0
- package/package.json +7 -2
@@ -0,0 +1,51 @@
|
|
1
|
+
import { AXGridLayout, AXGridLayoutDroppedEvent, AXGridLayoutElementEvent, AXGridLayoutEventEvent, AXGridLayoutNode, AXGridLayoutNodesEvent, AXGridLayoutOptions, AXGridLayoutWidget, AXGridLayoutWidgetCompElement, AXSaveCallback } from './types';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXGridLayoutContainerComponent {
|
4
|
+
private items;
|
5
|
+
options: import("@angular/core").InputSignal<import("gridstack").GridStackOptions>;
|
6
|
+
private calcOptions;
|
7
|
+
private readonly elementRef;
|
8
|
+
private ngZone;
|
9
|
+
private grid;
|
10
|
+
private loaded?;
|
11
|
+
private el;
|
12
|
+
protected onAdded: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
13
|
+
protected onChange: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
14
|
+
protected onDisable: import("@angular/core").OutputEmitterRef<AXGridLayoutEventEvent>;
|
15
|
+
protected onDrag: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
16
|
+
protected onDragStart: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
17
|
+
protected onDragStop: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
18
|
+
protected onDropped: import("@angular/core").OutputEmitterRef<AXGridLayoutDroppedEvent>;
|
19
|
+
protected onEnable: import("@angular/core").OutputEmitterRef<AXGridLayoutEventEvent>;
|
20
|
+
protected onRemoved: import("@angular/core").OutputEmitterRef<AXGridLayoutNodesEvent>;
|
21
|
+
protected onResize: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
22
|
+
protected onResizeStart: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
23
|
+
protected onResizeStop: import("@angular/core").OutputEmitterRef<AXGridLayoutElementEvent>;
|
24
|
+
protected isRendered: import("@angular/core").OutputEmitterRef<boolean>;
|
25
|
+
protected isEmpty: import("@angular/core").ModelSignal<boolean>;
|
26
|
+
constructor();
|
27
|
+
protected ngOnInit(): Promise<void>;
|
28
|
+
protected ngOnDestroy(): void;
|
29
|
+
private gridChange;
|
30
|
+
private childChange;
|
31
|
+
private updateAll;
|
32
|
+
private checkEmpty;
|
33
|
+
private hookEvents;
|
34
|
+
private unhookEvents;
|
35
|
+
add(item: AXGridLayoutWidget, withAutoArrange?: boolean): AXGridLayoutNode;
|
36
|
+
remove(element: AXGridLayoutWidgetCompElement): AXGridLayout;
|
37
|
+
clear(): AXGridLayout;
|
38
|
+
private serializedData?;
|
39
|
+
save(saveContent?: boolean, saveGridOpt?: boolean, saveCallback?: AXSaveCallback): AXGridLayoutOptions;
|
40
|
+
load(serializedData?: AXGridLayoutOptions, cleanBeforeLoad?: boolean): Promise<AXGridLayout>;
|
41
|
+
autoArrange(): void;
|
42
|
+
setlockable(state: boolean, recurse?: boolean): void;
|
43
|
+
setResizable(state: boolean, recurse?: boolean): void;
|
44
|
+
getChildren(): AXGridLayoutNode[];
|
45
|
+
setupDraggable(dragIn?: string | HTMLElement[], widgets?: AXGridLayoutWidget): Promise<void>;
|
46
|
+
setOption(options: AXGridLayoutOptions): void;
|
47
|
+
rotate(element: AXGridLayoutWidgetCompElement): void;
|
48
|
+
setColumn(count: number): void;
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutContainerComponent, never>;
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutContainerComponent, "ax-grid-layout-container", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "isEmpty": { "alias": "isEmpty"; "required": false; "isSignal": true; }; }, { "onAdded": "onAdded"; "onChange": "onChange"; "onDisable": "onDisable"; "onDrag": "onDrag"; "onDragStart": "onDragStart"; "onDragStop": "onDragStop"; "onDropped": "onDropped"; "onEnable": "onEnable"; "onRemoved": "onRemoved"; "onResize": "onResize"; "onResizeStart": "onResizeStart"; "onResizeStop": "onResizeStop"; "isRendered": "isRendered"; "isEmpty": "isEmptyChange"; }, ["items"], ["*"], false, never>;
|
51
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AXGridLayoutWidgetCompElement } from './types';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class AXGridLayoutWidgetComponent {
|
4
|
+
private readonly elementRef;
|
5
|
+
el: AXGridLayoutWidgetCompElement;
|
6
|
+
private _options?;
|
7
|
+
options: import("@angular/core").InputSignalWithTransform<import("gridstack").GridStackNode, import("gridstack").GridStackNode>;
|
8
|
+
clearOptions(): void;
|
9
|
+
constructor();
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXGridLayoutWidgetComponent, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXGridLayoutWidgetComponent, "ax-grid-layout-widget", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
|
12
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { AXGridLayoutContainerComponent } from './grid-layout-container.component';
|
2
|
+
import { AXGridLayoutWidgetComponent } from './grid-layout-widget.component';
|
3
|
+
export type AXGridLayoutNode = import('gridstack').GridStackNode;
|
4
|
+
export type AXGridLayout = import('gridstack').GridStack;
|
5
|
+
export type AXGridLayoutOptions = import('gridstack').GridStackOptions;
|
6
|
+
export type AXGridLayoutWidget = import('gridstack').GridStackWidget & {
|
7
|
+
data?: any;
|
8
|
+
};
|
9
|
+
export type AXGridLayoutContainerElement = import('gridstack').GridHTMLElement;
|
10
|
+
export type AXGridLayoutWidgetElement = import('gridstack').GridItemHTMLElement;
|
11
|
+
export type AXGridLayoutEventEvent = {
|
12
|
+
event: Event;
|
13
|
+
};
|
14
|
+
export type AXGridLayoutElementEvent = {
|
15
|
+
event: Event;
|
16
|
+
el: AXGridLayoutWidgetElement;
|
17
|
+
};
|
18
|
+
export type AXGridLayoutNodesEvent = {
|
19
|
+
event: Event;
|
20
|
+
nodes: AXGridLayoutNode[];
|
21
|
+
};
|
22
|
+
export type AXGridLayoutDroppedEvent = {
|
23
|
+
event: Event;
|
24
|
+
previousNode: AXGridLayoutNode;
|
25
|
+
newNode: AXGridLayoutNode;
|
26
|
+
};
|
27
|
+
export interface AXGridLayoutContainerCompElement extends AXGridLayoutContainerElement {
|
28
|
+
_gridComp?: AXGridLayoutContainerComponent;
|
29
|
+
}
|
30
|
+
export interface AXGridLayoutWidgetCompElement extends AXGridLayoutWidgetElement {
|
31
|
+
_gridWidgetComp?: AXGridLayoutWidgetComponent;
|
32
|
+
}
|
33
|
+
export type AXSaveCallback = import('gridstack').SaveFcn;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@acorex/components",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.2.0",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": ">=19.0.0",
|
6
6
|
"@angular/core": ">=19.0.0",
|
@@ -8,7 +8,8 @@
|
|
8
8
|
"polytype": ">=0.17.0",
|
9
9
|
"imask": ">=7.6.1",
|
10
10
|
"angular-imask": ">=7.6.1",
|
11
|
-
"qrcode": "^1.5.4"
|
11
|
+
"qrcode": "^1.5.4",
|
12
|
+
"gridstack": "^11.1.2"
|
12
13
|
},
|
13
14
|
"dependencies": {
|
14
15
|
"tslib": "^2.3.0"
|
@@ -148,6 +149,10 @@
|
|
148
149
|
"types": "./form/index.d.ts",
|
149
150
|
"default": "./fesm2022/acorex-components-form.mjs"
|
150
151
|
},
|
152
|
+
"./grid-layout-builder": {
|
153
|
+
"types": "./grid-layout-builder/index.d.ts",
|
154
|
+
"default": "./fesm2022/acorex-components-grid-layout-builder.mjs"
|
155
|
+
},
|
151
156
|
"./image": {
|
152
157
|
"types": "./image/index.d.ts",
|
153
158
|
"default": "./fesm2022/acorex-components-image.mjs"
|