@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.
Files changed (156) hide show
  1. package/README.md +916 -0
  2. package/dist/1.0.0.remoteEntry.js +1 -0
  3. package/dist/191.191.106ece7a41ded6731029.js +2 -0
  4. package/dist/191.9a61143c2afb6057ad1bae886d5d1a6e.js.map +1 -0
  5. package/dist/259.09c601e5288d875caab4df1e2354c0ea.js.map +1 -0
  6. package/dist/259.259.216fcad43e9a38888e08.js +2 -0
  7. package/dist/415.415.094780a1a1162c7e5f1c.js +3 -0
  8. package/dist/415.415.094780a1a1162c7e5f1c.js.LICENSE.txt +4 -0
  9. package/dist/415.fcfb4f02eaecbfa31fc322639f244245.js.map +1 -0
  10. package/dist/459.459.c9f0bb440eb1f041c99e.js +515 -0
  11. package/dist/459.cb5f5b49b4e8881992c420f3b1ca863d.js.map +1 -0
  12. package/dist/623.623.0e7e8f23454ee96ed9c8.js +3 -0
  13. package/dist/623.623.0e7e8f23454ee96ed9c8.js.LICENSE.txt +4 -0
  14. package/dist/623.e8f211473f9034c4157d362efb017821.js.map +1 -0
  15. package/dist/755.718e14af7194fb741f98580b24b2bb8f.js.map +1 -0
  16. package/dist/755.755.f93ee58c2b836a669ec4.js +2 -0
  17. package/dist/dashboard.json +1 -0
  18. package/dist/dts/index.d.ts +3 -0
  19. package/dist/dts/index.d.ts.map +1 -0
  20. package/dist/dts/index.federated.d.ts +1 -0
  21. package/dist/dts/index.federated.d.ts.map +1 -0
  22. package/dist/dts/main/index.d.ts +6 -0
  23. package/dist/dts/main/index.d.ts.map +1 -0
  24. package/dist/dts/main/layout-components.d.ts +42 -0
  25. package/dist/dts/main/layout-components.d.ts.map +1 -0
  26. package/dist/dts/main/layout-item.d.ts +70 -0
  27. package/dist/dts/main/layout-item.d.ts.map +1 -0
  28. package/dist/dts/main/layout-main.d.ts +186 -0
  29. package/dist/dts/main/layout-main.d.ts.map +1 -0
  30. package/dist/dts/main/layout-region.d.ts +70 -0
  31. package/dist/dts/main/layout-region.d.ts.map +1 -0
  32. package/dist/dts/styles/constants.d.ts +7 -0
  33. package/dist/dts/styles/constants.d.ts.map +1 -0
  34. package/dist/dts/styles/dragging.styles.d.ts +7 -0
  35. package/dist/dts/styles/dragging.styles.d.ts.map +1 -0
  36. package/dist/dts/styles/index.d.ts +4 -0
  37. package/dist/dts/styles/index.d.ts.map +1 -0
  38. package/dist/dts/styles/layout.styles.d.ts +8 -0
  39. package/dist/dts/styles/layout.styles.d.ts.map +1 -0
  40. package/dist/dts/utils/constants.d.ts +14 -0
  41. package/dist/dts/utils/constants.d.ts.map +1 -0
  42. package/dist/dts/utils/error.d.ts +13 -0
  43. package/dist/dts/utils/error.d.ts.map +1 -0
  44. package/dist/dts/utils/events.d.ts +38 -0
  45. package/dist/dts/utils/events.d.ts.map +1 -0
  46. package/dist/dts/utils/index.d.ts +7 -0
  47. package/dist/dts/utils/index.d.ts.map +1 -0
  48. package/dist/dts/utils/logger.d.ts +2 -0
  49. package/dist/dts/utils/logger.d.ts.map +1 -0
  50. package/dist/dts/utils/misc.d.ts +10 -0
  51. package/dist/dts/utils/misc.d.ts.map +1 -0
  52. package/dist/dts/utils/templates.d.ts +6 -0
  53. package/dist/dts/utils/templates.d.ts.map +1 -0
  54. package/dist/dts/utils/types.d.ts +63 -0
  55. package/dist/dts/utils/types.d.ts.map +1 -0
  56. package/dist/esm/index.federated.js +2 -0
  57. package/dist/esm/index.federated.js.map +1 -0
  58. package/dist/esm/index.js +3 -0
  59. package/dist/esm/index.js.map +1 -0
  60. package/dist/esm/main/index.js +6 -0
  61. package/dist/esm/main/index.js.map +1 -0
  62. package/dist/esm/main/layout-components.js +36 -0
  63. package/dist/esm/main/layout-components.js.map +1 -0
  64. package/dist/esm/main/layout-item.js +86 -0
  65. package/dist/esm/main/layout-item.js.map +1 -0
  66. package/dist/esm/main/layout-main.js +391 -0
  67. package/dist/esm/main/layout-main.js.map +1 -0
  68. package/dist/esm/main/layout-region.js +98 -0
  69. package/dist/esm/main/layout-region.js.map +1 -0
  70. package/dist/esm/main/main.css +17 -0
  71. package/dist/esm/styles/constants.js +16 -0
  72. package/dist/esm/styles/constants.js.map +1 -0
  73. package/dist/esm/styles/dragging.styles.js +116 -0
  74. package/dist/esm/styles/dragging.styles.js.map +1 -0
  75. package/dist/esm/styles/index.js +4 -0
  76. package/dist/esm/styles/index.js.map +1 -0
  77. package/dist/esm/styles/layout.styles.js +530 -0
  78. package/dist/esm/styles/layout.styles.js.map +1 -0
  79. package/dist/esm/utils/constants.js +14 -0
  80. package/dist/esm/utils/constants.js.map +1 -0
  81. package/dist/esm/utils/error.js +17 -0
  82. package/dist/esm/utils/error.js.map +1 -0
  83. package/dist/esm/utils/events.js +26 -0
  84. package/dist/esm/utils/events.js.map +1 -0
  85. package/dist/esm/utils/index.js +7 -0
  86. package/dist/esm/utils/index.js.map +1 -0
  87. package/dist/esm/utils/logger.js +3 -0
  88. package/dist/esm/utils/logger.js.map +1 -0
  89. package/dist/esm/utils/misc.js +24 -0
  90. package/dist/esm/utils/misc.js.map +1 -0
  91. package/dist/esm/utils/templates.js +11 -0
  92. package/dist/esm/utils/templates.js.map +1 -0
  93. package/dist/esm/utils/types.js +4 -0
  94. package/dist/esm/utils/types.js.map +1 -0
  95. package/dist/favicon.ico +0 -0
  96. package/dist/foundation-layout.api.json +1574 -0
  97. package/dist/foundation-layout.d.ts +478 -0
  98. package/dist/foundationLayout.8b94161c9f0d0d475d026a05513893c1.js.map +1 -0
  99. package/dist/index.ejs +23 -0
  100. package/dist/index.html +15 -0
  101. package/dist/info.ejs +13 -0
  102. package/dist/main.40c13c1585eb6fa5761a17ab29a7851e.js.map +1 -0
  103. package/dist/main.94f8a6853d484ec34632.js +2 -0
  104. package/dist/npm.consola.713.b1e4073e73c71572987a.js +2 -0
  105. package/dist/npm.consola.a0d3324d3e61dcc430c3029da5f4dcc7.js.map +1 -0
  106. package/dist/npm.genesis-community.248.9c9900001dbc5ba9c3ed.js +2 -0
  107. package/dist/npm.genesis-community.2e0cc159dabe113d6fb29bb505c1a0d4.js.map +1 -0
  108. package/dist/npm.microsoft.127.00f16f24d8da8fd89263.js +1469 -0
  109. package/dist/npm.microsoft.127.00f16f24d8da8fd89263.js.LICENSE.txt +14 -0
  110. package/dist/npm.microsoft.be43958facd28231e770c1307660f64d.js.map +1 -0
  111. package/dist/remoteEntry.js +2 -0
  112. package/dist/serve.json +3 -0
  113. package/dist/tsdoc-metadata.json +11 -0
  114. package/docs/.gitattributes +2 -0
  115. package/docs/api/foundation-layout.default_reload_buffer.md +18 -0
  116. package/docs/api/foundation-layout.foundationlayout.additem.md +38 -0
  117. package/docs/api/foundation-layout.foundationlayout.dragging.md +16 -0
  118. package/docs/api/foundation-layout.foundationlayout.getlayout.md +22 -0
  119. package/docs/api/foundation-layout.foundationlayout.layoutrequiredregistrations.md +37 -0
  120. package/docs/api/foundation-layout.foundationlayout.loadlayout.md +37 -0
  121. package/docs/api/foundation-layout.foundationlayout.md +44 -0
  122. package/docs/api/foundation-layout.foundationlayout.registereditems.md +26 -0
  123. package/docs/api/foundation-layout.foundationlayout.registeritem.md +42 -0
  124. package/docs/api/foundation-layout.foundationlayout.reloadbuffer.md +16 -0
  125. package/docs/api/foundation-layout.foundationlayoutcomponents.md +50 -0
  126. package/docs/api/foundation-layout.foundationlayoutitem.closable.md +16 -0
  127. package/docs/api/foundation-layout.foundationlayoutitem.md +35 -0
  128. package/docs/api/foundation-layout.foundationlayoutitem.registration.md +21 -0
  129. package/docs/api/foundation-layout.foundationlayoutitem.size.md +16 -0
  130. package/docs/api/foundation-layout.foundationlayoutitem.title.md +21 -0
  131. package/docs/api/foundation-layout.foundationlayoutregion.md +33 -0
  132. package/docs/api/foundation-layout.foundationlayoutregion.size.md +16 -0
  133. package/docs/api/foundation-layout.foundationlayoutregion.type.md +16 -0
  134. package/docs/api/foundation-layout.layoutemitevents.md +22 -0
  135. package/docs/api/foundation-layout.layoutreceiveevents.md +20 -0
  136. package/docs/api/foundation-layout.layoutreceiveeventsdetail.md +23 -0
  137. package/docs/api/foundation-layout.layoutregiontype.md +16 -0
  138. package/docs/api/foundation-layout.layoutregistrationerror._constructor_.md +23 -0
  139. package/docs/api/foundation-layout.layoutregistrationerror.md +23 -0
  140. package/docs/api/foundation-layout.layoutstyles.md +21 -0
  141. package/docs/api/foundation-layout.layouttemplate.md +21 -0
  142. package/docs/api/foundation-layout.layoutusageerror._constructor_.md +23 -0
  143. package/docs/api/foundation-layout.layoutusageerror.md +23 -0
  144. package/docs/api/foundation-layout.md +42 -0
  145. package/docs/api/foundation-layout.placement.md +18 -0
  146. package/docs/api/foundation-layout.registeredelementconfig.closable.md +14 -0
  147. package/docs/api/foundation-layout.registeredelementconfig.md +30 -0
  148. package/docs/api/foundation-layout.registeredelementconfig.registration.md +14 -0
  149. package/docs/api/foundation-layout.registeredelementconfig.size.md +14 -0
  150. package/docs/api/foundation-layout.registeredelementconfig.title.md +14 -0
  151. package/docs/api/foundation-layout.serialisedlayout.md +26 -0
  152. package/docs/api/index.md +12 -0
  153. package/docs/api-report.md +235 -0
  154. package/docs/img/foundation-layout-example.png +0 -0
  155. package/license.txt +46 -0
  156. package/package.json +80 -0
