@genesislcap/grid-pro 14.232.0 → 14.233.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/dist/dts/cell-editors/number.editor.d.ts +1 -0
- package/dist/dts/cell-editors/number.editor.d.ts.map +1 -1
- package/dist/dts/datasource/base.datasource.d.ts.map +1 -1
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts +1 -5
- package/dist/dts/grid-pro-genesis-datasource/grid-pro-genesis-datasource.d.ts.map +1 -1
- package/dist/esm/cell-editors/number.editor.js +3 -0
- package/dist/esm/datasource/base.datasource.js +13 -4
- package/dist/esm/grid-pro-genesis-datasource/grid-pro-genesis-datasource.js +14 -8
- package/dist/grid-pro.api.json +43 -2
- package/dist/grid-pro.d.ts +2 -5
- package/docs/api/grid-pro.gridprogenesisdatasource.criteriachanged.md +2 -2
- package/docs/api/grid-pro.numbereditorparams.md +1 -0
- package/docs/api/grid-pro.numbereditorparams.onchange.md +11 -0
- package/docs/api-report.md +3 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/number.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,GAAG,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"number.editor.d.ts","sourceRoot":"","sources":["../../../src/cell-editors/number.editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;A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C,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC;IAErC,SAAS,CAAC,8BAA8B,CACtC,cAAc,EAAE,aAAa,EAAE,EAC/B,0BAA0B,EAAE,QAAQ,GACnC,MAAM,EAAE;IAsEX,SAAS,CAAC,mBAAmB,CAAC,YAAY,EAAE,GAAG,EAAE;IAwBjD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAgBhD,SAAS,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE;IAuBhD,SAAS,CAAC,sBAAsB;IAsChC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,wBAAwB;IAkBhC,SAAS,CAAC,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,GAAG,GAAG;IAIlE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI;IAI3F;;;;;OAKG;IACH,OAAO,CAAC,cAAc;CAwBvB"}
|
|
@@ -45,10 +45,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
45
45
|
readonly classList: DOMTokenList;
|
|
46
46
|
className: string;
|
|
47
47
|
readonly clientHeight: number;
|
|
48
|
-
/**
|
|
49
|
-
* Destroys the datasource, resetting it to its initial state.
|
|
50
|
-
* @public
|
|
51
|
-
*/
|
|
52
48
|
readonly clientLeft: number;
|
|
53
49
|
readonly clientTop: number;
|
|
54
50
|
readonly clientWidth: number;
|
|
@@ -337,7 +333,7 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
337
333
|
export declare class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
338
334
|
applyFuncName: string;
|
|
339
335
|
applyAsyncFuncName: string;
|
|
340
|
-
criteriaChanged(oldCriteria: string, newCriteria: string): void
|
|
336
|
+
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
341
337
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
342
338
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
343
339
|
restartOnReconnection: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC
|
|
1
|
+
{"version":3,"file":"grid-pro-genesis-datasource.d.ts","sourceRoot":"","sources":["../../../src/grid-pro-genesis-datasource/grid-pro-genesis-datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,WAAW,EAGX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAAqB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUzF;;;;GAIG;AACH,qBAGa,wBAAyB,SAAQ,6BAAqC;IACjF,aAAa,SAAsB;IACnC,kBAAkB,SAA2B;IAGvC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAS9D,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IA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extends FoundationElement {
|
|
|
33
33
|
changeHandler(event) {
|
|
34
34
|
const value = parseFloat(event.target.value);
|
|
35
35
|
this.value = !isNaN(value) ? value : undefined;
|
|
36
|
+
this.params.node.setDataValue(this.params.column, this.value, 'edit');
|
|
37
|
+
if (this.params.onChange)
|
|
38
|
+
this.params.onChange(this.value, this.params);
|
|
36
39
|
}
|
|
37
40
|
isCancelBeforeStart() {
|
|
38
41
|
return !!this.params.data[EDITED_COLUMN_FIELD];
|
|
@@ -239,16 +239,25 @@ export class GridProBaseDatasource extends GenesisGridDatasourceElement {
|
|
|
239
239
|
}
|
|
240
240
|
handleStreamInserts(insertedRows) {
|
|
241
241
|
insertedRows === null || insertedRows === void 0 ? void 0 : insertedRows.forEach((insertData) => {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
var _a, _b;
|
|
243
|
+
const rowId = insertData[this.rowId];
|
|
244
|
+
if (!rowId) {
|
|
245
|
+
logger.warn('Attempted to insert row without valid rowId', insertData);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
const existsInInternalState = this.rowData.has(rowId);
|
|
249
|
+
const existsInGrid = (_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.getRowNode(rowId);
|
|
250
|
+
if (existsInInternalState || existsInGrid || this.dataSubWasLoggedOff) {
|
|
251
|
+
const existingData = existsInInternalState || existsInGrid.data;
|
|
252
|
+
const updatedRow = Object.assign(Object.assign({}, existingData), insertData);
|
|
245
253
|
this.agTransaction.update.push(updatedRow);
|
|
254
|
+
this.rowData.set(rowId, updatedRow);
|
|
246
255
|
}
|
|
247
256
|
else {
|
|
248
257
|
this.agTransaction.add.push(insertData);
|
|
249
258
|
this.agTransaction.addIndex = 0;
|
|
259
|
+
this.rowData.set(rowId, insertData);
|
|
250
260
|
}
|
|
251
|
-
this.rowData.set(insertData[this.rowId], insertData);
|
|
252
261
|
});
|
|
253
262
|
}
|
|
254
263
|
handleStreamDeletes(deletedRows) {
|
|
@@ -27,10 +27,12 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
27
27
|
}
|
|
28
28
|
// DatasourceOptions
|
|
29
29
|
criteriaChanged(oldCriteria, newCriteria) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.
|
|
33
|
-
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
const criteriaIsNotDuplicate = oldCriteria !== normaliseCriteria(newCriteria, criteriaDelimiter);
|
|
32
|
+
if (this.datasource.initialized && criteriaIsNotDuplicate) {
|
|
33
|
+
yield this.reloadResourceData();
|
|
34
|
+
}
|
|
35
|
+
});
|
|
34
36
|
}
|
|
35
37
|
requestChanged(oldRequest, newRequest) {
|
|
36
38
|
const requestIsNotDuplicate = oldRequest !== newRequest;
|
|
@@ -210,13 +212,17 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
210
212
|
* @internal
|
|
211
213
|
*/
|
|
212
214
|
clearRowData(withColumnDefs = true) {
|
|
213
|
-
var _a, _b, _c, _d;
|
|
215
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
216
|
+
if (this.agGrid.asyncAdd || this.agGrid.asyncUpdate || this.agGrid.asyncRemove) {
|
|
217
|
+
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.flushAsyncTransactions();
|
|
218
|
+
}
|
|
214
219
|
this.rowData = new Map();
|
|
215
220
|
this.agTransaction = undefined;
|
|
216
221
|
if (withColumnDefs && !this.keepColDefsOnClearRowData) {
|
|
217
|
-
(
|
|
222
|
+
(_d = (_c = this.agGrid) === null || _c === void 0 ? void 0 : _c.gridApi) === null || _d === void 0 ? void 0 : _d.setColumnDefs([]);
|
|
218
223
|
}
|
|
219
|
-
(
|
|
224
|
+
(_f = (_e = this.agGrid) === null || _e === void 0 ? void 0 : _e.gridApi) === null || _f === void 0 ? void 0 : _f.setRowData([]);
|
|
225
|
+
(_h = (_g = this.agGrid) === null || _g === void 0 ? void 0 : _g.gridApi) === null || _h === void 0 ? void 0 : _h.refreshCells({ force: true });
|
|
220
226
|
}
|
|
221
227
|
/**
|
|
222
228
|
* Sets the columnDefs and rowData for the grid.
|
|
@@ -268,7 +274,7 @@ let GridProGenesisDatasource = class GridProGenesisDatasource extends LifecycleM
|
|
|
268
274
|
this.clearRowData(withoutColumnDefs);
|
|
269
275
|
(_b = (_a = this.agGrid) === null || _a === void 0 ? void 0 : _a.gridApi) === null || _b === void 0 ? void 0 : _b.showLoadingOverlay();
|
|
270
276
|
this.agGrid.removeAttribute('ds-disconnected');
|
|
271
|
-
this.loadResourceData(withoutFullInit);
|
|
277
|
+
yield this.loadResourceData(withoutFullInit);
|
|
272
278
|
});
|
|
273
279
|
}
|
|
274
280
|
/**
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -11092,9 +11092,14 @@
|
|
|
11092
11092
|
"kind": "Content",
|
|
11093
11093
|
"text": "): "
|
|
11094
11094
|
},
|
|
11095
|
+
{
|
|
11096
|
+
"kind": "Reference",
|
|
11097
|
+
"text": "Promise",
|
|
11098
|
+
"canonicalReference": "!Promise:interface"
|
|
11099
|
+
},
|
|
11095
11100
|
{
|
|
11096
11101
|
"kind": "Content",
|
|
11097
|
-
"text": "void"
|
|
11102
|
+
"text": "<void>"
|
|
11098
11103
|
},
|
|
11099
11104
|
{
|
|
11100
11105
|
"kind": "Content",
|
|
@@ -11104,7 +11109,7 @@
|
|
|
11104
11109
|
"isStatic": false,
|
|
11105
11110
|
"returnTypeTokenRange": {
|
|
11106
11111
|
"startIndex": 5,
|
|
11107
|
-
"endIndex":
|
|
11112
|
+
"endIndex": 7
|
|
11108
11113
|
},
|
|
11109
11114
|
"releaseTag": "Public",
|
|
11110
11115
|
"isProtected": false,
|
|
@@ -14180,6 +14185,42 @@
|
|
|
14180
14185
|
"endIndex": 2
|
|
14181
14186
|
}
|
|
14182
14187
|
},
|
|
14188
|
+
{
|
|
14189
|
+
"kind": "PropertySignature",
|
|
14190
|
+
"canonicalReference": "@genesislcap/grid-pro!NumberEditorParams#onChange:member",
|
|
14191
|
+
"docComment": "",
|
|
14192
|
+
"excerptTokens": [
|
|
14193
|
+
{
|
|
14194
|
+
"kind": "Content",
|
|
14195
|
+
"text": "onChange: "
|
|
14196
|
+
},
|
|
14197
|
+
{
|
|
14198
|
+
"kind": "Content",
|
|
14199
|
+
"text": "(value: number, params: "
|
|
14200
|
+
},
|
|
14201
|
+
{
|
|
14202
|
+
"kind": "Reference",
|
|
14203
|
+
"text": "NumberEditorParams",
|
|
14204
|
+
"canonicalReference": "@genesislcap/grid-pro!NumberEditorParams:interface"
|
|
14205
|
+
},
|
|
14206
|
+
{
|
|
14207
|
+
"kind": "Content",
|
|
14208
|
+
"text": ") => void"
|
|
14209
|
+
},
|
|
14210
|
+
{
|
|
14211
|
+
"kind": "Content",
|
|
14212
|
+
"text": ";"
|
|
14213
|
+
}
|
|
14214
|
+
],
|
|
14215
|
+
"isReadonly": false,
|
|
14216
|
+
"isOptional": false,
|
|
14217
|
+
"releaseTag": "Public",
|
|
14218
|
+
"name": "onChange",
|
|
14219
|
+
"propertyTypeTokenRange": {
|
|
14220
|
+
"startIndex": 1,
|
|
14221
|
+
"endIndex": 4
|
|
14222
|
+
}
|
|
14223
|
+
},
|
|
14183
14224
|
{
|
|
14184
14225
|
"kind": "PropertySignature",
|
|
14185
14226
|
"canonicalReference": "@genesislcap/grid-pro!NumberEditorParams#placeholder:member",
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -2542,7 +2542,7 @@ export declare type GridProEventsListeners = {
|
|
|
2542
2542
|
export declare class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
2543
2543
|
applyFuncName: string;
|
|
2544
2544
|
applyAsyncFuncName: string;
|
|
2545
|
-
criteriaChanged(oldCriteria: string, newCriteria: string): void
|
|
2545
|
+
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
2546
2546
|
requestChanged(oldRequest: string, newRequest: string): void;
|
|
2547
2547
|
resourceNameChanged(oldValue: string, newValue: string): void;
|
|
2548
2548
|
restartOnReconnection: boolean;
|
|
@@ -2675,10 +2675,6 @@ declare const GridProGenesisDatasource_base: (new (...args: any[]) => {
|
|
|
2675
2675
|
readonly classList: DOMTokenList;
|
|
2676
2676
|
className: string;
|
|
2677
2677
|
readonly clientHeight: number;
|
|
2678
|
-
/**
|
|
2679
|
-
* Destroys the datasource, resetting it to its initial state.
|
|
2680
|
-
* @public
|
|
2681
|
-
*/
|
|
2682
2678
|
readonly clientLeft: number;
|
|
2683
2679
|
readonly clientTop: number;
|
|
2684
2680
|
readonly clientWidth: number;
|
|
@@ -3509,6 +3505,7 @@ export declare interface NumberEditorParams extends ICellEditorParams {
|
|
|
3509
3505
|
formatOptions: any;
|
|
3510
3506
|
placeholder: string;
|
|
3511
3507
|
disabled: boolean;
|
|
3508
|
+
onChange: (value: number, params: NumberEditorParams) => void;
|
|
3512
3509
|
}
|
|
3513
3510
|
|
|
3514
3511
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**Signature:**
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
criteriaChanged(oldCriteria: string, newCriteria: string): void
|
|
10
|
+
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
@@ -19,5 +19,5 @@ criteriaChanged(oldCriteria: string, newCriteria: string): void;
|
|
|
19
19
|
|
|
20
20
|
**Returns:**
|
|
21
21
|
|
|
22
|
-
void
|
|
22
|
+
Promise<void>
|
|
23
23
|
|
|
@@ -19,6 +19,7 @@ export interface NumberEditorParams extends ICellEditorParams
|
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| [disabled](./grid-pro.numbereditorparams.disabled.md) | | boolean | |
|
|
21
21
|
| [formatOptions](./grid-pro.numbereditorparams.formatoptions.md) | | any | |
|
|
22
|
+
| [onChange](./grid-pro.numbereditorparams.onchange.md) | | (value: number, params: [NumberEditorParams](./grid-pro.numbereditorparams.md)<!-- -->) => void | |
|
|
22
23
|
| [placeholder](./grid-pro.numbereditorparams.placeholder.md) | | string | |
|
|
23
24
|
| [withFormatting](./grid-pro.numbereditorparams.withformatting.md) | | boolean | |
|
|
24
25
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/grid-pro](./grid-pro.md) > [NumberEditorParams](./grid-pro.numbereditorparams.md) > [onChange](./grid-pro.numbereditorparams.onchange.md)
|
|
4
|
+
|
|
5
|
+
## NumberEditorParams.onChange property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
onChange: (value: number, params: NumberEditorParams) => void;
|
|
11
|
+
```
|
package/docs/api-report.md
CHANGED
|
@@ -1025,7 +1025,7 @@ export class GridProGenesisDatasource extends GridProGenesisDatasource_base {
|
|
|
1025
1025
|
// (undocumented)
|
|
1026
1026
|
connectedCallback(): void;
|
|
1027
1027
|
// (undocumented)
|
|
1028
|
-
criteriaChanged(oldCriteria: string, newCriteria: string): void
|
|
1028
|
+
criteriaChanged(oldCriteria: string, newCriteria: string): Promise<void>;
|
|
1029
1029
|
// (undocumented)
|
|
1030
1030
|
deepClone(): Node;
|
|
1031
1031
|
// @deprecated
|
|
@@ -1270,6 +1270,8 @@ export interface NumberEditorParams extends ICellEditorParams {
|
|
|
1270
1270
|
// (undocumented)
|
|
1271
1271
|
formatOptions: any;
|
|
1272
1272
|
// (undocumented)
|
|
1273
|
+
onChange: (value: number, params: NumberEditorParams) => void;
|
|
1274
|
+
// (undocumented)
|
|
1273
1275
|
placeholder: string;
|
|
1274
1276
|
// (undocumented)
|
|
1275
1277
|
withFormatting: boolean;
|
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.
|
|
4
|
+
"version": "14.233.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@genesislcap/foundation-testing": "14.
|
|
42
|
-
"@genesislcap/genx": "14.
|
|
43
|
-
"@genesislcap/rollup-builder": "14.
|
|
44
|
-
"@genesislcap/ts-builder": "14.
|
|
45
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
46
|
-
"@genesislcap/vite-builder": "14.
|
|
47
|
-
"@genesislcap/webpack-builder": "14.
|
|
41
|
+
"@genesislcap/foundation-testing": "14.233.0",
|
|
42
|
+
"@genesislcap/genx": "14.233.0",
|
|
43
|
+
"@genesislcap/rollup-builder": "14.233.0",
|
|
44
|
+
"@genesislcap/ts-builder": "14.233.0",
|
|
45
|
+
"@genesislcap/uvu-playwright-builder": "14.233.0",
|
|
46
|
+
"@genesislcap/vite-builder": "14.233.0",
|
|
47
|
+
"@genesislcap/webpack-builder": "14.233.0",
|
|
48
48
|
"rimraf": "^5.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@genesislcap/foundation-comms": "14.
|
|
52
|
-
"@genesislcap/foundation-logger": "14.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.
|
|
51
|
+
"@genesislcap/foundation-comms": "14.233.0",
|
|
52
|
+
"@genesislcap/foundation-logger": "14.233.0",
|
|
53
|
+
"@genesislcap/foundation-ui": "14.233.0",
|
|
54
|
+
"@genesislcap/foundation-utils": "14.233.0",
|
|
55
55
|
"@microsoft/fast-colors": "5.3.1",
|
|
56
56
|
"@microsoft/fast-components": "2.30.6",
|
|
57
57
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"customElements": "dist/custom-elements.json",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "75bb6ef14a2e732337af5e0498ebf6ce2a1aa980"
|
|
81
81
|
}
|