@hostlink/nuxt-light 1.66.0 → 1.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/README.md +1 -0
  2. package/dist/module.d.mts +1 -0
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +24 -0
  5. package/dist/runtime/components/{l-audit-card.d.vue.ts → L/AuditCard.d.vue.ts} +1 -1
  6. package/dist/runtime/components/{l-audit-card.vue → L/AuditCard.vue} +1 -1
  7. package/dist/runtime/components/{l-audit-card.vue.d.ts → L/AuditCard.vue.d.ts} +1 -1
  8. package/dist/runtime/components/{l-bar.vue → L/Bar.vue} +1 -2
  9. package/dist/runtime/components/{l-btn.d.vue.ts → L/Btn.d.vue.ts} +0 -1
  10. package/dist/runtime/components/{l-btn.vue → L/Btn.vue} +17 -14
  11. package/dist/runtime/components/{l-btn.vue.d.ts → L/Btn.vue.d.ts} +0 -1
  12. package/dist/runtime/components/{l-card.vue → L/Card.vue} +8 -6
  13. package/dist/runtime/components/{l-checkbox.vue → L/Checkbox.vue} +4 -2
  14. package/dist/runtime/components/{l-date-picker.vue → L/DatePicker.vue} +85 -103
  15. package/dist/runtime/components/L/DialogDatabaseFieldAdd.d.vue.ts +21 -0
  16. package/dist/runtime/components/{l-dialog-database-field-add.vue → L/DialogDatabaseFieldAdd.vue} +14 -15
  17. package/dist/runtime/components/L/DialogDatabaseFieldAdd.vue.d.ts +21 -0
  18. package/dist/runtime/components/L/DocumentViewer.d.vue.ts +1 -1
  19. package/dist/runtime/components/L/DocumentViewer.vue.d.ts +1 -1
  20. package/dist/runtime/components/L/DocumentViewerDialog.d.vue.ts +2 -2
  21. package/dist/runtime/components/L/DocumentViewerDialog.vue.d.ts +2 -2
  22. package/dist/runtime/components/{l-editor.vue → L/Editor.vue} +31 -17
  23. package/dist/runtime/components/L/Fieldset.d.vue.ts +15 -27
  24. package/dist/runtime/components/L/Fieldset.vue +4 -10
  25. package/dist/runtime/components/L/Fieldset.vue.d.ts +15 -27
  26. package/dist/runtime/components/{l-file-manager.vue → L/FileManager.vue} +2 -5
  27. package/dist/runtime/components/{l-icon-picker.vue → L/IconPicker.vue} +13 -13
  28. package/dist/runtime/components/{l-input.d.vue.ts → L/Input.d.vue.ts} +7 -3
  29. package/dist/runtime/components/{l-input.vue → L/Input.vue} +59 -80
  30. package/dist/runtime/components/{l-input.vue.d.ts → L/Input.vue.d.ts} +7 -3
  31. package/dist/runtime/components/{l-input-select.d.vue.ts → L/InputSelect.d.vue.ts} +3 -2
  32. package/dist/runtime/components/{l-input-select.vue → L/InputSelect.vue} +27 -9
  33. package/dist/runtime/components/{l-input-select.vue.d.ts → L/InputSelect.vue.d.ts} +3 -2
  34. package/dist/runtime/components/L/InputXlsx.d.vue.ts +17 -0
  35. package/dist/runtime/components/L/InputXlsx.vue +81 -0
  36. package/dist/runtime/components/L/InputXlsx.vue.d.ts +17 -0
  37. package/dist/runtime/components/{l-item.vue → L/Item.vue} +14 -5
  38. package/dist/runtime/components/{l-list.vue → L/List.vue} +18 -21
  39. package/dist/runtime/components/{l-page.vue → L/Page.vue} +6 -8
  40. package/dist/runtime/components/L/Select.d.vue.ts +46 -0
  41. package/dist/runtime/components/{l-select.vue → L/Select.vue} +37 -18
  42. package/dist/runtime/components/L/Select.vue.d.ts +46 -0
  43. package/dist/runtime/components/L/System/Setting/logs.vue +75 -0
  44. package/dist/runtime/components/{l-tab.d.vue.ts → L/Tab.d.vue.ts} +2 -2
  45. package/dist/runtime/components/L/Tab.vue +38 -0
  46. package/dist/runtime/components/{l-tab.vue.d.ts → L/Tab.vue.d.ts} +2 -2
  47. package/dist/runtime/components/{l-table.vue → L/Table.vue} +71 -78
  48. package/dist/runtime/components/{l-tabs.vue → L/Tabs.vue} +15 -8
  49. package/dist/runtime/components/{l-time-picker.d.vue.ts → L/TimePicker.d.vue.ts} +3 -2
  50. package/dist/runtime/components/L/TimePicker.vue +73 -0
  51. package/dist/runtime/components/{l-time-picker.vue.d.ts → L/TimePicker.vue.d.ts} +3 -2
  52. package/dist/runtime/components/{MyTest.d.vue.ts → L/User/apikey.d.vue.ts} +4 -4
  53. package/dist/runtime/components/L/User/apikey.vue +18 -0
  54. package/dist/runtime/components/{MyTest.vue.d.ts → L/User/apikey.vue.d.ts} +4 -4
  55. package/dist/runtime/components/L/ViewBtn.d.vue.ts +3 -0
  56. package/dist/runtime/components/L/ViewBtn.vue.d.ts +3 -0
  57. package/dist/runtime/composables/defineLightModel.d.ts +1 -1
  58. package/dist/runtime/composables/model.d.ts +1 -1
  59. package/dist/runtime/composables/showUploadFilesDialog.js +1 -1
  60. package/dist/runtime/composables/useLight.d.ts +22 -22
  61. package/dist/runtime/composables/useLightProps.d.ts +26 -0
  62. package/dist/runtime/composables/useLightProps.js +73 -0
  63. package/dist/runtime/models/APIKey.d.ts +2 -0
  64. package/dist/runtime/models/APIKey.js +20 -0
  65. package/dist/runtime/models/SystemValue.d.ts +2 -0
  66. package/dist/runtime/models/SystemValue.js +15 -0
  67. package/dist/runtime/pages/System/database/table.vue +28 -1
  68. package/dist/runtime/pages/System/index.vue +1 -1
  69. package/dist/runtime/pages/System/menu/index.vue +5 -1
  70. package/dist/runtime/pages/System/setting.vue +2 -0
  71. package/dist/runtime/pages/System/view_as.vue +4 -1
  72. package/dist/runtime/pages/SystemValue/index.vue +4 -1
  73. package/dist/runtime/pages/User/createAccessToken.vue +2 -1
  74. package/dist/runtime/pages/User/index.vue +2 -2
  75. package/dist/runtime/pages/User/profile.d.vue.ts +1 -1
  76. package/dist/runtime/pages/User/profile.vue +48 -5
  77. package/dist/runtime/pages/User/profile.vue.d.ts +1 -1
  78. package/dist/runtime/plugin.js +1 -22
  79. package/package.json +2 -1
  80. package/dist/runtime/components/MyTest.vue +0 -11
  81. package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +0 -9
  82. package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +0 -9
  83. package/dist/runtime/components/l-input-xlsx.d.vue.ts +0 -11
  84. package/dist/runtime/components/l-input-xlsx.vue +0 -60
  85. package/dist/runtime/components/l-input-xlsx.vue.d.ts +0 -11
  86. package/dist/runtime/components/l-select.d.vue.ts +0 -20
  87. package/dist/runtime/components/l-select.vue.d.ts +0 -20
  88. package/dist/runtime/components/l-tab.vue +0 -30
  89. package/dist/runtime/components/l-time-picker.vue +0 -71
  90. package/dist/runtime/components/{l-action-btn.d.vue.ts → L/ActionBtn.d.vue.ts} +0 -0
  91. package/dist/runtime/components/{l-action-btn.vue → L/ActionBtn.vue} +0 -0
  92. package/dist/runtime/components/{l-action-btn.vue.d.ts → L/ActionBtn.vue.d.ts} +0 -0
  93. package/dist/runtime/components/{l-add-btn.d.vue.ts → L/AddBtn.d.vue.ts} +0 -0
  94. package/dist/runtime/components/{l-add-btn.vue → L/AddBtn.vue} +0 -0
  95. package/dist/runtime/components/{l-add-btn.vue.d.ts → L/AddBtn.vue.d.ts} +0 -0
  96. package/dist/runtime/components/{l-alert.d.vue.ts → L/Alert.d.vue.ts} +0 -0
  97. package/dist/runtime/components/{l-alert.vue → L/Alert.vue} +0 -0
  98. package/dist/runtime/components/{l-alert.vue.d.ts → L/Alert.vue.d.ts} +0 -0
  99. package/dist/runtime/components/{l-app.d.vue.ts → L/App.d.vue.ts} +0 -0
  100. package/dist/runtime/components/{l-app.vue → L/App.vue} +0 -0
  101. package/dist/runtime/components/{l-app.vue.d.ts → L/App.vue.d.ts} +0 -0
  102. package/dist/runtime/components/{l-app-main.d.vue.ts → L/AppMain.d.vue.ts} +0 -0
  103. package/dist/runtime/components/{l-app-main.vue → L/AppMain.vue} +0 -0
  104. package/dist/runtime/components/{l-app-main.vue.d.ts → L/AppMain.vue.d.ts} +0 -0
  105. package/dist/runtime/components/{l-back-btn.d.vue.ts → L/BackBtn.d.vue.ts} +0 -0
  106. package/dist/runtime/components/{l-back-btn.vue → L/BackBtn.vue} +0 -0
  107. package/dist/runtime/components/{l-back-btn.vue.d.ts → L/BackBtn.vue.d.ts} +0 -0
  108. package/dist/runtime/components/{l-banner.d.vue.ts → L/Banner.d.vue.ts} +0 -0
  109. package/dist/runtime/components/{l-banner.vue → L/Banner.vue} +0 -0
  110. package/dist/runtime/components/{l-banner.vue.d.ts → L/Banner.vue.d.ts} +0 -0
  111. package/dist/runtime/components/{l-bar.d.vue.ts → L/Bar.d.vue.ts} +0 -0
  112. package/dist/runtime/components/{l-bar.vue.d.ts → L/Bar.vue.d.ts} +0 -0
  113. package/dist/runtime/components/{l-card.d.vue.ts → L/Card.d.vue.ts} +0 -0
  114. package/dist/runtime/components/{l-card.vue.d.ts → L/Card.vue.d.ts} +0 -0
  115. package/dist/runtime/components/{l-checkbox.d.vue.ts → L/Checkbox.d.vue.ts} +0 -0
  116. package/dist/runtime/components/{l-checkbox.vue.d.ts → L/Checkbox.vue.d.ts} +0 -0
  117. package/dist/runtime/components/{l-col.d.vue.ts → L/Col.d.vue.ts} +1 -1
  118. package/dist/runtime/components/{l-col.vue → L/Col.vue} +0 -0
  119. package/dist/runtime/components/{l-col.vue.d.ts → L/Col.vue.d.ts} +1 -1
  120. package/dist/runtime/components/{l-customizer.vue.d.ts → L/Customizer.d.vue.ts} +2 -2
  121. package/dist/runtime/components/{l-customizer.vue → L/Customizer.vue} +0 -0
  122. package/dist/runtime/components/{l-customizer.d.vue.ts → L/Customizer.vue.d.ts} +2 -2
  123. package/dist/runtime/components/{l-date-picker.d.vue.ts → L/DatePicker.d.vue.ts} +0 -0
  124. package/dist/runtime/components/{l-date-picker.vue.d.ts → L/DatePicker.vue.d.ts} +0 -0
  125. package/dist/runtime/components/{l-delete-btn.d.vue.ts → L/DeleteBtn.d.vue.ts} +0 -0
  126. package/dist/runtime/components/{l-delete-btn.vue → L/DeleteBtn.vue} +0 -0
  127. package/dist/runtime/components/{l-delete-btn.vue.d.ts → L/DeleteBtn.vue.d.ts} +0 -0
  128. package/dist/runtime/components/{l-dialog-upload-files.d.vue.ts → L/DialogUploadFiles.d.vue.ts} +0 -0
  129. package/dist/runtime/components/{l-dialog-upload-files.vue → L/DialogUploadFiles.vue} +0 -0
  130. package/dist/runtime/components/{l-dialog-upload-files.vue.d.ts → L/DialogUploadFiles.vue.d.ts} +0 -0
  131. package/dist/runtime/components/{l-drag-drop.d.vue.ts → L/DragDrop.d.vue.ts} +0 -0
  132. package/dist/runtime/components/{l-drag-drop.vue → L/DragDrop.vue} +0 -0
  133. package/dist/runtime/components/{l-drag-drop.vue.d.ts → L/DragDrop.vue.d.ts} +0 -0
  134. package/dist/runtime/components/{l-drag-drop-container.d.vue.ts → L/DragDropContainer.d.vue.ts} +0 -0
  135. package/dist/runtime/components/{l-drag-drop-container.vue → L/DragDropContainer.vue} +0 -0
  136. package/dist/runtime/components/{l-drag-drop-container.vue.d.ts → L/DragDropContainer.vue.d.ts} +0 -0
  137. package/dist/runtime/components/{l-drag-drop-group.d.vue.ts → L/DragDropGroup.d.vue.ts} +0 -0
  138. package/dist/runtime/components/{l-drag-drop-group.vue → L/DragDropGroup.vue} +0 -0
  139. package/dist/runtime/components/{l-drag-drop-group.vue.d.ts → L/DragDropGroup.vue.d.ts} +0 -0
  140. package/dist/runtime/components/{l-edit-btn.d.vue.ts → L/EditBtn.d.vue.ts} +0 -0
  141. package/dist/runtime/components/{l-edit-btn.vue → L/EditBtn.vue} +0 -0
  142. package/dist/runtime/components/{l-edit-btn.vue.d.ts → L/EditBtn.vue.d.ts} +0 -0
  143. package/dist/runtime/components/{l-editor.d.vue.ts → L/Editor.d.vue.ts} +0 -0
  144. package/dist/runtime/components/{l-editor.vue.d.ts → L/Editor.vue.d.ts} +0 -0
  145. package/dist/runtime/components/{l-facebook-button.d.vue.ts → L/FacebookButton.d.vue.ts} +0 -0
  146. package/dist/runtime/components/{l-facebook-button.vue → L/FacebookButton.vue} +0 -0
  147. package/dist/runtime/components/{l-facebook-button.vue.d.ts → L/FacebookButton.vue.d.ts} +0 -0
  148. package/dist/runtime/components/{l-fav-menu.d.vue.ts → L/FavMenu.d.vue.ts} +2 -2
  149. package/dist/runtime/components/{l-fav-menu.vue → L/FavMenu.vue} +0 -0
  150. package/dist/runtime/components/{l-menu.d.vue.ts → L/FavMenu.vue.d.ts} +2 -2
  151. package/dist/runtime/components/{l-field.d.vue.ts → L/Field.d.vue.ts} +0 -0
  152. package/dist/runtime/components/{l-field.vue → L/Field.vue} +0 -0
  153. package/dist/runtime/components/{l-field.vue.d.ts → L/Field.vue.d.ts} +0 -0
  154. package/dist/runtime/components/{l-file.d.vue.ts → L/File.d.vue.ts} +0 -0
  155. package/dist/runtime/components/{l-file.vue → L/File.vue} +0 -0
  156. package/dist/runtime/components/{l-file.vue.d.ts → L/File.vue.d.ts} +0 -0
  157. package/dist/runtime/components/{l-file-manager.d.vue.ts → L/FileManager.d.vue.ts} +1 -1
  158. package/dist/runtime/components/{l-file-manager.vue.d.ts → L/FileManager.vue.d.ts} +1 -1
  159. package/dist/runtime/components/{l-file-manager-breadcrumbs.d.vue.ts → L/FileManagerBreadcrumbs.d.vue.ts} +0 -0
  160. package/dist/runtime/components/{l-file-manager-breadcrumbs.vue → L/FileManagerBreadcrumbs.vue} +0 -0
  161. package/dist/runtime/components/{l-file-manager-breadcrumbs.vue.d.ts → L/FileManagerBreadcrumbs.vue.d.ts} +0 -0
  162. package/dist/runtime/components/{l-file-manager-labels.d.vue.ts → L/FileManagerLabels.d.vue.ts} +0 -0
  163. package/dist/runtime/components/{l-file-manager-labels.vue → L/FileManagerLabels.vue} +0 -0
  164. package/dist/runtime/components/{l-file-manager-labels.vue.d.ts → L/FileManagerLabels.vue.d.ts} +0 -0
  165. package/dist/runtime/components/{l-file-manager-move.d.vue.ts → L/FileManagerMove.d.vue.ts} +0 -0
  166. package/dist/runtime/components/{l-file-manager-move.vue → L/FileManagerMove.vue} +0 -0
  167. package/dist/runtime/components/{l-file-manager-move.vue.d.ts → L/FileManagerMove.vue.d.ts} +0 -0
  168. package/dist/runtime/components/{l-file-manager-preview.d.vue.ts → L/FileManagerPreview.d.vue.ts} +0 -0
  169. package/dist/runtime/components/{l-file-manager-preview.vue → L/FileManagerPreview.vue} +0 -0
  170. package/dist/runtime/components/{l-file-manager-preview.vue.d.ts → L/FileManagerPreview.vue.d.ts} +0 -0
  171. package/dist/runtime/components/{l-file-upload.d.vue.ts → L/FileUpload.d.vue.ts} +1 -1
  172. package/dist/runtime/components/{l-file-upload.vue → L/FileUpload.vue} +0 -0
  173. package/dist/runtime/components/{l-file-upload.vue.d.ts → L/FileUpload.vue.d.ts} +1 -1
  174. package/dist/runtime/components/{l-form.d.vue.ts → L/Form.d.vue.ts} +0 -0
  175. package/dist/runtime/components/{l-form.vue → L/Form.vue} +0 -0
  176. package/dist/runtime/components/{l-form.vue.d.ts → L/Form.vue.d.ts} +0 -0
  177. package/dist/runtime/components/{l-form-dialog.d.vue.ts → L/FormDialog.d.vue.ts} +2 -2
  178. package/dist/runtime/components/{l-form-dialog.vue → L/FormDialog.vue} +0 -0
  179. package/dist/runtime/components/{l-form-dialog.vue.d.ts → L/FormDialog.vue.d.ts} +2 -2
  180. package/dist/runtime/components/{l-group-select.d.vue.ts → L/GroupSelect.d.vue.ts} +0 -0
  181. package/dist/runtime/components/{l-group-select.vue → L/GroupSelect.vue} +0 -0
  182. package/dist/runtime/components/{l-group-select.vue.d.ts → L/GroupSelect.vue.d.ts} +0 -0
  183. package/dist/runtime/components/{l-icon-picker.d.vue.ts → L/IconPicker.d.vue.ts} +0 -0
  184. package/dist/runtime/components/{l-icon-picker.vue.d.ts → L/IconPicker.vue.d.ts} +0 -0
  185. package/dist/runtime/components/{l-item.d.vue.ts → L/Item.d.vue.ts} +0 -0
  186. package/dist/runtime/components/{l-item.vue.d.ts → L/Item.vue.d.ts} +0 -0
  187. package/dist/runtime/components/{l-link.d.vue.ts → L/Link.d.vue.ts} +0 -0
  188. package/dist/runtime/components/{l-link.vue → L/Link.vue} +0 -0
  189. package/dist/runtime/components/{l-link.vue.d.ts → L/Link.vue.d.ts} +0 -0
  190. package/dist/runtime/components/{l-list.d.vue.ts → L/List.d.vue.ts} +0 -0
  191. package/dist/runtime/components/{l-list.vue.d.ts → L/List.vue.d.ts} +0 -0
  192. package/dist/runtime/components/{l-login.d.vue.ts → L/Login.d.vue.ts} +0 -0
  193. package/dist/runtime/components/{l-login.vue → L/Login.vue} +0 -0
  194. package/dist/runtime/components/{l-login.vue.d.ts → L/Login.vue.d.ts} +0 -0
  195. package/dist/runtime/components/{l-fav-menu.vue.d.ts → L/Menu.d.vue.ts} +2 -2
  196. package/dist/runtime/components/{l-menu.vue → L/Menu.vue} +0 -0
  197. package/dist/runtime/components/{l-menu.vue.d.ts → L/Menu.vue.d.ts} +2 -2
  198. package/dist/runtime/components/{l-microsoft-button.d.vue.ts → L/MicrosoftButton.d.vue.ts} +0 -0
  199. package/dist/runtime/components/{l-microsoft-button.vue → L/MicrosoftButton.vue} +0 -0
  200. package/dist/runtime/components/{l-microsoft-button.vue.d.ts → L/MicrosoftButton.vue.d.ts} +0 -0
  201. package/dist/runtime/components/{l-page.d.vue.ts → L/Page.d.vue.ts} +1 -1
  202. package/dist/runtime/components/{l-page.vue.d.ts → L/Page.vue.d.ts} +1 -1
  203. package/dist/runtime/components/{l-repeater.d.vue.ts → L/Repeater.d.vue.ts} +2 -2
  204. package/dist/runtime/components/{l-repeater.vue → L/Repeater.vue} +0 -0
  205. package/dist/runtime/components/{l-repeater.vue.d.ts → L/Repeater.vue.d.ts} +2 -2
  206. package/dist/runtime/components/{l-row.d.vue.ts → L/Row.d.vue.ts} +0 -0
  207. package/dist/runtime/components/{l-row.vue → L/Row.vue} +0 -0
  208. package/dist/runtime/components/{l-row.vue.d.ts → L/Row.vue.d.ts} +0 -0
  209. package/dist/runtime/components/{l-save-btn.d.vue.ts → L/SaveBtn.d.vue.ts} +0 -0
  210. package/dist/runtime/components/{l-save-btn.vue → L/SaveBtn.vue} +0 -0
  211. package/dist/runtime/components/{l-save-btn.vue.d.ts → L/SaveBtn.vue.d.ts} +0 -0
  212. package/dist/runtime/components/{l-setup-2fa-dialog.d.vue.ts → L/Setup2faDialog.d.vue.ts} +0 -0
  213. package/dist/runtime/components/{l-setup-2fa-dialog.vue → L/Setup2faDialog.vue} +0 -0
  214. package/dist/runtime/components/{l-setup-2fa-dialog.vue.d.ts → L/Setup2faDialog.vue.d.ts} +0 -0
  215. package/dist/runtime/components/{l-small-box.d.vue.ts → L/SmallBox.d.vue.ts} +1 -1
  216. package/dist/runtime/components/{l-small-box.vue → L/SmallBox.vue} +0 -0
  217. package/dist/runtime/components/{l-small-box.vue.d.ts → L/SmallBox.vue.d.ts} +1 -1
  218. /package/dist/runtime/components/{l-statistic.d.vue.ts → L/Statistic.d.vue.ts} +0 -0
  219. /package/dist/runtime/components/{l-statistic.vue → L/Statistic.vue} +0 -0
  220. /package/dist/runtime/components/{l-statistic.vue.d.ts → L/Statistic.vue.d.ts} +0 -0
  221. /package/dist/runtime/components/{l-view-btn.d.vue.ts → L/System/Setting/logs.d.vue.ts} +0 -0
  222. /package/dist/runtime/components/{l-view-btn.vue.d.ts → L/System/Setting/logs.vue.d.ts} +0 -0
  223. /package/dist/runtime/components/{l-table.d.vue.ts → L/Table.d.vue.ts} +0 -0
  224. /package/dist/runtime/components/{l-table.vue.d.ts → L/Table.vue.d.ts} +0 -0
  225. /package/dist/runtime/components/{l-tabs.d.vue.ts → L/Tabs.d.vue.ts} +0 -0
  226. /package/dist/runtime/components/{l-tabs.vue.d.ts → L/Tabs.vue.d.ts} +0 -0
  227. /package/dist/runtime/components/{l-test2.d.vue.ts → L/Test2.d.vue.ts} +0 -0
  228. /package/dist/runtime/components/{l-test2.vue → L/Test2.vue} +0 -0
  229. /package/dist/runtime/components/{l-test2.vue.d.ts → L/Test2.vue.d.ts} +0 -0
  230. /package/dist/runtime/components/{user-list.d.vue.ts → L/UserList.d.vue.ts} +0 -0
  231. /package/dist/runtime/components/{user-list.vue → L/UserList.vue} +0 -0
  232. /package/dist/runtime/components/{user-list.vue.d.ts → L/UserList.vue.d.ts} +0 -0
  233. /package/dist/runtime/components/{l-view-btn.vue → L/ViewBtn.vue} +0 -0
