@masterteam/workspace-builder 0.0.13 → 0.0.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/workspace-builder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/workspace-builder",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tailwindcss": "^4.2.2",
|
|
21
21
|
"tailwindcss-primeui": "^0.6.1",
|
|
22
22
|
"@ngxs/store": "^20.1.0",
|
|
23
|
-
"@masterteam/components": "^0.0.
|
|
23
|
+
"@masterteam/components": "^0.0.183"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"exports": {
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { ToastService } from '@masterteam/components/toast';
|
|
4
3
|
import * as rxjs from 'rxjs';
|
|
5
4
|
import * as _masterteam_workspace_builder from '@masterteam/workspace-builder';
|
|
6
5
|
import { StateContext } from '@ngxs/store';
|
|
@@ -103,7 +102,12 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
103
102
|
private dragCleanupTimer;
|
|
104
103
|
private scrollAnimFrame;
|
|
105
104
|
private scrollContainer;
|
|
106
|
-
private
|
|
105
|
+
private scrollVelocity;
|
|
106
|
+
private lastDragClientY;
|
|
107
|
+
private documentDragOverHandler;
|
|
108
|
+
private documentDragEndHandler;
|
|
109
|
+
private readonly EDGE_SCROLL_ZONE;
|
|
110
|
+
private readonly EDGE_SCROLL_MAX_SPEED;
|
|
107
111
|
private autoSaveInFlight;
|
|
108
112
|
private autoSaveQueued;
|
|
109
113
|
private autoSaveQueuedNotifySuccess;
|
|
@@ -111,7 +115,6 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
111
115
|
private readonly confirmationService;
|
|
112
116
|
private readonly modal;
|
|
113
117
|
private readonly transloco;
|
|
114
|
-
ts: ToastService;
|
|
115
118
|
readonly layout: _angular_core.Signal<WorkspaceBuilderLayoutDto>;
|
|
116
119
|
readonly validationErrors: _angular_core.Signal<string[]>;
|
|
117
120
|
readonly isLoadingLayout: _angular_core.Signal<boolean>;
|
|
@@ -137,6 +140,7 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
137
140
|
isGroupDropSlotDisabled(area: WorkspaceArea, groupId: string, index: number): boolean;
|
|
138
141
|
onNativeAreaDrop(event: DragEvent, area: WorkspaceArea): void;
|
|
139
142
|
onNativeGroupDrop(event: DragEvent, area: WorkspaceArea, groupId: string): void;
|
|
143
|
+
onGroupContainerDrop(event: unknown, area: WorkspaceArea, groupId: string): void;
|
|
140
144
|
onNativeGroupModuleDrop(event: DragEvent, area: WorkspaceArea, groupId: string, moduleIndex: number): void;
|
|
141
145
|
openCreateGroupDialog(_area?: WorkspaceArea): void;
|
|
142
146
|
startRenameGroup(group: WorkspaceGroupItem): void;
|
|
@@ -154,7 +158,9 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
154
158
|
private beginDragSession;
|
|
155
159
|
onAreaBodyDragOver(event: DragEvent): void;
|
|
156
160
|
onAreaBodyDragLeave(event: DragEvent): void;
|
|
157
|
-
private
|
|
161
|
+
private attachDocumentDragListeners;
|
|
162
|
+
private detachDocumentDragListeners;
|
|
163
|
+
private evaluateEdgeScroll;
|
|
158
164
|
private runEdgeScroll;
|
|
159
165
|
private stopEdgeScroll;
|
|
160
166
|
private endDragSession;
|
|
@@ -166,6 +172,7 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
166
172
|
private unwrapEvent;
|
|
167
173
|
private resolveAreaDropIndex;
|
|
168
174
|
private resolveSiblingDropIndex;
|
|
175
|
+
private resolveGroupModuleDropIndex;
|
|
169
176
|
private getTopLevelItemElement;
|
|
170
177
|
private moveGroups;
|
|
171
178
|
private moveModules;
|
|
@@ -175,8 +182,6 @@ declare class WorkspaceBuilder implements OnDestroy {
|
|
|
175
182
|
private getAllGroups;
|
|
176
183
|
private cloneLayout;
|
|
177
184
|
private cloneItem;
|
|
178
|
-
private getSuccessMessage;
|
|
179
|
-
private getErrorMessage;
|
|
180
185
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkspaceBuilder, never>;
|
|
181
186
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkspaceBuilder, "mt-workspace-builder", never, { "levelId": { "alias": "levelId"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "autoSave": { "alias": "autoSave"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
182
187
|
}
|