@genesislcap/foundation-layout 14.380.2-alpha-81e1f42.0 → 14.381.0
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.
|
@@ -474,10 +474,9 @@
|
|
|
474
474
|
"kind": "field",
|
|
475
475
|
"name": "layout",
|
|
476
476
|
"type": {
|
|
477
|
-
"text": "GoldenLayout
|
|
477
|
+
"text": "GoldenLayout"
|
|
478
478
|
},
|
|
479
|
-
"privacy": "private"
|
|
480
|
-
"default": "null"
|
|
479
|
+
"privacy": "private"
|
|
481
480
|
},
|
|
482
481
|
{
|
|
483
482
|
"kind": "field",
|
|
@@ -516,15 +515,6 @@
|
|
|
516
515
|
"privacy": "private",
|
|
517
516
|
"default": "false"
|
|
518
517
|
},
|
|
519
|
-
{
|
|
520
|
-
"kind": "field",
|
|
521
|
-
"name": "reloadTimeout",
|
|
522
|
-
"type": {
|
|
523
|
-
"text": "NodeJS.Timeout | null"
|
|
524
|
-
},
|
|
525
|
-
"privacy": "private",
|
|
526
|
-
"default": "null"
|
|
527
|
-
},
|
|
528
518
|
{
|
|
529
519
|
"kind": "field",
|
|
530
520
|
"name": "registeredComponents",
|
|
@@ -534,15 +524,6 @@
|
|
|
534
524
|
"privacy": "private",
|
|
535
525
|
"default": "0"
|
|
536
526
|
},
|
|
537
|
-
{
|
|
538
|
-
"kind": "field",
|
|
539
|
-
"name": "stackCreatedHandler",
|
|
540
|
-
"type": {
|
|
541
|
-
"text": "((stack: any) => void) | null"
|
|
542
|
-
},
|
|
543
|
-
"privacy": "private",
|
|
544
|
-
"default": "null"
|
|
545
|
-
},
|
|
546
527
|
{
|
|
547
528
|
"kind": "field",
|
|
548
529
|
"name": "autoSaveKey",
|
|
@@ -30,9 +30,7 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
|
30
30
|
*/
|
|
31
31
|
reloadBuffer: number;
|
|
32
32
|
private reloadPending;
|
|
33
|
-
private reloadTimeout;
|
|
34
33
|
private registeredComponents;
|
|
35
|
-
private stackCreatedHandler;
|
|
36
34
|
/** @internal */
|
|
37
35
|
private uuid;
|
|
38
36
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGL,gBAAgB,EAChB,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,CAAe;IAC7B,gBAAgB;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,OAAO,CAAC,YAAY,CAAqC;IACzD,OAAO,CAAC,mBAAmB,CAAqC;IAEhE,gBA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;OAGG;IACH,OAAO,CAAC,wBAAwB;IAehC;;;;;;;;SAQK;IACL,OAAO,CAAC,kBAAkB;IAY1B;;;;;;;;OAQG;IACH,OAAO,CAAC,kCAAkC;IA4B1C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;;OAGG;IACH,OAAO,CAAC,4BAA4B;IAWpC;;;OAGG;IACH,OAAO,CAAC,uBAAuB;CAyBhC;AAMD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uEAK1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;2BAI3B,CAAC"}
|
|
@@ -41,7 +41,6 @@ export class FoundationLayout extends FoundationElement {
|
|
|
41
41
|
/** @internal */
|
|
42
42
|
constructor() {
|
|
43
43
|
super();
|
|
44
|
-
this.layout = null;
|
|
45
44
|
this.layoutConfig = { root: undefined };
|
|
46
45
|
this.defaultLayoutConfig = { root: undefined };
|
|
47
46
|
/** @internal */
|
|
@@ -53,9 +52,7 @@ export class FoundationLayout extends FoundationElement {
|
|
|
53
52
|
*/
|
|
54
53
|
this.reloadBuffer = DEFAULT_RELOAD_BUFFER;
|
|
55
54
|
this.reloadPending = false;
|
|
56
|
-
this.reloadTimeout = null;
|
|
57
55
|
this.registeredComponents = 0;
|
|
58
|
-
this.stackCreatedHandler = null;
|
|
59
56
|
/**
|
|
60
57
|
* Function which is used to generate the placeholder text when a layout is loaded
|
|
61
58
|
* with a missing item.
|
|
@@ -152,12 +149,7 @@ export class FoundationLayout extends FoundationElement {
|
|
|
152
149
|
}
|
|
153
150
|
/** @internal */
|
|
154
151
|
disconnectedCallback() {
|
|
155
|
-
//
|
|
156
|
-
if (this.reloadTimeout) {
|
|
157
|
-
clearTimeout(this.reloadTimeout);
|
|
158
|
-
this.reloadTimeout = null;
|
|
159
|
-
}
|
|
160
|
-
// Remove golden layout event listeners
|
|
152
|
+
// golden layout events
|
|
161
153
|
this.shadowRoot.removeEventListener('dragStart', this.onDragStart);
|
|
162
154
|
this.shadowRoot.removeEventListener('dragStop', this.onDragStop);
|
|
163
155
|
this.shadowRoot.removeEventListener('closeButtonPre', this.onPreItemRemoved);
|
|
@@ -165,31 +157,7 @@ export class FoundationLayout extends FoundationElement {
|
|
|
165
157
|
this.shadowRoot.removeEventListener('maximised', this.onPreItemMaximised);
|
|
166
158
|
this.shadowRoot.removeEventListener('minimised', this.onPreItemMinimised);
|
|
167
159
|
// events.ts events
|
|
168
|
-
this.shadowRoot.
|
|
169
|
-
// Remove Golden Layout event listeners
|
|
170
|
-
if (this.layout && this.stackCreatedHandler) {
|
|
171
|
-
this.layout.off('stackCreated', this.stackCreatedHandler);
|
|
172
|
-
this.stackCreatedHandler = null;
|
|
173
|
-
}
|
|
174
|
-
// Clean up resize event listeners from drag handles
|
|
175
|
-
if (__classPrivateFieldGet(this, _FoundationLayout__boundDragListener, "f")) {
|
|
176
|
-
this.shadowRoot.querySelectorAll('div.lm_drag_handle').forEach((h) => {
|
|
177
|
-
h.removeEventListener('click', __classPrivateFieldGet(this, _FoundationLayout__boundDragListener, "f"));
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
// Destroy Golden Layout instance to prevent memory leaks
|
|
181
|
-
if (this.layout) {
|
|
182
|
-
try {
|
|
183
|
-
// GoldenLayout may have a destroy method or we need to clear its internal state
|
|
184
|
-
if (typeof this.layout.destroy === 'function') {
|
|
185
|
-
this.layout.destroy();
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
catch (e) {
|
|
189
|
-
logger.error('Error destroying GoldenLayout:', e);
|
|
190
|
-
}
|
|
191
|
-
this.layout = null;
|
|
192
|
-
}
|
|
160
|
+
this.shadowRoot.addEventListener(LayoutReceiveEvents.autosave, this.onAutosaveRequest);
|
|
193
161
|
}
|
|
194
162
|
/** @internal */
|
|
195
163
|
onDragStart() {
|
|
@@ -669,14 +637,9 @@ export class FoundationLayout extends FoundationElement {
|
|
|
669
637
|
requestLayoutReload() {
|
|
670
638
|
if (this.reloadPending)
|
|
671
639
|
return;
|
|
672
|
-
// Clear any existing timeout to prevent memory leak
|
|
673
|
-
if (this.reloadTimeout) {
|
|
674
|
-
clearTimeout(this.reloadTimeout);
|
|
675
|
-
}
|
|
676
640
|
this.reloadPending = true;
|
|
677
|
-
|
|
641
|
+
setTimeout(() => {
|
|
678
642
|
this.reloadPending = false;
|
|
679
|
-
this.reloadTimeout = null;
|
|
680
643
|
if (!this.hasFirstLoaded) {
|
|
681
644
|
this.hasFirstLoaded = true;
|
|
682
645
|
// Store the default layout config before attempting to load from storage
|
|
@@ -965,8 +928,7 @@ export class FoundationLayout extends FoundationElement {
|
|
|
965
928
|
* @internal
|
|
966
929
|
*/
|
|
967
930
|
setupCustomButtons() {
|
|
968
|
-
|
|
969
|
-
this.stackCreatedHandler = (stack) => {
|
|
931
|
+
this.layout.on('stackCreated', (stack) => {
|
|
970
932
|
var _b;
|
|
971
933
|
const controlElem = stack.target.header.controlsContainerElement;
|
|
972
934
|
const containedElement = () => stack.target.getActiveContentItem().container.element;
|
|
@@ -977,8 +939,7 @@ export class FoundationLayout extends FoundationElement {
|
|
|
977
939
|
button.addEventListener('click', () => customButton.onClick(button, containedElement()));
|
|
978
940
|
controlElem.prepend(button);
|
|
979
941
|
});
|
|
980
|
-
};
|
|
981
|
-
this.layout.on('stackCreated', this.stackCreatedHandler);
|
|
942
|
+
});
|
|
982
943
|
}
|
|
983
944
|
/**
|
|
984
945
|
* Return an array of each contained items in the layout.
|
|
@@ -105,9 +105,7 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
|
105
105
|
*/
|
|
106
106
|
reloadBuffer: number;
|
|
107
107
|
private reloadPending;
|
|
108
|
-
private reloadTimeout;
|
|
109
108
|
private registeredComponents;
|
|
110
|
-
private stackCreatedHandler;
|
|
111
109
|
/** @internal */
|
|
112
110
|
private uuid;
|
|
113
111
|
/** @internal */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-layout",
|
|
3
3
|
"description": "Genesis Foundation UI App Layout",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.381.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-layout.d.ts",
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@genesislcap/foundation-testing": "14.
|
|
40
|
-
"@genesislcap/genx": "14.
|
|
41
|
-
"@genesislcap/rollup-builder": "14.
|
|
42
|
-
"@genesislcap/ts-builder": "14.
|
|
43
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
44
|
-
"@genesislcap/vite-builder": "14.
|
|
45
|
-
"@genesislcap/webpack-builder": "14.
|
|
39
|
+
"@genesislcap/foundation-testing": "14.381.0",
|
|
40
|
+
"@genesislcap/genx": "14.381.0",
|
|
41
|
+
"@genesislcap/rollup-builder": "14.381.0",
|
|
42
|
+
"@genesislcap/ts-builder": "14.381.0",
|
|
43
|
+
"@genesislcap/uvu-playwright-builder": "14.381.0",
|
|
44
|
+
"@genesislcap/vite-builder": "14.381.0",
|
|
45
|
+
"@genesislcap/webpack-builder": "14.381.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@genesis-community/golden-layout": "^2.11.0",
|
|
49
|
-
"@genesislcap/foundation-comms": "14.
|
|
50
|
-
"@genesislcap/foundation-logger": "14.
|
|
51
|
-
"@genesislcap/foundation-ui": "14.
|
|
52
|
-
"@genesislcap/foundation-utils": "14.
|
|
49
|
+
"@genesislcap/foundation-comms": "14.381.0",
|
|
50
|
+
"@genesislcap/foundation-logger": "14.381.0",
|
|
51
|
+
"@genesislcap/foundation-ui": "14.381.0",
|
|
52
|
+
"@genesislcap/foundation-utils": "14.381.0",
|
|
53
53
|
"@microsoft/fast-components": "2.30.6",
|
|
54
54
|
"@microsoft/fast-element": "1.14.0",
|
|
55
55
|
"@microsoft/fast-foundation": "2.49.6"
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
65
|
"customElements": "dist/custom-elements.json",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "55de954bae689e7447fdc2758e6d6f954f12d1d9"
|
|
67
67
|
}
|