@platforma-sdk/ui-vue 1.18.1 → 1.18.3

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.18.1",
3
+ "version": "1.18.3",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.cjs",
6
6
  "module": "dist/lib.js",
@@ -37,8 +37,8 @@
37
37
  "@ag-grid-community/theming": "^32.3.3",
38
38
  "@ag-grid-enterprise/side-bar": "^32.3.3",
39
39
  "@ag-grid-enterprise/column-tool-panel": "^32.3.3",
40
- "@platforma-sdk/model": "^1.18.0",
41
- "@milaboratories/uikit": "^2.2.28"
40
+ "@milaboratories/uikit": "^2.2.29",
41
+ "@platforma-sdk/model": "^1.18.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@faker-js/faker": "^9.2.0",
@@ -58,8 +58,8 @@
58
58
  "yarpm": "^1.2.0",
59
59
  "semver": "^7.6.3",
60
60
  "@types/semver": "^7.5.8",
61
- "@milaboratories/eslint-config": "^1.0.0",
62
- "@milaboratories/helpers": "^1.6.9"
61
+ "@milaboratories/helpers": "^1.6.9",
62
+ "@milaboratories/eslint-config": "^1.0.0"
63
63
  },
64
64
  "scripts": {
65
65
  "test": "vitest run --passWithNoTests",
@@ -17,7 +17,6 @@ import { AgGridVue } from '@ag-grid-community/vue3';
17
17
  import { ClipboardModule } from '@ag-grid-enterprise/clipboard';
18
18
  import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
19
19
  import { ServerSideRowModelModule } from '@ag-grid-enterprise/server-side-row-model';
20
- import { SideBarModule } from '@ag-grid-enterprise/side-bar';
21
20
  import { PlDropdownLine } from '@milaboratories/uikit';
22
21
  import {
23
22
  getAxisId,
@@ -47,10 +46,10 @@ ModuleRegistry.registerModules([
47
46
  ClipboardModule,
48
47
  ServerSideRowModelModule,
49
48
  RangeSelectionModule,
50
- SideBarModule,
51
49
  ]);
52
50
 
53
51
  const tableState = defineModel<PlDataTableState>({ default: { gridState: {} } });
52
+ const selectedRows = defineModel<string[]>('selectedRows');
54
53
  const props = defineProps<{
55
54
  settings?: Readonly<PlDataTableSettings>;
56
55
  /**
@@ -178,10 +177,12 @@ const gridOptions = shallowRef<GridOptions<PlAgDataTableRow>>({
178
177
  cellSelection: true,
179
178
  initialState: gridState.value,
180
179
  autoSizeStrategy: { type: 'fitCellContents' },
181
- // rowSelection: {
182
- // mode: 'multiRow',
183
- // headerCheckbox: false,
184
- // },
180
+ rowSelection: selectedRows.value
181
+ ? {
182
+ mode: 'multiRow',
183
+ headerCheckbox: false,
184
+ }
185
+ : undefined,
185
186
  onRowDoubleClicked: (event) => {
186
187
  if (event.data) emit('onRowDoubleClicked', event.data.key);
187
188
  },
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import type { Column, GridApi } from '@ag-grid-community/core';
2
+ import { type Column, type GridApi } from '@ag-grid-community/core';
3
3
  import { PlBtnGhost, PlMaskIcon16, PlMaskIcon24, PlSlideModal, PlTooltip, useSortable } from '@milaboratories/uikit';
4
4
  import { ref, toRefs, watch } from 'vue';
5
5
  import './pl-ag-grid-column-manager.scss';