vi-grid-builder 2.0.7 → 2.0.9
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/dist/style.css +1 -0
- package/dist/vi-grid-builder.js +5714 -0
- package/dist/vi-grid-builder.umd.cjs +565 -0
- package/package.json +17 -4
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/vi-grid-builder.iml +0 -8
- package/.idea/watcherTasks.xml +0 -4
- package/.vscode/extensions.json +0 -3
- package/ViGridBuilderPlugin.js +0 -50
- package/playground/.vscode/extensions.json +0 -3
- package/playground/README.md +0 -29
- package/playground/index.html +0 -13
- package/playground/jsconfig.json +0 -8
- package/playground/package-lock.json +0 -2524
- package/playground/package.json +0 -20
- package/playground/public/favicon.ico +0 -0
- package/playground/src/App.vue +0 -86
- package/playground/src/assets/base.css +0 -86
- package/playground/src/assets/logo.svg +0 -1
- package/playground/src/assets/main.css +0 -35
- package/playground/src/components/ActionsField.vue +0 -99
- package/playground/src/components/ClickableRow.vue +0 -68
- package/playground/src/components/ClientSideData.vue +0 -86
- package/playground/src/components/ColumnVisibility.vue +0 -85
- package/playground/src/components/CustomField.vue +0 -64
- package/playground/src/components/CustomHeader.vue +0 -85
- package/playground/src/components/FieldTypes.vue +0 -150
- package/playground/src/components/GlobalOptions.vue +0 -68
- package/playground/src/components/PaginationOptions.vue +0 -130
- package/playground/src/components/RowSelect.vue +0 -72
- package/playground/src/components/ServerSideData.vue +0 -62
- package/playground/src/components/SortableColumnServerSide.vue +0 -73
- package/playground/src/components/TableStyle.vue +0 -112
- package/playground/src/components/fields/SampleCustomField.vue +0 -24
- package/playground/src/components/icons/IconCommunity.vue +0 -7
- package/playground/src/components/icons/IconDocumentation.vue +0 -7
- package/playground/src/components/icons/IconEcosystem.vue +0 -7
- package/playground/src/components/icons/IconSupport.vue +0 -7
- package/playground/src/components/icons/IconTooling.vue +0 -19
- package/playground/src/main.js +0 -49
- package/playground/vite.config.js +0 -17
- package/src/ViGridBuilder.scss +0 -189
- package/src/ViGridBuilder.vue +0 -393
- package/src/ViGridField.scss +0 -1
- package/src/ViGridField.vue +0 -90
- package/src/ViGridHeadCell.vue +0 -32
- package/src/ViGridHeadColumnCell.vue +0 -42
- package/src/ViGridHeader.vue +0 -67
- package/src/composables/useColumns.js +0 -21
- package/src/composables/useGridActions.js +0 -32
- package/src/composables/useGridSettings.js +0 -18
- package/src/composables/usePagination.js +0 -39
- package/src/composables/useRowHelper.js +0 -40
- package/src/composables/useRowSelect.js +0 -51
- package/src/composables/useSettings.js +0 -29
- package/src/composables/useSort.js +0 -125
- package/src/fields/ViGridActions.scss +0 -2
- package/src/fields/ViGridActions.vue +0 -83
- package/src/fields/ViGridBadge.scss +0 -13
- package/src/fields/ViGridBadge.vue +0 -20
- package/src/fields/ViGridCheckbox.vue +0 -31
- package/src/fields/ViGridDate.scss +0 -3
- package/src/fields/ViGridDate.vue +0 -40
- package/src/fields/ViGridImage.scss +0 -7
- package/src/fields/ViGridImage.vue +0 -18
- package/src/fields/ViGridLink.scss +0 -3
- package/src/fields/ViGridLink.vue +0 -28
- package/src/fields/ViGridNumber.scss +0 -3
- package/src/fields/ViGridNumber.vue +0 -30
- package/src/fields/ViGridText.scss +0 -0
- package/src/fields/ViGridText.vue +0 -18
- package/src/fields/partials/ViGridKebabMenu.scss +0 -65
- package/src/fields/partials/ViGridKebabMenu.vue +0 -90
- package/src/fields/partials/ViGridSimpleActions.scss +0 -4
- package/src/fields/partials/ViGridSimpleActions.vue +0 -25
- package/src/mixins/field-mixin.js +0 -13
- package/src/settings/DateSettings.js +0 -7
- package/src/settings/GridSettings.js +0 -24
- package/vite.config.js +0 -17
- /package/{public → dist}/vite.svg +0 -0
package/package.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vi-grid-builder",
|
|
3
|
-
"main": "
|
|
4
|
-
"version": "2.0.
|
|
3
|
+
"main": "./dist/vi-grid-builder.umd.cjs",
|
|
4
|
+
"version": "2.0.9",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/vi-grid-builder.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/vi-grid-builder.js",
|
|
13
|
+
"require": "./dist/vi-grid-builderb.umd.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./style.css": "./dist/style.css"
|
|
16
|
+
},
|
|
6
17
|
"scripts": {
|
|
7
18
|
"dev": "vite",
|
|
8
19
|
"build": "vite build",
|
|
@@ -14,12 +25,14 @@
|
|
|
14
25
|
"@fortawesome/free-solid-svg-icons": "^6.7.1",
|
|
15
26
|
"@fortawesome/vue-fontawesome": "^3.0.8",
|
|
16
27
|
"date-fns": "^2.30.0",
|
|
17
|
-
"vi-pagination": "^1.0.1"
|
|
18
|
-
"vue": "^3.3.4"
|
|
28
|
+
"vi-pagination": "^1.0.1"
|
|
19
29
|
},
|
|
20
30
|
"devDependencies": {
|
|
21
31
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
22
32
|
"sass": "^1.66.1",
|
|
23
33
|
"vite": "^4.4.5"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"vue": "^3.5.13"
|
|
24
37
|
}
|
|
25
38
|
}
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/vi-grid-builder.iml" filepath="$PROJECT_DIR$/.idea/vi-grid-builder.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
</module>
|
package/.idea/watcherTasks.xml
DELETED
package/.vscode/extensions.json
DELETED
package/ViGridBuilderPlugin.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import ViGridBuilder from "./src/ViGridBuilder.vue"
|
|
2
|
-
import DateSettings from "./src/settings/DateSettings.js"
|
|
3
|
-
import ViPaginationPlugin from 'vi-pagination'
|
|
4
|
-
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
5
|
-
|
|
6
|
-
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
7
|
-
import {globalGridSettings} from "./src/composables/useSettings.js";
|
|
8
|
-
/* import specific icons */
|
|
9
|
-
import { faChevronDown, faChevronUp, faEllipsisH} from '@fortawesome/free-solid-svg-icons'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
install(app, options ={}) {
|
|
14
|
-
library.add(faChevronDown, faChevronUp,faEllipsisH)
|
|
15
|
-
|
|
16
|
-
const {fieldComponents, dateFormats, style, ...restGridSettings} = options
|
|
17
|
-
|
|
18
|
-
app.provide('ViDateSettings', {
|
|
19
|
-
...DateSettings,
|
|
20
|
-
format:{
|
|
21
|
-
...DateSettings.format,
|
|
22
|
-
...dateFormats
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
// // Set CSS variables in :root
|
|
27
|
-
if (style) {
|
|
28
|
-
for (const [key, value] of Object.entries(style)) {
|
|
29
|
-
document.documentElement.style.setProperty(`--vi-grid-${key}`, value);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
app.use(ViPaginationPlugin, {}, style);
|
|
34
|
-
app.component('FontAwesomeIcon',FontAwesomeIcon);
|
|
35
|
-
|
|
36
|
-
globalGridSettings.value = restGridSettings;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const ViGridBuilderExtended = {
|
|
40
|
-
...ViGridBuilder,
|
|
41
|
-
components:{
|
|
42
|
-
...ViGridBuilder.components,
|
|
43
|
-
...options.fieldComponents ?? {},
|
|
44
|
-
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
app.component('ViGridBuilder', ViGridBuilderExtended);
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
};
|
package/playground/README.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# vi-grid-builder-playground
|
|
2
|
-
|
|
3
|
-
This template should help get you started developing with Vue 3 in Vite.
|
|
4
|
-
|
|
5
|
-
## Recommended IDE Setup
|
|
6
|
-
|
|
7
|
-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
8
|
-
|
|
9
|
-
## Customize configuration
|
|
10
|
-
|
|
11
|
-
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
12
|
-
|
|
13
|
-
## Project Setup
|
|
14
|
-
|
|
15
|
-
```sh
|
|
16
|
-
npm install
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Compile and Hot-Reload for Development
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
npm run dev
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### Compile and Minify for Production
|
|
26
|
-
|
|
27
|
-
```sh
|
|
28
|
-
npm run build
|
|
29
|
-
```
|
package/playground/index.html
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<link rel="icon" href="/favicon.ico">
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
-
<title>Vite App</title>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="app"></div>
|
|
11
|
-
<script type="module" src="/src/main.js"></script>
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|