@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/ui-vue",
3
- "version": "1.7.37",
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"
@@ -1,4 +1,6 @@
1
1
  /*
2
+ * @Deprecated and unused
3
+ * @TODO remove
2
4
  * This file is a theme downloaded from the AG Grid Theme Builder for AG Grid 32.1.0.
3
5
  *
4
6
  * See installation docs at https://www.ag-grid.com/javascript-data-grid/applying-theme-builder-styling-grid/