@hostlink/nuxt-light 1.10.15 → 1.10.16
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/module.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { useQuasar, QTable, type QTableColumn, type QTableProps } from 'quasar';
|
|
3
3
|
|
|
4
|
-
import { ref, computed, onMounted, useSlots, useAttrs } from "vue";
|
|
4
|
+
import { ref, computed, onMounted, useSlots, useAttrs, watch } from "vue";
|
|
5
5
|
import { t, q, useLight, GQLFieldBuilder, model } from '../';
|
|
6
6
|
import { toQuery } from '@hostlink/light';
|
|
7
7
|
|
|
@@ -152,8 +152,11 @@ onMounted(() => {
|
|
|
152
152
|
if (table.value) {
|
|
153
153
|
table.value.requestServerInteraction();
|
|
154
154
|
}
|
|
155
|
+
|
|
155
156
|
})
|
|
156
157
|
|
|
158
|
+
|
|
159
|
+
|
|
157
160
|
const isServerSide = computed(() => {
|
|
158
161
|
return props.rows == undefined;
|
|
159
162
|
})
|
|
@@ -511,7 +514,9 @@ const localSelected = computed({
|
|
|
511
514
|
}
|
|
512
515
|
});
|
|
513
516
|
|
|
514
|
-
|
|
517
|
+
watch(() => props.rows, (val) => {
|
|
518
|
+
rows.value = val;
|
|
519
|
+
});
|
|
515
520
|
</script>
|
|
516
521
|
|
|
517
522
|
|
|
@@ -528,8 +533,8 @@ const localSelected = computed({
|
|
|
528
533
|
</div>
|
|
529
534
|
</template>
|
|
530
535
|
|
|
531
|
-
<q-table v-bind="attrs" :loading="loading" :rows="rows
|
|
532
|
-
|
|
536
|
+
<q-table v-bind="attrs" :loading="loading" :rows="rows" ref="table" @request="onRequest" :columns="columns"
|
|
537
|
+
v-model:pagination="pagination" :filter="filter" v-model:selected="localSelected">
|
|
533
538
|
|
|
534
539
|
<template #header="props">
|
|
535
540
|
<q-tr :props="props">
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const app: {
|
|
|
6
6
|
isAdmin: boolean;
|
|
7
7
|
permissions: string[];
|
|
8
8
|
myFavorites: any[];
|
|
9
|
-
getColorValue: () =>
|
|
9
|
+
getColorValue: () => string;
|
|
10
10
|
setMyFavorites: (favorites: any[]) => void;
|
|
11
11
|
reloadMyFavorites: () => Promise<void>;
|
|
12
12
|
getMyFavorites: () => any[];
|
|
@@ -19,13 +19,13 @@ declare const app: {
|
|
|
19
19
|
addError: (error: String) => void;
|
|
20
20
|
getErrors: () => String[];
|
|
21
21
|
removeError: (error: String) => void;
|
|
22
|
-
getStyle: (name:
|
|
22
|
+
getStyle: (name: string) => any;
|
|
23
23
|
setStyles: (s: Object) => void;
|
|
24
24
|
getStyles: () => {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
};
|
|
27
|
-
setStyle: (name:
|
|
28
|
-
setCurrentRoute: (to: any
|
|
27
|
+
setStyle: (name: string, value: any) => Promise<void>;
|
|
28
|
+
setCurrentRoute: (to: any) => void;
|
|
29
29
|
getID: () => number | null;
|
|
30
30
|
init: (styles: any) => void;
|
|
31
31
|
isGranted: (right?: string | undefined) => boolean;
|
|
@@ -46,7 +46,7 @@ export declare const useLight: (options?: {
|
|
|
46
46
|
isAdmin: boolean;
|
|
47
47
|
permissions: string[];
|
|
48
48
|
myFavorites: any[];
|
|
49
|
-
getColorValue: () =>
|
|
49
|
+
getColorValue: () => string;
|
|
50
50
|
setMyFavorites: (favorites: Array<any>) => void;
|
|
51
51
|
reloadMyFavorites: () => Promise<void>;
|
|
52
52
|
getMyFavorites: () => any[];
|
|
@@ -59,13 +59,13 @@ export declare const useLight: (options?: {
|
|
|
59
59
|
addError: (error: String) => void;
|
|
60
60
|
getErrors: () => String[];
|
|
61
61
|
removeError: (error: String) => void;
|
|
62
|
-
getStyle: (name:
|
|
62
|
+
getStyle: (name: string) => any;
|
|
63
63
|
setStyles: (s: Object) => void;
|
|
64
64
|
getStyles: () => {
|
|
65
65
|
[key: string]: any;
|
|
66
66
|
};
|
|
67
|
-
setStyle: (name:
|
|
68
|
-
setCurrentRoute: (to: any
|
|
67
|
+
setStyle: (name: string, value: any) => Promise<void>;
|
|
68
|
+
setCurrentRoute: (to: any) => void;
|
|
69
69
|
getID: () => number | null;
|
|
70
70
|
init: (styles: any) => void;
|
|
71
71
|
isGranted: (right?: string) => boolean;
|
package/dist/runtime/index.mjs
CHANGED