@genesislcap/foundation-layout 14.231.1-alpha-aa210cb.0 → 14.231.1-alpha-bb849b5.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.
- package/dist/custom-elements.json +1 -33
- package/dist/dts/main/layout-main.d.ts +3 -5
- package/dist/dts/main/layout-main.d.ts.map +1 -1
- package/dist/dts/utils/types.d.ts +1 -0
- package/dist/dts/utils/types.d.ts.map +1 -1
- package/dist/esm/main/layout-main.js +8 -15
- package/dist/foundation-layout.api.json +27 -91
- package/dist/foundation-layout.d.ts +2 -4
- package/docs/api/foundation-layout.foundationlayout.md +0 -3
- package/docs/api/foundation-layout.registeredelementconfig.md +1 -0
- package/docs/api/foundation-layout.registeredelementconfig.showmaximisebutton.md +11 -0
- package/docs/api-report.md +2 -7
- package/package.json +12 -12
- package/docs/api/foundation-layout.foundationlayout.layout.md +0 -11
- package/docs/api/foundation-layout.foundationlayout.showcloseicon.md +0 -11
- package/docs/api/foundation-layout.foundationlayout.showmaximiseicon.md +0 -11
@@ -444,7 +444,7 @@
|
|
444
444
|
"type": {
|
445
445
|
"text": "GoldenLayout"
|
446
446
|
},
|
447
|
-
"privacy": "
|
447
|
+
"privacy": "private"
|
448
448
|
},
|
449
449
|
{
|
450
450
|
"kind": "field",
|
@@ -573,22 +573,6 @@
|
|
573
573
|
"privacy": "private",
|
574
574
|
"default": "false"
|
575
575
|
},
|
576
|
-
{
|
577
|
-
"kind": "field",
|
578
|
-
"name": "showCloseIcon",
|
579
|
-
"type": {
|
580
|
-
"text": "boolean"
|
581
|
-
},
|
582
|
-
"default": "false"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"kind": "field",
|
586
|
-
"name": "showMaximiseIcon",
|
587
|
-
"type": {
|
588
|
-
"text": "boolean"
|
589
|
-
},
|
590
|
-
"default": "false"
|
591
|
-
},
|
592
576
|
{
|
593
577
|
"kind": "method",
|
594
578
|
"name": "layoutRequiredRegistrations",
|
@@ -929,22 +913,6 @@
|
|
929
913
|
"module": "src/main/layout-main.ts"
|
930
914
|
},
|
931
915
|
"fieldName": "popoutConfig"
|
932
|
-
},
|
933
|
-
{
|
934
|
-
"name": "showCloseIcon",
|
935
|
-
"type": {
|
936
|
-
"text": "boolean"
|
937
|
-
},
|
938
|
-
"default": "false",
|
939
|
-
"fieldName": "showCloseIcon"
|
940
|
-
},
|
941
|
-
{
|
942
|
-
"name": "showMaximiseIcon",
|
943
|
-
"type": {
|
944
|
-
"text": "boolean"
|
945
|
-
},
|
946
|
-
"default": "false",
|
947
|
-
"fieldName": "showMaximiseIcon"
|
948
916
|
}
|
949
917
|
],
|
950
918
|
"superclass": {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { LayoutConfig, RootItemConfig } from '@genesis-community/golden-layout';
|
2
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
3
|
-
import { LayoutComponent, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout
|
3
|
+
import { componentType, CustomButton, LayoutComponent, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout } from '../utils/';
|
4
4
|
export { layoutStyles } from '../styles';
|
5
5
|
/**
|
6
6
|
* @public
|
@@ -16,7 +16,7 @@ export { layoutStyles } from '../styles';
|
|
16
16
|
*/
|
17
17
|
export declare class FoundationLayout extends FoundationElement implements LayoutComponent {
|
18
18
|
#private;
|
19
|
-
layout
|
19
|
+
private layout;
|
20
20
|
/** @internal */
|
21
21
|
layoutElement: HTMLElement;
|
22
22
|
private layoutConfig;
|
@@ -101,8 +101,6 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
101
101
|
*/
|
102
102
|
popoutConfig: string | undefined;
|
103
103
|
private popupMode;
|
104
|
-
showCloseIcon: boolean;
|
105
|
-
showMaximiseIcon: boolean;
|
106
104
|
/** @internal */
|
107
105
|
constructor();
|
108
106
|
/** @internal */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,
|
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;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAGL,aAAa,EACb,YAAY,EAOZ,eAAe,EAKf,SAAS,EAET,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,WAAW,CAAC;AAInB,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;IAEzD,gBAAgB;IAChB,CAAC,aAAa,CAAC,SAAmB;IAElC;;;;OAIG;IACmC,YAAY,EAAE,MAAM,CAAyB;IACnF,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,oBAAoB,CAAK;IAEjC,gBAAgB;IACV,OAAO,CAAC,IAAI,CAAO;IAEzB,gBAAgB;IACP,OAAO,CAAC,OAAO,CAAU;IAClC;;;;;OAKG;IACmC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC3D;;;;OAIG;IACS,sBAAsB,gBAAiB,MAAM,YAC2B;IAEpF;;;OAGG;IACH,gBAAgB,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC;IAE3C;;;;;;;;;;OAUG;IACS,cAAc,UAAS;IACnC,gBAAgB;IACJ,mBAAmB,UAAS;IAExC;;;;;OAKG;IACH,aAAa,EAAE,YAAY,EAAE,CAAM;IAEnC;;;OAGG;IACS,QAAQ,EAAE,OAAO,CAAS;IAEtC;;;;;OAKG;IACI,K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AG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,gBAAgB;AAChB,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhE,gBAAgB;AAChB,MAAM,WAAW,eAAe;IAC9B,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC;IAChC,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAAC;IAC7D,mBAAmB,IAAI,IAAI,CAAC;CAC7B;AAED,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB,CAAC"}
|
@@ -3,11 +3,10 @@ import { __classPrivateFieldGet, __classPrivateFieldSet, __decorate } from "tsli
|
|
3
3
|
import { GoldenLayout, LayoutConfig, ResolvedLayoutConfig, } from '@genesis-community/golden-layout';
|
4
4
|
import { Session } from '@genesislcap/foundation-comms';
|
5
5
|
import { layoutCacheDocument, UUID } from '@genesislcap/foundation-utils';
|
6
|
-
import {
|
6
|
+
import { attr, html, observable, ref, when } from '@microsoft/fast-element';
|
7
7
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
8
|
-
import { globalDraggingStyles, glVisualConfig,
|
9
|
-
import {
|
10
|
-
import { getMissingArrayItems } from '../utils/';
|
8
|
+
import { globalDraggingStyles, glVisualConfig, LAYOUT_ICONS, layoutStyles } from '../styles';
|
9
|
+
import { AUTOSAVE_KEY, componentType, DEFAULT_RELOAD_BUFFER, getMissingArrayItems, instanceContainer, LAYOUT_POPOUT_CONTAINER_CLASS, LAYOUT_POPOUT_CONTROL_KEY, LayoutEmitEvents, LayoutReceiveEvents, regionConveter, } from '../utils/';
|
11
10
|
import { LayoutRegistrationError, LayoutUsageError } from '../utils/error';
|
12
11
|
import { logger } from '../utils/logger';
|
13
12
|
export { layoutStyles } from '../styles';
|
@@ -106,8 +105,6 @@ export class FoundationLayout extends FoundationElement {
|
|
106
105
|
*/
|
107
106
|
this.popoutConfig = undefined;
|
108
107
|
this.popupMode = false;
|
109
|
-
this.showCloseIcon = false;
|
110
|
-
this.showMaximiseIcon = false;
|
111
108
|
/** @internal */
|
112
109
|
_FoundationLayout__boundDragListener.set(this, undefined);
|
113
110
|
this.onDragStart = this.onDragStart.bind(this);
|
@@ -393,7 +390,7 @@ export class FoundationLayout extends FoundationElement {
|
|
393
390
|
const configArray = Array.isArray(config) ? config : [config];
|
394
391
|
const isSingleItem = configArray.length === 1;
|
395
392
|
const childItems = configArray.map((regConfig) => {
|
396
|
-
const { registration, title, size, closable } = regConfig;
|
393
|
+
const { registration, title, size, closable, showMaximiseButton } = regConfig;
|
397
394
|
if (!this.layout.getRegisteredComponentTypeNames().includes(registration)) {
|
398
395
|
throw new LayoutRegistrationError(`Cannot add item '${registration}' which is not registered with the layout system.`);
|
399
396
|
}
|
@@ -404,6 +401,9 @@ export class FoundationLayout extends FoundationElement {
|
|
404
401
|
reorderEnabled: true,
|
405
402
|
isClosable: closable || false,
|
406
403
|
size: !isSingleItem ? size : undefined,
|
404
|
+
header: {
|
405
|
+
maximise: showMaximiseButton ? 'maximise' : false,
|
406
|
+
},
|
407
407
|
};
|
408
408
|
});
|
409
409
|
const itemConfig = {
|
@@ -713,8 +713,7 @@ export class FoundationLayout extends FoundationElement {
|
|
713
713
|
*/
|
714
714
|
loadGLConfigAndSetup(config) {
|
715
715
|
this.hasFirstLoaded = true;
|
716
|
-
|
717
|
-
this.layout.loadLayout(Object.assign(Object.assign(Object.assign({}, layoutConfig), glVisualConfig), { dimensions: Object.assign(Object.assign({}, glVisualConfig.dimensions), this.dimensionsConfig) }));
|
716
|
+
this.layout.loadLayout(Object.assign(Object.assign(Object.assign({}, config), glVisualConfig), { dimensions: Object.assign(Object.assign({}, glVisualConfig.dimensions), this.dimensionsConfig) }));
|
718
717
|
this.attatchResizeEvents();
|
719
718
|
}
|
720
719
|
/**
|
@@ -835,12 +834,6 @@ __decorate([
|
|
835
834
|
__decorate([
|
836
835
|
attr({ attribute: 'popout-config' })
|
837
836
|
], FoundationLayout.prototype, "popoutConfig", void 0);
|
838
|
-
__decorate([
|
839
|
-
attr({ attribute: 'showCloseIcon' })
|
840
|
-
], FoundationLayout.prototype, "showCloseIcon", void 0);
|
841
|
-
__decorate([
|
842
|
-
attr({ attribute: 'showMaximiseIcon' })
|
843
|
-
], FoundationLayout.prototype, "showMaximiseIcon", void 0);
|
844
837
|
const loadingTemplate = html `
|
845
838
|
<div class="html-spinner"></div>
|
846
839
|
`;
|
@@ -586,37 +586,6 @@
|
|
586
586
|
"isProtected": false,
|
587
587
|
"isAbstract": false
|
588
588
|
},
|
589
|
-
{
|
590
|
-
"kind": "Property",
|
591
|
-
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#layout:member",
|
592
|
-
"docComment": "",
|
593
|
-
"excerptTokens": [
|
594
|
-
{
|
595
|
-
"kind": "Content",
|
596
|
-
"text": "layout: "
|
597
|
-
},
|
598
|
-
{
|
599
|
-
"kind": "Reference",
|
600
|
-
"text": "GoldenLayout",
|
601
|
-
"canonicalReference": "@genesis-community/golden-layout!GoldenLayout:class"
|
602
|
-
},
|
603
|
-
{
|
604
|
-
"kind": "Content",
|
605
|
-
"text": ";"
|
606
|
-
}
|
607
|
-
],
|
608
|
-
"isReadonly": false,
|
609
|
-
"isOptional": false,
|
610
|
-
"releaseTag": "Public",
|
611
|
-
"name": "layout",
|
612
|
-
"propertyTypeTokenRange": {
|
613
|
-
"startIndex": 1,
|
614
|
-
"endIndex": 2
|
615
|
-
},
|
616
|
-
"isStatic": false,
|
617
|
-
"isProtected": false,
|
618
|
-
"isAbstract": false
|
619
|
-
},
|
620
589
|
{
|
621
590
|
"kind": "Method",
|
622
591
|
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout.layoutRequiredRegistrations:member(1)",
|
@@ -1031,66 +1000,6 @@
|
|
1031
1000
|
"isAbstract": false,
|
1032
1001
|
"name": "removeItems"
|
1033
1002
|
},
|
1034
|
-
{
|
1035
|
-
"kind": "Property",
|
1036
|
-
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#showCloseIcon:member",
|
1037
|
-
"docComment": "",
|
1038
|
-
"excerptTokens": [
|
1039
|
-
{
|
1040
|
-
"kind": "Content",
|
1041
|
-
"text": "showCloseIcon: "
|
1042
|
-
},
|
1043
|
-
{
|
1044
|
-
"kind": "Content",
|
1045
|
-
"text": "boolean"
|
1046
|
-
},
|
1047
|
-
{
|
1048
|
-
"kind": "Content",
|
1049
|
-
"text": ";"
|
1050
|
-
}
|
1051
|
-
],
|
1052
|
-
"isReadonly": false,
|
1053
|
-
"isOptional": false,
|
1054
|
-
"releaseTag": "Public",
|
1055
|
-
"name": "showCloseIcon",
|
1056
|
-
"propertyTypeTokenRange": {
|
1057
|
-
"startIndex": 1,
|
1058
|
-
"endIndex": 2
|
1059
|
-
},
|
1060
|
-
"isStatic": false,
|
1061
|
-
"isProtected": false,
|
1062
|
-
"isAbstract": false
|
1063
|
-
},
|
1064
|
-
{
|
1065
|
-
"kind": "Property",
|
1066
|
-
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#showMaximiseIcon:member",
|
1067
|
-
"docComment": "",
|
1068
|
-
"excerptTokens": [
|
1069
|
-
{
|
1070
|
-
"kind": "Content",
|
1071
|
-
"text": "showMaximiseIcon: "
|
1072
|
-
},
|
1073
|
-
{
|
1074
|
-
"kind": "Content",
|
1075
|
-
"text": "boolean"
|
1076
|
-
},
|
1077
|
-
{
|
1078
|
-
"kind": "Content",
|
1079
|
-
"text": ";"
|
1080
|
-
}
|
1081
|
-
],
|
1082
|
-
"isReadonly": false,
|
1083
|
-
"isOptional": false,
|
1084
|
-
"releaseTag": "Public",
|
1085
|
-
"name": "showMaximiseIcon",
|
1086
|
-
"propertyTypeTokenRange": {
|
1087
|
-
"startIndex": 1,
|
1088
|
-
"endIndex": 2
|
1089
|
-
},
|
1090
|
-
"isStatic": false,
|
1091
|
-
"isProtected": false,
|
1092
|
-
"isAbstract": false
|
1093
|
-
},
|
1094
1003
|
{
|
1095
1004
|
"kind": "Method",
|
1096
1005
|
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#tryActivatePopoutMode:member(1)",
|
@@ -2203,6 +2112,33 @@
|
|
2203
2112
|
"endIndex": 2
|
2204
2113
|
}
|
2205
2114
|
},
|
2115
|
+
{
|
2116
|
+
"kind": "PropertySignature",
|
2117
|
+
"canonicalReference": "@genesislcap/foundation-layout!RegisteredElementConfig#showMaximiseButton:member",
|
2118
|
+
"docComment": "",
|
2119
|
+
"excerptTokens": [
|
2120
|
+
{
|
2121
|
+
"kind": "Content",
|
2122
|
+
"text": "showMaximiseButton?: "
|
2123
|
+
},
|
2124
|
+
{
|
2125
|
+
"kind": "Content",
|
2126
|
+
"text": "boolean"
|
2127
|
+
},
|
2128
|
+
{
|
2129
|
+
"kind": "Content",
|
2130
|
+
"text": ";"
|
2131
|
+
}
|
2132
|
+
],
|
2133
|
+
"isReadonly": false,
|
2134
|
+
"isOptional": true,
|
2135
|
+
"releaseTag": "Public",
|
2136
|
+
"name": "showMaximiseButton",
|
2137
|
+
"propertyTypeTokenRange": {
|
2138
|
+
"startIndex": 1,
|
2139
|
+
"endIndex": 2
|
2140
|
+
}
|
2141
|
+
},
|
2206
2142
|
{
|
2207
2143
|
"kind": "PropertySignature",
|
2208
2144
|
"canonicalReference": "@genesislcap/foundation-layout!RegisteredElementConfig#size:member",
|
@@ -2,7 +2,6 @@ import type { Container } from '@microsoft/fast-foundation';
|
|
2
2
|
import { ElementStyles } from '@microsoft/fast-element';
|
3
3
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
4
4
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
5
|
-
import { GoldenLayout } from '@genesis-community/golden-layout';
|
6
5
|
import { LayoutConfig } from '@genesis-community/golden-layout';
|
7
6
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
8
7
|
import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
|
@@ -53,7 +52,7 @@ export declare const DEFAULT_RELOAD_BUFFER = 500;
|
|
53
52
|
*/
|
54
53
|
export declare class FoundationLayout extends FoundationElement implements LayoutComponent {
|
55
54
|
#private;
|
56
|
-
layout
|
55
|
+
private layout;
|
57
56
|
/** @internal */
|
58
57
|
layoutElement: HTMLElement;
|
59
58
|
private layoutConfig;
|
@@ -138,8 +137,6 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
138
137
|
*/
|
139
138
|
popoutConfig: string | undefined;
|
140
139
|
private popupMode;
|
141
|
-
showCloseIcon: boolean;
|
142
|
-
showMaximiseIcon: boolean;
|
143
140
|
/** @internal */
|
144
141
|
constructor();
|
145
142
|
/** @internal */
|
@@ -749,6 +746,7 @@ export declare interface RegisteredElementConfig {
|
|
749
746
|
title?: string;
|
750
747
|
closable?: boolean;
|
751
748
|
size?: string;
|
749
|
+
showMaximiseButton?: boolean;
|
752
750
|
}
|
753
751
|
|
754
752
|
/** @internal */
|
@@ -31,13 +31,10 @@ The constructor for this class is marked as internal. Third-party code should no
|
|
31
31
|
| [dimensionsConfig?](./foundation-layout.foundationlayout.dimensionsconfig.md) | | LayoutConfig.Dimensions | _(Optional)_ Apply dimensions config to the layout, such as setting the size of the drag handles. |
|
32
32
|
| [dragging](./foundation-layout.foundationlayout.dragging.md) | | boolean | Set to true when the user is currently dragging the panes inside of the layout |
|
33
33
|
| [hasFirstLoaded](./foundation-layout.foundationlayout.hasfirstloaded.md) | | boolean | Boolean signifies whether the layout has loaded for the first time or not. |
|
34
|
-
| [layout](./foundation-layout.foundationlayout.layout.md) | | GoldenLayout | |
|
35
34
|
| [lifecycleUpdateToken](./foundation-layout.foundationlayout.lifecycleupdatetoken.md) | | string \| undefined | Used to calculate whether a layout item should run its lifecycle methods or not |
|
36
35
|
| [missingItemPlaceholder](./foundation-layout.foundationlayout.missingitemplaceholder.md) | | (missingItem: string) => string | Function which is used to generate the placeholder text when a layout is loaded with a missing item. |
|
37
36
|
| [popoutConfig](./foundation-layout.foundationlayout.popoutconfig.md) | | string \| undefined | **_(BETA)_** Controls whether popout functionality is enabled on the layout. Defaults to disabled. Set this attribute to any string to enable popout functionality. If this string is of format <code>number;number</code> then this will be interpreted as the width and height of the popout window. |
|
38
37
|
| [reloadBuffer](./foundation-layout.foundationlayout.reloadbuffer.md) | | number | Number describing how long to wait in ms before reloading the config when adding items declaratively by the html API. Default 500 (ms). |
|
39
|
-
| [showCloseIcon](./foundation-layout.foundationlayout.showcloseicon.md) | | boolean | |
|
40
|
-
| [showMaximiseIcon](./foundation-layout.foundationlayout.showmaximiseicon.md) | | boolean | |
|
41
38
|
|
42
39
|
## Methods
|
43
40
|
|
@@ -22,6 +22,7 @@ export interface RegisteredElementConfig
|
|
22
22
|
| --- | --- | --- | --- |
|
23
23
|
| [closable?](./foundation-layout.registeredelementconfig.closable.md) | | boolean | _(Optional)_ |
|
24
24
|
| [registration](./foundation-layout.registeredelementconfig.registration.md) | | string | |
|
25
|
+
| [showMaximiseButton?](./foundation-layout.registeredelementconfig.showmaximisebutton.md) | | boolean | _(Optional)_ |
|
25
26
|
| [size?](./foundation-layout.registeredelementconfig.size.md) | | string | _(Optional)_ |
|
26
27
|
| [title?](./foundation-layout.registeredelementconfig.title.md) | | string | _(Optional)_ |
|
27
28
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [RegisteredElementConfig](./foundation-layout.registeredelementconfig.md) > [showMaximiseButton](./foundation-layout.registeredelementconfig.showmaximisebutton.md)
|
4
|
+
|
5
|
+
## RegisteredElementConfig.showMaximiseButton property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
showMaximiseButton?: boolean;
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
@@ -8,7 +8,6 @@ import type { Container } from '@microsoft/fast-foundation';
|
|
8
8
|
import { ElementStyles } from '@microsoft/fast-element';
|
9
9
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
10
10
|
import { FoundationElementRegistry } from '@microsoft/fast-foundation';
|
11
|
-
import { GoldenLayout } from '@genesis-community/golden-layout';
|
12
11
|
import { LayoutConfig } from '@genesis-community/golden-layout';
|
13
12
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
14
13
|
import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
|
@@ -48,8 +47,6 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone
|
|
48
47
|
dragging: boolean;
|
49
48
|
getLayout(): SerialisedLayout;
|
50
49
|
hasFirstLoaded: boolean;
|
51
|
-
// (undocumented)
|
52
|
-
layout: GoldenLayout;
|
53
50
|
// @internal (undocumented)
|
54
51
|
layoutElement: HTMLElement;
|
55
52
|
static layoutRequiredRegistrations(layout: SerialisedLayout): string[];
|
@@ -64,10 +61,6 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone
|
|
64
61
|
removeItems(registration: string, force?: boolean): number;
|
65
62
|
// @internal
|
66
63
|
requestLayoutReload(): void;
|
67
|
-
// (undocumented)
|
68
|
-
showCloseIcon: boolean;
|
69
|
-
// (undocumented)
|
70
|
-
showMaximiseIcon: boolean;
|
71
64
|
// @beta
|
72
65
|
tryActivatePopoutMode(): boolean;
|
73
66
|
tryLoadLayoutFromLocalStorage(): boolean;
|
@@ -214,6 +207,8 @@ export interface RegisteredElementConfig {
|
|
214
207
|
// (undocumented)
|
215
208
|
registration: string;
|
216
209
|
// (undocumented)
|
210
|
+
showMaximiseButton?: boolean;
|
211
|
+
// (undocumented)
|
217
212
|
size?: string;
|
218
213
|
// (undocumented)
|
219
214
|
title?: string;
|
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.231.1-alpha-
|
4
|
+
"version": "14.231.1-alpha-bb849b5.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.231.1-alpha-
|
40
|
-
"@genesislcap/genx": "14.231.1-alpha-
|
41
|
-
"@genesislcap/rollup-builder": "14.231.1-alpha-
|
42
|
-
"@genesislcap/ts-builder": "14.231.1-alpha-
|
43
|
-
"@genesislcap/uvu-playwright-builder": "14.231.1-alpha-
|
44
|
-
"@genesislcap/vite-builder": "14.231.1-alpha-
|
45
|
-
"@genesislcap/webpack-builder": "14.231.1-alpha-
|
39
|
+
"@genesislcap/foundation-testing": "14.231.1-alpha-bb849b5.0",
|
40
|
+
"@genesislcap/genx": "14.231.1-alpha-bb849b5.0",
|
41
|
+
"@genesislcap/rollup-builder": "14.231.1-alpha-bb849b5.0",
|
42
|
+
"@genesislcap/ts-builder": "14.231.1-alpha-bb849b5.0",
|
43
|
+
"@genesislcap/uvu-playwright-builder": "14.231.1-alpha-bb849b5.0",
|
44
|
+
"@genesislcap/vite-builder": "14.231.1-alpha-bb849b5.0",
|
45
|
+
"@genesislcap/webpack-builder": "14.231.1-alpha-bb849b5.0",
|
46
46
|
"rimraf": "^5.0.0"
|
47
47
|
},
|
48
48
|
"dependencies": {
|
49
49
|
"@genesis-community/golden-layout": "^2.11.0",
|
50
|
-
"@genesislcap/foundation-comms": "14.231.1-alpha-
|
51
|
-
"@genesislcap/foundation-logger": "14.231.1-alpha-
|
52
|
-
"@genesislcap/foundation-utils": "14.231.1-alpha-
|
50
|
+
"@genesislcap/foundation-comms": "14.231.1-alpha-bb849b5.0",
|
51
|
+
"@genesislcap/foundation-logger": "14.231.1-alpha-bb849b5.0",
|
52
|
+
"@genesislcap/foundation-utils": "14.231.1-alpha-bb849b5.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",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
"access": "public"
|
65
65
|
},
|
66
66
|
"customElements": "dist/custom-elements.json",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "d1cdd53d37b97a93fd9874b00874817eb7967d8c"
|
68
68
|
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [layout](./foundation-layout.foundationlayout.layout.md)
|
4
|
-
|
5
|
-
## FoundationLayout.layout property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
layout: GoldenLayout;
|
11
|
-
```
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [showCloseIcon](./foundation-layout.foundationlayout.showcloseicon.md)
|
4
|
-
|
5
|
-
## FoundationLayout.showCloseIcon property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
showCloseIcon: boolean;
|
11
|
-
```
|
@@ -1,11 +0,0 @@
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
-
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [showMaximiseIcon](./foundation-layout.foundationlayout.showmaximiseicon.md)
|
4
|
-
|
5
|
-
## FoundationLayout.showMaximiseIcon property
|
6
|
-
|
7
|
-
**Signature:**
|
8
|
-
|
9
|
-
```typescript
|
10
|
-
showMaximiseIcon: boolean;
|
11
|
-
```
|