@lemon-fe/components 1.2.15 → 1.3.0-alpha.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.
Files changed (141) hide show
  1. package/es/data-grid/cell-editors/date.d.ts +2 -2
  2. package/es/data-grid/cell-editors/number.d.ts +2 -2
  3. package/es/data-grid/cell-editors/row.d.ts +2 -2
  4. package/es/data-grid/cell-editors/select.d.ts +3 -3
  5. package/es/data-grid/cell-editors/text.d.ts +2 -2
  6. package/es/data-grid/cell-editors/utils.d.ts +1 -1
  7. package/es/data-grid/components/custom-panel/index.d.ts +1 -1
  8. package/es/data-grid/components/custom-panel/item.d.ts +1 -1
  9. package/es/data-grid/components/custom-panel/typings.d.ts +1 -1
  10. package/es/data-grid/index.d.ts +8 -7
  11. package/es/data-grid/index.js +3 -11
  12. package/es/data-grid/index.less +1 -1
  13. package/es/data-grid/renderer/actions-renderer.d.ts +1 -1
  14. package/es/data-grid/renderer/actions.d.ts +1 -1
  15. package/es/data-grid/renderer/cell-delete-renderer.d.ts +1 -1
  16. package/es/data-grid/renderer/cell-index-renderer.d.ts +1 -1
  17. package/es/data-grid/renderer/cell-renderer.d.ts +1 -1
  18. package/es/data-grid/renderer/detali-cell-renderer.d.ts +1 -1
  19. package/es/data-grid/renderer/header-renderer.d.ts +1 -1
  20. package/es/data-grid/typings.d.ts +2 -2
  21. package/es/data-grid/utils.d.ts +1 -1
  22. package/es/index.d.ts +4 -3
  23. package/es/index.js +4 -2
  24. package/es/select-view/index.d.ts +1 -1
  25. package/package.json +5 -14
  26. package/es/data-grid/modules/clipboard/clipboard/clipboardService.d.ts +0 -62
  27. package/es/data-grid/modules/clipboard/clipboard/clipboardService.js +0 -1007
  28. package/es/data-grid/modules/clipboard/clipboardModule.d.ts +0 -2
  29. package/es/data-grid/modules/clipboard/clipboardModule.js +0 -10
  30. package/es/data-grid/modules/clipboard/main.d.ts +0 -1
  31. package/es/data-grid/modules/clipboard/main.js +0 -1
  32. package/es/data-grid/modules/clipboard/version.d.ts +0 -1
  33. package/es/data-grid/modules/clipboard/version.js +0 -2
  34. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.d.ts +0 -26
  35. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnModelItem.js +0 -94
  36. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.d.ts +0 -32
  37. package/es/data-grid/modules/column-tool-panel/columnToolPanel/columnToolPanel.js +0 -272
  38. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.d.ts +0 -16
  39. package/es/data-grid/modules/column-tool-panel/columnToolPanel/modelItemUtils.js +0 -209
  40. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.d.ts +0 -9
  41. package/es/data-grid/modules/column-tool-panel/columnToolPanel/pivotModePanel.js +0 -68
  42. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.d.ts +0 -32
  43. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsHeaderPanel.js +0 -150
  44. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.d.ts +0 -44
  45. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanel.js +0 -455
  46. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.d.ts +0 -26
  47. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsListPanelItemDragFeature.js +0 -224
  48. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.d.ts +0 -24
  49. package/es/data-grid/modules/column-tool-panel/columnToolPanel/primaryColsPanel.js +0 -123
  50. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.d.ts +0 -37
  51. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnComp.js +0 -314
  52. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.d.ts +0 -51
  53. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelColumnGroupComp.js +0 -406
  54. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.d.ts +0 -24
  55. package/es/data-grid/modules/column-tool-panel/columnToolPanel/toolPanelContextMenu.js +0 -264
  56. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.d.ts +0 -2
  57. package/es/data-grid/modules/column-tool-panel/columnsToolPanelModule.js +0 -29
  58. package/es/data-grid/modules/column-tool-panel/main.d.ts +0 -2
  59. package/es/data-grid/modules/column-tool-panel/main.js +0 -3
  60. package/es/data-grid/modules/column-tool-panel/version.d.ts +0 -1
  61. package/es/data-grid/modules/column-tool-panel/version.js +0 -2
  62. package/es/data-grid/modules/master-detail/main.d.ts +0 -1
  63. package/es/data-grid/modules/master-detail/main.js +0 -1
  64. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.d.ts +0 -14
  65. package/es/data-grid/modules/master-detail/masterDetail/detailCellRenderer.js +0 -144
  66. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.d.ts +0 -19
  67. package/es/data-grid/modules/master-detail/masterDetail/detailCellRendererCtrl.js +0 -203
  68. package/es/data-grid/modules/master-detail/masterDetailModule.d.ts +0 -2
  69. package/es/data-grid/modules/master-detail/masterDetailModule.js +0 -18
  70. package/es/data-grid/modules/master-detail/version.d.ts +0 -1
  71. package/es/data-grid/modules/master-detail/version.js +0 -2
  72. package/es/data-grid/modules/menu/main.d.ts +0 -1
  73. package/es/data-grid/modules/menu/main.js +0 -1
  74. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.d.ts +0 -13
  75. package/es/data-grid/modules/menu/menu/chartMenuItemMapper.js +0 -351
  76. package/es/data-grid/modules/menu/menu/contextMenu.d.ts +0 -13
  77. package/es/data-grid/modules/menu/menu/contextMenu.js +0 -267
  78. package/es/data-grid/modules/menu/menu/enterpriseMenu.d.ts +0 -66
  79. package/es/data-grid/modules/menu/menu/enterpriseMenu.js +0 -592
  80. package/es/data-grid/modules/menu/menu/menuItemMapper.d.ts +0 -13
  81. package/es/data-grid/modules/menu/menu/menuItemMapper.js +0 -328
  82. package/es/data-grid/modules/menu/menuModule.d.ts +0 -2
  83. package/es/data-grid/modules/menu/menuModule.js +0 -12
  84. package/es/data-grid/modules/menu/version.d.ts +0 -1
  85. package/es/data-grid/modules/menu/version.js +0 -2
  86. package/es/data-grid/modules/row-grouping/main.d.ts +0 -4
  87. package/es/data-grid/modules/row-grouping/main.js +0 -4
  88. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.d.ts +0 -23
  89. package/es/data-grid/modules/row-grouping/rowGrouping/aggFuncService.js +0 -250
  90. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.d.ts +0 -22
  91. package/es/data-grid/modules/row-grouping/rowGrouping/aggregationStage.js +0 -285
  92. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.d.ts +0 -12
  93. package/es/data-grid/modules/row-grouping/rowGrouping/batchRemover.js +0 -77
  94. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.d.ts +0 -75
  95. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/baseDropZonePanel.js +0 -516
  96. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.d.ts +0 -40
  97. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/dropZoneColumnComp.js +0 -367
  98. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.d.ts +0 -11
  99. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/gridHeaderDropZones.js +0 -85
  100. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.d.ts +0 -17
  101. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/pivotDropZonePanel.js +0 -139
  102. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.d.ts +0 -15
  103. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/rowGroupDropZonePanel.js +0 -105
  104. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.d.ts +0 -15
  105. package/es/data-grid/modules/row-grouping/rowGrouping/columnDropZones/valueDropZonePanel.js +0 -105
  106. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.d.ts +0 -9
  107. package/es/data-grid/modules/row-grouping/rowGrouping/filterAggregatesStage.js +0 -136
  108. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.d.ts +0 -39
  109. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFilter.js +0 -319
  110. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.d.ts +0 -23
  111. package/es/data-grid/modules/row-grouping/rowGrouping/groupFilter/groupFloatingFilter.js +0 -163
  112. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.d.ts +0 -48
  113. package/es/data-grid/modules/row-grouping/rowGrouping/groupStage.js +0 -740
  114. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.d.ts +0 -24
  115. package/es/data-grid/modules/row-grouping/rowGrouping/pivotColDefService.js +0 -396
  116. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.d.ts +0 -19
  117. package/es/data-grid/modules/row-grouping/rowGrouping/pivotStage.js +0 -182
  118. package/es/data-grid/modules/row-grouping/rowGroupingModule.d.ts +0 -2
  119. package/es/data-grid/modules/row-grouping/rowGroupingModule.js +0 -28
  120. package/es/data-grid/modules/row-grouping/version.d.ts +0 -1
  121. package/es/data-grid/modules/row-grouping/version.js +0 -2
  122. package/es/data-grid/modules/side-bar/main.d.ts +0 -2
  123. package/es/data-grid/modules/side-bar/main.js +0 -2
  124. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.d.ts +0 -11
  125. package/es/data-grid/modules/side-bar/sideBar/common/toolPanelColDefService.js +0 -216
  126. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.d.ts +0 -19
  127. package/es/data-grid/modules/side-bar/sideBar/horizontalResizeComp.js +0 -108
  128. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.d.ts +0 -16
  129. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonComp.js +0 -84
  130. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.d.ts +0 -18
  131. package/es/data-grid/modules/side-bar/sideBar/sideBarButtonsComp.js +0 -89
  132. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.d.ts +0 -28
  133. package/es/data-grid/modules/side-bar/sideBar/sideBarComp.js +0 -325
  134. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.d.ts +0 -10
  135. package/es/data-grid/modules/side-bar/sideBar/sideBarDefParser.js +0 -95
  136. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.d.ts +0 -17
  137. package/es/data-grid/modules/side-bar/sideBar/toolPanelWrapper.js +0 -103
  138. package/es/data-grid/modules/side-bar/sideBarModule.d.ts +0 -2
  139. package/es/data-grid/modules/side-bar/sideBarModule.js +0 -22
  140. package/es/data-grid/modules/side-bar/version.d.ts +0 -1
  141. package/es/data-grid/modules/side-bar/version.js +0 -2
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { ICellEditorParams } from '@ag-grid-community/core';
3
- import type { ICellEditorReactComp } from '@ag-grid-community/react';
2
+ import type { ICellEditorParams } from 'ag-grid-community';
3
+ import type { ICellEditorReactComp } from 'ag-grid-react';
4
4
  import { type Moment } from 'moment';
