@genesislcap/rapid-grid-pro 14.325.1 → 14.326.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.
@@ -236,6 +236,32 @@
236
236
  "module": "src/grid-pro.ts"
237
237
  }
238
238
  },
239
+ {
240
+ "kind": "field",
241
+ "name": "cachedTotalColumnWidth",
242
+ "type": {
243
+ "text": "number | null"
244
+ },
245
+ "privacy": "private",
246
+ "default": "null",
247
+ "inheritedFrom": {
248
+ "name": "GridPro",
249
+ "module": "src/grid-pro.ts"
250
+ }
251
+ },
252
+ {
253
+ "kind": "field",
254
+ "name": "columnCount",
255
+ "type": {
256
+ "text": "number"
257
+ },
258
+ "privacy": "private",
259
+ "default": "0",
260
+ "inheritedFrom": {
261
+ "name": "GridPro",
262
+ "module": "src/grid-pro.ts"
263
+ }
264
+ },
239
265
  {
240
266
  "kind": "field",
241
267
  "name": "gridErrorItems",
@@ -296,6 +322,34 @@
296
322
  "module": "src/grid-pro.ts"
297
323
  }
298
324
  },
325
+ {
326
+ "kind": "field",
327
+ "name": "sizeColumnsToContent",
328
+ "type": {
329
+ "text": "boolean"
330
+ },
331
+ "default": "false",
332
+ "description": "Boolean attribute to control whether the grid automatically sizes columns to fit their content.\nThis will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.",
333
+ "privacy": "public",
334
+ "inheritedFrom": {
335
+ "name": "GridPro",
336
+ "module": "src/grid-pro.ts"
337
+ }
338
+ },
339
+ {
340
+ "kind": "field",
341
+ "name": "sizeColumnsToFit",
342
+ "type": {
343
+ "text": "boolean"
344
+ },
345
+ "default": "false",
346
+ "description": "Boolean attribute to adjust the size of columns to fit the available horizontal space.\nThis will call AG Grid's sizeColumnsToFit() method.",
347
+ "privacy": "public",
348
+ "inheritedFrom": {
349
+ "name": "GridPro",
350
+ "module": "src/grid-pro.ts"
351
+ }
352
+ },
299
353
  {
300
354
  "kind": "field",
301
355
  "name": "addIndex",
@@ -411,6 +465,19 @@
411
465
  "module": "src/grid-pro.ts"
412
466
  }
413
467
  },
468
+ {
469
+ "kind": "field",
470
+ "name": "defaultColumnConfig",
471
+ "type": {
472
+ "text": "ColDef[]"
473
+ },
474
+ "default": "[]",
475
+ "description": "The default column config to reset to when deleteColumnState is called.",
476
+ "inheritedFrom": {
477
+ "name": "GridPro",
478
+ "module": "src/grid-pro.ts"
479
+ }
480
+ },
414
481
  {
415
482
  "kind": "field",
416
483
  "name": "headerCaseType",
@@ -974,6 +1041,31 @@
974
1041
  "module": "src/grid-pro.ts"
975
1042
  }
976
1043
  },
1044
+ {
1045
+ "kind": "method",
1046
+ "name": "deleteColumnState",
1047
+ "return": {
1048
+ "type": {
1049
+ "text": "Promise<void>"
1050
+ }
1051
+ },
1052
+ "parameters": [
1053
+ {
1054
+ "name": "resetToDefault",
1055
+ "default": "true",
1056
+ "type": {
1057
+ "text": "boolean"
1058
+ },
1059
+ "description": "Whether to reset columns to their default configuration. Defaults to true."
1060
+ }
1061
+ ],
1062
+ "description": "Deletes the saved column state for the current grid",
1063
+ "privacy": "public",
1064
+ "inheritedFrom": {
1065
+ "name": "GridPro",
1066
+ "module": "src/grid-pro.ts"
1067
+ }
1068
+ },
977
1069
  {
978
1070
  "kind": "method",
979
1071
  "name": "restoreColumnState",
@@ -1303,6 +1395,81 @@
1303
1395
  "module": "src/grid-pro.ts"
1304
1396
  }
1305
1397
  },
