@platforma-sdk/ui-vue 1.22.7 → 1.22.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/ui-vue",
3
- "version": "1.22.7",
3
+ "version": "1.22.9",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.cjs",
6
6
  "module": "dist/lib.js",
@@ -23,8 +23,8 @@
23
23
  "canonicalize": "^2.0.0",
24
24
  "ag-grid-enterprise": "^33.0.4",
25
25
  "ag-grid-vue3": "^33.0.4",
26
- "@platforma-sdk/model": "^1.22.2",
27
- "@milaboratories/uikit": "^2.2.50"
26
+ "@milaboratories/uikit": "^2.2.51",
27
+ "@platforma-sdk/model": "^1.22.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@faker-js/faker": "^9.2.0",
@@ -45,8 +45,8 @@
45
45
  "semver": "^7.6.3",
46
46
  "@types/semver": "^7.5.8",
47
47
  "rollup-plugin-sourcemaps2": "^0.4.3",
48
- "@milaboratories/helpers": "^1.6.11",
49
- "@milaboratories/eslint-config": "^1.0.1"
48
+ "@milaboratories/eslint-config": "^1.0.1",
49
+ "@milaboratories/helpers": "^1.6.11"
50
50
  },
51
51
  "scripts": {
52
52
  "test": "vitest run --passWithNoTests",
@@ -82,7 +82,7 @@ function adjustRowNumberColumnWidth(gridApi: GridApi, cellFake: HTMLDivElement,
82
82
  }
83
83
 
84
84
  function fixColumnOrder(gridApi: GridApi) {
85
- const columns = gridApi.getAllGridColumns();
85
+ const columns = gridApi.getAllGridColumns() ?? [];
86
86
  const selectionIndex = columns.findIndex(isColumnSelectionCol);
87
87
  const numRowsIndex = columns.findIndex((column) => column.getId() === PlAgDataTableRowNumberColId);
88
88
  if (numRowsIndex !== -1) {
@@ -133,4 +133,5 @@ export function autoSizeRowNumberColumn(gridApi: GridApi) {
133
133
  destroyCellFake(cellFake);
134
134
  });
135
135
  adjustRowNumberColumnWidth(gridApi, cellFake);
136
+ fixColumnOrder(gridApi);
136
137
  }