vi-grid-builder 2.0.1 → 2.0.2

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/README.md CHANGED
@@ -202,7 +202,7 @@ Pagination is passed as object in table prop, the obejct should have this fields
202
202
  | rowsPerPageOptions |Array of obecjts| Droprdown options for displayin how many rows per page| /
203
203
 
204
204
 
205
- ## Table css classes
205
+ ## CSS CLASSES
206
206
 
207
207
  |class name | description
208
208
  |--|--|
@@ -230,6 +230,31 @@ Pagination is passed as object in table prop, the obejct should have this fields
230
230
  | .vi-footer-row| class for last row in table that holds usually pagination|
231
231
  | .vi-footer-cell| class for cell in last row|
232
232
 
233
+ ## CSS VARIBALES
234
+
235
+ |name | usage | default value
236
+ |--|--|--|
237
+ |--vi-grid-primary-color | background color of header and used as backgorund for rows on hover| rgba(0, 0, 255, 0.65)
238
+ |--vi-grid-primary-text_color | text color of header and used as text color for rows on hover| rgb(255, 255, 255)
239
+ | --vi-grid-secondary-color | background color even rows in stripped table|rgb(243, 243, 243)
240
+ | --vi-grid-text-color | color of text in tabel body cells|rgb(0, 0, 0)
241
+ | --vi-grid-color |background color for table|rgb(255, 255, 255)
242
+
243
+ You can override this values in the options when plugin is installed:
244
+ ```js
245
+ const app = createApp(App);
246
+ app.use(ViGridBuilderPlugin, {
247
+ ...
248
+ style: {
249
+ 'color': 'white',
250
+ 'text-color': 'black',
251
+ 'secondary-color': 'lightgrey',
252
+ 'primary-color': '#f18080',
253
+ 'primary-text-color': 'white',
254
+ }
255
+ });
256
+ ```
257
+
233
258
 
234
259
 
235
260
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vi-grid-builder",
3
3
  "main": "ViGridBuilderPlugin",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -5,16 +5,12 @@ import App from './App.vue'
5
5
 
6
6
  import ViGridBuilderPlugin from '../../ViGridBuilderPlugin.js';
7
7
  import SampleCustomField from "./components/fields/SampleCustomField.vue";
8
- import LoadingSlot from "@/components/LoadingSlot.vue";
9
8
 
10
9
  const app = createApp(App);
11
10
  app.use(ViGridBuilderPlugin, {
12
11
  fieldComponents: {
13
12
  SampleCustomField,
14
13
  },
15
- defaultSlots:{
16
- loading:LoadingSlot
17
- },
18
14
 
19
15
  align: 'right',
20
16
  disablePagination: true,
@@ -4,7 +4,7 @@
4
4
 
5
5
  --vi-grid-secondary-color: rgb(243, 243, 243); //stripped background
6
6
  --vi-grid-text-color: rgb(0, 0, 0); //text color in body cells
7
- --vi-grid-color: rgb(255, 255, 255); //backgournd color for table
7
+ --vi-grid-color: rgb(255, 255, 255); //background color for table
8
8
  }
9
9
  .vi-grid-builder {
10
10
  width: 100%;
@@ -1,11 +0,0 @@
1
- <script setup>
2
-
3
- </script>
4
-
5
- <template>
6
- <idv> loading default slot</idv>
7
- </template>
8
-
9
- <style scoped lang="scss">
10
-
11
- </style>