@genesislcap/foundation-layout 14.97.0 → 14.98.0-fui-1562.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -277,8 +277,9 @@ This section concerns the behaviour of elements inside the layout. If you are us
277
277
 
278
278
  There are 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:
279
279
  - When an item is dragged around the layout.
280
- - Potentially, when another item is removed from the layout
280
+ - Potentially, when another item is removed from the layout.
281
281
  - Potentially, when new items are added to the layout.
282
+ - When an item is maximised or minimised.
282
283
 
283
284
  For example, if you have a component with a loaded resource on the layout (such as a grid with a `grid-pro-genesis-datasource`) and you add a new item to the layout with the JavaScript API, then the component with the loaded resource will have to reload too. It is important that any such element accounts for this, including such requirements as caching data, or resizing correctly.
284
285
 
@@ -109,6 +109,10 @@ export declare class FoundationLayout extends FoundationElement implements Layou
109
109
  private onPostItemResized;
110
110
  /** @internal */
111
111
  private onAutosaveRequest;
112
+ /** @internal */
113
+ private onPreItemMaximised;
114
+ /** @internal */
115
+ private onPreItemMinimised;
112
116
  /**
113
117
  * JS API, public
114
118
  */
@@ -1 +1 @@
1
- {"version":3,"file":"layout-main.d.ts","sourceRoot":"","sources":["../../../src/main/layout-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEZ,cAAc,EAGf,MAAM,kCAAkC,CAAC;AAI1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAEL,eAAe,EAGf,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAKb,YAAY,EAMb,MAAM,WAAW,CAAC;AAKnB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC;;;;;;GAMG;AACH,qBAAa,gBAAiB,SAAQ,iBAAkB,YAAW,eAAe;;IAChF,OAAO,CAAC,MAAM,CAAe;IAC7B,gBAAgB;IAChB,aAAa,EAAE,WAAW,CAAC;IAC3B,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AAC,SAAS,cAAc,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC;IAetD;;;;;;;OAOG;IACH,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,kBAAkB,GAAG,MAAM;IAsEtE;;;OAGG;IACH,OAAO,CAAC,wBAAwB;IAehC;;;;SAIK;IACL,OAAO,CAAC,kBAAkB;IAY1B;;;;;;;;OAQG;IACH,OAAO,CAAC,kCAAkC;IA4B1C;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,oBAAoB;IAW5B;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAU3B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAc1B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAM3B;;OAEG;IACH,OAAO,CAAC,4BAA4B;CAUrC;AAMD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uEAK1B,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;2BAI3B,CAAC"}
@@ -95,6 +95,8 @@ export class FoundationLayout extends FoundationElement {
95
95
  this.onPostItemRemoved = this.onPostItemRemoved.bind(this);
96
96
  this.onPreItemRemoved = this.onPreItemRemoved.bind(this);
97
97
  this.onAutosaveRequest = this.onAutosaveRequest.bind(this);
98
+ this.onPreItemMaximised = this.onPreItemMaximised.bind(this);
99
+ this.onPreItemMinimised = this.onPreItemMinimised.bind(this);
98
100
  }
99
101
  /** @internal */
100
102
  connectedCallback() {
@@ -115,6 +117,8 @@ export class FoundationLayout extends FoundationElement {
115
117
  this.shadowRoot.addEventListener('dragStop', this.onDragStop, true);
116
118
  this.shadowRoot.addEventListener('closeButtonPre', this.onPreItemRemoved, true);
117
119
  this.shadowRoot.addEventListener('closeButtonPressed', this.onPostItemRemoved, true);
120
+ this.shadowRoot.addEventListener('maximised', this.onPreItemMaximised, true);
121
+ this.shadowRoot.addEventListener('minimised', this.onPreItemMinimised, true);
118
122
  // events.ts events
119
123
  this.shadowRoot.addEventListener(LayoutReceiveEvents.autosave, this.onAutosaveRequest, true);
120
124
  this.setupCustomButtons();
@@ -126,6 +130,8 @@ export class FoundationLayout extends FoundationElement {
126
130
  this.shadowRoot.removeEventListener('dragStop', this.onDragStop);
127
131
  this.shadowRoot.removeEventListener('closeButtonPre', this.onPreItemRemoved);
128
132
  this.shadowRoot.removeEventListener('closeButtonPressed', this.onPostItemRemoved);
133
+ this.shadowRoot.removeEventListener('maximised', this.onPreItemMaximised);
134
+ this.shadowRoot.removeEventListener('minimised', this.onPreItemMinimised);
129
135
  // events.ts events
130
136
  this.shadowRoot.addEventListener(LayoutReceiveEvents.autosave, this.onAutosaveRequest);
131
137
  }
@@ -162,6 +168,14 @@ export class FoundationLayout extends FoundationElement {
162
168
  onAutosaveRequest() {
163
169
  this.cacheAndSaveLayout();
164
170
  }
171
+ /** @internal */
172
+ onPreItemMaximised() {
173
+ this.updateLifecycleToken();
174
+ }
175
+ /** @internal */
176
+ onPreItemMinimised() {
177
+ this.updateLifecycleToken();
178
+ }
165
179
  /**
166
180
  * JS API, public
167
181
  */
@@ -145,6 +145,10 @@ export declare class FoundationLayout extends FoundationElement implements Layou
145
145
  private onPostItemResized;
146
146
  /** @internal */
147
147
  private onAutosaveRequest;
148
+ /** @internal */
149
+ private onPreItemMaximised;
150
+ /** @internal */
151
+ private onPreItemMinimised;
148
152
  /**
149
153
  * JS API, public
150
154
  */
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.97.0",
4
+ "version": "14.98.0-fui-1562.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.97.0",
31
- "@genesislcap/genx": "14.97.0",
30
+ "@genesislcap/foundation-testing": "14.98.0-fui-1562.1",
31
+ "@genesislcap/genx": "14.98.0-fui-1562.1",
32
32
  "rimraf": "^3.0.2"
33
33
  },
34
34
  "dependencies": {
35
- "@genesis-community/golden-layout": "^2.10.1",
36
- "@genesislcap/foundation-comms": "14.97.0",
37
- "@genesislcap/foundation-logger": "14.97.0",
38
- "@genesislcap/foundation-utils": "14.97.0",
35
+ "@genesis-community/golden-layout": "^2.11.0",
36
+ "@genesislcap/foundation-comms": "14.98.0-fui-1562.1",
37
+ "@genesislcap/foundation-logger": "14.98.0-fui-1562.1",
38
+ "@genesislcap/foundation-utils": "14.98.0-fui-1562.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": "8a8a410a437d11bd1ada9d540411d3701f1382e5"
53
+ "gitHead": "436643224eccacc8e35c5959f72e71f4c89b897b"
54
54
  }