@toolbox-web/grid 1.1.2 → 1.3.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 +80 -22
- package/all.d.ts +1 -0
- package/all.d.ts.map +1 -1
- package/all.js +557 -365
- package/all.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +903 -769
- package/index.js.map +1 -1
- package/lib/core/grid.d.ts +102 -3
- package/lib/core/grid.d.ts.map +1 -1
- package/lib/core/internal/row-animation.d.ts +37 -0
- package/lib/core/internal/row-animation.d.ts.map +1 -0
- package/lib/core/internal/rows.d.ts.map +1 -1
- package/lib/core/internal/shell.d.ts.map +1 -1
- package/lib/core/plugin/base-plugin.d.ts +65 -3
- package/lib/core/plugin/base-plugin.d.ts.map +1 -1
- package/lib/core/plugin/index.d.ts +1 -1
- package/lib/core/plugin/index.d.ts.map +1 -1
- package/lib/core/plugin/plugin-manager.d.ts +25 -1
- package/lib/core/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/core/plugin/types.d.ts +62 -0
- package/lib/core/plugin/types.d.ts.map +1 -1
- package/lib/core/types.d.ts +64 -1
- package/lib/core/types.d.ts.map +1 -1
- package/lib/plugins/clipboard/index.js +73 -69
- package/lib/plugins/clipboard/index.js.map +1 -1
- package/lib/plugins/clipboard/types.d.ts +1 -0
- package/lib/plugins/clipboard/types.d.ts.map +1 -1
- package/lib/plugins/column-virtualization/index.js.map +1 -1
- package/lib/plugins/context-menu/index.js.map +1 -1
- package/lib/plugins/editing/EditingPlugin.d.ts.map +1 -1
- package/lib/plugins/editing/index.js +69 -40
- package/lib/plugins/editing/index.js.map +1 -1
- package/lib/plugins/export/index.js.map +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/grouping-columns/index.js.map +1 -1
- package/lib/plugins/grouping-rows/index.js.map +1 -1
- package/lib/plugins/master-detail/MasterDetailPlugin.d.ts.map +1 -1
- package/lib/plugins/master-detail/index.js +14 -12
- package/lib/plugins/master-detail/index.js.map +1 -1
- package/lib/plugins/multi-sort/index.js.map +1 -1
- package/lib/plugins/pinned-columns/index.js.map +1 -1
- package/lib/plugins/pinned-rows/index.js.map +1 -1
- package/lib/plugins/pivot/index.js.map +1 -1
- package/lib/plugins/reorder/index.js.map +1 -1
- package/lib/plugins/responsive/index.js.map +1 -1
- package/lib/plugins/row-reorder/RowReorderPlugin.d.ts +155 -0
- package/lib/plugins/row-reorder/RowReorderPlugin.d.ts.map +1 -0
- package/lib/plugins/row-reorder/index.d.ts +9 -0
- package/lib/plugins/row-reorder/index.d.ts.map +1 -0
- package/lib/plugins/row-reorder/index.js +597 -0
- package/lib/plugins/row-reorder/index.js.map +1 -0
- package/lib/plugins/row-reorder/types.d.ts +80 -0
- package/lib/plugins/row-reorder/types.d.ts.map +1 -0
- package/lib/plugins/selection/SelectionPlugin.d.ts +13 -0
- package/lib/plugins/selection/SelectionPlugin.d.ts.map +1 -1
- package/lib/plugins/selection/index.d.ts +1 -1
- package/lib/plugins/selection/index.d.ts.map +1 -1
- package/lib/plugins/selection/index.js +95 -64
- package/lib/plugins/selection/index.js.map +1 -1
- package/lib/plugins/selection/types.d.ts +50 -6
- package/lib/plugins/selection/types.d.ts.map +1 -1
- package/lib/plugins/server-side/index.js.map +1 -1
- package/lib/plugins/tree/index.js.map +1 -1
- package/lib/plugins/undo-redo/index.js.map +1 -1
- package/lib/plugins/visibility/index.js.map +1 -1
- package/package.json +21 -4
- package/public.d.ts +15 -2
- package/public.d.ts.map +1 -1
- package/umd/grid.all.umd.js +23 -23
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/grid.umd.js +15 -15
- package/umd/grid.umd.js.map +1 -1
- package/umd/plugins/clipboard.umd.js +5 -5
- package/umd/plugins/clipboard.umd.js.map +1 -1
- package/umd/plugins/editing.umd.js +1 -1
- package/umd/plugins/editing.umd.js.map +1 -1
- package/umd/plugins/master-detail.umd.js +1 -1
- package/umd/plugins/master-detail.umd.js.map +1 -1
- package/umd/plugins/row-reorder.umd.js +2 -0
- package/umd/plugins/row-reorder.umd.js.map +1 -0
- package/umd/plugins/selection.umd.js +2 -2
- package/umd/plugins/selection.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolbox-web/grid",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Zero-dependency, framework-agnostic data grid web component with virtualization, sorting, filtering, editing, and 20+ plugins. Works in vanilla JS, React, Vue, Angular, and any framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"module": "./index.js",
|
|
@@ -37,10 +37,27 @@
|
|
|
37
37
|
"./src/lib/core/grid.js"
|
|
38
38
|
],
|
|
39
39
|
"keywords": [
|
|
40
|
-
"web-component",
|
|
41
40
|
"data-grid",
|
|
41
|
+
"datagrid",
|
|
42
|
+
"grid",
|
|
42
43
|
"table",
|
|
43
|
-
"
|
|
44
|
+
"web-component",
|
|
45
|
+
"web-components",
|
|
46
|
+
"custom-element",
|
|
47
|
+
"virtualization",
|
|
48
|
+
"typescript",
|
|
49
|
+
"vanilla-js",
|
|
50
|
+
"framework-agnostic",
|
|
51
|
+
"no-dependencies",
|
|
52
|
+
"zero-dependencies",
|
|
53
|
+
"react",
|
|
54
|
+
"vue",
|
|
55
|
+
"angular",
|
|
56
|
+
"sorting",
|
|
57
|
+
"filtering",
|
|
58
|
+
"editing",
|
|
59
|
+
"spreadsheet",
|
|
60
|
+
"ag-grid-alternative"
|
|
44
61
|
],
|
|
45
62
|
"license": "MIT",
|
|
46
63
|
"author": "Oystein Amundsen",
|
package/public.d.ts
CHANGED
|
@@ -9,6 +9,19 @@ import { GridConfig } from './lib/core/types';
|
|
|
9
9
|
* @module Core
|
|
10
10
|
*/
|
|
11
11
|
export { DataGridElement, DataGridElement as GridElement } from './lib/core/grid';
|
|
12
|
+
/**
|
|
13
|
+
* Clean type alias for the grid element.
|
|
14
|
+
* Use this in place of `DataGridElement<T>` for more concise code.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { TbwGrid, createGrid } from '@toolbox-web/grid';
|
|
19
|
+
*
|
|
20
|
+
* const grid: TbwGrid<Employee> = createGrid();
|
|
21
|
+
* grid.rows = employees;
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export type { DataGridElement as TbwGrid } from './lib/core/grid';
|
|
12
25
|
/**
|
|
13
26
|
* Create a new typed grid element programmatically.
|
|
14
27
|
*
|
|
@@ -108,11 +121,11 @@ export declare const PluginEvents: {
|
|
|
108
121
|
export type PluginEventName = (typeof PluginEvents)[keyof typeof PluginEvents];
|
|
109
122
|
export type {
|
|
110
123
|
/** @deprecated Use CellActivateDetail instead */
|
|
111
|
-
ActivateCellDetail, AggregatorRef, AnimationConfig, AnimationMode, AnimationStyle, BaseColumnConfig, CellActivateDetail, CellActivateTrigger, CellChangeDetail, CellClickDetail, CellCommitDetail, CellRenderContext, ChangedRowsResetDetail, ColumnConfig, ColumnConfigMap, ColumnEditorContext, ColumnEditorSpec, ColumnResizeDetail, ColumnSortState, ColumnState, ColumnType, ColumnViewRenderer, DataGridCustomEvent, DataGridElement as DataGridElementInterface, DataGridEventMap, ExpandCollapseAnimation, ExternalMountEditorDetail, ExternalMountViewDetail, FitMode, FrameworkAdapter, GridColumnState, GridConfig, GridIcons, GridPlugin, HeaderContentDefinition, IconValue, InferredColumnResult, PrimitiveColumnType, PublicGrid, RowClickDetail, RowCommitDetail, RowGroupRenderConfig, RowUpdate, ShellConfig, ShellHeaderConfig, SortChangeDetail, SortHandler, SortState, ToolbarContentDefinition, ToolPanelConfig, ToolPanelDefinition, TypeDefault, UpdateSource, } from './lib/core/types';
|
|
124
|
+
ActivateCellDetail, AggregatorRef, AnimationConfig, AnimationMode, AnimationStyle, BaseColumnConfig, CellActivateDetail, CellActivateTrigger, CellChangeDetail, CellClickDetail, CellCommitDetail, CellRenderContext, ChangedRowsResetDetail, ColumnConfig, ColumnConfigMap, ColumnEditorContext, ColumnEditorSpec, ColumnResizeDetail, ColumnSortState, ColumnState, ColumnType, ColumnViewRenderer, DataGridCustomEvent, DataGridElement as DataGridElementInterface, DataGridEventMap, ExpandCollapseAnimation, ExternalMountEditorDetail, ExternalMountViewDetail, FitMode, FrameworkAdapter, GridColumnState, GridConfig, GridIcons, GridPlugin, HeaderContentDefinition, IconValue, InferredColumnResult, PrimitiveColumnType, PublicGrid, RowAnimationType, RowClickDetail, RowCommitDetail, RowGroupRenderConfig, RowUpdate, ShellConfig, ShellHeaderConfig, SortChangeDetail, SortHandler, SortState, ToolbarContentDefinition, ToolPanelConfig, ToolPanelDefinition, TypeDefault, UpdateSource, } from './lib/core/types';
|
|
112
125
|
export { DEFAULT_ANIMATION_CONFIG, DEFAULT_GRID_ICONS, FitModeEnum } from './lib/core/types';
|
|
113
126
|
export { builtInSort, defaultComparator } from './lib/core/internal/sorting';
|
|
114
127
|
export { BaseGridPlugin, PLUGIN_QUERIES } from './lib/core/plugin';
|
|
115
|
-
export type { PluginQuery } from './lib/core/plugin';
|
|
128
|
+
export type { AfterCellRenderContext, AfterRowRenderContext, PluginQuery } from './lib/core/plugin';
|
|
116
129
|
export { GridClasses, GridCSSVars, GridDataAttrs, GridSelectors } from './lib/core/constants';
|
|
117
130
|
export type { GridClassName, GridCSSVar, GridDataAttr } from './lib/core/constants';
|
|
118
131
|
/**
|
package/public.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../libs/grid/src/public.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,eAAe,EAAE,eAAe,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../libs/grid/src/public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