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
@@ -1,90 +0,0 @@
1
- <template>
2
- <div class="vi-grid-kebab-menu" ref="kebabMenu" @click.stop="$emit('toggleMenu')">
3
- <font-awesome-icon :icon="['fas', 'ellipsis']" />
4
- <div class="actions-menu" v-if="showMenu">
5
- <div v-for="action in actions" :key="action.action" @click="$ev => $emit('action-clicked',action.action)"
6
- class="actions-menu-item">
7
- {{ action.name }}
8
- </div>
9
- </div>
10
- </div>
11
- </template>
12
-
13
- <script>
14
-
15
- import {FontAwesomeIcon} from "@fortawesome/vue-fontawesome";
16
-
17
- export default {
18
- name: 'ViGridKebabMenu',
19
- components: {FontAwesomeIcon},
20
-
21
- props: {
22
- actions: {
23
- type: Array
24
- },
25
- rowKey: {
26
- type: String
27
- },
28
- row: {
29
- type: Object
30
- },
31
-
32
- showMenu: {
33
- type: Boolean,
34
- }
35
- },
36
-
37
- // setup() {
38
- // // const showMenu = ref(false);
39
- // const kebabMenu = ref(null)
40
- //
41
- // const {toggleRowMenu} = useGridActions(props)
42
- //
43
- //
44
- //
45
- // return {
46
- // // showMenu,
47
- // kebabMenu,
48
- // // toggleMenu
49
- // }
50
- // }
51
- }
52
- </script>
53
-
54
- <style lang="scss">
55
- @import "ViGridKebabMenu";
56
-
57
-
58
- .actions-menu-button {
59
- cursor: pointer;
60
- transform: scale(var(--ggs, 1));
61
- }
62
-
63
- .actions-menu-button,
64
- .actions-menu-button::after,
65
- .actions-menu-button::before {
66
- box-sizing: border-box;
67
- position: relative;
68
- display: block;
69
- width: 4px;
70
- height: 4px;
71
- background: currentColor;
72
- border-radius: 100%;
73
- }
74
-
75
- .actions-menu-button::after,
76
- .actions-menu-button::before {
77
- content: "";
78
- position: absolute;
79
- top: 0;
80
- }
81
-
82
- .actions-menu-button::after {
83
- left: -6px;
84
- }
85
-
86
- .actions-menu-button::before {
87
- right: -6px;
88
- }
89
-
90
- </style>
@@ -1,4 +0,0 @@
1
- .vi-grid-builder-actions{
2
- display: flex;
3
- color: black;
4
- }
@@ -1,25 +0,0 @@
1
- <template>
2
- <div class="vi-grid-builder-actions">
3
- <div v-for="(action, index) in actions" :key="index">
4
- <button
5
- @click.stop="$emit('action-clicked',action.action)"
6
- >
7
- {{action.name}}
8
- </button>
9
- </div>
10
- </div>
11
- </template>
12
- <script>
13
- export default {
14
- name: "ViGridSimpleActions",
15
- props: {
16
- actions: {
17
- type: Array
18
- },
19
- },
20
-
21
- }
22
- </script>
23
- <style lang="scss">
24
- @import "ViGridSimpleActions";
25
- </style>
@@ -1,13 +0,0 @@
1
- export default {
2
- props: {
3
- value: {},
4
- field: {
5
- type: Object,
6
- required: true
7
- },
8
- row: {
9
- type: Object,
10
- required: true
11
- },
12
- }
13
- }
@@ -1,7 +0,0 @@
1
- export default {
2
- format:{
3
- date:"yyyy-MM-dd",
4
- dateTime:"yyyy-MM-dd HH:mm:ss",
5
- time:"HH:mm:ss",
6
- }
7
- }
@@ -1,24 +0,0 @@
1
- export default {
2
- align: 'center',
3
- bordered: false,
4
- stripped: true,
5
- disablePagination: false,
6
- noDataLabel: 'No data',
7
- noCellDataLabel: '/',
8
- compactPagination: true,
9
- rowsPerPageOptions: [{
10
- label: 5,
11
- value: 5,
12
- }, {
13
- label: 10,
14
- value: 10,
15
- }, {
16
- label: 15,
17
- value: 15
18
- }, {
19
- label: 20,
20
- value: 20
21
- }],
22
- rowsPerPage: 10,
23
- defaultSlots:{}
24
- }
package/vite.config.js DELETED
@@ -1,17 +0,0 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
-
3
- import { defineConfig } from 'vite'
4
- import vue from '@vitejs/plugin-vue'
5
-
6
- // https://vite.dev/config/
7
- export default defineConfig({
8
- plugins: [
9
- vue(),
10
-
11
- ],
12
- resolve: {
13
- alias: {
14
- '@': fileURLToPath(new URL('./src', import.meta.url))
15
- },
16
- },
17
- })
File without changes