vi-grid-builder 2.0.7 → 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.
- 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 +13 -1
- 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
|
@@ -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,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,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
|