@genesislcap/foundation-layout 9.0.1-alpha-b5c5eb7.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/README.md +916 -0
- package/dist/1.0.0.remoteEntry.js +1 -0
- package/dist/191.191.106ece7a41ded6731029.js +2 -0
- package/dist/191.9a61143c2afb6057ad1bae886d5d1a6e.js.map +1 -0
- package/dist/259.09c601e5288d875caab4df1e2354c0ea.js.map +1 -0
- package/dist/259.259.216fcad43e9a38888e08.js +2 -0
- package/dist/415.415.094780a1a1162c7e5f1c.js +3 -0
- package/dist/415.415.094780a1a1162c7e5f1c.js.LICENSE.txt +4 -0
- package/dist/415.fcfb4f02eaecbfa31fc322639f244245.js.map +1 -0
- package/dist/459.459.c9f0bb440eb1f041c99e.js +515 -0
- package/dist/459.cb5f5b49b4e8881992c420f3b1ca863d.js.map +1 -0
- package/dist/623.623.0e7e8f23454ee96ed9c8.js +3 -0
- package/dist/623.623.0e7e8f23454ee96ed9c8.js.LICENSE.txt +4 -0
- package/dist/623.e8f211473f9034c4157d362efb017821.js.map +1 -0
- package/dist/755.718e14af7194fb741f98580b24b2bb8f.js.map +1 -0
- package/dist/755.755.f93ee58c2b836a669ec4.js +2 -0
- package/dist/dashboard.json +1 -0
- package/dist/dts/index.d.ts +3 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/index.federated.d.ts +1 -0
- package/dist/dts/index.federated.d.ts.map +1 -0
- package/dist/dts/main/index.d.ts +6 -0
- package/dist/dts/main/index.d.ts.map +1 -0
- package/dist/dts/main/layout-components.d.ts +42 -0
- package/dist/dts/main/layout-components.d.ts.map +1 -0
- package/dist/dts/main/layout-item.d.ts +70 -0
- package/dist/dts/main/layout-item.d.ts.map +1 -0
- package/dist/dts/main/layout-main.d.ts +186 -0
- package/dist/dts/main/layout-main.d.ts.map +1 -0
- package/dist/dts/main/layout-region.d.ts +70 -0
- package/dist/dts/main/layout-region.d.ts.map +1 -0
- package/dist/dts/styles/constants.d.ts +7 -0
- package/dist/dts/styles/constants.d.ts.map +1 -0
- package/dist/dts/styles/dragging.styles.d.ts +7 -0
- package/dist/dts/styles/dragging.styles.d.ts.map +1 -0
- package/dist/dts/styles/index.d.ts +4 -0
- package/dist/dts/styles/index.d.ts.map +1 -0
- package/dist/dts/styles/layout.styles.d.ts +8 -0
- package/dist/dts/styles/layout.styles.d.ts.map +1 -0
- package/dist/dts/utils/constants.d.ts +14 -0
- package/dist/dts/utils/constants.d.ts.map +1 -0
- package/dist/dts/utils/error.d.ts +13 -0
- package/dist/dts/utils/error.d.ts.map +1 -0
- package/dist/dts/utils/events.d.ts +38 -0
- package/dist/dts/utils/events.d.ts.map +1 -0
- package/dist/dts/utils/index.d.ts +7 -0
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/logger.d.ts +2 -0
- package/dist/dts/utils/logger.d.ts.map +1 -0
- package/dist/dts/utils/misc.d.ts +10 -0
- package/dist/dts/utils/misc.d.ts.map +1 -0
- package/dist/dts/utils/templates.d.ts +6 -0
- package/dist/dts/utils/templates.d.ts.map +1 -0
- package/dist/dts/utils/types.d.ts +63 -0
- package/dist/dts/utils/types.d.ts.map +1 -0
- package/dist/esm/index.federated.js +2 -0
- package/dist/esm/index.federated.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/main/index.js +6 -0
- package/dist/esm/main/index.js.map +1 -0
- package/dist/esm/main/layout-components.js +36 -0
- package/dist/esm/main/layout-components.js.map +1 -0
- package/dist/esm/main/layout-item.js +86 -0
- package/dist/esm/main/layout-item.js.map +1 -0
- package/dist/esm/main/layout-main.js +391 -0
- package/dist/esm/main/layout-main.js.map +1 -0
- package/dist/esm/main/layout-region.js +98 -0
- package/dist/esm/main/layout-region.js.map +1 -0
- package/dist/esm/main/main.css +17 -0
- package/dist/esm/styles/constants.js +16 -0
- package/dist/esm/styles/constants.js.map +1 -0
- package/dist/esm/styles/dragging.styles.js +116 -0
- package/dist/esm/styles/dragging.styles.js.map +1 -0
- package/dist/esm/styles/index.js +4 -0
- package/dist/esm/styles/index.js.map +1 -0
- package/dist/esm/styles/layout.styles.js +530 -0
- package/dist/esm/styles/layout.styles.js.map +1 -0
- package/dist/esm/utils/constants.js +14 -0
- package/dist/esm/utils/constants.js.map +1 -0
- package/dist/esm/utils/error.js +17 -0
- package/dist/esm/utils/error.js.map +1 -0
- package/dist/esm/utils/events.js +26 -0
- package/dist/esm/utils/events.js.map +1 -0
- package/dist/esm/utils/index.js +7 -0
- package/dist/esm/utils/index.js.map +1 -0
- package/dist/esm/utils/logger.js +3 -0
- package/dist/esm/utils/logger.js.map +1 -0
- package/dist/esm/utils/misc.js +24 -0
- package/dist/esm/utils/misc.js.map +1 -0
- package/dist/esm/utils/templates.js +11 -0
- package/dist/esm/utils/templates.js.map +1 -0
- package/dist/esm/utils/types.js +4 -0
- package/dist/esm/utils/types.js.map +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/foundation-layout.api.json +1574 -0
- package/dist/foundation-layout.d.ts +478 -0
- package/dist/foundationLayout.8b94161c9f0d0d475d026a05513893c1.js.map +1 -0
- package/dist/index.ejs +23 -0
- package/dist/index.html +15 -0
- package/dist/info.ejs +13 -0
- package/dist/main.40c13c1585eb6fa5761a17ab29a7851e.js.map +1 -0
- package/dist/main.94f8a6853d484ec34632.js +2 -0
- package/dist/npm.consola.713.b1e4073e73c71572987a.js +2 -0
- package/dist/npm.consola.a0d3324d3e61dcc430c3029da5f4dcc7.js.map +1 -0
- package/dist/npm.genesis-community.248.9c9900001dbc5ba9c3ed.js +2 -0
- package/dist/npm.genesis-community.2e0cc159dabe113d6fb29bb505c1a0d4.js.map +1 -0
- package/dist/npm.microsoft.127.00f16f24d8da8fd89263.js +1469 -0
- package/dist/npm.microsoft.127.00f16f24d8da8fd89263.js.LICENSE.txt +14 -0
- package/dist/npm.microsoft.be43958facd28231e770c1307660f64d.js.map +1 -0
- package/dist/remoteEntry.js +2 -0
- package/dist/serve.json +3 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-layout.default_reload_buffer.md +18 -0
- package/docs/api/foundation-layout.foundationlayout.additem.md +38 -0
- package/docs/api/foundation-layout.foundationlayout.dragging.md +16 -0
- package/docs/api/foundation-layout.foundationlayout.getlayout.md +22 -0
- package/docs/api/foundation-layout.foundationlayout.layoutrequiredregistrations.md +37 -0
- package/docs/api/foundation-layout.foundationlayout.loadlayout.md +37 -0
- package/docs/api/foundation-layout.foundationlayout.md +44 -0
- package/docs/api/foundation-layout.foundationlayout.registereditems.md +26 -0
- package/docs/api/foundation-layout.foundationlayout.registeritem.md +42 -0
- package/docs/api/foundation-layout.foundationlayout.reloadbuffer.md +16 -0
- package/docs/api/foundation-layout.foundationlayoutcomponents.md +50 -0
- package/docs/api/foundation-layout.foundationlayoutitem.closable.md +16 -0
- package/docs/api/foundation-layout.foundationlayoutitem.md +35 -0
- package/docs/api/foundation-layout.foundationlayoutitem.registration.md +21 -0
- package/docs/api/foundation-layout.foundationlayoutitem.size.md +16 -0
- package/docs/api/foundation-layout.foundationlayoutitem.title.md +21 -0
- package/docs/api/foundation-layout.foundationlayoutregion.md +33 -0
- package/docs/api/foundation-layout.foundationlayoutregion.size.md +16 -0
- package/docs/api/foundation-layout.foundationlayoutregion.type.md +16 -0
- package/docs/api/foundation-layout.layoutemitevents.md +22 -0
- package/docs/api/foundation-layout.layoutreceiveevents.md +20 -0
- package/docs/api/foundation-layout.layoutreceiveeventsdetail.md +23 -0
- package/docs/api/foundation-layout.layoutregiontype.md +16 -0
- package/docs/api/foundation-layout.layoutregistrationerror._constructor_.md +23 -0
- package/docs/api/foundation-layout.layoutregistrationerror.md +23 -0
- package/docs/api/foundation-layout.layoutstyles.md +21 -0
- package/docs/api/foundation-layout.layouttemplate.md +21 -0
- package/docs/api/foundation-layout.layoutusageerror._constructor_.md +23 -0
- package/docs/api/foundation-layout.layoutusageerror.md +23 -0
- package/docs/api/foundation-layout.md +42 -0
- package/docs/api/foundation-layout.placement.md +18 -0
- package/docs/api/foundation-layout.registeredelementconfig.closable.md +14 -0
- package/docs/api/foundation-layout.registeredelementconfig.md +30 -0
- package/docs/api/foundation-layout.registeredelementconfig.registration.md +14 -0
- package/docs/api/foundation-layout.registeredelementconfig.size.md +14 -0
- package/docs/api/foundation-layout.registeredelementconfig.title.md +14 -0
- package/docs/api/foundation-layout.serialisedlayout.md +26 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +235 -0
- package/docs/img/foundation-layout-example.png +0 -0
- package/license.txt +46 -0
- package/package.json +80 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { RootItemConfig } from '@genesis-community/golden-layout';
|
|
2
|
+
import { componentType, LayoutComponent, LayoutRegionType, RegistrationConfig } from '../utils';
|
|
3
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
4
|
+
/**
|
|
5
|
+
* @beta
|
|
6
|
+
* `FoundationLayoutRegion` is a custom element that represents a region in the layout.
|
|
7
|
+
* @remarks
|
|
8
|
+
* This element is used to create a region in the layout. It can be used to create a horizontal or vertical split, or a tabbed region.
|
|
9
|
+
*
|
|
10
|
+
* This is a simple component which is only used to define the layout splits; any JavaScript API interactions or custom styling is used via {@link FoundationLayout}.
|
|
11
|
+
*/
|
|
12
|
+
export declare class FoundationLayoutRegion extends FoundationElement implements LayoutComponent {
|
|
13
|
+
/**
|
|
14
|
+
* optional string describing the size of the new item (see the written documentation for more info)
|
|
15
|
+
* @beta
|
|
16
|
+
*/
|
|
17
|
+
size: string;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the {@link LayoutRegionType | type} of the region.
|
|
20
|
+
* Defaults to `horizontal`.
|
|
21
|
+
* @beta
|
|
22
|
+
*/
|
|
23
|
+
type: LayoutRegionType;
|
|
24
|
+
/** @internal */
|
|
25
|
+
[componentType]: LayoutRegionType;
|
|
26
|
+
/**
|
|
27
|
+
* Reference to the config in the whole layout config for this
|
|
28
|
+
* specific region.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
private layoutConfig;
|
|
32
|
+
/** @internal */
|
|
33
|
+
connectedCallback(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the layout config for this region using {@link FoundationLayoutRegion.constructLayoutConfig} and adds it into the main config tree via the parents. It saves a reference to the this config so a child can add its config in later.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
private setupLayoutRegion;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a golden layout config for this object.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
private constructLayoutConfig;
|
|
44
|
+
/** @internal */
|
|
45
|
+
private getParentLayoutComponent;
|
|
46
|
+
/** @internal */
|
|
47
|
+
addItemFromChild<T extends RootItemConfig>(item: T): T;
|
|
48
|
+
/** @internal */
|
|
49
|
+
requestLayoutReload(): void;
|
|
50
|
+
/** @internal */
|
|
51
|
+
cacheElementsAndRegister(config: RegistrationConfig): string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The FoundationLayoutRegion Composed element
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* @remarks
|
|
58
|
+
* Can be registered with the design system via {@link foundationlayoutComponents}.
|
|
59
|
+
* You do not need to compose your own version of this to update the styles of the layout.
|
|
60
|
+
*
|
|
61
|
+
* Tag Name: <{prefix}-layout-region>
|
|
62
|
+
*/
|
|
63
|
+
export declare const foundationLayoutRegion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
64
|
+
baseName: string;
|
|
65
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
66
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
67
|
+
baseName: string;
|
|
68
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
69
|
+
}, typeof FoundationLayoutRegion>;
|
|
70
|
+
//# sourceMappingURL=layout-region.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-region.d.ts","sourceRoot":"","sources":["../../../src/main/layout-region.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,cAAc,EACf,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EACL,aAAa,EAEb,eAAe,EACf,gBAAgB,EAEhB,kBAAkB,EAEnB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAc/D;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,iBAAkB,YAAW,eAAe;IACtF;;;OAGG;IACG,IAAI,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACG,IAAI,EAAE,gBAAgB,CAAC;IAE7B,gBAAgB;IAChB,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAgB;IAEjD;;;;OAIG;IACH,OAAO,CAAC,YAAY,CAA0C;IAE9D,gBAAgB;IAChB,iBAAiB,IAAI,IAAI;IAUzB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;;OAGG;IACH,OAAO,CAAC,qBAAqB;IAS7B,gBAAgB;IAChB,OAAO,CAAC,wBAAwB;IAIhC,gBAAgB;IAChB,gBAAgB,CAAC,CAAC,SAAS,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC;IAKtD,gBAAgB;IAChB,mBAAmB,IAAI,IAAI;IAI3B,gBAAgB;IAChB,wBAAwB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM;CAG7D;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB;;;;;;iCAGjC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LayoutConfig } from '@genesis-community/golden-layout';
|
|
2
|
+
export declare const glVisualConfig: Omit<LayoutConfig, 'root'>;
|
|
3
|
+
export declare const maximisSVG = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9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4=";
|
|
7
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/styles/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,eAAO,MAAM,cAAc,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAUrD,CAAC;AAEF,eAAO,MAAM,UAAU,ulCAC+jC,CAAC;AAEvlC,eAAO,MAAM,WAAW,+hBACsgB,CAAC;AAE/hB,eAAO,MAAM,QAAQ,u2BACi1B,CAAC;AAEv2B,eAAO,MAAM,cAAc,2sBAC+qB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dragging.styles.d.ts","sourceRoot":"","sources":["../../../src/styles/dragging.styles.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QA4GhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `ElementStyles` which defines the css for {@link FoundationLayout}.
|
|
3
|
+
* @remarks
|
|
4
|
+
* Can be used in a composition to customise the styles of the layout.
|
|
5
|
+
* @beta
|
|
6
|
+
*/
|
|
7
|
+
export declare const layoutStyles: import("@microsoft/fast-element").ElementStyles;
|
|
8
|
+
//# sourceMappingURL=layout.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.styles.d.ts","sourceRoot":"","sources":["../../../src/styles/layout.styles.ts"],"names":[],"mappings":"AAkGA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,iDAkbxB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used to key what type of LayoutComponent an object is
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const componentType: unique symbol;
|
|
6
|
+
/**
|
|
7
|
+
* Default time in milliseconds for the layout to buffer calls to reloading
|
|
8
|
+
* the layout while the declarative API is loading.
|
|
9
|
+
*
|
|
10
|
+
* During the first load of the layout, a loading spinner will be shown.
|
|
11
|
+
* @beta
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_RELOAD_BUFFER = 500;
|
|
14
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,aAAa,eAA2B,CAAC;AAEtD;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
*/
|
|
4
|
+
export declare class LayoutUsageError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @beta
|
|
9
|
+
*/
|
|
10
|
+
export declare class LayoutRegistrationError extends Error {
|
|
11
|
+
constructor(message: string);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/utils/error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,KAAK;gBAC7B,OAAO,EAAE,MAAM;CAG5B;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,OAAO,EAAE,MAAM;CAG5B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines events that the layout system emits
|
|
3
|
+
*
|
|
4
|
+
* 'firstLoaded' - emitted when the layout has finished loading the first time
|
|
5
|
+
* using the declarative API after {@link DEFAULT_RELOAD_BUFFER} ms.
|
|
6
|
+
* <br/>
|
|
7
|
+
* 'itemAdded' - emitted when an item is added to the layout'
|
|
8
|
+
* <br/>
|
|
9
|
+
* 'itemRemoved' - emitted when an item is removed from the layout'
|
|
10
|
+
* @beta
|
|
11
|
+
*/
|
|
12
|
+
export declare const LayoutEmitEvents: {
|
|
13
|
+
readonly firstLoaded: "first-loaded";
|
|
14
|
+
readonly itemAdded: "item-added";
|
|
15
|
+
readonly itemRemoved: "item-removed";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Defines events that the layout system listens for
|
|
19
|
+
*
|
|
20
|
+
* 'changeTitle' - emit this from a contained item to update the title of the window that contains it.
|
|
21
|
+
* @beta
|
|
22
|
+
*/
|
|
23
|
+
export declare const LayoutReceiveEvents: {
|
|
24
|
+
readonly changeTitle: "change-title";
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Defines the shape of the detail that the layout listens works with for events it listens on
|
|
28
|
+
*
|
|
29
|
+
* 'changeTitle' - `title` is the string you want to set. For `mode`: `replace` will set the title to be `title`, `suffix` will append `title` to the end of the existing title.
|
|
30
|
+
* @beta
|
|
31
|
+
*/
|
|
32
|
+
export type LayoutReceiveEventsDetail = {
|
|
33
|
+
changeTitle: {
|
|
34
|
+
title: string;
|
|
35
|
+
mode: 'replace' | 'suffix';
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/utils/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;KAAE,CAAC;CAC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,gDAAoC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationLayout, FoundationLayoutRegion } from '../main';
|
|
2
|
+
/**
|
|
3
|
+
* Returns an array of values of the array a which are missing in b
|
|
4
|
+
* An empty array is returned if every value of a is in b
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function getMissingArrayItems<T>(a: T[], b: T[]): T[];
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare function getParentLayoutComponent(): FoundationLayout | FoundationLayoutRegion;
|
|
10
|
+
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGnE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAE3D;AAED,gBAAgB;AAChB,wBAAgB,wBAAwB,IAAI,gBAAgB,GAAG,sBAAsB,CAYpF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/utils/templates.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,eAAe,0DAI3B,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
|
|
2
|
+
import { componentType } from './';
|
|
3
|
+
/**
|
|
4
|
+
* @beta
|
|
5
|
+
* Versioned layout config objects. `v` is the version and `c` contains the layout config.
|
|
6
|
+
* @remarks
|
|
7
|
+
* Versioning the layout config in this way allows changes to the config schema while
|
|
8
|
+
* remaining backwards compatible with any existing client/user configurations. When loading an
|
|
9
|
+
* older version of the configurations the version can be used to lookup and apply transformer functions
|
|
10
|
+
* to get the newest version of the config from it.
|
|
11
|
+
*
|
|
12
|
+
* As more versions of configurations are added this type will have extra union types as part of SerialisedLayout.
|
|
13
|
+
*/
|
|
14
|
+
export type SerialisedLayout = {
|
|
15
|
+
v: '1';
|
|
16
|
+
c: ResolvedLayoutConfig;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @beta
|
|
20
|
+
* The parameters that can be set on a new item when being added by the {@link FoundationLayout.addItem} API
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* `elements` - array of Elements that are the content of the new item
|
|
24
|
+
* `title` - optional string which is used as the new title of the tab (defaults to be the registered name)
|
|
25
|
+
* `closable` - optional boolean which allows the item to be closed with the X button if set and true
|
|
26
|
+
* `size` - optional string describing the size of the new item (see the written documentation for more info)
|
|
27
|
+
* `registration` - optional string configuring the registration ID of the new item (defaults to sequential IDs)
|
|
28
|
+
*/
|
|
29
|
+
export interface RegisteredElementConfig {
|
|
30
|
+
registration: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
closable?: boolean;
|
|
33
|
+
size?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @beta
|
|
37
|
+
* Where to add the new item into the layout when using the {@link FoundationLayout.addItem} API
|
|
38
|
+
*/
|
|
39
|
+
export type Placement = {
|
|
40
|
+
area: 'top' | 'left' | 'bottom' | 'right';
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export interface RegistrationConfig {
|
|
44
|
+
elements: Element[];
|
|
45
|
+
id?: string;
|
|
46
|
+
}
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const layoutRegionValue: readonly ["horizontal", "vertical", "tabs"];
|
|
49
|
+
/**
|
|
50
|
+
* @beta
|
|
51
|
+
* Union type describing the three different types of region splits.
|
|
52
|
+
* Set on the `type` attribute on {@link FoundationLayoutRegion}.
|
|
53
|
+
*/
|
|
54
|
+
export type LayoutRegionType = (typeof layoutRegionValue)[number];
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type ComponentTypes = LayoutRegionType | 'root' | 'item';
|
|
57
|
+
/** @internal */
|
|
58
|
+
export interface LayoutComponent {
|
|
59
|
+
[componentType]: ComponentTypes;
|
|
60
|
+
cacheElementsAndRegister(config: RegistrationConfig): string;
|
|
61
|
+
requestLayoutReload(): void;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAEnC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,oBAAoB,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,gBAAgB;AAChB,eAAO,MAAM,iBAAiB,6CAA8C,CAAC;AAC7E;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.federated.js","sourceRoot":"","sources":["../../src/index.federated.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FoundationLayoutItem } from './layout-item';
|
|
2
|
+
export { FoundationLayoutRegion } from './layout-region';
|
|
3
|
+
export { FoundationLayout, layoutStyles, layoutTemplate } from './layout-main';
|
|
4
|
+
export * from './layout-components';
|
|
5
|
+
export { DEFAULT_RELOAD_BUFFER, LayoutEmitEvents, LayoutReceiveEvents, } from '../utils';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/E,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,GAMpB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { foundationLayout } from './layout-main';
|
|
2
|
+
import { foundationLayoutRegion } from './layout-region';
|
|
3
|
+
import { foundationLayoutItem } from './layout-item';
|
|
4
|
+
/**
|
|
5
|
+
* Registration object to register the layout with your design system.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Registers the three layout component types with the design system.
|
|
9
|
+
* You require to use the prefix of the design system with each tag.
|
|
10
|
+
* If you wish to alternate the styles of the layout you only need to compose your own custom
|
|
11
|
+
* version of {@link FoundationLayout} as this contains the styles for the entire layout.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* `<zero-layout></zero-layout>` if you are using the layout with the `zero` design-system.
|
|
15
|
+
*
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
18
|
+
export const foundationLayoutComponents = {
|
|
19
|
+
foundationLayout,
|
|
20
|
+
foundationLayoutRegion,
|
|
21
|
+
foundationLayoutItem,
|
|
22
|
+
register(container, ...rest) {
|
|
23
|
+
if (!container) {
|
|
24
|
+
// preserve backward compatibility with code that loops through
|
|
25
|
+
// the values of this object and calls them as funcs with no args
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
for (const key in this) {
|
|
29
|
+
if (key === 'register') {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
this[key]().register(container, ...rest);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=layout-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-components.js","sourceRoot":"","sources":["../../../src/main/layout-components.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,gBAAgB;IAChB,sBAAsB;IACtB,oBAAoB;IACpB,QAAQ,CAAC,SAAqB,EAAE,GAAG,IAAW;QAC5C,IAAI,CAAC,SAAS,EAAE;YACd,+DAA+D;YAC/D,iEAAiE;YACjE,OAAO;SACR;QACD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,IAAI,GAAG,KAAK,UAAU,EAAE;gBACtB,SAAS;aACV;YACD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC;SAC1C;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { __decorate } from "tslib";
|
|
3
|
+
import { attr } from '@microsoft/fast-element';
|
|
4
|
+
import { componentType, getParentLayoutComponent, wrapperTemplate, } from '../utils';
|
|
5
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
6
|
+
/**
|
|
7
|
+
* @beta
|
|
8
|
+
* `FoundationLayoutItem` is a custom element that represents an item in the layout.
|
|
9
|
+
* @remarks
|
|
10
|
+
* This element is used to wrap html elements and configure their layout settings as part of the layout system.
|
|
11
|
+
*
|
|
12
|
+
* This is a simple component which is only used to define the layout splits; any JavaScript API interactions or custom styling is used via {@link FoundationLayout}.
|
|
13
|
+
*/
|
|
14
|
+
export class FoundationLayoutItem extends FoundationElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Boolean attribute controls whether the window can be closed in the GUI.
|
|
19
|
+
* Defaults to `false`.
|
|
20
|
+
* @beta
|
|
21
|
+
*/
|
|
22
|
+
this.closable = false;
|
|
23
|
+
/** @internal */
|
|
24
|
+
this[_a] = 'item';
|
|
25
|
+
}
|
|
26
|
+
/** @internal */
|
|
27
|
+
connectedCallback() {
|
|
28
|
+
var _b;
|
|
29
|
+
super.connectedCallback();
|
|
30
|
+
this.slottedElements = this.shadowRoot.querySelector('slot.target').assignedElements();
|
|
31
|
+
const registeredID = this.cacheElementsAndRegister({
|
|
32
|
+
elements: this.slottedElements,
|
|
33
|
+
id: this.registration,
|
|
34
|
+
});
|
|
35
|
+
const itemConfig = {
|
|
36
|
+
type: 'component',
|
|
37
|
+
componentType: registeredID,
|
|
38
|
+
title: (_b = this.title) !== null && _b !== void 0 ? _b : `Item ${registeredID}`,
|
|
39
|
+
reorderEnabled: true,
|
|
40
|
+
isClosable: this.closable,
|
|
41
|
+
size: this.size,
|
|
42
|
+
};
|
|
43
|
+
this.getParentLayoutComponent().addItemFromChild(itemConfig);
|
|
44
|
+
this.requestLayoutReload();
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
getParentLayoutComponent() {
|
|
48
|
+
return getParentLayoutComponent.apply(this);
|
|
49
|
+
}
|
|
50
|
+
/** @internal */
|
|
51
|
+
requestLayoutReload() {
|
|
52
|
+
this.getParentLayoutComponent().requestLayoutReload();
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
cacheElementsAndRegister(config) {
|
|
56
|
+
return this.getParentLayoutComponent().cacheElementsAndRegister(config);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
_a = componentType;
|
|
60
|
+
__decorate([
|
|
61
|
+
attr
|
|
62
|
+
], FoundationLayoutItem.prototype, "title", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
attr({ mode: 'boolean' })
|
|
65
|
+
], FoundationLayoutItem.prototype, "closable", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
attr
|
|
68
|
+
], FoundationLayoutItem.prototype, "size", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
attr
|
|
71
|
+
], FoundationLayoutItem.prototype, "registration", void 0);
|
|
72
|
+
/**
|
|
73
|
+
* The FoundationLayoutItem Composed element
|
|
74
|
+
*
|
|
75
|
+
* @internal
|
|
76
|
+
* @remarks
|
|
77
|
+
* Can be registered with the design system via {@link foundationlayoutComponents}.
|
|
78
|
+
* You do not need to compose your own version of this to update the styles of the layout.
|
|
79
|
+
*
|
|
80
|
+
* Tag Name: <{prefix}-layout-item>
|
|
81
|
+
*/
|
|
82
|
+
export const foundationLayoutItem = FoundationLayoutItem.compose({
|
|
83
|
+
baseName: 'layout-item',
|
|
84
|
+
template: wrapperTemplate,
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=layout-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-item.js","sourceRoot":"","sources":["../../../src/main/layout-item.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,OAAO,EACL,aAAa,EACb,wBAAwB,EAGxB,eAAe,GAChB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;;;;;GAOG;AACH,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IAA3D;;QASE;;;;WAIG;QACwB,aAAQ,GAAY,KAAK,CAAC;QAmBrD,gBAAgB;QAChB,QAAe,GAAG,MAAe,CAAC;IA6CpC,CA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