@hostlink/nuxt-light 1.55.0 → 1.56.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 (218) hide show
  1. package/README.md +120 -120
  2. package/dist/module.json +1 -1
  3. package/dist/runtime/components/L/CustomField/Add.vue +40 -42
  4. package/dist/runtime/components/L/CustomField/List.vue +5 -5
  5. package/dist/runtime/components/L/Database/create-table-dialog.vue +33 -34
  6. package/dist/runtime/components/L/Fieldset.vue +8 -11
  7. package/dist/runtime/components/L/ForgetPasswordDialog.vue +26 -27
  8. package/dist/runtime/components/L/Revision.vue +89 -93
  9. package/dist/runtime/components/L/Storage.vue +7 -7
  10. package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +1 -5
  11. package/dist/runtime/components/L/System/Setting/authentication.vue +16 -16
  12. package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +1 -5
  13. package/dist/runtime/components/L/System/Setting/developer.vue +10 -11
  14. package/dist/runtime/components/L/System/Setting/forget-password.vue +9 -9
  15. package/dist/runtime/components/L/System/Setting/general.vue +9 -9
  16. package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +1 -5
  17. package/dist/runtime/components/L/System/Setting/mail.vue +28 -32
  18. package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +1 -5
  19. package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +1 -5
  20. package/dist/runtime/components/L/System/Setting/modules.vue +6 -6
  21. package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +1 -5
  22. package/dist/runtime/components/L/System/Setting/security.d.vue.ts +1 -5
  23. package/dist/runtime/components/L/System/Setting/security.vue +38 -41
  24. package/dist/runtime/components/L/System/Setting/security.vue.d.ts +1 -5
  25. package/dist/runtime/components/L/User/eventlog.vue +5 -5
  26. package/dist/runtime/components/L/User/overview.vue +19 -19
  27. package/dist/runtime/components/L/User/userlog.vue +1 -1
  28. package/dist/runtime/components/L/ValidationInput.vue +14 -14
  29. package/dist/runtime/components/MyTest.vue +3 -3
  30. package/dist/runtime/components/l-action-btn.vue +4 -4
  31. package/dist/runtime/components/l-add-btn.vue +3 -3
  32. package/dist/runtime/components/l-alert.vue +8 -8
  33. package/dist/runtime/components/l-app-main.d.vue.ts +1 -5
  34. package/dist/runtime/components/l-app-main.vue +170 -171
  35. package/dist/runtime/components/l-app-main.vue.d.ts +1 -5
  36. package/dist/runtime/components/l-app.vue +27 -27
  37. package/dist/runtime/components/l-audit-card.vue +8 -8
  38. package/dist/runtime/components/l-back-btn.vue +6 -6
  39. package/dist/runtime/components/l-banner.d.vue.ts +1 -1
  40. package/dist/runtime/components/l-banner.vue +10 -10
  41. package/dist/runtime/components/l-banner.vue.d.ts +1 -1
  42. package/dist/runtime/components/l-bar.vue +3 -3
  43. package/dist/runtime/components/l-btn.vue +4 -4
  44. package/dist/runtime/components/l-card.d.vue.ts +1 -9
  45. package/dist/runtime/components/l-card.vue +31 -31
  46. package/dist/runtime/components/l-card.vue.d.ts +1 -9
  47. package/dist/runtime/components/l-checkbox.vue +3 -3
  48. package/dist/runtime/components/l-col.vue +5 -5
  49. package/dist/runtime/components/l-customizer.d.vue.ts +2 -2
  50. package/dist/runtime/components/l-customizer.vue +95 -96
  51. package/dist/runtime/components/l-customizer.vue.d.ts +2 -2
  52. package/dist/runtime/components/l-date-picker.d.vue.ts +1 -1
  53. package/dist/runtime/components/l-date-picker.vue +17 -17
  54. package/dist/runtime/components/l-date-picker.vue.d.ts +1 -1
  55. package/dist/runtime/components/l-delete-btn.vue +1 -1
  56. package/dist/runtime/components/l-dialog-database-field-add.vue +25 -26
  57. package/dist/runtime/components/l-drag-drop-container.vue +5 -5
  58. package/dist/runtime/components/l-drag-drop-group.vue +1 -1
  59. package/dist/runtime/components/l-drag-drop.vue +6 -6
  60. package/dist/runtime/components/l-edit-btn.vue +2 -2
  61. package/dist/runtime/components/l-editor.d.vue.ts +1 -5
  62. package/dist/runtime/components/l-editor.vue +41 -41
  63. package/dist/runtime/components/l-editor.vue.d.ts +1 -5
  64. package/dist/runtime/components/l-facebook-button.vue +2 -2
  65. package/dist/runtime/components/l-fav-menu.vue +14 -14
  66. package/dist/runtime/components/l-field.vue +3 -3
  67. package/dist/runtime/components/l-file-manager-labels.vue +11 -11
  68. package/dist/runtime/components/l-file-manager-move.vue +67 -67
  69. package/dist/runtime/components/l-file-manager-preview.vue +22 -22
  70. package/dist/runtime/components/l-file-manager.vue +245 -250
  71. package/dist/runtime/components/l-file-upload.d.vue.ts +1 -1
  72. package/dist/runtime/components/l-file-upload.vue +25 -25
  73. package/dist/runtime/components/l-file-upload.vue.d.ts +1 -1
  74. package/dist/runtime/components/l-file.d.vue.ts +1 -5
  75. package/dist/runtime/components/l-file.vue +8 -8
  76. package/dist/runtime/components/l-file.vue.d.ts +1 -5
  77. package/dist/runtime/components/l-form-dialog.vue +27 -27
  78. package/dist/runtime/components/l-form.d.vue.ts +1 -33
  79. package/dist/runtime/components/l-form.vue +11 -11
  80. package/dist/runtime/components/l-form.vue.d.ts +1 -33
  81. package/dist/runtime/components/l-group-select.vue +22 -22
  82. package/dist/runtime/components/l-icon-picker.vue +35 -38
  83. package/dist/runtime/components/l-input-select.vue +4 -4
  84. package/dist/runtime/components/l-input-xlsx.vue +30 -31
  85. package/dist/runtime/components/l-input.d.vue.ts +1 -1
  86. package/dist/runtime/components/l-input.vue +23 -23
  87. package/dist/runtime/components/l-input.vue.d.ts +1 -1
  88. package/dist/runtime/components/l-item.vue +18 -18
  89. package/dist/runtime/components/l-link.vue +3 -3
  90. package/dist/runtime/components/l-list.vue +12 -12
  91. package/dist/runtime/components/l-login.d.vue.ts +1 -5
  92. package/dist/runtime/components/l-login.vue +57 -57
  93. package/dist/runtime/components/l-login.vue.d.ts +1 -5
  94. package/dist/runtime/components/l-menu.vue +33 -34
  95. package/dist/runtime/components/l-microsoft-button.d.vue.ts +1 -11
  96. package/dist/runtime/components/l-microsoft-button.vue +68 -68
  97. package/dist/runtime/components/l-microsoft-button.vue.d.ts +1 -11
  98. package/dist/runtime/components/l-page.vue +21 -21
  99. package/dist/runtime/components/l-repeater.d.vue.ts +3 -3
  100. package/dist/runtime/components/l-repeater.vue +35 -35
  101. package/dist/runtime/components/l-repeater.vue.d.ts +3 -3
  102. package/dist/runtime/components/l-row.vue +5 -5
  103. package/dist/runtime/components/l-save-btn.vue +2 -2
  104. package/dist/runtime/components/l-select.vue +1 -1
  105. package/dist/runtime/components/l-small-box.vue +9 -9
  106. package/dist/runtime/components/l-statistic.vue +9 -9
  107. package/dist/runtime/components/l-tab.vue +10 -10
  108. package/dist/runtime/components/l-table.d.vue.ts +1 -1
  109. package/dist/runtime/components/l-table.vue +176 -190
  110. package/dist/runtime/components/l-table.vue.d.ts +1 -1
  111. package/dist/runtime/components/l-tabs.vue +9 -9
  112. package/dist/runtime/components/l-test2.vue +3 -3
  113. package/dist/runtime/components/l-time-picker.d.vue.ts +1 -1
  114. package/dist/runtime/components/l-time-picker.vue +18 -18
  115. package/dist/runtime/components/l-time-picker.vue.d.ts +1 -1
  116. package/dist/runtime/components/l-view-btn.vue +2 -2
  117. package/dist/runtime/components/user-list.vue +3 -3
  118. package/dist/runtime/composables/mytest.js +2 -2
  119. package/dist/runtime/composables/tc2sc.js +85 -85
  120. package/dist/runtime/formkit/Checkbox.d.vue.ts +0 -1
  121. package/dist/runtime/formkit/Checkbox.vue +6 -6
  122. package/dist/runtime/formkit/Checkbox.vue.d.ts +0 -1
  123. package/dist/runtime/formkit/DatePicker.d.vue.ts +0 -1
  124. package/dist/runtime/formkit/DatePicker.vue +11 -11
  125. package/dist/runtime/formkit/DatePicker.vue.d.ts +0 -1
  126. package/dist/runtime/formkit/Editor.vue +7 -7
  127. package/dist/runtime/formkit/File.d.vue.ts +0 -1
  128. package/dist/runtime/formkit/File.vue +6 -6
  129. package/dist/runtime/formkit/File.vue.d.ts +0 -1
  130. package/dist/runtime/formkit/FilePicker.d.vue.ts +0 -1
  131. package/dist/runtime/formkit/FilePicker.vue +6 -6
  132. package/dist/runtime/formkit/FilePicker.vue.d.ts +0 -1
  133. package/dist/runtime/formkit/FileUpload.d.vue.ts +0 -1
  134. package/dist/runtime/formkit/FileUpload.vue +6 -6
  135. package/dist/runtime/formkit/FileUpload.vue.d.ts +0 -1
  136. package/dist/runtime/formkit/Form.d.vue.ts +1 -3
  137. package/dist/runtime/formkit/Form.vue +11 -11
  138. package/dist/runtime/formkit/Form.vue.d.ts +1 -3
  139. package/dist/runtime/formkit/GroupSelect.d.vue.ts +0 -1
  140. package/dist/runtime/formkit/GroupSelect.vue +7 -7
  141. package/dist/runtime/formkit/GroupSelect.vue.d.ts +0 -1
  142. package/dist/runtime/formkit/Input.d.vue.ts +1 -1
  143. package/dist/runtime/formkit/Input.vue +11 -11
  144. package/dist/runtime/formkit/Input.vue.d.ts +1 -1
  145. package/dist/runtime/formkit/InputSelect.d.vue.ts +1 -1
  146. package/dist/runtime/formkit/InputSelect.vue +7 -7
  147. package/dist/runtime/formkit/InputSelect.vue.d.ts +1 -1
  148. package/dist/runtime/formkit/InputXlsx.vue +4 -4
  149. package/dist/runtime/formkit/OptionGroup.vue +5 -5
  150. package/dist/runtime/formkit/Radio.vue +4 -4
  151. package/dist/runtime/formkit/Repeater.d.vue.ts +1 -1
  152. package/dist/runtime/formkit/Repeater.vue +37 -37
  153. package/dist/runtime/formkit/Repeater.vue.d.ts +1 -1
  154. package/dist/runtime/formkit/Select.d.vue.ts +0 -1
  155. package/dist/runtime/formkit/Select.vue +6 -6
  156. package/dist/runtime/formkit/Select.vue.d.ts +0 -1
  157. package/dist/runtime/formkit/Textarea.d.vue.ts +1 -1
  158. package/dist/runtime/formkit/Textarea.vue +11 -11
  159. package/dist/runtime/formkit/Textarea.vue.d.ts +1 -1
  160. package/dist/runtime/formkit/TimePicker.d.vue.ts +0 -1
  161. package/dist/runtime/formkit/TimePicker.vue +10 -10
  162. package/dist/runtime/formkit/TimePicker.vue.d.ts +0 -1
  163. package/dist/runtime/formkit/Toggle.vue +3 -3
  164. package/dist/runtime/index.d.ts +39 -39
  165. package/dist/runtime/locales/en.json +9 -9
  166. package/dist/runtime/locales/zh-hk.json +213 -213
  167. package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +33 -38
  168. package/dist/runtime/pages/CustomField/index.vue +12 -14
  169. package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +36 -36
  170. package/dist/runtime/pages/EventLog/index.vue +7 -7
  171. package/dist/runtime/pages/FileManager/index.vue +4 -4
  172. package/dist/runtime/pages/MailLog/index.vue +18 -18
  173. package/dist/runtime/pages/Permission/add.vue +13 -13
  174. package/dist/runtime/pages/Permission/all.vue +63 -63
  175. package/dist/runtime/pages/Permission/export.vue +9 -10
  176. package/dist/runtime/pages/Permission/index.vue +4 -4
  177. package/dist/runtime/pages/Role/_name/update-child.vue +4 -4
  178. package/dist/runtime/pages/Role/add.vue +7 -7
  179. package/dist/runtime/pages/Role/add2.vue +30 -30
  180. package/dist/runtime/pages/Role/index.vue +27 -27
  181. package/dist/runtime/pages/System/database/backup.vue +72 -72
  182. package/dist/runtime/pages/System/database/check.vue +72 -72
  183. package/dist/runtime/pages/System/database/event.vue +51 -51
  184. package/dist/runtime/pages/System/database/process.vue +21 -21
  185. package/dist/runtime/pages/System/database/restore.vue +110 -110
  186. package/dist/runtime/pages/System/database/table.vue +67 -69
  187. package/dist/runtime/pages/System/fs.vue +99 -99
  188. package/dist/runtime/pages/System/index.vue +16 -18
  189. package/dist/runtime/pages/System/mailtest.vue +12 -12
  190. package/dist/runtime/pages/System/menu/index.vue +142 -144
  191. package/dist/runtime/pages/System/package.vue +11 -11
  192. package/dist/runtime/pages/System/phpinfo.vue +3 -3
  193. package/dist/runtime/pages/System/setting.vue +28 -30
  194. package/dist/runtime/pages/System/test.vue +12 -12
  195. package/dist/runtime/pages/System/view_as.vue +21 -22
  196. package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +6 -6
  197. package/dist/runtime/pages/SystemValue/add.vue +7 -7
  198. package/dist/runtime/pages/SystemValue/index.vue +4 -4
  199. package/dist/runtime/pages/Translate/index.vue +38 -38
  200. package/dist/runtime/pages/User/_user_id/change-password.vue +17 -18
  201. package/dist/runtime/pages/User/_user_id/edit.vue +28 -28
  202. package/dist/runtime/pages/User/_user_id/update-role.vue +7 -8
  203. package/dist/runtime/pages/User/_user_id/view.vue +27 -30
  204. package/dist/runtime/pages/User/add.vue +35 -35
  205. package/dist/runtime/pages/User/index.vue +11 -11
  206. package/dist/runtime/pages/User/profile.vue +45 -46
  207. package/dist/runtime/pages/User/setting/bio-auth.vue +22 -22
  208. package/dist/runtime/pages/User/setting/favorite.vue +61 -62
  209. package/dist/runtime/pages/User/setting/index.vue +6 -6
  210. package/dist/runtime/pages/User/setting/information.vue +6 -6
  211. package/dist/runtime/pages/User/setting/menu.vue +165 -165
  212. package/dist/runtime/pages/User/setting/open_id.vue +161 -161
  213. package/dist/runtime/pages/User/setting/password.vue +19 -19
  214. package/dist/runtime/pages/User/setting/style.vue +104 -106
  215. package/dist/runtime/pages/User/setting/two-factor-auth.vue +176 -176
  216. package/dist/runtime/pages/User/setting.vue +32 -32
  217. package/dist/runtime/pages/UserLog/index.vue +4 -4
  218. package/package.json +63 -63
