@memberjunction/ng-dashboard-viewer 6.1.4 → 6.2.0-edge.1
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/dist/lib/config-dialogs/confirm-dialog.component.d.ts +58 -8
- package/dist/lib/config-dialogs/confirm-dialog.component.d.ts.map +1 -1
- package/dist/lib/config-dialogs/confirm-dialog.component.js +119 -17
- package/dist/lib/config-dialogs/confirm-dialog.component.js.map +1 -1
- package/dist/lib/config-panels/artifact-config-panel.component.d.ts +63 -11
- package/dist/lib/config-panels/artifact-config-panel.component.d.ts.map +1 -1
- package/dist/lib/config-panels/artifact-config-panel.component.js +152 -48
- package/dist/lib/config-panels/artifact-config-panel.component.js.map +1 -1
- package/dist/lib/config-panels/query-config-panel.component.d.ts +57 -9
- package/dist/lib/config-panels/query-config-panel.component.d.ts.map +1 -1
- package/dist/lib/config-panels/query-config-panel.component.js +142 -46
- package/dist/lib/config-panels/query-config-panel.component.js.map +1 -1
- package/dist/lib/config-panels/view-config-panel.component.d.ts +69 -11
- package/dist/lib/config-panels/view-config-panel.component.d.ts.map +1 -1
- package/dist/lib/config-panels/view-config-panel.component.js +165 -49
- package/dist/lib/config-panels/view-config-panel.component.js.map +1 -1
- package/dist/lib/config-panels/weburl-config-panel.component.d.ts +42 -6
- package/dist/lib/config-panels/weburl-config-panel.component.d.ts.map +1 -1
- package/dist/lib/config-panels/weburl-config-panel.component.js +113 -41
- package/dist/lib/config-panels/weburl-config-panel.component.js.map +1 -1
- package/dist/lib/dashboard-browser/dashboard-browser.component.d.ts.map +1 -1
- package/dist/lib/dashboard-browser/dashboard-browser.component.js +7 -4
- package/dist/lib/dashboard-browser/dashboard-browser.component.js.map +1 -1
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts +163 -12
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.d.ts.map +1 -1
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.js +332 -78
- package/dist/lib/dashboard-viewer/dashboard-viewer.component.js.map +1 -1
- package/dist/lib/dialogs/add-panel-dialog/add-panel-dialog.component.d.ts +63 -9
- package/dist/lib/dialogs/add-panel-dialog/add-panel-dialog.component.d.ts.map +1 -1
- package/dist/lib/dialogs/add-panel-dialog/add-panel-dialog.component.js +172 -66
- package/dist/lib/dialogs/add-panel-dialog/add-panel-dialog.component.js.map +1 -1
- package/dist/lib/dialogs/edit-part-dialog/edit-part-dialog.component.d.ts +11 -1
- package/dist/lib/dialogs/edit-part-dialog/edit-part-dialog.component.d.ts.map +1 -1
- package/dist/lib/dialogs/edit-part-dialog/edit-part-dialog.component.js +30 -10
- package/dist/lib/dialogs/edit-part-dialog/edit-part-dialog.component.js.map +1 -1
- package/dist/lib/models/dashboard-types.d.ts +8 -0
- package/dist/lib/models/dashboard-types.d.ts.map +1 -1
- package/dist/lib/models/dashboard-types.js +21 -5
- package/dist/lib/models/dashboard-types.js.map +1 -1
- package/dist/lib/parts/artifact-part.component.d.ts +63 -7
- package/dist/lib/parts/artifact-part.component.d.ts.map +1 -1
- package/dist/lib/parts/artifact-part.component.js +98 -22
- package/dist/lib/parts/artifact-part.component.js.map +1 -1
- package/dist/lib/parts/query-part.component.d.ts +26 -4
- package/dist/lib/parts/query-part.component.d.ts.map +1 -1
- package/dist/lib/parts/query-part.component.js +62 -18
- package/dist/lib/parts/query-part.component.js.map +1 -1
- package/dist/lib/parts/view-part.component.d.ts +21 -3
- package/dist/lib/parts/view-part.component.d.ts.map +1 -1
- package/dist/lib/parts/view-part.component.js +55 -19
- package/dist/lib/parts/view-part.component.js.map +1 -1
- package/dist/lib/parts/weburl-part.component.d.ts +29 -5
- package/dist/lib/parts/weburl-part.component.d.ts.map +1 -1
- package/dist/lib/parts/weburl-part.component.js +63 -15
- package/dist/lib/parts/weburl-part.component.js.map +1 -1
- package/dist/lib/services/golden-layout-wrapper.service.d.ts +65 -5
- package/dist/lib/services/golden-layout-wrapper.service.d.ts.map +1 -1
- package/dist/lib/services/golden-layout-wrapper.service.js +135 -27
- package/dist/lib/services/golden-layout-wrapper.service.js.map +1 -1
- package/package.json +13 -13
|
@@ -33,19 +33,47 @@ export declare class GoldenLayoutWrapperService {
|
|
|
33
33
|
/** Tracks which panels have been lazily loaded (content created) */
|
|
34
34
|
private _loadedPanels;
|
|
35
35
|
/** Emitted when layout configuration changes */
|
|
36
|
-
|
|
36
|
+
OnLayoutChanged: Subject<LayoutChangedEvent>;
|
|
37
|
+
/** @deprecated Use {@link OnLayoutChanged}. */
|
|
38
|
+
get onLayoutChanged(): Subject<LayoutChangedEvent>;
|
|
39
|
+
/** @deprecated Use {@link OnLayoutChanged}. */
|
|
40
|
+
set onLayoutChanged(value: Subject<LayoutChangedEvent>);
|
|
37
41
|
/** Emitted when a panel is closed */
|
|
38
|
-
|
|
42
|
+
OnPanelClosed: Subject<string>;
|
|
43
|
+
/** @deprecated Use {@link OnPanelClosed}. */
|
|
44
|
+
get onPanelClosed(): Subject<string>;
|
|
45
|
+
/** @deprecated Use {@link OnPanelClosed}. */
|
|
46
|
+
set onPanelClosed(value: Subject<string>);
|
|
39
47
|
/** Emitted when a panel is maximized/restored */
|
|
40
|
-
|
|
48
|
+
OnPanelMaximized: Subject<{
|
|
41
49
|
panelId: string;
|
|
42
50
|
maximized: boolean;
|
|
43
51
|
}>;
|
|
52
|
+
/** @deprecated Use {@link OnPanelMaximized}. */
|
|
53
|
+
get onPanelMaximized(): Subject<{
|
|
54
|
+
panelId: string;
|
|
55
|
+
maximized: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
/** @deprecated Use {@link OnPanelMaximized}. */
|
|
58
|
+
set onPanelMaximized(value: Subject<{
|
|
59
|
+
panelId: string;
|
|
60
|
+
maximized: boolean;
|
|
61
|
+
}>);
|
|
44
62
|
/** Emitted when a panel is selected (in a stack) */
|
|
45
|
-
|
|
63
|
+
OnPanelSelected: Subject<string>;
|
|
64
|
+
/** @deprecated Use {@link OnPanelSelected}. */
|
|
65
|
+
get onPanelSelected(): Subject<string>;
|
|
66
|
+
/** @deprecated Use {@link OnPanelSelected}. */
|
|
67
|
+
set onPanelSelected(value: Subject<string>);
|
|
46
68
|
/** Current panels in layout */
|
|
47
|
-
|
|
69
|
+
Panels$: BehaviorSubject<string[]>;
|
|
70
|
+
/** @deprecated Use {@link Panels$}. */
|
|
71
|
+
get panels$(): BehaviorSubject<string[]>;
|
|
72
|
+
/** @deprecated Use {@link Panels$}. */
|
|
73
|
+
set panels$(value: BehaviorSubject<string[]>);
|
|
48
74
|
/** Whether layout editing (drag/drop/resize/close) is enabled */
|
|
75
|
+
get IsEditing(): boolean;
|
|
76
|
+
/** @deprecated Use {@link IsEditing}. */
|
|
49
77
|
get isEditing(): boolean;
|
|
50
78
|
/**
|
|
51
79
|
* Initialize Golden Layout in the specified container.
|
|
@@ -54,6 +82,8 @@ export declare class GoldenLayoutWrapperService {
|
|
|
54
82
|
* @param componentFactory Factory function to create panel content
|
|
55
83
|
* @param isEditing Whether editing (drag/drop/resize/close) is enabled
|
|
56
84
|
*/
|
|
85
|
+
Initialize(container: HTMLElement, savedLayout: ResolvedLayoutConfig | null, componentFactory: PanelComponentFactory, isEditing?: boolean): void;
|
|
86
|
+
/** @deprecated Use {@link Initialize}. */
|
|
57
87
|
initialize(container: HTMLElement, savedLayout: ResolvedLayoutConfig | null, componentFactory: PanelComponentFactory, isEditing?: boolean): void;
|
|
58
88
|
/**
|
|
59
89
|
* Build LayoutConfig from saved ResolvedLayoutConfig.
|
|
@@ -73,6 +103,8 @@ export declare class GoldenLayoutWrapperService {
|
|
|
73
103
|
/**
|
|
74
104
|
* Update layout size to match container.
|
|
75
105
|
*/
|
|
106
|
+
UpdateSize(): void;
|
|
107
|
+
/** @deprecated Use {@link UpdateSize}. */
|
|
76
108
|
updateSize(): void;
|
|
77
109
|
/**
|
|
78
110
|
* Bind component event listener (called by Golden Layout VirtualLayout).
|
|
@@ -86,15 +118,21 @@ export declare class GoldenLayoutWrapperService {
|
|
|
86
118
|
/**
|
|
87
119
|
* Check if Golden Layout is initialized
|
|
88
120
|
*/
|
|
121
|
+
IsInitialized(): boolean;
|
|
122
|
+
/** @deprecated Use {@link IsInitialized}. */
|
|
89
123
|
isInitialized(): boolean;
|
|
90
124
|
/**
|
|
91
125
|
* Destroy Golden Layout and clean up
|
|
92
126
|
*/
|
|
127
|
+
Destroy(): void;
|
|
128
|
+
/** @deprecated Use {@link Destroy}. */
|
|
93
129
|
destroy(): void;
|
|
94
130
|
/**
|
|
95
131
|
* Add a panel to the layout.
|
|
96
132
|
* The full DashboardPanel is stored in componentState.
|
|
97
133
|
*/
|
|
134
|
+
AddPanel(panel: DashboardPanel, _location?: LayoutLocation): void;
|
|
135
|
+
/** @deprecated Use {@link AddPanel}. */
|
|
98
136
|
addPanel(panel: DashboardPanel, _location?: LayoutLocation): void;
|
|
99
137
|
/**
|
|
100
138
|
* Find first stack in layout
|
|
@@ -103,49 +141,71 @@ export declare class GoldenLayoutWrapperService {
|
|
|
103
141
|
/**
|
|
104
142
|
* Remove a panel from the layout
|
|
105
143
|
*/
|
|
144
|
+
RemovePanel(panelId: string): void;
|
|
145
|
+
/** @deprecated Use {@link RemovePanel}. */
|
|
106
146
|
removePanel(panelId: string): void;
|
|
107
147
|
/**
|
|
108
148
|
* Split a panel horizontally (add panel to the right)
|
|
109
149
|
*/
|
|
150
|
+
SplitHorizontal(panelId: string, newPanel: DashboardPanel): void;
|
|
151
|
+
/** @deprecated Use {@link SplitHorizontal}. */
|
|
110
152
|
splitHorizontal(panelId: string, newPanel: DashboardPanel): void;
|
|
111
153
|
/**
|
|
112
154
|
* Split a panel vertically (add panel below)
|
|
113
155
|
*/
|
|
156
|
+
SplitVertical(panelId: string, newPanel: DashboardPanel): void;
|
|
157
|
+
/** @deprecated Use {@link SplitVertical}. */
|
|
114
158
|
splitVertical(panelId: string, newPanel: DashboardPanel): void;
|
|
115
159
|
/**
|
|
116
160
|
* Add a panel as a tab to an existing stack
|
|
117
161
|
*/
|
|
162
|
+
AddToStack(panelId: string, newPanel: DashboardPanel): void;
|
|
163
|
+
/** @deprecated Use {@link AddToStack}. */
|
|
118
164
|
addToStack(panelId: string, newPanel: DashboardPanel): void;
|
|
119
165
|
/**
|
|
120
166
|
* Maximize a panel
|
|
121
167
|
*/
|
|
168
|
+
MaximizePanel(panelId: string): void;
|
|
169
|
+
/** @deprecated Use {@link MaximizePanel}. */
|
|
122
170
|
maximizePanel(panelId: string): void;
|
|
123
171
|
/**
|
|
124
172
|
* Restore a maximized panel
|
|
125
173
|
*/
|
|
174
|
+
RestorePanel(panelId: string): void;
|
|
175
|
+
/** @deprecated Use {@link RestorePanel}. */
|
|
126
176
|
restorePanel(panelId: string): void;
|
|
127
177
|
/**
|
|
128
178
|
* Focus a panel by ID
|
|
129
179
|
*/
|
|
180
|
+
FocusPanel(panelId: string): void;
|
|
181
|
+
/** @deprecated Use {@link FocusPanel}. */
|
|
130
182
|
focusPanel(panelId: string): void;
|
|
131
183
|
/**
|
|
132
184
|
* Get the current layout configuration.
|
|
133
185
|
* Returns GL's native ResolvedLayoutConfig - no conversion.
|
|
134
186
|
*/
|
|
187
|
+
GetLayoutConfig(): ResolvedLayoutConfig | null;
|
|
188
|
+
/** @deprecated Use {@link GetLayoutConfig}. */
|
|
135
189
|
getLayoutConfig(): ResolvedLayoutConfig | null;
|
|
136
190
|
/**
|
|
137
191
|
* Get the container element for a panel
|
|
138
192
|
*/
|
|
193
|
+
GetPanelContainer(panelId: string): HTMLElement | null;
|
|
194
|
+
/** @deprecated Use {@link GetPanelContainer}. */
|
|
139
195
|
getPanelContainer(panelId: string): HTMLElement | null;
|
|
140
196
|
/**
|
|
141
197
|
* Get all panel IDs in the current layout
|
|
142
198
|
*/
|
|
199
|
+
GetPanelIds(): string[];
|
|
200
|
+
/** @deprecated Use {@link GetPanelIds}. */
|
|
143
201
|
getPanelIds(): string[];
|
|
144
202
|
/**
|
|
145
203
|
* Set editing mode.
|
|
146
204
|
* Note: Golden Layout 2 doesn't support changing settings after initialization.
|
|
147
205
|
* The layout must be reinitialized to apply new settings.
|
|
148
206
|
*/
|
|
207
|
+
SetEditingMode(isEditing: boolean): void;
|
|
208
|
+
/** @deprecated Use {@link SetEditingMode}. */
|
|
149
209
|
setEditingMode(isEditing: boolean): void;
|
|
150
210
|
private updatePanelsList;
|
|
151
211
|
private emitLayoutChanged;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"golden-layout-wrapper.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/golden-layout-wrapper.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAEH,oBAAoB,EAKvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,cAAc,EACd,kBAAkB,EACrB,MAAM,2BAA2B,CAAC;;AAqBnC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;CAC1D;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;AAE5F;;;;;;GAMG;AACH,qBACa,0BAA0B;IACnC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,iBAAiB,CAAsC;IAC/D,OAAO,CAAC,aAAa,CAAyC;IAC9D,OAAO,CAAC,UAAU,CAAS;IAC3B,oEAAoE;IACpE,OAAO,CAAC,aAAa,CAAqB;IAE1C,gDAAgD;IACzC,eAAe,8BAAqC;IAE3D,qCAAqC;IAC9B,aAAa,kBAAyB;IAE7C,iDAAiD;IAC1C,gBAAgB;iBAA0B,MAAM;mBAAa,OAA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,IAAI;IAOxC;;;OAGG;IACI,eAAe,IAAI,oBAAoB,GAAG,IAAI;IAWrD;;OAEG;IACI,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAK7D;;OAEG;IACI,WAAW,IAAI,MAAM,EAAE;IAI9B;;;;OAIG;IACI,cAAc,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;IAUzB;;;;OAIG;IACH,OAAO,CAAC,YAAY;
|
|
1
|
+
{"version":3,"file":"golden-layout-wrapper.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/golden-layout-wrapper.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAEH,oBAAoB,EAKvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,cAAc,EACd,kBAAkB,EACrB,MAAM,2BAA2B,CAAC;;AAqBnC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;CAC1D;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;AAE5F;;;;;;GAMG;AACH,qBACa,0BAA0B;IACnC,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,OAAO,CAAgC;IAC/C,OAAO,CAAC,iBAAiB,CAA4B;IACrD,OAAO,CAAC,iBAAiB,CAAsC;IAC/D,OAAO,CAAC,aAAa,CAAyC;IAC9D,OAAO,CAAC,UAAU,CAAS;IAC3B,oEAAoE;IACpE,OAAO,CAAC,aAAa,CAAqB;IAE1C,gDAAgD;IACzC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lE;;OAEG;IACI,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3C,6CAA6C;IACtC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3C;;OAEG;IACI,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI1C,4CAA4C;IACrC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI1C;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAOxC,0CAA0C;IACnC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIxC;;;OAGG;IACI,eAAe,IAAI,oBAAoB,GAAG,IAAI;IAWrD,+CAA+C;IACxC,eAAe,IAAI,oBAAoB,GAAG,IAAI;IAIrD;;OAEG;IACI,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAK7D,iDAAiD;IAC1C,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI;IAI7D;;OAEG;IACI,WAAW,IAAI,MAAM,EAAE;IAI9B,2CAA2C;IACpC,WAAW,IAAI,MAAM,EAAE;IAI9B;;;;OAIG;IACI,cAAc,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAI/C,8CAA8C;IACvC,cAAc,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI;IAI/C,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;IAUzB;;;;OAIG;IACH,OAAO,CAAC,YAAY;yCAxlBX,0BAA0B;6CAA1B,0BAA0B;CAyoBtC"}
|
|
@@ -19,19 +19,63 @@ export class GoldenLayoutWrapperService {
|
|
|
19
19
|
/** Tracks which panels have been lazily loaded (content created) */
|
|
20
20
|
_loadedPanels = new Set();
|
|
21
21
|
/** Emitted when layout configuration changes */
|
|
22
|
-
|
|
22
|
+
OnLayoutChanged = new Subject();
|
|
23
|
+
/** @deprecated Use {@link OnLayoutChanged}. */
|
|
24
|
+
get onLayoutChanged() {
|
|
25
|
+
return this.OnLayoutChanged;
|
|
26
|
+
}
|
|
27
|
+
/** @deprecated Use {@link OnLayoutChanged}. */
|
|
28
|
+
set onLayoutChanged(value) {
|
|
29
|
+
this.OnLayoutChanged = value;
|
|
30
|
+
}
|
|
23
31
|
/** Emitted when a panel is closed */
|
|
24
|
-
|
|
32
|
+
OnPanelClosed = new Subject();
|
|
33
|
+
/** @deprecated Use {@link OnPanelClosed}. */
|
|
34
|
+
get onPanelClosed() {
|
|
35
|
+
return this.OnPanelClosed;
|
|
36
|
+
}
|
|
37
|
+
/** @deprecated Use {@link OnPanelClosed}. */
|
|
38
|
+
set onPanelClosed(value) {
|
|
39
|
+
this.OnPanelClosed = value;
|
|
40
|
+
}
|
|
25
41
|
/** Emitted when a panel is maximized/restored */
|
|
26
|
-
|
|
42
|
+
OnPanelMaximized = new Subject();
|
|
43
|
+
/** @deprecated Use {@link OnPanelMaximized}. */
|
|
44
|
+
get onPanelMaximized() {
|
|
45
|
+
return this.OnPanelMaximized;
|
|
46
|
+
}
|
|
47
|
+
/** @deprecated Use {@link OnPanelMaximized}. */
|
|
48
|
+
set onPanelMaximized(value) {
|
|
49
|
+
this.OnPanelMaximized = value;
|
|
50
|
+
}
|
|
27
51
|
/** Emitted when a panel is selected (in a stack) */
|
|
28
|
-
|
|
52
|
+
OnPanelSelected = new Subject();
|
|
53
|
+
/** @deprecated Use {@link OnPanelSelected}. */
|
|
54
|
+
get onPanelSelected() {
|
|
55
|
+
return this.OnPanelSelected;
|
|
56
|
+
}
|
|
57
|
+
/** @deprecated Use {@link OnPanelSelected}. */
|
|
58
|
+
set onPanelSelected(value) {
|
|
59
|
+
this.OnPanelSelected = value;
|
|
60
|
+
}
|
|
29
61
|
/** Current panels in layout */
|
|
30
|
-
|
|
62
|
+
Panels$ = new BehaviorSubject([]);
|
|
63
|
+
/** @deprecated Use {@link Panels$}. */
|
|
64
|
+
get panels$() {
|
|
65
|
+
return this.Panels$;
|
|
66
|
+
}
|
|
67
|
+
/** @deprecated Use {@link Panels$}. */
|
|
68
|
+
set panels$(value) {
|
|
69
|
+
this.Panels$ = value;
|
|
70
|
+
}
|
|
31
71
|
/** Whether layout editing (drag/drop/resize/close) is enabled */
|
|
32
|
-
get
|
|
72
|
+
get IsEditing() {
|
|
33
73
|
return this._isEditing;
|
|
34
74
|
}
|
|
75
|
+
/** @deprecated Use {@link IsEditing}. */
|
|
76
|
+
get isEditing() {
|
|
77
|
+
return this.IsEditing;
|
|
78
|
+
}
|
|
35
79
|
/**
|
|
36
80
|
* Initialize Golden Layout in the specified container.
|
|
37
81
|
* @param container The HTML element to render Golden Layout in
|
|
@@ -39,7 +83,7 @@ export class GoldenLayoutWrapperService {
|
|
|
39
83
|
* @param componentFactory Factory function to create panel content
|
|
40
84
|
* @param isEditing Whether editing (drag/drop/resize/close) is enabled
|
|
41
85
|
*/
|
|
42
|
-
|
|
86
|
+
Initialize(container, savedLayout, componentFactory, isEditing = false) {
|
|
43
87
|
this._componentFactory = componentFactory;
|
|
44
88
|
this._containerElement = container;
|
|
45
89
|
this._isEditing = isEditing;
|
|
@@ -63,6 +107,10 @@ export class GoldenLayoutWrapperService {
|
|
|
63
107
|
this._initialized = true;
|
|
64
108
|
this.updatePanelsList();
|
|
65
109
|
}
|
|
110
|
+
/** @deprecated Use {@link Initialize}. */
|
|
111
|
+
initialize(container, savedLayout, componentFactory, isEditing = false) {
|
|
112
|
+
return this.Initialize(container, savedLayout, componentFactory, isEditing);
|
|
113
|
+
}
|
|
66
114
|
/**
|
|
67
115
|
* Build LayoutConfig from saved ResolvedLayoutConfig.
|
|
68
116
|
* Uses GL's LayoutConfig.fromResolved() for proper conversion,
|
|
@@ -154,7 +202,7 @@ export class GoldenLayoutWrapperService {
|
|
|
154
202
|
/**
|
|
155
203
|
* Update layout size to match container.
|
|
156
204
|
*/
|
|
157
|
-
|
|
205
|
+
UpdateSize() {
|
|
158
206
|
if (this._layout && this._containerElement) {
|
|
159
207
|
const rect = this._containerElement.getBoundingClientRect();
|
|
160
208
|
if (rect.width > 0 && rect.height > 0) {
|
|
@@ -162,6 +210,10 @@ export class GoldenLayoutWrapperService {
|
|
|
162
210
|
}
|
|
163
211
|
}
|
|
164
212
|
}
|
|
213
|
+
/** @deprecated Use {@link UpdateSize}. */
|
|
214
|
+
updateSize() {
|
|
215
|
+
return this.UpdateSize();
|
|
216
|
+
}
|
|
165
217
|
/**
|
|
166
218
|
* Bind component event listener (called by Golden Layout VirtualLayout).
|
|
167
219
|
* The componentState contains the full DashboardPanel object.
|
|
@@ -201,7 +253,7 @@ export class GoldenLayoutWrapperService {
|
|
|
201
253
|
container.on('beforeComponentRelease', () => {
|
|
202
254
|
this._containerMap.delete(panel.id);
|
|
203
255
|
this._loadedPanels.delete(panel.id);
|
|
204
|
-
this.
|
|
256
|
+
this.OnPanelClosed.next(panel.id);
|
|
205
257
|
this.updatePanelsList();
|
|
206
258
|
});
|
|
207
259
|
// Listen for show/focus events - LAZY LOAD on first show
|
|
@@ -215,7 +267,7 @@ export class GoldenLayoutWrapperService {
|
|
|
215
267
|
}
|
|
216
268
|
this._loadedPanels.add(panel.id);
|
|
217
269
|
}
|
|
218
|
-
this.
|
|
270
|
+
this.OnPanelSelected.next(panel.id);
|
|
219
271
|
});
|
|
220
272
|
this.updatePanelsList();
|
|
221
273
|
}
|
|
@@ -236,13 +288,17 @@ export class GoldenLayoutWrapperService {
|
|
|
236
288
|
/**
|
|
237
289
|
* Check if Golden Layout is initialized
|
|
238
290
|
*/
|
|
239
|
-
|
|
291
|
+
IsInitialized() {
|
|
240
292
|
return this._initialized;
|
|
241
293
|
}
|
|
294
|
+
/** @deprecated Use {@link IsInitialized}. */
|
|
295
|
+
isInitialized() {
|
|
296
|
+
return this.IsInitialized();
|
|
297
|
+
}
|
|
242
298
|
/**
|
|
243
299
|
* Destroy Golden Layout and clean up
|
|
244
300
|
*/
|
|
245
|
-
|
|
301
|
+
Destroy() {
|
|
246
302
|
if (this._layout) {
|
|
247
303
|
this._layout.destroy();
|
|
248
304
|
this._layout = null;
|
|
@@ -253,11 +309,15 @@ export class GoldenLayoutWrapperService {
|
|
|
253
309
|
this._componentFactory = null;
|
|
254
310
|
this._containerElement = null;
|
|
255
311
|
}
|
|
312
|
+
/** @deprecated Use {@link Destroy}. */
|
|
313
|
+
destroy() {
|
|
314
|
+
return this.Destroy();
|
|
315
|
+
}
|
|
256
316
|
/**
|
|
257
317
|
* Add a panel to the layout.
|
|
258
318
|
* The full DashboardPanel is stored in componentState.
|
|
259
319
|
*/
|
|
260
|
-
|
|
320
|
+
AddPanel(panel, _location) {
|
|
261
321
|
if (!this._layout) {
|
|
262
322
|
return;
|
|
263
323
|
}
|
|
@@ -279,6 +339,10 @@ export class GoldenLayoutWrapperService {
|
|
|
279
339
|
}
|
|
280
340
|
this.emitLayoutChanged('resize');
|
|
281
341
|
}
|
|
342
|
+
/** @deprecated Use {@link AddPanel}. */
|
|
343
|
+
addPanel(panel, _location) {
|
|
344
|
+
return this.AddPanel(panel, _location);
|
|
345
|
+
}
|
|
282
346
|
/**
|
|
283
347
|
* Find first stack in layout
|
|
284
348
|
*/
|
|
@@ -303,56 +367,84 @@ export class GoldenLayoutWrapperService {
|
|
|
303
367
|
/**
|
|
304
368
|
* Remove a panel from the layout
|
|
305
369
|
*/
|
|
306
|
-
|
|
370
|
+
RemovePanel(panelId) {
|
|
307
371
|
const container = this._containerMap.get(panelId);
|
|
308
372
|
if (container) {
|
|
309
373
|
container.close();
|
|
310
374
|
}
|
|
311
375
|
}
|
|
376
|
+
/** @deprecated Use {@link RemovePanel}. */
|
|
377
|
+
removePanel(panelId) {
|
|
378
|
+
return this.RemovePanel(panelId);
|
|
379
|
+
}
|
|
312
380
|
/**
|
|
313
381
|
* Split a panel horizontally (add panel to the right)
|
|
314
382
|
*/
|
|
383
|
+
SplitHorizontal(panelId, newPanel) {
|
|
384
|
+
this.AddPanel(newPanel, { targetPanelId: panelId, position: 'right' });
|
|
385
|
+
}
|
|
386
|
+
/** @deprecated Use {@link SplitHorizontal}. */
|
|
315
387
|
splitHorizontal(panelId, newPanel) {
|
|
316
|
-
this.
|
|
388
|
+
return this.SplitHorizontal(panelId, newPanel);
|
|
317
389
|
}
|
|
318
390
|
/**
|
|
319
391
|
* Split a panel vertically (add panel below)
|
|
320
392
|
*/
|
|
393
|
+
SplitVertical(panelId, newPanel) {
|
|
394
|
+
this.AddPanel(newPanel, { targetPanelId: panelId, position: 'bottom' });
|
|
395
|
+
}
|
|
396
|
+
/** @deprecated Use {@link SplitVertical}. */
|
|
321
397
|
splitVertical(panelId, newPanel) {
|
|
322
|
-
this.
|
|
398
|
+
return this.SplitVertical(panelId, newPanel);
|
|
323
399
|
}
|
|
324
400
|
/**
|
|
325
401
|
* Add a panel as a tab to an existing stack
|
|
326
402
|
*/
|
|
403
|
+
AddToStack(panelId, newPanel) {
|
|
404
|
+
this.AddPanel(newPanel, { targetPanelId: panelId, position: 'tab' });
|
|
405
|
+
}
|
|
406
|
+
/** @deprecated Use {@link AddToStack}. */
|
|
327
407
|
addToStack(panelId, newPanel) {
|
|
328
|
-
this.
|
|
408
|
+
return this.AddToStack(panelId, newPanel);
|
|
329
409
|
}
|
|
330
410
|
/**
|
|
331
411
|
* Maximize a panel
|
|
332
412
|
*/
|
|
413
|
+
MaximizePanel(panelId) {
|
|
414
|
+
this.OnPanelMaximized.next({ panelId, maximized: true });
|
|
415
|
+
}
|
|
416
|
+
/** @deprecated Use {@link MaximizePanel}. */
|
|
333
417
|
maximizePanel(panelId) {
|
|
334
|
-
this.
|
|
418
|
+
return this.MaximizePanel(panelId);
|
|
335
419
|
}
|
|
336
420
|
/**
|
|
337
421
|
* Restore a maximized panel
|
|
338
422
|
*/
|
|
423
|
+
RestorePanel(panelId) {
|
|
424
|
+
this.OnPanelMaximized.next({ panelId, maximized: false });
|
|
425
|
+
}
|
|
426
|
+
/** @deprecated Use {@link RestorePanel}. */
|
|
339
427
|
restorePanel(panelId) {
|
|
340
|
-
this.
|
|
428
|
+
return this.RestorePanel(panelId);
|
|
341
429
|
}
|
|
342
430
|
/**
|
|
343
431
|
* Focus a panel by ID
|
|
344
432
|
*/
|
|
345
|
-
|
|
433
|
+
FocusPanel(panelId) {
|
|
346
434
|
const container = this._containerMap.get(panelId);
|
|
347
435
|
if (container) {
|
|
348
436
|
container.focus();
|
|
349
437
|
}
|
|
350
438
|
}
|
|
439
|
+
/** @deprecated Use {@link FocusPanel}. */
|
|
440
|
+
focusPanel(panelId) {
|
|
441
|
+
return this.FocusPanel(panelId);
|
|
442
|
+
}
|
|
351
443
|
/**
|
|
352
444
|
* Get the current layout configuration.
|
|
353
445
|
* Returns GL's native ResolvedLayoutConfig - no conversion.
|
|
354
446
|
*/
|
|
355
|
-
|
|
447
|
+
GetLayoutConfig() {
|
|
356
448
|
if (!this._layout)
|
|
357
449
|
return null;
|
|
358
450
|
try {
|
|
@@ -363,34 +455,50 @@ export class GoldenLayoutWrapperService {
|
|
|
363
455
|
return null;
|
|
364
456
|
}
|
|
365
457
|
}
|
|
458
|
+
/** @deprecated Use {@link GetLayoutConfig}. */
|
|
459
|
+
getLayoutConfig() {
|
|
460
|
+
return this.GetLayoutConfig();
|
|
461
|
+
}
|
|
366
462
|
/**
|
|
367
463
|
* Get the container element for a panel
|
|
368
464
|
*/
|
|
369
|
-
|
|
465
|
+
GetPanelContainer(panelId) {
|
|
370
466
|
const container = this._containerMap.get(panelId);
|
|
371
467
|
return container?.element || null;
|
|
372
468
|
}
|
|
469
|
+
/** @deprecated Use {@link GetPanelContainer}. */
|
|
470
|
+
getPanelContainer(panelId) {
|
|
471
|
+
return this.GetPanelContainer(panelId);
|
|
472
|
+
}
|
|
373
473
|
/**
|
|
374
474
|
* Get all panel IDs in the current layout
|
|
375
475
|
*/
|
|
376
|
-
|
|
476
|
+
GetPanelIds() {
|
|
377
477
|
return Array.from(this._containerMap.keys());
|
|
378
478
|
}
|
|
479
|
+
/** @deprecated Use {@link GetPanelIds}. */
|
|
480
|
+
getPanelIds() {
|
|
481
|
+
return this.GetPanelIds();
|
|
482
|
+
}
|
|
379
483
|
/**
|
|
380
484
|
* Set editing mode.
|
|
381
485
|
* Note: Golden Layout 2 doesn't support changing settings after initialization.
|
|
382
486
|
* The layout must be reinitialized to apply new settings.
|
|
383
487
|
*/
|
|
384
|
-
|
|
488
|
+
SetEditingMode(isEditing) {
|
|
385
489
|
this._isEditing = isEditing;
|
|
386
490
|
}
|
|
491
|
+
/** @deprecated Use {@link SetEditingMode}. */
|
|
492
|
+
setEditingMode(isEditing) {
|
|
493
|
+
return this.SetEditingMode(isEditing);
|
|
494
|
+
}
|
|
387
495
|
updatePanelsList() {
|
|
388
|
-
this.
|
|
496
|
+
this.Panels$.next(Array.from(this._containerMap.keys()));
|
|
389
497
|
}
|
|
390
498
|
emitLayoutChanged(changeType) {
|
|
391
|
-
const layoutConfig = this.
|
|
499
|
+
const layoutConfig = this.GetLayoutConfig();
|
|
392
500
|
if (layoutConfig) {
|
|
393
|
-
this.
|
|
501
|
+
this.OnLayoutChanged.next({
|
|
394
502
|
layout: layoutConfig,
|
|
395
503
|
changeType
|
|
396
504
|
});
|