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.
Files changed (83) 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 +17 -4
  5. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  6. package/.idea/misc.xml +0 -6
  7. package/.idea/modules.xml +0 -8
  8. package/.idea/vcs.xml +0 -6
  9. package/.idea/vi-grid-builder.iml +0 -8
  10. package/.idea/watcherTasks.xml +0 -4
  11. package/.vscode/extensions.json +0 -3
  12. package/ViGridBuilderPlugin.js +0 -50
  13. package/playground/.vscode/extensions.json +0 -3
  14. package/playground/README.md +0 -29
  15. package/playground/index.html +0 -13
  16. package/playground/jsconfig.json +0 -8
  17. package/playground/package-lock.json +0 -2524
  18. package/playground/package.json +0 -20
  19. package/playground/public/favicon.ico +0 -0
  20. package/playground/src/App.vue +0 -86
  21. package/playground/src/assets/base.css +0 -86
  22. package/playground/src/assets/logo.svg +0 -1
  23. package/playground/src/assets/main.css +0 -35
  24. package/playground/src/components/ActionsField.vue +0 -99
  25. package/playground/src/components/ClickableRow.vue +0 -68
  26. package/playground/src/components/ClientSideData.vue +0 -86
  27. package/playground/src/components/ColumnVisibility.vue +0 -85
  28. package/playground/src/components/CustomField.vue +0 -64
  29. package/playground/src/components/CustomHeader.vue +0 -85
  30. package/playground/src/components/FieldTypes.vue +0 -150
  31. package/playground/src/components/GlobalOptions.vue +0 -68
  32. package/playground/src/components/PaginationOptions.vue +0 -130
  33. package/playground/src/components/RowSelect.vue +0 -72
  34. package/playground/src/components/ServerSideData.vue +0 -62
  35. package/playground/src/components/SortableColumnServerSide.vue +0 -73
  36. package/playground/src/components/TableStyle.vue +0 -112
  37. package/playground/src/components/fields/SampleCustomField.vue +0 -24
  38. package/playground/src/components/icons/IconCommunity.vue +0 -7
  39. package/playground/src/components/icons/IconDocumentation.vue +0 -7
  40. package/playground/src/components/icons/IconEcosystem.vue +0 -7
  41. package/playground/src/components/icons/IconSupport.vue +0 -7
  42. package/playground/src/components/icons/IconTooling.vue +0 -19
  43. package/playground/src/main.js +0 -49
  44. package/playground/vite.config.js +0 -17
  45. package/src/ViGridBuilder.scss +0 -189
  46. package/src/ViGridBuilder.vue +0 -393
  47. package/src/ViGridField.scss +0 -1
  48. package/src/ViGridField.vue +0 -90
  49. package/src/ViGridHeadCell.vue +0 -32
  50. package/src/ViGridHeadColumnCell.vue +0 -42
  51. package/src/ViGridHeader.vue +0 -67
  52. package/src/composables/useColumns.js +0 -21
  53. package/src/composables/useGridActions.js +0 -32
  54. package/src/composables/useGridSettings.js +0 -18
  55. package/src/composables/usePagination.js +0 -39
  56. package/src/composables/useRowHelper.js +0 -40
  57. package/src/composables/useRowSelect.js +0 -51
  58. package/src/composables/useSettings.js +0 -29
  59. package/src/composables/useSort.js +0 -125
  60. package/src/fields/ViGridActions.scss +0 -2
  61. package/src/fields/ViGridActions.vue +0 -83
  62. package/src/fields/ViGridBadge.scss +0 -13
  63. package/src/fields/ViGridBadge.vue +0 -20
  64. package/src/fields/ViGridCheckbox.vue +0 -31
  65. package/src/fields/ViGridDate.scss +0 -3
  66. package/src/fields/ViGridDate.vue +0 -40
  67. package/src/fields/ViGridImage.scss +0 -7
  68. package/src/fields/ViGridImage.vue +0 -18
  69. package/src/fields/ViGridLink.scss +0 -3
  70. package/src/fields/ViGridLink.vue +0 -28
  71. package/src/fields/ViGridNumber.scss +0 -3
  72. package/src/fields/ViGridNumber.vue +0 -30
  73. package/src/fields/ViGridText.scss +0 -0
  74. package/src/fields/ViGridText.vue +0 -18
  75. package/src/fields/partials/ViGridKebabMenu.scss +0 -65
  76. package/src/fields/partials/ViGridKebabMenu.vue +0 -90
  77. package/src/fields/partials/ViGridSimpleActions.scss +0 -4
  78. package/src/fields/partials/ViGridSimpleActions.vue +0 -25
  79. package/src/mixins/field-mixin.js +0 -13
  80. package/src/settings/DateSettings.js +0 -7
  81. package/src/settings/GridSettings.js +0 -24
  82. package/vite.config.js +0 -17
  83. /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": "ViGridBuilderPlugin",
4
- "version": "2.0.7",
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
  }
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
4
- </state>
5
- </component>
package/.idea/misc.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="ES6" />
5
- </component>
6
- </project>
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,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
@@ -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>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectTasksOptions" suppressed-tasks="SCSS" />
4
- </project>
@@ -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
- }