5
5
  export interface DateEditorParams<TData = any> {
6
6
  format?: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { ICellEditorParams } from '@ag-grid-community/core';
3
- import type { ICellEditorReactComp } from '@ag-grid-community/react';
2
+ import type { ICellEditorParams } from 'ag-grid-community';
3
+ import type { ICellEditorReactComp } from 'ag-grid-react';
4
4
  export interface NumberEditorParams<TData = any> {
5
5
  disabled?: boolean;
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import type { MutableRefObject, ReactElement } from 'react';
2
2
  import React from 'react';
3
- import type { ICellEditorParams } from '@ag-grid-community/core';
4
- import type { ICellEditorReactComp } from '@ag-grid-community/react';
3
+ import type { ICellEditorParams } from 'ag-grid-community';
4
+ import type { ICellEditorReactComp } from 'ag-grid-react';
5
5
  export declare class RowEditorData<T> {
6
6
  private data;
7
7
  constructor(data: T);
@@ -1,7 +1,7 @@
1
1
  import type { BaseOptionType, SelectProps } from 'antd/lib/select';
2
2
  import React from 'react';
3
- import type { ICellEditorParams } from '@ag-grid-community/core';
4
- import type { ICellEditorReactComp } from '@ag-grid-community/react';
3
+ import type { ICellEditorParams } from 'ag-grid-community';
4
+ import type { ICellEditorReactComp } from 'ag-grid-react';
5
5
  export declare type SelectEditorParams = Pick<SelectProps<any, BaseOptionType>, 'disabled' | 'options' | 'virtual' | 'showSearch' | 'listHeight' | 'allowClear' | 'mode' | 'optionFilterProp'> & {
6
6
  fieldNames?: {
7
7
  label: string;
@@ -16,7 +16,7 @@ export declare type SelectEditorParams = Pick<SelectProps<any, BaseOptionType>,
16
16
  */
17
17
  action?: 'next' | 'stop' | 'none';
18
18
  };
19
- declare const _default: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & Pick<SelectProps<any, BaseOptionType>, "disabled" | "mode" | "showSearch" | "allowClear" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
19
+ declare const _default: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & Pick<SelectProps<any, BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
20
20
  fieldNames?: {
21
21
  label: string;
22
22
  value: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { ICellEditorParams } from '@ag-grid-community/core';
3
- import type { ICellEditorReactComp } from '@ag-grid-community/react';
2
+ import type { ICellEditorParams } from 'ag-grid-community';
3
+ import type { ICellEditorReactComp } from 'ag-grid-react';
4
4
  export interface TextEditorParams<TData = any> {
5
5
  disabled?: boolean;
6
6
  maxLength?: number;
@@ -1,4 +1,4 @@
1
- import type { GridApi } from '@ag-grid-community/core';
1
+ import type { GridApi } from 'ag-grid-community';
2
2
  export declare const editorPrefixClass: (val?: string | undefined) => string;
3
3
  export declare function navigateCell(params: {
4
4
  api: GridApi;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { IToolPanelParams } from '@ag-grid-community/core';
2
+ import type { IToolPanelParams } from 'ag-grid-community';
3
3
  export default function CustomColumnPanel(params: IToolPanelParams & {
4
4
  enableSave: boolean;
5
5
  enableSummary: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { Node, DragActive } from './typings';
3
- import type { ColumnApi, GridApi } from '@ag-grid-community/core';
3
+ import type { ColumnApi, GridApi } from 'ag-grid-community';
4
4
  interface ItemProps {
5
5
  node: Node;
6
6
  columnApi: ColumnApi;
@@ -1,4 +1,4 @@
1
- import type { Column } from '@ag-grid-community/core';
1
+ import type { Column } from 'ag-grid-community';
2
2
 
3
3
  export type Node = {
4
4
  index: number;
@@ -3,8 +3,9 @@ import EditorWrapper from './cell-editors/wrapper';
3
3
  import type { FieldCol } from './components/custom-panel/typings';
4
4
  import type { DataGridLocale } from './locale/locale';
5
5
  import type { ColType, DataGridProps, DataGridState } from './typings';
6
- import type { IRowNode } from '@ag-grid-community/core';
7
- import { GridApi, ColumnApi } from '@ag-grid-community/core';
6
+ import type { IRowNode } from 'ag-grid-community';
7
+ import { GridApi, ColumnApi } from 'ag-grid-community';
8
+ import 'ag-grid-enterprise';
8
9
  interface InternaleDataGridProps<T> extends DataGridProps<T> {
9
10
  locale: DataGridLocale;
10
11
  }
@@ -13,17 +14,17 @@ declare const SummaryFlag: unique symbol;
13
14
  declare const IndexColId = "$$index";
14
15
  declare const EmptyCol: ColType<any>;
15
16
  declare const Editors: {
16
- Text: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").TextEditorParams<any> & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
17
- Date: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").DateEditorParams<any> & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
18
- Number: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & import("./typings").NumberEditorParams<any> & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
19
- Select: React.ForwardRefExoticComponent<import("@ag-grid-community/core").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "allowClear" | "mode" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
17
+ Text: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").TextEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
18
+ Date: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").DateEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
19
+ Number: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & import("./typings").NumberEditorParams<any> & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
20
+ Select: React.ForwardRefExoticComponent<import("ag-grid-community").ICellEditorParams<any, any, any> & Pick<import("antd").SelectProps<any, import("antd/lib/select").BaseOptionType>, "disabled" | "mode" | "allowClear" | "showSearch" | "optionFilterProp" | "options" | "virtual" | "listHeight"> & {
20
21
  fieldNames?: {
21
22
  label: string;
22
23
  value: string;
23
24
  } | undefined;
24
25
  valueByOption?: boolean | undefined;
25
26
  action?: "stop" | "none" | "next" | undefined;
26
- } & React.RefAttributes<import("@ag-grid-community/react").ICellEditorReactComp>>;
27
+ } & React.RefAttributes<import("ag-grid-react").ICellEditorReactComp>>;
27
28
  Wrapper: typeof EditorWrapper;
28
29
  };
29
30
  declare function isSummaryRow({ node }: {
@@ -50,22 +50,15 @@ import Search from "./components/search";
50
50
  import Selected from "./components/selected";
51
51
  import GridStoreContext from "./context/grid-store";
52
52
  import { useGridStore } from "./hooks";
53
- import { ClipboardModule } from "./modules/clipboard/main";
54
- import { ColumnsToolPanelModule } from "./modules/column-tool-panel/main";
55
- import { MasterDetailModule } from "./modules/master-detail/main";
56
- import { MenuModule } from "./modules/menu/main";
57
- import { RowGroupingModule } from "./modules/row-grouping/main";
58
- import { SideBarModule } from "./modules/side-bar/main";
59
53
  import ActionsRenderer from "./renderer/actions-renderer";
60
54
  import CellIndexRender from "./renderer/cell-index-renderer";
61
55
  import CellRenderer from "./renderer/cell-renderer";
62
56
  import DetailCellRenderer from "./renderer/detali-cell-renderer";
63
57
  import HeaderRenderer from "./renderer/header-renderer";
64
58
  import { prefix, getColField, isColumn, withSyncRender, Store, Selection, getDefaultColumnTypes } from "./utils";
65
- import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
66
- import { ModuleRegistry, GridApi, ColumnApi } from '@ag-grid-community/core';
67
- import { InfiniteRowModelModule } from '@ag-grid-community/infinite-row-model';
68
- import { AgGridReact } from '@ag-grid-community/react';
59
+ import { GridApi, ColumnApi } from 'ag-grid-community';
60
+ import 'ag-grid-enterprise';
61
+ import { AgGridReact } from 'ag-grid-react';
69
62
  import Scheme from 'async-validator';
70
63
  import BigNumber from 'bignumber.js';
71
64
  import classNames from 'classnames';
@@ -92,7 +85,6 @@ var multiply = function multiply(a, b) {
92
85
  var divide = function divide(a, b) {
93
86
  return new BigNumber(toNumber(a)).div(toNumber(b));
94
87
  };
95
- ModuleRegistry.registerModules([ClientSideRowModelModule, RowGroupingModule, InfiniteRowModelModule, ClipboardModule, MenuModule, SideBarModule, ColumnsToolPanelModule, MasterDetailModule], false);
96
88
  var defaultColDef = {
97
89
  resizable: true,
98
90
  initialWidth: 140,
@@ -1,4 +1,4 @@
1
- @import '~@ag-grid-community/styles/ag-grid.css';
1
+ @import '~ag-grid-community/styles/ag-grid.css';
2
2
 
3
3
  @font-face {
4
4
  font-weight: normal;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import type { ICellRendererParams } from '@ag-grid-community/core';
2
+ import type { ICellRendererParams } from 'ag-grid-community';
3
3
  export default function ActionsRenderer<TData>(props: ICellRendererParams<TData>): JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { RowActionsType } from '../typings';
3
- import type { ICellRendererParams } from '@ag-grid-community/core';
3
+ import type { ICellRendererParams } from 'ag-grid-community';
4
4
  interface Props<T> {
5
5
  actions: RowActionsType<T>;
6
6
  data: T;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { ICellRendererParams } from '@ag-grid-community/core';
2
+ import type { ICellRendererParams } from 'ag-grid-community';
3
3
  export default function CellDeleteRender<TData>(props: ICellRendererParams<TData> & {
4
4
  enable?: (data: ICellRendererParams<TData>) => boolean | Promise<boolean>;
5
5
  }): JSX.Element | null;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { ICellRendererParams } from '@ag-grid-community/core';
2
+ import type { ICellRendererParams } from 'ag-grid-community';
3
3
  export default function CellIndexRender<TData>(props: ICellRendererParams<TData> & {
4
4
  useChildIndex?: boolean;
5
5
  validator?: (data: ICellRendererParams<TData>) => string | undefined;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import type { ColType } from '../typings';
3
- import type { ICellRendererParams } from '@ag-grid-community/core';
3
+ import type { ICellRendererParams } from 'ag-grid-community';
4
4
  export default function CellRenderer<TData>(props: ICellRendererParams<TData> & Exclude<Pick<ColType<TData>, 'render'>, undefined>): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React, { type ReactNode } from 'react';
2
- import type { ICellEditorParams } from '@ag-grid-community/core';
2
+ import type { ICellEditorParams } from 'ag-grid-community';
3
3
  declare const DetailCellRenderer: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & {
4
4
  render: (params: any) => ReactNode;
5
5
  autoHeight?: boolean | undefined;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { ColType } from '../typings';
3
- import type { IHeaderParams } from '@ag-grid-community/core';
3
+ import type { IHeaderParams } from 'ag-grid-community';
4
4
  export default function HeaderRenderer<TData>(props: IHeaderParams<TData> & Pick<ColType<TData>, 'title'> & {
5
5
  children?: ReactNode;
6
6
  }): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import type { ColDef, ColGroupDef, EditableCallbackParams, ICellEditorParams, ICellRendererParams, IHeaderParams, AgGridEvent, CheckboxSelectionCallback, ColumnState, IRowNode } from '@ag-grid-community/core';
3
- import type { AgGridReactProps } from '@ag-grid-community/react';
2
+ import type { ColDef, ColGroupDef, EditableCallbackParams, ICellEditorParams, ICellRendererParams, IHeaderParams, AgGridEvent, CheckboxSelectionCallback, ColumnState, IRowNode } from 'ag-grid-community';
3
+ import type { AgGridReactProps } from 'ag-grid-react';
4
4
  import type { RuleItem, ValidateFieldsError } from 'async-validator/dist-types/interface';
5
5
  import type { DateEditorParams } from './cell-editors/date';
6
6
  import type { NumberEditorParams } from './cell-editors/number';
@@ -1,7 +1,7 @@
1
1
  import type { DataGridLocale } from './locale/locale';
2
2
  import type { ColType, ColGroupType, PathType } from './typings';
3
- import type { ColDef, ColGroupDef } from '@ag-grid-community/core';
4
3
  import { Subject } from '@lemon-fe/utils';
4
+ import type { ColDef, ColGroupDef } from 'ag-grid-community';
5
5
  export declare const prefix: (val?: string | undefined) => string;
6
6
  export declare function isColumn<T>(col: ColGroupType<T> | ColType<T>): col is ColType<T>;
7
7
  export declare function isColumnDef<T>(col: ColGroupDef<T> | ColDef<T>): col is ColDef<T>;
package/es/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export * from 'antd';
2
- export type { ColDef, ColGroupDef, ColumnState, GridOptions, GridReadyEvent, ICellEditorParams, ICellRendererParams, IHeaderParams, RowDataUpdatedEvent, CellValueChangedEvent, NavigateToNextCellParams, TabToNextCellParams, AgGridEvent, GroupCellRendererParams as IGroupCellRendererParams, Column, CellPosition, IRowNode, } from '@ag-grid-community/core';
3
- export { GridApi, ColumnApi } from '@ag-grid-community/core';
4
- export * from '@ag-grid-community/react';
2
+ export type { ColDef, ColGroupDef, ColumnState, GridOptions, GridReadyEvent, ICellEditorParams, ICellRendererParams, IHeaderParams, RowDataUpdatedEvent, CellValueChangedEvent, NavigateToNextCellParams, TabToNextCellParams, AgGridEvent, GroupCellRendererParams as IGroupCellRendererParams, Column, CellPosition, IRowNode, } from 'ag-grid-community';
3
+ export { GridApi, ColumnApi } from 'ag-grid-community';
4
+ export * from 'ag-grid-react';
5
+ export { AgGridReact } from 'ag-grid-react';
5
6
  export * from './constants';
6
7
  export { default as BaseTable } from './base-table';
7
8
  export type { BaseTableProps, ColumnsType, ColumnGroupType, ColumnType, } from './base-table/typings';
package/es/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  export * from 'antd';
2
- export { GridApi, ColumnApi } from '@ag-grid-community/core';
3
- export * from '@ag-grid-community/react';
2
+ export { GridApi, ColumnApi } from 'ag-grid-community';
3
+ export * from 'ag-grid-react';
4
+ // prevent vite interop loose module
5
+ export { AgGridReact } from 'ag-grid-react';
4
6
  export * from "./constants";
5
7
  export { default as BaseTable } from "./base-table";
6
8
  export { default as EditableTable } from "./editable-table";
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ReactElement } from 'react';
2
2
  import type { ColType, CustomColumnData, DataGridProps, PaginationType, SortType } from '../data-grid/typings';
3
3
  import type { FilterProps } from '../filter/typings';
4
- import type { SideBarDef } from '@ag-grid-community/core';
4
+ import type { SideBarDef } from 'ag-grid-community';
5
5
  export interface SelectViewProps<RecordType, ParamsType> extends Pick<DataGridProps<RecordType>, 'defaultColDef' | 'rowHeight' | 'cellDisplayFlex' | 'isRowSelectable' | 'rowMultiSelectWithClick' | 'suppressRowClickSelection'> {
6
6
  value?: RecordType[];
7
7
  onChange?: (value: RecordType[], rowDoubleClicked?: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lemon-fe/components",
3
- "version": "1.2.15",
3
+ "version": "1.3.0-alpha.0",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,15 +20,12 @@
20
20
  "test": "echo \"Error: run tests from root\" && exit 1"
21
21
  },
22
22
  "dependencies": {
23
- "@ag-grid-community/client-side-row-model": "29.2.0",
24
- "@ag-grid-community/core": "29.2.0",
25
- "@ag-grid-community/csv-export": "29.2.0",
26
- "@ag-grid-community/infinite-row-model": "29.2.0",
27
- "@ag-grid-community/react": "29.2.0",
28
- "@ag-grid-community/styles": "29.2.0",
29
23
  "@dnd-kit/core": ">=6.0.0",
30
24
  "@lemon-fe/hooks": "^1.2.11",
31
25
  "@lemon-fe/utils": "^1.1.0",
26
+ "ag-grid-community": "29.2.0",
27
+ "ag-grid-enterprise": "29.2.0",
28
+ "ag-grid-react": "29.2.0",
32
29
  "async-validator": "^4.2.5",
33
30
  "bignumber.js": ">=9.0.0",
34
31
  "classnames": "^2.2.6",
@@ -42,12 +39,6 @@
42
39
  "shallowequal": "^1.1.0"
43
40
  },
44
41
  "devDependencies": {
45
- "@ag-grid-enterprise/clipboard": "29.2.0",
46
- "@ag-grid-enterprise/column-tool-panel": "29.2.0",
47
- "@ag-grid-enterprise/master-detail": "29.2.0",
48
- "@ag-grid-enterprise/menu": "29.2.0",
49
- "@ag-grid-enterprise/row-grouping": "29.2.0",
50
- "@ag-grid-enterprise/side-bar": "29.2.0",
51
42
  "@types/color-string": "^1.5.2",
52
43
  "@types/lodash": "^4.14.186",
53
44
  "@types/react": "^18.0.18",
@@ -67,5 +58,5 @@
67
58
  "publishConfig": {
68
59
  "registry": "https://registry.npmjs.org"
69
60
  },
70
- "gitHead": "8007cb827f9cc7ddbe3d8f29b1e76461027dcc73"
61
+ "gitHead": "0b1b326f401852b1329b54b531524e60072ddb8b"
71
62
  }
@@ -1,62 +0,0 @@
1
- import { BeanStub, CellPositionUtils, IClipboardCopyParams, IClipboardCopyRowsParams, IClipboardService, RowPositionUtils, CtrlsService } from "@ag-grid-community/core";
2
- export declare class ClipboardService extends BeanStub implements IClipboardService {
3
- private csvCreator;
4
- private loggerFactory;
5
- private selectionService;
6
- private rangeService;
7
- private rowModel;
8
- ctrlsService: CtrlsService;
9
- private valueService;
10
- private focusService;
11
- private rowRenderer;
12
- private columnModel;
13
- private cellNavigationService;
14
- cellPositionUtils: CellPositionUtils;
15
- rowPositionUtils: RowPositionUtils;
16
- private clientSideRowModel;
17
- private logger;
18
- private gridCtrl;
19
- private lastPasteOperationTime;
20
- private navigatorApiFailed;
21
- private init;
22
- pasteFromClipboard(): void;
23
- private pasteFromClipboardLegacy;
24
- private refocusLastFocusedCell;
25
- private getClipboardDelimiter;
26
- private processClipboardData;
27
- static stringToArray(strData: string, delimiter?: string): string[][];
28
- private doPasteOperation;
29
- private pasteIntoActiveRange;
30
- private pasteStartingFromFocusedCell;
31
- private isPasteSingleValueIntoRange;
32
- private pasteSingleValueIntoRange;
33
- private hasOnlyOneValueToPaste;
34
- copyRangeDown(): void;
35
- private removeLastLineIfBlank;
36
- private fireRowChanged;
37
- private pasteMultipleValues;
38
- private updateCellValue;
39
- copyToClipboard(params?: IClipboardCopyParams): void;
40
- cutToClipboard(params?: IClipboardCopyParams): void;
41
- private copyOrCutToClipboard;
42
- private clearCellsAfterCopy;
43
- private clearSelectedRows;
44
- private clearCellValue;
45
- private shouldSkipSingleCellRange;
46
- private iterateActiveRanges;
47
- private iterateActiveRange;
48
- copySelectedRangeToClipboard(params?: IClipboardCopyParams): void;
49
- private buildDataFromMergedRanges;
50
- private buildDataFromRanges;
51
- private getRangeRowPositionsAndCellsToFlash;
52
- private copyFocusedCellToClipboard;
53
- copySelectedRowsToClipboard(params?: IClipboardCopyRowsParams): void;
54
- private buildExportParams;
55
- private processRowGroupCallback;
56
- private dispatchFlashCells;
57
- private processCell;
58
- private copyDataToClipboard;
59
- private copyDataToClipboardLegacy;
60
- private executeOnTempElement;
61
- private getRangeSize;
62
- }