@@ -34,12 +34,12 @@ const attrs = computed(() => {
34
34
  </script>
35
35
 
36
36
  <template>
37
- <l-input v-bind="attrs" v-model="localValue" hide-bottom-space>
38
- <q-dialog v-model="show" full-height full-width>
39
- <l-file-manager closable @close="show = false" @input="onInput"></l-file-manager>
40
- </q-dialog>
41
- <template v-slot:prepend>
42
- <q-btn dense flat round icon="sym_o_folder" @click="show = true"></q-btn>
43
- </template>
44
- </l-input>
37
+ <l-input v-bind="attrs" v-model="localValue" hide-bottom-space>
38
+ <q-dialog v-model="show" full-height full-width>
39
+ <l-file-manager closable @close="show = false" @input="onInput"></l-file-manager>
40
+ </q-dialog>
41
+ <template v-slot:prepend>
42
+ <q-btn dense flat round icon="sym_o_folder" @click="show = true"></q-btn>
43
+ </template>
44
+ </l-input>
45
45
  </template>
@@ -9,10 +9,6 @@ export interface LFileProps {
9
9
  square?: boolean;
10
10
  stackLabel?: boolean;
11
11
  }
12
- declare const __VLS_export: import("vue").DefineComponent<LFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:modelValue": (...args: any[]) => void;
14
- }, string, import("vue").PublicProps, Readonly<LFileProps> & Readonly<{
15
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: import("vue").DefineComponent<LFileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
13
  declare const _default: typeof __VLS_export;
18
14
  export default _default;
@@ -68,31 +68,31 @@ const onCancel = async () => {
68
68
  </script>
69
69
 
70
70
  <template>
71
- <q-dialog ref="dialogRef">
72
-
73
- <q-card :style="{ width }" :loading="loading" class="q-dialog-plugin">
74
- <q-toolbar>
75
- <q-toolbar-title v-if="title">
76
- {{ title }}
77
- </q-toolbar-title>
78
- <q-space />
79
- <q-btn icon="sym_o_close" flat round dense v-close-popup />
80
- </q-toolbar>
81
-
82
- <form-kit type="form" :bordered="false" :actions="false" :value="value" #default="context"
83
- @submit="onSubmit">
84
-
85
- <q-card-section>
86
- <slot name="default" v-bind="context"></slot>
87
- </q-card-section>
88
- <q-card-actions align="right">
89
- <q-btn icon="sym_o_close" :label="$t('Cancel')" @click="onCancel" unelevated />
90
- <q-btn icon="sym_o_check" :label="$t('Save')" type="submit" color="primary" unelevated
91
- :disabled="!context.state.valid" />
92
- </q-card-actions>
93
- </form-kit>
94
-
95
- <q-inner-loading :showing="loading"></q-inner-loading>
96
- </q-card>
97
- </q-dialog>
71
+ <q-dialog ref="dialogRef">
72
+
73
+ <q-card :style="{ width }" :loading="loading" class="q-dialog-plugin">
74
+ <q-toolbar>
75
+ <q-toolbar-title v-if="title">
76
+ {{ title }}
77
+ </q-toolbar-title>
78
+ <q-space />
79
+ <q-btn icon="sym_o_close" flat round dense v-close-popup />
80
+ </q-toolbar>
81
+
82
+ <form-kit type="form" :bordered="false" :actions="false" :value="value" #default="context"
83
+ @submit="onSubmit">
84
+
85
+ <q-card-section>
86
+ <slot name="default" v-bind="context"></slot>
87
+ </q-card-section>
88
+ <q-card-actions align="right">
89
+ <q-btn icon="sym_o_close" :label="$t('Cancel')" @click="onCancel" unelevated />
90
+ <q-btn icon="sym_o_check" :label="$t('Save')" type="submit" color="primary" unelevated
91
+ :disabled="!context.state.valid" />
92
+ </q-card-actions>
93
+ </form-kit>
94
+
95
+ <q-inner-loading :showing="loading"></q-inner-loading>
96
+ </q-card>
97
+ </q-dialog>
98
98
  </template>
@@ -26,39 +26,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
26
26
  type: BooleanConstructor;
27
27
  default: boolean;
28
28
  };
29
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- submit: (...args: any[]) => void;
31
- save: (...args: any[]) => void;
32
- submitted: (...args: any[]) => void;
33
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
- modelValue: {
35
- type: ObjectConstructor;
36
- };
37
- bordered: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- gutter: {
42
- type: StringConstructor;
43
- default: string;
44
- };
45
- submitLabel: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- submitIcon: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- noRedirect: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- }>> & Readonly<{
58
- onSubmit?: ((...args: any[]) => any) | undefined;
59
- onSave?: ((...args: any[]) => any) | undefined;
60
- onSubmitted?: ((...args: any[]) => any) | undefined;
61
- }>, {
29
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
62
30
  bordered: boolean;
63
31
  gutter: string;
64
32
  submitLabel: string;
@@ -86,15 +86,15 @@ const localClass = computed(() => {
86
86
  </script>
87
87
 
88
88
  <template>
89
- <q-form ref="form" @submit="onSubmit">
90
- <l-card :bordered="bordered">
91
- <q-card-section :class="localClass">
92
- <slot></slot>
93
- </q-card-section>
94
-
95
- <q-card-actions align="right">
96
- <l-btn :icon="submitIcon" :label="submitLabel" @click="save" :loading="loading" type="submit" />
97
- </q-card-actions>
98
- </l-card>
99
- </q-form>
89
+ <q-form ref="form" @submit="onSubmit">
90
+ <l-card :bordered="bordered">
91
+ <q-card-section :class="localClass">
92
+ <slot></slot>
93
+ </q-card-section>
94
+
95
+ <q-card-actions align="right">
96
+ <l-btn :icon="submitIcon" :label="submitLabel" @click="save" :loading="loading" type="submit" />
97
+ </q-card-actions>
98
+ </l-card>
99
+ </q-form>
100
100
  </template>
@@ -26,39 +26,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
26
26
  type: BooleanConstructor;
27
27
  default: boolean;
28
28
  };
29
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
- submit: (...args: any[]) => void;
31
- save: (...args: any[]) => void;
32
- submitted: (...args: any[]) => void;
33
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
- modelValue: {
35
- type: ObjectConstructor;
36
- };
37
- bordered: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- gutter: {
42
- type: StringConstructor;
43
- default: string;
44
- };
45
- submitLabel: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- submitIcon: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
- noRedirect: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
57
- }>> & Readonly<{
58
- onSubmit?: ((...args: any[]) => any) | undefined;
59
- onSave?: ((...args: any[]) => any) | undefined;
60
- onSubmitted?: ((...args: any[]) => any) | undefined;
61
- }>, {
29
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
62
30
  bordered: boolean;
63
31
  gutter: string;
64
32
  submitLabel: string;
@@ -56,26 +56,26 @@ const filterFn = (val, update, abort) => {
56
56
  </script>
57
57
 
58
58
  <template>
59
- <q-select v-model="model" v-bind="$light.getInputProps($props)" :options="items"
60
- @update:model-value="handleItemUniqueByGroup" input-debounce="0" @filter="filterFn" :style="$light.styles.input"
61
- :emit-value="emitValue" :map-options="mapOptions">
62
- <template v-slot:option="scope">
63
- <q-item v-if="scope.opt.is_group" v-bind="{ ...scope.itemProps }" class="text-xs bg-grey-4"
64
- :key="scope.opt.label">
65
- <q-item-section class="!cursor-default">
66
- {{ scope.opt.label || "Ungroup" }}
67
- </q-item-section>
68
- </q-item>
69
- <q-item v-else v-bind="{ ...scope.itemProps }" :key="scope.opt.value">
70
- <q-item-section class="q-pl-md">{{ scope.opt.label }}</q-item-section>
71
- </q-item>
72
- </template>
73
- <template v-slot:no-option>
74
- <q-item>
75
- <q-item-section class="text-grey">
76
- No results
77
- </q-item-section>
78
- </q-item>
79
- </template>
80
- </q-select>
59
+ <q-select v-model="model" v-bind="$light.getInputProps($props)" :options="items"
60
+ @update:model-value="handleItemUniqueByGroup" input-debounce="0" @filter="filterFn" :style="$light.styles.input"
61
+ :emit-value="emitValue" :map-options="mapOptions">
62
+ <template v-slot:option="scope">
63
+ <q-item v-if="scope.opt.is_group" v-bind="{ ...scope.itemProps }" class="text-xs bg-grey-4"
64
+ :key="scope.opt.label">
65
+ <q-item-section class="!cursor-default">
66
+ {{ scope.opt.label || "Ungroup" }}
67
+ </q-item-section>
68
+ </q-item>
69
+ <q-item v-else v-bind="{ ...scope.itemProps }" :key="scope.opt.value">
70
+ <q-item-section class="q-pl-md">{{ scope.opt.label }}</q-item-section>
71
+ </q-item>
72
+ </template>
73
+ <template v-slot:no-option>
74
+ <q-item>
75
+ <q-item-section class="text-grey">
76
+ No results
77
+ </q-item-section>
78
+ </q-item>
79
+ </template>
80
+ </q-select>
81
81
  </template>
@@ -3262,42 +3262,39 @@ const displayIcons = computed(() => {
3262
3262
  </script>
3263
3263
 
3264
3264
  <template>
3265
- <q-btn v-bind="$props" :icon="modelValue ?? 'sym_o_link'">
3266
- <q-menu :offset="[0, 8]">
3267
-
3268
- <q-item-label header>
3269
- <q-input v-model="search" label="Search" outlined dense>
3270
- <template v-slot:prepend>
3271
- <q-icon name="sym_o_search" dense />
3272
- </template>
3273
- </q-input>
3274
- </q-item-label>
3275
-
3276
- <q-separator />
3277
-
3278
- <q-list class="scroll" style="max-height: 250px;max-width: 450px;">
3279
- <q-infinite-scroll @load="onLoad" :offset="250" ref="scroll">
3280
-
3281
- <div class="row">
3282
- <div class="col-3 q-pa-xs text-center" v-for="icon in displayIcons" :name="icon" :key="icon">
3283
- <q-btn :icon="icon" round flat @click="modelValue = icon" v-close-popup>
3284
- <q-tooltip>{{ icon }}</q-tooltip>
3285
- </q-btn>
3286
- </div>
3287
- </div>
3288
-
3289
- <template v-slot:loading>
3290
- <div class="text-center q-my-md">
3291
-
3292
- <q-spinner-dots size="40px" />
3293
- </div>
3294
- </template>
3295
- </q-infinite-scroll>
3296
- </q-list>
3297
-
3298
-
3299
-
3300
-
3301
- </q-menu>
3302
- </q-btn>
3265
+ <q-btn v-bind="$props" :icon="modelValue ?? 'sym_o_link'">
3266
+ <q-menu :offset="[0, 8]">
3267
+
3268
+ <q-item-label header>
3269
+ <q-input v-model="search" label="Search" outlined dense>
3270
+ <template v-slot:prepend>
3271
+ <q-icon name="sym_o_search" dense />
3272
+ </template>
3273
+ </q-input>
3274
+ </q-item-label>
3275
+
3276
+ <q-separator />
3277
+
3278
+ <q-list class="scroll" style="max-height: 250px;max-width: 450px;">
3279
+ <q-infinite-scroll @load="onLoad" :offset="250" ref="scroll">
3280
+
3281
+ <div class="row">
3282
+ <div class="col-3 q-pa-xs text-center" v-for="icon in displayIcons" :name="icon" :key="icon">
3283
+ <q-btn :icon="icon" round flat @click="modelValue = icon" v-close-popup>
3284
+ <q-tooltip>{{ icon }}</q-tooltip>
3285
+ </q-btn>
3286
+ </div>
3287
+ </div>
3288
+
3289
+ <template v-slot:loading>
3290
+ <div class="text-center q-my-md">
3291
+
3292
+ <q-spinner-dots size="40px" />
3293
+ </div>
3294
+ </template>
3295
+ </q-infinite-scroll>
3296
+ </q-list>
3297
+
3298
+ </q-menu>
3299
+ </q-btn>
3303
3300
  </template>
@@ -114,8 +114,8 @@ const filterFn = (val, update, abort) => {
114
114
  </script>
115
115
 
116
116
  <template>
117
- <q-select v-model="model" v-bind="$light.getInputProps($props)" :options="localOptions" use-input fill-input
118
- hide-selected @filter="filterFn" @input-value="setModel">
119
- <slot></slot>
120
- </q-select>
117
+ <q-select v-model="model" v-bind="$light.getInputProps($props)" :options="localOptions" use-input fill-input
118
+ hide-selected @filter="filterFn" @input-value="setModel">
119
+ <slot></slot>
120
+ </q-select>
121
121
  </template>
@@ -27,35 +27,34 @@ const showView = ref(false);
27
27
  </script>
28
28
 
29
29
  <template>
30
- <q-field v-bind="{ ...$light.styles.input, ...$attrs }" :loading="loading" :model-value="localData"
31
- @update:model-value="onClear">
32
- <template v-slot:control>
33
- <template v-if="!hasFile">
34
- <input type="file" accept=".xlsx" @change="onChange" ref="file" />
35
- </template>
36
-
37
- <template v-else>
38
- {{ modelValue.length }} records
39
- </template>
40
-
41
- </template>
42
-
43
- <template v-slot:prepend v-if="hasFile">
44
- <q-icon name="sym_o_table_view" @click="showView = true" class="cursor-pointer" />
45
- </template>
46
-
47
-
48
- <template v-slot:append v-if="hasFile">
49
- <q-icon name="cancel" @click="onClear" class="cursor-pointer" />
50
- </template>
51
-
52
- <q-dialog v-model="showView" full-width>
53
- <q-card>
54
- <q-card-section>
55
- <q-table :rows="modelValue" dense separator="cell" flat bordered></q-table>
56
- </q-card-section>
57
- </q-card>
58
- </q-dialog>
59
-
60
- </q-field>
30
+ <q-field v-bind="{ ...$light.styles.input, ...$attrs }" :loading="loading" :model-value="localData"
31
+ @update:model-value="onClear">
32
+ <template v-slot:control>
33
+ <template v-if="!hasFile">
34
+ <input type="file" accept=".xlsx" @change="onChange" ref="file" />
35
+ </template>
36
+
37
+ <template v-else>
38
+ {{ modelValue.length }} records
39
+ </template>
40
+
41
+ </template>
42
+
43
+ <template v-slot:prepend v-if="hasFile">
44
+ <q-icon name="sym_o_table_view" @click="showView = true" class="cursor-pointer" />
45
+ </template>
46
+
47
+ <template v-slot:append v-if="hasFile">
48
+ <q-icon name="cancel" @click="onClear" class="cursor-pointer" />
49
+ </template>
50
+
51
+ <q-dialog v-model="showView" full-width>
52
+ <q-card>
53
+ <q-card-section>
54
+ <q-table :rows="modelValue" dense separator="cell" flat bordered></q-table>
55
+ </q-card-section>
56
+ </q-card>
57
+ </q-dialog>
58
+
59
+ </q-field>
61
60
  </template>
@@ -9,7 +9,7 @@ type __VLS_ModelProps = {
9
9
  modelValue?: any;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_43: string | number, __VLS_44: any;
12
+ declare var __VLS_43: any, __VLS_44: any;
13
13
  type __VLS_Slots = {} & {
14
14
  [K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any;
15
15
  };
@@ -146,27 +146,27 @@ const localClass = computed(() => {
146
146
  </script>
147
147
 
148
148
  <template>
149
- <q-input v-bind="$light.getInputProps($props)" :rules="new_rules" :type="localType" :class="localClass">
150
- <template v-if="translate" #prepend>
151
- <q-btn icon="sym_o_translate" flat dense rounded>
152
- <q-menu dense>
153
- <q-list>
154
- <q-item clickable v-close-popup @click="onClickTc2Sc">
155
- <q-item-section>繁轉簡</q-item-section>
156
- </q-item>
157
- </q-list>
158
- </q-menu>
159
- </q-btn>
160
- </template>
161
- <template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
162
- <slot :name="name" v-bind="props ?? {}"></slot>
163
- </template>
164
-
165
- <template v-if="localShowPassword" v-slot:append>
166
- <q-icon name="sym_o_visibility" class="cursor-pointer" @click="isShowPassword = false"
167
- v-if="isShowPassword" />
168
- <q-icon name="sym_o_visibility_off" class="cursor-pointer" @click="isShowPassword = true" v-else />
169
- </template>
170
-
171
- </q-input>
149
+ <q-input v-bind="$light.getInputProps($props)" :rules="new_rules" :type="localType" :class="localClass">
150
+ <template v-if="translate" #prepend>
151
+ <q-btn icon="sym_o_translate" flat dense rounded>
152
+ <q-menu dense>
153
+ <q-list>
154
+ <q-item clickable v-close-popup @click="onClickTc2Sc">
155
+ <q-item-section>繁轉簡</q-item-section>
156
+ </q-item>
157
+ </q-list>
158
+ </q-menu>
159
+ </q-btn>
160
+ </template>
161
+ <template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
162
+ <slot :name="name" v-bind="props ?? {}"></slot>
163
+ </template>
164
+
165
+ <template v-if="localShowPassword" v-slot:append>
166
+ <q-icon name="sym_o_visibility" class="cursor-pointer" @click="isShowPassword = false"
167
+ v-if="isShowPassword" />
168
+ <q-icon name="sym_o_visibility_off" class="cursor-pointer" @click="isShowPassword = true" v-else />
169
+ </template>
170
+
171
+ </q-input>
172
172
  </template>
@@ -9,7 +9,7 @@ type __VLS_ModelProps = {
9
9
  modelValue?: any;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_43: string | number, __VLS_44: any;
12
+ declare var __VLS_43: any, __VLS_44: any;
13
13
  type __VLS_Slots = {} & {
14
14
  [K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any;
15
15
  };
@@ -27,22 +27,22 @@ defineProps({
27
27
  </script>
28
28
 
29
29
  <template>
30
- <q-item v-bind="$props">
31
- <q-item-section side v-if=$slots.avatar>
32
- <slot name="avatar"></slot>
33
- </q-item-section>
34
-
35
- <q-item-section side v-if="label" :top="labelTop">
36
- <q-item-label>{{ $t(label) }}</q-item-label>
37
- </q-item-section>
38
-
39
- <q-item-section :style="{ alignItems }">
40
- <slot></slot>
41
- </q-item-section>
42
-
43
- <q-item-section side v-if=$slots.end>
44
- <slot name="end"></slot>
45
- </q-item-section>
46
-
47
- </q-item>
30
+ <q-item v-bind="$props">
31
+ <q-item-section side v-if=$slots.avatar>
32
+ <slot name="avatar"></slot>
33
+ </q-item-section>
34
+
35
+ <q-item-section side v-if="label" :top="labelTop">
36
+ <q-item-label>{{ $t(label) }}</q-item-label>
37
+ </q-item-section>
38
+
39
+ <q-item-section :style="{ alignItems }">
40
+ <slot></slot>
41
+ </q-item-section>
42
+
43
+ <q-item-section side v-if=$slots.end>
44
+ <slot name="end"></slot>
45
+ </q-item-section>
46
+
47
+ </q-item>
48
48
  </template>
@@ -16,7 +16,7 @@ const props = defineProps({
16
16
  </script>
17
17
 
18
18
  <template>
19
- <router-link :to="props.to" style="text-decoration: underline;" class="text-primary">
20
- <slot />
21
- </router-link>
19
+ <router-link :to="props.to" style="text-decoration: underline;" class="text-primary">
20
+ <slot />
21
+ </router-link>
22
22
  </template>
@@ -34,16 +34,16 @@ const getFieldValue = (field) => {
34
34
  </script>
35
35
 
36
36
  <template>
37
- <q-list v-bind="$props">
38
- <template v-if="fields">
39
- <l-item v-for="field in fields" :label="field.label" :to="getTo(field)">
40
- {{ getFieldValue(field) }}
41
- </l-item>
42
-
43
- </template>
44
- <template v-else>
45
- <slot></slot>
46
- </template>
47
-
48
- </q-list>
37
+ <q-list v-bind="$props">
38
+ <template v-if="fields">
39
+ <l-item v-for="field in fields" :label="field.label" :to="getTo(field)">
40
+ {{ getFieldValue(field) }}
41
+ </l-item>
42
+
43
+ </template>
44
+ <template v-else>
45
+ <slot></slot>
46
+ </template>
47
+
48
+ </q-list>
49
49
  </template>
@@ -9,10 +9,6 @@ export interface LLoginProps {
9
9
  microsoftTenantId?: string;
10
10
  facebookAppId?: string;
11
11
  }
12
- declare const __VLS_export: import("vue").DefineComponent<LLoginProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- login: (...args: any[]) => void;
14
- }, string, import("vue").PublicProps, Readonly<LLoginProps> & Readonly<{
15
- onLogin?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: import("vue").DefineComponent<LLoginProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
13
  declare const _default: typeof __VLS_export;
18
14
  export default _default;