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.
- 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/.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,112 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="example-container">
|
|
3
|
-
|
|
4
|
-
<h3 id="custom-header">Table style</h3>
|
|
5
|
-
<div class="example-body">
|
|
6
|
-
|
|
7
|
-
<div style="display: flex; justify-content: space-between; padding: 20px 0">
|
|
8
|
-
|
|
9
|
-
<div>
|
|
10
|
-
<label>Bordered</label> <input type="checkbox" v-model="bordered">
|
|
11
|
-
</div>
|
|
12
|
-
<div>
|
|
13
|
-
<label>Stripped</label> <input type="checkbox" v-model="stripped">
|
|
14
|
-
</div>
|
|
15
|
-
<div>
|
|
16
|
-
<label>Compact pagination</label> <input type="checkbox" v-model="compactPagination">
|
|
17
|
-
</div>
|
|
18
|
-
<div>
|
|
19
|
-
<label>Align content</label>
|
|
20
|
-
<select v-model="alignment">
|
|
21
|
-
<option value="left">Left</option>
|
|
22
|
-
<option value="center">Center</option>
|
|
23
|
-
<option value="right">Right</option>
|
|
24
|
-
</select>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<!-- :align="alignment" default aginment for table-->
|
|
29
|
-
<vi-grid-builder
|
|
30
|
-
:bordered="bordered"
|
|
31
|
-
:stripped="stripped"
|
|
32
|
-
:compact-pagination="compactPagination"
|
|
33
|
-
v-bind="config"
|
|
34
|
-
:rows="rows"
|
|
35
|
-
:server-mode="false"
|
|
36
|
-
:loading="loading"
|
|
37
|
-
selectable
|
|
38
|
-
:align="alignment"
|
|
39
|
-
|
|
40
|
-
>
|
|
41
|
-
<template #vi-header-cell-id="props">
|
|
42
|
-
<div> Custom header for column {{ props.column.name }}</div>
|
|
43
|
-
</template>
|
|
44
|
-
<template #vi-header-cell-title="props">
|
|
45
|
-
<div> Custom header for column {{ props.column.name }}</div>
|
|
46
|
-
</template>
|
|
47
|
-
</vi-grid-builder>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</template>
|
|
51
|
-
|
|
52
|
-
<script>
|
|
53
|
-
import axios from "axios";
|
|
54
|
-
|
|
55
|
-
export default {
|
|
56
|
-
|
|
57
|
-
data: () => ({
|
|
58
|
-
|
|
59
|
-
bordered: false,
|
|
60
|
-
stripped: false,
|
|
61
|
-
compactPagination: false,
|
|
62
|
-
loading: true,
|
|
63
|
-
alignment: 'left',
|
|
64
|
-
rows: [],
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
computed: {
|
|
68
|
-
|
|
69
|
-
config() {
|
|
70
|
-
return {
|
|
71
|
-
rowKey: 'id',
|
|
72
|
-
columns: [{
|
|
73
|
-
label: 'ID',
|
|
74
|
-
name: 'id',
|
|
75
|
-
align: this.alignment,
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: 'Title',
|
|
80
|
-
name: 'title',
|
|
81
|
-
align: this.alignment,
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
|
|
85
|
-
pagination: {page: 1, rowsPerPage: 10}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
async mounted() {
|
|
90
|
-
return axios.get('https://jsonplaceholder.typicode.com/posts')
|
|
91
|
-
.then(response => {
|
|
92
|
-
let that = this;
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
that.rows = response.data.slice(0, 5);
|
|
95
|
-
that.loading = false;
|
|
96
|
-
}, 3000)
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
.catch(error => {
|
|
100
|
-
// Handle any errors
|
|
101
|
-
console.error('Error fetching data:', error);
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</script>
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
<style scoped lang="scss">
|
|
111
|
-
|
|
112
|
-
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div> Custom field for {{field.name}} wiht value {{value}}</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
props: {
|
|
9
|
-
field: {
|
|
10
|
-
type: Object,
|
|
11
|
-
},
|
|
12
|
-
value: {},
|
|
13
|
-
originalValue: {},
|
|
14
|
-
row: {
|
|
15
|
-
type: Object,
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style scoped lang="scss">
|
|
23
|
-
|
|
24
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
|
|
3
|
-
<path
|
|
4
|
-
d="M15 4a1 1 0 1 0 0 2V4zm0 11v-1a1 1 0 0 0-1 1h1zm0 4l-.707.707A1 1 0 0 0 16 19h-1zm-4-4l.707-.707A1 1 0 0 0 11 14v1zm-4.707-1.293a1 1 0 0 0-1.414 1.414l1.414-1.414zm-.707.707l-.707-.707.707.707zM9 11v-1a1 1 0 0 0-.707.293L9 11zm-4 0h1a1 1 0 0 0-1-1v1zm0 4H4a1 1 0 0 0 1.707.707L5 15zm10-9h2V4h-2v2zm2 0a1 1 0 0 1 1 1h2a3 3 0 0 0-3-3v2zm1 1v6h2V7h-2zm0 6a1 1 0 0 1-1 1v2a3 3 0 0 0 3-3h-2zm-1 1h-2v2h2v-2zm-3 1v4h2v-4h-2zm1.707 3.293l-4-4-1.414 1.414 4 4 1.414-1.414zM11 14H7v2h4v-2zm-4 0c-.276 0-.525-.111-.707-.293l-1.414 1.414C5.42 15.663 6.172 16 7 16v-2zm-.707 1.121l3.414-3.414-1.414-1.414-3.414 3.414 1.414 1.414zM9 12h4v-2H9v2zm4 0a3 3 0 0 0 3-3h-2a1 1 0 0 1-1 1v2zm3-3V3h-2v6h2zm0-6a3 3 0 0 0-3-3v2a1 1 0 0 1 1 1h2zm-3-3H3v2h10V0zM3 0a3 3 0 0 0-3 3h2a1 1 0 0 1 1-1V0zM0 3v6h2V3H0zm0 6a3 3 0 0 0 3 3v-2a1 1 0 0 1-1-1H0zm3 3h2v-2H3v2zm1-1v4h2v-4H4zm1.707 4.707l.586-.586-1.414-1.414-.586.586 1.414 1.414z"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
7
|
-
</template>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" fill="currentColor">
|
|
3
|
-
<path
|
|
4
|
-
d="M11 2.253a1 1 0 1 0-2 0h2zm-2 13a1 1 0 1 0 2 0H9zm.447-12.167a1 1 0 1 0 1.107-1.666L9.447 3.086zM1 2.253L.447 1.42A1 1 0 0 0 0 2.253h1zm0 13H0a1 1 0 0 0 1.553.833L1 15.253zm8.447.833a1 1 0 1 0 1.107-1.666l-1.107 1.666zm0-14.666a1 1 0 1 0 1.107 1.666L9.447 1.42zM19 2.253h1a1 1 0 0 0-.447-.833L19 2.253zm0 13l-.553.833A1 1 0 0 0 20 15.253h-1zm-9.553-.833a1 1 0 1 0 1.107 1.666L9.447 14.42zM9 2.253v13h2v-13H9zm1.553-.833C9.203.523 7.42 0 5.5 0v2c1.572 0 2.961.431 3.947 1.086l1.107-1.666zM5.5 0C3.58 0 1.797.523.447 1.42l1.107 1.666C2.539 2.431 3.928 2 5.5 2V0zM0 2.253v13h2v-13H0zm1.553 13.833C2.539 15.431 3.928 15 5.5 15v-2c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM5.5 15c1.572 0 2.961.431 3.947 1.086l1.107-1.666C9.203 13.523 7.42 13 5.5 13v2zm5.053-11.914C11.539 2.431 12.928 2 14.5 2V0c-1.92 0-3.703.523-5.053 1.42l1.107 1.666zM14.5 2c1.573 0 2.961.431 3.947 1.086l1.107-1.666C18.203.523 16.421 0 14.5 0v2zm3.5.253v13h2v-13h-2zm1.553 12.167C18.203 13.523 16.421 13 14.5 13v2c1.573 0 2.961.431 3.947 1.086l1.107-1.666zM14.5 13c-1.92 0-3.703.523-5.053 1.42l1.107 1.666C11.539 15.431 12.928 15 14.5 15v-2z"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
7
|
-
</template>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" fill="currentColor">
|
|
3
|
-
<path
|
|
4
|
-
d="M11.447 8.894a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm0 1.789a1 1 0 1 0 .894-1.789l-.894 1.789zM7.447 7.106a1 1 0 1 0-.894 1.789l.894-1.789zM10 9a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0H8zm9.447-5.606a1 1 0 1 0-.894-1.789l.894 1.789zm-2.894-.789a1 1 0 1 0 .894 1.789l-.894-1.789zm2 .789a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zM18 5a1 1 0 1 0-2 0h2zm-2 2.5a1 1 0 1 0 2 0h-2zm-5.447-4.606a1 1 0 1 0 .894-1.789l-.894 1.789zM9 1l.447-.894a1 1 0 0 0-.894 0L9 1zm-2.447.106a1 1 0 1 0 .894 1.789l-.894-1.789zm-6 3a1 1 0 1 0 .894 1.789L.553 4.106zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zm-2-.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 2.789a1 1 0 1 0 .894-1.789l-.894 1.789zM2 5a1 1 0 1 0-2 0h2zM0 7.5a1 1 0 1 0 2 0H0zm8.553 12.394a1 1 0 1 0 .894-1.789l-.894 1.789zm-1.106-2.789a1 1 0 1 0-.894 1.789l.894-1.789zm1.106 1a1 1 0 1 0 .894 1.789l-.894-1.789zm2.894.789a1 1 0 1 0-.894-1.789l.894 1.789zM8 19a1 1 0 1 0 2 0H8zm2-2.5a1 1 0 1 0-2 0h2zm-7.447.394a1 1 0 1 0 .894-1.789l-.894 1.789zM1 15H0a1 1 0 0 0 .553.894L1 15zm1-2.5a1 1 0 1 0-2 0h2zm12.553 2.606a1 1 0 1 0 .894 1.789l-.894-1.789zM17 15l.447.894A1 1 0 0 0 18 15h-1zm1-2.5a1 1 0 1 0-2 0h2zm-7.447-5.394l-2 1 .894 1.789 2-1-.894-1.789zm-1.106 1l-2-1-.894 1.789 2 1 .894-1.789zM8 9v2.5h2V9H8zm8.553-4.894l-2 1 .894 1.789 2-1-.894-1.789zm.894 0l-2-1-.894 1.789 2 1 .894-1.789zM16 5v2.5h2V5h-2zm-4.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zm-2.894-1l-2 1 .894 1.789 2-1L8.553.106zM1.447 5.894l2-1-.894-1.789-2 1 .894 1.789zm-.894 0l2 1 .894-1.789-2-1-.894 1.789zM0 5v2.5h2V5H0zm9.447 13.106l-2-1-.894 1.789 2 1 .894-1.789zm0 1.789l2-1-.894-1.789-2 1 .894 1.789zM10 19v-2.5H8V19h2zm-6.553-3.894l-2-1-.894 1.789 2 1 .894-1.789zM2 15v-2.5H0V15h2zm13.447 1.894l2-1-.894-1.789-2 1 .894 1.789zM18 15v-2.5h-2V15h2z"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
7
|
-
</template>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor">
|
|
3
|
-
<path
|
|
4
|
-
d="M10 3.22l-.61-.6a5.5 5.5 0 0 0-7.666.105 5.5 5.5 0 0 0-.114 7.665L10 18.78l8.39-8.4a5.5 5.5 0 0 0-.114-7.665 5.5 5.5 0 0 0-7.666-.105l-.61.61z"
|
|
5
|
-
/>
|
|
6
|
-
</svg>
|
|
7
|
-
</template>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
|
|
2
|
-
<template>
|
|
3
|
-
<svg
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
6
|
-
aria-hidden="true"
|
|
7
|
-
role="img"
|
|
8
|
-
class="iconify iconify--mdi"
|
|
9
|
-
width="24"
|
|
10
|
-
height="24"
|
|
11
|
-
preserveAspectRatio="xMidYMid meet"
|
|
12
|
-
viewBox="0 0 24 24"
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
|
|
16
|
-
fill="currentColor"
|
|
17
|
-
></path>
|
|
18
|
-
</svg>
|
|
19
|
-
</template>
|
package/playground/src/main.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import './assets/main.css'
|
|
2
|
-
|
|
3
|
-
import {createApp} from 'vue'
|
|
4
|
-
import App from './App.vue'
|
|
5
|
-
|
|
6
|
-
import ViGridBuilderPlugin from '../../ViGridBuilderPlugin.js';
|
|
7
|
-
import SampleCustomField from "./components/fields/SampleCustomField.vue";
|
|
8
|
-
|
|
9
|
-
const app = createApp(App);
|
|
10
|
-
app.use(ViGridBuilderPlugin, {
|
|
11
|
-
fieldComponents: {
|
|
12
|
-
SampleCustomField,
|
|
13
|
-
},
|
|
14
|
-
dateFormats:{
|
|
15
|
-
time:'HH:mm'
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
align: 'right',
|
|
19
|
-
|
|
20
|
-
compactPagination: true,
|
|
21
|
-
noDataLabel: 'emtpy tabled',
|
|
22
|
-
noCellDataLabel: 'NA',
|
|
23
|
-
stripped: true,
|
|
24
|
-
bordered: true,
|
|
25
|
-
rowsPerPage: 30,
|
|
26
|
-
rowsPerPageOptions: [{
|
|
27
|
-
label: 15,
|
|
28
|
-
value: 15
|
|
29
|
-
}, {
|
|
30
|
-
label: 20,
|
|
31
|
-
value: 20
|
|
32
|
-
}, {
|
|
33
|
-
label: 30,
|
|
34
|
-
value: 30
|
|
35
|
-
}, {
|
|
36
|
-
label: 'all',
|
|
37
|
-
value: 0
|
|
38
|
-
}],
|
|
39
|
-
style: {
|
|
40
|
-
'color': 'white',
|
|
41
|
-
'text-color': 'black',
|
|
42
|
-
'secondary-color': 'lightgrey',
|
|
43
|
-
'primary-color': '#f18080',
|
|
44
|
-
'primary-text-color': 'white',
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
app.mount('#app')
|
|
@@ -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
|
-
})
|
package/src/ViGridBuilder.scss
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--vi-grid-primary-color: rgba(0, 0, 255, 0.65);//header, hover background
|
|
3
|
-
--vi-grid-primary-text-color: rgb(255, 255, 255);//header, hover text color
|
|
4
|
-
|
|
5
|
-
--vi-grid-secondary-color: rgb(243, 243, 243); //stripped background
|
|
6
|
-
--vi-grid-text-color: rgb(0, 0, 0); //text color in body cells
|
|
7
|
-
--vi-grid-color: rgb(255, 255, 255); //background color for table
|
|
8
|
-
}
|
|
9
|
-
.vi-grid-builder {
|
|
10
|
-
width: 100%;
|
|
11
|
-
|
|
12
|
-
.vi-table-container {
|
|
13
|
-
overflow-x: visible; /* for popups */
|
|
14
|
-
position: relative;
|
|
15
|
-
width: 100%;
|
|
16
|
-
|
|
17
|
-
//blurred table on loading
|
|
18
|
-
&.loading::before {
|
|
19
|
-
position: absolute;
|
|
20
|
-
top: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
bottom: 0;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
content: '';
|
|
26
|
-
backdrop-filter: blur(1px);
|
|
27
|
-
-webkit-backdrop-filter: blur(1px);
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.vi-table {
|
|
32
|
-
width: 100%;
|
|
33
|
-
border-collapse: collapse; /* Removes double borders when using borders */
|
|
34
|
-
table-layout: auto; /* Columns grow based on content */
|
|
35
|
-
|
|
36
|
-
color: var(--vi-grid-text-color);
|
|
37
|
-
background-color: var(--vi-grid-color);
|
|
38
|
-
|
|
39
|
-
//header cell styel
|
|
40
|
-
.vi-header-cell:not(.vi-loading-cell) {
|
|
41
|
-
background-color: var(--vi-grid-primary-color);
|
|
42
|
-
color: var(--vi-grid-primary-text-color);
|
|
43
|
-
font-weight: bold;
|
|
44
|
-
|
|
45
|
-
* {
|
|
46
|
-
font-weight: inherit;
|
|
47
|
-
}
|
|
48
|
-
&.unsorted {
|
|
49
|
-
.sort-button {
|
|
50
|
-
visibility: hidden;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:hover {
|
|
54
|
-
.sort-button {
|
|
55
|
-
visibility: visible;
|
|
56
|
-
opacity: 0.5;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.stripped {
|
|
63
|
-
tbody tr:nth-child(even):not(.vi-footer-row) {
|
|
64
|
-
background-color: var(--vi-grid-secondary-color);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&.bordered {
|
|
69
|
-
.vi-cell {
|
|
70
|
-
border: 1px solid #d3cfcf; /* Light gray borders */
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
//all cells style
|
|
77
|
-
.vi-cell {
|
|
78
|
-
padding: 12px 15px;
|
|
79
|
-
word-wrap: break-word;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.vi-select-cell {
|
|
83
|
-
input[type='checkbox'] {
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
//cell alignment
|
|
89
|
-
.vi-grid-field, .vi-header-cell-content {
|
|
90
|
-
|
|
91
|
-
&.left {
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
justify-content: flex-start;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.right {
|
|
98
|
-
display: flex;
|
|
99
|
-
justify-content: flex-end;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.center {
|
|
103
|
-
display: flex;
|
|
104
|
-
justify-content: center;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
//Sort button
|
|
109
|
-
.vi-header-cell-content {
|
|
110
|
-
.sort-button {
|
|
111
|
-
margin-right: 4px;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
//footer cell style (pagination cell/row )
|
|
116
|
-
.vi-footer-cell {
|
|
117
|
-
padding: 20px 15px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.vi-body-row {
|
|
121
|
-
&:hover:not(.vi-footer-row) {
|
|
122
|
-
background-color: var(--vi-grid-primary-color) !important;
|
|
123
|
-
color: var(--vi-grid-primary-text-color);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.clickable {
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.selected {
|
|
131
|
-
//selected row class
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
//LOADING CSS
|
|
136
|
-
|
|
137
|
-
.vi-loading-row {
|
|
138
|
-
height: 0 !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.vi-loading-cell {
|
|
142
|
-
padding: 0;
|
|
143
|
-
position: relative;
|
|
144
|
-
|
|
145
|
-
.loading-bar-container {
|
|
146
|
-
width: 100%;
|
|
147
|
-
height: 2px;
|
|
148
|
-
background-color: transparent;
|
|
149
|
-
overflow: hidden;
|
|
150
|
-
position: absolute;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* The loading bar itself */
|
|
154
|
-
.loading-bar {
|
|
155
|
-
width: 100%;
|
|
156
|
-
height: 100%;
|
|
157
|
-
background-color: var(--vi-grid-primary-color);
|
|
158
|
-
position: absolute;
|
|
159
|
-
transform: translateX(-100%);
|
|
160
|
-
animation: moveBar 3s linear infinite;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@keyframes moveBar {
|
|
165
|
-
0% {
|
|
166
|
-
transform: translateX(-100%); /* Start outside the left edge */
|
|
167
|
-
}
|
|
168
|
-
100% {
|
|
169
|
-
transform: translateX(100%); /* End outside the right edge */
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
@media (max-width: 600px) {
|
|
178
|
-
.vi-cell {
|
|
179
|
-
padding: 8px 10px; /* Adjust padding for smaller screens */
|
|
180
|
-
font-size: 0.9em; /* Reduce font size for better fit */
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
}
|