slickgrid-react 4.7.0 → 5.0.0
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/README.md +4 -3
- package/dist/cjs/components/slickgrid-react.js +11 -52
- package/dist/cjs/components/slickgrid-react.js.map +1 -1
- package/dist/cjs/global-grid-options.js +27 -28
- package/dist/cjs/global-grid-options.js.map +1 -1
- package/dist/cjs/index.js +1 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/reactUtil.service.js.map +1 -1
- package/dist/cjs/services/translater.service.js.map +1 -1
- package/dist/esm/components/slickgrid-react.js +11 -52
- package/dist/esm/components/slickgrid-react.js.map +1 -1
- package/dist/esm/global-grid-options.js +27 -28
- package/dist/esm/global-grid-options.js.map +1 -1
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/services/reactUtil.service.js.map +1 -1
- package/dist/esm/services/translater.service.js.map +1 -1
- package/dist/types/components/slickgrid-react.d.ts +3 -13
- package/dist/types/components/slickgrid-react.d.ts.map +1 -1
- package/dist/types/components/slickgridEventAggregator.d.ts +1 -1
- package/dist/types/components/slickgridEventAggregator.d.ts.map +1 -1
- package/dist/types/components/slickgridReactProps.d.ts +4 -4
- package/dist/types/components/slickgridReactProps.d.ts.map +1 -1
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/global-grid-options.d.ts +1 -1
- package/dist/types/global-grid-options.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models/gridOption.interface.d.ts +2 -2
- package/dist/types/models/gridOption.interface.d.ts.map +1 -1
- package/dist/types/models/reactComponentOutput.interface.d.ts +1 -1
- package/dist/types/models/reactComponentOutput.interface.d.ts.map +1 -1
- package/dist/types/models/slickgridReactInstance.interface.d.ts +2 -2
- package/dist/types/models/slickgridReactInstance.interface.d.ts.map +1 -1
- package/dist/types/services/container.service.d.ts +1 -1
- package/dist/types/services/container.service.d.ts.map +1 -1
- package/dist/types/services/reactUtil.service.d.ts +2 -2
- package/dist/types/services/reactUtil.service.d.ts.map +1 -1
- package/dist/types/services/translater.service.d.ts +1 -1
- package/dist/types/services/translater.service.d.ts.map +1 -1
- package/dist/types/services/utilities.d.ts +1 -1
- package/dist/types/services/utilities.d.ts.map +1 -1
- package/dist/types/slickgrid-config.d.ts +1 -1
- package/dist/types/slickgrid-config.d.ts.map +1 -1
- package/package.json +34 -33
- package/src/slickgrid-react/components/slickgrid-react.tsx +11 -55
- package/src/slickgrid-react/components/slickgridEventAggregator.ts +1 -1
- package/src/slickgrid-react/components/slickgridReactProps.ts +4 -4
- package/src/slickgrid-react/constants.ts +1 -1
- package/src/slickgrid-react/global-grid-options.ts +29 -30
- package/src/slickgrid-react/index.ts +7 -7
- package/src/slickgrid-react/models/gridOption.interface.ts +2 -2
- package/src/slickgrid-react/models/reactComponentOutput.interface.ts +2 -1
- package/src/slickgrid-react/models/slickgridReactInstance.interface.ts +2 -2
- package/src/slickgrid-react/services/container.service.ts +1 -1
- package/src/slickgrid-react/services/reactUtil.service.ts +2 -2
- package/src/slickgrid-react/services/translater.service.ts +2 -2
- package/src/slickgrid-react/services/utilities.ts +1 -1
- package/src/slickgrid-react/slickgrid-config.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Column, DelimiterType, EventNamingStyle, FileType, Filters, OperatorType, TreeDataOption } from '@slickgrid-universal/common';
|
|
2
|
-
import { GridOption } from './models/index';
|
|
1
|
+
import { type Column, DelimiterType, EventNamingStyle, FileType, Filters, OperatorType, type TreeDataOption } from '@slickgrid-universal/common';
|
|
2
|
+
import type { GridOption } from './models/index';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Default Options that can be passed to the Slickgrid-React
|
|
@@ -47,8 +47,8 @@ export const GlobalGridOptions: Partial<GridOption> = {
|
|
|
47
47
|
massUpdateStatusKey: 'ALL_X_RECORDS_SELECTED',
|
|
48
48
|
saveButtonKey: 'SAVE',
|
|
49
49
|
},
|
|
50
|
-
resetEditorButtonCssClass: '
|
|
51
|
-
resetFormButtonIconCssClass: '
|
|
50
|
+
resetEditorButtonCssClass: 'mdi mdi-refresh mdi-15px',
|
|
51
|
+
resetFormButtonIconCssClass: 'mdi mdi-refresh mdi-16px mdi-flip-h',
|
|
52
52
|
},
|
|
53
53
|
contextMenu: {
|
|
54
54
|
autoAdjustDrop: true,
|
|
@@ -64,14 +64,13 @@ export const GlobalGridOptions: Partial<GridOption> = {
|
|
|
64
64
|
hideExportTextDelimitedCommand: true,
|
|
65
65
|
hideMenuOnScroll: true,
|
|
66
66
|
hideOptionSection: false,
|
|
67
|
-
iconCollapseAllGroupsCommand: '
|
|
68
|
-
iconExpandAllGroupsCommand: '
|
|
69
|
-
iconClearGroupingCommand: '
|
|
70
|
-
iconCopyCellValueCommand: '
|
|
71
|
-
iconExportCsvCommand: '
|
|
72
|
-
iconExportExcelCommand: '
|
|
73
|
-
iconExportTextDelimitedCommand: '
|
|
74
|
-
width: 200,
|
|
67
|
+
iconCollapseAllGroupsCommand: 'mdi mdi-arrow-collapse',
|
|
68
|
+
iconExpandAllGroupsCommand: 'mdi mdi-arrow-expand',
|
|
69
|
+
iconClearGroupingCommand: 'mdi mdi-close',
|
|
70
|
+
iconCopyCellValueCommand: 'mdi mdi-content-copy',
|
|
71
|
+
iconExportCsvCommand: 'mdi mdi-download',
|
|
72
|
+
iconExportExcelCommand: 'mdi mdi-file-excel-outline text-success',
|
|
73
|
+
iconExportTextDelimitedCommand: 'mdi mdi-download',
|
|
75
74
|
},
|
|
76
75
|
customFooterOptions: {
|
|
77
76
|
dateFormat: 'YYYY-MM-DD, hh:mm a',
|
|
@@ -185,17 +184,17 @@ export const GlobalGridOptions: Partial<GridOption> = {
|
|
|
185
184
|
hideToggleDarkModeCommand: true,
|
|
186
185
|
hideToggleFilterCommand: false,
|
|
187
186
|
hideTogglePreHeaderCommand: false,
|
|
188
|
-
iconCssClass: '
|
|
189
|
-
iconClearAllFiltersCommand: '
|
|
190
|
-
iconClearAllSortingCommand: '
|
|
191
|
-
iconClearFrozenColumnsCommand: '
|
|
192
|
-
iconExportCsvCommand: '
|
|
193
|
-
iconExportExcelCommand: '
|
|
194
|
-
iconExportTextDelimitedCommand: '
|
|
195
|
-
iconRefreshDatasetCommand: '
|
|
196
|
-
iconToggleDarkModeCommand: '
|
|
197
|
-
iconToggleFilterCommand: '
|
|
198
|
-
iconTogglePreHeaderCommand: '
|
|
187
|
+
iconCssClass: 'mdi mdi-menu',
|
|
188
|
+
iconClearAllFiltersCommand: 'mdi mdi-filter',
|
|
189
|
+
iconClearAllSortingCommand: 'mdi mdi-sort-variant-off',
|
|
190
|
+
iconClearFrozenColumnsCommand: 'mdi mdi-close',
|
|
191
|
+
iconExportCsvCommand: 'mdi mdi-download',
|
|
192
|
+
iconExportExcelCommand: 'mdi mdi-file-excel-outline',
|
|
193
|
+
iconExportTextDelimitedCommand: 'mdi mdi-download',
|
|
194
|
+
iconRefreshDatasetCommand: 'mdi mdi-sync',
|
|
195
|
+
iconToggleDarkModeCommand: 'mdi mdi-brightness-4 mdi mdi-brightness-4',
|
|
196
|
+
iconToggleFilterCommand: 'mdi mdi-flip-vertical',
|
|
197
|
+
iconTogglePreHeaderCommand: 'mdi mdi-flip-vertical',
|
|
199
198
|
menuWidth: 16,
|
|
200
199
|
resizeOnShowHeaderRow: true,
|
|
201
200
|
headerColumnValueExtractor: pickerHeaderColumnValueExtractor
|
|
@@ -204,13 +203,13 @@ export const GlobalGridOptions: Partial<GridOption> = {
|
|
|
204
203
|
autoAlign: true,
|
|
205
204
|
autoAlignOffset: 12,
|
|
206
205
|
minWidth: 140,
|
|
207
|
-
iconClearFilterCommand: '
|
|
208
|
-
iconClearSortCommand: '
|
|
209
|
-
iconFreezeColumns: '
|
|
210
|
-
iconSortAscCommand: '
|
|
211
|
-
iconSortDescCommand: '
|
|
212
|
-
iconColumnHideCommand: '
|
|
213
|
-
iconColumnResizeByContentCommand: '
|
|
206
|
+
iconClearFilterCommand: 'mdi mdi-filter-remove-outline',
|
|
207
|
+
iconClearSortCommand: 'mdi mdi-sort-variant-off',
|
|
208
|
+
iconFreezeColumns: 'mdi mdi-pin-outline',
|
|
209
|
+
iconSortAscCommand: 'mdi mdi-sort-ascending',
|
|
210
|
+
iconSortDescCommand: 'mdi mdi-sort-descending',
|
|
211
|
+
iconColumnHideCommand: 'mdi mdi-close',
|
|
212
|
+
iconColumnResizeByContentCommand: 'mdi mdi-arrow-expand-horizontal',
|
|
214
213
|
hideColumnResizeByContentCommand: false,
|
|
215
214
|
hideColumnHideCommand: false,
|
|
216
215
|
hideClearFilterCommand: false,
|
|
@@ -2,10 +2,10 @@ import 'regenerator-runtime/runtime.js';
|
|
|
2
2
|
export * from '@slickgrid-universal/common';
|
|
3
3
|
|
|
4
4
|
import { SlickgridReact } from './components/slickgrid-react';
|
|
5
|
-
import { SlickgridEventAggregator } from './components/slickgridEventAggregator';
|
|
6
|
-
import { SlickgridConfig } from './slickgrid-config';
|
|
5
|
+
import type { SlickgridEventAggregator } from './components/slickgridEventAggregator';
|
|
6
|
+
import type { SlickgridConfig } from './slickgrid-config';
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import type {
|
|
9
9
|
SlickgridReactInstance,
|
|
10
10
|
SlickgridReactComponentOutput,
|
|
11
11
|
GridOption,
|
|
@@ -19,10 +19,10 @@ export {
|
|
|
19
19
|
} from './services/index';
|
|
20
20
|
|
|
21
21
|
export {
|
|
22
|
-
SlickgridEventAggregator,
|
|
23
|
-
SlickgridReactInstance,
|
|
24
|
-
SlickgridReactComponentOutput,
|
|
25
|
-
GridOption,
|
|
22
|
+
type SlickgridEventAggregator,
|
|
23
|
+
type SlickgridReactInstance,
|
|
24
|
+
type SlickgridReactComponentOutput,
|
|
25
|
+
type GridOption,
|
|
26
26
|
SlickgridReact,
|
|
27
27
|
SlickgridConfig
|
|
28
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GridOption as UniversalGridOption } from '@slickgrid-universal/common';
|
|
2
|
-
import * as i18next from 'i18next';
|
|
1
|
+
import type { GridOption as UniversalGridOption } from '@slickgrid-universal/common';
|
|
2
|
+
import type * as i18next from 'i18next';
|
|
3
3
|
|
|
4
4
|
export interface GridOption extends UniversalGridOption {
|
|
5
5
|
/** I18N translation service instance */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
BackendService,
|
|
3
3
|
ExtensionService,
|
|
4
4
|
FilterService,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
SortService,
|
|
14
14
|
TreeDataService
|
|
15
15
|
} from '@slickgrid-universal/common';
|
|
16
|
-
import { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
16
|
+
import type { EventPubSubService } from '@slickgrid-universal/event-pub-sub';
|
|
17
17
|
|
|
18
18
|
export interface SlickgridReactInstance {
|
|
19
19
|
element: HTMLDivElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
|
|
1
|
+
import type { ContainerService as UniversalContainerService } from '@slickgrid-universal/common';
|
|
2
2
|
|
|
3
3
|
export class ContainerService implements UniversalContainerService {
|
|
4
4
|
private readonly container: { [key: string]: any } = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
|
-
import { SlickgridReactComponentOutput } from '../models/reactComponentOutput.interface';
|
|
3
|
+
import type { SlickgridReactComponentOutput } from '../models/reactComponentOutput.interface';
|
|
4
4
|
|
|
5
5
|
export class ReactUtilService {
|
|
6
6
|
createReactComponentAppendToDom(component: any, targetElement?: HTMLElement | Element, clearTargetContent = false, props: any = undefined, children: ReactNode[] = []): SlickgridReactComponentOutput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TranslaterService as UniversalTranslateService } from '@slickgrid-universal/common';
|
|
2
|
-
import i18next, { i18n } from 'i18next';
|
|
1
|
+
import type { TranslaterService as UniversalTranslateService } from '@slickgrid-universal/common';
|
|
2
|
+
import i18next, { type i18n } from 'i18next';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This is a Translate Service Wrapper for Slickgrid-Universal monorepo lib to work properly,
|