@hostlink/nuxt-light 1.54.6 → 1.55.2
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/README.md +120 -120
- package/dist/module.json +1 -1
- package/dist/runtime/components/L/CustomField/Add.vue +40 -42
- package/dist/runtime/components/L/CustomField/List.vue +5 -5
- package/dist/runtime/components/L/Database/create-table-dialog.vue +33 -34
- package/dist/runtime/components/L/Fieldset.vue +8 -11
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +26 -27
- package/dist/runtime/components/L/Revision.vue +89 -93
- package/dist/runtime/components/L/Storage.vue +7 -7
- package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/authentication.vue +16 -16
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/developer.vue +10 -11
- package/dist/runtime/components/L/System/Setting/forget-password.vue +9 -9
- package/dist/runtime/components/L/System/Setting/general.vue +9 -9
- package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/mail.vue +28 -32
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/modules.vue +6 -6
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +1 -5
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +1 -5
- package/dist/runtime/components/L/System/Setting/security.vue +38 -41
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +1 -5
- package/dist/runtime/components/L/User/eventlog.vue +5 -5
- package/dist/runtime/components/L/User/overview.vue +19 -19
- package/dist/runtime/components/L/User/userlog.vue +1 -1
- package/dist/runtime/components/L/ValidationInput.vue +14 -14
- package/dist/runtime/components/MyTest.vue +3 -3
- package/dist/runtime/components/l-action-btn.vue +4 -4
- package/dist/runtime/components/l-add-btn.vue +3 -3
- package/dist/runtime/components/l-alert.vue +8 -8
- package/dist/runtime/components/l-app-main.d.vue.ts +1 -5
- package/dist/runtime/components/l-app-main.vue +170 -171
- package/dist/runtime/components/l-app-main.vue.d.ts +1 -5
- package/dist/runtime/components/l-app.vue +27 -27
- package/dist/runtime/components/l-audit-card.vue +8 -8
- package/dist/runtime/components/l-back-btn.vue +6 -6
- package/dist/runtime/components/l-banner.d.vue.ts +1 -1
- package/dist/runtime/components/l-banner.vue +10 -10
- package/dist/runtime/components/l-banner.vue.d.ts +1 -1
- package/dist/runtime/components/l-bar.vue +3 -3
- package/dist/runtime/components/l-btn.vue +4 -4
- package/dist/runtime/components/l-card.d.vue.ts +1 -9
- package/dist/runtime/components/l-card.vue +31 -31
- package/dist/runtime/components/l-card.vue.d.ts +1 -9
- package/dist/runtime/components/l-checkbox.vue +3 -3
- package/dist/runtime/components/l-col.vue +5 -5
- package/dist/runtime/components/l-customizer.d.vue.ts +2 -2
- package/dist/runtime/components/l-customizer.vue +95 -96
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -2
- package/dist/runtime/components/l-date-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-date-picker.vue +17 -17
- package/dist/runtime/components/l-date-picker.vue.d.ts +1 -1
- package/dist/runtime/components/l-delete-btn.vue +1 -1
- package/dist/runtime/components/l-dialog-database-field-add.vue +25 -26
- package/dist/runtime/components/l-drag-drop-container.vue +5 -5
- package/dist/runtime/components/l-drag-drop-group.vue +1 -1
- package/dist/runtime/components/l-drag-drop.vue +6 -6
- package/dist/runtime/components/l-edit-btn.vue +2 -2
- package/dist/runtime/components/l-editor.d.vue.ts +1 -5
- package/dist/runtime/components/l-editor.vue +41 -41
- package/dist/runtime/components/l-editor.vue.d.ts +1 -5
- package/dist/runtime/components/l-facebook-button.vue +2 -2
- package/dist/runtime/components/l-fav-menu.vue +14 -14
- package/dist/runtime/components/l-field.vue +3 -3
- package/dist/runtime/components/l-file-manager-labels.vue +11 -11
- package/dist/runtime/components/l-file-manager-move.vue +67 -67
- package/dist/runtime/components/l-file-manager-preview.vue +22 -22
- package/dist/runtime/components/l-file-manager.vue +243 -248
- package/dist/runtime/components/l-file-upload.d.vue.ts +1 -1
- package/dist/runtime/components/l-file-upload.vue +25 -25
- package/dist/runtime/components/l-file-upload.vue.d.ts +1 -1
- package/dist/runtime/components/l-file.d.vue.ts +1 -5
- package/dist/runtime/components/l-file.vue +8 -8
- package/dist/runtime/components/l-file.vue.d.ts +1 -5
- package/dist/runtime/components/l-form-dialog.vue +27 -27
- package/dist/runtime/components/l-form.d.vue.ts +1 -33
- package/dist/runtime/components/l-form.vue +11 -11
- package/dist/runtime/components/l-form.vue.d.ts +1 -33
- package/dist/runtime/components/l-group-select.vue +22 -22
- package/dist/runtime/components/l-icon-picker.vue +35 -38
- package/dist/runtime/components/l-input-select.vue +4 -4
- package/dist/runtime/components/l-input-xlsx.vue +30 -31
- package/dist/runtime/components/l-input.d.vue.ts +1 -1
- package/dist/runtime/components/l-input.vue +23 -23
- package/dist/runtime/components/l-input.vue.d.ts +1 -1
- package/dist/runtime/components/l-item.vue +18 -18
- package/dist/runtime/components/l-link.vue +3 -3
- package/dist/runtime/components/l-list.vue +12 -12
- package/dist/runtime/components/l-login.d.vue.ts +1 -5
- package/dist/runtime/components/l-login.vue +57 -57
- package/dist/runtime/components/l-login.vue.d.ts +1 -5
- package/dist/runtime/components/l-menu.vue +33 -34
- package/dist/runtime/components/l-microsoft-button.d.vue.ts +1 -11
- package/dist/runtime/components/l-microsoft-button.vue +68 -68
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +1 -11
- package/dist/runtime/components/l-page.vue +21 -21
- package/dist/runtime/components/l-repeater.d.vue.ts +36 -0
- package/dist/runtime/components/l-repeater.vue +153 -0
- package/dist/runtime/components/l-repeater.vue.d.ts +36 -0
- package/dist/runtime/components/l-row.vue +5 -5
- package/dist/runtime/components/l-save-btn.vue +2 -2
- package/dist/runtime/components/l-select.vue +1 -1
- package/dist/runtime/components/l-small-box.vue +9 -9
- package/dist/runtime/components/l-statistic.vue +9 -9
- package/dist/runtime/components/l-tab.vue +10 -10
- package/dist/runtime/components/l-table.d.vue.ts +1 -1
- package/dist/runtime/components/l-table.vue +176 -190
- package/dist/runtime/components/l-table.vue.d.ts +1 -1
- package/dist/runtime/components/l-tabs.vue +9 -9
- package/dist/runtime/components/l-test2.vue +3 -3
- package/dist/runtime/components/l-time-picker.d.vue.ts +1 -1
- package/dist/runtime/components/l-time-picker.vue +18 -18
- package/dist/runtime/components/l-time-picker.vue.d.ts +1 -1
- package/dist/runtime/components/l-view-btn.vue +2 -2
- package/dist/runtime/components/user-list.vue +3 -3
- package/dist/runtime/composables/mytest.js +2 -2
- package/dist/runtime/composables/tc2sc.js +85 -85
- package/dist/runtime/formkit/Checkbox.d.vue.ts +0 -1
- package/dist/runtime/formkit/Checkbox.vue +6 -6
- package/dist/runtime/formkit/Checkbox.vue.d.ts +0 -1
- package/dist/runtime/formkit/DatePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/DatePicker.vue +11 -11
- package/dist/runtime/formkit/DatePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/Editor.vue +7 -7
- package/dist/runtime/formkit/File.d.vue.ts +0 -1
- package/dist/runtime/formkit/File.vue +6 -6
- package/dist/runtime/formkit/File.vue.d.ts +0 -1
- package/dist/runtime/formkit/FilePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/FilePicker.vue +6 -6
- package/dist/runtime/formkit/FilePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/FileUpload.d.vue.ts +0 -1
- package/dist/runtime/formkit/FileUpload.vue +6 -6
- package/dist/runtime/formkit/FileUpload.vue.d.ts +0 -1
- package/dist/runtime/formkit/Form.d.vue.ts +1 -3
- package/dist/runtime/formkit/Form.vue +15 -13
- package/dist/runtime/formkit/Form.vue.d.ts +1 -3
- package/dist/runtime/formkit/GroupSelect.d.vue.ts +0 -1
- package/dist/runtime/formkit/GroupSelect.vue +7 -7
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +0 -1
- package/dist/runtime/formkit/Input.d.vue.ts +1 -1
- package/dist/runtime/formkit/Input.vue +11 -11
- package/dist/runtime/formkit/Input.vue.d.ts +1 -1
- package/dist/runtime/formkit/InputSelect.d.vue.ts +1 -1
- package/dist/runtime/formkit/InputSelect.vue +7 -7
- package/dist/runtime/formkit/InputSelect.vue.d.ts +1 -1
- package/dist/runtime/formkit/InputXlsx.vue +4 -4
- package/dist/runtime/formkit/OptionGroup.vue +5 -5
- package/dist/runtime/formkit/Radio.vue +4 -4
- package/dist/runtime/formkit/Repeater.d.vue.ts +1 -1
- package/dist/runtime/formkit/Repeater.vue +49 -37
- package/dist/runtime/formkit/Repeater.vue.d.ts +1 -1
- package/dist/runtime/formkit/Select.d.vue.ts +0 -1
- package/dist/runtime/formkit/Select.vue +6 -6
- package/dist/runtime/formkit/Select.vue.d.ts +0 -1
- package/dist/runtime/formkit/Textarea.d.vue.ts +1 -1
- package/dist/runtime/formkit/Textarea.vue +11 -11
- package/dist/runtime/formkit/Textarea.vue.d.ts +1 -1
- package/dist/runtime/formkit/TimePicker.d.vue.ts +0 -1
- package/dist/runtime/formkit/TimePicker.vue +10 -10
- package/dist/runtime/formkit/TimePicker.vue.d.ts +0 -1
- package/dist/runtime/formkit/Toggle.vue +3 -3
- package/dist/runtime/formkit/index.js +1 -1
- package/dist/runtime/index.d.ts +39 -39
- package/dist/runtime/locales/en.json +9 -9
- package/dist/runtime/locales/zh-hk.json +213 -213
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +33 -38
- package/dist/runtime/pages/CustomField/index.vue +12 -14
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +36 -36
- package/dist/runtime/pages/EventLog/index.vue +7 -7
- package/dist/runtime/pages/FileManager/index.vue +4 -4
- package/dist/runtime/pages/MailLog/index.vue +18 -18
- package/dist/runtime/pages/Permission/add.vue +13 -13
- package/dist/runtime/pages/Permission/all.vue +63 -68
- package/dist/runtime/pages/Permission/export.vue +9 -10
- package/dist/runtime/pages/Permission/index.vue +4 -4
- package/dist/runtime/pages/Role/_name/update-child.vue +4 -4
- package/dist/runtime/pages/Role/add.vue +7 -7
- package/dist/runtime/pages/Role/add2.vue +30 -30
- package/dist/runtime/pages/Role/index.vue +41 -33
- package/dist/runtime/pages/System/database/backup.vue +72 -72
- package/dist/runtime/pages/System/database/check.vue +72 -72
- package/dist/runtime/pages/System/database/event.vue +51 -51
- package/dist/runtime/pages/System/database/process.vue +21 -21
- package/dist/runtime/pages/System/database/restore.vue +110 -110
- package/dist/runtime/pages/System/database/table.vue +67 -69
- package/dist/runtime/pages/System/fs.vue +99 -99
- package/dist/runtime/pages/System/index.vue +16 -18
- package/dist/runtime/pages/System/mailtest.vue +12 -12
- package/dist/runtime/pages/System/menu/index.vue +142 -144
- package/dist/runtime/pages/System/package.vue +11 -11
- package/dist/runtime/pages/System/phpinfo.vue +3 -3
- package/dist/runtime/pages/System/setting.vue +28 -30
- package/dist/runtime/pages/System/test.vue +12 -12
- package/dist/runtime/pages/System/view_as.vue +21 -22
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +6 -6
- package/dist/runtime/pages/SystemValue/add.vue +7 -7
- package/dist/runtime/pages/SystemValue/index.vue +4 -4
- package/dist/runtime/pages/Translate/index.vue +38 -38
- package/dist/runtime/pages/User/_user_id/change-password.vue +17 -18
- package/dist/runtime/pages/User/_user_id/edit.vue +28 -28
- package/dist/runtime/pages/User/_user_id/update-role.vue +7 -8
- package/dist/runtime/pages/User/_user_id/view.vue +27 -30
- package/dist/runtime/pages/User/add.vue +35 -35
- package/dist/runtime/pages/User/index.vue +11 -11
- package/dist/runtime/pages/User/profile.vue +45 -46
- package/dist/runtime/pages/User/setting/bio-auth.vue +22 -22
- package/dist/runtime/pages/User/setting/favorite.vue +61 -62
- package/dist/runtime/pages/User/setting/index.vue +6 -6
- package/dist/runtime/pages/User/setting/information.vue +6 -6
- package/dist/runtime/pages/User/setting/menu.vue +165 -165
- package/dist/runtime/pages/User/setting/open_id.vue +161 -161
- package/dist/runtime/pages/User/setting/password.vue +19 -19
- package/dist/runtime/pages/User/setting/style.vue +104 -106
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +176 -176
- package/dist/runtime/pages/User/setting.vue +32 -32
- package/dist/runtime/pages/UserLog/index.vue +4 -4
- package/package.json +63 -63
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
4
|
+
type __VLS_WithSlots<T, S> = T & (new () => {
|
|
5
|
+
$slots: S;
|
|
6
|
+
});
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
|
+
$emit: typeof emit;
|
|
9
|
+
$props: Partial<typeof props>;
|
|
10
|
+
dense: boolean;
|
|
11
|
+
sortable: boolean;
|
|
12
|
+
bordered: boolean;
|
|
13
|
+
separator: boolean;
|
|
14
|
+
modelValue: unknown[];
|
|
15
|
+
max: number;
|
|
16
|
+
min: number;
|
|
17
|
+
addLabel: string;
|
|
18
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
type __VLS_Slots = {
|
|
20
|
+
default?: ((props: {
|
|
21
|
+
value: any;
|
|
22
|
+
index: any;
|
|
23
|
+
item: any;
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
};
|
|
26
|
+
declare const emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
27
|
+
declare const props: {
|
|
28
|
+
readonly dense: boolean;
|
|
29
|
+
readonly sortable: boolean;
|
|
30
|
+
readonly bordered: boolean;
|
|
31
|
+
readonly separator: boolean;
|
|
32
|
+
readonly modelValue: unknown[];
|
|
33
|
+
readonly max: number;
|
|
34
|
+
readonly min: number;
|
|
35
|
+
readonly addLabel: string;
|
|
36
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<l-btn icon="sym_o_save" label="Save" />
|
|
1
|
+
<template>
|
|
2
|
+
<l-btn icon="sym_o_save" label="Save" />
|
|
3
3
|
</template>
|
|
@@ -160,5 +160,5 @@ const localClass = computed(() => {
|
|
|
160
160
|
</script>
|
|
161
161
|
|
|
162
162
|
<template>
|
|
163
|
-
<q-select v-bind="$light.getInputProps($props)" :options="select_options" @filter="filterFn" :class="localClass" />
|
|
163
|
+
<q-select v-bind="$light.getInputProps($props)" :options="select_options" @filter="filterFn" :class="localClass" />
|
|
164
164
|
</template>
|
|
@@ -15,13 +15,13 @@ const section_class = computed(() => {
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
<template>
|
|
18
|
-
<q-item :class="item_class" class="no-wrap q-pa-none text-white">
|
|
19
|
-
<q-item-section class="q-pa-lg q-mr-none text-white" :class="section_class" side>
|
|
20
|
-
<q-icon :name="icon" size="2rem" />
|
|
21
|
-
</q-item-section>
|
|
22
|
-
<q-item-section class="q-pa-md q-ml-none">
|
|
23
|
-
<q-item-label class="text-h6 text-white">{{ title }}</q-item-label>
|
|
24
|
-
<q-item-label caption class="text-white">{{ subtitle }}</q-item-label>
|
|
25
|
-
</q-item-section>
|
|
26
|
-
</q-item>
|
|
18
|
+
<q-item :class="item_class" class="no-wrap q-pa-none text-white">
|
|
19
|
+
<q-item-section class="q-pa-lg q-mr-none text-white" :class="section_class" side>
|
|
20
|
+
<q-icon :name="icon" size="2rem" />
|
|
21
|
+
</q-item-section>
|
|
22
|
+
<q-item-section class="q-pa-md q-ml-none">
|
|
23
|
+
<q-item-label class="text-h6 text-white">{{ title }}</q-item-label>
|
|
24
|
+
<q-item-label caption class="text-white">{{ subtitle }}</q-item-label>
|
|
25
|
+
</q-item-section>
|
|
26
|
+
</q-item>
|
|
27
27
|
</template>
|
|
@@ -14,13 +14,13 @@ if (typeof props.value === "number") {
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<div class="q-pa-sm">
|
|
18
|
-
<div class="row">
|
|
19
|
-
{{ title }}
|
|
20
|
-
</div>
|
|
21
|
-
<div class="text-h5 row">
|
|
22
|
-
{{ localValue }}
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
</div>
|
|
17
|
+
<div class="q-pa-sm">
|
|
18
|
+
<div class="row">
|
|
19
|
+
{{ title }}
|
|
20
|
+
</div>
|
|
21
|
+
<div class="text-h5 row">
|
|
22
|
+
{{ localValue }}
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
</div>
|
|
26
26
|
</template>
|
|
@@ -17,14 +17,14 @@ const parent_type = instance?.parent?.type.name;
|
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<template>
|
|
20
|
-
<template v-if="parent_type == 'QTabPanels'">
|
|
21
|
-
<q-tab-panel :name="name">
|
|
22
|
-
<slot></slot>
|
|
23
|
-
</q-tab-panel>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<template v-if="parent_type == 'QTabs'">
|
|
27
|
-
<q-tab v-bind="$props" :label="$t($props.label ?? '')">
|
|
28
|
-
</q-tab>
|
|
29
|
-
</template>
|
|
20
|
+
<template v-if="parent_type == 'QTabPanels'">
|
|
21
|
+
<q-tab-panel :name="name">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</q-tab-panel>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<template v-if="parent_type == 'QTabs'">
|
|
27
|
+
<q-tab v-bind="$props" :label="$t($props.label ?? '')">
|
|
28
|
+
</q-tab>
|
|
29
|
+
</template>
|
|
30
30
|
</template>
|
|
@@ -70,7 +70,7 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var __VLS_123: any, __VLS_126:
|
|
73
|
+
declare var __VLS_123: any, __VLS_126: any, __VLS_127: any, __VLS_159: any, __VLS_162: any, __VLS_336: any, __VLS_337: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
75
|
[K in NonNullable<typeof __VLS_126>]?: (props: typeof __VLS_127) => any;
|
|
76
76
|
} & {
|
|
@@ -520,200 +520,186 @@ const hasFilters = computed(() => {
|
|
|
520
520
|
</script>
|
|
521
521
|
|
|
522
522
|
<template>
|
|
523
|
-
<q-table v-bind="attrs" :loading="loading" :rows="rows" ref="table" @request="onLocalRequest" :columns="columns"
|
|
524
|
-
v-model:pagination="pagination" :filter="filter" v-model:selected="localSelected">
|
|
525
|
-
<template #header="props">
|
|
526
|
-
<q-tr :props="props">
|
|
527
|
-
<q-th v-if="selection != 'none'" auto-width>
|
|
528
|
-
<q-checkbox v-model="props.selected" :dense="table?.dense" />
|
|
529
|
-
</q-th>
|
|
530
|
-
<q-th v-if="hasRowExpand" auto-width></q-th>
|
|
531
|
-
<q-th v-if="hasActions" auto-width></q-th>
|
|
532
|
-
<q-th v-for="col in props.cols" :key="col.name" :props="props">{{ col.label }}</q-th>
|
|
533
|
-
</q-tr>
|
|
534
|
-
</template>
|
|
535
|
-
|
|
536
|
-
<template #top v-if="errors.length > 0">
|
|
537
|
-
<div class="q-mb-sm">
|
|
538
|
-
<div class="q-gutter-sm">
|
|
539
|
-
<l-alert type="negative" v-for="e in errors">{{ e }}</l-alert>
|
|
540
|
-
</div>
|
|
541
|
-
</div>
|
|
542
|
-
</template>
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
<q-td v-if="
|
|
554
|
-
<q-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
<l-action-btn v-if="
|
|
565
|
-
:to="`/${modelName}/${props.row[primaryKey]}/
|
|
566
|
-
|
|
567
|
-
<l-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
<
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
</template>
|
|
588
|
-
<template v-else
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
<template #top-right="props" v-if="showTopRight">
|
|
608
|
-
<slot name="top-right" v-bind="props"></slot>
|
|
609
|
-
|
|
610
|
-
<q-btn v-if="$props.name" :disable="!hasFilters" dense flat icon="sym_o_filter_alt_off" color="primary"
|
|
523
|
+
<q-table v-bind="attrs" :loading="loading" :rows="rows" ref="table" @request="onLocalRequest" :columns="columns"
|
|
524
|
+
v-model:pagination="pagination" :filter="filter" v-model:selected="localSelected">
|
|
525
|
+
<template #header="props">
|
|
526
|
+
<q-tr :props="props">
|
|
527
|
+
<q-th v-if="selection != 'none'" auto-width>
|
|
528
|
+
<q-checkbox v-model="props.selected" :dense="table?.dense" />
|
|
529
|
+
</q-th>
|
|
530
|
+
<q-th v-if="hasRowExpand" auto-width></q-th>
|
|
531
|
+
<q-th v-if="hasActions" auto-width></q-th>
|
|
532
|
+
<q-th v-for="col in props.cols" :key="col.name" :props="props">{{ col.label }}</q-th>
|
|
533
|
+
</q-tr>
|
|
534
|
+
</template>
|
|
535
|
+
|
|
536
|
+
<template #top v-if="errors.length > 0">
|
|
537
|
+
<div class="q-mb-sm">
|
|
538
|
+
<div class="q-gutter-sm">
|
|
539
|
+
<l-alert type="negative" v-for="e in errors">{{ e }}</l-alert>
|
|
540
|
+
</div>
|
|
541
|
+
</div>
|
|
542
|
+
</template>
|
|
543
|
+
|
|
544
|
+
<template #top-left v-if="addComponent">
|
|
545
|
+
<q-btn icon="sym_o_add" :label="$t('Add')" color="primary" @click="onAdd" outline />
|
|
546
|
+
</template>
|
|
547
|
+
|
|
548
|
+
<template #body="props">
|
|
549
|
+
<q-tr :props="props">
|
|
550
|
+
<q-td v-if="selection != 'none'" auto-width>
|
|
551
|
+
<q-checkbox v-model="props.selected" :dense="table?.dense" />
|
|
552
|
+
</q-td>
|
|
553
|
+
<q-td v-if="hasRowExpand" auto-width>
|
|
554
|
+
<q-btn flat round size="sm" :icon="props.expand ? 'sym_o_expand_more' : 'sym_o_expand_less'"
|
|
555
|
+
@click="props.expand = !props.expand"></q-btn>
|
|
556
|
+
</q-td>
|
|
557
|
+
|
|
558
|
+
<q-td v-if="hasActions" auto-width>
|
|
559
|
+
<div :class="{ 'text-grey-8': !isDark }" v-if="primaryKey">
|
|
560
|
+
|
|
561
|
+
<l-action-btn v-if="actionView && props.row.canView"
|
|
562
|
+
:to="`/${modelName}/${props.row[primaryKey]}/view`" icon="sym_o_search" />
|
|
563
|
+
|
|
564
|
+
<l-action-btn v-if="activeEdit && props.row.canUpdate"
|
|
565
|
+
:to="`/${modelName}/${props.row[primaryKey]}/edit`" icon="sym_o_edit" />
|
|
566
|
+
|
|
567
|
+
<l-delete-btn v-if="actionDelete && props.row.canDelete"
|
|
568
|
+
@submit="onDelete(props.row[primaryKey])" size="sm"></l-delete-btn>
|
|
569
|
+
|
|
570
|
+
<slot name="actions" v-bind="props"></slot>
|
|
571
|
+
</div>
|
|
572
|
+
|
|
573
|
+
</q-td>
|
|
574
|
+
|
|
575
|
+
<template v-for="col in props.cols">
|
|
576
|
+
<template v-if="ss.indexOf('body-cell-' + col.name) >= 0">
|
|
577
|
+
<slot :name="'body-cell-' + col.name" v-bind="props"></slot>
|
|
578
|
+
</template>
|
|
579
|
+
<template v-else>
|
|
580
|
+
<q-td :key="col.name" :props="props" :auto-width="col.autoWidth ?? false"
|
|
581
|
+
:style="getCellStyle(col, props.row)"><template v-if="col.to" class="bg-primary">
|
|
582
|
+
<l-link :to="col.to(props.row)" v-if="col.to(props.row)">{{ col.value }}</l-link>
|
|
583
|
+
</template>
|
|
584
|
+
<template v-else-if="col.component">
|
|
585
|
+
<component :is="col.component" v-model="props.row"
|
|
586
|
+
v-bind="col.componentProps ? col.componentProps(props.row) : null" />
|
|
587
|
+
</template>
|
|
588
|
+
<template v-else>
|
|
589
|
+
{{ col.value }}
|
|
590
|
+
</template>
|
|
591
|
+
</q-td>
|
|
592
|
+
</template>
|
|
593
|
+
</template>
|
|
594
|
+
</q-tr>
|
|
595
|
+
<q-tr v-show="props.expand" :props="props">
|
|
596
|
+
<q-td colspan="100%">
|
|
597
|
+
<slot name="row-expand" v-bind="props"></slot>
|
|
598
|
+
</q-td>
|
|
599
|
+
</q-tr>
|
|
600
|
+
</template>
|
|
601
|
+
|
|
602
|
+
<template #top-right="props" v-if="showTopRight">
|
|
603
|
+
<slot name="top-right" v-bind="props"></slot>
|
|
604
|
+
|
|
605
|
+
<q-btn v-if="$props.name" :disable="!hasFilters" dense flat icon="sym_o_filter_alt_off" color="primary"
|
|
611
606
|
@click="filters = {};
|
|
612
|
-
tempFilters = {}">
|
|
613
|
-
<q-tooltip>{{ $t("Clear Filters") }}</q-tooltip>
|
|
614
|
-
</q-btn>
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
<template v-if="col.searchType == 'select'">
|
|
678
|
-
<q-select dense clearable filled square v-model="filters[col.name]" options-dense
|
|
679
|
-
:options="localSearchOptions[col.name]" emit-value map-options
|
|
607
|
+
tempFilters = {}">
|
|
608
|
+
<q-tooltip>{{ $t("Clear Filters") }}</q-tooltip>
|
|
609
|
+
</q-btn>
|
|
610
|
+
|
|
611
|
+
<q-input outlined dense debounce="300" v-model="filter" :placeholder="$t('Search')" v-if="searchable">
|
|
612
|
+
<template v-slot:append>
|
|
613
|
+
<q-icon name="search" />
|
|
614
|
+
</template>
|
|
615
|
+
</q-input>
|
|
616
|
+
|
|
617
|
+
<q-btn icon="sym_o_settings" flat dense color="primary" v-if="$props.name">
|
|
618
|
+
<q-popup-proxy>
|
|
619
|
+
<q-card>
|
|
620
|
+
<q-card-section>
|
|
621
|
+
<q-checkbox label="Save filters" v-model="saveFilters" />
|
|
622
|
+
</q-card-section>
|
|
623
|
+
</q-card>
|
|
624
|
+
</q-popup-proxy>
|
|
625
|
+
</q-btn>
|
|
626
|
+
|
|
627
|
+
<q-btn icon="sym_o_view_column" flat dense color="primary" v-if="$props.name">
|
|
628
|
+
<q-popup-proxy>
|
|
629
|
+
<q-card>
|
|
630
|
+
<q-card-section>
|
|
631
|
+
<q-option-group type="checkbox" v-model="visibleColumns" :options="hidableColumns"
|
|
632
|
+
option-value="name">
|
|
633
|
+
</q-option-group>
|
|
634
|
+
</q-card-section>
|
|
635
|
+
</q-card>
|
|
636
|
+
</q-popup-proxy>
|
|
637
|
+
</q-btn>
|
|
638
|
+
|
|
639
|
+
<q-btn icon="sym_o_refresh" flat dense color="primary" @click="requestServerInteraction()">
|
|
640
|
+
<q-tooltip>{{ $t("Refresh") }}</q-tooltip>
|
|
641
|
+
</q-btn>
|
|
642
|
+
</template>
|
|
643
|
+
|
|
644
|
+
<!-- template v-for="col in toColumns" v-slot:[col.slot_name]="props">
|
|
645
|
+
<q-td :props="props">
|
|
646
|
+
<l-link :to="col.to(props.row)">
|
|
647
|
+
{{ col.field(props.row) }}
|
|
648
|
+
</l-link>
|
|
649
|
+
</q-td>
|
|
650
|
+
</template -->
|
|
651
|
+
|
|
652
|
+
<template #top-row="props" v-if="hasSearch && isServerSide">
|
|
653
|
+
<q-tr>
|
|
654
|
+
<q-td v-if="selection != 'none'" auto-width />
|
|
655
|
+
<q-td v-if="hasRowExpand" auto-width />
|
|
656
|
+
<q-td v-if="hasActions" auto-width />
|
|
657
|
+
<q-td v-for="col in props.cols">
|
|
658
|
+
<template v-if="col.searchable">
|
|
659
|
+
|
|
660
|
+
<template v-if="col.searchType == 'number'">
|
|
661
|
+
<q-input style="min-width: 80px;" dense clearable filled square
|
|
662
|
+
v-model.number="tempFilters[col.name]"
|
|
663
|
+
@keydown.enter.prevent="filters[col.name] = tempFilters[col.name]"
|
|
664
|
+
@clear="delete filters[col.name]" mask="##########" :enterkeyhint="$t('search')"
|
|
665
|
+
:style="col.searchStyle"></q-input>
|
|
666
|
+
</template>
|
|
667
|
+
|
|
668
|
+
<template v-if="col.searchType == 'select'">
|
|
669
|
+
<q-select dense clearable filled square v-model="filters[col.name]" options-dense
|
|
670
|
+
:options="localSearchOptions[col.name]" emit-value map-options
|
|
680
671
|
:multiple="col.searchMultiple" use-input input-debounce="0" @filter="(val, update) => {
|
|
681
672
|
searchSelectFilter(val, update, col.name);
|
|
682
|
-
}" :style="col.searchStyle" />
|
|
683
|
-
</template>
|
|
684
|
-
|
|
685
|
-
<template v-if="col.searchType == 'date'">
|
|
686
|
-
<l-date-picker dense clearable filled square :outlined="false" hide-bottom-space
|
|
687
|
-
v-model="filters[col.name]" range :style="col.searchStyle" />
|
|
688
|
-
</template>
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
<template v-if="col.searchType == 'boolean'">
|
|
673
|
+
}" :style="col.searchStyle" />
|
|
674
|
+
</template>
|
|
675
|
+
|
|
676
|
+
<template v-if="col.searchType == 'date'">
|
|
677
|
+
<l-date-picker dense clearable filled square :outlined="false" hide-bottom-space
|
|
678
|
+
v-model="filters[col.name]" range :style="col.searchStyle" />
|
|
679
|
+
</template>
|
|
680
|
+
|
|
681
|
+
<template v-if="col.searchType == 'boolean'">
|
|
692
682
|
<q-select dense clearable filled square v-model="filters[col.name]" :options="[
|
|
693
683
|
{ label: $t('Yes'), value: true },
|
|
694
684
|
{ label: $t('No'), value: false }
|
|
695
|
-
]" :style="col.searchStyle" emit-value map-options options-dense />
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
</q-table>
|
|
685
|
+
]" :style="col.searchStyle" emit-value map-options options-dense />
|
|
686
|
+
|
|
687
|
+
</template>
|
|
688
|
+
|
|
689
|
+
<template v-if="!col.searchType || col.searchType == 'text'">
|
|
690
|
+
<q-input style="min-width: 80px;" dense clearable filled square
|
|
691
|
+
v-model="tempFilters[col.name]" @keydown.enter.prevent="filters[col.name] = tempFilters[col.name]" @clear="delete filters[col.name]" :enterkeyhint="$t('search')" :style="col.searchStyle"></q-input>
|
|
692
|
+
|
|
693
|
+
</template>
|
|
694
|
+
|
|
695
|
+
</template>
|
|
696
|
+
</q-td>
|
|
697
|
+
</q-tr>
|
|
698
|
+
</template>
|
|
699
|
+
|
|
700
|
+
<template v-for="slot of Object.keys($slots)" v-slot:[slot]="props">
|
|
701
|
+
<slot :name="slot" v-bind="props"></slot>
|
|
702
|
+
</template>
|
|
703
|
+
|
|
704
|
+
</q-table>
|
|
719
705
|
</template>
|
|
@@ -70,7 +70,7 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var __VLS_123: any, __VLS_126:
|
|
73
|
+
declare var __VLS_123: any, __VLS_126: any, __VLS_127: any, __VLS_159: any, __VLS_162: any, __VLS_336: any, __VLS_337: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
75
|
[K in NonNullable<typeof __VLS_126>]?: (props: typeof __VLS_127) => any;
|
|
76
76
|
} & {
|
|
@@ -54,13 +54,13 @@ watch(() => props.name ? route.query[props.name] : null, (newTab) => {
|
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<template>
|
|
57
|
-
<l-card>
|
|
58
|
-
<q-tabs v-bind="$props" class="text-grey" active-color="primary" indicator-color="primary"
|
|
59
|
-
v-model="modelValue">
|
|
60
|
-
<slot></slot>
|
|
61
|
-
</q-tabs>
|
|
62
|
-
<q-tab-panels v-model="modelValue">
|
|
63
|
-
<slot></slot>
|
|
64
|
-
</q-tab-panels>
|
|
65
|
-
</l-card>
|
|
57
|
+
<l-card>
|
|
58
|
+
<q-tabs v-bind="$props" class="text-grey" active-color="primary" indicator-color="primary"
|
|
59
|
+
v-model="modelValue">
|
|
60
|
+
<slot></slot>
|
|
61
|
+
</q-tabs>
|
|
62
|
+
<q-tab-panels v-model="modelValue">
|
|
63
|
+
<slot></slot>
|
|
64
|
+
</q-tab-panels>
|
|
65
|
+
</l-card>
|
|
66
66
|
</template>
|
|
@@ -7,7 +7,7 @@ const save = async (data, node) => {
|
|
|
7
7
|
</script>
|
|
8
8
|
|
|
9
9
|
<template>
|
|
10
|
-
<l-form-dialog title="Add User" :save="save">
|
|
11
|
-
<form-kit type="l-input" name="name" label="Name" dense validation="required" />
|
|
12
|
-
</l-form-dialog>
|
|
10
|
+
<l-form-dialog title="Add User" :save="save">
|
|
11
|
+
<form-kit type="l-input" name="name" label="Name" dense validation="required" />
|
|
12
|
+
</l-form-dialog>
|
|
13
13
|
</template>
|
|
@@ -15,7 +15,7 @@ type __VLS_ModelProps = {
|
|
|
15
15
|
modelValue?: any;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
-
declare var __VLS_37:
|
|
18
|
+
declare var __VLS_37: any, __VLS_38: any;
|
|
19
19
|
type __VLS_Slots = {} & {
|
|
20
20
|
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
21
21
|
};
|