@hostlink/nuxt-light 1.48.8 → 1.48.9
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/runtime/components/l-date-picker.d.vue.ts +2 -2
- package/dist/runtime/components/l-date-picker.vue +37 -9
- package/dist/runtime/components/l-date-picker.vue.d.ts +2 -2
- package/dist/runtime/components/l-table.d.vue.ts +2 -2
- package/dist/runtime/components/l-table.vue +4 -1
- package/dist/runtime/components/l-table.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export type LDatePickerProps = QDateProps & QInputProps
|
|
1
|
+
import { type QDateProps, type QInputProps } from "quasar";
|
|
2
|
+
export type LDatePickerProps = Omit<QDateProps, "modelValue"> & Omit<QInputProps, "modelValue">;
|
|
3
3
|
type __VLS_Props = LDatePickerProps;
|
|
4
4
|
type __VLS_PublicProps = __VLS_Props & {
|
|
5
5
|
modelValue?: any;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, watch } from "vue";
|
|
3
3
|
import { useLight } from "#imports";
|
|
4
|
-
|
|
4
|
+
import { QInput } from "quasar";
|
|
5
|
+
const modelValue = defineModel({ type: null, ...{
|
|
6
|
+
type: [String, Object, null],
|
|
7
|
+
default: null
|
|
8
|
+
} });
|
|
5
9
|
const props = defineProps({
|
|
6
10
|
name: { type: String, required: false },
|
|
7
11
|
landscape: { type: Boolean, required: false, skipCheck: true },
|
|
@@ -16,7 +20,6 @@ const props = defineProps({
|
|
|
16
20
|
bordered: { type: Boolean, required: false, skipCheck: true },
|
|
17
21
|
readonly: { type: Boolean, required: false },
|
|
18
22
|
disable: { type: Boolean, required: false, default: false },
|
|
19
|
-
modelValue: { type: [String, Array, null, Number], required: true },
|
|
20
23
|
title: { type: null, required: false },
|
|
21
24
|
subtitle: { type: null, required: false },
|
|
22
25
|
defaultYearMonth: { type: null, required: false },
|
|
@@ -86,12 +89,10 @@ const props = defineProps({
|
|
|
86
89
|
const light = useLight();
|
|
87
90
|
const popup = ref(null);
|
|
88
91
|
watch(modelValue, (newVal) => {
|
|
89
|
-
console.log("modelValue changed", newVal);
|
|
90
92
|
popup.value.hide();
|
|
91
93
|
});
|
|
92
94
|
const localValue = computed({
|
|
93
95
|
get: () => {
|
|
94
|
-
console.log("getting localValue", modelValue.value);
|
|
95
96
|
if (!modelValue.value) {
|
|
96
97
|
return modelValue.value;
|
|
97
98
|
}
|
|
@@ -102,7 +103,6 @@ const localValue = computed({
|
|
|
102
103
|
}
|
|
103
104
|
return s;
|
|
104
105
|
}
|
|
105
|
-
console.log("getting localValue", modelValue.value);
|
|
106
106
|
return modelValue.value;
|
|
107
107
|
},
|
|
108
108
|
set: (val) => {
|
|
@@ -116,7 +116,6 @@ const localValue = computed({
|
|
|
116
116
|
const from = parts[0];
|
|
117
117
|
const to = parts[1];
|
|
118
118
|
if (from.match(/^\d{4}-\d{2}-\d{2}$/) && to.match(/^\d{4}-\d{2}-\d{2}$/)) {
|
|
119
|
-
console.log("setting range", from, to);
|
|
120
119
|
modelValue.value = { from, to };
|
|
121
120
|
return;
|
|
122
121
|
}
|
|
@@ -152,17 +151,46 @@ const inputProps = computed(() => {
|
|
|
152
151
|
return rest;
|
|
153
152
|
});
|
|
154
153
|
const dateProps = computed(() => {
|
|
155
|
-
const {
|
|
154
|
+
const {
|
|
155
|
+
filled,
|
|
156
|
+
outlined,
|
|
157
|
+
standout,
|
|
158
|
+
rounded,
|
|
159
|
+
dense,
|
|
160
|
+
square,
|
|
161
|
+
stackLabel,
|
|
162
|
+
color,
|
|
163
|
+
mask,
|
|
164
|
+
rules,
|
|
165
|
+
hint,
|
|
166
|
+
hideHint,
|
|
167
|
+
prefix,
|
|
168
|
+
suffix,
|
|
169
|
+
loading,
|
|
170
|
+
clearable,
|
|
171
|
+
clearIcon,
|
|
172
|
+
hideBottomSpace,
|
|
173
|
+
counter,
|
|
174
|
+
maxlength,
|
|
175
|
+
disable,
|
|
176
|
+
readonly,
|
|
177
|
+
autofocus,
|
|
178
|
+
inputClass,
|
|
179
|
+
inputStyle,
|
|
180
|
+
type,
|
|
181
|
+
debounce,
|
|
182
|
+
...rest
|
|
183
|
+
} = props;
|
|
156
184
|
return rest;
|
|
157
185
|
});
|
|
158
186
|
</script>
|
|
159
187
|
|
|
160
188
|
<template>
|
|
161
|
-
<q-input v-model="localValue"
|
|
189
|
+
<q-input v-model="localValue" :mask="inputMask" :rules="inputRules" v-bind="inputProps">
|
|
162
190
|
<template v-slot:prepend>
|
|
163
191
|
<q-icon name="sym_o_event" class="cursor-pointer">
|
|
164
192
|
<q-popup-proxy cover transition-show="scale" transition-hide="scale" ref="popup">
|
|
165
|
-
<q-date :color="color ?? $light.color" mask="YYYY-MM-DD" v-bind="dateProps">
|
|
193
|
+
<q-date :color="color ?? $light.color" mask="YYYY-MM-DD" v-model="modelValue" v-bind="dateProps">
|
|
166
194
|
<div class="row items-center justify-end">
|
|
167
195
|
<q-btn v-close-popup :label="$t('Close')" :color="color ?? $light.color" flat />
|
|
168
196
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export type LDatePickerProps = QDateProps & QInputProps
|
|
1
|
+
import { type QDateProps, type QInputProps } from "quasar";
|
|
2
|
+
export type LDatePickerProps = Omit<QDateProps, "modelValue"> & Omit<QInputProps, "modelValue">;
|
|
3
3
|
type __VLS_Props = LDatePickerProps;
|
|
4
4
|
type __VLS_PublicProps = __VLS_Props & {
|
|
5
5
|
modelValue?: any;
|
|
@@ -70,11 +70,11 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any,
|
|
73
|
+
declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any, __VLS_203: string, __VLS_204: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
75
|
[K in NonNullable<typeof __VLS_94>]?: (props: typeof __VLS_95) => any;
|
|
76
76
|
} & {
|
|
77
|
-
[K in NonNullable<typeof
|
|
77
|
+
[K in NonNullable<typeof __VLS_203>]?: (props: typeof __VLS_204) => any;
|
|
78
78
|
} & {
|
|
79
79
|
actions?: (props: typeof __VLS_91) => any;
|
|
80
80
|
} & {
|
|
@@ -479,6 +479,9 @@ const simpleRouteName = computed(() => {
|
|
|
479
479
|
return "";
|
|
480
480
|
});
|
|
481
481
|
const visibleColumns = props.name ? useStorage("l-table-visible-columns-" + simpleRouteName.value + "-" + props.name, hidableColumns.value.map((c) => c.name)) : ref(hidableColumns.value.map((c) => c.name));
|
|
482
|
+
watch(filters, () => {
|
|
483
|
+
onFilters();
|
|
484
|
+
}, { deep: true });
|
|
482
485
|
</script>
|
|
483
486
|
|
|
484
487
|
<template>
|
|
@@ -626,7 +629,7 @@ const visibleColumns = props.name ? useStorage("l-table-visible-columns-" + simp
|
|
|
626
629
|
|
|
627
630
|
<template v-if="col.searchType == 'date'">
|
|
628
631
|
<l-date-picker dense clearable filled square :outlined="false" hide-bottom-space
|
|
629
|
-
v-model="filters[col.name]"
|
|
632
|
+
v-model="filters[col.name]" range @clear="onFilters"
|
|
630
633
|
:style="col.searchStyle" />
|
|
631
634
|
</template>
|
|
632
635
|
|
|
@@ -70,11 +70,11 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any,
|
|
73
|
+
declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any, __VLS_203: string, __VLS_204: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
75
|
[K in NonNullable<typeof __VLS_94>]?: (props: typeof __VLS_95) => any;
|
|
76
76
|
} & {
|
|
77
|
-
[K in NonNullable<typeof
|
|
77
|
+
[K in NonNullable<typeof __VLS_203>]?: (props: typeof __VLS_204) => any;
|
|
78
78
|
} & {
|
|
79
79
|
actions?: (props: typeof __VLS_91) => any;
|
|
80
80
|
} & {
|