vi-grid-builder 2.0.6 → 2.0.8

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.
Files changed (77) hide show
  1. package/dist/style.css +1 -0
  2. package/dist/vi-grid-builder.js +5714 -0
  3. package/dist/vi-grid-builder.umd.cjs +565 -0
  4. package/package.json +13 -1
  5. package/.vscode/extensions.json +0 -3
  6. package/ViGridBuilderPlugin.js +0 -50
  7. package/playground/.vscode/extensions.json +0 -3
  8. package/playground/README.md +0 -29
  9. package/playground/index.html +0 -13
  10. package/playground/jsconfig.json +0 -8
  11. package/playground/package-lock.json +0 -2524
  12. package/playground/package.json +0 -20
  13. package/playground/public/favicon.ico +0 -0
  14. package/playground/src/App.vue +0 -86
  15. package/playground/src/assets/base.css +0 -86
  16. package/playground/src/assets/logo.svg +0 -1
  17. package/playground/src/assets/main.css +0 -35
  18. package/playground/src/components/ActionsField.vue +0 -99
  19. package/playground/src/components/ClickableRow.vue +0 -68
  20. package/playground/src/components/ClientSideData.vue +0 -86
  21. package/playground/src/components/ColumnVisibility.vue +0 -85
  22. package/playground/src/components/CustomField.vue +0 -64
  23. package/playground/src/components/CustomHeader.vue +0 -85
  24. package/playground/src/components/FieldTypes.vue +0 -150
  25. package/playground/src/components/GlobalOptions.vue +0 -68
  26. package/playground/src/components/PaginationOptions.vue +0 -130
  27. package/playground/src/components/RowSelect.vue +0 -72
  28. package/playground/src/components/ServerSideData.vue +0 -62
  29. package/playground/src/components/SortableColumnServerSide.vue +0 -73
  30. package/playground/src/components/TableStyle.vue +0 -112
  31. package/playground/src/components/fields/SampleCustomField.vue +0 -24
  32. package/playground/src/components/icons/IconCommunity.vue +0 -7
  33. package/playground/src/components/icons/IconDocumentation.vue +0 -7
  34. package/playground/src/components/icons/IconEcosystem.vue +0 -7
  35. package/playground/src/components/icons/IconSupport.vue +0 -7
  36. package/playground/src/components/icons/IconTooling.vue +0 -19
  37. package/playground/src/main.js +0 -49
  38. package/playground/vite.config.js +0 -17
  39. package/src/ViGridBuilder.scss +0 -189
  40. package/src/ViGridBuilder.vue +0 -393
  41. package/src/ViGridField.scss +0 -1
  42. package/src/ViGridField.vue +0 -90
  43. package/src/ViGridHeadCell.vue +0 -32
  44. package/src/ViGridHeadColumnCell.vue +0 -42
  45. package/src/ViGridHeader.vue +0 -67
  46. package/src/composables/useColumns.js +0 -21
  47. package/src/composables/useGridActions.js +0 -32
  48. package/src/composables/useGridSettings.js +0 -18
  49. package/src/composables/usePagination.js +0 -39
  50. package/src/composables/useRowHelper.js +0 -40
  51. package/src/composables/useRowSelect.js +0 -51
  52. package/src/composables/useSettings.js +0 -29
  53. package/src/composables/useSort.js +0 -125
  54. package/src/fields/ViGridActions.scss +0 -2
  55. package/src/fields/ViGridActions.vue +0 -83
  56. package/src/fields/ViGridBadge.scss +0 -13
  57. package/src/fields/ViGridBadge.vue +0 -20
  58. package/src/fields/ViGridCheckbox.vue +0 -31
  59. package/src/fields/ViGridDate.scss +0 -3
  60. package/src/fields/ViGridDate.vue +0 -40
  61. package/src/fields/ViGridImage.scss +0 -7
  62. package/src/fields/ViGridImage.vue +0 -18
  63. package/src/fields/ViGridLink.scss +0 -3
  64. package/src/fields/ViGridLink.vue +0 -28
  65. package/src/fields/ViGridNumber.scss +0 -3
  66. package/src/fields/ViGridNumber.vue +0 -30
  67. package/src/fields/ViGridText.scss +0 -0
  68. package/src/fields/ViGridText.vue +0 -18
  69. package/src/fields/partials/ViGridKebabMenu.scss +0 -65
  70. package/src/fields/partials/ViGridKebabMenu.vue +0 -90
  71. package/src/fields/partials/ViGridSimpleActions.scss +0 -4
  72. package/src/fields/partials/ViGridSimpleActions.vue +0 -25
  73. package/src/mixins/field-mixin.js +0 -13
  74. package/src/settings/DateSettings.js +0 -7
  75. package/src/settings/GridSettings.js +0 -24
  76. package/vite.config.js +0 -17
  77. /package/{public → dist}/vite.svg +0 -0
package/package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "name": "vi-grid-builder",
3
3
  "main": "ViGridBuilderPlugin",
4
- "version": "2.0.6",
4
+ "version": "2.0.8",
5
5
  "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "./dist/vi-grid-builder.umd.cjs",
10
+ "module": "./dist/vi-grid-builder.js",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/vi-grid-builder.js",
14
+ "require": "./dist/vi-grid-builderb.umd.cjs"
15
+ },
16
+ "./style.css": "./dist/style.css"
17
+ },
6
18
  "scripts": {
7
19
  "dev": "vite",
8
20
  "build": "vite build",
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3
- }
@@ -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
- };
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar"]
3
- }
@@ -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
- ```
@@ -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>
@@ -1,8 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "paths": {
4
- "@/*": ["./src/*"]
5
- }
6
- },
7
- "exclude": ["node_modules", "dist"]
8
- }