1398
+ {
1399
+ "kind": "method",
1400
+ "name": "handleColumnSizing",
1401
+ "privacy": "private",
1402
+ "description": "Handles column sizing based on sizeColumnsToContent and sizeColumnsToFit attributes",
1403
+ "inheritedFrom": {
1404
+ "name": "GridPro",
1405
+ "module": "src/grid-pro.ts"
1406
+ }
1407
+ },
1408
+ {
1409
+ "kind": "method",
1410
+ "name": "handleBothSizingModes",
1411
+ "privacy": "private",
1412
+ "description": "Handles when both sizeColumnsToContent and sizeColumnsToFit are enabled",
1413
+ "inheritedFrom": {
1414
+ "name": "GridPro",
1415
+ "module": "src/grid-pro.ts"
1416
+ }
1417
+ },
1418
+ {
1419
+ "kind": "method",
1420
+ "name": "handleIndividualSizingModes",
1421
+ "privacy": "private",
1422
+ "description": "Handles individual sizing modes when only one is enabled",
1423
+ "inheritedFrom": {
1424
+ "name": "GridPro",
1425
+ "module": "src/grid-pro.ts"
1426
+ }
1427
+ },
1428
+ {
1429
+ "kind": "method",
1430
+ "name": "calculateTotalColumnWidth",
1431
+ "privacy": "private",
1432
+ "return": {
1433
+ "type": {
1434
+ "text": "number"
1435
+ }
1436
+ },
1437
+ "description": "Calculates the total width of all columns",
1438
+ "inheritedFrom": {
1439
+ "name": "GridPro",
1440
+ "module": "src/grid-pro.ts"
1441
+ }
1442
+ },
1443
+ {
1444
+ "kind": "method",
1445
+ "name": "invalidateColumnWidthCache",
1446
+ "privacy": "private",
1447
+ "return": {
1448
+ "type": {
1449
+ "text": "void"
1450
+ }
1451
+ },
1452
+ "description": "Invalidates the cached column width calculation",
1453
+ "inheritedFrom": {
1454
+ "name": "GridPro",
1455
+ "module": "src/grid-pro.ts"
1456
+ }
1457
+ },
1458
+ {
1459
+ "kind": "method",
1460
+ "name": "getGridWidth",
1461
+ "privacy": "private",
1462
+ "return": {
1463
+ "type": {
1464
+ "text": "number"
1465
+ }
1466
+ },
1467
+ "description": "Gets the available grid width with fallbacks",
1468
+ "inheritedFrom": {
1469
+ "name": "GridPro",
1470
+ "module": "src/grid-pro.ts"
1471
+ }
1472
+ },
1306
1473
  {
1307
1474
  "kind": "method",
1308
1475
  "name": "agAttributeChangedCallback",
@@ -1532,6 +1699,32 @@
1532
1699
  "module": "src/grid-pro.ts"
1533
1700
  }
1534
1701
  },
1702
+ {
1703
+ "name": "size-columns-to-content",
1704
+ "type": {
1705
+ "text": "boolean"
1706
+ },
1707
+ "default": "false",
1708
+ "description": "Boolean attribute to control whether the grid automatically sizes columns to fit their content.\nThis will call AG Grid's autoSizeColumns() method to automatically adjust column widths based on content.",
1709
+ "fieldName": "sizeColumnsToContent",
1710
+ "inheritedFrom": {
1711
+ "name": "GridPro",
1712
+ "module": "src/grid-pro.ts"
1713
+ }
1714
+ },
1715
+ {
1716
+ "name": "size-columns-to-fit",
1717
+ "type": {
1718
+ "text": "boolean"
1719
+ },
1720
+ "default": "false",
1721
+ "description": "Boolean attribute to adjust the size of columns to fit the available horizontal space.\nThis will call AG Grid's sizeColumnsToFit() method.",
1722
+ "fieldName": "sizeColumnsToFit",
1723
+ "inheritedFrom": {
1724
+ "name": "GridPro",
1725
+ "module": "src/grid-pro.ts"
1726
+ }
1727
+ },
1535
1728
  {
1536
1729
  "name": "add-index",
1537
1730
  "type": {
@@ -1647,6 +1840,19 @@
1647
1840
  "module": "src/grid-pro.ts"
1648
1841
  }
1649
1842
  },
