@platforma-sdk/ui-vue 1.7.37 → 1.7.40
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 +6 -0
- package/dist/lib.js +10525 -9708
- package/dist/lib.umd.cjs +37 -23
- package/dist/src/aggrid.d.ts +2 -0
- package/dist/src/aggrid.d.ts.map +1 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts +0 -1
- package/dist/src/components/PlAgDataTable/PlAgDataTable.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/aggrid.ts +31 -0
- package/src/components/PlAgDataTable/PlAgDataTable.vue +2 -2
- package/src/components/PlAgDataTable/ag-theme.css +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/ui-vue",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/lib.umd.cjs",
|
|
6
6
|
"module": "dist/lib.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@ag-grid-enterprise/rich-select": "^32.3.2",
|
|
35
35
|
"@ag-grid-enterprise/menu": "^32.3.2",
|
|
36
36
|
"@ag-grid-enterprise/excel-export": "^32.3.2",
|
|
37
|
+
"@ag-grid-community/theming": "^32.3.2",
|
|
37
38
|
"@milaboratories/uikit": "^2.0.4",
|
|
38
39
|
"@platforma-sdk/model": "^1.7.20"
|
|
39
40
|
},
|
package/src/aggrid.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
|
|
|
11
11
|
import { RichSelectModule } from '@ag-grid-enterprise/rich-select';
|
|
12
12
|
import { MenuModule } from '@ag-grid-enterprise/menu';
|
|
13
13
|
import { ExcelExportModule } from '@ag-grid-enterprise/excel-export';
|
|
14
|
+
import { type Theme, themeQuartz } from '@ag-grid-community/theming';
|
|
14
15
|
|
|
15
16
|
export function activateAgGrid() {
|
|
16
17
|
ModuleRegistry.registerModules([
|
|
@@ -32,3 +33,33 @@ export function activateAgGrid() {
|
|
|
32
33
|
console.log('AG Grid License not found');
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
|
|
37
|
+
export const AgGridTheme: Theme = themeQuartz.withParams({
|
|
38
|
+
accentColor: '#110529',
|
|
39
|
+
borderColor: '#E1E3EB',
|
|
40
|
+
cellHorizontalPaddingScale: 1,
|
|
41
|
+
checkboxBorderRadius: '3px',
|
|
42
|
+
checkboxUncheckedBorderColor: '#CFD1DB',
|
|
43
|
+
columnBorder: true,
|
|
44
|
+
columnHoverColor: '#9BABCC16',
|
|
45
|
+
fontFamily: 'inherit',
|
|
46
|
+
foregroundColor: '#110529',
|
|
47
|
+
headerBackgroundColor: '#F7F8FA',
|
|
48
|
+
headerColumnBorder: true,
|
|
49
|
+
headerFontWeight: 600,
|
|
50
|
+
headerRowBorder: true,
|
|
51
|
+
headerVerticalPaddingScale: 0.8,
|
|
52
|
+
iconButtonHoverColor: '#9BABCC32',
|
|
53
|
+
iconSize: '16px',
|
|
54
|
+
menuBackgroundColor: '#FFFFFF',
|
|
55
|
+
menuBorder: true,
|
|
56
|
+
menuTextColor: '#110529',
|
|
57
|
+
rowHoverColor: '#9BABCC16',
|
|
58
|
+
rowVerticalPaddingScale: 1,
|
|
59
|
+
selectedRowBackgroundColor: '#63E02424',
|
|
60
|
+
sidePanelBorder: false,
|
|
61
|
+
spacing: '8px',
|
|
62
|
+
tooltipBackgroundColor: '#110529',
|
|
63
|
+
tooltipTextColor: '#FFFFFF',
|
|
64
|
+
wrapperBorderRadius: '6px',
|
|
65
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import './ag-theme.css';
|
|
3
2
|
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
|
|
4
3
|
import type {
|
|
5
4
|
GridApi,
|
|
@@ -20,7 +19,7 @@ import type { AxisId, PlDataTableState, PTableRecordFilter, PTableSorting } from
|
|
|
20
19
|
import canonicalize from 'canonicalize';
|
|
21
20
|
import * as lodash from 'lodash';
|
|
22
21
|
import { computed, ref, shallowRef, toRefs, watch } from 'vue';
|
|
23
|
-
import { useWatchFetch } from '../../lib';
|
|
22
|
+
import { AgGridTheme, useWatchFetch } from '../../lib';
|
|
24
23
|
import PlOverlayLoading from './PlAgOverlayLoading.vue';
|
|
25
24
|
import PlOverlayNoRows from './PlAgOverlayNoRows.vue';
|
|
26
25
|
import { updateXsvGridOptions } from './sources/file-source';
|
|
@@ -412,6 +411,7 @@ watch(
|
|
|
412
411
|
</Transition>
|
|
413
412
|
<AgGridVue
|
|
414
413
|
:key="reloadKey"
|
|
414
|
+
:theme="AgGridTheme"
|
|
415
415
|
class="ap-ag-data-table-grid"
|
|
416
416
|
:grid-options="gridOptions"
|
|
417
417
|
@grid-ready="onGridReady"
|