@hostlink/nuxt-light 1.53.1 → 1.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -3
- package/dist/runtime/components/L/CustomField/Add.d.vue.ts +9 -6
- package/dist/runtime/components/L/CustomField/Add.vue.d.ts +9 -6
- package/dist/runtime/components/L/CustomField/List.d.vue.ts +2 -5
- package/dist/runtime/components/L/CustomField/List.vue.d.ts +2 -5
- package/dist/runtime/components/L/Database/create-table-dialog.d.vue.ts +7 -4
- package/dist/runtime/components/L/Database/create-table-dialog.vue.d.ts +7 -4
- package/dist/runtime/components/L/Fieldset.d.vue.ts +8 -6
- package/dist/runtime/components/L/Fieldset.vue.d.ts +8 -6
- package/dist/runtime/components/L/ForgetPasswordDialog.d.vue.ts +2 -1
- package/dist/runtime/components/L/ForgetPasswordDialog.vue +2 -1
- package/dist/runtime/components/L/ForgetPasswordDialog.vue.d.ts +2 -1
- package/dist/runtime/components/L/Revision.d.vue.ts +8 -6
- package/dist/runtime/components/L/Revision.vue.d.ts +8 -6
- package/dist/runtime/components/L/Storage.d.vue.ts +7 -5
- package/dist/runtime/components/L/Storage.vue.d.ts +7 -5
- package/dist/runtime/components/L/System/Setting/authentication.d.vue.ts +3 -8
- package/dist/runtime/components/L/System/Setting/authentication.vue.d.ts +3 -8
- package/dist/runtime/components/L/System/Setting/developer.d.vue.ts +3 -5
- package/dist/runtime/components/L/System/Setting/developer.vue.d.ts +3 -5
- package/dist/runtime/components/L/System/Setting/forget-password.d.vue.ts +3 -6
- package/dist/runtime/components/L/System/Setting/forget-password.vue.d.ts +3 -6
- package/dist/runtime/components/L/System/Setting/general.d.vue.ts +3 -7
- package/dist/runtime/components/L/System/Setting/general.vue.d.ts +3 -7
- package/dist/runtime/components/L/System/Setting/mail.d.vue.ts +3 -4
- package/dist/runtime/components/L/System/Setting/mail.vue.d.ts +3 -4
- package/dist/runtime/components/L/System/Setting/modules.d.vue.ts +2 -1
- package/dist/runtime/components/L/System/Setting/modules.vue.d.ts +2 -1
- package/dist/runtime/components/L/System/Setting/security.d.vue.ts +3 -15
- package/dist/runtime/components/L/System/Setting/security.vue.d.ts +3 -15
- package/dist/runtime/components/L/User/eventlog.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/eventlog.vue.d.ts +2 -1
- package/dist/runtime/components/L/User/overview.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/overview.vue.d.ts +2 -1
- package/dist/runtime/components/L/User/userlog.d.vue.ts +2 -1
- package/dist/runtime/components/L/User/userlog.vue.d.ts +2 -1
- package/dist/runtime/components/L/ValidationInput.d.vue.ts +7 -5
- package/dist/runtime/components/L/ValidationInput.vue.d.ts +7 -5
- package/dist/runtime/components/MyTest.d.vue.ts +7 -5
- package/dist/runtime/components/MyTest.vue.d.ts +7 -5
- package/dist/runtime/components/l-action-btn.d.vue.ts +5 -4
- package/dist/runtime/components/l-action-btn.vue.d.ts +5 -4
- package/dist/runtime/components/l-add-btn.d.vue.ts +9 -7
- package/dist/runtime/components/l-add-btn.vue.d.ts +9 -7
- package/dist/runtime/components/l-alert.d.vue.ts +7 -5
- package/dist/runtime/components/l-alert.vue.d.ts +7 -5
- package/dist/runtime/components/l-app-main.d.vue.ts +8 -7
- package/dist/runtime/components/l-app-main.vue +2 -2
- package/dist/runtime/components/l-app-main.vue.d.ts +8 -7
- package/dist/runtime/components/l-app.d.vue.ts +3 -2
- package/dist/runtime/components/l-app.vue.d.ts +3 -2
- package/dist/runtime/components/l-audit-card.d.vue.ts +4 -3
- package/dist/runtime/components/l-audit-card.vue.d.ts +4 -3
- package/dist/runtime/components/l-back-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-back-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-banner.d.vue.ts +5 -7
- package/dist/runtime/components/l-banner.vue.d.ts +5 -7
- package/dist/runtime/components/l-bar.d.vue.ts +5 -7
- package/dist/runtime/components/l-bar.vue.d.ts +5 -7
- package/dist/runtime/components/l-btn.d.vue.ts +3 -7
- package/dist/runtime/components/l-btn.vue.d.ts +3 -7
- package/dist/runtime/components/l-card.d.vue.ts +9 -11
- package/dist/runtime/components/l-card.vue.d.ts +9 -11
- package/dist/runtime/components/l-checkbox.d.vue.ts +5 -6
- package/dist/runtime/components/l-checkbox.vue.d.ts +5 -6
- package/dist/runtime/components/l-col.d.vue.ts +3 -7
- package/dist/runtime/components/l-col.vue.d.ts +3 -7
- package/dist/runtime/components/l-customizer.d.vue.ts +17 -14
- package/dist/runtime/components/l-customizer.vue.d.ts +17 -14
- package/dist/runtime/components/l-date-picker.d.vue.ts +8 -19
- package/dist/runtime/components/l-date-picker.vue.d.ts +8 -19
- package/dist/runtime/components/l-delete-btn.d.vue.ts +9 -6
- package/dist/runtime/components/l-delete-btn.vue.d.ts +9 -6
- package/dist/runtime/components/l-dialog-database-field-add.d.vue.ts +7 -4
- package/dist/runtime/components/l-dialog-database-field-add.vue.d.ts +7 -4
- package/dist/runtime/components/l-drag-drop-container.d.vue.ts +7 -5
- package/dist/runtime/components/l-drag-drop-container.vue.d.ts +7 -5
- package/dist/runtime/components/l-drag-drop-group.d.vue.ts +3 -2
- package/dist/runtime/components/l-drag-drop-group.vue.d.ts +3 -2
- package/dist/runtime/components/l-drag-drop.d.vue.ts +4 -2
- package/dist/runtime/components/l-drag-drop.vue.d.ts +4 -2
- package/dist/runtime/components/l-edit-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-edit-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-editor.d.vue.ts +3 -8
- package/dist/runtime/components/l-editor.vue.d.ts +3 -8
- package/dist/runtime/components/l-facebook-button.d.vue.ts +5 -3
- package/dist/runtime/components/l-facebook-button.vue.d.ts +5 -3
- package/dist/runtime/components/l-fav-menu.d.vue.ts +9 -7
- package/dist/runtime/components/l-fav-menu.vue.d.ts +9 -7
- package/dist/runtime/components/l-field.d.vue.ts +5 -14
- package/dist/runtime/components/l-field.vue.d.ts +5 -14
- package/dist/runtime/components/l-file-manager-labels.d.vue.ts +5 -3
- package/dist/runtime/components/l-file-manager-labels.vue.d.ts +5 -3
- package/dist/runtime/components/l-file-manager-move.d.vue.ts +9 -6
- package/dist/runtime/components/l-file-manager-move.vue +2 -1
- package/dist/runtime/components/l-file-manager-move.vue.d.ts +9 -6
- package/dist/runtime/components/l-file-manager-preview.d.vue.ts +8 -6
- package/dist/runtime/components/l-file-manager-preview.vue +2 -1
- package/dist/runtime/components/l-file-manager-preview.vue.d.ts +8 -6
- package/dist/runtime/components/l-file-manager.d.vue.ts +14 -11
- package/dist/runtime/components/l-file-manager.vue +8 -12
- package/dist/runtime/components/l-file-manager.vue.d.ts +14 -11
- package/dist/runtime/components/l-file-upload.d.vue.ts +8 -17
- package/dist/runtime/components/l-file-upload.vue.d.ts +8 -17
- package/dist/runtime/components/l-file.d.vue.ts +3 -10
- package/dist/runtime/components/l-file.vue.d.ts +3 -10
- package/dist/runtime/components/l-form-dialog.d.vue.ts +14 -11
- package/dist/runtime/components/l-form-dialog.vue.d.ts +14 -11
- package/dist/runtime/components/l-form.d.vue.ts +5 -4
- package/dist/runtime/components/l-form.vue.d.ts +5 -4
- package/dist/runtime/components/l-group-select.d.vue.ts +9 -7
- package/dist/runtime/components/l-group-select.vue.d.ts +9 -7
- package/dist/runtime/components/l-icon-picker.d.vue.ts +2 -7
- package/dist/runtime/components/l-icon-picker.vue.d.ts +2 -7
- package/dist/runtime/components/l-input-select.d.vue.ts +6 -16
- package/dist/runtime/components/l-input-select.vue.d.ts +6 -16
- package/dist/runtime/components/l-input-xlsx.d.vue.ts +4 -3
- package/dist/runtime/components/l-input-xlsx.vue.d.ts +4 -3
- package/dist/runtime/components/l-input.d.vue.ts +8 -16
- package/dist/runtime/components/l-input.vue.d.ts +8 -16
- package/dist/runtime/components/l-item.d.vue.ts +7 -10
- package/dist/runtime/components/l-item.vue.d.ts +7 -10
- package/dist/runtime/components/l-link.d.vue.ts +8 -6
- package/dist/runtime/components/l-link.vue.d.ts +8 -6
- package/dist/runtime/components/l-list.d.vue.ts +5 -8
- package/dist/runtime/components/l-list.vue.d.ts +5 -8
- package/dist/runtime/components/l-login.d.vue.ts +2 -1
- package/dist/runtime/components/l-login.vue +5 -3
- package/dist/runtime/components/l-login.vue.d.ts +2 -1
- package/dist/runtime/components/l-menu.d.vue.ts +9 -7
- package/dist/runtime/components/l-menu.vue.d.ts +9 -7
- package/dist/runtime/components/l-microsoft-button.d.vue.ts +2 -1
- package/dist/runtime/components/l-microsoft-button.vue.d.ts +2 -1
- package/dist/runtime/components/l-page.d.vue.ts +6 -10
- package/dist/runtime/components/l-page.vue.d.ts +6 -10
- package/dist/runtime/components/l-row.d.vue.ts +3 -4
- package/dist/runtime/components/l-row.vue.d.ts +3 -4
- package/dist/runtime/components/l-save-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-save-btn.vue.d.ts +2 -1
- package/dist/runtime/components/l-select.d.vue.ts +2 -17
- package/dist/runtime/components/l-select.vue.d.ts +2 -17
- package/dist/runtime/components/l-small-box.d.vue.ts +2 -6
- package/dist/runtime/components/l-small-box.vue.d.ts +2 -6
- package/dist/runtime/components/l-statistic.d.vue.ts +8 -6
- package/dist/runtime/components/l-statistic.vue.d.ts +8 -6
- package/dist/runtime/components/l-tab.d.vue.ts +5 -4
- package/dist/runtime/components/l-tab.vue.d.ts +5 -4
- package/dist/runtime/components/l-table.d.vue.ts +10 -30
- package/dist/runtime/components/l-table.vue.d.ts +10 -30
- package/dist/runtime/components/l-tabs.d.vue.ts +9 -10
- package/dist/runtime/components/l-tabs.vue.d.ts +9 -10
- package/dist/runtime/components/l-test2.d.vue.ts +2 -1
- package/dist/runtime/components/l-test2.vue.d.ts +2 -1
- package/dist/runtime/components/l-time-picker.d.vue.ts +8 -11
- package/dist/runtime/components/l-time-picker.vue.d.ts +8 -11
- package/dist/runtime/components/l-view-btn.d.vue.ts +2 -1
- package/dist/runtime/components/l-view-btn.vue.d.ts +2 -1
- package/dist/runtime/components/user-list.d.vue.ts +7 -5
- package/dist/runtime/components/user-list.vue.d.ts +7 -5
- package/dist/runtime/composables/collect.d.ts +1 -2
- package/dist/runtime/composables/collect.js +3 -2
- package/dist/runtime/composables/defineLightModel.js +2 -2
- package/dist/runtime/composables/f.d.ts +3 -0
- package/dist/runtime/composables/getCurrentUser.d.ts +1 -2
- package/dist/runtime/composables/getCurrentUser.js +4 -9
- package/dist/runtime/composables/getGQLFields.js +2 -2
- package/dist/runtime/composables/getModelField.js +2 -2
- package/dist/runtime/composables/getObject.d.ts +3 -0
- package/dist/runtime/composables/m.js +16 -2
- package/dist/runtime/composables/model.d.ts +2 -2
- package/dist/runtime/composables/model.js +2 -2
- package/dist/runtime/composables/sv.js +2 -2
- package/dist/runtime/composables/toJson.d.ts +3 -0
- package/dist/runtime/composables/useEntityId.d.ts +2 -0
- package/dist/runtime/composables/useEntityId.js +11 -0
- package/dist/runtime/composables/useLight.d.ts +14 -14
- package/dist/runtime/composables/useLight.js +1 -1
- package/dist/runtime/composables/{list.d.ts → useList.d.ts} +1 -2
- package/dist/runtime/composables/useList.js +37 -0
- package/dist/runtime/composables/useObject.d.ts +2 -1
- package/dist/runtime/composables/useObject.js +23 -38
- package/dist/runtime/composables/useRoles.js +3 -3
- package/dist/runtime/composables/useWebAuthn.d.ts +2 -4
- package/dist/runtime/composables/useWebAuthn.js +2 -3
- package/dist/runtime/formkit/Checkbox.d.vue.ts +7 -5
- package/dist/runtime/formkit/Checkbox.vue.d.ts +7 -5
- package/dist/runtime/formkit/DatePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/DatePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/Editor.d.vue.ts +7 -5
- package/dist/runtime/formkit/Editor.vue.d.ts +7 -5
- package/dist/runtime/formkit/File.d.vue.ts +7 -5
- package/dist/runtime/formkit/File.vue.d.ts +7 -5
- package/dist/runtime/formkit/FilePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/FilePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/FileUpload.d.vue.ts +7 -5
- package/dist/runtime/formkit/FileUpload.vue.d.ts +7 -5
- package/dist/runtime/formkit/Form.d.vue.ts +5 -4
- package/dist/runtime/formkit/Form.vue.d.ts +5 -4
- package/dist/runtime/formkit/GroupSelect.d.vue.ts +7 -5
- package/dist/runtime/formkit/GroupSelect.vue.d.ts +7 -5
- package/dist/runtime/formkit/Input.d.vue.ts +5 -4
- package/dist/runtime/formkit/Input.vue.d.ts +5 -4
- package/dist/runtime/formkit/InputSelect.d.vue.ts +5 -4
- package/dist/runtime/formkit/InputSelect.vue.d.ts +5 -4
- package/dist/runtime/formkit/InputXlsx.d.vue.ts +7 -5
- package/dist/runtime/formkit/InputXlsx.vue.d.ts +7 -5
- package/dist/runtime/formkit/OptionGroup.d.vue.ts +7 -5
- package/dist/runtime/formkit/OptionGroup.vue.d.ts +7 -5
- package/dist/runtime/formkit/Radio.d.vue.ts +7 -5
- package/dist/runtime/formkit/Radio.vue.d.ts +7 -5
- package/dist/runtime/formkit/Repeater.d.vue.ts +7 -5
- package/dist/runtime/formkit/Repeater.vue.d.ts +7 -5
- package/dist/runtime/formkit/Select.d.vue.ts +7 -5
- package/dist/runtime/formkit/Select.vue.d.ts +7 -5
- package/dist/runtime/formkit/Textarea.d.vue.ts +5 -4
- package/dist/runtime/formkit/Textarea.vue.d.ts +5 -4
- package/dist/runtime/formkit/TimePicker.d.vue.ts +7 -5
- package/dist/runtime/formkit/TimePicker.vue.d.ts +7 -5
- package/dist/runtime/formkit/Toggle.d.vue.ts +5 -4
- package/dist/runtime/formkit/Toggle.vue.d.ts +5 -4
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue +14 -2
- package/dist/runtime/pages/CustomField/[custom_field_id]/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/CustomField/index.d.vue.ts +2 -1
- package/dist/runtime/pages/CustomField/index.vue.d.ts +2 -1
- package/dist/runtime/pages/EventLog/_eventlog_id/view.d.vue.ts +2 -1
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +13 -3
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue.d.ts +2 -1
- package/dist/runtime/pages/EventLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/EventLog/index.vue.d.ts +2 -1
- package/dist/runtime/pages/FileManager/index.d.vue.ts +2 -1
- package/dist/runtime/pages/FileManager/index.vue.d.ts +2 -1
- package/dist/runtime/pages/MailLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/MailLog/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/add.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/add.vue +3 -2
- package/dist/runtime/pages/Permission/add.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/all.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/all.vue +2 -2
- package/dist/runtime/pages/Permission/all.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/export.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/export.vue +2 -2
- package/dist/runtime/pages/Permission/export.vue.d.ts +2 -1
- package/dist/runtime/pages/Permission/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Permission/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/_name/update-child.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/_name/update-child.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/add.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/add.vue +7 -3
- package/dist/runtime/pages/Role/add.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/add2.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/add2.vue +2 -2
- package/dist/runtime/pages/Role/add2.vue.d.ts +2 -1
- package/dist/runtime/pages/Role/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Role/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/backup.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/backup.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/check.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/check.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/event.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/event.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/process.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/process.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/restore.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/restore.vue.d.ts +2 -1
- package/dist/runtime/pages/System/database/table.d.vue.ts +2 -1
- package/dist/runtime/pages/System/database/table.vue +2 -2
- package/dist/runtime/pages/System/database/table.vue.d.ts +2 -1
- package/dist/runtime/pages/System/fs.d.vue.ts +2 -1
- package/dist/runtime/pages/System/fs.vue.d.ts +2 -1
- package/dist/runtime/pages/System/index.d.vue.ts +2 -1
- package/dist/runtime/pages/System/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/mailtest.d.vue.ts +2 -1
- package/dist/runtime/pages/System/mailtest.vue.d.ts +2 -1
- package/dist/runtime/pages/System/menu/index.d.vue.ts +2 -1
- package/dist/runtime/pages/System/menu/index.vue.d.ts +2 -1
- package/dist/runtime/pages/System/package.d.vue.ts +2 -1
- package/dist/runtime/pages/System/package.vue.d.ts +2 -1
- package/dist/runtime/pages/System/phpinfo.d.vue.ts +2 -1
- package/dist/runtime/pages/System/phpinfo.vue.d.ts +2 -1
- package/dist/runtime/pages/System/setting.d.vue.ts +2 -1
- package/dist/runtime/pages/System/setting.vue +1 -1
- package/dist/runtime/pages/System/setting.vue.d.ts +2 -1
- package/dist/runtime/pages/System/test.d.vue.ts +2 -1
- package/dist/runtime/pages/System/test.vue.d.ts +2 -1
- package/dist/runtime/pages/System/view_as.d.vue.ts +2 -1
- package/dist/runtime/pages/System/view_as.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue +7 -4
- package/dist/runtime/pages/SystemValue/_systemvalue_id/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/add.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/add.vue.d.ts +2 -1
- package/dist/runtime/pages/SystemValue/index.d.vue.ts +2 -1
- package/dist/runtime/pages/SystemValue/index.vue.d.ts +2 -1
- package/dist/runtime/pages/Translate/index.d.vue.ts +2 -1
- package/dist/runtime/pages/Translate/index.vue +10 -6
- package/dist/runtime/pages/Translate/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/change-password.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/change-password.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/edit.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/edit.vue +19 -18
- package/dist/runtime/pages/User/_user_id/edit.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/update-role.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/update-role.vue +8 -5
- package/dist/runtime/pages/User/_user_id/update-role.vue.d.ts +2 -1
- package/dist/runtime/pages/User/_user_id/view.d.vue.ts +2 -1
- package/dist/runtime/pages/User/_user_id/view.vue +4 -10
- package/dist/runtime/pages/User/_user_id/view.vue.d.ts +2 -1
- package/dist/runtime/pages/User/add.d.vue.ts +2 -1
- package/dist/runtime/pages/User/add.vue.d.ts +2 -1
- package/dist/runtime/pages/User/index.d.vue.ts +2 -1
- package/dist/runtime/pages/User/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/profile.d.vue.ts +2 -1
- package/dist/runtime/pages/User/profile.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/bio-auth.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/bio-auth.vue +21 -32
- package/dist/runtime/pages/User/setting/bio-auth.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/favorite.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/favorite.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/index.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/index.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/information.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/information.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/menu.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/menu.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/open_id.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/open_id.vue +5 -2
- package/dist/runtime/pages/User/setting/open_id.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/password.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/password.vue +6 -3
- package/dist/runtime/pages/User/setting/password.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/style.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/style.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting/two-factor-auth.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting/two-factor-auth.vue.d.ts +2 -1
- package/dist/runtime/pages/User/setting.d.vue.ts +2 -1
- package/dist/runtime/pages/User/setting.vue.d.ts +2 -1
- package/dist/runtime/pages/UserLog/index.d.vue.ts +2 -1
- package/dist/runtime/pages/UserLog/index.vue.d.ts +2 -1
- package/dist/runtime/plugin.d.ts +1 -1
- package/dist/runtime/plugin.js +17 -14
- package/package.json +8 -8
- package/dist/runtime/composables/api.d.ts +0 -2
- package/dist/runtime/composables/api.js +0 -2
- package/dist/runtime/composables/isGranted.d.ts +0 -1
- package/dist/runtime/composables/isGranted.js +0 -13
- package/dist/runtime/composables/list.js +0 -4
- package/dist/runtime/composables/q.d.ts +0 -1
- package/dist/runtime/composables/q.js +0 -26
|
@@ -70,19 +70,19 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var
|
|
73
|
+
declare var __VLS_123: any, __VLS_126: string, __VLS_127: any, __VLS_159: any, __VLS_162: any, __VLS_336: string, __VLS_337: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
|
-
[K in NonNullable<typeof
|
|
75
|
+
[K in NonNullable<typeof __VLS_126>]?: (props: typeof __VLS_127) => any;
|
|
76
76
|
} & {
|
|
77
|
-
[K in NonNullable<typeof
|
|
77
|
+
[K in NonNullable<typeof __VLS_336>]?: (props: typeof __VLS_337) => any;
|
|
78
78
|
} & {
|
|
79
|
-
actions?: (props: typeof
|
|
79
|
+
actions?: (props: typeof __VLS_123) => any;
|
|
80
80
|
} & {
|
|
81
|
-
'row-expand'?: (props: typeof
|
|
81
|
+
'row-expand'?: (props: typeof __VLS_159) => any;
|
|
82
82
|
} & {
|
|
83
|
-
'top-right'?: (props: typeof
|
|
83
|
+
'top-right'?: (props: typeof __VLS_162) => any;
|
|
84
84
|
};
|
|
85
|
-
declare const
|
|
85
|
+
declare const __VLS_base: import("vue").DefineComponent<LTableProps, {
|
|
86
86
|
requestServerInteraction: typeof requestServerInteraction;
|
|
87
87
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
88
|
delete: (p: any) => any;
|
|
@@ -92,29 +92,9 @@ declare const __VLS_component: import("vue").DefineComponent<LTableProps, {
|
|
|
92
92
|
onDelete?: ((p: any) => any) | undefined;
|
|
93
93
|
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
94
94
|
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
95
|
-
}>, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
dark: boolean | null;
|
|
99
|
-
actions: Array<"view" | "edit" | "delete" | "update">;
|
|
100
|
-
dense: boolean;
|
|
101
|
-
pagination: {
|
|
102
|
-
sortBy?: string | null;
|
|
103
|
-
descending?: boolean;
|
|
104
|
-
page?: number;
|
|
105
|
-
rowsPerPage?: number;
|
|
106
|
-
rowsNumber?: number;
|
|
107
|
-
};
|
|
108
|
-
selected: any[];
|
|
109
|
-
bordered: boolean;
|
|
110
|
-
noDataLabel: string;
|
|
111
|
-
loadingLabel: string;
|
|
112
|
-
rowsPerPageLabel: string;
|
|
113
|
-
rowsPerPageOptions: readonly any[];
|
|
114
|
-
selection: "none" | "single" | "multiple";
|
|
115
|
-
searchable: boolean;
|
|
116
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
117
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
95
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
97
|
+
declare const _default: typeof __VLS_export;
|
|
118
98
|
export default _default;
|
|
119
99
|
type __VLS_WithSlots<T, S> = T & {
|
|
120
100
|
new (): {
|
|
@@ -70,19 +70,19 @@ export interface LTableRequest {
|
|
|
70
70
|
}) => void;
|
|
71
71
|
}
|
|
72
72
|
declare function requestServerInteraction(): void;
|
|
73
|
-
declare var
|
|
73
|
+
declare var __VLS_123: any, __VLS_126: string, __VLS_127: any, __VLS_159: any, __VLS_162: any, __VLS_336: string, __VLS_337: any;
|
|
74
74
|
type __VLS_Slots = {} & {
|
|
75
|
-
[K in NonNullable<typeof
|
|
75
|
+
[K in NonNullable<typeof __VLS_126>]?: (props: typeof __VLS_127) => any;
|
|
76
76
|
} & {
|
|
77
|
-
[K in NonNullable<typeof
|
|
77
|
+
[K in NonNullable<typeof __VLS_336>]?: (props: typeof __VLS_337) => any;
|
|
78
78
|
} & {
|
|
79
|
-
actions?: (props: typeof
|
|
79
|
+
actions?: (props: typeof __VLS_123) => any;
|
|
80
80
|
} & {
|
|
81
|
-
'row-expand'?: (props: typeof
|
|
81
|
+
'row-expand'?: (props: typeof __VLS_159) => any;
|
|
82
82
|
} & {
|
|
83
|
-
'top-right'?: (props: typeof
|
|
83
|
+
'top-right'?: (props: typeof __VLS_162) => any;
|
|
84
84
|
};
|
|
85
|
-
declare const
|
|
85
|
+
declare const __VLS_base: import("vue").DefineComponent<LTableProps, {
|
|
86
86
|
requestServerInteraction: typeof requestServerInteraction;
|
|
87
87
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
88
|
delete: (p: any) => any;
|
|
@@ -92,29 +92,9 @@ declare const __VLS_component: import("vue").DefineComponent<LTableProps, {
|
|
|
92
92
|
onDelete?: ((p: any) => any) | undefined;
|
|
93
93
|
"onRequest-data"?: ((p: LTableRequest) => any) | undefined;
|
|
94
94
|
"onUpdate:selected"?: ((p: any[]) => any) | undefined;
|
|
95
|
-
}>, {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
dark: boolean | null;
|
|
99
|
-
actions: Array<"view" | "edit" | "delete" | "update">;
|
|
100
|
-
dense: boolean;
|
|
101
|
-
pagination: {
|
|
102
|
-
sortBy?: string | null;
|
|
103
|
-
descending?: boolean;
|
|
104
|
-
page?: number;
|
|
105
|
-
rowsPerPage?: number;
|
|
106
|
-
rowsNumber?: number;
|
|
107
|
-
};
|
|
108
|
-
selected: any[];
|
|
109
|
-
bordered: boolean;
|
|
110
|
-
noDataLabel: string;
|
|
111
|
-
loadingLabel: string;
|
|
112
|
-
rowsPerPageLabel: string;
|
|
113
|
-
rowsPerPageOptions: readonly any[];
|
|
114
|
-
selection: "none" | "single" | "multiple";
|
|
115
|
-
searchable: boolean;
|
|
116
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
117
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
95
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
96
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
97
|
+
declare const _default: typeof __VLS_export;
|
|
118
98
|
export default _default;
|
|
119
99
|
type __VLS_WithSlots<T, S> = T & {
|
|
120
100
|
new (): {
|
|
@@ -4,24 +4,23 @@ export interface LTabsProps extends QTabsProps {
|
|
|
4
4
|
route?: boolean;
|
|
5
5
|
}
|
|
6
6
|
type __VLS_Props = LTabsProps;
|
|
7
|
-
type
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
8
|
modelValue?: any;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare var __VLS_14: {}, __VLS_22: {};
|
|
11
12
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_14) => any;
|
|
13
14
|
} & {
|
|
14
|
-
default?: (props: typeof
|
|
15
|
+
default?: (props: typeof __VLS_22) => any;
|
|
15
16
|
};
|
|
16
|
-
declare const
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
"update:modelValue": (value: any) => any;
|
|
18
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
20
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
25
24
|
export default _default;
|
|
26
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
27
26
|
new (): {
|
|
@@ -4,24 +4,23 @@ export interface LTabsProps extends QTabsProps {
|
|
|
4
4
|
route?: boolean;
|
|
5
5
|
}
|
|
6
6
|
type __VLS_Props = LTabsProps;
|
|
7
|
-
type
|
|
7
|
+
type __VLS_ModelProps = {
|
|
8
8
|
modelValue?: any;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
11
|
+
declare var __VLS_14: {}, __VLS_22: {};
|
|
11
12
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_14) => any;
|
|
13
14
|
} & {
|
|
14
|
-
default?: (props: typeof
|
|
15
|
+
default?: (props: typeof __VLS_22) => any;
|
|
15
16
|
};
|
|
16
|
-
declare const
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
"update:modelValue": (value: any) => any;
|
|
18
19
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
20
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
25
24
|
export default _default;
|
|
26
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
27
26
|
new (): {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
2
|
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -11,24 +11,21 @@ export interface LTimePickerProps {
|
|
|
11
11
|
color?: string;
|
|
12
12
|
}
|
|
13
13
|
type __VLS_Props = LTimePickerProps;
|
|
14
|
-
type
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
15
|
modelValue?: any;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare var __VLS_37: string | number, __VLS_38: any;
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
19
|
-
[K in NonNullable<typeof
|
|
20
|
+
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
20
21
|
};
|
|
21
|
-
declare const
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
23
|
"update:modelValue": (value: any) => any;
|
|
23
24
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
25
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
mask: string;
|
|
29
|
-
hideBottomSpace: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
32
29
|
export default _default;
|
|
33
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
34
31
|
new (): {
|
|
@@ -11,24 +11,21 @@ export interface LTimePickerProps {
|
|
|
11
11
|
color?: string;
|
|
12
12
|
}
|
|
13
13
|
type __VLS_Props = LTimePickerProps;
|
|
14
|
-
type
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
15
|
modelValue?: any;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare var __VLS_37: string | number, __VLS_38: any;
|
|
18
19
|
type __VLS_Slots = {} & {
|
|
19
|
-
[K in NonNullable<typeof
|
|
20
|
+
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
20
21
|
};
|
|
21
|
-
declare const
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
23
|
"update:modelValue": (value: any) => any;
|
|
23
24
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
25
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
mask: string;
|
|
29
|
-
hideBottomSpace: boolean;
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
32
29
|
export default _default;
|
|
33
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
34
31
|
new (): {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
2
3
|
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
2
5
|
status?: number | undefined;
|
|
3
|
-
$props: {
|
|
4
|
-
readonly status?: number | undefined;
|
|
5
|
-
};
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
|
|
7
|
+
declare const props: {
|
|
8
|
+
readonly status?: number | undefined;
|
|
9
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
|
+
$props: Partial<typeof props>;
|
|
2
5
|
status?: number | undefined;
|
|
3
|
-
$props: {
|
|
4
|
-
readonly status?: number | undefined;
|
|
5
|
-
};
|
|
6
6
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
|
|
7
|
+
declare const props: {
|
|
8
|
+
readonly status?: number | undefined;
|
|
9
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { query } from "@hostlink/light";
|
|
2
2
|
export default async (fields = {
|
|
3
3
|
username: true,
|
|
4
4
|
first_name: true,
|
|
5
5
|
last_name: true,
|
|
6
6
|
roles: true
|
|
7
7
|
}) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
return my;
|
|
13
|
-
} catch (e) {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
8
|
+
return await query({
|
|
9
|
+
my: fields
|
|
10
|
+
}).then((res) => res.my).catch(() => null);
|
|
16
11
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mutation } from "@hostlink/light";
|
|
2
2
|
const removeUndefinedValues = (obj) => {
|
|
3
3
|
for (const key in obj) {
|
|
4
4
|
if (obj[key] instanceof File) {
|
|
@@ -17,5 +17,19 @@ export default function(operation, args, fields = []) {
|
|
|
17
17
|
if (args) {
|
|
18
18
|
args = removeUndefinedValues(args);
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
const q = {
|
|
21
|
+
[operation]: {
|
|
22
|
+
__args: args ?? null,
|
|
23
|
+
...fields
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
if (q[operation].__args === null) {
|
|
27
|
+
delete q[operation].__args;
|
|
28
|
+
}
|
|
29
|
+
if (Object.keys(q[operation]).length === 0) {
|
|
30
|
+
q[operation] = true;
|
|
31
|
+
}
|
|
32
|
+
return mutation(q).then((res) => {
|
|
33
|
+
return res[operation];
|
|
34
|
+
});
|
|
21
35
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Model } from '@hostlink/light';
|
|
2
2
|
import type { LTableColumn } from "../components/l-table.vue.js";
|
|
3
|
-
interface LModel extends
|
|
3
|
+
interface LModel extends Model {
|
|
4
4
|
columns(fields: string[]): Array<LTableColumn>;
|
|
5
5
|
}
|
|
6
6
|
declare const _default: (name: string) => LModel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useGlobalModel } from "@hostlink/light";
|
|
2
2
|
export default (name) => {
|
|
3
|
-
const m =
|
|
3
|
+
const m = useGlobalModel().getModel(name);
|
|
4
4
|
return Object.assign(m, {
|
|
5
5
|
columns(fields) {
|
|
6
6
|
let columns = [];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { query } from "@hostlink/light";
|
|
2
2
|
export const cache = {};
|
|
3
3
|
export default (name) => {
|
|
4
4
|
if (cache[name]) {
|
|
5
5
|
return cache[name];
|
|
6
6
|
}
|
|
7
7
|
const p = new Promise(async (resolve, reject) => {
|
|
8
|
-
const resp = await
|
|
8
|
+
const resp = await query({
|
|
9
9
|
systemValue: {
|
|
10
10
|
__args: {
|
|
11
11
|
name
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRoute } from "vue-router";
|
|
2
|
+
import { ref, watch } from "vue";
|
|
3
|
+
export default () => {
|
|
4
|
+
const $route = useRoute();
|
|
5
|
+
const [module, id_name] = $route.name.split("-");
|
|
6
|
+
const id = ref(Number($route.params[id_name || ""]));
|
|
7
|
+
watch(() => $route.params[id_name || ""], (newId) => {
|
|
8
|
+
id.value = Number(newId);
|
|
9
|
+
});
|
|
10
|
+
return id;
|
|
11
|
+
};
|
|
@@ -15,7 +15,7 @@ export interface User {
|
|
|
15
15
|
}
|
|
16
16
|
declare const light: {
|
|
17
17
|
devMode: boolean;
|
|
18
|
-
styles: any
|
|
18
|
+
styles: Record<string, any>;
|
|
19
19
|
version: string;
|
|
20
20
|
errors: Array<string>;
|
|
21
21
|
$q: {
|
|
@@ -224,17 +224,17 @@ declare const light: {
|
|
|
224
224
|
isoName: string;
|
|
225
225
|
nativeName: string;
|
|
226
226
|
label: {
|
|
227
|
+
remove: string;
|
|
227
228
|
cancel: string;
|
|
228
229
|
close: string;
|
|
229
230
|
reset: string;
|
|
230
231
|
select: string;
|
|
231
232
|
filter: string;
|
|
232
|
-
update: string;
|
|
233
|
-
remove: string;
|
|
234
|
-
set: string;
|
|
235
233
|
clear: string;
|
|
236
|
-
|
|
234
|
+
set: string;
|
|
237
235
|
search: string;
|
|
236
|
+
ok: string;
|
|
237
|
+
update: string;
|
|
238
238
|
create: string;
|
|
239
239
|
refresh: string;
|
|
240
240
|
expand: (label?: string | undefined) => string;
|
|
@@ -265,12 +265,12 @@ declare const light: {
|
|
|
265
265
|
pagination: (start: number, end: number, total: number) => string;
|
|
266
266
|
};
|
|
267
267
|
editor: {
|
|
268
|
-
url: string;
|
|
269
268
|
bold: string;
|
|
270
269
|
left: string;
|
|
271
270
|
right: string;
|
|
272
271
|
center: string;
|
|
273
272
|
align: string;
|
|
273
|
+
url: string;
|
|
274
274
|
italic: string;
|
|
275
275
|
strikethrough: string;
|
|
276
276
|
underline: string;
|
|
@@ -449,8 +449,8 @@ declare const light: {
|
|
|
449
449
|
};
|
|
450
450
|
uploader: {
|
|
451
451
|
done: string;
|
|
452
|
-
add: string;
|
|
453
452
|
clear: string;
|
|
453
|
+
add: string;
|
|
454
454
|
upload: string;
|
|
455
455
|
removeQueue: string;
|
|
456
456
|
removeUploaded: string;
|
|
@@ -612,7 +612,7 @@ declare const light: {
|
|
|
612
612
|
};
|
|
613
613
|
declare const _default: () => {
|
|
614
614
|
devMode: boolean;
|
|
615
|
-
styles: any
|
|
615
|
+
styles: Record<string, any>;
|
|
616
616
|
version: string;
|
|
617
617
|
errors: Array<string>;
|
|
618
618
|
$q: {
|
|
@@ -821,17 +821,17 @@ declare const _default: () => {
|
|
|
821
821
|
isoName: string;
|
|
822
822
|
nativeName: string;
|
|
823
823
|
label: {
|
|
824
|
+
remove: string;
|
|
824
825
|
cancel: string;
|
|
825
826
|
close: string;
|
|
826
827
|
reset: string;
|
|
827
828
|
select: string;
|
|
828
829
|
filter: string;
|
|
829
|
-
update: string;
|
|
830
|
-
remove: string;
|
|
831
|
-
set: string;
|
|
832
830
|
clear: string;
|
|
833
|
-
|
|
831
|
+
set: string;
|
|
834
832
|
search: string;
|
|
833
|
+
ok: string;
|
|
834
|
+
update: string;
|
|
835
835
|
create: string;
|
|
836
836
|
refresh: string;
|
|
837
837
|
expand: (label?: string | undefined) => string;
|
|
@@ -862,12 +862,12 @@ declare const _default: () => {
|
|
|
862
862
|
pagination: (start: number, end: number, total: number) => string;
|
|
863
863
|
};
|
|
864
864
|
editor: {
|
|
865
|
-
url: string;
|
|
866
865
|
bold: string;
|
|
867
866
|
left: string;
|
|
868
867
|
right: string;
|
|
869
868
|
center: string;
|
|
870
869
|
align: string;
|
|
870
|
+
url: string;
|
|
871
871
|
italic: string;
|
|
872
872
|
strikethrough: string;
|
|
873
873
|
underline: string;
|
|
@@ -1046,8 +1046,8 @@ declare const _default: () => {
|
|
|
1046
1046
|
};
|
|
1047
1047
|
uploader: {
|
|
1048
1048
|
done: string;
|
|
1049
|
-
add: string;
|
|
1050
1049
|
clear: string;
|
|
1050
|
+
add: string;
|
|
1051
1051
|
upload: string;
|
|
1052
1052
|
removeQueue: string;
|
|
1053
1053
|
removeUploaded: string;
|
|
@@ -2,7 +2,7 @@ import { useQuasar, setCssVar } from "quasar";
|
|
|
2
2
|
import packageJson from "../../../package.json";
|
|
3
3
|
import { watch, reactive, getCurrentInstance } from "vue";
|
|
4
4
|
import m from "./m.js";
|
|
5
|
-
import q from "
|
|
5
|
+
import { query as q } from "@hostlink/light";
|
|
6
6
|
const COLOR_CODE = {
|
|
7
7
|
red: "#f44336",
|
|
8
8
|
pink: "#e91e63",
|