@@ -1,12 +1,29 @@
1
1
  <script setup>
2
2
  import { computed, ref, useAttrs } from "vue";
3
3
  import { useQuasar } from "quasar";
4
- import { sanitizeHtml } from "../composables/sanitizeHtml";
4
+ import { sanitizeHtml } from "../../composables/sanitizeHtml";
5
5
  const $q = useQuasar();
6
6
  const editorRef = ref(null);
7
7
  const textColorRef = ref(null);
8
8
  const textHightlightRef = ref(null);
9
9
  const insertTableRef = ref(null);
10
+ const fontSizeRef = ref(null);
11
+ const fontSizes = ["8px", "10px", "12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px", "72px"];
12
+ const setFontSizeCMD = (size) => {
13
+ const edit = editorRef.value;
14
+ fontSizeRef.value.hide();
15
+ edit.caret.restore();
16
+ document.execCommand("fontSize", false, "7");
17
+ const contentEl = edit.$el.querySelector(".q-editor__content");
18
+ contentEl.querySelectorAll('font[size="7"]').forEach((el) => {
19
+ const span = document.createElement("span");
20
+ span.style.fontSize = size;
21
+ span.innerHTML = el.innerHTML;
22
+ el.parentNode.replaceChild(span, el);
23
+ });
24
+ emit("update:modelValue", contentEl.innerHTML);
25
+ edit.focus();
26
+ };
10
27
  const highlight = ref("#ffff00aa");
