@hostlink/nuxt-light 1.28.2 → 1.28.3
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 +1 -1
- package/dist/module.mjs +2 -4
- package/dist/runtime/components/l-date-picker.vue +1 -1
- package/dist/runtime/components/l-date-picker.vue.d.ts +7 -11
- package/dist/runtime/components/l-table.vue +10 -10
- package/dist/runtime/components/l-table.vue.d.ts +7 -7
- package/dist/runtime/components/l-tabs.vue +5 -5
- package/dist/runtime/components/l-tabs.vue.d.ts +7 -7
- package/dist/runtime/components/l-time-picker.vue +1 -1
- package/dist/runtime/components/l-time-picker.vue.d.ts +7 -7
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -275,12 +275,10 @@ const module = defineNuxtModule({
|
|
|
275
275
|
components: {
|
|
276
276
|
defaults: {
|
|
277
277
|
QInput: {
|
|
278
|
-
stackLabel: true
|
|
279
|
-
outlined: true
|
|
278
|
+
stackLabel: true
|
|
280
279
|
},
|
|
281
280
|
QSelect: {
|
|
282
|
-
stackLabel: true
|
|
283
|
-
outlined: true
|
|
281
|
+
stackLabel: true
|
|
284
282
|
},
|
|
285
283
|
QCard: {
|
|
286
284
|
flat: true,
|
|
@@ -4,7 +4,7 @@ import { useLight } from "#imports";
|
|
|
4
4
|
import { date } from "quasar";
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
const { t } = useI18n();
|
|
7
|
-
const modelValue = defineModel(
|
|
7
|
+
const modelValue = defineModel();
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
label: { type: String, required: false },
|
|
10
10
|
required: { type: Boolean, required: false },
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
interface DateRange {
|
|
2
|
-
from: string;
|
|
3
|
-
to: string;
|
|
4
|
-
}
|
|
5
1
|
export interface LDatePickerProps {
|
|
6
2
|
label?: string;
|
|
7
3
|
required?: boolean;
|
|
@@ -21,8 +17,8 @@ export interface LDatePickerProps {
|
|
|
21
17
|
}
|
|
22
18
|
type __VLS_Props = LDatePickerProps;
|
|
23
19
|
declare const popup: import("vue").Ref<any, any>;
|
|
24
|
-
declare const localValue: import("vue").WritableComputedRef<
|
|
25
|
-
declare const dateValue: import("vue").WritableComputedRef<import("vue").ModelRef<
|
|
20
|
+
declare const localValue: import("vue").WritableComputedRef<any, string | Object>;
|
|
21
|
+
declare const dateValue: import("vue").WritableComputedRef<import("vue").ModelRef<any, string, any, any>, string>;
|
|
26
22
|
declare const input_attrs: import("vue").ComputedRef<any>;
|
|
27
23
|
declare const date_attrs: import("vue").ComputedRef<{
|
|
28
24
|
required: boolean;
|
|
@@ -32,7 +28,7 @@ declare const date_attrs: import("vue").ComputedRef<{
|
|
|
32
28
|
disable: boolean;
|
|
33
29
|
}>;
|
|
34
30
|
type __VLS_PublicProps = __VLS_Props & {
|
|
35
|
-
modelValue?:
|
|
31
|
+
modelValue?: any;
|
|
36
32
|
};
|
|
37
33
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
38
34
|
declare var __VLS_25: string | number, __VLS_26: any;
|
|
@@ -46,9 +42,9 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
46
42
|
input_attrs: typeof input_attrs;
|
|
47
43
|
date_attrs: typeof date_attrs;
|
|
48
44
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
-
"update:modelValue": (value:
|
|
45
|
+
"update:modelValue": (value: any) => any;
|
|
50
46
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
51
|
-
"onUpdate:modelValue"?: ((value:
|
|
47
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
52
48
|
}>, {
|
|
53
49
|
dense: boolean;
|
|
54
50
|
square: boolean;
|
|
@@ -63,9 +59,9 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
63
59
|
range: boolean;
|
|
64
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
65
61
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
-
"update:modelValue": (value:
|
|
62
|
+
"update:modelValue": (value: any) => any;
|
|
67
63
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
68
|
-
"onUpdate:modelValue"?: ((value:
|
|
64
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
69
65
|
}>, {
|
|
70
66
|
dense: boolean;
|
|
71
67
|
square: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useQuasar, QTable, Dialog } from "quasar";
|
|
3
|
-
import { ref, computed, onMounted, useSlots, watch } from "vue";
|
|
3
|
+
import { ref, computed, onMounted, useSlots, watch, reactive } from "vue";
|
|
4
4
|
import { useLight, GQLFieldBuilder, model } from "../";
|
|
5
5
|
import { toQuery } from "@hostlink/light";
|
|
6
6
|
import { collect } from "#imports";
|
|
@@ -93,7 +93,7 @@ const props = defineProps({
|
|
|
93
93
|
actions: { type: Array, required: false, default: () => [] },
|
|
94
94
|
sortBy: { type: null, required: false },
|
|
95
95
|
modelName: { type: null, required: false },
|
|
96
|
-
searchable: { type:
|
|
96
|
+
searchable: { type: null, required: false, default: false },
|
|
97
97
|
maximizable: { type: Boolean, required: false, default: false },
|
|
98
98
|
minimizable: { type: Boolean, required: false, default: false },
|
|
99
99
|
onRequestData: { type: Function, required: false },
|
|
@@ -146,7 +146,7 @@ const hasSearch = computed(() => {
|
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
148
|
const table = ref();
|
|
149
|
-
const filters =
|
|
149
|
+
const filters = reactive({});
|
|
150
150
|
const rows = ref(props.rows);
|
|
151
151
|
if (rows.value == void 0) {
|
|
152
152
|
rows.value = [];
|
|
@@ -303,23 +303,23 @@ const getFilterValue = () => {
|
|
|
303
303
|
let f = {};
|
|
304
304
|
props.columns?.forEach((col) => {
|
|
305
305
|
if (col.searchable) {
|
|
306
|
-
if (filters
|
|
306
|
+
if (filters[col.name] !== null && filters[col.name] !== "" && filters[col.name] !== void 0) {
|
|
307
307
|
if (col.searchType == "number") {
|
|
308
|
-
f[col.name] = filters
|
|
308
|
+
f[col.name] = filters[col.name];
|
|
309
309
|
} else if (col.searchType == "date") {
|
|
310
|
-
if (filters
|
|
310
|
+
if (filters[col.name].from) {
|
|
311
311
|
f[col.name] = {
|
|
312
|
-
between: [filters
|
|
312
|
+
between: [filters[col.name].from, filters[col.name].to]
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
} else if (col.searchType == "select") {
|
|
316
|
-
f[col.name] = filters
|
|
316
|
+
f[col.name] = filters[col.name];
|
|
317
317
|
} else {
|
|
318
318
|
if (col.searchMethod == "equals") {
|
|
319
|
-
f[col.name] = filters
|
|
319
|
+
f[col.name] = filters[col.name];
|
|
320
320
|
} else {
|
|
321
321
|
f[col.name] = {
|
|
322
|
-
contains: filters
|
|
322
|
+
contains: filters[col.name]
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
}
|
|
@@ -15,10 +15,10 @@ declare const errors: import("vue").Ref<any, any>;
|
|
|
15
15
|
export type LTableProps = QTableProps & {
|
|
16
16
|
columns?: Array<LTableColumn>;
|
|
17
17
|
actions?: Array<string>;
|
|
18
|
-
sortBy?:
|
|
18
|
+
sortBy?: any;
|
|
19
19
|
rowKey?: string;
|
|
20
|
-
modelName?:
|
|
21
|
-
searchable?:
|
|
20
|
+
modelName?: any;
|
|
21
|
+
searchable?: any;
|
|
22
22
|
selected?: Array<any>;
|
|
23
23
|
maximizable?: boolean;
|
|
24
24
|
minimizable?: boolean;
|
|
@@ -89,10 +89,10 @@ declare let actionView: boolean;
|
|
|
89
89
|
declare let actionDelete: boolean;
|
|
90
90
|
declare const hasSearch: import("vue").ComputedRef<boolean | undefined>;
|
|
91
91
|
declare const table: import("vue").Ref<QTable | undefined, QTable | undefined>;
|
|
92
|
-
declare const filters:
|
|
92
|
+
declare const filters: any;
|
|
93
93
|
declare const rows: import("vue").Ref<any, any>;
|
|
94
94
|
declare let primaryKey: import("vue").Ref<string | (((row: any) => any) & string) | undefined, string | (((row: any) => any) & string) | undefined>;
|
|
95
|
-
declare const modelName: import("vue").Ref<
|
|
95
|
+
declare const modelName: import("vue").Ref<any, any>;
|
|
96
96
|
declare const onLocalRequest: (p: any) => Promise<void>;
|
|
97
97
|
declare const onFilters: () => void;
|
|
98
98
|
declare const ss: string[];
|
|
@@ -184,7 +184,7 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
184
184
|
selection: "none" | "single" | "multiple";
|
|
185
185
|
selected: any[];
|
|
186
186
|
actions: Array<string>;
|
|
187
|
-
searchable:
|
|
187
|
+
searchable: any;
|
|
188
188
|
maximizable: boolean;
|
|
189
189
|
minimizable: boolean;
|
|
190
190
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -222,7 +222,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
222
222
|
selection: "none" | "single" | "multiple";
|
|
223
223
|
selected: any[];
|
|
224
224
|
actions: Array<string>;
|
|
225
|
-
searchable:
|
|
225
|
+
searchable: any;
|
|
226
226
|
maximizable: boolean;
|
|
227
227
|
minimizable: boolean;
|
|
228
228
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useSlots } from "#imports";
|
|
3
|
-
const model = defineModel({ type: [String, Number, null, Unknown] });
|
|
4
3
|
defineProps({
|
|
5
4
|
modelValue: { type: null, required: false },
|
|
6
5
|
vertical: { type: Boolean, required: false, skipCheck: true },
|
|
@@ -25,18 +24,19 @@ defineProps({
|
|
|
25
24
|
"onUpdate:modelValue": { type: Function, required: false }
|
|
26
25
|
});
|
|
27
26
|
const slots = useSlots();
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const modelValue = defineModel();
|
|
28
|
+
if (modelValue.value === void 0) {
|
|
29
|
+
modelValue.value = slots.default?.()[0]?.props?.name;
|
|
30
30
|
}
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
34
34
|
<l-card>
|
|
35
35
|
<q-tabs class="text-grey" :active-color="$light.color" :indicator-color="$light.color" align="justify"
|
|
36
|
-
v-model="
|
|
36
|
+
v-model="modelValue">
|
|
37
37
|
<slot></slot>
|
|
38
38
|
</q-tabs>
|
|
39
|
-
<q-tab-panels v-model="
|
|
39
|
+
<q-tab-panels v-model="modelValue">
|
|
40
40
|
<slot></slot>
|
|
41
41
|
</q-tab-panels>
|
|
42
42
|
</l-card>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { QTabsProps } from 'quasar';
|
|
2
|
-
declare const model: import("vue").ModelRef<string | number | null | undefined, string, string | number | null | undefined, string | number | null | undefined>;
|
|
3
2
|
export interface LTabsProps extends QTabsProps {
|
|
4
3
|
}
|
|
5
4
|
type __VLS_Props = LTabsProps;
|
|
5
|
+
declare const modelValue: import("vue").ModelRef<any, string, any, any>;
|
|
6
6
|
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
-
modelValue?:
|
|
7
|
+
modelValue?: any;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
10
10
|
declare var __VLS_10: {}, __VLS_16: {};
|
|
@@ -14,16 +14,16 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
14
14
|
default?: (props: typeof __VLS_16) => any;
|
|
15
15
|
}>;
|
|
16
16
|
declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
17
|
-
|
|
17
|
+
modelValue: typeof modelValue;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
"update:modelValue": (value:
|
|
19
|
+
"update:modelValue": (value: any) => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
-
"onUpdate:modelValue"?: ((value:
|
|
21
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
"update:modelValue": (value:
|
|
24
|
+
"update:modelValue": (value: any) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
-
"onUpdate:modelValue"?: ((value:
|
|
26
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
29
|
export default _default;
|
|
@@ -4,7 +4,7 @@ import { useLight } from "#imports";
|
|
|
4
4
|
import { useI18n } from "vue-i18n";
|
|
5
5
|
const light = useLight();
|
|
6
6
|
const { t } = useI18n();
|
|
7
|
-
const modelValue = defineModel(
|
|
7
|
+
const modelValue = defineModel();
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
modelValue: { type: null, required: false },
|
|
10
10
|
required: { type: Boolean, required: false, default: false },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ValidationRule } from "quasar";
|
|
2
2
|
export interface LTimePickerProps {
|
|
3
|
-
modelValue?:
|
|
3
|
+
modelValue?: any;
|
|
4
4
|
required?: boolean;
|
|
5
5
|
label?: string;
|
|
6
6
|
hint?: string;
|
|
@@ -13,10 +13,10 @@ export interface LTimePickerProps {
|
|
|
13
13
|
}
|
|
14
14
|
type __VLS_Props = LTimePickerProps;
|
|
15
15
|
declare const popup: import("vue").Ref<null, null>;
|
|
16
|
-
declare const localValue: import("vue").WritableComputedRef<
|
|
16
|
+
declare const localValue: import("vue").WritableComputedRef<any, any>;
|
|
17
17
|
declare const rules: ValidationRule[];
|
|
18
18
|
type __VLS_PublicProps = __VLS_Props & {
|
|
19
|
-
modelValue?:
|
|
19
|
+
modelValue?: any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
22
22
|
declare var __VLS_25: string | number, __VLS_26: any;
|
|
@@ -28,9 +28,9 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
28
28
|
localValue: typeof localValue;
|
|
29
29
|
rules: typeof rules;
|
|
30
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
-
"update:modelValue": (value:
|
|
31
|
+
"update:modelValue": (value: any) => any;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
|
-
"onUpdate:modelValue"?: ((value:
|
|
33
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
35
|
required: boolean;
|
|
36
36
|
mask: string;
|
|
@@ -38,9 +38,9 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
38
38
|
format24h: boolean;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
40
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
41
|
-
"update:modelValue": (value:
|
|
41
|
+
"update:modelValue": (value: any) => any;
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
|
-
"onUpdate:modelValue"?: ((value:
|
|
43
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
required: boolean;
|
|
46
46
|
mask: string;
|