@hostlink/nuxt-light 1.67.7 → 1.68.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 +103 -286
- package/dist/runtime/components/L/AppMain.d.vue.ts +4 -4
- package/dist/runtime/components/L/AppMain.vue +2 -0
- package/dist/runtime/components/L/AppMain.vue.d.ts +4 -4
- package/dist/runtime/components/L/NotificationBell.vue +187 -0
- package/dist/runtime/components/L/Table.d.vue.ts +12 -6
- package/dist/runtime/components/L/Table.vue +7 -1
- package/dist/runtime/components/L/Table.vue.d.ts +12 -6
- package/dist/runtime/components/L/TimePicker.d.vue.ts +0 -2
- package/dist/runtime/components/L/TimePicker.vue +0 -4
- package/dist/runtime/components/L/TimePicker.vue.d.ts +0 -2
- package/dist/runtime/formkit/Checkbox.vue +4 -2
- package/dist/runtime/formkit/DatePicker.vue +15 -4
- package/dist/runtime/formkit/Editor.vue +7 -3
- package/dist/runtime/formkit/File.vue +7 -3
- package/dist/runtime/formkit/FilePicker.vue +3 -1
- package/dist/runtime/formkit/FileUpload.vue +3 -1
- package/dist/runtime/formkit/GroupSelect.vue +7 -3
- package/dist/runtime/formkit/Input.vue +2 -7
- package/dist/runtime/formkit/InputSelect.vue +6 -9
- package/dist/runtime/formkit/InputXlsx.vue +7 -3
- package/dist/runtime/formkit/OptionGroup.vue +7 -3
- package/dist/runtime/formkit/Radio.vue +4 -2
- package/dist/runtime/formkit/Select.vue +7 -3
- package/dist/runtime/formkit/Textarea.vue +6 -9
- package/dist/runtime/formkit/TimePicker.vue +15 -4
- package/dist/runtime/formkit/Toggle.vue +3 -1
- package/dist/runtime/formkit/useRequiredLabel.d.ts +1 -0
- package/dist/runtime/formkit/useRequiredLabel.js +10 -0
- package/dist/runtime/models/Notification.d.ts +2 -0
- package/dist/runtime/models/Notification.js +52 -0
- package/dist/runtime/models/SystemValue.js +3 -1
- package/dist/runtime/pages/Notification/index.vue +55 -0
- package/dist/runtime/pages/User/[user_id]/update-role.d.vue.ts +3 -0
- package/dist/runtime/pages/User/[user_id]/update-role.vue.d.ts +3 -0
- package/dist/runtime/pages/User/[user_id]/view.d.vue.ts +3 -0
- package/dist/runtime/pages/User/[user_id]/view.vue.d.ts +3 -0
- package/package.json +1 -1
- /package/dist/runtime/{pages/EventLog/_eventlog_id/view.d.vue.ts → components/L/NotificationBell.d.vue.ts} +0 -0
- /package/dist/runtime/{pages/EventLog/_eventlog_id/view.vue.d.ts → components/L/NotificationBell.vue.d.ts} +0 -0
- /package/dist/runtime/pages/{User/_user_id → EventLog/[eventlog_id]}/view.d.vue.ts +0 -0
- /package/dist/runtime/pages/EventLog/{_eventlog_id → [eventlog_id]}/view.vue +0 -0
- /package/dist/runtime/pages/{User/_user_id → EventLog/[eventlog_id]}/view.vue.d.ts +0 -0
- /package/dist/runtime/pages/{Role/_name/update-child.d.vue.ts → Notification/index.d.vue.ts} +0 -0
- /package/dist/runtime/pages/{Role/_name/update-child.vue.d.ts → Notification/index.vue.d.ts} +0 -0
- /package/dist/runtime/pages/{SystemValue/_systemvalue_id/edit.d.vue.ts → Role/[name]/update-child.d.vue.ts} +0 -0
- /package/dist/runtime/pages/Role/{_name → [name]}/update-child.vue +0 -0
- /package/dist/runtime/pages/{SystemValue/_systemvalue_id/edit.vue.d.ts → Role/[name]/update-child.vue.d.ts} +0 -0
- /package/dist/runtime/pages/{User/_user_id → SystemValue/[systemvalue_id]}/edit.d.vue.ts +0 -0
- /package/dist/runtime/pages/SystemValue/{_systemvalue_id → [systemvalue_id]}/edit.vue +0 -0
- /package/dist/runtime/pages/{User/_user_id → SystemValue/[systemvalue_id]}/edit.vue.d.ts +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/change-password.d.vue.ts +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/change-password.vue +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/change-password.vue.d.ts +0 -0
- /package/dist/runtime/pages/User/{_user_id/update-role.d.vue.ts → [user_id]/edit.d.vue.ts} +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/edit.vue +0 -0
- /package/dist/runtime/pages/User/{_user_id/update-role.vue.d.ts → [user_id]/edit.vue.d.ts} +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/update-role.vue +0 -0
- /package/dist/runtime/pages/User/{_user_id → [user_id]}/view.vue +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
import { model, m, notify } from "#imports";
|
|
5
|
+
const $q = useQuasar();
|
|
6
|
+
const tableRef = ref(null);
|
|
7
|
+
const selected = ref([]);
|
|
8
|
+
const columns = model("Notification").columns({
|
|
9
|
+
notification_id: true,
|
|
10
|
+
type: true,
|
|
11
|
+
title: true,
|
|
12
|
+
message: true,
|
|
13
|
+
link: true,
|
|
14
|
+
is_read: true,
|
|
15
|
+
created_time: true
|
|
16
|
+
});
|
|
17
|
+
const onBulkDelete = async () => {
|
|
18
|
+
if (selected.value.length === 0) return;
|
|
19
|
+
$q.dialog({
|
|
20
|
+
title: $q.lang.label?.delete || "Delete",
|
|
21
|
+
message: "Are you sure you want to delete " + selected.value.length + " selected notification(s)?",
|
|
22
|
+
cancel: true,
|
|
23
|
+
persistent: true,
|
|
24
|
+
color: "negative"
|
|
25
|
+
}).onOk(async () => {
|
|
26
|
+
try {
|
|
27
|
+
const ids = selected.value.map((n) => n.notification_id);
|
|
28
|
+
await m("deleteNotifications", { ids });
|
|
29
|
+
notify("Deleted " + ids.length + " notification(s)");
|
|
30
|
+
selected.value = [];
|
|
31
|
+
tableRef.value?.requestServerInteraction();
|
|
32
|
+
} catch (e) {
|
|
33
|
+
notify({ message: e.message, color: "negative" });
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const onDelete = () => {
|
|
38
|
+
tableRef.value?.requestServerInteraction();
|
|
39
|
+
};
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<l-page>
|
|
44
|
+
<l-table ref="tableRef" row-key="notification_id" :columns="columns"
|
|
45
|
+
selection="multiple" v-model:selected="selected"
|
|
46
|
+
@request-data="$event.loadObjects('Notification')"
|
|
47
|
+
:actions="['delete']"
|
|
48
|
+
@delete="onDelete">
|
|
49
|
+
<template #top-selection="{ rows }">
|
|
50
|
+
<q-btn flat dense color="negative" icon="sym_o_delete"
|
|
51
|
+
:label="'Delete (' + selected.length + ')'" @click="onBulkDelete" />
|
|
52
|
+
</template>
|
|
53
|
+
</l-table>
|
|
54
|
+
</l-page>
|
|
55
|
+
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/runtime/pages/{Role/_name/update-child.d.vue.ts → Notification/index.d.vue.ts}
RENAMED
|
File without changes
|
/package/dist/runtime/pages/{Role/_name/update-child.vue.d.ts → Notification/index.vue.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|