@genesislcap/foundation-layout 14.120.3-alpha-7ba1ef7.0 → 14.121.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/README.md +8 -8
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -183,7 +183,7 @@ Use this function over `.layoutRequiredRegistrations(layout: SerialisedLayout)`
183
183
 
184
184
  ### Serialising layout
185
185
 
186
- The JavaScript API can be used to manually save and load layout states. This only describes the state of the dynamic layout itself. It is the responsibility of any components contained within their layout to serialise their own state, if required.
186
+ The JavaScript API can be used to manually save and load layout states. This only describes the state of the dynamic layout itself. It is the responsibility of each component within the layout to serialise its own state, if required.
187
187
  To enable autosaving the layout see [here](#autosaving-layout).
188
188
 
189
189
  #### [Get Layout](./docs/api/foundation-layout.foundationlayout.getlayout.md)
@@ -274,7 +274,7 @@ This section concerns the behaviour of elements inside the layout. If you are us
274
274
 
275
275
  ### Element lifecycle (gating)
276
276
 
277
- Some actions that the user can perform with items in the layout which will run the component lifecycle functions (`connectedCallback` and `disconnectedCallback`) at times when you don't want them to run:
277
+ Some actions that the user can perform with items in the layout will run the component lifecycle functions (`connectedCallback` and `disconnectedCallback`) when you don't want them to run:
278
278
  - when an item is dragged around the layout
279
279
  - potentially, when another item is removed from the layout
280
280
  - potentially, when new items are added to the layout
@@ -304,14 +304,14 @@ Throughout Foundation UI, there is no need to de-register a component that is re
304
304
 
305
305
  ### Managing the state
306
306
 
307
- Items inside the layout can save and restore state using various methods, but it can become difficult to manage the state if you're adding the same item to the layout multiple times (multiple instances of the same web component).
307
+ Items inside the layout can save and restore the state using various methods, but it can become difficult to manage the state if you're adding the same item to the layout multiple times (multiple instances of the same web component).
308
308
 
309
- You can implement the [LayoutComponentWithState](./docs/api/foundation-layout.layoutcomponentwithstate.md) interface which enables you to save and load the state *per instance* of your components. See the linked interface and the associated functions API documentation for examples and explanations of usage.
309
+ You can implement the [LayoutComponentWithState](./docs/api/foundation-layout.layoutcomponentwithstate.md) interface, which enables you to save and load the state *per instance* of your components. See the linked interface and the associated functions API documentation for examples and explanations of usage.
310
310
 
311
- Usage of this interface is optional, if you do not need to manage the state for your components in this way then simply do not implement the interface.
311
+ Usage of this interface is optional; if you do not need to manage the state for your components in this way, then simply do not implement the interface.
312
312
 
313
313
  :::warning
314
- The layout system is only interacting with the immediately contained items - so if you have components that contain other components, the top-level components will need to interact with the contained components to manage their state.
314
+ The layout system is only interacting with the immediately contained items - so if you have components that contain other components, each top-level component must interact with the contained components to manage their states.
315
315
  :::
316
316
 
317
317
  :::danger
@@ -328,8 +328,8 @@ There are certain limitations to this function, especially when using custom ele
328
328
  As a general rule, if you need to have elements with FAST bindings inside the layout, wrap them in custom elements.
329
329
  :::
330
330
 
331
- If you are writing your own custom element which needs to work inside of the layout, follow these steps.
332
- In the `@genesislcap/foundation-utils` package, there is a mix-in class `LifecycleMixin` which overrides the `cloneNode` API.
331
+ If you are writing your own custom element that needs to work inside the layout, follow these steps.
332
+ In the `@genesislcap/foundation-utils` package, there is a mix-in class `LifecycleMixin`, which overrides the `cloneNode` API.
333
333
 
334
334
  ```typescript
335
335
  // Make a call to `deepClone` and manually clone children
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.120.3-alpha-7ba1ef7.0",
4
+ "version": "14.121.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-layout.d.ts",
@@ -27,15 +27,15 @@
27
27
  "test:debug": "genx test --debug"
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.120.3-alpha-7ba1ef7.0",
31
- "@genesislcap/genx": "14.120.3-alpha-7ba1ef7.0",
30
+ "@genesislcap/foundation-testing": "14.121.1",
31
+ "@genesislcap/genx": "14.121.1",
32
32
  "rimraf": "^3.0.2"
33
33
  },
34
34
  "dependencies": {
35
35
  "@genesis-community/golden-layout": "^2.11.0",
36
- "@genesislcap/foundation-comms": "14.120.3-alpha-7ba1ef7.0",
37
- "@genesislcap/foundation-logger": "14.120.3-alpha-7ba1ef7.0",
38
- "@genesislcap/foundation-utils": "14.120.3-alpha-7ba1ef7.0",
36
+ "@genesislcap/foundation-comms": "14.121.1",
37
+ "@genesislcap/foundation-logger": "14.121.1",
38
+ "@genesislcap/foundation-utils": "14.121.1",
39
39
  "@microsoft/fast-components": "^2.21.3",
40
40
  "@microsoft/fast-element": "^1.7.0",
41
41
  "@microsoft/fast-foundation": "^2.33.2",
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "customElements": "dist/custom-elements.json",
53
- "gitHead": "f77f47498e0833672401df009209b294e077843d"
53
+ "gitHead": "8e78bf8e11be74bf258060aedab854dea1c7e11b"
54
54
  }