@hostlink/nuxt-light 1.27.7 → 1.28.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.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +40 -42
- package/dist/runtime/components/L/CustomField/Add.vue +41 -52
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +2 -0
- package/dist/runtime/components/L/CustomField/List.vue +26 -30
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -0
- package/dist/runtime/components/L/Database/create-table-dialog.vue +22 -38
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Fieldset.vue +19 -23
- package/dist/runtime/components/L/Fieldset.vue.d.ts +2 -0
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +39 -41
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -0
- package/dist/runtime/components/L/Revision.vue +101 -137
- package/dist/runtime/components/L/Revision.vue.d.ts +2 -0
- package/dist/runtime/components/L/Storage.vue +26 -30
- package/dist/runtime/components/L/Storage.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/authentication.vue +22 -44
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/developer.vue +43 -59
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/forget-password.vue +42 -58
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/general.vue +29 -41
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/mail.vue +39 -42
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/modules.vue +9 -9
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -0
- package/dist/runtime/components/L/System/Setting/security.vue +20 -39
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/eventlog.vue +26 -26
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/overview.vue +25 -27
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -0
- package/dist/runtime/components/L/User/userlog.vue +22 -28
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -0
- package/dist/runtime/components/L/ValidationInput.vue +68 -91
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +2 -0
- package/dist/runtime/components/MyTest.vue +8 -7
- package/dist/runtime/components/MyTest.vue.d.ts +2 -0
- package/dist/runtime/components/l-add-btn.vue +13 -12
- package/dist/runtime/components/l-add-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-alert.vue +25 -29
- package/dist/runtime/components/l-alert.vue.d.ts +2 -0
- package/dist/runtime/components/l-app-main.vue +226 -294
- package/dist/runtime/components/l-app-main.vue.d.ts +2 -0
- package/dist/runtime/components/l-app.vue +76 -89
- package/dist/runtime/components/l-app.vue.d.ts +2 -0
- package/dist/runtime/components/l-audit-card.vue +8 -14
- package/dist/runtime/components/l-audit-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-banner.vue +28 -34
- package/dist/runtime/components/l-banner.vue.d.ts +2 -0
- package/dist/runtime/components/l-bar.vue +21 -25
- package/dist/runtime/components/l-bar.vue.d.ts +2 -0
- package/dist/runtime/components/l-btn.vue +62 -39
- package/dist/runtime/components/l-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-card.vue +90 -141
- package/dist/runtime/components/l-card.vue.d.ts +2 -0
- package/dist/runtime/components/l-checkbox.vue +30 -7
- package/dist/runtime/components/l-checkbox.vue.d.ts +2 -0
- package/dist/runtime/components/l-col.vue +21 -29
- package/dist/runtime/components/l-col.vue.d.ts +2 -0
- package/dist/runtime/components/l-customizer.vue +84 -100
- package/dist/runtime/components/l-customizer.vue.d.ts +2 -0
- package/dist/runtime/components/l-date-picker.vue +101 -147
- package/dist/runtime/components/l-date-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-delete-btn.vue +22 -27
- package/dist/runtime/components/l-delete-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-dialog-database-field-add.vue +19 -36
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-container.vue +44 -62
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop-group.vue +49 -70
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +2 -0
- package/dist/runtime/components/l-drag-drop.vue +33 -44
- package/dist/runtime/components/l-drag-drop.vue.d.ts +2 -0
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-editor.vue +185 -172
- package/dist/runtime/components/l-editor.vue.d.ts +2 -0
- package/dist/runtime/components/l-facebook-button.vue +18 -26
- package/dist/runtime/components/l-facebook-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-fav-menu.vue +19 -24
- package/dist/runtime/components/l-fav-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-field.vue +49 -18
- package/dist/runtime/components/l-field.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-labels.vue +46 -48
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-move.vue +53 -68
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager-preview.vue +46 -81
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-manager.vue +498 -640
- package/dist/runtime/components/l-file-manager.vue.d.ts +2 -0
- package/dist/runtime/components/l-file-upload.vue +80 -109
- package/dist/runtime/components/l-file-upload.vue.d.ts +2 -0
- package/dist/runtime/components/l-file.vue +37 -61
- package/dist/runtime/components/l-file.vue.d.ts +2 -0
- package/dist/runtime/components/l-form-dialog.vue +71 -83
- package/dist/runtime/components/l-form-dialog.vue.d.ts +2 -0
- package/dist/runtime/components/l-form.vue +82 -96
- package/dist/runtime/components/l-form.vue.d.ts +2 -0
- package/dist/runtime/components/l-group-select.vue +59 -94
- package/dist/runtime/components/l-group-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-icon-picker.vue +3265 -3274
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-input-xlsx.vue +30 -38
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +2 -0
- package/dist/runtime/components/l-input.vue +142 -126
- package/dist/runtime/components/l-input.vue.d.ts +2 -0
- package/dist/runtime/components/l-item.vue +30 -21
- package/dist/runtime/components/l-item.vue.d.ts +2 -0
- package/dist/runtime/components/l-link.vue +16 -15
- package/dist/runtime/components/l-link.vue.d.ts +2 -0
- package/dist/runtime/components/l-list.vue +27 -35
- package/dist/runtime/components/l-list.vue.d.ts +2 -0
- package/dist/runtime/components/l-login.vue +246 -287
- package/dist/runtime/components/l-login.vue.d.ts +2 -0
- package/dist/runtime/components/l-menu.vue +45 -54
- package/dist/runtime/components/l-menu.vue.d.ts +2 -0
- package/dist/runtime/components/l-microsoft-button.vue +42 -52
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +2 -0
- package/dist/runtime/components/l-page.vue +48 -67
- package/dist/runtime/components/l-page.vue.d.ts +2 -0
- package/dist/runtime/components/l-row.vue +8 -13
- package/dist/runtime/components/l-row.vue.d.ts +2 -0
- package/dist/runtime/components/l-save-btn.vue.d.ts +2 -0
- package/dist/runtime/components/l-select.vue +150 -76
- package/dist/runtime/components/l-select.vue.d.ts +2 -0
- package/dist/runtime/components/l-small-box.vue +18 -31
- package/dist/runtime/components/l-small-box.vue.d.ts +2 -0
- package/dist/runtime/components/l-statistic.vue +17 -23
- package/dist/runtime/components/l-statistic.vue.d.ts +2 -0
- package/dist/runtime/components/l-tab.vue +20 -15
- package/dist/runtime/components/l-tab.vue.d.ts +2 -0
- package/dist/runtime/components/l-table.vue +444 -560
- package/dist/runtime/components/l-table.vue.d.ts +2 -0
- package/dist/runtime/components/l-tabs.vue +34 -16
- package/dist/runtime/components/l-tabs.vue.d.ts +2 -0
- package/dist/runtime/components/l-test2.vue +10 -9
- package/dist/runtime/components/l-test2.vue.d.ts +2 -0
- package/dist/runtime/components/l-time-picker.vue +53 -68
- package/dist/runtime/components/l-time-picker.vue.d.ts +2 -0
- package/dist/runtime/components/l-view-btn.vue.d.ts +2 -0
- package/dist/runtime/composables/mytest.d.ts +2 -0
- package/dist/runtime/composables/mytest.js +3 -0
- package/dist/runtime/formkit/Checkbox.vue +15 -18
- package/dist/runtime/formkit/Checkbox.vue.d.ts +2 -0
- package/dist/runtime/formkit/DatePicker.vue +15 -18
- package/dist/runtime/formkit/DatePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Editor.vue +15 -18
- package/dist/runtime/formkit/Editor.vue.d.ts +2 -0
- package/dist/runtime/formkit/File.vue +30 -37
- package/dist/runtime/formkit/File.vue.d.ts +2 -0
- package/dist/runtime/formkit/FilePicker.vue +22 -25
- package/dist/runtime/formkit/FilePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/FileUpload.vue +22 -25
- package/dist/runtime/formkit/FileUpload.vue.d.ts +2 -0
- package/dist/runtime/formkit/Form.vue +79 -100
- package/dist/runtime/formkit/Form.vue.d.ts +2 -0
- package/dist/runtime/formkit/GroupSelect.vue +21 -27
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +2 -0
- package/dist/runtime/formkit/Input.vue +53 -61
- package/dist/runtime/formkit/Input.vue.d.ts +2 -0
- package/dist/runtime/formkit/InputXlsx.vue +15 -18
- package/dist/runtime/formkit/InputXlsx.vue.d.ts +2 -0
- package/dist/runtime/formkit/OptionGroup.vue +20 -26
- package/dist/runtime/formkit/OptionGroup.vue.d.ts +2 -0
- package/dist/runtime/formkit/Radio.vue +15 -18
- package/dist/runtime/formkit/Radio.vue.d.ts +2 -0
- package/dist/runtime/formkit/Repeater.vue +62 -76
- package/dist/runtime/formkit/Repeater.vue.d.ts +2 -0
- package/dist/runtime/formkit/Select.vue +21 -29
- package/dist/runtime/formkit/Select.vue.d.ts +2 -0
- package/dist/runtime/formkit/TimePicker.vue +15 -19
- package/dist/runtime/formkit/TimePicker.vue.d.ts +2 -0
- package/dist/runtime/formkit/Toggle.vue +13 -16
- package/dist/runtime/formkit/Toggle.vue.d.ts +2 -0
- package/dist/runtime/light.d.ts +1129 -6
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +24 -26
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/CustomField/index.vue +22 -29
- package/dist/runtime/pages/CustomField/index.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +8 -8
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/EventLog/index.vue +7 -6
- package/dist/runtime/pages/EventLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/FileManager/index.vue.d.ts +2 -0
- package/dist/runtime/pages/MailLog/index.vue +7 -6
- package/dist/runtime/pages/MailLog/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/add.vue +26 -29
- package/dist/runtime/pages/Permission/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/all.vue +57 -73
- package/dist/runtime/pages/Permission/all.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/export.vue +49 -62
- package/dist/runtime/pages/Permission/export.vue.d.ts +2 -0
- package/dist/runtime/pages/Permission/index.vue +19 -20
- package/dist/runtime/pages/Permission/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/_name/update-child.vue +12 -14
- package/dist/runtime/pages/Role/_name/update-child.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add.vue +13 -15
- package/dist/runtime/pages/Role/add.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/add2.vue +27 -38
- package/dist/runtime/pages/Role/add2.vue.d.ts +2 -0
- package/dist/runtime/pages/Role/index.vue +100 -127
- package/dist/runtime/pages/Role/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/backup.vue +28 -36
- package/dist/runtime/pages/System/database/backup.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/process.vue +33 -43
- package/dist/runtime/pages/System/database/process.vue.d.ts +2 -0
- package/dist/runtime/pages/System/database/table.vue +168 -205
- package/dist/runtime/pages/System/database/table.vue.d.ts +2 -0
- package/dist/runtime/pages/System/fs.vue +95 -107
- package/dist/runtime/pages/System/fs.vue.d.ts +2 -0
- package/dist/runtime/pages/System/index.vue +30 -31
- package/dist/runtime/pages/System/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/mailtest.vue +29 -35
- package/dist/runtime/pages/System/mailtest.vue.d.ts +2 -0
- package/dist/runtime/pages/System/menu/index.vue +175 -223
- package/dist/runtime/pages/System/menu/index.vue.d.ts +2 -0
- package/dist/runtime/pages/System/package.vue +21 -21
- package/dist/runtime/pages/System/package.vue.d.ts +2 -0
- package/dist/runtime/pages/System/phpinfo.vue +11 -10
- package/dist/runtime/pages/System/phpinfo.vue.d.ts +2 -0
- package/dist/runtime/pages/System/setting.vue +42 -59
- package/dist/runtime/pages/System/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/System/test.vue.d.ts +2 -0
- package/dist/runtime/pages/System/view_as.vue +65 -68
- package/dist/runtime/pages/System/view_as.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +7 -7
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/add.vue.d.ts +2 -0
- package/dist/runtime/pages/SystemValue/index.vue +7 -6
- package/dist/runtime/pages/SystemValue/index.vue.d.ts +2 -0
- package/dist/runtime/pages/Translate/index.vue +81 -100
- package/dist/runtime/pages/Translate/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/change-password.vue +38 -45
- package/dist/runtime/pages/User/_user_id/change-password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/edit.vue +35 -26
- package/dist/runtime/pages/User/_user_id/edit.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/update-role.vue +33 -43
- package/dist/runtime/pages/User/_user_id/update-role.vue.d.ts +2 -0
- package/dist/runtime/pages/User/_user_id/view.vue +35 -37
- package/dist/runtime/pages/User/_user_id/view.vue.d.ts +2 -0
- package/dist/runtime/pages/User/add.vue +52 -60
- package/dist/runtime/pages/User/add.vue.d.ts +2 -0
- package/dist/runtime/pages/User/index.vue +23 -32
- package/dist/runtime/pages/User/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/profile.vue +52 -58
- package/dist/runtime/pages/User/profile.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/bio-auth.vue +85 -95
- package/dist/runtime/pages/User/setting/bio-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/index.vue +27 -28
- package/dist/runtime/pages/User/setting/index.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/information.vue +28 -27
- package/dist/runtime/pages/User/setting/information.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/my_favorite.vue +29 -35
- package/dist/runtime/pages/User/setting/my_favorite.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/open_id.vue +140 -165
- package/dist/runtime/pages/User/setting/open_id.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/password.vue +37 -44
- package/dist/runtime/pages/User/setting/password.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/style.vue +84 -102
- package/dist/runtime/pages/User/setting/style.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting/two-factor-auth.vue +51 -61
- package/dist/runtime/pages/User/setting/two-factor-auth.vue.d.ts +2 -0
- package/dist/runtime/pages/User/setting.vue +9 -9
- package/dist/runtime/pages/User/setting.vue.d.ts +2 -0
- package/dist/runtime/pages/UserLog/index.vue +7 -6
- package/dist/runtime/pages/UserLog/index.vue.d.ts +2 -0
- package/dist/types.d.mts +3 -1
- package/package.json +9 -11
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -7
- package/dist/types.d.ts +0 -1
|
@@ -1,58 +1,49 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useRoute } from
|
|
3
|
-
import { ref, computed } from
|
|
4
|
-
import { useLight } from
|
|
5
|
-
const props = defineProps(["value", "dense"])
|
|
6
|
-
const light = useLight();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const hasChildLink = () => {
|
|
46
|
-
return hasLink(props.value)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</script>
|
|
51
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRoute } from "vue-router";
|
|
3
|
+
import { ref, computed } from "vue";
|
|
4
|
+
import { useLight } from "#imports";
|
|
5
|
+
const props = defineProps(["value", "dense"]);
|
|
6
|
+
const light = useLight();
|
|
7
|
+
const isShowExpansionItem = (menu) => {
|
|
8
|
+
if (menu.children && menu.children.length > 0) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
return false;
|
|
12
|
+
};
|
|
13
|
+
const color1 = computed(() => {
|
|
14
|
+
return light.getColorValue();
|
|
15
|
+
});
|
|
16
|
+
const color2 = computed(() => {
|
|
17
|
+
let c = light.getColorValue();
|
|
18
|
+
c = c + "b3";
|
|
19
|
+
return c;
|
|
20
|
+
});
|
|
21
|
+
const group = Math.random().toString(36).substring(7);
|
|
22
|
+
const route = useRoute();
|
|
23
|
+
const path = route.path;
|
|
24
|
+
const hasLink = (item) => {
|
|
25
|
+
if (item.children) {
|
|
26
|
+
for (let i = 0; i < item.children.length; i++) {
|
|
27
|
+
if (hasLink(item.children[i])) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (item.to == path) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
};
|
|
37
|
+
const hasChildLink = () => {
|
|
38
|
+
return hasLink(props.value);
|
|
39
|
+
};
|
|
40
|
+
</script>
|
|
41
|
+
|
|
52
42
|
<style scoped>
|
|
53
43
|
.menu-list .q-item{border-radius:12px 12px 12px 12px}.menu-list .q-router-link--exact-active{background:linear-gradient(118deg,v-bind(color1),v-bind(color2));color:#fff}
|
|
54
|
-
</style>
|
|
55
|
-
|
|
44
|
+
</style>
|
|
45
|
+
|
|
46
|
+
<template>
|
|
56
47
|
<q-list class="menu-list" :dense="dense">
|
|
57
48
|
<template v-for="menu in value">
|
|
58
49
|
|
|
@@ -75,4 +66,4 @@ const hasChildLink = () => {
|
|
|
75
66
|
|
|
76
67
|
</template>
|
|
77
68
|
</q-list>
|
|
78
|
-
</template>
|
|
69
|
+
</template>
|
|
@@ -1,54 +1,44 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { PublicClientApplication } from
|
|
3
|
-
import { useQuasar } from
|
|
4
|
-
const $q = useQuasar()
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color: "negative",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { PublicClientApplication } from "@azure/msal-browser";
|
|
3
|
+
import { useQuasar } from "quasar";
|
|
4
|
+
const $q = useQuasar();
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
clientId: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true
|
|
9
|
+
},
|
|
10
|
+
tenantId: String
|
|
11
|
+
});
|
|
12
|
+
const emits = defineEmits(["login"]);
|
|
13
|
+
const onClick = async () => {
|
|
14
|
+
const myMSALObject = new PublicClientApplication({
|
|
15
|
+
auth: {
|
|
16
|
+
clientId: props.clientId,
|
|
17
|
+
authority: "https://login.microsoftonline.com/" + props.tenantId,
|
|
18
|
+
redirectUri: window.location.origin
|
|
19
|
+
},
|
|
20
|
+
cache: {
|
|
21
|
+
cacheLocation: "memoryStorage",
|
|
22
|
+
storeAuthStateInCookie: false
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
try {
|
|
26
|
+
await myMSALObject.initialize();
|
|
27
|
+
const resp = await myMSALObject.loginPopup({
|
|
28
|
+
scopes: ["user.read"]
|
|
29
|
+
});
|
|
30
|
+
emits("login", resp);
|
|
31
|
+
} catch (e) {
|
|
32
|
+
$q.dialog({
|
|
33
|
+
title: "Error",
|
|
34
|
+
message: e.message,
|
|
35
|
+
color: "negative"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
52
42
|
<a @click="onClick" class="cursor-pointer">
|
|
53
43
|
<svg xmlns="http://www.w3.org/2000/svg" width="215" height="41" viewBox="0 0 215 41">
|
|
54
44
|
<title>MS-SymbolLockup</title>
|
|
@@ -117,4 +107,4 @@ const onClick = async () => {
|
|
|
117
107
|
<rect x="23" y="21" width="9" height="9" fill="#ffb900" />
|
|
118
108
|
</svg>
|
|
119
109
|
</a>
|
|
120
|
-
</template>
|
|
110
|
+
</template>
|
|
@@ -1,69 +1,50 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { useHead, useLight } from "#imports";
|
|
3
|
-
import { useRouter, useRoute } from "vue-router"
|
|
4
|
-
import { model, getID } from
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const id = getID();
|
|
49
|
-
if (id) {
|
|
50
|
-
if (await model(module).delete(id)) {
|
|
51
|
-
router.push(`/${module}`);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
useHead({
|
|
58
|
-
title: light.company + " - " + title.value,
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
const localClass = computed(() => {
|
|
62
|
-
return 'q-gutter-' + props.gutter
|
|
63
|
-
})
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useHead, useLight } from "#imports";
|
|
3
|
+
import { useRouter, useRoute } from "vue-router";
|
|
4
|
+
import { model, getID } from "../";
|
|
5
|
+
import { computed } from "vue";
|
|
6
|
+
const router = useRouter();
|
|
7
|
+
const route = useRoute();
|
|
8
|
+
const light = useLight();
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
padding: { type: Boolean, required: false, default: true },
|
|
11
|
+
styleFn: { type: Function, required: false, skipCheck: true },
|
|
12
|
+
title: { type: String, required: false, default: "" },
|
|
13
|
+
backBtn: { type: Boolean, required: false, default: true },
|
|
14
|
+
editBtn: { type: Boolean, required: false },
|
|
15
|
+
deleteBtn: { type: Boolean, required: false },
|
|
16
|
+
addBtn: { type: Boolean, required: false },
|
|
17
|
+
gutter: { type: String, required: false, default: "sm" }
|
|
18
|
+
});
|
|
19
|
+
const showToolbar = computed(() => {
|
|
20
|
+
if (props.backBtn || props.editBtn || props.deleteBtn || props.addBtn) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const title = computed(() => {
|
|
25
|
+
let t = props.title || route.path.split("/")[1].replace(/([a-z])(?=[A-Z])/g, "$1 ").replace(/([A-Z]*)(?=[A-Z][a-z])/g, "$1 ");
|
|
26
|
+
t = t.replace(/\s\s+/g, " ");
|
|
27
|
+
t = t.trim();
|
|
28
|
+
return t;
|
|
29
|
+
});
|
|
30
|
+
const module = route.path.split("/")[1];
|
|
31
|
+
const onDelete = async () => {
|
|
32
|
+
const id = getID();
|
|
33
|
+
if (id) {
|
|
34
|
+
if (await model(module).delete(id)) {
|
|
35
|
+
router.push(`/${module}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
useHead({
|
|
40
|
+
title: light.company + " - " + title.value
|
|
41
|
+
});
|
|
42
|
+
const localClass = computed(() => {
|
|
43
|
+
return "q-gutter-" + props.gutter;
|
|
44
|
+
});
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
67
48
|
<q-page :padding="padding">
|
|
68
49
|
<!-- q-breadcrumbs>
|
|
69
50
|
<q-breadcrumbs-el icon="home" to="/" />
|
|
@@ -86,4 +67,4 @@ const localClass = computed(() => {
|
|
|
86
67
|
|
|
87
68
|
|
|
88
69
|
</q-page>
|
|
89
|
-
</template>
|
|
70
|
+
</template>
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
gutter: "md"
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
</script>
|
|
12
|
-
<template>
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
gutter: { type: String, required: false, default: "md" }
|
|
4
|
+
});
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
13
8
|
<div>
|
|
14
9
|
<div class="row" :class="`q-col-gutter-${gutter}`">
|
|
15
10
|
<slot></slot>
|
|
16
11
|
</div>
|
|
17
12
|
</div>
|
|
18
|
-
</template>
|
|
13
|
+
</template>
|
|
@@ -1,77 +1,151 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
name: { type: null, required: false },
|
|
5
|
+
virtualScrollHorizontal: { type: Boolean, required: false, skipCheck: true },
|
|
6
|
+
virtualScrollSliceSize: { type: null, required: false },
|
|
7
|
+
virtualScrollSliceRatioBefore: { type: null, required: false },
|
|
8
|
+
virtualScrollSliceRatioAfter: { type: null, required: false },
|
|
9
|
+
virtualScrollItemSize: { type: null, required: false },
|
|
10
|
+
virtualScrollStickySizeStart: { type: null, required: false },
|
|
11
|
+
virtualScrollStickySizeEnd: { type: null, required: false },
|
|
12
|
+
tableColspan: { type: null, required: false },
|
|
13
|
+
modelValue: { type: null, required: true },
|
|
14
|
+
error: { type: [Boolean, null], required: false, skipCheck: true },
|
|
15
|
+
errorMessage: { type: null, required: false },
|
|
16
|
+
noErrorIcon: { type: Boolean, required: false, skipCheck: true },
|
|
17
|
+
rules: { type: null, required: false },
|
|
18
|
+
reactiveRules: { type: Boolean, required: false, skipCheck: true },
|
|
19
|
+
lazyRules: { type: [Boolean, String], required: false, skipCheck: true },
|
|
20
|
+
label: { type: null, required: false },
|
|
21
|
+
stackLabel: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
22
|
+
hint: { type: null, required: false },
|
|
23
|
+
hideHint: { type: Boolean, required: false, skipCheck: true },
|
|
24
|
+
prefix: { type: null, required: false },
|
|
25
|
+
suffix: { type: null, required: false },
|
|
26
|
+
labelColor: { type: null, required: false },
|
|
27
|
+
color: { type: null, required: false },
|
|
28
|
+
bgColor: { type: null, required: false },
|
|
29
|
+
dark: { type: [Boolean, null], required: false, skipCheck: true },
|
|
30
|
+
loading: { type: Boolean, required: false, skipCheck: true },
|
|
31
|
+
clearable: { type: Boolean, required: false, skipCheck: true },
|
|
32
|
+
clearIcon: { type: null, required: false },
|
|
33
|
+
filled: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
34
|
+
outlined: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
35
|
+
borderless: { type: Boolean, required: false, skipCheck: true },
|
|
36
|
+
standout: { type: [Boolean, String], required: false, skipCheck: true, default: void 0 },
|
|
37
|
+
labelSlot: { type: Boolean, required: false, skipCheck: true },
|
|
38
|
+
bottomSlots: { type: Boolean, required: false, skipCheck: true },
|
|
39
|
+
hideBottomSpace: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
40
|
+
counter: { type: Boolean, required: false, skipCheck: true },
|
|
41
|
+
rounded: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
42
|
+
square: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
43
|
+
dense: { type: Boolean, required: false, skipCheck: true, default: void 0 },
|
|
44
|
+
itemAligned: { type: Boolean, required: false, skipCheck: true },
|
|
45
|
+
disable: { type: Boolean, required: false, skipCheck: true },
|
|
46
|
+
readonly: { type: Boolean, required: false, skipCheck: true },
|
|
47
|
+
autofocus: { type: Boolean, required: false, skipCheck: true },
|
|
48
|
+
for: { type: null, required: false },
|
|
49
|
+
multiple: { type: Boolean, required: false, skipCheck: true },
|
|
50
|
+
displayValue: { type: null, required: false },
|
|
51
|
+
displayValueHtml: { type: Boolean, required: false, skipCheck: true },
|
|
52
|
+
options: { type: null, required: false },
|
|
53
|
+
optionValue: { type: [Function, String], required: false, skipCheck: true, default: "value" },
|
|
54
|
+
optionLabel: { type: [Function, String], required: false, skipCheck: true, default: "label" },
|
|
55
|
+
optionDisable: { type: [Function, String], required: false, skipCheck: true },
|
|
56
|
+
hideSelected: { type: Boolean, required: false, skipCheck: true },
|
|
57
|
+
hideDropdownIcon: { type: Boolean, required: false, skipCheck: true },
|
|
58
|
+
dropdownIcon: { type: null, required: false },
|
|
59
|
+
maxValues: { type: null, required: false },
|
|
60
|
+
optionsDense: { type: Boolean, required: false, skipCheck: true },
|
|
61
|
+
optionsDark: { type: [Boolean, null], required: false, skipCheck: true },
|
|
62
|
+
optionsSelectedClass: { type: null, required: false },
|
|
63
|
+
optionsHtml: { type: Boolean, required: false, skipCheck: true },
|
|
64
|
+
optionsCover: { type: Boolean, required: false, skipCheck: true },
|
|
65
|
+
menuShrink: { type: Boolean, required: false, skipCheck: true },
|
|
66
|
+
menuAnchor: { type: null, required: false },
|
|
67
|
+
menuSelf: { type: null, required: false },
|
|
68
|
+
menuOffset: { type: null, required: false },
|
|
69
|
+
popupContentClass: { type: null, required: false },
|
|
70
|
+
popupContentStyle: { type: null, required: false },
|
|
71
|
+
popupNoRouteDismiss: { type: Boolean, required: false, skipCheck: true },
|
|
72
|
+
useChips: { type: Boolean, required: false, skipCheck: true },
|
|
73
|
+
useInput: { type: Boolean, required: false, skipCheck: true },
|
|
74
|
+
maxlength: { type: null, required: false },
|
|
75
|
+
fillInput: { type: Boolean, required: false, skipCheck: true },
|
|
76
|
+
newValueMode: { type: null, required: false },
|
|
77
|
+
mapOptions: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
78
|
+
disableTabSelection: { type: Boolean, required: false, skipCheck: true },
|
|
79
|
+
emitValue: { type: Boolean, required: false, skipCheck: true, default: true },
|
|
80
|
+
inputDebounce: { type: null, required: false, default: 0 },
|
|
81
|
+
inputClass: { type: null, required: false },
|
|
82
|
+
inputStyle: { type: null, required: false },
|
|
83
|
+
tabindex: { type: null, required: false },
|
|
84
|
+
autocomplete: { type: null, required: false },
|
|
85
|
+
transitionShow: { type: null, required: false },
|
|
86
|
+
transitionHide: { type: null, required: false },
|
|
87
|
+
transitionDuration: { type: null, required: false },
|
|
88
|
+
behavior: { type: null, required: false },
|
|
89
|
+
onVirtualScroll: { type: Function, required: false },
|
|
90
|
+
"onUpdate:modelValue": { type: Function, required: false },
|
|
91
|
+
onFocus: { type: Function, required: false },
|
|
92
|
+
onBlur: { type: Function, required: false },
|
|
93
|
+
onClear: { type: Function, required: false },
|
|
94
|
+
onInputValue: { type: Function, required: false },
|
|
95
|
+
onRemove: { type: Function, required: false },
|
|
96
|
+
onAdd: { type: Function, required: false },
|
|
97
|
+
onNewValue: { type: Function, required: false },
|
|
98
|
+
onFilter: { type: Function, required: false },
|
|
99
|
+
onFilterAbort: { type: Function, required: false },
|
|
100
|
+
onPopupShow: { type: Function, required: false },
|
|
101
|
+
onPopupHide: { type: Function, required: false }
|
|
102
|
+
});
|
|
103
|
+
const normalizeOption = (option) => {
|
|
104
|
+
if (typeof option === "string" || typeof option === "number") {
|
|
105
|
+
return { label: String(option), value: String(option) };
|
|
106
|
+
}
|
|
107
|
+
if (typeof option === "object") {
|
|
108
|
+
if ("group" in option) {
|
|
109
|
+
option.options = normalizeOptions(option.options || []);
|
|
110
|
+
return option;
|
|
111
|
+
} else if ("value" in option && typeof option.value !== "string") {
|
|
112
|
+
Object.assign(option, { value: option.value });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return option;
|
|
116
|
+
};
|
|
117
|
+
const normalizeOptions = (options) => {
|
|
118
|
+
if (Array.isArray(options)) {
|
|
119
|
+
return options.map((option) => normalizeOption(option));
|
|
120
|
+
}
|
|
121
|
+
return Object.keys(options).map((value) => ({
|
|
122
|
+
label: options[value],
|
|
123
|
+
value
|
|
124
|
+
}));
|
|
125
|
+
};
|
|
126
|
+
const select_options = ref(props.options);
|
|
127
|
+
const filterFn = (val, update, abort) => {
|
|
128
|
+
if (props.onFilter) {
|
|
129
|
+
props.onFilter(val, update, abort);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
const opts = normalizeOptions(props.options);
|
|
133
|
+
if (val === "") {
|
|
134
|
+
update(() => {
|
|
135
|
+
select_options.value = opts;
|
|
136
|
+
});
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
update(() => {
|
|
140
|
+
const needle = val.toLowerCase();
|
|
141
|
+
select_options.value = opts.filter((option) => {
|
|
142
|
+
const label = typeof props.optionLabel === "function" ? props.optionLabel(option) : option[props.optionLabel];
|
|
143
|
+
return label && label.toLowerCase().includes(needle);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
</script>
|
|
148
|
+
|
|
149
|
+
<template>
|
|
76
150
|
<q-select v-bind="$light.getInputProps($props)" :options="select_options" @filter="filterFn" />
|
|
77
|
-
</template>
|
|
151
|
+
</template>
|