@perspective-dev/viewer-datagrid 4.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/LICENSE.md +193 -0
- package/dist/cdn/perspective-viewer-datagrid.js +47 -0
- package/dist/cdn/perspective-viewer-datagrid.js.map +7 -0
- package/dist/css/perspective-viewer-datagrid-toolbar.css +1 -0
- package/dist/css/perspective-viewer-datagrid.css +1 -0
- package/dist/esm/perspective-viewer-datagrid.js +16 -0
- package/dist/esm/perspective-viewer-datagrid.js.map +7 -0
- package/index.d.ts +35 -0
- package/package.json +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
2
|
+
// ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
3
|
+
// ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
4
|
+
// ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
5
|
+
// ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
6
|
+
// ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
7
|
+
// ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
8
|
+
// ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
9
|
+
// ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
10
|
+
// ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
|
+
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
|
+
|
|
13
|
+
import type { IPerspectiveViewerPlugin } from "@perspective-dev/viewer";
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
interface CustomElementRegistry {
|
|
17
|
+
get(
|
|
18
|
+
tagName: "perspective-viewer-datagrid",
|
|
19
|
+
): typeof HTMLPerspectiveViewerDatagridPluginElement;
|
|
20
|
+
|
|
21
|
+
// TODO is this needed?
|
|
22
|
+
whenDefined(tagName: "perspective-viewer-datagrid"): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface HTMLPerspectiveViewerDatagridPluginElement
|
|
27
|
+
extends IPerspectiveViewerPlugin {}
|
|
28
|
+
|
|
29
|
+
export declare class HTMLPerspectiveViewerDatagridPluginElement
|
|
30
|
+
extends HTMLElement
|
|
31
|
+
implements IPerspectiveViewerPlugin
|
|
32
|
+
{
|
|
33
|
+
// Controls whether datagrid renders its children into a shadow DOM tree
|
|
34
|
+
public static renderTarget: "shadow" | "light";
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@perspective-dev/viewer-datagrid",
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Perspective datagrid plugin based on `regular-table`",
|
|
5
|
+
"unpkg": "dist/cdn/perspective-viewer-datagrid.js",
|
|
6
|
+
"jsdelivr": "dist/cdn/perspective-viewer-datagrid.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"default": "./dist/esm/perspective-viewer-datagrid.js"
|
|
11
|
+
},
|
|
12
|
+
"./dist/*": "./dist/*",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**/*",
|
|
18
|
+
"index.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/perspective-dev/perspective"
|
|
26
|
+
},
|
|
27
|
+
"author": "",
|
|
28
|
+
"license": "Apache-2.0",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@perspective-dev/client": "",
|
|
31
|
+
"@perspective-dev/viewer": "",
|
|
32
|
+
"chroma-js": ">=3 <4",
|
|
33
|
+
"regular-table": "=0.6.8"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@prospective.co/procss": "0.1.17",
|
|
37
|
+
"@perspective-dev/esbuild-plugin": "",
|
|
38
|
+
"@perspective-dev/test": "",
|
|
39
|
+
"prettier": ">=3 <4"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "node ./build.mjs",
|
|
43
|
+
"clean": "node ./clean.mjs"
|
|
44
|
+
}
|
|
45
|
+
}
|