@hostlink/nuxt-light 1.60.6 → 1.62.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.
Files changed (176) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/L/CustomField/Add.d.vue.ts +17 -9
  3. package/dist/runtime/components/L/CustomField/Add.vue.d.ts +17 -9
  4. package/dist/runtime/components/L/CustomField/List.d.vue.ts +5 -1
  5. package/dist/runtime/components/L/CustomField/List.vue.d.ts +5 -1
  6. package/dist/runtime/components/L/Database/create-table-dialog.d.vue.ts +7 -6
  7. package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +7 -6
  8. package/dist/runtime/components/L/Fieldset.d.vue.ts +20 -7
  9. package/dist/runtime/components/L/Fieldset.vue.d.ts +20 -7
  10. package/dist/runtime/components/L/Revision.d.vue.ts +19 -9
  11. package/dist/runtime/components/L/Revision.vue.d.ts +19 -9
  12. package/dist/runtime/components/L/Storage.d.vue.ts +11 -7
  13. package/dist/runtime/components/L/Storage.vue.d.ts +11 -7
  14. package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +11 -1
  15. package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +11 -1
  16. package/dist/runtime/components/L/System/Setting/developer.d.vue.ts +4 -1
  17. package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +4 -1
  18. package/dist/runtime/components/L/System/Setting/forget-password.d.vue.ts +5 -1
  19. package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +5 -1
  20. package/dist/runtime/components/L/System/Setting/general.d.vue.ts +6 -1
  21. package/dist/runtime/components/L/System/Setting/general.vue.d.ts +6 -1
  22. package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +7 -1
  23. package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +7 -1
  24. package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +5 -1
  25. package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +5 -1
  26. package/dist/runtime/components/L/System/Setting/security.d.vue.ts +20 -1
  27. package/dist/runtime/components/L/System/Setting/security.vue +5 -2
  28. package/dist/runtime/components/L/System/Setting/security.vue.d.ts +20 -1
  29. package/dist/runtime/components/L/ValidationInput.d.vue.ts +22 -6
  30. package/dist/runtime/components/L/ValidationInput.vue.d.ts +22 -6
  31. package/dist/runtime/components/MyTest.d.vue.ts +5 -7
  32. package/dist/runtime/components/MyTest.vue.d.ts +5 -7
  33. package/dist/runtime/components/l-add-btn.d.vue.ts +16 -10
  34. package/dist/runtime/components/l-add-btn.vue.d.ts +16 -10
  35. package/dist/runtime/components/l-alert.d.vue.ts +12 -6
  36. package/dist/runtime/components/l-alert.vue.d.ts +12 -6
  37. package/dist/runtime/components/l-app-main.d.vue.ts +10 -6
  38. package/dist/runtime/components/l-app-main.vue.d.ts +10 -6
  39. package/dist/runtime/components/l-banner.d.vue.ts +6 -3
  40. package/dist/runtime/components/l-banner.vue.d.ts +6 -3
  41. package/dist/runtime/components/l-bar.d.vue.ts +4 -1
  42. package/dist/runtime/components/l-bar.vue.d.ts +4 -1
  43. package/dist/runtime/components/l-btn.d.vue.ts +6 -1
  44. package/dist/runtime/components/l-btn.vue.d.ts +6 -1
  45. package/dist/runtime/components/l-card.d.vue.ts +16 -4
  46. package/dist/runtime/components/l-card.vue.d.ts +16 -4
  47. package/dist/runtime/components/l-checkbox.d.vue.ts +3 -1
  48. package/dist/runtime/components/l-checkbox.vue.d.ts +3 -1
  49. package/dist/runtime/components/l-col.d.vue.ts +6 -1
  50. package/dist/runtime/components/l-col.vue.d.ts +6 -1
  51. package/dist/runtime/components/l-customizer.d.vue.ts +68 -16
  52. package/dist/runtime/components/l-customizer.vue.d.ts +68 -16
  53. package/dist/runtime/components/l-date-picker.d.vue.ts +16 -3
  54. package/dist/runtime/components/l-date-picker.vue.d.ts +16 -3
  55. package/dist/runtime/components/l-delete-btn.d.vue.ts +8 -8
  56. package/dist/runtime/components/l-delete-btn.vue.d.ts +8 -8
  57. package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +7 -6
  58. package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +7 -6
  59. package/dist/runtime/components/l-dialog-upload-files.d.vue.ts +29 -0
  60. package/dist/runtime/components/l-dialog-upload-files.vue +178 -0
  61. package/dist/runtime/components/l-dialog-upload-files.vue.d.ts +29 -0
  62. package/dist/runtime/components/l-drag-drop-container.d.vue.ts +15 -7
  63. package/dist/runtime/components/l-drag-drop-container.vue.d.ts +15 -7
  64. package/dist/runtime/components/l-drag-drop-group.d.vue.ts +9 -2
  65. package/dist/runtime/components/l-drag-drop-group.vue.d.ts +9 -2
  66. package/dist/runtime/components/l-editor.d.vue.ts +11 -1
  67. package/dist/runtime/components/l-editor.vue.d.ts +11 -1
  68. package/dist/runtime/components/l-facebook-button.d.vue.ts +5 -4
  69. package/dist/runtime/components/l-facebook-button.vue.d.ts +5 -4
  70. package/dist/runtime/components/l-fav-menu.d.vue.ts +5 -7
  71. package/dist/runtime/components/l-fav-menu.vue.d.ts +5 -7
  72. package/dist/runtime/components/l-field.d.vue.ts +11 -1
  73. package/dist/runtime/components/l-field.vue.d.ts +11 -1
  74. package/dist/runtime/components/l-file-manager-breadcrumbs.d.vue.ts +10 -0
  75. package/dist/runtime/components/l-file-manager-breadcrumbs.vue +37 -0
  76. package/dist/runtime/components/l-file-manager-breadcrumbs.vue.d.ts +10 -0
  77. package/dist/runtime/components/l-file-manager-labels.d.vue.ts +4 -4
  78. package/dist/runtime/components/l-file-manager-labels.vue.d.ts +4 -4
  79. package/dist/runtime/components/l-file-manager-move.d.vue.ts +13 -9
  80. package/dist/runtime/components/l-file-manager-move.vue +68 -29
  81. package/dist/runtime/components/l-file-manager-move.vue.d.ts +13 -9
  82. package/dist/runtime/components/l-file-manager-preview.d.vue.ts +11 -9
  83. package/dist/runtime/components/l-file-manager-preview.vue +33 -23
  84. package/dist/runtime/components/l-file-manager-preview.vue.d.ts +11 -9
  85. package/dist/runtime/components/l-file-manager.d.vue.ts +45 -13
  86. package/dist/runtime/components/l-file-manager.vue +173 -256
  87. package/dist/runtime/components/l-file-manager.vue.d.ts +45 -13
  88. package/dist/runtime/components/l-file-upload.d.vue.ts +14 -3
  89. package/dist/runtime/components/l-file-upload.vue.d.ts +14 -3
  90. package/dist/runtime/components/l-file.d.vue.ts +13 -1
  91. package/dist/runtime/components/l-file.vue.d.ts +13 -1
  92. package/dist/runtime/components/l-form-dialog.d.vue.ts +57 -14
  93. package/dist/runtime/components/l-form-dialog.vue.d.ts +57 -14
  94. package/dist/runtime/components/l-form.d.vue.ts +33 -1
  95. package/dist/runtime/components/l-form.vue.d.ts +33 -1
  96. package/dist/runtime/components/l-group-select.d.vue.ts +38 -9
  97. package/dist/runtime/components/l-group-select.vue.d.ts +38 -9
  98. package/dist/runtime/components/l-icon-picker.d.vue.ts +6 -0
  99. package/dist/runtime/components/l-icon-picker.vue.d.ts +6 -0
  100. package/dist/runtime/components/l-input-select.d.vue.ts +13 -1
  101. package/dist/runtime/components/l-input-select.vue.d.ts +13 -1
  102. package/dist/runtime/components/l-input.d.vue.ts +12 -2
  103. package/dist/runtime/components/l-input.vue.d.ts +12 -2
  104. package/dist/runtime/components/l-item.d.vue.ts +5 -1
  105. package/dist/runtime/components/l-item.vue.d.ts +5 -1
  106. package/dist/runtime/components/l-link.d.vue.ts +19 -9
  107. package/dist/runtime/components/l-link.vue.d.ts +19 -9
  108. package/dist/runtime/components/l-list.d.vue.ts +5 -1
  109. package/dist/runtime/components/l-list.vue.d.ts +5 -1
  110. package/dist/runtime/components/l-login.d.vue.ts +5 -1
  111. package/dist/runtime/components/l-login.vue.d.ts +5 -1
  112. package/dist/runtime/components/l-menu.d.vue.ts +5 -7
  113. package/dist/runtime/components/l-menu.vue.d.ts +5 -7
  114. package/dist/runtime/components/l-microsoft-button.d.vue.ts +11 -1
  115. package/dist/runtime/components/l-microsoft-button.vue.d.ts +11 -1
  116. package/dist/runtime/components/l-page.d.vue.ts +9 -4
  117. package/dist/runtime/components/l-page.vue.d.ts +9 -4
  118. package/dist/runtime/components/l-repeater.d.vue.ts +75 -18
  119. package/dist/runtime/components/l-repeater.vue.d.ts +75 -18
  120. package/dist/runtime/components/l-row.d.vue.ts +3 -1
  121. package/dist/runtime/components/l-row.vue.d.ts +3 -1
  122. package/dist/runtime/components/l-select.d.vue.ts +17 -1
  123. package/dist/runtime/components/l-select.vue.d.ts +17 -1
  124. package/dist/runtime/components/l-setup-2fa-dialog.d.vue.ts +25 -11
  125. package/dist/runtime/components/l-setup-2fa-dialog.vue.d.ts +25 -11
  126. package/dist/runtime/components/l-small-box.d.vue.ts +6 -1
  127. package/dist/runtime/components/l-small-box.vue.d.ts +6 -1
  128. package/dist/runtime/components/l-statistic.d.vue.ts +14 -8
  129. package/dist/runtime/components/l-statistic.vue.d.ts +14 -8
  130. package/dist/runtime/components/l-table.d.vue.ts +29 -7
  131. package/dist/runtime/components/l-table.vue.d.ts +29 -7
  132. package/dist/runtime/components/l-tabs.d.vue.ts +4 -1
  133. package/dist/runtime/components/l-tabs.vue.d.ts +4 -1
  134. package/dist/runtime/components/l-time-picker.d.vue.ts +8 -3
  135. package/dist/runtime/components/l-time-picker.vue.d.ts +8 -3
  136. package/dist/runtime/components/user-list.d.vue.ts +5 -7
  137. package/dist/runtime/components/user-list.vue.d.ts +5 -7
  138. package/dist/runtime/composables/showUploadFilesDialog.d.ts +1 -0
  139. package/dist/runtime/composables/showUploadFilesDialog.js +11 -0
  140. package/dist/runtime/composables/useLight.d.ts +22 -22
  141. package/dist/runtime/formkit/Checkbox.d.vue.ts +5 -7
  142. package/dist/runtime/formkit/Checkbox.vue.d.ts +5 -7
  143. package/dist/runtime/formkit/DatePicker.d.vue.ts +5 -7
  144. package/dist/runtime/formkit/DatePicker.vue.d.ts +5 -7
  145. package/dist/runtime/formkit/Editor.d.vue.ts +5 -7
  146. package/dist/runtime/formkit/Editor.vue.d.ts +5 -7
  147. package/dist/runtime/formkit/File.d.vue.ts +5 -7
  148. package/dist/runtime/formkit/File.vue.d.ts +5 -7
  149. package/dist/runtime/formkit/FilePicker.d.vue.ts +5 -7
  150. package/dist/runtime/formkit/FilePicker.vue.d.ts +5 -7
  151. package/dist/runtime/formkit/FileUpload.d.vue.ts +5 -7
  152. package/dist/runtime/formkit/FileUpload.vue.d.ts +5 -7
  153. package/dist/runtime/formkit/Form.d.vue.ts +3 -1
  154. package/dist/runtime/formkit/Form.vue.d.ts +3 -1
  155. package/dist/runtime/formkit/GroupSelect.d.vue.ts +5 -7
  156. package/dist/runtime/formkit/GroupSelect.vue.d.ts +5 -7
  157. package/dist/runtime/formkit/Input.d.vue.ts +1 -1
  158. package/dist/runtime/formkit/Input.vue.d.ts +1 -1
  159. package/dist/runtime/formkit/InputSelect.d.vue.ts +1 -1
  160. package/dist/runtime/formkit/InputSelect.vue.d.ts +1 -1
  161. package/dist/runtime/formkit/InputXlsx.d.vue.ts +5 -7
  162. package/dist/runtime/formkit/InputXlsx.vue.d.ts +5 -7
  163. package/dist/runtime/formkit/OptionGroup.d.vue.ts +5 -7
  164. package/dist/runtime/formkit/OptionGroup.vue.d.ts +5 -7
  165. package/dist/runtime/formkit/Radio.d.vue.ts +5 -7
  166. package/dist/runtime/formkit/Radio.vue.d.ts +5 -7
  167. package/dist/runtime/formkit/Repeater.d.vue.ts +5 -7
  168. package/dist/runtime/formkit/Repeater.vue.d.ts +5 -7
  169. package/dist/runtime/formkit/Select.d.vue.ts +5 -7
  170. package/dist/runtime/formkit/Select.vue.d.ts +5 -7
  171. package/dist/runtime/formkit/Textarea.d.vue.ts +1 -1
  172. package/dist/runtime/formkit/Textarea.vue.d.ts +1 -1
  173. package/dist/runtime/formkit/TimePicker.d.vue.ts +5 -7
  174. package/dist/runtime/formkit/TimePicker.vue.d.ts +5 -7
  175. package/dist/runtime/pages/System/fs.vue +26 -51
  176. package/package.json +3 -3
