@open-grid/svelte-ui 0.1.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/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/DataGrid.svelte +2032 -0
- package/dist/DataGrid.svelte.d.ts +95 -0
- package/dist/index.css +1132 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +32 -0
- package/package.json +67 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExportFile } from '@open-grid/core';
|
|
2
|
+
export { AccessorColumnOptions, AccessorFnColumnDef, AccessorKey, AccessorKeyColumnDef, AnyColumnDef, CellContext, CellCoordinate, CellEditEvent, CellEditEventParams, CellEditHistoryAction, CellEditHistoryState, CellEditOption, CellEditParserContext, CellEditPhase, CellEditValidationContext, CellEditValidationResult, CellEditValidationState, CellEditingState, CellFillOptions, CellInteractionEvent, CellInteractionEventParams, CellRange, CellRangeSelectionState, ClipboardCellContext, ClipboardCopyOptions, ClipboardPasteCellContext, ClipboardPasteCommittedCell, ClipboardPasteOptions, ClipboardPasteResult, ClipboardPasteSkippedCell, ClipboardPasteSkippedReason, ClipboardPasteValidationError, Column, ColumnDef, ColumnFilter, ColumnFiltersState, ColumnHelper, ColumnId, ColumnMovePosition, ColumnOrderState, ColumnPinningPosition, ColumnPinningState, ColumnResizeEvent, ColumnResizeEventParams, ColumnResizePhase, ColumnSizingState, ColumnVisibilityState, DisplayColumnDef, ExpandedState, ExportFile, ExportFileOptions, FilterFn, FitColumnsToWidthOptions, Grid, GridCacheDiagnostics, GridCacheDiagnosticsEntry, GridCacheKey, GridOptions, GridState, GroupColumnDef, GroupingState, Header, HeaderContext, HeaderGroup, MoveFocusOptions, PaginationState, Row, RowId, RowInteractionEvent, RowInteractionEventParams, RowModel, RowSelectionCleanupScope, RowSelectionState, SortFn, SortingRule, SortingState, Updater } from '@open-grid/core';
|
|
3
|
+
export { ColumnVirtualizationOptions, default as DataGrid, DataGridProps, GridReadyHandler, HeaderActionMenuActionItem, HeaderActionMenuContext, HeaderActionMenuCustomItem, HeaderActionMenuItem, HeaderActionMenuItems, HeaderActionMenuLabelItem, HeaderActionMenuSeparatorItem, RowVirtualizationOptions } from './DataGrid.svelte';
|
|
4
|
+
export { createColumnHelper, createGridStore, fitColumnsToWidth } from '@open-grid/svelte';
|
|
5
|
+
export { GRID_PREFERENCES_VERSION, GridDensity, GridPreferences, GridPreferencesOptions, GridPreferencesState, GridPreferencesStorageEnvironmentLike, GridPreferencesStorageLike, createGridPreferences, getBrowserGridPreferencesStorage, parseGridPreferences, readGridPreferences, removeGridPreferences, serializeGridPreferences, writeGridPreferences } from '@open-grid/primitives';
|
|
6
|
+
|
|
7
|
+
declare function downloadExportFile(file: ExportFile): boolean;
|
|
8
|
+
|
|
9
|
+
export { downloadExportFile };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { downloadBrowserExportFile } from "@open-grid/primitives";
|
|
3
|
+
import { default as default2 } from "./DataGrid.svelte";
|
|
4
|
+
import { createColumnHelper, createGridStore, fitColumnsToWidth } from "@open-grid/svelte";
|
|
5
|
+
import {
|
|
6
|
+
GRID_PREFERENCES_VERSION,
|
|
7
|
+
createGridPreferences,
|
|
8
|
+
getBrowserGridPreferencesStorage,
|
|
9
|
+
parseGridPreferences,
|
|
10
|
+
readGridPreferences,
|
|
11
|
+
removeGridPreferences,
|
|
12
|
+
serializeGridPreferences,
|
|
13
|
+
writeGridPreferences
|
|
14
|
+
} from "@open-grid/primitives";
|
|
15
|
+
function downloadExportFile(file) {
|
|
16
|
+
return downloadBrowserExportFile(file);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
default2 as DataGrid,
|
|
20
|
+
GRID_PREFERENCES_VERSION,
|
|
21
|
+
createColumnHelper,
|
|
22
|
+
createGridPreferences,
|
|
23
|
+
createGridStore,
|
|
24
|
+
downloadExportFile,
|
|
25
|
+
fitColumnsToWidth,
|
|
26
|
+
getBrowserGridPreferencesStorage,
|
|
27
|
+
parseGridPreferences,
|
|
28
|
+
readGridPreferences,
|
|
29
|
+
removeGridPreferences,
|
|
30
|
+
serializeGridPreferences,
|
|
31
|
+
writeGridPreferences
|
|
32
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@open-grid/svelte-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Optional styled Svelte data grid for Open Grid.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"data-grid",
|
|
7
|
+
"grid",
|
|
8
|
+
"table",
|
|
9
|
+
"svelte",
|
|
10
|
+
"ui"
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://goatshave.github.io/open-grid/svelte-ui",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Goatshave/open-grid/issues"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"dist/index.css",
|
|
23
|
+
"src/index.css"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./DataGrid.svelte": {
|
|
31
|
+
"svelte": "./dist/DataGrid.svelte",
|
|
32
|
+
"types": "./dist/DataGrid.svelte.d.ts",
|
|
33
|
+
"import": "./dist/DataGrid.svelte"
|
|
34
|
+
},
|
|
35
|
+
"./css": "./dist/index.css"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"LICENSE"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsup src/index.ts --format esm --dts --clean --external ./DataGrid.svelte && mkdir -p dist && cp src/DataGrid.svelte dist/DataGrid.svelte && cp src/DataGrid.svelte.d.ts dist/DataGrid.svelte.d.ts && cp ../react-ui/src/index.css dist/index.css",
|
|
43
|
+
"check": "tsc --noEmit",
|
|
44
|
+
"test": "vitest run --passWithNoTests",
|
|
45
|
+
"lint": "tsc --noEmit"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@open-grid/core": "0.1.0",
|
|
49
|
+
"@open-grid/primitives": "0.1.0",
|
|
50
|
+
"@open-grid/svelte": "0.1.0",
|
|
51
|
+
"@open-grid/virtual": "0.1.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"svelte": "^4.2.20 || ^5.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"svelte": "^5.15.0",
|
|
58
|
+
"tsup": "^8.3.5",
|
|
59
|
+
"typescript": "^5.7.2",
|
|
60
|
+
"vitest": "^2.1.8"
|
|
61
|
+
},
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "git+https://github.com/Goatshave/open-grid.git",
|
|
65
|
+
"directory": "packages/svelte-ui"
|
|
66
|
+
}
|
|
67
|
+
}
|