@hostlink/nuxt-light 1.28.3 → 1.29.0
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 +76 -86
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +1 -1
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +1 -1
- package/dist/runtime/components/l-app-main.vue +2 -2
- package/dist/runtime/components/l-app-main.vue.d.ts +6 -609
- package/dist/runtime/components/l-app.vue +1 -1
- package/dist/runtime/components/l-col.vue.d.ts +2 -2
- package/dist/runtime/components/l-customizer.vue.d.ts +6 -6
- package/dist/runtime/components/l-date-picker.vue.d.ts +10 -10
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +1 -1
- package/dist/runtime/components/l-editor.vue.d.ts +1 -1
- package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -2
- package/dist/runtime/components/l-field.vue.d.ts +8 -8
- package/dist/runtime/components/l-file-manager.vue +3 -1
- package/dist/runtime/components/l-file-manager.vue.d.ts +4 -4
- package/dist/runtime/components/l-file-upload.vue.d.ts +8 -8
- package/dist/runtime/components/l-file.vue.d.ts +3 -3
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -2
- package/dist/runtime/components/l-input.vue +1 -1
- package/dist/runtime/components/l-input.vue.d.ts +9 -9
- package/dist/runtime/components/l-login.vue +2 -6
- package/dist/runtime/components/l-menu.vue.d.ts +2 -2
- package/dist/runtime/components/l-page.vue +2 -1
- package/dist/runtime/components/l-page.vue.d.ts +2 -2
- package/dist/runtime/components/l-select.vue.d.ts +4 -4
- package/dist/runtime/components/l-table.vue +3 -1
- package/dist/runtime/components/l-table.vue.d.ts +26 -26
- package/dist/runtime/components/l-time-picker.vue.d.ts +2 -2
- package/dist/runtime/composables/GQLFieldBuilder.d.ts +1 -0
- package/dist/runtime/{lib → composables}/GQLFieldBuilder.js +5 -12
- package/dist/runtime/composables/createLight.d.ts +5 -0
- package/dist/runtime/composables/createLight.js +11 -0
- package/dist/runtime/composables/getApiBase.d.ts +2 -0
- package/dist/runtime/composables/getApiBase.js +5 -0
- package/dist/runtime/{lib → composables}/getApiUrl.js +1 -1
- package/dist/runtime/{lib → composables}/getGQLFields.js +1 -1
- package/dist/runtime/{lib → composables}/getID.js +1 -1
- package/dist/runtime/composables/index.d.ts +1 -0
- package/dist/runtime/composables/index.js +0 -0
- package/dist/runtime/composables/notify.d.ts +1 -0
- package/dist/runtime/composables/notify.js +8 -0
- package/dist/runtime/{lib → composables}/q.js +1 -1
- package/dist/runtime/{light.d.ts → composables/useLight.d.ts} +30 -34
- package/dist/runtime/{light.js → composables/useLight.js} +4 -12
- package/dist/runtime/pages/EventLog/index.vue +8 -1
- package/dist/runtime/pages/MailLog/index.vue +8 -1
- package/dist/runtime/pages/Permission/add.vue +1 -1
- package/dist/runtime/pages/Role/_name/update-child.vue +1 -1
- package/dist/runtime/pages/System/view_as.vue +0 -2
- package/dist/runtime/pages/User/_user_id/update-role.vue +1 -1
- package/dist/runtime/pages/User/index.vue +1 -3
- package/dist/runtime/pages/UserLog/index.vue +9 -1
- package/dist/runtime/plugin.js +4 -4
- package/package.json +3 -2
- package/dist/runtime/index.js +0 -1
- package/dist/runtime/lib/GQLFieldBuilder.d.ts +0 -5
- package/dist/runtime/lib/index.d.ts +0 -25
- package/dist/runtime/lib/index.js +0 -35
- /package/dist/runtime/{lib → composables}/SystemValue.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/SystemValue.js +0 -0
- /package/dist/runtime/{lib → composables}/api.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/api.js +0 -0
- /package/dist/runtime/{lib → composables}/collect.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/collect.js +0 -0
- /package/dist/runtime/{lib → composables}/defineLightModel.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/defineLightModel.js +0 -0
- /package/dist/runtime/{lib → composables}/f.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/f.js +0 -0
- /package/dist/runtime/{lib → composables}/getApiUrl.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getCurrentUser.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getCurrentUser.js +0 -0
- /package/dist/runtime/{lib → composables}/getGQLFields.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getID.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getModelColumns.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getModelColumns.js +0 -0
- /package/dist/runtime/{lib → composables}/getModelField.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getModelField.js +0 -0
- /package/dist/runtime/{lib → composables}/getModelFields.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getModelFields.js +0 -0
- /package/dist/runtime/{lib → composables}/getObject.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/getObject.js +0 -0
- /package/dist/runtime/{lib → composables}/isGranted.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/isGranted.js +0 -0
- /package/dist/runtime/{lib → composables}/list.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/list.js +0 -0
- /package/dist/runtime/{lib → composables}/m.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/m.js +0 -0
- /package/dist/runtime/{lib → composables}/model.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/model.js +0 -0
- /package/dist/runtime/{lib → composables}/q.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/sv.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/sv.js +0 -0
- /package/dist/runtime/{lib → composables}/t.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/t.js +0 -0
- /package/dist/runtime/{lib → composables}/tc2sc.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/tc2sc.js +0 -0
- /package/dist/runtime/{lib → composables}/toJson.d.ts +0 -0
- /package/dist/runtime/{lib → composables}/toJson.js +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "update:theme" | "update:menuOverlayHeader" | "update:dense" | "update:color" | "update:miniState" | "update:footer", ...args: any[]) => void;
|
|
3
3
|
color: string;
|
|
4
|
+
miniState: boolean;
|
|
4
5
|
dense: boolean;
|
|
5
|
-
theme: string;
|
|
6
6
|
footer: boolean;
|
|
7
|
-
time: string;
|
|
8
|
-
miniState: boolean;
|
|
9
7
|
menuOverlayHeader: boolean;
|
|
8
|
+
time: string;
|
|
9
|
+
theme: string;
|
|
10
10
|
$props: {
|
|
11
11
|
readonly color?: string | undefined;
|
|
12
|
+
readonly miniState?: boolean | undefined;
|
|
12
13
|
readonly dense?: boolean | undefined;
|
|
13
|
-
readonly theme?: string | undefined;
|
|
14
14
|
readonly footer?: boolean | undefined;
|
|
15
|
-
readonly time?: string | undefined;
|
|
16
|
-
readonly miniState?: boolean | undefined;
|
|
17
15
|
readonly menuOverlayHeader?: boolean | undefined;
|
|
16
|
+
readonly time?: string | undefined;
|
|
17
|
+
readonly theme?: string | undefined;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -47,15 +47,15 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
47
47
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
dense: boolean;
|
|
50
|
-
square: boolean;
|
|
51
|
-
mask: string;
|
|
52
50
|
rounded: boolean;
|
|
51
|
+
square: boolean;
|
|
53
52
|
disable: boolean;
|
|
54
|
-
|
|
53
|
+
mask: string;
|
|
54
|
+
hideBottomSpace: boolean;
|
|
55
55
|
filled: boolean;
|
|
56
|
-
|
|
56
|
+
outlined: boolean;
|
|
57
57
|
standout: boolean;
|
|
58
|
-
|
|
58
|
+
stackLabel: boolean;
|
|
59
59
|
range: boolean;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
61
61
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -64,15 +64,15 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
64
64
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
dense: boolean;
|
|
67
|
-
square: boolean;
|
|
68
|
-
mask: string;
|
|
69
67
|
rounded: boolean;
|
|
68
|
+
square: boolean;
|
|
70
69
|
disable: boolean;
|
|
71
|
-
|
|
70
|
+
mask: string;
|
|
71
|
+
hideBottomSpace: boolean;
|
|
72
72
|
filled: boolean;
|
|
73
|
-
|
|
73
|
+
outlined: boolean;
|
|
74
74
|
standout: boolean;
|
|
75
|
-
|
|
75
|
+
stackLabel: boolean;
|
|
76
76
|
range: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
78
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
$emit: (event: "
|
|
2
|
+
$emit: (event: "ok" | "hide", ...args: any[]) => void;
|
|
3
3
|
$props: {};
|
|
4
4
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
5
|
export default _default;
|
|
@@ -8,8 +8,8 @@ declare const _default: import("vue").DefineComponent<LEditorProps, {}, {}, {},
|
|
|
8
8
|
}>, {
|
|
9
9
|
dense: boolean;
|
|
10
10
|
modelValue: string;
|
|
11
|
-
placeholder: string;
|
|
12
11
|
fonts: any | undefined;
|
|
13
12
|
toolbar: readonly any[];
|
|
13
|
+
placeholder: string;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
value?: any;
|
|
3
2
|
dense?: any;
|
|
3
|
+
value?: any;
|
|
4
4
|
$props: {
|
|
5
|
-
readonly value?: any;
|
|
6
5
|
readonly dense?: any;
|
|
6
|
+
readonly value?: any;
|
|
7
7
|
};
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -7,24 +7,24 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
7
7
|
declare const __VLS_self: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
|
|
8
8
|
dense: boolean;
|
|
9
9
|
dark: boolean | null;
|
|
10
|
-
square: boolean;
|
|
11
10
|
rounded: boolean;
|
|
12
|
-
|
|
11
|
+
square: boolean;
|
|
12
|
+
hideBottomSpace: boolean;
|
|
13
13
|
filled: boolean;
|
|
14
|
-
|
|
14
|
+
outlined: boolean;
|
|
15
15
|
standout: string | boolean;
|
|
16
|
-
|
|
16
|
+
stackLabel: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_component: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
|
|
19
19
|
dense: boolean;
|
|
20
20
|
dark: boolean | null;
|
|
21
|
-
square: boolean;
|
|
22
21
|
rounded: boolean;
|
|
23
|
-
|
|
22
|
+
square: boolean;
|
|
23
|
+
hideBottomSpace: boolean;
|
|
24
24
|
filled: boolean;
|
|
25
|
-
|
|
25
|
+
outlined: boolean;
|
|
26
26
|
standout: string | boolean;
|
|
27
|
-
|
|
27
|
+
stackLabel: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
29
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
30
30
|
export default _default;
|
|
@@ -666,7 +666,9 @@ selectedNodePath.value = drives[0].index.toString();
|
|
|
666
666
|
<q-table flat :columns="columns" :rows="items" @row-dblclick="onDblclickRow" @row-click="onClickRow"
|
|
667
667
|
:pagination="pagination" row-key="path" selection="multiple" v-model:selected="selected" dense
|
|
668
668
|
:loading="loading" :loading-label="$t('Loading...')" :no-data-label="$t('No data available')"
|
|
669
|
-
:color="$light.color"
|
|
669
|
+
:color="$light.color"
|
|
670
|
+
separator="horizontal" :rows-per-page-options="[0]"
|
|
671
|
+
>
|
|
670
672
|
<template #body-cell-icon="props">
|
|
671
673
|
<q-td auto-width>
|
|
672
674
|
<q-icon name="sym_o_folder" v-if="props.value == 'folder'" size="sm" />
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
$emit: (event: "close" | "input", ...args: any[]) => void;
|
|
3
|
-
height: string;
|
|
4
|
-
multiple: boolean;
|
|
5
3
|
base: string;
|
|
6
4
|
closeable: boolean;
|
|
5
|
+
height: string;
|
|
7
6
|
defaultAction: string;
|
|
7
|
+
multiple: boolean;
|
|
8
8
|
$props: {
|
|
9
|
-
readonly height?: string | undefined;
|
|
10
|
-
readonly multiple?: boolean | undefined;
|
|
11
9
|
readonly base?: string | undefined;
|
|
12
10
|
readonly closeable?: boolean | undefined;
|
|
11
|
+
readonly height?: string | undefined;
|
|
13
12
|
readonly defaultAction?: string | undefined;
|
|
13
|
+
readonly multiple?: boolean | undefined;
|
|
14
14
|
};
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
16
|
export default _default;
|
|
@@ -96,14 +96,14 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
96
96
|
}>, {
|
|
97
97
|
path: string;
|
|
98
98
|
dense: boolean;
|
|
99
|
-
square: boolean;
|
|
100
99
|
rounded: boolean;
|
|
101
|
-
|
|
100
|
+
square: boolean;
|
|
102
101
|
filled: boolean;
|
|
103
|
-
|
|
102
|
+
outlined: boolean;
|
|
104
103
|
standout: boolean;
|
|
105
|
-
|
|
104
|
+
stackLabel: boolean;
|
|
106
105
|
driveIndex: number;
|
|
106
|
+
accept: string;
|
|
107
107
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
108
108
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
109
109
|
"update:modelValue": (value: any) => any;
|
|
@@ -112,14 +112,14 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
112
112
|
}>, {
|
|
113
113
|
path: string;
|
|
114
114
|
dense: boolean;
|
|
115
|
-
square: boolean;
|
|
116
115
|
rounded: boolean;
|
|
117
|
-
|
|
116
|
+
square: boolean;
|
|
118
117
|
filled: boolean;
|
|
119
|
-
|
|
118
|
+
outlined: boolean;
|
|
120
119
|
standout: boolean;
|
|
121
|
-
|
|
120
|
+
stackLabel: boolean;
|
|
122
121
|
driveIndex: number;
|
|
122
|
+
accept: string;
|
|
123
123
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
124
124
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
125
125
|
export default _default;
|
|
@@ -15,11 +15,11 @@ declare const _default: import("vue").DefineComponent<LFileProps, {}, {}, {}, {}
|
|
|
15
15
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {
|
|
17
17
|
dense: boolean;
|
|
18
|
-
square: boolean;
|
|
19
18
|
rounded: boolean;
|
|
20
|
-
|
|
19
|
+
square: boolean;
|
|
21
20
|
filled: boolean;
|
|
22
|
-
|
|
21
|
+
outlined: boolean;
|
|
23
22
|
standout: boolean;
|
|
23
|
+
stackLabel: boolean;
|
|
24
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
export default _default;
|
|
@@ -6,16 +6,16 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
7
|
$emit: (event: "submit", ...args: any[]) => void;
|
|
8
8
|
cancel: Function;
|
|
9
|
-
value: Record<string, any>;
|
|
10
9
|
title: string;
|
|
11
10
|
width: string;
|
|
11
|
+
value: Record<string, any>;
|
|
12
12
|
save: Function;
|
|
13
13
|
showNotification: boolean;
|
|
14
14
|
$props: {
|
|
15
15
|
readonly cancel?: Function | undefined;
|
|
16
|
-
readonly value?: Record<string, any> | undefined;
|
|
17
16
|
readonly title?: string | undefined;
|
|
18
17
|
readonly width?: string | undefined;
|
|
18
|
+
readonly value?: Record<string, any> | undefined;
|
|
19
19
|
readonly save?: Function | undefined;
|
|
20
20
|
readonly showNotification?: boolean | undefined;
|
|
21
21
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, ref } from "vue";
|
|
3
3
|
import { useI18n } from "vue-i18n";
|
|
4
|
-
import tc2sc from "../
|
|
4
|
+
import tc2sc from "../composables/tc2sc";
|
|
5
5
|
const { t } = useI18n();
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
showPassword: { type: Boolean, required: false },
|
|
@@ -6,7 +6,7 @@ export interface LInputProps extends QInputProps {
|
|
|
6
6
|
}
|
|
7
7
|
declare const new_rules: import("quasar").ValidationRule[];
|
|
8
8
|
declare const isShowPassword: import("vue").Ref<boolean, boolean>;
|
|
9
|
-
declare const localType: import("vue").ComputedRef<"number" | "
|
|
9
|
+
declare const localType: import("vue").ComputedRef<"number" | "textarea" | "time" | "text" | "search" | "date" | "url" | "email" | "file" | "datetime-local" | "password" | "tel" | undefined>;
|
|
10
10
|
declare const localShowPassword: import("vue").ComputedRef<boolean>;
|
|
11
11
|
declare const onClickTc2Sc: () => void;
|
|
12
12
|
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
@@ -23,24 +23,24 @@ declare const __VLS_self: import("vue").DefineComponent<LInputProps, {
|
|
|
23
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LInputProps> & Readonly<{}>, {
|
|
24
24
|
dense: boolean;
|
|
25
25
|
dark: boolean | null;
|
|
26
|
-
square: boolean;
|
|
27
26
|
rounded: boolean;
|
|
28
|
-
|
|
27
|
+
square: boolean;
|
|
28
|
+
hideBottomSpace: boolean;
|
|
29
29
|
filled: boolean;
|
|
30
|
-
|
|
30
|
+
outlined: boolean;
|
|
31
31
|
standout: string | boolean;
|
|
32
|
-
|
|
32
|
+
stackLabel: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_component: import("vue").DefineComponent<LInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LInputProps> & Readonly<{}>, {
|
|
35
35
|
dense: boolean;
|
|
36
36
|
dark: boolean | null;
|
|
37
|
-
square: boolean;
|
|
38
37
|
rounded: boolean;
|
|
39
|
-
|
|
38
|
+
square: boolean;
|
|
39
|
+
hideBottomSpace: boolean;
|
|
40
40
|
filled: boolean;
|
|
41
|
-
|
|
41
|
+
outlined: boolean;
|
|
42
42
|
standout: string | boolean;
|
|
43
|
-
|
|
43
|
+
stackLabel: boolean;
|
|
44
44
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
45
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
46
|
export default _default;
|
|
@@ -158,13 +158,9 @@ const forgetPassword = async () => {
|
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
const hasBioLogin = ref(false);
|
|
162
|
-
if (localStorage.getItem("username")) {
|
|
163
|
-
hasBioLogin.value = true;
|
|
164
|
-
}
|
|
165
161
|
const bioLogin = async () => {
|
|
166
162
|
try {
|
|
167
|
-
await api.auth.WebAuthn.login(
|
|
163
|
+
await api.auth.WebAuthn.login();
|
|
168
164
|
window.self.location.reload();
|
|
169
165
|
} catch (e) {
|
|
170
166
|
$q.notify({
|
|
@@ -275,9 +271,9 @@ const facebookLogin = (accessToken) => {
|
|
|
275
271
|
</q-form>
|
|
276
272
|
</q-card-section>
|
|
277
273
|
<q-card-actions>
|
|
274
|
+
<l-btn outline rounded color="primary" icon="sym_o_fingerprint" @click="bioLogin" />
|
|
278
275
|
<l-btn label="Login" outline rounded color="primary" icon="sym_o_login" @click="submit"
|
|
279
276
|
v-if="passwordBasedEnabled" />
|
|
280
|
-
<l-btn v-if="hasBioLogin" outline rounded color="primary" icon="sym_o_fingerprint" @click="bioLogin" />
|
|
281
277
|
<l-btn label="Forget password" outline rounded color="primary" icon="sym_o_lock_reset" @click="forgetPassword"
|
|
282
278
|
v-if="forgetPasswordEnabled" />
|
|
283
279
|
</q-card-actions>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
-
value?: any;
|
|
3
2
|
dense?: any;
|
|
3
|
+
value?: any;
|
|
4
4
|
$props: {
|
|
5
|
-
readonly value?: any;
|
|
6
5
|
readonly dense?: any;
|
|
6
|
+
readonly value?: any;
|
|
7
7
|
};
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
9
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useHead, useLight } from "#imports";
|
|
3
3
|
import { useRouter, useRoute } from "vue-router";
|
|
4
|
-
import
|
|
4
|
+
import model from "../composables/model";
|
|
5
|
+
import getID from "../composables/getID";
|
|
5
6
|
import { computed } from "vue";
|
|
6
7
|
const router = useRouter();
|
|
7
8
|
const route = useRoute();
|
|
@@ -25,14 +25,14 @@ declare const __VLS_self: import("vue").DefineComponent<LPageProps, {
|
|
|
25
25
|
onDelete: typeof onDelete;
|
|
26
26
|
localClass: typeof localClass;
|
|
27
27
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
|
|
28
|
-
title: string;
|
|
29
28
|
padding: boolean;
|
|
29
|
+
title: string;
|
|
30
30
|
gutter: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
31
|
backBtn: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const __VLS_component: import("vue").DefineComponent<LPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LPageProps> & Readonly<{}>, {
|
|
34
|
-
title: string;
|
|
35
34
|
padding: boolean;
|
|
35
|
+
title: string;
|
|
36
36
|
gutter: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
37
37
|
backBtn: boolean;
|
|
38
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { QSelectProps } from "quasar";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<QSelectProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QSelectProps> & Readonly<{}>, {
|
|
3
3
|
dense: boolean;
|
|
4
|
-
square: boolean;
|
|
5
4
|
rounded: boolean;
|
|
6
|
-
|
|
5
|
+
square: boolean;
|
|
6
|
+
hideBottomSpace: boolean;
|
|
7
7
|
filled: boolean;
|
|
8
|
-
|
|
8
|
+
outlined: boolean;
|
|
9
9
|
standout: string | boolean;
|
|
10
|
-
|
|
10
|
+
stackLabel: boolean;
|
|
11
11
|
emitValue: boolean;
|
|
12
12
|
mapOptions: boolean;
|
|
13
13
|
optionValue: string | ((option: string | any) => any);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useQuasar, QTable, Dialog } from "quasar";
|
|
3
3
|
import { ref, computed, onMounted, useSlots, watch, reactive } from "vue";
|
|
4
|
-
import
|
|
4
|
+
import useLight from "../composables/useLight";
|
|
5
|
+
import GQLFieldBuilder from "../composables/GQLFieldBuilder";
|
|
6
|
+
import model from "../composables/model";
|
|
5
7
|
import { toQuery } from "@hostlink/light";
|
|
6
8
|
import { collect } from "#imports";
|
|
7
9
|
import { useI18n } from "vue-i18n";
|
|
@@ -154,25 +154,26 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
154
154
|
onAdd: typeof onAdd;
|
|
155
155
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
156
156
|
delete: (p: any) => any;
|
|
157
|
-
"request-data": (p: LTableRequest) => any;
|
|
158
|
-
"update:selected": (p: any[]) => any;
|
|
159
157
|
"update:minimized": (value: boolean) => any;
|
|
160
158
|
"update:maximized": (value: boolean) => any;
|
|
159
|
+
"request-data": (p: LTableRequest) => any;
|
|
160
|
+
"update:selected": (p: any[]) => any;
|
|
161
161
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
162
162
|
onDelete?: ((p: any) => any) | undefined;
|
|
163
|
-
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
164
|
-
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
165
163
|
"onUpdate:minimized"?: ((value: boolean) => any) | undefined;
|
|
166
164
|
"onUpdate:maximized"?: ((value: boolean) => any) | undefined;
|
|
165
|
+
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
166
|
+
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
167
167
|
}>, {
|
|
168
168
|
flat: boolean;
|
|
169
|
-
fullscreen: boolean;
|
|
170
169
|
dense: boolean;
|
|
171
170
|
dark: boolean | null;
|
|
172
171
|
bordered: boolean;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
fullscreen: boolean;
|
|
173
|
+
minimizable: boolean;
|
|
174
|
+
maximizable: boolean;
|
|
175
|
+
selected: any[];
|
|
176
|
+
actions: Array<string>;
|
|
176
177
|
pagination: {
|
|
177
178
|
sortBy?: string | null;
|
|
178
179
|
descending?: boolean;
|
|
@@ -180,37 +181,37 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
180
181
|
rowsPerPage?: number;
|
|
181
182
|
rowsNumber?: number;
|
|
182
183
|
};
|
|
184
|
+
selection: "none" | "multiple" | "single";
|
|
185
|
+
loadingLabel: string;
|
|
186
|
+
noDataLabel: string;
|
|
183
187
|
rowsPerPageOptions: readonly any[];
|
|
184
|
-
|
|
185
|
-
selected: any[];
|
|
186
|
-
actions: Array<string>;
|
|
188
|
+
rowsPerPageLabel: string;
|
|
187
189
|
searchable: any;
|
|
188
|
-
maximizable: boolean;
|
|
189
|
-
minimizable: boolean;
|
|
190
190
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
191
191
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
192
192
|
requestServerInteraction: typeof requestServerInteraction;
|
|
193
193
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
194
194
|
delete: (p: any) => any;
|
|
195
|
-
"request-data": (p: LTableRequest) => any;
|
|
196
|
-
"update:selected": (p: any[]) => any;
|
|
197
195
|
"update:minimized": (value: boolean) => any;
|
|
198
196
|
"update:maximized": (value: boolean) => any;
|
|
197
|
+
"request-data": (p: LTableRequest) => any;
|
|
198
|
+
"update:selected": (p: any[]) => any;
|
|
199
199
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
200
200
|
onDelete?: ((p: any) => any) | undefined;
|
|
201
|
-
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
202
|
-
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
203
201
|
"onUpdate:minimized"?: ((value: boolean) => any) | undefined;
|
|
204
202
|
"onUpdate:maximized"?: ((value: boolean) => any) | undefined;
|
|
203
|
+
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
204
|
+
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
205
205
|
}>, {
|
|
206
206
|
flat: boolean;
|
|
207
|
-
fullscreen: boolean;
|
|
208
207
|
dense: boolean;
|
|
209
208
|
dark: boolean | null;
|
|
210
209
|
bordered: boolean;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
fullscreen: boolean;
|
|
211
|
+
minimizable: boolean;
|
|
212
|
+
maximizable: boolean;
|
|
213
|
+
selected: any[];
|
|
214
|
+
actions: Array<string>;
|
|
214
215
|
pagination: {
|
|
215
216
|
sortBy?: string | null;
|
|
216
217
|
descending?: boolean;
|
|
@@ -218,13 +219,12 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
218
219
|
rowsPerPage?: number;
|
|
219
220
|
rowsNumber?: number;
|
|
220
221
|
};
|
|
222
|
+
selection: "none" | "multiple" | "single";
|
|
223
|
+
loadingLabel: string;
|
|
224
|
+
noDataLabel: string;
|
|
221
225
|
rowsPerPageOptions: readonly any[];
|
|
222
|
-
|
|
223
|
-
selected: any[];
|
|
224
|
-
actions: Array<string>;
|
|
226
|
+
rowsPerPageLabel: string;
|
|
225
227
|
searchable: any;
|
|
226
|
-
maximizable: boolean;
|
|
227
|
-
minimizable: boolean;
|
|
228
228
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
229
229
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
230
230
|
export default _default;
|
|
@@ -32,8 +32,8 @@ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
33
33
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
-
required: boolean;
|
|
36
35
|
mask: string;
|
|
36
|
+
required: boolean;
|
|
37
37
|
hideBottomSpace: boolean;
|
|
38
38
|
format24h: boolean;
|
|
39
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -42,8 +42,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
43
43
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
|
-
required: boolean;
|
|
46
45
|
mask: string;
|
|
46
|
+
required: boolean;
|
|
47
47
|
hideBottomSpace: boolean;
|
|
48
48
|
format24h: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): any;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { toQuery } from "@hostlink/light";
|
|
2
|
+
import { defu } from "defu";
|
|
2
3
|
export default function() {
|
|
3
|
-
const merge = (obj1, obj2) => {
|
|
4
|
-
for (let key in obj2) {
|
|
5
|
-
if (obj2.hasOwnProperty(key)) {
|
|
6
|
-
obj1[key] = obj1[key] && obj1[key].toString() === "[object Object]" ? merge(obj1[key], obj2[key]) : obj1[key] = obj2[key];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return obj1;
|
|
10
|
-
};
|
|
11
4
|
let fields = {};
|
|
12
5
|
return {
|
|
13
6
|
//deep merge
|
|
14
|
-
merge,
|
|
7
|
+
merge: defu,
|
|
15
8
|
add: (f) => {
|
|
16
9
|
if (typeof f === "string") {
|
|
17
|
-
fields[f]
|
|
10
|
+
fields = defu(fields, { [f]: true });
|
|
18
11
|
return;
|
|
19
12
|
}
|
|
20
13
|
if (Array.isArray(f)) {
|
|
21
14
|
f.forEach((item) => {
|
|
22
|
-
fields[item]
|
|
15
|
+
fields = defu(fields, { [item]: true });
|
|
23
16
|
});
|
|
24
17
|
return;
|
|
25
18
|
}
|
|
26
19
|
if (typeof f === "object") {
|
|
27
|
-
fields =
|
|
20
|
+
fields = defu(fields, toQuery(f));
|
|
28
21
|
return;
|
|
29
22
|
}
|
|
30
23
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type LightModelField, type LightModel } from "./defineLightModel.js";
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const notify: (message: string, color?: string) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import f from "./f.js";
|
|
2
2
|
import { jsonToGraphQLQuery } from "json-to-graphql-query";
|
|
3
3
|
import { toQuery } from "@hostlink/light";
|
|
4
|
-
import { api } from "./
|
|
4
|
+
import { default as api } from "./api.js";
|
|
5
5
|
export default async function(operation, args = null, fields = []) {
|
|
6
6
|
let query;
|
|
7
7
|
if (operation instanceof Object) {
|