@@ -5,15 +5,28 @@ type __VLS_ModelProps = {
5
5
  modelValue?: any;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_37: any, __VLS_38: any;
8
+ declare var __VLS_36: string, __VLS_37: any;
9
9
  type __VLS_Slots = {} & {
10
- [K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
10
+ [K in NonNullable<typeof __VLS_36>]?: (props: typeof __VLS_37) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:modelValue": (value: any) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ }>, {
17
+ dark: boolean | null;
18
+ rounded: boolean;
19
+ square: boolean;
20
+ dense: boolean;
21
+ disable: boolean;
22
+ outlined: boolean;
23
+ filled: boolean;
24
+ stackLabel: boolean;
25
+ standout: string | boolean;
26
+ hideBottomSpace: boolean;
27
+ todayBtn: boolean;
28
+ range: boolean;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
31
  declare const _default: typeof __VLS_export;
19
32
  export default _default;
@@ -5,15 +5,28 @@ type __VLS_ModelProps = {
5
5
  modelValue?: any;
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
- declare var __VLS_37: any, __VLS_38: any;
8
+ declare var __VLS_36: string, __VLS_37: any;
9
9
  type __VLS_Slots = {} & {
10
- [K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
10
+ [K in NonNullable<typeof __VLS_36>]?: (props: typeof __VLS_37) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
13
  "update:modelValue": (value: any) => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ }>, {
17
+ dark: boolean | null;
18
+ rounded: boolean;
19
+ square: boolean;
20
+ dense: boolean;
21
+ disable: boolean;
22
+ outlined: boolean;
23
+ filled: boolean;
24
+ stackLabel: boolean;
25
+ standout: string | boolean;
26
+ hideBottomSpace: boolean;
27
+ todayBtn: boolean;
28
+ range: boolean;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
30
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
31
  declare const _default: typeof __VLS_export;
19
32
  export default _default;
@@ -1,11 +1,11 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof emit;
5
- $props: Partial<typeof props>;
3
+ declare const __VLS_export: import("vue").DefineComponent<{
6
4
  to?: any;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- declare const emit: (event: "submit", ...args: any[]) => void;
9
- declare const props: {
10
- readonly to?: any;
11
- };
5
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ submit: (...args: any[]) => void;
7
+ }, string, import("vue").PublicProps, Readonly<{
8
+ to?: any;
9
+ }> & Readonly<{
10
+ onSubmit?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,11 +1,11 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof emit;
5
- $props: Partial<typeof props>;
3
+ declare const __VLS_export: import("vue").DefineComponent<{
6
4
  to?: any;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- declare const emit: (event: "submit", ...args: any[]) => void;
9
- declare const props: {
10
- readonly to?: any;
11
- };
5
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ submit: (...args: any[]) => void;
7
+ }, string, import("vue").PublicProps, Readonly<{
8
+ to?: any;
9
+ }> & Readonly<{
10
+ onSubmit?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,9 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof __VLS_emit;
5
- $props: Partial<typeof props>;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- declare const __VLS_emit: (event: "hide" | "ok", ...args: any[]) => void;
8
- declare const props: {};
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ hide: (...args: any[]) => void;
5
+ ok: (...args: any[]) => void;
6
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
7
+ onHide?: ((...args: any[]) => any) | undefined;
8
+ onOk?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,8 +1,9 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof __VLS_emit;
5
- $props: Partial<typeof props>;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- declare const __VLS_emit: (event: "hide" | "ok", ...args: any[]) => void;
8
- declare const props: {};
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ hide: (...args: any[]) => void;
5
+ ok: (...args: any[]) => void;
6
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
7
+ onHide?: ((...args: any[]) => any) | undefined;
8
+ onOk?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,29 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ selectedLocation: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ initialFiles: {
9
+ type: ArrayConstructor;
10
+ default: () => never[];
11
+ };
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ hide: (...args: any[]) => void;
14
+ ok: (...args: any[]) => void;
15
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ selectedLocation: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ initialFiles: {
21
+ type: ArrayConstructor;
22
+ default: () => never[];
23
+ };
24
+ }>> & Readonly<{
25
+ onHide?: ((...args: any[]) => any) | undefined;
26
+ onOk?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ initialFiles: unknown[];
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,178 @@
1
+ <script setup>
2
+ import { useDialogPluginComponent } from "quasar";
3
+ import { ref, onMounted } from "vue";
4
+ import { useQuasar } from "quasar";
5
+ import { fs } from "@hostlink/light";
6
+ const props = defineProps({
7
+ selectedLocation: {
8
+ type: String,
9
+ required: true
10
+ },
11
+ initialFiles: {
12
+ type: Array,
13
+ default: () => []
14
+ }
15
+ });
16
+ defineEmits([
17
+ ...useDialogPluginComponent.emits
18
+ ]);
19
+ const { dialogRef, onDialogHide, onDialogOK, onDialogCancel } = useDialogPluginComponent();
20
+ const $q = useQuasar();
21
+ const uploadFiles = ref([]);
22
+ const uploadProgress = ref({});
23
+ onMounted(() => {
24
+ if (props.initialFiles && props.initialFiles.length > 0) {
25
+ uploadFiles.value = props.initialFiles;
26
+ }
27
+ });
28
+ const initializeUploadProgress = () => {
29
+ uploadProgress.value = {};
30
+ uploadFiles.value.forEach((file, index) => {
31
+ uploadProgress.value[index] = {
32
+ name: file.name,
33
+ status: "pending",
34
+ // pending, uploading, completed, failed
35
+ error: null,
36
+ progress: 0
37
+ };
38
+ });
39
+ };
40
+ const onUploadFiles = async () => {
41
+ initializeUploadProgress();
42
+ try {
43
+ const uploadPromises = uploadFiles.value.map(
44
+ (file, index) => (async () => {
45
+ try {
46
+ uploadProgress.value[index].status = "uploading";
47
+ await fs.uploadFile(props.selectedLocation, file);
48
+ uploadProgress.value[index].status = "completed";
49
+ uploadProgress.value[index].progress = 100;
50
+ } catch (error) {
51
+ uploadProgress.value[index].status = "failed";
52
+ uploadProgress.value[index].error = error?.message || String(error);
53
+ }
54
+ })()
55
+ );
56
+ await Promise.allSettled(uploadPromises);
57
+ const failedUploads = Object.values(uploadProgress.value).filter((p) => p.status === "failed");
58
+ if (failedUploads.length === 0) {
59
+ setTimeout(() => {
60
+ onDialogOK(uploadFiles.value);
61
+ uploadProgress.value = {};
62
+ }, 1e3);
63
+ }
64
+ } catch (e) {
65
+ $q.dialog({
66
+ title: "Error",
67
+ message: e.message
68
+ });
69
+ }
70
+ };
71
+ const onCancel = () => {
72
+ uploadProgress.value = {};
73
+ uploadFiles.value = [];
74
+ onDialogCancel();
75
+ };
76
+ </script>
77
+
78
+ <template>
79
+ <q-dialog ref="dialogRef" @hide="onDialogHide">
80
+ <q-card style="min-width: 400px;">
81
+ <q-toolbar>
82
+ <q-toolbar-title>{{ $t('Upload Files') }}</q-toolbar-title>
83
+ <q-space></q-space>
84
+ <q-btn
85
+ flat
86
+ round
87
+ dense
88
+ icon="sym_o_close"
89
+ v-close-popup
90
+ :disable="uploadFiles.length > 0 && Object.values(uploadProgress).some(p => p.status === 'uploading')"
91
+ ></q-btn>
92
+ </q-toolbar>
93
+ <q-card-section>
94
+ <!-- 顯示上傳進度 -->
95
+ <div v-if="Object.keys(uploadProgress).length > 0" class="q-mb-md">
96
+ <q-list bordered separator>
97
+ <q-item v-for="(progress, index) in uploadProgress" :key="index">
98
+ <q-item-section avatar>
99
+ <q-icon
100
+ v-if="progress.status === 'completed'"
101
+ name="sym_o_check_circle"
102
+ color="positive"
103
+ size="md"
104
+ />
105
+ <q-icon
106
+ v-else-if="progress.status === 'failed'"
107
+ name="sym_o_error"
108
+ color="negative"
109
+ size="md"
110
+ />
111
+ <q-icon
112
+ v-else-if="progress.status === 'uploading'"
113
+ name="sym_o_cloud_upload"
114
+ color="primary"
115
+ size="md"
116
+ />
117
+ <q-icon
118
+ v-else
119
+ name="sym_o_schedule"
120
+ color="grey"
121
+ size="md"
122
+ />
123
+ </q-item-section>
124
+
125
+ <q-item-section>
126
+ <q-item-label>{{ progress.name }}</q-item-label>
127
+ <q-item-label caption v-if="progress.status === 'uploading'">
128
+ 上傳中...
129
+ </q-item-label>
130
+ <q-item-label caption v-else-if="progress.status === 'completed'" class="text-positive">
131
+ 上傳完成
132
+ </q-item-label>
133
+ <q-item-label caption v-else-if="progress.status === 'failed'" class="text-negative">
134
+ {{ progress.error }}
135
+ </q-item-label>
136
+ <q-item-label caption v-else>
137
+ 等待中...
138
+ </q-item-label>
139
+
140
+ <q-linear-progress
141
+ v-if="progress.status === 'uploading' || progress.status === 'completed'"
142
+ :value="progress.progress / 100"
143
+ :color="progress.status === 'completed' ? 'positive' : 'primary'"
144
+ class="q-mt-xs"
145
+ stripe
146
+ rounded
147
+ />
148
+ </q-item-section>
149
+ </q-item>
150
+ </q-list>
151
+ </div>
152
+
153
+ <!-- 未上傳時顯示檔案選擇 -->
154
+ <div v-else>
155
+ <q-file v-model="uploadFiles" multiple name="file" :label="$t('Files')" color="primary" outlined />
156
+ </div>
157
+ </q-card-section>
158
+
159
+ <q-card-actions align="right">
160
+ <q-btn
161
+ flat
162
+ :label="$t('Cancel')"
163
+ color="primary"
164
+ v-close-popup
165
+ @click="onCancel"
166
+ :disable="uploadFiles.length > 0 && Object.values(uploadProgress).some(p => p.status === 'uploading')"
167
+ ></q-btn>
168
+ <q-btn
169
+ flat
170
+ :label="$t('Upload')"
171
+ color="primary"
172
+ @click="onUploadFiles"
173
+ :disable="uploadFiles.length === 0 || Object.keys(uploadProgress).length > 0"
174
+ ></q-btn>
175
+ </q-card-actions>
176
+ </q-card>
177
+ </q-dialog>
178
+ </template>
@@ -0,0 +1,29 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ selectedLocation: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ initialFiles: {
9
+ type: ArrayConstructor;
10
+ default: () => never[];
11
+ };
12
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ hide: (...args: any[]) => void;
14
+ ok: (...args: any[]) => void;
15
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ selectedLocation: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ initialFiles: {
21
+ type: ArrayConstructor;
22
+ default: () => never[];
23
+ };
24
+ }>> & Readonly<{
25
+ onHide?: ((...args: any[]) => any) | undefined;
26
+ onOk?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ initialFiles: unknown[];
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,9 +1,17 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $props: Partial<typeof props>;
5
- name?: string | undefined;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- declare const props: {
8
- readonly name?: string | undefined;
9
- };
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ name: StringConstructor;
5
+ modelValue: {
6
+ type: import("vue").PropType<any>;
7
+ };
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: any) => any;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ name: StringConstructor;
12
+ modelValue: {
13
+ type: import("vue").PropType<any>;
14
+ };
15
+ }>> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,9 +1,17 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $props: Partial<typeof props>;
5
- name?: string | undefined;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
- declare const props: {
8
- readonly name?: string | undefined;
9
- };
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ name: StringConstructor;
5
+ modelValue: {
6
+ type: import("vue").PropType<any>;
7
+ };
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ "update:modelValue": (value: any) => any;
10
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ name: StringConstructor;
12
+ modelValue: {
13
+ type: import("vue").PropType<any>;
14
+ };
15
+ }>> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,12 +4,19 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
4
  type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  $slots: S;
6
6
  });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
7
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {
8
8
  updateModel: (name: any, value: any) => void;
9
9
  getModelByName: (name: any) => any;
10
10
  getGroupName: () => symbol;
11
11
  findAllItems: () => any[];
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: any) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
17
  type __VLS_Slots = {
14
18
  default?: ((props: {}) => any) | undefined;
15
19
  };
20
+ type __VLS_ModelProps = {
21
+ modelValue?: any;
22
+ };
@@ -4,12 +4,19 @@ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
4
  type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  $slots: S;
6
6
  });
7
- declare const __VLS_base: import("vue").DefineComponent<{}, {
7
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {
8
8
  updateModel: (name: any, value: any) => void;
9
9
  getModelByName: (name: any) => any;
10
10
  getGroupName: () => symbol;
11
11
  findAllItems: () => any[];
12
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ "update:modelValue": (value: any) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
17
  type __VLS_Slots = {
14
18
  default?: ((props: {}) => any) | undefined;
15
19
  };
20
+ type __VLS_ModelProps = {
21
+ modelValue?: any;
22
+ };
@@ -1,6 +1,16 @@
1
1
  import { type QEditorProps } from "quasar";
2
2
  export interface LEditorProps extends QEditorProps {
3
3
  }
4
- declare const __VLS_export: import("vue").DefineComponent<LEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<LEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (...args: any[]) => void;
6
+ }, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
+ }>, {
9
+ dense: boolean;
10
+ modelValue: string;
11
+ placeholder: string;
12
+ fonts: any | undefined;
13
+ toolbar: readonly any[];
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
15
  declare const _default: typeof __VLS_export;
6
16
  export default _default;
@@ -1,6 +1,16 @@
1
1
  import { type QEditorProps } from "quasar";
2
2
  export interface LEditorProps extends QEditorProps {
3
3
  }
4
- declare const __VLS_export: import("vue").DefineComponent<LEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<LEditorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (...args: any[]) => void;
6
+ }, string, import("vue").PublicProps, Readonly<LEditorProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
+ }>, {
9
+ dense: boolean;
10
+ modelValue: string;
11
+ placeholder: string;
12
+ fonts: any | undefined;
13
+ toolbar: readonly any[];
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
15
  declare const _default: typeof __VLS_export;
6
16
  export default _default;
@@ -1,6 +1,7 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof emits;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- declare const emits: (event: "login", ...args: any[]) => void;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ login: (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
6
+ onLogin?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,7 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $emit: typeof emits;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- declare const emits: (event: "login", ...args: any[]) => void;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ login: (...args: any[]) => void;
5
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
6
+ onLogin?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,11 +1,9 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $props: Partial<typeof props>;
3
+ declare const __VLS_export: import("vue").DefineComponent<{
5
4
  dense?: any;
6
5
  value?: any;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- declare const props: {
9
- readonly dense?: any;
10
- readonly value?: any;
11
- };
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
+ dense?: any;
8
+ value?: any;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,11 +1,9 @@
1
1
  declare const _default: typeof __VLS_export;
2
2
  export default _default;
3
- declare const __VLS_export: import("vue").DefineComponent<{}, {
4
- $props: Partial<typeof props>;
3
+ declare const __VLS_export: import("vue").DefineComponent<{
5
4
  dense?: any;
6
5
  value?: any;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- declare const props: {
9
- readonly dense?: any;
10
- readonly value?: any;
11
- };
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
+ dense?: any;
8
+ value?: any;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -3,7 +3,17 @@ declare var __VLS_8: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_8) => any;
5
5
  };
6
- declare const __VLS_base: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_base: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
7
+ dark: boolean | null;
8
+ rounded: boolean;
9
+ square: boolean;
10
+ dense: boolean;
11
+ outlined: boolean;
12
+ filled: boolean;
13
+ stackLabel: boolean;
14
+ standout: string | boolean;
15
+ hideBottomSpace: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
18
  declare const _default: typeof __VLS_export;
9
19
  export default _default;
@@ -3,7 +3,17 @@ declare var __VLS_8: {};
3
3
  type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_8) => any;
5
5
  };
6
- declare const __VLS_base: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const __VLS_base: import("vue").DefineComponent<QFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<QFieldProps> & Readonly<{}>, {
7
+ dark: boolean | null;
8
+ rounded: boolean;
9
+ square: boolean;
10
+ dense: boolean;
11
+ outlined: boolean;
12
+ filled: boolean;
13
+ stackLabel: boolean;
14
+ standout: string | boolean;
15
+ hideBottomSpace: boolean;
16
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
8
18
  declare const _default: typeof __VLS_export;
9
19
  export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ "update:modelValue": (value: any) => any;
5
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
6
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ type __VLS_ModelProps = {
9
+ modelValue?: any;
10
+ };