@genesislcap/grid-pro 14.336.2-alpha-7eb86ca.0 → 14.336.2

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.
@@ -15765,6 +15765,30 @@
15765
15765
  },
15766
15766
  "privacy": "private"
15767
15767
  },
15768
+ {
15769
+ "kind": "field",
15770
+ "name": "labelElement",
15771
+ "type": {
15772
+ "text": "HTMLElement"
15773
+ },
15774
+ "privacy": "private"
15775
+ },
15776
+ {
15777
+ "kind": "field",
15778
+ "name": "valueElement",
15779
+ "type": {
15780
+ "text": "HTMLElement"
15781
+ },
15782
+ "privacy": "private"
15783
+ },
15784
+ {
15785
+ "kind": "field",
15786
+ "name": "currentParams",
15787
+ "type": {
15788
+ "text": "LabelValueStatusBarParams"
15789
+ },
15790
+ "privacy": "private"
15791
+ },
15768
15792
  {
15769
15793
  "kind": "method",
15770
15794
  "name": "init",
@@ -15777,6 +15801,33 @@
15777
15801
  }
15778
15802
  ]
15779
15803
  },
15804
+ {
15805
+ "kind": "method",
15806
+ "name": "updateParams",
15807
+ "return": {
15808
+ "type": {
15809
+ "text": "void"
15810
+ }
15811
+ },
15812
+ "parameters": [
15813
+ {
15814
+ "name": "params",
15815
+ "type": {
15816
+ "text": "Partial<LabelValueStatusBarParams>"
15817
+ }
15818
+ }
15819
+ ]
15820
+ },
15821
+ {
15822
+ "kind": "method",
15823
+ "name": "updateDisplay",
15824
+ "privacy": "private",
15825
+ "return": {
15826
+ "type": {
15827
+ "text": "void"
15828
+ }
15829
+ }
15830
+ },
15780
15831
  {
15781
15832
  "kind": "method",
15782
15833
  "name": "getGui",
@@ -14,7 +14,12 @@ export type LabelValueStatusBarParams = {
14
14
  */
15
15
  export declare class LabelValueStatusBarComponent implements IStatusPanelComp {
16
16
  private element;
17
+ private labelElement;
18
+ private valueElement;
19
+ private currentParams;
17
20
  init(params: IStatusPanelParams): void;
21
+ updateParams(params: Partial<LabelValueStatusBarParams>): void;
22
+ private updateDisplay;
18
23
  getGui(): HTMLElement;
19
24
  destroy(): void;
20
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"label-value.status-bar.d.ts","sourceRoot":"","sources":["../../../src/status-bar-components/label-value.status-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,gBAAgB;IACnE,OAAO,CAAC,OAAO,CAAc;IAE7B,IAAI,CAAC,MAAM,EAAE,kBAAkB;IA6B/B,MAAM,IAAI,WAAW;IAIrB,OAAO;CACR"}
1
+ {"version":3,"file":"label-value.status-bar.d.ts","sourceRoot":"","sources":["../../../src/status-bar-components/label-value.status-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,gBAAgB;IACnE,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,aAAa,CAA4B;IAEjD,IAAI,CAAC,MAAM,EAAE,kBAAkB;IAU/B,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,IAAI;IAK9D,OAAO,CAAC,aAAa;IAoCrB,MAAM,IAAI,WAAW;IAIrB,OAAO;CACR"}
@@ -8,23 +8,42 @@ export class LabelValueStatusBarComponent {
8
8
  this.element.classList.add('ag-status-name-value', 'ag-status-panel');
9
9
  this.element.setAttribute('data-test-id', 'grid-label-value-panel');
10
10
  this.element.setAttribute('role', 'status');
11
- const statusBarParams = params;
12
- if (statusBarParams.hide) {
11
+ this.currentParams = params;
12
+ this.updateDisplay();
13
+ }
14
+ updateParams(params) {
15
+ this.currentParams = Object.assign(Object.assign({}, this.currentParams), params);
16
+ this.updateDisplay();
17
+ }
18
+ updateDisplay() {
19
+ if (!this.element)
20
+ return;
21
+ if (this.currentParams.hide) {
13
22
  this.element.style.display = 'none';
23
+ return;
24
+ }
25
+ else {
26
+ this.element.style.display = '';
14
27
  }
15
28
  // Set accessible label for the entire component
16
- this.element.setAttribute('aria-label', `${statusBarParams.label}: ${statusBarParams.value}`);
17
- const label = document.createElement('span');
18
- label.setAttribute('data-test-id', 'grid-label-value-label');
19
- label.setAttribute('aria-hidden', 'true'); // Hide from screen readers since parent has full aria-label
20
- label.innerHTML = `${statusBarParams.label}:&nbsp; `;
21
- const value = document.createElement('span');
22
- value.classList.add('ag-status-name-value-value');
23
- value.setAttribute('data-test-id', 'grid-label-value-value');
24
- value.setAttribute('aria-hidden', 'true'); // Hide from screen readers since parent has full aria-label
25
- value.innerHTML = statusBarParams.value;
26
- this.element.appendChild(label);
27
- this.element.appendChild(value);
29
+ this.element.setAttribute('aria-label', `${this.currentParams.label}: ${this.currentParams.value}`);
30
+ // Create or update label element
31
+ if (!this.labelElement) {
32
+ this.labelElement = document.createElement('span');
33
+ this.labelElement.setAttribute('data-test-id', 'grid-label-value-label');
34
+ this.labelElement.setAttribute('aria-hidden', 'true');
35
+ this.element.appendChild(this.labelElement);
36
+ }
37
+ this.labelElement.innerHTML = `${this.currentParams.label}:&nbsp; `;
38
+ // Create or update value element
39
+ if (!this.valueElement) {
40
+ this.valueElement = document.createElement('span');
41
+ this.valueElement.classList.add('ag-status-name-value-value');
42
+ this.valueElement.setAttribute('data-test-id', 'grid-label-value-value');
43
+ this.valueElement.setAttribute('aria-hidden', 'true');
44
+ this.element.appendChild(this.valueElement);
45
+ }
46
+ this.valueElement.innerHTML = this.currentParams.value;
28
47
  }
29
48
  getGui() {
30
49
  return this.element;
@@ -18022,6 +18022,68 @@
18022
18022
  "isOptional": false,
18023
18023
  "isAbstract": false,
18024
18024
  "name": "init"
18025
+ },
18026
+ {
18027
+ "kind": "Method",
18028
+ "canonicalReference": "@genesislcap/grid-pro!LabelValueStatusBarComponent#updateParams:member(1)",
18029
+ "docComment": "",
18030
+ "excerptTokens": [
18031
+ {
18032
+ "kind": "Content",
18033
+ "text": "updateParams(params: "
18034
+ },
18035
+ {
18036
+ "kind": "Reference",
18037
+ "text": "Partial",
18038
+ "canonicalReference": "!Partial:type"
18039
+ },
18040
+ {
18041
+ "kind": "Content",
18042
+ "text": "<"
18043
+ },
18044
+ {
18045
+ "kind": "Reference",
18046
+ "text": "LabelValueStatusBarParams",
18047
+ "canonicalReference": "@genesislcap/grid-pro!LabelValueStatusBarParams:type"
18048
+ },
18049
+ {
18050
+ "kind": "Content",
18051
+ "text": ">"
18052
+ },
18053
+ {
18054
+ "kind": "Content",
18055
+ "text": "): "
18056
+ },
18057
+ {
18058
+ "kind": "Content",
18059
+ "text": "void"
18060
+ },
18061
+ {
18062
+ "kind": "Content",
18063
+ "text": ";"
18064
+ }
18065
+ ],
18066
+ "isStatic": false,
18067
+ "returnTypeTokenRange": {
18068
+ "startIndex": 6,
18069
+ "endIndex": 7
18070
+ },
18071
+ "releaseTag": "Public",
18072
+ "isProtected": false,
18073
+ "overloadIndex": 1,
18074
+ "parameters": [
18075
+ {
18076
+ "parameterName": "params",
18077
+ "parameterTypeTokenRange": {
18078
+ "startIndex": 1,
18079
+ "endIndex": 5
18080
+ },
18081
+ "isOptional": false
18082
+ }
18083
+ ],
18084
+ "isOptional": false,
18085
+ "isAbstract": false,
18086
+ "name": "updateParams"
18025
18087
  }
18026
18088
  ],
18027
18089
  "implementsTokenRanges": [
@@ -4135,7 +4135,12 @@ export declare class KVStorageStatePersistence implements StatePersistence {
4135
4135
  */
4136
4136
  export declare class LabelValueStatusBarComponent implements IStatusPanelComp {
4137
4137
  private element;
4138
+ private labelElement;
4139
+ private valueElement;
4140
+ private currentParams;
4138
4141
  init(params: IStatusPanelParams): void;
4142
+ updateParams(params: Partial<LabelValueStatusBarParams>): void;
4143
+ private updateDisplay;
4139
4144
  getGui(): HTMLElement;
4140
4145
  destroy(): void;
4141
4146
  }
@@ -66,6 +66,18 @@ Description
66
66
  </td><td>
67
67
 
68
68
 
69
+ </td></tr>
70
+ <tr><td>
71
+
72
+ [updateParams(params)](./grid-pro.labelvaluestatusbarcomponent.updateparams.md)
73
+
74
+
75
+ </td><td>
76
+
77
+
78
+ </td><td>
79
+
80
+
69
81
  </td></tr>
70
82
  </tbody></table>
71
83
 
@@ -0,0 +1,50 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/grid-pro](./grid-pro.md) &gt; [LabelValueStatusBarComponent](./grid-pro.labelvaluestatusbarcomponent.md) &gt; [updateParams](./grid-pro.labelvaluestatusbarcomponent.updateparams.md)
4
+
5
+ ## LabelValueStatusBarComponent.updateParams() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ updateParams(params: Partial<LabelValueStatusBarParams>): void;
11
+ ```
12
+
13
+ ## Parameters
14
+
15
+ <table><thead><tr><th>
16
+
17
+ Parameter
18
+
19
+
20
+ </th><th>
21
+
22
+ Type
23
+
24
+
25
+ </th><th>
26
+
27
+ Description
28
+
29
+
30
+ </th></tr></thead>
31
+ <tbody><tr><td>
32
+
33
+ params
34
+
35
+
36
+ </td><td>
37
+
38
+ Partial&lt;[LabelValueStatusBarParams](./grid-pro.labelvaluestatusbarparams.md)<!-- -->&gt;
39
+
40
+
41
+ </td><td>
42
+
43
+
44
+ </td></tr>
45
+ </tbody></table>
46
+
47
+ **Returns:**
48
+
49
+ void
50
+
@@ -1403,6 +1403,8 @@ export class LabelValueStatusBarComponent implements IStatusPanelComp {
1403
1403
  getGui(): HTMLElement;
1404
1404
  // (undocumented)
1405
1405
  init(params: IStatusPanelParams): void;
1406
+ // (undocumented)
1407
+ updateParams(params: Partial<LabelValueStatusBarParams>): void;
1406
1408
  }
1407
1409
 
1408
1410
  // @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/grid-pro",
3
3
  "description": "Genesis Foundation AG Grid",
4
- "version": "14.336.2-alpha-7eb86ca.0",
4
+ "version": "14.336.2",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -38,19 +38,19 @@
38
38
  }
39
39
  },
40
40
  "devDependencies": {
41
- "@genesislcap/foundation-testing": "14.336.2-alpha-7eb86ca.0",
42
- "@genesislcap/genx": "14.336.2-alpha-7eb86ca.0",
43
- "@genesislcap/rollup-builder": "14.336.2-alpha-7eb86ca.0",
44
- "@genesislcap/ts-builder": "14.336.2-alpha-7eb86ca.0",
45
- "@genesislcap/uvu-playwright-builder": "14.336.2-alpha-7eb86ca.0",
46
- "@genesislcap/vite-builder": "14.336.2-alpha-7eb86ca.0",
47
- "@genesislcap/webpack-builder": "14.336.2-alpha-7eb86ca.0"
41
+ "@genesislcap/foundation-testing": "14.336.2",
42
+ "@genesislcap/genx": "14.336.2",
43
+ "@genesislcap/rollup-builder": "14.336.2",
44
+ "@genesislcap/ts-builder": "14.336.2",
45
+ "@genesislcap/uvu-playwright-builder": "14.336.2",
46
+ "@genesislcap/vite-builder": "14.336.2",
47
+ "@genesislcap/webpack-builder": "14.336.2"
48
48
  },
49
49
  "dependencies": {
50
- "@genesislcap/foundation-comms": "14.336.2-alpha-7eb86ca.0",
51
- "@genesislcap/foundation-logger": "14.336.2-alpha-7eb86ca.0",
52
- "@genesislcap/foundation-ui": "14.336.2-alpha-7eb86ca.0",
53
- "@genesislcap/foundation-utils": "14.336.2-alpha-7eb86ca.0",
50
+ "@genesislcap/foundation-comms": "14.336.2",
51
+ "@genesislcap/foundation-logger": "14.336.2",
52
+ "@genesislcap/foundation-ui": "14.336.2",
53
+ "@genesislcap/foundation-utils": "14.336.2",
54
54
  "@microsoft/fast-colors": "5.3.1",
55
55
  "@microsoft/fast-components": "2.30.6",
56
56
  "@microsoft/fast-element": "1.14.0",
@@ -75,5 +75,5 @@
75
75
  "access": "public"
76
76
  },
77
77
  "customElements": "dist/custom-elements.json",
78
- "gitHead": "330b6db51b43de4804c89dbc19dadb96fc4bdbd7"
78
+ "gitHead": "e897d950ef7e031c0a096f1eae036cda3040d017"
79
79
  }