@genesislcap/foundation-layout 14.231.1-alpha-5a89a11.0 → 14.231.1-alpha-aa210cb.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 +7 -12
- package/dist/dts/main/layout-main.d.ts +4 -5
- package/dist/dts/main/layout-main.d.ts.map +1 -1
- package/dist/esm/main/layout-main.js +8 -12
- package/dist/foundation-layout.api.json +37 -6
- package/dist/foundation-layout.d.ts +4 -4
- package/docs/api/{foundation-layout.foundationlayout.showcloseicons.md → foundation-layout.foundationlayout.layout.md} +3 -3
- package/docs/api/foundation-layout.foundationlayout.md +3 -2
- package/docs/api/{foundation-layout.foundationlayout.showmaximiseicons.md → foundation-layout.foundationlayout.showcloseicon.md} +3 -3
- package/docs/api/foundation-layout.foundationlayout.showmaximiseicon.md +11 -0
- package/docs/api-report.md +5 -2
- package/package.json +12 -12
@@ -444,7 +444,7 @@
|
|
444
444
|
"type": {
|
445
445
|
"text": "GoldenLayout"
|
446
446
|
},
|
447
|
-
"privacy": "
|
447
|
+
"privacy": "public"
|
448
448
|
},
|
449
449
|
{
|
450
450
|
"kind": "field",
|
@@ -575,7 +575,7 @@
|
|
575
575
|
},
|
576
576
|
{
|
577
577
|
"kind": "field",
|
578
|
-
"name": "
|
578
|
+
"name": "showCloseIcon",
|
579
579
|
"type": {
|
580
580
|
"text": "boolean"
|
581
581
|
},
|
@@ -583,7 +583,7 @@
|
|
583
583
|
},
|
584
584
|
{
|
585
585
|
"kind": "field",
|
586
|
-
"name": "
|
586
|
+
"name": "showMaximiseIcon",
|
587
587
|
"type": {
|
588
588
|
"text": "boolean"
|
589
589
|
},
|
@@ -767,11 +767,6 @@
|
|
767
767
|
},
|
768
768
|
"description": "The `LifecycleMixin` can use the lifecycleUpdateToken to determine if it needs to gate\nlifecycle methods from running when other items have been added or deleted.\nThis key is updated every time one of these actions are performed, so you can check if the key has changed and know you potentially need to gate some of your lifecycle functionality.\nThis method should be called whenever we are about to perform an action which will cause a lifecycle update, should as adding or removing an item from the layout"
|
769
769
|
},
|
770
|
-
{
|
771
|
-
"kind": "method",
|
772
|
-
"name": "setupOverrides",
|
773
|
-
"privacy": "private"
|
774
|
-
},
|
775
770
|
{
|
776
771
|
"kind": "field",
|
777
772
|
"name": "_presentation",
|
@@ -936,20 +931,20 @@
|
|
936
931
|
"fieldName": "popoutConfig"
|
937
932
|
},
|
938
933
|
{
|
939
|
-
"name": "
|
934
|
+
"name": "showCloseIcon",
|
940
935
|
"type": {
|
941
936
|
"text": "boolean"
|
942
937
|
},
|
943
938
|
"default": "false",
|
944
|
-
"fieldName": "
|
939
|
+
"fieldName": "showCloseIcon"
|
945
940
|
},
|
946
941
|
{
|
947
|
-
"name": "
|
942
|
+
"name": "showMaximiseIcon",
|
948
943
|
"type": {
|
949
944
|
"text": "boolean"
|
950
945
|
},
|
951
946
|
"default": "false",
|
952
|
-
"fieldName": "
|
947
|
+
"fieldName": "showMaximiseIcon"
|
953
948
|
}
|
954
949
|
],
|
955
950
|
"superclass": {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LayoutConfig, RootItemConfig } from '@genesis-community/golden-layout';
|
1
|
+
import { GoldenLayout, LayoutConfig, RootItemConfig } from '@genesis-community/golden-layout';
|
2
2
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
3
3
|
import { LayoutComponent, Placement, RegisteredElementConfig, RegistrationConfig, SerialisedLayout, componentType, CustomButton } from '../utils/';
|
4
4
|
export { layoutStyles } from '../styles';
|
@@ -16,7 +16,7 @@ export { layoutStyles } from '../styles';
|
|
16
16
|
*/
|
17
17
|
export declare class FoundationLayout extends FoundationElement implements LayoutComponent {
|
18
18
|
#private;
|
19
|
-
|
19
|
+
layout: GoldenLayout;
|
20
20
|
/** @internal */
|
21
21
|
layoutElement: HTMLElement;
|
22
22
|
private layoutConfig;
|
@@ -101,8 +101,8 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
101
101
|
*/
|
102
102
|
popoutConfig: string | undefined;
|
103
103
|
private popupMode;
|
104
|
-
|
105
|
-
|
104
|
+
showCloseIcon: boolean;
|
105
|
+
showMaximiseIcon: boolean;
|
106
106
|
/** @internal */
|
107
107
|
constructor();
|
108
108
|
/** @internal */
|
@@ -344,7 +344,6 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
344
344
|
* @internal
|
345
345
|
*/
|
346
346
|
private initPopoutModeIfEnabled;
|
347
|
-
private setupOverrides;
|
348
347
|
}
|
349
348
|
/**
|
350
349
|
* `ViewTemplate` which defines the html for {@link FoundationLayout}.
|
@@ -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,EAGL,YAAY,EAEZ,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAEL,eAAe,EAGf,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAKb,YAAY,EAQb,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IACzE,MAAM,EAAE,YAAY,CAAC;IAC5B,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;IAC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ACH,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"}
|
@@ -106,8 +106,8 @@ export class FoundationLayout extends FoundationElement {
|
|
106
106
|
*/
|
107
107
|
this.popoutConfig = undefined;
|
108
108
|
this.popupMode = false;
|
109
|
-
this.
|
110
|
-
this.
|
109
|
+
this.showCloseIcon = false;
|
110
|
+
this.showMaximiseIcon = false;
|
111
111
|
/** @internal */
|
112
112
|
_FoundationLayout__boundDragListener.set(this, undefined);
|
113
113
|
this.onDragStart = this.onDragStart.bind(this);
|
@@ -126,7 +126,6 @@ export class FoundationLayout extends FoundationElement {
|
|
126
126
|
this.updateLifecycleToken();
|
127
127
|
this.layout = new GoldenLayout(this.layoutElement);
|
128
128
|
this.layout.resizeWithContainerAutomatically = true;
|
129
|
-
this.setupOverrides();
|
130
129
|
if (!appliedGlobalStyles) {
|
131
130
|
new CSSStyleSheet()
|
132
131
|
.replace(globalDraggingStyles)
|
@@ -398,7 +397,6 @@ export class FoundationLayout extends FoundationElement {
|
|
398
397
|
if (!this.layout.getRegisteredComponentTypeNames().includes(registration)) {
|
399
398
|
throw new LayoutRegistrationError(`Cannot add item '${registration}' which is not registered with the layout system.`);
|
400
399
|
}
|
401
|
-
this.setupOverrides();
|
402
400
|
return {
|
403
401
|
type: 'component',
|
404
402
|
componentType: registration,
|
@@ -715,7 +713,8 @@ export class FoundationLayout extends FoundationElement {
|
|
715
713
|
*/
|
716
714
|
loadGLConfigAndSetup(config) {
|
717
715
|
this.hasFirstLoaded = true;
|
718
|
-
|
716
|
+
const layoutConfig = Object.assign(Object.assign({}, config), { header: Object.assign(Object.assign({}, config.header), { maximise: this.showMaximiseIcon ? 'maximise' : false, close: this.showCloseIcon ? 'close' : false }) });
|
717
|
+
this.layout.loadLayout(Object.assign(Object.assign(Object.assign({}, layoutConfig), glVisualConfig), { dimensions: Object.assign(Object.assign({}, glVisualConfig.dimensions), this.dimensionsConfig) }));
|
719
718
|
this.attatchResizeEvents();
|
720
719
|
}
|
721
720
|
/**
|
@@ -807,9 +806,6 @@ export class FoundationLayout extends FoundationElement {
|
|
807
806
|
});
|
808
807
|
this.popupMode = window.location.search.includes(LAYOUT_POPOUT_CONTROL_KEY);
|
809
808
|
}
|
810
|
-
setupOverrides() {
|
811
|
-
this.layout.layoutConfig = Object.assign(Object.assign({}, this.layout.layoutConfig), { header: Object.assign(Object.assign({}, this.layout.layoutConfig.header), { maximise: this.showMaximiseIcons ? 'maximise' : false, close: this.showCloseIcons ? 'close' : false }) });
|
812
|
-
}
|
813
809
|
}
|
814
810
|
_FoundationLayout__boundDragListener = new WeakMap(), _a = componentType;
|
815
811
|
__decorate([
|
@@ -840,11 +836,11 @@ __decorate([
|
|
840
836
|
attr({ attribute: 'popout-config' })
|
841
837
|
], FoundationLayout.prototype, "popoutConfig", void 0);
|
842
838
|
__decorate([
|
843
|
-
attr({ attribute: '
|
844
|
-
], FoundationLayout.prototype, "
|
839
|
+
attr({ attribute: 'showCloseIcon' })
|
840
|
+
], FoundationLayout.prototype, "showCloseIcon", void 0);
|
845
841
|
__decorate([
|
846
|
-
attr({ attribute: '
|
847
|
-
], FoundationLayout.prototype, "
|
842
|
+
attr({ attribute: 'showMaximiseIcon' })
|
843
|
+
], FoundationLayout.prototype, "showMaximiseIcon", void 0);
|
848
844
|
const loadingTemplate = html `
|
849
845
|
<div class="html-spinner"></div>
|
850
846
|
`;
|
@@ -586,6 +586,37 @@
|
|
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
|
+
},
|
589
620
|
{
|
590
621
|
"kind": "Method",
|
591
622
|
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout.layoutRequiredRegistrations:member(1)",
|
@@ -1002,12 +1033,12 @@
|
|
1002
1033
|
},
|
1003
1034
|
{
|
1004
1035
|
"kind": "Property",
|
1005
|
-
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#
|
1036
|
+
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#showCloseIcon:member",
|
1006
1037
|
"docComment": "",
|
1007
1038
|
"excerptTokens": [
|
1008
1039
|
{
|
1009
1040
|
"kind": "Content",
|
1010
|
-
"text": "
|
1041
|
+
"text": "showCloseIcon: "
|
1011
1042
|
},
|
1012
1043
|
{
|
1013
1044
|
"kind": "Content",
|
@@ -1021,7 +1052,7 @@
|
|
1021
1052
|
"isReadonly": false,
|
1022
1053
|
"isOptional": false,
|
1023
1054
|
"releaseTag": "Public",
|
1024
|
-
"name": "
|
1055
|
+
"name": "showCloseIcon",
|
1025
1056
|
"propertyTypeTokenRange": {
|
1026
1057
|
"startIndex": 1,
|
1027
1058
|
"endIndex": 2
|
@@ -1032,12 +1063,12 @@
|
|
1032
1063
|
},
|
1033
1064
|
{
|
1034
1065
|
"kind": "Property",
|
1035
|
-
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#
|
1066
|
+
"canonicalReference": "@genesislcap/foundation-layout!FoundationLayout#showMaximiseIcon:member",
|
1036
1067
|
"docComment": "",
|
1037
1068
|
"excerptTokens": [
|
1038
1069
|
{
|
1039
1070
|
"kind": "Content",
|
1040
|
-
"text": "
|
1071
|
+
"text": "showMaximiseIcon: "
|
1041
1072
|
},
|
1042
1073
|
{
|
1043
1074
|
"kind": "Content",
|
@@ -1051,7 +1082,7 @@
|
|
1051
1082
|
"isReadonly": false,
|
1052
1083
|
"isOptional": false,
|
1053
1084
|
"releaseTag": "Public",
|
1054
|
-
"name": "
|
1085
|
+
"name": "showMaximiseIcon",
|
1055
1086
|
"propertyTypeTokenRange": {
|
1056
1087
|
"startIndex": 1,
|
1057
1088
|
"endIndex": 2
|
@@ -2,6 +2,7 @@ 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';
|
5
6
|
import { LayoutConfig } from '@genesis-community/golden-layout';
|
6
7
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
7
8
|
import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
|
@@ -52,7 +53,7 @@ export declare const DEFAULT_RELOAD_BUFFER = 500;
|
|
52
53
|
*/
|
53
54
|
export declare class FoundationLayout extends FoundationElement implements LayoutComponent {
|
54
55
|
#private;
|
55
|
-
|
56
|
+
layout: GoldenLayout;
|
56
57
|
/** @internal */
|
57
58
|
layoutElement: HTMLElement;
|
58
59
|
private layoutConfig;
|
@@ -137,8 +138,8 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
137
138
|
*/
|
138
139
|
popoutConfig: string | undefined;
|
139
140
|
private popupMode;
|
140
|
-
|
141
|
-
|
141
|
+
showCloseIcon: boolean;
|
142
|
+
showMaximiseIcon: boolean;
|
142
143
|
/** @internal */
|
143
144
|
constructor();
|
144
145
|
/** @internal */
|
@@ -380,7 +381,6 @@ export declare class FoundationLayout extends FoundationElement implements Layou
|
|
380
381
|
* @internal
|
381
382
|
*/
|
382
383
|
private initPopoutModeIfEnabled;
|
383
|
-
private setupOverrides;
|
384
384
|
}
|
385
385
|
|
386
386
|
/**
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [layout](./foundation-layout.foundationlayout.layout.md)
|
4
4
|
|
5
|
-
## FoundationLayout.
|
5
|
+
## FoundationLayout.layout property
|
6
6
|
|
7
7
|
**Signature:**
|
8
8
|
|
9
9
|
```typescript
|
10
|
-
|
10
|
+
layout: GoldenLayout;
|
11
11
|
```
|
@@ -31,12 +31,13 @@ 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 | |
|
34
35
|
| [lifecycleUpdateToken](./foundation-layout.foundationlayout.lifecycleupdatetoken.md) | | string \| undefined | Used to calculate whether a layout item should run its lifecycle methods or not |
|
35
36
|
| [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. |
|
36
37
|
| [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. |
|
37
38
|
| [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). |
|
38
|
-
| [
|
39
|
-
| [
|
39
|
+
| [showCloseIcon](./foundation-layout.foundationlayout.showcloseicon.md) | | boolean | |
|
40
|
+
| [showMaximiseIcon](./foundation-layout.foundationlayout.showmaximiseicon.md) | | boolean | |
|
40
41
|
|
41
42
|
## Methods
|
42
43
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-layout](./foundation-layout.md) > [FoundationLayout](./foundation-layout.foundationlayout.md) > [showCloseIcon](./foundation-layout.foundationlayout.showcloseicon.md)
|
4
4
|
|
5
|
-
## FoundationLayout.
|
5
|
+
## FoundationLayout.showCloseIcon property
|
6
6
|
|
7
7
|
**Signature:**
|
8
8
|
|
9
9
|
```typescript
|
10
|
-
|
10
|
+
showCloseIcon: boolean;
|
11
11
|
```
|
@@ -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) > [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
|
+
```
|
package/docs/api-report.md
CHANGED
@@ -8,6 +8,7 @@ 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';
|
11
12
|
import { LayoutConfig } from '@genesis-community/golden-layout';
|
12
13
|
import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
|
13
14
|
import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
|
@@ -47,6 +48,8 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone
|
|
47
48
|
dragging: boolean;
|
48
49
|
getLayout(): SerialisedLayout;
|
49
50
|
hasFirstLoaded: boolean;
|
51
|
+
// (undocumented)
|
52
|
+
layout: GoldenLayout;
|
50
53
|
// @internal (undocumented)
|
51
54
|
layoutElement: HTMLElement;
|
52
55
|
static layoutRequiredRegistrations(layout: SerialisedLayout): string[];
|
@@ -62,9 +65,9 @@ export class FoundationLayout extends FoundationElement implements LayoutCompone
|
|
62
65
|
// @internal
|
63
66
|
requestLayoutReload(): void;
|
64
67
|
// (undocumented)
|
65
|
-
|
68
|
+
showCloseIcon: boolean;
|
66
69
|
// (undocumented)
|
67
|
-
|
70
|
+
showMaximiseIcon: boolean;
|
68
71
|
// @beta
|
69
72
|
tryActivatePopoutMode(): boolean;
|
70
73
|
tryLoadLayoutFromLocalStorage(): boolean;
|
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-aa210cb.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-aa210cb.0",
|
40
|
+
"@genesislcap/genx": "14.231.1-alpha-aa210cb.0",
|
41
|
+
"@genesislcap/rollup-builder": "14.231.1-alpha-aa210cb.0",
|
42
|
+
"@genesislcap/ts-builder": "14.231.1-alpha-aa210cb.0",
|
43
|
+
"@genesislcap/uvu-playwright-builder": "14.231.1-alpha-aa210cb.0",
|
44
|
+
"@genesislcap/vite-builder": "14.231.1-alpha-aa210cb.0",
|
45
|
+
"@genesislcap/webpack-builder": "14.231.1-alpha-aa210cb.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-aa210cb.0",
|
51
|
+
"@genesislcap/foundation-logger": "14.231.1-alpha-aa210cb.0",
|
52
|
+
"@genesislcap/foundation-utils": "14.231.1-alpha-aa210cb.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": "60014b9af62862567598d595f63c89b20a20c642"
|
68
68
|
}
|