@hostlink/nuxt-light 1.42.2 → 1.44.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 +3 -3
- package/dist/runtime/components/L/CustomField/Add.d.vue.ts +8 -0
- package/dist/runtime/components/L/CustomField/List.d.vue.ts +13 -0
- package/dist/runtime/components/L/Database/create-table-dialog.d.vue.ts +5 -0
- package/dist/runtime/components/L/Fieldset.d.vue.ts +16 -0
- package/dist/runtime/components/L/ForgetPasswordDialog.d.vue.ts +2 -0
- package/dist/runtime/components/L/Revision.d.vue.ts +9 -0
- package/dist/runtime/components/L/Storage.d.vue.ts +7 -0
- package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +19 -0
- package/dist/runtime/components/L/System/Setting/developer.d.vue.ts +13 -0
- package/dist/runtime/components/L/System/Setting/forget-password.d.vue.ts +15 -0
- package/dist/runtime/components/L/System/Setting/general.d.vue.ts +17 -0
- package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +20 -0
- package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +9 -0
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +33 -0
- package/dist/runtime/components/L/User/eventlog.d.vue.ts +6 -0
- package/dist/runtime/components/L/User/overview.d.vue.ts +12 -0
- package/dist/runtime/components/L/User/userlog.d.vue.ts +6 -0
- package/dist/runtime/components/L/ValidationInput.d.vue.ts +7 -0
- package/dist/runtime/components/MyTest.d.vue.ts +7 -0
- package/dist/runtime/components/l-add-btn.d.vue.ts +11 -0
- package/dist/runtime/components/l-alert.d.vue.ts +14 -0
- package/dist/runtime/components/l-app-main.d.vue.ts +18 -0
- package/dist/runtime/components/l-app-main.vue +3 -0
- package/dist/runtime/components/l-app-main.vue.d.ts +3 -1
- package/dist/runtime/components/l-app.d.vue.ts +11 -0
- package/dist/runtime/components/l-app.vue +5 -1
- package/dist/runtime/components/l-app.vue.d.ts +2 -0
- package/dist/runtime/components/l-audit-card.d.vue.ts +24 -0
- package/dist/runtime/components/l-back-btn.d.vue.ts +2 -0
- package/dist/runtime/components/l-banner.d.vue.ts +20 -0
- package/dist/runtime/components/l-bar.d.vue.ts +20 -0
- package/dist/runtime/components/l-btn.d.vue.ts +22 -0
- package/dist/runtime/components/l-card.d.vue.ts +42 -0
- package/dist/runtime/components/l-checkbox.d.vue.ts +13 -0
- package/dist/runtime/components/l-col.d.vue.ts +23 -0
- package/dist/runtime/components/l-customizer.d.vue.ts +20 -0
- package/dist/runtime/components/l-date-picker.d.vue.ts +49 -0
- package/dist/runtime/components/l-delete-btn.d.vue.ts +8 -0
- package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +5 -0
- package/dist/runtime/components/l-drag-drop-container.d.vue.ts +7 -0
- package/dist/runtime/components/l-drag-drop-group.d.vue.ts +14 -0
- package/dist/runtime/components/l-drag-drop.d.vue.ts +13 -0
- package/dist/runtime/components/l-edit-btn.d.vue.ts +2 -0
- package/dist/runtime/components/l-editor.d.vue.ts +15 -0
- package/dist/runtime/components/l-facebook-button.d.vue.ts +4 -0
- package/dist/runtime/components/l-fav-menu.d.vue.ts +9 -0
- package/dist/runtime/components/l-field.d.vue.ts +23 -0
- package/dist/runtime/components/l-file-manager-labels.d.vue.ts +4 -0
- package/dist/runtime/components/l-file-manager-move.d.vue.ts +8 -0
- package/dist/runtime/components/l-file-manager-preview.d.vue.ts +9 -0
- package/dist/runtime/components/l-file-manager.d.vue.ts +16 -0
- package/dist/runtime/components/l-file-upload.d.vue.ts +45 -0
- package/dist/runtime/components/l-file.d.vue.ts +25 -0
- package/dist/runtime/components/l-form-dialog.d.vue.ts +25 -0
- package/dist/runtime/components/l-form.d.vue.ts +74 -0
- package/dist/runtime/components/l-group-select.d.vue.ts +11 -0
- package/dist/runtime/components/l-icon-picker.d.vue.ts +20 -0
- package/dist/runtime/components/l-input-xlsx.d.vue.ts +10 -0
- package/dist/runtime/components/l-input.d.vue.ts +36 -0
- package/dist/runtime/components/l-item.d.vue.ts +28 -0
- package/dist/runtime/components/l-link.d.vue.ts +16 -0
- package/dist/runtime/components/l-list.d.vue.ts +21 -0
- package/dist/runtime/components/l-login.d.vue.ts +17 -0
- package/dist/runtime/components/l-menu.d.vue.ts +9 -0
- package/dist/runtime/components/l-microsoft-button.d.vue.ts +18 -0
- package/dist/runtime/components/l-page.d.vue.ts +29 -0
- package/dist/runtime/components/l-row.d.vue.ts +17 -0
- package/dist/runtime/components/l-save-btn.d.vue.ts +2 -0
- package/dist/runtime/components/l-select.d.vue.ts +17 -0
- package/dist/runtime/components/l-small-box.d.vue.ts +13 -0
- package/dist/runtime/components/l-statistic.d.vue.ts +9 -0
- package/dist/runtime/components/l-tab.d.vue.ts +13 -0
- package/dist/runtime/components/l-table.d.vue.ts +109 -0
- package/dist/runtime/components/l-table.vue +22 -45
- package/dist/runtime/components/l-table.vue.d.ts +1 -1
- package/dist/runtime/components/l-tabs.d.vue.ts +30 -0
- package/dist/runtime/components/l-test2.d.vue.ts +2 -0
- package/dist/runtime/components/l-time-picker.d.vue.ts +37 -0
- package/dist/runtime/components/l-view-btn.d.vue.ts +2 -0
- package/dist/runtime/composables/list.d.ts +3 -7
- package/dist/runtime/composables/list.js +3 -38
- package/dist/runtime/formkit/Checkbox.d.vue.ts +15 -0
- package/dist/runtime/formkit/DatePicker.d.vue.ts +15 -0
- package/dist/runtime/formkit/Editor.d.vue.ts +14 -0
- package/dist/runtime/formkit/File.d.vue.ts +15 -0
- package/dist/runtime/formkit/FilePicker.d.vue.ts +15 -0
- package/dist/runtime/formkit/FileUpload.d.vue.ts +15 -0
- package/dist/runtime/formkit/Form.d.vue.ts +24 -0
- package/dist/runtime/formkit/GroupSelect.d.vue.ts +15 -0
- package/dist/runtime/formkit/Input.d.vue.ts +22 -0
- package/dist/runtime/formkit/InputXlsx.d.vue.ts +14 -0
- package/dist/runtime/formkit/OptionGroup.d.vue.ts +7 -0
- package/dist/runtime/formkit/Radio.d.vue.ts +14 -0
- package/dist/runtime/formkit/Repeater.d.vue.ts +18 -0
- package/dist/runtime/formkit/Repeater.vue +32 -28
- package/dist/runtime/formkit/Select.d.vue.ts +15 -0
- package/dist/runtime/formkit/Textarea.d.vue.ts +22 -0
- package/dist/runtime/formkit/TimePicker.d.vue.ts +15 -0
- package/dist/runtime/formkit/Toggle.d.vue.ts +16 -0
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.d.vue.ts +2 -0
- package/dist/runtime/pages/CustomField/index.d.vue.ts +2 -0
- package/dist/runtime/pages/EventLog/_eventlog_id/view.d.vue.ts +2 -0
- package/dist/runtime/pages/EventLog/index.d.vue.ts +2 -0
- package/dist/runtime/pages/FileManager/index.d.vue.ts +2 -0
- package/dist/runtime/pages/MailLog/index.d.vue.ts +2 -0
- package/dist/runtime/pages/Permission/add.d.vue.ts +2 -0
- package/dist/runtime/pages/Permission/all.d.vue.ts +2 -0
- package/dist/runtime/pages/Permission/export.d.vue.ts +2 -0
- package/dist/runtime/pages/Permission/index.d.vue.ts +2 -0
- package/dist/runtime/pages/Role/_name/update-child.d.vue.ts +2 -0
- package/dist/runtime/pages/Role/add.d.vue.ts +2 -0
- package/dist/runtime/pages/Role/add2.d.vue.ts +2 -0
- package/dist/runtime/pages/Role/index.d.vue.ts +2 -0
- package/dist/runtime/pages/System/database/backup.d.vue.ts +2 -0
- package/dist/runtime/pages/System/database/process.d.vue.ts +2 -0
- package/dist/runtime/pages/System/database/restore.d.vue.ts +2 -0
- package/dist/runtime/pages/System/database/table.d.vue.ts +2 -0
- package/dist/runtime/pages/System/fs.d.vue.ts +2 -0
- package/dist/runtime/pages/System/index.d.vue.ts +2 -0
- package/dist/runtime/pages/System/mailtest.d.vue.ts +2 -0
- package/dist/runtime/pages/System/menu/index.d.vue.ts +2 -0
- package/dist/runtime/pages/System/package.d.vue.ts +2 -0
- package/dist/runtime/pages/System/phpinfo.d.vue.ts +2 -0
- package/dist/runtime/pages/System/setting.d.vue.ts +2 -0
- package/dist/runtime/pages/System/test.d.vue.ts +2 -0
- package/dist/runtime/pages/System/view_as.d.vue.ts +2 -0
- package/dist/runtime/pages/System/view_as.vue +14 -4
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.d.vue.ts +2 -0
- package/dist/runtime/pages/SystemValue/add.d.vue.ts +2 -0
- package/dist/runtime/pages/SystemValue/index.d.vue.ts +2 -0
- package/dist/runtime/pages/Translate/index.d.vue.ts +2 -0
- package/dist/runtime/pages/User/_user_id/change-password.d.vue.ts +2 -0
- package/dist/runtime/pages/User/_user_id/edit.d.vue.ts +2 -0
- package/dist/runtime/pages/User/_user_id/update-role.d.vue.ts +2 -0
- package/dist/runtime/pages/User/_user_id/view.d.vue.ts +2 -0
- package/dist/runtime/pages/User/_user_id/view.vue +9 -5
- package/dist/runtime/pages/User/add.d.vue.ts +2 -0
- package/dist/runtime/pages/User/index.d.vue.ts +2 -0
- package/dist/runtime/pages/User/profile.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/bio-auth.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/index.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/information.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/my_favorite.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/open_id.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/password.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/style.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting/two-factor-auth.d.vue.ts +2 -0
- package/dist/runtime/pages/User/setting.d.vue.ts +2 -0
- package/dist/runtime/pages/UserLog/index.d.vue.ts +2 -0
- package/dist/runtime/plugin.js +23 -1
- package/package.json +2 -2
- package/dist/runtime/composables/GQLFieldBuilder.d.ts +0 -1
- package/dist/runtime/composables/GQLFieldBuilder.js +0 -28
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { QTabPanelProps, QTabProps } from 'quasar';
|
|
2
|
+
declare var __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_5) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<QTabPanelProps | QTabProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QTabPanelProps | QTabProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Dialog } from 'quasar';
|
|
2
|
+
import type { QTableColumn, QTableProps } from 'quasar';
|
|
3
|
+
export interface LTableColumn extends QTableColumn {
|
|
4
|
+
searchable?: boolean;
|
|
5
|
+
searchType?: string;
|
|
6
|
+
searchOptions?: Array<any> | Function;
|
|
7
|
+
searchMultiple?: boolean;
|
|
8
|
+
gqlField?: string | Array<string> | Object;
|
|
9
|
+
backgroundColor?: string | Function;
|
|
10
|
+
searchMethod?: string;
|
|
11
|
+
}
|
|
12
|
+
export type LTableProps = QTableProps & {
|
|
13
|
+
columns?: Array<LTableColumn>;
|
|
14
|
+
actions?: Array<string>;
|
|
15
|
+
sortBy?: any;
|
|
16
|
+
rowKey?: string;
|
|
17
|
+
modelName?: any;
|
|
18
|
+
searchable?: boolean;
|
|
19
|
+
selected?: Array<any>;
|
|
20
|
+
onRequestData?: (request: LTableRequest) => void;
|
|
21
|
+
addComponent?: Dialog;
|
|
22
|
+
addComponentProps?: any;
|
|
23
|
+
rows?: Array<any>;
|
|
24
|
+
};
|
|
25
|
+
export interface LTableRequest {
|
|
26
|
+
sort: string;
|
|
27
|
+
fields: Array<any> | Object;
|
|
28
|
+
gql: {
|
|
29
|
+
__args: {
|
|
30
|
+
filters: any;
|
|
31
|
+
sort: string;
|
|
32
|
+
};
|
|
33
|
+
data: {
|
|
34
|
+
__args: {
|
|
35
|
+
limit: number;
|
|
36
|
+
};
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
meta: {
|
|
40
|
+
total: boolean;
|
|
41
|
+
key: boolean;
|
|
42
|
+
name: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
offset: number;
|
|
46
|
+
limit: number;
|
|
47
|
+
loadData: (model: string, filters: any, fields: Array<any> | Object) => void;
|
|
48
|
+
loadObjects: (model: string, filters: any, fields: Array<any> | Object) => void;
|
|
49
|
+
setData: (data: {
|
|
50
|
+
data: Array<{
|
|
51
|
+
data: any;
|
|
52
|
+
}>;
|
|
53
|
+
meta: {
|
|
54
|
+
total: number;
|
|
55
|
+
key: string;
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
58
|
+
}) => void;
|
|
59
|
+
}
|
|
60
|
+
declare function requestServerInteraction(): void;
|
|
61
|
+
declare var __VLS_91: any, __VLS_94: string, __VLS_95: any, __VLS_117: any, __VLS_184: string, __VLS_185: any;
|
|
62
|
+
type __VLS_Slots = {} & {
|
|
63
|
+
[K in NonNullable<typeof __VLS_94>]?: (props: typeof __VLS_95) => any;
|
|
64
|
+
} & {
|
|
65
|
+
[K in NonNullable<typeof __VLS_184>]?: (props: typeof __VLS_185) => any;
|
|
66
|
+
} & {
|
|
67
|
+
actions?: (props: typeof __VLS_91) => any;
|
|
68
|
+
} & {
|
|
69
|
+
'row-expand'?: (props: typeof __VLS_117) => any;
|
|
70
|
+
};
|
|
71
|
+
declare const __VLS_component: import("vue").DefineComponent<LTableProps, {
|
|
72
|
+
requestServerInteraction: typeof requestServerInteraction;
|
|
73
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
|
+
delete: (p: any) => any;
|
|
75
|
+
"request-data": (p: LTableRequest) => any;
|
|
76
|
+
"update:selected": (p: any[]) => any;
|
|
77
|
+
}, string, import("vue").PublicProps, Readonly<LTableProps> & Readonly<{
|
|
78
|
+
onDelete?: ((p: any) => any) | undefined;
|
|
79
|
+
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
80
|
+
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
flat: boolean;
|
|
83
|
+
dense: boolean;
|
|
84
|
+
dark: boolean | null;
|
|
85
|
+
bordered: boolean;
|
|
86
|
+
fullscreen: boolean;
|
|
87
|
+
selected: any[];
|
|
88
|
+
actions: Array<string>;
|
|
89
|
+
pagination: {
|
|
90
|
+
sortBy?: string | null;
|
|
91
|
+
descending?: boolean;
|
|
92
|
+
page?: number;
|
|
93
|
+
rowsPerPage?: number;
|
|
94
|
+
rowsNumber?: number;
|
|
95
|
+
};
|
|
96
|
+
selection: "none" | "multiple" | "single";
|
|
97
|
+
loadingLabel: string;
|
|
98
|
+
noDataLabel: string;
|
|
99
|
+
rowsPerPageOptions: readonly any[];
|
|
100
|
+
rowsPerPageLabel: string;
|
|
101
|
+
searchable: boolean;
|
|
102
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
103
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
104
|
+
export default _default;
|
|
105
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -3,10 +3,9 @@ import { useQuasar, QTable, Dialog } from "quasar";
|
|
|
3
3
|
import { defu } from "defu";
|
|
4
4
|
import { ref, computed, onMounted, useSlots, watch, reactive } from "vue";
|
|
5
5
|
import useLight from "../composables/useLight";
|
|
6
|
-
import GQLFieldBuilder from "../composables/GQLFieldBuilder";
|
|
7
6
|
import model from "../composables/model";
|
|
8
7
|
import { toQuery } from "@hostlink/light";
|
|
9
|
-
import {
|
|
8
|
+
import { list } from "#imports";
|
|
10
9
|
import { useI18n } from "vue-i18n";
|
|
11
10
|
const $q = useQuasar();
|
|
12
11
|
const { t } = useI18n();
|
|
@@ -180,37 +179,39 @@ const validateData = () => {
|
|
|
180
179
|
};
|
|
181
180
|
const onLocalRequest = async (p) => {
|
|
182
181
|
if (!isServerSide) return;
|
|
182
|
+
let localFields = {};
|
|
183
183
|
let sort = "";
|
|
184
184
|
if (p.pagination.sortBy) {
|
|
185
185
|
sort = p.pagination.sortBy + ":" + (p.pagination.descending ? "desc" : "asc");
|
|
186
186
|
}
|
|
187
|
-
const builder = GQLFieldBuilder();
|
|
188
187
|
if (props.rowKey) {
|
|
189
|
-
|
|
188
|
+
localFields = defu(localFields, {
|
|
189
|
+
[props.rowKey]: true
|
|
190
|
+
});
|
|
190
191
|
}
|
|
191
192
|
props.columns?.forEach((col) => {
|
|
192
193
|
if (col.gqlField) {
|
|
193
|
-
|
|
194
|
+
localFields = defu(localFields, col.gqlField);
|
|
194
195
|
return;
|
|
195
196
|
}
|
|
196
197
|
if (!col.name) return;
|
|
197
198
|
if (col.name.startsWith("_")) {
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
+
localFields = defu(localFields, { [col.name]: true });
|
|
201
202
|
});
|
|
202
203
|
if (actionView) {
|
|
203
|
-
|
|
204
|
+
localFields = defu(localFields, { canView: true });
|
|
204
205
|
}
|
|
205
206
|
if (actionDelete) {
|
|
206
|
-
|
|
207
|
+
localFields = defu(localFields, { canDelete: true });
|
|
207
208
|
}
|
|
208
209
|
if (activeEdit) {
|
|
209
|
-
|
|
210
|
+
localFields = defu(localFields, { canUpdate: true });
|
|
210
211
|
}
|
|
211
212
|
const callback = {
|
|
212
213
|
sort,
|
|
213
|
-
fields:
|
|
214
|
+
fields: localFields,
|
|
214
215
|
offset: (p.pagination.page - 1) * p.pagination.rowsPerPage,
|
|
215
216
|
limit: p.pagination.rowsPerPage,
|
|
216
217
|
gql: {
|
|
@@ -223,7 +224,7 @@ const onLocalRequest = async (p) => {
|
|
|
223
224
|
limit: p.pagination.rowsPerPage,
|
|
224
225
|
offset: (p.pagination.page - 1) * p.pagination.rowsPerPage
|
|
225
226
|
},
|
|
226
|
-
...toQuery(
|
|
227
|
+
...toQuery(localFields)
|
|
227
228
|
},
|
|
228
229
|
meta: {
|
|
229
230
|
total: true,
|
|
@@ -259,52 +260,28 @@ const onLocalRequest = async (p) => {
|
|
|
259
260
|
}
|
|
260
261
|
if (Array.isArray(fields)) {
|
|
261
262
|
fields.forEach((f) => {
|
|
262
|
-
|
|
263
|
+
localFields = defu(localFields, { [f]: true });
|
|
263
264
|
});
|
|
264
265
|
} else {
|
|
265
|
-
|
|
266
|
+
localFields = defu(localFields, fields);
|
|
266
267
|
}
|
|
267
268
|
let localFilters = getFilterValue();
|
|
268
269
|
if (filters2) {
|
|
269
|
-
localFilters =
|
|
270
|
-
...localFilters,
|
|
271
|
-
...filters2
|
|
272
|
-
};
|
|
270
|
+
localFilters = defu(localFilters, filters2);
|
|
273
271
|
}
|
|
274
272
|
loading.value = true;
|
|
275
273
|
try {
|
|
276
|
-
let
|
|
277
|
-
|
|
278
|
-
for (let [key, value] of Object.entries(localFilters)) {
|
|
279
|
-
if (typeof value == "object" && value !== null) {
|
|
280
|
-
const filterValue = value;
|
|
281
|
-
if (filterValue.contains) {
|
|
282
|
-
c = c.whereContains(key, filterValue.contains);
|
|
283
|
-
}
|
|
284
|
-
if (filterValue.between) {
|
|
285
|
-
c = c.whereBetween(key, filterValue.between);
|
|
286
|
-
}
|
|
287
|
-
} else {
|
|
288
|
-
c = c.where(key, value);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
274
|
+
let l = list(model2, localFields);
|
|
275
|
+
l = l.filters(localFilters);
|
|
292
276
|
if (sort) {
|
|
293
|
-
|
|
294
|
-
c = c.sortBy(sort.split(":")[0]);
|
|
295
|
-
} else {
|
|
296
|
-
c = c.sortByDesc(sort.split(":")[0]);
|
|
297
|
-
}
|
|
277
|
+
l = l.sort(sort);
|
|
298
278
|
}
|
|
299
279
|
if (p.pagination.rowsPerPage != 0) {
|
|
300
|
-
|
|
280
|
+
l = l.limit(p.pagination.rowsPerPage);
|
|
281
|
+
l = l.offset((p.pagination.page - 1) * p.pagination.rowsPerPage);
|
|
301
282
|
}
|
|
302
|
-
const data = await
|
|
303
|
-
|
|
304
|
-
data,
|
|
305
|
-
meta: c.meta
|
|
306
|
-
};
|
|
307
|
-
this.setData(allData);
|
|
283
|
+
const data = await l.fetchWithMeta();
|
|
284
|
+
this.setData(data);
|
|
308
285
|
} catch (e) {
|
|
309
286
|
quasar.dialog({
|
|
310
287
|
message: e,
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { QTabsProps } from 'quasar';
|
|
2
|
+
export interface LTabsProps extends QTabsProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
route?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = LTabsProps;
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
+
modelValue?: any;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_10: {}, __VLS_16: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_10) => any;
|
|
13
|
+
} & {
|
|
14
|
+
default?: (props: typeof __VLS_16) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: any) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
name: string;
|
|
22
|
+
align: "left" | "right" | "center" | "justify";
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface LTimePickerProps {
|
|
2
|
+
modelValue?: any;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
nowBtn?: boolean;
|
|
7
|
+
withSeconds?: boolean;
|
|
8
|
+
format24h?: boolean;
|
|
9
|
+
mask?: string;
|
|
10
|
+
hideBottomSpace?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = LTimePickerProps;
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
15
|
+
modelValue?: any;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_25: string | number, __VLS_26: any;
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
[K in NonNullable<typeof __VLS_25>]?: (props: typeof __VLS_26) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: any) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
mask: string;
|
|
27
|
+
required: boolean;
|
|
28
|
+
hideBottomSpace: boolean;
|
|
29
|
+
format24h: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
filters?: object;
|
|
5
|
-
offset?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
} | null, fields?: Fields): Promise<any>;
|
|
1
|
+
import { default as api } from "./api.js";
|
|
2
|
+
declare const _default: (name: string, fields: Object) => ReturnType<typeof api.list>;
|
|
3
|
+
export default _default;
|
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
import { toQuery } from "@hostlink/light";
|
|
2
1
|
import { default as api } from "./api.js";
|
|
3
|
-
export default
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (props.sort) {
|
|
7
|
-
q.__args = q.__args || {};
|
|
8
|
-
q.__args.sort = props.sort;
|
|
9
|
-
}
|
|
10
|
-
if (props.filters) {
|
|
11
|
-
q.__args = q.__args || {};
|
|
12
|
-
q.__args.filters = props.filters;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
q.data = {};
|
|
16
|
-
if (props) {
|
|
17
|
-
if (props.offset) {
|
|
18
|
-
q.data.__args = q.data.__args || {};
|
|
19
|
-
q.data.__args.offset = props.offset;
|
|
20
|
-
}
|
|
21
|
-
if (props.limit) {
|
|
22
|
-
q.data.__args = q.data.__args || {};
|
|
23
|
-
q.data.__args.limit = props.limit;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
q.data = {
|
|
27
|
-
...q.data,
|
|
28
|
-
...toQuery(fields)
|
|
29
|
-
};
|
|
30
|
-
q.meta = {
|
|
31
|
-
total: true,
|
|
32
|
-
key: true,
|
|
33
|
-
name: true
|
|
34
|
-
};
|
|
35
|
-
const resp = await api.query({
|
|
36
|
-
[`list${name}`]: q
|
|
37
|
-
});
|
|
38
|
-
return resp[`list${name}`];
|
|
39
|
-
}
|
|
2
|
+
export default (name, fields) => {
|
|
3
|
+
return api.list(name, fields);
|
|
4
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare var __VLS_10: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
context: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
context: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
[x: string]: ((props: any) => any) | undefined;
|
|
14
|
+
[x: number]: ((props: any) => any) | undefined;
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare var __VLS_11: string | number, __VLS_12: any;
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
context: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
context: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
context?: Record<string, any> | undefined;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly context?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {}) => any) | undefined;
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
+
context?: Record<string, any> | undefined;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly context?: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
default?: ((props: {
|
|
14
|
+
value: any;
|
|
15
|
+
index: number;
|
|
16
|
+
node: any;
|
|
17
|
+
}) => any) | undefined;
|
|
18
|
+
};
|