11
28
  const foreColor = ref("#000000");
12
29
  const tableRows = ref(3);
@@ -130,22 +147,7 @@ const newToolBar = [
130
147
  "code"
131
148
  ]
132
149
  },
133
- {
134
- label: $q.lang.editor.fontSize,
135
- icon: $q.iconSet.editor.fontSize,
136
- fixedLabel: true,
137
- fixedIcon: true,
138
- list: "no-icons",
139
- options: [
140
- "size-1",
141
- "size-2",
142
- "size-3",
143
- "size-4",
144
- "size-5",
145
- "size-6",
146
- "size-7"
147
- ]
148
- },
150
+ "fontSize",
149
151
  {
150
152
  label: $q.lang.editor.defaultFont,
151
153
  icon: $q.iconSet.editor.font,
@@ -187,6 +189,18 @@ const newFonts = {
187
189
 
188
190
  <template>
189
191
  <q-editor v-model="localValue" ref="editorRef" v-bind="attrs" @blur="onEditorBlur">
192
+ <template v-slot:fontSize>
193
+ <q-btn-dropdown dense no-caps ref="fontSizeRef" no-wrap unelevated color="white" text-color="default"
194
+ label="Font Size" icon="sym_o_format_size" size="sm">
195
+ <q-list dense>
196
+ <q-item v-for="size in fontSizes" :key="size" clickable v-close-popup @click="setFontSizeCMD(size)">
197
+ <q-item-section>
198
+ <span :style="{ fontSize: size }">{{ size }}</span>
199
+ </q-item-section>
200
+ </q-item>
201
+ </q-list>
202
+ </q-btn-dropdown>
203
+ </template>
190
204
  <template v-slot:textColor>
191
205
  <q-btn-dropdown dense no-caps ref="textColorRef" no-wrap unelevated color="white" text-color="default"
192
206
  label="Text Color" icon="sym_o_format_color_text" size="sm">
@@ -1,31 +1,19 @@
1
+ type __VLS_Props = {
2
+ gutter?: string;
3
+ label?: string;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ gutter: string;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1
13
  declare const _default: typeof __VLS_export;
2
14
  export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
- gutter: {
9
- type: StringConstructor;
10
- default: string;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
11
18
  };
12
- label: {
13
- type: StringConstructor;
14
- default: null;
15
- };
16
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
- gutter: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- label: {
22
- type: StringConstructor;
23
- default: null;
24
- };
25
- }>> & Readonly<{}>, {
26
- label: string;
27
- gutter: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
- type __VLS_Slots = {
30
- default?: ((props: {}) => any) | undefined;
31
19
  };
@@ -1,15 +1,9 @@
1
1
  <script setup>
2
2
  import { useI18n } from "vue-i18n";
3
- const i18n = useI18n();
3
+ const { t } = useI18n();
4
4
  const props = defineProps({
5
- gutter: {
6
- type: String,
7
- default: "none"
8
- },
9
- label: {
10
- type: String,
11
- default: null
12
- }
5
+ gutter: { type: String, required: false, default: "none" },
6
+ label: { type: String, required: false }
13
7
  });
14
8
  </script>
15
9
 
@@ -19,7 +13,7 @@ body.body--dark fieldset{border-color:hsla(0,0%,100%,.6)}fieldset{border:1px sol
19
13
 
20
14
  <template>
21
15
  <fieldset>
22
- <legend v-if="props.label">{{ i18n.t(props.label) }}</legend>
16
+ <legend v-if="props.label">{{ t(props.label) }}</legend>
23
17
 
24
18
  <div :class="`q-gutter-${props.gutter}`">
25
19
  <slot></slot>
@@ -1,31 +1,19 @@
1
+ type __VLS_Props = {
2
+ gutter?: string;
3
+ label?: string;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ gutter: string;
11
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
1
13
  declare const _default: typeof __VLS_export;
2
14
  export default _default;
3
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
4
- type __VLS_WithSlots<T, S> = T & (new () => {
5
- $slots: S;
6
- });
7
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
- gutter: {
9
- type: StringConstructor;
10
- default: string;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
11
18
  };
12
- label: {
13
- type: StringConstructor;
14
- default: null;
15
- };
16
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
- gutter: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- label: {
22
- type: StringConstructor;
23
- default: null;
24
- };
25
- }>> & Readonly<{}>, {
26
- label: string;
27
- gutter: string;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
29
- type __VLS_Slots = {
30
- default?: ((props: {}) => any) | undefined;
31
19
  };
@@ -2,7 +2,7 @@
2
2
  import { useI18n } from "vue-i18n";
3
3
  import { ref, watch, computed } from "vue";
4
4
  import { useQuasar, format, date } from "quasar";
5
- import { q, m, useLight, showUploadFilesDialog, showDocumentDialog } from "#imports";
5
+ import { q, useLight, showUploadFilesDialog, showDocumentDialog } from "#imports";
6
6
  import { getGrantedRights } from "@hostlink/light";
7
7
  import { fs } from "@hostlink/light";
8
8
  const { humanStorageSize } = format;
@@ -399,10 +399,7 @@ const onCheckTotalSize = async (folder) => {
399
399
  };
400
400
  const onDuplicateFile = async (file) => {
401
401
  try {
402
- const newPath = await m("lightDriveDuplicateFile", {
403
- index: file.driveIndex,
404
- path: file.path
405
- });
402
+ const newPath = await fs.duplicateFile(file.location);
406
403
  $q.notify({
407
404
  type: "positive",
408
405
  message: "File duplicated to " + newPath
@@ -3237,33 +3237,34 @@ const icons = [
3237
3237
  "sym_o_nest_gale_wifi"
3238
3238
  ];
3239
3239
  const scroll = ref(null);
3240
+ const search = ref("");
3241
+ const scroll_index = ref(0);
3240
3242
  const filteredIcons = computed(() => {
3241
- if (!search.value) {
3242
- return icons;
3243
- }
3244
- return icons.filter((icon) => {
3245
- return icon.includes(search.value);
3246
- });
3243
+ const q = search.value.trim();
3244
+ if (!q) return icons;
3245
+ return icons.filter((icon) => icon.includes(q));
3247
3246
  });
3248
- const scroll_index = ref(0);
3249
3247
  const onLoad = (index, done) => {
3250
3248
  scroll_index.value = index;
3251
3249
  done();
3252
3250
  };
3253
- const search = ref("");
3254
- watch(search, (val) => {
3255
- scroll.value.reset();
3256
- scroll.value.poll();
3251
+ watch(search, () => {
3257
3252
  scroll_index.value = 0;
3253
+ scroll.value?.reset();
3254
+ scroll.value?.poll();
3258
3255
  });
3259
3256
  const displayIcons = computed(() => {
3260
3257
  return filteredIcons.value.slice(0, 100 * scroll_index.value + 100);
3261
3258
  });
3259
+ const onMenuHide = () => {
3260
+ search.value = "";
3261
+ scroll_index.value = 0;
3262
+ };
3262
3263
  </script>
3263
3264
 
3264
3265
  <template>
3265
3266
  <q-btn v-bind="$props" :icon="modelValue ?? 'sym_o_link'">
3266
- <q-menu :offset="[0, 8]">
3267
+ <q-menu :offset="[0, 8]" @hide="onMenuHide">
3267
3268
 
3268
3269
  <q-item-label header>
3269
3270
  <q-input v-model="search" label="Search" outlined dense>
@@ -3288,7 +3289,6 @@ const displayIcons = computed(() => {
3288
3289
 
3289
3290
  <template v-slot:loading>
3290
3291
  <div class="text-center q-my-md">
3291
-
3292
3292
  <q-spinner-dots size="40px" />
3293
3293
  </div>
3294
3294
  </template>
@@ -9,11 +9,15 @@ type __VLS_ModelProps = {
9
9
  modelValue?: any;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_43: string, __VLS_44: any;
12
+ declare var __VLS_44: string, __VLS_45: any;
13
13
  type __VLS_Slots = {} & {
14
- [K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any;
14
+ [K in NonNullable<typeof __VLS_44>]?: (props: typeof __VLS_45) => any;
15
15
  };
16
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
17
+ validate: () => any;
18
+ focus: () => any;
19
+ reset: () => any;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
21
  "update:modelValue": (value: any) => any;
18
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
23
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -1,7 +1,10 @@
1
1
  <script setup>
2
2
  import { computed, ref, useAttrs } from "vue";
3
3
  import { useI18n } from "vue-i18n";
4
- import tc2sc from "../composables/tc2sc";
4
+ import tc2sc from "../../composables/tc2sc";
5
+ import useLight from "../../composables/useLight";
6
+ import { useLightInputDefaults } from "../../composables/useLightProps";
7
+ defineOptions({ inheritAttrs: false });
5
8
  const { t } = useI18n();
6
9
  const props = defineProps({
7
10
  showPassword: { type: Boolean, required: false },
@@ -62,91 +65,68 @@ const props = defineProps({
62
65
  onClear: { type: Function, required: false }
63
66
  });
64
67
  const modelValue = defineModel({ type: null });
65
- const new_rules = Array.isArray(props.rules) ? [...props.rules] : [];
66
- if (props.required) {
67
- new_rules.push((val) => !!val || t("input_required", [t(props.label ?? "")]));
68
- }
69
- if (props.type == "email") {
70
- new_rules.push((val) => {
71
- if (val && !val.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)) {
72
- return t("Invalid email format");
73
- }
74
- });
75
- }
76
- const stringRules = new_rules.filter((r) => typeof r === "string");
77
- if (stringRules.includes("containUpper")) {
78
- new_rules.push((val) => {
79
- if (val && !val.match(/[A-Z]/)) {
80
- return t("Must contain at least one uppercase letter");
81
- }
82
- });
83
- }
84
- if (stringRules.includes("containLower")) {
85
- new_rules.push((val) => {
86
- if (val && !val.match(/[a-z]/)) {
87
- return t("Must contain at least one lowercase letter");
88
- }
89
- });
90
- }
91
- if (stringRules.includes("containNumber")) {
92
- new_rules.push((val) => {
93
- if (val && !val.match(/[0-9]/)) {
94
- return t("Must contain at least one number");
95
- }
96
- });
97
- }
98
- if (stringRules.includes("containSpecial")) {
99
- new_rules.push((val) => {
100
- if (val && !val.match(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/)) {
101
- return t("Must contain at least one symbol");
102
- }
103
- });
104
- }
105
- const minLength = new_rules.find((rule) => {
106
- if (typeof rule != "string") return false;
107
- return rule.startsWith("minLength:");
68
+ const attrs = useAttrs();
69
+ const L_KEYS = ["showPassword", "translate", "required"];
70
+ const computedRules = computed(() => {
71
+ const rules = Array.isArray(props.rules) ? [...props.rules] : [];
72
+ if (props.required) {
73
+ rules.push((val) => !!val || t("input_required", [t(props.label ?? "")]));
74
+ }
75
+ if (props.type === "email") {
76
+ rules.push((val) => {
77
+ if (val && !val.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/))
78
+ return t("Invalid email format");
79
+ });
80
+ }
81
+ const stringRules = rules.filter((r) => typeof r === "string");
82
+ if (stringRules.includes("containUpper"))
83
+ rules.push((val) => val && !val.match(/[A-Z]/) ? t("Must contain at least one uppercase letter") : void 0);
84
+ if (stringRules.includes("containLower"))
85
+ rules.push((val) => val && !val.match(/[a-z]/) ? t("Must contain at least one lowercase letter") : void 0);
86
+ if (stringRules.includes("containNumber"))
87
+ rules.push((val) => val && !val.match(/[0-9]/) ? t("Must contain at least one number") : void 0);
88
+ if (stringRules.includes("containSpecial"))
89
+ rules.push((val) => val && !val.match(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/) ? t("Must contain at least one symbol") : void 0);
90
+ const minLengthRule = rules.find((r) => typeof r === "string" && r.startsWith("minLength:"));
91
+ if (minLengthRule) {
92
+ const min = parseInt(minLengthRule.replace("minLength:", ""));
93
+ rules.push((val) => val && val.length < min ? t("input_min", [min]) : void 0);
94
+ }
95
+ return rules.filter((r) => typeof r !== "string");
108
96
  });
109
- if (minLength) {
110
- const min = parseInt(minLength.replace("minLength:", ""));
111
- new_rules.push((val) => {
112
- if (val && val.length < min) {
113
- return t("input_min", [min]);
114
- }
115
- });
116
- }
117
97
  const isShowPassword = ref(false);
118
98
  const localType = computed(() => {
119
- if (props.type == "password" && isShowPassword.value) {
120
- return "text";
121
- }
99
+ if (props.type === "password" && isShowPassword.value) return "text";
122
100
  return props.type;
123
101
  });
124
- const localShowPassword = computed(() => {
125
- if (props.type != "password") {
126
- return false;
127
- }
128
- if (!props.showPassword) {
129
- return false;
130
- }
131
- if (!modelValue.value) {
132
- return false;
133
- }
134
- return true;
135
- });
102
+ const localShowPassword = computed(
103
+ () => props.type === "password" && !!props.showPassword && !!modelValue.value
104
+ );
136
105
  const onClickTc2Sc = () => {
137
106
  modelValue.value = tc2sc(modelValue.value ?? "");
138
107
  };
139
- const attrs = useAttrs();
140
- const localClass = computed(() => {
141
- if (attrs.class) {
142
- return attrs.class;
143
- }
144
- return "col-12";
108
+ const base = useLightInputDefaults(props, attrs, L_KEYS);
109
+ const inputProps = computed(() => {
110
+ const result = {
111
+ ...base.value,
112
+ // label/hint already translated by composable
113
+ rules: computedRules.value,
114
+ type: localType.value
115
+ };
116
+ if (props.required && result.label)
117
+ result.label = "* " + result.label;
118
+ return result;
119
+ });
120
+ const inputRef = ref();
121
+ defineExpose({
122
+ validate: () => inputRef.value?.validate(),
123
+ focus: () => inputRef.value?.focus(),
124
+ reset: () => inputRef.value?.reset()
145
125
  });
146
126
  </script>
147
127
 
148
128
  <template>
149
- <q-input v-bind="$light.getInputProps($props)" :rules="new_rules" :type="localType" :class="localClass">
129
+ <q-input ref="inputRef" v-model="modelValue" v-bind="inputProps">
150
130
  <template v-if="translate" #prepend>
151
131
  <q-btn icon="sym_o_translate" flat dense rounded>
152
132
  <q-menu dense>
@@ -158,15 +138,14 @@ const localClass = computed(() => {
158
138
  </q-menu>
159
139
  </q-btn>
160
140
  </template>
161
- <template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
162
- <slot :name="name" v-bind="props ?? {}"></slot>
141
+
142
+ <template v-for="(_, name) in $slots" #[name]="slotProps" :key="name">
143
+ <slot :name="name" v-bind="slotProps ?? {}" />
163
144
  </template>
164
145
 
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" />
146
+ <template v-if="localShowPassword" #append>
147
+ <q-icon name="sym_o_visibility" class="cursor-pointer" @click="isShowPassword = false" v-if="isShowPassword" />
168
148
  <q-icon name="sym_o_visibility_off" class="cursor-pointer" @click="isShowPassword = true" v-else />
169
149
  </template>
170
-
171
150
  </q-input>
172
151
  </template>
@@ -9,11 +9,15 @@ type __VLS_ModelProps = {
9
9
  modelValue?: any;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_43: string, __VLS_44: any;
12
+ declare var __VLS_44: string, __VLS_45: any;
13
13
  type __VLS_Slots = {} & {
14
- [K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any;
14
+ [K in NonNullable<typeof __VLS_44>]?: (props: typeof __VLS_45) => any;
15
15
  };
16
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
17
+ validate: () => any;
18
+ focus: () => any;
19
+ reset: () => any;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
21
  "update:modelValue": (value: any) => any;
18
22
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
23
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -1,14 +1,15 @@
1
1
  import type { QSelectProps } from 'quasar';
2
2
  export interface LInputSelectProps extends QSelectProps {
3
+ required?: boolean;
3
4
  }
4
5
  type __VLS_Props = LInputSelectProps;
5
6
  type __VLS_ModelProps = {
6
7
  modelValue?: string | null;
7
8
  };
8
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
- declare var __VLS_11: {};
10
+ declare var __VLS_13: string, __VLS_14: any;
10
11
  type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_11) => any;
12
+ [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
12
13
  };
13
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
15
  "update:modelValue": (value: string | null | undefined) => any;
@@ -1,6 +1,9 @@
1
1
  <script setup>
2
- import { ref } from "vue";
2
+ import { ref, useAttrs, computed, watch } from "vue";
3
+ import { useLightInputDefaults } from "../../composables/useLightProps";
4
+ defineOptions({ inheritAttrs: false });
3
5
  const props = defineProps({
6
+ required: { type: Boolean, required: false },
4
7
  name: { type: null, required: false },
5
8
  virtualScrollHorizontal: { type: Boolean, required: false, skipCheck: true },
6
9
  virtualScrollSliceSize: { type: null, required: false },
@@ -101,21 +104,36 @@ const props = defineProps({
101
104
  onPopupHide: { type: Function, required: false }
102
105
  });
103
106
  const model = defineModel({ type: [String, null] });
104
- const setModel = (val) => {
105
- model.value = val;
107
+ const attrs = useAttrs();
108
+ const L_KEYS = ["required"];
109
+ const toStringOptions = (opts) => {
110
+ if (!opts || !Array.isArray(opts)) return [];
111
+ return opts.map((v) => typeof v === "string" ? v : String(v));
106
112
  };
107
- const localOptions = ref(props.options || []);
108
- const filterFn = (val, update, abort) => {
113
+ const localOptions = ref(toStringOptions(props.options));
114
+ watch(() => props.options, (opts) => {
115
+ localOptions.value = toStringOptions(opts);
116
+ });
117
+ const filterFn = (val, update) => {
109
118
  update(() => {
110
119
  const needle = val.toLocaleLowerCase();
111
- localOptions.value = props.options?.filter((v) => v.toLocaleLowerCase().indexOf(needle) > -1) || [];
120
+ localOptions.value = toStringOptions(props.options).filter((v) => v.toLocaleLowerCase().includes(needle));
112
121
  });
113
122
  };
123
+ const base = useLightInputDefaults(props, attrs, L_KEYS);
124
+ const selectProps = computed(() => ({
125
+ ...base.value,
126
+ options: localOptions.value
127
+ }));
114
128
  </script>
115
129
 
116
130
  <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>
131
+ <q-select v-model="model" v-bind="selectProps"
132
+ use-input fill-input hide-selected
133
+ @filter="filterFn"
134
+ @input-value="(val) => model = val">
135
+ <template v-for="(_, name) in $slots" #[name]="slotProps" :key="name">
136
+ <slot :name="name" v-bind="slotProps ?? {}" />
137
+ </template>
120
138
  </q-select>
121
139
  </template>
@@ -1,14 +1,15 @@
1
1
  import type { QSelectProps } from 'quasar';
2
2
  export interface LInputSelectProps extends QSelectProps {
3
+ required?: boolean;
3
4
  }
4
5
  type __VLS_Props = LInputSelectProps;
5
6
  type __VLS_ModelProps = {
6
7
  modelValue?: string | null;
7
8
  };
8
9
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
- declare var __VLS_11: {};
10
+ declare var __VLS_13: string, __VLS_14: any;
10
11
  type __VLS_Slots = {} & {
11
- default?: (props: typeof __VLS_11) => any;
12
+ [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any;
12
13
  };
13
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
15
  "update:modelValue": (value: string | null | undefined) => any;
@@ -0,0 +1,17 @@
1
+ export interface LInputXlsxProps {
2
+ label?: string;
3
+ hint?: string;
4
+ disable?: boolean;
5
+ }
6
+ type __VLS_Props = LInputXlsxProps;
7
+ type __VLS_ModelProps = {
8
+ modelValue?: any[];
9
+ };
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:modelValue": (value: any[]) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((value: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
17
+ export default _default;