@progress/kendo-react-data-tools 9.4.0-develop.24 → 9.4.0-develop.3
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/NOTICE.txt +51 -40
- package/clipboard/clipboard.service.js +1 -1
- package/clipboard/clipboard.service.mjs +1 -0
- package/clipboard/common.js +5 -5
- package/clipboard/common.mjs +46 -81
- package/columnmenu/ColumnMenu.js +1 -2
- package/columnmenu/ColumnMenuFilterForm.js +1 -2
- package/columnmenu/ColumnMenuFilterLogic.js +1 -2
- package/columnmenu/ColumnMenuFilterLogic.mjs +4 -4
- package/columnmenu/ColumnMenuFilters.js +1 -2
- package/columnmenu/ColumnMenuItem.js +1 -2
- package/columnmenu/ColumnMenuItem.mjs +4 -4
- package/columnmenu/ColumnMenuOperators.js +1 -1
- package/columnmenu/ColumnMenuOperators.mjs +1 -0
- package/detail-expansion/expandReducer.js +1 -1
- package/detail-expansion/expandReducer.mjs +1 -0
- package/detail-expansion/utils.js +1 -1
- package/detail-expansion/utils.mjs +3 -2
- package/dist/cdn/js/kendo-react-datatools.js +1 -8
- package/drag/ColumnDraggable.js +1 -2
- package/drag/ColumnResize.js +1 -1
- package/drag/ColumnResize.mjs +3 -2
- package/drag/ColumnResizer.js +1 -2
- package/drag/CommonDragLogic.js +1 -1
- package/drag/CommonDragLogic.mjs +1 -0
- package/drag/DragClue.js +1 -2
- package/drag/DragClue.mjs +4 -4
- package/drag/DropClue.js +1 -2
- package/drag/DropClue.mjs +3 -3
- package/editing/editReducer.js +1 -1
- package/editing/editReducer.mjs +1 -0
- package/editing/utils.js +1 -1
- package/editing/utils.mjs +5 -4
- package/filter/Expression.js +1 -2
- package/filter/Filter.js +1 -2
- package/filter/Filter.mjs +11 -11
- package/filter/Group.js +1 -2
- package/filter/filters/BooleanFilter.js +1 -2
- package/filter/filters/DateFilter.js +1 -2
- package/filter/filters/DateFilter.mjs +4 -4
- package/filter/filters/EnumFilter.js +1 -2
- package/filter/filters/NumericFilter.js +1 -2
- package/filter/filters/NumericFilter.mjs +4 -4
- package/filter/filters/TextFilter.js +1 -2
- package/filter/operators.js +1 -1
- package/filter/operators.mjs +1 -0
- package/filteringCells/BooleanFilter.js +1 -2
- package/filteringCells/BooleanFilter.mjs +4 -4
- package/filteringCells/DateFilter.js +1 -2
- package/filteringCells/DateFilter.mjs +5 -5
- package/filteringCells/FilterComponent.js +1 -2
- package/filteringCells/FilterComponent.mjs +7 -7
- package/filteringCells/NumericFilter.js +1 -2
- package/filteringCells/TextFilter.js +1 -2
- package/group-expansion/groupExpandReducer.js +1 -1
- package/group-expansion/groupExpandReducer.mjs +13 -12
- package/header/ColumnProps.js +1 -1
- package/header/ColumnProps.mjs +1 -0
- package/header/FilterRow.js +1 -2
- package/header/FilterRow.mjs +2 -2
- package/header/Header.js +1 -2
- package/header/HeaderCell.js +1 -2
- package/header/HeaderRow.js +1 -2
- package/header/HeaderRow.mjs +5 -5
- package/header/HeaderSelectionCell.js +1 -2
- package/header/HeaderTdElement.js +1 -2
- package/header/HeaderTdElement.mjs +6 -6
- package/header/HeaderThElement.js +1 -2
- package/header/HeaderThElement.mjs +6 -6
- package/header/SortSettings.js +1 -1
- package/header/SortSettings.mjs +3 -2
- package/header/utils/index.js +1 -1
- package/header/utils/index.mjs +6 -5
- package/index.d.mts +10 -95
- package/index.d.ts +10 -95
- package/index.js +1 -1
- package/index.mjs +158 -170
- package/messages/index.js +1 -1
- package/messages/index.mjs +1 -0
- package/navigation/NavigatableSettings.js +1 -1
- package/navigation/NavigatableSettings.mjs +3 -2
- package/navigation/TableKeyboardNavigation.js +1 -2
- package/navigation/TableKeyboardNavigationContext.js +1 -2
- package/navigation/TableKeyboardNavigationContext.mjs +4 -4
- package/navigation/constants.js +1 -1
- package/navigation/constants.mjs +9 -8
- package/navigation/hooks.js +1 -2
- package/navigation/hooks.mjs +5 -5
- package/navigation/utils.js +1 -1
- package/navigation/utils.mjs +1 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +3 -2
- package/package.json +11 -11
- package/pager/Pager.js +1 -2
- package/pager/PagerInput.js +1 -2
- package/pager/PagerNumericButtons.js +1 -2
- package/pager/PagerNumericButtons.mjs +9 -9
- package/pager/PagerPageSizes.js +1 -2
- package/pager/PagerPageSizes.mjs +3 -3
- package/pager/utils.js +1 -1
- package/pager/utils.mjs +3 -2
- package/selection/TableSelection.js +1 -2
- package/selection/constants.js +1 -1
- package/selection/constants.mjs +1 -0
- package/selection/utils.js +1 -1
- package/selection/utils.mjs +1 -0
- package/utils/data-operations.js +1 -1
- package/utils/data-operations.mjs +67 -82
- package/utils/group-operations.js +1 -1
- package/utils/group-operations.mjs +8 -7
- package/virtualization/columns.js +1 -1
- package/virtualization/columns.mjs +6 -5
package/index.d.ts
CHANGED
|
@@ -18,11 +18,6 @@ import * as React_2 from 'react';
|
|
|
18
18
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
19
19
|
import { SVGIcon } from '@progress/kendo-react-common';
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const addHeaders: (initialData: string, cols: string[], event: ClipboardDataEvent) => string;
|
|
25
|
-
|
|
26
21
|
/**
|
|
27
22
|
* Represents the base object of the `onPageChange` event. It is usually used
|
|
28
23
|
* in custom pager scenarios in cases when we don't need any of the events or the target.
|
|
@@ -204,7 +199,7 @@ export declare interface ClipboardData {
|
|
|
204
199
|
}
|
|
205
200
|
|
|
206
201
|
/**
|
|
207
|
-
* Represents the object of the `
|
|
202
|
+
* Represents the object of the `onClipboardData` event.
|
|
208
203
|
*/
|
|
209
204
|
export declare interface ClipboardDataEvent {
|
|
210
205
|
/**
|
|
@@ -219,10 +214,6 @@ export declare interface ClipboardDataEvent {
|
|
|
219
214
|
* All the Grid columns. It takes value of type of [ColumnBaseProps]({% slug api_data-tools_columnbaseprops %})<[CellProps]({% slug api_data-tools_cellprops %})>[]
|
|
220
215
|
*/
|
|
221
216
|
columns: ColumnBaseProps[];
|
|
222
|
-
/**
|
|
223
|
-
* Passes the dataItemKey prop in the clipboard action.
|
|
224
|
-
*/
|
|
225
|
-
dataItemKey: string;
|
|
226
217
|
/**
|
|
227
218
|
* Passes the clipboard prop copyHeaders value in the clipboard action.
|
|
228
219
|
*/
|
|
@@ -235,6 +226,10 @@ export declare interface ClipboardDataEvent {
|
|
|
235
226
|
* Sets the row delimiter used when manipulating the clipboard data Defaults to `\r\n`.
|
|
236
227
|
*/
|
|
237
228
|
newLineDelimiter?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Passes the dataItemKey prop in the clipboard action.
|
|
231
|
+
*/
|
|
232
|
+
dataItemKey: string;
|
|
238
233
|
}
|
|
239
234
|
|
|
240
235
|
/**
|
|
@@ -657,9 +652,6 @@ export declare interface ColumnSortSettings {
|
|
|
657
652
|
allowUnsort?: boolean;
|
|
658
653
|
}
|
|
659
654
|
|
|
660
|
-
/** @hidden */
|
|
661
|
-
export declare const combineFilters: (first?: CompositeFilterDescriptor, second?: CompositeFilterDescriptor) => CompositeFilterDescriptor | undefined;
|
|
662
|
-
|
|
663
655
|
/**
|
|
664
656
|
* @hidden
|
|
665
657
|
*/
|
|
@@ -1242,21 +1234,6 @@ export declare function flatData(data: any[], getChildren: (dataItem: any) => an
|
|
|
1242
1234
|
/** @hidden */
|
|
1243
1235
|
export declare const flatToTree: (flat: GroupState[]) => GroupExpandDescriptor[];
|
|
1244
1236
|
|
|
1245
|
-
/**
|
|
1246
|
-
* @hidden
|
|
1247
|
-
*/
|
|
1248
|
-
export declare const getClipboardData: (event: ClipboardDataEvent, copiedItems: ClipboardItem_2[]) => string;
|
|
1249
|
-
|
|
1250
|
-
/**
|
|
1251
|
-
* @hidden
|
|
1252
|
-
*/
|
|
1253
|
-
export declare const getClipboardItemsToPaste: (args: PopulateClipboardArgs, clipboardText: string) => string[][];
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* @hidden
|
|
1257
|
-
*/
|
|
1258
|
-
export declare const getClipboardText: (copiedItems: ClipboardItem_2[], event: ClipboardDataEvent) => string;
|
|
1259
|
-
|
|
1260
1237
|
/** @hidden */
|
|
1261
1238
|
export declare const getColumnIndex: (element: HTMLTableCellElement) => number | undefined;
|
|
1262
1239
|
|
|
@@ -1296,40 +1273,12 @@ export declare function getIndex(event: any, parent: HTMLTableRowElement | HTMLD
|
|
|
1296
1273
|
*/
|
|
1297
1274
|
export declare const getItemPath: (tree: any[], level: number[], subItemsField?: string) => any[];
|
|
1298
1275
|
|
|
1299
|
-
/**
|
|
1300
|
-
* @hidden
|
|
1301
|
-
*/
|
|
1302
|
-
export declare const getItemsToPaste: (args: PopulateClipboardArgs, clipboardText: string) => any[][];
|
|
1303
|
-
|
|
1304
|
-
/**
|
|
1305
|
-
* @hidden
|
|
1306
|
-
*/
|
|
1307
|
-
export declare const getItemsToUpdateOnPaste: (args: PopulateClipboardArgs, selectedItems: ClipboardItem_2[], dataLength: number, dataItemKey: string) => any[];
|
|
1308
|
-
|
|
1309
1276
|
/** @hidden */
|
|
1310
1277
|
export declare const getOffset: (offsetParent: any) => any;
|
|
1311
1278
|
|
|
1312
|
-
/**
|
|
1313
|
-
* @hidden
|
|
1314
|
-
*/
|
|
1315
|
-
export declare const getPastedItems: (args: PopulateClipboardArgs, clipboardText: string) => ClipboardItem_2[];
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* @hidden
|
|
1319
|
-
*/
|
|
1320
|
-
export declare const getPreviouslyCopiedItemsData: (previousCopiedItems?: ClipboardItem_2[]) => any[][];
|
|
1321
|
-
|
|
1322
1279
|
/** @hidden */
|
|
1323
1280
|
export declare const getRowIndex: (element: HTMLTableRowElement) => number | undefined;
|
|
1324
1281
|
|
|
1325
|
-
/** @hidden */
|
|
1326
|
-
export declare const getSearchFromString: (search: CompositeFilterDescriptor, value: string) => CompositeFilterDescriptor;
|
|
1327
|
-
|
|
1328
|
-
/**
|
|
1329
|
-
* @hidden
|
|
1330
|
-
*/
|
|
1331
|
-
export declare const getSelectedItems: (args: PopulateClipboardArgs) => ClipboardItem_2[];
|
|
1332
|
-
|
|
1333
1282
|
/**
|
|
1334
1283
|
* Get selected state from the component selection event.
|
|
1335
1284
|
*
|
|
@@ -1365,15 +1314,6 @@ export declare const getSelectedStateFromKeyDown: (options: {
|
|
|
1365
1314
|
/** @hidden */
|
|
1366
1315
|
export declare const getSelectionOptions: (selectable?: boolean | TableSelectableSettings) => Required<TableSelectableSettings>;
|
|
1367
1316
|
|
|
1368
|
-
/** @hidden */
|
|
1369
|
-
export declare const getStringFromSearch: (search: CompositeFilterDescriptor | undefined) => string;
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* Represents the object of the `GridClipboardEvent` event.
|
|
1373
|
-
*/
|
|
1374
|
-
export declare interface GridClipboardEvent extends ClipboardDataEvent, ClipboardData {
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1377
1317
|
/**
|
|
1378
1318
|
* @hidden
|
|
1379
1319
|
*/
|
|
@@ -1629,11 +1569,6 @@ export declare const isInNonSelectable: (target: HTMLElement | null) => boolean;
|
|
|
1629
1569
|
*/
|
|
1630
1570
|
export declare function isRtl(element: HTMLElement | null): boolean;
|
|
1631
1571
|
|
|
1632
|
-
/**
|
|
1633
|
-
* @hidden
|
|
1634
|
-
*/
|
|
1635
|
-
export declare const itemToString: (item: any, cols: string[]) => string | null;
|
|
1636
|
-
|
|
1637
1572
|
/**
|
|
1638
1573
|
* @hidden
|
|
1639
1574
|
*/
|
|
@@ -2019,7 +1954,7 @@ export declare interface PagerTargetEvent {
|
|
|
2019
1954
|
*/
|
|
2020
1955
|
export declare interface PopulateClipboardArgs {
|
|
2021
1956
|
/**
|
|
2022
|
-
* Represents the
|
|
1957
|
+
* Represents the object of the `onClipboardData` event.
|
|
2023
1958
|
*/
|
|
2024
1959
|
event: ClipboardDataEvent;
|
|
2025
1960
|
/**
|
|
@@ -2040,10 +1975,6 @@ export declare interface PopulateClipboardArgs {
|
|
|
2040
1975
|
* Passes subItemsField that will be used in grouping cases.
|
|
2041
1976
|
*/
|
|
2042
1977
|
subItemsField?: string;
|
|
2043
|
-
/**
|
|
2044
|
-
* Previous copied items.
|
|
2045
|
-
*/
|
|
2046
|
-
previousCopiedItems?: ClipboardItem_2[];
|
|
2047
1978
|
}
|
|
2048
1979
|
|
|
2049
1980
|
/**
|
|
@@ -2073,24 +2004,6 @@ export declare const relativeContextElement: (element: any) => any;
|
|
|
2073
2004
|
*/
|
|
2074
2005
|
export declare const removeItems: (data: any[], subItemsField: string, condition: (item: any) => boolean) => any[];
|
|
2075
2006
|
|
|
2076
|
-
/**
|
|
2077
|
-
* Represents the SearchField that configures the way a data field is searched.
|
|
2078
|
-
*/
|
|
2079
|
-
export declare interface SearchField {
|
|
2080
|
-
/**
|
|
2081
|
-
* The name of the searched field.
|
|
2082
|
-
*/
|
|
2083
|
-
field: string;
|
|
2084
|
-
/**
|
|
2085
|
-
* The string operator that will be used for search.
|
|
2086
|
-
*/
|
|
2087
|
-
operator?: string;
|
|
2088
|
-
/**
|
|
2089
|
-
* Defines if the search is case sensitive.
|
|
2090
|
-
*/
|
|
2091
|
-
ignoreCase?: boolean;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
2007
|
/**
|
|
2095
2008
|
* @hidden
|
|
2096
2009
|
* TODO: document
|
|
@@ -2255,7 +2168,7 @@ export declare interface TableEditableSettings {
|
|
|
2255
2168
|
* * `inline`
|
|
2256
2169
|
* * `incell`
|
|
2257
2170
|
*
|
|
2258
|
-
* @default '
|
|
2171
|
+
* @default 'inline
|
|
2259
2172
|
*/
|
|
2260
2173
|
mode?: 'inline' | 'incell';
|
|
2261
2174
|
}
|
|
@@ -2348,7 +2261,9 @@ export declare const tableKeyboardNavigation: {
|
|
|
2348
2261
|
focusFirstDataElement: (options: {
|
|
2349
2262
|
scope?: HTMLElement | undefined;
|
|
2350
2263
|
contextStateRef: {
|
|
2351
|
-
current?: TableKeyboardNavigationContextType | undefined;
|
|
2264
|
+
current?: TableKeyboardNavigationContextType | undefined; /**
|
|
2265
|
+
* @hidden
|
|
2266
|
+
*/
|
|
2352
2267
|
};
|
|
2353
2268
|
navigationStateRef: {
|
|
2354
2269
|
current?: TableKeyboardNavigationStateType | undefined;
|
package/index.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./pager/Pager.js"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./pager/Pager.js"),_=require("./drag/ColumnResize.js"),p=require("./drag/ColumnResizer.js"),D=require("./drag/CommonDragLogic.js"),N=require("./drag/DragClue.js"),g=require("./drag/DropClue.js"),t=require("./utils/data-operations.js"),a=require("./utils/group-operations.js"),F=require("./navigation/hooks.js"),e=require("./navigation/constants.js"),O=require("./navigation/NavigatableSettings.js"),b=require("./navigation/TableKeyboardNavigation.js"),R=require("./navigation/TableKeyboardNavigationContext.js"),q=require("./navigation/utils.js"),I=require("./selection/TableSelection.js"),u=require("./selection/constants.js"),r=require("./selection/utils.js"),S=require("./editing/utils.js"),m=require("./editing/editReducer.js"),B=require("./detail-expansion/utils.js"),d=require("./detail-expansion/expandReducer.js"),n=require("./group-expansion/groupExpandReducer.js"),x=require("./clipboard/clipboard.service.js"),C=require("./clipboard/common.js"),L=require("./filteringCells/FilterComponent.js"),M=require("./filteringCells/BooleanFilter.js"),K=require("./filteringCells/DateFilter.js"),y=require("./filteringCells/NumericFilter.js"),v=require("./filteringCells/TextFilter.js"),V=require("./header/ColumnProps.js"),c=require("./header/FilterRow.js"),H=require("./header/Header.js"),Y=require("./header/HeaderCell.js"),f=require("./header/HeaderRow.js"),P=require("./header/HeaderSelectionCell.js"),G=require("./header/SortSettings.js"),o=require("./header/utils/index.js"),U=require("./header/HeaderThElement.js"),w=require("./header/HeaderTdElement.js"),z=require("./virtualization/columns.js"),X=require("./filter/filters/TextFilter.js"),h=require("./filter/filters/NumericFilter.js"),$=require("./filter/filters/DateFilter.js"),W=require("./filter/filters/BooleanFilter.js"),Z=require("./filter/filters/EnumFilter.js"),j=require("./filter/Expression.js"),E=require("./filter/Filter.js"),k=require("./filter/Group.js"),s=require("./filter/operators.js"),l=require("./columnmenu/ColumnMenu.js"),T=require("./columnmenu/ColumnMenuFilterForm.js"),J=require("./columnmenu/ColumnMenuFilterLogic.js"),i=require("./columnmenu/ColumnMenuFilters.js"),Q=require("./columnmenu/ColumnMenuItem.js"),ee=require("./columnmenu/ColumnMenuOperators.js");exports.Pager=A.Pager;exports.ColumnResize=_.ColumnResize;exports.ColumnResizer=p.ColumnResizer;exports.CommonDragLogic=D.CommonDragLogic;exports.DragClue=N.DragClue;exports.DropClue=g.DropClue;exports.createDataTree=t.createDataTree;exports.extendDataItem=t.extendDataItem;exports.filterBy=t.filterBy;exports.flatData=t.flatData;exports.getItemPath=t.getItemPath;exports.modifySubItems=t.modifySubItems;exports.moveTreeItem=t.moveTreeItem;exports.orderBy=t.orderBy;exports.removeItems=t.removeItems;exports.treeToFlat=t.treeToFlat;exports.getGroupIds=a.getGroupIds;exports.setExpandedState=a.setExpandedState;exports.setGroupIds=a.setGroupIds;exports.useTableKeyboardNavigation=F.useTableKeyboardNavigation;exports.KEYBOARD_NAV_CANCEL_BUTTON_CLASS=e.KEYBOARD_NAV_CANCEL_BUTTON_CLASS;exports.KEYBOARD_NAV_DATA_BODY=e.KEYBOARD_NAV_DATA_BODY;exports.KEYBOARD_NAV_DATA_HEADER=e.KEYBOARD_NAV_DATA_HEADER;exports.KEYBOARD_NAV_DATA_ID=e.KEYBOARD_NAV_DATA_ID;exports.KEYBOARD_NAV_DATA_LEVEL=e.KEYBOARD_NAV_DATA_LEVEL;exports.KEYBOARD_NAV_DATA_SCOPE=e.KEYBOARD_NAV_DATA_SCOPE;exports.KEYBOARD_NAV_DATA_ZONE=e.KEYBOARD_NAV_DATA_ZONE;exports.KEYBOARD_NAV_EDIT_BUTTON_CLASS=e.KEYBOARD_NAV_EDIT_BUTTON_CLASS;exports.KEYBOARD_NAV_FILTER_COL_SUFFIX=e.KEYBOARD_NAV_FILTER_COL_SUFFIX;exports.tableKeyboardNavigationBodyAttributes=e.tableKeyboardNavigationBodyAttributes;exports.tableKeyboardNavigationHeaderAttributes=e.tableKeyboardNavigationHeaderAttributes;exports.tableKeyboardNavigationScopeAttributes=e.tableKeyboardNavigationScopeAttributes;exports.NavigatableMode=O.NavigatableMode;exports.tableKeyboardNavigation=b.tableKeyboardNavigation;exports.TableKeyboardNavigationContext=R.TableKeyboardNavigationContext;exports.tableKeyboardNavigationTools=q.tableKeyboardNavigationTools;exports.TableSelection=I.TableSelection;exports.TABLE_COL_INDEX_ATTRIBUTE=u.TABLE_COL_INDEX_ATTRIBUTE;exports.TABLE_PREVENT_SELECTION_ELEMENT=u.TABLE_PREVENT_SELECTION_ELEMENT;exports.TABLE_ROW_INDEX_ATTRIBUTE=u.TABLE_ROW_INDEX_ATTRIBUTE;exports.closestTagName=r.closestTagName;exports.getColumnIndex=r.getColumnIndex;exports.getOffset=r.getOffset;exports.getRowIndex=r.getRowIndex;exports.getSelectedState=r.getSelectedState;exports.getSelectedStateFromKeyDown=r.getSelectedStateFromKeyDown;exports.getSelectionOptions=r.getSelectionOptions;exports.isInNonSelectable=r.isInNonSelectable;exports.relativeContextElement=r.relativeContextElement;exports.setSelectedState=r.setSelectedState;exports.getEditableOptions=S.getEditableOptions;exports.EDIT_ACTION=m.EDIT_ACTION;exports.editReducer=m.editReducer;exports.getDetailExpandableOptions=B.getDetailExpandableOptions;exports.DETAIL_EXPAND_ACTION=d.DETAIL_EXPAND_ACTION;exports.detailExpandReducer=d.detailExpandReducer;exports.GROUP_EXPAND_ACTION=n.GROUP_EXPAND_ACTION;exports.findGroupExpand=n.findGroupExpand;exports.flatToTree=n.flatToTree;exports.getGroupExpandableOptions=n.getGroupExpandableOptions;exports.groupExpandReducer=n.groupExpandReducer;exports.isExpanded=n.isExpanded;exports.ClipboardService=x.ClipboardService;exports.ClipboardActionType=C.ClipboardActionType;exports.populateClipboardData=C.populateClipboardData;exports.createFilterComponent=L.createFilterComponent;exports.BooleanFilterCell=M.BooleanFilterCell;exports.DateFilterCell=K.DateFilterCell;exports.NumericFilterCell=y.NumericFilterCell;exports.TextFilterCell=v.TextFilterCell;exports.ColumnDefaultProps=V.ColumnDefaultProps;exports.FILTER_ROW_CLASS=c.FILTER_ROW_CLASS;exports.FilterRow=c.FilterRow;exports.Header=H.Header;exports.HeaderCell=Y.HeaderCell;exports.HeaderRow=f.HeaderRow;exports.HeaderSelectionCell=P.HeaderSelectionCell;exports.normalize=G.normalize;exports.getIndex=o.getIndex;exports.isRtl=o.isRtl;exports.mapColumns=o.mapColumns;exports.nextColumn=o.nextColumn;exports.readColumns=o.readColumns;exports.updateLeft=o.updateLeft;exports.updateRight=o.updateRight;exports.HeaderThElement=U.HeaderThElement;exports.HeaderTdElement=w.HeaderTdElement;exports.tableColumnsVirtualization=z.tableColumnsVirtualization;exports.TextFilter=X.TextFilter;exports.NumericFilter=h.NumericFilter;exports.DateFilter=$.DateFilter;exports.BooleanFilter=W.BooleanFilter;exports.EnumFilter=Z.EnumFilter;exports.Expression=j.Expression;exports.Filter=E.Filter;exports.selectors=E.selectors;exports.Group=k.Group;exports.Operators=s.Operators;exports.stringOperator=s.stringOperator;exports.unaryOperator=s.unaryOperator;exports.ColumnMenuBooleanColumn=l.ColumnMenuBooleanColumn;exports.ColumnMenuDateColumn=l.ColumnMenuDateColumn;exports.ColumnMenuNumericColumn=l.ColumnMenuNumericColumn;exports.ColumnMenuTextColumn=l.ColumnMenuTextColumn;exports.ColumnMenuFilterForm=T.ColumnMenuFilterForm;exports.ColumnMenuForm=T.ColumnMenuForm;exports.ColumnMenuFilterLogic=J.ColumnMenuFilterLogic;exports.ColumnMenuBooleanFilter=i.ColumnMenuBooleanFilter;exports.ColumnMenuDateFilter=i.ColumnMenuDateFilter;exports.ColumnMenuNumericFilter=i.ColumnMenuNumericFilter;exports.ColumnMenuTextFilter=i.ColumnMenuTextFilter;exports.ColumnMenuItem=Q.ColumnMenuItem;exports.ColumnMenuOperators=ee.ColumnMenuOperators;
|
package/index.mjs
CHANGED
|
@@ -5,186 +5,174 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
"use client";
|
|
9
|
+
import { Pager as r } from "./pager/Pager.mjs";
|
|
10
|
+
import { ColumnResize as m } from "./drag/ColumnResize.mjs";
|
|
11
|
+
import { ColumnResizer as a } from "./drag/ColumnResizer.mjs";
|
|
11
12
|
import { CommonDragLogic as n } from "./drag/CommonDragLogic.mjs";
|
|
12
13
|
import { DragClue as x } from "./drag/DragClue.mjs";
|
|
13
14
|
import { DropClue as f } from "./drag/DropClue.mjs";
|
|
14
|
-
import {
|
|
15
|
-
import { getGroupIds as R, setExpandedState as
|
|
16
|
-
import { useTableKeyboardNavigation as
|
|
17
|
-
import { KEYBOARD_NAV_CANCEL_BUTTON_CLASS as
|
|
18
|
-
import { NavigatableMode as
|
|
19
|
-
import { tableKeyboardNavigation as
|
|
20
|
-
import { TableKeyboardNavigationContext as
|
|
21
|
-
import { tableKeyboardNavigationTools as
|
|
22
|
-
import { TableSelection as
|
|
23
|
-
import { TABLE_COL_INDEX_ATTRIBUTE as
|
|
24
|
-
import { closestTagName as
|
|
25
|
-
import { getEditableOptions as
|
|
26
|
-
import { EDIT_ACTION as
|
|
27
|
-
import { getDetailExpandableOptions as
|
|
28
|
-
import { DETAIL_EXPAND_ACTION as
|
|
29
|
-
import { GROUP_EXPAND_ACTION as Re, findGroupExpand as
|
|
30
|
-
import { ClipboardService as
|
|
31
|
-
import { ClipboardActionType as
|
|
32
|
-
import { createFilterComponent as
|
|
33
|
-
import { BooleanFilterCell as
|
|
34
|
-
import { DateFilterCell as
|
|
35
|
-
import { NumericFilterCell as
|
|
36
|
-
import { TextFilterCell as
|
|
37
|
-
import { ColumnDefaultProps as
|
|
38
|
-
import { FILTER_ROW_CLASS as
|
|
39
|
-
import { Header as
|
|
40
|
-
import { HeaderCell as
|
|
41
|
-
import { HeaderRow as
|
|
42
|
-
import { HeaderSelectionCell as
|
|
43
|
-
import { normalize as
|
|
44
|
-
import { getIndex as
|
|
45
|
-
import { HeaderThElement as
|
|
46
|
-
import { HeaderTdElement as
|
|
47
|
-
import { tableColumnsVirtualization as
|
|
48
|
-
import { TextFilter as
|
|
49
|
-
import { NumericFilter as
|
|
50
|
-
import { DateFilter as
|
|
51
|
-
import { BooleanFilter as
|
|
52
|
-
import { EnumFilter as
|
|
53
|
-
import { Expression as
|
|
54
|
-
import { Filter as
|
|
55
|
-
import { Group as
|
|
56
|
-
import { Operators as
|
|
57
|
-
import { ColumnMenuBooleanColumn as
|
|
58
|
-
import { ColumnMenuFilterForm as
|
|
59
|
-
import { ColumnMenuFilterLogic as
|
|
60
|
-
import { ColumnMenuBooleanFilter as
|
|
61
|
-
import { ColumnMenuItem as
|
|
62
|
-
import { ColumnMenuOperators as
|
|
15
|
+
import { createDataTree as d, extendDataItem as A, filterBy as E, flatData as T, getItemPath as _, modifySubItems as D, moveTreeItem as N, orderBy as s, removeItems as O, treeToFlat as g } from "./utils/data-operations.mjs";
|
|
16
|
+
import { getGroupIds as R, setExpandedState as I, setGroupIds as F } from "./utils/group-operations.mjs";
|
|
17
|
+
import { useTableKeyboardNavigation as B } from "./navigation/hooks.mjs";
|
|
18
|
+
import { KEYBOARD_NAV_CANCEL_BUTTON_CLASS as L, KEYBOARD_NAV_DATA_BODY as K, KEYBOARD_NAV_DATA_HEADER as M, KEYBOARD_NAV_DATA_ID as y, KEYBOARD_NAV_DATA_LEVEL as v, KEYBOARD_NAV_DATA_SCOPE as V, KEYBOARD_NAV_DATA_ZONE as Y, KEYBOARD_NAV_EDIT_BUTTON_CLASS as H, KEYBOARD_NAV_FILTER_COL_SUFFIX as P, tableKeyboardNavigationBodyAttributes as G, tableKeyboardNavigationHeaderAttributes as U, tableKeyboardNavigationScopeAttributes as X } from "./navigation/constants.mjs";
|
|
19
|
+
import { NavigatableMode as z } from "./navigation/NavigatableSettings.mjs";
|
|
20
|
+
import { tableKeyboardNavigation as W } from "./navigation/TableKeyboardNavigation.mjs";
|
|
21
|
+
import { TableKeyboardNavigationContext as j } from "./navigation/TableKeyboardNavigationContext.mjs";
|
|
22
|
+
import { tableKeyboardNavigationTools as q } from "./navigation/utils.mjs";
|
|
23
|
+
import { TableSelection as Q } from "./selection/TableSelection.mjs";
|
|
24
|
+
import { TABLE_COL_INDEX_ATTRIBUTE as ee, TABLE_PREVENT_SELECTION_ELEMENT as oe, TABLE_ROW_INDEX_ATTRIBUTE as re } from "./selection/constants.mjs";
|
|
25
|
+
import { closestTagName as me, getColumnIndex as le, getOffset as ae, getRowIndex as pe, getSelectedState as ne, getSelectedStateFromKeyDown as ie, getSelectionOptions as xe, isInNonSelectable as ue, relativeContextElement as fe, setSelectedState as Ce } from "./selection/utils.mjs";
|
|
26
|
+
import { getEditableOptions as Ae } from "./editing/utils.mjs";
|
|
27
|
+
import { EDIT_ACTION as Te, editReducer as _e } from "./editing/editReducer.mjs";
|
|
28
|
+
import { getDetailExpandableOptions as Ne } from "./detail-expansion/utils.mjs";
|
|
29
|
+
import { DETAIL_EXPAND_ACTION as Oe, detailExpandReducer as ge } from "./detail-expansion/expandReducer.mjs";
|
|
30
|
+
import { GROUP_EXPAND_ACTION as Re, findGroupExpand as Ie, flatToTree as Fe, getGroupExpandableOptions as ce, groupExpandReducer as Be, isExpanded as Se } from "./group-expansion/groupExpandReducer.mjs";
|
|
31
|
+
import { ClipboardService as Ke } from "./clipboard/clipboard.service.mjs";
|
|
32
|
+
import { ClipboardActionType as ye, populateClipboardData as ve } from "./clipboard/common.mjs";
|
|
33
|
+
import { createFilterComponent as Ye } from "./filteringCells/FilterComponent.mjs";
|
|
34
|
+
import { BooleanFilterCell as Pe } from "./filteringCells/BooleanFilter.mjs";
|
|
35
|
+
import { DateFilterCell as Ue } from "./filteringCells/DateFilter.mjs";
|
|
36
|
+
import { NumericFilterCell as we } from "./filteringCells/NumericFilter.mjs";
|
|
37
|
+
import { TextFilterCell as he } from "./filteringCells/TextFilter.mjs";
|
|
38
|
+
import { ColumnDefaultProps as Ze } from "./header/ColumnProps.mjs";
|
|
39
|
+
import { FILTER_ROW_CLASS as ke, FilterRow as qe } from "./header/FilterRow.mjs";
|
|
40
|
+
import { Header as Qe } from "./header/Header.mjs";
|
|
41
|
+
import { HeaderCell as eo } from "./header/HeaderCell.mjs";
|
|
42
|
+
import { HeaderRow as ro } from "./header/HeaderRow.mjs";
|
|
43
|
+
import { HeaderSelectionCell as mo } from "./header/HeaderSelectionCell.mjs";
|
|
44
|
+
import { normalize as ao } from "./header/SortSettings.mjs";
|
|
45
|
+
import { getIndex as no, isRtl as io, mapColumns as xo, nextColumn as uo, readColumns as fo, updateLeft as Co, updateRight as Ao } from "./header/utils/index.mjs";
|
|
46
|
+
import { HeaderThElement as To } from "./header/HeaderThElement.mjs";
|
|
47
|
+
import { HeaderTdElement as Do } from "./header/HeaderTdElement.mjs";
|
|
48
|
+
import { tableColumnsVirtualization as so } from "./virtualization/columns.mjs";
|
|
49
|
+
import { TextFilter as go } from "./filter/filters/TextFilter.mjs";
|
|
50
|
+
import { NumericFilter as Ro } from "./filter/filters/NumericFilter.mjs";
|
|
51
|
+
import { DateFilter as Fo } from "./filter/filters/DateFilter.mjs";
|
|
52
|
+
import { BooleanFilter as Bo } from "./filter/filters/BooleanFilter.mjs";
|
|
53
|
+
import { EnumFilter as Lo } from "./filter/filters/EnumFilter.mjs";
|
|
54
|
+
import { Expression as Mo } from "./filter/Expression.mjs";
|
|
55
|
+
import { Filter as vo, selectors as Vo } from "./filter/Filter.mjs";
|
|
56
|
+
import { Group as Ho } from "./filter/Group.mjs";
|
|
57
|
+
import { Operators as Go, stringOperator as Uo, unaryOperator as Xo } from "./filter/operators.mjs";
|
|
58
|
+
import { ColumnMenuBooleanColumn as zo, ColumnMenuDateColumn as ho, ColumnMenuNumericColumn as Wo, ColumnMenuTextColumn as Zo } from "./columnmenu/ColumnMenu.mjs";
|
|
59
|
+
import { ColumnMenuFilterForm as ko, ColumnMenuForm as qo } from "./columnmenu/ColumnMenuFilterForm.mjs";
|
|
60
|
+
import { ColumnMenuFilterLogic as Qo } from "./columnmenu/ColumnMenuFilterLogic.mjs";
|
|
61
|
+
import { ColumnMenuBooleanFilter as er, ColumnMenuDateFilter as or, ColumnMenuNumericFilter as rr, ColumnMenuTextFilter as tr } from "./columnmenu/ColumnMenuFilters.mjs";
|
|
62
|
+
import { ColumnMenuItem as lr } from "./columnmenu/ColumnMenuItem.mjs";
|
|
63
|
+
import { ColumnMenuOperators as pr } from "./columnmenu/ColumnMenuOperators.mjs";
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
65
|
+
Bo as BooleanFilter,
|
|
66
|
+
Pe as BooleanFilterCell,
|
|
67
|
+
ye as ClipboardActionType,
|
|
68
|
+
Ke as ClipboardService,
|
|
69
|
+
Ze as ColumnDefaultProps,
|
|
70
|
+
zo as ColumnMenuBooleanColumn,
|
|
71
|
+
er as ColumnMenuBooleanFilter,
|
|
72
|
+
ho as ColumnMenuDateColumn,
|
|
73
|
+
or as ColumnMenuDateFilter,
|
|
74
|
+
ko as ColumnMenuFilterForm,
|
|
75
|
+
Qo as ColumnMenuFilterLogic,
|
|
76
|
+
qo as ColumnMenuForm,
|
|
77
|
+
lr as ColumnMenuItem,
|
|
78
|
+
Wo as ColumnMenuNumericColumn,
|
|
79
|
+
rr as ColumnMenuNumericFilter,
|
|
80
|
+
pr as ColumnMenuOperators,
|
|
81
|
+
Zo as ColumnMenuTextColumn,
|
|
82
|
+
tr as ColumnMenuTextFilter,
|
|
83
|
+
m as ColumnResize,
|
|
84
|
+
a as ColumnResizer,
|
|
84
85
|
n as CommonDragLogic,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
Oe as DETAIL_EXPAND_ACTION,
|
|
87
|
+
Fo as DateFilter,
|
|
88
|
+
Ue as DateFilterCell,
|
|
88
89
|
x as DragClue,
|
|
89
90
|
f as DropClue,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
Te as EDIT_ACTION,
|
|
92
|
+
Lo as EnumFilter,
|
|
93
|
+
Mo as Expression,
|
|
94
|
+
ke as FILTER_ROW_CLASS,
|
|
95
|
+
vo as Filter,
|
|
96
|
+
qe as FilterRow,
|
|
96
97
|
Re as GROUP_EXPAND_ACTION,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Fe as detailExpandReducer,
|
|
131
|
-
De as editReducer,
|
|
98
|
+
Ho as Group,
|
|
99
|
+
Qe as Header,
|
|
100
|
+
eo as HeaderCell,
|
|
101
|
+
ro as HeaderRow,
|
|
102
|
+
mo as HeaderSelectionCell,
|
|
103
|
+
Do as HeaderTdElement,
|
|
104
|
+
To as HeaderThElement,
|
|
105
|
+
L as KEYBOARD_NAV_CANCEL_BUTTON_CLASS,
|
|
106
|
+
K as KEYBOARD_NAV_DATA_BODY,
|
|
107
|
+
M as KEYBOARD_NAV_DATA_HEADER,
|
|
108
|
+
y as KEYBOARD_NAV_DATA_ID,
|
|
109
|
+
v as KEYBOARD_NAV_DATA_LEVEL,
|
|
110
|
+
V as KEYBOARD_NAV_DATA_SCOPE,
|
|
111
|
+
Y as KEYBOARD_NAV_DATA_ZONE,
|
|
112
|
+
H as KEYBOARD_NAV_EDIT_BUTTON_CLASS,
|
|
113
|
+
P as KEYBOARD_NAV_FILTER_COL_SUFFIX,
|
|
114
|
+
z as NavigatableMode,
|
|
115
|
+
Ro as NumericFilter,
|
|
116
|
+
we as NumericFilterCell,
|
|
117
|
+
Go as Operators,
|
|
118
|
+
r as Pager,
|
|
119
|
+
ee as TABLE_COL_INDEX_ATTRIBUTE,
|
|
120
|
+
oe as TABLE_PREVENT_SELECTION_ELEMENT,
|
|
121
|
+
re as TABLE_ROW_INDEX_ATTRIBUTE,
|
|
122
|
+
j as TableKeyboardNavigationContext,
|
|
123
|
+
Q as TableSelection,
|
|
124
|
+
go as TextFilter,
|
|
125
|
+
he as TextFilterCell,
|
|
126
|
+
me as closestTagName,
|
|
127
|
+
d as createDataTree,
|
|
128
|
+
Ye as createFilterComponent,
|
|
129
|
+
ge as detailExpandReducer,
|
|
130
|
+
_e as editReducer,
|
|
132
131
|
A as extendDataItem,
|
|
133
132
|
E as filterBy,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
Ie as getDetailExpandableOptions,
|
|
142
|
-
se as getEditableOptions,
|
|
143
|
-
Le as getGroupExpandableOptions,
|
|
133
|
+
Ie as findGroupExpand,
|
|
134
|
+
T as flatData,
|
|
135
|
+
Fe as flatToTree,
|
|
136
|
+
le as getColumnIndex,
|
|
137
|
+
Ne as getDetailExpandableOptions,
|
|
138
|
+
Ae as getEditableOptions,
|
|
139
|
+
ce as getGroupExpandableOptions,
|
|
144
140
|
R as getGroupIds,
|
|
145
|
-
|
|
141
|
+
no as getIndex,
|
|
146
142
|
_ as getItemPath,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
w as tableKeyboardNavigationHeaderAttributes,
|
|
183
|
-
z as tableKeyboardNavigationScopeAttributes,
|
|
184
|
-
$ as tableKeyboardNavigationTools,
|
|
185
|
-
F as treeToFlat,
|
|
186
|
-
ot as unaryOperator,
|
|
187
|
-
So as updateLeft,
|
|
188
|
-
Ro as updateRight,
|
|
189
|
-
K as useTableKeyboardNavigation
|
|
143
|
+
ae as getOffset,
|
|
144
|
+
pe as getRowIndex,
|
|
145
|
+
ne as getSelectedState,
|
|
146
|
+
ie as getSelectedStateFromKeyDown,
|
|
147
|
+
xe as getSelectionOptions,
|
|
148
|
+
Be as groupExpandReducer,
|
|
149
|
+
Se as isExpanded,
|
|
150
|
+
ue as isInNonSelectable,
|
|
151
|
+
io as isRtl,
|
|
152
|
+
xo as mapColumns,
|
|
153
|
+
D as modifySubItems,
|
|
154
|
+
N as moveTreeItem,
|
|
155
|
+
uo as nextColumn,
|
|
156
|
+
ao as normalize,
|
|
157
|
+
s as orderBy,
|
|
158
|
+
ve as populateClipboardData,
|
|
159
|
+
fo as readColumns,
|
|
160
|
+
fe as relativeContextElement,
|
|
161
|
+
O as removeItems,
|
|
162
|
+
Vo as selectors,
|
|
163
|
+
I as setExpandedState,
|
|
164
|
+
F as setGroupIds,
|
|
165
|
+
Ce as setSelectedState,
|
|
166
|
+
Uo as stringOperator,
|
|
167
|
+
so as tableColumnsVirtualization,
|
|
168
|
+
W as tableKeyboardNavigation,
|
|
169
|
+
G as tableKeyboardNavigationBodyAttributes,
|
|
170
|
+
U as tableKeyboardNavigationHeaderAttributes,
|
|
171
|
+
X as tableKeyboardNavigationScopeAttributes,
|
|
172
|
+
q as tableKeyboardNavigationTools,
|
|
173
|
+
g as treeToFlat,
|
|
174
|
+
Xo as unaryOperator,
|
|
175
|
+
Co as updateLeft,
|
|
176
|
+
Ao as updateRight,
|
|
177
|
+
B as useTableKeyboardNavigation
|
|
190
178
|
};
|