@guiexpert/vue3-table 3.0.2 → 3.0.4

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/.babelrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "presets": [
3
+ [
4
+ "@babel/env"
5
+ ]
6
+ ]
7
+ }
package/.eslintrc.js ADDED
@@ -0,0 +1,79 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true
5
+ },
6
+ extends: [
7
+ "plugin:vue/vue3-recommended",
8
+ "plugin:@intlify/vue-i18n/recommended",
9
+ "@vue/typescript/recommended",
10
+ "prettier"
11
+ ],
12
+ plugins: ["import"],
13
+ parser: "vue-eslint-parser",
14
+ parserOptions: { ecmaVersion: 2020 },
15
+ ignorePatterns: ["node_modules/"],
16
+ rules: {
17
+ "no-console": "off",
18
+ "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
19
+ "space-before-function-paren": [
20
+ "error",
21
+ { anonymous: "never", named: "never", asyncArrow: "always" }
22
+ ],
23
+ "padded-blocks": "off",
24
+ "no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
25
+ "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
26
+ "no-multiple-empty-lines": ["error", { max: 1 }],
27
+ "keyword-spacing": ["error", { after: true }],
28
+ "max-len": ["error", { code: 100, ignorePattern: "^\\s*<path" }],
29
+ "no-param-reassign": [2, { props: false }],
30
+ "object-curly-newline": [
31
+ "error",
32
+ {
33
+ consistent: true,
34
+ multiline: true
35
+ }
36
+ ],
37
+ "no-extra-boolean-cast": "error",
38
+ "import/extensions": [
39
+ "error",
40
+ {
41
+ ts: "never",
42
+ js: "never",
43
+ vue: "always",
44
+ json: "always",
45
+ png: "always",
46
+ jpg: "always",
47
+ mp3: "always",
48
+ mp4: "always"
49
+ }
50
+ ],
51
+ indent: ["error", 2, { SwitchCase: 0 }],
52
+ "vue/attribute-hyphenation": ["error", "never"],
53
+ // TODO -- figure out how to get this to work with prettier
54
+ // 'vue/html-indent': ['error', 2, { baseIndent: 0 }],
55
+ "vue/singleline-html-element-content-newline": [
56
+ "error",
57
+ {
58
+ ignoreWhenNoAttributes: true,
59
+ ignoreWhenEmpty: true
60
+ }
61
+ ],
62
+ "vue/max-attributes-per-line": [
63
+ "error",
64
+ {
65
+ singleline: 3
66
+ }
67
+ ],
68
+ "vue/no-v-html": "off",
69
+ "@intlify/vue-i18n/no-v-html": "off",
70
+ "@intlify/vue-i18n/no-unused-keys": [
71
+ "error",
72
+ {
73
+ src: "./src",
74
+ extensions: [".js", ".vue"]
75
+ }
76
+ ],
77
+ "@intlify/vue-i18n/no-raw-text": "error"
78
+ }
79
+ };
@@ -0,0 +1,16 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // Generated by unplugin-vue-components
5
+ // Read more: https://github.com/vuejs/core/pull/3399
6
+ import '@vue/runtime-core'
7
+
8
+ export {}
9
+
10
+ declare module '@vue/runtime-core' {
11
+ export interface GlobalComponents {
12
+ GuiexpertTable: typeof import('./src/lib/GuiexpertTable.vue')['default']
13
+ RouterLink: typeof import('vue-router')['RouterLink']
14
+ RouterView: typeof import('vue-router')['RouterView']
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "name": "Use fixtures to represent data"
3
+ }
@@ -0,0 +1,10 @@
1
+ import { devServer } from "@cypress/vite-dev-server";
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
+ module.exports = (on: any, config: any) => {
5
+ on("dev-server:start", (options: Cypress.DevServerConfig) =>
6
+ devServer(options)
7
+ );
8
+
9
+ return config;
10
+ };
@@ -0,0 +1 @@
1
+ import "@cypress/code-coverage/support";
package/dist/README.md ADDED
@@ -0,0 +1,104 @@
1
+
2
+ # guiexpert-table (Vue)
3
+
4
+ This is the vue component of the GuiExpert Table Project.
5
+
6
+ ## Become a master at creating web applications with large tables
7
+
8
+ This is the UI-agnostic table component for your next web app. 😊
9
+
10
+ <img src="https://raw.githubusercontent.com/guiexperttable/ge-table/main/apps/table-website/src/assets/screens/heatmap.png" width="50%">
11
+
12
+ ### Features
13
+ - Handle large datasets easily
14
+ - Excellent performance for large tables by vertical and horizontal virtual scrolling
15
+ - Fully-featured (advanced sorting and filtering)
16
+ - Highly customizable orderData grid
17
+ - Outstanding performance
18
+ - No third-party dependencies
19
+ - UI-agnostic
20
+ - Column Interactions (resize, reorder)
21
+ - Sorting Rows
22
+ - Row, Column, and Range Selection
23
+ - Single and Multi Selection
24
+ - UI-agnostic
25
+ - Row and Column Spanning
26
+ - Fixed Columns (Left and Right)
27
+ - Tree table (Hierarchical View)
28
+ - Accessibility support: Keyboard Shortcuts
29
+ - Custom Filtering
30
+ - In-place Cell Editing
31
+ - Userdefined Key and Mouse Events
32
+ - Customizable Look & Feel (via CSS variables)
33
+ - Row sorting
34
+ - Column Reordering (Drag and Drop)
35
+ - State Persistence (Row Sorting, Column Order, Selection)
36
+ - Customizable Cell Contents via Renderer for Header, Body and Footer
37
+ - Full control over the HTML structure and style
38
+
39
+
40
+ ## Links
41
+
42
+ - [Demos](https://gui.expert/demos)
43
+ - [Documentation](https://gui.expert/doc)
44
+ - [API](https://gui.expert/api)
45
+
46
+ ## Get Started
47
+
48
+ Add the following two NPM packages to your existing react project (run this in your project root directory):
49
+
50
+ ```
51
+ npm install --save @guiexpert/table @guiexpert/vue3-table
52
+ ```
53
+
54
+ Add guiexpert-table component to a template:
55
+
56
+ ```
57
+ <guiexpert-table
58
+ :tableModel="tableModel"
59
+ @tableReady="onTableReady($event)"
60
+ ></guiexpert-table>
61
+ ```
62
+
63
+ Import the following classes in your component:
64
+ ```
65
+ <script lang="ts" setup>
66
+
67
+ import { GuiexpertTable } from "@guiexpert/vue3-table";
68
+ import {
69
+ GeMouseEvent,
70
+ TableApi
71
+ TableFactory,
72
+ TableModelIf,
73
+ TableOptions,
74
+ TableOptionsIf
75
+ } from "@guiexpert/table";
76
+ ```
77
+
78
+
79
+ Add a tableModel property and a onTableReady method to the component:
80
+
81
+ ```
82
+ const headerData = [['Column 1', 'Column 2', 'Column 3']] // array of array!
83
+
84
+ const bodyData = []
85
+ for (let i = 0; i < 100; i++) {
86
+ bodyData.push(['This is a very', 'simple', 'demo.'])
87
+ }
88
+
89
+ const tableModel: TableModelIf = TableFactory.createTableModel({
90
+ headerData,
91
+ bodyData,
92
+ overridingColumnWidth: 110,
93
+ });
94
+
95
+ function onTableReady(api: TableApi) {
96
+ console.info("onTableReady API:", api);
97
+ }
98
+ ```
99
+
100
+ There are numerous possibilities to create table models.
101
+ Please refer to the [Documentation](https://gui.expert/doc) for further information or the [Demo](https://gui.expert/demos) section for examples.
102
+
103
+
104
+