@platforma-sdk/ui-vue 1.20.14 → 1.20.16
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/CHANGELOG.md +12 -0
- package/dist/lib.js +11610 -15944
- package/dist/lib.js.map +1 -1
- package/dist/lib.umd.cjs +30 -70
- package/dist/lib.umd.cjs.map +1 -1
- package/dist/src/aggrid.d.ts +1 -1
- package/dist/src/aggrid.d.ts.map +1 -1
- package/dist/src/components/PlAgCellFile/PlAgCellFile.vue.d.ts +1 -1
- package/dist/src/components/PlAgCellFile/PlAgCellFile.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.d.ts +1 -1
- package/dist/src/components/PlAgCellStatusTag/PlAgCellStatusTag.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgColumnHeader/PlAgColumnHeader.vue.d.ts +1 -1
- package/dist/src/components/PlAgColumnHeader/PlAgColumnHeader.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgCsvExporter/PlAgCsvExporter.vue.d.ts +1 -1
- package/dist/src/components/PlAgCsvExporter/PlAgCsvExporter.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgCsvExporter/export-csv.d.ts +1 -1
- package/dist/src/components/PlAgCsvExporter/export-csv.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts +13 -0
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/file-source.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/sources/file-source.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/focus-row.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/sources/focus-row.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/row-number.d.ts +1 -1
- package/dist/src/components/PlAgDataTable/sources/row-number.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source-heterogeneous.d.ts +3 -2
- package/dist/src/components/PlAgDataTable/sources/table-source-heterogeneous.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts +10 -4
- package/dist/src/components/PlAgDataTable/sources/table-source.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/types.d.ts +4 -3
- package/dist/src/components/PlAgDataTable/types.d.ts.map +1 -1
- package/dist/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts +1 -1
- package/dist/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue.d.ts.map +1 -1
- package/dist/src/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.d.ts +1 -1
- package/dist/src/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +5 -19
- package/src/aggrid.ts +3 -29
- package/src/components/PlAgCellFile/PlAgCellFile.vue +1 -1
- package/src/components/PlAgCellStatusTag/PlAgCellStatusTag.vue +1 -1
- package/src/components/PlAgColumnHeader/PlAgColumnHeader.vue +1 -1
- package/src/components/PlAgCsvExporter/PlAgCsvExporter.vue +1 -1
- package/src/components/PlAgCsvExporter/export-csv.ts +8 -3
- package/src/components/PlAgDataTable/PlAgDataTable.vue +96 -72
- package/src/components/PlAgDataTable/sources/file-source.ts +1 -1
- package/src/components/PlAgDataTable/sources/focus-row.ts +1 -1
- package/src/components/PlAgDataTable/sources/row-number.ts +23 -3
- package/src/components/PlAgDataTable/sources/table-source-heterogeneous.ts +25 -34
- package/src/components/PlAgDataTable/sources/table-source.ts +26 -18
- package/src/components/PlAgDataTable/types.ts +4 -3
- package/src/components/PlAgGridColumnManager/PlAgGridColumnManager.vue +3 -12
- package/src/components/PlAgTextAndButtonCell/PlAgTextAndButtonCell.vue +1 -1
- package/vite.config.ts +2 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { type Column, type GridApi } from '
|
|
2
|
+
import { type Column, type GridApi } from 'ag-grid-enterprise';
|
|
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';
|
|
@@ -22,19 +22,10 @@ const listRef = ref<HTMLElement>();
|
|
|
22
22
|
const slideModal = ref(false);
|
|
23
23
|
const listKey = ref(0);
|
|
24
24
|
|
|
25
|
-
function getReorderedColumns(columns: Column[]) {
|
|
26
|
-
const numRowsIndex = columns.findIndex((v) => v.getId() === PlAgDataTableRowNumberColId);
|
|
27
|
-
if (numRowsIndex !== 0) {
|
|
28
|
-
const [numRowsCol] = columns.splice(numRowsIndex, 1);
|
|
29
|
-
return columns.splice(0, 0, numRowsCol);
|
|
30
|
-
}
|
|
31
|
-
return columns;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
25
|
useSortable(listRef, {
|
|
35
26
|
handle: '.handle',
|
|
36
27
|
onChange(indices) {
|
|
37
|
-
gridApi.value.moveColumns(
|
|
28
|
+
gridApi.value.moveColumns(indices.map((i) => columns.value[i]), 0);
|
|
38
29
|
},
|
|
39
30
|
});
|
|
40
31
|
|
|
@@ -45,7 +36,7 @@ function toggleColumnVisibility(col: Column) {
|
|
|
45
36
|
watch(
|
|
46
37
|
() => gridApi.value,
|
|
47
38
|
(gridApi) => {
|
|
48
|
-
columns.value =
|
|
39
|
+
columns.value = gridApi.getAllGridColumns();
|
|
49
40
|
if (columns.value.length > 0) {
|
|
50
41
|
gridApi.moveColumns(columns.value, 0);
|
|
51
42
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import type { ICellRendererParams, RowDoubleClickedEvent } from '
|
|
2
|
+
import type { ICellRendererParams, RowDoubleClickedEvent } from 'ag-grid-enterprise';
|
|
3
3
|
import type { MaskIconName16 } from '@milaboratories/uikit';
|
|
4
4
|
import { PlMaskIcon16 } from '@milaboratories/uikit';
|
|
5
5
|
import './pl-ag-text-and-button-cell.scss';
|
package/vite.config.ts
CHANGED
|
@@ -18,20 +18,8 @@ export default defineConfig({
|
|
|
18
18
|
rollupOptions: {
|
|
19
19
|
external: [
|
|
20
20
|
'vue',
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'@ag-grid-community/infinite-row-model',
|
|
24
|
-
'@ag-grid-enterprise/server-side-row-model',
|
|
25
|
-
'@ag-grid-community/styles',
|
|
26
|
-
'@ag-grid-community/vue3',
|
|
27
|
-
'@ag-grid-community/csv-export',
|
|
28
|
-
'@ag-grid-enterprise/core',
|
|
29
|
-
'@ag-grid-enterprise/clipboard',
|
|
30
|
-
'@ag-grid-enterprise/range-selection',
|
|
31
|
-
'@ag-grid-enterprise/rich-select',
|
|
32
|
-
'@ag-grid-enterprise/menu',
|
|
33
|
-
'@ag-grid-enterprise/excel-export',
|
|
34
|
-
'@ag-grid-community/theming',
|
|
21
|
+
'ag-grid-enterprise',
|
|
22
|
+
'ag-grid-vue3',
|
|
35
23
|
],
|
|
36
24
|
output: {
|
|
37
25
|
globals: {
|