@@ -0,0 +1,478 @@
1
+ import type { Container } from '@microsoft/fast-foundation';
2
+ import { ElementStyles } from '@microsoft/fast-element';
3
+ import { FoundationElement } from '@microsoft/fast-foundation';
4
+ import { FoundationElementRegistry } from '@microsoft/fast-foundation';
5
+ import { OverrideFoundationElementDefinition } from '@microsoft/fast-foundation';
6
+ import { ResolvedLayoutConfig } from '@genesis-community/golden-layout';
7
+ import { RootItemConfig } from '@genesis-community/golden-layout';
8
+ import { ViewTemplate } from '@microsoft/fast-element';
9
+
10
+ /**
11
+ * Used to key what type of LayoutComponent an object is
12
+ * @internal
13
+ */
14
+ export declare const componentType: unique symbol;
15
+
16
+ /** @internal */
17
+ export declare type ComponentTypes = LayoutRegionType | 'root' | 'item';
18
+
19
+ /**
20
+ * Default time in milliseconds for the layout to buffer calls to reloading
21
+ * the layout while the declarative API is loading.
22
+ *
23
+ * During the first load of the layout, a loading spinner will be shown.
24
+ * @beta
25
+ */
26
+ export declare const DEFAULT_RELOAD_BUFFER = 500;
27
+
28
+ /**
29
+ * @beta
30
+ * Top level web component which is used to initialise a custom layout
31
+ * @remarks
32
+ * Can be used in a composition to customise the styles of the layout.
33
+ */
34
+ export declare class FoundationLayout extends FoundationElement implements LayoutComponent {
35
+ private layout;
36
+ /** @internal */
37
+ layoutElement: HTMLElement;
38
+ private layoutConfig;
39
+ /** @internal */
40
+ [componentType]: "root";
41
+ /**
42
+ * Number describing how long to wait in ms before reloading the config when adding items
43
+ * declaratively by the html API. Default 500 (ms).
44
+ * @beta
45
+ */
46
+ reloadBuffer: number;
47
+ private reloadPending;
48
+ private registeredComponents;
49
+ /** @internal */
50
+ hasFirstLoaded: boolean;
51
+ /** @internal */
52
+ usingDeclerativeAPI: boolean;
53
+ /**
54
+ * @beta
55
+ * Set to true when the user is currently dragging the panes inside of the layout
56
+ */
57
+ dragging: boolean;
58
+ /** @internal */
59
+ constructor();
60
+ /** @internal */
61
+ connectedCallback(): void;
62
+ /** @internal */
63
+ disconnectedCallback(): void;
64
+ /** @internal */
65
+ private onDragStart;
66
+ /** @internal */
67
+ private onDragStop;
68
+ /** @internal */
69
+ private onItemAdded;
70
+ /** @internal */
71
+ private onItemRemoved;
72
+ /**
73
+ * JS API, public
74
+ */
75
+ /**
76
+ * @beta
77
+ * Gets all of the required registration function names for a set of config
78
+ * @remarks
79
+ * You can use this with {@link FoundationLayout.registeredItems | registeredItems} to work out what items you need to register with {@link FoundationLayout.registerItem | registerItem()}
80
+ * before loading the layout with {@link FoundationLayout.loadLayout | loadLayout()}
81
+ *
82
+ * @param layout - any version of {@link SerialisedLayout} object describing the layout
83
+ * @returns string[] - an item for each registered element in the config. These must all be added before {@link FoundationLayout.loadLayout | function}
84
+ * @throws - various errors if the layout parameter cannot be parsed
85
+ */
86
+ static layoutRequiredRegistrations(layout: SerialisedLayout): string[];
87
+ /**
88
+ * @beta
89
+ * Gets all of the currently registered names
90
+ * @remarks
91
+ * You can use this with {@link FoundationLayout.layoutRequiredRegistrations | layoutRequiredRegistrations} to work out what items you need to register with {@link FoundationLayout.registerItem | registerItem()}
92
+ * before loading the layout with {@link FoundationLayout.loadLayout | loadLayout()}
93
+ *
94
+ * @returns string[] - an item for each registered element currently registered with the layout system
95
+ */
96
+ registeredItems(): string[];
97
+ /**
98
+ * @beta
99
+ * Gets a minified string containing the config describing the current layout of the layout object to later restore in {@link FoundationLayout.loadLayout | function}
100
+ * @returns - latest version of {@link SerialisedLayout} describing the layout
101
+ */
102
+ getLayout(): SerialisedLayout;
103
+ /**
104
+ * @beta
105
+ * Restores a layout described in the config from {@link FoundationLayout.getLayout | getLayout()}
106
+ *
107
+ * @remarks
108
+ * In order to restore a layout you must have registered all of the required panes with the layout system before restoring it. If you are just setting the layout using the declarative API then all of the same components will be registered. <br/ >If you have added any elements using {@link FoundationLayout.registerItem} then you must ensure all of the same items have been added again. To make tracking what items are registered easier it is recommended in this case you explicitly name your registrations using the `id` parameter available on the {@link RegisteredElementConfig} and `foundation-layout-item` APIs. <br/> You can use {@link FoundationLayout.layoutRequiredRegistrations} to check which items are registered in a current layout in order to dynamically add any missing items before you can restore the layout
109
+ *
110
+ * @param layout - any version of {@link SerialisedLayout} object describing the layout
111
+ * @throws {@link LayoutUsageError} if you attempt to load a layout with registered items that are not currently registered with the layout system
112
+ * @throws various errors if the layout string is malformed and cannot be parsed
113
+ */
114
+ loadLayout(layout: SerialisedLayout): void;
115
+ /**
116
+ * @beta
117
+ * Dynamically add a new item to the layout. The user can move the new plane to whenever they want once it has been added.
118
+ * @remarks
119
+ * Adding a new item invokes the registration previously made explicitly via {@link FoundationLayout.registerItem | registerItem()} or implicitly via the html declerative API.
120
+ *
121
+ * The elements added onto the new pane are copies using `element.cloneNode()` of the original element references used during registration.
122
+ *
123
+ * @param config - {@link RegisteredElementConfig} configuration items for the new pane
124
+ * @param placement - where to add the new pane on the layout (defaults to the right hand side)
125
+ * @throws {@link LayoutRegistrationError} if you attempt to add an item before it has been registered
126
+ */
127
+ addItem(config: RegisteredElementConfig, placement?: Placement): void;
128
+ /**
129
+ * @beta
130
+ * Register a collection of `Element` and associate them with an `ID` with the layout system for later use.
131
+ * @remarks
132
+ * You would use this to register elements that you later want to load when using {@link FoundationLayout.loadLayout}.
133
+ * Use {@link FoundationLayout.layoutRequiredRegistrations} to see what components need to be registered for a certain config
134
+ * and then register them using this function before calling {@link FoundationLayout.loadLayout}.
135
+ *
136
+ * When registering an element it is moved by reference into the internals of the layout, so if you pass elements already in the DOM then they will disappear. If you want to avoid this you can pass copies using `element.cloneNode(true)`.
137
+ *
138
+ * @param registration - string of the registration ID
139
+ * @param elements - Elements[] containing the reference to the elements to register for later usage
140
+ * @throws {@link LayoutUsageError} if you attempt to add an item before the layout has been initialised.
141
+ * @throws {@link LayoutRegistrationError} if you attempt to use a `registration` name which is already in use (declarative html API and JavaScript API registrations use the same "pool" of registration names).
142
+ * @returns - string defining the name of the registered item with the layout system (config.id if set).
143
+ */
144
+ registerItem(registration: string, elements: Element[]): string;
145
+ /**
146
+ * Internal APIs
147
+ */
148
+ /**
149
+ * Request to reload the layout using the private member config. Debounced using the time set
150
+ * in this.reloadBuffer
151
+ * @internal
152
+ */
153
+ requestLayoutReload(): void;
154
+ /**
155
+ * Adds a config item into the root config and returns a link to the new config in the tree
156
+ * @typeParam T - RowOrColumnItemConfig | StackItemConfig | ComponentItemConfig;
157
+ * @param item - T to add as the root element of the layout
158
+ * @returns T the reference to the added item in the whole item config
159
+ * @throws {@link LayoutUsageError} if you try and add an item when a root has already been set (this happens if you have multiple direct children of this html element which is an incorrect usage)
160
+ * @internal
161
+ */
162
+ addItemFromChild<T extends RootItemConfig>(item: T): T;
163
+ /**
164
+ * Registers a function with golden layout to create a pane
165
+ * @param elements - Elements[] to add to new new pane
166
+ * @param id - optional string which is used to register the new function with golden layout. Defaults to sequentially setting the IDs for default items
167
+ * @returns - string which is the registered ID
168
+ * @throws - {@link LayoutRegistrationError} if the id is already in use
169
+ * @internal
170
+ */
171
+ cacheElementsAndRegister({ elements, id }: RegistrationConfig): string;
172
+ /**
173
+ * Sets up the event listeners for the layout receive events
174
+ * @internal
175
+ */
176
+ private setupLayoutReceiveEvents;
177
+ /**
178
+ * Saves the stored layout config according to the Golden Layout provider.
179
+ * Needs to be called when the layout is updated outside of using addItemFromChild.
180
+ * @internal
181
+ * */
182
+ private cacheLayout;
183
+ }
184
+
185
+ /**
186
+ * Registration object to register the layout with your design system.
187
+ *
188
+ * @remarks
189
+ * Registers the three layout component types with the design system.
190
+ * You require to use the prefix of the design system with each tag.
191
+ * If you wish to alternate the styles of the layout you only need to compose your own custom
192
+ * version of {@link FoundationLayout} as this contains the styles for the entire layout.
193
+ *
194
+ * @example
195
+ * `<zero-layout></zero-layout>` if you are using the layout with the `zero` design-system.
196
+ *
197
+ * @beta
198
+ */
199
+ export declare const foundationLayoutComponents: {
200
+ foundationLayout: (overrideDefinition?: OverrideFoundationElementDefinition< {
201
+ baseName: string;
202
+ styles: ElementStyles;
203
+ template: ViewTemplate<FoundationLayout, any>;
204
+ }>) => FoundationElementRegistry< {
205
+ baseName: string;
206
+ styles: ElementStyles;
207
+ template: ViewTemplate<FoundationLayout, any>;
208
+ }, FoundationLayout>;
209
+ foundationLayoutRegion: (overrideDefinition?: OverrideFoundationElementDefinition< {
210
+ baseName: string;
211
+ template: ViewTemplate<any, any>;
212
+ }>) => FoundationElementRegistry< {
213
+ baseName: string;
214
+ template: ViewTemplate<any, any>;
215
+ }, FoundationLayoutRegion>;
216
+ foundationLayoutItem: (overrideDefinition?: OverrideFoundationElementDefinition< {
217
+ baseName: string;
218
+ template: ViewTemplate<any, any>;
219
+ }>) => FoundationElementRegistry< {
220
+ baseName: string;
221
+ template: ViewTemplate<any, any>;
222
+ }, FoundationLayoutItem>;
223
+ register(container?: Container, ...rest: any[]): void;
224
+ };
225
+
226
+ /**
227
+ * @beta
228
+ * `FoundationLayoutItem` is a custom element that represents an item in the layout.
229
+ * @remarks
230
+ * This element is used to wrap html elements and configure their layout settings as part of the layout system.
231
+ *
232
+ * 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}.
233
+ */
234
+ export declare class FoundationLayoutItem extends FoundationElement implements LayoutComponent {
235
+ /**
236
+ * Sets the title of the item which is displayed on the tab.
237
+ * @remarks
238
+ * Defaults to `Item ` + {@link FoundationLayoutItem.registration}
239
+ * @beta
240
+ */
241
+ title: string;
242
+ /**
243
+ * Boolean attribute controls whether the window can be closed in the GUI.
244
+ * Defaults to `false`.
245
+ * @beta
246
+ */
247
+ closable: boolean;
248
+ /**
249
+ * optional string describing the size of the new item (see the written documentation for more info)
250
+ * @beta
251
+ */
252
+ size: string;
253
+ /**
254
+ * Sets the registration name for the item, which can be used later to add the item via the JavaScript API using {@link FoundationLayout.addItem()}.
255
+ * @remarks
256
+ * Items added via the JavaScript API and HTML API share the same pool of registration names.
257
+ * Using a duplicate registration name is a runtime error.
258
+ * This registration name defaults to the number of the window it is.
259
+ * It is highly recommended if you are using the JavaScript API that you set a registration name here manually.
260
+ * @beta
261
+ */
262
+ registration: string;
263
+ /** @internal */
264
+ [componentType]: "item";
265
+ /** @internal */
266
+ private slottedElements;
267
+ /** @internal */
268
+ connectedCallback(): void;
269
+ /** @internal */
270
+ private getParentLayoutComponent;
271
+ /** @internal */
272
+ requestLayoutReload(): void;
273
+ /** @internal */
274
+ cacheElementsAndRegister(config: RegistrationConfig): string;
275
+ }
276
+
277
+ /**
278
+ * @beta
279
+ * `FoundationLayoutRegion` is a custom element that represents a region in the layout.
280
+ * @remarks
281
+ * 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.
282
+ *
283
+ * 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}.
284
+ */
285
+ export declare class FoundationLayoutRegion extends FoundationElement implements LayoutComponent {
286
+ /**
287
+ * optional string describing the size of the new item (see the written documentation for more info)
288
+ * @beta
289
+ */
290
+ size: string;
291
+ /**
292
+ * Defines the {@link LayoutRegionType | type} of the region.
293
+ * Defaults to `horizontal`.
294
+ * @beta
295
+ */
296
+ type: LayoutRegionType;
297
+ /** @internal */
298
+ [componentType]: LayoutRegionType;
299
+ /**
300
+ * Reference to the config in the whole layout config for this
301
+ * specific region.
302
+ * @internal
303
+ */
304
+ private layoutConfig;
305
+ /** @internal */
306
+ connectedCallback(): void;
307
+ /**
308
+ * 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.
309
+ * @internal
310
+ */
311
+ private setupLayoutRegion;
312
+ /**
313
+ * Creates a golden layout config for this object.
314
+ * @internal
315
+ */
316
+ private constructLayoutConfig;
317
+ /** @internal */
318
+ private getParentLayoutComponent;
319
+ /** @internal */
320
+ addItemFromChild<T extends RootItemConfig>(item: T): T;
321
+ /** @internal */
322
+ requestLayoutReload(): void;
323
+ /** @internal */
324
+ cacheElementsAndRegister(config: RegistrationConfig): string;
325
+ }
326
+
327
+ /**
328
+ * Returns an array of values of the array a which are missing in b
329
+ * An empty array is returned if every value of a is in b
330
+ * @internal
331
+ */
332
+ export declare function getMissingArrayItems<T>(a: T[], b: T[]): T[];
333
+
334
+ /** @internal */
335
+ export declare function getParentLayoutComponent(): FoundationLayout | FoundationLayoutRegion;
336
+
337
+ /** @internal */
338
+ export declare interface LayoutComponent {
339
+ [componentType]: ComponentTypes;
340
+ cacheElementsAndRegister(config: RegistrationConfig): string;
341
+ requestLayoutReload(): void;
342
+ }
343
+
344
+ /**
345
+ * Defines events that the layout system emits
346
+ *
347
+ * 'firstLoaded' - emitted when the layout has finished loading the first time
348
+ * using the declarative API after {@link DEFAULT_RELOAD_BUFFER} ms.
349
+ * <br/>
350
+ * 'itemAdded' - emitted when an item is added to the layout'
351
+ * <br/>
352
+ * 'itemRemoved' - emitted when an item is removed from the layout'
353
+ * @beta
354
+ */
355
+ export declare const LayoutEmitEvents: {
356
+ readonly firstLoaded: "first-loaded";
357
+ readonly itemAdded: "item-added";
358
+ readonly itemRemoved: "item-removed";
359
+ };
360
+
361
+ /**
362
+ * Defines events that the layout system listens for
363
+ *
364
+ * 'changeTitle' - emit this from a contained item to update the title of the window that contains it.
365
+ * @beta
366
+ */
367
+ export declare const LayoutReceiveEvents: {
368
+ readonly changeTitle: "change-title";
369
+ };
370
+
371
+ /**
372
+ * Defines the shape of the detail that the layout listens works with for events it listens on
373
+ *
374
+ * '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.
375
+ * @beta
376
+ */
377
+ export declare type LayoutReceiveEventsDetail = {
378
+ changeTitle: {
379
+ title: string;
380
+ mode: 'replace' | 'suffix';
381
+ };
382
+ };
383
+
384
+ /**
385
+ * @beta
386
+ * Union type describing the three different types of region splits.
387
+ * Set on the `type` attribute on {@link FoundationLayoutRegion}.
388
+ */
389
+ export declare type LayoutRegionType = (typeof layoutRegionValue)[number];
390
+
391
+ /** @internal */
392
+ export declare const layoutRegionValue: readonly ["horizontal", "vertical", "tabs"];
393
+
394
+ /**
395
+ * @beta
396
+ */
397
+ export declare class LayoutRegistrationError extends Error {
398
+ constructor(message: string);
399
+ }
400
+
401
+ /**
402
+ * `ElementStyles` which defines the css for {@link FoundationLayout}.
403
+ * @remarks
404
+ * Can be used in a composition to customise the styles of the layout.
405
+ * @beta
406
+ */
407
+ export declare const layoutStyles: ElementStyles;
408
+
409
+ /**
410
+ * `ViewTemplate` which defines the html for {@link FoundationLayout}.
411
+ * @remarks
412
+ * Can be used in a composition to customise the styles of the layout.
413
+ * @beta
414
+ */
415
+ export declare const layoutTemplate: ViewTemplate<FoundationLayout, any>;
416
+
417
+ /**
418
+ * @beta
419
+ */
420
+ export declare class LayoutUsageError extends Error {
421
+ constructor(message: string);
422
+ }
423
+
424
+ /**
425
+ * @beta
426
+ * Where to add the new item into the layout when using the {@link FoundationLayout.addItem} API
427
+ */
428
+ export declare type Placement = {
429
+ area: 'top' | 'left' | 'bottom' | 'right';
430
+ };
431
+
432
+ /**
433
+ * @beta
434
+ * The parameters that can be set on a new item when being added by the {@link FoundationLayout.addItem} API
435
+ *
436
+ * @remarks
437
+ * `elements` - array of Elements that are the content of the new item
438
+ * `title` - optional string which is used as the new title of the tab (defaults to be the registered name)
439
+ * `closable` - optional boolean which allows the item to be closed with the X button if set and true
440
+ * `size` - optional string describing the size of the new item (see the written documentation for more info)
441
+ * `registration` - optional string configuring the registration ID of the new item (defaults to sequential IDs)
442
+ */
443
+ export declare interface RegisteredElementConfig {
444
+ registration: string;
445
+ title?: string;
446
+ closable?: boolean;
447
+ size?: string;
448
+ }
449
+
450
+ /** @internal */
451
+ export declare interface RegistrationConfig {
452
+ elements: Element[];
453
+ id?: string;
454
+ }
455
+
456
+ /**
457
+ * @beta
458
+ * Versioned layout config objects. `v` is the version and `c` contains the layout config.
459
+ * @remarks
460
+ * Versioning the layout config in this way allows changes to the config schema while
461
+ * remaining backwards compatible with any existing client/user configurations. When loading an
462
+ * older version of the configurations the version can be used to lookup and apply transformer functions
463
+ * to get the newest version of the config from it.
464
+ *
465
+ * As more versions of configurations are added this type will have extra union types as part of SerialisedLayout.
466
+ */
467
+ export declare type SerialisedLayout = {
468
+ v: '1';
469
+ c: ResolvedLayoutConfig;
470
+ };
471
+
472
+ /**
473
+ * template for the child layout elements
474
+ * @internal
475
+ */
476
+ export declare const wrapperTemplate: ViewTemplate<any, any>;
477
+
478
+ export { }
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://@genesislcap/foundation-layout/webpack/runtime/chunk loaded","webpack://@genesislcap/foundation-layout/webpack/runtime/load script","webpack://@genesislcap/foundation-layout/webpack/runtime/consumes","webpack://@genesislcap/foundation-layout/webpack/container-entry","webpack://@genesislcap/foundation-layout/webpack/bootstrap","webpack://@genesislcap/foundation-layout/webpack/runtime/define property getters","webpack://@genesislcap/foundation-layout/webpack/runtime/ensure chunk","webpack://@genesislcap/foundation-layout/webpack/runtime/get javascript chunk filename","webpack://@genesislcap/foundation-layout/webpack/runtime/get mini-css chunk filename","webpack://@genesislcap/foundation-layout/webpack/runtime/hasOwnProperty shorthand","webpack://@genesislcap/foundation-layout/webpack/runtime/make namespace object","webpack://@genesislcap/foundation-layout/webpack/runtime/sharing","webpack://@genesislcap/foundation-layout/webpack/runtime/publicPath","webpack://@genesislcap/foundation-layout/webpack/runtime/jsonp chunk loading","webpack://@genesislcap/foundation-layout/webpack/startup"],"names":["deferred","inProgress","dataWebpackPrefix","parseVersion","versionLt","satisfy","findValidVersion","get","loadStrictVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","moduleMap","__webpack_require__","e","then","module","getScope","R","o","Promise","resolve","Error","undefined","init","shareScope","initScope","S","oldScope","name","I","d","exports","__webpack_module_cache__","moduleId","cachedModule","threw","__webpack_modules__","call","m","c","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","definition","defineProperty","enumerable","f","chunkId","all","reduce","promises","u","miniCssF","obj","prop","prototype","hasOwnProperty","l","url","done","push","script","needAttach","scripts","document","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","setTimeout","bind","type","target","head","appendChild","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","loaded","from","p","str","split","map","n","exec","apply","a","b","t","range","g","pop","requiredVersion","entry","scopeName","promise","fallback","consumes","id","onFactory","onError","error","catch","installedChunks","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"mappings":"4CAAIA,ECAAC,EACAC,ECDAC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AU5D,GAASA,EAAMW,QAAUX,EAAMW,OAAOd,IACpDwD,EAAMQ,QAAU,iBAAmB1F,EAAU,cAAgBwF,EAAY,KAAOC,EAAU,IAC1FP,EAAMnH,KAAO,iBACbmH,EAAM3C,KAAOiD,EACbN,EAAMS,QAAUF,EAChBJ,EAAmB,GAAGH,EACvB,CACD,GAEwC,SAAWlF,EAASA,EAC9D,CAEF,EAWFjD,EAAoB4B,EAAEU,EAAKW,GAA0C,IAA7BoF,EAAgBpF,GAGxD,IAAI4F,EAAuB,CAACC,EAA4BC,KACvD,IAGI1H,EAAU4B,GAHTnB,EAAUkH,EAAaC,GAAWF,EAGhB5G,EAAI,EAC3B,IAAId,KAAY2H,EACZhJ,EAAoBM,EAAE0I,EAAa3H,KACrCrB,EAAoB0B,EAAEL,GAAY2H,EAAY3H,IAGhD,GAAG4H,EAAS,IAAIpH,EAASoH,EAAQjJ,GAEjC,IADG8I,GAA4BA,EAA2BC,GACrD5G,EAAIL,EAASM,OAAQD,IACzBc,EAAUnB,EAASK,GAChBnC,EAAoBM,EAAE+H,EAAiBpF,IAAYoF,EAAgBpF,IACrEoF,EAAgBpF,GAAS,KAE1BoF,EAAgBvG,EAASK,IAAM,EAEhC,OAAOnC,EAAoB4B,EAAEC,EAAO,EAGjCqH,EAAqBC,KAAiD,2CAAIA,KAAiD,4CAAK,GACpID,EAAmB7D,QAAQwD,EAAqBtD,KAAK,KAAM,IAC3D2D,EAAmBpF,KAAO+E,EAAqBtD,KAAK,KAAM2D,EAAmBpF,KAAKyB,KAAK2D,G,KCjFvF,IAAIE,EAAsBpJ,EAAoB4B,OAAElB,EAAW,CAAC,MAAM,IAAOV,EAAoB,OAC7FoJ,EAAsBpJ,EAAoB4B,EAAEwH,G","file":"remoteEntry.js","sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@genesislcap/foundation-layout:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key) => {\n\tvar versions = scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) typeof console !== \"undefined\" && console.warn && console.warn(getInvalidSingletonVersionMessage(key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\ttypeof console !== \"undefined\" && console.warn && console.warn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t147: () => (loadStrictVersionCheckFallback(\"default\", \"@microsoft/fast-element\", [1,1,7,0], () => (__webpack_require__.e(127).then(() => (() => (__webpack_require__(759))))))),\n\t951: () => (loadStrictVersionCheckFallback(\"default\", \"@microsoft/fast-foundation\", [1,2,33,2], () => (Promise.all([__webpack_require__.e(127), __webpack_require__.e(495), __webpack_require__.e(623)]).then(() => (() => (__webpack_require__(916))))))),\n\t304: () => (loadStrictVersionCheckFallback(\"default\", \"tslib\", [1,2,3,1], () => (__webpack_require__.e(191).then(() => (() => (__webpack_require__(191))))))),\n\t495: () => (loadStrictVersionCheckFallback(\"default\", \"tslib\", [1,2,3,1], () => (__webpack_require__.e(127).then(() => (() => (__webpack_require__(726))))))),\n\t64: () => (loadStrictVersionCheckFallback(\"default\", \"@genesislcap/foundation-utils\", [1,9,0,0], () => (Promise.all([__webpack_require__.e(713), __webpack_require__.e(259)]).then(() => (() => (__webpack_require__(259))))))),\n\t699: () => (loadStrictVersionCheckFallback(\"default\", \"@genesis-community/golden-layout\", [1,2,9,3], () => (__webpack_require__.e(248).then(() => (() => (__webpack_require__(192)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"147\": [\n\t\t147\n\t],\n\t\"459\": [\n\t\t64,\n\t\t699\n\t],\n\t\"495\": [\n\t\t495\n\t],\n\t\"758\": [\n\t\t951,\n\t\t304\n\t]\n};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory).catch(onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t});\n\t}\n}","var moduleMap = {\n\t\"./index\": () => {\n\t\treturn __webpack_require__.e(755).then(() => (() => ((__webpack_require__(755)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar oldScope = __webpack_require__.S[\"default\"];\n\tvar name = \"default\"\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\tvar threw = true;\n\ttry {\n\t\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\t\tthrew = false;\n\t} finally {\n\t\tif(threw) delete __webpack_module_cache__[moduleId];\n\t}\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + ({\"127\":\"npm.microsoft\",\"248\":\"npm.genesis-community\",\"713\":\"npm.consola\"}[chunkId] || chunkId) + \".\" + chunkId + \".\" + {\"127\":\"00f16f24d8da8fd89263\",\"147\":\"680b1da1d96051244bd2\",\"191\":\"106ece7a41ded6731029\",\"248\":\"9c9900001dbc5ba9c3ed\",\"259\":\"216fcad43e9a38888e08\",\"415\":\"094780a1a1162c7e5f1c\",\"459\":\"c9f0bb440eb1f041c99e\",\"495\":\"ef332497920c5f8d6592\",\"623\":\"0e7e8f23454ee96ed9c8\",\"713\":\"b1e4073e73c71572987a\",\"755\":\"f93ee58c2b836a669ec4\",\"758\":\"c3c8911366f8331c70cc\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => (typeof console !== \"undefined\" && console.warn && console.warn(msg));\n\tvar uniqueName = \"@genesislcap/foundation-layout\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult.catch(handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@genesis-community/golden-layout\", \"2.9.3\", () => (__webpack_require__.e(248).then(() => (() => (__webpack_require__(192))))));\n\t\t\tregister(\"@genesislcap/foundation-utils\", \"9.0.0\", () => (Promise.all([__webpack_require__.e(127), __webpack_require__.e(713), __webpack_require__.e(147), __webpack_require__.e(259), __webpack_require__.e(758)]).then(() => (() => (__webpack_require__(259))))));\n\t\t\tregister(\"@microsoft/fast-element\", \"1.11.0\", () => (__webpack_require__.e(127).then(() => (() => (__webpack_require__(759))))));\n\t\t\tregister(\"@microsoft/fast-foundation\", \"2.47.0\", () => (Promise.all([__webpack_require__.e(127), __webpack_require__.e(147), __webpack_require__.e(495), __webpack_require__.e(415)]).then(() => (() => (__webpack_require__(916))))));\n\t\t\tregister(\"tslib\", \"1.14.1\", () => (__webpack_require__.e(127).then(() => (() => (__webpack_require__(160))))));\n\t\t\tregister(\"tslib\", \"1.14.1\", () => (__webpack_require__.e(127).then(() => (() => (__webpack_require__(726))))));\n\t\t\tregister(\"tslib\", \"2.5.0\", () => (__webpack_require__.e(191).then(() => (() => (__webpack_require__(191))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t302: 0,\n\t648: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(147|495|648|758)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tfor(moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) var result = runtime(__webpack_require__);\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_genesislcap_foundation_layout\"] = self[\"webpackChunk_genesislcap_foundation_layout\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\nvar __webpack_exports__ = __webpack_require__.O(undefined, [648], () => (__webpack_require__(451)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"sourceRoot":""}
package/dist/index.ejs ADDED
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title><%= htmlWebpackPlugin.options.title %></title>
7
+ <style>
8
+ html,
9
+ body {
10
+ width: 100%;
11
+ height: 100%;
12
+ padding: 0;
13
+ margin: 0;
14
+ }
15
+ :not(:defined) {
16
+ visibility: hidden;
17
+ }
18
+ </style>
19
+ </head>
20
+ <body>
21
+ <<%= htmlWebpackPlugin.options.customElementTagName %>></<%= htmlWebpackPlugin.options.customElementTagName %>>
22
+ </body>
23
+ </html>
@@ -0,0 +1,15 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Genesis Foundation UI App Layout (Federated)</title></head><body><h1>Genesis Foundation UI App Layout (Federated)</h1><h3>Module Federation Details</h3><pre>{
2
+ "name": "foundationLayout",
3
+ "filename": "remoteEntry.js",
4
+ "remotes": {},
5
+ "exposes": {
6
+ "./index": "./src/index.federated.ts"
7
+ },
8
+ "shared": {
9
+ "@genesis-community/golden-layout": "^2.9.3",
10
+ "@genesislcap/foundation-utils": "^9.0.0",
11
+ "@microsoft/fast-element": "^1.7.0",
12
+ "@microsoft/fast-foundation": "^2.33.2",
13
+ "tslib": "^2.3.1"
14
+ }
15
+ }</pre>Read about <a href="https://webpack.js.org/concepts/module-federation/" target="_blank">Module Federation</a> in Webpack 5.</body></html>
package/dist/info.ejs ADDED
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title><%= htmlWebpackPlugin.options.title %></title>
6
+ </head>
7
+ <body>
8
+ <h1><%= htmlWebpackPlugin.options.title %></h1>
9
+ <h3>Module Federation Details</h3>
10
+ <pre><%= htmlWebpackPlugin.options.moduleFederationDetails %></pre>
11
+ Read about <a href="https://webpack.js.org/concepts/module-federation/" target="_blank">Module Federation</a> in Webpack 5.
12
+ </body>
13
+ </html>