1843
+ {
1844
+ "name": "default-column-config",
1845
+ "type": {
1846
+ "text": "ColDef[]"
1847
+ },
1848
+ "default": "[]",
1849
+ "description": "The default column config to reset to when deleteColumnState is called.",
1850
+ "fieldName": "defaultColumnConfig",
1851
+ "inheritedFrom": {
1852
+ "name": "GridPro",
1853
+ "module": "src/grid-pro.ts"
1854
+ }
1855
+ },
1650
1856
  {
1651
1857
  "name": "header-case-type",
1652
1858
  "type": {
@@ -26,18 +26,21 @@ export const rapidAgActionRenderer = RapidAgActionRenderer.compose({
26
26
  <rapid-button
27
27
  class="action-renderer button-padding"
28
28
  part="action-renderer"
29
- style="${(x) => x.params.actionButtonStyle || ''}"
30
- aria-label=${(x) => x.params.actionName}
29
+ style="${(x) => { var _a; return ((_a = x.params) === null || _a === void 0 ? void 0 : _a.actionButtonStyle) || ''; }}"
30
+ aria-label=${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.actionName; }}
31
31
  data-test-id="${(x) => x.dataTestId}"
32
32
  ?disabled=${(x) => { var _a; return x.pendingAction || x.isDisabled((_a = x.params) === null || _a === void 0 ? void 0 : _a.data); }}
33
- appearance="${(x) => x.params.appearance}"
33
+ appearance="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.appearance; }}"
34
34
  @click=${(x) => x.clickHandler()}
35
35
  >
36
- ${(x) => x.params.contentTemplate
37
- ? html `
36
+ ${(x) => {
37
+ var _a, _b;
38
+ return ((_a = x.params) === null || _a === void 0 ? void 0 : _a.contentTemplate)
39
+ ? html `
38
40
  ${x.params.contentTemplate}
39
41
  `
40
- : x.params.actionName}
42
+ : (_b = x.params) === null || _b === void 0 ? void 0 : _b.actionName;
43
+ }}
41
44
  </rapid-button>
42
45
  </div>
43
46
  `,
@@ -16,7 +16,7 @@ export const rapidAgActionsMenuRenderer = RapidAgActionsMenuRenderer.compose({
16
16
  baseName: 'grid-pro-actions-menu-renderer',
17
17
  template: html `
18
18
  <rapid-actions-menu
19
- name="${(x) => x.params.headerName}"
19
+ name="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.headerName; }}"
20
20
  :definition=${(x) => x.params}
21
21
  ></rapid-actions-menu>
22
22
  `,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/rapid-grid-pro",
3
3
  "description": "Genesis Rapid Grid Pro",
4
- "version": "14.325.1",
4
+ "version": "14.326.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -35,17 +35,17 @@
35
35
  }
36
36
  },
37
37
  "devDependencies": {
38
- "@genesislcap/genx": "14.325.1",
39
- "@genesislcap/rollup-builder": "14.325.1",
40
- "@genesislcap/ts-builder": "14.325.1",
41
- "@genesislcap/uvu-playwright-builder": "14.325.1",
42
- "@genesislcap/vite-builder": "14.325.1",
43
- "@genesislcap/webpack-builder": "14.325.1"
38
+ "@genesislcap/genx": "14.326.0",
39
+ "@genesislcap/rollup-builder": "14.326.0",
40
+ "@genesislcap/ts-builder": "14.326.0",
41
+ "@genesislcap/uvu-playwright-builder": "14.326.0",
42
+ "@genesislcap/vite-builder": "14.326.0",
43
+ "@genesislcap/webpack-builder": "14.326.0"
44
44
  },
45
45
  "dependencies": {
46
- "@genesislcap/foundation-ui": "14.325.1",
47
- "@genesislcap/grid-pro": "14.325.1",
48
- "@genesislcap/rapid-design-system": "14.325.1",
46
+ "@genesislcap/foundation-ui": "14.326.0",
47
+ "@genesislcap/grid-pro": "14.326.0",
48
+ "@genesislcap/rapid-design-system": "14.326.0",
49
49
  "@microsoft/fast-colors": "5.3.1",
50
50
  "@microsoft/fast-components": "2.30.6",
51
51
  "@microsoft/fast-element": "1.14.0",
@@ -65,5 +65,5 @@
65
65
  "access": "public"
66
66
  },
67
67
  "customElements": "dist/custom-elements.json",
68
- "gitHead": "1640a5cbc00438579a8578d3572f088c4cf61d0a"
68
+ "gitHead": "9394e8ef53fa3559b089ea9758afb24160d397ce"
69
69
  }